vue-data-ui 3.23.0 → 3.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- 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 +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Jt as r, Kt as i, Pt as a, R as o, Rt as s, S as ee, X as c, ct as te, i as ne, jt as re, pt as ie, q as ae, t as oe, tt as se, w as ce, xt as le } from "./lib-
|
|
2
|
+
import { $ as t, D as n, Jt as r, Kt as i, Pt as a, R as o, Rt as s, S as ee, X as c, ct as te, i as ne, jt as re, pt as ie, q as ae, t as oe, tt as se, w as ce, xt as le } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as fe } from "./useConfig-
|
|
5
|
-
import { t as pe } from "./usePrinter-
|
|
4
|
+
import { t as fe } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as pe } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ge } from "./
|
|
8
|
-
import { t as _e } from "./
|
|
9
|
-
import { t as ve } from "./
|
|
7
|
+
import { t as ge } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
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-Bnokohej.js";
|
|
12
|
+
import { n as xe } from "./Title-BE3qg9xl.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-DZVucLnv.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-BeVpDvTJ.js";
|
|
20
|
+
import { t as Ae } from "./Legend-CQxUgOd-.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 Ie, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Le, nextTick as Re, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onMounted as ze, openBlock as y, ref as b, renderList as Be, renderSlot as x, resolveDynamicComponent as Ve, toDisplayString 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 Ie, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Le, nextTick as Re, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onMounted as ze, openBlock as y, ref as b, renderList as Be, renderSlot as x, resolveDynamicComponent as Ve, toDisplayString as He, toRefs as Ue, unref as S, watch as We, withCtx as C } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-galaxy.vue
|
|
24
|
-
var
|
|
24
|
+
var Ge = /* @__PURE__ */ e({ default: () => ut }), Ke = ["id"], qe = ["id"], Je = ["id"], Ye = { style: { position: "relative" } }, Xe = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"aria-describedby",
|
|
27
27
|
"viewBox"
|
|
28
|
-
],
|
|
28
|
+
], Ze = ["width", "height"], Qe = ["id"], $e = ["stdDeviation"], et = [
|
|
29
29
|
"d",
|
|
30
30
|
"stroke",
|
|
31
31
|
"stroke-width"
|
|
32
|
-
],
|
|
32
|
+
], tt = [
|
|
33
33
|
"d",
|
|
34
34
|
"stroke",
|
|
35
35
|
"stroke-width"
|
|
36
|
-
],
|
|
36
|
+
], nt = ["filter"], rt = [
|
|
37
37
|
"d",
|
|
38
38
|
"stroke",
|
|
39
39
|
"stroke-width"
|
|
40
|
-
],
|
|
40
|
+
], it = [
|
|
41
41
|
"data-a11y-serie-id",
|
|
42
42
|
"d",
|
|
43
43
|
"stroke-width",
|
|
@@ -45,7 +45,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
45
45
|
"onMouseenter",
|
|
46
46
|
"onMouseleave",
|
|
47
47
|
"onClick"
|
|
48
|
-
],
|
|
48
|
+
], at = {
|
|
49
49
|
key: 0,
|
|
50
50
|
style: {
|
|
51
51
|
position: "absolute",
|
|
@@ -55,10 +55,10 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
55
55
|
},
|
|
56
56
|
"data-dom-to-png-ignore": "",
|
|
57
57
|
"aria-hidden": "true"
|
|
58
|
-
},
|
|
58
|
+
}, ot = {
|
|
59
59
|
key: 5,
|
|
60
60
|
class: "vue-data-ui-watermark"
|
|
61
|
-
},
|
|
61
|
+
}, st = ["id"], ct = ["onClick"], lt = ["innerHTML"], ut = /*#__PURE__*/ Se({
|
|
62
62
|
__name: "vue-ui-galaxy",
|
|
63
63
|
props: {
|
|
64
64
|
config: {
|
|
@@ -79,14 +79,14 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
79
79
|
"selectDatapoint",
|
|
80
80
|
"copyAlt"
|
|
81
81
|
],
|
|
82
|
-
setup(e, { expose: Se, emit:
|
|
83
|
-
let
|
|
82
|
+
setup(e, { expose: Se, emit: Ge }) {
|
|
83
|
+
let ut = m(() => import("./Tooltip-DhjyfHwz.js")), dt = m(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), ft = m(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), pt = m(() => import("./DataTable-BbKgJ5UI.js")), mt = m(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), ht = m(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), gt = m(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), _t = m(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_galaxy: vt } = fe(), { isThemeValid: yt, warnInvalidTheme: bt } = _e(), w = e, T = b(ae()), E = b(null), D = b(!1), xt = b(""), O = b(null), St = b(0), Ct = b(0), wt = b(0), Tt = b(0), Et = b(null), Dt = b(null), Ot = b(null), kt = b(null), k = b(null), A = b(null), At = b(!1), j = b(null), jt = b(null), M = b(null), N = b(null), Mt = b({
|
|
84
84
|
x: 0,
|
|
85
85
|
y: 0
|
|
86
|
-
}),
|
|
86
|
+
}), Nt = b("pointer"), P = b(!1), Pt = l(() => !!w.dataset && w.dataset.length), F = b(Ht());
|
|
87
87
|
ue({
|
|
88
88
|
config: () => F.value,
|
|
89
|
-
dataset: () =>
|
|
89
|
+
dataset: () => w.dataset,
|
|
90
90
|
component: "VueUiGalaxy",
|
|
91
91
|
rules: [
|
|
92
92
|
de.singleSeries,
|
|
@@ -105,10 +105,10 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
105
105
|
}
|
|
106
106
|
]
|
|
107
107
|
});
|
|
108
|
-
let { transitionEnabled:
|
|
108
|
+
let { transitionEnabled: Ft } = ye({
|
|
109
109
|
config: () => F.value.transitions,
|
|
110
|
-
dataset: () =>
|
|
111
|
-
}), I = l(() => F.value.userOptions.useCursorPointer),
|
|
110
|
+
dataset: () => w.dataset
|
|
111
|
+
}), I = l(() => F.value.userOptions.useCursorPointer), It = l(() => r({
|
|
112
112
|
defaultConfig: {
|
|
113
113
|
userOptions: { show: !1 },
|
|
114
114
|
table: { show: !1 },
|
|
@@ -119,16 +119,16 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
119
119
|
} }
|
|
120
120
|
},
|
|
121
121
|
userConfig: F.value.skeletonConfig ?? {}
|
|
122
|
-
})), { loading:
|
|
123
|
-
...
|
|
122
|
+
})), { loading: L, FINAL_DATASET: Lt } = me({
|
|
123
|
+
...Ue(w),
|
|
124
124
|
FINAL_CONFIG: F,
|
|
125
|
-
prepareConfig:
|
|
125
|
+
prepareConfig: Ht,
|
|
126
126
|
callback: () => {
|
|
127
127
|
Promise.resolve().then(async () => {
|
|
128
|
-
await Re(),
|
|
128
|
+
await Re(), B.value.showTable = F.value.table.show;
|
|
129
129
|
});
|
|
130
130
|
},
|
|
131
|
-
skeletonDataset:
|
|
131
|
+
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
132
132
|
{
|
|
133
133
|
name: "_",
|
|
134
134
|
values: [21],
|
|
@@ -147,19 +147,19 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
147
147
|
],
|
|
148
148
|
skeletonConfig: r({
|
|
149
149
|
defaultConfig: F.value,
|
|
150
|
-
userConfig:
|
|
150
|
+
userConfig: It.value
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
153
|
ze(() => {
|
|
154
|
-
|
|
154
|
+
At.value = !0, Rt();
|
|
155
155
|
});
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
if (re(
|
|
156
|
+
let R = l(() => F.value.debug);
|
|
157
|
+
function Rt() {
|
|
158
|
+
if (re(w.dataset) ? se({
|
|
159
159
|
componentName: "VueUiGalaxy",
|
|
160
160
|
type: "dataset",
|
|
161
|
-
debug:
|
|
162
|
-
}) :
|
|
161
|
+
debug: R.value
|
|
162
|
+
}) : R.value && w.dataset.forEach((e, t) => {
|
|
163
163
|
ie({
|
|
164
164
|
datasetObject: e,
|
|
165
165
|
requiredAttributes: ["name", "values"]
|
|
@@ -168,39 +168,38 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
168
168
|
componentName: "VueUiGalaxy",
|
|
169
169
|
type: "datasetSerieAttribute",
|
|
170
170
|
property: e,
|
|
171
|
-
index: t
|
|
172
|
-
debug: Vt.value
|
|
171
|
+
index: t
|
|
173
172
|
});
|
|
174
173
|
});
|
|
175
174
|
}), F.value.responsive) {
|
|
176
175
|
let e = Ce(() => {
|
|
177
176
|
let { width: e, height: t } = we({
|
|
178
|
-
chart:
|
|
177
|
+
chart: E.value,
|
|
179
178
|
title: F.value.style.chart.title.text ? Et.value : null,
|
|
180
179
|
legend: F.value.style.chart.legend.show ? Dt.value : null,
|
|
181
180
|
noTitle: kt.value,
|
|
182
181
|
source: Ot.value
|
|
183
182
|
});
|
|
184
183
|
requestAnimationFrame(() => {
|
|
185
|
-
|
|
184
|
+
Yt.value = Math.max(.1, e), Xt.value = Math.max(.1, t - 12);
|
|
186
185
|
});
|
|
187
186
|
});
|
|
188
|
-
k.value && (
|
|
187
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = E.value.parentNode, k.value.observe(A.value);
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
|
-
let { userOptionsVisible:
|
|
192
|
-
function
|
|
193
|
-
let e =
|
|
194
|
-
userConfig:
|
|
195
|
-
defaultConfig:
|
|
190
|
+
let { userOptionsVisible: zt, setUserOptionsVisibility: Bt, keepUserOptionState: Vt } = De({ config: F.value }), { svgRef: z } = Oe({ config: F.value.style.chart.title });
|
|
191
|
+
function Ht() {
|
|
192
|
+
let e = ge({
|
|
193
|
+
userConfig: w.config,
|
|
194
|
+
defaultConfig: vt
|
|
196
195
|
}), t = e.theme;
|
|
197
196
|
if (!t) return e;
|
|
198
|
-
if (!
|
|
199
|
-
let n =
|
|
200
|
-
userConfig: je[t] ||
|
|
197
|
+
if (!yt.value(e)) return bt(e), e;
|
|
198
|
+
let n = ge({
|
|
199
|
+
userConfig: je[t] || w.config,
|
|
201
200
|
defaultConfig: e
|
|
202
|
-
}), r =
|
|
203
|
-
userConfig:
|
|
201
|
+
}), r = ge({
|
|
202
|
+
userConfig: w.config,
|
|
204
203
|
defaultConfig: n
|
|
205
204
|
});
|
|
206
205
|
return {
|
|
@@ -208,51 +207,51 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
208
207
|
customPalette: r.customPalette.length ? r.customPalette : i[t] || a
|
|
209
208
|
};
|
|
210
209
|
}
|
|
211
|
-
|
|
212
|
-
F.value =
|
|
210
|
+
We(() => w.config, (e) => {
|
|
211
|
+
F.value = Ht(), zt.value = !F.value.userOptions.showOnChartHover, Rt(), Ct.value += 1, wt.value += 1, Tt.value += 1, B.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = F.value.table.show, B.value.showTooltip = F.value.style.chart.tooltip.show;
|
|
213
212
|
}, { deep: !0 });
|
|
214
|
-
let { isPrinting:
|
|
215
|
-
elementId: `galaxy_${
|
|
213
|
+
let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = pe({
|
|
214
|
+
elementId: `galaxy_${T.value}`,
|
|
216
215
|
fileName: F.value.style.chart.title.text || "vue-ui-galaxy",
|
|
217
216
|
options: F.value.userOptions.print
|
|
218
|
-
}),
|
|
217
|
+
}), qt = l(() => F.value.userOptions.show && !F.value.style.chart.title.text), Jt = l(() => ce(F.value.customPalette)), B = b({
|
|
219
218
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
220
219
|
showTable: F.value.table.show,
|
|
221
220
|
showTooltip: F.value.style.chart.tooltip.show
|
|
222
|
-
}),
|
|
223
|
-
width:
|
|
224
|
-
height:
|
|
225
|
-
viewBox: `${
|
|
226
|
-
})),
|
|
227
|
-
function
|
|
228
|
-
|
|
221
|
+
}), Yt = b(250), Xt = b(180), Zt = b(0), Qt = b(0), V = l(() => ({
|
|
222
|
+
width: Yt.value,
|
|
223
|
+
height: Xt.value,
|
|
224
|
+
viewBox: `${Zt.value} ${Qt.value} ${Yt.value} ${Xt.value}`
|
|
225
|
+
})), $t = Ge, H = b([]);
|
|
226
|
+
function en() {
|
|
227
|
+
$t("selectLegend", K.value.map((e) => ({
|
|
229
228
|
name: e.name,
|
|
230
229
|
color: e.color,
|
|
231
230
|
value: e.value
|
|
232
231
|
})));
|
|
233
232
|
}
|
|
234
|
-
function
|
|
233
|
+
function tn() {
|
|
235
234
|
H.value.length ? H.value = [] : J.value.forEach((e) => {
|
|
236
235
|
H.value.push(e.id);
|
|
237
|
-
}),
|
|
236
|
+
}), en();
|
|
238
237
|
}
|
|
239
238
|
function U(e) {
|
|
240
|
-
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id),
|
|
239
|
+
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), en();
|
|
241
240
|
}
|
|
242
|
-
function
|
|
243
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (
|
|
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);
|
|
244
243
|
}
|
|
245
|
-
function
|
|
246
|
-
let t =
|
|
244
|
+
function rn(e) {
|
|
245
|
+
let t = nn(e);
|
|
247
246
|
t !== null && H.value.includes(t.id) && U({ id: t.id });
|
|
248
247
|
}
|
|
249
|
-
function
|
|
250
|
-
let t =
|
|
248
|
+
function an(e) {
|
|
249
|
+
let t = nn(e);
|
|
251
250
|
t !== null && (H.value.includes(t.id) || U({ id: t.id }));
|
|
252
251
|
}
|
|
253
|
-
let W = l(() =>
|
|
252
|
+
let W = l(() => Lt.value.map((e, t) => ({
|
|
254
253
|
name: e.name,
|
|
255
|
-
color: ee(e.color) ||
|
|
254
|
+
color: ee(e.color) || Jt.value[t] || a[t] || a[t % a.length],
|
|
256
255
|
value: e.values ? s(e.values).reduce((e, t) => e + t, 0) : 0,
|
|
257
256
|
absoluteValues: s(e.values),
|
|
258
257
|
id: ae()
|
|
@@ -260,15 +259,15 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
260
259
|
...e,
|
|
261
260
|
absoluteIndex: t
|
|
262
261
|
})));
|
|
263
|
-
function
|
|
262
|
+
function on() {
|
|
264
263
|
return W.value.map((e) => ({
|
|
265
264
|
name: e.name,
|
|
266
265
|
color: e.color,
|
|
267
266
|
value: e.value
|
|
268
267
|
}));
|
|
269
268
|
}
|
|
270
|
-
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)),
|
|
271
|
-
maxPoints:
|
|
269
|
+
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), sn = b(190), cn = l(() => W.value.filter((e) => !H.value.includes(e.id))), ln = l(() => (F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth) / 2 + (F.value.style.chart.layout.padding ?? 12)), un = l(() => o({
|
|
270
|
+
maxPoints: sn.value,
|
|
272
271
|
a: F.value.style.chart.layout.arcs.a ?? 6,
|
|
273
272
|
b: F.value.style.chart.layout.arcs.b ?? 6,
|
|
274
273
|
angleStep: F.value.style.chart.layout.arcs.angleStep ?? .07,
|
|
@@ -276,23 +275,23 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
276
275
|
startY: V.value.height / 2 + F.value.style.chart.layout.arcs.offsetY,
|
|
277
276
|
boxWidth: V.value.width,
|
|
278
277
|
boxHeight: V.value.height,
|
|
279
|
-
padding:
|
|
278
|
+
padding: ln.value
|
|
280
279
|
})), K = l(() => {
|
|
281
280
|
let e = [];
|
|
282
|
-
for (let t = 0; t <
|
|
283
|
-
let n =
|
|
281
|
+
for (let t = 0; t < cn.value.length; t += 1) {
|
|
282
|
+
let n = cn.value[t], r = n.value / G.value * sn.value + (t > 0 && e.length ? e[t - 1].points : 0);
|
|
284
283
|
e.push({
|
|
285
284
|
points: r,
|
|
286
285
|
...n,
|
|
287
286
|
seriesIndex: t,
|
|
288
287
|
proportion: n.value / G.value,
|
|
289
|
-
path:
|
|
288
|
+
path: un.value(r)
|
|
290
289
|
});
|
|
291
290
|
}
|
|
292
291
|
return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
|
|
293
292
|
});
|
|
294
|
-
function
|
|
295
|
-
let t = Math.min(
|
|
293
|
+
function dn(e) {
|
|
294
|
+
let t = Math.min(Yt.value, Xt.value), n = O.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;
|
|
296
295
|
return {
|
|
297
296
|
border: r / 180 * t,
|
|
298
297
|
path: i / 180 * t,
|
|
@@ -300,36 +299,36 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
300
299
|
};
|
|
301
300
|
}
|
|
302
301
|
let q = b(!1);
|
|
303
|
-
function
|
|
302
|
+
function fn(e) {
|
|
304
303
|
q.value = e, St.value += 1;
|
|
305
304
|
}
|
|
306
|
-
let
|
|
307
|
-
function
|
|
308
|
-
|
|
305
|
+
let pn = b(null);
|
|
306
|
+
function mn() {
|
|
307
|
+
D.value = !1, O.value = null, M.value = null, N.value = null;
|
|
309
308
|
}
|
|
310
|
-
function
|
|
311
|
-
if (!
|
|
312
|
-
let t =
|
|
309
|
+
function hn(e) {
|
|
310
|
+
if (!z.value || !e) return;
|
|
311
|
+
let t = z.value.querySelector(`[data-a11y-serie-id="${e}"]`);
|
|
313
312
|
if (!t) return;
|
|
314
313
|
let n = t.getBoundingClientRect();
|
|
315
|
-
|
|
314
|
+
Mt.value = {
|
|
316
315
|
x: n.left + n.width / 2,
|
|
317
316
|
y: n.top + n.height / 2
|
|
318
317
|
};
|
|
319
318
|
}
|
|
320
|
-
function
|
|
319
|
+
function gn(e) {
|
|
321
320
|
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
322
321
|
datapoint: e,
|
|
323
322
|
seriesIndex: e.absoluteIndex
|
|
324
|
-
}),
|
|
323
|
+
}), (N.value !== e.id || Nt.value !== "keyboard") && (D.value = !1, O.value = null);
|
|
325
324
|
}
|
|
326
|
-
function
|
|
327
|
-
|
|
325
|
+
function _n(e) {
|
|
326
|
+
$t("selectDatapoint", e), F.value.events.datapointClick && F.value.events.datapointClick({
|
|
328
327
|
datapoint: e,
|
|
329
328
|
seriesIndex: e.absoluteIndex
|
|
330
329
|
});
|
|
331
330
|
}
|
|
332
|
-
function
|
|
331
|
+
function vn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
333
332
|
let i = F.value.style.chart.layout.labels.dataLabels;
|
|
334
333
|
return ke({
|
|
335
334
|
config: i,
|
|
@@ -339,17 +338,17 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
339
338
|
showPercentage: r
|
|
340
339
|
});
|
|
341
340
|
}
|
|
342
|
-
function
|
|
341
|
+
function yn({ datapoint: e, _relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer", flatIndex: a = null }) {
|
|
343
342
|
if (F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
344
343
|
datapoint: e,
|
|
345
344
|
seriesIndex: e.absoluteIndex
|
|
346
|
-
}), !
|
|
347
|
-
|
|
345
|
+
}), !B.value.showTooltip) return;
|
|
346
|
+
Nt.value = i, M.value = a, N.value = e.id, pn.value = {
|
|
348
347
|
datapoint: e,
|
|
349
348
|
seriesIndex: n,
|
|
350
349
|
series: W.value,
|
|
351
350
|
config: F.value
|
|
352
|
-
},
|
|
351
|
+
}, D.value = r, O.value = e.id;
|
|
353
352
|
let o = "", s = F.value.style.chart.tooltip.customFormat;
|
|
354
353
|
le(s) && te(() => s({
|
|
355
354
|
seriesIndex: n,
|
|
@@ -361,7 +360,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
361
360
|
datapoint: e,
|
|
362
361
|
series: W.value,
|
|
363
362
|
config: F.value
|
|
364
|
-
}) : (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>${vn({
|
|
365
364
|
showVal: F.value.style.chart.tooltip.showValue,
|
|
366
365
|
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
367
366
|
val: ne(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, c({
|
|
@@ -379,7 +378,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
379
378
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
380
379
|
})
|
|
381
380
|
})}</b></div>`, xt.value = `<div>${o}</div>`), i === "keyboard" && Re(() => {
|
|
382
|
-
|
|
381
|
+
hn(e.id);
|
|
383
382
|
});
|
|
384
383
|
}
|
|
385
384
|
let J = l(() => W.value.map((e, t) => {
|
|
@@ -395,7 +394,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
395
394
|
v: e.value / G.value * 100,
|
|
396
395
|
s: "%",
|
|
397
396
|
r: F.value.style.chart.legend.roundingPercentage
|
|
398
|
-
}), i =
|
|
397
|
+
}), i = vn({
|
|
399
398
|
showVal: F.value.style.chart.legend.showValue,
|
|
400
399
|
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
401
400
|
val: n,
|
|
@@ -403,14 +402,14 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
403
402
|
});
|
|
404
403
|
return {
|
|
405
404
|
...e,
|
|
406
|
-
proportion: (e.value || 0) /
|
|
405
|
+
proportion: (e.value || 0) / Lt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
407
406
|
opacity: H.value.includes(e.id) ? .5 : 1,
|
|
408
407
|
shape: e.shape || "circle",
|
|
409
408
|
segregate: () => U(e),
|
|
410
409
|
isSegregated: H.value.includes(e.id),
|
|
411
410
|
display: `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
412
411
|
};
|
|
413
|
-
})),
|
|
412
|
+
})), bn = l(() => ({
|
|
414
413
|
cy: "galaxy-div-legend",
|
|
415
414
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
416
415
|
color: F.value.style.chart.legend.color,
|
|
@@ -424,13 +423,13 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
424
423
|
})),
|
|
425
424
|
body: K.value.map((e) => e.value)
|
|
426
425
|
}));
|
|
427
|
-
function
|
|
426
|
+
function xn(e = null) {
|
|
428
427
|
Re(() => {
|
|
429
428
|
let r = Y.value.head.map((e, t) => [
|
|
430
429
|
[e.name],
|
|
431
430
|
[Y.value.body[t]],
|
|
432
431
|
[isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
|
|
433
|
-
]), i =
|
|
432
|
+
]), i = [
|
|
434
433
|
[F.value.style.chart.title.text],
|
|
435
434
|
[F.value.style.chart.title.subtitle.text],
|
|
436
435
|
[
|
|
@@ -438,9 +437,9 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
438
437
|
["val"],
|
|
439
438
|
["%"]
|
|
440
439
|
]
|
|
441
|
-
].concat(r));
|
|
442
|
-
e ? e(
|
|
443
|
-
csvContent:
|
|
440
|
+
].concat(r), a = n(i);
|
|
441
|
+
e ? e(a) : t({
|
|
442
|
+
csvContent: a,
|
|
444
443
|
title: F.value.style.chart.title.text || "vue-ui-galaxy"
|
|
445
444
|
});
|
|
446
445
|
});
|
|
@@ -498,20 +497,20 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
498
497
|
config: n
|
|
499
498
|
};
|
|
500
499
|
});
|
|
501
|
-
function
|
|
502
|
-
|
|
500
|
+
function Sn() {
|
|
501
|
+
B.value.showTable = !B.value.showTable;
|
|
503
502
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
503
|
+
function Cn() {
|
|
504
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
506
505
|
}
|
|
507
506
|
let Z = b(!1);
|
|
508
|
-
function
|
|
507
|
+
function wn() {
|
|
509
508
|
Z.value = !Z.value;
|
|
510
509
|
}
|
|
511
|
-
async function
|
|
512
|
-
if (!
|
|
513
|
-
let { width: t, height: n } =
|
|
514
|
-
domElement:
|
|
510
|
+
async function Tn({ scale: e = 2 } = {}) {
|
|
511
|
+
if (!E.value) return;
|
|
512
|
+
let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
513
|
+
domElement: E.value,
|
|
515
514
|
base64: !0,
|
|
516
515
|
img: !0,
|
|
517
516
|
scale: e
|
|
@@ -526,9 +525,9 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
526
525
|
};
|
|
527
526
|
}
|
|
528
527
|
let Q = l(() => {
|
|
529
|
-
let e = F.value.table.useDialog && !F.value.table.show, t =
|
|
528
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = B.value.showTable;
|
|
530
529
|
return {
|
|
531
|
-
component: e ?
|
|
530
|
+
component: e ? _t : ft,
|
|
532
531
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
533
532
|
props: e ? {
|
|
534
533
|
backgroundColor: F.value.table.th.backgroundColor,
|
|
@@ -536,7 +535,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
536
535
|
headerColor: F.value.table.th.color,
|
|
537
536
|
headerBg: F.value.table.th.backgroundColor,
|
|
538
537
|
isFullscreen: q.value,
|
|
539
|
-
fullscreenParent:
|
|
538
|
+
fullscreenParent: E.value,
|
|
540
539
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
541
540
|
isCursorPointer: I.value
|
|
542
541
|
} : {
|
|
@@ -556,51 +555,26 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
556
555
|
}
|
|
557
556
|
};
|
|
558
557
|
});
|
|
559
|
-
|
|
560
|
-
F.value.table.show || (e && F.value.table.useDialog &&
|
|
558
|
+
We(() => B.value.showTable, (e) => {
|
|
559
|
+
F.value.table.show || (e && F.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
561
560
|
});
|
|
562
|
-
function
|
|
563
|
-
|
|
561
|
+
function En() {
|
|
562
|
+
B.value.showTable = !1, jt.value && jt.value.setTableIconState(!1);
|
|
564
563
|
}
|
|
565
|
-
let
|
|
564
|
+
let Dn = l(() => J.value.map((e) => ({
|
|
566
565
|
...e,
|
|
567
566
|
name: e.display
|
|
568
|
-
}))),
|
|
569
|
-
svg:
|
|
570
|
-
title:
|
|
571
|
-
legend:
|
|
572
|
-
legendItems:
|
|
573
|
-
backgroundColor:
|
|
567
|
+
}))), On = l(() => F.value.style.chart.backgroundColor), kn = l(() => F.value.style.chart.legend), An = l(() => F.value.style.chart.title), { isCallbackImaging: jn, isCallbackSvg: Mn, generateSvg: Nn, onGenerateImage: Pn } = ve({
|
|
568
|
+
svg: z,
|
|
569
|
+
title: An,
|
|
570
|
+
legend: kn,
|
|
571
|
+
legendItems: Dn,
|
|
572
|
+
backgroundColor: On,
|
|
573
|
+
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
574
|
+
generateImage: Kt
|
|
574
575
|
});
|
|
575
|
-
async function
|
|
576
|
-
|
|
577
|
-
try {
|
|
578
|
-
if (e) {
|
|
579
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Nn();
|
|
580
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
581
|
-
blob: e,
|
|
582
|
-
url: t,
|
|
583
|
-
text: n,
|
|
584
|
-
dataUrl: r
|
|
585
|
-
}));
|
|
586
|
-
} else await Promise.resolve(Mn());
|
|
587
|
-
} finally {
|
|
588
|
-
j.value = !1;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
function Fn(e) {
|
|
592
|
-
if (e?.stage === "start") {
|
|
593
|
-
Nt.value = !0;
|
|
594
|
-
return;
|
|
595
|
-
}
|
|
596
|
-
if (e?.stage === "end") {
|
|
597
|
-
Nt.value = !1;
|
|
598
|
-
return;
|
|
599
|
-
}
|
|
600
|
-
Xt();
|
|
601
|
-
}
|
|
602
|
-
async function In() {
|
|
603
|
-
if (tn("copyAlt", {
|
|
576
|
+
async function Fn() {
|
|
577
|
+
if ($t("copyAlt", {
|
|
604
578
|
config: F.value,
|
|
605
579
|
dataset: W.value
|
|
606
580
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
@@ -612,31 +586,31 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
612
586
|
dataset: W.value
|
|
613
587
|
}));
|
|
614
588
|
}
|
|
615
|
-
function
|
|
589
|
+
function In() {
|
|
616
590
|
M.value = null, N.value = null, P.value = !0;
|
|
617
591
|
}
|
|
618
|
-
function
|
|
619
|
-
|
|
592
|
+
function Ln() {
|
|
593
|
+
mn(), P.value = !1;
|
|
620
594
|
}
|
|
621
|
-
function
|
|
622
|
-
if (!
|
|
595
|
+
function Rn(e) {
|
|
596
|
+
if (!z.value || Z.value || document.activeElement !== z.value || !$.value.length) return;
|
|
623
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";
|
|
624
598
|
if (!t && !n && !r && !i) return;
|
|
625
599
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
626
|
-
|
|
600
|
+
mn();
|
|
627
601
|
return;
|
|
628
602
|
}
|
|
629
603
|
if (r) {
|
|
630
604
|
if (M.value === null) return;
|
|
631
605
|
let e = $.value[M.value];
|
|
632
606
|
if (!e) return;
|
|
633
|
-
|
|
607
|
+
_n(e.datapoint);
|
|
634
608
|
return;
|
|
635
609
|
}
|
|
636
610
|
let a = M.value;
|
|
637
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));
|
|
638
612
|
let o = $.value[a];
|
|
639
|
-
o &&
|
|
613
|
+
o && yn({
|
|
640
614
|
datapoint: o.datapoint,
|
|
641
615
|
seriesIndex: o.datapoint.seriesIndex,
|
|
642
616
|
show: !0,
|
|
@@ -644,7 +618,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
644
618
|
flatIndex: a
|
|
645
619
|
});
|
|
646
620
|
}
|
|
647
|
-
let
|
|
621
|
+
let zn = l(() => ({
|
|
648
622
|
headers: X.value?.colNames ?? [],
|
|
649
623
|
rows: X.value?.body ?? []
|
|
650
624
|
})), $ = l(() => K.value.map((e, t) => ({
|
|
@@ -652,39 +626,39 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
652
626
|
index: t
|
|
653
627
|
})));
|
|
654
628
|
return Se({
|
|
655
|
-
getData:
|
|
656
|
-
getImage:
|
|
657
|
-
generatePdf:
|
|
658
|
-
generateCsv:
|
|
659
|
-
generateImage:
|
|
660
|
-
generateSvg:
|
|
661
|
-
hideSeries:
|
|
662
|
-
showSeries:
|
|
663
|
-
toggleTable:
|
|
664
|
-
toggleTooltip:
|
|
665
|
-
toggleAnnotator:
|
|
666
|
-
toggleFullscreen:
|
|
667
|
-
copyAlt:
|
|
629
|
+
getData: on,
|
|
630
|
+
getImage: Tn,
|
|
631
|
+
generatePdf: Gt,
|
|
632
|
+
generateCsv: xn,
|
|
633
|
+
generateImage: Kt,
|
|
634
|
+
generateSvg: Nn,
|
|
635
|
+
hideSeries: an,
|
|
636
|
+
showSeries: rn,
|
|
637
|
+
toggleTable: Sn,
|
|
638
|
+
toggleTooltip: Cn,
|
|
639
|
+
toggleAnnotator: wn,
|
|
640
|
+
toggleFullscreen: fn,
|
|
641
|
+
copyAlt: Fn
|
|
668
642
|
}), (e, t) => (y(), f("div", {
|
|
669
643
|
ref_key: "galaxyChart",
|
|
670
|
-
ref:
|
|
671
|
-
class: g(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"} ${
|
|
644
|
+
ref: E,
|
|
645
|
+
class: g(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"} ${S(L) ? "loading" : ""}`),
|
|
672
646
|
style: v(`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}`),
|
|
673
|
-
id: `galaxy_${
|
|
674
|
-
onMouseenter: t[2] ||= () =>
|
|
647
|
+
id: `galaxy_${T.value}`,
|
|
648
|
+
onMouseenter: t[2] ||= () => S(Bt)(!0),
|
|
675
649
|
onMouseleave: t[3] ||= () => {
|
|
676
|
-
|
|
650
|
+
S(Bt)(!1), P.value || mn();
|
|
677
651
|
}
|
|
678
652
|
}, [
|
|
679
653
|
p("div", {
|
|
680
|
-
id: `chart-instructions-${
|
|
654
|
+
id: `chart-instructions-${T.value}`,
|
|
681
655
|
class: "sr-only"
|
|
682
|
-
}, [p("p", null,
|
|
683
|
-
|
|
656
|
+
}, [p("p", null, He(F.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
657
|
+
zn.value?.rows?.length ? (y(), u(Ee, {
|
|
684
658
|
key: 0,
|
|
685
|
-
uid:
|
|
686
|
-
head:
|
|
687
|
-
body:
|
|
659
|
+
uid: T.value,
|
|
660
|
+
head: zn.value.headers,
|
|
661
|
+
body: zn.value.rows,
|
|
688
662
|
notice: F.value.a11y.translations.tableAvailable,
|
|
689
663
|
caption: F.value.a11y.translations.tableCaption
|
|
690
664
|
}, null, 8, [
|
|
@@ -694,21 +668,21 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
694
668
|
"notice",
|
|
695
669
|
"caption"
|
|
696
670
|
])) : d("", !0),
|
|
697
|
-
F.value.userOptions.buttons.annotator ? (y(), u(
|
|
671
|
+
F.value.userOptions.buttons.annotator ? (y(), u(S(mt), {
|
|
698
672
|
key: 1,
|
|
699
|
-
svgRef:
|
|
673
|
+
svgRef: S(z),
|
|
700
674
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
701
675
|
color: F.value.style.chart.color,
|
|
702
676
|
active: Z.value,
|
|
703
677
|
isCursorPointer: I.value,
|
|
704
|
-
onClose:
|
|
678
|
+
onClose: wn
|
|
705
679
|
}, {
|
|
706
|
-
"annotator-action-close":
|
|
707
|
-
"annotator-action-color":
|
|
708
|
-
"annotator-action-draw":
|
|
709
|
-
"annotator-action-undo":
|
|
710
|
-
"annotator-action-redo":
|
|
711
|
-
"annotator-action-delete":
|
|
680
|
+
"annotator-action-close": C(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
681
|
+
"annotator-action-color": C(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
682
|
+
"annotator-action-draw": C(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
|
|
683
|
+
"annotator-action-undo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
|
|
684
|
+
"annotator-action-redo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
|
|
685
|
+
"annotator-action-delete": C(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
|
|
712
686
|
_: 3
|
|
713
687
|
}, 8, [
|
|
714
688
|
"svgRef",
|
|
@@ -717,7 +691,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
717
691
|
"active",
|
|
718
692
|
"isCursorPointer"
|
|
719
693
|
])) : d("", !0),
|
|
720
|
-
|
|
694
|
+
qt.value ? (y(), f("div", {
|
|
721
695
|
key: 2,
|
|
722
696
|
ref_key: "noTitle",
|
|
723
697
|
ref: kt,
|
|
@@ -742,16 +716,16 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
742
716
|
}
|
|
743
717
|
}
|
|
744
718
|
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
745
|
-
p("div", { id: `legend-top-${
|
|
746
|
-
F.value.userOptions.show &&
|
|
719
|
+
p("div", { id: `legend-top-${T.value}` }, null, 8, Je),
|
|
720
|
+
F.value.userOptions.show && Pt.value && (S(Vt) || S(zt)) ? (y(), u(S(ht), {
|
|
747
721
|
ref_key: "userOptionsRef",
|
|
748
|
-
ref:
|
|
722
|
+
ref: jt,
|
|
749
723
|
key: `user_option_${St.value}`,
|
|
750
724
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
751
725
|
color: F.value.style.chart.color,
|
|
752
|
-
isPrinting:
|
|
753
|
-
isImaging:
|
|
754
|
-
uid:
|
|
726
|
+
isPrinting: S(Ut),
|
|
727
|
+
isImaging: S(Wt),
|
|
728
|
+
uid: T.value,
|
|
755
729
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
756
730
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
757
731
|
hasXls: F.value.userOptions.buttons.csv,
|
|
@@ -760,10 +734,10 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
760
734
|
hasTable: F.value.userOptions.buttons.table,
|
|
761
735
|
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
762
736
|
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
763
|
-
isTooltip:
|
|
737
|
+
isTooltip: B.value.showTooltip,
|
|
764
738
|
isFullscreen: q.value,
|
|
765
739
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
766
|
-
chartElement:
|
|
740
|
+
chartElement: E.value,
|
|
767
741
|
position: F.value.userOptions.position,
|
|
768
742
|
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
769
743
|
isAnnotation: Z.value,
|
|
@@ -771,20 +745,20 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
771
745
|
printScale: F.value.userOptions.print.scale,
|
|
772
746
|
tableDialog: F.value.table.useDialog,
|
|
773
747
|
isCursorPointer: I.value,
|
|
774
|
-
onToggleFullscreen:
|
|
775
|
-
onGeneratePdf:
|
|
776
|
-
onGenerateCsv:
|
|
777
|
-
onGenerateImage:
|
|
778
|
-
onGenerateSvg:
|
|
779
|
-
onToggleTable:
|
|
780
|
-
onToggleTooltip:
|
|
781
|
-
onToggleAnnotator:
|
|
782
|
-
onCopyAlt:
|
|
783
|
-
style: v({ visibility:
|
|
748
|
+
onToggleFullscreen: fn,
|
|
749
|
+
onGeneratePdf: S(Gt),
|
|
750
|
+
onGenerateCsv: xn,
|
|
751
|
+
onGenerateImage: S(Pn),
|
|
752
|
+
onGenerateSvg: S(Nn),
|
|
753
|
+
onToggleTable: Sn,
|
|
754
|
+
onToggleTooltip: Cn,
|
|
755
|
+
onToggleAnnotator: wn,
|
|
756
|
+
onCopyAlt: Fn,
|
|
757
|
+
style: v({ visibility: S(Vt) ? S(zt) ? "visible" : "hidden" : "visible" })
|
|
784
758
|
}, Pe({ _: 2 }, [
|
|
785
759
|
e.$slots.menuIcon ? {
|
|
786
760
|
name: "menuIcon",
|
|
787
|
-
fn:
|
|
761
|
+
fn: C(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
|
|
788
762
|
isOpen: t,
|
|
789
763
|
color: n
|
|
790
764
|
})), void 0, !0)]),
|
|
@@ -792,37 +766,37 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
792
766
|
} : void 0,
|
|
793
767
|
e.$slots.optionTooltip ? {
|
|
794
768
|
name: "optionTooltip",
|
|
795
|
-
fn:
|
|
769
|
+
fn: C(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
796
770
|
key: "1"
|
|
797
771
|
} : void 0,
|
|
798
772
|
e.$slots.optionPdf ? {
|
|
799
773
|
name: "optionPdf",
|
|
800
|
-
fn:
|
|
774
|
+
fn: C(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
801
775
|
key: "2"
|
|
802
776
|
} : void 0,
|
|
803
777
|
e.$slots.optionCsv ? {
|
|
804
778
|
name: "optionCsv",
|
|
805
|
-
fn:
|
|
779
|
+
fn: C(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
806
780
|
key: "3"
|
|
807
781
|
} : void 0,
|
|
808
782
|
e.$slots.optionImg ? {
|
|
809
783
|
name: "optionImg",
|
|
810
|
-
fn:
|
|
784
|
+
fn: C(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
811
785
|
key: "4"
|
|
812
786
|
} : void 0,
|
|
813
787
|
e.$slots.optionSvg ? {
|
|
814
788
|
name: "optionSvg",
|
|
815
|
-
fn:
|
|
789
|
+
fn: C(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
816
790
|
key: "5"
|
|
817
791
|
} : void 0,
|
|
818
792
|
e.$slots.optionTable ? {
|
|
819
793
|
name: "optionTable",
|
|
820
|
-
fn:
|
|
794
|
+
fn: C(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
821
795
|
key: "6"
|
|
822
796
|
} : void 0,
|
|
823
797
|
e.$slots.optionFullscreen ? {
|
|
824
798
|
name: "optionFullscreen",
|
|
825
|
-
fn:
|
|
799
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
|
|
826
800
|
toggleFullscreen: t,
|
|
827
801
|
isFullscreen: n
|
|
828
802
|
})), void 0, !0)]),
|
|
@@ -830,7 +804,7 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
830
804
|
} : void 0,
|
|
831
805
|
e.$slots.optionAnnotator ? {
|
|
832
806
|
name: "optionAnnotator",
|
|
833
|
-
fn:
|
|
807
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
|
|
834
808
|
toggleAnnotator: t,
|
|
835
809
|
isAnnotator: n
|
|
836
810
|
})), void 0, !0)]),
|
|
@@ -838,25 +812,25 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
838
812
|
} : void 0,
|
|
839
813
|
e.$slots.optionAltCopy ? {
|
|
840
814
|
name: "optionAltCopy",
|
|
841
|
-
fn:
|
|
815
|
+
fn: C(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
842
816
|
key: "9"
|
|
843
817
|
} : void 0,
|
|
844
818
|
e.$slots["custom-menu-before"] ? {
|
|
845
819
|
name: "custom-menu-before",
|
|
846
|
-
fn:
|
|
820
|
+
fn: C(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
847
821
|
key: "10"
|
|
848
822
|
} : void 0,
|
|
849
823
|
e.$slots["custom-menu-after"] ? {
|
|
850
824
|
name: "custom-menu-after",
|
|
851
|
-
fn:
|
|
825
|
+
fn: C(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
852
826
|
key: "11"
|
|
853
827
|
} : void 0
|
|
854
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
855
|
-
p("div",
|
|
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", Ye, [(y(), f("svg", {
|
|
856
830
|
ref_key: "svgRef",
|
|
857
|
-
ref:
|
|
858
|
-
xmlns:
|
|
859
|
-
"aria-describedby": `chart-instructions-${
|
|
831
|
+
ref: z,
|
|
832
|
+
xmlns: S(oe),
|
|
833
|
+
"aria-describedby": `chart-instructions-${T.value}`,
|
|
860
834
|
class: g({
|
|
861
835
|
"vue-data-ui-fullscreen--on": q.value,
|
|
862
836
|
"vue-data-ui-fulscreen--off": !q.value
|
|
@@ -864,11 +838,11 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
864
838
|
viewBox: V.value.viewBox,
|
|
865
839
|
style: v(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color}`),
|
|
866
840
|
tabindex: "0",
|
|
867
|
-
onFocus:
|
|
868
|
-
onBlur:
|
|
869
|
-
onKeydown:
|
|
841
|
+
onFocus: In,
|
|
842
|
+
onBlur: Ln,
|
|
843
|
+
onKeydown: Rn
|
|
870
844
|
}, [
|
|
871
|
-
Ie(
|
|
845
|
+
Ie(S(gt)),
|
|
872
846
|
e.$slots["chart-background"] ? (y(), f("foreignObject", {
|
|
873
847
|
key: 0,
|
|
874
848
|
x: 0,
|
|
@@ -876,9 +850,9 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
876
850
|
width: V.value.width,
|
|
877
851
|
height: V.value.height,
|
|
878
852
|
style: { pointerEvents: "none" }
|
|
879
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
853
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : d("", !0),
|
|
880
854
|
p("defs", null, [p("filter", {
|
|
881
|
-
id: `blur_${
|
|
855
|
+
id: `blur_${T.value}`,
|
|
882
856
|
x: "-50%",
|
|
883
857
|
y: "-50%",
|
|
884
858
|
width: "200%",
|
|
@@ -886,44 +860,44 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
886
860
|
}, [p("feGaussianBlur", {
|
|
887
861
|
in: "SourceGraphic",
|
|
888
862
|
stdDeviation: 100 / F.value.style.chart.layout.arcs.gradient.intensity
|
|
889
|
-
}, null, 8,
|
|
863
|
+
}, null, 8, $e)], 8, Qe)]),
|
|
890
864
|
(y(!0), f(Me, null, Be(K.value, (e) => (y(), f("g", { key: `dp_${e.id}` }, [
|
|
891
865
|
e.value ? (y(), f("path", {
|
|
892
866
|
key: 0,
|
|
893
867
|
d: e.path,
|
|
894
868
|
fill: "none",
|
|
895
869
|
stroke: F.value.style.chart.backgroundColor,
|
|
896
|
-
"stroke-width":
|
|
897
|
-
class: g({ "vue-data-ui-transition":
|
|
870
|
+
"stroke-width": dn(e).border,
|
|
871
|
+
class: g({ "vue-data-ui-transition": S(Ft) }),
|
|
898
872
|
"stroke-linecap": "round"
|
|
899
|
-
}, null, 10,
|
|
873
|
+
}, null, 10, et)) : d("", !0),
|
|
900
874
|
e.value ? (y(), f("path", {
|
|
901
875
|
key: 1,
|
|
902
876
|
d: e.path,
|
|
903
877
|
fill: "none",
|
|
904
878
|
stroke: e.color,
|
|
905
|
-
"stroke-width":
|
|
879
|
+
"stroke-width": dn(e).path,
|
|
906
880
|
"stroke-linecap": "round",
|
|
907
881
|
class: g({
|
|
908
|
-
"vue-data-ui-transition":
|
|
882
|
+
"vue-data-ui-transition": S(Ft),
|
|
909
883
|
"vue-ui-galaxy-blur": O.value && O.value !== e.id && F.value.useBlurOnHover
|
|
910
884
|
})
|
|
911
|
-
}, null, 10,
|
|
885
|
+
}, null, 10, tt)) : d("", !0),
|
|
912
886
|
e.value && F.value.style.chart.layout.arcs.gradient.show ? (y(), f("g", {
|
|
913
887
|
key: 2,
|
|
914
|
-
filter: `url(#blur_${
|
|
888
|
+
filter: `url(#blur_${T.value})`
|
|
915
889
|
}, [p("path", {
|
|
916
890
|
d: e.path,
|
|
917
891
|
fill: "none",
|
|
918
892
|
stroke: F.value.style.chart.layout.arcs.gradient.color,
|
|
919
|
-
"stroke-width":
|
|
893
|
+
"stroke-width": dn(e).blur,
|
|
920
894
|
"stroke-linecap": "round",
|
|
921
895
|
class: g({
|
|
922
896
|
"vue-ui-galaxy-gradient": !0,
|
|
923
|
-
"vue-data-ui-transition":
|
|
897
|
+
"vue-data-ui-transition": S(Ft),
|
|
924
898
|
"vue-ui-galaxy-blur": O.value && O.value !== e.id && F.value.useBlurOnHover
|
|
925
899
|
})
|
|
926
|
-
}, null, 10,
|
|
900
|
+
}, null, 10, rt)], 8, nt)) : d("", !0)
|
|
927
901
|
]))), 128)),
|
|
928
902
|
(y(!0), f(Me, null, Be(K.value, (e, t) => (y(), f("g", null, [e.value ? (y(), f("path", {
|
|
929
903
|
key: 0,
|
|
@@ -933,13 +907,13 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
933
907
|
stroke: "transparent",
|
|
934
908
|
"stroke-width": F.value.style.chart.layout.arcs.strokeWidth + F.value.style.chart.layout.arcs.borderWidth,
|
|
935
909
|
"stroke-linecap": "round",
|
|
936
|
-
"aria-label": `${e.name}: ${
|
|
910
|
+
"aria-label": `${e.name}: ${S(c)({
|
|
937
911
|
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
938
912
|
v: e.value,
|
|
939
913
|
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
940
914
|
r: F.value.style.chart.tooltip.roundingValue
|
|
941
915
|
})}`,
|
|
942
|
-
onMouseenter: (n) =>
|
|
916
|
+
onMouseenter: (n) => yn({
|
|
943
917
|
datapoint: e,
|
|
944
918
|
relativeIndex: t,
|
|
945
919
|
seriesIndex: e.seriesIndex,
|
|
@@ -947,44 +921,44 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
947
921
|
triggerMode: "pointer",
|
|
948
922
|
flatIndex: t
|
|
949
923
|
}),
|
|
950
|
-
onMouseleave: (t) =>
|
|
951
|
-
onClick: (t) =>
|
|
952
|
-
}, null, 40,
|
|
924
|
+
onMouseleave: (t) => gn(e),
|
|
925
|
+
onClick: (t) => _n(e)
|
|
926
|
+
}, null, 40, it)) : d("", !0)]))), 256)),
|
|
953
927
|
x(e.$slots, "svg", { svg: {
|
|
954
928
|
...V.value,
|
|
955
|
-
isPrintingImg:
|
|
956
|
-
isPrintingSvg:
|
|
929
|
+
isPrintingImg: S(Ut) || S(Wt) || S(jn),
|
|
930
|
+
isPrintingSvg: S(Mn)
|
|
957
931
|
} }, void 0, !0)
|
|
958
|
-
], 46,
|
|
932
|
+
], 46, Xe)), e.$slots.hint ? (y(), f("div", at, [x(e.$slots, "hint", _(h({
|
|
959
933
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
960
934
|
isVisible: P.value
|
|
961
935
|
})), void 0, !0)])) : d("", !0)]),
|
|
962
|
-
e.$slots.watermark ? (y(), f("div",
|
|
963
|
-
p("div", { id: `legend-bottom-${
|
|
964
|
-
|
|
936
|
+
e.$slots.watermark ? (y(), f("div", ot, [x(e.$slots, "watermark", _(h({ isPrinting: S(Ut) || S(Wt) || S(jn) || S(Mn) })), void 0, !0)])) : d("", !0),
|
|
937
|
+
p("div", { id: `legend-bottom-${T.value}` }, null, 8, st),
|
|
938
|
+
At.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Ne, {
|
|
965
939
|
key: 6,
|
|
966
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
940
|
+
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
967
941
|
}, [p("div", {
|
|
968
942
|
ref_key: "chartLegend",
|
|
969
943
|
ref: Dt
|
|
970
944
|
}, [x(e.$slots, "legend", { legend: J.value }, () => [F.value.style.chart.legend.show ? (y(), u(Ae, {
|
|
971
945
|
key: `legend_${Tt.value}`,
|
|
972
946
|
legendSet: J.value,
|
|
973
|
-
config:
|
|
947
|
+
config: bn.value,
|
|
974
948
|
onClickMarker: t[0] ||= ({ legend: e }) => U(e)
|
|
975
949
|
}, {
|
|
976
|
-
item:
|
|
950
|
+
item: C(({ legend: e, index: t }) => [S(L) ? d("", !0) : (y(), f("div", {
|
|
977
951
|
key: 0,
|
|
978
952
|
onClick: (t) => U(e),
|
|
979
953
|
style: v(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
|
|
980
|
-
},
|
|
981
|
-
legendToggle:
|
|
954
|
+
}, He(e.display), 13, ct))]),
|
|
955
|
+
legendToggle: C(() => [J.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !S(L) ? (y(), u(Te, {
|
|
982
956
|
key: 0,
|
|
983
957
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
984
958
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
985
959
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
986
960
|
checked: H.value.length > 0,
|
|
987
|
-
onToggle:
|
|
961
|
+
onToggle: tn
|
|
988
962
|
}, null, 8, [
|
|
989
963
|
"backgroundColor",
|
|
990
964
|
"color",
|
|
@@ -999,9 +973,9 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
999
973
|
ref: Ot,
|
|
1000
974
|
dir: "auto"
|
|
1001
975
|
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
1002
|
-
Ie(
|
|
976
|
+
Ie(S(ut), {
|
|
1003
977
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1004
|
-
show:
|
|
978
|
+
show: B.value.showTooltip && D.value,
|
|
1005
979
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1006
980
|
color: F.value.style.chart.tooltip.color,
|
|
1007
981
|
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
@@ -1012,20 +986,20 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1012
986
|
position: F.value.style.chart.tooltip.position,
|
|
1013
987
|
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
1014
988
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1015
|
-
parent:
|
|
989
|
+
parent: E.value,
|
|
1016
990
|
content: xt.value,
|
|
1017
991
|
isFullscreen: q.value,
|
|
1018
|
-
isCustom:
|
|
992
|
+
isCustom: S(le)(F.value.style.chart.tooltip.customFormat),
|
|
1019
993
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
1020
994
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1021
995
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1022
996
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1023
|
-
isA11yMode:
|
|
1024
|
-
a11yPosition:
|
|
997
|
+
isA11yMode: Nt.value === "keyboard",
|
|
998
|
+
a11yPosition: Mt.value
|
|
1025
999
|
}, {
|
|
1026
|
-
"tooltip-before":
|
|
1027
|
-
tooltip:
|
|
1028
|
-
"tooltip-after":
|
|
1000
|
+
"tooltip-before": C(() => [x(e.$slots, "tooltip-before", _(h({ ...pn.value })), void 0, !0)]),
|
|
1001
|
+
tooltip: C(() => [x(e.$slots, "tooltip", _(h({ ...pn.value })), void 0, !0)]),
|
|
1002
|
+
"tooltip-after": C(() => [x(e.$slots, "tooltip-after", _(h({ ...pn.value })), void 0, !0)]),
|
|
1029
1003
|
_: 3
|
|
1030
1004
|
}, 8, [
|
|
1031
1005
|
"teleportTo",
|
|
@@ -1051,12 +1025,12 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1051
1025
|
"isA11yMode",
|
|
1052
1026
|
"a11yPosition"
|
|
1053
1027
|
]),
|
|
1054
|
-
|
|
1028
|
+
Pt.value && F.value.userOptions.buttons.table ? (y(), u(Ve(Q.value.component), Le({ key: 8 }, Q.value.props, {
|
|
1055
1029
|
ref_key: "tableUnit",
|
|
1056
|
-
ref:
|
|
1057
|
-
onClose:
|
|
1030
|
+
ref: j,
|
|
1031
|
+
onClose: En
|
|
1058
1032
|
}), Pe({
|
|
1059
|
-
content:
|
|
1033
|
+
content: C(() => [(y(), u(S(pt), {
|
|
1060
1034
|
key: `table_${wt.value}`,
|
|
1061
1035
|
colNames: X.value.colNames,
|
|
1062
1036
|
head: X.value.head,
|
|
@@ -1065,16 +1039,16 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1065
1039
|
title: F.value.table.useDialog ? "" : Q.value.title,
|
|
1066
1040
|
withCloseButton: !F.value.table.useDialog,
|
|
1067
1041
|
isCursorPointer: I.value,
|
|
1068
|
-
onClose:
|
|
1042
|
+
onClose: En
|
|
1069
1043
|
}, {
|
|
1070
|
-
th:
|
|
1044
|
+
th: C(({ th: e }) => [p("div", {
|
|
1071
1045
|
innerHTML: e,
|
|
1072
1046
|
style: {
|
|
1073
1047
|
display: "flex",
|
|
1074
1048
|
"align-items": "center"
|
|
1075
1049
|
}
|
|
1076
|
-
}, null, 8,
|
|
1077
|
-
td:
|
|
1050
|
+
}, null, 8, lt)]),
|
|
1051
|
+
td: C(({ td: e }) => [Fe(He(e.name || e), 1)]),
|
|
1078
1052
|
_: 1
|
|
1079
1053
|
}, 8, [
|
|
1080
1054
|
"colNames",
|
|
@@ -1088,24 +1062,24 @@ var We = /* @__PURE__ */ e({ default: () => lt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1088
1062
|
_: 2
|
|
1089
1063
|
}, [F.value.table.useDialog ? {
|
|
1090
1064
|
name: "title",
|
|
1091
|
-
fn:
|
|
1065
|
+
fn: C(() => [Fe(He(Q.value.title), 1)]),
|
|
1092
1066
|
key: "0"
|
|
1093
1067
|
} : void 0, F.value.table.useDialog ? {
|
|
1094
1068
|
name: "actions",
|
|
1095
|
-
fn:
|
|
1069
|
+
fn: C(() => [p("button", {
|
|
1096
1070
|
tabindex: "0",
|
|
1097
1071
|
class: "vue-ui-user-options-button",
|
|
1098
|
-
onClick: t[1] ||= (e) =>
|
|
1072
|
+
onClick: t[1] ||= (e) => xn(F.value.userOptions.callbacks.csv),
|
|
1099
1073
|
style: v({ cursor: I.value ? "pointer" : "default" })
|
|
1100
|
-
}, [Ie(
|
|
1074
|
+
}, [Ie(S(dt), {
|
|
1101
1075
|
name: "fileCsv",
|
|
1102
1076
|
stroke: Q.value.props.color
|
|
1103
1077
|
}, null, 8, ["stroke"])], 4)]),
|
|
1104
1078
|
key: "1"
|
|
1105
1079
|
} : void 0]), 1040)) : d("", !0),
|
|
1106
|
-
x(e.$slots, "skeleton", {}, () => [
|
|
1107
|
-
], 46,
|
|
1080
|
+
x(e.$slots, "skeleton", {}, () => [S(L) ? (y(), u(he, { key: 0 })) : d("", !0)], !0)
|
|
1081
|
+
], 46, Ke));
|
|
1108
1082
|
}
|
|
1109
|
-
}, [["__scopeId", "data-v-
|
|
1083
|
+
}, [["__scopeId", "data-v-29ce5588"]]);
|
|
1110
1084
|
//#endregion
|
|
1111
|
-
export {
|
|
1085
|
+
export { Ge as n, ut as t };
|