vue-data-ui 3.0.1 → 3.0.3

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.
Files changed (91) hide show
  1. package/dist/{Arrow-DQoWnUfD.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DEw6oieL.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-DEl03NUZ.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-CrivFZqC.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-ClgCsiJA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CMvJ6X5j.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-B2Wvbl3p.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-CD5VH_Al.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-D3WRn-G2.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-Adi9i_-f.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-t6e1t2iM.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-B8OnBSvk.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-xTWR-Vil.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-BH3CiANh.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-CKKPgDLV.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-C4hj491O.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Vb4QHAHI.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-Dzc2Gi60.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-ddpqw-dt.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-CjnS13nF.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DBRh8ZvS.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-B7ztqj9-.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DUmYPtHl.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-CPk8wAuj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bv5HmeXj.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-KXWlIhtd.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-B4N4mBk9.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-DENvPnUO.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-vC2bHBaY.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-2nS0StrY.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CyfS6vNM.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C4JR-0fx.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-BgeSDtQh.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-9DWUBJ-I.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-BQO7IBFA.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-B870IrQA.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-C-ZJXJ74.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-Cfs2Uotx.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-DnaUVVAD.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-B9s-H5ZG.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-BoJOczdh.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-qjm4BqZR.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-fn7ZaMTI.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CIBDKhh8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-bbNxldYG.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-BX-2jhLx.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Bn1Bb8-J.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule-DQ3qFtBq.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Cf-ehIo1.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-CWg5BEi-.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-sHgQTYfa.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-Ki3ITp_s.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-BIVqW7U7.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-C_hvHc1b.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-RZUPyPwB.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BI8Vk7dO.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-TVMUEtxK.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-DQeXHQG4.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BH81WmMS.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-Cy7Tz_An.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-CF50qQxr.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-CrFXEbJs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DtHArnot.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CIOwFFgA.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-E0DdGotz.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Dm7WoyjY.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DoW6DDKT.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BJnPUWY4.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Du42smPs.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-DnenGI-d.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-BQOQVlHr.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-BzK4_gsP.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-B-IwcT8I.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-06ao_Pj5.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-CxQq4roK.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CuTxkByj.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-BgHhRpiV.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-CAcsUUCo.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-Ct3Upw3m.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-oz06Kt-p.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BRy7fg4S.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-CTV-YfFN.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-BZdhKUIp.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/vue-ui-xy-qzB1oN1A.js +3819 -0
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-DqCy9dpa.js +0 -3808
@@ -1,17 +1,17 @@
1
- import { defineAsyncComponent as C, ref as u, computed as v, toRefs as ut, onMounted as nt, watch as rt, createElementBlock as i, openBlock as n, unref as o, normalizeStyle as z, normalizeClass as R, createBlock as S, createCommentVNode as d, createElementVNode as O, createVNode as Te, createSlots as it, withCtx as g, renderSlot as h, normalizeProps as _, guardReactiveProps as I, Fragment as Se, renderList as Pe, toDisplayString as F, createTextVNode as ct, nextTick as vt } from "vue";
2
- import { u as dt, c as Oe, t as ht, o as gt, f as _e, g as pt, a as yt, p as W, b as ft, d as bt, G as Ie, e as mt, M as kt, i as $, X as wt, k as Le, y as Ae, v as Ct, w as $t, z as xt } from "./index-Dzc2Gi60.js";
3
- import { t as Tt, u as St } from "./useResponsive-DfdjqQps.js";
4
- import { u as Pt, B as Ot } from "./useLoading-D7YHNtLX.js";
5
- import { u as _t } from "./usePrinter-DBRh8ZvS.js";
6
- import { u as Ne } from "./useNestedProp-CjnS13nF.js";
7
- import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Lt } from "./useChartAccessibility-9icAAmYg.js";
9
- import At from "./img-Vb4QHAHI.js";
10
- import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["id"], Mt = ["stdDeviation"], Et = ["d", "stroke", "stroke-width"], zt = ["d", "stroke", "stroke-width"], Rt = ["filter"], Wt = ["d", "stroke", "stroke-width"], Gt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ht = {
1
+ import { defineAsyncComponent as $, ref as s, computed as d, toRefs as nt, onMounted as rt, watch as it, createElementBlock as i, openBlock as n, unref as o, normalizeStyle as z, normalizeClass as R, createBlock as x, createCommentVNode as c, createElementVNode as T, createVNode as _e, createSlots as ct, withCtx as g, renderSlot as h, normalizeProps as I, guardReactiveProps as L, Fragment as Se, renderList as Pe, Teleport as vt, toDisplayString as F, createTextVNode as dt, nextTick as ht } from "vue";
2
+ import { u as gt, c as Oe, t as pt, o as yt, f as Ie, g as ft, a as bt, p as W, b as mt, d as kt, G as Le, e as wt, M as Ct, i as _, X as $t, k as Ae, y as Ne, v as xt, w as Tt, z as _t } from "./index-DrRiscPm.js";
3
+ import { t as St, u as Pt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ot, B as It } from "./useLoading-D7YHNtLX.js";
5
+ import { u as Lt } from "./usePrinter-CZk2ISUm.js";
6
+ import { u as Fe } from "./useNestedProp-BXhArS-K.js";
7
+ import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Ft from "./img-CBdOMFyn.js";
10
+ import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const Dt = ["id"], Bt = ["id"], Mt = ["xmlns", "viewBox"], Et = ["width", "height"], zt = ["id"], Rt = ["stdDeviation"], Wt = ["d", "stroke", "stroke-width"], Gt = ["d", "stroke", "stroke-width"], Ht = ["filter"], Ut = ["d", "stroke", "stroke-width"], Xt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Yt = {
12
12
  key: 4,
13
13
  class: "vue-data-ui-watermark"
14
- }, Ut = ["onClick"], Xt = ["innerHTML"], Yt = {
14
+ }, jt = ["id"], qt = ["onClick"], Jt = ["innerHTML"], Kt = {
15
15
  __name: "vue-ui-galaxy",
16
16
  props: {
17
17
  config: {
@@ -28,9 +28,9 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
28
28
  }
29
29
  },
30
30
  emits: ["selectLegend", "selectDatapoint"],
31
- setup(Fe, { expose: Ve, emit: De }) {
32
- const Be = C(() => import("./Title-xTWR-Vil.js")), Me = C(() => import("./Legend-CMvJ6X5j.js")), Ee = C(() => import("./vue-ui-accordion-CPk8wAuj.js")), ze = C(() => import("./DataTable-ClgCsiJA.js")), Re = C(() => import("./Tooltip-BH3CiANh.js")), We = C(() => import("./PenAndPaper-D3WRn-G2.js")), Ge = C(() => import("./UserOptions-CKKPgDLV.js")), He = C(() => import("./PackageVersion-CD5VH_Al.js")), { vue_ui_galaxy: Ue } = dt(), b = Fe, L = u(Oe()), m = u(null), Xe = u(null), G = u(!1), H = u(""), x = u(null), Q = u(0), Z = u(0), ee = u(0), te = u(0), le = u(null), ae = u(null), oe = u(null), se = u(null), A = u(null), V = u(null), ue = v(() => !!b.dataset && b.dataset.length), e = u(Y()), { loading: U, FINAL_DATASET: ne } = Pt({
33
- ...ut(b),
31
+ setup(Ve, { expose: De, emit: Be }) {
32
+ const Me = $(() => import("./Title-CINHji0n.js")), Ee = $(() => import("./Legend-CevCqVZ5.js")), ze = $(() => import("./vue-ui-accordion-s_m_NJzJ.js")), Re = $(() => import("./DataTable-CWzb1j8d.js")), We = $(() => import("./Tooltip-hfdFRoLp.js")), Ge = $(() => import("./PenAndPaper-C_R9vJkU.js")), He = $(() => import("./UserOptions-r0epwyXR.js")), Ue = $(() => import("./PackageVersion-n4qokxnx.js")), { vue_ui_galaxy: Xe } = gt(), m = Ve, f = s(Oe()), k = s(null), Ye = s(null), G = s(!1), H = s(""), S = s(null), Q = s(0), Z = s(0), ee = s(0), te = s(0), le = s(null), ae = s(null), oe = s(null), se = s(null), A = s(null), V = s(null), ue = s(!1), ne = d(() => !!m.dataset && m.dataset.length), e = s(Y()), { loading: U, FINAL_DATASET: re } = Ot({
33
+ ...nt(m),
34
34
  FINAL_CONFIG: e,
35
35
  prepareConfig: Y,
36
36
  skeletonDataset: [
@@ -38,7 +38,7 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
38
38
  { name: "_", values: [13], color: "#C4C4C4" },
39
39
  { name: "_", values: [8], color: "#ADADAD" }
40
40
  ],
41
- skeletonConfig: ht({
41
+ skeletonConfig: pt({
42
42
  defaultConfig: e.value,
43
43
  userConfig: {
44
44
  userOptions: { show: !1 },
@@ -55,32 +55,32 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
55
55
  }
56
56
  })
57
57
  });
58
- nt(() => {
59
- ie();
58
+ rt(() => {
59
+ ue.value = !0, ce();
60
60
  });
61
- const re = v(() => !!e.value.debug);
62
- function ie() {
63
- if (gt(b.dataset) ? _e({
61
+ const ie = d(() => !!e.value.debug);
62
+ function ce() {
63
+ if (yt(m.dataset) ? Ie({
64
64
  componentName: "VueUiGalaxy",
65
65
  type: "dataset",
66
- debug: re.value
67
- }) : b.dataset.forEach((t, a) => {
68
- pt({
66
+ debug: ie.value
67
+ }) : m.dataset.forEach((t, a) => {
68
+ ft({
69
69
  datasetObject: t,
70
70
  requiredAttributes: ["name", "values"]
71
71
  }).forEach((l) => {
72
- _e({
72
+ Ie({
73
73
  componentName: "VueUiGalaxy",
74
74
  type: "datasetSerieAttribute",
75
75
  property: l,
76
76
  index: a,
77
- debug: re.value
77
+ debug: ie.value
78
78
  });
79
79
  });
80
80
  }), e.value.responsive) {
81
- const t = Tt(() => {
82
- const { width: a, height: l } = St({
83
- chart: m.value,
81
+ const t = St(() => {
82
+ const { width: a, height: l } = Pt({
83
+ chart: k.value,
84
84
  title: e.value.style.chart.title.text ? le.value : null,
85
85
  legend: e.value.style.chart.legend.show ? ae.value : null,
86
86
  noTitle: se.value,
@@ -90,193 +90,193 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
90
90
  D.value = Math.max(0.1, a), B.value = Math.max(0.1, l - 12);
91
91
  });
92
92
  });
93
- A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = m.value.parentNode, A.value.observe(V.value);
93
+ A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = k.value.parentNode, A.value.observe(V.value);
94
94
  }
95
95
  }
96
- const { userOptionsVisible: X, setUserOptionsVisibility: ce, keepUserOptionState: ve } = It({ config: e.value }), { svgRef: de } = Lt({ config: e.value.style.chart.title });
96
+ const { userOptionsVisible: X, setUserOptionsVisibility: ve, keepUserOptionState: de } = At({ config: e.value }), { svgRef: he } = Nt({ config: e.value.style.chart.title });
97
97
  function Y() {
98
- const t = Ne({
99
- userConfig: b.config,
100
- defaultConfig: Ue
98
+ const t = Fe({
99
+ userConfig: m.config,
100
+ defaultConfig: Xe
101
101
  });
102
102
  return t.theme ? {
103
- ...Ne({
104
- userConfig: ft.vue_ui_galaxy[t.theme] || b.config,
103
+ ...Fe({
104
+ userConfig: mt.vue_ui_galaxy[t.theme] || m.config,
105
105
  defaultConfig: t
106
106
  }),
107
- customPalette: yt[t.theme] || W
107
+ customPalette: bt[t.theme] || W
108
108
  } : t;
109
109
  }
110
- rt(() => b.config, (t) => {
111
- e.value = Y(), X.value = !e.value.userOptions.showOnChartHover, ie(), Z.value += 1, ee.value += 1, te.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
110
+ it(() => m.config, (t) => {
111
+ e.value = Y(), X.value = !e.value.userOptions.showOnChartHover, ce(), Z.value += 1, ee.value += 1, te.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
112
112
  }, { deep: !0 });
113
- const { isPrinting: he, isImaging: ge, generatePdf: pe, generateImage: ye } = _t({
114
- elementId: `galaxy_${L.value}`,
113
+ const { isPrinting: ge, isImaging: pe, generatePdf: ye, generateImage: fe } = Lt({
114
+ elementId: `galaxy_${f.value}`,
115
115
  fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
116
116
  options: e.value.userOptions.print
117
- }), Ye = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), je = v(() => bt(e.value.customPalette)), p = u({
117
+ }), je = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), qe = d(() => kt(e.value.customPalette)), p = s({
118
118
  dataLabels: {
119
119
  show: e.value.style.chart.layout.labels.dataLabels.show
120
120
  },
121
121
  showTable: e.value.table.show,
122
122
  showTooltip: e.value.style.chart.tooltip.show
123
- }), D = u(250), B = u(180), qe = u(0), Je = u(0), k = v(() => ({
123
+ }), D = s(250), B = s(180), Je = s(0), Ke = s(0), w = d(() => ({
124
124
  width: D.value,
125
125
  height: B.value,
126
- viewBox: `${qe.value} ${Je.value} ${D.value} ${B.value}`
127
- })), fe = De, y = u([]);
126
+ viewBox: `${Je.value} ${Ke.value} ${D.value} ${B.value}`
127
+ })), be = Be, y = s([]);
128
128
  function j(t) {
129
- y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), fe("selectLegend", N.value.map((a) => ({
129
+ y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), be("selectLegend", N.value.map((a) => ({
130
130
  name: a.name,
131
131
  color: a.color,
132
132
  value: a.value
133
133
  })));
134
134
  }
135
- const T = v(() => ne.value.map((t, a) => ({
135
+ const P = d(() => re.value.map((t, a) => ({
136
136
  name: t.name,
137
- color: mt(t.color) || je.value[a] || W[a] || W[a % W.length],
138
- value: t.values ? Ie(t.values).reduce((l, s) => l + s, 0) : 0,
139
- absoluteValues: Ie(t.values),
137
+ color: wt(t.color) || qe.value[a] || W[a] || W[a % W.length],
138
+ value: t.values ? Le(t.values).reduce((l, u) => l + u, 0) : 0,
139
+ absoluteValues: Le(t.values),
140
140
  id: Oe()
141
141
  })).sort((t, a) => a.value - t.value).map((t, a) => ({
142
142
  ...t,
143
143
  absoluteIndex: a
144
144
  })));
145
- function Ke() {
146
- return T.value.map((t) => ({
145
+ function Qe() {
146
+ return P.value.map((t) => ({
147
147
  name: t.name,
148
148
  color: t.color,
149
149
  value: t.value
150
150
  }));
151
151
  }
152
- const f = v(() => T.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), be = u(190), me = v(() => T.value.filter((t) => !y.value.includes(t.id))), Qe = v(
152
+ const b = d(() => P.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), me = s(190), ke = d(() => P.value.filter((t) => !y.value.includes(t.id))), Ze = d(
153
153
  () => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
154
- ), Ze = v(() => kt({
155
- maxPoints: be.value,
154
+ ), et = d(() => Ct({
155
+ maxPoints: me.value,
156
156
  a: e.value.style.chart.layout.arcs.a ?? 6,
157
157
  b: e.value.style.chart.layout.arcs.b ?? 6,
158
158
  angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
159
- startX: k.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
160
- startY: k.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
161
- boxWidth: k.value.width,
162
- boxHeight: k.value.height,
163
- padding: Qe.value
164
- })), N = v(() => {
159
+ startX: w.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
160
+ startY: w.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
161
+ boxWidth: w.value.width,
162
+ boxHeight: w.value.height,
163
+ padding: Ze.value
164
+ })), N = d(() => {
165
165
  const t = [];
166
- for (let a = 0; a < me.value.length; a += 1) {
167
- const l = me.value[a], s = l.value / f.value * be.value + (a > 0 && t.length ? t[a - 1].points : 0);
166
+ for (let a = 0; a < ke.value.length; a += 1) {
167
+ const l = ke.value[a], u = l.value / b.value * me.value + (a > 0 && t.length ? t[a - 1].points : 0);
168
168
  t.push({
169
- points: s,
169
+ points: u,
170
170
  ...l,
171
171
  seriesIndex: a,
172
- proportion: l.value / f.value,
173
- path: Ze.value(s)
172
+ proportion: l.value / b.value,
173
+ path: et.value(u)
174
174
  });
175
175
  }
176
176
  return t.filter((a) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
177
177
  });
178
178
  function q(t) {
179
- const a = Math.min(D.value, B.value), l = x.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, c = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
179
+ const a = Math.min(D.value, B.value), l = S.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, u = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, v = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
180
180
  return {
181
- border: s / 180 * a,
181
+ border: u / 180 * a,
182
182
  path: r / 180 * a,
183
- blur: c / 180 * a
183
+ blur: v / 180 * a
184
184
  };
185
185
  }
186
- const P = u(!1);
187
- function ke(t) {
188
- P.value = t, Q.value += 1;
189
- }
190
- const J = u(null);
191
- function et(t) {
192
- G.value = !1, x.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
186
+ const O = s(!1);
187
+ function we(t) {
188
+ O.value = t, Q.value += 1;
193
189
  }
190
+ const J = s(null);
194
191
  function tt(t) {
195
- fe("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
192
+ G.value = !1, S.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
193
+ }
194
+ function lt(t) {
195
+ be("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
196
196
  }
197
- function lt({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
197
+ function at({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: u = !1 }) {
198
198
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), J.value = {
199
199
  datapoint: t,
200
200
  seriesIndex: l,
201
- series: T.value,
201
+ series: P.value,
202
202
  config: e.value
203
- }, G.value = s, x.value = t.id;
203
+ }, G.value = u, S.value = t.id;
204
204
  let r = "";
205
- const c = e.value.style.chart.tooltip.customFormat;
206
- Ae(c) && xt(() => c({
205
+ const v = e.value.style.chart.tooltip.customFormat;
206
+ Ne(v) && _t(() => v({
207
207
  seriesIndex: l,
208
208
  datapoint: t,
209
- series: T.value,
209
+ series: P.value,
210
210
  config: e.value
211
- })) ? H.value = c({
211
+ })) ? H.value = v({
212
212
  seriesIndex: l,
213
213
  datapoint: t,
214
- series: T.value,
214
+ series: P.value,
215
215
  config: e.value
216
- }) : (r += `<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>`, r += `<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>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Le(
216
+ }) : (r += `<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>`, r += `<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>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Ae(
217
217
  e.value.style.chart.layout.labels.dataLabels.formatter,
218
218
  t.value,
219
- $({
219
+ _({
220
220
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
221
221
  v: t.value,
222
222
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
223
223
  r: e.value.style.chart.tooltip.roundingValue
224
224
  }),
225
225
  { datapoint: t, seriesIndex: l }
226
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${$({
226
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${_({
227
227
  v: t.proportion * 100,
228
228
  s: "%",
229
229
  r: e.value.style.chart.tooltip.roundingPercentage
230
- })})</span></div>` : r += `<b>${$({
230
+ })})</span></div>` : r += `<b>${_({
231
231
  v: t.proportion * 100,
232
232
  s: "%",
233
233
  r: e.value.style.chart.tooltip.roundingPercentage
234
234
  })}</b></div>`), H.value = `<div>${r}</div>`);
235
235
  }
236
- const we = v(() => T.value.map((t, a) => ({
236
+ const Ce = d(() => P.value.map((t, a) => ({
237
237
  ...t,
238
- proportion: (t.value || 0) / ne.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
238
+ proportion: (t.value || 0) / re.value.map((l) => (l.values || []).reduce((u, r) => u + r, 0)).reduce((l, u) => l + u, 0),
239
239
  opacity: y.value.includes(t.id) ? 0.5 : 1,
240
240
  shape: t.shape || "circle",
241
241
  segregate: () => j(t),
242
242
  isSegregated: y.value.includes(t.id)
243
- }))), at = v(() => ({
243
+ }))), ot = d(() => ({
244
244
  cy: "galaxy-div-legend",
245
245
  backgroundColor: e.value.style.chart.legend.backgroundColor,
246
246
  color: e.value.style.chart.legend.color,
247
247
  fontSize: e.value.style.chart.legend.fontSize,
248
248
  paddingBottom: 12,
249
249
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
250
- })), w = v(() => {
250
+ })), C = d(() => {
251
251
  const t = N.value.map((l) => ({
252
252
  name: l.name,
253
253
  color: l.color
254
254
  })), a = N.value.map((l) => l.value);
255
255
  return { head: t, body: a };
256
256
  });
257
- function Ce(t = null) {
258
- vt(() => {
259
- const a = w.value.head.map((r, c) => [[
257
+ function $e(t = null) {
258
+ ht(() => {
259
+ const a = C.value.head.map((r, v) => [[
260
260
  r.name
261
- ], [w.value.body[c]], [isNaN(w.value.body[c] / f.value) ? "-" : w.value.body[c] / f.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = Ct(l);
262
- t ? t(s) : $t({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
261
+ ], [C.value.body[v]], [isNaN(C.value.body[v] / b.value) ? "-" : C.value.body[v] / b.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), u = xt(l);
262
+ t ? t(u) : Tt({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
263
263
  });
264
264
  }
265
- const M = v(() => {
265
+ const M = d(() => {
266
266
  const t = [
267
267
  ' <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>',
268
- $({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: f.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
268
+ _({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: b.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
269
269
  "100%"
270
- ], a = w.value.head.map((r, c) => {
271
- const st = $({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value.body[c], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
270
+ ], a = C.value.head.map((r, v) => {
271
+ const ut = _({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
272
272
  return [
273
273
  {
274
274
  color: r.color,
275
275
  name: r.name
276
276
  },
277
- st,
278
- isNaN(w.value.body[c] / f.value) ? "-" : $({
279
- v: w.value.body[c] / f.value * 100,
277
+ ut,
278
+ isNaN(C.value.body[v] / b.value) ? "-" : _({
279
+ v: C.value.body[v] / b.value * 100,
280
280
  s: "%",
281
281
  r: e.value.table.td.roundingPercentage
282
282
  })
@@ -305,69 +305,69 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
305
305
  config: l
306
306
  };
307
307
  });
308
- function $e() {
308
+ function xe() {
309
309
  p.value.showTable = !p.value.showTable;
310
310
  }
311
- function xe() {
311
+ function Te() {
312
312
  p.value.showTooltip = !p.value.showTooltip;
313
313
  }
314
- const E = u(!1);
314
+ const E = s(!1);
315
315
  function K() {
316
316
  E.value = !E.value;
317
317
  }
318
- async function ot({ scale: t = 2 } = {}) {
319
- if (!m.value) return;
320
- const { width: a, height: l } = m.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: c } = await At({ domElement: m.value, base64: !0, img: !0, scale: t });
318
+ async function st({ scale: t = 2 } = {}) {
319
+ if (!k.value) return;
320
+ const { width: a, height: l } = k.value.getBoundingClientRect(), u = a / l, { imageUri: r, base64: v } = await Ft({ domElement: k.value, base64: !0, img: !0, scale: t });
321
321
  return {
322
322
  imageUri: r,
323
- base64: c,
323
+ base64: v,
324
324
  title: e.value.style.chart.title.text,
325
325
  width: a,
326
326
  height: l,
327
- aspectRatio: s
327
+ aspectRatio: u
328
328
  };
329
329
  }
330
- return Ve({
331
- getData: Ke,
332
- getImage: ot,
333
- generatePdf: pe,
334
- generateCsv: Ce,
335
- generateImage: ye,
336
- toggleTable: $e,
337
- toggleTooltip: xe,
330
+ return De({
331
+ getData: Qe,
332
+ getImage: st,
333
+ generatePdf: ye,
334
+ generateCsv: $e,
335
+ generateImage: fe,
336
+ toggleTable: xe,
337
+ toggleTooltip: Te,
338
338
  toggleAnnotator: K,
339
- toggleFullscreen: ke
339
+ toggleFullscreen: we
340
340
  }), (t, a) => (n(), i("div", {
341
341
  ref_key: "galaxyChart",
342
- ref: m,
343
- class: R(`vue-ui-galaxy ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${o(U) ? "loading" : ""}`),
342
+ ref: k,
343
+ class: R(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${o(U) ? "loading" : ""}`),
344
344
  style: z(`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}`),
345
- id: `galaxy_${L.value}`,
346
- onMouseenter: a[2] || (a[2] = () => o(ce)(!0)),
347
- onMouseleave: a[3] || (a[3] = () => o(ce)(!1))
345
+ id: `galaxy_${f.value}`,
346
+ onMouseenter: a[2] || (a[2] = () => o(ve)(!0)),
347
+ onMouseleave: a[3] || (a[3] = () => o(ve)(!1))
348
348
  }, [
349
- e.value.userOptions.buttons.annotator ? (n(), S(o(We), {
349
+ e.value.userOptions.buttons.annotator ? (n(), x(o(Ge), {
350
350
  key: 0,
351
- svgRef: o(de),
351
+ svgRef: o(he),
352
352
  backgroundColor: e.value.style.chart.backgroundColor,
353
353
  color: e.value.style.chart.color,
354
354
  active: E.value,
355
355
  onClose: K
356
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
357
- Ye.value ? (n(), i("div", {
356
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
357
+ je.value ? (n(), i("div", {
358
358
  key: 1,
359
359
  ref_key: "noTitle",
360
360
  ref: se,
361
361
  class: "vue-data-ui-no-title-space",
362
362
  style: "height:36px; width: 100%;background:transparent"
363
- }, null, 512)) : d("", !0),
363
+ }, null, 512)) : c("", !0),
364
364
  e.value.style.chart.title.text ? (n(), i("div", {
365
365
  key: 2,
366
366
  ref_key: "chartTitle",
367
367
  ref: le,
368
368
  style: "width:100%;background:transparent;padding-bottom:24px"
369
369
  }, [
370
- (n(), S(o(Be), {
370
+ (n(), x(o(Me), {
371
371
  key: `title_${Z.value}`,
372
372
  config: {
373
373
  title: {
@@ -380,16 +380,19 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
380
380
  }
381
381
  }
382
382
  }, null, 8, ["config"]))
383
- ], 512)) : d("", !0),
384
- e.value.userOptions.show && ue.value && (o(ve) || o(X)) ? (n(), S(o(Ge), {
383
+ ], 512)) : c("", !0),
384
+ T("div", {
385
+ id: `legend-top-${f.value}`
386
+ }, null, 8, Bt),
387
+ e.value.userOptions.show && ne.value && (o(de) || o(X)) ? (n(), x(o(He), {
385
388
  ref_key: "details",
386
- ref: Xe,
389
+ ref: Ye,
387
390
  key: `user_option_${Q.value}`,
388
391
  backgroundColor: e.value.style.chart.backgroundColor,
389
392
  color: e.value.style.chart.color,
390
- isPrinting: o(he),
391
- isImaging: o(ge),
392
- uid: L.value,
393
+ isPrinting: o(ge),
394
+ isImaging: o(pe),
395
+ uid: f.value,
393
396
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
394
397
  hasPdf: e.value.userOptions.buttons.pdf,
395
398
  hasXls: e.value.userOptions.buttons.csv,
@@ -397,29 +400,29 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
397
400
  hasTable: e.value.userOptions.buttons.table,
398
401
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
399
402
  isTooltip: p.value.showTooltip,
400
- isFullscreen: P.value,
403
+ isFullscreen: O.value,
401
404
  titles: { ...e.value.userOptions.buttonTitles },
402
- chartElement: m.value,
405
+ chartElement: k.value,
403
406
  position: e.value.userOptions.position,
404
407
  hasAnnotator: e.value.userOptions.buttons.annotator,
405
408
  isAnnotation: E.value,
406
409
  callbacks: e.value.userOptions.callbacks,
407
410
  printScale: e.value.userOptions.print.scale,
408
- onToggleFullscreen: ke,
409
- onGeneratePdf: o(pe),
410
- onGenerateCsv: Ce,
411
- onGenerateImage: o(ye),
412
- onToggleTable: $e,
413
- onToggleTooltip: xe,
411
+ onToggleFullscreen: we,
412
+ onGeneratePdf: o(ye),
413
+ onGenerateCsv: $e,
414
+ onGenerateImage: o(fe),
415
+ onToggleTable: xe,
416
+ onToggleTooltip: Te,
414
417
  onToggleAnnotator: K,
415
418
  style: z({
416
- visibility: o(ve) ? o(X) ? "visible" : "hidden" : "visible"
419
+ visibility: o(de) ? o(X) ? "visible" : "hidden" : "visible"
417
420
  })
418
- }, it({ _: 2 }, [
421
+ }, ct({ _: 2 }, [
419
422
  t.$slots.menuIcon ? {
420
423
  name: "menuIcon",
421
- fn: g(({ isOpen: l, color: s }) => [
422
- h(t.$slots, "menuIcon", _(I({ isOpen: l, color: s })), void 0, !0)
424
+ fn: g(({ isOpen: l, color: u }) => [
425
+ h(t.$slots, "menuIcon", I(L({ isOpen: l, color: u })), void 0, !0)
423
426
  ]),
424
427
  key: "0"
425
428
  } : void 0,
@@ -460,53 +463,53 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
460
463
  } : void 0,
461
464
  t.$slots.optionFullscreen ? {
462
465
  name: "optionFullscreen",
463
- fn: g(({ toggleFullscreen: l, isFullscreen: s }) => [
464
- h(t.$slots, "optionFullscreen", _(I({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
466
+ fn: g(({ toggleFullscreen: l, isFullscreen: u }) => [
467
+ h(t.$slots, "optionFullscreen", I(L({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
465
468
  ]),
466
469
  key: "6"
467
470
  } : void 0,
468
471
  t.$slots.optionAnnotator ? {
469
472
  name: "optionAnnotator",
470
- fn: g(({ toggleAnnotator: l, isAnnotator: s }) => [
471
- h(t.$slots, "optionAnnotator", _(I({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
473
+ fn: g(({ toggleAnnotator: l, isAnnotator: u }) => [
474
+ h(t.$slots, "optionAnnotator", I(L({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
472
475
  ]),
473
476
  key: "7"
474
477
  } : void 0
475
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
478
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
476
479
  (n(), i("svg", {
477
480
  ref_key: "svgRef",
478
- ref: de,
479
- xmlns: o(wt),
480
- class: R({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
481
- viewBox: k.value.viewBox,
481
+ ref: he,
482
+ xmlns: o($t),
483
+ class: R({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
484
+ viewBox: w.value.viewBox,
482
485
  style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
483
486
  }, [
484
- Te(o(He)),
487
+ _e(o(Ue)),
485
488
  t.$slots["chart-background"] ? (n(), i("foreignObject", {
486
489
  key: 0,
487
490
  x: 0,
488
491
  y: 0,
489
- width: k.value.width,
490
- height: k.value.height,
492
+ width: w.value.width,
493
+ height: w.value.height,
491
494
  style: {
492
495
  pointerEvents: "none"
493
496
  }
494
497
  }, [
495
498
  h(t.$slots, "chart-background", {}, void 0, !0)
496
- ], 8, Dt)) : d("", !0),
497
- O("defs", null, [
498
- O("filter", {
499
- id: `blur_${L.value}`,
499
+ ], 8, Et)) : c("", !0),
500
+ T("defs", null, [
501
+ T("filter", {
502
+ id: `blur_${f.value}`,
500
503
  x: "-50%",
501
504
  y: "-50%",
502
505
  width: "200%",
503
506
  height: "200%"
504
507
  }, [
505
- O("feGaussianBlur", {
508
+ T("feGaussianBlur", {
506
509
  in: "SourceGraphic",
507
510
  stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
508
- }, null, 8, Mt)
509
- ], 8, Bt)
511
+ }, null, 8, Rt)
512
+ ], 8, zt)
510
513
  ]),
511
514
  (n(!0), i(Se, null, Pe(N.value, (l) => (n(), i("g", null, [
512
515
  l.value ? (n(), i("path", {
@@ -516,7 +519,7 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
516
519
  stroke: e.value.style.chart.backgroundColor,
517
520
  "stroke-width": q(l).border,
518
521
  "stroke-linecap": "round"
519
- }, null, 8, Et)) : d("", !0),
522
+ }, null, 8, Wt)) : c("", !0),
520
523
  l.value ? (n(), i("path", {
521
524
  key: 1,
522
525
  d: l.path,
@@ -524,23 +527,23 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
524
527
  stroke: l.color,
525
528
  "stroke-width": q(l).path,
526
529
  "stroke-linecap": "round",
527
- class: R(`${x.value && x.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
528
- }, null, 10, zt)) : d("", !0),
530
+ class: R(`${S.value && S.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
531
+ }, null, 10, Gt)) : c("", !0),
529
532
  l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), i("g", {
530
533
  key: 2,
531
- filter: `url(#blur_${L.value})`
534
+ filter: `url(#blur_${f.value})`
532
535
  }, [
533
- O("path", {
536
+ T("path", {
534
537
  d: l.path,
535
538
  fill: "none",
536
539
  stroke: e.value.style.chart.layout.arcs.gradient.color,
537
540
  "stroke-width": q(l).blur,
538
541
  "stroke-linecap": "round",
539
- class: R(`vue-ui-galaxy-gradient ${x.value && x.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
540
- }, null, 10, Wt)
541
- ], 8, Rt)) : d("", !0)
542
+ class: R(`vue-ui-galaxy-gradient ${S.value && S.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
543
+ }, null, 10, Ut)
544
+ ], 8, Ht)) : c("", !0)
542
545
  ]))), 256)),
543
- (n(!0), i(Se, null, Pe(N.value, (l, s) => (n(), i("g", null, [
546
+ (n(!0), i(Se, null, Pe(N.value, (l, u) => (n(), i("g", null, [
544
547
  l.value ? (n(), i("path", {
545
548
  key: 0,
546
549
  d: l.path,
@@ -548,64 +551,72 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
548
551
  stroke: "transparent",
549
552
  "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
550
553
  "stroke-linecap": "round",
551
- onMouseenter: (r) => lt({
554
+ onMouseenter: (r) => at({
552
555
  datapoint: l,
553
556
  seriesIndex: l.seriesIndex,
554
557
  show: !0
555
558
  }),
556
- onMouseleave: (r) => et(l),
557
- onClick: (r) => tt(l)
558
- }, null, 40, Gt)) : d("", !0)
559
+ onMouseleave: (r) => tt(l),
560
+ onClick: (r) => lt(l)
561
+ }, null, 40, Xt)) : c("", !0)
559
562
  ]))), 256)),
560
- h(t.$slots, "svg", { svg: k.value }, void 0, !0)
561
- ], 14, Vt)),
562
- t.$slots.watermark ? (n(), i("div", Ht, [
563
- h(t.$slots, "watermark", _(I({ isPrinting: o(he) || o(ge) })), void 0, !0)
564
- ])) : d("", !0),
565
- O("div", {
566
- ref_key: "chartLegend",
567
- ref: ae
563
+ h(t.$slots, "svg", { svg: w.value }, void 0, !0)
564
+ ], 14, Mt)),
565
+ t.$slots.watermark ? (n(), i("div", Yt, [
566
+ h(t.$slots, "watermark", I(L({ isPrinting: o(ge) || o(pe) })), void 0, !0)
567
+ ])) : c("", !0),
568
+ T("div", {
569
+ id: `legend-bottom-${f.value}`
570
+ }, null, 8, jt),
571
+ ue.value ? (n(), x(vt, {
572
+ key: 5,
573
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
568
574
  }, [
569
- e.value.style.chart.legend.show ? (n(), S(o(Me), {
570
- key: `legend_${te.value}`,
571
- legendSet: we.value,
572
- config: at.value,
573
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => j(l))
574
- }, {
575
- item: g(({ legend: l, index: s }) => [
576
- o(U) ? d("", !0) : (n(), i("div", {
577
- key: 0,
578
- onClick: (r) => j(l),
579
- style: z(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
580
- }, F(l.name) + F(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + F(e.value.style.chart.legend.showValue ? o(Le)(
581
- e.value.style.chart.layout.labels.dataLabels.formatter,
582
- l.value,
583
- o($)({
584
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
585
- v: l.value,
586
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
587
- r: e.value.style.chart.legend.roundingValue
588
- }),
589
- { datapoint: l, seriesIndex: s }
590
- ) : "") + " " + F(e.value.style.chart.legend.showPercentage ? y.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / f.value) ? "-" : o($)({
591
- v: l.value / f.value * 100,
592
- s: "%",
593
- r: e.value.style.chart.legend.roundingPercentage
594
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ut))
595
- ]),
596
- _: 1
597
- }, 8, ["legendSet", "config"])) : d("", !0),
598
- h(t.$slots, "legend", { legend: we.value }, void 0, !0)
599
- ], 512),
575
+ T("div", {
576
+ ref_key: "chartLegend",
577
+ ref: ae
578
+ }, [
579
+ e.value.style.chart.legend.show ? (n(), x(o(Ee), {
580
+ key: `legend_${te.value}`,
581
+ legendSet: Ce.value,
582
+ config: ot.value,
583
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => j(l))
584
+ }, {
585
+ item: g(({ legend: l, index: u }) => [
586
+ o(U) ? c("", !0) : (n(), i("div", {
587
+ key: 0,
588
+ onClick: (r) => j(l),
589
+ style: z(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
590
+ }, F(l.name) + F(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + F(e.value.style.chart.legend.showValue ? o(Ae)(
591
+ e.value.style.chart.layout.labels.dataLabels.formatter,
592
+ l.value,
593
+ o(_)({
594
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
595
+ v: l.value,
596
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
597
+ r: e.value.style.chart.legend.roundingValue
598
+ }),
599
+ { datapoint: l, seriesIndex: u }
600
+ ) : "") + " " + F(e.value.style.chart.legend.showPercentage ? y.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / b.value) ? "-" : o(_)({
601
+ v: l.value / b.value * 100,
602
+ s: "%",
603
+ r: e.value.style.chart.legend.roundingPercentage
604
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, qt))
605
+ ]),
606
+ _: 1
607
+ }, 8, ["legendSet", "config"])) : c("", !0),
608
+ h(t.$slots, "legend", { legend: Ce.value }, void 0, !0)
609
+ ], 512)
610
+ ], 8, ["to"])) : c("", !0),
600
611
  t.$slots.source ? (n(), i("div", {
601
- key: 5,
612
+ key: 6,
602
613
  ref_key: "source",
603
614
  ref: oe,
604
615
  dir: "auto"
605
616
  }, [
606
617
  h(t.$slots, "source", {}, void 0, !0)
607
- ], 512)) : d("", !0),
608
- Te(o(Re), {
618
+ ], 512)) : c("", !0),
619
+ _e(o(We), {
609
620
  show: p.value.showTooltip && G.value,
610
621
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
611
622
  color: e.value.style.chart.tooltip.color,
@@ -616,23 +627,23 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
616
627
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
617
628
  position: e.value.style.chart.tooltip.position,
618
629
  offsetY: e.value.style.chart.tooltip.offsetY,
619
- parent: m.value,
630
+ parent: k.value,
620
631
  content: H.value,
621
- isFullscreen: P.value,
622
- isCustom: o(Ae)(e.value.style.chart.tooltip.customFormat),
632
+ isFullscreen: O.value,
633
+ isCustom: o(Ne)(e.value.style.chart.tooltip.customFormat),
623
634
  smooth: e.value.style.chart.tooltip.smooth,
624
635
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
625
636
  }, {
626
637
  "tooltip-before": g(() => [
627
- h(t.$slots, "tooltip-before", _(I({ ...J.value })), void 0, !0)
638
+ h(t.$slots, "tooltip-before", I(L({ ...J.value })), void 0, !0)
628
639
  ]),
629
640
  "tooltip-after": g(() => [
630
- h(t.$slots, "tooltip-after", _(I({ ...J.value })), void 0, !0)
641
+ h(t.$slots, "tooltip-after", I(L({ ...J.value })), void 0, !0)
631
642
  ]),
632
643
  _: 3
633
644
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
634
- ue.value ? (n(), S(o(Ee), {
635
- key: 6,
645
+ ne.value ? (n(), x(o(ze), {
646
+ key: 7,
636
647
  hideDetails: "",
637
648
  config: {
638
649
  open: p.value.showTable,
@@ -648,7 +659,7 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
648
659
  }
649
660
  }, {
650
661
  content: g(() => [
651
- (n(), S(o(ze), {
662
+ (n(), x(o(Re), {
652
663
  key: `table_${ee.value}`,
653
664
  colNames: M.value.colNames,
654
665
  head: M.value.head,
@@ -658,23 +669,23 @@ const Ft = ["id"], Vt = ["xmlns", "viewBox"], Dt = ["width", "height"], Bt = ["i
658
669
  onClose: a[1] || (a[1] = (l) => p.value.showTable = !1)
659
670
  }, {
660
671
  th: g(({ th: l }) => [
661
- O("div", {
672
+ T("div", {
662
673
  innerHTML: l,
663
674
  style: { display: "flex", "align-items": "center" }
664
- }, null, 8, Xt)
675
+ }, null, 8, Jt)
665
676
  ]),
666
677
  td: g(({ td: l }) => [
667
- ct(F(l.name || l), 1)
678
+ dt(F(l.name || l), 1)
668
679
  ]),
669
680
  _: 1
670
681
  }, 8, ["colNames", "head", "body", "config", "title"]))
671
682
  ]),
672
683
  _: 1
673
- }, 8, ["config"])) : d("", !0),
674
- o(U) ? (n(), S(Ot, { key: 7 })) : d("", !0)
675
- ], 46, Ft));
684
+ }, 8, ["config"])) : c("", !0),
685
+ o(U) ? (n(), x(It, { key: 8 })) : c("", !0)
686
+ ], 46, Dt));
676
687
  }
677
- }, ol = /* @__PURE__ */ Nt(Yt, [["__scopeId", "data-v-5de20f8f"]]);
688
+ }, rl = /* @__PURE__ */ Vt(Kt, [["__scopeId", "data-v-f08fb5f3"]]);
678
689
  export {
679
- ol as default
690
+ rl as default
680
691
  };