vue-data-ui 2.16.6 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.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-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -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 g, 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-pPGk-uhD.js";
3
+ import { t as pt, u as yt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ie } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as mt } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as kt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import wt from "./Title-B-2bV0SW.js";
9
+ import $t from "./Legend-Bxlv67uY.js";
10
+ import Ct from "./img-Y_hYz-ZC.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"], Yt = ["innerHTML"], Bt = {
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-CVnA550V.js")), Re = O(() => import("./DataTable-D0VYDhfx.js")), Ne = O(() => import("./PackageVersion-5TR4ocqp.js")), De = O(() => import("./PenAndPaper-D6AqipIO.js")), Le = O(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Ve = O(() => import("./Tooltip-CoQnTnr-.js")), ze = O(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_onion: Ye } = nt(), w = Ae, z = h(() => !!w.dataset && w.dataset.length), _ = u(st()), Be = u(null), te = u(0), Y = u(!1), G = u(""), y = u([]), x = 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
+ const t = Ie({
38
39
  userConfig: w.config,
39
- defaultConfig: ze
40
+ defaultConfig: Ye
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] || w.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(() => w.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
+ }), $ = 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(w.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: x.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
+ $.value && (I.value && $.value.unobserve(I.value), $.value.disconnect()), $.value = new ResizeObserver(o), I.value = x.value.parentNode, $.value.observe(I.value);
91
92
  }
92
93
  }
93
- et(() => {
94
- $.value && (_.value && $.value.unobserve(_.value), $.value.disconnect());
94
+ tt(() => {
95
+ $.value && (I.value && $.value.unobserve(I.value), $.value.disconnect());
95
96
  });
96
97
  const c = h(() => ({
97
98
  top: n.value.padding.top,
@@ -117,12 +118,12 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
117
118
  index: o
118
119
  });
119
120
  }), w.dataset.map((t, o) => {
120
- const a = `onion_serie_${o}_${P.value}`;
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,35 +150,35 @@ 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
166
  }), 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;
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, p = `${l} ${a}`, C = l * (1 - o / 100);
177
178
  return {
178
179
  bgDashArray: `${l} ${a}`,
179
180
  bgDashOffset: 0,
180
- dashArray: g,
181
+ dashArray: p,
181
182
  dashOffset: C,
182
183
  fullOffset: 0,
183
184
  active: `
@@ -187,11 +188,11 @@ 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", b.value);
193
194
  }
194
- function Ke() {
195
+ function Qe() {
195
196
  return b.value;
196
197
  }
197
198
  const j = h(() => {
@@ -222,17 +223,17 @@ 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, p = o.concat([a]).concat(l), C = ht(p);
228
+ t ? t(C) : ft({ csvContent: C, title: e.value.style.chart.title.text || "vue-ui-onion" });
228
229
  });
229
230
  }
230
231
  const k = u(void 0), A = u(!1);
231
- function Qe(t) {
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
238
  k.value = o, q.value = {
238
239
  datapoint: t,
@@ -240,15 +241,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
240
241
  series: d.value,
241
242
  config: e.value
242
243
  }, Y.value = a;
243
- let g = "";
244
+ let p = "";
244
245
  const C = e.value.style.chart.tooltip.customFormat;
245
- if (Pe(C) && ft(() => C({
246
+ if (_e(C) && gt(() => C({
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 = C({
252
253
  seriesIndex: l,
253
254
  datapoint: t,
254
255
  series: d.value,
@@ -256,7 +257,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
256
257
  });
257
258
  else {
258
259
  const K = e.value.style.chart.tooltip.showPercentage, Q = e.value.style.chart.tooltip.showValue;
259
- g += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;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><span></span>${t.name}</span></div>`, g += `<div style="width:100%;text-align:left;"><b>${K ? V({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${K && Q ? "(" : ""}${Q ? ee(
260
+ p += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;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><span></span>${t.name}</span></div>`, p += `<div style="width:100%;text-align:left;"><b>${K ? V({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${K && Q ? "(" : ""}${Q ? ee(
260
261
  e.value.style.chart.layout.labels.value.formatter,
261
262
  t.value,
262
263
  V({
@@ -266,58 +267,65 @@ 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>${p}</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 (!x.value) return;
285
+ const { imageUri: o, base64: a } = await Ct({ domElement: x.value, base64: !0, img: !0, scale: t });
286
+ return { imageUri: o, base64: a };
281
287
  }
282
- return Ie({
283
- getData: Ke,
284
- generatePdf: pe,
288
+ return Se({
289
+ getData: Qe,
290
+ getImage: Ze,
291
+ generatePdf: ge,
285
292
  generateCsv: be,
286
- generateImage: ge,
287
- toggleTable: we,
288
- toggleTooltip: $e,
289
- toggleAnnotator: J
293
+ generateImage: pe,
294
+ toggleTable: $e,
295
+ toggleTooltip: Ce,
296
+ toggleAnnotator: J,
297
+ toggleFullscreen: ke
290
298
  }), (t, o) => (s(), i("div", {
291
- class: G(`vue-ui-onion ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
299
+ class: E(`vue-ui-onion ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
292
300
  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}`),
301
+ ref: x,
302
+ id: `vue-ui-onion_${_.value}`,
303
+ 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
304
  onMouseenter: o[4] || (o[4] = () => r(ie)(!0)),
297
305
  onMouseleave: o[5] || (o[5] = () => r(ie)(!1))
298
306
  }, [
299
- e.value.userOptions.buttons.annotator ? (s(), O(r(Ne), {
307
+ e.value.userOptions.buttons.annotator ? (s(), P(r(De), {
300
308
  key: 0,
301
309
  svgRef: r(ve),
302
310
  backgroundColor: e.value.style.chart.backgroundColor,
303
311
  color: e.value.style.chart.color,
304
- active: X.value,
312
+ active: U.value,
305
313
  onClose: J
306
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
307
- Be.value ? (s(), i("div", {
314
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
315
+ Ue.value ? (s(), i("div", {
308
316
  key: 1,
309
317
  ref_key: "noTitle",
310
318
  ref: ne,
311
319
  class: "vue-data-ui-no-title-space",
312
320
  style: "height:36px; width: 100%;background:transparent"
313
- }, null, 512)) : p("", !0),
321
+ }, null, 512)) : g("", !0),
314
322
  e.value.style.chart.title.text ? (s(), i("div", {
315
323
  key: 2,
316
324
  ref_key: "chartTitle",
317
325
  ref: ae,
318
326
  style: "width:100%;background:transparent"
319
327
  }, [
320
- (s(), O(kt, {
328
+ (s(), P(wt, {
321
329
  key: `title_${se.value}`,
322
330
  config: {
323
331
  title: {
@@ -330,16 +338,16 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
330
338
  }
331
339
  }
332
340
  }, null, 8, ["config"]))
333
- ], 512)) : p("", !0),
334
- e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), O(r(Ve), {
341
+ ], 512)) : g("", !0),
342
+ e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), P(r(ze), {
335
343
  ref_key: "details",
336
- ref: Ye,
344
+ ref: Be,
337
345
  key: `user_options${te.value}`,
338
346
  backgroundColor: e.value.style.chart.backgroundColor,
339
347
  color: e.value.style.chart.color,
340
348
  isImaging: r(fe),
341
349
  isPrinting: r(he),
342
- uid: P.value,
350
+ uid: _.value,
343
351
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
344
352
  hasPdf: e.value.userOptions.buttons.pdf,
345
353
  hasImg: e.value.userOptions.buttons.img,
@@ -349,27 +357,27 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
349
357
  isFullscreen: A.value,
350
358
  isTooltip: m.value.showTooltip,
351
359
  titles: { ...e.value.userOptions.buttonTitles },
352
- chartElement: R.value,
360
+ chartElement: x.value,
353
361
  position: e.value.userOptions.position,
354
362
  hasAnnotator: e.value.userOptions.buttons.annotator,
355
- isAnnotation: X.value,
363
+ isAnnotation: U.value,
356
364
  callbacks: e.value.userOptions.callbacks,
357
365
  printScale: e.value.userOptions.print.scale,
358
- onToggleFullscreen: Qe,
359
- onGeneratePdf: r(pe),
366
+ onToggleFullscreen: ke,
367
+ onGeneratePdf: r(ge),
360
368
  onGenerateCsv: be,
361
- onGenerateImage: r(ge),
362
- onToggleTable: we,
363
- onToggleTooltip: $e,
369
+ onGenerateImage: r(pe),
370
+ onToggleTable: $e,
371
+ onToggleTooltip: Ce,
364
372
  onToggleAnnotator: J,
365
- style: U({
373
+ style: X({
366
374
  visibility: r(ce) ? r(H) ? "visible" : "hidden" : "visible"
367
375
  })
368
- }, tt({ _: 2 }, [
376
+ }, at({ _: 2 }, [
369
377
  t.$slots.menuIcon ? {
370
378
  name: "menuIcon",
371
379
  fn: f(({ isOpen: a, color: l }) => [
372
- v(t.$slots, "menuIcon", S(F({ isOpen: a, color: l })), void 0, !0)
380
+ v(t.$slots, "menuIcon", F(M({ isOpen: a, color: l })), void 0, !0)
373
381
  ]),
374
382
  key: "0"
375
383
  } : void 0,
@@ -411,28 +419,28 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
411
419
  t.$slots.optionFullscreen ? {
412
420
  name: "optionFullscreen",
413
421
  fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
414
- v(t.$slots, "optionFullscreen", S(F({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
422
+ v(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
415
423
  ]),
416
424
  key: "6"
417
425
  } : void 0,
418
426
  t.$slots.optionAnnotator ? {
419
427
  name: "optionAnnotator",
420
428
  fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
421
- v(t.$slots, "optionAnnotator", S(F({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
429
+ v(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
422
430
  ]),
423
431
  key: "7"
424
432
  } : void 0
425
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
433
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
426
434
  z.value ? (s(), i("svg", {
427
435
  key: 4,
428
436
  ref_key: "svgRef",
429
437
  ref: ve,
430
- xmlns: r(vt),
431
- class: G({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
438
+ xmlns: r(dt),
439
+ class: E({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
432
440
  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}`)
441
+ style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
434
442
  }, [
435
- Te(r(Re)),
443
+ Oe(r(Ne)),
436
444
  t.$slots["chart-background"] ? (s(), i("foreignObject", {
437
445
  key: 0,
438
446
  x: 0,
@@ -444,109 +452,109 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
444
452
  }
445
453
  }, [
446
454
  v(t.$slots, "chart-background", {}, void 0, !0)
447
- ], 8, Tt)) : p("", !0),
455
+ ], 8, Pt)) : g("", !0),
448
456
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
449
457
  cx: c.value.centerX,
450
458
  cy: c.value.centerY,
451
459
  r: a.radius <= 0 ? 1e-4 : a.radius,
452
460
  stroke: e.value.style.chart.layout.gutter.color,
453
- "stroke-width": x.value.gutter,
461
+ "stroke-width": T.value.gutter,
454
462
  fill: "none",
455
463
  "stroke-dasharray": a.path.bgDashArray,
456
464
  "stroke-dashoffset": a.path.fullOffset,
457
465
  "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 }),
466
+ class: E({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
459
467
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
460
- }, null, 10, Ot))), 256)),
468
+ }, null, 10, _t))), 256)),
461
469
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
462
470
  cx: c.value.centerX,
463
471
  cy: c.value.centerY,
464
472
  r: a.radius < 0 ? 1e-4 : a.radius,
465
473
  stroke: `${a.color}`,
466
- "stroke-width": x.value.track,
474
+ "stroke-width": T.value.track,
467
475
  fill: "none",
468
476
  "stroke-dasharray": a.path.dashArray,
469
477
  "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 }),
478
+ class: E({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
471
479
  "stroke-linecap": "round",
472
480
  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}`,
481
+ }, null, 10, It))), 256)),
482
+ S("defs", null, [
483
+ S("filter", {
484
+ id: `blur_${_.value}`,
477
485
  x: "-50%",
478
486
  y: "-50%",
479
487
  width: "200%",
480
488
  height: "200%"
481
489
  }, [
482
- I("feGaussianBlur", {
490
+ S("feGaussianBlur", {
483
491
  in: "SourceGraphic",
484
492
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
485
- }, null, 8, At)
486
- ], 8, _t)
493
+ }, null, 8, St)
494
+ ], 8, At)
487
495
  ]),
488
496
  e.value.style.chart.useGradient ? (s(), i("g", {
489
497
  key: 1,
490
- filter: `url(#blur_${P.value})`
498
+ filter: `url(#blur_${_.value})`
491
499
  }, [
492
500
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
493
501
  cx: c.value.centerX,
494
502
  cy: c.value.centerY,
495
503
  r: a.radius <= 0 ? 1e-4 : a.radius,
496
504
  stroke: "white",
497
- "stroke-width": x.value.track / 3,
505
+ "stroke-width": T.value.track / 3,
498
506
  fill: "none",
499
507
  "stroke-linecap": "round",
500
508
  "stroke-dasharray": a.path.dashArray,
501
509
  "stroke-dashoffset": a.path.dashOffset,
502
510
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
503
- }, null, 8, St))), 256))
504
- ], 8, It)) : p("", !0),
511
+ }, null, 8, Mt))), 256))
512
+ ], 8, Ft)) : g("", !0),
505
513
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
506
514
  cx: c.value.centerX,
507
515
  cy: c.value.centerY,
508
516
  r: a.radius <= 0 ? 1e-4 : a.radius,
509
517
  stroke: "transparent",
510
- "stroke-width": Math.max(x.value.track, x.value.gutter),
518
+ "stroke-width": Math.max(T.value.track, T.value.gutter),
511
519
  fill: "none",
512
520
  "stroke-dasharray": a.path.bgDashArray,
513
521
  "stroke-dashoffset": a.path.fullOffset,
514
522
  "stroke-linecap": "round",
515
523
  class: "vue-ui-onion-path",
516
524
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
517
- onMouseenter: (g) => ke({
525
+ onMouseenter: (p) => we({
518
526
  datapoint: a,
519
527
  show: !0,
520
528
  seriesIndex: l
521
529
  }),
522
- onMouseleave: o[0] || (o[0] = (g) => {
530
+ onMouseleave: o[0] || (o[0] = (p) => {
523
531
  k.value = void 0, Y.value = !1;
524
532
  })
525
- }, null, 40, Ft))), 256)),
526
- e.value.style.chart.layout.labels.show ? (s(), i("g", Mt, [
533
+ }, null, 40, Rt))), 256)),
534
+ e.value.style.chart.layout.labels.show ? (s(), i("g", Nt, [
527
535
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("g", {
528
- onMouseenter: (g) => ke({
536
+ onMouseenter: (p) => we({
529
537
  datapoint: a,
530
538
  show: !0,
531
539
  seriesIndex: l
532
540
  }),
533
- onMouseleave: o[1] || (o[1] = (g) => {
541
+ onMouseleave: o[1] || (o[1] = (p) => {
534
542
  k.value = void 0, Y.value = !1;
535
543
  })
536
544
  }, [
537
- y.value.includes(a.id) ? p("", !0) : (s(), i("text", {
545
+ y.value.includes(a.id) ? g("", !0) : (s(), i("text", {
538
546
  key: 0,
539
- x: n.value.width / 2 - x.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
547
+ x: n.value.width / 2 - T.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
540
548
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
541
549
  "text-anchor": "end",
542
550
  "font-size": e.value.style.chart.layout.labels.fontSize,
543
551
  fill: e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value === l ? a.color : e.value.style.chart.layout.labels.color,
544
552
  "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)({
553
+ }, R(a.name ? a.name + ": " : "") + " " + R(e.value.style.chart.layout.labels.percentage.show ? r(V)({
546
554
  v: a.percentage,
547
555
  s: "%",
548
556
  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)(
557
+ }) : "") + " " + R(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
550
558
  e.value.style.chart.layout.labels.value.formatter,
551
559
  a.value,
552
560
  r(V)({
@@ -566,15 +574,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
566
574
  r: e.value.style.chart.layout.labels.roundingValue
567
575
  }),
568
576
  { datapoint: a, seriesIndex: l }
569
- )})` : ""}`), 9, Nt))
570
- ], 40, Rt))), 256))
571
- ])) : p("", !0),
577
+ )})` : ""}`), 9, Lt))
578
+ ], 40, Dt))), 256))
579
+ ])) : g("", !0),
572
580
  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)
576
- ])) : p("", !0),
577
- z.value ? p("", !0) : (s(), O(r(De), {
581
+ ], 14, Ot)) : g("", !0),
582
+ t.$slots.watermark ? (s(), i("div", Vt, [
583
+ v(t.$slots, "watermark", F(M({ isPrinting: r(he) || r(fe) })), void 0, !0)
584
+ ])) : g("", !0),
585
+ z.value ? g("", !0) : (s(), P(r(Le), {
578
586
  key: 6,
579
587
  config: {
580
588
  type: "onion",
@@ -586,22 +594,22 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
586
594
  }
587
595
  }
588
596
  }, null, 8, ["config"])),
589
- I("div", {
597
+ S("div", {
590
598
  ref_key: "chartLegend",
591
599
  ref: le
592
600
  }, [
593
- e.value.style.chart.legend.show ? (s(), O(wt, {
601
+ e.value.style.chart.legend.show ? (s(), P($t, {
594
602
  key: `legend_${ue.value}`,
595
603
  legendSet: d.value,
596
- config: We.value,
604
+ config: je.value,
597
605
  onClickMarker: o[2] || (o[2] = ({ legend: a }) => me(a.id))
598
606
  }, {
599
607
  item: f(({ legend: a }) => [
600
- I("div", {
608
+ S("div", {
601
609
  "data-cy-legend-item": "",
602
610
  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)
611
+ style: X(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
612
+ }, R(a.name ? a.name + ": " : "") + " " + R((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, zt)
605
613
  ]),
606
614
  _: 1
607
615
  }, 8, ["legendSet", "config"])) : v(t.$slots, "legend", {
@@ -616,8 +624,8 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
616
624
  dir: "auto"
617
625
  }, [
618
626
  v(t.$slots, "source", {}, void 0, !0)
619
- ], 512)) : p("", !0),
620
- Te(r(Le), {
627
+ ], 512)) : g("", !0),
628
+ Oe(r(Ve), {
621
629
  show: m.value.showTooltip && Y.value,
622
630
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
623
631
  color: e.value.style.chart.tooltip.color,
@@ -628,20 +636,20 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
628
636
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
629
637
  position: e.value.style.chart.tooltip.position,
630
638
  offsetY: e.value.style.chart.tooltip.offsetY,
631
- parent: R.value,
632
- content: E.value,
639
+ parent: x.value,
640
+ content: G.value,
633
641
  isFullscreen: A.value,
634
- isCustom: r(Pe)(e.value.style.chart.tooltip.customFormat)
642
+ isCustom: r(_e)(e.value.style.chart.tooltip.customFormat)
635
643
  }, {
636
644
  "tooltip-before": f(() => [
637
- v(t.$slots, "tooltip-before", S(F({ ...q.value })), void 0, !0)
645
+ v(t.$slots, "tooltip-before", F(M({ ...q.value })), void 0, !0)
638
646
  ]),
639
647
  "tooltip-after": f(() => [
640
- v(t.$slots, "tooltip-after", S(F({ ...q.value })), void 0, !0)
648
+ v(t.$slots, "tooltip-after", F(M({ ...q.value })), void 0, !0)
641
649
  ]),
642
650
  _: 3
643
651
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
644
- z.value ? (s(), O(r(Fe), {
652
+ z.value ? (s(), P(r(Me), {
645
653
  key: 8,
646
654
  hideDetails: "",
647
655
  config: {
@@ -658,7 +666,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
658
666
  }
659
667
  }, {
660
668
  content: f(() => [
661
- (s(), O(r(Me), {
669
+ (s(), P(r(Re), {
662
670
  key: `table_${re.value}`,
663
671
  colNames: B.value.colNames,
664
672
  head: B.value.head,
@@ -668,19 +676,19 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
668
676
  onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
669
677
  }, {
670
678
  th: f(({ th: a }) => [
671
- at(M(a), 1)
679
+ lt(R(a), 1)
672
680
  ]),
673
681
  td: f(({ td: a }) => [
674
- I("div", { innerHTML: a }, null, 8, Vt)
682
+ S("div", { innerHTML: a }, null, 8, Yt)
675
683
  ]),
676
684
  _: 1
677
685
  }, 8, ["colNames", "head", "body", "config", "title"]))
678
686
  ]),
679
687
  _: 1
680
- }, 8, ["config"])) : p("", !0)
681
- ], 46, Ct));
688
+ }, 8, ["config"])) : g("", !0)
689
+ ], 46, Tt));
682
690
  }
683
- }, Jt = /* @__PURE__ */ $t(zt, [["__scopeId", "data-v-3a76e3ea"]]);
691
+ }, Zt = /* @__PURE__ */ xt(Bt, [["__scopeId", "data-v-b59ee3e3"]]);
684
692
  export {
685
- Jt as default
693
+ Zt as default
686
694
  };