vue-data-ui 3.4.8 → 3.5.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.
Files changed (114) hide show
  1. package/README.md +88 -37
  2. package/dist/{PackageVersion-D-auaEEJ.js → PackageVersion-Cyx_s25h.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-sparkline.js +1 -1
  45. package/dist/components/vue-ui-table.js +1 -1
  46. package/dist/components/vue-ui-thermometer.js +1 -1
  47. package/dist/components/vue-ui-timer.js +1 -1
  48. package/dist/components/vue-ui-tiremarks.js +1 -1
  49. package/dist/components/vue-ui-treemap.js +1 -1
  50. package/dist/components/vue-ui-vertical-bar.js +1 -1
  51. package/dist/components/vue-ui-waffle.js +1 -1
  52. package/dist/components/vue-ui-wheel.js +1 -1
  53. package/dist/components/vue-ui-word-cloud.js +1 -1
  54. package/dist/components/vue-ui-world.js +1 -1
  55. package/dist/components/vue-ui-xy-canvas.js +1 -1
  56. package/dist/components/vue-ui-xy.js +1 -1
  57. package/dist/style.css +1 -1
  58. package/dist/{vue-data-ui-CzqHcPqG.js → vue-data-ui-DxgRqCAo.js} +104 -98
  59. package/dist/vue-data-ui.js +54 -54
  60. package/dist/{vue-ui-3d-bar-CwXiD8zD.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
  61. package/dist/{vue-ui-age-pyramid-DlEPlWmV.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
  62. package/dist/{vue-ui-bullet-DtzpeIu4.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
  63. package/dist/{vue-ui-candlestick-DzoiyaeB.js → vue-ui-candlestick-DewevWV_.js} +1 -1
  64. package/dist/{vue-ui-carousel-table-BqRERrjs.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
  65. package/dist/{vue-ui-chestnut-CzBGckif.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
  66. package/dist/{vue-ui-chord-B4waG93A.js → vue-ui-chord-BG4dxKNA.js} +1 -1
  67. package/dist/{vue-ui-circle-pack-DiTw_p5r.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
  68. package/dist/{vue-ui-dashboard-Bt-MUKqy.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
  69. package/dist/{vue-ui-donut-Bc492JeS.js → vue-ui-donut-BRGFcgxS.js} +542 -526
  70. package/dist/{vue-ui-donut-evolution-D6TaZK2x.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
  71. package/dist/{vue-ui-dumbbell-BlZr68Sq.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
  72. package/dist/{vue-ui-flow-ByEP18dA.js → vue-ui-flow-CTYFoib3.js} +1 -1
  73. package/dist/{vue-ui-funnel-BU7d_U6T.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
  74. package/dist/{vue-ui-galaxy-CpVrxaTr.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
  75. package/dist/{vue-ui-gauge-B9Z4EXoj.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
  76. package/dist/{vue-ui-gizmo-T1paJEJ3.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
  77. package/dist/{vue-ui-heatmap-Uw83eEMz.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
  78. package/dist/{vue-ui-history-plot-C93VwVCY.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
  79. package/dist/{vue-ui-molecule-CFMWwXFN.js → vue-ui-molecule-BALqwB8c.js} +1 -1
  80. package/dist/{vue-ui-mood-radar-FkVaaOVG.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
  81. package/dist/{vue-ui-nested-donuts-Cyi98NXq.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
  82. package/dist/{vue-ui-onion-BCENNhsY.js → vue-ui-onion-DAOCf3f8.js} +331 -309
  83. package/dist/{vue-ui-parallel-coordinate-plot-Dca9wkD0.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
  84. package/dist/{vue-ui-quadrant-CEtFEZT3.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
  85. package/dist/{vue-ui-quick-chart-bqcp6BIl.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
  86. package/dist/{vue-ui-radar-lgRCmyNP.js → vue-ui-radar-C5V4hhbW.js} +393 -374
  87. package/dist/{vue-ui-relation-circle-cRRrbaIT.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
  88. package/dist/{vue-ui-ridgeline-CaeFJq9a.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
  89. package/dist/{vue-ui-rings-DbsYfGjx.js → vue-ui-rings-BpUcyqo7.js} +285 -263
  90. package/dist/{vue-ui-scatter-DcMnoNrY.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
  91. package/dist/{vue-ui-skeleton-b5fdgyHv.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
  92. package/dist/{vue-ui-spark-trend-DrQ26BzL.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
  93. package/dist/{vue-ui-sparkbar-BlvXLcfO.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
  94. package/dist/{vue-ui-sparkgauge-CQmNePxu.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
  95. package/dist/{vue-ui-sparkhistogram-CJatqy8x.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
  96. package/dist/{vue-ui-sparkline-5m7hFiMq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
  97. package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
  98. package/dist/{vue-ui-stackbar-WrexTg8_.js → vue-ui-stackbar-CkBOjryQ.js} +438 -421
  99. package/dist/{vue-ui-strip-plot-DqX7yya9.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
  100. package/dist/{vue-ui-table-BhrP9BCp.js → vue-ui-table-7r02N9R9.js} +2 -2
  101. package/dist/{vue-ui-table-sparkline-BECa8n5_.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
  102. package/dist/{vue-ui-thermometer-BxBGrsSR.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
  103. package/dist/{vue-ui-timer-BbHY5Ed5.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
  104. package/dist/{vue-ui-tiremarks-DzL3Sc1f.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
  105. package/dist/{vue-ui-treemap-DoHoS5NK.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
  106. package/dist/{vue-ui-vertical-bar-D0N5btU-.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
  107. package/dist/{vue-ui-waffle-CTt7dxCY.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
  108. package/dist/{vue-ui-wheel--TIPvQ9I.js → vue-ui-wheel-BpirIgAG.js} +1 -1
  109. package/dist/{vue-ui-word-cloud-D5pZq4Jq.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
  110. package/dist/{vue-ui-world-BERHgePa.js → vue-ui-world-CdP4g_3_.js} +1 -1
  111. package/dist/{vue-ui-xy-BI5stV8f.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
  112. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
  113. package/package.json +1 -1
  114. package/dist/vue-ui-sparkstackbar-Z5g6L2Hj.js +0 -424
@@ -1,21 +1,21 @@
1
- import { defineAsyncComponent as x, ref as o, computed as i, toRefs as wt, onMounted as Ct, watch as Le, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as G, createBlock as T, createCommentVNode as d, createElementVNode as k, createVNode as ae, createSlots as Fe, withCtx as v, renderSlot as h, normalizeProps as I, guardReactiveProps as D, Fragment as Ae, renderList as Ne, Teleport as $t, toDisplayString as oe, resolveDynamicComponent as xt, mergeProps as Tt, createTextVNode as Be, nextTick as Ve } from "vue";
2
- import { c as Ee, t as St, o as Ot, f as Me, g as Pt, b as _t, p as z, e as It, a1 as Re, h as Dt, a5 as Lt, a as We, d as S, X as Ft, G as Ge, P as At, Q as Nt, H as Bt } from "./lib-C_mNZmhD.js";
3
- import { t as Vt, u as Et } from "./useResponsive-DfdjqQps.js";
4
- import { u as Mt, a as ze } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as Rt, B as Wt } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Gt } from "./usePrinter-DTzqpYKF.js";
7
- import { u as zt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Ht } from "./useChartAccessibility-9icAAmYg.js";
9
- import Ut from "./img-BecE5qXd.js";
10
- import { t as Xt } from "./themes-AUNCOb2G.js";
11
- import Yt from "./Title-l36lOBMx.js";
12
- import jt from "./Legend-G6GMcdAc.js";
13
- import { u as qt } from "./useSvgExport-DrjCWun4.js";
14
- import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "height"], tl = ["id"], ll = ["stdDeviation"], al = ["d", "stroke", "stroke-width"], ol = ["d", "stroke", "stroke-width"], sl = ["filter"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], rl = {
1
+ import { defineAsyncComponent as T, ref as o, computed as i, toRefs as xt, onMounted as Tt, watch as Fe, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as U, createBlock as S, createCommentVNode as d, createElementVNode as w, createVNode as ae, createSlots as Ae, withCtx as v, renderSlot as h, normalizeProps as I, guardReactiveProps as D, Fragment as Ne, renderList as Be, Teleport as St, toDisplayString as oe, resolveDynamicComponent as Ot, mergeProps as Pt, createTextVNode as Ve, nextTick as Ee } from "vue";
2
+ import { c as Me, t as _t, o as It, f as Ge, g as Dt, b as Lt, p as z, e as Ft, a1 as Re, h as At, a5 as Nt, a as We, d as O, X as Bt, G as Ue, P as Vt, Q as Et, H as Mt } from "./lib-C_mNZmhD.js";
3
+ import { t as Gt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Wt, a as ze } from "./useNestedProp-BjZe1Y85.js";
5
+ import { u as Ut, B as zt } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Ht } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as Xt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import jt from "./img-BecE5qXd.js";
10
+ import { t as qt } from "./themes-AUNCOb2G.js";
11
+ import Qt from "./Title-l36lOBMx.js";
12
+ import Jt from "./Legend-G6GMcdAc.js";
13
+ import { u as Kt } from "./useSvgExport-DrjCWun4.js";
14
+ import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const el = ["id"], tl = ["id"], ll = ["xmlns", "viewBox"], al = ["width", "height"], ol = ["id"], sl = ["stdDeviation"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke", "stroke-width"], rl = ["filter"], il = ["d", "stroke", "stroke-width"], vl = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], cl = {
16
16
  key: 4,
17
17
  class: "vue-data-ui-watermark"
18
- }, il = ["id"], vl = ["onClick"], cl = ["innerHTML"], dl = {
18
+ }, dl = ["id"], hl = ["onClick"], gl = ["innerHTML"], pl = {
19
19
  __name: "vue-ui-galaxy",
20
20
  props: {
21
21
  config: {
@@ -32,14 +32,14 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
32
32
  }
33
33
  },
34
34
  emits: ["selectLegend", "selectDatapoint"],
35
- setup(He, { expose: Ue, emit: Xe }) {
36
- const Ye = x(() => import("./Tooltip-oWCO1HKy.js")), je = x(() => import("./BaseIcon-BmMbm4d0.js")), qe = x(() => import("./vue-ui-accordion-CZ0thhxa.js")), Qe = x(() => import("./DataTable-BT7VF2ua.js")), Je = x(() => import("./PenAndPaper-DSvu9dwa.js")), Ke = x(() => import("./UserOptions-CGnQt6Fd.js")), Ze = x(() => import("./PackageVersion-D-auaEEJ.js")), et = x(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_galaxy: tt } = Mt(), w = He, y = o(Ee()), b = o(null), H = o(!1), U = o(""), O = o(null), se = o(0), ne = o(0), ue = o(0), re = o(0), ie = o(null), ve = o(null), ce = o(null), de = o(null), L = o(null), B = o(null), he = o(!1), F = o(null), X = o(null), ge = i(() => !!w.dataset && w.dataset.length), e = o(Q()), { loading: Y, FINAL_DATASET: pe } = Rt({
37
- ...wt(w),
35
+ setup(He, { expose: Xe, emit: Ye }) {
36
+ const je = T(() => import("./Tooltip-oWCO1HKy.js")), qe = T(() => import("./BaseIcon-BmMbm4d0.js")), Qe = T(() => import("./vue-ui-accordion-CZ0thhxa.js")), Je = T(() => import("./DataTable-BT7VF2ua.js")), Ke = T(() => import("./PenAndPaper-DSvu9dwa.js")), Ze = T(() => import("./UserOptions-CGnQt6Fd.js")), et = T(() => import("./PackageVersion-Cyx_s25h.js")), tt = T(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_galaxy: lt } = Wt(), C = He, y = o(Me()), b = o(null), H = o(!1), X = o(""), P = o(null), se = o(0), ne = o(0), ue = o(0), re = o(0), ie = o(null), ve = o(null), ce = o(null), de = o(null), L = o(null), V = o(null), he = o(!1), F = o(null), Y = o(null), ge = i(() => !!C.dataset && C.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: pe } = Ut({
37
+ ...xt(C),
38
38
  FINAL_CONFIG: e,
39
- prepareConfig: Q,
39
+ prepareConfig: J,
40
40
  callback: () => {
41
41
  Promise.resolve().then(async () => {
42
- await Ve(), p.value.showTable = e.value.table.show;
42
+ await Ee(), p.value.showTable = e.value.table.show;
43
43
  });
44
44
  },
45
45
  skeletonDataset: [
@@ -47,7 +47,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
47
47
  { name: "_", values: [13], color: "#C4C4C4" },
48
48
  { name: "_", values: [8], color: "#ADADAD" }
49
49
  ],
50
- skeletonConfig: St({
50
+ skeletonConfig: _t({
51
51
  defaultConfig: e.value,
52
52
  userConfig: {
53
53
  userOptions: { show: !1 },
@@ -64,21 +64,21 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
64
64
  }
65
65
  })
66
66
  });
67
- Ct(() => {
67
+ Tt(() => {
68
68
  he.value = !0, ye();
69
69
  });
70
70
  const fe = i(() => !!e.value.debug);
71
71
  function ye() {
72
- if (Ot(w.dataset) ? Me({
72
+ if (It(C.dataset) ? Ge({
73
73
  componentName: "VueUiGalaxy",
74
74
  type: "dataset",
75
75
  debug: fe.value
76
- }) : w.dataset.forEach((t, a) => {
77
- Pt({
76
+ }) : C.dataset.forEach((t, a) => {
77
+ Dt({
78
78
  datasetObject: t,
79
79
  requiredAttributes: ["name", "values"]
80
80
  }).forEach((l) => {
81
- Me({
81
+ Ge({
82
82
  componentName: "VueUiGalaxy",
83
83
  type: "datasetSerieAttribute",
84
84
  property: l,
@@ -87,8 +87,8 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
87
87
  });
88
88
  });
89
89
  }), e.value.responsive) {
90
- const t = Vt(() => {
91
- const { width: a, height: l } = Et({
90
+ const t = Gt(() => {
91
+ const { width: a, height: l } = Rt({
92
92
  chart: b.value,
93
93
  title: e.value.style.chart.title.text ? ie.value : null,
94
94
  legend: e.value.style.chart.legend.show ? ve.value : null,
@@ -96,96 +96,110 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
96
96
  source: ce.value
97
97
  });
98
98
  requestAnimationFrame(() => {
99
- V.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
99
+ E.value = Math.max(0.1, a), M.value = Math.max(0.1, l - 12);
100
100
  });
101
101
  });
102
- L.value && (B.value && L.value.unobserve(B.value), L.value.disconnect()), L.value = new ResizeObserver(t), B.value = b.value.parentNode, L.value.observe(B.value);
102
+ L.value && (V.value && L.value.unobserve(V.value), L.value.disconnect()), L.value = new ResizeObserver(t), V.value = b.value.parentNode, L.value.observe(V.value);
103
103
  }
104
104
  }
105
- const { userOptionsVisible: j, setUserOptionsVisibility: be, keepUserOptionState: me } = zt({ config: e.value }), { svgRef: q } = Ht({ config: e.value.style.chart.title });
106
- function Q() {
105
+ const { userOptionsVisible: q, setUserOptionsVisibility: be, keepUserOptionState: me } = Xt({ config: e.value }), { svgRef: Q } = Yt({ config: e.value.style.chart.title });
106
+ function J() {
107
107
  const t = ze({
108
- userConfig: w.config,
109
- defaultConfig: tt
108
+ userConfig: C.config,
109
+ defaultConfig: lt
110
110
  });
111
111
  return t.theme ? {
112
112
  ...ze({
113
- userConfig: Xt.vue_ui_galaxy[t.theme] || w.config,
113
+ userConfig: qt.vue_ui_galaxy[t.theme] || C.config,
114
114
  defaultConfig: t
115
115
  }),
116
- customPalette: _t[t.theme] || z
116
+ customPalette: Lt[t.theme] || z
117
117
  } : t;
118
118
  }
119
- Le(() => w.config, (t) => {
120
- e.value = Q(), j.value = !e.value.userOptions.showOnChartHover, ye(), ne.value += 1, ue.value += 1, re.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;
119
+ Fe(() => C.config, (t) => {
120
+ e.value = J(), q.value = !e.value.userOptions.showOnChartHover, ye(), ne.value += 1, ue.value += 1, re.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;
121
121
  }, { deep: !0 });
122
- const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = Gt({
122
+ const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = Ht({
123
123
  elementId: `galaxy_${y.value}`,
124
124
  fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
125
125
  options: e.value.userOptions.print
126
- }), lt = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = i(() => It(e.value.customPalette)), p = o({
126
+ }), at = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), ot = i(() => Ft(e.value.customPalette)), p = o({
127
127
  dataLabels: {
128
128
  show: e.value.style.chart.layout.labels.dataLabels.show
129
129
  },
130
130
  showTable: e.value.table.show,
131
131
  showTooltip: e.value.style.chart.tooltip.show
132
- }), V = o(250), E = o(180), ot = o(0), st = o(0), C = i(() => ({
133
- width: V.value,
134
- height: E.value,
135
- viewBox: `${ot.value} ${st.value} ${V.value} ${E.value}`
136
- })), xe = Xe, f = o([]);
137
- function J(t) {
138
- f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), xe("selectLegend", A.value.map((a) => ({
132
+ }), E = o(250), M = o(180), st = o(0), nt = o(0), $ = i(() => ({
133
+ width: E.value,
134
+ height: M.value,
135
+ viewBox: `${st.value} ${nt.value} ${E.value} ${M.value}`
136
+ })), xe = Ye, f = o([]);
137
+ function A(t) {
138
+ f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), xe("selectLegend", N.value.map((a) => ({
139
139
  name: a.name,
140
140
  color: a.color,
141
141
  value: a.value
142
142
  })));
143
143
  }
144
- const P = i(() => pe.value.map((t, a) => ({
144
+ function Te(t) {
145
+ if (!m.value.length)
146
+ return e.value.debug && console.warn("VueUiGalaxy - There are no series to show."), null;
147
+ const a = m.value.find((l) => l.name === t);
148
+ return a || (e.value.debug && console.warn(`VueUiGalaxy - Series name not found "${t}"`), null);
149
+ }
150
+ function ut(t) {
151
+ const a = Te(t);
152
+ a !== null && f.value.includes(a.id) && A({ id: a.id });
153
+ }
154
+ function rt(t) {
155
+ const a = Te(t);
156
+ a !== null && (f.value.includes(a.id) || A({ id: a.id }));
157
+ }
158
+ const m = i(() => pe.value.map((t, a) => ({
145
159
  name: t.name,
146
- color: Dt(t.color) || at.value[a] || z[a] || z[a % z.length],
160
+ color: At(t.color) || ot.value[a] || z[a] || z[a % z.length],
147
161
  value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
148
162
  absoluteValues: Re(t.values),
149
- id: Ee()
163
+ id: Me()
150
164
  })).sort((t, a) => a.value - t.value).map((t, a) => ({
151
165
  ...t,
152
166
  absoluteIndex: a
153
167
  })));
154
- function nt() {
155
- return P.value.map((t) => ({
168
+ function it() {
169
+ return m.value.map((t) => ({
156
170
  name: t.name,
157
171
  color: t.color,
158
172
  value: t.value
159
173
  }));
160
174
  }
161
- const m = i(() => P.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Te = o(190), Se = i(() => P.value.filter((t) => !f.value.includes(t.id))), ut = i(
175
+ const k = i(() => m.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Se = o(190), Oe = i(() => m.value.filter((t) => !f.value.includes(t.id))), vt = i(
162
176
  () => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
163
- ), rt = i(() => Lt({
164
- maxPoints: Te.value,
177
+ ), ct = i(() => Nt({
178
+ maxPoints: Se.value,
165
179
  a: e.value.style.chart.layout.arcs.a ?? 6,
166
180
  b: e.value.style.chart.layout.arcs.b ?? 6,
167
181
  angleStep: e.value.style.chart.layout.arcs.angleStep ?? 0.07,
168
- startX: C.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
169
- startY: C.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
170
- boxWidth: C.value.width,
171
- boxHeight: C.value.height,
172
- padding: ut.value
173
- })), A = i(() => {
182
+ startX: $.value.width / 2 + e.value.style.chart.layout.arcs.offsetX,
183
+ startY: $.value.height / 2 + e.value.style.chart.layout.arcs.offsetY,
184
+ boxWidth: $.value.width,
185
+ boxHeight: $.value.height,
186
+ padding: vt.value
187
+ })), N = i(() => {
174
188
  const t = [];
175
- for (let a = 0; a < Se.value.length; a += 1) {
176
- const l = Se.value[a], s = l.value / m.value * Te.value + (a > 0 && t.length ? t[a - 1].points : 0);
189
+ for (let a = 0; a < Oe.value.length; a += 1) {
190
+ const l = Oe.value[a], s = l.value / k.value * Se.value + (a > 0 && t.length ? t[a - 1].points : 0);
177
191
  t.push({
178
192
  points: s,
179
193
  ...l,
180
194
  seriesIndex: a,
181
- proportion: l.value / m.value,
182
- path: rt.value(s)
195
+ proportion: l.value / k.value,
196
+ path: ct.value(s)
183
197
  });
184
198
  }
185
199
  return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
186
200
  });
187
201
  function K(t) {
188
- const a = Math.min(V.value, E.value), l = O.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, g = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
202
+ const a = Math.min(E.value, M.value), l = P.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, g = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
189
203
  return {
190
204
  border: s / 180 * a,
191
205
  path: r / 180 * a,
@@ -193,105 +207,105 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
193
207
  };
194
208
  }
195
209
  const _ = o(!1);
196
- function Oe(t) {
210
+ function Pe(t) {
197
211
  _.value = t, se.value += 1;
198
212
  }
199
213
  const Z = o(null);
200
- function it(t) {
201
- H.value = !1, O.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
214
+ function dt(t) {
215
+ H.value = !1, P.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
202
216
  }
203
- function vt(t) {
217
+ function ht(t) {
204
218
  xe("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
205
219
  }
206
- function ct({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
220
+ function gt({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
207
221
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
208
222
  datapoint: t,
209
223
  seriesIndex: l,
210
- series: P.value,
224
+ series: m.value,
211
225
  config: e.value
212
- }, H.value = s, O.value = t.id;
226
+ }, H.value = s, P.value = t.id;
213
227
  let r = "";
214
228
  const g = e.value.style.chart.tooltip.customFormat;
215
- Ge(g) && Bt(() => g({
229
+ Ue(g) && Mt(() => g({
216
230
  seriesIndex: l,
217
231
  datapoint: t,
218
- series: P.value,
232
+ series: m.value,
219
233
  config: e.value
220
- })) ? U.value = g({
234
+ })) ? X.value = g({
221
235
  seriesIndex: l,
222
236
  datapoint: t,
223
- series: P.value,
237
+ series: m.value,
224
238
  config: e.value
225
239
  }) : (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>${We(
226
240
  e.value.style.chart.layout.labels.dataLabels.formatter,
227
241
  t.value,
228
- S({
242
+ O({
229
243
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
230
244
  v: t.value,
231
245
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
232
246
  r: e.value.style.chart.tooltip.roundingValue
233
247
  }),
234
248
  { datapoint: t, seriesIndex: l }
235
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${S({
249
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${O({
236
250
  v: t.proportion * 100,
237
251
  s: "%",
238
252
  r: e.value.style.chart.tooltip.roundingPercentage
239
- })})</span></div>` : r += `<b>${S({
253
+ })})</span></div>` : r += `<b>${O({
240
254
  v: t.proportion * 100,
241
255
  s: "%",
242
256
  r: e.value.style.chart.tooltip.roundingPercentage
243
- })}</b></div>`), U.value = `<div>${r}</div>`);
257
+ })}</b></div>`), X.value = `<div>${r}</div>`);
244
258
  }
245
- const ee = i(() => P.value.map((t, a) => ({
259
+ const ee = i(() => m.value.map((t, a) => ({
246
260
  ...t,
247
261
  proportion: (t.value || 0) / pe.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
248
262
  opacity: f.value.includes(t.id) ? 0.5 : 1,
249
263
  shape: t.shape || "circle",
250
- segregate: () => J(t),
264
+ segregate: () => A(t),
251
265
  isSegregated: f.value.includes(t.id),
252
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, S({
266
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, O({
253
267
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
254
268
  v: t.value,
255
269
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
256
270
  r: e.value.style.chart.legend.roundingValue
257
- }), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / m.value) ? "-" : S({ v: t.value / m.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
258
- }))), dt = i(() => ({
271
+ }), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / k.value) ? "-" : O({ v: t.value / k.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
272
+ }))), pt = i(() => ({
259
273
  cy: "galaxy-div-legend",
260
274
  backgroundColor: e.value.style.chart.legend.backgroundColor,
261
275
  color: e.value.style.chart.legend.color,
262
276
  fontSize: e.value.style.chart.legend.fontSize,
263
277
  paddingBottom: 12,
264
278
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
265
- })), $ = i(() => {
266
- const t = A.value.map((l) => ({
279
+ })), x = i(() => {
280
+ const t = N.value.map((l) => ({
267
281
  name: l.name,
268
282
  color: l.color
269
- })), a = A.value.map((l) => l.value);
283
+ })), a = N.value.map((l) => l.value);
270
284
  return { head: t, body: a };
271
285
  });
272
286
  function te(t = null) {
273
- Ve(() => {
274
- const a = $.value.head.map((r, g) => [[
287
+ Ee(() => {
288
+ const a = x.value.head.map((r, g) => [[
275
289
  r.name
276
- ], [$.value.body[g]], [isNaN($.value.body[g] / m.value) ? "-" : $.value.body[g] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = At(l);
277
- t ? t(s) : Nt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
290
+ ], [x.value.body[g]], [isNaN(x.value.body[g] / k.value) ? "-" : x.value.body[g] / k.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = Vt(l);
291
+ t ? t(s) : Et({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
278
292
  });
279
293
  }
280
- const M = i(() => {
294
+ const G = i(() => {
281
295
  const t = [
282
296
  ' <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>',
283
- S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
297
+ O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: k.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
284
298
  "100%"
285
- ], a = $.value.head.map((r, g) => {
286
- const kt = S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
299
+ ], a = x.value.head.map((r, g) => {
300
+ const $t = O({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
287
301
  return [
288
302
  {
289
303
  color: r.color,
290
304
  name: r.name
291
305
  },
292
- kt,
293
- isNaN($.value.body[g] / m.value) ? "-" : S({
294
- v: $.value.body[g] / m.value * 100,
306
+ $t,
307
+ isNaN(x.value.body[g] / k.value) ? "-" : O({
308
+ v: x.value.body[g] / k.value * 100,
295
309
  s: "%",
296
310
  r: e.value.table.td.roundingPercentage
297
311
  })
@@ -320,19 +334,19 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
320
334
  config: l
321
335
  };
322
336
  });
323
- function Pe() {
337
+ function _e() {
324
338
  p.value.showTable = !p.value.showTable;
325
339
  }
326
- function _e() {
340
+ function Ie() {
327
341
  p.value.showTooltip = !p.value.showTooltip;
328
342
  }
329
343
  const R = o(!1);
330
344
  function le() {
331
345
  R.value = !R.value;
332
346
  }
333
- async function ht({ scale: t = 2 } = {}) {
347
+ async function ft({ scale: t = 2 } = {}) {
334
348
  if (!b.value) return;
335
- const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: g } = await Ut({ domElement: b.value, base64: !0, img: !0, scale: t });
349
+ const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: g } = await jt({ domElement: b.value, base64: !0, img: !0, scale: t });
336
350
  return {
337
351
  imageUri: r,
338
352
  base64: g,
@@ -342,10 +356,10 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
342
356
  aspectRatio: s
343
357
  };
344
358
  }
345
- const N = i(() => {
359
+ const B = i(() => {
346
360
  const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
347
361
  return {
348
- component: t ? et : qe,
362
+ component: t ? tt : Qe,
349
363
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
350
364
  props: t ? {
351
365
  backgroundColor: e.value.table.th.backgroundColor,
@@ -372,58 +386,60 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
372
386
  }
373
387
  };
374
388
  });
375
- Le(() => p.value.showTable, (t) => {
389
+ Fe(() => p.value.showTable, (t) => {
376
390
  e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
377
391
  });
378
- function Ie() {
379
- p.value.showTable = !1, X.value && X.value.setTableIconState(!1);
392
+ function De() {
393
+ p.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
380
394
  }
381
- const gt = i(() => ee.value.map((t) => ({
395
+ const yt = i(() => ee.value.map((t) => ({
382
396
  ...t,
383
397
  name: t.display
384
- }))), pt = i(() => e.value.style.chart.backgroundColor), ft = i(() => e.value.style.chart.legend), yt = i(() => e.value.style.chart.title), { exportSvg: bt, getSvg: mt } = qt({
385
- svg: q,
386
- title: yt,
387
- legend: ft,
388
- legendItems: gt,
389
- backgroundColor: pt
398
+ }))), bt = i(() => e.value.style.chart.backgroundColor), mt = i(() => e.value.style.chart.legend), kt = i(() => e.value.style.chart.title), { exportSvg: wt, getSvg: Ct } = Kt({
399
+ svg: Q,
400
+ title: kt,
401
+ legend: mt,
402
+ legendItems: yt,
403
+ backgroundColor: bt
390
404
  });
391
- async function De({ isCb: t }) {
405
+ async function Le({ isCb: t }) {
392
406
  if (t) {
393
- const { blob: a, url: l, text: s, dataUrl: r } = await mt();
407
+ const { blob: a, url: l, text: s, dataUrl: r } = await Ct();
394
408
  e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: r });
395
409
  } else
396
- bt();
410
+ wt();
397
411
  }
398
- return Ue({
399
- getData: nt,
400
- getImage: ht,
412
+ return Xe({
413
+ getData: it,
414
+ getImage: ft,
401
415
  generatePdf: Ce,
402
416
  generateCsv: te,
403
417
  generateImage: $e,
404
- generateSvg: De,
405
- toggleTable: Pe,
406
- toggleTooltip: _e,
418
+ generateSvg: Le,
419
+ hideSeries: rt,
420
+ showSeries: ut,
421
+ toggleTable: _e,
422
+ toggleTooltip: Ie,
407
423
  toggleAnnotator: le,
408
- toggleFullscreen: Oe
424
+ toggleFullscreen: Pe
409
425
  }), (t, a) => (n(), c("div", {
410
426
  ref_key: "galaxyChart",
411
427
  ref: b,
412
- class: G(`vue-data-ui-component vue-ui-galaxy ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(Y) ? "loading" : ""}`),
428
+ class: U(`vue-data-ui-component vue-ui-galaxy ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(j) ? "loading" : ""}`),
413
429
  style: W(`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}`),
414
430
  id: `galaxy_${y.value}`,
415
431
  onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
416
432
  onMouseleave: a[3] || (a[3] = () => u(be)(!1))
417
433
  }, [
418
- e.value.userOptions.buttons.annotator ? (n(), T(u(Je), {
434
+ e.value.userOptions.buttons.annotator ? (n(), S(u(Ke), {
419
435
  key: 0,
420
- svgRef: u(q),
436
+ svgRef: u(Q),
421
437
  backgroundColor: e.value.style.chart.backgroundColor,
422
438
  color: e.value.style.chart.color,
423
439
  active: R.value,
424
440
  onClose: le
425
441
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
426
- lt.value ? (n(), c("div", {
442
+ at.value ? (n(), c("div", {
427
443
  key: 1,
428
444
  ref_key: "noTitle",
429
445
  ref: de,
@@ -436,7 +452,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
436
452
  ref: ie,
437
453
  style: "width:100%;background:transparent;padding-bottom:24px"
438
454
  }, [
439
- (n(), T(Yt, {
455
+ (n(), S(Qt, {
440
456
  key: `title_${ne.value}`,
441
457
  config: {
442
458
  title: {
@@ -450,12 +466,12 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
450
466
  }
451
467
  }, null, 8, ["config"]))
452
468
  ], 512)) : d("", !0),
453
- k("div", {
469
+ w("div", {
454
470
  id: `legend-top-${y.value}`
455
- }, null, 8, Kt),
456
- e.value.userOptions.show && ge.value && (u(me) || u(j)) ? (n(), T(u(Ke), {
471
+ }, null, 8, tl),
472
+ e.value.userOptions.show && ge.value && (u(me) || u(q)) ? (n(), S(u(Ze), {
457
473
  ref_key: "userOptionsRef",
458
- ref: X,
474
+ ref: Y,
459
475
  key: `user_option_${se.value}`,
460
476
  backgroundColor: e.value.style.chart.backgroundColor,
461
477
  color: e.value.style.chart.color,
@@ -479,18 +495,18 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
479
495
  callbacks: e.value.userOptions.callbacks,
480
496
  printScale: e.value.userOptions.print.scale,
481
497
  tableDialog: e.value.table.useDialog,
482
- onToggleFullscreen: Oe,
498
+ onToggleFullscreen: Pe,
483
499
  onGeneratePdf: u(Ce),
484
500
  onGenerateCsv: te,
485
501
  onGenerateImage: u($e),
486
- onGenerateSvg: De,
487
- onToggleTable: Pe,
488
- onToggleTooltip: _e,
502
+ onGenerateSvg: Le,
503
+ onToggleTable: _e,
504
+ onToggleTooltip: Ie,
489
505
  onToggleAnnotator: le,
490
506
  style: W({
491
- visibility: u(me) ? u(j) ? "visible" : "hidden" : "visible"
507
+ visibility: u(me) ? u(q) ? "visible" : "hidden" : "visible"
492
508
  })
493
- }, Fe({ _: 2 }, [
509
+ }, Ae({ _: 2 }, [
494
510
  t.$slots.menuIcon ? {
495
511
  name: "menuIcon",
496
512
  fn: v(({ isOpen: l, color: s }) => [
@@ -557,40 +573,40 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
557
573
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
558
574
  (n(), c("svg", {
559
575
  ref_key: "svgRef",
560
- ref: q,
561
- xmlns: u(Ft),
562
- class: G({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
563
- viewBox: C.value.viewBox,
576
+ ref: Q,
577
+ xmlns: u(Bt),
578
+ class: U({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
579
+ viewBox: $.value.viewBox,
564
580
  style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
565
581
  }, [
566
- ae(u(Ze)),
582
+ ae(u(et)),
567
583
  t.$slots["chart-background"] ? (n(), c("foreignObject", {
568
584
  key: 0,
569
585
  x: 0,
570
586
  y: 0,
571
- width: C.value.width,
572
- height: C.value.height,
587
+ width: $.value.width,
588
+ height: $.value.height,
573
589
  style: {
574
590
  pointerEvents: "none"
575
591
  }
576
592
  }, [
577
593
  h(t.$slots, "chart-background", {}, void 0, !0)
578
- ], 8, el)) : d("", !0),
579
- k("defs", null, [
580
- k("filter", {
594
+ ], 8, al)) : d("", !0),
595
+ w("defs", null, [
596
+ w("filter", {
581
597
  id: `blur_${y.value}`,
582
598
  x: "-50%",
583
599
  y: "-50%",
584
600
  width: "200%",
585
601
  height: "200%"
586
602
  }, [
587
- k("feGaussianBlur", {
603
+ w("feGaussianBlur", {
588
604
  in: "SourceGraphic",
589
605
  stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
590
- }, null, 8, ll)
591
- ], 8, tl)
606
+ }, null, 8, sl)
607
+ ], 8, ol)
592
608
  ]),
593
- (n(!0), c(Ae, null, Ne(A.value, (l) => (n(), c("g", null, [
609
+ (n(!0), c(Ne, null, Be(N.value, (l) => (n(), c("g", null, [
594
610
  l.value ? (n(), c("path", {
595
611
  key: 0,
596
612
  d: l.path,
@@ -598,7 +614,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
598
614
  stroke: e.value.style.chart.backgroundColor,
599
615
  "stroke-width": K(l).border,
600
616
  "stroke-linecap": "round"
601
- }, null, 8, al)) : d("", !0),
617
+ }, null, 8, nl)) : d("", !0),
602
618
  l.value ? (n(), c("path", {
603
619
  key: 1,
604
620
  d: l.path,
@@ -606,23 +622,23 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
606
622
  stroke: l.color,
607
623
  "stroke-width": K(l).path,
608
624
  "stroke-linecap": "round",
609
- class: G(`${O.value && O.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
610
- }, null, 10, ol)) : d("", !0),
625
+ class: U(`${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
626
+ }, null, 10, ul)) : d("", !0),
611
627
  l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), c("g", {
612
628
  key: 2,
613
629
  filter: `url(#blur_${y.value})`
614
630
  }, [
615
- k("path", {
631
+ w("path", {
616
632
  d: l.path,
617
633
  fill: "none",
618
634
  stroke: e.value.style.chart.layout.arcs.gradient.color,
619
635
  "stroke-width": K(l).blur,
620
636
  "stroke-linecap": "round",
621
- class: G(`vue-ui-galaxy-gradient ${O.value && O.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
622
- }, null, 10, nl)
623
- ], 8, sl)) : d("", !0)
637
+ class: U(`vue-ui-galaxy-gradient ${P.value && P.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
638
+ }, null, 10, il)
639
+ ], 8, rl)) : d("", !0)
624
640
  ]))), 256)),
625
- (n(!0), c(Ae, null, Ne(A.value, (l, s) => (n(), c("g", null, [
641
+ (n(!0), c(Ne, null, Be(N.value, (l, s) => (n(), c("g", null, [
626
642
  l.value ? (n(), c("path", {
627
643
  key: 0,
628
644
  d: l.path,
@@ -630,43 +646,43 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
630
646
  stroke: "transparent",
631
647
  "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
632
648
  "stroke-linecap": "round",
633
- onMouseenter: (r) => ct({
649
+ onMouseenter: (r) => gt({
634
650
  datapoint: l,
635
651
  seriesIndex: l.seriesIndex,
636
652
  show: !0
637
653
  }),
638
- onMouseleave: (r) => it(l),
639
- onClick: (r) => vt(l)
640
- }, null, 40, ul)) : d("", !0)
654
+ onMouseleave: (r) => dt(l),
655
+ onClick: (r) => ht(l)
656
+ }, null, 40, vl)) : d("", !0)
641
657
  ]))), 256)),
642
- h(t.$slots, "svg", { svg: C.value }, void 0, !0)
643
- ], 14, Zt)),
644
- t.$slots.watermark ? (n(), c("div", rl, [
658
+ h(t.$slots, "svg", { svg: $.value }, void 0, !0)
659
+ ], 14, ll)),
660
+ t.$slots.watermark ? (n(), c("div", cl, [
645
661
  h(t.$slots, "watermark", I(D({ isPrinting: u(ke) || u(we) })), void 0, !0)
646
662
  ])) : d("", !0),
647
- k("div", {
663
+ w("div", {
648
664
  id: `legend-bottom-${y.value}`
649
- }, null, 8, il),
650
- he.value ? (n(), T($t, {
665
+ }, null, 8, dl),
666
+ he.value ? (n(), S(St, {
651
667
  key: 5,
652
668
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
653
669
  }, [
654
- k("div", {
670
+ w("div", {
655
671
  ref_key: "chartLegend",
656
672
  ref: ve
657
673
  }, [
658
- e.value.style.chart.legend.show ? (n(), T(jt, {
674
+ e.value.style.chart.legend.show ? (n(), S(Jt, {
659
675
  key: `legend_${re.value}`,
660
676
  legendSet: ee.value,
661
- config: dt.value,
662
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => J(l))
677
+ config: pt.value,
678
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => A(l))
663
679
  }, {
664
680
  item: v(({ legend: l, index: s }) => [
665
- u(Y) ? d("", !0) : (n(), c("div", {
681
+ u(j) ? d("", !0) : (n(), c("div", {
666
682
  key: 0,
667
- onClick: (r) => J(l),
683
+ onClick: (r) => A(l),
668
684
  style: W(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
669
- }, oe(l.display), 13, vl))
685
+ }, oe(l.display), 13, hl))
670
686
  ]),
671
687
  _: 1
672
688
  }, 8, ["legendSet", "config"])) : d("", !0),
@@ -681,7 +697,7 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
681
697
  }, [
682
698
  h(t.$slots, "source", {}, void 0, !0)
683
699
  ], 512)) : d("", !0),
684
- ae(u(Ye), {
700
+ ae(u(je), {
685
701
  show: p.value.showTooltip && H.value,
686
702
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
687
703
  color: e.value.style.chart.tooltip.color,
@@ -693,9 +709,9 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
693
709
  position: e.value.style.chart.tooltip.position,
694
710
  offsetY: e.value.style.chart.tooltip.offsetY,
695
711
  parent: b.value,
696
- content: U.value,
712
+ content: X.value,
697
713
  isFullscreen: _.value,
698
- isCustom: u(Ge)(e.value.style.chart.tooltip.customFormat),
714
+ isCustom: u(Ue)(e.value.style.chart.tooltip.customFormat),
699
715
  smooth: e.value.style.chart.tooltip.smooth,
700
716
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
701
717
  smoothForce: e.value.style.chart.tooltip.smoothForce,
@@ -709,30 +725,30 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
709
725
  ]),
710
726
  _: 3
711
727
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
712
- ge.value && e.value.userOptions.buttons.table ? (n(), T(xt(N.value.component), Tt({ key: 7 }, N.value.props, {
728
+ ge.value && e.value.userOptions.buttons.table ? (n(), S(Ot(B.value.component), Pt({ key: 7 }, B.value.props, {
713
729
  ref_key: "tableUnit",
714
730
  ref: F,
715
- onClose: Ie
716
- }), Fe({
731
+ onClose: De
732
+ }), Ae({
717
733
  content: v(() => [
718
- (n(), T(u(Qe), {
734
+ (n(), S(u(Je), {
719
735
  key: `table_${ue.value}`,
720
- colNames: M.value.colNames,
721
- head: M.value.head,
722
- body: M.value.body,
723
- config: M.value.config,
724
- title: e.value.table.useDialog ? "" : N.value.title,
736
+ colNames: G.value.colNames,
737
+ head: G.value.head,
738
+ body: G.value.body,
739
+ config: G.value.config,
740
+ title: e.value.table.useDialog ? "" : B.value.title,
725
741
  withCloseButton: !e.value.table.useDialog,
726
- onClose: Ie
742
+ onClose: De
727
743
  }, {
728
744
  th: v(({ th: l }) => [
729
- k("div", {
745
+ w("div", {
730
746
  innerHTML: l,
731
747
  style: { display: "flex", "align-items": "center" }
732
- }, null, 8, cl)
748
+ }, null, 8, gl)
733
749
  ]),
734
750
  td: v(({ td: l }) => [
735
- Be(oe(l.name || l), 1)
751
+ Ve(oe(l.name || l), 1)
736
752
  ]),
737
753
  _: 1
738
754
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -742,31 +758,31 @@ const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
742
758
  e.value.table.useDialog ? {
743
759
  name: "title",
744
760
  fn: v(() => [
745
- Be(oe(N.value.title), 1)
761
+ Ve(oe(B.value.title), 1)
746
762
  ]),
747
763
  key: "0"
748
764
  } : void 0,
749
765
  e.value.table.useDialog ? {
750
766
  name: "actions",
751
767
  fn: v(() => [
752
- k("button", {
768
+ w("button", {
753
769
  tabindex: "0",
754
770
  class: "vue-ui-user-options-button",
755
771
  onClick: a[1] || (a[1] = (l) => te(e.value.userOptions.callbacks.csv))
756
772
  }, [
757
- ae(u(je), {
773
+ ae(u(qe), {
758
774
  name: "excel",
759
- stroke: N.value.props.color
775
+ stroke: B.value.props.color
760
776
  }, null, 8, ["stroke"])
761
777
  ])
762
778
  ]),
763
779
  key: "1"
764
780
  } : void 0
765
781
  ]), 1040)) : d("", !0),
766
- u(Y) ? (n(), T(Wt, { key: 8 })) : d("", !0)
767
- ], 46, Jt));
782
+ u(j) ? (n(), S(zt, { key: 8 })) : d("", !0)
783
+ ], 46, el));
768
784
  }
769
- }, Ol = /* @__PURE__ */ Qt(dl, [["__scopeId", "data-v-1ff6df76"]]);
785
+ }, Il = /* @__PURE__ */ Zt(pl, [["__scopeId", "data-v-f5a928e8"]]);
770
786
  export {
771
- Ol as default
787
+ Il as default
772
788
  };