vue-data-ui 2.4.40 → 2.4.42

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 (167) hide show
  1. package/dist/{Arrow-DkayNE_-.js → Arrow-DE71uBJZ.js} +1 -1
  2. package/dist/{Arrow-Bg4pmMHf.cjs → Arrow-DTscDttD.cjs} +1 -1
  3. package/dist/{BaseIcon-DpYqpYmv.js → BaseIcon-C8XxmpRq.js} +1 -1
  4. package/dist/{BaseIcon-zXh1vLYa.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
  5. package/dist/{DataTable-BB87HJ5b.cjs → DataTable-DEdQvqB1.cjs} +1 -1
  6. package/dist/{DataTable-BuiPd6c1.js → DataTable-D_w08xos.js} +2 -2
  7. package/dist/{Legend-BRVDmlwW.js → Legend-BWDoQii_.js} +1 -1
  8. package/dist/{Legend-D2Yi-COI.cjs → Legend-C4rlR-Ge.cjs} +1 -1
  9. package/dist/{PackageVersion-BT4zkGPO.js → PackageVersion-CH6MCx6T.js} +1 -1
  10. package/dist/{PackageVersion-rf9gXZ-Q.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
  11. package/dist/{PenAndPaper-BFq1cFfJ.js → PenAndPaper-BWTR3U2d.js} +3 -3
  12. package/dist/{PenAndPaper-DS7gA4X0.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
  13. package/dist/{Shape-DVggzfpA.cjs → Shape-BLS-KzBD.cjs} +1 -1
  14. package/dist/{Shape-Dwxh0EWa.js → Shape-xrlfL_v4.js} +1 -1
  15. package/dist/Slicer-8gKX0l4Q.cjs +1 -0
  16. package/dist/Slicer-DIYseEL1.js +423 -0
  17. package/dist/{Title-RB80eFiD.cjs → Title-B-xkTfi8.cjs} +1 -1
  18. package/dist/{Title-BFvWnqI4.js → Title-Cnl9ySNH.js} +1 -1
  19. package/dist/Tooltip-Brbj6DqX.cjs +1 -0
  20. package/dist/{Tooltip-RHI1EGzy.js → Tooltip-DEAOBZ8h.js} +33 -25
  21. package/dist/index-B68kzBN9.cjs +9 -0
  22. package/dist/{index-DY8hDTi7.js → index-DnukYspq.js} +56 -43
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +13 -0
  25. package/dist/types/vue-data-ui.d.ts +13 -0
  26. package/dist/{useNestedProp-lhL30X68.js → useNestedProp-CVOQGx-X.js} +1 -1
  27. package/dist/{useNestedProp-DLJc0s53.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
  28. package/dist/{usePrinter-BfuqGrO4.cjs → usePrinter-C9yUesCc.cjs} +1 -1
  29. package/dist/{usePrinter-DjAQofRy.js → usePrinter-DVIALk5e.js} +1 -1
  30. package/dist/{vue-data-ui-BjixO_L4.js → vue-data-ui-BmmjmNbb.js} +60 -60
  31. package/dist/{vue-data-ui-DYb5l8_5.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +3 -3
  34. package/dist/{vue-ui-3d-bar-CkYhOmXF.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-BEjtuA39.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-ClQObElI.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-xK9e3wkz.js → vue-ui-accordion-f9NTID9e.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-x5CjkABf.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DtQAo1-2.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
  40. package/dist/{vue-ui-annotator-Yt34insl.js → vue-ui-annotator-C82vEb7R.js} +1 -1
  41. package/dist/{vue-ui-annotator-DqDELeOR.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-CCvwPwji.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
  43. package/dist/{vue-ui-bullet-DSPQ5yWt.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
  44. package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
  45. package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
  46. package/dist/{vue-ui-carousel-table-CkJngi1u.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-IqZRrbo_.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
  48. package/dist/{vue-ui-chestnut-Dt3GLx3U.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
  49. package/dist/{vue-ui-chestnut-ojvaZyue.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-D24bAdi0.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
  51. package/dist/{vue-ui-cursor-Cbi7OUiE.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-DVf1sULB.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-CB_W7yvi.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
  54. package/dist/{vue-ui-digits-CVAyG4kM.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
  55. package/dist/{vue-ui-digits-Qn4l0R5o.js → vue-ui-digits-DtNvb8lM.js} +2 -2
  56. package/dist/{vue-ui-donut-t688YqqL.js → vue-ui-donut-C028OlzU.js} +99 -98
  57. package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
  58. package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
  59. package/dist/{vue-ui-donut-Cgvksx9U.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CS5kvI8A.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-DxMZm_Xi.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
  62. package/dist/{vue-ui-flow-4sSoYnJt.js → vue-ui-flow-QRimZUXT.js} +46 -46
  63. package/dist/{vue-ui-flow-In-tHpYL.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-MXYMVu1G.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-MD4lrv0t.js → vue-ui-funnel-CBymVSdd.js} +19 -19
  66. package/dist/{vue-ui-galaxy-B9KiEfI4.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-K09M9SgI.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
  68. package/dist/{vue-ui-gauge-Bg2V5WNl.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
  69. package/dist/{vue-ui-gauge-DaR_viLn.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-7Hv-0fsh.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-CdLxfJUw.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DhgJ3LO9.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CNPjaHGJ.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
  74. package/dist/{vue-ui-history-plot-DZOYwPTh.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-DRwX7quj.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
  76. package/dist/{vue-ui-kpi-Cnrfv2vn.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C-5_TwY8.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-fZawewEF.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-uBFny7gt.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-BOClRlY3.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-pO5l42Vf.js → vue-ui-molecule-CZi84tUl.js} +26 -25
  82. package/dist/{vue-ui-mood-radar-jbYjFZID.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-CiMiQJuS.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-Bb5otIw_.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
  85. package/dist/{vue-ui-nested-donuts-IArnFfHY.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
  86. package/dist/{vue-ui-onion-BvQLUPjh.js → vue-ui-onion-CIRGvycb.js} +49 -48
  87. package/dist/{vue-ui-onion-SKVqk7rN.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
  88. package/dist/{vue-ui-parallel-coordinate-plot-CeqeyIHj.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
  89. package/dist/{vue-ui-parallel-coordinate-plot-_LH1iK_w.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
  90. package/dist/{vue-ui-quadrant-BiWyF1fA.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
  91. package/dist/{vue-ui-quadrant-7jB46g4Z.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-C1398EYu.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
  93. package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
  94. package/dist/{vue-ui-radar-BvWCcL2b.js → vue-ui-radar-CXXAYowO.js} +38 -37
  95. package/dist/{vue-ui-radar-BYk3bLkt.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CyGmfYEU.js → vue-ui-rating-DOqMciYJ.js} +2 -2
  97. package/dist/{vue-ui-rating-jKjMQHRN.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
  98. package/dist/vue-ui-relation-circle-BEv568py.cjs +1 -0
  99. package/dist/vue-ui-relation-circle-CR3iWQV_.js +492 -0
  100. package/dist/{vue-ui-rings-DEwuDHW2.js → vue-ui-rings-B--CFaNX.js} +49 -48
  101. package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
  102. package/dist/{vue-ui-scatter-BYL4iitb.js → vue-ui-scatter-C-RD4h73.js} +26 -25
  103. package/dist/{vue-ui-scatter-BfI6xftp.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-D4aNIcHd.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
  105. package/dist/{vue-ui-screenshot-Cf8g-RjG.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-FCpm0_eE.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
  107. package/dist/{vue-ui-skeleton-BGfzzQdU.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-mjxS_13E.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-BFXulKpd.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-B2SOk378.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D-13-kV6.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-BlA1rgRo.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-C8cjDKBy.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-DRBVe3tu.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-C4sFc7nb.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-iMRsSDvC.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CkqzLBYq.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DIkUaObR.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
  119. package/dist/{vue-ui-sparkline-C0JZ7Xq1.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-DJbWCqs3.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DJW1lBGU.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
  122. package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
  123. package/dist/{vue-ui-stackbar-BGUXEdZi.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
  124. package/dist/{vue-ui-strip-plot-hn1U9cvT.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
  125. package/dist/{vue-ui-strip-plot-DJTQ8r5H.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
  126. package/dist/{vue-ui-table-7A1eCPQd.js → vue-ui-table-CS-NSZjj.js} +1 -1
  127. package/dist/{vue-ui-table-DFvOQzJu.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DqZsXcsO.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
  129. package/dist/{vue-ui-table-heatmap-ZnkAoAkQ.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CV8o-yV6.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-5mX0B27t.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-BwLTfi7y.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-M6QwKOld.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
  134. package/dist/{vue-ui-timer-QypGImgW.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
  135. package/dist/{vue-ui-timer-CoYF7LEU.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
  136. package/dist/{vue-ui-tiremarks-DAFNYvB1.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CzLOyhXF.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
  138. package/dist/{vue-ui-treemap-DF5BIKs-.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
  139. package/dist/{vue-ui-treemap-CutiBRIN.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-bDcCcUy8.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
  141. package/dist/{vue-ui-vertical-bar-D-ZZAU0r.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
  142. package/dist/{vue-ui-waffle-CCO3ZHyo.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-BR_HwmLy.js → vue-ui-waffle-DYdcFM17.js} +79 -78
  144. package/dist/{vue-ui-wheel-DuO0nc0d.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
  145. package/dist/{vue-ui-wheel-Cvcfc6o1.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Cv5bXF2B.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-BknJQRiM.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
  148. package/dist/{vue-ui-xy-Clf_sTRI.js → vue-ui-xy-B3346TfB.js} +195 -185
  149. package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
  150. package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
  151. package/dist/{vue-ui-xy-canvas-BOJGw4H7.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
  152. package/package.json +1 -1
  153. package/dist/Slicer-BXHFpzP5.cjs +0 -1
  154. package/dist/Slicer-D7x1gyjP.js +0 -400
  155. package/dist/Tooltip-BC1YZMi2.cjs +0 -1
  156. package/dist/index--lHmCKjC.cjs +0 -9
  157. package/dist/vue-ui-candlestick-CVJB9WMH.js +0 -725
  158. package/dist/vue-ui-candlestick-Cb7CgmeV.cjs +0 -2
  159. package/dist/vue-ui-donut-evolution-DWdf8MKP.cjs +0 -1
  160. package/dist/vue-ui-donut-evolution-KdVsB3m_.js +0 -895
  161. package/dist/vue-ui-quick-chart-79l8Uv8o.cjs +0 -15
  162. package/dist/vue-ui-relation-circle-B3Df8yCi.js +0 -366
  163. package/dist/vue-ui-relation-circle-CZomraV2.cjs +0 -1
  164. package/dist/vue-ui-rings-L8pGRQbs.cjs +0 -2
  165. package/dist/vue-ui-stackbar-BtOrW2Ml.cjs +0 -6
  166. package/dist/vue-ui-xy-Cqb73yZ3.cjs +0 -3
  167. package/dist/vue-ui-xy-canvas-7OwcP1-L.cjs +0 -9
@@ -1,16 +1,16 @@
1
- import { ref as n, computed as v, watch as Re, onMounted as Ve, onBeforeUnmount as Be, openBlock as r, createElementBlock as f, normalizeClass as W, normalizeStyle as I, createBlock as _, createCommentVNode as k, unref as i, createSlots as De, withCtx as p, renderSlot as h, normalizeProps as F, guardReactiveProps as M, createVNode as fe, createElementVNode as C, Fragment as ye, renderList as me, createTextVNode as be, toDisplayString as E, nextTick as Ue } from "vue";
2
- import { u as We, c as ke, t as Ee, a as Ge, p as x, o as He, e as Y, g as Xe, b as je, I as Ye, d as Ce, f as N, X as qe, s as Je, w as Ke, v as q, i as we, x as Qe, y as Ze, q as et, r as tt } from "./index-DY8hDTi7.js";
1
+ import { ref as n, computed as v, watch as Re, onMounted as Ve, onBeforeUnmount as Be, openBlock as r, createElementBlock as f, normalizeClass as W, normalizeStyle as O, createBlock as _, createCommentVNode as k, unref as i, createSlots as De, withCtx as p, renderSlot as h, normalizeProps as I, guardReactiveProps as M, createVNode as fe, createElementVNode as C, Fragment as ye, renderList as me, createTextVNode as be, toDisplayString as E, nextTick as Ue } from "vue";
2
+ import { u as We, c as ke, t as Ee, a as Ge, p as x, o as He, e as Y, g as Xe, b as je, J as Ye, d as Ce, f as N, X as qe, s as Je, w as Ke, v as q, i as we, x as Qe, y as Ze, q as et, r as tt } from "./index-DnukYspq.js";
3
3
  import { t as lt, u as ot } from "./useResponsive-CoxXLe23.js";
4
- import { _ as at } from "./Title-BFvWnqI4.js";
5
- import { u as st, U as nt } from "./usePrinter-DjAQofRy.js";
6
- import { _ as rt } from "./Tooltip-RHI1EGzy.js";
7
- import { D as ut } from "./DataTable-BuiPd6c1.js";
8
- import { L as it } from "./Legend-BRVDmlwW.js";
9
- import vt from "./vue-ui-skeleton-FCpm0_eE.js";
10
- import ct from "./vue-ui-accordion-xK9e3wkz.js";
11
- import { u as $e } from "./useNestedProp-lhL30X68.js";
12
- import { _ as dt } from "./PackageVersion-BT4zkGPO.js";
13
- import { P as pt } from "./PenAndPaper-BFq1cFfJ.js";
4
+ import { _ as at } from "./Title-Cnl9ySNH.js";
5
+ import { u as st, U as nt } from "./usePrinter-DVIALk5e.js";
6
+ import { _ as rt } from "./Tooltip-DEAOBZ8h.js";
7
+ import { D as ut } from "./DataTable-D_w08xos.js";
8
+ import { L as it } from "./Legend-BWDoQii_.js";
9
+ import vt from "./vue-ui-skeleton-CXdyOF4T.js";
10
+ import ct from "./vue-ui-accordion-f9NTID9e.js";
11
+ import { u as $e } from "./useNestedProp-CVOQGx-X.js";
12
+ import { _ as dt } from "./PackageVersion-CH6MCx6T.js";
13
+ import { P as pt } from "./PenAndPaper-BWTR3U2d.js";
14
14
  import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"], bt = ["stop-color"], kt = ["stroke", "cx", "cy", "r", "fill"], Ct = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], wt = ["cx", "cy", "r", "onMouseenter"], $t = {
16
16
  key: 5,
@@ -33,7 +33,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
33
33
  },
34
34
  emits: ["selectLegend"],
35
35
  setup(Te, { expose: _e, emit: xe }) {
36
- const y = Te, { vue_ui_rings: Ne } = We(), L = n(!1), z = v(() => !!y.dataset && y.dataset.length), S = n(ke()), Pe = n(null), R = n(!1), G = n(""), T = n(null), J = n(0), P = n(null), K = n(null), Q = n(null), Z = n(null), ee = n(null), te = n(0), le = n(0), oe = n(0), e = v({
36
+ const y = Te, { vue_ui_rings: Ne } = We(), S = n(!1), z = v(() => !!y.dataset && y.dataset.length), A = n(ke()), Pe = n(null), R = n(!1), G = n(""), T = n(null), J = n(0), P = n(null), K = n(null), Q = n(null), Z = n(null), ee = n(null), te = n(0), le = n(0), oe = n(0), e = v({
37
37
  get: () => ae(),
38
38
  set: (t) => t
39
39
  });
@@ -90,14 +90,14 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
90
90
  V.value = new ResizeObserver(t), V.value.observe(P.value.parentNode);
91
91
  }
92
92
  setTimeout(() => {
93
- L.value = !0;
93
+ S.value = !0;
94
94
  }, 600);
95
95
  }
96
96
  Be(() => {
97
97
  V.value && V.value.disconnect();
98
98
  });
99
99
  const { isPrinting: ne, isImaging: re, generatePdf: ue, generateImage: ie } = st({
100
- elementId: `rings_${S.value}`,
100
+ elementId: `rings_${A.value}`,
101
101
  fileName: e.value.style.chart.title.text || "vue-ui-rings"
102
102
  }), Le = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), ve = v(() => je(e.value.customPalette)), w = n({
103
103
  showTable: e.value.table.show,
@@ -120,12 +120,12 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
120
120
  return t / Ae.value;
121
121
  }
122
122
  const B = v(() => y.dataset.map(({ values: t, name: o, color: l = null }, a) => {
123
- const s = Ye(t).reduce((b, O) => b + O, 0);
123
+ const s = Ye(t).reduce((b, F) => b + F, 0);
124
124
  return {
125
125
  name: o,
126
126
  color: l || Ce(l) || ve.value[a] || x[a] || x[a % x.length],
127
127
  value: s,
128
- proportion: s / y.dataset.map((b) => (b.values || []).reduce((O, ze) => O + ze, 0)).reduce((b, O) => b + O, 0),
128
+ proportion: s / y.dataset.map((b) => (b.values || []).reduce((F, ze) => F + ze, 0)).reduce((b, F) => b + F, 0),
129
129
  uid: ke()
130
130
  };
131
131
  })), de = v(() => B.value.map((t) => ({
@@ -134,7 +134,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
134
134
  opacity: c.value.includes(t.uid) ? 0.5 : 1,
135
135
  segregate: () => H(t.uid),
136
136
  isSegregated: c.value.includes(t.uid)
137
- })).toSorted((t, o) => o.value - t.value)), Oe = v(() => ({
137
+ })).toSorted((t, o) => o.value - t.value)), Fe = v(() => ({
138
138
  cy: "rings-div-legend",
139
139
  backgroundColor: e.value.style.chart.legend.backgroundColor,
140
140
  color: e.value.style.chart.legend.color,
@@ -150,7 +150,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
150
150
  percentage: o / m.value * 100,
151
151
  strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ce(o)
152
152
  })).toSorted((t, o) => o.value - t.value));
153
- function Ie() {
153
+ function Oe() {
154
154
  return d.value.map(
155
155
  ({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
156
156
  name: t,
@@ -162,7 +162,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
162
162
  );
163
163
  }
164
164
  const g = v(() => Se.value - e.value.style.chart.layout.rings.strokeWidth * 2), X = n(null);
165
- function Fe(t, o) {
165
+ function Ie(t, o) {
166
166
  if (c.value.length === y.dataset.length) return;
167
167
  X.value = {
168
168
  datapoint: o,
@@ -258,9 +258,9 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
258
258
  tt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
259
259
  });
260
260
  }
261
- const A = n(!1);
261
+ const L = n(!1);
262
262
  function Me(t) {
263
- A.value = t, J.value += 1;
263
+ L.value = t, J.value += 1;
264
264
  }
265
265
  function he() {
266
266
  w.value.showTable = !w.value.showTable;
@@ -273,7 +273,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
273
273
  U.value = !U.value;
274
274
  }
275
275
  return _e({
276
- getData: Ie,
276
+ getData: Oe,
277
277
  generatePdf: ue,
278
278
  generateCsv: pe,
279
279
  generateImage: ie,
@@ -283,9 +283,9 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
283
283
  }), (t, o) => (r(), f("div", {
284
284
  ref_key: "ringsChart",
285
285
  ref: P,
286
- class: W(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
287
- style: I(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
288
- id: `rings_${S.value}`,
286
+ class: W(`vue-ui-rings ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
287
+ style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
288
+ id: `rings_${A.value}`,
289
289
  onMouseleave: o[3] || (o[3] = (l) => {
290
290
  T.value = null, R.value = !1;
291
291
  })
@@ -333,7 +333,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
333
333
  color: e.value.style.chart.color,
334
334
  isPrinting: i(ne),
335
335
  isImaging: i(re),
336
- uid: S.value,
336
+ uid: A.value,
337
337
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
338
338
  hasPdf: e.value.userOptions.buttons.pdf,
339
339
  hasXls: e.value.userOptions.buttons.csv,
@@ -341,7 +341,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
341
341
  hasTable: e.value.userOptions.buttons.table,
342
342
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
343
343
  isTooltip: w.value.showTooltip,
344
- isFullscreen: A.value,
344
+ isFullscreen: L.value,
345
345
  titles: { ...e.value.userOptions.buttonTitles },
346
346
  chartElement: P.value,
347
347
  position: e.value.userOptions.position,
@@ -393,14 +393,14 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
393
393
  t.$slots.optionFullscreen ? {
394
394
  name: "optionFullscreen",
395
395
  fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
396
- h(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
396
+ h(t.$slots, "optionFullscreen", I(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
397
397
  ]),
398
398
  key: "5"
399
399
  } : void 0,
400
400
  t.$slots.optionAnnotator ? {
401
401
  name: "optionAnnotator",
402
402
  fn: p(({ toggleAnnotator: l, isAnnotator: a }) => [
403
- h(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
403
+ h(t.$slots, "optionAnnotator", I(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
404
404
  ]),
405
405
  key: "6"
406
406
  } : void 0
@@ -408,9 +408,9 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
408
408
  z.value ? (r(), f("svg", {
409
409
  key: 4,
410
410
  xmlns: i(qe),
411
- class: W({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
411
+ class: W({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
412
412
  viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
413
- style: I(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
413
+ style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
414
414
  }, [
415
415
  fe(dt),
416
416
  C("defs", null, [
@@ -420,7 +420,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
420
420
  r: "50%",
421
421
  fx: "50%",
422
422
  fy: "50%",
423
- id: `gradient_${S.value}_${a}`
423
+ id: `gradient_${A.value}_${a}`
424
424
  }, [
425
425
  C("stop", {
426
426
  offset: "0%",
@@ -435,11 +435,11 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
435
435
  (r(!0), f(ye, null, me(d.value, (l, a) => (r(), f("g", null, [
436
436
  C("circle", {
437
437
  class: W({
438
- "vue-ui-rings-item": L.value && e.value.useCssAnimation,
439
- "vue-rings-item-onload": !L.value && e.value.useCssAnimation,
438
+ "vue-ui-rings-item": S.value && e.value.useCssAnimation,
439
+ "vue-rings-item-onload": !S.value && e.value.useCssAnimation,
440
440
  "vue-ui-rings-opacity": T.value !== null && T.value !== a
441
441
  }),
442
- style: I(`animation-delay:${a * 100}ms`),
442
+ style: O(`animation-delay:${a * 100}ms`),
443
443
  stroke: e.value.style.chart.layout.rings.stroke,
444
444
  cx: u.value.width / 2,
445
445
  cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
@@ -448,18 +448,18 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
448
448
  }, null, 14, kt),
449
449
  C("circle", {
450
450
  class: W({
451
- "vue-ui-rings-item": L.value && e.value.useCssAnimation,
452
- "vue-rings-item-onload": !L.value && e.value.useCssAnimation,
451
+ "vue-ui-rings-item": S.value && e.value.useCssAnimation,
452
+ "vue-rings-item-onload": !S.value && e.value.useCssAnimation,
453
453
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
454
454
  "vue-ui-rings-blur": T.value !== null && T.value !== a
455
455
  }),
456
- style: I(`animation-delay:${a * 100}ms`),
456
+ style: O(`animation-delay:${a * 100}ms`),
457
457
  stroke: e.value.style.chart.layout.rings.stroke,
458
458
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
459
459
  cx: u.value.width / 2,
460
460
  cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
461
461
  r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
462
- fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${S.value}_${a})` : l.color
462
+ fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${A.value}_${a})` : l.color
463
463
  }, null, 14, Ct),
464
464
  C("circle", {
465
465
  "data-cy-trap": "",
@@ -468,7 +468,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
468
468
  cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
469
469
  r: i(q)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
470
470
  fill: "transparent",
471
- onMouseenter: (s) => Fe(a, l),
471
+ onMouseenter: (s) => Ie(a, l),
472
472
  onMouseleave: o[0] || (o[0] = (s) => {
473
473
  T.value = null, R.value = !1;
474
474
  })
@@ -477,7 +477,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
477
477
  h(t.$slots, "svg", { svg: u.value }, void 0, !0)
478
478
  ], 14, ft)) : k("", !0),
479
479
  t.$slots.watermark ? (r(), f("div", $t, [
480
- h(t.$slots, "watermark", F(M({ isPrinting: i(ne) || i(re) })), void 0, !0)
480
+ h(t.$slots, "watermark", I(M({ isPrinting: i(ne) || i(re) })), void 0, !0)
481
481
  ])) : k("", !0),
482
482
  z.value ? k("", !0) : (r(), _(vt, {
483
483
  key: 6,
@@ -498,14 +498,14 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
498
498
  e.value.style.chart.legend.show ? (r(), _(it, {
499
499
  key: `legend_${oe.value}`,
500
500
  legendSet: de.value,
501
- config: Oe.value,
501
+ config: Fe.value,
502
502
  onClickMarker: o[1] || (o[1] = ({ legend: l }) => H(l.uid))
503
503
  }, {
504
504
  item: p(({ legend: l, index: a }) => [
505
505
  C("div", {
506
506
  "data-cy-legend-item": "",
507
507
  onClick: (s) => H(l.uid),
508
- style: I(`opacity:${c.value.includes(l.uid) ? 0.5 : 1}`)
508
+ style: O(`opacity:${c.value.includes(l.uid) ? 0.5 : 1}`)
509
509
  }, [
510
510
  be(E(l.name) + ": " + E(i(we)(
511
511
  e.value.style.chart.layout.labels.dataLabels.formatter,
@@ -552,16 +552,17 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
552
552
  offsetY: e.value.style.chart.tooltip.offsetY,
553
553
  parent: P.value,
554
554
  content: G.value,
555
+ isFullscreen: L.value,
555
556
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
556
557
  }, {
557
558
  "tooltip-before": p(() => [
558
- h(t.$slots, "tooltip-before", F(M({ ...X.value })), void 0, !0)
559
+ h(t.$slots, "tooltip-before", I(M({ ...X.value })), void 0, !0)
559
560
  ]),
560
561
  "tooltip-after": p(() => [
561
- h(t.$slots, "tooltip-after", F(M({ ...X.value })), void 0, !0)
562
+ h(t.$slots, "tooltip-after", I(M({ ...X.value })), void 0, !0)
562
563
  ]),
563
564
  _: 3
564
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
565
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
565
566
  z.value ? (r(), _(ct, {
566
567
  key: 8,
567
568
  hideDetails: "",
@@ -604,7 +605,7 @@ const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"],
604
605
  }, 8, ["config"])) : k("", !0)
605
606
  ], 46, gt));
606
607
  }
607
- }, Et = /* @__PURE__ */ ht(Pt, [["__scopeId", "data-v-2a4f4cb4"]]);
608
+ }, Et = /* @__PURE__ */ ht(Pt, [["__scopeId", "data-v-55a9dc26"]]);
608
609
  export {
609
610
  Et as default
610
611
  };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-B68kzBN9.cjs"),Z=require("./useResponsive-BJ7DTGpm.cjs"),ge=require("./Title-B-xkTfi8.cjs"),ee=require("./usePrinter-C9yUesCc.cjs"),fe=require("./Tooltip-Brbj6DqX.cjs"),me=require("./DataTable-DEdQvqB1.cjs"),ye=require("./Legend-C4rlR-Ge.cjs"),be=require("./vue-ui-skeleton-DGCkWrND.cjs"),ke=require("./vue-ui-accordion-D_K9gNUR.cjs"),te=require("./useNestedProp-es9bVqY_.cjs"),Ce=require("./PackageVersion-DKyD7D76.cjs"),we=require("./PenAndPaper-Dc2zn4C0.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),xe=["id"],Ne=["xmlns","viewBox"],$e=["id"],Se=["stop-color"],Be=["stop-color"],Pe=["stroke","cx","cy","r","fill"],_e=["stroke","stroke-width","cx","cy","r","fill"],Le=["cx","cy","r","onMouseenter"],Ve={key:5,class:"vue-data-ui-watermark"},Ee=["onClick"],Ae={key:0},Fe={key:1},Oe=["innerHTML"],ze={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(le,{expose:oe,emit:ae}){const v=le,{vue_ui_rings:re}=r.useConfig(),k=e.ref(!1),T=e.computed(()=>!!v.dataset&&v.dataset.length),C=e.ref(r.createUid()),ne=e.ref(null),x=e.ref(!1),P=e.ref(""),m=e.ref(null),E=e.ref(0),y=e.ref(null),A=e.ref(null),F=e.ref(null),O=e.ref(null),z=e.ref(null),I=e.ref(0),R=e.ref(0),M=e.ref(0),t=e.computed({get:()=>q(),set:l=>l});function q(){const l=te.useNestedProp({userConfig:v.config,defaultConfig:re});return l.theme?{...te.useNestedProp({userConfig:r.themes.vue_ui_rings[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>v.config,l=>{t.value=q(),D(),I.value+=1,R.value+=1,M.value+=1},{deep:!0});const N=e.ref(null);e.onMounted(()=>{D()});function D(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((l,a)=>{l.values.length||r.error({componentName:"VueUiRings",type:"dataset"}),r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=Z.throttle(()=>{const{width:a,height:o}=Z.useResponsive({chart:y.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?F.value:null,source:O.value,noTitle:z.value});s.value.width=a,s.value.height=o});N.value=new ResizeObserver(l),N.value.observe(y.value.parentNode)}setTimeout(()=>{k.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:U,isImaging:H,generatePdf:W,generateImage:G}=ee.usePrinter({elementId:`rings_${C.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),ue=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),j=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),g=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),se=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function _(l){i.value.includes(l)?i.value=i.value.filter(a=>a!==l):i.value.push(l),ae("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const ie=e.computed(()=>Math.max(...$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l)));function X(l){return l/ie.value}const $=e.computed(()=>v.dataset.map(({values:l,name:a,color:o=null},n)=>{const u=r.sanitizeArray(l).reduce((h,w)=>h+w,0);return{name:a,color:o||r.convertColorToHex(o)||j.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,he)=>w+he,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),Y=e.computed(()=>$.value.map(l=>({...l,shape:"circle",opacity:i.value.includes(l.uid)?.5:1,segregate:()=>_(l.uid),isSegregated:i.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),ce=e.computed(()=>({cy:"rings-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),p=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>$.value.filter(l=>!i.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:n},u)=>({uid:n,name:l,color:o||r.convertColorToHex(o)||j.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:X(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*X(a)})).toSorted((l,a)=>a.value-l.value));function de(){return c.value.map(({name:l,color:a,value:o,absoluteValues:n,percentage:u})=>({name:l,color:a,value:o,absoluteValues:n,percentage:u}))}const d=e.computed(()=>se.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ve(l,a){if(i.value.length===v.dataset.length)return;L.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))P.value=n({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<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>`,u+=`<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>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
2
+ </b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),P.value=u}x.value=!0}const f=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=f.value.head.map((u,h)=>[{color:u.color,name:u.name},r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(f.value.body[h]/p.value)?"-":(f.value.body[h]/p.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={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},n=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:n}});function J(){e.nextTick(()=>{const l=f.value.head.map((n,u)=>[[n.name],[f.value.body[u]],[isNaN(f.value.body[u]/p.value)?"-":f.value.body[u]/p.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const b=e.ref(!1);function pe(l){b.value=l,E.value+=1}function K(){g.value.showTable=!g.value.showTable}function Q(){g.value.showTooltip=!g.value.showTooltip}const B=e.ref(!1);function V(){B.value=!B.value}return oe({getData:de,generatePdf:W,generateCsv:J,generateImage:G,toggleTable:K,toggleTooltip:Q,toggleAnnotator:V}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:y,class:e.normalizeClass(`vue-ui-rings ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${C.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,x.value=!1})},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(we.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:V},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ue.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:z,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ge._sfc_main,{key:`title_${I.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&T.value?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:ne,key:`user_options_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(H),uid:C.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:g.value.showTooltip,isFullscreen:b.value,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(W),onGenerateCsv:J,onGenerateImage:e.unref(G),onToggleTable:K,onToggleTooltip:Q,onToggleAnnotator:V},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.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:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ce._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${C.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,Be)],8,$e))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":k.value&&t.value.useCssAnimation,"vue-rings-item-onload":!k.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,Pe),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":k.value&&t.value.useCssAnimation,"vue-rings-item-onload":!k.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${C.value}_${n})`:o.color},null,14,_e),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ve(n,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,x.value=!1})},null,40,Le)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Ne)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(be.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:F},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(ye.Legend,{key:`legend_${M.value}`,legendSet:Y.value,config:ce.value,onClickMarker:a[1]||(a[1]=({legend:o})=>_(o.uid))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>_(o.uid),style:e.normalizeStyle(`opacity:${i.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),i.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",Fe," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ae," ("+e.toDisplayString(isNaN(o.value/p.value)?"-":e.unref(r.dataLabel)({v:o.value/p.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ee)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Y.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(fe._sfc_main,{show:g.value.showTooltip&&x.value&&i.value.length<v.dataset.length,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:P.value,isFullscreen:b.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),T.value?(e.openBlock(),e.createBlock(ke.default,{key:8,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(me.DataTable,{key:`table_${R.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.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]=o=>g.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Oe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,xe))}},Ie=Te._export_sfc(ze,[["__scopeId","data-v-55a9dc26"]]);exports.default=Ie;
@@ -1,17 +1,17 @@
1
1
  import { computed as m, ref as h, watch as Ze, onMounted as et, onBeforeUnmount as tt, openBlock as o, createElementBlock as u, normalizeClass as De, normalizeStyle as U, createBlock as Y, createCommentVNode as c, unref as v, createSlots as lt, withCtx as _, renderSlot as M, normalizeProps as Q, guardReactiveProps as Z, createVNode as he, createElementVNode as d, Fragment as P, renderList as X, toDisplayString as $, createTextVNode as at, nextTick as ot } from "vue";
2
- import { u as st, c as ut, t as rt, a as it, p as q, o as nt, e as pe, b as vt, g as Ye, T as yt, R as ct, W as dt, X as ht, U as pt, s as fe, i as j, v as C, f as W, x as ft, y as gt, q as xt, r as mt } from "./index-DY8hDTi7.js";
2
+ import { u as st, c as ut, t as rt, a as it, p as q, o as nt, e as pe, b as vt, g as Ye, T as yt, R as ct, W as dt, X as ht, U as pt, s as fe, i as j, v as C, f as W, x as ft, y as gt, q as xt, r as mt } from "./index-DnukYspq.js";
3
3
  import { t as bt, u as kt } from "./useResponsive-CoxXLe23.js";
4
- import { _ as _t } from "./Title-BFvWnqI4.js";
5
- import { u as wt, U as Mt } from "./usePrinter-DjAQofRy.js";
6
- import { _ as $t } from "./Tooltip-RHI1EGzy.js";
7
- import { L as Ct } from "./Legend-BRVDmlwW.js";
8
- import { _ as je } from "./Shape-Dwxh0EWa.js";
9
- import { D as zt } from "./DataTable-BuiPd6c1.js";
10
- import At from "./vue-ui-skeleton-FCpm0_eE.js";
11
- import St from "./vue-ui-accordion-xK9e3wkz.js";
12
- import { u as Ve } from "./useNestedProp-lhL30X68.js";
13
- import { _ as Lt } from "./PackageVersion-BT4zkGPO.js";
14
- import { P as Tt } from "./PenAndPaper-BFq1cFfJ.js";
4
+ import { _ as _t } from "./Title-Cnl9ySNH.js";
5
+ import { u as wt, U as Mt } from "./usePrinter-DVIALk5e.js";
6
+ import { _ as $t } from "./Tooltip-DEAOBZ8h.js";
7
+ import { L as Ct } from "./Legend-BWDoQii_.js";
8
+ import { _ as je } from "./Shape-xrlfL_v4.js";
9
+ import { D as zt } from "./DataTable-D_w08xos.js";
10
+ import At from "./vue-ui-skeleton-CXdyOF4T.js";
11
+ import St from "./vue-ui-accordion-f9NTID9e.js";
12
+ import { u as Ve } from "./useNestedProp-CVOQGx-X.js";
13
+ import { _ as Lt } from "./PackageVersion-CH6MCx6T.js";
14
+ import { P as Tt } from "./PenAndPaper-BWTR3U2d.js";
15
15
  import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xt = { key: 1 }, It = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Dt = { key: 0 }, Yt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], jt = { key: 1 }, Vt = { key: 2 }, Et = ["id"], Gt = ["stop-color"], Rt = ["stop-color"], Ut = ["id"], qt = ["stop-color"], Ht = ["stop-color"], Jt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Kt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Qt = { key: 0 }, Zt = ["d", "stroke", "stroke-width"], el = ["d", "stroke", "stroke-width"], tl = ["d", "stroke", "stroke-width"], ll = ["d", "stroke", "stroke-width"], al = {
17
17
  key: 3,
@@ -121,11 +121,11 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
121
121
  Ye({
122
122
  datasetObject: b,
123
123
  requiredAttributes: ["x", "y"]
124
- }).forEach((J) => {
124
+ }).forEach((K) => {
125
125
  pe({
126
126
  componentName: "VueUiScatter",
127
127
  type: "datasetSerieAttribute",
128
- property: `values.${J}`,
128
+ property: `values.${K}`,
129
129
  index: `${n} - ${E}`
130
130
  });
131
131
  });
@@ -177,11 +177,11 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
177
177
  let s = 0, a = 0, n = 0;
178
178
  for (const g of l.plots)
179
179
  s += (g.x - i) * (g.y - t), a += (g.x - i) ** 2, n += (g.y - t) ** 2;
180
- const b = s / Math.sqrt(a * n), E = b * (Math.sqrt(n) / Math.sqrt(a)), J = t - E * i, N = {
180
+ const b = s / Math.sqrt(a * n), E = b * (Math.sqrt(n) / Math.sqrt(a)), K = t - E * i, N = {
181
181
  x1: r.value.left,
182
182
  x2: r.value.right,
183
- y1: E * r.value.left + J,
184
- y2: E * r.value.right + J,
183
+ y1: E * r.value.left + K,
184
+ y2: E * r.value.right + K,
185
185
  coefficient: b
186
186
  }, w = (N.y2 - N.y1) / (N.x2 - N.x1), T = N.y1 - w * N.x1, F = Math.min(A.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (r.value.top - T) / w)), se = {
187
187
  x: F,
@@ -217,7 +217,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
217
217
  t.forEach(({ x: k, y: R }) => {
218
218
  s = Math.min(s, k), a = Math.max(a, k), n = Math.min(n, R), b = Math.max(b, R);
219
219
  });
220
- const E = a - s, J = b - n, N = E / i, w = J / i, T = Array(i).fill(0), F = Array(i).fill(0);
220
+ const E = a - s, K = b - n, N = E / i, w = K / i, T = Array(i).fill(0), F = Array(i).fill(0);
221
221
  t.forEach(({ x: k, y: R }) => {
222
222
  const ce = Math.floor((k - s) / N), de = Math.floor((R - n) / w);
223
223
  T[ce] || (T[ce] = 0), F[de] || (F[de] = 0), T[ce] += 1, F[de] += 1;
@@ -342,9 +342,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
342
342
  breakpoint: e.value.table.responsiveBreakpoint
343
343
  };
344
344
  return { head: l, body: i, config: t, colNames: l };
345
- }), K = h(!1);
345
+ }), J = h(!1);
346
346
  function Qe(l) {
347
- K.value = l, ge.value += 1;
347
+ J.value = l, ge.value += 1;
348
348
  }
349
349
  function Xe() {
350
350
  I.value.showTable = !I.value.showTable;
@@ -365,7 +365,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
365
365
  toggleTooltip: Ie,
366
366
  toggleAnnotator: ve
367
367
  }), (l, i) => (o(), u("div", {
368
- class: De(`vue-ui-scatter ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
368
+ class: De(`vue-ui-scatter ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
369
369
  ref_key: "scatterChart",
370
370
  ref: H,
371
371
  id: `vue-ui-scatter_${z.value}`,
@@ -422,7 +422,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
422
422
  hasTable: e.value.userOptions.buttons.table,
423
423
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
424
424
  isTooltip: I.value.showTooltip,
425
- isFullscreen: K.value,
425
+ isFullscreen: J.value,
426
426
  titles: { ...e.value.userOptions.buttonTitles },
427
427
  chartElement: H.value,
428
428
  position: e.value.userOptions.position,
@@ -489,7 +489,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
489
489
  ee.value ? (o(), u("svg", {
490
490
  key: 4,
491
491
  xmlns: v(ht),
492
- class: De({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
492
+ class: De({ "vue-data-ui-fullscreen--on": J.value, "vue-data-ui-fulscreen--off": !J.value }),
493
493
  viewBox: `0 0 ${A.value.width <= 0 ? 10 : A.value.width} ${A.value.height <= 0 ? 10 : A.value.height}`,
494
494
  style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
495
495
  }, [
@@ -931,6 +931,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
931
931
  offsetY: e.value.style.tooltip.offsetY,
932
932
  parent: H.value,
933
933
  content: re.value,
934
+ isFullscreen: J.value,
934
935
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
935
936
  }, {
936
937
  "tooltip-before": _(() => [
@@ -952,7 +953,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
952
953
  ])) : c("", !0)
953
954
  ]),
954
955
  _: 3
955
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
956
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
956
957
  ee.value ? (o(), Y(St, {
957
958
  key: 8,
958
959
  hideDetails: "",
@@ -997,7 +998,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], Wt = { key: 0 }, Ot = ["x1", "x2",
997
998
  }, 8, ["config"])) : c("", !0)
998
999
  ], 14, Nt));
999
1000
  }
1000
- }, Rl = /* @__PURE__ */ Bt(Ll, [["__scopeId", "data-v-0648a715"]]);
1001
+ }, Rl = /* @__PURE__ */ Bt(Ll, [["__scopeId", "data-v-ff36ff41"]]);
1001
1002
  export {
1002
1003
  Rl as default
1003
1004
  };