vue-data-ui 2.8.1 → 2.9.0

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 (174) hide show
  1. package/README.md +4 -0
  2. package/dist/{Arrow-dZEf3SsT.js → Arrow-COsmVQGg.js} +1 -1
  3. package/dist/{Arrow-vOXpy5M-.cjs → Arrow-CRkagNj_.cjs} +1 -1
  4. package/dist/{BaseIcon-C2o75ceK.cjs → BaseIcon-B4pcy-8f.cjs} +1 -1
  5. package/dist/{BaseIcon-DZrvtZc3.js → BaseIcon-Dmcf856A.js} +1 -1
  6. package/dist/{ColorPicker-CNr7vlRS.js → ColorPicker-BQSP45oM.js} +3 -3
  7. package/dist/{ColorPicker-Dm8-2J-c.cjs → ColorPicker-C9SFkHn3.cjs} +1 -1
  8. package/dist/{DataTable-D47NI3mY.js → DataTable-B1yJapRL.js} +2 -2
  9. package/dist/{DataTable-DEFs-EaT.cjs → DataTable-Bjx5Ccho.cjs} +1 -1
  10. package/dist/{Legend-CdT35-yb.js → Legend--YhaiVet.js} +2 -2
  11. package/dist/{Legend-BrWxrvx1.cjs → Legend-BjHoFybL.cjs} +1 -1
  12. package/dist/{PackageVersion-D0X33ZDw.js → PackageVersion-BwGV13wg.js} +1 -1
  13. package/dist/{PackageVersion-CX5-lR_7.cjs → PackageVersion-_-duZr_B.cjs} +1 -1
  14. package/dist/{PenAndPaper-mo5_icjt.cjs → PenAndPaper-BLqBmiek.cjs} +1 -1
  15. package/dist/{PenAndPaper-DOg71Z7q.js → PenAndPaper-BwOppffl.js} +3 -3
  16. package/dist/{Shape-DNTuLHYt.cjs → Shape-Cbao7HSz.cjs} +1 -1
  17. package/dist/{Shape-BalEJckG.js → Shape-Dg-hzjV4.js} +1 -1
  18. package/dist/{Slicer-DKf0nwex.cjs → Slicer-B4Mbf7CA.cjs} +1 -1
  19. package/dist/{Slicer-CB_l-Wls.js → Slicer-XYuzh148.js} +2 -2
  20. package/dist/{Title-s-4wtmyf.cjs → Title-CF40M_nk.cjs} +1 -1
  21. package/dist/{Title-lqF_rq6c.js → Title-D08zl5ev.js} +1 -1
  22. package/dist/{Tooltip-DKFyA3ub.js → Tooltip-BXmEpCan.js} +1 -1
  23. package/dist/{Tooltip-Br3lB3d1.cjs → Tooltip-CupB-l8u.cjs} +1 -1
  24. package/dist/{dom-to-png-CjE9FVEC.js → dom-to-png-B2070iQl.js} +1 -1
  25. package/dist/{dom-to-png-CgxmOicm.cjs → dom-to-png-CHSv0xMW.cjs} +1 -1
  26. package/dist/{img-DLXHtEji.cjs → img-BR_cEhe8.cjs} +1 -1
  27. package/dist/{img-BN_XjXTk.js → img-BtO99VMK.js} +1 -1
  28. package/dist/{index-C2dCPlLw.cjs → index-CRA3TjQQ.cjs} +1 -1
  29. package/dist/{index-BFQVpLxg.js → index-DmMaSSqc.js} +1 -1
  30. package/dist/pdf-Bc4mkqYX.js +51 -0
  31. package/dist/pdf-D6x7WEvy.cjs +1 -0
  32. package/dist/style.css +1 -1
  33. package/dist/types/vue-data-ui.d.cts +1 -1
  34. package/dist/types/vue-data-ui.d.ts +1 -1
  35. package/dist/{useNestedProp-CQx8H1CV.js → useNestedProp-B47aFTkT.js} +1 -1
  36. package/dist/{useNestedProp-Coe_9w4h.cjs → useNestedProp-wDhEx7x9.cjs} +1 -1
  37. package/dist/{usePrinter-B7OpKMf9.cjs → usePrinter-06EDG1PE.cjs} +1 -1
  38. package/dist/{usePrinter-DKrOpSvE.js → usePrinter-1GlKtPCq.js} +3 -3
  39. package/dist/{vue-data-ui-C89e8X6S.js → vue-data-ui-CDFtEOu4.js} +61 -61
  40. package/dist/{vue-data-ui-DCeVvr5x.cjs → vue-data-ui-Dx4piIh9.cjs} +1 -1
  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-Dr21Q9Ah.cjs → vue-ui-3d-bar-DLMD2SZo.cjs} +1 -1
  44. package/dist/{vue-ui-3d-bar-CwIBC5RB.js → vue-ui-3d-bar-DeixcN8U.js} +9 -9
  45. package/dist/{vue-ui-accordion-CEJghMx7.cjs → vue-ui-accordion-DcFabpGO.cjs} +1 -1
  46. package/dist/{vue-ui-accordion-8x_k6qEe.js → vue-ui-accordion-QdoZquMy.js} +3 -3
  47. package/dist/{vue-ui-age-pyramid-CK58dJZD.js → vue-ui-age-pyramid-2y2FFtHU.js} +10 -10
  48. package/dist/{vue-ui-age-pyramid-CTipzKSo.cjs → vue-ui-age-pyramid-B8jim3J5.cjs} +1 -1
  49. package/dist/vue-ui-annotator-CfEp5EPK.cjs +371 -0
  50. package/dist/{vue-ui-annotator-_s2si5zW.js → vue-ui-annotator-DGIvKHlF.js} +36 -31
  51. package/dist/{vue-ui-bullet-BNnj4D8l.js → vue-ui-bullet-DtC5tbBO.js} +8 -8
  52. package/dist/{vue-ui-bullet-Bl-8zrm9.cjs → vue-ui-bullet-sk8TiDAx.cjs} +1 -1
  53. package/dist/{vue-ui-candlestick-BNG2KkuK.cjs → vue-ui-candlestick-Bp1X8rCI.cjs} +1 -1
  54. package/dist/{vue-ui-candlestick-BVk7pmj6.js → vue-ui-candlestick-aZW1FkBk.js} +11 -11
  55. package/dist/{vue-ui-carousel-table-UzYywKWA.cjs → vue-ui-carousel-table-Cyg9E2_P.cjs} +1 -1
  56. package/dist/{vue-ui-carousel-table-CC9kZ_bu.js → vue-ui-carousel-table-DEkz5mlG.js} +4 -4
  57. package/dist/{vue-ui-chestnut-CcMmDECP.cjs → vue-ui-chestnut-Dc8BR4Fp.cjs} +1 -1
  58. package/dist/{vue-ui-chestnut-BhZBuz2y.js → vue-ui-chestnut-Dt3E_CqF.js} +8 -8
  59. package/dist/{vue-ui-circle-pack-CdUy3_pV.cjs → vue-ui-circle-pack-LTgaNsYK.cjs} +1 -1
  60. package/dist/{vue-ui-circle-pack-C_vYTThy.js → vue-ui-circle-pack-POZYcUlI.js} +9 -9
  61. package/dist/{vue-ui-cursor-CdUNnycj.cjs → vue-ui-cursor-C3N9zUA7.cjs} +1 -1
  62. package/dist/{vue-ui-cursor-DHrWj61J.js → vue-ui-cursor-DK5VB3D0.js} +2 -2
  63. package/dist/{vue-ui-dashboard-C9JgMUfr.cjs → vue-ui-dashboard-BEbiVgOQ.cjs} +1 -1
  64. package/dist/{vue-ui-dashboard-DJWoi76j.js → vue-ui-dashboard-jqW1Xxpz.js} +62 -62
  65. package/dist/{vue-ui-digits-D1Y6qbSL.cjs → vue-ui-digits-BXZmcW0S.cjs} +1 -1
  66. package/dist/{vue-ui-digits-D05LGBT4.js → vue-ui-digits-Bcx-kLHo.js} +2 -2
  67. package/dist/{vue-ui-donut-DoBw4yHW.cjs → vue-ui-donut-C3CUnPIO.cjs} +1 -1
  68. package/dist/{vue-ui-donut-FXqedwJq.js → vue-ui-donut-OvjOLwRW.js} +12 -12
  69. package/dist/{vue-ui-donut-evolution-Ddbh30nH.cjs → vue-ui-donut-evolution-Bx8FunVF.cjs} +1 -1
  70. package/dist/{vue-ui-donut-evolution-dhz5D6f0.js → vue-ui-donut-evolution-TsbcmiBs.js} +11 -11
  71. package/dist/{vue-ui-dumbbell-_GSk9lKx.js → vue-ui-dumbbell-CHcPo7vY.js} +10 -10
  72. package/dist/{vue-ui-dumbbell-M0hlbBdb.cjs → vue-ui-dumbbell-CezLEwpL.cjs} +1 -1
  73. package/dist/{vue-ui-flow-Bu0ZfKlT.js → vue-ui-flow-BMNYBEJh.js} +9 -9
  74. package/dist/{vue-ui-flow-DEmCo5dS.cjs → vue-ui-flow-C0qwgT75.cjs} +1 -1
  75. package/dist/{vue-ui-funnel-BiFo1Gxp.cjs → vue-ui-funnel-Ct3GgY7y.cjs} +1 -1
  76. package/dist/{vue-ui-funnel-BXWS_Gxs.js → vue-ui-funnel-uz_CQDJI.js} +9 -9
  77. package/dist/{vue-ui-galaxy-B02Ek0C1.cjs → vue-ui-galaxy-Cx51n6hM.cjs} +1 -1
  78. package/dist/{vue-ui-galaxy-DCbMRL-h.js → vue-ui-galaxy-DawYn5OS.js} +11 -11
  79. package/dist/{vue-ui-gauge-BgRhJVQ9.cjs → vue-ui-gauge-CACfaNHg.cjs} +1 -1
  80. package/dist/{vue-ui-gauge-BxFg6VGp.js → vue-ui-gauge-CcQP3sPy.js} +7 -7
  81. package/dist/{vue-ui-gizmo-DtjIhGeD.cjs → vue-ui-gizmo-CjsP-8Li.cjs} +1 -1
  82. package/dist/{vue-ui-gizmo-BxUeMXnL.js → vue-ui-gizmo-CtfaITb7.js} +3 -3
  83. package/dist/{vue-ui-heatmap-BFKdhq63.js → vue-ui-heatmap-C9k81DDp.js} +10 -10
  84. package/dist/{vue-ui-heatmap-I7vcpM9m.cjs → vue-ui-heatmap-DrtdWgC5.cjs} +1 -1
  85. package/dist/{vue-ui-history-plot-BBJAQx9-.js → vue-ui-history-plot-BWuqP7cL.js} +11 -11
  86. package/dist/{vue-ui-history-plot-HIqRsts_.cjs → vue-ui-history-plot-Cz4rOch3.cjs} +1 -1
  87. package/dist/{vue-ui-kpi-D2Tbgo49.js → vue-ui-kpi-DPwY24JT.js} +3 -3
  88. package/dist/{vue-ui-kpi-BqK8aYMH.cjs → vue-ui-kpi-sHiuWUD6.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-Cw5ZfJY5.js → vue-ui-mini-loader-CWXeBzw9.js} +2 -2
  90. package/dist/{vue-ui-mini-loader-A8sYrPHv.cjs → vue-ui-mini-loader-OuKZN9HN.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-DFCX-pko.js → vue-ui-molecule-BxWIQrOy.js} +11 -11
  92. package/dist/{vue-ui-molecule-BCiiaeC8.cjs → vue-ui-molecule-oHkRoNBr.cjs} +1 -1
  93. package/dist/{vue-ui-mood-radar-CSiS_gDF.js → vue-ui-mood-radar-Cd7HI8bj.js} +11 -11
  94. package/dist/{vue-ui-mood-radar-A7_fZ0Ik.cjs → vue-ui-mood-radar-DCxDtpf3.cjs} +1 -1
  95. package/dist/{vue-ui-nested-donuts-DvNUb57t.js → vue-ui-nested-donuts-BoXT5OAw.js} +11 -11
  96. package/dist/{vue-ui-nested-donuts-FR-70vLE.cjs → vue-ui-nested-donuts-CXFtb1M0.cjs} +1 -1
  97. package/dist/{vue-ui-onion-DFUj5YN5.cjs → vue-ui-onion-DYgInDb8.cjs} +1 -1
  98. package/dist/{vue-ui-onion-nl6W4uCt.js → vue-ui-onion-Dxss5Mnb.js} +11 -11
  99. package/dist/{vue-ui-parallel-coordinate-plot-D32i3E9L.cjs → vue-ui-parallel-coordinate-plot-Bs7704DX.cjs} +1 -1
  100. package/dist/{vue-ui-parallel-coordinate-plot-BruWJBpM.js → vue-ui-parallel-coordinate-plot-C-K9WUQq.js} +12 -12
  101. package/dist/{vue-ui-quadrant-Dn47DcoY.cjs → vue-ui-quadrant-CgBI3znD.cjs} +1 -1
  102. package/dist/{vue-ui-quadrant-BdUpiOdu.js → vue-ui-quadrant-ol8blyLN.js} +12 -12
  103. package/dist/{vue-ui-quick-chart-CnerC9Qg.js → vue-ui-quick-chart-BoPihMU7.js} +9 -9
  104. package/dist/{vue-ui-quick-chart-BXlOYyGL.cjs → vue-ui-quick-chart-Ds8vvott.cjs} +1 -1
  105. package/dist/{vue-ui-radar-BKx6YrLy.js → vue-ui-radar-BYikeYez.js} +12 -12
  106. package/dist/{vue-ui-radar-D9OrsteR.cjs → vue-ui-radar-Bq9yv1Nz.cjs} +1 -1
  107. package/dist/{vue-ui-rating-Dc2Jqf26.cjs → vue-ui-rating-CIgPOsF9.cjs} +1 -1
  108. package/dist/{vue-ui-rating-CM9uw6x8.js → vue-ui-rating-CS87Hplo.js} +2 -2
  109. package/dist/{vue-ui-relation-circle-6hpdGJz9.js → vue-ui-relation-circle-B1_IFEQE.js} +7 -7
  110. package/dist/{vue-ui-relation-circle-BXGepa63.cjs → vue-ui-relation-circle-DYB4yUiA.cjs} +1 -1
  111. package/dist/{vue-ui-rings-Cw66fFjF.js → vue-ui-rings-BnNg87-v.js} +12 -12
  112. package/dist/{vue-ui-rings-CxZFQwbk.cjs → vue-ui-rings-Doe8Q28H.cjs} +1 -1
  113. package/dist/{vue-ui-scatter-CerEf0ET.cjs → vue-ui-scatter-CKRjkm-h.cjs} +1 -1
  114. package/dist/{vue-ui-scatter-Br9lsehL.js → vue-ui-scatter-CXwmuMIU.js} +12 -12
  115. package/dist/{vue-ui-skeleton-CfkVGDBV.cjs → vue-ui-skeleton-5g5yLLM4.cjs} +1 -1
  116. package/dist/{vue-ui-skeleton-CHzvVaNP.js → vue-ui-skeleton-8OZ9rJXh.js} +3 -3
  117. package/dist/{vue-ui-smiley-CR5jHHYg.cjs → vue-ui-smiley-CqN-vQye.cjs} +1 -1
  118. package/dist/{vue-ui-smiley-CeqcgusF.js → vue-ui-smiley-CzqaH8_8.js} +2 -2
  119. package/dist/{vue-ui-spark-trend-CBGbYnep.js → vue-ui-spark-trend-DK6gOZHz.js} +5 -5
  120. package/dist/{vue-ui-spark-trend-tHT09aPz.cjs → vue-ui-spark-trend-yVxR7PiI.cjs} +1 -1
  121. package/dist/{vue-ui-sparkbar-1x0LFHXg.js → vue-ui-sparkbar-BKOe_Cee.js} +4 -4
  122. package/dist/{vue-ui-sparkbar-BKHS0kdd.cjs → vue-ui-sparkbar-rR2c2FDd.cjs} +1 -1
  123. package/dist/{vue-ui-sparkgauge-D07IvlSw.cjs → vue-ui-sparkgauge-C7OYH1Fs.cjs} +1 -1
  124. package/dist/{vue-ui-sparkgauge-CmsgH4VP.js → vue-ui-sparkgauge-RN8tIAc9.js} +4 -4
  125. package/dist/{vue-ui-sparkhistogram-D8L5KGav.js → vue-ui-sparkhistogram-Zzy9jGiy.js} +5 -5
  126. package/dist/{vue-ui-sparkhistogram-DiYgahNx.cjs → vue-ui-sparkhistogram-__Vd5tky.cjs} +1 -1
  127. package/dist/{vue-ui-sparkline-B151zYqx.cjs → vue-ui-sparkline-DDWOEIzY.cjs} +1 -1
  128. package/dist/{vue-ui-sparkline-DNnFy0nI.js → vue-ui-sparkline-liB_Hmaq.js} +4 -4
  129. package/dist/{vue-ui-sparkstackbar-D-r0Eync.cjs → vue-ui-sparkstackbar-BrpeJTzl.cjs} +1 -1
  130. package/dist/{vue-ui-sparkstackbar-Dm9r7g1y.js → vue-ui-sparkstackbar-COJVT609.js} +5 -5
  131. package/dist/{vue-ui-stackbar-5NB574Dp.js → vue-ui-stackbar-B8f8IS8C.js} +13 -13
  132. package/dist/{vue-ui-stackbar-Df9HHJgh.cjs → vue-ui-stackbar-DtHaJXGD.cjs} +1 -1
  133. package/dist/{vue-ui-strip-plot-xXdnVANk.js → vue-ui-strip-plot-CVKQziT5.js} +11 -11
  134. package/dist/{vue-ui-strip-plot-i_HCH7Xj.cjs → vue-ui-strip-plot-Dp816JKq.cjs} +1 -1
  135. package/dist/{vue-ui-table-BArM6fjG.cjs → vue-ui-table-CwRXfETT.cjs} +1 -1
  136. package/dist/{vue-ui-table-CEkrP2zd.js → vue-ui-table-D1Kid804.js} +1 -1
  137. package/dist/{vue-ui-table-heatmap-CZ3gb7v6.js → vue-ui-table-heatmap-COLSO8dn.js} +4 -4
  138. package/dist/{vue-ui-table-heatmap-6iDYkY0u.cjs → vue-ui-table-heatmap-Do-ARjlq.cjs} +1 -1
  139. package/dist/{vue-ui-table-sparkline-CpCwGOlM.js → vue-ui-table-sparkline-CKETpujG.js} +5 -5
  140. package/dist/{vue-ui-table-sparkline-D2ANgidl.cjs → vue-ui-table-sparkline-nTd1T2Nq.cjs} +1 -1
  141. package/dist/{vue-ui-thermometer-Bjk-5s8s.cjs → vue-ui-thermometer-BZyDvYE0.cjs} +1 -1
  142. package/dist/{vue-ui-thermometer-7V4dPxGU.js → vue-ui-thermometer-DiCuDyU3.js} +7 -7
  143. package/dist/{vue-ui-timer-D9i8dmxX.cjs → vue-ui-timer-CkfRiOdo.cjs} +1 -1
  144. package/dist/{vue-ui-timer-Bit954QR.js → vue-ui-timer-DULQQyad.js} +5 -5
  145. package/dist/{vue-ui-tiremarks-CgfFmdz9.js → vue-ui-tiremarks-CxSfMNfB.js} +7 -7
  146. package/dist/{vue-ui-tiremarks-H9vo6N1q.cjs → vue-ui-tiremarks-D_-IhOIM.cjs} +1 -1
  147. package/dist/{vue-ui-treemap-C5oTJc6m.cjs → vue-ui-treemap-Bom01mr7.cjs} +1 -1
  148. package/dist/{vue-ui-treemap-BgBGHQwK.js → vue-ui-treemap-uNR6Swq2.js} +12 -12
  149. package/dist/{vue-ui-vertical-bar-DocNPjHZ.js → vue-ui-vertical-bar-B-HEGjmy.js} +12 -12
  150. package/dist/{vue-ui-vertical-bar-B6qA1hNj.cjs → vue-ui-vertical-bar-BCyVbfNP.cjs} +1 -1
  151. package/dist/{vue-ui-waffle-PuO6qyse.cjs → vue-ui-waffle-B6zy86qy.cjs} +1 -1
  152. package/dist/{vue-ui-waffle-BBLFjjPk.js → vue-ui-waffle-CI6IaCpT.js} +12 -12
  153. package/dist/{vue-ui-wheel-BwcIurMc.js → vue-ui-wheel-B_ZTQj8n.js} +7 -7
  154. package/dist/{vue-ui-wheel-BX_pPLwM.cjs → vue-ui-wheel-DZfrwJOK.cjs} +1 -1
  155. package/dist/{vue-ui-word-cloud-DGt-qnLp.cjs → vue-ui-word-cloud-B7KEJYTm.cjs} +1 -1
  156. package/dist/{vue-ui-word-cloud-CAjlNbxw.js → vue-ui-word-cloud-B8Da_fNw.js} +10 -10
  157. package/dist/{vue-ui-world-oVo3n7m5.js → vue-ui-world-BRaOylAI.js} +11 -11
  158. package/dist/{vue-ui-world-DGGJD8ge.cjs → vue-ui-world-B_tKcYOS.cjs} +1 -1
  159. package/dist/{vue-ui-xy-B618psvc.js → vue-ui-xy-CZvUtKRw.js} +16 -16
  160. package/dist/{vue-ui-xy-BLTdcmpY.cjs → vue-ui-xy-DBRrNTNO.cjs} +2 -2
  161. package/dist/{vue-ui-xy-canvas-DdMMZtbJ.js → vue-ui-xy-canvas-BZFEUjUp.js} +12 -12
  162. package/dist/{vue-ui-xy-canvas-DumADhZZ.cjs → vue-ui-xy-canvas-CuKeAw-R.cjs} +1 -1
  163. package/package.json +8 -3
  164. package/dist/html2canvas.esm-BA_v9SIU.cjs +0 -22
  165. package/dist/html2canvas.esm-DgdJBc_o.js +0 -4871
  166. package/dist/index.es-BloWY6jv.js +0 -6645
  167. package/dist/index.es-HygMioe_.cjs +0 -18
  168. package/dist/jspdf.es.min-C518mmma.cjs +0 -243
  169. package/dist/jspdf.es.min-t_OLULUR.js +0 -8094
  170. package/dist/pdf-BFhwCcHB.js +0 -46
  171. package/dist/pdf-C_8oLgu7.cjs +0 -1
  172. package/dist/purify.es-BGDLgQxM.js +0 -519
  173. package/dist/purify.es-DSp9NJ6S.cjs +0 -2
  174. package/dist/vue-ui-annotator-DbciFqaW.cjs +0 -371
@@ -1,6 +1,5 @@
1
- import { z as k, A as p, u as v, B as w } from "./index-BFQVpLxg.js";
2
- import { d as A } from "./dom-to-png-CjE9FVEC.js";
3
- import { E as M } from "./jspdf.es.min-t_OLULUR.js";
1
+ import { z as p, A as v, u as w, B as A } from "./index-DmMaSSqc.js";
2
+ import { d as M } from "./dom-to-png-B2070iQl.js";
4
3
  import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G } from "vue";
5
4
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
5
  const m = {
@@ -95,7 +94,7 @@ const m = {
95
94
  textAlign: "start",
96
95
  textFont: 20,
97
96
  transparency: 100,
98
- transparencyCodes: w
97
+ transparencyCodes: A
99
98
  };
100
99
  },
101
100
  watch: {
@@ -107,7 +106,7 @@ const m = {
107
106
  },
108
107
  computed: {
109
108
  FINAL_CONFIG() {
110
- const t = v().vue_ui_annotator;
109
+ const t = w().vue_ui_annotator;
111
110
  if (!Object.keys(this.config || {}).length)
112
111
  return t;
113
112
  const i = this.treeShake({
@@ -300,8 +299,8 @@ const m = {
300
299
  });
301
300
  },
302
301
  methods: {
303
- treeShake: p,
304
- convertConfigColors: k,
302
+ treeShake: v,
303
+ convertConfigColors: p,
305
304
  bringShapeTo(t) {
306
305
  const i = this.shapes.find(
307
306
  (o) => o.id === this.lastSelectedShape.id
@@ -1064,21 +1063,27 @@ const m = {
1064
1063
  i && i.nodeType === 1 && (i.setAttribute("font-family", "Helvetica"), i.style.fontFamily = "Helvetica");
1065
1064
  });
1066
1065
  try {
1067
- const i = await A({
1066
+ let i;
1067
+ try {
1068
+ i = (await import("jspdf")).default;
1069
+ } catch {
1070
+ throw new Error("jspdf is not installed.");
1071
+ }
1072
+ const o = await M({
1068
1073
  container: t,
1069
1074
  scale: 2
1070
- }), o = new Image();
1071
- o.src = i, o.onload = () => {
1072
- const h = {
1075
+ }), h = new Image();
1076
+ h.src = o, h.onload = () => {
1077
+ const s = {
1073
1078
  width: 595.28,
1074
1079
  height: 841.89
1075
- }, s = o.width, e = o.height, l = s / h.width * h.height, I = h.width, b = I / s * e, f = new M("", "pt", "a4");
1076
- let S = 0, x = e;
1077
- if (x < l)
1078
- f.addImage(i, "PNG", 0, 0, I, b, "", "FAST");
1080
+ }, e = h.width, l = h.height, I = e / s.width * s.height, b = s.width, S = b / e * l, f = new i("", "pt", "a4");
1081
+ let k = 0, x = l;
1082
+ if (x < I)
1083
+ f.addImage(o, "PNG", 0, 0, b, S, "", "FAST");
1079
1084
  else
1080
1085
  for (; x > 0; )
1081
- f.addImage(i, "PNG", 0, S, I, b, "", "FAST"), x -= l, S -= h.height, x > 0 && f.addPage();
1086
+ f.addImage(o, "PNG", 0, k, b, S, "", "FAST"), x -= I, k -= s.height, x > 0 && f.addPage();
1082
1087
  f.save(`${(/* @__PURE__ */ new Date()).toLocaleDateString()}_annotations.pdf`);
1083
1088
  };
1084
1089
  } catch (i) {
@@ -1162,10 +1167,10 @@ const m = {
1162
1167
  }, X = ["disabled"], U = {
1163
1168
  style: { width: "80%" },
1164
1169
  viewBox: "0 0 24 24"
1165
- }, Y = ["disabled"], j = ["disabled"], Z = {
1170
+ }, Y = ["disabled"], j = ["disabled"], J = {
1166
1171
  class: "tool-selection",
1167
1172
  style: { "margin-top": "6px" }
1168
- }, J = {
1173
+ }, Z = {
1169
1174
  viewBox: "0 0 12 12",
1170
1175
  style: { width: "100%" }
1171
1176
  }, q = ["fill"], K = {
@@ -1236,7 +1241,7 @@ function Dt(t, i, o, h, s, e) {
1236
1241
  e.deleteEmptyTextElement(), s.isMoveMode = !s.isMoveMode, s.activeShape = void 0, s.isDeleteMode = !1, s.isDrawMode = !1, s.isResizeMode = !1, s.isSelectMode = !1, s.isTextMode = !1, s.isWriting = !1, s.showCaret = !1;
1237
1242
  })
1238
1243
  }, [
1239
- i[46] || (i[46] = F('<svg xmlns="http://www.w3.org/2000/svg" width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M18 9l3 3l-3 3" data-v-1756cea7></path><path d="M15 12h6" data-v-1756cea7></path><path d="M6 9l-3 3l3 3" data-v-1756cea7></path><path d="M3 12h6" data-v-1756cea7></path><path d="M9 18l3 3l3 -3" data-v-1756cea7></path><path d="M12 15v6" data-v-1756cea7></path><path d="M15 6l-3 -3l-3 3" data-v-1756cea7></path><path d="M12 3v6" data-v-1756cea7></path></svg>', 1)),
1244
+ i[46] || (i[46] = F('<svg xmlns="http://www.w3.org/2000/svg" width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M18 9l3 3l-3 3" data-v-f537737c></path><path d="M15 12h6" data-v-f537737c></path><path d="M6 9l-3 3l3 3" data-v-f537737c></path><path d="M3 12h6" data-v-f537737c></path><path d="M9 18l3 3l3 -3" data-v-f537737c></path><path d="M12 15v6" data-v-f537737c></path><path d="M15 6l-3 -3l-3 3" data-v-f537737c></path><path d="M12 3v6" data-v-f537737c></path></svg>', 1)),
1240
1245
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1241
1246
  key: 0,
1242
1247
  class: "tooltiptext",
@@ -1313,7 +1318,7 @@ function Dt(t, i, o, h, s, e) {
1313
1318
  e.deleteEmptyTextElement(), s.isDeleteMode = !s.isDeleteMode, s.isMoveMode = !1, s.isResizeMode = !1, s.isSelectMode = !1, s.isTextMode = !1, s.isWriting = !1, s.activeShape = void 0, s.showCaret = !1;
1314
1319
  })
1315
1320
  }, [
1316
- i[48] || (i[48] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M4 7l16 0" data-v-1756cea7></path><path d="M10 11l0 6" data-v-1756cea7></path><path d="M14 11l0 6" data-v-1756cea7></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-1756cea7></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-1756cea7></path></svg>', 1)),
1321
+ i[48] || (i[48] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M4 7l16 0" data-v-f537737c></path><path d="M10 11l0 6" data-v-f537737c></path><path d="M14 11l0 6" data-v-f537737c></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-f537737c></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-f537737c></path></svg>', 1)),
1317
1322
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1318
1323
  key: 0,
1319
1324
  class: "tooltiptext",
@@ -1518,7 +1523,7 @@ function Dt(t, i, o, h, s, e) {
1518
1523
  class: y({ "button-tool": !0, tooltip: !0 }),
1519
1524
  onClick: i[8] || (i[8] = (...l) => e.print && e.print(...l))
1520
1525
  }, [
1521
- i[54] || (i[54] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2" data-v-1756cea7></path><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4" data-v-1756cea7></path><path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z" data-v-1756cea7></path></svg>', 1)),
1526
+ i[54] || (i[54] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2" data-v-f537737c></path><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4" data-v-f537737c></path><path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z" data-v-f537737c></path></svg>', 1)),
1522
1527
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1523
1528
  key: 0,
1524
1529
  class: "tooltiptext",
@@ -1542,7 +1547,7 @@ function Dt(t, i, o, h, s, e) {
1542
1547
  class: y({ "button-tool": !0, tooltip: !0 }),
1543
1548
  onClick: i[9] || (i[9] = (...l) => e.save && e.save(...l))
1544
1549
  }, [
1545
- i[55] || (i[55] = F('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" data-v-1756cea7></path><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" data-v-1756cea7></path><path d="M14 4l0 4l-6 0l0 -4" data-v-1756cea7></path></svg>', 1)),
1550
+ i[55] || (i[55] = F('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" data-v-f537737c></path><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" data-v-f537737c></path><path d="M14 4l0 4l-6 0l0 -4" data-v-f537737c></path></svg>', 1)),
1546
1551
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1547
1552
  key: 0,
1548
1553
  class: "tooltiptext",
@@ -1556,7 +1561,7 @@ function Dt(t, i, o, h, s, e) {
1556
1561
  }, u(e.FINAL_CONFIG.translations.tooltipSave), 5)) : a("", !0)
1557
1562
  ], 4)) : a("", !0)
1558
1563
  ]),
1559
- r("div", Z, [
1564
+ r("div", J, [
1560
1565
  r("button", {
1561
1566
  class: y({
1562
1567
  "button-tool": !0,
@@ -1573,7 +1578,7 @@ function Dt(t, i, o, h, s, e) {
1573
1578
  e.setShapeTo("circle"), s.isSelectMode = !1;
1574
1579
  })
1575
1580
  }, [
1576
- (n(), d("svg", J, [
1581
+ (n(), d("svg", Z, [
1577
1582
  r("circle", {
1578
1583
  cx: 6,
1579
1584
  cy: 6,
@@ -1840,7 +1845,7 @@ function Dt(t, i, o, h, s, e) {
1840
1845
  s.isDeleteMode = !1, s.isMoveMode = !1, s.isResizeMode = !1, s.isDrawMode = !1, s.isSelectMode = !1, s.activeShape = void 0, s.textAlign = "start", e.setSelectedTextAlignTo("start");
1841
1846
  })
1842
1847
  }, [
1843
- i[59] || (i[59] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M4 6l16 0" data-v-1756cea7></path><path d="M4 12l10 0" data-v-1756cea7></path><path d="M4 18l14 0" data-v-1756cea7></path></svg>', 1)),
1848
+ i[59] || (i[59] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M4 6l16 0" data-v-f537737c></path><path d="M4 12l10 0" data-v-f537737c></path><path d="M4 18l14 0" data-v-f537737c></path></svg>', 1)),
1844
1849
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1845
1850
  key: 0,
1846
1851
  class: "tooltiptext",
@@ -1872,7 +1877,7 @@ function Dt(t, i, o, h, s, e) {
1872
1877
  s.isDeleteMode = !1, s.isMoveMode = !1, s.isResizeMode = !1, s.isDrawMode = !1, s.isSelectMode = !1, s.activeShape = void 0, s.textAlign = "middle", e.setSelectedTextAlignTo("middle");
1873
1878
  })
1874
1879
  }, [
1875
- i[60] || (i[60] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M4 6l16 0" data-v-1756cea7></path><path d="M8 12l8 0" data-v-1756cea7></path><path d="M6 18l12 0" data-v-1756cea7></path></svg>', 1)),
1880
+ i[60] || (i[60] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M4 6l16 0" data-v-f537737c></path><path d="M8 12l8 0" data-v-f537737c></path><path d="M6 18l12 0" data-v-f537737c></path></svg>', 1)),
1876
1881
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1877
1882
  key: 0,
1878
1883
  class: "tooltiptext",
@@ -1904,7 +1909,7 @@ function Dt(t, i, o, h, s, e) {
1904
1909
  s.isDeleteMode = !1, s.isMoveMode = !1, s.isResizeMode = !1, s.isDrawMode = !1, s.isSelectMode = !1, s.activeShape = void 0, s.textAlign = "end", e.setSelectedTextAlignTo("end");
1905
1910
  })
1906
1911
  }, [
1907
- i[61] || (i[61] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M4 6l16 0" data-v-1756cea7></path><path d="M10 12l10 0" data-v-1756cea7></path><path d="M6 18l14 0" data-v-1756cea7></path></svg>', 1)),
1912
+ i[61] || (i[61] = F('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M4 6l16 0" data-v-f537737c></path><path d="M10 12l10 0" data-v-f537737c></path><path d="M6 18l14 0" data-v-f537737c></path></svg>', 1)),
1908
1913
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1909
1914
  key: 0,
1910
1915
  class: "tooltiptext",
@@ -1935,7 +1940,7 @@ function Dt(t, i, o, h, s, e) {
1935
1940
  s.isDeleteMode = !1, s.isMoveMode = !1, s.isResizeMode = !1, s.isDrawMode = !1, s.isSelectMode = !1, s.activeShape = void 0, s.isBulletTextMode = !s.isBulletTextMode, s.textAlign = "start", e.setSelectedTextAlignTo("start"), e.setCurrentStyleOfSelectedText();
1936
1941
  })
1937
1942
  }, [
1938
- i[62] || (i[62] = F('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M9 6l11 0" data-v-1756cea7></path><path d="M9 12l11 0" data-v-1756cea7></path><path d="M9 18l11 0" data-v-1756cea7></path><path d="M5 6l0 .01" data-v-1756cea7></path><path d="M5 12l0 .01" data-v-1756cea7></path><path d="M5 18l0 .01" data-v-1756cea7></path></svg>', 1)),
1943
+ i[62] || (i[62] = F('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M9 6l11 0" data-v-f537737c></path><path d="M9 12l11 0" data-v-f537737c></path><path d="M9 18l11 0" data-v-f537737c></path><path d="M5 6l0 .01" data-v-f537737c></path><path d="M5 12l0 .01" data-v-f537737c></path><path d="M5 18l0 .01" data-v-f537737c></path></svg>', 1)),
1939
1944
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
1940
1945
  key: 0,
1941
1946
  class: "tooltiptext",
@@ -2013,7 +2018,7 @@ function Dt(t, i, o, h, s, e) {
2013
2018
  s.isDeleteMode = !1, s.isMoveMode = !1, s.isResizeMode = !1, s.isDrawMode = !1, s.isSelectMode = !1, s.activeShape = void 0, s.isItalic = !s.isItalic, e.setCurrentStyleOfSelectedText();
2014
2019
  })
2015
2020
  }, [
2016
- i[64] || (i[64] = F('<svg width="100%" height="44" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-1756cea7><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1756cea7></path><path d="M11 5l6 0" data-v-1756cea7></path><path d="M7 19l6 0" data-v-1756cea7></path><path d="M14 5l-4 14" data-v-1756cea7></path></svg>', 1)),
2021
+ i[64] || (i[64] = F('<svg width="100%" height="44" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-f537737c><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f537737c></path><path d="M11 5l6 0" data-v-f537737c></path><path d="M7 19l6 0" data-v-f537737c></path><path d="M14 5l-4 14" data-v-f537737c></path></svg>', 1)),
2017
2022
  e.FINAL_CONFIG.style.showTooltips ? (n(), d("span", {
2018
2023
  key: 0,
2019
2024
  class: "tooltiptext",
@@ -2170,7 +2175,7 @@ function Dt(t, i, o, h, s, e) {
2170
2175
  ], 512)
2171
2176
  ]);
2172
2177
  }
2173
- const Vt = /* @__PURE__ */ _(m, [["render", Dt], ["__scopeId", "data-v-1756cea7"]]);
2178
+ const Bt = /* @__PURE__ */ _(m, [["render", Dt], ["__scopeId", "data-v-f537737c"]]);
2174
2179
  export {
2175
- Vt as default
2180
+ Bt as default
2176
2181
  };
@@ -1,12 +1,12 @@
1
1
  import { ref as g, computed as f, onMounted as ge, watch as K, onBeforeUnmount as fe, createElementBlock as o, openBlock as r, unref as u, normalizeStyle as H, normalizeClass as Q, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as me, withCtx as p, renderSlot as m, normalizeProps as L, guardReactiveProps as $, createVNode as ye, Fragment as M, renderList as T, toDisplayString as O } from "vue";
2
- import { u as pe, o as be, e as Z, g as ke, c as we, l as xe, D as _e, d as Ce, i as B, f as A, X as Le, a as $e } from "./index-BFQVpLxg.js";
3
- import { u as ee } from "./useNestedProp-CQx8H1CV.js";
4
- import { _ as Oe } from "./Title-lqF_rq6c.js";
5
- import { L as Be } from "./Legend-CdT35-yb.js";
6
- import { u as Ae, U as Fe } from "./usePrinter-DKrOpSvE.js";
7
- import { _ as Ie } from "./PackageVersion-D0X33ZDw.js";
8
- import { _ as Se } from "./PenAndPaper-DOg71Z7q.js";
9
- import Pe from "./vue-ui-skeleton-CHzvVaNP.js";
2
+ import { u as pe, o as be, e as Z, g as ke, c as we, l as xe, D as _e, d as Ce, i as B, f as A, X as Le, a as $e } from "./index-DmMaSSqc.js";
3
+ import { u as ee } from "./useNestedProp-B47aFTkT.js";
4
+ import { _ as Oe } from "./Title-D08zl5ev.js";
5
+ import { L as Be } from "./Legend--YhaiVet.js";
6
+ import { u as Ae, U as Fe } from "./usePrinter-1GlKtPCq.js";
7
+ import { _ as Ie } from "./PackageVersion-BwGV13wg.js";
8
+ import { _ as Se } from "./PenAndPaper-BwOppffl.js";
9
+ import Pe from "./vue-ui-skeleton-8OZ9rJXh.js";
10
10
  import { u as He } from "./useUserOptionState-BIvW1Kz7.js";
11
11
  import { u as Me } from "./useChartAccessibility-BWojgys7.js";
12
12
  import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-C2dCPlLw.cjs"),F=require("./useNestedProp-Coe_9w4h.cjs"),J=require("./Title-s-4wtmyf.cjs"),K=require("./Legend-BrWxrvx1.cjs"),I=require("./usePrinter-B7OpKMf9.cjs"),Q=require("./PackageVersion-CX5-lR_7.cjs"),Z=require("./PenAndPaper-mo5_icjt.cjs"),ee=require("./vue-ui-skeleton-CfkVGDBV.cjs"),te=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re=["id"],oe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},se=["xmlns","viewBox"],ne=["width","height"],ue={key:1},ie=["x","y","height","width","fill","stroke"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de=["x","y","height","width","fill","stroke","stroke-width"],he=["x","y","font-size","font-weight","fill"],ve=["x","y","height","width","rx","fill","stroke","stroke-width"],me={key:3},ge=["x","y","fill","font-size","font-weight"],fe={key:4},ye=["x1","x2","y1","y2","stroke"],pe={key:5,class:"vue-data-ui-watermark"},ke={class:"vue-ui-bullet-legend-item",dir:"auto"},be={style:{"margin-right":"2px"}},we={key:7,ref:"source",dir:"auto"},Be={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:H}){const{vue_ui_bullet:T}=s.useConfig(),n=z,w=e.ref(null),q=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),h=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CRA3TjQQ.cjs"),F=require("./useNestedProp-wDhEx7x9.cjs"),J=require("./Title-CF40M_nk.cjs"),K=require("./Legend-BjHoFybL.cjs"),I=require("./usePrinter-06EDG1PE.cjs"),Q=require("./PackageVersion-_-duZr_B.cjs"),Z=require("./PenAndPaper-BLqBmiek.cjs"),ee=require("./vue-ui-skeleton-5g5yLLM4.cjs"),te=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re=["id"],oe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},se=["xmlns","viewBox"],ne=["width","height"],ue={key:1},ie=["x","y","height","width","fill","stroke"],ce=["x","y","height","width","rx","fill","stroke","stroke-width"],de=["x","y","height","width","fill","stroke","stroke-width"],he=["x","y","font-size","font-weight","fill"],ve=["x","y","height","width","rx","fill","stroke","stroke-width"],me={key:3},ge=["x","y","fill","font-size","font-weight"],fe={key:4},ye=["x1","x2","y1","y2","stroke"],pe={key:5,class:"vue-data-ui-watermark"},ke={class:"vue-ui-bullet-legend-item",dir:"auto"},be={style:{"margin-right":"2px"}},we={key:7,ref:"source",dir:"auto"},Be={__name:"vue-ui-bullet",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(z,{expose:H}){const{vue_ui_bullet:T}=s.useConfig(),n=z,w=e.ref(null),q=e.ref(null),B=e.ref(0),M=e.ref(null),U=e.ref(0),h=e.computed({get:()=>n.dataset.hasOwnProperty("value"),set:a=>a}),v=e.computed(()=>n.dataset.segments?Array.isArray(n.dataset.segments)?n.dataset.segments.length?!0:(console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
2
2
 
3
3
  segments: [
4
4
  {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-C2dCPlLw.cjs"),de=require("./useResponsive-DQmBAoBf.cjs"),ze=require("./Title-s-4wtmyf.cjs"),ce=require("./usePrinter-B7OpKMf9.cjs"),Ve=require("./Tooltip-Br3lB3d1.cjs"),Ee=require("./DataTable-DEFs-EaT.cjs"),Te=require("./vue-ui-skeleton-CfkVGDBV.cjs"),Ae=require("./Slicer-DKf0nwex.cjs"),Fe=require("./vue-ui-accordion-CEJghMx7.cjs"),ve=require("./useNestedProp-Coe_9w4h.cjs"),Ie=require("./PackageVersion-CX5-lR_7.cjs"),Pe=require("./PenAndPaper-mo5_icjt.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./useChartAccessibility-Cm7nkzTG.cjs"),Oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],De=["xmlns","viewBox"],Me=["x","y","width","height"],qe={key:1},He=["id"],We=["stop-color"],Ge=["stop-color"],je=["stop-color"],Xe=["id"],Ye=["stop-color"],Je=["stop-color"],Ke=["stop-color"],Qe={key:0},Ze=["x1","x2","y1","y2","stroke","stroke-width"],et=["x1","x2","y1","y2","stroke","stroke-width"],tt={key:1},lt=["x1","x2","y1","y2","stroke","stroke-width"],ot=["x","y","font-size","fill","font-weight"],at={key:2},nt=["transform","text-anchor","font-size","fill","font-weight"],st=["x1","x2","y1","y2","stroke","stroke-width"],ut={key:0},rt=["cx","cy","r","fill"],it=["cx","cy","r","fill"],dt={key:1},ct=["x1","x2","y1","y2","stroke","stroke-width"],vt=["x1","x2","y1","y2","stroke","stroke-width"],yt=["x","y","height","width","fill","rx"],ht=["x","y","height","width","fill","rx","stroke","stroke-width"],pt=["x","y","height","width","fill","onMouseover"],ft={key:5,class:"vue-data-ui-watermark"},mt=["innerHTML"],gt={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(f,{expose:ye}){const{vue_ui_candlestick:he}=s.useConfig(),d=f,x=e.computed(()=>!!d.dataset&&d.dataset.length),h=e.ref(s.createUid()),pe=e.ref(null),V=e.ref(!1),E=e.ref(""),T=e.ref(void 0),R=e.ref(0),b=e.ref(null),L=e.ref(null),O=e.ref(null),U=e.ref(null),D=e.ref(null),M=e.ref(null),C=e.ref(0),q=e.ref(0),H=e.ref(0),t=e.computed({get:()=>X(),set:l=>l}),{userOptionsVisible:A,setUserOptionsVisibility:W,keepUserOptionState:G}=Re.useUserOptionState({config:t.value}),{svgRef:j}=Le.useChartAccessibility({config:t.value.style.title});function X(){const l=ve.useNestedProp({userConfig:d.config,defaultConfig:he});let a={};return l.theme?a={...ve.useNestedProp({userConfig:s.themes.vue_ui_candlestick[l.theme]||d.config,defaultConfig:l})}:a=l,d.config&&s.hasDeepProperty(d.config,"style.zoom.startIndex")?a.style.zoom.startIndex=d.config.style.zoom.startIndex:a.style.zoom.startIndex=null,d.config&&s.hasDeepProperty(d.config,"style.zoom.endIndex")?a.style.zoom.endIndex=d.config.style.zoom.endIndex:a.style.zoom.endIndex=null,a}e.watch(()=>d.config,l=>{t.value=X(),A.value=!t.value.userOptions.showOnChartHover,Y(),C.value+=1,H.value+=1,q.value+=1,p.value.showTable=t.value.table.show,p.value.showTooltip=t.value.style.tooltip.show},{deep:!0}),e.watch(()=>d.dataset,l=>{c.value.start=0,c.value.end=l.length,C.value+=1},{deep:!0});const i=e.ref({height:t.value.style.height,width:t.value.style.width,xAxisFontSize:t.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:t.value.style.layout.grid.yAxis.dataLabels.fontSize}),N=e.ref(null);e.onMounted(()=>{Y()});function Y(){if(s.objectIsEmpty(d.dataset)&&s.error({componentName:"VueUiCandlestick",type:"dataset"}),t.value.responsive){const l=de.throttle(()=>{const{width:a,height:o}=de.useResponsive({chart:b.value,title:t.value.style.title.text?L.value:null,slicer:U.value,legend:O.value,source:D.value,noTitle:M.value});requestAnimationFrame(()=>{i.value.width=a,i.value.height=o,i.value.xAxisFontSize=s.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),i.value.yAxisFontSize=s.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})})});N.value=new ResizeObserver(l),N.value.observe(b.value.parentNode)}le()}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:J,isImaging:K,generatePdf:Q,generateImage:Z}=ce.usePrinter({elementId:`vue-ui-candlestick_${h.value}`,fileName:t.value.style.title.text||"vue-ui-candlestick",options:t.value.userOptions.print}),fe=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),u=e.computed(()=>{const{top:l,right:a,bottom:o,left:n}=t.value.style.layout.padding;return{top:l,right:i.value.width-a,left:n,bottom:i.value.height-o,width:i.value.width-n-a,height:i.value.height-l-o}}),w=e.computed(()=>d.dataset.length),c=e.ref({start:0,end:w.value}),ee=e.computed(()=>d.dataset.slice(c.value.start,c.value.end)),F=e.computed(()=>(d.dataset.forEach((l,a)=>{[null,void 0].includes(l[0])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:a}),[null,void 0].includes(l[1])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:a}),[null,void 0].includes(l[2])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:a}),[null,void 0].includes(l[3])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:a}),[null,void 0].includes(l[4])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:a}),[null,void 0].includes(l[5])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:a})}),ee.value.map(l=>({period:l[0],open:l[1],high:l[2],low:l[3],last:l[4],volume:l[5]})))),r=e.computed(()=>u.value.width/ee.value.length),te=e.computed(()=>({max:Math.max(...F.value.map(l=>l.high)),min:0})),m=e.computed(()=>s.calculateNiceScale(te.value.min,te.value.max,t.value.style.layout.grid.yAxis.dataLabels.steps));function $(l,a){return{...l,x:s.checkNaN(u.value.left+a*r.value+r.value/2),y:s.checkNaN(u.value.top+(1-l/m.value.max)*u.value.height),value:s.checkNaN(l)}}const v=e.computed(()=>F.value.map((l,a)=>{const o=$(l.open,a),n=$(l.high,a),y=$(l.low,a),_=$(l.last,a),z=l.last>l.open;return{period:l.period,open:o,high:n,low:y,last:_,volume:l.volume,isBullish:z}}));function me(l){return s.checkNaN(l/m.value.max)}const ge=e.computed(()=>m.value.ticks.map(l=>({y:u.value.bottom-u.value.height*me(l),value:s.checkNaN(l)}))),ke=e.computed(()=>F.value.map(l=>l.period)),I=e.ref(null);function xe(l,a){T.value=l,I.value={datapoint:a,seriesIndex:l,series:v.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(s.isFunction(o)&&s.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:v.value,config:t.value})))E.value=o({seriesIndex:l,datapoint:a,series:v.value,config:t.value});else if(t.value.style.tooltip.show){let n="";const{period:y,open:_,high:z,low:se,last:ue,volume:re,isBullish:ie}=v.value[l],{period:xt,open:Ne,high:$e,low:Se,last:Be,volume:_e}=t.value.translations;n+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${t.value.style.layout.candle.borderRadius*3}" stroke="${t.value.style.layout.candle.stroke}" stroke-width="${t.value.style.layout.candle.strokeWidth}"
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CRA3TjQQ.cjs"),de=require("./useResponsive-DQmBAoBf.cjs"),ze=require("./Title-CF40M_nk.cjs"),ce=require("./usePrinter-06EDG1PE.cjs"),Ve=require("./Tooltip-CupB-l8u.cjs"),Ee=require("./DataTable-Bjx5Ccho.cjs"),Te=require("./vue-ui-skeleton-5g5yLLM4.cjs"),Ae=require("./Slicer-B4Mbf7CA.cjs"),Fe=require("./vue-ui-accordion-DcFabpGO.cjs"),ve=require("./useNestedProp-wDhEx7x9.cjs"),Ie=require("./PackageVersion-_-duZr_B.cjs"),Pe=require("./PenAndPaper-BLqBmiek.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Le=require("./useChartAccessibility-Cm7nkzTG.cjs"),Oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],De=["xmlns","viewBox"],Me=["x","y","width","height"],qe={key:1},He=["id"],We=["stop-color"],Ge=["stop-color"],je=["stop-color"],Xe=["id"],Ye=["stop-color"],Je=["stop-color"],Ke=["stop-color"],Qe={key:0},Ze=["x1","x2","y1","y2","stroke","stroke-width"],et=["x1","x2","y1","y2","stroke","stroke-width"],tt={key:1},lt=["x1","x2","y1","y2","stroke","stroke-width"],ot=["x","y","font-size","fill","font-weight"],at={key:2},nt=["transform","text-anchor","font-size","fill","font-weight"],st=["x1","x2","y1","y2","stroke","stroke-width"],ut={key:0},rt=["cx","cy","r","fill"],it=["cx","cy","r","fill"],dt={key:1},ct=["x1","x2","y1","y2","stroke","stroke-width"],vt=["x1","x2","y1","y2","stroke","stroke-width"],yt=["x","y","height","width","fill","rx"],ht=["x","y","height","width","fill","rx","stroke","stroke-width"],pt=["x","y","height","width","fill","onMouseover"],ft={key:5,class:"vue-data-ui-watermark"},mt=["innerHTML"],gt={__name:"vue-ui-candlestick",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(f,{expose:ye}){const{vue_ui_candlestick:he}=s.useConfig(),d=f,x=e.computed(()=>!!d.dataset&&d.dataset.length),h=e.ref(s.createUid()),pe=e.ref(null),V=e.ref(!1),E=e.ref(""),T=e.ref(void 0),R=e.ref(0),b=e.ref(null),L=e.ref(null),O=e.ref(null),U=e.ref(null),D=e.ref(null),M=e.ref(null),C=e.ref(0),q=e.ref(0),H=e.ref(0),t=e.computed({get:()=>X(),set:l=>l}),{userOptionsVisible:A,setUserOptionsVisibility:W,keepUserOptionState:G}=Re.useUserOptionState({config:t.value}),{svgRef:j}=Le.useChartAccessibility({config:t.value.style.title});function X(){const l=ve.useNestedProp({userConfig:d.config,defaultConfig:he});let a={};return l.theme?a={...ve.useNestedProp({userConfig:s.themes.vue_ui_candlestick[l.theme]||d.config,defaultConfig:l})}:a=l,d.config&&s.hasDeepProperty(d.config,"style.zoom.startIndex")?a.style.zoom.startIndex=d.config.style.zoom.startIndex:a.style.zoom.startIndex=null,d.config&&s.hasDeepProperty(d.config,"style.zoom.endIndex")?a.style.zoom.endIndex=d.config.style.zoom.endIndex:a.style.zoom.endIndex=null,a}e.watch(()=>d.config,l=>{t.value=X(),A.value=!t.value.userOptions.showOnChartHover,Y(),C.value+=1,H.value+=1,q.value+=1,p.value.showTable=t.value.table.show,p.value.showTooltip=t.value.style.tooltip.show},{deep:!0}),e.watch(()=>d.dataset,l=>{c.value.start=0,c.value.end=l.length,C.value+=1},{deep:!0});const i=e.ref({height:t.value.style.height,width:t.value.style.width,xAxisFontSize:t.value.style.layout.grid.xAxis.dataLabels.fontSize,yAxisFontSize:t.value.style.layout.grid.yAxis.dataLabels.fontSize}),N=e.ref(null);e.onMounted(()=>{Y()});function Y(){if(s.objectIsEmpty(d.dataset)&&s.error({componentName:"VueUiCandlestick",type:"dataset"}),t.value.responsive){const l=de.throttle(()=>{const{width:a,height:o}=de.useResponsive({chart:b.value,title:t.value.style.title.text?L.value:null,slicer:U.value,legend:O.value,source:D.value,noTitle:M.value});requestAnimationFrame(()=>{i.value.width=a,i.value.height=o,i.value.xAxisFontSize=s.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),i.value.yAxisFontSize=s.translateSize({relator:Math.min(a,o),adjuster:t.value.style.width,source:t.value.style.layout.grid.yAxis.dataLabels.fontSize,threshold:6,fallback:6})})});N.value=new ResizeObserver(l),N.value.observe(b.value.parentNode)}le()}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:J,isImaging:K,generatePdf:Q,generateImage:Z}=ce.usePrinter({elementId:`vue-ui-candlestick_${h.value}`,fileName:t.value.style.title.text||"vue-ui-candlestick",options:t.value.userOptions.print}),fe=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),u=e.computed(()=>{const{top:l,right:a,bottom:o,left:n}=t.value.style.layout.padding;return{top:l,right:i.value.width-a,left:n,bottom:i.value.height-o,width:i.value.width-n-a,height:i.value.height-l-o}}),w=e.computed(()=>d.dataset.length),c=e.ref({start:0,end:w.value}),ee=e.computed(()=>d.dataset.slice(c.value.start,c.value.end)),F=e.computed(()=>(d.dataset.forEach((l,a)=>{[null,void 0].includes(l[0])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"period (index 0)",index:a}),[null,void 0].includes(l[1])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"open (index 1)",index:a}),[null,void 0].includes(l[2])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"high (index 2)",index:a}),[null,void 0].includes(l[3])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"low (index 3)",index:a}),[null,void 0].includes(l[4])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"last (index 4)",index:a}),[null,void 0].includes(l[5])&&s.error({componentName:"VueUiCandlestick",type:"datasetAttribute",property:"volume (index 5)",index:a})}),ee.value.map(l=>({period:l[0],open:l[1],high:l[2],low:l[3],last:l[4],volume:l[5]})))),r=e.computed(()=>u.value.width/ee.value.length),te=e.computed(()=>({max:Math.max(...F.value.map(l=>l.high)),min:0})),m=e.computed(()=>s.calculateNiceScale(te.value.min,te.value.max,t.value.style.layout.grid.yAxis.dataLabels.steps));function $(l,a){return{...l,x:s.checkNaN(u.value.left+a*r.value+r.value/2),y:s.checkNaN(u.value.top+(1-l/m.value.max)*u.value.height),value:s.checkNaN(l)}}const v=e.computed(()=>F.value.map((l,a)=>{const o=$(l.open,a),n=$(l.high,a),y=$(l.low,a),_=$(l.last,a),z=l.last>l.open;return{period:l.period,open:o,high:n,low:y,last:_,volume:l.volume,isBullish:z}}));function me(l){return s.checkNaN(l/m.value.max)}const ge=e.computed(()=>m.value.ticks.map(l=>({y:u.value.bottom-u.value.height*me(l),value:s.checkNaN(l)}))),ke=e.computed(()=>F.value.map(l=>l.period)),I=e.ref(null);function xe(l,a){T.value=l,I.value={datapoint:a,seriesIndex:l,series:v.value,config:t.value};const o=t.value.style.tooltip.customFormat;if(s.isFunction(o)&&s.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:v.value,config:t.value})))E.value=o({seriesIndex:l,datapoint:a,series:v.value,config:t.value});else if(t.value.style.tooltip.show){let n="";const{period:y,open:_,high:z,low:se,last:ue,volume:re,isBullish:ie}=v.value[l],{period:xt,open:Ne,high:$e,low:Se,last:Be,volume:_e}=t.value.translations;n+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${t.value.style.layout.candle.borderRadius*3}" stroke="${t.value.style.layout.candle.stroke}" stroke-width="${t.value.style.layout.candle.strokeWidth}"
2
2
  fill="${t.value.style.layout.candle.gradient.show?ie?`url(#bullish_gradient_${h.value})`:`url(#bearish_gradient_${h.value})`:ie?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg>${y}</div>`,n+=`${_e} : <b>${isNaN(re)?"-":Number(re.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()}</b>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,n+=`<div>${Ne}: <b>${t.value.style.tooltip.prefix} ${isNaN(_.value)?"-":Number(_.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${$e}: <b>${t.value.style.tooltip.prefix} ${isNaN(z.value)?"-":Number(z.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Se}: <b>${t.value.style.tooltip.prefix} ${isNaN(se.value)?"-":Number(se.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+=`<div>${Be}: <b>${t.value.style.tooltip.prefix} ${isNaN(ue.value)?"-":Number(ue.value.toFixed(t.value.style.tooltip.roundingValue)).toLocaleString()} ${t.value.style.tooltip.suffix}</b></div>`,n+="</div>",E.value=`<div style="text-align:right">${n}</div>`}V.value=!0}function be(){le()}const g=e.ref(null);async function le(){(t.value.style.zoom.startIndex!==null||t.value.style.zoom.endIndex!==null)&&g.value?(t.value.style.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),g.value&&g.value.setStartValue(t.value.style.zoom.startIndex)),t.value.style.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),g.value&&g.value.setEndValue(we(t.value.style.zoom.endIndex+1)))):(c.value={start:0,end:w.value},C.value+=1)}function we(l){const a=w.value;return l>a?a:l<0||t.value.style.zoom.startIndex!==null&&l<t.value.style.zoom.startIndex?t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex+1:1:l}function oe(){e.nextTick(()=>{const l=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume],a=v.value.map(y=>[y.period,y.open.value,y.high.value,y.low.value,y.last.value,y.volume]),o=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(a),n=s.createCsvContent(o);s.downloadCsv({csvContent:n,title:t.value.style.title.text||"vue-ui-candlestick"})})}const S=e.computed(()=>{const l=v.value.map(n=>[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${t.value.style.layout.candle.borderRadius*3}" fill="${t.value.style.layout.candle.gradient.show?n.isBullish?`url(#bullish_gradient_${h.value}`:`url(#bearish_gradient_${h.value})`:n.isBullish?t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.colors.bearish}"/></svg> ${n.period}`,`${t.value.table.td.prefix} ${isNaN(n.open.value)?"-":Number(n.open.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.high.value)?"-":Number(n.high.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.low.value)?"-":Number(n.low.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${t.value.table.td.prefix} ${isNaN(n.last.value)?"-":Number(n.last.value.toFixed(t.value.table.td.roundingValue)).toLocaleString()} ${t.value.table.td.suffix}`,`${isNaN(n.volume)?"-":n.volume.toLocaleString()}`]),a={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},o=[t.value.translations.period,t.value.translations.open,t.value.translations.high,t.value.translations.low,t.value.translations.last,t.value.translations.volume];return{head:o,body:l,config:a,colNames:o}}),k=e.ref(!1);function Ce(l){k.value=l,R.value+=1}function ae(){p.value.showTable=!p.value.showTable}function ne(){p.value.showTooltip=!p.value.showTooltip}const B=e.ref(!1);function P(){B.value=!B.value}return ye({generatePdf:Q,generateCsv:oe,generateImage:Z,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:P}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"candlestickChart",ref:b,class:e.normalizeClass(`vue-ui-candlestick ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`position:relative;font-family:${t.value.style.fontFamily}; text-align:center;background:${t.value.style.backgroundColor}; ${t.value.responsive?"height: 100%":""}`),id:`vue-ui-candlestick_${h.value}`,onMouseenter:a[4]||(a[4]=()=>e.unref(W)(!0)),onMouseleave:a[5]||(a[5]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Pe._sfc_main,{key:0,svgRef:e.unref(j),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:B.value,onClose:P},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),fe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:L,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ze._sfc_main,{key:`title_${H.value}`,config:{title:{cy:"candlestick-div-title",...t.value.style.title},subtitle:{cy:"candlestick-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value&&(e.unref(G)||e.unref(A))?(e.openBlock(),e.createBlock(ce.UserOptions,{ref_key:"details",ref:pe,key:`user_options_${R.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(K),isPrinting:e.unref(J),uid:h.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:k.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:b.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:Ce,onGeneratePdf:e.unref(Q),onGenerateCsv:oe,onGenerateImage:e.unref(Z),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(G)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:n})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:n})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:j,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${i.value.height<=0?10:i.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ie._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:u.value.left,y:u.value.top,width:u.value.width,height:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Me)):e.createCommentVNode("",!0),v.value.length>0?(e.openBlock(),e.createElementBlock("g",qe,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`bearish_gradient_${h.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bearish},null,8,We),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(s.shiftHue)(t.value.style.layout.candle.colors.bearish,.02)}DE`},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(s.shiftHue)(t.value.style.layout.candle.colors.bearish,.05)}66`},null,8,je)],8,He),e.createElementVNode("linearGradient",{id:`bullish_gradient_${h.value}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.candle.colors.bullish},null,8,Ye),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(s.shiftHue)(t.value.style.layout.candle.colors.bullish,.02)}DE`},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(s.shiftHue)(t.value.style.layout.candle.colors.bullish,.05)}66`},null,8,Ke)],8,Xe)]),t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Qe,[e.createElementVNode("line",{x1:u.value.left,x2:u.value.left,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ze),e.createElementVNode("line",{x1:u.value.left,x2:u.value.right,y1:u.value.bottom,y2:u.value.bottom,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,et)])):e.createCommentVNode("",!0),t.value.style.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ge.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.left,x2:u.value.left-5,y1:o.y,y2:o.y,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,lt)):e.createCommentVNode("",!0),o.value>=m.value.min&&o.value<=m.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.left-8+t.value.style.layout.grid.yAxis.dataLabels.offsetX,y:o.y+i.value.yAxisFontSize/3,"font-size":i.value.yAxisFontSize,"text-anchor":"end",fill:t.value.style.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.prefix)+" "+e.toDisplayString(e.unref(s.canShowValue)(o.value)?o.value.toFixed(t.value.style.layout.grid.yAxis.dataLabels.roundingValue):"")+" "+e.toDisplayString(t.value.style.layout.grid.yAxis.dataLabels.suffix),9,ot)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.value.style.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ke.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("text",{transform:`translate(${u.value.left+r.value*n+r.value/2}, ${u.value.bottom+i.value.xAxisFontSize*2+t.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${t.value.style.layout.grid.xAxis.dataLabels.rotation})`,"text-anchor":t.value.style.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":i.value.xAxisFontSize,fill:t.value.style.layout.grid.xAxis.dataLabels.color,"font-weight":t.value.style.layout.grid.xAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(o),9,nt)]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:o.open.x,x2:o.open.x,y1:o.high.y,y2:o.low.y,stroke:t.value.style.layout.wick.stroke,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,st),t.value.style.layout.wick.extremity.shape==="circle"?(e.openBlock(),e.createElementBlock("g",ut,[e.createElementVNode("circle",{cx:o.high.x,cy:o.high.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,rt),e.createElementVNode("circle",{cx:o.low.x,cy:o.low.y,r:t.value.style.layout.wick.extremity.size==="auto"?r.value/20:t.value.style.layout.wick.extremity.size,fill:t.value.style.layout.wick.extremity.color},null,8,it)])):e.createCommentVNode("",!0),t.value.style.layout.wick.extremity.shape==="line"?(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("line",{x1:o.high.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.high.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.high.y,y2:o.high.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,ct),e.createElementVNode("line",{x1:o.low.x-(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,x2:o.low.x+(t.value.style.layout.wick.extremity.size==="auto"?r.value*t.value.style.layout.candle.widthRatio:t.value.style.layout.wick.extremity.size)/2,y1:o.low.y,y2:o.low.y,stroke:t.value.style.layout.wick.extremity.color,"stroke-width":t.value.style.layout.wick.strokeWidth,"stroke-linecap":"round"},null,8,vt)])):e.createCommentVNode("",!0)]))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:t.value.style.layout.candle.gradient.underlayer,rx:t.value.style.layout.candle.borderRadius,stroke:"none"},null,8,yt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:o.open.x-r.value/2+r.value*(1-t.value.style.layout.candle.widthRatio)/2,y:o.isBullish?o.last.y:o.open.y,height:Math.abs(o.last.y-o.open.y)<=0?1e-4:Math.abs(o.last.y-o.open.y),width:r.value*t.value.style.layout.candle.widthRatio<=0?1e-4:r.value*t.value.style.layout.candle.widthRatio,fill:o.isBullish?t.value.style.layout.candle.gradient.show?`url(#bullish_gradient_${h.value})`:t.value.style.layout.candle.colors.bullish:t.value.style.layout.candle.gradient.show?`url(#bearish_gradient_${h.value})`:t.value.style.layout.candle.colors.bearish,rx:t.value.style.layout.candle.borderRadius,stroke:t.value.style.layout.candle.stroke,"stroke-width":t.value.style.layout.candle.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ht))),256))]),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,n)=>(e.openBlock(),e.createElementBlock("rect",{x:u.value.left+n*r.value,y:u.value.top,height:u.value.height<=0?1e-4:u.value.height,width:r.value<=0?1e-4:r.value,fill:T.value===n?e.unref(s.setOpacity)(t.value.style.layout.selector.color,t.value.style.layout.selector.opacity):"transparent",onMouseover:y=>xe(n,o),onMouseleave:a[0]||(a[0]=y=>{T.value=void 0,V.value=!1})},null,40,pt))),256))])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:i.value},void 0,!0)],14,De)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ft,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(J)||e.unref(K)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Te.default,{key:6,config:{type:"candlesticks",style:{backgroundColor:t.value.style.backgroundColor,candlesticks:{axis:{color:"#CCCCCC"},candle:{color:"#CCCCCC"}}}}},null,8,["config"])),t.value.style.zoom.show&&x.value?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"chartSlicer",ref:U},[(e.openBlock(),e.createBlock(Ae.Slicer,{ref_key:"slicerComponent",ref:g,key:`slicer_${C.value}`,background:t.value.style.zoom.color,borderColor:t.value.style.backgroundColor,fontSize:t.value.style.zoom.fontSize,useResetSlot:t.value.style.zoom.useResetSlot,labelLeft:f.dataset[c.value.start]?f.dataset[c.value.start][0]:f.dataset[0][0],labelRight:f.dataset[c.value.end-1]?f.dataset[c.value.end-1][0]:f.dataset.at(-1)[0],textColor:t.value.style.color,inputColor:t.value.style.zoom.color,selectColor:t.value.style.zoom.highlightColor,max:w.value,min:0,valueStart:c.value.start,valueEnd:c.value.end,start:c.value.start,"onUpdate:start":a[1]||(a[1]=o=>c.value.start=o),end:c.value.end,"onUpdate:end":a[2]||(a[2]=o=>c.value.end=o),refreshStartPoint:t.value.style.zoom.startIndex!==null?t.value.style.zoom.startIndex:0,refreshEndPoint:t.value.style.zoom.endIndex!==null?t.value.style.zoom.endIndex+1:w.value,enableRangeHandles:t.value.style.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.zoom.enableSelectionDrag,onReset:be},{"reset-action":e.withCtx(({reset:o})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:o})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"]))],512)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[e.renderSlot(l.$slots,"legend",{legend:v.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:D,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ve._sfc_main,{show:p.value.showTooltip&&V.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:b.value,content:E.value,isFullscreen:k.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),x.value?(e.openBlock(),e.createBlock(Fe.default,{key:9,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ee.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:a[3]||(a[3]=o=>p.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createTextVNode(e.toDisplayString(o),1)]),td:e.withCtx(({td:o})=>[e.createElementVNode("div",{innerHTML:o},null,8,mt)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},kt=Oe._export_sfc(gt,[["__scopeId","data-v-83916fa7"]]);exports.default=kt;
@@ -1,16 +1,16 @@
1
1
  import { computed as g, ref as n, watch as Ne, onMounted as Je, onBeforeUnmount as Ke, nextTick as V, createElementBlock as u, openBlock as s, unref as v, normalizeStyle as ee, normalizeClass as Ae, createBlock as _, createCommentVNode as y, createElementVNode as r, createVNode as Te, createSlots as Qe, withCtx as m, renderSlot as f, normalizeProps as z, guardReactiveProps as S, Fragment as I, renderList as F, toDisplayString as P, createTextVNode as Ze } from "vue";
2
- import { u as et, c as tt, a as lt, C as Ie, o as ot, e as N, D as at, v as U, X as st, w as j, E as ut, s as it, F as Fe, q as nt, r as rt, x as dt, y as vt } from "./index-BFQVpLxg.js";
2
+ import { u as et, c as tt, a as lt, C as Ie, o as ot, e as N, D as at, v as U, X as st, w as j, E as ut, s as it, F as Fe, q as nt, r as rt, x as dt, y as vt } from "./index-DmMaSSqc.js";
3
3
  import { t as yt, u as ct } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as ht } from "./Title-lqF_rq6c.js";
5
- import { u as ft, U as pt } from "./usePrinter-DKrOpSvE.js";
6
- import { _ as gt } from "./Tooltip-DKFyA3ub.js";
7
- import { D as mt } from "./DataTable-D47NI3mY.js";
8
- import bt from "./vue-ui-skeleton-CHzvVaNP.js";
9
- import { S as xt } from "./Slicer-CB_l-Wls.js";
10
- import kt from "./vue-ui-accordion-8x_k6qEe.js";
11
- import { u as Re } from "./useNestedProp-CQx8H1CV.js";
12
- import { _ as wt } from "./PackageVersion-D0X33ZDw.js";
13
- import { _ as $t } from "./PenAndPaper-DOg71Z7q.js";
4
+ import { _ as ht } from "./Title-D08zl5ev.js";
5
+ import { u as ft, U as pt } from "./usePrinter-1GlKtPCq.js";
6
+ import { _ as gt } from "./Tooltip-BXmEpCan.js";
7
+ import { D as mt } from "./DataTable-B1yJapRL.js";
8
+ import bt from "./vue-ui-skeleton-8OZ9rJXh.js";
9
+ import { S as xt } from "./Slicer-XYuzh148.js";
10
+ import kt from "./vue-ui-accordion-QdoZquMy.js";
11
+ import { u as Re } from "./useNestedProp-B47aFTkT.js";
12
+ import { _ as wt } from "./PackageVersion-BwGV13wg.js";
13
+ import { _ as $t } from "./PenAndPaper-BwOppffl.js";
14
14
  import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { u as _t } from "./useChartAccessibility-BWojgys7.js";
16
16
  import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-C2dCPlLw.cjs"),ue=require("./useNestedProp-Coe_9w4h.cjs"),Q=require("./usePrinter-B7OpKMf9.cjs"),se=require("./vue-ui-skeleton-CfkVGDBV.cjs"),de=require("./useUserOptionState-BgepsfED.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],pe=["height"],fe=["data-cell","height"],me={key:2,ref:"source",dir:"auto"},he={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(b,{expose:W}){const{vue_ui_carousel_table:Y}=u.useConfig(),r=b,x=e.ref(u.createUid()),z=e.ref(!1),k=e.ref(!!r.dataset),Z=e.useSlots();e.onMounted(()=>{F()}),e.onMounted(()=>{Z["chart-background"]&&console.warn("VueUiCarouselTable does not support the #chart-background slot.")});function F(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!r.dataset.head||u.objectIsEmpty(r.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),k.value=!1),(!r.dataset.body||u.objectIsEmpty(r.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),k.value=!1))}const t=e.computed({get:()=>V(),set:o=>o}),{userOptionsVisible:A,setUserOptionsVisibility:P,keepUserOptionState:N}=de.useUserOptionState({config:t.value});function V(){return ue.useNestedProp({userConfig:r.config,defaultConfig:Y})}e.watch(()=>r.config,o=>{t.value=V(),A.value=!t.value.userOptions.showOnChartHover,F()},{deep:!0}),e.watch(()=>r.dataset,o=>{O()},{deep:!0});const{isPrinting:R,isImaging:M,generatePdf:_,generateImage:q}=Q.usePrinter({elementId:`carousel-table_${x.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table",options:t.value.userOptions.print}),v=e.ref({showAnimation:t.value.animation.use}),l=e.ref(null),U=e.ref(null),C=e.ref(null),T=e.ref(null),$=e.ref(0),B=e.ref(0),S=e.ref(!1),w=e.ref(null),f=e.ref(null),y=e.ref(0);function O(){w.value&&(f.value={elements:w.value.getElementsByTagName("tr"),heights:Array.from(w.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(O);const ee=e.computed(()=>!f.value||!f.value.heights.length?0:Math.max(...f.value.heights)+$.value+B.value),te=e.computed(()=>r.dataset.body?t.value.tbody.tr.visible<=r.dataset.body.length?t.value.tbody.tr.visible:r.dataset.body.length:0),oe=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)*te.value+$.value+B.value),d=e.ref(0),m=e.ref(null),s=e.ref(0),h=e.ref(!1),H=e.ref(0);e.onMounted(()=>{C.value&&($.value=C.value.getBoundingClientRect().height),T.value&&(B.value=T.value.getBoundingClientRect().height),v.value.showAnimation&&f.value&&L()}),e.onMounted(()=>{if(l.value){let a=function(){const i=o.getBoundingClientRect().bottom;n.forEach(p=>{p.getBoundingClientRect().top<i?p.style.visibility="hidden":p.style.visibility="visible"})};const o=l.value.querySelector("thead"),n=Array.from(w.value.querySelectorAll("tr"));l.value.addEventListener("scroll",a),a(),e.onBeforeUnmount(()=>{l.value.removeEventListener("scroll",a)})}});function ae(o){z.value=o,H.value+=1}function L(){!m.value&&!h.value&&(t.value.animation.type==="scroll"?m.value=requestAnimationFrame(D):m.value=requestAnimationFrame(G))}function ne(){if(!l.value)return!1;const{scrollTop:o,scrollHeight:n,clientHeight:a}=l.value;return o+a>=n}function D(o){if(h.value)return;s.value||(s.value=o),o-s.value>=t.value.animation.speedMs&&(d.value+=f.value.heights[y.value],(ne()||y.value>=f.value.heights.length)&&(d.value=0,y.value=-1),y.value+=1,l.value&&l.value.scrollTo({top:d.value,behavior:"smooth"}),s.value=o),m.value=requestAnimationFrame(D)}function G(o){if(h.value)return;s.value||(s.value=o);const n=o-s.value,a=t.value.animation.speedMs/4/1e3;n>=a&&(d.value+=a,d.value>=l.value.scrollHeight-l.value.clientHeight&&(d.value=0),l.value&&l.value.scrollTo({top:d.value,behavior:"auto"}),s.value=o),m.value=requestAnimationFrame(G)}function c(){h.value=!0,cancelAnimationFrame(m.value),m.value=null}e.onBeforeUnmount(c);function g(){!h.value||!v.value.showAnimation||(h.value=!1,s.value=0,L())}function le(){t.value.animation.pauseOnHover&&c()}const I=e.ref(null);function re(){c(),clearTimeout(I.value)}function j(){clearTimeout(I.value),I.value=setTimeout(g,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(v.value.showAnimation=!0,g()):(v.value.showAnimation=!1,c())}),e.watch(()=>t.value.animation.type,o=>{c(),d.value=0,y.value=0,l.value.scrollTo({top:0,behavior:"auto"}),g()});const ie=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(a=>{S.value=a.contentRect.width<ie.value}),$.value=C.value?C.value.getBoundingClientRect().height:0,B.value=T.value?T.value.getBoundingClientRect().height:0,y.value=0,e.nextTick(()=>{c(),s.value=0,d.value=0,O(),g()})});l.value&&o.observe(l.value)});function X(){_()}function J(){v.value.showAnimation=!v.value.showAnimation,v.value.showAnimation?g():c()}function K(){e.nextTick(()=>{const o=r.dataset.head.map((i,p)=>[[r.dataset.body[p]]]),n=[[t.value.caption.text],[r.dataset.head.map(i=>[i])]].concat(o),a=u.createCsvContent(n);u.downloadCsv({csvContent:a,title:t.value.caption.text||"vue-ui-carousel-table"})})}return W({pauseAnimation:c,resumeAnimation:g,toggleAnimation:J,generateCsv:K,generatePdf:X,generateImage:q}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-carousel-table",style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:U,onMouseenter:n[5]||(n[5]=()=>e.unref(P)(!0)),onMouseleave:n[6]||(n[6]=()=>e.unref(P)(!1))},[e.createElementVNode("div",{ref_key:"tableContainer",ref:l,id:`carousel-table_${x.value}`,style:e.normalizeStyle({height:e.unref(R)||e.unref(M)?"auto":`${Math.max(oe.value,ee.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":S.value,"is-playing":t.value.scrollbar.hide||!h.value&&t.value.scrollbar.showOnlyOnHover}),onMouseover:n[0]||(n[0]=a=>le()),onMouseleave:n[1]||(n[1]=a=>g()),onTouchstart:n[2]||(n[2]=a=>re()),onTouchend:n[3]||(n[3]=a=>j()),onTouchcancel:n[4]||(n[4]=a=>j())},[k.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",backgroundColor:t.value.tbody.backgroundColor})},[e.createElementVNode("caption",{ref_key:"caption",ref:C,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:S.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px",display:o.$slots.caption||t.value.caption.text||t.value.userOptions.show?"":"none"})},[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:`${o.$slots.caption||t.value.caption.text||t.value.userOptions.show?$.value:0}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:T,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:S.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(b.dataset.head,(a,i)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${i}`,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.mergeProps({ref_for:!0},{th:a,colIndex:i}),void 0,!0)],4))),128))],12,pe)],4),b.dataset.body&&b.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:w,style:{clipPath:"inset(0,0,0,0)"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.dataset.body,(a,i)=>(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,(p,E)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":b.dataset.head[E]||"",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,i%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?"":p)+" ",1),e.renderSlot(o.$slots,"td",e.mergeProps({ref_for:!0},{td:p,rowIndex:i,colIndex:E}),void 0,!0)],12,fe))),256))],4))),256))],512)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,ce),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&k.value&&(e.unref(N)||e.unref(A))?(e.openBlock(),e.createBlock(Q.UserOptions,{ref:"details",key:`user_option_${H.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(R),isImaging:e.unref(M),uid:x.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:!v.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:z.value,chartElement:U.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},zIndex:3,offsetX:12,onGeneratePdf:X,onGenerateCsv:K,onGenerateImage:e.unref(q),onToggleAnimation:J,onToggleFullscreen:ae,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:i})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:i})),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.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","position","titles","onGenerateImage","style"])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",me,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],544))}},ge=ve._export_sfc(he,[["__scopeId","data-v-751c3b08"]]);exports.default=ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CRA3TjQQ.cjs"),ue=require("./useNestedProp-wDhEx7x9.cjs"),Q=require("./usePrinter-06EDG1PE.cjs"),se=require("./vue-ui-skeleton-5g5yLLM4.cjs"),de=require("./useUserOptionState-BgepsfED.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],pe=["height"],fe=["data-cell","height"],me={key:2,ref:"source",dir:"auto"},he={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(b,{expose:W}){const{vue_ui_carousel_table:Y}=u.useConfig(),r=b,x=e.ref(u.createUid()),z=e.ref(!1),k=e.ref(!!r.dataset),Z=e.useSlots();e.onMounted(()=>{F()}),e.onMounted(()=>{Z["chart-background"]&&console.warn("VueUiCarouselTable does not support the #chart-background slot.")});function F(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!r.dataset.head||u.objectIsEmpty(r.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),k.value=!1),(!r.dataset.body||u.objectIsEmpty(r.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),k.value=!1))}const t=e.computed({get:()=>V(),set:o=>o}),{userOptionsVisible:A,setUserOptionsVisibility:P,keepUserOptionState:N}=de.useUserOptionState({config:t.value});function V(){return ue.useNestedProp({userConfig:r.config,defaultConfig:Y})}e.watch(()=>r.config,o=>{t.value=V(),A.value=!t.value.userOptions.showOnChartHover,F()},{deep:!0}),e.watch(()=>r.dataset,o=>{O()},{deep:!0});const{isPrinting:R,isImaging:M,generatePdf:_,generateImage:q}=Q.usePrinter({elementId:`carousel-table_${x.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table",options:t.value.userOptions.print}),v=e.ref({showAnimation:t.value.animation.use}),l=e.ref(null),U=e.ref(null),C=e.ref(null),T=e.ref(null),$=e.ref(0),B=e.ref(0),S=e.ref(!1),w=e.ref(null),f=e.ref(null),y=e.ref(0);function O(){w.value&&(f.value={elements:w.value.getElementsByTagName("tr"),heights:Array.from(w.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(O);const ee=e.computed(()=>!f.value||!f.value.heights.length?0:Math.max(...f.value.heights)+$.value+B.value),te=e.computed(()=>r.dataset.body?t.value.tbody.tr.visible<=r.dataset.body.length?t.value.tbody.tr.visible:r.dataset.body.length:0),oe=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)*te.value+$.value+B.value),d=e.ref(0),m=e.ref(null),s=e.ref(0),h=e.ref(!1),H=e.ref(0);e.onMounted(()=>{C.value&&($.value=C.value.getBoundingClientRect().height),T.value&&(B.value=T.value.getBoundingClientRect().height),v.value.showAnimation&&f.value&&L()}),e.onMounted(()=>{if(l.value){let a=function(){const i=o.getBoundingClientRect().bottom;n.forEach(p=>{p.getBoundingClientRect().top<i?p.style.visibility="hidden":p.style.visibility="visible"})};const o=l.value.querySelector("thead"),n=Array.from(w.value.querySelectorAll("tr"));l.value.addEventListener("scroll",a),a(),e.onBeforeUnmount(()=>{l.value.removeEventListener("scroll",a)})}});function ae(o){z.value=o,H.value+=1}function L(){!m.value&&!h.value&&(t.value.animation.type==="scroll"?m.value=requestAnimationFrame(D):m.value=requestAnimationFrame(G))}function ne(){if(!l.value)return!1;const{scrollTop:o,scrollHeight:n,clientHeight:a}=l.value;return o+a>=n}function D(o){if(h.value)return;s.value||(s.value=o),o-s.value>=t.value.animation.speedMs&&(d.value+=f.value.heights[y.value],(ne()||y.value>=f.value.heights.length)&&(d.value=0,y.value=-1),y.value+=1,l.value&&l.value.scrollTo({top:d.value,behavior:"smooth"}),s.value=o),m.value=requestAnimationFrame(D)}function G(o){if(h.value)return;s.value||(s.value=o);const n=o-s.value,a=t.value.animation.speedMs/4/1e3;n>=a&&(d.value+=a,d.value>=l.value.scrollHeight-l.value.clientHeight&&(d.value=0),l.value&&l.value.scrollTo({top:d.value,behavior:"auto"}),s.value=o),m.value=requestAnimationFrame(G)}function c(){h.value=!0,cancelAnimationFrame(m.value),m.value=null}e.onBeforeUnmount(c);function g(){!h.value||!v.value.showAnimation||(h.value=!1,s.value=0,L())}function le(){t.value.animation.pauseOnHover&&c()}const I=e.ref(null);function re(){c(),clearTimeout(I.value)}function j(){clearTimeout(I.value),I.value=setTimeout(g,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(v.value.showAnimation=!0,g()):(v.value.showAnimation=!1,c())}),e.watch(()=>t.value.animation.type,o=>{c(),d.value=0,y.value=0,l.value.scrollTo({top:0,behavior:"auto"}),g()});const ie=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(a=>{S.value=a.contentRect.width<ie.value}),$.value=C.value?C.value.getBoundingClientRect().height:0,B.value=T.value?T.value.getBoundingClientRect().height:0,y.value=0,e.nextTick(()=>{c(),s.value=0,d.value=0,O(),g()})});l.value&&o.observe(l.value)});function X(){_()}function J(){v.value.showAnimation=!v.value.showAnimation,v.value.showAnimation?g():c()}function K(){e.nextTick(()=>{const o=r.dataset.head.map((i,p)=>[[r.dataset.body[p]]]),n=[[t.value.caption.text],[r.dataset.head.map(i=>[i])]].concat(o),a=u.createCsvContent(n);u.downloadCsv({csvContent:a,title:t.value.caption.text||"vue-ui-carousel-table"})})}return W({pauseAnimation:c,resumeAnimation:g,toggleAnimation:J,generateCsv:K,generatePdf:X,generateImage:q}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-carousel-table",style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:U,onMouseenter:n[5]||(n[5]=()=>e.unref(P)(!0)),onMouseleave:n[6]||(n[6]=()=>e.unref(P)(!1))},[e.createElementVNode("div",{ref_key:"tableContainer",ref:l,id:`carousel-table_${x.value}`,style:e.normalizeStyle({height:e.unref(R)||e.unref(M)?"auto":`${Math.max(oe.value,ee.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":S.value,"is-playing":t.value.scrollbar.hide||!h.value&&t.value.scrollbar.showOnlyOnHover}),onMouseover:n[0]||(n[0]=a=>le()),onMouseleave:n[1]||(n[1]=a=>g()),onTouchstart:n[2]||(n[2]=a=>re()),onTouchend:n[3]||(n[3]=a=>j()),onTouchcancel:n[4]||(n[4]=a=>j())},[k.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",backgroundColor:t.value.tbody.backgroundColor})},[e.createElementVNode("caption",{ref_key:"caption",ref:C,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:S.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px",display:o.$slots.caption||t.value.caption.text||t.value.userOptions.show?"":"none"})},[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:`${o.$slots.caption||t.value.caption.text||t.value.userOptions.show?$.value:0}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:T,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:S.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(b.dataset.head,(a,i)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${i}`,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.mergeProps({ref_for:!0},{th:a,colIndex:i}),void 0,!0)],4))),128))],12,pe)],4),b.dataset.body&&b.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:w,style:{clipPath:"inset(0,0,0,0)"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.dataset.body,(a,i)=>(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,(p,E)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":b.dataset.head[E]||"",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,i%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?"":p)+" ",1),e.renderSlot(o.$slots,"td",e.mergeProps({ref_for:!0},{td:p,rowIndex:i,colIndex:E}),void 0,!0)],12,fe))),256))],4))),256))],512)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,ce),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&k.value&&(e.unref(N)||e.unref(A))?(e.openBlock(),e.createBlock(Q.UserOptions,{ref:"details",key:`user_option_${H.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(R),isImaging:e.unref(M),uid:x.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:!v.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:z.value,chartElement:U.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},zIndex:3,offsetX:12,onGeneratePdf:X,onGenerateCsv:K,onGenerateImage:e.unref(q),onToggleAnimation:J,onToggleFullscreen:ae,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:i})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:i})),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.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","position","titles","onGenerateImage","style"])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",me,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],544))}},ge=ve._export_sfc(he,[["__scopeId","data-v-751c3b08"]]);exports.default=ge;
@@ -1,8 +1,8 @@
1
1
  import { ref as n, useSlots as Fe, onMounted as A, computed as P, watch as E, onBeforeUnmount as ve, nextTick as pe, createElementBlock as v, openBlock as u, unref as r, createElementVNode as H, createBlock as ce, createCommentVNode as R, normalizeClass as Be, normalizeStyle as f, createTextVNode as L, renderSlot as p, toDisplayString as G, Fragment as D, renderList as X, mergeProps as fe, createSlots as Pe, withCtx as w, normalizeProps as he, guardReactiveProps as me } from "vue";
2
- import { u as Re, c as ze, o as j, e as J, s as Se, q as Ee, r as He } from "./index-BFQVpLxg.js";
3
- import { u as Ne } from "./useNestedProp-CQx8H1CV.js";
4
- import { u as Ue, U as Ve } from "./usePrinter-DKrOpSvE.js";
5
- import Me from "./vue-ui-skeleton-CHzvVaNP.js";
2
+ import { u as Re, c as ze, o as j, e as J, s as Se, q as Ee, r as He } from "./index-DmMaSSqc.js";
3
+ import { u as Ne } from "./useNestedProp-B47aFTkT.js";
4
+ import { u as Ue, U as Ve } from "./usePrinter-1GlKtPCq.js";
5
+ import Me from "./vue-ui-skeleton-8OZ9rJXh.js";
6
6
  import { u as qe } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const Ge = ["id"], De = ["height"], Xe = ["data-cell", "height"], je = {