vue-data-ui 2.15.0 → 2.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/{Arrow-DKw6950J.js → Arrow-BWXCPv6v.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BO8fFfAb.js → BaseDraggableDialog-BVDVgkJA.js} +2 -2
  3. package/dist/{BaseIcon-JM7bAYf6.js → BaseIcon-Bp7UPYnW.js} +1 -1
  4. package/dist/{ColorPicker-CtdrdDuN.js → ColorPicker-B5OAwv96.js} +2 -2
  5. package/dist/{DataTable-CD2q7tjj.js → DataTable-93xWsJ6c.js} +2 -2
  6. package/dist/{Legend-R-8Q66YR.js → Legend-hctdyKA6.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DXUlGXql.js → NonSvgPenAndPaper-CseO56IR.js} +3 -3
  8. package/dist/{PackageVersion-gLNy4C0t.js → PackageVersion-yIH1jHJc.js} +1 -1
  9. package/dist/{PenAndPaper-lvQKUG-x.js → PenAndPaper-D6C8iSCb.js} +3 -3
  10. package/dist/{Shape-CY4386Ox.js → Shape-KmPcM_8X.js} +1 -1
  11. package/dist/{Slicer-DcqyQpMv.js → Slicer-5-W1e_S-.js} +2 -2
  12. package/dist/{SparkTooltip-DQbXpDUg.js → SparkTooltip-B9dKuZbW.js} +1 -1
  13. package/dist/{Title-DX1Pj6u8.js → Title-D7i6kdEt.js} +1 -1
  14. package/dist/{Tooltip-jN48xe9l.js → Tooltip-CgE5JMdg.js} +1 -1
  15. package/dist/{UserOptions-DYC8tFSC.js → UserOptions-DjQRjUl1.js} +2 -2
  16. package/dist/{dom-to-png-DgmC_4tW.js → dom-to-png-DyD8S_Jr.js} +1 -1
  17. package/dist/{img-B90c22Kx.js → img-BUo2ttV5.js} +1 -1
  18. package/dist/{index-qLjCmB1J.js → index-0xl6yeT_.js} +5 -3
  19. package/dist/{pdf-FFi0pe-v.js → pdf-DXd78sXk.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +2 -0
  22. package/dist/types/vue-data-ui.d.ts +2 -0
  23. package/dist/{useNestedProp-Cv2n6auT.js → useNestedProp-BpsGhH52.js} +1 -1
  24. package/dist/{usePrinter-Dh3NHc5Q.js → usePrinter-G7F4lL2Z.js} +2 -2
  25. package/dist/{vue-data-ui-8wiBgcV4.js → vue-data-ui-1c3WZYGe.js} +63 -63
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-DdUMyN0e.js → vue-ui-3d-bar-BM1HD1_j.js} +5 -5
  28. package/dist/{vue-ui-accordion-C9TQ7MO4.js → vue-ui-accordion-gr1Dczju.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-Dhy5XNw5.js → vue-ui-age-pyramid-cFxPrty5.js} +5 -5
  30. package/dist/{vue-ui-annotator-DV1apulf.js → vue-ui-annotator-CoN1JEMD.js} +2 -2
  31. package/dist/{vue-ui-bullet-BdI1gdbT.js → vue-ui-bullet-ClcGk_b0.js} +6 -6
  32. package/dist/{vue-ui-candlestick-D38UytRA.js → vue-ui-candlestick-DO-1KYTl.js} +6 -6
  33. package/dist/{vue-ui-carousel-table-upPKN2Ap.js → vue-ui-carousel-table-9Ku_ebjG.js} +4 -4
  34. package/dist/{vue-ui-chestnut-D2Jw2GKp.js → vue-ui-chestnut-3Gjab_Sk.js} +4 -4
  35. package/dist/{vue-ui-chord-D-N7F12j.js → vue-ui-chord-DeOUOOCR.js} +7 -7
  36. package/dist/{vue-ui-circle-pack-CHDE9pKa.js → vue-ui-circle-pack-BfdGvoPl.js} +5 -5
  37. package/dist/{vue-ui-cursor-BshRfAz-.js → vue-ui-cursor-BAlIn5n7.js} +2 -2
  38. package/dist/{vue-ui-dashboard-DcxMfQbm.js → vue-ui-dashboard-DYn5g5A0.js} +62 -62
  39. package/dist/{vue-ui-digits-CJrt5BJ1.js → vue-ui-digits-COnU0Bjx.js} +2 -2
  40. package/dist/{vue-ui-donut-CnL_oyDf.js → vue-ui-donut-CVMUWBHY.js} +450 -428
  41. package/dist/{vue-ui-donut-evolution-Ds3gml6r.js → vue-ui-donut-evolution-DdODzbv7.js} +7 -7
  42. package/dist/{vue-ui-dumbbell-9LSenoFZ.js → vue-ui-dumbbell-zue1EgiF.js} +6 -6
  43. package/dist/{vue-ui-flow-C22v5GN2.js → vue-ui-flow-CT_KSVPw.js} +6 -6
  44. package/dist/{vue-ui-funnel-B1nlsC-X.js → vue-ui-funnel-B6y2syp1.js} +5 -5
  45. package/dist/{vue-ui-galaxy-B6BpVGEN.js → vue-ui-galaxy-6hf2O-OT.js} +4 -4
  46. package/dist/{vue-ui-gauge-CxIA82Oi.js → vue-ui-gauge-D5sdINkF.js} +5 -5
  47. package/dist/{vue-ui-gizmo-DoKv0gEe.js → vue-ui-gizmo-l8GqobB9.js} +3 -3
  48. package/dist/{vue-ui-heatmap-DHZfILtm.js → vue-ui-heatmap-oMWjyEU1.js} +6 -6
  49. package/dist/{vue-ui-history-plot-CA3K02gG.js → vue-ui-history-plot-CPDfop4z.js} +6 -6
  50. package/dist/{vue-ui-kpi-Cl4-a765.js → vue-ui-kpi-DdT8c2qN.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-otB8K5br.js → vue-ui-mini-loader-sUauCnke.js} +2 -2
  52. package/dist/{vue-ui-molecule-Cpzuuc_E.js → vue-ui-molecule-CGiz21KJ.js} +4 -4
  53. package/dist/{vue-ui-mood-radar-C9gjpo76.js → vue-ui-mood-radar-DuBZs64f.js} +6 -6
  54. package/dist/{vue-ui-nested-donuts-DIMdD7XN.js → vue-ui-nested-donuts-CjwnVuni.js} +343 -319
  55. package/dist/{vue-ui-onion-DZuOWHN2.js → vue-ui-onion-Dtb6f9Pj.js} +6 -6
  56. package/dist/{vue-ui-parallel-coordinate-plot-DFaCAOJ4.js → vue-ui-parallel-coordinate-plot-eUARPFQz.js} +7 -7
  57. package/dist/{vue-ui-quadrant-B69rCR3d.js → vue-ui-quadrant-BENOLZTh.js} +7 -7
  58. package/dist/{vue-ui-quick-chart-D3ViBIuY.js → vue-ui-quick-chart-BbiNJN8H.js} +5 -5
  59. package/dist/{vue-ui-radar-CL29WxOp.js → vue-ui-radar-Ca928f5C.js} +6 -6
  60. package/dist/{vue-ui-rating-CSUNb7yY.js → vue-ui-rating-Chk3Bc6U.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-MKe1JnkD.js → vue-ui-relation-circle-GliccPBT.js} +5 -5
  62. package/dist/{vue-ui-ridgeline-WutbT4di.js → vue-ui-ridgeline-j8bwod-1.js} +7 -7
  63. package/dist/{vue-ui-rings-DrZTS5Im.js → vue-ui-rings-AHi_l7MY.js} +7 -7
  64. package/dist/{vue-ui-scatter-BlLXM8Bx.js → vue-ui-scatter-cC3vGu_O.js} +7 -7
  65. package/dist/{vue-ui-skeleton-Cj6SRkhT.js → vue-ui-skeleton-1aUzcGMM.js} +3 -3
  66. package/dist/{vue-ui-smiley-DUydiLLl.js → vue-ui-smiley-A-HBdymI.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-CvmlasIX.js → vue-ui-spark-trend-Ctx6IJHJ.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-Dz6SDThS.js → vue-ui-sparkbar-T2LuTMDI.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-D2JyRos2.js → vue-ui-sparkgauge-FEVecElc.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-BdI9frTN.js → vue-ui-sparkhistogram-Bu8hx-SD.js} +4 -4
  71. package/dist/{vue-ui-sparkline-BAISGFMq.js → vue-ui-sparkline-B0dlaC56.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-Da7IAbHx.js → vue-ui-sparkstackbar-CvYbH--B.js} +3 -3
  73. package/dist/{vue-ui-stackbar-eMnoUkhf.js → vue-ui-stackbar-CPsdBNF8.js} +8 -8
  74. package/dist/{vue-ui-strip-plot-DYUHvHpY.js → vue-ui-strip-plot-Dl7Zg_Ou.js} +6 -6
  75. package/dist/{vue-ui-table-CB6cwGXN.js → vue-ui-table-1A4jcDSx.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-CPk8caYe.js → vue-ui-table-heatmap-KzYY-CQt.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-NBtUQVOW.js → vue-ui-table-sparkline-D9_N4McK.js} +4 -4
  78. package/dist/{vue-ui-thermometer-1QS5hzkW.js → vue-ui-thermometer-CJUIRDs5.js} +5 -5
  79. package/dist/{vue-ui-timer-C0n7n4ne.js → vue-ui-timer-DjPOb80m.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-DfBTlpK1.js → vue-ui-tiremarks-mTtcrs7r.js} +5 -5
  81. package/dist/{vue-ui-treemap-BTvd5pVa.js → vue-ui-treemap-D8oyCUmA.js} +7 -7
  82. package/dist/{vue-ui-vertical-bar-COH9EX2H.js → vue-ui-vertical-bar-CsNUVJfk.js} +8 -8
  83. package/dist/{vue-ui-waffle-BdDGN-F-.js → vue-ui-waffle-CEvNLzHh.js} +7 -7
  84. package/dist/{vue-ui-wheel-Cd8GfuiY.js → vue-ui-wheel-Dw_Z669Z.js} +5 -5
  85. package/dist/{vue-ui-word-cloud-BquWmmCH.js → vue-ui-word-cloud-BsK5IGnI.js} +5 -5
  86. package/dist/{vue-ui-world-BX4K7BvL.js → vue-ui-world-_xucFe9e.js} +5 -5
  87. package/dist/{vue-ui-xy-jhm3Dnsm.js → vue-ui-xy-BE4LWW9m.js} +16 -16
  88. package/dist/{vue-ui-xy-canvas-BwJTSCIj.js → vue-ui-xy-canvas-3Fbzqt4p.js} +7 -7
  89. package/package.json +1 -1
@@ -1,20 +1,20 @@
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 F, 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 O, X as Ht, s as rt, L as Wt, k as _e, n as W, i as K, x as it, q as qt, r as Jt, y as Kt, T as dt } from "./index-qLjCmB1J.js";
3
- import { t as Qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as ct } from "./useNestedProp-Cv2n6auT.js";
5
- import { u as jt } from "./usePrinter-Dh3NHc5Q.js";
6
- import { u as el } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as tl } from "./useChartAccessibility-9icAAmYg.js";
8
- import ll from "./Title-DX1Pj6u8.js";
9
- import al from "./Legend-R-8Q66YR.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"], hl = ["id"], fl = ["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 = {
1
+ import { defineAsyncComponent as E, computed as $, ref as h, watch as lt, onMounted as at, nextTick as ot, shallowRef as st, onBeforeUnmount as zt, createElementBlock as i, openBlock as n, unref as r, normalizeStyle as ue, normalizeClass as U, createBlock as R, createCommentVNode as m, createVNode as ut, createSlots as Mt, withCtx as L, renderSlot as x, normalizeProps as Y, guardReactiveProps as X, createElementVNode as g, Fragment as T, renderList as F, toDisplayString as S, withDirectives as nt, vShow as rt, createTextVNode as ne } from "vue";
2
+ import { u as Et, c as Ut, t as Rt, p as Ce, a as Bt, H as D, o as Gt, e as W, b as Yt, d as Xt, m as _e, f as N, X as Wt, s as Ht, L as qt, k as Te, n as H, i as K, x as it, q as Jt, r as Kt, y as Qt, v as Fe, T as dt } from "./index-0xl6yeT_.js";
3
+ import { t as Zt, u as jt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as ct } from "./useNestedProp-BpsGhH52.js";
5
+ import { u as el } from "./usePrinter-G7F4lL2Z.js";
6
+ import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
8
+ import al from "./Title-D7i6kdEt.js";
9
+ import ol from "./Legend-hctdyKA6.js";
10
+ import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const ul = ["id"], nl = ["xmlns", "viewBox"], rl = ["width", "height"], il = ["id"], dl = ["offset", "stop-color"], cl = ["offset", "stop-opacity"], vl = ["id"], hl = ["id"], fl = ["id"], pl = ["flood-color"], yl = ["d", "fill", "stroke", "stroke-width", "filter"], bl = ["d", "fill", "stroke", "stroke-width"], gl = { key: 1 }, ml = ["d", "fill"], wl = { key: 2 }, kl = ["x", "y", "font-size", "font-weight", "fill"], $l = { key: 3 }, Ll = ["filter"], xl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Cl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], _l = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Tl = ["d", "fill", "onMouseenter", "onClick"], Fl = {
12
12
  key: 5,
13
13
  class: "vue-data-ui-watermark"
14
- }, Tl = {
14
+ }, Nl = {
15
15
  key: 0,
16
16
  class: "vue-ui-nested-donuts-legend-title"
17
- }, Ol = ["onClick"], Fl = ["innerHTML"], Al = {
17
+ }, Ol = ["onClick"], Al = ["innerHTML"], Il = {
18
18
  __name: "vue-ui-nested-donuts",
19
19
  props: {
20
20
  config: {
@@ -32,37 +32,37 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
32
32
  },
33
33
  emits: ["selectLegend", "selectDatapoint"],
34
34
  setup(vt, { expose: ht, emit: ft }) {
35
- const pt = R(() => import("./vue-ui-accordion-C9TQ7MO4.js")), yt = R(() => import("./DataTable-CD2q7tjj.js")), bt = R(() => import("./PackageVersion-gLNy4C0t.js")), gt = R(() => import("./PenAndPaper-lvQKUG-x.js")), mt = R(() => import("./vue-ui-skeleton-Cj6SRkhT.js")), wt = R(() => import("./Tooltip-jN48xe9l.js")), $t = R(() => import("./UserOptions-DYC8tFSC.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), Oe = v(null), ie = v(null), Fe = v(null), Ae = v(null), Se = v(0), Ie = v(0), Ne = v(0), z = v(!0), M = v([]), J = v([]), U = v(!1);
35
+ const pt = E(() => import("./vue-ui-accordion-gr1Dczju.js")), yt = E(() => import("./DataTable-93xWsJ6c.js")), bt = E(() => import("./PackageVersion-yIH1jHJc.js")), gt = E(() => import("./PenAndPaper-D6C8iSCb.js")), mt = E(() => import("./vue-ui-skeleton-1aUzcGMM.js")), wt = E(() => import("./Tooltip-CgE5JMdg.js")), kt = E(() => import("./UserOptions-DjQRjUl1.js")), { vue_ui_nested_donuts: $t } = Et(), C = vt, Q = $(() => !!C.dataset && C.dataset.length), y = h(Ut()), re = h(!1), ie = h(""), Lt = h(null), Ne = h(0), q = h(null), Oe = h(null), de = h(null), Ae = h(null), Ie = h(null), Se = h(0), Ve = h(0), Pe = h(0), z = h(!0), M = h([]), J = h([]), B = h(!1);
36
36
  function xt(l) {
37
- U.value = l, Te.value += 1;
37
+ B.value = l, Ne.value += 1;
38
38
  }
39
- const e = k({
40
- get: () => ze(),
39
+ const e = $({
40
+ get: () => Ee(),
41
41
  set: (l) => l
42
- }), { userOptionsVisible: de, setUserOptionsVisibility: Ve, keepUserOptionState: Pe } = el({ config: e.value }), { svgRef: De } = tl({
42
+ }), { userOptionsVisible: ce, setUserOptionsVisibility: De, keepUserOptionState: ze } = tl({ config: e.value }), { svgRef: Me } = ll({
43
43
  config: e.value.style.chart.title
44
44
  });
45
- function ze() {
45
+ function Ee() {
46
46
  const l = ct({
47
47
  userConfig: C.config,
48
- defaultConfig: kt
48
+ defaultConfig: $t
49
49
  });
50
50
  return l.theme ? {
51
51
  ...ct({
52
- userConfig: Ut.vue_ui_nested_donuts[l.theme] || C.config,
52
+ userConfig: Bt.vue_ui_nested_donuts[l.theme] || C.config,
53
53
  defaultConfig: l
54
54
  }),
55
- customPalette: Et[l.theme] || Ce
55
+ customPalette: Rt[l.theme] || Ce
56
56
  } : l;
57
57
  }
58
- et(
58
+ lt(
59
59
  () => C.config,
60
60
  (l) => {
61
- e.value = ze(), de.value = !e.value.userOptions.showOnChartHover, ce(), Se.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, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
61
+ e.value = Ee(), ce.value = !e.value.userOptions.showOnChartHover, ve(), Se.value += 1, Ve.value += 1, Pe.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show, f.value.width = e.value.style.chart.width, f.value.height = e.value.style.chart.height;
62
62
  },
63
63
  { deep: !0 }
64
64
  );
65
- const Me = k(() => {
65
+ const Ue = $(() => {
66
66
  const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
67
67
  return {
68
68
  css: `padding:${l}px ${s}px ${a}px ${o}px`,
@@ -77,47 +77,47 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
77
77
  const t = l.length;
78
78
  M.value = Array(t).fill(0), J.value = [];
79
79
  let u = 0;
80
- l.forEach((c, f) => {
80
+ l.forEach((c, v) => {
81
81
  setTimeout(() => {
82
- const I = performance.now();
82
+ const O = performance.now();
83
83
  function d(p) {
84
- const _ = Math.min((p - I) / s, 1), ge = dt(_), me = c * ge;
85
- M.value[f] = me, M.value = [...M.value];
86
- const ae = [];
84
+ const _ = Math.min((p - O) / s, 1), ge = dt(_), me = c * ge;
85
+ M.value[v] = me, M.value = [...M.value];
86
+ const oe = [];
87
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),
88
+ C.dataset.forEach((se, ke) => {
89
+ const St = Fe(se.series.reduce(
90
+ (Le, xe) => Le + Fe(D(xe.values).reduce((Pt, Dt) => Pt + Dt, 0)),
91
91
  0
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({
92
+ )), Vt = Fe(M.value.slice(we, we + se.series.length).reduce((Le, xe) => Le + xe, 0)), $e = St - Vt;
93
+ $e > Number.MIN_VALUE && oe.push({
94
94
  name: "__ghost__",
95
- arcOf: oe.name,
96
- arcOfId: `${y.value}_${$e}`,
97
- id: `ghost_${y.value}_${$e}`,
95
+ arcOf: se.name,
96
+ arcOfId: `${y.value}_${ke}`,
97
+ id: `ghost_${y.value}_${ke}`,
98
98
  seriesIndex: -1,
99
- datasetIndex: $e,
99
+ datasetIndex: ke,
100
100
  color: "transparent",
101
- value: ke,
102
- fullValue: ke,
101
+ value: $e,
102
+ fullValue: $e,
103
103
  absoluteValues: [],
104
104
  ghost: !0
105
- }), we += oe.series.length;
106
- }), J.value = ae, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
105
+ }), we += se.series.length;
106
+ }), J.value = oe, _ < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
107
107
  }
108
108
  requestAnimationFrame(d);
109
- }, f * a);
109
+ }, v * a);
110
110
  });
111
111
  });
112
112
  }
113
- tt(async () => {
114
- if (ce(), e.value.startAnimation?.show) {
113
+ at(async () => {
114
+ if (ve(), e.value.startAnimation?.show) {
115
115
  const s = C.dataset.flatMap((a) => a.series).map(
116
116
  (a) => D(a.values).reduce((o, t) => o + t, 0)
117
117
  );
118
118
  M.value = s.map(() => 0), z.value = !0, J.value = C.dataset.map((a, o) => {
119
119
  const t = a.series.reduce(
120
- (u, c) => u + D(c.values).reduce((f, I) => f + I, 0),
120
+ (u, c) => u + D(c.values).reduce((v, O) => v + O, 0),
121
121
  0
122
122
  );
123
123
  return {
@@ -133,7 +133,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
133
133
  absoluteValues: [],
134
134
  ghost: !0
135
135
  };
136
- }), await lt(), Ct(
136
+ }), await ot(), Ct(
137
137
  s,
138
138
  e.value.startAnimation.durationMs,
139
139
  e.value.startAnimation.staggerMs
@@ -143,26 +143,26 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
143
143
  } else
144
144
  z.value = !1;
145
145
  });
146
- const V = at(null), G = at(null);
147
- tt(() => {
148
- ce();
146
+ const V = st(null), G = st(null);
147
+ at(() => {
148
+ ve();
149
149
  });
150
- function ce() {
151
- if (Gt(C.dataset) && H({
150
+ function ve() {
151
+ if (Gt(C.dataset) && W({
152
152
  componentName: "VueUiNestedDonuts",
153
153
  type: "dataset"
154
154
  }), e.value.responsive) {
155
- const l = Qt(() => {
156
- const { width: s, height: a } = Zt({
155
+ const l = Zt(() => {
156
+ const { width: s, height: a } = jt({
157
157
  chart: q.value,
158
158
  title: e.value.style.chart.title.text ? Oe.value : null,
159
- legend: e.value.style.chart.legend.show ? ie.value : null,
160
- source: Fe.value,
161
- noTitle: Ae.value,
162
- padding: Me.value
159
+ legend: e.value.style.chart.legend.show ? de.value : null,
160
+ source: Ae.value,
161
+ noTitle: Ie.value,
162
+ padding: Ue.value
163
163
  });
164
164
  requestAnimationFrame(() => {
165
- h.value.width = s, h.value.height = a;
165
+ f.value.width = s, f.value.height = a;
166
166
  });
167
167
  });
168
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);
@@ -171,24 +171,24 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
171
171
  zt(() => {
172
172
  V.value && (G.value && V.value.unobserve(G.value), V.value.disconnect());
173
173
  });
174
- const { isPrinting: Re, isImaging: Be, generatePdf: Ee, generateImage: Ue } = jt({
174
+ const { isPrinting: Re, isImaging: Be, generatePdf: Ge, generateImage: Ye } = el({
175
175
  elementId: `nested_donuts_${y.value}`,
176
176
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
177
177
  options: e.value.userOptions.print
178
- }), _t = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = k(() => Yt(e.value.customPalette)), $ = v({
178
+ }), _t = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = $(() => Yt(e.value.customPalette)), k = h({
179
179
  dataLabels: {
180
180
  show: e.value.style.chart.layout.labels.dataLabels.show
181
181
  },
182
182
  showTable: e.value.table.show,
183
183
  showTooltip: e.value.style.chart.tooltip.show
184
- }), h = v({
184
+ }), f = h({
185
185
  width: e.value.style.chart.width,
186
186
  height: e.value.style.chart.height
187
- }), Ge = ft;
188
- function Ot({ datapoint: l, index: s }) {
189
- Ge("selectDatapoint", { datapoint: l, index: s });
187
+ }), Xe = ft;
188
+ function Ft({ datapoint: l, index: s }) {
189
+ Xe("selectDatapoint", { datapoint: l, index: s });
190
190
  }
191
- function Ye({
191
+ function We({
192
192
  from: l,
193
193
  to: s,
194
194
  duration: a,
@@ -197,36 +197,36 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
197
197
  easing: u = dt
198
198
  }) {
199
199
  const c = performance.now();
200
- function f(I) {
201
- const d = Math.min((I - c) / a, 1), p = u(d), _ = l + (s - l) * p;
202
- o(_, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), t && t());
200
+ function v(O) {
201
+ const d = Math.min((O - c) / a, 1), p = u(d), _ = l + (s - l) * p;
202
+ o(_, d), d < 1 ? requestAnimationFrame(v) : (o(s, 1), t && t());
203
203
  }
204
- requestAnimationFrame(f);
204
+ requestAnimationFrame(v);
205
205
  }
206
- const w = v([]), A = k(() => {
206
+ const w = h([]), A = $(() => {
207
207
  C.dataset.forEach((s, a) => {
208
- [null, void 0].includes(s.name) && H({
208
+ [null, void 0].includes(s.name) && W({
209
209
  componentName: "VueUiNestedDonuts",
210
210
  type: "datasetSerieAttribute",
211
211
  property: "name",
212
212
  index: a
213
- }), [null, void 0].includes(s.series) ? H({
213
+ }), [null, void 0].includes(s.series) ? W({
214
214
  componentName: "VueUiNestedDonuts",
215
215
  type: "datasetSerieAttribute",
216
216
  property: "series",
217
217
  index: a
218
- }) : s.series.length === 0 ? H({
218
+ }) : s.series.length === 0 ? W({
219
219
  componentName: "VueUiNestedDonuts",
220
220
  type: "datasetAttributeEmpty",
221
221
  property: `series at index ${a}`
222
222
  }) : s.series.forEach((o, t) => {
223
- [null, void 0].includes(o.name) && H({
223
+ [null, void 0].includes(o.name) && W({
224
224
  componentName: "VueUiNestedDonuts",
225
225
  type: "datasetSerieAttribute",
226
226
  property: "name",
227
227
  index: t,
228
228
  key: "serie"
229
- }), [null, void 0].includes(o.values) && H({
229
+ }), [null, void 0].includes(o.values) && W({
230
230
  componentName: "VueUiNestedDonuts",
231
231
  type: "datasetSerieAttribute",
232
232
  property: "values",
@@ -242,7 +242,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
242
242
  datasetIndex: a,
243
243
  id: `${y.value}_${a}`,
244
244
  series: s.series.map((o, t) => {
245
- const u = D(o.values).reduce((c, f) => c + f, 0);
245
+ const u = D(o.values).reduce((c, v) => c + v, 0);
246
246
  return {
247
247
  name: o.name,
248
248
  arcOf: s.name,
@@ -256,7 +256,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
256
256
  };
257
257
  })
258
258
  }));
259
- }), S = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Xe = k(() => [...A.value].map((l, s) => {
259
+ }), I = $(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), He = $(() => [...A.value].map((l, s) => {
260
260
  const a = l.series.filter((o) => !w.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
261
261
  return {
262
262
  ...l,
@@ -267,22 +267,22 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
267
267
  }))
268
268
  };
269
269
  }));
270
- function Ft(l, s, a) {
270
+ function Nt(l, s, a) {
271
271
  let o = 0;
272
272
  for (let t = 0; t < l.length; t += 1)
273
273
  a.includes(l[t]) && (o += 1);
274
274
  return o < s;
275
275
  }
276
- const b = v(Xe.value);
277
- et(
278
- () => Xe.value,
276
+ const b = h(He.value);
277
+ lt(
278
+ () => He.value,
279
279
  (l) => b.value = l
280
280
  );
281
- function ve(l) {
282
- Ge("selectLegend", l);
281
+ function he(l) {
282
+ Xe("selectLegend", l);
283
283
  const s = C.dataset.flatMap(
284
284
  (d, p) => d.series.map((_, ge) => ({
285
- value: D(_.values).reduce((me, ae) => me + ae, 0),
285
+ value: D(_.values).reduce((me, oe) => me + oe, 0),
286
286
  id: `${y.value}_${p}_${ge}`,
287
287
  arcOfId: `${y.value}_${p}`
288
288
  }))
@@ -294,12 +294,12 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
294
294
  (d) => d.id === s.arcOfId
295
295
  );
296
296
  if (!c) return;
297
- const f = c.series.map((d) => d.id), I = Ft(
298
- f,
299
- f.length - 1,
297
+ const v = c.series.map((d) => d.id), O = Nt(
298
+ v,
299
+ v.length - 1,
300
300
  w.value
301
301
  );
302
- w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? Ye({
302
+ w.value.includes(l.id) ? (w.value = w.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? We({
303
303
  from: u,
304
304
  to: a,
305
305
  duration: e.value.serieToggleAnimation.durationMs,
@@ -312,7 +312,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
312
312
  }) : b.value = b.value.map((d) => ({
313
313
  ...d,
314
314
  series: d.series.map((p) => p.id === l.id ? { ...p, value: a } : p)
315
- }))) : I && (e.value.serieToggleAnimation.show ? Ye({
315
+ }))) : O && (e.value.serieToggleAnimation.show ? We({
316
316
  from: u,
317
317
  to: 0,
318
318
  duration: e.value.serieToggleAnimation.durationMs,
@@ -330,56 +330,72 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
330
330
  series: d.series.map((p) => p.id === l.id ? { ...p, value: 0 } : p)
331
331
  })), w.value.push(l.id)));
332
332
  }
333
- const he = k(() => S.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio), He = k(() => b.value.map((l, s) => S.value - s * S.value / A.value.length)), Z = k(() => b.value.map((l, s) => {
334
- const a = S.value - s * S.value / b.value.length, o = z.value ? J.value.find((u) => u.datasetIndex === s) : null, t = [...l.series, ...o ? [o] : []].map((u) => ({
335
- ...u,
336
- value: u.value < 1e-3 ? 1e-3 : u.value
337
- }));
333
+ const Z = $(() => I.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio), qe = $(() => b.value.map((l, s) => I.value - s * I.value / A.value.length)), j = $(() => b.value.map((l, s) => {
334
+ const a = Math.abs(l.series.map((v) => v.value).reduce((v, O) => v + O, 0)) > 0, o = I.value - s * I.value / b.value.length, t = z.value ? J.value.find((v) => v.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((v) => ({
335
+ ...v,
336
+ value: v.value < 1e-11 ? Number.MIN_VALUE : v.value
337
+ })), c = _e(
338
+ { series: [
339
+ { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
340
+ ] },
341
+ f.value.width / 2,
342
+ f.value.height / 2,
343
+ o,
344
+ o,
345
+ 1.99999,
346
+ 2,
347
+ 1,
348
+ 360,
349
+ 105.25,
350
+ Z.value
351
+ );
338
352
  return {
339
353
  ...l,
340
- radius: a,
341
- donut: nt(
342
- { series: t },
343
- h.value.width / 2,
344
- h.value.height / 2,
345
- a,
346
- a,
354
+ hasData: a,
355
+ radius: o,
356
+ skeleton: c,
357
+ donut: _e(
358
+ { series: u },
359
+ f.value.width / 2,
360
+ f.value.height / 2,
361
+ o,
362
+ o,
347
363
  1.99999,
348
364
  2,
349
365
  1,
350
366
  360,
351
367
  105.25,
352
- he.value
368
+ Z.value
353
369
  )
354
370
  };
355
- })), We = k(() => [...A.value].map((l, s) => {
356
- const a = s * S.value / A.value.length;
371
+ })), Je = $(() => [...A.value].map((l, s) => {
372
+ const a = s * I.value / A.value.length;
357
373
  return {
358
374
  sizeRatio: a,
359
- donut: nt(
375
+ donut: _e(
360
376
  { series: [{ value: 1 }] },
361
- h.value.width / 2,
362
- h.value.height / 2,
363
- S.value - a,
364
- S.value - a,
377
+ f.value.width / 2,
378
+ f.value.height / 2,
379
+ I.value - a,
380
+ I.value - a,
365
381
  1.99999,
366
382
  2,
367
383
  1,
368
384
  360,
369
385
  105.25,
370
- S.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio
386
+ I.value / A.value.length * e.value.style.chart.layout.donut.spacingRatio
371
387
  )[0]
372
388
  };
373
- })), qe = v(null), j = v(null), ee = v(null), fe = v(null);
374
- function At({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
375
- qe.value = l.arcOfId, j.value = l.id, ee.value = a, fe.value = {
389
+ })), Ke = h(null), ee = h(null), te = h(null), fe = h(null);
390
+ function Ot({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
391
+ Ke.value = l.arcOfId, ee.value = l.id, te.value = a, fe.value = {
376
392
  datapoint: l,
377
393
  seriesIndex: a,
378
394
  series: b.value,
379
395
  config: e.value
380
396
  };
381
397
  const o = e.value.style.chart.tooltip.customFormat;
382
- if (it(o) && Kt(
398
+ if (it(o) && Qt(
383
399
  () => o({
384
400
  seriesIndex: a,
385
401
  datapoint: l,
@@ -387,7 +403,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
387
403
  config: e.value
388
404
  })
389
405
  ))
390
- re.value = o({
406
+ ie.value = o({
391
407
  seriesIndex: a,
392
408
  datapoint: l,
393
409
  series: b.value,
@@ -396,11 +412,11 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
396
412
  else {
397
413
  let t = "";
398
414
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0) {
399
- const u = b.value.map((c) => c.series.find((f) => f.seriesIndex === a));
400
- u.forEach((c, f) => {
415
+ const u = b.value.map((c) => c.series.find((v) => v.seriesIndex === a));
416
+ u.forEach((c, v) => {
401
417
  if (!c) return "";
402
418
  t += `
403
- <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}` : ""}">
419
+ <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${v < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
404
420
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
405
421
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
406
422
  <circle cx="10" cy="10" r="10" fill="${c.color}"/>
@@ -413,7 +429,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
413
429
  ${e.value.style.chart.tooltip.showValue ? `<b>${K(
414
430
  e.value.style.chart.layout.labels.dataLabels.formatter,
415
431
  l.value,
416
- O({
432
+ N({
417
433
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
418
434
  v: l.value,
419
435
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -422,7 +438,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
422
438
  { datapoint: l, seriesIndex: a }
423
439
  )}
424
440
  </b>` : ""}
425
- ${e.value.style.chart.tooltip.showPercentage ? `(${O({
441
+ ${e.value.style.chart.tooltip.showPercentage ? `(${N({
426
442
  v: c.proportion * 100,
427
443
  s: "%",
428
444
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -435,38 +451,38 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
435
451
  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(
436
452
  e.value.style.chart.layout.labels.dataLabels.formatter,
437
453
  l.value,
438
- O({
454
+ N({
439
455
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
440
456
  v: l.value,
441
457
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
442
458
  r: e.value.style.chart.tooltip.roundingValue
443
459
  }),
444
460
  { datapoint: l, seriesIndex: a }
445
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
461
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${N({
446
462
  v: l.proportion * 100,
447
463
  s: "%",
448
464
  r: e.value.style.chart.tooltip.roundingPercentage
449
- })})</span></div>` : t += `<b>${O({
465
+ })})</span></div>` : t += `<b>${N({
450
466
  v: l.proportion * 100,
451
467
  s: "%",
452
468
  r: e.value.style.chart.tooltip.roundingPercentage
453
469
  })}</b></div>`);
454
- re.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
470
+ ie.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
455
471
  }
456
- ne.value = !0;
472
+ re.value = !0;
457
473
  }
458
474
  function pe(l) {
459
475
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
460
476
  }
461
- function Je(l, s) {
477
+ function Qe(l, s) {
462
478
  if (!e.value.useBlurOnHover)
463
479
  return "";
464
480
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && w.value.length === 0)
465
- return [null, void 0].includes(ee.value) || ee.value === s ? "" : `url(#blur_${y.value})`;
481
+ return [null, void 0].includes(te.value) || te.value === s ? "" : `url(#blur_${y.value})`;
466
482
  if (!e.value.style.chart.tooltip.showAllItemsAtIndex || w.value.length)
467
- return [null, void 0].includes(j.value) || j.value === l.id ? "" : `url(#blur_${y.value})`;
483
+ return [null, void 0].includes(ee.value) || ee.value === l.id ? "" : `url(#blur_${y.value})`;
468
484
  }
469
- const ye = k(() => A.value.map((l, s) => {
485
+ const ye = $(() => A.value.map((l, s) => {
470
486
  const a = l.series.filter(
471
487
  (t) => !w.value.includes(t.id)
472
488
  ), o = z.value ? a.map((t) => {
@@ -475,17 +491,17 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
475
491
  );
476
492
  return D(
477
493
  C.dataset[s].series[u].values
478
- ).reduce((c, f) => c + f, 0);
494
+ ).reduce((c, v) => c + v, 0);
479
495
  }).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
480
496
  return l.series.map((t, u) => {
481
497
  const c = D(C.dataset[s].series[u].values).reduce(
482
- (I, d) => I + d,
498
+ (O, d) => O + d,
483
499
  0
484
- ), f = z.value ? c : t.value;
500
+ ), v = z.value ? c : t.value;
485
501
  return {
486
502
  name: t.name,
487
503
  color: t.color,
488
- value: f,
504
+ value: v,
489
505
  shape: "circle",
490
506
  arcOf: t.arcOf,
491
507
  id: t.id,
@@ -493,18 +509,18 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
493
509
  datasetIndex: s,
494
510
  total: o,
495
511
  opacity: w.value.includes(t.id) ? 0.5 : 1,
496
- segregate: () => ve(t),
512
+ segregate: () => he(t),
497
513
  isSegregated: w.value.includes(t.id)
498
514
  };
499
515
  });
500
- })), St = k(() => ({
516
+ })), At = $(() => ({
501
517
  cy: "nested-donuts-legend",
502
518
  backgroundColor: e.value.style.chart.legend.backgroundColor,
503
519
  color: e.value.style.chart.legend.color,
504
520
  fontSize: e.value.style.chart.legend.fontSize,
505
521
  paddingBottom: 12,
506
522
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
507
- })), P = k(() => {
523
+ })), P = $(() => {
508
524
  const l = b.value.flatMap((a) => a.series.map((o) => ({
509
525
  name: `${a.name} - ${o.name}`,
510
526
  color: o.color,
@@ -512,8 +528,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
512
528
  }))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
513
529
  return { head: l, body: s };
514
530
  });
515
- function Ke(l = null) {
516
- lt(() => {
531
+ function Ze(l = null) {
532
+ ot(() => {
517
533
  const s = P.value.head.map((t, u) => [
518
534
  [t.name],
519
535
  [P.value.body[u]],
@@ -524,20 +540,20 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
524
540
  [e.value.style.chart.title.text],
525
541
  [e.value.style.chart.title.subtitle.text],
526
542
  [[""], ["val"], ["%"]]
527
- ].concat(s), o = qt(a);
528
- l ? l(o) : Jt({
543
+ ].concat(s), o = Jt(a);
544
+ l ? l(o) : Kt({
529
545
  csvContent: o,
530
546
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
531
547
  });
532
548
  });
533
549
  }
534
- const te = k(() => {
550
+ const le = $(() => {
535
551
  const l = [
536
552
  e.value.table.columnNames.series,
537
553
  e.value.table.columnNames.value,
538
554
  e.value.table.columnNames.percentage
539
555
  ], s = P.value.head.map((t, u) => {
540
- const c = O({
556
+ const c = N({
541
557
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
542
558
  v: P.value.body[u],
543
559
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -549,7 +565,7 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
549
565
  name: t.name
550
566
  },
551
567
  c,
552
- isNaN(P.value.body[u] / t.total) ? "-" : O({
568
+ isNaN(P.value.body[u] / t.total) ? "-" : N({
553
569
  v: P.value.body[u] / t.total * 100,
554
570
  s: "%",
555
571
  r: e.value.table.td.roundingPercentage
@@ -582,58 +598,58 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
582
598
  function It() {
583
599
  return A.value;
584
600
  }
585
- function Qe() {
586
- $.value.showTable = !$.value.showTable;
601
+ function je() {
602
+ k.value.showTable = !k.value.showTable;
587
603
  }
588
- function Ze() {
589
- $.value.dataLabels.show = !$.value.dataLabels.show;
604
+ function et() {
605
+ k.value.dataLabels.show = !k.value.dataLabels.show;
590
606
  }
591
- function je() {
592
- $.value.showTooltip = !$.value.showTooltip;
607
+ function tt() {
608
+ k.value.showTooltip = !k.value.showTooltip;
593
609
  }
594
- const le = v(!1);
610
+ const ae = h(!1);
595
611
  function be() {
596
- le.value = !le.value;
612
+ ae.value = !ae.value;
597
613
  }
598
614
  return ht({
599
615
  getData: It,
600
- generatePdf: Ee,
601
- generateCsv: Ke,
602
- generateImage: Ue,
603
- toggleTable: Qe,
604
- toggleLabels: Ze,
605
- toggleTooltip: je,
616
+ generatePdf: Ge,
617
+ generateCsv: Ze,
618
+ generateImage: Ye,
619
+ toggleTable: je,
620
+ toggleLabels: et,
621
+ toggleTooltip: tt,
606
622
  toggleAnnotator: be
607
623
  }), (l, s) => (n(), i("div", {
608
624
  ref_key: "nestedDonutsChart",
609
625
  ref: q,
610
- class: B(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
611
- style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
626
+ class: U(`vue-ui-nested-donuts ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
627
+ style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
612
628
  id: `nested_donuts_${y.value}`,
613
- onMouseenter: s[3] || (s[3] = () => r(Ve)(!0)),
614
- onMouseleave: s[4] || (s[4] = () => r(Ve)(!1))
629
+ onMouseenter: s[3] || (s[3] = () => r(De)(!0)),
630
+ onMouseleave: s[4] || (s[4] = () => r(De)(!1))
615
631
  }, [
616
- e.value.userOptions.buttons.annotator ? (n(), E(r(gt), {
632
+ e.value.userOptions.buttons.annotator ? (n(), R(r(gt), {
617
633
  key: 0,
618
- svgRef: r(De),
634
+ svgRef: r(Me),
619
635
  backgroundColor: e.value.style.chart.backgroundColor,
620
636
  color: e.value.style.chart.color,
621
- active: le.value,
637
+ active: ae.value,
622
638
  onClose: be
623
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
639
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
624
640
  _t.value ? (n(), i("div", {
625
641
  key: 1,
626
642
  ref_key: "noTitle",
627
- ref: Ae,
643
+ ref: Ie,
628
644
  class: "vue-data-ui-no-title-space",
629
645
  style: "height:36px; width: 100%;background:transparent"
630
- }, null, 512)) : g("", !0),
646
+ }, null, 512)) : m("", !0),
631
647
  e.value.style.chart.title.text ? (n(), i("div", {
632
648
  key: 2,
633
649
  ref_key: "chartTitle",
634
650
  ref: Oe
635
651
  }, [
636
- (n(), E(ll, {
652
+ (n(), R(al, {
637
653
  key: `title_${Se.value}`,
638
654
  config: {
639
655
  title: {
@@ -646,10 +662,10 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
646
662
  }
647
663
  }
648
664
  }, null, 8, ["config"]))
649
- ], 512)) : g("", !0),
650
- e.value.userOptions.show && Q.value && (r(Pe) || r(de)) ? (n(), E(r($t), {
665
+ ], 512)) : m("", !0),
666
+ e.value.userOptions.show && Q.value && (r(ze) || r(ce)) ? (n(), R(r(kt), {
651
667
  ref: "details",
652
- key: `user_option_${Te.value}`,
668
+ key: `user_option_${Ne.value}`,
653
669
  backgroundColor: e.value.style.chart.backgroundColor,
654
670
  color: e.value.style.chart.color,
655
671
  isPrinting: r(Re),
@@ -662,24 +678,24 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
662
678
  hasTable: e.value.userOptions.buttons.table,
663
679
  hasLabel: e.value.userOptions.buttons.labels,
664
680
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
665
- isFullscreen: U.value,
666
- isTooltip: $.value.showTooltip,
681
+ isFullscreen: B.value,
682
+ isTooltip: k.value.showTooltip,
667
683
  titles: { ...e.value.userOptions.buttonTitles },
668
684
  chartElement: q.value,
669
685
  position: e.value.userOptions.position,
670
686
  hasAnnotator: e.value.userOptions.buttons.annotator,
671
- isAnnotation: le.value,
687
+ isAnnotation: ae.value,
672
688
  callbacks: e.value.userOptions.callbacks,
673
689
  onToggleFullscreen: xt,
674
- onGeneratePdf: r(Ee),
675
- onGenerateCsv: Ke,
676
- onGenerateImage: r(Ue),
677
- onToggleTable: Qe,
678
- onToggleLabels: Ze,
679
- onToggleTooltip: je,
690
+ onGeneratePdf: r(Ge),
691
+ onGenerateCsv: Ze,
692
+ onGenerateImage: r(Ye),
693
+ onToggleTable: je,
694
+ onToggleLabels: et,
695
+ onToggleTooltip: tt,
680
696
  onToggleAnnotator: be,
681
- style: se({
682
- visibility: r(Pe) ? r(de) ? "visible" : "hidden" : "visible"
697
+ style: ue({
698
+ visibility: r(ze) ? r(ce) ? "visible" : "hidden" : "visible"
683
699
  })
684
700
  }, Mt({ _: 2 }, [
685
701
  l.$slots.menuIcon ? {
@@ -745,145 +761,153 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
745
761
  ]),
746
762
  key: "8"
747
763
  } : void 0
748
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
764
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
749
765
  Q.value ? (n(), i("svg", {
750
766
  key: 4,
751
767
  ref_key: "svgRef",
752
- ref: De,
753
- xmlns: r(Ht),
754
- class: B({
755
- "vue-data-ui-fullscreen--on": U.value,
756
- "vue-data-ui-fulscreen--off": !U.value
768
+ ref: Me,
769
+ xmlns: r(Wt),
770
+ class: U({
771
+ "vue-data-ui-fullscreen--on": B.value,
772
+ "vue-data-ui-fulscreen--off": !B.value
757
773
  }),
758
- viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
759
- style: se(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Me.value.css}`)
774
+ viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
775
+ style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ue.value.css}`)
760
776
  }, [
761
- ot(r(bt)),
777
+ ut(r(bt)),
762
778
  l.$slots["chart-background"] ? (n(), i("foreignObject", {
763
779
  key: 0,
764
780
  x: 0,
765
781
  y: 0,
766
- width: h.value.width <= 0 ? 1e-3 : h.value.width,
767
- height: h.value.height < 0 ? 1e-3 : h.value.height,
782
+ width: f.value.width <= 0 ? 1e-3 : f.value.width,
783
+ height: f.value.height < 0 ? 1e-3 : f.value.height,
768
784
  style: {
769
785
  pointerEvents: "none"
770
786
  }
771
787
  }, [
772
788
  x(l.$slots, "chart-background", {}, void 0, !0)
773
- ], 8, nl)) : g("", !0),
774
- m("defs", null, [
775
- (n(!0), i(T, null, F(We.value, (a, o) => (n(), i("radialGradient", {
789
+ ], 8, rl)) : m("", !0),
790
+ g("defs", null, [
791
+ (n(!0), i(T, null, F(Je.value, (a, o) => (n(), i("radialGradient", {
776
792
  id: `radial_${y.value}_${o}`
777
793
  }, [
778
- s[5] || (s[5] = m("stop", {
794
+ s[5] || (s[5] = g("stop", {
779
795
  offset: "0%",
780
796
  "stop-color": "#FFFFFF",
781
797
  "stop-opacity": "0"
782
798
  }, null, -1)),
783
- m("stop", {
784
- offset: `${(1 - he.value / He.value[o]) * 100}%`,
785
- "stop-color": r(rt)("#FFFFFF", 0),
799
+ g("stop", {
800
+ offset: `${(1 - Z.value / qe.value[o]) * 100}%`,
801
+ "stop-color": r(Ht)("#FFFFFF", 0),
786
802
  "stop-opacity": "0"
787
- }, null, 8, il),
788
- m("stop", {
789
- offset: `${(1 - he.value / He.value[o] / 2) * 100}%`,
803
+ }, null, 8, dl),
804
+ g("stop", {
805
+ offset: `${(1 - Z.value / qe.value[o] / 2) * 100}%`,
790
806
  "stop-color": "#FFFFFF",
791
807
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
792
- }, null, 8, dl),
793
- s[6] || (s[6] = m("stop", {
808
+ }, null, 8, cl),
809
+ s[6] || (s[6] = g("stop", {
794
810
  offset: "100%",
795
811
  "stop-color": "#FFFFFF",
796
812
  "stop-opacity": "0"
797
813
  }, null, -1))
798
- ], 8, rl))), 256))
814
+ ], 8, il))), 256))
799
815
  ]),
800
- m("defs", null, [
801
- m("filter", {
816
+ g("defs", null, [
817
+ g("filter", {
802
818
  id: `blur_${y.value}`,
803
819
  x: "-50%",
804
820
  y: "-50%",
805
821
  width: "200%",
806
822
  height: "200%"
807
823
  }, [
808
- m("feGaussianBlur", {
824
+ g("feGaussianBlur", {
809
825
  in: "SourceGraphic",
810
826
  stdDeviation: 2,
811
827
  id: `blur_std_${y.value}`
812
- }, null, 8, vl),
813
- s[7] || (s[7] = m("feColorMatrix", {
828
+ }, null, 8, hl),
829
+ s[7] || (s[7] = g("feColorMatrix", {
814
830
  type: "saturate",
815
831
  values: "0"
816
832
  }, null, -1))
817
- ], 8, cl),
818
- m("filter", {
833
+ ], 8, vl),
834
+ g("filter", {
819
835
  id: `shadow_${y.value}`,
820
836
  "color-interpolation-filters": "sRGB"
821
837
  }, [
822
- m("feDropShadow", {
838
+ g("feDropShadow", {
823
839
  dx: "0",
824
840
  dy: "0",
825
841
  stdDeviation: "10",
826
842
  "flood-opacity": "0.5",
827
843
  "flood-color": e.value.style.chart.layout.donut.shadowColor
828
- }, null, 8, fl)
829
- ], 8, hl)
844
+ }, null, 8, pl)
845
+ ], 8, fl)
830
846
  ]),
831
- (n(!0), i(T, null, F(Z.value, (a, o) => (n(), i("g", null, [
832
- (n(!0), i(T, null, F(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
833
- m("path", {
847
+ (n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
848
+ a.hasData ? (n(!0), i(T, { key: 0 }, F(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", null, [
849
+ g("path", {
834
850
  class: "vue-ui-donut-arc-path",
835
851
  d: t.arcSlice,
836
- fill: r(rt)(t.color, 80),
852
+ fill: t.color,
837
853
  stroke: e.value.style.chart.backgroundColor,
838
854
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
839
- filter: Je(t, u)
840
- }, null, 8, pl)
855
+ filter: Qe(t, u)
856
+ }, null, 8, yl)
857
+ ]))), 256)) : (n(!0), i(T, { key: 1 }, F(a.skeleton, (t, u) => (n(), i("g", null, [
858
+ g("path", {
859
+ class: "vue-ui-donut-arc-path",
860
+ d: t.arcSlice,
861
+ fill: t.color,
862
+ stroke: e.value.style.chart.backgroundColor,
863
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth
864
+ }, null, 8, bl)
841
865
  ]))), 256))
842
866
  ]))), 256)),
843
- e.value.style.chart.useGradient ? (n(), i("g", yl, [
844
- (n(!0), i(T, null, F(We.value, (a, o) => (n(), i("g", null, [
845
- m("path", {
867
+ e.value.style.chart.useGradient ? (n(), i("g", gl, [
868
+ (n(!0), i(T, null, F(Je.value, (a, o) => (n(), i("g", null, [
869
+ g("path", {
846
870
  d: a.donut.arcSlice,
847
871
  fill: `url(#radial_${y.value}_${o})`,
848
872
  stroke: "transparent",
849
873
  "stroke-width": "0"
850
- }, null, 8, bl)
874
+ }, null, 8, ml)
851
875
  ]))), 256))
852
- ])) : g("", !0),
853
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", gl, [
854
- (n(!0), i(T, null, F(Z.value, (a, o) => (n(), i("g", null, [
876
+ ])) : m("", !0),
877
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), i("g", wl, [
878
+ (n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
855
879
  (n(!0), i(T, null, F(a.donut, (t, u) => (n(), i("g", null, [
856
- u === 0 && h.value.width && h.value.height ? (n(), i("text", {
880
+ u === 0 && f.value.width && f.value.height ? (n(), i("text", {
857
881
  key: 0,
858
- class: B({ animated: e.value.useCssAnimation }),
859
- x: h.value.width / 2,
882
+ class: U({ animated: e.value.useCssAnimation }),
883
+ x: f.value.width / 2,
860
884
  y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
861
885
  "text-anchor": "middle",
862
886
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
863
887
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
864
888
  fill: e.value.style.chart.layout.labels.dataLabels.color
865
- }, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(Wt)({
889
+ }, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(qt)({
866
890
  source: a.name,
867
891
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
868
- }) : a.name), 11, ml)) : g("", !0)
892
+ }) : a.name), 11, kl)) : m("", !0)
869
893
  ]))), 256))
870
894
  ]))), 256))
871
- ])) : g("", !0),
872
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", wl, [
873
- (n(!0), i(T, null, F(Z.value, (a, o) => (n(), i("g", null, [
895
+ ])) : m("", !0),
896
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), i("g", $l, [
897
+ (n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
874
898
  (n(!0), i(T, null, F(a.donut.filter((t) => !t.ghost), (t, u) => (n(), i("g", {
875
- filter: Je(t, u)
899
+ filter: Qe(t, u)
876
900
  }, [
877
- st(m("text", {
878
- class: B({ animated: e.value.useCssAnimation }),
901
+ nt(g("text", {
902
+ class: U({ animated: e.value.useCssAnimation }),
879
903
  opacity: pe(t) ? 1 : 0,
880
- "text-anchor": r(W)(t, !0).anchor,
881
- x: r(W)(
904
+ "text-anchor": r(H)(t, !0).anchor,
905
+ x: r(H)(
882
906
  t,
883
907
  !1,
884
908
  e.value.style.chart.layout.labels.dataLabels.offsetX
885
909
  ).x || 0,
886
- y: r(_e)(
910
+ y: r(Te)(
887
911
  t,
888
912
  e.value.style.chart.layout.labels.dataLabels.offsetY,
889
913
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -891,26 +915,26 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
891
915
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
892
916
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
893
917
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
894
- }, N(r(O)({
918
+ }, S(r(N)({
895
919
  v: t.proportion * 100,
896
920
  s: "%",
897
921
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
898
- })), 11, kl), [
922
+ })), 11, xl), [
899
923
  [
900
- ut,
901
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
924
+ rt,
925
+ k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
902
926
  ]
903
927
  ]),
904
- st(m("text", {
905
- class: B({ animated: e.value.useCssAnimation }),
928
+ nt(g("text", {
929
+ class: U({ animated: e.value.useCssAnimation }),
906
930
  opacity: pe(t) ? 1 : 0,
907
- "text-anchor": r(W)(t, !0).anchor,
908
- x: r(W)(
931
+ "text-anchor": r(H)(t, !0).anchor,
932
+ x: r(H)(
909
933
  t,
910
934
  !1,
911
935
  e.value.style.chart.layout.labels.dataLabels.offsetX
912
936
  ).x || 0,
913
- y: r(_e)(
937
+ y: r(Te)(
914
938
  t,
915
939
  e.value.style.chart.layout.labels.dataLabels.offsetY,
916
940
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -918,32 +942,32 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
918
942
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
919
943
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
920
944
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
921
- }, " (" + N(r(K)(
945
+ }, " (" + S(r(K)(
922
946
  e.value.style.chart.layout.labels.dataLabels.formatter,
923
947
  t.value,
924
- r(O)({
948
+ r(N)({
925
949
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
926
950
  v: t.value,
927
951
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
928
952
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
929
953
  }),
930
954
  { datapoint: t, seriesIndex: o, datapointIndex: u }
931
- )) + ") ", 11, Ll), [
955
+ )) + ") ", 11, Cl), [
932
956
  [
933
- ut,
934
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
957
+ rt,
958
+ k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
935
959
  ]
936
960
  ]),
937
- pe(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
961
+ pe(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), i("text", {
938
962
  key: 0,
939
- class: B({ animated: e.value.useCssAnimation }),
940
- "text-anchor": r(W)(t, !0).anchor,
941
- x: r(W)(
963
+ class: U({ animated: e.value.useCssAnimation }),
964
+ "text-anchor": r(H)(t, !0).anchor,
965
+ x: r(H)(
942
966
  t,
943
967
  !1,
944
968
  e.value.style.chart.layout.labels.dataLabels.offsetX
945
969
  ).x || 0,
946
- y: r(_e)(
970
+ y: r(Te)(
947
971
  t,
948
972
  e.value.style.chart.layout.labels.dataLabels.offsetY,
949
973
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -951,42 +975,42 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
951
975
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
952
976
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
953
977
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
954
- }, N(r(K)(
978
+ }, S(r(K)(
955
979
  e.value.style.chart.layout.labels.dataLabels.formatter,
956
980
  t.value,
957
- r(O)({
981
+ r(N)({
958
982
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
959
983
  v: t.value,
960
984
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
961
985
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
962
986
  }),
963
987
  { datapoint: t, seriesIndex: o, datapointIndex: u }
964
- )), 11, xl)) : g("", !0)
965
- ], 8, $l))), 256))
988
+ )), 11, _l)) : m("", !0)
989
+ ], 8, Ll))), 256))
966
990
  ]))), 256))
967
- ])) : g("", !0),
968
- (n(!0), i(T, null, F(Z.value, (a, o) => (n(), i("g", null, [
991
+ ])) : m("", !0),
992
+ (n(!0), i(T, null, F(j.value, (a, o) => (n(), i("g", null, [
969
993
  (n(!0), i(T, null, F(a.donut, (t, u) => (n(), i("g", null, [
970
- m("path", {
994
+ g("path", {
971
995
  d: t.arcSlice,
972
996
  fill: Lt.value === o ? "rgba(0,0,0,0.1)" : "transparent",
973
- onMouseenter: (c) => At({
997
+ onMouseenter: (c) => Ot({
974
998
  datapoint: t,
975
999
  seriesIndex: t.seriesIndex
976
1000
  }),
977
- onClick: (c) => Ot({ datapoint: t, index: u }),
1001
+ onClick: (c) => Ft({ datapoint: t, index: u }),
978
1002
  onMouseleave: s[0] || (s[0] = (c) => {
979
- ne.value = !1, qe.value = null, j.value = null, ee.value = null;
1003
+ re.value = !1, Ke.value = null, ee.value = null, te.value = null;
980
1004
  })
981
- }, null, 40, Cl)
1005
+ }, null, 40, Tl)
982
1006
  ]))), 256))
983
1007
  ]))), 256)),
984
- x(l.$slots, "svg", { svg: h.value }, void 0, !0)
985
- ], 14, ul)) : g("", !0),
986
- l.$slots.watermark ? (n(), i("div", _l, [
1008
+ x(l.$slots, "svg", { svg: f.value }, void 0, !0)
1009
+ ], 14, nl)) : m("", !0),
1010
+ l.$slots.watermark ? (n(), i("div", Fl, [
987
1011
  x(l.$slots, "watermark", Y(X({ isPrinting: r(Re) || r(Be) })), void 0, !0)
988
- ])) : g("", !0),
989
- Q.value ? g("", !0) : (n(), E(r(mt), {
1012
+ ])) : m("", !0),
1013
+ Q.value ? m("", !0) : (n(), R(r(mt), {
990
1014
  key: 6,
991
1015
  config: {
992
1016
  type: "donut",
@@ -998,8 +1022,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
998
1022
  }
999
1023
  }
1000
1024
  }, null, 8, ["config"])),
1001
- ot(r(wt), {
1002
- show: $.value.showTooltip && ne.value,
1025
+ ut(r(wt), {
1026
+ show: k.value.showTooltip && re.value,
1003
1027
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1004
1028
  color: e.value.style.chart.tooltip.color,
1005
1029
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1010,8 +1034,8 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
1010
1034
  position: e.value.style.chart.tooltip.position,
1011
1035
  offsetY: e.value.style.chart.tooltip.offsetY,
1012
1036
  parent: q.value,
1013
- content: re.value,
1014
- isFullscreen: U.value,
1037
+ content: ie.value,
1038
+ isFullscreen: B.value,
1015
1039
  isCustom: r(it)(e.value.style.chart.tooltip.customFormat)
1016
1040
  }, {
1017
1041
  "tooltip-before": L(() => [
@@ -1025,27 +1049,27 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
1025
1049
  e.value.style.chart.legend.show ? (n(), i("div", {
1026
1050
  key: 7,
1027
1051
  ref_key: "chartLegend",
1028
- ref: ie,
1029
- class: B({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1052
+ ref: de,
1053
+ class: U({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1030
1054
  }, [
1031
- (n(!0), i(T, null, F(ye.value, (a, o) => (n(), E(al, {
1032
- key: `legend_${o}_${Ne.value}`,
1055
+ (n(!0), i(T, null, F(ye.value, (a, o) => (n(), R(ol, {
1056
+ key: `legend_${o}_${Pe.value}`,
1033
1057
  legendSet: a,
1034
- config: St.value,
1035
- onClickMarker: s[1] || (s[1] = ({ legend: t }) => ve(t))
1058
+ config: At.value,
1059
+ onClickMarker: s[1] || (s[1] = ({ legend: t }) => he(t))
1036
1060
  }, {
1037
1061
  legendTitle: L(({ titleSet: t }) => [
1038
- t[0] && t[0].arcOf ? (n(), i("div", Tl, N(t[0].arcOf), 1)) : g("", !0)
1062
+ t[0] && t[0].arcOf ? (n(), i("div", Nl, S(t[0].arcOf), 1)) : m("", !0)
1039
1063
  ]),
1040
1064
  item: L(({ legend: t, index: u }) => [
1041
- m("div", {
1042
- onClick: (c) => ve(t),
1043
- style: se(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
1065
+ g("div", {
1066
+ onClick: (c) => he(t),
1067
+ style: ue(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
1044
1068
  }, [
1045
- ue(N(t.name) + ": " + N(r(K)(
1069
+ ne(S(t.name) + ": " + S(r(K)(
1046
1070
  e.value.style.chart.layout.labels.dataLabels.formatter,
1047
1071
  t.value,
1048
- r(O)({
1072
+ r(N)({
1049
1073
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1050
1074
  v: t.value,
1051
1075
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -1054,9 +1078,9 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
1054
1078
  { datapoint: t, seriesIndex: u }
1055
1079
  )) + " ", 1),
1056
1080
  w.value.includes(t.id) ? (n(), i(T, { key: 1 }, [
1057
- ue(" ( - % ) ")
1081
+ ne(" ( - % ) ")
1058
1082
  ], 64)) : (n(), i(T, { key: 0 }, [
1059
- ue(" (" + N(isNaN(t.value / t.total) ? "-" : r(O)({
1083
+ ne(" (" + S(isNaN(t.value / t.total) ? "-" : r(N)({
1060
1084
  v: t.value / t.total * 100,
1061
1085
  s: "%",
1062
1086
  r: e.value.style.chart.legend.roundingPercentage
@@ -1066,27 +1090,27 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
1066
1090
  ]),
1067
1091
  _: 2
1068
1092
  }, 1032, ["legendSet", "config"]))), 128))
1069
- ], 2)) : g("", !0),
1070
- e.value.style.chart.legend.show ? g("", !0) : (n(), i("div", {
1093
+ ], 2)) : m("", !0),
1094
+ e.value.style.chart.legend.show ? m("", !0) : (n(), i("div", {
1071
1095
  key: 8,
1072
1096
  ref_key: "chartLegend",
1073
- ref: ie
1097
+ ref: de
1074
1098
  }, [
1075
1099
  x(l.$slots, "legend", { legend: ye.value }, void 0, !0)
1076
1100
  ], 512)),
1077
1101
  l.$slots.source ? (n(), i("div", {
1078
1102
  key: 9,
1079
1103
  ref_key: "source",
1080
- ref: Fe,
1104
+ ref: Ae,
1081
1105
  dir: "auto"
1082
1106
  }, [
1083
1107
  x(l.$slots, "source", {}, void 0, !0)
1084
- ], 512)) : g("", !0),
1085
- Q.value ? (n(), E(r(pt), {
1108
+ ], 512)) : m("", !0),
1109
+ Q.value ? (n(), R(r(pt), {
1086
1110
  key: 10,
1087
1111
  hideDetails: "",
1088
1112
  config: {
1089
- open: $.value.showTable,
1113
+ open: k.value.showTable,
1090
1114
  maxHeight: 1e4,
1091
1115
  body: {
1092
1116
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -1099,32 +1123,32 @@ const sl = ["id"], ul = ["xmlns", "viewBox"], nl = ["width", "height"], rl = ["i
1099
1123
  }
1100
1124
  }, {
1101
1125
  content: L(() => [
1102
- (n(), E(r(yt), {
1103
- key: `table_${Ie.value}`,
1104
- colNames: te.value.colNames,
1105
- head: te.value.head,
1106
- body: te.value.body,
1107
- config: te.value.config,
1126
+ (n(), R(r(yt), {
1127
+ key: `table_${Ve.value}`,
1128
+ colNames: le.value.colNames,
1129
+ head: le.value.head,
1130
+ body: le.value.body,
1131
+ config: le.value.config,
1108
1132
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1109
- onClose: s[2] || (s[2] = (a) => $.value.showTable = !1)
1133
+ onClose: s[2] || (s[2] = (a) => k.value.showTable = !1)
1110
1134
  }, {
1111
1135
  th: L(({ th: a }) => [
1112
- m("div", {
1136
+ g("div", {
1113
1137
  innerHTML: a,
1114
1138
  style: { display: "flex", "align-items": "center" }
1115
- }, null, 8, Fl)
1139
+ }, null, 8, Al)
1116
1140
  ]),
1117
1141
  td: L(({ td: a }) => [
1118
- ue(N(a.name || a), 1)
1142
+ ne(S(a.name || a), 1)
1119
1143
  ]),
1120
1144
  _: 1
1121
1145
  }, 8, ["colNames", "head", "body", "config", "title"]))
1122
1146
  ]),
1123
1147
  _: 1
1124
- }, 8, ["config"])) : g("", !0)
1125
- ], 46, sl));
1148
+ }, 8, ["config"])) : m("", !0)
1149
+ ], 46, ul));
1126
1150
  }
1127
- }, El = /* @__PURE__ */ ol(Al, [["__scopeId", "data-v-01b7bea5"]]);
1151
+ }, Gl = /* @__PURE__ */ sl(Il, [["__scopeId", "data-v-0b97ffd5"]]);
1128
1152
  export {
1129
- El as default
1153
+ Gl as default
1130
1154
  };