vue-data-ui 2.3.90 → 2.3.92
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 +3 -2
- package/dist/{Arrow-C_Fnn6al.js → Arrow-16rQhq4i.js} +1 -1
- package/dist/{Arrow-D1pymKl6.cjs → Arrow-CdJD01md.cjs} +1 -1
- package/dist/{BaseIcon-BMfi5PnL.js → BaseIcon-CAmYNoaf.js} +1 -1
- package/dist/{BaseIcon-CnFXP_n9.cjs → BaseIcon-dYWMubrH.cjs} +1 -1
- package/dist/{DataTable-Cmbf3abv.js → DataTable-BXnbua0J.js} +2 -2
- package/dist/{DataTable-cOEA6Z37.cjs → DataTable-oa0Srfuc.cjs} +1 -1
- package/dist/{Legend-CCq0mNRg.js → Legend-Cr1hulgT.js} +1 -1
- package/dist/{Legend-XqP6-7Ac.cjs → Legend-Dhm9_peB.cjs} +1 -1
- package/dist/PackageVersion-BVZfgDqm.js +10 -0
- package/dist/PackageVersion-BkgJVmj1.cjs +1 -0
- package/dist/{Shape-BNocET8E.js → Shape-D75m5xWM.js} +1 -1
- package/dist/{Shape-B51JGReT.cjs → Shape-hGbEoQOv.cjs} +1 -1
- package/dist/{Slicer-Bc7OWCcl.cjs → Slicer-B7ya0m2Q.cjs} +1 -1
- package/dist/{Slicer-BKszZXjM.js → Slicer-Bx8AozB8.js} +2 -2
- package/dist/{Title-DlBwa3-X.js → Title-1Sw6EmHy.js} +1 -1
- package/dist/{Title-BaR4XyXa.cjs → Title-Bjrh7khe.cjs} +1 -1
- package/dist/{Tooltip-CX57w9Q9.cjs → Tooltip-CPATjuur.cjs} +1 -1
- package/dist/{Tooltip-w32n-8sY.js → Tooltip-EJf3VBPR.js} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/index-D09qCApg.cjs +4 -0
- package/dist/{index-DQl1TFXa.js → index-DhJby8wL.js} +8 -3
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +16 -0
- package/dist/types/vue-data-ui.d.ts +16 -0
- package/dist/{useNestedProp-DlCe_zZz.cjs → useNestedProp-Bwd7mK1Z.cjs} +1 -1
- package/dist/{useNestedProp-lmeFt-ev.js → useNestedProp-CrHvyupb.js} +1 -1
- package/dist/{usePrinter-DgKGVvJC.js → usePrinter-Bwm8J3RQ.js} +1 -1
- package/dist/{usePrinter-BmXrEJ99.cjs → usePrinter-DdsPm5a4.cjs} +1 -1
- package/dist/{vue-data-ui-Byrb_Y3k.js → vue-data-ui-CLxne31S.js} +57 -57
- package/dist/{vue-data-ui-DQurgvN8.cjs → vue-data-ui-ZitCqVgG.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DAv5cYGJ.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CM_usP2U.js → vue-ui-3d-bar-Dg87_AAm.js} +148 -146
- package/dist/{vue-ui-accordion-DRI-fN6I.cjs → vue-ui-accordion-BAHX7KzB.cjs} +1 -1
- package/dist/{vue-ui-accordion-CroZrm7T.js → vue-ui-accordion-Cn5Jbplg.js} +3 -3
- package/dist/vue-ui-age-pyramid-GzHwQzsH.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BZU-WI_a.js → vue-ui-age-pyramid-PlamQWqC.js} +83 -81
- package/dist/{vue-ui-annotator-BpzM25VY.cjs → vue-ui-annotator-DGgQwl-K.cjs} +1 -1
- package/dist/{vue-ui-annotator-CsfYgmrC.js → vue-ui-annotator-Dd5KF_cy.js} +1 -1
- package/dist/vue-ui-candlestick-BIEB2J1w.cjs +2 -0
- package/dist/{vue-ui-candlestick-BPi7aBEf.js → vue-ui-candlestick-DTzwPhV5.js} +113 -111
- package/dist/{vue-ui-carousel-table-CpodLcgX.cjs → vue-ui-carousel-table-HNTf5AYY.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-tbviS8Fo.js → vue-ui-carousel-table-YEfvPESA.js} +4 -4
- package/dist/vue-ui-chestnut-DzjdAYsT.cjs +6 -0
- package/dist/{vue-ui-chestnut-ql9yEs6j.js → vue-ui-chestnut-PzMOM7mp.js} +161 -159
- package/dist/{vue-ui-cursor-B3w0SgJP.cjs → vue-ui-cursor-C5rsiCdn.cjs} +1 -1
- package/dist/{vue-ui-cursor-Dw7_R_Pd.js → vue-ui-cursor-DWea2yXV.js} +2 -2
- package/dist/{vue-ui-dashboard-enrB5B3P.cjs → vue-ui-dashboard-BqXhoS8m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DAY0cdat.js → vue-ui-dashboard-CVespiTo.js} +2 -2
- package/dist/{vue-ui-digits-DN6CRpXc.js → vue-ui-digits-gNKgZqYU.js} +2 -2
- package/dist/{vue-ui-digits-3Q6uZCzD.cjs → vue-ui-digits-wmDN7Vkf.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CzBvVRKG.js → vue-ui-donut-evolution-Ch6HH0ja.js} +102 -100
- package/dist/vue-ui-donut-evolution-DhDxLZ1J.cjs +1 -0
- package/dist/vue-ui-donut-n37BZPxr.cjs +1 -0
- package/dist/{vue-ui-donut-B3yDJvZI.js → vue-ui-donut-sQunZI1L.js} +118 -116
- package/dist/vue-ui-dumbbell-B9Z_pjnG.cjs +9 -0
- package/dist/{vue-ui-dumbbell-vQ5YRGwJ.js → vue-ui-dumbbell-lFlZX8Yi.js} +88 -86
- package/dist/vue-ui-flow-BaFpUJg-.cjs +1 -0
- package/dist/{vue-ui-flow-DAOKURA6.js → vue-ui-flow-CSIOC-JR.js} +65 -63
- package/dist/vue-ui-galaxy-BIR5GxIc.cjs +1 -0
- package/dist/{vue-ui-galaxy-B86BK1JM.js → vue-ui-galaxy-DL2mnel_.js} +82 -80
- package/dist/{vue-ui-gauge-n8TilFo9.js → vue-ui-gauge-BMq7KT3t.js} +56 -54
- package/dist/vue-ui-gauge-r_qvpwE7.cjs +1 -0
- package/dist/vue-ui-gizmo-DBas_Sw_.cjs +1 -0
- package/dist/{vue-ui-gizmo-CFIBlG4V.js → vue-ui-gizmo-Dj7zvNI1.js} +32 -30
- package/dist/{vue-ui-heatmap-ZkmD9EAg.js → vue-ui-heatmap-pqBYIrxm.js} +99 -97
- package/dist/vue-ui-heatmap-qPgEhAzc.cjs +1 -0
- package/dist/{vue-ui-kpi-D6Myg0y1.cjs → vue-ui-kpi-Cmo9J7wp.cjs} +1 -1
- package/dist/{vue-ui-kpi-CtJ3t6GX.js → vue-ui-kpi-ZPBinMiF.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjJ_YYZj.cjs → vue-ui-mini-loader-Ce-jbgMT.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Cosy9XjR.js → vue-ui-mini-loader-DOTWhLi9.js} +2 -2
- package/dist/vue-ui-molecule-D429iwPP.cjs +1 -0
- package/dist/{vue-ui-molecule-DTFOBjgC.js → vue-ui-molecule-RDpgNrHQ.js} +77 -75
- package/dist/{vue-ui-mood-radar-J_dI9m_i.js → vue-ui-mood-radar-CD5L8WCU.js} +76 -74
- package/dist/vue-ui-mood-radar-CdLJxrkT.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-CtqU4xxu.js → vue-ui-nested-donuts-A-tid5cQ.js} +112 -110
- package/dist/vue-ui-nested-donuts-DyM3uc7x.cjs +17 -0
- package/dist/vue-ui-onion-BKql8oal.cjs +5 -0
- package/dist/{vue-ui-onion-BMo0Ye54.js → vue-ui-onion-Cap01Ehu.js} +82 -80
- package/dist/vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-yKLZbDS5.js → vue-ui-parallel-coordinate-plot-CcDKe4L0.js} +91 -89
- package/dist/{vue-ui-quadrant-BrRasVaj.js → vue-ui-quadrant-BDEfAeyJ.js} +141 -139
- package/dist/vue-ui-quadrant-CZzdpeQ2.cjs +1 -0
- package/dist/{vue-ui-quick-chart-uH33UIjX.js → vue-ui-quick-chart-DlAUYg5u.js} +166 -164
- package/dist/vue-ui-quick-chart-DpGYUyhq.cjs +15 -0
- package/dist/{vue-ui-radar-BJ3qMHP4.js → vue-ui-radar-CbTln7gs.js} +89 -87
- package/dist/vue-ui-radar-oBeaHlpT.cjs +1 -0
- package/dist/{vue-ui-rating-BEWaQMBR.cjs → vue-ui-rating-BU7-F3_e.cjs} +1 -1
- package/dist/{vue-ui-rating-BFskhiyh.js → vue-ui-rating-BkDncqow.js} +2 -2
- package/dist/{vue-ui-relation-circle-DdK4qk0P.js → vue-ui-relation-circle-C5B6UNGd.js} +54 -52
- package/dist/vue-ui-relation-circle-IWiJWgcB.cjs +1 -0
- package/dist/{vue-ui-rings-BqHSq6Wt.js → vue-ui-rings-BujVUJ90.js} +97 -93
- package/dist/{vue-ui-rings-D_T_D6AS.cjs → vue-ui-rings-Df2cRgD8.cjs} +2 -2
- package/dist/{vue-ui-scatter-C0gfF6NJ.js → vue-ui-scatter-D6yqZJ7s.js} +132 -130
- package/dist/vue-ui-scatter-jFTeM2hW.cjs +1 -0
- package/dist/{vue-ui-screenshot-6tOLntj9.js → vue-ui-screenshot-CHAySwpv.js} +1 -1
- package/dist/{vue-ui-screenshot-CbvIYfYU.cjs → vue-ui-screenshot-CVu8IM33.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BVJGmYjj.js → vue-ui-skeleton-ASX40MGk.js} +423 -388
- package/dist/vue-ui-skeleton-CAlTn_Cg.cjs +41 -0
- package/dist/{vue-ui-smiley-2EoxEmXW.js → vue-ui-smiley-DGVzhza2.js} +2 -2
- package/dist/{vue-ui-smiley-CUgH2tnV.cjs → vue-ui-smiley-dwCqhB0r.cjs} +1 -1
- package/dist/vue-ui-spark-trend-A1EHFK_r.cjs +1 -0
- package/dist/{vue-ui-spark-trend-DjNPMOkN.js → vue-ui-spark-trend-B7XhDvTj.js} +42 -40
- package/dist/{vue-ui-sparkbar-BBm3DE1P.js → vue-ui-sparkbar-BuNcvi66.js} +53 -51
- package/dist/vue-ui-sparkbar-CwNjHOjD.cjs +1 -0
- package/dist/vue-ui-sparkgauge-ISu154lS.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-IIW24eJQ.js → vue-ui-sparkgauge-JY2kB9WX.js} +31 -29
- package/dist/vue-ui-sparkhistogram-C8zyC-ii.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DVXxA6ji.js → vue-ui-sparkhistogram-DyEPWxkP.js} +69 -67
- package/dist/vue-ui-sparkline-DL3Thtc4.cjs +1 -0
- package/dist/{vue-ui-sparkline-CH89kcaa.js → vue-ui-sparkline-DYC3sdvQ.js} +65 -63
- package/dist/{vue-ui-sparkstackbar-Bcod5yu_.js → vue-ui-sparkstackbar-7TmtP3WR.js} +46 -44
- package/dist/vue-ui-sparkstackbar-ChIM9bn2.cjs +1 -0
- package/dist/{vue-ui-stackbar-Djjcgtyg.js → vue-ui-stackbar-CP5C6Gb_.js} +128 -126
- package/dist/vue-ui-stackbar-DrtiSaNc.cjs +6 -0
- package/dist/vue-ui-strip-plot-BMYMIHGu.cjs +1 -0
- package/dist/{vue-ui-strip-plot-ByPCQ4xk.js → vue-ui-strip-plot-DJQCq_KE.js} +78 -76
- package/dist/{vue-ui-table-B6Kpda3o.cjs → vue-ui-table-D6hvgMif.cjs} +1 -1
- package/dist/{vue-ui-table-D8Sm2fzX.js → vue-ui-table-IJi0xaVg.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DjEN0l12.cjs → vue-ui-table-heatmap-BZNKXZNs.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-mlq_J56h.js → vue-ui-table-heatmap-Ls8_xq0D.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DByva7rj.cjs → vue-ui-table-sparkline-BQFK30H1.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DF29_qZk.js → vue-ui-table-sparkline-BeuvdssX.js} +5 -5
- package/dist/vue-ui-thermometer-DKm8SXlE.cjs +1 -0
- package/dist/{vue-ui-thermometer-BKf-rGuS.js → vue-ui-thermometer-DPWIvG92.js} +80 -78
- package/dist/{vue-ui-timer-B8jW8M60.js → vue-ui-timer-CEzDvZf7.js} +62 -60
- package/dist/vue-ui-timer-n6lv7oTx.cjs +64 -0
- package/dist/vue-ui-tiremarks-B33mHXZN.cjs +1 -0
- package/dist/{vue-ui-tiremarks-riEfve5q.js → vue-ui-tiremarks-BUGoY22W.js} +51 -49
- package/dist/vue-ui-treemap-DPxBZUUr.cjs +1 -0
- package/dist/{vue-ui-treemap-5F0ynBnb.js → vue-ui-treemap-DmOYjJ_F.js} +93 -91
- package/dist/vue-ui-vertical-bar-BJMYX8t4.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CxRBvHZy.js → vue-ui-vertical-bar-BpVKdSY5.js} +110 -108
- package/dist/vue-ui-waffle-DGcueccy.cjs +1 -0
- package/dist/{vue-ui-waffle-B8G4i5WH.js → vue-ui-waffle-ULg6SwPx.js} +72 -70
- package/dist/vue-ui-wheel-CWKq-CFW.cjs +1 -0
- package/dist/{vue-ui-wheel-DmzkGeCY.js → vue-ui-wheel-DlmgZd-_.js} +43 -41
- package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +1 -0
- package/dist/vue-ui-word-cloud-DWyboczt.js +574 -0
- package/dist/vue-ui-xy-Cz81fw_E.cjs +3 -0
- package/dist/{vue-ui-xy-iUQyB_PL.js → vue-ui-xy-V13Ns1gv.js} +507 -504
- package/dist/{vue-ui-xy-canvas-nraUv13Y.js → vue-ui-xy-canvas-B9cRe5gT.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CCwtKYgd.cjs → vue-ui-xy-canvas-GiuHOyj5.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-B8EMsnjU.cjs +0 -4
- package/dist/vue-ui-3d-bar-Ce-Re50D.cjs +0 -19
- package/dist/vue-ui-age-pyramid-C08rTXJn.cjs +0 -1
- package/dist/vue-ui-candlestick-m8fjxbj-.cjs +0 -2
- package/dist/vue-ui-chestnut-Y0gQvbbf.cjs +0 -6
- package/dist/vue-ui-donut-CCm7GJsm.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DiN8Jm0n.cjs +0 -1
- package/dist/vue-ui-dumbbell-lb72j7bY.cjs +0 -9
- package/dist/vue-ui-flow-B5Gxaqvl.cjs +0 -1
- package/dist/vue-ui-galaxy-Ck5cPkrh.cjs +0 -1
- package/dist/vue-ui-gauge-BwIhwSUw.cjs +0 -1
- package/dist/vue-ui-gizmo-DrGaoiM_.cjs +0 -1
- package/dist/vue-ui-heatmap-BLc6thGZ.cjs +0 -1
- package/dist/vue-ui-molecule-CAj1HFit.cjs +0 -1
- package/dist/vue-ui-mood-radar-CV2in2wO.cjs +0 -1
- package/dist/vue-ui-nested-donuts-4vO23n9z.cjs +0 -17
- package/dist/vue-ui-onion-B3mtn6xf.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-DFMbhLY9.cjs +0 -8
- package/dist/vue-ui-quadrant-CpJX1Jwa.cjs +0 -1
- package/dist/vue-ui-quick-chart-CTxsI2tk.cjs +0 -15
- package/dist/vue-ui-radar-DFjsXmJ3.cjs +0 -1
- package/dist/vue-ui-relation-circle-DXuKdCih.cjs +0 -1
- package/dist/vue-ui-scatter-DPByFMNL.cjs +0 -1
- package/dist/vue-ui-skeleton-Bli7jLZ7.cjs +0 -41
- package/dist/vue-ui-spark-trend-sfgUJ32Q.cjs +0 -1
- package/dist/vue-ui-sparkbar-CKWYzriN.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D0q9F9Nz.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-CywhBkm2.cjs +0 -1
- package/dist/vue-ui-sparkline-Besp8Ffy.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-qXm8Ozzm.cjs +0 -1
- package/dist/vue-ui-stackbar-D0fGVkCR.cjs +0 -6
- package/dist/vue-ui-strip-plot-XDj8rL9m.cjs +0 -1
- package/dist/vue-ui-thermometer-C3T56ras.cjs +0 -1
- package/dist/vue-ui-timer-B_ZvV1ON.cjs +0 -64
- package/dist/vue-ui-tiremarks-DRbSpTgq.cjs +0 -1
- package/dist/vue-ui-treemap-CtKUTs2G.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BBIWdeXH.cjs +0 -4
- package/dist/vue-ui-waffle-9a3C4Nj-.cjs +0 -1
- package/dist/vue-ui-wheel-CErxlmqw.cjs +0 -1
- package/dist/vue-ui-word-cloud-dMBTVGVk.js +0 -513
- package/dist/vue-ui-word-cloud-nmx846H2.cjs +0 -1
- package/dist/vue-ui-xy-CLYgZk3Y.cjs +0 -3
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { computed as c, onMounted as he, ref as h, watch as fe, openBlock as n, createElementBlock as k, normalizeClass as
|
|
2
|
-
import { u as ge, o as ke, e as Q, c as be, t as Ce, N as xe, X as _e, s as C, w as we, O as $e, i as Z, f as A, q as Me, r as Ne } from "./index-
|
|
3
|
-
import { _ as Pe } from "./Title-
|
|
4
|
-
import { u as Le, U as Te } from "./usePrinter-
|
|
5
|
-
import { L as Ae } from "./Legend-
|
|
6
|
-
import N from "./BaseIcon-
|
|
7
|
-
import { D as Ie } from "./DataTable-
|
|
8
|
-
import Oe from "./vue-ui-skeleton-
|
|
9
|
-
import Fe from "./vue-ui-accordion-
|
|
10
|
-
import { u as ee } from "./useNestedProp-
|
|
11
|
-
import { _ as Se } from "./
|
|
12
|
-
|
|
1
|
+
import { computed as c, onMounted as he, ref as h, watch as fe, openBlock as n, createElementBlock as k, normalizeClass as R, normalizeStyle as O, createVNode as F, createCommentVNode as i, createBlock as f, unref as s, createSlots as me, withCtx as m, renderSlot as b, normalizeProps as X, guardReactiveProps as K, createElementVNode as a, Fragment as q, renderList as Y, toDisplayString as M, createTextVNode as J, nextTick as pe } from "vue";
|
|
2
|
+
import { u as ge, o as ke, e as Q, c as be, t as Ce, N as xe, X as _e, s as C, w as we, O as $e, i as Z, f as A, q as Me, r as Ne } from "./index-DhJby8wL.js";
|
|
3
|
+
import { _ as Pe } from "./Title-1Sw6EmHy.js";
|
|
4
|
+
import { u as Le, U as Te } from "./usePrinter-Bwm8J3RQ.js";
|
|
5
|
+
import { L as Ae } from "./Legend-Cr1hulgT.js";
|
|
6
|
+
import N from "./BaseIcon-CAmYNoaf.js";
|
|
7
|
+
import { D as Ie } from "./DataTable-BXnbua0J.js";
|
|
8
|
+
import Oe from "./vue-ui-skeleton-ASX40MGk.js";
|
|
9
|
+
import Fe from "./vue-ui-accordion-Cn5Jbplg.js";
|
|
10
|
+
import { u as ee } from "./useNestedProp-CrHvyupb.js";
|
|
11
|
+
import { _ as Se } from "./PackageVersion-BVZfgDqm.js";
|
|
12
|
+
import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const je = ["id"], Be = {
|
|
13
14
|
key: 0,
|
|
14
15
|
style: "width:100%;background:transparent"
|
|
15
|
-
},
|
|
16
|
+
}, De = ["xmlns", "viewBox"], We = ["id"], ze = ["stop-color"], Ge = ["stop-color"], Ee = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ue = ["d", "stroke", "stroke-width"], He = ["stroke"], Re = ["fill"], Xe = ["stroke"], Ke = ["fill"], qe = ["stroke"], Ye = ["fill"], Je = ["stroke"], Qe = ["fill"], Ze = ["stroke"], et = ["fill"], tt = ["d", "stroke", "stroke-width", "fill"], lt = ["x1", "y1", "stroke"], ot = ["cx", "cy", "fill", "stroke"], at = ["fill", "stroke"], st = ["y", "fill", "font-weight"], rt = ["y", "fill"], nt = {
|
|
16
17
|
key: 3,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, ut = ["onClick"], it = { style: { "font-weight": "bold" } }, dt = ["innerHTML"], ct = {
|
|
19
20
|
__name: "vue-ui-mood-radar",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -34,19 +35,19 @@ const Ve = ["id"], je = {
|
|
|
34
35
|
setup(te, { expose: le }) {
|
|
35
36
|
const u = te, { vue_ui_mood_radar: oe } = ge(), _ = c(() => !!u.dataset && Object.keys(u.dataset).length);
|
|
36
37
|
he(() => {
|
|
37
|
-
|
|
38
|
+
S();
|
|
38
39
|
});
|
|
39
|
-
function
|
|
40
|
+
function S() {
|
|
40
41
|
ke(u.dataset) && Q({
|
|
41
42
|
componentName: "VueUiMoodRadar",
|
|
42
43
|
type: "dataset"
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
const w = h(be()),
|
|
46
|
-
get: () =>
|
|
46
|
+
const w = h(be()), V = h(null), ae = h(null), r = h(null), se = h(0), re = h(0), j = h(0), e = c({
|
|
47
|
+
get: () => B(),
|
|
47
48
|
set: (l) => l
|
|
48
49
|
});
|
|
49
|
-
function
|
|
50
|
+
function B() {
|
|
50
51
|
const l = ee({
|
|
51
52
|
userConfig: u.config,
|
|
52
53
|
defaultConfig: oe
|
|
@@ -59,9 +60,9 @@ const Ve = ["id"], je = {
|
|
|
59
60
|
} : l;
|
|
60
61
|
}
|
|
61
62
|
fe(() => u.config, (l) => {
|
|
62
|
-
e.value =
|
|
63
|
+
e.value = B(), S(), se.value += 1, re.value += 1, j.value += 1;
|
|
63
64
|
}, { deep: !0 });
|
|
64
|
-
const { isPrinting:
|
|
65
|
+
const { isPrinting: D, isImaging: W, generatePdf: z, generateImage: G } = Le({
|
|
65
66
|
elementId: w.value,
|
|
66
67
|
fileName: e.value.style.chart.title.text || "vue-ui-mood-radar"
|
|
67
68
|
}), P = h({
|
|
@@ -92,7 +93,7 @@ const Ve = ["id"], je = {
|
|
|
92
93
|
proportion: t / x.value,
|
|
93
94
|
color: e.value.style.chart.layout.smileys.colors[l]
|
|
94
95
|
};
|
|
95
|
-
}).sort((l, o) => o.key - l.key)),
|
|
96
|
+
}).sort((l, o) => o.key - l.key)), E = c(() => _.value ? (["1", "2", "3", "4", "5"].forEach((l) => {
|
|
96
97
|
[null, void 0].includes(u.dataset[l]) && Q({
|
|
97
98
|
componentName: "VueUiMoodRadar",
|
|
98
99
|
type: "datasetAttribute",
|
|
@@ -131,7 +132,7 @@ const Ve = ["id"], je = {
|
|
|
131
132
|
})), o = y.value.map((t) => isNaN(t.value) ? 0 : t.value);
|
|
132
133
|
return { head: l, body: o };
|
|
133
134
|
});
|
|
134
|
-
function
|
|
135
|
+
function U() {
|
|
135
136
|
pe(() => {
|
|
136
137
|
const l = g.value.head.map((d, v) => [[
|
|
137
138
|
d.name
|
|
@@ -178,7 +179,7 @@ const Ve = ["id"], je = {
|
|
|
178
179
|
function ce() {
|
|
179
180
|
return y.value;
|
|
180
181
|
}
|
|
181
|
-
function
|
|
182
|
+
function H() {
|
|
182
183
|
P.value.showTable = !P.value.showTable;
|
|
183
184
|
}
|
|
184
185
|
const T = h(!1);
|
|
@@ -187,19 +188,19 @@ const Ve = ["id"], je = {
|
|
|
187
188
|
}
|
|
188
189
|
return le({
|
|
189
190
|
getData: ce,
|
|
190
|
-
generatePdf:
|
|
191
|
-
generateCsv:
|
|
192
|
-
generateImage:
|
|
193
|
-
toggleTable:
|
|
191
|
+
generatePdf: z,
|
|
192
|
+
generateCsv: U,
|
|
193
|
+
generateImage: G,
|
|
194
|
+
toggleTable: H
|
|
194
195
|
}), (l, o) => (n(), k("div", {
|
|
195
|
-
class:
|
|
196
|
+
class: R(`vue-ui-mood-radar ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
196
197
|
ref_key: "moodRadarChart",
|
|
197
|
-
ref:
|
|
198
|
+
ref: V,
|
|
198
199
|
id: `${w.value}`,
|
|
199
200
|
style: O(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`)
|
|
200
201
|
}, [
|
|
201
|
-
e.value.style.chart.title.text ? (n(), k("div",
|
|
202
|
-
|
|
202
|
+
e.value.style.chart.title.text ? (n(), k("div", Be, [
|
|
203
|
+
F(Pe, {
|
|
203
204
|
config: {
|
|
204
205
|
title: {
|
|
205
206
|
cy: "mood-radar-title",
|
|
@@ -218,8 +219,8 @@ const Ve = ["id"], je = {
|
|
|
218
219
|
ref: ae,
|
|
219
220
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
220
221
|
color: e.value.style.chart.color,
|
|
221
|
-
isPrinting: s(
|
|
222
|
-
isImaging: s(
|
|
222
|
+
isPrinting: s(D),
|
|
223
|
+
isImaging: s(W),
|
|
223
224
|
uid: w.value,
|
|
224
225
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
225
226
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -227,13 +228,13 @@ const Ve = ["id"], je = {
|
|
|
227
228
|
hasTable: e.value.userOptions.buttons.table,
|
|
228
229
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
229
230
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
230
|
-
chartElement:
|
|
231
|
+
chartElement: V.value,
|
|
231
232
|
position: e.value.userOptions.position,
|
|
232
233
|
onToggleFullscreen: ye,
|
|
233
|
-
onGeneratePdf: s(
|
|
234
|
-
onGenerateCsv:
|
|
235
|
-
onGenerateImage: s(
|
|
236
|
-
onToggleTable:
|
|
234
|
+
onGeneratePdf: s(z),
|
|
235
|
+
onGenerateCsv: U,
|
|
236
|
+
onGenerateImage: s(G),
|
|
237
|
+
onToggleTable: H
|
|
237
238
|
}, me({ _: 2 }, [
|
|
238
239
|
l.$slots.optionPdf ? {
|
|
239
240
|
name: "optionPdf",
|
|
@@ -275,9 +276,10 @@ const Ve = ["id"], je = {
|
|
|
275
276
|
key: 2,
|
|
276
277
|
xmlns: s(_e),
|
|
277
278
|
viewBox: `0 0 ${p.value.width} ${p.value.height}`,
|
|
278
|
-
class:
|
|
279
|
+
class: R({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
279
280
|
style: O(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
280
281
|
}, [
|
|
282
|
+
F(Se),
|
|
281
283
|
a("defs", null, [
|
|
282
284
|
a("radialGradient", {
|
|
283
285
|
cx: "50%",
|
|
@@ -290,12 +292,12 @@ const Ve = ["id"], je = {
|
|
|
290
292
|
a("stop", {
|
|
291
293
|
offset: "0%",
|
|
292
294
|
"stop-color": s(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
293
|
-
}, null, 8,
|
|
295
|
+
}, null, 8, ze),
|
|
294
296
|
a("stop", {
|
|
295
297
|
offset: "100%",
|
|
296
298
|
"stop-color": s(C)(s(we)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
|
|
297
|
-
}, null, 8,
|
|
298
|
-
], 8,
|
|
299
|
+
}, null, 8, Ge)
|
|
300
|
+
], 8, We)
|
|
299
301
|
]),
|
|
300
302
|
(n(!0), k(q, null, Y(I.value.coordinates, (t) => (n(), k("line", {
|
|
301
303
|
x1: p.value.width / 2,
|
|
@@ -304,7 +306,7 @@ const Ve = ["id"], je = {
|
|
|
304
306
|
y2: t.y,
|
|
305
307
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
306
308
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
307
|
-
}, null, 8,
|
|
309
|
+
}, null, 8, Ee))), 256)),
|
|
308
310
|
a("path", {
|
|
309
311
|
d: I.value.path,
|
|
310
312
|
fill: "none",
|
|
@@ -312,14 +314,14 @@ const Ve = ["id"], je = {
|
|
|
312
314
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
313
315
|
"stroke-linejoin": "round",
|
|
314
316
|
"stroke-linecap": "round"
|
|
315
|
-
}, null, 8,
|
|
317
|
+
}, null, 8, Ue),
|
|
316
318
|
a("path", {
|
|
317
319
|
fill: "none",
|
|
318
320
|
stroke: e.value.style.chart.layout.smileys.colors[5],
|
|
319
321
|
"stroke-width": "1",
|
|
320
322
|
"stroke-linecap": "round",
|
|
321
323
|
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"
|
|
322
|
-
}, null, 8,
|
|
324
|
+
}, null, 8, He),
|
|
323
325
|
a("circle", {
|
|
324
326
|
class: "vue-ui-mood-radar-trap",
|
|
325
327
|
onMouseenter: o[0] || (o[0] = (t) => r.value = 5),
|
|
@@ -328,14 +330,14 @@ const Ve = ["id"], je = {
|
|
|
328
330
|
cy: "25",
|
|
329
331
|
r: "20",
|
|
330
332
|
fill: r.value === 5 ? s(C)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent"
|
|
331
|
-
}, null, 40,
|
|
333
|
+
}, null, 40, Re),
|
|
332
334
|
a("path", {
|
|
333
335
|
fill: "none",
|
|
334
336
|
stroke: e.value.style.chart.layout.smileys.colors[4],
|
|
335
337
|
"stroke-width": "1",
|
|
336
338
|
"stroke-linecap": "round",
|
|
337
339
|
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"
|
|
338
|
-
}, null, 8,
|
|
340
|
+
}, null, 8, Xe),
|
|
339
341
|
a("circle", {
|
|
340
342
|
class: "vue-ui-mood-radar-trap",
|
|
341
343
|
onMouseenter: o[2] || (o[2] = (t) => r.value = 4),
|
|
@@ -344,14 +346,14 @@ const Ve = ["id"], je = {
|
|
|
344
346
|
cy: "95.5",
|
|
345
347
|
r: "20",
|
|
346
348
|
fill: r.value === 4 ? s(C)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent"
|
|
347
|
-
}, null, 40,
|
|
349
|
+
}, null, 40, Ke),
|
|
348
350
|
a("path", {
|
|
349
351
|
fill: "none",
|
|
350
352
|
stroke: e.value.style.chart.layout.smileys.colors[3],
|
|
351
353
|
"stroke-width": "1",
|
|
352
354
|
"stroke-linecap": "round",
|
|
353
355
|
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"
|
|
354
|
-
}, null, 8,
|
|
356
|
+
}, null, 8, qe),
|
|
355
357
|
a("circle", {
|
|
356
358
|
class: "vue-ui-mood-radar-trap",
|
|
357
359
|
onMouseenter: o[4] || (o[4] = (t) => r.value = 3),
|
|
@@ -360,14 +362,14 @@ const Ve = ["id"], je = {
|
|
|
360
362
|
cy: "213.5",
|
|
361
363
|
r: "20",
|
|
362
364
|
fill: r.value === 3 ? s(C)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent"
|
|
363
|
-
}, null, 40,
|
|
365
|
+
}, null, 40, Ye),
|
|
364
366
|
a("path", {
|
|
365
367
|
fill: "none",
|
|
366
368
|
stroke: e.value.style.chart.layout.smileys.colors[2],
|
|
367
369
|
"stroke-width": "1",
|
|
368
370
|
"stroke-linecap": "round",
|
|
369
371
|
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"
|
|
370
|
-
}, null, 8,
|
|
372
|
+
}, null, 8, Je),
|
|
371
373
|
a("circle", {
|
|
372
374
|
class: "vue-ui-mood-radar-trap",
|
|
373
375
|
onMouseenter: o[6] || (o[6] = (t) => r.value = 2),
|
|
@@ -376,14 +378,14 @@ const Ve = ["id"], je = {
|
|
|
376
378
|
cy: "213.5",
|
|
377
379
|
r: "20",
|
|
378
380
|
fill: r.value === 2 ? s(C)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent"
|
|
379
|
-
}, null, 40,
|
|
381
|
+
}, null, 40, Qe),
|
|
380
382
|
a("path", {
|
|
381
383
|
fill: "none",
|
|
382
384
|
stroke: e.value.style.chart.layout.smileys.colors[1],
|
|
383
385
|
"stroke-width": "1",
|
|
384
386
|
"stroke-linecap": "round",
|
|
385
387
|
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"
|
|
386
|
-
}, null, 8,
|
|
388
|
+
}, null, 8, Ze),
|
|
387
389
|
a("circle", {
|
|
388
390
|
class: "vue-ui-mood-radar-trap",
|
|
389
391
|
onMouseenter: o[8] || (o[8] = (t) => r.value = 1),
|
|
@@ -392,16 +394,16 @@ const Ve = ["id"], je = {
|
|
|
392
394
|
cy: "95.5",
|
|
393
395
|
r: "20",
|
|
394
396
|
fill: r.value === 1 ? s(C)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent"
|
|
395
|
-
}, null, 40,
|
|
397
|
+
}, null, 40, et),
|
|
396
398
|
a("path", {
|
|
397
|
-
d: s($e)(
|
|
399
|
+
d: s($e)(E.value.map((t) => t.plots)),
|
|
398
400
|
stroke: e.value.style.chart.layout.dataPolygon.stroke,
|
|
399
401
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
400
402
|
"stroke-linecap": "round",
|
|
401
403
|
"stroke-linejoin": "round",
|
|
402
404
|
fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${w.value})` : s(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
403
|
-
}, null, 8,
|
|
404
|
-
(n(!0), k(q, null, Y(
|
|
405
|
+
}, null, 8, tt),
|
|
406
|
+
(n(!0), k(q, null, Y(E.value.map((t) => t.plots), (t, d) => (n(), k("g", {
|
|
405
407
|
class: "vue-ui-mood-radar-trap",
|
|
406
408
|
style: O(`opacity:${r.value == t.key ? "1" : "0"}`)
|
|
407
409
|
}, [
|
|
@@ -411,7 +413,7 @@ const Ve = ["id"], je = {
|
|
|
411
413
|
x2: 128,
|
|
412
414
|
y2: 128,
|
|
413
415
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
414
|
-
}, null, 8,
|
|
416
|
+
}, null, 8, lt),
|
|
415
417
|
a("circle", {
|
|
416
418
|
cx: t.x,
|
|
417
419
|
cy: t.y,
|
|
@@ -419,7 +421,7 @@ const Ve = ["id"], je = {
|
|
|
419
421
|
r: "3",
|
|
420
422
|
stroke: e.value.style.chart.backgroundColor,
|
|
421
423
|
"stroke-width": 0.5
|
|
422
|
-
}, null, 8,
|
|
424
|
+
}, null, 8, ot),
|
|
423
425
|
a("circle", {
|
|
424
426
|
cx: 128,
|
|
425
427
|
cy: 128,
|
|
@@ -427,7 +429,7 @@ const Ve = ["id"], je = {
|
|
|
427
429
|
r: "3",
|
|
428
430
|
stroke: e.value.style.chart.backgroundColor,
|
|
429
431
|
"stroke-width": 0.5
|
|
430
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, at),
|
|
431
433
|
a("text", {
|
|
432
434
|
x: 128,
|
|
433
435
|
y: ["5", 5].includes(t.key) ? 145 : 120,
|
|
@@ -445,7 +447,7 @@ const Ve = ["id"], je = {
|
|
|
445
447
|
r: e.value.style.chart.layout.dataLabel.roundingValue
|
|
446
448
|
}),
|
|
447
449
|
{ datapoint: t, seriesIndex: d }
|
|
448
|
-
)), 9,
|
|
450
|
+
)), 9, st),
|
|
449
451
|
a("text", {
|
|
450
452
|
x: 128,
|
|
451
453
|
y: ["5", 5].includes(t.key) ? 163 : 102,
|
|
@@ -456,12 +458,12 @@ const Ve = ["id"], je = {
|
|
|
456
458
|
v: t.value / x.value * 100,
|
|
457
459
|
s: "%",
|
|
458
460
|
r: e.value.style.chart.layout.dataLabel.roundingPercentage
|
|
459
|
-
})) + ") ", 9,
|
|
461
|
+
})) + ") ", 9, rt)
|
|
460
462
|
], 4))), 256)),
|
|
461
463
|
b(l.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
462
|
-
], 14,
|
|
463
|
-
l.$slots.watermark ? (n(), k("div",
|
|
464
|
-
b(l.$slots, "watermark", X(K({ isPrinting: s(
|
|
464
|
+
], 14, De)) : i("", !0),
|
|
465
|
+
l.$slots.watermark ? (n(), k("div", nt, [
|
|
466
|
+
b(l.$slots, "watermark", X(K({ isPrinting: s(D) || s(W) })), void 0, !0)
|
|
465
467
|
])) : i("", !0),
|
|
466
468
|
_.value ? i("", !0) : (n(), f(Oe, {
|
|
467
469
|
key: 4,
|
|
@@ -483,7 +485,7 @@ const Ve = ["id"], je = {
|
|
|
483
485
|
e.value.style.chart.legend.show ? (n(), f(Ae, {
|
|
484
486
|
legendSet: y.value,
|
|
485
487
|
config: ie.value,
|
|
486
|
-
key: `legend_${
|
|
488
|
+
key: `legend_${j.value}`,
|
|
487
489
|
style: { display: "flex", "row-gap": "6px" }
|
|
488
490
|
}, {
|
|
489
491
|
item: m(({ legend: t, index: d }) => [
|
|
@@ -521,7 +523,7 @@ const Ve = ["id"], je = {
|
|
|
521
523
|
name: "moodHappy",
|
|
522
524
|
stroke: e.value.style.chart.layout.smileys.colors[t.key]
|
|
523
525
|
}, null, 8, ["stroke"])) : i("", !0),
|
|
524
|
-
a("span",
|
|
526
|
+
a("span", it, M(s(Z)(
|
|
525
527
|
e.value.style.chart.layout.dataLabel.formatter,
|
|
526
528
|
t.value,
|
|
527
529
|
s(A)({
|
|
@@ -537,7 +539,7 @@ const Ve = ["id"], je = {
|
|
|
537
539
|
s: "%",
|
|
538
540
|
r: e.value.style.chart.legend.roundingPercentage
|
|
539
541
|
})) + ") ", 1)
|
|
540
|
-
], 8,
|
|
542
|
+
], 8, ut)
|
|
541
543
|
]),
|
|
542
544
|
_: 1
|
|
543
545
|
}, 8, ["legendSet", "config"])) : i("", !0),
|
|
@@ -559,7 +561,7 @@ const Ve = ["id"], je = {
|
|
|
559
561
|
}
|
|
560
562
|
}, {
|
|
561
563
|
content: m(() => [
|
|
562
|
-
|
|
564
|
+
F(Ie, {
|
|
563
565
|
colNames: L.value.colNames,
|
|
564
566
|
head: L.value.head,
|
|
565
567
|
body: L.value.body,
|
|
@@ -571,7 +573,7 @@ const Ve = ["id"], je = {
|
|
|
571
573
|
a("div", {
|
|
572
574
|
innerHTML: t,
|
|
573
575
|
style: { display: "flex", "align-items": "center" }
|
|
574
|
-
}, null, 8,
|
|
576
|
+
}, null, 8, dt)
|
|
575
577
|
]),
|
|
576
578
|
td: m(({ td: t }) => [
|
|
577
579
|
J(M(t.name || t), 1)
|
|
@@ -581,9 +583,9 @@ const Ve = ["id"], je = {
|
|
|
581
583
|
]),
|
|
582
584
|
_: 1
|
|
583
585
|
}, 8, ["config"])) : i("", !0)
|
|
584
|
-
], 14,
|
|
586
|
+
], 14, je));
|
|
585
587
|
}
|
|
586
|
-
},
|
|
588
|
+
}, wt = /* @__PURE__ */ Ve(ct, [["__scopeId", "data-v-bded5f3b"]]);
|
|
587
589
|
export {
|
|
588
|
-
|
|
590
|
+
wt as default
|
|
589
591
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D09qCApg.cjs"),X=require("./Title-Bjrh7khe.cjs"),S=require("./usePrinter-DdsPm5a4.cjs"),K=require("./Legend-Dhm9_peB.cjs"),p=require("./BaseIcon-dYWMubrH.cjs"),Y=require("./DataTable-oa0Srfuc.cjs"),J=require("./vue-ui-skeleton-CAlTn_Cg.cjs"),Q=require("./vue-ui-accordion-BAHX7KzB.cjs"),T=require("./useNestedProp-Bwd7mK1Z.cjs"),Z=require("./PackageVersion-BkgJVmj1.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],oe={key:0,style:"width:100%;background:transparent"},le=["xmlns","viewBox"],ae=["id"],re=["stop-color"],ne=["stop-color"],se=["x1","y1","x2","y2","stroke","stroke-width"],ue=["d","stroke","stroke-width"],ie=["stroke"],ce=["fill"],de=["stroke"],ye=["fill"],ve=["stroke"],me=["fill"],he=["stroke"],fe=["fill"],pe=["stroke"],ke=["fill"],ge=["d","stroke","stroke-width","fill"],be=["x1","y1","stroke"],Ce=["cx","cy","fill","stroke"],Ne=["fill","stroke"],xe=["y","fill","font-weight"],we=["y","fill"],_e={key:3,class:"vue-data-ui-watermark"},Ve=["onClick"],Pe={style:{"font-weight":"bold"}},Me=["innerHTML"],$e={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(O,{expose:A}){const s=O,{vue_ui_mood_radar:I}=r.useConfig(),m=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{N()});function N(){r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiMoodRadar",type:"dataset"})}const h=e.ref(r.createUid()),x=e.ref(null),F=e.ref(null),n=e.ref(null),D=e.ref(0),q=e.ref(0),w=e.ref(0),t=e.computed({get:()=>_(),set:l=>l});function _(){const l=T.useNestedProp({userConfig:s.config,defaultConfig:I});return l.theme?{...T.useNestedProp({userConfig:r.themes.vue_ui_mood_radar[l.theme]||s.config,defaultConfig:l})}:l}e.watch(()=>s.config,l=>{t.value=_(),N(),D.value+=1,q.value+=1,w.value+=1},{deep:!0});const{isPrinting:V,isImaging:P,generatePdf:M,generateImage:$}=S.usePrinter({elementId:h.value,fileName:t.value.style.chart.title.text||"vue-ui-mood-radar"}),k=e.ref({showTable:t.value.table.show}),d=e.computed(()=>({height:256,width:256})),C=e.computed(()=>r.createPolygonPath({plot:{x:128,y:d.value.height/2},radius:90,sides:5,rotation:11}));function z({centerX:l,centerY:a,apexX:o,apexY:u,proportion:c,key:f,value:R}){return{x:l+(o-l)*c,y:a+(u-a)*c,key:f,value:R}}const j=e.computed(()=>Math.max(...Object.values(s.dataset).map(l=>isNaN(l)?0:l))),v=e.computed(()=>Object.values(s.dataset).reduce((l,a)=>(isNaN(l)?0:l)+(isNaN(a)?0:a),0)),i=e.computed(()=>Object.keys(s.dataset).map((l,a)=>{const o=typeof s.dataset[l]!="number"||isNaN(s.dataset[l])?0:s.dataset[l];return{index:a,key:l,value:o,proportion:o/v.value,color:t.value.style.chart.layout.smileys.colors[l]}}).sort((l,a)=>a.key-l.key)),B=e.computed(()=>m.value?(["1","2","3","4","5"].forEach(l=>{[null,void 0].includes(s.dataset[l])&&r.error({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:l})}),C.value.coordinates.map((l,a)=>{const o=z({centerX:d.value.width/2,centerY:d.value.height/2,apexX:l.x,apexY:l.y,proportion:i.value[a].value/j.value,key:i.value[a].key,value:i.value[a].value});return{...l,plots:o,key:i.value[a].key}})):[]),W=e.computed(()=>({cy:"mood-radar-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function G(l){l===n.value?n.value=null:n.value=l}const y=e.computed(()=>{const l=i.value.map(o=>({name:o.key,color:o.color})),a=i.value.map(o=>isNaN(o.value)?0:o.value);return{head:l,body:a}});function E(){e.nextTick(()=>{const l=y.value.head.map((u,c)=>[[u.name],[y.value.body[c]],[isNaN(y.value.body[c]/v.value)?"-":y.value.body[c]/v.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-mood-radar"})})}const g=e.computed(()=>{const l=[' <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>',Number(v.value.toFixed(t.value.table.td.roundingValue)).toLocaleString(),"100%"],a=y.value.head.map((c,f)=>[{color:c.color,name:c.name},y.value.body[f].toFixed(t.value.table.td.roundingValue),isNaN(y.value.body[f]/v.value)?"-":(y.value.body[f]/v.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},u=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:u}});function U(){return i.value}function L(){k.value.showTable=!k.value.showTable}const b=e.ref(!1);function H(l){b.value=l}return A({getData:U,generatePdf:M,generateCsv:E,generateImage:$,toggleTable:L}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:x,id:`${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(X._sfc_main,{config:{title:{cy:"mood-radar-title",...t.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(S.UserOptions,{key:1,ref_key:"details",ref:F,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(V),isImaging:e.unref(P),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,titles:{...t.value.userOptions.buttonTitles},chartElement:x.value,position:t.value.userOptions.position,onToggleFullscreen:H,onGeneratePdf:e.unref(M),onGenerateCsv:E,onGenerateImage:e.unref($),onToggleTable:L},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${d.value.width} ${d.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Z._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,re),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.gradient.intensity/100),t.value.style.chart.layout.dataPolygon.opacity)},null,8,ne)],8,ae)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.coordinates,o=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.width/2,y1:d.value.height/2,x2:o.x,y2:o.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,se))),256)),e.createElementVNode("path",{d:C.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,ue),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",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"},null,8,ie),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[0]||(a[0]=o=>n.value=5),onMouseleave:a[1]||(a[1]=o=>n.value=null),cx:"128",cy:"25",r:"20",fill:n.value===5?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[5],20):"transparent"},null,40,ce),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",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"},null,8,de),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[2]||(a[2]=o=>n.value=4),onMouseleave:a[3]||(a[3]=o=>n.value=null),cx:"227",cy:"95.5",r:"20",fill:n.value===4?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[4],20):"transparent"},null,40,ye),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",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"},null,8,ve),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[4]||(a[4]=o=>n.value=3),onMouseleave:a[5]||(a[5]=o=>n.value=null),cx:"190",cy:"213.5",r:"20",fill:n.value===3?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[3],20):"transparent"},null,40,me),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",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"},null,8,he),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[6]||(a[6]=o=>n.value=2),onMouseleave:a[7]||(a[7]=o=>n.value=null),cx:"65",cy:"213.5",r:"20",fill:n.value===2?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[2],20):"transparent"},null,40,fe),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",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"},null,8,pe),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[8]||(a[8]=o=>n.value=1),onMouseleave:a[9]||(a[9]=o=>n.value=null),cx:"29",cy:"95.5",r:"20",fill:n.value===1?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[1],20):"transparent"},null,40,ke),e.createElementVNode("path",{d:e.unref(r.makePath)(B.value.map(o=>o.plots)),stroke:t.value.style.chart.layout.dataPolygon.stroke,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${h.value})`:e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,ge),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value.map(o=>o.plots),(o,u)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${n.value==o.key?"1":"0"}`)},[e.createElementVNode("line",{x1:o.x,y1:o.y,x2:128,y2:128,stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,be),e.createElementVNode("circle",{cx:o.x,cy:o.y,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Ce),e.createElementVNode("circle",{cx:128,cy:128,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Ne),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?145:120,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":t.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:o.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:o,seriesIndex:u})),9,xe),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?163:102,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(e.unref(r.dataLabel)({v:o.value/v.value*100,s:"%",r:t.value.style.chart.layout.dataLabel.roundingPercentage}))+") ",9,we)],4))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,le)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",_e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(V)||e.unref(P)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:4,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(K.Legend,{legendSet:i.value,config:W.value,key:`legend_${w.value}`,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:o,index:u})=>[e.createElementVNode("div",{onClick:()=>G(o.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[o.key==1?(e.openBlock(),e.createBlock(p.default,{key:0,strokeWidth:1,name:"moodSad",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==2?(e.openBlock(),e.createBlock(p.default,{key:1,strokeWidth:1,name:"moodFlat",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==3?(e.openBlock(),e.createBlock(p.default,{key:2,strokeWidth:1,name:"moodNeutral",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==4?(e.openBlock(),e.createBlock(p.default,{key:3,strokeWidth:1,name:"smiley",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==5?(e.openBlock(),e.createBlock(p.default,{key:4,strokeWidth:1,name:"moodHappy",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",Pe,e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:o.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:o,seriesIndex:u})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(r.dataLabel)({v:o.proportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],8,Ve)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:i.value},void 0,!0),m.value?(e.openBlock(),e.createBlock(Q.default,{key:6,hideDetails:"",config:{open:k.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(Y.DataTable,{colNames:g.value.colNames,head:g.value.head,body:g.value.body,config:g.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[10]||(a[10]=o=>k.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Me)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,te))}},Be=ee._export_sfc($e,[["__scopeId","data-v-bded5f3b"]]);exports.default=Be;
|