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,18 +1,19 @@
1
- import { defineAsyncComponent as I, useSlots as et, ref as i, computed as f, watch as tt, shallowRef as _e, onMounted as lt, onBeforeUnmount as ot, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as N, normalizeClass as U, createBlock as P, createCommentVNode as m, createElementVNode as T, createVNode as Q, createSlots as xe, withCtx as g, renderSlot as p, normalizeProps as R, guardReactiveProps as M, Fragment as Z, renderList as ee, mergeProps as at, createTextVNode as Oe, toDisplayString as H, nextTick as st } from "vue";
2
- import { u as nt, c as Ie, t as ut, p as A, a as rt, o as it, e as te, g as vt, b as ct, G as dt, d as Ne, f as S, X as pt, s as ht, w as gt, v as j, i as Pe, q as ft, r as yt, x as mt, y as bt } from "./index-CZNLCg7T.js";
3
- import { t as kt, u as Ct } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ae } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as wt } from "./usePrinter-ButWuZVm.js";
6
- import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
8
- import _t from "./Legend-DoxQwq_u.js";
9
- import xt from "./Title-BQLtfM0P.js";
10
- import { _ as Ot } from "./Shape-CrstrfQ9.js";
11
- import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["id"], Ft = ["stop-color"], Lt = ["stop-color"], Rt = { key: 1 }, Mt = ["stroke", "cx", "cy", "r", "fill"], Vt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], zt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Ut = ["cx", "cy", "r", "onMouseenter"], Wt = {
1
+ import { defineAsyncComponent as S, useSlots as tt, ref as i, computed as f, watch as lt, shallowRef as xe, onMounted as ot, onBeforeUnmount as at, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as N, normalizeClass as U, createBlock as P, createCommentVNode as m, createElementVNode as T, createVNode as Q, createSlots as Oe, withCtx as g, renderSlot as p, normalizeProps as M, guardReactiveProps as V, Fragment as Z, renderList as ee, mergeProps as st, createTextVNode as Ie, toDisplayString as H, nextTick as nt } from "vue";
2
+ import { u as ut, c as Se, t as rt, p as A, a as it, o as vt, e as te, g as ct, b as dt, G as pt, d as Ne, f as F, X as ht, s as gt, w as ft, v as j, i as Pe, q as yt, r as mt, x as bt, y as kt } from "./index-pPGk-uhD.js";
3
+ import { t as Ct, u as wt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ae } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as $t } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as _t } from "./useChartAccessibility-9icAAmYg.js";
8
+ import xt from "./Legend-Bxlv67uY.js";
9
+ import Ot from "./Title-B-2bV0SW.js";
10
+ import { _ as It } from "./Shape-DtFT5EJa.js";
11
+ import St from "./img-Y_hYz-ZC.js";
12
+ import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["id"], Rt = ["stop-color"], Mt = ["stop-color"], Vt = { key: 1 }, zt = ["stroke", "cx", "cy", "r", "fill"], Ut = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Et = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Wt = ["cx", "cy", "r", "onMouseenter"], Bt = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, Bt = ["onClick"], Et = { key: 0 }, Dt = { key: 1 }, Gt = ["innerHTML"], Ht = {
16
+ }, Dt = ["onClick"], Gt = { key: 0 }, Ht = { key: 1 }, jt = ["innerHTML"], Xt = {
16
17
  __name: "vue-ui-rings",
17
18
  props: {
18
19
  config: {
@@ -29,40 +30,40 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
29
30
  }
30
31
  },
31
32
  emits: ["selectLegend"],
32
- setup(Se, { expose: Fe, emit: Le }) {
33
- const Re = I(() => import("./vue-ui-accordion-CO4hmfuX.js")), Me = I(() => import("./DataTable-B6MXw9cG.js")), Ve = I(() => import("./PackageVersion-DCreTQN4.js")), ze = I(() => import("./PenAndPaper-BS60tkQN.js")), Ue = I(() => import("./vue-ui-skeleton-D9B8DY_k.js")), We = I(() => import("./Tooltip-5JmGL7sR.js")), Be = I(() => import("./UserOptions-DMGkAAIO.js")), { vue_ui_rings: Ee } = nt(), De = et(), b = Se, O = i(!1), W = f(() => !!b.dataset && b.dataset.length), w = i(Ie()), Ge = i(null), B = i(!1), X = i(""), $ = i(null), le = i(0), V = i(null), oe = i(null), ae = i(null), se = i(null), ne = i(null), ue = i(0), re = i(0), ie = i(0), e = f({
33
+ setup(Fe, { expose: Le, emit: Re }) {
34
+ const Me = S(() => import("./vue-ui-accordion-CVnA550V.js")), Ve = S(() => import("./DataTable-D0VYDhfx.js")), ze = S(() => import("./PackageVersion-5TR4ocqp.js")), Ue = S(() => import("./PenAndPaper-D6AqipIO.js")), Ee = S(() => import("./vue-ui-skeleton-DJPjyNYn.js")), We = S(() => import("./Tooltip-CoQnTnr-.js")), Be = S(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_rings: De } = ut(), Ge = tt(), b = Fe, O = i(!1), E = f(() => !!b.dataset && b.dataset.length), w = i(Se()), He = i(null), W = i(!1), X = i(""), $ = i(null), le = i(0), I = i(null), oe = i(null), ae = i(null), se = i(null), ne = i(null), ue = i(0), re = i(0), ie = i(0), e = f({
34
35
  get: () => pe(),
35
36
  set: (t) => t
36
- }), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = $t({ config: e.value }), { svgRef: de } = Tt({ config: e.value.style.chart.title });
37
+ }), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = Tt({ config: e.value }), { svgRef: de } = _t({ config: e.value.style.chart.title });
37
38
  function pe() {
38
39
  const t = Ae({
39
40
  userConfig: b.config,
40
- defaultConfig: Ee
41
+ defaultConfig: De
41
42
  });
42
43
  return t.theme ? {
43
44
  ...Ae({
44
- userConfig: rt.vue_ui_rings[t.theme] || b.config,
45
+ userConfig: it.vue_ui_rings[t.theme] || b.config,
45
46
  defaultConfig: t
46
47
  }),
47
- customPalette: ut[t.theme] || A
48
+ customPalette: rt[t.theme] || A
48
49
  } : t;
49
50
  }
50
- tt(() => b.config, (t) => {
51
+ lt(() => b.config, (t) => {
51
52
  e.value = pe(), q.value = !e.value.userOptions.showOnChartHover, he(), ue.value += 1, re.value += 1, ie.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
52
53
  }, { deep: !0 });
53
- const _ = _e(null), F = _e(null);
54
- lt(() => {
54
+ const _ = xe(null), L = xe(null);
55
+ ot(() => {
55
56
  he();
56
57
  });
57
58
  function he() {
58
- if (it(b.dataset) ? te({
59
+ if (vt(b.dataset) ? te({
59
60
  componentName: "VueUiRings",
60
61
  type: "dataset"
61
62
  }) : b.dataset.forEach((t, o) => {
62
63
  t.values.length || te({
63
64
  componentName: "VueUiRings",
64
65
  type: "dataset"
65
- }), vt({
66
+ }), ct({
66
67
  datasetObject: t,
67
68
  requiredAttributes: ["name", "values"]
68
69
  }).forEach((l) => {
@@ -74,9 +75,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
74
75
  });
75
76
  });
76
77
  }), e.value.responsive) {
77
- const t = kt(() => {
78
- const { width: o, height: l } = Ct({
79
- chart: V.value,
78
+ const t = Ct(() => {
79
+ const { width: o, height: l } = wt({
80
+ chart: I.value,
80
81
  title: e.value.style.chart.title.text ? oe.value : null,
81
82
  legend: e.value.style.chart.legend.show ? ae.value : null,
82
83
  source: se.value,
@@ -86,63 +87,63 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
86
87
  n.value.width = o, n.value.height = l;
87
88
  });
88
89
  });
89
- _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = V.value.parentNode, _.value.observe(F.value);
90
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = I.value.parentNode, _.value.observe(L.value);
90
91
  }
91
92
  setTimeout(() => {
92
93
  O.value = !0;
93
94
  }, 600);
94
95
  }
95
- ot(() => {
96
- _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
96
+ at(() => {
97
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
97
98
  });
98
- const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = wt({
99
+ const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = $t({
99
100
  elementId: `rings_${w.value}`,
100
101
  fileName: e.value.style.chart.title.text || "vue-ui-rings",
101
102
  options: e.value.userOptions.print
102
- }), He = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() => ct(e.value.customPalette)), k = i({
103
+ }), je = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() => dt(e.value.customPalette)), k = i({
103
104
  showTable: e.value.table.show,
104
105
  showTooltip: e.value.style.chart.tooltip.show
105
106
  }), n = i({
106
107
  height: 360,
107
108
  width: 360
108
- }), je = f(() => Math.min(n.value.height, n.value.width)), Xe = Le, y = i([]);
109
+ }), Xe = f(() => Math.min(n.value.height, n.value.width)), qe = Re, y = i([]);
109
110
  function Y(t) {
110
- y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Xe("selectLegend", h.value.map((o) => ({
111
+ y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), qe("selectLegend", h.value.map((o) => ({
111
112
  name: o.name,
112
113
  color: o.color,
113
114
  value: o.value
114
115
  })));
115
116
  }
116
- const qe = f(() => Math.max(
117
- ...E.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
117
+ const Ye = f(() => Math.max(
118
+ ...B.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
118
119
  ));
119
120
  function ke(t) {
120
- return t / qe.value;
121
+ return t / Ye.value;
121
122
  }
122
- const E = f(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
123
- const r = dt(t).reduce((v, z) => v + z, 0);
123
+ const B = f(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
124
+ const r = pt(t).reduce((v, z) => v + z, 0);
124
125
  return {
125
126
  name: o,
126
127
  color: l || Ne(l) || be.value[a] || A[a] || A[a % A.length],
127
128
  value: r,
128
- proportion: r / b.dataset.map((v) => (v.values || []).reduce((z, Ze) => z + Ze, 0)).reduce((v, z) => v + z, 0),
129
- uid: Ie(),
129
+ proportion: r / b.dataset.map((v) => (v.values || []).reduce((z, et) => z + et, 0)).reduce((v, z) => v + z, 0),
130
+ uid: Se(),
130
131
  absoluteIndex: a
131
132
  };
132
- })), Ce = f(() => E.value.map((t) => ({
133
+ })), Ce = f(() => B.value.map((t) => ({
133
134
  ...t,
134
135
  shape: "circle",
135
136
  opacity: y.value.includes(t.uid) ? 0.5 : 1,
136
137
  segregate: () => Y(t.uid),
137
138
  isSegregated: y.value.includes(t.uid)
138
- })).toSorted((t, o) => o.value - t.value)), Ye = f(() => ({
139
+ })).toSorted((t, o) => o.value - t.value)), Je = f(() => ({
139
140
  cy: "rings-div-legend",
140
141
  backgroundColor: e.value.style.chart.legend.backgroundColor,
141
142
  color: e.value.style.chart.legend.color,
142
143
  fontSize: e.value.style.chart.legend.fontSize,
143
144
  paddingBottom: 12,
144
145
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
145
- })), C = f(() => E.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), h = f(() => E.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, v) => ({
146
+ })), C = f(() => B.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), h = f(() => B.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, v) => ({
146
147
  absoluteIndex: r,
147
148
  uid: a,
148
149
  name: t,
@@ -152,7 +153,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
152
153
  percentage: o / C.value * 100,
153
154
  strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
154
155
  })).toSorted((t, o) => o.value - t.value));
155
- function Je() {
156
+ function Ke() {
156
157
  return h.value.map(
157
158
  ({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
158
159
  name: t,
@@ -163,8 +164,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
163
164
  })
164
165
  );
165
166
  }
166
- const d = f(() => je.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
167
- function Ke(t, o) {
167
+ const d = f(() => Xe.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
168
+ function Qe(t, o) {
168
169
  if (y.value.length === b.dataset.length) return;
169
170
  J.value = {
170
171
  datapoint: o,
@@ -173,7 +174,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
173
174
  config: e.value
174
175
  }, $.value = t;
175
176
  const l = h.value[t], a = e.value.style.chart.tooltip.customFormat;
176
- if (mt(a) && bt(() => a({
177
+ if (bt(a) && kt(() => a({
177
178
  seriesIndex: t,
178
179
  datapoint: o,
179
180
  series: h.value,
@@ -187,10 +188,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
187
188
  });
188
189
  else {
189
190
  let r = "";
190
- r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${De.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Pe(
191
+ r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${Ge.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Pe(
191
192
  e.value.style.chart.layout.labels.dataLabels.formatter,
192
193
  l.value,
193
- S({
194
+ F({
194
195
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
195
196
  v: l.value,
196
197
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -198,17 +199,17 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
198
199
  }),
199
200
  { datapoint: o, seriesIndex: t }
200
201
  )}
201
- </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${S({
202
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${F({
202
203
  v: l.value / C.value * 100,
203
204
  s: "%",
204
205
  r: e.value.style.chart.tooltip.roundingPercentage
205
- })})</span></div>` : r += `<b>${S({
206
+ })})</span></div>` : r += `<b>${F({
206
207
  v: l.value / C.value * 100,
207
208
  s: "%",
208
209
  r: e.value.style.chart.tooltip.roundingPercentage
209
210
  })}</b></div>`), X.value = r;
210
211
  }
211
- B.value = !0;
212
+ W.value = !0;
212
213
  }
213
214
  const x = f(() => {
214
215
  const t = h.value.map((l) => ({
@@ -219,14 +220,14 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
219
220
  }), D = f(() => {
220
221
  const t = [
221
222
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
222
- S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
223
+ F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
223
224
  "100%"
224
225
  ], o = x.value.head.map((r, v) => [
225
226
  {
226
227
  color: r.color,
227
228
  name: r.name
228
229
  },
229
- S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
230
+ F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
230
231
  isNaN(x.value.body[v] / C.value) ? "-" : (x.value.body[v] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
231
232
  ]), l = {
232
233
  th: {
@@ -253,47 +254,54 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
253
254
  };
254
255
  });
255
256
  function we(t = null) {
256
- st(() => {
257
+ nt(() => {
257
258
  const o = x.value.head.map((r, v) => [[
258
259
  r.name
259
- ], [x.value.body[v]], [isNaN(x.value.body[v] / C.value) ? "-" : x.value.body[v] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = ft(l);
260
- t ? t(a) : yt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
260
+ ], [x.value.body[v]], [isNaN(x.value.body[v] / C.value) ? "-" : x.value.body[v] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = yt(l);
261
+ t ? t(a) : mt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
261
262
  });
262
263
  }
263
- const L = i(!1);
264
- function Qe(t) {
265
- L.value = t, le.value += 1;
264
+ const R = i(!1);
265
+ function $e(t) {
266
+ R.value = t, le.value += 1;
266
267
  }
267
- function $e() {
268
+ function Te() {
268
269
  k.value.showTable = !k.value.showTable;
269
270
  }
270
- function Te() {
271
+ function _e() {
271
272
  k.value.showTooltip = !k.value.showTooltip;
272
273
  }
273
274
  const G = i(!1);
274
275
  function K() {
275
276
  G.value = !G.value;
276
277
  }
277
- return Fe({
278
- getData: Je,
278
+ async function Ze({ scale: t = 2 } = {}) {
279
+ if (!I.value) return;
280
+ const { imageUri: o, base64: l } = await St({ domElement: I.value, base64: !0, img: !0, scale: t });
281
+ return { imageUri: o, base64: l };
282
+ }
283
+ return Le({
284
+ getData: Ke,
285
+ getImage: Ze,
279
286
  generatePdf: ye,
280
287
  generateCsv: we,
281
288
  generateImage: me,
282
- toggleTable: $e,
283
- toggleTooltip: Te,
284
- toggleAnnotator: K
289
+ toggleTable: Te,
290
+ toggleTooltip: _e,
291
+ toggleAnnotator: K,
292
+ toggleFullscreen: $e
285
293
  }), (t, o) => (u(), c("div", {
286
294
  ref_key: "ringsChart",
287
- ref: V,
288
- class: U(`vue-ui-rings ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
295
+ ref: I,
296
+ class: U(`vue-ui-rings ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
289
297
  style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
290
298
  id: `rings_${w.value}`,
291
299
  onMouseleave: o[3] || (o[3] = (l) => {
292
- $.value = null, B.value = !1, s(ve)(!1);
300
+ $.value = null, W.value = !1, s(ve)(!1);
293
301
  }),
294
302
  onMouseenter: o[4] || (o[4] = () => s(ve)(!0))
295
303
  }, [
296
- e.value.userOptions.buttons.annotator ? (u(), P(s(ze), {
304
+ e.value.userOptions.buttons.annotator ? (u(), P(s(Ue), {
297
305
  key: 0,
298
306
  svgRef: s(de),
299
307
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -301,7 +309,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
301
309
  active: G.value,
302
310
  onClose: K
303
311
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
304
- He.value ? (u(), c("div", {
312
+ je.value ? (u(), c("div", {
305
313
  key: 1,
306
314
  ref_key: "noTitle",
307
315
  ref: ne,
@@ -314,7 +322,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
314
322
  ref: oe,
315
323
  style: "width:100%;background:transparent"
316
324
  }, [
317
- (u(), P(xt, {
325
+ (u(), P(Ot, {
318
326
  key: `title_${ue.value}`,
319
327
  config: {
320
328
  title: {
@@ -328,9 +336,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
328
336
  }
329
337
  }, null, 8, ["config"]))
330
338
  ], 512)) : m("", !0),
331
- e.value.userOptions.show && W.value && (s(ce) || s(q)) ? (u(), P(s(Be), {
339
+ e.value.userOptions.show && E.value && (s(ce) || s(q)) ? (u(), P(s(Be), {
332
340
  ref_key: "details",
333
- ref: Ge,
341
+ ref: He,
334
342
  key: `user_options_${le.value}`,
335
343
  backgroundColor: e.value.style.chart.backgroundColor,
336
344
  color: e.value.style.chart.color,
@@ -344,28 +352,29 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
344
352
  hasTable: e.value.userOptions.buttons.table,
345
353
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
346
354
  isTooltip: k.value.showTooltip,
347
- isFullscreen: L.value,
355
+ isFullscreen: R.value,
348
356
  titles: { ...e.value.userOptions.buttonTitles },
349
- chartElement: V.value,
357
+ chartElement: I.value,
350
358
  position: e.value.userOptions.position,
351
359
  hasAnnotator: e.value.userOptions.buttons.annotator,
352
360
  isAnnotation: G.value,
353
361
  callbacks: e.value.userOptions.callbacks,
354
- onToggleFullscreen: Qe,
362
+ printScale: e.value.userOptions.print.scale,
363
+ onToggleFullscreen: $e,
355
364
  onGeneratePdf: s(ye),
356
365
  onGenerateCsv: we,
357
366
  onGenerateImage: s(me),
358
- onToggleTable: $e,
359
- onToggleTooltip: Te,
367
+ onToggleTable: Te,
368
+ onToggleTooltip: _e,
360
369
  onToggleAnnotator: K,
361
370
  style: N({
362
371
  visibility: s(ce) ? s(q) ? "visible" : "hidden" : "visible"
363
372
  })
364
- }, xe({ _: 2 }, [
373
+ }, Oe({ _: 2 }, [
365
374
  t.$slots.menuIcon ? {
366
375
  name: "menuIcon",
367
376
  fn: g(({ isOpen: l, color: a }) => [
368
- p(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
377
+ p(t.$slots, "menuIcon", M(V({ isOpen: l, color: a })), void 0, !0)
369
378
  ]),
370
379
  key: "0"
371
380
  } : void 0,
@@ -407,28 +416,28 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
407
416
  t.$slots.optionFullscreen ? {
408
417
  name: "optionFullscreen",
409
418
  fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
410
- p(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
419
+ p(t.$slots, "optionFullscreen", M(V({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
411
420
  ]),
412
421
  key: "6"
413
422
  } : void 0,
414
423
  t.$slots.optionAnnotator ? {
415
424
  name: "optionAnnotator",
416
425
  fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
417
- p(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
426
+ p(t.$slots, "optionAnnotator", M(V({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
418
427
  ]),
419
428
  key: "7"
420
429
  } : void 0
421
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
422
- W.value ? (u(), c("svg", {
430
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
431
+ E.value ? (u(), c("svg", {
423
432
  key: 4,
424
433
  ref_key: "svgRef",
425
434
  ref: de,
426
- xmlns: s(pt),
427
- class: U({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
435
+ xmlns: s(ht),
436
+ class: U({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
428
437
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
429
438
  style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
430
439
  }, [
431
- Q(s(Ve)),
440
+ Q(s(ze)),
432
441
  t.$slots["chart-background"] ? (u(), c("foreignObject", {
433
442
  key: 0,
434
443
  x: 0,
@@ -440,7 +449,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
440
449
  }
441
450
  }, [
442
451
  p(t.$slots, "chart-background", {}, void 0, !0)
443
- ], 8, At)) : m("", !0),
452
+ ], 8, Ft)) : m("", !0),
444
453
  T("defs", null, [
445
454
  (u(!0), c(Z, null, ee(h.value, (l, a) => (u(), c("radialGradient", {
446
455
  cx: "50%",
@@ -452,17 +461,17 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
452
461
  }, [
453
462
  T("stop", {
454
463
  offset: "0%",
455
- "stop-color": s(ht)(s(gt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
456
- }, null, 8, Ft),
464
+ "stop-color": s(gt)(s(ft)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
465
+ }, null, 8, Rt),
457
466
  T("stop", {
458
467
  offset: "100%",
459
468
  "stop-color": l.color
460
- }, null, 8, Lt)
461
- ], 8, St))), 256))
469
+ }, null, 8, Mt)
470
+ ], 8, Lt))), 256))
462
471
  ]),
463
- t.$slots.pattern ? (u(), c("g", Rt, [
472
+ t.$slots.pattern ? (u(), c("g", Vt, [
464
473
  (u(!0), c(Z, null, ee(h.value, (l) => (u(), c("defs", null, [
465
- p(t.$slots, "pattern", at({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
474
+ p(t.$slots, "pattern", st({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
466
475
  ]))), 256))
467
476
  ])) : m("", !0),
468
477
  (u(!0), c(Z, null, ee(h.value, (l, a) => (u(), c("g", null, [
@@ -478,7 +487,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
478
487
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
479
488
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
480
489
  fill: e.value.style.chart.layout.rings.gradient.underlayerColor
481
- }, null, 14, Mt),
490
+ }, null, 14, zt),
482
491
  T("circle", {
483
492
  class: U({
484
493
  "vue-ui-rings-item": O.value && e.value.useCssAnimation,
@@ -493,7 +502,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
493
502
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
494
503
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
495
504
  fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${a})` : l.color
496
- }, null, 14, Vt),
505
+ }, null, 14, Ut),
497
506
  t.$slots.pattern ? (u(), c("circle", {
498
507
  key: 0,
499
508
  class: U({
@@ -509,25 +518,25 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
509
518
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
510
519
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
511
520
  fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
512
- }, null, 14, zt)) : m("", !0),
521
+ }, null, 14, Et)) : m("", !0),
513
522
  T("circle", {
514
523
  stroke: "none",
515
524
  cx: n.value.width / 2,
516
525
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
517
526
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
518
527
  fill: "transparent",
519
- onMouseenter: (r) => Ke(a, l),
528
+ onMouseenter: (r) => Qe(a, l),
520
529
  onMouseleave: o[0] || (o[0] = (r) => {
521
- $.value = null, B.value = !1;
530
+ $.value = null, W.value = !1;
522
531
  })
523
- }, null, 40, Ut)
532
+ }, null, 40, Wt)
524
533
  ]))), 256)),
525
534
  p(t.$slots, "svg", { svg: n.value }, void 0, !0)
526
- ], 14, Pt)) : m("", !0),
527
- t.$slots.watermark ? (u(), c("div", Wt, [
528
- p(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
535
+ ], 14, At)) : m("", !0),
536
+ t.$slots.watermark ? (u(), c("div", Bt, [
537
+ p(t.$slots, "watermark", M(V({ isPrinting: s(ge) || s(fe) })), void 0, !0)
529
538
  ])) : m("", !0),
530
- W.value ? m("", !0) : (u(), P(s(Ue), {
539
+ E.value ? m("", !0) : (u(), P(s(Ee), {
531
540
  key: 6,
532
541
  config: {
533
542
  type: "rings",
@@ -543,21 +552,21 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
543
552
  ref_key: "chartLegend",
544
553
  ref: ae
545
554
  }, [
546
- e.value.style.chart.legend.show ? (u(), P(_t, {
555
+ e.value.style.chart.legend.show ? (u(), P(xt, {
547
556
  key: `legend_${ie.value}`,
548
557
  legendSet: Ce.value,
549
- config: Ye.value,
558
+ config: Je.value,
550
559
  onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
551
- }, xe({
560
+ }, Oe({
552
561
  item: g(({ legend: l, index: a }) => [
553
562
  T("div", {
554
563
  onClick: (r) => Y(l.uid),
555
564
  style: N(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
556
565
  }, [
557
- Oe(H(l.name) + ": " + H(s(Pe)(
566
+ Ie(H(l.name) + ": " + H(s(Pe)(
558
567
  e.value.style.chart.layout.labels.dataLabels.formatter,
559
568
  l.value,
560
- s(S)({
569
+ s(F)({
561
570
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
562
571
  v: l.value,
563
572
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -565,19 +574,19 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
565
574
  }),
566
575
  { datapoint: l, seriesIndex: a }
567
576
  )) + " ", 1),
568
- y.value.includes(l.uid) ? (u(), c("span", Dt, " ( - % ) ")) : (u(), c("span", Et, " (" + H(isNaN(l.value / C.value) ? "-" : s(S)({
577
+ y.value.includes(l.uid) ? (u(), c("span", Ht, " ( - % ) ")) : (u(), c("span", Gt, " (" + H(isNaN(l.value / C.value) ? "-" : s(F)({
569
578
  v: l.value / C.value * 100,
570
579
  s: "%",
571
580
  r: e.value.style.chart.legend.roundingPercentage
572
581
  })) + ") ", 1))
573
- ], 12, Bt)
582
+ ], 12, Dt)
574
583
  ]),
575
584
  _: 2
576
585
  }, [
577
586
  t.$slots.pattern ? {
578
587
  name: "legend-pattern",
579
588
  fn: g(({ legend: l, index: a }) => [
580
- Q(Ot, {
589
+ Q(It, {
581
590
  shape: l.shape,
582
591
  radius: 30,
583
592
  stroke: "none",
@@ -601,7 +610,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
601
610
  p(t.$slots, "source", {}, void 0, !0)
602
611
  ], 512)) : m("", !0),
603
612
  Q(s(We), {
604
- show: k.value.showTooltip && B.value && y.value.length < b.dataset.length,
613
+ show: k.value.showTooltip && W.value && y.value.length < b.dataset.length,
605
614
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
606
615
  color: e.value.style.chart.tooltip.color,
607
616
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -611,20 +620,20 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
611
620
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
612
621
  position: e.value.style.chart.tooltip.position,
613
622
  offsetY: e.value.style.chart.tooltip.offsetY,
614
- parent: V.value,
623
+ parent: I.value,
615
624
  content: X.value,
616
- isFullscreen: L.value,
625
+ isFullscreen: R.value,
617
626
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
618
627
  }, {
619
628
  "tooltip-before": g(() => [
620
- p(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
629
+ p(t.$slots, "tooltip-before", M(V({ ...J.value })), void 0, !0)
621
630
  ]),
622
631
  "tooltip-after": g(() => [
623
- p(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
632
+ p(t.$slots, "tooltip-after", M(V({ ...J.value })), void 0, !0)
624
633
  ]),
625
634
  _: 3
626
635
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
627
- W.value ? (u(), P(s(Re), {
636
+ E.value ? (u(), P(s(Me), {
628
637
  key: 8,
629
638
  hideDetails: "",
630
639
  config: {
@@ -641,7 +650,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
641
650
  }
642
651
  }, {
643
652
  content: g(() => [
644
- (u(), P(s(Me), {
653
+ (u(), P(s(Ve), {
645
654
  key: `table_${re.value}`,
646
655
  colNames: D.value.colNames,
647
656
  head: D.value.head,
@@ -654,19 +663,19 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["i
654
663
  T("div", {
655
664
  innerHTML: l,
656
665
  style: { display: "flex", "align-items": "center" }
657
- }, null, 8, Gt)
666
+ }, null, 8, jt)
658
667
  ]),
659
668
  td: g(({ td: l }) => [
660
- Oe(H(l.name || l), 1)
669
+ Ie(H(l.name || l), 1)
661
670
  ]),
662
671
  _: 1
663
672
  }, 8, ["colNames", "head", "body", "config", "title"]))
664
673
  ]),
665
674
  _: 1
666
675
  }, 8, ["config"])) : m("", !0)
667
- ], 46, Nt));
676
+ ], 46, Pt));
668
677
  }
669
- }, ol = /* @__PURE__ */ It(Ht, [["__scopeId", "data-v-f7048a2c"]]);
678
+ }, nl = /* @__PURE__ */ Nt(Xt, [["__scopeId", "data-v-ca1ab522"]]);
670
679
  export {
671
- ol as default
680
+ nl as default
672
681
  };