vue-data-ui 3.23.9 → 3.23.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, Bt as n, D as r, It as i, Jt as a, Nt as o, R as s, S as ee, St as te, X as c, Xt as ne, i as re, lt as ie, mt as ae, nt as oe, q as se, t as ce, w as le } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as fe } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as pe } from "./usePrinter-
|
|
5
|
+
import { t as pe } from "./usePrinter-CEiH1b6R.js";
|
|
6
6
|
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ge } from "./useNestedProp-
|
|
7
|
+
import { t as ge } from "./useNestedProp-CulPqtou.js";
|
|
8
8
|
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as ve } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as ye } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as be } from "./img-
|
|
12
|
-
import { n as xe } from "./Title-
|
|
11
|
+
import { t as be } from "./img-Bkzj3lDD.js";
|
|
12
|
+
import { n as xe } from "./Title-CaVA8EIw.js";
|
|
13
13
|
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as Ce, t as we } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as Te } from "./BaseLegendToggle-
|
|
15
|
+
import { t as Te } from "./BaseLegendToggle-CtEdLr4R.js";
|
|
16
16
|
import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as ke } from "./labelUtils-
|
|
20
|
-
import { t as Ae } from "./Legend-
|
|
19
|
+
import { t as ke } from "./labelUtils-iX76cA2-.js";
|
|
20
|
+
import { t as Ae } from "./Legend-BJtY2RA9.js";
|
|
21
21
|
import { t as je } from "./vue_ui_galaxy-Ig0cc1_h.js";
|
|
22
|
-
import { Fragment as Me, Teleport as Ne, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Pe, createTextVNode as Fe, createVNode as
|
|
22
|
+
import { Fragment as Me, Teleport as Ne, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Pe, createTextVNode as Fe, createVNode as m, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Re, openBlock as b, ref as x, renderList as ze, renderSlot as S, resolveDynamicComponent as Be, toDisplayString as C, toRefs as Ve, unref as w, watch as He, withCtx as T } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-galaxy.vue
|
|
24
|
-
var
|
|
24
|
+
var Ue = /* @__PURE__ */ e({ default: () => lt }), We = ["id"], Ge = ["id"], Ke = ["id"], qe = { style: { position: "relative" } }, Je = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"viewBox"
|
|
28
|
-
],
|
|
28
|
+
], Ye = ["width", "height"], Xe = ["id"], Ze = ["stdDeviation"], Qe = [
|
|
29
29
|
"d",
|
|
30
30
|
"stroke",
|
|
31
31
|
"stroke-width"
|
|
32
|
-
],
|
|
32
|
+
], $e = [
|
|
33
33
|
"d",
|
|
34
34
|
"stroke",
|
|
35
35
|
"stroke-width"
|
|
36
|
-
],
|
|
36
|
+
], et = ["filter"], tt = [
|
|
37
37
|
"d",
|
|
38
38
|
"stroke",
|
|
39
39
|
"stroke-width"
|
|
40
|
-
],
|
|
40
|
+
], nt = [
|
|
41
41
|
"data-a11y-serie-id",
|
|
42
42
|
"d",
|
|
43
43
|
"stroke-width",
|
|
@@ -45,7 +45,7 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
45
45
|
"onMouseenter",
|
|
46
46
|
"onMouseleave",
|
|
47
47
|
"onClick"
|
|
48
|
-
],
|
|
48
|
+
], rt = {
|
|
49
49
|
key: 0,
|
|
50
50
|
style: {
|
|
51
51
|
position: "absolute",
|
|
@@ -55,10 +55,10 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
55
55
|
},
|
|
56
56
|
"data-dom-to-png-ignore": "",
|
|
57
57
|
"aria-hidden": "true"
|
|
58
|
-
},
|
|
58
|
+
}, it = {
|
|
59
59
|
key: 5,
|
|
60
60
|
class: "vue-data-ui-watermark"
|
|
61
|
-
},
|
|
61
|
+
}, at = ["id"], ot = ["onClick"], st = { key: 0 }, ct = { key: 1 }, lt = /*#__PURE__*/ Se({
|
|
62
62
|
__name: "vue-ui-galaxy",
|
|
63
63
|
props: {
|
|
64
64
|
config: {
|
|
@@ -79,14 +79,14 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
79
79
|
"selectDatapoint",
|
|
80
80
|
"copyAlt"
|
|
81
81
|
],
|
|
82
|
-
setup(e, { expose: Se, emit:
|
|
83
|
-
let
|
|
82
|
+
setup(e, { expose: Se, emit: Ue }) {
|
|
83
|
+
let lt = h(() => import("./Tooltip-CVxJe3UW.js")), ut = h(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), dt = h(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), ft = h(() => import("./DataTable-CmyEubtT.js")), pt = h(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), mt = h(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), ht = h(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), gt = h(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_galaxy: _t } = fe(), { isThemeValid: vt, warnInvalidTheme: yt } = _e(), E = e, D = x(se()), O = x(null), k = x(!1), bt = x(""), A = x(null), xt = x(0), St = x(0), Ct = x(0), wt = x(0), Tt = x(null), Et = x(null), Dt = x(null), Ot = x(null), j = x(null), kt = x(null), At = x(!1), M = x(null), jt = x(null), N = x(null), Mt = x(null), Nt = x({
|
|
84
84
|
x: 0,
|
|
85
85
|
y: 0
|
|
86
|
-
}),
|
|
86
|
+
}), Pt = x("pointer"), P = x(!1), Ft = l(() => !!E.dataset && E.dataset.length), F = x(Gt());
|
|
87
87
|
ue({
|
|
88
88
|
config: () => F.value,
|
|
89
|
-
dataset: () =>
|
|
89
|
+
dataset: () => E.dataset,
|
|
90
90
|
component: "VueUiGalaxy",
|
|
91
91
|
rules: [
|
|
92
92
|
de.singleSeries,
|
|
@@ -105,10 +105,10 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
105
105
|
}
|
|
106
106
|
]
|
|
107
107
|
});
|
|
108
|
-
let { transitionEnabled:
|
|
108
|
+
let { transitionEnabled: It } = ye({
|
|
109
109
|
config: () => F.value.transitions,
|
|
110
|
-
dataset: () =>
|
|
111
|
-
}), I = l(() => F.value.userOptions.useCursorPointer),
|
|
110
|
+
dataset: () => E.dataset
|
|
111
|
+
}), I = l(() => F.value.userOptions.useCursorPointer), Lt = l(() => ne({
|
|
112
112
|
defaultConfig: {
|
|
113
113
|
userOptions: { show: !1 },
|
|
114
114
|
table: { show: !1 },
|
|
@@ -119,16 +119,16 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
119
119
|
} }
|
|
120
120
|
},
|
|
121
121
|
userConfig: F.value.skeletonConfig ?? {}
|
|
122
|
-
})), { loading:
|
|
123
|
-
...
|
|
122
|
+
})), { loading: Rt, FINAL_DATASET: zt } = me({
|
|
123
|
+
...Ve(E),
|
|
124
124
|
FINAL_CONFIG: F,
|
|
125
|
-
prepareConfig:
|
|
125
|
+
prepareConfig: Gt,
|
|
126
126
|
callback: () => {
|
|
127
127
|
Promise.resolve().then(async () => {
|
|
128
|
-
await
|
|
128
|
+
await Le(), R.value.showTable = F.value.table.show;
|
|
129
129
|
});
|
|
130
130
|
},
|
|
131
|
-
skeletonDataset:
|
|
131
|
+
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
132
132
|
{
|
|
133
133
|
name: "_",
|
|
134
134
|
values: [21],
|
|
@@ -145,26 +145,26 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
145
145
|
color: "#ADADAD"
|
|
146
146
|
}
|
|
147
147
|
],
|
|
148
|
-
skeletonConfig:
|
|
148
|
+
skeletonConfig: ne({
|
|
149
149
|
defaultConfig: F.value,
|
|
150
|
-
userConfig:
|
|
150
|
+
userConfig: Lt.value
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
|
-
|
|
154
|
-
At.value = !0,
|
|
153
|
+
Re(() => {
|
|
154
|
+
At.value = !0, Vt();
|
|
155
155
|
});
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
if (
|
|
156
|
+
let Bt = l(() => F.value.debug);
|
|
157
|
+
function Vt() {
|
|
158
|
+
if (o(E.dataset) ? oe({
|
|
159
159
|
componentName: "VueUiGalaxy",
|
|
160
160
|
type: "dataset",
|
|
161
|
-
debug:
|
|
162
|
-
}) :
|
|
163
|
-
|
|
161
|
+
debug: Bt.value
|
|
162
|
+
}) : Bt.value && E.dataset.forEach((e, t) => {
|
|
163
|
+
ae({
|
|
164
164
|
datasetObject: e,
|
|
165
165
|
requiredAttributes: ["name", "values"]
|
|
166
166
|
}).forEach((e) => {
|
|
167
|
-
|
|
167
|
+
oe({
|
|
168
168
|
componentName: "VueUiGalaxy",
|
|
169
169
|
type: "datasetSerieAttribute",
|
|
170
170
|
property: e,
|
|
@@ -174,100 +174,100 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
174
174
|
}), F.value.responsive) {
|
|
175
175
|
let e = Ce(() => {
|
|
176
176
|
let { width: e, height: t } = we({
|
|
177
|
-
chart:
|
|
178
|
-
title: F.value.style.chart.title.text ?
|
|
179
|
-
legend: F.value.style.chart.legend.show ?
|
|
180
|
-
noTitle:
|
|
181
|
-
source:
|
|
177
|
+
chart: O.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
182
|
});
|
|
183
183
|
requestAnimationFrame(() => {
|
|
184
|
-
|
|
184
|
+
z.value = Math.max(.1, e), B.value = Math.max(.1, t - 12);
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
-
|
|
187
|
+
j.value && (kt.value && j.value.unobserve(kt.value), j.value.disconnect()), j.value = new ResizeObserver(e), kt.value = O.value.parentNode, j.value.observe(kt.value);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
let { userOptionsVisible:
|
|
191
|
-
function
|
|
190
|
+
let { userOptionsVisible: Ht, setUserOptionsVisibility: Ut, keepUserOptionState: Wt } = De({ config: F.value }), { svgRef: L } = Oe({ config: F.value.style.chart.title });
|
|
191
|
+
function Gt() {
|
|
192
192
|
let e = ge({
|
|
193
|
-
userConfig:
|
|
194
|
-
defaultConfig:
|
|
193
|
+
userConfig: E.config,
|
|
194
|
+
defaultConfig: _t
|
|
195
195
|
}), t = e.theme;
|
|
196
196
|
if (!t) return e;
|
|
197
|
-
if (!
|
|
197
|
+
if (!vt.value(e)) return yt(e), e;
|
|
198
198
|
let n = ge({
|
|
199
|
-
userConfig: je[t] ||
|
|
199
|
+
userConfig: je[t] || E.config,
|
|
200
200
|
defaultConfig: e
|
|
201
201
|
}), r = ge({
|
|
202
|
-
userConfig:
|
|
202
|
+
userConfig: E.config,
|
|
203
203
|
defaultConfig: n
|
|
204
204
|
});
|
|
205
205
|
return {
|
|
206
206
|
...r,
|
|
207
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
207
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || i
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
F.value =
|
|
210
|
+
He(() => E.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
212
|
}, { deep: !0 });
|
|
213
|
-
let { isPrinting:
|
|
214
|
-
elementId: `galaxy_${
|
|
213
|
+
let { isPrinting: Kt, isImaging: qt, generatePdf: Jt, generateImage: Yt } = pe({
|
|
214
|
+
elementId: `galaxy_${D.value}`,
|
|
215
215
|
fileName: F.value.style.chart.title.text || "vue-ui-galaxy",
|
|
216
216
|
options: F.value.userOptions.print
|
|
217
|
-
}),
|
|
217
|
+
}), Xt = l(() => F.value.userOptions.show && !F.value.style.chart.title.text), Zt = l(() => le(F.value.customPalette)), R = x({
|
|
218
218
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
219
219
|
showTable: F.value.table.show,
|
|
220
220
|
showTooltip: F.value.style.chart.tooltip.show
|
|
221
|
-
}),
|
|
222
|
-
width:
|
|
223
|
-
height:
|
|
224
|
-
viewBox: `${
|
|
225
|
-
})),
|
|
226
|
-
function
|
|
227
|
-
|
|
221
|
+
}), z = x(250), B = x(180), Qt = x(0), $t = x(0), V = l(() => ({
|
|
222
|
+
width: z.value,
|
|
223
|
+
height: B.value,
|
|
224
|
+
viewBox: `${Qt.value} ${$t.value} ${z.value} ${B.value}`
|
|
225
|
+
})), en = Ue, H = x([]);
|
|
226
|
+
function tn() {
|
|
227
|
+
en("selectLegend", K.value.map((e) => ({
|
|
228
228
|
name: e.name,
|
|
229
229
|
color: e.color,
|
|
230
230
|
value: e.value
|
|
231
231
|
})));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function nn() {
|
|
234
234
|
H.value.length ? H.value = [] : J.value.forEach((e) => {
|
|
235
235
|
H.value.push(e.id);
|
|
236
|
-
}),
|
|
236
|
+
}), tn();
|
|
237
237
|
}
|
|
238
238
|
function U(e) {
|
|
239
|
-
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id),
|
|
240
|
-
}
|
|
241
|
-
function nn(e) {
|
|
242
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (R.value && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (R.value && console.warn("VueUiGalaxy - There are no series to show."), null);
|
|
239
|
+
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), tn();
|
|
243
240
|
}
|
|
244
241
|
function rn(e) {
|
|
245
|
-
|
|
246
|
-
t !== null && H.value.includes(t.id) && U({ id: t.id });
|
|
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);
|
|
247
243
|
}
|
|
248
244
|
function an(e) {
|
|
249
|
-
let t =
|
|
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
250
|
t !== null && (H.value.includes(t.id) || U({ id: t.id }));
|
|
251
251
|
}
|
|
252
|
-
let W = l(() =>
|
|
252
|
+
let W = l(() => zt.value.map((e, t) => ({
|
|
253
253
|
name: e.name,
|
|
254
|
-
color: ee(e.color) ||
|
|
255
|
-
value: e.values ?
|
|
256
|
-
absoluteValues:
|
|
257
|
-
id:
|
|
254
|
+
color: ee(e.color) || Zt.value[t] || i[t] || i[t % i.length],
|
|
255
|
+
value: e.values ? n(e.values).reduce((e, t) => e + t, 0) : 0,
|
|
256
|
+
absoluteValues: n(e.values),
|
|
257
|
+
id: se()
|
|
258
258
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
259
259
|
...e,
|
|
260
260
|
absoluteIndex: t
|
|
261
261
|
})));
|
|
262
|
-
function
|
|
262
|
+
function sn() {
|
|
263
263
|
return W.value.map((e) => ({
|
|
264
264
|
name: e.name,
|
|
265
265
|
color: e.color,
|
|
266
266
|
value: e.value
|
|
267
267
|
}));
|
|
268
268
|
}
|
|
269
|
-
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)),
|
|
270
|
-
maxPoints:
|
|
269
|
+
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), cn = x(190), ln = l(() => W.value.filter((e) => !H.value.includes(e.id))), un = l(() => (F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth) / 2 + (F.value.style.chart.layout.padding ?? 12)), dn = l(() => s({
|
|
270
|
+
maxPoints: cn.value,
|
|
271
271
|
a: F.value.style.chart.layout.arcs.a ?? 6,
|
|
272
272
|
b: F.value.style.chart.layout.arcs.b ?? 6,
|
|
273
273
|
angleStep: F.value.style.chart.layout.arcs.angleStep ?? .07,
|
|
@@ -275,60 +275,60 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
275
275
|
startY: V.value.height / 2 + F.value.style.chart.layout.arcs.offsetY,
|
|
276
276
|
boxWidth: V.value.width,
|
|
277
277
|
boxHeight: V.value.height,
|
|
278
|
-
padding:
|
|
278
|
+
padding: un.value
|
|
279
279
|
})), K = l(() => {
|
|
280
280
|
let e = [];
|
|
281
|
-
for (let t = 0; t <
|
|
282
|
-
let n =
|
|
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
283
|
e.push({
|
|
284
284
|
points: r,
|
|
285
285
|
...n,
|
|
286
286
|
seriesIndex: t,
|
|
287
287
|
proportion: n.value / G.value,
|
|
288
|
-
path:
|
|
288
|
+
path: dn.value(r)
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
|
|
292
292
|
});
|
|
293
|
-
function
|
|
294
|
-
let t = Math.min(
|
|
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
295
|
return {
|
|
296
296
|
border: r / 180 * t,
|
|
297
297
|
path: i / 180 * t,
|
|
298
298
|
blur: a / 180 * t
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
let q =
|
|
302
|
-
function
|
|
303
|
-
q.value = e,
|
|
301
|
+
let q = x(!1);
|
|
302
|
+
function pn(e) {
|
|
303
|
+
q.value = e, xt.value += 1;
|
|
304
304
|
}
|
|
305
|
-
let
|
|
306
|
-
function
|
|
307
|
-
|
|
305
|
+
let mn = x(null);
|
|
306
|
+
function hn() {
|
|
307
|
+
k.value = !1, A.value = null, N.value = null, Mt.value = null;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
if (!
|
|
311
|
-
let t =
|
|
309
|
+
function gn(e) {
|
|
310
|
+
if (!L.value || !e) return;
|
|
311
|
+
let t = L.value.querySelector(`[data-a11y-serie-id="${e}"]`);
|
|
312
312
|
if (!t) return;
|
|
313
313
|
let n = t.getBoundingClientRect();
|
|
314
|
-
|
|
314
|
+
Nt.value = {
|
|
315
315
|
x: n.left + n.width / 2,
|
|
316
316
|
y: n.top + n.height / 2
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function _n(e) {
|
|
320
320
|
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
321
321
|
datapoint: e,
|
|
322
322
|
seriesIndex: e.absoluteIndex
|
|
323
|
-
}), (
|
|
323
|
+
}), (Mt.value !== e.id || Pt.value !== "keyboard") && (k.value = !1, A.value = null);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
325
|
+
function vn(e) {
|
|
326
|
+
en("selectDatapoint", e), F.value.events.datapointClick && F.value.events.datapointClick({
|
|
327
327
|
datapoint: e,
|
|
328
328
|
seriesIndex: e.absoluteIndex
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function yn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
332
332
|
let i = F.value.style.chart.layout.labels.dataLabels;
|
|
333
333
|
return ke({
|
|
334
334
|
config: i,
|
|
@@ -338,32 +338,32 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
338
338
|
showPercentage: r
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function bn({ datapoint: e, _relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer", flatIndex: a = null }) {
|
|
342
342
|
if (F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
343
343
|
datapoint: e,
|
|
344
344
|
seriesIndex: e.absoluteIndex
|
|
345
|
-
}), !
|
|
346
|
-
|
|
345
|
+
}), !R.value.showTooltip) return;
|
|
346
|
+
Pt.value = i, N.value = a, Mt.value = e.id, mn.value = {
|
|
347
347
|
datapoint: e,
|
|
348
348
|
seriesIndex: n,
|
|
349
349
|
series: W.value,
|
|
350
350
|
config: F.value
|
|
351
|
-
},
|
|
351
|
+
}, k.value = r, A.value = e.id;
|
|
352
352
|
let o = "", s = F.value.style.chart.tooltip.customFormat;
|
|
353
|
-
|
|
353
|
+
te(s) && ie(() => s({
|
|
354
354
|
seriesIndex: n,
|
|
355
355
|
datapoint: e,
|
|
356
356
|
series: W.value,
|
|
357
357
|
config: F.value
|
|
358
|
-
})) ?
|
|
358
|
+
})) ? bt.value = s({
|
|
359
359
|
seriesIndex: n,
|
|
360
360
|
datapoint: e,
|
|
361
361
|
series: W.value,
|
|
362
362
|
config: F.value
|
|
363
|
-
}) : (o += `<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>`, 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>${
|
|
363
|
+
}) : (o += `<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>`, 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>${yn({
|
|
364
364
|
showVal: F.value.style.chart.tooltip.showValue,
|
|
365
365
|
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
366
|
-
val:
|
|
366
|
+
val: re(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, c({
|
|
367
367
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
368
368
|
v: e.value,
|
|
369
369
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -377,12 +377,12 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
377
377
|
s: "%",
|
|
378
378
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
379
379
|
})
|
|
380
|
-
})}</b></div>`,
|
|
381
|
-
|
|
380
|
+
})}</b></div>`, bt.value = `<div>${o}</div>`), i === "keyboard" && Le(() => {
|
|
381
|
+
gn(e.id);
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
let J = l(() => W.value.map((e, t) => {
|
|
385
|
-
let n =
|
|
385
|
+
let n = re(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, c({
|
|
386
386
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
387
387
|
v: e.value,
|
|
388
388
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -394,7 +394,7 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
394
394
|
v: e.value / G.value * 100,
|
|
395
395
|
s: "%",
|
|
396
396
|
r: F.value.style.chart.legend.roundingPercentage
|
|
397
|
-
}), i =
|
|
397
|
+
}), i = yn({
|
|
398
398
|
showVal: F.value.style.chart.legend.showValue,
|
|
399
399
|
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
400
400
|
val: n,
|
|
@@ -402,14 +402,14 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
402
402
|
});
|
|
403
403
|
return {
|
|
404
404
|
...e,
|
|
405
|
-
proportion: (e.value || 0) /
|
|
405
|
+
proportion: (e.value || 0) / zt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
406
406
|
opacity: H.value.includes(e.id) ? .5 : 1,
|
|
407
407
|
shape: e.shape || "circle",
|
|
408
408
|
segregate: () => U(e),
|
|
409
409
|
isSegregated: H.value.includes(e.id),
|
|
410
410
|
display: `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
411
411
|
};
|
|
412
|
-
})),
|
|
412
|
+
})), xn = l(() => ({
|
|
413
413
|
cy: "galaxy-div-legend",
|
|
414
414
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
415
415
|
color: F.value.style.chart.legend.color,
|
|
@@ -423,9 +423,9 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
423
423
|
})),
|
|
424
424
|
body: K.value.map((e) => e.value)
|
|
425
425
|
}));
|
|
426
|
-
function
|
|
427
|
-
|
|
428
|
-
let
|
|
426
|
+
function Sn(e = null) {
|
|
427
|
+
Le(() => {
|
|
428
|
+
let n = Y.value.head.map((e, t) => [
|
|
429
429
|
[e.name],
|
|
430
430
|
[Y.value.body[t]],
|
|
431
431
|
[isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
|
|
@@ -437,7 +437,7 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
437
437
|
["val"],
|
|
438
438
|
["%"]
|
|
439
439
|
]
|
|
440
|
-
].concat(
|
|
440
|
+
].concat(n), a = r(i);
|
|
441
441
|
e ? e(a) : t({
|
|
442
442
|
csvContent: a,
|
|
443
443
|
title: F.value.style.chart.title.text || "vue-ui-galaxy"
|
|
@@ -446,7 +446,7 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
446
446
|
}
|
|
447
447
|
let X = l(() => {
|
|
448
448
|
let e = [
|
|
449
|
-
"
|
|
449
|
+
"__SUM__",
|
|
450
450
|
c({
|
|
451
451
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
452
452
|
v: G.value,
|
|
@@ -497,20 +497,20 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
497
497
|
config: n
|
|
498
498
|
};
|
|
499
499
|
});
|
|
500
|
-
function Sn() {
|
|
501
|
-
B.value.showTable = !B.value.showTable;
|
|
502
|
-
}
|
|
503
500
|
function Cn() {
|
|
504
|
-
|
|
501
|
+
R.value.showTable = !R.value.showTable;
|
|
505
502
|
}
|
|
506
|
-
let Z = b(!1);
|
|
507
503
|
function wn() {
|
|
504
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
505
|
+
}
|
|
506
|
+
let Z = x(!1);
|
|
507
|
+
function Tn() {
|
|
508
508
|
Z.value = !Z.value;
|
|
509
509
|
}
|
|
510
|
-
async function
|
|
511
|
-
if (!
|
|
512
|
-
let { width: t, height: n } =
|
|
513
|
-
domElement:
|
|
510
|
+
async function En({ scale: e = 2 } = {}) {
|
|
511
|
+
if (!O.value) return;
|
|
512
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
513
|
+
domElement: O.value,
|
|
514
514
|
base64: !0,
|
|
515
515
|
img: !0,
|
|
516
516
|
scale: e
|
|
@@ -525,9 +525,9 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
let Q = l(() => {
|
|
528
|
-
let e = F.value.table.useDialog && !F.value.table.show, t =
|
|
528
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = R.value.showTable;
|
|
529
529
|
return {
|
|
530
|
-
component: e ?
|
|
530
|
+
component: e ? gt : dt,
|
|
531
531
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
532
532
|
props: e ? {
|
|
533
533
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -535,7 +535,7 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
535
535
|
headerColor: F.value.table.th.color,
|
|
536
536
|
headerBg: F.value.table.th.backgroundColor,
|
|
537
537
|
isFullscreen: q.value,
|
|
538
|
-
fullscreenParent:
|
|
538
|
+
fullscreenParent: O.value,
|
|
539
539
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
540
540
|
isCursorPointer: I.value
|
|
541
541
|
} : {
|
|
@@ -555,26 +555,26 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
557
|
});
|
|
558
|
-
|
|
559
|
-
F.value.table.show || (e && F.value.table.useDialog &&
|
|
558
|
+
He(() => 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
560
|
});
|
|
561
|
-
function
|
|
562
|
-
|
|
561
|
+
function Dn() {
|
|
562
|
+
R.value.showTable = !1, jt.value && jt.value.setTableIconState(!1);
|
|
563
563
|
}
|
|
564
|
-
let
|
|
564
|
+
let On = l(() => J.value.map((e) => ({
|
|
565
565
|
...e,
|
|
566
566
|
name: e.display
|
|
567
|
-
}))),
|
|
568
|
-
svg:
|
|
569
|
-
title:
|
|
570
|
-
legend:
|
|
571
|
-
legendItems:
|
|
572
|
-
backgroundColor:
|
|
567
|
+
}))), kn = l(() => F.value.style.chart.backgroundColor), An = l(() => F.value.style.chart.legend), jn = l(() => F.value.style.chart.title), { isCallbackImaging: Mn, isCallbackSvg: Nn, generateSvg: Pn, onGenerateImage: Fn } = ve({
|
|
568
|
+
svg: L,
|
|
569
|
+
title: jn,
|
|
570
|
+
legend: An,
|
|
571
|
+
legendItems: On,
|
|
572
|
+
backgroundColor: kn,
|
|
573
573
|
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
574
|
-
generateImage:
|
|
574
|
+
generateImage: Yt
|
|
575
575
|
});
|
|
576
|
-
async function
|
|
577
|
-
if (
|
|
576
|
+
async function In() {
|
|
577
|
+
if (en("copyAlt", {
|
|
578
578
|
config: F.value,
|
|
579
579
|
dataset: W.value
|
|
580
580
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -586,31 +586,31 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
586
586
|
dataset: W.value
|
|
587
587
|
}));
|
|
588
588
|
}
|
|
589
|
-
function In() {
|
|
590
|
-
M.value = null, N.value = null, P.value = !0;
|
|
591
|
-
}
|
|
592
589
|
function Ln() {
|
|
593
|
-
|
|
590
|
+
N.value = null, Mt.value = null, P.value = !0;
|
|
594
591
|
}
|
|
595
|
-
function Rn(
|
|
596
|
-
|
|
592
|
+
function Rn() {
|
|
593
|
+
hn(), P.value = !1;
|
|
594
|
+
}
|
|
595
|
+
function zn(e) {
|
|
596
|
+
if (!L.value || Z.value || document.activeElement !== L.value || !$.value.length) return;
|
|
597
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
598
|
if (!t && !n && !r && !i) return;
|
|
599
599
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
600
|
-
|
|
600
|
+
hn();
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
603
|
if (r) {
|
|
604
|
-
if (
|
|
605
|
-
let e = $.value[
|
|
604
|
+
if (N.value === null) return;
|
|
605
|
+
let e = $.value[N.value];
|
|
606
606
|
if (!e) return;
|
|
607
|
-
|
|
607
|
+
vn(e.datapoint);
|
|
608
608
|
return;
|
|
609
609
|
}
|
|
610
|
-
let a =
|
|
610
|
+
let a = N.value;
|
|
611
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
612
|
let o = $.value[a];
|
|
613
|
-
o &&
|
|
613
|
+
o && bn({
|
|
614
614
|
datapoint: o.datapoint,
|
|
615
615
|
seriesIndex: o.datapoint.seriesIndex,
|
|
616
616
|
show: !0,
|
|
@@ -618,7 +618,7 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
618
618
|
flatIndex: a
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
let
|
|
621
|
+
let Bn = l(() => ({
|
|
622
622
|
headers: X.value?.colNames ?? [],
|
|
623
623
|
rows: X.value?.body ?? []
|
|
624
624
|
})), $ = l(() => K.value.map((e, t) => ({
|
|
@@ -626,39 +626,39 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
626
626
|
index: t
|
|
627
627
|
})));
|
|
628
628
|
return Se({
|
|
629
|
-
getData:
|
|
630
|
-
getImage:
|
|
631
|
-
generatePdf:
|
|
632
|
-
generateCsv:
|
|
633
|
-
generateImage:
|
|
634
|
-
generateSvg:
|
|
635
|
-
hideSeries:
|
|
636
|
-
showSeries:
|
|
637
|
-
toggleTable:
|
|
638
|
-
toggleTooltip:
|
|
639
|
-
toggleAnnotator:
|
|
640
|
-
toggleFullscreen:
|
|
641
|
-
copyAlt:
|
|
642
|
-
}), (e, t) => (
|
|
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) => (b(), f("div", {
|
|
643
643
|
ref_key: "galaxyChart",
|
|
644
|
-
ref:
|
|
645
|
-
class:
|
|
646
|
-
style:
|
|
647
|
-
id: `galaxy_${
|
|
648
|
-
onMouseenter: t[2] ||= () =>
|
|
644
|
+
ref: O,
|
|
645
|
+
class: _(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"} ${w(Rt) ? "loading" : ""}`),
|
|
646
|
+
style: y(`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_${D.value}`,
|
|
648
|
+
onMouseenter: t[2] ||= () => w(Ut)(!0),
|
|
649
649
|
onMouseleave: t[3] ||= () => {
|
|
650
|
-
|
|
650
|
+
w(Ut)(!1), P.value || hn();
|
|
651
651
|
}
|
|
652
652
|
}, [
|
|
653
653
|
p("div", {
|
|
654
|
-
id: `chart-instructions-${
|
|
654
|
+
id: `chart-instructions-${D.value}`,
|
|
655
655
|
class: "sr-only"
|
|
656
|
-
}, [p("p", null,
|
|
657
|
-
|
|
656
|
+
}, [p("p", null, C(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ge),
|
|
657
|
+
Bn.value?.rows?.length ? (b(), u(Ee, {
|
|
658
658
|
key: 0,
|
|
659
|
-
uid:
|
|
660
|
-
head:
|
|
661
|
-
body:
|
|
659
|
+
uid: D.value,
|
|
660
|
+
head: Bn.value.headers,
|
|
661
|
+
body: Bn.value.rows,
|
|
662
662
|
notice: F.value.a11y.translations.tableAvailable,
|
|
663
663
|
caption: F.value.a11y.translations.tableCaption
|
|
664
664
|
}, null, 8, [
|
|
@@ -668,21 +668,21 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
668
668
|
"notice",
|
|
669
669
|
"caption"
|
|
670
670
|
])) : d("", !0),
|
|
671
|
-
F.value.userOptions.buttons.annotator ? (
|
|
671
|
+
F.value.userOptions.buttons.annotator ? (b(), u(w(pt), {
|
|
672
672
|
key: 1,
|
|
673
|
-
svgRef:
|
|
673
|
+
svgRef: w(L),
|
|
674
674
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
675
675
|
color: F.value.style.chart.color,
|
|
676
676
|
active: Z.value,
|
|
677
677
|
isCursorPointer: I.value,
|
|
678
|
-
onClose:
|
|
678
|
+
onClose: Tn
|
|
679
679
|
}, {
|
|
680
|
-
"annotator-action-close":
|
|
681
|
-
"annotator-action-color":
|
|
682
|
-
"annotator-action-draw":
|
|
683
|
-
"annotator-action-undo":
|
|
684
|
-
"annotator-action-redo":
|
|
685
|
-
"annotator-action-delete":
|
|
680
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
681
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
682
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
683
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
684
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
685
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
686
686
|
_: 3
|
|
687
687
|
}, 8, [
|
|
688
688
|
"svgRef",
|
|
@@ -691,20 +691,20 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
691
691
|
"active",
|
|
692
692
|
"isCursorPointer"
|
|
693
693
|
])) : d("", !0),
|
|
694
|
-
|
|
694
|
+
Xt.value ? (b(), f("div", {
|
|
695
695
|
key: 2,
|
|
696
696
|
ref_key: "noTitle",
|
|
697
|
-
ref:
|
|
697
|
+
ref: Ot,
|
|
698
698
|
class: "vue-data-ui-no-title-space",
|
|
699
699
|
style: "height:36px; width: 100%;background:transparent"
|
|
700
700
|
}, null, 512)) : d("", !0),
|
|
701
|
-
F.value.style.chart.title.text ? (
|
|
701
|
+
F.value.style.chart.title.text ? (b(), f("div", {
|
|
702
702
|
key: 3,
|
|
703
703
|
ref_key: "chartTitle",
|
|
704
|
-
ref:
|
|
704
|
+
ref: Tt,
|
|
705
705
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
706
|
-
}, [(
|
|
707
|
-
key: `title_${
|
|
706
|
+
}, [(b(), u(xe, {
|
|
707
|
+
key: `title_${St.value}`,
|
|
708
708
|
config: {
|
|
709
709
|
title: {
|
|
710
710
|
cy: "galaxy-div-title",
|
|
@@ -716,16 +716,16 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
719
|
-
p("div", { id: `legend-top-${
|
|
720
|
-
F.value.userOptions.show &&
|
|
719
|
+
p("div", { id: `legend-top-${D.value}` }, null, 8, Ke),
|
|
720
|
+
F.value.userOptions.show && Ft.value && (w(Wt) || w(Ht)) ? (b(), u(w(mt), {
|
|
721
721
|
ref_key: "userOptionsRef",
|
|
722
722
|
ref: jt,
|
|
723
|
-
key: `user_option_${
|
|
723
|
+
key: `user_option_${xt.value}`,
|
|
724
724
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
725
725
|
color: F.value.style.chart.color,
|
|
726
|
-
isPrinting:
|
|
727
|
-
isImaging:
|
|
728
|
-
uid:
|
|
726
|
+
isPrinting: w(Kt),
|
|
727
|
+
isImaging: w(qt),
|
|
728
|
+
uid: D.value,
|
|
729
729
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
730
730
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
731
731
|
hasXls: F.value.userOptions.buttons.csv,
|
|
@@ -734,10 +734,10 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
734
734
|
hasTable: F.value.userOptions.buttons.table,
|
|
735
735
|
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
736
736
|
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
737
|
-
isTooltip:
|
|
737
|
+
isTooltip: R.value.showTooltip,
|
|
738
738
|
isFullscreen: q.value,
|
|
739
739
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
740
|
-
chartElement:
|
|
740
|
+
chartElement: O.value,
|
|
741
741
|
position: F.value.userOptions.position,
|
|
742
742
|
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
743
743
|
isAnnotation: Z.value,
|
|
@@ -745,20 +745,20 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
745
745
|
printScale: F.value.userOptions.print.scale,
|
|
746
746
|
tableDialog: F.value.table.useDialog,
|
|
747
747
|
isCursorPointer: I.value,
|
|
748
|
-
onToggleFullscreen:
|
|
749
|
-
onGeneratePdf:
|
|
750
|
-
onGenerateCsv:
|
|
751
|
-
onGenerateImage:
|
|
752
|
-
onGenerateSvg:
|
|
753
|
-
onToggleTable:
|
|
754
|
-
onToggleTooltip:
|
|
755
|
-
onToggleAnnotator:
|
|
756
|
-
onCopyAlt:
|
|
757
|
-
style:
|
|
748
|
+
onToggleFullscreen: pn,
|
|
749
|
+
onGeneratePdf: w(Jt),
|
|
750
|
+
onGenerateCsv: Sn,
|
|
751
|
+
onGenerateImage: w(Fn),
|
|
752
|
+
onGenerateSvg: w(Pn),
|
|
753
|
+
onToggleTable: Cn,
|
|
754
|
+
onToggleTooltip: wn,
|
|
755
|
+
onToggleAnnotator: Tn,
|
|
756
|
+
onCopyAlt: In,
|
|
757
|
+
style: y({ visibility: w(Wt) ? w(Ht) ? "visible" : "hidden" : "visible" })
|
|
758
758
|
}, Pe({ _: 2 }, [
|
|
759
759
|
e.$slots.menuIcon ? {
|
|
760
760
|
name: "menuIcon",
|
|
761
|
-
fn:
|
|
761
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
|
|
762
762
|
isOpen: t,
|
|
763
763
|
color: n
|
|
764
764
|
})), void 0, !0)]),
|
|
@@ -766,37 +766,37 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
766
766
|
} : void 0,
|
|
767
767
|
e.$slots.optionTooltip ? {
|
|
768
768
|
name: "optionTooltip",
|
|
769
|
-
fn:
|
|
769
|
+
fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
770
770
|
key: "1"
|
|
771
771
|
} : void 0,
|
|
772
772
|
e.$slots.optionPdf ? {
|
|
773
773
|
name: "optionPdf",
|
|
774
|
-
fn:
|
|
774
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
775
775
|
key: "2"
|
|
776
776
|
} : void 0,
|
|
777
777
|
e.$slots.optionCsv ? {
|
|
778
778
|
name: "optionCsv",
|
|
779
|
-
fn:
|
|
779
|
+
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
780
780
|
key: "3"
|
|
781
781
|
} : void 0,
|
|
782
782
|
e.$slots.optionImg ? {
|
|
783
783
|
name: "optionImg",
|
|
784
|
-
fn:
|
|
784
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
785
785
|
key: "4"
|
|
786
786
|
} : void 0,
|
|
787
787
|
e.$slots.optionSvg ? {
|
|
788
788
|
name: "optionSvg",
|
|
789
|
-
fn:
|
|
789
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
790
790
|
key: "5"
|
|
791
791
|
} : void 0,
|
|
792
792
|
e.$slots.optionTable ? {
|
|
793
793
|
name: "optionTable",
|
|
794
|
-
fn:
|
|
794
|
+
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
795
795
|
key: "6"
|
|
796
796
|
} : void 0,
|
|
797
797
|
e.$slots.optionFullscreen ? {
|
|
798
798
|
name: "optionFullscreen",
|
|
799
|
-
fn:
|
|
799
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
|
|
800
800
|
toggleFullscreen: t,
|
|
801
801
|
isFullscreen: n
|
|
802
802
|
})), void 0, !0)]),
|
|
@@ -804,7 +804,7 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
804
804
|
} : void 0,
|
|
805
805
|
e.$slots.optionAnnotator ? {
|
|
806
806
|
name: "optionAnnotator",
|
|
807
|
-
fn:
|
|
807
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
|
|
808
808
|
toggleAnnotator: t,
|
|
809
809
|
isAnnotator: n
|
|
810
810
|
})), void 0, !0)]),
|
|
@@ -812,47 +812,47 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
812
812
|
} : void 0,
|
|
813
813
|
e.$slots.optionAltCopy ? {
|
|
814
814
|
name: "optionAltCopy",
|
|
815
|
-
fn:
|
|
815
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
816
816
|
key: "9"
|
|
817
817
|
} : void 0,
|
|
818
818
|
e.$slots["custom-menu-before"] ? {
|
|
819
819
|
name: "custom-menu-before",
|
|
820
|
-
fn:
|
|
820
|
+
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
821
821
|
key: "10"
|
|
822
822
|
} : void 0,
|
|
823
823
|
e.$slots["custom-menu-after"] ? {
|
|
824
824
|
name: "custom-menu-after",
|
|
825
|
-
fn:
|
|
825
|
+
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
826
826
|
key: "11"
|
|
827
827
|
} : void 0
|
|
828
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.onGenerateImage.onGenerateSvg.style".split("."))) : d("", !0),
|
|
829
|
-
p("div",
|
|
829
|
+
p("div", qe, [(b(), f("svg", {
|
|
830
830
|
ref_key: "svgRef",
|
|
831
|
-
ref:
|
|
832
|
-
xmlns:
|
|
833
|
-
"aria-describedby": `chart-instructions-${
|
|
834
|
-
class:
|
|
831
|
+
ref: L,
|
|
832
|
+
xmlns: w(ce),
|
|
833
|
+
"aria-describedby": `chart-instructions-${D.value}`,
|
|
834
|
+
class: _({
|
|
835
835
|
"vue-data-ui-fullscreen--on": q.value,
|
|
836
836
|
"vue-data-ui-fulscreen--off": !q.value
|
|
837
837
|
}),
|
|
838
838
|
viewBox: V.value.viewBox,
|
|
839
|
-
style:
|
|
839
|
+
style: y(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color}`),
|
|
840
840
|
tabindex: "0",
|
|
841
|
-
onFocus:
|
|
842
|
-
onBlur:
|
|
843
|
-
onKeydown:
|
|
841
|
+
onFocus: Ln,
|
|
842
|
+
onBlur: Rn,
|
|
843
|
+
onKeydown: zn
|
|
844
844
|
}, [
|
|
845
|
-
|
|
846
|
-
e.$slots["chart-background"] ? (
|
|
845
|
+
m(w(ht)),
|
|
846
|
+
e.$slots["chart-background"] ? (b(), f("foreignObject", {
|
|
847
847
|
key: 0,
|
|
848
848
|
x: 0,
|
|
849
849
|
y: 0,
|
|
850
850
|
width: V.value.width,
|
|
851
851
|
height: V.value.height,
|
|
852
852
|
style: { pointerEvents: "none" }
|
|
853
|
-
}, [
|
|
853
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : d("", !0),
|
|
854
854
|
p("defs", null, [p("filter", {
|
|
855
|
-
id: `blur_${
|
|
855
|
+
id: `blur_${D.value}`,
|
|
856
856
|
x: "-50%",
|
|
857
857
|
y: "-50%",
|
|
858
858
|
width: "200%",
|
|
@@ -860,46 +860,46 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
860
860
|
}, [p("feGaussianBlur", {
|
|
861
861
|
in: "SourceGraphic",
|
|
862
862
|
stdDeviation: 100 / F.value.style.chart.layout.arcs.gradient.intensity
|
|
863
|
-
}, null, 8,
|
|
864
|
-
(
|
|
865
|
-
e.value ? (
|
|
863
|
+
}, null, 8, Ze)], 8, Xe)]),
|
|
864
|
+
(b(!0), f(Me, null, ze(K.value, (e) => (b(), f("g", { key: `dp_${e.id}` }, [
|
|
865
|
+
e.value ? (b(), f("path", {
|
|
866
866
|
key: 0,
|
|
867
867
|
d: e.path,
|
|
868
868
|
fill: "none",
|
|
869
869
|
stroke: F.value.style.chart.backgroundColor,
|
|
870
|
-
"stroke-width":
|
|
871
|
-
class:
|
|
870
|
+
"stroke-width": fn(e).border,
|
|
871
|
+
class: _({ "vue-data-ui-transition": w(It) }),
|
|
872
872
|
"stroke-linecap": "round"
|
|
873
|
-
}, null, 10,
|
|
874
|
-
e.value ? (
|
|
873
|
+
}, null, 10, Qe)) : d("", !0),
|
|
874
|
+
e.value ? (b(), f("path", {
|
|
875
875
|
key: 1,
|
|
876
876
|
d: e.path,
|
|
877
877
|
fill: "none",
|
|
878
878
|
stroke: e.color,
|
|
879
|
-
"stroke-width":
|
|
879
|
+
"stroke-width": fn(e).path,
|
|
880
880
|
"stroke-linecap": "round",
|
|
881
|
-
class:
|
|
882
|
-
"vue-data-ui-transition":
|
|
883
|
-
"vue-ui-galaxy-blur":
|
|
881
|
+
class: _({
|
|
882
|
+
"vue-data-ui-transition": w(It),
|
|
883
|
+
"vue-ui-galaxy-blur": A.value && A.value !== e.id && F.value.useBlurOnHover
|
|
884
884
|
})
|
|
885
|
-
}, null, 10,
|
|
886
|
-
e.value && F.value.style.chart.layout.arcs.gradient.show ? (
|
|
885
|
+
}, null, 10, $e)) : d("", !0),
|
|
886
|
+
e.value && F.value.style.chart.layout.arcs.gradient.show ? (b(), f("g", {
|
|
887
887
|
key: 2,
|
|
888
|
-
filter: `url(#blur_${
|
|
888
|
+
filter: `url(#blur_${D.value})`
|
|
889
889
|
}, [p("path", {
|
|
890
890
|
d: e.path,
|
|
891
891
|
fill: "none",
|
|
892
892
|
stroke: F.value.style.chart.layout.arcs.gradient.color,
|
|
893
|
-
"stroke-width":
|
|
893
|
+
"stroke-width": fn(e).blur,
|
|
894
894
|
"stroke-linecap": "round",
|
|
895
|
-
class:
|
|
895
|
+
class: _({
|
|
896
896
|
"vue-ui-galaxy-gradient": !0,
|
|
897
|
-
"vue-data-ui-transition":
|
|
898
|
-
"vue-ui-galaxy-blur":
|
|
897
|
+
"vue-data-ui-transition": w(It),
|
|
898
|
+
"vue-ui-galaxy-blur": A.value && A.value !== e.id && F.value.useBlurOnHover
|
|
899
899
|
})
|
|
900
|
-
}, null, 10,
|
|
900
|
+
}, null, 10, tt)], 8, et)) : d("", !0)
|
|
901
901
|
]))), 128)),
|
|
902
|
-
(
|
|
902
|
+
(b(!0), f(Me, null, ze(K.value, (e, t) => (b(), f("g", null, [e.value ? (b(), f("path", {
|
|
903
903
|
key: 0,
|
|
904
904
|
"data-a11y-serie-id": e.id,
|
|
905
905
|
d: e.path,
|
|
@@ -907,13 +907,13 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
907
907
|
stroke: "transparent",
|
|
908
908
|
"stroke-width": F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth,
|
|
909
909
|
"stroke-linecap": "round",
|
|
910
|
-
"aria-label": `${e.name}: ${
|
|
910
|
+
"aria-label": `${e.name}: ${w(c)({
|
|
911
911
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
912
912
|
v: e.value,
|
|
913
913
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
914
914
|
r: F.value.style.chart.tooltip.roundingValue
|
|
915
915
|
})}`,
|
|
916
|
-
onMouseenter: (n) =>
|
|
916
|
+
onMouseenter: (n) => bn({
|
|
917
917
|
datapoint: e,
|
|
918
918
|
relativeIndex: t,
|
|
919
919
|
seriesIndex: e.seriesIndex,
|
|
@@ -921,44 +921,44 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
921
921
|
triggerMode: "pointer",
|
|
922
922
|
flatIndex: t
|
|
923
923
|
}),
|
|
924
|
-
onMouseleave: (t) =>
|
|
925
|
-
onClick: (t) =>
|
|
926
|
-
}, null, 40,
|
|
927
|
-
|
|
924
|
+
onMouseleave: (t) => _n(e),
|
|
925
|
+
onClick: (t) => vn(e)
|
|
926
|
+
}, null, 40, nt)) : d("", !0)]))), 256)),
|
|
927
|
+
S(e.$slots, "svg", { svg: {
|
|
928
928
|
...V.value,
|
|
929
|
-
isPrintingImg:
|
|
930
|
-
isPrintingSvg:
|
|
929
|
+
isPrintingImg: w(Kt) || w(qt) || w(Mn),
|
|
930
|
+
isPrintingSvg: w(Nn)
|
|
931
931
|
} }, void 0, !0)
|
|
932
|
-
], 46,
|
|
932
|
+
], 46, Je)), e.$slots.hint ? (b(), f("div", rt, [S(e.$slots, "hint", v(g({
|
|
933
933
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
934
934
|
isVisible: P.value
|
|
935
935
|
})), void 0, !0)])) : d("", !0)]),
|
|
936
|
-
e.$slots.watermark ? (
|
|
937
|
-
p("div", { id: `legend-bottom-${
|
|
938
|
-
At.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (
|
|
936
|
+
e.$slots.watermark ? (b(), f("div", it, [S(e.$slots, "watermark", v(g({ isPrinting: w(Kt) || w(qt) || w(Mn) || w(Nn) })), void 0, !0)])) : d("", !0),
|
|
937
|
+
p("div", { id: `legend-bottom-${D.value}` }, null, 8, at),
|
|
938
|
+
At.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (b(), u(Ne, {
|
|
939
939
|
key: 6,
|
|
940
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
940
|
+
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
941
941
|
}, [p("div", {
|
|
942
942
|
ref_key: "chartLegend",
|
|
943
|
-
ref:
|
|
944
|
-
}, [
|
|
945
|
-
key: `legend_${
|
|
943
|
+
ref: Et
|
|
944
|
+
}, [S(e.$slots, "legend", { legend: J.value }, () => [F.value.style.chart.legend.show ? (b(), u(Ae, {
|
|
945
|
+
key: `legend_${wt.value}`,
|
|
946
946
|
legendSet: J.value,
|
|
947
|
-
config:
|
|
947
|
+
config: xn.value,
|
|
948
948
|
onClickMarker: t[0] ||= ({ legend: e }) => U(e)
|
|
949
949
|
}, {
|
|
950
|
-
item:
|
|
950
|
+
item: T(({ legend: e, index: t }) => [w(Rt) ? d("", !0) : (b(), f("div", {
|
|
951
951
|
key: 0,
|
|
952
952
|
onClick: (t) => U(e),
|
|
953
|
-
style:
|
|
954
|
-
},
|
|
955
|
-
legendToggle:
|
|
953
|
+
style: y(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
|
|
954
|
+
}, C(e.display), 13, ot))]),
|
|
955
|
+
legendToggle: T(() => [J.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !w(Rt) ? (b(), u(Te, {
|
|
956
956
|
key: 0,
|
|
957
957
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
958
958
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
959
959
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
960
960
|
checked: H.value.length > 0,
|
|
961
|
-
onToggle:
|
|
961
|
+
onToggle: nn
|
|
962
962
|
}, null, 8, [
|
|
963
963
|
"backgroundColor",
|
|
964
964
|
"color",
|
|
@@ -967,15 +967,15 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
967
967
|
])) : d("", !0)]),
|
|
968
968
|
_: 1
|
|
969
969
|
}, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
970
|
-
e.$slots.source ? (
|
|
970
|
+
e.$slots.source ? (b(), f("div", {
|
|
971
971
|
key: 7,
|
|
972
972
|
ref_key: "source",
|
|
973
|
-
ref:
|
|
973
|
+
ref: Dt,
|
|
974
974
|
dir: "auto"
|
|
975
|
-
}, [
|
|
976
|
-
|
|
975
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
976
|
+
m(w(lt), {
|
|
977
977
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
978
|
-
show:
|
|
978
|
+
show: R.value.showTooltip && k.value,
|
|
979
979
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
980
980
|
color: F.value.style.chart.tooltip.color,
|
|
981
981
|
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
@@ -986,20 +986,20 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
986
986
|
position: F.value.style.chart.tooltip.position,
|
|
987
987
|
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
988
988
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
989
|
-
parent:
|
|
990
|
-
content:
|
|
989
|
+
parent: O.value,
|
|
990
|
+
content: bt.value,
|
|
991
991
|
isFullscreen: q.value,
|
|
992
|
-
isCustom:
|
|
992
|
+
isCustom: w(te)(F.value.style.chart.tooltip.customFormat),
|
|
993
993
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
994
994
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
995
995
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
996
996
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
997
|
-
isA11yMode:
|
|
998
|
-
a11yPosition:
|
|
997
|
+
isA11yMode: Pt.value === "keyboard",
|
|
998
|
+
a11yPosition: Nt.value
|
|
999
999
|
}, {
|
|
1000
|
-
"tooltip-before":
|
|
1001
|
-
tooltip:
|
|
1002
|
-
"tooltip-after":
|
|
1000
|
+
"tooltip-before": T(() => [S(e.$slots, "tooltip-before", v(g({ ...mn.value })), void 0, !0)]),
|
|
1001
|
+
tooltip: T(() => [S(e.$slots, "tooltip", v(g({ ...mn.value })), void 0, !0)]),
|
|
1002
|
+
"tooltip-after": T(() => [S(e.$slots, "tooltip-after", v(g({ ...mn.value })), void 0, !0)]),
|
|
1003
1003
|
_: 3
|
|
1004
1004
|
}, 8, [
|
|
1005
1005
|
"teleportTo",
|
|
@@ -1025,13 +1025,13 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
1025
1025
|
"isA11yMode",
|
|
1026
1026
|
"a11yPosition"
|
|
1027
1027
|
]),
|
|
1028
|
-
|
|
1028
|
+
Ft.value && F.value.userOptions.buttons.table ? (b(), u(Be(Q.value.component), Ie({ key: 8 }, Q.value.props, {
|
|
1029
1029
|
ref_key: "tableUnit",
|
|
1030
|
-
ref:
|
|
1031
|
-
onClose:
|
|
1030
|
+
ref: M,
|
|
1031
|
+
onClose: Dn
|
|
1032
1032
|
}), Pe({
|
|
1033
|
-
content:
|
|
1034
|
-
key: `table_${
|
|
1033
|
+
content: T(() => [(b(), u(w(ft), {
|
|
1034
|
+
key: `table_${Ct.value}`,
|
|
1035
1035
|
colNames: X.value.colNames,
|
|
1036
1036
|
head: X.value.head,
|
|
1037
1037
|
body: X.value.body,
|
|
@@ -1039,16 +1039,14 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
1039
1039
|
title: F.value.table.useDialog ? "" : Q.value.title,
|
|
1040
1040
|
withCloseButton: !F.value.table.useDialog,
|
|
1041
1041
|
isCursorPointer: I.value,
|
|
1042
|
-
onClose:
|
|
1042
|
+
onClose: Dn
|
|
1043
1043
|
}, {
|
|
1044
|
-
th:
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
}, null, 8, lt)]),
|
|
1051
|
-
td: C(({ td: e }) => [Fe(He(e.name || e), 1)]),
|
|
1044
|
+
th: T(({ th: e }) => [e === "__SUM__" ? (b(), f("div", st, [m(w(ut), {
|
|
1045
|
+
name: "sigma",
|
|
1046
|
+
stroke: X.value.config.th.color,
|
|
1047
|
+
size: 16
|
|
1048
|
+
}, null, 8, ["stroke"])])) : (b(), f("div", ct, C(e), 1))]),
|
|
1049
|
+
td: T(({ td: e }) => [Fe(C(e.name || e), 1)]),
|
|
1052
1050
|
_: 1
|
|
1053
1051
|
}, 8, [
|
|
1054
1052
|
"colNames",
|
|
@@ -1062,24 +1060,24 @@ var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je
|
|
|
1062
1060
|
_: 2
|
|
1063
1061
|
}, [F.value.table.useDialog ? {
|
|
1064
1062
|
name: "title",
|
|
1065
|
-
fn:
|
|
1063
|
+
fn: T(() => [Fe(C(Q.value.title), 1)]),
|
|
1066
1064
|
key: "0"
|
|
1067
1065
|
} : void 0, F.value.table.useDialog ? {
|
|
1068
1066
|
name: "actions",
|
|
1069
|
-
fn:
|
|
1067
|
+
fn: T(() => [p("button", {
|
|
1070
1068
|
tabindex: "0",
|
|
1071
1069
|
class: "vue-ui-user-options-button",
|
|
1072
|
-
onClick: t[1] ||= (e) =>
|
|
1073
|
-
style:
|
|
1074
|
-
}, [
|
|
1070
|
+
onClick: t[1] ||= (e) => Sn(F.value.userOptions.callbacks.csv),
|
|
1071
|
+
style: y({ cursor: I.value ? "pointer" : "default" })
|
|
1072
|
+
}, [m(w(ut), {
|
|
1075
1073
|
name: "fileCsv",
|
|
1076
1074
|
stroke: Q.value.props.color
|
|
1077
1075
|
}, null, 8, ["stroke"])], 4)]),
|
|
1078
1076
|
key: "1"
|
|
1079
1077
|
} : void 0]), 1040)) : d("", !0),
|
|
1080
|
-
|
|
1081
|
-
], 46,
|
|
1078
|
+
S(e.$slots, "skeleton", {}, () => [w(Rt) ? (b(), u(he, { key: 0 })) : d("", !0)], !0)
|
|
1079
|
+
], 46, We));
|
|
1082
1080
|
}
|
|
1083
|
-
}, [["__scopeId", "data-v-
|
|
1081
|
+
}, [["__scopeId", "data-v-f3449bf3"]]);
|
|
1084
1082
|
//#endregion
|
|
1085
|
-
export {
|
|
1083
|
+
export { Ue as n, lt as t };
|