vue-data-ui 3.0.0-next.10 → 3.0.0-next.11

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-8Wnel_lw.js → Arrow-BumHStgn.js} +1 -1
  2. package/dist/{BaseDraggableDialog-D-IcFGSE.js → BaseDraggableDialog-DyfbXmZG.js} +2 -2
  3. package/dist/{BaseIcon-RLse0qy8.js → BaseIcon-Csn-zJvC.js} +1 -1
  4. package/dist/{ColorPicker-D9dpnizT.js → ColorPicker-BgmqqeH1.js} +2 -2
  5. package/dist/{DataTable-IzCJ9gby.js → DataTable-YE6ic3rt.js} +2 -2
  6. package/dist/{Legend-SfJ53F5x.js → Legend-4BgVMpri.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-3oZlBiCt.js → NonSvgPenAndPaper-B0mzIi05.js} +3 -3
  8. package/dist/{PackageVersion-u8Hc4rJi.js → PackageVersion-B2CeOoV6.js} +1 -1
  9. package/dist/{PenAndPaper-6iArlmj7.js → PenAndPaper-BFQVPcRp.js} +3 -3
  10. package/dist/{Shape-vSWSsIaU.js → Shape-CroY0C3X.js} +1 -1
  11. package/dist/{Slicer-CPMTQDCj.js → Slicer-DyOgqjbE.js} +2 -2
  12. package/dist/{SparkTooltip-sazd7MmK.js → SparkTooltip-CN9w85q0.js} +1 -1
  13. package/dist/{Title-CTsOHFNh.js → Title-DjBxXxcf.js} +1 -1
  14. package/dist/{Tooltip-4cn1szzA.js → Tooltip-B1tfk8HO.js} +1 -1
  15. package/dist/{UserOptions-X9Ckvwp-.js → UserOptions-D5NKm1p2.js} +2 -2
  16. package/dist/{dom-to-png-C3BKllTG.js → dom-to-png-CLXgpFrO.js} +1 -1
  17. package/dist/{img-D9CjuW6g.js → img-COyqv7Eu.js} +1 -1
  18. package/dist/{index-DBSLpcPM.js → index-B18WZMC2.js} +4 -2
  19. package/dist/{pdf-V4tIjxUb.js → pdf-0V6KaoQ7.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +1 -0
  22. package/dist/types/vue-data-ui.d.ts +1 -0
  23. package/dist/{useNestedProp-BQFkJRtL.js → useNestedProp-BAA7pZpP.js} +1 -1
  24. package/dist/{usePrinter-CjyE7ii3.js → usePrinter-DLC5qcfA.js} +2 -2
  25. package/dist/{vue-data-ui-BgN2CPSV.js → vue-data-ui-MD7Usulv.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-DlnRLAbw.js → vue-ui-3d-bar-C5DWtmzR.js} +6 -6
  28. package/dist/{vue-ui-accordion-yWXqkLfQ.js → vue-ui-accordion-DIEZJTdv.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-C_4kFlWe.js → vue-ui-age-pyramid-CKCNoYVa.js} +6 -6
  30. package/dist/{vue-ui-annotator-DVXA74Er.js → vue-ui-annotator-xIlsj0ow.js} +2 -2
  31. package/dist/{vue-ui-bullet-DoxSEGR4.js → vue-ui-bullet-BnVP2CnB.js} +7 -7
  32. package/dist/{vue-ui-candlestick-Bke-ZK92.js → vue-ui-candlestick-M1qRCtKh.js} +7 -7
  33. package/dist/{vue-ui-carousel-table-CqRuHaU6.js → vue-ui-carousel-table-B7yAHP4d.js} +4 -4
  34. package/dist/{vue-ui-chestnut-BYIowBXd.js → vue-ui-chestnut-BG33-M3B.js} +5 -5
  35. package/dist/{vue-ui-chord-DyA4jvyD.js → vue-ui-chord-C7WpP8-j.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-BVT22rGO.js → vue-ui-circle-pack-DulF_bkK.js} +6 -6
  37. package/dist/{vue-ui-cursor-B3RyMKwx.js → vue-ui-cursor-ME0Ma6vw.js} +2 -2
  38. package/dist/{vue-ui-dashboard-Cgqpnpao.js → vue-ui-dashboard-qKsER9Ef.js} +62 -62
  39. package/dist/{vue-ui-digits-Db9yuqjo.js → vue-ui-digits-CW7nPiL_.js} +2 -2
  40. package/dist/{vue-ui-donut-CdsBUcPD.js → vue-ui-donut-P1t5iVGi.js} +43 -43
  41. package/dist/{vue-ui-donut-evolution-D5eUZJuU.js → vue-ui-donut-evolution-CYR0d7cC.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-CWgs8sB6.js → vue-ui-dumbbell-BVm8h0Qm.js} +7 -7
  43. package/dist/{vue-ui-flow-CL5jxEBp.js → vue-ui-flow-DyrILcXF.js} +7 -7
  44. package/dist/{vue-ui-funnel-DT9BzBp3.js → vue-ui-funnel-B3LqNMLp.js} +6 -6
  45. package/dist/{vue-ui-galaxy-hwr5J-b7.js → vue-ui-galaxy-C_EjDJja.js} +5 -5
  46. package/dist/{vue-ui-gauge-D_fnRyKs.js → vue-ui-gauge-BeprNkTE.js} +6 -6
  47. package/dist/{vue-ui-gizmo-CLni95HP.js → vue-ui-gizmo-CkY_o73P.js} +3 -3
  48. package/dist/{vue-ui-heatmap-Bd8qoV2F.js → vue-ui-heatmap-GPKe2arO.js} +7 -7
  49. package/dist/{vue-ui-history-plot-BJvaJkPO.js → vue-ui-history-plot-BQUFj1WW.js} +7 -7
  50. package/dist/{vue-ui-kpi-B7uO6vRA.js → vue-ui-kpi-HkdRfRqI.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-CTDfGO91.js → vue-ui-mini-loader-3eS6UMnq.js} +2 -2
  52. package/dist/{vue-ui-molecule-BSE6LaGt.js → vue-ui-molecule-Bn49jRpg.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-CN24P-Tk.js → vue-ui-mood-radar-DPfbDZli.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-CWL3uP-u.js → vue-ui-nested-donuts-5u4edBxG.js} +476 -406
  55. package/dist/{vue-ui-onion-Bib32nel.js → vue-ui-onion-CppkCdS5.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-l0O-i93L.js → vue-ui-parallel-coordinate-plot--kTjU5iF.js} +8 -8
  57. package/dist/{vue-ui-quadrant-D0pzeobL.js → vue-ui-quadrant-YB5C-Jyz.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-CaLIrn96.js → vue-ui-quick-chart-BwJ0A3y7.js} +6 -6
  59. package/dist/{vue-ui-radar-DXJ1WS7s.js → vue-ui-radar-m2VREfJ3.js} +7 -7
  60. package/dist/{vue-ui-rating-C6qqU59J.js → vue-ui-rating-B3xY-5Ct.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-SpPQ2WhH.js → vue-ui-relation-circle-Ctv0sXIL.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-BMsbiTjU.js → vue-ui-ridgeline-CaIoiE4c.js} +8 -8
  63. package/dist/{vue-ui-rings-ES4LhrT0.js → vue-ui-rings-CI3IrgPj.js} +8 -8
  64. package/dist/{vue-ui-scatter-yV6nLFs6.js → vue-ui-scatter-BNF6S6vu.js} +8 -8
  65. package/dist/{vue-ui-skeleton-7gkY0oe-.js → vue-ui-skeleton-CLPCQOVA.js} +3 -3
  66. package/dist/{vue-ui-smiley-CYLqgGm1.js → vue-ui-smiley-PgGrSc7E.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-kQ3dsaGO.js → vue-ui-spark-trend-iSacmLGA.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-Bfe8SMeM.js → vue-ui-sparkbar-CoeD9mlr.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-Dxts3pPS.js → vue-ui-sparkgauge-B6f-axxi.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-CC6-gQ2R.js → vue-ui-sparkhistogram-BCwY3f-T.js} +4 -4
  71. package/dist/{vue-ui-sparkline-Ba6FPyOS.js → vue-ui-sparkline-Csaoql_D.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-CQr6s7Ij.js → vue-ui-sparkstackbar-H5_Xfbaw.js} +3 -3
  73. package/dist/{vue-ui-stackbar-cJAK-x5g.js → vue-ui-stackbar-Ji3QYGxJ.js} +9 -9
  74. package/dist/{vue-ui-strip-plot-DyU5K6-X.js → vue-ui-strip-plot-CGEoBzlE.js} +7 -7
  75. package/dist/{vue-ui-table-B_KeSP8f.js → vue-ui-table-CePfC3ck.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-CzGGjLl6.js → vue-ui-table-heatmap-DPx5azsf.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-BoW1Y5Hh.js → vue-ui-table-sparkline-B-qp1qwJ.js} +4 -4
  78. package/dist/{vue-ui-thermometer-ROH_nY6z.js → vue-ui-thermometer-BRs_SXB2.js} +6 -6
  79. package/dist/{vue-ui-timer-DmgpfYIT.js → vue-ui-timer-C_j66dVp.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-CkmD6BQB.js → vue-ui-tiremarks-CSITqWtv.js} +6 -6
  81. package/dist/{vue-ui-treemap-BOxeG-ql.js → vue-ui-treemap-C4Dy0F4V.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-BoKi7wHJ.js → vue-ui-vertical-bar-BVswRq0k.js} +9 -9
  83. package/dist/{vue-ui-waffle-BIM_Qg3a.js → vue-ui-waffle-T8I_kqvp.js} +8 -8
  84. package/dist/{vue-ui-wheel-CGZgFZax.js → vue-ui-wheel-BQYMyG3z.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-Dt-X1dFo.js → vue-ui-word-cloud-DmyW8XBk.js} +6 -6
  86. package/dist/{vue-ui-world-BrPqffT7.js → vue-ui-world-JR5N3N6l.js} +6 -6
  87. package/dist/{vue-ui-xy-CYko0Jmo.js → vue-ui-xy-Dc1q6qyo.js} +8 -8
  88. package/dist/{vue-ui-xy-canvas-DVRWryRe.js → vue-ui-xy-canvas-BQzv88tD.js} +8 -8
  89. package/package.json +1 -1
@@ -1,21 +1,22 @@
1
- import { defineAsyncComponent as R, computed as L, ref as h, watch as ot, onMounted as st, nextTick as ut, shallowRef as nt, onBeforeUnmount as Et, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as ne, normalizeClass as D, createBlock as U, createCommentVNode as w, createVNode as rt, createSlots as Rt, withCtx as x, renderSlot as C, normalizeProps as W, guardReactiveProps as q, createElementVNode as y, Fragment as T, renderList as N, toDisplayString as S, withDirectives as it, vShow as dt, createTextVNode as Ut } from "vue";
2
- import { u as Gt, c as Yt, t as Xt, p as Te, a as Wt, G as M, o as qt, e as H, b as Ht, d as Jt, m as Ne, f as O, X as Kt, s as Qt, L as ct, k as Ae, n as J, i as Q, x as vt, q as Zt, r as jt, y as el, v as Oe, T as ht } from "./index-DBSLpcPM.js";
3
- import { t as tl, u as ll } from "./useResponsive-DfdjqQps.js";
4
- import { u as ft } from "./useNestedProp-BQFkJRtL.js";
5
- import { u as al } from "./usePrinter-CjyE7ii3.js";
6
- import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
8
- import ul from "./Title-CTsOHFNh.js";
9
- import nl from "./Legend-SfJ53F5x.js";
10
- import rl from "./img-D9CjuW6g.js";
11
- import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["id"], fl = ["offset", "stop-color"], yl = ["offset", "stop-opacity"], pl = ["id"], bl = ["id"], gl = ["id"], ml = ["flood-color"], wl = ["id", "d"], $l = ["d", "fill", "stroke", "stroke-width", "filter"], kl = ["d", "fill", "stroke", "stroke-width"], Ll = { key: 1 }, xl = ["d", "fill"], Cl = { key: 2 }, _l = ["font-size", "font-weight", "fill", "dy"], Tl = ["href"], Nl = ["x", "y", "font-size", "font-weight", "fill"], Al = { key: 3 }, Ol = ["filter"], Sl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Fl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Il = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Vl = ["d", "fill", "onMouseenter", "onClick"], Pl = {
13
- key: 5,
1
+ import { defineAsyncComponent as U, computed as L, ref as h, toRefs as Yt, watch as re, onMounted as Xt, shallowRef as ct, onBeforeUnmount as Wt, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as G, createCommentVNode as w, createVNode as vt, createSlots as qt, withCtx as C, renderSlot as x, normalizeProps as H, guardReactiveProps as J, createElementVNode as y, Fragment as _, renderList as A, toDisplayString as O, withDirectives as ht, vShow as ft, createTextVNode as Ht, nextTick as yt } from "vue";
2
+ import { u as Jt, c as Kt, A as Qt, t as Zt, p as Fe, a as jt, o as el, e as K, b as tl, G as M, d as ll, m as Ie, f as N, X as al, s as ol, L as pt, k as Ve, n as Q, i as j, x as bt, q as sl, r as ul, y as nl, T as gt, v as Pe } from "./index-B18WZMC2.js";
3
+ import { t as rl, u as il } from "./useResponsive-DfdjqQps.js";
4
+ import { u as mt } from "./useNestedProp-BAA7pZpP.js";
5
+ import { u as dl } from "./usePrinter-DLC5qcfA.js";
6
+ import { u as cl } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as vl } from "./useChartAccessibility-9icAAmYg.js";
8
+ import hl from "./Title-DjBxXxcf.js";
9
+ import fl from "./Legend-4BgVMpri.js";
10
+ import yl from "./img-COyqv7Eu.js";
11
+ import { u as pl, B as bl } from "./useLoading-Bt5Doa8m.js";
12
+ import { _ as gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["id"], Ll = ["offset", "stop-color"], Cl = ["offset", "stop-opacity"], xl = ["id"], _l = ["id"], Al = ["id"], Tl = ["flood-color"], Nl = ["id", "d"], Ol = ["d", "fill", "stroke", "stroke-width", "filter"], Sl = ["d", "fill", "stroke", "stroke-width"], Fl = { key: 1 }, Il = ["d", "fill"], Vl = { key: 2 }, Pl = ["font-size", "font-weight", "fill", "dy"], Dl = ["href"], zl = ["x", "y", "font-size", "font-weight", "fill"], Ml = { key: 3 }, Bl = ["filter"], El = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Rl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ul = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Gl = ["d", "fill", "onMouseenter", "onClick"], Yl = {
14
+ key: 4,
14
15
  class: "vue-data-ui-watermark"
15
- }, zl = {
16
+ }, Xl = {
16
17
  key: 0,
17
18
  class: "vue-ui-nested-donuts-legend-title"
18
- }, Dl = ["onClick"], Ml = ["innerHTML"], Bl = {
19
+ }, Wl = ["onClick"], ql = ["innerHTML"], Hl = {
19
20
  __name: "vue-ui-nested-donuts",
20
21
  props: {
21
22
  config: {
@@ -32,38 +33,99 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
32
33
  }
33
34
  },
34
35
  emits: ["selectLegend", "selectDatapoint"],
35
- setup(yt, { expose: pt, emit: bt }) {
36
- const gt = R(() => import("./vue-ui-accordion-yWXqkLfQ.js")), mt = R(() => import("./DataTable-IzCJ9gby.js")), wt = R(() => import("./PackageVersion-u8Hc4rJi.js")), $t = R(() => import("./PenAndPaper-6iArlmj7.js")), kt = R(() => import("./vue-ui-skeleton-7gkY0oe-.js")), Lt = R(() => import("./Tooltip-4cn1szzA.js")), xt = R(() => import("./UserOptions-X9Ckvwp-.js")), { vue_ui_nested_donuts: Ct } = Gt(), _ = yt, Z = L(() => !!_.dataset && _.dataset.length), p = h(Yt()), re = h(!1), ie = h(""), de = h(null), Se = h(0), V = h(null), Fe = h(null), ce = h(null), Ie = h(null), Ve = h(null), Pe = h(0), ze = h(0), De = h(0), B = h(!0), E = h([]), K = h([]), G = h(!1);
37
- function Me(l) {
38
- G.value = l, Se.value += 1;
36
+ setup(wt, { expose: $t, emit: kt }) {
37
+ const Lt = U(() => import("./vue-ui-accordion-DIEZJTdv.js")), Ct = U(() => import("./DataTable-YE6ic3rt.js")), xt = U(() => import("./PackageVersion-B2CeOoV6.js")), _t = U(() => import("./PenAndPaper-BFQVPcRp.js"));
38
+ U(() => import("./vue-ui-skeleton-CLPCQOVA.js"));
39
+ const At = U(() => import("./Tooltip-B1tfk8HO.js")), Tt = U(() => import("./UserOptions-D5NKm1p2.js")), { vue_ui_nested_donuts: Nt } = Jt(), S = wt, de = L({
40
+ get() {
41
+ return !!S.dataset && S.dataset.length;
42
+ },
43
+ set(l) {
44
+ return l;
45
+ }
46
+ }), p = h(Kt()), ce = h(!1), ve = h(""), he = h(null), De = h(0), V = h(null), ze = h(null), fe = h(null), Me = h(null), Be = h(null), Ee = h(0), Re = h(0), Ue = h(0), B = h(!0), E = h([]), Z = h([]), Y = h(!1);
47
+ function Ge(l) {
48
+ Y.value = l, De.value += 1;
39
49
  }
40
- const e = L({
41
- get: () => Re(),
42
- set: (l) => l
43
- }), { userOptionsVisible: ve, setUserOptionsVisibility: Be, keepUserOptionState: Ee } = ol({ config: e.value }), { svgRef: j } = sl({
50
+ const e = h(ge()), Ye = {
51
+ name: "",
52
+ series: [
53
+ {
54
+ name: "",
55
+ values: [3],
56
+ color: "#BABABA"
57
+ },
58
+ {
59
+ name: "",
60
+ values: [2],
61
+ color: "#AAAAAA"
62
+ },
63
+ {
64
+ name: "",
65
+ values: [1],
66
+ color: "#CACACA"
67
+ }
68
+ ]
69
+ }, { loading: ye, FINAL_DATASET: R, manualLoading: pe } = pl({
70
+ ...Yt(S),
71
+ FINAL_CONFIG: e,
72
+ prepareConfig: ge,
73
+ callback: () => {
74
+ Promise.resolve().then(async () => {
75
+ await He();
76
+ });
77
+ },
78
+ skeletonDataset: [Ye, Ye],
79
+ skeletonConfig: Qt({
80
+ defaultConfig: e.value,
81
+ userConfig: {
82
+ useCssAnimation: !1,
83
+ table: { show: !1 },
84
+ startAnimation: { show: !1 },
85
+ userOptions: { show: !1 },
86
+ style: {
87
+ chart: {
88
+ backgroundColor: "#99999930",
89
+ layout: {
90
+ labels: {
91
+ dataLabels: { show: !1 }
92
+ }
93
+ },
94
+ legend: { backgroundColor: "transparent", showValue: !1, showPercentage: !1 },
95
+ title: {
96
+ color: "#1A1A1A",
97
+ subtitle: {
98
+ color: "#5A5A5A"
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ })
105
+ }), { userOptionsVisible: be, setUserOptionsVisibility: Xe, keepUserOptionState: We } = cl({ config: e.value }), { svgRef: ee } = vl({
44
106
  config: e.value.style.chart.title
45
107
  });
46
- function Re() {
47
- const l = ft({
48
- userConfig: _.config,
49
- defaultConfig: Ct
108
+ function ge() {
109
+ const l = mt({
110
+ userConfig: S.config,
111
+ defaultConfig: Nt
50
112
  });
51
113
  return l.theme ? {
52
- ...ft({
53
- userConfig: Wt.vue_ui_nested_donuts[l.theme] || _.config,
114
+ ...mt({
115
+ userConfig: jt.vue_ui_nested_donuts[l.theme] || S.config,
54
116
  defaultConfig: l
55
117
  }),
56
- customPalette: Xt[l.theme] || Te
118
+ customPalette: Zt[l.theme] || Fe
57
119
  } : l;
58
120
  }
59
- ot(
60
- () => _.config,
121
+ re(
122
+ () => S.config,
61
123
  (l) => {
62
- e.value = Re(), ve.value = !e.value.userOptions.showOnChartHover, he(), Pe.value += 1, ze.value += 1, De.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, v.value.width = e.value.style.chart.width, v.value.height = e.value.style.chart.height;
124
+ ye.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover, Je(), Ee.value += 1, Re.value += 1, Ue.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, v.value.width = e.value.style.chart.width, v.value.height = e.value.style.chart.height;
63
125
  },
64
126
  { deep: !0 }
65
127
  );
66
- const Ue = L(() => {
128
+ const qe = L(() => {
67
129
  const { top: l, right: s, bottom: o, left: a } = e.value.style.chart.padding;
68
130
  return {
69
131
  css: `padding:${l}px ${s}px ${o}px ${a}px`,
@@ -73,50 +135,50 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
73
135
  left: a
74
136
  };
75
137
  });
76
- function _t(l, s = 1e3, o = 50) {
138
+ function Ot(l, s = 1e3, o = 50) {
77
139
  return new Promise((a) => {
78
140
  const t = l.length;
79
- E.value = Array(t).fill(0), K.value = [];
141
+ E.value = Array(t).fill(0), Z.value = [];
80
142
  let u = 0;
81
143
  l.forEach((c, f) => {
82
144
  setTimeout(() => {
83
145
  const m = performance.now();
84
146
  function d(b) {
85
- const A = Math.min((b - m) / s, 1), we = ht(A), $e = c * we;
86
- E.value[f] = $e, E.value = [...E.value];
87
- const se = [];
88
- let ke = 0;
89
- _.dataset.forEach((ue, Le) => {
90
- const zt = Oe(ue.series.reduce(
91
- (Ce, _e) => Ce + Oe(M(_e.values).reduce((Mt, Bt) => Mt + Bt, 0)),
147
+ const T = Math.min((b - m) / s, 1), xe = gt(T), _e = c * xe;
148
+ E.value[f] = _e, E.value = [...E.value];
149
+ const ue = [];
150
+ let Ae = 0;
151
+ S.dataset.forEach((ne, Te) => {
152
+ const Et = Pe(ne.series.reduce(
153
+ (Oe, Se) => Oe + Pe(M(Se.values).reduce((Ut, Gt) => Ut + Gt, 0)),
92
154
  0
93
- )), Dt = Oe(E.value.slice(ke, ke + ue.series.length).reduce((Ce, _e) => Ce + _e, 0)), xe = zt - Dt;
94
- xe > Number.MIN_VALUE && se.push({
155
+ )), Rt = Pe(E.value.slice(Ae, Ae + ne.series.length).reduce((Oe, Se) => Oe + Se, 0)), Ne = Et - Rt;
156
+ Ne > Number.MIN_VALUE && ue.push({
95
157
  name: "__ghost__",
96
- arcOf: ue.name,
97
- arcOfId: `${p.value}_${Le}`,
98
- id: `ghost_${p.value}_${Le}`,
158
+ arcOf: ne.name,
159
+ arcOfId: `${p.value}_${Te}`,
160
+ id: `ghost_${p.value}_${Te}`,
99
161
  seriesIndex: -1,
100
- datasetIndex: Le,
162
+ datasetIndex: Te,
101
163
  color: "transparent",
102
- value: xe,
103
- fullValue: xe,
164
+ value: Ne,
165
+ fullValue: Ne,
104
166
  absoluteValues: [],
105
167
  ghost: !0
106
- }), ke += ue.series.length;
107
- }), K.value = se, A < 1 ? requestAnimationFrame(d) : (u += 1, u === t && a());
168
+ }), Ae += ne.series.length;
169
+ }), Z.value = ue, T < 1 ? requestAnimationFrame(d) : (u += 1, u === t && a());
108
170
  }
109
171
  requestAnimationFrame(d);
110
172
  }, f * o);
111
173
  });
112
174
  });
113
175
  }
114
- st(async () => {
115
- if (he(), e.value.startAnimation?.show) {
116
- const s = _.dataset.flatMap((o) => o.series).map(
176
+ async function He() {
177
+ if (e.value.startAnimation?.show) {
178
+ const s = R.value.flatMap((o) => o.series).map(
117
179
  (o) => M(o.values).reduce((a, t) => a + t, 0)
118
180
  );
119
- E.value = s.map(() => 0), B.value = !0, K.value = _.dataset.map((o, a) => {
181
+ E.value = s.map(() => 0), B.value = !0, Z.value = R.value.map((o, a) => {
120
182
  const t = o.series.reduce(
121
183
  (u, c) => u + M(c.values).reduce((f, m) => f + m, 0),
122
184
  0
@@ -134,112 +196,128 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
134
196
  absoluteValues: [],
135
197
  ghost: !0
136
198
  };
137
- }), await ut(), _t(
199
+ }), await yt(), Ot(
138
200
  s,
139
201
  e.value.startAnimation.durationMs,
140
202
  e.value.startAnimation.staggerMs
141
203
  ).then(() => {
142
- B.value = !1, K.value = [];
204
+ B.value = !1, Z.value = [];
143
205
  });
144
206
  } else
145
207
  B.value = !1;
208
+ }
209
+ Xt(async () => {
210
+ Je(), await He();
146
211
  });
147
- const P = nt(null), Y = nt(null);
148
- st(() => {
149
- he();
150
- });
151
- function he() {
152
- if (qt(_.dataset) && H({
212
+ const P = ct(null), X = ct(null), W = L(() => !!e.value.debug);
213
+ function Je() {
214
+ if (el(S.dataset) ? (K({
153
215
  componentName: "VueUiNestedDonuts",
154
- type: "dataset"
155
- }), e.value.responsive) {
156
- const l = tl(() => {
157
- const { width: s, height: o } = ll({
216
+ type: "dataset",
217
+ debug: W.value
218
+ }), de.value = !1, pe.value = !0) : pe.value = e.value.loading, e.value.responsive) {
219
+ const l = rl(() => {
220
+ const { width: s, height: o } = il({
158
221
  chart: V.value,
159
- title: e.value.style.chart.title.text ? Fe.value : null,
160
- legend: e.value.style.chart.legend.show ? ce.value : null,
161
- source: Ie.value,
162
- noTitle: Ve.value,
163
- padding: Ue.value
222
+ title: e.value.style.chart.title.text ? ze.value : null,
223
+ legend: e.value.style.chart.legend.show ? fe.value : null,
224
+ source: Me.value,
225
+ noTitle: Be.value,
226
+ padding: qe.value
164
227
  });
165
228
  requestAnimationFrame(() => {
166
229
  v.value.width = s, v.value.height = o;
167
230
  });
168
231
  });
169
- P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect()), P.value = new ResizeObserver(l), Y.value = V.value.parentNode, P.value.observe(Y.value);
232
+ P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect()), P.value = new ResizeObserver(l), X.value = V.value.parentNode, P.value.observe(X.value);
170
233
  }
171
234
  }
172
- Et(() => {
173
- P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
235
+ Wt(() => {
236
+ P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect());
174
237
  });
175
- const { isPrinting: Ge, isImaging: Ye, generatePdf: Xe, generateImage: We } = al({
238
+ const { isPrinting: Ke, isImaging: Qe, generatePdf: Ze, generateImage: je } = dl({
176
239
  elementId: `nested_donuts_${p.value}`,
177
240
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
178
241
  options: e.value.userOptions.print
179
- }), Tt = L(() => e.value.userOptions.show && !e.value.style.chart.title.text), Nt = L(() => Ht(e.value.customPalette)), k = h({
242
+ }), St = L(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ft = L(() => tl(e.value.customPalette)), $ = h({
180
243
  dataLabels: {
181
244
  show: e.value.style.chart.layout.labels.dataLabels.show
182
245
  },
183
246
  showTable: e.value.table.show,
184
247
  showTooltip: e.value.style.chart.tooltip.show
185
- }), v = h({
248
+ });
249
+ re(e, () => {
250
+ $.value = {
251
+ dataLabels: {
252
+ show: e.value.style.chart.layout.labels.dataLabels.show
253
+ },
254
+ showTable: e.value.table.show,
255
+ showTooltip: e.value.style.chart.tooltip.show
256
+ };
257
+ }, { immediate: !0 });
258
+ const v = h({
186
259
  width: e.value.style.chart.width,
187
260
  height: e.value.style.chart.height
188
- }), qe = bt;
189
- function At({ datapoint: l, index: s }) {
190
- qe("selectDatapoint", { datapoint: l, index: s });
261
+ }), et = kt;
262
+ function It({ datapoint: l, index: s }) {
263
+ et("selectDatapoint", { datapoint: l, index: s });
191
264
  }
192
- function He({
265
+ function tt({
193
266
  from: l,
194
267
  to: s,
195
268
  duration: o,
196
269
  onUpdate: a,
197
270
  onDone: t,
198
- easing: u = ht
271
+ easing: u = gt
199
272
  }) {
200
273
  const c = performance.now();
201
274
  function f(m) {
202
- const d = Math.min((m - c) / o, 1), b = u(d), A = l + (s - l) * b;
203
- a(A, d), d < 1 ? requestAnimationFrame(f) : (a(s, 1), t && t());
275
+ const d = Math.min((m - c) / o, 1), b = u(d), T = l + (s - l) * b;
276
+ a(T, d), d < 1 ? requestAnimationFrame(f) : (a(s, 1), t && t());
204
277
  }
205
278
  requestAnimationFrame(f);
206
279
  }
207
- const $ = h([]), F = L(() => {
208
- _.dataset.forEach((s, o) => {
209
- [null, void 0].includes(s.name) && H({
280
+ const k = h([]), F = L(() => {
281
+ ye.value, R.value.forEach((s, o) => {
282
+ [null, void 0].includes(s.name) && K({
210
283
  componentName: "VueUiNestedDonuts",
211
284
  type: "datasetSerieAttribute",
212
285
  property: "name",
213
- index: o
214
- }), [null, void 0].includes(s.series) ? H({
286
+ index: o,
287
+ debug: W.value
288
+ }), [null, void 0].includes(s.series) ? K({
215
289
  componentName: "VueUiNestedDonuts",
216
290
  type: "datasetSerieAttribute",
217
291
  property: "series",
218
- index: o
219
- }) : s.series.length === 0 ? H({
292
+ index: o,
293
+ debug: W.value
294
+ }) : s.series.length === 0 ? K({
220
295
  componentName: "VueUiNestedDonuts",
221
296
  type: "datasetAttributeEmpty",
222
- property: `series at index ${o}`
297
+ property: `series at index ${o}`,
298
+ debug: W.value
223
299
  }) : s.series.forEach((a, t) => {
224
- [null, void 0].includes(a.name) && H({
300
+ [null, void 0].includes(a.name) && K({
225
301
  componentName: "VueUiNestedDonuts",
226
302
  type: "datasetSerieAttribute",
227
303
  property: "name",
228
304
  index: t,
229
- key: "serie"
230
- }), [null, void 0].includes(a.values) && H({
305
+ key: "serie",
306
+ debug: W.value
307
+ }), [null, void 0].includes(a.values) && K({
231
308
  componentName: "VueUiNestedDonuts",
232
309
  type: "datasetSerieAttribute",
233
310
  property: "values",
234
311
  index: t,
235
- key: "serie"
312
+ key: "serie",
313
+ debug: W.value
236
314
  });
237
315
  });
238
316
  });
239
317
  let l = 0;
240
- return _.dataset.map((s, o) => ({
318
+ return R.value.map((s, o) => ({
241
319
  ...s,
242
- total: s.series.filter((a) => !$.value.includes(a.id)).map((a) => M(a.values).reduce((t, u) => t + u, 0)).reduce((a, t) => a + t, 0),
320
+ total: s.series.filter((a) => !k.value.includes(a.id)).map((a) => M(a.values).reduce((t, u) => t + u, 0)).reduce((a, t) => a + t, 0),
243
321
  datasetIndex: o,
244
322
  id: `${p.value}_${o}`,
245
323
  series: s.series.map((a, t) => {
@@ -251,40 +329,44 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
251
329
  id: `${p.value}_${o}_${t}`,
252
330
  seriesIndex: t,
253
331
  datasetIndex: o,
254
- color: Jt(a.color) || Nt.value[t] || Te[t % Te.length],
332
+ color: ll(a.color) || Ft.value[t] || Fe[t % Fe.length],
255
333
  value: B.value ? E.value[l++] ?? 0 : u,
256
334
  absoluteValues: a.values || []
257
335
  };
258
336
  })
259
337
  }));
260
- }), I = L(() => Math.min(v.value.height, v.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Je = L(() => [...F.value].map((l, s) => {
261
- const o = l.series.filter((a) => !$.value.includes(a.id)).map((a) => a.value).reduce((a, t) => a + t, 0);
338
+ });
339
+ re(() => S.dataset, (l) => {
340
+ Array.isArray(l) && l.length > 0 && (pe.value = !1);
341
+ }, { immediate: !0 });
342
+ const I = L(() => Math.min(v.value.height, v.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), lt = L(() => [...F.value].map((l, s) => {
343
+ const o = l.series.filter((a) => !k.value.includes(a.id)).map((a) => a.value).reduce((a, t) => a + t, 0);
262
344
  return {
263
345
  ...l,
264
346
  total: o,
265
- series: l.series.filter((a) => !$.value.includes(a.id)).map((a) => ({
347
+ series: l.series.filter((a) => !k.value.includes(a.id)).map((a) => ({
266
348
  ...a,
267
349
  proportion: a.value / o
268
350
  }))
269
351
  };
270
352
  }));
271
- function Ot(l, s, o) {
353
+ function Vt(l, s, o) {
272
354
  let a = 0;
273
355
  for (let t = 0; t < l.length; t += 1)
274
356
  o.includes(l[t]) && (a += 1);
275
357
  return a < s;
276
358
  }
277
- const g = h(Je.value);
278
- ot(
279
- () => Je.value,
359
+ const g = h(lt.value);
360
+ re(
361
+ () => lt.value,
280
362
  (l) => g.value = l
281
363
  );
282
- function fe(l) {
283
- qe("selectLegend", l);
284
- const s = _.dataset.flatMap(
285
- (d, b) => d.series.map((A, we) => ({
286
- value: M(A.values).reduce(($e, se) => $e + se, 0),
287
- id: `${p.value}_${b}_${we}`,
364
+ function me(l) {
365
+ et("selectLegend", l);
366
+ const s = S.dataset.flatMap(
367
+ (d, b) => d.series.map((T, xe) => ({
368
+ value: M(T.values).reduce((_e, ue) => _e + ue, 0),
369
+ id: `${p.value}_${b}_${xe}`,
288
370
  arcOfId: `${p.value}_${b}`
289
371
  }))
290
372
  ).find((d) => d.id === l.id);
@@ -295,47 +377,47 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
295
377
  (d) => d.id === s.arcOfId
296
378
  );
297
379
  if (!c) return;
298
- const f = c.series.map((d) => d.id), m = Ot(
380
+ const f = c.series.map((d) => d.id), m = Vt(
299
381
  f,
300
382
  f.length - 1,
301
- $.value
383
+ k.value
302
384
  );
303
- $.value.includes(l.id) ? ($.value = $.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? He({
385
+ k.value.includes(l.id) ? (k.value = k.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? tt({
304
386
  from: u,
305
387
  to: o,
306
388
  duration: e.value.serieToggleAnimation.durationMs,
307
389
  onUpdate: (d) => {
308
390
  g.value = g.value.map((b) => ({
309
391
  ...b,
310
- series: b.series.map((A) => A.id === l.id ? { ...A, value: d } : A)
392
+ series: b.series.map((T) => T.id === l.id ? { ...T, value: d } : T)
311
393
  }));
312
394
  }
313
395
  }) : g.value = g.value.map((d) => ({
314
396
  ...d,
315
397
  series: d.series.map((b) => b.id === l.id ? { ...b, value: o } : b)
316
- }))) : m && (e.value.serieToggleAnimation.show ? He({
398
+ }))) : m && (e.value.serieToggleAnimation.show ? tt({
317
399
  from: u,
318
400
  to: 0,
319
401
  duration: e.value.serieToggleAnimation.durationMs,
320
402
  onUpdate: (d) => {
321
403
  g.value = g.value.map((b) => ({
322
404
  ...b,
323
- series: b.series.map((A) => A.id === l.id ? { ...A, value: d } : A)
405
+ series: b.series.map((T) => T.id === l.id ? { ...T, value: d } : T)
324
406
  }));
325
407
  },
326
408
  onDone: () => {
327
- $.value.push(l.id);
409
+ k.value.push(l.id);
328
410
  }
329
411
  }) : (g.value = g.value.map((d) => ({
330
412
  ...d,
331
413
  series: d.series.map((b) => b.id === l.id ? { ...b, value: 0 } : b)
332
- })), $.value.push(l.id)));
414
+ })), k.value.push(l.id)));
333
415
  }
334
- const ee = L(() => I.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio), Ke = L(() => g.value.map((l, s) => I.value - s * I.value / F.value.length)), X = L(() => g.value.map((l, s) => {
335
- const o = Math.abs(l.series.map((m) => m.value).reduce((m, d) => m + d, 0)) > 0, a = I.value - s * I.value / g.value.length, t = B.value ? K.value.find((m) => m.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((m) => ({
416
+ const te = L(() => I.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio), at = L(() => g.value.map((l, s) => I.value - s * I.value / F.value.length)), q = L(() => g.value.map((l, s) => {
417
+ const o = Math.abs(l.series.map((m) => m.value).reduce((m, d) => m + d, 0)) > 0, a = I.value - s * I.value / g.value.length, t = B.value ? Z.value.find((m) => m.datasetIndex === s) : null, u = [...l.series, ...t ? [t] : []].map((m) => ({
336
418
  ...m,
337
419
  value: m.value < 1e-11 ? Number.MIN_VALUE : m.value
338
- })), c = Ne(
420
+ })), c = Ie(
339
421
  { series: [
340
422
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
341
423
  ] },
@@ -348,7 +430,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
348
430
  1,
349
431
  360,
350
432
  105.25,
351
- ee.value
433
+ te.value
352
434
  ), f = `M ${v.value.width / 2},${v.value.height / 2 + a}
353
435
  a ${a},${a} 0 1,1 0,${-2 * a}
354
436
  a ${a},${a} 0 1,1 0,${2 * a}`;
@@ -358,7 +440,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
358
440
  radius: a,
359
441
  skeleton: c,
360
442
  fullCirclePath: f,
361
- donut: Ne(
443
+ donut: Ie(
362
444
  { series: u },
363
445
  v.value.width / 2,
364
446
  v.value.height / 2,
@@ -369,14 +451,14 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
369
451
  1,
370
452
  360,
371
453
  105.25,
372
- ee.value
454
+ te.value
373
455
  )
374
456
  };
375
- })), Qe = L(() => [...F.value].map((l, s) => {
457
+ })), ot = L(() => [...F.value].map((l, s) => {
376
458
  const o = s * I.value / F.value.length;
377
459
  return {
378
460
  sizeRatio: o,
379
- donut: Ne(
461
+ donut: Ie(
380
462
  { series: [{ value: 1 }] },
381
463
  v.value.width / 2,
382
464
  v.value.height / 2,
@@ -390,16 +472,16 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
390
472
  I.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio
391
473
  )[0]
392
474
  };
393
- })), Ze = h(null), te = h(null), le = h(null), ye = h(null);
394
- function St({ datapoint: l, _relativeIndex: s, seriesIndex: o }) {
395
- Ze.value = l.arcOfId, te.value = l.id, le.value = o, de.value = l.id, ye.value = {
475
+ })), st = h(null), le = h(null), ae = h(null), we = h(null);
476
+ function Pt({ datapoint: l, _relativeIndex: s, seriesIndex: o }) {
477
+ st.value = l.arcOfId, le.value = l.id, ae.value = o, he.value = l.id, we.value = {
396
478
  datapoint: l,
397
479
  seriesIndex: o,
398
480
  series: g.value,
399
481
  config: e.value
400
482
  };
401
483
  const a = e.value.style.chart.tooltip.customFormat;
402
- if (vt(a) && el(
484
+ if (bt(a) && nl(
403
485
  () => a({
404
486
  seriesIndex: o,
405
487
  datapoint: l,
@@ -407,7 +489,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
407
489
  config: e.value
408
490
  })
409
491
  ))
410
- ie.value = a({
492
+ ve.value = a({
411
493
  seriesIndex: o,
412
494
  datapoint: l,
413
495
  series: g.value,
@@ -415,7 +497,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
415
497
  });
416
498
  else {
417
499
  let t = "";
418
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && $.value.length === 0) {
500
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && k.value.length === 0) {
419
501
  const u = g.value.map((c) => c.series.find((f) => f.seriesIndex === o));
420
502
  u.forEach((c, f) => {
421
503
  if (!c) return "";
@@ -430,10 +512,10 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
430
512
  </span>
431
513
  </div>
432
514
  <span>
433
- ${e.value.style.chart.tooltip.showValue ? `<b>${Q(
515
+ ${e.value.style.chart.tooltip.showValue ? `<b>${j(
434
516
  e.value.style.chart.layout.labels.dataLabels.formatter,
435
517
  l.value,
436
- O({
518
+ N({
437
519
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
438
520
  v: l.value,
439
521
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -442,7 +524,7 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
442
524
  { datapoint: l, seriesIndex: o }
443
525
  )}
444
526
  </b>` : ""}
445
- ${e.value.style.chart.tooltip.showPercentage ? `(${O({
527
+ ${e.value.style.chart.tooltip.showPercentage ? `(${N({
446
528
  v: c.proportion * 100,
447
529
  s: "%",
448
530
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -452,53 +534,53 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
452
534
  `;
453
535
  });
454
536
  } else
455
- 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>${Q(
537
+ 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(
456
538
  e.value.style.chart.layout.labels.dataLabels.formatter,
457
539
  l.value,
458
- O({
540
+ N({
459
541
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
460
542
  v: l.value,
461
543
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
462
544
  r: e.value.style.chart.tooltip.roundingValue
463
545
  }),
464
546
  { datapoint: l, seriesIndex: o }
465
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
547
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${N({
466
548
  v: l.proportion * 100,
467
549
  s: "%",
468
550
  r: e.value.style.chart.tooltip.roundingPercentage
469
- })})</span></div>` : t += `<b>${O({
551
+ })})</span></div>` : t += `<b>${N({
470
552
  v: l.proportion * 100,
471
553
  s: "%",
472
554
  r: e.value.style.chart.tooltip.roundingPercentage
473
555
  })}</b></div>`);
474
- ie.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
556
+ ve.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
475
557
  }
476
- re.value = !0;
558
+ ce.value = !0;
477
559
  }
478
- function pe(l) {
560
+ function $e(l) {
479
561
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
480
562
  }
481
- function je(l, s) {
563
+ function ut(l, s) {
482
564
  if (!e.value.useBlurOnHover)
483
565
  return "";
484
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && $.value.length === 0)
485
- return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${p.value})`;
486
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || $.value.length)
487
- return [null, void 0].includes(te.value) || te.value === l.id ? "" : `url(#blur_${p.value})`;
566
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && k.value.length === 0)
567
+ return [null, void 0].includes(ae.value) || ae.value === s ? "" : `url(#blur_${p.value})`;
568
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || k.value.length)
569
+ return [null, void 0].includes(le.value) || le.value === l.id ? "" : `url(#blur_${p.value})`;
488
570
  }
489
- const be = L(() => F.value.map((l, s) => {
571
+ const ke = L(() => F.value.map((l, s) => {
490
572
  const o = l.series.filter(
491
- (t) => !$.value.includes(t.id)
573
+ (t) => !k.value.includes(t.id)
492
574
  ), a = B.value ? o.map((t) => {
493
- const u = _.dataset[s].series.findIndex(
575
+ const u = R.value[s].series.findIndex(
494
576
  (c) => c.name === t.name
495
577
  );
496
578
  return M(
497
- _.dataset[s].series[u].values
579
+ R.value[s].series[u].values
498
580
  ).reduce((c, f) => c + f, 0);
499
581
  }).reduce((t, u) => t + u, 0) : o.map((t) => t.value).reduce((t, u) => t + u, 0);
500
582
  return l.series.map((t, u) => {
501
- const c = M(_.dataset[s].series[u].values).reduce(
583
+ const c = M(R.value[s].series[u].values).reduce(
502
584
  (m, d) => m + d,
503
585
  0
504
586
  ), f = B.value ? c : t.value;
@@ -512,19 +594,19 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
512
594
  seriesIndex: u,
513
595
  datasetIndex: s,
514
596
  total: a,
515
- opacity: $.value.includes(t.id) ? 0.5 : 1,
516
- segregate: () => fe(t),
517
- isSegregated: $.value.includes(t.id)
597
+ opacity: k.value.includes(t.id) ? 0.5 : 1,
598
+ segregate: () => me(t),
599
+ isSegregated: k.value.includes(t.id)
518
600
  };
519
601
  });
520
- })), Ft = L(() => ({
602
+ })), Dt = L(() => ({
521
603
  cy: "nested-donuts-legend",
522
604
  backgroundColor: e.value.style.chart.legend.backgroundColor,
523
605
  color: e.value.style.chart.legend.color,
524
606
  fontSize: e.value.style.chart.legend.fontSize,
525
607
  paddingBottom: 12,
526
608
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
527
- })), z = L(() => {
609
+ })), D = L(() => {
528
610
  const l = g.value.flatMap((o) => o.series.map((a) => ({
529
611
  name: `${o.name} - ${a.name}`,
530
612
  color: a.color,
@@ -532,34 +614,34 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
532
614
  }))), s = g.value.flatMap((o) => o.series.map((a) => a.value));
533
615
  return { head: l, body: s };
534
616
  });
535
- function et(l = null) {
536
- ut(() => {
537
- const s = z.value.head.map((t, u) => [
617
+ function nt(l = null) {
618
+ yt(() => {
619
+ const s = D.value.head.map((t, u) => [
538
620
  [t.name],
539
- [z.value.body[u]],
621
+ [D.value.body[u]],
540
622
  [
541
- isNaN(z.value.body[u] / t.total) ? "-" : z.value.body[u] / t.total * 100
623
+ isNaN(D.value.body[u] / t.total) ? "-" : D.value.body[u] / t.total * 100
542
624
  ]
543
625
  ]), o = [
544
626
  [e.value.style.chart.title.text],
545
627
  [e.value.style.chart.title.subtitle.text],
546
628
  [[""], ["val"], ["%"]]
547
- ].concat(s), a = Zt(o);
548
- l ? l(a) : jt({
629
+ ].concat(s), a = sl(o);
630
+ l ? l(a) : ul({
549
631
  csvContent: a,
550
632
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
551
633
  });
552
634
  });
553
635
  }
554
- const ae = L(() => {
636
+ const oe = L(() => {
555
637
  const l = [
556
638
  e.value.table.columnNames.series,
557
639
  e.value.table.columnNames.value,
558
640
  e.value.table.columnNames.percentage
559
- ], s = z.value.head.map((t, u) => {
560
- const c = O({
641
+ ], s = D.value.head.map((t, u) => {
642
+ const c = N({
561
643
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
562
- v: z.value.body[u],
644
+ v: D.value.body[u],
563
645
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
564
646
  r: e.value.table.td.roundingValue
565
647
  });
@@ -569,8 +651,8 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
569
651
  name: t.name
570
652
  },
571
653
  c,
572
- isNaN(z.value.body[u] / t.total) ? "-" : O({
573
- v: z.value.body[u] / t.total * 100,
654
+ isNaN(D.value.body[u] / t.total) ? "-" : N({
655
+ v: D.value.body[u] / t.total * 100,
574
656
  s: "%",
575
657
  r: e.value.table.td.roundingPercentage
576
658
  })
@@ -599,25 +681,25 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
599
681
  config: o
600
682
  };
601
683
  });
602
- function It() {
684
+ function zt() {
603
685
  return F.value;
604
686
  }
605
- function tt() {
606
- k.value.showTable = !k.value.showTable;
687
+ function rt() {
688
+ $.value.showTable = !$.value.showTable;
607
689
  }
608
- function lt() {
609
- k.value.dataLabels.show = !k.value.dataLabels.show;
690
+ function it() {
691
+ $.value.dataLabels.show = !$.value.dataLabels.show;
610
692
  }
611
- function at() {
612
- k.value.showTooltip = !k.value.showTooltip;
693
+ function dt() {
694
+ $.value.showTooltip = !$.value.showTooltip;
613
695
  }
614
- const oe = h(!1);
615
- function ge() {
616
- oe.value = !oe.value;
696
+ const se = h(!1);
697
+ function Le() {
698
+ se.value = !se.value;
617
699
  }
618
- async function Vt({ scale: l = 2 } = {}) {
700
+ async function Mt({ scale: l = 2 } = {}) {
619
701
  if (!V.value) return;
620
- const { width: s, height: o } = V.value.getBoundingClientRect(), a = s / o, { imageUri: t, base64: u } = await rl({ domElement: V.value, base64: !0, img: !0, scale: l });
702
+ const { width: s, height: o } = V.value.getBoundingClientRect(), a = s / o, { imageUri: t, base64: u } = await yl({ domElement: V.value, base64: !0, img: !0, scale: l });
621
703
  return {
622
704
  imageUri: t,
623
705
  base64: u,
@@ -627,55 +709,55 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
627
709
  aspectRatio: a
628
710
  };
629
711
  }
630
- const me = h(null);
631
- function Pt() {
632
- if (!me.value) return;
633
- const { x: l, y: s, width: o, height: a } = me.value.getBBox();
634
- j.value && j.value.setAttribute("viewBox", `${l} ${s} ${o + Math.min(0, l)} ${a + Math.min(0, s)}`);
712
+ const Ce = h(null);
713
+ function Bt() {
714
+ if (!Ce.value) return;
715
+ const { x: l, y: s, width: o, height: a } = Ce.value.getBBox();
716
+ ee.value && ee.value.setAttribute("viewBox", `${l} ${s} ${o + Math.min(0, l)} ${a + Math.min(0, s)}`);
635
717
  }
636
- return pt({
637
- autoSize: Pt,
638
- getData: It,
639
- getImage: Vt,
640
- generatePdf: Xe,
641
- generateCsv: et,
642
- generateImage: We,
643
- toggleTable: tt,
644
- toggleLabels: lt,
645
- toggleTooltip: at,
646
- toggleAnnotator: ge,
647
- toggleFullscreen: Me
718
+ return $t({
719
+ autoSize: Bt,
720
+ getData: zt,
721
+ getImage: Mt,
722
+ generatePdf: Ze,
723
+ generateCsv: nt,
724
+ generateImage: je,
725
+ toggleTable: rt,
726
+ toggleLabels: it,
727
+ toggleTooltip: dt,
728
+ toggleAnnotator: Le,
729
+ toggleFullscreen: Ge
648
730
  }), (l, s) => (n(), r("div", {
649
731
  ref_key: "nestedDonutsChart",
650
732
  ref: V,
651
- class: D(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
652
- style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
733
+ class: z(`vue-ui-nested-donuts ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
734
+ style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
653
735
  id: `nested_donuts_${p.value}`,
654
- onMouseenter: s[3] || (s[3] = () => i(Be)(!0)),
655
- onMouseleave: s[4] || (s[4] = () => i(Be)(!1))
736
+ onMouseenter: s[3] || (s[3] = () => i(Xe)(!0)),
737
+ onMouseleave: s[4] || (s[4] = () => i(Xe)(!1))
656
738
  }, [
657
- e.value.userOptions.buttons.annotator ? (n(), U(i($t), {
739
+ e.value.userOptions.buttons.annotator ? (n(), G(i(_t), {
658
740
  key: 0,
659
- svgRef: i(j),
741
+ svgRef: i(ee),
660
742
  backgroundColor: e.value.style.chart.backgroundColor,
661
743
  color: e.value.style.chart.color,
662
- active: oe.value,
663
- onClose: ge
744
+ active: se.value,
745
+ onClose: Le
664
746
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : w("", !0),
665
- Tt.value ? (n(), r("div", {
747
+ St.value ? (n(), r("div", {
666
748
  key: 1,
667
749
  ref_key: "noTitle",
668
- ref: Ve,
750
+ ref: Be,
669
751
  class: "vue-data-ui-no-title-space",
670
752
  style: "height:36px; width: 100%;background:transparent"
671
753
  }, null, 512)) : w("", !0),
672
754
  e.value.style.chart.title.text ? (n(), r("div", {
673
755
  key: 2,
674
756
  ref_key: "chartTitle",
675
- ref: Fe
757
+ ref: ze
676
758
  }, [
677
- (n(), U(ul, {
678
- key: `title_${Pe.value}`,
759
+ (n(), G(hl, {
760
+ key: `title_${Ee.value}`,
679
761
  config: {
680
762
  title: {
681
763
  cy: "donut-div-title",
@@ -688,13 +770,13 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
688
770
  }
689
771
  }, null, 8, ["config"]))
690
772
  ], 512)) : w("", !0),
691
- e.value.userOptions.show && Z.value && (i(Ee) || i(ve)) ? (n(), U(i(xt), {
773
+ e.value.userOptions.show && de.value && (i(We) || i(be)) ? (n(), G(i(Tt), {
692
774
  ref: "details",
693
- key: `user_option_${Se.value}`,
775
+ key: `user_option_${De.value}`,
694
776
  backgroundColor: e.value.style.chart.backgroundColor,
695
777
  color: e.value.style.chart.color,
696
- isPrinting: i(Ge),
697
- isImaging: i(Ye),
778
+ isPrinting: i(Ke),
779
+ isImaging: i(Qe),
698
780
  uid: p.value,
699
781
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
700
782
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -703,110 +785,109 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
703
785
  hasTable: e.value.userOptions.buttons.table,
704
786
  hasLabel: e.value.userOptions.buttons.labels,
705
787
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
706
- isFullscreen: G.value,
707
- isTooltip: k.value.showTooltip,
788
+ isFullscreen: Y.value,
789
+ isTooltip: $.value.showTooltip,
708
790
  titles: { ...e.value.userOptions.buttonTitles },
709
791
  chartElement: V.value,
710
792
  position: e.value.userOptions.position,
711
793
  hasAnnotator: e.value.userOptions.buttons.annotator,
712
- isAnnotation: oe.value,
794
+ isAnnotation: se.value,
713
795
  callbacks: e.value.userOptions.callbacks,
714
796
  printScale: e.value.userOptions.print.scale,
715
- onToggleFullscreen: Me,
716
- onGeneratePdf: i(Xe),
717
- onGenerateCsv: et,
718
- onGenerateImage: i(We),
719
- onToggleTable: tt,
720
- onToggleLabels: lt,
721
- onToggleTooltip: at,
722
- onToggleAnnotator: ge,
723
- style: ne({
724
- visibility: i(Ee) ? i(ve) ? "visible" : "hidden" : "visible"
797
+ onToggleFullscreen: Ge,
798
+ onGeneratePdf: i(Ze),
799
+ onGenerateCsv: nt,
800
+ onGenerateImage: i(je),
801
+ onToggleTable: rt,
802
+ onToggleLabels: it,
803
+ onToggleTooltip: dt,
804
+ onToggleAnnotator: Le,
805
+ style: ie({
806
+ visibility: i(We) ? i(be) ? "visible" : "hidden" : "visible"
725
807
  })
726
- }, Rt({ _: 2 }, [
808
+ }, qt({ _: 2 }, [
727
809
  l.$slots.menuIcon ? {
728
810
  name: "menuIcon",
729
- fn: x(({ isOpen: o, color: a }) => [
730
- C(l.$slots, "menuIcon", W(q({ isOpen: o, color: a })), void 0, !0)
811
+ fn: C(({ isOpen: o, color: a }) => [
812
+ x(l.$slots, "menuIcon", H(J({ isOpen: o, color: a })), void 0, !0)
731
813
  ]),
732
814
  key: "0"
733
815
  } : void 0,
734
816
  l.$slots.optionTooltip ? {
735
817
  name: "optionTooltip",
736
- fn: x(() => [
737
- C(l.$slots, "optionTooltip", {}, void 0, !0)
818
+ fn: C(() => [
819
+ x(l.$slots, "optionTooltip", {}, void 0, !0)
738
820
  ]),
739
821
  key: "1"
740
822
  } : void 0,
741
823
  l.$slots.optionPdf ? {
742
824
  name: "optionPdf",
743
- fn: x(() => [
744
- C(l.$slots, "optionPdf", {}, void 0, !0)
825
+ fn: C(() => [
826
+ x(l.$slots, "optionPdf", {}, void 0, !0)
745
827
  ]),
746
828
  key: "2"
747
829
  } : void 0,
748
830
  l.$slots.optionCsv ? {
749
831
  name: "optionCsv",
750
- fn: x(() => [
751
- C(l.$slots, "optionCsv", {}, void 0, !0)
832
+ fn: C(() => [
833
+ x(l.$slots, "optionCsv", {}, void 0, !0)
752
834
  ]),
753
835
  key: "3"
754
836
  } : void 0,
755
837
  l.$slots.optionImg ? {
756
838
  name: "optionImg",
757
- fn: x(() => [
758
- C(l.$slots, "optionImg", {}, void 0, !0)
839
+ fn: C(() => [
840
+ x(l.$slots, "optionImg", {}, void 0, !0)
759
841
  ]),
760
842
  key: "4"
761
843
  } : void 0,
762
844
  l.$slots.optionTable ? {
763
845
  name: "optionTable",
764
- fn: x(() => [
765
- C(l.$slots, "optionTable", {}, void 0, !0)
846
+ fn: C(() => [
847
+ x(l.$slots, "optionTable", {}, void 0, !0)
766
848
  ]),
767
849
  key: "5"
768
850
  } : void 0,
769
851
  l.$slots.optionLabels ? {
770
852
  name: "optionLabels",
771
- fn: x(() => [
772
- C(l.$slots, "optionLabels", {}, void 0, !0)
853
+ fn: C(() => [
854
+ x(l.$slots, "optionLabels", {}, void 0, !0)
773
855
  ]),
774
856
  key: "6"
775
857
  } : void 0,
776
858
  l.$slots.optionFullscreen ? {
777
859
  name: "optionFullscreen",
778
- fn: x(({ toggleFullscreen: o, isFullscreen: a }) => [
779
- C(l.$slots, "optionFullscreen", W(q({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
860
+ fn: C(({ toggleFullscreen: o, isFullscreen: a }) => [
861
+ x(l.$slots, "optionFullscreen", H(J({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
780
862
  ]),
781
863
  key: "7"
782
864
  } : void 0,
783
865
  l.$slots.optionAnnotator ? {
784
866
  name: "optionAnnotator",
785
- fn: x(({ toggleAnnotator: o, isAnnotator: a }) => [
786
- C(l.$slots, "optionAnnotator", W(q({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
867
+ fn: C(({ toggleAnnotator: o, isAnnotator: a }) => [
868
+ x(l.$slots, "optionAnnotator", H(J({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
787
869
  ]),
788
870
  key: "8"
789
871
  } : void 0
790
872
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : w("", !0),
791
- Z.value ? (n(), r("svg", {
792
- key: 4,
873
+ (n(), r("svg", {
793
874
  ref_key: "svgRef",
794
- ref: j,
795
- xmlns: i(Kt),
796
- class: D({
797
- "vue-data-ui-fullscreen--on": G.value,
798
- "vue-data-ui-fulscreen--off": !G.value,
875
+ ref: ee,
876
+ xmlns: i(al),
877
+ class: z({
878
+ "vue-data-ui-fullscreen--on": Y.value,
879
+ "vue-data-ui-fulscreen--off": !Y.value,
799
880
  "vue-data-ui-svg": !0
800
881
  }),
801
882
  viewBox: `0 0 ${v.value.width <= 0 ? 1e-3 : v.value.width} ${v.value.height < 0 ? 1e-3 : v.value.height}`,
802
- style: ne(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ue.value.css}`)
883
+ style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${qe.value.css}`)
803
884
  }, [
804
885
  y("g", {
805
886
  ref_key: "G",
806
- ref: me,
887
+ ref: Ce,
807
888
  class: "vue-data-ui-g"
808
889
  }, [
809
- rt(i(wt)),
890
+ vt(i(xt)),
810
891
  l.$slots["chart-background"] ? (n(), r("foreignObject", {
811
892
  key: 0,
812
893
  x: 0,
@@ -817,10 +898,10 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
817
898
  pointerEvents: "none"
818
899
  }
819
900
  }, [
820
- C(l.$slots, "chart-background", {}, void 0, !0)
821
- ], 8, vl)) : w("", !0),
901
+ x(l.$slots, "chart-background", {}, void 0, !0)
902
+ ], 8, $l)) : w("", !0),
822
903
  y("defs", null, [
823
- (n(!0), r(T, null, N(Qe.value, (o, a) => (n(), r("radialGradient", {
904
+ (n(!0), r(_, null, A(ot.value, (o, a) => (n(), r("radialGradient", {
824
905
  id: `radial_${p.value}_${a}`
825
906
  }, [
826
907
  s[5] || (s[5] = y("stop", {
@@ -829,21 +910,21 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
829
910
  "stop-opacity": "0"
830
911
  }, null, -1)),
831
912
  y("stop", {
832
- offset: `${(1 - ee.value / Ke.value[a]) * 100}%`,
833
- "stop-color": i(Qt)("#FFFFFF", 0),
913
+ offset: `${(1 - te.value / at.value[a]) * 100}%`,
914
+ "stop-color": i(ol)("#FFFFFF", 0),
834
915
  "stop-opacity": "0"
835
- }, null, 8, fl),
916
+ }, null, 8, Ll),
836
917
  y("stop", {
837
- offset: `${(1 - ee.value / Ke.value[a] / 2) * 100}%`,
918
+ offset: `${(1 - te.value / at.value[a] / 2) * 100}%`,
838
919
  "stop-color": "#FFFFFF",
839
920
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
840
- }, null, 8, yl),
921
+ }, null, 8, Cl),
841
922
  s[6] || (s[6] = y("stop", {
842
923
  offset: "100%",
843
924
  "stop-color": "#FFFFFF",
844
925
  "stop-opacity": "0"
845
926
  }, null, -1))
846
- ], 8, hl))), 256))
927
+ ], 8, kl))), 256))
847
928
  ]),
848
929
  y("defs", null, [
849
930
  y("filter", {
@@ -857,12 +938,12 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
857
938
  in: "SourceGraphic",
858
939
  stdDeviation: 2,
859
940
  id: `blur_std_${p.value}`
860
- }, null, 8, bl),
941
+ }, null, 8, _l),
861
942
  s[7] || (s[7] = y("feColorMatrix", {
862
943
  type: "saturate",
863
944
  values: "0"
864
945
  }, null, -1))
865
- ], 8, pl),
946
+ ], 8, xl),
866
947
  y("filter", {
867
948
  id: `shadow_${p.value}`,
868
949
  "color-interpolation-filters": "sRGB"
@@ -873,53 +954,53 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
873
954
  stdDeviation: "10",
874
955
  "flood-opacity": "0.5",
875
956
  "flood-color": e.value.style.chart.layout.donut.shadowColor
876
- }, null, 8, ml)
877
- ], 8, gl)
957
+ }, null, 8, Tl)
958
+ ], 8, Al)
878
959
  ]),
879
960
  y("defs", null, [
880
- (n(!0), r(T, null, N(X.value, (o, a) => (n(), r("path", {
961
+ (n(!0), r(_, null, A(q.value, (o, a) => (n(), r("path", {
881
962
  key: `path-full-${a}`,
882
963
  id: `path-full-${a}-${p.value}`,
883
964
  d: o.fullCirclePath,
884
965
  fill: "none"
885
- }, null, 8, wl))), 128))
966
+ }, null, 8, Nl))), 128))
886
967
  ]),
887
- (n(!0), r(T, null, N(X.value, (o, a) => (n(), r("g", null, [
888
- o.hasData ? (n(!0), r(T, { key: 0 }, N(o.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
968
+ (n(!0), r(_, null, A(q.value, (o, a) => (n(), r("g", null, [
969
+ o.hasData ? (n(!0), r(_, { key: 0 }, A(o.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
889
970
  y("path", {
890
971
  class: "vue-ui-donut-arc-path",
891
972
  d: t.arcSlice,
892
973
  fill: t.color,
893
974
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
894
975
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
895
- filter: je(t, u)
896
- }, null, 8, $l)
897
- ]))), 256)) : (n(!0), r(T, { key: 1 }, N(o.skeleton, (t, u) => (n(), r("g", null, [
976
+ filter: ut(t, u)
977
+ }, null, 8, Ol)
978
+ ]))), 256)) : (n(!0), r(_, { key: 1 }, A(o.skeleton, (t, u) => (n(), r("g", null, [
898
979
  y("path", {
899
980
  class: "vue-ui-donut-arc-path",
900
981
  d: t.arcSlice,
901
982
  fill: t.color,
902
983
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
903
984
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
904
- }, null, 8, kl)
985
+ }, null, 8, Sl)
905
986
  ]))), 256))
906
987
  ]))), 256)),
907
- e.value.style.chart.useGradient ? (n(), r("g", Ll, [
908
- (n(!0), r(T, null, N(Qe.value, (o, a) => (n(), r("g", null, [
988
+ e.value.style.chart.useGradient ? (n(), r("g", Fl, [
989
+ (n(!0), r(_, null, A(ot.value, (o, a) => (n(), r("g", null, [
909
990
  y("path", {
910
991
  d: o.donut.arcSlice,
911
992
  fill: `url(#radial_${p.value}_${a})`,
912
993
  stroke: "transparent",
913
994
  "stroke-width": "0"
914
- }, null, 8, xl)
995
+ }, null, 8, Il)
915
996
  ]))), 256))
916
997
  ])) : w("", !0),
917
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", Cl, [
918
- e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(T, { key: 0 }, N(X.value, (o, a) => (n(), r("g", null, [
919
- (n(!0), r(T, null, N(o.donut, (t, u) => (n(), r("g", null, [
998
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", Vl, [
999
+ e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(_, { key: 0 }, A(q.value, (o, a) => (n(), r("g", null, [
1000
+ (n(!0), r(_, null, A(o.donut, (t, u) => (n(), r("g", null, [
920
1001
  u === 0 && v.value.width && v.value.height ? (n(), r("text", {
921
1002
  key: 0,
922
- class: D({ animated: e.value.useCssAnimation }),
1003
+ class: z({ animated: e.value.useCssAnimation }),
923
1004
  "text-anchor": "middle",
924
1005
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
925
1006
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
@@ -933,45 +1014,45 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
933
1014
  method: "align",
934
1015
  spacing: "auto",
935
1016
  side: "right"
936
- }, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(ct)({
1017
+ }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(pt)({
937
1018
  source: o.name,
938
1019
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
939
- }) : o.name), 9, Tl)
940
- ], 10, _l)) : w("", !0)
1020
+ }) : o.name), 9, Dl)
1021
+ ], 10, Pl)) : w("", !0)
941
1022
  ]))), 256))
942
- ]))), 256)) : (n(!0), r(T, { key: 1 }, N(X.value, (o, a) => (n(), r("g", null, [
943
- (n(!0), r(T, null, N(o.donut, (t, u) => (n(), r("g", null, [
1023
+ ]))), 256)) : (n(!0), r(_, { key: 1 }, A(q.value, (o, a) => (n(), r("g", null, [
1024
+ (n(!0), r(_, null, A(o.donut, (t, u) => (n(), r("g", null, [
944
1025
  u === 0 && v.value.width && v.value.height ? (n(), r("text", {
945
1026
  key: 0,
946
- class: D({ animated: e.value.useCssAnimation }),
1027
+ class: z({ animated: e.value.useCssAnimation }),
947
1028
  x: v.value.width / 2,
948
1029
  y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
949
1030
  "text-anchor": "middle",
950
1031
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
951
1032
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
952
1033
  fill: e.value.style.chart.layout.labels.dataLabels.color
953
- }, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(ct)({
1034
+ }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(pt)({
954
1035
  source: o.name,
955
1036
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
956
- }) : o.name), 11, Nl)) : w("", !0)
1037
+ }) : o.name), 11, zl)) : w("", !0)
957
1038
  ]))), 256))
958
1039
  ]))), 256))
959
1040
  ])) : w("", !0),
960
- e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Al, [
961
- (n(!0), r(T, null, N(X.value, (o, a) => (n(), r("g", null, [
962
- (n(!0), r(T, null, N(o.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", {
963
- filter: je(t, u)
1041
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Ml, [
1042
+ (n(!0), r(_, null, A(q.value, (o, a) => (n(), r("g", null, [
1043
+ (n(!0), r(_, null, A(o.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", {
1044
+ filter: ut(t, u)
964
1045
  }, [
965
- it(y("text", {
966
- class: D({ animated: e.value.useCssAnimation }),
967
- opacity: pe(t) ? 1 : 0,
968
- "text-anchor": i(J)(t, !0).anchor,
969
- x: i(J)(
1046
+ ht(y("text", {
1047
+ class: z({ animated: e.value.useCssAnimation }),
1048
+ opacity: $e(t) ? 1 : 0,
1049
+ "text-anchor": i(Q)(t, !0).anchor,
1050
+ x: i(Q)(
970
1051
  t,
971
1052
  !1,
972
1053
  e.value.style.chart.layout.labels.dataLabels.offsetX
973
1054
  ).x || 0,
974
- y: i(Ae)(
1055
+ y: i(Ve)(
975
1056
  t,
976
1057
  e.value.style.chart.layout.labels.dataLabels.offsetY,
977
1058
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -979,26 +1060,26 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
979
1060
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
980
1061
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
981
1062
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
982
- }, S(i(O)({
1063
+ }, O(i(N)({
983
1064
  v: t.proportion * 100,
984
1065
  s: "%",
985
1066
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
986
- })), 11, Sl), [
1067
+ })), 11, El), [
987
1068
  [
988
- dt,
989
- k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1069
+ ft,
1070
+ $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
990
1071
  ]
991
1072
  ]),
992
- it(y("text", {
993
- class: D({ animated: e.value.useCssAnimation }),
994
- opacity: pe(t) ? 1 : 0,
995
- "text-anchor": i(J)(t, !0).anchor,
996
- x: i(J)(
1073
+ ht(y("text", {
1074
+ class: z({ animated: e.value.useCssAnimation }),
1075
+ opacity: $e(t) ? 1 : 0,
1076
+ "text-anchor": i(Q)(t, !0).anchor,
1077
+ x: i(Q)(
997
1078
  t,
998
1079
  !1,
999
1080
  e.value.style.chart.layout.labels.dataLabels.offsetX
1000
1081
  ).x || 0,
1001
- y: i(Ae)(
1082
+ y: i(Ve)(
1002
1083
  t,
1003
1084
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1004
1085
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1006,32 +1087,32 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
1006
1087
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1007
1088
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1008
1089
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1009
- }, " (" + S(i(Q)(
1090
+ }, " (" + O(i(j)(
1010
1091
  e.value.style.chart.layout.labels.dataLabels.formatter,
1011
1092
  t.value,
1012
- i(O)({
1093
+ i(N)({
1013
1094
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1014
1095
  v: t.value,
1015
1096
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1016
1097
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1017
1098
  }),
1018
1099
  { datapoint: t, seriesIndex: a, datapointIndex: u }
1019
- )) + ") ", 11, Fl), [
1100
+ )) + ") ", 11, Rl), [
1020
1101
  [
1021
- dt,
1022
- k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1102
+ ft,
1103
+ $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1023
1104
  ]
1024
1105
  ]),
1025
- pe(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
1106
+ $e(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
1026
1107
  key: 0,
1027
- class: D({ animated: e.value.useCssAnimation }),
1028
- "text-anchor": i(J)(t, !0).anchor,
1029
- x: i(J)(
1108
+ class: z({ animated: e.value.useCssAnimation }),
1109
+ "text-anchor": i(Q)(t, !0).anchor,
1110
+ x: i(Q)(
1030
1111
  t,
1031
1112
  !1,
1032
1113
  e.value.style.chart.layout.labels.dataLabels.offsetX
1033
1114
  ).x || 0,
1034
- y: i(Ae)(
1115
+ y: i(Ve)(
1035
1116
  t,
1036
1117
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1037
1118
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1039,56 +1120,44 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
1039
1120
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1040
1121
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1041
1122
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1042
- }, S(i(Q)(
1123
+ }, O(i(j)(
1043
1124
  e.value.style.chart.layout.labels.dataLabels.formatter,
1044
1125
  t.value,
1045
- i(O)({
1126
+ i(N)({
1046
1127
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1047
1128
  v: t.value,
1048
1129
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1049
1130
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1050
1131
  }),
1051
1132
  { datapoint: t, seriesIndex: a, datapointIndex: u }
1052
- )), 11, Il)) : w("", !0)
1053
- ], 8, Ol))), 256))
1133
+ )), 11, Ul)) : w("", !0)
1134
+ ], 8, Bl))), 256))
1054
1135
  ]))), 256))
1055
1136
  ])) : w("", !0),
1056
- (n(!0), r(T, null, N(X.value, (o, a) => (n(), r("g", null, [
1057
- (n(!0), r(T, null, N(o.donut, (t, u) => (n(), r("g", null, [
1137
+ (n(!0), r(_, null, A(q.value, (o, a) => (n(), r("g", null, [
1138
+ (n(!0), r(_, null, A(o.donut, (t, u) => (n(), r("g", null, [
1058
1139
  y("path", {
1059
1140
  d: t.arcSlice,
1060
- fill: de.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1061
- onMouseenter: (c) => St({
1141
+ fill: he.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1142
+ onMouseenter: (c) => Pt({
1062
1143
  datapoint: t,
1063
1144
  seriesIndex: t.seriesIndex
1064
1145
  }),
1065
- onClick: (c) => At({ datapoint: t, index: u }),
1146
+ onClick: (c) => It({ datapoint: t, index: u }),
1066
1147
  onMouseleave: s[0] || (s[0] = (c) => {
1067
- re.value = !1, Ze.value = null, te.value = null, le.value = null, de.value = null;
1148
+ ce.value = !1, st.value = null, le.value = null, ae.value = null, he.value = null;
1068
1149
  })
1069
- }, null, 40, Vl)
1150
+ }, null, 40, Gl)
1070
1151
  ]))), 256))
1071
1152
  ]))), 256)),
1072
- C(l.$slots, "svg", { svg: v.value }, void 0, !0)
1153
+ x(l.$slots, "svg", { svg: v.value }, void 0, !0)
1073
1154
  ], 512)
1074
- ], 14, cl)) : w("", !0),
1075
- l.$slots.watermark ? (n(), r("div", Pl, [
1076
- C(l.$slots, "watermark", W(q({ isPrinting: i(Ge) || i(Ye) })), void 0, !0)
1155
+ ], 14, wl)),
1156
+ l.$slots.watermark ? (n(), r("div", Yl, [
1157
+ x(l.$slots, "watermark", H(J({ isPrinting: i(Ke) || i(Qe) })), void 0, !0)
1077
1158
  ])) : w("", !0),
1078
- Z.value ? w("", !0) : (n(), U(i(kt), {
1079
- key: 6,
1080
- config: {
1081
- type: "donut",
1082
- style: {
1083
- backgroundColor: e.value.style.chart.backgroundColor,
1084
- donut: {
1085
- color: "#CCCCCC"
1086
- }
1087
- }
1088
- }
1089
- }, null, 8, ["config"])),
1090
- rt(i(Lt), {
1091
- show: k.value.showTooltip && re.value,
1159
+ vt(i(At), {
1160
+ show: $.value.showTooltip && ce.value,
1092
1161
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1093
1162
  color: e.value.style.chart.tooltip.color,
1094
1163
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1099,76 +1168,76 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
1099
1168
  position: e.value.style.chart.tooltip.position,
1100
1169
  offsetY: e.value.style.chart.tooltip.offsetY,
1101
1170
  parent: V.value,
1102
- content: ie.value,
1103
- isFullscreen: G.value,
1104
- isCustom: i(vt)(e.value.style.chart.tooltip.customFormat)
1171
+ content: ve.value,
1172
+ isFullscreen: Y.value,
1173
+ isCustom: i(bt)(e.value.style.chart.tooltip.customFormat)
1105
1174
  }, {
1106
- "tooltip-before": x(() => [
1107
- C(l.$slots, "tooltip-before", W(q({ ...ye.value })), void 0, !0)
1175
+ "tooltip-before": C(() => [
1176
+ x(l.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
1108
1177
  ]),
1109
- "tooltip-after": x(() => [
1110
- C(l.$slots, "tooltip-after", W(q({ ...ye.value })), void 0, !0)
1178
+ "tooltip-after": C(() => [
1179
+ x(l.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
1111
1180
  ]),
1112
1181
  _: 3
1113
1182
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1114
1183
  e.value.style.chart.legend.show ? (n(), r("div", {
1115
- key: 7,
1184
+ key: 5,
1116
1185
  ref_key: "chartLegend",
1117
- ref: ce,
1118
- class: D({ "vue-ui-nested-donuts-legend": be.value.length > 1 })
1186
+ ref: fe,
1187
+ class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
1119
1188
  }, [
1120
- (n(!0), r(T, null, N(be.value, (o, a) => (n(), U(nl, {
1121
- key: `legend_${a}_${De.value}`,
1189
+ (n(!0), r(_, null, A(ke.value, (o, a) => (n(), G(fl, {
1190
+ key: `legend_${a}_${Ue.value}`,
1122
1191
  legendSet: o,
1123
- config: Ft.value,
1124
- onClickMarker: s[1] || (s[1] = ({ legend: t }) => fe(t))
1192
+ config: Dt.value,
1193
+ onClickMarker: s[1] || (s[1] = ({ legend: t }) => me(t))
1125
1194
  }, {
1126
- legendTitle: x(({ titleSet: t }) => [
1127
- t[0] && t[0].arcOf ? (n(), r("div", zl, S(t[0].arcOf), 1)) : w("", !0)
1195
+ legendTitle: C(({ titleSet: t }) => [
1196
+ t[0] && t[0].arcOf ? (n(), r("div", Xl, O(t[0].arcOf), 1)) : w("", !0)
1128
1197
  ]),
1129
- item: x(({ legend: t, index: u }) => [
1198
+ item: C(({ legend: t, index: u }) => [
1130
1199
  y("div", {
1131
- onClick: (c) => fe(t),
1132
- style: ne(`opacity:${$.value.includes(t.id) ? 0.5 : 1}`)
1133
- }, S(t.name) + S(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + S(e.value.style.chart.legend.showValue ? i(Q)(
1200
+ onClick: (c) => me(t),
1201
+ style: ie(`opacity:${k.value.includes(t.id) ? 0.5 : 1}`)
1202
+ }, O(t.name) + O(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + O(e.value.style.chart.legend.showValue ? i(j)(
1134
1203
  e.value.style.chart.layout.labels.dataLabels.formatter,
1135
1204
  t.value,
1136
- i(O)({
1205
+ i(N)({
1137
1206
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1138
1207
  v: t.value,
1139
1208
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1140
1209
  r: e.value.style.chart.legend.roundingValue
1141
1210
  }),
1142
1211
  { datapoint: t, seriesIndex: u }
1143
- ) : "") + " " + S(e.value.style.chart.legend.showPercentage ? $.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(O)({
1212
+ ) : "") + " " + O(e.value.style.chart.legend.showPercentage ? k.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(N)({
1144
1213
  v: t.value / t.total * 100,
1145
1214
  s: "%",
1146
1215
  r: e.value.style.chart.legend.roundingPercentage
1147
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Dl)
1216
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Wl)
1148
1217
  ]),
1149
1218
  _: 2
1150
1219
  }, 1032, ["legendSet", "config"]))), 128))
1151
1220
  ], 2)) : w("", !0),
1152
1221
  e.value.style.chart.legend.show ? w("", !0) : (n(), r("div", {
1153
- key: 8,
1222
+ key: 6,
1154
1223
  ref_key: "chartLegend",
1155
- ref: ce
1224
+ ref: fe
1156
1225
  }, [
1157
- C(l.$slots, "legend", { legend: be.value }, void 0, !0)
1226
+ x(l.$slots, "legend", { legend: ke.value }, void 0, !0)
1158
1227
  ], 512)),
1159
1228
  l.$slots.source ? (n(), r("div", {
1160
- key: 9,
1229
+ key: 7,
1161
1230
  ref_key: "source",
1162
- ref: Ie,
1231
+ ref: Me,
1163
1232
  dir: "auto"
1164
1233
  }, [
1165
- C(l.$slots, "source", {}, void 0, !0)
1234
+ x(l.$slots, "source", {}, void 0, !0)
1166
1235
  ], 512)) : w("", !0),
1167
- Z.value ? (n(), U(i(gt), {
1168
- key: 10,
1236
+ de.value ? (n(), G(i(Lt), {
1237
+ key: 8,
1169
1238
  hideDetails: "",
1170
1239
  config: {
1171
- open: k.value.showTable,
1240
+ open: $.value.showTable,
1172
1241
  maxHeight: 1e4,
1173
1242
  body: {
1174
1243
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -1180,33 +1249,34 @@ const dl = ["id"], cl = ["xmlns", "viewBox"], vl = ["width", "height"], hl = ["i
1180
1249
  }
1181
1250
  }
1182
1251
  }, {
1183
- content: x(() => [
1184
- (n(), U(i(mt), {
1185
- key: `table_${ze.value}`,
1186
- colNames: ae.value.colNames,
1187
- head: ae.value.head,
1188
- body: ae.value.body,
1189
- config: ae.value.config,
1252
+ content: C(() => [
1253
+ (n(), G(i(Ct), {
1254
+ key: `table_${Re.value}`,
1255
+ colNames: oe.value.colNames,
1256
+ head: oe.value.head,
1257
+ body: oe.value.body,
1258
+ config: oe.value.config,
1190
1259
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1191
- onClose: s[2] || (s[2] = (o) => k.value.showTable = !1)
1260
+ onClose: s[2] || (s[2] = (o) => $.value.showTable = !1)
1192
1261
  }, {
1193
- th: x(({ th: o }) => [
1262
+ th: C(({ th: o }) => [
1194
1263
  y("div", {
1195
1264
  innerHTML: o,
1196
1265
  style: { display: "flex", "align-items": "center" }
1197
- }, null, 8, Ml)
1266
+ }, null, 8, ql)
1198
1267
  ]),
1199
- td: x(({ td: o }) => [
1200
- Ut(S(o.name || o), 1)
1268
+ td: C(({ td: o }) => [
1269
+ Ht(O(o.name || o), 1)
1201
1270
  ]),
1202
1271
  _: 1
1203
1272
  }, 8, ["colNames", "head", "body", "config", "title"]))
1204
1273
  ]),
1205
1274
  _: 1
1206
- }, 8, ["config"])) : w("", !0)
1207
- ], 46, dl));
1275
+ }, 8, ["config"])) : w("", !0),
1276
+ i(ye) ? (n(), G(bl, { key: 9 })) : w("", !0)
1277
+ ], 46, ml));
1208
1278
  }
1209
- }, Ql = /* @__PURE__ */ il(Bl, [["__scopeId", "data-v-bb5bf10a"]]);
1279
+ }, na = /* @__PURE__ */ gl(Hl, [["__scopeId", "data-v-9070d068"]]);
1210
1280
  export {
1211
- Ql as default
1281
+ na as default
1212
1282
  };