vue-data-ui 3.22.0 → 3.22.1
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.js} +2 -2
- 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 +3 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
- package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
- package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
- package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
- package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
- package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
- package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
- package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
- package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
- package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
- package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
- package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
- package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
- package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
- package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
- package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
- package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
- package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
- package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
- package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
- package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
|
@@ -1,1281 +0,0 @@
|
|
|
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-Br1uzq_L.js";
|
|
4
|
-
import { t as me } from "./usePrinter-6n2MzVyV.js";
|
|
5
|
-
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.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-CUYal8mC.js";
|
|
15
|
-
import { t as Ee } from "./A11yDataTable-DdRsVULz.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-CAStwHdx.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: () => St }), 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 = [
|
|
61
|
-
"d",
|
|
62
|
-
"stroke",
|
|
63
|
-
"stroke-width",
|
|
64
|
-
"stroke-dasharray"
|
|
65
|
-
], ut = { key: 4 }, dt = [
|
|
66
|
-
"cx",
|
|
67
|
-
"cy",
|
|
68
|
-
"fill",
|
|
69
|
-
"r",
|
|
70
|
-
"stroke"
|
|
71
|
-
], ft = {
|
|
72
|
-
key: 0,
|
|
73
|
-
style: {
|
|
74
|
-
position: "absolute",
|
|
75
|
-
top: "100%",
|
|
76
|
-
left: "0",
|
|
77
|
-
width: "100%"
|
|
78
|
-
},
|
|
79
|
-
"data-dom-to-png-ignore": "",
|
|
80
|
-
"aria-hidden": "true"
|
|
81
|
-
}, pt = {
|
|
82
|
-
key: 5,
|
|
83
|
-
class: "vue-data-ui-watermark"
|
|
84
|
-
}, mt = ["id"], ht = ["onClick"], gt = { class: "vue-data-ui-legend-item" }, _t = [
|
|
85
|
-
"stroke",
|
|
86
|
-
"stroke-width",
|
|
87
|
-
"stroke-dasharray"
|
|
88
|
-
], vt = {
|
|
89
|
-
key: 0,
|
|
90
|
-
style: {
|
|
91
|
-
"max-width": "200px",
|
|
92
|
-
margin: "0 auto"
|
|
93
|
-
}
|
|
94
|
-
}, yt = {
|
|
95
|
-
class: "vue-ui-radar-tooltip-datalabel",
|
|
96
|
-
style: { width: "100%" }
|
|
97
|
-
}, bt = { class: "vue-ui-radar-tooltip-datalabel-name" }, xt = { key: 0 }, St = /*#__PURE__*/ Se({
|
|
98
|
-
__name: "vue-ui-radar",
|
|
99
|
-
props: {
|
|
100
|
-
config: {
|
|
101
|
-
type: Object,
|
|
102
|
-
default() {
|
|
103
|
-
return {};
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
dataset: {
|
|
107
|
-
type: Object,
|
|
108
|
-
default() {
|
|
109
|
-
return {};
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
emits: ["selectLegend", "copyAlt"],
|
|
114
|
-
setup(e, { expose: Se, emit: We }) {
|
|
115
|
-
let St = h(() => import("./Tooltip-979Ytd8R.js")), Ct = h(() => import("./BaseIcon-CWXbczu_.js").then((e) => e.n)), wt = h(() => import("./vue-ui-sparkbar-Dq1hnBhL.js").then((e) => e.n)), Tt = h(() => import("./vue-ui-accordion-HvsT8_RM.js").then((e) => e.n)), Et = h(() => import("./DataTable-G9aclxhk.js")), Dt = h(() => import("./PenAndPaper-z1woaB1V.js").then((e) => e.t)), Ot = h(() => import("./UserOptions-rx9hUnOy.js").then((e) => e.n)), kt = h(() => import("./PackageVersion-DxBQctV8.js").then((e) => e.t)), At = h(() => import("./BaseDraggableDialog-O8jn9Lvi.js").then((e) => e.n)), { vue_ui_radar: jt } = pe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = ye(), D = e, Pt = u(() => !!D.dataset && Object.keys(D.dataset).length), O = x(a()), k = x(!1), Ft = x(""), It = x(0), A = x(null), Lt = x(null), Rt = x(null), zt = x(null), Bt = x(null), Vt = x(0), Ht = x(0), Ut = x(0), Wt = x(!1), j = x(null), Gt = x(null), Kt = x(!1), qt = x(!1), M = x(null), Jt = x({
|
|
116
|
-
x: 0,
|
|
117
|
-
y: 0
|
|
118
|
-
}), N = x("pointer"), Yt = x(!1), P = x(tn()), F = u(() => P.value.userOptions.useCursorPointer), Xt = u(() => o({
|
|
119
|
-
defaultConfig: {
|
|
120
|
-
userOptions: { show: !1 },
|
|
121
|
-
table: { show: !1 },
|
|
122
|
-
useCssAnimation: !1,
|
|
123
|
-
style: { chart: {
|
|
124
|
-
backgroundColor: "#99999930",
|
|
125
|
-
layout: {
|
|
126
|
-
grid: { stroke: "#6A6A6A90" },
|
|
127
|
-
labels: { dataLabels: { show: !1 } },
|
|
128
|
-
outerPolygon: { stroke: "#6A6A6A" }
|
|
129
|
-
},
|
|
130
|
-
legend: { backgroundColor: "transparent" }
|
|
131
|
-
} }
|
|
132
|
-
},
|
|
133
|
-
userConfig: P.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading: Zt, FINAL_DATASET: I } = he({
|
|
135
|
-
...He(D),
|
|
136
|
-
FINAL_CONFIG: P,
|
|
137
|
-
prepareConfig: tn,
|
|
138
|
-
callback: () => {
|
|
139
|
-
Promise.resolve().then(async () => {
|
|
140
|
-
await Le(), V.value.showTable = P.value.table.show;
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
144
|
-
categories: [{
|
|
145
|
-
name: "_",
|
|
146
|
-
color: "#6A6A6A"
|
|
147
|
-
}],
|
|
148
|
-
series: [
|
|
149
|
-
{
|
|
150
|
-
name: "_",
|
|
151
|
-
values: [.6],
|
|
152
|
-
target: 1
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
name: "_",
|
|
156
|
-
values: [.6],
|
|
157
|
-
target: 1
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: "_",
|
|
161
|
-
values: [.6],
|
|
162
|
-
target: 1
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
name: "_",
|
|
166
|
-
values: [.6],
|
|
167
|
-
target: 1
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: "_",
|
|
171
|
-
values: [.6],
|
|
172
|
-
target: 1
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
name: "_",
|
|
176
|
-
values: [.6],
|
|
177
|
-
target: 1
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
|
-
skeletonConfig: o({
|
|
182
|
-
defaultConfig: P.value,
|
|
183
|
-
userConfig: Xt.value
|
|
184
|
-
})
|
|
185
|
-
}), { userOptionsVisible: Qt, setUserOptionsVisibility: $t, keepUserOptionState: en } = De({ config: P.value }), { svgRef: L } = Oe({ config: P.value.style.chart.title });
|
|
186
|
-
function tn() {
|
|
187
|
-
let e = ve({
|
|
188
|
-
userConfig: D.config,
|
|
189
|
-
defaultConfig: jt
|
|
190
|
-
}), n = e.theme;
|
|
191
|
-
if (!n) return e;
|
|
192
|
-
if (!Mt.value(e)) return Nt(e), e;
|
|
193
|
-
let r = ve({
|
|
194
|
-
userConfig: je[n] || D.config,
|
|
195
|
-
defaultConfig: e
|
|
196
|
-
}), i = ve({
|
|
197
|
-
userConfig: D.config,
|
|
198
|
-
defaultConfig: r
|
|
199
|
-
});
|
|
200
|
-
return {
|
|
201
|
-
...i,
|
|
202
|
-
customPalette: i.customPalette.length ? i.customPalette : t[n] || s
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
Ue(() => D.config, (e) => {
|
|
206
|
-
P.value = tn(), Qt.value = !P.value.userOptions.showOnChartHover, nn(), Vt.value += 1, Ht.value += 1, Ut.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;
|
|
207
|
-
}, { deep: !0 });
|
|
208
|
-
let R = Ve(null), z = Ve(null), B = u(() => P.value.debug);
|
|
209
|
-
function nn() {
|
|
210
|
-
if (re(D.dataset) && c({
|
|
211
|
-
componentName: "VueUiRadar",
|
|
212
|
-
type: "dataset",
|
|
213
|
-
debug: B.value
|
|
214
|
-
}), P.value.responsive) {
|
|
215
|
-
let e = Ce(() => {
|
|
216
|
-
let { width: e, height: t } = we({
|
|
217
|
-
chart: A.value,
|
|
218
|
-
title: P.value.style.chart.title.text ? Lt.value : null,
|
|
219
|
-
legend: P.value.style.chart.legend.show ? Rt.value : null,
|
|
220
|
-
source: zt.value,
|
|
221
|
-
noTitle: Bt.value
|
|
222
|
-
});
|
|
223
|
-
requestAnimationFrame(() => {
|
|
224
|
-
H.value.width = e, H.value.height = t, kn();
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
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);
|
|
228
|
-
}
|
|
229
|
-
kn();
|
|
230
|
-
}
|
|
231
|
-
ze(() => {
|
|
232
|
-
Wt.value = !0, nn();
|
|
233
|
-
}), Re(() => {
|
|
234
|
-
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
235
|
-
});
|
|
236
|
-
let { isPrinting: rn, isImaging: an, generatePdf: on, generateImage: sn } = me({
|
|
237
|
-
elementId: `vue-ui-radar_${O.value}`,
|
|
238
|
-
fileName: P.value.style.chart.title.text || "vue-ui-radar",
|
|
239
|
-
options: P.value.userOptions.print
|
|
240
|
-
}), cn = u(() => P.value.userOptions.show && !P.value.style.chart.title.text), ln = u(() => de(P.value.customPalette)), V = x({
|
|
241
|
-
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
242
|
-
showTable: P.value.table.show,
|
|
243
|
-
showTooltip: P.value.style.chart.tooltip.show
|
|
244
|
-
}), un = u(() => ({ style: {
|
|
245
|
-
backgroundColor: "#FFFFFF00",
|
|
246
|
-
animation: {
|
|
247
|
-
show: P.value.style.chart.tooltip.animation.show,
|
|
248
|
-
animationFrames: P.value.style.chart.tooltip.animation.animationFrames
|
|
249
|
-
},
|
|
250
|
-
labels: {
|
|
251
|
-
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
252
|
-
name: { color: P.value.style.chart.tooltip.color }
|
|
253
|
-
},
|
|
254
|
-
gutter: {
|
|
255
|
-
backgroundColor: "#CCCCCC",
|
|
256
|
-
opacity: 30
|
|
257
|
-
}
|
|
258
|
-
} })), H = x({
|
|
259
|
-
height: 312,
|
|
260
|
-
width: 512
|
|
261
|
-
}), dn = We, U = x([]), W = x(null), G = x(!1);
|
|
262
|
-
function fn() {
|
|
263
|
-
U.value.length ? U.value = [] : Y.value.forEach((e, t) => {
|
|
264
|
-
U.value.push(t);
|
|
265
|
-
}), pn();
|
|
266
|
-
}
|
|
267
|
-
function pn() {
|
|
268
|
-
dn("selectLegend", Y.value.filter((e, t) => !U.value.includes(t)).map((e) => ({
|
|
269
|
-
name: e.name,
|
|
270
|
-
color: e.color,
|
|
271
|
-
proportion: e.totalProportion
|
|
272
|
-
})));
|
|
273
|
-
}
|
|
274
|
-
function mn(e) {
|
|
275
|
-
G.value = !0, U.value.includes(e) ? (W.value = e, U.value = U.value.filter((t) => t !== e), setTimeout(() => {
|
|
276
|
-
G.value = !1, W.value = null;
|
|
277
|
-
}, 500)) : (U.value.push(e), setTimeout(() => {
|
|
278
|
-
G.value = !1;
|
|
279
|
-
}, 500)), pn();
|
|
280
|
-
}
|
|
281
|
-
function hn() {
|
|
282
|
-
return Y.value.map((e) => ({
|
|
283
|
-
name: e.name,
|
|
284
|
-
color: e.color,
|
|
285
|
-
proportion: e.totalProportion
|
|
286
|
-
}));
|
|
287
|
-
}
|
|
288
|
-
function gn() {
|
|
289
|
-
let e = I.value;
|
|
290
|
-
if ([null, void 0].includes(e?.categories)) {
|
|
291
|
-
c({
|
|
292
|
-
componentName: "VueUiRadar",
|
|
293
|
-
type: "dataset",
|
|
294
|
-
debug: B.value
|
|
295
|
-
}), c({
|
|
296
|
-
componentName: "VueUiRadar",
|
|
297
|
-
type: "datasetAttribute",
|
|
298
|
-
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
299
|
-
debug: B.value
|
|
300
|
-
});
|
|
301
|
-
return;
|
|
302
|
-
}
|
|
303
|
-
e.categories.length === 0 ? c({
|
|
304
|
-
componentName: "VueUiRadar",
|
|
305
|
-
type: "datasetAttributeEmpty",
|
|
306
|
-
property: "categories",
|
|
307
|
-
debug: B.value
|
|
308
|
-
}) : e.categories.forEach((e, t) => {
|
|
309
|
-
ie({
|
|
310
|
-
datasetObject: e,
|
|
311
|
-
requiredAttributes: ["name"]
|
|
312
|
-
}).forEach((e) => {
|
|
313
|
-
c({
|
|
314
|
-
componentName: "VueUiRadar",
|
|
315
|
-
type: "datasetAttribute",
|
|
316
|
-
property: `category.${e} at index ${t}`,
|
|
317
|
-
index: t,
|
|
318
|
-
debug: B.value
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
}), [null, void 0].includes(e?.series) ? c({
|
|
322
|
-
componentName: "VueUiRadar",
|
|
323
|
-
type: "datasetAttribute",
|
|
324
|
-
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
325
|
-
debug: B.value
|
|
326
|
-
}) : e.series.forEach((e, t) => {
|
|
327
|
-
ie({
|
|
328
|
-
datasetObject: e,
|
|
329
|
-
requiredAttributes: [
|
|
330
|
-
"name",
|
|
331
|
-
"values",
|
|
332
|
-
"target"
|
|
333
|
-
]
|
|
334
|
-
}).forEach((e) => {
|
|
335
|
-
c({
|
|
336
|
-
componentName: "VueUiRadar",
|
|
337
|
-
type: "datasetSerieAttribute",
|
|
338
|
-
key: "series",
|
|
339
|
-
property: e,
|
|
340
|
-
index: t,
|
|
341
|
-
debug: B.value
|
|
342
|
-
});
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
Ue(() => I.value, () => gn(), {
|
|
347
|
-
deep: !0,
|
|
348
|
-
immediate: !0
|
|
349
|
-
});
|
|
350
|
-
let K = u(() => {
|
|
351
|
-
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], t = ln.value ?? s;
|
|
352
|
-
return e.map((e, n) => ({
|
|
353
|
-
name: e?.name ?? "",
|
|
354
|
-
categoryId: `radar_category_${O.value}_${n}`,
|
|
355
|
-
color: fe(e?.color) || t[n] || s[n % s.length],
|
|
356
|
-
prefix: e?.prefix ?? "",
|
|
357
|
-
suffix: e?.suffix ?? ""
|
|
358
|
-
}));
|
|
359
|
-
}), q = u(() => I.value.series.map((e, t) => ({
|
|
360
|
-
...e,
|
|
361
|
-
color: fe(e.color) || ln.value[t] || s[t] || s[t % s.length],
|
|
362
|
-
serieId: `radar_serie_${O.value}_${t}`,
|
|
363
|
-
formatter: e.formatter || null,
|
|
364
|
-
absoluteIndex: t
|
|
365
|
-
})));
|
|
366
|
-
function _n(e) {
|
|
367
|
-
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);
|
|
368
|
-
}
|
|
369
|
-
function vn(e) {
|
|
370
|
-
let t = _n(e);
|
|
371
|
-
t !== null && U.value.includes(t.absoluteIndex) && mn(t.absoluteIndex);
|
|
372
|
-
}
|
|
373
|
-
function yn(e) {
|
|
374
|
-
let t = _n(e);
|
|
375
|
-
t !== null && (U.value.includes(t.absoluteIndex) || mn(t.absoluteIndex));
|
|
376
|
-
}
|
|
377
|
-
let bn = u(() => Math.max(0, ...q.value.flatMap((e) => e.values)));
|
|
378
|
-
function xn(e) {
|
|
379
|
-
return P.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || bn.value || 1;
|
|
380
|
-
}
|
|
381
|
-
let Sn = u(() => q.value.map((e, t) => {
|
|
382
|
-
let n = Tn.value.coordinates[t];
|
|
383
|
-
return An({
|
|
384
|
-
centerX: H.value.width / 2,
|
|
385
|
-
centerY: H.value.height / 2,
|
|
386
|
-
apexX: n.x,
|
|
387
|
-
apexY: n.y,
|
|
388
|
-
proportion: (e.target || 0) / xn(e)
|
|
389
|
-
});
|
|
390
|
-
})), Cn = u(() => q.value.length), wn = u(() => Math.min(H.value.width, H.value.height) / 3), Tn = u(() => n({
|
|
391
|
-
plot: {
|
|
392
|
-
x: H.value.width / 2,
|
|
393
|
-
y: H.value.height / 2
|
|
394
|
-
},
|
|
395
|
-
radius: wn.value,
|
|
396
|
-
sides: Cn.value,
|
|
397
|
-
rotation: 0
|
|
398
|
-
})), En = u(() => {
|
|
399
|
-
let e = [];
|
|
400
|
-
for (let t = 0; t < wn.value; t += wn.value / P.value.style.chart.layout.grid.graduations) e.push(t);
|
|
401
|
-
return e;
|
|
402
|
-
}), J = u(() => Tn.value.coordinates.map((e, t) => {
|
|
403
|
-
let n = q.value[t], r = q.value[t].values.map((t) => An({
|
|
404
|
-
centerX: H.value.width / 2,
|
|
405
|
-
centerY: H.value.height / 2,
|
|
406
|
-
apexX: e.x,
|
|
407
|
-
apexY: e.y,
|
|
408
|
-
proportion: t / xn(n)
|
|
409
|
-
}));
|
|
410
|
-
return {
|
|
411
|
-
...e,
|
|
412
|
-
...n,
|
|
413
|
-
plots: r
|
|
414
|
-
};
|
|
415
|
-
}).map((e) => ({
|
|
416
|
-
...e,
|
|
417
|
-
labelX: Dn(e).x,
|
|
418
|
-
labelY: Dn(e).y,
|
|
419
|
-
labelAnchor: Dn(e).anchor
|
|
420
|
-
})));
|
|
421
|
-
function Dn({ x: e, y: t }) {
|
|
422
|
-
let n = "middle";
|
|
423
|
-
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), {
|
|
424
|
-
x: e,
|
|
425
|
-
y: t,
|
|
426
|
-
anchor: n
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
let On = u({
|
|
430
|
-
get: () => P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
431
|
-
set: (e) => e
|
|
432
|
-
}), { autoSizeLabels: kn } = Ae({
|
|
433
|
-
svgRef: L,
|
|
434
|
-
fontSize: P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
435
|
-
minFontSize: 6,
|
|
436
|
-
sizeRef: On,
|
|
437
|
-
labelClass: ".vue-ui-radar-apex-label"
|
|
438
|
-
});
|
|
439
|
-
function An({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
440
|
-
return {
|
|
441
|
-
x: e + (n - e) * i,
|
|
442
|
-
y: t + (r - t) * i
|
|
443
|
-
};
|
|
444
|
-
}
|
|
445
|
-
let Y = u(() => {
|
|
446
|
-
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target || bn.value)));
|
|
447
|
-
return K.value.map((t, n) => {
|
|
448
|
-
let r = le(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / q.value.length);
|
|
449
|
-
return {
|
|
450
|
-
...t,
|
|
451
|
-
absoluteIndex: n,
|
|
452
|
-
totalProportion: r,
|
|
453
|
-
shape: "circle",
|
|
454
|
-
opacity: U.value.includes(n) ? .5 : 1,
|
|
455
|
-
segregate: () => mn(n),
|
|
456
|
-
isSegregated: U.value.includes(n),
|
|
457
|
-
display: `${t.name}: ${i({
|
|
458
|
-
v: (r ?? 0) * 100,
|
|
459
|
-
s: "%",
|
|
460
|
-
r: P.value.style.chart.legend.roundingPercentage
|
|
461
|
-
})}`
|
|
462
|
-
};
|
|
463
|
-
});
|
|
464
|
-
}), jn = u(() => ({
|
|
465
|
-
cy: "radar-div-legend",
|
|
466
|
-
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
467
|
-
color: P.value.style.chart.legend.color,
|
|
468
|
-
fontSize: P.value.style.chart.legend.fontSize,
|
|
469
|
-
paddingBottom: 12,
|
|
470
|
-
fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
|
|
471
|
-
})), X = u(() => {
|
|
472
|
-
let e = [
|
|
473
|
-
{
|
|
474
|
-
name: P.value.translations.datapoint,
|
|
475
|
-
color: ""
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
name: P.value.translations.target,
|
|
479
|
-
color: ""
|
|
480
|
-
},
|
|
481
|
-
...Y.value
|
|
482
|
-
];
|
|
483
|
-
return {
|
|
484
|
-
head: e,
|
|
485
|
-
body: I.value.series.map((e) => [
|
|
486
|
-
e.name,
|
|
487
|
-
oe(e.formatter, e.target, i({
|
|
488
|
-
p: e.prefix,
|
|
489
|
-
v: e.target,
|
|
490
|
-
s: e.suffix,
|
|
491
|
-
r: P.value.table.td.roundingValue
|
|
492
|
-
})),
|
|
493
|
-
...e.values.map((t, n) => `${oe(e.formatter, t, i({
|
|
494
|
-
p: K.value[n]?.prefix ?? "",
|
|
495
|
-
v: t,
|
|
496
|
-
s: K.value[n]?.suffix ?? "",
|
|
497
|
-
r: P.value.table.td.roundingValue
|
|
498
|
-
}))} (${isNaN(t / e.target) ? "" : i({
|
|
499
|
-
v: t / e.target * 100,
|
|
500
|
-
s: "%",
|
|
501
|
-
r: P.value.table.td.roundingPercentage
|
|
502
|
-
})})`)
|
|
503
|
-
]),
|
|
504
|
-
config: {
|
|
505
|
-
th: {
|
|
506
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
507
|
-
color: P.value.table.th.color,
|
|
508
|
-
outline: P.value.table.th.outline
|
|
509
|
-
},
|
|
510
|
-
td: {
|
|
511
|
-
backgroundColor: P.value.table.td.backgroundColor,
|
|
512
|
-
color: P.value.table.td.color,
|
|
513
|
-
outline: P.value.table.td.outline
|
|
514
|
-
},
|
|
515
|
-
breakpoint: P.value.table.responsiveBreakpoint
|
|
516
|
-
},
|
|
517
|
-
colNames: e
|
|
518
|
-
};
|
|
519
|
-
}), Z = x(null), Mn = x([]), Nn = x(null);
|
|
520
|
-
function Pn(e, t) {
|
|
521
|
-
k.value = !1, Z.value = null, M.value = null, N.value = "pointer", P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
522
|
-
datapoint: e,
|
|
523
|
-
seriesIndex: t
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
function Fn(e, t) {
|
|
527
|
-
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
528
|
-
datapoint: e,
|
|
529
|
-
seriesIndex: t
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
function In(e, t, n = "pointer") {
|
|
533
|
-
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
534
|
-
datapoint: e,
|
|
535
|
-
seriesIndex: t
|
|
536
|
-
}), N.value = n, M.value = t;
|
|
537
|
-
let r = K.value.slice();
|
|
538
|
-
Mn.value = [], Z.value = t, k.value = !0, Nn.value = {
|
|
539
|
-
datapoint: e,
|
|
540
|
-
seriesIndex: t,
|
|
541
|
-
series: {
|
|
542
|
-
categories: r,
|
|
543
|
-
datapoints: q.value,
|
|
544
|
-
radar: J.value
|
|
545
|
-
},
|
|
546
|
-
config: P.value
|
|
547
|
-
};
|
|
548
|
-
let a = P.value.style.chart.tooltip.customFormat;
|
|
549
|
-
if (ae(a) && se(() => a({
|
|
550
|
-
seriesIndex: t,
|
|
551
|
-
datapoint: e,
|
|
552
|
-
series: {
|
|
553
|
-
categories: r,
|
|
554
|
-
datapoints: q.value,
|
|
555
|
-
radar: J.value
|
|
556
|
-
},
|
|
557
|
-
config: P.value
|
|
558
|
-
}))) {
|
|
559
|
-
Ft.value = a({
|
|
560
|
-
seriesIndex: t,
|
|
561
|
-
datapoint: e,
|
|
562
|
-
series: {
|
|
563
|
-
categories: r,
|
|
564
|
-
datapoints: q.value,
|
|
565
|
-
radar: J.value
|
|
566
|
-
},
|
|
567
|
-
config: P.value
|
|
568
|
-
});
|
|
569
|
-
return;
|
|
570
|
-
}
|
|
571
|
-
Ft.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>`;
|
|
572
|
-
for (let t = 0; t < e.values.length; t += 1) if (!U.value.includes(t)) {
|
|
573
|
-
let n = r[t], a = e.values[t], o = isNaN(a / e.target) ? 0 : a / e.target * 100, ee = oe(e.formatter, a, i({
|
|
574
|
-
p: K.value[t].prefix,
|
|
575
|
-
v: a,
|
|
576
|
-
s: K.value[t].suffix,
|
|
577
|
-
r: P.value.style.chart.tooltip.roundingValue
|
|
578
|
-
}), { datapoint: e }), s = i({
|
|
579
|
-
v: o,
|
|
580
|
-
s: "%",
|
|
581
|
-
r: P.value.style.chart.tooltip.roundingPercentage
|
|
582
|
-
}), 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}` : "";
|
|
583
|
-
Mn.value.push({
|
|
584
|
-
name: n?.name ?? `#${t + 1}`,
|
|
585
|
-
value: e.values[t] / e.target * 100,
|
|
586
|
-
color: n?.color,
|
|
587
|
-
suffix: te,
|
|
588
|
-
prefix: "",
|
|
589
|
-
rounding: P.value.style.chart.tooltip.roundingPercentage,
|
|
590
|
-
formatter: e.formatter
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
function Ln(e = null) {
|
|
595
|
-
Le(() => {
|
|
596
|
-
let t = [
|
|
597
|
-
[P.value.style.chart.title.text],
|
|
598
|
-
[P.value.style.chart.title.subtitle.text],
|
|
599
|
-
[""]
|
|
600
|
-
], n = [
|
|
601
|
-
[""],
|
|
602
|
-
[P.value.translations.target],
|
|
603
|
-
...Y.value.flatMap((e) => [[e.name], ["%"]])
|
|
604
|
-
], r = I.value.series.map((e, t) => [
|
|
605
|
-
e.name,
|
|
606
|
-
e.target,
|
|
607
|
-
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
608
|
-
]), i = ne(t.concat([n]).concat(r));
|
|
609
|
-
e ? e(i) : ee({
|
|
610
|
-
csvContent: i,
|
|
611
|
-
title: P.value.style.chart.title.text || "vue-ui-radar"
|
|
612
|
-
});
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
let Q = x(!1);
|
|
616
|
-
function Rn(e) {
|
|
617
|
-
Q.value = e, It.value += 1;
|
|
618
|
-
}
|
|
619
|
-
function zn() {
|
|
620
|
-
V.value.showTable = !V.value.showTable;
|
|
621
|
-
}
|
|
622
|
-
function Bn() {
|
|
623
|
-
V.value.showTooltip = !V.value.showTooltip;
|
|
624
|
-
}
|
|
625
|
-
let $ = x(!1);
|
|
626
|
-
function Vn() {
|
|
627
|
-
$.value = !$.value;
|
|
628
|
-
}
|
|
629
|
-
async function Hn({ scale: e = 2 } = {}) {
|
|
630
|
-
if (!A.value) return;
|
|
631
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
632
|
-
domElement: A.value,
|
|
633
|
-
base64: !0,
|
|
634
|
-
img: !0,
|
|
635
|
-
scale: e
|
|
636
|
-
});
|
|
637
|
-
return {
|
|
638
|
-
imageUri: i,
|
|
639
|
-
base64: a,
|
|
640
|
-
title: P.value.style.chart.title.text,
|
|
641
|
-
width: t,
|
|
642
|
-
height: n,
|
|
643
|
-
aspectRatio: r
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
let Un = u(() => {
|
|
647
|
-
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
648
|
-
return {
|
|
649
|
-
component: e ? At : Tt,
|
|
650
|
-
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
651
|
-
props: e ? {
|
|
652
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
653
|
-
color: P.value.table.th.color,
|
|
654
|
-
headerColor: P.value.table.th.color,
|
|
655
|
-
headerBg: P.value.table.th.backgroundColor,
|
|
656
|
-
isFullscreen: Q.value,
|
|
657
|
-
fullscreenParent: A.value,
|
|
658
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
659
|
-
isCursorPointer: F.value
|
|
660
|
-
} : {
|
|
661
|
-
hideDetails: !0,
|
|
662
|
-
config: {
|
|
663
|
-
open: t,
|
|
664
|
-
maxHeight: 1e4,
|
|
665
|
-
body: {
|
|
666
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
667
|
-
color: P.value.style.chart.color
|
|
668
|
-
},
|
|
669
|
-
head: {
|
|
670
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
671
|
-
color: P.value.style.chart.color
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
};
|
|
676
|
-
});
|
|
677
|
-
Ue(() => V.value.showTable, (e) => {
|
|
678
|
-
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
679
|
-
});
|
|
680
|
-
function Wn() {
|
|
681
|
-
V.value.showTable = !1, Gt.value && Gt.value.setTableIconState(!1);
|
|
682
|
-
}
|
|
683
|
-
let Gn = u(() => Y.value.map((e) => ({
|
|
684
|
-
...e,
|
|
685
|
-
name: e.display
|
|
686
|
-
}))), Kn = u(() => P.value.style.chart.backgroundColor), qn = u(() => P.value.style.chart.legend), { exportSvg: Jn, getSvg: Yn } = _e({
|
|
687
|
-
svg: L,
|
|
688
|
-
title: u(() => P.value.style.chart.title),
|
|
689
|
-
legend: qn,
|
|
690
|
-
legendItems: Gn,
|
|
691
|
-
backgroundColor: Kn
|
|
692
|
-
});
|
|
693
|
-
async function Xn({ isCb: e }) {
|
|
694
|
-
qt.value = !0, await Le();
|
|
695
|
-
try {
|
|
696
|
-
if (e) {
|
|
697
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Yn();
|
|
698
|
-
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
699
|
-
blob: e,
|
|
700
|
-
url: t,
|
|
701
|
-
text: n,
|
|
702
|
-
dataUrl: r
|
|
703
|
-
}));
|
|
704
|
-
} else await Promise.resolve(Jn());
|
|
705
|
-
} finally {
|
|
706
|
-
qt.value = !1;
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
function Zn(e) {
|
|
710
|
-
if (e?.stage === "start") {
|
|
711
|
-
Kt.value = !0;
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
if (e?.stage === "end") {
|
|
715
|
-
Kt.value = !1;
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
sn();
|
|
719
|
-
}
|
|
720
|
-
async function Qn() {
|
|
721
|
-
if (dn("copyAlt", {
|
|
722
|
-
config: P.value,
|
|
723
|
-
dataset: J.value
|
|
724
|
-
}), !P.value.userOptions.callbacks.altCopy) {
|
|
725
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
726
|
-
return;
|
|
727
|
-
}
|
|
728
|
-
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
729
|
-
config: P.value,
|
|
730
|
-
dataset: J.value
|
|
731
|
-
}));
|
|
732
|
-
}
|
|
733
|
-
function $n() {
|
|
734
|
-
M.value = null, Yt.value = !0;
|
|
735
|
-
}
|
|
736
|
-
function er() {
|
|
737
|
-
M.value = null, N.value = "pointer", k.value = !1, Z.value = null, Yt.value = !1;
|
|
738
|
-
}
|
|
739
|
-
function tr(e) {
|
|
740
|
-
if (!Number.isFinite(e) || !L.value) return;
|
|
741
|
-
let t = J.value[e];
|
|
742
|
-
if (!t) return;
|
|
743
|
-
let n = L.value.getBoundingClientRect();
|
|
744
|
-
Jt.value = {
|
|
745
|
-
x: n.left + t.labelX / H.value.width * n.width,
|
|
746
|
-
y: n.top + t.labelY / H.value.height * n.height
|
|
747
|
-
};
|
|
748
|
-
}
|
|
749
|
-
function nr(e) {
|
|
750
|
-
if (!L.value || $.value || document.activeElement !== L.value || !J.value.length) return;
|
|
751
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
752
|
-
if (!t && !n && !r && !i) return;
|
|
753
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
754
|
-
M.value = null, N.value = "pointer", k.value = !1, Z.value = null;
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
if (r) {
|
|
758
|
-
if (M.value === null) return;
|
|
759
|
-
let e = J.value[M.value];
|
|
760
|
-
if (!e) return;
|
|
761
|
-
Fn(e, M.value);
|
|
762
|
-
return;
|
|
763
|
-
}
|
|
764
|
-
let a = M.value;
|
|
765
|
-
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));
|
|
766
|
-
let o = J.value[a];
|
|
767
|
-
o && (M.value = a, tr(a), In(o, a, "keyboard"));
|
|
768
|
-
}
|
|
769
|
-
let rr = u(() => ({
|
|
770
|
-
headers: X.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
771
|
-
rows: X.value?.body ?? []
|
|
772
|
-
}));
|
|
773
|
-
return Se({
|
|
774
|
-
getData: hn,
|
|
775
|
-
getImage: Hn,
|
|
776
|
-
generatePdf: on,
|
|
777
|
-
generateCsv: Ln,
|
|
778
|
-
generateImage: sn,
|
|
779
|
-
generateSvg: Xn,
|
|
780
|
-
hideSeries: yn,
|
|
781
|
-
showSeries: vn,
|
|
782
|
-
toggleTable: zn,
|
|
783
|
-
toggleTooltip: Bn,
|
|
784
|
-
toggleAnnotator: Vn,
|
|
785
|
-
toggleFullscreen: Rn,
|
|
786
|
-
copyAlt: Qn
|
|
787
|
-
}), (e, t) => (b(), p("div", {
|
|
788
|
-
class: _(`vue-data-ui-component vue-ui-radar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
789
|
-
ref_key: "radarChart",
|
|
790
|
-
ref: A,
|
|
791
|
-
id: `vue-ui-radar_${O.value}`,
|
|
792
|
-
style: y(`font-family:${P.value.style.fontFamily};width:100%; ${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
793
|
-
onMouseenter: t[2] ||= () => T($t)(!0),
|
|
794
|
-
onMouseleave: t[3] ||= () => T($t)(!1)
|
|
795
|
-
}, [
|
|
796
|
-
m("div", {
|
|
797
|
-
id: `chart-instructions-${O.value}`,
|
|
798
|
-
class: "sr-only"
|
|
799
|
-
}, [m("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
|
|
800
|
-
rr.value?.rows?.length ? (b(), d(Ee, {
|
|
801
|
-
key: 0,
|
|
802
|
-
uid: O.value,
|
|
803
|
-
head: rr.value.headers,
|
|
804
|
-
body: rr.value.rows,
|
|
805
|
-
notice: P.value.a11y.translations.tableAvailable,
|
|
806
|
-
caption: P.value.a11y.translations.tableCaption
|
|
807
|
-
}, null, 8, [
|
|
808
|
-
"uid",
|
|
809
|
-
"head",
|
|
810
|
-
"body",
|
|
811
|
-
"notice",
|
|
812
|
-
"caption"
|
|
813
|
-
])) : f("", !0),
|
|
814
|
-
P.value.userOptions.buttons.annotator ? (b(), d(T(Dt), {
|
|
815
|
-
key: 1,
|
|
816
|
-
svgRef: T(L),
|
|
817
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
818
|
-
color: P.value.style.chart.color,
|
|
819
|
-
active: $.value,
|
|
820
|
-
isCursorPointer: F.value,
|
|
821
|
-
onClose: Vn
|
|
822
|
-
}, {
|
|
823
|
-
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
824
|
-
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
825
|
-
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
826
|
-
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
827
|
-
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
828
|
-
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
829
|
-
_: 3
|
|
830
|
-
}, 8, [
|
|
831
|
-
"svgRef",
|
|
832
|
-
"backgroundColor",
|
|
833
|
-
"color",
|
|
834
|
-
"active",
|
|
835
|
-
"isCursorPointer"
|
|
836
|
-
])) : f("", !0),
|
|
837
|
-
cn.value ? (b(), p("div", {
|
|
838
|
-
key: 2,
|
|
839
|
-
ref_key: "noTitle",
|
|
840
|
-
ref: Bt,
|
|
841
|
-
class: "vue-data-ui-no-title-space",
|
|
842
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
843
|
-
}, null, 512)) : f("", !0),
|
|
844
|
-
P.value.style.chart.title.text ? (b(), p("div", {
|
|
845
|
-
key: 3,
|
|
846
|
-
ref_key: "chartTitle",
|
|
847
|
-
ref: Lt,
|
|
848
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
849
|
-
}, [(b(), d(xe, {
|
|
850
|
-
key: `title_${Vt.value}`,
|
|
851
|
-
config: {
|
|
852
|
-
title: {
|
|
853
|
-
cy: "radar-div-title",
|
|
854
|
-
...P.value.style.chart.title
|
|
855
|
-
},
|
|
856
|
-
subtitle: {
|
|
857
|
-
cy: "radar-div-subtitle",
|
|
858
|
-
...P.value.style.chart.title.subtitle
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
862
|
-
m("div", { id: `legend-top-${O.value}` }, null, 8, qe),
|
|
863
|
-
P.value.userOptions.show && Pt.value && (T(en) || T(Qt)) ? (b(), d(T(Ot), {
|
|
864
|
-
ref_key: "userOptionsRef",
|
|
865
|
-
ref: Gt,
|
|
866
|
-
key: `user_options_${It.value}`,
|
|
867
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
868
|
-
color: P.value.style.chart.color,
|
|
869
|
-
isImaging: T(an),
|
|
870
|
-
isPrinting: T(rn),
|
|
871
|
-
uid: O.value,
|
|
872
|
-
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
873
|
-
hasPdf: P.value.userOptions.buttons.pdf,
|
|
874
|
-
hasImg: P.value.userOptions.buttons.img,
|
|
875
|
-
hasSvg: P.value.userOptions.buttons.svg,
|
|
876
|
-
hasXls: P.value.userOptions.buttons.csv,
|
|
877
|
-
hasTable: P.value.userOptions.buttons.table,
|
|
878
|
-
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
879
|
-
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
880
|
-
isFullscreen: Q.value,
|
|
881
|
-
isTooltip: V.value.showTooltip,
|
|
882
|
-
titles: { ...P.value.userOptions.buttonTitles },
|
|
883
|
-
chartElement: A.value,
|
|
884
|
-
position: P.value.userOptions.position,
|
|
885
|
-
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
886
|
-
isAnnotation: $.value,
|
|
887
|
-
callbacks: P.value.userOptions.callbacks,
|
|
888
|
-
printScale: P.value.userOptions.print.scale,
|
|
889
|
-
tableDialog: P.value.table.useDialog,
|
|
890
|
-
isCursorPointer: F.value,
|
|
891
|
-
onToggleFullscreen: Rn,
|
|
892
|
-
onGeneratePdf: T(on),
|
|
893
|
-
onGenerateCsv: Ln,
|
|
894
|
-
onGenerateImage: Zn,
|
|
895
|
-
onGenerateSvg: Xn,
|
|
896
|
-
onToggleTable: zn,
|
|
897
|
-
onToggleTooltip: Bn,
|
|
898
|
-
onToggleAnnotator: Vn,
|
|
899
|
-
onCopyAlt: Qn,
|
|
900
|
-
style: y({ visibility: T(en) ? T(Qt) ? "visible" : "hidden" : "visible" })
|
|
901
|
-
}, Ne({ _: 2 }, [
|
|
902
|
-
e.$slots.menuIcon ? {
|
|
903
|
-
name: "menuIcon",
|
|
904
|
-
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
905
|
-
isOpen: t,
|
|
906
|
-
color: n
|
|
907
|
-
})), void 0, !0)]),
|
|
908
|
-
key: "0"
|
|
909
|
-
} : void 0,
|
|
910
|
-
e.$slots.optionTooltip ? {
|
|
911
|
-
name: "optionTooltip",
|
|
912
|
-
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
913
|
-
key: "1"
|
|
914
|
-
} : void 0,
|
|
915
|
-
e.$slots.optionPdf ? {
|
|
916
|
-
name: "optionPdf",
|
|
917
|
-
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
918
|
-
key: "2"
|
|
919
|
-
} : void 0,
|
|
920
|
-
e.$slots.optionCsv ? {
|
|
921
|
-
name: "optionCsv",
|
|
922
|
-
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
923
|
-
key: "3"
|
|
924
|
-
} : void 0,
|
|
925
|
-
e.$slots.optionImg ? {
|
|
926
|
-
name: "optionImg",
|
|
927
|
-
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
928
|
-
key: "4"
|
|
929
|
-
} : void 0,
|
|
930
|
-
e.$slots.optionSvg ? {
|
|
931
|
-
name: "optionSvg",
|
|
932
|
-
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
933
|
-
key: "5"
|
|
934
|
-
} : void 0,
|
|
935
|
-
e.$slots.optionTable ? {
|
|
936
|
-
name: "optionTable",
|
|
937
|
-
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
938
|
-
key: "6"
|
|
939
|
-
} : void 0,
|
|
940
|
-
e.$slots.optionFullscreen ? {
|
|
941
|
-
name: "optionFullscreen",
|
|
942
|
-
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
|
|
943
|
-
toggleFullscreen: t,
|
|
944
|
-
isFullscreen: n
|
|
945
|
-
})), void 0, !0)]),
|
|
946
|
-
key: "7"
|
|
947
|
-
} : void 0,
|
|
948
|
-
e.$slots.optionAnnotator ? {
|
|
949
|
-
name: "optionAnnotator",
|
|
950
|
-
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
|
|
951
|
-
toggleAnnotator: t,
|
|
952
|
-
isAnnotator: n
|
|
953
|
-
})), void 0, !0)]),
|
|
954
|
-
key: "8"
|
|
955
|
-
} : void 0,
|
|
956
|
-
e.$slots.optionAltCopy ? {
|
|
957
|
-
name: "optionAltCopy",
|
|
958
|
-
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
959
|
-
key: "9"
|
|
960
|
-
} : void 0,
|
|
961
|
-
e.$slots["custom-menu-before"] ? {
|
|
962
|
-
name: "custom-menu-before",
|
|
963
|
-
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
964
|
-
key: "10"
|
|
965
|
-
} : void 0,
|
|
966
|
-
e.$slots["custom-menu-after"] ? {
|
|
967
|
-
name: "custom-menu-after",
|
|
968
|
-
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
969
|
-
key: "11"
|
|
970
|
-
} : void 0
|
|
971
|
-
]), 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),
|
|
972
|
-
m("div", Je, [(b(), p("svg", {
|
|
973
|
-
ref_key: "svgRef",
|
|
974
|
-
ref: L,
|
|
975
|
-
xmlns: T(ce),
|
|
976
|
-
"aria-describedby": `chart-instructions-${O.value}`,
|
|
977
|
-
class: _({
|
|
978
|
-
"vue-data-ui-fullscreen--on": Q.value,
|
|
979
|
-
"vue-data-ui-fulscreen--off": !Q.value
|
|
980
|
-
}),
|
|
981
|
-
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
982
|
-
style: y(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
|
|
983
|
-
tabindex: "0",
|
|
984
|
-
onFocus: $n,
|
|
985
|
-
onBlur: er,
|
|
986
|
-
onKeydown: nr
|
|
987
|
-
}, [
|
|
988
|
-
Fe(T(kt)),
|
|
989
|
-
e.$slots["chart-background"] ? (b(), p("foreignObject", {
|
|
990
|
-
key: 0,
|
|
991
|
-
x: 0,
|
|
992
|
-
y: 0,
|
|
993
|
-
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
994
|
-
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
995
|
-
style: { pointerEvents: "none" }
|
|
996
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : f("", !0),
|
|
997
|
-
m("defs", null, [(b(!0), p(l, null, S(K.value, (e, t) => (b(), p("radialGradient", {
|
|
998
|
-
cx: "50%",
|
|
999
|
-
cy: "50%",
|
|
1000
|
-
r: "50%",
|
|
1001
|
-
fx: "50%",
|
|
1002
|
-
fy: "50%",
|
|
1003
|
-
id: `radar_gradient_${O.value}_${t}`
|
|
1004
|
-
}, [m("stop", {
|
|
1005
|
-
offset: "0%",
|
|
1006
|
-
"stop-color": T(te)(T(r)(e.color, .05), P.value.style.chart.layout.dataPolygon.opacity)
|
|
1007
|
-
}, null, 8, Qe), m("stop", {
|
|
1008
|
-
offset: "100%",
|
|
1009
|
-
"stop-color": T(te)(e.color, P.value.style.chart.layout.dataPolygon.opacity)
|
|
1010
|
-
}, null, 8, $e)], 8, Ze))), 256))]),
|
|
1011
|
-
P.value.style.chart.layout.grid.show ? (b(), p("g", et, [(b(!0), p(l, null, S(J.value, (e) => (b(), p("line", {
|
|
1012
|
-
x1: H.value.width / 2,
|
|
1013
|
-
y1: H.value.height / 2,
|
|
1014
|
-
x2: e.x,
|
|
1015
|
-
y2: e.y,
|
|
1016
|
-
stroke: P.value.style.chart.layout.grid.stroke,
|
|
1017
|
-
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1018
|
-
}, null, 8, tt))), 256)), P.value.style.chart.layout.grid.graduations > 0 ? (b(), p("g", nt, [(b(!0), p(l, null, S(En.value, (e) => (b(), p("path", {
|
|
1019
|
-
d: T(n)({
|
|
1020
|
-
plot: {
|
|
1021
|
-
x: H.value.width / 2,
|
|
1022
|
-
y: H.value.height / 2
|
|
1023
|
-
},
|
|
1024
|
-
radius: e,
|
|
1025
|
-
sides: Cn.value,
|
|
1026
|
-
rotation: 0
|
|
1027
|
-
}).path,
|
|
1028
|
-
fill: "none",
|
|
1029
|
-
stroke: P.value.style.chart.layout.grid.stroke,
|
|
1030
|
-
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1031
|
-
}, null, 8, rt))), 256))])) : f("", !0)])) : f("", !0),
|
|
1032
|
-
m("path", {
|
|
1033
|
-
d: Tn.value.path,
|
|
1034
|
-
fill: "none",
|
|
1035
|
-
stroke: P.value.style.chart.layout.outerPolygon.stroke,
|
|
1036
|
-
"stroke-width": P.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
1037
|
-
"stroke-linejoin": "round",
|
|
1038
|
-
"stroke-linecap": "round"
|
|
1039
|
-
}, null, 8, it),
|
|
1040
|
-
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", {
|
|
1041
|
-
class: "vue-ui-radar-apex-label",
|
|
1042
|
-
x: e.labelX,
|
|
1043
|
-
y: e.labelY,
|
|
1044
|
-
"text-anchor": e.labelAnchor,
|
|
1045
|
-
"font-size": P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1046
|
-
fill: P.value.style.chart.layout.labels.dataLabels.color,
|
|
1047
|
-
onMouseenter: (n) => In(e, t, "pointer"),
|
|
1048
|
-
onMouseleave: (n) => Pn(e, t),
|
|
1049
|
-
onClick: (n) => Fn(e, t)
|
|
1050
|
-
}, w(e.name), 41, ot))), 256))])) : f("", !0),
|
|
1051
|
-
(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", {
|
|
1052
|
-
key: 0,
|
|
1053
|
-
points: T(ue)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1054
|
-
stroke: P.value.style.chart.backgroundColor,
|
|
1055
|
-
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1056
|
-
fill: "none",
|
|
1057
|
-
class: _({
|
|
1058
|
-
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1059
|
-
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1060
|
-
})
|
|
1061
|
-
}, null, 10, st)) : f("", !0), P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(t) ? (b(), p("polygon", {
|
|
1062
|
-
key: 1,
|
|
1063
|
-
points: T(ue)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1064
|
-
stroke: e.color,
|
|
1065
|
-
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1066
|
-
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),
|
|
1067
|
-
class: _({
|
|
1068
|
-
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1069
|
-
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1070
|
-
})
|
|
1071
|
-
}, null, 10, ct)) : f("", !0)])]))), 256)),
|
|
1072
|
-
P.value.style.chart.layout.targetReference.show ? (b(), p("path", {
|
|
1073
|
-
key: 3,
|
|
1074
|
-
class: "vue-ui-radar-target-polygon",
|
|
1075
|
-
d: `M${T(ue)(Sn.value, !1, !0)}Z`,
|
|
1076
|
-
fill: "none",
|
|
1077
|
-
stroke: P.value.style.chart.layout.targetReference.stroke,
|
|
1078
|
-
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth,
|
|
1079
|
-
"stroke-linejoin": "round",
|
|
1080
|
-
"stroke-linecap": "round",
|
|
1081
|
-
"stroke-dasharray": P.value.style.chart.layout.targetReference.strokeDasharray
|
|
1082
|
-
}, null, 8, lt)) : f("", !0),
|
|
1083
|
-
P.value.style.chart.layout.plots.show ? (b(), p("g", ut, [(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", {
|
|
1084
|
-
cx: e.x,
|
|
1085
|
-
cy: e.y,
|
|
1086
|
-
fill: U.value.includes(n) ? "transparent" : K.value[n] ? K.value[n].color : "transparent",
|
|
1087
|
-
r: Z.value !== null && Z.value === t ? P.value.style.chart.layout.plots.radius * 1.6 : P.value.style.chart.layout.plots.radius,
|
|
1088
|
-
stroke: U.value.includes(n) ? "transparent" : P.value.style.chart.backgroundColor,
|
|
1089
|
-
"stroke-width": .5,
|
|
1090
|
-
class: _({
|
|
1091
|
-
"animated-out": U.value.includes(n) && P.value.useCssAnimation,
|
|
1092
|
-
"animated-in": G.value && W.value === n && P.value.useCssAnimation
|
|
1093
|
-
})
|
|
1094
|
-
}, null, 10, dt))), 256))]))), 256))])) : f("", !0),
|
|
1095
|
-
C(e.$slots, "svg", { svg: {
|
|
1096
|
-
...H.value,
|
|
1097
|
-
outerPolygon: Tn.value,
|
|
1098
|
-
isPrintingImg: T(rn) || T(an) || Kt.value,
|
|
1099
|
-
isPrintingSvg: qt.value
|
|
1100
|
-
} }, void 0, !0)
|
|
1101
|
-
], 46, Ye)), e.$slots.hint ? (b(), p("div", ft, [C(e.$slots, "hint", v(g({
|
|
1102
|
-
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1103
|
-
isVisible: Yt.value
|
|
1104
|
-
})), void 0, !0)])) : f("", !0)]),
|
|
1105
|
-
e.$slots.watermark ? (b(), p("div", pt, [C(e.$slots, "watermark", v(g({ isPrinting: T(rn) || T(an) || Kt.value || qt.value })), void 0, !0)])) : f("", !0),
|
|
1106
|
-
m("div", { id: `legend-bottom-${O.value}` }, null, 8, mt),
|
|
1107
|
-
Wt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(Me, {
|
|
1108
|
-
key: 6,
|
|
1109
|
-
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1110
|
-
}, [m("div", {
|
|
1111
|
-
ref_key: "chartLegend",
|
|
1112
|
-
ref: Rt
|
|
1113
|
-
}, [C(e.$slots, "legend", { legend: Y.value }, () => [P.value.style.chart.legend.show ? (b(), d(ke, {
|
|
1114
|
-
key: `legend_${Ut.value}`,
|
|
1115
|
-
legendSet: Y.value,
|
|
1116
|
-
config: jn.value,
|
|
1117
|
-
isCursorPointer: F.value,
|
|
1118
|
-
onClickMarker: t[0] ||= ({ i: e }) => mn(e)
|
|
1119
|
-
}, Ne({
|
|
1120
|
-
item: E(({ legend: e, index: t }) => [T(Zt) ? f("", !0) : (b(), p("div", {
|
|
1121
|
-
key: 0,
|
|
1122
|
-
onClick: (t) => e.segregate(),
|
|
1123
|
-
style: y(`opacity:${U.value.includes(t) ? .5 : 1}`)
|
|
1124
|
-
}, w(e.display), 13, ht))]),
|
|
1125
|
-
legendToggle: E(() => [Y.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(Zt) ? (b(), d(Te, {
|
|
1126
|
-
key: 0,
|
|
1127
|
-
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1128
|
-
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1129
|
-
fontSize: P.value.style.chart.legend.fontSize,
|
|
1130
|
-
checked: U.value.length > 0,
|
|
1131
|
-
isCursorPointer: F.value,
|
|
1132
|
-
onToggle: fn
|
|
1133
|
-
}, null, 8, [
|
|
1134
|
-
"backgroundColor",
|
|
1135
|
-
"color",
|
|
1136
|
-
"fontSize",
|
|
1137
|
-
"checked",
|
|
1138
|
-
"isCursorPointer"
|
|
1139
|
-
])) : f("", !0)]),
|
|
1140
|
-
_: 2
|
|
1141
|
-
}, [P.value.style.chart.layout.targetReference.show && P.value.style.chart.layout.targetReference.showInLegend ? {
|
|
1142
|
-
name: "after",
|
|
1143
|
-
fn: E(() => [m("div", gt, [m("div", { style: y({
|
|
1144
|
-
display: "flex",
|
|
1145
|
-
height: P.value.style.chart.legend.fontSize
|
|
1146
|
-
}) }, [(b(), p("svg", {
|
|
1147
|
-
style: y({ width: P.value.style.chart.legend.fontSize * 2 }),
|
|
1148
|
-
viewBox: "0 0 16 8"
|
|
1149
|
-
}, [m("line", {
|
|
1150
|
-
x1: "0",
|
|
1151
|
-
x2: "16",
|
|
1152
|
-
y1: "4",
|
|
1153
|
-
y2: "4",
|
|
1154
|
-
stroke: P.value.style.chart.layout.targetReference.stroke,
|
|
1155
|
-
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth * .7,
|
|
1156
|
-
"stroke-dasharray": P.value.style.chart.layout.targetReference.strokeDasharray * .7,
|
|
1157
|
-
"stroke-linecap": "round"
|
|
1158
|
-
}, null, 8, _t)], 4))], 4), m("span", null, w(P.value.style.chart.layout.targetReference.legendLabel), 1)])]),
|
|
1159
|
-
key: "0"
|
|
1160
|
-
} : void 0]), 1032, [
|
|
1161
|
-
"legendSet",
|
|
1162
|
-
"config",
|
|
1163
|
-
"isCursorPointer"
|
|
1164
|
-
])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
1165
|
-
e.$slots.source ? (b(), p("div", {
|
|
1166
|
-
key: 7,
|
|
1167
|
-
ref_key: "source",
|
|
1168
|
-
ref: zt,
|
|
1169
|
-
dir: "auto"
|
|
1170
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1171
|
-
Fe(T(St), {
|
|
1172
|
-
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
1173
|
-
show: V.value.showTooltip && k.value,
|
|
1174
|
-
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
1175
|
-
color: P.value.style.chart.tooltip.color,
|
|
1176
|
-
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
1177
|
-
borderColor: P.value.style.chart.tooltip.borderColor,
|
|
1178
|
-
borderWidth: P.value.style.chart.tooltip.borderWidth,
|
|
1179
|
-
backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
|
|
1180
|
-
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
1181
|
-
position: P.value.style.chart.tooltip.position,
|
|
1182
|
-
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
1183
|
-
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
1184
|
-
parent: A.value,
|
|
1185
|
-
content: Ft.value,
|
|
1186
|
-
isFullscreen: Q.value,
|
|
1187
|
-
isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
|
|
1188
|
-
smooth: P.value.style.chart.tooltip.smooth,
|
|
1189
|
-
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
1190
|
-
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
1191
|
-
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1192
|
-
isA11yMode: N.value === "keyboard",
|
|
1193
|
-
a11yPosition: Jt.value
|
|
1194
|
-
}, {
|
|
1195
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...Nn.value })), void 0, !0)]),
|
|
1196
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...Nn.value })), void 0, !0)]),
|
|
1197
|
-
"tooltip-after": E(() => [!["function"].includes(typeof P.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (b(), p("div", vt, [Fe(T(wt), {
|
|
1198
|
-
dataset: Mn.value,
|
|
1199
|
-
config: un.value,
|
|
1200
|
-
backgroundOpacity: 0
|
|
1201
|
-
}, {
|
|
1202
|
-
"data-label": E(({ bar: e }) => [m("div", yt, [m("span", bt, 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", xt, w(e.suffix), 1)) : f("", !0)])]),
|
|
1203
|
-
_: 1
|
|
1204
|
-
}, 8, ["dataset", "config"])])) : f("", !0), C(e.$slots, "tooltip-after", v(g({ ...Nn.value })), void 0, !0)]),
|
|
1205
|
-
_: 3
|
|
1206
|
-
}, 8, [
|
|
1207
|
-
"teleportTo",
|
|
1208
|
-
"show",
|
|
1209
|
-
"backgroundColor",
|
|
1210
|
-
"color",
|
|
1211
|
-
"borderRadius",
|
|
1212
|
-
"borderColor",
|
|
1213
|
-
"borderWidth",
|
|
1214
|
-
"backgroundOpacity",
|
|
1215
|
-
"fontSize",
|
|
1216
|
-
"position",
|
|
1217
|
-
"offsetX",
|
|
1218
|
-
"offsetY",
|
|
1219
|
-
"parent",
|
|
1220
|
-
"content",
|
|
1221
|
-
"isFullscreen",
|
|
1222
|
-
"isCustom",
|
|
1223
|
-
"smooth",
|
|
1224
|
-
"backdropFilter",
|
|
1225
|
-
"smoothForce",
|
|
1226
|
-
"smoothSnapThreshold",
|
|
1227
|
-
"isA11yMode",
|
|
1228
|
-
"a11yPosition"
|
|
1229
|
-
]),
|
|
1230
|
-
Pt.value && P.value.userOptions.buttons.table ? (b(), d(Be(Un.value.component), Ie({ key: 8 }, Un.value.props, {
|
|
1231
|
-
ref_key: "tableUnit",
|
|
1232
|
-
ref: j,
|
|
1233
|
-
onClose: Wn
|
|
1234
|
-
}), Ne({
|
|
1235
|
-
content: E(() => [(b(), d(T(Et), {
|
|
1236
|
-
key: `table_${Ht.value}`,
|
|
1237
|
-
colNames: X.value.colNames,
|
|
1238
|
-
head: X.value.head,
|
|
1239
|
-
body: X.value.body,
|
|
1240
|
-
config: X.value.config,
|
|
1241
|
-
title: P.value.table.useDialog ? "" : Un.value.title,
|
|
1242
|
-
withCloseButton: !P.value.table.useDialog,
|
|
1243
|
-
isCursorPointer: F.value,
|
|
1244
|
-
onClose: Wn
|
|
1245
|
-
}, {
|
|
1246
|
-
th: E(({ th: e }) => [Pe(w(e.name), 1)]),
|
|
1247
|
-
td: E(({ td: e }) => [Pe(w(e), 1)]),
|
|
1248
|
-
_: 1
|
|
1249
|
-
}, 8, [
|
|
1250
|
-
"colNames",
|
|
1251
|
-
"head",
|
|
1252
|
-
"body",
|
|
1253
|
-
"config",
|
|
1254
|
-
"title",
|
|
1255
|
-
"withCloseButton",
|
|
1256
|
-
"isCursorPointer"
|
|
1257
|
-
]))]),
|
|
1258
|
-
_: 2
|
|
1259
|
-
}, [P.value.table.useDialog ? {
|
|
1260
|
-
name: "title",
|
|
1261
|
-
fn: E(() => [Pe(w(Un.value.title), 1)]),
|
|
1262
|
-
key: "0"
|
|
1263
|
-
} : void 0, P.value.table.useDialog ? {
|
|
1264
|
-
name: "actions",
|
|
1265
|
-
fn: E(() => [m("button", {
|
|
1266
|
-
tabindex: "0",
|
|
1267
|
-
class: "vue-ui-user-options-button",
|
|
1268
|
-
onClick: t[1] ||= (e) => Ln(P.value.userOptions.callbacks.csv),
|
|
1269
|
-
style: y({ cursor: F.value ? "pointer" : "default" })
|
|
1270
|
-
}, [Fe(T(Ct), {
|
|
1271
|
-
name: "fileCsv",
|
|
1272
|
-
stroke: Un.value.props.color
|
|
1273
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1274
|
-
key: "1"
|
|
1275
|
-
} : void 0]), 1040)) : f("", !0),
|
|
1276
|
-
C(e.$slots, "skeleton", {}, () => [T(Zt) ? (b(), d(ge, { key: 0 })) : f("", !0)], !0)
|
|
1277
|
-
], 46, Ge));
|
|
1278
|
-
}
|
|
1279
|
-
}, [["__scopeId", "data-v-be7bab86"]]);
|
|
1280
|
-
//#endregion
|
|
1281
|
-
export { We as n, St as t };
|