vue-data-ui 3.0.0-next.0 → 3.0.0-next.2

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 (102) hide show
  1. package/README.md +108 -67
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
  15. package/dist/Tooltip-NwATo4ZJ.js +157 -0
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
  18. package/dist/img-ku4zevVD.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
  20. package/dist/pdf-CguiIsUc.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1051 -217
  23. package/dist/types/vue-data-ui.d.ts +1051 -217
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
  26. package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
  27. package/dist/vue-data-ui-DQef_oFO.js +314 -0
  28. package/dist/vue-data-ui.js +13 -13
  29. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
  30. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
  32. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
  33. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
  34. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
  35. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
  36. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
  37. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
  38. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
  39. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
  41. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
  43. package/dist/vue-ui-donut-tECBFvud.js +1532 -0
  44. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
  45. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
  46. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
  47. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
  48. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
  49. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
  50. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
  51. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
  52. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
  54. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
  55. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
  56. package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
  57. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
  58. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
  59. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
  60. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
  61. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
  62. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
  64. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
  65. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
  66. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
  67. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
  68. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
  73. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
  76. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
  77. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
  79. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
  80. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
  81. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
  82. package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
  83. package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
  84. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
  85. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
  86. package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
  87. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
  88. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
  89. package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
  90. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
  91. package/package.json +2 -2
  92. package/dist/Tooltip-hVZUY_s5.js +0 -149
  93. package/dist/img-BeMVTwmF.js +0 -20
  94. package/dist/pdf-DPxOdzfi.js +0 -51
  95. package/dist/useMouse-AicQS8Vf.js +0 -13
  96. package/dist/vue-data-ui-nceqWRts.js +0 -301
  97. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  98. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  99. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  100. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  101. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
  102. package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
@@ -1,26 +1,27 @@
1
- import { defineAsyncComponent as k, computed as h, onMounted as Re, ref as n, watch as Ue, 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 He, 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 G, a as Ke, b as Qe, G as fe, d as Ze, M 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-DMqAxz7R.js";
3
- import { u as ke } from "./useNestedProp-YgN3FV_8.js";
4
- import { u as st } from "./usePrinter-COkTjv6C.js";
5
- import { u as rt } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as ut } from "./useChartAccessibility-9icAAmYg.js";
7
- import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const it = ["id"], ct = {
1
+ import { defineAsyncComponent as k, computed as g, onMounted as Ue, ref as n, watch as We, createElementBlock as i, openBlock as r, unref as o, normalizeStyle as M, normalizeClass as B, createBlock as x, createCommentVNode as c, renderSlot as v, createVNode as de, createSlots as He, withCtx as d, normalizeProps as P, guardReactiveProps as S, createElementVNode as _, Fragment as he, renderList as ge, toDisplayString as A, createTextVNode as Xe, nextTick as je } from "vue";
2
+ import { u as Ye, o as qe, e as pe, g as Je, c as ye, t as Ke, p as G, a as Qe, b as Ze, G as fe, d as et, M as tt, f as C, X as lt, i as be, x as me, q as at, r as ot, y as st } from "./index-BzfnuLnw.js";
3
+ import { u as ke } from "./useNestedProp-DorElw91.js";
4
+ import { u as rt } from "./usePrinter-C9qkgv0r.js";
5
+ import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as nt } from "./useChartAccessibility-9icAAmYg.js";
7
+ import it from "./img-ku4zevVD.js";
8
+ import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const vt = ["id"], dt = {
9
10
  key: 1,
10
11
  ref: "noTitle",
11
12
  class: "vue-data-ui-no-title-space",
12
13
  style: "height:36px; width: 100%;background:transparent"
13
- }, vt = {
14
+ }, ht = {
14
15
  key: 2,
15
16
  style: "width:100%;background:transparent;padding-bottom:24px"
16
- }, dt = ["xmlns", "viewBox"], ht = ["width", "height"], pt = ["id"], yt = ["stdDeviation"], gt = ["d", "stroke", "stroke-width"], ft = ["d", "stroke", "stroke-width"], bt = ["filter"], mt = ["d", "stroke", "stroke-width"], kt = ["d", "stroke-width", "onMouseenter", "onClick"], Ct = {
17
+ }, gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["id"], ft = ["stdDeviation"], bt = ["d", "stroke", "stroke-width"], mt = ["d", "stroke", "stroke-width"], kt = ["filter"], wt = ["d", "stroke", "stroke-width"], Ct = ["d", "stroke-width", "onMouseenter", "onClick"], $t = {
17
18
  key: 5,
18
19
  class: "vue-data-ui-watermark"
19
- }, wt = ["onClick"], $t = { key: 0 }, xt = { key: 1 }, Tt = {
20
+ }, xt = ["onClick"], Tt = {
20
21
  key: 8,
21
22
  ref: "source",
22
23
  dir: "auto"
23
- }, _t = ["innerHTML"], Ot = {
24
+ }, Ot = ["innerHTML"], Pt = {
24
25
  __name: "vue-ui-galaxy",
25
26
  props: {
26
27
  config: {
@@ -37,33 +38,33 @@ const it = ["id"], ct = {
37
38
  }
38
39
  },
39
40
  emits: ["selectLegend", "selectDatapoint"],
40
- setup(Ce, { expose: we, emit: $e }) {
41
- const xe = k(() => import("./vue-ui-accordion-P6eFHGQp.js")), Te = k(() => import("./DataTable-BBbOgI-a.js")), _e = k(() => import("./Legend-Q4bOb-Nf.js")), Oe = k(() => import("./PackageVersion-D0VPY8-5.js")), Pe = k(() => import("./PenAndPaper-DhBJsnob.js")), Se = k(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), Ne = k(() => import("./Title-D29apS4l.js")), Le = k(() => import("./Tooltip-hVZUY_s5.js")), Ie = k(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_galaxy: Ae } = je(), f = Ce, I = h(() => !!f.dataset && f.dataset.length);
42
- Re(() => {
41
+ setup(we, { expose: Ce, emit: $e }) {
42
+ const xe = k(() => import("./vue-ui-accordion-DgZK-qDz.js")), Te = k(() => import("./DataTable-CgL0Rz0x.js")), Oe = k(() => import("./Legend-CYbP3Kfg.js")), Pe = k(() => import("./PackageVersion-CAkNkiIG.js")), Se = k(() => import("./PenAndPaper-Cx1-5zdD.js")), _e = k(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Ne = k(() => import("./Title-pVYRzQXY.js")), Le = k(() => import("./Tooltip-NwATo4ZJ.js")), Ie = k(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_galaxy: Ae } = Ye(), f = we, F = g(() => !!f.dataset && f.dataset.length);
43
+ Ue(() => {
43
44
  X();
44
45
  });
45
46
  function X() {
46
- Ye(f.dataset) ? ye({
47
+ qe(f.dataset) ? pe({
47
48
  componentName: "VueUiGalaxy",
48
49
  type: "dataset"
49
- }) : f.dataset.forEach((t, o) => {
50
- qe({
50
+ }) : f.dataset.forEach((t, a) => {
51
+ Je({
51
52
  datasetObject: t,
52
53
  requiredAttributes: ["name", "values"]
53
54
  }).forEach((l) => {
54
- ye({
55
+ pe({
55
56
  componentName: "VueUiGalaxy",
56
57
  type: "datasetSerieAttribute",
57
58
  property: l,
58
- index: o
59
+ index: a
59
60
  });
60
61
  });
61
62
  });
62
63
  }
63
- const S = n(ge()), B = n(null), Fe = n(null), D = n(!1), z = n(""), b = n(null), j = n(0), Y = n(0), q = n(0), J = n(0), e = h({
64
+ const N = n(ye()), T = n(null), Fe = n(null), D = n(!1), R = n(""), b = n(null), j = n(0), Y = n(0), q = n(0), J = n(0), e = g({
64
65
  get: () => ee(),
65
66
  set: (t) => t
66
- }), { userOptionsVisible: W, setUserOptionsVisibility: K, keepUserOptionState: Q } = rt({ config: e.value }), { svgRef: Z } = ut({ config: e.value.style.chart.title });
67
+ }), { userOptionsVisible: z, setUserOptionsVisibility: K, keepUserOptionState: Q } = ut({ config: e.value }), { svgRef: Z } = nt({ config: e.value.style.chart.title });
67
68
  function ee() {
68
69
  const t = ke({
69
70
  userConfig: f.config,
@@ -71,45 +72,45 @@ const it = ["id"], ct = {
71
72
  });
72
73
  return t.theme ? {
73
74
  ...ke({
74
- userConfig: Ke.vue_ui_galaxy[t.theme] || f.config,
75
+ userConfig: Qe.vue_ui_galaxy[t.theme] || f.config,
75
76
  defaultConfig: t
76
77
  }),
77
- customPalette: Je[t.theme] || G
78
+ customPalette: Ke[t.theme] || G
78
79
  } : t;
79
80
  }
80
- Ue(() => f.config, (t) => {
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;
81
+ We(() => f.config, (t) => {
82
+ e.value = ee(), z.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
83
  }, { deep: !0 });
83
- const { isPrinting: te, isImaging: le, generatePdf: oe, generateImage: ae } = st({
84
- elementId: `galaxy_${S.value}`,
84
+ const { isPrinting: te, isImaging: le, generatePdf: ae, generateImage: oe } = rt({
85
+ elementId: `galaxy_${N.value}`,
85
86
  fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
86
87
  options: e.value.userOptions.print
87
- }), Ve = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = h(() => Qe(e.value.customPalette)), p = n({
88
+ }), Ve = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = g(() => Ze(e.value.customPalette)), p = n({
88
89
  dataLabels: {
89
90
  show: e.value.style.chart.layout.labels.dataLabels.show
90
91
  },
91
92
  showTable: e.value.table.show,
92
93
  showTooltip: e.value.style.chart.tooltip.show
93
- }), N = n({
94
+ }), L = n({
94
95
  height: 180,
95
96
  // or 250 if non fibo
96
97
  width: 250
97
98
  }), se = $e, y = n([]);
98
- function R(t) {
99
- y.value.includes(t.id) ? y.value = y.value.filter((o) => o !== t.id) : y.value.push(t.id), se("selectLegend", L.value.map((o) => ({
100
- name: o.name,
101
- color: o.color,
102
- value: o.value
99
+ function U(t) {
100
+ y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), se("selectLegend", I.value.map((a) => ({
101
+ name: a.name,
102
+ color: a.color,
103
+ value: a.value
103
104
  })));
104
105
  }
105
- const $ = h(() => f.dataset.map((t, o) => ({
106
+ const $ = g(() => f.dataset.map((t, a) => ({
106
107
  name: t.name,
107
- color: Ze(t.color) || Ee.value[o] || G[o] || G[o % G.length],
108
+ color: et(t.color) || Ee.value[a] || G[a] || G[a % G.length],
108
109
  value: t.values ? fe(t.values).reduce((l, s) => l + s, 0) : 0,
109
110
  absoluteValues: fe(t.values),
110
- id: ge(),
111
- seriesIndex: o
112
- })).sort((t, o) => o.value - t.value));
111
+ id: ye(),
112
+ seriesIndex: a
113
+ })).sort((t, a) => a.value - t.value));
113
114
  function Me() {
114
115
  return $.value.map((t) => ({
115
116
  name: t.name,
@@ -117,44 +118,44 @@ const it = ["id"], ct = {
117
118
  value: t.value
118
119
  }));
119
120
  }
120
- const m = h(() => $.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, o) => t + o, 0)), Ge = n(190), re = h(() => $.value.filter((t) => !y.value.includes(t.id))), L = h(() => {
121
+ const m = g(() => $.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Be = n(190), re = g(() => $.value.filter((t) => !y.value.includes(t.id))), I = g(() => {
121
122
  const t = [];
122
- for (let o = 0; o < re.value.length; o += 1) {
123
- const l = re.value[o];
124
- let s = l.value / m.value * Ge.value;
125
- o > 0 && t.length && (s += t[o - 1].points), t.push({
123
+ for (let a = 0; a < re.value.length; a += 1) {
124
+ const l = re.value[a];
125
+ let s = l.value / m.value * Be.value;
126
+ a > 0 && t.length && (s += t[a - 1].points), t.push({
126
127
  points: s,
127
128
  ...l,
128
- seriesIndex: o,
129
+ seriesIndex: a,
129
130
  proportion: l.value / m.value,
130
- path: et({
131
+ path: tt({
131
132
  points: s,
132
133
  startX: 115 + e.value.style.chart.layout.arcs.offsetX,
133
134
  startY: 90 + e.value.style.chart.layout.arcs.offsetY
134
135
  })
135
136
  });
136
137
  }
137
- return t.filter((o, l) => !y.value.includes(o.id)).toSorted((o, l) => l.points - o.points);
138
- }), T = n(!1);
139
- function Be(t) {
140
- T.value = t, j.value += 1;
138
+ return t.filter((a, l) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
139
+ }), O = n(!1);
140
+ function ue(t) {
141
+ O.value = t, j.value += 1;
141
142
  }
142
- const U = n(null);
143
- function De({ datapoint: t, _relativeIndex: o, seriesIndex: l, show: s = !1 }) {
144
- U.value = {
143
+ const W = n(null);
144
+ function Ge({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
145
+ W.value = {
145
146
  datapoint: t,
146
147
  seriesIndex: l,
147
148
  series: $.value,
148
149
  config: e.value
149
150
  }, D.value = s, b.value = t.id;
150
151
  let u = "";
151
- const g = e.value.style.chart.tooltip.customFormat;
152
- me(g) && at(() => g({
152
+ const h = e.value.style.chart.tooltip.customFormat;
153
+ me(h) && st(() => h({
153
154
  seriesIndex: l,
154
155
  datapoint: t,
155
156
  series: $.value,
156
157
  config: e.value
157
- })) ? z.value = g({
158
+ })) ? R.value = h({
158
159
  seriesIndex: l,
159
160
  datapoint: t,
160
161
  series: $.value,
@@ -162,67 +163,67 @@ const it = ["id"], ct = {
162
163
  }) : (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
164
  e.value.style.chart.layout.labels.dataLabels.formatter,
164
165
  t.value,
165
- w({
166
+ C({
166
167
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
167
168
  v: t.value,
168
169
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
169
170
  r: e.value.style.chart.tooltip.roundingValue
170
171
  }),
171
172
  { datapoint: t, seriesIndex: l }
172
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${w({
173
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${C({
173
174
  v: t.proportion * 100,
174
175
  s: "%",
175
176
  r: e.value.style.chart.tooltip.roundingPercentage
176
- })})</span></div>` : u += `<b>${w({
177
+ })})</span></div>` : u += `<b>${C({
177
178
  v: t.proportion * 100,
178
179
  s: "%",
179
180
  r: e.value.style.chart.tooltip.roundingPercentage
180
- })}</b></div>`), z.value = `<div>${u}</div>`);
181
+ })}</b></div>`), R.value = `<div>${u}</div>`);
181
182
  }
182
- const ue = h(() => $.value.map((t, o) => ({
183
+ const ne = g(() => $.value.map((t, a) => ({
183
184
  ...t,
184
185
  proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((s, u) => s + u, 0)).reduce((l, s) => l + s, 0),
185
186
  opacity: y.value.includes(t.id) ? 0.5 : 1,
186
187
  shape: t.shape || "circle",
187
- segregate: () => R(t),
188
+ segregate: () => U(t),
188
189
  isSegregated: y.value.includes(t.id)
189
- }))), ze = h(() => ({
190
+ }))), De = g(() => ({
190
191
  cy: "galaxy-div-legend",
191
192
  backgroundColor: e.value.style.chart.legend.backgroundColor,
192
193
  color: e.value.style.chart.legend.color,
193
194
  fontSize: e.value.style.chart.legend.fontSize,
194
195
  paddingBottom: 12,
195
196
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
196
- })), C = h(() => {
197
- const t = L.value.map((l) => ({
197
+ })), w = g(() => {
198
+ const t = I.value.map((l) => ({
198
199
  name: l.name,
199
200
  color: l.color
200
- })), o = L.value.map((l) => l.value);
201
- return { head: t, body: o };
201
+ })), a = I.value.map((l) => l.value);
202
+ return { head: t, body: a };
202
203
  });
203
- function ne(t = null) {
204
- Xe(() => {
205
- const o = C.value.head.map((u, g) => [[
204
+ function ie(t = null) {
205
+ je(() => {
206
+ const a = w.value.head.map((u, h) => [[
206
207
  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
+ ], [w.value.body[h]], [isNaN(w.value.body[h] / m.value) ? "-" : w.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = at(l);
208
209
  t ? t(s) : ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
209
210
  });
210
211
  }
211
- const A = h(() => {
212
+ const V = g(() => {
212
213
  const t = [
213
214
  ' <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
- 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
+ C({ 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
216
  "100%"
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 });
217
+ ], a = w.value.head.map((u, h) => {
218
+ const ze = C({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
218
219
  return [
219
220
  {
220
221
  color: u.color,
221
222
  name: u.name
222
223
  },
223
- We,
224
- isNaN(C.value.body[g] / m.value) ? "-" : w({
225
- v: C.value.body[g] / m.value * 100,
224
+ ze,
225
+ isNaN(w.value.body[h] / m.value) ? "-" : C({
226
+ v: w.value.body[h] / m.value * 100,
226
227
  s: "%",
227
228
  r: e.value.table.td.roundingPercentage
228
229
  })
@@ -247,48 +248,62 @@ const it = ["id"], ct = {
247
248
  e.value.table.columnNames.percentage
248
249
  ],
249
250
  head: t,
250
- body: o,
251
+ body: a,
251
252
  config: l
252
253
  };
253
254
  });
254
- function ie() {
255
+ function ce() {
255
256
  p.value.showTable = !p.value.showTable;
256
257
  }
257
- function ce() {
258
+ function ve() {
258
259
  p.value.showTooltip = !p.value.showTooltip;
259
260
  }
260
- const F = n(!1);
261
+ const E = n(!1);
261
262
  function H() {
262
- F.value = !F.value;
263
+ E.value = !E.value;
264
+ }
265
+ async function Re({ scale: t = 2 } = {}) {
266
+ if (!T.value) return;
267
+ const { width: a, height: l } = T.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: h } = await it({ domElement: T.value, base64: !0, img: !0, scale: t });
268
+ return {
269
+ imageUri: u,
270
+ base64: h,
271
+ title: e.value.style.chart.title.text,
272
+ width: a,
273
+ height: l,
274
+ aspectRatio: s
275
+ };
263
276
  }
264
- return we({
277
+ return Ce({
265
278
  getData: Me,
266
- generatePdf: oe,
267
- generateCsv: ne,
268
- generateImage: ae,
269
- toggleTable: ie,
270
- toggleTooltip: ce,
271
- toggleAnnotator: H
272
- }), (t, o) => (r(), i("div", {
279
+ getImage: Re,
280
+ generatePdf: ae,
281
+ generateCsv: ie,
282
+ generateImage: oe,
283
+ toggleTable: ce,
284
+ toggleTooltip: ve,
285
+ toggleAnnotator: H,
286
+ toggleFullscreen: ue
287
+ }), (t, a) => (r(), i("div", {
273
288
  ref_key: "galaxyChart",
274
- ref: B,
275
- class: E(`vue-ui-galaxy ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
276
- style: V(`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}`),
277
- id: `galaxy_${S.value}`,
278
- onMouseenter: o[3] || (o[3] = () => a(K)(!0)),
279
- onMouseleave: o[4] || (o[4] = () => a(K)(!1))
289
+ ref: T,
290
+ class: B(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
291
+ style: M(`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}`),
292
+ id: `galaxy_${N.value}`,
293
+ onMouseenter: a[3] || (a[3] = () => o(K)(!0)),
294
+ onMouseleave: a[4] || (a[4] = () => o(K)(!1))
280
295
  }, [
281
- e.value.userOptions.buttons.annotator ? (r(), x(a(Pe), {
296
+ e.value.userOptions.buttons.annotator ? (r(), x(o(Se), {
282
297
  key: 0,
283
- svgRef: a(Z),
298
+ svgRef: o(Z),
284
299
  backgroundColor: e.value.style.chart.backgroundColor,
285
300
  color: e.value.style.chart.color,
286
- active: F.value,
301
+ active: E.value,
287
302
  onClose: H
288
303
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
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), {
304
+ Ve.value ? (r(), i("div", dt, null, 512)) : c("", !0),
305
+ e.value.style.chart.title.text ? (r(), i("div", ht, [
306
+ (r(), x(o(Ne), {
292
307
  key: `title_${Y.value}`,
293
308
  config: {
294
309
  title: {
@@ -302,15 +317,15 @@ const it = ["id"], ct = {
302
317
  }
303
318
  }, null, 8, ["config"]))
304
319
  ])) : c("", !0),
305
- e.value.userOptions.show && I.value && (a(Q) || a(W)) ? (r(), x(a(Ie), {
320
+ e.value.userOptions.show && F.value && (o(Q) || o(z)) ? (r(), x(o(Ie), {
306
321
  ref_key: "details",
307
322
  ref: Fe,
308
323
  key: `user_option_${j.value}`,
309
324
  backgroundColor: e.value.style.chart.backgroundColor,
310
325
  color: e.value.style.chart.color,
311
- isPrinting: a(te),
312
- isImaging: a(le),
313
- uid: S.value,
326
+ isPrinting: o(te),
327
+ isImaging: o(le),
328
+ uid: N.value,
314
329
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
315
330
  hasPdf: e.value.userOptions.buttons.pdf,
316
331
  hasXls: e.value.userOptions.buttons.csv,
@@ -318,28 +333,29 @@ const it = ["id"], ct = {
318
333
  hasTable: e.value.userOptions.buttons.table,
319
334
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
320
335
  isTooltip: p.value.showTooltip,
321
- isFullscreen: T.value,
336
+ isFullscreen: O.value,
322
337
  titles: { ...e.value.userOptions.buttonTitles },
323
- chartElement: B.value,
338
+ chartElement: T.value,
324
339
  position: e.value.userOptions.position,
325
340
  hasAnnotator: e.value.userOptions.buttons.annotator,
326
- isAnnotation: F.value,
341
+ isAnnotation: E.value,
327
342
  callbacks: e.value.userOptions.callbacks,
328
- onToggleFullscreen: Be,
329
- onGeneratePdf: a(oe),
330
- onGenerateCsv: ne,
331
- onGenerateImage: a(ae),
332
- onToggleTable: ie,
333
- onToggleTooltip: ce,
343
+ printScale: e.value.userOptions.print.scale,
344
+ onToggleFullscreen: ue,
345
+ onGeneratePdf: o(ae),
346
+ onGenerateCsv: ie,
347
+ onGenerateImage: o(oe),
348
+ onToggleTable: ce,
349
+ onToggleTooltip: ve,
334
350
  onToggleAnnotator: H,
335
- style: V({
336
- visibility: a(Q) ? a(W) ? "visible" : "hidden" : "visible"
351
+ style: M({
352
+ visibility: o(Q) ? o(z) ? "visible" : "hidden" : "visible"
337
353
  })
338
354
  }, He({ _: 2 }, [
339
355
  t.$slots.menuIcon ? {
340
356
  name: "menuIcon",
341
357
  fn: d(({ isOpen: l, color: s }) => [
342
- v(t.$slots, "menuIcon", _(O({ isOpen: l, color: s })), void 0, !0)
358
+ v(t.$slots, "menuIcon", P(S({ isOpen: l, color: s })), void 0, !0)
343
359
  ]),
344
360
  key: "0"
345
361
  } : void 0,
@@ -381,55 +397,55 @@ const it = ["id"], ct = {
381
397
  t.$slots.optionFullscreen ? {
382
398
  name: "optionFullscreen",
383
399
  fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
384
- v(t.$slots, "optionFullscreen", _(O({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
400
+ v(t.$slots, "optionFullscreen", P(S({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
385
401
  ]),
386
402
  key: "6"
387
403
  } : void 0,
388
404
  t.$slots.optionAnnotator ? {
389
405
  name: "optionAnnotator",
390
406
  fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
391
- v(t.$slots, "optionAnnotator", _(O({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
407
+ v(t.$slots, "optionAnnotator", P(S({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
392
408
  ]),
393
409
  key: "7"
394
410
  } : void 0
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", {
411
+ ]), 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),
412
+ F.value ? (r(), i("svg", {
397
413
  key: 4,
398
414
  ref_key: "svgRef",
399
415
  ref: Z,
400
- xmlns: a(tt),
401
- class: E({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
402
- viewBox: `0 0 ${N.value.width} ${N.value.height}`,
403
- style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
416
+ xmlns: o(lt),
417
+ class: B({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
418
+ viewBox: `0 0 ${L.value.width} ${L.value.height}`,
419
+ style: M(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
404
420
  }, [
405
- ve(a(Oe)),
421
+ de(o(Pe)),
406
422
  t.$slots["chart-background"] ? (r(), i("foreignObject", {
407
423
  key: 0,
408
424
  x: 0,
409
425
  y: 0,
410
- width: N.value.width,
411
- height: N.value.height,
426
+ width: L.value.width,
427
+ height: L.value.height,
412
428
  style: {
413
429
  pointerEvents: "none"
414
430
  }
415
431
  }, [
416
432
  v(t.$slots, "chart-background", {}, void 0, !0)
417
- ], 8, ht)) : c("", !0),
418
- P("defs", null, [
419
- P("filter", {
420
- id: `blur_${S.value}`,
433
+ ], 8, pt)) : c("", !0),
434
+ _("defs", null, [
435
+ _("filter", {
436
+ id: `blur_${N.value}`,
421
437
  x: "-50%",
422
438
  y: "-50%",
423
439
  width: "200%",
424
440
  height: "200%"
425
441
  }, [
426
- P("feGaussianBlur", {
442
+ _("feGaussianBlur", {
427
443
  in: "SourceGraphic",
428
444
  stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
429
- }, null, 8, yt)
430
- ], 8, pt)
445
+ }, null, 8, ft)
446
+ ], 8, yt)
431
447
  ]),
432
- (r(!0), i(de, null, he(L.value, (l) => (r(), i("g", null, [
448
+ (r(!0), i(he, null, ge(I.value, (l) => (r(), i("g", null, [
433
449
  l.value ? (r(), i("path", {
434
450
  key: 0,
435
451
  d: l.path,
@@ -437,7 +453,7 @@ const it = ["id"], ct = {
437
453
  stroke: e.value.style.chart.backgroundColor,
438
454
  "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),
439
455
  "stroke-linecap": "round"
440
- }, null, 8, gt)) : c("", !0),
456
+ }, null, 8, bt)) : c("", !0),
441
457
  l.value ? (r(), i("path", {
442
458
  key: 1,
443
459
  d: l.path,
@@ -445,23 +461,23 @@ const it = ["id"], ct = {
445
461
  stroke: l.color,
446
462
  "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),
447
463
  "stroke-linecap": "round",
448
- class: E(`${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
449
- }, null, 10, ft)) : c("", !0),
464
+ class: B(`${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
465
+ }, null, 10, mt)) : c("", !0),
450
466
  l.value && e.value.style.chart.layout.arcs.gradient.show ? (r(), i("g", {
451
467
  key: 2,
452
- filter: `url(#blur_${S.value})`
468
+ filter: `url(#blur_${N.value})`
453
469
  }, [
454
- P("path", {
470
+ _("path", {
455
471
  d: l.path,
456
472
  fill: "none",
457
473
  stroke: e.value.style.chart.layout.arcs.gradient.color,
458
474
  "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),
459
475
  "stroke-linecap": "round",
460
- class: E(`vue-ui-galaxy-gradient ${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
461
- }, null, 10, mt)
462
- ], 8, bt)) : c("", !0)
476
+ class: B(`vue-ui-galaxy-gradient ${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
477
+ }, null, 10, wt)
478
+ ], 8, kt)) : c("", !0)
463
479
  ]))), 256)),
464
- (r(!0), i(de, null, he(L.value, (l, s) => (r(), i("g", null, [
480
+ (r(!0), i(he, null, ge(I.value, (l, s) => (r(), i("g", null, [
465
481
  l.value ? (r(), i("path", {
466
482
  key: 0,
467
483
  d: l.path,
@@ -469,23 +485,23 @@ const it = ["id"], ct = {
469
485
  stroke: "transparent",
470
486
  "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
471
487
  "stroke-linecap": "round",
472
- onMouseenter: (u) => De({
488
+ onMouseenter: (u) => Ge({
473
489
  datapoint: l,
474
490
  seriesIndex: l.seriesIndex,
475
491
  show: !0
476
492
  }),
477
- onMouseleave: o[0] || (o[0] = (u) => {
493
+ onMouseleave: a[0] || (a[0] = (u) => {
478
494
  D.value = !1, b.value = null;
479
495
  }),
480
496
  onClick: (u) => se("selectDatapoint", l)
481
- }, null, 40, kt)) : c("", !0)
497
+ }, null, 40, Ct)) : c("", !0)
482
498
  ]))), 256)),
483
- v(t.$slots, "svg", { svg: N.value }, void 0, !0)
484
- ], 14, dt)) : c("", !0),
485
- t.$slots.watermark ? (r(), i("div", Ct, [
486
- v(t.$slots, "watermark", _(O({ isPrinting: a(te) || a(le) })), void 0, !0)
499
+ v(t.$slots, "svg", { svg: L.value }, void 0, !0)
500
+ ], 14, gt)) : c("", !0),
501
+ t.$slots.watermark ? (r(), i("div", $t, [
502
+ v(t.$slots, "watermark", P(S({ isPrinting: o(te) || o(le) })), void 0, !0)
487
503
  ])) : c("", !0),
488
- I.value ? c("", !0) : (r(), x(a(Se), {
504
+ F.value ? c("", !0) : (r(), x(o(_e), {
489
505
  key: 6,
490
506
  config: {
491
507
  type: "galaxy",
@@ -497,42 +513,39 @@ const it = ["id"], ct = {
497
513
  }
498
514
  }
499
515
  }, null, 8, ["config"])),
500
- e.value.style.chart.legend.show ? (r(), x(a(_e), {
516
+ e.value.style.chart.legend.show ? (r(), x(o(Oe), {
501
517
  key: `legend_${J.value}`,
502
- legendSet: ue.value,
503
- config: ze.value,
504
- onClickMarker: o[1] || (o[1] = ({ legend: l }) => R(l))
518
+ legendSet: ne.value,
519
+ config: De.value,
520
+ onClickMarker: a[1] || (a[1] = ({ legend: l }) => U(l))
505
521
  }, {
506
522
  item: d(({ legend: l, index: s }) => [
507
- P("div", {
508
- onClick: (u) => R(l),
509
- style: V(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
510
- }, [
511
- pe(M(l.name) + ": " + M(a(be)(
512
- e.value.style.chart.layout.labels.dataLabels.formatter,
513
- l.value,
514
- a(w)({
515
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
516
- v: l.value,
517
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
518
- r: e.value.style.chart.legend.roundingValue
519
- }),
520
- { datapoint: l, seriesIndex: s }
521
- )) + " ", 1),
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,
524
- s: "%",
525
- r: e.value.style.chart.legend.roundingPercentage
526
- })) + ") ", 1))
527
- ], 12, wt)
523
+ _("div", {
524
+ onClick: (u) => U(l),
525
+ style: M(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
526
+ }, A(l.name) + A(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + A(e.value.style.chart.legend.showValue ? o(be)(
527
+ e.value.style.chart.layout.labels.dataLabels.formatter,
528
+ l.value,
529
+ o(C)({
530
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
531
+ v: l.value,
532
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
533
+ r: e.value.style.chart.legend.roundingValue
534
+ }),
535
+ { datapoint: l, seriesIndex: s }
536
+ ) : "") + " " + A(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 / m.value) ? "-" : o(C)({
537
+ v: l.value / m.value * 100,
538
+ s: "%",
539
+ r: e.value.style.chart.legend.roundingPercentage
540
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, xt)
528
541
  ]),
529
542
  _: 1
530
543
  }, 8, ["legendSet", "config"])) : c("", !0),
531
- v(t.$slots, "legend", { legend: ue.value }, void 0, !0),
544
+ v(t.$slots, "legend", { legend: ne.value }, void 0, !0),
532
545
  t.$slots.source ? (r(), i("div", Tt, [
533
546
  v(t.$slots, "source", {}, void 0, !0)
534
547
  ], 512)) : c("", !0),
535
- ve(a(Le), {
548
+ de(o(Le), {
536
549
  show: p.value.showTooltip && D.value,
537
550
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
538
551
  color: e.value.style.chart.tooltip.color,
@@ -543,20 +556,20 @@ const it = ["id"], ct = {
543
556
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
544
557
  position: e.value.style.chart.tooltip.position,
545
558
  offsetY: e.value.style.chart.tooltip.offsetY,
546
- parent: B.value,
547
- content: z.value,
548
- isFullscreen: T.value,
549
- isCustom: a(me)(e.value.style.chart.tooltip.customFormat)
559
+ parent: T.value,
560
+ content: R.value,
561
+ isFullscreen: O.value,
562
+ isCustom: o(me)(e.value.style.chart.tooltip.customFormat)
550
563
  }, {
551
564
  "tooltip-before": d(() => [
552
- v(t.$slots, "tooltip-before", _(O({ ...U.value })), void 0, !0)
565
+ v(t.$slots, "tooltip-before", P(S({ ...W.value })), void 0, !0)
553
566
  ]),
554
567
  "tooltip-after": d(() => [
555
- v(t.$slots, "tooltip-after", _(O({ ...U.value })), void 0, !0)
568
+ v(t.$slots, "tooltip-after", P(S({ ...W.value })), void 0, !0)
556
569
  ]),
557
570
  _: 3
558
571
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
559
- I.value ? (r(), x(a(xe), {
572
+ F.value ? (r(), x(o(xe), {
560
573
  key: 9,
561
574
  hideDetails: "",
562
575
  config: {
@@ -573,32 +586,32 @@ const it = ["id"], ct = {
573
586
  }
574
587
  }, {
575
588
  content: d(() => [
576
- (r(), x(a(Te), {
589
+ (r(), x(o(Te), {
577
590
  key: `table_${q.value}`,
578
- colNames: A.value.colNames,
579
- head: A.value.head,
580
- body: A.value.body,
581
- config: A.value.config,
591
+ colNames: V.value.colNames,
592
+ head: V.value.head,
593
+ body: V.value.body,
594
+ config: V.value.config,
582
595
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
583
- onClose: o[2] || (o[2] = (l) => p.value.showTable = !1)
596
+ onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
584
597
  }, {
585
598
  th: d(({ th: l }) => [
586
- P("div", {
599
+ _("div", {
587
600
  innerHTML: l,
588
601
  style: { display: "flex", "align-items": "center" }
589
- }, null, 8, _t)
602
+ }, null, 8, Ot)
590
603
  ]),
591
604
  td: d(({ td: l }) => [
592
- pe(M(l.name || l), 1)
605
+ Xe(A(l.name || l), 1)
593
606
  ]),
594
607
  _: 1
595
608
  }, 8, ["colNames", "head", "body", "config", "title"]))
596
609
  ]),
597
610
  _: 1
598
611
  }, 8, ["config"])) : c("", !0)
599
- ], 46, it));
612
+ ], 46, vt));
600
613
  }
601
- }, Vt = /* @__PURE__ */ nt(Ot, [["__scopeId", "data-v-0bd8794e"]]);
614
+ }, Et = /* @__PURE__ */ ct(Pt, [["__scopeId", "data-v-de094a3d"]]);
602
615
  export {
603
- Vt as default
616
+ Et as default
604
617
  };