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