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,20 +1,21 @@
1
- import { defineAsyncComponent as E, computed as $, ref as h, watch as lt, onMounted as at, nextTick as ot, shallowRef as st, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as U, createBlock as R, createCommentVNode as m, createVNode as ut, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as g, Fragment as T, renderList as O, toDisplayString as I, withDirectives as nt, vShow as rt, createTextVNode as ne } from "vue";
2
- import { u as Et, c as Ut, t as Rt, p as Ce, a as Bt, G as D, o as Gt, e as W, b as Yt, d as Xt, m as _e, f as F, X as Wt, s as qt, L as Ht, k as Te, n as q, i as K, x as it, q as Jt, r as Kt, y as Qt, v as Oe, T as dt } from "./index-DvIXJm6t.js";
3
- import { t as Zt, u as jt } from "./useResponsive-DfdjqQps.js";
4
- import { u as ct } from "./useNestedProp-DrYHm61t.js";
5
- import { u as el } from "./usePrinter-CWnXbGMb.js";
6
- import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
8
- import al from "./Title-Gi81VwUM.js";
9
- import ol from "./Legend-nBXoxXJH.js";
10
- import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["id"], dl = ["offset", "stop-color"], cl = ["offset", "stop-opacity"], vl = ["id"], hl = ["id"], fl = ["id"], pl = ["flood-color"], yl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "fill", "stroke", "stroke-width"], gl = { key: 1 }, ml = ["d", "fill"], wl = { key: 2 }, kl = ["x", "y", "font-size", "font-weight", "fill"], $l = { key: 3 }, Ll = ["filter"], xl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], _l = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["d", "fill", "onMouseenter", "onClick"], Ol = {
1
+ import { defineAsyncComponent as U, computed as $, ref as h, watch as at, onMounted as ot, nextTick as st, shallowRef as ut, onBeforeUnmount as Mt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as R, createBlock as B, createCommentVNode as m, createVNode as nt, createSlots as Et, withCtx as L, renderSlot as x, normalizeProps as X, guardReactiveProps as W, createElementVNode as g, Fragment as T, renderList as O, toDisplayString as I, withDirectives as rt, vShow as it, createTextVNode as ne } from "vue";
2
+ import { u as Ut, c as Rt, t as Bt, p as Ce, a as Gt, G as D, o as Yt, e as q, b as Xt, d as Wt, m as _e, f as F, X as qt, s as Ht, L as Jt, k as Te, n as H, i as K, x as dt, q as Kt, r as Qt, y as Zt, v as Oe, T as ct } from "./index-pPGk-uhD.js";
3
+ import { t as jt, u as el } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vt } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as tl } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as al } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ol from "./Title-B-2bV0SW.js";
9
+ import sl from "./Legend-Bxlv67uY.js";
10
+ import ul from "./img-Y_hYz-ZC.js";
11
+ import { _ as nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["id"], vl = ["offset", "stop-color"], hl = ["offset", "stop-opacity"], fl = ["id"], pl = ["id"], yl = ["id"], bl = ["flood-color"], gl = ["d", "fill", "stroke", "stroke-width", "filter"], ml = ["d", "fill", "stroke", "stroke-width"], wl = { key: 1 }, kl = ["d", "fill"], $l = { key: 2 }, Ll = ["x", "y", "font-size", "font-weight", "fill"], xl = { key: 3 }, Cl = ["filter"], _l = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ol = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Fl = ["d", "fill", "onMouseenter", "onClick"], Nl = {
12
13
  key: 5,
13
14
  class: "vue-data-ui-watermark"
14
- }, Fl = {
15
+ }, Sl = {
15
16
  key: 0,
16
17
  class: "vue-ui-nested-donuts-legend-title"
17
- }, Nl = ["onClick"], Sl = ["innerHTML"], Al = {
18
+ }, Al = ["onClick"], Il = ["innerHTML"], Vl = {
18
19
  __name: "vue-ui-nested-donuts",
19
20
  props: {
20
21
  config: {
@@ -31,38 +32,38 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
31
32
  }
32
33
  },
33
34
  emits: ["selectLegend", "selectDatapoint"],
34
- setup(vt, { expose: ht, emit: ft }) {
35
- const pt = E(() => import("./vue-ui-accordion-D55kCO5G.js")), yt = E(() => import("./DataTable-CHBLjKtZ.js")), bt = E(() => import("./PackageVersion-Bg_9KCU-.js")), gt = E(() => import("./PenAndPaper-BPTpbnay.js")), mt = E(() => import("./vue-ui-skeleton-BAOt2neL.js")), wt = E(() => import("./Tooltip-CJxVw7-T.js")), kt = E(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_nested_donuts: $t } = Et(), C = vt, Q = $(() => !!C.dataset && C.dataset.length), y = h(Ut()), re = h(!1), ie = h(""), Lt = h(null), Fe = h(0), H = h(null), Ne = h(null), de = h(null), Se = h(null), Ae = h(null), Ie = h(0), Ve = h(0), Pe = h(0), z = h(!0), M = h([]), J = h([]), B = h(!1);
36
- function xt(l) {
37
- B.value = l, Fe.value += 1;
35
+ setup(ht, { expose: ft, emit: pt }) {
36
+ const yt = U(() => import("./vue-ui-accordion-CVnA550V.js")), bt = U(() => import("./DataTable-D0VYDhfx.js")), gt = U(() => import("./PackageVersion-5TR4ocqp.js")), mt = U(() => import("./PenAndPaper-D6AqipIO.js")), wt = U(() => import("./vue-ui-skeleton-DJPjyNYn.js")), kt = U(() => import("./Tooltip-CoQnTnr-.js")), $t = U(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_nested_donuts: Lt } = Ut(), C = ht, Q = $(() => !!C.dataset && C.dataset.length), y = h(Rt()), re = h(!1), ie = h(""), xt = h(null), Fe = h(0), z = h(null), Ne = h(null), de = h(null), Se = h(null), Ae = h(null), Ie = h(0), Ve = h(0), Pe = h(0), M = h(!0), E = h([]), J = h([]), G = h(!1);
37
+ function De(l) {
38
+ G.value = l, Fe.value += 1;
38
39
  }
39
40
  const e = $({
40
- get: () => Ee(),
41
+ get: () => Ue(),
41
42
  set: (l) => l
42
- }), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: ze } = tl({ config: e.value }), { svgRef: Me } = ll({
43
+ }), { userOptionsVisible: ce, setUserOptionsVisibility: ze, keepUserOptionState: Me } = ll({ config: e.value }), { svgRef: Ee } = al({
43
44
  config: e.value.style.chart.title
44
45
  });
45
- function Ee() {
46
- const l = ct({
46
+ function Ue() {
47
+ const l = vt({
47
48
  userConfig: C.config,
48
- defaultConfig: $t
49
+ defaultConfig: Lt
49
50
  });
50
51
  return l.theme ? {
51
- ...ct({
52
- userConfig: Bt.vue_ui_nested_donuts[l.theme] || C.config,
52
+ ...vt({
53
+ userConfig: Gt.vue_ui_nested_donuts[l.theme] || C.config,
53
54
  defaultConfig: l
54
55
  }),
55
- customPalette: Rt[l.theme] || Ce
56
+ customPalette: Bt[l.theme] || Ce
56
57
  } : l;
57
58
  }
58
- lt(
59
+ at(
59
60
  () => C.config,
60
61
  (l) => {
61
- e.value = Ee(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Ie.value += 1, Ve.value += 1, Pe.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show, f.value.width = e.value.style.chart.width, f.value.height = e.value.style.chart.height;
62
+ e.value = Ue(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Ie.value += 1, Ve.value += 1, Pe.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show, f.value.width = e.value.style.chart.width, f.value.height = e.value.style.chart.height;
62
63
  },
63
64
  { deep: !0 }
64
65
  );
65
- const Ue = $(() => {
66
+ const Re = $(() => {
66
67
  const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
67
68
  return {
68
69
  css: `padding:${l}px ${s}px ${a}px ${o}px`,
@@ -75,21 +76,21 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
75
76
  function Ct(l, s = 1e3, a = 50) {
76
77
  return new Promise((o) => {
77
78
  const t = l.length;
78
- M.value = Array(t).fill(0), J.value = [];
79
+ E.value = Array(t).fill(0), J.value = [];
79
80
  let u = 0;
80
81
  l.forEach((c, v) => {
81
82
  setTimeout(() => {
82
83
  const N = performance.now();
83
84
  function d(p) {
84
- const _ = Math.min((p - N) / s, 1), ge = dt(_), me = c * ge;
85
- M.value[v] = me, M.value = [...M.value];
85
+ const _ = Math.min((p - N) / s, 1), ge = ct(_), me = c * ge;
86
+ E.value[v] = me, E.value = [...E.value];
86
87
  const oe = [];
87
88
  let we = 0;
88
89
  C.dataset.forEach((se, ke) => {
89
- const It = Oe(se.series.reduce(
90
- (Le, xe) => Le + Oe(D(xe.values).reduce((Pt, Dt) => Pt + Dt, 0)),
90
+ const Vt = Oe(se.series.reduce(
91
+ (Le, xe) => Le + Oe(D(xe.values).reduce((Dt, zt) => Dt + zt, 0)),
91
92
  0
92
- )), Vt = Oe(M.value.slice(we, we + se.series.length).reduce((Le, xe) => Le + xe, 0)), $e = It - Vt;
93
+ )), Pt = Oe(E.value.slice(we, we + se.series.length).reduce((Le, xe) => Le + xe, 0)), $e = Vt - Pt;
93
94
  $e > Number.MIN_VALUE && oe.push({
94
95
  name: "__ghost__",
95
96
  arcOf: se.name,
@@ -110,12 +111,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
110
111
  });
111
112
  });
112
113
  }
113
- at(async () => {
114
+ ot(async () => {
114
115
  if (ve(), e.value.startAnimation?.show) {
115
116
  const s = C.dataset.flatMap((a) => a.series).map(
116
117
  (a) => D(a.values).reduce((o, t) => o + t, 0)
117
118
  );
118
- M.value = s.map(() => 0), z.value = !0, J.value = C.dataset.map((a, o) => {
119
+ E.value = s.map(() => 0), M.value = !0, J.value = C.dataset.map((a, o) => {
119
120
  const t = a.series.reduce(
120
121
  (u, c) => u + D(c.values).reduce((v, N) => v + N, 0),
121
122
  0
@@ -133,49 +134,49 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
133
134
  absoluteValues: [],
134
135
  ghost: !0
135
136
  };
136
- }), await ot(), Ct(
137
+ }), await st(), Ct(
137
138
  s,
138
139
  e.value.startAnimation.durationMs,
139
140
  e.value.startAnimation.staggerMs
140
141
  ).then(() => {
141
- z.value = !1, J.value = [];
142
+ M.value = !1, J.value = [];
142
143
  });
143
144
  } else
144
- z.value = !1;
145
+ M.value = !1;
145
146
  });
146
- const V = st(null), G = st(null);
147
- at(() => {
147
+ const V = ut(null), Y = ut(null);
148
+ ot(() => {
148
149
  ve();
149
150
  });
150
151
  function ve() {
151
- if (Gt(C.dataset) && W({
152
+ if (Yt(C.dataset) && q({
152
153
  componentName: "VueUiNestedDonuts",
153
154
  type: "dataset"
154
155
  }), e.value.responsive) {
155
- const l = Zt(() => {
156
- const { width: s, height: a } = jt({
157
- chart: H.value,
156
+ const l = jt(() => {
157
+ const { width: s, height: a } = el({
158
+ chart: z.value,
158
159
  title: e.value.style.chart.title.text ? Ne.value : null,
159
160
  legend: e.value.style.chart.legend.show ? de.value : null,
160
161
  source: Se.value,
161
162
  noTitle: Ae.value,
162
- padding: Ue.value
163
+ padding: Re.value
163
164
  });
164
165
  requestAnimationFrame(() => {
165
166
  f.value.width = s, f.value.height = a;
166
167
  });
167
168
  });
168
- V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect()), V.value = new ResizeObserver(l), G.value = H.value.parentNode, V.value.observe(G.value);
169
+ V.value && (Y.value && V.value.unobserve(Y.value), V.value.disconnect()), V.value = new ResizeObserver(l), Y.value = z.value.parentNode, V.value.observe(Y.value);
169
170
  }
170
171
  }
171
- zt(() => {
172
- V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect());
172
+ Mt(() => {
173
+ V.value && (Y.value && V.value.unobserve(Y.value), V.value.disconnect());
173
174
  });
174
- const { isPrinting: Re, isImaging: Be, generatePdf: Ge, generateImage: Ye } = el({
175
+ const { isPrinting: Be, isImaging: Ge, generatePdf: Ye, generateImage: Xe } = tl({
175
176
  elementId: `nested_donuts_${y.value}`,
176
177
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
177
178
  options: e.value.userOptions.print
178
- }), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() => Yt(e.value.customPalette)), k = h({
179
+ }), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() => Xt(e.value.customPalette)), k = h({
179
180
  dataLabels: {
180
181
  show: e.value.style.chart.layout.labels.dataLabels.show
181
182
  },
@@ -184,17 +185,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
184
185
  }), f = h({
185
186
  width: e.value.style.chart.width,
186
187
  height: e.value.style.chart.height
187
- }), Xe = ft;
188
+ }), We = pt;
188
189
  function Ot({ datapoint: l, index: s }) {
189
- Xe("selectDatapoint", { datapoint: l, index: s });
190
+ We("selectDatapoint", { datapoint: l, index: s });
190
191
  }
191
- function We({
192
+ function qe({
192
193
  from: l,
193
194
  to: s,
194
195
  duration: a,
195
196
  onUpdate: o,
196
197
  onDone: t,
197
- easing: u = dt
198
+ easing: u = ct
198
199
  }) {
199
200
  const c = performance.now();
200
201
  function v(N) {
@@ -205,28 +206,28 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
205
206
  }
206
207
  const w = h([]), S = $(() => {
207
208
  C.dataset.forEach((s, a) => {
208
- [null, void 0].includes(s.name) && W({
209
+ [null, void 0].includes(s.name) && q({
209
210
  componentName: "VueUiNestedDonuts",
210
211
  type: "datasetSerieAttribute",
211
212
  property: "name",
212
213
  index: a
213
- }), [null, void 0].includes(s.series) ? W({
214
+ }), [null, void 0].includes(s.series) ? q({
214
215
  componentName: "VueUiNestedDonuts",
215
216
  type: "datasetSerieAttribute",
216
217
  property: "series",
217
218
  index: a
218
- }) : s.series.length === 0 ? W({
219
+ }) : s.series.length === 0 ? q({
219
220
  componentName: "VueUiNestedDonuts",
220
221
  type: "datasetAttributeEmpty",
221
222
  property: `series at index ${a}`
222
223
  }) : s.series.forEach((o, t) => {
223
- [null, void 0].includes(o.name) && W({
224
+ [null, void 0].includes(o.name) && q({
224
225
  componentName: "VueUiNestedDonuts",
225
226
  type: "datasetSerieAttribute",
226
227
  property: "name",
227
228
  index: t,
228
229
  key: "serie"
229
- }), [null, void 0].includes(o.values) && W({
230
+ }), [null, void 0].includes(o.values) && q({
230
231
  componentName: "VueUiNestedDonuts",
231
232
  type: "datasetSerieAttribute",
232
233
  property: "values",
@@ -250,13 +251,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
250
251
  id: `${y.value}_${a}_${t}`,
251
252
  seriesIndex: t,
252
253
  datasetIndex: a,
253
- color: Xt(o.color) || Tt.value[t] || Ce[t % Ce.length],
254
- value: z.value ? M.value[l++] ?? 0 : u,
254
+ color: Wt(o.color) || Tt.value[t] || Ce[t % Ce.length],
255
+ value: M.value ? E.value[l++] ?? 0 : u,
255
256
  absoluteValues: o.values || []
256
257
  };
257
258
  })
258
259
  }));
259
- }), A = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), qe = $(() => [...S.value].map((l, s) => {
260
+ }), A = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = $(() => [...S.value].map((l, s) => {
260
261
  const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
261
262
  return {
262
263
  ...l,
@@ -273,13 +274,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
273
274
  a.includes(l[t]) && (o += 1);
274
275
  return o < s;
275
276
  }
276
- const b = h(qe.value);
277
- lt(
278
- () => qe.value,
277
+ const b = h(He.value);
278
+ at(
279
+ () => He.value,
279
280
  (l) => b.value = l
280
281
  );
281
282
  function he(l) {
282
- Xe("selectLegend", l);
283
+ We("selectLegend", l);
283
284
  const s = C.dataset.flatMap(
284
285
  (d, p) => d.series.map((_, ge) => ({
285
286
  value: D(_.values).reduce((me, oe) => me + oe, 0),
@@ -299,7 +300,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
299
300
  v.length - 1,
300
301
  w.value
301
302
  );
302
- w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? We({
303
+ w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? qe({
303
304
  from: u,
304
305
  to: a,
305
306
  duration: e.value.serieToggleAnimation.durationMs,
@@ -312,7 +313,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
312
313
  }) : b.value = b.value.map((d) => ({
313
314
  ...d,
314
315
  series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
315
- }))) : N && (e.value.serieToggleAnimation.show ? We({
316
+ }))) : N && (e.value.serieToggleAnimation.show ? qe({
316
317
  from: u,
317
318
  to: 0,
318
319
  duration: e.value.serieToggleAnimation.durationMs,
@@ -330,8 +331,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
330
331
  series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
331
332
  })), w.value.push(l.id)));
332
333
  }
333
- const Z = $(() => A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), He = $(() => b.value.map((l, s) => A.value - s * A.value / S.value.length)), j = $(() => b.value.map((l, s) => {
334
- const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = A.value - s * A.value / b.value.length, t = z.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
334
+ const Z = $(() => A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), Je = $(() => b.value.map((l, s) => A.value - s * A.value / S.value.length)), j = $(() => b.value.map((l, s) => {
335
+ const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = A.value - s * A.value / b.value.length, t = M.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
335
336
  ...v,
336
337
  value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
337
338
  })), c = _e(
@@ -368,7 +369,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
368
369
  Z.value
369
370
  )
370
371
  };
371
- })), Je = $(() => [...S.value].map((l, s) => {
372
+ })), Ke = $(() => [...S.value].map((l, s) => {
372
373
  const a = s * A.value / S.value.length;
373
374
  return {
374
375
  sizeRatio: a,
@@ -386,16 +387,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
386
387
  A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
387
388
  )[0]
388
389
  };
389
- })), Ke = h(null), ee = h(null), te = h(null), fe = h(null);
390
+ })), Qe = h(null), ee = h(null), te = h(null), fe = h(null);
390
391
  function Nt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
391
- Ke.value = l.arcOfId, ee.value = l.id, te.value = a, fe.value = {
392
+ Qe.value = l.arcOfId, ee.value = l.id, te.value = a, fe.value = {
392
393
  datapoint: l,
393
394
  seriesIndex: a,
394
395
  series: b.value,
395
396
  config: e.value
396
397
  };
397
398
  const o = e.value.style.chart.tooltip.customFormat;
398
- if (it(o) && Qt(
399
+ if (dt(o) && Zt(
399
400
  () => o({
400
401
  seriesIndex: a,
401
402
  datapoint: l,
@@ -474,7 +475,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
474
475
  function pe(l) {
475
476
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
476
477
  }
477
- function Qe(l, s) {
478
+ function Ze(l, s) {
478
479
  if (!e.value.useBlurOnHover)
479
480
  return "";
480
481
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
@@ -485,7 +486,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
485
486
  const ye = $(() => S.value.map((l, s) => {
486
487
  const a = l.series.filter(
487
488
  (t) => !w.value.includes(t.id)
488
- ), o = z.value ? a.map((t) => {
489
+ ), o = M.value ? a.map((t) => {
489
490
  const u = C.dataset[s].series.findIndex(
490
491
  (c) => c.name === t.name
491
492
  );
@@ -497,7 +498,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
497
498
  const c = D(C.dataset[s].series[u].values).reduce(
498
499
  (N, d) => N + d,
499
500
  0
500
- ), v = z.value ? c : t.value;
501
+ ), v = M.value ? c : t.value;
501
502
  return {
502
503
  name: t.name,
503
504
  color: t.color,
@@ -528,8 +529,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
528
529
  }))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
529
530
  return { head: l, body: s };
530
531
  });
531
- function Ze(l = null) {
532
- ot(() => {
532
+ function je(l = null) {
533
+ st(() => {
533
534
  const s = P.value.head.map((t, u) => [
534
535
  [t.name],
535
536
  [P.value.body[u]],
@@ -540,8 +541,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
540
541
  [e.value.style.chart.title.text],
541
542
  [e.value.style.chart.title.subtitle.text],
542
543
  [[""], ["val"], ["%"]]
543
- ].concat(s), o = Jt(a);
544
- l ? l(o) : Kt({
544
+ ].concat(s), o = Kt(a);
545
+ l ? l(o) : Qt({
545
546
  csvContent: o,
546
547
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
547
548
  });
@@ -598,40 +599,47 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
598
599
  function At() {
599
600
  return S.value;
600
601
  }
601
- function je() {
602
+ function et() {
602
603
  k.value.showTable = !k.value.showTable;
603
604
  }
604
- function et() {
605
+ function tt() {
605
606
  k.value.dataLabels.show = !k.value.dataLabels.show;
606
607
  }
607
- function tt() {
608
+ function lt() {
608
609
  k.value.showTooltip = !k.value.showTooltip;
609
610
  }
610
611
  const ae = h(!1);
611
612
  function be() {
612
613
  ae.value = !ae.value;
613
614
  }
614
- return ht({
615
+ async function It({ scale: l = 2 } = {}) {
616
+ if (!z.value) return;
617
+ const { imageUri: s, base64: a } = await ul({ domElement: z.value, base64: !0, img: !0, scale: l });
618
+ return { imageUri: s, base64: a };
619
+ }
620
+ return ft({
615
621
  getData: At,
616
- generatePdf: Ge,
617
- generateCsv: Ze,
618
- generateImage: Ye,
619
- toggleTable: je,
620
- toggleLabels: et,
621
- toggleTooltip: tt,
622
- toggleAnnotator: be
622
+ getImage: It,
623
+ generatePdf: Ye,
624
+ generateCsv: je,
625
+ generateImage: Xe,
626
+ toggleTable: et,
627
+ toggleLabels: tt,
628
+ toggleTooltip: lt,
629
+ toggleAnnotator: be,
630
+ toggleFullscreen: De
623
631
  }), (l, s) => (n(), i("div", {
624
632
  ref_key: "nestedDonutsChart",
625
- ref: H,
626
- class: U(`vue-ui-nested-donuts ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
633
+ ref: z,
634
+ class: R(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
627
635
  style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
628
636
  id: `nested_donuts_${y.value}`,
629
- onMouseenter: s[3] || (s[3] = () => r(De)(!0)),
630
- onMouseleave: s[4] || (s[4] = () => r(De)(!1))
637
+ onMouseenter: s[3] || (s[3] = () => r(ze)(!0)),
638
+ onMouseleave: s[4] || (s[4] = () => r(ze)(!1))
631
639
  }, [
632
- e.value.userOptions.buttons.annotator ? (n(), R(r(gt), {
640
+ e.value.userOptions.buttons.annotator ? (n(), B(r(mt), {
633
641
  key: 0,
634
- svgRef: r(Me),
642
+ svgRef: r(Ee),
635
643
  backgroundColor: e.value.style.chart.backgroundColor,
636
644
  color: e.value.style.chart.color,
637
645
  active: ae.value,
@@ -649,7 +657,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
649
657
  ref_key: "chartTitle",
650
658
  ref: Ne
651
659
  }, [
652
- (n(), R(al, {
660
+ (n(), B(ol, {
653
661
  key: `title_${Ie.value}`,
654
662
  config: {
655
663
  title: {
@@ -663,13 +671,13 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
663
671
  }
664
672
  }, null, 8, ["config"]))
665
673
  ], 512)) : m("", !0),
666
- e.value.userOptions.show && Q.value && (r(ze) || r(ce)) ? (n(), R(r(kt), {
674
+ e.value.userOptions.show && Q.value && (r(Me) || r(ce)) ? (n(), B(r($t), {
667
675
  ref: "details",
668
676
  key: `user_option_${Fe.value}`,
669
677
  backgroundColor: e.value.style.chart.backgroundColor,
670
678
  color: e.value.style.chart.color,
671
- isPrinting: r(Re),
672
- isImaging: r(Be),
679
+ isPrinting: r(Be),
680
+ isImaging: r(Ge),
673
681
  uid: y.value,
674
682
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
675
683
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -678,31 +686,31 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
678
686
  hasTable: e.value.userOptions.buttons.table,
679
687
  hasLabel: e.value.userOptions.buttons.labels,
680
688
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
681
- isFullscreen: B.value,
689
+ isFullscreen: G.value,
682
690
  isTooltip: k.value.showTooltip,
683
691
  titles: { ...e.value.userOptions.buttonTitles },
684
- chartElement: H.value,
692
+ chartElement: z.value,
685
693
  position: e.value.userOptions.position,
686
694
  hasAnnotator: e.value.userOptions.buttons.annotator,
687
695
  isAnnotation: ae.value,
688
696
  callbacks: e.value.userOptions.callbacks,
689
697
  printScale: e.value.userOptions.print.scale,
690
- onToggleFullscreen: xt,
691
- onGeneratePdf: r(Ge),
692
- onGenerateCsv: Ze,
693
- onGenerateImage: r(Ye),
694
- onToggleTable: je,
695
- onToggleLabels: et,
696
- onToggleTooltip: tt,
698
+ onToggleFullscreen: De,
699
+ onGeneratePdf: r(Ye),
700
+ onGenerateCsv: je,
701
+ onGenerateImage: r(Xe),
702
+ onToggleTable: et,
703
+ onToggleLabels: tt,
704
+ onToggleTooltip: lt,
697
705
  onToggleAnnotator: be,
698
706
  style: ue({
699
- visibility: r(ze) ? r(ce) ? "visible" : "hidden" : "visible"
707
+ visibility: r(Me) ? r(ce) ? "visible" : "hidden" : "visible"
700
708
  })
701
- }, Mt({ _: 2 }, [
709
+ }, Et({ _: 2 }, [
702
710
  l.$slots.menuIcon ? {
703
711
  name: "menuIcon",
704
712
  fn: L(({ isOpen: a, color: o }) => [
705
- x(l.$slots, "menuIcon", Y(X({ isOpen: a, color: o })), void 0, !0)
713
+ x(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
706
714
  ]),
707
715
  key: "0"
708
716
  } : void 0,
@@ -751,14 +759,14 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
751
759
  l.$slots.optionFullscreen ? {
752
760
  name: "optionFullscreen",
753
761
  fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
754
- x(l.$slots, "optionFullscreen", Y(X({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
762
+ x(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
755
763
  ]),
756
764
  key: "7"
757
765
  } : void 0,
758
766
  l.$slots.optionAnnotator ? {
759
767
  name: "optionAnnotator",
760
768
  fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
761
- x(l.$slots, "optionAnnotator", Y(X({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
769
+ x(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
762
770
  ]),
763
771
  key: "8"
764
772
  } : void 0
@@ -766,16 +774,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
766
774
  Q.value ? (n(), i("svg", {
767
775
  key: 4,
768
776
  ref_key: "svgRef",
769
- ref: Me,
770
- xmlns: r(Wt),
771
- class: U({
772
- "vue-data-ui-fullscreen--on": B.value,
773
- "vue-data-ui-fulscreen--off": !B.value
777
+ ref: Ee,
778
+ xmlns: r(qt),
779
+ class: R({
780
+ "vue-data-ui-fullscreen--on": G.value,
781
+ "vue-data-ui-fulscreen--off": !G.value
774
782
  }),
775
783
  viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
776
- style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ue.value.css}`)
784
+ style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
777
785
  }, [
778
- ut(r(bt)),
786
+ nt(r(gt)),
779
787
  l.$slots["chart-background"] ? (n(), i("foreignObject", {
780
788
  key: 0,
781
789
  x: 0,
@@ -787,9 +795,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
787
795
  }
788
796
  }, [
789
797
  x(l.$slots, "chart-background", {}, void 0, !0)
790
- ], 8, rl)) : m("", !0),
798
+ ], 8, dl)) : m("", !0),
791
799
  g("defs", null, [
792
- (n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("radialGradient", {
800
+ (n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("radialGradient", {
793
801
  id: `radial_${y.value}_${o}`
794
802
  }, [
795
803
  s[5] || (s[5] = g("stop", {
@@ -798,21 +806,21 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
798
806
  "stop-opacity": "0"
799
807
  }, null, -1)),
800
808
  g("stop", {
801
- offset: `${(1 - Z.value / He.value[o]) * 100}%`,
802
- "stop-color": r(qt)("#FFFFFF", 0),
809
+ offset: `${(1 - Z.value / Je.value[o]) * 100}%`,
810
+ "stop-color": r(Ht)("#FFFFFF", 0),
803
811
  "stop-opacity": "0"
804
- }, null, 8, dl),
812
+ }, null, 8, vl),
805
813
  g("stop", {
806
- offset: `${(1 - Z.value / He.value[o] / 2) * 100}%`,
814
+ offset: `${(1 - Z.value / Je.value[o] / 2) * 100}%`,
807
815
  "stop-color": "#FFFFFF",
808
816
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
809
- }, null, 8, cl),
817
+ }, null, 8, hl),
810
818
  s[6] || (s[6] = g("stop", {
811
819
  offset: "100%",
812
820
  "stop-color": "#FFFFFF",
813
821
  "stop-opacity": "0"
814
822
  }, null, -1))
815
- ], 8, il))), 256))
823
+ ], 8, cl))), 256))
816
824
  ]),
817
825
  g("defs", null, [
818
826
  g("filter", {
@@ -826,12 +834,12 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
826
834
  in: "SourceGraphic",
827
835
  stdDeviation: 2,
828
836
  id: `blur_std_${y.value}`
829
- }, null, 8, hl),
837
+ }, null, 8, pl),
830
838
  s[7] || (s[7] = g("feColorMatrix", {
831
839
  type: "saturate",
832
840
  values: "0"
833
841
  }, null, -1))
834
- ], 8, vl),
842
+ ], 8, fl),
835
843
  g("filter", {
836
844
  id: `shadow_${y.value}`,
837
845
  "color-interpolation-filters": "sRGB"
@@ -842,8 +850,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
842
850
  stdDeviation: "10",
843
851
  "flood-opacity": "0.5",
844
852
  "flood-color": e.value.style.chart.layout.donut.shadowColor
845
- }, null, 8, pl)
846
- ], 8, fl)
853
+ }, null, 8, bl)
854
+ ], 8, yl)
847
855
  ]),
848
856
  (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
849
857
  a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
@@ -853,8 +861,8 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
853
861
  fill: t.color,
854
862
  stroke: e.value.style.chart.backgroundColor,
855
863
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
856
- filter: Qe(t, u)
857
- }, null, 8, yl)
864
+ filter: Ze(t, u)
865
+ }, null, 8, gl)
858
866
  ]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
859
867
  g("path", {
860
868
  class: "vue-ui-donut-arc-path",
@@ -862,48 +870,48 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
862
870
  fill: t.color,
863
871
  stroke: e.value.style.chart.backgroundColor,
864
872
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
865
- }, null, 8, bl)
873
+ }, null, 8, ml)
866
874
  ]))), 256))
867
875
  ]))), 256)),
868
- e.value.style.chart.useGradient ? (n(), i("g", gl, [
869
- (n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("g", null, [
876
+ e.value.style.chart.useGradient ? (n(), i("g", wl, [
877
+ (n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("g", null, [
870
878
  g("path", {
871
879
  d: a.donut.arcSlice,
872
880
  fill: `url(#radial_${y.value}_${o})`,
873
881
  stroke: "transparent",
874
882
  "stroke-width": "0"
875
- }, null, 8, ml)
883
+ }, null, 8, kl)
876
884
  ]))), 256))
877
885
  ])) : m("", !0),
878
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", wl, [
886
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", $l, [
879
887
  (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
880
888
  (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
881
889
  u === 0 && f.value.width && f.value.height ? (n(), i("text", {
882
890
  key: 0,
883
- class: U({ animated: e.value.useCssAnimation }),
891
+ class: R({ animated: e.value.useCssAnimation }),
884
892
  x: f.value.width / 2,
885
893
  y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
886
894
  "text-anchor": "middle",
887
895
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
888
896
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
889
897
  fill: e.value.style.chart.layout.labels.dataLabels.color
890
- }, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Ht)({
898
+ }, I(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Jt)({
891
899
  source: a.name,
892
900
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
893
- }) : a.name), 11, kl)) : m("", !0)
901
+ }) : a.name), 11, Ll)) : m("", !0)
894
902
  ]))), 256))
895
903
  ]))), 256))
896
904
  ])) : m("", !0),
897
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", $l, [
905
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", xl, [
898
906
  (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
899
907
  (n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
900
- filter: Qe(t, u)
908
+ filter: Ze(t, u)
901
909
  }, [
902
- nt(g("text", {
903
- class: U({ animated: e.value.useCssAnimation }),
910
+ rt(g("text", {
911
+ class: R({ animated: e.value.useCssAnimation }),
904
912
  opacity: pe(t) ? 1 : 0,
905
- "text-anchor": r(q)(t, !0).anchor,
906
- x: r(q)(
913
+ "text-anchor": r(H)(t, !0).anchor,
914
+ x: r(H)(
907
915
  t,
908
916
  !1,
909
917
  e.value.style.chart.layout.labels.dataLabels.offsetX
@@ -920,17 +928,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
920
928
  v: t.proportion * 100,
921
929
  s: "%",
922
930
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
923
- })), 11, xl), [
931
+ })), 11, _l), [
924
932
  [
925
- rt,
933
+ it,
926
934
  k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
927
935
  ]
928
936
  ]),
929
- nt(g("text", {
930
- class: U({ animated: e.value.useCssAnimation }),
937
+ rt(g("text", {
938
+ class: R({ animated: e.value.useCssAnimation }),
931
939
  opacity: pe(t) ? 1 : 0,
932
- "text-anchor": r(q)(t, !0).anchor,
933
- x: r(q)(
940
+ "text-anchor": r(H)(t, !0).anchor,
941
+ x: r(H)(
934
942
  t,
935
943
  !1,
936
944
  e.value.style.chart.layout.labels.dataLabels.offsetX
@@ -953,17 +961,17 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
953
961
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
954
962
  }),
955
963
  { datapoint: t, seriesIndex: o, datapointIndex: u }
956
- )) + ") ", 11, Cl), [
964
+ )) + ") ", 11, Tl), [
957
965
  [
958
- rt,
966
+ it,
959
967
  k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
960
968
  ]
961
969
  ]),
962
970
  pe(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
963
971
  key: 0,
964
- class: U({ animated: e.value.useCssAnimation }),
965
- "text-anchor": r(q)(t, !0).anchor,
966
- x: r(q)(
972
+ class: R({ animated: e.value.useCssAnimation }),
973
+ "text-anchor": r(H)(t, !0).anchor,
974
+ x: r(H)(
967
975
  t,
968
976
  !1,
969
977
  e.value.style.chart.layout.labels.dataLabels.offsetX
@@ -986,32 +994,32 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
986
994
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
987
995
  }),
988
996
  { datapoint: t, seriesIndex: o, datapointIndex: u }
989
- )), 11, _l)) : m("", !0)
990
- ], 8, Ll))), 256))
997
+ )), 11, Ol)) : m("", !0)
998
+ ], 8, Cl))), 256))
991
999
  ]))), 256))
992
1000
  ])) : m("", !0),
993
1001
  (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
994
1002
  (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
995
1003
  g("path", {
996
1004
  d: t.arcSlice,
997
- fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
1005
+ fill: xt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
998
1006
  onMouseenter: (c) => Nt({
999
1007
  datapoint: t,
1000
1008
  seriesIndex: t.seriesIndex
1001
1009
  }),
1002
1010
  onClick: (c) => Ot({ datapoint: t, index: u }),
1003
1011
  onMouseleave: s[0] || (s[0] = (c) => {
1004
- re.value = !1, Ke.value = null, ee.value = null, te.value = null;
1012
+ re.value = !1, Qe.value = null, ee.value = null, te.value = null;
1005
1013
  })
1006
- }, null, 40, Tl)
1014
+ }, null, 40, Fl)
1007
1015
  ]))), 256))
1008
1016
  ]))), 256)),
1009
1017
  x(l.$slots, "svg", { svg: f.value }, void 0, !0)
1010
- ], 14, nl)) : m("", !0),
1011
- l.$slots.watermark ? (n(), i("div", Ol, [
1012
- x(l.$slots, "watermark", Y(X({ isPrinting: r(Re) || r(Be) })), void 0, !0)
1018
+ ], 14, il)) : m("", !0),
1019
+ l.$slots.watermark ? (n(), i("div", Nl, [
1020
+ x(l.$slots, "watermark", X(W({ isPrinting: r(Be) || r(Ge) })), void 0, !0)
1013
1021
  ])) : m("", !0),
1014
- Q.value ? m("", !0) : (n(), R(r(mt), {
1022
+ Q.value ? m("", !0) : (n(), B(r(wt), {
1015
1023
  key: 6,
1016
1024
  config: {
1017
1025
  type: "donut",
@@ -1023,7 +1031,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1023
1031
  }
1024
1032
  }
1025
1033
  }, null, 8, ["config"])),
1026
- ut(r(wt), {
1034
+ nt(r(kt), {
1027
1035
  show: k.value.showTooltip && re.value,
1028
1036
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1029
1037
  color: e.value.style.chart.tooltip.color,
@@ -1034,16 +1042,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1034
1042
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1035
1043
  position: e.value.style.chart.tooltip.position,
1036
1044
  offsetY: e.value.style.chart.tooltip.offsetY,
1037
- parent: H.value,
1045
+ parent: z.value,
1038
1046
  content: ie.value,
1039
- isFullscreen: B.value,
1040
- isCustom: r(it)(e.value.style.chart.tooltip.customFormat)
1047
+ isFullscreen: G.value,
1048
+ isCustom: r(dt)(e.value.style.chart.tooltip.customFormat)
1041
1049
  }, {
1042
1050
  "tooltip-before": L(() => [
1043
- x(l.$slots, "tooltip-before", Y(X({ ...fe.value })), void 0, !0)
1051
+ x(l.$slots, "tooltip-before", X(W({ ...fe.value })), void 0, !0)
1044
1052
  ]),
1045
1053
  "tooltip-after": L(() => [
1046
- x(l.$slots, "tooltip-after", Y(X({ ...fe.value })), void 0, !0)
1054
+ x(l.$slots, "tooltip-after", X(W({ ...fe.value })), void 0, !0)
1047
1055
  ]),
1048
1056
  _: 3
1049
1057
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -1051,16 +1059,16 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1051
1059
  key: 7,
1052
1060
  ref_key: "chartLegend",
1053
1061
  ref: de,
1054
- class: U({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1062
+ class: R({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1055
1063
  }, [
1056
- (n(!0), i(T, null, O(ye.value, (a, o) => (n(), R(ol, {
1064
+ (n(!0), i(T, null, O(ye.value, (a, o) => (n(), B(sl, {
1057
1065
  key: `legend_${o}_${Pe.value}`,
1058
1066
  legendSet: a,
1059
1067
  config: St.value,
1060
1068
  onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
1061
1069
  }, {
1062
1070
  legendTitle: L(({ titleSet: t }) => [
1063
- t[0] && t[0].arcOf ? (n(), i("div", Fl, I(t[0].arcOf), 1)) : m("", !0)
1071
+ t[0] && t[0].arcOf ? (n(), i("div", Sl, I(t[0].arcOf), 1)) : m("", !0)
1064
1072
  ]),
1065
1073
  item: L(({ legend: t, index: u }) => [
1066
1074
  g("div", {
@@ -1087,7 +1095,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1087
1095
  r: e.value.style.chart.legend.roundingPercentage
1088
1096
  })) + ") ", 1)
1089
1097
  ], 64))
1090
- ], 12, Nl)
1098
+ ], 12, Al)
1091
1099
  ]),
1092
1100
  _: 2
1093
1101
  }, 1032, ["legendSet", "config"]))), 128))
@@ -1107,7 +1115,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1107
1115
  }, [
1108
1116
  x(l.$slots, "source", {}, void 0, !0)
1109
1117
  ], 512)) : m("", !0),
1110
- Q.value ? (n(), R(r(pt), {
1118
+ Q.value ? (n(), B(r(yt), {
1111
1119
  key: 10,
1112
1120
  hideDetails: "",
1113
1121
  config: {
@@ -1124,7 +1132,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1124
1132
  }
1125
1133
  }, {
1126
1134
  content: L(() => [
1127
- (n(), R(r(yt), {
1135
+ (n(), B(r(bt), {
1128
1136
  key: `table_${Ve.value}`,
1129
1137
  colNames: le.value.colNames,
1130
1138
  head: le.value.head,
@@ -1137,7 +1145,7 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1137
1145
  g("div", {
1138
1146
  innerHTML: a,
1139
1147
  style: { display: "flex", "align-items": "center" }
1140
- }, null, 8, Sl)
1148
+ }, null, 8, Il)
1141
1149
  ]),
1142
1150
  td: L(({ td: a }) => [
1143
1151
  ne(I(a.name || a), 1)
@@ -1147,9 +1155,9 @@ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["i
1147
1155
  ]),
1148
1156
  _: 1
1149
1157
  }, 8, ["config"])) : m("", !0)
1150
- ], 46, ul));
1158
+ ], 46, rl));
1151
1159
  }
1152
- }, Gl = /* @__PURE__ */ sl(Al, [["__scopeId", "data-v-8cff675f"]]);
1160
+ }, Wl = /* @__PURE__ */ nl(Vl, [["__scopeId", "data-v-6a801edc"]]);
1153
1161
  export {
1154
- Gl as default
1162
+ Wl as default
1155
1163
  };