vue-data-ui 3.20.10 → 3.21.0
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-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/SlicerPreview-CXLgqXX8.js +1676 -0
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/style.css +1 -1
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-R-aXpHvF.js} +86 -86
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +6 -2
- package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-DmMi_eVe.js +0 -1757
- package/dist/vue-ui-age-pyramid-CbJDodNj.js +0 -1238
- package/dist/vue-ui-bullet-rCmOch09.js +0 -710
- package/dist/vue-ui-carousel-table-DFUP6c1B.js +0 -455
- package/dist/vue-ui-chestnut-DKNsQA7h.js +0 -2010
- package/dist/vue-ui-chord-BMkz02R6.js +0 -1391
- package/dist/vue-ui-donut-BLlR2VgI.js +0 -2410
- package/dist/vue-ui-donut-evolution-kXDchwtH.js +0 -1510
- package/dist/vue-ui-dumbbell-BWuXbccQ.js +0 -1530
- package/dist/vue-ui-gauge-NSzY9L6X.js +0 -920
- package/dist/vue-ui-horizontal-bar-mmoqYnkA.js +0 -1681
- package/dist/vue-ui-molecule-QoXYCfyP.js +0 -925
- package/dist/vue-ui-radar-TfxsgQrA.js +0 -1229
- package/dist/vue-ui-relation-circle-CMqV9U6C.js +0 -924
- package/dist/vue-ui-scatter-8nirnHQi.js +0 -2413
- package/dist/vue-ui-sparkline-DPZm7RqN.js +0 -1507
- package/dist/vue-ui-stackline-6agFEYxZ.js +0 -2398
- package/dist/vue-ui-xy-C0kcCaFA.js +0 -4747
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as t, G as n, H as r, Ht as i, J as a, Mt as o, N as s, Ot as c, S as ee, Tt as te, X as ne, ct as re, ht as ie, i as ae, it as oe, t as se, x as ce, y as le } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as ue } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
-
import { t as de } from "./usePrinter-
|
|
4
|
+
import { t as de } from "./usePrinter-6n2MzVyV.js";
|
|
5
5
|
import { n as fe, t as pe } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
6
|
import { t as me } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as he } from "./useNestedProp-
|
|
7
|
+
import { t as he } from "./useNestedProp-DtcXIg7n.js";
|
|
8
8
|
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as _e } from "./img-
|
|
10
|
-
import { n as ve } from "./Title-
|
|
9
|
+
import { t as _e } from "./img-C_RNNswI.js";
|
|
10
|
+
import { n as ve } from "./Title-DH6G8_cZ.js";
|
|
11
11
|
import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as be } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as xe } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as Se } from "./BaseLegendToggle-
|
|
14
|
+
import { t as Se } from "./BaseLegendToggle-BNRi408o.js";
|
|
15
15
|
import { t as Ce } from "./A11yDataTable-BCbtxMU6.js";
|
|
16
16
|
import { t as we } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Ee } from "./labelUtils-
|
|
19
|
-
import { t as De } from "./Legend-
|
|
18
|
+
import { t as Ee } from "./labelUtils-Bycs-017.js";
|
|
19
|
+
import { t as De } from "./Legend-BLhREbj7.js";
|
|
20
20
|
import { t as Oe } from "./vue_ui_galaxy-Ig0cc1_h.js";
|
|
21
|
-
import { Fragment as ke, Teleport as Ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Pe, nextTick as g, normalizeClass as Fe, normalizeProps as _, normalizeStyle as v, onMounted as Ie, openBlock as y, ref as b, renderList as Le, renderSlot as x, resolveDynamicComponent as Re, toDisplayString as
|
|
21
|
+
import { Fragment as ke, Teleport as Ae, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Pe, nextTick as g, normalizeClass as Fe, normalizeProps as _, normalizeStyle as v, onMounted as Ie, openBlock as y, ref as b, renderList as Le, renderSlot as x, resolveDynamicComponent as Re, toDisplayString as ze, toRefs as Be, unref as S, watch as Ve, withCtx as C } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-galaxy.vue
|
|
23
|
-
var
|
|
23
|
+
var He = /* @__PURE__ */ e({ default: () => st }), Ue = ["id"], We = ["id"], Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
24
24
|
"xmlns",
|
|
25
25
|
"aria-describedby",
|
|
26
26
|
"viewBox"
|
|
27
|
-
],
|
|
27
|
+
], Je = ["width", "height"], Ye = ["id"], Xe = ["stdDeviation"], Ze = [
|
|
28
28
|
"d",
|
|
29
29
|
"stroke",
|
|
30
30
|
"stroke-width"
|
|
31
|
-
],
|
|
31
|
+
], Qe = [
|
|
32
32
|
"d",
|
|
33
33
|
"stroke",
|
|
34
34
|
"stroke-width"
|
|
35
|
-
],
|
|
35
|
+
], $e = ["filter"], et = [
|
|
36
36
|
"d",
|
|
37
37
|
"stroke",
|
|
38
38
|
"stroke-width"
|
|
39
|
-
],
|
|
39
|
+
], tt = [
|
|
40
40
|
"data-a11y-serie-id",
|
|
41
41
|
"d",
|
|
42
42
|
"stroke-width",
|
|
@@ -44,7 +44,7 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
44
44
|
"onMouseenter",
|
|
45
45
|
"onMouseleave",
|
|
46
46
|
"onClick"
|
|
47
|
-
],
|
|
47
|
+
], nt = {
|
|
48
48
|
key: 0,
|
|
49
49
|
style: {
|
|
50
50
|
position: "absolute",
|
|
@@ -54,10 +54,10 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
54
54
|
},
|
|
55
55
|
"data-dom-to-png-ignore": "",
|
|
56
56
|
"aria-hidden": "true"
|
|
57
|
-
},
|
|
57
|
+
}, rt = {
|
|
58
58
|
key: 5,
|
|
59
59
|
class: "vue-data-ui-watermark"
|
|
60
|
-
},
|
|
60
|
+
}, it = ["id"], at = ["onClick"], ot = ["innerHTML"], st = /* @__PURE__ */ ye({
|
|
61
61
|
__name: "vue-ui-galaxy",
|
|
62
62
|
props: {
|
|
63
63
|
config: {
|
|
@@ -78,11 +78,11 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
78
78
|
"selectDatapoint",
|
|
79
79
|
"copyAlt"
|
|
80
80
|
],
|
|
81
|
-
setup(e, { expose: ye, emit:
|
|
82
|
-
let
|
|
81
|
+
setup(e, { expose: ye, emit: He }) {
|
|
82
|
+
let st = m(() => import("./Tooltip-979Ytd8R.js")), ct = m(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), lt = m(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), ut = m(() => import("./DataTable-DweDyHc1.js")), dt = m(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), ft = m(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), pt = m(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), mt = m(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_galaxy: ht } = ue(), { isThemeValid: gt, warnInvalidTheme: _t } = ge(), w = e, T = b(r()), E = b(null), D = b(!1), vt = b(""), O = b(null), yt = b(0), bt = b(0), xt = b(0), St = b(0), Ct = b(null), wt = b(null), Tt = b(null), Et = b(null), k = b(null), A = b(null), Dt = b(!1), j = b(null), Ot = b(null), M = b(!1), N = b(!1), P = b(null), F = b(null), kt = b({
|
|
83
83
|
x: 0,
|
|
84
84
|
y: 0
|
|
85
|
-
}),
|
|
85
|
+
}), At = b("pointer"), I = b(!1), jt = l(() => !!w.dataset && w.dataset.length), L = b(Bt()), R = l(() => L.value.userOptions.useCursorPointer), Mt = l(() => i({
|
|
86
86
|
defaultConfig: {
|
|
87
87
|
userOptions: { show: !1 },
|
|
88
88
|
table: { show: !1 },
|
|
@@ -92,17 +92,17 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
92
92
|
legend: { backgroundColor: "transparent" }
|
|
93
93
|
} }
|
|
94
94
|
},
|
|
95
|
-
userConfig:
|
|
96
|
-
})), { loading:
|
|
97
|
-
...
|
|
98
|
-
FINAL_CONFIG:
|
|
95
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
96
|
+
})), { loading: Nt, FINAL_DATASET: Pt } = fe({
|
|
97
|
+
...Be(w),
|
|
98
|
+
FINAL_CONFIG: L,
|
|
99
99
|
prepareConfig: Bt,
|
|
100
100
|
callback: () => {
|
|
101
101
|
Promise.resolve().then(async () => {
|
|
102
|
-
await g(), B.value.showTable =
|
|
102
|
+
await g(), B.value.showTable = L.value.table.show;
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
|
-
skeletonDataset:
|
|
105
|
+
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
106
106
|
{
|
|
107
107
|
name: "_",
|
|
108
108
|
values: [21],
|
|
@@ -119,22 +119,22 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
119
119
|
color: "#ADADAD"
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
|
-
skeletonConfig:
|
|
123
|
-
defaultConfig:
|
|
124
|
-
userConfig:
|
|
122
|
+
skeletonConfig: i({
|
|
123
|
+
defaultConfig: L.value,
|
|
124
|
+
userConfig: Mt.value
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
Ie(() => {
|
|
128
|
-
|
|
128
|
+
Dt.value = !0, It();
|
|
129
129
|
});
|
|
130
|
-
let Ft = l(() => !!
|
|
130
|
+
let Ft = l(() => !!L.value.debug);
|
|
131
131
|
function It() {
|
|
132
|
-
if (
|
|
132
|
+
if (te(w.dataset) ? ne({
|
|
133
133
|
componentName: "VueUiGalaxy",
|
|
134
134
|
type: "dataset",
|
|
135
135
|
debug: Ft.value
|
|
136
|
-
}) :
|
|
137
|
-
|
|
136
|
+
}) : w.dataset.forEach((e, t) => {
|
|
137
|
+
re({
|
|
138
138
|
datasetObject: e,
|
|
139
139
|
requiredAttributes: ["name", "values"]
|
|
140
140
|
}).forEach((e) => {
|
|
@@ -146,12 +146,12 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
146
146
|
debug: Ft.value
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
}),
|
|
149
|
+
}), L.value.responsive) {
|
|
150
150
|
let e = be(() => {
|
|
151
151
|
let { width: e, height: t } = xe({
|
|
152
|
-
chart:
|
|
153
|
-
title:
|
|
154
|
-
legend:
|
|
152
|
+
chart: E.value,
|
|
153
|
+
title: L.value.style.chart.title.text ? Ct.value : null,
|
|
154
|
+
legend: L.value.style.chart.legend.show ? wt.value : null,
|
|
155
155
|
noTitle: Et.value,
|
|
156
156
|
source: Tt.value
|
|
157
157
|
});
|
|
@@ -159,45 +159,45 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
159
159
|
qt.value = Math.max(.1, e), Jt.value = Math.max(.1, t - 12);
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
|
-
k.value && (
|
|
162
|
+
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);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
let { userOptionsVisible: Lt, setUserOptionsVisibility: Rt, keepUserOptionState: zt } = we({ config:
|
|
165
|
+
let { userOptionsVisible: Lt, setUserOptionsVisibility: Rt, keepUserOptionState: zt } = we({ config: L.value }), { svgRef: z } = Te({ config: L.value.style.chart.title });
|
|
166
166
|
function Bt() {
|
|
167
167
|
let e = he({
|
|
168
|
-
userConfig:
|
|
169
|
-
defaultConfig:
|
|
170
|
-
}),
|
|
171
|
-
if (!
|
|
172
|
-
if (!
|
|
173
|
-
let
|
|
174
|
-
userConfig: Oe[
|
|
168
|
+
userConfig: w.config,
|
|
169
|
+
defaultConfig: ht
|
|
170
|
+
}), n = e.theme;
|
|
171
|
+
if (!n) return e;
|
|
172
|
+
if (!gt.value(e)) return _t(e), e;
|
|
173
|
+
let r = he({
|
|
174
|
+
userConfig: Oe[n] || w.config,
|
|
175
175
|
defaultConfig: e
|
|
176
|
-
}),
|
|
177
|
-
userConfig:
|
|
178
|
-
defaultConfig:
|
|
176
|
+
}), i = he({
|
|
177
|
+
userConfig: w.config,
|
|
178
|
+
defaultConfig: r
|
|
179
179
|
});
|
|
180
180
|
return {
|
|
181
|
-
...
|
|
182
|
-
customPalette:
|
|
181
|
+
...i,
|
|
182
|
+
customPalette: i.customPalette.length ? i.customPalette : t[n] || c
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
Ve(() => w.config, (e) => {
|
|
186
|
+
L.value = Bt(), Lt.value = !L.value.userOptions.showOnChartHover, It(), bt.value += 1, xt.value += 1, St.value += 1, B.value.dataLabels.show = L.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show;
|
|
187
187
|
}, { deep: !0 });
|
|
188
188
|
let { isPrinting: Vt, isImaging: Ht, generatePdf: Ut, generateImage: Wt } = de({
|
|
189
|
-
elementId: `galaxy_${
|
|
190
|
-
fileName:
|
|
191
|
-
options:
|
|
192
|
-
}), Gt = l(() =>
|
|
193
|
-
dataLabels: { show:
|
|
194
|
-
showTable:
|
|
195
|
-
showTooltip:
|
|
189
|
+
elementId: `galaxy_${T.value}`,
|
|
190
|
+
fileName: L.value.style.chart.title.text || "vue-ui-galaxy",
|
|
191
|
+
options: L.value.userOptions.print
|
|
192
|
+
}), Gt = l(() => L.value.userOptions.show && !L.value.style.chart.title.text), Kt = l(() => ce(L.value.customPalette)), B = b({
|
|
193
|
+
dataLabels: { show: L.value.style.chart.layout.labels.dataLabels.show },
|
|
194
|
+
showTable: L.value.table.show,
|
|
195
|
+
showTooltip: L.value.style.chart.tooltip.show
|
|
196
196
|
}), qt = b(250), Jt = b(180), Yt = b(0), Xt = b(0), V = l(() => ({
|
|
197
197
|
width: qt.value,
|
|
198
198
|
height: Jt.value,
|
|
199
199
|
viewBox: `${Yt.value} ${Xt.value} ${qt.value} ${Jt.value}`
|
|
200
|
-
})), Zt =
|
|
200
|
+
})), Zt = He, H = b([]);
|
|
201
201
|
function Qt() {
|
|
202
202
|
Zt("selectLegend", K.value.map((e) => ({
|
|
203
203
|
name: e.name,
|
|
@@ -214,7 +214,7 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
214
214
|
H.value.includes(e.id) ? H.value = H.value.filter((t) => t !== e.id) : H.value.push(e.id), Qt();
|
|
215
215
|
}
|
|
216
216
|
function en(e) {
|
|
217
|
-
return W.value.length ? W.value.find((t) => t.name === e) || (
|
|
217
|
+
return W.value.length ? W.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiGalaxy - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null);
|
|
218
218
|
}
|
|
219
219
|
function tn(e) {
|
|
220
220
|
let t = en(e);
|
|
@@ -224,12 +224,12 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
224
224
|
let t = en(e);
|
|
225
225
|
t !== null && (H.value.includes(t.id) || U({ id: t.id }));
|
|
226
226
|
}
|
|
227
|
-
let W = l(() => Pt.value.map((e,
|
|
227
|
+
let W = l(() => Pt.value.map((e, t) => ({
|
|
228
228
|
name: e.name,
|
|
229
|
-
color: le(e.color) || Kt.value[
|
|
230
|
-
value: e.values ?
|
|
231
|
-
absoluteValues:
|
|
232
|
-
id:
|
|
229
|
+
color: le(e.color) || Kt.value[t] || c[t] || c[t % c.length],
|
|
230
|
+
value: e.values ? o(e.values).reduce((e, t) => e + t, 0) : 0,
|
|
231
|
+
absoluteValues: o(e.values),
|
|
232
|
+
id: r()
|
|
233
233
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
234
234
|
...e,
|
|
235
235
|
absoluteIndex: t
|
|
@@ -241,13 +241,13 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
241
241
|
value: e.value
|
|
242
242
|
}));
|
|
243
243
|
}
|
|
244
|
-
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), an = b(190), on = l(() => W.value.filter((e) => !H.value.includes(e.id))), sn = l(() => (
|
|
244
|
+
let G = l(() => W.value.filter((e) => !H.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0)), an = b(190), on = l(() => W.value.filter((e) => !H.value.includes(e.id))), sn = l(() => (L.value.style.chart.layout.arcs.strokeWidth + L.value.style.chart.layout.arcs.borderWidth) / 2 + (L.value.style.chart.layout.padding ?? 12)), cn = l(() => s({
|
|
245
245
|
maxPoints: an.value,
|
|
246
|
-
a:
|
|
247
|
-
b:
|
|
248
|
-
angleStep:
|
|
249
|
-
startX: V.value.width / 2 +
|
|
250
|
-
startY: V.value.height / 2 +
|
|
246
|
+
a: L.value.style.chart.layout.arcs.a ?? 6,
|
|
247
|
+
b: L.value.style.chart.layout.arcs.b ?? 6,
|
|
248
|
+
angleStep: L.value.style.chart.layout.arcs.angleStep ?? .07,
|
|
249
|
+
startX: V.value.width / 2 + L.value.style.chart.layout.arcs.offsetX,
|
|
250
|
+
startY: V.value.height / 2 + L.value.style.chart.layout.arcs.offsetY,
|
|
251
251
|
boxWidth: V.value.width,
|
|
252
252
|
boxHeight: V.value.height,
|
|
253
253
|
padding: sn.value
|
|
@@ -266,7 +266,7 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
266
266
|
return e.filter((e) => !H.value.includes(e.id)).toSorted((e, t) => t.points - e.points);
|
|
267
267
|
});
|
|
268
268
|
function ln(e) {
|
|
269
|
-
let t = Math.min(qt.value, Jt.value), n = O.value === e.id &&
|
|
269
|
+
let t = Math.min(qt.value, Jt.value), n = O.value === e.id && L.value.style.chart.layout.arcs.hoverEffect.show ? L.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, r = (L.value.style.chart.layout.arcs.strokeWidth + L.value.style.chart.layout.arcs.borderWidth) * n, i = L.value.style.chart.layout.arcs.strokeWidth * n, a = L.value.style.chart.layout.arcs.strokeWidth / 2 * n;
|
|
270
270
|
return {
|
|
271
271
|
border: r / 180 * t,
|
|
272
272
|
path: i / 180 * t,
|
|
@@ -279,32 +279,32 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
279
279
|
}
|
|
280
280
|
let dn = b(null);
|
|
281
281
|
function fn() {
|
|
282
|
-
|
|
282
|
+
D.value = !1, O.value = null, P.value = null, F.value = null;
|
|
283
283
|
}
|
|
284
284
|
function pn(e) {
|
|
285
285
|
if (!z.value || !e) return;
|
|
286
286
|
let t = z.value.querySelector(`[data-a11y-serie-id="${e}"]`);
|
|
287
287
|
if (!t) return;
|
|
288
288
|
let n = t.getBoundingClientRect();
|
|
289
|
-
|
|
289
|
+
kt.value = {
|
|
290
290
|
x: n.left + n.width / 2,
|
|
291
291
|
y: n.top + n.height / 2
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
function mn(e) {
|
|
295
|
-
|
|
295
|
+
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
296
296
|
datapoint: e,
|
|
297
297
|
seriesIndex: e.absoluteIndex
|
|
298
|
-
}), !(
|
|
298
|
+
}), !(F.value === e.id && At.value === "keyboard") && (D.value = !1, O.value = null);
|
|
299
299
|
}
|
|
300
300
|
function hn(e) {
|
|
301
|
-
Zt("selectDatapoint", e),
|
|
301
|
+
Zt("selectDatapoint", e), L.value.events.datapointClick && L.value.events.datapointClick({
|
|
302
302
|
datapoint: e,
|
|
303
303
|
seriesIndex: e.absoluteIndex
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
function gn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
307
|
-
let i =
|
|
307
|
+
let i = L.value.style.chart.layout.labels.dataLabels;
|
|
308
308
|
return Ee({
|
|
309
309
|
config: i,
|
|
310
310
|
val: e,
|
|
@@ -313,67 +313,67 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
313
313
|
showPercentage: r
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
function _n({ datapoint: e, _relativeIndex: t, seriesIndex:
|
|
317
|
-
if (
|
|
316
|
+
function _n({ datapoint: e, _relativeIndex: t, seriesIndex: r, show: i = !1, triggerMode: a = "pointer", flatIndex: o = null }) {
|
|
317
|
+
if (L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
318
318
|
datapoint: e,
|
|
319
319
|
seriesIndex: e.absoluteIndex
|
|
320
320
|
}), !B.value.showTooltip) return;
|
|
321
|
-
|
|
321
|
+
At.value = a, P.value = o, F.value = e.id, dn.value = {
|
|
322
322
|
datapoint: e,
|
|
323
|
-
seriesIndex:
|
|
323
|
+
seriesIndex: r,
|
|
324
324
|
series: W.value,
|
|
325
|
-
config:
|
|
326
|
-
},
|
|
327
|
-
let s = "", c =
|
|
328
|
-
|
|
329
|
-
seriesIndex:
|
|
325
|
+
config: L.value
|
|
326
|
+
}, D.value = i, O.value = e.id;
|
|
327
|
+
let s = "", c = L.value.style.chart.tooltip.customFormat;
|
|
328
|
+
ie(c) && oe(() => c({
|
|
329
|
+
seriesIndex: r,
|
|
330
330
|
datapoint: e,
|
|
331
331
|
series: W.value,
|
|
332
|
-
config:
|
|
332
|
+
config: L.value
|
|
333
333
|
})) ? vt.value = c({
|
|
334
|
-
seriesIndex:
|
|
334
|
+
seriesIndex: r,
|
|
335
335
|
datapoint: e,
|
|
336
336
|
series: W.value,
|
|
337
|
-
config:
|
|
338
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
339
|
-
showVal:
|
|
340
|
-
showPercentage:
|
|
341
|
-
val:
|
|
342
|
-
p:
|
|
337
|
+
config: L.value
|
|
338
|
+
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, s += `<b>${gn({
|
|
339
|
+
showVal: L.value.style.chart.tooltip.showValue,
|
|
340
|
+
showPercentage: L.value.style.chart.tooltip.showPercentage,
|
|
341
|
+
val: ae(L.value.style.chart.layout.labels.dataLabels.formatter, e.value, n({
|
|
342
|
+
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
343
343
|
v: e.value,
|
|
344
|
-
s:
|
|
345
|
-
r:
|
|
344
|
+
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
345
|
+
r: L.value.style.chart.tooltip.roundingValue
|
|
346
346
|
}), {
|
|
347
347
|
datapoint: e,
|
|
348
|
-
seriesIndex:
|
|
348
|
+
seriesIndex: r
|
|
349
349
|
}),
|
|
350
|
-
percentage:
|
|
350
|
+
percentage: n({
|
|
351
351
|
v: e.proportion * 100,
|
|
352
352
|
s: "%",
|
|
353
|
-
r:
|
|
353
|
+
r: L.value.style.chart.tooltip.roundingPercentage
|
|
354
354
|
})
|
|
355
|
-
})}</b></div>`, vt.value = `<div>${s}</div>`),
|
|
355
|
+
})}</b></div>`, vt.value = `<div>${s}</div>`), a === "keyboard" && g(() => {
|
|
356
356
|
pn(e.id);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
let J = l(() => W.value.map((e, t) => {
|
|
360
|
-
let
|
|
361
|
-
p:
|
|
360
|
+
let r = ae(L.value.style.chart.layout.labels.dataLabels.formatter, e.value, n({
|
|
361
|
+
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
362
362
|
v: e.value,
|
|
363
|
-
s:
|
|
364
|
-
r:
|
|
363
|
+
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
364
|
+
r: L.value.style.chart.legend.roundingValue
|
|
365
365
|
}), {
|
|
366
366
|
datapoint: e,
|
|
367
367
|
index: t
|
|
368
|
-
}),
|
|
368
|
+
}), i = isNaN(e.value / G.value) || H.value.includes(e.id) ? "-" : n({
|
|
369
369
|
v: e.value / G.value * 100,
|
|
370
370
|
s: "%",
|
|
371
|
-
r:
|
|
372
|
-
}),
|
|
373
|
-
showVal:
|
|
374
|
-
showPercentage:
|
|
375
|
-
val:
|
|
376
|
-
percentage:
|
|
371
|
+
r: L.value.style.chart.legend.roundingPercentage
|
|
372
|
+
}), a = gn({
|
|
373
|
+
showVal: L.value.style.chart.legend.showValue,
|
|
374
|
+
showPercentage: L.value.style.chart.legend.showPercentage,
|
|
375
|
+
val: r,
|
|
376
|
+
percentage: i
|
|
377
377
|
});
|
|
378
378
|
return {
|
|
379
379
|
...e,
|
|
@@ -382,15 +382,15 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
382
382
|
shape: e.shape || "circle",
|
|
383
383
|
segregate: () => U(e),
|
|
384
384
|
isSegregated: H.value.includes(e.id),
|
|
385
|
-
display: `${e.name}${
|
|
385
|
+
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${a}`
|
|
386
386
|
};
|
|
387
387
|
})), vn = l(() => ({
|
|
388
388
|
cy: "galaxy-div-legend",
|
|
389
|
-
backgroundColor:
|
|
390
|
-
color:
|
|
391
|
-
fontSize:
|
|
389
|
+
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
390
|
+
color: L.value.style.chart.legend.color,
|
|
391
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
392
392
|
paddingBottom: 12,
|
|
393
|
-
fontWeight:
|
|
393
|
+
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
394
394
|
})), Y = l(() => ({
|
|
395
395
|
head: K.value.map((e) => ({
|
|
396
396
|
name: e.name,
|
|
@@ -404,72 +404,72 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
404
404
|
[e.name],
|
|
405
405
|
[Y.value.body[t]],
|
|
406
406
|
[isNaN(Y.value.body[t] / G.value) ? "-" : Y.value.body[t] / G.value * 100]
|
|
407
|
-
]), n =
|
|
408
|
-
[
|
|
409
|
-
[
|
|
407
|
+
]), n = ee([
|
|
408
|
+
[L.value.style.chart.title.text],
|
|
409
|
+
[L.value.style.chart.title.subtitle.text],
|
|
410
410
|
[
|
|
411
411
|
[""],
|
|
412
412
|
["val"],
|
|
413
413
|
["%"]
|
|
414
414
|
]
|
|
415
415
|
].concat(t));
|
|
416
|
-
e ? e(n) :
|
|
416
|
+
e ? e(n) : a({
|
|
417
417
|
csvContent: n,
|
|
418
|
-
title:
|
|
418
|
+
title: L.value.style.chart.title.text || "vue-ui-galaxy"
|
|
419
419
|
});
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
let X = l(() => {
|
|
423
423
|
let e = [
|
|
424
424
|
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
425
|
-
|
|
426
|
-
p:
|
|
425
|
+
n({
|
|
426
|
+
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
427
427
|
v: G.value,
|
|
428
|
-
s:
|
|
429
|
-
r:
|
|
428
|
+
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
429
|
+
r: L.value.table.td.roundingValue
|
|
430
430
|
}),
|
|
431
431
|
"100%"
|
|
432
432
|
], t = Y.value.head.map((e, t) => {
|
|
433
|
-
let
|
|
434
|
-
p:
|
|
433
|
+
let r = n({
|
|
434
|
+
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
435
435
|
v: Y.value.body[t],
|
|
436
|
-
s:
|
|
437
|
-
r:
|
|
436
|
+
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
437
|
+
r: L.value.table.td.roundingValue
|
|
438
438
|
});
|
|
439
439
|
return [
|
|
440
440
|
{
|
|
441
441
|
color: e.color,
|
|
442
442
|
name: e.name
|
|
443
443
|
},
|
|
444
|
-
|
|
445
|
-
isNaN(Y.value.body[t] / G.value) ? "-" :
|
|
444
|
+
r,
|
|
445
|
+
isNaN(Y.value.body[t] / G.value) ? "-" : n({
|
|
446
446
|
v: Y.value.body[t] / G.value * 100,
|
|
447
447
|
s: "%",
|
|
448
|
-
r:
|
|
448
|
+
r: L.value.table.td.roundingPercentage
|
|
449
449
|
})
|
|
450
450
|
];
|
|
451
|
-
}),
|
|
451
|
+
}), r = {
|
|
452
452
|
th: {
|
|
453
|
-
backgroundColor:
|
|
454
|
-
color:
|
|
455
|
-
outline:
|
|
453
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
454
|
+
color: L.value.table.th.color,
|
|
455
|
+
outline: L.value.table.th.outline
|
|
456
456
|
},
|
|
457
457
|
td: {
|
|
458
|
-
backgroundColor:
|
|
459
|
-
color:
|
|
460
|
-
outline:
|
|
458
|
+
backgroundColor: L.value.table.td.backgroundColor,
|
|
459
|
+
color: L.value.table.td.color,
|
|
460
|
+
outline: L.value.table.td.outline
|
|
461
461
|
},
|
|
462
|
-
breakpoint:
|
|
462
|
+
breakpoint: L.value.table.responsiveBreakpoint
|
|
463
463
|
};
|
|
464
464
|
return {
|
|
465
465
|
colNames: [
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
L.value.table.columnNames.series,
|
|
467
|
+
L.value.table.columnNames.value,
|
|
468
|
+
L.value.table.columnNames.percentage
|
|
469
469
|
],
|
|
470
470
|
head: e,
|
|
471
471
|
body: t,
|
|
472
|
-
config:
|
|
472
|
+
config: r
|
|
473
473
|
};
|
|
474
474
|
});
|
|
475
475
|
function bn() {
|
|
@@ -483,9 +483,9 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
483
483
|
Z.value = !Z.value;
|
|
484
484
|
}
|
|
485
485
|
async function Cn({ scale: e = 2 } = {}) {
|
|
486
|
-
if (!
|
|
487
|
-
let { width: t, height: n } =
|
|
488
|
-
domElement:
|
|
486
|
+
if (!E.value) return;
|
|
487
|
+
let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
488
|
+
domElement: E.value,
|
|
489
489
|
base64: !0,
|
|
490
490
|
img: !0,
|
|
491
491
|
scale: e
|
|
@@ -493,65 +493,65 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
493
493
|
return {
|
|
494
494
|
imageUri: i,
|
|
495
495
|
base64: a,
|
|
496
|
-
title:
|
|
496
|
+
title: L.value.style.chart.title.text,
|
|
497
497
|
width: t,
|
|
498
498
|
height: n,
|
|
499
499
|
aspectRatio: r
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
let Q = l(() => {
|
|
503
|
-
let e =
|
|
503
|
+
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
504
504
|
return {
|
|
505
|
-
component: e ?
|
|
506
|
-
title: `${
|
|
505
|
+
component: e ? mt : lt,
|
|
506
|
+
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
507
507
|
props: e ? {
|
|
508
|
-
backgroundColor:
|
|
509
|
-
color:
|
|
510
|
-
headerColor:
|
|
511
|
-
headerBg:
|
|
508
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
509
|
+
color: L.value.table.th.color,
|
|
510
|
+
headerColor: L.value.table.th.color,
|
|
511
|
+
headerBg: L.value.table.th.backgroundColor,
|
|
512
512
|
isFullscreen: q.value,
|
|
513
|
-
fullscreenParent:
|
|
513
|
+
fullscreenParent: E.value,
|
|
514
514
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
515
|
-
isCursorPointer:
|
|
515
|
+
isCursorPointer: R.value
|
|
516
516
|
} : {
|
|
517
517
|
hideDetails: !0,
|
|
518
518
|
config: {
|
|
519
519
|
open: t,
|
|
520
520
|
maxHeight: 1e4,
|
|
521
521
|
body: {
|
|
522
|
-
backgroundColor:
|
|
523
|
-
color:
|
|
522
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
523
|
+
color: L.value.style.chart.color
|
|
524
524
|
},
|
|
525
525
|
head: {
|
|
526
|
-
backgroundColor:
|
|
527
|
-
color:
|
|
526
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
527
|
+
color: L.value.style.chart.color
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
532
|
});
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
Ve(() => B.value.showTable, (e) => {
|
|
534
|
+
L.value.table.show || (e && L.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
535
535
|
});
|
|
536
536
|
function wn() {
|
|
537
|
-
B.value.showTable = !1,
|
|
537
|
+
B.value.showTable = !1, Ot.value && Ot.value.setTableIconState(!1);
|
|
538
538
|
}
|
|
539
539
|
let Tn = l(() => J.value.map((e) => ({
|
|
540
540
|
...e,
|
|
541
541
|
name: e.display
|
|
542
|
-
}))), En = l(() =>
|
|
542
|
+
}))), En = l(() => L.value.style.chart.backgroundColor), Dn = l(() => L.value.style.chart.legend), { exportSvg: On, getSvg: kn } = me({
|
|
543
543
|
svg: z,
|
|
544
|
-
title: l(() =>
|
|
544
|
+
title: l(() => L.value.style.chart.title),
|
|
545
545
|
legend: Dn,
|
|
546
546
|
legendItems: Tn,
|
|
547
547
|
backgroundColor: En
|
|
548
548
|
});
|
|
549
549
|
async function An({ isCb: e }) {
|
|
550
|
-
|
|
550
|
+
N.value = !0, await g();
|
|
551
551
|
try {
|
|
552
552
|
if (e) {
|
|
553
553
|
let { blob: e, url: t, text: n, dataUrl: r } = await kn();
|
|
554
|
-
await Promise.resolve(
|
|
554
|
+
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
555
555
|
blob: e,
|
|
556
556
|
url: t,
|
|
557
557
|
text: n,
|
|
@@ -559,38 +559,38 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
559
559
|
}));
|
|
560
560
|
} else await Promise.resolve(On());
|
|
561
561
|
} finally {
|
|
562
|
-
|
|
562
|
+
N.value = !1;
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function jn(e) {
|
|
566
566
|
if (e?.stage === "start") {
|
|
567
|
-
|
|
567
|
+
M.value = !0;
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
570
|
if (e?.stage === "end") {
|
|
571
|
-
|
|
571
|
+
M.value = !1;
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
574
|
Wt();
|
|
575
575
|
}
|
|
576
576
|
async function Mn() {
|
|
577
577
|
if (Zt("copyAlt", {
|
|
578
|
-
config:
|
|
578
|
+
config: L.value,
|
|
579
579
|
dataset: W.value
|
|
580
|
-
}), !
|
|
580
|
+
}), !L.value.userOptions.callbacks.altCopy) {
|
|
581
581
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
|
-
await Promise.resolve(
|
|
585
|
-
config:
|
|
584
|
+
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
585
|
+
config: L.value,
|
|
586
586
|
dataset: W.value
|
|
587
587
|
}));
|
|
588
588
|
}
|
|
589
589
|
function Nn() {
|
|
590
|
-
|
|
590
|
+
P.value = null, F.value = null, I.value = !0;
|
|
591
591
|
}
|
|
592
592
|
function Pn() {
|
|
593
|
-
fn(),
|
|
593
|
+
fn(), I.value = !1;
|
|
594
594
|
}
|
|
595
595
|
function Fn(e) {
|
|
596
596
|
if (!z.value || Z.value || document.activeElement !== z.value || !$.value.length) return;
|
|
@@ -601,13 +601,13 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
603
|
if (r) {
|
|
604
|
-
if (
|
|
605
|
-
let e = $.value[
|
|
604
|
+
if (P.value === null) return;
|
|
605
|
+
let e = $.value[P.value];
|
|
606
606
|
if (!e) return;
|
|
607
607
|
hn(e.datapoint);
|
|
608
608
|
return;
|
|
609
609
|
}
|
|
610
|
-
let a =
|
|
610
|
+
let a = P.value;
|
|
611
611
|
a === null || a < 0 || a >= $.value.length ? a = n ? 0 : $.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0));
|
|
612
612
|
let o = $.value[a];
|
|
613
613
|
o && _n({
|
|
@@ -641,26 +641,26 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
641
641
|
copyAlt: Mn
|
|
642
642
|
}), (e, t) => (y(), f("div", {
|
|
643
643
|
ref_key: "galaxyChart",
|
|
644
|
-
ref:
|
|
645
|
-
class: Fe(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${
|
|
646
|
-
style: v(`font-family:${
|
|
647
|
-
id: `galaxy_${
|
|
648
|
-
onMouseenter: t[2] ||= () =>
|
|
644
|
+
ref: E,
|
|
645
|
+
class: Fe(`vue-data-ui-component vue-ui-galaxy ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"} ${S(Nt) ? "loading" : ""}`),
|
|
646
|
+
style: v(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;${L.value.style.chart.title.text ? "" : "padding-top:36px"};background:${L.value.style.chart.backgroundColor}`),
|
|
647
|
+
id: `galaxy_${T.value}`,
|
|
648
|
+
onMouseenter: t[2] ||= () => S(Rt)(!0),
|
|
649
649
|
onMouseleave: t[3] ||= () => {
|
|
650
|
-
|
|
650
|
+
S(Rt)(!1), I.value || fn();
|
|
651
651
|
}
|
|
652
652
|
}, [
|
|
653
653
|
p("div", {
|
|
654
|
-
id: `chart-instructions-${
|
|
654
|
+
id: `chart-instructions-${T.value}`,
|
|
655
655
|
class: "sr-only"
|
|
656
|
-
}, [p("p", null,
|
|
656
|
+
}, [p("p", null, ze(L.value.a11y.translations.keyboardNavigation), 1)], 8, We),
|
|
657
657
|
In.value?.rows?.length ? (y(), u(Ce, {
|
|
658
658
|
key: 0,
|
|
659
|
-
uid:
|
|
659
|
+
uid: T.value,
|
|
660
660
|
head: In.value.headers,
|
|
661
661
|
body: In.value.rows,
|
|
662
|
-
notice:
|
|
663
|
-
caption:
|
|
662
|
+
notice: L.value.a11y.translations.tableAvailable,
|
|
663
|
+
caption: L.value.a11y.translations.tableCaption
|
|
664
664
|
}, null, 8, [
|
|
665
665
|
"uid",
|
|
666
666
|
"head",
|
|
@@ -668,21 +668,21 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
668
668
|
"notice",
|
|
669
669
|
"caption"
|
|
670
670
|
])) : d("", !0),
|
|
671
|
-
|
|
671
|
+
L.value.userOptions.buttons.annotator ? (y(), u(S(dt), {
|
|
672
672
|
key: 1,
|
|
673
|
-
svgRef:
|
|
674
|
-
backgroundColor:
|
|
675
|
-
color:
|
|
673
|
+
svgRef: S(z),
|
|
674
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
675
|
+
color: L.value.style.chart.color,
|
|
676
676
|
active: Z.value,
|
|
677
|
-
isCursorPointer:
|
|
677
|
+
isCursorPointer: R.value,
|
|
678
678
|
onClose: Sn
|
|
679
679
|
}, {
|
|
680
|
-
"annotator-action-close":
|
|
681
|
-
"annotator-action-color":
|
|
682
|
-
"annotator-action-draw":
|
|
683
|
-
"annotator-action-undo":
|
|
684
|
-
"annotator-action-redo":
|
|
685
|
-
"annotator-action-delete":
|
|
680
|
+
"annotator-action-close": 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)]),
|
|
686
686
|
_: 3
|
|
687
687
|
}, 8, [
|
|
688
688
|
"svgRef",
|
|
@@ -698,7 +698,7 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
698
698
|
class: "vue-data-ui-no-title-space",
|
|
699
699
|
style: "height:36px; width: 100%;background:transparent"
|
|
700
700
|
}, null, 512)) : d("", !0),
|
|
701
|
-
|
|
701
|
+
L.value.style.chart.title.text ? (y(), f("div", {
|
|
702
702
|
key: 3,
|
|
703
703
|
ref_key: "chartTitle",
|
|
704
704
|
ref: Ct,
|
|
@@ -708,45 +708,45 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
708
708
|
config: {
|
|
709
709
|
title: {
|
|
710
710
|
cy: "galaxy-div-title",
|
|
711
|
-
...
|
|
711
|
+
...L.value.style.chart.title
|
|
712
712
|
},
|
|
713
713
|
subtitle: {
|
|
714
714
|
cy: "galaxy-div-subtitle",
|
|
715
|
-
...
|
|
715
|
+
...L.value.style.chart.title.subtitle
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
719
|
-
p("div", { id: `legend-top-${
|
|
720
|
-
|
|
719
|
+
p("div", { id: `legend-top-${T.value}` }, null, 8, Ge),
|
|
720
|
+
L.value.userOptions.show && jt.value && (S(zt) || S(Lt)) ? (y(), u(S(ft), {
|
|
721
721
|
ref_key: "userOptionsRef",
|
|
722
|
-
ref:
|
|
722
|
+
ref: Ot,
|
|
723
723
|
key: `user_option_${yt.value}`,
|
|
724
|
-
backgroundColor:
|
|
725
|
-
color:
|
|
726
|
-
isPrinting:
|
|
727
|
-
isImaging:
|
|
728
|
-
uid:
|
|
729
|
-
hasTooltip:
|
|
730
|
-
hasPdf:
|
|
731
|
-
hasXls:
|
|
732
|
-
hasImg:
|
|
733
|
-
hasSvg:
|
|
734
|
-
hasTable:
|
|
735
|
-
hasFullscreen:
|
|
736
|
-
hasAltCopy:
|
|
724
|
+
backgroundColor: L.value.style.chart.backgroundColor,
|
|
725
|
+
color: L.value.style.chart.color,
|
|
726
|
+
isPrinting: S(Vt),
|
|
727
|
+
isImaging: S(Ht),
|
|
728
|
+
uid: T.value,
|
|
729
|
+
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
730
|
+
hasPdf: L.value.userOptions.buttons.pdf,
|
|
731
|
+
hasXls: L.value.userOptions.buttons.csv,
|
|
732
|
+
hasImg: L.value.userOptions.buttons.img,
|
|
733
|
+
hasSvg: L.value.userOptions.buttons.svg,
|
|
734
|
+
hasTable: L.value.userOptions.buttons.table,
|
|
735
|
+
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
736
|
+
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
737
737
|
isTooltip: B.value.showTooltip,
|
|
738
738
|
isFullscreen: q.value,
|
|
739
|
-
titles: { ...
|
|
740
|
-
chartElement:
|
|
741
|
-
position:
|
|
742
|
-
hasAnnotator:
|
|
739
|
+
titles: { ...L.value.userOptions.buttonTitles },
|
|
740
|
+
chartElement: E.value,
|
|
741
|
+
position: L.value.userOptions.position,
|
|
742
|
+
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
743
743
|
isAnnotation: Z.value,
|
|
744
|
-
callbacks:
|
|
745
|
-
printScale:
|
|
746
|
-
tableDialog:
|
|
747
|
-
isCursorPointer:
|
|
744
|
+
callbacks: L.value.userOptions.callbacks,
|
|
745
|
+
printScale: L.value.userOptions.print.scale,
|
|
746
|
+
tableDialog: L.value.table.useDialog,
|
|
747
|
+
isCursorPointer: R.value,
|
|
748
748
|
onToggleFullscreen: un,
|
|
749
|
-
onGeneratePdf:
|
|
749
|
+
onGeneratePdf: S(Ut),
|
|
750
750
|
onGenerateCsv: yn,
|
|
751
751
|
onGenerateImage: jn,
|
|
752
752
|
onGenerateSvg: An,
|
|
@@ -754,11 +754,11 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
754
754
|
onToggleTooltip: xn,
|
|
755
755
|
onToggleAnnotator: Sn,
|
|
756
756
|
onCopyAlt: Mn,
|
|
757
|
-
style: v({ visibility:
|
|
757
|
+
style: v({ visibility: S(zt) ? S(Lt) ? "visible" : "hidden" : "visible" })
|
|
758
758
|
}, je({ _: 2 }, [
|
|
759
759
|
e.$slots.menuIcon ? {
|
|
760
760
|
name: "menuIcon",
|
|
761
|
-
fn:
|
|
761
|
+
fn: C(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
|
|
762
762
|
isOpen: t,
|
|
763
763
|
color: n
|
|
764
764
|
})), void 0, !0)]),
|
|
@@ -766,37 +766,37 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
766
766
|
} : void 0,
|
|
767
767
|
e.$slots.optionTooltip ? {
|
|
768
768
|
name: "optionTooltip",
|
|
769
|
-
fn:
|
|
769
|
+
fn: C(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
770
770
|
key: "1"
|
|
771
771
|
} : void 0,
|
|
772
772
|
e.$slots.optionPdf ? {
|
|
773
773
|
name: "optionPdf",
|
|
774
|
-
fn:
|
|
774
|
+
fn: C(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
775
775
|
key: "2"
|
|
776
776
|
} : void 0,
|
|
777
777
|
e.$slots.optionCsv ? {
|
|
778
778
|
name: "optionCsv",
|
|
779
|
-
fn:
|
|
779
|
+
fn: C(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
780
780
|
key: "3"
|
|
781
781
|
} : void 0,
|
|
782
782
|
e.$slots.optionImg ? {
|
|
783
783
|
name: "optionImg",
|
|
784
|
-
fn:
|
|
784
|
+
fn: C(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
785
785
|
key: "4"
|
|
786
786
|
} : void 0,
|
|
787
787
|
e.$slots.optionSvg ? {
|
|
788
788
|
name: "optionSvg",
|
|
789
|
-
fn:
|
|
789
|
+
fn: C(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
790
790
|
key: "5"
|
|
791
791
|
} : void 0,
|
|
792
792
|
e.$slots.optionTable ? {
|
|
793
793
|
name: "optionTable",
|
|
794
|
-
fn:
|
|
794
|
+
fn: C(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
795
795
|
key: "6"
|
|
796
796
|
} : void 0,
|
|
797
797
|
e.$slots.optionFullscreen ? {
|
|
798
798
|
name: "optionFullscreen",
|
|
799
|
-
fn:
|
|
799
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
|
|
800
800
|
toggleFullscreen: t,
|
|
801
801
|
isFullscreen: n
|
|
802
802
|
})), void 0, !0)]),
|
|
@@ -804,7 +804,7 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
804
804
|
} : void 0,
|
|
805
805
|
e.$slots.optionAnnotator ? {
|
|
806
806
|
name: "optionAnnotator",
|
|
807
|
-
fn:
|
|
807
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
|
|
808
808
|
toggleAnnotator: t,
|
|
809
809
|
isAnnotator: n
|
|
810
810
|
})), void 0, !0)]),
|
|
@@ -812,37 +812,37 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
812
812
|
} : void 0,
|
|
813
813
|
e.$slots.optionAltCopy ? {
|
|
814
814
|
name: "optionAltCopy",
|
|
815
|
-
fn:
|
|
815
|
+
fn: C(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
816
816
|
key: "9"
|
|
817
817
|
} : void 0,
|
|
818
818
|
e.$slots["custom-menu-before"] ? {
|
|
819
819
|
name: "custom-menu-before",
|
|
820
|
-
fn:
|
|
820
|
+
fn: C(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
821
821
|
key: "10"
|
|
822
822
|
} : void 0,
|
|
823
823
|
e.$slots["custom-menu-after"] ? {
|
|
824
824
|
name: "custom-menu-after",
|
|
825
|
-
fn:
|
|
825
|
+
fn: C(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
826
826
|
key: "11"
|
|
827
827
|
} : void 0
|
|
828
828
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
829
|
-
p("div",
|
|
829
|
+
p("div", Ke, [(y(), f("svg", {
|
|
830
830
|
ref_key: "svgRef",
|
|
831
831
|
ref: z,
|
|
832
|
-
xmlns:
|
|
833
|
-
"aria-describedby": `chart-instructions-${
|
|
832
|
+
xmlns: S(se),
|
|
833
|
+
"aria-describedby": `chart-instructions-${T.value}`,
|
|
834
834
|
class: Fe({
|
|
835
835
|
"vue-data-ui-fullscreen--on": q.value,
|
|
836
836
|
"vue-data-ui-fulscreen--off": !q.value
|
|
837
837
|
}),
|
|
838
838
|
viewBox: V.value.viewBox,
|
|
839
|
-
style: v(`max-width:100%; overflow: visible; background:transparent;color:${
|
|
839
|
+
style: v(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color}`),
|
|
840
840
|
tabindex: "0",
|
|
841
841
|
onFocus: Nn,
|
|
842
842
|
onBlur: Pn,
|
|
843
843
|
onKeydown: Fn
|
|
844
844
|
}, [
|
|
845
|
-
Ne(
|
|
845
|
+
Ne(S(pt)),
|
|
846
846
|
e.$slots["chart-background"] ? (y(), f("foreignObject", {
|
|
847
847
|
key: 0,
|
|
848
848
|
x: 0,
|
|
@@ -850,26 +850,26 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
850
850
|
width: V.value.width,
|
|
851
851
|
height: V.value.height,
|
|
852
852
|
style: { pointerEvents: "none" }
|
|
853
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
853
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : d("", !0),
|
|
854
854
|
p("defs", null, [p("filter", {
|
|
855
|
-
id: `blur_${
|
|
855
|
+
id: `blur_${T.value}`,
|
|
856
856
|
x: "-50%",
|
|
857
857
|
y: "-50%",
|
|
858
858
|
width: "200%",
|
|
859
859
|
height: "200%"
|
|
860
860
|
}, [p("feGaussianBlur", {
|
|
861
861
|
in: "SourceGraphic",
|
|
862
|
-
stdDeviation: 100 /
|
|
863
|
-
}, null, 8,
|
|
862
|
+
stdDeviation: 100 / L.value.style.chart.layout.arcs.gradient.intensity
|
|
863
|
+
}, null, 8, Xe)], 8, Ye)]),
|
|
864
864
|
(y(!0), f(ke, null, Le(K.value, (e) => (y(), f("g", null, [
|
|
865
865
|
e.value ? (y(), f("path", {
|
|
866
866
|
key: 0,
|
|
867
867
|
d: e.path,
|
|
868
868
|
fill: "none",
|
|
869
|
-
stroke:
|
|
869
|
+
stroke: L.value.style.chart.backgroundColor,
|
|
870
870
|
"stroke-width": ln(e).border,
|
|
871
871
|
"stroke-linecap": "round"
|
|
872
|
-
}, null, 8,
|
|
872
|
+
}, null, 8, Ze)) : d("", !0),
|
|
873
873
|
e.value ? (y(), f("path", {
|
|
874
874
|
key: 1,
|
|
875
875
|
d: e.path,
|
|
@@ -877,19 +877,19 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
877
877
|
stroke: e.color,
|
|
878
878
|
"stroke-width": ln(e).path,
|
|
879
879
|
"stroke-linecap": "round",
|
|
880
|
-
class: Fe(`${O.value && O.value !== e.id &&
|
|
881
|
-
}, null, 10,
|
|
882
|
-
e.value &&
|
|
880
|
+
class: Fe(`${O.value && O.value !== e.id && L.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
881
|
+
}, null, 10, Qe)) : d("", !0),
|
|
882
|
+
e.value && L.value.style.chart.layout.arcs.gradient.show ? (y(), f("g", {
|
|
883
883
|
key: 2,
|
|
884
|
-
filter: `url(#blur_${
|
|
884
|
+
filter: `url(#blur_${T.value})`
|
|
885
885
|
}, [p("path", {
|
|
886
886
|
d: e.path,
|
|
887
887
|
fill: "none",
|
|
888
|
-
stroke:
|
|
888
|
+
stroke: L.value.style.chart.layout.arcs.gradient.color,
|
|
889
889
|
"stroke-width": ln(e).blur,
|
|
890
890
|
"stroke-linecap": "round",
|
|
891
|
-
class: Fe(`vue-ui-galaxy-gradient ${O.value && O.value !== e.id &&
|
|
892
|
-
}, null, 10,
|
|
891
|
+
class: Fe(`vue-ui-galaxy-gradient ${O.value && O.value !== e.id && L.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
892
|
+
}, null, 10, et)], 8, $e)) : d("", !0)
|
|
893
893
|
]))), 256)),
|
|
894
894
|
(y(!0), f(ke, null, Le(K.value, (e, t) => (y(), f("g", null, [e.value ? (y(), f("path", {
|
|
895
895
|
key: 0,
|
|
@@ -897,13 +897,13 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
897
897
|
d: e.path,
|
|
898
898
|
fill: "none",
|
|
899
899
|
stroke: "transparent",
|
|
900
|
-
"stroke-width":
|
|
900
|
+
"stroke-width": L.value.style.chart.layout.arcs.strokeWidth + L.value.style.chart.layout.arcs.borderWidth,
|
|
901
901
|
"stroke-linecap": "round",
|
|
902
|
-
"aria-label": `${e.name}: ${
|
|
903
|
-
p:
|
|
902
|
+
"aria-label": `${e.name}: ${S(n)({
|
|
903
|
+
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
904
904
|
v: e.value,
|
|
905
|
-
s:
|
|
906
|
-
r:
|
|
905
|
+
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
906
|
+
r: L.value.style.chart.tooltip.roundingValue
|
|
907
907
|
})}`,
|
|
908
908
|
onMouseenter: (n) => _n({
|
|
909
909
|
datapoint: e,
|
|
@@ -915,40 +915,40 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
915
915
|
}),
|
|
916
916
|
onMouseleave: (t) => mn(e),
|
|
917
917
|
onClick: (t) => hn(e)
|
|
918
|
-
}, null, 40,
|
|
918
|
+
}, null, 40, tt)) : d("", !0)]))), 256)),
|
|
919
919
|
x(e.$slots, "svg", { svg: {
|
|
920
920
|
...V.value,
|
|
921
|
-
isPrintingImg:
|
|
922
|
-
isPrintingSvg:
|
|
921
|
+
isPrintingImg: S(Vt) || S(Ht) || M.value,
|
|
922
|
+
isPrintingSvg: N.value
|
|
923
923
|
} }, void 0, !0)
|
|
924
|
-
], 46,
|
|
925
|
-
hint:
|
|
926
|
-
isVisible:
|
|
924
|
+
], 46, qe)), e.$slots.hint ? (y(), f("div", nt, [x(e.$slots, "hint", _(h({
|
|
925
|
+
hint: L.value.a11y.translations.keyboardNavigation,
|
|
926
|
+
isVisible: I.value
|
|
927
927
|
})), void 0, !0)])) : d("", !0)]),
|
|
928
|
-
e.$slots.watermark ? (y(), f("div",
|
|
929
|
-
p("div", { id: `legend-bottom-${
|
|
930
|
-
|
|
928
|
+
e.$slots.watermark ? (y(), f("div", rt, [x(e.$slots, "watermark", _(h({ isPrinting: S(Vt) || S(Ht) || M.value || N.value })), void 0, !0)])) : d("", !0),
|
|
929
|
+
p("div", { id: `legend-bottom-${T.value}` }, null, 8, it),
|
|
930
|
+
Dt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Ae, {
|
|
931
931
|
key: 6,
|
|
932
|
-
to:
|
|
932
|
+
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
933
933
|
}, [p("div", {
|
|
934
934
|
ref_key: "chartLegend",
|
|
935
935
|
ref: wt
|
|
936
|
-
}, [x(e.$slots, "legend", { legend: J.value }, () => [
|
|
936
|
+
}, [x(e.$slots, "legend", { legend: J.value }, () => [L.value.style.chart.legend.show ? (y(), u(De, {
|
|
937
937
|
key: `legend_${St.value}`,
|
|
938
938
|
legendSet: J.value,
|
|
939
939
|
config: vn.value,
|
|
940
940
|
onClickMarker: t[0] ||= ({ legend: e }) => U(e)
|
|
941
941
|
}, {
|
|
942
|
-
item:
|
|
942
|
+
item: C(({ legend: e, index: t }) => [S(Nt) ? d("", !0) : (y(), f("div", {
|
|
943
943
|
key: 0,
|
|
944
944
|
onClick: (t) => U(e),
|
|
945
945
|
style: v(`opacity:${H.value.includes(e.id) ? .5 : 1}`)
|
|
946
|
-
},
|
|
947
|
-
legendToggle:
|
|
946
|
+
}, ze(e.display), 13, at))]),
|
|
947
|
+
legendToggle: C(() => [J.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !S(Nt) ? (y(), u(Se, {
|
|
948
948
|
key: 0,
|
|
949
|
-
backgroundColor:
|
|
950
|
-
color:
|
|
951
|
-
fontSize:
|
|
949
|
+
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
950
|
+
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
951
|
+
fontSize: L.value.style.chart.legend.fontSize,
|
|
952
952
|
checked: H.value.length > 0,
|
|
953
953
|
onToggle: $t
|
|
954
954
|
}, null, 8, [
|
|
@@ -965,33 +965,33 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
965
965
|
ref: Tt,
|
|
966
966
|
dir: "auto"
|
|
967
967
|
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
968
|
-
Ne(
|
|
969
|
-
teleportTo:
|
|
970
|
-
show: B.value.showTooltip &&
|
|
971
|
-
backgroundColor:
|
|
972
|
-
color:
|
|
973
|
-
borderRadius:
|
|
974
|
-
borderColor:
|
|
975
|
-
borderWidth:
|
|
976
|
-
fontSize:
|
|
977
|
-
backgroundOpacity:
|
|
978
|
-
position:
|
|
979
|
-
offsetX:
|
|
980
|
-
offsetY:
|
|
981
|
-
parent:
|
|
968
|
+
Ne(S(st), {
|
|
969
|
+
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
970
|
+
show: B.value.showTooltip && D.value,
|
|
971
|
+
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
972
|
+
color: L.value.style.chart.tooltip.color,
|
|
973
|
+
borderRadius: L.value.style.chart.tooltip.borderRadius,
|
|
974
|
+
borderColor: L.value.style.chart.tooltip.borderColor,
|
|
975
|
+
borderWidth: L.value.style.chart.tooltip.borderWidth,
|
|
976
|
+
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
977
|
+
backgroundOpacity: L.value.style.chart.tooltip.backgroundOpacity,
|
|
978
|
+
position: L.value.style.chart.tooltip.position,
|
|
979
|
+
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
980
|
+
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
981
|
+
parent: E.value,
|
|
982
982
|
content: vt.value,
|
|
983
983
|
isFullscreen: q.value,
|
|
984
|
-
isCustom:
|
|
985
|
-
smooth:
|
|
986
|
-
backdropFilter:
|
|
987
|
-
smoothForce:
|
|
988
|
-
smoothSnapThreshold:
|
|
989
|
-
isA11yMode:
|
|
990
|
-
a11yPosition:
|
|
984
|
+
isCustom: S(ie)(L.value.style.chart.tooltip.customFormat),
|
|
985
|
+
smooth: L.value.style.chart.tooltip.smooth,
|
|
986
|
+
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
987
|
+
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
988
|
+
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
989
|
+
isA11yMode: At.value === "keyboard",
|
|
990
|
+
a11yPosition: kt.value
|
|
991
991
|
}, {
|
|
992
|
-
"tooltip-before":
|
|
993
|
-
tooltip:
|
|
994
|
-
"tooltip-after":
|
|
992
|
+
"tooltip-before": C(() => [x(e.$slots, "tooltip-before", _(h({ ...dn.value })), void 0, !0)]),
|
|
993
|
+
tooltip: C(() => [x(e.$slots, "tooltip", _(h({ ...dn.value })), void 0, !0)]),
|
|
994
|
+
"tooltip-after": C(() => [x(e.$slots, "tooltip-after", _(h({ ...dn.value })), void 0, !0)]),
|
|
995
995
|
_: 3
|
|
996
996
|
}, 8, [
|
|
997
997
|
"teleportTo",
|
|
@@ -1017,30 +1017,30 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
1017
1017
|
"isA11yMode",
|
|
1018
1018
|
"a11yPosition"
|
|
1019
1019
|
]),
|
|
1020
|
-
|
|
1020
|
+
jt.value && L.value.userOptions.buttons.table ? (y(), u(Re(Q.value.component), Pe({ key: 8 }, Q.value.props, {
|
|
1021
1021
|
ref_key: "tableUnit",
|
|
1022
|
-
ref:
|
|
1022
|
+
ref: j,
|
|
1023
1023
|
onClose: wn
|
|
1024
1024
|
}), je({
|
|
1025
|
-
content:
|
|
1025
|
+
content: C(() => [(y(), u(S(ut), {
|
|
1026
1026
|
key: `table_${xt.value}`,
|
|
1027
1027
|
colNames: X.value.colNames,
|
|
1028
1028
|
head: X.value.head,
|
|
1029
1029
|
body: X.value.body,
|
|
1030
1030
|
config: X.value.config,
|
|
1031
|
-
title:
|
|
1032
|
-
withCloseButton: !
|
|
1033
|
-
isCursorPointer:
|
|
1031
|
+
title: L.value.table.useDialog ? "" : Q.value.title,
|
|
1032
|
+
withCloseButton: !L.value.table.useDialog,
|
|
1033
|
+
isCursorPointer: R.value,
|
|
1034
1034
|
onClose: wn
|
|
1035
1035
|
}, {
|
|
1036
|
-
th:
|
|
1036
|
+
th: C(({ th: e }) => [p("div", {
|
|
1037
1037
|
innerHTML: e,
|
|
1038
1038
|
style: {
|
|
1039
1039
|
display: "flex",
|
|
1040
1040
|
"align-items": "center"
|
|
1041
1041
|
}
|
|
1042
|
-
}, null, 8,
|
|
1043
|
-
td:
|
|
1042
|
+
}, null, 8, ot)]),
|
|
1043
|
+
td: C(({ td: e }) => [Me(ze(e.name || e), 1)]),
|
|
1044
1044
|
_: 1
|
|
1045
1045
|
}, 8, [
|
|
1046
1046
|
"colNames",
|
|
@@ -1052,26 +1052,26 @@ var Ve = /* @__PURE__ */ e({ default: () => ot }), He = ["id"], Ue = ["id"], We
|
|
|
1052
1052
|
"isCursorPointer"
|
|
1053
1053
|
]))]),
|
|
1054
1054
|
_: 2
|
|
1055
|
-
}, [
|
|
1055
|
+
}, [L.value.table.useDialog ? {
|
|
1056
1056
|
name: "title",
|
|
1057
|
-
fn:
|
|
1057
|
+
fn: C(() => [Me(ze(Q.value.title), 1)]),
|
|
1058
1058
|
key: "0"
|
|
1059
|
-
} : void 0,
|
|
1059
|
+
} : void 0, L.value.table.useDialog ? {
|
|
1060
1060
|
name: "actions",
|
|
1061
|
-
fn:
|
|
1061
|
+
fn: C(() => [p("button", {
|
|
1062
1062
|
tabindex: "0",
|
|
1063
1063
|
class: "vue-ui-user-options-button",
|
|
1064
|
-
onClick: t[1] ||= (e) => yn(
|
|
1065
|
-
style: v({ cursor:
|
|
1066
|
-
}, [Ne(
|
|
1064
|
+
onClick: t[1] ||= (e) => yn(L.value.userOptions.callbacks.csv),
|
|
1065
|
+
style: v({ cursor: R.value ? "pointer" : "default" })
|
|
1066
|
+
}, [Ne(S(ct), {
|
|
1067
1067
|
name: "fileCsv",
|
|
1068
1068
|
stroke: Q.value.props.color
|
|
1069
1069
|
}, null, 8, ["stroke"])], 4)]),
|
|
1070
1070
|
key: "1"
|
|
1071
1071
|
} : void 0]), 1040)) : d("", !0),
|
|
1072
|
-
x(e.$slots, "skeleton", {}, () => [
|
|
1073
|
-
], 46,
|
|
1072
|
+
x(e.$slots, "skeleton", {}, () => [S(Nt) ? (y(), u(pe, { key: 0 })) : d("", !0)], !0)
|
|
1073
|
+
], 46, Ue));
|
|
1074
1074
|
}
|
|
1075
1075
|
}, [["__scopeId", "data-v-d013ae09"]]);
|
|
1076
1076
|
//#endregion
|
|
1077
|
-
export {
|
|
1077
|
+
export { He as n, st as t };
|