vue-data-ui 2.4.1 → 2.4.3

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 (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -1,10 +1,14 @@
1
- import { ref as o, onMounted as F, computed as B, watch as V, onBeforeUnmount as re, nextTick as de, openBlock as u, createElementBlock as r, createElementVNode as E, normalizeStyle as d, unref as C, normalizeClass as Ae, createTextVNode as G, toDisplayString as M, renderSlot as c, Fragment as q, renderList as D, normalizeProps as X, guardReactiveProps as j, createCommentVNode as N, createBlock as ve, createSlots as xe, withCtx as O } from "vue";
2
- import { u as ke, c as we, o as J, e as K, s as Ie, q as Fe, r as Be } from "./index-DDXisDKy.js";
3
- import { u as Oe } from "./useNestedProp-S1UXxUgm.js";
4
- import { u as Pe, U as Re } from "./usePrinter-8ofTb2MJ.js";
5
- import ze from "./vue-ui-skeleton-B2sRnIXX.js";
1
+ import { ref as o, onMounted as F, computed as B, watch as V, onBeforeUnmount as re, nextTick as de, openBlock as s, createElementBlock as r, createElementVNode as N, normalizeStyle as d, unref as C, normalizeClass as Ae, createTextVNode as G, toDisplayString as M, renderSlot as v, Fragment as q, renderList as D, normalizeProps as X, guardReactiveProps as j, createCommentVNode as O, createBlock as ve, createSlots as ke, withCtx as P } from "vue";
2
+ import { u as xe, c as we, o as J, e as K, s as Ie, q as Fe, r as Be } from "./index-Bya_q1J-.js";
3
+ import { u as Oe } from "./useNestedProp-B33hazbH.js";
4
+ import { u as Pe, U as Re } from "./usePrinter-CiHd1FwD.js";
5
+ import ze from "./vue-ui-skeleton-BYssP0K4.js";
6
6
  import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
8
+ key: 2,
9
+ ref: "source",
10
+ dir: "auto"
11
+ }, Ue = {
8
12
  __name: "vue-ui-carousel-table",
9
13
  props: {
10
14
  config: {
@@ -20,8 +24,8 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
20
24
  }
21
25
  }
22
26
  },
23
- setup(g, { expose: pe }) {
24
- const l = g, { vue_ui_carousel_table: ce } = ke(), S = o(we()), Q = o(!1), $ = o(!!l.dataset);
27
+ setup(g, { expose: ce }) {
28
+ const l = g, { vue_ui_carousel_table: pe } = xe(), S = o(we()), Q = o(!1), $ = o(!!l.dataset);
25
29
  F(() => {
26
30
  W();
27
31
  });
@@ -46,7 +50,7 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
46
50
  function Y() {
47
51
  return Oe({
48
52
  userConfig: l.config,
49
- defaultConfig: ce
53
+ defaultConfig: pe
50
54
  });
51
55
  }
52
56
  V(() => l.config, (t) => {
@@ -57,30 +61,30 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
57
61
  const { isPrinting: Z, isImaging: _, generatePdf: he, generateImage: ee } = Pe({
58
62
  elementId: `carousel-table_${S.value}`,
59
63
  fileName: e.value.caption.text || "vue-ui-carousel-table"
60
- }), v = o({
64
+ }), c = o({
61
65
  showAnimation: e.value.animation.use
62
- }), s = o(null), te = o(null), T = o(null), A = o(null), x = o(0), P = o(0), R = o(!1), k = o(null), h = o(null), w = o(0);
66
+ }), u = o(null), te = o(null), T = o(null), A = o(null), k = o(0), R = o(0), z = o(!1), x = o(null), h = o(null), w = o(0);
63
67
  function H() {
64
- k.value && (h.value = {
65
- elements: k.value.getElementsByTagName("tr"),
66
- heights: Array.from(k.value.getElementsByTagName("tr")).map((t) => t.getBoundingClientRect().height)
68
+ x.value && (h.value = {
69
+ elements: x.value.getElementsByTagName("tr"),
70
+ heights: Array.from(x.value.getElementsByTagName("tr")).map((t) => t.getBoundingClientRect().height)
67
71
  });
68
72
  }
69
73
  F(H);
70
- const fe = B(() => !h.value || !h.value.heights.length ? 0 : Math.max(...h.value.heights) + x.value + P.value), ge = B(() => l.dataset.body ? e.value.tbody.tr.visible <= l.dataset.body.length ? e.value.tbody.tr.visible : l.dataset.body.length : 0), me = B(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * ge.value + x.value + P.value), z = o(0), I = o(null), m = o(0), b = o(!1), ae = o(0);
74
+ const fe = B(() => !h.value || !h.value.heights.length ? 0 : Math.max(...h.value.heights) + k.value + R.value), ge = B(() => l.dataset.body ? e.value.tbody.tr.visible <= l.dataset.body.length ? e.value.tbody.tr.visible : l.dataset.body.length : 0), me = B(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * ge.value + k.value + R.value), E = o(0), I = o(null), m = o(0), b = o(!1), ae = o(0);
71
75
  F(() => {
72
- T.value && (x.value = T.value.getBoundingClientRect().height), A.value && (P.value = A.value.getBoundingClientRect().height), v.value.showAnimation && h.value && oe();
76
+ T.value && (k.value = T.value.getBoundingClientRect().height), A.value && (R.value = A.value.getBoundingClientRect().height), c.value.showAnimation && h.value && oe();
73
77
  }), F(() => {
74
- if (s.value) {
78
+ if (u.value) {
75
79
  let a = function() {
76
80
  const i = t.getBoundingClientRect().bottom;
77
81
  n.forEach((p) => {
78
82
  p.getBoundingClientRect().top < i ? p.style.visibility = "hidden" : p.style.visibility = "visible";
79
83
  });
80
84
  };
81
- const t = s.value.querySelector("thead"), n = Array.from(k.value.querySelectorAll("tr"));
82
- s.value.addEventListener("scroll", a), a(), re(() => {
83
- s.value.removeEventListener("scroll", a);
85
+ const t = u.value.querySelector("thead"), n = Array.from(x.value.querySelectorAll("tr"));
86
+ u.value.addEventListener("scroll", a), a(), re(() => {
87
+ u.value.removeEventListener("scroll", a);
84
88
  });
85
89
  }
86
90
  });
@@ -91,14 +95,14 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
91
95
  !I.value && !b.value && (I.value = requestAnimationFrame(ne));
92
96
  }
93
97
  function ye() {
94
- if (!s.value) return !1;
95
- const { scrollTop: t, scrollHeight: n, clientHeight: a } = s.value;
98
+ if (!u.value) return !1;
99
+ const { scrollTop: t, scrollHeight: n, clientHeight: a } = u.value;
96
100
  return t + a >= n;
97
101
  }
98
102
  function ne(t) {
99
103
  if (b.value) return;
100
- m.value || (m.value = t), t - m.value >= e.value.animation.speedMs && (z.value += h.value.heights[w.value], (ye() || w.value >= h.value.heights.length) && (z.value = 0, w.value = -1), w.value += 1, s.value && s.value.scrollTo({
101
- top: z.value,
104
+ m.value || (m.value = t), t - m.value >= e.value.animation.speedMs && (E.value += h.value.heights[w.value], (ye() || w.value >= h.value.heights.length) && (E.value = 0, w.value = -1), w.value += 1, u.value && u.value.scrollTo({
105
+ top: E.value,
102
106
  behavior: "smooth"
103
107
  }), m.value = t), I.value = requestAnimationFrame(ne);
104
108
  }
@@ -107,7 +111,7 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
107
111
  }
108
112
  re(f);
109
113
  function y() {
110
- !b.value || !v.value.showAnimation || (b.value = !1, m.value = 0, oe());
114
+ !b.value || !c.value.showAnimation || (b.value = !1, m.value = 0, oe());
111
115
  }
112
116
  function Ce() {
113
117
  e.value.animation.pauseOnHover && f();
@@ -122,25 +126,25 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
122
126
  V(
123
127
  () => e.value.animation.use,
124
128
  (t) => {
125
- t ? (v.value.showAnimation = !0, y()) : (v.value.showAnimation = !1, f());
129
+ t ? (c.value.showAnimation = !0, y()) : (c.value.showAnimation = !1, f());
126
130
  }
127
131
  );
128
132
  const Te = B(() => e.value.responsiveBreakpoint);
129
133
  F(() => {
130
134
  const t = new ResizeObserver((n) => {
131
135
  n.forEach((a) => {
132
- R.value = a.contentRect.width < Te.value;
133
- }), x.value = T.value ? T.value.getBoundingClientRect().height : 0, P.value = A.value ? A.value.getBoundingClientRect().height : 0, w.value = 0, de(() => {
134
- f(), m.value = 0, z.value = 0, H(), y();
136
+ z.value = a.contentRect.width < Te.value;
137
+ }), k.value = T.value ? T.value.getBoundingClientRect().height : 0, R.value = A.value ? A.value.getBoundingClientRect().height : 0, w.value = 0, de(() => {
138
+ f(), m.value = 0, E.value = 0, H(), y();
135
139
  });
136
140
  });
137
- s.value && t.observe(s.value);
141
+ u.value && t.observe(u.value);
138
142
  });
139
143
  function ie() {
140
144
  he();
141
145
  }
142
146
  function se() {
143
- v.value.showAnimation = !v.value.showAnimation, v.value.showAnimation ? y() : f();
147
+ c.value.showAnimation = !c.value.showAnimation, c.value.showAnimation ? y() : f();
144
148
  }
145
149
  function ue() {
146
150
  de(() => {
@@ -156,21 +160,21 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
156
160
  });
157
161
  });
158
162
  }
159
- return pe({
163
+ return ce({
160
164
  pauseAnimation: f,
161
165
  resumeAnimation: y,
162
166
  toggleAnimation: se,
163
167
  generateCsv: ue,
164
168
  generatePdf: ie,
165
169
  generateImage: ee
166
- }), (t, n) => (u(), r("div", {
170
+ }), (t, n) => (s(), r("div", {
167
171
  style: { position: "relative", overflow: "visible" },
168
172
  ref_key: "chartContainer",
169
173
  ref: te
170
174
  }, [
171
- E("div", {
175
+ N("div", {
172
176
  ref_key: "tableContainer",
173
- ref: s,
177
+ ref: u,
174
178
  id: `carousel-table_${S.value}`,
175
179
  style: d({
176
180
  height: C(Z) || C(_) ? "auto" : `${Math.max(me.value, fe.value)}px`,
@@ -179,14 +183,14 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
179
183
  overflow: "auto",
180
184
  fontFamily: e.value.fontFamily
181
185
  }),
182
- class: Ae({ "vue-ui-responsive": R.value, "is-playing": !b.value }),
186
+ class: Ae({ "vue-ui-responsive": z.value, "is-playing": !b.value }),
183
187
  onMouseover: n[0] || (n[0] = (a) => Ce()),
184
188
  onMouseleave: n[1] || (n[1] = (a) => y()),
185
189
  onTouchstart: n[2] || (n[2] = (a) => $e()),
186
190
  onTouchend: n[3] || (n[3] = (a) => le()),
187
191
  onTouchcancel: n[4] || (n[4] = (a) => le())
188
192
  }, [
189
- $.value ? (u(), r("table", {
193
+ $.value ? (s(), r("table", {
190
194
  key: 0,
191
195
  class: "vue-data-ui-carousel-table",
192
196
  style: d({
@@ -196,7 +200,7 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
196
200
  borderCollapse: "collapse"
197
201
  })
198
202
  }, [
199
- E("caption", {
203
+ N("caption", {
200
204
  ref_key: "caption",
201
205
  ref: T,
202
206
  class: "vue-data-ui-carousel-table-caption",
@@ -210,28 +214,28 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
210
214
  paddingRight: e.value.caption.padding.right + "px",
211
215
  paddingBottom: e.value.caption.padding.bottom + "px",
212
216
  paddingLeft: e.value.caption.padding.left + "px",
213
- boxShadow: R.value ? e.value.thead.tr.style.boxShadow : "none",
217
+ boxShadow: z.value ? e.value.thead.tr.style.boxShadow : "none",
214
218
  minHeight: "36px"
215
219
  })
216
220
  }, [
217
221
  G(M(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
218
- c(t.$slots, "caption", {}, void 0, !0)
222
+ v(t.$slots, "caption", {}, void 0, !0)
219
223
  ], 4),
220
- E("thead", {
221
- style: d({ ...e.value.thead.style, position: "sticky", top: `${x.value}px`, zIndex: 1 })
224
+ N("thead", {
225
+ style: d({ ...e.value.thead.style, position: "sticky", top: `${k.value}px`, zIndex: 1 })
222
226
  }, [
223
- E("tr", {
227
+ N("tr", {
224
228
  ref_key: "tableRow",
225
229
  ref: A,
226
230
  role: "row",
227
231
  style: d({
228
232
  ...e.value.thead.tr.style,
229
233
  border: e.value.thead.tr.border.size ? `${e.value.thead.tr.border.size}px solid ${e.value.thead.tr.border.color}` : "none",
230
- boxShadow: R.value ? "none" : e.value.thead.tr.style.boxShadow
234
+ boxShadow: z.value ? "none" : e.value.thead.tr.style.boxShadow
231
235
  }),
232
236
  height: `${e.value.thead.tr.height}px`
233
237
  }, [
234
- (u(!0), r(q, null, D(g.dataset.head, (a, i) => (u(), r("th", {
238
+ (s(!0), r(q, null, D(g.dataset.head, (a, i) => (s(), r("th", {
235
239
  role: "cell",
236
240
  key: `th_${i}`,
237
241
  style: d({
@@ -244,26 +248,26 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
244
248
  })
245
249
  }, [
246
250
  G(M(t.$slots.th ? "" : a) + " ", 1),
247
- c(t.$slots, "th", X(j({ th: a, colIndex: i })), void 0, !0)
251
+ v(t.$slots, "th", X(j({ th: a, colIndex: i })), void 0, !0)
248
252
  ], 4))), 128))
249
253
  ], 12, Se)
250
254
  ], 4),
251
- g.dataset.body && g.dataset.head ? (u(), r("tbody", {
255
+ g.dataset.body && g.dataset.head ? (s(), r("tbody", {
252
256
  key: 0,
253
257
  ref_key: "tbody",
254
- ref: k,
258
+ ref: x,
255
259
  style: d({
256
260
  clipPath: "inset(0,0,0,0)"
257
261
  })
258
262
  }, [
259
- (u(!0), r(q, null, D(g.dataset.body, (a, i) => (u(), r("tr", {
263
+ (s(!0), r(q, null, D(g.dataset.body, (a, i) => (s(), r("tr", {
260
264
  style: d({
261
265
  ...e.value.tbody.tr.style,
262
266
  border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`,
263
267
  verticalAlign: "middle"
264
268
  })
265
269
  }, [
266
- (u(!0), r(q, null, D(a, (p, U) => (u(), r("td", {
270
+ (s(!0), r(q, null, D(a, (p, U) => (s(), r("td", {
267
271
  role: "cell",
268
272
  "data-cell": g.dataset.head[U] || "",
269
273
  style: d({
@@ -279,19 +283,19 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
279
283
  height: `${e.value.tbody.tr.height}px`
280
284
  }, [
281
285
  G(M(t.$slots.td ? "" : p) + " ", 1),
282
- c(t.$slots, "td", X(j({ td: p, rowIndex: i, colIndex: U })), void 0, !0)
286
+ v(t.$slots, "td", X(j({ td: p, rowIndex: i, colIndex: U })), void 0, !0)
283
287
  ], 12, He))), 256))
284
288
  ], 4))), 256))
285
- ], 4)) : N("", !0)
286
- ], 4)) : N("", !0)
289
+ ], 4)) : O("", !0)
290
+ ], 4)) : O("", !0)
287
291
  ], 46, Ne),
288
- $.value ? N("", !0) : (u(), ve(ze, {
292
+ $.value ? O("", !0) : (s(), ve(ze, {
289
293
  key: 0,
290
294
  config: {
291
295
  type: "table"
292
296
  }
293
297
  })),
294
- e.value.userOptions.show && $.value ? (u(), ve(Re, {
298
+ e.value.userOptions.show && $.value ? (s(), ve(Re, {
295
299
  ref: "details",
296
300
  key: `user_option_${ae.value}`,
297
301
  backgroundColor: e.value.style.backgroundColor,
@@ -306,7 +310,7 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
306
310
  hasTable: !1,
307
311
  hasLabel: !1,
308
312
  hasAnimation: e.value.userOptions.buttons.animation,
309
- isAnimation: !v.value.showAnimation,
313
+ isAnimation: !c.value.showAnimation,
310
314
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
311
315
  isFullscreen: Q.value,
312
316
  chartElement: te.value,
@@ -319,46 +323,49 @@ const Ne = ["id"], Se = ["height"], He = ["data-cell", "height"], Le = {
319
323
  onGenerateImage: C(ee),
320
324
  onToggleAnimation: se,
321
325
  onToggleFullscreen: be
322
- }, xe({ _: 2 }, [
326
+ }, ke({ _: 2 }, [
323
327
  t.$slots.optionPdf ? {
324
328
  name: "optionPdf",
325
- fn: O(() => [
326
- c(t.$slots, "optionPdf", {}, void 0, !0)
329
+ fn: P(() => [
330
+ v(t.$slots, "optionPdf", {}, void 0, !0)
327
331
  ]),
328
332
  key: "0"
329
333
  } : void 0,
330
334
  t.$slots.optionCsv ? {
331
335
  name: "optionCsv",
332
- fn: O(() => [
333
- c(t.$slots, "optionCsv", {}, void 0, !0)
336
+ fn: P(() => [
337
+ v(t.$slots, "optionCsv", {}, void 0, !0)
334
338
  ]),
335
339
  key: "1"
336
340
  } : void 0,
337
341
  t.$slots.optionImg ? {
338
342
  name: "optionImg",
339
- fn: O(() => [
340
- c(t.$slots, "optionImg", {}, void 0, !0)
343
+ fn: P(() => [
344
+ v(t.$slots, "optionImg", {}, void 0, !0)
341
345
  ]),
342
346
  key: "2"
343
347
  } : void 0,
344
348
  t.$slots.optionAnimation ? {
345
349
  name: "optionAnimation",
346
- fn: O(() => [
347
- c(t.$slots, "optionAnimation", {}, void 0, !0)
350
+ fn: P(() => [
351
+ v(t.$slots, "optionAnimation", {}, void 0, !0)
348
352
  ]),
349
353
  key: "3"
350
354
  } : void 0,
351
355
  t.$slots.optionFullscreen ? {
352
356
  name: "optionFullscreen",
353
- fn: O(({ toggleFullscreen: a, isFullscreen: i }) => [
354
- c(t.$slots, "optionFullscreen", X(j({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
357
+ fn: P(({ toggleFullscreen: a, isFullscreen: i }) => [
358
+ v(t.$slots, "optionFullscreen", X(j({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
355
359
  ]),
356
360
  key: "4"
357
361
  } : void 0
358
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "onGenerateImage"])) : N("", !0)
362
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "onGenerateImage"])) : O("", !0),
363
+ t.$slots.source ? (s(), r("div", Le, [
364
+ v(t.$slots, "source", {}, void 0, !0)
365
+ ], 512)) : O("", !0)
359
366
  ], 512));
360
367
  }
361
- }, Xe = /* @__PURE__ */ Ee(Le, [["__scopeId", "data-v-9f07c041"]]);
368
+ }, je = /* @__PURE__ */ Ee(Ue, [["__scopeId", "data-v-1b9d6aaa"]]);
362
369
  export {
363
- Xe as default
370
+ je as default
364
371
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-eFox7weK.cjs"),ae=require("./useNestedProp-BkgEhTQY.cjs"),j=require("./usePrinter-CSRFnDBU.cjs"),ne=require("./vue-ui-skeleton-BqKzuhkB.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re=["id"],ie=["height"],ue=["data-cell","height"],se={key:2,ref:"source",dir:"auto"},de={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(p,{expose:X}){const l=p,{vue_ui_carousel_table:_}=u.useConfig(),A=e.ref(u.createUid()),I=e.ref(!1),g=e.ref(!!l.dataset);e.onMounted(()=>{P()});function P(){u.objectIsEmpty(l.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!l.dataset.head||u.objectIsEmpty(l.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),g.value=!1),(!l.dataset.body||u.objectIsEmpty(l.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),g.value=!1))}const t=e.computed({get:()=>F(),set:o=>o});function F(){return ae.useNestedProp({userConfig:l.config,defaultConfig:_})}e.watch(()=>l.config,o=>{t.value=F(),P()},{deep:!0}),e.watch(()=>l.dataset,o=>{S()},{deep:!0});const{isPrinting:N,isImaging:O,generatePdf:J,generateImage:R}=j.usePrinter({elementId:`carousel-table_${A.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),s=e.ref({showAnimation:t.value.animation.use}),i=e.ref(null),V=e.ref(null),b=e.ref(null),y=e.ref(null),k=e.ref(0),$=e.ref(0),x=e.ref(!1),C=e.ref(null),c=e.ref(null),B=e.ref(0);function S(){C.value&&(c.value={elements:C.value.getElementsByTagName("tr"),heights:Array.from(C.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(S);const K=e.computed(()=>!c.value||!c.value.heights.length?0:Math.max(...c.value.heights)+k.value+$.value),Q=e.computed(()=>l.dataset.body?t.value.tbody.tr.visible<=l.dataset.body.length?t.value.tbody.tr.visible:l.dataset.body.length:0),W=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*Q.value+k.value+$.value),w=e.ref(0),T=e.ref(null),f=e.ref(0),m=e.ref(!1),L=e.ref(0);e.onMounted(()=>{b.value&&(k.value=b.value.getBoundingClientRect().height),y.value&&($.value=y.value.getBoundingClientRect().height),s.value.showAnimation&&c.value&&M()}),e.onMounted(()=>{if(i.value){let a=function(){const r=o.getBoundingClientRect().bottom;n.forEach(d=>{d.getBoundingClientRect().top<r?d.style.visibility="hidden":d.style.visibility="visible"})};const o=i.value.querySelector("thead"),n=Array.from(C.value.querySelectorAll("tr"));i.value.addEventListener("scroll",a),a(),e.onBeforeUnmount(()=>{i.value.removeEventListener("scroll",a)})}});function Y(o){I.value=o,L.value+=1}function M(){!T.value&&!m.value&&(T.value=requestAnimationFrame(q))}function Z(){if(!i.value)return!1;const{scrollTop:o,scrollHeight:n,clientHeight:a}=i.value;return o+a>=n}function q(o){if(m.value)return;f.value||(f.value=o),o-f.value>=t.value.animation.speedMs&&(w.value+=c.value.heights[B.value],(Z()||B.value>=c.value.heights.length)&&(w.value=0,B.value=-1),B.value+=1,i.value&&i.value.scrollTo({top:w.value,behavior:"smooth"}),f.value=o),T.value=requestAnimationFrame(q)}function v(){m.value=!0,cancelAnimationFrame(T.value),T.value=null}e.onBeforeUnmount(v);function h(){!m.value||!s.value.showAnimation||(m.value=!1,f.value=0,M())}function ee(){t.value.animation.pauseOnHover&&v()}const E=e.ref(null);function te(){v(),clearTimeout(E.value)}function H(){clearTimeout(E.value),E.value=setTimeout(h,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(s.value.showAnimation=!0,h()):(s.value.showAnimation=!1,v())});const oe=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(a=>{x.value=a.contentRect.width<oe.value}),k.value=b.value?b.value.getBoundingClientRect().height:0,$.value=y.value?y.value.getBoundingClientRect().height:0,B.value=0,e.nextTick(()=>{v(),f.value=0,w.value=0,S(),h()})});i.value&&o.observe(i.value)});function U(){J()}function D(){s.value.showAnimation=!s.value.showAnimation,s.value.showAnimation?h():v()}function G(){e.nextTick(()=>{const o=l.dataset.head.map((r,d)=>[[l.dataset.body[d]]]),n=[[t.value.caption.text],[l.dataset.head.map(r=>[r])]].concat(o),a=u.createCsvContent(n);u.downloadCsv({csvContent:a,title:t.value.caption.text||"vue-ui-carousel-table"})})}return X({pauseAnimation:v,resumeAnimation:h,toggleAnimation:D,generateCsv:G,generatePdf:U,generateImage:R}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:V},[e.createElementVNode("div",{ref_key:"tableContainer",ref:i,id:`carousel-table_${A.value}`,style:e.normalizeStyle({height:e.unref(N)||e.unref(O)?"auto":`${Math.max(W.value,K.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":x.value,"is-playing":!m.value}),onMouseover:n[0]||(n[0]=a=>ee()),onMouseleave:n[1]||(n[1]=a=>h()),onTouchstart:n[2]||(n[2]=a=>te()),onTouchend:n[3]||(n[3]=a=>H()),onTouchcancel:n[4]||(n[4]=a=>H())},[g.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse"})},[e.createElementVNode("caption",{ref_key:"caption",ref:b,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:x.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!o.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(o.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${k.value}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:y,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:x.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.dataset.head,(a,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${r}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(o.$slots.th?"":a)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:a,colIndex:r})),void 0,!0)],4))),128))],12,ie)],4),p.dataset.body&&p.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:C,style:e.normalizeStyle({clipPath:"inset(0,0,0,0)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.dataset.body,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`,verticalAlign:"middle"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(d,z)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":p.dataset.head[z]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:e.unref(u.setOpacity)(t.value.tbody.tr.td.style.backgroundColor,r%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100),paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px",verticalAlign:"middle"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":d)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:d,rowIndex:r,colIndex:z})),void 0,!0)],12,ue))),256))],4))),256))],4)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,re),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&g.value?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(N),isImaging:e.unref(O),uid:A.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!s.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:I.value,chartElement:V.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},zIndex:3,offsetX:12,onGeneratePdf:U,onGenerateCsv:G,onGenerateImage:e.unref(R),onToggleAnimation:D,onToggleFullscreen:Y},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.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","position","titles","onGenerateImage"])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],512))}},ce=le._export_sfc(de,[["__scopeId","data-v-1b9d6aaa"]]);exports.default=ce;