vue-data-ui 2.3.93 → 2.3.95

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 (147) hide show
  1. package/dist/{Arrow-tI6NQ7Cn.js → Arrow-ClB1PHpS.js} +1 -1
  2. package/dist/{Arrow-DvOpIAlY.cjs → Arrow-OPbsbOoM.cjs} +1 -1
  3. package/dist/{BaseIcon-CNOWc7Xz.cjs → BaseIcon-CGKu0qTV.cjs} +1 -1
  4. package/dist/{BaseIcon-4CP9SAhe.js → BaseIcon-ZChy8GeS.js} +1 -1
  5. package/dist/{DataTable-BUgJSK3f.js → DataTable-B9SSwFM2.js} +2 -2
  6. package/dist/{DataTable-DhUk55WP.cjs → DataTable-CUi5w5e6.cjs} +1 -1
  7. package/dist/{Legend-C2KtRxbi.js → Legend-D4PxDNTf.js} +1 -1
  8. package/dist/{Legend-WO0bF0ud.cjs → Legend-DP-Tm5Kr.cjs} +1 -1
  9. package/dist/{PackageVersion-B_T5VqI7.cjs → PackageVersion-DdGAD2ox.cjs} +1 -1
  10. package/dist/{PackageVersion-Cy2QrPIN.js → PackageVersion-I1_4jcn_.js} +1 -1
  11. package/dist/{Shape-CvvlB7a8.cjs → Shape-DRb45Knl.cjs} +1 -1
  12. package/dist/{Shape-ovEGVZTS.js → Shape-DVc7K58k.js} +1 -1
  13. package/dist/{Slicer-C4yPLRzp.js → Slicer-Bk9LTQad.js} +15 -15
  14. package/dist/{Slicer-ChxIxUKY.cjs → Slicer-D7S48Lno.cjs} +1 -1
  15. package/dist/{Title-CczWCvrd.js → Title-Cxlu3Etv.js} +1 -1
  16. package/dist/{Title-BRktfjVS.cjs → Title-DcXqsD3c.cjs} +1 -1
  17. package/dist/{Tooltip-CLelGHFy.js → Tooltip-Bt9pHzBM.js} +1 -1
  18. package/dist/{Tooltip-iisamh_I.cjs → Tooltip-onlvaIFL.cjs} +1 -1
  19. package/dist/index-BwtKB_oG.cjs +9 -0
  20. package/dist/{index-B9ExL-Ae.js → index-DK7qqHGP.js} +725 -705
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1 -0
  23. package/dist/types/vue-data-ui.d.ts +1 -0
  24. package/dist/{useNestedProp-BI1wvb44.js → useNestedProp-0nRX_rTi.js} +1 -1
  25. package/dist/{useNestedProp-CQjoDc6x.cjs → useNestedProp-CE6ustAp.cjs} +1 -1
  26. package/dist/{usePrinter-BYx8odJu.cjs → usePrinter-BMJj8aqh.cjs} +1 -1
  27. package/dist/{usePrinter-CUStN20z.js → usePrinter-Cza87yNE.js} +1 -1
  28. package/dist/{vue-data-ui-CUhpUmv_.js → vue-data-ui-C_TmwtMr.js} +57 -57
  29. package/dist/{vue-data-ui-Bn0hx7hG.cjs → vue-data-ui-Hk08-jMu.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +5 -5
  32. package/dist/{vue-ui-3d-bar-CxlYseaq.js → vue-ui-3d-bar-C7dVjCP4.js} +8 -8
  33. package/dist/{vue-ui-3d-bar-BL-ZhuNx.cjs → vue-ui-3d-bar-DLpRGWHF.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-SZPrlCJb.js → vue-ui-accordion-5C4CP3gA.js} +3 -3
  35. package/dist/{vue-ui-accordion-DzbFctbI.cjs → vue-ui-accordion-CM2NnUan.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-vnFYLLSN.cjs → vue-ui-age-pyramid-CTvGXHzp.cjs} +1 -1
  37. package/dist/{vue-ui-age-pyramid-B1IVehHW.js → vue-ui-age-pyramid-mLYneMWu.js} +9 -9
  38. package/dist/{vue-ui-annotator-DGedspml.js → vue-ui-annotator-BB0EN1X8.js} +1 -1
  39. package/dist/{vue-ui-annotator-Cv6XubR6.cjs → vue-ui-annotator-CPZoIz9j.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-DGN9u4Fc.js → vue-ui-candlestick-91SHWtIZ.js} +10 -10
  41. package/dist/{vue-ui-candlestick-CIJdWFvp.cjs → vue-ui-candlestick-BqH7QdhN.cjs} +1 -1
  42. package/dist/{vue-ui-carousel-table-kawG2Va2.cjs → vue-ui-carousel-table-Cj9K0i-8.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-BgDKAsLu.js → vue-ui-carousel-table-Dvr8K0wL.js} +4 -4
  44. package/dist/{vue-ui-chestnut-mz-4OECX.cjs → vue-ui-chestnut-BMbO3LQx.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-CtFOgJmT.js → vue-ui-chestnut-C8-hqYVj.js} +7 -7
  46. package/dist/{vue-ui-cursor-BVS2YR2w.cjs → vue-ui-cursor-CiNq70Vh.cjs} +1 -1
  47. package/dist/{vue-ui-cursor-BJ2nafdy.js → vue-ui-cursor-fOFRnGWg.js} +2 -2
  48. package/dist/{vue-ui-dashboard-D93KqjL8.js → vue-ui-dashboard-XROIeMZs.js} +2 -2
  49. package/dist/{vue-ui-dashboard-wvzwXNCc.cjs → vue-ui-dashboard-emcX9lzJ.cjs} +1 -1
  50. package/dist/{vue-ui-digits-CTpbhzau.js → vue-ui-digits-Dao_RHVG.js} +2 -2
  51. package/dist/{vue-ui-digits-2e8Z2Ynp.cjs → vue-ui-digits-Fx6hf8lh.cjs} +1 -1
  52. package/dist/vue-ui-donut-Bf7irbZr.cjs +1 -0
  53. package/dist/vue-ui-donut-D5q_f9RX.js +1032 -0
  54. package/dist/{vue-ui-donut-evolution-DJpu3Zul.cjs → vue-ui-donut-evolution-Dnx-o2Ok.cjs} +1 -1
  55. package/dist/{vue-ui-donut-evolution-Cj4VUlYA.js → vue-ui-donut-evolution-ciU7PKzb.js} +53 -53
  56. package/dist/{vue-ui-dumbbell-DW9hFZTK.cjs → vue-ui-dumbbell-DkX4VmBe.cjs} +1 -1
  57. package/dist/{vue-ui-dumbbell-B5K8A6JO.js → vue-ui-dumbbell-nLr7lvcv.js} +9 -9
  58. package/dist/{vue-ui-flow-D7G8pT5u.js → vue-ui-flow-B6HJtYfr.js} +20 -20
  59. package/dist/{vue-ui-flow-BPZIx63s.cjs → vue-ui-flow-smeC886u.cjs} +1 -1
  60. package/dist/{vue-ui-galaxy-CJwQngRy.cjs → vue-ui-galaxy-Buek4k31.cjs} +1 -1
  61. package/dist/{vue-ui-galaxy-zxi6Dh6-.js → vue-ui-galaxy-Ts-pIaqK.js} +23 -23
  62. package/dist/{vue-ui-gauge-BCOp8MfJ.cjs → vue-ui-gauge-CB1FXw50.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-Dl84wBq2.js → vue-ui-gauge-CokjkUw7.js} +19 -19
  64. package/dist/{vue-ui-gizmo-PUYvN73T.cjs → vue-ui-gizmo-CQzBf-wG.cjs} +1 -1
  65. package/dist/{vue-ui-gizmo-BGeEyNk4.js → vue-ui-gizmo-DcGemMpp.js} +3 -3
  66. package/dist/{vue-ui-heatmap-9Upu_lU9.cjs → vue-ui-heatmap-B3eEfpF_.cjs} +1 -1
  67. package/dist/{vue-ui-heatmap-B98p2zoa.js → vue-ui-heatmap-BBVeSW2b.js} +9 -9
  68. package/dist/{vue-ui-kpi-BjucxBZ5.cjs → vue-ui-kpi-0FoMbSuC.cjs} +1 -1
  69. package/dist/{vue-ui-kpi-1_lGwzeP.js → vue-ui-kpi-CPMnrH0b.js} +3 -3
  70. package/dist/{vue-ui-mini-loader-OY5XrOYB.cjs → vue-ui-mini-loader-DNrvLX3D.cjs} +1 -1
  71. package/dist/{vue-ui-mini-loader-B6595FMr.js → vue-ui-mini-loader-Dpn4tXn2.js} +2 -2
  72. package/dist/{vue-ui-molecule-DaJsYbo1.js → vue-ui-molecule-C98VGiyq.js} +29 -29
  73. package/dist/{vue-ui-molecule-xmP8sBoH.cjs → vue-ui-molecule-CKFgcQYg.cjs} +1 -1
  74. package/dist/{vue-ui-mood-radar-CdGd-5lQ.js → vue-ui-mood-radar-CD3cjrDN.js} +21 -21
  75. package/dist/{vue-ui-mood-radar-CB1zZjs3.cjs → vue-ui-mood-radar-DN0allOW.cjs} +1 -1
  76. package/dist/{vue-ui-nested-donuts-CYmpCetP.js → vue-ui-nested-donuts-B__WecmQ.js} +46 -46
  77. package/dist/{vue-ui-nested-donuts-BkKTALZ7.cjs → vue-ui-nested-donuts-Bdl_tUXJ.cjs} +1 -1
  78. package/dist/{vue-ui-onion-BuimOxUF.cjs → vue-ui-onion-4g5ewsye.cjs} +1 -1
  79. package/dist/{vue-ui-onion-BOi0j3dJ.js → vue-ui-onion-U8VRuYjQ.js} +10 -10
  80. package/dist/{vue-ui-parallel-coordinate-plot-DfRYipb8.js → vue-ui-parallel-coordinate-plot-9WvsfJtY.js} +11 -11
  81. package/dist/{vue-ui-parallel-coordinate-plot-Bah-cYZ5.cjs → vue-ui-parallel-coordinate-plot-CdegwDSr.cjs} +1 -1
  82. package/dist/{vue-ui-quadrant-CVUZ1p2G.cjs → vue-ui-quadrant-D2SDPxFH.cjs} +1 -1
  83. package/dist/{vue-ui-quadrant-39hB1-rW.js → vue-ui-quadrant-DMto8r-E.js} +11 -11
  84. package/dist/{vue-ui-quick-chart-DJET2y_F.cjs → vue-ui-quick-chart-BLom9Z1d.cjs} +1 -1
  85. package/dist/{vue-ui-quick-chart-8aeQmszL.js → vue-ui-quick-chart-YlkEojCz.js} +8 -8
  86. package/dist/{vue-ui-radar-mk61hrfQ.cjs → vue-ui-radar-DdPAZvLB.cjs} +1 -1
  87. package/dist/{vue-ui-radar-BHV5OcIH.js → vue-ui-radar-lg4R0yio.js} +11 -11
  88. package/dist/{vue-ui-rating-Dt46yKur.cjs → vue-ui-rating-B7erplTm.cjs} +1 -1
  89. package/dist/{vue-ui-rating-D0eIeFuP.js → vue-ui-rating-BxV1W8_t.js} +7 -7
  90. package/dist/{vue-ui-relation-circle-CLWjo7gq.js → vue-ui-relation-circle-BviKM7qW.js} +6 -6
  91. package/dist/{vue-ui-relation-circle-D8tlElyL.cjs → vue-ui-relation-circle-RHy8p_Rq.cjs} +1 -1
  92. package/dist/{vue-ui-rings-BrcZ1Q6y.js → vue-ui-rings-Bn-nQaV1.js} +37 -37
  93. package/dist/{vue-ui-rings-CjOr2fTq.cjs → vue-ui-rings-DMksrRmV.cjs} +1 -1
  94. package/dist/{vue-ui-scatter-wq1Ygozo.js → vue-ui-scatter-BdTMgLFD.js} +34 -34
  95. package/dist/{vue-ui-scatter-DElf7q_o.cjs → vue-ui-scatter-DJ0wpNbL.cjs} +1 -1
  96. package/dist/{vue-ui-screenshot-WpUmWa8T.cjs → vue-ui-screenshot-D0XIDX5K.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-BD6eevS2.js → vue-ui-screenshot-beg_Jx2O.js} +1 -1
  98. package/dist/{vue-ui-skeleton-DokgyuHD.js → vue-ui-skeleton-CQnYuosp.js} +49 -49
  99. package/dist/{vue-ui-skeleton-7g5Z7tL8.cjs → vue-ui-skeleton-snFRuZgs.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BTzWzbXj.js → vue-ui-smiley-3x3w-9Zh.js} +2 -2
  101. package/dist/{vue-ui-smiley-M433_VGc.cjs → vue-ui-smiley-BUlMGmlz.cjs} +1 -1
  102. package/dist/{vue-ui-spark-trend-CVY2563q.cjs → vue-ui-spark-trend-Ds7Vnwpb.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-DVYSjWgR.js → vue-ui-spark-trend-LsojHGxX.js} +20 -20
  104. package/dist/{vue-ui-sparkbar-CW6U_9yF.js → vue-ui-sparkbar-45yFHmFN.js} +4 -4
  105. package/dist/{vue-ui-sparkbar-B5bm048m.cjs → vue-ui-sparkbar-DJAZa23-.cjs} +1 -1
  106. package/dist/{vue-ui-sparkgauge-P6vT35bq.cjs → vue-ui-sparkgauge-CnMl3jNc.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-Da2vhyRe.js → vue-ui-sparkgauge-D-hauinY.js} +11 -11
  108. package/dist/{vue-ui-sparkhistogram-DgyNNNYs.js → vue-ui-sparkhistogram-DaeMxgM8.js} +5 -5
  109. package/dist/{vue-ui-sparkhistogram-BRE4BZ1r.cjs → vue-ui-sparkhistogram-vLsGWKZe.cjs} +1 -1
  110. package/dist/{vue-ui-sparkline-BNzFzh6O.cjs → vue-ui-sparkline-DDwGkMVO.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-B6F6GG5I.js → vue-ui-sparkline-Ddi4Jz8I.js} +21 -21
  112. package/dist/{vue-ui-sparkstackbar-DAZsawIt.js → vue-ui-sparkstackbar-1_EPRHfC.js} +4 -4
  113. package/dist/{vue-ui-sparkstackbar-uWzUzXeY.cjs → vue-ui-sparkstackbar-wbl8ZH9S.cjs} +1 -1
  114. package/dist/{vue-ui-stackbar-Dm2aCHhH.js → vue-ui-stackbar-0cKpezVg.js} +11 -11
  115. package/dist/{vue-ui-stackbar-DuvFbd8S.cjs → vue-ui-stackbar-BKojs76u.cjs} +1 -1
  116. package/dist/{vue-ui-strip-plot-XYPsVx2s.cjs → vue-ui-strip-plot-BPICqL2j.cjs} +1 -1
  117. package/dist/{vue-ui-strip-plot-B_j6rXqf.js → vue-ui-strip-plot-D_7VbcMM.js} +10 -10
  118. package/dist/{vue-ui-table-BZjBiutU.cjs → vue-ui-table-B1kfbP6Q.cjs} +1 -1
  119. package/dist/{vue-ui-table-Ba8yWxlH.js → vue-ui-table-BTdufdp5.js} +10 -10
  120. package/dist/{vue-ui-table-heatmap-ChZ4LL-2.cjs → vue-ui-table-heatmap-CrXS3ruF.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-B72rWSp8.js → vue-ui-table-heatmap-UKF0bVRc.js} +23 -23
  122. package/dist/{vue-ui-table-sparkline-g1tiRXu-.js → vue-ui-table-sparkline-CbhcBl__.js} +15 -15
  123. package/dist/{vue-ui-table-sparkline-D9KYyLun.cjs → vue-ui-table-sparkline-DnViPd7H.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-BUj-EXSI.js → vue-ui-thermometer-BTb0KKkD.js} +6 -6
  125. package/dist/{vue-ui-thermometer-Bx9kCvPP.cjs → vue-ui-thermometer-CGlN3EdJ.cjs} +1 -1
  126. package/dist/{vue-ui-timer-DgVg5v8D.cjs → vue-ui-timer-Ca8z8fpL.cjs} +1 -1
  127. package/dist/{vue-ui-timer-BMi1tOzP.js → vue-ui-timer-DsXON-oQ.js} +5 -5
  128. package/dist/{vue-ui-tiremarks-B8E61MPf.js → vue-ui-tiremarks-C2FsHymJ.js} +6 -6
  129. package/dist/{vue-ui-tiremarks-gGC8LSGo.cjs → vue-ui-tiremarks-DfQgIZ-v.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-D5QTDSSq.js → vue-ui-treemap-COGNksGL.js} +10 -10
  131. package/dist/{vue-ui-treemap-Cha1rQBU.cjs → vue-ui-treemap-Ijgu5Uxo.cjs} +1 -1
  132. package/dist/{vue-ui-vertical-bar-BSzFwrWa.cjs → vue-ui-vertical-bar-C8q8aSVA.cjs} +1 -1
  133. package/dist/{vue-ui-vertical-bar-BL5Issc0.js → vue-ui-vertical-bar-CSk11lJL.js} +10 -10
  134. package/dist/{vue-ui-waffle-DxTyNZYn.cjs → vue-ui-waffle-BAFi3Ix0.cjs} +1 -1
  135. package/dist/{vue-ui-waffle-Dh08N5SM.js → vue-ui-waffle-nhWigJK4.js} +23 -23
  136. package/dist/{vue-ui-wheel-DyjcbZnB.cjs → vue-ui-wheel-CDcGk_zm.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DpywOj9b.js → vue-ui-wheel-DjPcnznT.js} +6 -6
  138. package/dist/{vue-ui-word-cloud-C7cBuLEd.cjs → vue-ui-word-cloud-BwgErpI2.cjs} +1 -1
  139. package/dist/{vue-ui-word-cloud-CEtvW8ZU.js → vue-ui-word-cloud-DFGYfQfb.js} +36 -36
  140. package/dist/{vue-ui-xy-C1EbGmWi.js → vue-ui-xy-BT3XcRoD.js} +28 -28
  141. package/dist/{vue-ui-xy-WnaajCFT.cjs → vue-ui-xy-CTxjevvM.cjs} +1 -1
  142. package/dist/{vue-ui-xy-canvas-nbhxY42M.js → vue-ui-xy-canvas-AgaDG8-s.js} +34 -34
  143. package/dist/{vue-ui-xy-canvas-7YaG0Huj.cjs → vue-ui-xy-canvas-BPRpgAOu.cjs} +1 -1
  144. package/package.json +1 -1
  145. package/dist/index-CYdWUfPi.cjs +0 -4
  146. package/dist/vue-ui-donut-CJ4HeqiO.cjs +0 -1
  147. package/dist/vue-ui-donut-CjkJB0CP.js +0 -871
@@ -0,0 +1,1032 @@
1
+ import { computed as w, ref as d, onMounted as Je, onBeforeUnmount as Ke, watch as Oe, openBlock as u, createElementBlock as r, normalizeClass as ie, normalizeStyle as Y, renderSlot as k, createBlock as H, createCommentVNode as v, unref as s, createSlots as Qe, withCtx as L, normalizeProps as Q, guardReactiveProps as Z, createVNode as Ie, createElementVNode as f, Fragment as m, renderList as I, toDisplayString as _, createTextVNode as Ae, nextTick as Ze, pushScopeId as et, popScopeId as tt } from "vue";
2
+ import { u as lt, o as at, e as De, g as ot, c as ut, b as st, d as Be, p as G, m as nt, G as rt, f as S, X as it, s as ee, w as vt, j as ct, H as F, i as X, k as b, n as te, t as dt, a as ht, x as yt, q as ft, r as pt } from "./index-DK7qqHGP.js";
3
+ import { t as gt, u as bt } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as mt } from "./Title-Cxlu3Etv.js";
5
+ import { u as wt, U as kt } from "./usePrinter-Cza87yNE.js";
6
+ import { D as xt } from "./DataTable-B9SSwFM2.js";
7
+ import { _ as _t } from "./Tooltip-Bt9pHzBM.js";
8
+ import { L as Ct } from "./Legend-D4PxDNTf.js";
9
+ import $t from "./vue-ui-skeleton-CQnYuosp.js";
10
+ import Pt from "./vue-ui-accordion-5C4CP3gA.js";
11
+ import { u as Me } from "./useNestedProp-0nRX_rTi.js";
12
+ import { _ as Lt } from "./PackageVersion-I1_4jcn_.js";
13
+ import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Ft = (U) => (et("data-v-a418a215"), U = U(), tt(), U), zt = ["id"], Tt = ["xmlns", "viewBox"], Yt = { key: 0 }, Xt = ["id"], Nt = ["stop-color"], Ot = ["offset", "stop-color"], It = ["offset", "stop-color"], At = ["stop-color"], Dt = { key: 1 }, Bt = ["id", "cx", "cy"], Mt = ["stop-color", "stop-opacity"], Vt = ["stop-color"], Gt = ["id"], jt = ["id"], Ht = /* @__PURE__ */ Ft(() => /* @__PURE__ */ f("feColorMatrix", {
15
+ type: "saturate",
16
+ values: "0"
17
+ }, null, -1)), Ut = ["id"], Et = ["flood-color"], Rt = ["d", "stroke", "filter"], Wt = ["x1", "y1", "x2", "y2", "stroke", "filter"], qt = ["cx", "cy", "r", "fill", "filter"], Jt = ["stroke", "d"], Kt = ["d", "fill", "stroke", "stroke-width", "filter"], Qt = { key: 0 }, Zt = ["stroke", "d"], el = ["d", "fill", "stroke", "stroke-width", "filter"], tl = { key: 1 }, ll = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], al = ["cx", "cy", "r", "stroke"], ol = ["cx", "cy", "r", "fill"], ul = { key: 0 }, sl = ["d", "fill", "onMouseenter", "onClick"], nl = { key: 1 }, rl = ["cx", "cy", "r", "fill"], il = ["x", "y", "fill", "font-size"], vl = ["x", "y", "fill", "font-size"], cl = ["x", "y", "fill", "font-size"], dl = ["x", "y", "fill", "font-size"], hl = ["filter"], yl = { key: 0 }, fl = ["x", "y"], pl = { key: 1 }, gl = ["cx", "cy", "fill", "filter", "onClick"], bl = ["cx", "cy", "fill", "filter", "onClick"], ml = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], wl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], kl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], xl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], _l = { key: 2 }, Cl = ["x", "y", "width"], $l = ["x", "y", "width"], Pl = {
18
+ key: 3,
19
+ class: "vue-data-ui-watermark"
20
+ }, Ll = ["onClick"], Sl = {
21
+ key: 0,
22
+ style: { "font-variant-numeric": "tabular-nums" }
23
+ }, Fl = { key: 1 }, zl = ["innerHTML"], Tl = {
24
+ __name: "vue-ui-donut",
25
+ props: {
26
+ config: {
27
+ type: Object,
28
+ default() {
29
+ return {};
30
+ }
31
+ },
32
+ dataset: {
33
+ type: Array,
34
+ default() {
35
+ return [];
36
+ }
37
+ }
38
+ },
39
+ emits: ["selectLegend", "selectDatapoint"],
40
+ setup(U, { expose: Ve, emit: ve }) {
41
+ const N = U, { vue_ui_donut: Ge } = lt(), E = w({
42
+ get() {
43
+ return !!N.dataset && N.dataset.length;
44
+ },
45
+ set(l) {
46
+ return l;
47
+ }
48
+ }), R = d(null), ce = d(null), de = d(null), le = d(null), he = d(0), ye = d(0), fe = d(0);
49
+ Je(() => {
50
+ pe();
51
+ }), Ke(() => {
52
+ le.value && le.value.disconnect();
53
+ });
54
+ function pe() {
55
+ if (at(N.dataset) ? De({
56
+ componentName: "VueUiDonut",
57
+ type: "dataset"
58
+ }) : N.dataset.forEach((l, n) => {
59
+ ot({
60
+ datasetObject: l,
61
+ requiredAttributes: ["name", "values"]
62
+ }).forEach((t) => {
63
+ E.value = !1, De({
64
+ componentName: "VueUiDonut",
65
+ type: "datasetSerieAttribute",
66
+ property: t,
67
+ index: n
68
+ });
69
+ });
70
+ }), e.value.responsive) {
71
+ const l = gt(() => {
72
+ const { width: n, height: t } = bt({
73
+ chart: R.value,
74
+ title: e.value.style.chart.title.text ? ce.value : null,
75
+ legend: e.value.style.chart.legend.show ? de.value : null
76
+ });
77
+ o.value.width = n, o.value.height = t;
78
+ });
79
+ le.value = new ResizeObserver(l), le.value.observe(R.value.parentNode);
80
+ }
81
+ }
82
+ const x = d(ut()), je = d(null), ae = d(!1), ue = d(""), P = d(null), ge = d(0);
83
+ function be() {
84
+ const l = Me({
85
+ userConfig: N.config,
86
+ defaultConfig: Ge
87
+ });
88
+ return l.theme ? {
89
+ ...Me({
90
+ userConfig: dt.vue_ui_donut[l.theme] || N.config,
91
+ defaultConfig: l
92
+ }),
93
+ customPalette: ht[l.theme] || G
94
+ } : l;
95
+ }
96
+ const e = w({
97
+ get: () => be(),
98
+ set: (l) => l
99
+ });
100
+ Oe(() => N.config, (l) => {
101
+ e.value = be(), pe(), he.value += 1, ye.value += 1, fe.value += 1;
102
+ }, { deep: !0 });
103
+ const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage: xe } = wt({
104
+ elementId: `donut__${x.value}`,
105
+ fileName: e.value.style.chart.title.text || "vue-ui-donut"
106
+ }), _e = w(() => st(e.value.customPalette)), h = d({
107
+ dataLabels: {
108
+ show: e.value.style.chart.layout.labels.dataLabels.show
109
+ },
110
+ showTable: e.value.table.show,
111
+ showTooltip: e.value.style.chart.tooltip.show
112
+ }), o = d({
113
+ height: 360,
114
+ width: 512
115
+ }), W = w(() => {
116
+ const l = e.value.style.chart.layout.donut.strokeWidth / 512, n = o.value.width * l, t = n > C.value ? C.value : n;
117
+ return t < 24 ? 24 : t;
118
+ }), M = w(() => N.dataset.map((l, n) => ({
119
+ name: l.name,
120
+ color: Be(l.color) || _e.value[n] || G[n] || G[n % G.length],
121
+ value: l.values.reduce((t, a) => t + a, 0),
122
+ absoluteValues: l.values,
123
+ comment: l.comment || ""
124
+ }))), z = d(M.value);
125
+ Oe(() => M.value, (l) => z.value = l);
126
+ function He() {
127
+ return M.value.map((l) => ({
128
+ name: l.name,
129
+ color: l.color,
130
+ value: l.value
131
+ }));
132
+ }
133
+ const O = d([]), Ce = d(null), $e = d(null), V = d(!1);
134
+ function Pe(l) {
135
+ const n = M.value.find((i, g) => g === l);
136
+ let a = z.value.find((i, g) => g === l).value;
137
+ if (O.value.includes(l)) {
138
+ let g = function() {
139
+ a > i ? (cancelAnimationFrame(Ce.value), z.value = z.value.map((y, re) => l === re ? {
140
+ ...y,
141
+ value: i
142
+ } : y), V.value = !1) : (V.value = !0, a += i * 0.025, z.value = z.value.map((y, re) => l === re ? {
143
+ ...y,
144
+ value: a
145
+ } : y), Ce.value = requestAnimationFrame(g));
146
+ };
147
+ O.value = O.value.filter((y) => y !== l);
148
+ const i = n.value;
149
+ g();
150
+ } else if (O.value.length < M.value.length - 1) {
151
+ let i = function() {
152
+ a < 0.1 ? (cancelAnimationFrame($e.value), O.value.push(l), z.value = z.value.map((g, y) => l === y ? {
153
+ ...g,
154
+ value: 0
155
+ } : g), V.value = !1) : (V.value = !0, a /= 1.1, z.value = z.value.map((g, y) => l === y ? {
156
+ ...g,
157
+ value: a
158
+ } : g), $e.value = requestAnimationFrame(i));
159
+ };
160
+ i();
161
+ }
162
+ ve("selectLegend", A.value.map((i) => ({
163
+ name: i.name,
164
+ color: i.color,
165
+ value: i.value
166
+ })));
167
+ }
168
+ const A = w(() => (z.value.forEach((l, n) => {
169
+ if ([null, void 0].includes(l.values))
170
+ return {
171
+ ...l,
172
+ values: []
173
+ };
174
+ }), z.value.map((l, n) => ({
175
+ ...l,
176
+ seriesIndex: n
177
+ })).filter((l, n) => !O.value.includes(n)))), Le = w(() => N.dataset.map((l, n) => ({
178
+ name: l.name,
179
+ color: Be(l.color) || _e.value[n] || G[n] || G[n % G.length],
180
+ value: (l.values || []).reduce((t, a) => t + a, 0),
181
+ shape: "circle"
182
+ })).map((l, n) => ({
183
+ ...l,
184
+ proportion: l.value / N.dataset.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
185
+ opacity: O.value.includes(n) ? 0.5 : 1,
186
+ segregate: () => Pe(n),
187
+ isSegregated: O.value.includes(n)
188
+ }))), Ue = w(() => ({
189
+ cy: "donut-div-legend",
190
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
191
+ color: e.value.style.chart.legend.color,
192
+ fontSize: e.value.style.chart.legend.fontSize,
193
+ paddingBottom: 12,
194
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
195
+ })), C = w(() => {
196
+ const l = Math.min(o.value.width / 3, o.value.height / 3);
197
+ return l < 55 ? 55 : l;
198
+ }), p = w(() => nt({ series: A.value }, o.value.width / 2, o.value.height / 2, C.value, C.value, 1.99999, 2, 1, 360, 105.25, W.value)), c = w(() => {
199
+ const l = Math.max(...A.value.map((t) => t.value)), n = A.value.map((t) => t.value / l);
200
+ return rt({
201
+ series: n,
202
+ center: {
203
+ x: o.value.width / 2,
204
+ y: o.value.height / 2
205
+ },
206
+ maxRadius: Math.min(o.value.width, o.value.height) / 3
207
+ });
208
+ });
209
+ function j(l) {
210
+ return l.x > o.value.width / 2 + 6 ? "start" : l.x < o.value.width / 2 - 6 ? "end" : "middle";
211
+ }
212
+ function Ee(l) {
213
+ return l.middlePoint.y > o.value.height / 2 ? F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: o.value.width / 2, centerY: o.value.height / 2 }).y : F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: o.value.width / 2, centerY: o.value.height / 2 }).y - 100;
214
+ }
215
+ function T(l) {
216
+ return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
217
+ }
218
+ function se(l, n) {
219
+ const t = l.value / Re(n);
220
+ return isNaN(t) ? 0 : X(
221
+ e.value.style.chart.layout.labels.percentage.formatter,
222
+ t * 100,
223
+ S({
224
+ v: t * 100,
225
+ s: "%",
226
+ r: e.value.style.chart.layout.labels.percentage.rounding
227
+ }),
228
+ { datapoint: l }
229
+ );
230
+ }
231
+ function Re(l) {
232
+ return [...l].map((n) => n.value).reduce((n, t) => n + t, 0);
233
+ }
234
+ const $ = w(() => A.value.map((l) => l.value).reduce((l, n) => l + n, 0)), Se = w(() => $.value / A.value.length), ne = d(null), q = d(!1);
235
+ function Fe({ datapoint: l, relativeIndex: n, seriesIndex: t, show: a = !1 }) {
236
+ ne.value = { datapoint: l, seriesIndex: t, config: e.value, series: M.value }, ae.value = a, P.value = n;
237
+ let i = "";
238
+ const g = e.value.style.chart.tooltip.customFormat;
239
+ if (q.value = !1, yt(g))
240
+ try {
241
+ const y = g({
242
+ seriesIndex: t,
243
+ datapoint: l,
244
+ series: M.value,
245
+ config: e.value
246
+ });
247
+ typeof y == "string" && (ue.value = y, q.value = !0);
248
+ } catch {
249
+ console.warn("Custom format cannot be applied."), q.value = !1;
250
+ }
251
+ if (!q.value) {
252
+ 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 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${X(
253
+ e.value.style.chart.layout.labels.value.formatter,
254
+ l.value,
255
+ S({
256
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
257
+ v: l.value,
258
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
259
+ r: e.value.style.chart.tooltip.roundingValue
260
+ }),
261
+ {
262
+ datapoint: l,
263
+ relativeIndex: n,
264
+ seriesIndex: t
265
+ }
266
+ )}</b>`), e.value.style.chart.tooltip.showPercentage) {
267
+ const y = X(
268
+ e.value.style.chart.layout.labels.percentage.formatter,
269
+ l.proportion * 100,
270
+ S({
271
+ v: l.proportion * 100,
272
+ s: "%",
273
+ r: e.value.style.chart.tooltip.roundingPercentage
274
+ }),
275
+ {
276
+ datapoint: l,
277
+ relativeIndex: n,
278
+ seriesIndex: t
279
+ }
280
+ );
281
+ e.value.style.chart.tooltip.showValue ? i += `<span>(${y})</span></div>` : i += `<b>${y}</b></div>`;
282
+ }
283
+ 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>`), ue.value = `<div>${i}</div>`;
284
+ }
285
+ }
286
+ function J(l) {
287
+ return e.value.useBlurOnHover && ![null, void 0].includes(P.value) && P.value !== l ? `url(#blur_${x.value})` : "";
288
+ }
289
+ const D = w(() => {
290
+ const l = A.value.map((t) => ({
291
+ name: t.name,
292
+ color: t.color
293
+ })), n = A.value.map((t) => t.value);
294
+ return { head: l, body: n };
295
+ });
296
+ function ze() {
297
+ Ze(() => {
298
+ const l = D.value.head.map((a, i) => [[
299
+ a.name
300
+ ], [D.value.body[i]], [isNaN(D.value.body[i] / $.value) ? "-" : D.value.body[i] / $.value * 100]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = ft(n);
301
+ pt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
302
+ });
303
+ }
304
+ const oe = w(() => {
305
+ const l = [
306
+ ' <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>',
307
+ S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
308
+ "100%"
309
+ ], n = D.value.head.map((i, g) => {
310
+ const y = S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
311
+ return [
312
+ {
313
+ color: i.color,
314
+ name: i.name
315
+ },
316
+ y,
317
+ isNaN(D.value.body[g] / $.value) ? "-" : (D.value.body[g] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
318
+ ];
319
+ }), t = {
320
+ th: {
321
+ backgroundColor: e.value.table.th.backgroundColor,
322
+ color: e.value.table.th.color,
323
+ outline: e.value.table.th.outline
324
+ },
325
+ td: {
326
+ backgroundColor: e.value.table.td.backgroundColor,
327
+ color: e.value.table.td.color,
328
+ outline: e.value.table.td.outline
329
+ },
330
+ breakpoint: e.value.table.responsiveBreakpoint
331
+ };
332
+ return {
333
+ colNames: [
334
+ e.value.table.columnNames.series,
335
+ e.value.table.columnNames.value,
336
+ e.value.table.columnNames.percentage
337
+ ],
338
+ head: l,
339
+ body: n,
340
+ config: t
341
+ };
342
+ }), K = d(!1);
343
+ function We(l) {
344
+ K.value = l, ge.value += 1;
345
+ }
346
+ const Te = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
347
+ function qe(l) {
348
+ return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((n) => "-").join("");
349
+ }
350
+ function B(l, n) {
351
+ ve("selectDatapoint", { datapoint: l, index: n });
352
+ }
353
+ function Ye() {
354
+ h.value.showTable = !h.value.showTable;
355
+ }
356
+ function Xe() {
357
+ h.value.dataLabels.show = !h.value.dataLabels.show;
358
+ }
359
+ function Ne() {
360
+ h.value.showTooltip = !h.value.showTooltip;
361
+ }
362
+ return Ve({
363
+ getData: He,
364
+ generatePdf: ke,
365
+ generateCsv: ze,
366
+ generateImage: xe,
367
+ toggleTable: Ye,
368
+ toggleLabels: Xe,
369
+ toggleTooltip: Ne
370
+ }), (l, n) => (u(), r("div", {
371
+ ref_key: "donutChart",
372
+ ref: R,
373
+ class: ie(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
374
+ style: Y(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
375
+ id: `donut__${x.value}`
376
+ }, [
377
+ k(l.$slots, "userConfig", {}, void 0, !0),
378
+ e.value.style.chart.title.text ? (u(), r("div", {
379
+ key: 0,
380
+ ref_key: "chartTitle",
381
+ ref: ce,
382
+ style: "width:100%;background:transparent;padding-bottom:24px"
383
+ }, [
384
+ (u(), H(mt, {
385
+ key: `title_${he.value}`,
386
+ config: {
387
+ title: {
388
+ cy: "donut-div-title",
389
+ ...e.value.style.chart.title
390
+ },
391
+ subtitle: {
392
+ cy: "donut-div-subtitle",
393
+ ...e.value.style.chart.title.subtitle
394
+ }
395
+ }
396
+ }, null, 8, ["config"]))
397
+ ], 512)) : v("", !0),
398
+ e.value.userOptions.show && E.value ? (u(), H(kt, {
399
+ ref_key: "details",
400
+ ref: je,
401
+ key: `user_option_${ge.value}`,
402
+ backgroundColor: e.value.style.chart.backgroundColor,
403
+ color: e.value.style.chart.color,
404
+ isPrinting: s(me),
405
+ isImaging: s(we),
406
+ uid: x.value,
407
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
408
+ hasPdf: e.value.userOptions.buttons.pdf,
409
+ hasImg: e.value.userOptions.buttons.img,
410
+ hasXls: e.value.userOptions.buttons.csv,
411
+ hasTable: e.value.userOptions.buttons.table,
412
+ hasLabel: e.value.userOptions.buttons.labels,
413
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
414
+ isFullscreen: K.value,
415
+ chartElement: R.value,
416
+ position: e.value.userOptions.position,
417
+ isTooltip: h.value.showTooltip,
418
+ titles: { ...e.value.userOptions.buttonTitles },
419
+ onToggleFullscreen: We,
420
+ onGeneratePdf: s(ke),
421
+ onGenerateCsv: ze,
422
+ onGenerateImage: s(xe),
423
+ onToggleTable: Ye,
424
+ onToggleLabels: Xe,
425
+ onToggleTooltip: Ne
426
+ }, Qe({ _: 2 }, [
427
+ l.$slots.optionTooltip ? {
428
+ name: "optionTooltip",
429
+ fn: L(() => [
430
+ k(l.$slots, "optionTooltip", {}, void 0, !0)
431
+ ]),
432
+ key: "0"
433
+ } : void 0,
434
+ l.$slots.optionPdf ? {
435
+ name: "optionPdf",
436
+ fn: L(() => [
437
+ k(l.$slots, "optionPdf", {}, void 0, !0)
438
+ ]),
439
+ key: "1"
440
+ } : void 0,
441
+ l.$slots.optionCsv ? {
442
+ name: "optionCsv",
443
+ fn: L(() => [
444
+ k(l.$slots, "optionCsv", {}, void 0, !0)
445
+ ]),
446
+ key: "2"
447
+ } : void 0,
448
+ l.$slots.optionImg ? {
449
+ name: "optionImg",
450
+ fn: L(() => [
451
+ k(l.$slots, "optionImg", {}, void 0, !0)
452
+ ]),
453
+ key: "3"
454
+ } : void 0,
455
+ l.$slots.optionTable ? {
456
+ name: "optionTable",
457
+ fn: L(() => [
458
+ k(l.$slots, "optionTable", {}, void 0, !0)
459
+ ]),
460
+ key: "4"
461
+ } : void 0,
462
+ l.$slots.optionLabels ? {
463
+ name: "optionLabels",
464
+ fn: L(() => [
465
+ k(l.$slots, "optionLabels", {}, void 0, !0)
466
+ ]),
467
+ key: "5"
468
+ } : void 0,
469
+ l.$slots.optionFullscreen ? {
470
+ name: "optionFullscreen",
471
+ fn: L(({ toggleFullscreen: t, isFullscreen: a }) => [
472
+ k(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
473
+ ]),
474
+ key: "6"
475
+ } : void 0
476
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
477
+ E.value ? (u(), r("svg", {
478
+ key: 2,
479
+ xmlns: s(it),
480
+ class: ie({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
481
+ viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
482
+ style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
483
+ }, [
484
+ Ie(Lt),
485
+ e.value.type === "classic" ? (u(), r("defs", Yt, [
486
+ e.value.style.chart.useGradient ? (u(), r("radialGradient", {
487
+ key: 0,
488
+ id: `gradient_${x.value}`
489
+ }, [
490
+ f("stop", {
491
+ offset: "0%",
492
+ "stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
493
+ "stop-opacity": "0"
494
+ }, null, 8, Nt),
495
+ f("stop", {
496
+ offset: `${(1 - W.value / C.value) * 100}%`,
497
+ "stop-color": s(ee)("#FFFFFF", 0),
498
+ "stop-opacity": "0"
499
+ }, null, 8, Ot),
500
+ f("stop", {
501
+ offset: `${(1 - W.value / C.value / 2) * 100}%`,
502
+ "stop-color": s(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
503
+ }, null, 8, It),
504
+ f("stop", {
505
+ offset: "100%",
506
+ "stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
507
+ "stop-opacity": "0"
508
+ }, null, 8, At)
509
+ ], 8, Xt)) : v("", !0)
510
+ ])) : v("", !0),
511
+ e.value.type === "polar" ? (u(), r("defs", Dt, [
512
+ (u(!0), r(m, null, I(c.value, (t, a) => (u(), r("radialGradient", {
513
+ id: `polar_gradient_${a}_${x.value}`,
514
+ cx: t.middlePoint.x / o.value.width * 100 + "%",
515
+ cy: t.middlePoint.y / o.value.height * 100 + "%",
516
+ r: "62%"
517
+ }, [
518
+ f("stop", {
519
+ offset: "0%",
520
+ "stop-color": s(vt)(p.value[a].color, 0.05),
521
+ "stop-opacity": e.value.style.chart.gradientIntensity / 100
522
+ }, null, 8, Mt),
523
+ f("stop", {
524
+ offset: "100%",
525
+ "stop-color": p.value[a].color
526
+ }, null, 8, Vt)
527
+ ], 8, Bt))), 256))
528
+ ])) : v("", !0),
529
+ f("defs", null, [
530
+ f("filter", {
531
+ id: `blur_${x.value}`,
532
+ x: "-50%",
533
+ y: "-50%",
534
+ width: "200%",
535
+ height: "200%"
536
+ }, [
537
+ f("feGaussianBlur", {
538
+ in: "SourceGraphic",
539
+ stdDeviation: 2,
540
+ id: `blur_std_${x.value}`
541
+ }, null, 8, jt),
542
+ Ht
543
+ ], 8, Gt),
544
+ f("filter", {
545
+ id: `shadow_${x.value}`,
546
+ "color-interpolation-filters": "sRGB"
547
+ }, [
548
+ f("feDropShadow", {
549
+ dx: "0",
550
+ dy: "0",
551
+ stdDeviation: "10",
552
+ "flood-opacity": "0.5",
553
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
554
+ }, null, 8, Et)
555
+ ], 8, Ut)
556
+ ]),
557
+ e.value.type === "classic" ? (u(!0), r(m, { key: 2 }, I(p.value, (t, a) => (u(), r("g", null, [
558
+ T(t) && h.value.dataLabels.show ? (u(), r("path", {
559
+ key: 0,
560
+ d: s(ct)(t, { x: o.value.width / 2, y: o.value.height / 2 }, 16, 16, !1, !1, W.value),
561
+ stroke: t.color,
562
+ "stroke-width": "1",
563
+ "stroke-linecap": "round",
564
+ "stroke-linejoin": "round",
565
+ fill: "none",
566
+ filter: J(a)
567
+ }, null, 8, Rt)) : v("", !0)
568
+ ]))), 256)) : v("", !0),
569
+ e.value.type === "polar" ? (u(!0), r(m, { key: 3 }, I(p.value, (t, a) => (u(), r("g", null, [
570
+ T(t) && h.value.dataLabels.show ? (u(), r("line", {
571
+ key: 0,
572
+ x1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: o.value.width / 2, centerY: o.value.height / 2 }).x,
573
+ y1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: o.value.width / 2, centerY: o.value.height / 2 }).y,
574
+ x2: c.value[a].middlePoint.x,
575
+ y2: c.value[a].middlePoint.y,
576
+ stroke: t.color,
577
+ "stroke-width": "1",
578
+ "stroke-linecap": "round",
579
+ "stroke-linejoin": "round",
580
+ fill: "none",
581
+ filter: J(a)
582
+ }, null, 8, Wt)) : v("", !0)
583
+ ]))), 256)) : v("", !0),
584
+ e.value.type === "classic" ? (u(), r("circle", {
585
+ key: 4,
586
+ cx: o.value.width / 2,
587
+ cy: o.value.height / 2,
588
+ r: C.value <= 0 ? 10 : C.value,
589
+ fill: e.value.style.chart.backgroundColor,
590
+ filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${x.value})` : ""
591
+ }, null, 8, qt)) : v("", !0),
592
+ $.value && e.value.type === "classic" ? (u(), r(m, { key: 5 }, [
593
+ (u(!0), r(m, null, I(p.value, (t, a) => (u(), r("path", {
594
+ stroke: e.value.style.chart.backgroundColor,
595
+ d: t.arcSlice,
596
+ fill: "#FFFFFF"
597
+ }, null, 8, Jt))), 256)),
598
+ (u(!0), r(m, null, I(p.value, (t, a) => (u(), r("path", {
599
+ class: "vue-ui-donut-arc-path",
600
+ d: t.arcSlice,
601
+ fill: s(ee)(t.color, 80),
602
+ stroke: e.value.style.chart.backgroundColor,
603
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
604
+ filter: J(a)
605
+ }, null, 8, Kt))), 256))
606
+ ], 64)) : v("", !0),
607
+ $.value && e.value.type === "polar" ? (u(), r(m, { key: 6 }, [
608
+ p.value.length > 1 ? (u(), r("g", Qt, [
609
+ (u(!0), r(m, null, I(p.value, (t, a) => (u(), r("path", {
610
+ stroke: e.value.style.chart.backgroundColor,
611
+ d: c.value[a].path,
612
+ fill: "#FFFFFF"
613
+ }, null, 8, Zt))), 256)),
614
+ (u(!0), r(m, null, I(p.value, (t, a) => (u(), r("path", {
615
+ class: "vue-ui-donut-arc-path",
616
+ d: c.value[a].path,
617
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${x.value})` : t.color,
618
+ stroke: e.value.style.chart.backgroundColor,
619
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
620
+ filter: J(a)
621
+ }, null, 8, el))), 256))
622
+ ])) : (u(), r("g", tl, [
623
+ f("circle", {
624
+ cx: o.value.width / 2,
625
+ cy: o.value.height / 2,
626
+ r: C.value,
627
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${x.value})` : p.value[0].color,
628
+ stroke: e.value.style.chart.backgroundColor,
629
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth
630
+ }, null, 8, ll)
631
+ ]))
632
+ ], 64)) : (u(), r("circle", {
633
+ key: 7,
634
+ cx: o.value.width / 2,
635
+ cy: o.value.height / 2,
636
+ r: C.value <= 0 ? 10 : C.value,
637
+ fill: "transparent",
638
+ stroke: e.value.style.chart.backgroundColor
639
+ }, null, 8, al)),
640
+ e.value.style.chart.useGradient && e.value.type === "classic" ? (u(), r("circle", {
641
+ key: 8,
642
+ cx: o.value.width / 2,
643
+ cy: o.value.height / 2,
644
+ r: (
645
+ /* This might require adjustments */
646
+ C.value <= 0 ? 10 : C.value
647
+ ),
648
+ fill: `url(#gradient_${x.value})`
649
+ }, null, 8, ol)) : v("", !0),
650
+ $.value ? (u(), r(m, { key: 9 }, [
651
+ p.value.length > 1 || e.value.type === "classic" ? (u(), r("g", ul, [
652
+ (u(!0), r(m, null, I(p.value, (t, a) => (u(), r("path", {
653
+ "data-cy-donut-trap": "",
654
+ d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
655
+ fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
656
+ onMouseenter: (i) => Fe({
657
+ datapoint: t,
658
+ relativeIndex: a,
659
+ seriesIndex: t.seriesIndex,
660
+ show: !0
661
+ }),
662
+ onMouseleave: n[0] || (n[0] = (i) => {
663
+ ae.value = !1, P.value = null;
664
+ }),
665
+ onClick: (i) => B(t, a)
666
+ }, null, 40, sl))), 256))
667
+ ])) : (u(), r("g", nl, [
668
+ f("circle", {
669
+ cx: o.value.width / 2,
670
+ cy: o.value.height / 2,
671
+ r: C.value,
672
+ fill: P.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
673
+ "data-cy-donut-trap": "",
674
+ onMouseenter: n[1] || (n[1] = (t) => Fe({
675
+ datapoint: p.value[0],
676
+ relativeIndex: 0,
677
+ seriesIndex: p.value[0].seriesIndex,
678
+ show: !0
679
+ })),
680
+ onMouseleave: n[2] || (n[2] = (t) => {
681
+ ae.value = !1, P.value = null;
682
+ }),
683
+ onClick: n[3] || (n[3] = (t) => B(p.value[0], l.i))
684
+ }, null, 40, rl)
685
+ ]))
686
+ ], 64)) : v("", !0),
687
+ e.value.type === "classic" ? (u(), r(m, { key: 10 }, [
688
+ e.value.style.chart.layout.labels.hollow.total.show ? (u(), r("text", {
689
+ key: 0,
690
+ "text-anchor": "middle",
691
+ x: o.value.width / 2,
692
+ y: o.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
693
+ fill: e.value.style.chart.layout.labels.hollow.total.color,
694
+ "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
695
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
696
+ }, _(e.value.style.chart.layout.labels.hollow.total.text), 13, il)) : v("", !0),
697
+ e.value.style.chart.layout.labels.hollow.total.show ? (u(), r("text", {
698
+ key: 1,
699
+ "text-anchor": "middle",
700
+ x: o.value.width / 2,
701
+ y: o.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
702
+ fill: e.value.style.chart.layout.labels.hollow.total.value.color,
703
+ "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
704
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
705
+ }, _(s(X)(
706
+ e.value.style.chart.layout.labels.hollow.total.value.formatter,
707
+ $.value,
708
+ s(S)({
709
+ p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
710
+ v: $.value,
711
+ s: e.value.style.chart.layout.labels.hollow.total.value.suffix
712
+ })
713
+ )), 13, vl)) : v("", !0),
714
+ e.value.style.chart.layout.labels.hollow.average.show ? (u(), r("text", {
715
+ key: 2,
716
+ "text-anchor": "middle",
717
+ x: o.value.width / 2,
718
+ y: o.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
719
+ fill: e.value.style.chart.layout.labels.hollow.average.color,
720
+ "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
721
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
722
+ }, _(e.value.style.chart.layout.labels.hollow.average.text), 13, cl)) : v("", !0),
723
+ e.value.style.chart.layout.labels.hollow.average.show ? (u(), r("text", {
724
+ key: 3,
725
+ "text-anchor": "middle",
726
+ x: o.value.width / 2,
727
+ y: o.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
728
+ fill: e.value.style.chart.layout.labels.hollow.average.value.color,
729
+ "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
730
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
731
+ }, _(V.value ? "--" : s(X)(
732
+ e.value.style.chart.layout.labels.hollow.average.value.formatter,
733
+ Se.value,
734
+ s(S)({
735
+ p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
736
+ v: Se.value,
737
+ s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
738
+ r: e.value.style.chart.layout.labels.hollow.average.value.rounding
739
+ })
740
+ )), 13, dl)) : v("", !0)
741
+ ], 64)) : v("", !0),
742
+ (u(!0), r(m, null, I(p.value, (t, a) => (u(), r("g", {
743
+ filter: J(a),
744
+ class: ie({ animated: e.value.useCssAnimation })
745
+ }, [
746
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), r("g", yl, [
747
+ (u(), r("foreignObject", {
748
+ x: s(b)(t, !0).anchor === "end" ? s(b)(t).x - 120 : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - 60 : s(b)(t).x,
749
+ y: s(te)(t) - (Te.value ? 20 : 0),
750
+ width: "120",
751
+ height: "60",
752
+ style: { overflow: "visible" }
753
+ }, [
754
+ f("div", null, [
755
+ k(l.$slots, "dataLabel", Q(Z({
756
+ datapoint: t,
757
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
758
+ isSafari: Te.value,
759
+ isVisible: T(t) && h.value.dataLabels.show,
760
+ textAlign: s(b)(t, !0, 16, !0).anchor,
761
+ flexAlign: s(b)(t, !0, 16).anchor,
762
+ percentage: se(t, p.value)
763
+ })), void 0, !0)
764
+ ])
765
+ ], 8, fl))
766
+ ])) : (u(), r("g", pl, [
767
+ e.value.type === "classic" ? (u(), r(m, { key: 0 }, [
768
+ T(t) && h.value.dataLabels.show ? (u(), r("circle", {
769
+ key: 0,
770
+ cx: s(b)(t).x,
771
+ cy: s(te)(t) - 3.5,
772
+ fill: t.color,
773
+ r: 3,
774
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${x.value})`,
775
+ onClick: (i) => B(t, a)
776
+ }, null, 8, gl)) : v("", !0)
777
+ ], 64)) : v("", !0),
778
+ e.value.type === "polar" ? (u(), r(m, { key: 1 }, [
779
+ T(t) && h.value.dataLabels.show ? (u(), r("circle", {
780
+ key: 0,
781
+ cx: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: o.value.width / 2, centerY: o.value.height / 2 }).x,
782
+ cy: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: o.value.width / 2, centerY: o.value.height / 2 }).y,
783
+ fill: t.color,
784
+ r: 3,
785
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${x.value})`,
786
+ onClick: (i) => B(t, a)
787
+ }, null, 8, bl)) : v("", !0)
788
+ ], 64)) : v("", !0),
789
+ e.value.type === "classic" ? (u(), r(m, { key: 2 }, [
790
+ T(t) && h.value.dataLabels.show ? (u(), r("text", {
791
+ key: 0,
792
+ "text-anchor": s(b)(t, !0, 12).anchor,
793
+ x: s(b)(t, !0, 12).x,
794
+ y: s(te)(t),
795
+ fill: e.value.style.chart.layout.labels.percentage.color,
796
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
797
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
798
+ onClick: (i) => B(t, a)
799
+ }, _(se(t, p.value)) + " " + _(e.value.style.chart.layout.labels.value.show ? `(${s(X)(
800
+ e.value.style.chart.layout.labels.value.formatter,
801
+ t.value,
802
+ s(S)({
803
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
804
+ v: t.value,
805
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
806
+ r: e.value.style.chart.layout.labels.value.rounding
807
+ }),
808
+ { datapoint: t }
809
+ )})` : ""), 13, ml)) : v("", !0),
810
+ T(t) && h.value.dataLabels.show ? (u(), r("text", {
811
+ key: 1,
812
+ "text-anchor": s(b)(t).anchor,
813
+ x: s(b)(t, !0, 12).x,
814
+ y: s(te)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
815
+ fill: e.value.style.chart.layout.labels.name.color,
816
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
817
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
818
+ onClick: (i) => B(t, a)
819
+ }, _(t.name), 13, wl)) : v("", !0)
820
+ ], 64)) : v("", !0),
821
+ e.value.type === "polar" ? (u(), r(m, { key: 3 }, [
822
+ T(t) && h.value.dataLabels.show ? (u(), r("text", {
823
+ key: 0,
824
+ "text-anchor": j(c.value[a].middlePoint),
825
+ x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: o.value.width / 2, centerY: o.value.height / 2 }).x,
826
+ y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: o.value.width / 2, centerY: o.value.height / 2 }).y,
827
+ fill: e.value.style.chart.layout.labels.percentage.color,
828
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
829
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
830
+ onClick: (i) => B(t, a)
831
+ }, _(se(t, p.value)) + " " + _(e.value.style.chart.layout.labels.value.show ? `(${s(X)(
832
+ e.value.style.chart.layout.labels.value.formatter,
833
+ t.value,
834
+ s(S)({
835
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
836
+ v: t.value,
837
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
838
+ r: e.value.style.chart.layout.labels.value.rounding
839
+ }),
840
+ { datapoint: t }
841
+ )})` : ""), 13, kl)) : v("", !0),
842
+ T(t) && h.value.dataLabels.show ? (u(), r("text", {
843
+ key: 1,
844
+ "text-anchor": j(c.value[a].middlePoint),
845
+ x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: o.value.width / 2, centerY: o.value.height / 2 }).x,
846
+ y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: o.value.width / 2, centerY: o.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
847
+ fill: e.value.style.chart.layout.labels.name.color,
848
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
849
+ style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
850
+ onClick: (i) => B(t, a)
851
+ }, _(t.name), 13, xl)) : v("", !0)
852
+ ], 64)) : v("", !0)
853
+ ])),
854
+ h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (u(), r("g", _l, [
855
+ T(t) && e.value.type === "classic" ? (u(), r("foreignObject", {
856
+ key: 0,
857
+ x: e.value.style.chart.comments.offsetX + (s(b)(t, !0).anchor === "end" ? s(b)(t).x - e.value.style.chart.comments.width : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - e.value.style.chart.comments.width / 2 : s(b)(t).x),
858
+ y: s(te)(t) + 24 + e.value.style.chart.comments.offsetY,
859
+ width: e.value.style.chart.comments.width,
860
+ height: "200",
861
+ style: { overflow: "visible", "pointer-events": "none" }
862
+ }, [
863
+ f("div", null, [
864
+ k(l.$slots, "plot-comment", {
865
+ plot: { ...t, textAlign: s(b)(t, !0, 16, !0).anchor, flexAlign: s(b)(t, !0, 16).anchor }
866
+ }, void 0, !0)
867
+ ])
868
+ ], 8, Cl)) : v("", !0),
869
+ T(t) && e.value.type === "polar" ? (u(), r("foreignObject", {
870
+ key: 1,
871
+ x: e.value.style.chart.comments.offsetX + (j(c.value[a].middlePoint) === "end" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: o.value.width / 2, centerY: o.value.height / 2 }).x - e.value.style.chart.comments.width : j(c.value[a].middlePoint) === "middle" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: o.value.width / 2, centerY: o.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: o.value.width / 2, centerY: o.value.height / 2 }).x),
872
+ y: Ee(c.value[a]) + e.value.style.chart.comments.offsetY,
873
+ width: e.value.style.chart.comments.width,
874
+ height: "200",
875
+ style: { overflow: "visible", "pointer-events": "none" }
876
+ }, [
877
+ f("div", null, [
878
+ k(l.$slots, "plot-comment", {
879
+ plot: { ...t, textAlign: j(c.value[a].middlePoint), flexAlign: j(c.value[a].middlePoint) }
880
+ }, void 0, !0)
881
+ ])
882
+ ], 8, $l)) : v("", !0)
883
+ ])) : v("", !0)
884
+ ], 10, hl))), 256)),
885
+ k(l.$slots, "svg", { svg: o.value }, void 0, !0)
886
+ ], 14, Tt)) : v("", !0),
887
+ l.$slots.watermark ? (u(), r("div", Pl, [
888
+ k(l.$slots, "watermark", Q(Z({ isPrinting: s(me) || s(we) })), void 0, !0)
889
+ ])) : v("", !0),
890
+ E.value ? v("", !0) : (u(), H($t, {
891
+ key: 4,
892
+ config: {
893
+ type: "donut",
894
+ style: {
895
+ backgroundColor: e.value.style.chart.backgroundColor,
896
+ donut: {
897
+ color: "#CCCCCC",
898
+ strokeWidth: W.value * 0.8
899
+ }
900
+ }
901
+ }
902
+ }, null, 8, ["config"])),
903
+ f("div", {
904
+ ref_key: "chartLegend",
905
+ ref: de
906
+ }, [
907
+ e.value.style.chart.legend.show ? (u(), H(Ct, {
908
+ key: `legend_${fe.value}`,
909
+ legendSet: Le.value,
910
+ config: Ue.value,
911
+ onClickMarker: n[4] || (n[4] = ({ i: t }) => Pe(t))
912
+ }, {
913
+ item: L(({ legend: t, index: a }) => [
914
+ f("div", {
915
+ onClick: (i) => t.segregate(),
916
+ style: Y(`opacity:${O.value.includes(a) ? 0.5 : 1}`)
917
+ }, [
918
+ Ae(_(t.name) + ": " + _(s(X)(
919
+ e.value.style.chart.layout.labels.value.formatter,
920
+ t.value,
921
+ s(S)({
922
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
923
+ v: t.value,
924
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
925
+ r: e.value.style.chart.legend.roundingValue
926
+ }),
927
+ {
928
+ datapoint: t,
929
+ index: a
930
+ }
931
+ )) + " ", 1),
932
+ O.value.includes(a) ? (u(), r("span", Fl, " ( " + _(qe(t.proportion * 100)) + " % ) ", 1)) : (u(), r("span", Sl, " (" + _(isNaN(t.value / $.value) ? "-" : s(X)(
933
+ e.value.style.chart.layout.labels.percentage.formatter,
934
+ V.value ? t.proportion * 100 : t.value / $.value * 100,
935
+ s(S)({
936
+ v: V.value ? t.proportion * 100 : t.value / $.value * 100,
937
+ s: "%",
938
+ r: e.value.style.chart.legend.roundingPercentage
939
+ })
940
+ )) + ") ", 1))
941
+ ], 12, Ll)
942
+ ]),
943
+ _: 1
944
+ }, 8, ["legendSet", "config"])) : v("", !0),
945
+ k(l.$slots, "legend", { legend: Le.value }, void 0, !0)
946
+ ], 512),
947
+ Ie(_t, {
948
+ show: h.value.showTooltip && ae.value,
949
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
950
+ color: e.value.style.chart.tooltip.color,
951
+ fontSize: e.value.style.chart.tooltip.fontSize,
952
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
953
+ borderColor: e.value.style.chart.tooltip.borderColor,
954
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
955
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
956
+ position: e.value.style.chart.tooltip.position,
957
+ offsetY: e.value.style.chart.tooltip.offsetY,
958
+ parent: R.value,
959
+ content: ue.value,
960
+ isCustom: q.value
961
+ }, {
962
+ "tooltip-before": L(() => [
963
+ k(l.$slots, "tooltip-before", Q(Z({ ...ne.value })), void 0, !0)
964
+ ]),
965
+ "tooltip-after": L(() => [
966
+ k(l.$slots, "tooltip-after", Q(Z({ ...ne.value })), void 0, !0)
967
+ ]),
968
+ _: 3
969
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
970
+ E.value ? (u(), H(Pt, {
971
+ key: 5,
972
+ hideDetails: "",
973
+ config: {
974
+ open: h.value.showTable,
975
+ maxHeight: 1e4,
976
+ body: {
977
+ backgroundColor: e.value.style.chart.backgroundColor,
978
+ color: e.value.style.chart.color
979
+ },
980
+ head: {
981
+ backgroundColor: e.value.style.chart.backgroundColor,
982
+ color: e.value.style.chart.color
983
+ }
984
+ }
985
+ }, {
986
+ content: L(() => [
987
+ (u(), H(xt, {
988
+ key: `table_${ye.value}`,
989
+ colNames: oe.value.colNames,
990
+ head: oe.value.head,
991
+ body: oe.value.body,
992
+ config: oe.value.config,
993
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
994
+ onClose: n[5] || (n[5] = (t) => h.value.showTable = !1)
995
+ }, {
996
+ th: L(({ th: t }) => [
997
+ f("div", {
998
+ innerHTML: t,
999
+ style: { display: "flex", "align-items": "center" }
1000
+ }, null, 8, zl)
1001
+ ]),
1002
+ td: L(({ td: t }) => [
1003
+ Ae(_(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : s(X)(
1004
+ e.value.style.chart.layout.labels.percentage.formatter,
1005
+ t,
1006
+ s(S)({
1007
+ v: t,
1008
+ s: "%",
1009
+ r: e.value.style.chart.layout.labels.percentage.rounding
1010
+ })
1011
+ ) : s(X)(
1012
+ e.value.style.chart.layout.labels.value.formatter,
1013
+ t,
1014
+ s(S)({
1015
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1016
+ v: t,
1017
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1018
+ r: e.value.style.chart.layout.labels.value.rounding
1019
+ })
1020
+ )), 1)
1021
+ ]),
1022
+ _: 1
1023
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1024
+ ]),
1025
+ _: 1
1026
+ }, 8, ["config"])) : v("", !0)
1027
+ ], 14, zt));
1028
+ }
1029
+ }, Ul = /* @__PURE__ */ St(Tl, [["__scopeId", "data-v-a418a215"]]);
1030
+ export {
1031
+ Ul as default
1032
+ };