vue-data-ui 2.3.76 → 2.3.78

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 (161) hide show
  1. package/dist/{Arrow-DY9RKUmG.js → Arrow-BCYtOwX7.js} +1 -1
  2. package/dist/{Arrow-D7M4-bW7.cjs → Arrow-DWkvIpW8.cjs} +1 -1
  3. package/dist/{BaseIcon-rwm-10Hu.js → BaseIcon-BIQXWVMS.js} +1 -1
  4. package/dist/{BaseIcon-DB7Apwv_.cjs → BaseIcon-Bcpzfk34.cjs} +1 -1
  5. package/dist/{DataTable-CsNozyz7.cjs → DataTable-C5TOiC61.cjs} +1 -1
  6. package/dist/{DataTable-e2fnfjXV.js → DataTable-y1lX5jVj.js} +2 -2
  7. package/dist/{Legend-5cQ0xZjK.js → Legend-BLXcdrri.js} +1 -1
  8. package/dist/{Legend-DgFd-O0m.cjs → Legend-CGGD8NhP.cjs} +1 -1
  9. package/dist/{Shape-CiTElr_0.js → Shape-CsoTtJx6.js} +1 -1
  10. package/dist/{Shape-yPECDLiP.cjs → Shape-qJYTY2BC.cjs} +1 -1
  11. package/dist/{Slicer-DaZgCKV7.cjs → Slicer-CZJXKSeE.cjs} +1 -1
  12. package/dist/{Slicer-DwBBu3kB.js → Slicer-DzJZ4axa.js} +12 -12
  13. package/dist/{Title-3EduyW4p.cjs → Title-BSpa3uge.cjs} +1 -1
  14. package/dist/{Title-gUz6GDA3.js → Title-Bx-VO3md.js} +1 -1
  15. package/dist/{Tooltip-DfSM1mNP.js → Tooltip-Dk-cimhQ.js} +23 -23
  16. package/dist/Tooltip-rmhZhv96.cjs +1 -0
  17. package/dist/index-CzjC8LfY.cjs +4 -0
  18. package/dist/{index-CaV1s-yZ.js → index-DP8dqFNd.js} +1147 -1145
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-tWCzZrLx.js → useNestedProp-B-oZxD4x.js} +1 -1
  21. package/dist/{useNestedProp-CisbRRo_.cjs → useNestedProp-CY7DebVH.cjs} +1 -1
  22. package/dist/{usePrinter-DzTaA1eh.cjs → usePrinter-DiLM6jav.cjs} +1 -1
  23. package/dist/{usePrinter-rvJyT65A.js → usePrinter-DiuHo4LO.js} +1 -1
  24. package/dist/{vue-data-ui-BGkWRPUY.cjs → vue-data-ui-Ce5IFSYA.cjs} +1 -1
  25. package/dist/{vue-data-ui-BO89gTtq.js → vue-data-ui-Ct7n5wkM.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/vue-ui-3d-bar-B_i2EoFu.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-CcTMIHiB.js → vue-ui-3d-bar-O3fB5J7V.js} +342 -342
  30. package/dist/{vue-ui-accordion-CpzGQ63y.js → vue-ui-accordion-Dl8zkZPk.js} +3 -3
  31. package/dist/{vue-ui-accordion-7e4Myhcg.cjs → vue-ui-accordion-DpI7fTKZ.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-D71ZLkVV.js → vue-ui-age-pyramid-BeiREI6d.js} +22 -22
  33. package/dist/vue-ui-age-pyramid-BsAfxkN4.cjs +1 -0
  34. package/dist/{vue-ui-annotator-B8Iu6cYt.js → vue-ui-annotator-0yje27Qq.js} +39 -39
  35. package/dist/{vue-ui-annotator-BKQrweqm.cjs → vue-ui-annotator-DpN-6IwB.cjs} +2 -2
  36. package/dist/{vue-ui-candlestick-Bx4QVkY0.js → vue-ui-candlestick-D9UteVvx.js} +34 -34
  37. package/dist/{vue-ui-candlestick-DAc1FQ-i.cjs → vue-ui-candlestick-lv78wnpS.cjs} +2 -2
  38. package/dist/{vue-ui-carousel-table-uFRqkghO.cjs → vue-ui-carousel-table-Br6FwMKM.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-xuQG6bcH.js → vue-ui-carousel-table-jxZ3h5pq.js} +31 -31
  40. package/dist/{vue-ui-chestnut-Bo6rDcU7.js → vue-ui-chestnut-DXuHRJy4.js} +291 -288
  41. package/dist/vue-ui-chestnut-DbYHeNaL.cjs +6 -0
  42. package/dist/{vue-ui-cursor-C0KOqEOq.js → vue-ui-cursor-BzPbdVRJ.js} +20 -20
  43. package/dist/vue-ui-cursor-iss6SJ1Y.cjs +1 -0
  44. package/dist/{vue-ui-dashboard-BT71xS7P.js → vue-ui-dashboard-CGjWuFrI.js} +2 -2
  45. package/dist/{vue-ui-dashboard-0Hsjx-bO.cjs → vue-ui-dashboard-DKT82yQ4.cjs} +1 -1
  46. package/dist/{vue-ui-digits-BRqpKYvD.js → vue-ui-digits-BCguvLxB.js} +2 -2
  47. package/dist/{vue-ui-digits-C2ReH6w0.cjs → vue-ui-digits-BfwDCfYp.cjs} +1 -1
  48. package/dist/{vue-ui-donut-NQW-3prf.js → vue-ui-donut-DJTeGLVG.js} +209 -212
  49. package/dist/{vue-ui-donut-evolution-jbXQQGTc.js → vue-ui-donut-evolution-BaLDZNDG.js} +106 -106
  50. package/dist/vue-ui-donut-evolution-Bil1AIhX.cjs +1 -0
  51. package/dist/vue-ui-donut-uVPdO4UH.cjs +1 -0
  52. package/dist/{vue-ui-dumbbell-Dyz8xdtC.js → vue-ui-dumbbell-BqtDdV5w.js} +17 -17
  53. package/dist/{vue-ui-dumbbell-DXQSg6wa.cjs → vue-ui-dumbbell-DiL3xhKY.cjs} +1 -1
  54. package/dist/{vue-ui-flow-UqSNwH9d.cjs → vue-ui-flow-BVTbbsCK.cjs} +1 -1
  55. package/dist/{vue-ui-flow-BL3JWW1m.js → vue-ui-flow-zfTGon4s.js} +28 -28
  56. package/dist/{vue-ui-galaxy-Dx9nsOuM.js → vue-ui-galaxy-5iRb5sQ-.js} +22 -22
  57. package/dist/{vue-ui-galaxy-DTQWGvRH.cjs → vue-ui-galaxy-GSO_6KIe.cjs} +1 -1
  58. package/dist/vue-ui-gauge-Bz7oLa51.cjs +1 -0
  59. package/dist/{vue-ui-gauge-CLaKGi0-.js → vue-ui-gauge-DljHYdCS.js} +101 -110
  60. package/dist/{vue-ui-gizmo-of-4s5HG.js → vue-ui-gizmo-B-fxFOZy.js} +2 -2
  61. package/dist/{vue-ui-gizmo-Kitfqu0J.cjs → vue-ui-gizmo-KL0OJY2K.cjs} +1 -1
  62. package/dist/{vue-ui-heatmap-BIzjOMXO.js → vue-ui-heatmap-ketn_NV3.js} +17 -17
  63. package/dist/{vue-ui-heatmap-DUw2350O.cjs → vue-ui-heatmap-thMJPCfo.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-By3YPwgo.js → vue-ui-kpi-Bxu8uZ21.js} +3 -3
  65. package/dist/{vue-ui-kpi-DyL2Hcz-.cjs → vue-ui-kpi-e1QWa8D4.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-DnK3V2z2.js → vue-ui-mini-loader-BZ_2aV8O.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-C048-8Kd.cjs → vue-ui-mini-loader-paRZQU8H.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-BfhbIqa5.js → vue-ui-molecule-Bpp5unvI.js} +33 -33
  69. package/dist/{vue-ui-molecule-D-ahly6R.cjs → vue-ui-molecule-VOBL4Osc.cjs} +1 -1
  70. package/dist/{vue-ui-mood-radar-DXxEKr3x.js → vue-ui-mood-radar-BY8XP_Q5.js} +129 -132
  71. package/dist/vue-ui-mood-radar-CwtMLwP8.cjs +1 -0
  72. package/dist/{vue-ui-nested-donuts-BdUdHFd-.js → vue-ui-nested-donuts-5uuLi3If.js} +98 -98
  73. package/dist/{vue-ui-nested-donuts-C7qM_FRw.cjs → vue-ui-nested-donuts-CLnVnAiD.cjs} +2 -2
  74. package/dist/{vue-ui-onion-DX3gofXZ.cjs → vue-ui-onion-CMSPSSSG.cjs} +1 -1
  75. package/dist/{vue-ui-onion-D0vF5jBt.js → vue-ui-onion-zDy4ecPl.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs → vue-ui-parallel-coordinate-plot-1PFxiI__.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-CTZY-pY8.js → vue-ui-parallel-coordinate-plot-BeEkL7Dq.js} +24 -24
  78. package/dist/vue-ui-quadrant-Cx5z_c90.cjs +1 -0
  79. package/dist/{vue-ui-quadrant-ByY8GP3y.js → vue-ui-quadrant-MCIlbbsW.js} +35 -35
  80. package/dist/{vue-ui-quick-chart-DWZEgUJF.cjs → vue-ui-quick-chart-Xn-47NQG.cjs} +1 -1
  81. package/dist/{vue-ui-quick-chart-DTxJ__7j.js → vue-ui-quick-chart-r6Qa7qg_.js} +69 -69
  82. package/dist/{vue-ui-radar-DEED0rTz.cjs → vue-ui-radar-ANQ1wXFc.cjs} +1 -1
  83. package/dist/{vue-ui-radar-5UBmAU6W.js → vue-ui-radar-DFV5cFkl.js} +39 -39
  84. package/dist/{vue-ui-rating-Ce_Ewqtl.cjs → vue-ui-rating-BVzCbQbv.cjs} +1 -1
  85. package/dist/{vue-ui-rating-Dr6jquxh.js → vue-ui-rating-DYu1EuJF.js} +6 -6
  86. package/dist/{vue-ui-relation-circle-BU8i2miI.js → vue-ui-relation-circle-BAcmDQB_.js} +29 -29
  87. package/dist/vue-ui-relation-circle-DEM6C6Or.cjs +1 -0
  88. package/dist/{vue-ui-rings-Ctl3Jywh.js → vue-ui-rings-BiLlYpgu.js} +31 -31
  89. package/dist/{vue-ui-rings-OQ8a1Ruw.cjs → vue-ui-rings-Ce4G4hat.cjs} +2 -2
  90. package/dist/{vue-ui-scatter-BwJ_koWT.js → vue-ui-scatter-D2ndYfkQ.js} +95 -95
  91. package/dist/vue-ui-scatter-OtlcTCUF.cjs +1 -0
  92. package/dist/{vue-ui-screenshot-BS3L5vhN.js → vue-ui-screenshot-CKCNPn-e.js} +4 -4
  93. package/dist/{vue-ui-screenshot-bAVk3EPl.cjs → vue-ui-screenshot-DTQx4VsM.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-CvFX_ExX.js → vue-ui-skeleton-B30ZhUV7.js} +96 -96
  95. package/dist/vue-ui-skeleton-CwqzJlQf.cjs +41 -0
  96. package/dist/{vue-ui-smiley-CGYZpNt9.js → vue-ui-smiley-DzLvZR1k.js} +2 -2
  97. package/dist/{vue-ui-smiley-sF8QIso1.cjs → vue-ui-smiley-L6o24M6h.cjs} +1 -1
  98. package/dist/{vue-ui-spark-trend-B4XSSKl9.js → vue-ui-spark-trend-BKsmENbH.js} +21 -21
  99. package/dist/vue-ui-spark-trend-BoWeviHk.cjs +1 -0
  100. package/dist/{vue-ui-sparkbar-BbsJGDMZ.js → vue-ui-sparkbar-DNzZkp8z.js} +10 -10
  101. package/dist/vue-ui-sparkbar-DY3iOLo4.cjs +1 -0
  102. package/dist/{vue-ui-sparkgauge-D4w_i_QJ.js → vue-ui-sparkgauge-B2DngjVP.js} +8 -8
  103. package/dist/{vue-ui-sparkgauge-BKyQoI7C.cjs → vue-ui-sparkgauge-BlZ-lJm4.cjs} +1 -1
  104. package/dist/vue-ui-sparkhistogram-BUBewgdH.cjs +1 -0
  105. package/dist/{vue-ui-sparkhistogram-CYybrW-6.js → vue-ui-sparkhistogram-Co9N3BeQ.js} +111 -101
  106. package/dist/vue-ui-sparkline-BhL0mxXD.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-DjN1SVdO.js → vue-ui-sparkline-Dpqo4aRJ.js} +34 -34
  108. package/dist/{vue-ui-sparkstackbar-BZ2bESBi.cjs → vue-ui-sparkstackbar-DtNbx3EV.cjs} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-BLMhJxaN.js → vue-ui-sparkstackbar-_JwfRxF8.js} +5 -5
  110. package/dist/{vue-ui-stackbar-BTKOHUYc.js → vue-ui-stackbar-BtN7ZM7-.js} +202 -200
  111. package/dist/{vue-ui-stackbar-DRHaJFR8.cjs → vue-ui-stackbar-C7AWHP6m.cjs} +2 -2
  112. package/dist/{vue-ui-strip-plot-o6GTsGAT.js → vue-ui-strip-plot-6L9a7BSw.js} +26 -26
  113. package/dist/{vue-ui-strip-plot-DxQxFbWg.cjs → vue-ui-strip-plot-cgOFTunJ.cjs} +1 -1
  114. package/dist/{vue-ui-table-BFIj1Rgh.cjs → vue-ui-table-4Pf9tmFg.cjs} +1 -1
  115. package/dist/{vue-ui-table-CnquiTpr.js → vue-ui-table-BFYHRMCS.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-CZRIwv-Q.js → vue-ui-table-heatmap--kPCu8mA.js} +24 -24
  117. package/dist/{vue-ui-table-heatmap-CCGK12Fa.cjs → vue-ui-table-heatmap-CltKb2V9.cjs} +1 -1
  118. package/dist/{vue-ui-table-sparkline-DYmgfHz4.cjs → vue-ui-table-sparkline-B5OjJud8.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-B3zEeq6Z.js → vue-ui-table-sparkline-CsWx1Ksy.js} +26 -26
  120. package/dist/{vue-ui-thermometer-CzPRBt6c.cjs → vue-ui-thermometer-62_4QovL.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-BopiohUh.js → vue-ui-thermometer-nTD7sp8r.js} +40 -40
  122. package/dist/{vue-ui-timer-Bonw69Lt.cjs → vue-ui-timer-BU0s7Vt9.cjs} +1 -1
  123. package/dist/{vue-ui-timer-C7WkW8hK.js → vue-ui-timer-DMFHjnzA.js} +8 -8
  124. package/dist/{vue-ui-tiremarks-BurRtFv4.js → vue-ui-tiremarks-1X9B1VKM.js} +18 -18
  125. package/dist/{vue-ui-tiremarks-DkIGfq8t.cjs → vue-ui-tiremarks-mwBeBMJY.cjs} +1 -1
  126. package/dist/{vue-ui-treemap-DWy4voIr.js → vue-ui-treemap-CVTwqPFA.js} +29 -29
  127. package/dist/{vue-ui-treemap-CalhJmnp.cjs → vue-ui-treemap-DQmBbm7e.cjs} +1 -1
  128. package/dist/vue-ui-vertical-bar-BXiy8KRC.cjs +4 -0
  129. package/dist/{vue-ui-vertical-bar-CJW1YhtY.js → vue-ui-vertical-bar-Br6Z0A3F.js} +14 -14
  130. package/dist/{vue-ui-waffle-faQMBYNx.cjs → vue-ui-waffle-CLCsHw9j.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-DB7X6nTS.js → vue-ui-waffle-DEXMh07q.js} +84 -84
  132. package/dist/{vue-ui-wheel-CryKap2E.js → vue-ui-wheel-CwjuVi6U.js} +24 -24
  133. package/dist/{vue-ui-wheel-BzjbGP6a.cjs → vue-ui-wheel-DSFKKX65.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-COqUkvei.js → vue-ui-word-cloud-BKeD3fHb.js} +19 -19
  135. package/dist/{vue-ui-word-cloud-DJN9I4q4.cjs → vue-ui-word-cloud-DZS4hCeR.cjs} +1 -1
  136. package/dist/vue-ui-xy-B5aCogSL.cjs +3 -0
  137. package/dist/{vue-ui-xy-b1Z_HPsx.js → vue-ui-xy-DA3qqL8u.js} +351 -350
  138. package/dist/{vue-ui-xy-canvas-BgbLnY5B.js → vue-ui-xy-canvas-B7DH4RK5.js} +18 -18
  139. package/dist/vue-ui-xy-canvas-heCdqh5X.cjs +9 -0
  140. package/package.json +1 -1
  141. package/dist/Tooltip-DScSrYXJ.cjs +0 -1
  142. package/dist/index-BTgtr0F8.cjs +0 -4
  143. package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +0 -1
  145. package/dist/vue-ui-chestnut-DJkm72oD.cjs +0 -6
  146. package/dist/vue-ui-cursor-BQbeuW-k.cjs +0 -1
  147. package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +0 -1
  148. package/dist/vue-ui-donut-v81suIOX.cjs +0 -1
  149. package/dist/vue-ui-gauge-BUB7H0qA.cjs +0 -1
  150. package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +0 -1
  151. package/dist/vue-ui-quadrant-CgApzie6.cjs +0 -1
  152. package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +0 -1
  153. package/dist/vue-ui-scatter-B8StSjt8.cjs +0 -1
  154. package/dist/vue-ui-skeleton-CMQzFTs9.cjs +0 -41
  155. package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +0 -1
  156. package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +0 -1
  157. package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +0 -1
  158. package/dist/vue-ui-sparkline-CDowaDRS.cjs +0 -1
  159. package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +0 -4
  160. package/dist/vue-ui-xy-BmA0tspd.cjs +0 -3
  161. package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +0 -9
@@ -1,12 +1,12 @@
1
- import { ref as E, computed as W, watch as Pe, onMounted as nt, onBeforeUnmount as rt, openBlock as a, createElementBlock as l, normalizeClass as ne, normalizeStyle as F, createBlock as Ie, unref as f, createSlots as st, withCtx as ae, renderSlot as D, normalizeProps as J, guardReactiveProps as ge, createCommentVNode as p, toDisplayString as T, createElementVNode as _, Fragment as m, renderList as L, mergeProps as Ee, createVNode as me, pushScopeId as vt, popScopeId as dt } from "vue";
2
- import { u as ct, c as ht, t as ft, a as gt, p as U, b as mt, F as pt, e as xt, d as Te, m as yt, B as Ge, X as kt, j as bt, k as pe, n as Re, i as H, f as O, P as He, s as X, x as Ae, y as Ne } from "./index-CaV1s-yZ.js";
1
+ import { ref as E, computed as W, watch as Pe, onMounted as nt, onBeforeUnmount as rt, openBlock as a, createElementBlock as l, normalizeClass as ne, normalizeStyle as M, createBlock as Ie, unref as f, createSlots as st, withCtx as ae, renderSlot as D, normalizeProps as J, guardReactiveProps as ge, createCommentVNode as p, toDisplayString as T, createElementVNode as _, Fragment as m, renderList as L, mergeProps as Ee, createVNode as me, pushScopeId as vt, popScopeId as dt } from "vue";
2
+ import { u as ct, c as ht, t as ft, a as gt, p as U, b as mt, G as pt, e as xt, d as Te, m as yt, C as Ge, X as kt, j as bt, k as pe, n as Re, i as H, f as F, Q as He, v as X, x as Ae, y as Ne } from "./index-DP8dqFNd.js";
3
3
  import { t as St, u as wt } from "./useResponsive-NZB-WLRF.js";
4
- import Le from "./BaseIcon-rwm-10Hu.js";
5
- import { _ as _t } from "./Tooltip-DfSM1mNP.js";
6
- import { u as At, U as Lt } from "./usePrinter-rvJyT65A.js";
7
- import { S as zt } from "./Slicer-DwBBu3kB.js";
8
- import $t from "./vue-ui-skeleton-CvFX_ExX.js";
9
- import { u as Xe } from "./useNestedProp-tWCzZrLx.js";
4
+ import Le from "./BaseIcon-BIQXWVMS.js";
5
+ import { _ as _t } from "./Tooltip-Dk-cimhQ.js";
6
+ import { u as At, U as Lt } from "./usePrinter-DiuHo4LO.js";
7
+ import { S as zt } from "./Slicer-DzJZ4axa.js";
8
+ import $t from "./vue-ui-skeleton-B30ZhUV7.js";
9
+ import { u as Xe } from "./useNestedProp-B-oZxD4x.js";
10
10
  import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const A = {
12
12
  LINE: "LINE",
@@ -87,7 +87,7 @@ function Je(s) {
87
87
  s.hasOwnProperty(g) && ($[g.toUpperCase()] = s[g]);
88
88
  return $;
89
89
  }
90
- const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = ["xmlns", "viewBox"], Ot = ["id"], Bt = ["id"], Ut = /* @__PURE__ */ Ke(() => /* @__PURE__ */ _("feColorMatrix", {
90
+ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["id"], Bt = ["id"], Ut = /* @__PURE__ */ Ke(() => /* @__PURE__ */ _("feColorMatrix", {
91
91
  type: "saturate",
92
92
  values: "0"
93
93
  }, null, -1)), Dt = ["id"], Vt = ["flood-color"], qt = {
@@ -126,7 +126,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
126
126
  }, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = ["x", "y", "font-size", "fill"], Na = {
127
127
  key: 3,
128
128
  class: "periodLabels"
129
- }, Fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ma = ["font-size", "text-anchor", "transform", "fill"], Oa = { class: "plots" }, Ba = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Ua = ["to"], Da = ["from", "to"], Va = {
129
+ }, Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = ["font-size", "text-anchor", "transform", "fill"], Fa = { class: "plots" }, Ba = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Ua = ["to"], Da = ["from", "to"], Va = {
130
130
  key: 4,
131
131
  class: "dataLabels"
132
132
  }, qa = ["x", "y", "font-size", "fill"], Wa = { class: "tooltip-traps" }, ja = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ga = {
@@ -156,11 +156,11 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
156
156
  },
157
157
  emits: ["selectDatapoint", "selectLegend"],
158
158
  setup(s, { expose: $, emit: g }) {
159
- const R = s, { vue_ui_quick_chart: V } = ct(), j = E(null), le = E(null), oe = E(null), re = E(null), P = E(ht()), G = E(!1), se = E(null), Q = E(""), q = E(null), w = E([]), Fe = E(0), ye = E(0), e = W({
160
- get: () => Me(),
159
+ const R = s, { vue_ui_quick_chart: V } = ct(), j = E(null), le = E(null), oe = E(null), re = E(null), P = E(ht()), G = E(!1), se = E(null), Q = E(""), q = E(null), w = E([]), Me = E(0), ye = E(0), e = W({
160
+ get: () => Oe(),
161
161
  set: (u) => u
162
162
  });
163
- function Me() {
163
+ function Oe() {
164
164
  const u = Xe({
165
165
  userConfig: R.config,
166
166
  defaultConfig: V
@@ -174,7 +174,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
174
174
  } : u;
175
175
  }
176
176
  Pe(() => R.config, (u) => {
177
- e.value = Me(), k.value.width = e.value.width, k.value.height = e.value.height, Ue();
177
+ e.value = Oe(), k.value.width = e.value.width, k.value.height = e.value.height, Ue();
178
178
  }, { deep: !0 }), Pe(() => R.dataset, (u) => {
179
179
  y.value = de.value, b.value.start = 0, b.value.end = y.value.maxSeriesLength, ye.value += 1;
180
180
  }, { deep: !0 });
@@ -195,7 +195,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
195
195
  type: "dataset"
196
196
  });
197
197
  }, { immediate: !0 });
198
- const { isPrinting: ke, isImaging: be, generatePdf: Oe, generateImage: Be } = At({
198
+ const { isPrinting: ke, isImaging: be, generatePdf: Fe, generateImage: Be } = At({
199
199
  elementId: `${z.value}_${P.value}`,
200
200
  fileName: e.value.title || z.value
201
201
  }), k = E({
@@ -308,7 +308,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
308
308
  immutableValue: o.value
309
309
  }));
310
310
  function c(o, i) {
311
- return O({
311
+ return F({
312
312
  v: isNaN(o.value / De(i)) ? 0 : o.value / De(i) * 100,
313
313
  s: "%",
314
314
  r: e.value.dataLabelRoundingPercentage
@@ -318,7 +318,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
318
318
  return o.proportion * 100 > e.value.donutHideLabelUnderPercentage;
319
319
  }
320
320
  function n(o, i) {
321
- const S = de.value.dataset.find((I, M) => `donut_${M}` === o).VALUE;
321
+ const S = de.value.dataset.find((I, O) => `donut_${O}` === o).VALUE;
322
322
  return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
323
323
  }
324
324
  function r({ datapoint: o, seriesIndex: i }) {
@@ -341,14 +341,14 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
341
341
  x += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, x += `<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>`, x += `<b>${H(
342
342
  e.value.formatter,
343
343
  o.value,
344
- O({
344
+ F({
345
345
  p: e.value.valuePrefix,
346
346
  v: o.value,
347
347
  s: e.value.valueSuffix,
348
348
  r: e.value.dataLabelRoundingValue
349
349
  }),
350
350
  { datapoint: o, seriesIndex: i }
351
- )}</b>`, x += `<span>(${O({ v: o.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, Q.value = `<div>${x}</div>`;
351
+ )}</b>`, x += `<span>(${F({ v: o.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, Q.value = `<div>${x}</div>`;
352
352
  }
353
353
  G.value = !0;
354
354
  }
@@ -497,7 +497,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
497
497
  });
498
498
  else {
499
499
  let x = "";
500
- e.value.xyPeriods[i[0].absoluteIndex] && (x += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((I, M) => {
500
+ e.value.xyPeriods[i[0].absoluteIndex] && (x += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((I, O) => {
501
501
  x += `
502
502
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
503
503
  <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${I.color}"/></svg>
@@ -505,13 +505,13 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
505
505
  <b>${H(
506
506
  e.value.formatter,
507
507
  I.value,
508
- O({
508
+ F({
509
509
  p: e.value.valuePrefix,
510
510
  v: I.value,
511
511
  s: e.value.valueSuffix,
512
512
  r: e.value.dataLabelRoundingValue
513
513
  }),
514
- { datapoint: I, seriesIndex: M }
514
+ { datapoint: I, seriesIndex: O }
515
515
  )}
516
516
  </b>
517
517
  </div>
@@ -578,11 +578,11 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
578
578
  })), K = t.map((i, S) => ({
579
579
  ...i,
580
580
  coordinates: i.values.map((x, I) => {
581
- const M = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / Math.abs(n.min) * (c.height - N), Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
581
+ const O = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / Math.abs(n.min) * (c.height - N), Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
582
582
  return {
583
583
  x: c.left + B * I + fe * S + e.value.barGap / 2,
584
- y: x > 0 ? c.bottom - M : N,
585
- height: x > 0 ? M - Ce : he,
584
+ y: x > 0 ? c.bottom - O : N,
585
+ height: x > 0 ? O - Ce : he,
586
586
  value: x,
587
587
  width: fe
588
588
  };
@@ -590,11 +590,11 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
590
590
  })), ue = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
591
591
  ...i,
592
592
  coordinates: i.values.map((x, I) => {
593
- const M = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / (n.max + h) * c.height, Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
593
+ const O = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / (n.max + h) * c.height, Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
594
594
  return {
595
595
  x: c.left + B * I + fe * S + e.value.barGap / 2,
596
- y: x > 0 ? c.bottom - M : N,
597
- height: x > 0 ? M - Ce : he,
596
+ y: x > 0 ? c.bottom - O : N,
597
+ height: x > 0 ? O - Ce : he,
598
598
  value: x,
599
599
  width: fe
600
600
  };
@@ -623,21 +623,21 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
623
623
  });
624
624
  else {
625
625
  let I = "";
626
- e.value.xyPeriods[S[0].absoluteIndex] && (I += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((M, he) => {
626
+ e.value.xyPeriods[S[0].absoluteIndex] && (I += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((O, he) => {
627
627
  I += `
628
628
  <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
629
- <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${M.color}"/></svg>
630
- <span>${M.name}:</span>
629
+ <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${O.color}"/></svg>
630
+ <span>${O.name}:</span>
631
631
  <b>${H(
632
632
  e.value.formatter,
633
- M.value,
634
- O({
633
+ O.value,
634
+ F({
635
635
  p: e.value.valuePrefix,
636
- v: M.value,
636
+ v: O.value,
637
637
  s: e.value.valueSuffix,
638
638
  r: e.value.dataLabelRoundingValue
639
639
  }),
640
- { datapoint: M, seriesIndex: he }
640
+ { datapoint: O, seriesIndex: he }
641
641
  )}
642
642
  </b>
643
643
  </div>
@@ -662,13 +662,13 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
662
662
  };
663
663
  }), $e = E(!1);
664
664
  function ut(u) {
665
- $e.value = u, Fe.value += 1;
665
+ $e.value = u, Me.value += 1;
666
666
  }
667
667
  function je() {
668
668
  Se.value.showTooltip = !Se.value.showTooltip;
669
669
  }
670
670
  return $({
671
- generatePdf: Oe,
671
+ generatePdf: Fe,
672
672
  generateImage: Be,
673
673
  toggleTooltip: je
674
674
  }), (u, c) => et.value ? (a(), l("div", {
@@ -677,11 +677,11 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
677
677
  ref_key: "quickChart",
678
678
  ref: j,
679
679
  class: ne({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": $e.value }),
680
- style: F(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
680
+ style: M(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
681
681
  }, [
682
682
  e.value.showUserOptions ? (a(), Ie(Lt, {
683
683
  ref: "details",
684
- key: `user_option_${Fe.value}`,
684
+ key: `user_option_${Me.value}`,
685
685
  backgroundColor: e.value.backgroundColor,
686
686
  color: e.value.color,
687
687
  isPrinting: f(ke),
@@ -697,7 +697,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
697
697
  titles: { ...e.value.userOptionsButtonTitles },
698
698
  chartElement: j.value,
699
699
  onToggleFullscreen: ut,
700
- onGeneratePdf: f(Oe),
700
+ onGeneratePdf: f(Fe),
701
701
  onGenerateImage: f(Be),
702
702
  onToggleTooltip: je
703
703
  }, st({ _: 2 }, [
@@ -735,13 +735,13 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
735
735
  ref_key: "quickChartTitle",
736
736
  ref: le,
737
737
  class: "vue-ui-quick-chart-title",
738
- style: F(`background:${e.value.backgroundColor};color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
738
+ style: M(`background:${e.value.backgroundColor};color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
739
739
  }, T(e.value.title), 5)) : p("", !0),
740
740
  z.value ? (a(), l("svg", {
741
741
  key: 2,
742
742
  xmlns: f(kt),
743
743
  viewBox: tt.value,
744
- style: F(`max-width:100%;overflow:visible;background:${e.value.backgroundColor};color:${e.value.color}`)
744
+ style: M(`max-width:100%;overflow:visible;background:${e.value.backgroundColor};color:${e.value.color}`)
745
745
  }, [
746
746
  _("defs", null, [
747
747
  _("filter", {
@@ -757,7 +757,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
757
757
  id: `blur_std_${P.value}`
758
758
  }, null, 8, Bt),
759
759
  Ut
760
- ], 8, Ot),
760
+ ], 8, Ft),
761
761
  _("filter", {
762
762
  id: `shadow_${P.value}`,
763
763
  "color-interpolation-filters": "sRGB"
@@ -837,7 +837,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
837
837
  }, T(C.value.displayArcPercentage(t, C.value.chart)) + " (" + T(f(H)(
838
838
  e.value.formatter,
839
839
  t.value,
840
- f(O)({
840
+ f(F)({
841
841
  p: e.value.valuePrefix,
842
842
  v: t.value,
843
843
  s: e.value.valueSuffix,
@@ -870,7 +870,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
870
870
  y: C.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
871
871
  "font-size": e.value.donutTotalLabelFontSize,
872
872
  fill: e.value.color
873
- }, T(f(O)({
873
+ }, T(f(F)({
874
874
  p: e.value.valuePrefix,
875
875
  v: C.value.total,
876
876
  s: e.value.valueSuffix,
@@ -944,7 +944,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
944
944
  }, T(f(H)(
945
945
  e.value.formatter,
946
946
  t.value,
947
- f(O)({
947
+ f(F)({
948
948
  p: e.value.valuePrefix,
949
949
  v: t.value,
950
950
  s: e.value.valueSuffix,
@@ -1037,7 +1037,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1037
1037
  }, T(f(H)(
1038
1038
  e.value.formatter,
1039
1039
  f(X)(r.value),
1040
- f(O)({
1040
+ f(F)({
1041
1041
  p: e.value.valuePrefix,
1042
1042
  v: f(X)(r.value),
1043
1043
  s: e.value.valueSuffix,
@@ -1054,7 +1054,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1054
1054
  height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
1055
1055
  width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
1056
1056
  fill: [q.value, Y.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
1057
- style: F(`opacity:${e.value.xyHighlighterOpacity}`),
1057
+ style: M(`opacity:${e.value.xyHighlighterOpacity}`),
1058
1058
  onMouseenter: (r) => d.value.useTooltip(n),
1059
1059
  onMouseleave: c[1] || (c[1] = (r) => d.value.killTooltip()),
1060
1060
  onClick: (r) => g("selectDatapoint", d.value.dataset.map((h) => ({
@@ -1130,7 +1130,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1130
1130
  }, T(f(H)(
1131
1131
  e.value.formatter,
1132
1132
  t.value,
1133
- f(O)({
1133
+ f(F)({
1134
1134
  p: e.value.valuePrefix,
1135
1135
  v: t.value,
1136
1136
  s: e.value.valueSuffix,
@@ -1149,15 +1149,15 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1149
1149
  stroke: e.value.xyAxisStroke,
1150
1150
  "stroke-width": e.value.xyAxisStrokeWidth,
1151
1151
  "stroke-linecap": "round"
1152
- }, null, 8, Fa))), 256)),
1152
+ }, null, 8, Ma))), 256)),
1153
1153
  (a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("text", {
1154
1154
  "font-size": e.value.xyLabelsXFontSize,
1155
1155
  "text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
1156
1156
  transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
1157
1157
  fill: e.value.color
1158
- }, T(t), 9, Ma))), 256))
1158
+ }, T(t), 9, Oa))), 256))
1159
1159
  ])) : p("", !0),
1160
- _("g", Oa, [
1160
+ _("g", Fa, [
1161
1161
  (a(!0), l(m, null, L(v.value.dataset, (t, n) => (a(), l(m, null, [
1162
1162
  (a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("rect", {
1163
1163
  x: r.x,
@@ -1199,7 +1199,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1199
1199
  }, T(f(H)(
1200
1200
  e.value.formatter,
1201
1201
  f(X)(r.value),
1202
- f(O)({
1202
+ f(F)({
1203
1203
  p: e.value.valuePrefix,
1204
1204
  v: f(X)(r.value),
1205
1205
  s: e.value.valueSuffix,
@@ -1216,7 +1216,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1216
1216
  height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
1217
1217
  width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
1218
1218
  fill: [q.value, Y.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
1219
- style: F(`opacity:${e.value.xyHighlighterOpacity}`),
1219
+ style: M(`opacity:${e.value.xyHighlighterOpacity}`),
1220
1220
  onMouseenter: (r) => v.value.useTooltip(n),
1221
1221
  onMouseleave: c[2] || (c[2] = (r) => v.value.killTooltip()),
1222
1222
  onClick: (r) => g("selectDatapoint", v.value.dataset.map((h) => ({
@@ -1262,7 +1262,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1262
1262
  }, T(e.value.yAxisLabel), 9, el)
1263
1263
  ])) : p("", !0)
1264
1264
  ])) : p("", !0)
1265
- ], 12, Mt)) : p("", !0),
1265
+ ], 12, Ot)) : p("", !0),
1266
1266
  z.value ? p("", !0) : (a(), Ie($t, {
1267
1267
  key: 3,
1268
1268
  config: {
@@ -1330,14 +1330,14 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1330
1330
  ref_key: "quickChartLegend",
1331
1331
  ref: oe,
1332
1332
  class: "vue-ui-quick-chart-legend",
1333
- style: F(`background:${e.value.backgroundColor};color:${e.value.color}`)
1333
+ style: M(`background:${e.value.backgroundColor};color:${e.value.color}`)
1334
1334
  }, [
1335
1335
  z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, L(C.value.legend, (t, n) => (a(), l("div", {
1336
1336
  class: "vue-ui-quick-chart-legend-item",
1337
1337
  onClick: (r) => {
1338
1338
  at(t, C.value.dataset), g("selectLegend", t);
1339
1339
  },
1340
- style: F(`cursor: ${C.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1340
+ style: M(`cursor: ${C.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1341
1341
  }, [
1342
1342
  e.value.useCustomLegend ? D(u.$slots, "legend", J(Ee({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
1343
1343
  me(Le, {
@@ -1346,14 +1346,14 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1346
1346
  size: e.value.legendIconSize
1347
1347
  }, null, 8, ["name", "stroke", "size"]),
1348
1348
  _("span", {
1349
- style: F(`font-size:${e.value.legendFontSize}px`)
1349
+ style: M(`font-size:${e.value.legendFontSize}px`)
1350
1350
  }, T(t.name), 5),
1351
1351
  _("span", {
1352
- style: F(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1352
+ style: M(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
1353
1353
  }, T(w.value.includes(t.id) ? "-" : f(H)(
1354
1354
  e.value.formatter,
1355
1355
  t.absoluteValue,
1356
- f(O)({
1356
+ f(F)({
1357
1357
  p: e.value.valuePrefix,
1358
1358
  v: t.absoluteValue,
1359
1359
  s: e.value.valueSuffix,
@@ -1363,14 +1363,14 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1363
1363
  )), 5),
1364
1364
  w.value.includes(t.id) ? (a(), l("span", {
1365
1365
  key: 0,
1366
- style: F(`font-size:${e.value.legendFontSize}px`)
1366
+ style: M(`font-size:${e.value.legendFontSize}px`)
1367
1367
  }, " ( - % ) ", 4)) : _e.value ? (a(), l("span", {
1368
1368
  key: 1,
1369
- style: F(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1369
+ style: M(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1370
1370
  }, " ( - % ) ", 4)) : (a(), l("span", {
1371
1371
  key: 2,
1372
- style: F(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1373
- }, " (" + T(f(O)({
1372
+ style: M(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
1373
+ }, " (" + T(f(F)({
1374
1374
  v: t.value / C.value.total * 100,
1375
1375
  s: "%",
1376
1376
  r: e.value.dataLabelRoundingPercentage
@@ -1382,7 +1382,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1382
1382
  onClick: (r) => {
1383
1383
  Ve(t.id, d.value.legend.length - 1), g("selectLegend", t);
1384
1384
  },
1385
- style: F(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1385
+ style: M(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1386
1386
  }, [
1387
1387
  e.value.useCustomLegend ? D(u.$slots, "legend", J(Ee({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
1388
1388
  me(Le, {
@@ -1391,7 +1391,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1391
1391
  size: e.value.legendIconSize
1392
1392
  }, null, 8, ["name", "stroke", "size"]),
1393
1393
  _("span", {
1394
- style: F(`font-size:${e.value.legendFontSize}px`)
1394
+ style: M(`font-size:${e.value.legendFontSize}px`)
1395
1395
  }, T(t.name), 5)
1396
1396
  ], 64))
1397
1397
  ], 12, ll))), 256)) : p("", !0),
@@ -1400,7 +1400,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1400
1400
  onClick: (r) => {
1401
1401
  Ve(t.id, v.value.legend.length - 1), g("selectLegend", t);
1402
1402
  },
1403
- style: F(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1403
+ style: M(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
1404
1404
  }, [
1405
1405
  e.value.useCustomLegend ? D(u.$slots, "legend", J(Ee({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
1406
1406
  me(Le, {
@@ -1409,7 +1409,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1409
1409
  size: e.value.legendIconSize
1410
1410
  }, null, 8, ["name", "stroke", "size"]),
1411
1411
  _("span", {
1412
- style: F(`font-size:${e.value.legendFontSize}px`)
1412
+ style: M(`font-size:${e.value.legendFontSize}px`)
1413
1413
  }, T(t.name), 5)
1414
1414
  ], 64))
1415
1415
  ], 12, ol))), 256)) : p("", !0)
@@ -1437,7 +1437,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Ft = ["id"], Mt = [
1437
1437
  ]),
1438
1438
  _: 3
1439
1439
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"])
1440
- ], 14, Ft)) : (a(), l("div", il, [
1440
+ ], 14, Mt)) : (a(), l("div", il, [
1441
1441
  me(Le, {
1442
1442
  name: "circleCancel",
1443
1443
  stroke: "red"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BTgtr0F8.cjs"),Z=require("./useResponsive-B3TrDDIG.cjs"),ge=require("./Title-3EduyW4p.cjs"),ee=require("./usePrinter-DzTaA1eh.cjs"),he=require("./Tooltip-DScSrYXJ.cjs"),me=require("./vue-ui-sparkbar-C3i1K7hi.cjs"),fe=require("./Legend-DgFd-O0m.cjs"),ye=require("./DataTable-CsNozyz7.cjs"),ke=require("./vue-ui-skeleton-CMQzFTs9.cjs"),be=require("./vue-ui-accordion-7e4Myhcg.cjs"),te=require("./useNestedProp-CisbRRo_.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Be=["xmlns","viewBox"],_e=["id"],$e=["stop-color"],xe=["stop-color"],Pe={key:0},Ne=["x1","y1","x2","y2","stroke","stroke-width"],Te={key:0},Se=["d","stroke","stroke-width"],Ee=["d","stroke","stroke-width"],Ve={key:1},Fe=["x","y","text-anchor","font-size","fill","onMouseenter"],Le=["points","stroke","stroke-width"],ze=["points","stroke","stroke-width","fill"],Oe={key:2},Ae=["cx","cy","fill","r","stroke"],Ie={key:3,class:"vue-data-ui-watermark"},Re=["onClick"],De={key:0,style:{"max-width":"200px",margin:"0 auto"}},Me={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(oe,{expose:ae,emit:le}){const d=oe,{vue_ui_radar:re}=n.useConfig(),k=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),m=e.ref(n.createUid()),ne=e.ref(null),x=e.ref(!1),P=e.ref(""),F=e.ref(0),b=e.ref(null),L=e.ref(null),z=e.ref(null),O=e.ref(0),A=e.ref(0),I=e.ref(0),t=e.computed({get:()=>R(),set:o=>o});function R(){const o=te.useNestedProp({userConfig:d.config,defaultConfig:re});return o.theme?{...te.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=R(),D(),O.value+=1,A.value+=1,I.value+=1},{deep:!0});const B=e.ref(null);function D(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=Z.throttle(()=>{const{width:a,height:l}=Z.useResponsive({chart:b.value,title:t.value.style.chart.title.text?L.value:null,legend:t.value.style.chart.legend.show?z.value:null});s.value.width=a,s.value.height=l});B.value=new ResizeObserver(o),B.value.observe(b.value.parentNode)}}e.onMounted(()=>{D()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:M,isImaging:q,generatePdf:U,generateImage:G}=ee.usePrinter({elementId:`vue-ui-radar_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),W=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),g=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),ue=e.computed(()=>({style:{backgroundColor:t.value.style.chart.tooltip.backgroundColor,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}}})),s=e.ref({height:312,width:512}),i=e.ref([]),C=e.ref(null),f=e.ref(!1);function H(o){f.value=!0,i.value.includes(o)?(C.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{f.value=!1,C.value=null},500)):(i.value.push(o),setTimeout(()=>{f.value=!1},500)),le("selectLegend",y.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function se(){return y.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_${m.value}_${a}`,color:n.convertColorToHex(o.color)||W.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),p=e.computed(()=>k.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||W.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${m.value}_${a}`,formatter:o.formatter||null})):[]),X=e.computed(()=>Math.max(...p.value.flatMap(o=>o.values))),j=e.computed(()=>p.value.length),N=e.computed(()=>Math.min(s.value.width,s.value.height)/3),Y=e.computed(()=>n.createPolygonPath({plot:{x:s.value.width/2,y:s.value.height/2},radius:N.value,sides:j.value,rotation:0})),ie=e.computed(()=>{const o=[];for(let a=0;a<N.value;a+=N.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),h=e.computed(()=>Y.value.coordinates.map((o,a)=>{const l=p.value[a].values.map(r=>ce({centerX:s.value.width/2,centerY:s.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(p.value[a].target||X.value)}));return{...o,...p.value[a],plots:l}}));function T({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>s.value.width/2&&(o+=12,l="start"),o<s.value.width/2&&(o-=12,l="end"),a>s.value.height/2&&(a+=20),a<s.value.height/2&&(a-=12),a===s.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ce({centerX:o,centerY:a,apexX:l,apexY:r,proportion:u}){return{x:o+(l-o)*u,y:a+(r-a)*u}}const y=e.computed(()=>{const o=p.value.map((a,l)=>a.values.map(r=>r/(a.target||X.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,u)=>r+u,0)/p.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>H(l),isSegregated:i.value.includes(l)}))}),de=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":""})),_=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...y.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((u,c)=>`${n.applyDataLabel(r.formatter,u,n.dataLabel({p:v.value[c].prefix,v:u,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(u/r.target)?"":n.dataLabel({v:u/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),S=e.ref([]),E=e.ref(null);function ve(o,a){S.value=[],$.value=a,x.value=!0;let l="";E.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:p.value,radar:h.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:p.value,radar:h.value},config:t.value})))P.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:p.value,radar:h.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 u=0;u<o.values.length;u+=1)i.value.includes(u)||S.value.push({name:v.value[u].name,value:o.values[u]/o.target*100,color:v.value[u].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[u].prefix??"",v:o.values[u],s:v.value[u].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});P.value=l}}function J(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...y.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,Ue)=>[c.name,c.target,...c.values.flatMap(V=>[V,isNaN(V/c.target)?"":V/c.target*100])]),r=o.concat([a]).concat(l),u=n.createCsvContent(r);n.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const w=e.ref(!1);function pe(o){w.value=o,F.value+=1}function K(){g.value.showTable=!g.value.showTable}function Q(){g.value.showTooltip=!g.value.showTooltip}return ae({getData:se,generatePdf:U,generateCsv:J,generateImage:G,toggleTable:K,toggleTooltip:Q}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${w.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:b,id:`vue-ui-radar_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:L,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[(e.openBlock(),e.createBlock(ge._sfc_main,{key:`title_${O.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"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:ne,key:`user_options_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(M),uid:m.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:w.value,isTooltip:g.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:b.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(G),onToggleTable:K,onToggleTooltip:Q},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]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":w.value,"vue-data-ui-fulscreen--off":!w.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[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_${m.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(l.color,.05)}${e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]}`},null,8,$e),e.createElementVNode("stop",{offset:"100%","stop-color":l.color+e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity]},null,8,xe)],8,_e))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:s.value.width/2,y1:s.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,Ne))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:s.value.width/2,y:s.value.height/2},radius:l,sides:j.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,Se))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:Y.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,Ee),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:T(l).x,y:T(l).y,"text-anchor":T(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:u=>ve(l,r),onMouseleave:a[0]||(a[0]=u=>{x.value=!1,$.value=null})},e.toDisplayString(l.name),41,Fe))),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)(h.value.map(u=>u.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":f.value&&C.value===r&&t.value.useCssAnimation})},null,10,Le)):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)(h.value.map(u=>u.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_${m.value}_${r})`:l.color+e.unref(n.opacity)[t.value.style.chart.layout.dataPolygon.opacity],class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":f.value&&C.value===r&&t.value.useCssAnimation})},null,10,ze)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(u,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:u.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":f.value&&C.value===c&&t.value.useCssAnimation})},null,10,Ae))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:s.value},void 0,!0)],14,Be)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:4,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:z},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(fe.Legend,{key:`legend_${I.value}`,legendSet:y.value,config:de.value,onClickMarker:a[1]||(a[1]=({i:l})=>H(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>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,Re)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:y.value},void 0,!0)],512),e.createVNode(he._sfc_main,{show:g.value.showTooltip&&x.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:b.value,content:P.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({...E.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",De,[e.createVNode(me.default,{dataset:S.value,config:ue.value,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity},null,8,["dataset","config","backgroundOpacity"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...E.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isCustom"]),k.value?(e.openBlock(),e.createBlock(be.default,{key:5,hideDetails:"",config:{open:g.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(ye.DataTable,{key:`table_${A.value}`,colNames:_.value.colNames,head:_.value.head,body:_.value.body,config:_.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=>g.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)],14,we))}},qe=Ce._export_sfc(Me,[["__scopeId","data-v-9855cfb0"]]);exports.default=qe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CzjC8LfY.cjs"),Z=require("./useResponsive-B3TrDDIG.cjs"),ge=require("./Title-BSpa3uge.cjs"),ee=require("./usePrinter-DiLM6jav.cjs"),he=require("./Tooltip-rmhZhv96.cjs"),me=require("./vue-ui-sparkbar-DY3iOLo4.cjs"),fe=require("./Legend-CGGD8NhP.cjs"),ye=require("./DataTable-C5TOiC61.cjs"),ke=require("./vue-ui-skeleton-CwqzJlQf.cjs"),be=require("./vue-ui-accordion-DpI7fTKZ.cjs"),te=require("./useNestedProp-CY7DebVH.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Be=["xmlns","viewBox"],_e=["id"],xe=["stop-color"],$e=["stop-color"],Pe={key:0},Ne=["x1","y1","x2","y2","stroke","stroke-width"],Te={key:0},Se=["d","stroke","stroke-width"],Ee=["d","stroke","stroke-width"],Ve={key:1},Fe=["x","y","text-anchor","font-size","fill","onMouseenter"],Le=["points","stroke","stroke-width"],Oe=["points","stroke","stroke-width","fill"],ze={key:2},Ae=["cx","cy","fill","r","stroke"],Ie={key:3,class:"vue-data-ui-watermark"},Re=["onClick"],De={key:0,style:{"max-width":"200px",margin:"0 auto"}},Me={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(oe,{expose:ae,emit:le}){const d=oe,{vue_ui_radar:re}=n.useConfig(),k=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),m=e.ref(n.createUid()),ne=e.ref(null),$=e.ref(!1),P=e.ref(""),F=e.ref(0),b=e.ref(null),L=e.ref(null),O=e.ref(null),z=e.ref(0),A=e.ref(0),I=e.ref(0),t=e.computed({get:()=>R(),set:o=>o});function R(){const o=te.useNestedProp({userConfig:d.config,defaultConfig:re});return o.theme?{...te.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=R(),D(),z.value+=1,A.value+=1,I.value+=1},{deep:!0});const B=e.ref(null);function D(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=Z.throttle(()=>{const{width:a,height:l}=Z.useResponsive({chart:b.value,title:t.value.style.chart.title.text?L.value:null,legend:t.value.style.chart.legend.show?O.value:null});s.value.width=a,s.value.height=l});B.value=new ResizeObserver(o),B.value.observe(b.value.parentNode)}}e.onMounted(()=>{D()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:M,isImaging:q,generatePdf:U,generateImage:G}=ee.usePrinter({elementId:`vue-ui-radar_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar"}),W=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),g=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),ue=e.computed(()=>({style:{backgroundColor:t.value.style.chart.tooltip.backgroundColor,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}}})),s=e.ref({height:312,width:512}),i=e.ref([]),C=e.ref(null),f=e.ref(!1);function H(o){f.value=!0,i.value.includes(o)?(C.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{f.value=!1,C.value=null},500)):(i.value.push(o),setTimeout(()=>{f.value=!1},500)),le("selectLegend",y.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function se(){return y.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_${m.value}_${a}`,color:n.convertColorToHex(o.color)||W.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),p=e.computed(()=>k.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||W.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${m.value}_${a}`,formatter:o.formatter||null})):[]),X=e.computed(()=>Math.max(...p.value.flatMap(o=>o.values))),j=e.computed(()=>p.value.length),N=e.computed(()=>Math.min(s.value.width,s.value.height)/3),Y=e.computed(()=>n.createPolygonPath({plot:{x:s.value.width/2,y:s.value.height/2},radius:N.value,sides:j.value,rotation:0})),ie=e.computed(()=>{const o=[];for(let a=0;a<N.value;a+=N.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),h=e.computed(()=>Y.value.coordinates.map((o,a)=>{const l=p.value[a].values.map(r=>ce({centerX:s.value.width/2,centerY:s.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(p.value[a].target||X.value)}));return{...o,...p.value[a],plots:l}}));function T({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>s.value.width/2&&(o+=12,l="start"),o<s.value.width/2&&(o-=12,l="end"),a>s.value.height/2&&(a+=20),a<s.value.height/2&&(a-=12),a===s.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function ce({centerX:o,centerY:a,apexX:l,apexY:r,proportion:u}){return{x:o+(l-o)*u,y:a+(r-a)*u}}const y=e.computed(()=>{const o=p.value.map((a,l)=>a.values.map(r=>r/(a.target||X.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,u)=>r+u,0)/p.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>H(l),isSegregated:i.value.includes(l)}))}),de=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":""})),_=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...y.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((u,c)=>`${n.applyDataLabel(r.formatter,u,n.dataLabel({p:v.value[c].prefix,v:u,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(u/r.target)?"":n.dataLabel({v:u/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}}),x=e.ref(null),S=e.ref([]),E=e.ref(null);function ve(o,a){S.value=[],x.value=a,$.value=!0;let l="";E.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:p.value,radar:h.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:p.value,radar:h.value},config:t.value})))P.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:p.value,radar:h.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 u=0;u<o.values.length;u+=1)i.value.includes(u)||S.value.push({name:v.value[u].name,value:o.values[u]/o.target*100,color:v.value[u].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[u].prefix??"",v:o.values[u],s:v.value[u].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});P.value=l}}function J(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...y.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,Ue)=>[c.name,c.target,...c.values.flatMap(V=>[V,isNaN(V/c.target)?"":V/c.target*100])]),r=o.concat([a]).concat(l),u=n.createCsvContent(r);n.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const w=e.ref(!1);function pe(o){w.value=o,F.value+=1}function K(){g.value.showTable=!g.value.showTable}function Q(){g.value.showTooltip=!g.value.showTooltip}return ae({getData:se,generatePdf:U,generateCsv:J,generateImage:G,toggleTable:K,toggleTooltip:Q}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${w.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:b,id:`vue-ui-radar_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:L,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[(e.openBlock(),e.createBlock(ge._sfc_main,{key:`title_${z.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"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:ne,key:`user_options_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(M),uid:m.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:w.value,isTooltip:g.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:b.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(G),onToggleTable:K,onToggleTooltip:Q},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]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":w.value,"vue-data-ui-fulscreen--off":!w.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[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_${m.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,xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,$e)],8,_e))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:s.value.width/2,y1:s.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,Ne))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:s.value.width/2,y:s.value.height/2},radius:l,sides:j.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,Se))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:Y.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,Ee),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:T(l).x,y:T(l).y,"text-anchor":T(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:u=>ve(l,r),onMouseleave:a[0]||(a[0]=u=>{$.value=!1,x.value=null})},e.toDisplayString(l.name),41,Fe))),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)(h.value.map(u=>u.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":f.value&&C.value===r&&t.value.useCssAnimation})},null,10,Le)):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)(h.value.map(u=>u.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_${m.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":f.value&&C.value===r&&t.value.useCssAnimation})},null,10,Oe)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(u,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:u.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:x.value!==null&&x.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":f.value&&C.value===c&&t.value.useCssAnimation})},null,10,Ae))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:s.value},void 0,!0)],14,Be)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:4,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:O},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(fe.Legend,{key:`legend_${I.value}`,legendSet:y.value,config:de.value,onClickMarker:a[1]||(a[1]=({i:l})=>H(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>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,Re)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:y.value},void 0,!0)],512),e.createVNode(he._sfc_main,{show:g.value.showTooltip&&$.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:b.value,content:P.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({...E.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",De,[e.createVNode(me.default,{dataset:S.value,config:ue.value,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity},null,8,["dataset","config","backgroundOpacity"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...E.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isCustom"]),k.value?(e.openBlock(),e.createBlock(be.default,{key:5,hideDetails:"",config:{open:g.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(ye.DataTable,{key:`table_${A.value}`,colNames:_.value.colNames,head:_.value.head,body:_.value.body,config:_.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=>g.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)],14,we))}},qe=Ce._export_sfc(Me,[["__scopeId","data-v-96f6a7f8"]]);exports.default=qe;