vue-data-ui 2.6.19 → 2.6.21

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 (171) hide show
  1. package/README.md +8 -0
  2. package/dist/{Arrow-QMACp9z-.cjs → Arrow-C1pcd-am.cjs} +1 -1
  3. package/dist/{Arrow-DTtLZwne.js → Arrow-DQaZQgi6.js} +1 -1
  4. package/dist/{BaseIcon-BpRuwiFD.cjs → BaseIcon-BQwivF_K.cjs} +1 -1
  5. package/dist/{BaseIcon-nz-vbP7I.js → BaseIcon-DH34CAFx.js} +1 -1
  6. package/dist/{DataTable-Dr-djTUz.cjs → DataTable-D5572vAU.cjs} +1 -1
  7. package/dist/{DataTable-pNLWbeCL.js → DataTable-DfMqgTjL.js} +2 -2
  8. package/dist/{Legend-BHbX2C8f.cjs → Legend-CoREnR30.cjs} +1 -1
  9. package/dist/{Legend-s9DRKvJo.js → Legend-PL8rU0J1.js} +2 -2
  10. package/dist/{PackageVersion-hltZM-fb.js → PackageVersion-1Y7SXTrk.js} +1 -1
  11. package/dist/{PackageVersion-DsoqDgVf.cjs → PackageVersion-JsuXjgR_.cjs} +1 -1
  12. package/dist/PenAndPaper-7lGhxIH8.cjs +1 -0
  13. package/dist/{PenAndPaper-qmkn1GhB.js → PenAndPaper-BYhUvcy4.js} +20 -16
  14. package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-z17A_S1M.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-AmNwJZI7.js} +3 -3
  15. package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-lH7bkq1z.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-NplvneD1.cjs} +1 -1
  16. package/dist/{Shape-YhMDtuHk.cjs → Shape-HtDeeGqp.cjs} +1 -1
  17. package/dist/{Shape-C3y6rj0O.js → Shape-Ov27sl2L.js} +1 -1
  18. package/dist/{Slicer-BIW17-XH.js → Slicer-6F4tHrZR.js} +3 -3
  19. package/dist/{Slicer-BA8XF-Ak.cjs → Slicer-COXIFuZ-.cjs} +1 -1
  20. package/dist/{Title-dsg3PqUg.js → Title-1PWD04Gh.js} +1 -1
  21. package/dist/{Title-DWqgN4Kv.cjs → Title-Pgt1Ixvo.cjs} +1 -1
  22. package/dist/{Tooltip-DRFQIslg.js → Tooltip-BTO5NGkn.js} +1 -1
  23. package/dist/{Tooltip-B6T_qzJD.cjs → Tooltip-te_h24w6.cjs} +1 -1
  24. package/dist/{index-3OrObUP-.cjs → index-DM-Bs-Ua.cjs} +1 -1
  25. package/dist/{index-DvAaY6OP.js → index-DUnEDLbc.js} +1 -1
  26. package/dist/index.es-DvaaoatM.cjs +18 -0
  27. package/dist/index.es-RWt7DWPC.js +6645 -0
  28. package/dist/{jspdf.es.min-C5v1xtPn.cjs → jspdf.es.min-Rw70uifz.cjs} +23 -23
  29. package/dist/{jspdf.es.min-DKXYalZb.js → jspdf.es.min-eTA26cmm.js} +476 -470
  30. package/dist/{pdf-CHXlEvWj.cjs → pdf-DSkQT5iH.cjs} +1 -1
  31. package/dist/{pdf-70oZh5Jp.js → pdf-DVWl3Adn.js} +1 -1
  32. package/dist/style.css +1 -1
  33. package/dist/{useNestedProp-CGzX7c5Q.js → useNestedProp-CEMeoM-f.js} +1 -1
  34. package/dist/{useNestedProp-B53Yi1Rk.cjs → useNestedProp-CYy5g-mh.cjs} +1 -1
  35. package/dist/usePrinter-DbpIk44f.cjs +1 -0
  36. package/dist/{usePrinter-D_2jA4x8.js → usePrinter-Undaynpo.js} +73 -71
  37. package/dist/useResponsive-N8jl0-aC.cjs +1 -0
  38. package/dist/{useResponsive-BWapHhVH.js → useResponsive-vZgZwV-S.js} +65 -64
  39. package/dist/{vue-data-ui-CTjgYwlW.cjs → vue-data-ui-BapofDyJ.cjs} +1 -1
  40. package/dist/{vue-data-ui-DMl9rAwQ.js → vue-data-ui-DnaIYz0z.js} +61 -61
  41. package/dist/vue-data-ui.cjs +1 -1
  42. package/dist/vue-data-ui.js +1 -1
  43. package/dist/{vue-ui-3d-bar-DBVRoMwv.js → vue-ui-3d-bar-DLYaW0-y.js} +105 -98
  44. package/dist/{vue-ui-3d-bar-OwVsZokU.cjs → vue-ui-3d-bar-DansBM76.cjs} +2 -2
  45. package/dist/{vue-ui-accordion-LbUarYuf.js → vue-ui-accordion-C8Couc_G.js} +3 -3
  46. package/dist/{vue-ui-accordion-BmScSwW2.cjs → vue-ui-accordion-ZIsT4At8.cjs} +1 -1
  47. package/dist/{vue-ui-age-pyramid-DQ5dL4yb.cjs → vue-ui-age-pyramid-BSXnW9GF.cjs} +1 -1
  48. package/dist/{vue-ui-age-pyramid-rmfEfmj7.js → vue-ui-age-pyramid-BdruKMmo.js} +76 -69
  49. package/dist/{vue-ui-annotator-nS_RSspz.cjs → vue-ui-annotator-B7Go0M7W.cjs} +1 -1
  50. package/dist/{vue-ui-annotator-FlMkU7Kj.js → vue-ui-annotator-DVfdPMa7.js} +2 -2
  51. package/dist/{vue-ui-bullet-esfPgi-9.js → vue-ui-bullet-CkCJgmoJ.js} +145 -138
  52. package/dist/{vue-ui-bullet-BGTTcXBJ.cjs → vue-ui-bullet-N9ud2cQ7.cjs} +4 -4
  53. package/dist/{vue-ui-candlestick-RHrlnUqs.js → vue-ui-candlestick-C9B13qeU.js} +116 -109
  54. package/dist/{vue-ui-candlestick-BUEGFHg_.cjs → vue-ui-candlestick-DPIs9tEW.cjs} +2 -2
  55. package/dist/{vue-ui-carousel-table-6uP-Kk9U.js → vue-ui-carousel-table-BLo52Rqu.js} +130 -123
  56. package/dist/{vue-ui-carousel-table-DCcPnWRU.cjs → vue-ui-carousel-table-DgcY4j9y.cjs} +1 -1
  57. package/dist/{vue-ui-chestnut-B7Ep4Lho.cjs → vue-ui-chestnut-C9Zw_bey.cjs} +2 -2
  58. package/dist/{vue-ui-chestnut-Dh4y5s_v.js → vue-ui-chestnut-D8oXG8Tf.js} +131 -124
  59. package/dist/vue-ui-circle-pack-CrEdkNM7.js +648 -0
  60. package/dist/vue-ui-circle-pack-DYW-e2E5.cjs +1 -0
  61. package/dist/{vue-ui-cursor-D-IzE_jd.cjs → vue-ui-cursor-CtSijliN.cjs} +1 -1
  62. package/dist/{vue-ui-cursor-C21WgpGu.js → vue-ui-cursor-DkW4pJcP.js} +2 -2
  63. package/dist/{vue-ui-dashboard-T0LqYCqM.js → vue-ui-dashboard-5_Du0Yr2.js} +3 -3
  64. package/dist/{vue-ui-dashboard-DQ_wht4B.cjs → vue-ui-dashboard-Dh5vRbdI.cjs} +1 -1
  65. package/dist/{vue-ui-digits-CwV6mhHZ.cjs → vue-ui-digits-DEmYk7sS.cjs} +1 -1
  66. package/dist/{vue-ui-digits-CLFrlUIW.js → vue-ui-digits-DhA1bHdz.js} +2 -2
  67. package/dist/{vue-ui-donut-dVplEheX.js → vue-ui-donut-B-G7gRdV.js} +118 -111
  68. package/dist/{vue-ui-donut-b_UXDeKJ.cjs → vue-ui-donut-BrZxaijU.cjs} +1 -1
  69. package/dist/{vue-ui-donut-evolution-Bl50EWBG.js → vue-ui-donut-evolution-B4almlBq.js} +164 -157
  70. package/dist/{vue-ui-donut-evolution-VxNtQWGH.cjs → vue-ui-donut-evolution-CTbXi7wk.cjs} +1 -1
  71. package/dist/{vue-ui-dumbbell-B-7s7x7a.cjs → vue-ui-dumbbell-CAIlnhsM.cjs} +2 -2
  72. package/dist/{vue-ui-dumbbell-Bp685TTG.js → vue-ui-dumbbell-kZGa__IU.js} +75 -68
  73. package/dist/{vue-ui-flow-CHbfoU97.js → vue-ui-flow-Bc31ZN1W.js} +177 -170
  74. package/dist/{vue-ui-flow-DJqOVlD7.cjs → vue-ui-flow-D2UNbwlp.cjs} +1 -1
  75. package/dist/{vue-ui-funnel-B77giO54.cjs → vue-ui-funnel-DfCz1GNN.cjs} +1 -1
  76. package/dist/{vue-ui-funnel-Bhv0XRzJ.js → vue-ui-funnel-V7hu2Iib.js} +129 -122
  77. package/dist/{vue-ui-galaxy-Dt4dx9bS.cjs → vue-ui-galaxy-CNBC7IbU.cjs} +1 -1
  78. package/dist/{vue-ui-galaxy-DMA8AX8h.js → vue-ui-galaxy-DLCcy7Kq.js} +77 -70
  79. package/dist/{vue-ui-gauge-CBlurlZk.js → vue-ui-gauge-CZMHtEcr.js} +153 -146
  80. package/dist/{vue-ui-gauge-Bh3iSbSd.cjs → vue-ui-gauge-D8IglqIF.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-CHhJKge-.js → vue-ui-gizmo-BuAVBMBp.js} +3 -3
  82. package/dist/{vue-ui-gizmo-BMrnNfYR.cjs → vue-ui-gizmo-fyC414Iv.cjs} +1 -1
  83. package/dist/vue-ui-heatmap-CDOry_F1.cjs +1 -0
  84. package/dist/{vue-ui-heatmap-CB4852rp.js → vue-ui-heatmap-hUfFzGck.js} +139 -132
  85. package/dist/{vue-ui-history-plot-AwmdEhYL.js → vue-ui-history-plot-C79l8rPm.js} +122 -115
  86. package/dist/{vue-ui-history-plot-BG7r0ZF7.cjs → vue-ui-history-plot-CIXgvWpk.cjs} +1 -1
  87. package/dist/{vue-ui-kpi-DcxE4Vv7.js → vue-ui-kpi-C3tHthXH.js} +3 -3
  88. package/dist/{vue-ui-kpi-BYCMEzBt.cjs → vue-ui-kpi-yiWxNLJ-.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-CdDRH8Rb.js → vue-ui-mini-loader-1p1jAKx_.js} +2 -2
  90. package/dist/{vue-ui-mini-loader-DOqUfxRJ.cjs → vue-ui-mini-loader-26yCYjxn.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-C-Z0Ywq1.cjs → vue-ui-molecule-Bw0dYLfu.cjs} +1 -1
  92. package/dist/{vue-ui-molecule-BskBKGbQ.js → vue-ui-molecule-COQ-yrBr.js} +249 -242
  93. package/dist/{vue-ui-mood-radar-BAPZ1LyF.js → vue-ui-mood-radar-CwfGiQ43.js} +111 -104
  94. package/dist/{vue-ui-mood-radar-BIrQKfVf.cjs → vue-ui-mood-radar-Cyde9hnR.cjs} +1 -1
  95. package/dist/{vue-ui-nested-donuts-BB2Kgb5F.js → vue-ui-nested-donuts-BVaW7w1U.js} +117 -110
  96. package/dist/{vue-ui-nested-donuts-7YjtP-jC.cjs → vue-ui-nested-donuts-Y07lLGRa.cjs} +2 -2
  97. package/dist/{vue-ui-onion-BWb18zcN.cjs → vue-ui-onion-DkXss-B_.cjs} +2 -2
  98. package/dist/{vue-ui-onion-BjMfXAZK.js → vue-ui-onion-h6DP9kOi.js} +143 -136
  99. package/dist/{vue-ui-parallel-coordinate-plot-D6Vs-5Vh.cjs → vue-ui-parallel-coordinate-plot-CkI21cq2.cjs} +2 -2
  100. package/dist/{vue-ui-parallel-coordinate-plot-ryqdfkHL.js → vue-ui-parallel-coordinate-plot-O5cwKbzH.js} +113 -106
  101. package/dist/{vue-ui-quadrant-Cr4ypLzT.js → vue-ui-quadrant-CfywvXnV.js} +112 -105
  102. package/dist/{vue-ui-quadrant-BmsHBpKo.cjs → vue-ui-quadrant-F6w-QJE_.cjs} +1 -1
  103. package/dist/{vue-ui-quick-chart-45IEXHb0.cjs → vue-ui-quick-chart-BeMHD_Kz.cjs} +3 -3
  104. package/dist/{vue-ui-quick-chart-C9dIHRYi.js → vue-ui-quick-chart-C1AwFGSr.js} +195 -188
  105. package/dist/{vue-ui-radar-Nr5JmVlk.cjs → vue-ui-radar-BejYh3DW.cjs} +1 -1
  106. package/dist/{vue-ui-radar-T6xdl9ic.js → vue-ui-radar-DDKXLi5o.js} +101 -94
  107. package/dist/{vue-ui-rating-C5AaiBqZ.js → vue-ui-rating-BrGbM0Op.js} +2 -2
  108. package/dist/{vue-ui-rating-CFIhZlG-.cjs → vue-ui-rating-C40ktvn7.cjs} +1 -1
  109. package/dist/{vue-ui-relation-circle-Cw-DcsRY.cjs → vue-ui-relation-circle-C4qT13SI.cjs} +1 -1
  110. package/dist/{vue-ui-relation-circle-BktS594K.js → vue-ui-relation-circle-DrtdiTMX.js} +103 -96
  111. package/dist/{vue-ui-rings-_evAK3j7.js → vue-ui-rings-C4IdhEUE.js} +169 -162
  112. package/dist/{vue-ui-rings-2j5fsO_o.cjs → vue-ui-rings-Cd8WyeDZ.cjs} +2 -2
  113. package/dist/{vue-ui-scatter-C5ePnByD.js → vue-ui-scatter-BS8sgyMi.js} +85 -78
  114. package/dist/{vue-ui-scatter-W1_ChsfO.cjs → vue-ui-scatter-MmvIeu4D.cjs} +1 -1
  115. package/dist/{vue-ui-screenshot-B6ASKPJf.cjs → vue-ui-screenshot-BB51-eRL.cjs} +1 -1
  116. package/dist/{vue-ui-screenshot-DM-PQM2g.js → vue-ui-screenshot-tnFPT1vi.js} +1 -1
  117. package/dist/{vue-ui-skeleton-WoggMoff.js → vue-ui-skeleton-DieABKlo.js} +3 -3
  118. package/dist/{vue-ui-skeleton-DaowWOKJ.cjs → vue-ui-skeleton-DlC-U64G.cjs} +1 -1
  119. package/dist/{vue-ui-smiley-gulDZ8i7.js → vue-ui-smiley-C32wVXgu.js} +2 -2
  120. package/dist/{vue-ui-smiley-hlaNlq2y.cjs → vue-ui-smiley-DSxKw3ud.cjs} +1 -1
  121. package/dist/{vue-ui-spark-trend-LbApLsdt.js → vue-ui-spark-trend-B_x1dX38.js} +5 -5
  122. package/dist/{vue-ui-spark-trend-BcrMflk6.cjs → vue-ui-spark-trend-vexkCCy9.cjs} +1 -1
  123. package/dist/{vue-ui-sparkbar-BdfaDBkw.cjs → vue-ui-sparkbar-CsOEiHDQ.cjs} +1 -1
  124. package/dist/{vue-ui-sparkbar-CnL6FbaE.js → vue-ui-sparkbar-ZSbB6Llo.js} +4 -4
  125. package/dist/{vue-ui-sparkgauge-CHv1q1cO.cjs → vue-ui-sparkgauge-Bdh7X--h.cjs} +1 -1
  126. package/dist/{vue-ui-sparkgauge-Du7PRJyB.js → vue-ui-sparkgauge-Cf3bDk98.js} +4 -4
  127. package/dist/{vue-ui-sparkhistogram-CyEyZvbD.js → vue-ui-sparkhistogram-CrZy1xf0.js} +5 -5
  128. package/dist/{vue-ui-sparkhistogram-CBqKXnvX.cjs → vue-ui-sparkhistogram-fALwb3uK.cjs} +1 -1
  129. package/dist/{vue-ui-sparkline-DRHE0kK8.cjs → vue-ui-sparkline-D4WDvcZR.cjs} +1 -1
  130. package/dist/{vue-ui-sparkline-BMNXPHhB.js → vue-ui-sparkline-DTW_lXgp.js} +5 -5
  131. package/dist/{vue-ui-sparkstackbar-D6wuDd8h.cjs → vue-ui-sparkstackbar-DBPLhUoi.cjs} +1 -1
  132. package/dist/{vue-ui-sparkstackbar-D33lwh8d.js → vue-ui-sparkstackbar-Db2Ndf0k.js} +5 -5
  133. package/dist/{vue-ui-stackbar-CnxGAca-.cjs → vue-ui-stackbar-B3eaSIoO.cjs} +3 -3
  134. package/dist/{vue-ui-stackbar-C5yoqQAY.js → vue-ui-stackbar-DbF3ZJTD.js} +211 -204
  135. package/dist/{vue-ui-strip-plot-Cg1B7i3X.js → vue-ui-strip-plot-CpkH2Gfd.js} +83 -76
  136. package/dist/{vue-ui-strip-plot-DDTTc2jA.cjs → vue-ui-strip-plot-DiCVf5u-.cjs} +1 -1
  137. package/dist/{vue-ui-table-BGfZl0wF.js → vue-ui-table-D6zWwikN.js} +1 -1
  138. package/dist/{vue-ui-table-TV5Coa0A.cjs → vue-ui-table-K13fqkDI.cjs} +1 -1
  139. package/dist/{vue-ui-table-heatmap-Jjx8L8St.cjs → vue-ui-table-heatmap-BgenCoVa.cjs} +1 -1
  140. package/dist/{vue-ui-table-heatmap-D0j2OFv0.js → vue-ui-table-heatmap-EAevgnzN.js} +63 -56
  141. package/dist/{vue-ui-table-sparkline-D0_FhhN5.cjs → vue-ui-table-sparkline-3JMqr89P.cjs} +1 -1
  142. package/dist/{vue-ui-table-sparkline-C2sUG_7S.js → vue-ui-table-sparkline-s_oWe6MG.js} +90 -83
  143. package/dist/{vue-ui-thermometer-Bw35Fw8v.cjs → vue-ui-thermometer--mYRly4x.cjs} +1 -1
  144. package/dist/{vue-ui-thermometer-CdLZ8te2.js → vue-ui-thermometer-Bo3l_0Kf.js} +113 -106
  145. package/dist/{vue-ui-timer-1-kXQ5_q.js → vue-ui-timer-C9EuUurN.js} +6 -6
  146. package/dist/{vue-ui-timer-Deg5YPx0.cjs → vue-ui-timer-Djh-ZDNe.cjs} +1 -1
  147. package/dist/{vue-ui-tiremarks-uSgVLSbo.cjs → vue-ui-tiremarks-CKv_KApZ.cjs} +1 -1
  148. package/dist/{vue-ui-tiremarks-BHTSw0fa.js → vue-ui-tiremarks-DgdpEDJ1.js} +76 -69
  149. package/dist/{vue-ui-treemap-7W_lvbV0.cjs → vue-ui-treemap-AkNJjd2c.cjs} +1 -1
  150. package/dist/{vue-ui-treemap-C2u5sEzh.js → vue-ui-treemap-D13sISL0.js} +144 -137
  151. package/dist/{vue-ui-vertical-bar-BlzOi8LC.cjs → vue-ui-vertical-bar-CQlvpdJl.cjs} +3 -3
  152. package/dist/{vue-ui-vertical-bar-U3LQF-NS.js → vue-ui-vertical-bar-DfegzHj4.js} +120 -113
  153. package/dist/{vue-ui-waffle-DUXvINoC.cjs → vue-ui-waffle-Dve1LWVt.cjs} +1 -1
  154. package/dist/{vue-ui-waffle-qAheWwiI.js → vue-ui-waffle-f72Lq8_D.js} +78 -71
  155. package/dist/{vue-ui-wheel-DIoKCgCS.cjs → vue-ui-wheel-BG1GcVvN.cjs} +1 -1
  156. package/dist/{vue-ui-wheel-CuLQchDK.js → vue-ui-wheel-BxefMdit.js} +105 -98
  157. package/dist/{vue-ui-word-cloud-B-nFH7hZ.js → vue-ui-word-cloud-BYY4K2G4.js} +123 -116
  158. package/dist/{vue-ui-word-cloud-BSvmRQ5n.cjs → vue-ui-word-cloud-CRRR7H7h.cjs} +1 -1
  159. package/dist/{vue-ui-xy-DXMoSF2C.js → vue-ui-xy-BS0_aTIH.js} +73 -66
  160. package/dist/{vue-ui-xy-BGsFH9wE.cjs → vue-ui-xy-DGYZFgdd.cjs} +2 -2
  161. package/dist/{vue-ui-xy-canvas-CTymfSH6.js → vue-ui-xy-canvas-Bl2v7Z3U.js} +200 -193
  162. package/dist/{vue-ui-xy-canvas-i13v43UX.cjs → vue-ui-xy-canvas-R_pPaj0X.cjs} +2 -2
  163. package/package.json +2 -7
  164. package/dist/PenAndPaper-Dbw8Fph9.cjs +0 -1
  165. package/dist/index-Dwoe0gcF.cjs +0 -15
  166. package/dist/index-Fl-W8YeZ.js +0 -3971
  167. package/dist/usePrinter-bPnqqKha.cjs +0 -1
  168. package/dist/useResponsive-YQYQrAZ_.cjs +0 -1
  169. package/dist/vue-ui-circle-pack-Ce1oEvgz.cjs +0 -1
  170. package/dist/vue-ui-circle-pack-CrgnQ_jY.js +0 -663
  171. package/dist/vue-ui-heatmap-DvItO4xs.cjs +0 -1
@@ -1,16 +1,16 @@
1
- import { useCssVars as Ge, computed as y, createElementBlock as h, openBlock as r, createElementVNode as S, renderSlot as c, createVNode as ne, normalizeStyle as J, ref as n, watch as H, onMounted as Le, onBeforeUnmount as Xe, unref as i, createBlock as P, createCommentVNode as k, createSlots as je, withCtx as m, normalizeProps as M, guardReactiveProps as _, normalizeClass as $e, Fragment as qe, renderList as He, toDisplayString as xe, createTextVNode as Ye, nextTick as Te } from "vue";
2
- import { u as Je, c as Se, a5 as Ke, v as Qe, t as Ze, p as Y, a as et, o as tt, e as Fe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-DvAaY6OP.js";
3
- import { _ as ut } from "./Title-dsg3PqUg.js";
4
- import { u as it, U as ct } from "./usePrinter-D_2jA4x8.js";
5
- import { d as dt, t as vt, u as ht } from "./useResponsive-BWapHhVH.js";
6
- import mt from "./vue-ui-accordion-LbUarYuf.js";
7
- import { D as ft } from "./DataTable-pNLWbeCL.js";
8
- import pt from "./BaseIcon-nz-vbP7I.js";
1
+ import { useCssVars as Ge, computed as y, createElementBlock as m, openBlock as r, createElementVNode as N, renderSlot as i, createVNode as ne, normalizeStyle as J, ref as n, watch as H, onMounted as Le, onBeforeUnmount as Xe, unref as c, createBlock as M, createCommentVNode as k, createSlots as je, withCtx as h, normalizeProps as S, guardReactiveProps as F, normalizeClass as $e, Fragment as qe, renderList as He, toDisplayString as xe, createTextVNode as Ye, nextTick as Te } from "vue";
2
+ import { u as Je, c as Se, a5 as Ke, v as Qe, t as Ze, p as Y, a as et, o as tt, e as Fe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-DUnEDLbc.js";
3
+ import { _ as ut } from "./Title-1PWD04Gh.js";
4
+ import { u as it, U as ct } from "./usePrinter-Undaynpo.js";
5
+ import { d as dt, t as vt, u as ht } from "./useResponsive-vZgZwV-S.js";
6
+ import mt from "./vue-ui-accordion-C8Couc_G.js";
7
+ import { D as ft } from "./DataTable-DfMqgTjL.js";
8
+ import pt from "./BaseIcon-DH34CAFx.js";
9
9
  import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as Ne } from "./useNestedProp-CGzX7c5Q.js";
11
- import { _ as gt } from "./PackageVersion-hltZM-fb.js";
12
- import { _ as yt } from "./Tooltip-DRFQIslg.js";
13
- import { P as bt } from "./PenAndPaper-qmkn1GhB.js";
10
+ import { u as Ne } from "./useNestedProp-CEMeoM-f.js";
11
+ import { _ as gt } from "./PackageVersion-1Y7SXTrk.js";
12
+ import { _ as yt } from "./Tooltip-BTO5NGkn.js";
13
+ import { P as bt } from "./PenAndPaper-BYhUvcy4.js";
14
14
  import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { u as kt } from "./useChartAccessibility-BWojgys7.js";
16
16
  const wt = { "data-html2canvas-ignore": "" }, $t = {
@@ -68,11 +68,11 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
68
68
  Ge((x) => ({
69
69
  "782b8172": d.value,
70
70
  "102109e6": V.value,
71
- "642212d7": I.value,
71
+ "642212d7": _.value,
72
72
  "1f5369d4": f.selectColor,
73
- "22b98ab8": F.value
73
+ "22b98ab8": z.value
74
74
  }));
75
- const p = f, d = y(() => p.inputColor), F = y(() => p.background), I = y(() => `${p.selectColor}33`), V = y(() => p.borderColor), w = K;
75
+ const p = f, d = y(() => p.inputColor), z = y(() => p.background), _ = y(() => `${p.selectColor}33`), V = y(() => p.borderColor), w = K;
76
76
  function R() {
77
77
  w("reset");
78
78
  }
@@ -84,12 +84,12 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
84
84
  background: p.selectColor
85
85
  };
86
86
  });
87
- return (x, b) => (r(), h("div", wt, [
88
- f.value !== f.source ? (r(), h("div", $t, [
89
- f.useResetSlot ? c(x.$slots, "reset-action", {
87
+ return (x, b) => (r(), m("div", wt, [
88
+ f.value !== f.source ? (r(), m("div", $t, [
89
+ f.useResetSlot ? i(x.$slots, "reset-action", {
90
90
  key: 1,
91
91
  reset: R
92
- }, void 0, !0) : (r(), h("button", {
92
+ }, void 0, !0) : (r(), m("button", {
93
93
  key: 0,
94
94
  "data-cy-reset": "",
95
95
  tabindex: "0",
@@ -102,14 +102,14 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
102
102
  stroke: f.textColor
103
103
  }, null, 8, ["stroke"])
104
104
  ]))
105
- ])) : (r(), h("div", xt)),
106
- S("div", Tt, [
107
- b[1] || (b[1] = S("div", { class: "slider-track" }, null, -1)),
108
- S("div", {
105
+ ])) : (r(), m("div", xt)),
106
+ N("div", Tt, [
107
+ b[1] || (b[1] = N("div", { class: "slider-track" }, null, -1)),
108
+ N("div", {
109
109
  class: "range-highlight",
110
110
  style: J(B.value)
111
111
  }, null, 4),
112
- S("input", {
112
+ N("input", {
113
113
  type: "range",
114
114
  min: f.min,
115
115
  max: f.max,
@@ -119,10 +119,10 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
119
119
  ])
120
120
  ]));
121
121
  }
122
- }, Nt = /* @__PURE__ */ ze(Ft, [["__scopeId", "data-v-b4e6aee9"]]), zt = ["id"], At = ["xmlns", "viewBox"], Ot = ["width", "height"], Pt = ["transform"], Mt = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], _t = {
122
+ }, Nt = /* @__PURE__ */ ze(Ft, [["__scopeId", "data-v-b4e6aee9"]]), zt = ["id"], At = ["xmlns", "viewBox"], Ot = ["width", "height"], Pt = ["transform"], It = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Mt = {
123
123
  key: 4,
124
124
  class: "vue-data-ui-watermark"
125
- }, It = ["innerHTML"], Rt = {
125
+ }, _t = ["innerHTML"], Rt = {
126
126
  __name: "vue-ui-word-cloud",
127
127
  props: {
128
128
  config: {
@@ -139,17 +139,17 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
139
139
  }
140
140
  },
141
141
  setup(f, { expose: K }) {
142
- const { vue_ui_word_cloud: p } = Je(), d = f, F = y({
142
+ const { vue_ui_word_cloud: p } = Je(), d = f, z = y({
143
143
  get() {
144
144
  return !!d.dataset && d.dataset.length;
145
145
  },
146
146
  set(t) {
147
147
  return t;
148
148
  }
149
- }), I = n(Se()), V = n(0), w = n(null), R = n(null), B = n(null), x = n(0), b = n(0), T = n(!1), e = y({
149
+ }), _ = n(Se()), V = n(0), w = n(null), R = n(null), B = n(null), x = n(0), b = n(0), T = n(!1), e = y({
150
150
  get: () => de(),
151
151
  set: (t) => t
152
- }), N = n(re());
152
+ }), A = n(re());
153
153
  function re() {
154
154
  return typeof d.dataset == "string" ? Ke(d.dataset) : d.dataset.map((t, a) => ({
155
155
  ...t,
@@ -157,7 +157,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
157
157
  }));
158
158
  }
159
159
  H(() => d.dataset, () => {
160
- N.value = re(), E();
160
+ A.value = re(), E();
161
161
  });
162
162
  const { userOptionsVisible: Q, setUserOptionsVisibility: ue, keepUserOptionState: ie } = Ct({ config: e.value }), { svgRef: ce } = kt({ config: e.value.style.chart.title });
163
163
  function de() {
@@ -176,7 +176,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
176
176
  H(() => d.config, (t) => {
177
177
  e.value = de(), Q.value = !e.value.userOptions.showOnChartHover, he(), x.value += 1, b.value += 1, Z(), v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
178
178
  }, { deep: !0 });
179
- const ve = n(null), z = n(0), s = n({
179
+ const ve = n(null), O = n(0), s = n({
180
180
  width: e.value.style.chart.width,
181
181
  height: e.value.style.chart.height,
182
182
  maxFontSize: e.value.style.chart.words.maxFontSize,
@@ -192,14 +192,14 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
192
192
  s.value.width = t, s.value.height = a, Te(E);
193
193
  });
194
194
  });
195
- H(() => z.value, () => {
195
+ H(() => O.value, () => {
196
196
  Oe();
197
197
  });
198
198
  const Oe = dt(() => {
199
199
  E();
200
200
  }, 10);
201
201
  function Z() {
202
- z.value = ee.value;
202
+ O.value = ee.value;
203
203
  }
204
204
  const D = n(null);
205
205
  Le(() => {
@@ -209,12 +209,12 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
209
209
  tt(d.dataset) ? Fe({
210
210
  componentName: "VueUiWordCloud",
211
211
  type: "dataset"
212
- }) : N.value.forEach((t, a) => {
212
+ }) : A.value.forEach((t, a) => {
213
213
  ot({
214
214
  datasetObject: t,
215
215
  requiredAttributes: ["name", "value"]
216
216
  }).forEach((o) => {
217
- F.value = !1, Fe({
217
+ z.value = !1, Fe({
218
218
  componentName: "VueUiWordCloud",
219
219
  type: "datasetSerieAttribute",
220
220
  property: o,
@@ -227,7 +227,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
227
227
  D.value && D.value.disconnect();
228
228
  });
229
229
  const { isPrinting: me, isImaging: fe, generatePdf: pe, generateImage: ge } = it({
230
- elementId: `wordCloud_${I.value}`,
230
+ elementId: `wordCloud_${_.value}`,
231
231
  fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
232
232
  }), v = n({
233
233
  showTable: e.value.table.show,
@@ -240,38 +240,38 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
240
240
  height: a
241
241
  };
242
242
  }
243
- function Me(t, a) {
243
+ function Ie(t, a) {
244
244
  return t.x < a.x + a.width && t.x + t.width > a.x && t.y < a.y + a.height && t.y + t.height > a.y;
245
245
  }
246
- function _e(t, a, o) {
246
+ function Me(t, a, o) {
247
247
  const u = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, g = 0, C = 0;
248
- return t.forEach((O) => {
248
+ return t.forEach((I) => {
249
249
  let le = !1;
250
250
  for (let q = 0; q < Math.max(a, o) / 2 && !le; q += e.value.style.chart.words.packingWeight)
251
251
  for (let se = 0; se < 360 && !le; se += e.value.style.chart.words.packingWeight) {
252
- const we = se * Math.PI / 180, Ue = g + q * Math.cos(we) - O.width / 2, Ve = C + q * Math.sin(we) - O.height / 2, $ = { ...O, x: Ue, y: Ve }, Be = $.x >= l.x && $.y >= l.y && $.x + $.width <= l.x + l.width && $.y + $.height <= l.y + l.height, De = u.some((Ee) => Me($, Ee));
252
+ const we = se * Math.PI / 180, Ue = g + q * Math.cos(we) - I.width / 2, Ve = C + q * Math.sin(we) - I.height / 2, $ = { ...I, x: Ue, y: Ve }, Be = $.x >= l.x && $.y >= l.y && $.x + $.width <= l.x + l.width && $.y + $.height <= l.y + l.height, De = u.some((Ee) => Ie($, Ee));
253
253
  Be && !De && (u.push($), le = !0);
254
254
  }
255
255
  }), u;
256
256
  }
257
257
  const W = n([]);
258
258
  H(() => d.dataset, E, { immediate: !0 });
259
- const ee = y(() => Math.round(Math.min(...N.value.map((t) => t.value)))), ye = y(() => Math.round(Math.max(...N.value.map((t) => t.value))));
259
+ const ee = y(() => Math.round(Math.min(...A.value.map((t) => t.value)))), ye = y(() => Math.round(Math.max(...A.value.map((t) => t.value))));
260
260
  function E() {
261
- const t = [...N.value].filter((l) => l.value >= z.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), u = [...N.value].filter((l) => l.value >= z.value).map((l, g) => {
261
+ const t = [...A.value].filter((l) => l.value >= O.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), u = [...A.value].filter((l) => l.value >= O.value).map((l, g) => {
262
262
  let C = (l.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
263
263
  C = isNaN(C) ? s.value.minFontSize : C;
264
- const O = Pe(l.name, C);
264
+ const I = Pe(l.name, C);
265
265
  return {
266
266
  ...l,
267
267
  id: Se(),
268
268
  fontSize: C,
269
- width: O.width,
270
- height: O.height,
269
+ width: I.width,
270
+ height: I.height,
271
271
  color: e.value.style.chart.words.usePalette ? e.value.customPalette[g] || e.value.customPalette[g % e.value.customPalette.length] || Y[g] || Y[g % Y.length] : e.value.style.chart.words.color
272
272
  };
273
273
  });
274
- W.value = _e(u, s.value.width, s.value.height).sort((l, g) => g.fontSize - l.fontSize);
274
+ W.value = Me(u, s.value.width, s.value.height).sort((l, g) => g.fontSize - l.fontSize);
275
275
  }
276
276
  const G = y(() => {
277
277
  const t = W.value.map((o) => ({
@@ -324,7 +324,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
324
324
  config: o
325
325
  };
326
326
  }), X = n(!1);
327
- function Ie(t) {
327
+ function _e(t) {
328
328
  X.value = t, V.value += 1;
329
329
  }
330
330
  function Re() {
@@ -349,10 +349,10 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
349
349
  toggleTooltip: ke,
350
350
  toggleAnnotator: te
351
351
  });
352
- const A = n(null), U = n(!1), oe = n(""), ae = n(null);
352
+ const P = n(null), U = n(!1), oe = n(""), ae = n(null);
353
353
  function We(t) {
354
354
  if (!v.value.showTooltip) return;
355
- A.value = t.id, ae.value = { datapoint: t, config: e.value };
355
+ P.value = t.id, ae.value = { datapoint: t, config: e.value };
356
356
  const a = e.value.style.chart.tooltip.customFormat;
357
357
  if (U.value = !1, rt(a))
358
358
  try {
@@ -370,30 +370,30 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
370
370
  }
371
371
  T.value = !0;
372
372
  }
373
- return (t, a) => (r(), h("div", {
373
+ return (t, a) => (r(), m("div", {
374
374
  class: "vue-ui-word-cloud",
375
375
  ref_key: "wordCloudChart",
376
376
  ref: w,
377
- id: `wordCloud_${I.value}`,
377
+ id: `wordCloud_${_.value}`,
378
378
  style: J(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
379
- onMouseenter: a[3] || (a[3] = () => i(ue)(!0)),
380
- onMouseleave: a[4] || (a[4] = () => i(ue)(!1))
379
+ onMouseenter: a[3] || (a[3] = () => c(ue)(!0)),
380
+ onMouseleave: a[4] || (a[4] = () => c(ue)(!1))
381
381
  }, [
382
- e.value.userOptions.buttons.annotator ? (r(), P(bt, {
382
+ e.value.userOptions.buttons.annotator ? (r(), M(bt, {
383
383
  key: 0,
384
- svgRef: i(ce),
384
+ svgRef: c(ce),
385
385
  backgroundColor: e.value.style.chart.backgroundColor,
386
386
  color: e.value.style.chart.color,
387
387
  active: j.value,
388
388
  onClose: te
389
389
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
390
- e.value.style.chart.title.text ? (r(), h("div", {
390
+ e.value.style.chart.title.text ? (r(), m("div", {
391
391
  key: 1,
392
392
  ref_key: "chartTitle",
393
393
  ref: R,
394
394
  style: "width:100%;background:transparent;padding-bottom:24px"
395
395
  }, [
396
- (r(), P(ut, {
396
+ (r(), M(ut, {
397
397
  key: `title_${x.value}`,
398
398
  config: {
399
399
  title: {
@@ -405,14 +405,14 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
405
405
  }
406
406
  }, null, 8, ["config"]))
407
407
  ], 512)) : k("", !0),
408
- e.value.userOptions.show && F.value && (i(ie) || i(Q)) ? (r(), P(ct, {
408
+ e.value.userOptions.show && z.value && (c(ie) || c(Q)) ? (r(), M(ct, {
409
409
  ref: "details",
410
410
  key: `user_option_${V.value}`,
411
411
  backgroundColor: e.value.style.chart.backgroundColor,
412
412
  color: e.value.style.chart.color,
413
- isPrinting: i(me),
414
- isImaging: i(fe),
415
- uid: I.value,
413
+ isPrinting: c(me),
414
+ isImaging: c(fe),
415
+ uid: _.value,
416
416
  hasPdf: e.value.userOptions.buttons.pdf,
417
417
  hasXls: e.value.userOptions.buttons.csv,
418
418
  hasImg: e.value.userOptions.buttons.img,
@@ -426,71 +426,78 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
426
426
  isTooltip: v.value.showTooltip,
427
427
  hasAnnotator: e.value.userOptions.buttons.annotator,
428
428
  isAnnotation: j.value,
429
- onToggleFullscreen: Ie,
430
- onGeneratePdf: i(pe),
429
+ onToggleFullscreen: _e,
430
+ onGeneratePdf: c(pe),
431
431
  onGenerateCsv: be,
432
- onGenerateImage: i(ge),
432
+ onGenerateImage: c(ge),
433
433
  onToggleTable: Ce,
434
434
  onToggleTooltip: ke,
435
435
  onToggleAnnotator: te,
436
436
  style: J({
437
- visibility: i(ie) ? i(Q) ? "visible" : "hidden" : "visible"
437
+ visibility: c(ie) ? c(Q) ? "visible" : "hidden" : "visible"
438
438
  })
439
439
  }, je({ _: 2 }, [
440
+ t.$slots.menuIcon ? {
441
+ name: "menuIcon",
442
+ fn: h(({ isOpen: o, color: u }) => [
443
+ i(t.$slots, "menuIcon", S(F({ isOpen: o, color: u })), void 0, !0)
444
+ ]),
445
+ key: "0"
446
+ } : void 0,
440
447
  t.$slots.optionPdf ? {
441
448
  name: "optionPdf",
442
- fn: m(() => [
443
- c(t.$slots, "optionPdf", {}, void 0, !0)
449
+ fn: h(() => [
450
+ i(t.$slots, "optionPdf", {}, void 0, !0)
444
451
  ]),
445
- key: "0"
452
+ key: "1"
446
453
  } : void 0,
447
454
  t.$slots.optionCsv ? {
448
455
  name: "optionCsv",
449
- fn: m(() => [
450
- c(t.$slots, "optionCsv", {}, void 0, !0)
456
+ fn: h(() => [
457
+ i(t.$slots, "optionCsv", {}, void 0, !0)
451
458
  ]),
452
- key: "1"
459
+ key: "2"
453
460
  } : void 0,
454
461
  t.$slots.optionImg ? {
455
462
  name: "optionImg",
456
- fn: m(() => [
457
- c(t.$slots, "optionImg", {}, void 0, !0)
463
+ fn: h(() => [
464
+ i(t.$slots, "optionImg", {}, void 0, !0)
458
465
  ]),
459
- key: "2"
466
+ key: "3"
460
467
  } : void 0,
461
468
  t.$slots.optionTable ? {
462
469
  name: "optionTable",
463
- fn: m(() => [
464
- c(t.$slots, "optionTable", {}, void 0, !0)
470
+ fn: h(() => [
471
+ i(t.$slots, "optionTable", {}, void 0, !0)
465
472
  ]),
466
- key: "3"
473
+ key: "4"
467
474
  } : void 0,
468
475
  t.$slots.optionFullscreen ? {
469
476
  name: "optionFullscreen",
470
- fn: m(({ toggleFullscreen: o, isFullscreen: u }) => [
471
- c(t.$slots, "optionFullscreen", M(_({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
477
+ fn: h(({ toggleFullscreen: o, isFullscreen: u }) => [
478
+ i(t.$slots, "optionFullscreen", S(F({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
472
479
  ]),
473
- key: "4"
480
+ key: "5"
474
481
  } : void 0,
475
482
  t.$slots.optionAnnotator ? {
476
483
  name: "optionAnnotator",
477
- fn: m(({ toggleAnnotator: o, isAnnotator: u }) => [
478
- c(t.$slots, "optionAnnotator", M(_({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
484
+ fn: h(({ toggleAnnotator: o, isAnnotator: u }) => [
485
+ i(t.$slots, "optionAnnotator", S(F({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
479
486
  ]),
480
- key: "5"
487
+ key: "6"
481
488
  } : void 0
482
489
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
483
- F.value ? (r(), h("svg", {
490
+ z.value ? (r(), m("svg", {
484
491
  key: 3,
485
492
  ref_key: "svgRef",
486
493
  ref: ce,
487
494
  class: $e({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
488
- xmlns: i(lt),
495
+ xmlns: c(lt),
489
496
  viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
490
497
  style: "overflow:visible;background:transparent;"
491
498
  }, [
492
499
  ne(gt),
493
- t.$slots["chart-background"] ? (r(), h("foreignObject", {
500
+ t.$slots["chart-background"] ? (r(), m("foreignObject", {
494
501
  key: 0,
495
502
  x: 0,
496
503
  y: 0,
@@ -500,13 +507,13 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
500
507
  pointerEvents: "none"
501
508
  }
502
509
  }, [
503
- c(t.$slots, "chart-background", {}, void 0, !0)
510
+ i(t.$slots, "chart-background", {}, void 0, !0)
504
511
  ], 8, Ot)) : k("", !0),
505
- S("g", {
512
+ N("g", {
506
513
  transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
507
514
  }, [
508
- (r(!0), h(qe, null, He(W.value, (o, u) => (r(), h("g", null, [
509
- (r(), h("text", {
515
+ (r(!0), m(qe, null, He(W.value, (o, u) => (r(), m("g", null, [
516
+ (r(), m("text", {
510
517
  fill: o.color,
511
518
  "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
512
519
  key: u,
@@ -514,23 +521,23 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
514
521
  y: o.y,
515
522
  "font-size": o.fontSize,
516
523
  transform: `translate(${o.width / 2}, ${o.height / 2})`,
517
- class: $e({ animated: e.value.useCssAnimation, "word-selected": A.value && A.value === o.id && v.value.showTooltip, "word-not-selected": A.value && A.value !== o.id && v.value.showTooltip }),
524
+ class: $e({ animated: e.value.useCssAnimation, "word-selected": P.value && P.value === o.id && v.value.showTooltip, "word-not-selected": P.value && P.value !== o.id && v.value.showTooltip }),
518
525
  "text-anchor": "middle",
519
526
  "dominant-baseline": "central",
520
527
  onMouseover: (l) => We(o),
521
528
  onMouseleave: a[0] || (a[0] = (l) => {
522
- A.value = null, T.value = !1;
529
+ P.value = null, T.value = !1;
523
530
  }),
524
531
  style: J(`animation-delay:${u * e.value.animationDelayMs}ms !important;`)
525
- }, xe(o.name), 47, Mt))
532
+ }, xe(o.name), 47, It))
526
533
  ]))), 256))
527
534
  ], 8, Pt),
528
- c(t.$slots, "svg", {
535
+ i(t.$slots, "svg", {
529
536
  svg: { height: s.value.height, width: s.value.width }
530
537
  }, void 0, !0)
531
538
  ], 10, At)) : k("", !0),
532
- t.$slots.watermark ? (r(), h("div", _t, [
533
- c(t.$slots, "watermark", M(_({ isPrinting: i(me) || i(fe) })), void 0, !0)
539
+ t.$slots.watermark ? (r(), m("div", Mt, [
540
+ i(t.$slots, "watermark", S(F({ isPrinting: c(me) || c(fe) })), void 0, !0)
534
541
  ])) : k("", !0),
535
542
  ne(yt, {
536
543
  show: v.value.showTooltip && T.value,
@@ -547,24 +554,24 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
547
554
  content: oe.value,
548
555
  isCustom: U.value
549
556
  }, {
550
- "tooltip-before": m(() => [
551
- c(t.$slots, "tooltip-before", M(_({ ...ae.value })), void 0, !0)
557
+ "tooltip-before": h(() => [
558
+ i(t.$slots, "tooltip-before", S(F({ ...ae.value })), void 0, !0)
552
559
  ]),
553
- "tooltip-after": m(() => [
554
- c(t.$slots, "tooltip-after", M(_({ ...ae.value })), void 0, !0)
560
+ "tooltip-after": h(() => [
561
+ i(t.$slots, "tooltip-after", S(F({ ...ae.value })), void 0, !0)
555
562
  ]),
556
563
  _: 3
557
564
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
558
- S("div", {
565
+ N("div", {
559
566
  ref_key: "chartSlicer",
560
567
  ref: ve,
561
568
  style: "width:100%;background:transparent",
562
569
  "data-html2canvas-ignore": ""
563
570
  }, [
564
- e.value.style.chart.zoom.show && ee.value < ye.value ? (r(), P(Nt, {
571
+ e.value.style.chart.zoom.show && ee.value < ye.value ? (r(), M(Nt, {
565
572
  key: 0,
566
- value: z.value,
567
- "onUpdate:value": a[1] || (a[1] = (o) => z.value = o),
573
+ value: O.value,
574
+ "onUpdate:value": a[1] || (a[1] = (o) => O.value = o),
568
575
  min: ee.value,
569
576
  max: ye.value,
570
577
  textColor: e.value.style.chart.color,
@@ -576,21 +583,21 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
576
583
  source: e.value.style.chart.width,
577
584
  onReset: Z
578
585
  }, {
579
- "reset-action": m(({ reset: o }) => [
580
- c(t.$slots, "reset-action", M(_({ reset: o })), void 0, !0)
586
+ "reset-action": h(({ reset: o }) => [
587
+ i(t.$slots, "reset-action", S(F({ reset: o })), void 0, !0)
581
588
  ]),
582
589
  _: 3
583
590
  }, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : k("", !0)
584
591
  ], 512),
585
- t.$slots.source ? (r(), h("div", {
592
+ t.$slots.source ? (r(), m("div", {
586
593
  key: 5,
587
594
  ref_key: "source",
588
595
  ref: B,
589
596
  dir: "auto"
590
597
  }, [
591
- c(t.$slots, "source", {}, void 0, !0)
598
+ i(t.$slots, "source", {}, void 0, !0)
592
599
  ], 512)) : k("", !0),
593
- F.value ? (r(), P(mt, {
600
+ z.value ? (r(), M(mt, {
594
601
  key: 6,
595
602
  hideDetails: "",
596
603
  config: {
@@ -606,8 +613,8 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
606
613
  }
607
614
  }
608
615
  }, {
609
- content: m(() => [
610
- (r(), P(ft, {
616
+ content: h(() => [
617
+ (r(), M(ft, {
611
618
  key: `table_${b.value}`,
612
619
  colNames: L.value.colNames,
613
620
  head: L.value.head,
@@ -616,13 +623,13 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
616
623
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
617
624
  onClose: a[2] || (a[2] = (o) => v.value.showTable = !1)
618
625
  }, {
619
- th: m(({ th: o }) => [
620
- S("div", {
626
+ th: h(({ th: o }) => [
627
+ N("div", {
621
628
  innerHTML: o,
622
629
  style: { display: "flex", "align-items": "center" }
623
- }, null, 8, It)
630
+ }, null, 8, _t)
624
631
  ]),
625
- td: m(({ td: o }) => [
632
+ td: h(({ td: o }) => [
626
633
  Ye(xe(o.name || o), 1)
627
634
  ]),
628
635
  _: 1
@@ -632,7 +639,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
632
639
  }, 8, ["config"])) : k("", !0)
633
640
  ], 44, zt));
634
641
  }
635
- }, Qt = /* @__PURE__ */ ze(Rt, [["__scopeId", "data-v-b3e9fbc2"]]);
642
+ }, Qt = /* @__PURE__ */ ze(Rt, [["__scopeId", "data-v-e87563ab"]]);
636
643
  export {
637
644
  Qt as default
638
645
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-3OrObUP-.cjs"),Te=require("./Title-DWqgN4Kv.cjs"),ce=require("./usePrinter-bPnqqKha.cjs"),H=require("./useResponsive-YQYQrAZ_.cjs"),Ne=require("./vue-ui-accordion-BmScSwW2.cjs"),Pe=require("./DataTable-Dr-djTUz.cjs"),Be=require("./BaseIcon-BpRuwiFD.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=require("./useNestedProp-B53Yi1Rk.cjs"),Fe=require("./PackageVersion-DsoqDgVf.cjs"),ze=require("./Tooltip-B6T_qzJD.cjs"),Ae=require("./PenAndPaper-Dbw8Fph9.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ee={"data-html2canvas-ignore":""},Me={key:0,class:"reset-wrapper"},_e={key:1,class:"reset-wrapper"},Re={class:"mono-slicer"},Ie=["min","max","value"],qe={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(d,{emit:R}){e.useCssVars(y=>({"782b8172":i.value,"102109e6":B.value,"642212d7":$.value,"1f5369d4":d.selectColor,"22b98ab8":C.value}));const v=d,i=e.computed(()=>v.inputColor),C=e.computed(()=>v.background),$=e.computed(()=>`${v.selectColor}33`),B=e.computed(()=>v.borderColor),f=R;function T(){f("reset")}const F=e.computed(()=>{const y=v.max-v.min,m=0,b=(v.value-v.min)/y*100;return{left:`${m}%`,width:`${b-m}%`,background:v.selectColor}});return(y,m)=>(e.openBlock(),e.createElementBlock("div",Ee,[d.value!==d.source?(e.openBlock(),e.createElementBlock("div",Me,[d.useResetSlot?e.renderSlot(y.$slots,"reset-action",{key:1,reset:T},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:T},[e.createVNode(Be.default,{name:"refresh",stroke:d.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",_e)),e.createElementVNode("div",Re,[m[1]||(m[1]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(F.value)},null,4),e.createElementVNode("input",{type:"range",min:d.min,max:d.max,value:Number(d.value),onInput:m[0]||(m[0]=b=>f("update:value",Number(b.target.value)))},null,40,Ie)])]))}},We=ve._export_sfc(qe,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],De=["xmlns","viewBox"],Ge=["width","height"],Le=["transform"],je=["fill","font-weight","x","y","font-size","transform","onMouseover"],He={key:4,class:"vue-data-ui-watermark"},Xe=["innerHTML"],Ye={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(d,{expose:R}){const{vue_ui_word_cloud:v}=s.useConfig(),i=d,C=e.computed({get(){return!!i.dataset&&i.dataset.length},set(o){return o}}),$=e.ref(s.createUid()),B=e.ref(0),f=e.ref(null),T=e.ref(null),F=e.ref(null),y=e.ref(0),m=e.ref(0),b=e.ref(!1),t=e.computed({get:()=>Q(),set:o=>o}),k=e.ref(X());function X(){return typeof i.dataset=="string"?s.createWordCloudDatasetFromPlainText(i.dataset):i.dataset.map((o,a)=>({...o,value:s.checkNaN(o.value)}))}e.watch(()=>i.dataset,()=>{k.value=X(),A()});const{userOptionsVisible:I,setUserOptionsVisibility:Y,keepUserOptionState:J}=Oe.useUserOptionState({config:t.value}),{svgRef:K}=Ve.useChartAccessibility({config:t.value.style.chart.title});function Q(){const o=de.useNestedProp({userConfig:i.config,defaultConfig:v});return o.theme?{...de.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||i.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>i.config,o=>{t.value=Q(),I.value=!t.value.userOptions.showOnChartHover,ee(),y.value+=1,m.value+=1,q(),c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const Z=e.ref(null),w=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),he=H.throttle(()=>{const{width:o,height:a}=H.useResponsive({chart:f.value,title:t.value.style.chart.title.text?T.value:null,slicer:t.value.style.chart.zoom.show&&Z.value,source:F.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(A)})});e.watch(()=>w.value,()=>{me()});const me=H.debounce(()=>{A()},10);function q(){w.value=W.value}const z=e.ref(null);e.onMounted(()=>{ee(),q()});function ee(){s.objectIsEmpty(i.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{C.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(z.value=new ResizeObserver(he),z.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});const{isPrinting:te,isImaging:oe,generatePdf:le,generateImage:ae}=ce.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),c=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function pe(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function fe(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function ge(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},h=0,p=0;return o.forEach(S=>{let L=!1;for(let _=0;_<Math.max(a,l)/2&&!L;_+=t.value.style.chart.words.packingWeight)for(let j=0;j<360&&!L;j+=t.value.style.chart.words.packingWeight){const ie=j*Math.PI/180,ke=h+_*Math.cos(ie)-S.width/2,we=p+_*Math.sin(ie)-S.height/2,g={...S,x:ke,y:we},xe=g.x>=n.x&&g.y>=n.y&&g.x+g.width<=n.x+n.width&&g.y+g.height<=n.y+n.height,Se=u.some($e=>fe(g,$e));xe&&!Se&&(u.push(g),L=!0)}}),u}const N=e.ref([]);e.watch(()=>i.dataset,A,{immediate:!0});const W=e.computed(()=>Math.round(Math.min(...k.value.map(o=>o.value)))),ne=e.computed(()=>Math.round(Math.max(...k.value.map(o=>o.value))));function A(){const o=[...k.value].filter(n=>n.value>=w.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=[...k.value].filter(n=>n.value>=w.value).map((n,h)=>{let p=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;p=isNaN(p)?r.value.minFontSize:p;const S=pe(n.name,p);return{...n,id:s.createUid(),fontSize:p,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[h]||t.value.customPalette[h%t.value.customPalette.length]||s.palette[h]||s.palette[h%s.palette.length]:t.value.style.chart.words.color}});N.value=ge(u,r.value.width,r.value.height).sort((n,h)=>h.fontSize-n.fontSize)}const O=e.computed(()=>{const o=N.value.map(l=>({name:l.name,color:l.color})),a=N.value.map(l=>l.value);return{head:o,body:a}});function re(){e.nextTick(()=>{const o=O.value.head.map((u,n)=>[[u.name],[O.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const V=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=O.value.head.map((n,h)=>{const p=s.dataLabel({p:t.value.table.td.prefix,v:O.value.body[h],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},p]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),E=e.ref(!1);function ye(o){E.value=o,B.value+=1}function be(){return N.value}function se(){c.value.showTable=!c.value.showTable}function ue(){c.value.showTooltip=!c.value.showTooltip}const M=e.ref(!1);function U(){M.value=!M.value}R({getData:be,generateCsv:re,generatePdf:le,generateImage:ae,toggleTable:se,toggleTooltip:ue,toggleAnnotator:U});const x=e.ref(null),P=e.ref(!1),D=e.ref(""),G=e.ref(null);function Ce(o){if(!c.value.showTooltip)return;x.value=o.id,G.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(P.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(D.value=l,P.value=!0)}catch{console.warn("Custom format cannot be applied."),P.value=!1}if(!P.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;D.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}b.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(Y)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(Y)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,svgRef:e.unref(K),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:T,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${y.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(J)||e.unref(I))?(e.openBlock(),e.createBlock(ce.UserOptions,{ref:"details",key:`user_option_${B.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(oe),uid:$.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,isFullscreen:E.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:c.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(le),onGenerateCsv:re,onGenerateImage:e.unref(ae),onToggleTable:se,onToggleTooltip:ue,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(J)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:K,class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Fe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":x.value&&x.value===l.id&&c.value.showTooltip,"word-not-selected":x.value&&x.value!==l.id&&c.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>Ce(l),onMouseleave:a[0]||(a[0]=n=>{x.value=null,b.value=!1}),style:e.normalizeStyle(`animation-delay:${u*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,je))]))),256))],8,Le),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,De)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:c.value.showTooltip&&b.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:f.value,content:D.value,isCustom:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:Z,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&W.value<ne.value?(e.openBlock(),e.createBlock(We,{key:0,value:w.value,"onUpdate:value":a[1]||(a[1]=l=>w.value=l),min:W.value,max:ne.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:F,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(Ne.default,{key:6,hideDetails:"",config:{open:c.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(Pe.DataTable,{key:`table_${m.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Je=ve._export_sfc(Ye,[["__scopeId","data-v-b3e9fbc2"]]);exports.default=Je;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DM-Bs-Ua.cjs"),Te=require("./Title-Pgt1Ixvo.cjs"),ce=require("./usePrinter-DbpIk44f.cjs"),H=require("./useResponsive-N8jl0-aC.cjs"),Ne=require("./vue-ui-accordion-ZIsT4At8.cjs"),Pe=require("./DataTable-D5572vAU.cjs"),Be=require("./BaseIcon-BQwivF_K.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=require("./useNestedProp-CYy5g-mh.cjs"),Fe=require("./PackageVersion-JsuXjgR_.cjs"),ze=require("./Tooltip-te_h24w6.cjs"),Ae=require("./PenAndPaper-7lGhxIH8.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ee={"data-html2canvas-ignore":""},Me={key:0,class:"reset-wrapper"},Ie={key:1,class:"reset-wrapper"},Re={class:"mono-slicer"},_e=["min","max","value"],qe={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(d,{emit:R}){e.useCssVars(y=>({"782b8172":i.value,"102109e6":B.value,"642212d7":$.value,"1f5369d4":d.selectColor,"22b98ab8":C.value}));const v=d,i=e.computed(()=>v.inputColor),C=e.computed(()=>v.background),$=e.computed(()=>`${v.selectColor}33`),B=e.computed(()=>v.borderColor),f=R;function T(){f("reset")}const F=e.computed(()=>{const y=v.max-v.min,m=0,b=(v.value-v.min)/y*100;return{left:`${m}%`,width:`${b-m}%`,background:v.selectColor}});return(y,m)=>(e.openBlock(),e.createElementBlock("div",Ee,[d.value!==d.source?(e.openBlock(),e.createElementBlock("div",Me,[d.useResetSlot?e.renderSlot(y.$slots,"reset-action",{key:1,reset:T},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:T},[e.createVNode(Be.default,{name:"refresh",stroke:d.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ie)),e.createElementVNode("div",Re,[m[1]||(m[1]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(F.value)},null,4),e.createElementVNode("input",{type:"range",min:d.min,max:d.max,value:Number(d.value),onInput:m[0]||(m[0]=b=>f("update:value",Number(b.target.value)))},null,40,_e)])]))}},We=ve._export_sfc(qe,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],De=["xmlns","viewBox"],Ge=["width","height"],Le=["transform"],je=["fill","font-weight","x","y","font-size","transform","onMouseover"],He={key:4,class:"vue-data-ui-watermark"},Xe=["innerHTML"],Ye={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(d,{expose:R}){const{vue_ui_word_cloud:v}=s.useConfig(),i=d,C=e.computed({get(){return!!i.dataset&&i.dataset.length},set(o){return o}}),$=e.ref(s.createUid()),B=e.ref(0),f=e.ref(null),T=e.ref(null),F=e.ref(null),y=e.ref(0),m=e.ref(0),b=e.ref(!1),t=e.computed({get:()=>Q(),set:o=>o}),k=e.ref(X());function X(){return typeof i.dataset=="string"?s.createWordCloudDatasetFromPlainText(i.dataset):i.dataset.map((o,a)=>({...o,value:s.checkNaN(o.value)}))}e.watch(()=>i.dataset,()=>{k.value=X(),A()});const{userOptionsVisible:_,setUserOptionsVisibility:Y,keepUserOptionState:J}=Oe.useUserOptionState({config:t.value}),{svgRef:K}=Ve.useChartAccessibility({config:t.value.style.chart.title});function Q(){const o=de.useNestedProp({userConfig:i.config,defaultConfig:v});return o.theme?{...de.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||i.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>i.config,o=>{t.value=Q(),_.value=!t.value.userOptions.showOnChartHover,ee(),y.value+=1,m.value+=1,q(),c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const Z=e.ref(null),w=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),he=H.throttle(()=>{const{width:o,height:a}=H.useResponsive({chart:f.value,title:t.value.style.chart.title.text?T.value:null,slicer:t.value.style.chart.zoom.show&&Z.value,source:F.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(A)})});e.watch(()=>w.value,()=>{me()});const me=H.debounce(()=>{A()},10);function q(){w.value=W.value}const z=e.ref(null);e.onMounted(()=>{ee(),q()});function ee(){s.objectIsEmpty(i.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{C.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(z.value=new ResizeObserver(he),z.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});const{isPrinting:te,isImaging:oe,generatePdf:le,generateImage:ae}=ce.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),c=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function pe(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function fe(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function ge(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},h=0,p=0;return o.forEach(x=>{let L=!1;for(let I=0;I<Math.max(a,l)/2&&!L;I+=t.value.style.chart.words.packingWeight)for(let j=0;j<360&&!L;j+=t.value.style.chart.words.packingWeight){const ie=j*Math.PI/180,ke=h+I*Math.cos(ie)-x.width/2,we=p+I*Math.sin(ie)-x.height/2,g={...x,x:ke,y:we},Se=g.x>=n.x&&g.y>=n.y&&g.x+g.width<=n.x+n.width&&g.y+g.height<=n.y+n.height,xe=u.some($e=>fe(g,$e));Se&&!xe&&(u.push(g),L=!0)}}),u}const N=e.ref([]);e.watch(()=>i.dataset,A,{immediate:!0});const W=e.computed(()=>Math.round(Math.min(...k.value.map(o=>o.value)))),ne=e.computed(()=>Math.round(Math.max(...k.value.map(o=>o.value))));function A(){const o=[...k.value].filter(n=>n.value>=w.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=[...k.value].filter(n=>n.value>=w.value).map((n,h)=>{let p=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;p=isNaN(p)?r.value.minFontSize:p;const x=pe(n.name,p);return{...n,id:s.createUid(),fontSize:p,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[h]||t.value.customPalette[h%t.value.customPalette.length]||s.palette[h]||s.palette[h%s.palette.length]:t.value.style.chart.words.color}});N.value=ge(u,r.value.width,r.value.height).sort((n,h)=>h.fontSize-n.fontSize)}const O=e.computed(()=>{const o=N.value.map(l=>({name:l.name,color:l.color})),a=N.value.map(l=>l.value);return{head:o,body:a}});function re(){e.nextTick(()=>{const o=O.value.head.map((u,n)=>[[u.name],[O.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const V=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=O.value.head.map((n,h)=>{const p=s.dataLabel({p:t.value.table.td.prefix,v:O.value.body[h],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},p]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),E=e.ref(!1);function ye(o){E.value=o,B.value+=1}function be(){return N.value}function se(){c.value.showTable=!c.value.showTable}function ue(){c.value.showTooltip=!c.value.showTooltip}const M=e.ref(!1);function U(){M.value=!M.value}R({getData:be,generateCsv:re,generatePdf:le,generateImage:ae,toggleTable:se,toggleTooltip:ue,toggleAnnotator:U});const S=e.ref(null),P=e.ref(!1),D=e.ref(""),G=e.ref(null);function Ce(o){if(!c.value.showTooltip)return;S.value=o.id,G.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(P.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(D.value=l,P.value=!0)}catch{console.warn("Custom format cannot be applied."),P.value=!1}if(!P.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;D.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}b.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(Y)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(Y)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,svgRef:e.unref(K),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:T,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${y.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(J)||e.unref(_))?(e.openBlock(),e.createBlock(ce.UserOptions,{ref:"details",key:`user_option_${B.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(oe),uid:$.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,isFullscreen:E.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:c.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(le),onGenerateCsv:re,onGenerateImage:e.unref(ae),onToggleTable:se,onToggleTooltip:ue,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(J)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:u})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:u})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:K,class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Fe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":S.value&&S.value===l.id&&c.value.showTooltip,"word-not-selected":S.value&&S.value!==l.id&&c.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>Ce(l),onMouseleave:a[0]||(a[0]=n=>{S.value=null,b.value=!1}),style:e.normalizeStyle(`animation-delay:${u*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,je))]))),256))],8,Le),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,De)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:c.value.showTooltip&&b.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:f.value,content:D.value,isCustom:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:Z,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&W.value<ne.value?(e.openBlock(),e.createBlock(We,{key:0,value:w.value,"onUpdate:value":a[1]||(a[1]=l=>w.value=l),min:W.value,max:ne.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:F,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(Ne.default,{key:6,hideDetails:"",config:{open:c.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(Pe.DataTable,{key:`table_${m.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Je=ve._export_sfc(Ye,[["__scopeId","data-v-e87563ab"]]);exports.default=Je;