vue-data-ui 3.0.2 → 3.0.3

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-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
  90. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as q, computed as C, ref as h, toRefs as Wt, watch as re, onMounted as qt, shallowRef as ct, onBeforeUnmount as Ht, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as U, createCommentVNode as $, createVNode as ht, createSlots as Jt, withCtx as x, renderSlot as _, normalizeProps as H, guardReactiveProps as J, createElementVNode as y, Fragment as A, renderList as T, toDisplayString as O, withDirectives as ft, vShow as yt, createTextVNode as Kt, nextTick as pt } from "vue";
2
- import { u as Qt, c as Zt, t as jt, a as ea, p as Se, b as ta, C as Ie, o as aa, f as K, d as la, G as M, e as oa, m as Ve, i as F, X as sa, s as ua, L as bt, q as Pe, r as Q, k as j, y as gt, v as na, w as ra, z as ia, T as mt, h as De } from "./index-B9Ct1B_p.js";
3
- import { t as da, u as va } from "./useResponsive-DfdjqQps.js";
4
- import { u as ca, B as ha } from "./useLoading-D7YHNtLX.js";
5
- import { u as fa } from "./usePrinter-DcZXg1hH.js";
6
- import { u as wt } from "./useNestedProp-C0gKxLur.js";
7
- import { u as ya } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as pa } from "./useChartAccessibility-9icAAmYg.js";
9
- import ba from "./img-Cv4nScI0.js";
10
- import ga from "./Title-CntvKJss.js";
11
- import ma from "./Legend-CQsASoei.js";
12
- import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["id"], xa = ["offset", "stop-color"], _a = ["offset", "stop-opacity"], Aa = ["id"], Ta = ["id"], Na = ["id"], Fa = ["flood-color"], Oa = ["id", "d"], Sa = ["d", "fill", "stroke", "stroke-width", "filter"], Ia = ["d", "fill", "stroke", "stroke-width"], Va = { key: 1 }, Pa = ["d", "fill"], Da = { key: 2 }, za = ["font-size", "font-weight", "fill", "dy"], Ma = ["href"], Ea = ["x", "y", "font-size", "font-weight", "fill"], Ba = { key: 3 }, Ra = ["filter"], Ua = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ga = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ya = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Xa = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Wa = {
1
+ import { defineAsyncComponent as q, computed as C, ref as c, toRefs as qt, watch as re, onMounted as Ht, shallowRef as ht, onBeforeUnmount as Jt, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as M, createCommentVNode as $, createElementVNode as p, createVNode as ft, createSlots as Kt, withCtx as _, renderSlot as x, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as O, withDirectives as pt, vShow as yt, Teleport as Qt, createTextVNode as Zt, nextTick as bt } from "vue";
2
+ import { u as jt, c as ea, t as ta, a as aa, p as Se, b as la, C as Ie, o as oa, f as K, d as sa, G as E, e as ua, m as Ve, i as F, X as na, s as ra, L as gt, q as Pe, r as Q, k as j, y as mt, v as ia, w as da, z as va, T as wt, h as De } from "./index-DrRiscPm.js";
3
+ import { t as ca, u as ha } from "./useResponsive-DfdjqQps.js";
4
+ import { u as fa, B as pa } from "./useLoading-D7YHNtLX.js";
5
+ import { u as ya } from "./usePrinter-CZk2ISUm.js";
6
+ import { u as $t } from "./useNestedProp-BXhArS-K.js";
7
+ import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as ga } from "./useChartAccessibility-9icAAmYg.js";
9
+ import ma from "./img-CBdOMFyn.js";
10
+ import wa from "./Title-CINHji0n.js";
11
+ import $a from "./Legend-CevCqVZ5.js";
12
+ import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "height"], Aa = ["id"], Ta = ["offset", "stop-color"], Na = ["offset", "stop-opacity"], Fa = ["id"], Oa = ["id"], Sa = ["id"], Ia = ["flood-color"], Va = ["id", "d"], Pa = ["d", "fill", "stroke", "stroke-width", "filter"], Da = ["d", "fill", "stroke", "stroke-width"], za = { key: 1 }, Ma = ["d", "fill"], Ea = { key: 2 }, Ba = ["font-size", "font-weight", "fill", "dy"], Ra = ["href"], Ua = ["x", "y", "font-size", "font-weight", "fill"], Ga = { key: 3 }, Ya = ["filter"], Xa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Wa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], qa = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ha = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Ja = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, qa = {
16
+ }, Ka = ["id"], Qa = {
17
17
  key: 0,
18
18
  class: "vue-ui-nested-donuts-legend-title"
19
- }, Ha = ["onClick"], Ja = ["innerHTML"], Ka = {
19
+ }, Za = ["onClick"], ja = ["innerHTML"], el = {
20
20
  __name: "vue-ui-nested-donuts",
21
21
  props: {
22
22
  config: {
@@ -33,19 +33,19 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend", "selectDatapoint"],
36
- setup($t, { expose: kt, emit: Lt }) {
37
- const Ct = q(() => import("./Tooltip-DF8e4iB9.js")), xt = q(() => import("./vue-ui-accordion-B31QK9Hj.js")), _t = q(() => import("./DataTable-osx68WLA.js")), At = q(() => import("./UserOptions-DQyIO0ts.js")), Tt = q(() => import("./PenAndPaper-CdXspg5R.js")), Nt = q(() => import("./PackageVersion-DZGrOKw5.js")), { vue_ui_nested_donuts: Ft } = Qt(), g = $t, de = C({
36
+ setup(kt, { expose: Lt, emit: Ct }) {
37
+ const _t = q(() => import("./Tooltip-hfdFRoLp.js")), xt = q(() => import("./vue-ui-accordion-s_m_NJzJ.js")), At = q(() => import("./DataTable-CWzb1j8d.js")), Tt = q(() => import("./UserOptions-r0epwyXR.js")), Nt = q(() => import("./PenAndPaper-C_R9vJkU.js")), Ft = q(() => import("./PackageVersion-n4qokxnx.js")), { vue_ui_nested_donuts: Ot } = jt(), g = kt, de = C({
38
38
  get() {
39
39
  return !!g.dataset && g.dataset.length;
40
40
  },
41
41
  set(a) {
42
42
  return a;
43
43
  }
44
- }), p = h(Zt()), ve = h(!1), ce = h(""), he = h(null), ze = h(0), V = h(null), Me = h(null), fe = h(null), Ee = h(null), Be = h(null), Re = h(0), Ue = h(0), Ge = h(0), E = h(!0), B = h([]), Z = h([]), G = h(!1);
45
- function Ye(a) {
44
+ }), f = c(ea()), ve = c(!1), ce = c(""), he = c(null), ze = c(0), V = c(null), Me = c(null), fe = c(null), Ee = c(null), Be = c(null), Re = c(0), Ue = c(0), Ge = c(0), B = c(!0), R = c([]), Z = c([]), Ye = c(!1), G = c(!1);
45
+ function Xe(a) {
46
46
  G.value = a, ze.value += 1;
47
47
  }
48
- const e = h(ge()), Xe = {
48
+ const e = c(ge()), We = {
49
49
  name: "",
50
50
  series: [
51
51
  {
@@ -64,17 +64,17 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
64
64
  color: "#CACACA"
65
65
  }
66
66
  ]
67
- }, { loading: ye, FINAL_DATASET: R, manualLoading: pe } = ca({
68
- ...Wt(g),
67
+ }, { loading: pe, FINAL_DATASET: U, manualLoading: ye } = fa({
68
+ ...qt(g),
69
69
  FINAL_CONFIG: e,
70
70
  prepareConfig: ge,
71
71
  callback: () => {
72
72
  Promise.resolve().then(async () => {
73
- await Je();
73
+ await Ke();
74
74
  });
75
75
  },
76
- skeletonDataset: [Xe, Xe],
77
- skeletonConfig: jt({
76
+ skeletonDataset: [We, We],
77
+ skeletonConfig: ta({
78
78
  defaultConfig: e.value,
79
79
  userConfig: {
80
80
  useCssAnimation: !1,
@@ -100,31 +100,31 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
100
100
  }
101
101
  }
102
102
  })
103
- }), { userOptionsVisible: be, setUserOptionsVisibility: We, keepUserOptionState: qe } = ya({ config: e.value }), { svgRef: ee } = pa({
103
+ }), { userOptionsVisible: be, setUserOptionsVisibility: qe, keepUserOptionState: He } = ba({ config: e.value }), { svgRef: ee } = ga({
104
104
  config: e.value.style.chart.title
105
105
  });
106
106
  function ge() {
107
- const a = wt({
107
+ const a = $t({
108
108
  userConfig: g.config,
109
- defaultConfig: Ft
109
+ defaultConfig: Ot
110
110
  });
111
111
  let s = {};
112
112
  return a.theme ? s = {
113
- ...wt({
114
- userConfig: ta.vue_ui_nested_donuts[a.theme] || g.config,
113
+ ...$t({
114
+ userConfig: la.vue_ui_nested_donuts[a.theme] || g.config,
115
115
  defaultConfig: a
116
116
  }),
117
- customPalette: ea[a.theme] || Se
117
+ customPalette: aa[a.theme] || Se
118
118
  } : s = a, g.config && Ie(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Ie(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Ie(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
119
119
  }
120
120
  re(
121
121
  () => g.config,
122
122
  (a) => {
123
- ye.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover, Ke(), Re.value += 1, Ue.value += 1, Ge.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, c.value.width = e.value.style.chart.width, c.value.height = e.value.style.chart.height;
123
+ pe.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover, Qe(), Re.value += 1, Ue.value += 1, Ge.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, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
124
124
  },
125
125
  { deep: !0 }
126
126
  );
127
- const He = C(() => {
127
+ const Je = C(() => {
128
128
  const { top: a, right: s, bottom: l, left: o } = e.value.style.chart.padding;
129
129
  return {
130
130
  css: `padding:${a}px ${s}px ${l}px ${o}px`,
@@ -134,29 +134,29 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
134
134
  left: o
135
135
  };
136
136
  });
137
- function Ot(a, s = 1e3, l = 50) {
137
+ function St(a, s = 1e3, l = 50) {
138
138
  return new Promise((o) => {
139
139
  const t = a.length;
140
- B.value = Array(t).fill(0), Z.value = [];
141
- let u = 0;
142
- a.forEach((v, f) => {
140
+ R.value = Array(t).fill(0), Z.value = [];
141
+ let n = 0;
142
+ a.forEach((v, y) => {
143
143
  setTimeout(() => {
144
144
  const w = performance.now();
145
145
  function d(b) {
146
- const N = Math.min((b - w) / s, 1), xe = mt(N), _e = v * xe;
147
- B.value[f] = _e, B.value = [...B.value];
146
+ const N = Math.min((b - w) / s, 1), _e = wt(N), xe = v * _e;
147
+ R.value[y] = xe, R.value = [...R.value];
148
148
  const ue = [];
149
149
  let Ae = 0;
150
150
  g.dataset.forEach((ne, Te) => {
151
- const Ut = De(ne.series.reduce(
152
- (Fe, Oe) => Fe + De(M(Oe.values).reduce((Yt, Xt) => Yt + Xt, 0)),
151
+ const Gt = De(ne.series.reduce(
152
+ (Fe, Oe) => Fe + De(E(Oe.values).reduce((Xt, Wt) => Xt + Wt, 0)),
153
153
  0
154
- )), Gt = De(B.value.slice(Ae, Ae + ne.series.length).reduce((Fe, Oe) => Fe + Oe, 0)), Ne = Ut - Gt;
154
+ )), Yt = De(R.value.slice(Ae, Ae + ne.series.length).reduce((Fe, Oe) => Fe + Oe, 0)), Ne = Gt - Yt;
155
155
  Ne > Number.MIN_VALUE && ue.push({
156
156
  name: "__ghost__",
157
157
  arcOf: ne.name,
158
- arcOfId: `${p.value}_${Te}`,
159
- id: `ghost_${p.value}_${Te}`,
158
+ arcOfId: `${f.value}_${Te}`,
159
+ id: `ghost_${f.value}_${Te}`,
160
160
  seriesIndex: -1,
161
161
  datasetIndex: Te,
162
162
  color: "transparent",
@@ -165,28 +165,28 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
165
165
  absoluteValues: [],
166
166
  ghost: !0
167
167
  }), Ae += ne.series.length;
168
- }), Z.value = ue, N < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
168
+ }), Z.value = ue, N < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
169
169
  }
170
170
  requestAnimationFrame(d);
171
- }, f * l);
171
+ }, y * l);
172
172
  });
173
173
  });
174
174
  }
175
- async function Je() {
175
+ async function Ke() {
176
176
  if (e.value.startAnimation?.show) {
177
- const s = R.value.flatMap((l) => l.series).map(
178
- (l) => M(l.values).reduce((o, t) => o + t, 0)
177
+ const s = U.value.flatMap((l) => l.series).map(
178
+ (l) => E(l.values).reduce((o, t) => o + t, 0)
179
179
  );
180
- B.value = s.map(() => 0), E.value = !0, Z.value = R.value.map((l, o) => {
180
+ R.value = s.map(() => 0), B.value = !0, Z.value = U.value.map((l, o) => {
181
181
  const t = l.series.reduce(
182
- (u, v) => u + M(v.values).reduce((f, w) => f + w, 0),
182
+ (n, v) => n + E(v.values).reduce((y, w) => y + w, 0),
183
183
  0
184
184
  );
185
185
  return {
186
186
  name: "__ghost__",
187
187
  arcOf: l.name,
188
- arcOfId: `${p.value}_${o}`,
189
- id: `ghost_${p.value}_${o}`,
188
+ arcOfId: `${f.value}_${o}`,
189
+ id: `ghost_${f.value}_${o}`,
190
190
  seriesIndex: -1,
191
191
  datasetIndex: o,
192
192
  color: "transparent",
@@ -195,50 +195,50 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
195
195
  absoluteValues: [],
196
196
  ghost: !0
197
197
  };
198
- }), await pt(), Ot(
198
+ }), await bt(), St(
199
199
  s,
200
200
  e.value.startAnimation.durationMs,
201
201
  e.value.startAnimation.staggerMs
202
202
  ).then(() => {
203
- E.value = !1, Z.value = [];
203
+ B.value = !1, Z.value = [];
204
204
  });
205
205
  } else
206
- E.value = !1;
206
+ B.value = !1;
207
207
  }
208
- qt(async () => {
209
- Ke(), await Je();
208
+ Ht(async () => {
209
+ Ye.value = !0, Qe(), await Ke();
210
210
  });
211
- const P = ct(null), Y = ct(null), X = C(() => !!e.value.debug);
212
- function Ke() {
213
- if (aa(g.dataset) ? (K({
211
+ const P = ht(null), Y = ht(null), X = C(() => !!e.value.debug);
212
+ function Qe() {
213
+ if (oa(g.dataset) ? (K({
214
214
  componentName: "VueUiNestedDonuts",
215
215
  type: "dataset",
216
216
  debug: X.value
217
- }), de.value = !1, pe.value = !0) : pe.value = e.value.loading, e.value.responsive) {
218
- const a = da(() => {
219
- const { width: s, height: l } = va({
217
+ }), de.value = !1, ye.value = !0) : ye.value = e.value.loading, e.value.responsive) {
218
+ const a = ca(() => {
219
+ const { width: s, height: l } = ha({
220
220
  chart: V.value,
221
221
  title: e.value.style.chart.title.text ? Me.value : null,
222
222
  legend: e.value.style.chart.legend.show ? fe.value : null,
223
223
  source: Ee.value,
224
224
  noTitle: Be.value,
225
- padding: He.value
225
+ padding: Je.value
226
226
  });
227
227
  requestAnimationFrame(() => {
228
- c.value.width = s, c.value.height = l;
228
+ h.value.width = s, h.value.height = l;
229
229
  });
230
230
  });
231
231
  P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect()), P.value = new ResizeObserver(a), Y.value = V.value.parentNode, P.value.observe(Y.value);
232
232
  }
233
233
  }
234
- Ht(() => {
234
+ Jt(() => {
235
235
  P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
236
236
  });
237
- const { isPrinting: Qe, isImaging: Ze, generatePdf: je, generateImage: et } = fa({
238
- elementId: `nested_donuts_${p.value}`,
237
+ const { isPrinting: Ze, isImaging: je, generatePdf: et, generateImage: tt } = ya({
238
+ elementId: `nested_donuts_${f.value}`,
239
239
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
240
240
  options: e.value.userOptions.print
241
- }), St = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), It = C(() => la(e.value.customPalette)), k = h({
241
+ }), It = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), Vt = C(() => sa(e.value.customPalette)), k = c({
242
242
  dataLabels: {
243
243
  show: e.value.style.chart.layout.labels.dataLabels.show
244
244
  },
@@ -254,30 +254,30 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
254
254
  showTooltip: e.value.style.chart.tooltip.show
255
255
  };
256
256
  }, { immediate: !0 });
257
- const c = h({
257
+ const h = c({
258
258
  width: e.value.style.chart.width,
259
259
  height: e.value.style.chart.height
260
- }), tt = Lt;
261
- function Vt({ datapoint: a, index: s, seriesIndex: l }) {
262
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l }), tt("selectDatapoint", { datapoint: a, index: s });
260
+ }), at = Ct;
261
+ function Pt({ datapoint: a, index: s, seriesIndex: l }) {
262
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l }), at("selectDatapoint", { datapoint: a, index: s });
263
263
  }
264
- function at({
264
+ function lt({
265
265
  from: a,
266
266
  to: s,
267
267
  duration: l,
268
268
  onUpdate: o,
269
269
  onDone: t,
270
- easing: u = mt
270
+ easing: n = wt
271
271
  }) {
272
272
  const v = performance.now();
273
- function f(w) {
274
- const d = Math.min((w - v) / l, 1), b = u(d), N = a + (s - a) * b;
275
- o(N, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), t && t());
273
+ function y(w) {
274
+ const d = Math.min((w - v) / l, 1), b = n(d), N = a + (s - a) * b;
275
+ o(N, d), d < 1 ? requestAnimationFrame(y) : (o(s, 1), t && t());
276
276
  }
277
- requestAnimationFrame(f);
277
+ requestAnimationFrame(y);
278
278
  }
279
- const L = h([]), S = C(() => {
280
- ye.value, R.value.forEach((s, l) => {
279
+ const L = c([]), S = C(() => {
280
+ pe.value, U.value.forEach((s, l) => {
281
281
  [null, void 0].includes(s.name) && K({
282
282
  componentName: "VueUiNestedDonuts",
283
283
  type: "datasetSerieAttribute",
@@ -314,31 +314,31 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
314
314
  });
315
315
  });
316
316
  let a = 0;
317
- return R.value.map((s, l) => ({
317
+ return U.value.map((s, l) => ({
318
318
  ...s,
319
- total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => M(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
319
+ total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => E(o.values).reduce((t, n) => t + n, 0)).reduce((o, t) => o + t, 0),
320
320
  datasetIndex: l,
321
- id: `${p.value}_${l}`,
321
+ id: `${f.value}_${l}`,
322
322
  series: s.series.map((o, t) => {
323
- const u = M(o.values).reduce((v, f) => v + f, 0);
323
+ const n = E(o.values).reduce((v, y) => v + y, 0);
324
324
  return {
325
325
  name: o.name,
326
326
  arcOf: s.name,
327
- arcOfId: `${p.value}_${l}`,
328
- id: `${p.value}_${l}_${t}`,
327
+ arcOfId: `${f.value}_${l}`,
328
+ id: `${f.value}_${l}_${t}`,
329
329
  seriesIndex: t,
330
330
  datasetIndex: l,
331
- color: oa(o.color) || It.value[t] || Se[t % Se.length],
332
- value: E.value ? B.value[a++] ?? 0 : u,
331
+ color: ua(o.color) || Vt.value[t] || Se[t % Se.length],
332
+ value: B.value ? R.value[a++] ?? 0 : n,
333
333
  absoluteValues: o.values || []
334
334
  };
335
335
  })
336
336
  }));
337
337
  });
338
338
  re(() => g.dataset, (a) => {
339
- Array.isArray(a) && a.length > 0 && (pe.value = !1);
339
+ Array.isArray(a) && a.length > 0 && (ye.value = !1);
340
340
  }, { immediate: !0 });
341
- const I = C(() => Math.min(c.value.height, c.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), lt = C(() => [...S.value].map((a, s) => {
341
+ const I = C(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), ot = C(() => [...S.value].map((a, s) => {
342
342
  const l = a.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
343
343
  return {
344
344
  ...a,
@@ -349,40 +349,40 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
349
349
  }))
350
350
  };
351
351
  }));
352
- function Pt(a, s, l) {
352
+ function Dt(a, s, l) {
353
353
  let o = 0;
354
354
  for (let t = 0; t < a.length; t += 1)
355
355
  l.includes(a[t]) && (o += 1);
356
356
  return o < s;
357
357
  }
358
- const m = h(lt.value);
358
+ const m = c(ot.value);
359
359
  re(
360
- () => lt.value,
360
+ () => ot.value,
361
361
  (a) => m.value = a
362
362
  );
363
363
  function me(a) {
364
- tt("selectLegend", a);
364
+ at("selectLegend", a);
365
365
  const s = g.dataset.flatMap(
366
- (d, b) => d.series.map((N, xe) => ({
367
- value: M(N.values).reduce((_e, ue) => _e + ue, 0),
368
- id: `${p.value}_${b}_${xe}`,
369
- arcOfId: `${p.value}_${b}`
366
+ (d, b) => d.series.map((N, _e) => ({
367
+ value: E(N.values).reduce((xe, ue) => xe + ue, 0),
368
+ id: `${f.value}_${b}_${_e}`,
369
+ arcOfId: `${f.value}_${b}`
370
370
  }))
371
371
  ).find((d) => d.id === a.id);
372
372
  if (!s) return;
373
373
  const l = S.value.flatMap((d) => d.series).find((d) => d.id === a.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === a.id);
374
- let u = o ? o.value : 0;
374
+ let n = o ? o.value : 0;
375
375
  const v = S.value.find(
376
376
  (d) => d.id === s.arcOfId
377
377
  );
378
378
  if (!v) return;
379
- const f = v.series.map((d) => d.id), w = Pt(
380
- f,
381
- f.length - 1,
379
+ const y = v.series.map((d) => d.id), w = Dt(
380
+ y,
381
+ y.length - 1,
382
382
  L.value
383
383
  );
384
- L.value.includes(a.id) ? (L.value = L.value.filter((d) => d !== a.id), e.value.serieToggleAnimation.show ? at({
385
- from: u,
384
+ L.value.includes(a.id) ? (L.value = L.value.filter((d) => d !== a.id), e.value.serieToggleAnimation.show ? lt({
385
+ from: n,
386
386
  to: l,
387
387
  duration: e.value.serieToggleAnimation.durationMs,
388
388
  onUpdate: (d) => {
@@ -394,8 +394,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
394
394
  }) : m.value = m.value.map((d) => ({
395
395
  ...d,
396
396
  series: d.series.map((b) => b.id === a.id ? { ...b, value: l } : b)
397
- }))) : w && (e.value.serieToggleAnimation.show ? at({
398
- from: u,
397
+ }))) : w && (e.value.serieToggleAnimation.show ? lt({
398
+ from: n,
399
399
  to: 0,
400
400
  duration: e.value.serieToggleAnimation.durationMs,
401
401
  onUpdate: (d) => {
@@ -412,16 +412,16 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
412
412
  series: d.series.map((b) => b.id === a.id ? { ...b, value: 0 } : b)
413
413
  })), L.value.push(a.id)));
414
414
  }
415
- const te = C(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), ot = C(() => m.value.map((a, s) => I.value - s * I.value / S.value.length)), W = C(() => m.value.map((a, s) => {
416
- const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = I.value - s * I.value / m.value.length, t = E.value ? Z.value.find((w) => w.datasetIndex === s) : null, u = [...a.series, ...t ? [t] : []].map((w) => ({
415
+ const te = C(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), st = C(() => m.value.map((a, s) => I.value - s * I.value / S.value.length)), W = C(() => m.value.map((a, s) => {
416
+ const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = I.value - s * I.value / m.value.length, t = B.value ? Z.value.find((w) => w.datasetIndex === s) : null, n = [...a.series, ...t ? [t] : []].map((w) => ({
417
417
  ...w,
418
418
  value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
419
419
  })), v = Ve(
420
420
  { series: [
421
421
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
422
422
  ] },
423
- c.value.width / 2,
424
- c.value.height / 2,
423
+ h.value.width / 2,
424
+ h.value.height / 2,
425
425
  o,
426
426
  o,
427
427
  1.99999,
@@ -430,7 +430,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
430
430
  360,
431
431
  105.25,
432
432
  te.value
433
- ), f = `M ${c.value.width / 2},${c.value.height / 2 + o}
433
+ ), y = `M ${h.value.width / 2},${h.value.height / 2 + o}
434
434
  a ${o},${o} 0 1,1 0,${-2 * o}
435
435
  a ${o},${o} 0 1,1 0,${2 * o}`;
436
436
  return {
@@ -438,11 +438,11 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
438
438
  hasData: l,
439
439
  radius: o,
440
440
  skeleton: v,
441
- fullCirclePath: f,
441
+ fullCirclePath: y,
442
442
  donut: Ve(
443
- { series: u },
444
- c.value.width / 2,
445
- c.value.height / 2,
443
+ { series: n },
444
+ h.value.width / 2,
445
+ h.value.height / 2,
446
446
  o,
447
447
  o,
448
448
  1.99999,
@@ -453,14 +453,14 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
453
453
  te.value
454
454
  )
455
455
  };
456
- })), st = C(() => [...S.value].map((a, s) => {
456
+ })), ut = C(() => [...S.value].map((a, s) => {
457
457
  const l = s * I.value / S.value.length;
458
458
  return {
459
459
  sizeRatio: l,
460
460
  donut: Ve(
461
461
  { series: [{ value: 1 }] },
462
- c.value.width / 2,
463
- c.value.height / 2,
462
+ h.value.width / 2,
463
+ h.value.height / 2,
464
464
  I.value - l,
465
465
  I.value - l,
466
466
  1.99999,
@@ -471,19 +471,19 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
471
471
  I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
472
472
  )[0]
473
473
  };
474
- })), ut = h(null), ae = h(null), le = h(null), we = h(null);
475
- function Dt({ datapoint: a, seriesIndex: s }) {
476
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: s }), ve.value = !1, ut.value = null, he.value = null, ae.value = null, le.value = null;
474
+ })), nt = c(null), ae = c(null), le = c(null), we = c(null);
475
+ function zt({ datapoint: a, seriesIndex: s }) {
476
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: s }), ve.value = !1, nt.value = null, he.value = null, ae.value = null, le.value = null;
477
477
  }
478
- function zt({ datapoint: a, _relativeIndex: s, seriesIndex: l }) {
479
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: l }), ut.value = a.arcOfId, ae.value = a.id, le.value = l, he.value = a.id, we.value = {
478
+ function Mt({ datapoint: a, _relativeIndex: s, seriesIndex: l }) {
479
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: l }), nt.value = a.arcOfId, ae.value = a.id, le.value = l, he.value = a.id, we.value = {
480
480
  datapoint: a,
481
481
  seriesIndex: l,
482
482
  series: m.value,
483
483
  config: e.value
484
484
  };
485
485
  const o = e.value.style.chart.tooltip.customFormat;
486
- if (gt(o) && ia(
486
+ if (mt(o) && va(
487
487
  () => o({
488
488
  seriesIndex: l,
489
489
  datapoint: a,
@@ -500,11 +500,11 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
500
500
  else {
501
501
  let t = "";
502
502
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0) {
503
- const u = m.value.map((v) => v.series.find((f) => f.seriesIndex === l));
504
- u.forEach((v, f) => {
503
+ const n = m.value.map((v) => v.series.find((y) => y.seriesIndex === l));
504
+ n.forEach((v, y) => {
505
505
  if (!v) return "";
506
506
  t += `
507
- <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
507
+ <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${y < n.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
508
508
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
509
509
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
510
510
  <circle cx="10" cy="10" r="10" fill="${v.color}"/>
@@ -562,38 +562,38 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
562
562
  function $e(a) {
563
563
  return a.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
564
564
  }
565
- function nt(a, s) {
565
+ function rt(a, s) {
566
566
  if (!e.value.useBlurOnHover)
567
567
  return "";
568
568
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
569
- return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${p.value})`;
569
+ return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${f.value})`;
570
570
  if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
571
- return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${p.value})`;
571
+ return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${f.value})`;
572
572
  }
573
573
  const ke = C(() => S.value.map((a, s) => {
574
574
  const l = a.series.filter(
575
575
  (t) => !L.value.includes(t.id)
576
- ), o = E.value ? l.map((t) => {
577
- const u = R.value[s].series.findIndex(
576
+ ), o = B.value ? l.map((t) => {
577
+ const n = U.value[s].series.findIndex(
578
578
  (v) => v.name === t.name
579
579
  );
580
- return M(
581
- R.value[s].series[u].values
582
- ).reduce((v, f) => v + f, 0);
583
- }).reduce((t, u) => t + u, 0) : l.map((t) => t.value).reduce((t, u) => t + u, 0);
584
- return a.series.map((t, u) => {
585
- const v = M(R.value[s].series[u].values).reduce(
580
+ return E(
581
+ U.value[s].series[n].values
582
+ ).reduce((v, y) => v + y, 0);
583
+ }).reduce((t, n) => t + n, 0) : l.map((t) => t.value).reduce((t, n) => t + n, 0);
584
+ return a.series.map((t, n) => {
585
+ const v = E(U.value[s].series[n].values).reduce(
586
586
  (w, d) => w + d,
587
587
  0
588
- ), f = E.value ? v : t.value;
588
+ ), y = B.value ? v : t.value;
589
589
  return {
590
590
  name: t.name,
591
591
  color: t.color,
592
- value: f,
592
+ value: y,
593
593
  shape: "circle",
594
594
  arcOf: t.arcOf,
595
595
  id: t.id,
596
- seriesIndex: u,
596
+ seriesIndex: n,
597
597
  datasetIndex: s,
598
598
  total: o,
599
599
  opacity: L.value.includes(t.id) ? 0.5 : 1,
@@ -601,7 +601,7 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
601
601
  isSegregated: L.value.includes(t.id)
602
602
  };
603
603
  });
604
- })), Mt = C(() => ({
604
+ })), Et = C(() => ({
605
605
  cy: "nested-donuts-legend",
606
606
  backgroundColor: e.value.style.chart.legend.backgroundColor,
607
607
  color: e.value.style.chart.legend.color,
@@ -616,20 +616,20 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
616
616
  }))), s = m.value.flatMap((l) => l.series.map((o) => o.value));
617
617
  return { head: a, body: s };
618
618
  });
619
- function rt(a = null) {
620
- pt(() => {
621
- const s = D.value.head.map((t, u) => [
619
+ function it(a = null) {
620
+ bt(() => {
621
+ const s = D.value.head.map((t, n) => [
622
622
  [t.name],
623
- [D.value.body[u]],
623
+ [D.value.body[n]],
624
624
  [
625
- isNaN(D.value.body[u] / t.total) ? "-" : D.value.body[u] / t.total * 100
625
+ isNaN(D.value.body[n] / t.total) ? "-" : D.value.body[n] / t.total * 100
626
626
  ]
627
627
  ]), l = [
628
628
  [e.value.style.chart.title.text],
629
629
  [e.value.style.chart.title.subtitle.text],
630
630
  [[""], ["val"], ["%"]]
631
- ].concat(s), o = na(l);
632
- a ? a(o) : ra({
631
+ ].concat(s), o = ia(l);
632
+ a ? a(o) : da({
633
633
  csvContent: o,
634
634
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
635
635
  });
@@ -640,10 +640,10 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
640
640
  e.value.table.columnNames.series,
641
641
  e.value.table.columnNames.value,
642
642
  e.value.table.columnNames.percentage
643
- ], s = D.value.head.map((t, u) => {
643
+ ], s = D.value.head.map((t, n) => {
644
644
  const v = F({
645
645
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
646
- v: D.value.body[u],
646
+ v: D.value.body[n],
647
647
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
648
648
  r: e.value.table.td.roundingValue
649
649
  });
@@ -653,8 +653,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
653
653
  name: t.name
654
654
  },
655
655
  v,
656
- isNaN(D.value.body[u] / t.total) ? "-" : F({
657
- v: D.value.body[u] / t.total * 100,
656
+ isNaN(D.value.body[n] / t.total) ? "-" : F({
657
+ v: D.value.body[n] / t.total * 100,
658
658
  s: "%",
659
659
  r: e.value.table.td.roundingPercentage
660
660
  })
@@ -683,62 +683,62 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
683
683
  config: l
684
684
  };
685
685
  });
686
- function Et() {
686
+ function Bt() {
687
687
  return S.value;
688
688
  }
689
- function it() {
689
+ function dt() {
690
690
  k.value.showTable = !k.value.showTable;
691
691
  }
692
- function dt() {
692
+ function vt() {
693
693
  k.value.dataLabels.show = !k.value.dataLabels.show;
694
694
  }
695
- function vt() {
695
+ function ct() {
696
696
  k.value.showTooltip = !k.value.showTooltip;
697
697
  }
698
- const se = h(!1);
698
+ const se = c(!1);
699
699
  function Le() {
700
700
  se.value = !se.value;
701
701
  }
702
- async function Bt({ scale: a = 2 } = {}) {
702
+ async function Rt({ scale: a = 2 } = {}) {
703
703
  if (!V.value) return;
704
- const { width: s, height: l } = V.value.getBoundingClientRect(), o = s / l, { imageUri: t, base64: u } = await ba({ domElement: V.value, base64: !0, img: !0, scale: a });
704
+ const { width: s, height: l } = V.value.getBoundingClientRect(), o = s / l, { imageUri: t, base64: n } = await ma({ domElement: V.value, base64: !0, img: !0, scale: a });
705
705
  return {
706
706
  imageUri: t,
707
- base64: u,
707
+ base64: n,
708
708
  title: e.value.style.chart.title.text,
709
709
  width: s,
710
710
  height: l,
711
711
  aspectRatio: o
712
712
  };
713
713
  }
714
- const Ce = h(null);
715
- function Rt() {
714
+ const Ce = c(null);
715
+ function Ut() {
716
716
  if (!Ce.value) return;
717
717
  const { x: a, y: s, width: l, height: o } = Ce.value.getBBox();
718
718
  ee.value && ee.value.setAttribute("viewBox", `${a} ${s} ${l + Math.min(0, a)} ${o + Math.min(0, s)}`);
719
719
  }
720
- return kt({
721
- autoSize: Rt,
722
- getData: Et,
723
- getImage: Bt,
724
- generatePdf: je,
725
- generateCsv: rt,
726
- generateImage: et,
727
- toggleTable: it,
728
- toggleLabels: dt,
729
- toggleTooltip: vt,
720
+ return Lt({
721
+ autoSize: Ut,
722
+ getData: Bt,
723
+ getImage: Rt,
724
+ generatePdf: et,
725
+ generateCsv: it,
726
+ generateImage: tt,
727
+ toggleTable: dt,
728
+ toggleLabels: vt,
729
+ toggleTooltip: ct,
730
730
  toggleAnnotator: Le,
731
- toggleFullscreen: Ye
732
- }), (a, s) => (n(), r("div", {
731
+ toggleFullscreen: Xe
732
+ }), (a, s) => (u(), r("div", {
733
733
  ref_key: "nestedDonutsChart",
734
734
  ref: V,
735
735
  class: z(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
736
736
  style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
737
- id: `nested_donuts_${p.value}`,
738
- onMouseenter: s[2] || (s[2] = () => i(We)(!0)),
739
- onMouseleave: s[3] || (s[3] = () => i(We)(!1))
737
+ id: `nested_donuts_${f.value}`,
738
+ onMouseenter: s[2] || (s[2] = () => i(qe)(!0)),
739
+ onMouseleave: s[3] || (s[3] = () => i(qe)(!1))
740
740
  }, [
741
- e.value.userOptions.buttons.annotator ? (n(), U(i(Tt), {
741
+ e.value.userOptions.buttons.annotator ? (u(), M(i(Nt), {
742
742
  key: 0,
743
743
  svgRef: i(ee),
744
744
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -746,19 +746,19 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
746
746
  active: se.value,
747
747
  onClose: Le
748
748
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
749
- St.value ? (n(), r("div", {
749
+ It.value ? (u(), r("div", {
750
750
  key: 1,
751
751
  ref_key: "noTitle",
752
752
  ref: Be,
753
753
  class: "vue-data-ui-no-title-space",
754
754
  style: "height:36px; width: 100%;background:transparent"
755
755
  }, null, 512)) : $("", !0),
756
- e.value.style.chart.title.text ? (n(), r("div", {
756
+ e.value.style.chart.title.text ? (u(), r("div", {
757
757
  key: 2,
758
758
  ref_key: "chartTitle",
759
759
  ref: Me
760
760
  }, [
761
- (n(), U(ga, {
761
+ (u(), M(wa, {
762
762
  key: `title_${Re.value}`,
763
763
  config: {
764
764
  title: {
@@ -772,14 +772,17 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
772
772
  }
773
773
  }, null, 8, ["config"]))
774
774
  ], 512)) : $("", !0),
775
- e.value.userOptions.show && de.value && (i(qe) || i(be)) ? (n(), U(i(At), {
775
+ p("div", {
776
+ id: `legend-top-${f.value}`
777
+ }, null, 8, Ca),
778
+ e.value.userOptions.show && de.value && (i(He) || i(be)) ? (u(), M(i(Tt), {
776
779
  ref: "details",
777
780
  key: `user_option_${ze.value}`,
778
781
  backgroundColor: e.value.style.chart.backgroundColor,
779
782
  color: e.value.style.chart.color,
780
- isPrinting: i(Qe),
781
- isImaging: i(Ze),
782
- uid: p.value,
783
+ isPrinting: i(Ze),
784
+ isImaging: i(je),
785
+ uid: f.value,
783
786
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
784
787
  hasPdf: e.value.userOptions.buttons.pdf,
785
788
  hasXls: e.value.userOptions.buttons.csv,
@@ -796,211 +799,211 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
796
799
  isAnnotation: se.value,
797
800
  callbacks: e.value.userOptions.callbacks,
798
801
  printScale: e.value.userOptions.print.scale,
799
- onToggleFullscreen: Ye,
800
- onGeneratePdf: i(je),
801
- onGenerateCsv: rt,
802
- onGenerateImage: i(et),
803
- onToggleTable: it,
804
- onToggleLabels: dt,
805
- onToggleTooltip: vt,
802
+ onToggleFullscreen: Xe,
803
+ onGeneratePdf: i(et),
804
+ onGenerateCsv: it,
805
+ onGenerateImage: i(tt),
806
+ onToggleTable: dt,
807
+ onToggleLabels: vt,
808
+ onToggleTooltip: ct,
806
809
  onToggleAnnotator: Le,
807
810
  style: ie({
808
- visibility: i(qe) ? i(be) ? "visible" : "hidden" : "visible"
811
+ visibility: i(He) ? i(be) ? "visible" : "hidden" : "visible"
809
812
  })
810
- }, Jt({ _: 2 }, [
813
+ }, Kt({ _: 2 }, [
811
814
  a.$slots.menuIcon ? {
812
815
  name: "menuIcon",
813
- fn: x(({ isOpen: l, color: o }) => [
814
- _(a.$slots, "menuIcon", H(J({ isOpen: l, color: o })), void 0, !0)
816
+ fn: _(({ isOpen: l, color: o }) => [
817
+ x(a.$slots, "menuIcon", H(J({ isOpen: l, color: o })), void 0, !0)
815
818
  ]),
816
819
  key: "0"
817
820
  } : void 0,
818
821
  a.$slots.optionTooltip ? {
819
822
  name: "optionTooltip",
820
- fn: x(() => [
821
- _(a.$slots, "optionTooltip", {}, void 0, !0)
823
+ fn: _(() => [
824
+ x(a.$slots, "optionTooltip", {}, void 0, !0)
822
825
  ]),
823
826
  key: "1"
824
827
  } : void 0,
825
828
  a.$slots.optionPdf ? {
826
829
  name: "optionPdf",
827
- fn: x(() => [
828
- _(a.$slots, "optionPdf", {}, void 0, !0)
830
+ fn: _(() => [
831
+ x(a.$slots, "optionPdf", {}, void 0, !0)
829
832
  ]),
830
833
  key: "2"
831
834
  } : void 0,
832
835
  a.$slots.optionCsv ? {
833
836
  name: "optionCsv",
834
- fn: x(() => [
835
- _(a.$slots, "optionCsv", {}, void 0, !0)
837
+ fn: _(() => [
838
+ x(a.$slots, "optionCsv", {}, void 0, !0)
836
839
  ]),
837
840
  key: "3"
838
841
  } : void 0,
839
842
  a.$slots.optionImg ? {
840
843
  name: "optionImg",
841
- fn: x(() => [
842
- _(a.$slots, "optionImg", {}, void 0, !0)
844
+ fn: _(() => [
845
+ x(a.$slots, "optionImg", {}, void 0, !0)
843
846
  ]),
844
847
  key: "4"
845
848
  } : void 0,
846
849
  a.$slots.optionTable ? {
847
850
  name: "optionTable",
848
- fn: x(() => [
849
- _(a.$slots, "optionTable", {}, void 0, !0)
851
+ fn: _(() => [
852
+ x(a.$slots, "optionTable", {}, void 0, !0)
850
853
  ]),
851
854
  key: "5"
852
855
  } : void 0,
853
856
  a.$slots.optionLabels ? {
854
857
  name: "optionLabels",
855
- fn: x(() => [
856
- _(a.$slots, "optionLabels", {}, void 0, !0)
858
+ fn: _(() => [
859
+ x(a.$slots, "optionLabels", {}, void 0, !0)
857
860
  ]),
858
861
  key: "6"
859
862
  } : void 0,
860
863
  a.$slots.optionFullscreen ? {
861
864
  name: "optionFullscreen",
862
- fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
863
- _(a.$slots, "optionFullscreen", H(J({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
865
+ fn: _(({ toggleFullscreen: l, isFullscreen: o }) => [
866
+ x(a.$slots, "optionFullscreen", H(J({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
864
867
  ]),
865
868
  key: "7"
866
869
  } : void 0,
867
870
  a.$slots.optionAnnotator ? {
868
871
  name: "optionAnnotator",
869
- fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
870
- _(a.$slots, "optionAnnotator", H(J({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
872
+ fn: _(({ toggleAnnotator: l, isAnnotator: o }) => [
873
+ x(a.$slots, "optionAnnotator", H(J({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
871
874
  ]),
872
875
  key: "8"
873
876
  } : void 0
874
877
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : $("", !0),
875
- (n(), r("svg", {
878
+ (u(), r("svg", {
876
879
  ref_key: "svgRef",
877
880
  ref: ee,
878
- xmlns: i(sa),
881
+ xmlns: i(na),
879
882
  class: z({
880
883
  "vue-data-ui-fullscreen--on": G.value,
881
884
  "vue-data-ui-fulscreen--off": !G.value,
882
885
  "vue-data-ui-svg": !0
883
886
  }),
884
- viewBox: `0 0 ${c.value.width <= 0 ? 1e-3 : c.value.width} ${c.value.height < 0 ? 1e-3 : c.value.height}`,
885
- style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${He.value.css}`)
887
+ viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
888
+ style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Je.value.css}`)
886
889
  }, [
887
- y("g", {
890
+ p("g", {
888
891
  ref_key: "G",
889
892
  ref: Ce,
890
893
  class: "vue-data-ui-g"
891
894
  }, [
892
- ht(i(Nt)),
893
- a.$slots["chart-background"] ? (n(), r("foreignObject", {
895
+ ft(i(Ft)),
896
+ a.$slots["chart-background"] ? (u(), r("foreignObject", {
894
897
  key: 0,
895
898
  x: 0,
896
899
  y: 0,
897
- width: c.value.width <= 0 ? 1e-3 : c.value.width,
898
- height: c.value.height < 0 ? 1e-3 : c.value.height,
900
+ width: h.value.width <= 0 ? 1e-3 : h.value.width,
901
+ height: h.value.height < 0 ? 1e-3 : h.value.height,
899
902
  style: {
900
903
  pointerEvents: "none"
901
904
  }
902
905
  }, [
903
- _(a.$slots, "chart-background", {}, void 0, !0)
904
- ], 8, La)) : $("", !0),
905
- y("defs", null, [
906
- (n(!0), r(A, null, T(st.value, (l, o) => (n(), r("radialGradient", {
907
- id: `radial_${p.value}_${o}`
906
+ x(a.$slots, "chart-background", {}, void 0, !0)
907
+ ], 8, xa)) : $("", !0),
908
+ p("defs", null, [
909
+ (u(!0), r(A, null, T(ut.value, (l, o) => (u(), r("radialGradient", {
910
+ id: `radial_${f.value}_${o}`
908
911
  }, [
909
- s[4] || (s[4] = y("stop", {
912
+ s[4] || (s[4] = p("stop", {
910
913
  offset: "0%",
911
914
  "stop-color": "#FFFFFF",
912
915
  "stop-opacity": "0"
913
916
  }, null, -1)),
914
- y("stop", {
915
- offset: `${(1 - te.value / ot.value[o]) * 100}%`,
916
- "stop-color": i(ua)("#FFFFFF", 0),
917
+ p("stop", {
918
+ offset: `${(1 - te.value / st.value[o]) * 100}%`,
919
+ "stop-color": i(ra)("#FFFFFF", 0),
917
920
  "stop-opacity": "0"
918
- }, null, 8, xa),
919
- y("stop", {
920
- offset: `${(1 - te.value / ot.value[o] / 2) * 100}%`,
921
+ }, null, 8, Ta),
922
+ p("stop", {
923
+ offset: `${(1 - te.value / st.value[o] / 2) * 100}%`,
921
924
  "stop-color": "#FFFFFF",
922
925
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
923
- }, null, 8, _a),
924
- s[5] || (s[5] = y("stop", {
926
+ }, null, 8, Na),
927
+ s[5] || (s[5] = p("stop", {
925
928
  offset: "100%",
926
929
  "stop-color": "#FFFFFF",
927
930
  "stop-opacity": "0"
928
931
  }, null, -1))
929
- ], 8, Ca))), 256))
932
+ ], 8, Aa))), 256))
930
933
  ]),
931
- y("defs", null, [
932
- y("filter", {
933
- id: `blur_${p.value}`,
934
+ p("defs", null, [
935
+ p("filter", {
936
+ id: `blur_${f.value}`,
934
937
  x: "-50%",
935
938
  y: "-50%",
936
939
  width: "200%",
937
940
  height: "200%"
938
941
  }, [
939
- y("feGaussianBlur", {
942
+ p("feGaussianBlur", {
940
943
  in: "SourceGraphic",
941
944
  stdDeviation: 2,
942
- id: `blur_std_${p.value}`
943
- }, null, 8, Ta),
944
- s[6] || (s[6] = y("feColorMatrix", {
945
+ id: `blur_std_${f.value}`
946
+ }, null, 8, Oa),
947
+ s[6] || (s[6] = p("feColorMatrix", {
945
948
  type: "saturate",
946
949
  values: "0"
947
950
  }, null, -1))
948
- ], 8, Aa),
949
- y("filter", {
950
- id: `shadow_${p.value}`,
951
+ ], 8, Fa),
952
+ p("filter", {
953
+ id: `shadow_${f.value}`,
951
954
  "color-interpolation-filters": "sRGB"
952
955
  }, [
953
- y("feDropShadow", {
956
+ p("feDropShadow", {
954
957
  dx: "0",
955
958
  dy: "0",
956
959
  stdDeviation: "10",
957
960
  "flood-opacity": "0.5",
958
961
  "flood-color": e.value.style.chart.layout.donut.shadowColor
959
- }, null, 8, Fa)
960
- ], 8, Na)
962
+ }, null, 8, Ia)
963
+ ], 8, Sa)
961
964
  ]),
962
- y("defs", null, [
963
- (n(!0), r(A, null, T(W.value, (l, o) => (n(), r("path", {
965
+ p("defs", null, [
966
+ (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("path", {
964
967
  key: `path-full-${o}`,
965
- id: `path-full-${o}-${p.value}`,
968
+ id: `path-full-${o}-${f.value}`,
966
969
  d: l.fullCirclePath,
967
970
  fill: "none"
968
- }, null, 8, Oa))), 128))
971
+ }, null, 8, Va))), 128))
969
972
  ]),
970
- (n(!0), r(A, null, T(W.value, (l, o) => (n(), r("g", null, [
971
- l.hasData ? (n(!0), r(A, { key: 0 }, T(l.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
972
- y("path", {
973
+ (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
974
+ l.hasData ? (u(!0), r(A, { key: 0 }, T(l.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", null, [
975
+ p("path", {
973
976
  class: "vue-ui-donut-arc-path",
974
977
  d: t.arcSlice,
975
978
  fill: t.color,
976
979
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
977
980
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
978
- filter: nt(t, u)
979
- }, null, 8, Sa)
980
- ]))), 256)) : (n(!0), r(A, { key: 1 }, T(l.skeleton, (t, u) => (n(), r("g", null, [
981
- y("path", {
981
+ filter: rt(t, n)
982
+ }, null, 8, Pa)
983
+ ]))), 256)) : (u(!0), r(A, { key: 1 }, T(l.skeleton, (t, n) => (u(), r("g", null, [
984
+ p("path", {
982
985
  class: "vue-ui-donut-arc-path",
983
986
  d: t.arcSlice,
984
987
  fill: t.color,
985
988
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
986
989
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
987
- }, null, 8, Ia)
990
+ }, null, 8, Da)
988
991
  ]))), 256))
989
992
  ]))), 256)),
990
- e.value.style.chart.useGradient ? (n(), r("g", Va, [
991
- (n(!0), r(A, null, T(st.value, (l, o) => (n(), r("g", null, [
992
- y("path", {
993
+ e.value.style.chart.useGradient ? (u(), r("g", za, [
994
+ (u(!0), r(A, null, T(ut.value, (l, o) => (u(), r("g", null, [
995
+ p("path", {
993
996
  d: l.donut.arcSlice,
994
- fill: `url(#radial_${p.value}_${o})`,
997
+ fill: `url(#radial_${f.value}_${o})`,
995
998
  stroke: "transparent",
996
999
  "stroke-width": "0"
997
- }, null, 8, Pa)
1000
+ }, null, 8, Ma)
998
1001
  ]))), 256))
999
1002
  ])) : $("", !0),
1000
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", Da, [
1001
- e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(A, { key: 0 }, T(W.value, (l, o) => (n(), r("g", null, [
1002
- (n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
1003
- u === 0 && c.value.width && c.value.height ? (n(), r("text", {
1003
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", Ea, [
1004
+ e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(W.value, (l, o) => (u(), r("g", null, [
1005
+ (u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
1006
+ n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1004
1007
  key: 0,
1005
1008
  class: z({ animated: e.value.useCssAnimation }),
1006
1009
  "text-anchor": "middle",
@@ -1009,43 +1012,43 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
1009
1012
  fill: e.value.style.chart.layout.labels.dataLabels.color,
1010
1013
  dy: e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
1011
1014
  }, [
1012
- y("textPath", {
1013
- href: `#path-full-${o}-${p.value}`,
1015
+ p("textPath", {
1016
+ href: `#path-full-${o}-${f.value}`,
1014
1017
  startOffset: "50%",
1015
1018
  "text-anchor": "middle",
1016
1019
  method: "align",
1017
1020
  spacing: "auto",
1018
1021
  side: "right"
1019
- }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
1022
+ }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(gt)({
1020
1023
  source: l.name,
1021
1024
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1022
- }) : l.name), 9, Ma)
1023
- ], 10, za)) : $("", !0)
1025
+ }) : l.name), 9, Ra)
1026
+ ], 10, Ba)) : $("", !0)
1024
1027
  ]))), 256))
1025
- ]))), 256)) : (n(!0), r(A, { key: 1 }, T(W.value, (l, o) => (n(), r("g", null, [
1026
- (n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
1027
- u === 0 && c.value.width && c.value.height ? (n(), r("text", {
1028
+ ]))), 256)) : (u(!0), r(A, { key: 1 }, T(W.value, (l, o) => (u(), r("g", null, [
1029
+ (u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
1030
+ n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1028
1031
  key: 0,
1029
1032
  class: z({ animated: e.value.useCssAnimation }),
1030
- x: c.value.width / 2,
1033
+ x: h.value.width / 2,
1031
1034
  y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1032
1035
  "text-anchor": "middle",
1033
1036
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1034
1037
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1035
1038
  fill: e.value.style.chart.layout.labels.dataLabels.color
1036
- }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
1039
+ }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(gt)({
1037
1040
  source: l.name,
1038
1041
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1039
- }) : l.name), 11, Ea)) : $("", !0)
1042
+ }) : l.name), 11, Ua)) : $("", !0)
1040
1043
  ]))), 256))
1041
1044
  ]))), 256))
1042
1045
  ])) : $("", !0),
1043
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Ba, [
1044
- (n(!0), r(A, null, T(W.value, (l, o) => (n(), r("g", null, [
1045
- (n(!0), r(A, null, T(l.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", {
1046
- filter: nt(t, u)
1046
+ e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Ga, [
1047
+ (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
1048
+ (u(!0), r(A, null, T(l.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", {
1049
+ filter: rt(t, n)
1047
1050
  }, [
1048
- ft(y("text", {
1051
+ pt(p("text", {
1049
1052
  class: z({ animated: e.value.useCssAnimation }),
1050
1053
  opacity: $e(t) ? 1 : 0,
1051
1054
  "text-anchor": i(Q)(t, !0).anchor,
@@ -1066,13 +1069,13 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
1066
1069
  v: t.proportion * 100,
1067
1070
  s: "%",
1068
1071
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1069
- })), 11, Ua), [
1072
+ })), 11, Xa), [
1070
1073
  [
1071
1074
  yt,
1072
1075
  k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1073
1076
  ]
1074
1077
  ]),
1075
- ft(y("text", {
1078
+ pt(p("text", {
1076
1079
  class: z({ animated: e.value.useCssAnimation }),
1077
1080
  opacity: $e(t) ? 1 : 0,
1078
1081
  "text-anchor": i(Q)(t, !0).anchor,
@@ -1098,14 +1101,14 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
1098
1101
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1099
1102
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1100
1103
  }),
1101
- { datapoint: t, seriesIndex: o, datapointIndex: u }
1102
- )) + ") ", 11, Ga), [
1104
+ { datapoint: t, seriesIndex: o, datapointIndex: n }
1105
+ )) + ") ", 11, Wa), [
1103
1106
  [
1104
1107
  yt,
1105
1108
  k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1106
1109
  ]
1107
1110
  ]),
1108
- $e(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
1111
+ $e(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
1109
1112
  key: 0,
1110
1113
  class: z({ animated: e.value.useCssAnimation }),
1111
1114
  "text-anchor": i(Q)(t, !0).anchor,
@@ -1131,32 +1134,32 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
1131
1134
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1132
1135
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1133
1136
  }),
1134
- { datapoint: t, seriesIndex: o, datapointIndex: u }
1135
- )), 11, Ya)) : $("", !0)
1136
- ], 8, Ra))), 256))
1137
+ { datapoint: t, seriesIndex: o, datapointIndex: n }
1138
+ )), 11, qa)) : $("", !0)
1139
+ ], 8, Ya))), 256))
1137
1140
  ]))), 256))
1138
1141
  ])) : $("", !0),
1139
- (n(!0), r(A, null, T(W.value, (l, o) => (n(), r("g", null, [
1140
- (n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
1141
- y("path", {
1142
+ (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
1143
+ (u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
1144
+ p("path", {
1142
1145
  d: t.arcSlice,
1143
1146
  fill: he.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1144
- onMouseenter: (v) => zt({
1147
+ onMouseenter: (v) => Mt({
1145
1148
  datapoint: t,
1146
1149
  seriesIndex: t.seriesIndex
1147
1150
  }),
1148
- onClick: (v) => Vt({ datapoint: t, index: u, seriesIndex: t.seriesIndex }),
1149
- onMouseleave: (v) => Dt({ datapoint: t, seriesIndex: t.seriesIndex })
1150
- }, null, 40, Xa)
1151
+ onClick: (v) => Pt({ datapoint: t, index: n, seriesIndex: t.seriesIndex }),
1152
+ onMouseleave: (v) => zt({ datapoint: t, seriesIndex: t.seriesIndex })
1153
+ }, null, 40, Ha)
1151
1154
  ]))), 256))
1152
1155
  ]))), 256)),
1153
- _(a.$slots, "svg", { svg: c.value }, void 0, !0)
1156
+ x(a.$slots, "svg", { svg: h.value }, void 0, !0)
1154
1157
  ], 512)
1155
- ], 14, ka)),
1156
- a.$slots.watermark ? (n(), r("div", Wa, [
1157
- _(a.$slots, "watermark", H(J({ isPrinting: i(Qe) || i(Ze) })), void 0, !0)
1158
+ ], 14, _a)),
1159
+ a.$slots.watermark ? (u(), r("div", Ja, [
1160
+ x(a.$slots, "watermark", H(J({ isPrinting: i(Ze) || i(je) })), void 0, !0)
1158
1161
  ])) : $("", !0),
1159
- ht(i(Ct), {
1162
+ ft(i(_t), {
1160
1163
  show: k.value.showTooltip && ve.value,
1161
1164
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1162
1165
  color: e.value.style.chart.tooltip.color,
@@ -1170,72 +1173,80 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
1170
1173
  parent: V.value,
1171
1174
  content: ce.value,
1172
1175
  isFullscreen: G.value,
1173
- isCustom: i(gt)(e.value.style.chart.tooltip.customFormat),
1176
+ isCustom: i(mt)(e.value.style.chart.tooltip.customFormat),
1174
1177
  smooth: e.value.style.chart.tooltip.smooth,
1175
1178
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1176
1179
  }, {
1177
- "tooltip-before": x(() => [
1178
- _(a.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
1180
+ "tooltip-before": _(() => [
1181
+ x(a.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
1179
1182
  ]),
1180
- "tooltip-after": x(() => [
1181
- _(a.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
1183
+ "tooltip-after": _(() => [
1184
+ x(a.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
1182
1185
  ]),
1183
1186
  _: 3
1184
1187
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1185
- e.value.style.chart.legend.show ? (n(), r("div", {
1188
+ p("div", {
1189
+ id: `legend-bottom-${f.value}`
1190
+ }, null, 8, Ka),
1191
+ Ye.value ? (u(), M(Qt, {
1186
1192
  key: 5,
1187
- ref_key: "chartLegend",
1188
- ref: fe,
1189
- class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
1193
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
1190
1194
  }, [
1191
- (n(!0), r(A, null, T(ke.value, (l, o) => (n(), U(ma, {
1192
- key: `legend_${o}_${Ge.value}`,
1193
- legendSet: l,
1194
- config: Mt.value,
1195
- onClickMarker: s[0] || (s[0] = ({ legend: t }) => me(t))
1196
- }, {
1197
- legendTitle: x(({ titleSet: t }) => [
1198
- t[0] && t[0].arcOf ? (n(), r("div", qa, O(t[0].arcOf), 1)) : $("", !0)
1199
- ]),
1200
- item: x(({ legend: t, index: u }) => [
1201
- y("div", {
1202
- onClick: (v) => me(t),
1203
- style: ie(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1204
- }, O(t.name) + O(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + O(e.value.style.chart.legend.showValue ? i(j)(
1205
- e.value.style.chart.layout.labels.dataLabels.formatter,
1206
- t.value,
1207
- i(F)({
1208
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1209
- v: t.value,
1210
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1211
- r: e.value.style.chart.legend.roundingValue
1212
- }),
1213
- { datapoint: t, seriesIndex: u }
1214
- ) : "") + " " + O(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(F)({
1215
- v: t.value / t.total * 100,
1216
- s: "%",
1217
- r: e.value.style.chart.legend.roundingPercentage
1218
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ha)
1219
- ]),
1220
- _: 2
1221
- }, 1032, ["legendSet", "config"]))), 128))
1222
- ], 2)) : $("", !0),
1223
- e.value.style.chart.legend.show ? $("", !0) : (n(), r("div", {
1195
+ e.value.style.chart.legend.show ? (u(), r("div", {
1196
+ key: 0,
1197
+ ref_key: "chartLegend",
1198
+ ref: fe,
1199
+ class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
1200
+ }, [
1201
+ (u(!0), r(A, null, T(ke.value, (l, o) => (u(), M($a, {
1202
+ key: `legend_${o}_${Ge.value}`,
1203
+ legendSet: l,
1204
+ config: Et.value,
1205
+ onClickMarker: s[0] || (s[0] = ({ legend: t }) => me(t))
1206
+ }, {
1207
+ legendTitle: _(({ titleSet: t }) => [
1208
+ t[0] && t[0].arcOf ? (u(), r("div", Qa, O(t[0].arcOf), 1)) : $("", !0)
1209
+ ]),
1210
+ item: _(({ legend: t, index: n }) => [
1211
+ p("div", {
1212
+ onClick: (v) => me(t),
1213
+ style: ie(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1214
+ }, O(t.name) + O(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + O(e.value.style.chart.legend.showValue ? i(j)(
1215
+ e.value.style.chart.layout.labels.dataLabels.formatter,
1216
+ t.value,
1217
+ i(F)({
1218
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1219
+ v: t.value,
1220
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1221
+ r: e.value.style.chart.legend.roundingValue
1222
+ }),
1223
+ { datapoint: t, seriesIndex: n }
1224
+ ) : "") + " " + O(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(F)({
1225
+ v: t.value / t.total * 100,
1226
+ s: "%",
1227
+ r: e.value.style.chart.legend.roundingPercentage
1228
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Za)
1229
+ ]),
1230
+ _: 2
1231
+ }, 1032, ["legendSet", "config"]))), 128))
1232
+ ], 2)) : $("", !0)
1233
+ ], 8, ["to"])) : $("", !0),
1234
+ e.value.style.chart.legend.show ? $("", !0) : (u(), r("div", {
1224
1235
  key: 6,
1225
1236
  ref_key: "chartLegend",
1226
1237
  ref: fe
1227
1238
  }, [
1228
- _(a.$slots, "legend", { legend: ke.value }, void 0, !0)
1239
+ x(a.$slots, "legend", { legend: ke.value }, void 0, !0)
1229
1240
  ], 512)),
1230
- a.$slots.source ? (n(), r("div", {
1241
+ a.$slots.source ? (u(), r("div", {
1231
1242
  key: 7,
1232
1243
  ref_key: "source",
1233
1244
  ref: Ee,
1234
1245
  dir: "auto"
1235
1246
  }, [
1236
- _(a.$slots, "source", {}, void 0, !0)
1247
+ x(a.$slots, "source", {}, void 0, !0)
1237
1248
  ], 512)) : $("", !0),
1238
- de.value ? (n(), U(i(xt), {
1249
+ de.value ? (u(), M(i(xt), {
1239
1250
  key: 8,
1240
1251
  hideDetails: "",
1241
1252
  config: {
@@ -1251,8 +1262,8 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
1251
1262
  }
1252
1263
  }
1253
1264
  }, {
1254
- content: x(() => [
1255
- (n(), U(i(_t), {
1265
+ content: _(() => [
1266
+ (u(), M(i(At), {
1256
1267
  key: `table_${Ue.value}`,
1257
1268
  colNames: oe.value.colNames,
1258
1269
  head: oe.value.head,
@@ -1261,24 +1272,24 @@ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["i
1261
1272
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1262
1273
  onClose: s[1] || (s[1] = (l) => k.value.showTable = !1)
1263
1274
  }, {
1264
- th: x(({ th: l }) => [
1265
- y("div", {
1275
+ th: _(({ th: l }) => [
1276
+ p("div", {
1266
1277
  innerHTML: l,
1267
1278
  style: { display: "flex", "align-items": "center" }
1268
- }, null, 8, Ja)
1279
+ }, null, 8, ja)
1269
1280
  ]),
1270
- td: x(({ td: l }) => [
1271
- Kt(O(l.name || l), 1)
1281
+ td: _(({ td: l }) => [
1282
+ Zt(O(l.name || l), 1)
1272
1283
  ]),
1273
1284
  _: 1
1274
1285
  }, 8, ["colNames", "head", "body", "config", "title"]))
1275
1286
  ]),
1276
1287
  _: 1
1277
1288
  }, 8, ["config"])) : $("", !0),
1278
- i(ye) ? (n(), U(ha, { key: 9 })) : $("", !0)
1279
- ], 46, $a));
1289
+ i(pe) ? (u(), M(pa, { key: 9 })) : $("", !0)
1290
+ ], 46, La));
1280
1291
  }
1281
- }, il = /* @__PURE__ */ wa(Ka, [["__scopeId", "data-v-5268e168"]]);
1292
+ }, hl = /* @__PURE__ */ ka(el, [["__scopeId", "data-v-8afc2b4d"]]);
1282
1293
  export {
1283
- il as default
1294
+ hl as default
1284
1295
  };