vue-data-ui 3.20.10 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/SlicerPreview-CXLgqXX8.js +1676 -0
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-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-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/style.css +1 -1
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-R-aXpHvF.js} +86 -86
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +6 -2
- package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-DmMi_eVe.js +0 -1757
- package/dist/vue-ui-age-pyramid-CbJDodNj.js +0 -1238
- package/dist/vue-ui-bullet-rCmOch09.js +0 -710
- package/dist/vue-ui-carousel-table-DFUP6c1B.js +0 -455
- package/dist/vue-ui-chestnut-DKNsQA7h.js +0 -2010
- package/dist/vue-ui-chord-BMkz02R6.js +0 -1391
- package/dist/vue-ui-donut-BLlR2VgI.js +0 -2410
- package/dist/vue-ui-donut-evolution-kXDchwtH.js +0 -1510
- package/dist/vue-ui-dumbbell-BWuXbccQ.js +0 -1530
- package/dist/vue-ui-gauge-NSzY9L6X.js +0 -920
- package/dist/vue-ui-horizontal-bar-mmoqYnkA.js +0 -1681
- package/dist/vue-ui-molecule-QoXYCfyP.js +0 -925
- package/dist/vue-ui-radar-TfxsgQrA.js +0 -1229
- package/dist/vue-ui-relation-circle-CMqV9U6C.js +0 -924
- package/dist/vue-ui-scatter-8nirnHQi.js +0 -2413
- package/dist/vue-ui-sparkline-DPZm7RqN.js +0 -1507
- package/dist/vue-ui-stackline-6agFEYxZ.js +0 -2398
- package/dist/vue-ui-xy-C0kcCaFA.js +0 -4747
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Bt as t, D as n, Ft as r, G as i, H as a, Ht as o, J as ee, Ot as s, Pt as te, S as ne, Tt as re, X as c, ct as ie, ht as ae, i as oe, it as se, t as ce, v as le, wt as ue, x as de, y as fe } from "./lib-AJRHFE5U.js";
|
|
3
|
+
import { t as pe } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
+
import { t as me } from "./usePrinter-6n2MzVyV.js";
|
|
5
|
+
import { n as he, t as ge } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
+
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ve } from "./useNestedProp-DtcXIg7n.js";
|
|
8
|
+
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as be } from "./img-C_RNNswI.js";
|
|
10
|
+
import { n as xe } from "./Title-DH6G8_cZ.js";
|
|
11
|
+
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as Ce } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as we } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as Te } from "./BaseLegendToggle-BNRi408o.js";
|
|
15
|
+
import { t as Ee } from "./A11yDataTable-BCbtxMU6.js";
|
|
16
|
+
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
+
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as ke } from "./Legend-BLhREbj7.js";
|
|
19
|
+
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-kjVKQz36.js";
|
|
20
|
+
import { t as je } from "./vue_ui_radar-jafTED5j.js";
|
|
21
|
+
import { Fragment as l, Teleport as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Re, onMounted as ze, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as w, toRefs as He, unref as T, watch as Ue, withCtx as E } from "vue";
|
|
22
|
+
//#region src/components/vue-ui-radar.vue
|
|
23
|
+
var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
|
|
24
|
+
"xmlns",
|
|
25
|
+
"aria-describedby",
|
|
26
|
+
"viewBox"
|
|
27
|
+
], Xe = ["width", "height"], Ze = ["id"], Qe = ["stop-color"], $e = ["stop-color"], et = { key: 1 }, tt = [
|
|
28
|
+
"x1",
|
|
29
|
+
"y1",
|
|
30
|
+
"x2",
|
|
31
|
+
"y2",
|
|
32
|
+
"stroke",
|
|
33
|
+
"stroke-width"
|
|
34
|
+
], nt = { key: 0 }, rt = [
|
|
35
|
+
"d",
|
|
36
|
+
"stroke",
|
|
37
|
+
"stroke-width"
|
|
38
|
+
], it = [
|
|
39
|
+
"d",
|
|
40
|
+
"stroke",
|
|
41
|
+
"stroke-width"
|
|
42
|
+
], at = { key: 2 }, ot = [
|
|
43
|
+
"x",
|
|
44
|
+
"y",
|
|
45
|
+
"text-anchor",
|
|
46
|
+
"font-size",
|
|
47
|
+
"fill",
|
|
48
|
+
"onMouseenter",
|
|
49
|
+
"onMouseleave",
|
|
50
|
+
"onClick"
|
|
51
|
+
], st = [
|
|
52
|
+
"points",
|
|
53
|
+
"stroke",
|
|
54
|
+
"stroke-width"
|
|
55
|
+
], ct = [
|
|
56
|
+
"points",
|
|
57
|
+
"stroke",
|
|
58
|
+
"stroke-width",
|
|
59
|
+
"fill"
|
|
60
|
+
], lt = { key: 3 }, ut = [
|
|
61
|
+
"cx",
|
|
62
|
+
"cy",
|
|
63
|
+
"fill",
|
|
64
|
+
"r",
|
|
65
|
+
"stroke"
|
|
66
|
+
], dt = {
|
|
67
|
+
key: 0,
|
|
68
|
+
style: {
|
|
69
|
+
position: "absolute",
|
|
70
|
+
top: "100%",
|
|
71
|
+
left: "0",
|
|
72
|
+
width: "100%"
|
|
73
|
+
},
|
|
74
|
+
"data-dom-to-png-ignore": "",
|
|
75
|
+
"aria-hidden": "true"
|
|
76
|
+
}, ft = {
|
|
77
|
+
key: 5,
|
|
78
|
+
class: "vue-data-ui-watermark"
|
|
79
|
+
}, pt = ["id"], mt = ["onClick"], ht = {
|
|
80
|
+
key: 0,
|
|
81
|
+
style: {
|
|
82
|
+
"max-width": "200px",
|
|
83
|
+
margin: "0 auto"
|
|
84
|
+
}
|
|
85
|
+
}, gt = {
|
|
86
|
+
class: "vue-ui-radar-tooltip-datalabel",
|
|
87
|
+
style: { width: "100%" }
|
|
88
|
+
}, _t = { class: "vue-ui-radar-tooltip-datalabel-name" }, vt = { key: 0 }, yt = /* @__PURE__ */ Se({
|
|
89
|
+
__name: "vue-ui-radar",
|
|
90
|
+
props: {
|
|
91
|
+
config: {
|
|
92
|
+
type: Object,
|
|
93
|
+
default() {
|
|
94
|
+
return {};
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
dataset: {
|
|
98
|
+
type: Object,
|
|
99
|
+
default() {
|
|
100
|
+
return {};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
emits: ["selectLegend", "copyAlt"],
|
|
105
|
+
setup(e, { expose: Se, emit: We }) {
|
|
106
|
+
let yt = h(() => import("./Tooltip-979Ytd8R.js")), bt = h(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), xt = h(() => import("./vue-ui-sparkbar-d6ctWlLA.js").then((e) => e.n)), St = h(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), Ct = h(() => import("./DataTable-DweDyHc1.js")), wt = h(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Tt = h(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Et = h(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Dt = h(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_radar: Ot } = pe(), { isThemeValid: kt, warnInvalidTheme: At } = ye(), D = e, jt = u(() => !!D.dataset && Object.keys(D.dataset).length), O = x(a()), k = x(!1), Mt = x(""), Nt = x(0), A = x(null), Pt = x(null), Ft = x(null), It = x(null), Lt = x(null), Rt = x(0), zt = x(0), Bt = x(0), Vt = x(!1), j = x(null), Ht = x(null), Ut = x(!1), Wt = x(!1), M = x(null), Gt = x({
|
|
107
|
+
x: 0,
|
|
108
|
+
y: 0
|
|
109
|
+
}), N = x("pointer"), Kt = x(!1), P = x(Qt()), F = u(() => P.value.userOptions.useCursorPointer), qt = u(() => o({
|
|
110
|
+
defaultConfig: {
|
|
111
|
+
userOptions: { show: !1 },
|
|
112
|
+
table: { show: !1 },
|
|
113
|
+
useCssAnimation: !1,
|
|
114
|
+
style: { chart: {
|
|
115
|
+
backgroundColor: "#99999930",
|
|
116
|
+
layout: {
|
|
117
|
+
grid: { stroke: "#6A6A6A90" },
|
|
118
|
+
labels: { dataLabels: { show: !1 } },
|
|
119
|
+
outerPolygon: { stroke: "#6A6A6A" }
|
|
120
|
+
},
|
|
121
|
+
legend: { backgroundColor: "transparent" }
|
|
122
|
+
} }
|
|
123
|
+
},
|
|
124
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
125
|
+
})), { loading: Jt, FINAL_DATASET: I } = he({
|
|
126
|
+
...He(D),
|
|
127
|
+
FINAL_CONFIG: P,
|
|
128
|
+
prepareConfig: Qt,
|
|
129
|
+
callback: () => {
|
|
130
|
+
Promise.resolve().then(async () => {
|
|
131
|
+
await Le(), V.value.showTable = P.value.table.show;
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
135
|
+
categories: [{
|
|
136
|
+
name: "_",
|
|
137
|
+
color: "#6A6A6A"
|
|
138
|
+
}],
|
|
139
|
+
series: [
|
|
140
|
+
{
|
|
141
|
+
name: "_",
|
|
142
|
+
values: [.6],
|
|
143
|
+
target: 1
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "_",
|
|
147
|
+
values: [.6],
|
|
148
|
+
target: 1
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "_",
|
|
152
|
+
values: [.6],
|
|
153
|
+
target: 1
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "_",
|
|
157
|
+
values: [.6],
|
|
158
|
+
target: 1
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "_",
|
|
162
|
+
values: [.6],
|
|
163
|
+
target: 1
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "_",
|
|
167
|
+
values: [.6],
|
|
168
|
+
target: 1
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
skeletonConfig: o({
|
|
173
|
+
defaultConfig: P.value,
|
|
174
|
+
userConfig: qt.value
|
|
175
|
+
})
|
|
176
|
+
}), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = De({ config: P.value }), { svgRef: L } = Oe({ config: P.value.style.chart.title });
|
|
177
|
+
function Qt() {
|
|
178
|
+
let e = ve({
|
|
179
|
+
userConfig: D.config,
|
|
180
|
+
defaultConfig: Ot
|
|
181
|
+
}), n = e.theme;
|
|
182
|
+
if (!n) return e;
|
|
183
|
+
if (!kt.value(e)) return At(e), e;
|
|
184
|
+
let r = ve({
|
|
185
|
+
userConfig: je[n] || D.config,
|
|
186
|
+
defaultConfig: e
|
|
187
|
+
}), i = ve({
|
|
188
|
+
userConfig: D.config,
|
|
189
|
+
defaultConfig: r
|
|
190
|
+
});
|
|
191
|
+
return {
|
|
192
|
+
...i,
|
|
193
|
+
customPalette: i.customPalette.length ? i.customPalette : t[n] || s
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
Ue(() => D.config, (e) => {
|
|
197
|
+
P.value = Qt(), Yt.value = !P.value.userOptions.showOnChartHover, $t(), Rt.value += 1, zt.value += 1, Bt.value += 1, V.value.dataLabels.show = P.value.style.chart.layout.labels.dataLabels.show, V.value.showTable = P.value.table.show, V.value.showTooltip = P.value.style.chart.tooltip ? P.value.style.chart.tooltip.show : !1;
|
|
198
|
+
}, { deep: !0 });
|
|
199
|
+
let R = Ve(null), z = Ve(null), B = u(() => P.value.debug);
|
|
200
|
+
function $t() {
|
|
201
|
+
if (re(D.dataset) && c({
|
|
202
|
+
componentName: "VueUiRadar",
|
|
203
|
+
type: "dataset",
|
|
204
|
+
debug: B.value
|
|
205
|
+
}), P.value.responsive) {
|
|
206
|
+
let e = Ce(() => {
|
|
207
|
+
let { width: e, height: t } = we({
|
|
208
|
+
chart: A.value,
|
|
209
|
+
title: P.value.style.chart.title.text ? Pt.value : null,
|
|
210
|
+
legend: P.value.style.chart.legend.show ? Ft.value : null,
|
|
211
|
+
source: It.value,
|
|
212
|
+
noTitle: Lt.value
|
|
213
|
+
});
|
|
214
|
+
requestAnimationFrame(() => {
|
|
215
|
+
H.value.width = e, H.value.height = t, wn();
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = A.value.parentNode, R.value.observe(z.value);
|
|
219
|
+
}
|
|
220
|
+
wn();
|
|
221
|
+
}
|
|
222
|
+
ze(() => {
|
|
223
|
+
Vt.value = !0, $t();
|
|
224
|
+
}), Re(() => {
|
|
225
|
+
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
226
|
+
});
|
|
227
|
+
let { isPrinting: en, isImaging: tn, generatePdf: nn, generateImage: rn } = me({
|
|
228
|
+
elementId: `vue-ui-radar_${O.value}`,
|
|
229
|
+
fileName: P.value.style.chart.title.text || "vue-ui-radar",
|
|
230
|
+
options: P.value.userOptions.print
|
|
231
|
+
}), an = u(() => P.value.userOptions.show && !P.value.style.chart.title.text), on = u(() => de(P.value.customPalette)), V = x({
|
|
232
|
+
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
233
|
+
showTable: P.value.table.show,
|
|
234
|
+
showTooltip: P.value.style.chart.tooltip.show
|
|
235
|
+
}), sn = u(() => ({ style: {
|
|
236
|
+
backgroundColor: "#FFFFFF00",
|
|
237
|
+
animation: {
|
|
238
|
+
show: P.value.style.chart.tooltip.animation.show,
|
|
239
|
+
animationFrames: P.value.style.chart.tooltip.animation.animationFrames
|
|
240
|
+
},
|
|
241
|
+
labels: {
|
|
242
|
+
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
243
|
+
name: { color: P.value.style.chart.tooltip.color }
|
|
244
|
+
},
|
|
245
|
+
gutter: {
|
|
246
|
+
backgroundColor: "#CCCCCC",
|
|
247
|
+
opacity: 30
|
|
248
|
+
}
|
|
249
|
+
} })), H = x({
|
|
250
|
+
height: 312,
|
|
251
|
+
width: 512
|
|
252
|
+
}), cn = We, U = x([]), W = x(null), G = x(!1);
|
|
253
|
+
function ln() {
|
|
254
|
+
U.value.length ? U.value = [] : Y.value.forEach((e, t) => {
|
|
255
|
+
U.value.push(t);
|
|
256
|
+
}), un();
|
|
257
|
+
}
|
|
258
|
+
function un() {
|
|
259
|
+
cn("selectLegend", Y.value.filter((e, t) => !U.value.includes(t)).map((e) => ({
|
|
260
|
+
name: e.name,
|
|
261
|
+
color: e.color,
|
|
262
|
+
proportion: e.totalProportion
|
|
263
|
+
})));
|
|
264
|
+
}
|
|
265
|
+
function dn(e) {
|
|
266
|
+
G.value = !0, U.value.includes(e) ? (W.value = e, U.value = U.value.filter((t) => t !== e), setTimeout(() => {
|
|
267
|
+
G.value = !1, W.value = null;
|
|
268
|
+
}, 500)) : (U.value.push(e), setTimeout(() => {
|
|
269
|
+
G.value = !1;
|
|
270
|
+
}, 500)), un();
|
|
271
|
+
}
|
|
272
|
+
function fn() {
|
|
273
|
+
return Y.value.map((e) => ({
|
|
274
|
+
name: e.name,
|
|
275
|
+
color: e.color,
|
|
276
|
+
proportion: e.totalProportion
|
|
277
|
+
}));
|
|
278
|
+
}
|
|
279
|
+
function pn() {
|
|
280
|
+
let e = I.value;
|
|
281
|
+
if ([null, void 0].includes(e?.categories)) {
|
|
282
|
+
c({
|
|
283
|
+
componentName: "VueUiRadar",
|
|
284
|
+
type: "dataset",
|
|
285
|
+
debug: B.value
|
|
286
|
+
}), c({
|
|
287
|
+
componentName: "VueUiRadar",
|
|
288
|
+
type: "datasetAttribute",
|
|
289
|
+
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
290
|
+
debug: B.value
|
|
291
|
+
});
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
e.categories.length === 0 ? c({
|
|
295
|
+
componentName: "VueUiRadar",
|
|
296
|
+
type: "datasetAttributeEmpty",
|
|
297
|
+
property: "categories",
|
|
298
|
+
debug: B.value
|
|
299
|
+
}) : e.categories.forEach((e, t) => {
|
|
300
|
+
ie({
|
|
301
|
+
datasetObject: e,
|
|
302
|
+
requiredAttributes: ["name"]
|
|
303
|
+
}).forEach((e) => {
|
|
304
|
+
c({
|
|
305
|
+
componentName: "VueUiRadar",
|
|
306
|
+
type: "datasetAttribute",
|
|
307
|
+
property: `category.${e} at index ${t}`,
|
|
308
|
+
index: t,
|
|
309
|
+
debug: B.value
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
}), [null, void 0].includes(e?.series) ? c({
|
|
313
|
+
componentName: "VueUiRadar",
|
|
314
|
+
type: "datasetAttribute",
|
|
315
|
+
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
316
|
+
debug: B.value
|
|
317
|
+
}) : e.series.forEach((e, t) => {
|
|
318
|
+
ie({
|
|
319
|
+
datasetObject: e,
|
|
320
|
+
requiredAttributes: [
|
|
321
|
+
"name",
|
|
322
|
+
"values",
|
|
323
|
+
"target"
|
|
324
|
+
]
|
|
325
|
+
}).forEach((e) => {
|
|
326
|
+
c({
|
|
327
|
+
componentName: "VueUiRadar",
|
|
328
|
+
type: "datasetSerieAttribute",
|
|
329
|
+
key: "series",
|
|
330
|
+
property: e,
|
|
331
|
+
index: t,
|
|
332
|
+
debug: B.value
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
Ue(() => I.value, () => pn(), {
|
|
338
|
+
deep: !0,
|
|
339
|
+
immediate: !0
|
|
340
|
+
});
|
|
341
|
+
let K = u(() => {
|
|
342
|
+
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], t = on.value ?? s;
|
|
343
|
+
return e.map((e, n) => ({
|
|
344
|
+
name: e?.name ?? "",
|
|
345
|
+
categoryId: `radar_category_${O.value}_${n}`,
|
|
346
|
+
color: fe(e?.color) || t[n] || s[n % s.length],
|
|
347
|
+
prefix: e?.prefix ?? "",
|
|
348
|
+
suffix: e?.suffix ?? ""
|
|
349
|
+
}));
|
|
350
|
+
}), q = u(() => I.value.series.map((e, t) => ({
|
|
351
|
+
...e,
|
|
352
|
+
color: fe(e.color) || on.value[t] || s[t] || s[t % s.length],
|
|
353
|
+
serieId: `radar_serie_${O.value}_${t}`,
|
|
354
|
+
formatter: e.formatter || null,
|
|
355
|
+
absoluteIndex: t
|
|
356
|
+
})));
|
|
357
|
+
function mn(e) {
|
|
358
|
+
return q.value.length ? Y.value.find((t) => t.name === e) || (P.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
359
|
+
}
|
|
360
|
+
function hn(e) {
|
|
361
|
+
let t = mn(e);
|
|
362
|
+
t !== null && U.value.includes(t.absoluteIndex) && dn(t.absoluteIndex);
|
|
363
|
+
}
|
|
364
|
+
function gn(e) {
|
|
365
|
+
let t = mn(e);
|
|
366
|
+
t !== null && (U.value.includes(t.absoluteIndex) || dn(t.absoluteIndex));
|
|
367
|
+
}
|
|
368
|
+
let _n = u(() => Math.max(...q.value.flatMap((e) => e.values))), vn = u(() => q.value.length), yn = u(() => Math.min(H.value.width, H.value.height) / 3), bn = u(() => n({
|
|
369
|
+
plot: {
|
|
370
|
+
x: H.value.width / 2,
|
|
371
|
+
y: H.value.height / 2
|
|
372
|
+
},
|
|
373
|
+
radius: yn.value,
|
|
374
|
+
sides: vn.value,
|
|
375
|
+
rotation: 0
|
|
376
|
+
})), xn = u(() => {
|
|
377
|
+
let e = [];
|
|
378
|
+
for (let t = 0; t < yn.value; t += yn.value / P.value.style.chart.layout.grid.graduations) e.push(t);
|
|
379
|
+
return e;
|
|
380
|
+
}), J = u(() => bn.value.coordinates.map((e, t) => {
|
|
381
|
+
let n = q.value[t].values.map((n) => Tn({
|
|
382
|
+
centerX: H.value.width / 2,
|
|
383
|
+
centerY: H.value.height / 2,
|
|
384
|
+
apexX: e.x,
|
|
385
|
+
apexY: e.y,
|
|
386
|
+
proportion: n / (q.value[t].target || _n.value)
|
|
387
|
+
}));
|
|
388
|
+
return {
|
|
389
|
+
...e,
|
|
390
|
+
...q.value[t],
|
|
391
|
+
plots: n
|
|
392
|
+
};
|
|
393
|
+
}).map((e) => ({
|
|
394
|
+
...e,
|
|
395
|
+
labelX: Sn(e).x,
|
|
396
|
+
labelY: Sn(e).y,
|
|
397
|
+
labelAnchor: Sn(e).anchor
|
|
398
|
+
})));
|
|
399
|
+
function Sn({ x: e, y: t }) {
|
|
400
|
+
let n = "middle";
|
|
401
|
+
return e = Math.round(e), t = Math.round(t), e > H.value.width / 2 && (e += 12, n = "start"), e < H.value.width / 2 && (e -= 12, n = "end"), t > H.value.height / 2 + 1 && (t += 20), t < H.value.height / 2 - 1 && (t -= 12), t === H.value.height / 2 && (t += 4), {
|
|
402
|
+
x: e,
|
|
403
|
+
y: t,
|
|
404
|
+
anchor: n
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
let Cn = u({
|
|
408
|
+
get: () => P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
409
|
+
set: (e) => e
|
|
410
|
+
}), { autoSizeLabels: wn } = Ae({
|
|
411
|
+
svgRef: L,
|
|
412
|
+
fontSize: P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
413
|
+
minFontSize: 6,
|
|
414
|
+
sizeRef: Cn,
|
|
415
|
+
labelClass: ".vue-ui-radar-apex-label"
|
|
416
|
+
});
|
|
417
|
+
function Tn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
418
|
+
return {
|
|
419
|
+
x: e + (n - e) * i,
|
|
420
|
+
y: t + (r - t) * i
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
let Y = u(() => {
|
|
424
|
+
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target || _n.value)));
|
|
425
|
+
return K.value.map((t, n) => {
|
|
426
|
+
let r = le(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / q.value.length);
|
|
427
|
+
return {
|
|
428
|
+
...t,
|
|
429
|
+
absoluteIndex: n,
|
|
430
|
+
totalProportion: r,
|
|
431
|
+
shape: "circle",
|
|
432
|
+
opacity: U.value.includes(n) ? .5 : 1,
|
|
433
|
+
segregate: () => dn(n),
|
|
434
|
+
isSegregated: U.value.includes(n),
|
|
435
|
+
display: `${t.name}: ${i({
|
|
436
|
+
v: (r ?? 0) * 100,
|
|
437
|
+
s: "%",
|
|
438
|
+
r: P.value.style.chart.legend.roundingPercentage
|
|
439
|
+
})}`
|
|
440
|
+
};
|
|
441
|
+
});
|
|
442
|
+
}), En = u(() => ({
|
|
443
|
+
cy: "radar-div-legend",
|
|
444
|
+
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
445
|
+
color: P.value.style.chart.legend.color,
|
|
446
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
447
|
+
paddingBottom: 12,
|
|
448
|
+
fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
|
|
449
|
+
})), X = u(() => {
|
|
450
|
+
let e = [
|
|
451
|
+
{
|
|
452
|
+
name: P.value.translations.datapoint,
|
|
453
|
+
color: ""
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
name: P.value.translations.target,
|
|
457
|
+
color: ""
|
|
458
|
+
},
|
|
459
|
+
...Y.value
|
|
460
|
+
];
|
|
461
|
+
return {
|
|
462
|
+
head: e,
|
|
463
|
+
body: I.value.series.map((e) => [
|
|
464
|
+
e.name,
|
|
465
|
+
oe(e.formatter, e.target, i({
|
|
466
|
+
p: e.prefix,
|
|
467
|
+
v: e.target,
|
|
468
|
+
s: e.suffix,
|
|
469
|
+
r: P.value.table.td.roundingValue
|
|
470
|
+
})),
|
|
471
|
+
...e.values.map((t, n) => `${oe(e.formatter, t, i({
|
|
472
|
+
p: K.value[n]?.prefix ?? "",
|
|
473
|
+
v: t,
|
|
474
|
+
s: K.value[n]?.suffix ?? "",
|
|
475
|
+
r: P.value.table.td.roundingValue
|
|
476
|
+
}))} (${isNaN(t / e.target) ? "" : i({
|
|
477
|
+
v: t / e.target * 100,
|
|
478
|
+
s: "%",
|
|
479
|
+
r: P.value.table.td.roundingPercentage
|
|
480
|
+
})})`)
|
|
481
|
+
]),
|
|
482
|
+
config: {
|
|
483
|
+
th: {
|
|
484
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
485
|
+
color: P.value.table.th.color,
|
|
486
|
+
outline: P.value.table.th.outline
|
|
487
|
+
},
|
|
488
|
+
td: {
|
|
489
|
+
backgroundColor: P.value.table.td.backgroundColor,
|
|
490
|
+
color: P.value.table.td.color,
|
|
491
|
+
outline: P.value.table.td.outline
|
|
492
|
+
},
|
|
493
|
+
breakpoint: P.value.table.responsiveBreakpoint
|
|
494
|
+
},
|
|
495
|
+
colNames: e
|
|
496
|
+
};
|
|
497
|
+
}), Z = x(null), Dn = x([]), On = x(null);
|
|
498
|
+
function kn(e, t) {
|
|
499
|
+
k.value = !1, Z.value = null, M.value = null, N.value = "pointer", P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
500
|
+
datapoint: e,
|
|
501
|
+
seriesIndex: t
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
function An(e, t) {
|
|
505
|
+
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
506
|
+
datapoint: e,
|
|
507
|
+
seriesIndex: t
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
function jn(e, t, n = "pointer") {
|
|
511
|
+
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
512
|
+
datapoint: e,
|
|
513
|
+
seriesIndex: t
|
|
514
|
+
}), N.value = n, M.value = t;
|
|
515
|
+
let r = K.value.slice();
|
|
516
|
+
Dn.value = [], Z.value = t, k.value = !0, On.value = {
|
|
517
|
+
datapoint: e,
|
|
518
|
+
seriesIndex: t,
|
|
519
|
+
series: {
|
|
520
|
+
categories: r,
|
|
521
|
+
datapoints: q.value,
|
|
522
|
+
radar: J.value
|
|
523
|
+
},
|
|
524
|
+
config: P.value
|
|
525
|
+
};
|
|
526
|
+
let a = P.value.style.chart.tooltip.customFormat;
|
|
527
|
+
if (ae(a) && se(() => a({
|
|
528
|
+
seriesIndex: t,
|
|
529
|
+
datapoint: e,
|
|
530
|
+
series: {
|
|
531
|
+
categories: r,
|
|
532
|
+
datapoints: q.value,
|
|
533
|
+
radar: J.value
|
|
534
|
+
},
|
|
535
|
+
config: P.value
|
|
536
|
+
}))) {
|
|
537
|
+
Mt.value = a({
|
|
538
|
+
seriesIndex: t,
|
|
539
|
+
datapoint: e,
|
|
540
|
+
series: {
|
|
541
|
+
categories: r,
|
|
542
|
+
datapoints: q.value,
|
|
543
|
+
radar: J.value
|
|
544
|
+
},
|
|
545
|
+
config: P.value
|
|
546
|
+
});
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
Mt.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
550
|
+
for (let t = 0; t < e.values.length; t += 1) if (!U.value.includes(t)) {
|
|
551
|
+
let n = r[t], a = e.values[t], o = isNaN(a / e.target) ? 0 : a / e.target * 100, ee = oe(e.formatter, a, i({
|
|
552
|
+
p: K.value[t].prefix,
|
|
553
|
+
v: a,
|
|
554
|
+
s: K.value[t].suffix,
|
|
555
|
+
r: P.value.style.chart.tooltip.roundingValue
|
|
556
|
+
}), { datapoint: e }), s = i({
|
|
557
|
+
v: o,
|
|
558
|
+
s: "%",
|
|
559
|
+
r: P.value.style.chart.tooltip.roundingPercentage
|
|
560
|
+
}), te = P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${ee} (${s})` : P.value.style.chart.tooltip.showValue && !P.value.style.chart.tooltip.showPercentage ? ee : !P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${s}` : "";
|
|
561
|
+
Dn.value.push({
|
|
562
|
+
name: n?.name ?? `#${t + 1}`,
|
|
563
|
+
value: e.values[t] / e.target * 100,
|
|
564
|
+
color: n?.color,
|
|
565
|
+
suffix: te,
|
|
566
|
+
prefix: "",
|
|
567
|
+
rounding: P.value.style.chart.tooltip.roundingPercentage,
|
|
568
|
+
formatter: e.formatter
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
function Mn(e = null) {
|
|
573
|
+
Le(() => {
|
|
574
|
+
let t = [
|
|
575
|
+
[P.value.style.chart.title.text],
|
|
576
|
+
[P.value.style.chart.title.subtitle.text],
|
|
577
|
+
[""]
|
|
578
|
+
], n = [
|
|
579
|
+
[""],
|
|
580
|
+
[P.value.translations.target],
|
|
581
|
+
...Y.value.flatMap((e) => [[e.name], ["%"]])
|
|
582
|
+
], r = I.value.series.map((e, t) => [
|
|
583
|
+
e.name,
|
|
584
|
+
e.target,
|
|
585
|
+
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
586
|
+
]), i = ne(t.concat([n]).concat(r));
|
|
587
|
+
e ? e(i) : ee({
|
|
588
|
+
csvContent: i,
|
|
589
|
+
title: P.value.style.chart.title.text || "vue-ui-radar"
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
let Q = x(!1);
|
|
594
|
+
function Nn(e) {
|
|
595
|
+
Q.value = e, Nt.value += 1;
|
|
596
|
+
}
|
|
597
|
+
function Pn() {
|
|
598
|
+
V.value.showTable = !V.value.showTable;
|
|
599
|
+
}
|
|
600
|
+
function Fn() {
|
|
601
|
+
V.value.showTooltip = !V.value.showTooltip;
|
|
602
|
+
}
|
|
603
|
+
let In = x(!1);
|
|
604
|
+
function Ln() {
|
|
605
|
+
In.value = !In.value;
|
|
606
|
+
}
|
|
607
|
+
async function Rn({ scale: e = 2 } = {}) {
|
|
608
|
+
if (!A.value) return;
|
|
609
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
610
|
+
domElement: A.value,
|
|
611
|
+
base64: !0,
|
|
612
|
+
img: !0,
|
|
613
|
+
scale: e
|
|
614
|
+
});
|
|
615
|
+
return {
|
|
616
|
+
imageUri: i,
|
|
617
|
+
base64: a,
|
|
618
|
+
title: P.value.style.chart.title.text,
|
|
619
|
+
width: t,
|
|
620
|
+
height: n,
|
|
621
|
+
aspectRatio: r
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
let $ = u(() => {
|
|
625
|
+
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
626
|
+
return {
|
|
627
|
+
component: e ? Dt : St,
|
|
628
|
+
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
629
|
+
props: e ? {
|
|
630
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
631
|
+
color: P.value.table.th.color,
|
|
632
|
+
headerColor: P.value.table.th.color,
|
|
633
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
634
|
+
isFullscreen: Q.value,
|
|
635
|
+
fullscreenParent: A.value,
|
|
636
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
637
|
+
isCursorPointer: F.value
|
|
638
|
+
} : {
|
|
639
|
+
hideDetails: !0,
|
|
640
|
+
config: {
|
|
641
|
+
open: t,
|
|
642
|
+
maxHeight: 1e4,
|
|
643
|
+
body: {
|
|
644
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
645
|
+
color: P.value.style.chart.color
|
|
646
|
+
},
|
|
647
|
+
head: {
|
|
648
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
649
|
+
color: P.value.style.chart.color
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
});
|
|
655
|
+
Ue(() => V.value.showTable, (e) => {
|
|
656
|
+
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
657
|
+
});
|
|
658
|
+
function zn() {
|
|
659
|
+
V.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
|
|
660
|
+
}
|
|
661
|
+
let Bn = u(() => Y.value.map((e) => ({
|
|
662
|
+
...e,
|
|
663
|
+
name: e.display
|
|
664
|
+
}))), Vn = u(() => P.value.style.chart.backgroundColor), Hn = u(() => P.value.style.chart.legend), { exportSvg: Un, getSvg: Wn } = _e({
|
|
665
|
+
svg: L,
|
|
666
|
+
title: u(() => P.value.style.chart.title),
|
|
667
|
+
legend: Hn,
|
|
668
|
+
legendItems: Bn,
|
|
669
|
+
backgroundColor: Vn
|
|
670
|
+
});
|
|
671
|
+
async function Gn({ isCb: e }) {
|
|
672
|
+
Wt.value = !0, await Le();
|
|
673
|
+
try {
|
|
674
|
+
if (e) {
|
|
675
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Wn();
|
|
676
|
+
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
677
|
+
blob: e,
|
|
678
|
+
url: t,
|
|
679
|
+
text: n,
|
|
680
|
+
dataUrl: r
|
|
681
|
+
}));
|
|
682
|
+
} else await Promise.resolve(Un());
|
|
683
|
+
} finally {
|
|
684
|
+
Wt.value = !1;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
function Kn(e) {
|
|
688
|
+
if (e?.stage === "start") {
|
|
689
|
+
Ut.value = !0;
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
if (e?.stage === "end") {
|
|
693
|
+
Ut.value = !1;
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
rn();
|
|
697
|
+
}
|
|
698
|
+
async function qn() {
|
|
699
|
+
if (cn("copyAlt", {
|
|
700
|
+
config: P.value,
|
|
701
|
+
dataset: J.value
|
|
702
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
703
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
707
|
+
config: P.value,
|
|
708
|
+
dataset: J.value
|
|
709
|
+
}));
|
|
710
|
+
}
|
|
711
|
+
function Jn() {
|
|
712
|
+
M.value = null, Kt.value = !0;
|
|
713
|
+
}
|
|
714
|
+
function Yn() {
|
|
715
|
+
M.value = null, N.value = "pointer", k.value = !1, Z.value = null, Kt.value = !1;
|
|
716
|
+
}
|
|
717
|
+
function Xn(e) {
|
|
718
|
+
if (!Number.isFinite(e) || !L.value) return;
|
|
719
|
+
let t = J.value[e];
|
|
720
|
+
if (!t) return;
|
|
721
|
+
let n = L.value.getBoundingClientRect();
|
|
722
|
+
Gt.value = {
|
|
723
|
+
x: n.left + t.labelX / H.value.width * n.width,
|
|
724
|
+
y: n.top + t.labelY / H.value.height * n.height
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
function Zn(e) {
|
|
728
|
+
if (!L.value || In.value || document.activeElement !== L.value || !J.value.length) return;
|
|
729
|
+
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
730
|
+
if (!t && !n && !r && !i) return;
|
|
731
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
732
|
+
M.value = null, N.value = "pointer", k.value = !1, Z.value = null;
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
if (r) {
|
|
736
|
+
if (M.value === null) return;
|
|
737
|
+
let e = J.value[M.value];
|
|
738
|
+
if (!e) return;
|
|
739
|
+
An(e, M.value);
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
let a = M.value;
|
|
743
|
+
a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1));
|
|
744
|
+
let o = J.value[a];
|
|
745
|
+
o && (M.value = a, Xn(a), jn(o, a, "keyboard"));
|
|
746
|
+
}
|
|
747
|
+
let Qn = u(() => ({
|
|
748
|
+
headers: X.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
749
|
+
rows: X.value?.body ?? []
|
|
750
|
+
}));
|
|
751
|
+
return Se({
|
|
752
|
+
getData: fn,
|
|
753
|
+
getImage: Rn,
|
|
754
|
+
generatePdf: nn,
|
|
755
|
+
generateCsv: Mn,
|
|
756
|
+
generateImage: rn,
|
|
757
|
+
generateSvg: Gn,
|
|
758
|
+
hideSeries: gn,
|
|
759
|
+
showSeries: hn,
|
|
760
|
+
toggleTable: Pn,
|
|
761
|
+
toggleTooltip: Fn,
|
|
762
|
+
toggleAnnotator: Ln,
|
|
763
|
+
toggleFullscreen: Nn,
|
|
764
|
+
copyAlt: qn
|
|
765
|
+
}), (e, t) => (b(), p("div", {
|
|
766
|
+
class: _(`vue-data-ui-component vue-ui-radar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
767
|
+
ref_key: "radarChart",
|
|
768
|
+
ref: A,
|
|
769
|
+
id: `vue-ui-radar_${O.value}`,
|
|
770
|
+
style: y(`font-family:${P.value.style.fontFamily};width:100%; ${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
771
|
+
onMouseenter: t[2] ||= () => T(Xt)(!0),
|
|
772
|
+
onMouseleave: t[3] ||= () => T(Xt)(!1)
|
|
773
|
+
}, [
|
|
774
|
+
m("div", {
|
|
775
|
+
id: `chart-instructions-${O.value}`,
|
|
776
|
+
class: "sr-only"
|
|
777
|
+
}, [m("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
|
|
778
|
+
Qn.value?.rows?.length ? (b(), d(Ee, {
|
|
779
|
+
key: 0,
|
|
780
|
+
uid: O.value,
|
|
781
|
+
head: Qn.value.headers,
|
|
782
|
+
body: Qn.value.rows,
|
|
783
|
+
notice: P.value.a11y.translations.tableAvailable,
|
|
784
|
+
caption: P.value.a11y.translations.tableCaption
|
|
785
|
+
}, null, 8, [
|
|
786
|
+
"uid",
|
|
787
|
+
"head",
|
|
788
|
+
"body",
|
|
789
|
+
"notice",
|
|
790
|
+
"caption"
|
|
791
|
+
])) : f("", !0),
|
|
792
|
+
P.value.userOptions.buttons.annotator ? (b(), d(T(wt), {
|
|
793
|
+
key: 1,
|
|
794
|
+
svgRef: T(L),
|
|
795
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
796
|
+
color: P.value.style.chart.color,
|
|
797
|
+
active: In.value,
|
|
798
|
+
isCursorPointer: F.value,
|
|
799
|
+
onClose: Ln
|
|
800
|
+
}, {
|
|
801
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
802
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
803
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
804
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
805
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
806
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
807
|
+
_: 3
|
|
808
|
+
}, 8, [
|
|
809
|
+
"svgRef",
|
|
810
|
+
"backgroundColor",
|
|
811
|
+
"color",
|
|
812
|
+
"active",
|
|
813
|
+
"isCursorPointer"
|
|
814
|
+
])) : f("", !0),
|
|
815
|
+
an.value ? (b(), p("div", {
|
|
816
|
+
key: 2,
|
|
817
|
+
ref_key: "noTitle",
|
|
818
|
+
ref: Lt,
|
|
819
|
+
class: "vue-data-ui-no-title-space",
|
|
820
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
821
|
+
}, null, 512)) : f("", !0),
|
|
822
|
+
P.value.style.chart.title.text ? (b(), p("div", {
|
|
823
|
+
key: 3,
|
|
824
|
+
ref_key: "chartTitle",
|
|
825
|
+
ref: Pt,
|
|
826
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
827
|
+
}, [(b(), d(xe, {
|
|
828
|
+
key: `title_${Rt.value}`,
|
|
829
|
+
config: {
|
|
830
|
+
title: {
|
|
831
|
+
cy: "radar-div-title",
|
|
832
|
+
...P.value.style.chart.title
|
|
833
|
+
},
|
|
834
|
+
subtitle: {
|
|
835
|
+
cy: "radar-div-subtitle",
|
|
836
|
+
...P.value.style.chart.title.subtitle
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
840
|
+
m("div", { id: `legend-top-${O.value}` }, null, 8, qe),
|
|
841
|
+
P.value.userOptions.show && jt.value && (T(Zt) || T(Yt)) ? (b(), d(T(Tt), {
|
|
842
|
+
ref_key: "userOptionsRef",
|
|
843
|
+
ref: Ht,
|
|
844
|
+
key: `user_options_${Nt.value}`,
|
|
845
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
846
|
+
color: P.value.style.chart.color,
|
|
847
|
+
isImaging: T(tn),
|
|
848
|
+
isPrinting: T(en),
|
|
849
|
+
uid: O.value,
|
|
850
|
+
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
851
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
852
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
853
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
854
|
+
hasXls: P.value.userOptions.buttons.csv,
|
|
855
|
+
hasTable: P.value.userOptions.buttons.table,
|
|
856
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
857
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
858
|
+
isFullscreen: Q.value,
|
|
859
|
+
isTooltip: V.value.showTooltip,
|
|
860
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
861
|
+
chartElement: A.value,
|
|
862
|
+
position: P.value.userOptions.position,
|
|
863
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
864
|
+
isAnnotation: In.value,
|
|
865
|
+
callbacks: P.value.userOptions.callbacks,
|
|
866
|
+
printScale: P.value.userOptions.print.scale,
|
|
867
|
+
tableDialog: P.value.table.useDialog,
|
|
868
|
+
isCursorPointer: F.value,
|
|
869
|
+
onToggleFullscreen: Nn,
|
|
870
|
+
onGeneratePdf: T(nn),
|
|
871
|
+
onGenerateCsv: Mn,
|
|
872
|
+
onGenerateImage: Kn,
|
|
873
|
+
onGenerateSvg: Gn,
|
|
874
|
+
onToggleTable: Pn,
|
|
875
|
+
onToggleTooltip: Fn,
|
|
876
|
+
onToggleAnnotator: Ln,
|
|
877
|
+
onCopyAlt: qn,
|
|
878
|
+
style: y({ visibility: T(Zt) ? T(Yt) ? "visible" : "hidden" : "visible" })
|
|
879
|
+
}, Ne({ _: 2 }, [
|
|
880
|
+
e.$slots.menuIcon ? {
|
|
881
|
+
name: "menuIcon",
|
|
882
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
883
|
+
isOpen: t,
|
|
884
|
+
color: n
|
|
885
|
+
})), void 0, !0)]),
|
|
886
|
+
key: "0"
|
|
887
|
+
} : void 0,
|
|
888
|
+
e.$slots.optionTooltip ? {
|
|
889
|
+
name: "optionTooltip",
|
|
890
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
891
|
+
key: "1"
|
|
892
|
+
} : void 0,
|
|
893
|
+
e.$slots.optionPdf ? {
|
|
894
|
+
name: "optionPdf",
|
|
895
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
896
|
+
key: "2"
|
|
897
|
+
} : void 0,
|
|
898
|
+
e.$slots.optionCsv ? {
|
|
899
|
+
name: "optionCsv",
|
|
900
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
901
|
+
key: "3"
|
|
902
|
+
} : void 0,
|
|
903
|
+
e.$slots.optionImg ? {
|
|
904
|
+
name: "optionImg",
|
|
905
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
906
|
+
key: "4"
|
|
907
|
+
} : void 0,
|
|
908
|
+
e.$slots.optionSvg ? {
|
|
909
|
+
name: "optionSvg",
|
|
910
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
911
|
+
key: "5"
|
|
912
|
+
} : void 0,
|
|
913
|
+
e.$slots.optionTable ? {
|
|
914
|
+
name: "optionTable",
|
|
915
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
916
|
+
key: "6"
|
|
917
|
+
} : void 0,
|
|
918
|
+
e.$slots.optionFullscreen ? {
|
|
919
|
+
name: "optionFullscreen",
|
|
920
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
|
|
921
|
+
toggleFullscreen: t,
|
|
922
|
+
isFullscreen: n
|
|
923
|
+
})), void 0, !0)]),
|
|
924
|
+
key: "7"
|
|
925
|
+
} : void 0,
|
|
926
|
+
e.$slots.optionAnnotator ? {
|
|
927
|
+
name: "optionAnnotator",
|
|
928
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
|
|
929
|
+
toggleAnnotator: t,
|
|
930
|
+
isAnnotator: n
|
|
931
|
+
})), void 0, !0)]),
|
|
932
|
+
key: "8"
|
|
933
|
+
} : void 0,
|
|
934
|
+
e.$slots.optionAltCopy ? {
|
|
935
|
+
name: "optionAltCopy",
|
|
936
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
937
|
+
key: "9"
|
|
938
|
+
} : void 0,
|
|
939
|
+
e.$slots["custom-menu-before"] ? {
|
|
940
|
+
name: "custom-menu-before",
|
|
941
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
942
|
+
key: "10"
|
|
943
|
+
} : void 0,
|
|
944
|
+
e.$slots["custom-menu-after"] ? {
|
|
945
|
+
name: "custom-menu-after",
|
|
946
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
947
|
+
key: "11"
|
|
948
|
+
} : void 0
|
|
949
|
+
]), 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.style".split("."))) : f("", !0),
|
|
950
|
+
m("div", Je, [(b(), p("svg", {
|
|
951
|
+
ref_key: "svgRef",
|
|
952
|
+
ref: L,
|
|
953
|
+
xmlns: T(ce),
|
|
954
|
+
"aria-describedby": `chart-instructions-${O.value}`,
|
|
955
|
+
class: _({
|
|
956
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
957
|
+
"vue-data-ui-fulscreen--off": !Q.value
|
|
958
|
+
}),
|
|
959
|
+
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
960
|
+
style: y(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
|
|
961
|
+
tabindex: "0",
|
|
962
|
+
onFocus: Jn,
|
|
963
|
+
onBlur: Yn,
|
|
964
|
+
onKeydown: Zn
|
|
965
|
+
}, [
|
|
966
|
+
Fe(T(Et)),
|
|
967
|
+
e.$slots["chart-background"] ? (b(), p("foreignObject", {
|
|
968
|
+
key: 0,
|
|
969
|
+
x: 0,
|
|
970
|
+
y: 0,
|
|
971
|
+
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
972
|
+
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
973
|
+
style: { pointerEvents: "none" }
|
|
974
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : f("", !0),
|
|
975
|
+
m("defs", null, [(b(!0), p(l, null, S(K.value, (e, t) => (b(), p("radialGradient", {
|
|
976
|
+
cx: "50%",
|
|
977
|
+
cy: "50%",
|
|
978
|
+
r: "50%",
|
|
979
|
+
fx: "50%",
|
|
980
|
+
fy: "50%",
|
|
981
|
+
id: `radar_gradient_${O.value}_${t}`
|
|
982
|
+
}, [m("stop", {
|
|
983
|
+
offset: "0%",
|
|
984
|
+
"stop-color": T(te)(T(r)(e.color, .05), P.value.style.chart.layout.dataPolygon.opacity)
|
|
985
|
+
}, null, 8, Qe), m("stop", {
|
|
986
|
+
offset: "100%",
|
|
987
|
+
"stop-color": T(te)(e.color, P.value.style.chart.layout.dataPolygon.opacity)
|
|
988
|
+
}, null, 8, $e)], 8, Ze))), 256))]),
|
|
989
|
+
P.value.style.chart.layout.grid.show ? (b(), p("g", et, [(b(!0), p(l, null, S(J.value, (e) => (b(), p("line", {
|
|
990
|
+
x1: H.value.width / 2,
|
|
991
|
+
y1: H.value.height / 2,
|
|
992
|
+
x2: e.x,
|
|
993
|
+
y2: e.y,
|
|
994
|
+
stroke: P.value.style.chart.layout.grid.stroke,
|
|
995
|
+
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
996
|
+
}, null, 8, tt))), 256)), P.value.style.chart.layout.grid.graduations > 0 ? (b(), p("g", nt, [(b(!0), p(l, null, S(xn.value, (e) => (b(), p("path", {
|
|
997
|
+
d: T(n)({
|
|
998
|
+
plot: {
|
|
999
|
+
x: H.value.width / 2,
|
|
1000
|
+
y: H.value.height / 2
|
|
1001
|
+
},
|
|
1002
|
+
radius: e,
|
|
1003
|
+
sides: vn.value,
|
|
1004
|
+
rotation: 0
|
|
1005
|
+
}).path,
|
|
1006
|
+
fill: "none",
|
|
1007
|
+
stroke: P.value.style.chart.layout.grid.stroke,
|
|
1008
|
+
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1009
|
+
}, null, 8, rt))), 256))])) : f("", !0)])) : f("", !0),
|
|
1010
|
+
m("path", {
|
|
1011
|
+
d: bn.value.path,
|
|
1012
|
+
fill: "none",
|
|
1013
|
+
stroke: P.value.style.chart.layout.outerPolygon.stroke,
|
|
1014
|
+
"stroke-width": P.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
1015
|
+
"stroke-linejoin": "round",
|
|
1016
|
+
"stroke-linecap": "round"
|
|
1017
|
+
}, null, 8, it),
|
|
1018
|
+
P.value.style.chart.layout.labels.dataLabels.show ? (b(), p("g", at, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p("text", {
|
|
1019
|
+
class: "vue-ui-radar-apex-label",
|
|
1020
|
+
x: e.labelX,
|
|
1021
|
+
y: e.labelY,
|
|
1022
|
+
"text-anchor": e.labelAnchor,
|
|
1023
|
+
"font-size": P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1024
|
+
fill: P.value.style.chart.layout.labels.dataLabels.color,
|
|
1025
|
+
onMouseenter: (n) => jn(e, t, "pointer"),
|
|
1026
|
+
onMouseleave: (n) => kn(e, t),
|
|
1027
|
+
onClick: (n) => An(e, t)
|
|
1028
|
+
}, w(e.name), 41, ot))), 256))])) : f("", !0),
|
|
1029
|
+
(b(!0), p(l, null, S(K.value, (e, t) => (b(), p("g", null, [m("g", null, [P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(t) ? (b(), p("polygon", {
|
|
1030
|
+
key: 0,
|
|
1031
|
+
points: T(ue)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1032
|
+
stroke: P.value.style.chart.backgroundColor,
|
|
1033
|
+
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1034
|
+
fill: "none",
|
|
1035
|
+
class: _({
|
|
1036
|
+
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1037
|
+
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1038
|
+
})
|
|
1039
|
+
}, null, 10, st)) : f("", !0), P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(t) ? (b(), p("polygon", {
|
|
1040
|
+
key: 1,
|
|
1041
|
+
points: T(ue)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1042
|
+
stroke: e.color,
|
|
1043
|
+
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1044
|
+
fill: P.value.style.chart.layout.dataPolygon.transparent ? "transparent" : P.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${O.value}_${t})` : T(te)(e.color, P.value.style.chart.layout.dataPolygon.opacity),
|
|
1045
|
+
class: _({
|
|
1046
|
+
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1047
|
+
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1048
|
+
})
|
|
1049
|
+
}, null, 10, ct)) : f("", !0)])]))), 256)),
|
|
1050
|
+
P.value.style.chart.layout.plots.show ? (b(), p("g", lt, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p("g", null, [(b(!0), p(l, null, S(e.plots, (e, n) => (b(), p("circle", {
|
|
1051
|
+
cx: e.x,
|
|
1052
|
+
cy: e.y,
|
|
1053
|
+
fill: U.value.includes(n) ? "transparent" : K.value[n] ? K.value[n].color : "transparent",
|
|
1054
|
+
r: Z.value !== null && Z.value === t ? P.value.style.chart.layout.plots.radius * 1.6 : P.value.style.chart.layout.plots.radius,
|
|
1055
|
+
stroke: U.value.includes(n) ? "transparent" : P.value.style.chart.backgroundColor,
|
|
1056
|
+
"stroke-width": .5,
|
|
1057
|
+
class: _({
|
|
1058
|
+
"animated-out": U.value.includes(n) && P.value.useCssAnimation,
|
|
1059
|
+
"animated-in": G.value && W.value === n && P.value.useCssAnimation
|
|
1060
|
+
})
|
|
1061
|
+
}, null, 10, ut))), 256))]))), 256))])) : f("", !0),
|
|
1062
|
+
C(e.$slots, "svg", { svg: {
|
|
1063
|
+
...H.value,
|
|
1064
|
+
outerPolygon: bn.value,
|
|
1065
|
+
isPrintingImg: T(en) || T(tn) || Ut.value,
|
|
1066
|
+
isPrintingSvg: Wt.value
|
|
1067
|
+
} }, void 0, !0)
|
|
1068
|
+
], 46, Ye)), e.$slots.hint ? (b(), p("div", dt, [C(e.$slots, "hint", v(g({
|
|
1069
|
+
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1070
|
+
isVisible: Kt.value
|
|
1071
|
+
})), void 0, !0)])) : f("", !0)]),
|
|
1072
|
+
e.$slots.watermark ? (b(), p("div", ft, [C(e.$slots, "watermark", v(g({ isPrinting: T(en) || T(tn) || Ut.value || Wt.value })), void 0, !0)])) : f("", !0),
|
|
1073
|
+
m("div", { id: `legend-bottom-${O.value}` }, null, 8, pt),
|
|
1074
|
+
Vt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(Me, {
|
|
1075
|
+
key: 6,
|
|
1076
|
+
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1077
|
+
}, [m("div", {
|
|
1078
|
+
ref_key: "chartLegend",
|
|
1079
|
+
ref: Ft
|
|
1080
|
+
}, [C(e.$slots, "legend", { legend: Y.value }, () => [P.value.style.chart.legend.show ? (b(), d(ke, {
|
|
1081
|
+
key: `legend_${Bt.value}`,
|
|
1082
|
+
legendSet: Y.value,
|
|
1083
|
+
config: En.value,
|
|
1084
|
+
isCursorPointer: F.value,
|
|
1085
|
+
onClickMarker: t[0] ||= ({ i: e }) => dn(e)
|
|
1086
|
+
}, {
|
|
1087
|
+
item: E(({ legend: e, index: t }) => [T(Jt) ? f("", !0) : (b(), p("div", {
|
|
1088
|
+
key: 0,
|
|
1089
|
+
onClick: (t) => e.segregate(),
|
|
1090
|
+
style: y(`opacity:${U.value.includes(t) ? .5 : 1}`)
|
|
1091
|
+
}, w(e.display), 13, mt))]),
|
|
1092
|
+
legendToggle: E(() => [Y.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(Jt) ? (b(), d(Te, {
|
|
1093
|
+
key: 0,
|
|
1094
|
+
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1095
|
+
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1096
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
1097
|
+
checked: U.value.length > 0,
|
|
1098
|
+
isCursorPointer: F.value,
|
|
1099
|
+
onToggle: ln
|
|
1100
|
+
}, null, 8, [
|
|
1101
|
+
"backgroundColor",
|
|
1102
|
+
"color",
|
|
1103
|
+
"fontSize",
|
|
1104
|
+
"checked",
|
|
1105
|
+
"isCursorPointer"
|
|
1106
|
+
])) : f("", !0)]),
|
|
1107
|
+
_: 1
|
|
1108
|
+
}, 8, [
|
|
1109
|
+
"legendSet",
|
|
1110
|
+
"config",
|
|
1111
|
+
"isCursorPointer"
|
|
1112
|
+
])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
1113
|
+
e.$slots.source ? (b(), p("div", {
|
|
1114
|
+
key: 7,
|
|
1115
|
+
ref_key: "source",
|
|
1116
|
+
ref: It,
|
|
1117
|
+
dir: "auto"
|
|
1118
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1119
|
+
Fe(T(yt), {
|
|
1120
|
+
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
1121
|
+
show: V.value.showTooltip && k.value,
|
|
1122
|
+
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
1123
|
+
color: P.value.style.chart.tooltip.color,
|
|
1124
|
+
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
1125
|
+
borderColor: P.value.style.chart.tooltip.borderColor,
|
|
1126
|
+
borderWidth: P.value.style.chart.tooltip.borderWidth,
|
|
1127
|
+
backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
|
|
1128
|
+
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
1129
|
+
position: P.value.style.chart.tooltip.position,
|
|
1130
|
+
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
1131
|
+
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
1132
|
+
parent: A.value,
|
|
1133
|
+
content: Mt.value,
|
|
1134
|
+
isFullscreen: Q.value,
|
|
1135
|
+
isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
|
|
1136
|
+
smooth: P.value.style.chart.tooltip.smooth,
|
|
1137
|
+
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
1138
|
+
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
1139
|
+
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1140
|
+
isA11yMode: N.value === "keyboard",
|
|
1141
|
+
a11yPosition: Gt.value
|
|
1142
|
+
}, {
|
|
1143
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...On.value })), void 0, !0)]),
|
|
1144
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...On.value })), void 0, !0)]),
|
|
1145
|
+
"tooltip-after": E(() => [!["function"].includes(typeof P.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (b(), p("div", ht, [Fe(T(xt), {
|
|
1146
|
+
dataset: Dn.value,
|
|
1147
|
+
config: sn.value,
|
|
1148
|
+
backgroundOpacity: 0
|
|
1149
|
+
}, {
|
|
1150
|
+
"data-label": E(({ bar: e }) => [m("div", gt, [m("span", _t, w(e.name + (P.value.style.chart.tooltip.showValue || P.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), P.value.style.chart.tooltip.showValue || P.value.style.chart.tooltip.showPercentage ? (b(), p("span", vt, w(e.suffix), 1)) : f("", !0)])]),
|
|
1151
|
+
_: 1
|
|
1152
|
+
}, 8, ["dataset", "config"])])) : f("", !0), C(e.$slots, "tooltip-after", v(g({ ...On.value })), void 0, !0)]),
|
|
1153
|
+
_: 3
|
|
1154
|
+
}, 8, [
|
|
1155
|
+
"teleportTo",
|
|
1156
|
+
"show",
|
|
1157
|
+
"backgroundColor",
|
|
1158
|
+
"color",
|
|
1159
|
+
"borderRadius",
|
|
1160
|
+
"borderColor",
|
|
1161
|
+
"borderWidth",
|
|
1162
|
+
"backgroundOpacity",
|
|
1163
|
+
"fontSize",
|
|
1164
|
+
"position",
|
|
1165
|
+
"offsetX",
|
|
1166
|
+
"offsetY",
|
|
1167
|
+
"parent",
|
|
1168
|
+
"content",
|
|
1169
|
+
"isFullscreen",
|
|
1170
|
+
"isCustom",
|
|
1171
|
+
"smooth",
|
|
1172
|
+
"backdropFilter",
|
|
1173
|
+
"smoothForce",
|
|
1174
|
+
"smoothSnapThreshold",
|
|
1175
|
+
"isA11yMode",
|
|
1176
|
+
"a11yPosition"
|
|
1177
|
+
]),
|
|
1178
|
+
jt.value && P.value.userOptions.buttons.table ? (b(), d(Be($.value.component), Ie({ key: 8 }, $.value.props, {
|
|
1179
|
+
ref_key: "tableUnit",
|
|
1180
|
+
ref: j,
|
|
1181
|
+
onClose: zn
|
|
1182
|
+
}), Ne({
|
|
1183
|
+
content: E(() => [(b(), d(T(Ct), {
|
|
1184
|
+
key: `table_${zt.value}`,
|
|
1185
|
+
colNames: X.value.colNames,
|
|
1186
|
+
head: X.value.head,
|
|
1187
|
+
body: X.value.body,
|
|
1188
|
+
config: X.value.config,
|
|
1189
|
+
title: P.value.table.useDialog ? "" : $.value.title,
|
|
1190
|
+
withCloseButton: !P.value.table.useDialog,
|
|
1191
|
+
isCursorPointer: F.value,
|
|
1192
|
+
onClose: zn
|
|
1193
|
+
}, {
|
|
1194
|
+
th: E(({ th: e }) => [Pe(w(e.name), 1)]),
|
|
1195
|
+
td: E(({ td: e }) => [Pe(w(e), 1)]),
|
|
1196
|
+
_: 1
|
|
1197
|
+
}, 8, [
|
|
1198
|
+
"colNames",
|
|
1199
|
+
"head",
|
|
1200
|
+
"body",
|
|
1201
|
+
"config",
|
|
1202
|
+
"title",
|
|
1203
|
+
"withCloseButton",
|
|
1204
|
+
"isCursorPointer"
|
|
1205
|
+
]))]),
|
|
1206
|
+
_: 2
|
|
1207
|
+
}, [P.value.table.useDialog ? {
|
|
1208
|
+
name: "title",
|
|
1209
|
+
fn: E(() => [Pe(w($.value.title), 1)]),
|
|
1210
|
+
key: "0"
|
|
1211
|
+
} : void 0, P.value.table.useDialog ? {
|
|
1212
|
+
name: "actions",
|
|
1213
|
+
fn: E(() => [m("button", {
|
|
1214
|
+
tabindex: "0",
|
|
1215
|
+
class: "vue-ui-user-options-button",
|
|
1216
|
+
onClick: t[1] ||= (e) => Mn(P.value.userOptions.callbacks.csv),
|
|
1217
|
+
style: y({ cursor: F.value ? "pointer" : "default" })
|
|
1218
|
+
}, [Fe(T(bt), {
|
|
1219
|
+
name: "fileCsv",
|
|
1220
|
+
stroke: $.value.props.color
|
|
1221
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1222
|
+
key: "1"
|
|
1223
|
+
} : void 0]), 1040)) : f("", !0),
|
|
1224
|
+
C(e.$slots, "skeleton", {}, () => [T(Jt) ? (b(), d(ge, { key: 0 })) : f("", !0)], !0)
|
|
1225
|
+
], 46, Ge));
|
|
1226
|
+
}
|
|
1227
|
+
}, [["__scopeId", "data-v-d5e67629"]]);
|
|
1228
|
+
//#endregion
|
|
1229
|
+
export { We as n, yt as t };
|