vue-data-ui 2.3.68 → 2.3.69

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 (141) hide show
  1. package/dist/{Arrow-C8pYyZqD.js → Arrow-Bs2WRJSk.js} +1 -1
  2. package/dist/{Arrow-Dswup7Lq.cjs → Arrow-CDLqeekX.cjs} +1 -1
  3. package/dist/{BaseIcon-Dz58O3w1.js → BaseIcon-D93rtrSm.js} +1 -1
  4. package/dist/{BaseIcon-wCGYJ8GM.cjs → BaseIcon-HycAYj53.cjs} +1 -1
  5. package/dist/{DataTable-CzvZIRDs.js → DataTable-Bwco5wF0.js} +2 -2
  6. package/dist/{DataTable-Dr67tL_4.cjs → DataTable-DkoeHXI5.cjs} +1 -1
  7. package/dist/{Legend-CkIdFaKE.cjs → Legend-CTlJpdAi.cjs} +1 -1
  8. package/dist/{Legend-C2DZGZN5.js → Legend-Cpk8DCWi.js} +1 -1
  9. package/dist/{Shape-qXMEmkXY.js → Shape-Bfeh9GpX.js} +1 -1
  10. package/dist/{Shape-BfT5b6-S.cjs → Shape-CbiBbFNX.cjs} +1 -1
  11. package/dist/{Slicer-3itdmkZf.cjs → Slicer-DA9QuPiC.cjs} +1 -1
  12. package/dist/{Slicer-CnIWgBPY.js → Slicer-DpuUwHC7.js} +2 -2
  13. package/dist/{Title-BYDRRvqX.cjs → Title-B6PVw0aK.cjs} +1 -1
  14. package/dist/{Title-BxitYokc.js → Title-CzxknLI3.js} +1 -1
  15. package/dist/{Tooltip-CtRqM9Sw.cjs → Tooltip-Ci47DnuY.cjs} +1 -1
  16. package/dist/{Tooltip-DTntJRyb.js → Tooltip-DYVjAqo-.js} +1 -1
  17. package/dist/{index-DnCegWge.cjs → index-DDwHKEGb.cjs} +1 -1
  18. package/dist/{index-fMHmzYJu.js → index-b22AFna7.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-lzTC0cjC.js → useNestedProp-6FL791Qt.js} +1 -1
  21. package/dist/{useNestedProp-18FTwhUW.cjs → useNestedProp-BbpR9SM4.cjs} +1 -1
  22. package/dist/{usePrinter-C94KiYaY.cjs → usePrinter-CRKoRqbE.cjs} +1 -1
  23. package/dist/{usePrinter-BEVwOH5x.js → usePrinter-C_wOlUXy.js} +1 -1
  24. package/dist/{vue-data-ui-CqFeVAMl.cjs → vue-data-ui-B4ldblBa.cjs} +1 -1
  25. package/dist/{vue-data-ui-BG25mzqo.js → vue-data-ui-XthQYdCU.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-D8WIzocy.js → vue-ui-3d-bar-DbYTVw48.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-DyVzM9lj.cjs → vue-ui-3d-bar-ojEQSNLk.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-CG_G9ock.cjs → vue-ui-accordion-BBDPcl3d.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-CVzTuENA.js → vue-ui-accordion-H9MtAuZL.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-BZEiDo6X.js → vue-ui-age-pyramid-DQ3QiyQZ.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-DgAJ_4pC.cjs → vue-ui-age-pyramid-M1J2GKpa.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-DYMGXQSF.js → vue-ui-annotator-D5DX94Dw.js} +1 -1
  35. package/dist/{vue-ui-annotator-DwwLMn8x.cjs → vue-ui-annotator-m8EO_6mf.cjs} +1 -1
  36. package/dist/{vue-ui-candlestick-F7a1z8rF.js → vue-ui-candlestick-B48E6EaX.js} +9 -9
  37. package/dist/{vue-ui-candlestick-DMh_omoZ.cjs → vue-ui-candlestick-CocQAT0K.cjs} +1 -1
  38. package/dist/{vue-ui-carousel-table-BAbXjbOY.js → vue-ui-carousel-table-BlVhpRo3.js} +4 -4
  39. package/dist/{vue-ui-carousel-table-BQZBWVfB.cjs → vue-ui-carousel-table-CBF5ycha.cjs} +1 -1
  40. package/dist/{vue-ui-chestnut-bdGmk0m5.js → vue-ui-chestnut-BikqvSP7.js} +6 -6
  41. package/dist/{vue-ui-chestnut-DGUOcpUb.cjs → vue-ui-chestnut-TU1mnoNH.cjs} +1 -1
  42. package/dist/{vue-ui-cursor-zRPYiTzg.cjs → vue-ui-cursor-36hWYcLz.cjs} +1 -1
  43. package/dist/{vue-ui-cursor-_Hme39yS.js → vue-ui-cursor-3jMf_DA8.js} +2 -2
  44. package/dist/{vue-ui-dashboard-sMYoIdL3.js → vue-ui-dashboard-BnmrvYTu.js} +2 -2
  45. package/dist/{vue-ui-dashboard-BxcYVoZr.cjs → vue-ui-dashboard-r8hBDI5a.cjs} +1 -1
  46. package/dist/{vue-ui-digits-yn6cZZpI.js → vue-ui-digits-DLWnySuv.js} +2 -2
  47. package/dist/{vue-ui-digits-Do-yAjSx.cjs → vue-ui-digits-Dudhgq6k.cjs} +1 -1
  48. package/dist/{vue-ui-donut-CZGAyjMJ.js → vue-ui-donut-BIQqKYci.js} +9 -9
  49. package/dist/{vue-ui-donut-D8By144q.cjs → vue-ui-donut-BSMPuZag.cjs} +1 -1
  50. package/dist/{vue-ui-donut-evolution-wRc663rx.cjs → vue-ui-donut-evolution-BEkQBKpm.cjs} +1 -1
  51. package/dist/{vue-ui-donut-evolution-euuIoSwG.js → vue-ui-donut-evolution-Cpmro_CO.js} +9 -9
  52. package/dist/{vue-ui-dumbbell-GwPAVNAr.js → vue-ui-dumbbell-By0EEP7S.js} +8 -8
  53. package/dist/{vue-ui-dumbbell-DzDU6BtH.cjs → vue-ui-dumbbell-CbxwKTTZ.cjs} +1 -1
  54. package/dist/{vue-ui-flow-D-2Yx4Pd.js → vue-ui-flow-BIxbPfDE.js} +7 -7
  55. package/dist/{vue-ui-flow-2tDYyk_d.cjs → vue-ui-flow-DWrZQCzR.cjs} +1 -1
  56. package/dist/{vue-ui-galaxy-Cr1PHA7e.js → vue-ui-galaxy-DIim6oZe.js} +9 -9
  57. package/dist/{vue-ui-galaxy-k1zIeVWl.cjs → vue-ui-galaxy-DsphaNAI.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-DyWEB9zv.cjs → vue-ui-gauge-CxID7_UB.cjs} +1 -1
  59. package/dist/{vue-ui-gauge-DrG1p_lu.js → vue-ui-gauge-DkB4_mbS.js} +5 -5
  60. package/dist/{vue-ui-gizmo-Cf6DtKdF.cjs → vue-ui-gizmo-B4TAO8bP.cjs} +1 -1
  61. package/dist/{vue-ui-gizmo-BUeQIgPm.js → vue-ui-gizmo-C_O9g3YG.js} +2 -2
  62. package/dist/{vue-ui-heatmap-1s92iamk.js → vue-ui-heatmap-Bs2fOp6v.js} +8 -8
  63. package/dist/{vue-ui-heatmap-B9gzhzl-.cjs → vue-ui-heatmap-CbY84wiS.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-DXrL1517.js → vue-ui-kpi-BTQ4X1Rg.js} +3 -3
  65. package/dist/{vue-ui-kpi-Cocglkc1.cjs → vue-ui-kpi-DhYlfD4Q.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-D1MAsGWr.js → vue-ui-mini-loader-BnS890Lx.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-3ssTbcFo.cjs → vue-ui-mini-loader-DRzlFN5q.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-QWFA_72V.js → vue-ui-molecule-CAPwPpHO.js} +9 -9
  69. package/dist/{vue-ui-molecule-DFD-6XKb.cjs → vue-ui-molecule-N4XGePxD.cjs} +1 -1
  70. package/dist/{vue-ui-mood-radar-DXLP2L3n.js → vue-ui-mood-radar-B8bsvKcJ.js} +9 -9
  71. package/dist/{vue-ui-mood-radar-DBq_gQ0i.cjs → vue-ui-mood-radar-CrvDHJHs.cjs} +1 -1
  72. package/dist/{vue-ui-nested-donuts-Cx4Ia5Ga.cjs → vue-ui-nested-donuts-DQtQroDc.cjs} +1 -1
  73. package/dist/{vue-ui-nested-donuts-Cx57mbbY.js → vue-ui-nested-donuts-xWRdqX_G.js} +9 -9
  74. package/dist/{vue-ui-onion-CE4wSxPC.js → vue-ui-onion-CIp-ZmAw.js} +99 -95
  75. package/dist/vue-ui-onion-DX96edRH.cjs +5 -0
  76. package/dist/{vue-ui-parallel-coordinate-plot-D8LWLRdK.cjs → vue-ui-parallel-coordinate-plot-DLbub2s5.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-DVqDX4Xb.js → vue-ui-parallel-coordinate-plot-m3xZjFsy.js} +10 -10
  78. package/dist/{vue-ui-quadrant-BNyw9TMO.cjs → vue-ui-quadrant-BlKcOAJ5.cjs} +1 -1
  79. package/dist/{vue-ui-quadrant-XSVao9uA.js → vue-ui-quadrant-CHYKm_gp.js} +10 -10
  80. package/dist/{vue-ui-quick-chart-uwdSvb9u.cjs → vue-ui-quick-chart-BuQXXXPZ.cjs} +1 -1
  81. package/dist/{vue-ui-quick-chart-Ik_UH2Wj.js → vue-ui-quick-chart-Bx33h_v_.js} +7 -7
  82. package/dist/{vue-ui-radar-B5aRCCKL.cjs → vue-ui-radar-DL21Oxie.cjs} +1 -1
  83. package/dist/{vue-ui-radar-CR6ezAzt.js → vue-ui-radar-E5QES6yN.js} +10 -10
  84. package/dist/{vue-ui-rating-CguNsO-T.cjs → vue-ui-rating-DMmskFOg.cjs} +1 -1
  85. package/dist/{vue-ui-rating-CD_nWk1T.js → vue-ui-rating-DoqRRsvo.js} +2 -2
  86. package/dist/{vue-ui-relation-circle-DT2nom_x.js → vue-ui-relation-circle-D0TOckKJ.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-8FZkM92K.cjs → vue-ui-relation-circle-DQxPcVUO.cjs} +1 -1
  88. package/dist/{vue-ui-rings-cpj5NfzL.js → vue-ui-rings-BHvZBASf.js} +9 -9
  89. package/dist/{vue-ui-rings-CNY7UKKQ.cjs → vue-ui-rings-J4xq1-8a.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-Bar7v9mt.js → vue-ui-scatter-BDFTTZvz.js} +10 -10
  91. package/dist/{vue-ui-scatter-lt_SEmmy.cjs → vue-ui-scatter-D5chTu9W.cjs} +1 -1
  92. package/dist/{vue-ui-screenshot-DgPB2-6h.cjs → vue-ui-screenshot-CfG_-SQf.cjs} +1 -1
  93. package/dist/{vue-ui-screenshot-DLqFrK48.js → vue-ui-screenshot-D9FGz4Mq.js} +1 -1
  94. package/dist/{vue-ui-skeleton-Cey15-vY.cjs → vue-ui-skeleton-BeqLQi6X.cjs} +1 -1
  95. package/dist/{vue-ui-skeleton-DiJmBrEY.js → vue-ui-skeleton-c0TzbjC0.js} +2 -2
  96. package/dist/{vue-ui-smiley-9d8vQDje.js → vue-ui-smiley-9HsQ_68t.js} +2 -2
  97. package/dist/{vue-ui-smiley-NcQqECQm.cjs → vue-ui-smiley-CQiyYo-p.cjs} +1 -1
  98. package/dist/{vue-ui-spark-trend-RIw8O12_.js → vue-ui-spark-trend-DtYPEtR4.js} +4 -4
  99. package/dist/{vue-ui-spark-trend-gLgFrogO.cjs → vue-ui-spark-trend-SlHRQmbT.cjs} +1 -1
  100. package/dist/{vue-ui-sparkbar-DpnX31Vt.js → vue-ui-sparkbar-CrlzIgxZ.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-BJZv7_r3.cjs → vue-ui-sparkbar-DiZ-nGpc.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-Ci1EXG01.js → vue-ui-sparkgauge-BdmdpNtb.js} +3 -3
  103. package/dist/{vue-ui-sparkgauge-2nfXMS4J.cjs → vue-ui-sparkgauge-oYNntKkm.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-B9Hzrj17.cjs → vue-ui-sparkhistogram-C3fHOiml.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-o1cCgVjJ.js → vue-ui-sparkhistogram-GmY7s2MV.js} +4 -4
  106. package/dist/{vue-ui-sparkline-Bpbwgdjl.cjs → vue-ui-sparkline-B904fIIV.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-CTFZOTQ4.js → vue-ui-sparkline-BMkTUeZx.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-D1a4pKvC.cjs → vue-ui-sparkstackbar-BMvx-rKU.cjs} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-Dci-TIxt.js → vue-ui-sparkstackbar-uS7i9oTT.js} +3 -3
  110. package/dist/{vue-ui-stackbar-uyUtl8SO.cjs → vue-ui-stackbar-BhAHa1Dn.cjs} +1 -1
  111. package/dist/{vue-ui-stackbar-DX86sbcN.js → vue-ui-stackbar-D4OAp2cH.js} +10 -10
  112. package/dist/{vue-ui-strip-plot-Br3W0ejH.js → vue-ui-strip-plot-BCKuRBtF.js} +9 -9
  113. package/dist/{vue-ui-strip-plot-C2NjIy5-.cjs → vue-ui-strip-plot-CryNz9qI.cjs} +1 -1
  114. package/dist/{vue-ui-table-Ctw9daYW.cjs → vue-ui-table-7C8sLROG.cjs} +1 -1
  115. package/dist/{vue-ui-table-BFs9-zs7.js → vue-ui-table-E36ZrFlN.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-DqoiRtjC.js → vue-ui-table-heatmap-CaXDSUa1.js} +4 -4
  117. package/dist/{vue-ui-table-heatmap-zAbifnaM.cjs → vue-ui-table-heatmap-DWp3QF6Q.cjs} +1 -1
  118. package/dist/{vue-ui-table-sparkline-DuUY9yJu.cjs → vue-ui-table-sparkline-BdQUpJPd.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-h4J419FI.js → vue-ui-table-sparkline-CMVyXbpe.js} +5 -5
  120. package/dist/{vue-ui-thermometer-Bt-SnP1Y.cjs → vue-ui-thermometer-DkDtdSmc.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-D_4mS8Z8.js → vue-ui-thermometer-Li9bmiH0.js} +5 -5
  122. package/dist/{vue-ui-timer-CPZm7Dif.js → vue-ui-timer-C_4lJH9K.js} +4 -4
  123. package/dist/{vue-ui-timer-CMsje-f2.cjs → vue-ui-timer-TsyW89JN.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-Bcm8DSj6.cjs → vue-ui-tiremarks-CCG1Ys1M.cjs} +1 -1
  125. package/dist/{vue-ui-tiremarks-CVBbjezc.js → vue-ui-tiremarks-Cf51w2b-.js} +5 -5
  126. package/dist/{vue-ui-treemap-1rEDHWrf.js → vue-ui-treemap-BcFsPd4Y.js} +9 -9
  127. package/dist/{vue-ui-treemap-CB1gz8gX.cjs → vue-ui-treemap-Bos2w-op.cjs} +1 -1
  128. package/dist/{vue-ui-vertical-bar-CfGS6Snt.js → vue-ui-vertical-bar-D7X05s8-.js} +9 -9
  129. package/dist/{vue-ui-vertical-bar-DHFaoQcu.cjs → vue-ui-vertical-bar-aKU9mtnf.cjs} +1 -1
  130. package/dist/{vue-ui-waffle-COf_Yi5Y.cjs → vue-ui-waffle-CFyFmjBl.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-D-niDah6.js → vue-ui-waffle-DFtpaZsl.js} +9 -9
  132. package/dist/{vue-ui-wheel-CKoly9Ay.cjs → vue-ui-wheel-BrEgOljm.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-BPcde5q6.js → vue-ui-wheel-C3nur9i_.js} +5 -5
  134. package/dist/{vue-ui-word-cloud-CPb5G65W.cjs → vue-ui-word-cloud-BaP5JJKa.cjs} +1 -1
  135. package/dist/{vue-ui-word-cloud-C9Ok-uiw.js → vue-ui-word-cloud-DPNwIdFC.js} +7 -7
  136. package/dist/{vue-ui-xy-C9T7Qybt.cjs → vue-ui-xy-KNbn-bUg.cjs} +1 -1
  137. package/dist/{vue-ui-xy-canvas-DoDgOkMe.cjs → vue-ui-xy-canvas-BaaFmIpg.cjs} +1 -1
  138. package/dist/{vue-ui-xy-canvas-JpE-OhiQ.js → vue-ui-xy-canvas-OQHq27Ks.js} +10 -10
  139. package/dist/{vue-ui-xy-BjpH25yC.js → vue-ui-xy-uoeb5Otk.js} +12 -12
  140. package/package.json +1 -1
  141. package/dist/vue-ui-onion-CApJ-Npg.cjs +0 -1
@@ -1,14 +1,14 @@
1
- import { computed as d, ref as u, onMounted as Pe, onBeforeUnmount as Oe, watch as Ie, openBlock as s, createElementBlock as n, normalizeClass as D, normalizeStyle as L, createVNode as j, createCommentVNode as b, createBlock as z, unref as v, createSlots as Fe, withCtx as h, renderSlot as f, normalizeProps as B, guardReactiveProps as V, Fragment as I, renderList as F, createElementVNode as C, toDisplayString as T, createTextVNode as Se, nextTick as Me } from "vue";
2
- import { u as Ne, c as Re, t as Ae, a as De, p as ie, b as Le, o as ze, e as q, d as Be, X as Ve, f as S, i as J, x as ce, q as Ye, r as Xe, y as Ge } from "./index-fMHmzYJu.js";
1
+ import { computed as d, ref as u, onMounted as Pe, onBeforeUnmount as Oe, watch as Ie, openBlock as s, createElementBlock as n, normalizeClass as L, normalizeStyle as z, createVNode as j, createCommentVNode as b, createBlock as Y, unref as v, createSlots as Me, withCtx as h, renderSlot as g, normalizeProps as B, guardReactiveProps as V, Fragment as M, renderList as F, createElementVNode as C, toDisplayString as T, createTextVNode as Fe, nextTick as Se } from "vue";
2
+ import { u as Ne, c as Re, t as Ae, a as De, p as ie, b as Le, o as ze, e as q, d as Ye, X as Be, f as S, i as J, x as ce, q as Ve, r as Xe, y as Ge } from "./index-b22AFna7.js";
3
3
  import { t as Ue, u as Ee } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as He } from "./Title-BxitYokc.js";
5
- import { u as We, U as je } from "./usePrinter-BEVwOH5x.js";
6
- import { L as qe } from "./Legend-C2DZGZN5.js";
7
- import { D as Je } from "./DataTable-CzvZIRDs.js";
8
- import { _ as Ke } from "./Tooltip-DTntJRyb.js";
9
- import Qe from "./vue-ui-skeleton-DiJmBrEY.js";
10
- import Ze from "./vue-ui-accordion-CVzTuENA.js";
11
- import { u as de } from "./useNestedProp-lzTC0cjC.js";
4
+ import { _ as He } from "./Title-CzxknLI3.js";
5
+ import { u as We, U as je } from "./usePrinter-C_wOlUXy.js";
6
+ import { L as qe } from "./Legend-Cpk8DCWi.js";
7
+ import { D as Je } from "./DataTable-Bwco5wF0.js";
8
+ import { _ as Ke } from "./Tooltip-DYVjAqo-.js";
9
+ import Qe from "./vue-ui-skeleton-c0TzbjC0.js";
10
+ import Ze from "./vue-ui-accordion-H9MtAuZL.js";
11
+ import { u as de } from "./useNestedProp-6FL791Qt.js";
12
12
  import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ot = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], rt = ["id"], st = ["stdDeviation"], ut = ["filter"], nt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], it = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], ct = { key: 1 }, dt = ["onMouseenter"], vt = ["x", "y", "font-size", "fill", "font-weight"], ht = {
14
14
  key: 3,
@@ -31,7 +31,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
31
31
  },
32
32
  emits: ["selectLegend"],
33
33
  setup(ve, { expose: he, emit: fe }) {
34
- const w = ve, { vue_ui_onion: ge } = Ne(), M = d(() => !!w.dataset && w.dataset.length), x = u(Re()), pe = u(null), K = u(0), N = u(!1), Y = u(""), g = u([]), _ = u(null), Q = u(null), Z = u(null), e = d(() => {
34
+ const w = ve, { vue_ui_onion: ge } = Ne(), N = d(() => !!w.dataset && w.dataset.length), x = u(Re()), pe = u(null), K = u(0), R = u(!1), X = u(""), p = u([]), _ = u(null), Q = u(null), Z = u(null), e = d(() => {
35
35
  const a = de({
36
36
  userConfig: w.config,
37
37
  defaultConfig: ge
@@ -59,7 +59,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
59
59
  bottom: 64
60
60
  },
61
61
  minRadius: 64
62
- }), R = u(null);
62
+ }), A = u(null);
63
63
  Pe(() => {
64
64
  if (ze(w.dataset) && q({
65
65
  componentName: "VueUiOnion",
@@ -73,10 +73,10 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
73
73
  });
74
74
  r.value.width = t, r.value.height = l, r.value.padding.top = Math.max(t, l) * 0.125, r.value.padding.right = Math.max(t, l) * 0.125, r.value.padding.bottom = Math.max(t, l) * 0.125, r.value.padding.left = Math.max(t, l) * 0.125, r.value.minRadius = Math.min(t, l) * 0.125;
75
75
  });
76
- R.value = new ResizeObserver(o), R.value.observe(_.value.parentNode);
76
+ A.value = new ResizeObserver(o), A.value.observe(_.value.parentNode);
77
77
  }
78
78
  }), Oe(() => {
79
- R.value && R.value.disconnect();
79
+ A.value && A.value.disconnect();
80
80
  });
81
81
  const i = d(() => ({
82
82
  top: r.value.padding.top,
@@ -107,23 +107,23 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
107
107
  ...a,
108
108
  percentage: a.percentage || 0,
109
109
  targetPercentage: a.percentage || 0,
110
- color: Be(a.color) || ye.value[o] || ie[o],
110
+ color: Ye(a.color) || ye.value[o] || ie[o],
111
111
  id: t,
112
112
  shape: "circle",
113
- opacity: g.value.includes(t) ? 0.5 : 1,
113
+ opacity: p.value.includes(t) ? 0.5 : 1,
114
114
  absoluteIndex: o,
115
115
  segregate: () => oe(t),
116
- isSegregated: g.value.includes(t)
116
+ isSegregated: p.value.includes(t)
117
117
  };
118
- }))), P = u(c.value), me = d(() => e.value.useStartAnimation), be = u(null), ke = d(() => Math.max(...c.value.map((a) => a.percentage))), X = u(!1);
118
+ }))), P = u(c.value), me = d(() => e.value.useStartAnimation), be = u(null), ke = d(() => Math.max(...c.value.map((a) => a.percentage))), G = u(!1);
119
119
  Ie(() => c.value, we, { immediate: !0 });
120
120
  function we() {
121
- if (me.value && !X.value) {
121
+ if (me.value && !G.value) {
122
122
  let o = function() {
123
- a >= ke.value ? (cancelAnimationFrame(be.value), P.value = c.value, X.value = !0) : (P.value = c.value.map((t) => ({
123
+ a >= ke.value ? (cancelAnimationFrame(be.value), P.value = c.value, G.value = !0) : (P.value = c.value.map((t) => ({
124
124
  ...t,
125
125
  percentage: a < t.targetPercentage ? a : t.targetPercentage
126
- })), a += 1, requestAnimationFrame(o), X.value = !0);
126
+ })), a += 1, requestAnimationFrame(o), G.value = !0);
127
127
  };
128
128
  P.value = c.value.map((t) => ({
129
129
  ...t,
@@ -141,13 +141,13 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
141
141
  fontSize: e.value.style.chart.legend.fontSize,
142
142
  paddingBottom: 12,
143
143
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
144
- })), xe = d(() => c.value.filter((a) => !g.value.includes(a.id)).length), $ = d(() => {
144
+ })), xe = d(() => c.value.filter((a) => !p.value.includes(a.id)).length), $ = d(() => {
145
145
  const a = Math.min(i.value.width, i.value.height) / 2 / c.value.length;
146
146
  return {
147
147
  gutter: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.gutter.width,
148
148
  track: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.track.width
149
149
  };
150
- }), p = d(() => P.value.filter((a) => !g.value.includes(a.id)).map((a, o) => {
150
+ }), y = d(() => P.value.filter((a) => !p.value.includes(a.id)).map((a, o) => {
151
151
  const t = (i.value.maxRadius - $.value.track) / xe.value / 2 * (1 + o), l = i.value.centerY - t;
152
152
  return {
153
153
  percentage: a.percentage || 0,
@@ -158,31 +158,35 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
158
158
  };
159
159
  }));
160
160
  function Ce(a, o) {
161
- const t = a * (1.5 + (o / 100 > 0.3333333333333333 ? 0 : 1 - o / 100)) * Math.PI, l = a * 1.5 * Math.PI;
161
+ const t = 2 * Math.PI * a, l = t * 0.75, f = `${l} ${t}`, I = l * (1 - o / 100);
162
162
  return {
163
- bgDashArray: `${l} ${l}`,
164
- bgDashOffset: l - o / 100 * l,
165
- dashArray: `${t} ${t}`,
166
- dashOffset: t - o / 100 * t,
163
+ bgDashArray: `${l} ${t}`,
164
+ bgDashOffset: 0,
165
+ dashArray: f,
166
+ dashOffset: I,
167
167
  fullOffset: 0,
168
- active: `M${i.value.centerX},${i.value.centerY} A ${a},${a} 0 0 0 ${i.value.right},${i.value.top}`
168
+ active: `
169
+ M ${i.value.centerX},${i.value.centerY - a}
170
+ A ${a},${a} 0 1 1
171
+ ${i.value.centerX + a * Math.cos(Math.PI * 3 / 4)},${i.value.centerY + a * Math.sin(Math.PI * 3 / 4)}
172
+ `.trim()
169
173
  };
170
174
  }
171
175
  function oe(a) {
172
- g.value.includes(a) ? g.value = g.value.filter((o) => o !== a) : g.value.push(a), fe("selectLegend", p.value);
176
+ p.value.includes(a) ? p.value = p.value.filter((o) => o !== a) : p.value.push(a), fe("selectLegend", y.value);
173
177
  }
174
178
  function Te() {
175
- return p.value;
179
+ return y.value;
176
180
  }
177
- const G = d(() => {
178
- const a = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = p.value.map((t) => [
181
+ const U = d(() => {
182
+ const a = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = y.value.map((t) => [
179
183
  t.name,
180
184
  t.percentage,
181
185
  t.value
182
186
  ]);
183
187
  return { head: a, body: o };
184
- }), A = d(() => {
185
- const a = G.value.head, o = p.value.map((l) => [
188
+ }), D = d(() => {
189
+ const a = U.value.head, o = y.value.map((l) => [
186
190
  `<span style="color:${l.color}">⬤</span> ${l.name}`,
187
191
  `${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
188
192
  `${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
@@ -202,33 +206,33 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
202
206
  return { head: a, body: o, config: t, colNames: a };
203
207
  });
204
208
  function re() {
205
- Me(() => {
206
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = G.value.head, t = G.value.body, l = a.concat([o]).concat(t), m = Ye(l);
207
- Xe({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-onion" });
209
+ Se(() => {
210
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = U.value.head, t = U.value.body, l = a.concat([o]).concat(t), f = Ve(l);
211
+ Xe({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-onion" });
208
212
  });
209
213
  }
210
- const y = u(void 0), O = u(!1);
214
+ const m = u(void 0), O = u(!1);
211
215
  function _e(a) {
212
216
  O.value = a, K.value += 1;
213
217
  }
214
- const U = u(null);
218
+ const E = u(null);
215
219
  function se({ datapoint: a, seriesIndex: o, show: t = !0 }) {
216
220
  const l = a.absoluteIndex;
217
- y.value = o, U.value = {
221
+ m.value = o, E.value = {
218
222
  datapoint: a,
219
223
  seriesIndex: l,
220
224
  series: c.value,
221
225
  config: e.value
222
- }, N.value = t;
223
- let m = "";
224
- const E = e.value.style.chart.tooltip.customFormat;
225
- if (ce(E) && Ge(() => E({
226
+ }, R.value = t;
227
+ let f = "";
228
+ const I = e.value.style.chart.tooltip.customFormat;
229
+ if (ce(I) && Ge(() => I({
226
230
  seriesIndex: l,
227
231
  datapoint: a,
228
232
  series: c.value,
229
233
  config: e.value
230
234
  })))
231
- Y.value = E({
235
+ X.value = I({
232
236
  seriesIndex: l,
233
237
  datapoint: a,
234
238
  series: c.value,
@@ -236,7 +240,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
236
240
  });
237
241
  else {
238
242
  const H = e.value.style.chart.tooltip.showPercentage, W = e.value.style.chart.tooltip.showValue;
239
- m += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`, m += `<div style="width:100%;text-align:left;"><b>${H ? S({ p: "", v: a.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${H && W ? "(" : ""}${W ? J(
243
+ f += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`, f += `<div style="width:100%;text-align:left;"><b>${H ? S({ p: "", v: a.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${H && W ? "(" : ""}${W ? J(
240
244
  e.value.style.chart.layout.labels.value.formatter,
241
245
  a.value,
242
246
  S({
@@ -246,7 +250,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
246
250
  r: e.value.style.chart.tooltip.roundingValue
247
251
  }),
248
252
  { datapoint: a, seriesIndex: o }
249
- ) : ""}${H && W ? ")" : ""}</div>`, Y.value = `<div>${m}</div>`;
253
+ ) : ""}${H && W ? ")" : ""}</div>`, X.value = `<div>${f}</div>`;
250
254
  }
251
255
  }
252
256
  function ue() {
@@ -263,17 +267,17 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
263
267
  toggleTable: ue,
264
268
  toggleTooltip: ne
265
269
  }), (a, o) => (s(), n("div", {
266
- class: D(`vue-ui-onion ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
270
+ class: L(`vue-ui-onion ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
267
271
  ref_key: "onionChart",
268
272
  ref: _,
269
273
  id: `vue-ui-onion_${x.value}`,
270
- style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`)
274
+ style: z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`)
271
275
  }, [
272
276
  e.value.style.chart.title.text ? (s(), n("div", {
273
277
  key: 0,
274
278
  ref_key: "chartTitle",
275
279
  ref: Q,
276
- style: L(`width:100%;background:${e.value.style.chart.backgroundColor}`)
280
+ style: z(`width:100%;background:${e.value.style.chart.backgroundColor}`)
277
281
  }, [
278
282
  j(He, {
279
283
  config: {
@@ -288,7 +292,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
288
292
  }
289
293
  }, null, 8, ["config"])
290
294
  ], 4)) : b("", !0),
291
- e.value.userOptions.show && M.value ? (s(), z(je, {
295
+ e.value.userOptions.show && N.value ? (s(), Y(je, {
292
296
  ref_key: "details",
293
297
  ref: pe,
294
298
  key: `user_options${K.value}`,
@@ -313,58 +317,58 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
313
317
  onGenerateImage: v(le),
314
318
  onToggleTable: ue,
315
319
  onToggleTooltip: ne
316
- }, Fe({ _: 2 }, [
320
+ }, Me({ _: 2 }, [
317
321
  a.$slots.optionTooltip ? {
318
322
  name: "optionTooltip",
319
323
  fn: h(() => [
320
- f(a.$slots, "optionTooltip", {}, void 0, !0)
324
+ g(a.$slots, "optionTooltip", {}, void 0, !0)
321
325
  ]),
322
326
  key: "0"
323
327
  } : void 0,
324
328
  a.$slots.optionPdf ? {
325
329
  name: "optionPdf",
326
330
  fn: h(() => [
327
- f(a.$slots, "optionPdf", {}, void 0, !0)
331
+ g(a.$slots, "optionPdf", {}, void 0, !0)
328
332
  ]),
329
333
  key: "1"
330
334
  } : void 0,
331
335
  a.$slots.optionCsv ? {
332
336
  name: "optionCsv",
333
337
  fn: h(() => [
334
- f(a.$slots, "optionCsv", {}, void 0, !0)
338
+ g(a.$slots, "optionCsv", {}, void 0, !0)
335
339
  ]),
336
340
  key: "2"
337
341
  } : void 0,
338
342
  a.$slots.optionImg ? {
339
343
  name: "optionImg",
340
344
  fn: h(() => [
341
- f(a.$slots, "optionImg", {}, void 0, !0)
345
+ g(a.$slots, "optionImg", {}, void 0, !0)
342
346
  ]),
343
347
  key: "3"
344
348
  } : void 0,
345
349
  a.$slots.optionTable ? {
346
350
  name: "optionTable",
347
351
  fn: h(() => [
348
- f(a.$slots, "optionTable", {}, void 0, !0)
352
+ g(a.$slots, "optionTable", {}, void 0, !0)
349
353
  ]),
350
354
  key: "4"
351
355
  } : void 0,
352
356
  a.$slots.optionFullscreen ? {
353
357
  name: "optionFullscreen",
354
358
  fn: h(({ toggleFullscreen: t, isFullscreen: l }) => [
355
- f(a.$slots, "optionFullscreen", B(V({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
359
+ g(a.$slots, "optionFullscreen", B(V({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
356
360
  ]),
357
361
  key: "5"
358
362
  } : void 0
359
363
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
360
- M.value ? (s(), n("svg", {
364
+ N.value ? (s(), n("svg", {
361
365
  key: 2,
362
- xmlns: v(Ve),
363
- class: D({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
366
+ xmlns: v(Be),
367
+ class: L({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
364
368
  viewBox: `0 0 ${r.value.width <= 0 ? 1e-4 : r.value.width} ${r.value.height <= 0 ? 1e-4 : r.value.height}`,
365
- style: L(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
369
+ style: z(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
366
370
  }, [
367
- (s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
371
+ (s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
368
372
  cx: i.value.centerX,
369
373
  cy: i.value.centerY,
370
374
  r: t.radius <= 0 ? 1e-4 : t.radius,
@@ -374,10 +378,10 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
374
378
  "stroke-dasharray": t.path.bgDashArray,
375
379
  "stroke-dashoffset": t.path.fullOffset,
376
380
  "stroke-linecap": "round",
377
- class: D({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(y.value) && y.value !== l }),
381
+ class: L({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value !== l }),
378
382
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
379
383
  }, null, 10, lt))), 256)),
380
- (s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
384
+ (s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
381
385
  cx: i.value.centerX,
382
386
  cy: i.value.centerY,
383
387
  r: t.radius < 0 ? 1e-4 : t.radius,
@@ -386,7 +390,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
386
390
  fill: "none",
387
391
  "stroke-dasharray": t.path.dashArray,
388
392
  "stroke-dashoffset": t.path.dashOffset,
389
- class: D({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(y.value) && y.value !== l }),
393
+ class: L({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value !== l }),
390
394
  "stroke-linecap": "round",
391
395
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
392
396
  }, null, 10, ot))), 256)),
@@ -408,7 +412,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
408
412
  key: 0,
409
413
  filter: `url(#blur_${x.value})`
410
414
  }, [
411
- (s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
415
+ (s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
412
416
  cx: i.value.centerX,
413
417
  cy: i.value.centerY,
414
418
  r: t.radius <= 0 ? 1e-4 : t.radius,
@@ -421,7 +425,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
421
425
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
422
426
  }, null, 8, nt))), 256))
423
427
  ], 8, ut)) : b("", !0),
424
- (s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
428
+ (s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
425
429
  "data-cy-trap": "",
426
430
  cx: i.value.centerX,
427
431
  cy: i.value.centerY,
@@ -434,33 +438,33 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
434
438
  "stroke-linecap": "round",
435
439
  class: "vue-ui-onion-path",
436
440
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
437
- onMouseenter: (m) => se({
441
+ onMouseenter: (f) => se({
438
442
  datapoint: t,
439
443
  show: !0,
440
444
  seriesIndex: l
441
445
  }),
442
- onMouseleave: o[0] || (o[0] = (m) => {
443
- y.value = void 0, N.value = !1;
446
+ onMouseleave: o[0] || (o[0] = (f) => {
447
+ m.value = void 0, R.value = !1;
444
448
  })
445
449
  }, null, 40, it))), 256)),
446
450
  e.value.style.chart.layout.labels.show ? (s(), n("g", ct, [
447
- (s(!0), n(I, null, F(p.value, (t, l) => (s(), n("g", {
448
- onMouseenter: (m) => se({
451
+ (s(!0), n(M, null, F(y.value, (t, l) => (s(), n("g", {
452
+ onMouseenter: (f) => se({
449
453
  datapoint: t,
450
454
  show: !0,
451
455
  seriesIndex: l
452
456
  }),
453
- onMouseleave: o[1] || (o[1] = (m) => {
454
- y.value = void 0, N.value = !1;
457
+ onMouseleave: o[1] || (o[1] = (f) => {
458
+ m.value = void 0, R.value = !1;
455
459
  })
456
460
  }, [
457
- g.value.includes(t.id) ? b("", !0) : (s(), n("text", {
461
+ p.value.includes(t.id) ? b("", !0) : (s(), n("text", {
458
462
  key: 0,
459
463
  x: r.value.width / 2 - $.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
460
464
  y: t.labelY + e.value.style.chart.layout.labels.offsetY,
461
465
  "text-anchor": "end",
462
466
  "font-size": e.value.style.chart.layout.labels.fontSize,
463
- fill: e.value.useBlurOnHover && ![null, void 0].includes(y.value) && y.value === l ? t.color : e.value.style.chart.layout.labels.color,
467
+ fill: e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value === l ? t.color : e.value.style.chart.layout.labels.color,
464
468
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
465
469
  }, T(t.name ? t.name + ": " : "") + " " + T(e.value.style.chart.layout.labels.percentage.show ? v(S)({
466
470
  v: t.percentage,
@@ -489,12 +493,12 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
489
493
  )})` : ""}`), 9, vt))
490
494
  ], 40, dt))), 256))
491
495
  ])) : b("", !0),
492
- f(a.$slots, "svg", { svg: r.value }, void 0, !0)
496
+ g(a.$slots, "svg", { svg: r.value }, void 0, !0)
493
497
  ], 14, at)) : b("", !0),
494
498
  a.$slots.watermark ? (s(), n("div", ht, [
495
- f(a.$slots, "watermark", B(V({ isPrinting: v(ee) || v(te) })), void 0, !0)
499
+ g(a.$slots, "watermark", B(V({ isPrinting: v(ee) || v(te) })), void 0, !0)
496
500
  ])) : b("", !0),
497
- M.value ? b("", !0) : (s(), z(Qe, {
501
+ N.value ? b("", !0) : (s(), Y(Qe, {
498
502
  key: 4,
499
503
  config: {
500
504
  type: "onion",
@@ -510,7 +514,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
510
514
  ref_key: "chartLegend",
511
515
  ref: Z
512
516
  }, [
513
- e.value.style.chart.legend.show ? (s(), z(qe, {
517
+ e.value.style.chart.legend.show ? (s(), Y(qe, {
514
518
  key: 0,
515
519
  legendSet: c.value,
516
520
  config: $e.value,
@@ -520,17 +524,17 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
520
524
  C("div", {
521
525
  "data-cy-legend-item": "",
522
526
  onClick: (l) => t.segregate(),
523
- style: L(`opacity:${g.value.includes(t.id) ? 0.5 : 1}`)
527
+ style: z(`opacity:${p.value.includes(t.id) ? 0.5 : 1}`)
524
528
  }, T(t.name ? t.name + ": " : "") + " " + T((t.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, ft)
525
529
  ]),
526
530
  _: 1
527
- }, 8, ["legendSet", "config"])) : f(a.$slots, "legend", {
531
+ }, 8, ["legendSet", "config"])) : g(a.$slots, "legend", {
528
532
  key: 1,
529
533
  legend: c.value
530
534
  }, void 0, !0)
531
535
  ], 512),
532
536
  j(Ke, {
533
- show: k.value.showTooltip && N.value,
537
+ show: k.value.showTooltip && R.value,
534
538
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
535
539
  color: e.value.style.chart.tooltip.color,
536
540
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -541,18 +545,18 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
541
545
  position: e.value.style.chart.tooltip.position,
542
546
  offsetY: e.value.style.chart.tooltip.offsetY,
543
547
  parent: _.value,
544
- content: Y.value,
548
+ content: X.value,
545
549
  isCustom: v(ce)(e.value.style.chart.tooltip.customFormat)
546
550
  }, {
547
551
  "tooltip-before": h(() => [
548
- f(a.$slots, "tooltip-before", B(V({ ...U.value })), void 0, !0)
552
+ g(a.$slots, "tooltip-before", B(V({ ...E.value })), void 0, !0)
549
553
  ]),
550
554
  "tooltip-after": h(() => [
551
- f(a.$slots, "tooltip-after", B(V({ ...U.value })), void 0, !0)
555
+ g(a.$slots, "tooltip-after", B(V({ ...E.value })), void 0, !0)
552
556
  ]),
553
557
  _: 3
554
558
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
555
- M.value ? (s(), z(Ze, {
559
+ N.value ? (s(), Y(Ze, {
556
560
  key: 5,
557
561
  hideDetails: "",
558
562
  config: {
@@ -570,15 +574,15 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
570
574
  }, {
571
575
  content: h(() => [
572
576
  j(Je, {
573
- colNames: A.value.colNames,
574
- head: A.value.head,
575
- body: A.value.body,
576
- config: A.value.config,
577
+ colNames: D.value.colNames,
578
+ head: D.value.head,
579
+ body: D.value.body,
580
+ config: D.value.config,
577
581
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
578
582
  onClose: o[3] || (o[3] = (t) => k.value.showTable = !1)
579
583
  }, {
580
584
  th: h(({ th: t }) => [
581
- Se(T(t), 1)
585
+ Fe(T(t), 1)
582
586
  ]),
583
587
  td: h(({ td: t }) => [
584
588
  C("div", { innerHTML: t }, null, 8, gt)
@@ -590,7 +594,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
590
594
  }, 8, ["config"])) : b("", !0)
591
595
  ], 14, tt));
592
596
  }
593
- }, It = /* @__PURE__ */ et(pt, [["__scopeId", "data-v-92cdbc16"]]);
597
+ }, It = /* @__PURE__ */ et(pt, [["__scopeId", "data-v-74ab3911"]]);
594
598
  export {
595
599
  It as default
596
600
  };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DDwHKEGb.cjs"),X=require("./useResponsive-B3TrDDIG.cjs"),se=require("./Title-B6PVw0aK.cjs"),U=require("./usePrinter-CRKoRqbE.cjs"),ie=require("./Legend-CTlJpdAi.cjs"),ce=require("./DataTable-DkoeHXI5.cjs"),de=require("./Tooltip-Ci47DnuY.cjs"),ve=require("./vue-ui-skeleton-BeqLQi6X.cjs"),he=require("./vue-ui-accordion-BBDPcl3d.cjs"),G=require("./useNestedProp-BbpR9SM4.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=["id"],ge=["xmlns","viewBox"],me=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],ye=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],be=["id"],ke=["stdDeviation"],we=["filter"],Ce=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"],xe=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset","onMouseenter"],$e={key:1},Be=["onMouseenter"],Te=["x","y","font-size","fill","font-weight"],Se={key:3,class:"vue-data-ui-watermark"},Pe=["onClick"],_e=["innerHTML"],Ne={__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(H,{expose:W,emit:j}){const f=H,{vue_ui_onion:J}=u.useConfig(),C=e.computed(()=>!!f.dataset&&f.dataset.length),m=e.ref(u.createUid()),K=e.ref(null),F=e.ref(0),x=e.ref(!1),T=e.ref(""),d=e.ref([]),y=e.ref(null),I=e.ref(null),V=e.ref(null),t=e.computed(()=>{const a=G.useNestedProp({userConfig:f.config,defaultConfig:J});return a.theme?{...G.useNestedProp({userConfig:u.themes.vue_ui_onion[a.theme]||f.config,defaultConfig:a}),customPalette:u.themePalettes[a.theme]||u.palette}:a}),{isPrinting:E,isImaging:L,generatePdf:M,generateImage:D}=U.usePrinter({elementId:`vue-ui-onion_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-onion"}),Q=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),p=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:512,width:512,padding:{top:64,left:64,right:64,bottom:64},minRadius:64}),$=e.ref(null);e.onMounted(()=>{if(u.objectIsEmpty(f.dataset)&&u.error({componentName:"VueUiOnion",type:"dataset"}),t.value.responsive){const r=X.throttle(()=>{const{width:l,height:o}=X.useResponsive({chart:y.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?V.value:null});n.value.width=l,n.value.height=o,n.value.padding.top=Math.max(l,o)*.125,n.value.padding.right=Math.max(l,o)*.125,n.value.padding.bottom=Math.max(l,o)*.125,n.value.padding.left=Math.max(l,o)*.125,n.value.minRadius=Math.min(l,o)*.125});$.value=new ResizeObserver(r),$.value.observe(y.value.parentNode)}}),e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const s=e.computed(()=>({top:n.value.padding.top,left:n.value.padding.left,right:n.value.width-n.value.padding.right,bottom:n.value.height-n.value.padding.bottom,centerX:n.value.width/2,centerY:n.value.height/2,width:n.value.width-n.value.padding.right-n.value.padding.left,height:n.value.height-n.value.padding.bottom-n.value.padding.top,minRadius:n.value.minRadius,maxRadius:Math.min(n.value.width,n.value.height)-n.value.padding.top*2})),i=e.computed(()=>(f.dataset.forEach((a,r)=>{[null,void 0].includes(a.name)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"name",index:r}),[void 0].includes(a.percentage)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"percentage",index:r})}),f.dataset.map((a,r)=>{const l=`onion_serie_${r}_${m.value}`;return{...a,percentage:a.percentage||0,targetPercentage:a.percentage||0,color:u.convertColorToHex(a.color)||Q.value[r]||u.palette[r],id:l,shape:"circle",opacity:d.value.includes(l)?.5:1,absoluteIndex:r,segregate:()=>R(l),isSegregated:d.value.includes(l)}}))),b=e.ref(i.value),Z=e.computed(()=>t.value.useStartAnimation),ee=e.ref(null),te=e.computed(()=>Math.max(...i.value.map(a=>a.percentage))),S=e.ref(!1);e.watch(()=>i.value,le,{immediate:!0});function le(){if(Z.value&&!S.value){let r=function(){a>=te.value?(cancelAnimationFrame(ee.value),b.value=i.value,S.value=!0):(b.value=i.value.map(l=>({...l,percentage:a<l.targetPercentage?a:l.targetPercentage})),a+=1,requestAnimationFrame(r),S.value=!0)};b.value=i.value.map(l=>({...l,percentage:0}));let a=0;r()}else b.value=i.value}const ae=e.computed(()=>({cy:"onion-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":""})),oe=e.computed(()=>i.value.filter(a=>!d.value.includes(a.id)).length),g=e.computed(()=>{const a=Math.min(s.value.width,s.value.height)/2/i.value.length;return{gutter:(a>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:a)*t.value.style.chart.layout.gutter.width,track:(a>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:a)*t.value.style.chart.layout.track.width}}),v=e.computed(()=>b.value.filter(a=>!d.value.includes(a.id)).map((a,r)=>{const l=(s.value.maxRadius-g.value.track)/oe.value/2*(1+r),o=s.value.centerY-l;return{percentage:a.percentage||0,...a,labelY:o,radius:l,path:re(l,a.percentage||0)}}));function re(a,r){const l=2*Math.PI*a,o=l*.75,c=`${o} ${l}`,w=o*(1-r/100);return{bgDashArray:`${o} ${l}`,bgDashOffset:0,dashArray:c,dashOffset:w,fullOffset:0,active:`
2
+ M ${s.value.centerX},${s.value.centerY-a}
3
+ A ${a},${a} 0 1 1
4
+ ${s.value.centerX+a*Math.cos(Math.PI*3/4)},${s.value.centerY+a*Math.sin(Math.PI*3/4)}
5
+ `.trim()}}function R(a){d.value.includes(a)?d.value=d.value.filter(r=>r!==a):d.value.push(a),j("selectLegend",v.value)}function ne(){return v.value}const P=e.computed(()=>{const a=[t.value.table.translations.serie,t.value.table.translations.percentage,t.value.table.translations.value],r=v.value.map(l=>[l.name,l.percentage,l.value]);return{head:a,body:r}}),B=e.computed(()=>{const a=P.value.head,r=v.value.map(o=>[`<span style="color:${o.color}">⬤</span> ${o.name}`,`${Number(o.percentage??0).toFixed(t.value.table.td.roundingPercentage).toLocaleString()}%`,`${o.prefix||""}${[null,void 0,NaN,"NaN"].includes(o.value)?"-":o.value.toFixed(t.value.table.td.roundingValue).toLocaleString()}${o.suffix||""}`]),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:a,body:r,config:l,colNames:a}});function z(){e.nextTick(()=>{const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],r=P.value.head,l=P.value.body,o=a.concat([r]).concat(l),c=u.createCsvContent(o);u.downloadCsv({csvContent:c,title:t.value.style.chart.title.text||"vue-ui-onion"})})}const h=e.ref(void 0),k=e.ref(!1);function ue(a){k.value=a,F.value+=1}const _=e.ref(null);function A({datapoint:a,seriesIndex:r,show:l=!0}){const o=a.absoluteIndex;h.value=r,_.value={datapoint:a,seriesIndex:o,series:i.value,config:t.value},x.value=l;let c="";const w=t.value.style.chart.tooltip.customFormat;if(u.isFunction(w)&&u.functionReturnsString(()=>w({seriesIndex:o,datapoint:a,series:i.value,config:t.value})))T.value=w({seriesIndex:o,datapoint:a,series:i.value,config:t.value});else{const N=t.value.style.chart.tooltip.showPercentage,O=t.value.style.chart.tooltip.showValue;c+=`<div style="width: 100%; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`,c+=`<div style="width:100%;text-align:left;"><b>${N?u.dataLabel({p:"",v:a.percentage,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}):""}</b> ${N&&O?"(":""}${O?u.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,a.value,u.dataLabel({p:a.prefix||"",v:a.value,s:a.suffix||"",r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:r}):""}${N&&O?")":""}</div>`,T.value=`<div>${c}</div>`}}function Y(){p.value.showTable=!p.value.showTable}function q(){p.value.showTooltip=!p.value.showTooltip}return W({getData:ne,generatePdf:M,generateCsv:z,generateImage:D,toggleTable:Y,toggleTooltip:q}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-onion ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"onionChart",ref:y,id:`vue-ui-onion_${m.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}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:I,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`)},[e.createVNode(se._sfc_main,{config:{title:{cy:"onion-div-title",...t.value.style.chart.title},subtitle:{cy:"onion-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value?(e.openBlock(),e.createBlock(U.UserOptions,{ref_key:"details",ref:K,key:`user_options${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(L),isPrinting:e.unref(E),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:k.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(M),onGenerateCsv:z,onGenerateImage:e.unref(D),onToggleTable:Y,onToggleTooltip:q},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),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),C.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${n.value.width<=0?1e-4:n.value.width} ${n.value.height<=0?1e-4:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:l.radius<=0?1e-4:l.radius,stroke:t.value.style.chart.layout.gutter.color,"stroke-width":g.value.gutter,fill:"none","stroke-dasharray":l.path.bgDashArray,"stroke-dashoffset":l.path.fullOffset,"stroke-linecap":"round",class:e.normalizeClass({"vue-ui-onion-path":!0,"vue-ui-onion-blur":t.value.useBlurOnHover&&![null,void 0].includes(h.value)&&h.value!==o}),style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:l.radius<0?1e-4:l.radius,stroke:`${l.color}`,"stroke-width":g.value.track,fill:"none","stroke-dasharray":l.path.dashArray,"stroke-dashoffset":l.path.dashOffset,class:e.normalizeClass({"vue-ui-onion-path":!0,"vue-ui-onion-blur":t.value.useBlurOnHover&&![null,void 0].includes(h.value)&&h.value!==o}),"stroke-linecap":"round",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,10,ye))),256)),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.gradientIntensity},null,8,ke)],8,be)]),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",{key:0,filter:`url(#blur_${m.value})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.value.centerX,cy:s.value.centerY,r:l.radius<=0?1e-4:l.radius,stroke:"white","stroke-width":g.value.track/3,fill:"none","stroke-linecap":"round","stroke-dasharray":l.path.dashArray,"stroke-dashoffset":l.path.dashOffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,Ce))),256))],8,we)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{"data-cy-trap":"",cx:s.value.centerX,cy:s.value.centerY,r:l.radius<=0?1e-4:l.radius,stroke:"transparent","stroke-width":Math.max(g.value.track,g.value.gutter),fill:"none","stroke-dasharray":l.path.bgDashArray,"stroke-dashoffset":l.path.fullOffset,"stroke-linecap":"round",class:"vue-ui-onion-path",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"},onMouseenter:c=>A({datapoint:l,show:!0,seriesIndex:o}),onMouseleave:r[0]||(r[0]=c=>{h.value=void 0,x.value=!1})},null,40,xe))),256)),t.value.style.chart.layout.labels.show?(e.openBlock(),e.createElementBlock("g",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("g",{onMouseenter:c=>A({datapoint:l,show:!0,seriesIndex:o}),onMouseleave:r[1]||(r[1]=c=>{h.value=void 0,x.value=!1})},[d.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,x:n.value.width/2-g.value.gutter*.8+t.value.style.chart.layout.labels.offsetX,y:l.labelY+t.value.style.chart.layout.labels.offsetY,"text-anchor":"end","font-size":t.value.style.chart.layout.labels.fontSize,fill:t.value.useBlurOnHover&&![null,void 0].includes(h.value)&&h.value===o?l.color:t.value.style.chart.layout.labels.color,"font-weight":t.value.style.chart.layout.labels.bold?"bold":"normal"},e.toDisplayString(l.name?l.name+": ":"")+" "+e.toDisplayString(t.value.style.chart.layout.labels.percentage.show?e.unref(u.dataLabel)({v:l.percentage,s:"%",r:t.value.style.chart.layout.labels.roundingPercentage}):"")+" "+e.toDisplayString(!t.value.style.chart.layout.labels.percentage.show&&t.value.style.chart.layout.labels.value.show?`: ${e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(u.dataLabel)({p:l.prefix||"",v:l.value||0,s:l.suffix||"",r:t.value.style.chart.layout.labels.roundingValue}),{datapoint:l,seriesIndex:o})}`:`${t.value.style.chart.layout.labels.value.show&&l.value?`(${e.unref(u.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(u.dataLabel)({p:l.prefix||"",v:l.value||0,s:l.suffix||"",r:t.value.style.chart.layout.labels.roundingValue}),{datapoint:l,seriesIndex:o})})`:""}`),9,Te))],40,Be))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(E)||e.unref(L)})),void 0,!0)])):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:4,config:{type:"onion",style:{backgroundColor:t.value.style.chart.backgroundColor,onion:{color:t.value.style.chart.layout.gutter.color}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:V},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(ie.Legend,{key:0,legendSet:i.value,config:ae.value,onClickMarker:r[2]||(r[2]=({legend:l})=>R(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:o=>l.segregate(),style:e.normalizeStyle(`opacity:${d.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name?l.name+": ":"")+" "+e.toDisplayString((l.percentage||0).toFixed(t.value.style.chart.legend.roundingPercentage))+"% ",13,Pe)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:i.value},void 0,!0)],512),e.createVNode(de._sfc_main,{show:p.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,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:y.value,content:T.value,isCustom:e.unref(u.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),C.value?(e.openBlock(),e.createBlock(he.default,{key:5,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(ce.DataTable,{colNames:B.value.colNames,head:B.value.head,body:B.value.body,config:B.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[3]||(r[3]=l=>p.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[e.createElementVNode("div",{innerHTML:l},null,8,_e)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,fe))}},Oe=pe._export_sfc(Ne,[["__scopeId","data-v-74ab3911"]]);exports.default=Oe;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-DnCegWge.cjs"),K=require("./useResponsive-B3TrDDIG.cjs"),de=require("./Title-BYDRRvqX.cjs"),ve=require("./Legend-CkIdFaKE.cjs"),he=require("./Tooltip-CtRqM9Sw.cjs"),pe=require("./Shape-BfT5b6-S.cjs"),Q=require("./usePrinter-C94KiYaY.cjs"),me=require("./DataTable-Dr67tL_4.cjs"),ye=require("./vue-ui-accordion-CG_G9ock.cjs"),fe=require("./vue-ui-skeleton-Cey15-vY.cjs"),Z=require("./useNestedProp-18FTwhUW.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be=["id"],ke=["xmlns","viewBox"],xe={style:{"pointer-events":"none"}},Ce=["x1","x2","y1","y2","stroke","stroke-width"],we=["x","y","fill","font-size","font-weight"],Be=["x1","x2","y1","y2","stroke","stroke-width"],ze=["x","y","fill","font-size","font-weight"],$e={key:0},Se=["x","y","font-size","fill"],Ne=["width","x","y"],Te={style:{width:"100%"}},Fe=["x","y","fill","font-weight","font-size","onMouseenter"],_e=["d","stroke","stroke-width","onMouseenter"],Pe={key:3,class:"vue-data-ui-watermark"},Ae=["onClick"],Me=["innerHTML"],Le={__name:"vue-ui-parallel-coordinate-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(ee,{expose:te,emit:M}){const k=ee,{vue_ui_parallel_coordinate_plot:le}=i.useConfig(),x=e.computed({get(){return!!k.dataset&&k.dataset.length},set(a){return a}}),L=e.ref(0),w=e.ref(null),E=e.ref(null),I=e.ref(null),N=e.ref(i.createUid()),B=e.ref(!1);function ae(a){B.value=a,L.value+=1}const t=e.computed(()=>{const a=Z.useNestedProp({userConfig:k.config,defaultConfig:le});return a.theme?{...Z.useNestedProp({userConfig:i.themes.vue_ui_parallel_coordinate_plot[a.theme]||k.config,defaultConfig:a}),customPalette:i.themePalettes[a.theme]||i.palette}:a}),$=e.ref(null);e.onMounted(()=>{if(i.objectIsEmpty(k.dataset)?i.error({componentName:"VueUiParallelCoordinatePlot",type:"dataset"}):k.dataset.forEach((a,o)=>{i.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","series"]}).forEach(l=>{x.value=!1,i.error({componentName:"VueUiParallelCoordinatePlot",type:"datasetSerieAttribute",property:l,index:o})})}),t.value.responsive){const a=K.throttle(()=>{const{width:o,height:l}=K.useResponsive({chart:w.value,title:t.value.style.chart.title.text?E.value:null,legend:t.value.style.chart.legend.show?I.value:null});c.value.width=o,c.value.height=l,c.value.plotSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.plots.radius,threshold:2,fallback:2}),c.value.ticksFontSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.yAxis.labels.ticks.fontSize,threshold:10,fallback:10}),c.value.datapointFontSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.yAxis.labels.datapoints.fontSize,threshold:10,fallback:10}),c.value.axisNameFontSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.yAxis.labels.axisNamesFontSize,threshold:12,fallback:12})});$.value=new ResizeObserver(a),$.value.observe(w.value.parentNode)}}),e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:V,isImaging:D,generatePdf:O,generateImage:q}=Q.usePrinter({elementId:`pcp_${N.value}`,fileName:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot"}),c=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width,plotSize:t.value.style.chart.plots.radius,ticksFontSize:t.value.style.chart.yAxis.labels.ticks.fontSize,datapointFontSize:t.value.style.chart.yAxis.labels.datapoints.fontSize,axisNameFontSize:t.value.style.chart.yAxis.labels.axisNamesFontSize}),d=e.computed(()=>{const{top:a,right:o,bottom:l,left:s}=t.value.style.chart.padding,r=c.value.height,n=c.value.width;return{chartHeight:r,chartWidth:n,height:r-a-l,width:n-s-o,top:a,left:s,right:n-o,bottom:r-l}}),oe=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),m=e.ref({dataLabels:{show:t.value.style.chart.yAxis.labels.datapoints.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),f=e.ref([]);function R(a){f.value.includes(a)?f.value=f.value.filter(o=>o!==a):f.value.push(a)}const b=e.computed(()=>k.dataset.map((a,o)=>{const l=i.convertColorToHex(a.color)||oe.value[o]||i.palette[o]||i.palette[o%i.palette.length];return{...a,series:a.series.map(s=>({...s,id:i.createUid(),color:l})),seriesIndex:o,color:l,id:i.createUid(),shape:a.shape||"circle"}})),se=e.computed(()=>b.value.map(a=>({...a,opacity:f.value.includes(a.id)?.5:1,segregate:()=>R(a.id),isSegregated:f.value.includes(a.id)}))),ne=e.computed(()=>({cy:"pcp-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":""})),U=e.computed(()=>Math.max(...b.value.filter(a=>!f.value.includes(a.id)).map(a=>Math.max(...a.series.flatMap(o=>o.values.length))))),y=e.computed(()=>d.value.width/U.value),T=e.computed(()=>b.value.filter(a=>!f.value.includes(a.id))),p=e.computed(()=>{let a=[];for(let o=0;o<U.value;o+=1){const l=Math.min(...T.value.flatMap(v=>v.series.map(S=>S.values[o]||0)||0)),s=Math.max(...T.value.flatMap(v=>v.series.map(S=>S.values[o]||0)||0)),r=s===l?l/4:l,n=s===l?s*2:s,u=i.calculateNiceScale(r,n,t.value.style.chart.yAxis.scaleTicks),g=u.ticks.map((v,S)=>{const ue=u.min<0?v+Math.abs(u.min):v-Math.abs(u.min),ce=u.min<0?u.max+Math.abs(u.min):u.max-Math.abs(u.min);return{y:d.value.bottom-d.value.height*(ue/ce),x:d.value.left+y.value*o+y.value/2,value:v}});a.push({scale:u,ticks:g,name:t.value.style.chart.yAxis.labels.axisNames[o]||`Y-${o+1}`})}return a}),F=e.computed(()=>T.value.map((a,o)=>({...a,series:a.series.map((l,s)=>({...l,datapoints:l.values.map((r,n)=>{const u=p.value[n].scale.min<0?(r||0)+Math.abs(p.value[n].scale.min):(r||0)-Math.abs(p.value[n].scale.min),g=p.value[n].scale.min<0?p.value[n].scale.max+Math.abs(p.value[n].scale.min):p.value[n].scale.max-Math.abs(p.value[n].scale.min);return{name:l.name,seriesName:a.name,axisIndex:n,datapointIndex:s,seriesIndex:o,value:r||0,x:d.value.left+y.value*n+y.value/2,y:d.value.bottom-d.value.height*(u/g),comment:l.comments&&l.comments[n]||""}})}))})).map(a=>({...a,series:a.series.map(o=>{const l=i.createStraightPath(o.datapoints),s=i.createSmoothPath(o.datapoints,.12),r=i.getPathLengthFromCoordinates(t.value.style.chart.lines.smooth?`M ${s}`:`M ${l}`);return{...o,smoothPath:s,straightPath:l,pathLength:r}})})));function W({value:a,index:o,datapoint:l}){return i.applyDataLabel(t.value.style.chart.yAxis.labels.formatters[o]||null,a,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[o]||"",v:a,s:t.value.style.chart.yAxis.labels.suffixes[o]||"",r:t.value.style.chart.yAxis.labels.roundings[o]||0}),{datapoint:l,seriesIndex:o})}const h=e.ref(null),_=e.ref(null),z=e.ref(!1),P=e.ref("");function A({shape:a,serieName:o,serie:l,relativeIndex:s,seriesIndex:r}){_.value={serie:l,relativeIndex:s,seriesIndex:r,series:b.value,scales:p.value},z.value=!0,h.value=l.id;let n="";const u=t.value.style.chart.tooltip.customFormat;i.isFunction(u)&&i.functionReturnsString(()=>u({serie:l,seriesIndex:l.seriesIndex,series:b.value,config:t.value,scales:p.value}))?P.value=u({serie:l,seriesIndex:l.seriesIndex,series:b.value,config:t.value,scales:p.value}):(n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o?o+" - ":""}${l.name}</div>`,p.value.map(g=>g.name).forEach((g,v)=>{n+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-DDwHKEGb.cjs"),K=require("./useResponsive-B3TrDDIG.cjs"),de=require("./Title-B6PVw0aK.cjs"),ve=require("./Legend-CTlJpdAi.cjs"),he=require("./Tooltip-Ci47DnuY.cjs"),pe=require("./Shape-CbiBbFNX.cjs"),Q=require("./usePrinter-CRKoRqbE.cjs"),me=require("./DataTable-DkoeHXI5.cjs"),ye=require("./vue-ui-accordion-BBDPcl3d.cjs"),fe=require("./vue-ui-skeleton-BeqLQi6X.cjs"),Z=require("./useNestedProp-BbpR9SM4.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be=["id"],ke=["xmlns","viewBox"],xe={style:{"pointer-events":"none"}},Ce=["x1","x2","y1","y2","stroke","stroke-width"],we=["x","y","fill","font-size","font-weight"],Be=["x1","x2","y1","y2","stroke","stroke-width"],ze=["x","y","fill","font-size","font-weight"],$e={key:0},Se=["x","y","font-size","fill"],Ne=["width","x","y"],Te={style:{width:"100%"}},Fe=["x","y","fill","font-weight","font-size","onMouseenter"],_e=["d","stroke","stroke-width","onMouseenter"],Pe={key:3,class:"vue-data-ui-watermark"},Ae=["onClick"],Me=["innerHTML"],Le={__name:"vue-ui-parallel-coordinate-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(ee,{expose:te,emit:M}){const k=ee,{vue_ui_parallel_coordinate_plot:le}=i.useConfig(),x=e.computed({get(){return!!k.dataset&&k.dataset.length},set(a){return a}}),L=e.ref(0),w=e.ref(null),E=e.ref(null),I=e.ref(null),N=e.ref(i.createUid()),B=e.ref(!1);function ae(a){B.value=a,L.value+=1}const t=e.computed(()=>{const a=Z.useNestedProp({userConfig:k.config,defaultConfig:le});return a.theme?{...Z.useNestedProp({userConfig:i.themes.vue_ui_parallel_coordinate_plot[a.theme]||k.config,defaultConfig:a}),customPalette:i.themePalettes[a.theme]||i.palette}:a}),$=e.ref(null);e.onMounted(()=>{if(i.objectIsEmpty(k.dataset)?i.error({componentName:"VueUiParallelCoordinatePlot",type:"dataset"}):k.dataset.forEach((a,o)=>{i.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","series"]}).forEach(l=>{x.value=!1,i.error({componentName:"VueUiParallelCoordinatePlot",type:"datasetSerieAttribute",property:l,index:o})})}),t.value.responsive){const a=K.throttle(()=>{const{width:o,height:l}=K.useResponsive({chart:w.value,title:t.value.style.chart.title.text?E.value:null,legend:t.value.style.chart.legend.show?I.value:null});c.value.width=o,c.value.height=l,c.value.plotSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.plots.radius,threshold:2,fallback:2}),c.value.ticksFontSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.yAxis.labels.ticks.fontSize,threshold:10,fallback:10}),c.value.datapointFontSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.yAxis.labels.datapoints.fontSize,threshold:10,fallback:10}),c.value.axisNameFontSize=i.translateSize({relator:Math.min(o,l),adjuster:600,source:t.value.style.chart.yAxis.labels.axisNamesFontSize,threshold:12,fallback:12})});$.value=new ResizeObserver(a),$.value.observe(w.value.parentNode)}}),e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:V,isImaging:D,generatePdf:O,generateImage:q}=Q.usePrinter({elementId:`pcp_${N.value}`,fileName:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot"}),c=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width,plotSize:t.value.style.chart.plots.radius,ticksFontSize:t.value.style.chart.yAxis.labels.ticks.fontSize,datapointFontSize:t.value.style.chart.yAxis.labels.datapoints.fontSize,axisNameFontSize:t.value.style.chart.yAxis.labels.axisNamesFontSize}),d=e.computed(()=>{const{top:a,right:o,bottom:l,left:s}=t.value.style.chart.padding,r=c.value.height,n=c.value.width;return{chartHeight:r,chartWidth:n,height:r-a-l,width:n-s-o,top:a,left:s,right:n-o,bottom:r-l}}),oe=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),m=e.ref({dataLabels:{show:t.value.style.chart.yAxis.labels.datapoints.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),f=e.ref([]);function R(a){f.value.includes(a)?f.value=f.value.filter(o=>o!==a):f.value.push(a)}const b=e.computed(()=>k.dataset.map((a,o)=>{const l=i.convertColorToHex(a.color)||oe.value[o]||i.palette[o]||i.palette[o%i.palette.length];return{...a,series:a.series.map(s=>({...s,id:i.createUid(),color:l})),seriesIndex:o,color:l,id:i.createUid(),shape:a.shape||"circle"}})),se=e.computed(()=>b.value.map(a=>({...a,opacity:f.value.includes(a.id)?.5:1,segregate:()=>R(a.id),isSegregated:f.value.includes(a.id)}))),ne=e.computed(()=>({cy:"pcp-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":""})),U=e.computed(()=>Math.max(...b.value.filter(a=>!f.value.includes(a.id)).map(a=>Math.max(...a.series.flatMap(o=>o.values.length))))),y=e.computed(()=>d.value.width/U.value),T=e.computed(()=>b.value.filter(a=>!f.value.includes(a.id))),p=e.computed(()=>{let a=[];for(let o=0;o<U.value;o+=1){const l=Math.min(...T.value.flatMap(v=>v.series.map(S=>S.values[o]||0)||0)),s=Math.max(...T.value.flatMap(v=>v.series.map(S=>S.values[o]||0)||0)),r=s===l?l/4:l,n=s===l?s*2:s,u=i.calculateNiceScale(r,n,t.value.style.chart.yAxis.scaleTicks),g=u.ticks.map((v,S)=>{const ue=u.min<0?v+Math.abs(u.min):v-Math.abs(u.min),ce=u.min<0?u.max+Math.abs(u.min):u.max-Math.abs(u.min);return{y:d.value.bottom-d.value.height*(ue/ce),x:d.value.left+y.value*o+y.value/2,value:v}});a.push({scale:u,ticks:g,name:t.value.style.chart.yAxis.labels.axisNames[o]||`Y-${o+1}`})}return a}),F=e.computed(()=>T.value.map((a,o)=>({...a,series:a.series.map((l,s)=>({...l,datapoints:l.values.map((r,n)=>{const u=p.value[n].scale.min<0?(r||0)+Math.abs(p.value[n].scale.min):(r||0)-Math.abs(p.value[n].scale.min),g=p.value[n].scale.min<0?p.value[n].scale.max+Math.abs(p.value[n].scale.min):p.value[n].scale.max-Math.abs(p.value[n].scale.min);return{name:l.name,seriesName:a.name,axisIndex:n,datapointIndex:s,seriesIndex:o,value:r||0,x:d.value.left+y.value*n+y.value/2,y:d.value.bottom-d.value.height*(u/g),comment:l.comments&&l.comments[n]||""}})}))})).map(a=>({...a,series:a.series.map(o=>{const l=i.createStraightPath(o.datapoints),s=i.createSmoothPath(o.datapoints,.12),r=i.getPathLengthFromCoordinates(t.value.style.chart.lines.smooth?`M ${s}`:`M ${l}`);return{...o,smoothPath:s,straightPath:l,pathLength:r}})})));function W({value:a,index:o,datapoint:l}){return i.applyDataLabel(t.value.style.chart.yAxis.labels.formatters[o]||null,a,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[o]||"",v:a,s:t.value.style.chart.yAxis.labels.suffixes[o]||"",r:t.value.style.chart.yAxis.labels.roundings[o]||0}),{datapoint:l,seriesIndex:o})}const h=e.ref(null),_=e.ref(null),z=e.ref(!1),P=e.ref("");function A({shape:a,serieName:o,serie:l,relativeIndex:s,seriesIndex:r}){_.value={serie:l,relativeIndex:s,seriesIndex:r,series:b.value,scales:p.value},z.value=!0,h.value=l.id;let n="";const u=t.value.style.chart.tooltip.customFormat;i.isFunction(u)&&i.functionReturnsString(()=>u({serie:l,seriesIndex:l.seriesIndex,series:b.value,config:t.value,scales:p.value}))?P.value=u({serie:l,seriesIndex:l.seriesIndex,series:b.value,config:t.value,scales:p.value}):(n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o?o+" - ":""}${l.name}</div>`,p.value.map(g=>g.name).forEach((g,v)=>{n+=`
2
2
  <div class="vue-ui-tooltip-item" style="text-align:left">
3
3
  <span>${g}: </span>
4
4
  <span>
@@ -1,15 +1,15 @@
1
1
  import { computed as y, ref as f, onMounted as Pe, onBeforeUnmount as Ne, openBlock as u, createElementBlock as i, normalizeClass as E, normalizeStyle as _, createVNode as J, createCommentVNode as g, createBlock as D, unref as z, createSlots as Le, withCtx as b, renderSlot as x, normalizeProps as j, guardReactiveProps as R, Fragment as C, renderList as A, createElementVNode as I, toDisplayString as N, createTextVNode as Se } from "vue";
2
- import { u as Oe, c as K, t as De, a as We, p as U, o as Be, e as ye, g as Ee, b as je, d as Re, B as Ue, O as Ve, P as Ge, Q as He, X as Xe, x as fe, i as ge, f as be, y as Ye, q as qe, r as Qe, D as V } from "./index-fMHmzYJu.js";
2
+ import { u as Oe, c as K, t as De, a as We, p as U, o as Be, e as ye, g as Ee, b as je, d as Re, B as Ue, O as Ve, P as Ge, Q as He, X as Xe, x as fe, i as ge, f as be, y as Ye, q as qe, r as Qe, D as V } from "./index-b22AFna7.js";
3
3
  import { t as Je, u as Ke } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as Ze } from "./Title-BxitYokc.js";
5
- import { L as et } from "./Legend-C2DZGZN5.js";
6
- import { _ as tt } from "./Tooltip-DTntJRyb.js";
7
- import { _ as at } from "./Shape-qXMEmkXY.js";
8
- import { u as lt, U as ot } from "./usePrinter-BEVwOH5x.js";
9
- import { D as st } from "./DataTable-CzvZIRDs.js";
10
- import nt from "./vue-ui-accordion-CVzTuENA.js";
11
- import ut from "./vue-ui-skeleton-DiJmBrEY.js";
12
- import { u as xe } from "./useNestedProp-lzTC0cjC.js";
4
+ import { _ as Ze } from "./Title-CzxknLI3.js";
5
+ import { L as et } from "./Legend-Cpk8DCWi.js";
6
+ import { _ as tt } from "./Tooltip-DYVjAqo-.js";
7
+ import { _ as at } from "./Shape-Bfeh9GpX.js";
8
+ import { u as lt, U as ot } from "./usePrinter-C_wOlUXy.js";
9
+ import { D as st } from "./DataTable-Bwco5wF0.js";
10
+ import nt from "./vue-ui-accordion-H9MtAuZL.js";
11
+ import ut from "./vue-ui-skeleton-c0TzbjC0.js";
12
+ import { u as xe } from "./useNestedProp-6FL791Qt.js";
13
13
  import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const rt = ["id"], ct = ["xmlns", "viewBox"], vt = { style: { "pointer-events": "none" } }, dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ht = ["x", "y", "fill", "font-size", "font-weight"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mt = ["x", "y", "fill", "font-size", "font-weight"], yt = { key: 0 }, ft = ["x", "y", "font-size", "fill"], gt = ["width", "x", "y"], bt = { style: { width: "100%" } }, xt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], kt = ["d", "stroke", "stroke-width", "onMouseenter"], Ct = {
15
15
  key: 3,