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,1374 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, M as a, Nt as o, Pt as s, S as c, Ut as l, Wt as ee, X as u, Yt as te, Zt as ne, b as re, ht as ie, i as ae, lt as oe, nt as d, q as se, t as ce, w as le } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as ue } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as de } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
-
import { t as fe } from "./usePrinter-DISD7q5m.js";
|
|
6
|
-
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as he } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
-
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as _e } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as ve } from "./img-DhGApYG0.js";
|
|
11
|
-
import { n as ye } from "./Title-CPHi-evi.js";
|
|
12
|
-
import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as Ce } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as we } from "./BaseLegendToggle-__JnV08B.js";
|
|
16
|
-
import { t as Te } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
-
import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
-
import { t as De } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Oe } from "./Legend-X4kF4PvW.js";
|
|
20
|
-
import { t as ke } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
21
|
-
import { t as Ae } from "./vue_ui_radar-jafTED5j.js";
|
|
22
|
-
import { Fragment as f, Teleport as je, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Fe, nextTick as Ie, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Le, onMounted as Re, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as ze, shallowRef as Be, toDisplayString as D, toRefs as Ve, unref as O, watch as He, withCtx as k } from "vue";
|
|
23
|
-
//#region src/components/vue-ui-radar.vue
|
|
24
|
-
var Ue = /* @__PURE__ */ e({ default: () => bt }), We = ["id"], Ge = ["id"], Ke = ["id"], qe = { style: { position: "relative" } }, Je = [
|
|
25
|
-
"xmlns",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"viewBox"
|
|
28
|
-
], Ye = ["width", "height"], Xe = { key: 1 }, Ze = [
|
|
29
|
-
"x1",
|
|
30
|
-
"y1",
|
|
31
|
-
"x2",
|
|
32
|
-
"y2",
|
|
33
|
-
"stroke",
|
|
34
|
-
"stroke-width"
|
|
35
|
-
], Qe = {
|
|
36
|
-
key: 0,
|
|
37
|
-
style: { "pointer-events": "none" }
|
|
38
|
-
}, $e = [
|
|
39
|
-
"d",
|
|
40
|
-
"stroke",
|
|
41
|
-
"stroke-width"
|
|
42
|
-
], et = [
|
|
43
|
-
"d",
|
|
44
|
-
"stroke",
|
|
45
|
-
"stroke-width"
|
|
46
|
-
], tt = { key: 2 }, nt = [
|
|
47
|
-
"x",
|
|
48
|
-
"y",
|
|
49
|
-
"text-anchor",
|
|
50
|
-
"font-size",
|
|
51
|
-
"fill",
|
|
52
|
-
"onMouseenter",
|
|
53
|
-
"onMouseleave",
|
|
54
|
-
"onClick"
|
|
55
|
-
], rt = [
|
|
56
|
-
"points",
|
|
57
|
-
"stroke",
|
|
58
|
-
"stroke-width"
|
|
59
|
-
], it = [
|
|
60
|
-
"points",
|
|
61
|
-
"stroke",
|
|
62
|
-
"stroke-width",
|
|
63
|
-
"fill"
|
|
64
|
-
], at = [
|
|
65
|
-
"d",
|
|
66
|
-
"stroke",
|
|
67
|
-
"stroke-width",
|
|
68
|
-
"stroke-dasharray"
|
|
69
|
-
], ot = { key: 4 }, st = [
|
|
70
|
-
"onMouseenter",
|
|
71
|
-
"onMouseleave",
|
|
72
|
-
"onClick"
|
|
73
|
-
], ct = [
|
|
74
|
-
"cx",
|
|
75
|
-
"cy",
|
|
76
|
-
"r"
|
|
77
|
-
], lt = [
|
|
78
|
-
"cx",
|
|
79
|
-
"cy",
|
|
80
|
-
"fill",
|
|
81
|
-
"r",
|
|
82
|
-
"stroke"
|
|
83
|
-
], ut = {
|
|
84
|
-
key: 0,
|
|
85
|
-
style: {
|
|
86
|
-
position: "absolute",
|
|
87
|
-
top: "100%",
|
|
88
|
-
left: "0",
|
|
89
|
-
width: "100%"
|
|
90
|
-
},
|
|
91
|
-
"data-dom-to-png-ignore": "",
|
|
92
|
-
"aria-hidden": "true"
|
|
93
|
-
}, dt = {
|
|
94
|
-
key: 5,
|
|
95
|
-
class: "vue-data-ui-watermark"
|
|
96
|
-
}, ft = ["id"], pt = ["onClick"], mt = { class: "vue-data-ui-legend-item" }, ht = [
|
|
97
|
-
"stroke",
|
|
98
|
-
"stroke-width",
|
|
99
|
-
"stroke-dasharray"
|
|
100
|
-
], gt = {
|
|
101
|
-
key: 0,
|
|
102
|
-
style: {
|
|
103
|
-
"max-width": "200px",
|
|
104
|
-
margin: "0 auto"
|
|
105
|
-
}
|
|
106
|
-
}, _t = {
|
|
107
|
-
class: "vue-ui-radar-tooltip-datalabel",
|
|
108
|
-
style: { width: "100%" }
|
|
109
|
-
}, vt = { class: "vue-ui-radar-tooltip-datalabel-name" }, yt = { key: 0 }, bt = /*#__PURE__*/ be({
|
|
110
|
-
__name: "vue-ui-radar",
|
|
111
|
-
props: {
|
|
112
|
-
config: {
|
|
113
|
-
type: Object,
|
|
114
|
-
default() {
|
|
115
|
-
return {};
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
dataset: {
|
|
119
|
-
type: Object,
|
|
120
|
-
default() {
|
|
121
|
-
return {};
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
emits: ["selectLegend", "copyAlt"],
|
|
126
|
-
setup(e, { expose: be, emit: Ue }) {
|
|
127
|
-
let bt = v(() => import("./Tooltip-hhrkQ3Lk.js")), xt = v(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), St = v(() => import("./vue-ui-sparkbar-BniEM15a.js").then((e) => e.n)), Ct = v(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), wt = v(() => import("./DataTable-COIO9gi4.js")), Tt = v(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Et = v(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Dt = v(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Ot = v(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_radar: kt } = de(), { isThemeValid: At, warnInvalidTheme: jt } = ge(), A = e, Mt = p(() => !!A.dataset && Object.keys(A.dataset).length), j = w(se()), M = w(!1), Nt = w(""), Pt = w(0), N = w(null), Ft = w(null), It = w(null), Lt = w(null), Rt = w(null), zt = w(0), Bt = w(0), Vt = w(0), Ht = w(!1), Ut = w(null), Wt = w(null), P = w(null), Gt = w({
|
|
128
|
-
x: 0,
|
|
129
|
-
y: 0
|
|
130
|
-
}), Kt = w("pointer"), qt = w(!1), F = w(en());
|
|
131
|
-
ue({
|
|
132
|
-
config: () => F.value,
|
|
133
|
-
dataset: () => A.dataset,
|
|
134
|
-
component: "VueUiRadar",
|
|
135
|
-
rules: [
|
|
136
|
-
{
|
|
137
|
-
test: (e) => e?.categories && e.categories.length === 0,
|
|
138
|
-
message: [
|
|
139
|
-
"👀 There are no categories in your dataset. Consider:",
|
|
140
|
-
"",
|
|
141
|
-
"▶️ Adding categories..."
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
test: (e) => e?.series && e.series.length === 0,
|
|
146
|
-
message: [
|
|
147
|
-
"👀 There are no series in your dataset. Consider:",
|
|
148
|
-
"",
|
|
149
|
-
"▶️ Adding series..."
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
test: (e) => e?.categories && e.categories.length > 3,
|
|
154
|
-
message: [
|
|
155
|
-
"👀 The number of categories > 3, the chart might become hard to read. Consider:",
|
|
156
|
-
"",
|
|
157
|
-
"▶️ Using several instances of the component to display related categories.",
|
|
158
|
-
"",
|
|
159
|
-
"▶️ Adding filters to allow users to choose a maximum number of categories."
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
test: (e) => e?.series && e.series.length > 12,
|
|
164
|
-
message: [
|
|
165
|
-
"👀 The number of series is > 12. Consider:",
|
|
166
|
-
"",
|
|
167
|
-
"▶️ Using several instances of the component to distribute the series.",
|
|
168
|
-
"",
|
|
169
|
-
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
170
|
-
""
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
]
|
|
174
|
-
});
|
|
175
|
-
let I = p(() => F.value.userOptions.useCursorPointer), Jt = p(() => ne({
|
|
176
|
-
defaultConfig: {
|
|
177
|
-
userOptions: { show: !1 },
|
|
178
|
-
table: { show: !1 },
|
|
179
|
-
useCssAnimation: !1,
|
|
180
|
-
style: { chart: {
|
|
181
|
-
backgroundColor: "#99999930",
|
|
182
|
-
layout: {
|
|
183
|
-
grid: { stroke: "#6A6A6A90" },
|
|
184
|
-
labels: { dataLabels: { show: !1 } },
|
|
185
|
-
outerPolygon: { stroke: "#6A6A6A" }
|
|
186
|
-
},
|
|
187
|
-
legend: { backgroundColor: "transparent" }
|
|
188
|
-
} }
|
|
189
|
-
},
|
|
190
|
-
userConfig: F.value.skeletonConfig ?? {}
|
|
191
|
-
})), { loading: Yt, FINAL_DATASET: L } = pe({
|
|
192
|
-
...Ve(A),
|
|
193
|
-
FINAL_CONFIG: F,
|
|
194
|
-
prepareConfig: en,
|
|
195
|
-
callback: () => {
|
|
196
|
-
Promise.resolve().then(async () => {
|
|
197
|
-
await Ie(), H.value.showTable = F.value.table.show;
|
|
198
|
-
});
|
|
199
|
-
},
|
|
200
|
-
skeletonDataset: A.config?.skeletonDataset ?? {
|
|
201
|
-
categories: [{
|
|
202
|
-
name: "_",
|
|
203
|
-
color: "#6A6A6A"
|
|
204
|
-
}],
|
|
205
|
-
series: [
|
|
206
|
-
{
|
|
207
|
-
name: "_",
|
|
208
|
-
values: [.6],
|
|
209
|
-
target: 1
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: "_",
|
|
213
|
-
values: [.6],
|
|
214
|
-
target: 1
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: "_",
|
|
218
|
-
values: [.6],
|
|
219
|
-
target: 1
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: "_",
|
|
223
|
-
values: [.6],
|
|
224
|
-
target: 1
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: "_",
|
|
228
|
-
values: [.6],
|
|
229
|
-
target: 1
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
name: "_",
|
|
233
|
-
values: [.6],
|
|
234
|
-
target: 1
|
|
235
|
-
}
|
|
236
|
-
]
|
|
237
|
-
},
|
|
238
|
-
skeletonConfig: ne({
|
|
239
|
-
defaultConfig: F.value,
|
|
240
|
-
userConfig: Jt.value
|
|
241
|
-
})
|
|
242
|
-
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Ee({ config: F.value }), { svgRef: R } = De({ config: F.value.style.chart.title });
|
|
243
|
-
function $t(e) {
|
|
244
|
-
return {
|
|
245
|
-
...e,
|
|
246
|
-
style: {
|
|
247
|
-
...e.style,
|
|
248
|
-
chart: {
|
|
249
|
-
...e.style.chart,
|
|
250
|
-
layout: {
|
|
251
|
-
...e.style.chart.layout,
|
|
252
|
-
grid: {
|
|
253
|
-
rotate: 0,
|
|
254
|
-
...e.style.chart.layout.grid
|
|
255
|
-
},
|
|
256
|
-
labels: {
|
|
257
|
-
...e.style.chart.layout.labels,
|
|
258
|
-
dataLabels: {
|
|
259
|
-
offset: 0,
|
|
260
|
-
...e.style.chart.layout.labels.dataLabels
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
function en() {
|
|
269
|
-
let e = $t(he({
|
|
270
|
-
userConfig: A.config,
|
|
271
|
-
defaultConfig: kt
|
|
272
|
-
})), t = e.theme;
|
|
273
|
-
if (!t) return e;
|
|
274
|
-
if (!At.value(e)) return jt(e), e;
|
|
275
|
-
let n = he({
|
|
276
|
-
userConfig: Ae[t] || A.config,
|
|
277
|
-
defaultConfig: e
|
|
278
|
-
}), r = he({
|
|
279
|
-
userConfig: A.config,
|
|
280
|
-
defaultConfig: n
|
|
281
|
-
});
|
|
282
|
-
return {
|
|
283
|
-
...r,
|
|
284
|
-
customPalette: r.customPalette.length ? r.customPalette : te[t] || i
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
He(() => A.config, (e) => {
|
|
288
|
-
F.value = en(), Xt.value = !F.value.userOptions.showOnChartHover, tn(), zt.value += 1, Bt.value += 1, Vt.value += 1, H.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.chart.tooltip ? F.value.style.chart.tooltip.show : !1;
|
|
289
|
-
}, { deep: !0 });
|
|
290
|
-
let z = Be(null), B = Be(null), V = p(() => F.value.debug);
|
|
291
|
-
function tn() {
|
|
292
|
-
if (s(A.dataset) && d({
|
|
293
|
-
componentName: "VueUiRadar",
|
|
294
|
-
type: "dataset",
|
|
295
|
-
debug: V.value
|
|
296
|
-
}), F.value.responsive) {
|
|
297
|
-
let e = xe(() => {
|
|
298
|
-
let { width: e, height: t } = Se({
|
|
299
|
-
chart: N.value,
|
|
300
|
-
title: F.value.style.chart.title.text ? Ft.value : null,
|
|
301
|
-
legend: F.value.style.chart.legend.show ? It.value : null,
|
|
302
|
-
source: Lt.value,
|
|
303
|
-
noTitle: Rt.value
|
|
304
|
-
});
|
|
305
|
-
requestAnimationFrame(() => {
|
|
306
|
-
U.value.width = e, U.value.height = t, An();
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = N.value.parentNode, z.value.observe(B.value);
|
|
310
|
-
}
|
|
311
|
-
An();
|
|
312
|
-
}
|
|
313
|
-
Re(() => {
|
|
314
|
-
Ht.value = !0, tn();
|
|
315
|
-
}), Le(() => {
|
|
316
|
-
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
317
|
-
});
|
|
318
|
-
let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = fe({
|
|
319
|
-
elementId: `vue-ui-radar_${j.value}`,
|
|
320
|
-
fileName: F.value.style.chart.title.text || "vue-ui-radar",
|
|
321
|
-
options: F.value.userOptions.print
|
|
322
|
-
}), sn = p(() => F.value.userOptions.show && !F.value.style.chart.title.text), cn = p(() => le(F.value.customPalette)), H = w({
|
|
323
|
-
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
324
|
-
showTable: F.value.table.show,
|
|
325
|
-
showTooltip: F.value.style.chart.tooltip.show
|
|
326
|
-
}), ln = p(() => ({ style: {
|
|
327
|
-
backgroundColor: "#FFFFFF00",
|
|
328
|
-
animation: {
|
|
329
|
-
show: F.value.style.chart.tooltip.animation.show,
|
|
330
|
-
animationFrames: F.value.style.chart.tooltip.animation.animationFrames
|
|
331
|
-
},
|
|
332
|
-
labels: {
|
|
333
|
-
fontSize: F.value.style.chart.tooltip.fontSize,
|
|
334
|
-
name: { color: F.value.style.chart.tooltip.color }
|
|
335
|
-
},
|
|
336
|
-
gutter: {
|
|
337
|
-
backgroundColor: "#CCCCCC",
|
|
338
|
-
opacity: 30
|
|
339
|
-
}
|
|
340
|
-
} })), U = w({
|
|
341
|
-
height: 312,
|
|
342
|
-
width: 512
|
|
343
|
-
}), un = Ue, W = w([]), G = w(null), K = w(!1);
|
|
344
|
-
function dn() {
|
|
345
|
-
W.value.length ? W.value = [] : X.value.forEach((e, t) => {
|
|
346
|
-
W.value.push(t);
|
|
347
|
-
}), fn();
|
|
348
|
-
}
|
|
349
|
-
function fn() {
|
|
350
|
-
un("selectLegend", X.value.filter((e, t) => !W.value.includes(t)).map((e) => ({
|
|
351
|
-
name: e.name,
|
|
352
|
-
color: e.color,
|
|
353
|
-
proportion: e.totalProportion
|
|
354
|
-
})));
|
|
355
|
-
}
|
|
356
|
-
function pn(e) {
|
|
357
|
-
K.value = !0, W.value.includes(e) ? (G.value = e, W.value = W.value.filter((t) => t !== e), setTimeout(() => {
|
|
358
|
-
K.value = !1, G.value = null;
|
|
359
|
-
}, 500)) : (W.value.push(e), setTimeout(() => {
|
|
360
|
-
K.value = !1;
|
|
361
|
-
}, 500)), fn();
|
|
362
|
-
}
|
|
363
|
-
function mn() {
|
|
364
|
-
return X.value.map((e) => ({
|
|
365
|
-
name: e.name,
|
|
366
|
-
color: e.color,
|
|
367
|
-
proportion: e.totalProportion
|
|
368
|
-
}));
|
|
369
|
-
}
|
|
370
|
-
function hn() {
|
|
371
|
-
let e = L.value;
|
|
372
|
-
if ([null, void 0].includes(e?.categories)) {
|
|
373
|
-
d({
|
|
374
|
-
componentName: "VueUiRadar",
|
|
375
|
-
type: "dataset",
|
|
376
|
-
debug: V.value
|
|
377
|
-
}), d({
|
|
378
|
-
componentName: "VueUiRadar",
|
|
379
|
-
type: "datasetAttribute",
|
|
380
|
-
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
381
|
-
debug: V.value
|
|
382
|
-
});
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
e.categories.length === 0 ? d({
|
|
386
|
-
componentName: "VueUiRadar",
|
|
387
|
-
type: "datasetAttributeEmpty",
|
|
388
|
-
property: "categories",
|
|
389
|
-
debug: V.value
|
|
390
|
-
}) : V.value && e.categories.forEach((e, t) => {
|
|
391
|
-
ie({
|
|
392
|
-
datasetObject: e,
|
|
393
|
-
requiredAttributes: ["name"]
|
|
394
|
-
}).forEach((e) => {
|
|
395
|
-
d({
|
|
396
|
-
componentName: "VueUiRadar",
|
|
397
|
-
type: "datasetAttribute",
|
|
398
|
-
property: `category.${e} at index ${t}`,
|
|
399
|
-
index: t
|
|
400
|
-
});
|
|
401
|
-
});
|
|
402
|
-
}), [null, void 0].includes(e?.series) ? d({
|
|
403
|
-
componentName: "VueUiRadar",
|
|
404
|
-
type: "datasetAttribute",
|
|
405
|
-
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
406
|
-
debug: V.value
|
|
407
|
-
}) : V.value && e.series.forEach((e, t) => {
|
|
408
|
-
ie({
|
|
409
|
-
datasetObject: e,
|
|
410
|
-
requiredAttributes: [
|
|
411
|
-
"name",
|
|
412
|
-
"values",
|
|
413
|
-
"target"
|
|
414
|
-
]
|
|
415
|
-
}).forEach((e) => {
|
|
416
|
-
d({
|
|
417
|
-
componentName: "VueUiRadar",
|
|
418
|
-
type: "datasetSerieAttribute",
|
|
419
|
-
key: "series",
|
|
420
|
-
property: e,
|
|
421
|
-
index: t
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
He(() => L.value, () => hn(), {
|
|
427
|
-
deep: !0,
|
|
428
|
-
immediate: !0
|
|
429
|
-
});
|
|
430
|
-
let q = p(() => {
|
|
431
|
-
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = cn.value ?? i;
|
|
432
|
-
return e.map((e, n) => ({
|
|
433
|
-
name: e?.name ?? "",
|
|
434
|
-
categoryId: `radar_category_${j.value}_${n}`,
|
|
435
|
-
color: c(e?.color) || t[n] || i[n % i.length],
|
|
436
|
-
prefix: e?.prefix ?? "",
|
|
437
|
-
suffix: e?.suffix ?? ""
|
|
438
|
-
}));
|
|
439
|
-
}), J = p(() => L.value.series.map((e, t) => ({
|
|
440
|
-
...e,
|
|
441
|
-
color: c(e.color) || cn.value[t] || i[t] || i[t % i.length],
|
|
442
|
-
serieId: `radar_serie_${j.value}_${t}`,
|
|
443
|
-
formatter: e.formatter || null,
|
|
444
|
-
absoluteIndex: t
|
|
445
|
-
})));
|
|
446
|
-
function gn(e) {
|
|
447
|
-
return J.value.length ? X.value.find((t) => t.name === e) || (V.value && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (V.value && console.warn("VueUiRadar - There are no series to show."), null);
|
|
448
|
-
}
|
|
449
|
-
function _n(e) {
|
|
450
|
-
let t = gn(e);
|
|
451
|
-
t !== null && W.value.includes(t.absoluteIndex) && pn(t.absoluteIndex);
|
|
452
|
-
}
|
|
453
|
-
function vn(e) {
|
|
454
|
-
let t = gn(e);
|
|
455
|
-
t !== null && (W.value.includes(t.absoluteIndex) || pn(t.absoluteIndex));
|
|
456
|
-
}
|
|
457
|
-
let yn = p(() => Math.max(0, ...J.value.flatMap((e) => e.values)));
|
|
458
|
-
function bn(e) {
|
|
459
|
-
return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || yn.value || 1;
|
|
460
|
-
}
|
|
461
|
-
let xn = p(() => J.value.map((e, t) => {
|
|
462
|
-
let n = En.value.coordinates[t];
|
|
463
|
-
return jn({
|
|
464
|
-
centerX: U.value.width / 2,
|
|
465
|
-
centerY: U.value.height / 2,
|
|
466
|
-
apexX: n.x,
|
|
467
|
-
apexY: n.y,
|
|
468
|
-
proportion: (e.target || 0) / bn(e)
|
|
469
|
-
});
|
|
470
|
-
})), Sn = p(() => J.value.length), Cn = p(() => Math.min(U.value.width, U.value.height) / 3), wn = p(() => {
|
|
471
|
-
let e = Number(F.value.style.chart.layout.plots.radius ?? 0);
|
|
472
|
-
return Math.max(Number.isFinite(e) ? e * 2.5 : 0, 10);
|
|
473
|
-
}), Tn = p(() => {
|
|
474
|
-
let e = Number(F.value.style.chart.layout.grid.rotation ?? 0);
|
|
475
|
-
return Number.isFinite(e) ? e * Math.PI / 180 : 0;
|
|
476
|
-
}), En = p(() => a({
|
|
477
|
-
plot: {
|
|
478
|
-
x: U.value.width / 2,
|
|
479
|
-
y: U.value.height / 2
|
|
480
|
-
},
|
|
481
|
-
radius: Cn.value,
|
|
482
|
-
sides: Sn.value,
|
|
483
|
-
rotation: Tn.value
|
|
484
|
-
})), Dn = p(() => {
|
|
485
|
-
let e = [];
|
|
486
|
-
for (let t = 0; t < Cn.value; t += Cn.value / F.value.style.chart.layout.grid.graduations) e.push(t);
|
|
487
|
-
return e;
|
|
488
|
-
}), Y = p(() => En.value.coordinates.map((e, t) => {
|
|
489
|
-
let n = J.value[t], r = J.value[t].values.map((t) => jn({
|
|
490
|
-
centerX: U.value.width / 2,
|
|
491
|
-
centerY: U.value.height / 2,
|
|
492
|
-
apexX: e.x,
|
|
493
|
-
apexY: e.y,
|
|
494
|
-
proportion: t / bn(n)
|
|
495
|
-
}));
|
|
496
|
-
return {
|
|
497
|
-
...e,
|
|
498
|
-
...n,
|
|
499
|
-
plots: r
|
|
500
|
-
};
|
|
501
|
-
}).map((e) => ({
|
|
502
|
-
...e,
|
|
503
|
-
labelX: On(e).x,
|
|
504
|
-
labelY: On(e).y,
|
|
505
|
-
labelAnchor: On(e).anchor
|
|
506
|
-
})));
|
|
507
|
-
function On({ x: e, y: t }) {
|
|
508
|
-
let n = U.value.width / 2, r = U.value.height / 2, i = e - n, a = t - r, o = Math.hypot(i, a), s = Number(F.value.style.chart.layout.labels.dataLabels.offset ?? 0), c = 20 + (Number.isFinite(s) ? s : 0);
|
|
509
|
-
if (!o) return {
|
|
510
|
-
x: e,
|
|
511
|
-
y: t,
|
|
512
|
-
anchor: "middle"
|
|
513
|
-
};
|
|
514
|
-
let l = i / o, ee = a / o, u = "middle";
|
|
515
|
-
return l > .01 ? u = "start" : l < -.01 && (u = "end"), {
|
|
516
|
-
x: e + l * c,
|
|
517
|
-
y: t + ee * c,
|
|
518
|
-
anchor: u
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
let kn = p({
|
|
522
|
-
get: () => F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
523
|
-
set: (e) => e
|
|
524
|
-
}), { autoSizeLabels: An } = ke({
|
|
525
|
-
svgRef: R,
|
|
526
|
-
fontSize: F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
527
|
-
minFontSize: 6,
|
|
528
|
-
sizeRef: kn,
|
|
529
|
-
labelClass: ".vue-ui-radar-apex-label"
|
|
530
|
-
});
|
|
531
|
-
function jn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
532
|
-
return {
|
|
533
|
-
x: e + (n - e) * i,
|
|
534
|
-
y: t + (r - t) * i
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
let X = p(() => {
|
|
538
|
-
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || yn.value)));
|
|
539
|
-
return q.value.map((t, n) => {
|
|
540
|
-
let r = re(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
|
|
541
|
-
return {
|
|
542
|
-
...t,
|
|
543
|
-
absoluteIndex: n,
|
|
544
|
-
totalProportion: r,
|
|
545
|
-
shape: "circle",
|
|
546
|
-
opacity: W.value.includes(n) ? .5 : 1,
|
|
547
|
-
segregate: () => pn(n),
|
|
548
|
-
isSegregated: W.value.includes(n),
|
|
549
|
-
display: `${t.name}: ${u({
|
|
550
|
-
v: (r ?? 0) * 100,
|
|
551
|
-
s: "%",
|
|
552
|
-
r: F.value.style.chart.legend.roundingPercentage
|
|
553
|
-
})}`
|
|
554
|
-
};
|
|
555
|
-
});
|
|
556
|
-
}), Mn = p(() => ({
|
|
557
|
-
cy: "radar-div-legend",
|
|
558
|
-
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
559
|
-
color: F.value.style.chart.legend.color,
|
|
560
|
-
fontSize: F.value.style.chart.legend.fontSize,
|
|
561
|
-
paddingBottom: 12,
|
|
562
|
-
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
563
|
-
})), Z = p(() => {
|
|
564
|
-
let e = [
|
|
565
|
-
{
|
|
566
|
-
name: F.value.translations.datapoint,
|
|
567
|
-
color: ""
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
name: F.value.translations.target,
|
|
571
|
-
color: ""
|
|
572
|
-
},
|
|
573
|
-
...X.value
|
|
574
|
-
];
|
|
575
|
-
return {
|
|
576
|
-
head: e,
|
|
577
|
-
body: L.value.series.map((e) => [
|
|
578
|
-
e.name,
|
|
579
|
-
ae(e.formatter, e.target, u({
|
|
580
|
-
p: e.prefix,
|
|
581
|
-
v: e.target,
|
|
582
|
-
s: e.suffix,
|
|
583
|
-
r: F.value.table.td.roundingValue
|
|
584
|
-
})),
|
|
585
|
-
...e.values.map((t, n) => `${ae(e.formatter, t, u({
|
|
586
|
-
p: q.value[n]?.prefix ?? "",
|
|
587
|
-
v: t,
|
|
588
|
-
s: q.value[n]?.suffix ?? "",
|
|
589
|
-
r: F.value.table.td.roundingValue
|
|
590
|
-
}))} (${isNaN(t / e.target) ? "" : u({
|
|
591
|
-
v: t / e.target * 100,
|
|
592
|
-
s: "%",
|
|
593
|
-
r: F.value.table.td.roundingPercentage
|
|
594
|
-
})})`)
|
|
595
|
-
]),
|
|
596
|
-
config: {
|
|
597
|
-
th: {
|
|
598
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
599
|
-
color: F.value.table.th.color,
|
|
600
|
-
outline: F.value.table.th.outline
|
|
601
|
-
},
|
|
602
|
-
td: {
|
|
603
|
-
backgroundColor: F.value.table.td.backgroundColor,
|
|
604
|
-
color: F.value.table.td.color,
|
|
605
|
-
outline: F.value.table.td.outline
|
|
606
|
-
},
|
|
607
|
-
breakpoint: F.value.table.responsiveBreakpoint
|
|
608
|
-
},
|
|
609
|
-
colNames: e
|
|
610
|
-
};
|
|
611
|
-
}), Q = w(null), Nn = w([]), Pn = w(null);
|
|
612
|
-
function Fn(e, t) {
|
|
613
|
-
M.value = !1, Q.value = null, P.value = null, Kt.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
614
|
-
datapoint: e,
|
|
615
|
-
seriesIndex: t
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
function In(e, t) {
|
|
619
|
-
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
620
|
-
datapoint: e,
|
|
621
|
-
seriesIndex: t
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
function Ln(e, t, r = "pointer") {
|
|
625
|
-
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
626
|
-
datapoint: e,
|
|
627
|
-
seriesIndex: t
|
|
628
|
-
}), Kt.value = r, P.value = t;
|
|
629
|
-
let i = q.value.slice();
|
|
630
|
-
Nn.value = [], Q.value = t, M.value = !0, Pn.value = {
|
|
631
|
-
datapoint: e,
|
|
632
|
-
seriesIndex: t,
|
|
633
|
-
series: {
|
|
634
|
-
categories: i,
|
|
635
|
-
datapoints: J.value,
|
|
636
|
-
radar: Y.value
|
|
637
|
-
},
|
|
638
|
-
config: F.value
|
|
639
|
-
};
|
|
640
|
-
let a = F.value.style.chart.tooltip.customFormat;
|
|
641
|
-
if (n(a) && oe(() => a({
|
|
642
|
-
seriesIndex: t,
|
|
643
|
-
datapoint: e,
|
|
644
|
-
series: {
|
|
645
|
-
categories: i,
|
|
646
|
-
datapoints: J.value,
|
|
647
|
-
radar: Y.value
|
|
648
|
-
},
|
|
649
|
-
config: F.value
|
|
650
|
-
}))) {
|
|
651
|
-
Nt.value = a({
|
|
652
|
-
seriesIndex: t,
|
|
653
|
-
datapoint: e,
|
|
654
|
-
series: {
|
|
655
|
-
categories: i,
|
|
656
|
-
datapoints: J.value,
|
|
657
|
-
radar: Y.value
|
|
658
|
-
},
|
|
659
|
-
config: F.value
|
|
660
|
-
});
|
|
661
|
-
return;
|
|
662
|
-
}
|
|
663
|
-
Nt.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
664
|
-
for (let t = 0; t < e.values.length; t += 1) if (!W.value.includes(t)) {
|
|
665
|
-
let n = i[t], r = e.values[t], a = isNaN(r / e.target) ? 0 : r / e.target * 100, o = ae(e.formatter, r, u({
|
|
666
|
-
p: q.value[t].prefix,
|
|
667
|
-
v: r,
|
|
668
|
-
s: q.value[t].suffix,
|
|
669
|
-
r: F.value.style.chart.tooltip.roundingValue
|
|
670
|
-
}), { datapoint: e }), s = u({
|
|
671
|
-
v: a,
|
|
672
|
-
s: "%",
|
|
673
|
-
r: F.value.style.chart.tooltip.roundingPercentage
|
|
674
|
-
}), c = F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${o} (${s})` : F.value.style.chart.tooltip.showValue && !F.value.style.chart.tooltip.showPercentage ? o : !F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${s}` : "";
|
|
675
|
-
Nn.value.push({
|
|
676
|
-
name: n?.name ?? `#${t + 1}`,
|
|
677
|
-
value: e.values[t] / e.target * 100,
|
|
678
|
-
color: n?.color,
|
|
679
|
-
suffix: c,
|
|
680
|
-
prefix: "",
|
|
681
|
-
rounding: F.value.style.chart.tooltip.roundingPercentage,
|
|
682
|
-
formatter: e.formatter
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
function Rn(e = null) {
|
|
687
|
-
Ie(() => {
|
|
688
|
-
let n = [
|
|
689
|
-
[F.value.style.chart.title.text],
|
|
690
|
-
[F.value.style.chart.title.subtitle.text],
|
|
691
|
-
[""]
|
|
692
|
-
], i = [
|
|
693
|
-
[""],
|
|
694
|
-
[F.value.translations.target],
|
|
695
|
-
...X.value.flatMap((e) => [[e.name], ["%"]])
|
|
696
|
-
], a = L.value.series.map((e, t) => [
|
|
697
|
-
e.name,
|
|
698
|
-
e.target,
|
|
699
|
-
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
700
|
-
]), o = n.concat([i]).concat(a), s = r(o);
|
|
701
|
-
e ? e(s) : t({
|
|
702
|
-
csvContent: s,
|
|
703
|
-
title: F.value.style.chart.title.text || "vue-ui-radar"
|
|
704
|
-
});
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
let $ = w(!1);
|
|
708
|
-
function zn(e) {
|
|
709
|
-
$.value = e, Pt.value += 1;
|
|
710
|
-
}
|
|
711
|
-
function Bn() {
|
|
712
|
-
H.value.showTable = !H.value.showTable;
|
|
713
|
-
}
|
|
714
|
-
function Vn() {
|
|
715
|
-
H.value.showTooltip = !H.value.showTooltip;
|
|
716
|
-
}
|
|
717
|
-
let Hn = w(!1);
|
|
718
|
-
function Un() {
|
|
719
|
-
Hn.value = !Hn.value;
|
|
720
|
-
}
|
|
721
|
-
async function Wn({ scale: e = 2 } = {}) {
|
|
722
|
-
if (!N.value) return;
|
|
723
|
-
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
724
|
-
domElement: N.value,
|
|
725
|
-
base64: !0,
|
|
726
|
-
img: !0,
|
|
727
|
-
scale: e
|
|
728
|
-
});
|
|
729
|
-
return {
|
|
730
|
-
imageUri: i,
|
|
731
|
-
base64: a,
|
|
732
|
-
title: F.value.style.chart.title.text,
|
|
733
|
-
width: t,
|
|
734
|
-
height: n,
|
|
735
|
-
aspectRatio: r
|
|
736
|
-
};
|
|
737
|
-
}
|
|
738
|
-
let Gn = p(() => {
|
|
739
|
-
let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
|
|
740
|
-
return {
|
|
741
|
-
component: e ? Ot : Ct,
|
|
742
|
-
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
743
|
-
props: e ? {
|
|
744
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
745
|
-
color: F.value.table.th.color,
|
|
746
|
-
headerColor: F.value.table.th.color,
|
|
747
|
-
headerBg: F.value.table.th.backgroundColor,
|
|
748
|
-
isFullscreen: $.value,
|
|
749
|
-
fullscreenParent: N.value,
|
|
750
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
751
|
-
isCursorPointer: I.value
|
|
752
|
-
} : {
|
|
753
|
-
hideDetails: !0,
|
|
754
|
-
config: {
|
|
755
|
-
open: t,
|
|
756
|
-
maxHeight: 1e4,
|
|
757
|
-
body: {
|
|
758
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
759
|
-
color: F.value.style.chart.color
|
|
760
|
-
},
|
|
761
|
-
head: {
|
|
762
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
763
|
-
color: F.value.style.chart.color
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
|
-
});
|
|
769
|
-
He(() => H.value.showTable, (e) => {
|
|
770
|
-
F.value.table.show || (e && F.value.table.useDialog && Ut.value ? Ut.value.open() : "close" in Ut.value && Ut.value.close());
|
|
771
|
-
});
|
|
772
|
-
function Kn() {
|
|
773
|
-
H.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
|
|
774
|
-
}
|
|
775
|
-
let qn = p(() => X.value.map((e) => ({
|
|
776
|
-
...e,
|
|
777
|
-
name: e.display
|
|
778
|
-
}))), Jn = p(() => F.value.style.chart.backgroundColor), Yn = p(() => F.value.style.chart.legend), Xn = p(() => F.value.style.chart.title), { isCallbackImaging: Zn, isCallbackSvg: Qn, generateSvg: $n, onGenerateImage: er } = _e({
|
|
779
|
-
svg: R,
|
|
780
|
-
title: Xn,
|
|
781
|
-
legend: Yn,
|
|
782
|
-
legendItems: qn,
|
|
783
|
-
backgroundColor: Jn,
|
|
784
|
-
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
785
|
-
generateImage: on
|
|
786
|
-
});
|
|
787
|
-
async function tr() {
|
|
788
|
-
if (un("copyAlt", {
|
|
789
|
-
config: F.value,
|
|
790
|
-
dataset: Y.value
|
|
791
|
-
}), !F.value.userOptions.callbacks.altCopy) {
|
|
792
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
793
|
-
return;
|
|
794
|
-
}
|
|
795
|
-
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
796
|
-
config: F.value,
|
|
797
|
-
dataset: Y.value
|
|
798
|
-
}));
|
|
799
|
-
}
|
|
800
|
-
function nr() {
|
|
801
|
-
P.value = null, qt.value = !0;
|
|
802
|
-
}
|
|
803
|
-
function rr() {
|
|
804
|
-
P.value = null, Kt.value = "pointer", M.value = !1, Q.value = null, qt.value = !1;
|
|
805
|
-
}
|
|
806
|
-
function ir(e) {
|
|
807
|
-
if (!Number.isFinite(e) || !R.value) return;
|
|
808
|
-
let t = Y.value[e];
|
|
809
|
-
if (!t) return;
|
|
810
|
-
let n = R.value.getBoundingClientRect();
|
|
811
|
-
Gt.value = {
|
|
812
|
-
x: n.left + t.labelX / U.value.width * n.width,
|
|
813
|
-
y: n.top + t.labelY / U.value.height * n.height
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
function ar(e) {
|
|
817
|
-
if (!R.value || Hn.value || document.activeElement !== R.value || !Y.value.length) return;
|
|
818
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
819
|
-
if (!t && !n && !r && !i) return;
|
|
820
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
821
|
-
P.value = null, Kt.value = "pointer", M.value = !1, Q.value = null;
|
|
822
|
-
return;
|
|
823
|
-
}
|
|
824
|
-
if (r) {
|
|
825
|
-
if (P.value === null) return;
|
|
826
|
-
let e = Y.value[P.value];
|
|
827
|
-
if (!e) return;
|
|
828
|
-
In(e, P.value);
|
|
829
|
-
return;
|
|
830
|
-
}
|
|
831
|
-
let a = P.value;
|
|
832
|
-
a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1));
|
|
833
|
-
let o = Y.value[a];
|
|
834
|
-
o && (P.value = a, ir(a), Ln(o, a, "keyboard"));
|
|
835
|
-
}
|
|
836
|
-
let or = p(() => ({
|
|
837
|
-
headers: Z.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
838
|
-
rows: Z.value?.body ?? []
|
|
839
|
-
}));
|
|
840
|
-
return be({
|
|
841
|
-
getData: mn,
|
|
842
|
-
getImage: Wn,
|
|
843
|
-
generatePdf: an,
|
|
844
|
-
generateCsv: Rn,
|
|
845
|
-
generateImage: on,
|
|
846
|
-
generateSvg: $n,
|
|
847
|
-
hideSeries: vn,
|
|
848
|
-
showSeries: _n,
|
|
849
|
-
toggleTable: Bn,
|
|
850
|
-
toggleTooltip: Vn,
|
|
851
|
-
toggleAnnotator: Un,
|
|
852
|
-
toggleFullscreen: zn,
|
|
853
|
-
copyAlt: tr
|
|
854
|
-
}), (e, t) => (C(), g("div", {
|
|
855
|
-
class: b(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
856
|
-
ref_key: "radarChart",
|
|
857
|
-
ref: N,
|
|
858
|
-
id: `vue-ui-radar_${j.value}`,
|
|
859
|
-
style: S(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
860
|
-
onMouseenter: t[2] ||= () => O(Zt)(!0),
|
|
861
|
-
onMouseleave: t[3] ||= () => O(Zt)(!1)
|
|
862
|
-
}, [
|
|
863
|
-
_("div", {
|
|
864
|
-
id: `chart-instructions-${j.value}`,
|
|
865
|
-
class: "sr-only"
|
|
866
|
-
}, [_("p", null, D(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ge),
|
|
867
|
-
or.value?.rows?.length ? (C(), m(Te, {
|
|
868
|
-
key: 0,
|
|
869
|
-
uid: j.value,
|
|
870
|
-
head: or.value.headers,
|
|
871
|
-
body: or.value.rows,
|
|
872
|
-
notice: F.value.a11y.translations.tableAvailable,
|
|
873
|
-
caption: F.value.a11y.translations.tableCaption
|
|
874
|
-
}, null, 8, [
|
|
875
|
-
"uid",
|
|
876
|
-
"head",
|
|
877
|
-
"body",
|
|
878
|
-
"notice",
|
|
879
|
-
"caption"
|
|
880
|
-
])) : h("", !0),
|
|
881
|
-
F.value.userOptions.buttons.annotator ? (C(), m(O(Tt), {
|
|
882
|
-
key: 1,
|
|
883
|
-
svgRef: O(R),
|
|
884
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
885
|
-
color: F.value.style.chart.color,
|
|
886
|
-
active: Hn.value,
|
|
887
|
-
isCursorPointer: I.value,
|
|
888
|
-
palette: F.value.userOptions.annotatorPalette,
|
|
889
|
-
onClose: Un
|
|
890
|
-
}, {
|
|
891
|
-
"annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
892
|
-
"annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
893
|
-
"annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
|
|
894
|
-
"annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
|
|
895
|
-
"annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
|
|
896
|
-
"annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
|
|
897
|
-
_: 3
|
|
898
|
-
}, 8, [
|
|
899
|
-
"svgRef",
|
|
900
|
-
"backgroundColor",
|
|
901
|
-
"color",
|
|
902
|
-
"active",
|
|
903
|
-
"isCursorPointer",
|
|
904
|
-
"palette"
|
|
905
|
-
])) : h("", !0),
|
|
906
|
-
sn.value ? (C(), g("div", {
|
|
907
|
-
key: 2,
|
|
908
|
-
ref_key: "noTitle",
|
|
909
|
-
ref: Rt,
|
|
910
|
-
class: "vue-data-ui-no-title-space",
|
|
911
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
912
|
-
}, null, 512)) : h("", !0),
|
|
913
|
-
F.value.style.chart.title.text ? (C(), g("div", {
|
|
914
|
-
key: 3,
|
|
915
|
-
ref_key: "chartTitle",
|
|
916
|
-
ref: Ft,
|
|
917
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
918
|
-
}, [(C(), m(ye, {
|
|
919
|
-
key: `title_${zt.value}`,
|
|
920
|
-
config: {
|
|
921
|
-
title: {
|
|
922
|
-
cy: "radar-div-title",
|
|
923
|
-
...F.value.style.chart.title
|
|
924
|
-
},
|
|
925
|
-
subtitle: {
|
|
926
|
-
cy: "radar-div-subtitle",
|
|
927
|
-
...F.value.style.chart.title.subtitle
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
}, null, 8, ["config"]))], 512)) : h("", !0),
|
|
931
|
-
_("div", { id: `legend-top-${j.value}` }, null, 8, Ke),
|
|
932
|
-
F.value.userOptions.show && Mt.value && (O(Qt) || O(Xt)) ? (C(), m(O(Et), {
|
|
933
|
-
ref_key: "userOptionsRef",
|
|
934
|
-
ref: Wt,
|
|
935
|
-
key: `user_options_${Pt.value}`,
|
|
936
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
937
|
-
color: F.value.style.chart.color,
|
|
938
|
-
isImaging: O(rn),
|
|
939
|
-
isPrinting: O(nn),
|
|
940
|
-
uid: j.value,
|
|
941
|
-
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
942
|
-
hasPdf: F.value.userOptions.buttons.pdf,
|
|
943
|
-
hasImg: F.value.userOptions.buttons.img,
|
|
944
|
-
hasSvg: F.value.userOptions.buttons.svg,
|
|
945
|
-
hasXls: F.value.userOptions.buttons.csv,
|
|
946
|
-
hasTable: F.value.userOptions.buttons.table,
|
|
947
|
-
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
948
|
-
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
949
|
-
isFullscreen: $.value,
|
|
950
|
-
isTooltip: H.value.showTooltip,
|
|
951
|
-
titles: { ...F.value.userOptions.buttonTitles },
|
|
952
|
-
chartElement: N.value,
|
|
953
|
-
position: F.value.userOptions.position,
|
|
954
|
-
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
955
|
-
isAnnotation: Hn.value,
|
|
956
|
-
callbacks: F.value.userOptions.callbacks,
|
|
957
|
-
printScale: F.value.userOptions.print.scale,
|
|
958
|
-
tableDialog: F.value.table.useDialog,
|
|
959
|
-
isCursorPointer: I.value,
|
|
960
|
-
onToggleFullscreen: zn,
|
|
961
|
-
onGeneratePdf: O(an),
|
|
962
|
-
onGenerateCsv: Rn,
|
|
963
|
-
onGenerateImage: O(er),
|
|
964
|
-
onGenerateSvg: O($n),
|
|
965
|
-
onToggleTable: Bn,
|
|
966
|
-
onToggleTooltip: Vn,
|
|
967
|
-
onToggleAnnotator: Un,
|
|
968
|
-
onCopyAlt: tr,
|
|
969
|
-
style: S({ visibility: O(Qt) ? O(Xt) ? "visible" : "hidden" : "visible" })
|
|
970
|
-
}, Me({ _: 2 }, [
|
|
971
|
-
e.$slots.menuIcon ? {
|
|
972
|
-
name: "menuIcon",
|
|
973
|
-
fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
|
|
974
|
-
isOpen: t,
|
|
975
|
-
color: n
|
|
976
|
-
})), void 0, !0)]),
|
|
977
|
-
key: "0"
|
|
978
|
-
} : void 0,
|
|
979
|
-
e.$slots.optionTooltip ? {
|
|
980
|
-
name: "optionTooltip",
|
|
981
|
-
fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
982
|
-
key: "1"
|
|
983
|
-
} : void 0,
|
|
984
|
-
e.$slots.optionPdf ? {
|
|
985
|
-
name: "optionPdf",
|
|
986
|
-
fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
987
|
-
key: "2"
|
|
988
|
-
} : void 0,
|
|
989
|
-
e.$slots.optionCsv ? {
|
|
990
|
-
name: "optionCsv",
|
|
991
|
-
fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
992
|
-
key: "3"
|
|
993
|
-
} : void 0,
|
|
994
|
-
e.$slots.optionImg ? {
|
|
995
|
-
name: "optionImg",
|
|
996
|
-
fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
997
|
-
key: "4"
|
|
998
|
-
} : void 0,
|
|
999
|
-
e.$slots.optionSvg ? {
|
|
1000
|
-
name: "optionSvg",
|
|
1001
|
-
fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1002
|
-
key: "5"
|
|
1003
|
-
} : void 0,
|
|
1004
|
-
e.$slots.optionTable ? {
|
|
1005
|
-
name: "optionTable",
|
|
1006
|
-
fn: k(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1007
|
-
key: "6"
|
|
1008
|
-
} : void 0,
|
|
1009
|
-
e.$slots.optionFullscreen ? {
|
|
1010
|
-
name: "optionFullscreen",
|
|
1011
|
-
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
|
|
1012
|
-
toggleFullscreen: t,
|
|
1013
|
-
isFullscreen: n
|
|
1014
|
-
})), void 0, !0)]),
|
|
1015
|
-
key: "7"
|
|
1016
|
-
} : void 0,
|
|
1017
|
-
e.$slots.optionAnnotator ? {
|
|
1018
|
-
name: "optionAnnotator",
|
|
1019
|
-
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
|
|
1020
|
-
toggleAnnotator: t,
|
|
1021
|
-
isAnnotator: n
|
|
1022
|
-
})), void 0, !0)]),
|
|
1023
|
-
key: "8"
|
|
1024
|
-
} : void 0,
|
|
1025
|
-
e.$slots.optionAltCopy ? {
|
|
1026
|
-
name: "optionAltCopy",
|
|
1027
|
-
fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
|
|
1028
|
-
key: "9"
|
|
1029
|
-
} : void 0,
|
|
1030
|
-
e.$slots["custom-menu-before"] ? {
|
|
1031
|
-
name: "custom-menu-before",
|
|
1032
|
-
fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1033
|
-
key: "10"
|
|
1034
|
-
} : void 0,
|
|
1035
|
-
e.$slots["custom-menu-after"] ? {
|
|
1036
|
-
name: "custom-menu-after",
|
|
1037
|
-
fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1038
|
-
key: "11"
|
|
1039
|
-
} : void 0
|
|
1040
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : h("", !0),
|
|
1041
|
-
_("div", qe, [(C(), g("svg", {
|
|
1042
|
-
ref_key: "svgRef",
|
|
1043
|
-
ref: R,
|
|
1044
|
-
xmlns: O(ce),
|
|
1045
|
-
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1046
|
-
class: b({
|
|
1047
|
-
"vue-data-ui-fullscreen--on": $.value,
|
|
1048
|
-
"vue-data-ui-fulscreen--off": !$.value
|
|
1049
|
-
}),
|
|
1050
|
-
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
1051
|
-
style: S(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
|
|
1052
|
-
tabindex: "0",
|
|
1053
|
-
onFocus: nr,
|
|
1054
|
-
onBlur: rr,
|
|
1055
|
-
onKeydown: ar
|
|
1056
|
-
}, [
|
|
1057
|
-
Pe(O(Dt)),
|
|
1058
|
-
e.$slots["chart-background"] ? (C(), g("foreignObject", {
|
|
1059
|
-
key: 0,
|
|
1060
|
-
x: 0,
|
|
1061
|
-
y: 0,
|
|
1062
|
-
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
1063
|
-
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
1064
|
-
style: { pointerEvents: "none" }
|
|
1065
|
-
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : h("", !0),
|
|
1066
|
-
_("defs", null, [(C(!0), g(f, null, T(q.value, (e, t) => (C(), m(Ce, {
|
|
1067
|
-
t: "radial",
|
|
1068
|
-
cx: "50%",
|
|
1069
|
-
cy: "50%",
|
|
1070
|
-
r: "50%",
|
|
1071
|
-
fx: "50%",
|
|
1072
|
-
fy: "50%",
|
|
1073
|
-
id: `radar_gradient_${j.value}_${t}`,
|
|
1074
|
-
key: `radar_gradient_${j.value}_${t}`,
|
|
1075
|
-
stops: [[
|
|
1076
|
-
"0%",
|
|
1077
|
-
O(l)(O(ee)(e.color, .05), F.value.style.chart.layout.dataPolygon.opacity),
|
|
1078
|
-
1
|
|
1079
|
-
], [
|
|
1080
|
-
"100%",
|
|
1081
|
-
O(l)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1082
|
-
1
|
|
1083
|
-
]]
|
|
1084
|
-
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1085
|
-
F.value.style.chart.layout.grid.show ? (C(), g("g", Xe, [(C(!0), g(f, null, T(Y.value, (e) => (C(), g("line", {
|
|
1086
|
-
x1: U.value.width / 2,
|
|
1087
|
-
y1: U.value.height / 2,
|
|
1088
|
-
x2: e.x,
|
|
1089
|
-
y2: e.y,
|
|
1090
|
-
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1091
|
-
"stroke-width": F.value.style.chart.layout.grid.strokeWidth,
|
|
1092
|
-
style: { "pointer-events": "none" }
|
|
1093
|
-
}, null, 8, Ze))), 256)), F.value.style.chart.layout.grid.graduations > 0 ? (C(), g("g", Qe, [(C(!0), g(f, null, T(Dn.value, (e) => (C(), g("path", {
|
|
1094
|
-
d: O(a)({
|
|
1095
|
-
plot: {
|
|
1096
|
-
x: U.value.width / 2,
|
|
1097
|
-
y: U.value.height / 2
|
|
1098
|
-
},
|
|
1099
|
-
radius: e,
|
|
1100
|
-
sides: Sn.value,
|
|
1101
|
-
rotation: Tn.value
|
|
1102
|
-
}).path,
|
|
1103
|
-
fill: "none",
|
|
1104
|
-
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1105
|
-
"stroke-width": F.value.style.chart.layout.grid.strokeWidth
|
|
1106
|
-
}, null, 8, $e))), 256))])) : h("", !0)])) : h("", !0),
|
|
1107
|
-
_("path", {
|
|
1108
|
-
d: En.value.path,
|
|
1109
|
-
fill: "none",
|
|
1110
|
-
stroke: F.value.style.chart.layout.outerPolygon.stroke,
|
|
1111
|
-
"stroke-width": F.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
1112
|
-
"stroke-linejoin": "round",
|
|
1113
|
-
"stroke-linecap": "round",
|
|
1114
|
-
style: { "pointer-events": "none" }
|
|
1115
|
-
}, null, 8, et),
|
|
1116
|
-
F.value.style.chart.layout.labels.dataLabels.show ? (C(), g("g", tt, [(C(!0), g(f, null, T(Y.value, (e, t) => (C(), g("text", {
|
|
1117
|
-
class: "vue-ui-radar-apex-label",
|
|
1118
|
-
x: e.labelX,
|
|
1119
|
-
y: e.labelY,
|
|
1120
|
-
"text-anchor": e.labelAnchor,
|
|
1121
|
-
"dominant-baseline": "middle",
|
|
1122
|
-
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1123
|
-
fill: F.value.style.chart.layout.labels.dataLabels.color,
|
|
1124
|
-
onMouseenter: (n) => Ln(e, t, "pointer"),
|
|
1125
|
-
onMouseleave: (n) => Fn(e, t),
|
|
1126
|
-
onClick: (n) => In(e, t)
|
|
1127
|
-
}, D(e.name), 41, nt))), 256))])) : h("", !0),
|
|
1128
|
-
(C(!0), g(f, null, T(q.value, (e, t) => (C(), g("g", null, [_("g", null, [F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (C(), g("polygon", {
|
|
1129
|
-
key: 0,
|
|
1130
|
-
points: O(o)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1131
|
-
stroke: F.value.style.chart.backgroundColor,
|
|
1132
|
-
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1133
|
-
fill: "none",
|
|
1134
|
-
class: b({
|
|
1135
|
-
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1136
|
-
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1137
|
-
}),
|
|
1138
|
-
style: { "pointer-events": "none" }
|
|
1139
|
-
}, null, 10, rt)) : h("", !0), F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (C(), g("polygon", {
|
|
1140
|
-
key: 1,
|
|
1141
|
-
points: O(o)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1142
|
-
stroke: e.color,
|
|
1143
|
-
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1144
|
-
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${j.value}_${t})` : O(l)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1145
|
-
class: b({
|
|
1146
|
-
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1147
|
-
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1148
|
-
}),
|
|
1149
|
-
style: { "pointer-events": "none" }
|
|
1150
|
-
}, null, 10, it)) : h("", !0)])]))), 256)),
|
|
1151
|
-
F.value.style.chart.layout.targetReference.show ? (C(), g("path", {
|
|
1152
|
-
key: 3,
|
|
1153
|
-
class: "vue-ui-radar-target-polygon",
|
|
1154
|
-
d: `M${O(o)(xn.value, !1, !0)}Z`,
|
|
1155
|
-
fill: "none",
|
|
1156
|
-
stroke: F.value.style.chart.layout.targetReference.stroke,
|
|
1157
|
-
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth,
|
|
1158
|
-
"stroke-linejoin": "round",
|
|
1159
|
-
"stroke-linecap": "round",
|
|
1160
|
-
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray,
|
|
1161
|
-
style: { "pointer-events": "none" }
|
|
1162
|
-
}, null, 8, at)) : h("", !0),
|
|
1163
|
-
F.value.style.chart.layout.plots.show ? (C(), g("g", ot, [(C(!0), g(f, null, T(Y.value, (e, t) => (C(), g("g", { key: `radar-category-${t}` }, [(C(!0), g(f, null, T(e.plots, (n, r) => (C(), g("g", {
|
|
1164
|
-
key: `radar-plot-${t}-${r}`,
|
|
1165
|
-
onMouseenter: (n) => !W.value.includes(r) && Ln(e, t, "pointer"),
|
|
1166
|
-
onMouseleave: (n) => !W.value.includes(r) && Fn(e, t),
|
|
1167
|
-
onClick: (n) => !W.value.includes(r) && In(e, t)
|
|
1168
|
-
}, [_("circle", {
|
|
1169
|
-
cx: n.x,
|
|
1170
|
-
cy: n.y,
|
|
1171
|
-
r: wn.value,
|
|
1172
|
-
fill: "transparent",
|
|
1173
|
-
stroke: "transparent",
|
|
1174
|
-
style: S({ pointerEvents: W.value.includes(r) ? "none" : "all" })
|
|
1175
|
-
}, null, 12, ct), _("circle", {
|
|
1176
|
-
cx: n.x,
|
|
1177
|
-
cy: n.y,
|
|
1178
|
-
fill: W.value.includes(r) ? "transparent" : q.value[r] ? q.value[r].color : "transparent",
|
|
1179
|
-
r: Q.value !== null && Q.value === t ? F.value.style.chart.layout.plots.radius * 1.6 : F.value.style.chart.layout.plots.radius,
|
|
1180
|
-
stroke: W.value.includes(r) ? "transparent" : F.value.style.chart.backgroundColor,
|
|
1181
|
-
"stroke-width": .5,
|
|
1182
|
-
class: b({
|
|
1183
|
-
"animated-out": W.value.includes(r) && F.value.useCssAnimation,
|
|
1184
|
-
"animated-in": K.value && G.value === r && F.value.useCssAnimation
|
|
1185
|
-
}),
|
|
1186
|
-
style: { "pointer-events": "none" }
|
|
1187
|
-
}, null, 10, lt)], 40, st))), 128))]))), 128))])) : h("", !0),
|
|
1188
|
-
E(e.$slots, "svg", { svg: {
|
|
1189
|
-
...U.value,
|
|
1190
|
-
outerPolygon: En.value,
|
|
1191
|
-
isPrintingImg: O(nn) || O(rn) || O(Zn),
|
|
1192
|
-
isPrintingSvg: O(Qn)
|
|
1193
|
-
} }, void 0, !0)
|
|
1194
|
-
], 46, Je)), e.$slots.hint ? (C(), g("div", ut, [E(e.$slots, "hint", x(y({
|
|
1195
|
-
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1196
|
-
isVisible: qt.value
|
|
1197
|
-
})), void 0, !0)])) : h("", !0)]),
|
|
1198
|
-
e.$slots.watermark ? (C(), g("div", dt, [E(e.$slots, "watermark", x(y({ isPrinting: O(nn) || O(rn) || O(Zn) || O(Qn) })), void 0, !0)])) : h("", !0),
|
|
1199
|
-
_("div", { id: `legend-bottom-${j.value}` }, null, 8, ft),
|
|
1200
|
-
Ht.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(je, {
|
|
1201
|
-
key: 6,
|
|
1202
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
1203
|
-
}, [_("div", {
|
|
1204
|
-
ref_key: "chartLegend",
|
|
1205
|
-
ref: It
|
|
1206
|
-
}, [E(e.$slots, "legend", { legend: X.value }, () => [F.value.style.chart.legend.show ? (C(), m(Oe, {
|
|
1207
|
-
key: `legend_${Vt.value}`,
|
|
1208
|
-
legendSet: X.value,
|
|
1209
|
-
config: Mn.value,
|
|
1210
|
-
isCursorPointer: I.value,
|
|
1211
|
-
onClickMarker: t[0] ||= ({ i: e }) => pn(e)
|
|
1212
|
-
}, Me({
|
|
1213
|
-
item: k(({ legend: e, index: t }) => [O(Yt) ? h("", !0) : (C(), g("div", {
|
|
1214
|
-
key: 0,
|
|
1215
|
-
onClick: (t) => e.segregate(),
|
|
1216
|
-
style: S(`opacity:${W.value.includes(t) ? .5 : 1}`)
|
|
1217
|
-
}, D(e.display), 13, pt))]),
|
|
1218
|
-
legendToggle: k(() => [X.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !O(Yt) ? (C(), m(we, {
|
|
1219
|
-
key: 0,
|
|
1220
|
-
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1221
|
-
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1222
|
-
fontSize: F.value.style.chart.legend.fontSize,
|
|
1223
|
-
checked: W.value.length > 0,
|
|
1224
|
-
isCursorPointer: I.value,
|
|
1225
|
-
onToggle: dn
|
|
1226
|
-
}, null, 8, [
|
|
1227
|
-
"backgroundColor",
|
|
1228
|
-
"color",
|
|
1229
|
-
"fontSize",
|
|
1230
|
-
"checked",
|
|
1231
|
-
"isCursorPointer"
|
|
1232
|
-
])) : h("", !0)]),
|
|
1233
|
-
_: 2
|
|
1234
|
-
}, [F.value.style.chart.layout.targetReference.show && F.value.style.chart.layout.targetReference.showInLegend ? {
|
|
1235
|
-
name: "after",
|
|
1236
|
-
fn: k(() => [_("div", mt, [_("div", { style: S({
|
|
1237
|
-
display: "flex",
|
|
1238
|
-
height: F.value.style.chart.legend.fontSize
|
|
1239
|
-
}) }, [(C(), g("svg", {
|
|
1240
|
-
style: S({ width: F.value.style.chart.legend.fontSize * 2 }),
|
|
1241
|
-
viewBox: "0 0 16 8"
|
|
1242
|
-
}, [_("line", {
|
|
1243
|
-
x1: "0",
|
|
1244
|
-
x2: "16",
|
|
1245
|
-
y1: "4",
|
|
1246
|
-
y2: "4",
|
|
1247
|
-
stroke: F.value.style.chart.layout.targetReference.stroke,
|
|
1248
|
-
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth * .7,
|
|
1249
|
-
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray * .7,
|
|
1250
|
-
"stroke-linecap": "round"
|
|
1251
|
-
}, null, 8, ht)], 4))], 4), _("span", null, D(F.value.style.chart.layout.targetReference.legendLabel), 1)])]),
|
|
1252
|
-
key: "0"
|
|
1253
|
-
} : void 0]), 1032, [
|
|
1254
|
-
"legendSet",
|
|
1255
|
-
"config",
|
|
1256
|
-
"isCursorPointer"
|
|
1257
|
-
])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
|
|
1258
|
-
e.$slots.source ? (C(), g("div", {
|
|
1259
|
-
key: 7,
|
|
1260
|
-
ref_key: "source",
|
|
1261
|
-
ref: Lt,
|
|
1262
|
-
dir: "auto"
|
|
1263
|
-
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1264
|
-
Pe(O(bt), {
|
|
1265
|
-
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1266
|
-
show: H.value.showTooltip && M.value,
|
|
1267
|
-
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1268
|
-
color: F.value.style.chart.tooltip.color,
|
|
1269
|
-
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
1270
|
-
borderColor: F.value.style.chart.tooltip.borderColor,
|
|
1271
|
-
borderWidth: F.value.style.chart.tooltip.borderWidth,
|
|
1272
|
-
backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
|
|
1273
|
-
fontSize: F.value.style.chart.tooltip.fontSize,
|
|
1274
|
-
position: F.value.style.chart.tooltip.position,
|
|
1275
|
-
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
1276
|
-
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1277
|
-
parent: N.value,
|
|
1278
|
-
content: Nt.value,
|
|
1279
|
-
isFullscreen: $.value,
|
|
1280
|
-
isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
|
|
1281
|
-
smooth: F.value.style.chart.tooltip.smooth,
|
|
1282
|
-
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1283
|
-
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1284
|
-
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1285
|
-
isA11yMode: Kt.value === "keyboard",
|
|
1286
|
-
a11yPosition: Gt.value
|
|
1287
|
-
}, {
|
|
1288
|
-
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...Pn.value })), void 0, !0)]),
|
|
1289
|
-
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...Pn.value })), void 0, !0)]),
|
|
1290
|
-
"tooltip-after": k(() => [!["function"].includes(typeof F.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (C(), g("div", gt, [Pe(O(St), {
|
|
1291
|
-
dataset: Nn.value,
|
|
1292
|
-
config: ln.value,
|
|
1293
|
-
backgroundOpacity: 0
|
|
1294
|
-
}, {
|
|
1295
|
-
"data-label": k(({ bar: e }) => [_("div", _t, [_("span", vt, D(e.name + (F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? (C(), g("span", yt, D(e.suffix), 1)) : h("", !0)])]),
|
|
1296
|
-
_: 1
|
|
1297
|
-
}, 8, ["dataset", "config"])])) : h("", !0), E(e.$slots, "tooltip-after", x(y({ ...Pn.value })), void 0, !0)]),
|
|
1298
|
-
_: 3
|
|
1299
|
-
}, 8, [
|
|
1300
|
-
"teleportTo",
|
|
1301
|
-
"show",
|
|
1302
|
-
"backgroundColor",
|
|
1303
|
-
"color",
|
|
1304
|
-
"borderRadius",
|
|
1305
|
-
"borderColor",
|
|
1306
|
-
"borderWidth",
|
|
1307
|
-
"backgroundOpacity",
|
|
1308
|
-
"fontSize",
|
|
1309
|
-
"position",
|
|
1310
|
-
"offsetX",
|
|
1311
|
-
"offsetY",
|
|
1312
|
-
"parent",
|
|
1313
|
-
"content",
|
|
1314
|
-
"isFullscreen",
|
|
1315
|
-
"isCustom",
|
|
1316
|
-
"smooth",
|
|
1317
|
-
"backdropFilter",
|
|
1318
|
-
"smoothForce",
|
|
1319
|
-
"smoothSnapThreshold",
|
|
1320
|
-
"isA11yMode",
|
|
1321
|
-
"a11yPosition"
|
|
1322
|
-
]),
|
|
1323
|
-
Mt.value && F.value.userOptions.buttons.table ? (C(), m(ze(Gn.value.component), Fe({ key: 8 }, Gn.value.props, {
|
|
1324
|
-
ref_key: "tableUnit",
|
|
1325
|
-
ref: Ut,
|
|
1326
|
-
onClose: Kn
|
|
1327
|
-
}), Me({
|
|
1328
|
-
content: k(() => [(C(), m(O(wt), {
|
|
1329
|
-
key: `table_${Bt.value}`,
|
|
1330
|
-
colNames: Z.value.colNames,
|
|
1331
|
-
head: Z.value.head,
|
|
1332
|
-
body: Z.value.body,
|
|
1333
|
-
config: Z.value.config,
|
|
1334
|
-
title: F.value.table.useDialog ? "" : Gn.value.title,
|
|
1335
|
-
withCloseButton: !F.value.table.useDialog,
|
|
1336
|
-
isCursorPointer: I.value,
|
|
1337
|
-
onClose: Kn
|
|
1338
|
-
}, {
|
|
1339
|
-
th: k(({ th: e }) => [Ne(D(e.name), 1)]),
|
|
1340
|
-
td: k(({ td: e }) => [Ne(D(e), 1)]),
|
|
1341
|
-
_: 1
|
|
1342
|
-
}, 8, [
|
|
1343
|
-
"colNames",
|
|
1344
|
-
"head",
|
|
1345
|
-
"body",
|
|
1346
|
-
"config",
|
|
1347
|
-
"title",
|
|
1348
|
-
"withCloseButton",
|
|
1349
|
-
"isCursorPointer"
|
|
1350
|
-
]))]),
|
|
1351
|
-
_: 2
|
|
1352
|
-
}, [F.value.table.useDialog ? {
|
|
1353
|
-
name: "title",
|
|
1354
|
-
fn: k(() => [Ne(D(Gn.value.title), 1)]),
|
|
1355
|
-
key: "0"
|
|
1356
|
-
} : void 0, F.value.table.useDialog ? {
|
|
1357
|
-
name: "actions",
|
|
1358
|
-
fn: k(() => [_("button", {
|
|
1359
|
-
tabindex: "0",
|
|
1360
|
-
class: "vue-ui-user-options-button",
|
|
1361
|
-
onClick: t[1] ||= (e) => Rn(F.value.userOptions.callbacks.csv),
|
|
1362
|
-
style: S({ cursor: I.value ? "pointer" : "default" })
|
|
1363
|
-
}, [Pe(O(xt), {
|
|
1364
|
-
name: "fileCsv",
|
|
1365
|
-
stroke: Gn.value.props.color
|
|
1366
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1367
|
-
key: "1"
|
|
1368
|
-
} : void 0]), 1040)) : h("", !0),
|
|
1369
|
-
E(e.$slots, "skeleton", {}, () => [O(Yt) ? (C(), m(me, { key: 0 })) : h("", !0)], !0)
|
|
1370
|
-
], 46, We));
|
|
1371
|
-
}
|
|
1372
|
-
}, [["__scopeId", "data-v-6da580ed"]]);
|
|
1373
|
-
//#endregion
|
|
1374
|
-
export { Ue as n, bt as t };
|