vue-data-ui 3.0.23 → 3.1.1

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 (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
  6. package/dist/DataTable-BAf4Obr9.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
  27. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  28. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
  31. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
  33. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
  34. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
  35. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
  36. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
  37. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
  38. package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
  39. package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
  40. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
  41. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
  42. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
  43. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
  44. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
  45. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
  46. package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
  47. package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
  48. package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
  49. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
  50. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
  51. package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
  52. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
  53. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
  54. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
  55. package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
  56. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
  57. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
  58. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
  59. package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
  60. package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
  61. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
  62. package/dist/vue-ui-radar-Br4K80I9.js +858 -0
  63. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
  64. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
  65. package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
  66. package/dist/vue-ui-rings-DEru-cWN.js +785 -0
  67. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
  68. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
  69. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
  70. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
  71. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
  72. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
  73. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
  74. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
  75. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
  76. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
  77. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
  78. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
  79. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
  80. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
  81. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
  82. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
  83. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
  84. package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
  85. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
  86. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
  87. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
  88. package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
  89. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
  90. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
  91. package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
  92. package/package.json +1 -1
  93. package/dist/DataTable-nO6ydJO2.js +0 -133
  94. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  95. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  96. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  97. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  98. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  99. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as q, computed as C, ref as c, toRefs as qt, watch as re, onMounted as Ht, shallowRef as ht, onBeforeUnmount as Jt, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ie, normalizeClass as z, createBlock as M, createCommentVNode as $, createElementVNode as p, createVNode as ft, createSlots as Kt, withCtx as _, renderSlot as x, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as O, withDirectives as pt, vShow as yt, Teleport as Qt, createTextVNode as Zt, nextTick as bt } from "vue";
2
- import { u as jt, c as ea, t as ta, a as aa, p as Se, b as la, C as Ie, o as oa, f as K, d as sa, G as E, e as ua, m as Ve, i as F, X as na, s as ra, L as gt, q as Pe, r as Q, k as j, y as mt, v as ia, w as da, z as va, T as wt, h as De } from "./index-BEuUtONc.js";
3
- import { t as ca, u as ha } from "./useResponsive-DfdjqQps.js";
4
- import { u as fa, B as pa } from "./useLoading-D7YHNtLX.js";
5
- import { u as ya } from "./usePrinter-DiB0_UNt.js";
6
- import { u as $t } from "./useNestedProp-DhLFhguL.js";
7
- import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as ga } from "./useChartAccessibility-9icAAmYg.js";
9
- import ma from "./img-z5p1gGfY.js";
10
- import wa from "./Title-D_e0SFWS.js";
11
- import $a from "./Legend-CyYXMSsW.js";
12
- import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "height"], Aa = ["id"], Ta = ["offset", "stop-color"], Na = ["offset", "stop-opacity"], Fa = ["id"], Oa = ["id"], Sa = ["id"], Ia = ["flood-color"], Va = ["id", "d"], Pa = ["d", "fill", "stroke", "stroke-width", "filter"], Da = ["d", "fill", "stroke", "stroke-width"], za = { key: 1 }, Ma = ["d", "fill"], Ea = { key: 2 }, Ba = ["font-size", "font-weight", "fill", "dy"], Ra = ["href"], Ua = ["x", "y", "font-size", "font-weight", "fill"], Ga = { key: 3 }, Ya = ["filter"], Xa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Wa = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], qa = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ha = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Ja = {
1
+ import { defineAsyncComponent as z, computed as x, ref as c, toRefs as jt, watch as te, onMounted as el, shallowRef as yt, onBeforeUnmount as tl, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ve, normalizeClass as M, createBlock as B, createCommentVNode as $, createElementVNode as p, createVNode as Pe, createSlots as bt, withCtx as C, renderSlot as _, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as F, withDirectives as gt, vShow as mt, Teleport as ll, resolveDynamicComponent as al, mergeProps as ol, createTextVNode as wt, nextTick as kt } from "vue";
2
+ import { u as sl, c as ul, t as nl, a as rl, p as Ve, b as il, C as ze, o as dl, f as K, d as vl, G as E, e as cl, m as Me, i as O, X as hl, s as fl, L as $t, q as Be, r as Q, k as le, y as Ct, v as pl, w as yl, z as bl, T as Lt, h as Ee } from "./index-BKQqb9lF.js";
3
+ import { t as gl, u as ml } from "./useResponsive-DfdjqQps.js";
4
+ import { u as wl, B as kl } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as $l } from "./usePrinter-BzuXiubT.js";
6
+ import { u as xt } from "./useNestedProp-aBOhgs4U.js";
7
+ import { u as Cl } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Ll } from "./useChartAccessibility-9icAAmYg.js";
9
+ import xl from "./img-gBDz7xQQ.js";
10
+ import _l from "./Title-Dz-j6ERs.js";
11
+ import Al from "./Legend-8_V5egWW.js";
12
+ import { _ as Tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Nl = ["id"], Fl = ["id"], Ol = ["xmlns", "viewBox"], Sl = ["width", "height"], Il = ["id"], Dl = ["offset", "stop-color"], Pl = ["offset", "stop-opacity"], Vl = ["id"], zl = ["id"], Ml = ["id"], Bl = ["flood-color"], El = ["id", "d"], Ul = ["d", "fill", "stroke", "stroke-width", "filter"], Rl = ["d", "fill", "stroke", "stroke-width"], Gl = { key: 1 }, Yl = ["d", "fill"], Wl = { key: 2 }, Xl = ["font-size", "font-weight", "fill", "dy"], ql = ["href"], Hl = ["x", "y", "font-size", "font-weight", "fill"], Jl = { key: 3 }, Kl = ["filter"], Ql = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Zl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], jl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ea = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], ta = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, Ka = ["id"], Qa = {
16
+ }, la = ["id"], aa = {
17
17
  key: 0,
18
18
  class: "vue-ui-nested-donuts-legend-title"
19
- }, Za = ["onClick"], ja = ["innerHTML"], el = {
19
+ }, oa = ["onClick"], sa = ["innerHTML"], ua = {
20
20
  __name: "vue-ui-nested-donuts",
21
21
  props: {
22
22
  config: {
@@ -33,19 +33,19 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend", "selectDatapoint"],
36
- setup(kt, { expose: Lt, emit: Ct }) {
37
- const _t = q(() => import("./Tooltip-DjVoFYj1.js")), xt = q(() => import("./vue-ui-accordion-B4YfUjZ5.js")), At = q(() => import("./DataTable-nO6ydJO2.js")), Tt = q(() => import("./UserOptions-z0NWZ7aQ.js")), Nt = q(() => import("./PenAndPaper-zym5uEeN.js")), Ft = q(() => import("./PackageVersion-B6M-3jRt.js")), { vue_ui_nested_donuts: Ot } = jt(), g = kt, de = C({
36
+ setup(_t, { expose: At, emit: Tt }) {
37
+ const Nt = z(() => import("./Tooltip-BTGOEC7w.js")), Ft = z(() => import("./BaseIcon-DLesaZpW.js")), Ot = z(() => import("./vue-ui-accordion-B5QeV3BK.js")), St = z(() => import("./DataTable-BAf4Obr9.js")), It = z(() => import("./UserOptions-CsDlFB0L.js")), Dt = z(() => import("./PenAndPaper-B6OvfyHH.js")), Pt = z(() => import("./PackageVersion-Cv_ypT0N.js")), Vt = z(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_nested_donuts: zt } = sl(), g = _t, ce = x({
38
38
  get() {
39
39
  return !!g.dataset && g.dataset.length;
40
40
  },
41
- set(a) {
42
- return a;
41
+ set(l) {
42
+ return l;
43
43
  }
44
- }), f = c(ea()), ve = c(!1), ce = c(""), he = c(null), ze = c(0), V = c(null), Me = c(null), fe = c(null), Ee = c(null), Be = c(null), Re = c(0), Ue = c(0), Ge = c(0), B = c(!0), R = c([]), Z = c([]), Ye = c(!1), G = c(!1);
45
- function Xe(a) {
46
- G.value = a, ze.value += 1;
44
+ }), f = c(ul()), he = c(!1), fe = c(""), pe = c(null), Ue = c(0), I = c(null), Re = c(null), ye = c(null), Ge = c(null), Ye = c(null), We = c(0), Xe = c(0), qe = c(0), U = c(!0), R = c([]), Z = c([]), He = c(!1), j = c(null), G = c(!1);
45
+ function Je(l) {
46
+ G.value = l, Ue.value += 1;
47
47
  }
48
- const e = c(ge()), We = {
48
+ const e = c(we()), Ke = {
49
49
  name: "",
50
50
  series: [
51
51
  {
@@ -64,17 +64,17 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
64
64
  color: "#CACACA"
65
65
  }
66
66
  ]
67
- }, { loading: pe, FINAL_DATASET: U, manualLoading: ye } = fa({
68
- ...qt(g),
67
+ }, { loading: be, FINAL_DATASET: Y, manualLoading: ge } = wl({
68
+ ...jt(g),
69
69
  FINAL_CONFIG: e,
70
- prepareConfig: ge,
70
+ prepareConfig: we,
71
71
  callback: () => {
72
72
  Promise.resolve().then(async () => {
73
- await Ke();
73
+ await et();
74
74
  });
75
75
  },
76
- skeletonDataset: [We, We],
77
- skeletonConfig: ta({
76
+ skeletonDataset: [Ke, Ke],
77
+ skeletonConfig: nl({
78
78
  defaultConfig: e.value,
79
79
  userConfig: {
80
80
  useCssAnimation: !1,
@@ -100,91 +100,91 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
100
100
  }
101
101
  }
102
102
  })
103
- }), { userOptionsVisible: be, setUserOptionsVisibility: qe, keepUserOptionState: He } = ba({ config: e.value }), { svgRef: ee } = ga({
103
+ }), { userOptionsVisible: me, setUserOptionsVisibility: Qe, keepUserOptionState: Ze } = Cl({ config: e.value }), { svgRef: ae } = Ll({
104
104
  config: e.value.style.chart.title
105
105
  });
106
- function ge() {
107
- const a = $t({
106
+ function we() {
107
+ const l = xt({
108
108
  userConfig: g.config,
109
- defaultConfig: Ot
109
+ defaultConfig: zt
110
110
  });
111
111
  let s = {};
112
- return a.theme ? s = {
113
- ...$t({
114
- userConfig: la.vue_ui_nested_donuts[a.theme] || g.config,
115
- defaultConfig: a
112
+ return l.theme ? s = {
113
+ ...xt({
114
+ userConfig: il.vue_ui_nested_donuts[l.theme] || g.config,
115
+ defaultConfig: l
116
116
  }),
117
- customPalette: aa[a.theme] || Se
118
- } : s = a, g.config && Ie(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Ie(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Ie(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
117
+ customPalette: rl[l.theme] || Ve
118
+ } : s = l, g.config && ze(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && ze(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && ze(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
119
119
  }
120
- re(
120
+ te(
121
121
  () => g.config,
122
- (a) => {
123
- pe.value || (e.value = ge()), be.value = !e.value.userOptions.showOnChartHover, Qe(), Re.value += 1, Ue.value += 1, Ge.value += 1, k.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
122
+ (l) => {
123
+ be.value || (e.value = we()), me.value = !e.value.userOptions.showOnChartHover, tt(), We.value += 1, Xe.value += 1, qe.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
124
124
  },
125
125
  { deep: !0 }
126
126
  );
127
- const Je = C(() => {
128
- const { top: a, right: s, bottom: l, left: o } = e.value.style.chart.padding;
127
+ const je = x(() => {
128
+ const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
129
129
  return {
130
- css: `padding:${a}px ${s}px ${l}px ${o}px`,
131
- top: a,
130
+ css: `padding:${l}px ${s}px ${a}px ${o}px`,
131
+ top: l,
132
132
  right: s,
133
- bottom: l,
133
+ bottom: a,
134
134
  left: o
135
135
  };
136
136
  });
137
- function St(a, s = 1e3, l = 50) {
137
+ function Mt(l, s = 1e3, a = 50) {
138
138
  return new Promise((o) => {
139
- const t = a.length;
139
+ const t = l.length;
140
140
  R.value = Array(t).fill(0), Z.value = [];
141
141
  let n = 0;
142
- a.forEach((v, y) => {
142
+ l.forEach((v, y) => {
143
143
  setTimeout(() => {
144
- const w = performance.now();
144
+ const k = performance.now();
145
145
  function d(b) {
146
- const N = Math.min((b - w) / s, 1), _e = wt(N), xe = v * _e;
147
- R.value[y] = xe, R.value = [...R.value];
148
- const ue = [];
149
- let Ae = 0;
150
- g.dataset.forEach((ne, Te) => {
151
- const Gt = De(ne.series.reduce(
152
- (Fe, Oe) => Fe + De(E(Oe.values).reduce((Xt, Wt) => Xt + Wt, 0)),
146
+ const N = Math.min((b - k) / s, 1), Te = Lt(N), Ne = v * Te;
147
+ R.value[y] = Ne, R.value = [...R.value];
148
+ const ie = [];
149
+ let Fe = 0;
150
+ g.dataset.forEach((de, Oe) => {
151
+ const Jt = Ee(de.series.reduce(
152
+ (Ie, De) => Ie + Ee(E(De.values).reduce((Qt, Zt) => Qt + Zt, 0)),
153
153
  0
154
- )), Yt = De(R.value.slice(Ae, Ae + ne.series.length).reduce((Fe, Oe) => Fe + Oe, 0)), Ne = Gt - Yt;
155
- Ne > Number.MIN_VALUE && ue.push({
154
+ )), Kt = Ee(R.value.slice(Fe, Fe + de.series.length).reduce((Ie, De) => Ie + De, 0)), Se = Jt - Kt;
155
+ Se > Number.MIN_VALUE && ie.push({
156
156
  name: "__ghost__",
157
- arcOf: ne.name,
158
- arcOfId: `${f.value}_${Te}`,
159
- id: `ghost_${f.value}_${Te}`,
157
+ arcOf: de.name,
158
+ arcOfId: `${f.value}_${Oe}`,
159
+ id: `ghost_${f.value}_${Oe}`,
160
160
  seriesIndex: -1,
161
- datasetIndex: Te,
161
+ datasetIndex: Oe,
162
162
  color: "transparent",
163
- value: Ne,
164
- fullValue: Ne,
163
+ value: Se,
164
+ fullValue: Se,
165
165
  absoluteValues: [],
166
166
  ghost: !0
167
- }), Ae += ne.series.length;
168
- }), Z.value = ue, N < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
167
+ }), Fe += de.series.length;
168
+ }), Z.value = ie, N < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
169
169
  }
170
170
  requestAnimationFrame(d);
171
- }, y * l);
171
+ }, y * a);
172
172
  });
173
173
  });
174
174
  }
175
- async function Ke() {
175
+ async function et() {
176
176
  if (e.value.startAnimation?.show) {
177
- const s = U.value.flatMap((l) => l.series).map(
178
- (l) => E(l.values).reduce((o, t) => o + t, 0)
177
+ const s = Y.value.flatMap((a) => a.series).map(
178
+ (a) => E(a.values).reduce((o, t) => o + t, 0)
179
179
  );
180
- R.value = s.map(() => 0), B.value = !0, Z.value = U.value.map((l, o) => {
181
- const t = l.series.reduce(
182
- (n, v) => n + E(v.values).reduce((y, w) => y + w, 0),
180
+ R.value = s.map(() => 0), U.value = !0, Z.value = Y.value.map((a, o) => {
181
+ const t = a.series.reduce(
182
+ (n, v) => n + E(v.values).reduce((y, k) => y + k, 0),
183
183
  0
184
184
  );
185
185
  return {
186
186
  name: "__ghost__",
187
- arcOf: l.name,
187
+ arcOf: a.name,
188
188
  arcOfId: `${f.value}_${o}`,
189
189
  id: `ghost_${f.value}_${o}`,
190
190
  seriesIndex: -1,
@@ -195,58 +195,58 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
195
195
  absoluteValues: [],
196
196
  ghost: !0
197
197
  };
198
- }), await bt(), St(
198
+ }), await kt(), Mt(
199
199
  s,
200
200
  e.value.startAnimation.durationMs,
201
201
  e.value.startAnimation.staggerMs
202
202
  ).then(() => {
203
- B.value = !1, Z.value = [];
203
+ U.value = !1, Z.value = [];
204
204
  });
205
205
  } else
206
- B.value = !1;
206
+ U.value = !1;
207
207
  }
208
- Ht(async () => {
209
- Ye.value = !0, Qe(), await Ke();
208
+ el(async () => {
209
+ He.value = !0, tt(), await et();
210
210
  });
211
- const P = ht(null), Y = ht(null), X = C(() => !!e.value.debug);
212
- function Qe() {
213
- if (oa(g.dataset) ? (K({
211
+ const P = yt(null), W = yt(null), X = x(() => !!e.value.debug);
212
+ function tt() {
213
+ if (dl(g.dataset) ? (K({
214
214
  componentName: "VueUiNestedDonuts",
215
215
  type: "dataset",
216
216
  debug: X.value
217
- }), de.value = !1, ye.value = !0) : ye.value = e.value.loading, e.value.responsive) {
218
- const a = ca(() => {
219
- const { width: s, height: l } = ha({
220
- chart: V.value,
221
- title: e.value.style.chart.title.text ? Me.value : null,
222
- legend: e.value.style.chart.legend.show ? fe.value : null,
223
- source: Ee.value,
224
- noTitle: Be.value,
225
- padding: Je.value
217
+ }), ce.value = !1, ge.value = !0) : ge.value = e.value.loading, e.value.responsive) {
218
+ const l = gl(() => {
219
+ const { width: s, height: a } = ml({
220
+ chart: I.value,
221
+ title: e.value.style.chart.title.text ? Re.value : null,
222
+ legend: e.value.style.chart.legend.show ? ye.value : null,
223
+ source: Ge.value,
224
+ noTitle: Ye.value,
225
+ padding: je.value
226
226
  });
227
227
  requestAnimationFrame(() => {
228
- h.value.width = s, h.value.height = l;
228
+ h.value.width = s, h.value.height = a;
229
229
  });
230
230
  });
231
- P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect()), P.value = new ResizeObserver(a), Y.value = V.value.parentNode, P.value.observe(Y.value);
231
+ P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect()), P.value = new ResizeObserver(l), W.value = I.value.parentNode, P.value.observe(W.value);
232
232
  }
233
233
  }
234
- Jt(() => {
235
- P.value && (Y.value && P.value.unobserve(Y.value), P.value.disconnect());
234
+ tl(() => {
235
+ P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect());
236
236
  });
237
- const { isPrinting: Ze, isImaging: je, generatePdf: et, generateImage: tt } = ya({
237
+ const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: st } = $l({
238
238
  elementId: `nested_donuts_${f.value}`,
239
239
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
240
240
  options: e.value.userOptions.print
241
- }), It = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), Vt = C(() => sa(e.value.customPalette)), k = c({
241
+ }), Bt = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), Et = x(() => vl(e.value.customPalette)), m = c({
242
242
  dataLabels: {
243
243
  show: e.value.style.chart.layout.labels.dataLabels.show
244
244
  },
245
245
  showTable: e.value.table.show,
246
246
  showTooltip: e.value.style.chart.tooltip.show
247
247
  });
248
- re(e, () => {
249
- k.value = {
248
+ te(e, () => {
249
+ m.value = {
250
250
  dataLabels: {
251
251
  show: e.value.style.chart.layout.labels.dataLabels.show
252
252
  },
@@ -257,43 +257,43 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
257
257
  const h = c({
258
258
  width: e.value.style.chart.width,
259
259
  height: e.value.style.chart.height
260
- }), at = Ct;
261
- function Pt({ datapoint: a, index: s, seriesIndex: l }) {
262
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: l }), at("selectDatapoint", { datapoint: a, index: s });
260
+ }), ut = Tt;
261
+ function Ut({ datapoint: l, index: s, seriesIndex: a }) {
262
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a }), ut("selectDatapoint", { datapoint: l, index: s });
263
263
  }
264
- function lt({
265
- from: a,
264
+ function nt({
265
+ from: l,
266
266
  to: s,
267
- duration: l,
267
+ duration: a,
268
268
  onUpdate: o,
269
269
  onDone: t,
270
- easing: n = wt
270
+ easing: n = Lt
271
271
  }) {
272
272
  const v = performance.now();
273
- function y(w) {
274
- const d = Math.min((w - v) / l, 1), b = n(d), N = a + (s - a) * b;
273
+ function y(k) {
274
+ const d = Math.min((k - v) / a, 1), b = n(d), N = l + (s - l) * b;
275
275
  o(N, d), d < 1 ? requestAnimationFrame(y) : (o(s, 1), t && t());
276
276
  }
277
277
  requestAnimationFrame(y);
278
278
  }
279
- const L = c([]), S = C(() => {
280
- pe.value, U.value.forEach((s, l) => {
279
+ const L = c([]), S = x(() => {
280
+ be.value, Y.value.forEach((s, a) => {
281
281
  [null, void 0].includes(s.name) && K({
282
282
  componentName: "VueUiNestedDonuts",
283
283
  type: "datasetSerieAttribute",
284
284
  property: "name",
285
- index: l,
285
+ index: a,
286
286
  debug: X.value
287
287
  }), [null, void 0].includes(s.series) ? K({
288
288
  componentName: "VueUiNestedDonuts",
289
289
  type: "datasetSerieAttribute",
290
290
  property: "series",
291
- index: l,
291
+ index: a,
292
292
  debug: X.value
293
293
  }) : s.series.length === 0 ? K({
294
294
  componentName: "VueUiNestedDonuts",
295
295
  type: "datasetAttributeEmpty",
296
- property: `series at index ${l}`,
296
+ property: `series at index ${a}`,
297
297
  debug: X.value
298
298
  }) : s.series.forEach((o, t) => {
299
299
  [null, void 0].includes(o.name) && K({
@@ -313,110 +313,110 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
313
313
  });
314
314
  });
315
315
  });
316
- let a = 0;
317
- return U.value.map((s, l) => ({
316
+ let l = 0;
317
+ return Y.value.map((s, a) => ({
318
318
  ...s,
319
319
  total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => E(o.values).reduce((t, n) => t + n, 0)).reduce((o, t) => o + t, 0),
320
- datasetIndex: l,
321
- id: `${f.value}_${l}`,
320
+ datasetIndex: a,
321
+ id: `${f.value}_${a}`,
322
322
  series: s.series.map((o, t) => {
323
323
  const n = E(o.values).reduce((v, y) => v + y, 0);
324
324
  return {
325
325
  name: o.name,
326
326
  arcOf: s.name,
327
- arcOfId: `${f.value}_${l}`,
328
- id: `${f.value}_${l}_${t}`,
327
+ arcOfId: `${f.value}_${a}`,
328
+ id: `${f.value}_${a}_${t}`,
329
329
  seriesIndex: t,
330
- datasetIndex: l,
331
- color: ua(o.color) || Vt.value[t] || Se[t % Se.length],
332
- value: B.value ? R.value[a++] ?? 0 : n,
330
+ datasetIndex: a,
331
+ color: cl(o.color) || Et.value[t] || Ve[t % Ve.length],
332
+ value: U.value ? R.value[l++] ?? 0 : n,
333
333
  absoluteValues: o.values || []
334
334
  };
335
335
  })
336
336
  }));
337
337
  });
338
- re(() => g.dataset, (a) => {
339
- Array.isArray(a) && a.length > 0 && (ye.value = !1);
338
+ te(() => g.dataset, (l) => {
339
+ Array.isArray(l) && l.length > 0 && (ge.value = !1);
340
340
  }, { immediate: !0 });
341
- const I = C(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), ot = C(() => [...S.value].map((a, s) => {
342
- const l = a.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
341
+ const D = x(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), rt = x(() => [...S.value].map((l, s) => {
342
+ const a = l.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
343
343
  return {
344
- ...a,
345
- total: l,
346
- series: a.series.filter((o) => !L.value.includes(o.id)).map((o) => ({
344
+ ...l,
345
+ total: a,
346
+ series: l.series.filter((o) => !L.value.includes(o.id)).map((o) => ({
347
347
  ...o,
348
- proportion: o.value / l
348
+ proportion: o.value / a
349
349
  }))
350
350
  };
351
351
  }));
352
- function Dt(a, s, l) {
352
+ function Rt(l, s, a) {
353
353
  let o = 0;
354
- for (let t = 0; t < a.length; t += 1)
355
- l.includes(a[t]) && (o += 1);
354
+ for (let t = 0; t < l.length; t += 1)
355
+ a.includes(l[t]) && (o += 1);
356
356
  return o < s;
357
357
  }
358
- const m = c(ot.value);
359
- re(
360
- () => ot.value,
361
- (a) => m.value = a
358
+ const w = c(rt.value);
359
+ te(
360
+ () => rt.value,
361
+ (l) => w.value = l
362
362
  );
363
- function me(a) {
364
- at("selectLegend", a);
363
+ function ke(l) {
364
+ ut("selectLegend", l);
365
365
  const s = g.dataset.flatMap(
366
- (d, b) => d.series.map((N, _e) => ({
367
- value: E(N.values).reduce((xe, ue) => xe + ue, 0),
368
- id: `${f.value}_${b}_${_e}`,
366
+ (d, b) => d.series.map((N, Te) => ({
367
+ value: E(N.values).reduce((Ne, ie) => Ne + ie, 0),
368
+ id: `${f.value}_${b}_${Te}`,
369
369
  arcOfId: `${f.value}_${b}`
370
370
  }))
371
- ).find((d) => d.id === a.id);
371
+ ).find((d) => d.id === l.id);
372
372
  if (!s) return;
373
- const l = S.value.flatMap((d) => d.series).find((d) => d.id === a.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === a.id);
373
+ const a = S.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = w.value.flatMap((d) => d.series).find((d) => d.id === l.id);
374
374
  let n = o ? o.value : 0;
375
375
  const v = S.value.find(
376
376
  (d) => d.id === s.arcOfId
377
377
  );
378
378
  if (!v) return;
379
- const y = v.series.map((d) => d.id), w = Dt(
379
+ const y = v.series.map((d) => d.id), k = Rt(
380
380
  y,
381
381
  y.length - 1,
382
382
  L.value
383
383
  );
384
- L.value.includes(a.id) ? (L.value = L.value.filter((d) => d !== a.id), e.value.serieToggleAnimation.show ? lt({
384
+ L.value.includes(l.id) ? (L.value = L.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? nt({
385
385
  from: n,
386
- to: l,
386
+ to: a,
387
387
  duration: e.value.serieToggleAnimation.durationMs,
388
388
  onUpdate: (d) => {
389
- m.value = m.value.map((b) => ({
389
+ w.value = w.value.map((b) => ({
390
390
  ...b,
391
- series: b.series.map((N) => N.id === a.id ? { ...N, value: d } : N)
391
+ series: b.series.map((N) => N.id === l.id ? { ...N, value: d } : N)
392
392
  }));
393
393
  }
394
- }) : m.value = m.value.map((d) => ({
394
+ }) : w.value = w.value.map((d) => ({
395
395
  ...d,
396
- series: d.series.map((b) => b.id === a.id ? { ...b, value: l } : b)
397
- }))) : w && (e.value.serieToggleAnimation.show ? lt({
396
+ series: d.series.map((b) => b.id === l.id ? { ...b, value: a } : b)
397
+ }))) : k && (e.value.serieToggleAnimation.show ? nt({
398
398
  from: n,
399
399
  to: 0,
400
400
  duration: e.value.serieToggleAnimation.durationMs,
401
401
  onUpdate: (d) => {
402
- m.value = m.value.map((b) => ({
402
+ w.value = w.value.map((b) => ({
403
403
  ...b,
404
- series: b.series.map((N) => N.id === a.id ? { ...N, value: d } : N)
404
+ series: b.series.map((N) => N.id === l.id ? { ...N, value: d } : N)
405
405
  }));
406
406
  },
407
407
  onDone: () => {
408
- L.value.push(a.id);
408
+ L.value.push(l.id);
409
409
  }
410
- }) : (m.value = m.value.map((d) => ({
410
+ }) : (w.value = w.value.map((d) => ({
411
411
  ...d,
412
- series: d.series.map((b) => b.id === a.id ? { ...b, value: 0 } : b)
413
- })), L.value.push(a.id)));
412
+ series: d.series.map((b) => b.id === l.id ? { ...b, value: 0 } : b)
413
+ })), L.value.push(l.id)));
414
414
  }
415
- const te = C(() => I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), st = C(() => m.value.map((a, s) => I.value - s * I.value / S.value.length)), W = C(() => m.value.map((a, s) => {
416
- const l = Math.abs(a.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = I.value - s * I.value / m.value.length, t = B.value ? Z.value.find((w) => w.datasetIndex === s) : null, n = [...a.series, ...t ? [t] : []].map((w) => ({
417
- ...w,
418
- value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
419
- })), v = Ve(
415
+ const oe = x(() => D.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), it = x(() => w.value.map((l, s) => D.value - s * D.value / S.value.length)), q = x(() => w.value.map((l, s) => {
416
+ const a = Math.abs(l.series.map((k) => k.value).reduce((k, d) => k + d, 0)) > 0, o = D.value - s * D.value / w.value.length, t = U.value ? Z.value.find((k) => k.datasetIndex === s) : null, n = [...l.series, ...t ? [t] : []].map((k) => ({
417
+ ...k,
418
+ value: k.value < 1e-11 ? Number.MIN_VALUE : k.value
419
+ })), v = Me(
420
420
  { series: [
421
421
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
422
422
  ] },
@@ -429,17 +429,17 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
429
429
  1,
430
430
  360,
431
431
  105.25,
432
- te.value
432
+ oe.value
433
433
  ), y = `M ${h.value.width / 2},${h.value.height / 2 + o}
434
434
  a ${o},${o} 0 1,1 0,${-2 * o}
435
435
  a ${o},${o} 0 1,1 0,${2 * o}`;
436
436
  return {
437
- ...a,
438
- hasData: l,
437
+ ...l,
438
+ hasData: a,
439
439
  radius: o,
440
440
  skeleton: v,
441
441
  fullCirclePath: y,
442
- donut: Ve(
442
+ donut: Me(
443
443
  { series: n },
444
444
  h.value.width / 2,
445
445
  h.value.height / 2,
@@ -450,57 +450,57 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
450
450
  1,
451
451
  360,
452
452
  105.25,
453
- te.value
453
+ oe.value
454
454
  )
455
455
  };
456
- })), ut = C(() => [...S.value].map((a, s) => {
457
- const l = s * I.value / S.value.length;
456
+ })), dt = x(() => [...S.value].map((l, s) => {
457
+ const a = s * D.value / S.value.length;
458
458
  return {
459
- sizeRatio: l,
460
- donut: Ve(
459
+ sizeRatio: a,
460
+ donut: Me(
461
461
  { series: [{ value: 1 }] },
462
462
  h.value.width / 2,
463
463
  h.value.height / 2,
464
- I.value - l,
465
- I.value - l,
464
+ D.value - a,
465
+ D.value - a,
466
466
  1.99999,
467
467
  2,
468
468
  1,
469
469
  360,
470
470
  105.25,
471
- I.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
471
+ D.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
472
472
  )[0]
473
473
  };
474
- })), nt = c(null), ae = c(null), le = c(null), we = c(null);
475
- function zt({ datapoint: a, seriesIndex: s }) {
476
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: s }), ve.value = !1, nt.value = null, he.value = null, ae.value = null, le.value = null;
474
+ })), vt = c(null), se = c(null), ue = c(null), $e = c(null);
475
+ function Gt({ datapoint: l, seriesIndex: s }) {
476
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), he.value = !1, vt.value = null, pe.value = null, se.value = null, ue.value = null;
477
477
  }
478
- function Mt({ datapoint: a, _relativeIndex: s, seriesIndex: l }) {
479
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: a, seriesIndex: l }), nt.value = a.arcOfId, ae.value = a.id, le.value = l, he.value = a.id, we.value = {
480
- datapoint: a,
481
- seriesIndex: l,
482
- series: m.value,
478
+ function Yt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
479
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: a }), vt.value = l.arcOfId, se.value = l.id, ue.value = a, pe.value = l.id, $e.value = {
480
+ datapoint: l,
481
+ seriesIndex: a,
482
+ series: w.value,
483
483
  config: e.value
484
484
  };
485
485
  const o = e.value.style.chart.tooltip.customFormat;
486
- if (mt(o) && va(
486
+ if (Ct(o) && bl(
487
487
  () => o({
488
- seriesIndex: l,
489
- datapoint: a,
490
- series: m.value,
488
+ seriesIndex: a,
489
+ datapoint: l,
490
+ series: w.value,
491
491
  config: e.value
492
492
  })
493
493
  ))
494
- ce.value = o({
495
- seriesIndex: l,
496
- datapoint: a,
497
- series: m.value,
494
+ fe.value = o({
495
+ seriesIndex: a,
496
+ datapoint: l,
497
+ series: w.value,
498
498
  config: e.value
499
499
  });
500
500
  else {
501
501
  let t = "";
502
502
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0) {
503
- const n = m.value.map((v) => v.series.find((y) => y.seriesIndex === l));
503
+ const n = w.value.map((v) => v.series.find((y) => y.seriesIndex === a));
504
504
  n.forEach((v, y) => {
505
505
  if (!v) return "";
506
506
  t += `
@@ -514,19 +514,19 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
514
514
  </span>
515
515
  </div>
516
516
  <span>
517
- ${e.value.style.chart.tooltip.showValue ? `<b>${j(
517
+ ${e.value.style.chart.tooltip.showValue ? `<b>${le(
518
518
  e.value.style.chart.layout.labels.dataLabels.formatter,
519
- a.value,
520
- F({
519
+ l.value,
520
+ O({
521
521
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
522
- v: a.value,
522
+ v: l.value,
523
523
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
524
524
  r: e.value.style.chart.tooltip.roundingValue
525
525
  }),
526
- { datapoint: a, seriesIndex: l }
526
+ { datapoint: l, seriesIndex: a }
527
527
  )}
528
528
  </b>` : ""}
529
- ${e.value.style.chart.tooltip.showPercentage ? `(${F({
529
+ ${e.value.style.chart.tooltip.showPercentage ? `(${O({
530
530
  v: v.proportion * 100,
531
531
  s: "%",
532
532
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -536,56 +536,56 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
536
536
  `;
537
537
  });
538
538
  } else
539
- 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(
539
+ 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>${le(
540
540
  e.value.style.chart.layout.labels.dataLabels.formatter,
541
- a.value,
542
- F({
541
+ l.value,
542
+ O({
543
543
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
544
- v: a.value,
544
+ v: l.value,
545
545
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
546
546
  r: e.value.style.chart.tooltip.roundingValue
547
547
  }),
548
- { datapoint: a, seriesIndex: l }
549
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${F({
550
- v: a.proportion * 100,
548
+ { datapoint: l, seriesIndex: a }
549
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${O({
550
+ v: l.proportion * 100,
551
551
  s: "%",
552
552
  r: e.value.style.chart.tooltip.roundingPercentage
553
- })})</span></div>` : t += `<b>${F({
554
- v: a.proportion * 100,
553
+ })})</span></div>` : t += `<b>${O({
554
+ v: l.proportion * 100,
555
555
  s: "%",
556
556
  r: e.value.style.chart.tooltip.roundingPercentage
557
557
  })}</b></div>`);
558
- ce.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
558
+ fe.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
559
559
  }
560
- ve.value = !0;
560
+ he.value = !0;
561
561
  }
562
- function $e(a) {
563
- return a.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
562
+ function Ce(l) {
563
+ return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
564
564
  }
565
- function rt(a, s) {
565
+ function ct(l, s) {
566
566
  if (!e.value.useBlurOnHover)
567
567
  return "";
568
568
  if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
569
- return [null, void 0].includes(le.value) || le.value === s ? "" : `url(#blur_${f.value})`;
569
+ return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${f.value})`;
570
570
  if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
571
- return [null, void 0].includes(ae.value) || ae.value === a.id ? "" : `url(#blur_${f.value})`;
571
+ return [null, void 0].includes(se.value) || se.value === l.id ? "" : `url(#blur_${f.value})`;
572
572
  }
573
- const ke = C(() => S.value.map((a, s) => {
574
- const l = a.series.filter(
573
+ const Le = x(() => S.value.map((l, s) => {
574
+ const a = l.series.filter(
575
575
  (t) => !L.value.includes(t.id)
576
- ), o = B.value ? l.map((t) => {
577
- const n = U.value[s].series.findIndex(
576
+ ), o = U.value ? a.map((t) => {
577
+ const n = Y.value[s].series.findIndex(
578
578
  (v) => v.name === t.name
579
579
  );
580
580
  return E(
581
- U.value[s].series[n].values
581
+ Y.value[s].series[n].values
582
582
  ).reduce((v, y) => v + y, 0);
583
- }).reduce((t, n) => t + n, 0) : l.map((t) => t.value).reduce((t, n) => t + n, 0);
584
- return a.series.map((t, n) => {
585
- const v = E(U.value[s].series[n].values).reduce(
586
- (w, d) => w + d,
583
+ }).reduce((t, n) => t + n, 0) : a.map((t) => t.value).reduce((t, n) => t + n, 0);
584
+ return l.series.map((t, n) => {
585
+ const v = E(Y.value[s].series[n].values).reduce(
586
+ (k, d) => k + d,
587
587
  0
588
- ), y = B.value ? v : t.value;
588
+ ), y = U.value ? v : t.value;
589
589
  return {
590
590
  name: t.name,
591
591
  color: t.color,
@@ -597,53 +597,53 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
597
597
  datasetIndex: s,
598
598
  total: o,
599
599
  opacity: L.value.includes(t.id) ? 0.5 : 1,
600
- segregate: () => me(t),
600
+ segregate: () => ke(t),
601
601
  isSegregated: L.value.includes(t.id)
602
602
  };
603
603
  });
604
- })), Et = C(() => ({
604
+ })), Wt = x(() => ({
605
605
  cy: "nested-donuts-legend",
606
606
  backgroundColor: e.value.style.chart.legend.backgroundColor,
607
607
  color: e.value.style.chart.legend.color,
608
608
  fontSize: e.value.style.chart.legend.fontSize,
609
609
  paddingBottom: 12,
610
610
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
611
- })), D = C(() => {
612
- const a = m.value.flatMap((l) => l.series.map((o) => ({
613
- name: `${l.name} - ${o.name}`,
611
+ })), V = x(() => {
612
+ const l = w.value.flatMap((a) => a.series.map((o) => ({
613
+ name: `${a.name} - ${o.name}`,
614
614
  color: o.color,
615
- total: l.total
616
- }))), s = m.value.flatMap((l) => l.series.map((o) => o.value));
617
- return { head: a, body: s };
615
+ total: a.total
616
+ }))), s = w.value.flatMap((a) => a.series.map((o) => o.value));
617
+ return { head: l, body: s };
618
618
  });
619
- function it(a = null) {
620
- bt(() => {
621
- const s = D.value.head.map((t, n) => [
619
+ function xe(l = null) {
620
+ kt(() => {
621
+ const s = V.value.head.map((t, n) => [
622
622
  [t.name],
623
- [D.value.body[n]],
623
+ [V.value.body[n]],
624
624
  [
625
- isNaN(D.value.body[n] / t.total) ? "-" : D.value.body[n] / t.total * 100
625
+ isNaN(V.value.body[n] / t.total) ? "-" : V.value.body[n] / t.total * 100
626
626
  ]
627
- ]), l = [
627
+ ]), a = [
628
628
  [e.value.style.chart.title.text],
629
629
  [e.value.style.chart.title.subtitle.text],
630
630
  [[""], ["val"], ["%"]]
631
- ].concat(s), o = ia(l);
632
- a ? a(o) : da({
631
+ ].concat(s), o = pl(a);
632
+ l ? l(o) : yl({
633
633
  csvContent: o,
634
634
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
635
635
  });
636
636
  });
637
637
  }
638
- const oe = C(() => {
639
- const a = [
638
+ const ne = x(() => {
639
+ const l = [
640
640
  e.value.table.columnNames.series,
641
641
  e.value.table.columnNames.value,
642
642
  e.value.table.columnNames.percentage
643
- ], s = D.value.head.map((t, n) => {
644
- const v = F({
643
+ ], s = V.value.head.map((t, n) => {
644
+ const v = O({
645
645
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
646
- v: D.value.body[n],
646
+ v: V.value.body[n],
647
647
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
648
648
  r: e.value.table.td.roundingValue
649
649
  });
@@ -653,13 +653,13 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
653
653
  name: t.name
654
654
  },
655
655
  v,
656
- isNaN(D.value.body[n] / t.total) ? "-" : F({
657
- v: D.value.body[n] / t.total * 100,
656
+ isNaN(V.value.body[n] / t.total) ? "-" : O({
657
+ v: V.value.body[n] / t.total * 100,
658
658
  s: "%",
659
659
  r: e.value.table.td.roundingPercentage
660
660
  })
661
661
  ];
662
- }), l = {
662
+ }), a = {
663
663
  th: {
664
664
  backgroundColor: e.value.table.th.backgroundColor,
665
665
  color: e.value.table.th.color,
@@ -678,88 +678,120 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
678
678
  e.value.table.columnNames.value,
679
679
  e.value.table.columnNames.percentage
680
680
  ],
681
- head: a,
681
+ head: l,
682
682
  body: s,
683
- config: l
683
+ config: a
684
684
  };
685
685
  });
686
- function Bt() {
686
+ function Xt() {
687
687
  return S.value;
688
688
  }
689
- function dt() {
690
- k.value.showTable = !k.value.showTable;
689
+ function ht() {
690
+ m.value.showTable = !m.value.showTable;
691
691
  }
692
- function vt() {
693
- k.value.dataLabels.show = !k.value.dataLabels.show;
692
+ function ft() {
693
+ m.value.dataLabels.show = !m.value.dataLabels.show;
694
694
  }
695
- function ct() {
696
- k.value.showTooltip = !k.value.showTooltip;
695
+ function pt() {
696
+ m.value.showTooltip = !m.value.showTooltip;
697
697
  }
698
- const se = c(!1);
699
- function Le() {
700
- se.value = !se.value;
698
+ const re = c(!1);
699
+ function _e() {
700
+ re.value = !re.value;
701
701
  }
702
- async function Rt({ scale: a = 2 } = {}) {
703
- if (!V.value) return;
704
- const { width: s, height: l } = V.value.getBoundingClientRect(), o = s / l, { imageUri: t, base64: n } = await ma({ domElement: V.value, base64: !0, img: !0, scale: a });
702
+ async function qt({ scale: l = 2 } = {}) {
703
+ if (!I.value) return;
704
+ const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: n } = await xl({ domElement: I.value, base64: !0, img: !0, scale: l });
705
705
  return {
706
706
  imageUri: t,
707
707
  base64: n,
708
708
  title: e.value.style.chart.title.text,
709
709
  width: s,
710
- height: l,
710
+ height: a,
711
711
  aspectRatio: o
712
712
  };
713
713
  }
714
- const Ce = c(null);
715
- function Ut() {
716
- if (!Ce.value) return;
717
- const { x: a, y: s, width: l, height: o } = Ce.value.getBBox();
718
- ee.value && ee.value.setAttribute("viewBox", `${a} ${s} ${l + Math.min(0, a)} ${o + Math.min(0, s)}`);
714
+ const Ae = c(null);
715
+ function Ht() {
716
+ if (!Ae.value) return;
717
+ const { x: l, y: s, width: a, height: o } = Ae.value.getBBox();
718
+ ae.value && ae.value.setAttribute("viewBox", `${l} ${s} ${a + Math.min(0, l)} ${o + Math.min(0, s)}`);
719
719
  }
720
- return Lt({
721
- autoSize: Ut,
722
- getData: Bt,
723
- getImage: Rt,
724
- generatePdf: et,
725
- generateCsv: it,
726
- generateImage: tt,
727
- toggleTable: dt,
728
- toggleLabels: vt,
729
- toggleTooltip: ct,
730
- toggleAnnotator: Le,
731
- toggleFullscreen: Xe
732
- }), (a, s) => (u(), r("div", {
720
+ const ee = x(() => {
721
+ const l = e.value.table.useDialog && !e.value.table.show, s = m.value.showTable;
722
+ return {
723
+ component: l ? Vt : Ot,
724
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
725
+ props: l ? {
726
+ backgroundColor: e.value.table.th.backgroundColor,
727
+ color: e.value.table.th.color,
728
+ headerColor: e.value.table.th.color,
729
+ headerBg: e.value.table.th.backgroundColor,
730
+ isFullscreen: G.value,
731
+ fullscreenParent: I.value,
732
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
733
+ } : {
734
+ hideDetails: !0,
735
+ config: {
736
+ open: s,
737
+ maxHeight: 1e4,
738
+ body: {
739
+ backgroundColor: e.value.style.chart.backgroundColor,
740
+ color: e.value.style.chart.color
741
+ },
742
+ head: {
743
+ backgroundColor: e.value.style.chart.backgroundColor,
744
+ color: e.value.style.chart.color
745
+ }
746
+ }
747
+ }
748
+ };
749
+ });
750
+ return te(() => m.value.showTable, (l) => {
751
+ e.value.table.show || (l && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
752
+ }), At({
753
+ autoSize: Ht,
754
+ getData: Xt,
755
+ getImage: qt,
756
+ generatePdf: ot,
757
+ generateCsv: xe,
758
+ generateImage: st,
759
+ toggleTable: ht,
760
+ toggleLabels: ft,
761
+ toggleTooltip: pt,
762
+ toggleAnnotator: _e,
763
+ toggleFullscreen: Je
764
+ }), (l, s) => (u(), r("div", {
733
765
  ref_key: "nestedDonutsChart",
734
- ref: V,
735
- class: z(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
736
- style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
766
+ ref: I,
767
+ class: M(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
768
+ style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
737
769
  id: `nested_donuts_${f.value}`,
738
- onMouseenter: s[2] || (s[2] = () => i(qe)(!0)),
739
- onMouseleave: s[3] || (s[3] = () => i(qe)(!1))
770
+ onMouseenter: s[4] || (s[4] = () => i(Qe)(!0)),
771
+ onMouseleave: s[5] || (s[5] = () => i(Qe)(!1))
740
772
  }, [
741
- e.value.userOptions.buttons.annotator ? (u(), M(i(Nt), {
773
+ e.value.userOptions.buttons.annotator ? (u(), B(i(Dt), {
742
774
  key: 0,
743
- svgRef: i(ee),
775
+ svgRef: i(ae),
744
776
  backgroundColor: e.value.style.chart.backgroundColor,
745
777
  color: e.value.style.chart.color,
746
- active: se.value,
747
- onClose: Le
778
+ active: re.value,
779
+ onClose: _e
748
780
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
749
- It.value ? (u(), r("div", {
781
+ Bt.value ? (u(), r("div", {
750
782
  key: 1,
751
783
  ref_key: "noTitle",
752
- ref: Be,
784
+ ref: Ye,
753
785
  class: "vue-data-ui-no-title-space",
754
786
  style: "height:36px; width: 100%;background:transparent"
755
787
  }, null, 512)) : $("", !0),
756
788
  e.value.style.chart.title.text ? (u(), r("div", {
757
789
  key: 2,
758
790
  ref_key: "chartTitle",
759
- ref: Me
791
+ ref: Re
760
792
  }, [
761
- (u(), M(wa, {
762
- key: `title_${Re.value}`,
793
+ (u(), B(_l, {
794
+ key: `title_${We.value}`,
763
795
  config: {
764
796
  title: {
765
797
  cy: "donut-div-title",
@@ -774,14 +806,14 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
774
806
  ], 512)) : $("", !0),
775
807
  p("div", {
776
808
  id: `legend-top-${f.value}`
777
- }, null, 8, Ca),
778
- e.value.userOptions.show && de.value && (i(He) || i(be)) ? (u(), M(i(Tt), {
809
+ }, null, 8, Fl),
810
+ e.value.userOptions.show && ce.value && (i(Ze) || i(me)) ? (u(), B(i(It), {
779
811
  ref: "details",
780
- key: `user_option_${ze.value}`,
812
+ key: `user_option_${Ue.value}`,
781
813
  backgroundColor: e.value.style.chart.backgroundColor,
782
814
  color: e.value.style.chart.color,
783
- isPrinting: i(Ze),
784
- isImaging: i(je),
815
+ isPrinting: i(lt),
816
+ isImaging: i(at),
785
817
  uid: f.value,
786
818
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
787
819
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -791,109 +823,109 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
791
823
  hasLabel: e.value.userOptions.buttons.labels,
792
824
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
793
825
  isFullscreen: G.value,
794
- isTooltip: k.value.showTooltip,
826
+ isTooltip: m.value.showTooltip,
795
827
  titles: { ...e.value.userOptions.buttonTitles },
796
- chartElement: V.value,
828
+ chartElement: I.value,
797
829
  position: e.value.userOptions.position,
798
830
  hasAnnotator: e.value.userOptions.buttons.annotator,
799
- isAnnotation: se.value,
831
+ isAnnotation: re.value,
800
832
  callbacks: e.value.userOptions.callbacks,
801
833
  printScale: e.value.userOptions.print.scale,
802
- onToggleFullscreen: Xe,
803
- onGeneratePdf: i(et),
804
- onGenerateCsv: it,
805
- onGenerateImage: i(tt),
806
- onToggleTable: dt,
807
- onToggleLabels: vt,
808
- onToggleTooltip: ct,
809
- onToggleAnnotator: Le,
810
- style: ie({
811
- visibility: i(He) ? i(be) ? "visible" : "hidden" : "visible"
834
+ onToggleFullscreen: Je,
835
+ onGeneratePdf: i(ot),
836
+ onGenerateCsv: xe,
837
+ onGenerateImage: i(st),
838
+ onToggleTable: ht,
839
+ onToggleLabels: ft,
840
+ onToggleTooltip: pt,
841
+ onToggleAnnotator: _e,
842
+ style: ve({
843
+ visibility: i(Ze) ? i(me) ? "visible" : "hidden" : "visible"
812
844
  })
813
- }, Kt({ _: 2 }, [
814
- a.$slots.menuIcon ? {
845
+ }, bt({ _: 2 }, [
846
+ l.$slots.menuIcon ? {
815
847
  name: "menuIcon",
816
- fn: _(({ isOpen: l, color: o }) => [
817
- x(a.$slots, "menuIcon", H(J({ isOpen: l, color: o })), void 0, !0)
848
+ fn: C(({ isOpen: a, color: o }) => [
849
+ _(l.$slots, "menuIcon", H(J({ isOpen: a, color: o })), void 0, !0)
818
850
  ]),
819
851
  key: "0"
820
852
  } : void 0,
821
- a.$slots.optionTooltip ? {
853
+ l.$slots.optionTooltip ? {
822
854
  name: "optionTooltip",
823
- fn: _(() => [
824
- x(a.$slots, "optionTooltip", {}, void 0, !0)
855
+ fn: C(() => [
856
+ _(l.$slots, "optionTooltip", {}, void 0, !0)
825
857
  ]),
826
858
  key: "1"
827
859
  } : void 0,
828
- a.$slots.optionPdf ? {
860
+ l.$slots.optionPdf ? {
829
861
  name: "optionPdf",
830
- fn: _(() => [
831
- x(a.$slots, "optionPdf", {}, void 0, !0)
862
+ fn: C(() => [
863
+ _(l.$slots, "optionPdf", {}, void 0, !0)
832
864
  ]),
833
865
  key: "2"
834
866
  } : void 0,
835
- a.$slots.optionCsv ? {
867
+ l.$slots.optionCsv ? {
836
868
  name: "optionCsv",
837
- fn: _(() => [
838
- x(a.$slots, "optionCsv", {}, void 0, !0)
869
+ fn: C(() => [
870
+ _(l.$slots, "optionCsv", {}, void 0, !0)
839
871
  ]),
840
872
  key: "3"
841
873
  } : void 0,
842
- a.$slots.optionImg ? {
874
+ l.$slots.optionImg ? {
843
875
  name: "optionImg",
844
- fn: _(() => [
845
- x(a.$slots, "optionImg", {}, void 0, !0)
876
+ fn: C(() => [
877
+ _(l.$slots, "optionImg", {}, void 0, !0)
846
878
  ]),
847
879
  key: "4"
848
880
  } : void 0,
849
- a.$slots.optionTable ? {
881
+ l.$slots.optionTable ? {
850
882
  name: "optionTable",
851
- fn: _(() => [
852
- x(a.$slots, "optionTable", {}, void 0, !0)
883
+ fn: C(() => [
884
+ _(l.$slots, "optionTable", {}, void 0, !0)
853
885
  ]),
854
886
  key: "5"
855
887
  } : void 0,
856
- a.$slots.optionLabels ? {
888
+ l.$slots.optionLabels ? {
857
889
  name: "optionLabels",
858
- fn: _(() => [
859
- x(a.$slots, "optionLabels", {}, void 0, !0)
890
+ fn: C(() => [
891
+ _(l.$slots, "optionLabels", {}, void 0, !0)
860
892
  ]),
861
893
  key: "6"
862
894
  } : void 0,
863
- a.$slots.optionFullscreen ? {
895
+ l.$slots.optionFullscreen ? {
864
896
  name: "optionFullscreen",
865
- fn: _(({ toggleFullscreen: l, isFullscreen: o }) => [
866
- x(a.$slots, "optionFullscreen", H(J({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
897
+ fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
898
+ _(l.$slots, "optionFullscreen", H(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
867
899
  ]),
868
900
  key: "7"
869
901
  } : void 0,
870
- a.$slots.optionAnnotator ? {
902
+ l.$slots.optionAnnotator ? {
871
903
  name: "optionAnnotator",
872
- fn: _(({ toggleAnnotator: l, isAnnotator: o }) => [
873
- x(a.$slots, "optionAnnotator", H(J({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
904
+ fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
905
+ _(l.$slots, "optionAnnotator", H(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
874
906
  ]),
875
907
  key: "8"
876
908
  } : void 0
877
909
  ]), 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),
878
910
  (u(), r("svg", {
879
911
  ref_key: "svgRef",
880
- ref: ee,
881
- xmlns: i(na),
882
- class: z({
912
+ ref: ae,
913
+ xmlns: i(hl),
914
+ class: M({
883
915
  "vue-data-ui-fullscreen--on": G.value,
884
916
  "vue-data-ui-fulscreen--off": !G.value,
885
917
  "vue-data-ui-svg": !0
886
918
  }),
887
919
  viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
888
- style: ie(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Je.value.css}`)
920
+ style: ve(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${je.value.css}`)
889
921
  }, [
890
922
  p("g", {
891
923
  ref_key: "G",
892
- ref: Ce,
924
+ ref: Ae,
893
925
  class: "vue-data-ui-g"
894
926
  }, [
895
- ft(i(Ft)),
896
- a.$slots["chart-background"] ? (u(), r("foreignObject", {
927
+ Pe(i(Pt)),
928
+ l.$slots["chart-background"] ? (u(), r("foreignObject", {
897
929
  key: 0,
898
930
  x: 0,
899
931
  y: 0,
@@ -903,33 +935,33 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
903
935
  pointerEvents: "none"
904
936
  }
905
937
  }, [
906
- x(a.$slots, "chart-background", {}, void 0, !0)
907
- ], 8, xa)) : $("", !0),
938
+ _(l.$slots, "chart-background", {}, void 0, !0)
939
+ ], 8, Sl)) : $("", !0),
908
940
  p("defs", null, [
909
- (u(!0), r(A, null, T(ut.value, (l, o) => (u(), r("radialGradient", {
941
+ (u(!0), r(A, null, T(dt.value, (a, o) => (u(), r("radialGradient", {
910
942
  id: `radial_${f.value}_${o}`
911
943
  }, [
912
- s[4] || (s[4] = p("stop", {
944
+ s[6] || (s[6] = p("stop", {
913
945
  offset: "0%",
914
946
  "stop-color": "#FFFFFF",
915
947
  "stop-opacity": "0"
916
948
  }, null, -1)),
917
949
  p("stop", {
918
- offset: `${(1 - te.value / st.value[o]) * 100}%`,
919
- "stop-color": i(ra)("#FFFFFF", 0),
950
+ offset: `${(1 - oe.value / it.value[o]) * 100}%`,
951
+ "stop-color": i(fl)("#FFFFFF", 0),
920
952
  "stop-opacity": "0"
921
- }, null, 8, Ta),
953
+ }, null, 8, Dl),
922
954
  p("stop", {
923
- offset: `${(1 - te.value / st.value[o] / 2) * 100}%`,
955
+ offset: `${(1 - oe.value / it.value[o] / 2) * 100}%`,
924
956
  "stop-color": "#FFFFFF",
925
957
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
926
- }, null, 8, Na),
927
- s[5] || (s[5] = p("stop", {
958
+ }, null, 8, Pl),
959
+ s[7] || (s[7] = p("stop", {
928
960
  offset: "100%",
929
961
  "stop-color": "#FFFFFF",
930
962
  "stop-opacity": "0"
931
963
  }, null, -1))
932
- ], 8, Aa))), 256))
964
+ ], 8, Il))), 256))
933
965
  ]),
934
966
  p("defs", null, [
935
967
  p("filter", {
@@ -943,12 +975,12 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
943
975
  in: "SourceGraphic",
944
976
  stdDeviation: 2,
945
977
  id: `blur_std_${f.value}`
946
- }, null, 8, Oa),
947
- s[6] || (s[6] = p("feColorMatrix", {
978
+ }, null, 8, zl),
979
+ s[8] || (s[8] = p("feColorMatrix", {
948
980
  type: "saturate",
949
981
  values: "0"
950
982
  }, null, -1))
951
- ], 8, Fa),
983
+ ], 8, Vl),
952
984
  p("filter", {
953
985
  id: `shadow_${f.value}`,
954
986
  "color-interpolation-filters": "sRGB"
@@ -959,53 +991,53 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
959
991
  stdDeviation: "10",
960
992
  "flood-opacity": "0.5",
961
993
  "flood-color": e.value.style.chart.layout.donut.shadowColor
962
- }, null, 8, Ia)
963
- ], 8, Sa)
994
+ }, null, 8, Bl)
995
+ ], 8, Ml)
964
996
  ]),
965
997
  p("defs", null, [
966
- (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("path", {
998
+ (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("path", {
967
999
  key: `path-full-${o}`,
968
1000
  id: `path-full-${o}-${f.value}`,
969
- d: l.fullCirclePath,
1001
+ d: a.fullCirclePath,
970
1002
  fill: "none"
971
- }, null, 8, Va))), 128))
1003
+ }, null, 8, El))), 128))
972
1004
  ]),
973
- (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
974
- l.hasData ? (u(!0), r(A, { key: 0 }, T(l.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", null, [
1005
+ (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1006
+ a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", null, [
975
1007
  p("path", {
976
1008
  class: "vue-ui-donut-arc-path",
977
1009
  d: t.arcSlice,
978
1010
  fill: t.color,
979
1011
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
980
1012
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
981
- filter: rt(t, n)
982
- }, null, 8, Pa)
983
- ]))), 256)) : (u(!0), r(A, { key: 1 }, T(l.skeleton, (t, n) => (u(), r("g", null, [
1013
+ filter: ct(t, n)
1014
+ }, null, 8, Ul)
1015
+ ]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (t, n) => (u(), r("g", null, [
984
1016
  p("path", {
985
1017
  class: "vue-ui-donut-arc-path",
986
1018
  d: t.arcSlice,
987
1019
  fill: t.color,
988
1020
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
989
1021
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
990
- }, null, 8, Da)
1022
+ }, null, 8, Rl)
991
1023
  ]))), 256))
992
1024
  ]))), 256)),
993
- e.value.style.chart.useGradient ? (u(), r("g", za, [
994
- (u(!0), r(A, null, T(ut.value, (l, o) => (u(), r("g", null, [
1025
+ e.value.style.chart.useGradient ? (u(), r("g", Gl, [
1026
+ (u(!0), r(A, null, T(dt.value, (a, o) => (u(), r("g", null, [
995
1027
  p("path", {
996
- d: l.donut.arcSlice,
1028
+ d: a.donut.arcSlice,
997
1029
  fill: `url(#radial_${f.value}_${o})`,
998
1030
  stroke: "transparent",
999
1031
  "stroke-width": "0"
1000
- }, null, 8, Ma)
1032
+ }, null, 8, Yl)
1001
1033
  ]))), 256))
1002
1034
  ])) : $("", !0),
1003
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", Ea, [
1004
- e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(W.value, (l, o) => (u(), r("g", null, [
1005
- (u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
1035
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", Wl, [
1036
+ e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(q.value, (a, o) => (u(), r("g", null, [
1037
+ (u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
1006
1038
  n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1007
1039
  key: 0,
1008
- class: z({ animated: e.value.useCssAnimation }),
1040
+ class: M({ animated: e.value.useCssAnimation }),
1009
1041
  "text-anchor": "middle",
1010
1042
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1011
1043
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
@@ -1019,45 +1051,45 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
1019
1051
  method: "align",
1020
1052
  spacing: "auto",
1021
1053
  side: "right"
1022
- }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(gt)({
1023
- source: l.name,
1054
+ }, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i($t)({
1055
+ source: a.name,
1024
1056
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1025
- }) : l.name), 9, Ra)
1026
- ], 10, Ba)) : $("", !0)
1057
+ }) : a.name), 9, ql)
1058
+ ], 10, Xl)) : $("", !0)
1027
1059
  ]))), 256))
1028
- ]))), 256)) : (u(!0), r(A, { key: 1 }, T(W.value, (l, o) => (u(), r("g", null, [
1029
- (u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
1060
+ ]))), 256)) : (u(!0), r(A, { key: 1 }, T(q.value, (a, o) => (u(), r("g", null, [
1061
+ (u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
1030
1062
  n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1031
1063
  key: 0,
1032
- class: z({ animated: e.value.useCssAnimation }),
1064
+ class: M({ animated: e.value.useCssAnimation }),
1033
1065
  x: h.value.width / 2,
1034
1066
  y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1035
1067
  "text-anchor": "middle",
1036
1068
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1037
1069
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1038
1070
  fill: e.value.style.chart.layout.labels.dataLabels.color
1039
- }, O(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(gt)({
1040
- source: l.name,
1071
+ }, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i($t)({
1072
+ source: a.name,
1041
1073
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1042
- }) : l.name), 11, Ua)) : $("", !0)
1074
+ }) : a.name), 11, Hl)) : $("", !0)
1043
1075
  ]))), 256))
1044
1076
  ]))), 256))
1045
1077
  ])) : $("", !0),
1046
- e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Ga, [
1047
- (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
1048
- (u(!0), r(A, null, T(l.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", {
1049
- filter: rt(t, n)
1078
+ e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Jl, [
1079
+ (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1080
+ (u(!0), r(A, null, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", {
1081
+ filter: ct(t, n)
1050
1082
  }, [
1051
- pt(p("text", {
1052
- class: z({ animated: e.value.useCssAnimation }),
1053
- opacity: $e(t) ? 1 : 0,
1083
+ gt(p("text", {
1084
+ class: M({ animated: e.value.useCssAnimation }),
1085
+ opacity: Ce(t) ? 1 : 0,
1054
1086
  "text-anchor": i(Q)(t, !0).anchor,
1055
1087
  x: i(Q)(
1056
1088
  t,
1057
1089
  !1,
1058
1090
  e.value.style.chart.layout.labels.dataLabels.offsetX
1059
1091
  ).x || 0,
1060
- y: i(Pe)(
1092
+ y: i(Be)(
1061
1093
  t,
1062
1094
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1063
1095
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1065,26 +1097,26 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
1065
1097
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1066
1098
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1067
1099
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1068
- }, O(i(F)({
1100
+ }, F(i(O)({
1069
1101
  v: t.proportion * 100,
1070
1102
  s: "%",
1071
1103
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1072
- })), 11, Xa), [
1104
+ })), 11, Ql), [
1073
1105
  [
1074
- yt,
1075
- k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1106
+ mt,
1107
+ m.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1076
1108
  ]
1077
1109
  ]),
1078
- pt(p("text", {
1079
- class: z({ animated: e.value.useCssAnimation }),
1080
- opacity: $e(t) ? 1 : 0,
1110
+ gt(p("text", {
1111
+ class: M({ animated: e.value.useCssAnimation }),
1112
+ opacity: Ce(t) ? 1 : 0,
1081
1113
  "text-anchor": i(Q)(t, !0).anchor,
1082
1114
  x: i(Q)(
1083
1115
  t,
1084
1116
  !1,
1085
1117
  e.value.style.chart.layout.labels.dataLabels.offsetX
1086
1118
  ).x || 0,
1087
- y: i(Pe)(
1119
+ y: i(Be)(
1088
1120
  t,
1089
1121
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1090
1122
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1092,32 +1124,32 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
1092
1124
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1093
1125
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1094
1126
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1095
- }, " (" + O(i(j)(
1127
+ }, " (" + F(i(le)(
1096
1128
  e.value.style.chart.layout.labels.dataLabels.formatter,
1097
1129
  t.value,
1098
- i(F)({
1130
+ i(O)({
1099
1131
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1100
1132
  v: t.value,
1101
1133
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1102
1134
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1103
1135
  }),
1104
1136
  { datapoint: t, seriesIndex: o, datapointIndex: n }
1105
- )) + ") ", 11, Wa), [
1137
+ )) + ") ", 11, Zl), [
1106
1138
  [
1107
- yt,
1108
- k.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1139
+ mt,
1140
+ m.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1109
1141
  ]
1110
1142
  ]),
1111
- $e(t) && k.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
1143
+ Ce(t) && m.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
1112
1144
  key: 0,
1113
- class: z({ animated: e.value.useCssAnimation }),
1145
+ class: M({ animated: e.value.useCssAnimation }),
1114
1146
  "text-anchor": i(Q)(t, !0).anchor,
1115
1147
  x: i(Q)(
1116
1148
  t,
1117
1149
  !1,
1118
1150
  e.value.style.chart.layout.labels.dataLabels.offsetX
1119
1151
  ).x || 0,
1120
- y: i(Pe)(
1152
+ y: i(Be)(
1121
1153
  t,
1122
1154
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1123
1155
  e.value.style.chart.layout.labels.dataLabels.offsetY
@@ -1125,42 +1157,42 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
1125
1157
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1126
1158
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1127
1159
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1128
- }, O(i(j)(
1160
+ }, F(i(le)(
1129
1161
  e.value.style.chart.layout.labels.dataLabels.formatter,
1130
1162
  t.value,
1131
- i(F)({
1163
+ i(O)({
1132
1164
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1133
1165
  v: t.value,
1134
1166
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1135
1167
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1136
1168
  }),
1137
1169
  { datapoint: t, seriesIndex: o, datapointIndex: n }
1138
- )), 11, qa)) : $("", !0)
1139
- ], 8, Ya))), 256))
1170
+ )), 11, jl)) : $("", !0)
1171
+ ], 8, Kl))), 256))
1140
1172
  ]))), 256))
1141
1173
  ])) : $("", !0),
1142
- (u(!0), r(A, null, T(W.value, (l, o) => (u(), r("g", null, [
1143
- (u(!0), r(A, null, T(l.donut, (t, n) => (u(), r("g", null, [
1174
+ (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1175
+ (u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
1144
1176
  p("path", {
1145
1177
  d: t.arcSlice,
1146
- fill: he.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1147
- onMouseenter: (v) => Mt({
1178
+ fill: pe.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1179
+ onMouseenter: (v) => Yt({
1148
1180
  datapoint: t,
1149
1181
  seriesIndex: t.seriesIndex
1150
1182
  }),
1151
- onClick: (v) => Pt({ datapoint: t, index: n, seriesIndex: t.seriesIndex }),
1152
- onMouseleave: (v) => zt({ datapoint: t, seriesIndex: t.seriesIndex })
1153
- }, null, 40, Ha)
1183
+ onClick: (v) => Ut({ datapoint: t, index: n, seriesIndex: t.seriesIndex }),
1184
+ onMouseleave: (v) => Gt({ datapoint: t, seriesIndex: t.seriesIndex })
1185
+ }, null, 40, ea)
1154
1186
  ]))), 256))
1155
1187
  ]))), 256)),
1156
- x(a.$slots, "svg", { svg: h.value }, void 0, !0)
1188
+ _(l.$slots, "svg", { svg: h.value }, void 0, !0)
1157
1189
  ], 512)
1158
- ], 14, _a)),
1159
- a.$slots.watermark ? (u(), r("div", Ja, [
1160
- x(a.$slots, "watermark", H(J({ isPrinting: i(Ze) || i(je) })), void 0, !0)
1190
+ ], 14, Ol)),
1191
+ l.$slots.watermark ? (u(), r("div", ta, [
1192
+ _(l.$slots, "watermark", H(J({ isPrinting: i(lt) || i(at) })), void 0, !0)
1161
1193
  ])) : $("", !0),
1162
- ft(i(_t), {
1163
- show: k.value.showTooltip && ve.value,
1194
+ Pe(i(Nt), {
1195
+ show: m.value.showTooltip && he.value,
1164
1196
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1165
1197
  color: e.value.style.chart.tooltip.color,
1166
1198
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1170,62 +1202,62 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
1170
1202
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1171
1203
  position: e.value.style.chart.tooltip.position,
1172
1204
  offsetY: e.value.style.chart.tooltip.offsetY,
1173
- parent: V.value,
1174
- content: ce.value,
1205
+ parent: I.value,
1206
+ content: fe.value,
1175
1207
  isFullscreen: G.value,
1176
- isCustom: i(mt)(e.value.style.chart.tooltip.customFormat),
1208
+ isCustom: i(Ct)(e.value.style.chart.tooltip.customFormat),
1177
1209
  smooth: e.value.style.chart.tooltip.smooth,
1178
1210
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1179
1211
  }, {
1180
- "tooltip-before": _(() => [
1181
- x(a.$slots, "tooltip-before", H(J({ ...we.value })), void 0, !0)
1212
+ "tooltip-before": C(() => [
1213
+ _(l.$slots, "tooltip-before", H(J({ ...$e.value })), void 0, !0)
1182
1214
  ]),
1183
- "tooltip-after": _(() => [
1184
- x(a.$slots, "tooltip-after", H(J({ ...we.value })), void 0, !0)
1215
+ "tooltip-after": C(() => [
1216
+ _(l.$slots, "tooltip-after", H(J({ ...$e.value })), void 0, !0)
1185
1217
  ]),
1186
1218
  _: 3
1187
1219
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1188
1220
  p("div", {
1189
1221
  id: `legend-bottom-${f.value}`
1190
- }, null, 8, Ka),
1191
- Ye.value ? (u(), M(Qt, {
1222
+ }, null, 8, la),
1223
+ He.value ? (u(), B(ll, {
1192
1224
  key: 5,
1193
1225
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
1194
1226
  }, [
1195
1227
  e.value.style.chart.legend.show ? (u(), r("div", {
1196
1228
  key: 0,
1197
1229
  ref_key: "chartLegend",
1198
- ref: fe,
1199
- class: z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
1230
+ ref: ye,
1231
+ class: M({ "vue-ui-nested-donuts-legend": Le.value.length > 1 })
1200
1232
  }, [
1201
- (u(!0), r(A, null, T(ke.value, (l, o) => (u(), M($a, {
1202
- key: `legend_${o}_${Ge.value}`,
1203
- legendSet: l,
1204
- config: Et.value,
1205
- onClickMarker: s[0] || (s[0] = ({ legend: t }) => me(t))
1233
+ (u(!0), r(A, null, T(Le.value, (a, o) => (u(), B(Al, {
1234
+ key: `legend_${o}_${qe.value}`,
1235
+ legendSet: a,
1236
+ config: Wt.value,
1237
+ onClickMarker: s[0] || (s[0] = ({ legend: t }) => ke(t))
1206
1238
  }, {
1207
- legendTitle: _(({ titleSet: t }) => [
1208
- t[0] && t[0].arcOf ? (u(), r("div", Qa, O(t[0].arcOf), 1)) : $("", !0)
1239
+ legendTitle: C(({ titleSet: t }) => [
1240
+ t[0] && t[0].arcOf ? (u(), r("div", aa, F(t[0].arcOf), 1)) : $("", !0)
1209
1241
  ]),
1210
- item: _(({ legend: t, index: n }) => [
1242
+ item: C(({ legend: t, index: n }) => [
1211
1243
  p("div", {
1212
- onClick: (v) => me(t),
1213
- style: ie(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1214
- }, O(t.name) + O(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + O(e.value.style.chart.legend.showValue ? i(j)(
1244
+ onClick: (v) => ke(t),
1245
+ style: ve(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1246
+ }, F(t.name) + F(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + F(e.value.style.chart.legend.showValue ? i(le)(
1215
1247
  e.value.style.chart.layout.labels.dataLabels.formatter,
1216
1248
  t.value,
1217
- i(F)({
1249
+ i(O)({
1218
1250
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1219
1251
  v: t.value,
1220
1252
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1221
1253
  r: e.value.style.chart.legend.roundingValue
1222
1254
  }),
1223
1255
  { datapoint: t, seriesIndex: n }
1224
- ) : "") + " " + O(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(F)({
1256
+ ) : "") + " " + F(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)({
1225
1257
  v: t.value / t.total * 100,
1226
1258
  s: "%",
1227
1259
  r: e.value.style.chart.legend.roundingPercentage
1228
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Za)
1260
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, oa)
1229
1261
  ]),
1230
1262
  _: 1
1231
1263
  }, 8, ["legendSet", "config"]))), 128))
@@ -1234,62 +1266,76 @@ const La = ["id"], Ca = ["id"], _a = ["xmlns", "viewBox"], xa = ["width", "heigh
1234
1266
  e.value.style.chart.legend.show ? $("", !0) : (u(), r("div", {
1235
1267
  key: 6,
1236
1268
  ref_key: "chartLegend",
1237
- ref: fe
1269
+ ref: ye
1238
1270
  }, [
1239
- x(a.$slots, "legend", { legend: ke.value }, void 0, !0)
1271
+ _(l.$slots, "legend", { legend: Le.value }, void 0, !0)
1240
1272
  ], 512)),
1241
- a.$slots.source ? (u(), r("div", {
1273
+ l.$slots.source ? (u(), r("div", {
1242
1274
  key: 7,
1243
1275
  ref_key: "source",
1244
- ref: Ee,
1276
+ ref: Ge,
1245
1277
  dir: "auto"
1246
1278
  }, [
1247
- x(a.$slots, "source", {}, void 0, !0)
1279
+ _(l.$slots, "source", {}, void 0, !0)
1248
1280
  ], 512)) : $("", !0),
1249
- de.value ? (u(), M(i(xt), {
1250
- key: 8,
1251
- hideDetails: "",
1252
- config: {
1253
- open: k.value.showTable,
1254
- maxHeight: 1e4,
1255
- body: {
1256
- backgroundColor: e.value.style.chart.backgroundColor,
1257
- color: e.value.style.chart.color
1258
- },
1259
- head: {
1260
- backgroundColor: e.value.style.chart.backgroundColor,
1261
- color: e.value.style.chart.color
1262
- }
1263
- }
1264
- }, {
1265
- content: _(() => [
1266
- (u(), M(i(At), {
1267
- key: `table_${Ue.value}`,
1268
- colNames: oe.value.colNames,
1269
- head: oe.value.head,
1270
- body: oe.value.body,
1271
- config: oe.value.config,
1272
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1273
- onClose: s[1] || (s[1] = (l) => k.value.showTable = !1)
1281
+ ce.value ? (u(), B(al(ee.value.component), ol({ key: 8 }, ee.value.props, {
1282
+ ref_key: "tableUnit",
1283
+ ref: j,
1284
+ onClose: s[3] || (s[3] = (a) => m.value.showTable = !1)
1285
+ }), bt({
1286
+ content: C(() => [
1287
+ (u(), B(i(St), {
1288
+ key: `table_${Xe.value}`,
1289
+ colNames: ne.value.colNames,
1290
+ head: ne.value.head,
1291
+ body: ne.value.body,
1292
+ config: ne.value.config,
1293
+ title: e.value.table.useDialog ? "" : ee.value.title,
1294
+ withCloseButton: !e.value.table.useDialog,
1295
+ onClose: s[2] || (s[2] = (a) => m.value.showTable = !1)
1274
1296
  }, {
1275
- th: _(({ th: l }) => [
1297
+ th: C(({ th: a }) => [
1276
1298
  p("div", {
1277
- innerHTML: l,
1299
+ innerHTML: a,
1278
1300
  style: { display: "flex", "align-items": "center" }
1279
- }, null, 8, ja)
1301
+ }, null, 8, sa)
1280
1302
  ]),
1281
- td: _(({ td: l }) => [
1282
- Zt(O(l.name || l), 1)
1303
+ td: C(({ td: a }) => [
1304
+ wt(F(a.name || a), 1)
1283
1305
  ]),
1284
1306
  _: 1
1285
- }, 8, ["colNames", "head", "body", "config", "title"]))
1307
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1286
1308
  ]),
1287
- _: 1
1288
- }, 8, ["config"])) : $("", !0),
1289
- i(pe) ? (u(), M(pa, { key: 9 })) : $("", !0)
1290
- ], 46, La));
1309
+ _: 2
1310
+ }, [
1311
+ e.value.table.useDialog ? {
1312
+ name: "title",
1313
+ fn: C(() => [
1314
+ wt(F(ee.value.title), 1)
1315
+ ]),
1316
+ key: "0"
1317
+ } : void 0,
1318
+ e.value.table.useDialog ? {
1319
+ name: "actions",
1320
+ fn: C(() => [
1321
+ p("button", {
1322
+ tabindex: "0",
1323
+ class: "vue-ui-user-options-button",
1324
+ onClick: s[1] || (s[1] = (a) => xe(e.value.userOptions.callbacks.csv))
1325
+ }, [
1326
+ Pe(i(Ft), {
1327
+ name: "excel",
1328
+ stroke: ee.value.props.color
1329
+ }, null, 8, ["stroke"])
1330
+ ])
1331
+ ]),
1332
+ key: "1"
1333
+ } : void 0
1334
+ ]), 1040)) : $("", !0),
1335
+ i(be) ? (u(), B(kl, { key: 9 })) : $("", !0)
1336
+ ], 46, Nl));
1291
1337
  }
1292
- }, hl = /* @__PURE__ */ ka(el, [["__scopeId", "data-v-8afc2b4d"]]);
1338
+ }, ma = /* @__PURE__ */ Tl(ua, [["__scopeId", "data-v-0381ca3e"]]);
1293
1339
  export {
1294
- hl as default
1340
+ ma as default
1295
1341
  };