vue-data-ui 2.4.51 → 2.4.52

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 (178) hide show
  1. package/dist/{Arrow-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
  2. package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
  3. package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
  4. package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
  5. package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
  6. package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
  7. package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
  8. package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
  9. package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
  10. package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
  11. package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
  12. package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
  13. package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
  14. package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
  15. package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
  16. package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
  17. package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
  18. package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
  19. package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
  20. package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
  21. package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
  22. package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
  25. package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
  26. package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
  27. package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
  28. package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
  29. package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
  33. package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
  34. package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
  35. package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
  36. package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
  38. package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
  39. package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
  40. package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
  41. package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
  42. package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
  44. package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
  45. package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
  46. package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
  47. package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
  48. package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
  49. package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
  51. package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
  52. package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
  53. package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
  54. package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
  55. package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
  56. package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
  57. package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
  58. package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
  60. package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
  61. package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
  62. package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
  63. package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
  64. package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
  65. package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
  66. package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
  67. package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
  68. package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
  69. package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
  70. package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
  71. package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
  72. package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
  73. package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
  74. package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
  75. package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
  78. package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
  79. package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
  80. package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
  82. package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
  83. package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
  84. package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
  85. package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
  86. package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
  87. package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
  88. package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
  89. package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
  91. package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
  92. package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
  93. package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
  94. package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
  95. package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
  96. package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
  97. package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
  98. package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
  99. package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
  100. package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
  101. package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
  102. package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
  103. package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
  106. package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
  107. package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
  115. package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
  116. package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
  117. package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
  118. package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
  120. package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
  121. package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
  122. package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
  123. package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
  124. package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
  125. package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
  126. package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
  127. package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
  128. package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
  130. package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
  131. package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
  132. package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
  133. package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
  134. package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
  135. package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
  136. package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
  137. package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
  138. package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
  139. package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
  140. package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
  141. package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
  142. package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
  143. package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
  144. package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
  146. package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
  147. package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
  148. package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
  149. package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
  152. package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
  153. package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
  154. package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
  155. package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
  156. package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
  157. package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
  158. package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
  159. package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
  160. package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
  161. package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
  162. package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
  163. package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
  164. package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
  165. package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
  166. package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
  167. package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
  168. package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
  169. package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
  170. package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
  171. package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
  173. package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
  174. package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
  175. package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
  176. package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
  177. package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
  178. package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
@@ -1,15 +1,15 @@
1
- import { toRef as ue, resolveComponent as ce, openBlock as a, createElementBlock as r, Fragment as m, renderList as z, withModifiers as M, createBlock as F, createCommentVNode as y, createElementVNode as w, toDisplayString as Ie, normalizeStyle as _, createVNode as O, computed as N, onMounted as tt, ref as f, watch as ot, normalizeClass as Oe, unref as b, createSlots as lt, withCtx as C, renderSlot as $, normalizeProps as W, guardReactiveProps as q, createTextVNode as at, nextTick as Le } from "vue";
2
- import { u as nt, o as st, e as rt, c as Ue, t as it, a as ut, p as De, b as ct, X as dt, l as vt, O as ft, q as pt, r as ht, x as gt, y as yt } from "./index-BbPeL8Gp.js";
3
- import { _ as mt } from "./Title-aSAft5dl.js";
4
- import { u as bt, U as kt } from "./usePrinter-DaybDVqP.js";
5
- import { D as Ct } from "./DataTable-DGf6RrOJ.js";
6
- import { _ as $t } from "./Tooltip-smutPF--.js";
7
- import Z from "./BaseIcon-CmiukQBl.js";
8
- import xt from "./vue-ui-skeleton-Bniq21d9.js";
9
- import wt from "./vue-ui-accordion-5d5iVpr7.js";
10
- import { u as Ae } from "./useNestedProp-BN8claGG.js";
11
- import { _ as Pt } from "./PackageVersion-CxJghxYD.js";
12
- import { P as Tt } from "./PenAndPaper-ZdZEumki.js";
1
+ import { toRef as ce, resolveComponent as de, openBlock as a, createElementBlock as r, Fragment as m, renderList as z, withModifiers as M, createBlock as F, createCommentVNode as y, createElementVNode as w, toDisplayString as Ie, normalizeStyle as _, createVNode as O, computed as N, onMounted as tt, ref as f, watch as ot, normalizeClass as Oe, unref as b, createSlots as lt, withCtx as C, renderSlot as $, normalizeProps as W, guardReactiveProps as q, createTextVNode as at, nextTick as Le } from "vue";
2
+ import { u as nt, o as st, e as rt, c as Ue, t as it, a as ut, p as De, b as ct, X as dt, l as vt, O as ft, q as pt, r as ht, x as gt, y as yt } from "./index-K5uyh1gA.js";
3
+ import { _ as mt } from "./Title-aMb2ETf7.js";
4
+ import { u as bt, U as kt } from "./usePrinter-p_ZZlGc9.js";
5
+ import { D as Ct } from "./DataTable-COkA4Nyz.js";
6
+ import { _ as $t } from "./Tooltip-BRZ3DT4p.js";
7
+ import Z from "./BaseIcon-zmxwsaLW.js";
8
+ import xt from "./vue-ui-skeleton-BhA2lIT6.js";
9
+ import wt from "./vue-ui-accordion-CsJT7Az3.js";
10
+ import { u as Ae } from "./useNestedProp-DifqJZAs.js";
11
+ import { _ as Pt } from "./PackageVersion-Dz3KcTL4.js";
12
+ import { P as Tt } from "./PenAndPaper-BycdTwSP.js";
13
13
  import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMouseover"], Ot = {
@@ -49,12 +49,12 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
49
49
  function d(s) {
50
50
  x("hover", s);
51
51
  }
52
- return ue(k, "dataset").value.forEach((s) => {
52
+ return ce(k, "dataset").value.forEach((s) => {
53
53
  s.nodes && s.nodes.length > 0 && s.nodes.forEach((v) => {
54
54
  v.ancestor = s;
55
55
  });
56
56
  }), (s, v) => {
57
- const S = ce("RecursiveCircles", !0);
57
+ const S = de("RecursiveCircles", !0);
58
58
  return a(!0), r(m, null, z(n.dataset, (p) => (a(), r(m, null, [
59
59
  p.polygonPath && p.polygonPath.coordinates ? (a(), r(m, { key: 0 }, [
60
60
  (a(!0), r(m, null, z(p.polygonPath.coordinates, (U, J) => (a(), r("circle", {
@@ -100,12 +100,12 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
100
100
  }
101
101
  },
102
102
  setup(n) {
103
- return ue(n, "dataset").value.forEach((c) => {
103
+ return ce(n, "dataset").value.forEach((c) => {
104
104
  c.nodes && c.nodes.length > 0 && c.nodes.forEach((d) => {
105
105
  d.ancestor = c;
106
106
  });
107
107
  }), (c, d) => {
108
- const L = ce("RecursiveLinks", !0);
108
+ const L = de("RecursiveLinks", !0);
109
109
  return a(), r(m, null, [
110
110
  (a(!0), r(m, null, z(n.dataset, (s) => (a(), r(m, null, [
111
111
  s.polygonPath && s.polygonPath.coordinates ? (a(!0), r(m, { key: 0 }, z(s.polygonPath.coordinates, (v, S) => (a(), r(m, null, [
@@ -160,12 +160,12 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
160
160
  },
161
161
  emits: ["zoom", "hover"],
162
162
  setup(n, { emit: x }) {
163
- return ue(n, "dataset").value.forEach((d) => {
163
+ return ce(n, "dataset").value.forEach((d) => {
164
164
  d.nodes && d.nodes.length > 0 && d.nodes.forEach((L) => {
165
165
  L.ancestor = d;
166
166
  });
167
167
  }), (d, L) => {
168
- const s = ce("RecursiveLabels", !0);
168
+ const s = de("RecursiveLabels", !0);
169
169
  return a(!0), r(m, null, z(n.dataset, (v) => (a(), r(m, null, [
170
170
  v.polygonPath && v.polygonPath.coordinates ? (a(), r(m, { key: 0 }, [
171
171
  (a(!0), r(m, null, z(v.polygonPath.coordinates, (S) => (a(), r("text", {
@@ -301,10 +301,10 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
301
301
  type: "dataset"
302
302
  });
303
303
  }
304
- const s = f(Ue()), v = f(null), S = f(!1), p = f(""), U = f(null), J = f(null), D = f(!1), P = f(null), de = f(null), ee = f(0), ve = f(0), fe = f(0), t = N({
304
+ const s = f(Ue()), v = f(null), S = f(!1), p = f(""), U = f(null), J = f(null), D = f(!1), P = f(null), ve = f(null), ee = f(0), fe = f(0), pe = f(0), t = N({
305
305
  get: () => ye(),
306
306
  set: (e) => e
307
- }), { userOptionsVisible: pe, setUserOptionsVisibility: he, keepUserOptionState: ge } = Ft({ config: t.value });
307
+ }), { userOptionsVisible: te, setUserOptionsVisibility: he, keepUserOptionState: ge } = Ft({ config: t.value });
308
308
  function ye() {
309
309
  const e = Ae({
310
310
  userConfig: k.config,
@@ -319,7 +319,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
319
319
  } : e;
320
320
  }
321
321
  ot(() => k.config, (e) => {
322
- t.value = ye(), L(), ve.value += 1, fe.value += 1;
322
+ t.value = ye(), te.value = !t.value.showOnChartHover, L(), fe.value += 1, pe.value += 1;
323
323
  }, { deep: !0 });
324
324
  const { isPrinting: me, isImaging: be, generatePdf: ke, generateImage: Ce } = bt({
325
325
  elementId: `cluster_${s.value}`,
@@ -342,29 +342,29 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
342
342
  width: l
343
343
  };
344
344
  }
345
- const A = f(Be()), te = f(`0 0 ${A.value.width} ${A.value.height}`);
345
+ const A = f(Be()), oe = f(`0 0 ${A.value.width} ${A.value.height}`);
346
346
  function xe(e, o = { x: -A.value.width / 2.43, y: A.value.height / 2 }, l = A.value.width / 1.1, u = 24, i = 0, h = 0, G = "#BBBBBB") {
347
347
  if (e && e.length > 0) {
348
- const re = ft({
348
+ const ie = ft({
349
349
  plot: o,
350
350
  radius: l,
351
351
  sides: e.length,
352
352
  rotation: i
353
353
  });
354
354
  e.forEach((g, B) => {
355
- const j = re.coordinates[B];
355
+ const j = ie.coordinates[B];
356
356
  let I;
357
357
  if (g.ancestor ? g.ancestor.ancestor ? I = g.ancestor.color || G : (I = ze.value[h] || De[h] || G, h += 1) : I = G, g.polygonPath = {
358
358
  coordinates: [j]
359
359
  }, g.circleRadius = u, g.color = I, g.uid = Ue(), g.nodes && g.nodes.length > 0) {
360
- const ie = !g.ancestor || !g.ancestor.ancestor ? h : 0;
360
+ const ue = !g.ancestor || !g.ancestor.ancestor ? h : 0;
361
361
  g.nodes = xe(
362
362
  g.nodes,
363
363
  j,
364
364
  l / 2.9,
365
365
  u / 2.2,
366
366
  i + Math.PI * B / g.nodes.length,
367
- ie,
367
+ ue,
368
368
  I
369
369
  );
370
370
  }
@@ -386,43 +386,43 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
386
386
  }), u;
387
387
  }
388
388
  const He = N(() => Me(R.value)), R = N(() => xe(k.dataset));
389
- function oe() {
390
- D.value = !1, J.value = null, de.value = null, P.value = null, ae({
389
+ function le() {
390
+ D.value = !1, J.value = null, ve.value = null, P.value = null, ne({
391
391
  polygonPath: {
392
392
  coordinates: [{ x: A.value.width / 2, y: A.value.height / 2 }]
393
393
  },
394
394
  circleRadius: 24
395
395
  });
396
396
  }
397
- const le = f(null);
398
- function ae(e) {
397
+ const ae = f(null);
398
+ function ne(e) {
399
399
  U.value.focus(), Le(() => {
400
- le.value && cancelAnimationFrame(le.value);
401
- const o = te.value.split(" "), l = parseFloat(o[0]), u = parseFloat(o[1]), i = parseFloat(o[2]), h = parseFloat(o[3]), { x: G, y: re } = e.polygonPath.coordinates[0], { circleRadius: g } = e, B = 8.34, j = G - g * B, I = re - g * B, ie = g * B * 2, Ze = g * B * 2, Je = Math.sqrt((j - l) ** 2 + (I - u) ** 2), Y = Math.min(1200, Math.max(20, Math.floor(Je / 10))), Ke = (j - l) / Y, Qe = (I - u) / Y, _e = (ie - i) / Y, et = (Ze - h) / Y;
400
+ ae.value && cancelAnimationFrame(ae.value);
401
+ const o = oe.value.split(" "), l = parseFloat(o[0]), u = parseFloat(o[1]), i = parseFloat(o[2]), h = parseFloat(o[3]), { x: G, y: ie } = e.polygonPath.coordinates[0], { circleRadius: g } = e, B = 8.34, j = G - g * B, I = ie - g * B, ue = g * B * 2, Ze = g * B * 2, Je = Math.sqrt((j - l) ** 2 + (I - u) ** 2), Y = Math.min(1200, Math.max(20, Math.floor(Je / 10))), Ke = (j - l) / Y, Qe = (I - u) / Y, _e = (ue - i) / Y, et = (Ze - h) / Y;
402
402
  let V = 0;
403
403
  function Se() {
404
- te.value = `${l + Ke * V} ${u + Qe * V} ${i + _e * V} ${h + et * V}`, V += t.value.style.chart.zoom.speed, V <= Y && (le.value = requestAnimationFrame(Se));
404
+ oe.value = `${l + Ke * V} ${u + Qe * V} ${i + _e * V} ${h + et * V}`, V += t.value.style.chart.zoom.speed, V <= Y && (ae.value = requestAnimationFrame(Se));
405
405
  }
406
406
  Se();
407
407
  });
408
408
  }
409
409
  function Ee(e) {
410
- J.value === e.uid ? oe() : (J.value = e.uid, de.value = e, P.value = {
410
+ J.value === e.uid ? le() : (J.value = e.uid, ve.value = e, P.value = {
411
411
  circleRadius: e.circleRadius,
412
412
  polygonPath: {
413
413
  coordinates: [{ x: e.polygonPath.coordinates[0].x, y: e.polygonPath.coordinates[0].y }]
414
414
  }
415
- }, ae(e), D.value = e.uid !== R.value[0].uid);
415
+ }, ne(e), D.value = e.uid !== R.value[0].uid);
416
416
  }
417
417
  function Ve(e) {
418
418
  if (e.target.nodeName !== "circle")
419
- oe(), D.value = !1;
419
+ le(), D.value = !1;
420
420
  else
421
421
  return;
422
422
  }
423
- const ne = f(null);
423
+ const se = f(null);
424
424
  function Xe(e) {
425
- ne.value = {
425
+ se.value = {
426
426
  datapoint: e,
427
427
  seriesIndex: -1,
428
428
  series: R.value,
@@ -452,7 +452,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
452
452
  we.value = e, e ? (S.value = !0, Xe(e), X.value = e.uid) : (S.value = !1, p.value = "", X.value = null);
453
453
  }
454
454
  function K(e) {
455
- e === "right" && (P.value.polygonPath.coordinates[0].x += P.value.circleRadius), e === "left" && (P.value.polygonPath.coordinates[0].x -= P.value.circleRadius), e === "top" && (P.value.polygonPath.coordinates[0].y -= P.value.circleRadius), e === "bottom" && (P.value.polygonPath.coordinates[0].y += P.value.circleRadius), ae(P.value);
455
+ e === "right" && (P.value.polygonPath.coordinates[0].x += P.value.circleRadius), e === "left" && (P.value.polygonPath.coordinates[0].x -= P.value.circleRadius), e === "top" && (P.value.polygonPath.coordinates[0].y -= P.value.circleRadius), e === "bottom" && (P.value.polygonPath.coordinates[0].y += P.value.circleRadius), ne(P.value);
456
456
  }
457
457
  function je(e) {
458
458
  const o = [];
@@ -528,7 +528,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
528
528
  T.value.showTooltip = !T.value.showTooltip;
529
529
  }
530
530
  const Q = f(!1);
531
- function se() {
531
+ function re() {
532
532
  Q.value = !Q.value;
533
533
  }
534
534
  return x({
@@ -539,7 +539,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
539
539
  toggleTable: Te,
540
540
  toggleLabels: Fe,
541
541
  toggleTooltip: Re,
542
- toggleAnnotator: se
542
+ toggleAnnotator: re
543
543
  }), (e, o) => (a(), r("div", {
544
544
  ref_key: "moleculeChart",
545
545
  ref: U,
@@ -557,12 +557,12 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
557
557
  backgroundColor: t.value.style.chart.backgroundColor,
558
558
  color: t.value.style.chart.color,
559
559
  active: Q.value,
560
- onClose: se
560
+ onClose: re
561
561
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
562
562
  Ne.value ? (a(), r("div", Mt, null, 512)) : y("", !0),
563
563
  t.value.style.chart.title.text ? (a(), r("div", Ht, [
564
564
  (a(), F(mt, {
565
- key: `title_${ve.value}`,
565
+ key: `title_${fe.value}`,
566
566
  config: {
567
567
  title: {
568
568
  cy: "molecule-div-title",
@@ -575,7 +575,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
575
575
  }
576
576
  }, null, 8, ["config"]))
577
577
  ])) : y("", !0),
578
- t.value.userOptions.show && d.value && (b(ge) || b(pe)) ? (a(), F(kt, {
578
+ t.value.userOptions.show && d.value && (b(ge) || b(te)) ? (a(), F(kt, {
579
579
  ref_key: "details",
580
580
  ref: v,
581
581
  key: `user_options_${ee.value}`,
@@ -604,9 +604,9 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
604
604
  onToggleTable: Te,
605
605
  onToggleLabels: Fe,
606
606
  onToggleTooltip: Re,
607
- onToggleAnnotator: se,
607
+ onToggleAnnotator: re,
608
608
  style: _({
609
- visibility: b(ge) ? b(pe) ? "visible" : "hidden" : "visible"
609
+ visibility: b(ge) ? b(te) ? "visible" : "hidden" : "visible"
610
610
  })
611
611
  }, lt({ _: 2 }, [
612
612
  e.$slots.optionTooltip ? {
@@ -669,7 +669,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
669
669
  d.value ? (a(), r("svg", {
670
670
  key: 4,
671
671
  xmlns: b(dt),
672
- viewBox: te.value,
672
+ viewBox: oe.value,
673
673
  class: Oe({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
674
674
  style: _(`overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
675
675
  onClick: o[0] || (o[0] = M((l) => Ve(l), ["stop"]))
@@ -724,7 +724,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
724
724
  onMoveTop: o[3] || (o[3] = (l) => K("top")),
725
725
  onMoveBottom: o[4] || (o[4] = (l) => K("bottom")),
726
726
  onReset: o[5] || (o[5] = (l) => {
727
- oe(), D.value = !1;
727
+ le(), D.value = !1;
728
728
  })
729
729
  }, null, 8, ["color", "isFullscreen"])) : y("", !0),
730
730
  e.$slots.watermark ? (a(), r("div", jt, [
@@ -762,10 +762,10 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
762
762
  isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
763
763
  }, {
764
764
  "tooltip-before": C(() => [
765
- $(e.$slots, "tooltip-before", W(q({ ...ne.value })), void 0, !0)
765
+ $(e.$slots, "tooltip-before", W(q({ ...se.value })), void 0, !0)
766
766
  ]),
767
767
  "tooltip-after": C(() => [
768
- $(e.$slots, "tooltip-after", W(q({ ...ne.value })), void 0, !0)
768
+ $(e.$slots, "tooltip-after", W(q({ ...se.value })), void 0, !0)
769
769
  ]),
770
770
  _: 3
771
771
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -787,7 +787,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
787
787
  }, {
788
788
  content: C(() => [
789
789
  (a(), F(Ct, {
790
- key: `table_${fe.value}`,
790
+ key: `table_${pe.value}`,
791
791
  colNames: H.value.colNames,
792
792
  head: H.value.head,
793
793
  body: H.value.body,
@@ -811,7 +811,7 @@ const St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick", "onMou
811
811
  }, 8, ["config"])) : y("", !0)
812
812
  ], 46, Bt));
813
813
  }
814
- }, uo = /* @__PURE__ */ Rt(qt, [["__scopeId", "data-v-80836f0f"]]);
814
+ }, uo = /* @__PURE__ */ Rt(qt, [["__scopeId", "data-v-8277f51b"]]);
815
815
  export {
816
816
  uo as default
817
817
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-BkXYJDpD.cjs"),Le=require("./Title-B7ruS8yl.cjs"),pe=require("./usePrinter-DHv-BwME.cjs"),ze=require("./DataTable-CwAdpLng.cjs"),Oe=require("./Tooltip-BqSN71SL.cjs"),z=require("./BaseIcon-CfhoS_qC.cjs"),Ue=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Me=require("./vue-ui-accordion-kr18wKfc.cjs"),fe=require("./useNestedProp-C6IvqE-r.cjs"),De=require("./PackageVersion-C1F3QLoY.cjs"),Ae=require("./PenAndPaper-DDheVRNG.cjs"),Ie=require("./useUserOptionState-BgepsfED.cjs"),He=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),qe=["cx","cy","r","fill","stroke","stroke-width","onClick","onMouseover"],je={__name:"RecursiveCircles",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null},linkColor:{type:String,default:"#CCCCCC"},stroke:{type:String,default:"#FFFFFF"},strokeHovered:{type:String,default:"#000000"}},emits:["zoom","hover"],setup(r,{emit:g}){const h=r;function u(a){g("zoom",a)}function c(a){g("hover",a)}return e.toRef(h,"dataset").value.forEach(a=>{a.nodes&&a.nodes.length>0&&a.nodes.forEach(d=>{d.ancestor=a})}),(a,d)=>{const C=e.resolveComponent("RecursiveCircles",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,v=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.polygonPath&&v.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.polygonPath.coordinates,(w,O)=>(e.openBlock(),e.createElementBlock("circle",{cx:w.x,cy:w.y,r:v.circleRadius,fill:`url(#gradient_${v.color})`,stroke:r.hoveredUid&&r.hoveredUid===v.uid?r.strokeHovered:r.stroke,"stroke-width":r.hoveredUid&&r.hoveredUid===v.uid?v.circleRadius/6:v.circleRadius/12,style:{cursor:"pointer"},onClick:e.withModifiers(x=>u(v),["stop"]),onMouseover:x=>c(v),onMouseleave:d[0]||(d[0]=x=>c(null))},null,40,qe))),256)),v.nodes&&v.nodes.length>0?(e.openBlock(),e.createBlock(C,{key:0,dataset:v.nodes,color:r.color,stroke:r.stroke,strokeHovered:r.strokeHovered,hoveredUid:r.hoveredUid,onZoom:u,onHover:c},null,8,["dataset","color","stroke","strokeHovered","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}},Ge=["x1","y1","x2","y2","stroke","stroke-width"],Xe=["x1","y1","x2","y2","stroke","stroke-width"],Ye={__name:"RecursiveLinks",props:{dataset:{type:Array,default:()=>[]},color:{type:String,default:"#DDDDDD"},backgroundColor:{type:String,default:"#FFFFFF"}},setup(r){const g=r;return e.toRef(g,"dataset").value.forEach(u=>{u.nodes&&u.nodes.length>0&&u.nodes.forEach(c=>{c.ancestor=u})}),(u,c)=>{const B=e.resolveComponent("RecursiveLinks",!0);return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.polygonPath&&a.polygonPath.coordinates?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.polygonPath.coordinates,(d,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.ancestor&&a.ancestor.polygonPath?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("line",{x1:d.x,y1:d.y,x2:a.ancestor.polygonPath.coordinates[0].x,y2:a.ancestor.polygonPath.coordinates[0].y,stroke:r.backgroundColor,"stroke-width":a.circleRadius/1.5},null,8,Ge),e.createElementVNode("line",{x1:d.x,y1:d.y,x2:a.ancestor.polygonPath.coordinates[0].x,y2:a.ancestor.polygonPath.coordinates[0].y,stroke:r.color,"stroke-width":a.circleRadius/2},null,8,Xe)],64)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.polygonPath&&a.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.nodes&&a.nodes.length>0?(e.openBlock(),e.createBlock(B,{key:0,dataset:a.nodes,color:r.color,backgroundColor:r.backgroundColor},null,8,["dataset","color","backgroundColor"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256))],64)}}},We=["x","y","fill","font-size"],Ze={__name:"RecursiveLabels",props:{color:{type:String,default:"#000000"},dataset:{type:Array,default:()=>[]},hoveredUid:{type:String,default:null}},emits:["zoom","hover"],setup(r,{emit:g}){const h=r;return e.toRef(h,"dataset").value.forEach(c=>{c.nodes&&c.nodes.length>0&&c.nodes.forEach(B=>{B.ancestor=c})}),(c,B)=>{const a=e.resolveComponent("RecursiveLabels",!0);return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataset,d=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.polygonPath&&d.polygonPath.coordinates?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.polygonPath.coordinates,C=>(e.openBlock(),e.createElementBlock("text",{x:C.x,y:C.y+d.circleRadius*2,fill:r.color,"font-size":d.circleRadius,"text-anchor":"middle",style:{opacity:"0.8","pointer-events":"none"}},e.toDisplayString(d.name),9,We))),256)),d.nodes&&d.nodes.length>0?(e.openBlock(),e.createBlock(a,{key:0,dataset:d.nodes,color:r.color,hoveredUid:r.hoveredUid},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),256)}}},Je={style:{position:"relative",height:"100%",width:"100%"}},Ke={__name:"BaseDirectionPad",props:{color:{type:String,default:"#FF0000"},isFullscreen:{type:Boolean,default:!1}},emits:["moveLeft","moveTop","moveRight","moveBottom","reset"],setup(r,{emit:g}){return(h,u)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`position: ${r.isFullscreen?"fixed":"absolute"};bottom:0;right:${r.isFullscreen?"12px":"0"};width:80px;height:80px`),"data-html2canvas-ignore":""},[e.createElementVNode("div",Je,[e.createElementVNode("button",{onClick:u[0]||(u[0]=e.withModifiers(c=>g("moveLeft"),["stop"])),style:{position:"absolute",left:"0",top:"50%",transform:"translateY(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowLeft",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[1]||(u[1]=e.withModifiers(c=>g("moveTop"),["stop"])),style:{position:"absolute",top:"0",left:"50%",transform:"translateX(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowTop",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[2]||(u[2]=e.withModifiers(c=>g("moveRight"),["stop"])),style:{position:"absolute",right:"0",top:"50%",transform:"translateY(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowRight",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[3]||(u[3]=e.withModifiers(c=>g("moveBottom"),["stop"])),style:{position:"absolute",bottom:"0",left:"50%",transform:"translateX(-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"arrowBottom",style:{cursor:"pointer"}},null,8,["stroke"])]),e.createElementVNode("button",{onClick:u[4]||(u[4]=e.withModifiers(c=>g("reset"),["stop"])),style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",height:"24px",width:"24px",padding:"0",background:"transparent",border:"none",display:"flex","align-items":"center","justify-content":"center"}},[e.createVNode(z.default,{stroke:r.color,name:"close",style:{cursor:"pointer"},strokeWidth:2},null,8,["stroke"])])])],4))}},Qe=["id"],_e={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},et={key:2,style:"width:100%;background:transparent;"},tt=["xmlns","viewBox"],ot=["id"],lt=["stop-color"],nt=["stop-color"],rt={key:6,class:"vue-data-ui-watermark"},at={key:8,ref:"source",dir:"auto"},st=["innerHTML"],it={__name:"vue-ui-molecule",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(r,{expose:g}){const h=r,{vue_ui_molecule:u}=m.useConfig(),c=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{B()});function B(){m.objectIsEmpty(h.dataset)&&m.error({componentName:"VueUiMolecule",type:"dataset"})}const a=e.ref(m.createUid()),d=e.ref(null),C=e.ref(!1),v=e.ref(""),w=e.ref(null),O=e.ref(null),x=e.ref(!1),y=e.ref(null),Z=e.ref(null),D=e.ref(0),J=e.ref(0),K=e.ref(0),o=e.computed({get:()=>ee(),set:t=>t}),{userOptionsVisible:A,setUserOptionsVisibility:Q,keepUserOptionState:_}=Ie.useUserOptionState({config:o.value});function ee(){const t=fe.useNestedProp({userConfig:h.config,defaultConfig:u});return t.theme?{...fe.useNestedProp({userConfig:m.themes.vue_ui_molecule[t.theme]||h.config,defaultConfig:t}),customPalette:m.themePalettes[t.theme]||m.palette}:t}e.watch(()=>h.config,t=>{o.value=ee(),A.value=!o.value.showOnChartHover,B(),J.value+=1,K.value+=1},{deep:!0});const{isPrinting:te,isImaging:oe,generatePdf:le,generateImage:ne}=pe.usePrinter({elementId:`cluster_${a.value}`,fileName:o.value.style.chart.title.text||"vue-ui-molecule"}),me=e.computed(()=>o.value.userOptions.show&&!o.value.style.chart.title.text),he=e.computed(()=>m.convertCustomPalette(o.value.customPalette)),k=e.ref({showTable:o.value.table.show,showDataLabels:!0,showTooltip:o.value.style.chart.tooltip.show});function re(t,l=0){return Array.isArray(t)&&t.length>0&&t[0].nodes?re(t[0].nodes,l+1):l}function ge(){const t=re(h.dataset);let l=100,n=l;for(let i=0;i<t;i+=1)l/=1,n+=l;return{height:n,width:n}}const $=e.ref(ge()),I=e.ref(`0 0 ${$.value.width} ${$.value.height}`);function ae(t,l={x:-$.value.width/2.43,y:$.value.height/2},n=$.value.width/1.1,i=24,s=0,p=0,V="#BBBBBB"){if(t&&t.length>0){const Y=m.createPolygonPath({plot:l,radius:n,sides:t.length,rotation:s});t.forEach((f,F)=>{const R=Y.coordinates[F];let P;if(f.ancestor?f.ancestor.ancestor?P=f.ancestor.color||V:(P=he.value[p]||m.palette[p]||V,p+=1):P=V,f.polygonPath={coordinates:[R]},f.circleRadius=i,f.color=P,f.uid=m.createUid(),f.nodes&&f.nodes.length>0){const W=!f.ancestor||!f.ancestor.ancestor?p:0;f.nodes=ae(f.nodes,R,n/2.9,i/2.2,s+Math.PI*F/f.nodes.length,W,P)}})}return t}function ye(t){const l=new Set;function n(s){s.forEach(p=>{p.color&&!l.has(p.color)&&l.add(p.color),p.nodes&&p.nodes.length>0&&n(p.nodes)})}n(t);const i={};return Array.from(l).forEach((s,p)=>{i[s]=`gradient_${p}`}),i}const ke=e.computed(()=>ye(b.value)),b=e.computed(()=>ae(h.dataset));function H(){x.value=!1,O.value=null,Z.value=null,y.value=null,j({polygonPath:{coordinates:[{x:$.value.width/2,y:$.value.height/2}]},circleRadius:24})}const q=e.ref(null);function j(t){w.value.focus(),e.nextTick(()=>{q.value&&cancelAnimationFrame(q.value);const l=I.value.split(" "),n=parseFloat(l[0]),i=parseFloat(l[1]),s=parseFloat(l[2]),p=parseFloat(l[3]),{x:V,y:Y}=t.polygonPath.coordinates[0],{circleRadius:f}=t,F=8.34,R=V-f*F,P=Y-f*F,W=f*F*2,Ne=f*F*2,Te=Math.sqrt((R-n)**2+(P-i)**2),L=Math.min(1200,Math.max(20,Math.floor(Te/10))),Ee=(R-n)/L,Se=(P-i)/L,Ve=(W-s)/L,Re=(Ne-p)/L;let E=0;function ve(){I.value=`${n+Ee*E} ${i+Se*E} ${s+Ve*E} ${p+Re*E}`,E+=o.value.style.chart.zoom.speed,E<=L&&(q.value=requestAnimationFrame(ve))}ve()})}function be(t){O.value===t.uid?H():(O.value=t.uid,Z.value=t,y.value={circleRadius:t.circleRadius,polygonPath:{coordinates:[{x:t.polygonPath.coordinates[0].x,y:t.polygonPath.coordinates[0].y}]}},j(t),x.value=t.uid!==b.value[0].uid)}function Ce(t){if(t.target.nodeName!=="circle")H(),x.value=!1;else return}const G=e.ref(null);function Be(t){G.value={datapoint:t,seriesIndex:-1,series:b.value,config:o.value};const l=o.value.style.chart.tooltip.customFormat;if(m.isFunction(l)&&m.functionReturnsString(()=>l({seriesIndex:-1,datapoint:t,series:b.value,config:o.value})))v.value=l({seriesIndex:-1,datapoint:t,series:b.value,config:o.value});else{let n="";n+=`<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`,t.details&&(n+=`<div style="width:100%;border-top:1px solid ${o.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`),v.value=`<div style="font-family:inherit">${n}</div>`}}const se=e.ref(null),S=e.ref(null);function we(t){se.value=t,t?(C.value=!0,Be(t),S.value=t.uid):(C.value=!1,v.value="",S.value=null)}function U(t){t==="right"&&(y.value.polygonPath.coordinates[0].x+=y.value.circleRadius),t==="left"&&(y.value.polygonPath.coordinates[0].x-=y.value.circleRadius),t==="top"&&(y.value.polygonPath.coordinates[0].y-=y.value.circleRadius),t==="bottom"&&(y.value.polygonPath.coordinates[0].y+=y.value.circleRadius),j(y.value)}function xe(t){const l=[];function n(i){i.forEach(s=>{const p={name:s.name,details:s.details||"-",ancestor:s.ancestor&&s.ancestor.name||"-",color:s.color||""};l.push(p),s.nodes&&s.nodes.length>0&&n(s.nodes,s.name)})}return n(t),l}const $e=e.computed(()=>xe(b.value)),N=e.computed(()=>{const t=[o.value.table.translations.nodeName,o.value.table.translations.details,o.value.table.translations.ancestor],l=$e.value.map((s,p)=>[{color:s.color,name:s.name},s.details,s.ancestor||""]),n={th:{backgroundColor:o.value.table.th.backgroundColor,color:o.value.table.th.color,outline:o.value.table.th.outline},td:{backgroundColor:o.value.table.td.backgroundColor,color:o.value.table.td.color,outline:o.value.table.td.outline},breakpoint:o.value.table.responsiveBreakpoint},i=[o.value.table.translations.nodeName,o.value.table.translations.details,o.value.table.translations.ancestor];return{head:t,body:l,config:n,colNames:i}});function ie(){e.nextTick(()=>{const t=N.value.body.map((i,s)=>[[i[0].name],[i[1]],[i[2]]]),l=[[o.value.style.chart.title.text],[o.value.style.chart.title.subtitle.text],[[...N.value.head]]].concat(t),n=m.createCsvContent(l);m.downloadCsv({csvContent:n,title:o.value.style.chart.title.text||"vue-ui-molecule"})})}function Pe(){return b.value}const T=e.ref(!1);function Fe(t){T.value=t,D.value+=1}function ue(){k.value.showTable=!k.value.showTable}function ce(){k.value.showDataLabels=!k.value.showDataLabels}function de(){k.value.showTooltip=!k.value.showTooltip}const M=e.ref(!1);function X(){M.value=!M.value}return g({getData:Pe,generatePdf:le,generateCsv:ie,generateImage:ne,toggleTable:ue,toggleLabels:ce,toggleTooltip:de,toggleAnnotator:X}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"moleculeChart",ref:w,class:e.normalizeClass(`vue-ui-molecule ${T.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${o.value.style.fontFamily};width:100%; text-align:center;background:${o.value.style.chart.backgroundColor}`),id:`cluster_${a.value}`,onMouseleave:l[7]||(l[7]=n=>{se.value=null,S.value=null,e.unref(Q)(!1)}),onMouseenter:l[8]||(l[8]=()=>e.unref(Q)(!0))},[o.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,parent:w.value,backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color,active:M.value,onClose:X},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),me.value?(e.openBlock(),e.createElementBlock("div",_e,null,512)):e.createCommentVNode("",!0),o.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",et,[(e.openBlock(),e.createBlock(Le._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"molecule-div-title",...o.value.style.chart.title},subtitle:{cy:"molecule-div-subtitle",...o.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),o.value.userOptions.show&&c.value&&(e.unref(_)||e.unref(A))?(e.openBlock(),e.createBlock(pe.UserOptions,{ref_key:"details",ref:d,key:`user_options_${D.value}`,backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(oe),uid:a.value,hasTooltip:o.value.userOptions.buttons.tooltip&&o.value.style.chart.tooltip.show,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasTable:o.value.userOptions.buttons.table,hasLabel:o.value.userOptions.buttons.labels,hasFullscreen:o.value.userOptions.buttons.fullscreen,isTooltip:k.value.showTooltip,titles:{...o.value.userOptions.buttonTitles},chartElement:w.value,position:o.value.userOptions.position,hasAnnotator:o.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:Fe,onGeneratePdf:e.unref(le),onGenerateCsv:ie,onGenerateImage:e.unref(ne),onToggleTable:ue,onToggleLabels:ce,onToggleTooltip:de,onToggleAnnotator:X,style:e.normalizeStyle({visibility:e.unref(_)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,t.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,t.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:i})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:i})),void 0,!0)]),key:"6"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:n,isAnnotator:i})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:n,isAnnotator:i})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(m.XMLNS),viewBox:I.value,class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),style:e.normalizeStyle(`overflow: hidden; background:transparent;color:${o.value.style.chart.color}`),onClick:l[0]||(l[0]=e.withModifiers(n=>Ce(n),["stop"]))},[e.createVNode(De._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(ke.value),n=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${n}`,cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(m.lightenHexColor)(n,.5)},null,8,lt),e.createElementVNode("stop",{offset:"100%","stop-color":n},null,8,nt)],8,ot))),256))]),e.createVNode(Ye,{dataset:b.value,color:o.value.style.chart.links.stroke,backgroundColor:o.value.style.chart.backgroundColor},null,8,["dataset","color","backgroundColor"]),e.createVNode(je,{dataset:b.value,hoveredUid:S.value,stroke:o.value.style.chart.nodes.stroke,strokeHovered:o.value.style.chart.nodes.strokeHovered,onZoom:be,onHover:we},null,8,["dataset","hoveredUid","stroke","strokeHovered"]),k.value.showDataLabels?(e.openBlock(),e.createBlock(Ze,{key:0,dataset:b.value,color:o.value.style.chart.color,hoveredUid:S.value},null,8,["dataset","color","hoveredUid"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"svg",{svg:$.value},void 0,!0)],14,tt)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createBlock(Ke,{key:`direction_pad_${D.value}`,color:o.value.style.chart.color,isFullscreen:T.value,onMoveLeft:l[1]||(l[1]=n=>U("left")),onMoveRight:l[2]||(l[2]=n=>U("right")),onMoveTop:l[3]||(l[3]=n=>U("top")),onMoveBottom:l[4]||(l[4]=n=>U("bottom")),onReset:l[5]||(l[5]=n=>{H(),x.value=!1})},null,8,["color","isFullscreen"])):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",rt,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ue.default,{key:7,config:{type:"molecule",style:{backgroundColor:o.value.style.chart.backgroundColor,molecule:{color:"#CCCCCC"}}}},null,8,["config"])),t.$slots.source?(e.openBlock(),e.createElementBlock("div",at,[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Oe._sfc_main,{show:k.value.showTooltip&&C.value,backgroundColor:o.value.style.chart.tooltip.backgroundColor,color:o.value.style.chart.tooltip.color,borderRadius:o.value.style.chart.tooltip.borderRadius,borderColor:o.value.style.chart.tooltip.borderColor,borderWidth:o.value.style.chart.tooltip.borderWidth,fontSize:o.value.style.chart.tooltip.fontSize,backgroundOpacity:o.value.style.chart.tooltip.backgroundOpacity,position:o.value.style.chart.tooltip.position,offsetY:o.value.style.chart.tooltip.offsetY,parent:w.value,content:v.value,isFullscreen:T.value,isCustom:o.value.style.chart.tooltip.customFormat&&typeof o.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),c.value?(e.openBlock(),e.createBlock(Me.default,{key:9,hideDetails:"",config:{open:k.value.showTable,maxHeight:1e4,body:{backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color},head:{backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ze.DataTable,{key:`table_${K.value}`,colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${o.value.style.chart.title.text}${o.value.style.chart.title.subtitle.text?` : ${o.value.style.chart.title.subtitle.text}`:""}`,onClose:l[6]||(l[6]=n=>k.value.showTable=!1)},{th:e.withCtx(({th:n})=>[e.createElementVNode("div",{innerHTML:n,style:{display:"flex","align-items":"center"}},null,8,st)]),td:e.withCtx(({td:n})=>[e.createTextVNode(e.toDisplayString(n.name||n),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Qe))}},ut=He._export_sfc(it,[["__scopeId","data-v-8277f51b"]]);exports.default=ut;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BkXYJDpD.cjs"),te=require("./Title-B7ruS8yl.cjs"),F=require("./usePrinter-DHv-BwME.cjs"),oe=require("./Legend-CR9ydX8N.cjs"),h=require("./BaseIcon-CfhoS_qC.cjs"),le=require("./DataTable-CwAdpLng.cjs"),ae=require("./vue-ui-skeleton-BTN1PKkz.cjs"),re=require("./vue-ui-accordion-kr18wKfc.cjs"),q=require("./useNestedProp-C6IvqE-r.cjs"),ne=require("./PackageVersion-C1F3QLoY.cjs"),se=require("./PenAndPaper-DDheVRNG.cjs"),ue=require("./useUserOptionState-BgepsfED.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],de={key:2,style:"width:100%;background:transparent"},ve=["xmlns","viewBox"],ye=["id"],me=["stop-color"],fe=["stop-color"],pe=["x1","y1","x2","y2","stroke","stroke-width"],he=["d","stroke","stroke-width"],ke=["stroke"],ge=["fill"],be=["stroke"],Ce=["fill"],Ne=["stroke"],xe=["fill"],we=["stroke"],Ve=["fill"],_e=["stroke"],Pe=["fill"],Be=["d","stroke","stroke-width","fill"],$e=["x1","y1","stroke"],Me=["cx","cy","fill","stroke"],Ee=["fill","stroke"],Oe=["y","fill","font-weight"],Se=["y","fill"],Ae={key:5,class:"vue-data-ui-watermark"},Te=["onClick"],Le={style:{"font-weight":"bold"}},Ie={key:8,ref:"source",dir:"auto"},Fe=["innerHTML"],qe={__name:"vue-ui-mood-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:D}){const s=z,{vue_ui_mood_radar:U}=r.useConfig(),m=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{_()});function _(){r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiMoodRadar",type:"dataset"})}const f=e.ref(r.createUid()),N=e.ref(null),j=e.ref(null),n=e.ref(null),W=e.ref(null),G=e.ref(0),H=e.ref(0),P=e.ref(0),t=e.computed({get:()=>M(),set:l=>l}),{userOptionsVisible:x,setUserOptionsVisibility:B,keepUserOptionState:$}=ue.useUserOptionState({config:t.value});function M(){const l=q.useNestedProp({userConfig:s.config,defaultConfig:U});return l.theme?{...q.useNestedProp({userConfig:r.themes.vue_ui_mood_radar[l.theme]||s.config,defaultConfig:l})}:l}e.watch(()=>s.config,l=>{t.value=M(),x.value=!t.value.showOnChartHover,_(),G.value+=1,H.value+=1,P.value+=1},{deep:!0});const{isPrinting:E,isImaging:O,generatePdf:S,generateImage:A}=F.usePrinter({elementId:f.value,fileName:t.value.style.chart.title.text||"vue-ui-mood-radar"}),R=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),k=e.ref({showTable:t.value.table.show}),d=e.computed(()=>({height:256,width:256})),w=e.computed(()=>r.createPolygonPath({plot:{x:128,y:d.value.height/2},radius:90,sides:5,rotation:11}));function X({centerX:l,centerY:a,apexX:o,apexY:u,proportion:c,key:p,value:ee}){return{x:l+(o-l)*c,y:a+(u-a)*c,key:p,value:ee}}const K=e.computed(()=>Math.max(...Object.values(s.dataset).map(l=>isNaN(l)?0:l))),y=e.computed(()=>Object.values(s.dataset).reduce((l,a)=>(isNaN(l)?0:l)+(isNaN(a)?0:a),0)),i=e.computed(()=>Object.keys(s.dataset).map((l,a)=>{const o=typeof s.dataset[l]!="number"||isNaN(s.dataset[l])?0:s.dataset[l];return{index:a,key:l,value:o,proportion:o/y.value,color:t.value.style.chart.layout.smileys.colors[l]}}).sort((l,a)=>a.key-l.key)),T=e.computed(()=>m.value?(["1","2","3","4","5"].forEach(l=>{[null,void 0].includes(s.dataset[l])&&r.error({componentName:"VueUiMoodRadar",type:"datasetAttribute",property:l})}),w.value.coordinates.map((l,a)=>{const o=X({centerX:d.value.width/2,centerY:d.value.height/2,apexX:l.x,apexY:l.y,proportion:i.value[a].value/K.value,key:i.value[a].key,value:i.value[a].value});return{...l,plots:o,key:i.value[a].key}})):[]),Y=e.computed(()=>({cy:"mood-radar-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":""}));function J(l){l===n.value?n.value=null:n.value=l}const v=e.computed(()=>{const l=i.value.map(o=>({name:o.key,color:o.color})),a=i.value.map(o=>isNaN(o.value)?0:o.value);return{head:l,body:a}});function L(){e.nextTick(()=>{const l=v.value.head.map((u,c)=>[[u.name],[v.value.body[c]],[isNaN(v.value.body[c]/y.value)?"-":v.value.body[c]/y.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-mood-radar"})})}const g=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>',Number(y.value.toFixed(t.value.table.td.roundingValue)).toLocaleString(),"100%"],a=v.value.head.map((c,p)=>[{color:c.color,name:c.name},v.value.body[p].toFixed(t.value.table.td.roundingValue),isNaN(v.value.body[p]/y.value)?"-":(v.value.body[p]/y.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},u=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:u}});function Q(){return i.value}function I(){k.value.showTable=!k.value.showTable}const b=e.ref(!1);function Z(l){b.value=l}const C=e.ref(!1);function V(){C.value=!C.value}return D({getData:Q,generatePdf:S,generateCsv:L,generateImage:A,toggleTable:I,toggleAnnotator:V}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-mood-radar ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"moodRadarChart",ref:N,id:`${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:a[11]||(a[11]=()=>e.unref(B)(!0)),onMouseleave:a[12]||(a[12]=()=>e.unref(B)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(se.PenAndPaper,{key:0,parent:N.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:C.value,onClose:V},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),R.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,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",de,[e.createVNode(te._sfc_main,{config:{title:{cy:"mood-radar-title",...t.value.style.chart.title},subtitle:{cy:"mood-radar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])])):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref($)||e.unref(x))?(e.openBlock(),e.createBlock(F.UserOptions,{key:3,ref_key:"details",ref:j,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(E),isImaging:e.unref(O),uid:f.value,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,titles:{...t.value.userOptions.buttonTitles},chartElement:N.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:C.value,onToggleFullscreen:Z,onGeneratePdf:e.unref(S),onGenerateCsv:L,onGenerateImage:e.unref(A),onToggleTable:I,onToggleAnnotator:V,style:e.normalizeStyle({visibility:e.unref($)?e.unref(x)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${d.value.width} ${d.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value}),style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ne._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`mood_radar_gradient_${f.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,me),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.gradient.intensity/100),t.value.style.chart.layout.dataPolygon.opacity)},null,8,fe)],8,ye)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.coordinates,o=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.width/2,y1:d.value.height/2,x2:o.x,y2:o.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,pe))),256)),e.createElementVNode("path",{d:w.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,he),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[5],"stroke-width":"1","stroke-linecap":"round",d:"M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"},null,8,ke),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[0]||(a[0]=o=>n.value=5),onMouseleave:a[1]||(a[1]=o=>n.value=null),cx:"128",cy:"25",r:"20",fill:n.value===5?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[5],20):"transparent"},null,40,ge),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[4],"stroke-width":"1","stroke-linecap":"round",d:"M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"},null,8,be),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[2]||(a[2]=o=>n.value=4),onMouseleave:a[3]||(a[3]=o=>n.value=null),cx:"227",cy:"95.5",r:"20",fill:n.value===4?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[4],20):"transparent"},null,40,Ce),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[3],"stroke-width":"1","stroke-linecap":"round",d:"M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"},null,8,Ne),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[4]||(a[4]=o=>n.value=3),onMouseleave:a[5]||(a[5]=o=>n.value=null),cx:"190",cy:"213.5",r:"20",fill:n.value===3?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[3],20):"transparent"},null,40,xe),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[2],"stroke-width":"1","stroke-linecap":"round",d:"M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"},null,8,we),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[6]||(a[6]=o=>n.value=2),onMouseleave:a[7]||(a[7]=o=>n.value=null),cx:"65",cy:"213.5",r:"20",fill:n.value===2?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[2],20):"transparent"},null,40,Ve),e.createElementVNode("path",{fill:"none",stroke:t.value.style.chart.layout.smileys.colors[1],"stroke-width":"1","stroke-linecap":"round",d:"M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"},null,8,_e),e.createElementVNode("circle",{class:"vue-ui-mood-radar-trap",onMouseenter:a[8]||(a[8]=o=>n.value=1),onMouseleave:a[9]||(a[9]=o=>n.value=null),cx:"29",cy:"95.5",r:"20",fill:n.value===1?e.unref(r.setOpacity)(t.value.style.chart.layout.smileys.colors[1],20):"transparent"},null,40,Pe),e.createElementVNode("path",{d:e.unref(r.makePath)(T.value.map(o=>o.plots)),stroke:t.value.style.chart.layout.dataPolygon.stroke,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.chart.layout.dataPolygon.gradient.show?`url(#mood_radar_gradient_${f.value})`:e.unref(r.setOpacity)(t.value.style.chart.layout.dataPolygon.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,Be),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value.map(o=>o.plots),(o,u)=>(e.openBlock(),e.createElementBlock("g",{class:"vue-ui-mood-radar-trap",style:e.normalizeStyle(`opacity:${n.value==o.key?"1":"0"}`)},[e.createElementVNode("line",{x1:o.x,y1:o.y,x2:128,y2:128,stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,$e),e.createElementVNode("circle",{cx:o.x,cy:o.y,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Me),e.createElementVNode("circle",{cx:128,cy:128,fill:t.value.style.chart.layout.smileys.colors[o.key],r:"3",stroke:t.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Ee),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?145:120,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle","font-weight":t.value.style.chart.layout.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:o.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:o,seriesIndex:u})),9,Oe),e.createElementVNode("text",{x:128,y:["5",5].includes(o.key)?163:102,fill:t.value.style.chart.layout.dataLabel.color,"font-size":"12","text-anchor":"middle"}," ("+e.toDisplayString(e.unref(r.dataLabel)({v:o.value/y.value*100,s:"%",r:t.value.style.chart.layout.dataLabel.roundingPercentage}))+") ",9,Se)],4))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(E)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ae.default,{key:6,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:"#CCCCCC"},shapes:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(oe.Legend,{legendSet:i.value,config:Y.value,key:`legend_${P.value}`,style:{display:"flex","row-gap":"6px"}},{item:e.withCtx(({legend:o,index:u})=>[e.createElementVNode("div",{onClick:()=>J(o.key),style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center",margin:"3px 0"}},[o.key==1?(e.openBlock(),e.createBlock(h.default,{key:0,strokeWidth:1,name:"moodSad",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==2?(e.openBlock(),e.createBlock(h.default,{key:1,strokeWidth:1,name:"moodFlat",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==3?(e.openBlock(),e.createBlock(h.default,{key:2,strokeWidth:1,name:"moodNeutral",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==4?(e.openBlock(),e.createBlock(h.default,{key:3,strokeWidth:1,name:"smiley",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),o.key==5?(e.openBlock(),e.createBlock(h.default,{key:4,strokeWidth:1,name:"moodHappy",stroke:t.value.style.chart.layout.smileys.colors[o.key]},null,8,["stroke"])):e.createCommentVNode("",!0),e.createElementVNode("span",Le,e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabel.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabel.prefix,v:o.value,s:t.value.style.chart.layout.dataLabel.suffix,r:t.value.style.chart.layout.dataLabel.roundingValue}),{datapoint:o,seriesIndex:u})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(r.dataLabel)({v:o.proportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],8,Te)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"legend",{legend:i.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(re.default,{key:9,hideDetails:"",config:{open:k.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.createVNode(le.DataTable,{colNames:g.value.colNames,head:g.value.head,body:g.value.body,config:g.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[10]||(a[10]=o=>k.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Fe)]),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,ce))}},ze=ie._export_sfc(qe,[["__scopeId","data-v-583f1c0f"]]);exports.default=ze;
@@ -1,15 +1,15 @@
1
- import { computed as c, onMounted as Ce, ref as v, watch as xe, openBlock as r, createElementBlock as y, normalizeClass as Z, normalizeStyle as L, unref as a, createBlock as h, createCommentVNode as u, createVNode as j, createSlots as we, withCtx as f, renderSlot as p, normalizeProps as U, guardReactiveProps as B, createElementVNode as s, Fragment as ee, renderList as te, toDisplayString as M, createTextVNode as oe, nextTick as _e } from "vue";
2
- import { u as $e, o as Me, e as le, c as Pe, t as Ne, O as Ae, X as Oe, s as C, w as Te, P as Le, i as ae, f as I, q as Ie, r as Fe } from "./index-BbPeL8Gp.js";
3
- import { _ as Se } from "./Title-aSAft5dl.js";
4
- import { u as Ve, U as je } from "./usePrinter-DaybDVqP.js";
5
- import { L as Ue } from "./Legend-BLaZxMge.js";
6
- import P from "./BaseIcon-CmiukQBl.js";
7
- import { D as Be } from "./DataTable-DGf6RrOJ.js";
8
- import De from "./vue-ui-skeleton-Bniq21d9.js";
9
- import We from "./vue-ui-accordion-5d5iVpr7.js";
10
- import { u as se } from "./useNestedProp-BN8claGG.js";
11
- import { _ as ze } from "./PackageVersion-CxJghxYD.js";
12
- import { P as Ge } from "./PenAndPaper-ZdZEumki.js";
1
+ import { computed as c, onMounted as Ce, ref as v, watch as xe, openBlock as r, createElementBlock as y, normalizeClass as Z, normalizeStyle as L, unref as a, createBlock as h, createCommentVNode as u, createVNode as U, createSlots as we, withCtx as f, renderSlot as p, normalizeProps as B, guardReactiveProps as D, createElementVNode as s, Fragment as ee, renderList as te, toDisplayString as M, createTextVNode as oe, nextTick as _e } from "vue";
2
+ import { u as $e, o as Me, e as le, c as Pe, t as Ne, O as Ae, X as Oe, s as C, w as Te, P as Le, i as ae, f as I, q as Ie, r as Fe } from "./index-K5uyh1gA.js";
3
+ import { _ as Se } from "./Title-aMb2ETf7.js";
4
+ import { u as Ve, U as je } from "./usePrinter-p_ZZlGc9.js";
5
+ import { L as Ue } from "./Legend-bYlSC7I7.js";
6
+ import P from "./BaseIcon-zmxwsaLW.js";
7
+ import { D as Be } from "./DataTable-COkA4Nyz.js";
8
+ import De from "./vue-ui-skeleton-BhA2lIT6.js";
9
+ import We from "./vue-ui-accordion-CsJT7Az3.js";
10
+ import { u as se } from "./useNestedProp-DifqJZAs.js";
11
+ import { _ as ze } from "./PackageVersion-Dz3KcTL4.js";
12
+ import { P as Ge } from "./PenAndPaper-BycdTwSP.js";
13
13
  import { u as Ee } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const Re = ["id"], Xe = {
@@ -41,18 +41,18 @@ const Re = ["id"], Xe = {
41
41
  setup(re, { expose: ne }) {
42
42
  const i = re, { vue_ui_mood_radar: ue } = $e(), w = c(() => !!i.dataset && Object.keys(i.dataset).length);
43
43
  Ce(() => {
44
- D();
44
+ W();
45
45
  });
46
- function D() {
46
+ function W() {
47
47
  Me(i.dataset) && le({
48
48
  componentName: "VueUiMoodRadar",
49
49
  type: "dataset"
50
50
  });
51
51
  }
52
- const _ = v(Pe()), F = v(null), ie = v(null), n = v(null), de = v(null), ce = v(0), ve = v(0), W = v(0), e = c({
52
+ const _ = v(Pe()), F = v(null), ie = v(null), n = v(null), de = v(null), ce = v(0), ve = v(0), z = v(0), e = c({
53
53
  get: () => H(),
54
54
  set: (o) => o
55
- }), { userOptionsVisible: z, setUserOptionsVisibility: G, keepUserOptionState: E } = Ee({ config: e.value });
55
+ }), { userOptionsVisible: S, setUserOptionsVisibility: G, keepUserOptionState: E } = Ee({ config: e.value });
56
56
  function H() {
57
57
  const o = se({
58
58
  userConfig: i.config,
@@ -66,7 +66,7 @@ const Re = ["id"], Xe = {
66
66
  } : o;
67
67
  }
68
68
  xe(() => i.config, (o) => {
69
- e.value = H(), D(), ce.value += 1, ve.value += 1, W.value += 1;
69
+ e.value = H(), S.value = !e.value.showOnChartHover, W(), ce.value += 1, ve.value += 1, z.value += 1;
70
70
  }, { deep: !0 });
71
71
  const { isPrinting: R, isImaging: X, generatePdf: K, generateImage: q } = Ve({
72
72
  elementId: _.value,
@@ -76,7 +76,7 @@ const Re = ["id"], Xe = {
76
76
  }), k = c(() => ({
77
77
  height: 256,
78
78
  width: 256
79
- })), S = c(() => Ae({
79
+ })), V = c(() => Ae({
80
80
  plot: { x: 128, y: k.value.height / 2 },
81
81
  radius: 90,
82
82
  sides: 5,
@@ -105,7 +105,7 @@ const Re = ["id"], Xe = {
105
105
  type: "datasetAttribute",
106
106
  property: o
107
107
  });
108
- }), S.value.coordinates.map((o, l) => {
108
+ }), V.value.coordinates.map((o, l) => {
109
109
  const t = he({
110
110
  centerX: k.value.width / 2,
111
111
  centerY: k.value.height / 2,
@@ -193,7 +193,7 @@ const Re = ["id"], Xe = {
193
193
  O.value = o;
194
194
  }
195
195
  const T = v(!1);
196
- function V() {
196
+ function j() {
197
197
  T.value = !T.value;
198
198
  }
199
199
  return ne({
@@ -202,7 +202,7 @@ const Re = ["id"], Xe = {
202
202
  generateCsv: J,
203
203
  generateImage: q,
204
204
  toggleTable: Q,
205
- toggleAnnotator: V
205
+ toggleAnnotator: j
206
206
  }), (o, l) => (r(), y("div", {
207
207
  class: Z(`vue-ui-mood-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
208
208
  ref_key: "moodRadarChart",
@@ -218,7 +218,7 @@ const Re = ["id"], Xe = {
218
218
  backgroundColor: e.value.style.chart.backgroundColor,
219
219
  color: e.value.style.chart.color,
220
220
  active: T.value,
221
- onClose: V
221
+ onClose: j
222
222
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : u("", !0),
223
223
  ye.value ? (r(), y("div", {
224
224
  key: 1,
@@ -228,7 +228,7 @@ const Re = ["id"], Xe = {
228
228
  style: "height:36px; width: 100%;background:transparent"
229
229
  }, null, 512)) : u("", !0),
230
230
  e.value.style.chart.title.text ? (r(), y("div", Xe, [
231
- j(Se, {
231
+ U(Se, {
232
232
  config: {
233
233
  title: {
234
234
  cy: "mood-radar-title",
@@ -241,7 +241,7 @@ const Re = ["id"], Xe = {
241
241
  }
242
242
  }, null, 8, ["config"])
243
243
  ])) : u("", !0),
244
- e.value.userOptions.show && w.value && (a(E) || a(z)) ? (r(), h(je, {
244
+ e.value.userOptions.show && w.value && (a(E) || a(S)) ? (r(), h(je, {
245
245
  key: 3,
246
246
  ref_key: "details",
247
247
  ref: ie,
@@ -265,9 +265,9 @@ const Re = ["id"], Xe = {
265
265
  onGenerateCsv: J,
266
266
  onGenerateImage: a(q),
267
267
  onToggleTable: Q,
268
- onToggleAnnotator: V,
268
+ onToggleAnnotator: j,
269
269
  style: L({
270
- visibility: a(E) ? a(z) ? "visible" : "hidden" : "visible"
270
+ visibility: a(E) ? a(S) ? "visible" : "hidden" : "visible"
271
271
  })
272
272
  }, we({ _: 2 }, [
273
273
  o.$slots.optionPdf ? {
@@ -301,14 +301,14 @@ const Re = ["id"], Xe = {
301
301
  o.$slots.optionFullscreen ? {
302
302
  name: "optionFullscreen",
303
303
  fn: f(({ toggleFullscreen: t, isFullscreen: d }) => [
304
- p(o.$slots, "optionFullscreen", U(B({ toggleFullscreen: t, isFullscreen: d })), void 0, !0)
304
+ p(o.$slots, "optionFullscreen", B(D({ toggleFullscreen: t, isFullscreen: d })), void 0, !0)
305
305
  ]),
306
306
  key: "4"
307
307
  } : void 0,
308
308
  o.$slots.optionAnnotator ? {
309
309
  name: "optionAnnotator",
310
310
  fn: f(({ toggleAnnotator: t, isAnnotator: d }) => [
311
- p(o.$slots, "optionAnnotator", U(B({ toggleAnnotator: t, isAnnotator: d })), void 0, !0)
311
+ p(o.$slots, "optionAnnotator", B(D({ toggleAnnotator: t, isAnnotator: d })), void 0, !0)
312
312
  ]),
313
313
  key: "5"
314
314
  } : void 0
@@ -320,7 +320,7 @@ const Re = ["id"], Xe = {
320
320
  class: Z({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
321
321
  style: L(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
322
322
  }, [
323
- j(ze),
323
+ U(ze),
324
324
  s("defs", null, [
325
325
  s("radialGradient", {
326
326
  cx: "50%",
@@ -340,7 +340,7 @@ const Re = ["id"], Xe = {
340
340
  }, null, 8, Je)
341
341
  ], 8, qe)
342
342
  ]),
343
- (r(!0), y(ee, null, te(S.value.coordinates, (t) => (r(), y("line", {
343
+ (r(!0), y(ee, null, te(V.value.coordinates, (t) => (r(), y("line", {
344
344
  x1: k.value.width / 2,
345
345
  y1: k.value.height / 2,
346
346
  x2: t.x,
@@ -349,7 +349,7 @@ const Re = ["id"], Xe = {
349
349
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
350
350
  }, null, 8, Qe))), 256)),
351
351
  s("path", {
352
- d: S.value.path,
352
+ d: V.value.path,
353
353
  fill: "none",
354
354
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
355
355
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
@@ -504,7 +504,7 @@ const Re = ["id"], Xe = {
504
504
  p(o.$slots, "svg", { svg: k.value }, void 0, !0)
505
505
  ], 14, Ke)) : u("", !0),
506
506
  o.$slots.watermark ? (r(), y("div", pt, [
507
- p(o.$slots, "watermark", U(B({ isPrinting: a(R) || a(X) })), void 0, !0)
507
+ p(o.$slots, "watermark", B(D({ isPrinting: a(R) || a(X) })), void 0, !0)
508
508
  ])) : u("", !0),
509
509
  w.value ? u("", !0) : (r(), h(De, {
510
510
  key: 6,
@@ -526,7 +526,7 @@ const Re = ["id"], Xe = {
526
526
  e.value.style.chart.legend.show ? (r(), h(Ue, {
527
527
  legendSet: m.value,
528
528
  config: pe.value,
529
- key: `legend_${W.value}`,
529
+ key: `legend_${z.value}`,
530
530
  style: { display: "flex", "row-gap": "6px" }
531
531
  }, {
532
532
  item: f(({ legend: t, index: d }) => [
@@ -605,7 +605,7 @@ const Re = ["id"], Xe = {
605
605
  }
606
606
  }, {
607
607
  content: f(() => [
608
- j(Be, {
608
+ U(Be, {
609
609
  colNames: A.value.colNames,
610
610
  head: A.value.head,
611
611
  body: A.value.body,
@@ -629,7 +629,7 @@ const Re = ["id"], Xe = {
629
629
  }, 8, ["config"])) : u("", !0)
630
630
  ], 46, Re));
631
631
  }
632
- }, Vt = /* @__PURE__ */ He(Ct, [["__scopeId", "data-v-9890430c"]]);
632
+ }, Vt = /* @__PURE__ */ He(Ct, [["__scopeId", "data-v-583f1c0f"]]);
633
633
  export {
634
634
  Vt as default
635
635
  };