vue-data-ui 3.0.0-next.27 → 3.0.0-next.28

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-RGDVmFSH.js → Arrow-FEiXAF1f.js} +1 -1
  2. package/dist/{BaseDraggableDialog-2MH5hxMc.js → BaseDraggableDialog-B0E68Ss_.js} +2 -2
  3. package/dist/{BaseIcon-DLJ5Lzvf.js → BaseIcon-CNk8ZQxC.js} +1 -1
  4. package/dist/{ColorPicker-uH4pBeoc.js → ColorPicker-Bh0sQqJU.js} +2 -2
  5. package/dist/{DataTable-DWXGn13M.js → DataTable-BtWOpycK.js} +2 -2
  6. package/dist/{Legend-XvLWu-U4.js → Legend-DTMU8MPG.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DY6-8nWM.js → NonSvgPenAndPaper-DFdkMS2K.js} +3 -3
  8. package/dist/{PackageVersion-CcyOrmqr.js → PackageVersion-BcAEQLLi.js} +1 -1
  9. package/dist/{PenAndPaper-S1h1sM_v.js → PenAndPaper-CmO7bEfi.js} +3 -3
  10. package/dist/{Shape-B2NNkVEU.js → Shape-CQVlnhqo.js} +1 -1
  11. package/dist/{Slicer-C2128jWm.js → Slicer-DVW32UTi.js} +2 -2
  12. package/dist/{SparkTooltip-B0IgrAiC.js → SparkTooltip-BKSFRids.js} +1 -1
  13. package/dist/{Title-BT7bS0eb.js → Title-CGN9QiYI.js} +1 -1
  14. package/dist/{Tooltip-CbaafXw_.js → Tooltip-mMwokTkO.js} +1 -1
  15. package/dist/{UserOptions-C9lB05jb.js → UserOptions-DYn2297n.js} +2 -2
  16. package/dist/{dom-to-png-B5f_cRVB.js → dom-to-png-BVzHEl2w.js} +1 -1
  17. package/dist/{img-BScthXJW.js → img-ChuzqrF3.js} +1 -1
  18. package/dist/{index-DTJkgcxh.js → index-DwurWOmm.js} +14 -1
  19. package/dist/{pdf-DEfty6-G.js → pdf-C9A0Wlta.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +5 -0
  22. package/dist/types/vue-data-ui.d.ts +5 -0
  23. package/dist/{useNestedProp-DvwKj8Zn.js → useNestedProp-CFAjw-uI.js} +1 -1
  24. package/dist/{usePrinter-CbokYjoB.js → usePrinter-BvsDO5CU.js} +2 -2
  25. package/dist/{vue-data-ui-BubXK-EN.js → vue-data-ui-DnH55d6o.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-BgbiwMsJ.js → vue-ui-3d-bar-BIPJDf4a.js} +6 -6
  28. package/dist/{vue-ui-accordion-BDuLBbkX.js → vue-ui-accordion-C7ba8AVe.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-B8esFXAj.js → vue-ui-age-pyramid-CIg_Ehbq.js} +6 -6
  30. package/dist/{vue-ui-annotator-BM2Fxwyn.js → vue-ui-annotator-C3nqKGzo.js} +2 -2
  31. package/dist/{vue-ui-bullet-C5r2tlAw.js → vue-ui-bullet-DK3bEHJG.js} +7 -7
  32. package/dist/{vue-ui-candlestick-DEqKEVdy.js → vue-ui-candlestick-HXpLcsDU.js} +7 -7
  33. package/dist/{vue-ui-carousel-table-CHABZSa7.js → vue-ui-carousel-table-BnplX7KO.js} +4 -4
  34. package/dist/{vue-ui-chestnut-CKmXKQ61.js → vue-ui-chestnut-sQskMYei.js} +5 -5
  35. package/dist/{vue-ui-chord-DW2ndivp.js → vue-ui-chord-CT-viUg5.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-BKlgiMRS.js → vue-ui-circle-pack-BEjSuhTw.js} +6 -6
  37. package/dist/{vue-ui-cursor-BpctNjDR.js → vue-ui-cursor-DP40Z3Pg.js} +2 -2
  38. package/dist/{vue-ui-dashboard-C304-EeY.js → vue-ui-dashboard-CoukhCPg.js} +62 -62
  39. package/dist/{vue-ui-digits-anpApSWe.js → vue-ui-digits-FLazCL03.js} +2 -2
  40. package/dist/{vue-ui-donut-JzjQTiDx.js → vue-ui-donut-C_f5VCo9.js} +8 -8
  41. package/dist/{vue-ui-donut-evolution-nQbgWXs5.js → vue-ui-donut-evolution-C8eGM4Wc.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-BgnmrlkA.js → vue-ui-dumbbell-Bcy0H0ej.js} +7 -7
  43. package/dist/{vue-ui-flow-DEPrQA-w.js → vue-ui-flow-PBHoj24k.js} +7 -7
  44. package/dist/{vue-ui-funnel-ojf0srk6.js → vue-ui-funnel--s2L_i_f.js} +6 -6
  45. package/dist/{vue-ui-galaxy-CYP_NOuc.js → vue-ui-galaxy-5iik4XcF.js} +5 -5
  46. package/dist/{vue-ui-gauge-PZkGA3xT.js → vue-ui-gauge-Cc8XdZEO.js} +6 -6
  47. package/dist/{vue-ui-gizmo-BVEf1l02.js → vue-ui-gizmo-D9YdWF0U.js} +3 -3
  48. package/dist/{vue-ui-heatmap-C0QKWdB2.js → vue-ui-heatmap-CNuiN6e-.js} +7 -7
  49. package/dist/{vue-ui-history-plot-DL6znOA2.js → vue-ui-history-plot-DTv_F82N.js} +7 -7
  50. package/dist/{vue-ui-kpi-k901VoIN.js → vue-ui-kpi-pLPQLsiF.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-dO16jdj9.js → vue-ui-mini-loader-CDYKGa7j.js} +2 -2
  52. package/dist/{vue-ui-molecule-CgBLfrXa.js → vue-ui-molecule-BV9JjR8F.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-BxwR2Ez7.js → vue-ui-mood-radar-Cknw3hKt.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-BIjRulQt.js → vue-ui-nested-donuts-C85ZFJ_q.js} +503 -501
  55. package/dist/{vue-ui-onion-CkoPdA0-.js → vue-ui-onion-C9cZNyC3.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-CHQ4Brih.js → vue-ui-parallel-coordinate-plot-D7H2zhCF.js} +8 -8
  57. package/dist/{vue-ui-quadrant-CEQTH_Vf.js → vue-ui-quadrant-Cfvu8-h1.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-DIoqKBCM.js → vue-ui-quick-chart-B3d2FDBP.js} +6 -6
  59. package/dist/{vue-ui-radar-Cft9wyK8.js → vue-ui-radar-CQcjyxwQ.js} +7 -7
  60. package/dist/{vue-ui-rating-OARiI9ot.js → vue-ui-rating-DEDPYi2F.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-B-Zb1LQY.js → vue-ui-relation-circle-swVQdvQX.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-v7NEDfRs.js → vue-ui-ridgeline-DU85JJKL.js} +8 -8
  63. package/dist/{vue-ui-rings-BQwfTTzr.js → vue-ui-rings-CwVJAUv8.js} +8 -8
  64. package/dist/{vue-ui-scatter-CHQCbV8M.js → vue-ui-scatter-Dqltdynp.js} +8 -8
  65. package/dist/{vue-ui-skeleton-CHJxsFpK.js → vue-ui-skeleton-C8QYEKxX.js} +3 -3
  66. package/dist/{vue-ui-smiley-CsWC9IZ1.js → vue-ui-smiley-BiPXfmqf.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-BuamubwE.js → vue-ui-spark-trend-DkyWiTg0.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-BHGRAUXV.js → vue-ui-sparkbar-CEjHYHRg.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-DUnltuDi.js → vue-ui-sparkgauge-CqsLMGbd.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-BMedlapo.js → vue-ui-sparkhistogram-BQeOmWdJ.js} +4 -4
  71. package/dist/{vue-ui-sparkline-BHNwaMiS.js → vue-ui-sparkline-BzskaXWk.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-vRQz_uQJ.js → vue-ui-sparkstackbar-WMpYFqmu.js} +3 -3
  73. package/dist/{vue-ui-stackbar-CQ6dTUhn.js → vue-ui-stackbar-BvA1pWBy.js} +9 -9
  74. package/dist/{vue-ui-strip-plot-CO2CPtr7.js → vue-ui-strip-plot-sPsAx0ly.js} +7 -7
  75. package/dist/{vue-ui-table-BLsZesaa.js → vue-ui-table-DFIQk2V5.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-CGDBekDd.js → vue-ui-table-heatmap-DP9OWEX0.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-DDBnNFfS.js → vue-ui-table-sparkline-DQBQeejJ.js} +4 -4
  78. package/dist/{vue-ui-thermometer-DCgjIlYn.js → vue-ui-thermometer-BfPYbE4s.js} +6 -6
  79. package/dist/{vue-ui-timer-BUTGgiXL.js → vue-ui-timer-B7vfnEvV.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-Dbwy0DLv.js → vue-ui-tiremarks-BBSUpVrJ.js} +6 -6
  81. package/dist/{vue-ui-treemap-fZnaJFLV.js → vue-ui-treemap-BKrRAwDR.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-CC1RSDNH.js → vue-ui-vertical-bar-BcaY2dnD.js} +9 -9
  83. package/dist/{vue-ui-waffle-yCHIWPVz.js → vue-ui-waffle-CBPTLkE9.js} +8 -8
  84. package/dist/{vue-ui-wheel-BgCEnXux.js → vue-ui-wheel-CzCd72Xa.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-DdYN7hGc.js → vue-ui-word-cloud-DQrrAfUw.js} +6 -6
  86. package/dist/{vue-ui-world-Drt14jLg.js → vue-ui-world-CSnvYru5.js} +6 -6
  87. package/dist/{vue-ui-xy-E2hScHc-.js → vue-ui-xy-D1ZyohhW.js} +8 -8
  88. package/dist/{vue-ui-xy-canvas-DYaSIflg.js → vue-ui-xy-canvas-CQWhSrqq.js} +8 -8
  89. package/package.json +1 -1
@@ -1,22 +1,22 @@
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-DTJkgcxh.js";
3
- import { t as rl, u as il } from "./useResponsive-DfdjqQps.js";
4
- import { u as mt } from "./useNestedProp-DvwKj8Zn.js";
5
- import { u as dl } from "./usePrinter-CbokYjoB.js";
6
- import { u as cl } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as vl } from "./useChartAccessibility-9icAAmYg.js";
8
- import hl from "./Title-BT7bS0eb.js";
9
- import fl from "./Legend-XvLWu-U4.js";
10
- import yl from "./img-BScthXJW.js";
11
- import { u as pl, B as bl } from "./BaseScanner-DIK2NTdp.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 = {
1
+ import { defineAsyncComponent as U, computed as C, ref as h, toRefs as Wt, watch as re, onMounted as qt, shallowRef as ct, onBeforeUnmount as Ht, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as G, createCommentVNode as $, createVNode as ht, createSlots as Jt, withCtx as x, renderSlot as _, normalizeProps as H, guardReactiveProps as J, createElementVNode as y, Fragment as A, renderList as T, toDisplayString as S, withDirectives as ft, vShow as yt, createTextVNode as Kt, nextTick as pt } from "vue";
2
+ import { u as Qt, c as Zt, A as jt, t as ea, p as Ie, a as ta, C as Fe, o as aa, e as K, b as la, G as M, d as oa, m as Ve, f as O, X as sa, s as ua, L as bt, k as Pe, n as Q, i as j, x as gt, q as na, r as ra, y as ia, T as mt, v as De } from "./index-DwurWOmm.js";
3
+ import { t as da, u as va } from "./useResponsive-DfdjqQps.js";
4
+ import { u as wt } from "./useNestedProp-CFAjw-uI.js";
5
+ import { u as ca } from "./usePrinter-BvsDO5CU.js";
6
+ import { u as ha } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ya from "./Title-CGN9QiYI.js";
9
+ import pa from "./Legend-DTMU8MPG.js";
10
+ import ba from "./img-ChuzqrF3.js";
11
+ import { u as ga, B as ma } from "./BaseScanner-DIK2NTdp.js";
12
+ import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const $a = ["id"], ka = ["xmlns", "viewBox"], La = ["width", "height"], Ca = ["id"], xa = ["offset", "stop-color"], _a = ["offset", "stop-opacity"], Aa = ["id"], Ta = ["id"], Na = ["id"], Oa = ["flood-color"], Sa = ["id", "d"], Ia = ["d", "fill", "stroke", "stroke-width", "filter"], Fa = ["d", "fill", "stroke", "stroke-width"], Va = { key: 1 }, Pa = ["d", "fill"], Da = { key: 2 }, za = ["font-size", "font-weight", "fill", "dy"], Ma = ["href"], Ea = ["x", "y", "font-size", "font-weight", "fill"], Ba = { key: 3 }, Ra = ["filter"], Ua = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ga = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ya = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Xa = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Wa = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, Xl = {
16
+ }, qa = {
17
17
  key: 0,
18
18
  class: "vue-ui-nested-donuts-legend-title"
19
- }, Wl = ["onClick"], ql = ["innerHTML"], Hl = {
19
+ }, Ha = ["onClick"], Ja = ["innerHTML"], Ka = {
20
20
  __name: "vue-ui-nested-donuts",
21
21
  props: {
22
22
  config: {
@@ -33,21 +33,21 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend", "selectDatapoint"],
36
- setup(wt, { expose: $t, emit: kt }) {
37
- const Lt = U(() => import("./vue-ui-accordion-BDuLBbkX.js")), Ct = U(() => import("./DataTable-DWXGn13M.js")), xt = U(() => import("./PackageVersion-CcyOrmqr.js")), _t = U(() => import("./PenAndPaper-S1h1sM_v.js"));
38
- U(() => import("./vue-ui-skeleton-CHJxsFpK.js"));
39
- const At = U(() => import("./Tooltip-CbaafXw_.js")), Tt = U(() => import("./UserOptions-C9lB05jb.js")), { vue_ui_nested_donuts: Nt } = Jt(), S = wt, de = L({
36
+ setup($t, { expose: kt, emit: Lt }) {
37
+ const Ct = U(() => import("./vue-ui-accordion-C7ba8AVe.js")), xt = U(() => import("./DataTable-BtWOpycK.js")), _t = U(() => import("./PackageVersion-BcAEQLLi.js")), At = U(() => import("./PenAndPaper-CmO7bEfi.js"));
38
+ U(() => import("./vue-ui-skeleton-C8QYEKxX.js"));
39
+ const Tt = U(() => import("./Tooltip-mMwokTkO.js")), Nt = U(() => import("./UserOptions-DYn2297n.js")), { vue_ui_nested_donuts: Ot } = Qt(), g = $t, de = C({
40
40
  get() {
41
- return !!S.dataset && S.dataset.length;
41
+ return !!g.dataset && g.dataset.length;
42
42
  },
43
- set(l) {
44
- return l;
43
+ set(a) {
44
+ return a;
45
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;
46
+ }), p = h(Zt()), ve = h(!1), ce = h(""), he = h(null), ze = h(0), V = h(null), Me = h(null), fe = h(null), Ee = h(null), Be = h(null), Re = h(0), Ue = h(0), Ge = h(0), E = h(!0), B = h([]), Z = h([]), Y = h(!1);
47
+ function Ye(a) {
48
+ Y.value = a, ze.value += 1;
49
49
  }
50
- const e = h(ge()), Ye = {
50
+ const e = h(ge()), Xe = {
51
51
  name: "",
52
52
  series: [
53
53
  {
@@ -66,17 +66,17 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
66
66
  color: "#CACACA"
67
67
  }
68
68
  ]
69
- }, { loading: ye, FINAL_DATASET: R, manualLoading: pe } = pl({
70
- ...Yt(S),
69
+ }, { loading: ye, FINAL_DATASET: R, manualLoading: pe } = ga({
70
+ ...Wt(g),
71
71
  FINAL_CONFIG: e,
72
72
  prepareConfig: ge,
73
73
  callback: () => {
74
74
  Promise.resolve().then(async () => {
75
- await He();
75
+ await Je();
76
76
  });
77
77
  },
78
- skeletonDataset: [Ye, Ye],
79
- skeletonConfig: Qt({
78
+ skeletonDataset: [Xe, Xe],
79
+ skeletonConfig: jt({
80
80
  defaultConfig: e.value,
81
81
  userConfig: {
82
82
  useCssAnimation: !1,
@@ -102,57 +102,58 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
102
102
  }
103
103
  }
104
104
  })
105
- }), { userOptionsVisible: be, setUserOptionsVisibility: Xe, keepUserOptionState: We } = cl({ config: e.value }), { svgRef: ee } = vl({
105
+ }), { userOptionsVisible: be, setUserOptionsVisibility: We, keepUserOptionState: qe } = ha({ config: e.value }), { svgRef: ee } = fa({
106
106
  config: e.value.style.chart.title
107
107
  });
108
108
  function ge() {
109
- const l = mt({
110
- userConfig: S.config,
111
- defaultConfig: Nt
109
+ const a = wt({
110
+ userConfig: g.config,
111
+ defaultConfig: Ot
112
112
  });
113
- return l.theme ? {
114
- ...mt({
115
- userConfig: jt.vue_ui_nested_donuts[l.theme] || S.config,
116
- defaultConfig: l
113
+ let s = {};
114
+ return a.theme ? s = {
115
+ ...wt({
116
+ userConfig: ta.vue_ui_nested_donuts[a.theme] || g.config,
117
+ defaultConfig: a
117
118
  }),
118
- customPalette: Zt[l.theme] || Fe
119
- } : l;
119
+ customPalette: ea[a.theme] || Ie
120
+ } : s = a, g.config && Fe(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Fe(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Fe(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
120
121
  }
121
122
  re(
122
- () => S.config,
123
- (l) => {
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;
123
+ () => g.config,
124
+ (a) => {
125
+ ye.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover, Ke(), Re.value += 1, Ue.value += 1, Ge.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show, c.value.width = e.value.style.chart.width, c.value.height = e.value.style.chart.height;
125
126
  },
126
127
  { deep: !0 }
127
128
  );
128
- const qe = L(() => {
129
- const { top: l, right: s, bottom: o, left: a } = e.value.style.chart.padding;
129
+ const He = C(() => {
130
+ const { top: a, right: s, bottom: l, left: o } = e.value.style.chart.padding;
130
131
  return {
131
- css: `padding:${l}px ${s}px ${o}px ${a}px`,
132
- top: l,
132
+ css: `padding:${a}px ${s}px ${l}px ${o}px`,
133
+ top: a,
133
134
  right: s,
134
- bottom: o,
135
- left: a
135
+ bottom: l,
136
+ left: o
136
137
  };
137
138
  });
138
- function Ot(l, s = 1e3, o = 50) {
139
- return new Promise((a) => {
140
- const t = l.length;
141
- E.value = Array(t).fill(0), Z.value = [];
139
+ function St(a, s = 1e3, l = 50) {
140
+ return new Promise((o) => {
141
+ const t = a.length;
142
+ B.value = Array(t).fill(0), Z.value = [];
142
143
  let u = 0;
143
- l.forEach((c, f) => {
144
+ a.forEach((v, f) => {
144
145
  setTimeout(() => {
145
- const m = performance.now();
146
+ const w = performance.now();
146
147
  function d(b) {
147
- const T = Math.min((b - m) / s, 1), xe = gt(T), _e = c * xe;
148
- E.value[f] = _e, E.value = [...E.value];
148
+ const N = Math.min((b - w) / s, 1), xe = mt(N), _e = v * xe;
149
+ B.value[f] = _e, B.value = [...B.value];
149
150
  const ue = [];
150
151
  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)),
152
+ g.dataset.forEach((ne, Te) => {
153
+ const Ut = De(ne.series.reduce(
154
+ (Oe, Se) => Oe + De(M(Se.values).reduce((Yt, Xt) => Yt + Xt, 0)),
154
155
  0
155
- )), Rt = Pe(E.value.slice(Ae, Ae + ne.series.length).reduce((Oe, Se) => Oe + Se, 0)), Ne = Et - Rt;
156
+ )), Gt = De(B.value.slice(Ae, Ae + ne.series.length).reduce((Oe, Se) => Oe + Se, 0)), Ne = Ut - Gt;
156
157
  Ne > Number.MIN_VALUE && ue.push({
157
158
  name: "__ghost__",
158
159
  arcOf: ne.name,
@@ -166,80 +167,80 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
166
167
  absoluteValues: [],
167
168
  ghost: !0
168
169
  }), Ae += ne.series.length;
169
- }), Z.value = ue, T < 1 ? requestAnimationFrame(d) : (u += 1, u === t && a());
170
+ }), Z.value = ue, N < 1 ? requestAnimationFrame(d) : (u += 1, u === t && o());
170
171
  }
171
172
  requestAnimationFrame(d);
172
- }, f * o);
173
+ }, f * l);
173
174
  });
174
175
  });
175
176
  }
176
- async function He() {
177
+ async function Je() {
177
178
  if (e.value.startAnimation?.show) {
178
- const s = R.value.flatMap((o) => o.series).map(
179
- (o) => M(o.values).reduce((a, t) => a + t, 0)
179
+ const s = R.value.flatMap((l) => l.series).map(
180
+ (l) => M(l.values).reduce((o, t) => o + t, 0)
180
181
  );
181
- E.value = s.map(() => 0), B.value = !0, Z.value = R.value.map((o, a) => {
182
- const t = o.series.reduce(
183
- (u, c) => u + M(c.values).reduce((f, m) => f + m, 0),
182
+ B.value = s.map(() => 0), E.value = !0, Z.value = R.value.map((l, o) => {
183
+ const t = l.series.reduce(
184
+ (u, v) => u + M(v.values).reduce((f, w) => f + w, 0),
184
185
  0
185
186
  );
186
187
  return {
187
188
  name: "__ghost__",
188
- arcOf: o.name,
189
- arcOfId: `${p.value}_${a}`,
190
- id: `ghost_${p.value}_${a}`,
189
+ arcOf: l.name,
190
+ arcOfId: `${p.value}_${o}`,
191
+ id: `ghost_${p.value}_${o}`,
191
192
  seriesIndex: -1,
192
- datasetIndex: a,
193
+ datasetIndex: o,
193
194
  color: "transparent",
194
195
  value: t,
195
196
  fullValue: t,
196
197
  absoluteValues: [],
197
198
  ghost: !0
198
199
  };
199
- }), await yt(), Ot(
200
+ }), await pt(), St(
200
201
  s,
201
202
  e.value.startAnimation.durationMs,
202
203
  e.value.startAnimation.staggerMs
203
204
  ).then(() => {
204
- B.value = !1, Z.value = [];
205
+ E.value = !1, Z.value = [];
205
206
  });
206
207
  } else
207
- B.value = !1;
208
+ E.value = !1;
208
209
  }
209
- Xt(async () => {
210
- Je(), await He();
210
+ qt(async () => {
211
+ Ke(), await Je();
211
212
  });
212
- const P = ct(null), X = ct(null), W = L(() => !!e.value.debug);
213
- function Je() {
214
- if (el(S.dataset) ? (K({
213
+ const P = ct(null), X = ct(null), W = C(() => !!e.value.debug);
214
+ function Ke() {
215
+ if (aa(g.dataset) ? (K({
215
216
  componentName: "VueUiNestedDonuts",
216
217
  type: "dataset",
217
218
  debug: W.value
218
219
  }), 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({
220
+ const a = da(() => {
221
+ const { width: s, height: l } = va({
221
222
  chart: V.value,
222
- title: e.value.style.chart.title.text ? ze.value : null,
223
+ title: e.value.style.chart.title.text ? Me.value : null,
223
224
  legend: e.value.style.chart.legend.show ? fe.value : null,
224
- source: Me.value,
225
+ source: Ee.value,
225
226
  noTitle: Be.value,
226
- padding: qe.value
227
+ padding: He.value
227
228
  });
228
229
  requestAnimationFrame(() => {
229
- v.value.width = s, v.value.height = o;
230
+ c.value.width = s, c.value.height = l;
230
231
  });
231
232
  });
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);
233
+ P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect()), P.value = new ResizeObserver(a), X.value = V.value.parentNode, P.value.observe(X.value);
233
234
  }
234
235
  }
235
- Wt(() => {
236
+ Ht(() => {
236
237
  P.value && (X.value && P.value.unobserve(X.value), P.value.disconnect());
237
238
  });
238
- const { isPrinting: Ke, isImaging: Qe, generatePdf: Ze, generateImage: je } = dl({
239
+ const { isPrinting: Qe, isImaging: Ze, generatePdf: je, generateImage: et } = ca({
239
240
  elementId: `nested_donuts_${p.value}`,
240
241
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
241
242
  options: e.value.userOptions.print
242
- }), St = L(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ft = L(() => tl(e.value.customPalette)), $ = h({
243
+ }), It = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ft = C(() => la(e.value.customPalette)), k = h({
243
244
  dataLabels: {
244
245
  show: e.value.style.chart.layout.labels.dataLabels.show
245
246
  },
@@ -247,7 +248,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
247
248
  showTooltip: e.value.style.chart.tooltip.show
248
249
  });
249
250
  re(e, () => {
250
- $.value = {
251
+ k.value = {
251
252
  dataLabels: {
252
253
  show: e.value.style.chart.layout.labels.dataLabels.show
253
254
  },
@@ -255,56 +256,56 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
255
256
  showTooltip: e.value.style.chart.tooltip.show
256
257
  };
257
258
  }, { immediate: !0 });
258
- const v = h({
259
+ const c = h({
259
260
  width: e.value.style.chart.width,
260
261
  height: e.value.style.chart.height
261
- }), et = kt;
262
- function It({ datapoint: l, index: s }) {
263
- et("selectDatapoint", { datapoint: l, index: s });
262
+ }), tt = Lt;
263
+ function Vt({ datapoint: a, index: s, seriesIndex: l }) {
264
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l }), tt("selectDatapoint", { datapoint: a, index: s });
264
265
  }
265
- function tt({
266
- from: l,
266
+ function at({
267
+ from: a,
267
268
  to: s,
268
- duration: o,
269
- onUpdate: a,
269
+ duration: l,
270
+ onUpdate: o,
270
271
  onDone: t,
271
- easing: u = gt
272
+ easing: u = mt
272
273
  }) {
273
- const c = performance.now();
274
- function f(m) {
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());
274
+ const v = performance.now();
275
+ function f(w) {
276
+ const d = Math.min((w - v) / l, 1), b = u(d), N = a + (s - a) * b;
277
+ o(N, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), t && t());
277
278
  }
278
279
  requestAnimationFrame(f);
279
280
  }
280
- const k = h([]), F = L(() => {
281
- ye.value, R.value.forEach((s, o) => {
281
+ const L = h([]), I = C(() => {
282
+ ye.value, R.value.forEach((s, l) => {
282
283
  [null, void 0].includes(s.name) && K({
283
284
  componentName: "VueUiNestedDonuts",
284
285
  type: "datasetSerieAttribute",
285
286
  property: "name",
286
- index: o,
287
+ index: l,
287
288
  debug: W.value
288
289
  }), [null, void 0].includes(s.series) ? K({
289
290
  componentName: "VueUiNestedDonuts",
290
291
  type: "datasetSerieAttribute",
291
292
  property: "series",
292
- index: o,
293
+ index: l,
293
294
  debug: W.value
294
295
  }) : s.series.length === 0 ? K({
295
296
  componentName: "VueUiNestedDonuts",
296
297
  type: "datasetAttributeEmpty",
297
- property: `series at index ${o}`,
298
+ property: `series at index ${l}`,
298
299
  debug: W.value
299
- }) : s.series.forEach((a, t) => {
300
- [null, void 0].includes(a.name) && K({
300
+ }) : s.series.forEach((o, t) => {
301
+ [null, void 0].includes(o.name) && K({
301
302
  componentName: "VueUiNestedDonuts",
302
303
  type: "datasetSerieAttribute",
303
304
  property: "name",
304
305
  index: t,
305
306
  key: "serie",
306
307
  debug: W.value
307
- }), [null, void 0].includes(a.values) && K({
308
+ }), [null, void 0].includes(o.values) && K({
308
309
  componentName: "VueUiNestedDonuts",
309
310
  type: "datasetSerieAttribute",
310
311
  property: "values",
@@ -314,138 +315,138 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
314
315
  });
315
316
  });
316
317
  });
317
- let l = 0;
318
- return R.value.map((s, o) => ({
318
+ let a = 0;
319
+ return R.value.map((s, l) => ({
319
320
  ...s,
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),
321
- datasetIndex: o,
322
- id: `${p.value}_${o}`,
323
- series: s.series.map((a, t) => {
324
- const u = M(a.values).reduce((c, f) => c + f, 0);
321
+ total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => M(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
322
+ datasetIndex: l,
323
+ id: `${p.value}_${l}`,
324
+ series: s.series.map((o, t) => {
325
+ const u = M(o.values).reduce((v, f) => v + f, 0);
325
326
  return {
326
- name: a.name,
327
+ name: o.name,
327
328
  arcOf: s.name,
328
- arcOfId: `${p.value}_${o}`,
329
- id: `${p.value}_${o}_${t}`,
329
+ arcOfId: `${p.value}_${l}`,
330
+ id: `${p.value}_${l}_${t}`,
330
331
  seriesIndex: t,
331
- datasetIndex: o,
332
- color: ll(a.color) || Ft.value[t] || Fe[t % Fe.length],
333
- value: B.value ? E.value[l++] ?? 0 : u,
334
- absoluteValues: a.values || []
332
+ datasetIndex: l,
333
+ color: oa(o.color) || Ft.value[t] || Ie[t % Ie.length],
334
+ value: E.value ? B.value[a++] ?? 0 : u,
335
+ absoluteValues: o.values || []
335
336
  };
336
337
  })
337
338
  }));
338
339
  });
339
- re(() => S.dataset, (l) => {
340
- Array.isArray(l) && l.length > 0 && (pe.value = !1);
340
+ re(() => g.dataset, (a) => {
341
+ Array.isArray(a) && a.length > 0 && (pe.value = !1);
341
342
  }, { 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);
343
+ const F = C(() => Math.min(c.value.height, c.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), lt = C(() => [...I.value].map((a, s) => {
344
+ const l = a.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
344
345
  return {
345
- ...l,
346
- total: o,
347
- series: l.series.filter((a) => !k.value.includes(a.id)).map((a) => ({
348
- ...a,
349
- proportion: a.value / o
346
+ ...a,
347
+ total: l,
348
+ series: a.series.filter((o) => !L.value.includes(o.id)).map((o) => ({
349
+ ...o,
350
+ proportion: o.value / l
350
351
  }))
351
352
  };
352
353
  }));
353
- function Vt(l, s, o) {
354
- let a = 0;
355
- for (let t = 0; t < l.length; t += 1)
356
- o.includes(l[t]) && (a += 1);
357
- return a < s;
354
+ function Pt(a, s, l) {
355
+ let o = 0;
356
+ for (let t = 0; t < a.length; t += 1)
357
+ l.includes(a[t]) && (o += 1);
358
+ return o < s;
358
359
  }
359
- const g = h(lt.value);
360
+ const m = h(lt.value);
360
361
  re(
361
362
  () => lt.value,
362
- (l) => g.value = l
363
+ (a) => m.value = a
363
364
  );
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),
365
+ function me(a) {
366
+ tt("selectLegend", a);
367
+ const s = g.dataset.flatMap(
368
+ (d, b) => d.series.map((N, xe) => ({
369
+ value: M(N.values).reduce((_e, ue) => _e + ue, 0),
369
370
  id: `${p.value}_${b}_${xe}`,
370
371
  arcOfId: `${p.value}_${b}`
371
372
  }))
372
- ).find((d) => d.id === l.id);
373
+ ).find((d) => d.id === a.id);
373
374
  if (!s) return;
374
- const o = F.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, a = g.value.flatMap((d) => d.series).find((d) => d.id === l.id);
375
- let u = a ? a.value : 0;
376
- const c = F.value.find(
375
+ const l = I.value.flatMap((d) => d.series).find((d) => d.id === a.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === a.id);
376
+ let u = o ? o.value : 0;
377
+ const v = I.value.find(
377
378
  (d) => d.id === s.arcOfId
378
379
  );
379
- if (!c) return;
380
- const f = c.series.map((d) => d.id), m = Vt(
380
+ if (!v) return;
381
+ const f = v.series.map((d) => d.id), w = Pt(
381
382
  f,
382
383
  f.length - 1,
383
- k.value
384
+ L.value
384
385
  );
385
- k.value.includes(l.id) ? (k.value = k.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? tt({
386
+ L.value.includes(a.id) ? (L.value = L.value.filter((d) => d !== a.id), e.value.serieToggleAnimation.show ? at({
386
387
  from: u,
387
- to: o,
388
+ to: l,
388
389
  duration: e.value.serieToggleAnimation.durationMs,
389
390
  onUpdate: (d) => {
390
- g.value = g.value.map((b) => ({
391
+ m.value = m.value.map((b) => ({
391
392
  ...b,
392
- series: b.series.map((T) => T.id === l.id ? { ...T, value: d } : T)
393
+ series: b.series.map((N) => N.id === a.id ? { ...N, value: d } : N)
393
394
  }));
394
395
  }
395
- }) : g.value = g.value.map((d) => ({
396
+ }) : m.value = m.value.map((d) => ({
396
397
  ...d,
397
- series: d.series.map((b) => b.id === l.id ? { ...b, value: o } : b)
398
- }))) : m && (e.value.serieToggleAnimation.show ? tt({
398
+ series: d.series.map((b) => b.id === a.id ? { ...b, value: l } : b)
399
+ }))) : w && (e.value.serieToggleAnimation.show ? at({
399
400
  from: u,
400
401
  to: 0,
401
402
  duration: e.value.serieToggleAnimation.durationMs,
402
403
  onUpdate: (d) => {
403
- g.value = g.value.map((b) => ({
404
+ m.value = m.value.map((b) => ({
404
405
  ...b,
405
- series: b.series.map((T) => T.id === l.id ? { ...T, value: d } : T)
406
+ series: b.series.map((N) => N.id === a.id ? { ...N, value: d } : N)
406
407
  }));
407
408
  },
408
409
  onDone: () => {
409
- k.value.push(l.id);
410
+ L.value.push(a.id);
410
411
  }
411
- }) : (g.value = g.value.map((d) => ({
412
+ }) : (m.value = m.value.map((d) => ({
412
413
  ...d,
413
- series: d.series.map((b) => b.id === l.id ? { ...b, value: 0 } : b)
414
- })), k.value.push(l.id)));
414
+ series: d.series.map((b) => b.id === a.id ? { ...b, value: 0 } : b)
415
+ })), L.value.push(a.id)));
415
416
  }
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) => ({
418
- ...m,
419
- value: m.value < 1e-11 ? Number.MIN_VALUE : m.value
420
- })), c = Ie(
417
+ const te = C(() => F.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio), ot = C(() => m.value.map((a, s) => F.value - s * F.value / I.value.length)), q = C(() => m.value.map((a, s) => {
418
+ const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = F.value - s * F.value / m.value.length, t = E.value ? Z.value.find((w) => w.datasetIndex === s) : null, u = [...a.series, ...t ? [t] : []].map((w) => ({
419
+ ...w,
420
+ value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
421
+ })), v = Ve(
421
422
  { series: [
422
423
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
423
424
  ] },
424
- v.value.width / 2,
425
- v.value.height / 2,
426
- a,
427
- a,
425
+ c.value.width / 2,
426
+ c.value.height / 2,
427
+ o,
428
+ o,
428
429
  1.99999,
429
430
  2,
430
431
  1,
431
432
  360,
432
433
  105.25,
433
434
  te.value
434
- ), f = `M ${v.value.width / 2},${v.value.height / 2 + a}
435
- a ${a},${a} 0 1,1 0,${-2 * a}
436
- a ${a},${a} 0 1,1 0,${2 * a}`;
435
+ ), f = `M ${c.value.width / 2},${c.value.height / 2 + o}
436
+ a ${o},${o} 0 1,1 0,${-2 * o}
437
+ a ${o},${o} 0 1,1 0,${2 * o}`;
437
438
  return {
438
- ...l,
439
- hasData: o,
440
- radius: a,
441
- skeleton: c,
439
+ ...a,
440
+ hasData: l,
441
+ radius: o,
442
+ skeleton: v,
442
443
  fullCirclePath: f,
443
- donut: Ie(
444
+ donut: Ve(
444
445
  { series: u },
445
- v.value.width / 2,
446
- v.value.height / 2,
447
- a,
448
- a,
446
+ c.value.width / 2,
447
+ c.value.height / 2,
448
+ o,
449
+ o,
449
450
  1.99999,
450
451
  2,
451
452
  1,
@@ -454,78 +455,81 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
454
455
  te.value
455
456
  )
456
457
  };
457
- })), ot = L(() => [...F.value].map((l, s) => {
458
- const o = s * I.value / F.value.length;
458
+ })), st = C(() => [...I.value].map((a, s) => {
459
+ const l = s * F.value / I.value.length;
459
460
  return {
460
- sizeRatio: o,
461
- donut: Ie(
461
+ sizeRatio: l,
462
+ donut: Ve(
462
463
  { series: [{ value: 1 }] },
463
- v.value.width / 2,
464
- v.value.height / 2,
465
- I.value - o,
466
- I.value - o,
464
+ c.value.width / 2,
465
+ c.value.height / 2,
466
+ F.value - l,
467
+ F.value - l,
467
468
  1.99999,
468
469
  2,
469
470
  1,
470
471
  360,
471
472
  105.25,
472
- I.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio
473
+ F.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio
473
474
  )[0]
474
475
  };
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 = {
478
- datapoint: l,
479
- seriesIndex: o,
480
- series: g.value,
476
+ })), ut = h(null), ae = h(null), le = h(null), we = h(null);
477
+ function Dt({ datapoint: a, seriesIndex: s }) {
478
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: s }), ve.value = !1, ut.value = null, he.value = null, ae.value = null, le.value = null;
479
+ }
480
+ function zt({ datapoint: a, _relativeIndex: s, seriesIndex: l }) {
481
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: l }), ut.value = a.arcOfId, ae.value = a.id, le.value = l, he.value = a.id, we.value = {
482
+ datapoint: a,
483
+ seriesIndex: l,
484
+ series: m.value,
481
485
  config: e.value
482
486
  };
483
- const a = e.value.style.chart.tooltip.customFormat;
484
- if (bt(a) && nl(
485
- () => a({
486
- seriesIndex: o,
487
- datapoint: l,
488
- series: g.value,
487
+ const o = e.value.style.chart.tooltip.customFormat;
488
+ if (gt(o) && ia(
489
+ () => o({
490
+ seriesIndex: l,
491
+ datapoint: a,
492
+ series: m.value,
489
493
  config: e.value
490
494
  })
491
495
  ))
492
- ve.value = a({
493
- seriesIndex: o,
494
- datapoint: l,
495
- series: g.value,
496
+ ce.value = o({
497
+ seriesIndex: l,
498
+ datapoint: a,
499
+ series: m.value,
496
500
  config: e.value
497
501
  });
498
502
  else {
499
503
  let t = "";
500
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && k.value.length === 0) {
501
- const u = g.value.map((c) => c.series.find((f) => f.seriesIndex === o));
502
- u.forEach((c, f) => {
503
- if (!c) return "";
504
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0) {
505
+ const u = m.value.map((v) => v.series.find((f) => f.seriesIndex === l));
506
+ u.forEach((v, f) => {
507
+ if (!v) return "";
504
508
  t += `
505
509
  <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}` : ""}">
506
510
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
507
511
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
508
- <circle cx="10" cy="10" r="10" fill="${c.color}"/>
512
+ <circle cx="10" cy="10" r="10" fill="${v.color}"/>
509
513
  </svg>
510
514
  <span>
511
- ${c.arcOf ?? ""} - ${c.name}
515
+ ${v.arcOf ?? ""} - ${v.name}
512
516
  </span>
513
517
  </div>
514
518
  <span>
515
519
  ${e.value.style.chart.tooltip.showValue ? `<b>${j(
516
520
  e.value.style.chart.layout.labels.dataLabels.formatter,
517
- l.value,
518
- N({
521
+ a.value,
522
+ O({
519
523
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
520
- v: l.value,
524
+ v: a.value,
521
525
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
522
526
  r: e.value.style.chart.tooltip.roundingValue
523
527
  }),
524
- { datapoint: l, seriesIndex: o }
528
+ { datapoint: a, seriesIndex: l }
525
529
  )}
526
530
  </b>` : ""}
527
- ${e.value.style.chart.tooltip.showPercentage ? `(${N({
528
- v: c.proportion * 100,
531
+ ${e.value.style.chart.tooltip.showPercentage ? `(${O({
532
+ v: v.proportion * 100,
529
533
  s: "%",
530
534
  r: e.value.style.chart.tooltip.roundingPercentage
531
535
  })})` : ""}
@@ -534,56 +538,56 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
534
538
  `;
535
539
  });
536
540
  } else
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(
541
+ t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.arcOf ?? ""} - ${a.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="${a.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${j(
538
542
  e.value.style.chart.layout.labels.dataLabels.formatter,
539
- l.value,
540
- N({
543
+ a.value,
544
+ O({
541
545
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
542
- v: l.value,
546
+ v: a.value,
543
547
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
544
548
  r: e.value.style.chart.tooltip.roundingValue
545
549
  }),
546
- { datapoint: l, seriesIndex: o }
547
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${N({
548
- v: l.proportion * 100,
550
+ { datapoint: a, seriesIndex: l }
551
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
552
+ v: a.proportion * 100,
549
553
  s: "%",
550
554
  r: e.value.style.chart.tooltip.roundingPercentage
551
- })})</span></div>` : t += `<b>${N({
552
- v: l.proportion * 100,
555
+ })})</span></div>` : t += `<b>${O({
556
+ v: a.proportion * 100,
553
557
  s: "%",
554
558
  r: e.value.style.chart.tooltip.roundingPercentage
555
559
  })}</b></div>`);
556
- ve.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
560
+ ce.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
557
561
  }
558
- ce.value = !0;
562
+ ve.value = !0;
559
563
  }
560
- function $e(l) {
561
- return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
564
+ function $e(a) {
565
+ return a.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
562
566
  }
563
- function ut(l, s) {
567
+ function nt(a, s) {
564
568
  if (!e.value.useBlurOnHover)
565
569
  return "";
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})`;
570
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
571
+ return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${p.value})`;
572
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
573
+ return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${p.value})`;
570
574
  }
571
- const ke = L(() => F.value.map((l, s) => {
572
- const o = l.series.filter(
573
- (t) => !k.value.includes(t.id)
574
- ), a = B.value ? o.map((t) => {
575
+ const ke = C(() => I.value.map((a, s) => {
576
+ const l = a.series.filter(
577
+ (t) => !L.value.includes(t.id)
578
+ ), o = E.value ? l.map((t) => {
575
579
  const u = R.value[s].series.findIndex(
576
- (c) => c.name === t.name
580
+ (v) => v.name === t.name
577
581
  );
578
582
  return M(
579
583
  R.value[s].series[u].values
580
- ).reduce((c, f) => c + f, 0);
581
- }).reduce((t, u) => t + u, 0) : o.map((t) => t.value).reduce((t, u) => t + u, 0);
582
- return l.series.map((t, u) => {
583
- const c = M(R.value[s].series[u].values).reduce(
584
- (m, d) => m + d,
584
+ ).reduce((v, f) => v + f, 0);
585
+ }).reduce((t, u) => t + u, 0) : l.map((t) => t.value).reduce((t, u) => t + u, 0);
586
+ return a.series.map((t, u) => {
587
+ const v = M(R.value[s].series[u].values).reduce(
588
+ (w, d) => w + d,
585
589
  0
586
- ), f = B.value ? c : t.value;
590
+ ), f = E.value ? v : t.value;
587
591
  return {
588
592
  name: t.name,
589
593
  color: t.color,
@@ -593,53 +597,53 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
593
597
  id: t.id,
594
598
  seriesIndex: u,
595
599
  datasetIndex: s,
596
- total: a,
597
- opacity: k.value.includes(t.id) ? 0.5 : 1,
600
+ total: o,
601
+ opacity: L.value.includes(t.id) ? 0.5 : 1,
598
602
  segregate: () => me(t),
599
- isSegregated: k.value.includes(t.id)
603
+ isSegregated: L.value.includes(t.id)
600
604
  };
601
605
  });
602
- })), Dt = L(() => ({
606
+ })), Mt = C(() => ({
603
607
  cy: "nested-donuts-legend",
604
608
  backgroundColor: e.value.style.chart.legend.backgroundColor,
605
609
  color: e.value.style.chart.legend.color,
606
610
  fontSize: e.value.style.chart.legend.fontSize,
607
611
  paddingBottom: 12,
608
612
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
609
- })), D = L(() => {
610
- const l = g.value.flatMap((o) => o.series.map((a) => ({
611
- name: `${o.name} - ${a.name}`,
612
- color: a.color,
613
- total: o.total
614
- }))), s = g.value.flatMap((o) => o.series.map((a) => a.value));
615
- return { head: l, body: s };
613
+ })), D = C(() => {
614
+ const a = m.value.flatMap((l) => l.series.map((o) => ({
615
+ name: `${l.name} - ${o.name}`,
616
+ color: o.color,
617
+ total: l.total
618
+ }))), s = m.value.flatMap((l) => l.series.map((o) => o.value));
619
+ return { head: a, body: s };
616
620
  });
617
- function nt(l = null) {
618
- yt(() => {
621
+ function rt(a = null) {
622
+ pt(() => {
619
623
  const s = D.value.head.map((t, u) => [
620
624
  [t.name],
621
625
  [D.value.body[u]],
622
626
  [
623
627
  isNaN(D.value.body[u] / t.total) ? "-" : D.value.body[u] / t.total * 100
624
628
  ]
625
- ]), o = [
629
+ ]), l = [
626
630
  [e.value.style.chart.title.text],
627
631
  [e.value.style.chart.title.subtitle.text],
628
632
  [[""], ["val"], ["%"]]
629
- ].concat(s), a = sl(o);
630
- l ? l(a) : ul({
631
- csvContent: a,
633
+ ].concat(s), o = na(l);
634
+ a ? a(o) : ra({
635
+ csvContent: o,
632
636
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
633
637
  });
634
638
  });
635
639
  }
636
- const oe = L(() => {
637
- const l = [
640
+ const oe = C(() => {
641
+ const a = [
638
642
  e.value.table.columnNames.series,
639
643
  e.value.table.columnNames.value,
640
644
  e.value.table.columnNames.percentage
641
645
  ], s = D.value.head.map((t, u) => {
642
- const c = N({
646
+ const v = O({
643
647
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
644
648
  v: D.value.body[u],
645
649
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -650,14 +654,14 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
650
654
  color: t.color,
651
655
  name: t.name
652
656
  },
653
- c,
654
- isNaN(D.value.body[u] / t.total) ? "-" : N({
657
+ v,
658
+ isNaN(D.value.body[u] / t.total) ? "-" : O({
655
659
  v: D.value.body[u] / t.total * 100,
656
660
  s: "%",
657
661
  r: e.value.table.td.roundingPercentage
658
662
  })
659
663
  ];
660
- }), o = {
664
+ }), l = {
661
665
  th: {
662
666
  backgroundColor: e.value.table.th.backgroundColor,
663
667
  color: e.value.table.th.color,
@@ -676,88 +680,88 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
676
680
  e.value.table.columnNames.value,
677
681
  e.value.table.columnNames.percentage
678
682
  ],
679
- head: l,
683
+ head: a,
680
684
  body: s,
681
- config: o
685
+ config: l
682
686
  };
683
687
  });
684
- function zt() {
685
- return F.value;
686
- }
687
- function rt() {
688
- $.value.showTable = !$.value.showTable;
688
+ function Et() {
689
+ return I.value;
689
690
  }
690
691
  function it() {
691
- $.value.dataLabels.show = !$.value.dataLabels.show;
692
+ k.value.showTable = !k.value.showTable;
692
693
  }
693
694
  function dt() {
694
- $.value.showTooltip = !$.value.showTooltip;
695
+ k.value.dataLabels.show = !k.value.dataLabels.show;
696
+ }
697
+ function vt() {
698
+ k.value.showTooltip = !k.value.showTooltip;
695
699
  }
696
700
  const se = h(!1);
697
701
  function Le() {
698
702
  se.value = !se.value;
699
703
  }
700
- async function Mt({ scale: l = 2 } = {}) {
704
+ async function Bt({ scale: a = 2 } = {}) {
701
705
  if (!V.value) return;
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 });
706
+ const { width: s, height: l } = V.value.getBoundingClientRect(), o = s / l, { imageUri: t, base64: u } = await ba({ domElement: V.value, base64: !0, img: !0, scale: a });
703
707
  return {
704
708
  imageUri: t,
705
709
  base64: u,
706
710
  title: e.value.style.chart.title.text,
707
711
  width: s,
708
- height: o,
709
- aspectRatio: a
712
+ height: l,
713
+ aspectRatio: o
710
714
  };
711
715
  }
712
716
  const Ce = h(null);
713
- function Bt() {
717
+ function Rt() {
714
718
  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)}`);
719
+ const { x: a, y: s, width: l, height: o } = Ce.value.getBBox();
720
+ ee.value && ee.value.setAttribute("viewBox", `${a} ${s} ${l + Math.min(0, a)} ${o + Math.min(0, s)}`);
717
721
  }
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,
722
+ return kt({
723
+ autoSize: Rt,
724
+ getData: Et,
725
+ getImage: Bt,
726
+ generatePdf: je,
727
+ generateCsv: rt,
728
+ generateImage: et,
729
+ toggleTable: it,
730
+ toggleLabels: dt,
731
+ toggleTooltip: vt,
728
732
  toggleAnnotator: Le,
729
- toggleFullscreen: Ge
730
- }), (l, s) => (n(), r("div", {
733
+ toggleFullscreen: Ye
734
+ }), (a, s) => (n(), r("div", {
731
735
  ref_key: "nestedDonutsChart",
732
736
  ref: V,
733
737
  class: z(`vue-ui-nested-donuts ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
734
738
  style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
735
739
  id: `nested_donuts_${p.value}`,
736
- onMouseenter: s[3] || (s[3] = () => i(Xe)(!0)),
737
- onMouseleave: s[4] || (s[4] = () => i(Xe)(!1))
740
+ onMouseenter: s[2] || (s[2] = () => i(We)(!0)),
741
+ onMouseleave: s[3] || (s[3] = () => i(We)(!1))
738
742
  }, [
739
- e.value.userOptions.buttons.annotator ? (n(), G(i(_t), {
743
+ e.value.userOptions.buttons.annotator ? (n(), G(i(At), {
740
744
  key: 0,
741
745
  svgRef: i(ee),
742
746
  backgroundColor: e.value.style.chart.backgroundColor,
743
747
  color: e.value.style.chart.color,
744
748
  active: se.value,
745
749
  onClose: Le
746
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : w("", !0),
747
- St.value ? (n(), r("div", {
750
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
751
+ It.value ? (n(), r("div", {
748
752
  key: 1,
749
753
  ref_key: "noTitle",
750
754
  ref: Be,
751
755
  class: "vue-data-ui-no-title-space",
752
756
  style: "height:36px; width: 100%;background:transparent"
753
- }, null, 512)) : w("", !0),
757
+ }, null, 512)) : $("", !0),
754
758
  e.value.style.chart.title.text ? (n(), r("div", {
755
759
  key: 2,
756
760
  ref_key: "chartTitle",
757
- ref: ze
761
+ ref: Me
758
762
  }, [
759
- (n(), G(hl, {
760
- key: `title_${Ee.value}`,
763
+ (n(), G(ya, {
764
+ key: `title_${Re.value}`,
761
765
  config: {
762
766
  title: {
763
767
  cy: "donut-div-title",
@@ -769,14 +773,14 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
769
773
  }
770
774
  }
771
775
  }, null, 8, ["config"]))
772
- ], 512)) : w("", !0),
773
- e.value.userOptions.show && de.value && (i(We) || i(be)) ? (n(), G(i(Tt), {
776
+ ], 512)) : $("", !0),
777
+ e.value.userOptions.show && de.value && (i(qe) || i(be)) ? (n(), G(i(Nt), {
774
778
  ref: "details",
775
- key: `user_option_${De.value}`,
779
+ key: `user_option_${ze.value}`,
776
780
  backgroundColor: e.value.style.chart.backgroundColor,
777
781
  color: e.value.style.chart.color,
778
- isPrinting: i(Ke),
779
- isImaging: i(Qe),
782
+ isPrinting: i(Qe),
783
+ isImaging: i(Ze),
780
784
  uid: p.value,
781
785
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
782
786
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -786,7 +790,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
786
790
  hasLabel: e.value.userOptions.buttons.labels,
787
791
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
788
792
  isFullscreen: Y.value,
789
- isTooltip: $.value.showTooltip,
793
+ isTooltip: k.value.showTooltip,
790
794
  titles: { ...e.value.userOptions.buttonTitles },
791
795
  chartElement: V.value,
792
796
  position: e.value.userOptions.position,
@@ -794,137 +798,137 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
794
798
  isAnnotation: se.value,
795
799
  callbacks: e.value.userOptions.callbacks,
796
800
  printScale: e.value.userOptions.print.scale,
797
- onToggleFullscreen: Ge,
798
- onGeneratePdf: i(Ze),
799
- onGenerateCsv: nt,
800
- onGenerateImage: i(je),
801
- onToggleTable: rt,
802
- onToggleLabels: it,
803
- onToggleTooltip: dt,
801
+ onToggleFullscreen: Ye,
802
+ onGeneratePdf: i(je),
803
+ onGenerateCsv: rt,
804
+ onGenerateImage: i(et),
805
+ onToggleTable: it,
806
+ onToggleLabels: dt,
807
+ onToggleTooltip: vt,
804
808
  onToggleAnnotator: Le,
805
809
  style: ie({
806
- visibility: i(We) ? i(be) ? "visible" : "hidden" : "visible"
810
+ visibility: i(qe) ? i(be) ? "visible" : "hidden" : "visible"
807
811
  })
808
- }, qt({ _: 2 }, [
809
- l.$slots.menuIcon ? {
812
+ }, Jt({ _: 2 }, [
813
+ a.$slots.menuIcon ? {
810
814
  name: "menuIcon",
811
- fn: C(({ isOpen: o, color: a }) => [
812
- x(l.$slots, "menuIcon", H(J({ isOpen: o, color: a })), void 0, !0)
815
+ fn: x(({ isOpen: l, color: o }) => [
816
+ _(a.$slots, "menuIcon", H(J({ isOpen: l, color: o })), void 0, !0)
813
817
  ]),
814
818
  key: "0"
815
819
  } : void 0,
816
- l.$slots.optionTooltip ? {
820
+ a.$slots.optionTooltip ? {
817
821
  name: "optionTooltip",
818
- fn: C(() => [
819
- x(l.$slots, "optionTooltip", {}, void 0, !0)
822
+ fn: x(() => [
823
+ _(a.$slots, "optionTooltip", {}, void 0, !0)
820
824
  ]),
821
825
  key: "1"
822
826
  } : void 0,
823
- l.$slots.optionPdf ? {
827
+ a.$slots.optionPdf ? {
824
828
  name: "optionPdf",
825
- fn: C(() => [
826
- x(l.$slots, "optionPdf", {}, void 0, !0)
829
+ fn: x(() => [
830
+ _(a.$slots, "optionPdf", {}, void 0, !0)
827
831
  ]),
828
832
  key: "2"
829
833
  } : void 0,
830
- l.$slots.optionCsv ? {
834
+ a.$slots.optionCsv ? {
831
835
  name: "optionCsv",
832
- fn: C(() => [
833
- x(l.$slots, "optionCsv", {}, void 0, !0)
836
+ fn: x(() => [
837
+ _(a.$slots, "optionCsv", {}, void 0, !0)
834
838
  ]),
835
839
  key: "3"
836
840
  } : void 0,
837
- l.$slots.optionImg ? {
841
+ a.$slots.optionImg ? {
838
842
  name: "optionImg",
839
- fn: C(() => [
840
- x(l.$slots, "optionImg", {}, void 0, !0)
843
+ fn: x(() => [
844
+ _(a.$slots, "optionImg", {}, void 0, !0)
841
845
  ]),
842
846
  key: "4"
843
847
  } : void 0,
844
- l.$slots.optionTable ? {
848
+ a.$slots.optionTable ? {
845
849
  name: "optionTable",
846
- fn: C(() => [
847
- x(l.$slots, "optionTable", {}, void 0, !0)
850
+ fn: x(() => [
851
+ _(a.$slots, "optionTable", {}, void 0, !0)
848
852
  ]),
849
853
  key: "5"
850
854
  } : void 0,
851
- l.$slots.optionLabels ? {
855
+ a.$slots.optionLabels ? {
852
856
  name: "optionLabels",
853
- fn: C(() => [
854
- x(l.$slots, "optionLabels", {}, void 0, !0)
857
+ fn: x(() => [
858
+ _(a.$slots, "optionLabels", {}, void 0, !0)
855
859
  ]),
856
860
  key: "6"
857
861
  } : void 0,
858
- l.$slots.optionFullscreen ? {
862
+ a.$slots.optionFullscreen ? {
859
863
  name: "optionFullscreen",
860
- fn: C(({ toggleFullscreen: o, isFullscreen: a }) => [
861
- x(l.$slots, "optionFullscreen", H(J({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
864
+ fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
865
+ _(a.$slots, "optionFullscreen", H(J({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
862
866
  ]),
863
867
  key: "7"
864
868
  } : void 0,
865
- l.$slots.optionAnnotator ? {
869
+ a.$slots.optionAnnotator ? {
866
870
  name: "optionAnnotator",
867
- fn: C(({ toggleAnnotator: o, isAnnotator: a }) => [
868
- x(l.$slots, "optionAnnotator", H(J({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
871
+ fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
872
+ _(a.$slots, "optionAnnotator", H(J({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
869
873
  ]),
870
874
  key: "8"
871
875
  } : void 0
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),
876
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : $("", !0),
873
877
  (n(), r("svg", {
874
878
  ref_key: "svgRef",
875
879
  ref: ee,
876
- xmlns: i(al),
880
+ xmlns: i(sa),
877
881
  class: z({
878
882
  "vue-data-ui-fullscreen--on": Y.value,
879
883
  "vue-data-ui-fulscreen--off": !Y.value,
880
884
  "vue-data-ui-svg": !0
881
885
  }),
882
- viewBox: `0 0 ${v.value.width <= 0 ? 1e-3 : v.value.width} ${v.value.height < 0 ? 1e-3 : v.value.height}`,
883
- style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${qe.value.css}`)
886
+ viewBox: `0 0 ${c.value.width <= 0 ? 1e-3 : c.value.width} ${c.value.height < 0 ? 1e-3 : c.value.height}`,
887
+ style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${He.value.css}`)
884
888
  }, [
885
889
  y("g", {
886
890
  ref_key: "G",
887
891
  ref: Ce,
888
892
  class: "vue-data-ui-g"
889
893
  }, [
890
- vt(i(xt)),
891
- l.$slots["chart-background"] ? (n(), r("foreignObject", {
894
+ ht(i(_t)),
895
+ a.$slots["chart-background"] ? (n(), r("foreignObject", {
892
896
  key: 0,
893
897
  x: 0,
894
898
  y: 0,
895
- width: v.value.width <= 0 ? 1e-3 : v.value.width,
896
- height: v.value.height < 0 ? 1e-3 : v.value.height,
899
+ width: c.value.width <= 0 ? 1e-3 : c.value.width,
900
+ height: c.value.height < 0 ? 1e-3 : c.value.height,
897
901
  style: {
898
902
  pointerEvents: "none"
899
903
  }
900
904
  }, [
901
- x(l.$slots, "chart-background", {}, void 0, !0)
902
- ], 8, $l)) : w("", !0),
905
+ _(a.$slots, "chart-background", {}, void 0, !0)
906
+ ], 8, La)) : $("", !0),
903
907
  y("defs", null, [
904
- (n(!0), r(_, null, A(ot.value, (o, a) => (n(), r("radialGradient", {
905
- id: `radial_${p.value}_${a}`
908
+ (n(!0), r(A, null, T(st.value, (l, o) => (n(), r("radialGradient", {
909
+ id: `radial_${p.value}_${o}`
906
910
  }, [
907
- s[5] || (s[5] = y("stop", {
911
+ s[4] || (s[4] = y("stop", {
908
912
  offset: "0%",
909
913
  "stop-color": "#FFFFFF",
910
914
  "stop-opacity": "0"
911
915
  }, null, -1)),
912
916
  y("stop", {
913
- offset: `${(1 - te.value / at.value[a]) * 100}%`,
914
- "stop-color": i(ol)("#FFFFFF", 0),
917
+ offset: `${(1 - te.value / ot.value[o]) * 100}%`,
918
+ "stop-color": i(ua)("#FFFFFF", 0),
915
919
  "stop-opacity": "0"
916
- }, null, 8, Ll),
920
+ }, null, 8, xa),
917
921
  y("stop", {
918
- offset: `${(1 - te.value / at.value[a] / 2) * 100}%`,
922
+ offset: `${(1 - te.value / ot.value[o] / 2) * 100}%`,
919
923
  "stop-color": "#FFFFFF",
920
924
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
921
- }, null, 8, Cl),
922
- s[6] || (s[6] = y("stop", {
925
+ }, null, 8, _a),
926
+ s[5] || (s[5] = y("stop", {
923
927
  offset: "100%",
924
928
  "stop-color": "#FFFFFF",
925
929
  "stop-opacity": "0"
926
930
  }, null, -1))
927
- ], 8, kl))), 256))
931
+ ], 8, Ca))), 256))
928
932
  ]),
929
933
  y("defs", null, [
930
934
  y("filter", {
@@ -938,12 +942,12 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
938
942
  in: "SourceGraphic",
939
943
  stdDeviation: 2,
940
944
  id: `blur_std_${p.value}`
941
- }, null, 8, _l),
942
- s[7] || (s[7] = y("feColorMatrix", {
945
+ }, null, 8, Ta),
946
+ s[6] || (s[6] = y("feColorMatrix", {
943
947
  type: "saturate",
944
948
  values: "0"
945
949
  }, null, -1))
946
- ], 8, xl),
950
+ ], 8, Aa),
947
951
  y("filter", {
948
952
  id: `shadow_${p.value}`,
949
953
  "color-interpolation-filters": "sRGB"
@@ -954,51 +958,51 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
954
958
  stdDeviation: "10",
955
959
  "flood-opacity": "0.5",
956
960
  "flood-color": e.value.style.chart.layout.donut.shadowColor
957
- }, null, 8, Tl)
958
- ], 8, Al)
961
+ }, null, 8, Oa)
962
+ ], 8, Na)
959
963
  ]),
960
964
  y("defs", null, [
961
- (n(!0), r(_, null, A(q.value, (o, a) => (n(), r("path", {
962
- key: `path-full-${a}`,
963
- id: `path-full-${a}-${p.value}`,
964
- d: o.fullCirclePath,
965
+ (n(!0), r(A, null, T(q.value, (l, o) => (n(), r("path", {
966
+ key: `path-full-${o}`,
967
+ id: `path-full-${o}-${p.value}`,
968
+ d: l.fullCirclePath,
965
969
  fill: "none"
966
- }, null, 8, Nl))), 128))
970
+ }, null, 8, Sa))), 128))
967
971
  ]),
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, [
972
+ (n(!0), r(A, null, T(q.value, (l, o) => (n(), r("g", null, [
973
+ l.hasData ? (n(!0), r(A, { key: 0 }, T(l.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
970
974
  y("path", {
971
975
  class: "vue-ui-donut-arc-path",
972
976
  d: t.arcSlice,
973
977
  fill: t.color,
974
978
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
975
979
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
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, [
980
+ filter: nt(t, u)
981
+ }, null, 8, Ia)
982
+ ]))), 256)) : (n(!0), r(A, { key: 1 }, T(l.skeleton, (t, u) => (n(), r("g", null, [
979
983
  y("path", {
980
984
  class: "vue-ui-donut-arc-path",
981
985
  d: t.arcSlice,
982
986
  fill: t.color,
983
987
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
984
988
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
985
- }, null, 8, Sl)
989
+ }, null, 8, Fa)
986
990
  ]))), 256))
987
991
  ]))), 256)),
988
- e.value.style.chart.useGradient ? (n(), r("g", Fl, [
989
- (n(!0), r(_, null, A(ot.value, (o, a) => (n(), r("g", null, [
992
+ e.value.style.chart.useGradient ? (n(), r("g", Va, [
993
+ (n(!0), r(A, null, T(st.value, (l, o) => (n(), r("g", null, [
990
994
  y("path", {
991
- d: o.donut.arcSlice,
992
- fill: `url(#radial_${p.value}_${a})`,
995
+ d: l.donut.arcSlice,
996
+ fill: `url(#radial_${p.value}_${o})`,
993
997
  stroke: "transparent",
994
998
  "stroke-width": "0"
995
- }, null, 8, Il)
999
+ }, null, 8, Pa)
996
1000
  ]))), 256))
997
- ])) : w("", !0),
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, [
1001
- u === 0 && v.value.width && v.value.height ? (n(), r("text", {
1001
+ ])) : $("", !0),
1002
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", Da, [
1003
+ e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (n(!0), r(A, { key: 0 }, T(q.value, (l, o) => (n(), r("g", null, [
1004
+ (n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
1005
+ u === 0 && c.value.width && c.value.height ? (n(), r("text", {
1002
1006
  key: 0,
1003
1007
  class: z({ animated: e.value.useCssAnimation }),
1004
1008
  "text-anchor": "middle",
@@ -1008,42 +1012,42 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1008
1012
  dy: e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
1009
1013
  }, [
1010
1014
  y("textPath", {
1011
- href: `#path-full-${a}-${p.value}`,
1015
+ href: `#path-full-${o}-${p.value}`,
1012
1016
  startOffset: "50%",
1013
1017
  "text-anchor": "middle",
1014
1018
  method: "align",
1015
1019
  spacing: "auto",
1016
1020
  side: "right"
1017
- }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(pt)({
1018
- source: o.name,
1021
+ }, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
1022
+ source: l.name,
1019
1023
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1020
- }) : o.name), 9, Dl)
1021
- ], 10, Pl)) : w("", !0)
1024
+ }) : l.name), 9, Ma)
1025
+ ], 10, za)) : $("", !0)
1022
1026
  ]))), 256))
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, [
1025
- u === 0 && v.value.width && v.value.height ? (n(), r("text", {
1027
+ ]))), 256)) : (n(!0), r(A, { key: 1 }, T(q.value, (l, o) => (n(), r("g", null, [
1028
+ (n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
1029
+ u === 0 && c.value.width && c.value.height ? (n(), r("text", {
1026
1030
  key: 0,
1027
1031
  class: z({ animated: e.value.useCssAnimation }),
1028
- x: v.value.width / 2,
1032
+ x: c.value.width / 2,
1029
1033
  y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1030
1034
  "text-anchor": "middle",
1031
1035
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1032
1036
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1033
1037
  fill: e.value.style.chart.layout.labels.dataLabels.color
1034
- }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(pt)({
1035
- source: o.name,
1038
+ }, S(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(bt)({
1039
+ source: l.name,
1036
1040
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1037
- }) : o.name), 11, zl)) : w("", !0)
1041
+ }) : l.name), 11, Ea)) : $("", !0)
1038
1042
  ]))), 256))
1039
1043
  ]))), 256))
1040
- ])) : w("", !0),
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)
1044
+ ])) : $("", !0),
1045
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", Ba, [
1046
+ (n(!0), r(A, null, T(q.value, (l, o) => (n(), r("g", null, [
1047
+ (n(!0), r(A, null, T(l.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", {
1048
+ filter: nt(t, u)
1045
1049
  }, [
1046
- ht(y("text", {
1050
+ ft(y("text", {
1047
1051
  class: z({ animated: e.value.useCssAnimation }),
1048
1052
  opacity: $e(t) ? 1 : 0,
1049
1053
  "text-anchor": i(Q)(t, !0).anchor,
@@ -1052,7 +1056,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1052
1056
  !1,
1053
1057
  e.value.style.chart.layout.labels.dataLabels.offsetX
1054
1058
  ).x || 0,
1055
- y: i(Ve)(
1059
+ y: i(Pe)(
1056
1060
  t,
1057
1061
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1058
1062
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1060,17 +1064,17 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1060
1064
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1061
1065
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1062
1066
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1063
- }, O(i(N)({
1067
+ }, S(i(O)({
1064
1068
  v: t.proportion * 100,
1065
1069
  s: "%",
1066
1070
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1067
- })), 11, El), [
1071
+ })), 11, Ua), [
1068
1072
  [
1069
- ft,
1070
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1073
+ yt,
1074
+ k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1071
1075
  ]
1072
1076
  ]),
1073
- ht(y("text", {
1077
+ ft(y("text", {
1074
1078
  class: z({ animated: e.value.useCssAnimation }),
1075
1079
  opacity: $e(t) ? 1 : 0,
1076
1080
  "text-anchor": i(Q)(t, !0).anchor,
@@ -1079,7 +1083,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1079
1083
  !1,
1080
1084
  e.value.style.chart.layout.labels.dataLabels.offsetX
1081
1085
  ).x || 0,
1082
- y: i(Ve)(
1086
+ y: i(Pe)(
1083
1087
  t,
1084
1088
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1085
1089
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1087,23 +1091,23 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1087
1091
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1088
1092
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1089
1093
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1090
- }, " (" + O(i(j)(
1094
+ }, " (" + S(i(j)(
1091
1095
  e.value.style.chart.layout.labels.dataLabels.formatter,
1092
1096
  t.value,
1093
- i(N)({
1097
+ i(O)({
1094
1098
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1095
1099
  v: t.value,
1096
1100
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1097
1101
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1098
1102
  }),
1099
- { datapoint: t, seriesIndex: a, datapointIndex: u }
1100
- )) + ") ", 11, Rl), [
1103
+ { datapoint: t, seriesIndex: o, datapointIndex: u }
1104
+ )) + ") ", 11, Ga), [
1101
1105
  [
1102
- ft,
1103
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1106
+ yt,
1107
+ k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1104
1108
  ]
1105
1109
  ]),
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", {
1110
+ $e(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
1107
1111
  key: 0,
1108
1112
  class: z({ animated: e.value.useCssAnimation }),
1109
1113
  "text-anchor": i(Q)(t, !0).anchor,
@@ -1112,7 +1116,7 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1112
1116
  !1,
1113
1117
  e.value.style.chart.layout.labels.dataLabels.offsetX
1114
1118
  ).x || 0,
1115
- y: i(Ve)(
1119
+ y: i(Pe)(
1116
1120
  t,
1117
1121
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1118
1122
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1120,44 +1124,42 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1120
1124
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1121
1125
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1122
1126
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1123
- }, O(i(j)(
1127
+ }, S(i(j)(
1124
1128
  e.value.style.chart.layout.labels.dataLabels.formatter,
1125
1129
  t.value,
1126
- i(N)({
1130
+ i(O)({
1127
1131
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1128
1132
  v: t.value,
1129
1133
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1130
1134
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1131
1135
  }),
1132
- { datapoint: t, seriesIndex: a, datapointIndex: u }
1133
- )), 11, Ul)) : w("", !0)
1134
- ], 8, Bl))), 256))
1136
+ { datapoint: t, seriesIndex: o, datapointIndex: u }
1137
+ )), 11, Ya)) : $("", !0)
1138
+ ], 8, Ra))), 256))
1135
1139
  ]))), 256))
1136
- ])) : w("", !0),
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, [
1140
+ ])) : $("", !0),
1141
+ (n(!0), r(A, null, T(q.value, (l, o) => (n(), r("g", null, [
1142
+ (n(!0), r(A, null, T(l.donut, (t, u) => (n(), r("g", null, [
1139
1143
  y("path", {
1140
1144
  d: t.arcSlice,
1141
1145
  fill: he.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1142
- onMouseenter: (c) => Pt({
1146
+ onMouseenter: (v) => zt({
1143
1147
  datapoint: t,
1144
1148
  seriesIndex: t.seriesIndex
1145
1149
  }),
1146
- onClick: (c) => It({ datapoint: t, index: u }),
1147
- onMouseleave: s[0] || (s[0] = (c) => {
1148
- ce.value = !1, st.value = null, le.value = null, ae.value = null, he.value = null;
1149
- })
1150
- }, null, 40, Gl)
1150
+ onClick: (v) => Vt({ datapoint: t, index: u, seriesIndex: t.seriesIndex }),
1151
+ onMouseleave: (v) => Dt({ datapoint: t, seriesIndex: t.seriesIndex })
1152
+ }, null, 40, Xa)
1151
1153
  ]))), 256))
1152
1154
  ]))), 256)),
1153
- x(l.$slots, "svg", { svg: v.value }, void 0, !0)
1155
+ _(a.$slots, "svg", { svg: c.value }, void 0, !0)
1154
1156
  ], 512)
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)
1158
- ])) : w("", !0),
1159
- vt(i(At), {
1160
- show: $.value.showTooltip && ce.value,
1157
+ ], 14, ka)),
1158
+ a.$slots.watermark ? (n(), r("div", Wa, [
1159
+ _(a.$slots, "watermark", H(J({ isPrinting: i(Qe) || i(Ze) })), void 0, !0)
1160
+ ])) : $("", !0),
1161
+ ht(i(Tt), {
1162
+ show: k.value.showTooltip && ve.value,
1161
1163
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1162
1164
  color: e.value.style.chart.tooltip.color,
1163
1165
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1168,15 +1170,15 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1168
1170
  position: e.value.style.chart.tooltip.position,
1169
1171
  offsetY: e.value.style.chart.tooltip.offsetY,
1170
1172
  parent: V.value,
1171
- content: ve.value,
1173
+ content: ce.value,
1172
1174
  isFullscreen: Y.value,
1173
- isCustom: i(bt)(e.value.style.chart.tooltip.customFormat)
1175
+ isCustom: i(gt)(e.value.style.chart.tooltip.customFormat)
1174
1176
  }, {
1175
- "tooltip-before": C(() => [
1176
- x(l.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
1177
+ "tooltip-before": x(() => [
1178
+ _(a.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
1177
1179
  ]),
1178
- "tooltip-after": C(() => [
1179
- x(l.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
1180
+ "tooltip-after": x(() => [
1181
+ _(a.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
1180
1182
  ]),
1181
1183
  _: 3
1182
1184
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -1186,58 +1188,58 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1186
1188
  ref: fe,
1187
1189
  class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
1188
1190
  }, [
1189
- (n(!0), r(_, null, A(ke.value, (o, a) => (n(), G(fl, {
1190
- key: `legend_${a}_${Ue.value}`,
1191
- legendSet: o,
1192
- config: Dt.value,
1193
- onClickMarker: s[1] || (s[1] = ({ legend: t }) => me(t))
1191
+ (n(!0), r(A, null, T(ke.value, (l, o) => (n(), G(pa, {
1192
+ key: `legend_${o}_${Ge.value}`,
1193
+ legendSet: l,
1194
+ config: Mt.value,
1195
+ onClickMarker: s[0] || (s[0] = ({ legend: t }) => me(t))
1194
1196
  }, {
1195
- legendTitle: C(({ titleSet: t }) => [
1196
- t[0] && t[0].arcOf ? (n(), r("div", Xl, O(t[0].arcOf), 1)) : w("", !0)
1197
+ legendTitle: x(({ titleSet: t }) => [
1198
+ t[0] && t[0].arcOf ? (n(), r("div", qa, S(t[0].arcOf), 1)) : $("", !0)
1197
1199
  ]),
1198
- item: C(({ legend: t, index: u }) => [
1200
+ item: x(({ legend: t, index: u }) => [
1199
1201
  y("div", {
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)(
1202
+ onClick: (v) => me(t),
1203
+ style: ie(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1204
+ }, S(t.name) + S(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + S(e.value.style.chart.legend.showValue ? i(j)(
1203
1205
  e.value.style.chart.layout.labels.dataLabels.formatter,
1204
1206
  t.value,
1205
- i(N)({
1207
+ i(O)({
1206
1208
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1207
1209
  v: t.value,
1208
1210
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1209
1211
  r: e.value.style.chart.legend.roundingValue
1210
1212
  }),
1211
1213
  { datapoint: t, seriesIndex: u }
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)({
1214
+ ) : "") + " " + S(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(O)({
1213
1215
  v: t.value / t.total * 100,
1214
1216
  s: "%",
1215
1217
  r: e.value.style.chart.legend.roundingPercentage
1216
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Wl)
1218
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ha)
1217
1219
  ]),
1218
1220
  _: 2
1219
1221
  }, 1032, ["legendSet", "config"]))), 128))
1220
- ], 2)) : w("", !0),
1221
- e.value.style.chart.legend.show ? w("", !0) : (n(), r("div", {
1222
+ ], 2)) : $("", !0),
1223
+ e.value.style.chart.legend.show ? $("", !0) : (n(), r("div", {
1222
1224
  key: 6,
1223
1225
  ref_key: "chartLegend",
1224
1226
  ref: fe
1225
1227
  }, [
1226
- x(l.$slots, "legend", { legend: ke.value }, void 0, !0)
1228
+ _(a.$slots, "legend", { legend: ke.value }, void 0, !0)
1227
1229
  ], 512)),
1228
- l.$slots.source ? (n(), r("div", {
1230
+ a.$slots.source ? (n(), r("div", {
1229
1231
  key: 7,
1230
1232
  ref_key: "source",
1231
- ref: Me,
1233
+ ref: Ee,
1232
1234
  dir: "auto"
1233
1235
  }, [
1234
- x(l.$slots, "source", {}, void 0, !0)
1235
- ], 512)) : w("", !0),
1236
- de.value ? (n(), G(i(Lt), {
1236
+ _(a.$slots, "source", {}, void 0, !0)
1237
+ ], 512)) : $("", !0),
1238
+ de.value ? (n(), G(i(Ct), {
1237
1239
  key: 8,
1238
1240
  hideDetails: "",
1239
1241
  config: {
1240
- open: $.value.showTable,
1242
+ open: k.value.showTable,
1241
1243
  maxHeight: 1e4,
1242
1244
  body: {
1243
1245
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -1249,34 +1251,34 @@ const ml = ["id"], wl = ["xmlns", "viewBox"], $l = ["width", "height"], kl = ["i
1249
1251
  }
1250
1252
  }
1251
1253
  }, {
1252
- content: C(() => [
1253
- (n(), G(i(Ct), {
1254
- key: `table_${Re.value}`,
1254
+ content: x(() => [
1255
+ (n(), G(i(xt), {
1256
+ key: `table_${Ue.value}`,
1255
1257
  colNames: oe.value.colNames,
1256
1258
  head: oe.value.head,
1257
1259
  body: oe.value.body,
1258
1260
  config: oe.value.config,
1259
1261
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1260
- onClose: s[2] || (s[2] = (o) => $.value.showTable = !1)
1262
+ onClose: s[1] || (s[1] = (l) => k.value.showTable = !1)
1261
1263
  }, {
1262
- th: C(({ th: o }) => [
1264
+ th: x(({ th: l }) => [
1263
1265
  y("div", {
1264
- innerHTML: o,
1266
+ innerHTML: l,
1265
1267
  style: { display: "flex", "align-items": "center" }
1266
- }, null, 8, ql)
1268
+ }, null, 8, Ja)
1267
1269
  ]),
1268
- td: C(({ td: o }) => [
1269
- Ht(O(o.name || o), 1)
1270
+ td: x(({ td: l }) => [
1271
+ Kt(S(l.name || l), 1)
1270
1272
  ]),
1271
1273
  _: 1
1272
1274
  }, 8, ["colNames", "head", "body", "config", "title"]))
1273
1275
  ]),
1274
1276
  _: 1
1275
- }, 8, ["config"])) : w("", !0),
1276
- i(ye) ? (n(), G(bl, { key: 9 })) : w("", !0)
1277
- ], 46, ml));
1277
+ }, 8, ["config"])) : $("", !0),
1278
+ i(ye) ? (n(), G(ma, { key: 9 })) : $("", !0)
1279
+ ], 46, $a));
1278
1280
  }
1279
- }, na = /* @__PURE__ */ gl(Hl, [["__scopeId", "data-v-9070d068"]]);
1281
+ }, il = /* @__PURE__ */ wa(Ka, [["__scopeId", "data-v-469c5bfc"]]);
1280
1282
  export {
1281
- na as default
1283
+ il as default
1282
1284
  };