vue-data-ui 3.25.5 → 3.25.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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.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/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- 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 +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,1085 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, Pt as a, R as o, S as s, Vt as c, X as l, Yt as ee, Zt as te, ht as ne, i as re, lt as ie, nt as ae, q as oe, t as se, w as ce } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as le, t as ue } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as de } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
-
import { t as fe } from "./usePrinter-DISD7q5m.js";
|
|
6
|
-
import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as he } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
-
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as _e } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as ve } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as ye } from "./img-DhGApYG0.js";
|
|
12
|
-
import { n as be } from "./Title-CPHi-evi.js";
|
|
13
|
-
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
-
import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as we } from "./BaseLegendToggle-__JnV08B.js";
|
|
16
|
-
import { t as Te } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
-
import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
-
import { t as De } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Oe } from "./labelUtils-BXX2NzRe.js";
|
|
20
|
-
import { t as ke } from "./Legend-X4kF4PvW.js";
|
|
21
|
-
import { t as Ae } from "./vue_ui_galaxy-Ig0cc1_h.js";
|
|
22
|
-
import { Fragment as je, Teleport as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as h, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Fe, nextTick as Ie, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as Le, openBlock as x, ref as S, renderList as Re, renderSlot as C, resolveDynamicComponent as ze, toDisplayString as w, toRefs as Be, unref as T, watch as Ve, withCtx as E } from "vue";
|
|
23
|
-
//#region src/components/vue-ui-galaxy.vue
|
|
24
|
-
var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
25
|
-
"xmlns",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"viewBox"
|
|
28
|
-
], Je = ["width", "height"], Ye = ["id"], Xe = ["stdDeviation"], Ze = [
|
|
29
|
-
"d",
|
|
30
|
-
"stroke",
|
|
31
|
-
"stroke-width"
|
|
32
|
-
], Qe = [
|
|
33
|
-
"d",
|
|
34
|
-
"stroke",
|
|
35
|
-
"stroke-width"
|
|
36
|
-
], $e = ["filter"], et = [
|
|
37
|
-
"d",
|
|
38
|
-
"stroke",
|
|
39
|
-
"stroke-width"
|
|
40
|
-
], tt = [
|
|
41
|
-
"data-a11y-serie-id",
|
|
42
|
-
"d",
|
|
43
|
-
"stroke-width",
|
|
44
|
-
"aria-label",
|
|
45
|
-
"onMouseenter",
|
|
46
|
-
"onMouseleave",
|
|
47
|
-
"onClick"
|
|
48
|
-
], nt = {
|
|
49
|
-
key: 0,
|
|
50
|
-
style: {
|
|
51
|
-
position: "absolute",
|
|
52
|
-
top: "100%",
|
|
53
|
-
left: "0",
|
|
54
|
-
width: "100%"
|
|
55
|
-
},
|
|
56
|
-
"data-dom-to-png-ignore": "",
|
|
57
|
-
"aria-hidden": "true"
|
|
58
|
-
}, rt = {
|
|
59
|
-
key: 5,
|
|
60
|
-
class: "vue-data-ui-watermark"
|
|
61
|
-
}, it = ["id"], at = ["onClick"], ot = { key: 0 }, st = { key: 1 }, ct = /*#__PURE__*/ xe({
|
|
62
|
-
__name: "vue-ui-galaxy",
|
|
63
|
-
props: {
|
|
64
|
-
config: {
|
|
65
|
-
type: Object,
|
|
66
|
-
default() {
|
|
67
|
-
return {};
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
dataset: {
|
|
71
|
-
type: Array,
|
|
72
|
-
default() {
|
|
73
|
-
return [];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
emits: [
|
|
78
|
-
"selectLegend",
|
|
79
|
-
"selectDatapoint",
|
|
80
|
-
"copyAlt"
|
|
81
|
-
],
|
|
82
|
-
setup(e, { expose: xe, emit: He }) {
|
|
83
|
-
let ct = g(() => import("./Tooltip-hhrkQ3Lk.js")), lt = g(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), ut = g(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), dt = g(() => import("./DataTable-COIO9gi4.js")), ft = g(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), pt = g(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), mt = g(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), ht = g(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_galaxy: gt } = de(), { isThemeValid: _t, warnInvalidTheme: vt } = ge(), D = e, O = S(oe()), k = S(null), yt = S(!1), bt = S(""), A = S(null), xt = S(0), St = S(0), Ct = S(0), wt = S(0), Tt = S(null), Et = S(null), Dt = S(null), Ot = S(null), j = S(null), kt = S(null), At = S(!1), M = S(null), jt = S(null), N = S(null), P = S(null), Mt = S({
|
|
84
|
-
x: 0,
|
|
85
|
-
y: 0
|
|
86
|
-
}), Nt = S("pointer"), Pt = S(!1), Ft = u(() => !!D.dataset && D.dataset.length), F = S(Gt());
|
|
87
|
-
le({
|
|
88
|
-
config: () => F.value,
|
|
89
|
-
dataset: () => D.dataset,
|
|
90
|
-
component: "VueUiGalaxy",
|
|
91
|
-
rules: [
|
|
92
|
-
ue.singleSeries,
|
|
93
|
-
ue.emptyArray,
|
|
94
|
-
{
|
|
95
|
-
test: (e) => e.length > 6,
|
|
96
|
-
message: [
|
|
97
|
-
"👀 The number of series is > 6. Consider:",
|
|
98
|
-
"",
|
|
99
|
-
"▶️ Grouping small values dynamically into a single \"Other\" series.",
|
|
100
|
-
"",
|
|
101
|
-
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
102
|
-
"",
|
|
103
|
-
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
});
|
|
108
|
-
let { transitionEnabled: It } = ve({
|
|
109
|
-
config: () => F.value.transitions,
|
|
110
|
-
dataset: () => D.dataset
|
|
111
|
-
}), I = u(() => F.value.userOptions.useCursorPointer), Lt = u(() => te({
|
|
112
|
-
defaultConfig: {
|
|
113
|
-
userOptions: { show: !1 },
|
|
114
|
-
table: { show: !1 },
|
|
115
|
-
useCssAnimation: !1,
|
|
116
|
-
style: { chart: {
|
|
117
|
-
backgroundColor: "#99999930",
|
|
118
|
-
legend: { backgroundColor: "transparent" }
|
|
119
|
-
} }
|
|
120
|
-
},
|
|
121
|
-
userConfig: F.value.skeletonConfig ?? {}
|
|
122
|
-
})), { loading: Rt, FINAL_DATASET: zt } = pe({
|
|
123
|
-
...Be(D),
|
|
124
|
-
FINAL_CONFIG: F,
|
|
125
|
-
prepareConfig: Gt,
|
|
126
|
-
callback: () => {
|
|
127
|
-
Promise.resolve().then(async () => {
|
|
128
|
-
await Ie(), R.value.showTable = F.value.table.show;
|
|
129
|
-
});
|
|
130
|
-
},
|
|
131
|
-
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
132
|
-
{
|
|
133
|
-
name: "_",
|
|
134
|
-
values: [21],
|
|
135
|
-
color: "#DBDBDB"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: "_",
|
|
139
|
-
values: [13],
|
|
140
|
-
color: "#C4C4C4"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: "_",
|
|
144
|
-
values: [8],
|
|
145
|
-
color: "#ADADAD"
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
skeletonConfig: te({
|
|
149
|
-
defaultConfig: F.value,
|
|
150
|
-
userConfig: Lt.value
|
|
151
|
-
})
|
|
152
|
-
});
|
|
153
|
-
Le(() => {
|
|
154
|
-
At.value = !0, Vt();
|
|
155
|
-
});
|
|
156
|
-
let Bt = u(() => F.value.debug);
|
|
157
|
-
function Vt() {
|
|
158
|
-
if (a(D.dataset) ? ae({
|
|
159
|
-
componentName: "VueUiGalaxy",
|
|
160
|
-
type: "dataset",
|
|
161
|
-
debug: Bt.value
|
|
162
|
-
}) : Bt.value && D.dataset.forEach((e, t) => {
|
|
163
|
-
ne({
|
|
164
|
-
datasetObject: e,
|
|
165
|
-
requiredAttributes: ["name", "values"]
|
|
166
|
-
}).forEach((e) => {
|
|
167
|
-
ae({
|
|
168
|
-
componentName: "VueUiGalaxy",
|
|
169
|
-
type: "datasetSerieAttribute",
|
|
170
|
-
property: e,
|
|
171
|
-
index: t
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
}), F.value.responsive) {
|
|
175
|
-
let e = Se(() => {
|
|
176
|
-
let { width: e, height: t } = Ce({
|
|
177
|
-
chart: k.value,
|
|
178
|
-
title: F.value.style.chart.title.text ? Tt.value : null,
|
|
179
|
-
legend: F.value.style.chart.legend.show ? Et.value : null,
|
|
180
|
-
noTitle: Ot.value,
|
|
181
|
-
source: Dt.value
|
|
182
|
-
});
|
|
183
|
-
requestAnimationFrame(() => {
|
|
184
|
-
z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12);
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
j.value && (kt.value && j.value.unobserve(kt.value), j.value.disconnect()), j.value = new ResizeObserver(e), kt.value = k.value.parentNode, j.value.observe(kt.value);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
let { userOptionsVisible: Ht, setUserOptionsVisibility: Ut, keepUserOptionState: Wt } = Ee({ config: F.value }), { svgRef: L } = De({ config: F.value.style.chart.title });
|
|
191
|
-
function Gt() {
|
|
192
|
-
let e = he({
|
|
193
|
-
userConfig: D.config,
|
|
194
|
-
defaultConfig: gt
|
|
195
|
-
}), t = e.theme;
|
|
196
|
-
if (!t) return e;
|
|
197
|
-
if (!_t.value(e)) return vt(e), e;
|
|
198
|
-
let n = he({
|
|
199
|
-
userConfig: Ae[t] || D.config,
|
|
200
|
-
defaultConfig: e
|
|
201
|
-
}), r = he({
|
|
202
|
-
userConfig: D.config,
|
|
203
|
-
defaultConfig: n
|
|
204
|
-
});
|
|
205
|
-
return {
|
|
206
|
-
...r,
|
|
207
|
-
customPalette: r.customPalette.length ? r.customPalette : ee[t] || i
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
Ve(() => D.config, (e) => {
|
|
211
|
-
F.value = Gt(), Ht.value = !F.value.userOptions.showOnChartHover, Vt(), St.value += 1, Ct.value += 1, wt.value += 1, R.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, R.value.showTable = F.value.table.show, R.value.showTooltip = F.value.style.chart.tooltip.show;
|
|
212
|
-
}, { deep: !0 });
|
|
213
|
-
let { isPrinting: Kt, isImaging: qt, generatePdf: Jt, generateImage: Yt } = fe({
|
|
214
|
-
elementId: `galaxy_${O.value}`,
|
|
215
|
-
fileName: F.value.style.chart.title.text || "vue-ui-galaxy",
|
|
216
|
-
options: F.value.userOptions.print
|
|
217
|
-
}), Xt = u(() => F.value.userOptions.show && !F.value.style.chart.title.text), Zt = u(() => ce(F.value.customPalette)), R = S({
|
|
218
|
-
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
219
|
-
showTable: F.value.table.show,
|
|
220
|
-
showTooltip: F.value.style.chart.tooltip.show
|
|
221
|
-
}), z = S(250), B = S(180), Qt = S(0), $t = S(0), V = u(() => ({
|
|
222
|
-
width: z.value,
|
|
223
|
-
height: B.value,
|
|
224
|
-
viewBox: `${Qt.value} ${$t.value} ${z.value} ${B.value}`
|
|
225
|
-
})), en = He, H = S([]);
|
|
226
|
-
function tn() {
|
|
227
|
-
en("selectLegend", K.value.map((e) => ({
|
|
228
|
-
name: e.name,
|
|
229
|
-
color: e.color,
|
|
230
|
-
value: e.value
|
|
231
|
-
})));
|
|
232
|
-
}
|
|
233
|
-
function nn() {
|
|
234
|
-
H.value.length ? H.value = [] : J.value.forEach((e) => {
|
|
235
|
-
H.value.push(e.id);
|
|
236
|
-
}), tn();
|
|
237
|
-
}
|
|
238
|
-
function U(e) {
|
|
239
|
-
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), tn();
|
|
240
|
-
}
|
|
241
|
-
function rn(e) {
|
|
242
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (Bt.value && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (Bt.value && console.warn("VueUiGalaxy - There are no series to show."), null);
|
|
243
|
-
}
|
|
244
|
-
function an(e) {
|
|
245
|
-
let t = rn(e);
|
|
246
|
-
t !== null && H.value.includes(t.id) && U({ id: t.id });
|
|
247
|
-
}
|
|
248
|
-
function on(e) {
|
|
249
|
-
let t = rn(e);
|
|
250
|
-
t !== null && (H.value.includes(t.id) || U({ id: t.id }));
|
|
251
|
-
}
|
|
252
|
-
let W = u(() => zt.value.map((e, t) => ({
|
|
253
|
-
name: e.name,
|
|
254
|
-
color: s(e.color) || Zt.value[t] || i[t] || i[t % i.length],
|
|
255
|
-
value: e.values ? c(e.values).reduce((e, t) => e + t, 0) : 0,
|
|
256
|
-
absoluteValues: c(e.values),
|
|
257
|
-
id: oe()
|
|
258
|
-
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
259
|
-
...e,
|
|
260
|
-
absoluteIndex: t
|
|
261
|
-
})));
|
|
262
|
-
function sn() {
|
|
263
|
-
return W.value.map((e) => ({
|
|
264
|
-
name: e.name,
|
|
265
|
-
color: e.color,
|
|
266
|
-
value: e.value
|
|
267
|
-
}));
|
|
268
|
-
}
|
|
269
|
-
let G = u(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), cn = S(190), ln = u(() => W.value.filter((e) => !H.value.includes(e.id))), un = u(() => (F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth) / 2 + (F.value.style.chart.layout.padding ?? 12)), dn = u(() => o({
|
|
270
|
-
maxPoints: cn.value,
|
|
271
|
-
a: F.value.style.chart.layout.arcs.a ?? 6,
|
|
272
|
-
b: F.value.style.chart.layout.arcs.b ?? 6,
|
|
273
|
-
angleStep: F.value.style.chart.layout.arcs.angleStep ?? .07,
|
|
274
|
-
startX: V.value.width / 2 + F.value.style.chart.layout.arcs.offsetX,
|
|
275
|
-
startY: V.value.height / 2 + F.value.style.chart.layout.arcs.offsetY,
|
|
276
|
-
boxWidth: V.value.width,
|
|
277
|
-
boxHeight: V.value.height,
|
|
278
|
-
padding: un.value
|
|
279
|
-
})), K = u(() => {
|
|
280
|
-
let e = [];
|
|
281
|
-
for (let t = 0; t < ln.value.length; t += 1) {
|
|
282
|
-
let n = ln.value[t], r = n.value / G.value * cn.value + (t > 0 && e.length ? e[t - 1].points : 0);
|
|
283
|
-
e.push({
|
|
284
|
-
points: r,
|
|
285
|
-
...n,
|
|
286
|
-
seriesIndex: t,
|
|
287
|
-
proportion: n.value / G.value,
|
|
288
|
-
path: dn.value(r)
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
|
|
292
|
-
});
|
|
293
|
-
function fn(e) {
|
|
294
|
-
let t = Math.min(z.value, B.value), n = A.value === e.id && F.value.style.chart.layout.arcs.hoverEffect.show ? F.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, r = (F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth) * n, i = F.value.style.chart.layout.arcs.strokeWidth * n, a = F.value.style.chart.layout.arcs.strokeWidth / 2 * n;
|
|
295
|
-
return {
|
|
296
|
-
border: r / 180 * t,
|
|
297
|
-
path: i / 180 * t,
|
|
298
|
-
blur: a / 180 * t
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
let q = S(!1);
|
|
302
|
-
function pn(e) {
|
|
303
|
-
q.value = e, xt.value += 1;
|
|
304
|
-
}
|
|
305
|
-
let mn = S(null);
|
|
306
|
-
function hn() {
|
|
307
|
-
yt.value = !1, A.value = null, N.value = null, P.value = null;
|
|
308
|
-
}
|
|
309
|
-
function gn(e) {
|
|
310
|
-
if (!L.value || !e) return;
|
|
311
|
-
let t = L.value.querySelector(`[data-a11y-serie-id="${e}"]`);
|
|
312
|
-
if (!t) return;
|
|
313
|
-
let n = t.getBoundingClientRect();
|
|
314
|
-
Mt.value = {
|
|
315
|
-
x: n.left + n.width / 2,
|
|
316
|
-
y: n.top + n.height / 2
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
function _n(e) {
|
|
320
|
-
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
321
|
-
datapoint: e,
|
|
322
|
-
seriesIndex: e.absoluteIndex
|
|
323
|
-
}), (P.value !== e.id || Nt.value !== "keyboard") && (yt.value = !1, A.value = null);
|
|
324
|
-
}
|
|
325
|
-
function vn(e) {
|
|
326
|
-
en("selectDatapoint", e), F.value.events.datapointClick && F.value.events.datapointClick({
|
|
327
|
-
datapoint: e,
|
|
328
|
-
seriesIndex: e.absoluteIndex
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
function yn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
332
|
-
let i = F.value.style.chart.layout.labels.dataLabels;
|
|
333
|
-
return Oe({
|
|
334
|
-
config: i,
|
|
335
|
-
val: e,
|
|
336
|
-
percentage: t,
|
|
337
|
-
showVal: n,
|
|
338
|
-
showPercentage: r
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
function bn({ datapoint: e, _relativeIndex: t, seriesIndex: r, show: i = !1, triggerMode: a = "pointer", flatIndex: o = null }) {
|
|
342
|
-
if (F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
343
|
-
datapoint: e,
|
|
344
|
-
seriesIndex: e.absoluteIndex
|
|
345
|
-
}), !R.value.showTooltip) return;
|
|
346
|
-
Nt.value = a, N.value = o, P.value = e.id, mn.value = {
|
|
347
|
-
datapoint: e,
|
|
348
|
-
seriesIndex: r,
|
|
349
|
-
series: W.value,
|
|
350
|
-
config: F.value
|
|
351
|
-
}, yt.value = i, A.value = e.id;
|
|
352
|
-
let s = "", c = F.value.style.chart.tooltip.customFormat;
|
|
353
|
-
n(c) && ie(() => c({
|
|
354
|
-
seriesIndex: r,
|
|
355
|
-
datapoint: e,
|
|
356
|
-
series: W.value,
|
|
357
|
-
config: F.value
|
|
358
|
-
})) ? bt.value = c({
|
|
359
|
-
seriesIndex: r,
|
|
360
|
-
datapoint: e,
|
|
361
|
-
series: W.value,
|
|
362
|
-
config: F.value
|
|
363
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<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>`, s += `<b>${yn({
|
|
364
|
-
showVal: F.value.style.chart.tooltip.showValue,
|
|
365
|
-
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
366
|
-
val: re(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, l({
|
|
367
|
-
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
368
|
-
v: e.value,
|
|
369
|
-
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
370
|
-
r: F.value.style.chart.tooltip.roundingValue
|
|
371
|
-
}), {
|
|
372
|
-
datapoint: e,
|
|
373
|
-
seriesIndex: r
|
|
374
|
-
}),
|
|
375
|
-
percentage: l({
|
|
376
|
-
v: e.proportion * 100,
|
|
377
|
-
s: "%",
|
|
378
|
-
r: F.value.style.chart.tooltip.roundingPercentage
|
|
379
|
-
})
|
|
380
|
-
})}</b></div>`, bt.value = `<div>${s}</div>`), a === "keyboard" && Ie(() => {
|
|
381
|
-
gn(e.id);
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
let J = u(() => W.value.map((e, t) => {
|
|
385
|
-
let n = re(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, l({
|
|
386
|
-
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
387
|
-
v: e.value,
|
|
388
|
-
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
389
|
-
r: F.value.style.chart.legend.roundingValue
|
|
390
|
-
}), {
|
|
391
|
-
datapoint: e,
|
|
392
|
-
index: t
|
|
393
|
-
}), r = isNaN(e.value / G.value) || H.value.includes(e.id) ? "-" : l({
|
|
394
|
-
v: e.value / G.value * 100,
|
|
395
|
-
s: "%",
|
|
396
|
-
r: F.value.style.chart.legend.roundingPercentage
|
|
397
|
-
}), i = yn({
|
|
398
|
-
showVal: F.value.style.chart.legend.showValue,
|
|
399
|
-
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
400
|
-
val: n,
|
|
401
|
-
percentage: r
|
|
402
|
-
});
|
|
403
|
-
return {
|
|
404
|
-
...e,
|
|
405
|
-
proportion: (e.value || 0) / zt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
406
|
-
opacity: H.value.includes(e.id) ? .5 : 1,
|
|
407
|
-
shape: e.shape || "circle",
|
|
408
|
-
segregate: () => U(e),
|
|
409
|
-
isSegregated: H.value.includes(e.id),
|
|
410
|
-
display: `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
411
|
-
};
|
|
412
|
-
})), xn = u(() => ({
|
|
413
|
-
cy: "galaxy-div-legend",
|
|
414
|
-
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
415
|
-
color: F.value.style.chart.legend.color,
|
|
416
|
-
fontSize: F.value.style.chart.legend.fontSize,
|
|
417
|
-
paddingBottom: 12,
|
|
418
|
-
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
419
|
-
})), Y = u(() => ({
|
|
420
|
-
head: K.value.map((e) => ({
|
|
421
|
-
name: e.name,
|
|
422
|
-
color: e.color
|
|
423
|
-
})),
|
|
424
|
-
body: K.value.map((e) => e.value)
|
|
425
|
-
}));
|
|
426
|
-
function Sn(e = null) {
|
|
427
|
-
Ie(() => {
|
|
428
|
-
let n = Y.value.head.map((e, t) => [
|
|
429
|
-
[e.name],
|
|
430
|
-
[Y.value.body[t]],
|
|
431
|
-
[isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
|
|
432
|
-
]), i = [
|
|
433
|
-
[F.value.style.chart.title.text],
|
|
434
|
-
[F.value.style.chart.title.subtitle.text],
|
|
435
|
-
[
|
|
436
|
-
[""],
|
|
437
|
-
["val"],
|
|
438
|
-
["%"]
|
|
439
|
-
]
|
|
440
|
-
].concat(n), a = r(i);
|
|
441
|
-
e ? e(a) : t({
|
|
442
|
-
csvContent: a,
|
|
443
|
-
title: F.value.style.chart.title.text || "vue-ui-galaxy"
|
|
444
|
-
});
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
let X = u(() => {
|
|
448
|
-
let e = [
|
|
449
|
-
"__SUM__",
|
|
450
|
-
l({
|
|
451
|
-
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
452
|
-
v: G.value,
|
|
453
|
-
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
454
|
-
r: F.value.table.td.roundingValue
|
|
455
|
-
}),
|
|
456
|
-
"100%"
|
|
457
|
-
], t = Y.value.head.map((e, t) => {
|
|
458
|
-
let n = l({
|
|
459
|
-
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
460
|
-
v: Y.value.body[t],
|
|
461
|
-
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
462
|
-
r: F.value.table.td.roundingValue
|
|
463
|
-
});
|
|
464
|
-
return [
|
|
465
|
-
{
|
|
466
|
-
color: e.color,
|
|
467
|
-
name: e.name
|
|
468
|
-
},
|
|
469
|
-
n,
|
|
470
|
-
isNaN(Y.value.body[t] / G.value) ? "-" : l({
|
|
471
|
-
v: Y.value.body[t] / G.value * 100,
|
|
472
|
-
s: "%",
|
|
473
|
-
r: F.value.table.td.roundingPercentage
|
|
474
|
-
})
|
|
475
|
-
];
|
|
476
|
-
}), n = {
|
|
477
|
-
th: {
|
|
478
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
479
|
-
color: F.value.table.th.color,
|
|
480
|
-
outline: F.value.table.th.outline
|
|
481
|
-
},
|
|
482
|
-
td: {
|
|
483
|
-
backgroundColor: F.value.table.td.backgroundColor,
|
|
484
|
-
color: F.value.table.td.color,
|
|
485
|
-
outline: F.value.table.td.outline
|
|
486
|
-
},
|
|
487
|
-
breakpoint: F.value.table.responsiveBreakpoint
|
|
488
|
-
};
|
|
489
|
-
return {
|
|
490
|
-
colNames: [
|
|
491
|
-
F.value.table.columnNames.series,
|
|
492
|
-
F.value.table.columnNames.value,
|
|
493
|
-
F.value.table.columnNames.percentage
|
|
494
|
-
],
|
|
495
|
-
head: e,
|
|
496
|
-
body: t,
|
|
497
|
-
config: n
|
|
498
|
-
};
|
|
499
|
-
});
|
|
500
|
-
function Cn() {
|
|
501
|
-
R.value.showTable = !R.value.showTable;
|
|
502
|
-
}
|
|
503
|
-
function wn() {
|
|
504
|
-
R.value.showTooltip = !R.value.showTooltip;
|
|
505
|
-
}
|
|
506
|
-
let Z = S(!1);
|
|
507
|
-
function Tn() {
|
|
508
|
-
Z.value = !Z.value;
|
|
509
|
-
}
|
|
510
|
-
async function En({ scale: e = 2 } = {}) {
|
|
511
|
-
if (!k.value) return;
|
|
512
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
|
|
513
|
-
domElement: k.value,
|
|
514
|
-
base64: !0,
|
|
515
|
-
img: !0,
|
|
516
|
-
scale: e
|
|
517
|
-
});
|
|
518
|
-
return {
|
|
519
|
-
imageUri: i,
|
|
520
|
-
base64: a,
|
|
521
|
-
title: F.value.style.chart.title.text,
|
|
522
|
-
width: t,
|
|
523
|
-
height: n,
|
|
524
|
-
aspectRatio: r
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
let Q = u(() => {
|
|
528
|
-
let e = F.value.table.useDialog && !F.value.table.show, t = R.value.showTable;
|
|
529
|
-
return {
|
|
530
|
-
component: e ? ht : ut,
|
|
531
|
-
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
532
|
-
props: e ? {
|
|
533
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
534
|
-
color: F.value.table.th.color,
|
|
535
|
-
headerColor: F.value.table.th.color,
|
|
536
|
-
headerBg: F.value.table.th.backgroundColor,
|
|
537
|
-
isFullscreen: q.value,
|
|
538
|
-
fullscreenParent: k.value,
|
|
539
|
-
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
540
|
-
isCursorPointer: I.value
|
|
541
|
-
} : {
|
|
542
|
-
hideDetails: !0,
|
|
543
|
-
config: {
|
|
544
|
-
open: t,
|
|
545
|
-
maxHeight: 1e4,
|
|
546
|
-
body: {
|
|
547
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
548
|
-
color: F.value.style.chart.color
|
|
549
|
-
},
|
|
550
|
-
head: {
|
|
551
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
552
|
-
color: F.value.style.chart.color
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
});
|
|
558
|
-
Ve(() => R.value.showTable, (e) => {
|
|
559
|
-
F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
560
|
-
});
|
|
561
|
-
function Dn() {
|
|
562
|
-
R.value.showTable = !1, jt.value && jt.value.setTableIconState(!1);
|
|
563
|
-
}
|
|
564
|
-
let On = u(() => J.value.map((e) => ({
|
|
565
|
-
...e,
|
|
566
|
-
name: e.display
|
|
567
|
-
}))), kn = u(() => F.value.style.chart.backgroundColor), An = u(() => F.value.style.chart.legend), jn = u(() => F.value.style.chart.title), { isCallbackImaging: Mn, isCallbackSvg: Nn, generateSvg: Pn, onGenerateImage: Fn } = _e({
|
|
568
|
-
svg: L,
|
|
569
|
-
title: jn,
|
|
570
|
-
legend: An,
|
|
571
|
-
legendItems: On,
|
|
572
|
-
backgroundColor: kn,
|
|
573
|
-
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
574
|
-
generateImage: Yt
|
|
575
|
-
});
|
|
576
|
-
async function In() {
|
|
577
|
-
if (en("copyAlt", {
|
|
578
|
-
config: F.value,
|
|
579
|
-
dataset: W.value
|
|
580
|
-
}), !F.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(F.value.userOptions.callbacks.altCopy({
|
|
585
|
-
config: F.value,
|
|
586
|
-
dataset: W.value
|
|
587
|
-
}));
|
|
588
|
-
}
|
|
589
|
-
function Ln() {
|
|
590
|
-
N.value = null, P.value = null, Pt.value = !0;
|
|
591
|
-
}
|
|
592
|
-
function Rn() {
|
|
593
|
-
hn(), Pt.value = !1;
|
|
594
|
-
}
|
|
595
|
-
function zn(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
|
-
hn();
|
|
601
|
-
return;
|
|
602
|
-
}
|
|
603
|
-
if (r) {
|
|
604
|
-
if (N.value === null) return;
|
|
605
|
-
let e = $.value[N.value];
|
|
606
|
-
if (!e) return;
|
|
607
|
-
vn(e.datapoint);
|
|
608
|
-
return;
|
|
609
|
-
}
|
|
610
|
-
let a = N.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 && bn({
|
|
614
|
-
datapoint: o.datapoint,
|
|
615
|
-
seriesIndex: o.datapoint.seriesIndex,
|
|
616
|
-
show: !0,
|
|
617
|
-
triggerMode: "keyboard",
|
|
618
|
-
flatIndex: a
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
let Bn = u(() => ({
|
|
622
|
-
headers: X.value?.colNames ?? [],
|
|
623
|
-
rows: X.value?.body ?? []
|
|
624
|
-
})), $ = u(() => K.value.map((e, t) => ({
|
|
625
|
-
datapoint: e,
|
|
626
|
-
index: t
|
|
627
|
-
})));
|
|
628
|
-
return xe({
|
|
629
|
-
getData: sn,
|
|
630
|
-
getImage: En,
|
|
631
|
-
generatePdf: Jt,
|
|
632
|
-
generateCsv: Sn,
|
|
633
|
-
generateImage: Yt,
|
|
634
|
-
generateSvg: Pn,
|
|
635
|
-
hideSeries: on,
|
|
636
|
-
showSeries: an,
|
|
637
|
-
toggleTable: Cn,
|
|
638
|
-
toggleTooltip: wn,
|
|
639
|
-
toggleAnnotator: Tn,
|
|
640
|
-
toggleFullscreen: pn,
|
|
641
|
-
copyAlt: In
|
|
642
|
-
}), (e, t) => (x(), p("div", {
|
|
643
|
-
ref_key: "galaxyChart",
|
|
644
|
-
ref: k,
|
|
645
|
-
class: v(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"} ${T(Rt) ? "loading" : ""}`),
|
|
646
|
-
style: b(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;${F.value.style.chart.title.text ? "" : "padding-top:36px"};background:${F.value.style.chart.backgroundColor}`),
|
|
647
|
-
id: `galaxy_${O.value}`,
|
|
648
|
-
onMouseenter: t[2] ||= () => T(Ut)(!0),
|
|
649
|
-
onMouseleave: t[3] ||= () => {
|
|
650
|
-
T(Ut)(!1), Pt.value || hn();
|
|
651
|
-
}
|
|
652
|
-
}, [
|
|
653
|
-
m("div", {
|
|
654
|
-
id: `chart-instructions-${O.value}`,
|
|
655
|
-
class: "sr-only"
|
|
656
|
-
}, [m("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8, We),
|
|
657
|
-
Bn.value?.rows?.length ? (x(), d(Te, {
|
|
658
|
-
key: 0,
|
|
659
|
-
uid: O.value,
|
|
660
|
-
head: Bn.value.headers,
|
|
661
|
-
body: Bn.value.rows,
|
|
662
|
-
notice: F.value.a11y.translations.tableAvailable,
|
|
663
|
-
caption: F.value.a11y.translations.tableCaption
|
|
664
|
-
}, null, 8, [
|
|
665
|
-
"uid",
|
|
666
|
-
"head",
|
|
667
|
-
"body",
|
|
668
|
-
"notice",
|
|
669
|
-
"caption"
|
|
670
|
-
])) : f("", !0),
|
|
671
|
-
F.value.userOptions.buttons.annotator ? (x(), d(T(ft), {
|
|
672
|
-
key: 1,
|
|
673
|
-
svgRef: T(L),
|
|
674
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
675
|
-
color: F.value.style.chart.color,
|
|
676
|
-
active: Z.value,
|
|
677
|
-
isCursorPointer: I.value,
|
|
678
|
-
palette: F.value.userOptions.annotatorPalette,
|
|
679
|
-
onClose: Tn
|
|
680
|
-
}, {
|
|
681
|
-
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
682
|
-
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
683
|
-
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
684
|
-
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
685
|
-
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
686
|
-
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
687
|
-
_: 3
|
|
688
|
-
}, 8, [
|
|
689
|
-
"svgRef",
|
|
690
|
-
"backgroundColor",
|
|
691
|
-
"color",
|
|
692
|
-
"active",
|
|
693
|
-
"isCursorPointer",
|
|
694
|
-
"palette"
|
|
695
|
-
])) : f("", !0),
|
|
696
|
-
Xt.value ? (x(), p("div", {
|
|
697
|
-
key: 2,
|
|
698
|
-
ref_key: "noTitle",
|
|
699
|
-
ref: Ot,
|
|
700
|
-
class: "vue-data-ui-no-title-space",
|
|
701
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
702
|
-
}, null, 512)) : f("", !0),
|
|
703
|
-
F.value.style.chart.title.text ? (x(), p("div", {
|
|
704
|
-
key: 3,
|
|
705
|
-
ref_key: "chartTitle",
|
|
706
|
-
ref: Tt,
|
|
707
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
708
|
-
}, [(x(), d(be, {
|
|
709
|
-
key: `title_${St.value}`,
|
|
710
|
-
config: {
|
|
711
|
-
title: {
|
|
712
|
-
cy: "galaxy-div-title",
|
|
713
|
-
...F.value.style.chart.title
|
|
714
|
-
},
|
|
715
|
-
subtitle: {
|
|
716
|
-
cy: "galaxy-div-subtitle",
|
|
717
|
-
...F.value.style.chart.title.subtitle
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
721
|
-
m("div", { id: `legend-top-${O.value}` }, null, 8, Ge),
|
|
722
|
-
F.value.userOptions.show && Ft.value && (T(Wt) || T(Ht)) ? (x(), d(T(pt), {
|
|
723
|
-
ref_key: "userOptionsRef",
|
|
724
|
-
ref: jt,
|
|
725
|
-
key: `user_option_${xt.value}`,
|
|
726
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
727
|
-
color: F.value.style.chart.color,
|
|
728
|
-
isPrinting: T(Kt),
|
|
729
|
-
isImaging: T(qt),
|
|
730
|
-
uid: O.value,
|
|
731
|
-
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
732
|
-
hasPdf: F.value.userOptions.buttons.pdf,
|
|
733
|
-
hasXls: F.value.userOptions.buttons.csv,
|
|
734
|
-
hasImg: F.value.userOptions.buttons.img,
|
|
735
|
-
hasSvg: F.value.userOptions.buttons.svg,
|
|
736
|
-
hasTable: F.value.userOptions.buttons.table,
|
|
737
|
-
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
738
|
-
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
739
|
-
isTooltip: R.value.showTooltip,
|
|
740
|
-
isFullscreen: q.value,
|
|
741
|
-
titles: { ...F.value.userOptions.buttonTitles },
|
|
742
|
-
chartElement: k.value,
|
|
743
|
-
position: F.value.userOptions.position,
|
|
744
|
-
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
745
|
-
isAnnotation: Z.value,
|
|
746
|
-
callbacks: F.value.userOptions.callbacks,
|
|
747
|
-
printScale: F.value.userOptions.print.scale,
|
|
748
|
-
tableDialog: F.value.table.useDialog,
|
|
749
|
-
isCursorPointer: I.value,
|
|
750
|
-
onToggleFullscreen: pn,
|
|
751
|
-
onGeneratePdf: T(Jt),
|
|
752
|
-
onGenerateCsv: Sn,
|
|
753
|
-
onGenerateImage: T(Fn),
|
|
754
|
-
onGenerateSvg: T(Pn),
|
|
755
|
-
onToggleTable: Cn,
|
|
756
|
-
onToggleTooltip: wn,
|
|
757
|
-
onToggleAnnotator: Tn,
|
|
758
|
-
onCopyAlt: In,
|
|
759
|
-
style: b({ visibility: T(Wt) ? T(Ht) ? "visible" : "hidden" : "visible" })
|
|
760
|
-
}, Ne({ _: 2 }, [
|
|
761
|
-
e.$slots.menuIcon ? {
|
|
762
|
-
name: "menuIcon",
|
|
763
|
-
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
|
|
764
|
-
isOpen: t,
|
|
765
|
-
color: n
|
|
766
|
-
})), void 0, !0)]),
|
|
767
|
-
key: "0"
|
|
768
|
-
} : void 0,
|
|
769
|
-
e.$slots.optionTooltip ? {
|
|
770
|
-
name: "optionTooltip",
|
|
771
|
-
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
772
|
-
key: "1"
|
|
773
|
-
} : void 0,
|
|
774
|
-
e.$slots.optionPdf ? {
|
|
775
|
-
name: "optionPdf",
|
|
776
|
-
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
777
|
-
key: "2"
|
|
778
|
-
} : void 0,
|
|
779
|
-
e.$slots.optionCsv ? {
|
|
780
|
-
name: "optionCsv",
|
|
781
|
-
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
782
|
-
key: "3"
|
|
783
|
-
} : void 0,
|
|
784
|
-
e.$slots.optionImg ? {
|
|
785
|
-
name: "optionImg",
|
|
786
|
-
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
787
|
-
key: "4"
|
|
788
|
-
} : void 0,
|
|
789
|
-
e.$slots.optionSvg ? {
|
|
790
|
-
name: "optionSvg",
|
|
791
|
-
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
792
|
-
key: "5"
|
|
793
|
-
} : void 0,
|
|
794
|
-
e.$slots.optionTable ? {
|
|
795
|
-
name: "optionTable",
|
|
796
|
-
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
797
|
-
key: "6"
|
|
798
|
-
} : void 0,
|
|
799
|
-
e.$slots.optionFullscreen ? {
|
|
800
|
-
name: "optionFullscreen",
|
|
801
|
-
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
|
|
802
|
-
toggleFullscreen: t,
|
|
803
|
-
isFullscreen: n
|
|
804
|
-
})), void 0, !0)]),
|
|
805
|
-
key: "7"
|
|
806
|
-
} : void 0,
|
|
807
|
-
e.$slots.optionAnnotator ? {
|
|
808
|
-
name: "optionAnnotator",
|
|
809
|
-
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
|
|
810
|
-
toggleAnnotator: t,
|
|
811
|
-
isAnnotator: n
|
|
812
|
-
})), void 0, !0)]),
|
|
813
|
-
key: "8"
|
|
814
|
-
} : void 0,
|
|
815
|
-
e.$slots.optionAltCopy ? {
|
|
816
|
-
name: "optionAltCopy",
|
|
817
|
-
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
818
|
-
key: "9"
|
|
819
|
-
} : void 0,
|
|
820
|
-
e.$slots["custom-menu-before"] ? {
|
|
821
|
-
name: "custom-menu-before",
|
|
822
|
-
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
823
|
-
key: "10"
|
|
824
|
-
} : void 0,
|
|
825
|
-
e.$slots["custom-menu-after"] ? {
|
|
826
|
-
name: "custom-menu-after",
|
|
827
|
-
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
828
|
-
key: "11"
|
|
829
|
-
} : void 0
|
|
830
|
-
]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : f("", !0),
|
|
831
|
-
m("div", Ke, [(x(), p("svg", {
|
|
832
|
-
ref_key: "svgRef",
|
|
833
|
-
ref: L,
|
|
834
|
-
xmlns: T(se),
|
|
835
|
-
"aria-describedby": `chart-instructions-${O.value}`,
|
|
836
|
-
class: v({
|
|
837
|
-
"vue-data-ui-fullscreen--on": q.value,
|
|
838
|
-
"vue-data-ui-fulscreen--off": !q.value
|
|
839
|
-
}),
|
|
840
|
-
viewBox: V.value.viewBox,
|
|
841
|
-
style: b(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color}`),
|
|
842
|
-
tabindex: "0",
|
|
843
|
-
onFocus: Ln,
|
|
844
|
-
onBlur: Rn,
|
|
845
|
-
onKeydown: zn
|
|
846
|
-
}, [
|
|
847
|
-
h(T(mt)),
|
|
848
|
-
e.$slots["chart-background"] ? (x(), p("foreignObject", {
|
|
849
|
-
key: 0,
|
|
850
|
-
x: 0,
|
|
851
|
-
y: 0,
|
|
852
|
-
width: V.value.width,
|
|
853
|
-
height: V.value.height,
|
|
854
|
-
style: { pointerEvents: "none" }
|
|
855
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : f("", !0),
|
|
856
|
-
m("defs", null, [m("filter", {
|
|
857
|
-
id: `blur_${O.value}`,
|
|
858
|
-
x: "-50%",
|
|
859
|
-
y: "-50%",
|
|
860
|
-
width: "200%",
|
|
861
|
-
height: "200%"
|
|
862
|
-
}, [m("feGaussianBlur", {
|
|
863
|
-
in: "SourceGraphic",
|
|
864
|
-
stdDeviation: 100 / F.value.style.chart.layout.arcs.gradient.intensity
|
|
865
|
-
}, null, 8, Xe)], 8, Ye)]),
|
|
866
|
-
(x(!0), p(je, null, Re(K.value, (e) => (x(), p("g", { key: `dp_${e.id}` }, [
|
|
867
|
-
e.value ? (x(), p("path", {
|
|
868
|
-
key: 0,
|
|
869
|
-
d: e.path,
|
|
870
|
-
fill: "none",
|
|
871
|
-
stroke: F.value.style.chart.backgroundColor,
|
|
872
|
-
"stroke-width": fn(e).border,
|
|
873
|
-
class: v({ "vue-data-ui-transition": T(It) }),
|
|
874
|
-
"stroke-linecap": "round"
|
|
875
|
-
}, null, 10, Ze)) : f("", !0),
|
|
876
|
-
e.value ? (x(), p("path", {
|
|
877
|
-
key: 1,
|
|
878
|
-
d: e.path,
|
|
879
|
-
fill: "none",
|
|
880
|
-
stroke: e.color,
|
|
881
|
-
"stroke-width": fn(e).path,
|
|
882
|
-
"stroke-linecap": "round",
|
|
883
|
-
class: v({
|
|
884
|
-
"vue-data-ui-transition": T(It),
|
|
885
|
-
"vue-ui-galaxy-blur": A.value && A.value !== e.id && F.value.useBlurOnHover
|
|
886
|
-
})
|
|
887
|
-
}, null, 10, Qe)) : f("", !0),
|
|
888
|
-
e.value && F.value.style.chart.layout.arcs.gradient.show ? (x(), p("g", {
|
|
889
|
-
key: 2,
|
|
890
|
-
filter: `url(#blur_${O.value})`
|
|
891
|
-
}, [m("path", {
|
|
892
|
-
d: e.path,
|
|
893
|
-
fill: "none",
|
|
894
|
-
stroke: F.value.style.chart.layout.arcs.gradient.color,
|
|
895
|
-
"stroke-width": fn(e).blur,
|
|
896
|
-
"stroke-linecap": "round",
|
|
897
|
-
class: v({
|
|
898
|
-
"vue-ui-galaxy-gradient": !0,
|
|
899
|
-
"vue-data-ui-transition": T(It),
|
|
900
|
-
"vue-ui-galaxy-blur": A.value && A.value !== e.id && F.value.useBlurOnHover
|
|
901
|
-
})
|
|
902
|
-
}, null, 10, et)], 8, $e)) : f("", !0)
|
|
903
|
-
]))), 128)),
|
|
904
|
-
(x(!0), p(je, null, Re(K.value, (e, t) => (x(), p("g", null, [e.value ? (x(), p("path", {
|
|
905
|
-
key: 0,
|
|
906
|
-
"data-a11y-serie-id": e.id,
|
|
907
|
-
d: e.path,
|
|
908
|
-
fill: "none",
|
|
909
|
-
stroke: "transparent",
|
|
910
|
-
"stroke-width": F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth,
|
|
911
|
-
"stroke-linecap": "round",
|
|
912
|
-
"aria-label": `${e.name}: ${T(l)({
|
|
913
|
-
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
914
|
-
v: e.value,
|
|
915
|
-
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
916
|
-
r: F.value.style.chart.tooltip.roundingValue
|
|
917
|
-
})}`,
|
|
918
|
-
onMouseenter: (n) => bn({
|
|
919
|
-
datapoint: e,
|
|
920
|
-
relativeIndex: t,
|
|
921
|
-
seriesIndex: e.seriesIndex,
|
|
922
|
-
show: !0,
|
|
923
|
-
triggerMode: "pointer",
|
|
924
|
-
flatIndex: t
|
|
925
|
-
}),
|
|
926
|
-
onMouseleave: (t) => _n(e),
|
|
927
|
-
onClick: (t) => vn(e)
|
|
928
|
-
}, null, 40, tt)) : f("", !0)]))), 256)),
|
|
929
|
-
C(e.$slots, "svg", { svg: {
|
|
930
|
-
...V.value,
|
|
931
|
-
isPrintingImg: T(Kt) || T(qt) || T(Mn),
|
|
932
|
-
isPrintingSvg: T(Nn)
|
|
933
|
-
} }, void 0, !0)
|
|
934
|
-
], 46, qe)), e.$slots.hint ? (x(), p("div", nt, [C(e.$slots, "hint", y(_({
|
|
935
|
-
hint: F.value.a11y.translations.keyboardNavigation,
|
|
936
|
-
isVisible: Pt.value
|
|
937
|
-
})), void 0, !0)])) : f("", !0)]),
|
|
938
|
-
e.$slots.watermark ? (x(), p("div", rt, [C(e.$slots, "watermark", y(_({ isPrinting: T(Kt) || T(qt) || T(Mn) || T(Nn) })), void 0, !0)])) : f("", !0),
|
|
939
|
-
m("div", { id: `legend-bottom-${O.value}` }, null, 8, it),
|
|
940
|
-
At.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (x(), d(Me, {
|
|
941
|
-
key: 6,
|
|
942
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
943
|
-
}, [m("div", {
|
|
944
|
-
ref_key: "chartLegend",
|
|
945
|
-
ref: Et
|
|
946
|
-
}, [C(e.$slots, "legend", { legend: J.value }, () => [F.value.style.chart.legend.show ? (x(), d(ke, {
|
|
947
|
-
key: `legend_${wt.value}`,
|
|
948
|
-
legendSet: J.value,
|
|
949
|
-
config: xn.value,
|
|
950
|
-
onClickMarker: t[0] ||= ({ legend: e }) => U(e)
|
|
951
|
-
}, {
|
|
952
|
-
item: E(({ legend: e, index: t }) => [T(Rt) ? f("", !0) : (x(), p("div", {
|
|
953
|
-
key: 0,
|
|
954
|
-
onClick: (t) => U(e),
|
|
955
|
-
style: b(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
|
|
956
|
-
}, w(e.display), 13, at))]),
|
|
957
|
-
legendToggle: E(() => [J.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !T(Rt) ? (x(), d(we, {
|
|
958
|
-
key: 0,
|
|
959
|
-
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
960
|
-
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
961
|
-
fontSize: F.value.style.chart.legend.fontSize,
|
|
962
|
-
checked: H.value.length > 0,
|
|
963
|
-
onToggle: nn
|
|
964
|
-
}, null, 8, [
|
|
965
|
-
"backgroundColor",
|
|
966
|
-
"color",
|
|
967
|
-
"fontSize",
|
|
968
|
-
"checked"
|
|
969
|
-
])) : f("", !0)]),
|
|
970
|
-
_: 1
|
|
971
|
-
}, 8, ["legendSet", "config"])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
972
|
-
e.$slots.source ? (x(), p("div", {
|
|
973
|
-
key: 7,
|
|
974
|
-
ref_key: "source",
|
|
975
|
-
ref: Dt,
|
|
976
|
-
dir: "auto"
|
|
977
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
978
|
-
h(T(ct), {
|
|
979
|
-
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
980
|
-
show: R.value.showTooltip && yt.value,
|
|
981
|
-
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
982
|
-
color: F.value.style.chart.tooltip.color,
|
|
983
|
-
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
984
|
-
borderColor: F.value.style.chart.tooltip.borderColor,
|
|
985
|
-
borderWidth: F.value.style.chart.tooltip.borderWidth,
|
|
986
|
-
fontSize: F.value.style.chart.tooltip.fontSize,
|
|
987
|
-
backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
|
|
988
|
-
position: F.value.style.chart.tooltip.position,
|
|
989
|
-
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
990
|
-
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
991
|
-
parent: k.value,
|
|
992
|
-
content: bt.value,
|
|
993
|
-
isFullscreen: q.value,
|
|
994
|
-
isCustom: T(n)(F.value.style.chart.tooltip.customFormat),
|
|
995
|
-
smooth: F.value.style.chart.tooltip.smooth,
|
|
996
|
-
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
997
|
-
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
998
|
-
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
999
|
-
isA11yMode: Nt.value === "keyboard",
|
|
1000
|
-
a11yPosition: Mt.value
|
|
1001
|
-
}, {
|
|
1002
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(_({ ...mn.value })), void 0, !0)]),
|
|
1003
|
-
tooltip: E(() => [C(e.$slots, "tooltip", y(_({ ...mn.value })), void 0, !0)]),
|
|
1004
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(_({ ...mn.value })), void 0, !0)]),
|
|
1005
|
-
_: 3
|
|
1006
|
-
}, 8, [
|
|
1007
|
-
"teleportTo",
|
|
1008
|
-
"show",
|
|
1009
|
-
"backgroundColor",
|
|
1010
|
-
"color",
|
|
1011
|
-
"borderRadius",
|
|
1012
|
-
"borderColor",
|
|
1013
|
-
"borderWidth",
|
|
1014
|
-
"fontSize",
|
|
1015
|
-
"backgroundOpacity",
|
|
1016
|
-
"position",
|
|
1017
|
-
"offsetX",
|
|
1018
|
-
"offsetY",
|
|
1019
|
-
"parent",
|
|
1020
|
-
"content",
|
|
1021
|
-
"isFullscreen",
|
|
1022
|
-
"isCustom",
|
|
1023
|
-
"smooth",
|
|
1024
|
-
"backdropFilter",
|
|
1025
|
-
"smoothForce",
|
|
1026
|
-
"smoothSnapThreshold",
|
|
1027
|
-
"isA11yMode",
|
|
1028
|
-
"a11yPosition"
|
|
1029
|
-
]),
|
|
1030
|
-
Ft.value && F.value.userOptions.buttons.table ? (x(), d(ze(Q.value.component), Fe({ key: 8 }, Q.value.props, {
|
|
1031
|
-
ref_key: "tableUnit",
|
|
1032
|
-
ref: M,
|
|
1033
|
-
onClose: Dn
|
|
1034
|
-
}), Ne({
|
|
1035
|
-
content: E(() => [(x(), d(T(dt), {
|
|
1036
|
-
key: `table_${Ct.value}`,
|
|
1037
|
-
colNames: X.value.colNames,
|
|
1038
|
-
head: X.value.head,
|
|
1039
|
-
body: X.value.body,
|
|
1040
|
-
config: X.value.config,
|
|
1041
|
-
title: F.value.table.useDialog ? "" : Q.value.title,
|
|
1042
|
-
withCloseButton: !F.value.table.useDialog,
|
|
1043
|
-
isCursorPointer: I.value,
|
|
1044
|
-
onClose: Dn
|
|
1045
|
-
}, {
|
|
1046
|
-
th: E(({ th: e }) => [e === "__SUM__" ? (x(), p("div", ot, [h(T(lt), {
|
|
1047
|
-
name: "sigma",
|
|
1048
|
-
stroke: X.value.config.th.color,
|
|
1049
|
-
size: 16
|
|
1050
|
-
}, null, 8, ["stroke"])])) : (x(), p("div", st, w(e), 1))]),
|
|
1051
|
-
td: E(({ td: e }) => [Pe(w(e.name || e), 1)]),
|
|
1052
|
-
_: 1
|
|
1053
|
-
}, 8, [
|
|
1054
|
-
"colNames",
|
|
1055
|
-
"head",
|
|
1056
|
-
"body",
|
|
1057
|
-
"config",
|
|
1058
|
-
"title",
|
|
1059
|
-
"withCloseButton",
|
|
1060
|
-
"isCursorPointer"
|
|
1061
|
-
]))]),
|
|
1062
|
-
_: 2
|
|
1063
|
-
}, [F.value.table.useDialog ? {
|
|
1064
|
-
name: "title",
|
|
1065
|
-
fn: E(() => [Pe(w(Q.value.title), 1)]),
|
|
1066
|
-
key: "0"
|
|
1067
|
-
} : void 0, F.value.table.useDialog ? {
|
|
1068
|
-
name: "actions",
|
|
1069
|
-
fn: E(() => [m("button", {
|
|
1070
|
-
tabindex: "0",
|
|
1071
|
-
class: "vue-ui-user-options-button",
|
|
1072
|
-
onClick: t[1] ||= (e) => Sn(F.value.userOptions.callbacks.csv),
|
|
1073
|
-
style: b({ cursor: I.value ? "pointer" : "default" })
|
|
1074
|
-
}, [h(T(lt), {
|
|
1075
|
-
name: "fileCsv",
|
|
1076
|
-
stroke: Q.value.props.color
|
|
1077
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1078
|
-
key: "1"
|
|
1079
|
-
} : void 0]), 1040)) : f("", !0),
|
|
1080
|
-
C(e.$slots, "skeleton", {}, () => [T(Rt) ? (x(), d(me, { key: 0 })) : f("", !0)], !0)
|
|
1081
|
-
], 46, Ue));
|
|
1082
|
-
}
|
|
1083
|
-
}, [["__scopeId", "data-v-9bc7e750"]]);
|
|
1084
|
-
//#endregion
|
|
1085
|
-
export { He as n, ct as t };
|