vue-data-ui 3.15.12 → 3.16.1
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 +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -0,0 +1,1012 @@
|
|
|
1
|
+
import { defineAsyncComponent as L, ref as n, computed as d, toRefs as Kt, onMounted as Yt, watch as Qe, openBlock as u, createElementBlock as p, unref as r, normalizeStyle as X, normalizeClass as le, createElementVNode as C, toDisplayString as ae, createBlock as $, createCommentVNode as h, withCtx as i, renderSlot as c, normalizeProps as b, guardReactiveProps as m, createSlots as Ze, createVNode as ke, Fragment as et, renderList as tt, Teleport as qt, resolveDynamicComponent as Jt, mergeProps as Qt, createTextVNode as lt, nextTick as oe } from "vue";
|
|
2
|
+
import { j as at, t as ot, o as Zt, q as nt, r as el, m as tl, p as ne, n as ll, a8 as st, s as al, ad as ol, k as ut, l as D, X as nl, T as rt, a0 as sl, a1 as ul, U as rl } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { b as il } from "./labelUtils-CqTHa20R.js";
|
|
4
|
+
import { t as cl, u as vl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as dl } from "./useConfig-DO94Aj5s.js";
|
|
6
|
+
import { u as hl, B as gl } from "./BaseScanner-BhhkKVoj.js";
|
|
7
|
+
import { u as pl } from "./usePrinter-CEpYU3r5.js";
|
|
8
|
+
import { u as fl } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as Ce } from "./useNestedProp-Bf5XFbs8.js";
|
|
10
|
+
import { u as yl } from "./useThemeCheck-D1ZYXUwG.js";
|
|
11
|
+
import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
+
import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
+
import kl from "./img-LXxMLmCg.js";
|
|
14
|
+
import Cl from "./Title-BeMKE1cj.js";
|
|
15
|
+
import wl from "./Legend-CS7Xo5LK.js";
|
|
16
|
+
import Tl from "./vue_ui_galaxy-D95AN4FT.js";
|
|
17
|
+
import { A as $l } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
|
+
import { B as xl } from "./BaseLegendToggle-BQVIawmA.js";
|
|
19
|
+
import { _ as Sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
+
const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative" } }, Ll = ["xmlns", "aria-describedby", "viewBox"], Dl = ["width", "height"], _l = ["id"], Fl = ["stdDeviation"], Nl = ["d", "stroke", "stroke-width"], Bl = ["d", "stroke", "stroke-width"], Vl = ["filter"], El = ["d", "stroke", "stroke-width"], Ml = ["data-a11y-serie-id", "d", "stroke-width", "aria-label", "onMouseenter", "onMouseleave", "onClick"], Rl = {
|
|
21
|
+
key: 0,
|
|
22
|
+
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
23
|
+
"data-dom-to-png-ignore": "",
|
|
24
|
+
"aria-hidden": "true"
|
|
25
|
+
}, Ul = {
|
|
26
|
+
key: 5,
|
|
27
|
+
class: "vue-data-ui-watermark"
|
|
28
|
+
}, zl = ["id"], Wl = ["onClick"], Gl = ["innerHTML"], Hl = {
|
|
29
|
+
__name: "vue-ui-galaxy",
|
|
30
|
+
props: {
|
|
31
|
+
config: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default() {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
dataset: {
|
|
38
|
+
type: Array,
|
|
39
|
+
default() {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
45
|
+
setup(it, { expose: ct, emit: vt }) {
|
|
46
|
+
const dt = L(() => import("./Tooltip-Bf-kM3_A.js")), ht = L(() => import("./BaseIcon-Cb3zzG6s.js")), gt = L(() => import("./vue-ui-accordion-nvggWcGN.js")), pt = L(() => import("./DataTable-DT2kIdQ6.js")), ft = L(() => import("./PenAndPaper-Ct3qJ4lA.js")), yt = L(() => import("./UserOptions-rW2fRf3V.js")), bt = L(() => import("./PackageVersion-DPO-OOVI.js")), mt = L(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_galaxy: kt } = dl(), { isThemeValid: Ct, warnInvalidTheme: wt } = yl(), T = it, k = n(at()), x = n(null), j = n(!1), se = n(""), P = n(null), we = n(0), Te = n(0), $e = n(0), xe = n(0), Se = n(null), Pe = n(null), Ae = n(null), Oe = n(null), M = n(null), K = n(null), Ie = n(!1), R = n(null), ue = n(null), Y = n(!1), q = n(!1), B = n(null), J = n(null), Le = n({ x: 0, y: 0 }), re = n("pointer"), Q = n(!1), De = d(() => !!T.dataset && T.dataset.length), e = n(ce()), U = d(() => e.value.userOptions.useCursorPointer), Tt = d(() => ot({
|
|
47
|
+
defaultConfig: {
|
|
48
|
+
userOptions: { show: !1 },
|
|
49
|
+
table: { show: !1 },
|
|
50
|
+
useCssAnimation: !1,
|
|
51
|
+
style: {
|
|
52
|
+
chart: {
|
|
53
|
+
backgroundColor: "#99999930",
|
|
54
|
+
legend: {
|
|
55
|
+
backgroundColor: "transparent"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
userConfig: e.value.skeletonConfig ?? {}
|
|
61
|
+
})), { loading: Z, FINAL_DATASET: _e } = hl({
|
|
62
|
+
...Kt(T),
|
|
63
|
+
FINAL_CONFIG: e,
|
|
64
|
+
prepareConfig: ce,
|
|
65
|
+
callback: () => {
|
|
66
|
+
Promise.resolve().then(async () => {
|
|
67
|
+
await oe(), f.value.showTable = e.value.table.show;
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
71
|
+
{ name: "_", values: [21], color: "#DBDBDB" },
|
|
72
|
+
{ name: "_", values: [13], color: "#C4C4C4" },
|
|
73
|
+
{ name: "_", values: [8], color: "#ADADAD" }
|
|
74
|
+
],
|
|
75
|
+
skeletonConfig: ot({
|
|
76
|
+
defaultConfig: e.value,
|
|
77
|
+
userConfig: Tt.value
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
Yt(() => {
|
|
81
|
+
Ie.value = !0, Ne();
|
|
82
|
+
});
|
|
83
|
+
const Fe = d(() => !!e.value.debug);
|
|
84
|
+
function Ne() {
|
|
85
|
+
if (Zt(T.dataset) ? nt({
|
|
86
|
+
componentName: "VueUiGalaxy",
|
|
87
|
+
type: "dataset",
|
|
88
|
+
debug: Fe.value
|
|
89
|
+
}) : T.dataset.forEach((t, a) => {
|
|
90
|
+
el({
|
|
91
|
+
datasetObject: t,
|
|
92
|
+
requiredAttributes: ["name", "values"]
|
|
93
|
+
}).forEach((l) => {
|
|
94
|
+
nt({
|
|
95
|
+
componentName: "VueUiGalaxy",
|
|
96
|
+
type: "datasetSerieAttribute",
|
|
97
|
+
property: l,
|
|
98
|
+
index: a,
|
|
99
|
+
debug: Fe.value
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}), e.value.responsive) {
|
|
103
|
+
const t = cl(() => {
|
|
104
|
+
const { width: a, height: l } = vl({
|
|
105
|
+
chart: x.value,
|
|
106
|
+
title: e.value.style.chart.title.text ? Se.value : null,
|
|
107
|
+
legend: e.value.style.chart.legend.show ? Pe.value : null,
|
|
108
|
+
noTitle: Oe.value,
|
|
109
|
+
source: Ae.value
|
|
110
|
+
});
|
|
111
|
+
requestAnimationFrame(() => {
|
|
112
|
+
ee.value = Math.max(0.1, a), te.value = Math.max(0.1, l - 12);
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
M.value && (K.value && M.value.unobserve(K.value), M.value.disconnect()), M.value = new ResizeObserver(t), K.value = x.value.parentNode, M.value.observe(K.value);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
const { userOptionsVisible: ie, setUserOptionsVisibility: Be, keepUserOptionState: Ve } = bl({ config: e.value }), { svgRef: _ } = ml({ config: e.value.style.chart.title });
|
|
119
|
+
function ce() {
|
|
120
|
+
const t = Ce({
|
|
121
|
+
userConfig: T.config,
|
|
122
|
+
defaultConfig: kt
|
|
123
|
+
}), a = t.theme;
|
|
124
|
+
if (!a) return t;
|
|
125
|
+
if (!Ct.value(t))
|
|
126
|
+
return wt(t), t;
|
|
127
|
+
const l = Ce({
|
|
128
|
+
userConfig: Tl[a] || T.config,
|
|
129
|
+
defaultConfig: t
|
|
130
|
+
}), o = Ce({
|
|
131
|
+
userConfig: T.config,
|
|
132
|
+
defaultConfig: l
|
|
133
|
+
});
|
|
134
|
+
return {
|
|
135
|
+
...o,
|
|
136
|
+
customPalette: o.customPalette.length ? o.customPalette : tl[a] || ne
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
Qe(() => T.config, (t) => {
|
|
140
|
+
e.value = ce(), ie.value = !e.value.userOptions.showOnChartHover, Ne(), Te.value += 1, $e.value += 1, xe.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
141
|
+
}, { deep: !0 });
|
|
142
|
+
const { isPrinting: ve, isImaging: de, generatePdf: Ee, generateImage: Me } = pl({
|
|
143
|
+
elementId: `galaxy_${k.value}`,
|
|
144
|
+
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
145
|
+
options: e.value.userOptions.print
|
|
146
|
+
}), $t = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), xt = d(() => ll(e.value.customPalette)), f = n({
|
|
147
|
+
dataLabels: {
|
|
148
|
+
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
149
|
+
},
|
|
150
|
+
showTable: e.value.table.show,
|
|
151
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
152
|
+
}), ee = n(250), te = n(180), St = n(0), Pt = n(0), A = d(() => ({
|
|
153
|
+
width: ee.value,
|
|
154
|
+
height: te.value,
|
|
155
|
+
viewBox: `${St.value} ${Pt.value} ${ee.value} ${te.value}`
|
|
156
|
+
})), he = vt, g = n([]);
|
|
157
|
+
function At() {
|
|
158
|
+
g.value.length ? g.value = [] : W.value.forEach((t) => {
|
|
159
|
+
g.value.push(t.id);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function z(t) {
|
|
163
|
+
g.value.includes(t.id) ? g.value = g.value.filter((a) => a !== t.id) : g.value.push(t.id), he("selectLegend", V.value.map((a) => ({
|
|
164
|
+
name: a.name,
|
|
165
|
+
color: a.color,
|
|
166
|
+
value: a.value
|
|
167
|
+
})));
|
|
168
|
+
}
|
|
169
|
+
function Re(t) {
|
|
170
|
+
if (!w.value.length)
|
|
171
|
+
return e.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null;
|
|
172
|
+
const a = w.value.find((l) => l.name === t);
|
|
173
|
+
return a || (e.value.debug && console.warn(`VueUiGalaxy - Series name not found "${t}"`), null);
|
|
174
|
+
}
|
|
175
|
+
function Ot(t) {
|
|
176
|
+
const a = Re(t);
|
|
177
|
+
a !== null && g.value.includes(a.id) && z({ id: a.id });
|
|
178
|
+
}
|
|
179
|
+
function It(t) {
|
|
180
|
+
const a = Re(t);
|
|
181
|
+
a !== null && (g.value.includes(a.id) || z({ id: a.id }));
|
|
182
|
+
}
|
|
183
|
+
const w = d(() => _e.value.map((t, a) => ({
|
|
184
|
+
name: t.name,
|
|
185
|
+
color: al(t.color) || xt.value[a] || ne[a] || ne[a % ne.length],
|
|
186
|
+
value: t.values ? st(t.values).reduce((l, o) => l + o, 0) : 0,
|
|
187
|
+
absoluteValues: st(t.values),
|
|
188
|
+
id: at()
|
|
189
|
+
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
190
|
+
...t,
|
|
191
|
+
absoluteIndex: a
|
|
192
|
+
})));
|
|
193
|
+
function Lt() {
|
|
194
|
+
return w.value.map((t) => ({
|
|
195
|
+
name: t.name,
|
|
196
|
+
color: t.color,
|
|
197
|
+
value: t.value
|
|
198
|
+
}));
|
|
199
|
+
}
|
|
200
|
+
const S = d(() => w.value.filter((t) => !g.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Ue = n(190), ze = d(() => w.value.filter((t) => !g.value.includes(t.id))), Dt = d(
|
|
201
|
+
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
202
|
+
), _t = d(() => ol({
|
|
203
|
+
maxPoints: Ue.value,
|
|
204
|
+
a: e.value.style.chart.layout.arcs.a ?? 6,
|
|
205
|
+
b: e.value.style.chart.layout.arcs.b ?? 6,
|
|
206
|
+
angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
|
|
207
|
+
startX: A.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
|
|
208
|
+
startY: A.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
|
|
209
|
+
boxWidth: A.value.width,
|
|
210
|
+
boxHeight: A.value.height,
|
|
211
|
+
padding: Dt.value
|
|
212
|
+
})), V = d(() => {
|
|
213
|
+
const t = [];
|
|
214
|
+
for (let a = 0; a < ze.value.length; a += 1) {
|
|
215
|
+
const l = ze.value[a], o = l.value / S.value * Ue.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
216
|
+
t.push({
|
|
217
|
+
points: o,
|
|
218
|
+
...l,
|
|
219
|
+
seriesIndex: a,
|
|
220
|
+
proportion: l.value / S.value,
|
|
221
|
+
path: _t.value(o)
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
return t.filter((a) => !g.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
225
|
+
});
|
|
226
|
+
function ge(t) {
|
|
227
|
+
const a = Math.min(ee.value, te.value), l = P.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, o = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, v = e.value.style.chart.layout.arcs.strokeWidth * l, s = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
228
|
+
return {
|
|
229
|
+
border: o / 180 * a,
|
|
230
|
+
path: v / 180 * a,
|
|
231
|
+
blur: s / 180 * a
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
const F = n(!1);
|
|
235
|
+
function We(t) {
|
|
236
|
+
F.value = t, we.value += 1;
|
|
237
|
+
}
|
|
238
|
+
const pe = n(null);
|
|
239
|
+
function fe() {
|
|
240
|
+
j.value = !1, P.value = null, B.value = null, J.value = null;
|
|
241
|
+
}
|
|
242
|
+
function Ft(t) {
|
|
243
|
+
if (!_.value || !t) return;
|
|
244
|
+
const a = _.value.querySelector(`[data-a11y-serie-id="${t}"]`);
|
|
245
|
+
if (!a) return;
|
|
246
|
+
const l = a.getBoundingClientRect();
|
|
247
|
+
Le.value = {
|
|
248
|
+
x: l.left + l.width / 2,
|
|
249
|
+
y: l.top + l.height / 2
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
function Nt(t) {
|
|
253
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex }), !(J.value === t.id && re.value === "keyboard") && (j.value = !1, P.value = null);
|
|
254
|
+
}
|
|
255
|
+
function Ge(t) {
|
|
256
|
+
he("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
257
|
+
}
|
|
258
|
+
function He({
|
|
259
|
+
val: t,
|
|
260
|
+
percentage: a,
|
|
261
|
+
showVal: l,
|
|
262
|
+
showPercentage: o
|
|
263
|
+
}) {
|
|
264
|
+
const v = e.value.style.chart.layout.labels.dataLabels;
|
|
265
|
+
return il({
|
|
266
|
+
config: v,
|
|
267
|
+
val: t,
|
|
268
|
+
percentage: a,
|
|
269
|
+
showVal: l,
|
|
270
|
+
showPercentage: o
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
function Xe({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: o = !1, triggerMode: v = "pointer", flatIndex: s = null }) {
|
|
274
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), !f.value.showTooltip) return;
|
|
275
|
+
re.value = v, B.value = s, J.value = t.id, pe.value = {
|
|
276
|
+
datapoint: t,
|
|
277
|
+
seriesIndex: l,
|
|
278
|
+
series: w.value,
|
|
279
|
+
config: e.value
|
|
280
|
+
}, j.value = o, P.value = t.id;
|
|
281
|
+
let y = "";
|
|
282
|
+
const I = e.value.style.chart.tooltip.customFormat;
|
|
283
|
+
rt(I) && rl(() => I({
|
|
284
|
+
seriesIndex: l,
|
|
285
|
+
datapoint: t,
|
|
286
|
+
series: w.value,
|
|
287
|
+
config: e.value
|
|
288
|
+
})) ? se.value = I({
|
|
289
|
+
seriesIndex: l,
|
|
290
|
+
datapoint: t,
|
|
291
|
+
series: w.value,
|
|
292
|
+
config: e.value
|
|
293
|
+
}) : (y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, y += `<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="${t.color}"/></svg>`, y += `<b>${He({
|
|
294
|
+
showVal: e.value.style.chart.tooltip.showValue,
|
|
295
|
+
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
296
|
+
val: ut(
|
|
297
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
298
|
+
t.value,
|
|
299
|
+
D({
|
|
300
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
301
|
+
v: t.value,
|
|
302
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
303
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
304
|
+
}),
|
|
305
|
+
{ datapoint: t, seriesIndex: l }
|
|
306
|
+
),
|
|
307
|
+
percentage: D({
|
|
308
|
+
v: t.proportion * 100,
|
|
309
|
+
s: "%",
|
|
310
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
311
|
+
})
|
|
312
|
+
})}</b></div>`, se.value = `<div>${y}</div>`), v === "keyboard" && oe(() => {
|
|
313
|
+
Ft(t.id);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
const W = d(() => w.value.map((t, a) => {
|
|
317
|
+
const l = ut(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, D({
|
|
318
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
319
|
+
v: t.value,
|
|
320
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
321
|
+
r: e.value.style.chart.legend.roundingValue
|
|
322
|
+
}), { datapoint: t, index: a }), o = isNaN(t.value / S.value) || g.value.includes(t.id) ? "-" : D({ v: t.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), v = He({
|
|
323
|
+
showVal: e.value.style.chart.legend.showValue,
|
|
324
|
+
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
325
|
+
val: l,
|
|
326
|
+
percentage: o
|
|
327
|
+
});
|
|
328
|
+
return {
|
|
329
|
+
...t,
|
|
330
|
+
proportion: (t.value || 0) / _e.value.map((s) => (s.values || []).reduce((y, I) => y + I, 0)).reduce((s, y) => s + y, 0),
|
|
331
|
+
opacity: g.value.includes(t.id) ? 0.5 : 1,
|
|
332
|
+
shape: t.shape || "circle",
|
|
333
|
+
segregate: () => z(t),
|
|
334
|
+
isSegregated: g.value.includes(t.id),
|
|
335
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${v}`
|
|
336
|
+
};
|
|
337
|
+
})), Bt = d(() => ({
|
|
338
|
+
cy: "galaxy-div-legend",
|
|
339
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
340
|
+
color: e.value.style.chart.legend.color,
|
|
341
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
342
|
+
paddingBottom: 12,
|
|
343
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
344
|
+
})), O = d(() => {
|
|
345
|
+
const t = V.value.map((l) => ({
|
|
346
|
+
name: l.name,
|
|
347
|
+
color: l.color
|
|
348
|
+
})), a = V.value.map((l) => l.value);
|
|
349
|
+
return { head: t, body: a };
|
|
350
|
+
});
|
|
351
|
+
function ye(t = null) {
|
|
352
|
+
oe(() => {
|
|
353
|
+
const a = O.value.head.map((v, s) => [[
|
|
354
|
+
v.name
|
|
355
|
+
], [O.value.body[s]], [isNaN(O.value.body[s] / S.value) ? "-" : O.value.body[s] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = sl(l);
|
|
356
|
+
t ? t(o) : ul({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
const E = d(() => {
|
|
360
|
+
const t = [
|
|
361
|
+
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
362
|
+
D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
363
|
+
"100%"
|
|
364
|
+
], a = O.value.head.map((v, s) => {
|
|
365
|
+
const y = D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: O.value.body[s], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
366
|
+
return [
|
|
367
|
+
{
|
|
368
|
+
color: v.color,
|
|
369
|
+
name: v.name
|
|
370
|
+
},
|
|
371
|
+
y,
|
|
372
|
+
isNaN(O.value.body[s] / S.value) ? "-" : D({
|
|
373
|
+
v: O.value.body[s] / S.value * 100,
|
|
374
|
+
s: "%",
|
|
375
|
+
r: e.value.table.td.roundingPercentage
|
|
376
|
+
})
|
|
377
|
+
];
|
|
378
|
+
}), l = {
|
|
379
|
+
th: {
|
|
380
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
381
|
+
color: e.value.table.th.color,
|
|
382
|
+
outline: e.value.table.th.outline
|
|
383
|
+
},
|
|
384
|
+
td: {
|
|
385
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
386
|
+
color: e.value.table.td.color,
|
|
387
|
+
outline: e.value.table.td.outline
|
|
388
|
+
},
|
|
389
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
390
|
+
};
|
|
391
|
+
return {
|
|
392
|
+
colNames: [
|
|
393
|
+
e.value.table.columnNames.series,
|
|
394
|
+
e.value.table.columnNames.value,
|
|
395
|
+
e.value.table.columnNames.percentage
|
|
396
|
+
],
|
|
397
|
+
head: t,
|
|
398
|
+
body: a,
|
|
399
|
+
config: l
|
|
400
|
+
};
|
|
401
|
+
});
|
|
402
|
+
function je() {
|
|
403
|
+
f.value.showTable = !f.value.showTable;
|
|
404
|
+
}
|
|
405
|
+
function Ke() {
|
|
406
|
+
f.value.showTooltip = !f.value.showTooltip;
|
|
407
|
+
}
|
|
408
|
+
const G = n(!1);
|
|
409
|
+
function be() {
|
|
410
|
+
G.value = !G.value;
|
|
411
|
+
}
|
|
412
|
+
async function Vt({ scale: t = 2 } = {}) {
|
|
413
|
+
if (!x.value) return;
|
|
414
|
+
const { width: a, height: l } = x.value.getBoundingClientRect(), o = a / l, { imageUri: v, base64: s } = await kl({ domElement: x.value, base64: !0, img: !0, scale: t });
|
|
415
|
+
return {
|
|
416
|
+
imageUri: v,
|
|
417
|
+
base64: s,
|
|
418
|
+
title: e.value.style.chart.title.text,
|
|
419
|
+
width: a,
|
|
420
|
+
height: l,
|
|
421
|
+
aspectRatio: o
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
const H = d(() => {
|
|
425
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = f.value.showTable;
|
|
426
|
+
return {
|
|
427
|
+
component: t ? mt : gt,
|
|
428
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
429
|
+
props: t ? {
|
|
430
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
431
|
+
color: e.value.table.th.color,
|
|
432
|
+
headerColor: e.value.table.th.color,
|
|
433
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
434
|
+
isFullscreen: F.value,
|
|
435
|
+
fullscreenParent: x.value,
|
|
436
|
+
forcedWidth: Math.min(500, window.innerWidth * 0.8),
|
|
437
|
+
isCursorPointer: U.value
|
|
438
|
+
} : {
|
|
439
|
+
hideDetails: !0,
|
|
440
|
+
config: {
|
|
441
|
+
open: a,
|
|
442
|
+
maxHeight: 1e4,
|
|
443
|
+
body: {
|
|
444
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
445
|
+
color: e.value.style.chart.color
|
|
446
|
+
},
|
|
447
|
+
head: {
|
|
448
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
449
|
+
color: e.value.style.chart.color
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
};
|
|
454
|
+
});
|
|
455
|
+
Qe(() => f.value.showTable, (t) => {
|
|
456
|
+
e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
|
|
457
|
+
});
|
|
458
|
+
function Ye() {
|
|
459
|
+
f.value.showTable = !1, ue.value && ue.value.setTableIconState(!1);
|
|
460
|
+
}
|
|
461
|
+
const Et = d(() => W.value.map((t) => ({
|
|
462
|
+
...t,
|
|
463
|
+
name: t.display
|
|
464
|
+
}))), Mt = d(() => e.value.style.chart.backgroundColor), Rt = d(() => e.value.style.chart.legend), Ut = d(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Wt } = fl({
|
|
465
|
+
svg: _,
|
|
466
|
+
title: Ut,
|
|
467
|
+
legend: Rt,
|
|
468
|
+
legendItems: Et,
|
|
469
|
+
backgroundColor: Mt
|
|
470
|
+
});
|
|
471
|
+
async function qe({ isCb: t }) {
|
|
472
|
+
q.value = !0, await oe();
|
|
473
|
+
try {
|
|
474
|
+
if (t) {
|
|
475
|
+
const { blob: a, url: l, text: o, dataUrl: v } = await Wt();
|
|
476
|
+
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: v }));
|
|
477
|
+
} else
|
|
478
|
+
await Promise.resolve(zt());
|
|
479
|
+
} finally {
|
|
480
|
+
q.value = !1;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
function Gt(t) {
|
|
484
|
+
if (t?.stage === "start") {
|
|
485
|
+
Y.value = !0;
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (t?.stage === "end") {
|
|
489
|
+
Y.value = !1;
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
Me();
|
|
493
|
+
}
|
|
494
|
+
async function Je() {
|
|
495
|
+
if (he("copyAlt", {
|
|
496
|
+
config: e.value,
|
|
497
|
+
dataset: w.value
|
|
498
|
+
}), !e.value.userOptions.callbacks.altCopy) {
|
|
499
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
503
|
+
config: e.value,
|
|
504
|
+
dataset: w.value
|
|
505
|
+
}));
|
|
506
|
+
}
|
|
507
|
+
function Ht() {
|
|
508
|
+
B.value = null, J.value = null, Q.value = !0;
|
|
509
|
+
}
|
|
510
|
+
function Xt() {
|
|
511
|
+
fe(), Q.value = !1;
|
|
512
|
+
}
|
|
513
|
+
function jt(t) {
|
|
514
|
+
if (!_.value || G.value || document.activeElement !== _.value || !N.value.length) return;
|
|
515
|
+
const a = t.key === "ArrowLeft" || t.key === "ArrowUp", l = t.key === "ArrowRight" || t.key === "ArrowDown", o = t.key === "Enter" || t.key === " ", v = t.key === "Escape";
|
|
516
|
+
if (!a && !l && !o && !v) return;
|
|
517
|
+
if (t.preventDefault(), t.stopPropagation(), v) {
|
|
518
|
+
fe();
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
if (o) {
|
|
522
|
+
if (B.value === null) return;
|
|
523
|
+
const I = N.value[B.value];
|
|
524
|
+
if (!I) return;
|
|
525
|
+
Ge(I.datapoint);
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
let s = B.value;
|
|
529
|
+
s === null || s < 0 || s >= N.value.length ? s = l ? 0 : N.value.length - 1 : (s += l ? 1 : -1, s < 0 && (s = N.value.length - 1), s >= N.value.length && (s = 0));
|
|
530
|
+
const y = N.value[s];
|
|
531
|
+
y && Xe({
|
|
532
|
+
datapoint: y.datapoint,
|
|
533
|
+
seriesIndex: y.datapoint.seriesIndex,
|
|
534
|
+
show: !0,
|
|
535
|
+
triggerMode: "keyboard",
|
|
536
|
+
flatIndex: s
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
const me = d(() => {
|
|
540
|
+
const t = E.value?.colNames ?? [], a = E.value?.body ?? [];
|
|
541
|
+
return { headers: t, rows: a };
|
|
542
|
+
}), N = d(() => V.value.map((t, a) => ({
|
|
543
|
+
datapoint: t,
|
|
544
|
+
index: a
|
|
545
|
+
})));
|
|
546
|
+
return ct({
|
|
547
|
+
getData: Lt,
|
|
548
|
+
getImage: Vt,
|
|
549
|
+
generatePdf: Ee,
|
|
550
|
+
generateCsv: ye,
|
|
551
|
+
generateImage: Me,
|
|
552
|
+
generateSvg: qe,
|
|
553
|
+
hideSeries: It,
|
|
554
|
+
showSeries: Ot,
|
|
555
|
+
toggleTable: je,
|
|
556
|
+
toggleTooltip: Ke,
|
|
557
|
+
toggleAnnotator: be,
|
|
558
|
+
toggleFullscreen: We,
|
|
559
|
+
copyAlt: Je
|
|
560
|
+
}), (t, a) => (u(), p("div", {
|
|
561
|
+
ref_key: "galaxyChart",
|
|
562
|
+
ref: x,
|
|
563
|
+
class: le(`vue-data-ui-component vue-ui-galaxy ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${r(Z) ? "loading" : ""}`),
|
|
564
|
+
style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
565
|
+
id: `galaxy_${k.value}`,
|
|
566
|
+
onMouseenter: a[2] || (a[2] = () => r(Be)(!0)),
|
|
567
|
+
onMouseleave: a[3] || (a[3] = () => {
|
|
568
|
+
r(Be)(!1), Q.value || fe();
|
|
569
|
+
})
|
|
570
|
+
}, [
|
|
571
|
+
C("div", {
|
|
572
|
+
id: `chart-instructions-${k.value}`,
|
|
573
|
+
class: "sr-only"
|
|
574
|
+
}, [
|
|
575
|
+
C("p", null, ae(e.value.a11y.translations.keyboardNavigation), 1)
|
|
576
|
+
], 8, Al),
|
|
577
|
+
me.value?.rows?.length ? (u(), $($l, {
|
|
578
|
+
key: 0,
|
|
579
|
+
uid: k.value,
|
|
580
|
+
head: me.value.headers,
|
|
581
|
+
body: me.value.rows,
|
|
582
|
+
notice: e.value.a11y.translations.tableAvailable,
|
|
583
|
+
caption: e.value.a11y.translations.tableCaption
|
|
584
|
+
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : h("", !0),
|
|
585
|
+
e.value.userOptions.buttons.annotator ? (u(), $(r(ft), {
|
|
586
|
+
key: 1,
|
|
587
|
+
svgRef: r(_),
|
|
588
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
589
|
+
color: e.value.style.chart.color,
|
|
590
|
+
active: G.value,
|
|
591
|
+
isCursorPointer: U.value,
|
|
592
|
+
onClose: be
|
|
593
|
+
}, {
|
|
594
|
+
"annotator-action-close": i(() => [
|
|
595
|
+
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
596
|
+
]),
|
|
597
|
+
"annotator-action-color": i(({ color: l }) => [
|
|
598
|
+
c(t.$slots, "annotator-action-color", b(m({ color: l })), void 0, !0)
|
|
599
|
+
]),
|
|
600
|
+
"annotator-action-draw": i(({ mode: l }) => [
|
|
601
|
+
c(t.$slots, "annotator-action-draw", b(m({ mode: l })), void 0, !0)
|
|
602
|
+
]),
|
|
603
|
+
"annotator-action-undo": i(({ disabled: l }) => [
|
|
604
|
+
c(t.$slots, "annotator-action-undo", b(m({ disabled: l })), void 0, !0)
|
|
605
|
+
]),
|
|
606
|
+
"annotator-action-redo": i(({ disabled: l }) => [
|
|
607
|
+
c(t.$slots, "annotator-action-redo", b(m({ disabled: l })), void 0, !0)
|
|
608
|
+
]),
|
|
609
|
+
"annotator-action-delete": i(({ disabled: l }) => [
|
|
610
|
+
c(t.$slots, "annotator-action-delete", b(m({ disabled: l })), void 0, !0)
|
|
611
|
+
]),
|
|
612
|
+
_: 3
|
|
613
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : h("", !0),
|
|
614
|
+
$t.value ? (u(), p("div", {
|
|
615
|
+
key: 2,
|
|
616
|
+
ref_key: "noTitle",
|
|
617
|
+
ref: Oe,
|
|
618
|
+
class: "vue-data-ui-no-title-space",
|
|
619
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
620
|
+
}, null, 512)) : h("", !0),
|
|
621
|
+
e.value.style.chart.title.text ? (u(), p("div", {
|
|
622
|
+
key: 3,
|
|
623
|
+
ref_key: "chartTitle",
|
|
624
|
+
ref: Se,
|
|
625
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
626
|
+
}, [
|
|
627
|
+
(u(), $(Cl, {
|
|
628
|
+
key: `title_${Te.value}`,
|
|
629
|
+
config: {
|
|
630
|
+
title: {
|
|
631
|
+
cy: "galaxy-div-title",
|
|
632
|
+
...e.value.style.chart.title
|
|
633
|
+
},
|
|
634
|
+
subtitle: {
|
|
635
|
+
cy: "galaxy-div-subtitle",
|
|
636
|
+
...e.value.style.chart.title.subtitle
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}, null, 8, ["config"]))
|
|
640
|
+
], 512)) : h("", !0),
|
|
641
|
+
C("div", {
|
|
642
|
+
id: `legend-top-${k.value}`
|
|
643
|
+
}, null, 8, Ol),
|
|
644
|
+
e.value.userOptions.show && De.value && (r(Ve) || r(ie)) ? (u(), $(r(yt), {
|
|
645
|
+
ref_key: "userOptionsRef",
|
|
646
|
+
ref: ue,
|
|
647
|
+
key: `user_option_${we.value}`,
|
|
648
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
649
|
+
color: e.value.style.chart.color,
|
|
650
|
+
isPrinting: r(ve),
|
|
651
|
+
isImaging: r(de),
|
|
652
|
+
uid: k.value,
|
|
653
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
654
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
655
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
656
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
657
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
658
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
659
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
660
|
+
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
661
|
+
isTooltip: f.value.showTooltip,
|
|
662
|
+
isFullscreen: F.value,
|
|
663
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
664
|
+
chartElement: x.value,
|
|
665
|
+
position: e.value.userOptions.position,
|
|
666
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
667
|
+
isAnnotation: G.value,
|
|
668
|
+
callbacks: e.value.userOptions.callbacks,
|
|
669
|
+
printScale: e.value.userOptions.print.scale,
|
|
670
|
+
tableDialog: e.value.table.useDialog,
|
|
671
|
+
isCursorPointer: U.value,
|
|
672
|
+
onToggleFullscreen: We,
|
|
673
|
+
onGeneratePdf: r(Ee),
|
|
674
|
+
onGenerateCsv: ye,
|
|
675
|
+
onGenerateImage: Gt,
|
|
676
|
+
onGenerateSvg: qe,
|
|
677
|
+
onToggleTable: je,
|
|
678
|
+
onToggleTooltip: Ke,
|
|
679
|
+
onToggleAnnotator: be,
|
|
680
|
+
onCopyAlt: Je,
|
|
681
|
+
style: X({
|
|
682
|
+
visibility: r(Ve) ? r(ie) ? "visible" : "hidden" : "visible"
|
|
683
|
+
})
|
|
684
|
+
}, Ze({ _: 2 }, [
|
|
685
|
+
t.$slots.menuIcon ? {
|
|
686
|
+
name: "menuIcon",
|
|
687
|
+
fn: i(({ isOpen: l, color: o }) => [
|
|
688
|
+
c(t.$slots, "menuIcon", b(m({ isOpen: l, color: o })), void 0, !0)
|
|
689
|
+
]),
|
|
690
|
+
key: "0"
|
|
691
|
+
} : void 0,
|
|
692
|
+
t.$slots.optionTooltip ? {
|
|
693
|
+
name: "optionTooltip",
|
|
694
|
+
fn: i(() => [
|
|
695
|
+
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
696
|
+
]),
|
|
697
|
+
key: "1"
|
|
698
|
+
} : void 0,
|
|
699
|
+
t.$slots.optionPdf ? {
|
|
700
|
+
name: "optionPdf",
|
|
701
|
+
fn: i(() => [
|
|
702
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
703
|
+
]),
|
|
704
|
+
key: "2"
|
|
705
|
+
} : void 0,
|
|
706
|
+
t.$slots.optionCsv ? {
|
|
707
|
+
name: "optionCsv",
|
|
708
|
+
fn: i(() => [
|
|
709
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
710
|
+
]),
|
|
711
|
+
key: "3"
|
|
712
|
+
} : void 0,
|
|
713
|
+
t.$slots.optionImg ? {
|
|
714
|
+
name: "optionImg",
|
|
715
|
+
fn: i(() => [
|
|
716
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
717
|
+
]),
|
|
718
|
+
key: "4"
|
|
719
|
+
} : void 0,
|
|
720
|
+
t.$slots.optionSvg ? {
|
|
721
|
+
name: "optionSvg",
|
|
722
|
+
fn: i(() => [
|
|
723
|
+
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
724
|
+
]),
|
|
725
|
+
key: "5"
|
|
726
|
+
} : void 0,
|
|
727
|
+
t.$slots.optionTable ? {
|
|
728
|
+
name: "optionTable",
|
|
729
|
+
fn: i(() => [
|
|
730
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
731
|
+
]),
|
|
732
|
+
key: "6"
|
|
733
|
+
} : void 0,
|
|
734
|
+
t.$slots.optionFullscreen ? {
|
|
735
|
+
name: "optionFullscreen",
|
|
736
|
+
fn: i(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
737
|
+
c(t.$slots, "optionFullscreen", b(m({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
738
|
+
]),
|
|
739
|
+
key: "7"
|
|
740
|
+
} : void 0,
|
|
741
|
+
t.$slots.optionAnnotator ? {
|
|
742
|
+
name: "optionAnnotator",
|
|
743
|
+
fn: i(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
744
|
+
c(t.$slots, "optionAnnotator", b(m({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
745
|
+
]),
|
|
746
|
+
key: "8"
|
|
747
|
+
} : void 0,
|
|
748
|
+
t.$slots.optionAltCopy ? {
|
|
749
|
+
name: "optionAltCopy",
|
|
750
|
+
fn: i(({ altCopy: l }) => [
|
|
751
|
+
c(t.$slots, "optionAltCopy", b(m({ altCopy: l })), void 0, !0)
|
|
752
|
+
]),
|
|
753
|
+
key: "9"
|
|
754
|
+
} : void 0
|
|
755
|
+
]), 1032, ["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"])) : h("", !0),
|
|
756
|
+
C("div", Il, [
|
|
757
|
+
(u(), p("svg", {
|
|
758
|
+
ref_key: "svgRef",
|
|
759
|
+
ref: _,
|
|
760
|
+
xmlns: r(nl),
|
|
761
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
762
|
+
class: le({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
763
|
+
viewBox: A.value.viewBox,
|
|
764
|
+
style: X(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`),
|
|
765
|
+
tabindex: "0",
|
|
766
|
+
onFocus: Ht,
|
|
767
|
+
onBlur: Xt,
|
|
768
|
+
onKeydown: jt
|
|
769
|
+
}, [
|
|
770
|
+
ke(r(bt)),
|
|
771
|
+
t.$slots["chart-background"] ? (u(), p("foreignObject", {
|
|
772
|
+
key: 0,
|
|
773
|
+
x: 0,
|
|
774
|
+
y: 0,
|
|
775
|
+
width: A.value.width,
|
|
776
|
+
height: A.value.height,
|
|
777
|
+
style: {
|
|
778
|
+
pointerEvents: "none"
|
|
779
|
+
}
|
|
780
|
+
}, [
|
|
781
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
782
|
+
], 8, Dl)) : h("", !0),
|
|
783
|
+
C("defs", null, [
|
|
784
|
+
C("filter", {
|
|
785
|
+
id: `blur_${k.value}`,
|
|
786
|
+
x: "-50%",
|
|
787
|
+
y: "-50%",
|
|
788
|
+
width: "200%",
|
|
789
|
+
height: "200%"
|
|
790
|
+
}, [
|
|
791
|
+
C("feGaussianBlur", {
|
|
792
|
+
in: "SourceGraphic",
|
|
793
|
+
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
794
|
+
}, null, 8, Fl)
|
|
795
|
+
], 8, _l)
|
|
796
|
+
]),
|
|
797
|
+
(u(!0), p(et, null, tt(V.value, (l) => (u(), p("g", null, [
|
|
798
|
+
l.value ? (u(), p("path", {
|
|
799
|
+
key: 0,
|
|
800
|
+
d: l.path,
|
|
801
|
+
fill: "none",
|
|
802
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
803
|
+
"stroke-width": ge(l).border,
|
|
804
|
+
"stroke-linecap": "round"
|
|
805
|
+
}, null, 8, Nl)) : h("", !0),
|
|
806
|
+
l.value ? (u(), p("path", {
|
|
807
|
+
key: 1,
|
|
808
|
+
d: l.path,
|
|
809
|
+
fill: "none",
|
|
810
|
+
stroke: l.color,
|
|
811
|
+
"stroke-width": ge(l).path,
|
|
812
|
+
"stroke-linecap": "round",
|
|
813
|
+
class: le(`${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
814
|
+
}, null, 10, Bl)) : h("", !0),
|
|
815
|
+
l.value && e.value.style.chart.layout.arcs.gradient.show ? (u(), p("g", {
|
|
816
|
+
key: 2,
|
|
817
|
+
filter: `url(#blur_${k.value})`
|
|
818
|
+
}, [
|
|
819
|
+
C("path", {
|
|
820
|
+
d: l.path,
|
|
821
|
+
fill: "none",
|
|
822
|
+
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
823
|
+
"stroke-width": ge(l).blur,
|
|
824
|
+
"stroke-linecap": "round",
|
|
825
|
+
class: le(`vue-ui-galaxy-gradient ${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
826
|
+
}, null, 10, El)
|
|
827
|
+
], 8, Vl)) : h("", !0)
|
|
828
|
+
]))), 256)),
|
|
829
|
+
(u(!0), p(et, null, tt(V.value, (l, o) => (u(), p("g", null, [
|
|
830
|
+
l.value ? (u(), p("path", {
|
|
831
|
+
key: 0,
|
|
832
|
+
"data-a11y-serie-id": l.id,
|
|
833
|
+
d: l.path,
|
|
834
|
+
fill: "none",
|
|
835
|
+
stroke: "transparent",
|
|
836
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
837
|
+
"stroke-linecap": "round",
|
|
838
|
+
"aria-label": `${l.name}: ${r(D)({
|
|
839
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
840
|
+
v: l.value,
|
|
841
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
842
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
843
|
+
})}`,
|
|
844
|
+
onMouseenter: (v) => Xe({
|
|
845
|
+
datapoint: l,
|
|
846
|
+
seriesIndex: l.seriesIndex,
|
|
847
|
+
show: !0,
|
|
848
|
+
triggerMode: "pointer",
|
|
849
|
+
flatIndex: o
|
|
850
|
+
}),
|
|
851
|
+
onMouseleave: (v) => Nt(l),
|
|
852
|
+
onClick: (v) => Ge(l)
|
|
853
|
+
}, null, 40, Ml)) : h("", !0)
|
|
854
|
+
]))), 256)),
|
|
855
|
+
c(t.$slots, "svg", {
|
|
856
|
+
svg: {
|
|
857
|
+
...A.value,
|
|
858
|
+
isPrintingImg: r(ve) | r(de) | Y.value,
|
|
859
|
+
isPrintingSvg: q.value
|
|
860
|
+
}
|
|
861
|
+
}, void 0, !0)
|
|
862
|
+
], 46, Ll)),
|
|
863
|
+
t.$slots.hint ? (u(), p("div", Rl, [
|
|
864
|
+
c(t.$slots, "hint", b(m({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Q.value })), void 0, !0)
|
|
865
|
+
])) : h("", !0)
|
|
866
|
+
]),
|
|
867
|
+
t.$slots.watermark ? (u(), p("div", Ul, [
|
|
868
|
+
c(t.$slots, "watermark", b(m({ isPrinting: r(ve) || r(de) || Y.value || q.value })), void 0, !0)
|
|
869
|
+
])) : h("", !0),
|
|
870
|
+
C("div", {
|
|
871
|
+
id: `legend-bottom-${k.value}`
|
|
872
|
+
}, null, 8, zl),
|
|
873
|
+
Ie.value ? (u(), $(qt, {
|
|
874
|
+
key: 6,
|
|
875
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
876
|
+
}, [
|
|
877
|
+
C("div", {
|
|
878
|
+
ref_key: "chartLegend",
|
|
879
|
+
ref: Pe
|
|
880
|
+
}, [
|
|
881
|
+
e.value.style.chart.legend.show ? (u(), $(wl, {
|
|
882
|
+
key: `legend_${xe.value}`,
|
|
883
|
+
legendSet: W.value,
|
|
884
|
+
config: Bt.value,
|
|
885
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => z(l))
|
|
886
|
+
}, {
|
|
887
|
+
item: i(({ legend: l, index: o }) => [
|
|
888
|
+
r(Z) ? h("", !0) : (u(), p("div", {
|
|
889
|
+
key: 0,
|
|
890
|
+
onClick: (v) => z(l),
|
|
891
|
+
style: X(`opacity:${g.value.includes(l.id) ? 0.5 : 1}`)
|
|
892
|
+
}, ae(l.display), 13, Wl))
|
|
893
|
+
]),
|
|
894
|
+
legendToggle: i(() => [
|
|
895
|
+
W.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !r(Z) ? (u(), $(xl, {
|
|
896
|
+
key: 0,
|
|
897
|
+
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
898
|
+
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
899
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
900
|
+
checked: g.value.length > 0,
|
|
901
|
+
onToggle: At
|
|
902
|
+
}, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : h("", !0)
|
|
903
|
+
]),
|
|
904
|
+
_: 1
|
|
905
|
+
}, 8, ["legendSet", "config"])) : h("", !0),
|
|
906
|
+
c(t.$slots, "legend", { legend: W.value }, void 0, !0)
|
|
907
|
+
], 512)
|
|
908
|
+
], 8, ["to"])) : h("", !0),
|
|
909
|
+
t.$slots.source ? (u(), p("div", {
|
|
910
|
+
key: 7,
|
|
911
|
+
ref_key: "source",
|
|
912
|
+
ref: Ae,
|
|
913
|
+
dir: "auto"
|
|
914
|
+
}, [
|
|
915
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
916
|
+
], 512)) : h("", !0),
|
|
917
|
+
ke(r(dt), {
|
|
918
|
+
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
919
|
+
show: f.value.showTooltip && j.value,
|
|
920
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
921
|
+
color: e.value.style.chart.tooltip.color,
|
|
922
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
923
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
924
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
925
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
926
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
927
|
+
position: e.value.style.chart.tooltip.position,
|
|
928
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
929
|
+
parent: x.value,
|
|
930
|
+
content: se.value,
|
|
931
|
+
isFullscreen: F.value,
|
|
932
|
+
isCustom: r(rt)(e.value.style.chart.tooltip.customFormat),
|
|
933
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
934
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
935
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
936
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
|
|
937
|
+
isA11yMode: re.value === "keyboard",
|
|
938
|
+
a11yPosition: Le.value
|
|
939
|
+
}, {
|
|
940
|
+
"tooltip-before": i(() => [
|
|
941
|
+
c(t.$slots, "tooltip-before", b(m({ ...pe.value })), void 0, !0)
|
|
942
|
+
]),
|
|
943
|
+
"tooltip-after": i(() => [
|
|
944
|
+
c(t.$slots, "tooltip-after", b(m({ ...pe.value })), void 0, !0)
|
|
945
|
+
]),
|
|
946
|
+
_: 3
|
|
947
|
+
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
948
|
+
De.value && e.value.userOptions.buttons.table ? (u(), $(Jt(H.value.component), Qt({ key: 8 }, H.value.props, {
|
|
949
|
+
ref_key: "tableUnit",
|
|
950
|
+
ref: R,
|
|
951
|
+
onClose: Ye
|
|
952
|
+
}), Ze({
|
|
953
|
+
content: i(() => [
|
|
954
|
+
(u(), $(r(pt), {
|
|
955
|
+
key: `table_${$e.value}`,
|
|
956
|
+
colNames: E.value.colNames,
|
|
957
|
+
head: E.value.head,
|
|
958
|
+
body: E.value.body,
|
|
959
|
+
config: E.value.config,
|
|
960
|
+
title: e.value.table.useDialog ? "" : H.value.title,
|
|
961
|
+
withCloseButton: !e.value.table.useDialog,
|
|
962
|
+
isCursorPointer: U.value,
|
|
963
|
+
onClose: Ye
|
|
964
|
+
}, {
|
|
965
|
+
th: i(({ th: l }) => [
|
|
966
|
+
C("div", {
|
|
967
|
+
innerHTML: l,
|
|
968
|
+
style: { display: "flex", "align-items": "center" }
|
|
969
|
+
}, null, 8, Gl)
|
|
970
|
+
]),
|
|
971
|
+
td: i(({ td: l }) => [
|
|
972
|
+
lt(ae(l.name || l), 1)
|
|
973
|
+
]),
|
|
974
|
+
_: 1
|
|
975
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
976
|
+
]),
|
|
977
|
+
_: 2
|
|
978
|
+
}, [
|
|
979
|
+
e.value.table.useDialog ? {
|
|
980
|
+
name: "title",
|
|
981
|
+
fn: i(() => [
|
|
982
|
+
lt(ae(H.value.title), 1)
|
|
983
|
+
]),
|
|
984
|
+
key: "0"
|
|
985
|
+
} : void 0,
|
|
986
|
+
e.value.table.useDialog ? {
|
|
987
|
+
name: "actions",
|
|
988
|
+
fn: i(() => [
|
|
989
|
+
C("button", {
|
|
990
|
+
tabindex: "0",
|
|
991
|
+
class: "vue-ui-user-options-button",
|
|
992
|
+
onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv)),
|
|
993
|
+
style: X({ cursor: U.value ? "pointer" : "default" })
|
|
994
|
+
}, [
|
|
995
|
+
ke(r(ht), {
|
|
996
|
+
name: "fileCsv",
|
|
997
|
+
stroke: H.value.props.color
|
|
998
|
+
}, null, 8, ["stroke"])
|
|
999
|
+
], 4)
|
|
1000
|
+
]),
|
|
1001
|
+
key: "1"
|
|
1002
|
+
} : void 0
|
|
1003
|
+
]), 1040)) : h("", !0),
|
|
1004
|
+
c(t.$slots, "skeleton", {}, () => [
|
|
1005
|
+
r(Z) ? (u(), $(gl, { key: 0 })) : h("", !0)
|
|
1006
|
+
], !0)
|
|
1007
|
+
], 46, Pl));
|
|
1008
|
+
}
|
|
1009
|
+
}, va = /* @__PURE__ */ Sl(Hl, [["__scopeId", "data-v-8cc4168c"]]);
|
|
1010
|
+
export {
|
|
1011
|
+
va as default
|
|
1012
|
+
};
|