vue-data-ui 3.26.5 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.js} +2 -2
- package/dist/components/arrow.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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/{dom-to-png-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
- package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.js} +10 -10
- 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 +212 -59
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
|
@@ -0,0 +1,1111 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, D as n, Jt as r, Lt as i, M as a, X as ee, Yt as te, at as ne, i as re, nn as ie, nt as ae, t as oe, zt as se } from "./lib-D4wK6ljP.js";
|
|
3
|
+
import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ue } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
+
import { t as de } from "./usePrinter-DdW2GSm0.js";
|
|
6
|
+
import { n as fe, t as pe } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as me } from "./useNestedProp-DR_8JPol.js";
|
|
8
|
+
import { t as he } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ge } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as _e } from "./img-Bb5rHcpO.js";
|
|
11
|
+
import { n as ve } from "./Title-BMCuINbv.js";
|
|
12
|
+
import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as be, t as xe } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as Se } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as Ce } from "./A11yDataTable-DdRsVULz.js";
|
|
16
|
+
import { t as we } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
+
import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as Ee } from "./Legend-CulFgjUY.js";
|
|
19
|
+
import { t as De } from "./vue_ui_mood_radar-BA6LAKhk.js";
|
|
20
|
+
import { Fragment as Oe, Teleport as ke, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as Ae, createTextVNode as je, createVNode as d, defineAsyncComponent as f, guardReactiveProps as p, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeProps as m, normalizeStyle as h, onMounted as Fe, openBlock as g, ref as _, renderList as Ie, renderSlot as v, resolveDynamicComponent as Le, toDisplayString as y, toRefs as Re, unref as b, watch as ze, withCtx as x } from "vue";
|
|
21
|
+
//#region src/components/vue-ui-mood-radar.vue
|
|
22
|
+
var Be = /* @__PURE__ */ e({ default: () => S }), Ve = ["id"], He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
|
|
23
|
+
"xmlns",
|
|
24
|
+
"aria-describedby",
|
|
25
|
+
"viewBox"
|
|
26
|
+
], Ke = ["width", "height"], qe = [
|
|
27
|
+
"x1",
|
|
28
|
+
"y1",
|
|
29
|
+
"x2",
|
|
30
|
+
"y2",
|
|
31
|
+
"stroke",
|
|
32
|
+
"stroke-width"
|
|
33
|
+
], Je = [
|
|
34
|
+
"d",
|
|
35
|
+
"stroke",
|
|
36
|
+
"stroke-width"
|
|
37
|
+
], Ye = ["transform"], Xe = ["stroke"], Ze = ["aria-label", "fill"], Qe = ["transform"], $e = ["stroke"], et = ["aria-label", "fill"], tt = ["transform"], nt = ["stroke"], rt = ["aria-label", "fill"], it = ["transform"], at = ["stroke"], ot = ["aria-label", "fill"], st = ["transform"], ct = ["stroke"], lt = ["aria-label", "fill"], ut = [
|
|
38
|
+
"d",
|
|
39
|
+
"stroke",
|
|
40
|
+
"stroke-width",
|
|
41
|
+
"fill"
|
|
42
|
+
], dt = [
|
|
43
|
+
"x1",
|
|
44
|
+
"y1",
|
|
45
|
+
"x2",
|
|
46
|
+
"y2",
|
|
47
|
+
"stroke"
|
|
48
|
+
], ft = [
|
|
49
|
+
"cx",
|
|
50
|
+
"cy",
|
|
51
|
+
"fill",
|
|
52
|
+
"stroke"
|
|
53
|
+
], pt = [
|
|
54
|
+
"cx",
|
|
55
|
+
"cy",
|
|
56
|
+
"fill",
|
|
57
|
+
"stroke"
|
|
58
|
+
], mt = [
|
|
59
|
+
"x",
|
|
60
|
+
"y",
|
|
61
|
+
"fill",
|
|
62
|
+
"font-weight"
|
|
63
|
+
], ht = [
|
|
64
|
+
"x",
|
|
65
|
+
"y",
|
|
66
|
+
"fill"
|
|
67
|
+
], gt = {
|
|
68
|
+
key: 0,
|
|
69
|
+
style: {
|
|
70
|
+
position: "absolute",
|
|
71
|
+
top: "100%",
|
|
72
|
+
left: "0",
|
|
73
|
+
width: "100%"
|
|
74
|
+
},
|
|
75
|
+
"data-dom-to-png-ignore": "",
|
|
76
|
+
"aria-hidden": "true"
|
|
77
|
+
}, _t = {
|
|
78
|
+
key: 5,
|
|
79
|
+
class: "vue-data-ui-watermark"
|
|
80
|
+
}, vt = ["id"], yt = ["onClick", "onKeydown"], bt = { key: 0 }, xt = { key: 1 }, S = /*#__PURE__*/ ye({
|
|
81
|
+
__name: "vue-ui-mood-radar",
|
|
82
|
+
props: {
|
|
83
|
+
config: {
|
|
84
|
+
type: Object,
|
|
85
|
+
default() {
|
|
86
|
+
return {};
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
dataset: {
|
|
90
|
+
type: Object,
|
|
91
|
+
default() {
|
|
92
|
+
return {};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
emits: ["copyAlt"],
|
|
97
|
+
setup(e, { expose: ye, emit: Be }) {
|
|
98
|
+
let S = f(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), St = f(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Ct = f(() => import("./DataTable-CjF_An2h.js")), wt = f(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Tt = f(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Et = f(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Dt = f(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_mood_radar: Ot } = ue(), { isThemeValid: kt, warnInvalidTheme: At } = he(), C = e, jt = Be, w = _(ee()), T = _(null), E = _(null), Mt = _(null), Nt = _(0), Pt = _(0), Ft = _(0), It = _(null), Lt = _(null), D = _(null), Rt = _(null), zt = _(null), Bt = _(!1), O = _(null), Vt = _(null), k = _(null), Ht = _(!1), Ut = o(() => !!C.dataset && Object.keys(C.dataset).length), A = _(Zt()), j = o(() => A.value.userOptions), M = o(() => A.value.style.chart.layout.smileys), N = o(() => A.value.style.chart.layout), P = o(() => A.value.style.chart);
|
|
99
|
+
ce({
|
|
100
|
+
config: () => A.value,
|
|
101
|
+
dataset: () => C.dataset,
|
|
102
|
+
component: "VueUiMoodRadar",
|
|
103
|
+
rules: [le.noHint]
|
|
104
|
+
});
|
|
105
|
+
let F = o(() => A.value.userOptions.useCursorPointer), Wt = o(() => ie({
|
|
106
|
+
defaultConfig: {
|
|
107
|
+
userOptions: { show: !1 },
|
|
108
|
+
table: { show: !1 },
|
|
109
|
+
style: { chart: {
|
|
110
|
+
backgroundColor: "#99999930",
|
|
111
|
+
layout: {
|
|
112
|
+
grid: { stroke: "#6A6A6A" },
|
|
113
|
+
outerPolygon: { stroke: "#6A6A6A" },
|
|
114
|
+
dataPolygon: {
|
|
115
|
+
color: "#6A6A6A",
|
|
116
|
+
opacity: 30,
|
|
117
|
+
stroke: "#6A6A6A"
|
|
118
|
+
},
|
|
119
|
+
smileys: { colors: {
|
|
120
|
+
1: "#DBDBDB",
|
|
121
|
+
2: "#C4C4C4",
|
|
122
|
+
3: "#ADADAD",
|
|
123
|
+
4: "#969696",
|
|
124
|
+
5: "#808080"
|
|
125
|
+
} },
|
|
126
|
+
dataLabel: { color: "transparent" }
|
|
127
|
+
},
|
|
128
|
+
legend: { backgroundColor: "transparent" }
|
|
129
|
+
} }
|
|
130
|
+
},
|
|
131
|
+
userConfig: A.value.skeletonConfig ?? {}
|
|
132
|
+
})), { loading: Gt, FINAL_DATASET: I } = fe({
|
|
133
|
+
...Re(C),
|
|
134
|
+
FINAL_CONFIG: A,
|
|
135
|
+
prepareConfig: Zt,
|
|
136
|
+
callback: () => {
|
|
137
|
+
Promise.resolve().then(async () => {
|
|
138
|
+
await Ne(), R.value.showTable = A.value.table.show;
|
|
139
|
+
});
|
|
140
|
+
},
|
|
141
|
+
skeletonDataset: C.config?.skeletonDataset ?? {
|
|
142
|
+
1: 1,
|
|
143
|
+
2: 1,
|
|
144
|
+
3: 1,
|
|
145
|
+
4: 1,
|
|
146
|
+
5: 1
|
|
147
|
+
},
|
|
148
|
+
skeletonConfig: ie({
|
|
149
|
+
defaultConfig: A.value,
|
|
150
|
+
userConfig: Wt.value
|
|
151
|
+
})
|
|
152
|
+
});
|
|
153
|
+
Fe(() => {
|
|
154
|
+
Bt.value = !0, qt();
|
|
155
|
+
});
|
|
156
|
+
let Kt = o(() => A.value.debug);
|
|
157
|
+
function qt() {
|
|
158
|
+
if (se(C.dataset) && ne({
|
|
159
|
+
componentName: "VueUiMoodRadar",
|
|
160
|
+
type: "dataset",
|
|
161
|
+
debug: Kt.value
|
|
162
|
+
}), A.value.responsive) {
|
|
163
|
+
let e = be(() => {
|
|
164
|
+
let { width: e, height: t } = xe({
|
|
165
|
+
chart: T.value,
|
|
166
|
+
title: P.value.title.text ? It.value : null,
|
|
167
|
+
legend: P.value.legend.show ? Lt.value : null,
|
|
168
|
+
noTitle: Mt.value,
|
|
169
|
+
source: zt.value
|
|
170
|
+
});
|
|
171
|
+
requestAnimationFrame(() => {
|
|
172
|
+
z.value.width = e, z.value.height = t - 12;
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
D.value && (Rt.value && D.value.unobserve(Rt.value), D.value.disconnect()), D.value = new ResizeObserver(e), Rt.value = T.value.parentNode, D.value.observe(Rt.value);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
let { userOptionsVisible: Jt, setUserOptionsVisibility: Yt, keepUserOptionState: Xt } = we({ config: A.value }), { svgRef: L } = Te({ config: P.value.title });
|
|
179
|
+
function Zt() {
|
|
180
|
+
let e = me({
|
|
181
|
+
userConfig: C.config,
|
|
182
|
+
defaultConfig: Ot
|
|
183
|
+
}), t = e.theme;
|
|
184
|
+
if (!t) return e;
|
|
185
|
+
if (!kt.value(e)) return At(e), e;
|
|
186
|
+
let n = me({
|
|
187
|
+
userConfig: De[t] || C.config,
|
|
188
|
+
defaultConfig: e
|
|
189
|
+
});
|
|
190
|
+
return me({
|
|
191
|
+
userConfig: C.config,
|
|
192
|
+
defaultConfig: n
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
ze(() => C.config, (e) => {
|
|
196
|
+
A.value = Zt(), Jt.value = !A.value.userOptions.showOnChartHover, qt(), Nt.value += 1, Pt.value += 1, Ft.value += 1, R.value.showTable = A.value.table.show;
|
|
197
|
+
}, { deep: !0 });
|
|
198
|
+
let { isPrinting: Qt, isImaging: $t, generatePdf: en, generateImage: tn } = de({
|
|
199
|
+
elementId: w.value,
|
|
200
|
+
fileName: P.value.title.text || "vue-ui-mood-radar",
|
|
201
|
+
options: A.value.userOptions.print
|
|
202
|
+
}), nn = o(() => A.value.userOptions.show && !P.value.title.text), R = _({ showTable: A.value.table.show }), z = _({
|
|
203
|
+
height: 256,
|
|
204
|
+
width: 256
|
|
205
|
+
}), rn = {
|
|
206
|
+
5: {
|
|
207
|
+
x: 128,
|
|
208
|
+
y: 35
|
|
209
|
+
},
|
|
210
|
+
4: {
|
|
211
|
+
x: 218,
|
|
212
|
+
y: 98.5
|
|
213
|
+
},
|
|
214
|
+
3: {
|
|
215
|
+
x: 185,
|
|
216
|
+
y: 204
|
|
217
|
+
},
|
|
218
|
+
2: {
|
|
219
|
+
x: 70,
|
|
220
|
+
y: 204
|
|
221
|
+
},
|
|
222
|
+
1: {
|
|
223
|
+
x: 38.5,
|
|
224
|
+
y: 98.5
|
|
225
|
+
}
|
|
226
|
+
}, an = o(() => {
|
|
227
|
+
let e = {};
|
|
228
|
+
return un.value.forEach((t) => {
|
|
229
|
+
e[t.key] = {
|
|
230
|
+
x: t.x,
|
|
231
|
+
y: t.y
|
|
232
|
+
};
|
|
233
|
+
}), e;
|
|
234
|
+
});
|
|
235
|
+
function B(e) {
|
|
236
|
+
let t = rn[e], n = an.value[e] || t;
|
|
237
|
+
return `translate(${n.x - t.x}, ${n.y - t.y})`;
|
|
238
|
+
}
|
|
239
|
+
let on = o(() => a({
|
|
240
|
+
plot: {
|
|
241
|
+
x: z.value.width / 2,
|
|
242
|
+
y: z.value.height / 2
|
|
243
|
+
},
|
|
244
|
+
radius: Math.min(z.value.height, z.value.width) * .35,
|
|
245
|
+
sides: 5,
|
|
246
|
+
rotation: 11
|
|
247
|
+
}));
|
|
248
|
+
function sn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i, key: a, value: ee }) {
|
|
249
|
+
return {
|
|
250
|
+
x: e + (n - e) * i,
|
|
251
|
+
y: t + (r - t) * i,
|
|
252
|
+
key: a,
|
|
253
|
+
value: ee
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
let cn = o(() => Math.max(...Object.values(I.value).map((e) => isNaN(e) ? 0 : e))), V = o(() => Object.values(I.value).reduce((e, t) => (isNaN(e) ? 0 : e) + (isNaN(t) ? 0 : t), 0)), H = o(() => Object.keys(I.value).map((e, t) => {
|
|
257
|
+
let n = typeof I.value[e] != "number" || isNaN(I.value[e]) ? 0 : I.value[e];
|
|
258
|
+
return {
|
|
259
|
+
index: t,
|
|
260
|
+
key: e,
|
|
261
|
+
value: n,
|
|
262
|
+
proportion: n / V.value,
|
|
263
|
+
color: M.value.colors[e]
|
|
264
|
+
};
|
|
265
|
+
}).map((e) => ({
|
|
266
|
+
...e,
|
|
267
|
+
onSelect: () => U(e.key)
|
|
268
|
+
})).sort((e, t) => t.key - e.key)), ln = o(() => H.value.map((e, n) => ({
|
|
269
|
+
...e,
|
|
270
|
+
display: `${re(N.value.dataLabel.formatter, e.value, t({
|
|
271
|
+
p: N.value.dataLabel.prefix,
|
|
272
|
+
v: e.value,
|
|
273
|
+
s: N.value.dataLabel.suffix,
|
|
274
|
+
r: N.value.dataLabel.roundingValue
|
|
275
|
+
}))}${Gt.value ? "" : ` (${t({
|
|
276
|
+
v: e.proportion * 100,
|
|
277
|
+
s: "%",
|
|
278
|
+
r: P.value.legend.roundingPercentage
|
|
279
|
+
})})`}`
|
|
280
|
+
}))), un = o(() => ([
|
|
281
|
+
"1",
|
|
282
|
+
"2",
|
|
283
|
+
"3",
|
|
284
|
+
"4",
|
|
285
|
+
"5"
|
|
286
|
+
].forEach((e) => {
|
|
287
|
+
[null, void 0].includes(I.value[e]) && ne({
|
|
288
|
+
componentName: "VueUiMoodRadar",
|
|
289
|
+
type: "datasetAttribute",
|
|
290
|
+
property: e,
|
|
291
|
+
debug: Kt.value
|
|
292
|
+
});
|
|
293
|
+
}), on.value.coordinates.map((e, t) => {
|
|
294
|
+
let n = sn({
|
|
295
|
+
centerX: z.value.width / 2,
|
|
296
|
+
centerY: z.value.height / 2,
|
|
297
|
+
apexX: e.x,
|
|
298
|
+
apexY: e.y,
|
|
299
|
+
proportion: H.value[t].value / cn.value,
|
|
300
|
+
key: H.value[t].key,
|
|
301
|
+
value: H.value[t].value
|
|
302
|
+
});
|
|
303
|
+
return {
|
|
304
|
+
...e,
|
|
305
|
+
plots: n,
|
|
306
|
+
key: H.value[t].key
|
|
307
|
+
};
|
|
308
|
+
}))), dn = o(() => ({
|
|
309
|
+
cy: "mood-radar-legend",
|
|
310
|
+
backgroundColor: P.value.legend.backgroundColor,
|
|
311
|
+
color: P.value.legend.color,
|
|
312
|
+
fontSize: P.value.legend.fontSize,
|
|
313
|
+
paddingBottom: 12,
|
|
314
|
+
fontWeight: P.value.legend.bold ? "bold" : ""
|
|
315
|
+
}));
|
|
316
|
+
function U(e) {
|
|
317
|
+
e === E.value ? E.value = null : (E.value = e, K(e));
|
|
318
|
+
}
|
|
319
|
+
function W(e) {
|
|
320
|
+
E.value = e;
|
|
321
|
+
let t = H.value.find((t) => t.key === e);
|
|
322
|
+
A.value.events.datapointEnter && A.value.events.datapointEnter({
|
|
323
|
+
datapoint: t,
|
|
324
|
+
seriesIndex: t.index
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
function G(e) {
|
|
328
|
+
E.value = null;
|
|
329
|
+
let t = H.value.find((t) => t.key === e);
|
|
330
|
+
A.value.events.datapointLeave && A.value.events.datapointLeave({
|
|
331
|
+
datapoint: t,
|
|
332
|
+
seriesIndex: t.index
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
function K(e) {
|
|
336
|
+
let t = H.value.find((t) => t.key === e);
|
|
337
|
+
A.value.events.datapointClick && A.value.events.datapointClick({
|
|
338
|
+
datapoint: t,
|
|
339
|
+
seriesIndex: t.index
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
let q = o(() => ({
|
|
343
|
+
head: H.value.map((e) => ({
|
|
344
|
+
name: e.key,
|
|
345
|
+
color: e.color
|
|
346
|
+
})),
|
|
347
|
+
body: H.value.map((e) => isNaN(e.value) ? 0 : e.value)
|
|
348
|
+
}));
|
|
349
|
+
function fn(e = null) {
|
|
350
|
+
Ne(() => {
|
|
351
|
+
let t = q.value.head.map((e, t) => [
|
|
352
|
+
[e.name],
|
|
353
|
+
[q.value.body[t]],
|
|
354
|
+
[isNaN(q.value.body[t] / V.value) ? "-" : q.value.body[t] / V.value * 100]
|
|
355
|
+
]), r = [
|
|
356
|
+
[P.value.title.text],
|
|
357
|
+
[P.value.title.subtitle.text],
|
|
358
|
+
[
|
|
359
|
+
[""],
|
|
360
|
+
["val"],
|
|
361
|
+
["%"]
|
|
362
|
+
]
|
|
363
|
+
].concat(t), i = n(r);
|
|
364
|
+
e ? e(i) : ae({
|
|
365
|
+
csvContent: i,
|
|
366
|
+
title: P.value.title.text || "vue-ui-mood-radar"
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
let J = o(() => ({
|
|
371
|
+
head: [
|
|
372
|
+
"__SUM__",
|
|
373
|
+
Number(V.value.toFixed(A.value.table.td.roundingValue)).toLocaleString(),
|
|
374
|
+
"100%"
|
|
375
|
+
],
|
|
376
|
+
body: q.value.head.map((e, t) => [
|
|
377
|
+
{
|
|
378
|
+
color: e.color,
|
|
379
|
+
name: e.name
|
|
380
|
+
},
|
|
381
|
+
q.value.body[t].toFixed(A.value.table.td.roundingValue),
|
|
382
|
+
isNaN(q.value.body[t] / V.value) ? "-" : (q.value.body[t] / V.value * 100).toFixed(A.value.table.td.roundingPercentage) + "%"
|
|
383
|
+
]),
|
|
384
|
+
config: {
|
|
385
|
+
th: {
|
|
386
|
+
backgroundColor: A.value.table.th.backgroundColor,
|
|
387
|
+
color: A.value.table.th.color,
|
|
388
|
+
outline: A.value.table.th.outline
|
|
389
|
+
},
|
|
390
|
+
td: {
|
|
391
|
+
backgroundColor: A.value.table.td.backgroundColor,
|
|
392
|
+
color: A.value.table.td.color,
|
|
393
|
+
outline: A.value.table.td.outline
|
|
394
|
+
},
|
|
395
|
+
breakpoint: A.value.table.responsiveBreakpoint
|
|
396
|
+
},
|
|
397
|
+
colNames: [
|
|
398
|
+
A.value.table.columnNames.series,
|
|
399
|
+
A.value.table.columnNames.value,
|
|
400
|
+
A.value.table.columnNames.percentage
|
|
401
|
+
]
|
|
402
|
+
}));
|
|
403
|
+
function pn() {
|
|
404
|
+
return H.value;
|
|
405
|
+
}
|
|
406
|
+
function mn() {
|
|
407
|
+
R.value.showTable = !R.value.showTable;
|
|
408
|
+
}
|
|
409
|
+
let Y = _(!1);
|
|
410
|
+
function hn(e) {
|
|
411
|
+
Y.value = e;
|
|
412
|
+
}
|
|
413
|
+
let X = _(!1);
|
|
414
|
+
function gn() {
|
|
415
|
+
X.value = !X.value;
|
|
416
|
+
}
|
|
417
|
+
async function _n({ scale: e = 2 } = {}) {
|
|
418
|
+
if (!T.value) return;
|
|
419
|
+
let { width: t, height: n } = T.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
420
|
+
domElement: T.value,
|
|
421
|
+
base64: !0,
|
|
422
|
+
img: !0,
|
|
423
|
+
scale: e
|
|
424
|
+
});
|
|
425
|
+
return {
|
|
426
|
+
imageUri: i,
|
|
427
|
+
base64: a,
|
|
428
|
+
title: P.value.title.text,
|
|
429
|
+
width: t,
|
|
430
|
+
height: n,
|
|
431
|
+
aspectRatio: r
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
let Z = o(() => {
|
|
435
|
+
let e = A.value.table.useDialog && !A.value.table.show, t = R.value.showTable;
|
|
436
|
+
return {
|
|
437
|
+
component: e ? Dt : St,
|
|
438
|
+
title: `${P.value.title.text}${P.value.title.subtitle.text ? `: ${P.value.title.subtitle.text}` : ""}`,
|
|
439
|
+
props: e ? {
|
|
440
|
+
backgroundColor: A.value.table.th.backgroundColor,
|
|
441
|
+
color: A.value.table.th.color,
|
|
442
|
+
headerColor: A.value.table.th.color,
|
|
443
|
+
headerBg: A.value.table.th.backgroundColor,
|
|
444
|
+
isFullscreen: Y.value,
|
|
445
|
+
fullscreenParent: T.value,
|
|
446
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
447
|
+
isCursorPointer: F.value
|
|
448
|
+
} : {
|
|
449
|
+
hideDetails: !0,
|
|
450
|
+
config: {
|
|
451
|
+
open: t,
|
|
452
|
+
maxHeight: 1e4,
|
|
453
|
+
body: {
|
|
454
|
+
backgroundColor: P.value.backgroundColor,
|
|
455
|
+
color: P.value.color
|
|
456
|
+
},
|
|
457
|
+
head: {
|
|
458
|
+
backgroundColor: P.value.backgroundColor,
|
|
459
|
+
color: P.value.color
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
});
|
|
465
|
+
ze(() => R.value.showTable, (e) => {
|
|
466
|
+
A.value.table.show || (e && A.value.table.useDialog && O.value ? O.value.open() : "close" in O.value && O.value.close());
|
|
467
|
+
});
|
|
468
|
+
function vn() {
|
|
469
|
+
R.value.showTable = !1, Vt.value && Vt.value.setTableIconState(!1);
|
|
470
|
+
}
|
|
471
|
+
let yn = o(() => ln.value.map((e) => ({
|
|
472
|
+
...e,
|
|
473
|
+
name: e.display,
|
|
474
|
+
shape: "circle"
|
|
475
|
+
}))), bn = o(() => P.value.backgroundColor), xn = o(() => P.value.legend), Sn = o(() => P.value.title), { isCallbackImaging: Cn, isCallbackSvg: wn, generateSvg: Tn, onGenerateImage: En } = ge({
|
|
476
|
+
svg: L,
|
|
477
|
+
title: Sn,
|
|
478
|
+
legend: xn,
|
|
479
|
+
legendItems: yn,
|
|
480
|
+
backgroundColor: bn,
|
|
481
|
+
getSvgCallback: () => A.value.userOptions.callbacks.svg,
|
|
482
|
+
generateImage: tn
|
|
483
|
+
});
|
|
484
|
+
async function Dn() {
|
|
485
|
+
if (jt("copyAlt", {
|
|
486
|
+
config: A.value,
|
|
487
|
+
dataset: H.value
|
|
488
|
+
}), !A.value.userOptions.callbacks.altCopy) {
|
|
489
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
await Promise.resolve(A.value.userOptions.callbacks.altCopy({
|
|
493
|
+
config: A.value,
|
|
494
|
+
dataset: H.value
|
|
495
|
+
}));
|
|
496
|
+
}
|
|
497
|
+
let Q = o(() => H.value.map((e) => String(e.key)));
|
|
498
|
+
function On() {
|
|
499
|
+
Yt(!0);
|
|
500
|
+
}
|
|
501
|
+
function kn() {
|
|
502
|
+
Yt(!1);
|
|
503
|
+
}
|
|
504
|
+
function An(e) {
|
|
505
|
+
return H.value.find((t) => String(t.key) === String(e));
|
|
506
|
+
}
|
|
507
|
+
function jn(e, n, r) {
|
|
508
|
+
return re(N.value.dataLabel.formatter, e, t({
|
|
509
|
+
p: N.value.dataLabel.prefix,
|
|
510
|
+
v: e,
|
|
511
|
+
s: N.value.dataLabel.suffix,
|
|
512
|
+
r: N.value.dataLabel.roundingValue
|
|
513
|
+
}), {
|
|
514
|
+
datapoint: r,
|
|
515
|
+
seriesIndex: n
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
function Mn(e) {
|
|
519
|
+
return t({
|
|
520
|
+
v: V.value ? e / V.value * 100 : 0,
|
|
521
|
+
s: "%",
|
|
522
|
+
r: N.value.dataLabel.roundingPercentage
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
function $(e) {
|
|
526
|
+
let t = An(e);
|
|
527
|
+
return t ? `${e}, ${jn(t.value, t.index, t)}, ${Mn(t.value)}` : `${e}`;
|
|
528
|
+
}
|
|
529
|
+
function Nn(e) {
|
|
530
|
+
let t = Q.value[e];
|
|
531
|
+
t && (k.value = e, E.value = t);
|
|
532
|
+
}
|
|
533
|
+
function Pn() {
|
|
534
|
+
Ht.value = !0;
|
|
535
|
+
}
|
|
536
|
+
function Fn() {
|
|
537
|
+
k.value = null, E.value = null, Ht.value = !1;
|
|
538
|
+
}
|
|
539
|
+
function In(e) {
|
|
540
|
+
if (!L.value || !Q.value.length || X.value || document.activeElement !== L.value) return;
|
|
541
|
+
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
542
|
+
if (!t && !n && !r && !i) return;
|
|
543
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
544
|
+
k.value = null, E.value = null;
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
if (r) {
|
|
548
|
+
if (k.value === null) return;
|
|
549
|
+
let e = Q.value[k.value];
|
|
550
|
+
if (!e) return;
|
|
551
|
+
U(e);
|
|
552
|
+
return;
|
|
553
|
+
}
|
|
554
|
+
let a = k.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)), Nn(a);
|
|
556
|
+
}
|
|
557
|
+
function Ln(e, t) {
|
|
558
|
+
let n = e.key === "Enter" || e.key === " ", r = e.key === "Escape";
|
|
559
|
+
if (n || r) {
|
|
560
|
+
if (e.preventDefault(), e.stopPropagation(), r) {
|
|
561
|
+
k.value = null, E.value = null;
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
U(String(t));
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
let Rn = o(() => ({
|
|
568
|
+
headers: J.value?.colNames ?? [],
|
|
569
|
+
rows: H.value.map((e) => [
|
|
570
|
+
String(e.key),
|
|
571
|
+
jn(e.value, e.index, e),
|
|
572
|
+
Mn(e.value)
|
|
573
|
+
])
|
|
574
|
+
}));
|
|
575
|
+
return ye({
|
|
576
|
+
getData: pn,
|
|
577
|
+
getImage: _n,
|
|
578
|
+
generatePdf: en,
|
|
579
|
+
generateCsv: fn,
|
|
580
|
+
generateImage: tn,
|
|
581
|
+
generateSvg: Tn,
|
|
582
|
+
toggleTable: mn,
|
|
583
|
+
toggleAnnotator: gn,
|
|
584
|
+
toggleFullscreen: hn,
|
|
585
|
+
copyAlt: Dn
|
|
586
|
+
}), (e, n) => (g(), l("div", {
|
|
587
|
+
class: Pe(`vue-data-ui-component vue-ui-mood-radar ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${A.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
588
|
+
ref_key: "moodRadarChart",
|
|
589
|
+
ref: T,
|
|
590
|
+
id: `${w.value}`,
|
|
591
|
+
style: h(`font-family:${A.value.style.fontFamily};width:100%; text-align:center;background:${P.value.backgroundColor}`),
|
|
592
|
+
onMouseenter: On,
|
|
593
|
+
onMouseleave: kn
|
|
594
|
+
}, [
|
|
595
|
+
u("div", {
|
|
596
|
+
id: `chart-instructions-${w.value}`,
|
|
597
|
+
class: "sr-only"
|
|
598
|
+
}, [u("p", null, y(A.value.a11y.translations.keyboardNavigation), 1)], 8, He),
|
|
599
|
+
Rn.value?.rows?.length ? (g(), s(Ce, {
|
|
600
|
+
key: 0,
|
|
601
|
+
uid: w.value,
|
|
602
|
+
head: Rn.value.headers,
|
|
603
|
+
body: Rn.value.rows,
|
|
604
|
+
notice: A.value.a11y.translations.tableAvailable,
|
|
605
|
+
caption: A.value.a11y.translations.tableCaption
|
|
606
|
+
}, null, 8, [
|
|
607
|
+
"uid",
|
|
608
|
+
"head",
|
|
609
|
+
"body",
|
|
610
|
+
"notice",
|
|
611
|
+
"caption"
|
|
612
|
+
])) : c("", !0),
|
|
613
|
+
j.value.buttons.annotator ? (g(), s(b(wt), {
|
|
614
|
+
key: 1,
|
|
615
|
+
svgRef: b(L),
|
|
616
|
+
backgroundColor: P.value.backgroundColor,
|
|
617
|
+
color: P.value.color,
|
|
618
|
+
active: X.value,
|
|
619
|
+
isCursorPointer: F.value,
|
|
620
|
+
palette: j.value.annotatorPalette,
|
|
621
|
+
onClose: gn
|
|
622
|
+
}, {
|
|
623
|
+
"annotator-action-close": x(() => [v(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
624
|
+
"annotator-action-color": x(({ color: t }) => [v(e.$slots, "annotator-action-color", m(p({ color: t })), void 0, !0)]),
|
|
625
|
+
"annotator-action-draw": x(({ mode: t }) => [v(e.$slots, "annotator-action-draw", m(p({ mode: t })), void 0, !0)]),
|
|
626
|
+
"annotator-action-undo": x(({ disabled: t }) => [v(e.$slots, "annotator-action-undo", m(p({ disabled: t })), void 0, !0)]),
|
|
627
|
+
"annotator-action-redo": x(({ disabled: t }) => [v(e.$slots, "annotator-action-redo", m(p({ disabled: t })), void 0, !0)]),
|
|
628
|
+
"annotator-action-delete": x(({ disabled: t }) => [v(e.$slots, "annotator-action-delete", m(p({ disabled: t })), void 0, !0)]),
|
|
629
|
+
_: 3
|
|
630
|
+
}, 8, [
|
|
631
|
+
"svgRef",
|
|
632
|
+
"backgroundColor",
|
|
633
|
+
"color",
|
|
634
|
+
"active",
|
|
635
|
+
"isCursorPointer",
|
|
636
|
+
"palette"
|
|
637
|
+
])) : c("", !0),
|
|
638
|
+
nn.value ? (g(), l("div", {
|
|
639
|
+
key: 2,
|
|
640
|
+
ref_key: "noTitle",
|
|
641
|
+
ref: Mt,
|
|
642
|
+
class: "vue-data-ui-no-title-space",
|
|
643
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
644
|
+
}, null, 512)) : c("", !0),
|
|
645
|
+
P.value.title.text ? (g(), l("div", {
|
|
646
|
+
key: 3,
|
|
647
|
+
ref_key: "chartTitle",
|
|
648
|
+
ref: It,
|
|
649
|
+
style: "width:100%;background:transparent"
|
|
650
|
+
}, [d(ve, { config: {
|
|
651
|
+
title: {
|
|
652
|
+
cy: "mood-radar-title",
|
|
653
|
+
...P.value.title
|
|
654
|
+
},
|
|
655
|
+
subtitle: {
|
|
656
|
+
cy: "mood-radar-subtitle",
|
|
657
|
+
...P.value.title.subtitle
|
|
658
|
+
}
|
|
659
|
+
} }, null, 8, ["config"])], 512)) : c("", !0),
|
|
660
|
+
u("div", { id: `legend-top-${w.value}` }, null, 8, Ue),
|
|
661
|
+
j.value.show && Ut.value && (b(Xt) || b(Jt)) ? (g(), s(b(Tt), {
|
|
662
|
+
key: 4,
|
|
663
|
+
ref_key: "userOptionsRef",
|
|
664
|
+
ref: Vt,
|
|
665
|
+
backgroundColor: P.value.backgroundColor,
|
|
666
|
+
color: P.value.color,
|
|
667
|
+
isPrinting: b(Qt),
|
|
668
|
+
isImaging: b($t),
|
|
669
|
+
uid: w.value,
|
|
670
|
+
hasPdf: j.value.buttons.pdf,
|
|
671
|
+
hasXls: j.value.buttons.csv,
|
|
672
|
+
hasImg: j.value.buttons.img,
|
|
673
|
+
hasSvg: j.value.buttons.svg,
|
|
674
|
+
hasTable: j.value.buttons.table,
|
|
675
|
+
hasFullscreen: j.value.buttons.fullscreen,
|
|
676
|
+
hasAltCopy: j.value.buttons.altCopy,
|
|
677
|
+
isFullscreen: Y.value,
|
|
678
|
+
titles: { ...j.value.buttonTitles },
|
|
679
|
+
chartElement: T.value,
|
|
680
|
+
position: j.value.position,
|
|
681
|
+
hasAnnotator: j.value.buttons.annotator,
|
|
682
|
+
isAnnotation: X.value,
|
|
683
|
+
callbacks: j.value.callbacks,
|
|
684
|
+
printScale: j.value.print.scale,
|
|
685
|
+
tableDialog: A.value.table.useDialog,
|
|
686
|
+
isCursorPointer: F.value,
|
|
687
|
+
onToggleFullscreen: hn,
|
|
688
|
+
onGeneratePdf: b(en),
|
|
689
|
+
onGenerateCsv: fn,
|
|
690
|
+
onGenerateImage: b(En),
|
|
691
|
+
onGenerateSvg: b(Tn),
|
|
692
|
+
onToggleTable: mn,
|
|
693
|
+
onToggleAnnotator: gn,
|
|
694
|
+
onCopyAlt: Dn,
|
|
695
|
+
style: h({ visibility: b(Xt) ? b(Jt) ? "visible" : "hidden" : "visible" })
|
|
696
|
+
}, Ae({ _: 2 }, [
|
|
697
|
+
e.$slots.menuIcon ? {
|
|
698
|
+
name: "menuIcon",
|
|
699
|
+
fn: x(({ isOpen: t, color: n }) => [v(e.$slots, "menuIcon", m(p({
|
|
700
|
+
isOpen: t,
|
|
701
|
+
color: n
|
|
702
|
+
})), void 0, !0)]),
|
|
703
|
+
key: "0"
|
|
704
|
+
} : void 0,
|
|
705
|
+
e.$slots.optionPdf ? {
|
|
706
|
+
name: "optionPdf",
|
|
707
|
+
fn: x(() => [v(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
708
|
+
key: "1"
|
|
709
|
+
} : void 0,
|
|
710
|
+
e.$slots.optionCsv ? {
|
|
711
|
+
name: "optionCsv",
|
|
712
|
+
fn: x(() => [v(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
713
|
+
key: "2"
|
|
714
|
+
} : void 0,
|
|
715
|
+
e.$slots.optionImg ? {
|
|
716
|
+
name: "optionImg",
|
|
717
|
+
fn: x(() => [v(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
718
|
+
key: "3"
|
|
719
|
+
} : void 0,
|
|
720
|
+
e.$slots.optionSvg ? {
|
|
721
|
+
name: "optionSvg",
|
|
722
|
+
fn: x(() => [v(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
723
|
+
key: "4"
|
|
724
|
+
} : void 0,
|
|
725
|
+
e.$slots.optionTable ? {
|
|
726
|
+
name: "optionTable",
|
|
727
|
+
fn: x(() => [v(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
728
|
+
key: "5"
|
|
729
|
+
} : void 0,
|
|
730
|
+
e.$slots.optionFullscreen ? {
|
|
731
|
+
name: "optionFullscreen",
|
|
732
|
+
fn: x(({ toggleFullscreen: t, isFullscreen: n }) => [v(e.$slots, "optionFullscreen", m(p({
|
|
733
|
+
toggleFullscreen: t,
|
|
734
|
+
isFullscreen: n
|
|
735
|
+
})), void 0, !0)]),
|
|
736
|
+
key: "6"
|
|
737
|
+
} : void 0,
|
|
738
|
+
e.$slots.optionAnnotator ? {
|
|
739
|
+
name: "optionAnnotator",
|
|
740
|
+
fn: x(({ toggleAnnotator: t, isAnnotator: n }) => [v(e.$slots, "optionAnnotator", m(p({
|
|
741
|
+
toggleAnnotator: t,
|
|
742
|
+
isAnnotator: n
|
|
743
|
+
})), void 0, !0)]),
|
|
744
|
+
key: "7"
|
|
745
|
+
} : void 0,
|
|
746
|
+
e.$slots.optionAltCopy ? {
|
|
747
|
+
name: "optionAltCopy",
|
|
748
|
+
fn: x(({ altCopy: t }) => [v(e.$slots, "optionAltCopy", m(p({ altCopy: t })), void 0, !0)]),
|
|
749
|
+
key: "8"
|
|
750
|
+
} : void 0,
|
|
751
|
+
e.$slots["custom-menu-before"] ? {
|
|
752
|
+
name: "custom-menu-before",
|
|
753
|
+
fn: x(() => [v(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
754
|
+
key: "9"
|
|
755
|
+
} : void 0,
|
|
756
|
+
e.$slots["custom-menu-after"] ? {
|
|
757
|
+
name: "custom-menu-after",
|
|
758
|
+
fn: x(() => [v(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
759
|
+
key: "10"
|
|
760
|
+
} : void 0
|
|
761
|
+
]), 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("."))) : c("", !0),
|
|
762
|
+
u("div", We, [(g(), l("svg", {
|
|
763
|
+
ref_key: "svgRef",
|
|
764
|
+
ref: L,
|
|
765
|
+
xmlns: b(oe),
|
|
766
|
+
"aria-describedby": `chart-instructions-${w.value}`,
|
|
767
|
+
viewBox: `0 0 ${z.value.width} ${z.value.height}`,
|
|
768
|
+
class: Pe({
|
|
769
|
+
"vue-data-ui-fullscreen--on": Y.value,
|
|
770
|
+
"vue-data-ui-fulscreen--off": !Y.value
|
|
771
|
+
}),
|
|
772
|
+
style: h(`overflow:visible;background:transparent;color:${P.value.color}`),
|
|
773
|
+
tabindex: "0",
|
|
774
|
+
onFocus: Pn,
|
|
775
|
+
onBlur: Fn,
|
|
776
|
+
onKeydown: In
|
|
777
|
+
}, [
|
|
778
|
+
d(b(Et)),
|
|
779
|
+
e.$slots["chart-background"] ? (g(), l("foreignObject", {
|
|
780
|
+
key: 0,
|
|
781
|
+
x: 0,
|
|
782
|
+
y: 0,
|
|
783
|
+
width: z.value.width,
|
|
784
|
+
height: z.value.height,
|
|
785
|
+
style: { pointerEvents: "none" }
|
|
786
|
+
}, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : c("", !0),
|
|
787
|
+
u("defs", null, [d(Se, {
|
|
788
|
+
t: "radial",
|
|
789
|
+
cx: "50%",
|
|
790
|
+
cy: "50%",
|
|
791
|
+
r: "50%",
|
|
792
|
+
fx: "50%",
|
|
793
|
+
fy: "50%",
|
|
794
|
+
id: `mood_radar_gradient_${w.value}`,
|
|
795
|
+
stops: [[
|
|
796
|
+
"0%",
|
|
797
|
+
b(r)(N.value.dataPolygon.color, N.value.dataPolygon.opacity),
|
|
798
|
+
1
|
|
799
|
+
], [
|
|
800
|
+
"100%",
|
|
801
|
+
b(r)(b(te)(N.value.dataPolygon.color, N.value.dataPolygon.gradient.intensity / 100), N.value.dataPolygon.opacity),
|
|
802
|
+
1
|
|
803
|
+
]]
|
|
804
|
+
}, null, 8, ["id", "stops"])]),
|
|
805
|
+
(g(!0), l(Oe, null, Ie(on.value.coordinates, (e) => (g(), l("line", {
|
|
806
|
+
x1: z.value.width / 2,
|
|
807
|
+
y1: z.value.height / 2,
|
|
808
|
+
x2: e.x,
|
|
809
|
+
y2: e.y,
|
|
810
|
+
stroke: N.value.grid.stroke,
|
|
811
|
+
"stroke-width": N.value.grid.strokeWidth
|
|
812
|
+
}, null, 8, qe))), 256)),
|
|
813
|
+
u("path", {
|
|
814
|
+
d: on.value.path,
|
|
815
|
+
fill: "none",
|
|
816
|
+
stroke: N.value.outerPolygon.stroke,
|
|
817
|
+
"stroke-width": N.value.outerPolygon.strokeWidth,
|
|
818
|
+
"stroke-linejoin": "round",
|
|
819
|
+
"stroke-linecap": "round"
|
|
820
|
+
}, null, 8, Je),
|
|
821
|
+
u("g", { transform: B("5") }, [u("path", {
|
|
822
|
+
fill: "none",
|
|
823
|
+
stroke: M.value.colors[5],
|
|
824
|
+
"stroke-width": "1",
|
|
825
|
+
"stroke-linecap": "round",
|
|
826
|
+
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"
|
|
827
|
+
}, null, 8, Xe), u("circle", {
|
|
828
|
+
role: "button",
|
|
829
|
+
class: "vue-ui-mood-radar-trap",
|
|
830
|
+
cx: "128",
|
|
831
|
+
cy: "25",
|
|
832
|
+
r: "20",
|
|
833
|
+
"aria-label": $("5"),
|
|
834
|
+
fill: E.value === "5" ? b(r)(M.value.colors[5], 20) : "transparent",
|
|
835
|
+
onMouseenter: n[0] ||= (e) => W("5"),
|
|
836
|
+
onMouseleave: n[1] ||= (e) => G("5"),
|
|
837
|
+
onClick: n[2] ||= (e) => K("5")
|
|
838
|
+
}, null, 40, Ze)], 8, Ye),
|
|
839
|
+
u("g", { transform: B("4") }, [u("path", {
|
|
840
|
+
fill: "none",
|
|
841
|
+
stroke: M.value.colors[4],
|
|
842
|
+
"stroke-width": "1",
|
|
843
|
+
"stroke-linecap": "round",
|
|
844
|
+
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"
|
|
845
|
+
}, null, 8, $e), u("circle", {
|
|
846
|
+
class: "vue-ui-mood-radar-trap",
|
|
847
|
+
cx: "227",
|
|
848
|
+
cy: "95.5",
|
|
849
|
+
r: "20",
|
|
850
|
+
"aria-label": $("4"),
|
|
851
|
+
fill: E.value === "4" ? b(r)(M.value.colors[4], 20) : "transparent",
|
|
852
|
+
onMouseenter: n[3] ||= (e) => W("4"),
|
|
853
|
+
onMouseleave: n[4] ||= (e) => G("4"),
|
|
854
|
+
onClick: n[5] ||= (e) => K("4")
|
|
855
|
+
}, null, 40, et)], 8, Qe),
|
|
856
|
+
u("g", { transform: B("3") }, [u("path", {
|
|
857
|
+
fill: "none",
|
|
858
|
+
stroke: M.value.colors[3],
|
|
859
|
+
"stroke-width": "1",
|
|
860
|
+
"stroke-linecap": "round",
|
|
861
|
+
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"
|
|
862
|
+
}, null, 8, nt), u("circle", {
|
|
863
|
+
class: "vue-ui-mood-radar-trap",
|
|
864
|
+
cx: "190",
|
|
865
|
+
cy: "213.5",
|
|
866
|
+
r: "20",
|
|
867
|
+
"aria-label": $("3"),
|
|
868
|
+
fill: E.value === "3" ? b(r)(M.value.colors[3], 20) : "transparent",
|
|
869
|
+
onMouseenter: n[6] ||= (e) => W("3"),
|
|
870
|
+
onMouseleave: n[7] ||= (e) => G("3"),
|
|
871
|
+
onClick: n[8] ||= (e) => K("3")
|
|
872
|
+
}, null, 40, rt)], 8, tt),
|
|
873
|
+
u("g", { transform: B("2") }, [u("path", {
|
|
874
|
+
fill: "none",
|
|
875
|
+
stroke: M.value.colors[2],
|
|
876
|
+
"stroke-width": "1",
|
|
877
|
+
"stroke-linecap": "round",
|
|
878
|
+
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"
|
|
879
|
+
}, null, 8, at), u("circle", {
|
|
880
|
+
class: "vue-ui-mood-radar-trap",
|
|
881
|
+
cx: "65",
|
|
882
|
+
cy: "213.5",
|
|
883
|
+
r: "20",
|
|
884
|
+
"aria-label": $("2"),
|
|
885
|
+
fill: E.value === "2" ? b(r)(M.value.colors[2], 20) : "transparent",
|
|
886
|
+
onMouseenter: n[9] ||= (e) => W("2"),
|
|
887
|
+
onMouseleave: n[10] ||= (e) => G("2"),
|
|
888
|
+
onClick: n[11] ||= (e) => K("2")
|
|
889
|
+
}, null, 40, ot)], 8, it),
|
|
890
|
+
u("g", { transform: B("1") }, [u("path", {
|
|
891
|
+
fill: "none",
|
|
892
|
+
stroke: M.value.colors[1],
|
|
893
|
+
"stroke-width": "1",
|
|
894
|
+
"stroke-linecap": "round",
|
|
895
|
+
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"
|
|
896
|
+
}, null, 8, ct), u("circle", {
|
|
897
|
+
class: "vue-ui-mood-radar-trap",
|
|
898
|
+
cx: "29",
|
|
899
|
+
cy: "95.5",
|
|
900
|
+
r: "20",
|
|
901
|
+
"aria-label": $("1"),
|
|
902
|
+
fill: E.value === "1" ? b(r)(M.value.colors[1], 20) : "transparent",
|
|
903
|
+
onMouseenter: n[12] ||= (e) => W("1"),
|
|
904
|
+
onMouseleave: n[13] ||= (e) => G("1"),
|
|
905
|
+
onClick: n[14] ||= (e) => K("1")
|
|
906
|
+
}, null, 40, lt)], 8, st),
|
|
907
|
+
u("path", {
|
|
908
|
+
d: b(i)(un.value.map((e) => e.plots)),
|
|
909
|
+
stroke: N.value.dataPolygon.stroke,
|
|
910
|
+
"stroke-width": N.value.dataPolygon.strokeWidth,
|
|
911
|
+
"stroke-linecap": "round",
|
|
912
|
+
"stroke-linejoin": "round",
|
|
913
|
+
fill: N.value.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${w.value})` : b(r)(N.value.dataPolygon.color, N.value.dataPolygon.opacity)
|
|
914
|
+
}, null, 8, ut),
|
|
915
|
+
(g(!0), l(Oe, null, Ie(un.value.map((e) => e.plots), (e, n) => (g(), l("g", {
|
|
916
|
+
class: "vue-ui-mood-radar-trap",
|
|
917
|
+
style: h(`opacity:${E.value == e.key ? "1" : "0"}`)
|
|
918
|
+
}, [
|
|
919
|
+
u("line", {
|
|
920
|
+
x1: e.x,
|
|
921
|
+
y1: e.y,
|
|
922
|
+
x2: z.value.width / 2,
|
|
923
|
+
y2: z.value.height / 2,
|
|
924
|
+
stroke: M.value.colors[e.key]
|
|
925
|
+
}, null, 8, dt),
|
|
926
|
+
u("circle", {
|
|
927
|
+
cx: e.x,
|
|
928
|
+
cy: e.y,
|
|
929
|
+
fill: M.value.colors[e.key],
|
|
930
|
+
r: "3",
|
|
931
|
+
stroke: P.value.backgroundColor,
|
|
932
|
+
"stroke-width": .5
|
|
933
|
+
}, null, 8, ft),
|
|
934
|
+
u("circle", {
|
|
935
|
+
cx: z.value.width / 2,
|
|
936
|
+
cy: z.value.height / 2,
|
|
937
|
+
fill: M.value.colors[e.key],
|
|
938
|
+
r: "3",
|
|
939
|
+
stroke: P.value.backgroundColor,
|
|
940
|
+
"stroke-width": .5
|
|
941
|
+
}, null, 8, pt),
|
|
942
|
+
u("text", {
|
|
943
|
+
x: z.value.width / 2,
|
|
944
|
+
y: ["5", 5].includes(e.key) ? z.value.height / 2 * 1.13 : z.value.height / 2 * .9375,
|
|
945
|
+
fill: N.value.dataLabel.color,
|
|
946
|
+
"font-size": "12",
|
|
947
|
+
"text-anchor": "middle",
|
|
948
|
+
"font-weight": N.value.dataLabel.bold ? "bold" : "normal"
|
|
949
|
+
}, y(b(re)(N.value.dataLabel.formatter, e.value, b(t)({
|
|
950
|
+
p: N.value.dataLabel.prefix,
|
|
951
|
+
v: e.value,
|
|
952
|
+
s: N.value.dataLabel.suffix,
|
|
953
|
+
r: N.value.dataLabel.roundingValue
|
|
954
|
+
}), {
|
|
955
|
+
datapoint: e,
|
|
956
|
+
seriesIndex: n
|
|
957
|
+
})), 9, mt),
|
|
958
|
+
u("text", {
|
|
959
|
+
x: z.value.width / 2,
|
|
960
|
+
y: ["5", 5].includes(e.key) ? z.value.height / 2 * 1.273 : z.value.height / 2 * .7968,
|
|
961
|
+
fill: N.value.dataLabel.color,
|
|
962
|
+
"font-size": "12",
|
|
963
|
+
"text-anchor": "middle"
|
|
964
|
+
}, " (" + y(b(t)({
|
|
965
|
+
v: e.value / V.value * 100,
|
|
966
|
+
s: "%",
|
|
967
|
+
r: N.value.dataLabel.roundingPercentage
|
|
968
|
+
})) + ") ", 9, ht)
|
|
969
|
+
], 4))), 256)),
|
|
970
|
+
v(e.$slots, "svg", { svg: {
|
|
971
|
+
...z.value,
|
|
972
|
+
isPrintingImg: b(Qt) || b($t) || b(Cn),
|
|
973
|
+
isPrintingSvg: b(wn)
|
|
974
|
+
} }, void 0, !0)
|
|
975
|
+
], 46, Ge)), e.$slots.hint ? (g(), l("div", gt, [v(e.$slots, "hint", m(p({
|
|
976
|
+
hint: A.value.a11y.translations.keyboardNavigation,
|
|
977
|
+
isVisible: Ht.value
|
|
978
|
+
})), void 0, !0)])) : c("", !0)]),
|
|
979
|
+
e.$slots.watermark ? (g(), l("div", _t, [v(e.$slots, "watermark", m(p({ isPrinting: b(Qt) || b($t) || b(Cn) || b(wn) })), void 0, !0)])) : c("", !0),
|
|
980
|
+
u("div", { id: `legend-bottom-${w.value}` }, null, 8, vt),
|
|
981
|
+
Bt.value && (P.value.legend.show || e.$slots.legend) ? (g(), s(ke, {
|
|
982
|
+
key: 6,
|
|
983
|
+
to: P.value.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
984
|
+
}, [u("div", {
|
|
985
|
+
ref_key: "chartLegend",
|
|
986
|
+
ref: Lt
|
|
987
|
+
}, [v(e.$slots, "legend", { legend: H.value }, () => [P.value.legend.show ? (g(), s(Ee, {
|
|
988
|
+
legendSet: ln.value,
|
|
989
|
+
config: dn.value,
|
|
990
|
+
key: `legend_${Ft.value}`,
|
|
991
|
+
isCursorPointer: F.value,
|
|
992
|
+
style: {
|
|
993
|
+
display: "flex",
|
|
994
|
+
"row-gap": "6px"
|
|
995
|
+
},
|
|
996
|
+
onFocusMarker: n[15] ||= ({ legend: e }) => U(e.key)
|
|
997
|
+
}, {
|
|
998
|
+
item: x(({ legend: e, index: t }) => [u("div", {
|
|
999
|
+
role: "button",
|
|
1000
|
+
onClick: () => U(e.key),
|
|
1001
|
+
style: {
|
|
1002
|
+
display: "flex",
|
|
1003
|
+
"flex-direction": "row",
|
|
1004
|
+
gap: "3px",
|
|
1005
|
+
"align-items": "center",
|
|
1006
|
+
margin: "3px 0"
|
|
1007
|
+
},
|
|
1008
|
+
onKeydown: (t) => Ln(t, String(e.key))
|
|
1009
|
+
}, [
|
|
1010
|
+
e.key == 1 ? (g(), s(b(S), {
|
|
1011
|
+
key: 0,
|
|
1012
|
+
strokeWidth: 1,
|
|
1013
|
+
name: "moodSad",
|
|
1014
|
+
stroke: M.value.colors[e.key]
|
|
1015
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
1016
|
+
e.key == 2 ? (g(), s(b(S), {
|
|
1017
|
+
key: 1,
|
|
1018
|
+
strokeWidth: 1,
|
|
1019
|
+
name: "moodFlat",
|
|
1020
|
+
stroke: M.value.colors[e.key]
|
|
1021
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
1022
|
+
e.key == 3 ? (g(), s(b(S), {
|
|
1023
|
+
key: 2,
|
|
1024
|
+
strokeWidth: 1,
|
|
1025
|
+
name: "moodNeutral",
|
|
1026
|
+
stroke: M.value.colors[e.key]
|
|
1027
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
1028
|
+
e.key == 4 ? (g(), s(b(S), {
|
|
1029
|
+
key: 3,
|
|
1030
|
+
strokeWidth: 1,
|
|
1031
|
+
name: "smiley",
|
|
1032
|
+
stroke: M.value.colors[e.key]
|
|
1033
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
1034
|
+
e.key == 5 ? (g(), s(b(S), {
|
|
1035
|
+
key: 4,
|
|
1036
|
+
strokeWidth: 1,
|
|
1037
|
+
name: "moodHappy",
|
|
1038
|
+
stroke: M.value.colors[e.key]
|
|
1039
|
+
}, null, 8, ["stroke"])) : c("", !0),
|
|
1040
|
+
b(Gt) ? c("", !0) : (g(), l("span", {
|
|
1041
|
+
key: 5,
|
|
1042
|
+
style: h({ fontWeight: P.value.legend.bold ? "bold" : "normal" })
|
|
1043
|
+
}, y(e.display), 5))
|
|
1044
|
+
], 40, yt)]),
|
|
1045
|
+
_: 1
|
|
1046
|
+
}, 8, [
|
|
1047
|
+
"legendSet",
|
|
1048
|
+
"config",
|
|
1049
|
+
"isCursorPointer"
|
|
1050
|
+
])) : c("", !0)], !0)], 512)], 8, ["to"])) : c("", !0),
|
|
1051
|
+
e.$slots.source ? (g(), l("div", {
|
|
1052
|
+
key: 7,
|
|
1053
|
+
ref_key: "source",
|
|
1054
|
+
ref: zt,
|
|
1055
|
+
dir: "auto"
|
|
1056
|
+
}, [v(e.$slots, "source", {}, void 0, !0)], 512)) : c("", !0),
|
|
1057
|
+
Ut.value && j.value.buttons.table ? (g(), s(Le(Z.value.component), Me({ key: 8 }, Z.value.props, {
|
|
1058
|
+
ref_key: "tableUnit",
|
|
1059
|
+
ref: O,
|
|
1060
|
+
onClose: vn
|
|
1061
|
+
}), Ae({
|
|
1062
|
+
content: x(() => [d(b(Ct), {
|
|
1063
|
+
colNames: J.value.colNames,
|
|
1064
|
+
head: J.value.head,
|
|
1065
|
+
body: J.value.body,
|
|
1066
|
+
config: J.value.config,
|
|
1067
|
+
title: A.value.table.useDialog ? "" : Z.value.title,
|
|
1068
|
+
withCloseButton: !A.value.table.useDialog,
|
|
1069
|
+
isCursorPointer: F.value,
|
|
1070
|
+
onClose: vn
|
|
1071
|
+
}, {
|
|
1072
|
+
th: x(({ th: e }) => [e === "__SUM__" ? (g(), l("div", bt, [d(b(S), {
|
|
1073
|
+
name: "sigma",
|
|
1074
|
+
stroke: J.value.config.th.color,
|
|
1075
|
+
size: 16
|
|
1076
|
+
}, null, 8, ["stroke"])])) : (g(), l("div", xt, y(e), 1))]),
|
|
1077
|
+
td: x(({ td: e }) => [je(y(e.name || e), 1)]),
|
|
1078
|
+
_: 1
|
|
1079
|
+
}, 8, [
|
|
1080
|
+
"colNames",
|
|
1081
|
+
"head",
|
|
1082
|
+
"body",
|
|
1083
|
+
"config",
|
|
1084
|
+
"title",
|
|
1085
|
+
"withCloseButton",
|
|
1086
|
+
"isCursorPointer"
|
|
1087
|
+
])]),
|
|
1088
|
+
_: 2
|
|
1089
|
+
}, [A.value.table.useDialog ? {
|
|
1090
|
+
name: "title",
|
|
1091
|
+
fn: x(() => [je(y(Z.value.title), 1)]),
|
|
1092
|
+
key: "0"
|
|
1093
|
+
} : void 0, A.value.table.useDialog ? {
|
|
1094
|
+
name: "actions",
|
|
1095
|
+
fn: x(() => [u("button", {
|
|
1096
|
+
tabindex: "0",
|
|
1097
|
+
class: "vue-ui-user-options-button",
|
|
1098
|
+
onClick: n[16] ||= (e) => fn(j.value.callbacks.csv),
|
|
1099
|
+
style: h({ cursor: F.value ? "pointer" : "default" })
|
|
1100
|
+
}, [d(b(S), {
|
|
1101
|
+
name: "fileCsv",
|
|
1102
|
+
stroke: Z.value.props.color
|
|
1103
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1104
|
+
key: "1"
|
|
1105
|
+
} : void 0]), 1040)) : c("", !0),
|
|
1106
|
+
v(e.$slots, "skeleton", {}, () => [b(Gt) ? (g(), s(pe, { key: 0 })) : c("", !0)], !0)
|
|
1107
|
+
], 46, Ve));
|
|
1108
|
+
}
|
|
1109
|
+
}, [["__scopeId", "data-v-02a8ef9b"]]);
|
|
1110
|
+
//#endregion
|
|
1111
|
+
export { Be as n, S as t };
|