vue-data-ui 3.25.5 → 3.25.6
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.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/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { $ as t, D as n, M as r, Nt as i, Pt as a, Ut as o, Wt as ee, X as s, Zt as te, i as ne, nt as re, q as ie, t as ae } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-
|
|
4
|
+
import { t as ce } from "./useConfig-CIQZ6_r7.js";
|
|
5
5
|
import { t as le } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as fe } from "./useNestedProp-Chvyfpl-.js";
|
|
@@ -95,14 +95,14 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
95
95
|
},
|
|
96
96
|
emits: ["copyAlt"],
|
|
97
97
|
setup(e, { expose: _e, emit: Re }) {
|
|
98
|
-
let w = m(() => import("./BaseIcon-
|
|
98
|
+
let w = m(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), bt = m(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), xt = m(() => import("./DataTable-oiM9uWrQ.js")), St = m(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Ct = m(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), wt = m(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), Tt = m(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_mood_radar: Et } = ce(), { isThemeValid: Dt, warnInvalidTheme: Ot } = pe(), T = e, kt = Re, E = y(ie()), D = y(null), O = y(null), At = y(null), jt = y(0), Mt = y(0), Nt = y(0), Pt = y(null), Ft = y(null), k = y(null), It = y(null), Lt = y(null), Rt = y(!1), A = y(null), zt = y(null), j = y(null), Bt = y(!1), Vt = c(() => !!T.dataset && Object.keys(T.dataset).length), M = y(Yt()), N = c(() => M.value.userOptions), P = c(() => M.value.style.chart.layout.smileys), F = c(() => M.value.style.chart.layout), I = c(() => M.value.style.chart);
|
|
99
99
|
oe({
|
|
100
|
-
config: () =>
|
|
100
|
+
config: () => M.value,
|
|
101
101
|
dataset: () => T.dataset,
|
|
102
102
|
component: "VueUiMoodRadar",
|
|
103
103
|
rules: [se.noHint]
|
|
104
104
|
});
|
|
105
|
-
let
|
|
105
|
+
let L = c(() => M.value.userOptions.useCursorPointer), Ht = c(() => te({
|
|
106
106
|
defaultConfig: {
|
|
107
107
|
userOptions: { show: !1 },
|
|
108
108
|
table: { show: !1 },
|
|
@@ -128,14 +128,14 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
128
128
|
legend: { backgroundColor: "transparent" }
|
|
129
129
|
} }
|
|
130
130
|
},
|
|
131
|
-
userConfig:
|
|
132
|
-
})), { loading:
|
|
131
|
+
userConfig: M.value.skeletonConfig ?? {}
|
|
132
|
+
})), { loading: Ut, FINAL_DATASET: R } = ue({
|
|
133
133
|
...Ie(T),
|
|
134
|
-
FINAL_CONFIG:
|
|
135
|
-
prepareConfig:
|
|
134
|
+
FINAL_CONFIG: M,
|
|
135
|
+
prepareConfig: Yt,
|
|
136
136
|
callback: () => {
|
|
137
137
|
Promise.resolve().then(async () => {
|
|
138
|
-
await je(),
|
|
138
|
+
await je(), B.value.showTable = M.value.table.show;
|
|
139
139
|
});
|
|
140
140
|
},
|
|
141
141
|
skeletonDataset: T.config?.skeletonDataset ?? {
|
|
@@ -146,37 +146,37 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
146
146
|
5: 1
|
|
147
147
|
},
|
|
148
148
|
skeletonConfig: te({
|
|
149
|
-
defaultConfig:
|
|
150
|
-
userConfig:
|
|
149
|
+
defaultConfig: M.value,
|
|
150
|
+
userConfig: Ht.value
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
153
|
Ne(() => {
|
|
154
|
-
|
|
154
|
+
Rt.value = !0, Gt();
|
|
155
155
|
});
|
|
156
|
-
let
|
|
157
|
-
function
|
|
156
|
+
let Wt = c(() => M.value.debug);
|
|
157
|
+
function Gt() {
|
|
158
158
|
if (a(T.dataset) && re({
|
|
159
159
|
componentName: "VueUiMoodRadar",
|
|
160
160
|
type: "dataset",
|
|
161
|
-
debug:
|
|
162
|
-
}),
|
|
161
|
+
debug: Wt.value
|
|
162
|
+
}), M.value.responsive) {
|
|
163
163
|
let e = ve(() => {
|
|
164
164
|
let { width: e, height: t } = ye({
|
|
165
165
|
chart: D.value,
|
|
166
|
-
title:
|
|
167
|
-
legend:
|
|
166
|
+
title: I.value.title.text ? Pt.value : null,
|
|
167
|
+
legend: I.value.legend.show ? Ft.value : null,
|
|
168
168
|
noTitle: At.value,
|
|
169
|
-
source:
|
|
169
|
+
source: Lt.value
|
|
170
170
|
});
|
|
171
171
|
requestAnimationFrame(() => {
|
|
172
|
-
|
|
172
|
+
V.value.width = e, V.value.height = t - 12;
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
|
-
k.value && (
|
|
175
|
+
k.value && (It.value && k.value.unobserve(It.value), k.value.disconnect()), k.value = new ResizeObserver(e), It.value = D.value.parentNode, k.value.observe(It.value);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
let { userOptionsVisible:
|
|
179
|
-
function
|
|
178
|
+
let { userOptionsVisible: Kt, setUserOptionsVisibility: qt, keepUserOptionState: Jt } = Se({ config: M.value }), { svgRef: z } = Ce({ config: I.value.title });
|
|
179
|
+
function Yt() {
|
|
180
180
|
let e = fe({
|
|
181
181
|
userConfig: T.config,
|
|
182
182
|
defaultConfig: Et
|
|
@@ -193,16 +193,16 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
Le(() => T.config, (e) => {
|
|
196
|
-
|
|
196
|
+
M.value = Yt(), Kt.value = !M.value.userOptions.showOnChartHover, Gt(), jt.value += 1, Mt.value += 1, Nt.value += 1, B.value.showTable = M.value.table.show;
|
|
197
197
|
}, { deep: !0 });
|
|
198
|
-
let { isPrinting:
|
|
198
|
+
let { isPrinting: Xt, isImaging: Zt, generatePdf: Qt, generateImage: $t } = le({
|
|
199
199
|
elementId: E.value,
|
|
200
|
-
fileName:
|
|
201
|
-
options:
|
|
202
|
-
}),
|
|
200
|
+
fileName: I.value.title.text || "vue-ui-mood-radar",
|
|
201
|
+
options: M.value.userOptions.print
|
|
202
|
+
}), en = c(() => M.value.userOptions.show && !I.value.title.text), B = y({ showTable: M.value.table.show }), V = y({
|
|
203
203
|
height: 256,
|
|
204
204
|
width: 256
|
|
205
|
-
}),
|
|
205
|
+
}), tn = {
|
|
206
206
|
5: {
|
|
207
207
|
x: 128,
|
|
208
208
|
y: 35
|
|
@@ -223,29 +223,29 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
223
223
|
x: 38.5,
|
|
224
224
|
y: 98.5
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, nn = c(() => {
|
|
227
227
|
let e = {};
|
|
228
|
-
return
|
|
228
|
+
return cn.value.forEach((t) => {
|
|
229
229
|
e[t.key] = {
|
|
230
230
|
x: t.x,
|
|
231
231
|
y: t.y
|
|
232
232
|
};
|
|
233
233
|
}), e;
|
|
234
234
|
});
|
|
235
|
-
function
|
|
236
|
-
let t =
|
|
235
|
+
function H(e) {
|
|
236
|
+
let t = tn[e], n = nn.value[e] || t;
|
|
237
237
|
return `translate(${n.x - t.x}, ${n.y - t.y})`;
|
|
238
238
|
}
|
|
239
|
-
let
|
|
239
|
+
let rn = c(() => r({
|
|
240
240
|
plot: {
|
|
241
|
-
x:
|
|
242
|
-
y:
|
|
241
|
+
x: V.value.width / 2,
|
|
242
|
+
y: V.value.height / 2
|
|
243
243
|
},
|
|
244
|
-
radius: Math.min(
|
|
244
|
+
radius: Math.min(V.value.height, V.value.width) * .35,
|
|
245
245
|
sides: 5,
|
|
246
246
|
rotation: 11
|
|
247
247
|
}));
|
|
248
|
-
function
|
|
248
|
+
function an({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i, key: a, value: o }) {
|
|
249
249
|
return {
|
|
250
250
|
x: e + (n - e) * i,
|
|
251
251
|
y: t + (r - t) * i,
|
|
@@ -253,108 +253,108 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
253
253
|
value: o
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
let n = typeof
|
|
256
|
+
let on = c(() => Math.max(...Object.values(R.value).map((e) => isNaN(e) ? 0 : e))), U = c(() => Object.values(R.value).reduce((e, t) => (isNaN(e) ? 0 : e) + (isNaN(t) ? 0 : t), 0)), W = c(() => Object.keys(R.value).map((e, t) => {
|
|
257
|
+
let n = typeof R.value[e] != "number" || isNaN(R.value[e]) ? 0 : R.value[e];
|
|
258
258
|
return {
|
|
259
259
|
index: t,
|
|
260
260
|
key: e,
|
|
261
261
|
value: n,
|
|
262
|
-
proportion: n /
|
|
263
|
-
color: P.value.
|
|
262
|
+
proportion: n / U.value,
|
|
263
|
+
color: P.value.colors[e]
|
|
264
264
|
};
|
|
265
265
|
}).map((e) => ({
|
|
266
266
|
...e,
|
|
267
|
-
onSelect: () =>
|
|
268
|
-
})).sort((e, t) => t.key - e.key)),
|
|
267
|
+
onSelect: () => G(e.key)
|
|
268
|
+
})).sort((e, t) => t.key - e.key)), sn = c(() => W.value.map((e, t) => ({
|
|
269
269
|
...e,
|
|
270
|
-
display: `${ne(
|
|
271
|
-
p:
|
|
270
|
+
display: `${ne(F.value.dataLabel.formatter, e.value, s({
|
|
271
|
+
p: F.value.dataLabel.prefix,
|
|
272
272
|
v: e.value,
|
|
273
|
-
s:
|
|
274
|
-
r:
|
|
275
|
-
}))}${
|
|
273
|
+
s: F.value.dataLabel.suffix,
|
|
274
|
+
r: F.value.dataLabel.roundingValue
|
|
275
|
+
}))}${Ut.value ? "" : ` (${s({
|
|
276
276
|
v: e.proportion * 100,
|
|
277
277
|
s: "%",
|
|
278
|
-
r:
|
|
278
|
+
r: I.value.legend.roundingPercentage
|
|
279
279
|
})})`}`
|
|
280
|
-
}))),
|
|
280
|
+
}))), cn = c(() => ([
|
|
281
281
|
"1",
|
|
282
282
|
"2",
|
|
283
283
|
"3",
|
|
284
284
|
"4",
|
|
285
285
|
"5"
|
|
286
286
|
].forEach((e) => {
|
|
287
|
-
[null, void 0].includes(
|
|
287
|
+
[null, void 0].includes(R.value[e]) && re({
|
|
288
288
|
componentName: "VueUiMoodRadar",
|
|
289
289
|
type: "datasetAttribute",
|
|
290
290
|
property: e,
|
|
291
|
-
debug:
|
|
291
|
+
debug: Wt.value
|
|
292
292
|
});
|
|
293
|
-
}),
|
|
294
|
-
let n =
|
|
295
|
-
centerX:
|
|
296
|
-
centerY:
|
|
293
|
+
}), rn.value.coordinates.map((e, t) => {
|
|
294
|
+
let n = an({
|
|
295
|
+
centerX: V.value.width / 2,
|
|
296
|
+
centerY: V.value.height / 2,
|
|
297
297
|
apexX: e.x,
|
|
298
298
|
apexY: e.y,
|
|
299
|
-
proportion:
|
|
300
|
-
key:
|
|
301
|
-
value:
|
|
299
|
+
proportion: W.value[t].value / on.value,
|
|
300
|
+
key: W.value[t].key,
|
|
301
|
+
value: W.value[t].value
|
|
302
302
|
});
|
|
303
303
|
return {
|
|
304
304
|
...e,
|
|
305
305
|
plots: n,
|
|
306
|
-
key:
|
|
306
|
+
key: W.value[t].key
|
|
307
307
|
};
|
|
308
|
-
}))),
|
|
308
|
+
}))), ln = c(() => ({
|
|
309
309
|
cy: "mood-radar-legend",
|
|
310
|
-
backgroundColor:
|
|
311
|
-
color:
|
|
312
|
-
fontSize:
|
|
310
|
+
backgroundColor: I.value.legend.backgroundColor,
|
|
311
|
+
color: I.value.legend.color,
|
|
312
|
+
fontSize: I.value.legend.fontSize,
|
|
313
313
|
paddingBottom: 12,
|
|
314
|
-
fontWeight:
|
|
314
|
+
fontWeight: I.value.legend.bold ? "bold" : ""
|
|
315
315
|
}));
|
|
316
|
-
function
|
|
317
|
-
e === O.value ? O.value = null : (O.value = e,
|
|
316
|
+
function G(e) {
|
|
317
|
+
e === O.value ? O.value = null : (O.value = e, J(e));
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function K(e) {
|
|
320
320
|
O.value = e;
|
|
321
|
-
let t =
|
|
322
|
-
|
|
321
|
+
let t = W.value.find((t) => t.key === e);
|
|
322
|
+
M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
323
323
|
datapoint: t,
|
|
324
324
|
seriesIndex: t.index
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function q(e) {
|
|
328
328
|
O.value = null;
|
|
329
|
-
let t =
|
|
330
|
-
|
|
329
|
+
let t = W.value.find((t) => t.key === e);
|
|
330
|
+
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
331
331
|
datapoint: t,
|
|
332
332
|
seriesIndex: t.index
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
let t =
|
|
337
|
-
|
|
335
|
+
function J(e) {
|
|
336
|
+
let t = W.value.find((t) => t.key === e);
|
|
337
|
+
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
338
338
|
datapoint: t,
|
|
339
339
|
seriesIndex: t.index
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
-
let
|
|
343
|
-
head:
|
|
342
|
+
let Y = c(() => ({
|
|
343
|
+
head: W.value.map((e) => ({
|
|
344
344
|
name: e.key,
|
|
345
345
|
color: e.color
|
|
346
346
|
})),
|
|
347
|
-
body:
|
|
347
|
+
body: W.value.map((e) => isNaN(e.value) ? 0 : e.value)
|
|
348
348
|
}));
|
|
349
|
-
function
|
|
349
|
+
function un(e = null) {
|
|
350
350
|
je(() => {
|
|
351
|
-
let r =
|
|
351
|
+
let r = Y.value.head.map((e, t) => [
|
|
352
352
|
[e.name],
|
|
353
|
-
[
|
|
354
|
-
[isNaN(
|
|
353
|
+
[Y.value.body[t]],
|
|
354
|
+
[isNaN(Y.value.body[t] / U.value) ? "-" : Y.value.body[t] / U.value * 100]
|
|
355
355
|
]), i = [
|
|
356
|
-
[
|
|
357
|
-
[
|
|
356
|
+
[I.value.title.text],
|
|
357
|
+
[I.value.title.subtitle.text],
|
|
358
358
|
[
|
|
359
359
|
[""],
|
|
360
360
|
["val"],
|
|
@@ -363,58 +363,58 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
363
363
|
].concat(r), a = n(i);
|
|
364
364
|
e ? e(a) : t({
|
|
365
365
|
csvContent: a,
|
|
366
|
-
title:
|
|
366
|
+
title: I.value.title.text || "vue-ui-mood-radar"
|
|
367
367
|
});
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
let
|
|
370
|
+
let X = c(() => ({
|
|
371
371
|
head: [
|
|
372
372
|
"__SUM__",
|
|
373
|
-
Number(
|
|
373
|
+
Number(U.value.toFixed(M.value.table.td.roundingValue)).toLocaleString(),
|
|
374
374
|
"100%"
|
|
375
375
|
],
|
|
376
|
-
body:
|
|
376
|
+
body: Y.value.head.map((e, t) => [
|
|
377
377
|
{
|
|
378
378
|
color: e.color,
|
|
379
379
|
name: e.name
|
|
380
380
|
},
|
|
381
|
-
|
|
382
|
-
isNaN(
|
|
381
|
+
Y.value.body[t].toFixed(M.value.table.td.roundingValue),
|
|
382
|
+
isNaN(Y.value.body[t] / U.value) ? "-" : (Y.value.body[t] / U.value * 100).toFixed(M.value.table.td.roundingPercentage) + "%"
|
|
383
383
|
]),
|
|
384
384
|
config: {
|
|
385
385
|
th: {
|
|
386
|
-
backgroundColor:
|
|
387
|
-
color:
|
|
388
|
-
outline:
|
|
386
|
+
backgroundColor: M.value.table.th.backgroundColor,
|
|
387
|
+
color: M.value.table.th.color,
|
|
388
|
+
outline: M.value.table.th.outline
|
|
389
389
|
},
|
|
390
390
|
td: {
|
|
391
|
-
backgroundColor:
|
|
392
|
-
color:
|
|
393
|
-
outline:
|
|
391
|
+
backgroundColor: M.value.table.td.backgroundColor,
|
|
392
|
+
color: M.value.table.td.color,
|
|
393
|
+
outline: M.value.table.td.outline
|
|
394
394
|
},
|
|
395
|
-
breakpoint:
|
|
395
|
+
breakpoint: M.value.table.responsiveBreakpoint
|
|
396
396
|
},
|
|
397
397
|
colNames: [
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
M.value.table.columnNames.series,
|
|
399
|
+
M.value.table.columnNames.value,
|
|
400
|
+
M.value.table.columnNames.percentage
|
|
401
401
|
]
|
|
402
402
|
}));
|
|
403
|
-
function
|
|
404
|
-
return
|
|
403
|
+
function dn() {
|
|
404
|
+
return W.value;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
406
|
+
function fn() {
|
|
407
|
+
B.value.showTable = !B.value.showTable;
|
|
408
408
|
}
|
|
409
|
-
let
|
|
410
|
-
function
|
|
411
|
-
|
|
409
|
+
let Z = y(!1);
|
|
410
|
+
function pn(e) {
|
|
411
|
+
Z.value = e;
|
|
412
412
|
}
|
|
413
|
-
let
|
|
414
|
-
function
|
|
415
|
-
|
|
413
|
+
let Q = y(!1);
|
|
414
|
+
function mn() {
|
|
415
|
+
Q.value = !Q.value;
|
|
416
416
|
}
|
|
417
|
-
async function
|
|
417
|
+
async function hn({ scale: e = 2 } = {}) {
|
|
418
418
|
if (!D.value) return;
|
|
419
419
|
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
420
420
|
domElement: D.value,
|
|
@@ -425,184 +425,184 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
425
425
|
return {
|
|
426
426
|
imageUri: i,
|
|
427
427
|
base64: a,
|
|
428
|
-
title:
|
|
428
|
+
title: I.value.title.text,
|
|
429
429
|
width: t,
|
|
430
430
|
height: n,
|
|
431
431
|
aspectRatio: r
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
|
-
let
|
|
435
|
-
let e =
|
|
434
|
+
let gn = c(() => {
|
|
435
|
+
let e = M.value.table.useDialog && !M.value.table.show, t = B.value.showTable;
|
|
436
436
|
return {
|
|
437
437
|
component: e ? Tt : bt,
|
|
438
|
-
title: `${
|
|
438
|
+
title: `${I.value.title.text}${I.value.title.subtitle.text ? `: ${I.value.title.subtitle.text}` : ""}`,
|
|
439
439
|
props: e ? {
|
|
440
|
-
backgroundColor:
|
|
441
|
-
color:
|
|
442
|
-
headerColor:
|
|
443
|
-
headerBg:
|
|
444
|
-
isFullscreen:
|
|
440
|
+
backgroundColor: M.value.table.th.backgroundColor,
|
|
441
|
+
color: M.value.table.th.color,
|
|
442
|
+
headerColor: M.value.table.th.color,
|
|
443
|
+
headerBg: M.value.table.th.backgroundColor,
|
|
444
|
+
isFullscreen: Z.value,
|
|
445
445
|
fullscreenParent: D.value,
|
|
446
446
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
447
|
-
isCursorPointer:
|
|
447
|
+
isCursorPointer: L.value
|
|
448
448
|
} : {
|
|
449
449
|
hideDetails: !0,
|
|
450
450
|
config: {
|
|
451
451
|
open: t,
|
|
452
452
|
maxHeight: 1e4,
|
|
453
453
|
body: {
|
|
454
|
-
backgroundColor:
|
|
455
|
-
color:
|
|
454
|
+
backgroundColor: I.value.backgroundColor,
|
|
455
|
+
color: I.value.color
|
|
456
456
|
},
|
|
457
457
|
head: {
|
|
458
|
-
backgroundColor:
|
|
459
|
-
color:
|
|
458
|
+
backgroundColor: I.value.backgroundColor,
|
|
459
|
+
color: I.value.color
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
});
|
|
465
|
-
Le(() =>
|
|
466
|
-
|
|
465
|
+
Le(() => B.value.showTable, (e) => {
|
|
466
|
+
M.value.table.show || (e && M.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
|
|
467
467
|
});
|
|
468
|
-
function
|
|
469
|
-
|
|
468
|
+
function _n() {
|
|
469
|
+
B.value.showTable = !1, zt.value && zt.value.setTableIconState(!1);
|
|
470
470
|
}
|
|
471
|
-
let
|
|
471
|
+
let vn = c(() => sn.value.map((e) => ({
|
|
472
472
|
...e,
|
|
473
473
|
name: e.display,
|
|
474
474
|
shape: "circle"
|
|
475
|
-
}))),
|
|
476
|
-
svg:
|
|
477
|
-
title:
|
|
478
|
-
legend:
|
|
479
|
-
legendItems:
|
|
480
|
-
backgroundColor:
|
|
481
|
-
getSvgCallback: () =>
|
|
482
|
-
generateImage:
|
|
475
|
+
}))), yn = c(() => I.value.backgroundColor), bn = c(() => I.value.legend), xn = c(() => I.value.title), { isCallbackImaging: Sn, isCallbackSvg: Cn, generateSvg: wn, onGenerateImage: Tn } = me({
|
|
476
|
+
svg: z,
|
|
477
|
+
title: xn,
|
|
478
|
+
legend: bn,
|
|
479
|
+
legendItems: vn,
|
|
480
|
+
backgroundColor: yn,
|
|
481
|
+
getSvgCallback: () => M.value.userOptions.callbacks.svg,
|
|
482
|
+
generateImage: $t
|
|
483
483
|
});
|
|
484
|
-
async function
|
|
484
|
+
async function En() {
|
|
485
485
|
if (kt("copyAlt", {
|
|
486
|
-
config:
|
|
487
|
-
dataset:
|
|
488
|
-
}), !
|
|
486
|
+
config: M.value,
|
|
487
|
+
dataset: W.value
|
|
488
|
+
}), !M.value.userOptions.callbacks.altCopy) {
|
|
489
489
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
490
490
|
return;
|
|
491
491
|
}
|
|
492
|
-
await Promise.resolve(
|
|
493
|
-
config:
|
|
494
|
-
dataset:
|
|
492
|
+
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
493
|
+
config: M.value,
|
|
494
|
+
dataset: W.value
|
|
495
495
|
}));
|
|
496
496
|
}
|
|
497
|
-
let
|
|
498
|
-
function
|
|
499
|
-
|
|
497
|
+
let $ = c(() => W.value.map((e) => String(e.key)));
|
|
498
|
+
function Dn() {
|
|
499
|
+
qt(!0);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
|
|
501
|
+
function On() {
|
|
502
|
+
qt(!1);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
return
|
|
504
|
+
function kn(e) {
|
|
505
|
+
return W.value.find((t) => String(t.key) === String(e));
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return ne(
|
|
509
|
-
p:
|
|
507
|
+
function An(e, t, n) {
|
|
508
|
+
return ne(F.value.dataLabel.formatter, e, s({
|
|
509
|
+
p: F.value.dataLabel.prefix,
|
|
510
510
|
v: e,
|
|
511
|
-
s:
|
|
512
|
-
r:
|
|
511
|
+
s: F.value.dataLabel.suffix,
|
|
512
|
+
r: F.value.dataLabel.roundingValue
|
|
513
513
|
}), {
|
|
514
514
|
datapoint: n,
|
|
515
515
|
seriesIndex: t
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function jn(e) {
|
|
519
519
|
return s({
|
|
520
|
-
v:
|
|
520
|
+
v: U.value ? e / U.value * 100 : 0,
|
|
521
521
|
s: "%",
|
|
522
|
-
r:
|
|
522
|
+
r: F.value.dataLabel.roundingPercentage
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
let t =
|
|
527
|
-
return t ? `${e}, ${
|
|
525
|
+
function Mn(e) {
|
|
526
|
+
let t = kn(e);
|
|
527
|
+
return t ? `${e}, ${An(t.value, t.index, t)}, ${jn(t.value)}` : `${e}`;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
let t =
|
|
531
|
-
t && (
|
|
529
|
+
function Nn(e) {
|
|
530
|
+
let t = $.value[e];
|
|
531
|
+
t && (j.value = e, O.value = t);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
|
|
533
|
+
function Pn() {
|
|
534
|
+
Bt.value = !0;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
536
|
+
function Fn() {
|
|
537
|
+
j.value = null, O.value = null, Bt.value = !1;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
if (!
|
|
539
|
+
function In(e) {
|
|
540
|
+
if (!z.value || !$.value.length || Q.value || document.activeElement !== z.value) return;
|
|
541
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
542
|
if (!t && !n && !r && !i) return;
|
|
543
543
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
544
|
-
|
|
544
|
+
j.value = null, O.value = null;
|
|
545
545
|
return;
|
|
546
546
|
}
|
|
547
547
|
if (r) {
|
|
548
|
-
if (
|
|
549
|
-
let e =
|
|
548
|
+
if (j.value === null) return;
|
|
549
|
+
let e = $.value[j.value];
|
|
550
550
|
if (!e) return;
|
|
551
|
-
|
|
551
|
+
G(e);
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
|
-
let a =
|
|
555
|
-
a === null || a < 0 || a >=
|
|
554
|
+
let a = j.value;
|
|
555
|
+
a === null || a < 0 || a >= $.value.length ? a = n ? 0 : $.value.length - 1 : n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)), Nn(a);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ln(e, t) {
|
|
558
558
|
let n = e.key === "Enter" || e.key === " ", r = e.key === "Escape";
|
|
559
559
|
if (!(!n && !r)) {
|
|
560
560
|
if (e.preventDefault(), e.stopPropagation(), r) {
|
|
561
|
-
|
|
561
|
+
j.value = null, O.value = null;
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
|
-
|
|
564
|
+
G(String(t));
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
let
|
|
568
|
-
headers:
|
|
569
|
-
rows:
|
|
567
|
+
let Rn = c(() => ({
|
|
568
|
+
headers: X.value?.colNames ?? [],
|
|
569
|
+
rows: W.value.map((e) => [
|
|
570
570
|
String(e.key),
|
|
571
|
-
|
|
572
|
-
|
|
571
|
+
An(e.value, e.index, e),
|
|
572
|
+
jn(e.value)
|
|
573
573
|
])
|
|
574
574
|
}));
|
|
575
575
|
return _e({
|
|
576
|
-
getData:
|
|
577
|
-
getImage:
|
|
578
|
-
generatePdf:
|
|
579
|
-
generateCsv:
|
|
580
|
-
generateImage:
|
|
581
|
-
generateSvg:
|
|
582
|
-
toggleTable:
|
|
583
|
-
toggleAnnotator:
|
|
584
|
-
toggleFullscreen:
|
|
585
|
-
copyAlt:
|
|
576
|
+
getData: dn,
|
|
577
|
+
getImage: hn,
|
|
578
|
+
generatePdf: Qt,
|
|
579
|
+
generateCsv: un,
|
|
580
|
+
generateImage: $t,
|
|
581
|
+
generateSvg: wn,
|
|
582
|
+
toggleTable: fn,
|
|
583
|
+
toggleAnnotator: mn,
|
|
584
|
+
toggleFullscreen: pn,
|
|
585
|
+
copyAlt: En
|
|
586
586
|
}), (e, t) => (v(), d("div", {
|
|
587
|
-
class: Me(`vue-data-ui-component vue-ui-mood-radar ${
|
|
587
|
+
class: Me(`vue-data-ui-component vue-ui-mood-radar ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
588
588
|
ref_key: "moodRadarChart",
|
|
589
589
|
ref: D,
|
|
590
590
|
id: `${E.value}`,
|
|
591
|
-
style: _(`font-family:${
|
|
592
|
-
onMouseenter:
|
|
593
|
-
onMouseleave:
|
|
591
|
+
style: _(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor}`),
|
|
592
|
+
onMouseenter: Dn,
|
|
593
|
+
onMouseleave: On
|
|
594
594
|
}, [
|
|
595
595
|
f("div", {
|
|
596
596
|
id: `chart-instructions-${E.value}`,
|
|
597
597
|
class: "sr-only"
|
|
598
|
-
}, [f("p", null, x(
|
|
599
|
-
|
|
598
|
+
}, [f("p", null, x(M.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
|
|
599
|
+
Rn.value?.rows?.length ? (v(), l(xe, {
|
|
600
600
|
key: 0,
|
|
601
601
|
uid: E.value,
|
|
602
|
-
head:
|
|
603
|
-
body:
|
|
604
|
-
notice:
|
|
605
|
-
caption:
|
|
602
|
+
head: Rn.value.headers,
|
|
603
|
+
body: Rn.value.rows,
|
|
604
|
+
notice: M.value.a11y.translations.tableAvailable,
|
|
605
|
+
caption: M.value.a11y.translations.tableCaption
|
|
606
606
|
}, null, 8, [
|
|
607
607
|
"uid",
|
|
608
608
|
"head",
|
|
@@ -610,15 +610,15 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
610
610
|
"notice",
|
|
611
611
|
"caption"
|
|
612
612
|
])) : u("", !0),
|
|
613
|
-
|
|
613
|
+
N.value.buttons.annotator ? (v(), l(S(St), {
|
|
614
614
|
key: 1,
|
|
615
|
-
svgRef: S(
|
|
616
|
-
backgroundColor:
|
|
617
|
-
color:
|
|
618
|
-
active:
|
|
619
|
-
isCursorPointer:
|
|
620
|
-
palette:
|
|
621
|
-
onClose:
|
|
615
|
+
svgRef: S(z),
|
|
616
|
+
backgroundColor: I.value.backgroundColor,
|
|
617
|
+
color: I.value.color,
|
|
618
|
+
active: Q.value,
|
|
619
|
+
isCursorPointer: L.value,
|
|
620
|
+
palette: N.value.annotatorPalette,
|
|
621
|
+
onClose: mn
|
|
622
622
|
}, {
|
|
623
623
|
"annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
624
624
|
"annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
@@ -635,14 +635,14 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
635
635
|
"isCursorPointer",
|
|
636
636
|
"palette"
|
|
637
637
|
])) : u("", !0),
|
|
638
|
-
|
|
638
|
+
en.value ? (v(), d("div", {
|
|
639
639
|
key: 2,
|
|
640
640
|
ref_key: "noTitle",
|
|
641
641
|
ref: At,
|
|
642
642
|
class: "vue-data-ui-no-title-space",
|
|
643
643
|
style: "height:36px; width: 100%;background:transparent"
|
|
644
644
|
}, null, 512)) : u("", !0),
|
|
645
|
-
|
|
645
|
+
I.value.title.text ? (v(), d("div", {
|
|
646
646
|
key: 3,
|
|
647
647
|
ref_key: "chartTitle",
|
|
648
648
|
ref: Pt,
|
|
@@ -650,49 +650,49 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
650
650
|
}, [p(ge, { config: {
|
|
651
651
|
title: {
|
|
652
652
|
cy: "mood-radar-title",
|
|
653
|
-
...
|
|
653
|
+
...I.value.title
|
|
654
654
|
},
|
|
655
655
|
subtitle: {
|
|
656
656
|
cy: "mood-radar-subtitle",
|
|
657
|
-
...
|
|
657
|
+
...I.value.title.subtitle
|
|
658
658
|
}
|
|
659
659
|
} }, null, 8, ["config"])], 512)) : u("", !0),
|
|
660
660
|
f("div", { id: `legend-top-${E.value}` }, null, 8, Ve),
|
|
661
|
-
|
|
661
|
+
N.value.show && Vt.value && (S(Jt) || S(Kt)) ? (v(), l(S(Ct), {
|
|
662
662
|
key: 4,
|
|
663
663
|
ref_key: "userOptionsRef",
|
|
664
|
-
ref:
|
|
665
|
-
backgroundColor:
|
|
666
|
-
color:
|
|
667
|
-
isPrinting: S(
|
|
668
|
-
isImaging: S(
|
|
664
|
+
ref: zt,
|
|
665
|
+
backgroundColor: I.value.backgroundColor,
|
|
666
|
+
color: I.value.color,
|
|
667
|
+
isPrinting: S(Xt),
|
|
668
|
+
isImaging: S(Zt),
|
|
669
669
|
uid: E.value,
|
|
670
|
-
hasPdf:
|
|
671
|
-
hasXls:
|
|
672
|
-
hasImg:
|
|
673
|
-
hasSvg:
|
|
674
|
-
hasTable:
|
|
675
|
-
hasFullscreen:
|
|
676
|
-
hasAltCopy:
|
|
677
|
-
isFullscreen:
|
|
678
|
-
titles: { ...
|
|
670
|
+
hasPdf: N.value.buttons.pdf,
|
|
671
|
+
hasXls: N.value.buttons.csv,
|
|
672
|
+
hasImg: N.value.buttons.img,
|
|
673
|
+
hasSvg: N.value.buttons.svg,
|
|
674
|
+
hasTable: N.value.buttons.table,
|
|
675
|
+
hasFullscreen: N.value.buttons.fullscreen,
|
|
676
|
+
hasAltCopy: N.value.buttons.altCopy,
|
|
677
|
+
isFullscreen: Z.value,
|
|
678
|
+
titles: { ...N.value.buttonTitles },
|
|
679
679
|
chartElement: D.value,
|
|
680
|
-
position:
|
|
681
|
-
hasAnnotator:
|
|
682
|
-
isAnnotation:
|
|
683
|
-
callbacks:
|
|
684
|
-
printScale:
|
|
685
|
-
tableDialog:
|
|
686
|
-
isCursorPointer:
|
|
687
|
-
onToggleFullscreen:
|
|
688
|
-
onGeneratePdf: S(
|
|
689
|
-
onGenerateCsv:
|
|
690
|
-
onGenerateImage: S(
|
|
691
|
-
onGenerateSvg: S(
|
|
692
|
-
onToggleTable:
|
|
693
|
-
onToggleAnnotator:
|
|
694
|
-
onCopyAlt:
|
|
695
|
-
style: _({ visibility: S(
|
|
680
|
+
position: N.value.position,
|
|
681
|
+
hasAnnotator: N.value.buttons.annotator,
|
|
682
|
+
isAnnotation: Q.value,
|
|
683
|
+
callbacks: N.value.callbacks,
|
|
684
|
+
printScale: N.value.print.scale,
|
|
685
|
+
tableDialog: M.value.table.useDialog,
|
|
686
|
+
isCursorPointer: L.value,
|
|
687
|
+
onToggleFullscreen: pn,
|
|
688
|
+
onGeneratePdf: S(Qt),
|
|
689
|
+
onGenerateCsv: un,
|
|
690
|
+
onGenerateImage: S(Tn),
|
|
691
|
+
onGenerateSvg: S(wn),
|
|
692
|
+
onToggleTable: fn,
|
|
693
|
+
onToggleAnnotator: mn,
|
|
694
|
+
onCopyAlt: En,
|
|
695
|
+
style: _({ visibility: S(Jt) ? S(Kt) ? "visible" : "hidden" : "visible" })
|
|
696
696
|
}, Oe({ _: 2 }, [
|
|
697
697
|
e.$slots.menuIcon ? {
|
|
698
698
|
name: "menuIcon",
|
|
@@ -761,27 +761,27 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
761
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("."))) : u("", !0),
|
|
762
762
|
f("div", He, [(v(), d("svg", {
|
|
763
763
|
ref_key: "svgRef",
|
|
764
|
-
ref:
|
|
764
|
+
ref: z,
|
|
765
765
|
xmlns: S(ae),
|
|
766
766
|
"aria-describedby": `chart-instructions-${E.value}`,
|
|
767
|
-
viewBox: `0 0 ${
|
|
767
|
+
viewBox: `0 0 ${V.value.width} ${V.value.height}`,
|
|
768
768
|
class: Me({
|
|
769
|
-
"vue-data-ui-fullscreen--on":
|
|
770
|
-
"vue-data-ui-fulscreen--off": !
|
|
769
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
770
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
771
771
|
}),
|
|
772
|
-
style: _(`overflow:visible;background:transparent;color:${
|
|
772
|
+
style: _(`overflow:visible;background:transparent;color:${I.value.color}`),
|
|
773
773
|
tabindex: "0",
|
|
774
|
-
onFocus:
|
|
775
|
-
onBlur:
|
|
776
|
-
onKeydown:
|
|
774
|
+
onFocus: Pn,
|
|
775
|
+
onBlur: Fn,
|
|
776
|
+
onKeydown: In
|
|
777
777
|
}, [
|
|
778
778
|
p(S(wt)),
|
|
779
779
|
e.$slots["chart-background"] ? (v(), d("foreignObject", {
|
|
780
780
|
key: 0,
|
|
781
781
|
x: 0,
|
|
782
782
|
y: 0,
|
|
783
|
-
width:
|
|
784
|
-
height:
|
|
783
|
+
width: V.value.width,
|
|
784
|
+
height: V.value.height,
|
|
785
785
|
style: { pointerEvents: "none" }
|
|
786
786
|
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, We)) : u("", !0),
|
|
787
787
|
f("defs", null, [p(be, {
|
|
@@ -794,33 +794,33 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
794
794
|
id: `mood_radar_gradient_${E.value}`,
|
|
795
795
|
stops: [[
|
|
796
796
|
"0%",
|
|
797
|
-
S(o)(
|
|
797
|
+
S(o)(F.value.dataPolygon.color, F.value.dataPolygon.opacity),
|
|
798
798
|
1
|
|
799
799
|
], [
|
|
800
800
|
"100%",
|
|
801
|
-
S(o)(S(ee)(
|
|
801
|
+
S(o)(S(ee)(F.value.dataPolygon.color, F.value.dataPolygon.gradient.intensity / 100), F.value.dataPolygon.opacity),
|
|
802
802
|
1
|
|
803
803
|
]]
|
|
804
804
|
}, null, 8, ["id", "stops"])]),
|
|
805
|
-
(v(!0), d(Ee, null, Pe(
|
|
806
|
-
x1:
|
|
807
|
-
y1:
|
|
805
|
+
(v(!0), d(Ee, null, Pe(rn.value.coordinates, (e) => (v(), d("line", {
|
|
806
|
+
x1: V.value.width / 2,
|
|
807
|
+
y1: V.value.height / 2,
|
|
808
808
|
x2: e.x,
|
|
809
809
|
y2: e.y,
|
|
810
|
-
stroke:
|
|
811
|
-
"stroke-width":
|
|
810
|
+
stroke: F.value.grid.stroke,
|
|
811
|
+
"stroke-width": F.value.grid.strokeWidth
|
|
812
812
|
}, null, 8, Ge))), 256)),
|
|
813
813
|
f("path", {
|
|
814
|
-
d:
|
|
814
|
+
d: rn.value.path,
|
|
815
815
|
fill: "none",
|
|
816
|
-
stroke:
|
|
817
|
-
"stroke-width":
|
|
816
|
+
stroke: F.value.outerPolygon.stroke,
|
|
817
|
+
"stroke-width": F.value.outerPolygon.strokeWidth,
|
|
818
818
|
"stroke-linejoin": "round",
|
|
819
819
|
"stroke-linecap": "round"
|
|
820
820
|
}, null, 8, Ke),
|
|
821
|
-
f("g", { transform:
|
|
821
|
+
f("g", { transform: H("5") }, [f("path", {
|
|
822
822
|
fill: "none",
|
|
823
|
-
stroke: P.value.
|
|
823
|
+
stroke: P.value.colors[5],
|
|
824
824
|
"stroke-width": "1",
|
|
825
825
|
"stroke-linecap": "round",
|
|
826
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"
|
|
@@ -830,15 +830,15 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
830
830
|
cx: "128",
|
|
831
831
|
cy: "25",
|
|
832
832
|
r: "20",
|
|
833
|
-
"aria-label":
|
|
834
|
-
fill: O.value === "5" ? S(o)(P.value.
|
|
835
|
-
onMouseenter: t[0] ||= (e) =>
|
|
836
|
-
onMouseleave: t[1] ||= (e) =>
|
|
837
|
-
onClick: t[2] ||= (e) =>
|
|
833
|
+
"aria-label": Mn("5"),
|
|
834
|
+
fill: O.value === "5" ? S(o)(P.value.colors[5], 20) : "transparent",
|
|
835
|
+
onMouseenter: t[0] ||= (e) => K("5"),
|
|
836
|
+
onMouseleave: t[1] ||= (e) => q("5"),
|
|
837
|
+
onClick: t[2] ||= (e) => J("5")
|
|
838
838
|
}, null, 40, Ye)], 8, qe),
|
|
839
|
-
f("g", { transform:
|
|
839
|
+
f("g", { transform: H("4") }, [f("path", {
|
|
840
840
|
fill: "none",
|
|
841
|
-
stroke: P.value.
|
|
841
|
+
stroke: P.value.colors[4],
|
|
842
842
|
"stroke-width": "1",
|
|
843
843
|
"stroke-linecap": "round",
|
|
844
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"
|
|
@@ -847,15 +847,15 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
847
847
|
cx: "227",
|
|
848
848
|
cy: "95.5",
|
|
849
849
|
r: "20",
|
|
850
|
-
"aria-label":
|
|
851
|
-
fill: O.value === "4" ? S(o)(P.value.
|
|
852
|
-
onMouseenter: t[3] ||= (e) =>
|
|
853
|
-
onMouseleave: t[4] ||= (e) =>
|
|
854
|
-
onClick: t[5] ||= (e) =>
|
|
850
|
+
"aria-label": Mn("4"),
|
|
851
|
+
fill: O.value === "4" ? S(o)(P.value.colors[4], 20) : "transparent",
|
|
852
|
+
onMouseenter: t[3] ||= (e) => K("4"),
|
|
853
|
+
onMouseleave: t[4] ||= (e) => q("4"),
|
|
854
|
+
onClick: t[5] ||= (e) => J("4")
|
|
855
855
|
}, null, 40, Qe)], 8, Xe),
|
|
856
|
-
f("g", { transform:
|
|
856
|
+
f("g", { transform: H("3") }, [f("path", {
|
|
857
857
|
fill: "none",
|
|
858
|
-
stroke: P.value.
|
|
858
|
+
stroke: P.value.colors[3],
|
|
859
859
|
"stroke-width": "1",
|
|
860
860
|
"stroke-linecap": "round",
|
|
861
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"
|
|
@@ -864,15 +864,15 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
864
864
|
cx: "190",
|
|
865
865
|
cy: "213.5",
|
|
866
866
|
r: "20",
|
|
867
|
-
"aria-label":
|
|
868
|
-
fill: O.value === "3" ? S(o)(P.value.
|
|
869
|
-
onMouseenter: t[6] ||= (e) =>
|
|
870
|
-
onMouseleave: t[7] ||= (e) =>
|
|
871
|
-
onClick: t[8] ||= (e) =>
|
|
867
|
+
"aria-label": Mn("3"),
|
|
868
|
+
fill: O.value === "3" ? S(o)(P.value.colors[3], 20) : "transparent",
|
|
869
|
+
onMouseenter: t[6] ||= (e) => K("3"),
|
|
870
|
+
onMouseleave: t[7] ||= (e) => q("3"),
|
|
871
|
+
onClick: t[8] ||= (e) => J("3")
|
|
872
872
|
}, null, 40, tt)], 8, $e),
|
|
873
|
-
f("g", { transform:
|
|
873
|
+
f("g", { transform: H("2") }, [f("path", {
|
|
874
874
|
fill: "none",
|
|
875
|
-
stroke: P.value.
|
|
875
|
+
stroke: P.value.colors[2],
|
|
876
876
|
"stroke-width": "1",
|
|
877
877
|
"stroke-linecap": "round",
|
|
878
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"
|
|
@@ -881,15 +881,15 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
881
881
|
cx: "65",
|
|
882
882
|
cy: "213.5",
|
|
883
883
|
r: "20",
|
|
884
|
-
"aria-label":
|
|
885
|
-
fill: O.value === "2" ? S(o)(P.value.
|
|
886
|
-
onMouseenter: t[9] ||= (e) =>
|
|
887
|
-
onMouseleave: t[10] ||= (e) =>
|
|
888
|
-
onClick: t[11] ||= (e) =>
|
|
884
|
+
"aria-label": Mn("2"),
|
|
885
|
+
fill: O.value === "2" ? S(o)(P.value.colors[2], 20) : "transparent",
|
|
886
|
+
onMouseenter: t[9] ||= (e) => K("2"),
|
|
887
|
+
onMouseleave: t[10] ||= (e) => q("2"),
|
|
888
|
+
onClick: t[11] ||= (e) => J("2")
|
|
889
889
|
}, null, 40, it)], 8, nt),
|
|
890
|
-
f("g", { transform:
|
|
890
|
+
f("g", { transform: H("1") }, [f("path", {
|
|
891
891
|
fill: "none",
|
|
892
|
-
stroke: P.value.
|
|
892
|
+
stroke: P.value.colors[1],
|
|
893
893
|
"stroke-width": "1",
|
|
894
894
|
"stroke-linecap": "round",
|
|
895
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"
|
|
@@ -898,106 +898,106 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
898
898
|
cx: "29",
|
|
899
899
|
cy: "95.5",
|
|
900
900
|
r: "20",
|
|
901
|
-
"aria-label":
|
|
902
|
-
fill: O.value === "1" ? S(o)(P.value.
|
|
903
|
-
onMouseenter: t[12] ||= (e) =>
|
|
904
|
-
onMouseleave: t[13] ||= (e) =>
|
|
905
|
-
onClick: t[14] ||= (e) =>
|
|
901
|
+
"aria-label": Mn("1"),
|
|
902
|
+
fill: O.value === "1" ? S(o)(P.value.colors[1], 20) : "transparent",
|
|
903
|
+
onMouseenter: t[12] ||= (e) => K("1"),
|
|
904
|
+
onMouseleave: t[13] ||= (e) => q("1"),
|
|
905
|
+
onClick: t[14] ||= (e) => J("1")
|
|
906
906
|
}, null, 40, st)], 8, at),
|
|
907
907
|
f("path", {
|
|
908
|
-
d: S(i)(
|
|
909
|
-
stroke:
|
|
910
|
-
"stroke-width":
|
|
908
|
+
d: S(i)(cn.value.map((e) => e.plots)),
|
|
909
|
+
stroke: F.value.dataPolygon.stroke,
|
|
910
|
+
"stroke-width": F.value.dataPolygon.strokeWidth,
|
|
911
911
|
"stroke-linecap": "round",
|
|
912
912
|
"stroke-linejoin": "round",
|
|
913
|
-
fill:
|
|
913
|
+
fill: F.value.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${E.value})` : S(o)(F.value.dataPolygon.color, F.value.dataPolygon.opacity)
|
|
914
914
|
}, null, 8, ct),
|
|
915
|
-
(v(!0), d(Ee, null, Pe(
|
|
915
|
+
(v(!0), d(Ee, null, Pe(cn.value.map((e) => e.plots), (e, t) => (v(), d("g", {
|
|
916
916
|
class: "vue-ui-mood-radar-trap",
|
|
917
917
|
style: _(`opacity:${O.value == e.key ? "1" : "0"}`)
|
|
918
918
|
}, [
|
|
919
919
|
f("line", {
|
|
920
920
|
x1: e.x,
|
|
921
921
|
y1: e.y,
|
|
922
|
-
x2:
|
|
923
|
-
y2:
|
|
924
|
-
stroke: P.value.
|
|
922
|
+
x2: V.value.width / 2,
|
|
923
|
+
y2: V.value.height / 2,
|
|
924
|
+
stroke: P.value.colors[e.key]
|
|
925
925
|
}, null, 8, lt),
|
|
926
926
|
f("circle", {
|
|
927
927
|
cx: e.x,
|
|
928
928
|
cy: e.y,
|
|
929
|
-
fill: P.value.
|
|
929
|
+
fill: P.value.colors[e.key],
|
|
930
930
|
r: "3",
|
|
931
|
-
stroke:
|
|
931
|
+
stroke: I.value.backgroundColor,
|
|
932
932
|
"stroke-width": .5
|
|
933
933
|
}, null, 8, ut),
|
|
934
934
|
f("circle", {
|
|
935
|
-
cx:
|
|
936
|
-
cy:
|
|
937
|
-
fill: P.value.
|
|
935
|
+
cx: V.value.width / 2,
|
|
936
|
+
cy: V.value.height / 2,
|
|
937
|
+
fill: P.value.colors[e.key],
|
|
938
938
|
r: "3",
|
|
939
|
-
stroke:
|
|
939
|
+
stroke: I.value.backgroundColor,
|
|
940
940
|
"stroke-width": .5
|
|
941
941
|
}, null, 8, dt),
|
|
942
942
|
f("text", {
|
|
943
|
-
x:
|
|
944
|
-
y: ["5", 5].includes(e.key) ?
|
|
945
|
-
fill:
|
|
943
|
+
x: V.value.width / 2,
|
|
944
|
+
y: ["5", 5].includes(e.key) ? V.value.height / 2 * 1.13 : V.value.height / 2 * .9375,
|
|
945
|
+
fill: F.value.dataLabel.color,
|
|
946
946
|
"font-size": "12",
|
|
947
947
|
"text-anchor": "middle",
|
|
948
|
-
"font-weight":
|
|
949
|
-
}, x(S(ne)(
|
|
950
|
-
p:
|
|
948
|
+
"font-weight": F.value.dataLabel.bold ? "bold" : "normal"
|
|
949
|
+
}, x(S(ne)(F.value.dataLabel.formatter, e.value, S(s)({
|
|
950
|
+
p: F.value.dataLabel.prefix,
|
|
951
951
|
v: e.value,
|
|
952
|
-
s:
|
|
953
|
-
r:
|
|
952
|
+
s: F.value.dataLabel.suffix,
|
|
953
|
+
r: F.value.dataLabel.roundingValue
|
|
954
954
|
}), {
|
|
955
955
|
datapoint: e,
|
|
956
956
|
seriesIndex: t
|
|
957
957
|
})), 9, ft),
|
|
958
958
|
f("text", {
|
|
959
|
-
x:
|
|
960
|
-
y: ["5", 5].includes(e.key) ?
|
|
961
|
-
fill:
|
|
959
|
+
x: V.value.width / 2,
|
|
960
|
+
y: ["5", 5].includes(e.key) ? V.value.height / 2 * 1.273 : V.value.height / 2 * .7968,
|
|
961
|
+
fill: F.value.dataLabel.color,
|
|
962
962
|
"font-size": "12",
|
|
963
963
|
"text-anchor": "middle"
|
|
964
964
|
}, " (" + x(S(s)({
|
|
965
|
-
v: e.value /
|
|
965
|
+
v: e.value / U.value * 100,
|
|
966
966
|
s: "%",
|
|
967
|
-
r:
|
|
967
|
+
r: F.value.dataLabel.roundingPercentage
|
|
968
968
|
})) + ") ", 9, pt)
|
|
969
969
|
], 4))), 256)),
|
|
970
970
|
b(e.$slots, "svg", { svg: {
|
|
971
|
-
...
|
|
972
|
-
isPrintingImg: S(
|
|
973
|
-
isPrintingSvg: S(
|
|
971
|
+
...V.value,
|
|
972
|
+
isPrintingImg: S(Xt) || S(Zt) || S(Sn),
|
|
973
|
+
isPrintingSvg: S(Cn)
|
|
974
974
|
} }, void 0, !0)
|
|
975
975
|
], 46, Ue)), e.$slots.hint ? (v(), d("div", mt, [b(e.$slots, "hint", g(h({
|
|
976
|
-
hint:
|
|
977
|
-
isVisible:
|
|
976
|
+
hint: M.value.a11y.translations.keyboardNavigation,
|
|
977
|
+
isVisible: Bt.value
|
|
978
978
|
})), void 0, !0)])) : u("", !0)]),
|
|
979
|
-
e.$slots.watermark ? (v(), d("div", ht, [b(e.$slots, "watermark", g(h({ isPrinting: S(
|
|
979
|
+
e.$slots.watermark ? (v(), d("div", ht, [b(e.$slots, "watermark", g(h({ isPrinting: S(Xt) || S(Zt) || S(Sn) || S(Cn) })), void 0, !0)])) : u("", !0),
|
|
980
980
|
f("div", { id: `legend-bottom-${E.value}` }, null, 8, gt),
|
|
981
|
-
|
|
981
|
+
Rt.value && (I.value.legend.show || e.$slots.legend) ? (v(), l(De, {
|
|
982
982
|
key: 6,
|
|
983
|
-
to:
|
|
983
|
+
to: I.value.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
984
984
|
}, [f("div", {
|
|
985
985
|
ref_key: "chartLegend",
|
|
986
986
|
ref: Ft
|
|
987
|
-
}, [b(e.$slots, "legend", { legend:
|
|
988
|
-
legendSet:
|
|
989
|
-
config:
|
|
987
|
+
}, [b(e.$slots, "legend", { legend: W.value }, () => [I.value.legend.show ? (v(), l(we, {
|
|
988
|
+
legendSet: sn.value,
|
|
989
|
+
config: ln.value,
|
|
990
990
|
key: `legend_${Nt.value}`,
|
|
991
|
-
isCursorPointer:
|
|
991
|
+
isCursorPointer: L.value,
|
|
992
992
|
style: {
|
|
993
993
|
display: "flex",
|
|
994
994
|
"row-gap": "6px"
|
|
995
995
|
},
|
|
996
|
-
onFocusMarker: t[15] ||= ({ legend: e }) =>
|
|
996
|
+
onFocusMarker: t[15] ||= ({ legend: e }) => G(e.key)
|
|
997
997
|
}, {
|
|
998
998
|
item: C(({ legend: e, index: t }) => [f("div", {
|
|
999
999
|
role: "button",
|
|
1000
|
-
onClick: () =>
|
|
1000
|
+
onClick: () => G(e.key),
|
|
1001
1001
|
style: {
|
|
1002
1002
|
display: "flex",
|
|
1003
1003
|
"flex-direction": "row",
|
|
@@ -1005,41 +1005,41 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
1005
1005
|
"align-items": "center",
|
|
1006
1006
|
margin: "3px 0"
|
|
1007
1007
|
},
|
|
1008
|
-
onKeydown: (t) =>
|
|
1008
|
+
onKeydown: (t) => Ln(t, String(e.key))
|
|
1009
1009
|
}, [
|
|
1010
1010
|
e.key == 1 ? (v(), l(S(w), {
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
strokeWidth: 1,
|
|
1013
1013
|
name: "moodSad",
|
|
1014
|
-
stroke: P.value.
|
|
1014
|
+
stroke: P.value.colors[e.key]
|
|
1015
1015
|
}, null, 8, ["stroke"])) : u("", !0),
|
|
1016
1016
|
e.key == 2 ? (v(), l(S(w), {
|
|
1017
1017
|
key: 1,
|
|
1018
1018
|
strokeWidth: 1,
|
|
1019
1019
|
name: "moodFlat",
|
|
1020
|
-
stroke: P.value.
|
|
1020
|
+
stroke: P.value.colors[e.key]
|
|
1021
1021
|
}, null, 8, ["stroke"])) : u("", !0),
|
|
1022
1022
|
e.key == 3 ? (v(), l(S(w), {
|
|
1023
1023
|
key: 2,
|
|
1024
1024
|
strokeWidth: 1,
|
|
1025
1025
|
name: "moodNeutral",
|
|
1026
|
-
stroke: P.value.
|
|
1026
|
+
stroke: P.value.colors[e.key]
|
|
1027
1027
|
}, null, 8, ["stroke"])) : u("", !0),
|
|
1028
1028
|
e.key == 4 ? (v(), l(S(w), {
|
|
1029
1029
|
key: 3,
|
|
1030
1030
|
strokeWidth: 1,
|
|
1031
1031
|
name: "smiley",
|
|
1032
|
-
stroke: P.value.
|
|
1032
|
+
stroke: P.value.colors[e.key]
|
|
1033
1033
|
}, null, 8, ["stroke"])) : u("", !0),
|
|
1034
1034
|
e.key == 5 ? (v(), l(S(w), {
|
|
1035
1035
|
key: 4,
|
|
1036
1036
|
strokeWidth: 1,
|
|
1037
1037
|
name: "moodHappy",
|
|
1038
|
-
stroke: P.value.
|
|
1038
|
+
stroke: P.value.colors[e.key]
|
|
1039
1039
|
}, null, 8, ["stroke"])) : u("", !0),
|
|
1040
|
-
S(
|
|
1040
|
+
S(Ut) ? u("", !0) : (v(), d("span", {
|
|
1041
1041
|
key: 5,
|
|
1042
|
-
style: _({ fontWeight:
|
|
1042
|
+
style: _({ fontWeight: I.value.legend.bold ? "bold" : "normal" })
|
|
1043
1043
|
}, x(e.display), 5))
|
|
1044
1044
|
], 40, _t)]),
|
|
1045
1045
|
_: 1
|
|
@@ -1051,27 +1051,27 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
1051
1051
|
e.$slots.source ? (v(), d("div", {
|
|
1052
1052
|
key: 7,
|
|
1053
1053
|
ref_key: "source",
|
|
1054
|
-
ref:
|
|
1054
|
+
ref: Lt,
|
|
1055
1055
|
dir: "auto"
|
|
1056
1056
|
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1057
|
-
|
|
1057
|
+
Vt.value && N.value.buttons.table ? (v(), l(Fe(gn.value.component), Ae({ key: 8 }, gn.value.props, {
|
|
1058
1058
|
ref_key: "tableUnit",
|
|
1059
|
-
ref:
|
|
1060
|
-
onClose:
|
|
1059
|
+
ref: A,
|
|
1060
|
+
onClose: _n
|
|
1061
1061
|
}), Oe({
|
|
1062
1062
|
content: C(() => [p(S(xt), {
|
|
1063
|
-
colNames:
|
|
1064
|
-
head:
|
|
1065
|
-
body:
|
|
1066
|
-
config:
|
|
1067
|
-
title:
|
|
1068
|
-
withCloseButton: !
|
|
1069
|
-
isCursorPointer:
|
|
1070
|
-
onClose:
|
|
1063
|
+
colNames: X.value.colNames,
|
|
1064
|
+
head: X.value.head,
|
|
1065
|
+
body: X.value.body,
|
|
1066
|
+
config: X.value.config,
|
|
1067
|
+
title: M.value.table.useDialog ? "" : gn.value.title,
|
|
1068
|
+
withCloseButton: !M.value.table.useDialog,
|
|
1069
|
+
isCursorPointer: L.value,
|
|
1070
|
+
onClose: _n
|
|
1071
1071
|
}, {
|
|
1072
1072
|
th: C(({ th: e }) => [e === "__SUM__" ? (v(), d("div", vt, [p(S(w), {
|
|
1073
1073
|
name: "sigma",
|
|
1074
|
-
stroke:
|
|
1074
|
+
stroke: X.value.config.th.color,
|
|
1075
1075
|
size: 16
|
|
1076
1076
|
}, null, 8, ["stroke"])])) : (v(), d("div", yt, x(e), 1))]),
|
|
1077
1077
|
td: C(({ td: e }) => [ke(x(e.name || e), 1)]),
|
|
@@ -1086,26 +1086,26 @@ var Re = /* @__PURE__ */ e({ default: () => w }), ze = ["id"], Be = ["id"], Ve =
|
|
|
1086
1086
|
"isCursorPointer"
|
|
1087
1087
|
])]),
|
|
1088
1088
|
_: 2
|
|
1089
|
-
}, [
|
|
1089
|
+
}, [M.value.table.useDialog ? {
|
|
1090
1090
|
name: "title",
|
|
1091
|
-
fn: C(() => [ke(x(
|
|
1091
|
+
fn: C(() => [ke(x(gn.value.title), 1)]),
|
|
1092
1092
|
key: "0"
|
|
1093
|
-
} : void 0,
|
|
1093
|
+
} : void 0, M.value.table.useDialog ? {
|
|
1094
1094
|
name: "actions",
|
|
1095
1095
|
fn: C(() => [f("button", {
|
|
1096
1096
|
tabindex: "0",
|
|
1097
1097
|
class: "vue-ui-user-options-button",
|
|
1098
|
-
onClick: t[16] ||= (e) =>
|
|
1099
|
-
style: _({ cursor:
|
|
1098
|
+
onClick: t[16] ||= (e) => un(N.value.callbacks.csv),
|
|
1099
|
+
style: _({ cursor: L.value ? "pointer" : "default" })
|
|
1100
1100
|
}, [p(S(w), {
|
|
1101
1101
|
name: "fileCsv",
|
|
1102
|
-
stroke:
|
|
1102
|
+
stroke: gn.value.props.color
|
|
1103
1103
|
}, null, 8, ["stroke"])], 4)]),
|
|
1104
1104
|
key: "1"
|
|
1105
1105
|
} : void 0]), 1040)) : u("", !0),
|
|
1106
|
-
b(e.$slots, "skeleton", {}, () => [S(
|
|
1106
|
+
b(e.$slots, "skeleton", {}, () => [S(Ut) ? (v(), l(de, { key: 0 })) : u("", !0)], !0)
|
|
1107
1107
|
], 46, ze));
|
|
1108
1108
|
}
|
|
1109
|
-
}, [["__scopeId", "data-v-
|
|
1109
|
+
}, [["__scopeId", "data-v-02a8ef9b"]]);
|
|
1110
1110
|
//#endregion
|
|
1111
1111
|
export { Re as n, w as t };
|