vue-data-ui 3.0.22 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/Legend-2-dC7DVb.js +72 -0
  8. package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.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-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-Y5T9UxMO.js +0 -133
  93. package/dist/Legend-DkU3at-b.js +0 -72
  94. package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
  95. package/dist/vue-ui-chord-0wf798ls.js +0 -1049
  96. package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
  97. package/dist/vue-ui-flow-K7UBguES.js +0 -852
  98. package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
  99. package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
  100. package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
  101. package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
  102. package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
  103. package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
  104. package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
  105. package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
  106. package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
  107. package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
  108. package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
  109. package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
@@ -1,23 +1,23 @@
1
- import { defineAsyncComponent as ye, useSlots as il, computed as f, shallowRef as H, ref as g, onMounted as wt, onBeforeUnmount as kt, toRefs as vl, watch as ge, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Xe, createBlock as ee, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as De, unref as u, createSlots as xt, withCtx as A, normalizeProps as oe, guardReactiveProps as se, Fragment as w, renderList as L, mergeProps as _t, toDisplayString as I, withDirectives as $t, createTextVNode as Be, vShow as Ct, Teleport as dl, nextTick as cl } from "vue";
2
- import { u as hl, o as At, f as Ve, g as yl, c as fl, t as pl, d as gl, h as ml, e as Tt, p as ne, m as St, $ as bl, i as N, X as wl, s as Ce, x as kl, n as xl, N as P, k as V, q as fe, r as x, a0 as Pt, a1 as _l, a as $l, b as Cl, C as Ee, v as Al, w as Tl, y as Sl, T as Ft } from "./index-BHb_mcWF.js";
3
- import { t as Pl, u as Fl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ll } from "./usePrinter-B7rhbRrT.js";
5
- import { u as Il, B as Ml } from "./useLoading-D7YHNtLX.js";
6
- import { u as Lt } from "./useNestedProp-aC9S6EFJ.js";
7
- import { u as zl } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Ol } from "./useChartAccessibility-9icAAmYg.js";
9
- import Nl from "./img-DsVqerdt.js";
10
- import { _ as Yl } from "./Shape-C3J8aKNH.js";
11
- import Xl from "./Title-BL-IjQmj.js";
12
- import Dl from "./Legend-DkU3at-b.js";
13
- import { _ as Bl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "height"], ql = { key: 1 }, Ul = ["id"], Wl = ["stop-color"], Hl = ["offset", "stop-color"], jl = ["offset", "stop-color"], Jl = ["stop-color"], Kl = { key: 2 }, Ql = ["id", "cx", "cy"], Zl = ["stop-color", "stop-opacity"], ea = ["stop-color"], ta = ["id"], la = ["id"], aa = ["id"], oa = ["flood-color"], sa = ["id"], na = ["flood-color"], ua = ["d", "stroke", "filter"], ra = ["d", "stroke", "filter"], ia = ["cx", "cy", "r", "fill", "filter"], va = { key: 6 }, da = ["stroke", "d"], ca = ["d", "fill", "stroke", "stroke-width", "filter"], ha = { key: 0 }, ya = ["d", "fill", "stroke", "stroke-width", "filter"], fa = { key: 0 }, pa = ["stroke", "d"], ga = { key: 0 }, ma = ["d", "stroke", "stroke-width", "filter"], ba = { key: 1 }, wa = ["d", "fill", "stroke", "stroke-width", "filter"], ka = ["d", "fill", "stroke", "stroke-width", "filter"], xa = { key: 1 }, _a = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], $a = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ca = { key: 0 }, Aa = ["d", "fill", "stroke", "stroke-width"], Ta = ["cx", "cy", "r", "stroke"], Sa = ["cx", "cy", "r", "fill"], Pa = ["cx", "cy", "r"], Fa = { key: 0 }, La = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Ia = { key: 1 }, Ma = ["cx", "cy", "r"], za = ["x", "y", "fill", "font-size"], Oa = ["x", "y", "fill", "font-size"], Na = ["x", "y", "fill", "font-size"], Ya = ["x", "y", "fill", "font-size"], Xa = ["filter"], Da = { key: 0 }, Ba = ["x", "y"], Va = { key: 1 }, Ea = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ra = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ua = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Wa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ha = { key: 2 }, ja = ["x", "y", "width"], Ja = ["x", "y", "width"], Ka = {
1
+ import { defineAsyncComponent as ee, useSlots as hl, computed as p, shallowRef as H, ref as g, onMounted as $t, onBeforeUnmount as Ct, toRefs as yl, watch as fe, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Re, createBlock as te, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Te, unref as u, createSlots as Ge, withCtx as A, normalizeProps as ne, guardReactiveProps as ue, Fragment as w, renderList as L, mergeProps as qe, toDisplayString as I, withDirectives as At, createTextVNode as Se, vShow as Tt, Teleport as fl, resolveDynamicComponent as pl, nextTick as gl } from "vue";
2
+ import { u as ml, o as St, f as Ue, g as bl, c as wl, t as kl, d as xl, h as _l, e as Pt, p as re, m as Ft, $ as $l, i as N, X as Cl, s as Pe, x as Al, n as Tl, N as P, k as E, q as pe, r as x, a0 as Lt, a1 as Sl, a as Pl, b as Fl, C as We, v as Ll, w as Il, y as Ml, T as It } from "./index-CDQbCd41.js";
3
+ import { t as zl, u as Ol } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Nl } from "./usePrinter-Bnl1YeUU.js";
5
+ import { u as Dl, B as Yl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Mt } from "./useNestedProp-BPEHGiYX.js";
7
+ import { u as Xl } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Bl } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Vl from "./img-JOqdlnUs.js";
10
+ import { _ as El } from "./Shape-Dj2Hl33H.js";
11
+ import Rl from "./Title-Dq2_Z9kR.js";
12
+ import Gl from "./Legend-2-dC7DVb.js";
13
+ import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Ul = ["id"], Wl = ["id"], Hl = ["xmlns", "viewBox"], jl = ["width", "height"], Jl = { key: 1 }, Kl = ["id"], Ql = ["stop-color"], Zl = ["offset", "stop-color"], ea = ["offset", "stop-color"], ta = ["stop-color"], la = { key: 2 }, aa = ["id", "cx", "cy"], oa = ["stop-color", "stop-opacity"], sa = ["stop-color"], na = ["id"], ua = ["id"], ra = ["id"], ia = ["flood-color"], va = ["id"], da = ["flood-color"], ca = ["d", "stroke", "filter"], ha = ["d", "stroke", "filter"], ya = ["cx", "cy", "r", "fill", "filter"], fa = { key: 6 }, pa = ["stroke", "d"], ga = ["d", "fill", "stroke", "stroke-width", "filter"], ma = { key: 0 }, ba = ["d", "fill", "stroke", "stroke-width", "filter"], wa = { key: 0 }, ka = ["stroke", "d"], xa = { key: 0 }, _a = ["d", "stroke", "stroke-width", "filter"], $a = { key: 1 }, Ca = ["d", "fill", "stroke", "stroke-width", "filter"], Aa = ["d", "fill", "stroke", "stroke-width", "filter"], Ta = { key: 1 }, Sa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Pa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Fa = { key: 0 }, La = ["d", "fill", "stroke", "stroke-width"], Ia = ["cx", "cy", "r", "stroke"], Ma = ["cx", "cy", "r", "fill"], za = ["cx", "cy", "r"], Oa = { key: 0 }, Na = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Da = { key: 1 }, Ya = ["cx", "cy", "r"], Xa = ["x", "y", "fill", "font-size"], Ba = ["x", "y", "fill", "font-size"], Va = ["x", "y", "fill", "font-size"], Ea = ["x", "y", "fill", "font-size"], Ra = ["filter"], Ga = { key: 0 }, qa = ["x", "y"], Ua = { key: 1 }, Wa = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ha = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ja = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ja = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ka = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Za = { key: 2 }, eo = ["x", "y", "width"], to = ["x", "y", "width"], lo = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Qa = ["id"], Za = ["onClick"], eo = {
17
+ }, ao = ["id"], oo = ["onClick"], so = {
18
18
  key: 7,
19
19
  class: "vue-ui-donut-hollow"
20
- }, to = ["innerHTML"], lo = {
20
+ }, no = ["innerHTML"], uo = {
21
21
  __name: "vue-ui-donut",
22
22
  props: {
23
23
  config: {
@@ -34,33 +34,33 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
34
34
  }
35
35
  },
36
36
  emits: ["selectLegend", "selectDatapoint"],
37
- setup(Re, { expose: It, emit: Mt }) {
38
- const zt = ye(() => import("./vue-ui-accordion-DsnF0JuK.js")), Ot = ye(() => import("./DataTable-Y5T9UxMO.js")), Nt = ye(() => import("./PackageVersion-CE7HSich.js")), Yt = ye(() => import("./PenAndPaper-BMHsOtT8.js")), Xt = ye(() => import("./Tooltip-CCnDaboi.js")), Dt = ye(() => import("./UserOptions-BWMV0_Ze.js")), { vue_ui_donut: Bt } = hl(), Vt = il(), k = Re, me = f({
37
+ setup(He, { expose: zt, emit: Ot }) {
38
+ const Nt = ee(() => import("./Tooltip-Y219DXZO.js")), Dt = ee(() => import("./BaseIcon-DHtro8us.js")), Yt = ee(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Xt = ee(() => import("./DataTable-DJjA2_wf.js")), Bt = ee(() => import("./PenAndPaper-B7QEDgx4.js")), Vt = ee(() => import("./UserOptions-BuGfCdAY.js")), Et = ee(() => import("./PackageVersion-DU12WH3O.js")), Rt = ee(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_donut: Gt } = ml(), qt = hl(), k = He, we = p({
39
39
  get() {
40
40
  return !!k.dataset && k.dataset.length;
41
41
  },
42
42
  set(l) {
43
43
  return l;
44
44
  }
45
- }), E = H(null), be = g(null), Et = g(null), Rt = g(null), Ge = H(null), qe = H(null), j = H(null), ue = H(null), Ue = H(null), We = H(null), He = g(0), je = g(0), Je = g(0), Ke = g(!1), we = f({
45
+ }), D = H(null), ke = g(null), Ut = g(null), Wt = g(null), je = H(null), Je = H(null), j = H(null), ie = H(null), Ke = H(null), Qe = H(null), Ze = g(0), et = g(0), tt = g(0), lt = g(!1), ge = g(null), xe = p({
46
46
  get: () => e.value.style.chart.layout.labels.percentage.fontSize,
47
47
  set: (l) => l
48
- }), J = f({
48
+ }), J = p({
49
49
  get: () => e.value.style.chart.layout.labels.name.fontSize,
50
50
  set: (l) => l
51
51
  });
52
- let Ae = !1;
52
+ let Fe = !1;
53
53
  const R = () => {
54
- !e.value.autoSize || Ae || (Ae = !0, requestAnimationFrame(() => {
55
- Ae = !1;
56
- const l = e.value, o = be.value, t = ie.value;
54
+ !e.value.autoSize || Fe || (Fe = !0, requestAnimationFrame(() => {
55
+ Fe = !1;
56
+ const l = e.value, o = ke.value, t = de.value;
57
57
  if (!l.autoSize || !o || !t) return;
58
58
  const [a, i, c, m] = t.getAttribute("viewBox").split(" ").map(Number), C = { x: a, y: i, width: c, height: m }, z = [
59
59
  {
60
60
  selector: ".vue-data-ui-datalabel-value",
61
61
  baseSize: l.style.chart.layout.labels.percentage.fontSize,
62
62
  minSize: l.style.chart.layout.labels.percentage.minFontSize,
63
- sizeRef: we
63
+ sizeRef: xe
64
64
  },
65
65
  {
66
66
  selector: ".vue-data-ui-datalabel-name",
@@ -69,27 +69,27 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
69
69
  sizeRef: J
70
70
  }
71
71
  ];
72
- z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && z.forEach(({ selector: B, baseSize: Z, minSize: Ye, sizeRef: nl }) => {
73
- o.querySelectorAll(B).forEach((ul) => {
74
- const rl = _l({
75
- el: ul,
72
+ z.map((V) => o.querySelectorAll(V.selector).length).reduce((V, Z) => V + Z, 0) !== 0 && z.forEach(({ selector: V, baseSize: Z, minSize: Ee, sizeRef: vl }) => {
73
+ o.querySelectorAll(V).forEach((dl) => {
74
+ const cl = Sl({
75
+ el: dl,
76
76
  bounds: C,
77
77
  currentFontSize: Z,
78
- minFontSize: Ye,
78
+ minFontSize: Ee,
79
79
  attempts: 200,
80
80
  padding: 1
81
81
  });
82
- nl.value = rl;
82
+ vl.value = cl;
83
83
  });
84
84
  });
85
85
  }));
86
86
  };
87
- wt(async () => {
88
- Ke.value = !0, Qe(), requestAnimationFrame(R);
87
+ $t(async () => {
88
+ lt.value = !0, at(), requestAnimationFrame(R);
89
89
  });
90
- let Te;
91
- wt(() => {
92
- E.value && (Te = new ResizeObserver((l) => {
90
+ let Le;
91
+ $t(() => {
92
+ D.value && (Le = new ResizeObserver((l) => {
93
93
  for (const o of l) {
94
94
  const { width: t, height: a } = o.contentRect;
95
95
  if (t > 0 && a > 0) {
@@ -97,75 +97,75 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
97
97
  break;
98
98
  }
99
99
  }
100
- }), Te.observe(E.value.parentElement));
101
- }), kt(() => {
102
- Te?.disconnect();
103
- }), kt(() => {
104
- j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect());
100
+ }), Le.observe(D.value.parentElement));
101
+ }), Ct(() => {
102
+ Le?.disconnect();
103
+ }), Ct(() => {
104
+ j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect());
105
105
  });
106
- const Se = f(() => !!e.value.debug);
107
- function Qe() {
108
- if (At(k.dataset) ? (Ve({
106
+ const Ie = p(() => !!e.value.debug);
107
+ function at() {
108
+ if (St(k.dataset) ? (Ue({
109
109
  componentName: "VueUiDonut",
110
110
  type: "dataset",
111
- debug: Se.value
112
- }), me.value = !1, xe.value = !0) : (k.dataset.forEach((l, o) => {
113
- yl({
111
+ debug: Ie.value
112
+ }), we.value = !1, $e.value = !0) : (k.dataset.forEach((l, o) => {
113
+ bl({
114
114
  datasetObject: l,
115
115
  requiredAttributes: ["name", "values"]
116
116
  }).forEach((t) => {
117
- Ve({
117
+ Ue({
118
118
  componentName: "VueUiDonut",
119
119
  type: "datasetSerieAttribute",
120
120
  property: t,
121
121
  index: o,
122
- debug: Se.value
123
- }), me.value = !1, xe.value = !0;
122
+ debug: Ie.value
123
+ }), we.value = !1, $e.value = !0;
124
124
  });
125
125
  }), k.dataset.forEach((l, o) => {
126
- (!l.name || l.name === "") && Ve({
126
+ (!l.name || l.name === "") && Ue({
127
127
  componentName: "VueUiDonut",
128
128
  type: "datasetAttributeEmpty",
129
129
  property: "name",
130
130
  index: o,
131
- debug: Se.value
131
+ debug: Ie.value
132
132
  });
133
- })), At(k.dataset) || (xe.value = e.value.loading), e.value.responsive) {
134
- const l = Pl(() => {
135
- const { width: o, height: t } = Fl({
136
- chart: E.value,
137
- title: e.value.style.chart.title.text ? Ge.value : null,
138
- legend: e.value.style.chart.legend.show ? qe.value : null,
139
- source: Ue.value,
140
- noTitle: We.value,
141
- padding: e.value.autoSize ? void 0 : at.value
133
+ })), St(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
134
+ const l = zl(() => {
135
+ const { width: o, height: t } = Ol({
136
+ chart: D.value,
137
+ title: e.value.style.chart.title.text ? je.value : null,
138
+ legend: e.value.style.chart.legend.show ? Je.value : null,
139
+ source: Ke.value,
140
+ noTitle: Qe.value,
141
+ padding: e.value.autoSize ? void 0 : rt.value
142
142
  });
143
143
  requestAnimationFrame(() => {
144
144
  s.value.width = o, s.value.height = t, R();
145
145
  });
146
146
  });
147
- j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect()), j.value = new ResizeObserver(l), ue.value = E.value.parentNode, j.value.observe(ue.value);
147
+ j.value && (ie.value && j.value.unobserve(ie.value), j.value.disconnect()), j.value = new ResizeObserver(l), ie.value = D.value.parentNode, j.value.observe(ie.value);
148
148
  }
149
149
  }
150
- const y = g(fl()), Gt = g(null), Pe = g(!1), Fe = g(""), Y = g(null), Ze = g(0);
151
- function Le() {
152
- const l = Lt({
150
+ const y = g(wl()), Ht = g(null), Me = g(!1), ze = g(""), Y = g(null), ot = g(0);
151
+ function Oe() {
152
+ const l = Mt({
153
153
  userConfig: k.config,
154
- defaultConfig: Bt
154
+ defaultConfig: Gt
155
155
  });
156
156
  let o = {};
157
157
  return l.theme ? o = {
158
- ...Lt({
159
- userConfig: Cl.vue_ui_donut[l.theme] || k.config,
158
+ ...Mt({
159
+ userConfig: Fl.vue_ui_donut[l.theme] || k.config,
160
160
  defaultConfig: l
161
161
  }),
162
- customPalette: $l[l.theme] || ne
163
- } : o = l, k.config && Ee(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && Ee(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && Ee(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
162
+ customPalette: Pl[l.theme] || re
163
+ } : o = l, k.config && We(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && We(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && We(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
164
164
  }
165
- const e = g(Le()), { loading: ke, FINAL_DATASET: re, manualLoading: xe, skeletonDataset: qt } = Il({
166
- ...vl(k),
165
+ const e = g(Oe()), { loading: _e, FINAL_DATASET: ve, manualLoading: $e, skeletonDataset: jt } = Dl({
166
+ ...yl(k),
167
167
  FINAL_CONFIG: e,
168
- prepareConfig: Le,
168
+ prepareConfig: Oe,
169
169
  skeletonDataset: [
170
170
  {
171
171
  name: "",
@@ -183,7 +183,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
183
183
  color: "#CACACA"
184
184
  }
185
185
  ],
186
- skeletonConfig: pl({
186
+ skeletonConfig: kl({
187
187
  defaultConfig: e.value,
188
188
  userConfig: {
189
189
  useCssAnimation: !1,
@@ -221,7 +221,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
221
221
  }
222
222
  })
223
223
  }), T = g(!0), U = H([]);
224
- function Ut(l, o = 1e3, t = 50) {
224
+ function Jt(l, o = 1e3, t = 50) {
225
225
  return new Promise((a) => {
226
226
  const i = l.length;
227
227
  U.value = Array(i).fill(0);
@@ -229,27 +229,27 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
229
229
  l.forEach((m, C) => {
230
230
  setTimeout(() => {
231
231
  const z = performance.now();
232
- function O(B) {
233
- const Z = Math.min((B - z) / o, 1), Ye = Ft(Z);
234
- U.value[C] = m * Ye, U.value = [...U.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(R)) : (U.value[C] = m, U.value = [...U.value], c += 1, c === i && a(), requestAnimationFrame(R));
232
+ function O(V) {
233
+ const Z = Math.min((V - z) / o, 1), Ee = It(Z);
234
+ U.value[C] = m * Ee, U.value = [...U.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(R)) : (U.value[C] = m, U.value = [...U.value], c += 1, c === i && a(), requestAnimationFrame(R));
235
235
  }
236
236
  requestAnimationFrame(O);
237
237
  }, C * t);
238
238
  });
239
239
  });
240
240
  }
241
- const et = g(!1);
242
- ge(
243
- () => ke.value,
241
+ const st = g(!1);
242
+ fe(
243
+ () => _e.value,
244
244
  async (l) => {
245
- if (l || et.value) return;
246
- const o = re.value === qt, t = e.value.startAnimation?.show;
245
+ if (l || st.value) return;
246
+ const o = ve.value === jt, t = e.value.startAnimation?.show;
247
247
  if (!o && t) {
248
- et.value = !0;
249
- const a = re.value.map(
248
+ st.value = !0;
249
+ const a = ve.value.map(
250
250
  (i) => i.values.reduce((c, m) => c + m, 0)
251
251
  );
252
- await Ut(
252
+ await Jt(
253
253
  a,
254
254
  e.value.startAnimation.durationMs,
255
255
  e.value.startAnimation.staggerMs
@@ -259,17 +259,17 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
259
259
  },
260
260
  { immediate: !0 }
261
261
  );
262
- const { userOptionsVisible: Ie, setUserOptionsVisibility: tt, keepUserOptionState: lt } = zl({ config: e.value }), { svgRef: ie } = Ol({ config: e.value.style.chart.title });
263
- function Wt() {
264
- tt(!0);
262
+ const { userOptionsVisible: Ne, setUserOptionsVisibility: nt, keepUserOptionState: ut } = Xl({ config: e.value }), { svgRef: de } = Bl({ config: e.value.style.chart.title });
263
+ function Kt() {
264
+ nt(!0);
265
265
  }
266
- function Ht() {
267
- tt(!1);
266
+ function Qt() {
267
+ nt(!1);
268
268
  }
269
- ge(() => k.config, (l) => {
270
- ke.value || (e.value = Le()), Ie.value = !e.value.userOptions.showOnChartHover, Qe(), He.value += 1, je.value += 1, Je.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
269
+ fe(() => k.config, (l) => {
270
+ _e.value || (e.value = Oe()), Ne.value = !e.value.userOptions.showOnChartHover, at(), Ze.value += 1, et.value += 1, tt.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
271
271
  }, { deep: !0 });
272
- const at = f(() => {
272
+ const rt = p(() => {
273
273
  const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
274
274
  return {
275
275
  css: `padding:${l}px ${o}px ${t}px ${a}px`,
@@ -278,19 +278,19 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
278
278
  bottom: t,
279
279
  left: a
280
280
  };
281
- }), { isPrinting: ot, isImaging: st, generatePdf: nt, generateImage: ut } = Ll({
281
+ }), { isPrinting: it, isImaging: vt, generatePdf: dt, generateImage: ct } = Nl({
282
282
  elementId: `donut__${y.value}`,
283
283
  fileName: e.value.style.chart.title.text || "vue-ui-donut",
284
284
  options: e.value.userOptions.print
285
- }), jt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), rt = f(() => gl(e.value.customPalette)), p = g({
285
+ }), Zt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ht = p(() => xl(e.value.customPalette)), f = g({
286
286
  dataLabels: {
287
287
  show: e.value.style.chart.layout.labels.dataLabels.show
288
288
  },
289
289
  showTable: e.value.table.show,
290
290
  showTooltip: e.value.style.chart.tooltip.show
291
291
  });
292
- ge(e, () => {
293
- p.value = {
292
+ fe(e, () => {
293
+ f.value = {
294
294
  dataLabels: {
295
295
  show: e.value.style.chart.layout.labels.dataLabels.show
296
296
  },
@@ -301,15 +301,15 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
301
301
  const s = g({
302
302
  height: e.value.style.chart.height,
303
303
  width: e.value.style.chart.width
304
- }), te = f(() => {
304
+ }), le = p(() => {
305
305
  if (e.value.pie)
306
306
  return _.value;
307
307
  const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > _.value ? _.value : o;
308
308
  return Math.max(t, 12 * (1 + l));
309
- }), it = Mt, G = f(() => re.value.map((l, o) => ({
309
+ }), yt = Ot, G = p(() => ve.value.map((l, o) => ({
310
310
  name: l.name,
311
- color: Tt(l.color) || rt.value[o] || ne[o] || ne[o % ne.length],
312
- value: ml(l.values.reduce((t, a) => t + a, 0)),
311
+ color: Pt(l.color) || ht.value[o] || re[o] || re[o % re.length],
312
+ value: _l(l.values.reduce((t, a) => t + a, 0)),
313
313
  absoluteValues: l.values,
314
314
  comment: l.comment || "",
315
315
  patternIndex: o,
@@ -317,30 +317,30 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
317
317
  ghost: !1,
318
318
  pattern: `pattern_${y.value}_${o}`
319
319
  })));
320
- ge(() => k.dataset, (l) => {
321
- Array.isArray(l) && l.length > 0 && (xe.value = !1);
320
+ fe(() => k.dataset, (l) => {
321
+ Array.isArray(l) && l.length > 0 && ($e.value = !1);
322
322
  }, { immediate: !0 });
323
323
  const M = H(G.value);
324
- ge(() => G.value, (l) => {
324
+ fe(() => G.value, (l) => {
325
325
  M.value = l, requestAnimationFrame(R);
326
326
  });
327
- function Jt() {
327
+ function el() {
328
328
  return G.value.map((l) => ({
329
329
  name: l.name,
330
330
  color: l.color,
331
331
  value: l.value
332
332
  }));
333
333
  }
334
- const q = g([]), le = g(!1);
335
- function vt({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = Ft }) {
334
+ const q = g([]), ae = g(!1);
335
+ function ft({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = It }) {
336
336
  const m = performance.now();
337
337
  function C(z) {
338
- const O = Math.min((z - m) / t, 1), B = c(O), Z = l + (o - l) * B;
338
+ const O = Math.min((z - m) / t, 1), V = c(O), Z = l + (o - l) * V;
339
339
  a(Z, O), O < 1 ? requestAnimationFrame(C) : (a(o, 1), i && i());
340
340
  }
341
341
  requestAnimationFrame(C);
342
342
  }
343
- function dt(l) {
343
+ function pt(l) {
344
344
  const o = G.value.find((i, c) => c === l);
345
345
  let a = M.value.find((i, c) => c === l).value;
346
346
  if (q.value.includes(l)) {
@@ -349,17 +349,17 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
349
349
  (C, z) => l === z ? { ...C, value: i } : C
350
350
  );
351
351
  }, m = function() {
352
- le.value = !0, vt({
352
+ ae.value = !0, ft({
353
353
  from: a,
354
354
  to: i,
355
355
  duration: e.value.serieToggleAnimation.durationMs,
356
356
  onUpdate: (C, z) => {
357
357
  M.value = M.value.map(
358
- (O, B) => l === B ? { ...O, value: C } : O
358
+ (O, V) => l === V ? { ...O, value: C } : O
359
359
  ), requestAnimationFrame(R);
360
360
  },
361
361
  onDone: () => {
362
- c(), le.value = !1;
362
+ c(), ae.value = !1;
363
363
  }
364
364
  });
365
365
  };
@@ -372,7 +372,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
372
372
  (m, C) => l === C ? { ...m, value: 0 } : m
373
373
  );
374
374
  }, c = function() {
375
- le.value = !0, vt({
375
+ ae.value = !0, ft({
376
376
  from: a,
377
377
  to: 0,
378
378
  duration: e.value.serieToggleAnimation.durationMs,
@@ -382,26 +382,26 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
382
382
  ), requestAnimationFrame(R);
383
383
  },
384
384
  onDone: () => {
385
- i(), requestAnimationFrame(R), le.value = !1;
385
+ i(), requestAnimationFrame(R), ae.value = !1;
386
386
  }
387
387
  });
388
388
  };
389
389
  e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
390
390
  }
391
- it("selectLegend", W.value.map((i) => ({
391
+ yt("selectLegend", W.value.map((i) => ({
392
392
  name: i.name,
393
393
  color: i.color,
394
394
  value: i.value
395
395
  })));
396
396
  }
397
- const Kt = f(() => re.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = f(() => {
398
- if (T.value && !ke.value) {
397
+ const tl = p(() => ve.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = p(() => {
398
+ if (T.value && !_e.value) {
399
399
  const l = U.value.map((t, a) => ({
400
400
  ...G.value[a],
401
401
  value: t,
402
402
  color: G.value[a].color,
403
403
  ghost: !1
404
- })), o = Kt.value - U.value.reduce((t, a) => t + a, 0);
404
+ })), o = tl.value - U.value.reduce((t, a) => t + a, 0);
405
405
  return o > 0 && l.push({
406
406
  name: "__ghost__",
407
407
  value: o,
@@ -419,29 +419,29 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
419
419
  ...l,
420
420
  seriesIndex: o
421
421
  })).filter((l, o) => !q.value.includes(o));
422
- }), ct = f(() => re.value.map((l, o) => ({
422
+ }), gt = p(() => ve.value.map((l, o) => ({
423
423
  name: l.name,
424
- color: Tt(l.color) || rt.value[o] || ne[o] || ne[o % ne.length],
424
+ color: Pt(l.color) || ht.value[o] || re[o] || re[o % re.length],
425
425
  value: (l.values || []).reduce((t, a) => t + a, 0),
426
426
  shape: "circle",
427
427
  patternIndex: o
428
428
  })).map((l, o) => ({
429
429
  ...l,
430
- proportion: l.value / re.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
430
+ proportion: l.value / ve.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
431
431
  opacity: q.value.includes(o) ? 0.5 : 1,
432
- segregate: () => !le.value && dt(o),
432
+ segregate: () => !ae.value && pt(o),
433
433
  isSegregated: q.value.includes(o)
434
- }))), Qt = f(() => ({
434
+ }))), ll = p(() => ({
435
435
  cy: "donut-div-legend",
436
436
  backgroundColor: e.value.style.chart.legend.backgroundColor,
437
437
  color: e.value.style.chart.legend.color,
438
438
  fontSize: e.value.style.chart.legend.fontSize,
439
439
  paddingBottom: 12,
440
440
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
441
- })), _ = f(() => {
441
+ })), _ = p(() => {
442
442
  const l = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, l)), t = Math.min(s.value.width * o, s.value.height * o);
443
443
  return Math.max(12, t);
444
- }), S = f(() => St({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, te.value)), Zt = f(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), el = f(() => St({
444
+ }), S = p(() => Ft({ series: W.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, le.value)), al = p(() => Math.abs(W.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), ol = p(() => Ft({
445
445
  series: [
446
446
  {
447
447
  value: 1,
@@ -453,9 +453,9 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
453
453
  absoluteValues: [1]
454
454
  }
455
455
  ]
456
- }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, te.value)), X = f(() => S.value.filter((l) => !l.ghost)), d = f(() => {
456
+ }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, le.value)), X = p(() => S.value.filter((l) => !l.ghost)), d = p(() => {
457
457
  const l = Math.max(...W.value.map((t) => t.value)), o = W.value.map((t) => t.value / l);
458
- return bl({
458
+ return $l({
459
459
  series: o,
460
460
  center: {
461
461
  x: s.value.width / 2,
@@ -465,18 +465,18 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
465
465
  hasGhost: T.value
466
466
  });
467
467
  });
468
- function ve(l) {
468
+ function ce(l) {
469
469
  return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
470
470
  }
471
- function tl(l) {
471
+ function sl(l) {
472
472
  return l.middlePoint.y > s.value.height / 2 ? P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
473
473
  }
474
- function D(l) {
474
+ function B(l) {
475
475
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
476
476
  }
477
- function Me(l, o) {
478
- const t = l.value / ll(o);
479
- return isNaN(t) ? 0 : V(
477
+ function De(l, o) {
478
+ const t = l.value / nl(o);
479
+ return isNaN(t) ? 0 : E(
480
480
  e.value.style.chart.layout.labels.percentage.formatter,
481
481
  t * 100,
482
482
  N({
@@ -487,18 +487,18 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
487
487
  { datapoint: l }
488
488
  );
489
489
  }
490
- function ll(l) {
490
+ function nl(l) {
491
491
  return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
492
492
  }
493
- const F = f(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), ze = f(() => F.value / W.value.length), ht = f(() => (l) => le.value ? l.proportion * 100 : l.value / F.value * 100), Oe = g(null), pe = g(!1);
494
- function de({ datapoint: l, seriesIndex: o }) {
495
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Pe.value = !1, Y.value = null;
493
+ const F = p(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ye = p(() => F.value / W.value.length), mt = p(() => (l) => ae.value ? l.proportion * 100 : l.value / F.value * 100), Xe = g(null), me = g(!1);
494
+ function he({ datapoint: l, seriesIndex: o }) {
495
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Me.value = !1, Y.value = null;
496
496
  }
497
- function ce({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
498
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Oe.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, Pe.value = a, Y.value = o;
497
+ function ye({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
498
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Xe.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, Me.value = a, Y.value = o;
499
499
  let i = "";
500
500
  const c = e.value.style.chart.tooltip.customFormat;
501
- if (pe.value = !1, Sl(c))
501
+ if (me.value = !1, Ml(c))
502
502
  try {
503
503
  const m = c({
504
504
  seriesIndex: t,
@@ -506,12 +506,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
506
506
  series: G.value,
507
507
  config: e.value
508
508
  });
509
- typeof m == "string" && (Fe.value = m, pe.value = !0);
509
+ typeof m == "string" && (ze.value = m, me.value = !0);
510
510
  } catch {
511
- console.warn("Custom format cannot be applied."), pe.value = !1;
511
+ console.warn("Custom format cannot be applied."), me.value = !1;
512
512
  }
513
- if (!pe.value) {
514
- if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Vt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${V(
513
+ if (!me.value) {
514
+ if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${qt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${E(
515
515
  e.value.style.chart.layout.labels.value.formatter,
516
516
  l.value,
517
517
  N({
@@ -526,7 +526,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
526
526
  seriesIndex: t
527
527
  }
528
528
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
529
- const m = V(
529
+ const m = E(
530
530
  e.value.style.chart.layout.labels.percentage.formatter,
531
531
  l.proportion * 100,
532
532
  N({
@@ -542,28 +542,28 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
542
542
  );
543
543
  e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
544
544
  }
545
- e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), Fe.value = `<div>${i}</div>`;
545
+ e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), ze.value = `<div>${i}</div>`;
546
546
  }
547
547
  }
548
- function ae(l) {
548
+ function oe(l) {
549
549
  return e.value.useBlurOnHover && ![null, void 0].includes(Y.value) && Y.value !== l ? `url(#blur_${y.value})` : "";
550
550
  }
551
- const K = f(() => {
551
+ const K = p(() => {
552
552
  const l = W.value.map((t) => ({
553
553
  name: t.name,
554
554
  color: t.color
555
555
  })), o = W.value.map((t) => t.value);
556
556
  return { head: l, body: o };
557
557
  });
558
- function yt(l = null) {
559
- cl(() => {
558
+ function Be(l = null) {
559
+ gl(() => {
560
560
  const o = K.value.head.map((i, c) => [[
561
561
  i.name
562
- ], [K.value.body[c]], [isNaN(K.value.body[c] / F.value) ? "-" : K.value.body[c] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Al(t);
563
- l ? l(a) : Tl({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
562
+ ], [K.value.body[c]], [isNaN(K.value.body[c] / F.value) ? "-" : K.value.body[c] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Ll(t);
563
+ l ? l(a) : Il({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
564
564
  });
565
565
  }
566
- const _e = f(() => {
566
+ const Ce = p(() => {
567
567
  const l = [
568
568
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
569
569
  N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
@@ -598,33 +598,33 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
598
598
  body: o,
599
599
  config: t
600
600
  };
601
- }), he = g(!1);
602
- function ft(l) {
603
- he.value = l, Ze.value += 1;
601
+ }), se = g(!1);
602
+ function bt(l) {
603
+ se.value = l, ot.value += 1;
604
604
  }
605
- const pt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
606
- function al(l) {
605
+ const wt = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
606
+ function ul(l) {
607
607
  return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
608
608
  }
609
609
  function Q(l, o) {
610
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), it("selectDatapoint", { datapoint: l, index: o });
610
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), yt("selectDatapoint", { datapoint: l, index: o });
611
611
  }
612
- function gt() {
613
- p.value.showTable = !p.value.showTable;
612
+ function kt() {
613
+ f.value.showTable = !f.value.showTable;
614
614
  }
615
- function mt() {
616
- p.value.dataLabels.show = !p.value.dataLabels.show;
615
+ function xt() {
616
+ f.value.dataLabels.show = !f.value.dataLabels.show;
617
617
  }
618
- function bt() {
619
- p.value.showTooltip = !p.value.showTooltip;
618
+ function _t() {
619
+ f.value.showTooltip = !f.value.showTooltip;
620
620
  }
621
- const $e = g(!1);
622
- function Ne() {
623
- $e.value = !$e.value;
621
+ const Ae = g(!1);
622
+ function Ve() {
623
+ Ae.value = !Ae.value;
624
624
  }
625
- async function ol({ scale: l = 2 } = {}) {
626
- if (!E.value) return;
627
- const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Nl({ domElement: E.value, base64: !0, img: !0, scale: l });
625
+ async function rl({ scale: l = 2 } = {}) {
626
+ if (!D.value) return;
627
+ const { width: o, height: t } = D.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Vl({ domElement: D.value, base64: !0, img: !0, scale: l });
628
628
  return {
629
629
  imageUri: i,
630
630
  base64: c,
@@ -634,56 +634,88 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
634
634
  aspectRatio: a
635
635
  };
636
636
  }
637
- function sl() {
638
- if (!be.value) return;
639
- const { x: l, y: o, width: t, height: a } = be.value.getBBox();
640
- ie.value && ie.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
637
+ function il() {
638
+ if (!ke.value) return;
639
+ const { x: l, y: o, width: t, height: a } = ke.value.getBBox();
640
+ de.value && de.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
641
641
  }
642
- return It({
643
- autoSize: sl,
644
- getData: Jt,
645
- getImage: ol,
646
- generatePdf: nt,
647
- generateCsv: yt,
648
- generateImage: ut,
649
- toggleTable: gt,
650
- toggleLabels: mt,
651
- toggleTooltip: bt,
652
- toggleAnnotator: Ne,
653
- toggleFullscreen: ft
642
+ const be = p(() => {
643
+ const l = e.value.table.useDialog && !e.value.table.show, o = f.value.showTable;
644
+ return {
645
+ component: l ? Rt : Yt,
646
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
647
+ props: l ? {
648
+ backgroundColor: e.value.table.th.backgroundColor,
649
+ color: e.value.table.th.color,
650
+ headerColor: e.value.table.th.color,
651
+ headerBg: e.value.table.th.backgroundColor,
652
+ isFullscreen: se.value,
653
+ fullscreenParent: D.value,
654
+ forcedWidth: Math.min(500, window.innerWidth * 0.8)
655
+ } : {
656
+ hideDetails: !0,
657
+ config: {
658
+ open: o,
659
+ maxHeight: 1e4,
660
+ body: {
661
+ backgroundColor: e.value.style.chart.backgroundColor,
662
+ color: e.value.style.chart.color
663
+ },
664
+ head: {
665
+ backgroundColor: e.value.style.chart.backgroundColor,
666
+ color: e.value.style.chart.color
667
+ }
668
+ }
669
+ }
670
+ };
671
+ });
672
+ return fe(() => f.value.showTable, (l) => {
673
+ e.value.table.show || (l && e.value.table.useDialog && ge.value ? ge.value.open() : "close" in ge.value && ge.value.close());
674
+ }), zt({
675
+ autoSize: il,
676
+ getData: el,
677
+ getImage: rl,
678
+ generatePdf: dt,
679
+ generateCsv: Be,
680
+ generateImage: ct,
681
+ toggleTable: kt,
682
+ toggleLabels: xt,
683
+ toggleTooltip: _t,
684
+ toggleAnnotator: Ve,
685
+ toggleFullscreen: bt
654
686
  }), (l, o) => (n(), r("div", {
655
687
  ref_key: "donutChart",
656
- ref: E,
657
- class: Xe(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
688
+ ref: D,
689
+ class: Re(`vue-ui-donut ${se.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
658
690
  style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
659
691
  id: `donut__${y.value}`,
660
- onMouseenter: Wt,
661
- onMouseleave: Ht
692
+ onMouseenter: Kt,
693
+ onMouseleave: Qt
662
694
  }, [
663
- e.value.userOptions.buttons.annotator && u(ie) ? (n(), ee(u(Yt), {
695
+ e.value.userOptions.buttons.annotator && u(de) ? (n(), te(u(Bt), {
664
696
  key: 0,
665
697
  color: e.value.style.chart.color,
666
698
  backgroundColor: e.value.style.chart.backgroundColor,
667
- active: $e.value,
668
- svgRef: u(ie),
669
- onClose: Ne
699
+ active: Ae.value,
700
+ svgRef: u(de),
701
+ onClose: Ve
670
702
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
671
703
  b(l.$slots, "userConfig", {}, void 0, !0),
672
- jt.value ? (n(), r("div", {
704
+ Zt.value ? (n(), r("div", {
673
705
  key: 1,
674
706
  ref_key: "noTitle",
675
- ref: We,
707
+ ref: Qe,
676
708
  class: "vue-data-ui-no-title-space",
677
709
  style: "height:36px; width: 100%;background:transparent"
678
710
  }, null, 512)) : v("", !0),
679
711
  e.value.style.chart.title.text ? (n(), r("div", {
680
712
  key: 2,
681
713
  ref_key: "chartTitle",
682
- ref: Ge,
714
+ ref: je,
683
715
  style: "width:100%;background:transparent;padding-bottom:24px"
684
716
  }, [
685
- (n(), ee(Xl, {
686
- key: `title_${He.value}`,
717
+ (n(), te(Rl, {
718
+ key: `title_${Ze.value}`,
687
719
  config: {
688
720
  title: {
689
721
  cy: "donut-div-title",
@@ -698,15 +730,15 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
698
730
  ], 512)) : v("", !0),
699
731
  h("div", {
700
732
  id: `legend-top-${y.value}`
701
- }, null, 8, El),
702
- e.value.userOptions.show && me.value && (u(lt) || u(Ie)) ? (n(), ee(u(Dt), {
733
+ }, null, 8, Wl),
734
+ e.value.userOptions.show && we.value && (u(ut) || u(Ne)) ? (n(), te(u(Vt), {
703
735
  ref_key: "details",
704
- ref: Gt,
705
- key: `user_option_${Ze.value}`,
736
+ ref: Ht,
737
+ key: `user_option_${ot.value}`,
706
738
  backgroundColor: e.value.style.chart.backgroundColor,
707
739
  color: e.value.style.chart.color,
708
- isPrinting: u(ot),
709
- isImaging: u(st),
740
+ isPrinting: u(it),
741
+ isImaging: u(vt),
710
742
  uid: y.value,
711
743
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
712
744
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -715,31 +747,31 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
715
747
  hasTable: e.value.userOptions.buttons.table,
716
748
  hasLabel: e.value.userOptions.buttons.labels,
717
749
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
718
- isFullscreen: he.value,
719
- chartElement: E.value,
750
+ isFullscreen: se.value,
751
+ chartElement: D.value,
720
752
  position: e.value.userOptions.position,
721
753
  callbacks: e.value.userOptions.callbacks,
722
- isTooltip: p.value.showTooltip,
754
+ isTooltip: f.value.showTooltip,
723
755
  titles: { ...e.value.userOptions.buttonTitles },
724
756
  hasAnnotator: e.value.userOptions.buttons.annotator,
725
- isAnnotation: $e.value,
757
+ isAnnotation: Ae.value,
726
758
  printScale: e.value.userOptions.print.scale,
727
- onToggleFullscreen: ft,
728
- onGeneratePdf: u(nt),
729
- onGenerateCsv: yt,
730
- onGenerateImage: u(ut),
731
- onToggleTable: gt,
732
- onToggleLabels: mt,
733
- onToggleTooltip: bt,
734
- onToggleAnnotator: Ne,
759
+ onToggleFullscreen: bt,
760
+ onGeneratePdf: u(dt),
761
+ onGenerateCsv: Be,
762
+ onGenerateImage: u(ct),
763
+ onToggleTable: kt,
764
+ onToggleLabels: xt,
765
+ onToggleTooltip: _t,
766
+ onToggleAnnotator: Ve,
735
767
  style: $({
736
- visibility: u(lt) ? u(Ie) ? "visible" : "hidden" : "visible"
768
+ visibility: u(ut) ? u(Ne) ? "visible" : "hidden" : "visible"
737
769
  })
738
- }, xt({ _: 2 }, [
770
+ }, Ge({ _: 2 }, [
739
771
  l.$slots.menuIcon ? {
740
772
  name: "menuIcon",
741
773
  fn: A(({ isOpen: t, color: a }) => [
742
- b(l.$slots, "menuIcon", oe(se({ isOpen: t, color: a })), void 0, !0)
774
+ b(l.$slots, "menuIcon", ne(ue({ isOpen: t, color: a })), void 0, !0)
743
775
  ]),
744
776
  key: "0"
745
777
  } : void 0,
@@ -788,32 +820,32 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
788
820
  l.$slots.optionFullscreen ? {
789
821
  name: "optionFullscreen",
790
822
  fn: A(({ toggleFullscreen: t, isFullscreen: a }) => [
791
- b(l.$slots, "optionFullscreen", oe(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
823
+ b(l.$slots, "optionFullscreen", ne(ue({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
792
824
  ]),
793
825
  key: "7"
794
826
  } : void 0,
795
827
  l.$slots.optionAnnotator ? {
796
828
  name: "optionAnnotator",
797
829
  fn: A(({ toggleAnnotator: t, isAnnotator: a }) => [
798
- b(l.$slots, "optionAnnotator", oe(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
830
+ b(l.$slots, "optionAnnotator", ne(ue({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
799
831
  ]),
800
832
  key: "8"
801
833
  } : void 0
802
834
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
803
835
  (n(), r("svg", {
804
836
  ref_key: "svgRef",
805
- ref: ie,
806
- xmlns: u(wl),
807
- class: Xe({ "vue-data-ui-fullscreen--on": he.value, "vue-data-ui-fulscreen--off": !he.value, "vue-data-ui-svg": !0 }),
837
+ ref: de,
838
+ xmlns: u(Cl),
839
+ class: Re({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value, "vue-data-ui-svg": !0 }),
808
840
  viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
809
- style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${at.value.css}`)
841
+ style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${rt.value.css}`)
810
842
  }, [
811
843
  h("g", {
812
844
  ref_key: "G",
813
- ref: be,
845
+ ref: ke,
814
846
  class: "vue-data-ui-g"
815
847
  }, [
816
- De(u(Nt)),
848
+ Te(u(Et)),
817
849
  l.$slots["chart-background"] ? (n(), r("foreignObject", {
818
850
  key: 0,
819
851
  x: 0,
@@ -825,34 +857,34 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
825
857
  }
826
858
  }, [
827
859
  b(l.$slots, "chart-background", {}, void 0, !0)
828
- ], 8, Gl)) : v("", !0),
829
- e.value.type === "classic" && !isNaN(te.value / _.value) ? (n(), r("defs", ql, [
860
+ ], 8, jl)) : v("", !0),
861
+ e.value.type === "classic" && !isNaN(le.value / _.value) ? (n(), r("defs", Jl, [
830
862
  e.value.style.chart.useGradient ? (n(), r("radialGradient", {
831
863
  key: 0,
832
864
  id: `gradient_${y.value}`
833
865
  }, [
834
866
  h("stop", {
835
867
  offset: "0%",
836
- "stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
868
+ "stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
837
869
  "stop-opacity": "0"
838
- }, null, 8, Wl),
870
+ }, null, 8, Ql),
839
871
  h("stop", {
840
- offset: `${(1 - te.value / _.value) * 100}%`,
841
- "stop-color": u(Ce)("#FFFFFF", 0),
872
+ offset: `${(1 - le.value / _.value) * 100}%`,
873
+ "stop-color": u(Pe)("#FFFFFF", 0),
842
874
  "stop-opacity": "0"
843
- }, null, 8, Hl),
875
+ }, null, 8, Zl),
844
876
  h("stop", {
845
- offset: `${(1 - te.value / _.value / 2) * 100}%`,
846
- "stop-color": u(Ce)("#FFFFFF", e.value.style.chart.gradientIntensity)
847
- }, null, 8, jl),
877
+ offset: `${(1 - le.value / _.value / 2) * 100}%`,
878
+ "stop-color": u(Pe)("#FFFFFF", e.value.style.chart.gradientIntensity)
879
+ }, null, 8, ea),
848
880
  h("stop", {
849
881
  offset: "100%",
850
- "stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
882
+ "stop-color": u(Pe)(e.value.style.chart.backgroundColor, 0),
851
883
  "stop-opacity": "0"
852
- }, null, 8, Jl)
853
- ], 8, Ul)) : v("", !0)
884
+ }, null, 8, ta)
885
+ ], 8, Kl)) : v("", !0)
854
886
  ])) : v("", !0),
855
- e.value.type === "polar" ? (n(), r("defs", Kl, [
887
+ e.value.type === "polar" ? (n(), r("defs", la, [
856
888
  (n(!0), r(w, null, L(d.value, (t, a) => (n(), r("radialGradient", {
857
889
  id: `polar_gradient_${a}_${y.value}`,
858
890
  cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
@@ -861,14 +893,14 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
861
893
  }, [
862
894
  h("stop", {
863
895
  offset: "0%",
864
- "stop-color": u(kl)(S.value[a].color, 0.05),
896
+ "stop-color": u(Al)(S.value[a].color, 0.05),
865
897
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
866
- }, null, 8, Zl),
898
+ }, null, 8, oa),
867
899
  h("stop", {
868
900
  offset: "100%",
869
901
  "stop-color": S.value[a].color
870
- }, null, 8, ea)
871
- ], 8, Ql))), 256))
902
+ }, null, 8, sa)
903
+ ], 8, aa))), 256))
872
904
  ])) : v("", !0),
873
905
  h("defs", null, [
874
906
  h("filter", {
@@ -882,12 +914,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
882
914
  in: "SourceGraphic",
883
915
  stdDeviation: 2,
884
916
  id: `blur_std_${y.value}`
885
- }, null, 8, la),
886
- o[5] || (o[5] = h("feColorMatrix", {
917
+ }, null, 8, ua),
918
+ o[7] || (o[7] = h("feColorMatrix", {
887
919
  type: "saturate",
888
920
  values: "0"
889
921
  }, null, -1))
890
- ], 8, ta),
922
+ ], 8, na),
891
923
  h("filter", {
892
924
  id: `shadow_${y.value}`,
893
925
  "color-interpolation-filters": "sRGB"
@@ -898,8 +930,8 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
898
930
  stdDeviation: "10",
899
931
  "flood-opacity": "0.5",
900
932
  "flood-color": e.value.style.chart.layout.donut.shadowColor
901
- }, null, 8, oa)
902
- ], 8, aa),
933
+ }, null, 8, ia)
934
+ ], 8, ra),
903
935
  h("filter", {
904
936
  id: `drop_shadow_${y.value}`,
905
937
  "color-interpolation-filters": "sRGB",
@@ -914,23 +946,23 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
914
946
  stdDeviation: "3",
915
947
  "flood-opacity": "1",
916
948
  "flood-color": e.value.style.chart.layout.donut.shadowColor
917
- }, null, 8, na)
918
- ], 8, sa)
949
+ }, null, 8, da)
950
+ ], 8, va)
919
951
  ]),
920
952
  e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
921
- D(t) && p.value.dataLabels.show ? (n(), r("path", {
953
+ B(t) && f.value.dataLabels.show ? (n(), r("path", {
922
954
  key: 0,
923
- d: u(xl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, te.value, 12, e.value.style.chart.layout.curvedMarkers),
955
+ d: u(Tl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, le.value, 12, e.value.style.chart.layout.curvedMarkers),
924
956
  stroke: t.color,
925
957
  "stroke-width": "1",
926
958
  "stroke-linecap": "round",
927
959
  "stroke-linejoin": "round",
928
960
  fill: "none",
929
- filter: ae(a)
930
- }, null, 8, ua)) : v("", !0)
961
+ filter: oe(a)
962
+ }, null, 8, ca)) : v("", !0)
931
963
  ]))), 256)) : v("", !0),
932
964
  e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
933
- D(t) && p.value.dataLabels.show ? (n(), r("path", {
965
+ B(t) && f.value.dataLabels.show ? (n(), r("path", {
934
966
  key: 0,
935
967
  d: `M ${u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${d.value[a].middlePoint.x},${d.value[a].middlePoint.y}`,
936
968
  stroke: t.color,
@@ -938,11 +970,11 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
938
970
  "stroke-linecap": "round",
939
971
  "stroke-linejoin": "round",
940
972
  fill: "none",
941
- filter: ae(a),
973
+ filter: oe(a),
942
974
  style: $({
943
975
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
944
976
  })
945
- }, null, 12, ra)) : v("", !0)
977
+ }, null, 12, ha)) : v("", !0)
946
978
  ]))), 256)) : v("", !0),
947
979
  e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
948
980
  key: 5,
@@ -951,12 +983,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
951
983
  r: _.value <= 0 ? 10 : _.value,
952
984
  fill: e.value.style.chart.backgroundColor,
953
985
  filter: `url(#shadow_${y.value})`
954
- }, null, 8, ia)) : v("", !0),
955
- l.$slots.pattern ? (n(), r("g", va, [
956
- (n(!0), r(w, null, L(Re.dataset, (t, a) => (n(), r("defs", {
986
+ }, null, 8, ya)) : v("", !0),
987
+ l.$slots.pattern ? (n(), r("g", fa, [
988
+ (n(!0), r(w, null, L(He.dataset, (t, a) => (n(), r("defs", {
957
989
  key: `pattern-${t.patternIndex}`
958
990
  }, [
959
- b(l.$slots, "pattern", _t({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
991
+ b(l.$slots, "pattern", qe({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
960
992
  ]))), 128))
961
993
  ])) : v("", !0),
962
994
  F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
@@ -964,28 +996,28 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
964
996
  stroke: e.value.style.chart.backgroundColor,
965
997
  d: t.arcSlice,
966
998
  fill: "#FFFFFF"
967
- }, null, 8, da))), 256)),
999
+ }, null, 8, pa))), 256)),
968
1000
  (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
969
1001
  class: "vue-ui-donut-arc-path",
970
1002
  d: t.arcSlice,
971
1003
  fill: t.color,
972
1004
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
973
1005
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
974
- filter: ae(a)
975
- }, null, 8, ca))), 256)),
976
- l.$slots.pattern ? (n(), r("g", ha, [
1006
+ filter: oe(a)
1007
+ }, null, 8, ga))), 256)),
1008
+ l.$slots.pattern ? (n(), r("g", ma, [
977
1009
  (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
978
1010
  class: "vue-ui-donut-arc-path",
979
1011
  d: t.arcSlice,
980
1012
  fill: `url(#${t.pattern})`,
981
1013
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
982
1014
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
983
- filter: ae(a)
984
- }, null, 8, ya))), 256))
1015
+ filter: oe(a)
1016
+ }, null, 8, ba))), 256))
985
1017
  ])) : v("", !0)
986
1018
  ], 64)) : v("", !0),
987
1019
  F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
988
- S.value.length > 1 ? (n(), r("g", fa, [
1020
+ S.value.length > 1 ? (n(), r("g", wa, [
989
1021
  (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
990
1022
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
991
1023
  d: d.value[a].path,
@@ -993,8 +1025,8 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
993
1025
  style: $({
994
1026
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
995
1027
  })
996
- }, null, 12, pa))), 256)),
997
- e.value.style.chart.layout.donut.useShadow ? (n(), r("g", ga, [
1028
+ }, null, 12, ka))), 256)),
1029
+ e.value.style.chart.layout.donut.useShadow ? (n(), r("g", xa, [
998
1030
  (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
999
1031
  class: "vue-ui-donut-arc-path",
1000
1032
  d: d.value[a].path,
@@ -1005,21 +1037,21 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1005
1037
  style: $({
1006
1038
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1007
1039
  })
1008
- }, null, 12, ma))), 256))
1040
+ }, null, 12, _a))), 256))
1009
1041
  ])) : v("", !0),
1010
- l.$slots.pattern ? (n(), r("g", ba, [
1042
+ l.$slots.pattern ? (n(), r("g", $a, [
1011
1043
  (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
1012
1044
  class: "vue-ui-donut-arc-path",
1013
1045
  d: d.value[a].path,
1014
1046
  fill: `url(#${t.pattern})`,
1015
1047
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1016
1048
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1017
- filter: ae(a),
1049
+ filter: oe(a),
1018
1050
  style: $({
1019
1051
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1020
1052
  transformOrigin: "center"
1021
1053
  })
1022
- }, null, 12, wa))), 256))
1054
+ }, null, 12, Ca))), 256))
1023
1055
  ])) : v("", !0),
1024
1056
  (n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
1025
1057
  class: "vue-ui-donut-arc-path",
@@ -1027,12 +1059,12 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1027
1059
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
1028
1060
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1029
1061
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1030
- filter: ae(a),
1062
+ filter: oe(a),
1031
1063
  style: $({
1032
1064
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1033
1065
  })
1034
- }, null, 12, ka))), 256))
1035
- ])) : (n(), r("g", xa, [
1066
+ }, null, 12, Aa))), 256))
1067
+ ])) : (n(), r("g", Ta, [
1036
1068
  l.$slots.pattern ? (n(), r("circle", {
1037
1069
  key: 0,
1038
1070
  cx: s.value.width / 2,
@@ -1041,7 +1073,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1041
1073
  fill: `url(#pattern_${y.value}_${S.value[0].patternIndex})`,
1042
1074
  stroke: e.value.style.chart.backgroundColor,
1043
1075
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1044
- }, null, 8, _a)) : v("", !0),
1076
+ }, null, 8, Sa)) : v("", !0),
1045
1077
  h("circle", {
1046
1078
  cx: s.value.width / 2,
1047
1079
  cy: s.value.height / 2,
@@ -1049,17 +1081,17 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1049
1081
  fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : S.value[0].color,
1050
1082
  stroke: e.value.style.chart.backgroundColor,
1051
1083
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1052
- }, null, 8, $a)
1084
+ }, null, 8, Pa)
1053
1085
  ]))
1054
1086
  ], 64)) : (n(), r(w, { key: 9 }, [
1055
- e.value.type === "classic" && !Zt.value ? (n(), r("g", Ca, [
1056
- (n(!0), r(w, null, L(el.value, (t, a) => (n(), r("path", {
1087
+ e.value.type === "classic" && !al.value ? (n(), r("g", Fa, [
1088
+ (n(!0), r(w, null, L(ol.value, (t, a) => (n(), r("path", {
1057
1089
  class: "vue-ui-donut-arc-path",
1058
1090
  d: t.arcSlice,
1059
1091
  fill: t.color,
1060
1092
  stroke: e.value.style.chart.backgroundColor,
1061
1093
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1062
- }, null, 8, Aa))), 256))
1094
+ }, null, 8, La))), 256))
1063
1095
  ])) : v("", !0),
1064
1096
  h("circle", {
1065
1097
  cx: s.value.width / 2,
@@ -1067,7 +1099,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1067
1099
  r: _.value <= 0 ? 10 : _.value,
1068
1100
  fill: "transparent",
1069
1101
  stroke: e.value.style.chart.backgroundColor
1070
- }, null, 8, Ta)
1102
+ }, null, 8, Ia)
1071
1103
  ], 64)),
1072
1104
  e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
1073
1105
  key: 10,
@@ -1078,52 +1110,52 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1078
1110
  _.value <= 0 ? 10 : _.value
1079
1111
  ),
1080
1112
  fill: `url(#gradient_${y.value})`
1081
- }, null, 8, Sa)) : v("", !0),
1113
+ }, null, 8, Ma)) : v("", !0),
1082
1114
  h("circle", {
1083
1115
  ref_key: "circle_hollow",
1084
- ref: Rt,
1116
+ ref: Wt,
1085
1117
  style: { pointerEvents: "none" },
1086
1118
  fill: "none",
1087
1119
  cx: s.value.width / 2,
1088
1120
  cy: s.value.height / 2,
1089
- r: Math.max(0.1, te.value * 1.7)
1090
- }, null, 8, Pa),
1121
+ r: Math.max(0.1, le.value * 1.7)
1122
+ }, null, 8, za),
1091
1123
  F.value ? (n(), r(w, { key: 11 }, [
1092
- S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Fa, [
1124
+ S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Oa, [
1093
1125
  (n(!0), r(w, null, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("path", {
1094
1126
  d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
1095
1127
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1096
1128
  fill: Y.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1097
- onMouseenter: (i) => ce({
1129
+ onMouseenter: (i) => ye({
1098
1130
  datapoint: t,
1099
1131
  relativeIndex: a,
1100
1132
  seriesIndex: t.seriesIndex,
1101
1133
  show: !0
1102
1134
  }),
1103
- onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
1135
+ onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
1104
1136
  onClick: (i) => Q(t, a)
1105
- }, null, 40, La))), 256))
1106
- ])) : (n(), r("g", Ia, [
1137
+ }, null, 40, Na))), 256))
1138
+ ])) : (n(), r("g", Da, [
1107
1139
  h("circle", {
1108
1140
  cx: s.value.width / 2,
1109
1141
  cy: s.value.height / 2,
1110
1142
  r: _.value,
1111
1143
  fill: "transparent",
1112
- onMouseenter: o[0] || (o[0] = (t) => ce({
1144
+ onMouseenter: o[0] || (o[0] = (t) => ye({
1113
1145
  datapoint: S.value[0],
1114
1146
  relativeIndex: 0,
1115
1147
  seriesIndex: S.value[0].seriesIndex,
1116
1148
  show: !0
1117
1149
  })),
1118
- onMouseleave: o[1] || (o[1] = (t) => de({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
1150
+ onMouseleave: o[1] || (o[1] = (t) => he({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
1119
1151
  onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
1120
- }, null, 40, Ma)
1152
+ }, null, 40, Ya)
1121
1153
  ]))
1122
1154
  ], 64)) : v("", !0),
1123
1155
  e.value.type === "classic" ? (n(), r("g", {
1124
1156
  key: 12,
1125
1157
  ref_key: "G_hollow",
1126
- ref: Et,
1158
+ ref: Ut,
1127
1159
  class: "vue-data-ui-donut-hollow-labels"
1128
1160
  }, [
1129
1161
  e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
@@ -1134,7 +1166,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1134
1166
  fill: e.value.style.chart.layout.labels.hollow.total.color,
1135
1167
  "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
1136
1168
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
1137
- }, I(e.value.style.chart.layout.labels.hollow.total.text), 13, za)) : v("", !0),
1169
+ }, I(e.value.style.chart.layout.labels.hollow.total.text), 13, Xa)) : v("", !0),
1138
1170
  e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
1139
1171
  key: 1,
1140
1172
  "text-anchor": "middle",
@@ -1143,7 +1175,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1143
1175
  fill: e.value.style.chart.layout.labels.hollow.total.value.color,
1144
1176
  "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
1145
1177
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
1146
- }, I(u(V)(
1178
+ }, I(u(E)(
1147
1179
  e.value.style.chart.layout.labels.hollow.total.value.formatter,
1148
1180
  F.value,
1149
1181
  u(N)({
@@ -1151,7 +1183,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1151
1183
  v: F.value,
1152
1184
  s: e.value.style.chart.layout.labels.hollow.total.value.suffix
1153
1185
  })
1154
- )), 13, Oa)) : v("", !0),
1186
+ )), 13, Ba)) : v("", !0),
1155
1187
  e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
1156
1188
  key: 2,
1157
1189
  "text-anchor": "middle",
@@ -1160,7 +1192,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1160
1192
  fill: e.value.style.chart.layout.labels.hollow.average.color,
1161
1193
  "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
1162
1194
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
1163
- }, I(e.value.style.chart.layout.labels.hollow.average.text), 13, Na)) : v("", !0),
1195
+ }, I(e.value.style.chart.layout.labels.hollow.average.text), 13, Va)) : v("", !0),
1164
1196
  e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
1165
1197
  key: 3,
1166
1198
  "text-anchor": "middle",
@@ -1169,65 +1201,65 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1169
1201
  fill: e.value.style.chart.layout.labels.hollow.average.value.color,
1170
1202
  "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
1171
1203
  style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
1172
- }, I(le.value || T.value ? "--" : u(V)(
1204
+ }, I(ae.value || T.value ? "--" : u(E)(
1173
1205
  e.value.style.chart.layout.labels.hollow.average.value.formatter,
1174
- ze.value,
1206
+ Ye.value,
1175
1207
  u(N)({
1176
1208
  p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
1177
- v: ze.value,
1209
+ v: Ye.value,
1178
1210
  s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
1179
1211
  r: e.value.style.chart.layout.labels.hollow.average.value.rounding
1180
1212
  })
1181
- )), 13, Ya)) : v("", !0)
1213
+ )), 13, Ea)) : v("", !0)
1182
1214
  ], 512)) : v("", !0),
1183
1215
  (n(!0), r(w, null, L(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
1184
- filter: ae(a),
1185
- class: Xe({ animated: e.value.useCssAnimation }),
1216
+ filter: oe(a),
1217
+ class: Re({ animated: e.value.useCssAnimation }),
1186
1218
  key: t.seriesIndex
1187
1219
  }, [
1188
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Da, [
1220
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Ga, [
1189
1221
  (n(), r("foreignObject", {
1190
1222
  x: u(x)(t, !0).anchor === "end" ? u(x)(t).x - 120 : u(x)(t, !0).anchor === "middle" ? u(x)(t).x - 60 : u(x)(t).x,
1191
- y: u(fe)(t) - (pt.value ? 20 : 0),
1223
+ y: u(pe)(t) - (wt.value ? 20 : 0),
1192
1224
  width: "120",
1193
1225
  height: "60",
1194
1226
  style: { overflow: "visible" }
1195
1227
  }, [
1196
1228
  h("div", null, [
1197
- b(l.$slots, "dataLabel", _t({ ref_for: !0 }, {
1229
+ b(l.$slots, "dataLabel", qe({ ref_for: !0 }, {
1198
1230
  datapoint: t,
1199
1231
  isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
1200
- isSafari: pt.value,
1201
- isVisible: D(t) && p.value.dataLabels.show,
1232
+ isSafari: wt.value,
1233
+ isVisible: B(t) && f.value.dataLabels.show,
1202
1234
  textAlign: u(x)(t, !0, 16, !0).anchor,
1203
1235
  flexAlign: u(x)(t, !0, 16).anchor,
1204
- percentage: Me(t, X.value)
1236
+ percentage: De(t, X.value)
1205
1237
  }), void 0, !0)
1206
1238
  ])
1207
- ], 8, Ba))
1208
- ])) : (n(), r("g", Va, [
1239
+ ], 8, qa))
1240
+ ])) : (n(), r("g", Ua, [
1209
1241
  e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
1210
- D(t) && p.value.dataLabels.show ? (n(), r("circle", {
1242
+ B(t) && f.value.dataLabels.show ? (n(), r("circle", {
1211
1243
  key: 0,
1212
1244
  cx: u(x)(t).x,
1213
- cy: u(fe)(t) - 3.5,
1245
+ cy: u(pe)(t) - 3.5,
1214
1246
  fill: t.color,
1215
1247
  stroke: e.value.style.chart.backgroundColor,
1216
1248
  "stroke-width": 1,
1217
1249
  r: 3,
1218
1250
  filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${y.value})`,
1219
1251
  onClick: (i) => Q(t, a),
1220
- onMouseenter: (i) => ce({
1252
+ onMouseenter: (i) => ye({
1221
1253
  datapoint: t,
1222
1254
  relativeIndex: a,
1223
1255
  seriesIndex: t.seriesIndex,
1224
1256
  show: !0
1225
1257
  }),
1226
- onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
1227
- }, null, 40, Ea)) : v("", !0)
1258
+ onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
1259
+ }, null, 40, Wa)) : v("", !0)
1228
1260
  ], 64)) : v("", !0),
1229
1261
  e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
1230
- D(t) && p.value.dataLabels.show ? (n(), r("circle", {
1262
+ B(t) && f.value.dataLabels.show ? (n(), r("circle", {
1231
1263
  key: 0,
1232
1264
  cx: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1233
1265
  cy: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
@@ -1237,36 +1269,36 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1237
1269
  r: 3,
1238
1270
  filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${y.value})`,
1239
1271
  onClick: (i) => Q(t, a),
1240
- onMouseenter: (i) => ce({
1272
+ onMouseenter: (i) => ye({
1241
1273
  datapoint: t,
1242
1274
  relativeIndex: a,
1243
1275
  seriesIndex: t.seriesIndex,
1244
1276
  show: !0
1245
1277
  }),
1246
- onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
1278
+ onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
1247
1279
  style: $({
1248
1280
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1249
1281
  })
1250
- }, null, 44, Ra)) : v("", !0)
1282
+ }, null, 44, Ha)) : v("", !0)
1251
1283
  ], 64)) : v("", !0),
1252
1284
  e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
1253
- $t(h("text", {
1285
+ At(h("text", {
1254
1286
  class: "vue-data-ui-datalabel-value",
1255
1287
  "text-anchor": u(x)(t, !0, 12).anchor,
1256
1288
  x: u(x)(t, !0, 12).x,
1257
- y: u(fe)(t),
1289
+ y: u(pe)(t),
1258
1290
  fill: e.value.style.chart.layout.labels.percentage.color,
1259
- "font-size": we.value + "px",
1291
+ "font-size": xe.value + "px",
1260
1292
  style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1261
1293
  onClick: (i) => Q(t, a),
1262
- onMouseenter: (i) => ce({
1294
+ onMouseenter: (i) => ye({
1263
1295
  datapoint: t,
1264
1296
  relativeIndex: a,
1265
1297
  seriesIndex: t.seriesIndex,
1266
1298
  show: !0
1267
1299
  }),
1268
- onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
1269
- }, I(Me(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
1300
+ onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
1301
+ }, I(De(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
1270
1302
  e.value.style.chart.layout.labels.value.formatter,
1271
1303
  t.value,
1272
1304
  u(N)({
@@ -1276,52 +1308,52 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1276
1308
  r: e.value.style.chart.layout.labels.value.rounding
1277
1309
  }),
1278
1310
  { datapoint: t }
1279
- )})` : ""), 45, Ga), [
1280
- [Ct, D(t) && p.value.dataLabels.show]
1311
+ )})` : ""), 45, ja), [
1312
+ [Tt, B(t) && f.value.dataLabels.show]
1281
1313
  ]),
1282
- $t(h("text", {
1314
+ At(h("text", {
1283
1315
  class: "vue-data-ui-datalabel-name",
1284
1316
  "text-anchor": u(x)(t).anchor,
1285
1317
  x: u(x)(t, !0, 12).x,
1286
- y: u(fe)(t) + J.value * 1.2,
1318
+ y: u(pe)(t) + J.value * 1.2,
1287
1319
  fill: e.value.style.chart.layout.labels.name.color,
1288
1320
  "font-size": J.value + "px",
1289
1321
  style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1290
1322
  onClick: (i) => Q(t, a),
1291
- innerHTML: u(Pt)({
1323
+ innerHTML: u(Lt)({
1292
1324
  content: t.name,
1293
1325
  fontSize: J.value,
1294
1326
  fill: e.value.style.chart.layout.labels.name.color,
1295
1327
  x: u(x)(t, !0, 12).x,
1296
- y: u(fe)(t) + J.value
1328
+ y: u(pe)(t) + J.value
1297
1329
  })
1298
- }, null, 12, qa), [
1299
- [Ct, D(t) && p.value.dataLabels.show]
1330
+ }, null, 12, Ja), [
1331
+ [Tt, B(t) && f.value.dataLabels.show]
1300
1332
  ]),
1301
- o[6] || (o[6] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1333
+ o[8] || (o[8] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1302
1334
  ], 64)) : v("", !0),
1303
1335
  e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
1304
- D(t) && p.value.dataLabels.show ? (n(), r("text", {
1336
+ B(t) && f.value.dataLabels.show ? (n(), r("text", {
1305
1337
  key: 0,
1306
1338
  class: "vue-data-ui-datalabel-value",
1307
- "text-anchor": ve(d.value[a].middlePoint),
1339
+ "text-anchor": ce(d.value[a].middlePoint),
1308
1340
  x: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1309
1341
  y: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
1310
1342
  fill: e.value.style.chart.layout.labels.percentage.color,
1311
- "font-size": we.value,
1343
+ "font-size": xe.value,
1312
1344
  style: $({
1313
1345
  transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1314
1346
  fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
1315
1347
  }),
1316
1348
  onClick: (i) => Q(t, a),
1317
- onMouseenter: (i) => ce({
1349
+ onMouseenter: (i) => ye({
1318
1350
  datapoint: t,
1319
1351
  relativeIndex: a,
1320
1352
  seriesIndex: t.seriesIndex,
1321
1353
  show: !0
1322
1354
  }),
1323
- onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
1324
- }, I(Me(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
1355
+ onMouseleave: (i) => he({ datapoint: t, seriesIndex: t.seriesIndex })
1356
+ }, I(De(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(E)(
1325
1357
  e.value.style.chart.layout.labels.value.formatter,
1326
1358
  t.value,
1327
1359
  u(N)({
@@ -1331,11 +1363,11 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1331
1363
  r: e.value.style.chart.layout.labels.value.rounding
1332
1364
  }),
1333
1365
  { datapoint: t }
1334
- )})` : ""), 45, Ua)) : v("", !0),
1335
- D(t) && p.value.dataLabels.show ? (n(), r("text", {
1366
+ )})` : ""), 45, Ka)) : v("", !0),
1367
+ B(t) && f.value.dataLabels.show ? (n(), r("text", {
1336
1368
  key: 1,
1337
1369
  class: "vue-data-ui-datalabel-name",
1338
- "text-anchor": ve(d.value[a].middlePoint),
1370
+ "text-anchor": ce(d.value[a].middlePoint),
1339
1371
  x: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1340
1372
  y: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2,
1341
1373
  fill: e.value.style.chart.layout.labels.name.color,
@@ -1345,22 +1377,22 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1345
1377
  fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
1346
1378
  }),
1347
1379
  onClick: (i) => Q(t, a),
1348
- innerHTML: u(Pt)({
1380
+ innerHTML: u(Lt)({
1349
1381
  content: t.name,
1350
- fontSize: we.value,
1382
+ fontSize: xe.value,
1351
1383
  fill: e.value.style.chart.layout.labels.name.color,
1352
1384
  x: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1353
1385
  y: u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2
1354
1386
  })
1355
- }, null, 12, Wa)) : v("", !0),
1356
- o[7] || (o[7] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1387
+ }, null, 12, Qa)) : v("", !0),
1388
+ o[9] || (o[9] = Se(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
1357
1389
  ], 64)) : v("", !0)
1358
1390
  ])),
1359
- p.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", Ha, [
1360
- D(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
1391
+ f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", Za, [
1392
+ B(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
1361
1393
  key: 0,
1362
1394
  x: e.value.style.chart.comments.offsetX + (u(x)(t, !0).anchor === "end" ? u(x)(t).x - e.value.style.chart.comments.width : u(x)(t, !0).anchor === "middle" ? u(x)(t).x - e.value.style.chart.comments.width / 2 : u(x)(t).x),
1363
- y: u(fe)(t) + 24 + e.value.style.chart.comments.offsetY,
1395
+ y: u(pe)(t) + 24 + e.value.style.chart.comments.offsetY,
1364
1396
  width: e.value.style.chart.comments.width,
1365
1397
  height: "200",
1366
1398
  style: { overflow: "visible", "pointer-events": "none" }
@@ -1370,11 +1402,11 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1370
1402
  plot: { ...t, textAlign: u(x)(t, !0, 16, !0).anchor, flexAlign: u(x)(t, !0, 16).anchor, isFirstLoad: T.value }
1371
1403
  }, void 0, !0)
1372
1404
  ])
1373
- ], 8, ja)) : v("", !0),
1374
- D(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
1405
+ ], 8, eo)) : v("", !0),
1406
+ B(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
1375
1407
  key: 1,
1376
- x: e.value.style.chart.comments.offsetX + (ve(d.value[a].middlePoint) === "end" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : ve(d.value[a].middlePoint) === "middle" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1377
- y: tl(d.value[a]) + e.value.style.chart.comments.offsetY,
1408
+ x: e.value.style.chart.comments.offsetX + (ce(d.value[a].middlePoint) === "end" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : ce(d.value[a].middlePoint) === "middle" ? u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1409
+ y: sl(d.value[a]) + e.value.style.chart.comments.offsetY,
1378
1410
  width: e.value.style.chart.comments.width,
1379
1411
  height: "200",
1380
1412
  style: $({
@@ -1385,40 +1417,40 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1385
1417
  }, [
1386
1418
  h("div", null, [
1387
1419
  b(l.$slots, "plot-comment", {
1388
- plot: { ...t, textAlign: ve(d.value[a].middlePoint), flexAlign: ve(d.value[a].middlePoint), isFirstLoad: T.value }
1420
+ plot: { ...t, textAlign: ce(d.value[a].middlePoint), flexAlign: ce(d.value[a].middlePoint), isFirstLoad: T.value }
1389
1421
  }, void 0, !0)
1390
1422
  ])
1391
- ], 12, Ja)) : v("", !0)
1423
+ ], 12, to)) : v("", !0)
1392
1424
  ])) : v("", !0)
1393
- ], 10, Xa))), 128)),
1425
+ ], 10, Ra))), 128)),
1394
1426
  b(l.$slots, "svg", { svg: s.value }, void 0, !0)
1395
1427
  ], 512)
1396
- ], 14, Rl)),
1397
- l.$slots.watermark ? (n(), r("div", Ka, [
1398
- b(l.$slots, "watermark", oe(se({ isPrinting: u(ot) || u(st) })), void 0, !0)
1428
+ ], 14, Hl)),
1429
+ l.$slots.watermark ? (n(), r("div", lo, [
1430
+ b(l.$slots, "watermark", ne(ue({ isPrinting: u(it) || u(vt) })), void 0, !0)
1399
1431
  ])) : v("", !0),
1400
1432
  h("div", {
1401
1433
  id: `legend-bottom-${y.value}`
1402
- }, null, 8, Qa),
1403
- Ke.value ? (n(), ee(dl, {
1434
+ }, null, 8, ao),
1435
+ lt.value ? (n(), te(fl, {
1404
1436
  key: 5,
1405
1437
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
1406
1438
  }, [
1407
1439
  h("div", {
1408
1440
  ref_key: "chartLegend",
1409
- ref: qe
1441
+ ref: Je
1410
1442
  }, [
1411
- e.value.style.chart.legend.show ? (n(), ee(Dl, {
1412
- key: `legend_${Je.value}`,
1413
- legendSet: ct.value,
1414
- config: Qt.value,
1415
- onClickMarker: o[3] || (o[3] = ({ i: t }) => dt(t))
1416
- }, xt({
1443
+ e.value.style.chart.legend.show ? (n(), te(Gl, {
1444
+ key: `legend_${tt.value}`,
1445
+ legendSet: gt.value,
1446
+ config: ll.value,
1447
+ onClickMarker: o[3] || (o[3] = ({ i: t }) => pt(t))
1448
+ }, Ge({
1417
1449
  item: A(({ legend: t, index: a }) => [
1418
1450
  h("div", {
1419
1451
  style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
1420
1452
  onClick: (i) => t.segregate()
1421
- }, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? u(V)(
1453
+ }, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? u(E)(
1422
1454
  e.value.style.chart.layout.labels.value.formatter,
1423
1455
  t.value,
1424
1456
  u(N)({
@@ -1431,22 +1463,22 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1431
1463
  datapoint: t,
1432
1464
  index: a
1433
1465
  }
1434
- ) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${al(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : u(V)(
1466
+ ) : "") + " " + I(e.value.style.chart.legend.showPercentage ? q.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${ul(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : u(E)(
1435
1467
  e.value.style.chart.layout.labels.percentage.formatter,
1436
- ht.value(t),
1468
+ mt.value(t),
1437
1469
  u(N)({
1438
- v: ht.value(t),
1470
+ v: mt.value(t),
1439
1471
  s: "%",
1440
1472
  r: e.value.style.chart.legend.roundingPercentage
1441
1473
  })
1442
- )}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Za)
1474
+ )}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, oo)
1443
1475
  ]),
1444
1476
  _: 2
1445
1477
  }, [
1446
1478
  l.$slots.pattern ? {
1447
1479
  name: "legend-pattern",
1448
1480
  fn: A(({ legend: t, index: a }) => [
1449
- De(Yl, {
1481
+ Te(El, {
1450
1482
  shape: t.shape,
1451
1483
  radius: 30,
1452
1484
  stroke: "none",
@@ -1457,26 +1489,26 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1457
1489
  key: "0"
1458
1490
  } : void 0
1459
1491
  ]), 1032, ["legendSet", "config"])) : v("", !0),
1460
- b(l.$slots, "legend", { legend: ct.value }, void 0, !0)
1492
+ b(l.$slots, "legend", { legend: gt.value }, void 0, !0)
1461
1493
  ], 512)
1462
1494
  ], 8, ["to"])) : v("", !0),
1463
1495
  l.$slots.source ? (n(), r("div", {
1464
1496
  key: 6,
1465
1497
  ref_key: "source",
1466
- ref: Ue,
1498
+ ref: Ke,
1467
1499
  dir: "auto"
1468
1500
  }, [
1469
1501
  b(l.$slots, "source", {}, void 0, !0)
1470
1502
  ], 512)) : v("", !0),
1471
- l.$slots.hollow ? (n(), r("div", eo, [
1472
- b(l.$slots, "hollow", oe(se({
1503
+ l.$slots.hollow ? (n(), r("div", so, [
1504
+ b(l.$slots, "hollow", ne(ue({
1473
1505
  total: F.value,
1474
- average: ze.value,
1506
+ average: Ye.value,
1475
1507
  dataset: G.value
1476
1508
  })), void 0, !0)
1477
1509
  ])) : v("", !0),
1478
- De(u(Xt), {
1479
- show: p.value.showTooltip && Pe.value,
1510
+ Te(u(Nt), {
1511
+ show: f.value.showTooltip && Me.value,
1480
1512
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1481
1513
  color: e.value.style.chart.tooltip.color,
1482
1514
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1486,55 +1518,45 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1486
1518
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1487
1519
  position: e.value.style.chart.tooltip.position,
1488
1520
  offsetY: e.value.style.chart.tooltip.offsetY,
1489
- parent: E.value,
1490
- content: Fe.value,
1491
- isCustom: pe.value,
1492
- isFullscreen: he.value,
1521
+ parent: D.value,
1522
+ content: ze.value,
1523
+ isCustom: me.value,
1524
+ isFullscreen: se.value,
1493
1525
  smooth: e.value.style.chart.tooltip.smooth,
1494
1526
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1495
1527
  }, {
1496
1528
  "tooltip-before": A(() => [
1497
- b(l.$slots, "tooltip-before", oe(se({ ...Oe.value })), void 0, !0)
1529
+ b(l.$slots, "tooltip-before", ne(ue({ ...Xe.value })), void 0, !0)
1498
1530
  ]),
1499
1531
  "tooltip-after": A(() => [
1500
- b(l.$slots, "tooltip-after", oe(se({ ...Oe.value })), void 0, !0)
1532
+ b(l.$slots, "tooltip-after", ne(ue({ ...Xe.value })), void 0, !0)
1501
1533
  ]),
1502
1534
  _: 3
1503
1535
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
1504
- me.value ? (n(), ee(u(zt), {
1505
- key: 8,
1506
- hideDetails: "",
1507
- config: {
1508
- open: p.value.showTable,
1509
- maxHeight: 1e4,
1510
- body: {
1511
- backgroundColor: e.value.style.chart.backgroundColor,
1512
- color: e.value.style.chart.color
1513
- },
1514
- head: {
1515
- backgroundColor: e.value.style.chart.backgroundColor,
1516
- color: e.value.style.chart.color
1517
- }
1518
- }
1519
- }, {
1536
+ we.value ? (n(), te(pl(be.value.component), qe({ key: 8 }, be.value.props, {
1537
+ ref_key: "tableUnit",
1538
+ ref: ge,
1539
+ onClose: o[6] || (o[6] = (t) => f.value.showTable = !1)
1540
+ }), Ge({
1520
1541
  content: A(() => [
1521
- (n(), ee(u(Ot), {
1522
- key: `table_${je.value}`,
1523
- colNames: _e.value.colNames,
1524
- head: _e.value.head,
1525
- body: _e.value.body,
1526
- config: _e.value.config,
1527
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1528
- onClose: o[4] || (o[4] = (t) => p.value.showTable = !1)
1542
+ (n(), te(u(Xt), {
1543
+ key: `table_${et.value}`,
1544
+ colNames: Ce.value.colNames,
1545
+ head: Ce.value.head,
1546
+ body: Ce.value.body,
1547
+ config: Ce.value.config,
1548
+ title: e.value.table.useDialog ? "" : be.value.title,
1549
+ withCloseButton: !e.value.table.useDialog,
1550
+ onClose: o[5] || (o[5] = (t) => f.value.showTable = !1)
1529
1551
  }, {
1530
1552
  th: A(({ th: t }) => [
1531
1553
  h("div", {
1532
1554
  innerHTML: t,
1533
1555
  style: { display: "flex", "align-items": "center" }
1534
- }, null, 8, to)
1556
+ }, null, 8, no)
1535
1557
  ]),
1536
1558
  td: A(({ td: t }) => [
1537
- Be(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(V)(
1559
+ Se(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(E)(
1538
1560
  e.value.style.chart.layout.labels.percentage.formatter,
1539
1561
  t,
1540
1562
  u(N)({
@@ -1542,7 +1564,7 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1542
1564
  s: "%",
1543
1565
  r: e.value.style.chart.layout.labels.percentage.rounding
1544
1566
  })
1545
- ) : u(V)(
1567
+ ) : u(E)(
1546
1568
  e.value.style.chart.layout.labels.value.formatter,
1547
1569
  t,
1548
1570
  u(N)({
@@ -1554,14 +1576,38 @@ const Vl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Gl = ["width", "heigh
1554
1576
  )), 1)
1555
1577
  ]),
1556
1578
  _: 1
1557
- }, 8, ["colNames", "head", "body", "config", "title"]))
1579
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1558
1580
  ]),
1559
- _: 1
1560
- }, 8, ["config"])) : v("", !0),
1561
- u(ke) ? (n(), ee(Ml, { key: 9 })) : v("", !0)
1562
- ], 46, Vl));
1581
+ _: 2
1582
+ }, [
1583
+ e.value.table.useDialog ? {
1584
+ name: "title",
1585
+ fn: A(() => [
1586
+ Se(I(be.value.title), 1)
1587
+ ]),
1588
+ key: "0"
1589
+ } : void 0,
1590
+ e.value.table.useDialog ? {
1591
+ name: "actions",
1592
+ fn: A(() => [
1593
+ h("button", {
1594
+ tabindex: "0",
1595
+ class: "vue-ui-user-options-button",
1596
+ onClick: o[4] || (o[4] = (t) => Be(e.value.userOptions.callbacks.csv))
1597
+ }, [
1598
+ Te(u(Dt), {
1599
+ name: "excel",
1600
+ stroke: be.value.props.color
1601
+ }, null, 8, ["stroke"])
1602
+ ])
1603
+ ]),
1604
+ key: "1"
1605
+ } : void 0
1606
+ ]), 1040)) : v("", !0),
1607
+ u(_e) ? (n(), te(Yl, { key: 9 })) : v("", !0)
1608
+ ], 46, Ul));
1563
1609
  }
1564
- }, go = /* @__PURE__ */ Bl(lo, [["__scopeId", "data-v-b9c7c9b4"]]);
1610
+ }, xo = /* @__PURE__ */ ql(uo, [["__scopeId", "data-v-b2d3d9b6"]]);
1565
1611
  export {
1566
- go as default
1612
+ xo as default
1567
1613
  };