vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4

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 (92) hide show
  1. package/README.md +21 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
  17. package/dist/dom-to-png-DGfv21rX.js +247 -0
  18. package/dist/img-fdViJw1e.js +20 -0
  19. package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +60 -1
  23. package/dist/types/vue-data-ui.d.ts +60 -1
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
  90. package/package.json +1 -1
  91. package/dist/dom-to-png-BjSUS-jY.js +0 -243
  92. package/dist/img-DWfzRJdv.js +0 -19
@@ -1,7 +1,7 @@
1
- import { defineAsyncComponent as m, computed as h, onMounted as He, ref as n, watch as Re, createElementBlock as i, openBlock as s, unref as a, normalizeStyle as V, normalizeClass as E, createBlock as x, createCommentVNode as c, renderSlot as v, createVNode as ve, createSlots as Ue, withCtx as d, normalizeProps as _, guardReactiveProps as O, createElementVNode as P, Fragment as de, renderList as he, createTextVNode as pe, toDisplayString as M, nextTick as Xe } from "vue";
2
- import { u as je, o as Ye, e as ye, g as qe, c as ge, t as Je, p as B, a as Ke, b as Qe, H as fe, d as Ze, L as et, f as C, X as tt, i as be, x as me, q as lt, r as ot, y as at } from "./index-CbcpITE_.js";
3
- import { u as ke } from "./useNestedProp-y56W8I7J.js";
4
- import { u as st } from "./usePrinter-u-gQiRNz.js";
1
+ import { defineAsyncComponent as k, computed as h, onMounted as He, ref as n, watch as Re, createElementBlock as i, openBlock as r, unref as a, normalizeStyle as V, normalizeClass as E, createBlock as x, createCommentVNode as c, renderSlot as v, createVNode as ve, createSlots as Ue, withCtx as d, normalizeProps as _, guardReactiveProps as O, createElementVNode as P, Fragment as de, renderList as he, createTextVNode as pe, toDisplayString as M, nextTick as Xe } from "vue";
2
+ import { u as je, o as Ye, e as ye, g as qe, c as ge, t as Je, p as B, a as Ke, b as Qe, H as fe, d as Ze, L as et, f as w, X as tt, i as be, x as me, q as lt, r as ot, y as at } from "./index-BzQ0j5xI.js";
3
+ import { u as ke } from "./useNestedProp-DqpZEE3h.js";
4
+ import { u as st } from "./usePrinter-CpG5jh_z.js";
5
5
  import { u as rt } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as ut } from "./useChartAccessibility-9icAAmYg.js";
7
7
  import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -38,15 +38,15 @@ const it = ["id"], ct = {
38
38
  },
39
39
  emits: ["selectLegend", "selectDatapoint"],
40
40
  setup(Ce, { expose: we, emit: $e }) {
41
- const xe = m(() => import("./vue-ui-accordion-BkA7rtwr.js")), Te = m(() => import("./DataTable-CsoAI95B.js")), _e = m(() => import("./Legend-ZW-PFcHg.js")), Oe = m(() => import("./PackageVersion-DCAZ9Z7V.js")), Pe = m(() => import("./PenAndPaper-B9RP4oFj.js")), Se = m(() => import("./vue-ui-skeleton-miKWlCAi.js")), Ne = m(() => import("./Title-Dx8ctnVy.js")), Le = m(() => import("./Tooltip-COHlzpZI.js")), Ie = m(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_galaxy: Ae } = je(), g = Ce, I = h(() => !!g.dataset && g.dataset.length);
41
+ const xe = k(() => import("./vue-ui-accordion-bpaEpjqI.js")), Te = k(() => import("./DataTable-CmbjnjRg.js")), _e = k(() => import("./Legend-YPYnzTBz.js")), Oe = k(() => import("./PackageVersion-OcbP0WH2.js")), Pe = k(() => import("./PenAndPaper-BgPXmpGI.js")), Se = k(() => import("./vue-ui-skeleton-CavMQlAm.js")), Ne = k(() => import("./Title-CJcZXNtK.js")), Le = k(() => import("./Tooltip-dXp8FaUj.js")), Ie = k(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_galaxy: Ae } = je(), f = Ce, I = h(() => !!f.dataset && f.dataset.length);
42
42
  He(() => {
43
43
  X();
44
44
  });
45
45
  function X() {
46
- Ye(g.dataset) ? ye({
46
+ Ye(f.dataset) ? ye({
47
47
  componentName: "VueUiGalaxy",
48
48
  type: "dataset"
49
- }) : g.dataset.forEach((t, o) => {
49
+ }) : f.dataset.forEach((t, o) => {
50
50
  qe({
51
51
  datasetObject: t,
52
52
  requiredAttributes: ["name", "values"]
@@ -60,24 +60,24 @@ const it = ["id"], ct = {
60
60
  });
61
61
  });
62
62
  }
63
- const S = n(ge()), D = n(null), Fe = n(null), G = n(!1), z = n(""), f = n(null), j = n(0), Y = n(0), q = n(0), J = n(0), e = h({
63
+ const S = n(ge()), D = n(null), Fe = n(null), G = n(!1), z = n(""), b = n(null), j = n(0), Y = n(0), q = n(0), J = n(0), e = h({
64
64
  get: () => ee(),
65
65
  set: (t) => t
66
66
  }), { userOptionsVisible: W, setUserOptionsVisibility: K, keepUserOptionState: Q } = rt({ config: e.value }), { svgRef: Z } = ut({ config: e.value.style.chart.title });
67
67
  function ee() {
68
68
  const t = ke({
69
- userConfig: g.config,
69
+ userConfig: f.config,
70
70
  defaultConfig: Ae
71
71
  });
72
72
  return t.theme ? {
73
73
  ...ke({
74
- userConfig: Ke.vue_ui_galaxy[t.theme] || g.config,
74
+ userConfig: Ke.vue_ui_galaxy[t.theme] || f.config,
75
75
  defaultConfig: t
76
76
  }),
77
77
  customPalette: Je[t.theme] || B
78
78
  } : t;
79
79
  }
80
- Re(() => g.config, (t) => {
80
+ Re(() => f.config, (t) => {
81
81
  e.value = ee(), W.value = !e.value.userOptions.showOnChartHover, X(), Y.value += 1, q.value += 1, J.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;
82
82
  }, { deep: !0 });
83
83
  const { isPrinting: te, isImaging: le, generatePdf: oe, generateImage: ae } = st({
@@ -102,33 +102,33 @@ const it = ["id"], ct = {
102
102
  value: o.value
103
103
  })));
104
104
  }
105
- const w = h(() => g.dataset.map((t, o) => ({
105
+ const $ = h(() => f.dataset.map((t, o) => ({
106
106
  name: t.name,
107
107
  color: Ze(t.color) || Ee.value[o] || B[o] || B[o % B.length],
108
- value: t.values ? fe(t.values).reduce((l, r) => l + r, 0) : 0,
108
+ value: t.values ? fe(t.values).reduce((l, s) => l + s, 0) : 0,
109
109
  absoluteValues: fe(t.values),
110
110
  id: ge(),
111
111
  seriesIndex: o
112
112
  })).sort((t, o) => o.value - t.value));
113
113
  function Me() {
114
- return w.value.map((t) => ({
114
+ return $.value.map((t) => ({
115
115
  name: t.name,
116
116
  color: t.color,
117
117
  value: t.value
118
118
  }));
119
119
  }
120
- const b = h(() => w.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, o) => t + o, 0)), Be = n(190), re = h(() => w.value.filter((t) => !y.value.includes(t.id))), L = h(() => {
120
+ const m = h(() => $.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, o) => t + o, 0)), Be = n(190), re = h(() => $.value.filter((t) => !y.value.includes(t.id))), L = h(() => {
121
121
  const t = [];
122
122
  for (let o = 0; o < re.value.length; o += 1) {
123
123
  const l = re.value[o];
124
- let r = l.value / b.value * Be.value;
125
- o > 0 && t.length && (r += t[o - 1].points), t.push({
126
- points: r,
124
+ let s = l.value / m.value * Be.value;
125
+ o > 0 && t.length && (s += t[o - 1].points), t.push({
126
+ points: s,
127
127
  ...l,
128
128
  seriesIndex: o,
129
- proportion: l.value / b.value,
129
+ proportion: l.value / m.value,
130
130
  path: et({
131
- points: r,
131
+ points: s,
132
132
  startX: 115 + e.value.style.chart.layout.arcs.offsetX,
133
133
  startY: 90 + e.value.style.chart.layout.arcs.offsetY
134
134
  })
@@ -140,48 +140,48 @@ const it = ["id"], ct = {
140
140
  T.value = t, j.value += 1;
141
141
  }
142
142
  const R = n(null);
143
- function Ge({ datapoint: t, _relativeIndex: o, seriesIndex: l, show: r = !1 }) {
143
+ function Ge({ datapoint: t, _relativeIndex: o, seriesIndex: l, show: s = !1 }) {
144
144
  R.value = {
145
145
  datapoint: t,
146
146
  seriesIndex: l,
147
- series: w.value,
147
+ series: $.value,
148
148
  config: e.value
149
- }, G.value = r, f.value = t.id;
149
+ }, G.value = s, b.value = t.id;
150
150
  let u = "";
151
- const $ = e.value.style.chart.tooltip.customFormat;
152
- me($) && at(() => $({
151
+ const g = e.value.style.chart.tooltip.customFormat;
152
+ me(g) && at(() => g({
153
153
  seriesIndex: l,
154
154
  datapoint: t,
155
- series: w.value,
155
+ series: $.value,
156
156
  config: e.value
157
- })) ? z.value = $({
157
+ })) ? z.value = g({
158
158
  seriesIndex: l,
159
159
  datapoint: t,
160
- series: w.value,
160
+ series: $.value,
161
161
  config: e.value
162
162
  }) : (u += `<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>`, u += `<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 && (u += `<b>${be(
163
163
  e.value.style.chart.layout.labels.dataLabels.formatter,
164
164
  t.value,
165
- C({
165
+ w({
166
166
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
167
167
  v: t.value,
168
168
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
169
169
  r: e.value.style.chart.tooltip.roundingValue
170
170
  }),
171
171
  { datapoint: t, seriesIndex: l }
172
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${C({
172
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${w({
173
173
  v: t.proportion * 100,
174
174
  s: "%",
175
175
  r: e.value.style.chart.tooltip.roundingPercentage
176
- })})</span></div>` : u += `<b>${C({
176
+ })})</span></div>` : u += `<b>${w({
177
177
  v: t.proportion * 100,
178
178
  s: "%",
179
179
  r: e.value.style.chart.tooltip.roundingPercentage
180
180
  })}</b></div>`), z.value = `<div>${u}</div>`);
181
181
  }
182
- const ue = h(() => w.value.map((t, o) => ({
182
+ const ue = h(() => $.value.map((t, o) => ({
183
183
  ...t,
184
- proportion: (t.value || 0) / g.dataset.map((l) => (l.values || []).reduce((r, u) => r + u, 0)).reduce((l, r) => l + r, 0),
184
+ proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((s, u) => s + u, 0)).reduce((l, s) => l + s, 0),
185
185
  opacity: y.value.includes(t.id) ? 0.5 : 1,
186
186
  shape: t.shape || "circle",
187
187
  segregate: () => H(t),
@@ -193,36 +193,36 @@ const it = ["id"], ct = {
193
193
  fontSize: e.value.style.chart.legend.fontSize,
194
194
  paddingBottom: 12,
195
195
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
196
- })), k = h(() => {
196
+ })), C = h(() => {
197
197
  const t = L.value.map((l) => ({
198
198
  name: l.name,
199
199
  color: l.color
200
200
  })), o = L.value.map((l) => l.value);
201
201
  return { head: t, body: o };
202
202
  });
203
- function ne() {
203
+ function ne(t = null) {
204
204
  Xe(() => {
205
- const t = k.value.head.map((r, u) => [[
206
- r.name
207
- ], [k.value.body[u]], [isNaN(k.value.body[u] / b.value) ? "-" : k.value.body[u] / b.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = lt(o);
208
- ot({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
205
+ const o = C.value.head.map((u, g) => [[
206
+ u.name
207
+ ], [C.value.body[g]], [isNaN(C.value.body[g] / m.value) ? "-" : C.value.body[g] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), s = lt(l);
208
+ t ? t(s) : ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
209
209
  });
210
210
  }
211
211
  const A = h(() => {
212
212
  const t = [
213
213
  ' <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>',
214
- C({ 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 }),
214
+ w({ 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 }),
215
215
  "100%"
216
- ], o = k.value.head.map((u, $) => {
217
- const We = C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: k.value.body[$], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
216
+ ], o = C.value.head.map((u, g) => {
217
+ const We = w({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
218
218
  return [
219
219
  {
220
220
  color: u.color,
221
221
  name: u.name
222
222
  },
223
223
  We,
224
- isNaN(k.value.body[$] / b.value) ? "-" : C({
225
- v: k.value.body[$] / b.value * 100,
224
+ isNaN(C.value.body[g] / m.value) ? "-" : w({
225
+ v: C.value.body[g] / m.value * 100,
226
226
  s: "%",
227
227
  r: e.value.table.td.roundingPercentage
228
228
  })
@@ -269,7 +269,7 @@ const it = ["id"], ct = {
269
269
  toggleTable: ie,
270
270
  toggleTooltip: ce,
271
271
  toggleAnnotator: U
272
- }), (t, o) => (s(), i("div", {
272
+ }), (t, o) => (r(), i("div", {
273
273
  ref_key: "galaxyChart",
274
274
  ref: D,
275
275
  class: E(`vue-ui-galaxy ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
@@ -278,7 +278,7 @@ const it = ["id"], ct = {
278
278
  onMouseenter: o[3] || (o[3] = () => a(K)(!0)),
279
279
  onMouseleave: o[4] || (o[4] = () => a(K)(!1))
280
280
  }, [
281
- e.value.userOptions.buttons.annotator ? (s(), x(a(Pe), {
281
+ e.value.userOptions.buttons.annotator ? (r(), x(a(Pe), {
282
282
  key: 0,
283
283
  svgRef: a(Z),
284
284
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -286,9 +286,9 @@ const it = ["id"], ct = {
286
286
  active: F.value,
287
287
  onClose: U
288
288
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
289
- Ve.value ? (s(), i("div", ct, null, 512)) : c("", !0),
290
- e.value.style.chart.title.text ? (s(), i("div", vt, [
291
- (s(), x(a(Ne), {
289
+ Ve.value ? (r(), i("div", ct, null, 512)) : c("", !0),
290
+ e.value.style.chart.title.text ? (r(), i("div", vt, [
291
+ (r(), x(a(Ne), {
292
292
  key: `title_${Y.value}`,
293
293
  config: {
294
294
  title: {
@@ -302,7 +302,7 @@ const it = ["id"], ct = {
302
302
  }
303
303
  }, null, 8, ["config"]))
304
304
  ])) : c("", !0),
305
- e.value.userOptions.show && I.value && (a(Q) || a(W)) ? (s(), x(a(Ie), {
305
+ e.value.userOptions.show && I.value && (a(Q) || a(W)) ? (r(), x(a(Ie), {
306
306
  ref_key: "details",
307
307
  ref: Fe,
308
308
  key: `user_option_${j.value}`,
@@ -324,6 +324,7 @@ const it = ["id"], ct = {
324
324
  position: e.value.userOptions.position,
325
325
  hasAnnotator: e.value.userOptions.buttons.annotator,
326
326
  isAnnotation: F.value,
327
+ callbacks: e.value.userOptions.callbacks,
327
328
  onToggleFullscreen: De,
328
329
  onGeneratePdf: a(oe),
329
330
  onGenerateCsv: ne,
@@ -337,8 +338,8 @@ const it = ["id"], ct = {
337
338
  }, Ue({ _: 2 }, [
338
339
  t.$slots.menuIcon ? {
339
340
  name: "menuIcon",
340
- fn: d(({ isOpen: l, color: r }) => [
341
- v(t.$slots, "menuIcon", _(O({ isOpen: l, color: r })), void 0, !0)
341
+ fn: d(({ isOpen: l, color: s }) => [
342
+ v(t.$slots, "menuIcon", _(O({ isOpen: l, color: s })), void 0, !0)
342
343
  ]),
343
344
  key: "0"
344
345
  } : void 0,
@@ -379,20 +380,20 @@ const it = ["id"], ct = {
379
380
  } : void 0,
380
381
  t.$slots.optionFullscreen ? {
381
382
  name: "optionFullscreen",
382
- fn: d(({ toggleFullscreen: l, isFullscreen: r }) => [
383
- v(t.$slots, "optionFullscreen", _(O({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
383
+ fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
384
+ v(t.$slots, "optionFullscreen", _(O({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
384
385
  ]),
385
386
  key: "6"
386
387
  } : void 0,
387
388
  t.$slots.optionAnnotator ? {
388
389
  name: "optionAnnotator",
389
- fn: d(({ toggleAnnotator: l, isAnnotator: r }) => [
390
- v(t.$slots, "optionAnnotator", _(O({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
390
+ fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
391
+ v(t.$slots, "optionAnnotator", _(O({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
391
392
  ]),
392
393
  key: "7"
393
394
  } : void 0
394
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
395
- I.value ? (s(), i("svg", {
395
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
396
+ I.value ? (r(), i("svg", {
396
397
  key: 4,
397
398
  ref_key: "svgRef",
398
399
  ref: Z,
@@ -402,7 +403,7 @@ const it = ["id"], ct = {
402
403
  style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
403
404
  }, [
404
405
  ve(a(Oe)),
405
- t.$slots["chart-background"] ? (s(), i("foreignObject", {
406
+ t.$slots["chart-background"] ? (r(), i("foreignObject", {
406
407
  key: 0,
407
408
  x: 0,
408
409
  y: 0,
@@ -428,25 +429,25 @@ const it = ["id"], ct = {
428
429
  }, null, 8, yt)
429
430
  ], 8, pt)
430
431
  ]),
431
- (s(!0), i(de, null, he(L.value, (l) => (s(), i("g", null, [
432
- l.value ? (s(), i("path", {
432
+ (r(!0), i(de, null, he(L.value, (l) => (r(), i("g", null, [
433
+ l.value ? (r(), i("path", {
433
434
  key: 0,
434
435
  d: l.path,
435
436
  fill: "none",
436
437
  stroke: e.value.style.chart.backgroundColor,
437
- "stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (f.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
438
+ "stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (b.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
438
439
  "stroke-linecap": "round"
439
440
  }, null, 8, gt)) : c("", !0),
440
- l.value ? (s(), i("path", {
441
+ l.value ? (r(), i("path", {
441
442
  key: 1,
442
443
  d: l.path,
443
444
  fill: "none",
444
445
  stroke: l.color,
445
- "stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (f.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
446
+ "stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (b.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
446
447
  "stroke-linecap": "round",
447
- class: E(`${f.value && f.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
448
+ class: E(`${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
448
449
  }, null, 10, ft)) : c("", !0),
449
- l.value && e.value.style.chart.layout.arcs.gradient.show ? (s(), i("g", {
450
+ l.value && e.value.style.chart.layout.arcs.gradient.show ? (r(), i("g", {
450
451
  key: 2,
451
452
  filter: `url(#blur_${S.value})`
452
453
  }, [
@@ -454,14 +455,14 @@ const it = ["id"], ct = {
454
455
  d: l.path,
455
456
  fill: "none",
456
457
  stroke: e.value.style.chart.layout.arcs.gradient.color,
457
- "stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (f.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
458
+ "stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (b.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
458
459
  "stroke-linecap": "round",
459
- class: E(`vue-ui-galaxy-gradient ${f.value && f.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
460
+ class: E(`vue-ui-galaxy-gradient ${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
460
461
  }, null, 10, mt)
461
462
  ], 8, bt)) : c("", !0)
462
463
  ]))), 256)),
463
- (s(!0), i(de, null, he(L.value, (l, r) => (s(), i("g", null, [
464
- l.value ? (s(), i("path", {
464
+ (r(!0), i(de, null, he(L.value, (l, s) => (r(), i("g", null, [
465
+ l.value ? (r(), i("path", {
465
466
  key: 0,
466
467
  d: l.path,
467
468
  fill: "none",
@@ -474,17 +475,17 @@ const it = ["id"], ct = {
474
475
  show: !0
475
476
  }),
476
477
  onMouseleave: o[0] || (o[0] = (u) => {
477
- G.value = !1, f.value = null;
478
+ G.value = !1, b.value = null;
478
479
  }),
479
480
  onClick: (u) => se("selectDatapoint", l)
480
481
  }, null, 40, kt)) : c("", !0)
481
482
  ]))), 256)),
482
483
  v(t.$slots, "svg", { svg: N.value }, void 0, !0)
483
484
  ], 14, dt)) : c("", !0),
484
- t.$slots.watermark ? (s(), i("div", Ct, [
485
+ t.$slots.watermark ? (r(), i("div", Ct, [
485
486
  v(t.$slots, "watermark", _(O({ isPrinting: a(te) || a(le) })), void 0, !0)
486
487
  ])) : c("", !0),
487
- I.value ? c("", !0) : (s(), x(a(Se), {
488
+ I.value ? c("", !0) : (r(), x(a(Se), {
488
489
  key: 6,
489
490
  config: {
490
491
  type: "galaxy",
@@ -496,13 +497,13 @@ const it = ["id"], ct = {
496
497
  }
497
498
  }
498
499
  }, null, 8, ["config"])),
499
- e.value.style.chart.legend.show ? (s(), x(a(_e), {
500
+ e.value.style.chart.legend.show ? (r(), x(a(_e), {
500
501
  key: `legend_${J.value}`,
501
502
  legendSet: ue.value,
502
503
  config: ze.value,
503
504
  onClickMarker: o[1] || (o[1] = ({ legend: l }) => H(l))
504
505
  }, {
505
- item: d(({ legend: l, index: r }) => [
506
+ item: d(({ legend: l, index: s }) => [
506
507
  P("div", {
507
508
  onClick: (u) => H(l),
508
509
  style: V(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
@@ -510,16 +511,16 @@ const it = ["id"], ct = {
510
511
  pe(M(l.name) + ": " + M(a(be)(
511
512
  e.value.style.chart.layout.labels.dataLabels.formatter,
512
513
  l.value,
513
- a(C)({
514
+ a(w)({
514
515
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
515
516
  v: l.value,
516
517
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
517
518
  r: e.value.style.chart.legend.roundingValue
518
519
  }),
519
- { datapoint: l, seriesIndex: r }
520
+ { datapoint: l, seriesIndex: s }
520
521
  )) + " ", 1),
521
- y.value.includes(l.id) ? (s(), i("span", xt, " ( - % ) ")) : (s(), i("span", $t, " (" + M(isNaN(l.value / b.value) ? "-" : a(C)({
522
- v: l.value / b.value * 100,
522
+ y.value.includes(l.id) ? (r(), i("span", xt, " ( - % ) ")) : (r(), i("span", $t, " (" + M(isNaN(l.value / m.value) ? "-" : a(w)({
523
+ v: l.value / m.value * 100,
523
524
  s: "%",
524
525
  r: e.value.style.chart.legend.roundingPercentage
525
526
  })) + ") ", 1))
@@ -528,7 +529,7 @@ const it = ["id"], ct = {
528
529
  _: 1
529
530
  }, 8, ["legendSet", "config"])) : c("", !0),
530
531
  v(t.$slots, "legend", { legend: ue.value }, void 0, !0),
531
- t.$slots.source ? (s(), i("div", Tt, [
532
+ t.$slots.source ? (r(), i("div", Tt, [
532
533
  v(t.$slots, "source", {}, void 0, !0)
533
534
  ], 512)) : c("", !0),
534
535
  ve(a(Le), {
@@ -555,7 +556,7 @@ const it = ["id"], ct = {
555
556
  ]),
556
557
  _: 3
557
558
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
558
- I.value ? (s(), x(a(xe), {
559
+ I.value ? (r(), x(a(xe), {
559
560
  key: 9,
560
561
  hideDetails: "",
561
562
  config: {
@@ -572,7 +573,7 @@ const it = ["id"], ct = {
572
573
  }
573
574
  }, {
574
575
  content: d(() => [
575
- (s(), x(a(Te), {
576
+ (r(), x(a(Te), {
576
577
  key: `table_${q.value}`,
577
578
  colNames: A.value.colNames,
578
579
  head: A.value.head,
@@ -597,7 +598,7 @@ const it = ["id"], ct = {
597
598
  }, 8, ["config"])) : c("", !0)
598
599
  ], 46, it));
599
600
  }
600
- }, Vt = /* @__PURE__ */ nt(Ot, [["__scopeId", "data-v-1281b625"]]);
601
+ }, Vt = /* @__PURE__ */ nt(Ot, [["__scopeId", "data-v-0bd8794e"]]);
601
602
  export {
602
603
  Vt as default
603
604
  };