vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, A as n, G as r, J as i, Kt as a, Mt as o, Ot as s, Rt as c, S as ee, T as te, Wt as ne, Z as re, b as ie, dt as ae, i as oe, kt as se, ot as ce, t as le, v as ue, yt as de, zt as fe } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as pe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as me } from "./usePrinter-
|
|
4
|
+
import { t as me } from "./usePrinter-CqqHmnBI.js";
|
|
5
5
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-
|
|
7
|
+
import { t as ve } from "./useNestedProp-DIuuzG1r.js";
|
|
8
8
|
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as be } from "./img-
|
|
10
|
-
import { n as xe } from "./Title-
|
|
9
|
+
import { t as be } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as xe } from "./Title-CcNiYzEo.js";
|
|
11
11
|
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as Ce } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as we } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as Te } from "./
|
|
15
|
-
import { t as Ee } from "./
|
|
16
|
-
import { t as De } from "./
|
|
17
|
-
import { t as Oe } from "./
|
|
18
|
-
import { t as ke } from "./
|
|
19
|
-
import { t as Ae } from "./
|
|
20
|
-
import { t as je } from "./
|
|
21
|
-
import {
|
|
14
|
+
import { t as Te } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as Ee } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
16
|
+
import { t as De } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Ae } from "./Legend-ROt6ugzW.js";
|
|
20
|
+
import { t as je } from "./useAutoSizeLabelsInsideViewbox-BGnDfZdg.js";
|
|
21
|
+
import { t as Me } from "./vue_ui_radar-jafTED5j.js";
|
|
22
|
+
import { Fragment as l, Teleport as Ne, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Le, nextTick as Re, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as ze, onMounted as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as We, withCtx as E } from "vue";
|
|
22
23
|
//#region src/components/vue-ui-radar.vue
|
|
23
|
-
var
|
|
24
|
+
var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
|
|
24
25
|
"xmlns",
|
|
25
26
|
"aria-describedby",
|
|
26
27
|
"viewBox"
|
|
27
|
-
],
|
|
28
|
+
], Ze = ["width", "height"], Qe = { key: 1 }, $e = [
|
|
28
29
|
"x1",
|
|
29
30
|
"y1",
|
|
30
31
|
"x2",
|
|
31
32
|
"y2",
|
|
32
33
|
"stroke",
|
|
33
34
|
"stroke-width"
|
|
34
|
-
],
|
|
35
|
+
], et = { key: 0 }, tt = [
|
|
35
36
|
"d",
|
|
36
37
|
"stroke",
|
|
37
38
|
"stroke-width"
|
|
38
|
-
],
|
|
39
|
+
], nt = [
|
|
39
40
|
"d",
|
|
40
41
|
"stroke",
|
|
41
42
|
"stroke-width"
|
|
42
|
-
],
|
|
43
|
+
], rt = { key: 2 }, it = [
|
|
43
44
|
"x",
|
|
44
45
|
"y",
|
|
45
46
|
"text-anchor",
|
|
@@ -48,27 +49,27 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
48
49
|
"onMouseenter",
|
|
49
50
|
"onMouseleave",
|
|
50
51
|
"onClick"
|
|
51
|
-
],
|
|
52
|
+
], at = [
|
|
52
53
|
"points",
|
|
53
54
|
"stroke",
|
|
54
55
|
"stroke-width"
|
|
55
|
-
],
|
|
56
|
+
], ot = [
|
|
56
57
|
"points",
|
|
57
58
|
"stroke",
|
|
58
59
|
"stroke-width",
|
|
59
60
|
"fill"
|
|
60
|
-
],
|
|
61
|
+
], st = [
|
|
61
62
|
"d",
|
|
62
63
|
"stroke",
|
|
63
64
|
"stroke-width",
|
|
64
65
|
"stroke-dasharray"
|
|
65
|
-
],
|
|
66
|
+
], ct = { key: 4 }, lt = [
|
|
66
67
|
"cx",
|
|
67
68
|
"cy",
|
|
68
69
|
"fill",
|
|
69
70
|
"r",
|
|
70
71
|
"stroke"
|
|
71
|
-
],
|
|
72
|
+
], ut = {
|
|
72
73
|
key: 0,
|
|
73
74
|
style: {
|
|
74
75
|
position: "absolute",
|
|
@@ -78,23 +79,23 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
78
79
|
},
|
|
79
80
|
"data-dom-to-png-ignore": "",
|
|
80
81
|
"aria-hidden": "true"
|
|
81
|
-
},
|
|
82
|
+
}, dt = {
|
|
82
83
|
key: 5,
|
|
83
84
|
class: "vue-data-ui-watermark"
|
|
84
|
-
},
|
|
85
|
+
}, ft = ["id"], pt = ["onClick"], mt = { class: "vue-data-ui-legend-item" }, ht = [
|
|
85
86
|
"stroke",
|
|
86
87
|
"stroke-width",
|
|
87
88
|
"stroke-dasharray"
|
|
88
|
-
],
|
|
89
|
+
], gt = {
|
|
89
90
|
key: 0,
|
|
90
91
|
style: {
|
|
91
92
|
"max-width": "200px",
|
|
92
93
|
margin: "0 auto"
|
|
93
94
|
}
|
|
94
|
-
},
|
|
95
|
+
}, _t = {
|
|
95
96
|
class: "vue-ui-radar-tooltip-datalabel",
|
|
96
97
|
style: { width: "100%" }
|
|
97
|
-
},
|
|
98
|
+
}, vt = { class: "vue-ui-radar-tooltip-datalabel-name" }, yt = { key: 0 }, bt = /*#__PURE__*/ Se({
|
|
98
99
|
__name: "vue-ui-radar",
|
|
99
100
|
props: {
|
|
100
101
|
config: {
|
|
@@ -111,11 +112,11 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
111
112
|
}
|
|
112
113
|
},
|
|
113
114
|
emits: ["selectLegend", "copyAlt"],
|
|
114
|
-
setup(e, { expose: Se, emit:
|
|
115
|
-
let
|
|
115
|
+
setup(e, { expose: Se, emit: Ge }) {
|
|
116
|
+
let bt = h(() => import("./Tooltip-CxOrWlFy.js")), xt = h(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), St = h(() => import("./vue-ui-sparkbar-DhIo1qsW.js").then((e) => e.n)), Ct = h(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), wt = h(() => import("./DataTable-BxpTMgfK.js")), Tt = h(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Et = h(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Dt = h(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Ot = h(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_radar: kt } = pe(), { isThemeValid: At, warnInvalidTheme: jt } = ye(), D = e, Mt = u(() => !!D.dataset && Object.keys(D.dataset).length), O = x(r()), k = x(!1), Nt = x(""), Pt = x(0), A = x(null), Ft = x(null), It = x(null), Lt = x(null), Rt = x(null), zt = x(0), Bt = x(0), Vt = x(0), Ht = x(!1), j = x(null), Ut = x(null), Wt = x(!1), Gt = x(!1), M = x(null), Kt = x({
|
|
116
117
|
x: 0,
|
|
117
118
|
y: 0
|
|
118
|
-
}), N = x("pointer"),
|
|
119
|
+
}), N = x("pointer"), qt = x(!1), P = x($t()), F = u(() => P.value.userOptions.useCursorPointer), Jt = u(() => a({
|
|
119
120
|
defaultConfig: {
|
|
120
121
|
userOptions: { show: !1 },
|
|
121
122
|
table: { show: !1 },
|
|
@@ -131,13 +132,13 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
131
132
|
} }
|
|
132
133
|
},
|
|
133
134
|
userConfig: P.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading:
|
|
135
|
-
...
|
|
135
|
+
})), { loading: Yt, FINAL_DATASET: I } = he({
|
|
136
|
+
...Ue(D),
|
|
136
137
|
FINAL_CONFIG: P,
|
|
137
|
-
prepareConfig:
|
|
138
|
+
prepareConfig: $t,
|
|
138
139
|
callback: () => {
|
|
139
140
|
Promise.resolve().then(async () => {
|
|
140
|
-
await
|
|
141
|
+
await Re(), V.value.showTable = P.value.table.show;
|
|
141
142
|
});
|
|
142
143
|
},
|
|
143
144
|
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
@@ -178,20 +179,20 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
178
179
|
}
|
|
179
180
|
]
|
|
180
181
|
},
|
|
181
|
-
skeletonConfig:
|
|
182
|
+
skeletonConfig: a({
|
|
182
183
|
defaultConfig: P.value,
|
|
183
|
-
userConfig:
|
|
184
|
+
userConfig: Jt.value
|
|
184
185
|
})
|
|
185
|
-
}), { userOptionsVisible:
|
|
186
|
-
function
|
|
186
|
+
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Oe({ config: P.value }), { svgRef: L } = ke({ config: P.value.style.chart.title });
|
|
187
|
+
function $t() {
|
|
187
188
|
let e = ve({
|
|
188
189
|
userConfig: D.config,
|
|
189
|
-
defaultConfig:
|
|
190
|
+
defaultConfig: kt
|
|
190
191
|
}), t = e.theme;
|
|
191
192
|
if (!t) return e;
|
|
192
|
-
if (!
|
|
193
|
+
if (!At.value(e)) return jt(e), e;
|
|
193
194
|
let n = ve({
|
|
194
|
-
userConfig:
|
|
195
|
+
userConfig: Me[t] || D.config,
|
|
195
196
|
defaultConfig: e
|
|
196
197
|
}), r = ve({
|
|
197
198
|
userConfig: D.config,
|
|
@@ -199,15 +200,15 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
199
200
|
});
|
|
200
201
|
return {
|
|
201
202
|
...r,
|
|
202
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
203
|
+
customPalette: r.customPalette.length ? r.customPalette : ne[t] || o
|
|
203
204
|
};
|
|
204
205
|
}
|
|
205
|
-
|
|
206
|
-
P.value =
|
|
206
|
+
We(() => D.config, (e) => {
|
|
207
|
+
P.value = $t(), Xt.value = !P.value.userOptions.showOnChartHover, en(), zt.value += 1, Bt.value += 1, Vt.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
208
|
}, { deep: !0 });
|
|
208
|
-
let R =
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
209
|
+
let R = He(null), z = He(null), B = u(() => P.value.debug);
|
|
210
|
+
function en() {
|
|
211
|
+
if (se(D.dataset) && t({
|
|
211
212
|
componentName: "VueUiRadar",
|
|
212
213
|
type: "dataset",
|
|
213
214
|
debug: B.value
|
|
@@ -215,33 +216,33 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
215
216
|
let e = Ce(() => {
|
|
216
217
|
let { width: e, height: t } = we({
|
|
217
218
|
chart: A.value,
|
|
218
|
-
title: P.value.style.chart.title.text ?
|
|
219
|
-
legend: P.value.style.chart.legend.show ?
|
|
220
|
-
source:
|
|
221
|
-
noTitle:
|
|
219
|
+
title: P.value.style.chart.title.text ? Ft.value : null,
|
|
220
|
+
legend: P.value.style.chart.legend.show ? It.value : null,
|
|
221
|
+
source: Lt.value,
|
|
222
|
+
noTitle: Rt.value
|
|
222
223
|
});
|
|
223
224
|
requestAnimationFrame(() => {
|
|
224
|
-
H.value.width = e, H.value.height = t,
|
|
225
|
+
H.value.width = e, H.value.height = t, Dn();
|
|
225
226
|
});
|
|
226
227
|
});
|
|
227
228
|
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
|
}
|
|
229
|
-
|
|
230
|
+
Dn();
|
|
230
231
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}),
|
|
232
|
+
Be(() => {
|
|
233
|
+
Ht.value = !0, en();
|
|
234
|
+
}), ze(() => {
|
|
234
235
|
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
235
236
|
});
|
|
236
|
-
let { isPrinting:
|
|
237
|
+
let { isPrinting: tn, isImaging: nn, generatePdf: rn, generateImage: an } = me({
|
|
237
238
|
elementId: `vue-ui-radar_${O.value}`,
|
|
238
239
|
fileName: P.value.style.chart.title.text || "vue-ui-radar",
|
|
239
240
|
options: P.value.userOptions.print
|
|
240
|
-
}),
|
|
241
|
+
}), on = u(() => P.value.userOptions.show && !P.value.style.chart.title.text), sn = u(() => ee(P.value.customPalette)), V = x({
|
|
241
242
|
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
242
243
|
showTable: P.value.table.show,
|
|
243
244
|
showTooltip: P.value.style.chart.tooltip.show
|
|
244
|
-
}),
|
|
245
|
+
}), cn = u(() => ({ style: {
|
|
245
246
|
backgroundColor: "#FFFFFF00",
|
|
246
247
|
animation: {
|
|
247
248
|
show: P.value.style.chart.tooltip.animation.show,
|
|
@@ -258,41 +259,41 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
258
259
|
} })), H = x({
|
|
259
260
|
height: 312,
|
|
260
261
|
width: 512
|
|
261
|
-
}),
|
|
262
|
-
function
|
|
262
|
+
}), ln = Ge, U = x([]), W = x(null), G = x(!1);
|
|
263
|
+
function un() {
|
|
263
264
|
U.value.length ? U.value = [] : Y.value.forEach((e, t) => {
|
|
264
265
|
U.value.push(t);
|
|
265
|
-
}),
|
|
266
|
+
}), dn();
|
|
266
267
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
268
|
+
function dn() {
|
|
269
|
+
ln("selectLegend", Y.value.filter((e, t) => !U.value.includes(t)).map((e) => ({
|
|
269
270
|
name: e.name,
|
|
270
271
|
color: e.color,
|
|
271
272
|
proportion: e.totalProportion
|
|
272
273
|
})));
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
+
function fn(e) {
|
|
275
276
|
G.value = !0, U.value.includes(e) ? (W.value = e, U.value = U.value.filter((t) => t !== e), setTimeout(() => {
|
|
276
277
|
G.value = !1, W.value = null;
|
|
277
278
|
}, 500)) : (U.value.push(e), setTimeout(() => {
|
|
278
279
|
G.value = !1;
|
|
279
|
-
}, 500)),
|
|
280
|
+
}, 500)), dn();
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function pn() {
|
|
282
283
|
return Y.value.map((e) => ({
|
|
283
284
|
name: e.name,
|
|
284
285
|
color: e.color,
|
|
285
286
|
proportion: e.totalProportion
|
|
286
287
|
}));
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function mn() {
|
|
289
290
|
let e = I.value;
|
|
290
291
|
if ([null, void 0].includes(e?.categories)) {
|
|
291
|
-
|
|
292
|
+
t({
|
|
292
293
|
componentName: "VueUiRadar",
|
|
293
294
|
type: "dataset",
|
|
294
295
|
debug: B.value
|
|
295
|
-
}),
|
|
296
|
+
}), t({
|
|
296
297
|
componentName: "VueUiRadar",
|
|
297
298
|
type: "datasetAttribute",
|
|
298
299
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
@@ -300,31 +301,31 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
300
301
|
});
|
|
301
302
|
return;
|
|
302
303
|
}
|
|
303
|
-
e.categories.length === 0 ?
|
|
304
|
+
e.categories.length === 0 ? t({
|
|
304
305
|
componentName: "VueUiRadar",
|
|
305
306
|
type: "datasetAttributeEmpty",
|
|
306
307
|
property: "categories",
|
|
307
308
|
debug: B.value
|
|
308
|
-
}) : e.categories.forEach((e,
|
|
309
|
-
|
|
309
|
+
}) : e.categories.forEach((e, n) => {
|
|
310
|
+
ae({
|
|
310
311
|
datasetObject: e,
|
|
311
312
|
requiredAttributes: ["name"]
|
|
312
313
|
}).forEach((e) => {
|
|
313
|
-
|
|
314
|
+
t({
|
|
314
315
|
componentName: "VueUiRadar",
|
|
315
316
|
type: "datasetAttribute",
|
|
316
|
-
property: `category.${e} at index ${
|
|
317
|
-
index:
|
|
317
|
+
property: `category.${e} at index ${n}`,
|
|
318
|
+
index: n,
|
|
318
319
|
debug: B.value
|
|
319
320
|
});
|
|
320
321
|
});
|
|
321
|
-
}), [null, void 0].includes(e?.series) ?
|
|
322
|
+
}), [null, void 0].includes(e?.series) ? t({
|
|
322
323
|
componentName: "VueUiRadar",
|
|
323
324
|
type: "datasetAttribute",
|
|
324
325
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
325
326
|
debug: B.value
|
|
326
|
-
}) : e.series.forEach((e,
|
|
327
|
-
|
|
327
|
+
}) : e.series.forEach((e, n) => {
|
|
328
|
+
ae({
|
|
328
329
|
datasetObject: e,
|
|
329
330
|
requiredAttributes: [
|
|
330
331
|
"name",
|
|
@@ -332,80 +333,80 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
332
333
|
"target"
|
|
333
334
|
]
|
|
334
335
|
}).forEach((e) => {
|
|
335
|
-
|
|
336
|
+
t({
|
|
336
337
|
componentName: "VueUiRadar",
|
|
337
338
|
type: "datasetSerieAttribute",
|
|
338
339
|
key: "series",
|
|
339
340
|
property: e,
|
|
340
|
-
index:
|
|
341
|
+
index: n,
|
|
341
342
|
debug: B.value
|
|
342
343
|
});
|
|
343
344
|
});
|
|
344
345
|
});
|
|
345
346
|
}
|
|
346
|
-
|
|
347
|
+
We(() => I.value, () => mn(), {
|
|
347
348
|
deep: !0,
|
|
348
349
|
immediate: !0
|
|
349
350
|
});
|
|
350
351
|
let K = u(() => {
|
|
351
|
-
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], t =
|
|
352
|
+
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], t = sn.value ?? o;
|
|
352
353
|
return e.map((e, n) => ({
|
|
353
354
|
name: e?.name ?? "",
|
|
354
355
|
categoryId: `radar_category_${O.value}_${n}`,
|
|
355
|
-
color:
|
|
356
|
+
color: ie(e?.color) || t[n] || o[n % o.length],
|
|
356
357
|
prefix: e?.prefix ?? "",
|
|
357
358
|
suffix: e?.suffix ?? ""
|
|
358
359
|
}));
|
|
359
360
|
}), q = u(() => I.value.series.map((e, t) => ({
|
|
360
361
|
...e,
|
|
361
|
-
color:
|
|
362
|
+
color: ie(e.color) || sn.value[t] || o[t] || o[t % o.length],
|
|
362
363
|
serieId: `radar_serie_${O.value}_${t}`,
|
|
363
364
|
formatter: e.formatter || null,
|
|
364
365
|
absoluteIndex: t
|
|
365
366
|
})));
|
|
366
|
-
function
|
|
367
|
+
function hn(e) {
|
|
367
368
|
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
|
}
|
|
369
|
-
function
|
|
370
|
-
let t =
|
|
371
|
-
t !== null && U.value.includes(t.absoluteIndex) &&
|
|
370
|
+
function gn(e) {
|
|
371
|
+
let t = hn(e);
|
|
372
|
+
t !== null && U.value.includes(t.absoluteIndex) && fn(t.absoluteIndex);
|
|
372
373
|
}
|
|
373
|
-
function
|
|
374
|
-
let t =
|
|
375
|
-
t !== null && (U.value.includes(t.absoluteIndex) ||
|
|
374
|
+
function _n(e) {
|
|
375
|
+
let t = hn(e);
|
|
376
|
+
t !== null && (U.value.includes(t.absoluteIndex) || fn(t.absoluteIndex));
|
|
376
377
|
}
|
|
377
|
-
let
|
|
378
|
-
function
|
|
379
|
-
return P.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target ||
|
|
378
|
+
let vn = u(() => Math.max(0, ...q.value.flatMap((e) => e.values)));
|
|
379
|
+
function yn(e) {
|
|
380
|
+
return P.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || vn.value || 1;
|
|
380
381
|
}
|
|
381
|
-
let
|
|
382
|
-
let n =
|
|
383
|
-
return
|
|
382
|
+
let bn = u(() => q.value.map((e, t) => {
|
|
383
|
+
let n = Cn.value.coordinates[t];
|
|
384
|
+
return On({
|
|
384
385
|
centerX: H.value.width / 2,
|
|
385
386
|
centerY: H.value.height / 2,
|
|
386
387
|
apexX: n.x,
|
|
387
388
|
apexY: n.y,
|
|
388
|
-
proportion: (e.target || 0) /
|
|
389
|
+
proportion: (e.target || 0) / yn(e)
|
|
389
390
|
});
|
|
390
|
-
})),
|
|
391
|
+
})), xn = u(() => q.value.length), Sn = u(() => Math.min(H.value.width, H.value.height) / 3), Cn = u(() => n({
|
|
391
392
|
plot: {
|
|
392
393
|
x: H.value.width / 2,
|
|
393
394
|
y: H.value.height / 2
|
|
394
395
|
},
|
|
395
|
-
radius:
|
|
396
|
-
sides:
|
|
396
|
+
radius: Sn.value,
|
|
397
|
+
sides: xn.value,
|
|
397
398
|
rotation: 0
|
|
398
|
-
})),
|
|
399
|
+
})), wn = u(() => {
|
|
399
400
|
let e = [];
|
|
400
|
-
for (let t = 0; t <
|
|
401
|
+
for (let t = 0; t < Sn.value; t += Sn.value / P.value.style.chart.layout.grid.graduations) e.push(t);
|
|
401
402
|
return e;
|
|
402
|
-
}), J = u(() =>
|
|
403
|
-
let n = q.value[t], r = q.value[t].values.map((t) =>
|
|
403
|
+
}), J = u(() => Cn.value.coordinates.map((e, t) => {
|
|
404
|
+
let n = q.value[t], r = q.value[t].values.map((t) => On({
|
|
404
405
|
centerX: H.value.width / 2,
|
|
405
406
|
centerY: H.value.height / 2,
|
|
406
407
|
apexX: e.x,
|
|
407
408
|
apexY: e.y,
|
|
408
|
-
proportion: t /
|
|
409
|
+
proportion: t / yn(n)
|
|
409
410
|
}));
|
|
410
411
|
return {
|
|
411
412
|
...e,
|
|
@@ -414,11 +415,11 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
414
415
|
};
|
|
415
416
|
}).map((e) => ({
|
|
416
417
|
...e,
|
|
417
|
-
labelX:
|
|
418
|
-
labelY:
|
|
419
|
-
labelAnchor:
|
|
418
|
+
labelX: Tn(e).x,
|
|
419
|
+
labelY: Tn(e).y,
|
|
420
|
+
labelAnchor: Tn(e).anchor
|
|
420
421
|
})));
|
|
421
|
-
function
|
|
422
|
+
function Tn({ x: e, y: t }) {
|
|
422
423
|
let n = "middle";
|
|
423
424
|
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
425
|
x: e,
|
|
@@ -426,24 +427,24 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
426
427
|
anchor: n
|
|
427
428
|
};
|
|
428
429
|
}
|
|
429
|
-
let
|
|
430
|
+
let En = u({
|
|
430
431
|
get: () => P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
431
432
|
set: (e) => e
|
|
432
|
-
}), { autoSizeLabels:
|
|
433
|
+
}), { autoSizeLabels: Dn } = je({
|
|
433
434
|
svgRef: L,
|
|
434
435
|
fontSize: P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
435
436
|
minFontSize: 6,
|
|
436
|
-
sizeRef:
|
|
437
|
+
sizeRef: En,
|
|
437
438
|
labelClass: ".vue-ui-radar-apex-label"
|
|
438
439
|
});
|
|
439
|
-
function
|
|
440
|
+
function On({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
440
441
|
return {
|
|
441
442
|
x: e + (n - e) * i,
|
|
442
443
|
y: t + (r - t) * i
|
|
443
444
|
};
|
|
444
445
|
}
|
|
445
446
|
let Y = u(() => {
|
|
446
|
-
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target ||
|
|
447
|
+
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target || vn.value)));
|
|
447
448
|
return K.value.map((t, n) => {
|
|
448
449
|
let r = ue(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / q.value.length);
|
|
449
450
|
return {
|
|
@@ -452,16 +453,16 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
452
453
|
totalProportion: r,
|
|
453
454
|
shape: "circle",
|
|
454
455
|
opacity: U.value.includes(n) ? .5 : 1,
|
|
455
|
-
segregate: () =>
|
|
456
|
+
segregate: () => fn(n),
|
|
456
457
|
isSegregated: U.value.includes(n),
|
|
457
|
-
display: `${t.name}: ${
|
|
458
|
+
display: `${t.name}: ${i({
|
|
458
459
|
v: (r ?? 0) * 100,
|
|
459
460
|
s: "%",
|
|
460
461
|
r: P.value.style.chart.legend.roundingPercentage
|
|
461
462
|
})}`
|
|
462
463
|
};
|
|
463
464
|
});
|
|
464
|
-
}),
|
|
465
|
+
}), kn = u(() => ({
|
|
465
466
|
cy: "radar-div-legend",
|
|
466
467
|
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
467
468
|
color: P.value.style.chart.legend.color,
|
|
@@ -484,18 +485,18 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
484
485
|
head: e,
|
|
485
486
|
body: I.value.series.map((e) => [
|
|
486
487
|
e.name,
|
|
487
|
-
oe(e.formatter, e.target,
|
|
488
|
+
oe(e.formatter, e.target, i({
|
|
488
489
|
p: e.prefix,
|
|
489
490
|
v: e.target,
|
|
490
491
|
s: e.suffix,
|
|
491
492
|
r: P.value.table.td.roundingValue
|
|
492
493
|
})),
|
|
493
|
-
...e.values.map((t, n) => `${oe(e.formatter, t,
|
|
494
|
+
...e.values.map((t, n) => `${oe(e.formatter, t, i({
|
|
494
495
|
p: K.value[n]?.prefix ?? "",
|
|
495
496
|
v: t,
|
|
496
497
|
s: K.value[n]?.suffix ?? "",
|
|
497
498
|
r: P.value.table.td.roundingValue
|
|
498
|
-
}))} (${isNaN(t / e.target) ? "" :
|
|
499
|
+
}))} (${isNaN(t / e.target) ? "" : i({
|
|
499
500
|
v: t / e.target * 100,
|
|
500
501
|
s: "%",
|
|
501
502
|
r: P.value.table.td.roundingPercentage
|
|
@@ -516,26 +517,26 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
516
517
|
},
|
|
517
518
|
colNames: e
|
|
518
519
|
};
|
|
519
|
-
}), Z = x(null),
|
|
520
|
-
function
|
|
520
|
+
}), Z = x(null), An = x([]), jn = x(null);
|
|
521
|
+
function Mn(e, t) {
|
|
521
522
|
k.value = !1, Z.value = null, M.value = null, N.value = "pointer", P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
522
523
|
datapoint: e,
|
|
523
524
|
seriesIndex: t
|
|
524
525
|
});
|
|
525
526
|
}
|
|
526
|
-
function
|
|
527
|
+
function Nn(e, t) {
|
|
527
528
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
528
529
|
datapoint: e,
|
|
529
530
|
seriesIndex: t
|
|
530
531
|
});
|
|
531
532
|
}
|
|
532
|
-
function
|
|
533
|
+
function Pn(e, t, n = "pointer") {
|
|
533
534
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
534
535
|
datapoint: e,
|
|
535
536
|
seriesIndex: t
|
|
536
537
|
}), N.value = n, M.value = t;
|
|
537
538
|
let r = K.value.slice();
|
|
538
|
-
|
|
539
|
+
An.value = [], Z.value = t, k.value = !0, jn.value = {
|
|
539
540
|
datapoint: e,
|
|
540
541
|
seriesIndex: t,
|
|
541
542
|
series: {
|
|
@@ -545,8 +546,8 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
545
546
|
},
|
|
546
547
|
config: P.value
|
|
547
548
|
};
|
|
548
|
-
let
|
|
549
|
-
if (de(
|
|
549
|
+
let a = P.value.style.chart.tooltip.customFormat;
|
|
550
|
+
if (de(a) && ce(() => a({
|
|
550
551
|
seriesIndex: t,
|
|
551
552
|
datapoint: e,
|
|
552
553
|
series: {
|
|
@@ -556,7 +557,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
556
557
|
},
|
|
557
558
|
config: P.value
|
|
558
559
|
}))) {
|
|
559
|
-
|
|
560
|
+
Nt.value = a({
|
|
560
561
|
seriesIndex: t,
|
|
561
562
|
datapoint: e,
|
|
562
563
|
series: {
|
|
@@ -568,31 +569,31 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
568
569
|
});
|
|
569
570
|
return;
|
|
570
571
|
}
|
|
571
|
-
|
|
572
|
+
Nt.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
573
|
for (let t = 0; t < e.values.length; t += 1) if (!U.value.includes(t)) {
|
|
573
|
-
let n = r[t],
|
|
574
|
+
let n = r[t], a = e.values[t], o = isNaN(a / e.target) ? 0 : a / e.target * 100, s = oe(e.formatter, a, i({
|
|
574
575
|
p: K.value[t].prefix,
|
|
575
|
-
v:
|
|
576
|
+
v: a,
|
|
576
577
|
s: K.value[t].suffix,
|
|
577
578
|
r: P.value.style.chart.tooltip.roundingValue
|
|
578
|
-
}), { datapoint: e }),
|
|
579
|
-
v:
|
|
579
|
+
}), { datapoint: e }), c = i({
|
|
580
|
+
v: o,
|
|
580
581
|
s: "%",
|
|
581
582
|
r: P.value.style.chart.tooltip.roundingPercentage
|
|
582
|
-
}),
|
|
583
|
-
|
|
583
|
+
}), ee = P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${s} (${c})` : P.value.style.chart.tooltip.showValue && !P.value.style.chart.tooltip.showPercentage ? s : !P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${c}` : "";
|
|
584
|
+
An.value.push({
|
|
584
585
|
name: n?.name ?? `#${t + 1}`,
|
|
585
586
|
value: e.values[t] / e.target * 100,
|
|
586
587
|
color: n?.color,
|
|
587
|
-
suffix:
|
|
588
|
+
suffix: ee,
|
|
588
589
|
prefix: "",
|
|
589
590
|
rounding: P.value.style.chart.tooltip.roundingPercentage,
|
|
590
591
|
formatter: e.formatter
|
|
591
592
|
});
|
|
592
593
|
}
|
|
593
594
|
}
|
|
594
|
-
function
|
|
595
|
-
|
|
595
|
+
function Fn(e = null) {
|
|
596
|
+
Re(() => {
|
|
596
597
|
let t = [
|
|
597
598
|
[P.value.style.chart.title.text],
|
|
598
599
|
[P.value.style.chart.title.subtitle.text],
|
|
@@ -605,7 +606,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
605
606
|
e.name,
|
|
606
607
|
e.target,
|
|
607
608
|
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
608
|
-
]), i =
|
|
609
|
+
]), i = te(t.concat([n]).concat(r));
|
|
609
610
|
e ? e(i) : re({
|
|
610
611
|
csvContent: i,
|
|
611
612
|
title: P.value.style.chart.title.text || "vue-ui-radar"
|
|
@@ -613,20 +614,20 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
613
614
|
});
|
|
614
615
|
}
|
|
615
616
|
let Q = x(!1);
|
|
616
|
-
function
|
|
617
|
-
Q.value = e,
|
|
617
|
+
function In(e) {
|
|
618
|
+
Q.value = e, Pt.value += 1;
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
+
function Ln() {
|
|
620
621
|
V.value.showTable = !V.value.showTable;
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
+
function Rn() {
|
|
623
624
|
V.value.showTooltip = !V.value.showTooltip;
|
|
624
625
|
}
|
|
625
|
-
let
|
|
626
|
-
function
|
|
627
|
-
|
|
626
|
+
let $ = x(!1);
|
|
627
|
+
function zn() {
|
|
628
|
+
$.value = !$.value;
|
|
628
629
|
}
|
|
629
|
-
async function
|
|
630
|
+
async function Bn({ scale: e = 2 } = {}) {
|
|
630
631
|
if (!A.value) return;
|
|
631
632
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
632
633
|
domElement: A.value,
|
|
@@ -643,10 +644,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
643
644
|
aspectRatio: r
|
|
644
645
|
};
|
|
645
646
|
}
|
|
646
|
-
let
|
|
647
|
+
let Vn = u(() => {
|
|
647
648
|
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
648
649
|
return {
|
|
649
|
-
component: e ?
|
|
650
|
+
component: e ? Ot : Ct,
|
|
650
651
|
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
651
652
|
props: e ? {
|
|
652
653
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -674,51 +675,51 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
674
675
|
}
|
|
675
676
|
};
|
|
676
677
|
});
|
|
677
|
-
|
|
678
|
+
We(() => V.value.showTable, (e) => {
|
|
678
679
|
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
679
680
|
});
|
|
680
|
-
function
|
|
681
|
-
V.value.showTable = !1,
|
|
681
|
+
function Hn() {
|
|
682
|
+
V.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
682
683
|
}
|
|
683
|
-
let
|
|
684
|
+
let Un = u(() => Y.value.map((e) => ({
|
|
684
685
|
...e,
|
|
685
686
|
name: e.display
|
|
686
|
-
}))),
|
|
687
|
+
}))), Wn = u(() => P.value.style.chart.backgroundColor), Gn = u(() => P.value.style.chart.legend), { exportSvg: Kn, getSvg: qn } = _e({
|
|
687
688
|
svg: L,
|
|
688
689
|
title: u(() => P.value.style.chart.title),
|
|
689
|
-
legend:
|
|
690
|
-
legendItems:
|
|
691
|
-
backgroundColor:
|
|
690
|
+
legend: Gn,
|
|
691
|
+
legendItems: Un,
|
|
692
|
+
backgroundColor: Wn
|
|
692
693
|
});
|
|
693
|
-
async function
|
|
694
|
-
|
|
694
|
+
async function Jn({ isCb: e }) {
|
|
695
|
+
Gt.value = !0, await Re();
|
|
695
696
|
try {
|
|
696
697
|
if (e) {
|
|
697
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
698
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await qn();
|
|
698
699
|
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
699
700
|
blob: e,
|
|
700
701
|
url: t,
|
|
701
702
|
text: n,
|
|
702
703
|
dataUrl: r
|
|
703
704
|
}));
|
|
704
|
-
} else await Promise.resolve(
|
|
705
|
+
} else await Promise.resolve(Kn());
|
|
705
706
|
} finally {
|
|
706
|
-
|
|
707
|
+
Gt.value = !1;
|
|
707
708
|
}
|
|
708
709
|
}
|
|
709
|
-
function
|
|
710
|
+
function Yn(e) {
|
|
710
711
|
if (e?.stage === "start") {
|
|
711
|
-
|
|
712
|
+
Wt.value = !0;
|
|
712
713
|
return;
|
|
713
714
|
}
|
|
714
715
|
if (e?.stage === "end") {
|
|
715
|
-
|
|
716
|
+
Wt.value = !1;
|
|
716
717
|
return;
|
|
717
718
|
}
|
|
718
|
-
|
|
719
|
+
an();
|
|
719
720
|
}
|
|
720
|
-
async function
|
|
721
|
-
if (
|
|
721
|
+
async function Xn() {
|
|
722
|
+
if (ln("copyAlt", {
|
|
722
723
|
config: P.value,
|
|
723
724
|
dataset: J.value
|
|
724
725
|
}), !P.value.userOptions.callbacks.altCopy) {
|
|
@@ -730,24 +731,24 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
730
731
|
dataset: J.value
|
|
731
732
|
}));
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
-
M.value = null,
|
|
734
|
+
function Zn() {
|
|
735
|
+
M.value = null, qt.value = !0;
|
|
735
736
|
}
|
|
736
|
-
function
|
|
737
|
-
M.value = null, N.value = "pointer", k.value = !1, Z.value = null,
|
|
737
|
+
function Qn() {
|
|
738
|
+
M.value = null, N.value = "pointer", k.value = !1, Z.value = null, qt.value = !1;
|
|
738
739
|
}
|
|
739
|
-
function
|
|
740
|
+
function $n(e) {
|
|
740
741
|
if (!Number.isFinite(e) || !L.value) return;
|
|
741
742
|
let t = J.value[e];
|
|
742
743
|
if (!t) return;
|
|
743
744
|
let n = L.value.getBoundingClientRect();
|
|
744
|
-
|
|
745
|
+
Kt.value = {
|
|
745
746
|
x: n.left + t.labelX / H.value.width * n.width,
|
|
746
747
|
y: n.top + t.labelY / H.value.height * n.height
|
|
747
748
|
};
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
-
if (!L.value ||
|
|
750
|
+
function er(e) {
|
|
751
|
+
if (!L.value || $.value || document.activeElement !== L.value || !J.value.length) return;
|
|
751
752
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
752
753
|
if (!t && !n && !r && !i) return;
|
|
753
754
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -758,50 +759,50 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
758
759
|
if (M.value === null) return;
|
|
759
760
|
let e = J.value[M.value];
|
|
760
761
|
if (!e) return;
|
|
761
|
-
|
|
762
|
+
Nn(e, M.value);
|
|
762
763
|
return;
|
|
763
764
|
}
|
|
764
765
|
let a = M.value;
|
|
765
766
|
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
767
|
let o = J.value[a];
|
|
767
|
-
o && (M.value = a,
|
|
768
|
+
o && (M.value = a, $n(a), Pn(o, a, "keyboard"));
|
|
768
769
|
}
|
|
769
|
-
let
|
|
770
|
+
let tr = u(() => ({
|
|
770
771
|
headers: X.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
771
772
|
rows: X.value?.body ?? []
|
|
772
773
|
}));
|
|
773
774
|
return Se({
|
|
774
|
-
getData:
|
|
775
|
-
getImage:
|
|
776
|
-
generatePdf:
|
|
777
|
-
generateCsv:
|
|
778
|
-
generateImage:
|
|
779
|
-
generateSvg:
|
|
780
|
-
hideSeries:
|
|
781
|
-
showSeries:
|
|
782
|
-
toggleTable:
|
|
783
|
-
toggleTooltip:
|
|
784
|
-
toggleAnnotator:
|
|
785
|
-
toggleFullscreen:
|
|
786
|
-
copyAlt:
|
|
787
|
-
}), (e,
|
|
775
|
+
getData: pn,
|
|
776
|
+
getImage: Bn,
|
|
777
|
+
generatePdf: rn,
|
|
778
|
+
generateCsv: Fn,
|
|
779
|
+
generateImage: an,
|
|
780
|
+
generateSvg: Jn,
|
|
781
|
+
hideSeries: _n,
|
|
782
|
+
showSeries: gn,
|
|
783
|
+
toggleTable: Ln,
|
|
784
|
+
toggleTooltip: Rn,
|
|
785
|
+
toggleAnnotator: zn,
|
|
786
|
+
toggleFullscreen: In,
|
|
787
|
+
copyAlt: Xn
|
|
788
|
+
}), (e, t) => (b(), p("div", {
|
|
788
789
|
class: _(`vue-data-ui-component vue-ui-radar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
789
790
|
ref_key: "radarChart",
|
|
790
791
|
ref: A,
|
|
791
792
|
id: `vue-ui-radar_${O.value}`,
|
|
792
793
|
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:
|
|
794
|
-
onMouseleave:
|
|
794
|
+
onMouseenter: t[2] ||= () => T(Zt)(!0),
|
|
795
|
+
onMouseleave: t[3] ||= () => T(Zt)(!1)
|
|
795
796
|
}, [
|
|
796
797
|
m("div", {
|
|
797
798
|
id: `chart-instructions-${O.value}`,
|
|
798
799
|
class: "sr-only"
|
|
799
|
-
}, [m("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
800
|
-
|
|
800
|
+
}, [m("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
801
|
+
tr.value?.rows?.length ? (b(), d(De, {
|
|
801
802
|
key: 0,
|
|
802
803
|
uid: O.value,
|
|
803
|
-
head:
|
|
804
|
-
body:
|
|
804
|
+
head: tr.value.headers,
|
|
805
|
+
body: tr.value.rows,
|
|
805
806
|
notice: P.value.a11y.translations.tableAvailable,
|
|
806
807
|
caption: P.value.a11y.translations.tableCaption
|
|
807
808
|
}, null, 8, [
|
|
@@ -811,14 +812,14 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
811
812
|
"notice",
|
|
812
813
|
"caption"
|
|
813
814
|
])) : f("", !0),
|
|
814
|
-
P.value.userOptions.buttons.annotator ? (b(), d(T(
|
|
815
|
+
P.value.userOptions.buttons.annotator ? (b(), d(T(Tt), {
|
|
815
816
|
key: 1,
|
|
816
817
|
svgRef: T(L),
|
|
817
818
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
818
819
|
color: P.value.style.chart.color,
|
|
819
|
-
active:
|
|
820
|
+
active: $.value,
|
|
820
821
|
isCursorPointer: F.value,
|
|
821
|
-
onClose:
|
|
822
|
+
onClose: zn
|
|
822
823
|
}, {
|
|
823
824
|
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
824
825
|
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
@@ -834,20 +835,20 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
834
835
|
"active",
|
|
835
836
|
"isCursorPointer"
|
|
836
837
|
])) : f("", !0),
|
|
837
|
-
|
|
838
|
+
on.value ? (b(), p("div", {
|
|
838
839
|
key: 2,
|
|
839
840
|
ref_key: "noTitle",
|
|
840
|
-
ref:
|
|
841
|
+
ref: Rt,
|
|
841
842
|
class: "vue-data-ui-no-title-space",
|
|
842
843
|
style: "height:36px; width: 100%;background:transparent"
|
|
843
844
|
}, null, 512)) : f("", !0),
|
|
844
845
|
P.value.style.chart.title.text ? (b(), p("div", {
|
|
845
846
|
key: 3,
|
|
846
847
|
ref_key: "chartTitle",
|
|
847
|
-
ref:
|
|
848
|
+
ref: Ft,
|
|
848
849
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
849
850
|
}, [(b(), d(xe, {
|
|
850
|
-
key: `title_${
|
|
851
|
+
key: `title_${zt.value}`,
|
|
851
852
|
config: {
|
|
852
853
|
title: {
|
|
853
854
|
cy: "radar-div-title",
|
|
@@ -859,15 +860,15 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
859
860
|
}
|
|
860
861
|
}
|
|
861
862
|
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
862
|
-
m("div", { id: `legend-top-${O.value}` }, null, 8,
|
|
863
|
-
P.value.userOptions.show &&
|
|
863
|
+
m("div", { id: `legend-top-${O.value}` }, null, 8, Je),
|
|
864
|
+
P.value.userOptions.show && Mt.value && (T(Qt) || T(Xt)) ? (b(), d(T(Et), {
|
|
864
865
|
ref_key: "userOptionsRef",
|
|
865
|
-
ref:
|
|
866
|
-
key: `user_options_${
|
|
866
|
+
ref: Ut,
|
|
867
|
+
key: `user_options_${Pt.value}`,
|
|
867
868
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
868
869
|
color: P.value.style.chart.color,
|
|
869
|
-
isImaging: T(
|
|
870
|
-
isPrinting: T(
|
|
870
|
+
isImaging: T(nn),
|
|
871
|
+
isPrinting: T(tn),
|
|
871
872
|
uid: O.value,
|
|
872
873
|
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
873
874
|
hasPdf: P.value.userOptions.buttons.pdf,
|
|
@@ -883,22 +884,22 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
883
884
|
chartElement: A.value,
|
|
884
885
|
position: P.value.userOptions.position,
|
|
885
886
|
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
886
|
-
isAnnotation:
|
|
887
|
+
isAnnotation: $.value,
|
|
887
888
|
callbacks: P.value.userOptions.callbacks,
|
|
888
889
|
printScale: P.value.userOptions.print.scale,
|
|
889
890
|
tableDialog: P.value.table.useDialog,
|
|
890
891
|
isCursorPointer: F.value,
|
|
891
|
-
onToggleFullscreen:
|
|
892
|
-
onGeneratePdf: T(
|
|
893
|
-
onGenerateCsv:
|
|
894
|
-
onGenerateImage:
|
|
895
|
-
onGenerateSvg:
|
|
896
|
-
onToggleTable:
|
|
897
|
-
onToggleTooltip:
|
|
898
|
-
onToggleAnnotator:
|
|
899
|
-
onCopyAlt:
|
|
900
|
-
style: y({ visibility: T(
|
|
901
|
-
},
|
|
892
|
+
onToggleFullscreen: In,
|
|
893
|
+
onGeneratePdf: T(rn),
|
|
894
|
+
onGenerateCsv: Fn,
|
|
895
|
+
onGenerateImage: Yn,
|
|
896
|
+
onGenerateSvg: Jn,
|
|
897
|
+
onToggleTable: Ln,
|
|
898
|
+
onToggleTooltip: Rn,
|
|
899
|
+
onToggleAnnotator: zn,
|
|
900
|
+
onCopyAlt: Xn,
|
|
901
|
+
style: y({ visibility: T(Qt) ? T(Xt) ? "visible" : "hidden" : "visible" })
|
|
902
|
+
}, Pe({ _: 2 }, [
|
|
902
903
|
e.$slots.menuIcon ? {
|
|
903
904
|
name: "menuIcon",
|
|
904
905
|
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
@@ -969,10 +970,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
969
970
|
key: "11"
|
|
970
971
|
} : void 0
|
|
971
972
|
]), 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",
|
|
973
|
+
m("div", Ye, [(b(), p("svg", {
|
|
973
974
|
ref_key: "svgRef",
|
|
974
975
|
ref: L,
|
|
975
|
-
xmlns: T(
|
|
976
|
+
xmlns: T(le),
|
|
976
977
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
977
978
|
class: _({
|
|
978
979
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
@@ -981,11 +982,11 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
981
982
|
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
982
983
|
style: y(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
|
|
983
984
|
tabindex: "0",
|
|
984
|
-
onFocus:
|
|
985
|
-
onBlur:
|
|
986
|
-
onKeydown:
|
|
985
|
+
onFocus: Zn,
|
|
986
|
+
onBlur: Qn,
|
|
987
|
+
onKeydown: er
|
|
987
988
|
}, [
|
|
988
|
-
|
|
989
|
+
Ie(T(Dt)),
|
|
989
990
|
e.$slots["chart-background"] ? (b(), p("foreignObject", {
|
|
990
991
|
key: 0,
|
|
991
992
|
x: 0,
|
|
@@ -993,94 +994,99 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
993
994
|
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
994
995
|
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
995
996
|
style: { pointerEvents: "none" }
|
|
996
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
997
|
-
m("defs", null, [(b(!0), p(l, null, S(K.value, (e, t) => (b(),
|
|
997
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : f("", !0),
|
|
998
|
+
m("defs", null, [(b(!0), p(l, null, S(K.value, (e, t) => (b(), d(Te, {
|
|
999
|
+
t: "radial",
|
|
998
1000
|
cx: "50%",
|
|
999
1001
|
cy: "50%",
|
|
1000
1002
|
r: "50%",
|
|
1001
1003
|
fx: "50%",
|
|
1002
1004
|
fy: "50%",
|
|
1003
|
-
id: `radar_gradient_${O.value}_${t}
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1005
|
+
id: `radar_gradient_${O.value}_${t}`,
|
|
1006
|
+
key: `radar_gradient_${O.value}_${t}`,
|
|
1007
|
+
stops: [[
|
|
1008
|
+
"0%",
|
|
1009
|
+
T(c)(T(fe)(e.color, .05), P.value.style.chart.layout.dataPolygon.opacity),
|
|
1010
|
+
1
|
|
1011
|
+
], [
|
|
1012
|
+
"100%",
|
|
1013
|
+
T(c)(e.color, P.value.style.chart.layout.dataPolygon.opacity),
|
|
1014
|
+
1
|
|
1015
|
+
]]
|
|
1016
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1017
|
+
P.value.style.chart.layout.grid.show ? (b(), p("g", Qe, [(b(!0), p(l, null, S(J.value, (e) => (b(), p("line", {
|
|
1012
1018
|
x1: H.value.width / 2,
|
|
1013
1019
|
y1: H.value.height / 2,
|
|
1014
1020
|
x2: e.x,
|
|
1015
1021
|
y2: e.y,
|
|
1016
1022
|
stroke: P.value.style.chart.layout.grid.stroke,
|
|
1017
1023
|
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1018
|
-
}, null, 8,
|
|
1019
|
-
d: T(
|
|
1024
|
+
}, null, 8, $e))), 256)), P.value.style.chart.layout.grid.graduations > 0 ? (b(), p("g", et, [(b(!0), p(l, null, S(wn.value, (e) => (b(), p("path", {
|
|
1025
|
+
d: T(n)({
|
|
1020
1026
|
plot: {
|
|
1021
1027
|
x: H.value.width / 2,
|
|
1022
1028
|
y: H.value.height / 2
|
|
1023
1029
|
},
|
|
1024
1030
|
radius: e,
|
|
1025
|
-
sides:
|
|
1031
|
+
sides: xn.value,
|
|
1026
1032
|
rotation: 0
|
|
1027
1033
|
}).path,
|
|
1028
1034
|
fill: "none",
|
|
1029
1035
|
stroke: P.value.style.chart.layout.grid.stroke,
|
|
1030
1036
|
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1031
|
-
}, null, 8,
|
|
1037
|
+
}, null, 8, tt))), 256))])) : f("", !0)])) : f("", !0),
|
|
1032
1038
|
m("path", {
|
|
1033
|
-
d:
|
|
1039
|
+
d: Cn.value.path,
|
|
1034
1040
|
fill: "none",
|
|
1035
1041
|
stroke: P.value.style.chart.layout.outerPolygon.stroke,
|
|
1036
1042
|
"stroke-width": P.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
1037
1043
|
"stroke-linejoin": "round",
|
|
1038
1044
|
"stroke-linecap": "round"
|
|
1039
|
-
}, null, 8,
|
|
1040
|
-
P.value.style.chart.layout.labels.dataLabels.show ? (b(), p("g",
|
|
1045
|
+
}, null, 8, nt),
|
|
1046
|
+
P.value.style.chart.layout.labels.dataLabels.show ? (b(), p("g", rt, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p("text", {
|
|
1041
1047
|
class: "vue-ui-radar-apex-label",
|
|
1042
1048
|
x: e.labelX,
|
|
1043
1049
|
y: e.labelY,
|
|
1044
1050
|
"text-anchor": e.labelAnchor,
|
|
1045
1051
|
"font-size": P.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1046
1052
|
fill: P.value.style.chart.layout.labels.dataLabels.color,
|
|
1047
|
-
onMouseenter: (n) =>
|
|
1048
|
-
onMouseleave: (n) =>
|
|
1049
|
-
onClick: (n) =>
|
|
1050
|
-
}, w(e.name), 41,
|
|
1051
|
-
(b(!0), p(l, null, S(K.value, (e,
|
|
1053
|
+
onMouseenter: (n) => Pn(e, t, "pointer"),
|
|
1054
|
+
onMouseleave: (n) => Mn(e, t),
|
|
1055
|
+
onClick: (n) => Nn(e, t)
|
|
1056
|
+
}, w(e.name), 41, it))), 256))])) : f("", !0),
|
|
1057
|
+
(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
1058
|
key: 0,
|
|
1053
|
-
points: T(
|
|
1059
|
+
points: T(s)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1054
1060
|
stroke: P.value.style.chart.backgroundColor,
|
|
1055
1061
|
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1056
1062
|
fill: "none",
|
|
1057
1063
|
class: _({
|
|
1058
|
-
"animated-out": U.value.includes(
|
|
1059
|
-
"animated-in": G.value && W.value ===
|
|
1064
|
+
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1065
|
+
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1060
1066
|
})
|
|
1061
|
-
}, null, 10,
|
|
1067
|
+
}, null, 10, at)) : f("", !0), P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(t) ? (b(), p("polygon", {
|
|
1062
1068
|
key: 1,
|
|
1063
|
-
points: T(
|
|
1069
|
+
points: T(s)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1064
1070
|
stroke: e.color,
|
|
1065
1071
|
"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}_${
|
|
1072
|
+
fill: P.value.style.chart.layout.dataPolygon.transparent ? "transparent" : P.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${O.value}_${t})` : T(c)(e.color, P.value.style.chart.layout.dataPolygon.opacity),
|
|
1067
1073
|
class: _({
|
|
1068
|
-
"animated-out": U.value.includes(
|
|
1069
|
-
"animated-in": G.value && W.value ===
|
|
1074
|
+
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1075
|
+
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1070
1076
|
})
|
|
1071
|
-
}, null, 10,
|
|
1077
|
+
}, null, 10, ot)) : f("", !0)])]))), 256)),
|
|
1072
1078
|
P.value.style.chart.layout.targetReference.show ? (b(), p("path", {
|
|
1073
1079
|
key: 3,
|
|
1074
1080
|
class: "vue-ui-radar-target-polygon",
|
|
1075
|
-
d: `M${T(
|
|
1081
|
+
d: `M${T(s)(bn.value, !1, !0)}Z`,
|
|
1076
1082
|
fill: "none",
|
|
1077
1083
|
stroke: P.value.style.chart.layout.targetReference.stroke,
|
|
1078
1084
|
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth,
|
|
1079
1085
|
"stroke-linejoin": "round",
|
|
1080
1086
|
"stroke-linecap": "round",
|
|
1081
1087
|
"stroke-dasharray": P.value.style.chart.layout.targetReference.strokeDasharray
|
|
1082
|
-
}, null, 8,
|
|
1083
|
-
P.value.style.chart.layout.plots.show ? (b(), p("g",
|
|
1088
|
+
}, null, 8, st)) : f("", !0),
|
|
1089
|
+
P.value.style.chart.layout.plots.show ? (b(), p("g", ct, [(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
1090
|
cx: e.x,
|
|
1085
1091
|
cy: e.y,
|
|
1086
1092
|
fill: U.value.includes(n) ? "transparent" : K.value[n] ? K.value[n].color : "transparent",
|
|
@@ -1091,45 +1097,45 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1091
1097
|
"animated-out": U.value.includes(n) && P.value.useCssAnimation,
|
|
1092
1098
|
"animated-in": G.value && W.value === n && P.value.useCssAnimation
|
|
1093
1099
|
})
|
|
1094
|
-
}, null, 10,
|
|
1100
|
+
}, null, 10, lt))), 256))]))), 256))])) : f("", !0),
|
|
1095
1101
|
C(e.$slots, "svg", { svg: {
|
|
1096
1102
|
...H.value,
|
|
1097
|
-
outerPolygon:
|
|
1098
|
-
isPrintingImg: T(
|
|
1099
|
-
isPrintingSvg:
|
|
1103
|
+
outerPolygon: Cn.value,
|
|
1104
|
+
isPrintingImg: T(tn) || T(nn) || Wt.value,
|
|
1105
|
+
isPrintingSvg: Gt.value
|
|
1100
1106
|
} }, void 0, !0)
|
|
1101
|
-
], 46,
|
|
1107
|
+
], 46, Xe)), e.$slots.hint ? (b(), p("div", ut, [C(e.$slots, "hint", v(g({
|
|
1102
1108
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1103
|
-
isVisible:
|
|
1109
|
+
isVisible: qt.value
|
|
1104
1110
|
})), void 0, !0)])) : f("", !0)]),
|
|
1105
|
-
e.$slots.watermark ? (b(), p("div",
|
|
1106
|
-
m("div", { id: `legend-bottom-${O.value}` }, null, 8,
|
|
1107
|
-
|
|
1111
|
+
e.$slots.watermark ? (b(), p("div", dt, [C(e.$slots, "watermark", v(g({ isPrinting: T(tn) || T(nn) || Wt.value || Gt.value })), void 0, !0)])) : f("", !0),
|
|
1112
|
+
m("div", { id: `legend-bottom-${O.value}` }, null, 8, ft),
|
|
1113
|
+
Ht.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(Ne, {
|
|
1108
1114
|
key: 6,
|
|
1109
1115
|
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1110
1116
|
}, [m("div", {
|
|
1111
1117
|
ref_key: "chartLegend",
|
|
1112
|
-
ref:
|
|
1113
|
-
}, [C(e.$slots, "legend", { legend: Y.value }, () => [P.value.style.chart.legend.show ? (b(), d(
|
|
1114
|
-
key: `legend_${
|
|
1118
|
+
ref: It
|
|
1119
|
+
}, [C(e.$slots, "legend", { legend: Y.value }, () => [P.value.style.chart.legend.show ? (b(), d(Ae, {
|
|
1120
|
+
key: `legend_${Vt.value}`,
|
|
1115
1121
|
legendSet: Y.value,
|
|
1116
|
-
config:
|
|
1122
|
+
config: kn.value,
|
|
1117
1123
|
isCursorPointer: F.value,
|
|
1118
|
-
onClickMarker:
|
|
1119
|
-
},
|
|
1120
|
-
item: E(({ legend: e, index: t }) => [T(
|
|
1124
|
+
onClickMarker: t[0] ||= ({ i: e }) => fn(e)
|
|
1125
|
+
}, Pe({
|
|
1126
|
+
item: E(({ legend: e, index: t }) => [T(Yt) ? f("", !0) : (b(), p("div", {
|
|
1121
1127
|
key: 0,
|
|
1122
1128
|
onClick: (t) => e.segregate(),
|
|
1123
1129
|
style: y(`opacity:${U.value.includes(t) ? .5 : 1}`)
|
|
1124
|
-
}, w(e.display), 13,
|
|
1125
|
-
legendToggle: E(() => [Y.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(
|
|
1130
|
+
}, w(e.display), 13, pt))]),
|
|
1131
|
+
legendToggle: E(() => [Y.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !T(Yt) ? (b(), d(Ee, {
|
|
1126
1132
|
key: 0,
|
|
1127
1133
|
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1128
1134
|
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1129
1135
|
fontSize: P.value.style.chart.legend.fontSize,
|
|
1130
1136
|
checked: U.value.length > 0,
|
|
1131
1137
|
isCursorPointer: F.value,
|
|
1132
|
-
onToggle:
|
|
1138
|
+
onToggle: un
|
|
1133
1139
|
}, null, 8, [
|
|
1134
1140
|
"backgroundColor",
|
|
1135
1141
|
"color",
|
|
@@ -1140,7 +1146,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1140
1146
|
_: 2
|
|
1141
1147
|
}, [P.value.style.chart.layout.targetReference.show && P.value.style.chart.layout.targetReference.showInLegend ? {
|
|
1142
1148
|
name: "after",
|
|
1143
|
-
fn: E(() => [m("div",
|
|
1149
|
+
fn: E(() => [m("div", mt, [m("div", { style: y({
|
|
1144
1150
|
display: "flex",
|
|
1145
1151
|
height: P.value.style.chart.legend.fontSize
|
|
1146
1152
|
}) }, [(b(), p("svg", {
|
|
@@ -1155,7 +1161,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1155
1161
|
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth * .7,
|
|
1156
1162
|
"stroke-dasharray": P.value.style.chart.layout.targetReference.strokeDasharray * .7,
|
|
1157
1163
|
"stroke-linecap": "round"
|
|
1158
|
-
}, null, 8,
|
|
1164
|
+
}, null, 8, ht)], 4))], 4), m("span", null, w(P.value.style.chart.layout.targetReference.legendLabel), 1)])]),
|
|
1159
1165
|
key: "0"
|
|
1160
1166
|
} : void 0]), 1032, [
|
|
1161
1167
|
"legendSet",
|
|
@@ -1165,10 +1171,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1165
1171
|
e.$slots.source ? (b(), p("div", {
|
|
1166
1172
|
key: 7,
|
|
1167
1173
|
ref_key: "source",
|
|
1168
|
-
ref:
|
|
1174
|
+
ref: Lt,
|
|
1169
1175
|
dir: "auto"
|
|
1170
1176
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1171
|
-
|
|
1177
|
+
Ie(T(bt), {
|
|
1172
1178
|
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
1173
1179
|
show: V.value.showTooltip && k.value,
|
|
1174
1180
|
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1182,7 +1188,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1182
1188
|
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
1183
1189
|
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
1184
1190
|
parent: A.value,
|
|
1185
|
-
content:
|
|
1191
|
+
content: Nt.value,
|
|
1186
1192
|
isFullscreen: Q.value,
|
|
1187
1193
|
isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
|
|
1188
1194
|
smooth: P.value.style.chart.tooltip.smooth,
|
|
@@ -1190,18 +1196,18 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1190
1196
|
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
1191
1197
|
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1192
1198
|
isA11yMode: N.value === "keyboard",
|
|
1193
|
-
a11yPosition:
|
|
1199
|
+
a11yPosition: Kt.value
|
|
1194
1200
|
}, {
|
|
1195
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...
|
|
1196
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...
|
|
1197
|
-
"tooltip-after": E(() => [!["function"].includes(typeof P.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (b(), p("div",
|
|
1198
|
-
dataset:
|
|
1199
|
-
config:
|
|
1201
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...jn.value })), void 0, !0)]),
|
|
1202
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...jn.value })), void 0, !0)]),
|
|
1203
|
+
"tooltip-after": E(() => [!["function"].includes(typeof P.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (b(), p("div", gt, [Ie(T(St), {
|
|
1204
|
+
dataset: An.value,
|
|
1205
|
+
config: cn.value,
|
|
1200
1206
|
backgroundOpacity: 0
|
|
1201
1207
|
}, {
|
|
1202
|
-
"data-label": E(({ bar: e }) => [m("div",
|
|
1208
|
+
"data-label": E(({ bar: e }) => [m("div", _t, [m("span", vt, 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", yt, w(e.suffix), 1)) : f("", !0)])]),
|
|
1203
1209
|
_: 1
|
|
1204
|
-
}, 8, ["dataset", "config"])])) : f("", !0), C(e.$slots, "tooltip-after", v(g({ ...
|
|
1210
|
+
}, 8, ["dataset", "config"])])) : f("", !0), C(e.$slots, "tooltip-after", v(g({ ...jn.value })), void 0, !0)]),
|
|
1205
1211
|
_: 3
|
|
1206
1212
|
}, 8, [
|
|
1207
1213
|
"teleportTo",
|
|
@@ -1227,24 +1233,24 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1227
1233
|
"isA11yMode",
|
|
1228
1234
|
"a11yPosition"
|
|
1229
1235
|
]),
|
|
1230
|
-
|
|
1236
|
+
Mt.value && P.value.userOptions.buttons.table ? (b(), d(Ve(Vn.value.component), Le({ key: 8 }, Vn.value.props, {
|
|
1231
1237
|
ref_key: "tableUnit",
|
|
1232
1238
|
ref: j,
|
|
1233
|
-
onClose:
|
|
1234
|
-
}),
|
|
1235
|
-
content: E(() => [(b(), d(T(
|
|
1236
|
-
key: `table_${
|
|
1239
|
+
onClose: Hn
|
|
1240
|
+
}), Pe({
|
|
1241
|
+
content: E(() => [(b(), d(T(wt), {
|
|
1242
|
+
key: `table_${Bt.value}`,
|
|
1237
1243
|
colNames: X.value.colNames,
|
|
1238
1244
|
head: X.value.head,
|
|
1239
1245
|
body: X.value.body,
|
|
1240
1246
|
config: X.value.config,
|
|
1241
|
-
title: P.value.table.useDialog ? "" :
|
|
1247
|
+
title: P.value.table.useDialog ? "" : Vn.value.title,
|
|
1242
1248
|
withCloseButton: !P.value.table.useDialog,
|
|
1243
1249
|
isCursorPointer: F.value,
|
|
1244
|
-
onClose:
|
|
1250
|
+
onClose: Hn
|
|
1245
1251
|
}, {
|
|
1246
|
-
th: E(({ th: e }) => [
|
|
1247
|
-
td: E(({ td: e }) => [
|
|
1252
|
+
th: E(({ th: e }) => [Fe(w(e.name), 1)]),
|
|
1253
|
+
td: E(({ td: e }) => [Fe(w(e), 1)]),
|
|
1248
1254
|
_: 1
|
|
1249
1255
|
}, 8, [
|
|
1250
1256
|
"colNames",
|
|
@@ -1258,24 +1264,24 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1258
1264
|
_: 2
|
|
1259
1265
|
}, [P.value.table.useDialog ? {
|
|
1260
1266
|
name: "title",
|
|
1261
|
-
fn: E(() => [
|
|
1267
|
+
fn: E(() => [Fe(w(Vn.value.title), 1)]),
|
|
1262
1268
|
key: "0"
|
|
1263
1269
|
} : void 0, P.value.table.useDialog ? {
|
|
1264
1270
|
name: "actions",
|
|
1265
1271
|
fn: E(() => [m("button", {
|
|
1266
1272
|
tabindex: "0",
|
|
1267
1273
|
class: "vue-ui-user-options-button",
|
|
1268
|
-
onClick:
|
|
1274
|
+
onClick: t[1] ||= (e) => Fn(P.value.userOptions.callbacks.csv),
|
|
1269
1275
|
style: y({ cursor: F.value ? "pointer" : "default" })
|
|
1270
|
-
}, [
|
|
1276
|
+
}, [Ie(T(xt), {
|
|
1271
1277
|
name: "fileCsv",
|
|
1272
|
-
stroke:
|
|
1278
|
+
stroke: Vn.value.props.color
|
|
1273
1279
|
}, null, 8, ["stroke"])], 4)]),
|
|
1274
1280
|
key: "1"
|
|
1275
1281
|
} : void 0]), 1040)) : f("", !0),
|
|
1276
|
-
C(e.$slots, "skeleton", {}, () => [T(
|
|
1277
|
-
], 46,
|
|
1282
|
+
C(e.$slots, "skeleton", {}, () => [T(Yt) ? (b(), d(ge, { key: 0 })) : f("", !0)], !0)
|
|
1283
|
+
], 46, Ke));
|
|
1278
1284
|
}
|
|
1279
|
-
}, [["__scopeId", "data-v-
|
|
1285
|
+
}, [["__scopeId", "data-v-ee3081b3"]]);
|
|
1280
1286
|
//#endregion
|
|
1281
|
-
export {
|
|
1287
|
+
export { Ge as n, bt as t };
|