vue-data-ui 2.4.88 → 2.4.90

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 (154) hide show
  1. package/dist/{Arrow-DMSM0MM1.cjs → Arrow-BSIvdfoj.cjs} +1 -1
  2. package/dist/{Arrow-D79KA6Cu.js → Arrow-ZO8Y9-1Q.js} +1 -1
  3. package/dist/{BaseIcon-B9BZgZsa.js → BaseIcon-BpofIJET.js} +1 -1
  4. package/dist/{BaseIcon-CehmAXJH.cjs → BaseIcon-UR3q41gQ.cjs} +1 -1
  5. package/dist/{DataTable-DVKGDaCB.cjs → DataTable-D-hda58J.cjs} +1 -1
  6. package/dist/{DataTable-Cnr3w23K.js → DataTable-DSxaFF3x.js} +2 -2
  7. package/dist/{Legend-Di7FMl12.js → Legend-DMkFFdOO.js} +2 -2
  8. package/dist/{Legend-Uv0t6PIz.cjs → Legend-bHoLREZn.cjs} +1 -1
  9. package/dist/{PackageVersion-BgKxrHv-.cjs → PackageVersion-C2d9irPH.cjs} +1 -1
  10. package/dist/{PackageVersion-BAKTtSRE.js → PackageVersion-LxLDMXmr.js} +1 -1
  11. package/dist/{PenAndPaper-BYVZ33fz.cjs → PenAndPaper-BO89xQwu.cjs} +1 -1
  12. package/dist/{PenAndPaper-BUzmu0vi.js → PenAndPaper-C_SiTAbJ.js} +3 -3
  13. package/dist/{Shape-DZz__S1P.js → Shape-BysfkOzx.js} +1 -1
  14. package/dist/{Shape-CNuTafzS.cjs → Shape-tIX54tZo.cjs} +1 -1
  15. package/dist/{Slicer-BSQa-Zel.cjs → Slicer-BxN9wDTW.cjs} +1 -1
  16. package/dist/{Slicer-Clpv-EOL.js → Slicer-Cguxp4_C.js} +15 -15
  17. package/dist/{Title-DcTKT_WK.cjs → Title-C7FKCxhh.cjs} +1 -1
  18. package/dist/{Title-Dt5mC-vb.js → Title-Dcy3qq8t.js} +1 -1
  19. package/dist/{Tooltip-CmKYX0H1.js → Tooltip-CRRn6Gtk.js} +1 -1
  20. package/dist/{Tooltip-y6Z9yhlE.cjs → Tooltip-HFiG7-b2.cjs} +1 -1
  21. package/dist/{index-DCHLGNvJ.js → index-DD55onbf.js} +65 -53
  22. package/dist/index-oJt6G-1X.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +6 -0
  25. package/dist/types/vue-data-ui.d.ts +6 -0
  26. package/dist/{useNestedProp-BPR7xHxr.js → useNestedProp-Cf4jge53.js} +1 -1
  27. package/dist/{useNestedProp-LNEDZsGq.cjs → useNestedProp-eByLWGIp.cjs} +1 -1
  28. package/dist/{usePrinter-CjQvMB0_.cjs → usePrinter-C1cmAKZi.cjs} +1 -1
  29. package/dist/{usePrinter-BvounINk.js → usePrinter-DWsOiNiW.js} +1 -1
  30. package/dist/{vue-data-ui-BCZFdeNf.js → vue-data-ui-Ckk3cZP3.js} +60 -60
  31. package/dist/{vue-data-ui-eNIOCbja.cjs → vue-data-ui-ClVi4qwu.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-B0ZLxzL-.js → vue-ui-3d-bar-CKUz-73_.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-DEZhX6d1.cjs → vue-ui-3d-bar-vXOpY3Ff.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-2c1jq56U.cjs → vue-ui-accordion-Bd4pdW-K.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-DEpeQHhr.js → vue-ui-accordion-DLLoQbUa.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-dewoEG3y.js → vue-ui-age-pyramid-Daa6G08e.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-DlE41fIs.cjs → vue-ui-age-pyramid-DyOUxoA7.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-D9op3RMK.js → vue-ui-annotator-CroOFpE1.js} +1 -1
  41. package/dist/{vue-ui-annotator-CG6CV-7_.cjs → vue-ui-annotator-p9ayuN1-.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-Bt_2KhaH.cjs → vue-ui-bullet-B8ZrosoF.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-B6tijZFI.js → vue-ui-bullet-D4_F7DfJ.js} +8 -8
  44. package/dist/{vue-ui-candlestick-DWDz2nFA.cjs → vue-ui-candlestick-C_CS8yoj.cjs} +1 -1
  45. package/dist/{vue-ui-candlestick-B4DkRibE.js → vue-ui-candlestick-DH5ZszpO.js} +11 -11
  46. package/dist/{vue-ui-carousel-table-DZlh-CRi.cjs → vue-ui-carousel-table-BD4n--x5.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-COAPDtuP.js → vue-ui-carousel-table-KRMGBHRP.js} +4 -4
  48. package/dist/{vue-ui-chestnut-DCk2Zbcz.js → vue-ui-chestnut-DlzGrBKE.js} +8 -8
  49. package/dist/{vue-ui-chestnut-EyoKonrW.cjs → vue-ui-chestnut-GIMUpe9V.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-DSP_sXww.js → vue-ui-cursor-Bzpat70I.js} +2 -2
  51. package/dist/{vue-ui-cursor-DR8hHWf7.cjs → vue-ui-cursor-CP_hLq_F.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-BJsyMU6X.cjs → vue-ui-dashboard-Bl45zC_-.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-BizVZE7w.js → vue-ui-dashboard-CAxpWqdp.js} +2 -2
  54. package/dist/{vue-ui-digits-vspu86yU.cjs → vue-ui-digits-BUj0U6ah.cjs} +1 -1
  55. package/dist/{vue-ui-digits-BvVZ7uDf.js → vue-ui-digits-DBsciKvZ.js} +2 -2
  56. package/dist/{vue-ui-donut-aFsq1d8c.js → vue-ui-donut-BaivqlQ9.js} +12 -12
  57. package/dist/{vue-ui-donut-evolution-BfS2WdBU.js → vue-ui-donut-evolution-DwMUeGj1.js} +11 -11
  58. package/dist/{vue-ui-donut-evolution-DwVP-Zjn.cjs → vue-ui-donut-evolution-T0q0AQpw.cjs} +1 -1
  59. package/dist/{vue-ui-donut-BHJF4z2B.cjs → vue-ui-donut-hlEvLIAG.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-Bb5wHbQL.js → vue-ui-dumbbell-BYHA7gmV.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-Bi-2LGtG.cjs → vue-ui-dumbbell-DeYS8Jqs.cjs} +1 -1
  62. package/dist/{vue-ui-flow-DxNNh-WO.js → vue-ui-flow-DNunZt6t.js} +9 -9
  63. package/dist/{vue-ui-flow-RQWHqn22.cjs → vue-ui-flow-g2-DDXHU.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-IVTzcHVm.js → vue-ui-funnel-C3HTyg1p.js} +9 -9
  65. package/dist/{vue-ui-funnel-D-892HTK.cjs → vue-ui-funnel-Dj7HoggX.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-BR-8c9Hn.cjs → vue-ui-galaxy-DkKp1Fn6.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-039pCZpW.js → vue-ui-galaxy-DqJhMTWB.js} +11 -11
  68. package/dist/vue-ui-gauge-BzWGRR5d.cjs +1 -0
  69. package/dist/{vue-ui-gauge-ZEMVvV-t.js → vue-ui-gauge-TkdVQL99.js} +220 -203
  70. package/dist/{vue-ui-gizmo-DKzAWnI0.js → vue-ui-gizmo-B8hAT82V.js} +3 -3
  71. package/dist/{vue-ui-gizmo--XG8-JLk.cjs → vue-ui-gizmo-DkSmQPnp.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-Bia0Ekaw.cjs → vue-ui-heatmap-BisHe3OP.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-DXDpQL6T.js → vue-ui-heatmap-CyoWZ7ce.js} +10 -10
  74. package/dist/{vue-ui-history-plot-Cq9ZWdDn.cjs → vue-ui-history-plot-BzyhAUsf.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-o1WosOjA.js → vue-ui-history-plot-DCSjZE3t.js} +11 -11
  76. package/dist/{vue-ui-kpi-B01FpRQ0.js → vue-ui-kpi-CEybiAoH.js} +3 -3
  77. package/dist/{vue-ui-kpi-lWq7fZr1.cjs → vue-ui-kpi-DTIZqf1G.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-DLUYnvwS.js → vue-ui-mini-loader-DtmpAbXk.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-jkxJpHFv.cjs → vue-ui-mini-loader-vuKZGTDh.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-BBK9ofPv.cjs → vue-ui-molecule-BVwf_QS7.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-DyiuRZQM.js → vue-ui-molecule-CP3TR3uW.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-Bx32tbYB.cjs → vue-ui-mood-radar-CBtUbd5w.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-DJI_fbFv.js → vue-ui-mood-radar-Cl0h0D-W.js} +24 -24
  84. package/dist/{vue-ui-nested-donuts-B6ZLkoIS.cjs → vue-ui-nested-donuts-C0umA4ML.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-B9gUqMTf.js → vue-ui-nested-donuts-Dt5rDxew.js} +11 -11
  86. package/dist/{vue-ui-onion-D-OxG00N.js → vue-ui-onion-Dd6TzYXX.js} +11 -11
  87. package/dist/{vue-ui-onion-BnLW3as9.cjs → vue-ui-onion-iQwEuELC.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-DXc-b6rP.js → vue-ui-parallel-coordinate-plot-CDWIGek4.js} +26 -26
  89. package/dist/{vue-ui-parallel-coordinate-plot-wx4e_yuu.cjs → vue-ui-parallel-coordinate-plot-D3tglRgP.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-BqaLRYQp.cjs → vue-ui-quadrant-CuZcEJGS.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-bakb0497.js → vue-ui-quadrant-HQMcbIkL.js} +36 -36
  92. package/dist/{vue-ui-quick-chart-BnH7-lmq.js → vue-ui-quick-chart-BHN_uJBE.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-BZdsiGCz.cjs → vue-ui-quick-chart-Debf-SrU.cjs} +1 -1
  94. package/dist/{vue-ui-radar-DadvgLtC.js → vue-ui-radar-2Ck9VBhT.js} +26 -26
  95. package/dist/{vue-ui-radar-D5IDgzwd.cjs → vue-ui-radar-DxZpBJtG.cjs} +1 -1
  96. package/dist/{vue-ui-rating-B4yxkddt.cjs → vue-ui-rating-CFUtQBK8.cjs} +1 -1
  97. package/dist/{vue-ui-rating-CGojWinU.js → vue-ui-rating-l_ou-fwb.js} +5 -5
  98. package/dist/{vue-ui-relation-circle-rmWirv-5.cjs → vue-ui-relation-circle-Bo8oWyEB.cjs} +1 -1
  99. package/dist/{vue-ui-relation-circle-COC07h_K.js → vue-ui-relation-circle-Bz9PNnTk.js} +7 -7
  100. package/dist/{vue-ui-rings-DO1cN4ly.cjs → vue-ui-rings-B88wRjdq.cjs} +1 -1
  101. package/dist/{vue-ui-rings-CMk-sVvK.js → vue-ui-rings-BHSDf_bS.js} +12 -12
  102. package/dist/{vue-ui-scatter-CPkly4JA.js → vue-ui-scatter-CFf7Shno.js} +102 -102
  103. package/dist/{vue-ui-scatter-C4QmHmq2.cjs → vue-ui-scatter-DwrvTcvG.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-CzFhpFE4.js → vue-ui-screenshot-CDenayoD.js} +1 -1
  105. package/dist/{vue-ui-screenshot-BxFOMLiy.cjs → vue-ui-screenshot-c_vhJ0-B.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-Tse1D8cv.cjs → vue-ui-skeleton-Bl1lucUY.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-nTL-u4Yd.js → vue-ui-skeleton-CESQcfWL.js} +3 -3
  108. package/dist/{vue-ui-smiley-Bu3bOukI.js → vue-ui-smiley-D-VUvg62.js} +2 -2
  109. package/dist/{vue-ui-smiley-D-sS-77y.cjs → vue-ui-smiley-DbELC5Y0.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-CF36oite.cjs → vue-ui-spark-trend-BdRhlsPm.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-Bh5gFFQf.js → vue-ui-spark-trend-DhPjPyRU.js} +15 -15
  112. package/dist/{vue-ui-sparkbar-DX2xrwR9.js → vue-ui-sparkbar-DNCM5xum.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-CGIYeFjB.cjs → vue-ui-sparkbar-wgbRG59n.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-CZ837K-0.js → vue-ui-sparkgauge-1F6Unq-t.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-D2NJVKww.cjs → vue-ui-sparkgauge-B-cPl2OP.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DIYvXyIB.cjs → vue-ui-sparkhistogram-Bf3Q8coy.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-2NcpXt-_.js → vue-ui-sparkhistogram-C69wU065.js} +5 -5
  118. package/dist/{vue-ui-sparkline-BIj5WMUM.cjs → vue-ui-sparkline-BvxaN2GO.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-CuBFi324.js → vue-ui-sparkline-CrP5yEbF.js} +23 -23
  120. package/dist/{vue-ui-sparkstackbar-BvcGQqmi.cjs → vue-ui-sparkstackbar-BlzBOi83.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-bqD9-qmQ.js → vue-ui-sparkstackbar-C-zgACDi.js} +5 -5
  122. package/dist/{vue-ui-stackbar-BG0olJr0.js → vue-ui-stackbar-BYmJkNhD.js} +13 -13
  123. package/dist/{vue-ui-stackbar-Cbk-PfOC.cjs → vue-ui-stackbar-C96Fxg66.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-mNsmytzE.js → vue-ui-strip-plot-BS7quLHn.js} +11 -11
  125. package/dist/{vue-ui-strip-plot-Dm2ctnIx.cjs → vue-ui-strip-plot-BpLkljEL.cjs} +1 -1
  126. package/dist/{vue-ui-table-C8_8TJ2H.js → vue-ui-table-D4-lUGYK.js} +1 -1
  127. package/dist/{vue-ui-table-BwuSG-oE.cjs → vue-ui-table-DwwE3i4I.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-Bakns13v.js → vue-ui-table-heatmap-BNmWCrcY.js} +15 -15
  129. package/dist/{vue-ui-table-heatmap-ZfohVD71.cjs → vue-ui-table-heatmap-CGb9QBzK.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CC5hpyGe.cjs → vue-ui-table-sparkline-BtVDfdx6.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-Du93NBKM.js → vue-ui-table-sparkline-CzVT74Bo.js} +5 -5
  132. package/dist/{vue-ui-thermometer-Cbe7bVeq.cjs → vue-ui-thermometer-C6psexEi.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-DZeTxVGM.js → vue-ui-thermometer-D6B1e-kE.js} +7 -7
  134. package/dist/{vue-ui-timer-B-guKc3A.cjs → vue-ui-timer-BVpkq0Eb.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BwNbaMti.js → vue-ui-timer-Djy00gLF.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-sCXXGXiN.js → vue-ui-tiremarks-BnFhNKNK.js} +7 -7
  137. package/dist/{vue-ui-tiremarks-DNtBCjbs.cjs → vue-ui-tiremarks-DQkEWxQJ.cjs} +1 -1
  138. package/dist/{vue-ui-treemap-CH_qGgmb.cjs → vue-ui-treemap-BX6nGwvZ.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-BQoajav9.js → vue-ui-treemap-qtGBTWTl.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-ytpJJBqm.cjs → vue-ui-vertical-bar-Bv6fmPmz.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-LWxKcXEf.js → vue-ui-vertical-bar-Djtyca8s.js} +12 -12
  142. package/dist/{vue-ui-waffle-q-CgTerF.js → vue-ui-waffle--GwDqms-.js} +12 -12
  143. package/dist/{vue-ui-waffle-CvHppO8v.cjs → vue-ui-waffle-BWAIIf1i.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-BoXkxGeh.cjs → vue-ui-wheel-CabI8YAt.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-CPHOwOzy.js → vue-ui-wheel-DuULgJzV.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-DFL3e0A2.cjs → vue-ui-word-cloud-BJqrgirH.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-BargS03s.js → vue-ui-word-cloud-CSMNDZ9Y.js} +10 -10
  148. package/dist/{vue-ui-xy-CgIp7caN.cjs → vue-ui-xy-C4WZl8Rn.cjs} +1 -1
  149. package/dist/{vue-ui-xy-DC5y2PjZ.js → vue-ui-xy-Cy5OoDkY.js} +28 -28
  150. package/dist/{vue-ui-xy-canvas-B4mqwnlS.js → vue-ui-xy-canvas-D2OMF5vm.js} +11 -11
  151. package/dist/{vue-ui-xy-canvas-D1jemBXQ.cjs → vue-ui-xy-canvas-DKyQkG9T.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-xEXHnOtJ.cjs +0 -9
  154. package/dist/vue-ui-gauge-B4k-bq9l.cjs +0 -1
@@ -1,20 +1,20 @@
1
1
  import { computed as g, ref as h, watch as Fe, onMounted as lt, onBeforeUnmount as at, openBlock as o, createElementBlock as n, normalizeClass as T, normalizeStyle as q, unref as y, createBlock as N, createCommentVNode as c, createSlots as ut, withCtx as $, renderSlot as k, normalizeProps as G, guardReactiveProps as Q, createVNode as ve, createElementVNode as d, Fragment as S, renderList as Y, toDisplayString as L, createTextVNode as ot, nextTick as st } from "vue";
2
- import { u as rt, c as Re, t as nt, a as it, p as de, o as vt, e as H, b as dt, T as ct, d as ht, i as O, f as P, X as yt, s as ae, w as bt, U as ft, G as pt, x as gt, y as mt, q as xt, r as $t } from "./index-DCHLGNvJ.js";
2
+ import { u as rt, c as Re, t as nt, a as it, p as de, o as vt, e as H, b as dt, U as ct, d as ht, i as O, f as V, X as yt, s as ae, w as bt, V as ft, G as pt, x as gt, y as mt, q as xt, r as $t } from "./index-DD55onbf.js";
3
3
  import { t as kt, u as Lt } from "./useResponsive-CoxXLe23.js";
4
- import { _ as wt } from "./Title-Dt5mC-vb.js";
5
- import { u as qt, U as _t } from "./usePrinter-BvounINk.js";
6
- import { _ as St } from "./Tooltip-CmKYX0H1.js";
7
- import { _ as He } from "./Shape-DZz__S1P.js";
8
- import { L as Ct } from "./Legend-Di7FMl12.js";
9
- import { D as zt } from "./DataTable-Cnr3w23K.js";
10
- import Tt from "./vue-ui-skeleton-nTL-u4Yd.js";
11
- import Xt from "./vue-ui-accordion-DEpeQHhr.js";
12
- import { u as Ie } from "./useNestedProp-BPR7xHxr.js";
13
- import { _ as Wt } from "./PackageVersion-BAKTtSRE.js";
14
- import { P as Yt } from "./PenAndPaper-BUzmu0vi.js";
4
+ import { _ as wt } from "./Title-Dcy3qq8t.js";
5
+ import { u as qt, U as _t } from "./usePrinter-DWsOiNiW.js";
6
+ import { _ as St } from "./Tooltip-CRRn6Gtk.js";
7
+ import { _ as He } from "./Shape-BysfkOzx.js";
8
+ import { L as Ct } from "./Legend-DMkFFdOO.js";
9
+ import { D as zt } from "./DataTable-DSxaFF3x.js";
10
+ import Tt from "./vue-ui-skeleton-CESQcfWL.js";
11
+ import Xt from "./vue-ui-accordion-DLLoQbUa.js";
12
+ import { u as Ie } from "./useNestedProp-Cf4jge53.js";
13
+ import { _ as Wt } from "./PackageVersion-LxLDMXmr.js";
14
+ import { P as Yt } from "./PenAndPaper-C_SiTAbJ.js";
15
15
  import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "height"], Vt = ["id"], Bt = ["stop-color"], Ft = ["stop-color"], Rt = { key: 1 }, Ht = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], It = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Dt = { key: 2 }, Et = ["points", "fill"], Gt = ["points", "fill"], Qt = ["points", "fill"], Jt = ["points", "fill"], jt = { key: 3 }, Zt = ["y", "fill", "font-size"], Kt = ["x", "y", "fill", "font-size"], el = ["x", "y", "fill", "font-size"], tl = ["y", "fill", "font-size"], ll = { key: 4 }, al = ["x", "y", "font-size", "fill"], ul = ["x", "y", "font-size", "fill"], ol = ["x", "y", "font-size", "fill"], sl = ["id", "font-size", "transform", "fill"], rl = ["id", "font-size", "transform", "fill"], nl = ["id", "font-size", "transform", "fill"], il = { key: 5 }, vl = ["fill", "points"], dl = ["x", "y", "width", "height"], cl = ["x", "y", "width", "height"], hl = ["x", "y", "width", "height"], yl = ["x", "y", "width", "height"], bl = {
17
+ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Vt = ["x", "y", "width", "height"], Pt = ["id"], Bt = ["stop-color"], Ft = ["stop-color"], Rt = { key: 1 }, Ht = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], It = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Dt = { key: 2 }, Et = ["points", "fill"], Gt = ["points", "fill"], Qt = ["points", "fill"], Jt = ["points", "fill"], jt = { key: 3 }, Zt = ["y", "fill", "font-size"], Kt = ["x", "y", "fill", "font-size"], el = ["x", "y", "fill", "font-size"], tl = ["y", "fill", "font-size"], ll = { key: 4 }, al = ["x", "y", "font-size", "fill"], ul = ["x", "y", "font-size", "fill"], ol = ["x", "y", "font-size", "fill"], sl = ["id", "font-size", "transform", "fill"], rl = ["id", "font-size", "transform", "fill"], nl = ["id", "font-size", "transform", "fill"], il = { key: 5 }, vl = ["fill", "points"], dl = ["x", "y", "width", "height"], cl = ["x", "y", "width", "height"], hl = ["x", "y", "width", "height"], yl = ["x", "y", "width", "height"], bl = {
18
18
  key: 0,
19
19
  style: { "pointer-events": "none" }
20
20
  }, fl = ["x", "y", "font-size", "fill"], pl = { key: 0 }, gl = ["x", "y", "onMouseover", "onClick"], ml = {
@@ -145,7 +145,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
145
145
  startY: 0
146
146
  });
147
147
  }, { deep: !0 });
148
- const v = h(null), V = g(() => {
148
+ const v = h(null), P = g(() => {
149
149
  switch (v.value) {
150
150
  case "TL":
151
151
  return {
@@ -377,7 +377,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
377
377
  O(
378
378
  t.value.style.chart.layout.labels.plotLabels.x.formatter,
379
379
  s.x,
380
- P({
380
+ V({
381
381
  v: s.x,
382
382
  r: t.value.style.chart.layout.labels.plotLabels.rounding
383
383
  })
@@ -385,7 +385,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
385
385
  O(
386
386
  t.value.style.chart.layout.labels.plotLabels.y.formatter,
387
387
  s.y,
388
- P({
388
+ V({
389
389
  v: s.y,
390
390
  r: t.value.style.chart.layout.labels.plotLabels.rounding
391
391
  })
@@ -470,7 +470,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
470
470
  u.quadrantSide && (r += `<div style="color:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].color};font-weight:${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].bold ? "bold" : "400"}">${t.value.style.chart.layout.labels.quadrantLabels[u.quadrantSide].text}</div>`), r += `<div>${l.name}</div>`, r += `<div style="padding-bottom:6px;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px">${u.name}</div>`, r += `<div>${t.value.style.chart.layout.grid.xAxis.name ? t.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${O(
471
471
  t.value.style.chart.layout.labels.plotLabels.x.formatter,
472
472
  u.xValue,
473
- P({
473
+ V({
474
474
  v: u.xValue,
475
475
  r: t.value.style.chart.tooltip.roundingValue
476
476
  }),
@@ -478,7 +478,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
478
478
  )}</b></div>`, r += `<div>${t.value.style.chart.layout.grid.yAxis.name ? t.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${O(
479
479
  t.value.style.chart.layout.labels.plotLabels.y.formatter,
480
480
  u.yValue,
481
- P({
481
+ V({
482
482
  v: u.yValue,
483
483
  r: t.value.style.chart.tooltip.roundingValue
484
484
  }),
@@ -645,10 +645,10 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
645
645
  function Oe() {
646
646
  m.value.showTable = !m.value.showTable;
647
647
  }
648
- function Pe() {
648
+ function Ve() {
649
649
  m.value.plotLabels.show = !m.value.plotLabels.show;
650
650
  }
651
- function Ve() {
651
+ function Pe() {
652
652
  m.value.showTooltip = !m.value.showTooltip;
653
653
  }
654
654
  const le = h(!1);
@@ -661,8 +661,8 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
661
661
  generateCsv: Ne,
662
662
  generateImage: Se,
663
663
  toggleTable: Oe,
664
- toggleLabels: Pe,
665
- toggleTooltip: Ve,
664
+ toggleLabels: Ve,
665
+ toggleTooltip: Pe,
666
666
  toggleAnnotator: ie
667
667
  }), (l, u) => (o(), n("div", {
668
668
  class: T(`vue-ui-quadrant ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
@@ -736,8 +736,8 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
736
736
  onGenerateCsv: Ne,
737
737
  onGenerateImage: y(Se),
738
738
  onToggleTable: Oe,
739
- onToggleLabels: Pe,
740
- onToggleTooltip: Ve,
739
+ onToggleLabels: Ve,
740
+ onToggleTooltip: Pe,
741
741
  onToggleAnnotator: ie,
742
742
  style: q({
743
743
  visibility: y($e) ? y(se) ? "visible" : "hidden" : "visible"
@@ -820,7 +820,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
820
820
  }
821
821
  }, [
822
822
  k(l.$slots, "chart-background", {}, void 0, !0)
823
- ], 8, Pt)) : c("", !0),
823
+ ], 8, Vt)) : c("", !0),
824
824
  d("defs", null, [
825
825
  (o(!0), n(S, null, Y(C.value, (a, s) => (o(), n("radialGradient", {
826
826
  cx: "50%",
@@ -838,7 +838,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
838
838
  offset: "100%",
839
839
  "stop-color": y(ae)(a.color, t.value.style.chart.layout.areas.opacity)
840
840
  }, null, 8, Ft)
841
- ], 8, Vt))), 256))
841
+ ], 8, Pt))), 256))
842
842
  ]),
843
843
  t.value.style.chart.layout.grid.graduations.show ? (o(), n("g", Rt, [
844
844
  (o(!0), n(S, null, Y(je.value, (a) => (o(), n("rect", {
@@ -942,7 +942,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
942
942
  }, L(y(O)(
943
943
  t.value.style.chart.layout.labels.plotLabels.y.formatter,
944
944
  _.value.y.max,
945
- y(P)({
945
+ y(V)({
946
946
  v: _.value.y.max,
947
947
  r: t.value.style.chart.layout.labels.plotLabels.rounding
948
948
  })
@@ -963,7 +963,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
963
963
  }, L(y(O)(
964
964
  t.value.style.chart.layout.labels.plotLabels.y.formatter,
965
965
  _.value.y.min,
966
- y(P)({
966
+ y(V)({
967
967
  v: _.value.y.min,
968
968
  r: t.value.style.chart.layout.labels.plotLabels.rounding
969
969
  })
@@ -977,7 +977,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
977
977
  }, L(y(O)(
978
978
  t.value.style.chart.layout.labels.plotLabels.x.formatter,
979
979
  _.value.x.min,
980
- y(P)({
980
+ y(V)({
981
981
  v: _.value.x.min,
982
982
  r: t.value.style.chart.layout.labels.plotLabels.rounding
983
983
  })
@@ -991,7 +991,7 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
991
991
  }, L(y(O)(
992
992
  t.value.style.chart.layout.labels.plotLabels.x.formatter,
993
993
  _.value.x.max,
994
- y(P)({
994
+ y(V)({
995
995
  v: _.value.x.max,
996
996
  r: t.value.style.chart.layout.labels.plotLabels.rounding
997
997
  })
@@ -1130,13 +1130,13 @@ const Nt = ["id"], Ot = ["xmlns", "viewBox", "id"], Pt = ["x", "y", "width", "he
1130
1130
  ])) : c("", !0),
1131
1131
  v.value && !K.value ? (o(), n("g", wl, [
1132
1132
  d("text", {
1133
- x: V.value.x,
1134
- y: V.value.y - V.value.fontSize / 1.5,
1135
- "font-size": V.value.fontSize / 1.5,
1136
- fill: V.value.fill,
1133
+ x: P.value.x,
1134
+ y: P.value.y - P.value.fontSize / 1.5,
1135
+ "font-size": P.value.fontSize / 1.5,
1136
+ fill: P.value.fill,
1137
1137
  "text-anchor": "middle",
1138
- "font-weight": V.value.bold ? "bold" : "normal"
1139
- }, L(V.value.text), 9, ql)
1138
+ "font-weight": P.value.bold ? "bold" : "normal"
1139
+ }, L(P.value.text), 9, ql)
1140
1140
  ])) : c("", !0),
1141
1141
  p.value && v.value ? (o(), n("g", _l, [
1142
1142
  d("rect", {
@@ -1,14 +1,14 @@
1
1
  import { ref as L, computed as U, watch as Ne, onMounted as St, onBeforeUnmount as wt, nextTick as Ce, openBlock as a, createElementBlock as l, normalizeClass as re, normalizeStyle as N, createBlock as Ie, createCommentVNode as f, unref as g, createSlots as At, withCtx as Q, renderSlot as F, normalizeProps as G, guardReactiveProps as se, toDisplayString as O, createVNode as ve, createElementVNode as _, Fragment as p, renderList as $, mergeProps as Fe, pushScopeId as _t, popScopeId as zt } from "vue";
2
- import { u as Lt, c as $t, t as Ct, a as It, p as V, C as lt, b as Et, J as Tt, e as Pt, d as Me, m as Ot, D as ot, X as Rt, j as Nt, k as ye, n as Ue, i as X, f as B, R as it, v as Z, x as Ee, y as Be } from "./index-DCHLGNvJ.js";
2
+ import { u as Lt, c as $t, t as Ct, a as It, p as V, C as lt, b as Et, J as Tt, e as Pt, d as Me, m as Ot, D as ot, X as Rt, j as Nt, k as ye, n as Ue, i as X, f as B, S as it, v as Z, x as Ee, y as Be } from "./index-DD55onbf.js";
3
3
  import { t as Ft, u as Mt } from "./useResponsive-CoxXLe23.js";
4
- import Te from "./BaseIcon-B9BZgZsa.js";
5
- import { _ as Ut } from "./Tooltip-CmKYX0H1.js";
6
- import { u as Bt, U as Dt } from "./usePrinter-BvounINk.js";
7
- import { S as Vt } from "./Slicer-Clpv-EOL.js";
8
- import qt from "./vue-ui-skeleton-nTL-u4Yd.js";
9
- import { u as nt } from "./useNestedProp-BPR7xHxr.js";
10
- import { _ as Wt } from "./PackageVersion-BAKTtSRE.js";
11
- import { P as Ht } from "./PenAndPaper-BUzmu0vi.js";
4
+ import Te from "./BaseIcon-BpofIJET.js";
5
+ import { _ as Ut } from "./Tooltip-CRRn6Gtk.js";
6
+ import { u as Bt, U as Dt } from "./usePrinter-DWsOiNiW.js";
7
+ import { S as Vt } from "./Slicer-Cguxp4_C.js";
8
+ import qt from "./vue-ui-skeleton-CESQcfWL.js";
9
+ import { u as nt } from "./useNestedProp-Cf4jge53.js";
10
+ import { _ as Wt } from "./PackageVersion-LxLDMXmr.js";
11
+ import { P as Ht } from "./PenAndPaper-C_SiTAbJ.js";
12
12
  import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const A = {
14
14
  LINE: "LINE",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-xEXHnOtJ.cjs"),Ce=require("./useResponsive-BJ7DTGpm.cjs"),se=require("./BaseIcon-CehmAXJH.cjs"),Ge=require("./Tooltip-y6Z9yhlE.cjs"),ze=require("./usePrinter-CjQvMB0_.cjs"),Xe=require("./Slicer-BSQa-Zel.cjs"),Ye=require("./vue-ui-skeleton-Tse1D8cv.cjs"),Ne=require("./useNestedProp-LNEDZsGq.cjs"),Ze=require("./PackageVersion-BgKxrHv-.cjs"),Je=require("./PenAndPaper-BYVZ33fz.cjs"),Qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={LINE:"LINE",BAR:"BAR",DONUT:"DONUT"},Ke=["SERIE","SERIES","DATA","VALUE","VALUES","NUM"];function et({dataset:d,barLineSwitch:w=6}){let h=null,B=null,N=0;if((typeof d=="number"||typeof d=="string")&&console.warn(`The provided dataset (${d}) is not sufficient to build a chart`),ee(d)&&(P(d)&&(d.length<w?h=S.BAR:h=S.LINE,B=d,N=d.length),ce(d))){if(!lt(d))return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."),!1;const U=Object.keys(d[0]),j=Object.values(d[0]);if(!U.some(A=>at(A)))return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."),!1;Ve(j,A=>typeof A=="number")&&(h=S.DONUT,B=d),Ve(j,A=>Array.isArray(A)&&P(A))&&($e(d)>w?h=S.LINE:h=S.BAR,N=$e(d),B=d.map(A=>({...A,data:ot(A,F=>P(F))}))),d=d.map(A=>Fe(A)),B=B.map(A=>Fe(A))}return ee(d)&&[...new Set(d.flatMap(U=>Array.isArray(U)))][0],{dataset:d,type:h,usableDataset:B,maxSeriesLength:N}}function Pe(d){return!d||ee(d)&&!d.length}function ee(d){return Array.isArray(d)}function P(d){if(!ee(d)||Pe(d))return!1;const w=d.map(h=>Number(h));return![...new Set(w.flatMap(h=>typeof h=="number"&&!isNaN(h)))].includes(!1)}function ce(d){return!ee(d)||Pe(d)||!![...new Set(d.flatMap(h=>typeof h=="object"&&!Array.isArray(h)))].includes(!1)?!1:!d.map(h=>Object.keys(h).length>0).includes(!1)}function tt(d,w){const h=Object.keys(d).sort(),B=Object.keys(w).sort();if(h.length!==B.length)return!1;for(let N=0;N<h.length;N+=1){const V=h[N],M=B[N];if(V!==M||typeof d[V]!=typeof w[M])return!1}return!0}function lt(d){if(d.length<=1)return!0;for(let w=0;w<d.length;w+=1)for(let h=w+1;h<d.length;h+=1)if(!tt(d[w],d[h]))return!1;return!0}function at(d){return Ke.includes(d.toUpperCase())}function Ve(d,w){let h=[];for(let B=0;B<d.length;B+=1)h.push(w(d[B]));return h.includes(!0)}function $e(d){return Math.max(...[...d].flatMap(w=>Object.values(w).filter(h=>P(h)).map(h=>h.length)))}function ot(d,w){return Object.values(d).filter(h=>w(h))[0]}function Fe(d){const w={};for(let h in d)d.hasOwnProperty(h)&&(w[h.toUpperCase()]=d[h]);return w}const Ie=d=>(e.pushScopeId("data-v-e9d5ef87"),d=d(),e.popScopeId(),d),nt=["id"],rt=["xmlns","viewBox"],it=["x","y","width","height"],ut=["x","y","width","height"],st=["width","height"],ct=["id"],dt=["id"],vt=Ie(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),mt=["id"],ht=["flood-color"],ft={key:0,class:"donut-label-connectors"},pt=["d","stroke","stroke-width","filter"],kt=["cx","cy","r","fill","filter"],gt={class:"donut"},yt=["d","fill","stroke","stroke-width","filter"],xt=["d","onMouseenter","onClick"],St={key:1,class:"donut-labels quick-animation"},bt=["cx","cy","fill","stroke","filter"],Bt=["text-anchor","x","y","fill","font-size","filter"],wt=["text-anchor","x","y","fill","font-size","filter"],Et={key:2,class:"donut-hollow quick-animation"},At=["x","y","font-size","fill"],Lt=["x","y","font-size","fill"],_t={key:0,class:"line-grid"},Ct=["x1","x2","y1","y2","stroke","stroke-width"],zt=["x1","x2","y1","y2","stroke","stroke-width"],Nt={key:1,class:"line-axis"},Vt=["x1","x2","y1","y2","stroke","stroke-width"],$t=["x1","x2","y1","y2","stroke","stroke-width"],Ft={key:2,class:"yLabels"},Pt=["x1","x2","y1","y2","stroke","stroke-width"],It=["x","y","font-size","fill"],Tt={key:3,class:"periodLabels"},Ot=["x1","x2","y1","y2","stroke","stroke-width"],Rt=["font-size","text-anchor","fill","transform"],Dt={class:"plots"},Mt={class:"line-plot-series"},Ut=["d","stroke","stroke-width"],qt=["d","stroke","stroke-width"],Ht=["d","stroke","stroke-width"],Wt=["d","stroke","stroke-width"],jt=["cx","cy","fill","stroke"],Gt={key:4,class:"dataLabels"},Xt=["font-size","fill","x","y"],Yt={class:"tooltip-traps"},Zt=["x","y","height","width","fill","onMouseenter","onClick"],Jt={key:0,class:"line-grid"},Qt=["x1","x2","y1","y2","stroke","stroke-width"],Kt=["x1","x2","y1","y2","stroke","stroke-width"],el={key:1,class:"line-axis"},tl=["x1","x2","y1","y2","stroke","stroke-width"],ll=["x1","x2","y1","y2","stroke","stroke-width"],al={key:2,class:"yLabels"},ol=["x1","x2","y1","y2","stroke","stroke-width"],nl=["x","y","font-size","fill"],rl={key:3,class:"periodLabels"},il=["x1","x2","y1","y2","stroke","stroke-width"],ul=["font-size","text-anchor","transform","fill"],sl={class:"plots"},cl=["x","width","height","y","fill","stroke","stroke-width"],dl=["to"],vl=["from","to"],ml={key:4,class:"dataLabels"},hl=["x","y","font-size","fill"],fl={class:"tooltip-traps"},pl=["x","y","height","width","fill","onMouseenter","onClick"],kl={key:6,class:"axis-labels"},gl={key:0},yl=["font-size","fill","x","y"],xl={key:1},Sl=["font-size","fill","x","y"],bl={key:2},Bl=["font-size","fill","transform"],wl={key:3},El=["font-size","fill","transform"],Al={key:6,class:"vue-data-ui-watermark"},Ll=["onClick"],_l=["onClick"],Cl=["onClick"],zl={key:1,class:"vue-ui-quick-chart-not-processable"},Nl=Ie(()=>e.createElementVNode("span",null,"Dataset is not processable",-1)),Vl={__name:"vue-ui-quick-chart",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}}},emits:["selectDatapoint","selectLegend"],setup(d,{expose:w,emit:h}){const B=d,{vue_ui_quick_chart:N}=i.useConfig(),V=e.ref(null),M=e.ref(null),U=e.ref(null),j=e.ref(null),A=e.ref(i.createUid()),F=e.ref(!1),G=e.ref(null),T=e.ref(""),$=e.ref(null),me=e.ref(null),he=e.ref(null),x=e.ref([]),fe=e.ref(0),te=e.ref(0),t=e.computed({get:()=>ge(),set:a=>a}),Te=e.computed(()=>t.value.showUserOptionsOnChartHover),pe=e.computed(()=>t.value.keepUserOptionsStateOnChartLeave),le=e.ref(!t.value.showUserOptionsOnChartHover);function ke(a=!1){Te.value&&(le.value=a)}function ge(){const a=Ne.useNestedProp({userConfig:B.config,defaultConfig:N});let s={};return a.theme?s={...Ne.useNestedProp({userConfig:i.themes.vue_ui_quick_chart[a.theme]||B.config,defaultConfig:a}),customPalette:i.themePalettes[a.theme]||i.palette}:s=a,B.config&&i.hasDeepProperty(B.config,"zoomStartIndex")?s.zoomStartIndex=B.config.zoomStartIndex:s.zoomStartIndex=null,B.config&&i.hasDeepProperty(B.config,"zoomEndIndex")?s.zoomEndIndex=B.config.zoomEndIndex:s.zoomEndIndex=null,s}e.watch(()=>B.config,a=>{t.value=ge(),k.value.width=t.value.width,k.value.height=t.value.height,le.value=!t.value.showUserOptionsOnChartHover,Se(),Z.value.showTooltip=t.value.showTooltip},{deep:!0}),e.watch(()=>B.dataset,a=>{f.value=Y.value,g.value.start=0,g.value.end=f.value.maxSeriesLength,te.value+=1},{deep:!0});const X=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),Y=e.computed(()=>{const a=et({dataset:i.sanitizeArray(B.dataset,["serie","series","data","value","values","num"]),barLineSwitch:t.value.chartIsBarUnderDatasetLength});return a||console.error("VueUiQuickChart : Dataset is not processable"),a}),f=e.ref(Y.value),Oe=e.computed(()=>!!f.value),b=e.computed(()=>f.value?f.value.type:null);e.watch(()=>b.value,a=>{a||i.error({componentName:"VueUiQuickChart",type:"dataset"})},{immediate:!0});const{isPrinting:ae,isImaging:oe,generatePdf:ye,generateImage:xe}=ze.usePrinter({elementId:`${b.value}_${A.value}`,fileName:t.value.title||b.value}),Re=e.computed(()=>t.value.showUserOptions&&!t.value.title),k=e.ref({width:t.value.width,height:t.value.height}),Z=e.ref({showTooltip:t.value.showTooltip}),ne=e.ref(null);e.onMounted(()=>{Se()});function Se(){if(t.value.responsive){const a=Ce.throttle(()=>{const{width:s,height:l}=Ce.useResponsive({chart:V.value,title:t.value.title?M.value:null,legend:t.value.showLegend?U.value:null,slicer:[S.BAR,S.LINE].includes(b.value)&&t.value.zoomXy&&f.value.maxSeriesLength>1?j.value:null,source:me.value,noTitle:he.value});requestAnimationFrame(()=>{k.value.width=s,k.value.height=l})});ne.value=new ResizeObserver(a),ne.value.observe(V.value.parentNode)}Le()}e.onBeforeUnmount(()=>{ne.value&&ne.value.disconnect()});const De=e.computed(()=>{switch(b.value){case S.LINE:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`;case S.BAR:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`;case S.DONUT:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`;default:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`}});function be(a){return[...a].map(s=>s.value).reduce((s,l)=>s+l,0)}function J(a){return t.value.blurOnHover&&![null,void 0].includes($.value)&&$.value!==a?`url(#blur_${A.value})`:""}function Be(a,s){x.value.includes(a)?x.value=x.value.filter(l=>l!==a):x.value.length<s&&x.value.push(a)}const we=e.ref(null),Ee=e.ref(null),re=e.ref(!1);function Me(a,s){re.value=!0;let l=a.value;const r=Y.value.dataset.find((u,m)=>a.id===`donut_${m}`).VALUE;if(x.value.includes(a.id)){let u=function(){l>r?(re.value=!1,cancelAnimationFrame(Ee.value),f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:r,VALUE:r}:m)}):(l+=r*.025,f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:l,VALUE:l}:m)},Ee.value=requestAnimationFrame(u))};x.value=x.value.filter(m=>m!==a.id),u()}else if(s.length>1){let u=function(){l<r/100?(re.value=!1,cancelAnimationFrame(we.value),x.value.push(a.id),f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:0,VALUE:0}:m)}):(l/=1.1,f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:l,VALUE:l}:m)},we.value=requestAnimationFrame(u))};u()}}const I=e.ref(null);function Ue(a){I.value=a}const Ae=e.computed(()=>t.value.donutThicknessRatio<.15?.15:t.value.donutThicknessRatio>.4?.4:t.value.donutThicknessRatio),E=e.computed(()=>{if(b.value!==S.DONUT)return null;const a=f.value.dataset.map((o,n)=>({...o,value:o.VALUE||o.DATA||o.SERIE||o.VALUES||o.NUM||0,name:o.NAME||o.DESCRIPTION||o.TITLE||o.LABEL||`Serie ${n}`,id:`donut_${n}`})).map((o,n)=>({...o,color:o.COLOR?i.convertColorToHex(o.COLOR):X.value[n+t.value.paletteStartIndex]||i.palette[n+t.value.paletteStartIndex]||i.palette[(n+t.value.paletteStartIndex)%i.palette.length],immutableValue:o.value}));function s(o,n){return i.dataLabel({v:isNaN(o.value/be(n))?0:o.value/be(n)*100,s:"%",r:t.value.dataLabelRoundingPercentage})}function l(o){return o.proportion*100>t.value.donutHideLabelUnderPercentage}function r(o,n){const y=Y.value.dataset.find((L,C)=>`donut_${C}`===o).VALUE;return Math.abs(String(Number(y.toFixed(0))).length-String(Number(n.toFixed(0))).length)}function u({datapoint:o,seriesIndex:n}){G.value={datapoint:o,seriesIndex:n,config:t.value,dataset:a},$.value=o.id;const y=t.value.tooltipCustomFormat;if(i.isFunction(y)&&i.functionReturnsString(()=>y({datapoint:o,seriesIndex:n,series:a,config:t.value})))T.value=y({datapoint:o,seriesIndex:n,series:a,config:t.value});else{let p="";p+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,p+=`<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="${o.color}"/></svg>`,p+=`<b>${i.applyDataLabel(t.value.formatter,o.value,i.dataLabel({p:t.value.valuePrefix,v:o.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:o,seriesIndex:n})}</b>`,p+=`<span>(${i.dataLabel({v:o.proportion*100,s:"%",r:t.value.dataLabelRoundingPercentage})})</span></div>`,T.value=`<div>${p}</div>`}F.value=!0}function m(){F.value=!1,$.value=null,I.value=null}const _={centerX:k.value.width/2,centerY:k.value.height/2},z=a.filter(o=>!x.value.includes(o.id)).map(o=>o.value||0).reduce((o,n)=>o+n,0),H=a.map((o,n)=>({...o,proportion:(o.value||0)/z,value:o.value||0,absoluteValue:Y.value.dataset.find((y,p)=>`donut_${p}`===o.id).VALUE})),O=k.value.width/2,W=k.value.height/2,R=k.value.height*t.value.donutRadiusRatio;return{dataset:H.filter(o=>!x.value.includes(o.id)),legend:H,drawingArea:_,displayArcPercentage:s,isArcBigEnough:l,useTooltip:u,killTooltip:m,getSpaces:r,total:z,cx:O,cy:W,radius:R,chart:i.makeDonut({series:a.filter(o=>!x.value.includes(o.id))},O,W,R,R,1.99999,2,1,360,105.25,k.value.height*Ae.value)}}),g=e.ref({start:0,end:f.value.maxSeriesLength});function qe(){Le()}const q=e.ref(null);async function Le(){(t.value.zoomStartIndex!==null||t.value.zoomEndIndex!==null)&&q.value?(t.value.zoomStartIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setStartValue(t.value.zoomStartIndex)),t.value.zoomEndIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setEndValue(He(t.value.zoomEndIndex+1)))):(g.value={start:0,end:f.value.maxSeriesLength},te.value+=1)}function He(a){const s=f.value.maxSeriesLength;return a>s?s:a<0||t.value.zoomStartIndex!==null&&a<t.value.zoomStartIndex?t.value.zoomStartIndex!==null?t.value.zoomStartIndex+1:1:a}const We=e.computed(()=>{if(!t.value.zoomMinimap.show||b.value===S.DONUT)return[];let a=[];P(f.value.dataset)&&(a=f.value.dataset),ce(f.value.dataset)&&(a=f.value.dataset.map((u,m)=>({values:u.VALUE||u.DATA||u.SERIE||u.SERIES||u.VALUES||u.NUM||0,id:b.value===S.LINE?`line_${m}`:`bar_${m}`})).filter(u=>!x.value.includes(u.id)));const s=P(a)?a.length:Math.max(...a.map(u=>u.values.length));let l=[];if(P(a))l=a;else for(let u=0;u<s;u+=1)l.push(a.map(m=>m.values[u]||0).reduce((m,_)=>(m||0)+(_||0),0));const r=Math.min(...l);return l.map(u=>u+(r<0?Math.abs(r):0))}),v=e.computed(()=>{if(b.value!==S.LINE)return null;const a={height:k.value.height,width:k.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:a.width-t.value.xyPaddingRight,bottom:a.height-t.value.xyPaddingBottom,width:a.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:a.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];P(f.value.dataset)&&(l=[{values:f.value.dataset.slice(g.value.start,g.value.end),absoluteIndices:f.value.dataset.map((o,n)=>n).slice(g.value.start,g.value.end),name:t.value.title,color:X.value[t.value.paletteStartIndex]||i.palette[t.value.paletteStartIndex],id:"line_0"}]),ce(f.value.dataset)&&(l=f.value.dataset.map((o,n)=>({...o,values:o.VALUE||o.DATA||o.SERIE||o.SERIES||o.VALUES||o.NUM||0,name:o.NAME||o.DESCRIPTION||o.TITLE||o.LABEL||`Serie ${n}`,id:`line_${n}`})).map((o,n)=>({...o,color:o.COLOR?i.convertColorToHex(o.COLOR):X.value[n+t.value.paletteStartIndex]||i.palette[n+t.value.paletteStartIndex]||i.palette[(n+t.value.paletteStartIndex)%i.palette.length],values:o.values.slice(g.value.start,g.value.end),absoluteIndices:o.values.map((y,p)=>p).slice(g.value.start,g.value.end)})));const r={max:Math.max(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),min:Math.min(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),maxSeries:Math.max(...l.map(o=>o.values.length))},u=i.calculateNiceScale(r.min<0?r.min:0,r.max<0?0:r.max,t.value.xyScaleSegments),m=r.min<0?Math.abs(r.min):0,_=r.max<0?s.top:s.bottom-m/(u.max+m)*s.height,z=s.width/r.maxSeries,H=u.ticks.map(o=>({y:s.bottom-s.height*((o+m)/(u.max+m)),x:s.left-8,value:o})),O=l.map((o,n)=>({...o,coordinates:o.values.map((y,p)=>({x:s.left+z*(p+1)-z/2,y:s.bottom-(y+m)/(u.max+m)*s.height,value:y}))})).map(o=>{let n=[];return o.coordinates.forEach(y=>{n.push(`${y.x},${y.y} `)}),{...o,linePath:n.join(" ")}});function W(o){$.value=o,I.value=o;const n=l.map(p=>({...p,value:p.values[o],absoluteIndex:p.absoluteIndices[o]})).filter(p=>!x.value.includes(p.id));G.value={datapoint:n,seriesIndex:o,config:t.value,dataset:l};const y=t.value.tooltipCustomFormat;if(i.isFunction(y)&&i.functionReturnsString(()=>y({datapoint:n,seriesIndex:o,series:l,config:t.value})))T.value=y({datapoint:n,seriesIndex:o,series:l,config:t.value});else{let p="";t.value.xyPeriods[n[0].absoluteIndex]&&(p+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[n[0].absoluteIndex]}</div>`),n.forEach((L,C)=>{p+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-oJt6G-1X.cjs"),Ce=require("./useResponsive-BJ7DTGpm.cjs"),se=require("./BaseIcon-UR3q41gQ.cjs"),Ge=require("./Tooltip-HFiG7-b2.cjs"),ze=require("./usePrinter-C1cmAKZi.cjs"),Xe=require("./Slicer-BxN9wDTW.cjs"),Ye=require("./vue-ui-skeleton-Bl1lucUY.cjs"),Ne=require("./useNestedProp-eByLWGIp.cjs"),Ze=require("./PackageVersion-C2d9irPH.cjs"),Je=require("./PenAndPaper-BO89xQwu.cjs"),Qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={LINE:"LINE",BAR:"BAR",DONUT:"DONUT"},Ke=["SERIE","SERIES","DATA","VALUE","VALUES","NUM"];function et({dataset:d,barLineSwitch:w=6}){let h=null,B=null,N=0;if((typeof d=="number"||typeof d=="string")&&console.warn(`The provided dataset (${d}) is not sufficient to build a chart`),ee(d)&&(P(d)&&(d.length<w?h=S.BAR:h=S.LINE,B=d,N=d.length),ce(d))){if(!lt(d))return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."),!1;const U=Object.keys(d[0]),j=Object.values(d[0]);if(!U.some(A=>at(A)))return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."),!1;Ve(j,A=>typeof A=="number")&&(h=S.DONUT,B=d),Ve(j,A=>Array.isArray(A)&&P(A))&&($e(d)>w?h=S.LINE:h=S.BAR,N=$e(d),B=d.map(A=>({...A,data:ot(A,F=>P(F))}))),d=d.map(A=>Fe(A)),B=B.map(A=>Fe(A))}return ee(d)&&[...new Set(d.flatMap(U=>Array.isArray(U)))][0],{dataset:d,type:h,usableDataset:B,maxSeriesLength:N}}function Pe(d){return!d||ee(d)&&!d.length}function ee(d){return Array.isArray(d)}function P(d){if(!ee(d)||Pe(d))return!1;const w=d.map(h=>Number(h));return![...new Set(w.flatMap(h=>typeof h=="number"&&!isNaN(h)))].includes(!1)}function ce(d){return!ee(d)||Pe(d)||!![...new Set(d.flatMap(h=>typeof h=="object"&&!Array.isArray(h)))].includes(!1)?!1:!d.map(h=>Object.keys(h).length>0).includes(!1)}function tt(d,w){const h=Object.keys(d).sort(),B=Object.keys(w).sort();if(h.length!==B.length)return!1;for(let N=0;N<h.length;N+=1){const V=h[N],M=B[N];if(V!==M||typeof d[V]!=typeof w[M])return!1}return!0}function lt(d){if(d.length<=1)return!0;for(let w=0;w<d.length;w+=1)for(let h=w+1;h<d.length;h+=1)if(!tt(d[w],d[h]))return!1;return!0}function at(d){return Ke.includes(d.toUpperCase())}function Ve(d,w){let h=[];for(let B=0;B<d.length;B+=1)h.push(w(d[B]));return h.includes(!0)}function $e(d){return Math.max(...[...d].flatMap(w=>Object.values(w).filter(h=>P(h)).map(h=>h.length)))}function ot(d,w){return Object.values(d).filter(h=>w(h))[0]}function Fe(d){const w={};for(let h in d)d.hasOwnProperty(h)&&(w[h.toUpperCase()]=d[h]);return w}const Ie=d=>(e.pushScopeId("data-v-e9d5ef87"),d=d(),e.popScopeId(),d),nt=["id"],rt=["xmlns","viewBox"],it=["x","y","width","height"],ut=["x","y","width","height"],st=["width","height"],ct=["id"],dt=["id"],vt=Ie(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),mt=["id"],ht=["flood-color"],ft={key:0,class:"donut-label-connectors"},pt=["d","stroke","stroke-width","filter"],kt=["cx","cy","r","fill","filter"],gt={class:"donut"},yt=["d","fill","stroke","stroke-width","filter"],xt=["d","onMouseenter","onClick"],St={key:1,class:"donut-labels quick-animation"},bt=["cx","cy","fill","stroke","filter"],Bt=["text-anchor","x","y","fill","font-size","filter"],wt=["text-anchor","x","y","fill","font-size","filter"],Et={key:2,class:"donut-hollow quick-animation"},At=["x","y","font-size","fill"],Lt=["x","y","font-size","fill"],_t={key:0,class:"line-grid"},Ct=["x1","x2","y1","y2","stroke","stroke-width"],zt=["x1","x2","y1","y2","stroke","stroke-width"],Nt={key:1,class:"line-axis"},Vt=["x1","x2","y1","y2","stroke","stroke-width"],$t=["x1","x2","y1","y2","stroke","stroke-width"],Ft={key:2,class:"yLabels"},Pt=["x1","x2","y1","y2","stroke","stroke-width"],It=["x","y","font-size","fill"],Tt={key:3,class:"periodLabels"},Ot=["x1","x2","y1","y2","stroke","stroke-width"],Rt=["font-size","text-anchor","fill","transform"],Dt={class:"plots"},Mt={class:"line-plot-series"},Ut=["d","stroke","stroke-width"],qt=["d","stroke","stroke-width"],Ht=["d","stroke","stroke-width"],Wt=["d","stroke","stroke-width"],jt=["cx","cy","fill","stroke"],Gt={key:4,class:"dataLabels"},Xt=["font-size","fill","x","y"],Yt={class:"tooltip-traps"},Zt=["x","y","height","width","fill","onMouseenter","onClick"],Jt={key:0,class:"line-grid"},Qt=["x1","x2","y1","y2","stroke","stroke-width"],Kt=["x1","x2","y1","y2","stroke","stroke-width"],el={key:1,class:"line-axis"},tl=["x1","x2","y1","y2","stroke","stroke-width"],ll=["x1","x2","y1","y2","stroke","stroke-width"],al={key:2,class:"yLabels"},ol=["x1","x2","y1","y2","stroke","stroke-width"],nl=["x","y","font-size","fill"],rl={key:3,class:"periodLabels"},il=["x1","x2","y1","y2","stroke","stroke-width"],ul=["font-size","text-anchor","transform","fill"],sl={class:"plots"},cl=["x","width","height","y","fill","stroke","stroke-width"],dl=["to"],vl=["from","to"],ml={key:4,class:"dataLabels"},hl=["x","y","font-size","fill"],fl={class:"tooltip-traps"},pl=["x","y","height","width","fill","onMouseenter","onClick"],kl={key:6,class:"axis-labels"},gl={key:0},yl=["font-size","fill","x","y"],xl={key:1},Sl=["font-size","fill","x","y"],bl={key:2},Bl=["font-size","fill","transform"],wl={key:3},El=["font-size","fill","transform"],Al={key:6,class:"vue-data-ui-watermark"},Ll=["onClick"],_l=["onClick"],Cl=["onClick"],zl={key:1,class:"vue-ui-quick-chart-not-processable"},Nl=Ie(()=>e.createElementVNode("span",null,"Dataset is not processable",-1)),Vl={__name:"vue-ui-quick-chart",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}}},emits:["selectDatapoint","selectLegend"],setup(d,{expose:w,emit:h}){const B=d,{vue_ui_quick_chart:N}=i.useConfig(),V=e.ref(null),M=e.ref(null),U=e.ref(null),j=e.ref(null),A=e.ref(i.createUid()),F=e.ref(!1),G=e.ref(null),T=e.ref(""),$=e.ref(null),me=e.ref(null),he=e.ref(null),x=e.ref([]),fe=e.ref(0),te=e.ref(0),t=e.computed({get:()=>ge(),set:a=>a}),Te=e.computed(()=>t.value.showUserOptionsOnChartHover),pe=e.computed(()=>t.value.keepUserOptionsStateOnChartLeave),le=e.ref(!t.value.showUserOptionsOnChartHover);function ke(a=!1){Te.value&&(le.value=a)}function ge(){const a=Ne.useNestedProp({userConfig:B.config,defaultConfig:N});let s={};return a.theme?s={...Ne.useNestedProp({userConfig:i.themes.vue_ui_quick_chart[a.theme]||B.config,defaultConfig:a}),customPalette:i.themePalettes[a.theme]||i.palette}:s=a,B.config&&i.hasDeepProperty(B.config,"zoomStartIndex")?s.zoomStartIndex=B.config.zoomStartIndex:s.zoomStartIndex=null,B.config&&i.hasDeepProperty(B.config,"zoomEndIndex")?s.zoomEndIndex=B.config.zoomEndIndex:s.zoomEndIndex=null,s}e.watch(()=>B.config,a=>{t.value=ge(),k.value.width=t.value.width,k.value.height=t.value.height,le.value=!t.value.showUserOptionsOnChartHover,Se(),Z.value.showTooltip=t.value.showTooltip},{deep:!0}),e.watch(()=>B.dataset,a=>{f.value=Y.value,g.value.start=0,g.value.end=f.value.maxSeriesLength,te.value+=1},{deep:!0});const X=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),Y=e.computed(()=>{const a=et({dataset:i.sanitizeArray(B.dataset,["serie","series","data","value","values","num"]),barLineSwitch:t.value.chartIsBarUnderDatasetLength});return a||console.error("VueUiQuickChart : Dataset is not processable"),a}),f=e.ref(Y.value),Oe=e.computed(()=>!!f.value),b=e.computed(()=>f.value?f.value.type:null);e.watch(()=>b.value,a=>{a||i.error({componentName:"VueUiQuickChart",type:"dataset"})},{immediate:!0});const{isPrinting:ae,isImaging:oe,generatePdf:ye,generateImage:xe}=ze.usePrinter({elementId:`${b.value}_${A.value}`,fileName:t.value.title||b.value}),Re=e.computed(()=>t.value.showUserOptions&&!t.value.title),k=e.ref({width:t.value.width,height:t.value.height}),Z=e.ref({showTooltip:t.value.showTooltip}),ne=e.ref(null);e.onMounted(()=>{Se()});function Se(){if(t.value.responsive){const a=Ce.throttle(()=>{const{width:s,height:l}=Ce.useResponsive({chart:V.value,title:t.value.title?M.value:null,legend:t.value.showLegend?U.value:null,slicer:[S.BAR,S.LINE].includes(b.value)&&t.value.zoomXy&&f.value.maxSeriesLength>1?j.value:null,source:me.value,noTitle:he.value});requestAnimationFrame(()=>{k.value.width=s,k.value.height=l})});ne.value=new ResizeObserver(a),ne.value.observe(V.value.parentNode)}Le()}e.onBeforeUnmount(()=>{ne.value&&ne.value.disconnect()});const De=e.computed(()=>{switch(b.value){case S.LINE:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`;case S.BAR:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`;case S.DONUT:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`;default:return`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`}});function be(a){return[...a].map(s=>s.value).reduce((s,l)=>s+l,0)}function J(a){return t.value.blurOnHover&&![null,void 0].includes($.value)&&$.value!==a?`url(#blur_${A.value})`:""}function Be(a,s){x.value.includes(a)?x.value=x.value.filter(l=>l!==a):x.value.length<s&&x.value.push(a)}const we=e.ref(null),Ee=e.ref(null),re=e.ref(!1);function Me(a,s){re.value=!0;let l=a.value;const r=Y.value.dataset.find((u,m)=>a.id===`donut_${m}`).VALUE;if(x.value.includes(a.id)){let u=function(){l>r?(re.value=!1,cancelAnimationFrame(Ee.value),f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:r,VALUE:r}:m)}):(l+=r*.025,f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:l,VALUE:l}:m)},Ee.value=requestAnimationFrame(u))};x.value=x.value.filter(m=>m!==a.id),u()}else if(s.length>1){let u=function(){l<r/100?(re.value=!1,cancelAnimationFrame(we.value),x.value.push(a.id),f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:0,VALUE:0}:m)}):(l/=1.1,f.value={...f.value,dataset:f.value.dataset.map((m,_)=>a.id===`donut_${_}`?{...m,value:l,VALUE:l}:m)},we.value=requestAnimationFrame(u))};u()}}const I=e.ref(null);function Ue(a){I.value=a}const Ae=e.computed(()=>t.value.donutThicknessRatio<.15?.15:t.value.donutThicknessRatio>.4?.4:t.value.donutThicknessRatio),E=e.computed(()=>{if(b.value!==S.DONUT)return null;const a=f.value.dataset.map((o,n)=>({...o,value:o.VALUE||o.DATA||o.SERIE||o.VALUES||o.NUM||0,name:o.NAME||o.DESCRIPTION||o.TITLE||o.LABEL||`Serie ${n}`,id:`donut_${n}`})).map((o,n)=>({...o,color:o.COLOR?i.convertColorToHex(o.COLOR):X.value[n+t.value.paletteStartIndex]||i.palette[n+t.value.paletteStartIndex]||i.palette[(n+t.value.paletteStartIndex)%i.palette.length],immutableValue:o.value}));function s(o,n){return i.dataLabel({v:isNaN(o.value/be(n))?0:o.value/be(n)*100,s:"%",r:t.value.dataLabelRoundingPercentage})}function l(o){return o.proportion*100>t.value.donutHideLabelUnderPercentage}function r(o,n){const y=Y.value.dataset.find((L,C)=>`donut_${C}`===o).VALUE;return Math.abs(String(Number(y.toFixed(0))).length-String(Number(n.toFixed(0))).length)}function u({datapoint:o,seriesIndex:n}){G.value={datapoint:o,seriesIndex:n,config:t.value,dataset:a},$.value=o.id;const y=t.value.tooltipCustomFormat;if(i.isFunction(y)&&i.functionReturnsString(()=>y({datapoint:o,seriesIndex:n,series:a,config:t.value})))T.value=y({datapoint:o,seriesIndex:n,series:a,config:t.value});else{let p="";p+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,p+=`<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="${o.color}"/></svg>`,p+=`<b>${i.applyDataLabel(t.value.formatter,o.value,i.dataLabel({p:t.value.valuePrefix,v:o.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:o,seriesIndex:n})}</b>`,p+=`<span>(${i.dataLabel({v:o.proportion*100,s:"%",r:t.value.dataLabelRoundingPercentage})})</span></div>`,T.value=`<div>${p}</div>`}F.value=!0}function m(){F.value=!1,$.value=null,I.value=null}const _={centerX:k.value.width/2,centerY:k.value.height/2},z=a.filter(o=>!x.value.includes(o.id)).map(o=>o.value||0).reduce((o,n)=>o+n,0),H=a.map((o,n)=>({...o,proportion:(o.value||0)/z,value:o.value||0,absoluteValue:Y.value.dataset.find((y,p)=>`donut_${p}`===o.id).VALUE})),O=k.value.width/2,W=k.value.height/2,R=k.value.height*t.value.donutRadiusRatio;return{dataset:H.filter(o=>!x.value.includes(o.id)),legend:H,drawingArea:_,displayArcPercentage:s,isArcBigEnough:l,useTooltip:u,killTooltip:m,getSpaces:r,total:z,cx:O,cy:W,radius:R,chart:i.makeDonut({series:a.filter(o=>!x.value.includes(o.id))},O,W,R,R,1.99999,2,1,360,105.25,k.value.height*Ae.value)}}),g=e.ref({start:0,end:f.value.maxSeriesLength});function qe(){Le()}const q=e.ref(null);async function Le(){(t.value.zoomStartIndex!==null||t.value.zoomEndIndex!==null)&&q.value?(t.value.zoomStartIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setStartValue(t.value.zoomStartIndex)),t.value.zoomEndIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setEndValue(He(t.value.zoomEndIndex+1)))):(g.value={start:0,end:f.value.maxSeriesLength},te.value+=1)}function He(a){const s=f.value.maxSeriesLength;return a>s?s:a<0||t.value.zoomStartIndex!==null&&a<t.value.zoomStartIndex?t.value.zoomStartIndex!==null?t.value.zoomStartIndex+1:1:a}const We=e.computed(()=>{if(!t.value.zoomMinimap.show||b.value===S.DONUT)return[];let a=[];P(f.value.dataset)&&(a=f.value.dataset),ce(f.value.dataset)&&(a=f.value.dataset.map((u,m)=>({values:u.VALUE||u.DATA||u.SERIE||u.SERIES||u.VALUES||u.NUM||0,id:b.value===S.LINE?`line_${m}`:`bar_${m}`})).filter(u=>!x.value.includes(u.id)));const s=P(a)?a.length:Math.max(...a.map(u=>u.values.length));let l=[];if(P(a))l=a;else for(let u=0;u<s;u+=1)l.push(a.map(m=>m.values[u]||0).reduce((m,_)=>(m||0)+(_||0),0));const r=Math.min(...l);return l.map(u=>u+(r<0?Math.abs(r):0))}),v=e.computed(()=>{if(b.value!==S.LINE)return null;const a={height:k.value.height,width:k.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:a.width-t.value.xyPaddingRight,bottom:a.height-t.value.xyPaddingBottom,width:a.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:a.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];P(f.value.dataset)&&(l=[{values:f.value.dataset.slice(g.value.start,g.value.end),absoluteIndices:f.value.dataset.map((o,n)=>n).slice(g.value.start,g.value.end),name:t.value.title,color:X.value[t.value.paletteStartIndex]||i.palette[t.value.paletteStartIndex],id:"line_0"}]),ce(f.value.dataset)&&(l=f.value.dataset.map((o,n)=>({...o,values:o.VALUE||o.DATA||o.SERIE||o.SERIES||o.VALUES||o.NUM||0,name:o.NAME||o.DESCRIPTION||o.TITLE||o.LABEL||`Serie ${n}`,id:`line_${n}`})).map((o,n)=>({...o,color:o.COLOR?i.convertColorToHex(o.COLOR):X.value[n+t.value.paletteStartIndex]||i.palette[n+t.value.paletteStartIndex]||i.palette[(n+t.value.paletteStartIndex)%i.palette.length],values:o.values.slice(g.value.start,g.value.end),absoluteIndices:o.values.map((y,p)=>p).slice(g.value.start,g.value.end)})));const r={max:Math.max(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),min:Math.min(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),maxSeries:Math.max(...l.map(o=>o.values.length))},u=i.calculateNiceScale(r.min<0?r.min:0,r.max<0?0:r.max,t.value.xyScaleSegments),m=r.min<0?Math.abs(r.min):0,_=r.max<0?s.top:s.bottom-m/(u.max+m)*s.height,z=s.width/r.maxSeries,H=u.ticks.map(o=>({y:s.bottom-s.height*((o+m)/(u.max+m)),x:s.left-8,value:o})),O=l.map((o,n)=>({...o,coordinates:o.values.map((y,p)=>({x:s.left+z*(p+1)-z/2,y:s.bottom-(y+m)/(u.max+m)*s.height,value:y}))})).map(o=>{let n=[];return o.coordinates.forEach(y=>{n.push(`${y.x},${y.y} `)}),{...o,linePath:n.join(" ")}});function W(o){$.value=o,I.value=o;const n=l.map(p=>({...p,value:p.values[o],absoluteIndex:p.absoluteIndices[o]})).filter(p=>!x.value.includes(p.id));G.value={datapoint:n,seriesIndex:o,config:t.value,dataset:l};const y=t.value.tooltipCustomFormat;if(i.isFunction(y)&&i.functionReturnsString(()=>y({datapoint:n,seriesIndex:o,series:l,config:t.value})))T.value=y({datapoint:n,seriesIndex:o,series:l,config:t.value});else{let p="";t.value.xyPeriods[n[0].absoluteIndex]&&(p+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[n[0].absoluteIndex]}</div>`),n.forEach((L,C)=>{p+=`
2
2
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
3
3
  <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${L.color}"/></svg>
4
4
  <span>${L.name}:</span>
@@ -1,17 +1,17 @@
1
- import { computed as p, ref as i, watch as je, onMounted as qe, onBeforeUnmount as He, openBlock as r, createElementBlock as n, normalizeClass as z, normalizeStyle as W, unref as d, createBlock as _, createCommentVNode as c, createSlots as Ye, withCtx as m, renderSlot as f, normalizeProps as M, guardReactiveProps as R, createVNode as ee, createElementVNode as $, Fragment as T, renderList as P, toDisplayString as U, createTextVNode as Pe, nextTick as Je } from "vue";
2
- import { u as Ke, c as Qe, t as Ze, a as et, p as x, o as tt, e as S, b as at, g as xe, d as Ae, O as Oe, v as ot, i as Fe, f as V, X as lt, s as te, w as rt, P as Ne, x as st, y as nt, q as ut, r as it } from "./index-DCHLGNvJ.js";
1
+ import { computed as p, ref as i, watch as je, onMounted as qe, onBeforeUnmount as He, openBlock as r, createElementBlock as n, normalizeClass as z, normalizeStyle as W, unref as d, createBlock as _, createCommentVNode as c, createSlots as Ye, withCtx as m, renderSlot as f, normalizeProps as M, guardReactiveProps as R, createVNode as ee, createElementVNode as $, Fragment as T, renderList as P, toDisplayString as U, createTextVNode as Pe, nextTick as Qe } from "vue";
2
+ import { u as Je, c as Ke, t as Ze, a as et, p as x, o as tt, e as S, b as at, g as xe, d as Ae, P as Oe, v as ot, i as Fe, f as V, X as lt, s as te, w as rt, Q as Ne, x as st, y as nt, q as ut, r as it } from "./index-DD55onbf.js";
3
3
  import { t as dt, u as ct } from "./useResponsive-CoxXLe23.js";
4
- import { _ as vt } from "./Title-Dt5mC-vb.js";
5
- import { u as ht, U as pt } from "./usePrinter-BvounINk.js";
6
- import { _ as gt } from "./Tooltip-CmKYX0H1.js";
7
- import ft from "./vue-ui-sparkbar-DX2xrwR9.js";
8
- import { L as yt } from "./Legend-Di7FMl12.js";
9
- import { D as mt } from "./DataTable-Cnr3w23K.js";
10
- import bt from "./vue-ui-skeleton-nTL-u4Yd.js";
11
- import kt from "./vue-ui-accordion-DEpeQHhr.js";
12
- import { u as Se } from "./useNestedProp-BPR7xHxr.js";
13
- import { _ as Ct } from "./PackageVersion-BAKTtSRE.js";
14
- import { P as wt } from "./PenAndPaper-BUzmu0vi.js";
4
+ import { _ as vt } from "./Title-Dcy3qq8t.js";
5
+ import { u as ht, U as pt } from "./usePrinter-DWsOiNiW.js";
6
+ import { _ as gt } from "./Tooltip-CRRn6Gtk.js";
7
+ import ft from "./vue-ui-sparkbar-DNCM5xum.js";
8
+ import { L as yt } from "./Legend-DMkFFdOO.js";
9
+ import { D as mt } from "./DataTable-DSxaFF3x.js";
10
+ import bt from "./vue-ui-skeleton-CESQcfWL.js";
11
+ import kt from "./vue-ui-accordion-DLLoQbUa.js";
12
+ import { u as Se } from "./useNestedProp-Cf4jge53.js";
13
+ import { _ as Ct } from "./PackageVersion-LxLDMXmr.js";
14
+ import { P as wt } from "./PenAndPaper-C_SiTAbJ.js";
15
15
  import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["id"], Ot = ["stop-color"], Ft = ["stop-color"], Nt = { key: 1 }, St = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], It = { key: 0 }, Lt = ["d", "stroke", "stroke-width"], zt = ["d", "stroke", "stroke-width"], Mt = { key: 2 }, Rt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Ut = ["points", "stroke", "stroke-width"], Vt = ["points", "stroke", "stroke-width", "fill"], Et = { key: 3 }, Bt = ["cx", "cy", "fill", "r", "stroke"], Dt = {
@@ -38,7 +38,7 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
38
38
  },
39
39
  emits: ["selectLegend"],
40
40
  setup(Ie, { expose: Le, emit: ze }) {
41
- const g = Ie, { vue_ui_radar: Me } = Ke(), I = p(() => !!g.dataset && Object.keys(g.dataset).length), w = i(Qe()), Re = i(null), X = i(!1), j = i(""), ae = i(0), A = i(null), oe = i(null), le = i(null), re = i(null), se = i(null), ne = i(0), ue = i(0), ie = i(0), e = p({
41
+ const g = Ie, { vue_ui_radar: Me } = Je(), I = p(() => !!g.dataset && Object.keys(g.dataset).length), w = i(Ke()), Re = i(null), X = i(!1), j = i(""), ae = i(0), A = i(null), oe = i(null), le = i(null), re = i(null), se = i(null), ne = i(0), ue = i(0), ie = i(0), e = p({
42
42
  get: () => ve(),
43
43
  set: (t) => t
44
44
  }), { userOptionsVisible: q, setUserOptionsVisibility: de, keepUserOptionState: ce } = _t({ config: e.value });
@@ -272,11 +272,11 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
272
272
  breakpoint: e.value.table.responsiveBreakpoint
273
273
  };
274
274
  return { head: t, body: a, config: o, colNames: t };
275
- }), D = i(null), J = i([]), K = i(null);
275
+ }), D = i(null), Q = i([]), J = i(null);
276
276
  function We(t, a) {
277
- J.value = [], D.value = a, X.value = !0;
277
+ Q.value = [], D.value = a, X.value = !0;
278
278
  let o = "";
279
- K.value = {
279
+ J.value = {
280
280
  datapoint: t,
281
281
  seriesIndex: a,
282
282
  series: {
@@ -302,7 +302,7 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
302
302
  else {
303
303
  o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
304
304
  for (let s = 0; s < t.values.length; s += 1)
305
- v.value.includes(s) || J.value.push({
305
+ v.value.includes(s) || Q.value.push({
306
306
  name: y.value[s].name,
307
307
  value: t.values[s] / t.target * 100,
308
308
  color: y.value[s].color,
@@ -315,7 +315,7 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
315
315
  }
316
316
  }
317
317
  function _e() {
318
- Je(() => {
318
+ Qe(() => {
319
319
  const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...F.value.flatMap((h) => [[h.name], ["%"]])], o = g.dataset.series.map((h, jt) => [h.name, h.target, ...h.values.flatMap((Z) => [
320
320
  Z,
321
321
  isNaN(Z / h.target) ? "" : Z / h.target * 100
@@ -334,7 +334,7 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
334
334
  b.value.showTooltip = !b.value.showTooltip;
335
335
  }
336
336
  const G = i(!1);
337
- function Q() {
337
+ function K() {
338
338
  G.value = !G.value;
339
339
  }
340
340
  return Le({
@@ -344,7 +344,7 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
344
344
  generateImage: ye,
345
345
  toggleTable: $e,
346
346
  toggleTooltip: Te,
347
- toggleAnnotator: Q
347
+ toggleAnnotator: K
348
348
  }), (t, a) => (r(), n("div", {
349
349
  class: z(`vue-ui-radar ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
350
350
  ref_key: "radarChart",
@@ -360,7 +360,7 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
360
360
  backgroundColor: e.value.style.chart.backgroundColor,
361
361
  color: e.value.style.chart.color,
362
362
  active: G.value,
363
- onClose: Q
363
+ onClose: K
364
364
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
365
365
  Ue.value ? (r(), n("div", {
366
366
  key: 1,
@@ -417,7 +417,7 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
417
417
  onGenerateImage: d(ye),
418
418
  onToggleTable: $e,
419
419
  onToggleTooltip: Te,
420
- onToggleAnnotator: Q,
420
+ onToggleAnnotator: K,
421
421
  style: W({
422
422
  visibility: d(ce) ? d(q) ? "visible" : "hidden" : "visible"
423
423
  })
@@ -664,17 +664,17 @@ const Tt = ["id"], Pt = ["xmlns", "viewBox"], xt = ["width", "height"], At = ["i
664
664
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
665
665
  }, {
666
666
  "tooltip-before": m(() => [
667
- f(t.$slots, "tooltip-before", M(R({ ...K.value })), void 0, !0)
667
+ f(t.$slots, "tooltip-before", M(R({ ...J.value })), void 0, !0)
668
668
  ]),
669
669
  "tooltip-after": m(() => [
670
670
  ["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? c("", !0) : (r(), n("div", Wt, [
671
671
  ee(ft, {
672
- dataset: J.value,
672
+ dataset: Q.value,
673
673
  config: Ve.value,
674
674
  backgroundOpacity: 0
675
675
  }, null, 8, ["dataset", "config"])
676
676
  ])),
677
- f(t.$slots, "tooltip-after", M(R({ ...K.value })), void 0, !0)
677
+ f(t.$slots, "tooltip-after", M(R({ ...J.value })), void 0, !0)
678
678
  ]),
679
679
  _: 3
680
680
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-xEXHnOtJ.cjs"),ne=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./Title-DcTKT_WK.cjs"),se=require("./usePrinter-CjQvMB0_.cjs"),Be=require("./Tooltip-y6Z9yhlE.cjs"),Pe=require("./vue-ui-sparkbar-CGIYeFjB.cjs"),_e=require("./Legend-Uv0t6PIz.cjs"),$e=require("./DataTable-DVKGDaCB.cjs"),Te=require("./vue-ui-skeleton-Tse1D8cv.cjs"),xe=require("./vue-ui-accordion-2c1jq56U.cjs"),ue=require("./useNestedProp-LNEDZsGq.cjs"),Ne=require("./PackageVersion-BgKxrHv-.cjs"),Se=require("./PenAndPaper-BYVZ33fz.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fe=["id"],Oe=["xmlns","viewBox"],Ae=["width","height"],Le=["id"],ze=["stop-color"],Ie=["stop-color"],Re={key:1},qe=["x1","y1","x2","y2","stroke","stroke-width"],Me={key:0},Ue=["d","stroke","stroke-width"],De=["d","stroke","stroke-width"],Ge={key:2},We=["x","y","text-anchor","font-size","fill","onMouseenter"],He=["points","stroke","stroke-width"],je=["points","stroke","stroke-width","fill"],Xe={key:3},Ye=["cx","cy","fill","r","stroke"],Je={key:5,class:"vue-data-ui-watermark"},Ke=["onClick"],Qe={key:0,style:{"max-width":"200px",margin:"0 auto"}},Ze={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ie,{expose:ce,emit:de}){const d=ie,{vue_ui_radar:ve}=n.useConfig(),C=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),f=e.ref(n.createUid()),pe=e.ref(null),T=e.ref(!1),x=e.ref(""),L=e.ref(0),m=e.ref(null),z=e.ref(null),I=e.ref(null),R=e.ref(null),q=e.ref(null),M=e.ref(0),U=e.ref(0),D=e.ref(0),t=e.computed({get:()=>H(),set:o=>o}),{userOptionsVisible:N,setUserOptionsVisibility:G,keepUserOptionState:W}=Ee.useUserOptionState({config:t.value});function H(){const o=ue.useNestedProp({userConfig:d.config,defaultConfig:ve});return o.theme?{...ue.useNestedProp({userConfig:n.themes.vue_ui_radar[o.theme]||d.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}e.watch(()=>d.config,o=>{t.value=H(),N.value=!t.value.showOnChartHover,j(),M.value+=1,U.value+=1,D.value+=1,p.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,p.value.showTable=t.value.table.show,p.value.showTooltip=t.value.style.chart.tootlip.show},{deep:!0});const B=e.ref(null);function j(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=ne.throttle(()=>{const{width:a,height:l}=ne.useResponsive({chart:m.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?I.value:null,source:R.value,noTitle:q.value});requestAnimationFrame(()=>{u.value.width=a,u.value.height=l})});B.value=new ResizeObserver(o),B.value.observe(m.value.parentNode)}}e.onMounted(()=>{j()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:X,isImaging:Y,generatePdf:J,generateImage:K}=se.usePrinter({elementId:`vue-ui-radar_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),he=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),ge=e.computed(()=>({style:{backgroundColor:"#FFFFFF00",animation:{show:t.value.style.chart.tooltip.animation.show,animationFrames:t.value.style.chart.tooltip.animation.animationFrames},labels:{fontSize:t.value.style.chart.tooltip.fontSize,name:{color:t.value.style.chart.tooltip.color}},gutter:{backgroundColor:"#CCCCCC",opacity:30}}})),u=e.ref({height:312,width:512}),i=e.ref([]),w=e.ref(null),y=e.ref(!1);function Z(o){y.value=!0,i.value.includes(o)?(w.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{y.value=!1,w.value=null},500)):(i.value.push(o),setTimeout(()=>{y.value=!1},500)),de("selectLegend",k.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function fe(){return k.value.map(o=>({name:o.name,color:o.color,proportion:o.totalProportion}))}const v=e.computed(()=>[null,void 0].includes(d.dataset.categories)?(n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"categories ({ name: string; prefix?: string; suffix?: string}[])"}),[]):(d.dataset.categories.length===0?n.error({componentName:"VueUiRadar",type:"datasetAttributeEmpty",property:"categories"}):d.dataset.categories.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:`category.${l} at index ${a}`,index:a})})}),[null,void 0].includes(d.dataset.series)?n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"series ({ name: string; values: number[]; color?: string; target: number}[])"}):d.dataset.series.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values","target"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetSerieAttribute",key:"series",property:l,index:a})})}),d.dataset.categories.map((o,a)=>({name:o.name,categoryId:`radar_category_${f.value}_${a}`,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),h=e.computed(()=>C.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${f.value}_${a}`,formatter:o.formatter||null})):[]),ee=e.computed(()=>Math.max(...h.value.flatMap(o=>o.values))),te=e.computed(()=>h.value.length),S=e.computed(()=>Math.min(u.value.width,u.value.height)/3),oe=e.computed(()=>n.createPolygonPath({plot:{x:u.value.width/2,y:u.value.height/2},radius:S.value,sides:te.value,rotation:0})),me=e.computed(()=>{const o=[];for(let a=0;a<S.value;a+=S.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),g=e.computed(()=>oe.value.coordinates.map((o,a)=>{const l=h.value[a].values.map(r=>ye({centerX:u.value.width/2,centerY:u.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(h.value[a].target||ee.value)}));return{...o,...h.value[a],plots:l}}));function E({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>u.value.width/2&&(o+=12,l="start"),o<u.value.width/2&&(o-=12,l="end"),a>u.value.height/2&&(a+=20),a<u.value.height/2&&(a-=12),a===u.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ye({centerX:o,centerY:a,apexX:l,apexY:r,proportion:s}){return{x:o+(l-o)*s,y:a+(r-a)*s}}const k=e.computed(()=>{const o=h.value.map((a,l)=>a.values.map(r=>r/(a.target||ee.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,s)=>r+s,0)/h.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>Z(l),isSegregated:i.value.includes(l)}))}),ke=e.computed(()=>({cy:"radar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),P=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...k.value],a=d.dataset.series.map(r=>[r.name,n.applyDataLabel(r.formatter,r.target,n.dataLabel({p:r.prefix,v:r.target,s:r.suffix,r:t.value.table.td.roundingValue})),...r.values.map((s,c)=>`${n.applyDataLabel(r.formatter,s,n.dataLabel({p:v.value[c].prefix,v:s,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(s/r.target)?"":n.dataLabel({v:s/r.target*100,s:"%",r:t.value.table.td.roundingPercentage})})`)]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:o,body:a,config:l,colNames:o}}),_=e.ref(null),V=e.ref([]),F=e.ref(null);function be(o,a){V.value=[],_.value=a,T.value=!0;let l="";F.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value};const r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value})))x.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value});else{l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`;for(let s=0;s<o.values.length;s+=1)i.value.includes(s)||V.value.push({name:v.value[s].name,value:o.values[s]/o.target*100,color:v.value[s].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[s].prefix??"",v:o.values[s],s:v.value[s].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});x.value=l}}function ae(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...k.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,tt)=>[c.name,c.target,...c.values.flatMap(A=>[A,isNaN(A/c.target)?"":A/c.target*100])]),r=o.concat([a]).concat(l),s=n.createCsvContent(r);n.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const b=e.ref(!1);function Ce(o){b.value=o,L.value+=1}function le(){p.value.showTable=!p.value.showTable}function re(){p.value.showTooltip=!p.value.showTooltip}const $=e.ref(!1);function O(){$.value=!$.value}return ce({getData:fe,generatePdf:J,generateCsv:ae,generateImage:K,toggleTable:le,toggleTooltip:re,toggleAnnotator:O}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:m,id:`vue-ui-radar_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[3]||(a[3]=()=>e.unref(G)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Se.PenAndPaper,{key:0,parent:m.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),he.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${M.value}`,config:{title:{cy:"radar-div-title",...t.value.style.chart.title},subtitle:{cy:"radar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(W)||e.unref(N))?(e.openBlock(),e.createBlock(se.UserOptions,{ref_key:"details",ref:pe,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Y),isPrinting:e.unref(X),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:Ce,onGeneratePdf:e.unref(J),onGenerateCsv:ae,onGenerateImage:e.unref(K),onToggleTable:le,onToggleTooltip:re,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ae)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`radar_gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.05),t.value.style.chart.layout.dataPolygon.opacity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,Ie)],8,Le))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.width/2,y1:u.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,qe))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:u.value.width/2,y:u.value.height/2},radius:l,sides:te.value,rotation:0}).path,fill:"none",stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Ue))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:oe.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,De),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:E(l).x,y:E(l).y,"text-anchor":E(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:s=>be(l,r),onMouseleave:a[0]||(a[0]=s=>{T.value=!1,_.value=null})},e.toDisplayString(l.name),41,We))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("g",null,[t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:0,"data-cy-radar-path":"",points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth+1,fill:"none",class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,He)):e.createCommentVNode("",!0),t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:1,"data-cy-radar-path":"",points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:l.color,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,fill:t.value.style.chart.layout.dataPolygon.transparent?"transparent":t.value.style.chart.layout.dataPolygon.useGradient?`url(#radar_gradient_${f.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity),class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,je)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:_.value!==null&&_.value===r?t.value.style.chart.layout.plots.radius*1.6:t.value.style.chart.layout.plots.radius,stroke:i.value.includes(c)?"transparent":t.value.style.chart.backgroundColor,"stroke-width":.5,class:e.normalizeClass({"animated-out":i.value.includes(c)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===c&&t.value.useCssAnimation})},null,10,Ye))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Te.default,{key:6,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:t.value.style.chart.layout.outerPolygon.stroke},shapes:{color:t.value.style.chart.layout.outerPolygon.stroke}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(_e.Legend,{key:`legend_${D.value}`,legendSet:k.value,config:ke.value,onClickMarker:a[1]||(a[1]=({i:l})=>Z(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${i.value.includes(r)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.dataLabel)({v:l.totalProportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})),13,Ke)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:R,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:p.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,fontSize:t.value.style.chart.tooltip.fontSize,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:m.value,content:x.value,isFullscreen:b.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[["function"].includes(typeof t.value.style.chart.tooltip.customFormat)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(Pe.default,{dataset:V.value,config:ge.value,backgroundOpacity:0},null,8,["dataset","config"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isFullscreen","isCustom"]),C.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock($e.DataTable,{key:`table_${U.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>p.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name),1)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Fe))}},et=Ve._export_sfc(Ze,[["__scopeId","data-v-86d29f62"]]);exports.default=et;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-oJt6G-1X.cjs"),ne=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./Title-C7FKCxhh.cjs"),se=require("./usePrinter-C1cmAKZi.cjs"),Be=require("./Tooltip-HFiG7-b2.cjs"),Pe=require("./vue-ui-sparkbar-wgbRG59n.cjs"),_e=require("./Legend-bHoLREZn.cjs"),$e=require("./DataTable-D-hda58J.cjs"),Te=require("./vue-ui-skeleton-Bl1lucUY.cjs"),xe=require("./vue-ui-accordion-Bd4pdW-K.cjs"),ue=require("./useNestedProp-eByLWGIp.cjs"),Ne=require("./PackageVersion-C2d9irPH.cjs"),Se=require("./PenAndPaper-BO89xQwu.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fe=["id"],Oe=["xmlns","viewBox"],Ae=["width","height"],Le=["id"],ze=["stop-color"],Ie=["stop-color"],Re={key:1},qe=["x1","y1","x2","y2","stroke","stroke-width"],Me={key:0},Ue=["d","stroke","stroke-width"],De=["d","stroke","stroke-width"],Ge={key:2},We=["x","y","text-anchor","font-size","fill","onMouseenter"],He=["points","stroke","stroke-width"],je=["points","stroke","stroke-width","fill"],Xe={key:3},Ye=["cx","cy","fill","r","stroke"],Je={key:5,class:"vue-data-ui-watermark"},Ke=["onClick"],Qe={key:0,style:{"max-width":"200px",margin:"0 auto"}},Ze={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ie,{expose:ce,emit:de}){const d=ie,{vue_ui_radar:ve}=n.useConfig(),C=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),f=e.ref(n.createUid()),pe=e.ref(null),T=e.ref(!1),x=e.ref(""),L=e.ref(0),m=e.ref(null),z=e.ref(null),I=e.ref(null),R=e.ref(null),q=e.ref(null),M=e.ref(0),U=e.ref(0),D=e.ref(0),t=e.computed({get:()=>H(),set:o=>o}),{userOptionsVisible:N,setUserOptionsVisibility:G,keepUserOptionState:W}=Ee.useUserOptionState({config:t.value});function H(){const o=ue.useNestedProp({userConfig:d.config,defaultConfig:ve});return o.theme?{...ue.useNestedProp({userConfig:n.themes.vue_ui_radar[o.theme]||d.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}e.watch(()=>d.config,o=>{t.value=H(),N.value=!t.value.showOnChartHover,j(),M.value+=1,U.value+=1,D.value+=1,p.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,p.value.showTable=t.value.table.show,p.value.showTooltip=t.value.style.chart.tootlip.show},{deep:!0});const B=e.ref(null);function j(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=ne.throttle(()=>{const{width:a,height:l}=ne.useResponsive({chart:m.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?I.value:null,source:R.value,noTitle:q.value});requestAnimationFrame(()=>{u.value.width=a,u.value.height=l})});B.value=new ResizeObserver(o),B.value.observe(m.value.parentNode)}}e.onMounted(()=>{j()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:X,isImaging:Y,generatePdf:J,generateImage:K}=se.usePrinter({elementId:`vue-ui-radar_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),he=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),ge=e.computed(()=>({style:{backgroundColor:"#FFFFFF00",animation:{show:t.value.style.chart.tooltip.animation.show,animationFrames:t.value.style.chart.tooltip.animation.animationFrames},labels:{fontSize:t.value.style.chart.tooltip.fontSize,name:{color:t.value.style.chart.tooltip.color}},gutter:{backgroundColor:"#CCCCCC",opacity:30}}})),u=e.ref({height:312,width:512}),i=e.ref([]),w=e.ref(null),y=e.ref(!1);function Z(o){y.value=!0,i.value.includes(o)?(w.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{y.value=!1,w.value=null},500)):(i.value.push(o),setTimeout(()=>{y.value=!1},500)),de("selectLegend",k.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function fe(){return k.value.map(o=>({name:o.name,color:o.color,proportion:o.totalProportion}))}const v=e.computed(()=>[null,void 0].includes(d.dataset.categories)?(n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"categories ({ name: string; prefix?: string; suffix?: string}[])"}),[]):(d.dataset.categories.length===0?n.error({componentName:"VueUiRadar",type:"datasetAttributeEmpty",property:"categories"}):d.dataset.categories.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:`category.${l} at index ${a}`,index:a})})}),[null,void 0].includes(d.dataset.series)?n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"series ({ name: string; values: number[]; color?: string; target: number}[])"}):d.dataset.series.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values","target"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetSerieAttribute",key:"series",property:l,index:a})})}),d.dataset.categories.map((o,a)=>({name:o.name,categoryId:`radar_category_${f.value}_${a}`,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),h=e.computed(()=>C.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||Q.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${f.value}_${a}`,formatter:o.formatter||null})):[]),ee=e.computed(()=>Math.max(...h.value.flatMap(o=>o.values))),te=e.computed(()=>h.value.length),S=e.computed(()=>Math.min(u.value.width,u.value.height)/3),oe=e.computed(()=>n.createPolygonPath({plot:{x:u.value.width/2,y:u.value.height/2},radius:S.value,sides:te.value,rotation:0})),me=e.computed(()=>{const o=[];for(let a=0;a<S.value;a+=S.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),g=e.computed(()=>oe.value.coordinates.map((o,a)=>{const l=h.value[a].values.map(r=>ye({centerX:u.value.width/2,centerY:u.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(h.value[a].target||ee.value)}));return{...o,...h.value[a],plots:l}}));function E({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>u.value.width/2&&(o+=12,l="start"),o<u.value.width/2&&(o-=12,l="end"),a>u.value.height/2&&(a+=20),a<u.value.height/2&&(a-=12),a===u.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ye({centerX:o,centerY:a,apexX:l,apexY:r,proportion:s}){return{x:o+(l-o)*s,y:a+(r-a)*s}}const k=e.computed(()=>{const o=h.value.map((a,l)=>a.values.map(r=>r/(a.target||ee.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,s)=>r+s,0)/h.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>Z(l),isSegregated:i.value.includes(l)}))}),ke=e.computed(()=>({cy:"radar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),P=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...k.value],a=d.dataset.series.map(r=>[r.name,n.applyDataLabel(r.formatter,r.target,n.dataLabel({p:r.prefix,v:r.target,s:r.suffix,r:t.value.table.td.roundingValue})),...r.values.map((s,c)=>`${n.applyDataLabel(r.formatter,s,n.dataLabel({p:v.value[c].prefix,v:s,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(s/r.target)?"":n.dataLabel({v:s/r.target*100,s:"%",r:t.value.table.td.roundingPercentage})})`)]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:o,body:a,config:l,colNames:o}}),_=e.ref(null),V=e.ref([]),F=e.ref(null);function be(o,a){V.value=[],_.value=a,T.value=!0;let l="";F.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value};const r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value})))x.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value});else{l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`;for(let s=0;s<o.values.length;s+=1)i.value.includes(s)||V.value.push({name:v.value[s].name,value:o.values[s]/o.target*100,color:v.value[s].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[s].prefix??"",v:o.values[s],s:v.value[s].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});x.value=l}}function ae(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...k.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,tt)=>[c.name,c.target,...c.values.flatMap(A=>[A,isNaN(A/c.target)?"":A/c.target*100])]),r=o.concat([a]).concat(l),s=n.createCsvContent(r);n.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const b=e.ref(!1);function Ce(o){b.value=o,L.value+=1}function le(){p.value.showTable=!p.value.showTable}function re(){p.value.showTooltip=!p.value.showTooltip}const $=e.ref(!1);function O(){$.value=!$.value}return ce({getData:fe,generatePdf:J,generateCsv:ae,generateImage:K,toggleTable:le,toggleTooltip:re,toggleAnnotator:O}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:m,id:`vue-ui-radar_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[3]||(a[3]=()=>e.unref(G)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Se.PenAndPaper,{key:0,parent:m.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),he.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:z,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${M.value}`,config:{title:{cy:"radar-div-title",...t.value.style.chart.title},subtitle:{cy:"radar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(W)||e.unref(N))?(e.openBlock(),e.createBlock(se.UserOptions,{ref_key:"details",ref:pe,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Y),isPrinting:e.unref(X),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:Ce,onGeneratePdf:e.unref(J),onGenerateCsv:ae,onGenerateImage:e.unref(K),onToggleTable:le,onToggleTooltip:re,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ae)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`radar_gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.05),t.value.style.chart.layout.dataPolygon.opacity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,Ie)],8,Le))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.width/2,y1:u.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,qe))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(me.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:u.value.width/2,y:u.value.height/2},radius:l,sides:te.value,rotation:0}).path,fill:"none",stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,Ue))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:oe.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,De),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:E(l).x,y:E(l).y,"text-anchor":E(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:s=>be(l,r),onMouseleave:a[0]||(a[0]=s=>{T.value=!1,_.value=null})},e.toDisplayString(l.name),41,We))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("g",null,[t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:0,"data-cy-radar-path":"",points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth+1,fill:"none",class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,He)):e.createCommentVNode("",!0),t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:1,"data-cy-radar-path":"",points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:l.color,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,fill:t.value.style.chart.layout.dataPolygon.transparent?"transparent":t.value.style.chart.layout.dataPolygon.useGradient?`url(#radar_gradient_${f.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity),class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===r&&t.value.useCssAnimation})},null,10,je)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:_.value!==null&&_.value===r?t.value.style.chart.layout.plots.radius*1.6:t.value.style.chart.layout.plots.radius,stroke:i.value.includes(c)?"transparent":t.value.style.chart.backgroundColor,"stroke-width":.5,class:e.normalizeClass({"animated-out":i.value.includes(c)&&t.value.useCssAnimation,"animated-in":y.value&&w.value===c&&t.value.useCssAnimation})},null,10,Ye))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Te.default,{key:6,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:t.value.style.chart.layout.outerPolygon.stroke},shapes:{color:t.value.style.chart.layout.outerPolygon.stroke}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(_e.Legend,{key:`legend_${D.value}`,legendSet:k.value,config:ke.value,onClickMarker:a[1]||(a[1]=({i:l})=>Z(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${i.value.includes(r)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.dataLabel)({v:l.totalProportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})),13,Ke)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:R,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:p.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,fontSize:t.value.style.chart.tooltip.fontSize,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:m.value,content:x.value,isFullscreen:b.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[["function"].includes(typeof t.value.style.chart.tooltip.customFormat)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(Pe.default,{dataset:V.value,config:ge.value,backgroundOpacity:0},null,8,["dataset","config"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isFullscreen","isCustom"]),C.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock($e.DataTable,{key:`table_${U.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>p.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name),1)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Fe))}},et=Ve._export_sfc(Ze,[["__scopeId","data-v-86d29f62"]]);exports.default=et;