vue-data-ui 2.12.6 → 2.12.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,26 +1,20 @@
1
- import { computed as k, ref as v, watch as Ze, onMounted as je, nextTick as et, onBeforeUnmount as Tt, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as se, normalizeClass as U, createBlock as B, createCommentVNode as g, createVNode as tt, createSlots as Ft, withCtx as _, renderSlot as L, normalizeProps as E, guardReactiveProps as G, createElementVNode as m, Fragment as T, renderList as S, toDisplayString as V, withDirectives as lt, vShow as at, createTextVNode as ue } from "vue";
2
- import { u as Ot, c as St, t as It, p as _e, a as At, H as D, o as Nt, e as Y, b as Vt, d as Pt, m as ot, f as F, X as Dt, s as st, K as zt, k as Le, n as X, i as K, x as ut, q as Mt, r as Ut, y as Bt, S as nt } from "./index-BFzQMJda.js";
3
- import { t as Rt, u as Et } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as Gt } from "./Title-CzaCeCOm.js";
5
- import { u as Yt, U as Xt } from "./usePrinter-C5bLp34h.js";
6
- import { D as Ht } from "./DataTable-Rajdtaf6.js";
7
- import { _ as Wt } from "./Tooltip-CWmRmhJr.js";
8
- import { L as qt } from "./Legend-BxtDQCIv.js";
9
- import Kt from "./vue-ui-skeleton-B_YI7Yuc.js";
10
- import Jt from "./vue-ui-accordion-BUz4JIIX.js";
11
- import { u as rt } from "./useNestedProp-v7KPpwuP.js";
12
- import { _ as Qt } from "./PackageVersion-BjrblLPQ.js";
13
- import { _ as Zt } from "./PenAndPaper-BkP3J-Ft.js";
14
- import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { u as el } from "./useChartAccessibility-BWojgys7.js";
16
- import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["id"], ul = ["offset", "stop-color"], nl = ["offset", "stop-opacity"], rl = ["id"], il = ["id"], dl = ["id"], cl = ["flood-color"], vl = ["d", "fill", "stroke", "stroke-width", "filter"], fl = { key: 1 }, hl = ["d", "fill"], pl = { key: 2 }, yl = ["x", "y", "font-size", "font-weight", "fill"], bl = { key: 3 }, gl = ["filter"], ml = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], $l = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], wl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], kl = ["d", "fill", "onMouseenter", "onClick"], _l = {
1
+ import { defineAsyncComponent as R, computed as k, ref as v, watch as et, onMounted as tt, nextTick as lt, shallowRef as at, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as se, normalizeClass as B, createBlock as E, createCommentVNode as g, createVNode as ot, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as m, Fragment as T, renderList as O, toDisplayString as N, withDirectives as st, vShow as ut, createTextVNode as ue } from "vue";
2
+ import { u as Rt, c as Bt, t as Et, p as Ce, a as Ut, H as D, o as Gt, e as H, b as Yt, d as Xt, m as nt, f as F, X as Ht, s as rt, K as Wt, k as _e, n as W, i as J, x as it, q as qt, r as Kt, y as Jt, S as dt } from "./index-BiHmNd1-.js";
3
+ import { t as Qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as ct } from "./useNestedProp-tRqS0ZAM.js";
5
+ import { u as jt } from "./usePrinter-CRCbl1WG.js";
6
+ import { u as el } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as tl } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ll from "./Title-B5qqUI3M.js";
9
+ import al from "./Legend-DFunFf8i.js";
10
+ import { _ as ol } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["id"], il = ["offset", "stop-color"], dl = ["offset", "stop-opacity"], cl = ["id"], vl = ["id"], fl = ["id"], hl = ["flood-color"], pl = ["d", "fill", "stroke", "stroke-width", "filter"], yl = { key: 1 }, bl = ["d", "fill"], gl = { key: 2 }, ml = ["x", "y", "font-size", "font-weight", "fill"], wl = { key: 3 }, $l = ["filter"], kl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ll = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], xl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["d", "fill", "onMouseenter", "onClick"], _l = {
18
12
  key: 5,
19
13
  class: "vue-data-ui-watermark"
20
- }, Ll = {
14
+ }, Tl = {
21
15
  key: 0,
22
16
  class: "vue-ui-nested-donuts-legend-title"
23
- }, xl = ["onClick"], Cl = ["innerHTML"], Tl = {
17
+ }, Fl = ["onClick"], Ol = ["innerHTML"], Sl = {
24
18
  __name: "vue-ui-nested-donuts",
25
19
  props: {
26
20
  config: {
@@ -37,38 +31,38 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
37
31
  }
38
32
  },
39
33
  emits: ["selectLegend", "selectDatapoint"],
40
- setup(it, { expose: dt, emit: ct }) {
41
- const { vue_ui_nested_donuts: vt } = Ot(), x = it, J = k(() => !!x.dataset && x.dataset.length), y = v(St()), ne = v(!1), re = v(""), ft = v(null), xe = v(0), H = v(null), Ce = v(null), ie = v(null), Te = v(null), Fe = v(null), Oe = v(0), Se = v(0), Ie = v(0), z = v(!0), M = v([]), W = v([]), R = v(!1);
42
- function ht(l) {
43
- R.value = l, xe.value += 1;
34
+ setup(vt, { expose: ft, emit: ht }) {
35
+ const pt = R(() => import("./vue-ui-accordion-CmCs2yR2.js")), yt = R(() => import("./DataTable-Cv9CIz-a.js")), bt = R(() => import("./PackageVersion-CLY-udAA.js")), gt = R(() => import("./PenAndPaper-B9na2mbr.js")), mt = R(() => import("./vue-ui-skeleton-CbYQYRvD.js")), wt = R(() => import("./Tooltip-C9rxJ-Ru.js")), $t = R(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_nested_donuts: kt } = Rt(), C = vt, Q = k(() => !!C.dataset && C.dataset.length), y = v(Bt()), ne = v(!1), re = v(""), Lt = v(null), Te = v(0), q = v(null), Fe = v(null), ie = v(null), Oe = v(null), Se = v(null), Ae = v(0), Ie = v(0), Ne = v(0), z = v(!0), M = v([]), K = v([]), U = v(!1);
36
+ function xt(l) {
37
+ U.value = l, Te.value += 1;
44
38
  }
45
39
  const e = k({
46
- get: () => Pe(),
40
+ get: () => ze(),
47
41
  set: (l) => l
48
- }), { userOptionsVisible: de, setUserOptionsVisibility: Ae, keepUserOptionState: Ne } = jt({ config: e.value }), { svgRef: Ve } = el({
42
+ }), { userOptionsVisible: de, setUserOptionsVisibility: Ve, keepUserOptionState: Pe } = el({ config: e.value }), { svgRef: De } = tl({
49
43
  config: e.value.style.chart.title
50
44
  });
51
- function Pe() {
52
- const l = rt({
53
- userConfig: x.config,
54
- defaultConfig: vt
45
+ function ze() {
46
+ const l = ct({
47
+ userConfig: C.config,
48
+ defaultConfig: kt
55
49
  });
56
50
  return l.theme ? {
57
- ...rt({
58
- userConfig: At.vue_ui_nested_donuts[l.theme] || x.config,
51
+ ...ct({
52
+ userConfig: Ut.vue_ui_nested_donuts[l.theme] || C.config,
59
53
  defaultConfig: l
60
54
  }),
61
- customPalette: It[l.theme] || _e
55
+ customPalette: Et[l.theme] || Ce
62
56
  } : l;
63
57
  }
64
- Ze(
65
- () => x.config,
58
+ et(
59
+ () => C.config,
66
60
  (l) => {
67
- e.value = Pe(), de.value = !e.value.userOptions.showOnChartHover, ce(), Oe.value += 1, Se.value += 1, Ie.value += 1, w.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
61
+ e.value = ze(), de.value = !e.value.userOptions.showOnChartHover, ce(), Ae.value += 1, Ie.value += 1, Ne.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;
68
62
  },
69
63
  { deep: !0 }
70
64
  );
71
- const De = k(() => {
65
+ const Me = k(() => {
72
66
  const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
73
67
  return {
74
68
  css: `padding:${l}px ${s}px ${a}px ${o}px`,
@@ -78,162 +72,161 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
78
72
  left: o
79
73
  };
80
74
  });
81
- function pt(l, s = 1e3, a = 50) {
75
+ function Ct(l, s = 1e3, a = 50) {
82
76
  return new Promise((o) => {
83
77
  const t = l.length;
84
- M.value = Array(t).fill(0), W.value = [];
78
+ M.value = Array(t).fill(0), K.value = [];
85
79
  let u = 0;
86
- l.forEach((c, p) => {
80
+ l.forEach((c, h) => {
87
81
  setTimeout(() => {
88
- const N = performance.now();
89
- function C(d) {
90
- const f = Math.min((d - N) / s, 1), O = nt(f), ge = c * O;
91
- M.value[p] = ge, M.value = [...M.value];
82
+ const I = performance.now();
83
+ function d(p) {
84
+ const _ = Math.min((p - I) / s, 1), ge = dt(_), me = c * ge;
85
+ M.value[h] = me, M.value = [...M.value];
92
86
  const ae = [];
93
- let q = 0;
94
- x.dataset.forEach((oe, me) => {
95
- const _t = oe.series.reduce(
96
- (we, ke) => we + D(ke.values).reduce((xt, Ct) => xt + Ct, 0),
87
+ let we = 0;
88
+ C.dataset.forEach((oe, $e) => {
89
+ const Nt = oe.series.reduce(
90
+ (Le, xe) => Le + D(xe.values).reduce((Pt, Dt) => Pt + Dt, 0),
97
91
  0
98
- ), Lt = M.value.slice(q, q + oe.series.length).reduce((we, ke) => we + ke, 0), $e = _t - Lt;
99
- $e > 1e-3 && ae.push({
92
+ ), Vt = M.value.slice(we, we + oe.series.length).reduce((Le, xe) => Le + xe, 0), ke = Nt - Vt;
93
+ ke > 1e-3 && ae.push({
100
94
  name: "__ghost__",
101
95
  arcOf: oe.name,
102
- arcOfId: `${y.value}_${me}`,
103
- id: `ghost_${y.value}_${me}`,
96
+ arcOfId: `${y.value}_${$e}`,
97
+ id: `ghost_${y.value}_${$e}`,
104
98
  seriesIndex: -1,
105
- datasetIndex: me,
99
+ datasetIndex: $e,
106
100
  color: "transparent",
107
- value: $e,
108
- fullValue: $e,
101
+ value: ke,
102
+ fullValue: ke,
109
103
  absoluteValues: [],
110
104
  ghost: !0
111
- }), q += oe.series.length;
112
- }), W.value = ae, f < 1 ? requestAnimationFrame(C) : (u += 1, u === t && o());
105
+ }), we += oe.series.length;
106
+ }), K.value = ae, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
113
107
  }
114
- requestAnimationFrame(C);
115
- }, p * a);
108
+ requestAnimationFrame(d);
109
+ }, h * a);
116
110
  });
117
111
  });
118
112
  }
119
- je(async () => {
120
- var l;
121
- if (ce(), (l = e.value.startAnimation) != null && l.show) {
122
- const a = x.dataset.flatMap((o) => o.series).map(
123
- (o) => D(o.values).reduce((t, u) => t + u, 0)
113
+ tt(async () => {
114
+ if (ce(), e.value.startAnimation?.show) {
115
+ const s = C.dataset.flatMap((a) => a.series).map(
116
+ (a) => D(a.values).reduce((o, t) => o + t, 0)
124
117
  );
125
- M.value = a.map(() => 0), z.value = !0, W.value = x.dataset.map((o, t) => {
126
- const u = o.series.reduce(
127
- (c, p) => c + D(p.values).reduce((N, C) => N + C, 0),
118
+ M.value = s.map(() => 0), z.value = !0, K.value = C.dataset.map((a, o) => {
119
+ const t = a.series.reduce(
120
+ (u, c) => u + D(c.values).reduce((h, I) => h + I, 0),
128
121
  0
129
122
  );
130
123
  return {
131
124
  name: "__ghost__",
132
- arcOf: o.name,
133
- arcOfId: `${y.value}_${t}`,
134
- id: `ghost_${y.value}_${t}`,
125
+ arcOf: a.name,
126
+ arcOfId: `${y.value}_${o}`,
127
+ id: `ghost_${y.value}_${o}`,
135
128
  seriesIndex: -1,
136
- datasetIndex: t,
129
+ datasetIndex: o,
137
130
  color: "transparent",
138
- value: u,
139
- fullValue: u,
131
+ value: t,
132
+ fullValue: t,
140
133
  absoluteValues: [],
141
134
  ghost: !0
142
135
  };
143
- }), await et(), pt(
144
- a,
136
+ }), await lt(), Ct(
137
+ s,
145
138
  e.value.startAnimation.durationMs,
146
139
  e.value.startAnimation.staggerMs
147
140
  ).then(() => {
148
- z.value = !1, W.value = [];
141
+ z.value = !1, K.value = [];
149
142
  });
150
143
  } else
151
144
  z.value = !1;
152
145
  });
153
- const Q = v(null);
154
- je(() => {
146
+ const V = at(null), G = at(null);
147
+ tt(() => {
155
148
  ce();
156
149
  });
157
150
  function ce() {
158
- if (Nt(x.dataset) && Y({
151
+ if (Gt(C.dataset) && H({
159
152
  componentName: "VueUiNestedDonuts",
160
153
  type: "dataset"
161
154
  }), e.value.responsive) {
162
- const l = Rt(() => {
163
- const { width: s, height: a } = Et({
164
- chart: H.value,
165
- title: e.value.style.chart.title.text ? Ce.value : null,
155
+ const l = Qt(() => {
156
+ const { width: s, height: a } = Zt({
157
+ chart: q.value,
158
+ title: e.value.style.chart.title.text ? Fe.value : null,
166
159
  legend: e.value.style.chart.legend.show ? ie.value : null,
167
- source: Te.value,
168
- noTitle: Fe.value,
169
- padding: De.value
160
+ source: Oe.value,
161
+ noTitle: Se.value,
162
+ padding: Me.value
170
163
  });
171
164
  requestAnimationFrame(() => {
172
- h.value.width = s, h.value.height = a;
165
+ f.value.width = s, f.value.height = a;
173
166
  });
174
167
  });
175
- Q.value = new ResizeObserver(l), Q.value.observe(H.value.parentNode);
168
+ V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect()), V.value = new ResizeObserver(l), G.value = q.value.parentNode, V.value.observe(G.value);
176
169
  }
177
170
  }
178
- Tt(() => {
179
- Q.value && Q.value.disconnect();
171
+ zt(() => {
172
+ V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect());
180
173
  });
181
- const { isPrinting: ze, isImaging: Me, generatePdf: Ue, generateImage: Be } = Yt({
174
+ const { isPrinting: Re, isImaging: Be, generatePdf: Ee, generateImage: Ue } = jt({
182
175
  elementId: `nested_donuts_${y.value}`,
183
176
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
184
177
  options: e.value.userOptions.print
185
- }), yt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), bt = k(() => Vt(e.value.customPalette)), w = v({
178
+ }), _t = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = k(() => Yt(e.value.customPalette)), $ = v({
186
179
  dataLabels: {
187
180
  show: e.value.style.chart.layout.labels.dataLabels.show
188
181
  },
189
182
  showTable: e.value.table.show,
190
183
  showTooltip: e.value.style.chart.tooltip.show
191
- }), h = v({
184
+ }), f = v({
192
185
  height: 512,
193
186
  width: 512
194
- }), Re = ct;
195
- function gt({ datapoint: l, index: s }) {
196
- Re("selectDatapoint", { datapoint: l, index: s });
187
+ }), Ge = ht;
188
+ function Ft({ datapoint: l, index: s }) {
189
+ Ge("selectDatapoint", { datapoint: l, index: s });
197
190
  }
198
- function Ee({
191
+ function Ye({
199
192
  from: l,
200
193
  to: s,
201
194
  duration: a,
202
195
  onUpdate: o,
203
196
  onDone: t,
204
- easing: u = nt
197
+ easing: u = dt
205
198
  }) {
206
199
  const c = performance.now();
207
- function p(N) {
208
- const C = Math.min((N - c) / a, 1), d = u(C), f = l + (s - l) * d;
209
- o(f, C), C < 1 ? requestAnimationFrame(p) : (o(s, 1), t && t());
200
+ function h(I) {
201
+ const d = Math.min((I - c) / a, 1), p = u(d), _ = l + (s - l) * p;
202
+ o(_, d), d < 1 ? requestAnimationFrame(h) : (o(s, 1), t && t());
210
203
  }
211
- requestAnimationFrame(p);
204
+ requestAnimationFrame(h);
212
205
  }
213
- const $ = v([]), I = k(() => {
214
- x.dataset.forEach((s, a) => {
215
- [null, void 0].includes(s.name) && Y({
206
+ const w = v([]), S = k(() => {
207
+ C.dataset.forEach((s, a) => {
208
+ [null, void 0].includes(s.name) && H({
216
209
  componentName: "VueUiNestedDonuts",
217
210
  type: "datasetSerieAttribute",
218
211
  property: "name",
219
212
  index: a
220
- }), [null, void 0].includes(s.series) ? Y({
213
+ }), [null, void 0].includes(s.series) ? H({
221
214
  componentName: "VueUiNestedDonuts",
222
215
  type: "datasetSerieAttribute",
223
216
  property: "series",
224
217
  index: a
225
- }) : s.series.length === 0 ? Y({
218
+ }) : s.series.length === 0 ? H({
226
219
  componentName: "VueUiNestedDonuts",
227
220
  type: "datasetAttributeEmpty",
228
221
  property: `series at index ${a}`
229
222
  }) : s.series.forEach((o, t) => {
230
- [null, void 0].includes(o.name) && Y({
223
+ [null, void 0].includes(o.name) && H({
231
224
  componentName: "VueUiNestedDonuts",
232
225
  type: "datasetSerieAttribute",
233
226
  property: "name",
234
227
  index: t,
235
228
  key: "serie"
236
- }), [null, void 0].includes(o.values) && Y({
229
+ }), [null, void 0].includes(o.values) && H({
237
230
  componentName: "VueUiNestedDonuts",
238
231
  type: "datasetSerieAttribute",
239
232
  property: "values",
@@ -243,13 +236,13 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
243
236
  });
244
237
  });
245
238
  let l = 0;
246
- return x.dataset.map((s, a) => ({
239
+ return C.dataset.map((s, a) => ({
247
240
  ...s,
248
- total: s.series.filter((o) => !$.value.includes(o.id)).map((o) => D(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
241
+ total: s.series.filter((o) => !w.value.includes(o.id)).map((o) => D(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
249
242
  datasetIndex: a,
250
243
  id: `${y.value}_${a}`,
251
244
  series: s.series.map((o, t) => {
252
- const u = D(o.values).reduce((c, p) => c + p, 0);
245
+ const u = D(o.values).reduce((c, h) => c + h, 0);
253
246
  return {
254
247
  name: o.name,
255
248
  arcOf: s.name,
@@ -257,99 +250,98 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
257
250
  id: `${y.value}_${a}_${t}`,
258
251
  seriesIndex: t,
259
252
  datasetIndex: a,
260
- color: Pt(o.color) || bt.value[t] || _e[t % _e.length],
253
+ color: Xt(o.color) || Tt.value[t] || Ce[t % Ce.length],
261
254
  value: z.value ? M.value[l++] ?? 0 : u,
262
255
  absoluteValues: o.values || []
263
256
  };
264
257
  })
265
258
  }));
266
- }), A = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Ge = k(() => [...I.value].map((l, s) => {
267
- const a = l.series.filter((o) => !$.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
259
+ }), A = k(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Xe = k(() => [...S.value].map((l, s) => {
260
+ const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
268
261
  return {
269
262
  ...l,
270
263
  total: a,
271
- series: l.series.filter((o) => !$.value.includes(o.id)).map((o) => ({
264
+ series: l.series.filter((o) => !w.value.includes(o.id)).map((o) => ({
272
265
  ...o,
273
266
  proportion: o.value / a
274
267
  }))
275
268
  };
276
269
  }));
277
- function mt(l, s, a) {
270
+ function Ot(l, s, a) {
278
271
  let o = 0;
279
272
  for (let t = 0; t < l.length; t += 1)
280
273
  a.includes(l[t]) && (o += 1);
281
274
  return o < s;
282
275
  }
283
- const b = v(Ge.value);
284
- Ze(
285
- () => Ge.value,
276
+ const b = v(Xe.value);
277
+ et(
278
+ () => Xe.value,
286
279
  (l) => b.value = l
287
280
  );
288
281
  function ve(l) {
289
- var C;
290
- Re("selectLegend", l);
291
- const s = x.dataset.flatMap(
292
- (d, f) => d.series.map((O, ge) => ({
293
- value: D(O.values).reduce((ae, q) => ae + q, 0),
294
- id: `${y.value}_${f}_${ge}`,
295
- arcOfId: `${y.value}_${f}`
282
+ Ge("selectLegend", l);
283
+ const s = C.dataset.flatMap(
284
+ (d, p) => d.series.map((_, ge) => ({
285
+ value: D(_.values).reduce((me, ae) => me + ae, 0),
286
+ id: `${y.value}_${p}_${ge}`,
287
+ arcOfId: `${y.value}_${p}`
296
288
  }))
297
289
  ).find((d) => d.id === l.id);
298
290
  if (!s) return;
299
- const a = ((C = I.value.flatMap((d) => d.series).find((d) => d.id === l.id)) == null ? void 0 : C.value) ?? 0, o = b.value.flatMap((d) => d.series).find((d) => d.id === l.id);
291
+ 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);
300
292
  let u = o ? o.value : 0;
301
- const c = I.value.find(
293
+ const c = S.value.find(
302
294
  (d) => d.id === s.arcOfId
303
295
  );
304
296
  if (!c) return;
305
- const p = c.series.map((d) => d.id), N = mt(
306
- p,
307
- p.length - 1,
308
- $.value
297
+ const h = c.series.map((d) => d.id), I = Ot(
298
+ h,
299
+ h.length - 1,
300
+ w.value
309
301
  );
310
- $.value.includes(l.id) ? ($.value = $.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? Ee({
302
+ w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? Ye({
311
303
  from: u,
312
304
  to: a,
313
305
  duration: e.value.serieToggleAnimation.durationMs,
314
306
  onUpdate: (d) => {
315
- b.value = b.value.map((f) => ({
316
- ...f,
317
- series: f.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
307
+ b.value = b.value.map((p) => ({
308
+ ...p,
309
+ series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
318
310
  }));
319
311
  }
320
312
  }) : b.value = b.value.map((d) => ({
321
313
  ...d,
322
- series: d.series.map((f) => f.id === l.id ? { ...f, value: a } : f)
323
- }))) : N && (e.value.serieToggleAnimation.show ? Ee({
314
+ series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
315
+ }))) : I && (e.value.serieToggleAnimation.show ? Ye({
324
316
  from: u,
325
317
  to: 0,
326
318
  duration: e.value.serieToggleAnimation.durationMs,
327
319
  onUpdate: (d) => {
328
- b.value = b.value.map((f) => ({
329
- ...f,
330
- series: f.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
320
+ b.value = b.value.map((p) => ({
321
+ ...p,
322
+ series: p.series.map((_) => _.id === l.id ? { ..._, value: d } : _)
331
323
  }));
332
324
  },
333
325
  onDone: () => {
334
- $.value.push(l.id);
326
+ w.value.push(l.id);
335
327
  }
336
328
  }) : (b.value = b.value.map((d) => ({
337
329
  ...d,
338
- series: d.series.map((f) => f.id === l.id ? { ...f, value: 0 } : f)
339
- })), $.value.push(l.id)));
330
+ series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
331
+ })), w.value.push(l.id)));
340
332
  }
341
- const fe = k(() => A.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio), Ye = k(() => b.value.map((l, s) => A.value - s * A.value / I.value.length)), Z = k(() => b.value.map((l, s) => {
342
- const a = A.value - s * A.value / b.value.length, o = z.value ? W.value.find((u) => u.datasetIndex === s) : null, t = [...l.series, ...o ? [o] : []].map((u) => ({
333
+ const fe = k(() => A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), He = k(() => b.value.map((l, s) => A.value - s * A.value / S.value.length)), Z = k(() => b.value.map((l, s) => {
334
+ const a = A.value - s * A.value / b.value.length, o = z.value ? K.value.find((u) => u.datasetIndex === s) : null, t = [...l.series, ...o ? [o] : []].map((u) => ({
343
335
  ...u,
344
336
  value: u.value < 1e-3 ? 1e-3 : u.value
345
337
  }));
346
338
  return {
347
339
  ...l,
348
340
  radius: a,
349
- donut: ot(
341
+ donut: nt(
350
342
  { series: t },
351
- h.value.width / 2,
352
- h.value.height / 2,
343
+ f.value.width / 2,
344
+ f.value.height / 2,
353
345
  a,
354
346
  a,
355
347
  1.99999,
@@ -360,14 +352,14 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
360
352
  fe.value
361
353
  )
362
354
  };
363
- })), Xe = k(() => [...I.value].map((l, s) => {
364
- const a = s * A.value / I.value.length;
355
+ })), We = k(() => [...S.value].map((l, s) => {
356
+ const a = s * A.value / S.value.length;
365
357
  return {
366
358
  sizeRatio: a,
367
- donut: ot(
359
+ donut: nt(
368
360
  { series: [{ value: 1 }] },
369
- h.value.width / 2,
370
- h.value.height / 2,
361
+ f.value.width / 2,
362
+ f.value.height / 2,
371
363
  A.value - a,
372
364
  A.value - a,
373
365
  1.99999,
@@ -375,19 +367,19 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
375
367
  1,
376
368
  360,
377
369
  105.25,
378
- A.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio
370
+ A.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
379
371
  )[0]
380
372
  };
381
- })), He = v(null), j = v(null), ee = v(null), he = v(null);
382
- function $t({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
383
- He.value = l.arcOfId, j.value = l.id, ee.value = a, he.value = {
373
+ })), qe = v(null), j = v(null), ee = v(null), he = v(null);
374
+ function St({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
375
+ qe.value = l.arcOfId, j.value = l.id, ee.value = a, he.value = {
384
376
  datapoint: l,
385
377
  seriesIndex: a,
386
378
  series: b.value,
387
379
  config: e.value
388
380
  };
389
381
  const o = e.value.style.chart.tooltip.customFormat;
390
- if (ut(o) && Bt(
382
+ if (it(o) && Jt(
391
383
  () => o({
392
384
  seriesIndex: a,
393
385
  datapoint: l,
@@ -403,12 +395,12 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
403
395
  });
404
396
  else {
405
397
  let t = "";
406
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && $.value.length === 0) {
407
- const u = b.value.map((c) => c.series.find((p) => p.seriesIndex === a));
408
- u.forEach((c, p) => {
398
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
399
+ const u = b.value.map((c) => c.series.find((h) => h.seriesIndex === a));
400
+ u.forEach((c, h) => {
409
401
  if (!c) return "";
410
402
  t += `
411
- <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${p < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
403
+ <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${h < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
412
404
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
413
405
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
414
406
  <circle cx="10" cy="10" r="10" fill="${c.color}"/>
@@ -418,7 +410,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
418
410
  </span>
419
411
  </div>
420
412
  <span>
421
- ${e.value.style.chart.tooltip.showValue ? `<b>${K(
413
+ ${e.value.style.chart.tooltip.showValue ? `<b>${J(
422
414
  e.value.style.chart.layout.labels.dataLabels.formatter,
423
415
  l.value,
424
416
  F({
@@ -440,7 +432,7 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
440
432
  `;
441
433
  });
442
434
  } else
443
- t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${K(
435
+ t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${J(
444
436
  e.value.style.chart.layout.labels.dataLabels.formatter,
445
437
  l.value,
446
438
  F({
@@ -466,46 +458,46 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
466
458
  function pe(l) {
467
459
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
468
460
  }
469
- function We(l, s) {
461
+ function Ke(l, s) {
470
462
  if (!e.value.useBlurOnHover)
471
463
  return "";
472
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && $.value.length === 0)
464
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
473
465
  return [null, void 0].includes(ee.value) || ee.value === s ? "" : `url(#blur_${y.value})`;
474
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || $.value.length)
466
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
475
467
  return [null, void 0].includes(j.value) || j.value === l.id ? "" : `url(#blur_${y.value})`;
476
468
  }
477
- const ye = k(() => I.value.map((l, s) => {
469
+ const ye = k(() => S.value.map((l, s) => {
478
470
  const a = l.series.filter(
479
- (t) => !$.value.includes(t.id)
471
+ (t) => !w.value.includes(t.id)
480
472
  ), o = z.value ? a.map((t) => {
481
- const u = x.dataset[s].series.findIndex(
473
+ const u = C.dataset[s].series.findIndex(
482
474
  (c) => c.name === t.name
483
475
  );
484
476
  return D(
485
- x.dataset[s].series[u].values
486
- ).reduce((c, p) => c + p, 0);
477
+ C.dataset[s].series[u].values
478
+ ).reduce((c, h) => c + h, 0);
487
479
  }).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
488
480
  return l.series.map((t, u) => {
489
- const c = D(x.dataset[s].series[u].values).reduce(
490
- (N, C) => N + C,
481
+ const c = D(C.dataset[s].series[u].values).reduce(
482
+ (I, d) => I + d,
491
483
  0
492
- ), p = z.value ? c : t.value;
484
+ ), h = z.value ? c : t.value;
493
485
  return {
494
486
  name: t.name,
495
487
  color: t.color,
496
- value: p,
488
+ value: h,
497
489
  shape: "circle",
498
490
  arcOf: t.arcOf,
499
491
  id: t.id,
500
492
  seriesIndex: u,
501
493
  datasetIndex: s,
502
494
  total: o,
503
- opacity: $.value.includes(t.id) ? 0.5 : 1,
495
+ opacity: w.value.includes(t.id) ? 0.5 : 1,
504
496
  segregate: () => ve(t),
505
- isSegregated: $.value.includes(t.id)
497
+ isSegregated: w.value.includes(t.id)
506
498
  };
507
499
  });
508
- })), wt = k(() => ({
500
+ })), At = k(() => ({
509
501
  cy: "nested-donuts-legend",
510
502
  backgroundColor: e.value.style.chart.legend.backgroundColor,
511
503
  color: e.value.style.chart.legend.color,
@@ -520,8 +512,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
520
512
  }))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
521
513
  return { head: l, body: s };
522
514
  });
523
- function qe() {
524
- et(() => {
515
+ function Je() {
516
+ lt(() => {
525
517
  const l = P.value.head.map((o, t) => [
526
518
  [o.name],
527
519
  [P.value.body[t]],
@@ -532,8 +524,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
532
524
  [e.value.style.chart.title.text],
533
525
  [e.value.style.chart.title.subtitle.text],
534
526
  [[""], ["val"], ["%"]]
535
- ].concat(l), a = Mt(s);
536
- Ut({
527
+ ].concat(l), a = qt(s);
528
+ Kt({
537
529
  csvContent: a,
538
530
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
539
531
  });
@@ -587,62 +579,62 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
587
579
  config: a
588
580
  };
589
581
  });
590
- function kt() {
591
- return I.value;
582
+ function It() {
583
+ return S.value;
592
584
  }
593
- function Ke() {
594
- w.value.showTable = !w.value.showTable;
585
+ function Qe() {
586
+ $.value.showTable = !$.value.showTable;
595
587
  }
596
- function Je() {
597
- w.value.dataLabels.show = !w.value.dataLabels.show;
588
+ function Ze() {
589
+ $.value.dataLabels.show = !$.value.dataLabels.show;
598
590
  }
599
- function Qe() {
600
- w.value.showTooltip = !w.value.showTooltip;
591
+ function je() {
592
+ $.value.showTooltip = !$.value.showTooltip;
601
593
  }
602
594
  const le = v(!1);
603
595
  function be() {
604
596
  le.value = !le.value;
605
597
  }
606
- return dt({
607
- getData: kt,
608
- generatePdf: Ue,
609
- generateCsv: qe,
610
- generateImage: Be,
611
- toggleTable: Ke,
612
- toggleLabels: Je,
613
- toggleTooltip: Qe,
598
+ return ft({
599
+ getData: It,
600
+ generatePdf: Ee,
601
+ generateCsv: Je,
602
+ generateImage: Ue,
603
+ toggleTable: Qe,
604
+ toggleLabels: Ze,
605
+ toggleTooltip: je,
614
606
  toggleAnnotator: be
615
- }), (l, s) => (n(), r("div", {
607
+ }), (l, s) => (n(), i("div", {
616
608
  ref_key: "nestedDonutsChart",
617
- ref: H,
618
- class: U(`vue-ui-nested-donuts ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
609
+ ref: q,
610
+ class: B(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
619
611
  style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
620
612
  id: `nested_donuts_${y.value}`,
621
- onMouseenter: s[3] || (s[3] = () => i(Ae)(!0)),
622
- onMouseleave: s[4] || (s[4] = () => i(Ae)(!1))
613
+ onMouseenter: s[3] || (s[3] = () => r(Ve)(!0)),
614
+ onMouseleave: s[4] || (s[4] = () => r(Ve)(!1))
623
615
  }, [
624
- e.value.userOptions.buttons.annotator ? (n(), B(Zt, {
616
+ e.value.userOptions.buttons.annotator ? (n(), E(r(gt), {
625
617
  key: 0,
626
- svgRef: i(Ve),
618
+ svgRef: r(De),
627
619
  backgroundColor: e.value.style.chart.backgroundColor,
628
620
  color: e.value.style.chart.color,
629
621
  active: le.value,
630
622
  onClose: be
631
623
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
632
- yt.value ? (n(), r("div", {
624
+ _t.value ? (n(), i("div", {
633
625
  key: 1,
634
626
  ref_key: "noTitle",
635
- ref: Fe,
627
+ ref: Se,
636
628
  class: "vue-data-ui-no-title-space",
637
629
  style: "height:36px; width: 100%;background:transparent"
638
630
  }, null, 512)) : g("", !0),
639
- e.value.style.chart.title.text ? (n(), r("div", {
631
+ e.value.style.chart.title.text ? (n(), i("div", {
640
632
  key: 2,
641
633
  ref_key: "chartTitle",
642
- ref: Ce
634
+ ref: Fe
643
635
  }, [
644
- (n(), B(Gt, {
645
- key: `title_${Oe.value}`,
636
+ (n(), E(ll, {
637
+ key: `title_${Ae.value}`,
646
638
  config: {
647
639
  title: {
648
640
  cy: "donut-div-title",
@@ -655,13 +647,13 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
655
647
  }
656
648
  }, null, 8, ["config"]))
657
649
  ], 512)) : g("", !0),
658
- e.value.userOptions.show && J.value && (i(Ne) || i(de)) ? (n(), B(Xt, {
650
+ e.value.userOptions.show && Q.value && (r(Pe) || r(de)) ? (n(), E(r($t), {
659
651
  ref: "details",
660
- key: `user_option_${xe.value}`,
652
+ key: `user_option_${Te.value}`,
661
653
  backgroundColor: e.value.style.chart.backgroundColor,
662
654
  color: e.value.style.chart.color,
663
- isPrinting: i(ze),
664
- isImaging: i(Me),
655
+ isPrinting: r(Re),
656
+ isImaging: r(Be),
665
657
  uid: y.value,
666
658
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
667
659
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -670,116 +662,116 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
670
662
  hasTable: e.value.userOptions.buttons.table,
671
663
  hasLabel: e.value.userOptions.buttons.labels,
672
664
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
673
- isFullscreen: R.value,
674
- isTooltip: w.value.showTooltip,
665
+ isFullscreen: U.value,
666
+ isTooltip: $.value.showTooltip,
675
667
  titles: { ...e.value.userOptions.buttonTitles },
676
- chartElement: H.value,
668
+ chartElement: q.value,
677
669
  position: e.value.userOptions.position,
678
670
  hasAnnotator: e.value.userOptions.buttons.annotator,
679
671
  isAnnotation: le.value,
680
- onToggleFullscreen: ht,
681
- onGeneratePdf: i(Ue),
682
- onGenerateCsv: qe,
683
- onGenerateImage: i(Be),
684
- onToggleTable: Ke,
685
- onToggleLabels: Je,
686
- onToggleTooltip: Qe,
672
+ onToggleFullscreen: xt,
673
+ onGeneratePdf: r(Ee),
674
+ onGenerateCsv: Je,
675
+ onGenerateImage: r(Ue),
676
+ onToggleTable: Qe,
677
+ onToggleLabels: Ze,
678
+ onToggleTooltip: je,
687
679
  onToggleAnnotator: be,
688
680
  style: se({
689
- visibility: i(Ne) ? i(de) ? "visible" : "hidden" : "visible"
681
+ visibility: r(Pe) ? r(de) ? "visible" : "hidden" : "visible"
690
682
  })
691
- }, Ft({ _: 2 }, [
683
+ }, Mt({ _: 2 }, [
692
684
  l.$slots.menuIcon ? {
693
685
  name: "menuIcon",
694
- fn: _(({ isOpen: a, color: o }) => [
695
- L(l.$slots, "menuIcon", E(G({ isOpen: a, color: o })), void 0, !0)
686
+ fn: L(({ isOpen: a, color: o }) => [
687
+ x(l.$slots, "menuIcon", Y(X({ isOpen: a, color: o })), void 0, !0)
696
688
  ]),
697
689
  key: "0"
698
690
  } : void 0,
699
691
  l.$slots.optionTooltip ? {
700
692
  name: "optionTooltip",
701
- fn: _(() => [
702
- L(l.$slots, "optionTooltip", {}, void 0, !0)
693
+ fn: L(() => [
694
+ x(l.$slots, "optionTooltip", {}, void 0, !0)
703
695
  ]),
704
696
  key: "1"
705
697
  } : void 0,
706
698
  l.$slots.optionPdf ? {
707
699
  name: "optionPdf",
708
- fn: _(() => [
709
- L(l.$slots, "optionPdf", {}, void 0, !0)
700
+ fn: L(() => [
701
+ x(l.$slots, "optionPdf", {}, void 0, !0)
710
702
  ]),
711
703
  key: "2"
712
704
  } : void 0,
713
705
  l.$slots.optionCsv ? {
714
706
  name: "optionCsv",
715
- fn: _(() => [
716
- L(l.$slots, "optionCsv", {}, void 0, !0)
707
+ fn: L(() => [
708
+ x(l.$slots, "optionCsv", {}, void 0, !0)
717
709
  ]),
718
710
  key: "3"
719
711
  } : void 0,
720
712
  l.$slots.optionImg ? {
721
713
  name: "optionImg",
722
- fn: _(() => [
723
- L(l.$slots, "optionImg", {}, void 0, !0)
714
+ fn: L(() => [
715
+ x(l.$slots, "optionImg", {}, void 0, !0)
724
716
  ]),
725
717
  key: "4"
726
718
  } : void 0,
727
719
  l.$slots.optionTable ? {
728
720
  name: "optionTable",
729
- fn: _(() => [
730
- L(l.$slots, "optionTable", {}, void 0, !0)
721
+ fn: L(() => [
722
+ x(l.$slots, "optionTable", {}, void 0, !0)
731
723
  ]),
732
724
  key: "5"
733
725
  } : void 0,
734
726
  l.$slots.optionLabels ? {
735
727
  name: "optionLabels",
736
- fn: _(() => [
737
- L(l.$slots, "optionLabels", {}, void 0, !0)
728
+ fn: L(() => [
729
+ x(l.$slots, "optionLabels", {}, void 0, !0)
738
730
  ]),
739
731
  key: "6"
740
732
  } : void 0,
741
733
  l.$slots.optionFullscreen ? {
742
734
  name: "optionFullscreen",
743
- fn: _(({ toggleFullscreen: a, isFullscreen: o }) => [
744
- L(l.$slots, "optionFullscreen", E(G({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
735
+ fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
736
+ x(l.$slots, "optionFullscreen", Y(X({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
745
737
  ]),
746
738
  key: "7"
747
739
  } : void 0,
748
740
  l.$slots.optionAnnotator ? {
749
741
  name: "optionAnnotator",
750
- fn: _(({ toggleAnnotator: a, isAnnotator: o }) => [
751
- L(l.$slots, "optionAnnotator", E(G({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
742
+ fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
743
+ x(l.$slots, "optionAnnotator", Y(X({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
752
744
  ]),
753
745
  key: "8"
754
746
  } : void 0
755
747
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
756
- J.value ? (n(), r("svg", {
748
+ Q.value ? (n(), i("svg", {
757
749
  key: 4,
758
750
  ref_key: "svgRef",
759
- ref: Ve,
760
- xmlns: i(Dt),
761
- class: U({
762
- "vue-data-ui-fullscreen--on": R.value,
763
- "vue-data-ui-fulscreen--off": !R.value
751
+ ref: De,
752
+ xmlns: r(Ht),
753
+ class: B({
754
+ "vue-data-ui-fullscreen--on": U.value,
755
+ "vue-data-ui-fulscreen--off": !U.value
764
756
  }),
765
- viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
766
- style: se(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${De.value.css}`)
757
+ viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
758
+ style: se(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Me.value.css}`)
767
759
  }, [
768
- tt(Qt),
769
- l.$slots["chart-background"] ? (n(), r("foreignObject", {
760
+ ot(r(bt)),
761
+ l.$slots["chart-background"] ? (n(), i("foreignObject", {
770
762
  key: 0,
771
763
  x: 0,
772
764
  y: 0,
773
- width: h.value.width <= 0 ? 1e-3 : h.value.width,
774
- height: h.value.height < 0 ? 1e-3 : h.value.height,
765
+ width: f.value.width <= 0 ? 1e-3 : f.value.width,
766
+ height: f.value.height < 0 ? 1e-3 : f.value.height,
775
767
  style: {
776
768
  pointerEvents: "none"
777
769
  }
778
770
  }, [
779
- L(l.$slots, "chart-background", {}, void 0, !0)
780
- ], 8, ol)) : g("", !0),
771
+ x(l.$slots, "chart-background", {}, void 0, !0)
772
+ ], 8, nl)) : g("", !0),
781
773
  m("defs", null, [
782
- (n(!0), r(T, null, S(Xe.value, (a, o) => (n(), r("radialGradient", {
774
+ (n(!0), i(T, null, O(We.value, (a, o) => (n(), i("radialGradient", {
783
775
  id: `radial_${y.value}_${o}`
784
776
  }, [
785
777
  s[5] || (s[5] = m("stop", {
@@ -788,21 +780,21 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
788
780
  "stop-opacity": "0"
789
781
  }, null, -1)),
790
782
  m("stop", {
791
- offset: `${(1 - fe.value / Ye.value[o]) * 100}%`,
792
- "stop-color": i(st)("#FFFFFF", 0),
783
+ offset: `${(1 - fe.value / He.value[o]) * 100}%`,
784
+ "stop-color": r(rt)("#FFFFFF", 0),
793
785
  "stop-opacity": "0"
794
- }, null, 8, ul),
786
+ }, null, 8, il),
795
787
  m("stop", {
796
- offset: `${(1 - fe.value / Ye.value[o] / 2) * 100}%`,
788
+ offset: `${(1 - fe.value / He.value[o] / 2) * 100}%`,
797
789
  "stop-color": "#FFFFFF",
798
790
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
799
- }, null, 8, nl),
791
+ }, null, 8, dl),
800
792
  s[6] || (s[6] = m("stop", {
801
793
  offset: "100%",
802
794
  "stop-color": "#FFFFFF",
803
795
  "stop-opacity": "0"
804
796
  }, null, -1))
805
- ], 8, sl))), 256))
797
+ ], 8, rl))), 256))
806
798
  ]),
807
799
  m("defs", null, [
808
800
  m("filter", {
@@ -816,12 +808,12 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
816
808
  in: "SourceGraphic",
817
809
  stdDeviation: 2,
818
810
  id: `blur_std_${y.value}`
819
- }, null, 8, il),
811
+ }, null, 8, vl),
820
812
  s[7] || (s[7] = m("feColorMatrix", {
821
813
  type: "saturate",
822
814
  values: "0"
823
815
  }, null, -1))
824
- ], 8, rl),
816
+ ], 8, cl),
825
817
  m("filter", {
826
818
  id: `shadow_${y.value}`,
827
819
  "color-interpolation-filters": "sRGB"
@@ -832,65 +824,65 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
832
824
  stdDeviation: "10",
833
825
  "flood-opacity": "0.5",
834
826
  "flood-color": e.value.style.chart.layout.donut.shadowColor
835
- }, null, 8, cl)
836
- ], 8, dl)
827
+ }, null, 8, hl)
828
+ ], 8, fl)
837
829
  ]),
838
- (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
839
- (n(!0), r(T, null, S(a.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
830
+ (n(!0), i(T, null, O(Z.value, (a, o) => (n(), i("g", null, [
831
+ (n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
840
832
  m("path", {
841
833
  class: "vue-ui-donut-arc-path",
842
834
  d: t.arcSlice,
843
- fill: i(st)(t.color, 80),
835
+ fill: r(rt)(t.color, 80),
844
836
  stroke: e.value.style.chart.backgroundColor,
845
837
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
846
- filter: We(t, u)
847
- }, null, 8, vl)
838
+ filter: Ke(t, u)
839
+ }, null, 8, pl)
848
840
  ]))), 256))
849
841
  ]))), 256)),
850
- e.value.style.chart.useGradient ? (n(), r("g", fl, [
851
- (n(!0), r(T, null, S(Xe.value, (a, o) => (n(), r("g", null, [
842
+ e.value.style.chart.useGradient ? (n(), i("g", yl, [
843
+ (n(!0), i(T, null, O(We.value, (a, o) => (n(), i("g", null, [
852
844
  m("path", {
853
845
  d: a.donut.arcSlice,
854
846
  fill: `url(#radial_${y.value}_${o})`,
855
847
  stroke: "transparent",
856
848
  "stroke-width": "0"
857
- }, null, 8, hl)
849
+ }, null, 8, bl)
858
850
  ]))), 256))
859
851
  ])) : g("", !0),
860
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", pl, [
861
- (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
862
- (n(!0), r(T, null, S(a.donut, (t, u) => (n(), r("g", null, [
863
- u === 0 && h.value.width && h.value.height ? (n(), r("text", {
852
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", gl, [
853
+ (n(!0), i(T, null, O(Z.value, (a, o) => (n(), i("g", null, [
854
+ (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
855
+ u === 0 && f.value.width && f.value.height ? (n(), i("text", {
864
856
  key: 0,
865
- class: U({ animated: e.value.useCssAnimation }),
866
- x: h.value.width / 2,
857
+ class: B({ animated: e.value.useCssAnimation }),
858
+ x: f.value.width / 2,
867
859
  y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
868
860
  "text-anchor": "middle",
869
861
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
870
862
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
871
863
  fill: e.value.style.chart.layout.labels.dataLabels.color
872
- }, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(zt)({
864
+ }, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Wt)({
873
865
  source: a.name,
874
866
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
875
- }) : a.name), 11, yl)) : g("", !0)
867
+ }) : a.name), 11, ml)) : g("", !0)
876
868
  ]))), 256))
877
869
  ]))), 256))
878
870
  ])) : g("", !0),
879
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", bl, [
880
- (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
881
- (n(!0), r(T, null, S(a.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", {
882
- filter: We(t, u)
871
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", wl, [
872
+ (n(!0), i(T, null, O(Z.value, (a, o) => (n(), i("g", null, [
873
+ (n(!0), i(T, null, O(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
874
+ filter: Ke(t, u)
883
875
  }, [
884
- lt(m("text", {
885
- class: U({ animated: e.value.useCssAnimation }),
876
+ st(m("text", {
877
+ class: B({ animated: e.value.useCssAnimation }),
886
878
  opacity: pe(t) ? 1 : 0,
887
- "text-anchor": i(X)(t, !0).anchor,
888
- x: i(X)(
879
+ "text-anchor": r(W)(t, !0).anchor,
880
+ x: r(W)(
889
881
  t,
890
882
  !1,
891
883
  e.value.style.chart.layout.labels.dataLabels.offsetX
892
884
  ).x || 0,
893
- y: i(Le)(
885
+ y: r(_e)(
894
886
  t,
895
887
  e.value.style.chart.layout.labels.dataLabels.offsetY,
896
888
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -898,26 +890,26 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
898
890
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
899
891
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
900
892
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
901
- }, V(i(F)({
893
+ }, N(r(F)({
902
894
  v: t.proportion * 100,
903
895
  s: "%",
904
896
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
905
- })), 11, ml), [
897
+ })), 11, kl), [
906
898
  [
907
- at,
908
- w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
899
+ ut,
900
+ $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
909
901
  ]
910
902
  ]),
911
- lt(m("text", {
912
- class: U({ animated: e.value.useCssAnimation }),
903
+ st(m("text", {
904
+ class: B({ animated: e.value.useCssAnimation }),
913
905
  opacity: pe(t) ? 1 : 0,
914
- "text-anchor": i(X)(t, !0).anchor,
915
- x: i(X)(
906
+ "text-anchor": r(W)(t, !0).anchor,
907
+ x: r(W)(
916
908
  t,
917
909
  !1,
918
910
  e.value.style.chart.layout.labels.dataLabels.offsetX
919
911
  ).x || 0,
920
- y: i(Le)(
912
+ y: r(_e)(
921
913
  t,
922
914
  e.value.style.chart.layout.labels.dataLabels.offsetY,
923
915
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -925,32 +917,32 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
925
917
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
926
918
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
927
919
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
928
- }, " (" + V(i(K)(
920
+ }, " (" + N(r(J)(
929
921
  e.value.style.chart.layout.labels.dataLabels.formatter,
930
922
  t.value,
931
- i(F)({
923
+ r(F)({
932
924
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
933
925
  v: t.value,
934
926
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
935
927
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
936
928
  }),
937
929
  { datapoint: t, seriesIndex: o, datapointIndex: u }
938
- )) + ") ", 11, $l), [
930
+ )) + ") ", 11, Ll), [
939
931
  [
940
- at,
941
- w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
932
+ ut,
933
+ $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
942
934
  ]
943
935
  ]),
944
- pe(t) && w.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
936
+ pe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
945
937
  key: 0,
946
- class: U({ animated: e.value.useCssAnimation }),
947
- "text-anchor": i(X)(t, !0).anchor,
948
- x: i(X)(
938
+ class: B({ animated: e.value.useCssAnimation }),
939
+ "text-anchor": r(W)(t, !0).anchor,
940
+ x: r(W)(
949
941
  t,
950
942
  !1,
951
943
  e.value.style.chart.layout.labels.dataLabels.offsetX
952
944
  ).x || 0,
953
- y: i(Le)(
945
+ y: r(_e)(
954
946
  t,
955
947
  e.value.style.chart.layout.labels.dataLabels.offsetY,
956
948
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -958,42 +950,42 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
958
950
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
959
951
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
960
952
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
961
- }, V(i(K)(
953
+ }, N(r(J)(
962
954
  e.value.style.chart.layout.labels.dataLabels.formatter,
963
955
  t.value,
964
- i(F)({
956
+ r(F)({
965
957
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
966
958
  v: t.value,
967
959
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
968
960
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
969
961
  }),
970
962
  { datapoint: t, seriesIndex: o, datapointIndex: u }
971
- )), 11, wl)) : g("", !0)
972
- ], 8, gl))), 256))
963
+ )), 11, xl)) : g("", !0)
964
+ ], 8, $l))), 256))
973
965
  ]))), 256))
974
966
  ])) : g("", !0),
975
- (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
976
- (n(!0), r(T, null, S(a.donut, (t, u) => (n(), r("g", null, [
967
+ (n(!0), i(T, null, O(Z.value, (a, o) => (n(), i("g", null, [
968
+ (n(!0), i(T, null, O(a.donut, (t, u) => (n(), i("g", null, [
977
969
  m("path", {
978
970
  d: t.arcSlice,
979
- fill: ft.value === o ? "rgba(0,0,0,0.1)" : "transparent",
980
- onMouseenter: (c) => $t({
971
+ fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
972
+ onMouseenter: (c) => St({
981
973
  datapoint: t,
982
974
  seriesIndex: t.seriesIndex
983
975
  }),
984
- onClick: (c) => gt({ datapoint: t, index: u }),
976
+ onClick: (c) => Ft({ datapoint: t, index: u }),
985
977
  onMouseleave: s[0] || (s[0] = (c) => {
986
- ne.value = !1, He.value = null, j.value = null, ee.value = null;
978
+ ne.value = !1, qe.value = null, j.value = null, ee.value = null;
987
979
  })
988
- }, null, 40, kl)
980
+ }, null, 40, Cl)
989
981
  ]))), 256))
990
982
  ]))), 256)),
991
- L(l.$slots, "svg", { svg: h.value }, void 0, !0)
992
- ], 14, al)) : g("", !0),
993
- l.$slots.watermark ? (n(), r("div", _l, [
994
- L(l.$slots, "watermark", E(G({ isPrinting: i(ze) || i(Me) })), void 0, !0)
983
+ x(l.$slots, "svg", { svg: f.value }, void 0, !0)
984
+ ], 14, ul)) : g("", !0),
985
+ l.$slots.watermark ? (n(), i("div", _l, [
986
+ x(l.$slots, "watermark", Y(X({ isPrinting: r(Re) || r(Be) })), void 0, !0)
995
987
  ])) : g("", !0),
996
- J.value ? g("", !0) : (n(), B(Kt, {
988
+ Q.value ? g("", !0) : (n(), E(r(mt), {
997
989
  key: 6,
998
990
  config: {
999
991
  type: "donut",
@@ -1005,8 +997,8 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
1005
997
  }
1006
998
  }
1007
999
  }, null, 8, ["config"])),
1008
- tt(Wt, {
1009
- show: w.value.showTooltip && ne.value,
1000
+ ot(r(wt), {
1001
+ show: $.value.showTooltip && ne.value,
1010
1002
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1011
1003
  color: e.value.style.chart.tooltip.color,
1012
1004
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1016,43 +1008,43 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
1016
1008
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1017
1009
  position: e.value.style.chart.tooltip.position,
1018
1010
  offsetY: e.value.style.chart.tooltip.offsetY,
1019
- parent: H.value,
1011
+ parent: q.value,
1020
1012
  content: re.value,
1021
- isFullscreen: R.value,
1022
- isCustom: i(ut)(e.value.style.chart.tooltip.customFormat)
1013
+ isFullscreen: U.value,
1014
+ isCustom: r(it)(e.value.style.chart.tooltip.customFormat)
1023
1015
  }, {
1024
- "tooltip-before": _(() => [
1025
- L(l.$slots, "tooltip-before", E(G({ ...he.value })), void 0, !0)
1016
+ "tooltip-before": L(() => [
1017
+ x(l.$slots, "tooltip-before", Y(X({ ...he.value })), void 0, !0)
1026
1018
  ]),
1027
- "tooltip-after": _(() => [
1028
- L(l.$slots, "tooltip-after", E(G({ ...he.value })), void 0, !0)
1019
+ "tooltip-after": L(() => [
1020
+ x(l.$slots, "tooltip-after", Y(X({ ...he.value })), void 0, !0)
1029
1021
  ]),
1030
1022
  _: 3
1031
1023
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1032
- e.value.style.chart.legend.show ? (n(), r("div", {
1024
+ e.value.style.chart.legend.show ? (n(), i("div", {
1033
1025
  key: 7,
1034
1026
  ref_key: "chartLegend",
1035
1027
  ref: ie,
1036
- class: U({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1028
+ class: B({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1037
1029
  }, [
1038
- (n(!0), r(T, null, S(ye.value, (a, o) => (n(), B(qt, {
1039
- key: `legend_${o}_${Ie.value}`,
1030
+ (n(!0), i(T, null, O(ye.value, (a, o) => (n(), E(al, {
1031
+ key: `legend_${o}_${Ne.value}`,
1040
1032
  legendSet: a,
1041
- config: wt.value,
1033
+ config: At.value,
1042
1034
  onClickMarker: s[1] || (s[1] = ({ legend: t }) => ve(t))
1043
1035
  }, {
1044
- legendTitle: _(({ titleSet: t }) => [
1045
- t[0] && t[0].arcOf ? (n(), r("div", Ll, V(t[0].arcOf), 1)) : g("", !0)
1036
+ legendTitle: L(({ titleSet: t }) => [
1037
+ t[0] && t[0].arcOf ? (n(), i("div", Tl, N(t[0].arcOf), 1)) : g("", !0)
1046
1038
  ]),
1047
- item: _(({ legend: t, index: u }) => [
1039
+ item: L(({ legend: t, index: u }) => [
1048
1040
  m("div", {
1049
1041
  onClick: (c) => ve(t),
1050
- style: se(`opacity:${$.value.includes(t.id) ? 0.5 : 1}`)
1042
+ style: se(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
1051
1043
  }, [
1052
- ue(V(t.name) + ": " + V(i(K)(
1044
+ ue(N(t.name) + ": " + N(r(J)(
1053
1045
  e.value.style.chart.layout.labels.dataLabels.formatter,
1054
1046
  t.value,
1055
- i(F)({
1047
+ r(F)({
1056
1048
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1057
1049
  v: t.value,
1058
1050
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -1060,40 +1052,40 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
1060
1052
  }),
1061
1053
  { datapoint: t, seriesIndex: u }
1062
1054
  )) + " ", 1),
1063
- $.value.includes(t.id) ? (n(), r(T, { key: 1 }, [
1055
+ w.value.includes(t.id) ? (n(), i(T, { key: 1 }, [
1064
1056
  ue(" ( - % ) ")
1065
- ], 64)) : (n(), r(T, { key: 0 }, [
1066
- ue(" (" + V(isNaN(t.value / t.total) ? "-" : i(F)({
1057
+ ], 64)) : (n(), i(T, { key: 0 }, [
1058
+ ue(" (" + N(isNaN(t.value / t.total) ? "-" : r(F)({
1067
1059
  v: t.value / t.total * 100,
1068
1060
  s: "%",
1069
1061
  r: e.value.style.chart.legend.roundingPercentage
1070
1062
  })) + ") ", 1)
1071
1063
  ], 64))
1072
- ], 12, xl)
1064
+ ], 12, Fl)
1073
1065
  ]),
1074
1066
  _: 2
1075
1067
  }, 1032, ["legendSet", "config"]))), 128))
1076
1068
  ], 2)) : g("", !0),
1077
- e.value.style.chart.legend.show ? g("", !0) : (n(), r("div", {
1069
+ e.value.style.chart.legend.show ? g("", !0) : (n(), i("div", {
1078
1070
  key: 8,
1079
1071
  ref_key: "chartLegend",
1080
1072
  ref: ie
1081
1073
  }, [
1082
- L(l.$slots, "legend", { legend: ye.value }, void 0, !0)
1074
+ x(l.$slots, "legend", { legend: ye.value }, void 0, !0)
1083
1075
  ], 512)),
1084
- l.$slots.source ? (n(), r("div", {
1076
+ l.$slots.source ? (n(), i("div", {
1085
1077
  key: 9,
1086
1078
  ref_key: "source",
1087
- ref: Te,
1079
+ ref: Oe,
1088
1080
  dir: "auto"
1089
1081
  }, [
1090
- L(l.$slots, "source", {}, void 0, !0)
1082
+ x(l.$slots, "source", {}, void 0, !0)
1091
1083
  ], 512)) : g("", !0),
1092
- J.value ? (n(), B(Jt, {
1084
+ Q.value ? (n(), E(r(pt), {
1093
1085
  key: 10,
1094
1086
  hideDetails: "",
1095
1087
  config: {
1096
- open: w.value.showTable,
1088
+ open: $.value.showTable,
1097
1089
  maxHeight: 1e4,
1098
1090
  body: {
1099
1091
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -1105,33 +1097,33 @@ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["i
1105
1097
  }
1106
1098
  }
1107
1099
  }, {
1108
- content: _(() => [
1109
- (n(), B(Ht, {
1110
- key: `table_${Se.value}`,
1100
+ content: L(() => [
1101
+ (n(), E(r(yt), {
1102
+ key: `table_${Ie.value}`,
1111
1103
  colNames: te.value.colNames,
1112
1104
  head: te.value.head,
1113
1105
  body: te.value.body,
1114
1106
  config: te.value.config,
1115
1107
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1116
- onClose: s[2] || (s[2] = (a) => w.value.showTable = !1)
1108
+ onClose: s[2] || (s[2] = (a) => $.value.showTable = !1)
1117
1109
  }, {
1118
- th: _(({ th: a }) => [
1110
+ th: L(({ th: a }) => [
1119
1111
  m("div", {
1120
1112
  innerHTML: a,
1121
1113
  style: { display: "flex", "align-items": "center" }
1122
- }, null, 8, Cl)
1114
+ }, null, 8, Ol)
1123
1115
  ]),
1124
- td: _(({ td: a }) => [
1125
- ue(V(a.name || a), 1)
1116
+ td: L(({ td: a }) => [
1117
+ ue(N(a.name || a), 1)
1126
1118
  ]),
1127
1119
  _: 1
1128
1120
  }, 8, ["colNames", "head", "body", "config", "title"]))
1129
1121
  ]),
1130
1122
  _: 1
1131
1123
  }, 8, ["config"])) : g("", !0)
1132
- ], 46, ll));
1124
+ ], 46, sl));
1133
1125
  }
1134
- }, Yl = /* @__PURE__ */ tl(Tl, [["__scopeId", "data-v-3bc36ce2"]]);
1126
+ }, El = /* @__PURE__ */ ol(Sl, [["__scopeId", "data-v-e7ec0539"]]);
1135
1127
  export {
1136
- Yl as default
1128
+ El as default
1137
1129
  };