vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as pe } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as ge } from "./
|
|
7
|
-
import { t as _e } from "./
|
|
8
|
-
import { t as ve } from "./
|
|
9
|
-
import { t as ye } from "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as we } from "./
|
|
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 {
|
|
2
|
+
import { $ as t, At as n, Bt as r, D as i, Jt as a, Kt as o, M as ee, Pt as s, S as te, Vt as ne, X as c, b as re, ct as ie, i as ae, jt as oe, pt as se, q as ce, t as le, tt as l, w as ue, xt as de } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as pe } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as me } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as _e } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as ve } from "./useNestedProp--NSEmhOH.js";
|
|
9
|
+
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as be } from "./img-DIQG5q8T.js";
|
|
11
|
+
import { n as xe } from "./Title-BODtwViI.js";
|
|
12
|
+
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as Ce, t as we } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as Te } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as Ee } from "./BaseLegendToggle-CtAPwzr2.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-CQTRlzK-.js";
|
|
20
|
+
import { t as je } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
21
|
+
import { t as Me } from "./vue_ui_radar-jafTED5j.js";
|
|
22
|
+
import { Fragment as u, Teleport as Ne, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Le, nextTick as Re, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ze, onMounted as Be, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as T, toRefs as Ue, unref as E, watch as We, withCtx as D } 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: () => yt }), 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: () => yt }), 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,56 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
111
112
|
}
|
|
112
113
|
},
|
|
113
114
|
emits: ["selectLegend", "copyAlt"],
|
|
114
|
-
setup(e, { expose:
|
|
115
|
-
let
|
|
115
|
+
setup(e, { expose: Se, emit: Ge }) {
|
|
116
|
+
let bt = g(() => import("./Tooltip-CMTGxeYO.js")), xt = g(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), St = g(() => import("./vue-ui-sparkbar-DYC3By0v.js").then((e) => e.n)), Ct = g(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), wt = g(() => import("./DataTable-D4tM9s5Y.js")), Tt = g(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Et = g(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Dt = g(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Ot = g(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_radar: kt } = pe(), { isThemeValid: At, warnInvalidTheme: jt } = ye(), O = e, Mt = d(() => !!O.dataset && Object.keys(O.dataset).length), k = S(ce()), A = S(!1), Nt = S(""), Pt = S(0), j = S(null), Ft = S(null), It = S(null), Lt = S(null), Rt = S(null), zt = S(0), Bt = S(0), Vt = S(0), Ht = S(!1), M = S(null), Ut = S(null), Wt = S(!1), Gt = S(!1), N = S(null), Kt = S({
|
|
116
117
|
x: 0,
|
|
117
118
|
y: 0
|
|
118
|
-
}), P = S("pointer"),
|
|
119
|
+
}), P = S("pointer"), qt = S(!1), F = S($t());
|
|
120
|
+
fe({
|
|
121
|
+
config: () => F.value,
|
|
122
|
+
dataset: () => O.dataset,
|
|
123
|
+
component: "VueUiRadar",
|
|
124
|
+
rules: [
|
|
125
|
+
{
|
|
126
|
+
test: (e) => e?.categories && e.categories.length === 0,
|
|
127
|
+
message: [
|
|
128
|
+
"👀 There are no categories in your dataset. Consider:",
|
|
129
|
+
"",
|
|
130
|
+
"▶️ Adding categories..."
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
test: (e) => e?.series && e.series.length === 0,
|
|
135
|
+
message: [
|
|
136
|
+
"👀 There are no series in your dataset. Consider:",
|
|
137
|
+
"",
|
|
138
|
+
"▶️ Adding series..."
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
test: (e) => e?.categories && e.categories.length > 3,
|
|
143
|
+
message: [
|
|
144
|
+
"👀 The number of categories > 3, the chart might become hard to read. Consider:",
|
|
145
|
+
"",
|
|
146
|
+
"▶️ Using several instances of the component to display related categories.",
|
|
147
|
+
"",
|
|
148
|
+
"▶️ Adding filters to allow users to choose a maximum number of categories."
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
test: (e) => e?.series && e.series.length > 12,
|
|
153
|
+
message: [
|
|
154
|
+
"👀 The number of series is > 12. Consider:",
|
|
155
|
+
"",
|
|
156
|
+
"▶️ Using several instances of the component to distribute the series.",
|
|
157
|
+
"",
|
|
158
|
+
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
159
|
+
""
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
let I = d(() => F.value.userOptions.useCursorPointer), Jt = d(() => a({
|
|
119
165
|
defaultConfig: {
|
|
120
166
|
userOptions: { show: !1 },
|
|
121
167
|
table: { show: !1 },
|
|
@@ -131,13 +177,13 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
131
177
|
} }
|
|
132
178
|
},
|
|
133
179
|
userConfig: F.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading:
|
|
135
|
-
...
|
|
180
|
+
})), { loading: Yt, FINAL_DATASET: L } = he({
|
|
181
|
+
...Ue(O),
|
|
136
182
|
FINAL_CONFIG: F,
|
|
137
|
-
prepareConfig:
|
|
183
|
+
prepareConfig: $t,
|
|
138
184
|
callback: () => {
|
|
139
185
|
Promise.resolve().then(async () => {
|
|
140
|
-
await
|
|
186
|
+
await Re(), H.value.showTable = F.value.table.show;
|
|
141
187
|
});
|
|
142
188
|
},
|
|
143
189
|
skeletonDataset: O.config?.skeletonDataset ?? {
|
|
@@ -178,70 +224,70 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
178
224
|
}
|
|
179
225
|
]
|
|
180
226
|
},
|
|
181
|
-
skeletonConfig:
|
|
227
|
+
skeletonConfig: a({
|
|
182
228
|
defaultConfig: F.value,
|
|
183
|
-
userConfig:
|
|
229
|
+
userConfig: Jt.value
|
|
184
230
|
})
|
|
185
|
-
}), { userOptionsVisible:
|
|
186
|
-
function
|
|
187
|
-
let e =
|
|
231
|
+
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Oe({ config: F.value }), { svgRef: R } = ke({ config: F.value.style.chart.title });
|
|
232
|
+
function $t() {
|
|
233
|
+
let e = ve({
|
|
188
234
|
userConfig: O.config,
|
|
189
|
-
defaultConfig:
|
|
235
|
+
defaultConfig: kt
|
|
190
236
|
}), t = e.theme;
|
|
191
237
|
if (!t) return e;
|
|
192
|
-
if (!
|
|
193
|
-
let n =
|
|
194
|
-
userConfig:
|
|
238
|
+
if (!At.value(e)) return jt(e), e;
|
|
239
|
+
let n = ve({
|
|
240
|
+
userConfig: Me[t] || O.config,
|
|
195
241
|
defaultConfig: e
|
|
196
|
-
}), r =
|
|
242
|
+
}), r = ve({
|
|
197
243
|
userConfig: O.config,
|
|
198
244
|
defaultConfig: n
|
|
199
245
|
});
|
|
200
246
|
return {
|
|
201
247
|
...r,
|
|
202
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
248
|
+
customPalette: r.customPalette.length ? r.customPalette : o[t] || s
|
|
203
249
|
};
|
|
204
250
|
}
|
|
205
|
-
|
|
206
|
-
F.value =
|
|
251
|
+
We(() => O.config, (e) => {
|
|
252
|
+
F.value = $t(), Xt.value = !F.value.userOptions.showOnChartHover, en(), zt.value += 1, Bt.value += 1, Vt.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;
|
|
207
253
|
}, { deep: !0 });
|
|
208
|
-
let z =
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
254
|
+
let z = He(null), B = He(null), V = d(() => F.value.debug);
|
|
255
|
+
function en() {
|
|
256
|
+
if (oe(O.dataset) && l({
|
|
211
257
|
componentName: "VueUiRadar",
|
|
212
258
|
type: "dataset",
|
|
213
259
|
debug: V.value
|
|
214
260
|
}), F.value.responsive) {
|
|
215
|
-
let e =
|
|
216
|
-
let { width: e, height: t } =
|
|
261
|
+
let e = Ce(() => {
|
|
262
|
+
let { width: e, height: t } = we({
|
|
217
263
|
chart: j.value,
|
|
218
|
-
title: F.value.style.chart.title.text ?
|
|
219
|
-
legend: F.value.style.chart.legend.show ?
|
|
220
|
-
source:
|
|
221
|
-
noTitle:
|
|
264
|
+
title: F.value.style.chart.title.text ? Ft.value : null,
|
|
265
|
+
legend: F.value.style.chart.legend.show ? It.value : null,
|
|
266
|
+
source: Lt.value,
|
|
267
|
+
noTitle: Rt.value
|
|
222
268
|
});
|
|
223
269
|
requestAnimationFrame(() => {
|
|
224
|
-
U.value.width = e, U.value.height = t,
|
|
270
|
+
U.value.width = e, U.value.height = t, Dn();
|
|
225
271
|
});
|
|
226
272
|
});
|
|
227
273
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = j.value.parentNode, z.value.observe(B.value);
|
|
228
274
|
}
|
|
229
|
-
|
|
275
|
+
Dn();
|
|
230
276
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}),
|
|
277
|
+
Be(() => {
|
|
278
|
+
Ht.value = !0, en();
|
|
279
|
+
}), ze(() => {
|
|
234
280
|
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
235
281
|
});
|
|
236
|
-
let { isPrinting:
|
|
282
|
+
let { isPrinting: tn, isImaging: nn, generatePdf: rn, generateImage: an } = me({
|
|
237
283
|
elementId: `vue-ui-radar_${k.value}`,
|
|
238
284
|
fileName: F.value.style.chart.title.text || "vue-ui-radar",
|
|
239
285
|
options: F.value.userOptions.print
|
|
240
|
-
}),
|
|
286
|
+
}), on = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), sn = d(() => ue(F.value.customPalette)), H = S({
|
|
241
287
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
242
288
|
showTable: F.value.table.show,
|
|
243
289
|
showTooltip: F.value.style.chart.tooltip.show
|
|
244
|
-
}),
|
|
290
|
+
}), cn = d(() => ({ style: {
|
|
245
291
|
backgroundColor: "#FFFFFF00",
|
|
246
292
|
animation: {
|
|
247
293
|
show: F.value.style.chart.tooltip.animation.show,
|
|
@@ -258,34 +304,34 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
258
304
|
} })), U = S({
|
|
259
305
|
height: 312,
|
|
260
306
|
width: 512
|
|
261
|
-
}),
|
|
262
|
-
function
|
|
307
|
+
}), ln = Ge, W = S([]), G = S(null), K = S(!1);
|
|
308
|
+
function un() {
|
|
263
309
|
W.value.length ? W.value = [] : X.value.forEach((e, t) => {
|
|
264
310
|
W.value.push(t);
|
|
265
|
-
}),
|
|
311
|
+
}), dn();
|
|
266
312
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
313
|
+
function dn() {
|
|
314
|
+
ln("selectLegend", X.value.filter((e, t) => !W.value.includes(t)).map((e) => ({
|
|
269
315
|
name: e.name,
|
|
270
316
|
color: e.color,
|
|
271
317
|
proportion: e.totalProportion
|
|
272
318
|
})));
|
|
273
319
|
}
|
|
274
|
-
function
|
|
320
|
+
function fn(e) {
|
|
275
321
|
K.value = !0, W.value.includes(e) ? (G.value = e, W.value = W.value.filter((t) => t !== e), setTimeout(() => {
|
|
276
322
|
K.value = !1, G.value = null;
|
|
277
323
|
}, 500)) : (W.value.push(e), setTimeout(() => {
|
|
278
324
|
K.value = !1;
|
|
279
|
-
}, 500)),
|
|
325
|
+
}, 500)), dn();
|
|
280
326
|
}
|
|
281
|
-
function
|
|
327
|
+
function pn() {
|
|
282
328
|
return X.value.map((e) => ({
|
|
283
329
|
name: e.name,
|
|
284
330
|
color: e.color,
|
|
285
331
|
proportion: e.totalProportion
|
|
286
332
|
}));
|
|
287
333
|
}
|
|
288
|
-
function
|
|
334
|
+
function mn() {
|
|
289
335
|
let e = L.value;
|
|
290
336
|
if ([null, void 0].includes(e?.categories)) {
|
|
291
337
|
l({
|
|
@@ -306,7 +352,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
306
352
|
property: "categories",
|
|
307
353
|
debug: V.value
|
|
308
354
|
}) : e.categories.forEach((e, t) => {
|
|
309
|
-
|
|
355
|
+
se({
|
|
310
356
|
datasetObject: e,
|
|
311
357
|
requiredAttributes: ["name"]
|
|
312
358
|
}).forEach((e) => {
|
|
@@ -324,7 +370,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
324
370
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
325
371
|
debug: V.value
|
|
326
372
|
}) : e.series.forEach((e, t) => {
|
|
327
|
-
|
|
373
|
+
se({
|
|
328
374
|
datasetObject: e,
|
|
329
375
|
requiredAttributes: [
|
|
330
376
|
"name",
|
|
@@ -343,69 +389,69 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
343
389
|
});
|
|
344
390
|
});
|
|
345
391
|
}
|
|
346
|
-
|
|
392
|
+
We(() => L.value, () => mn(), {
|
|
347
393
|
deep: !0,
|
|
348
394
|
immediate: !0
|
|
349
395
|
});
|
|
350
396
|
let q = d(() => {
|
|
351
|
-
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t =
|
|
397
|
+
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = sn.value ?? s;
|
|
352
398
|
return e.map((e, n) => ({
|
|
353
399
|
name: e?.name ?? "",
|
|
354
400
|
categoryId: `radar_category_${k.value}_${n}`,
|
|
355
|
-
color:
|
|
401
|
+
color: te(e?.color) || t[n] || s[n % s.length],
|
|
356
402
|
prefix: e?.prefix ?? "",
|
|
357
403
|
suffix: e?.suffix ?? ""
|
|
358
404
|
}));
|
|
359
405
|
}), J = d(() => L.value.series.map((e, t) => ({
|
|
360
406
|
...e,
|
|
361
|
-
color:
|
|
407
|
+
color: te(e.color) || sn.value[t] || s[t] || s[t % s.length],
|
|
362
408
|
serieId: `radar_serie_${k.value}_${t}`,
|
|
363
409
|
formatter: e.formatter || null,
|
|
364
410
|
absoluteIndex: t
|
|
365
411
|
})));
|
|
366
|
-
function mn(e) {
|
|
367
|
-
return J.value.length ? X.value.find((t) => t.name === e) || (F.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
368
|
-
}
|
|
369
412
|
function hn(e) {
|
|
370
|
-
|
|
371
|
-
t !== null && W.value.includes(t.absoluteIndex) && dn(t.absoluteIndex);
|
|
413
|
+
return J.value.length ? X.value.find((t) => t.name === e) || (F.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
372
414
|
}
|
|
373
415
|
function gn(e) {
|
|
374
|
-
let t =
|
|
375
|
-
t !== null &&
|
|
416
|
+
let t = hn(e);
|
|
417
|
+
t !== null && W.value.includes(t.absoluteIndex) && fn(t.absoluteIndex);
|
|
418
|
+
}
|
|
419
|
+
function _n(e) {
|
|
420
|
+
let t = hn(e);
|
|
421
|
+
t !== null && (W.value.includes(t.absoluteIndex) || fn(t.absoluteIndex));
|
|
376
422
|
}
|
|
377
|
-
let
|
|
378
|
-
function
|
|
379
|
-
return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target ||
|
|
423
|
+
let vn = d(() => Math.max(0, ...J.value.flatMap((e) => e.values)));
|
|
424
|
+
function yn(e) {
|
|
425
|
+
return F.value.style.chart.layout.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || vn.value || 1;
|
|
380
426
|
}
|
|
381
|
-
let
|
|
382
|
-
let n =
|
|
383
|
-
return
|
|
427
|
+
let bn = d(() => J.value.map((e, t) => {
|
|
428
|
+
let n = Cn.value.coordinates[t];
|
|
429
|
+
return On({
|
|
384
430
|
centerX: U.value.width / 2,
|
|
385
431
|
centerY: U.value.height / 2,
|
|
386
432
|
apexX: n.x,
|
|
387
433
|
apexY: n.y,
|
|
388
|
-
proportion: (e.target || 0) /
|
|
434
|
+
proportion: (e.target || 0) / yn(e)
|
|
389
435
|
});
|
|
390
|
-
})),
|
|
436
|
+
})), xn = d(() => J.value.length), Sn = d(() => Math.min(U.value.width, U.value.height) / 3), Cn = d(() => ee({
|
|
391
437
|
plot: {
|
|
392
438
|
x: U.value.width / 2,
|
|
393
439
|
y: U.value.height / 2
|
|
394
440
|
},
|
|
395
|
-
radius:
|
|
396
|
-
sides:
|
|
441
|
+
radius: Sn.value,
|
|
442
|
+
sides: xn.value,
|
|
397
443
|
rotation: 0
|
|
398
|
-
})),
|
|
444
|
+
})), wn = d(() => {
|
|
399
445
|
let e = [];
|
|
400
|
-
for (let t = 0; t <
|
|
446
|
+
for (let t = 0; t < Sn.value; t += Sn.value / F.value.style.chart.layout.grid.graduations) e.push(t);
|
|
401
447
|
return e;
|
|
402
|
-
}), Y = d(() =>
|
|
403
|
-
let n = J.value[t], r = J.value[t].values.map((t) =>
|
|
448
|
+
}), Y = d(() => Cn.value.coordinates.map((e, t) => {
|
|
449
|
+
let n = J.value[t], r = J.value[t].values.map((t) => On({
|
|
404
450
|
centerX: U.value.width / 2,
|
|
405
451
|
centerY: U.value.height / 2,
|
|
406
452
|
apexX: e.x,
|
|
407
453
|
apexY: e.y,
|
|
408
|
-
proportion: t /
|
|
454
|
+
proportion: t / yn(n)
|
|
409
455
|
}));
|
|
410
456
|
return {
|
|
411
457
|
...e,
|
|
@@ -414,11 +460,11 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
414
460
|
};
|
|
415
461
|
}).map((e) => ({
|
|
416
462
|
...e,
|
|
417
|
-
labelX:
|
|
418
|
-
labelY:
|
|
419
|
-
labelAnchor:
|
|
463
|
+
labelX: Tn(e).x,
|
|
464
|
+
labelY: Tn(e).y,
|
|
465
|
+
labelAnchor: Tn(e).anchor
|
|
420
466
|
})));
|
|
421
|
-
function
|
|
467
|
+
function Tn({ x: e, y: t }) {
|
|
422
468
|
let n = "middle";
|
|
423
469
|
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), {
|
|
424
470
|
x: e,
|
|
@@ -426,33 +472,33 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
426
472
|
anchor: n
|
|
427
473
|
};
|
|
428
474
|
}
|
|
429
|
-
let
|
|
475
|
+
let En = d({
|
|
430
476
|
get: () => F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
431
477
|
set: (e) => e
|
|
432
|
-
}), { autoSizeLabels:
|
|
478
|
+
}), { autoSizeLabels: Dn } = je({
|
|
433
479
|
svgRef: R,
|
|
434
480
|
fontSize: F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
435
481
|
minFontSize: 6,
|
|
436
|
-
sizeRef:
|
|
482
|
+
sizeRef: En,
|
|
437
483
|
labelClass: ".vue-ui-radar-apex-label"
|
|
438
484
|
});
|
|
439
|
-
function
|
|
485
|
+
function On({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
440
486
|
return {
|
|
441
487
|
x: e + (n - e) * i,
|
|
442
488
|
y: t + (r - t) * i
|
|
443
489
|
};
|
|
444
490
|
}
|
|
445
491
|
let X = d(() => {
|
|
446
|
-
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target ||
|
|
492
|
+
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || vn.value)));
|
|
447
493
|
return q.value.map((t, n) => {
|
|
448
|
-
let r =
|
|
494
|
+
let r = re(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
|
|
449
495
|
return {
|
|
450
496
|
...t,
|
|
451
497
|
absoluteIndex: n,
|
|
452
498
|
totalProportion: r,
|
|
453
499
|
shape: "circle",
|
|
454
500
|
opacity: W.value.includes(n) ? .5 : 1,
|
|
455
|
-
segregate: () =>
|
|
501
|
+
segregate: () => fn(n),
|
|
456
502
|
isSegregated: W.value.includes(n),
|
|
457
503
|
display: `${t.name}: ${c({
|
|
458
504
|
v: (r ?? 0) * 100,
|
|
@@ -461,7 +507,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
461
507
|
})}`
|
|
462
508
|
};
|
|
463
509
|
});
|
|
464
|
-
}),
|
|
510
|
+
}), kn = d(() => ({
|
|
465
511
|
cy: "radar-div-legend",
|
|
466
512
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
467
513
|
color: F.value.style.chart.legend.color,
|
|
@@ -484,13 +530,13 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
484
530
|
head: e,
|
|
485
531
|
body: L.value.series.map((e) => [
|
|
486
532
|
e.name,
|
|
487
|
-
|
|
533
|
+
ae(e.formatter, e.target, c({
|
|
488
534
|
p: e.prefix,
|
|
489
535
|
v: e.target,
|
|
490
536
|
s: e.suffix,
|
|
491
537
|
r: F.value.table.td.roundingValue
|
|
492
538
|
})),
|
|
493
|
-
...e.values.map((t, n) => `${
|
|
539
|
+
...e.values.map((t, n) => `${ae(e.formatter, t, c({
|
|
494
540
|
p: q.value[n]?.prefix ?? "",
|
|
495
541
|
v: t,
|
|
496
542
|
s: q.value[n]?.suffix ?? "",
|
|
@@ -516,26 +562,26 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
516
562
|
},
|
|
517
563
|
colNames: e
|
|
518
564
|
};
|
|
519
|
-
}), Q = S(null),
|
|
520
|
-
function
|
|
565
|
+
}), Q = S(null), An = S([]), jn = S(null);
|
|
566
|
+
function Mn(e, t) {
|
|
521
567
|
A.value = !1, Q.value = null, N.value = null, P.value = "pointer", F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
522
568
|
datapoint: e,
|
|
523
569
|
seriesIndex: t
|
|
524
570
|
});
|
|
525
571
|
}
|
|
526
|
-
function
|
|
572
|
+
function Nn(e, t) {
|
|
527
573
|
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
528
574
|
datapoint: e,
|
|
529
575
|
seriesIndex: t
|
|
530
576
|
});
|
|
531
577
|
}
|
|
532
|
-
function
|
|
578
|
+
function Pn(e, t, n = "pointer") {
|
|
533
579
|
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
534
580
|
datapoint: e,
|
|
535
581
|
seriesIndex: t
|
|
536
582
|
}), P.value = n, N.value = t;
|
|
537
583
|
let r = q.value.slice();
|
|
538
|
-
|
|
584
|
+
An.value = [], Q.value = t, A.value = !0, jn.value = {
|
|
539
585
|
datapoint: e,
|
|
540
586
|
seriesIndex: t,
|
|
541
587
|
series: {
|
|
@@ -546,7 +592,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
546
592
|
config: F.value
|
|
547
593
|
};
|
|
548
594
|
let i = F.value.style.chart.tooltip.customFormat;
|
|
549
|
-
if (
|
|
595
|
+
if (de(i) && ie(() => i({
|
|
550
596
|
seriesIndex: t,
|
|
551
597
|
datapoint: e,
|
|
552
598
|
series: {
|
|
@@ -556,7 +602,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
556
602
|
},
|
|
557
603
|
config: F.value
|
|
558
604
|
}))) {
|
|
559
|
-
|
|
605
|
+
Nt.value = i({
|
|
560
606
|
seriesIndex: t,
|
|
561
607
|
datapoint: e,
|
|
562
608
|
series: {
|
|
@@ -568,67 +614,67 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
568
614
|
});
|
|
569
615
|
return;
|
|
570
616
|
}
|
|
571
|
-
|
|
617
|
+
Nt.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>`;
|
|
572
618
|
for (let t = 0; t < e.values.length; t += 1) if (!W.value.includes(t)) {
|
|
573
|
-
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o =
|
|
619
|
+
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o = ae(e.formatter, i, c({
|
|
574
620
|
p: q.value[t].prefix,
|
|
575
621
|
v: i,
|
|
576
622
|
s: q.value[t].suffix,
|
|
577
623
|
r: F.value.style.chart.tooltip.roundingValue
|
|
578
|
-
}), { datapoint: e }),
|
|
624
|
+
}), { datapoint: e }), ee = c({
|
|
579
625
|
v: a,
|
|
580
626
|
s: "%",
|
|
581
627
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
582
|
-
}),
|
|
583
|
-
|
|
628
|
+
}), s = F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${o} (${ee})` : 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 ? `${ee}` : "";
|
|
629
|
+
An.value.push({
|
|
584
630
|
name: n?.name ?? `#${t + 1}`,
|
|
585
631
|
value: e.values[t] / e.target * 100,
|
|
586
632
|
color: n?.color,
|
|
587
|
-
suffix:
|
|
633
|
+
suffix: s,
|
|
588
634
|
prefix: "",
|
|
589
635
|
rounding: F.value.style.chart.tooltip.roundingPercentage,
|
|
590
636
|
formatter: e.formatter
|
|
591
637
|
});
|
|
592
638
|
}
|
|
593
639
|
}
|
|
594
|
-
function
|
|
595
|
-
|
|
596
|
-
let
|
|
640
|
+
function Fn(e = null) {
|
|
641
|
+
Re(() => {
|
|
642
|
+
let n = [
|
|
597
643
|
[F.value.style.chart.title.text],
|
|
598
644
|
[F.value.style.chart.title.subtitle.text],
|
|
599
645
|
[""]
|
|
600
|
-
],
|
|
646
|
+
], r = [
|
|
601
647
|
[""],
|
|
602
648
|
[F.value.translations.target],
|
|
603
649
|
...X.value.flatMap((e) => [[e.name], ["%"]])
|
|
604
|
-
],
|
|
650
|
+
], a = L.value.series.map((e, t) => [
|
|
605
651
|
e.name,
|
|
606
652
|
e.target,
|
|
607
653
|
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
608
|
-
]),
|
|
609
|
-
e ? e(
|
|
610
|
-
csvContent:
|
|
654
|
+
]), o = i(n.concat([r]).concat(a));
|
|
655
|
+
e ? e(o) : t({
|
|
656
|
+
csvContent: o,
|
|
611
657
|
title: F.value.style.chart.title.text || "vue-ui-radar"
|
|
612
658
|
});
|
|
613
659
|
});
|
|
614
660
|
}
|
|
615
661
|
let $ = S(!1);
|
|
616
|
-
function
|
|
617
|
-
$.value = e,
|
|
662
|
+
function In(e) {
|
|
663
|
+
$.value = e, Pt.value += 1;
|
|
618
664
|
}
|
|
619
|
-
function
|
|
665
|
+
function Ln() {
|
|
620
666
|
H.value.showTable = !H.value.showTable;
|
|
621
667
|
}
|
|
622
|
-
function
|
|
668
|
+
function Rn() {
|
|
623
669
|
H.value.showTooltip = !H.value.showTooltip;
|
|
624
670
|
}
|
|
625
|
-
let
|
|
626
|
-
function
|
|
627
|
-
|
|
671
|
+
let zn = S(!1);
|
|
672
|
+
function Bn() {
|
|
673
|
+
zn.value = !zn.value;
|
|
628
674
|
}
|
|
629
|
-
async function
|
|
675
|
+
async function Vn({ scale: e = 2 } = {}) {
|
|
630
676
|
if (!j.value) return;
|
|
631
|
-
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
677
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
632
678
|
domElement: j.value,
|
|
633
679
|
base64: !0,
|
|
634
680
|
img: !0,
|
|
@@ -643,10 +689,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
643
689
|
aspectRatio: r
|
|
644
690
|
};
|
|
645
691
|
}
|
|
646
|
-
let
|
|
692
|
+
let Hn = d(() => {
|
|
647
693
|
let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
|
|
648
694
|
return {
|
|
649
|
-
component: e ?
|
|
695
|
+
component: e ? Ot : Ct,
|
|
650
696
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
651
697
|
props: e ? {
|
|
652
698
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -674,51 +720,51 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
674
720
|
}
|
|
675
721
|
};
|
|
676
722
|
});
|
|
677
|
-
|
|
723
|
+
We(() => H.value.showTable, (e) => {
|
|
678
724
|
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
679
725
|
});
|
|
680
|
-
function
|
|
681
|
-
H.value.showTable = !1,
|
|
726
|
+
function Un() {
|
|
727
|
+
H.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
682
728
|
}
|
|
683
|
-
let
|
|
729
|
+
let Wn = d(() => X.value.map((e) => ({
|
|
684
730
|
...e,
|
|
685
731
|
name: e.display
|
|
686
|
-
}))),
|
|
732
|
+
}))), Gn = d(() => F.value.style.chart.backgroundColor), Kn = d(() => F.value.style.chart.legend), { exportSvg: qn, getSvg: Jn } = _e({
|
|
687
733
|
svg: R,
|
|
688
734
|
title: d(() => F.value.style.chart.title),
|
|
689
|
-
legend:
|
|
690
|
-
legendItems:
|
|
691
|
-
backgroundColor:
|
|
735
|
+
legend: Kn,
|
|
736
|
+
legendItems: Wn,
|
|
737
|
+
backgroundColor: Gn
|
|
692
738
|
});
|
|
693
|
-
async function
|
|
694
|
-
|
|
739
|
+
async function Yn({ isCb: e }) {
|
|
740
|
+
Gt.value = !0, await Re();
|
|
695
741
|
try {
|
|
696
742
|
if (e) {
|
|
697
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
743
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Jn();
|
|
698
744
|
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
699
745
|
blob: e,
|
|
700
746
|
url: t,
|
|
701
747
|
text: n,
|
|
702
748
|
dataUrl: r
|
|
703
749
|
}));
|
|
704
|
-
} else await Promise.resolve(
|
|
750
|
+
} else await Promise.resolve(qn());
|
|
705
751
|
} finally {
|
|
706
|
-
|
|
752
|
+
Gt.value = !1;
|
|
707
753
|
}
|
|
708
754
|
}
|
|
709
|
-
function
|
|
755
|
+
function Xn(e) {
|
|
710
756
|
if (e?.stage === "start") {
|
|
711
|
-
|
|
757
|
+
Wt.value = !0;
|
|
712
758
|
return;
|
|
713
759
|
}
|
|
714
760
|
if (e?.stage === "end") {
|
|
715
|
-
|
|
761
|
+
Wt.value = !1;
|
|
716
762
|
return;
|
|
717
763
|
}
|
|
718
|
-
|
|
764
|
+
an();
|
|
719
765
|
}
|
|
720
|
-
async function
|
|
721
|
-
if (
|
|
766
|
+
async function Zn() {
|
|
767
|
+
if (ln("copyAlt", {
|
|
722
768
|
config: F.value,
|
|
723
769
|
dataset: Y.value
|
|
724
770
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -730,24 +776,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
730
776
|
dataset: Y.value
|
|
731
777
|
}));
|
|
732
778
|
}
|
|
733
|
-
function Zn() {
|
|
734
|
-
N.value = null, Kt.value = !0;
|
|
735
|
-
}
|
|
736
779
|
function Qn() {
|
|
737
|
-
N.value = null,
|
|
780
|
+
N.value = null, qt.value = !0;
|
|
781
|
+
}
|
|
782
|
+
function $n() {
|
|
783
|
+
N.value = null, P.value = "pointer", A.value = !1, Q.value = null, qt.value = !1;
|
|
738
784
|
}
|
|
739
|
-
function
|
|
785
|
+
function er(e) {
|
|
740
786
|
if (!Number.isFinite(e) || !R.value) return;
|
|
741
787
|
let t = Y.value[e];
|
|
742
788
|
if (!t) return;
|
|
743
789
|
let n = R.value.getBoundingClientRect();
|
|
744
|
-
|
|
790
|
+
Kt.value = {
|
|
745
791
|
x: n.left + t.labelX / U.value.width * n.width,
|
|
746
792
|
y: n.top + t.labelY / U.value.height * n.height
|
|
747
793
|
};
|
|
748
794
|
}
|
|
749
|
-
function
|
|
750
|
-
if (!R.value ||
|
|
795
|
+
function tr(e) {
|
|
796
|
+
if (!R.value || zn.value || document.activeElement !== R.value || !Y.value.length) return;
|
|
751
797
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
752
798
|
if (!t && !n && !r && !i) return;
|
|
753
799
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -758,50 +804,50 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
758
804
|
if (N.value === null) return;
|
|
759
805
|
let e = Y.value[N.value];
|
|
760
806
|
if (!e) return;
|
|
761
|
-
|
|
807
|
+
Nn(e, N.value);
|
|
762
808
|
return;
|
|
763
809
|
}
|
|
764
810
|
let a = N.value;
|
|
765
811
|
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));
|
|
766
812
|
let o = Y.value[a];
|
|
767
|
-
o && (N.value = a,
|
|
813
|
+
o && (N.value = a, er(a), Pn(o, a, "keyboard"));
|
|
768
814
|
}
|
|
769
|
-
let
|
|
815
|
+
let nr = d(() => ({
|
|
770
816
|
headers: Z.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
771
817
|
rows: Z.value?.body ?? []
|
|
772
818
|
}));
|
|
773
|
-
return
|
|
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:
|
|
819
|
+
return Se({
|
|
820
|
+
getData: pn,
|
|
821
|
+
getImage: Vn,
|
|
822
|
+
generatePdf: rn,
|
|
823
|
+
generateCsv: Fn,
|
|
824
|
+
generateImage: an,
|
|
825
|
+
generateSvg: Yn,
|
|
826
|
+
hideSeries: _n,
|
|
827
|
+
showSeries: gn,
|
|
828
|
+
toggleTable: Ln,
|
|
829
|
+
toggleTooltip: Rn,
|
|
830
|
+
toggleAnnotator: Bn,
|
|
831
|
+
toggleFullscreen: In,
|
|
832
|
+
copyAlt: Zn
|
|
787
833
|
}), (e, t) => (x(), m("div", {
|
|
788
834
|
class: v(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
789
835
|
ref_key: "radarChart",
|
|
790
836
|
ref: j,
|
|
791
837
|
id: `vue-ui-radar_${k.value}`,
|
|
792
838
|
style: b(`font-family:${F.value.style.fontFamily};width:100%; ${F.value.responsive ? "height: 100%;" : ""} text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
793
|
-
onMouseenter: t[2] ||= () => E(
|
|
794
|
-
onMouseleave: t[3] ||= () => E(
|
|
839
|
+
onMouseenter: t[2] ||= () => E(Zt)(!0),
|
|
840
|
+
onMouseleave: t[3] ||= () => E(Zt)(!1)
|
|
795
841
|
}, [
|
|
796
842
|
h("div", {
|
|
797
843
|
id: `chart-instructions-${k.value}`,
|
|
798
844
|
class: "sr-only"
|
|
799
|
-
}, [h("p", null, T(F.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
800
|
-
|
|
845
|
+
}, [h("p", null, T(F.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
846
|
+
nr.value?.rows?.length ? (x(), f(De, {
|
|
801
847
|
key: 0,
|
|
802
848
|
uid: k.value,
|
|
803
|
-
head:
|
|
804
|
-
body:
|
|
849
|
+
head: nr.value.headers,
|
|
850
|
+
body: nr.value.rows,
|
|
805
851
|
notice: F.value.a11y.translations.tableAvailable,
|
|
806
852
|
caption: F.value.a11y.translations.tableCaption
|
|
807
853
|
}, null, 8, [
|
|
@@ -811,14 +857,14 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
811
857
|
"notice",
|
|
812
858
|
"caption"
|
|
813
859
|
])) : p("", !0),
|
|
814
|
-
F.value.userOptions.buttons.annotator ? (x(), f(E(
|
|
860
|
+
F.value.userOptions.buttons.annotator ? (x(), f(E(Tt), {
|
|
815
861
|
key: 1,
|
|
816
862
|
svgRef: E(R),
|
|
817
863
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
818
864
|
color: F.value.style.chart.color,
|
|
819
|
-
active:
|
|
865
|
+
active: zn.value,
|
|
820
866
|
isCursorPointer: I.value,
|
|
821
|
-
onClose:
|
|
867
|
+
onClose: Bn
|
|
822
868
|
}, {
|
|
823
869
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
824
870
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -834,20 +880,20 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
834
880
|
"active",
|
|
835
881
|
"isCursorPointer"
|
|
836
882
|
])) : p("", !0),
|
|
837
|
-
|
|
883
|
+
on.value ? (x(), m("div", {
|
|
838
884
|
key: 2,
|
|
839
885
|
ref_key: "noTitle",
|
|
840
|
-
ref:
|
|
886
|
+
ref: Rt,
|
|
841
887
|
class: "vue-data-ui-no-title-space",
|
|
842
888
|
style: "height:36px; width: 100%;background:transparent"
|
|
843
889
|
}, null, 512)) : p("", !0),
|
|
844
890
|
F.value.style.chart.title.text ? (x(), m("div", {
|
|
845
891
|
key: 3,
|
|
846
892
|
ref_key: "chartTitle",
|
|
847
|
-
ref:
|
|
893
|
+
ref: Ft,
|
|
848
894
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
849
|
-
}, [(x(), f(
|
|
850
|
-
key: `title_${
|
|
895
|
+
}, [(x(), f(xe, {
|
|
896
|
+
key: `title_${zt.value}`,
|
|
851
897
|
config: {
|
|
852
898
|
title: {
|
|
853
899
|
cy: "radar-div-title",
|
|
@@ -859,15 +905,15 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
859
905
|
}
|
|
860
906
|
}
|
|
861
907
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
862
|
-
h("div", { id: `legend-top-${k.value}` }, null, 8,
|
|
863
|
-
F.value.userOptions.show &&
|
|
908
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, Je),
|
|
909
|
+
F.value.userOptions.show && Mt.value && (E(Qt) || E(Xt)) ? (x(), f(E(Et), {
|
|
864
910
|
ref_key: "userOptionsRef",
|
|
865
|
-
ref:
|
|
866
|
-
key: `user_options_${
|
|
911
|
+
ref: Ut,
|
|
912
|
+
key: `user_options_${Pt.value}`,
|
|
867
913
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
868
914
|
color: F.value.style.chart.color,
|
|
869
|
-
isImaging: E(
|
|
870
|
-
isPrinting: E(
|
|
915
|
+
isImaging: E(nn),
|
|
916
|
+
isPrinting: E(tn),
|
|
871
917
|
uid: k.value,
|
|
872
918
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
873
919
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
@@ -883,22 +929,22 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
883
929
|
chartElement: j.value,
|
|
884
930
|
position: F.value.userOptions.position,
|
|
885
931
|
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
886
|
-
isAnnotation:
|
|
932
|
+
isAnnotation: zn.value,
|
|
887
933
|
callbacks: F.value.userOptions.callbacks,
|
|
888
934
|
printScale: F.value.userOptions.print.scale,
|
|
889
935
|
tableDialog: F.value.table.useDialog,
|
|
890
936
|
isCursorPointer: I.value,
|
|
891
|
-
onToggleFullscreen:
|
|
892
|
-
onGeneratePdf: E(
|
|
893
|
-
onGenerateCsv:
|
|
894
|
-
onGenerateImage:
|
|
895
|
-
onGenerateSvg:
|
|
896
|
-
onToggleTable:
|
|
897
|
-
onToggleTooltip:
|
|
898
|
-
onToggleAnnotator:
|
|
899
|
-
onCopyAlt:
|
|
900
|
-
style: b({ visibility: E(
|
|
901
|
-
},
|
|
937
|
+
onToggleFullscreen: In,
|
|
938
|
+
onGeneratePdf: E(rn),
|
|
939
|
+
onGenerateCsv: Fn,
|
|
940
|
+
onGenerateImage: Xn,
|
|
941
|
+
onGenerateSvg: Yn,
|
|
942
|
+
onToggleTable: Ln,
|
|
943
|
+
onToggleTooltip: Rn,
|
|
944
|
+
onToggleAnnotator: Bn,
|
|
945
|
+
onCopyAlt: Zn,
|
|
946
|
+
style: b({ visibility: E(Qt) ? E(Xt) ? "visible" : "hidden" : "visible" })
|
|
947
|
+
}, Pe({ _: 2 }, [
|
|
902
948
|
e.$slots.menuIcon ? {
|
|
903
949
|
name: "menuIcon",
|
|
904
950
|
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
@@ -969,10 +1015,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
969
1015
|
key: "11"
|
|
970
1016
|
} : void 0
|
|
971
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("."))) : p("", !0),
|
|
972
|
-
h("div",
|
|
1018
|
+
h("div", Ye, [(x(), m("svg", {
|
|
973
1019
|
ref_key: "svgRef",
|
|
974
1020
|
ref: R,
|
|
975
|
-
xmlns: E(
|
|
1021
|
+
xmlns: E(le),
|
|
976
1022
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
977
1023
|
class: v({
|
|
978
1024
|
"vue-data-ui-fullscreen--on": $.value,
|
|
@@ -981,11 +1027,11 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
981
1027
|
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
982
1028
|
style: b(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.chart.color}`),
|
|
983
1029
|
tabindex: "0",
|
|
984
|
-
onFocus:
|
|
985
|
-
onBlur:
|
|
986
|
-
onKeydown:
|
|
1030
|
+
onFocus: Qn,
|
|
1031
|
+
onBlur: $n,
|
|
1032
|
+
onKeydown: tr
|
|
987
1033
|
}, [
|
|
988
|
-
|
|
1034
|
+
Ie(E(Dt)),
|
|
989
1035
|
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
990
1036
|
key: 0,
|
|
991
1037
|
x: 0,
|
|
@@ -993,8 +1039,8 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
993
1039
|
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
994
1040
|
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
995
1041
|
style: { pointerEvents: "none" }
|
|
996
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
997
|
-
h("defs", null, [(x(!0), m(u, null, C(q.value, (e, t) => (x(), f(
|
|
1042
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : p("", !0),
|
|
1043
|
+
h("defs", null, [(x(!0), m(u, null, C(q.value, (e, t) => (x(), f(Te, {
|
|
998
1044
|
t: "radial",
|
|
999
1045
|
cx: "50%",
|
|
1000
1046
|
cy: "50%",
|
|
@@ -1005,57 +1051,57 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1005
1051
|
key: `radar_gradient_${k.value}_${t}`,
|
|
1006
1052
|
stops: [[
|
|
1007
1053
|
"0%",
|
|
1008
|
-
E(
|
|
1054
|
+
E(r)(E(ne)(e.color, .05), F.value.style.chart.layout.dataPolygon.opacity),
|
|
1009
1055
|
1
|
|
1010
1056
|
], [
|
|
1011
1057
|
"100%",
|
|
1012
|
-
E(
|
|
1058
|
+
E(r)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1013
1059
|
1
|
|
1014
1060
|
]]
|
|
1015
1061
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1016
|
-
F.value.style.chart.layout.grid.show ? (x(), m("g",
|
|
1062
|
+
F.value.style.chart.layout.grid.show ? (x(), m("g", Qe, [(x(!0), m(u, null, C(Y.value, (e) => (x(), m("line", {
|
|
1017
1063
|
x1: U.value.width / 2,
|
|
1018
1064
|
y1: U.value.height / 2,
|
|
1019
1065
|
x2: e.x,
|
|
1020
1066
|
y2: e.y,
|
|
1021
1067
|
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1022
1068
|
"stroke-width": F.value.style.chart.layout.grid.strokeWidth
|
|
1023
|
-
}, null, 8,
|
|
1024
|
-
d: E(
|
|
1069
|
+
}, null, 8, $e))), 256)), F.value.style.chart.layout.grid.graduations > 0 ? (x(), m("g", et, [(x(!0), m(u, null, C(wn.value, (e) => (x(), m("path", {
|
|
1070
|
+
d: E(ee)({
|
|
1025
1071
|
plot: {
|
|
1026
1072
|
x: U.value.width / 2,
|
|
1027
1073
|
y: U.value.height / 2
|
|
1028
1074
|
},
|
|
1029
1075
|
radius: e,
|
|
1030
|
-
sides:
|
|
1076
|
+
sides: xn.value,
|
|
1031
1077
|
rotation: 0
|
|
1032
1078
|
}).path,
|
|
1033
1079
|
fill: "none",
|
|
1034
1080
|
stroke: F.value.style.chart.layout.grid.stroke,
|
|
1035
1081
|
"stroke-width": F.value.style.chart.layout.grid.strokeWidth
|
|
1036
|
-
}, null, 8,
|
|
1082
|
+
}, null, 8, tt))), 256))])) : p("", !0)])) : p("", !0),
|
|
1037
1083
|
h("path", {
|
|
1038
|
-
d:
|
|
1084
|
+
d: Cn.value.path,
|
|
1039
1085
|
fill: "none",
|
|
1040
1086
|
stroke: F.value.style.chart.layout.outerPolygon.stroke,
|
|
1041
1087
|
"stroke-width": F.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
1042
1088
|
"stroke-linejoin": "round",
|
|
1043
1089
|
"stroke-linecap": "round"
|
|
1044
|
-
}, null, 8,
|
|
1045
|
-
F.value.style.chart.layout.labels.dataLabels.show ? (x(), m("g",
|
|
1090
|
+
}, null, 8, nt),
|
|
1091
|
+
F.value.style.chart.layout.labels.dataLabels.show ? (x(), m("g", rt, [(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("text", {
|
|
1046
1092
|
class: "vue-ui-radar-apex-label",
|
|
1047
1093
|
x: e.labelX,
|
|
1048
1094
|
y: e.labelY,
|
|
1049
1095
|
"text-anchor": e.labelAnchor,
|
|
1050
1096
|
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1051
1097
|
fill: F.value.style.chart.layout.labels.dataLabels.color,
|
|
1052
|
-
onMouseenter: (n) =>
|
|
1053
|
-
onMouseleave: (n) =>
|
|
1054
|
-
onClick: (n) =>
|
|
1055
|
-
}, T(e.name), 41,
|
|
1098
|
+
onMouseenter: (n) => Pn(e, t, "pointer"),
|
|
1099
|
+
onMouseleave: (n) => Mn(e, t),
|
|
1100
|
+
onClick: (n) => Nn(e, t)
|
|
1101
|
+
}, T(e.name), 41, it))), 256))])) : p("", !0),
|
|
1056
1102
|
(x(!0), m(u, null, C(q.value, (e, t) => (x(), m("g", null, [h("g", null, [F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), m("polygon", {
|
|
1057
1103
|
key: 0,
|
|
1058
|
-
points: E(
|
|
1104
|
+
points: E(n)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1059
1105
|
stroke: F.value.style.chart.backgroundColor,
|
|
1060
1106
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1061
1107
|
fill: "none",
|
|
@@ -1063,29 +1109,29 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1063
1109
|
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1064
1110
|
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1065
1111
|
})
|
|
1066
|
-
}, null, 10,
|
|
1112
|
+
}, null, 10, at)) : p("", !0), F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), m("polygon", {
|
|
1067
1113
|
key: 1,
|
|
1068
|
-
points: E(
|
|
1114
|
+
points: E(n)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1069
1115
|
stroke: e.color,
|
|
1070
1116
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1071
|
-
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${k.value}_${t})` : E(
|
|
1117
|
+
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${k.value}_${t})` : E(r)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
1072
1118
|
class: v({
|
|
1073
1119
|
"animated-out": W.value.includes(t) && F.value.useCssAnimation,
|
|
1074
1120
|
"animated-in": K.value && G.value === t && F.value.useCssAnimation
|
|
1075
1121
|
})
|
|
1076
|
-
}, null, 10,
|
|
1122
|
+
}, null, 10, ot)) : p("", !0)])]))), 256)),
|
|
1077
1123
|
F.value.style.chart.layout.targetReference.show ? (x(), m("path", {
|
|
1078
1124
|
key: 3,
|
|
1079
1125
|
class: "vue-ui-radar-target-polygon",
|
|
1080
|
-
d: `M${E(
|
|
1126
|
+
d: `M${E(n)(bn.value, !1, !0)}Z`,
|
|
1081
1127
|
fill: "none",
|
|
1082
1128
|
stroke: F.value.style.chart.layout.targetReference.stroke,
|
|
1083
1129
|
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth,
|
|
1084
1130
|
"stroke-linejoin": "round",
|
|
1085
1131
|
"stroke-linecap": "round",
|
|
1086
1132
|
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray
|
|
1087
|
-
}, null, 8,
|
|
1088
|
-
F.value.style.chart.layout.plots.show ? (x(), m("g",
|
|
1133
|
+
}, null, 8, st)) : p("", !0),
|
|
1134
|
+
F.value.style.chart.layout.plots.show ? (x(), m("g", ct, [(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", null, [(x(!0), m(u, null, C(e.plots, (e, n) => (x(), m("circle", {
|
|
1089
1135
|
cx: e.x,
|
|
1090
1136
|
cy: e.y,
|
|
1091
1137
|
fill: W.value.includes(n) ? "transparent" : q.value[n] ? q.value[n].color : "transparent",
|
|
@@ -1096,45 +1142,45 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1096
1142
|
"animated-out": W.value.includes(n) && F.value.useCssAnimation,
|
|
1097
1143
|
"animated-in": K.value && G.value === n && F.value.useCssAnimation
|
|
1098
1144
|
})
|
|
1099
|
-
}, null, 10,
|
|
1145
|
+
}, null, 10, lt))), 256))]))), 256))])) : p("", !0),
|
|
1100
1146
|
w(e.$slots, "svg", { svg: {
|
|
1101
1147
|
...U.value,
|
|
1102
|
-
outerPolygon:
|
|
1103
|
-
isPrintingImg: E(
|
|
1104
|
-
isPrintingSvg:
|
|
1148
|
+
outerPolygon: Cn.value,
|
|
1149
|
+
isPrintingImg: E(tn) || E(nn) || Wt.value,
|
|
1150
|
+
isPrintingSvg: Gt.value
|
|
1105
1151
|
} }, void 0, !0)
|
|
1106
|
-
], 46,
|
|
1152
|
+
], 46, Xe)), e.$slots.hint ? (x(), m("div", ut, [w(e.$slots, "hint", y(_({
|
|
1107
1153
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1108
|
-
isVisible:
|
|
1154
|
+
isVisible: qt.value
|
|
1109
1155
|
})), void 0, !0)])) : p("", !0)]),
|
|
1110
|
-
e.$slots.watermark ? (x(), m("div",
|
|
1111
|
-
h("div", { id: `legend-bottom-${k.value}` }, null, 8,
|
|
1112
|
-
|
|
1156
|
+
e.$slots.watermark ? (x(), m("div", dt, [w(e.$slots, "watermark", y(_({ isPrinting: E(tn) || E(nn) || Wt.value || Gt.value })), void 0, !0)])) : p("", !0),
|
|
1157
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, ft),
|
|
1158
|
+
Ht.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Ne, {
|
|
1113
1159
|
key: 6,
|
|
1114
1160
|
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1115
1161
|
}, [h("div", {
|
|
1116
1162
|
ref_key: "chartLegend",
|
|
1117
|
-
ref:
|
|
1118
|
-
}, [w(e.$slots, "legend", { legend: X.value }, () => [F.value.style.chart.legend.show ? (x(), f(
|
|
1119
|
-
key: `legend_${
|
|
1163
|
+
ref: It
|
|
1164
|
+
}, [w(e.$slots, "legend", { legend: X.value }, () => [F.value.style.chart.legend.show ? (x(), f(Ae, {
|
|
1165
|
+
key: `legend_${Vt.value}`,
|
|
1120
1166
|
legendSet: X.value,
|
|
1121
|
-
config:
|
|
1167
|
+
config: kn.value,
|
|
1122
1168
|
isCursorPointer: I.value,
|
|
1123
|
-
onClickMarker: t[0] ||= ({ i: e }) =>
|
|
1124
|
-
},
|
|
1125
|
-
item: D(({ legend: e, index: t }) => [E(
|
|
1169
|
+
onClickMarker: t[0] ||= ({ i: e }) => fn(e)
|
|
1170
|
+
}, Pe({
|
|
1171
|
+
item: D(({ legend: e, index: t }) => [E(Yt) ? p("", !0) : (x(), m("div", {
|
|
1126
1172
|
key: 0,
|
|
1127
1173
|
onClick: (t) => e.segregate(),
|
|
1128
1174
|
style: b(`opacity:${W.value.includes(t) ? .5 : 1}`)
|
|
1129
|
-
}, T(e.display), 13,
|
|
1130
|
-
legendToggle: D(() => [X.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !E(
|
|
1175
|
+
}, T(e.display), 13, pt))]),
|
|
1176
|
+
legendToggle: D(() => [X.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !E(Yt) ? (x(), f(Ee, {
|
|
1131
1177
|
key: 0,
|
|
1132
1178
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1133
1179
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1134
1180
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
1135
1181
|
checked: W.value.length > 0,
|
|
1136
1182
|
isCursorPointer: I.value,
|
|
1137
|
-
onToggle:
|
|
1183
|
+
onToggle: un
|
|
1138
1184
|
}, null, 8, [
|
|
1139
1185
|
"backgroundColor",
|
|
1140
1186
|
"color",
|
|
@@ -1145,7 +1191,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1145
1191
|
_: 2
|
|
1146
1192
|
}, [F.value.style.chart.layout.targetReference.show && F.value.style.chart.layout.targetReference.showInLegend ? {
|
|
1147
1193
|
name: "after",
|
|
1148
|
-
fn: D(() => [h("div",
|
|
1194
|
+
fn: D(() => [h("div", mt, [h("div", { style: b({
|
|
1149
1195
|
display: "flex",
|
|
1150
1196
|
height: F.value.style.chart.legend.fontSize
|
|
1151
1197
|
}) }, [(x(), m("svg", {
|
|
@@ -1160,7 +1206,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1160
1206
|
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth * .7,
|
|
1161
1207
|
"stroke-dasharray": F.value.style.chart.layout.targetReference.strokeDasharray * .7,
|
|
1162
1208
|
"stroke-linecap": "round"
|
|
1163
|
-
}, null, 8,
|
|
1209
|
+
}, null, 8, ht)], 4))], 4), h("span", null, T(F.value.style.chart.layout.targetReference.legendLabel), 1)])]),
|
|
1164
1210
|
key: "0"
|
|
1165
1211
|
} : void 0]), 1032, [
|
|
1166
1212
|
"legendSet",
|
|
@@ -1170,10 +1216,10 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1170
1216
|
e.$slots.source ? (x(), m("div", {
|
|
1171
1217
|
key: 7,
|
|
1172
1218
|
ref_key: "source",
|
|
1173
|
-
ref:
|
|
1219
|
+
ref: Lt,
|
|
1174
1220
|
dir: "auto"
|
|
1175
1221
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1176
|
-
|
|
1222
|
+
Ie(E(bt), {
|
|
1177
1223
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1178
1224
|
show: H.value.showTooltip && A.value,
|
|
1179
1225
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1187,7 +1233,7 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1187
1233
|
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
1188
1234
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1189
1235
|
parent: j.value,
|
|
1190
|
-
content:
|
|
1236
|
+
content: Nt.value,
|
|
1191
1237
|
isFullscreen: $.value,
|
|
1192
1238
|
isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
|
|
1193
1239
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
@@ -1195,18 +1241,18 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1195
1241
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1196
1242
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1197
1243
|
isA11yMode: P.value === "keyboard",
|
|
1198
|
-
a11yPosition:
|
|
1244
|
+
a11yPosition: Kt.value
|
|
1199
1245
|
}, {
|
|
1200
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...
|
|
1201
|
-
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...
|
|
1202
|
-
"tooltip-after": D(() => [!["function"].includes(typeof F.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (x(), m("div",
|
|
1203
|
-
dataset:
|
|
1204
|
-
config:
|
|
1246
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...jn.value })), void 0, !0)]),
|
|
1247
|
+
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...jn.value })), void 0, !0)]),
|
|
1248
|
+
"tooltip-after": D(() => [!["function"].includes(typeof F.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (x(), m("div", gt, [Ie(E(St), {
|
|
1249
|
+
dataset: An.value,
|
|
1250
|
+
config: cn.value,
|
|
1205
1251
|
backgroundOpacity: 0
|
|
1206
1252
|
}, {
|
|
1207
|
-
"data-label": D(({ bar: e }) => [h("div",
|
|
1253
|
+
"data-label": D(({ bar: e }) => [h("div", _t, [h("span", vt, T(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 ? (x(), m("span", yt, T(e.suffix), 1)) : p("", !0)])]),
|
|
1208
1254
|
_: 1
|
|
1209
|
-
}, 8, ["dataset", "config"])])) : p("", !0), w(e.$slots, "tooltip-after", y(_({ ...
|
|
1255
|
+
}, 8, ["dataset", "config"])])) : p("", !0), w(e.$slots, "tooltip-after", y(_({ ...jn.value })), void 0, !0)]),
|
|
1210
1256
|
_: 3
|
|
1211
1257
|
}, 8, [
|
|
1212
1258
|
"teleportTo",
|
|
@@ -1232,24 +1278,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1232
1278
|
"isA11yMode",
|
|
1233
1279
|
"a11yPosition"
|
|
1234
1280
|
]),
|
|
1235
|
-
|
|
1281
|
+
Mt.value && F.value.userOptions.buttons.table ? (x(), f(Ve(Hn.value.component), Le({ key: 8 }, Hn.value.props, {
|
|
1236
1282
|
ref_key: "tableUnit",
|
|
1237
1283
|
ref: M,
|
|
1238
|
-
onClose:
|
|
1239
|
-
}),
|
|
1240
|
-
content: D(() => [(x(), f(E(
|
|
1241
|
-
key: `table_${
|
|
1284
|
+
onClose: Un
|
|
1285
|
+
}), Pe({
|
|
1286
|
+
content: D(() => [(x(), f(E(wt), {
|
|
1287
|
+
key: `table_${Bt.value}`,
|
|
1242
1288
|
colNames: Z.value.colNames,
|
|
1243
1289
|
head: Z.value.head,
|
|
1244
1290
|
body: Z.value.body,
|
|
1245
1291
|
config: Z.value.config,
|
|
1246
|
-
title: F.value.table.useDialog ? "" :
|
|
1292
|
+
title: F.value.table.useDialog ? "" : Hn.value.title,
|
|
1247
1293
|
withCloseButton: !F.value.table.useDialog,
|
|
1248
1294
|
isCursorPointer: I.value,
|
|
1249
|
-
onClose:
|
|
1295
|
+
onClose: Un
|
|
1250
1296
|
}, {
|
|
1251
|
-
th: D(({ th: e }) => [
|
|
1252
|
-
td: D(({ td: e }) => [
|
|
1297
|
+
th: D(({ th: e }) => [Fe(T(e.name), 1)]),
|
|
1298
|
+
td: D(({ td: e }) => [Fe(T(e), 1)]),
|
|
1253
1299
|
_: 1
|
|
1254
1300
|
}, 8, [
|
|
1255
1301
|
"colNames",
|
|
@@ -1263,24 +1309,24 @@ var We = /* @__PURE__ */ e({ default: () => yt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1263
1309
|
_: 2
|
|
1264
1310
|
}, [F.value.table.useDialog ? {
|
|
1265
1311
|
name: "title",
|
|
1266
|
-
fn: D(() => [
|
|
1312
|
+
fn: D(() => [Fe(T(Hn.value.title), 1)]),
|
|
1267
1313
|
key: "0"
|
|
1268
1314
|
} : void 0, F.value.table.useDialog ? {
|
|
1269
1315
|
name: "actions",
|
|
1270
1316
|
fn: D(() => [h("button", {
|
|
1271
1317
|
tabindex: "0",
|
|
1272
1318
|
class: "vue-ui-user-options-button",
|
|
1273
|
-
onClick: t[1] ||= (e) =>
|
|
1319
|
+
onClick: t[1] ||= (e) => Fn(F.value.userOptions.callbacks.csv),
|
|
1274
1320
|
style: b({ cursor: I.value ? "pointer" : "default" })
|
|
1275
|
-
}, [
|
|
1321
|
+
}, [Ie(E(xt), {
|
|
1276
1322
|
name: "fileCsv",
|
|
1277
|
-
stroke:
|
|
1323
|
+
stroke: Hn.value.props.color
|
|
1278
1324
|
}, null, 8, ["stroke"])], 4)]),
|
|
1279
1325
|
key: "1"
|
|
1280
1326
|
} : void 0]), 1040)) : p("", !0),
|
|
1281
|
-
w(e.$slots, "skeleton", {}, () => [E(
|
|
1282
|
-
], 46,
|
|
1327
|
+
w(e.$slots, "skeleton", {}, () => [E(Yt) ? (x(), f(ge, { key: 0 })) : p("", !0)], !0)
|
|
1328
|
+
], 46, Ke));
|
|
1283
1329
|
}
|
|
1284
|
-
}, [["__scopeId", "data-v-
|
|
1330
|
+
}, [["__scopeId", "data-v-92aa007a"]]);
|
|
1285
1331
|
//#endregion
|
|
1286
|
-
export {
|
|
1332
|
+
export { Ge as n, bt as t };
|