vue-data-ui 3.5.2 → 3.7.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/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,984 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as S, computed as v, ref as c, toRefs as Vt, watch as ve, shallowRef as He, onMounted as Dt, onBeforeUnmount as zt, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as Z, normalizeClass as H, createBlock as x, createCommentVNode as g, createElementVNode as w, createVNode as ee, withCtx as d, renderSlot as p, normalizeProps as C, guardReactiveProps as $, createSlots as je, Fragment as R, renderList as V, toDisplayString as D, Teleport as Ut, resolveDynamicComponent as Bt, mergeProps as Et, createTextVNode as pe, nextTick as qe } from "vue";
|
|
2
|
-
import { c as Mt, t as Gt, b as Wt, p as z, o as Xt, f as U, e as Yt, h as Qe, k as Je, x as Ht, d as G, a as he, X as jt, s as ge, i as qt, a8 as Ke, g as Ze, P as Qt, Q as Jt, G as Kt, H as Zt } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { t as ea, u as ta } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as aa, a as et } from "./useNestedProp-CReNavA0.js";
|
|
5
|
-
import { u as oa, B as la } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as na } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
-
import { u as sa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
-
import { u as ra } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import { u as ua } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
10
|
-
import ia from "./img-BecE5qXd.js";
|
|
11
|
-
import ca from "./Title-BzH_LEA3.js";
|
|
12
|
-
import da from "./Legend-G6GMcdAc.js";
|
|
13
|
-
import { t as va } from "./themes-AUNCOb2G.js";
|
|
14
|
-
import { u as pa } from "./useSvgExport-DrjCWun4.js";
|
|
15
|
-
import { _ as ha } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const ga = ["id"], fa = ["id"], ya = ["xmlns", "viewBox"], ma = ["width", "height"], ba = ["id"], ka = ["stop-color"], wa = ["stop-color"], Ca = { key: 1 }, $a = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], _a = { key: 0 }, Ta = ["d", "stroke", "stroke-width"], Sa = ["d", "stroke", "stroke-width"], Aa = { key: 2 }, Pa = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], Oa = ["points", "stroke", "stroke-width"], xa = ["points", "stroke", "stroke-width", "fill"], Fa = { key: 3 }, Ia = ["cx", "cy", "fill", "r", "stroke"], La = {
|
|
17
|
-
key: 4,
|
|
18
|
-
class: "vue-data-ui-watermark"
|
|
19
|
-
}, Na = ["id"], Ra = ["onClick"], Va = {
|
|
20
|
-
key: 0,
|
|
21
|
-
style: { "max-width": "200px", margin: "0 auto" }
|
|
22
|
-
}, Da = {
|
|
23
|
-
class: "vue-ui-radar-tooltip-datalabel",
|
|
24
|
-
style: { width: "100%" }
|
|
25
|
-
}, za = { class: "vue-ui-radar-tooltip-datalabel-name" }, Ua = { key: 0 }, Ba = {
|
|
26
|
-
__name: "vue-ui-radar",
|
|
27
|
-
props: {
|
|
28
|
-
config: {
|
|
29
|
-
type: Object,
|
|
30
|
-
default() {
|
|
31
|
-
return {};
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
dataset: {
|
|
35
|
-
type: Object,
|
|
36
|
-
default() {
|
|
37
|
-
return {};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
emits: ["selectLegend"],
|
|
42
|
-
setup(tt, { expose: at, emit: ot }) {
|
|
43
|
-
const lt = S(() => import("./Tooltip-oWCO1HKy.js")), nt = S(() => import("./BaseIcon-BmMbm4d0.js")), st = S(() => import("./vue-ui-sparkbar-BDCocMLI.js")), rt = S(() => import("./vue-ui-accordion-BmFTVF1a.js")), ut = S(() => import("./DataTable-BT7VF2ua.js")), it = S(() => import("./PenAndPaper-SZQIAgkg.js")), ct = S(() => import("./UserOptions-CGnQt6Fd.js")), dt = S(() => import("./PackageVersion-Y7t79Jtq.js")), vt = S(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_radar: pt } = aa(), F = tt, fe = v(() => !!F.dataset && Object.keys(F.dataset).length), b = c(Mt()), te = c(!1), ae = c(""), ye = c(0), T = c(null), me = c(null), be = c(null), ke = c(null), we = c(null), Ce = c(0), $e = c(0), _e = c(0), Te = c(!1), W = c(null), oe = c(null), e = c(ne()), { loading: Se, FINAL_DATASET: I } = oa({
|
|
44
|
-
...Vt(F),
|
|
45
|
-
FINAL_CONFIG: e,
|
|
46
|
-
prepareConfig: ne,
|
|
47
|
-
callback: () => {
|
|
48
|
-
Promise.resolve().then(async () => {
|
|
49
|
-
await qe(), y.value.showTable = e.value.table.show;
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
skeletonDataset: {
|
|
53
|
-
categories: [{ name: "_", color: "#6A6A6A" }],
|
|
54
|
-
series: [
|
|
55
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
56
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
57
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
58
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
59
|
-
{ name: "_", values: [0.6], target: 1 },
|
|
60
|
-
{ name: "_", values: [0.6], target: 1 }
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
skeletonConfig: Gt({
|
|
64
|
-
defaultConfig: e.value,
|
|
65
|
-
userConfig: {
|
|
66
|
-
userOptions: { show: !1 },
|
|
67
|
-
table: { show: !1 },
|
|
68
|
-
useCssAnimation: !1,
|
|
69
|
-
style: {
|
|
70
|
-
chart: {
|
|
71
|
-
backgroundColor: "#99999930",
|
|
72
|
-
layout: {
|
|
73
|
-
grid: {
|
|
74
|
-
stroke: "#6A6A6A90"
|
|
75
|
-
},
|
|
76
|
-
labels: {
|
|
77
|
-
dataLabels: { show: !1 }
|
|
78
|
-
},
|
|
79
|
-
outerPolygon: {
|
|
80
|
-
stroke: "#6A6A6A"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
legend: {
|
|
84
|
-
backgroundColor: "transparent"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
})
|
|
90
|
-
}), { userOptionsVisible: le, setUserOptionsVisibility: Ae, keepUserOptionState: Pe } = sa({ config: e.value }), { svgRef: j } = ra({ config: e.value.style.chart.title });
|
|
91
|
-
function ne() {
|
|
92
|
-
const t = et({
|
|
93
|
-
userConfig: F.config,
|
|
94
|
-
defaultConfig: pt
|
|
95
|
-
});
|
|
96
|
-
return t.theme ? {
|
|
97
|
-
...et({
|
|
98
|
-
userConfig: va.vue_ui_radar[t.theme] || F.config,
|
|
99
|
-
defaultConfig: t
|
|
100
|
-
}),
|
|
101
|
-
customPalette: Wt[t.theme] || z
|
|
102
|
-
} : t;
|
|
103
|
-
}
|
|
104
|
-
ve(() => F.config, (t) => {
|
|
105
|
-
e.value = ne(), le.value = !e.value.userOptions.showOnChartHover, Oe(), Ce.value += 1, $e.value += 1, _e.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
106
|
-
}, { deep: !0 });
|
|
107
|
-
const A = He(null), B = He(null), L = v(() => e.value.debug);
|
|
108
|
-
function Oe() {
|
|
109
|
-
if (Xt(F.dataset) && U({
|
|
110
|
-
componentName: "VueUiRadar",
|
|
111
|
-
type: "dataset",
|
|
112
|
-
debug: L.value
|
|
113
|
-
}), e.value.responsive) {
|
|
114
|
-
const t = ea(() => {
|
|
115
|
-
const { width: o, height: a } = ta({
|
|
116
|
-
chart: T.value,
|
|
117
|
-
title: e.value.style.chart.title.text ? me.value : null,
|
|
118
|
-
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
119
|
-
source: ke.value,
|
|
120
|
-
noTitle: we.value
|
|
121
|
-
});
|
|
122
|
-
requestAnimationFrame(() => {
|
|
123
|
-
i.value.width = o, i.value.height = a, Ue();
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
A.value && (B.value && A.value.unobserve(B.value), A.value.disconnect()), A.value = new ResizeObserver(t), B.value = T.value.parentNode, A.value.observe(B.value);
|
|
127
|
-
}
|
|
128
|
-
Ue();
|
|
129
|
-
}
|
|
130
|
-
Dt(() => {
|
|
131
|
-
Te.value = !0, Oe();
|
|
132
|
-
}), zt(() => {
|
|
133
|
-
A.value && (B.value && A.value.unobserve(B.value), A.value.disconnect());
|
|
134
|
-
});
|
|
135
|
-
const { isPrinting: xe, isImaging: Fe, generatePdf: Ie, generateImage: Le } = na({
|
|
136
|
-
elementId: `vue-ui-radar_${b.value}`,
|
|
137
|
-
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
138
|
-
options: e.value.userOptions.print
|
|
139
|
-
}), ht = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = v(() => Yt(e.value.customPalette)), y = c({
|
|
140
|
-
dataLabels: {
|
|
141
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
142
|
-
},
|
|
143
|
-
showTable: e.value.table.show,
|
|
144
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
145
|
-
}), gt = v(() => ({
|
|
146
|
-
style: {
|
|
147
|
-
backgroundColor: "#FFFFFF00",
|
|
148
|
-
animation: {
|
|
149
|
-
show: e.value.style.chart.tooltip.animation.show,
|
|
150
|
-
animationFrames: e.value.style.chart.tooltip.animation.animationFrames
|
|
151
|
-
},
|
|
152
|
-
labels: {
|
|
153
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
154
|
-
name: {
|
|
155
|
-
color: e.value.style.chart.tooltip.color
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
gutter: {
|
|
159
|
-
backgroundColor: "#CCCCCC",
|
|
160
|
-
opacity: 30
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
})), i = c({
|
|
164
|
-
height: 312,
|
|
165
|
-
width: 512
|
|
166
|
-
}), ft = ot, f = c([]), X = c(null), E = c(!1);
|
|
167
|
-
function q(t) {
|
|
168
|
-
E.value = !0, f.value.includes(t) ? (X.value = t, f.value = f.value.filter((o) => o !== t), setTimeout(() => {
|
|
169
|
-
E.value = !1, X.value = null;
|
|
170
|
-
}, 500)) : (f.value.push(t), setTimeout(() => {
|
|
171
|
-
E.value = !1;
|
|
172
|
-
}, 500)), ft("selectLegend", O.value.filter((o, a) => !f.value.includes(a)).map((o) => ({
|
|
173
|
-
name: o.name,
|
|
174
|
-
color: o.color,
|
|
175
|
-
proportion: o.totalProportion
|
|
176
|
-
})));
|
|
177
|
-
}
|
|
178
|
-
function yt() {
|
|
179
|
-
return O.value.map((t) => ({
|
|
180
|
-
name: t.name,
|
|
181
|
-
color: t.color,
|
|
182
|
-
proportion: t.totalProportion
|
|
183
|
-
}));
|
|
184
|
-
}
|
|
185
|
-
function mt() {
|
|
186
|
-
const t = I.value;
|
|
187
|
-
if ([null, void 0].includes(t?.categories)) {
|
|
188
|
-
U({
|
|
189
|
-
componentName: "VueUiRadar",
|
|
190
|
-
type: "dataset",
|
|
191
|
-
debug: L.value
|
|
192
|
-
}), U({
|
|
193
|
-
componentName: "VueUiRadar",
|
|
194
|
-
type: "datasetAttribute",
|
|
195
|
-
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
196
|
-
debug: L.value
|
|
197
|
-
});
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
t.categories.length === 0 ? U({
|
|
201
|
-
componentName: "VueUiRadar",
|
|
202
|
-
type: "datasetAttributeEmpty",
|
|
203
|
-
property: "categories",
|
|
204
|
-
debug: L.value
|
|
205
|
-
}) : t.categories.forEach((o, a) => {
|
|
206
|
-
Ze({
|
|
207
|
-
datasetObject: o,
|
|
208
|
-
requiredAttributes: ["name"]
|
|
209
|
-
}).forEach((l) => {
|
|
210
|
-
U({
|
|
211
|
-
componentName: "VueUiRadar",
|
|
212
|
-
type: "datasetAttribute",
|
|
213
|
-
property: `category.${l} at index ${a}`,
|
|
214
|
-
index: a,
|
|
215
|
-
debug: L.value
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
}), [null, void 0].includes(t?.series) ? U({
|
|
219
|
-
componentName: "VueUiRadar",
|
|
220
|
-
type: "datasetAttribute",
|
|
221
|
-
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
222
|
-
debug: L.value
|
|
223
|
-
}) : t.series.forEach((o, a) => {
|
|
224
|
-
Ze({
|
|
225
|
-
datasetObject: o,
|
|
226
|
-
requiredAttributes: ["name", "values", "target"]
|
|
227
|
-
}).forEach((l) => {
|
|
228
|
-
U({
|
|
229
|
-
componentName: "VueUiRadar",
|
|
230
|
-
type: "datasetSerieAttribute",
|
|
231
|
-
key: "series",
|
|
232
|
-
property: l,
|
|
233
|
-
index: a,
|
|
234
|
-
debug: L.value
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
ve(
|
|
240
|
-
() => I.value,
|
|
241
|
-
() => mt(),
|
|
242
|
-
{ deep: !0, immediate: !0 }
|
|
243
|
-
);
|
|
244
|
-
const _ = v(() => {
|
|
245
|
-
const t = Array.isArray(I.value?.categories) ? I.value.categories : [], o = Ne.value ?? z;
|
|
246
|
-
return t.map((a, l) => ({
|
|
247
|
-
name: a?.name ?? "",
|
|
248
|
-
categoryId: `radar_category_${b.value}_${l}`,
|
|
249
|
-
color: Qe(a?.color) || o[l] || z[l % z.length],
|
|
250
|
-
prefix: a?.prefix ?? "",
|
|
251
|
-
suffix: a?.suffix ?? ""
|
|
252
|
-
}));
|
|
253
|
-
}), k = v(() => I.value.series.map((t, o) => ({
|
|
254
|
-
...t,
|
|
255
|
-
color: Qe(t.color) || Ne.value[o] || z[o] || z[o % z.length],
|
|
256
|
-
serieId: `radar_serie_${b.value}_${o}`,
|
|
257
|
-
formatter: t.formatter || null,
|
|
258
|
-
absoluteIndex: o
|
|
259
|
-
})));
|
|
260
|
-
function Re(t) {
|
|
261
|
-
if (!k.value.length)
|
|
262
|
-
return e.value.debug && console.warn("VueUiRadar - There are no series to show."), null;
|
|
263
|
-
const o = O.value.find((a) => a.name === t);
|
|
264
|
-
return o || (e.value.debug && console.warn(`VueUiRadar - Series name not found "${t}"`), null);
|
|
265
|
-
}
|
|
266
|
-
function bt(t) {
|
|
267
|
-
const o = Re(t);
|
|
268
|
-
o !== null && f.value.includes(o.absoluteIndex) && q(o.absoluteIndex);
|
|
269
|
-
}
|
|
270
|
-
function kt(t) {
|
|
271
|
-
const o = Re(t);
|
|
272
|
-
o !== null && (f.value.includes(o.absoluteIndex) || q(o.absoluteIndex));
|
|
273
|
-
}
|
|
274
|
-
const Ve = v(() => Math.max(...k.value.flatMap((t) => t.values))), De = v(() => k.value.length), se = v(() => Math.min(i.value.width, i.value.height) / 3), ze = v(() => Je({
|
|
275
|
-
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
276
|
-
radius: se.value,
|
|
277
|
-
sides: De.value,
|
|
278
|
-
rotation: 0
|
|
279
|
-
})), wt = v(() => {
|
|
280
|
-
const t = [];
|
|
281
|
-
for (let o = 0; o < se.value; o += se.value / e.value.style.chart.layout.grid.graduations)
|
|
282
|
-
t.push(o);
|
|
283
|
-
return t;
|
|
284
|
-
}), P = v(() => ze.value.coordinates.map((t, o) => {
|
|
285
|
-
const a = k.value[o].values.map((l) => $t({
|
|
286
|
-
centerX: i.value.width / 2,
|
|
287
|
-
centerY: i.value.height / 2,
|
|
288
|
-
apexX: t.x,
|
|
289
|
-
apexY: t.y,
|
|
290
|
-
proportion: l / (k.value[o].target || Ve.value)
|
|
291
|
-
}));
|
|
292
|
-
return {
|
|
293
|
-
...t,
|
|
294
|
-
...k.value[o],
|
|
295
|
-
plots: a
|
|
296
|
-
};
|
|
297
|
-
}).map((t) => ({
|
|
298
|
-
...t,
|
|
299
|
-
labelX: re(t).x,
|
|
300
|
-
labelY: re(t).y,
|
|
301
|
-
labelAnchor: re(t).anchor
|
|
302
|
-
})));
|
|
303
|
-
function re({ x: t, y: o }) {
|
|
304
|
-
let a = "middle";
|
|
305
|
-
return t = Math.round(t), o = Math.round(o), t > i.value.width / 2 && (t += 12, a = "start"), t < i.value.width / 2 && (t -= 12, a = "end"), o > i.value.height / 2 + 1 && (o += 20), o < i.value.height / 2 - 1 && (o -= 12), o === i.value.height / 2 && (o += 4), { x: t, y: o, anchor: a };
|
|
306
|
-
}
|
|
307
|
-
const Ct = v({
|
|
308
|
-
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
309
|
-
set: (t) => t
|
|
310
|
-
}), { autoSizeLabels: Ue } = ua({
|
|
311
|
-
svgRef: j,
|
|
312
|
-
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
313
|
-
minFontSize: 6,
|
|
314
|
-
sizeRef: Ct,
|
|
315
|
-
labelClass: ".vue-ui-radar-apex-label"
|
|
316
|
-
});
|
|
317
|
-
function $t({ centerX: t, centerY: o, apexX: a, apexY: l, proportion: n }) {
|
|
318
|
-
return {
|
|
319
|
-
x: t + (a - t) * n,
|
|
320
|
-
y: o + (l - o) * n
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
const O = v(() => {
|
|
324
|
-
const t = k.value.map((o, a) => o.values.map((l) => l / (o.target || Ve.value)));
|
|
325
|
-
return _.value.map((o, a) => {
|
|
326
|
-
const l = Ht(t.map((n) => n[a]).reduce((n, h) => n + h, 0) / k.value.length);
|
|
327
|
-
return {
|
|
328
|
-
...o,
|
|
329
|
-
absoluteIndex: a,
|
|
330
|
-
totalProportion: l,
|
|
331
|
-
shape: "circle",
|
|
332
|
-
opacity: f.value.includes(a) ? 0.5 : 1,
|
|
333
|
-
segregate: () => q(a),
|
|
334
|
-
isSegregated: f.value.includes(a),
|
|
335
|
-
display: `${o.name}: ${G({
|
|
336
|
-
v: (l ?? 0) * 100,
|
|
337
|
-
s: "%",
|
|
338
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
339
|
-
})}`
|
|
340
|
-
};
|
|
341
|
-
});
|
|
342
|
-
}), _t = v(() => ({
|
|
343
|
-
cy: "radar-div-legend",
|
|
344
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
345
|
-
color: e.value.style.chart.legend.color,
|
|
346
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
347
|
-
paddingBottom: 12,
|
|
348
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
349
|
-
})), Q = v(() => {
|
|
350
|
-
const t = [
|
|
351
|
-
{ name: e.value.translations.datapoint, color: "" },
|
|
352
|
-
{ name: e.value.translations.target, color: "" },
|
|
353
|
-
...O.value
|
|
354
|
-
], o = I.value.series.map((l) => [
|
|
355
|
-
l.name,
|
|
356
|
-
he(
|
|
357
|
-
l.formatter,
|
|
358
|
-
l.target,
|
|
359
|
-
G({
|
|
360
|
-
p: l.prefix,
|
|
361
|
-
v: l.target,
|
|
362
|
-
s: l.suffix,
|
|
363
|
-
r: e.value.table.td.roundingValue
|
|
364
|
-
})
|
|
365
|
-
),
|
|
366
|
-
...l.values.map((n, h) => `${he(
|
|
367
|
-
l.formatter,
|
|
368
|
-
n,
|
|
369
|
-
G({ p: _.value[h]?.prefix ?? "", v: n, s: _.value[h]?.suffix ?? "", r: e.value.table.td.roundingValue })
|
|
370
|
-
)} (${isNaN(n / l.target) ? "" : G({
|
|
371
|
-
v: n / l.target * 100,
|
|
372
|
-
s: "%",
|
|
373
|
-
r: e.value.table.td.roundingPercentage
|
|
374
|
-
})})`)
|
|
375
|
-
]), a = {
|
|
376
|
-
th: {
|
|
377
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
378
|
-
color: e.value.table.th.color,
|
|
379
|
-
outline: e.value.table.th.outline
|
|
380
|
-
},
|
|
381
|
-
td: {
|
|
382
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
383
|
-
color: e.value.table.td.color,
|
|
384
|
-
outline: e.value.table.td.outline
|
|
385
|
-
},
|
|
386
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
387
|
-
};
|
|
388
|
-
return { head: t, body: o, config: a, colNames: t };
|
|
389
|
-
}), J = c(null), ue = c([]), ie = c(null);
|
|
390
|
-
function Tt(t, o) {
|
|
391
|
-
te.value = !1, J.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
392
|
-
}
|
|
393
|
-
function St(t, o) {
|
|
394
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
395
|
-
}
|
|
396
|
-
function At(t, o) {
|
|
397
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o });
|
|
398
|
-
const a = _.value.slice();
|
|
399
|
-
ue.value = [], J.value = o, te.value = !0, ie.value = {
|
|
400
|
-
datapoint: t,
|
|
401
|
-
seriesIndex: o,
|
|
402
|
-
series: {
|
|
403
|
-
categories: a,
|
|
404
|
-
datapoints: k.value,
|
|
405
|
-
radar: P.value
|
|
406
|
-
},
|
|
407
|
-
config: e.value
|
|
408
|
-
};
|
|
409
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
410
|
-
if (Kt(l) && Zt(() => l({
|
|
411
|
-
seriesIndex: o,
|
|
412
|
-
datapoint: t,
|
|
413
|
-
series: { categories: a, datapoints: k.value, radar: P.value },
|
|
414
|
-
config: e.value
|
|
415
|
-
}))) {
|
|
416
|
-
ae.value = l({
|
|
417
|
-
seriesIndex: o,
|
|
418
|
-
datapoint: t,
|
|
419
|
-
series: { categories: a, datapoints: k.value, radar: P.value },
|
|
420
|
-
config: e.value
|
|
421
|
-
});
|
|
422
|
-
return;
|
|
423
|
-
}
|
|
424
|
-
ae.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
425
|
-
for (let n = 0; n < t.values.length; n += 1)
|
|
426
|
-
if (!f.value.includes(n)) {
|
|
427
|
-
const h = a[n], m = t.values[n], Xe = isNaN(m / t.target) ? 0 : m / t.target * 100, M = he(
|
|
428
|
-
t.formatter,
|
|
429
|
-
m,
|
|
430
|
-
G({
|
|
431
|
-
p: _.value[n].prefix,
|
|
432
|
-
v: m,
|
|
433
|
-
s: _.value[n].suffix,
|
|
434
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
435
|
-
}),
|
|
436
|
-
{ datapoint: t }
|
|
437
|
-
), Ye = G({
|
|
438
|
-
v: Xe,
|
|
439
|
-
s: "%",
|
|
440
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
441
|
-
}), Rt = e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${M} (${Ye})` : e.value.style.chart.tooltip.showValue && !e.value.style.chart.tooltip.showPercentage ? M : !e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${Ye}` : "";
|
|
442
|
-
ue.value.push({
|
|
443
|
-
name: h?.name ?? `#${n + 1}`,
|
|
444
|
-
value: t.values[n] / t.target * 100,
|
|
445
|
-
color: h?.color,
|
|
446
|
-
suffix: Rt,
|
|
447
|
-
prefix: "",
|
|
448
|
-
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
449
|
-
formatter: t.formatter
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
function ce(t = null) {
|
|
454
|
-
qe(() => {
|
|
455
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...O.value.flatMap((m) => [[m.name], ["%"]])], l = I.value.series.map((m, Xe) => [m.name, m.target, ...m.values.flatMap((M) => [
|
|
456
|
-
M,
|
|
457
|
-
isNaN(M / m.target) ? "" : M / m.target * 100
|
|
458
|
-
])]), n = o.concat([a]).concat(l), h = Qt(n);
|
|
459
|
-
t ? t(h) : Jt({ csvContent: h, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
const N = c(!1);
|
|
463
|
-
function Be(t) {
|
|
464
|
-
N.value = t, ye.value += 1;
|
|
465
|
-
}
|
|
466
|
-
function Ee() {
|
|
467
|
-
y.value.showTable = !y.value.showTable;
|
|
468
|
-
}
|
|
469
|
-
function Me() {
|
|
470
|
-
y.value.showTooltip = !y.value.showTooltip;
|
|
471
|
-
}
|
|
472
|
-
const K = c(!1);
|
|
473
|
-
function de() {
|
|
474
|
-
K.value = !K.value;
|
|
475
|
-
}
|
|
476
|
-
async function Pt({ scale: t = 2 } = {}) {
|
|
477
|
-
if (!T.value) return;
|
|
478
|
-
const { width: o, height: a } = T.value.getBoundingClientRect(), l = o / a, { imageUri: n, base64: h } = await ia({ domElement: T.value, base64: !0, img: !0, scale: t });
|
|
479
|
-
return {
|
|
480
|
-
imageUri: n,
|
|
481
|
-
base64: h,
|
|
482
|
-
title: e.value.style.chart.title.text,
|
|
483
|
-
width: o,
|
|
484
|
-
height: a,
|
|
485
|
-
aspectRatio: l
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
const Y = v(() => {
|
|
489
|
-
const t = e.value.table.useDialog && !e.value.table.show, o = y.value.showTable;
|
|
490
|
-
return {
|
|
491
|
-
component: t ? vt : rt,
|
|
492
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
493
|
-
props: t ? {
|
|
494
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
495
|
-
color: e.value.table.th.color,
|
|
496
|
-
headerColor: e.value.table.th.color,
|
|
497
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
498
|
-
isFullscreen: N.value,
|
|
499
|
-
fullscreenParent: T.value,
|
|
500
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
501
|
-
} : {
|
|
502
|
-
hideDetails: !0,
|
|
503
|
-
config: {
|
|
504
|
-
open: o,
|
|
505
|
-
maxHeight: 1e4,
|
|
506
|
-
body: {
|
|
507
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
508
|
-
color: e.value.style.chart.color
|
|
509
|
-
},
|
|
510
|
-
head: {
|
|
511
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
512
|
-
color: e.value.style.chart.color
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
});
|
|
518
|
-
ve(() => y.value.showTable, (t) => {
|
|
519
|
-
e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
|
|
520
|
-
});
|
|
521
|
-
function Ge() {
|
|
522
|
-
y.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
|
|
523
|
-
}
|
|
524
|
-
const Ot = v(() => O.value.map((t) => ({
|
|
525
|
-
...t,
|
|
526
|
-
name: t.display
|
|
527
|
-
}))), xt = v(() => e.value.style.chart.backgroundColor), Ft = v(() => e.value.style.chart.legend), It = v(() => e.value.style.chart.title), { exportSvg: Lt, getSvg: Nt } = pa({
|
|
528
|
-
svg: j,
|
|
529
|
-
title: It,
|
|
530
|
-
legend: Ft,
|
|
531
|
-
legendItems: Ot,
|
|
532
|
-
backgroundColor: xt
|
|
533
|
-
});
|
|
534
|
-
async function We({ isCb: t }) {
|
|
535
|
-
if (t) {
|
|
536
|
-
const { blob: o, url: a, text: l, dataUrl: n } = await Nt();
|
|
537
|
-
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: n });
|
|
538
|
-
} else
|
|
539
|
-
Lt();
|
|
540
|
-
}
|
|
541
|
-
return at({
|
|
542
|
-
getData: yt,
|
|
543
|
-
getImage: Pt,
|
|
544
|
-
generatePdf: Ie,
|
|
545
|
-
generateCsv: ce,
|
|
546
|
-
generateImage: Le,
|
|
547
|
-
generateSvg: We,
|
|
548
|
-
hideSeries: kt,
|
|
549
|
-
showSeries: bt,
|
|
550
|
-
toggleTable: Ee,
|
|
551
|
-
toggleTooltip: Me,
|
|
552
|
-
toggleAnnotator: de,
|
|
553
|
-
toggleFullscreen: Be
|
|
554
|
-
}), (t, o) => (s(), r("div", {
|
|
555
|
-
class: H(`vue-data-ui-component vue-ui-radar ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
556
|
-
ref_key: "radarChart",
|
|
557
|
-
ref: T,
|
|
558
|
-
id: `vue-ui-radar_${b.value}`,
|
|
559
|
-
style: Z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
560
|
-
onMouseenter: o[2] || (o[2] = () => u(Ae)(!0)),
|
|
561
|
-
onMouseleave: o[3] || (o[3] = () => u(Ae)(!1))
|
|
562
|
-
}, [
|
|
563
|
-
e.value.userOptions.buttons.annotator ? (s(), x(u(it), {
|
|
564
|
-
key: 0,
|
|
565
|
-
svgRef: u(j),
|
|
566
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
567
|
-
color: e.value.style.chart.color,
|
|
568
|
-
active: K.value,
|
|
569
|
-
onClose: de
|
|
570
|
-
}, {
|
|
571
|
-
"annotator-action-close": d(() => [
|
|
572
|
-
p(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
573
|
-
]),
|
|
574
|
-
"annotator-action-color": d(({ color: a }) => [
|
|
575
|
-
p(t.$slots, "annotator-action-color", C($({ color: a })), void 0, !0)
|
|
576
|
-
]),
|
|
577
|
-
"annotator-action-draw": d(({ mode: a }) => [
|
|
578
|
-
p(t.$slots, "annotator-action-draw", C($({ mode: a })), void 0, !0)
|
|
579
|
-
]),
|
|
580
|
-
"annotator-action-undo": d(({ disabled: a }) => [
|
|
581
|
-
p(t.$slots, "annotator-action-undo", C($({ disabled: a })), void 0, !0)
|
|
582
|
-
]),
|
|
583
|
-
"annotator-action-redo": d(({ disabled: a }) => [
|
|
584
|
-
p(t.$slots, "annotator-action-redo", C($({ disabled: a })), void 0, !0)
|
|
585
|
-
]),
|
|
586
|
-
"annotator-action-delete": d(({ disabled: a }) => [
|
|
587
|
-
p(t.$slots, "annotator-action-delete", C($({ disabled: a })), void 0, !0)
|
|
588
|
-
]),
|
|
589
|
-
_: 3
|
|
590
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
591
|
-
ht.value ? (s(), r("div", {
|
|
592
|
-
key: 1,
|
|
593
|
-
ref_key: "noTitle",
|
|
594
|
-
ref: we,
|
|
595
|
-
class: "vue-data-ui-no-title-space",
|
|
596
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
597
|
-
}, null, 512)) : g("", !0),
|
|
598
|
-
e.value.style.chart.title.text ? (s(), r("div", {
|
|
599
|
-
key: 2,
|
|
600
|
-
ref_key: "chartTitle",
|
|
601
|
-
ref: me,
|
|
602
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
603
|
-
}, [
|
|
604
|
-
(s(), x(ca, {
|
|
605
|
-
key: `title_${Ce.value}`,
|
|
606
|
-
config: {
|
|
607
|
-
title: {
|
|
608
|
-
cy: "radar-div-title",
|
|
609
|
-
...e.value.style.chart.title
|
|
610
|
-
},
|
|
611
|
-
subtitle: {
|
|
612
|
-
cy: "radar-div-subtitle",
|
|
613
|
-
...e.value.style.chart.title.subtitle
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}, null, 8, ["config"]))
|
|
617
|
-
], 512)) : g("", !0),
|
|
618
|
-
w("div", {
|
|
619
|
-
id: `legend-top-${b.value}`
|
|
620
|
-
}, null, 8, fa),
|
|
621
|
-
e.value.userOptions.show && fe.value && (u(Pe) || u(le)) ? (s(), x(u(ct), {
|
|
622
|
-
ref_key: "userOptionsRef",
|
|
623
|
-
ref: oe,
|
|
624
|
-
key: `user_options_${ye.value}`,
|
|
625
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
626
|
-
color: e.value.style.chart.color,
|
|
627
|
-
isImaging: u(Fe),
|
|
628
|
-
isPrinting: u(xe),
|
|
629
|
-
uid: b.value,
|
|
630
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
631
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
632
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
633
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
634
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
635
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
636
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
637
|
-
isFullscreen: N.value,
|
|
638
|
-
isTooltip: y.value.showTooltip,
|
|
639
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
640
|
-
chartElement: T.value,
|
|
641
|
-
position: e.value.userOptions.position,
|
|
642
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
643
|
-
isAnnotation: K.value,
|
|
644
|
-
callbacks: e.value.userOptions.callbacks,
|
|
645
|
-
printScale: e.value.userOptions.print.scale,
|
|
646
|
-
tableDialog: e.value.table.useDialog,
|
|
647
|
-
onToggleFullscreen: Be,
|
|
648
|
-
onGeneratePdf: u(Ie),
|
|
649
|
-
onGenerateCsv: ce,
|
|
650
|
-
onGenerateImage: u(Le),
|
|
651
|
-
onGenerateSvg: We,
|
|
652
|
-
onToggleTable: Ee,
|
|
653
|
-
onToggleTooltip: Me,
|
|
654
|
-
onToggleAnnotator: de,
|
|
655
|
-
style: Z({
|
|
656
|
-
visibility: u(Pe) ? u(le) ? "visible" : "hidden" : "visible"
|
|
657
|
-
})
|
|
658
|
-
}, je({ _: 2 }, [
|
|
659
|
-
t.$slots.menuIcon ? {
|
|
660
|
-
name: "menuIcon",
|
|
661
|
-
fn: d(({ isOpen: a, color: l }) => [
|
|
662
|
-
p(t.$slots, "menuIcon", C($({ isOpen: a, color: l })), void 0, !0)
|
|
663
|
-
]),
|
|
664
|
-
key: "0"
|
|
665
|
-
} : void 0,
|
|
666
|
-
t.$slots.optionTooltip ? {
|
|
667
|
-
name: "optionTooltip",
|
|
668
|
-
fn: d(() => [
|
|
669
|
-
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
670
|
-
]),
|
|
671
|
-
key: "1"
|
|
672
|
-
} : void 0,
|
|
673
|
-
t.$slots.optionPdf ? {
|
|
674
|
-
name: "optionPdf",
|
|
675
|
-
fn: d(() => [
|
|
676
|
-
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
677
|
-
]),
|
|
678
|
-
key: "2"
|
|
679
|
-
} : void 0,
|
|
680
|
-
t.$slots.optionCsv ? {
|
|
681
|
-
name: "optionCsv",
|
|
682
|
-
fn: d(() => [
|
|
683
|
-
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
684
|
-
]),
|
|
685
|
-
key: "3"
|
|
686
|
-
} : void 0,
|
|
687
|
-
t.$slots.optionImg ? {
|
|
688
|
-
name: "optionImg",
|
|
689
|
-
fn: d(() => [
|
|
690
|
-
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
691
|
-
]),
|
|
692
|
-
key: "4"
|
|
693
|
-
} : void 0,
|
|
694
|
-
t.$slots.optionSvg ? {
|
|
695
|
-
name: "optionSvg",
|
|
696
|
-
fn: d(() => [
|
|
697
|
-
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
698
|
-
]),
|
|
699
|
-
key: "5"
|
|
700
|
-
} : void 0,
|
|
701
|
-
t.$slots.optionTable ? {
|
|
702
|
-
name: "optionTable",
|
|
703
|
-
fn: d(() => [
|
|
704
|
-
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
705
|
-
]),
|
|
706
|
-
key: "6"
|
|
707
|
-
} : void 0,
|
|
708
|
-
t.$slots.optionFullscreen ? {
|
|
709
|
-
name: "optionFullscreen",
|
|
710
|
-
fn: d(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
711
|
-
p(t.$slots, "optionFullscreen", C($({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
712
|
-
]),
|
|
713
|
-
key: "7"
|
|
714
|
-
} : void 0,
|
|
715
|
-
t.$slots.optionAnnotator ? {
|
|
716
|
-
name: "optionAnnotator",
|
|
717
|
-
fn: d(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
718
|
-
p(t.$slots, "optionAnnotator", C($({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
719
|
-
]),
|
|
720
|
-
key: "8"
|
|
721
|
-
} : void 0
|
|
722
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
723
|
-
(s(), r("svg", {
|
|
724
|
-
ref_key: "svgRef",
|
|
725
|
-
ref: j,
|
|
726
|
-
xmlns: u(jt),
|
|
727
|
-
class: H({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
728
|
-
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
729
|
-
style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
730
|
-
}, [
|
|
731
|
-
ee(u(dt)),
|
|
732
|
-
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
733
|
-
key: 0,
|
|
734
|
-
x: 0,
|
|
735
|
-
y: 0,
|
|
736
|
-
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
737
|
-
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
738
|
-
style: {
|
|
739
|
-
pointerEvents: "none"
|
|
740
|
-
}
|
|
741
|
-
}, [
|
|
742
|
-
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
743
|
-
], 8, ma)) : g("", !0),
|
|
744
|
-
w("defs", null, [
|
|
745
|
-
(s(!0), r(R, null, V(_.value, (a, l) => (s(), r("radialGradient", {
|
|
746
|
-
cx: "50%",
|
|
747
|
-
cy: "50%",
|
|
748
|
-
r: "50%",
|
|
749
|
-
fx: "50%",
|
|
750
|
-
fy: "50%",
|
|
751
|
-
id: `radar_gradient_${b.value}_${l}`
|
|
752
|
-
}, [
|
|
753
|
-
w("stop", {
|
|
754
|
-
offset: "0%",
|
|
755
|
-
"stop-color": u(ge)(u(qt)(a.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
756
|
-
}, null, 8, ka),
|
|
757
|
-
w("stop", {
|
|
758
|
-
offset: "100%",
|
|
759
|
-
"stop-color": u(ge)(a.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
760
|
-
}, null, 8, wa)
|
|
761
|
-
], 8, ba))), 256))
|
|
762
|
-
]),
|
|
763
|
-
e.value.style.chart.layout.grid.show ? (s(), r("g", Ca, [
|
|
764
|
-
(s(!0), r(R, null, V(P.value, (a) => (s(), r("line", {
|
|
765
|
-
x1: i.value.width / 2,
|
|
766
|
-
y1: i.value.height / 2,
|
|
767
|
-
x2: a.x,
|
|
768
|
-
y2: a.y,
|
|
769
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
770
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
771
|
-
}, null, 8, $a))), 256)),
|
|
772
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (s(), r("g", _a, [
|
|
773
|
-
(s(!0), r(R, null, V(wt.value, (a) => (s(), r("path", {
|
|
774
|
-
d: u(Je)({
|
|
775
|
-
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
776
|
-
radius: a,
|
|
777
|
-
sides: De.value,
|
|
778
|
-
rotation: 0
|
|
779
|
-
}).path,
|
|
780
|
-
fill: "none",
|
|
781
|
-
stroke: e.value.style.chart.layout.grid.stroke,
|
|
782
|
-
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
783
|
-
}, null, 8, Ta))), 256))
|
|
784
|
-
])) : g("", !0)
|
|
785
|
-
])) : g("", !0),
|
|
786
|
-
w("path", {
|
|
787
|
-
d: ze.value.path,
|
|
788
|
-
fill: "none",
|
|
789
|
-
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
790
|
-
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
791
|
-
"stroke-linejoin": "round",
|
|
792
|
-
"stroke-linecap": "round"
|
|
793
|
-
}, null, 8, Sa),
|
|
794
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (s(), r("g", Aa, [
|
|
795
|
-
(s(!0), r(R, null, V(P.value, (a, l) => (s(), r("text", {
|
|
796
|
-
class: "vue-ui-radar-apex-label",
|
|
797
|
-
x: a.labelX,
|
|
798
|
-
y: a.labelY,
|
|
799
|
-
"text-anchor": a.labelAnchor,
|
|
800
|
-
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
801
|
-
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
802
|
-
onMouseenter: (n) => At(a, l),
|
|
803
|
-
onMouseleave: (n) => Tt(a, l),
|
|
804
|
-
onClick: (n) => St(a, l)
|
|
805
|
-
}, D(a.name), 41, Pa))), 256))
|
|
806
|
-
])) : g("", !0),
|
|
807
|
-
(s(!0), r(R, null, V(_.value, (a, l) => (s(), r("g", null, [
|
|
808
|
-
w("g", null, [
|
|
809
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !f.value.includes(l) ? (s(), r("polygon", {
|
|
810
|
-
key: 0,
|
|
811
|
-
points: u(Ke)(P.value.map((n) => n.plots[l]), !1, !0),
|
|
812
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
813
|
-
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
814
|
-
fill: "none",
|
|
815
|
-
class: H({ "animated-out": f.value.includes(l) && e.value.useCssAnimation, "animated-in": E.value && X.value === l && e.value.useCssAnimation })
|
|
816
|
-
}, null, 10, Oa)) : g("", !0),
|
|
817
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !f.value.includes(l) ? (s(), r("polygon", {
|
|
818
|
-
key: 1,
|
|
819
|
-
points: u(Ke)(P.value.map((n) => n.plots[l]), !1, !0),
|
|
820
|
-
stroke: a.color,
|
|
821
|
-
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
822
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : u(ge)(a.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
823
|
-
class: H({ "animated-out": f.value.includes(l) && e.value.useCssAnimation, "animated-in": E.value && X.value === l && e.value.useCssAnimation })
|
|
824
|
-
}, null, 10, xa)) : g("", !0)
|
|
825
|
-
])
|
|
826
|
-
]))), 256)),
|
|
827
|
-
e.value.style.chart.layout.plots.show ? (s(), r("g", Fa, [
|
|
828
|
-
(s(!0), r(R, null, V(P.value, (a, l) => (s(), r("g", null, [
|
|
829
|
-
(s(!0), r(R, null, V(a.plots, (n, h) => (s(), r("circle", {
|
|
830
|
-
cx: n.x,
|
|
831
|
-
cy: n.y,
|
|
832
|
-
fill: f.value.includes(h) ? "transparent" : _.value[h] ? _.value[h].color : "transparent",
|
|
833
|
-
r: J.value !== null && J.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
834
|
-
stroke: f.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
835
|
-
"stroke-width": 0.5,
|
|
836
|
-
class: H({ "animated-out": f.value.includes(h) && e.value.useCssAnimation, "animated-in": E.value && X.value === h && e.value.useCssAnimation })
|
|
837
|
-
}, null, 10, Ia))), 256))
|
|
838
|
-
]))), 256))
|
|
839
|
-
])) : g("", !0),
|
|
840
|
-
p(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
841
|
-
], 14, ya)),
|
|
842
|
-
t.$slots.watermark ? (s(), r("div", La, [
|
|
843
|
-
p(t.$slots, "watermark", C($({ isPrinting: u(xe) || u(Fe) })), void 0, !0)
|
|
844
|
-
])) : g("", !0),
|
|
845
|
-
w("div", {
|
|
846
|
-
id: `legend-bottom-${b.value}`
|
|
847
|
-
}, null, 8, Na),
|
|
848
|
-
Te.value ? (s(), x(Ut, {
|
|
849
|
-
key: 5,
|
|
850
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
851
|
-
}, [
|
|
852
|
-
w("div", {
|
|
853
|
-
ref_key: "chartLegend",
|
|
854
|
-
ref: be
|
|
855
|
-
}, [
|
|
856
|
-
e.value.style.chart.legend.show ? (s(), x(da, {
|
|
857
|
-
key: `legend_${_e.value}`,
|
|
858
|
-
legendSet: O.value,
|
|
859
|
-
config: _t.value,
|
|
860
|
-
onClickMarker: o[0] || (o[0] = ({ i: a }) => q(a))
|
|
861
|
-
}, {
|
|
862
|
-
item: d(({ legend: a, index: l }) => [
|
|
863
|
-
u(Se) ? g("", !0) : (s(), r("div", {
|
|
864
|
-
key: 0,
|
|
865
|
-
onClick: (n) => a.segregate(),
|
|
866
|
-
style: Z(`opacity:${f.value.includes(l) ? 0.5 : 1}`)
|
|
867
|
-
}, D(a.display), 13, Ra))
|
|
868
|
-
]),
|
|
869
|
-
_: 1
|
|
870
|
-
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
871
|
-
key: 1,
|
|
872
|
-
legend: O.value
|
|
873
|
-
}, void 0, !0)
|
|
874
|
-
], 512)
|
|
875
|
-
], 8, ["to"])) : g("", !0),
|
|
876
|
-
t.$slots.source ? (s(), r("div", {
|
|
877
|
-
key: 6,
|
|
878
|
-
ref_key: "source",
|
|
879
|
-
ref: ke,
|
|
880
|
-
dir: "auto"
|
|
881
|
-
}, [
|
|
882
|
-
p(t.$slots, "source", {}, void 0, !0)
|
|
883
|
-
], 512)) : g("", !0),
|
|
884
|
-
ee(u(lt), {
|
|
885
|
-
show: y.value.showTooltip && te.value,
|
|
886
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
887
|
-
color: e.value.style.chart.tooltip.color,
|
|
888
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
889
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
890
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
891
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
892
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
893
|
-
position: e.value.style.chart.tooltip.position,
|
|
894
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
895
|
-
parent: T.value,
|
|
896
|
-
content: ae.value,
|
|
897
|
-
isFullscreen: N.value,
|
|
898
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
899
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
900
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
901
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
902
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
903
|
-
}, {
|
|
904
|
-
"tooltip-before": d(() => [
|
|
905
|
-
p(t.$slots, "tooltip-before", C($({ ...ie.value })), void 0, !0)
|
|
906
|
-
]),
|
|
907
|
-
"tooltip-after": d(() => [
|
|
908
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? g("", !0) : (s(), r("div", Va, [
|
|
909
|
-
ee(u(st), {
|
|
910
|
-
dataset: ue.value,
|
|
911
|
-
config: gt.value,
|
|
912
|
-
backgroundOpacity: 0
|
|
913
|
-
}, {
|
|
914
|
-
"data-label": d(({ bar: a }) => [
|
|
915
|
-
w("div", Da, [
|
|
916
|
-
w("span", za, D(a.name + (e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? ":" : "")), 1),
|
|
917
|
-
e.value.style.chart.tooltip.showValue || e.value.style.chart.tooltip.showPercentage ? (s(), r("span", Ua, D(a.suffix), 1)) : g("", !0)
|
|
918
|
-
])
|
|
919
|
-
]),
|
|
920
|
-
_: 1
|
|
921
|
-
}, 8, ["dataset", "config"])
|
|
922
|
-
])),
|
|
923
|
-
p(t.$slots, "tooltip-after", C($({ ...ie.value })), void 0, !0)
|
|
924
|
-
]),
|
|
925
|
-
_: 3
|
|
926
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
927
|
-
fe.value && e.value.userOptions.buttons.table ? (s(), x(Bt(Y.value.component), Et({ key: 7 }, Y.value.props, {
|
|
928
|
-
ref_key: "tableUnit",
|
|
929
|
-
ref: W,
|
|
930
|
-
onClose: Ge
|
|
931
|
-
}), je({
|
|
932
|
-
content: d(() => [
|
|
933
|
-
(s(), x(u(ut), {
|
|
934
|
-
key: `table_${$e.value}`,
|
|
935
|
-
colNames: Q.value.colNames,
|
|
936
|
-
head: Q.value.head,
|
|
937
|
-
body: Q.value.body,
|
|
938
|
-
config: Q.value.config,
|
|
939
|
-
title: e.value.table.useDialog ? "" : Y.value.title,
|
|
940
|
-
withCloseButton: !e.value.table.useDialog,
|
|
941
|
-
onClose: Ge
|
|
942
|
-
}, {
|
|
943
|
-
th: d(({ th: a }) => [
|
|
944
|
-
pe(D(a.name), 1)
|
|
945
|
-
]),
|
|
946
|
-
td: d(({ td: a }) => [
|
|
947
|
-
pe(D(a), 1)
|
|
948
|
-
]),
|
|
949
|
-
_: 1
|
|
950
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
951
|
-
]),
|
|
952
|
-
_: 2
|
|
953
|
-
}, [
|
|
954
|
-
e.value.table.useDialog ? {
|
|
955
|
-
name: "title",
|
|
956
|
-
fn: d(() => [
|
|
957
|
-
pe(D(Y.value.title), 1)
|
|
958
|
-
]),
|
|
959
|
-
key: "0"
|
|
960
|
-
} : void 0,
|
|
961
|
-
e.value.table.useDialog ? {
|
|
962
|
-
name: "actions",
|
|
963
|
-
fn: d(() => [
|
|
964
|
-
w("button", {
|
|
965
|
-
tabindex: "0",
|
|
966
|
-
class: "vue-ui-user-options-button",
|
|
967
|
-
onClick: o[1] || (o[1] = (a) => ce(e.value.userOptions.callbacks.csv))
|
|
968
|
-
}, [
|
|
969
|
-
ee(u(nt), {
|
|
970
|
-
name: "excel",
|
|
971
|
-
stroke: Y.value.props.color
|
|
972
|
-
}, null, 8, ["stroke"])
|
|
973
|
-
])
|
|
974
|
-
]),
|
|
975
|
-
key: "1"
|
|
976
|
-
} : void 0
|
|
977
|
-
]), 1040)) : g("", !0),
|
|
978
|
-
u(Se) ? (s(), x(la, { key: 8 })) : g("", !0)
|
|
979
|
-
], 46, ga));
|
|
980
|
-
}
|
|
981
|
-
}, ao = /* @__PURE__ */ ha(Ba, [["__scopeId", "data-v-6e33b912"]]);
|
|
982
|
-
export {
|
|
983
|
-
ao as default
|
|
984
|
-
};
|