vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.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 +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, At as n, Bt as r, D as i, Jt as a, Kt as o, M as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { l as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, At as n, Bt as r, D as i, Jt as a, Kt as o, M as s, Pt as c, S as ee, Vt as te, X as l, b as ne, ct as re, i as ie, jt as ae, pt as oe, q as se, t as ce, tt as u, w as le, xt as ue } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as fe } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as pe } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ve } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
+
import { t as ye } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as be } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as we } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as Te } from "./BaseLegendToggle-DZVucLnv.js";
|
|
16
|
+
import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as ke } from "./Legend-CQxUgOd-.js";
|
|
20
|
+
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
21
|
+
import { t as je } from "./vue_ui_radar-jafTED5j.js";
|
|
22
|
+
import { Fragment as d, Teleport as Me, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ie, nextTick as Le, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Re, onMounted as ze, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as E, toRefs as He, unref as D, watch as Ue, withCtx as O } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-radar.vue
|
|
24
|
-
var
|
|
24
|
+
var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"viewBox"
|
|
28
|
-
],
|
|
28
|
+
], Xe = ["width", "height"], Ze = { key: 1 }, Qe = [
|
|
29
29
|
"x1",
|
|
30
30
|
"y1",
|
|
31
31
|
"x2",
|
|
32
32
|
"y2",
|
|
33
33
|
"stroke",
|
|
34
34
|
"stroke-width"
|
|
35
|
-
],
|
|
35
|
+
], $e = { key: 0 }, et = [
|
|
36
36
|
"d",
|
|
37
37
|
"stroke",
|
|
38
38
|
"stroke-width"
|
|
39
|
-
],
|
|
39
|
+
], tt = [
|
|
40
40
|
"d",
|
|
41
41
|
"stroke",
|
|
42
42
|
"stroke-width"
|
|
43
|
-
],
|
|
43
|
+
], nt = { key: 2 }, rt = [
|
|
44
44
|
"x",
|
|
45
45
|
"y",
|
|
46
46
|
"text-anchor",
|
|
@@ -49,27 +49,27 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
49
49
|
"onMouseenter",
|
|
50
50
|
"onMouseleave",
|
|
51
51
|
"onClick"
|
|
52
|
-
],
|
|
52
|
+
], it = [
|
|
53
53
|
"points",
|
|
54
54
|
"stroke",
|
|
55
55
|
"stroke-width"
|
|
56
|
-
],
|
|
56
|
+
], at = [
|
|
57
57
|
"points",
|
|
58
58
|
"stroke",
|
|
59
59
|
"stroke-width",
|
|
60
60
|
"fill"
|
|
61
|
-
],
|
|
61
|
+
], ot = [
|
|
62
62
|
"d",
|
|
63
63
|
"stroke",
|
|
64
64
|
"stroke-width",
|
|
65
65
|
"stroke-dasharray"
|
|
66
|
-
],
|
|
66
|
+
], st = { key: 4 }, ct = [
|
|
67
67
|
"cx",
|
|
68
68
|
"cy",
|
|
69
69
|
"fill",
|
|
70
70
|
"r",
|
|
71
71
|
"stroke"
|
|
72
|
-
],
|
|
72
|
+
], lt = {
|
|
73
73
|
key: 0,
|
|
74
74
|
style: {
|
|
75
75
|
position: "absolute",
|
|
@@ -79,23 +79,23 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
79
79
|
},
|
|
80
80
|
"data-dom-to-png-ignore": "",
|
|
81
81
|
"aria-hidden": "true"
|
|
82
|
-
},
|
|
82
|
+
}, ut = {
|
|
83
83
|
key: 5,
|
|
84
84
|
class: "vue-data-ui-watermark"
|
|
85
|
-
},
|
|
85
|
+
}, dt = ["id"], ft = ["onClick"], pt = { class: "vue-data-ui-legend-item" }, mt = [
|
|
86
86
|
"stroke",
|
|
87
87
|
"stroke-width",
|
|
88
88
|
"stroke-dasharray"
|
|
89
|
-
],
|
|
89
|
+
], ht = {
|
|
90
90
|
key: 0,
|
|
91
91
|
style: {
|
|
92
92
|
"max-width": "200px",
|
|
93
93
|
margin: "0 auto"
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, gt = {
|
|
96
96
|
class: "vue-ui-radar-tooltip-datalabel",
|
|
97
97
|
style: { width: "100%" }
|
|
98
|
-
},
|
|
98
|
+
}, _t = { class: "vue-ui-radar-tooltip-datalabel-name" }, vt = { key: 0 }, yt = /*#__PURE__*/ xe({
|
|
99
99
|
__name: "vue-ui-radar",
|
|
100
100
|
props: {
|
|
101
101
|
config: {
|
|
@@ -112,14 +112,14 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
emits: ["selectLegend", "copyAlt"],
|
|
115
|
-
setup(e, { expose:
|
|
116
|
-
let
|
|
115
|
+
setup(e, { expose: xe, emit: We }) {
|
|
116
|
+
let yt = _(() => import("./Tooltip-DhjyfHwz.js")), bt = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), xt = _(() => import("./vue-ui-sparkbar-s-2rBmEz.js").then((e) => e.n)), St = _(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Ct = _(() => import("./DataTable-BbKgJ5UI.js")), wt = _(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Tt = _(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Et = _(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Dt = _(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_radar: Ot } = fe(), { isThemeValid: kt, warnInvalidTheme: At } = _e(), k = e, jt = f(() => !!k.dataset && Object.keys(k.dataset).length), A = C(se()), j = C(!1), Mt = C(""), Nt = C(0), M = C(null), Pt = C(null), Ft = C(null), It = C(null), Lt = C(null), Rt = C(0), zt = C(0), Bt = C(0), Vt = C(!1), N = C(null), Ht = C(null), P = C(null), Ut = C({
|
|
117
117
|
x: 0,
|
|
118
118
|
y: 0
|
|
119
|
-
}),
|
|
120
|
-
|
|
119
|
+
}), Wt = C("pointer"), Gt = C(!1), F = C(Zt());
|
|
120
|
+
de({
|
|
121
121
|
config: () => F.value,
|
|
122
|
-
dataset: () =>
|
|
122
|
+
dataset: () => k.dataset,
|
|
123
123
|
component: "VueUiRadar",
|
|
124
124
|
rules: [
|
|
125
125
|
{
|
|
@@ -161,7 +161,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
161
161
|
}
|
|
162
162
|
]
|
|
163
163
|
});
|
|
164
|
-
let I =
|
|
164
|
+
let I = f(() => F.value.userOptions.useCursorPointer), Kt = f(() => a({
|
|
165
165
|
defaultConfig: {
|
|
166
166
|
userOptions: { show: !1 },
|
|
167
167
|
table: { show: !1 },
|
|
@@ -177,16 +177,16 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
177
177
|
} }
|
|
178
178
|
},
|
|
179
179
|
userConfig: F.value.skeletonConfig ?? {}
|
|
180
|
-
})), { loading:
|
|
181
|
-
...
|
|
180
|
+
})), { loading: qt, FINAL_DATASET: L } = me({
|
|
181
|
+
...He(k),
|
|
182
182
|
FINAL_CONFIG: F,
|
|
183
|
-
prepareConfig:
|
|
183
|
+
prepareConfig: Zt,
|
|
184
184
|
callback: () => {
|
|
185
185
|
Promise.resolve().then(async () => {
|
|
186
|
-
await
|
|
186
|
+
await Le(), H.value.showTable = F.value.table.show;
|
|
187
187
|
});
|
|
188
188
|
},
|
|
189
|
-
skeletonDataset:
|
|
189
|
+
skeletonDataset: k.config?.skeletonDataset ?? {
|
|
190
190
|
categories: [{
|
|
191
191
|
name: "_",
|
|
192
192
|
color: "#6A6A6A"
|
|
@@ -226,68 +226,68 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
226
226
|
},
|
|
227
227
|
skeletonConfig: a({
|
|
228
228
|
defaultConfig: F.value,
|
|
229
|
-
userConfig:
|
|
229
|
+
userConfig: Kt.value
|
|
230
230
|
})
|
|
231
|
-
}), { userOptionsVisible:
|
|
232
|
-
function
|
|
233
|
-
let e =
|
|
234
|
-
userConfig:
|
|
235
|
-
defaultConfig:
|
|
231
|
+
}), { userOptionsVisible: Jt, setUserOptionsVisibility: Yt, keepUserOptionState: Xt } = De({ config: F.value }), { svgRef: R } = Oe({ config: F.value.style.chart.title });
|
|
232
|
+
function Zt() {
|
|
233
|
+
let e = ge({
|
|
234
|
+
userConfig: k.config,
|
|
235
|
+
defaultConfig: Ot
|
|
236
236
|
}), t = e.theme;
|
|
237
237
|
if (!t) return e;
|
|
238
|
-
if (!
|
|
239
|
-
let n =
|
|
240
|
-
userConfig:
|
|
238
|
+
if (!kt.value(e)) return At(e), e;
|
|
239
|
+
let n = ge({
|
|
240
|
+
userConfig: je[t] || k.config,
|
|
241
241
|
defaultConfig: e
|
|
242
|
-
}), r =
|
|
243
|
-
userConfig:
|
|
242
|
+
}), r = ge({
|
|
243
|
+
userConfig: k.config,
|
|
244
244
|
defaultConfig: n
|
|
245
245
|
});
|
|
246
246
|
return {
|
|
247
247
|
...r,
|
|
248
|
-
customPalette: r.customPalette.length ? r.customPalette : o[t] ||
|
|
248
|
+
customPalette: r.customPalette.length ? r.customPalette : o[t] || c
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
|
|
252
|
-
F.value =
|
|
251
|
+
Ue(() => k.config, (e) => {
|
|
252
|
+
F.value = Zt(), Jt.value = !F.value.userOptions.showOnChartHover, Qt(), Rt.value += 1, zt.value += 1, Bt.value += 1, H.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.chart.tooltip ? F.value.style.chart.tooltip.show : !1;
|
|
253
253
|
}, { deep: !0 });
|
|
254
|
-
let z =
|
|
255
|
-
function
|
|
256
|
-
if (
|
|
254
|
+
let z = Ve(null), B = Ve(null), V = f(() => F.value.debug);
|
|
255
|
+
function Qt() {
|
|
256
|
+
if (ae(k.dataset) && u({
|
|
257
257
|
componentName: "VueUiRadar",
|
|
258
258
|
type: "dataset",
|
|
259
259
|
debug: V.value
|
|
260
260
|
}), F.value.responsive) {
|
|
261
|
-
let e =
|
|
262
|
-
let { width: e, height: t } =
|
|
263
|
-
chart:
|
|
264
|
-
title: F.value.style.chart.title.text ?
|
|
265
|
-
legend: F.value.style.chart.legend.show ?
|
|
266
|
-
source:
|
|
267
|
-
noTitle:
|
|
261
|
+
let e = Se(() => {
|
|
262
|
+
let { width: e, height: t } = Ce({
|
|
263
|
+
chart: M.value,
|
|
264
|
+
title: F.value.style.chart.title.text ? Pt.value : null,
|
|
265
|
+
legend: F.value.style.chart.legend.show ? Ft.value : null,
|
|
266
|
+
source: It.value,
|
|
267
|
+
noTitle: Lt.value
|
|
268
268
|
});
|
|
269
269
|
requestAnimationFrame(() => {
|
|
270
|
-
U.value.width = e, U.value.height = t,
|
|
270
|
+
U.value.width = e, U.value.height = t, Tn();
|
|
271
271
|
});
|
|
272
272
|
});
|
|
273
|
-
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value =
|
|
273
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = M.value.parentNode, z.value.observe(B.value);
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
Tn();
|
|
276
276
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}),
|
|
277
|
+
ze(() => {
|
|
278
|
+
Vt.value = !0, Qt();
|
|
279
|
+
}), Re(() => {
|
|
280
280
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
281
281
|
});
|
|
282
|
-
let { isPrinting:
|
|
283
|
-
elementId: `vue-ui-radar_${
|
|
282
|
+
let { isPrinting: $t, isImaging: en, generatePdf: tn, generateImage: nn } = pe({
|
|
283
|
+
elementId: `vue-ui-radar_${A.value}`,
|
|
284
284
|
fileName: F.value.style.chart.title.text || "vue-ui-radar",
|
|
285
285
|
options: F.value.userOptions.print
|
|
286
|
-
}),
|
|
286
|
+
}), rn = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), an = f(() => le(F.value.customPalette)), H = C({
|
|
287
287
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
288
288
|
showTable: F.value.table.show,
|
|
289
289
|
showTooltip: F.value.style.chart.tooltip.show
|
|
290
|
-
}),
|
|
290
|
+
}), on = f(() => ({ style: {
|
|
291
291
|
backgroundColor: "#FFFFFF00",
|
|
292
292
|
animation: {
|
|
293
293
|
show: F.value.style.chart.tooltip.animation.show,
|
|
@@ -301,44 +301,44 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
301
301
|
backgroundColor: "#CCCCCC",
|
|
302
302
|
opacity: 30
|
|
303
303
|
}
|
|
304
|
-
} })), U =
|
|
304
|
+
} })), U = C({
|
|
305
305
|
height: 312,
|
|
306
306
|
width: 512
|
|
307
|
-
}),
|
|
308
|
-
function
|
|
307
|
+
}), sn = We, W = C([]), G = C(null), K = C(!1);
|
|
308
|
+
function cn() {
|
|
309
309
|
W.value.length ? W.value = [] : X.value.forEach((e, t) => {
|
|
310
310
|
W.value.push(t);
|
|
311
|
-
}),
|
|
311
|
+
}), ln();
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
|
|
313
|
+
function ln() {
|
|
314
|
+
sn("selectLegend", X.value.filter((e, t) => !W.value.includes(t)).map((e) => ({
|
|
315
315
|
name: e.name,
|
|
316
316
|
color: e.color,
|
|
317
317
|
proportion: e.totalProportion
|
|
318
318
|
})));
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function un(e) {
|
|
321
321
|
K.value = !0, W.value.includes(e) ? (G.value = e, W.value = W.value.filter((t) => t !== e), setTimeout(() => {
|
|
322
322
|
K.value = !1, G.value = null;
|
|
323
323
|
}, 500)) : (W.value.push(e), setTimeout(() => {
|
|
324
324
|
K.value = !1;
|
|
325
|
-
}, 500)),
|
|
325
|
+
}, 500)), ln();
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function dn() {
|
|
328
328
|
return X.value.map((e) => ({
|
|
329
329
|
name: e.name,
|
|
330
330
|
color: e.color,
|
|
331
331
|
proportion: e.totalProportion
|
|
332
332
|
}));
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function fn() {
|
|
335
335
|
let e = L.value;
|
|
336
336
|
if ([null, void 0].includes(e?.categories)) {
|
|
337
|
-
|
|
337
|
+
u({
|
|
338
338
|
componentName: "VueUiRadar",
|
|
339
339
|
type: "dataset",
|
|
340
340
|
debug: V.value
|
|
341
|
-
}),
|
|
341
|
+
}), u({
|
|
342
342
|
componentName: "VueUiRadar",
|
|
343
343
|
type: "datasetAttribute",
|
|
344
344
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
@@ -346,31 +346,30 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
346
346
|
});
|
|
347
347
|
return;
|
|
348
348
|
}
|
|
349
|
-
e.categories.length === 0 ?
|
|
349
|
+
e.categories.length === 0 ? u({
|
|
350
350
|
componentName: "VueUiRadar",
|
|
351
351
|
type: "datasetAttributeEmpty",
|
|
352
352
|
property: "categories",
|
|
353
353
|
debug: V.value
|
|
354
|
-
}) : e.categories.forEach((e, t) => {
|
|
355
|
-
|
|
354
|
+
}) : V.value && e.categories.forEach((e, t) => {
|
|
355
|
+
oe({
|
|
356
356
|
datasetObject: e,
|
|
357
357
|
requiredAttributes: ["name"]
|
|
358
358
|
}).forEach((e) => {
|
|
359
|
-
|
|
359
|
+
u({
|
|
360
360
|
componentName: "VueUiRadar",
|
|
361
361
|
type: "datasetAttribute",
|
|
362
362
|
property: `category.${e} at index ${t}`,
|
|
363
|
-
index: t
|
|
364
|
-
debug: V.value
|
|
363
|
+
index: t
|
|
365
364
|
});
|
|
366
365
|
});
|
|
367
|
-
}), [null, void 0].includes(e?.series) ?
|
|
366
|
+
}), [null, void 0].includes(e?.series) ? u({
|
|
368
367
|
componentName: "VueUiRadar",
|
|
369
368
|
type: "datasetAttribute",
|
|
370
369
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
371
370
|
debug: V.value
|
|
372
|
-
}) : e.series.forEach((e, t) => {
|
|
373
|
-
|
|
371
|
+
}) : V.value && e.series.forEach((e, t) => {
|
|
372
|
+
oe({
|
|
374
373
|
datasetObject: e,
|
|
375
374
|
requiredAttributes: [
|
|
376
375
|
"name",
|
|
@@ -378,80 +377,79 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
378
377
|
"target"
|
|
379
378
|
]
|
|
380
379
|
}).forEach((e) => {
|
|
381
|
-
|
|
380
|
+
u({
|
|
382
381
|
componentName: "VueUiRadar",
|
|
383
382
|
type: "datasetSerieAttribute",
|
|
384
383
|
key: "series",
|
|
385
384
|
property: e,
|
|
386
|
-
index: t
|
|
387
|
-
debug: V.value
|
|
385
|
+
index: t
|
|
388
386
|
});
|
|
389
387
|
});
|
|
390
388
|
});
|
|
391
389
|
}
|
|
392
|
-
|
|
390
|
+
Ue(() => L.value, () => fn(), {
|
|
393
391
|
deep: !0,
|
|
394
392
|
immediate: !0
|
|
395
393
|
});
|
|
396
|
-
let q =
|
|
397
|
-
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t =
|
|
394
|
+
let q = f(() => {
|
|
395
|
+
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = an.value ?? c;
|
|
398
396
|
return e.map((e, n) => ({
|
|
399
397
|
name: e?.name ?? "",
|
|
400
|
-
categoryId: `radar_category_${
|
|
401
|
-
color:
|
|
398
|
+
categoryId: `radar_category_${A.value}_${n}`,
|
|
399
|
+
color: ee(e?.color) || t[n] || c[n % c.length],
|
|
402
400
|
prefix: e?.prefix ?? "",
|
|
403
401
|
suffix: e?.suffix ?? ""
|
|
404
402
|
}));
|
|
405
|
-
}), J =
|
|
403
|
+
}), J = f(() => L.value.series.map((e, t) => ({
|
|
406
404
|
...e,
|
|
407
|
-
color:
|
|
408
|
-
serieId: `radar_serie_${
|
|
405
|
+
color: ee(e.color) || an.value[t] || c[t] || c[t % c.length],
|
|
406
|
+
serieId: `radar_serie_${A.value}_${t}`,
|
|
409
407
|
formatter: e.formatter || null,
|
|
410
408
|
absoluteIndex: t
|
|
411
409
|
})));
|
|
412
|
-
function
|
|
413
|
-
return J.value.length ? X.value.find((t) => t.name === e) || (
|
|
410
|
+
function pn(e) {
|
|
411
|
+
return J.value.length ? X.value.find((t) => t.name === e) || (V.value && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (V.value && console.warn("VueUiRadar - There are no series to show."), null);
|
|
414
412
|
}
|
|
415
|
-
function
|
|
416
|
-
let t =
|
|
417
|
-
t !== null && W.value.includes(t.absoluteIndex) &&
|
|
413
|
+
function mn(e) {
|
|
414
|
+
let t = pn(e);
|
|
415
|
+
t !== null && W.value.includes(t.absoluteIndex) && un(t.absoluteIndex);
|
|
418
416
|
}
|
|
419
|
-
function
|
|
420
|
-
let t =
|
|
421
|
-
t !== null && (W.value.includes(t.absoluteIndex) ||
|
|
417
|
+
function hn(e) {
|
|
418
|
+
let t = pn(e);
|
|
419
|
+
t !== null && (W.value.includes(t.absoluteIndex) || un(t.absoluteIndex));
|
|
422
420
|
}
|
|
423
|
-
let
|
|
424
|
-
function
|
|
425
|
-
return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target ||
|
|
421
|
+
let gn = f(() => Math.max(0, ...J.value.flatMap((e) => e.values)));
|
|
422
|
+
function _n(e) {
|
|
423
|
+
return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || gn.value || 1;
|
|
426
424
|
}
|
|
427
|
-
let
|
|
428
|
-
let n =
|
|
429
|
-
return
|
|
425
|
+
let vn = f(() => J.value.map((e, t) => {
|
|
426
|
+
let n = xn.value.coordinates[t];
|
|
427
|
+
return En({
|
|
430
428
|
centerX: U.value.width / 2,
|
|
431
429
|
centerY: U.value.height / 2,
|
|
432
430
|
apexX: n.x,
|
|
433
431
|
apexY: n.y,
|
|
434
|
-
proportion: (e.target || 0) /
|
|
432
|
+
proportion: (e.target || 0) / _n(e)
|
|
435
433
|
});
|
|
436
|
-
})),
|
|
434
|
+
})), yn = f(() => J.value.length), bn = f(() => Math.min(U.value.width, U.value.height) / 3), xn = f(() => s({
|
|
437
435
|
plot: {
|
|
438
436
|
x: U.value.width / 2,
|
|
439
437
|
y: U.value.height / 2
|
|
440
438
|
},
|
|
441
|
-
radius:
|
|
442
|
-
sides:
|
|
439
|
+
radius: bn.value,
|
|
440
|
+
sides: yn.value,
|
|
443
441
|
rotation: 0
|
|
444
|
-
})),
|
|
442
|
+
})), Sn = f(() => {
|
|
445
443
|
let e = [];
|
|
446
|
-
for (let t = 0; t <
|
|
444
|
+
for (let t = 0; t < bn.value; t += bn.value / F.value.style.chart.layout.grid.graduations) e.push(t);
|
|
447
445
|
return e;
|
|
448
|
-
}), Y =
|
|
449
|
-
let n = J.value[t], r = J.value[t].values.map((t) =>
|
|
446
|
+
}), Y = f(() => xn.value.coordinates.map((e, t) => {
|
|
447
|
+
let n = J.value[t], r = J.value[t].values.map((t) => En({
|
|
450
448
|
centerX: U.value.width / 2,
|
|
451
449
|
centerY: U.value.height / 2,
|
|
452
450
|
apexX: e.x,
|
|
453
451
|
apexY: e.y,
|
|
454
|
-
proportion: t /
|
|
452
|
+
proportion: t / _n(n)
|
|
455
453
|
}));
|
|
456
454
|
return {
|
|
457
455
|
...e,
|
|
@@ -460,11 +458,11 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
460
458
|
};
|
|
461
459
|
}).map((e) => ({
|
|
462
460
|
...e,
|
|
463
|
-
labelX:
|
|
464
|
-
labelY:
|
|
465
|
-
labelAnchor:
|
|
461
|
+
labelX: Cn(e).x,
|
|
462
|
+
labelY: Cn(e).y,
|
|
463
|
+
labelAnchor: Cn(e).anchor
|
|
466
464
|
})));
|
|
467
|
-
function
|
|
465
|
+
function Cn({ x: e, y: t }) {
|
|
468
466
|
let n = "middle";
|
|
469
467
|
return e = Math.round(e), t = Math.round(t), e > U.value.width / 2 && (e += 12, n = "start"), e < U.value.width / 2 && (e -= 12, n = "end"), t > U.value.height / 2 + 1 && (t += 20), t < U.value.height / 2 - 1 && (t -= 12), t === U.value.height / 2 && (t += 4), {
|
|
470
468
|
x: e,
|
|
@@ -472,49 +470,49 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
472
470
|
anchor: n
|
|
473
471
|
};
|
|
474
472
|
}
|
|
475
|
-
let
|
|
473
|
+
let wn = f({
|
|
476
474
|
get: () => F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
477
475
|
set: (e) => e
|
|
478
|
-
}), { autoSizeLabels:
|
|
476
|
+
}), { autoSizeLabels: Tn } = Ae({
|
|
479
477
|
svgRef: R,
|
|
480
478
|
fontSize: F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
481
479
|
minFontSize: 6,
|
|
482
|
-
sizeRef:
|
|
480
|
+
sizeRef: wn,
|
|
483
481
|
labelClass: ".vue-ui-radar-apex-label"
|
|
484
482
|
});
|
|
485
|
-
function
|
|
483
|
+
function En({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
486
484
|
return {
|
|
487
485
|
x: e + (n - e) * i,
|
|
488
486
|
y: t + (r - t) * i
|
|
489
487
|
};
|
|
490
488
|
}
|
|
491
|
-
let X =
|
|
492
|
-
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target ||
|
|
489
|
+
let X = f(() => {
|
|
490
|
+
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || gn.value)));
|
|
493
491
|
return q.value.map((t, n) => {
|
|
494
|
-
let r =
|
|
492
|
+
let r = ne(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
|
|
495
493
|
return {
|
|
496
494
|
...t,
|
|
497
495
|
absoluteIndex: n,
|
|
498
496
|
totalProportion: r,
|
|
499
497
|
shape: "circle",
|
|
500
498
|
opacity: W.value.includes(n) ? .5 : 1,
|
|
501
|
-
segregate: () =>
|
|
499
|
+
segregate: () => un(n),
|
|
502
500
|
isSegregated: W.value.includes(n),
|
|
503
|
-
display: `${t.name}: ${
|
|
501
|
+
display: `${t.name}: ${l({
|
|
504
502
|
v: (r ?? 0) * 100,
|
|
505
503
|
s: "%",
|
|
506
504
|
r: F.value.style.chart.legend.roundingPercentage
|
|
507
505
|
})}`
|
|
508
506
|
};
|
|
509
507
|
});
|
|
510
|
-
}),
|
|
508
|
+
}), Dn = f(() => ({
|
|
511
509
|
cy: "radar-div-legend",
|
|
512
510
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
513
511
|
color: F.value.style.chart.legend.color,
|
|
514
512
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
515
513
|
paddingBottom: 12,
|
|
516
514
|
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
517
|
-
})), Z =
|
|
515
|
+
})), Z = f(() => {
|
|
518
516
|
let e = [
|
|
519
517
|
{
|
|
520
518
|
name: F.value.translations.datapoint,
|
|
@@ -530,18 +528,18 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
530
528
|
head: e,
|
|
531
529
|
body: L.value.series.map((e) => [
|
|
532
530
|
e.name,
|
|
533
|
-
|
|
531
|
+
ie(e.formatter, e.target, l({
|
|
534
532
|
p: e.prefix,
|
|
535
533
|
v: e.target,
|
|
536
534
|
s: e.suffix,
|
|
537
535
|
r: F.value.table.td.roundingValue
|
|
538
536
|
})),
|
|
539
|
-
...e.values.map((t, n) => `${
|
|
537
|
+
...e.values.map((t, n) => `${ie(e.formatter, t, l({
|
|
540
538
|
p: q.value[n]?.prefix ?? "",
|
|
541
539
|
v: t,
|
|
542
540
|
s: q.value[n]?.suffix ?? "",
|
|
543
541
|
r: F.value.table.td.roundingValue
|
|
544
|
-
}))} (${isNaN(t / e.target) ? "" :
|
|
542
|
+
}))} (${isNaN(t / e.target) ? "" : l({
|
|
545
543
|
v: t / e.target * 100,
|
|
546
544
|
s: "%",
|
|
547
545
|
r: F.value.table.td.roundingPercentage
|
|
@@ -562,26 +560,26 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
562
560
|
},
|
|
563
561
|
colNames: e
|
|
564
562
|
};
|
|
565
|
-
}), Q =
|
|
566
|
-
function
|
|
567
|
-
|
|
563
|
+
}), Q = C(null), On = C([]), kn = C(null);
|
|
564
|
+
function An(e, t) {
|
|
565
|
+
j.value = !1, Q.value = null, P.value = null, Wt.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
568
566
|
datapoint: e,
|
|
569
567
|
seriesIndex: t
|
|
570
568
|
});
|
|
571
569
|
}
|
|
572
|
-
function
|
|
570
|
+
function jn(e, t) {
|
|
573
571
|
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
574
572
|
datapoint: e,
|
|
575
573
|
seriesIndex: t
|
|
576
574
|
});
|
|
577
575
|
}
|
|
578
|
-
function
|
|
576
|
+
function Mn(e, t, n = "pointer") {
|
|
579
577
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
580
578
|
datapoint: e,
|
|
581
579
|
seriesIndex: t
|
|
582
|
-
}),
|
|
580
|
+
}), Wt.value = n, P.value = t;
|
|
583
581
|
let r = q.value.slice();
|
|
584
|
-
|
|
582
|
+
On.value = [], Q.value = t, j.value = !0, kn.value = {
|
|
585
583
|
datapoint: e,
|
|
586
584
|
seriesIndex: t,
|
|
587
585
|
series: {
|
|
@@ -592,7 +590,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
592
590
|
config: F.value
|
|
593
591
|
};
|
|
594
592
|
let i = F.value.style.chart.tooltip.customFormat;
|
|
595
|
-
if (
|
|
593
|
+
if (ue(i) && re(() => i({
|
|
596
594
|
seriesIndex: t,
|
|
597
595
|
datapoint: e,
|
|
598
596
|
series: {
|
|
@@ -602,7 +600,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
602
600
|
},
|
|
603
601
|
config: F.value
|
|
604
602
|
}))) {
|
|
605
|
-
|
|
603
|
+
Mt.value = i({
|
|
606
604
|
seriesIndex: t,
|
|
607
605
|
datapoint: e,
|
|
608
606
|
series: {
|
|
@@ -614,31 +612,31 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
614
612
|
});
|
|
615
613
|
return;
|
|
616
614
|
}
|
|
617
|
-
|
|
615
|
+
Mt.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
618
616
|
for (let t = 0; t < e.values.length; t += 1) if (!W.value.includes(t)) {
|
|
619
|
-
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o =
|
|
617
|
+
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o = ie(e.formatter, i, l({
|
|
620
618
|
p: q.value[t].prefix,
|
|
621
619
|
v: i,
|
|
622
620
|
s: q.value[t].suffix,
|
|
623
621
|
r: F.value.style.chart.tooltip.roundingValue
|
|
624
|
-
}), { datapoint: e }),
|
|
622
|
+
}), { datapoint: e }), s = l({
|
|
625
623
|
v: a,
|
|
626
624
|
s: "%",
|
|
627
625
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
628
|
-
}),
|
|
629
|
-
|
|
626
|
+
}), c = F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${o} (${s})` : F.value.style.chart.tooltip.showValue && !F.value.style.chart.tooltip.showPercentage ? o : !F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${s}` : "";
|
|
627
|
+
On.value.push({
|
|
630
628
|
name: n?.name ?? `#${t + 1}`,
|
|
631
629
|
value: e.values[t] / e.target * 100,
|
|
632
630
|
color: n?.color,
|
|
633
|
-
suffix:
|
|
631
|
+
suffix: c,
|
|
634
632
|
prefix: "",
|
|
635
633
|
rounding: F.value.style.chart.tooltip.roundingPercentage,
|
|
636
634
|
formatter: e.formatter
|
|
637
635
|
});
|
|
638
636
|
}
|
|
639
637
|
}
|
|
640
|
-
function
|
|
641
|
-
|
|
638
|
+
function Nn(e = null) {
|
|
639
|
+
Le(() => {
|
|
642
640
|
let n = [
|
|
643
641
|
[F.value.style.chart.title.text],
|
|
644
642
|
[F.value.style.chart.title.subtitle.text],
|
|
@@ -651,31 +649,31 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
651
649
|
e.name,
|
|
652
650
|
e.target,
|
|
653
651
|
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
654
|
-
]), o =
|
|
655
|
-
e ? e(
|
|
656
|
-
csvContent:
|
|
652
|
+
]), o = n.concat([r]).concat(a), s = i(o);
|
|
653
|
+
e ? e(s) : t({
|
|
654
|
+
csvContent: s,
|
|
657
655
|
title: F.value.style.chart.title.text || "vue-ui-radar"
|
|
658
656
|
});
|
|
659
657
|
});
|
|
660
658
|
}
|
|
661
|
-
let $ =
|
|
662
|
-
function
|
|
663
|
-
$.value = e,
|
|
659
|
+
let $ = C(!1);
|
|
660
|
+
function Pn(e) {
|
|
661
|
+
$.value = e, Nt.value += 1;
|
|
664
662
|
}
|
|
665
|
-
function
|
|
663
|
+
function Fn() {
|
|
666
664
|
H.value.showTable = !H.value.showTable;
|
|
667
665
|
}
|
|
668
|
-
function
|
|
666
|
+
function In() {
|
|
669
667
|
H.value.showTooltip = !H.value.showTooltip;
|
|
670
668
|
}
|
|
671
|
-
let
|
|
672
|
-
function
|
|
673
|
-
|
|
669
|
+
let Ln = C(!1);
|
|
670
|
+
function Rn() {
|
|
671
|
+
Ln.value = !Ln.value;
|
|
674
672
|
}
|
|
675
|
-
async function
|
|
676
|
-
if (!
|
|
677
|
-
let { width: t, height: n } =
|
|
678
|
-
domElement:
|
|
673
|
+
async function zn({ scale: e = 2 } = {}) {
|
|
674
|
+
if (!M.value) return;
|
|
675
|
+
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
|
|
676
|
+
domElement: M.value,
|
|
679
677
|
base64: !0,
|
|
680
678
|
img: !0,
|
|
681
679
|
scale: e
|
|
@@ -689,10 +687,10 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
689
687
|
aspectRatio: r
|
|
690
688
|
};
|
|
691
689
|
}
|
|
692
|
-
let
|
|
690
|
+
let Bn = f(() => {
|
|
693
691
|
let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
|
|
694
692
|
return {
|
|
695
|
-
component: e ?
|
|
693
|
+
component: e ? Dt : St,
|
|
696
694
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
697
695
|
props: e ? {
|
|
698
696
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -700,7 +698,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
700
698
|
headerColor: F.value.table.th.color,
|
|
701
699
|
headerBg: F.value.table.th.backgroundColor,
|
|
702
700
|
isFullscreen: $.value,
|
|
703
|
-
fullscreenParent:
|
|
701
|
+
fullscreenParent: M.value,
|
|
704
702
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
705
703
|
isCursorPointer: I.value
|
|
706
704
|
} : {
|
|
@@ -720,51 +718,26 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
720
718
|
}
|
|
721
719
|
};
|
|
722
720
|
});
|
|
723
|
-
|
|
724
|
-
F.value.table.show || (e && F.value.table.useDialog &&
|
|
721
|
+
Ue(() => H.value.showTable, (e) => {
|
|
722
|
+
F.value.table.show || (e && F.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
725
723
|
});
|
|
726
|
-
function
|
|
727
|
-
H.value.showTable = !1,
|
|
724
|
+
function Vn() {
|
|
725
|
+
H.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
|
|
728
726
|
}
|
|
729
|
-
let
|
|
727
|
+
let Hn = f(() => X.value.map((e) => ({
|
|
730
728
|
...e,
|
|
731
729
|
name: e.display
|
|
732
|
-
}))),
|
|
730
|
+
}))), Un = f(() => F.value.style.chart.backgroundColor), Wn = f(() => F.value.style.chart.legend), Gn = f(() => F.value.style.chart.title), { isCallbackImaging: Kn, isCallbackSvg: qn, generateSvg: Jn, onGenerateImage: Yn } = ve({
|
|
733
731
|
svg: R,
|
|
734
|
-
title:
|
|
735
|
-
legend:
|
|
736
|
-
legendItems:
|
|
737
|
-
backgroundColor:
|
|
732
|
+
title: Gn,
|
|
733
|
+
legend: Wn,
|
|
734
|
+
legendItems: Hn,
|
|
735
|
+
backgroundColor: Un,
|
|
736
|
+
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
737
|
+
generateImage: nn
|
|
738
738
|
});
|
|
739
|
-
async function
|
|
740
|
-
|
|
741
|
-
try {
|
|
742
|
-
if (e) {
|
|
743
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Jn();
|
|
744
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
745
|
-
blob: e,
|
|
746
|
-
url: t,
|
|
747
|
-
text: n,
|
|
748
|
-
dataUrl: r
|
|
749
|
-
}));
|
|
750
|
-
} else await Promise.resolve(qn());
|
|
751
|
-
} finally {
|
|
752
|
-
Gt.value = !1;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
function Xn(e) {
|
|
756
|
-
if (e?.stage === "start") {
|
|
757
|
-
Wt.value = !0;
|
|
758
|
-
return;
|
|
759
|
-
}
|
|
760
|
-
if (e?.stage === "end") {
|
|
761
|
-
Wt.value = !1;
|
|
762
|
-
return;
|
|
763
|
-
}
|
|
764
|
-
an();
|
|
765
|
-
}
|
|
766
|
-
async function Zn() {
|
|
767
|
-
if (ln("copyAlt", {
|
|
739
|
+
async function Xn() {
|
|
740
|
+
if (sn("copyAlt", {
|
|
768
741
|
config: F.value,
|
|
769
742
|
dataset: Y.value
|
|
770
743
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -776,78 +749,78 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
776
749
|
dataset: Y.value
|
|
777
750
|
}));
|
|
778
751
|
}
|
|
779
|
-
function
|
|
780
|
-
|
|
752
|
+
function Zn() {
|
|
753
|
+
P.value = null, Gt.value = !0;
|
|
781
754
|
}
|
|
782
|
-
function
|
|
783
|
-
|
|
755
|
+
function Qn() {
|
|
756
|
+
P.value = null, Wt.value = "pointer", j.value = !1, Q.value = null, Gt.value = !1;
|
|
784
757
|
}
|
|
785
|
-
function
|
|
758
|
+
function $n(e) {
|
|
786
759
|
if (!Number.isFinite(e) || !R.value) return;
|
|
787
760
|
let t = Y.value[e];
|
|
788
761
|
if (!t) return;
|
|
789
762
|
let n = R.value.getBoundingClientRect();
|
|
790
|
-
|
|
763
|
+
Ut.value = {
|
|
791
764
|
x: n.left + t.labelX / U.value.width * n.width,
|
|
792
765
|
y: n.top + t.labelY / U.value.height * n.height
|
|
793
766
|
};
|
|
794
767
|
}
|
|
795
|
-
function
|
|
796
|
-
if (!R.value ||
|
|
768
|
+
function er(e) {
|
|
769
|
+
if (!R.value || Ln.value || document.activeElement !== R.value || !Y.value.length) return;
|
|
797
770
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
798
771
|
if (!t && !n && !r && !i) return;
|
|
799
772
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
800
|
-
|
|
773
|
+
P.value = null, Wt.value = "pointer", j.value = !1, Q.value = null;
|
|
801
774
|
return;
|
|
802
775
|
}
|
|
803
776
|
if (r) {
|
|
804
|
-
if (
|
|
805
|
-
let e = Y.value[
|
|
777
|
+
if (P.value === null) return;
|
|
778
|
+
let e = Y.value[P.value];
|
|
806
779
|
if (!e) return;
|
|
807
|
-
|
|
780
|
+
jn(e, P.value);
|
|
808
781
|
return;
|
|
809
782
|
}
|
|
810
|
-
let a =
|
|
783
|
+
let a = P.value;
|
|
811
784
|
a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1));
|
|
812
785
|
let o = Y.value[a];
|
|
813
|
-
o && (
|
|
786
|
+
o && (P.value = a, $n(a), Mn(o, a, "keyboard"));
|
|
814
787
|
}
|
|
815
|
-
let
|
|
788
|
+
let tr = f(() => ({
|
|
816
789
|
headers: Z.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
817
790
|
rows: Z.value?.body ?? []
|
|
818
791
|
}));
|
|
819
|
-
return
|
|
820
|
-
getData:
|
|
821
|
-
getImage:
|
|
822
|
-
generatePdf:
|
|
823
|
-
generateCsv:
|
|
824
|
-
generateImage:
|
|
825
|
-
generateSvg:
|
|
826
|
-
hideSeries:
|
|
827
|
-
showSeries:
|
|
828
|
-
toggleTable:
|
|
829
|
-
toggleTooltip:
|
|
830
|
-
toggleAnnotator:
|
|
831
|
-
toggleFullscreen:
|
|
832
|
-
copyAlt:
|
|
833
|
-
}), (e, t) => (
|
|
834
|
-
class:
|
|
792
|
+
return xe({
|
|
793
|
+
getData: dn,
|
|
794
|
+
getImage: zn,
|
|
795
|
+
generatePdf: tn,
|
|
796
|
+
generateCsv: Nn,
|
|
797
|
+
generateImage: nn,
|
|
798
|
+
generateSvg: Jn,
|
|
799
|
+
hideSeries: hn,
|
|
800
|
+
showSeries: mn,
|
|
801
|
+
toggleTable: Fn,
|
|
802
|
+
toggleTooltip: In,
|
|
803
|
+
toggleAnnotator: Rn,
|
|
804
|
+
toggleFullscreen: Pn,
|
|
805
|
+
copyAlt: Xn
|
|
806
|
+
}), (e, t) => (S(), h("div", {
|
|
807
|
+
class: y(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
835
808
|
ref_key: "radarChart",
|
|
836
|
-
ref:
|
|
837
|
-
id: `vue-ui-radar_${
|
|
838
|
-
style:
|
|
839
|
-
onMouseenter: t[2] ||= () =>
|
|
840
|
-
onMouseleave: t[3] ||= () =>
|
|
809
|
+
ref: M,
|
|
810
|
+
id: `vue-ui-radar_${A.value}`,
|
|
811
|
+
style: x(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
812
|
+
onMouseenter: t[2] ||= () => D(Yt)(!0),
|
|
813
|
+
onMouseleave: t[3] ||= () => D(Yt)(!1)
|
|
841
814
|
}, [
|
|
842
|
-
|
|
843
|
-
id: `chart-instructions-${
|
|
815
|
+
g("div", {
|
|
816
|
+
id: `chart-instructions-${A.value}`,
|
|
844
817
|
class: "sr-only"
|
|
845
|
-
}, [
|
|
846
|
-
|
|
818
|
+
}, [g("p", null, E(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
|
|
819
|
+
tr.value?.rows?.length ? (S(), p(Ee, {
|
|
847
820
|
key: 0,
|
|
848
|
-
uid:
|
|
849
|
-
head:
|
|
850
|
-
body:
|
|
821
|
+
uid: A.value,
|
|
822
|
+
head: tr.value.headers,
|
|
823
|
+
body: tr.value.rows,
|
|
851
824
|
notice: F.value.a11y.translations.tableAvailable,
|
|
852
825
|
caption: F.value.a11y.translations.tableCaption
|
|
853
826
|
}, null, 8, [
|
|
@@ -856,22 +829,22 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
856
829
|
"body",
|
|
857
830
|
"notice",
|
|
858
831
|
"caption"
|
|
859
|
-
])) :
|
|
860
|
-
F.value.userOptions.buttons.annotator ? (
|
|
832
|
+
])) : m("", !0),
|
|
833
|
+
F.value.userOptions.buttons.annotator ? (S(), p(D(wt), {
|
|
861
834
|
key: 1,
|
|
862
|
-
svgRef:
|
|
835
|
+
svgRef: D(R),
|
|
863
836
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
864
837
|
color: F.value.style.chart.color,
|
|
865
|
-
active:
|
|
838
|
+
active: Ln.value,
|
|
866
839
|
isCursorPointer: I.value,
|
|
867
|
-
onClose:
|
|
840
|
+
onClose: Rn
|
|
868
841
|
}, {
|
|
869
|
-
"annotator-action-close":
|
|
870
|
-
"annotator-action-color":
|
|
871
|
-
"annotator-action-draw":
|
|
872
|
-
"annotator-action-undo":
|
|
873
|
-
"annotator-action-redo":
|
|
874
|
-
"annotator-action-delete":
|
|
842
|
+
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
843
|
+
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
844
|
+
"annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
845
|
+
"annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
846
|
+
"annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
847
|
+
"annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
875
848
|
_: 3
|
|
876
849
|
}, 8, [
|
|
877
850
|
"svgRef",
|
|
@@ -879,21 +852,21 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
879
852
|
"color",
|
|
880
853
|
"active",
|
|
881
854
|
"isCursorPointer"
|
|
882
|
-
])) :
|
|
883
|
-
|
|
855
|
+
])) : m("", !0),
|
|
856
|
+
rn.value ? (S(), h("div", {
|
|
884
857
|
key: 2,
|
|
885
858
|
ref_key: "noTitle",
|
|
886
|
-
ref:
|
|
859
|
+
ref: Lt,
|
|
887
860
|
class: "vue-data-ui-no-title-space",
|
|
888
861
|
style: "height:36px; width: 100%;background:transparent"
|
|
889
|
-
}, null, 512)) :
|
|
890
|
-
F.value.style.chart.title.text ? (
|
|
862
|
+
}, null, 512)) : m("", !0),
|
|
863
|
+
F.value.style.chart.title.text ? (S(), h("div", {
|
|
891
864
|
key: 3,
|
|
892
865
|
ref_key: "chartTitle",
|
|
893
|
-
ref:
|
|
866
|
+
ref: Pt,
|
|
894
867
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
895
|
-
}, [(
|
|
896
|
-
key: `title_${
|
|
868
|
+
}, [(S(), p(be, {
|
|
869
|
+
key: `title_${Rt.value}`,
|
|
897
870
|
config: {
|
|
898
871
|
title: {
|
|
899
872
|
cy: "radar-div-title",
|
|
@@ -904,17 +877,17 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
904
877
|
...F.value.style.chart.title.subtitle
|
|
905
878
|
}
|
|
906
879
|
}
|
|
907
|
-
}, null, 8, ["config"]))], 512)) :
|
|
908
|
-
|
|
909
|
-
F.value.userOptions.show &&
|
|
880
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
881
|
+
g("div", { id: `legend-top-${A.value}` }, null, 8, qe),
|
|
882
|
+
F.value.userOptions.show && jt.value && (D(Xt) || D(Jt)) ? (S(), p(D(Tt), {
|
|
910
883
|
ref_key: "userOptionsRef",
|
|
911
|
-
ref:
|
|
912
|
-
key: `user_options_${
|
|
884
|
+
ref: Ht,
|
|
885
|
+
key: `user_options_${Nt.value}`,
|
|
913
886
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
914
887
|
color: F.value.style.chart.color,
|
|
915
|
-
isImaging:
|
|
916
|
-
isPrinting:
|
|
917
|
-
uid:
|
|
888
|
+
isImaging: D(en),
|
|
889
|
+
isPrinting: D($t),
|
|
890
|
+
uid: A.value,
|
|
918
891
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
919
892
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
920
893
|
hasImg: F.value.userOptions.buttons.img,
|
|
@@ -926,28 +899,28 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
926
899
|
isFullscreen: $.value,
|
|
927
900
|
isTooltip: H.value.showTooltip,
|
|
928
901
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
929
|
-
chartElement:
|
|
902
|
+
chartElement: M.value,
|
|
930
903
|
position: F.value.userOptions.position,
|
|
931
904
|
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
932
|
-
isAnnotation:
|
|
905
|
+
isAnnotation: Ln.value,
|
|
933
906
|
callbacks: F.value.userOptions.callbacks,
|
|
934
907
|
printScale: F.value.userOptions.print.scale,
|
|
935
908
|
tableDialog: F.value.table.useDialog,
|
|
936
909
|
isCursorPointer: I.value,
|
|
937
|
-
onToggleFullscreen:
|
|
938
|
-
onGeneratePdf:
|
|
939
|
-
onGenerateCsv:
|
|
940
|
-
onGenerateImage:
|
|
941
|
-
onGenerateSvg:
|
|
942
|
-
onToggleTable:
|
|
943
|
-
onToggleTooltip:
|
|
944
|
-
onToggleAnnotator:
|
|
945
|
-
onCopyAlt:
|
|
946
|
-
style:
|
|
947
|
-
},
|
|
910
|
+
onToggleFullscreen: Pn,
|
|
911
|
+
onGeneratePdf: D(tn),
|
|
912
|
+
onGenerateCsv: Nn,
|
|
913
|
+
onGenerateImage: D(Yn),
|
|
914
|
+
onGenerateSvg: D(Jn),
|
|
915
|
+
onToggleTable: Fn,
|
|
916
|
+
onToggleTooltip: In,
|
|
917
|
+
onToggleAnnotator: Rn,
|
|
918
|
+
onCopyAlt: Xn,
|
|
919
|
+
style: x({ visibility: D(Xt) ? D(Jt) ? "visible" : "hidden" : "visible" })
|
|
920
|
+
}, Ne({ _: 2 }, [
|
|
948
921
|
e.$slots.menuIcon ? {
|
|
949
922
|
name: "menuIcon",
|
|
950
|
-
fn:
|
|
923
|
+
fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
|
|
951
924
|
isOpen: t,
|
|
952
925
|
color: n
|
|
953
926
|
})), void 0, !0)]),
|
|
@@ -955,37 +928,37 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
955
928
|
} : void 0,
|
|
956
929
|
e.$slots.optionTooltip ? {
|
|
957
930
|
name: "optionTooltip",
|
|
958
|
-
fn:
|
|
931
|
+
fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
959
932
|
key: "1"
|
|
960
933
|
} : void 0,
|
|
961
934
|
e.$slots.optionPdf ? {
|
|
962
935
|
name: "optionPdf",
|
|
963
|
-
fn:
|
|
936
|
+
fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
964
937
|
key: "2"
|
|
965
938
|
} : void 0,
|
|
966
939
|
e.$slots.optionCsv ? {
|
|
967
940
|
name: "optionCsv",
|
|
968
|
-
fn:
|
|
941
|
+
fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
969
942
|
key: "3"
|
|
970
943
|
} : void 0,
|
|
971
944
|
e.$slots.optionImg ? {
|
|
972
945
|
name: "optionImg",
|
|
973
|
-
fn:
|
|
946
|
+
fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
974
947
|
key: "4"
|
|
975
948
|
} : void 0,
|
|
976
949
|
e.$slots.optionSvg ? {
|
|
977
950
|
name: "optionSvg",
|
|
978
|
-
fn:
|
|
951
|
+
fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
979
952
|
key: "5"
|
|
980
953
|
} : void 0,
|
|
981
954
|
e.$slots.optionTable ? {
|
|
982
955
|
name: "optionTable",
|
|
983
|
-
fn:
|
|
956
|
+
fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
984
957
|
key: "6"
|
|
985
958
|
} : void 0,
|
|
986
959
|
e.$slots.optionFullscreen ? {
|
|
987
960
|
name: "optionFullscreen",
|
|
988
|
-
fn:
|
|
961
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
|
|
989
962
|
toggleFullscreen: t,
|
|
990
963
|
isFullscreen: n
|
|
991
964
|
})), void 0, !0)]),
|
|
@@ -993,7 +966,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
993
966
|
} : void 0,
|
|
994
967
|
e.$slots.optionAnnotator ? {
|
|
995
968
|
name: "optionAnnotator",
|
|
996
|
-
fn:
|
|
969
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
|
|
997
970
|
toggleAnnotator: t,
|
|
998
971
|
isAnnotator: n
|
|
999
972
|
})), void 0, !0)]),
|
|
@@ -1001,203 +974,203 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1001
974
|
} : void 0,
|
|
1002
975
|
e.$slots.optionAltCopy ? {
|
|
1003
976
|
name: "optionAltCopy",
|
|
1004
|
-
fn:
|
|
977
|
+
fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
1005
978
|
key: "9"
|
|
1006
979
|
} : void 0,
|
|
1007
980
|
e.$slots["custom-menu-before"] ? {
|
|
1008
981
|
name: "custom-menu-before",
|
|
1009
|
-
fn:
|
|
982
|
+
fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1010
983
|
key: "10"
|
|
1011
984
|
} : void 0,
|
|
1012
985
|
e.$slots["custom-menu-after"] ? {
|
|
1013
986
|
name: "custom-menu-after",
|
|
1014
|
-
fn:
|
|
987
|
+
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1015
988
|
key: "11"
|
|
1016
989
|
} : void 0
|
|
1017
|
-
]), 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("."))) :
|
|
1018
|
-
|
|
990
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
991
|
+
g("div", Je, [(S(), h("svg", {
|
|
1019
992
|
ref_key: "svgRef",
|
|
1020
993
|
ref: R,
|
|
1021
|
-
xmlns:
|
|
1022
|
-
"aria-describedby": `chart-instructions-${
|
|
1023
|
-
class:
|
|
994
|
+
xmlns: D(ce),
|
|
995
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
996
|
+
class: y({
|
|
1024
997
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1025
998
|
"vue-data-ui-fulscreen--off": !$.value
|
|
1026
999
|
}),
|
|
1027
1000
|
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
1028
|
-
style:
|
|
1001
|
+
style: x(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
|
|
1029
1002
|
tabindex: "0",
|
|
1030
|
-
onFocus:
|
|
1031
|
-
onBlur:
|
|
1032
|
-
onKeydown:
|
|
1003
|
+
onFocus: Zn,
|
|
1004
|
+
onBlur: Qn,
|
|
1005
|
+
onKeydown: er
|
|
1033
1006
|
}, [
|
|
1034
|
-
|
|
1035
|
-
e.$slots["chart-background"] ? (
|
|
1007
|
+
Fe(D(Et)),
|
|
1008
|
+
e.$slots["chart-background"] ? (S(), h("foreignObject", {
|
|
1036
1009
|
key: 0,
|
|
1037
1010
|
x: 0,
|
|
1038
1011
|
y: 0,
|
|
1039
1012
|
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
1040
1013
|
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
1041
1014
|
style: { pointerEvents: "none" }
|
|
1042
|
-
}, [
|
|
1043
|
-
|
|
1015
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : m("", !0),
|
|
1016
|
+
g("defs", null, [(S(!0), h(d, null, w(q.value, (e, t) => (S(), p(we, {
|
|
1044
1017
|
t: "radial",
|
|
1045
1018
|
cx: "50%",
|
|
1046
1019
|
cy: "50%",
|
|
1047
1020
|
r: "50%",
|
|
1048
1021
|
fx: "50%",
|
|
1049
1022
|
fy: "50%",
|
|
1050
|
-
id: `radar_gradient_${
|
|
1051
|
-
key: `radar_gradient_${
|
|
1023
|
+
id: `radar_gradient_${A.value}_${t}`,
|
|
1024
|
+
key: `radar_gradient_${A.value}_${t}`,
|
|
1052
1025
|
stops: [[
|
|
1053
1026
|
"0%",
|
|
1054
|
-
|
|
1027
|
+
D(r)(D(te)(e.color, .05), F.value.style.chart.layout.dataPolygon.opacity),
|
|
1055
1028
|
1
|
|
1056
1029
|
], [
|
|
1057
1030
|
"100%",
|
|
1058
|
-
|
|
1031
|
+
D(r)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1059
1032
|
1
|
|
1060
1033
|
]]
|
|
1061
1034
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1062
|
-
F.value.style.chart.layout.grid.show ? (
|
|
1035
|
+
F.value.style.chart.layout.grid.show ? (S(), h("g", Ze, [(S(!0), h(d, null, w(Y.value, (e) => (S(), h("line", {
|
|
1063
1036
|
x1: U.value.width / 2,
|
|
1064
1037
|
y1: U.value.height / 2,
|
|
1065
1038
|
x2: e.x,
|
|
1066
1039
|
y2: e.y,
|
|
1067
1040
|
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1068
1041
|
"stroke-width": F.value.style.chart.layout.grid.strokeWidth
|
|
1069
|
-
}, null, 8,
|
|
1070
|
-
d:
|
|
1042
|
+
}, null, 8, Qe))), 256)), F.value.style.chart.layout.grid.graduations > 0 ? (S(), h("g", $e, [(S(!0), h(d, null, w(Sn.value, (e) => (S(), h("path", {
|
|
1043
|
+
d: D(s)({
|
|
1071
1044
|
plot: {
|
|
1072
1045
|
x: U.value.width / 2,
|
|
1073
1046
|
y: U.value.height / 2
|
|
1074
1047
|
},
|
|
1075
1048
|
radius: e,
|
|
1076
|
-
sides:
|
|
1049
|
+
sides: yn.value,
|
|
1077
1050
|
rotation: 0
|
|
1078
1051
|
}).path,
|
|
1079
1052
|
fill: "none",
|
|
1080
1053
|
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1081
1054
|
"stroke-width": F.value.style.chart.layout.grid.strokeWidth
|
|
1082
|
-
}, null, 8,
|
|
1083
|
-
|
|
1084
|
-
d:
|
|
1055
|
+
}, null, 8, et))), 256))])) : m("", !0)])) : m("", !0),
|
|
1056
|
+
g("path", {
|
|
1057
|
+
d: xn.value.path,
|
|
1085
1058
|
fill: "none",
|
|
1086
1059
|
stroke: F.value.style.chart.layout.outerPolygon.stroke,
|
|
1087
1060
|
"stroke-width": F.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
1088
1061
|
"stroke-linejoin": "round",
|
|
1089
1062
|
"stroke-linecap": "round"
|
|
1090
|
-
}, null, 8,
|
|
1091
|
-
F.value.style.chart.layout.labels.dataLabels.show ? (
|
|
1063
|
+
}, null, 8, tt),
|
|
1064
|
+
F.value.style.chart.layout.labels.dataLabels.show ? (S(), h("g", nt, [(S(!0), h(d, null, w(Y.value, (e, t) => (S(), h("text", {
|
|
1092
1065
|
class: "vue-ui-radar-apex-label",
|
|
1093
1066
|
x: e.labelX,
|
|
1094
1067
|
y: e.labelY,
|
|
1095
1068
|
"text-anchor": e.labelAnchor,
|
|
1096
1069
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1097
1070
|
fill: F.value.style.chart.layout.labels.dataLabels.color,
|
|
1098
|
-
onMouseenter: (n) =>
|
|
1099
|
-
onMouseleave: (n) =>
|
|
1100
|
-
onClick: (n) =>
|
|
1101
|
-
},
|
|
1102
|
-
(
|
|
1071
|
+
onMouseenter: (n) => Mn(e, t, "pointer"),
|
|
1072
|
+
onMouseleave: (n) => An(e, t),
|
|
1073
|
+
onClick: (n) => jn(e, t)
|
|
1074
|
+
}, E(e.name), 41, rt))), 256))])) : m("", !0),
|
|
1075
|
+
(S(!0), h(d, null, w(q.value, (e, t) => (S(), h("g", null, [g("g", null, [F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (S(), h("polygon", {
|
|
1103
1076
|
key: 0,
|
|
1104
|
-
points:
|
|
1077
|
+
points: D(n)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1105
1078
|
stroke: F.value.style.chart.backgroundColor,
|
|
1106
1079
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1107
1080
|
fill: "none",
|
|
1108
|
-
class:
|
|
1081
|
+
class: y({
|
|
1109
1082
|
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1110
1083
|
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1111
1084
|
})
|
|
1112
|
-
}, null, 10,
|
|
1085
|
+
}, null, 10, it)) : m("", !0), F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (S(), h("polygon", {
|
|
1113
1086
|
key: 1,
|
|
1114
|
-
points:
|
|
1087
|
+
points: D(n)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1115
1088
|
stroke: e.color,
|
|
1116
1089
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1117
|
-
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${
|
|
1118
|
-
class:
|
|
1090
|
+
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${A.value}_${t})` : D(r)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1091
|
+
class: y({
|
|
1119
1092
|
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1120
1093
|
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1121
1094
|
})
|
|
1122
|
-
}, null, 10,
|
|
1123
|
-
F.value.style.chart.layout.targetReference.show ? (
|
|
1095
|
+
}, null, 10, at)) : m("", !0)])]))), 256)),
|
|
1096
|
+
F.value.style.chart.layout.targetReference.show ? (S(), h("path", {
|
|
1124
1097
|
key: 3,
|
|
1125
1098
|
class: "vue-ui-radar-target-polygon",
|
|
1126
|
-
d: `M${
|
|
1099
|
+
d: `M${D(n)(vn.value, !1, !0)}Z`,
|
|
1127
1100
|
fill: "none",
|
|
1128
1101
|
stroke: F.value.style.chart.layout.targetReference.stroke,
|
|
1129
1102
|
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth,
|
|
1130
1103
|
"stroke-linejoin": "round",
|
|
1131
1104
|
"stroke-linecap": "round",
|
|
1132
1105
|
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray
|
|
1133
|
-
}, null, 8,
|
|
1134
|
-
F.value.style.chart.layout.plots.show ? (
|
|
1106
|
+
}, null, 8, ot)) : m("", !0),
|
|
1107
|
+
F.value.style.chart.layout.plots.show ? (S(), h("g", st, [(S(!0), h(d, null, w(Y.value, (e, t) => (S(), h("g", null, [(S(!0), h(d, null, w(e.plots, (e, n) => (S(), h("circle", {
|
|
1135
1108
|
cx: e.x,
|
|
1136
1109
|
cy: e.y,
|
|
1137
1110
|
fill: W.value.includes(n) ? "transparent" : q.value[n] ? q.value[n].color : "transparent",
|
|
1138
1111
|
r: Q.value !== null && Q.value === t ? F.value.style.chart.layout.plots.radius * 1.6 : F.value.style.chart.layout.plots.radius,
|
|
1139
1112
|
stroke: W.value.includes(n) ? "transparent" : F.value.style.chart.backgroundColor,
|
|
1140
1113
|
"stroke-width": .5,
|
|
1141
|
-
class:
|
|
1114
|
+
class: y({
|
|
1142
1115
|
"animated-out": W.value.includes(n) && F.value.useCssAnimation,
|
|
1143
1116
|
"animated-in": K.value && G.value === n && F.value.useCssAnimation
|
|
1144
1117
|
})
|
|
1145
|
-
}, null, 10,
|
|
1146
|
-
|
|
1118
|
+
}, null, 10, ct))), 256))]))), 256))])) : m("", !0),
|
|
1119
|
+
T(e.$slots, "svg", { svg: {
|
|
1147
1120
|
...U.value,
|
|
1148
|
-
outerPolygon:
|
|
1149
|
-
isPrintingImg:
|
|
1150
|
-
isPrintingSvg:
|
|
1121
|
+
outerPolygon: xn.value,
|
|
1122
|
+
isPrintingImg: D($t) || D(en) || D(Kn),
|
|
1123
|
+
isPrintingSvg: D(qn)
|
|
1151
1124
|
} }, void 0, !0)
|
|
1152
|
-
], 46,
|
|
1125
|
+
], 46, Ye)), e.$slots.hint ? (S(), h("div", lt, [T(e.$slots, "hint", b(v({
|
|
1153
1126
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1154
|
-
isVisible:
|
|
1155
|
-
})), void 0, !0)])) :
|
|
1156
|
-
e.$slots.watermark ? (
|
|
1157
|
-
|
|
1158
|
-
|
|
1127
|
+
isVisible: Gt.value
|
|
1128
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1129
|
+
e.$slots.watermark ? (S(), h("div", ut, [T(e.$slots, "watermark", b(v({ isPrinting: D($t) || D(en) || D(Kn) || D(qn) })), void 0, !0)])) : m("", !0),
|
|
1130
|
+
g("div", { id: `legend-bottom-${A.value}` }, null, 8, dt),
|
|
1131
|
+
Vt.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Me, {
|
|
1159
1132
|
key: 6,
|
|
1160
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1161
|
-
}, [
|
|
1133
|
+
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1134
|
+
}, [g("div", {
|
|
1162
1135
|
ref_key: "chartLegend",
|
|
1163
|
-
ref:
|
|
1164
|
-
}, [
|
|
1165
|
-
key: `legend_${
|
|
1136
|
+
ref: Ft
|
|
1137
|
+
}, [T(e.$slots, "legend", { legend: X.value }, () => [F.value.style.chart.legend.show ? (S(), p(ke, {
|
|
1138
|
+
key: `legend_${Bt.value}`,
|
|
1166
1139
|
legendSet: X.value,
|
|
1167
|
-
config:
|
|
1140
|
+
config: Dn.value,
|
|
1168
1141
|
isCursorPointer: I.value,
|
|
1169
|
-
onClickMarker: t[0] ||= ({ i: e }) =>
|
|
1170
|
-
},
|
|
1171
|
-
item:
|
|
1142
|
+
onClickMarker: t[0] ||= ({ i: e }) => un(e)
|
|
1143
|
+
}, Ne({
|
|
1144
|
+
item: O(({ legend: e, index: t }) => [D(qt) ? m("", !0) : (S(), h("div", {
|
|
1172
1145
|
key: 0,
|
|
1173
1146
|
onClick: (t) => e.segregate(),
|
|
1174
|
-
style:
|
|
1175
|
-
},
|
|
1176
|
-
legendToggle:
|
|
1147
|
+
style: x(`opacity:${W.value.includes(t) ? .5 : 1}`)
|
|
1148
|
+
}, E(e.display), 13, ft))]),
|
|
1149
|
+
legendToggle: O(() => [X.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !D(qt) ? (S(), p(Te, {
|
|
1177
1150
|
key: 0,
|
|
1178
1151
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1179
1152
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1180
1153
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
1181
1154
|
checked: W.value.length > 0,
|
|
1182
1155
|
isCursorPointer: I.value,
|
|
1183
|
-
onToggle:
|
|
1156
|
+
onToggle: cn
|
|
1184
1157
|
}, null, 8, [
|
|
1185
1158
|
"backgroundColor",
|
|
1186
1159
|
"color",
|
|
1187
1160
|
"fontSize",
|
|
1188
1161
|
"checked",
|
|
1189
1162
|
"isCursorPointer"
|
|
1190
|
-
])) :
|
|
1163
|
+
])) : m("", !0)]),
|
|
1191
1164
|
_: 2
|
|
1192
1165
|
}, [F.value.style.chart.layout.targetReference.show && F.value.style.chart.layout.targetReference.showInLegend ? {
|
|
1193
1166
|
name: "after",
|
|
1194
|
-
fn:
|
|
1167
|
+
fn: O(() => [g("div", pt, [g("div", { style: x({
|
|
1195
1168
|
display: "flex",
|
|
1196
1169
|
height: F.value.style.chart.legend.fontSize
|
|
1197
|
-
}) }, [(
|
|
1198
|
-
style:
|
|
1170
|
+
}) }, [(S(), h("svg", {
|
|
1171
|
+
style: x({ width: F.value.style.chart.legend.fontSize * 2 }),
|
|
1199
1172
|
viewBox: "0 0 16 8"
|
|
1200
|
-
}, [
|
|
1173
|
+
}, [g("line", {
|
|
1201
1174
|
x1: "0",
|
|
1202
1175
|
x2: "16",
|
|
1203
1176
|
y1: "4",
|
|
@@ -1206,22 +1179,22 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1206
1179
|
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth * .7,
|
|
1207
1180
|
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray * .7,
|
|
1208
1181
|
"stroke-linecap": "round"
|
|
1209
|
-
}, null, 8,
|
|
1182
|
+
}, null, 8, mt)], 4))], 4), g("span", null, E(F.value.style.chart.layout.targetReference.legendLabel), 1)])]),
|
|
1210
1183
|
key: "0"
|
|
1211
1184
|
} : void 0]), 1032, [
|
|
1212
1185
|
"legendSet",
|
|
1213
1186
|
"config",
|
|
1214
1187
|
"isCursorPointer"
|
|
1215
|
-
])) :
|
|
1216
|
-
e.$slots.source ? (
|
|
1188
|
+
])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1189
|
+
e.$slots.source ? (S(), h("div", {
|
|
1217
1190
|
key: 7,
|
|
1218
1191
|
ref_key: "source",
|
|
1219
|
-
ref:
|
|
1192
|
+
ref: It,
|
|
1220
1193
|
dir: "auto"
|
|
1221
|
-
}, [
|
|
1222
|
-
|
|
1194
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1195
|
+
Fe(D(yt), {
|
|
1223
1196
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1224
|
-
show: H.value.showTooltip &&
|
|
1197
|
+
show: H.value.showTooltip && j.value,
|
|
1225
1198
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1226
1199
|
color: F.value.style.chart.tooltip.color,
|
|
1227
1200
|
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
@@ -1232,27 +1205,27 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1232
1205
|
position: F.value.style.chart.tooltip.position,
|
|
1233
1206
|
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
1234
1207
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1235
|
-
parent:
|
|
1236
|
-
content:
|
|
1208
|
+
parent: M.value,
|
|
1209
|
+
content: Mt.value,
|
|
1237
1210
|
isFullscreen: $.value,
|
|
1238
1211
|
isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
|
|
1239
1212
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
1240
1213
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1241
1214
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1242
1215
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1243
|
-
isA11yMode:
|
|
1244
|
-
a11yPosition:
|
|
1216
|
+
isA11yMode: Wt.value === "keyboard",
|
|
1217
|
+
a11yPosition: Ut.value
|
|
1245
1218
|
}, {
|
|
1246
|
-
"tooltip-before":
|
|
1247
|
-
tooltip:
|
|
1248
|
-
"tooltip-after":
|
|
1249
|
-
dataset:
|
|
1250
|
-
config:
|
|
1219
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...kn.value })), void 0, !0)]),
|
|
1220
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...kn.value })), void 0, !0)]),
|
|
1221
|
+
"tooltip-after": O(() => [!["function"].includes(typeof F.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (S(), h("div", ht, [Fe(D(xt), {
|
|
1222
|
+
dataset: On.value,
|
|
1223
|
+
config: on.value,
|
|
1251
1224
|
backgroundOpacity: 0
|
|
1252
1225
|
}, {
|
|
1253
|
-
"data-label":
|
|
1226
|
+
"data-label": O(({ bar: e }) => [g("div", gt, [g("span", _t, E(e.name + (F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), F.value.style.chart.tooltip.showValue || F.value.style.chart.tooltip.showPercentage ? (S(), h("span", vt, E(e.suffix), 1)) : m("", !0)])]),
|
|
1254
1227
|
_: 1
|
|
1255
|
-
}, 8, ["dataset", "config"])])) :
|
|
1228
|
+
}, 8, ["dataset", "config"])])) : m("", !0), T(e.$slots, "tooltip-after", b(v({ ...kn.value })), void 0, !0)]),
|
|
1256
1229
|
_: 3
|
|
1257
1230
|
}, 8, [
|
|
1258
1231
|
"teleportTo",
|
|
@@ -1278,24 +1251,24 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1278
1251
|
"isA11yMode",
|
|
1279
1252
|
"a11yPosition"
|
|
1280
1253
|
]),
|
|
1281
|
-
|
|
1254
|
+
jt.value && F.value.userOptions.buttons.table ? (S(), p(Be(Bn.value.component), Ie({ key: 8 }, Bn.value.props, {
|
|
1282
1255
|
ref_key: "tableUnit",
|
|
1283
|
-
ref:
|
|
1284
|
-
onClose:
|
|
1285
|
-
}),
|
|
1286
|
-
content:
|
|
1287
|
-
key: `table_${
|
|
1256
|
+
ref: N,
|
|
1257
|
+
onClose: Vn
|
|
1258
|
+
}), Ne({
|
|
1259
|
+
content: O(() => [(S(), p(D(Ct), {
|
|
1260
|
+
key: `table_${zt.value}`,
|
|
1288
1261
|
colNames: Z.value.colNames,
|
|
1289
1262
|
head: Z.value.head,
|
|
1290
1263
|
body: Z.value.body,
|
|
1291
1264
|
config: Z.value.config,
|
|
1292
|
-
title: F.value.table.useDialog ? "" :
|
|
1265
|
+
title: F.value.table.useDialog ? "" : Bn.value.title,
|
|
1293
1266
|
withCloseButton: !F.value.table.useDialog,
|
|
1294
1267
|
isCursorPointer: I.value,
|
|
1295
|
-
onClose:
|
|
1268
|
+
onClose: Vn
|
|
1296
1269
|
}, {
|
|
1297
|
-
th:
|
|
1298
|
-
td:
|
|
1270
|
+
th: O(({ th: e }) => [Pe(E(e.name), 1)]),
|
|
1271
|
+
td: O(({ td: e }) => [Pe(E(e), 1)]),
|
|
1299
1272
|
_: 1
|
|
1300
1273
|
}, 8, [
|
|
1301
1274
|
"colNames",
|
|
@@ -1309,24 +1282,24 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1309
1282
|
_: 2
|
|
1310
1283
|
}, [F.value.table.useDialog ? {
|
|
1311
1284
|
name: "title",
|
|
1312
|
-
fn:
|
|
1285
|
+
fn: O(() => [Pe(E(Bn.value.title), 1)]),
|
|
1313
1286
|
key: "0"
|
|
1314
1287
|
} : void 0, F.value.table.useDialog ? {
|
|
1315
1288
|
name: "actions",
|
|
1316
|
-
fn:
|
|
1289
|
+
fn: O(() => [g("button", {
|
|
1317
1290
|
tabindex: "0",
|
|
1318
1291
|
class: "vue-ui-user-options-button",
|
|
1319
|
-
onClick: t[1] ||= (e) =>
|
|
1320
|
-
style:
|
|
1321
|
-
}, [
|
|
1292
|
+
onClick: t[1] ||= (e) => Nn(F.value.userOptions.callbacks.csv),
|
|
1293
|
+
style: x({ cursor: I.value ? "pointer" : "default" })
|
|
1294
|
+
}, [Fe(D(bt), {
|
|
1322
1295
|
name: "fileCsv",
|
|
1323
|
-
stroke:
|
|
1296
|
+
stroke: Bn.value.props.color
|
|
1324
1297
|
}, null, 8, ["stroke"])], 4)]),
|
|
1325
1298
|
key: "1"
|
|
1326
|
-
} : void 0]), 1040)) :
|
|
1327
|
-
|
|
1328
|
-
], 46,
|
|
1299
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1300
|
+
T(e.$slots, "skeleton", {}, () => [D(qt) ? (S(), p(he, { key: 0 })) : m("", !0)], !0)
|
|
1301
|
+
], 46, Ge));
|
|
1329
1302
|
}
|
|
1330
|
-
}, [["__scopeId", "data-v-
|
|
1303
|
+
}, [["__scopeId", "data-v-0a3f041f"]]);
|
|
1331
1304
|
//#endregion
|
|
1332
|
-
export {
|
|
1305
|
+
export { We as n, yt as t };
|