vue-data-ui 2.16.5 → 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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -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 g, 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-CZNLCg7T.js";
3
- import { t as gt, u as pt } from "./useResponsive-DfdjqQps.js";
4
- import { u as _e } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as yt } from "./usePrinter-ButWuZVm.js";
6
- import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as bt } from "./useChartAccessibility-9icAAmYg.js";
8
- import kt from "./Title-BQLtfM0P.js";
9
- import wt from "./Legend-DoxQwq_u.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-CO4hmfuX.js")), Me = T(() => import("./DataTable-B6MXw9cG.js")), Re = T(() => import("./PackageVersion-DCreTQN4.js")), Ne = T(() => import("./PenAndPaper-BS60tkQN.js")), De = T(() => import("./vue-ui-skeleton-D9B8DY_k.js")), Le = T(() => import("./Tooltip-5JmGL7sR.js")), Ve = T(() => import("./UserOptions-DMGkAAIO.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: ge, generateImage: pe } = 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
- const o = gt(() => {
79
- const { width: a, height: l } = pt({
80
- chart: R.value,
79
+ const o = pt(() => {
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,30 +150,30 @@ 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
+ function Je(t, o) {
176
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}`,
@@ -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, p = o.concat([a]).concat(l), C = dt(p);
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,
@@ -242,13 +243,13 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
242
243
  }, Y.value = a;
243
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,
@@ -266,45 +267,52 @@ 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>${p}</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,
288
+ return Se({
289
+ getData: Qe,
290
+ getImage: Ze,
284
291
  generatePdf: ge,
285
292
  generateCsv: be,
286
293
  generateImage: pe,
287
- toggleTable: we,
288
- toggleTooltip: $e,
289
- toggleAnnotator: J
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
314
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
307
- Be.value ? (s(), i("div", {
315
+ Ue.value ? (s(), i("div", {
308
316
  key: 1,
309
317
  ref_key: "noTitle",
310
318
  ref: ne,
@@ -317,7 +325,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
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: {
@@ -331,15 +339,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
331
339
  }
332
340
  }, null, 8, ["config"]))
333
341
  ], 512)) : g("", !0),
334
- e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), O(r(Ve), {
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,26 +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
- onToggleFullscreen: Qe,
365
+ printScale: e.value.userOptions.print.scale,
366
+ onToggleFullscreen: ke,
358
367
  onGeneratePdf: r(ge),
359
368
  onGenerateCsv: be,
360
369
  onGenerateImage: r(pe),
361
- onToggleTable: we,
362
- onToggleTooltip: $e,
370
+ onToggleTable: $e,
371
+ onToggleTooltip: Ce,
363
372
  onToggleAnnotator: J,
364
- style: U({
373
+ style: X({
365
374
  visibility: r(ce) ? r(H) ? "visible" : "hidden" : "visible"
366
375
  })
367
- }, tt({ _: 2 }, [
376
+ }, at({ _: 2 }, [
368
377
  t.$slots.menuIcon ? {
369
378
  name: "menuIcon",
370
379
  fn: f(({ isOpen: a, color: l }) => [
371
- 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)
372
381
  ]),
373
382
  key: "0"
374
383
  } : void 0,
@@ -410,28 +419,28 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
410
419
  t.$slots.optionFullscreen ? {
411
420
  name: "optionFullscreen",
412
421
  fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
413
- 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)
414
423
  ]),
415
424
  key: "6"
416
425
  } : void 0,
417
426
  t.$slots.optionAnnotator ? {
418
427
  name: "optionAnnotator",
419
428
  fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
420
- 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)
421
430
  ]),
422
431
  key: "7"
423
432
  } : void 0
424
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !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),
425
434
  z.value ? (s(), i("svg", {
426
435
  key: 4,
427
436
  ref_key: "svgRef",
428
437
  ref: ve,
429
- xmlns: r(vt),
430
- 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 }),
431
440
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
432
- 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}`)
433
442
  }, [
434
- Te(r(Re)),
443
+ Oe(r(Ne)),
435
444
  t.$slots["chart-background"] ? (s(), i("foreignObject", {
436
445
  key: 0,
437
446
  x: 0,
@@ -443,77 +452,77 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
443
452
  }
444
453
  }, [
445
454
  v(t.$slots, "chart-background", {}, void 0, !0)
446
- ], 8, Tt)) : g("", !0),
455
+ ], 8, Pt)) : g("", !0),
447
456
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
448
457
  cx: c.value.centerX,
449
458
  cy: c.value.centerY,
450
459
  r: a.radius <= 0 ? 1e-4 : a.radius,
451
460
  stroke: e.value.style.chart.layout.gutter.color,
452
- "stroke-width": x.value.gutter,
461
+ "stroke-width": T.value.gutter,
453
462
  fill: "none",
454
463
  "stroke-dasharray": a.path.bgDashArray,
455
464
  "stroke-dashoffset": a.path.fullOffset,
456
465
  "stroke-linecap": "round",
457
- 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 }),
458
467
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
459
- }, null, 10, Ot))), 256)),
468
+ }, null, 10, _t))), 256)),
460
469
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
461
470
  cx: c.value.centerX,
462
471
  cy: c.value.centerY,
463
472
  r: a.radius < 0 ? 1e-4 : a.radius,
464
473
  stroke: `${a.color}`,
465
- "stroke-width": x.value.track,
474
+ "stroke-width": T.value.track,
466
475
  fill: "none",
467
476
  "stroke-dasharray": a.path.dashArray,
468
477
  "stroke-dashoffset": a.path.dashOffset,
469
- 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 }),
470
479
  "stroke-linecap": "round",
471
480
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
472
- }, null, 10, Pt))), 256)),
473
- I("defs", null, [
474
- I("filter", {
475
- id: `blur_${P.value}`,
481
+ }, null, 10, It))), 256)),
482
+ S("defs", null, [
483
+ S("filter", {
484
+ id: `blur_${_.value}`,
476
485
  x: "-50%",
477
486
  y: "-50%",
478
487
  width: "200%",
479
488
  height: "200%"
480
489
  }, [
481
- I("feGaussianBlur", {
490
+ S("feGaussianBlur", {
482
491
  in: "SourceGraphic",
483
492
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
484
- }, null, 8, At)
485
- ], 8, _t)
493
+ }, null, 8, St)
494
+ ], 8, At)
486
495
  ]),
487
496
  e.value.style.chart.useGradient ? (s(), i("g", {
488
497
  key: 1,
489
- filter: `url(#blur_${P.value})`
498
+ filter: `url(#blur_${_.value})`
490
499
  }, [
491
500
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
492
501
  cx: c.value.centerX,
493
502
  cy: c.value.centerY,
494
503
  r: a.radius <= 0 ? 1e-4 : a.radius,
495
504
  stroke: "white",
496
- "stroke-width": x.value.track / 3,
505
+ "stroke-width": T.value.track / 3,
497
506
  fill: "none",
498
507
  "stroke-linecap": "round",
499
508
  "stroke-dasharray": a.path.dashArray,
500
509
  "stroke-dashoffset": a.path.dashOffset,
501
510
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
502
- }, null, 8, St))), 256))
503
- ], 8, It)) : g("", !0),
511
+ }, null, 8, Mt))), 256))
512
+ ], 8, Ft)) : g("", !0),
504
513
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
505
514
  cx: c.value.centerX,
506
515
  cy: c.value.centerY,
507
516
  r: a.radius <= 0 ? 1e-4 : a.radius,
508
517
  stroke: "transparent",
509
- "stroke-width": Math.max(x.value.track, x.value.gutter),
518
+ "stroke-width": Math.max(T.value.track, T.value.gutter),
510
519
  fill: "none",
511
520
  "stroke-dasharray": a.path.bgDashArray,
512
521
  "stroke-dashoffset": a.path.fullOffset,
513
522
  "stroke-linecap": "round",
514
523
  class: "vue-ui-onion-path",
515
524
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
516
- onMouseenter: (p) => ke({
525
+ onMouseenter: (p) => we({
517
526
  datapoint: a,
518
527
  show: !0,
519
528
  seriesIndex: l
@@ -521,10 +530,10 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
521
530
  onMouseleave: o[0] || (o[0] = (p) => {
522
531
  k.value = void 0, Y.value = !1;
523
532
  })
524
- }, null, 40, Ft))), 256)),
525
- 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, [
526
535
  (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("g", {
527
- onMouseenter: (p) => ke({
536
+ onMouseenter: (p) => we({
528
537
  datapoint: a,
529
538
  show: !0,
530
539
  seriesIndex: l
@@ -535,17 +544,17 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
535
544
  }, [
536
545
  y.value.includes(a.id) ? g("", !0) : (s(), i("text", {
537
546
  key: 0,
538
- 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,
539
548
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
540
549
  "text-anchor": "end",
541
550
  "font-size": e.value.style.chart.layout.labels.fontSize,
542
551
  fill: e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value === l ? a.color : e.value.style.chart.layout.labels.color,
543
552
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
544
- }, 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)({
545
554
  v: a.percentage,
546
555
  s: "%",
547
556
  r: e.value.style.chart.layout.labels.roundingPercentage
548
- }) : "") + " " + 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)(
549
558
  e.value.style.chart.layout.labels.value.formatter,
550
559
  a.value,
551
560
  r(V)({
@@ -565,15 +574,15 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
565
574
  r: e.value.style.chart.layout.labels.roundingValue
566
575
  }),
567
576
  { datapoint: a, seriesIndex: l }
568
- )})` : ""}`), 9, Nt))
569
- ], 40, Rt))), 256))
577
+ )})` : ""}`), 9, Lt))
578
+ ], 40, Dt))), 256))
570
579
  ])) : g("", !0),
571
580
  v(t.$slots, "svg", { svg: n.value }, void 0, !0)
572
- ], 14, xt)) : g("", !0),
573
- t.$slots.watermark ? (s(), i("div", Dt, [
574
- v(t.$slots, "watermark", S(F({ isPrinting: r(he) || r(fe) })), void 0, !0)
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)
575
584
  ])) : g("", !0),
576
- z.value ? g("", !0) : (s(), O(r(De), {
585
+ z.value ? g("", !0) : (s(), P(r(Le), {
577
586
  key: 6,
578
587
  config: {
579
588
  type: "onion",
@@ -585,22 +594,22 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
585
594
  }
586
595
  }
587
596
  }, null, 8, ["config"])),
588
- I("div", {
597
+ S("div", {
589
598
  ref_key: "chartLegend",
590
599
  ref: le
591
600
  }, [
592
- e.value.style.chart.legend.show ? (s(), O(wt, {
601
+ e.value.style.chart.legend.show ? (s(), P($t, {
593
602
  key: `legend_${ue.value}`,
594
603
  legendSet: d.value,
595
- config: We.value,
604
+ config: je.value,
596
605
  onClickMarker: o[2] || (o[2] = ({ legend: a }) => me(a.id))
597
606
  }, {
598
607
  item: f(({ legend: a }) => [
599
- I("div", {
608
+ S("div", {
600
609
  "data-cy-legend-item": "",
601
610
  onClick: (l) => a.segregate(),
602
- style: U(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
603
- }, 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)
604
613
  ]),
605
614
  _: 1
606
615
  }, 8, ["legendSet", "config"])) : v(t.$slots, "legend", {
@@ -616,7 +625,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
616
625
  }, [
617
626
  v(t.$slots, "source", {}, void 0, !0)
618
627
  ], 512)) : g("", !0),
619
- Te(r(Le), {
628
+ Oe(r(Ve), {
620
629
  show: m.value.showTooltip && Y.value,
621
630
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
622
631
  color: e.value.style.chart.tooltip.color,
@@ -627,20 +636,20 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
627
636
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
628
637
  position: e.value.style.chart.tooltip.position,
629
638
  offsetY: e.value.style.chart.tooltip.offsetY,
630
- parent: R.value,
631
- content: E.value,
639
+ parent: x.value,
640
+ content: G.value,
632
641
  isFullscreen: A.value,
633
- isCustom: r(Pe)(e.value.style.chart.tooltip.customFormat)
642
+ isCustom: r(_e)(e.value.style.chart.tooltip.customFormat)
634
643
  }, {
635
644
  "tooltip-before": f(() => [
636
- 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)
637
646
  ]),
638
647
  "tooltip-after": f(() => [
639
- 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)
640
649
  ]),
641
650
  _: 3
642
651
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
643
- z.value ? (s(), O(r(Fe), {
652
+ z.value ? (s(), P(r(Me), {
644
653
  key: 8,
645
654
  hideDetails: "",
646
655
  config: {
@@ -657,7 +666,7 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
657
666
  }
658
667
  }, {
659
668
  content: f(() => [
660
- (s(), O(r(Me), {
669
+ (s(), P(r(Re), {
661
670
  key: `table_${re.value}`,
662
671
  colNames: B.value.colNames,
663
672
  head: B.value.head,
@@ -667,19 +676,19 @@ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["c
667
676
  onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
668
677
  }, {
669
678
  th: f(({ th: a }) => [
670
- at(M(a), 1)
679
+ lt(R(a), 1)
671
680
  ]),
672
681
  td: f(({ td: a }) => [
673
- I("div", { innerHTML: a }, null, 8, Vt)
682
+ S("div", { innerHTML: a }, null, 8, Yt)
674
683
  ]),
675
684
  _: 1
676
685
  }, 8, ["colNames", "head", "body", "config", "title"]))
677
686
  ]),
678
687
  _: 1
679
688
  }, 8, ["config"])) : g("", !0)
680
- ], 46, Ct));
689
+ ], 46, Tt));
681
690
  }
682
- }, Jt = /* @__PURE__ */ $t(zt, [["__scopeId", "data-v-33f77065"]]);
691
+ }, Zt = /* @__PURE__ */ xt(Bt, [["__scopeId", "data-v-b59ee3e3"]]);
683
692
  export {
684
- Jt as default
693
+ Zt as default
685
694
  };