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,17 +1,18 @@
1
- import { defineAsyncComponent as T, computed as h, ref as u, watch as Ce, shallowRef as xe, onMounted as Ze, onBeforeUnmount as et, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as U, normalizeClass as G, createBlock as O, createCommentVNode as p, createElementVNode as I, createVNode as Te, createSlots as tt, withCtx as f, renderSlot as v, normalizeProps as S, guardReactiveProps as F, Fragment as D, renderList as L, toDisplayString as M, createTextVNode as at, nextTick as lt } from "vue";
2
- import { u as ot, c as nt, t as st, p as Oe, a as rt, b as ut, o as it, e as Z, d as ct, X as vt, f as V, i as ee, x as Pe, q as dt, r as ht, y as ft } from "./index-DvIXJm6t.js";
3
- import { t as pt, u as gt } from "./useResponsive-DfdjqQps.js";
4
- import { u as _e } from "./useNestedProp-DrYHm61t.js";
5
- import { u as yt } from "./usePrinter-CWnXbGMb.js";
6
- import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as bt } from "./useChartAccessibility-9icAAmYg.js";
8
- import kt from "./Title-Gi81VwUM.js";
9
- import wt from "./Legend-nBXoxXJH.js";
10
- import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Pt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], _t = ["id"], At = ["stdDeviation"], It = ["filter"], St = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Mt = { key: 2 }, Rt = ["onMouseenter"], Nt = ["x", "y", "font-size", "fill", "font-weight"], Dt = {
1
+ import { defineAsyncComponent as O, computed as h, ref as u, watch as xe, shallowRef as Te, onMounted as et, onBeforeUnmount as tt, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as X, normalizeClass as E, createBlock as P, createCommentVNode as p, createElementVNode as S, createVNode as Oe, createSlots as at, withCtx as f, renderSlot as v, normalizeProps as F, guardReactiveProps as M, Fragment as D, renderList as L, toDisplayString as R, createTextVNode as lt, nextTick as ot } from "vue";
2
+ import { u as nt, c as st, t as rt, p as Pe, a as ut, b as it, o as ct, e as Z, d as vt, X as dt, f as V, i as ee, x as _e, q as ht, r as ft, y as gt } from "./index-CobsZUkv.js";
3
+ import { t as pt, u as yt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ie } from "./useNestedProp-BwL5wmVa.js";
5
+ import { u as mt } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as kt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import wt from "./Title-DpERl1yr.js";
9
+ import $t from "./Legend-3LNqqLDg.js";
10
+ import Ct from "./img-utitT2Gd.js";
11
+ import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const Tt = ["id"], Ot = ["xmlns", "viewBox"], Pt = ["width", "height"], _t = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], It = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], At = ["id"], St = ["stdDeviation"], Ft = ["filter"], Mt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Rt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Nt = { key: 2 }, Dt = ["onMouseenter"], Lt = ["x", "y", "font-size", "fill", "font-weight"], Vt = {
12
13
  key: 5,
13
14
  class: "vue-data-ui-watermark"
14
- }, Lt = ["onClick"], Vt = ["innerHTML"], zt = {
15
+ }, zt = ["onClick"], Bt = ["innerHTML"], Yt = {
15
16
  __name: "vue-ui-onion",
16
17
  props: {
17
18
  config: {
@@ -28,32 +29,32 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
28
29
  }
29
30
  },
30
31
  emits: ["selectLegend"],
31
- setup(Ae, { expose: Ie, emit: Se }) {
32
- const Fe = T(() => import("./vue-ui-accordion-D55kCO5G.js")), Me = T(() => import("./DataTable-CHBLjKtZ.js")), Re = T(() => import("./PackageVersion-Bg_9KCU-.js")), Ne = T(() => import("./PenAndPaper-BPTpbnay.js")), De = T(() => import("./vue-ui-skeleton-BAOt2neL.js")), Le = T(() => import("./Tooltip-CJxVw7-T.js")), Ve = T(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_onion: ze } = ot(), w = Ae, z = h(() => !!w.dataset && w.dataset.length), P = u(nt()), Ye = u(null), te = u(0), Y = u(!1), E = u(""), y = u([]), R = u(null), ae = u(null), le = u(null), oe = u(null), ne = u(null), se = u(0), re = u(0), ue = u(0), e = h({
32
+ setup(Ae, { expose: Se, emit: Fe }) {
33
+ const Me = O(() => import("./vue-ui-accordion-UewqY6OI.js")), Re = O(() => import("./DataTable-Dt-TIOyY.js")), Ne = O(() => import("./PackageVersion-C-4Ee8BQ.js")), De = O(() => import("./PenAndPaper-Cde-wJ3N.js")), Le = O(() => import("./vue-ui-skeleton-8s4xts8z.js")), Ve = O(() => import("./Tooltip-DA0bYKFG.js")), ze = O(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_onion: Be } = nt(), $ = Ae, z = h(() => !!$.dataset && $.dataset.length), _ = u(st()), Ye = u(null), te = u(0), B = u(!1), G = u(""), y = u([]), C = u(null), ae = u(null), le = u(null), oe = u(null), ne = u(null), se = u(0), re = u(0), ue = u(0), e = h({
33
34
  get: () => de(),
34
35
  set: (t) => t
35
- }), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } = mt({ config: e.value }), { svgRef: ve } = bt({ config: e.value.style.chart.title });
36
+ }), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } = bt({ config: e.value }), { svgRef: ve } = kt({ config: e.value.style.chart.title });
36
37
  function de() {
37
- const t = _e({
38
- userConfig: w.config,
39
- defaultConfig: ze
38
+ const t = Ie({
39
+ userConfig: $.config,
40
+ defaultConfig: Be
40
41
  });
41
42
  return t.theme ? {
42
- ..._e({
43
- userConfig: rt.vue_ui_onion[t.theme] || w.config,
43
+ ...Ie({
44
+ userConfig: ut.vue_ui_onion[t.theme] || $.config,
44
45
  defaultConfig: t
45
46
  }),
46
- customPalette: st[t.theme] || Oe
47
+ customPalette: rt[t.theme] || Pe
47
48
  } : t;
48
49
  }
49
- Ce(() => w.config, (t) => {
50
+ xe(() => $.config, (t) => {
50
51
  e.value = de(), H.value = !e.value.userOptions.showOnChartHover, ye(), se.value += 1, re.value += 1, ue.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
51
52
  }, { deep: !0 });
52
- const { isPrinting: he, isImaging: fe, generatePdf: pe, generateImage: ge } = yt({
53
- elementId: `vue-ui-onion_${P.value}`,
53
+ const { isPrinting: he, isImaging: fe, generatePdf: ge, generateImage: pe } = mt({
54
+ elementId: `vue-ui-onion_${_.value}`,
54
55
  fileName: e.value.style.chart.title.text || "vue-ui-onion",
55
56
  options: e.value.userOptions.print
56
- }), Be = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = h(() => ut(e.value.customPalette)), m = u({
57
+ }), Ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = h(() => it(e.value.customPalette)), m = u({
57
58
  showTable: e.value.table.show,
58
59
  showTooltip: e.value.style.chart.tooltip.show
59
60
  }), n = u({
@@ -66,18 +67,18 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
66
67
  bottom: 64
67
68
  },
68
69
  minRadius: 64
69
- }), $ = xe(null), _ = xe(null);
70
- Ze(() => {
70
+ }), x = Te(null), I = Te(null);
71
+ et(() => {
71
72
  ye();
72
73
  });
73
74
  function ye() {
74
- if (it(w.dataset) && Z({
75
+ if (ct($.dataset) && Z({
75
76
  componentName: "VueUiOnion",
76
77
  type: "dataset"
77
78
  }), e.value.responsive) {
78
79
  const o = pt(() => {
79
- const { width: a, height: l } = gt({
80
- chart: R.value,
80
+ const { width: a, height: l } = yt({
81
+ chart: C.value,
81
82
  title: e.value.style.chart.title.text ? ae.value : null,
82
83
  legend: e.value.style.chart.legend.show ? le.value : null,
83
84
  source: oe.value,
@@ -87,11 +88,11 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
87
88
  n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125;
88
89
  });
89
90
  });
90
- $.value && (_.value && $.value.unobserve(_.value), $.value.disconnect()), $.value = new ResizeObserver(o), _.value = R.value.parentNode, $.value.observe(_.value);
91
+ x.value && (I.value && x.value.unobserve(I.value), x.value.disconnect()), x.value = new ResizeObserver(o), I.value = C.value.parentNode, x.value.observe(I.value);
91
92
  }
92
93
  }
93
- et(() => {
94
- $.value && (_.value && $.value.unobserve(_.value), $.value.disconnect());
94
+ tt(() => {
95
+ x.value && (I.value && x.value.unobserve(I.value), x.value.disconnect());
95
96
  });
96
97
  const c = h(() => ({
97
98
  top: n.value.padding.top,
@@ -104,7 +105,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
104
105
  height: n.value.height - n.value.padding.bottom - n.value.padding.top,
105
106
  minRadius: n.value.minRadius,
106
107
  maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
107
- })), d = h(() => (w.dataset.forEach((t, o) => {
108
+ })), d = h(() => ($.dataset.forEach((t, o) => {
108
109
  [null, void 0].includes(t.name) && Z({
109
110
  componentName: "VueUiOnion",
110
111
  type: "datasetSerieAttribute",
@@ -116,13 +117,13 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
116
117
  property: "percentage",
117
118
  index: o
118
119
  });
119
- }), w.dataset.map((t, o) => {
120
- const a = `onion_serie_${o}_${P.value}`;
120
+ }), $.dataset.map((t, o) => {
121
+ const a = `onion_serie_${o}_${_.value}`;
121
122
  return {
122
123
  ...t,
123
124
  percentage: t.percentage || 0,
124
125
  targetPercentage: t.percentage || 0,
125
- color: ct(t.color) || Xe.value[o] || Oe[o],
126
+ color: vt(t.color) || Xe.value[o] || Pe[o],
126
127
  id: a,
127
128
  shape: "circle",
128
129
  opacity: y.value.includes(a) ? 0.5 : 1,
@@ -130,12 +131,12 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
130
131
  segregate: () => me(a),
131
132
  isSegregated: y.value.includes(a)
132
133
  };
133
- }))), N = u(d.value), Ue = h(() => e.value.useStartAnimation), Ge = u(null), Ee = h(() => Math.max(...d.value.map((t) => t.percentage))), W = u(!1);
134
- Ce(() => d.value, He, { immediate: !0 });
135
- function He() {
136
- if (Ue.value && !W.value) {
134
+ }))), N = u(d.value), Ee = h(() => e.value.useStartAnimation), Ge = u(null), He = h(() => Math.max(...d.value.map((t) => t.percentage))), W = u(!1);
135
+ xe(() => d.value, We, { immediate: !0 });
136
+ function We() {
137
+ if (Ee.value && !W.value) {
137
138
  let o = function() {
138
- t >= Ee.value ? (cancelAnimationFrame(Ge.value), N.value = d.value, W.value = !0) : (N.value = d.value.map((a) => ({
139
+ t >= He.value ? (cancelAnimationFrame(Ge.value), N.value = d.value, W.value = !0) : (N.value = d.value.map((a) => ({
139
140
  ...a,
140
141
  percentage: t < a.targetPercentage ? t : a.targetPercentage
141
142
  })), t += 1, requestAnimationFrame(o), W.value = !0);
@@ -149,36 +150,36 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
149
150
  } else
150
151
  N.value = d.value;
151
152
  }
152
- const We = h(() => ({
153
+ const je = h(() => ({
153
154
  cy: "onion-div-legend",
154
155
  backgroundColor: e.value.style.chart.legend.backgroundColor,
155
156
  color: e.value.style.chart.legend.color,
156
157
  fontSize: e.value.style.chart.legend.fontSize,
157
158
  paddingBottom: 12,
158
159
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
159
- })), je = h(() => d.value.filter((t) => !y.value.includes(t.id)).length), x = h(() => {
160
+ })), qe = h(() => d.value.filter((t) => !y.value.includes(t.id)).length), T = h(() => {
160
161
  const t = Math.min(c.value.width, c.value.height) / 2 / d.value.length;
161
162
  return {
162
163
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
163
164
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
164
165
  };
165
- }), b = h(() => N.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
166
- const a = (c.value.maxRadius - x.value.track) / je.value / 2 * (1 + o), l = c.value.centerY - a;
166
+ }), k = h(() => N.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
167
+ const a = (c.value.maxRadius - T.value.track) / qe.value / 2 * (1 + o), l = c.value.centerY - a;
167
168
  return {
168
169
  percentage: t.percentage || 0,
169
170
  ...t,
170
171
  labelY: l,
171
172
  radius: a,
172
- path: qe(a, t.percentage || 0)
173
+ path: Je(a, t.percentage || 0)
173
174
  };
174
175
  }));
175
- function qe(t, o) {
176
- const a = 2 * Math.PI * t, l = a * 0.75, g = `${l} ${a}`, C = l * (1 - o / 100);
176
+ function Je(t, o) {
177
+ const a = 2 * Math.PI * t, l = a * 0.75, g = `${l} ${a}`, b = l * (1 - o / 100);
177
178
  return {
178
179
  bgDashArray: `${l} ${a}`,
179
180
  bgDashOffset: 0,
180
181
  dashArray: g,
181
- dashOffset: C,
182
+ dashOffset: b,
182
183
  fullOffset: 0,
183
184
  active: `
184
185
  M ${c.value.centerX},${c.value.centerY - t}
@@ -187,22 +188,22 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
187
188
  `.trim()
188
189
  };
189
190
  }
190
- const Je = Se;
191
+ const Ke = Fe;
191
192
  function me(t) {
192
- y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Je("selectLegend", b.value);
193
+ y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Ke("selectLegend", k.value);
193
194
  }
194
- function Ke() {
195
- return b.value;
195
+ function Qe() {
196
+ return k.value;
196
197
  }
197
198
  const j = h(() => {
198
- const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = b.value.map((a) => [
199
+ const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = k.value.map((a) => [
199
200
  a.name,
200
201
  a.percentage,
201
202
  a.value
202
203
  ]);
203
204
  return { head: t, body: o };
204
- }), B = h(() => {
205
- const t = j.value.head, o = b.value.map((l) => [
205
+ }), Y = h(() => {
206
+ const t = j.value.head, o = k.value.map((l) => [
206
207
  `<span style="color:${l.color}">⬤</span> ${l.name}`,
207
208
  `${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
208
209
  `${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
@@ -222,33 +223,33 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
222
223
  return { head: t, body: o, config: a, colNames: t };
223
224
  });
224
225
  function be(t = null) {
225
- lt(() => {
226
- const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = j.value.head, l = j.value.body, g = o.concat([a]).concat(l), C = dt(g);
227
- t ? t(C) : ht({ csvContent: C, title: e.value.style.chart.title.text || "vue-ui-onion" });
226
+ ot(() => {
227
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = j.value.head, l = j.value.body, g = o.concat([a]).concat(l), b = ht(g);
228
+ t ? t(b) : ft({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-onion" });
228
229
  });
229
230
  }
230
- const k = u(void 0), A = u(!1);
231
- function Qe(t) {
231
+ const w = u(void 0), A = u(!1);
232
+ function ke(t) {
232
233
  A.value = t, te.value += 1;
233
234
  }
234
235
  const q = u(null);
235
- function ke({ datapoint: t, seriesIndex: o, show: a = !0 }) {
236
+ function we({ datapoint: t, seriesIndex: o, show: a = !0 }) {
236
237
  const l = t.absoluteIndex;
237
- k.value = o, q.value = {
238
+ w.value = o, q.value = {
238
239
  datapoint: t,
239
240
  seriesIndex: l,
240
241
  series: d.value,
241
242
  config: e.value
242
- }, Y.value = a;
243
+ }, B.value = a;
243
244
  let g = "";
244
- const C = e.value.style.chart.tooltip.customFormat;
245
- if (Pe(C) && ft(() => C({
245
+ const b = e.value.style.chart.tooltip.customFormat;
246
+ if (_e(b) && gt(() => b({
246
247
  seriesIndex: l,
247
248
  datapoint: t,
248
249
  series: d.value,
249
250
  config: e.value
250
251
  })))
251
- E.value = C({
252
+ G.value = b({
252
253
  seriesIndex: l,
253
254
  datapoint: t,
254
255
  series: d.value,
@@ -266,45 +267,59 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
266
267
  r: e.value.style.chart.tooltip.roundingValue
267
268
  }),
268
269
  { datapoint: t, seriesIndex: o }
269
- ) : ""}${K && Q ? ")" : ""}</div>`, E.value = `<div>${g}</div>`;
270
+ ) : ""}${K && Q ? ")" : ""}</div>`, G.value = `<div>${g}</div>`;
270
271
  }
271
272
  }
272
- function we() {
273
+ function $e() {
273
274
  m.value.showTable = !m.value.showTable;
274
275
  }
275
- function $e() {
276
+ function Ce() {
276
277
  m.value.showTooltip = !m.value.showTooltip;
277
278
  }
278
- const X = u(!1);
279
+ const U = u(!1);
279
280
  function J() {
280
- X.value = !X.value;
281
+ U.value = !U.value;
282
+ }
283
+ async function Ze({ scale: t = 2 } = {}) {
284
+ if (!C.value) return;
285
+ const { width: o, height: a } = C.value.getBoundingClientRect(), l = o / a, { imageUri: g, base64: b } = await Ct({ domElement: C.value, base64: !0, img: !0, scale: t });
286
+ return {
287
+ imageUri: g,
288
+ base64: b,
289
+ title: e.value.style.chart.title.text,
290
+ width: o,
291
+ height: a,
292
+ aspectRatio: l
293
+ };
281
294
  }
282
- return Ie({
283
- getData: Ke,
284
- generatePdf: pe,
295
+ return Se({
296
+ getData: Qe,
297
+ getImage: Ze,
298
+ generatePdf: ge,
285
299
  generateCsv: be,
286
- generateImage: ge,
287
- toggleTable: we,
288
- toggleTooltip: $e,
289
- toggleAnnotator: J
300
+ generateImage: pe,
301
+ toggleTable: $e,
302
+ toggleTooltip: Ce,
303
+ toggleAnnotator: J,
304
+ toggleFullscreen: ke
290
305
  }), (t, o) => (s(), i("div", {
291
- class: G(`vue-ui-onion ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
306
+ class: E(`vue-ui-onion ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
292
307
  ref_key: "onionChart",
293
- ref: R,
294
- id: `vue-ui-onion_${P.value}`,
295
- style: U(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
308
+ ref: C,
309
+ id: `vue-ui-onion_${_.value}`,
310
+ style: X(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
296
311
  onMouseenter: o[4] || (o[4] = () => r(ie)(!0)),
297
312
  onMouseleave: o[5] || (o[5] = () => r(ie)(!1))
298
313
  }, [
299
- e.value.userOptions.buttons.annotator ? (s(), O(r(Ne), {
314
+ e.value.userOptions.buttons.annotator ? (s(), P(r(De), {
300
315
  key: 0,
301
316
  svgRef: r(ve),
302
317
  backgroundColor: e.value.style.chart.backgroundColor,
303
318
  color: e.value.style.chart.color,
304
- active: X.value,
319
+ active: U.value,
305
320
  onClose: J
306
321
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
307
- Be.value ? (s(), i("div", {
322
+ Ue.value ? (s(), i("div", {
308
323
  key: 1,
309
324
  ref_key: "noTitle",
310
325
  ref: ne,
@@ -317,7 +332,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
317
332
  ref: ae,
318
333
  style: "width:100%;background:transparent"
319
334
  }, [
320
- (s(), O(kt, {
335
+ (s(), P(wt, {
321
336
  key: `title_${se.value}`,
322
337
  config: {
323
338
  title: {
@@ -331,7 +346,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
331
346
  }
332
347
  }, null, 8, ["config"]))
333
348
  ], 512)) : p("", !0),
334
- e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), O(r(Ve), {
349
+ e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), P(r(ze), {
335
350
  ref_key: "details",
336
351
  ref: Ye,
337
352
  key: `user_options${te.value}`,
@@ -339,7 +354,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
339
354
  color: e.value.style.chart.color,
340
355
  isImaging: r(fe),
341
356
  isPrinting: r(he),
342
- uid: P.value,
357
+ uid: _.value,
343
358
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
344
359
  hasPdf: e.value.userOptions.buttons.pdf,
345
360
  hasImg: e.value.userOptions.buttons.img,
@@ -349,27 +364,27 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
349
364
  isFullscreen: A.value,
350
365
  isTooltip: m.value.showTooltip,
351
366
  titles: { ...e.value.userOptions.buttonTitles },
352
- chartElement: R.value,
367
+ chartElement: C.value,
353
368
  position: e.value.userOptions.position,
354
369
  hasAnnotator: e.value.userOptions.buttons.annotator,
355
- isAnnotation: X.value,
370
+ isAnnotation: U.value,
356
371
  callbacks: e.value.userOptions.callbacks,
357
372
  printScale: e.value.userOptions.print.scale,
358
- onToggleFullscreen: Qe,
359
- onGeneratePdf: r(pe),
373
+ onToggleFullscreen: ke,
374
+ onGeneratePdf: r(ge),
360
375
  onGenerateCsv: be,
361
- onGenerateImage: r(ge),
362
- onToggleTable: we,
363
- onToggleTooltip: $e,
376
+ onGenerateImage: r(pe),
377
+ onToggleTable: $e,
378
+ onToggleTooltip: Ce,
364
379
  onToggleAnnotator: J,
365
- style: U({
380
+ style: X({
366
381
  visibility: r(ce) ? r(H) ? "visible" : "hidden" : "visible"
367
382
  })
368
- }, tt({ _: 2 }, [
383
+ }, at({ _: 2 }, [
369
384
  t.$slots.menuIcon ? {
370
385
  name: "menuIcon",
371
386
  fn: f(({ isOpen: a, color: l }) => [
372
- v(t.$slots, "menuIcon", S(F({ isOpen: a, color: l })), void 0, !0)
387
+ v(t.$slots, "menuIcon", F(M({ isOpen: a, color: l })), void 0, !0)
373
388
  ]),
374
389
  key: "0"
375
390
  } : void 0,
@@ -411,14 +426,14 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
411
426
  t.$slots.optionFullscreen ? {
412
427
  name: "optionFullscreen",
413
428
  fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
414
- v(t.$slots, "optionFullscreen", S(F({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
429
+ v(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
415
430
  ]),
416
431
  key: "6"
417
432
  } : void 0,
418
433
  t.$slots.optionAnnotator ? {
419
434
  name: "optionAnnotator",
420
435
  fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
421
- v(t.$slots, "optionAnnotator", S(F({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
436
+ v(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
422
437
  ]),
423
438
  key: "7"
424
439
  } : void 0
@@ -427,12 +442,12 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
427
442
  key: 4,
428
443
  ref_key: "svgRef",
429
444
  ref: ve,
430
- xmlns: r(vt),
431
- class: G({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
445
+ xmlns: r(dt),
446
+ class: E({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
432
447
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
433
- style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
448
+ style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
434
449
  }, [
435
- Te(r(Re)),
450
+ Oe(r(Ne)),
436
451
  t.$slots["chart-background"] ? (s(), i("foreignObject", {
437
452
  key: 0,
438
453
  x: 0,
@@ -444,109 +459,109 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
444
459
  }
445
460
  }, [
446
461
  v(t.$slots, "chart-background", {}, void 0, !0)
447
- ], 8, Tt)) : p("", !0),
448
- (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
462
+ ], 8, Pt)) : p("", !0),
463
+ (s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
449
464
  cx: c.value.centerX,
450
465
  cy: c.value.centerY,
451
466
  r: a.radius <= 0 ? 1e-4 : a.radius,
452
467
  stroke: e.value.style.chart.layout.gutter.color,
453
- "stroke-width": x.value.gutter,
468
+ "stroke-width": T.value.gutter,
454
469
  fill: "none",
455
470
  "stroke-dasharray": a.path.bgDashArray,
456
471
  "stroke-dashoffset": a.path.fullOffset,
457
472
  "stroke-linecap": "round",
458
- class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
473
+ class: E({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(w.value) && w.value !== l }),
459
474
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
460
- }, null, 10, Ot))), 256)),
461
- (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
475
+ }, null, 10, _t))), 256)),
476
+ (s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
462
477
  cx: c.value.centerX,
463
478
  cy: c.value.centerY,
464
479
  r: a.radius < 0 ? 1e-4 : a.radius,
465
480
  stroke: `${a.color}`,
466
- "stroke-width": x.value.track,
481
+ "stroke-width": T.value.track,
467
482
  fill: "none",
468
483
  "stroke-dasharray": a.path.dashArray,
469
484
  "stroke-dashoffset": a.path.dashOffset,
470
- class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
485
+ class: E({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(w.value) && w.value !== l }),
471
486
  "stroke-linecap": "round",
472
487
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
473
- }, null, 10, Pt))), 256)),
474
- I("defs", null, [
475
- I("filter", {
476
- id: `blur_${P.value}`,
488
+ }, null, 10, It))), 256)),
489
+ S("defs", null, [
490
+ S("filter", {
491
+ id: `blur_${_.value}`,
477
492
  x: "-50%",
478
493
  y: "-50%",
479
494
  width: "200%",
480
495
  height: "200%"
481
496
  }, [
482
- I("feGaussianBlur", {
497
+ S("feGaussianBlur", {
483
498
  in: "SourceGraphic",
484
499
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
485
- }, null, 8, At)
486
- ], 8, _t)
500
+ }, null, 8, St)
501
+ ], 8, At)
487
502
  ]),
488
503
  e.value.style.chart.useGradient ? (s(), i("g", {
489
504
  key: 1,
490
- filter: `url(#blur_${P.value})`
505
+ filter: `url(#blur_${_.value})`
491
506
  }, [
492
- (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
507
+ (s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
493
508
  cx: c.value.centerX,
494
509
  cy: c.value.centerY,
495
510
  r: a.radius <= 0 ? 1e-4 : a.radius,
496
511
  stroke: "white",
497
- "stroke-width": x.value.track / 3,
512
+ "stroke-width": T.value.track / 3,
498
513
  fill: "none",
499
514
  "stroke-linecap": "round",
500
515
  "stroke-dasharray": a.path.dashArray,
501
516
  "stroke-dashoffset": a.path.dashOffset,
502
517
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
503
- }, null, 8, St))), 256))
504
- ], 8, It)) : p("", !0),
505
- (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
518
+ }, null, 8, Mt))), 256))
519
+ ], 8, Ft)) : p("", !0),
520
+ (s(!0), i(D, null, L(k.value, (a, l) => (s(), i("circle", {
506
521
  cx: c.value.centerX,
507
522
  cy: c.value.centerY,
508
523
  r: a.radius <= 0 ? 1e-4 : a.radius,
509
524
  stroke: "transparent",
510
- "stroke-width": Math.max(x.value.track, x.value.gutter),
525
+ "stroke-width": Math.max(T.value.track, T.value.gutter),
511
526
  fill: "none",
512
527
  "stroke-dasharray": a.path.bgDashArray,
513
528
  "stroke-dashoffset": a.path.fullOffset,
514
529
  "stroke-linecap": "round",
515
530
  class: "vue-ui-onion-path",
516
531
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
517
- onMouseenter: (g) => ke({
532
+ onMouseenter: (g) => we({
518
533
  datapoint: a,
519
534
  show: !0,
520
535
  seriesIndex: l
521
536
  }),
522
537
  onMouseleave: o[0] || (o[0] = (g) => {
523
- k.value = void 0, Y.value = !1;
538
+ w.value = void 0, B.value = !1;
524
539
  })
525
- }, null, 40, Ft))), 256)),
526
- e.value.style.chart.layout.labels.show ? (s(), i("g", Mt, [
527
- (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("g", {
528
- onMouseenter: (g) => ke({
540
+ }, null, 40, Rt))), 256)),
541
+ e.value.style.chart.layout.labels.show ? (s(), i("g", Nt, [
542
+ (s(!0), i(D, null, L(k.value, (a, l) => (s(), i("g", {
543
+ onMouseenter: (g) => we({
529
544
  datapoint: a,
530
545
  show: !0,
531
546
  seriesIndex: l
532
547
  }),
533
548
  onMouseleave: o[1] || (o[1] = (g) => {
534
- k.value = void 0, Y.value = !1;
549
+ w.value = void 0, B.value = !1;
535
550
  })
536
551
  }, [
537
552
  y.value.includes(a.id) ? p("", !0) : (s(), i("text", {
538
553
  key: 0,
539
- x: n.value.width / 2 - x.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
554
+ x: n.value.width / 2 - T.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
540
555
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
541
556
  "text-anchor": "end",
542
557
  "font-size": e.value.style.chart.layout.labels.fontSize,
543
- fill: e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value === l ? a.color : e.value.style.chart.layout.labels.color,
558
+ fill: e.value.useBlurOnHover && ![null, void 0].includes(w.value) && w.value === l ? a.color : e.value.style.chart.layout.labels.color,
544
559
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
545
- }, M(a.name ? a.name + ": " : "") + " " + M(e.value.style.chart.layout.labels.percentage.show ? r(V)({
560
+ }, R(a.name ? a.name + ": " : "") + " " + R(e.value.style.chart.layout.labels.percentage.show ? r(V)({
546
561
  v: a.percentage,
547
562
  s: "%",
548
563
  r: e.value.style.chart.layout.labels.roundingPercentage
549
- }) : "") + " " + M(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
564
+ }) : "") + " " + R(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
550
565
  e.value.style.chart.layout.labels.value.formatter,
551
566
  a.value,
552
567
  r(V)({
@@ -566,15 +581,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
566
581
  r: e.value.style.chart.layout.labels.roundingValue
567
582
  }),
568
583
  { datapoint: a, seriesIndex: l }
569
- )})` : ""}`), 9, Nt))
570
- ], 40, Rt))), 256))
584
+ )})` : ""}`), 9, Lt))
585
+ ], 40, Dt))), 256))
571
586
  ])) : p("", !0),
572
587
  v(t.$slots, "svg", { svg: n.value }, void 0, !0)
573
- ], 14, xt)) : p("", !0),
574
- t.$slots.watermark ? (s(), i("div", Dt, [
575
- v(t.$slots, "watermark", S(F({ isPrinting: r(he) || r(fe) })), void 0, !0)
588
+ ], 14, Ot)) : p("", !0),
589
+ t.$slots.watermark ? (s(), i("div", Vt, [
590
+ v(t.$slots, "watermark", F(M({ isPrinting: r(he) || r(fe) })), void 0, !0)
576
591
  ])) : p("", !0),
577
- z.value ? p("", !0) : (s(), O(r(De), {
592
+ z.value ? p("", !0) : (s(), P(r(Le), {
578
593
  key: 6,
579
594
  config: {
580
595
  type: "onion",
@@ -586,22 +601,22 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
586
601
  }
587
602
  }
588
603
  }, null, 8, ["config"])),
589
- I("div", {
604
+ S("div", {
590
605
  ref_key: "chartLegend",
591
606
  ref: le
592
607
  }, [
593
- e.value.style.chart.legend.show ? (s(), O(wt, {
608
+ e.value.style.chart.legend.show ? (s(), P($t, {
594
609
  key: `legend_${ue.value}`,
595
610
  legendSet: d.value,
596
- config: We.value,
611
+ config: je.value,
597
612
  onClickMarker: o[2] || (o[2] = ({ legend: a }) => me(a.id))
598
613
  }, {
599
614
  item: f(({ legend: a }) => [
600
- I("div", {
615
+ S("div", {
601
616
  "data-cy-legend-item": "",
602
617
  onClick: (l) => a.segregate(),
603
- style: U(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
604
- }, M(a.name ? a.name + ": " : "") + " " + M((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Lt)
618
+ style: X(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
619
+ }, R(a.name ? a.name + ": " : "") + " " + R((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, zt)
605
620
  ]),
606
621
  _: 1
607
622
  }, 8, ["legendSet", "config"])) : v(t.$slots, "legend", {
@@ -617,8 +632,8 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
617
632
  }, [
618
633
  v(t.$slots, "source", {}, void 0, !0)
619
634
  ], 512)) : p("", !0),
620
- Te(r(Le), {
621
- show: m.value.showTooltip && Y.value,
635
+ Oe(r(Ve), {
636
+ show: m.value.showTooltip && B.value,
622
637
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
623
638
  color: e.value.style.chart.tooltip.color,
624
639
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -628,20 +643,20 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
628
643
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
629
644
  position: e.value.style.chart.tooltip.position,
630
645
  offsetY: e.value.style.chart.tooltip.offsetY,
631
- parent: R.value,
632
- content: E.value,
646
+ parent: C.value,
647
+ content: G.value,
633
648
  isFullscreen: A.value,
634
- isCustom: r(Pe)(e.value.style.chart.tooltip.customFormat)
649
+ isCustom: r(_e)(e.value.style.chart.tooltip.customFormat)
635
650
  }, {
636
651
  "tooltip-before": f(() => [
637
- v(t.$slots, "tooltip-before", S(F({ ...q.value })), void 0, !0)
652
+ v(t.$slots, "tooltip-before", F(M({ ...q.value })), void 0, !0)
638
653
  ]),
639
654
  "tooltip-after": f(() => [
640
- v(t.$slots, "tooltip-after", S(F({ ...q.value })), void 0, !0)
655
+ v(t.$slots, "tooltip-after", F(M({ ...q.value })), void 0, !0)
641
656
  ]),
642
657
  _: 3
643
658
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
644
- z.value ? (s(), O(r(Fe), {
659
+ z.value ? (s(), P(r(Me), {
645
660
  key: 8,
646
661
  hideDetails: "",
647
662
  config: {
@@ -658,29 +673,29 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
658
673
  }
659
674
  }, {
660
675
  content: f(() => [
661
- (s(), O(r(Me), {
676
+ (s(), P(r(Re), {
662
677
  key: `table_${re.value}`,
663
- colNames: B.value.colNames,
664
- head: B.value.head,
665
- body: B.value.body,
666
- config: B.value.config,
678
+ colNames: Y.value.colNames,
679
+ head: Y.value.head,
680
+ body: Y.value.body,
681
+ config: Y.value.config,
667
682
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
668
683
  onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
669
684
  }, {
670
685
  th: f(({ th: a }) => [
671
- at(M(a), 1)
686
+ lt(R(a), 1)
672
687
  ]),
673
688
  td: f(({ td: a }) => [
674
- I("div", { innerHTML: a }, null, 8, Vt)
689
+ S("div", { innerHTML: a }, null, 8, Bt)
675
690
  ]),
676
691
  _: 1
677
692
  }, 8, ["colNames", "head", "body", "config", "title"]))
678
693
  ]),
679
694
  _: 1
680
695
  }, 8, ["config"])) : p("", !0)
681
- ], 46, Ct));
696
+ ], 46, Tt));
682
697
  }
683
- }, Jt = /* @__PURE__ */ $t(zt, [["__scopeId", "data-v-3a76e3ea"]]);
698
+ }, Zt = /* @__PURE__ */ xt(Yt, [["__scopeId", "data-v-ba8786fc"]]);
684
699
  export {
685
- Jt as default
700
+ Zt as default
686
701
  };