vue-data-ui 2.16.6 → 2.17.1

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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -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 S, 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-DvIXJm6t.js";
3
- import { u as ke } from "./useNestedProp-DrYHm61t.js";
4
- import { u as st } from "./usePrinter-CWnXbGMb.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-CobsZUkv.js";
3
+ import { u as ke } from "./useNestedProp-BwL5wmVa.js";
4
+ import { u as rt } from "./usePrinter-DPh6U_Qk.js";
5
+ import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as nt } from "./useChartAccessibility-9icAAmYg.js";
7
+ import it from "./img-utitT2Gd.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-D55kCO5G.js")), Te = k(() => import("./DataTable-CHBLjKtZ.js")), _e = k(() => import("./Legend-nBXoxXJH.js")), Oe = k(() => import("./PackageVersion-Bg_9KCU-.js")), Se = k(() => import("./PenAndPaper-BPTpbnay.js")), Pe = k(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ne = k(() => import("./Title-Gi81VwUM.js")), Le = k(() => import("./Tooltip-CJxVw7-T.js")), Ie = k(() => import("./UserOptions-CBEK6_jo.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-UewqY6OI.js")), Te = k(() => import("./DataTable-Dt-TIOyY.js")), Oe = k(() => import("./Legend-3LNqqLDg.js")), Pe = k(() => import("./PackageVersion-C-4Ee8BQ.js")), Se = k(() => import("./PenAndPaper-Cde-wJ3N.js")), _e = k(() => import("./vue-ui-skeleton-8s4xts8z.js")), Ne = k(() => import("./Title-DpERl1yr.js")), Le = k(() => import("./Tooltip-DA0bYKFG.js")), Ie = k(() => import("./UserOptions-DTEJ3UM_.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 P = 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_${P.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_${P.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(Se), {
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: P.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,29 +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
343
  printScale: e.value.userOptions.print.scale,
329
- onToggleFullscreen: Be,
330
- onGeneratePdf: a(oe),
331
- onGenerateCsv: ne,
332
- onGenerateImage: a(ae),
333
- onToggleTable: ie,
334
- onToggleTooltip: ce,
344
+ onToggleFullscreen: ue,
345
+ onGeneratePdf: o(ae),
346
+ onGenerateCsv: ie,
347
+ onGenerateImage: o(oe),
348
+ onToggleTable: ce,
349
+ onToggleTooltip: ve,
335
350
  onToggleAnnotator: H,
336
- style: V({
337
- visibility: a(Q) ? a(W) ? "visible" : "hidden" : "visible"
351
+ style: M({
352
+ visibility: o(Q) ? o(z) ? "visible" : "hidden" : "visible"
338
353
  })
339
354
  }, He({ _: 2 }, [
340
355
  t.$slots.menuIcon ? {
341
356
  name: "menuIcon",
342
357
  fn: d(({ isOpen: l, color: s }) => [
343
- 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)
344
359
  ]),
345
360
  key: "0"
346
361
  } : void 0,
@@ -382,55 +397,55 @@ const it = ["id"], ct = {
382
397
  t.$slots.optionFullscreen ? {
383
398
  name: "optionFullscreen",
384
399
  fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
385
- 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)
386
401
  ]),
387
402
  key: "6"
388
403
  } : void 0,
389
404
  t.$slots.optionAnnotator ? {
390
405
  name: "optionAnnotator",
391
406
  fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
392
- 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)
393
408
  ]),
394
409
  key: "7"
395
410
  } : void 0
396
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),
397
- I.value ? (r(), i("svg", {
412
+ F.value ? (r(), i("svg", {
398
413
  key: 4,
399
414
  ref_key: "svgRef",
400
415
  ref: Z,
401
- xmlns: a(tt),
402
- class: E({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
403
- viewBox: `0 0 ${N.value.width} ${N.value.height}`,
404
- 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}`)
405
420
  }, [
406
- ve(a(Oe)),
421
+ de(o(Pe)),
407
422
  t.$slots["chart-background"] ? (r(), i("foreignObject", {
408
423
  key: 0,
409
424
  x: 0,
410
425
  y: 0,
411
- width: N.value.width,
412
- height: N.value.height,
426
+ width: L.value.width,
427
+ height: L.value.height,
413
428
  style: {
414
429
  pointerEvents: "none"
415
430
  }
416
431
  }, [
417
432
  v(t.$slots, "chart-background", {}, void 0, !0)
418
- ], 8, ht)) : c("", !0),
419
- S("defs", null, [
420
- S("filter", {
421
- id: `blur_${P.value}`,
433
+ ], 8, pt)) : c("", !0),
434
+ _("defs", null, [
435
+ _("filter", {
436
+ id: `blur_${N.value}`,
422
437
  x: "-50%",
423
438
  y: "-50%",
424
439
  width: "200%",
425
440
  height: "200%"
426
441
  }, [
427
- S("feGaussianBlur", {
442
+ _("feGaussianBlur", {
428
443
  in: "SourceGraphic",
429
444
  stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
430
- }, null, 8, yt)
431
- ], 8, pt)
445
+ }, null, 8, ft)
446
+ ], 8, yt)
432
447
  ]),
433
- (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, [
434
449
  l.value ? (r(), i("path", {
435
450
  key: 0,
436
451
  d: l.path,
@@ -438,7 +453,7 @@ const it = ["id"], ct = {
438
453
  stroke: e.value.style.chart.backgroundColor,
439
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),
440
455
  "stroke-linecap": "round"
441
- }, null, 8, gt)) : c("", !0),
456
+ }, null, 8, bt)) : c("", !0),
442
457
  l.value ? (r(), i("path", {
443
458
  key: 1,
444
459
  d: l.path,
@@ -446,23 +461,23 @@ const it = ["id"], ct = {
446
461
  stroke: l.color,
447
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),
448
463
  "stroke-linecap": "round",
449
- class: E(`${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
450
- }, 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),
451
466
  l.value && e.value.style.chart.layout.arcs.gradient.show ? (r(), i("g", {
452
467
  key: 2,
453
- filter: `url(#blur_${P.value})`
468
+ filter: `url(#blur_${N.value})`
454
469
  }, [
455
- S("path", {
470
+ _("path", {
456
471
  d: l.path,
457
472
  fill: "none",
458
473
  stroke: e.value.style.chart.layout.arcs.gradient.color,
459
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),
460
475
  "stroke-linecap": "round",
461
- class: E(`vue-ui-galaxy-gradient ${b.value && b.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
462
- }, null, 10, mt)
463
- ], 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)
464
479
  ]))), 256)),
465
- (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, [
466
481
  l.value ? (r(), i("path", {
467
482
  key: 0,
468
483
  d: l.path,
@@ -470,23 +485,23 @@ const it = ["id"], ct = {
470
485
  stroke: "transparent",
471
486
  "stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
472
487
  "stroke-linecap": "round",
473
- onMouseenter: (u) => De({
488
+ onMouseenter: (u) => Ge({
474
489
  datapoint: l,
475
490
  seriesIndex: l.seriesIndex,
476
491
  show: !0
477
492
  }),
478
- onMouseleave: o[0] || (o[0] = (u) => {
493
+ onMouseleave: a[0] || (a[0] = (u) => {
479
494
  D.value = !1, b.value = null;
480
495
  }),
481
496
  onClick: (u) => se("selectDatapoint", l)
482
- }, null, 40, kt)) : c("", !0)
497
+ }, null, 40, Ct)) : c("", !0)
483
498
  ]))), 256)),
484
- v(t.$slots, "svg", { svg: N.value }, void 0, !0)
485
- ], 14, dt)) : c("", !0),
486
- t.$slots.watermark ? (r(), i("div", Ct, [
487
- 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)
488
503
  ])) : c("", !0),
489
- I.value ? c("", !0) : (r(), x(a(Pe), {
504
+ F.value ? c("", !0) : (r(), x(o(_e), {
490
505
  key: 6,
491
506
  config: {
492
507
  type: "galaxy",
@@ -498,42 +513,39 @@ const it = ["id"], ct = {
498
513
  }
499
514
  }
500
515
  }, null, 8, ["config"])),
501
- e.value.style.chart.legend.show ? (r(), x(a(_e), {
516
+ e.value.style.chart.legend.show ? (r(), x(o(Oe), {
502
517
  key: `legend_${J.value}`,
503
- legendSet: ue.value,
504
- config: ze.value,
505
- 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))
506
521
  }, {
507
522
  item: d(({ legend: l, index: s }) => [
508
- S("div", {
509
- onClick: (u) => R(l),
510
- style: V(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
511
- }, [
512
- pe(M(l.name) + ": " + M(a(be)(
513
- e.value.style.chart.layout.labels.dataLabels.formatter,
514
- l.value,
515
- a(w)({
516
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
517
- v: l.value,
518
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
519
- r: e.value.style.chart.legend.roundingValue
520
- }),
521
- { datapoint: l, seriesIndex: s }
522
- )) + " ", 1),
523
- y.value.includes(l.id) ? (r(), i("span", xt, " ( - % ) ")) : (r(), i("span", $t, " (" + M(isNaN(l.value / m.value) ? "-" : a(w)({
524
- v: l.value / m.value * 100,
525
- s: "%",
526
- r: e.value.style.chart.legend.roundingPercentage
527
- })) + ") ", 1))
528
- ], 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)
529
541
  ]),
530
542
  _: 1
531
543
  }, 8, ["legendSet", "config"])) : c("", !0),
532
- v(t.$slots, "legend", { legend: ue.value }, void 0, !0),
544
+ v(t.$slots, "legend", { legend: ne.value }, void 0, !0),
533
545
  t.$slots.source ? (r(), i("div", Tt, [
534
546
  v(t.$slots, "source", {}, void 0, !0)
535
547
  ], 512)) : c("", !0),
536
- ve(a(Le), {
548
+ de(o(Le), {
537
549
  show: p.value.showTooltip && D.value,
538
550
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
539
551
  color: e.value.style.chart.tooltip.color,
@@ -544,20 +556,20 @@ const it = ["id"], ct = {
544
556
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
545
557
  position: e.value.style.chart.tooltip.position,
546
558
  offsetY: e.value.style.chart.tooltip.offsetY,
547
- parent: B.value,
548
- content: z.value,
549
- isFullscreen: T.value,
550
- 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)
551
563
  }, {
552
564
  "tooltip-before": d(() => [
553
- v(t.$slots, "tooltip-before", _(O({ ...U.value })), void 0, !0)
565
+ v(t.$slots, "tooltip-before", P(S({ ...W.value })), void 0, !0)
554
566
  ]),
555
567
  "tooltip-after": d(() => [
556
- v(t.$slots, "tooltip-after", _(O({ ...U.value })), void 0, !0)
568
+ v(t.$slots, "tooltip-after", P(S({ ...W.value })), void 0, !0)
557
569
  ]),
558
570
  _: 3
559
571
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
560
- I.value ? (r(), x(a(xe), {
572
+ F.value ? (r(), x(o(xe), {
561
573
  key: 9,
562
574
  hideDetails: "",
563
575
  config: {
@@ -574,32 +586,32 @@ const it = ["id"], ct = {
574
586
  }
575
587
  }, {
576
588
  content: d(() => [
577
- (r(), x(a(Te), {
589
+ (r(), x(o(Te), {
578
590
  key: `table_${q.value}`,
579
- colNames: A.value.colNames,
580
- head: A.value.head,
581
- body: A.value.body,
582
- config: A.value.config,
591
+ colNames: V.value.colNames,
592
+ head: V.value.head,
593
+ body: V.value.body,
594
+ config: V.value.config,
583
595
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
584
- onClose: o[2] || (o[2] = (l) => p.value.showTable = !1)
596
+ onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
585
597
  }, {
586
598
  th: d(({ th: l }) => [
587
- S("div", {
599
+ _("div", {
588
600
  innerHTML: l,
589
601
  style: { display: "flex", "align-items": "center" }
590
- }, null, 8, _t)
602
+ }, null, 8, Ot)
591
603
  ]),
592
604
  td: d(({ td: l }) => [
593
- pe(M(l.name || l), 1)
605
+ Xe(A(l.name || l), 1)
594
606
  ]),
595
607
  _: 1
596
608
  }, 8, ["colNames", "head", "body", "config", "title"]))
597
609
  ]),
598
610
  _: 1
599
611
  }, 8, ["config"])) : c("", !0)
600
- ], 46, it));
612
+ ], 46, vt));
601
613
  }
602
- }, Vt = /* @__PURE__ */ nt(Ot, [["__scopeId", "data-v-842ceb38"]]);
614
+ }, Et = /* @__PURE__ */ ct(Pt, [["__scopeId", "data-v-138fd332"]]);
603
615
  export {
604
- Vt as default
616
+ Et as default
605
617
  };