vue-data-ui 3.22.4 → 3.22.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-CRlwXCDr.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-CUAlQvAQ.js} +22 -22
- 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 +14 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +0 -1757
- package/dist/vue-ui-age-pyramid-e09oK-Fp.js +0 -1238
- package/dist/vue-ui-chestnut-CnEsjvh4.js +0 -2010
- package/dist/vue-ui-chord-BZhXsZXp.js +0 -1391
- package/dist/vue-ui-donut-C4FcvXm3.js +0 -2410
- package/dist/vue-ui-dumbbell-Cykw4WYn.js +0 -1530
- package/dist/vue-ui-funnel-Ct5xQdak.js +0 -777
- package/dist/vue-ui-galaxy-B5BkdIt5.js +0 -1077
- package/dist/vue-ui-history-plot-DCeroetw.js +0 -1700
- package/dist/vue-ui-molecule-2pfoR63d.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +0 -1416
- package/dist/vue-ui-quadrant-Br_iZmcw.js +0 -1978
- package/dist/vue-ui-relation-circle-BVDIikGi.js +0 -924
- package/dist/vue-ui-rings-BDJyoWvT.js +0 -1246
- package/dist/vue-ui-sparkstackbar-1WUQrqd7.js +0 -662
- package/dist/vue-ui-stackline-IRjugedp.js +0 -2416
- package/dist/vue-ui-treemap-CLOlWiDE.js +0 -1587
|
@@ -0,0 +1,1077 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, Dt as n, F as r, Ht as i, Pt as a, Q as o, S as ee, W as te, Wt as ne, X as re, _t as ie, at as ae, b as oe, i as se, lt as ce, q as s, t as le, w as ue } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as de } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as fe } from "./usePrinter-CRp5IW3v.js";
|
|
5
|
+
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as he } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-BEo2N1Db.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ve } from "./img-B_y5qDdm.js";
|
|
10
|
+
import { n as ye } from "./Title-C-p0ilWB.js";
|
|
11
|
+
import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as xe } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as Se } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as Ce } from "./BaseLegendToggle-DFwIY5bE.js";
|
|
15
|
+
import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
16
|
+
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
+
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as De } from "./labelUtils-CyVwqXSh.js";
|
|
19
|
+
import { t as Oe } from "./Legend-D-635Kag.js";
|
|
20
|
+
import { t as ke } from "./vue_ui_galaxy-Ig0cc1_h.js";
|
|
21
|
+
import { Fragment as Ae, Teleport as je, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Fe, nextTick as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onMounted as Ie, openBlock as y, ref as b, renderList as Le, renderSlot as x, resolveDynamicComponent as Re, toDisplayString as ze, toRefs as Be, unref as S, watch as Ve, withCtx as C } from "vue";
|
|
22
|
+
//#region src/components/vue-ui-galaxy.vue
|
|
23
|
+
var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
24
|
+
"xmlns",
|
|
25
|
+
"aria-describedby",
|
|
26
|
+
"viewBox"
|
|
27
|
+
], Je = ["width", "height"], Ye = ["id"], Xe = ["stdDeviation"], Ze = [
|
|
28
|
+
"d",
|
|
29
|
+
"stroke",
|
|
30
|
+
"stroke-width"
|
|
31
|
+
], Qe = [
|
|
32
|
+
"d",
|
|
33
|
+
"stroke",
|
|
34
|
+
"stroke-width"
|
|
35
|
+
], $e = ["filter"], et = [
|
|
36
|
+
"d",
|
|
37
|
+
"stroke",
|
|
38
|
+
"stroke-width"
|
|
39
|
+
], tt = [
|
|
40
|
+
"data-a11y-serie-id",
|
|
41
|
+
"d",
|
|
42
|
+
"stroke-width",
|
|
43
|
+
"aria-label",
|
|
44
|
+
"onMouseenter",
|
|
45
|
+
"onMouseleave",
|
|
46
|
+
"onClick"
|
|
47
|
+
], nt = {
|
|
48
|
+
key: 0,
|
|
49
|
+
style: {
|
|
50
|
+
position: "absolute",
|
|
51
|
+
top: "100%",
|
|
52
|
+
left: "0",
|
|
53
|
+
width: "100%"
|
|
54
|
+
},
|
|
55
|
+
"data-dom-to-png-ignore": "",
|
|
56
|
+
"aria-hidden": "true"
|
|
57
|
+
}, rt = {
|
|
58
|
+
key: 5,
|
|
59
|
+
class: "vue-data-ui-watermark"
|
|
60
|
+
}, it = ["id"], at = ["onClick"], ot = ["innerHTML"], st = /*#__PURE__*/ be({
|
|
61
|
+
__name: "vue-ui-galaxy",
|
|
62
|
+
props: {
|
|
63
|
+
config: {
|
|
64
|
+
type: Object,
|
|
65
|
+
default() {
|
|
66
|
+
return {};
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
dataset: {
|
|
70
|
+
type: Array,
|
|
71
|
+
default() {
|
|
72
|
+
return [];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
emits: [
|
|
77
|
+
"selectLegend",
|
|
78
|
+
"selectDatapoint",
|
|
79
|
+
"copyAlt"
|
|
80
|
+
],
|
|
81
|
+
setup(e, { expose: be, emit: He }) {
|
|
82
|
+
let st = p(() => import("./Tooltip-YabpoXo1.js")), ct = p(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), lt = p(() => import("./vue-ui-accordion-CfMrbDoq.js").then((e) => e.n)), ut = p(() => import("./DataTable-CXfvIulC.js")), dt = p(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), ft = p(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), pt = p(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), mt = p(() => import("./BaseDraggableDialog-VbypEaAa.js").then((e) => e.n)), { vue_ui_galaxy: ht } = de(), { isThemeValid: gt, warnInvalidTheme: _t } = _e(), w = e, T = b(te()), E = b(null), vt = b(!1), yt = b(""), D = b(null), bt = b(0), xt = b(0), St = b(0), Ct = b(0), wt = b(null), Tt = b(null), Et = b(null), Dt = b(null), O = b(null), Ot = b(null), kt = b(!1), k = b(null), At = b(null), jt = b(!1), A = b(!1), j = b(null), M = b(null), Mt = b({
|
|
83
|
+
x: 0,
|
|
84
|
+
y: 0
|
|
85
|
+
}), Nt = b("pointer"), N = b(!1), Pt = c(() => !!w.dataset && w.dataset.length), P = b(Ht()), F = c(() => P.value.userOptions.useCursorPointer), Ft = c(() => ne({
|
|
86
|
+
defaultConfig: {
|
|
87
|
+
userOptions: { show: !1 },
|
|
88
|
+
table: { show: !1 },
|
|
89
|
+
useCssAnimation: !1,
|
|
90
|
+
style: { chart: {
|
|
91
|
+
backgroundColor: "#99999930",
|
|
92
|
+
legend: { backgroundColor: "transparent" }
|
|
93
|
+
} }
|
|
94
|
+
},
|
|
95
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
96
|
+
})), { loading: I, FINAL_DATASET: It } = pe({
|
|
97
|
+
...Be(w),
|
|
98
|
+
FINAL_CONFIG: P,
|
|
99
|
+
prepareConfig: Ht,
|
|
100
|
+
callback: () => {
|
|
101
|
+
Promise.resolve().then(async () => {
|
|
102
|
+
await h(), R.value.showTable = P.value.table.show;
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
106
|
+
{
|
|
107
|
+
name: "_",
|
|
108
|
+
values: [21],
|
|
109
|
+
color: "#DBDBDB"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "_",
|
|
113
|
+
values: [13],
|
|
114
|
+
color: "#C4C4C4"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "_",
|
|
118
|
+
values: [8],
|
|
119
|
+
color: "#ADADAD"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
skeletonConfig: ne({
|
|
123
|
+
defaultConfig: P.value,
|
|
124
|
+
userConfig: Ft.value
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
Ie(() => {
|
|
128
|
+
kt.value = !0, Rt();
|
|
129
|
+
});
|
|
130
|
+
let Lt = c(() => !!P.value.debug);
|
|
131
|
+
function Rt() {
|
|
132
|
+
if (n(w.dataset) ? o({
|
|
133
|
+
componentName: "VueUiGalaxy",
|
|
134
|
+
type: "dataset",
|
|
135
|
+
debug: Lt.value
|
|
136
|
+
}) : w.dataset.forEach((e, t) => {
|
|
137
|
+
ce({
|
|
138
|
+
datasetObject: e,
|
|
139
|
+
requiredAttributes: ["name", "values"]
|
|
140
|
+
}).forEach((e) => {
|
|
141
|
+
o({
|
|
142
|
+
componentName: "VueUiGalaxy",
|
|
143
|
+
type: "datasetSerieAttribute",
|
|
144
|
+
property: e,
|
|
145
|
+
index: t,
|
|
146
|
+
debug: Lt.value
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
}), P.value.responsive) {
|
|
150
|
+
let e = xe(() => {
|
|
151
|
+
let { width: e, height: t } = Se({
|
|
152
|
+
chart: E.value,
|
|
153
|
+
title: P.value.style.chart.title.text ? wt.value : null,
|
|
154
|
+
legend: P.value.style.chart.legend.show ? Tt.value : null,
|
|
155
|
+
noTitle: Dt.value,
|
|
156
|
+
source: Et.value
|
|
157
|
+
});
|
|
158
|
+
requestAnimationFrame(() => {
|
|
159
|
+
z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12);
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
O.value && (Ot.value && O.value.unobserve(Ot.value), O.value.disconnect()), O.value = new ResizeObserver(e), Ot.value = E.value.parentNode, O.value.observe(Ot.value);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
let { userOptionsVisible: zt, setUserOptionsVisibility: Bt, keepUserOptionState: Vt } = Te({ config: P.value }), { svgRef: L } = Ee({ config: P.value.style.chart.title });
|
|
166
|
+
function Ht() {
|
|
167
|
+
let e = ge({
|
|
168
|
+
userConfig: w.config,
|
|
169
|
+
defaultConfig: ht
|
|
170
|
+
}), n = e.theme;
|
|
171
|
+
if (!n) return e;
|
|
172
|
+
if (!gt.value(e)) return _t(e), e;
|
|
173
|
+
let r = ge({
|
|
174
|
+
userConfig: ke[n] || w.config,
|
|
175
|
+
defaultConfig: e
|
|
176
|
+
}), a = ge({
|
|
177
|
+
userConfig: w.config,
|
|
178
|
+
defaultConfig: r
|
|
179
|
+
});
|
|
180
|
+
return {
|
|
181
|
+
...a,
|
|
182
|
+
customPalette: a.customPalette.length ? a.customPalette : i[n] || t
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
Ve(() => w.config, (e) => {
|
|
186
|
+
P.value = Ht(), zt.value = !P.value.userOptions.showOnChartHover, Rt(), xt.value += 1, St.value += 1, Ct.value += 1, R.value.dataLabels.show = P.value.style.chart.layout.labels.dataLabels.show, R.value.showTable = P.value.table.show, R.value.showTooltip = P.value.style.chart.tooltip.show;
|
|
187
|
+
}, { deep: !0 });
|
|
188
|
+
let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = fe({
|
|
189
|
+
elementId: `galaxy_${T.value}`,
|
|
190
|
+
fileName: P.value.style.chart.title.text || "vue-ui-galaxy",
|
|
191
|
+
options: P.value.userOptions.print
|
|
192
|
+
}), qt = c(() => P.value.userOptions.show && !P.value.style.chart.title.text), Jt = c(() => ee(P.value.customPalette)), R = b({
|
|
193
|
+
dataLabels: { show: P.value.style.chart.layout.labels.dataLabels.show },
|
|
194
|
+
showTable: P.value.table.show,
|
|
195
|
+
showTooltip: P.value.style.chart.tooltip.show
|
|
196
|
+
}), z = b(250), B = b(180), Yt = b(0), Xt = b(0), V = c(() => ({
|
|
197
|
+
width: z.value,
|
|
198
|
+
height: B.value,
|
|
199
|
+
viewBox: `${Yt.value} ${Xt.value} ${z.value} ${B.value}`
|
|
200
|
+
})), Zt = He, H = b([]);
|
|
201
|
+
function Qt() {
|
|
202
|
+
Zt("selectLegend", K.value.map((e) => ({
|
|
203
|
+
name: e.name,
|
|
204
|
+
color: e.color,
|
|
205
|
+
value: e.value
|
|
206
|
+
})));
|
|
207
|
+
}
|
|
208
|
+
function $t() {
|
|
209
|
+
H.value.length ? H.value = [] : J.value.forEach((e) => {
|
|
210
|
+
H.value.push(e.id);
|
|
211
|
+
}), Qt();
|
|
212
|
+
}
|
|
213
|
+
function U(e) {
|
|
214
|
+
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), Qt();
|
|
215
|
+
}
|
|
216
|
+
function en(e) {
|
|
217
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (P.value.debug && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null);
|
|
218
|
+
}
|
|
219
|
+
function tn(e) {
|
|
220
|
+
let t = en(e);
|
|
221
|
+
t !== null && H.value.includes(t.id) && U({ id: t.id });
|
|
222
|
+
}
|
|
223
|
+
function nn(e) {
|
|
224
|
+
let t = en(e);
|
|
225
|
+
t !== null && (H.value.includes(t.id) || U({ id: t.id }));
|
|
226
|
+
}
|
|
227
|
+
let W = c(() => It.value.map((e, n) => ({
|
|
228
|
+
name: e.name,
|
|
229
|
+
color: oe(e.color) || Jt.value[n] || t[n] || t[n % t.length],
|
|
230
|
+
value: e.values ? a(e.values).reduce((e, t) => e + t, 0) : 0,
|
|
231
|
+
absoluteValues: a(e.values),
|
|
232
|
+
id: te()
|
|
233
|
+
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
234
|
+
...e,
|
|
235
|
+
absoluteIndex: t
|
|
236
|
+
})));
|
|
237
|
+
function rn() {
|
|
238
|
+
return W.value.map((e) => ({
|
|
239
|
+
name: e.name,
|
|
240
|
+
color: e.color,
|
|
241
|
+
value: e.value
|
|
242
|
+
}));
|
|
243
|
+
}
|
|
244
|
+
let G = c(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), an = b(190), on = c(() => W.value.filter((e) => !H.value.includes(e.id))), sn = c(() => (P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth) / 2 + (P.value.style.chart.layout.padding ?? 12)), cn = c(() => r({
|
|
245
|
+
maxPoints: an.value,
|
|
246
|
+
a: P.value.style.chart.layout.arcs.a ?? 6,
|
|
247
|
+
b: P.value.style.chart.layout.arcs.b ?? 6,
|
|
248
|
+
angleStep: P.value.style.chart.layout.arcs.angleStep ?? .07,
|
|
249
|
+
startX: V.value.width / 2 + P.value.style.chart.layout.arcs.offsetX,
|
|
250
|
+
startY: V.value.height / 2 + P.value.style.chart.layout.arcs.offsetY,
|
|
251
|
+
boxWidth: V.value.width,
|
|
252
|
+
boxHeight: V.value.height,
|
|
253
|
+
padding: sn.value
|
|
254
|
+
})), K = c(() => {
|
|
255
|
+
let e = [];
|
|
256
|
+
for (let t = 0; t < on.value.length; t += 1) {
|
|
257
|
+
let n = on.value[t], r = n.value / G.value * an.value + (t > 0 && e.length ? e[t - 1].points : 0);
|
|
258
|
+
e.push({
|
|
259
|
+
points: r,
|
|
260
|
+
...n,
|
|
261
|
+
seriesIndex: t,
|
|
262
|
+
proportion: n.value / G.value,
|
|
263
|
+
path: cn.value(r)
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
|
|
267
|
+
});
|
|
268
|
+
function ln(e) {
|
|
269
|
+
let t = Math.min(z.value, B.value), n = D.value === e.id && P.value.style.chart.layout.arcs.hoverEffect.show ? P.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, r = (P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth) * n, i = P.value.style.chart.layout.arcs.strokeWidth * n, a = P.value.style.chart.layout.arcs.strokeWidth / 2 * n;
|
|
270
|
+
return {
|
|
271
|
+
border: r / 180 * t,
|
|
272
|
+
path: i / 180 * t,
|
|
273
|
+
blur: a / 180 * t
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
let q = b(!1);
|
|
277
|
+
function un(e) {
|
|
278
|
+
q.value = e, bt.value += 1;
|
|
279
|
+
}
|
|
280
|
+
let dn = b(null);
|
|
281
|
+
function fn() {
|
|
282
|
+
vt.value = !1, D.value = null, j.value = null, M.value = null;
|
|
283
|
+
}
|
|
284
|
+
function pn(e) {
|
|
285
|
+
if (!L.value || !e) return;
|
|
286
|
+
let t = L.value.querySelector(`[data-a11y-serie-id="${e}"]`);
|
|
287
|
+
if (!t) return;
|
|
288
|
+
let n = t.getBoundingClientRect();
|
|
289
|
+
Mt.value = {
|
|
290
|
+
x: n.left + n.width / 2,
|
|
291
|
+
y: n.top + n.height / 2
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
function mn(e) {
|
|
295
|
+
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
296
|
+
datapoint: e,
|
|
297
|
+
seriesIndex: e.absoluteIndex
|
|
298
|
+
}), !(M.value === e.id && Nt.value === "keyboard") && (vt.value = !1, D.value = null);
|
|
299
|
+
}
|
|
300
|
+
function hn(e) {
|
|
301
|
+
Zt("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
|
|
302
|
+
datapoint: e,
|
|
303
|
+
seriesIndex: e.absoluteIndex
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
function gn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
307
|
+
let i = P.value.style.chart.layout.labels.dataLabels;
|
|
308
|
+
return De({
|
|
309
|
+
config: i,
|
|
310
|
+
val: e,
|
|
311
|
+
percentage: t,
|
|
312
|
+
showVal: n,
|
|
313
|
+
showPercentage: r
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
function _n({ datapoint: e, _relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer", flatIndex: a = null }) {
|
|
317
|
+
if (P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
318
|
+
datapoint: e,
|
|
319
|
+
seriesIndex: e.absoluteIndex
|
|
320
|
+
}), !R.value.showTooltip) return;
|
|
321
|
+
Nt.value = i, j.value = a, M.value = e.id, dn.value = {
|
|
322
|
+
datapoint: e,
|
|
323
|
+
seriesIndex: n,
|
|
324
|
+
series: W.value,
|
|
325
|
+
config: P.value
|
|
326
|
+
}, vt.value = r, D.value = e.id;
|
|
327
|
+
let o = "", ee = P.value.style.chart.tooltip.customFormat;
|
|
328
|
+
ie(ee) && ae(() => ee({
|
|
329
|
+
seriesIndex: n,
|
|
330
|
+
datapoint: e,
|
|
331
|
+
series: W.value,
|
|
332
|
+
config: P.value
|
|
333
|
+
})) ? yt.value = ee({
|
|
334
|
+
seriesIndex: n,
|
|
335
|
+
datapoint: e,
|
|
336
|
+
series: W.value,
|
|
337
|
+
config: P.value
|
|
338
|
+
}) : (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, o += `<b>${gn({
|
|
339
|
+
showVal: P.value.style.chart.tooltip.showValue,
|
|
340
|
+
showPercentage: P.value.style.chart.tooltip.showPercentage,
|
|
341
|
+
val: se(P.value.style.chart.layout.labels.dataLabels.formatter, e.value, s({
|
|
342
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
343
|
+
v: e.value,
|
|
344
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
345
|
+
r: P.value.style.chart.tooltip.roundingValue
|
|
346
|
+
}), {
|
|
347
|
+
datapoint: e,
|
|
348
|
+
seriesIndex: n
|
|
349
|
+
}),
|
|
350
|
+
percentage: s({
|
|
351
|
+
v: e.proportion * 100,
|
|
352
|
+
s: "%",
|
|
353
|
+
r: P.value.style.chart.tooltip.roundingPercentage
|
|
354
|
+
})
|
|
355
|
+
})}</b></div>`, yt.value = `<div>${o}</div>`), i === "keyboard" && h(() => {
|
|
356
|
+
pn(e.id);
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
let J = c(() => W.value.map((e, t) => {
|
|
360
|
+
let n = se(P.value.style.chart.layout.labels.dataLabels.formatter, e.value, s({
|
|
361
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
362
|
+
v: e.value,
|
|
363
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
364
|
+
r: P.value.style.chart.legend.roundingValue
|
|
365
|
+
}), {
|
|
366
|
+
datapoint: e,
|
|
367
|
+
index: t
|
|
368
|
+
}), r = isNaN(e.value / G.value) || H.value.includes(e.id) ? "-" : s({
|
|
369
|
+
v: e.value / G.value * 100,
|
|
370
|
+
s: "%",
|
|
371
|
+
r: P.value.style.chart.legend.roundingPercentage
|
|
372
|
+
}), i = gn({
|
|
373
|
+
showVal: P.value.style.chart.legend.showValue,
|
|
374
|
+
showPercentage: P.value.style.chart.legend.showPercentage,
|
|
375
|
+
val: n,
|
|
376
|
+
percentage: r
|
|
377
|
+
});
|
|
378
|
+
return {
|
|
379
|
+
...e,
|
|
380
|
+
proportion: (e.value || 0) / It.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
381
|
+
opacity: H.value.includes(e.id) ? .5 : 1,
|
|
382
|
+
shape: e.shape || "circle",
|
|
383
|
+
segregate: () => U(e),
|
|
384
|
+
isSegregated: H.value.includes(e.id),
|
|
385
|
+
display: `${e.name}${P.value.style.chart.legend.showPercentage || P.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
386
|
+
};
|
|
387
|
+
})), vn = c(() => ({
|
|
388
|
+
cy: "galaxy-div-legend",
|
|
389
|
+
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
390
|
+
color: P.value.style.chart.legend.color,
|
|
391
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
392
|
+
paddingBottom: 12,
|
|
393
|
+
fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
|
|
394
|
+
})), Y = c(() => ({
|
|
395
|
+
head: K.value.map((e) => ({
|
|
396
|
+
name: e.name,
|
|
397
|
+
color: e.color
|
|
398
|
+
})),
|
|
399
|
+
body: K.value.map((e) => e.value)
|
|
400
|
+
}));
|
|
401
|
+
function yn(e = null) {
|
|
402
|
+
h(() => {
|
|
403
|
+
let t = Y.value.head.map((e, t) => [
|
|
404
|
+
[e.name],
|
|
405
|
+
[Y.value.body[t]],
|
|
406
|
+
[isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
|
|
407
|
+
]), n = ue([
|
|
408
|
+
[P.value.style.chart.title.text],
|
|
409
|
+
[P.value.style.chart.title.subtitle.text],
|
|
410
|
+
[
|
|
411
|
+
[""],
|
|
412
|
+
["val"],
|
|
413
|
+
["%"]
|
|
414
|
+
]
|
|
415
|
+
].concat(t));
|
|
416
|
+
e ? e(n) : re({
|
|
417
|
+
csvContent: n,
|
|
418
|
+
title: P.value.style.chart.title.text || "vue-ui-galaxy"
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
let X = c(() => {
|
|
423
|
+
let e = [
|
|
424
|
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
425
|
+
s({
|
|
426
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
427
|
+
v: G.value,
|
|
428
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
429
|
+
r: P.value.table.td.roundingValue
|
|
430
|
+
}),
|
|
431
|
+
"100%"
|
|
432
|
+
], t = Y.value.head.map((e, t) => {
|
|
433
|
+
let n = s({
|
|
434
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
435
|
+
v: Y.value.body[t],
|
|
436
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
437
|
+
r: P.value.table.td.roundingValue
|
|
438
|
+
});
|
|
439
|
+
return [
|
|
440
|
+
{
|
|
441
|
+
color: e.color,
|
|
442
|
+
name: e.name
|
|
443
|
+
},
|
|
444
|
+
n,
|
|
445
|
+
isNaN(Y.value.body[t] / G.value) ? "-" : s({
|
|
446
|
+
v: Y.value.body[t] / G.value * 100,
|
|
447
|
+
s: "%",
|
|
448
|
+
r: P.value.table.td.roundingPercentage
|
|
449
|
+
})
|
|
450
|
+
];
|
|
451
|
+
}), n = {
|
|
452
|
+
th: {
|
|
453
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
454
|
+
color: P.value.table.th.color,
|
|
455
|
+
outline: P.value.table.th.outline
|
|
456
|
+
},
|
|
457
|
+
td: {
|
|
458
|
+
backgroundColor: P.value.table.td.backgroundColor,
|
|
459
|
+
color: P.value.table.td.color,
|
|
460
|
+
outline: P.value.table.td.outline
|
|
461
|
+
},
|
|
462
|
+
breakpoint: P.value.table.responsiveBreakpoint
|
|
463
|
+
};
|
|
464
|
+
return {
|
|
465
|
+
colNames: [
|
|
466
|
+
P.value.table.columnNames.series,
|
|
467
|
+
P.value.table.columnNames.value,
|
|
468
|
+
P.value.table.columnNames.percentage
|
|
469
|
+
],
|
|
470
|
+
head: e,
|
|
471
|
+
body: t,
|
|
472
|
+
config: n
|
|
473
|
+
};
|
|
474
|
+
});
|
|
475
|
+
function bn() {
|
|
476
|
+
R.value.showTable = !R.value.showTable;
|
|
477
|
+
}
|
|
478
|
+
function xn() {
|
|
479
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
480
|
+
}
|
|
481
|
+
let Z = b(!1);
|
|
482
|
+
function Sn() {
|
|
483
|
+
Z.value = !Z.value;
|
|
484
|
+
}
|
|
485
|
+
async function Cn({ scale: e = 2 } = {}) {
|
|
486
|
+
if (!E.value) return;
|
|
487
|
+
let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
488
|
+
domElement: E.value,
|
|
489
|
+
base64: !0,
|
|
490
|
+
img: !0,
|
|
491
|
+
scale: e
|
|
492
|
+
});
|
|
493
|
+
return {
|
|
494
|
+
imageUri: i,
|
|
495
|
+
base64: a,
|
|
496
|
+
title: P.value.style.chart.title.text,
|
|
497
|
+
width: t,
|
|
498
|
+
height: n,
|
|
499
|
+
aspectRatio: r
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
let Q = c(() => {
|
|
503
|
+
let e = P.value.table.useDialog && !P.value.table.show, t = R.value.showTable;
|
|
504
|
+
return {
|
|
505
|
+
component: e ? mt : lt,
|
|
506
|
+
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
507
|
+
props: e ? {
|
|
508
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
509
|
+
color: P.value.table.th.color,
|
|
510
|
+
headerColor: P.value.table.th.color,
|
|
511
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
512
|
+
isFullscreen: q.value,
|
|
513
|
+
fullscreenParent: E.value,
|
|
514
|
+
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
515
|
+
isCursorPointer: F.value
|
|
516
|
+
} : {
|
|
517
|
+
hideDetails: !0,
|
|
518
|
+
config: {
|
|
519
|
+
open: t,
|
|
520
|
+
maxHeight: 1e4,
|
|
521
|
+
body: {
|
|
522
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
523
|
+
color: P.value.style.chart.color
|
|
524
|
+
},
|
|
525
|
+
head: {
|
|
526
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
527
|
+
color: P.value.style.chart.color
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
});
|
|
533
|
+
Ve(() => R.value.showTable, (e) => {
|
|
534
|
+
P.value.table.show || (e && P.value.table.useDialog && k.value ? k.value.open() : "close" in k.value && k.value.close());
|
|
535
|
+
});
|
|
536
|
+
function wn() {
|
|
537
|
+
R.value.showTable = !1, At.value && At.value.setTableIconState(!1);
|
|
538
|
+
}
|
|
539
|
+
let Tn = c(() => J.value.map((e) => ({
|
|
540
|
+
...e,
|
|
541
|
+
name: e.display
|
|
542
|
+
}))), En = c(() => P.value.style.chart.backgroundColor), Dn = c(() => P.value.style.chart.legend), { exportSvg: On, getSvg: kn } = he({
|
|
543
|
+
svg: L,
|
|
544
|
+
title: c(() => P.value.style.chart.title),
|
|
545
|
+
legend: Dn,
|
|
546
|
+
legendItems: Tn,
|
|
547
|
+
backgroundColor: En
|
|
548
|
+
});
|
|
549
|
+
async function An({ isCb: e }) {
|
|
550
|
+
A.value = !0, await h();
|
|
551
|
+
try {
|
|
552
|
+
if (e) {
|
|
553
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await kn();
|
|
554
|
+
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
555
|
+
blob: e,
|
|
556
|
+
url: t,
|
|
557
|
+
text: n,
|
|
558
|
+
dataUrl: r
|
|
559
|
+
}));
|
|
560
|
+
} else await Promise.resolve(On());
|
|
561
|
+
} finally {
|
|
562
|
+
A.value = !1;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
function jn(e) {
|
|
566
|
+
if (e?.stage === "start") {
|
|
567
|
+
jt.value = !0;
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
if (e?.stage === "end") {
|
|
571
|
+
jt.value = !1;
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
Kt();
|
|
575
|
+
}
|
|
576
|
+
async function Mn() {
|
|
577
|
+
if (Zt("copyAlt", {
|
|
578
|
+
config: P.value,
|
|
579
|
+
dataset: W.value
|
|
580
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
581
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
585
|
+
config: P.value,
|
|
586
|
+
dataset: W.value
|
|
587
|
+
}));
|
|
588
|
+
}
|
|
589
|
+
function Nn() {
|
|
590
|
+
j.value = null, M.value = null, N.value = !0;
|
|
591
|
+
}
|
|
592
|
+
function Pn() {
|
|
593
|
+
fn(), N.value = !1;
|
|
594
|
+
}
|
|
595
|
+
function Fn(e) {
|
|
596
|
+
if (!L.value || Z.value || document.activeElement !== L.value || !$.value.length) return;
|
|
597
|
+
let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
598
|
+
if (!t && !n && !r && !i) return;
|
|
599
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
600
|
+
fn();
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
if (r) {
|
|
604
|
+
if (j.value === null) return;
|
|
605
|
+
let e = $.value[j.value];
|
|
606
|
+
if (!e) return;
|
|
607
|
+
hn(e.datapoint);
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
610
|
+
let a = j.value;
|
|
611
|
+
a === null || a < 0 || a >= $.value.length ? a = n ? 0 : $.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0));
|
|
612
|
+
let o = $.value[a];
|
|
613
|
+
o && _n({
|
|
614
|
+
datapoint: o.datapoint,
|
|
615
|
+
seriesIndex: o.datapoint.seriesIndex,
|
|
616
|
+
show: !0,
|
|
617
|
+
triggerMode: "keyboard",
|
|
618
|
+
flatIndex: a
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
let In = c(() => ({
|
|
622
|
+
headers: X.value?.colNames ?? [],
|
|
623
|
+
rows: X.value?.body ?? []
|
|
624
|
+
})), $ = c(() => K.value.map((e, t) => ({
|
|
625
|
+
datapoint: e,
|
|
626
|
+
index: t
|
|
627
|
+
})));
|
|
628
|
+
return be({
|
|
629
|
+
getData: rn,
|
|
630
|
+
getImage: Cn,
|
|
631
|
+
generatePdf: Gt,
|
|
632
|
+
generateCsv: yn,
|
|
633
|
+
generateImage: Kt,
|
|
634
|
+
generateSvg: An,
|
|
635
|
+
hideSeries: nn,
|
|
636
|
+
showSeries: tn,
|
|
637
|
+
toggleTable: bn,
|
|
638
|
+
toggleTooltip: xn,
|
|
639
|
+
toggleAnnotator: Sn,
|
|
640
|
+
toggleFullscreen: un,
|
|
641
|
+
copyAlt: Mn
|
|
642
|
+
}), (e, t) => (y(), d("div", {
|
|
643
|
+
ref_key: "galaxyChart",
|
|
644
|
+
ref: E,
|
|
645
|
+
class: g(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"} ${S(I) ? "loading" : ""}`),
|
|
646
|
+
style: v(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;${P.value.style.chart.title.text ? "" : "padding-top:36px"};background:${P.value.style.chart.backgroundColor}`),
|
|
647
|
+
id: `galaxy_${T.value}`,
|
|
648
|
+
onMouseenter: t[2] ||= () => S(Bt)(!0),
|
|
649
|
+
onMouseleave: t[3] ||= () => {
|
|
650
|
+
S(Bt)(!1), N.value || fn();
|
|
651
|
+
}
|
|
652
|
+
}, [
|
|
653
|
+
f("div", {
|
|
654
|
+
id: `chart-instructions-${T.value}`,
|
|
655
|
+
class: "sr-only"
|
|
656
|
+
}, [f("p", null, ze(P.value.a11y.translations.keyboardNavigation), 1)], 8, We),
|
|
657
|
+
In.value?.rows?.length ? (y(), l(we, {
|
|
658
|
+
key: 0,
|
|
659
|
+
uid: T.value,
|
|
660
|
+
head: In.value.headers,
|
|
661
|
+
body: In.value.rows,
|
|
662
|
+
notice: P.value.a11y.translations.tableAvailable,
|
|
663
|
+
caption: P.value.a11y.translations.tableCaption
|
|
664
|
+
}, null, 8, [
|
|
665
|
+
"uid",
|
|
666
|
+
"head",
|
|
667
|
+
"body",
|
|
668
|
+
"notice",
|
|
669
|
+
"caption"
|
|
670
|
+
])) : u("", !0),
|
|
671
|
+
P.value.userOptions.buttons.annotator ? (y(), l(S(dt), {
|
|
672
|
+
key: 1,
|
|
673
|
+
svgRef: S(L),
|
|
674
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
675
|
+
color: P.value.style.chart.color,
|
|
676
|
+
active: Z.value,
|
|
677
|
+
isCursorPointer: F.value,
|
|
678
|
+
onClose: Sn
|
|
679
|
+
}, {
|
|
680
|
+
"annotator-action-close": C(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
681
|
+
"annotator-action-color": C(({ color: t }) => [x(e.$slots, "annotator-action-color", _(m({ color: t })), void 0, !0)]),
|
|
682
|
+
"annotator-action-draw": C(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(m({ mode: t })), void 0, !0)]),
|
|
683
|
+
"annotator-action-undo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(m({ disabled: t })), void 0, !0)]),
|
|
684
|
+
"annotator-action-redo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(m({ disabled: t })), void 0, !0)]),
|
|
685
|
+
"annotator-action-delete": C(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(m({ disabled: t })), void 0, !0)]),
|
|
686
|
+
_: 3
|
|
687
|
+
}, 8, [
|
|
688
|
+
"svgRef",
|
|
689
|
+
"backgroundColor",
|
|
690
|
+
"color",
|
|
691
|
+
"active",
|
|
692
|
+
"isCursorPointer"
|
|
693
|
+
])) : u("", !0),
|
|
694
|
+
qt.value ? (y(), d("div", {
|
|
695
|
+
key: 2,
|
|
696
|
+
ref_key: "noTitle",
|
|
697
|
+
ref: Dt,
|
|
698
|
+
class: "vue-data-ui-no-title-space",
|
|
699
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
700
|
+
}, null, 512)) : u("", !0),
|
|
701
|
+
P.value.style.chart.title.text ? (y(), d("div", {
|
|
702
|
+
key: 3,
|
|
703
|
+
ref_key: "chartTitle",
|
|
704
|
+
ref: wt,
|
|
705
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
706
|
+
}, [(y(), l(ye, {
|
|
707
|
+
key: `title_${xt.value}`,
|
|
708
|
+
config: {
|
|
709
|
+
title: {
|
|
710
|
+
cy: "galaxy-div-title",
|
|
711
|
+
...P.value.style.chart.title
|
|
712
|
+
},
|
|
713
|
+
subtitle: {
|
|
714
|
+
cy: "galaxy-div-subtitle",
|
|
715
|
+
...P.value.style.chart.title.subtitle
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
719
|
+
f("div", { id: `legend-top-${T.value}` }, null, 8, Ge),
|
|
720
|
+
P.value.userOptions.show && Pt.value && (S(Vt) || S(zt)) ? (y(), l(S(ft), {
|
|
721
|
+
ref_key: "userOptionsRef",
|
|
722
|
+
ref: At,
|
|
723
|
+
key: `user_option_${bt.value}`,
|
|
724
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
725
|
+
color: P.value.style.chart.color,
|
|
726
|
+
isPrinting: S(Ut),
|
|
727
|
+
isImaging: S(Wt),
|
|
728
|
+
uid: T.value,
|
|
729
|
+
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
730
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
731
|
+
hasXls: P.value.userOptions.buttons.csv,
|
|
732
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
733
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
734
|
+
hasTable: P.value.userOptions.buttons.table,
|
|
735
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
736
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
737
|
+
isTooltip: R.value.showTooltip,
|
|
738
|
+
isFullscreen: q.value,
|
|
739
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
740
|
+
chartElement: E.value,
|
|
741
|
+
position: P.value.userOptions.position,
|
|
742
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
743
|
+
isAnnotation: Z.value,
|
|
744
|
+
callbacks: P.value.userOptions.callbacks,
|
|
745
|
+
printScale: P.value.userOptions.print.scale,
|
|
746
|
+
tableDialog: P.value.table.useDialog,
|
|
747
|
+
isCursorPointer: F.value,
|
|
748
|
+
onToggleFullscreen: un,
|
|
749
|
+
onGeneratePdf: S(Gt),
|
|
750
|
+
onGenerateCsv: yn,
|
|
751
|
+
onGenerateImage: jn,
|
|
752
|
+
onGenerateSvg: An,
|
|
753
|
+
onToggleTable: bn,
|
|
754
|
+
onToggleTooltip: xn,
|
|
755
|
+
onToggleAnnotator: Sn,
|
|
756
|
+
onCopyAlt: Mn,
|
|
757
|
+
style: v({ visibility: S(Vt) ? S(zt) ? "visible" : "hidden" : "visible" })
|
|
758
|
+
}, Me({ _: 2 }, [
|
|
759
|
+
e.$slots.menuIcon ? {
|
|
760
|
+
name: "menuIcon",
|
|
761
|
+
fn: C(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(m({
|
|
762
|
+
isOpen: t,
|
|
763
|
+
color: n
|
|
764
|
+
})), void 0, !0)]),
|
|
765
|
+
key: "0"
|
|
766
|
+
} : void 0,
|
|
767
|
+
e.$slots.optionTooltip ? {
|
|
768
|
+
name: "optionTooltip",
|
|
769
|
+
fn: C(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
770
|
+
key: "1"
|
|
771
|
+
} : void 0,
|
|
772
|
+
e.$slots.optionPdf ? {
|
|
773
|
+
name: "optionPdf",
|
|
774
|
+
fn: C(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
775
|
+
key: "2"
|
|
776
|
+
} : void 0,
|
|
777
|
+
e.$slots.optionCsv ? {
|
|
778
|
+
name: "optionCsv",
|
|
779
|
+
fn: C(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
780
|
+
key: "3"
|
|
781
|
+
} : void 0,
|
|
782
|
+
e.$slots.optionImg ? {
|
|
783
|
+
name: "optionImg",
|
|
784
|
+
fn: C(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
785
|
+
key: "4"
|
|
786
|
+
} : void 0,
|
|
787
|
+
e.$slots.optionSvg ? {
|
|
788
|
+
name: "optionSvg",
|
|
789
|
+
fn: C(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
790
|
+
key: "5"
|
|
791
|
+
} : void 0,
|
|
792
|
+
e.$slots.optionTable ? {
|
|
793
|
+
name: "optionTable",
|
|
794
|
+
fn: C(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
795
|
+
key: "6"
|
|
796
|
+
} : void 0,
|
|
797
|
+
e.$slots.optionFullscreen ? {
|
|
798
|
+
name: "optionFullscreen",
|
|
799
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(m({
|
|
800
|
+
toggleFullscreen: t,
|
|
801
|
+
isFullscreen: n
|
|
802
|
+
})), void 0, !0)]),
|
|
803
|
+
key: "7"
|
|
804
|
+
} : void 0,
|
|
805
|
+
e.$slots.optionAnnotator ? {
|
|
806
|
+
name: "optionAnnotator",
|
|
807
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(m({
|
|
808
|
+
toggleAnnotator: t,
|
|
809
|
+
isAnnotator: n
|
|
810
|
+
})), void 0, !0)]),
|
|
811
|
+
key: "8"
|
|
812
|
+
} : void 0,
|
|
813
|
+
e.$slots.optionAltCopy ? {
|
|
814
|
+
name: "optionAltCopy",
|
|
815
|
+
fn: C(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(m({ altCopy: t })), void 0, !0)]),
|
|
816
|
+
key: "9"
|
|
817
|
+
} : void 0,
|
|
818
|
+
e.$slots["custom-menu-before"] ? {
|
|
819
|
+
name: "custom-menu-before",
|
|
820
|
+
fn: C(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
821
|
+
key: "10"
|
|
822
|
+
} : void 0,
|
|
823
|
+
e.$slots["custom-menu-after"] ? {
|
|
824
|
+
name: "custom-menu-after",
|
|
825
|
+
fn: C(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
826
|
+
key: "11"
|
|
827
|
+
} : void 0
|
|
828
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : u("", !0),
|
|
829
|
+
f("div", Ke, [(y(), d("svg", {
|
|
830
|
+
ref_key: "svgRef",
|
|
831
|
+
ref: L,
|
|
832
|
+
xmlns: S(le),
|
|
833
|
+
"aria-describedby": `chart-instructions-${T.value}`,
|
|
834
|
+
class: g({
|
|
835
|
+
"vue-data-ui-fullscreen--on": q.value,
|
|
836
|
+
"vue-data-ui-fulscreen--off": !q.value
|
|
837
|
+
}),
|
|
838
|
+
viewBox: V.value.viewBox,
|
|
839
|
+
style: v(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color}`),
|
|
840
|
+
tabindex: "0",
|
|
841
|
+
onFocus: Nn,
|
|
842
|
+
onBlur: Pn,
|
|
843
|
+
onKeydown: Fn
|
|
844
|
+
}, [
|
|
845
|
+
Pe(S(pt)),
|
|
846
|
+
e.$slots["chart-background"] ? (y(), d("foreignObject", {
|
|
847
|
+
key: 0,
|
|
848
|
+
x: 0,
|
|
849
|
+
y: 0,
|
|
850
|
+
width: V.value.width,
|
|
851
|
+
height: V.value.height,
|
|
852
|
+
style: { pointerEvents: "none" }
|
|
853
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : u("", !0),
|
|
854
|
+
f("defs", null, [f("filter", {
|
|
855
|
+
id: `blur_${T.value}`,
|
|
856
|
+
x: "-50%",
|
|
857
|
+
y: "-50%",
|
|
858
|
+
width: "200%",
|
|
859
|
+
height: "200%"
|
|
860
|
+
}, [f("feGaussianBlur", {
|
|
861
|
+
in: "SourceGraphic",
|
|
862
|
+
stdDeviation: 100 / P.value.style.chart.layout.arcs.gradient.intensity
|
|
863
|
+
}, null, 8, Xe)], 8, Ye)]),
|
|
864
|
+
(y(!0), d(Ae, null, Le(K.value, (e) => (y(), d("g", null, [
|
|
865
|
+
e.value ? (y(), d("path", {
|
|
866
|
+
key: 0,
|
|
867
|
+
d: e.path,
|
|
868
|
+
fill: "none",
|
|
869
|
+
stroke: P.value.style.chart.backgroundColor,
|
|
870
|
+
"stroke-width": ln(e).border,
|
|
871
|
+
"stroke-linecap": "round"
|
|
872
|
+
}, null, 8, Ze)) : u("", !0),
|
|
873
|
+
e.value ? (y(), d("path", {
|
|
874
|
+
key: 1,
|
|
875
|
+
d: e.path,
|
|
876
|
+
fill: "none",
|
|
877
|
+
stroke: e.color,
|
|
878
|
+
"stroke-width": ln(e).path,
|
|
879
|
+
"stroke-linecap": "round",
|
|
880
|
+
class: g(`${D.value && D.value !== e.id && P.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
881
|
+
}, null, 10, Qe)) : u("", !0),
|
|
882
|
+
e.value && P.value.style.chart.layout.arcs.gradient.show ? (y(), d("g", {
|
|
883
|
+
key: 2,
|
|
884
|
+
filter: `url(#blur_${T.value})`
|
|
885
|
+
}, [f("path", {
|
|
886
|
+
d: e.path,
|
|
887
|
+
fill: "none",
|
|
888
|
+
stroke: P.value.style.chart.layout.arcs.gradient.color,
|
|
889
|
+
"stroke-width": ln(e).blur,
|
|
890
|
+
"stroke-linecap": "round",
|
|
891
|
+
class: g(`vue-ui-galaxy-gradient ${D.value && D.value !== e.id && P.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
892
|
+
}, null, 10, et)], 8, $e)) : u("", !0)
|
|
893
|
+
]))), 256)),
|
|
894
|
+
(y(!0), d(Ae, null, Le(K.value, (e, t) => (y(), d("g", null, [e.value ? (y(), d("path", {
|
|
895
|
+
key: 0,
|
|
896
|
+
"data-a11y-serie-id": e.id,
|
|
897
|
+
d: e.path,
|
|
898
|
+
fill: "none",
|
|
899
|
+
stroke: "transparent",
|
|
900
|
+
"stroke-width": P.value.style.chart.layout.arcs.strokeWidth + P.value.style.chart.layout.arcs.borderWidth,
|
|
901
|
+
"stroke-linecap": "round",
|
|
902
|
+
"aria-label": `${e.name}: ${S(s)({
|
|
903
|
+
p: P.value.style.chart.layout.labels.dataLabels.prefix,
|
|
904
|
+
v: e.value,
|
|
905
|
+
s: P.value.style.chart.layout.labels.dataLabels.suffix,
|
|
906
|
+
r: P.value.style.chart.tooltip.roundingValue
|
|
907
|
+
})}`,
|
|
908
|
+
onMouseenter: (n) => _n({
|
|
909
|
+
datapoint: e,
|
|
910
|
+
relativeIndex: t,
|
|
911
|
+
seriesIndex: e.seriesIndex,
|
|
912
|
+
show: !0,
|
|
913
|
+
triggerMode: "pointer",
|
|
914
|
+
flatIndex: t
|
|
915
|
+
}),
|
|
916
|
+
onMouseleave: (t) => mn(e),
|
|
917
|
+
onClick: (t) => hn(e)
|
|
918
|
+
}, null, 40, tt)) : u("", !0)]))), 256)),
|
|
919
|
+
x(e.$slots, "svg", { svg: {
|
|
920
|
+
...V.value,
|
|
921
|
+
isPrintingImg: S(Ut) || S(Wt) || jt.value,
|
|
922
|
+
isPrintingSvg: A.value
|
|
923
|
+
} }, void 0, !0)
|
|
924
|
+
], 46, qe)), e.$slots.hint ? (y(), d("div", nt, [x(e.$slots, "hint", _(m({
|
|
925
|
+
hint: P.value.a11y.translations.keyboardNavigation,
|
|
926
|
+
isVisible: N.value
|
|
927
|
+
})), void 0, !0)])) : u("", !0)]),
|
|
928
|
+
e.$slots.watermark ? (y(), d("div", rt, [x(e.$slots, "watermark", _(m({ isPrinting: S(Ut) || S(Wt) || jt.value || A.value })), void 0, !0)])) : u("", !0),
|
|
929
|
+
f("div", { id: `legend-bottom-${T.value}` }, null, 8, it),
|
|
930
|
+
kt.value && (P.value.style.chart.legend.show || e.$slots.legend) ? (y(), l(je, {
|
|
931
|
+
key: 6,
|
|
932
|
+
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
933
|
+
}, [f("div", {
|
|
934
|
+
ref_key: "chartLegend",
|
|
935
|
+
ref: Tt
|
|
936
|
+
}, [x(e.$slots, "legend", { legend: J.value }, () => [P.value.style.chart.legend.show ? (y(), l(Oe, {
|
|
937
|
+
key: `legend_${Ct.value}`,
|
|
938
|
+
legendSet: J.value,
|
|
939
|
+
config: vn.value,
|
|
940
|
+
onClickMarker: t[0] ||= ({ legend: e }) => U(e)
|
|
941
|
+
}, {
|
|
942
|
+
item: C(({ legend: e, index: t }) => [S(I) ? u("", !0) : (y(), d("div", {
|
|
943
|
+
key: 0,
|
|
944
|
+
onClick: (t) => U(e),
|
|
945
|
+
style: v(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
|
|
946
|
+
}, ze(e.display), 13, at))]),
|
|
947
|
+
legendToggle: C(() => [J.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !S(I) ? (y(), l(Ce, {
|
|
948
|
+
key: 0,
|
|
949
|
+
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
950
|
+
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
951
|
+
fontSize: P.value.style.chart.legend.fontSize,
|
|
952
|
+
checked: H.value.length > 0,
|
|
953
|
+
onToggle: $t
|
|
954
|
+
}, null, 8, [
|
|
955
|
+
"backgroundColor",
|
|
956
|
+
"color",
|
|
957
|
+
"fontSize",
|
|
958
|
+
"checked"
|
|
959
|
+
])) : u("", !0)]),
|
|
960
|
+
_: 1
|
|
961
|
+
}, 8, ["legendSet", "config"])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
|
|
962
|
+
e.$slots.source ? (y(), d("div", {
|
|
963
|
+
key: 7,
|
|
964
|
+
ref_key: "source",
|
|
965
|
+
ref: Et,
|
|
966
|
+
dir: "auto"
|
|
967
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
968
|
+
Pe(S(st), {
|
|
969
|
+
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
970
|
+
show: R.value.showTooltip && vt.value,
|
|
971
|
+
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
972
|
+
color: P.value.style.chart.tooltip.color,
|
|
973
|
+
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
974
|
+
borderColor: P.value.style.chart.tooltip.borderColor,
|
|
975
|
+
borderWidth: P.value.style.chart.tooltip.borderWidth,
|
|
976
|
+
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
977
|
+
backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
|
|
978
|
+
position: P.value.style.chart.tooltip.position,
|
|
979
|
+
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
980
|
+
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
981
|
+
parent: E.value,
|
|
982
|
+
content: yt.value,
|
|
983
|
+
isFullscreen: q.value,
|
|
984
|
+
isCustom: S(ie)(P.value.style.chart.tooltip.customFormat),
|
|
985
|
+
smooth: P.value.style.chart.tooltip.smooth,
|
|
986
|
+
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
987
|
+
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
988
|
+
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
989
|
+
isA11yMode: Nt.value === "keyboard",
|
|
990
|
+
a11yPosition: Mt.value
|
|
991
|
+
}, {
|
|
992
|
+
"tooltip-before": C(() => [x(e.$slots, "tooltip-before", _(m({ ...dn.value })), void 0, !0)]),
|
|
993
|
+
tooltip: C(() => [x(e.$slots, "tooltip", _(m({ ...dn.value })), void 0, !0)]),
|
|
994
|
+
"tooltip-after": C(() => [x(e.$slots, "tooltip-after", _(m({ ...dn.value })), void 0, !0)]),
|
|
995
|
+
_: 3
|
|
996
|
+
}, 8, [
|
|
997
|
+
"teleportTo",
|
|
998
|
+
"show",
|
|
999
|
+
"backgroundColor",
|
|
1000
|
+
"color",
|
|
1001
|
+
"borderRadius",
|
|
1002
|
+
"borderColor",
|
|
1003
|
+
"borderWidth",
|
|
1004
|
+
"fontSize",
|
|
1005
|
+
"backgroundOpacity",
|
|
1006
|
+
"position",
|
|
1007
|
+
"offsetX",
|
|
1008
|
+
"offsetY",
|
|
1009
|
+
"parent",
|
|
1010
|
+
"content",
|
|
1011
|
+
"isFullscreen",
|
|
1012
|
+
"isCustom",
|
|
1013
|
+
"smooth",
|
|
1014
|
+
"backdropFilter",
|
|
1015
|
+
"smoothForce",
|
|
1016
|
+
"smoothSnapThreshold",
|
|
1017
|
+
"isA11yMode",
|
|
1018
|
+
"a11yPosition"
|
|
1019
|
+
]),
|
|
1020
|
+
Pt.value && P.value.userOptions.buttons.table ? (y(), l(Re(Q.value.component), Fe({ key: 8 }, Q.value.props, {
|
|
1021
|
+
ref_key: "tableUnit",
|
|
1022
|
+
ref: k,
|
|
1023
|
+
onClose: wn
|
|
1024
|
+
}), Me({
|
|
1025
|
+
content: C(() => [(y(), l(S(ut), {
|
|
1026
|
+
key: `table_${St.value}`,
|
|
1027
|
+
colNames: X.value.colNames,
|
|
1028
|
+
head: X.value.head,
|
|
1029
|
+
body: X.value.body,
|
|
1030
|
+
config: X.value.config,
|
|
1031
|
+
title: P.value.table.useDialog ? "" : Q.value.title,
|
|
1032
|
+
withCloseButton: !P.value.table.useDialog,
|
|
1033
|
+
isCursorPointer: F.value,
|
|
1034
|
+
onClose: wn
|
|
1035
|
+
}, {
|
|
1036
|
+
th: C(({ th: e }) => [f("div", {
|
|
1037
|
+
innerHTML: e,
|
|
1038
|
+
style: {
|
|
1039
|
+
display: "flex",
|
|
1040
|
+
"align-items": "center"
|
|
1041
|
+
}
|
|
1042
|
+
}, null, 8, ot)]),
|
|
1043
|
+
td: C(({ td: e }) => [Ne(ze(e.name || e), 1)]),
|
|
1044
|
+
_: 1
|
|
1045
|
+
}, 8, [
|
|
1046
|
+
"colNames",
|
|
1047
|
+
"head",
|
|
1048
|
+
"body",
|
|
1049
|
+
"config",
|
|
1050
|
+
"title",
|
|
1051
|
+
"withCloseButton",
|
|
1052
|
+
"isCursorPointer"
|
|
1053
|
+
]))]),
|
|
1054
|
+
_: 2
|
|
1055
|
+
}, [P.value.table.useDialog ? {
|
|
1056
|
+
name: "title",
|
|
1057
|
+
fn: C(() => [Ne(ze(Q.value.title), 1)]),
|
|
1058
|
+
key: "0"
|
|
1059
|
+
} : void 0, P.value.table.useDialog ? {
|
|
1060
|
+
name: "actions",
|
|
1061
|
+
fn: C(() => [f("button", {
|
|
1062
|
+
tabindex: "0",
|
|
1063
|
+
class: "vue-ui-user-options-button",
|
|
1064
|
+
onClick: t[1] ||= (e) => yn(P.value.userOptions.callbacks.csv),
|
|
1065
|
+
style: v({ cursor: F.value ? "pointer" : "default" })
|
|
1066
|
+
}, [Pe(S(ct), {
|
|
1067
|
+
name: "fileCsv",
|
|
1068
|
+
stroke: Q.value.props.color
|
|
1069
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1070
|
+
key: "1"
|
|
1071
|
+
} : void 0]), 1040)) : u("", !0),
|
|
1072
|
+
x(e.$slots, "skeleton", {}, () => [S(I) ? (y(), l(me, { key: 0 })) : u("", !0)], !0)
|
|
1073
|
+
], 46, Ue));
|
|
1074
|
+
}
|
|
1075
|
+
}, [["__scopeId", "data-v-d013ae09"]]);
|
|
1076
|
+
//#endregion
|
|
1077
|
+
export { He as n, st as t };
|