vue-data-ui 2.17.1 → 2.17.2

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 (90) hide show
  1. package/dist/{Arrow-BDCVJzQB.js → Arrow-Dr2lyXds.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BvuWrldK.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
  3. package/dist/{BaseIcon-D9Tz8ARD.js → BaseIcon-C2f-EcZc.js} +1 -1
  4. package/dist/{ColorPicker-wGf46G2G.js → ColorPicker-D-JmDe31.js} +2 -2
  5. package/dist/{DataTable-Dt-TIOyY.js → DataTable-6BxhjBzt.js} +2 -2
  6. package/dist/{Legend-3LNqqLDg.js → Legend-1R-B-7st.js} +11 -11
  7. package/dist/{NonSvgPenAndPaper-iDdMuUEo.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
  8. package/dist/{PackageVersion-C-4Ee8BQ.js → PackageVersion-CIX1W_aa.js} +1 -1
  9. package/dist/{PenAndPaper-Cde-wJ3N.js → PenAndPaper-CqJ4wudB.js} +3 -3
  10. package/dist/{Shape-C75836Jl.js → Shape-DJKQgAbU.js} +1 -1
  11. package/dist/{Slicer-CpSu7plp.js → Slicer-Dju6LE-h.js} +2 -2
  12. package/dist/{SparkTooltip-B_GXa2tb.js → SparkTooltip-D2mROH3o.js} +1 -1
  13. package/dist/{Title-DpERl1yr.js → Title-BQb7X_OR.js} +1 -1
  14. package/dist/{Tooltip-DA0bYKFG.js → Tooltip-BTnTpPdO.js} +1 -1
  15. package/dist/{UserOptions-DTEJ3UM_.js → UserOptions-lneAyZKu.js} +2 -2
  16. package/dist/{dom-to-png-DWDGYXFL.js → dom-to-png-C-9BWdwN.js} +1 -1
  17. package/dist/{img-utitT2Gd.js → img-D0DpKcFX.js} +1 -1
  18. package/dist/{index-CobsZUkv.js → index-JzUbx__y.js} +1 -1
  19. package/dist/{pdf-DWZ8IB56.js → pdf-BgVDfZPT.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +2 -0
  22. package/dist/types/vue-data-ui.d.ts +2 -0
  23. package/dist/{useNestedProp-BwL5wmVa.js → useNestedProp-D_jd2dz9.js} +1 -1
  24. package/dist/{usePrinter-DPh6U_Qk.js → usePrinter-CsyliflB.js} +2 -2
  25. package/dist/{vue-data-ui-D7ZgRDQ_.js → vue-data-ui-BMv8hEcb.js} +99 -97
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-ORUAjkg7.js → vue-ui-3d-bar-CrdssfKx.js} +6 -6
  28. package/dist/{vue-ui-accordion-UewqY6OI.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-Yl4aRpNc.js → vue-ui-age-pyramid-ZYFAAcwc.js} +6 -6
  30. package/dist/{vue-ui-annotator-B1gqiBqq.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
  31. package/dist/{vue-ui-bullet-C307lCPt.js → vue-ui-bullet-DYzLfkYB.js} +7 -7
  32. package/dist/{vue-ui-candlestick-BE6PcEdh.js → vue-ui-candlestick-Cdu2ozig.js} +7 -7
  33. package/dist/{vue-ui-carousel-table-Cpvjr677.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
  34. package/dist/{vue-ui-chestnut-CUw74AgC.js → vue-ui-chestnut-CCMAbLrw.js} +5 -5
  35. package/dist/{vue-ui-chord-CCPGeAiY.js → vue-ui-chord-B8Sl_FwD.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-dfyPiQmy.js → vue-ui-circle-pack-BX6_ToJl.js} +6 -6
  37. package/dist/{vue-ui-cursor-C2zmfeoD.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
  38. package/dist/{vue-ui-dashboard-CotAqRbX.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
  39. package/dist/{vue-ui-digits-7qJFCuoI.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
  40. package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
  41. package/dist/{vue-ui-donut-evolution-Deg0dsYg.js → vue-ui-donut-evolution-dax3dN9r.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-DDwNoTPG.js → vue-ui-dumbbell-C7ZNBVSy.js} +7 -7
  43. package/dist/{vue-ui-flow-6oR7IMyi.js → vue-ui-flow-BeLwkeHo.js} +7 -7
  44. package/dist/{vue-ui-funnel-BnXtOJmh.js → vue-ui-funnel-BywaRLZR.js} +6 -6
  45. package/dist/{vue-ui-galaxy-75XC8SpV.js → vue-ui-galaxy-DYavEd4o.js} +5 -5
  46. package/dist/{vue-ui-gauge-w31j915C.js → vue-ui-gauge-DwQRlRWp.js} +6 -6
  47. package/dist/{vue-ui-gizmo-bZqk6oZS.js → vue-ui-gizmo-CjRczit6.js} +3 -3
  48. package/dist/{vue-ui-heatmap-BfU62tMW.js → vue-ui-heatmap-cRy0tcES.js} +7 -7
  49. package/dist/{vue-ui-history-plot-CFfco-Yj.js → vue-ui-history-plot-D8aTdU23.js} +7 -7
  50. package/dist/{vue-ui-kpi-DaJ1U3wf.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-CF_2jAI8.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
  52. package/dist/{vue-ui-molecule-Tdk3Gd8M.js → vue-ui-molecule-4MeyWn0c.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-Dg5wS7W5.js → vue-ui-mood-radar-DJmgRVT2.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-CpRe0sQB.js → vue-ui-nested-donuts-CgaPLxV2.js} +489 -475
  55. package/dist/{vue-ui-onion-B8o4ft2v.js → vue-ui-onion-swDxtTT3.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-zW-CNqWC.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +8 -8
  57. package/dist/{vue-ui-quadrant-DiRtZ16w.js → vue-ui-quadrant-CLf81ioF.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-BRlYC_yT.js → vue-ui-quick-chart-smKrpIwq.js} +6 -6
  59. package/dist/{vue-ui-radar-DKgX1Ibx.js → vue-ui-radar-D8CIvG2q.js} +7 -7
  60. package/dist/{vue-ui-rating-DlklKr-X.js → vue-ui-rating-YZivkWBI.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-MHiAp8dC.js → vue-ui-relation-circle-DsEYbNs_.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-DA8verAe.js → vue-ui-ridgeline-Do6C5lMY.js} +8 -8
  63. package/dist/{vue-ui-rings-Dh6lFqun.js → vue-ui-rings-CMryJR1g.js} +8 -8
  64. package/dist/{vue-ui-scatter-CLC5sTOi.js → vue-ui-scatter-BtLKWQbX.js} +8 -8
  65. package/dist/{vue-ui-skeleton-8s4xts8z.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
  66. package/dist/{vue-ui-smiley-utuzw8uI.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-BODEqGRr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-B8MB-kn9.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-CuD7kTS3.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-BYJszvna.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
  71. package/dist/{vue-ui-sparkline-D77GyWzG.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-DNb1yD64.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
  73. package/dist/{vue-ui-stackbar-C6rjCYDD.js → vue-ui-stackbar-Bk3Bbzjk.js} +9 -9
  74. package/dist/{vue-ui-strip-plot-B6cYojHQ.js → vue-ui-strip-plot-BNMDY4GI.js} +7 -7
  75. package/dist/{vue-ui-table-IC7SmWVd.js → vue-ui-table-JG0B8HuS.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-DHFpJMpA.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-D7wz-sCj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
  78. package/dist/{vue-ui-thermometer-D-oiVT3n.js → vue-ui-thermometer-DkldIXw7.js} +6 -6
  79. package/dist/{vue-ui-timer-C9jVyX5l.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-B1bM9Aoo.js → vue-ui-tiremarks-FPtGzTGi.js} +6 -6
  81. package/dist/{vue-ui-treemap-DX48YlU5.js → vue-ui-treemap-BA5wC5Bs.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-6SjKPQWR.js → vue-ui-vertical-bar-DUJWYMRn.js} +9 -9
  83. package/dist/{vue-ui-waffle-CYao9MMw.js → vue-ui-waffle-BIngg99N.js} +8 -8
  84. package/dist/{vue-ui-wheel-USuDhMwW.js → vue-ui-wheel-l5U2UH9c.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-TOBTs7yF.js → vue-ui-word-cloud-CTKuxhFY.js} +6 -6
  86. package/dist/{vue-ui-world-C2qikqBa.js → vue-ui-world-Dx5O9Is5.js} +6 -6
  87. package/dist/{vue-ui-xy-DxwgKoO-.js → vue-ui-xy-JjA1CMAo.js} +17 -17
  88. package/dist/{vue-ui-xy-canvas-N69OpVn8.js → vue-ui-xy-canvas-CH82b2Lp.js} +8 -8
  89. package/package.json +1 -1
  90. package/dist/vue-ui-donut-D41WeqQU.js +0 -1325
@@ -1,21 +1,21 @@
1
- import { defineAsyncComponent as R, computed as k, 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 B, createCommentVNode as m, createVNode as ut, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as X, guardReactiveProps as W, createElementVNode as g, Fragment as T, renderList as O, toDisplayString as A, withDirectives as nt, vShow as rt, createTextVNode as Et } from "vue";
2
- import { u as Rt, c as Ut, t as Bt, p as xe, a as Gt, G as z, o as Yt, e as q, b as Xt, d as Wt, m as Ce, f as F, X as qt, s as Ht, L as Jt, k as _e, n as H, i as K, x as it, q as Kt, r as Qt, y as Zt, v as Te, T as dt } from "./index-CobsZUkv.js";
3
- import { t as jt, u as el } from "./useResponsive-DfdjqQps.js";
4
- import { u as ct } from "./useNestedProp-BwL5wmVa.js";
5
- import { u as tl } from "./usePrinter-DPh6U_Qk.js";
6
- import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as al } from "./useChartAccessibility-9icAAmYg.js";
8
- import ol from "./Title-DpERl1yr.js";
9
- import sl from "./Legend-3LNqqLDg.js";
10
- import ul from "./img-utitT2Gd.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 }, $l = ["d", "fill"], kl = { 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 = {
1
+ import { defineAsyncComponent as E, computed as k, ref as h, watch as at, onMounted as ot, nextTick as st, shallowRef as ut, onBeforeUnmount as Bt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ne, normalizeClass as R, createBlock as U, createCommentVNode as m, createVNode as nt, createSlots as Et, withCtx as x, renderSlot as L, normalizeProps as X, guardReactiveProps as W, createElementVNode as y, Fragment as T, renderList as O, toDisplayString as A, withDirectives as rt, vShow as it, createTextVNode as Rt } from "vue";
2
+ import { u as Ut, c as Gt, t as Yt, p as _e, a as Xt, G as z, o as Wt, e as q, b as qt, d as Ht, m as Te, f as F, X as Jt, s as Kt, L as Qt, k as Oe, n as H, i as K, x as dt, q as Zt, r as jt, y as el, v as Fe, T as ct } from "./index-JzUbx__y.js";
3
+ import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
4
+ import { u as vt } from "./useNestedProp-D_jd2dz9.js";
5
+ import { u as al } from "./usePrinter-CsyliflB.js";
6
+ import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ul from "./Title-BQb7X_OR.js";
9
+ import nl from "./Legend-1R-B-7st.js";
10
+ import rl from "./img-D0DpKcFX.js";
11
+ import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["id"], fl = ["offset", "stop-color"], pl = ["offset", "stop-opacity"], yl = ["id"], bl = ["id"], gl = ["id"], ml = ["flood-color"], wl = ["d", "fill", "stroke", "stroke-width", "filter"], $l = ["d", "fill", "stroke", "stroke-width"], kl = { key: 1 }, xl = ["d", "fill"], Ll = { key: 2 }, Cl = ["x", "y", "font-size", "font-weight", "fill"], _l = { key: 3 }, Tl = ["filter"], Ol = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Fl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Nl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Sl = ["d", "fill", "onMouseenter", "onClick"], Al = {
13
13
  key: 5,
14
14
  class: "vue-data-ui-watermark"
15
- }, Sl = {
15
+ }, Il = {
16
16
  key: 0,
17
17
  class: "vue-ui-nested-donuts-legend-title"
18
- }, Al = ["onClick"], Il = ["innerHTML"], Vl = {
18
+ }, Vl = ["onClick"], Pl = ["innerHTML"], Dl = {
19
19
  __name: "vue-ui-nested-donuts",
20
20
  props: {
21
21
  config: {
@@ -32,34 +32,34 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
32
32
  }
33
33
  },
34
34
  emits: ["selectLegend", "selectDatapoint"],
35
- setup(vt, { expose: ht, emit: ft }) {
36
- const pt = R(() => import("./vue-ui-accordion-UewqY6OI.js")), yt = R(() => import("./DataTable-Dt-TIOyY.js")), bt = R(() => import("./PackageVersion-C-4Ee8BQ.js")), gt = R(() => import("./PenAndPaper-Cde-wJ3N.js")), mt = R(() => import("./vue-ui-skeleton-8s4xts8z.js")), wt = R(() => import("./Tooltip-DA0bYKFG.js")), $t = R(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_nested_donuts: kt } = Rt(), C = vt, Q = k(() => !!C.dataset && C.dataset.length), y = h(Ut()), ne = h(!1), re = h(""), Lt = h(null), Oe = h(0), V = h(null), Fe = h(null), ie = h(null), Ne = h(null), Se = h(null), Ae = h(0), Ie = h(0), Ve = h(0), M = h(!0), E = h([]), J = h([]), G = h(!1);
37
- function Pe(l) {
38
- G.value = l, Oe.value += 1;
35
+ setup(ht, { expose: ft, emit: pt }) {
36
+ const yt = E(() => import("./vue-ui-accordion-CcTUbiHq.js")), bt = E(() => import("./DataTable-6BxhjBzt.js")), gt = E(() => import("./PackageVersion-CIX1W_aa.js")), mt = E(() => import("./PenAndPaper-CqJ4wudB.js")), wt = E(() => import("./vue-ui-skeleton-B4KQLEQy.js")), $t = E(() => import("./Tooltip-BTnTpPdO.js")), kt = E(() => import("./UserOptions-lneAyZKu.js")), { vue_ui_nested_donuts: xt } = Ut(), C = ht, Q = k(() => !!C.dataset && C.dataset.length), b = h(Gt()), re = h(!1), ie = h(""), Lt = h(null), Ne = h(0), V = h(null), Se = h(null), de = h(null), Ae = h(null), Ie = h(null), Ve = h(0), Pe = h(0), De = h(0), M = h(!0), B = h([]), J = h([]), G = h(!1);
37
+ function ze(l) {
38
+ G.value = l, Ne.value += 1;
39
39
  }
40
40
  const e = k({
41
41
  get: () => Ee(),
42
42
  set: (l) => l
43
- }), { userOptionsVisible: de, setUserOptionsVisibility: De, keepUserOptionState: ze } = ll({ config: e.value }), { svgRef: Me } = al({
43
+ }), { userOptionsVisible: ce, setUserOptionsVisibility: Me, keepUserOptionState: Be } = ol({ config: e.value }), { svgRef: Z } = sl({
44
44
  config: e.value.style.chart.title
45
45
  });
46
46
  function Ee() {
47
- const l = ct({
47
+ const l = vt({
48
48
  userConfig: C.config,
49
- defaultConfig: kt
49
+ defaultConfig: xt
50
50
  });
51
51
  return l.theme ? {
52
- ...ct({
53
- userConfig: Gt.vue_ui_nested_donuts[l.theme] || C.config,
52
+ ...vt({
53
+ userConfig: Xt.vue_ui_nested_donuts[l.theme] || C.config,
54
54
  defaultConfig: l
55
55
  }),
56
- customPalette: Bt[l.theme] || xe
56
+ customPalette: Yt[l.theme] || _e
57
57
  } : l;
58
58
  }
59
- lt(
59
+ at(
60
60
  () => C.config,
61
61
  (l) => {
62
- e.value = Ee(), de.value = !e.value.userOptions.showOnChartHover, ce(), Ae.value += 1, Ie.value += 1, Ve.value += 1, $.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, $.value.showTable = e.value.table.show, $.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 = Ee(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Ve.value += 1, Pe.value += 1, De.value += 1, $.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, f.value.width = e.value.style.chart.width, f.value.height = e.value.style.chart.height;
63
63
  },
64
64
  { deep: !0 }
65
65
  );
@@ -73,50 +73,50 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
73
73
  left: o
74
74
  };
75
75
  });
76
- function xt(l, s = 1e3, a = 50) {
76
+ function Ct(l, s = 1e3, a = 50) {
77
77
  return new Promise((o) => {
78
78
  const t = l.length;
79
- E.value = Array(t).fill(0), J.value = [];
79
+ B.value = Array(t).fill(0), J.value = [];
80
80
  let u = 0;
81
81
  l.forEach((c, v) => {
82
82
  setTimeout(() => {
83
83
  const N = performance.now();
84
84
  function d(p) {
85
- const _ = Math.min((p - N) / s, 1), be = dt(_), ge = c * be;
86
- E.value[v] = ge, E.value = [...E.value];
87
- const oe = [];
88
- let me = 0;
89
- C.dataset.forEach((se, we) => {
90
- const It = Te(se.series.reduce(
91
- (ke, Le) => ke + Te(z(Le.values).reduce((Pt, Dt) => Pt + Dt, 0)),
85
+ const _ = Math.min((p - N) / s, 1), me = ct(_), we = c * me;
86
+ B.value[v] = we, B.value = [...B.value];
87
+ const se = [];
88
+ let $e = 0;
89
+ C.dataset.forEach((ue, ke) => {
90
+ const Pt = Fe(ue.series.reduce(
91
+ (Le, Ce) => Le + Fe(z(Ce.values).reduce((zt, Mt) => zt + Mt, 0)),
92
92
  0
93
- )), Vt = Te(E.value.slice(me, me + se.series.length).reduce((ke, Le) => ke + Le, 0)), $e = It - Vt;
94
- $e > Number.MIN_VALUE && oe.push({
93
+ )), Dt = Fe(B.value.slice($e, $e + ue.series.length).reduce((Le, Ce) => Le + Ce, 0)), xe = Pt - Dt;
94
+ xe > Number.MIN_VALUE && se.push({
95
95
  name: "__ghost__",
96
- arcOf: se.name,
97
- arcOfId: `${y.value}_${we}`,
98
- id: `ghost_${y.value}_${we}`,
96
+ arcOf: ue.name,
97
+ arcOfId: `${b.value}_${ke}`,
98
+ id: `ghost_${b.value}_${ke}`,
99
99
  seriesIndex: -1,
100
- datasetIndex: we,
100
+ datasetIndex: ke,
101
101
  color: "transparent",
102
- value: $e,
103
- fullValue: $e,
102
+ value: xe,
103
+ fullValue: xe,
104
104
  absoluteValues: [],
105
105
  ghost: !0
106
- }), me += se.series.length;
107
- }), J.value = oe, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
106
+ }), $e += ue.series.length;
107
+ }), J.value = se, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
108
108
  }
109
109
  requestAnimationFrame(d);
110
110
  }, v * a);
111
111
  });
112
112
  });
113
113
  }
114
- at(async () => {
115
- if (ce(), e.value.startAnimation?.show) {
114
+ ot(async () => {
115
+ if (ve(), e.value.startAnimation?.show) {
116
116
  const s = C.dataset.flatMap((a) => a.series).map(
117
117
  (a) => z(a.values).reduce((o, t) => o + t, 0)
118
118
  );
119
- E.value = s.map(() => 0), M.value = !0, J.value = C.dataset.map((a, o) => {
119
+ B.value = s.map(() => 0), M.value = !0, J.value = C.dataset.map((a, o) => {
120
120
  const t = a.series.reduce(
121
121
  (u, c) => u + z(c.values).reduce((v, N) => v + N, 0),
122
122
  0
@@ -124,8 +124,8 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
124
124
  return {
125
125
  name: "__ghost__",
126
126
  arcOf: a.name,
127
- arcOfId: `${y.value}_${o}`,
128
- id: `ghost_${y.value}_${o}`,
127
+ arcOfId: `${b.value}_${o}`,
128
+ id: `ghost_${b.value}_${o}`,
129
129
  seriesIndex: -1,
130
130
  datasetIndex: o,
131
131
  color: "transparent",
@@ -134,7 +134,7 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
134
134
  absoluteValues: [],
135
135
  ghost: !0
136
136
  };
137
- }), await ot(), xt(
137
+ }), await st(), Ct(
138
138
  s,
139
139
  e.value.startAnimation.durationMs,
140
140
  e.value.startAnimation.staggerMs
@@ -144,22 +144,22 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
144
144
  } else
145
145
  M.value = !1;
146
146
  });
147
- const P = st(null), Y = st(null);
148
- at(() => {
149
- ce();
147
+ const P = ut(null), Y = ut(null);
148
+ ot(() => {
149
+ ve();
150
150
  });
151
- function ce() {
152
- if (Yt(C.dataset) && q({
151
+ function ve() {
152
+ if (Wt(C.dataset) && q({
153
153
  componentName: "VueUiNestedDonuts",
154
154
  type: "dataset"
155
155
  }), e.value.responsive) {
156
- const l = jt(() => {
157
- const { width: s, height: a } = el({
156
+ const l = tl(() => {
157
+ const { width: s, height: a } = ll({
158
158
  chart: V.value,
159
- title: e.value.style.chart.title.text ? Fe.value : null,
160
- legend: e.value.style.chart.legend.show ? ie.value : null,
161
- source: Ne.value,
162
- noTitle: Se.value,
159
+ title: e.value.style.chart.title.text ? Se.value : null,
160
+ legend: e.value.style.chart.legend.show ? de.value : null,
161
+ source: Ae.value,
162
+ noTitle: Ie.value,
163
163
  padding: Re.value
164
164
  });
165
165
  requestAnimationFrame(() => {
@@ -169,14 +169,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
169
169
  P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect()), P.value = new ResizeObserver(l), Y.value = V.value.parentNode, P.value.observe(Y.value);
170
170
  }
171
171
  }
172
- zt(() => {
172
+ Bt(() => {
173
173
  P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
174
174
  });
175
- const { isPrinting: Ue, isImaging: Be, generatePdf: Ge, generateImage: Ye } = tl({
176
- elementId: `nested_donuts_${y.value}`,
175
+ const { isPrinting: Ue, isImaging: Ge, generatePdf: Ye, generateImage: Xe } = al({
176
+ elementId: `nested_donuts_${b.value}`,
177
177
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
178
178
  options: e.value.userOptions.print
179
- }), Ct = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), _t = k(() => Xt(e.value.customPalette)), $ = h({
179
+ }), _t = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = k(() => qt(e.value.customPalette)), $ = h({
180
180
  dataLabels: {
181
181
  show: e.value.style.chart.layout.labels.dataLabels.show
182
182
  },
@@ -185,17 +185,17 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
185
185
  }), f = h({
186
186
  width: e.value.style.chart.width,
187
187
  height: e.value.style.chart.height
188
- }), Xe = ft;
189
- function Tt({ datapoint: l, index: s }) {
190
- Xe("selectDatapoint", { datapoint: l, index: s });
188
+ }), We = pt;
189
+ function Ot({ datapoint: l, index: s }) {
190
+ We("selectDatapoint", { datapoint: l, index: s });
191
191
  }
192
- function We({
192
+ function qe({
193
193
  from: l,
194
194
  to: s,
195
195
  duration: a,
196
196
  onUpdate: o,
197
197
  onDone: t,
198
- easing: u = dt
198
+ easing: u = ct
199
199
  }) {
200
200
  const c = performance.now();
201
201
  function v(N) {
@@ -241,23 +241,23 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
241
241
  ...s,
242
242
  total: s.series.filter((o) => !w.value.includes(o.id)).map((o) => z(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
243
243
  datasetIndex: a,
244
- id: `${y.value}_${a}`,
244
+ id: `${b.value}_${a}`,
245
245
  series: s.series.map((o, t) => {
246
246
  const u = z(o.values).reduce((c, v) => c + v, 0);
247
247
  return {
248
248
  name: o.name,
249
249
  arcOf: s.name,
250
- arcOfId: `${y.value}_${a}`,
251
- id: `${y.value}_${a}_${t}`,
250
+ arcOfId: `${b.value}_${a}`,
251
+ id: `${b.value}_${a}_${t}`,
252
252
  seriesIndex: t,
253
253
  datasetIndex: a,
254
- color: Wt(o.color) || _t.value[t] || xe[t % xe.length],
255
- value: M.value ? E.value[l++] ?? 0 : u,
254
+ color: Ht(o.color) || Tt.value[t] || _e[t % _e.length],
255
+ value: M.value ? B.value[l++] ?? 0 : u,
256
256
  absoluteValues: o.values || []
257
257
  };
258
258
  })
259
259
  }));
260
- }), I = k(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), qe = k(() => [...S.value].map((l, s) => {
260
+ }), I = k(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = k(() => [...S.value].map((l, s) => {
261
261
  const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
262
262
  return {
263
263
  ...l,
@@ -268,57 +268,57 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
268
268
  }))
269
269
  };
270
270
  }));
271
- function Ot(l, s, a) {
271
+ function Ft(l, s, a) {
272
272
  let o = 0;
273
273
  for (let t = 0; t < l.length; t += 1)
274
274
  a.includes(l[t]) && (o += 1);
275
275
  return o < s;
276
276
  }
277
- const b = h(qe.value);
278
- lt(
279
- () => qe.value,
280
- (l) => b.value = l
277
+ const g = h(He.value);
278
+ at(
279
+ () => He.value,
280
+ (l) => g.value = l
281
281
  );
282
- function ve(l) {
283
- Xe("selectLegend", l);
282
+ function he(l) {
283
+ We("selectLegend", l);
284
284
  const s = C.dataset.flatMap(
285
- (d, p) => d.series.map((_, be) => ({
286
- value: z(_.values).reduce((ge, oe) => ge + oe, 0),
287
- id: `${y.value}_${p}_${be}`,
288
- arcOfId: `${y.value}_${p}`
285
+ (d, p) => d.series.map((_, me) => ({
286
+ value: z(_.values).reduce((we, se) => we + se, 0),
287
+ id: `${b.value}_${p}_${me}`,
288
+ arcOfId: `${b.value}_${p}`
289
289
  }))
290
290
  ).find((d) => d.id === l.id);
291
291
  if (!s) return;
292
- const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = b.value.flatMap((d) => d.series).find((d) => d.id === l.id);
292
+ const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = g.value.flatMap((d) => d.series).find((d) => d.id === l.id);
293
293
  let u = o ? o.value : 0;
294
294
  const c = S.value.find(
295
295
  (d) => d.id === s.arcOfId
296
296
  );
297
297
  if (!c) return;
298
- const v = c.series.map((d) => d.id), N = Ot(
298
+ const v = c.series.map((d) => d.id), N = Ft(
299
299
  v,
300
300
  v.length - 1,
301
301
  w.value
302
302
  );
303
- 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({
304
304
  from: u,
305
305
  to: a,
306
306
  duration: e.value.serieToggleAnimation.durationMs,
307
307
  onUpdate: (d) => {
308
- b.value = b.value.map((p) => ({
308
+ g.value = g.value.map((p) => ({
309
309
  ...p,
310
310
  series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
311
311
  }));
312
312
  }
313
- }) : b.value = b.value.map((d) => ({
313
+ }) : g.value = g.value.map((d) => ({
314
314
  ...d,
315
315
  series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
316
- }))) : N && (e.value.serieToggleAnimation.show ? We({
316
+ }))) : N && (e.value.serieToggleAnimation.show ? qe({
317
317
  from: u,
318
318
  to: 0,
319
319
  duration: e.value.serieToggleAnimation.durationMs,
320
320
  onUpdate: (d) => {
321
- b.value = b.value.map((p) => ({
321
+ g.value = g.value.map((p) => ({
322
322
  ...p,
323
323
  series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
324
324
  }));
@@ -326,16 +326,16 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
326
326
  onDone: () => {
327
327
  w.value.push(l.id);
328
328
  }
329
- }) : (b.value = b.value.map((d) => ({
329
+ }) : (g.value = g.value.map((d) => ({
330
330
  ...d,
331
331
  series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
332
332
  })), w.value.push(l.id)));
333
333
  }
334
- const Z = k(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), He = k(() => b.value.map((l, s) => I.value - s * I.value / S.value.length)), j = k(() => b.value.map((l, s) => {
335
- const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = I.value - s * I.value / b.value.length, t = M.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
334
+ const j = k(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), Je = k(() => g.value.map((l, s) => I.value - s * I.value / S.value.length)), ee = k(() => g.value.map((l, s) => {
335
+ const a = Math.abs(l.series.map((v) => v.value).reduce((v, N) => v + N, 0)) > 0, o = I.value - s * I.value / g.value.length, t = M.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
336
336
  ...v,
337
337
  value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
338
- })), c = Ce(
338
+ })), c = Te(
339
339
  { series: [
340
340
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
341
341
  ] },
@@ -348,14 +348,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
348
348
  1,
349
349
  360,
350
350
  105.25,
351
- Z.value
351
+ j.value
352
352
  );
353
353
  return {
354
354
  ...l,
355
355
  hasData: a,
356
356
  radius: o,
357
357
  skeleton: c,
358
- donut: Ce(
358
+ donut: Te(
359
359
  { series: u },
360
360
  f.value.width / 2,
361
361
  f.value.height / 2,
@@ -366,14 +366,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
366
366
  1,
367
367
  360,
368
368
  105.25,
369
- Z.value
369
+ j.value
370
370
  )
371
371
  };
372
- })), Je = k(() => [...S.value].map((l, s) => {
372
+ })), Ke = k(() => [...S.value].map((l, s) => {
373
373
  const a = s * I.value / S.value.length;
374
374
  return {
375
375
  sizeRatio: a,
376
- donut: Ce(
376
+ donut: Te(
377
377
  { series: [{ value: 1 }] },
378
378
  f.value.width / 2,
379
379
  f.value.height / 2,
@@ -387,33 +387,33 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
387
387
  I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
388
388
  )[0]
389
389
  };
390
- })), Ke = h(null), ee = h(null), te = h(null), he = h(null);
391
- function Ft({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
392
- Ke.value = l.arcOfId, ee.value = l.id, te.value = a, he.value = {
390
+ })), Qe = h(null), te = h(null), le = h(null), fe = h(null);
391
+ function Nt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
392
+ Qe.value = l.arcOfId, te.value = l.id, le.value = a, fe.value = {
393
393
  datapoint: l,
394
394
  seriesIndex: a,
395
- series: b.value,
395
+ series: g.value,
396
396
  config: e.value
397
397
  };
398
398
  const o = e.value.style.chart.tooltip.customFormat;
399
- if (it(o) && Zt(
399
+ if (dt(o) && el(
400
400
  () => o({
401
401
  seriesIndex: a,
402
402
  datapoint: l,
403
- series: b.value,
403
+ series: g.value,
404
404
  config: e.value
405
405
  })
406
406
  ))
407
- re.value = o({
407
+ ie.value = o({
408
408
  seriesIndex: a,
409
409
  datapoint: l,
410
- series: b.value,
410
+ series: g.value,
411
411
  config: e.value
412
412
  });
413
413
  else {
414
414
  let t = "";
415
415
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
416
- const u = b.value.map((c) => c.series.find((v) => v.seriesIndex === a));
416
+ const u = g.value.map((c) => c.series.find((v) => v.seriesIndex === a));
417
417
  u.forEach((c, v) => {
418
418
  if (!c) return "";
419
419
  t += `
@@ -468,22 +468,22 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
468
468
  s: "%",
469
469
  r: e.value.style.chart.tooltip.roundingPercentage
470
470
  })}</b></div>`);
471
- re.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
471
+ ie.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
472
472
  }
473
- ne.value = !0;
473
+ re.value = !0;
474
474
  }
475
- function fe(l) {
475
+ function pe(l) {
476
476
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
477
477
  }
478
- function Qe(l, s) {
478
+ function Ze(l, s) {
479
479
  if (!e.value.useBlurOnHover)
480
480
  return "";
481
481
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
482
- return [null, void 0].includes(te.value) || te.value === s ? "" : `url(#blur_${y.value})`;
482
+ return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${b.value})`;
483
483
  if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
484
- return [null, void 0].includes(ee.value) || ee.value === l.id ? "" : `url(#blur_${y.value})`;
484
+ return [null, void 0].includes(te.value) || te.value === l.id ? "" : `url(#blur_${b.value})`;
485
485
  }
486
- const pe = k(() => S.value.map((l, s) => {
486
+ const ye = k(() => S.value.map((l, s) => {
487
487
  const a = l.series.filter(
488
488
  (t) => !w.value.includes(t.id)
489
489
  ), o = M.value ? a.map((t) => {
@@ -510,11 +510,11 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
510
510
  datasetIndex: s,
511
511
  total: o,
512
512
  opacity: w.value.includes(t.id) ? 0.5 : 1,
513
- segregate: () => ve(t),
513
+ segregate: () => he(t),
514
514
  isSegregated: w.value.includes(t.id)
515
515
  };
516
516
  });
517
- })), Nt = k(() => ({
517
+ })), St = k(() => ({
518
518
  cy: "nested-donuts-legend",
519
519
  backgroundColor: e.value.style.chart.legend.backgroundColor,
520
520
  color: e.value.style.chart.legend.color,
@@ -522,15 +522,15 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
522
522
  paddingBottom: 12,
523
523
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
524
524
  })), D = k(() => {
525
- const l = b.value.flatMap((a) => a.series.map((o) => ({
525
+ const l = g.value.flatMap((a) => a.series.map((o) => ({
526
526
  name: `${a.name} - ${o.name}`,
527
527
  color: o.color,
528
528
  total: a.total
529
- }))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
529
+ }))), s = g.value.flatMap((a) => a.series.map((o) => o.value));
530
530
  return { head: l, body: s };
531
531
  });
532
- function Ze(l = null) {
533
- ot(() => {
532
+ function je(l = null) {
533
+ st(() => {
534
534
  const s = D.value.head.map((t, u) => [
535
535
  [t.name],
536
536
  [D.value.body[u]],
@@ -541,14 +541,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
541
541
  [e.value.style.chart.title.text],
542
542
  [e.value.style.chart.title.subtitle.text],
543
543
  [[""], ["val"], ["%"]]
544
- ].concat(s), o = Kt(a);
545
- l ? l(o) : Qt({
544
+ ].concat(s), o = Zt(a);
545
+ l ? l(o) : jt({
546
546
  csvContent: o,
547
547
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
548
548
  });
549
549
  });
550
550
  }
551
- const le = k(() => {
551
+ const ae = k(() => {
552
552
  const l = [
553
553
  e.value.table.columnNames.series,
554
554
  e.value.table.columnNames.value,
@@ -596,25 +596,25 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
596
596
  config: a
597
597
  };
598
598
  });
599
- function St() {
599
+ function At() {
600
600
  return S.value;
601
601
  }
602
- function je() {
602
+ function et() {
603
603
  $.value.showTable = !$.value.showTable;
604
604
  }
605
- function et() {
605
+ function tt() {
606
606
  $.value.dataLabels.show = !$.value.dataLabels.show;
607
607
  }
608
- function tt() {
608
+ function lt() {
609
609
  $.value.showTooltip = !$.value.showTooltip;
610
610
  }
611
- const ae = h(!1);
612
- function ye() {
613
- ae.value = !ae.value;
611
+ const oe = h(!1);
612
+ function be() {
613
+ oe.value = !oe.value;
614
614
  }
615
- async function At({ scale: l = 2 } = {}) {
615
+ async function It({ scale: l = 2 } = {}) {
616
616
  if (!V.value) return;
617
- const { width: s, height: a } = V.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: u } = await ul({ domElement: V.value, base64: !0, img: !0, scale: l });
617
+ const { width: s, height: a } = V.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: u } = await rl({ domElement: V.value, base64: !0, img: !0, scale: l });
618
618
  return {
619
619
  imageUri: t,
620
620
  base64: u,
@@ -624,48 +624,55 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
624
624
  aspectRatio: o
625
625
  };
626
626
  }
627
- return ht({
628
- getData: St,
629
- getImage: At,
630
- generatePdf: Ge,
631
- generateCsv: Ze,
632
- generateImage: Ye,
633
- toggleTable: je,
634
- toggleLabels: et,
635
- toggleTooltip: tt,
636
- toggleAnnotator: ye,
637
- toggleFullscreen: Pe
627
+ const ge = h(null);
628
+ function Vt() {
629
+ if (!ge.value) return;
630
+ const { x: l, y: s, width: a, height: o } = ge.value.getBBox();
631
+ Z.value && Z.value.setAttribute("viewBox", `${l} ${s} ${a + Math.min(0, l)} ${o + Math.min(0, s)}`);
632
+ }
633
+ return ft({
634
+ autoSize: Vt,
635
+ getData: At,
636
+ getImage: It,
637
+ generatePdf: Ye,
638
+ generateCsv: je,
639
+ generateImage: Xe,
640
+ toggleTable: et,
641
+ toggleLabels: tt,
642
+ toggleTooltip: lt,
643
+ toggleAnnotator: be,
644
+ toggleFullscreen: ze
638
645
  }), (l, s) => (n(), i("div", {
639
646
  ref_key: "nestedDonutsChart",
640
647
  ref: V,
641
- class: U(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
642
- style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
643
- id: `nested_donuts_${y.value}`,
644
- onMouseenter: s[3] || (s[3] = () => r(De)(!0)),
645
- onMouseleave: s[4] || (s[4] = () => r(De)(!1))
648
+ class: R(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
649
+ style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
650
+ id: `nested_donuts_${b.value}`,
651
+ onMouseenter: s[3] || (s[3] = () => r(Me)(!0)),
652
+ onMouseleave: s[4] || (s[4] = () => r(Me)(!1))
646
653
  }, [
647
- e.value.userOptions.buttons.annotator ? (n(), B(r(gt), {
654
+ e.value.userOptions.buttons.annotator ? (n(), U(r(mt), {
648
655
  key: 0,
649
- svgRef: r(Me),
656
+ svgRef: r(Z),
650
657
  backgroundColor: e.value.style.chart.backgroundColor,
651
658
  color: e.value.style.chart.color,
652
- active: ae.value,
653
- onClose: ye
659
+ active: oe.value,
660
+ onClose: be
654
661
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
655
- Ct.value ? (n(), i("div", {
662
+ _t.value ? (n(), i("div", {
656
663
  key: 1,
657
664
  ref_key: "noTitle",
658
- ref: Se,
665
+ ref: Ie,
659
666
  class: "vue-data-ui-no-title-space",
660
667
  style: "height:36px; width: 100%;background:transparent"
661
668
  }, null, 512)) : m("", !0),
662
669
  e.value.style.chart.title.text ? (n(), i("div", {
663
670
  key: 2,
664
671
  ref_key: "chartTitle",
665
- ref: Fe
672
+ ref: Se
666
673
  }, [
667
- (n(), B(ol, {
668
- key: `title_${Ae.value}`,
674
+ (n(), U(ul, {
675
+ key: `title_${Ve.value}`,
669
676
  config: {
670
677
  title: {
671
678
  cy: "donut-div-title",
@@ -678,14 +685,14 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
678
685
  }
679
686
  }, null, 8, ["config"]))
680
687
  ], 512)) : m("", !0),
681
- e.value.userOptions.show && Q.value && (r(ze) || r(de)) ? (n(), B(r($t), {
688
+ e.value.userOptions.show && Q.value && (r(Be) || r(ce)) ? (n(), U(r(kt), {
682
689
  ref: "details",
683
- key: `user_option_${Oe.value}`,
690
+ key: `user_option_${Ne.value}`,
684
691
  backgroundColor: e.value.style.chart.backgroundColor,
685
692
  color: e.value.style.chart.color,
686
693
  isPrinting: r(Ue),
687
- isImaging: r(Be),
688
- uid: y.value,
694
+ isImaging: r(Ge),
695
+ uid: b.value,
689
696
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
690
697
  hasPdf: e.value.userOptions.buttons.pdf,
691
698
  hasXls: e.value.userOptions.buttons.csv,
@@ -699,81 +706,81 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
699
706
  chartElement: V.value,
700
707
  position: e.value.userOptions.position,
701
708
  hasAnnotator: e.value.userOptions.buttons.annotator,
702
- isAnnotation: ae.value,
709
+ isAnnotation: oe.value,
703
710
  callbacks: e.value.userOptions.callbacks,
704
711
  printScale: e.value.userOptions.print.scale,
705
- onToggleFullscreen: Pe,
706
- onGeneratePdf: r(Ge),
707
- onGenerateCsv: Ze,
708
- onGenerateImage: r(Ye),
709
- onToggleTable: je,
710
- onToggleLabels: et,
711
- onToggleTooltip: tt,
712
- onToggleAnnotator: ye,
713
- style: ue({
714
- visibility: r(ze) ? r(de) ? "visible" : "hidden" : "visible"
712
+ onToggleFullscreen: ze,
713
+ onGeneratePdf: r(Ye),
714
+ onGenerateCsv: je,
715
+ onGenerateImage: r(Xe),
716
+ onToggleTable: et,
717
+ onToggleLabels: tt,
718
+ onToggleTooltip: lt,
719
+ onToggleAnnotator: be,
720
+ style: ne({
721
+ visibility: r(Be) ? r(ce) ? "visible" : "hidden" : "visible"
715
722
  })
716
- }, Mt({ _: 2 }, [
723
+ }, Et({ _: 2 }, [
717
724
  l.$slots.menuIcon ? {
718
725
  name: "menuIcon",
719
- fn: L(({ isOpen: a, color: o }) => [
720
- x(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
726
+ fn: x(({ isOpen: a, color: o }) => [
727
+ L(l.$slots, "menuIcon", X(W({ isOpen: a, color: o })), void 0, !0)
721
728
  ]),
722
729
  key: "0"
723
730
  } : void 0,
724
731
  l.$slots.optionTooltip ? {
725
732
  name: "optionTooltip",
726
- fn: L(() => [
727
- x(l.$slots, "optionTooltip", {}, void 0, !0)
733
+ fn: x(() => [
734
+ L(l.$slots, "optionTooltip", {}, void 0, !0)
728
735
  ]),
729
736
  key: "1"
730
737
  } : void 0,
731
738
  l.$slots.optionPdf ? {
732
739
  name: "optionPdf",
733
- fn: L(() => [
734
- x(l.$slots, "optionPdf", {}, void 0, !0)
740
+ fn: x(() => [
741
+ L(l.$slots, "optionPdf", {}, void 0, !0)
735
742
  ]),
736
743
  key: "2"
737
744
  } : void 0,
738
745
  l.$slots.optionCsv ? {
739
746
  name: "optionCsv",
740
- fn: L(() => [
741
- x(l.$slots, "optionCsv", {}, void 0, !0)
747
+ fn: x(() => [
748
+ L(l.$slots, "optionCsv", {}, void 0, !0)
742
749
  ]),
743
750
  key: "3"
744
751
  } : void 0,
745
752
  l.$slots.optionImg ? {
746
753
  name: "optionImg",
747
- fn: L(() => [
748
- x(l.$slots, "optionImg", {}, void 0, !0)
754
+ fn: x(() => [
755
+ L(l.$slots, "optionImg", {}, void 0, !0)
749
756
  ]),
750
757
  key: "4"
751
758
  } : void 0,
752
759
  l.$slots.optionTable ? {
753
760
  name: "optionTable",
754
- fn: L(() => [
755
- x(l.$slots, "optionTable", {}, void 0, !0)
761
+ fn: x(() => [
762
+ L(l.$slots, "optionTable", {}, void 0, !0)
756
763
  ]),
757
764
  key: "5"
758
765
  } : void 0,
759
766
  l.$slots.optionLabels ? {
760
767
  name: "optionLabels",
761
- fn: L(() => [
762
- x(l.$slots, "optionLabels", {}, void 0, !0)
768
+ fn: x(() => [
769
+ L(l.$slots, "optionLabels", {}, void 0, !0)
763
770
  ]),
764
771
  key: "6"
765
772
  } : void 0,
766
773
  l.$slots.optionFullscreen ? {
767
774
  name: "optionFullscreen",
768
- fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
769
- x(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
775
+ fn: x(({ toggleFullscreen: a, isFullscreen: o }) => [
776
+ L(l.$slots, "optionFullscreen", X(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
770
777
  ]),
771
778
  key: "7"
772
779
  } : void 0,
773
780
  l.$slots.optionAnnotator ? {
774
781
  name: "optionAnnotator",
775
- fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
776
- x(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
782
+ fn: x(({ toggleAnnotator: a, isAnnotator: o }) => [
783
+ L(l.$slots, "optionAnnotator", X(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
777
784
  ]),
778
785
  key: "8"
779
786
  } : void 0
@@ -781,252 +788,259 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
781
788
  Q.value ? (n(), i("svg", {
782
789
  key: 4,
783
790
  ref_key: "svgRef",
784
- ref: Me,
785
- xmlns: r(qt),
786
- class: U({
791
+ ref: Z,
792
+ xmlns: r(Jt),
793
+ class: R({
787
794
  "vue-data-ui-fullscreen--on": G.value,
788
- "vue-data-ui-fulscreen--off": !G.value
795
+ "vue-data-ui-fulscreen--off": !G.value,
796
+ "vue-data-ui-svg": !0
789
797
  }),
790
798
  viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
791
- style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
799
+ style: ne(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
792
800
  }, [
793
- ut(r(bt)),
794
- l.$slots["chart-background"] ? (n(), i("foreignObject", {
795
- key: 0,
796
- x: 0,
797
- y: 0,
798
- width: f.value.width <= 0 ? 1e-3 : f.value.width,
799
- height: f.value.height < 0 ? 1e-3 : f.value.height,
800
- style: {
801
- pointerEvents: "none"
802
- }
801
+ y("g", {
802
+ ref_key: "G",
803
+ ref: ge,
804
+ class: "vue-data-ui-g"
803
805
  }, [
804
- x(l.$slots, "chart-background", {}, void 0, !0)
805
- ], 8, dl)) : m("", !0),
806
- g("defs", null, [
807
- (n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("radialGradient", {
808
- id: `radial_${y.value}_${o}`
809
- }, [
810
- s[5] || (s[5] = g("stop", {
811
- offset: "0%",
812
- "stop-color": "#FFFFFF",
813
- "stop-opacity": "0"
814
- }, null, -1)),
815
- g("stop", {
816
- offset: `${(1 - Z.value / He.value[o]) * 100}%`,
817
- "stop-color": r(Ht)("#FFFFFF", 0),
818
- "stop-opacity": "0"
819
- }, null, 8, vl),
820
- g("stop", {
821
- offset: `${(1 - Z.value / He.value[o] / 2) * 100}%`,
822
- "stop-color": "#FFFFFF",
823
- "stop-opacity": e.value.style.chart.gradientIntensity / 100
824
- }, null, 8, hl),
825
- s[6] || (s[6] = g("stop", {
826
- offset: "100%",
827
- "stop-color": "#FFFFFF",
828
- "stop-opacity": "0"
829
- }, null, -1))
830
- ], 8, cl))), 256))
831
- ]),
832
- g("defs", null, [
833
- g("filter", {
834
- id: `blur_${y.value}`,
835
- x: "-50%",
836
- y: "-50%",
837
- width: "200%",
838
- height: "200%"
839
- }, [
840
- g("feGaussianBlur", {
841
- in: "SourceGraphic",
842
- stdDeviation: 2,
843
- id: `blur_std_${y.value}`
844
- }, null, 8, pl),
845
- s[7] || (s[7] = g("feColorMatrix", {
846
- type: "saturate",
847
- values: "0"
848
- }, null, -1))
849
- ], 8, fl),
850
- g("filter", {
851
- id: `shadow_${y.value}`,
852
- "color-interpolation-filters": "sRGB"
806
+ nt(r(gt)),
807
+ l.$slots["chart-background"] ? (n(), i("foreignObject", {
808
+ key: 0,
809
+ x: 0,
810
+ y: 0,
811
+ width: f.value.width <= 0 ? 1e-3 : f.value.width,
812
+ height: f.value.height < 0 ? 1e-3 : f.value.height,
813
+ style: {
814
+ pointerEvents: "none"
815
+ }
853
816
  }, [
854
- g("feDropShadow", {
855
- dx: "0",
856
- dy: "0",
857
- stdDeviation: "10",
858
- "flood-opacity": "0.5",
859
- "flood-color": e.value.style.chart.layout.donut.shadowColor
860
- }, null, 8, bl)
861
- ], 8, yl)
862
- ]),
863
- (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
864
- a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
865
- g("path", {
866
- class: "vue-ui-donut-arc-path",
867
- d: t.arcSlice,
868
- fill: t.color,
869
- stroke: e.value.style.chart.backgroundColor,
870
- "stroke-width": e.value.style.chart.layout.donut.borderWidth,
871
- filter: Qe(t, u)
872
- }, null, 8, gl)
873
- ]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
874
- g("path", {
875
- class: "vue-ui-donut-arc-path",
876
- d: t.arcSlice,
877
- fill: t.color,
878
- stroke: e.value.style.chart.backgroundColor,
879
- "stroke-width": e.value.style.chart.layout.donut.borderWidth
880
- }, null, 8, ml)
881
- ]))), 256))
882
- ]))), 256)),
883
- e.value.style.chart.useGradient ? (n(), i("g", wl, [
884
- (n(!0), i(T, null, O(Je.value, (a, o) => (n(), i("g", null, [
885
- g("path", {
886
- d: a.donut.arcSlice,
887
- fill: `url(#radial_${y.value}_${o})`,
888
- stroke: "transparent",
889
- "stroke-width": "0"
890
- }, null, 8, $l)
891
- ]))), 256))
892
- ])) : m("", !0),
893
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", kl, [
894
- (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
895
- (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
896
- u === 0 && f.value.width && f.value.height ? (n(), i("text", {
897
- key: 0,
898
- class: U({ animated: e.value.useCssAnimation }),
899
- x: f.value.width / 2,
900
- y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
901
- "text-anchor": "middle",
902
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
903
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
904
- fill: e.value.style.chart.layout.labels.dataLabels.color
905
- }, A(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Jt)({
906
- source: a.name,
907
- length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
908
- }) : a.name), 11, Ll)) : m("", !0)
909
- ]))), 256))
910
- ]))), 256))
911
- ])) : m("", !0),
912
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", xl, [
913
- (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
914
- (n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
915
- filter: Qe(t, u)
817
+ L(l.$slots, "chart-background", {}, void 0, !0)
818
+ ], 8, vl)) : m("", !0),
819
+ y("defs", null, [
820
+ (n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("radialGradient", {
821
+ id: `radial_${b.value}_${o}`
916
822
  }, [
917
- nt(g("text", {
918
- class: U({ animated: e.value.useCssAnimation }),
919
- opacity: fe(t) ? 1 : 0,
920
- "text-anchor": r(H)(t, !0).anchor,
921
- x: r(H)(
922
- t,
923
- !1,
924
- e.value.style.chart.layout.labels.dataLabels.offsetX
925
- ).x || 0,
926
- y: r(_e)(
927
- t,
928
- e.value.style.chart.layout.labels.dataLabels.offsetY,
929
- e.value.style.chart.layout.labels.dataLabels.offsetY
930
- ),
931
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
932
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
933
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
934
- }, A(r(F)({
935
- v: t.proportion * 100,
936
- s: "%",
937
- r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
938
- })), 11, _l), [
939
- [
940
- rt,
941
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
942
- ]
943
- ]),
944
- nt(g("text", {
945
- class: U({ animated: e.value.useCssAnimation }),
946
- opacity: fe(t) ? 1 : 0,
947
- "text-anchor": r(H)(t, !0).anchor,
948
- x: r(H)(
949
- t,
950
- !1,
951
- e.value.style.chart.layout.labels.dataLabels.offsetX
952
- ).x || 0,
953
- y: r(_e)(
954
- t,
955
- e.value.style.chart.layout.labels.dataLabels.offsetY,
956
- e.value.style.chart.layout.labels.dataLabels.offsetY
957
- ) + e.value.style.chart.layout.labels.dataLabels.fontSize,
958
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
959
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
960
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
961
- }, " (" + A(r(K)(
962
- e.value.style.chart.layout.labels.dataLabels.formatter,
963
- t.value,
964
- r(F)({
965
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
966
- v: t.value,
967
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
968
- r: e.value.style.chart.layout.labels.dataLabels.roundingValue
969
- }),
970
- { datapoint: t, seriesIndex: o, datapointIndex: u }
971
- )) + ") ", 11, Tl), [
972
- [
973
- rt,
974
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
975
- ]
976
- ]),
977
- fe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
978
- key: 0,
979
- class: U({ animated: e.value.useCssAnimation }),
980
- "text-anchor": r(H)(t, !0).anchor,
981
- x: r(H)(
982
- t,
983
- !1,
984
- e.value.style.chart.layout.labels.dataLabels.offsetX
985
- ).x || 0,
986
- y: r(_e)(
987
- t,
988
- e.value.style.chart.layout.labels.dataLabels.offsetY,
989
- e.value.style.chart.layout.labels.dataLabels.offsetY
990
- ),
991
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
992
- "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
993
- "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
994
- }, A(r(K)(
995
- e.value.style.chart.layout.labels.dataLabels.formatter,
996
- t.value,
997
- r(F)({
998
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
999
- v: t.value,
1000
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1001
- r: e.value.style.chart.layout.labels.dataLabels.roundingValue
823
+ s[5] || (s[5] = y("stop", {
824
+ offset: "0%",
825
+ "stop-color": "#FFFFFF",
826
+ "stop-opacity": "0"
827
+ }, null, -1)),
828
+ y("stop", {
829
+ offset: `${(1 - j.value / Je.value[o]) * 100}%`,
830
+ "stop-color": r(Kt)("#FFFFFF", 0),
831
+ "stop-opacity": "0"
832
+ }, null, 8, fl),
833
+ y("stop", {
834
+ offset: `${(1 - j.value / Je.value[o] / 2) * 100}%`,
835
+ "stop-color": "#FFFFFF",
836
+ "stop-opacity": e.value.style.chart.gradientIntensity / 100
837
+ }, null, 8, pl),
838
+ s[6] || (s[6] = y("stop", {
839
+ offset: "100%",
840
+ "stop-color": "#FFFFFF",
841
+ "stop-opacity": "0"
842
+ }, null, -1))
843
+ ], 8, hl))), 256))
844
+ ]),
845
+ y("defs", null, [
846
+ y("filter", {
847
+ id: `blur_${b.value}`,
848
+ x: "-50%",
849
+ y: "-50%",
850
+ width: "200%",
851
+ height: "200%"
852
+ }, [
853
+ y("feGaussianBlur", {
854
+ in: "SourceGraphic",
855
+ stdDeviation: 2,
856
+ id: `blur_std_${b.value}`
857
+ }, null, 8, bl),
858
+ s[7] || (s[7] = y("feColorMatrix", {
859
+ type: "saturate",
860
+ values: "0"
861
+ }, null, -1))
862
+ ], 8, yl),
863
+ y("filter", {
864
+ id: `shadow_${b.value}`,
865
+ "color-interpolation-filters": "sRGB"
866
+ }, [
867
+ y("feDropShadow", {
868
+ dx: "0",
869
+ dy: "0",
870
+ stdDeviation: "10",
871
+ "flood-opacity": "0.5",
872
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
873
+ }, null, 8, ml)
874
+ ], 8, gl)
875
+ ]),
876
+ (n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
877
+ a.hasData ? (n(!0), i(T, { key: 0 }, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
878
+ y("path", {
879
+ class: "vue-ui-donut-arc-path",
880
+ d: t.arcSlice,
881
+ fill: t.color,
882
+ stroke: e.value.style.chart.backgroundColor,
883
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
884
+ filter: Ze(t, u)
885
+ }, null, 8, wl)
886
+ ]))), 256)) : (n(!0), i(T, { key: 1 }, O(a.skeleton, (t, u) => (n(), i("g", null, [
887
+ y("path", {
888
+ class: "vue-ui-donut-arc-path",
889
+ d: t.arcSlice,
890
+ fill: t.color,
891
+ stroke: e.value.style.chart.backgroundColor,
892
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth
893
+ }, null, 8, $l)
894
+ ]))), 256))
895
+ ]))), 256)),
896
+ e.value.style.chart.useGradient ? (n(), i("g", kl, [
897
+ (n(!0), i(T, null, O(Ke.value, (a, o) => (n(), i("g", null, [
898
+ y("path", {
899
+ d: a.donut.arcSlice,
900
+ fill: `url(#radial_${b.value}_${o})`,
901
+ stroke: "transparent",
902
+ "stroke-width": "0"
903
+ }, null, 8, xl)
904
+ ]))), 256))
905
+ ])) : m("", !0),
906
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", Ll, [
907
+ (n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
908
+ (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
909
+ u === 0 && f.value.width && f.value.height ? (n(), i("text", {
910
+ key: 0,
911
+ class: R({ animated: e.value.useCssAnimation }),
912
+ x: f.value.width / 2,
913
+ y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
914
+ "text-anchor": "middle",
915
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
916
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
917
+ fill: e.value.style.chart.layout.labels.dataLabels.color
918
+ }, A(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Qt)({
919
+ source: a.name,
920
+ length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
921
+ }) : a.name), 11, Cl)) : m("", !0)
922
+ ]))), 256))
923
+ ]))), 256))
924
+ ])) : m("", !0),
925
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", _l, [
926
+ (n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
927
+ (n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
928
+ filter: Ze(t, u)
929
+ }, [
930
+ rt(y("text", {
931
+ class: R({ animated: e.value.useCssAnimation }),
932
+ opacity: pe(t) ? 1 : 0,
933
+ "text-anchor": r(H)(t, !0).anchor,
934
+ x: r(H)(
935
+ t,
936
+ !1,
937
+ e.value.style.chart.layout.labels.dataLabels.offsetX
938
+ ).x || 0,
939
+ y: r(Oe)(
940
+ t,
941
+ e.value.style.chart.layout.labels.dataLabels.offsetY,
942
+ e.value.style.chart.layout.labels.dataLabels.offsetY
943
+ ),
944
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
945
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
946
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
947
+ }, A(r(F)({
948
+ v: t.proportion * 100,
949
+ s: "%",
950
+ r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
951
+ })), 11, Ol), [
952
+ [
953
+ it,
954
+ $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
955
+ ]
956
+ ]),
957
+ rt(y("text", {
958
+ class: R({ animated: e.value.useCssAnimation }),
959
+ opacity: pe(t) ? 1 : 0,
960
+ "text-anchor": r(H)(t, !0).anchor,
961
+ x: r(H)(
962
+ t,
963
+ !1,
964
+ e.value.style.chart.layout.labels.dataLabels.offsetX
965
+ ).x || 0,
966
+ y: r(Oe)(
967
+ t,
968
+ e.value.style.chart.layout.labels.dataLabels.offsetY,
969
+ e.value.style.chart.layout.labels.dataLabels.offsetY
970
+ ) + e.value.style.chart.layout.labels.dataLabels.fontSize,
971
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
972
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
973
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
974
+ }, " (" + A(r(K)(
975
+ e.value.style.chart.layout.labels.dataLabels.formatter,
976
+ t.value,
977
+ r(F)({
978
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
979
+ v: t.value,
980
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
981
+ r: e.value.style.chart.layout.labels.dataLabels.roundingValue
982
+ }),
983
+ { datapoint: t, seriesIndex: o, datapointIndex: u }
984
+ )) + ") ", 11, Fl), [
985
+ [
986
+ it,
987
+ $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
988
+ ]
989
+ ]),
990
+ pe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
991
+ key: 0,
992
+ class: R({ animated: e.value.useCssAnimation }),
993
+ "text-anchor": r(H)(t, !0).anchor,
994
+ x: r(H)(
995
+ t,
996
+ !1,
997
+ e.value.style.chart.layout.labels.dataLabels.offsetX
998
+ ).x || 0,
999
+ y: r(Oe)(
1000
+ t,
1001
+ e.value.style.chart.layout.labels.dataLabels.offsetY,
1002
+ e.value.style.chart.layout.labels.dataLabels.offsetY
1003
+ ),
1004
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1005
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1006
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1007
+ }, A(r(K)(
1008
+ e.value.style.chart.layout.labels.dataLabels.formatter,
1009
+ t.value,
1010
+ r(F)({
1011
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1012
+ v: t.value,
1013
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1014
+ r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1015
+ }),
1016
+ { datapoint: t, seriesIndex: o, datapointIndex: u }
1017
+ )), 11, Nl)) : m("", !0)
1018
+ ], 8, Tl))), 256))
1019
+ ]))), 256))
1020
+ ])) : m("", !0),
1021
+ (n(!0), i(T, null, O(ee.value, (a, o) => (n(), i("g", null, [
1022
+ (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
1023
+ y("path", {
1024
+ d: t.arcSlice,
1025
+ fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
1026
+ onMouseenter: (c) => Nt({
1027
+ datapoint: t,
1028
+ seriesIndex: t.seriesIndex
1002
1029
  }),
1003
- { datapoint: t, seriesIndex: o, datapointIndex: u }
1004
- )), 11, Ol)) : m("", !0)
1005
- ], 8, Cl))), 256))
1006
- ]))), 256))
1007
- ])) : m("", !0),
1008
- (n(!0), i(T, null, O(j.value, (a, o) => (n(), i("g", null, [
1009
- (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
1010
- g("path", {
1011
- d: t.arcSlice,
1012
- fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
1013
- onMouseenter: (c) => Ft({
1014
- datapoint: t,
1015
- seriesIndex: t.seriesIndex
1016
- }),
1017
- onClick: (c) => Tt({ datapoint: t, index: u }),
1018
- onMouseleave: s[0] || (s[0] = (c) => {
1019
- ne.value = !1, Ke.value = null, ee.value = null, te.value = null;
1020
- })
1021
- }, null, 40, Fl)
1022
- ]))), 256))
1023
- ]))), 256)),
1024
- x(l.$slots, "svg", { svg: f.value }, void 0, !0)
1025
- ], 14, il)) : m("", !0),
1026
- l.$slots.watermark ? (n(), i("div", Nl, [
1027
- x(l.$slots, "watermark", X(W({ isPrinting: r(Ue) || r(Be) })), void 0, !0)
1030
+ onClick: (c) => Ot({ datapoint: t, index: u }),
1031
+ onMouseleave: s[0] || (s[0] = (c) => {
1032
+ re.value = !1, Qe.value = null, te.value = null, le.value = null;
1033
+ })
1034
+ }, null, 40, Sl)
1035
+ ]))), 256))
1036
+ ]))), 256)),
1037
+ L(l.$slots, "svg", { svg: f.value }, void 0, !0)
1038
+ ], 512)
1039
+ ], 14, cl)) : m("", !0),
1040
+ l.$slots.watermark ? (n(), i("div", Al, [
1041
+ L(l.$slots, "watermark", X(W({ isPrinting: r(Ue) || r(Ge) })), void 0, !0)
1028
1042
  ])) : m("", !0),
1029
- Q.value ? m("", !0) : (n(), B(r(mt), {
1043
+ Q.value ? m("", !0) : (n(), U(r(wt), {
1030
1044
  key: 6,
1031
1045
  config: {
1032
1046
  type: "donut",
@@ -1038,8 +1052,8 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
1038
1052
  }
1039
1053
  }
1040
1054
  }, null, 8, ["config"])),
1041
- ut(r(wt), {
1042
- show: $.value.showTooltip && ne.value,
1055
+ nt(r($t), {
1056
+ show: $.value.showTooltip && re.value,
1043
1057
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1044
1058
  color: e.value.style.chart.tooltip.color,
1045
1059
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1050,37 +1064,37 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
1050
1064
  position: e.value.style.chart.tooltip.position,
1051
1065
  offsetY: e.value.style.chart.tooltip.offsetY,
1052
1066
  parent: V.value,
1053
- content: re.value,
1067
+ content: ie.value,
1054
1068
  isFullscreen: G.value,
1055
- isCustom: r(it)(e.value.style.chart.tooltip.customFormat)
1069
+ isCustom: r(dt)(e.value.style.chart.tooltip.customFormat)
1056
1070
  }, {
1057
- "tooltip-before": L(() => [
1058
- x(l.$slots, "tooltip-before", X(W({ ...he.value })), void 0, !0)
1071
+ "tooltip-before": x(() => [
1072
+ L(l.$slots, "tooltip-before", X(W({ ...fe.value })), void 0, !0)
1059
1073
  ]),
1060
- "tooltip-after": L(() => [
1061
- x(l.$slots, "tooltip-after", X(W({ ...he.value })), void 0, !0)
1074
+ "tooltip-after": x(() => [
1075
+ L(l.$slots, "tooltip-after", X(W({ ...fe.value })), void 0, !0)
1062
1076
  ]),
1063
1077
  _: 3
1064
1078
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1065
1079
  e.value.style.chart.legend.show ? (n(), i("div", {
1066
1080
  key: 7,
1067
1081
  ref_key: "chartLegend",
1068
- ref: ie,
1069
- class: U({ "vue-ui-nested-donuts-legend": pe.value.length > 1 })
1082
+ ref: de,
1083
+ class: R({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1070
1084
  }, [
1071
- (n(!0), i(T, null, O(pe.value, (a, o) => (n(), B(sl, {
1072
- key: `legend_${o}_${Ve.value}`,
1085
+ (n(!0), i(T, null, O(ye.value, (a, o) => (n(), U(nl, {
1086
+ key: `legend_${o}_${De.value}`,
1073
1087
  legendSet: a,
1074
- config: Nt.value,
1075
- onClickMarker: s[1] || (s[1] = ({ legend: t }) => ve(t))
1088
+ config: St.value,
1089
+ onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
1076
1090
  }, {
1077
- legendTitle: L(({ titleSet: t }) => [
1078
- t[0] && t[0].arcOf ? (n(), i("div", Sl, A(t[0].arcOf), 1)) : m("", !0)
1091
+ legendTitle: x(({ titleSet: t }) => [
1092
+ t[0] && t[0].arcOf ? (n(), i("div", Il, A(t[0].arcOf), 1)) : m("", !0)
1079
1093
  ]),
1080
- item: L(({ legend: t, index: u }) => [
1081
- g("div", {
1082
- onClick: (c) => ve(t),
1083
- style: ue(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
1094
+ item: x(({ legend: t, index: u }) => [
1095
+ y("div", {
1096
+ onClick: (c) => he(t),
1097
+ style: ne(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
1084
1098
  }, A(t.name) + A(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + A(e.value.style.chart.legend.showValue ? r(K)(
1085
1099
  e.value.style.chart.layout.labels.dataLabels.formatter,
1086
1100
  t.value,
@@ -1095,7 +1109,7 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
1095
1109
  v: t.value / t.total * 100,
1096
1110
  s: "%",
1097
1111
  r: e.value.style.chart.legend.roundingPercentage
1098
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Al)
1112
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Vl)
1099
1113
  ]),
1100
1114
  _: 2
1101
1115
  }, 1032, ["legendSet", "config"]))), 128))
@@ -1103,19 +1117,19 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
1103
1117
  e.value.style.chart.legend.show ? m("", !0) : (n(), i("div", {
1104
1118
  key: 8,
1105
1119
  ref_key: "chartLegend",
1106
- ref: ie
1120
+ ref: de
1107
1121
  }, [
1108
- x(l.$slots, "legend", { legend: pe.value }, void 0, !0)
1122
+ L(l.$slots, "legend", { legend: ye.value }, void 0, !0)
1109
1123
  ], 512)),
1110
1124
  l.$slots.source ? (n(), i("div", {
1111
1125
  key: 9,
1112
1126
  ref_key: "source",
1113
- ref: Ne,
1127
+ ref: Ae,
1114
1128
  dir: "auto"
1115
1129
  }, [
1116
- x(l.$slots, "source", {}, void 0, !0)
1130
+ L(l.$slots, "source", {}, void 0, !0)
1117
1131
  ], 512)) : m("", !0),
1118
- Q.value ? (n(), B(r(pt), {
1132
+ Q.value ? (n(), U(r(yt), {
1119
1133
  key: 10,
1120
1134
  hideDetails: "",
1121
1135
  config: {
@@ -1131,33 +1145,33 @@ const rl = ["id"], il = ["xmlns", "viewBox"], dl = ["width", "height"], cl = ["i
1131
1145
  }
1132
1146
  }
1133
1147
  }, {
1134
- content: L(() => [
1135
- (n(), B(r(yt), {
1136
- key: `table_${Ie.value}`,
1137
- colNames: le.value.colNames,
1138
- head: le.value.head,
1139
- body: le.value.body,
1140
- config: le.value.config,
1148
+ content: x(() => [
1149
+ (n(), U(r(bt), {
1150
+ key: `table_${Pe.value}`,
1151
+ colNames: ae.value.colNames,
1152
+ head: ae.value.head,
1153
+ body: ae.value.body,
1154
+ config: ae.value.config,
1141
1155
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1142
1156
  onClose: s[2] || (s[2] = (a) => $.value.showTable = !1)
1143
1157
  }, {
1144
- th: L(({ th: a }) => [
1145
- g("div", {
1158
+ th: x(({ th: a }) => [
1159
+ y("div", {
1146
1160
  innerHTML: a,
1147
1161
  style: { display: "flex", "align-items": "center" }
1148
- }, null, 8, Il)
1162
+ }, null, 8, Pl)
1149
1163
  ]),
1150
- td: L(({ td: a }) => [
1151
- Et(A(a.name || a), 1)
1164
+ td: x(({ td: a }) => [
1165
+ Rt(A(a.name || a), 1)
1152
1166
  ]),
1153
1167
  _: 1
1154
1168
  }, 8, ["colNames", "head", "body", "config", "title"]))
1155
1169
  ]),
1156
1170
  _: 1
1157
1171
  }, 8, ["config"])) : m("", !0)
1158
- ], 46, rl));
1172
+ ], 46, dl));
1159
1173
  }
1160
- }, Wl = /* @__PURE__ */ nl(Vl, [["__scopeId", "data-v-4c602cbf"]]);
1174
+ }, Hl = /* @__PURE__ */ il(Dl, [["__scopeId", "data-v-49c37248"]]);
1161
1175
  export {
1162
- Wl as default
1176
+ Hl as default
1163
1177
  };