vue-data-ui 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -1,16 +1,16 @@
1
- import { ref as b, onMounted as q, onBeforeUnmount as H, withDirectives as G, openBlock as t, createElementBlock as i, normalizeStyle as d, createElementVNode as X, withModifiers as J, withKeys as Q, createVNode as R, normalizeClass as y, renderSlot as m, Fragment as B, createBlock as g, toDisplayString as $, createCommentVNode as s, normalizeProps as z, mergeProps as D, unref as Y } from "vue";
2
- import r from "./BaseIcon-CXDdkPfN.js";
3
- import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const p = {
5
- beforeMount(e, f) {
6
- e.clickOutsideEvent = function(a) {
7
- e === a.target || e.contains(a.target) || f.value(a);
1
+ import { ref as b, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as R, openBlock as t, createElementBlock as i, normalizeStyle as d, createElementVNode as U, withModifiers as Y, withKeys as Z, createVNode as p, normalizeClass as c, renderSlot as m, Fragment as h, createBlock as f, toDisplayString as $, createCommentVNode as u, normalizeProps as L, mergeProps as w, unref as _ } from "vue";
2
+ import a from "./BaseIcon-BbvG1AlW.js";
3
+ import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const te = {
5
+ beforeMount(e, v) {
6
+ e.clickOutsideEvent = function(r) {
7
+ e === r.target || e.contains(r.target) || v.value(r);
8
8
  }, document.addEventListener("click", e.clickOutsideEvent);
9
9
  },
10
10
  unmounted(e) {
11
11
  document.removeEventListener("click", e.clickOutsideEvent);
12
12
  }
13
- }, _ = ["title", "onClick", "onKeypress"], ee = ["data-open"], te = {
13
+ }, oe = ["title", "onClick", "onKeypress"], ne = ["data-open"], le = {
14
14
  __name: "UserOptions",
15
15
  props: {
16
16
  hasPdf: {
@@ -122,66 +122,81 @@ const p = {
122
122
  offsetX: {
123
123
  type: Number,
124
124
  default: 0
125
+ },
126
+ hasAnnotator: {
127
+ type: Boolean,
128
+ default: !1
129
+ },
130
+ isAnnotation: {
131
+ type: Boolean,
132
+ default: !1
125
133
  }
126
134
  },
127
- emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation"],
128
- setup(e, { emit: f }) {
129
- const a = e;
130
- function h() {
131
- f("generatePdf");
132
- }
135
+ emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation", "toggleAnnotator"],
136
+ setup(e, { emit: v }) {
137
+ const r = e;
133
138
  function C() {
134
- f("generateCsv");
139
+ v("generatePdf");
135
140
  }
136
141
  function S() {
137
- f("generateImage");
142
+ v("generateCsv");
143
+ }
144
+ function A() {
145
+ v("generateImage");
138
146
  }
139
- const T = b(!1);
147
+ const B = b(!1);
140
148
  function I() {
141
- T.value = !T.value, f("toggleTable");
149
+ B.value = !B.value, v("toggleTable");
142
150
  }
143
- const v = b(!1), N = b(!0);
144
- function L() {
145
- c.value = window.innerWidth > 600, v.value = !v.value, v.value && (N.value = !1);
151
+ const g = b(!1), K = b(!0);
152
+ function P() {
153
+ k.value = window.innerWidth > 600, g.value = !g.value, g.value && (K.value = !1);
146
154
  }
147
- function U() {
148
- a.isPrinting || a.isImaging || (v.value = !1);
155
+ function V() {
156
+ r.isPrinting || r.isImaging || (g.value = !1);
149
157
  }
150
- function x() {
151
- v.value && U();
158
+ function j() {
159
+ g.value && V();
152
160
  }
153
- const E = b(a.isLabelActive);
154
- function K() {
155
- E.value = !E.value, f("toggleLabels");
161
+ const E = b(r.isLabelActive);
162
+ function W() {
163
+ E.value = !E.value, v("toggleLabels");
156
164
  }
157
- const M = b(a.isAnimation);
158
- function w() {
159
- M.value = !M.value, f("toggleAnimation");
165
+ const M = b(r.isAnimation);
166
+ function X() {
167
+ M.value = !M.value, v("toggleAnimation");
160
168
  }
161
- function V() {
162
- f("toggleSort");
169
+ const T = G({
170
+ get: () => r.isAnnotation,
171
+ set: (l) => l
172
+ });
173
+ function z() {
174
+ T.value = !T.value, v("toggleAnnotator");
163
175
  }
164
- const F = b(a.isStacked);
165
- function j() {
166
- F.value = !F.value, f("toggleStack");
176
+ function q() {
177
+ v("toggleSort");
167
178
  }
168
- const O = b(a.isTooltip);
169
- function W() {
170
- O.value = !O.value, f("toggleTooltip");
179
+ const F = b(r.isStacked);
180
+ function x() {
181
+ F.value = !F.value, v("toggleStack");
182
+ }
183
+ const O = b(r.isTooltip);
184
+ function H() {
185
+ O.value = !O.value, v("toggleTooltip");
171
186
  }
172
- const k = b(!1);
173
- function A(l) {
174
- a.chartElement && (l === "in" ? (k.value = !0, a.chartElement.requestFullscreen(), f("toggleFullscreen", !0)) : (k.value = !1, document && document.exitFullscreen(), f("toggleFullscreen", !1)));
187
+ const y = b(!1);
188
+ function D(l) {
189
+ r.chartElement && (l === "in" ? (y.value = !0, r.chartElement.requestFullscreen(), v("toggleFullscreen", !0)) : (y.value = !1, document && document.exitFullscreen(), v("toggleFullscreen", !1)));
175
190
  }
176
- function P(l) {
177
- document.fullscreenElement ? k.value = !0 : k.value = !1;
191
+ function N(l) {
192
+ document.fullscreenElement ? y.value = !0 : y.value = !1;
178
193
  }
179
- q(() => {
180
- document.addEventListener("fullscreenchange", P);
181
- }), H(() => {
182
- document.removeEventListener("fullscreenchange", P);
194
+ J(() => {
195
+ document.addEventListener("fullscreenchange", N);
196
+ }), Q(() => {
197
+ document.removeEventListener("fullscreenchange", N);
183
198
  });
184
- const c = b(window.innerWidth > 600), n = b({
199
+ const k = b(window.innerWidth > 600), n = b({
185
200
  tooltip: !1,
186
201
  pdf: !1,
187
202
  csv: !1,
@@ -191,340 +206,370 @@ const p = {
191
206
  sort: !1,
192
207
  stack: !1,
193
208
  fullscreen: !1,
194
- animation: !1
209
+ animation: !1,
210
+ annotator: !1
195
211
  });
196
- return (l, o) => G((t(), i("div", {
212
+ return (l, o) => R((t(), i("div", {
197
213
  "data-html2canvas-ignore": "",
198
214
  class: "vue-ui-user-options",
199
- style: d(`z-index: ${e.zIndex}; height: 34px; position: ${k.value ? "fixed" : "absolute"}; top: 0; ${e.position === "right" ? `right:${k.value ? "12px" : "0"}` : `left:${k.value ? "12px" : "0"}`}; padding: 4px; background:transparent;`)
215
+ style: d(`z-index: ${e.zIndex}; height: 34px; position: ${y.value ? "fixed" : "absolute"}; top: 0; ${e.position === "right" ? `right:${y.value ? "12px" : "0"}` : `left:${y.value ? "12px" : "0"}`}; padding: 4px; background:transparent;`)
200
216
  }, [
201
- X("div", {
217
+ U("div", {
202
218
  tabindex: "0",
203
- title: v.value ? e.titles.close || "" : e.titles.open || "",
219
+ title: g.value ? e.titles.close || "" : e.titles.open || "",
204
220
  style: d(`width:32px; position: absolute; top: 0;${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),
205
- onClick: J(L, ["stop"]),
206
- onKeypress: Q(L, ["enter"])
221
+ onClick: Y(P, ["stop"]),
222
+ onKeypress: Z(P, ["enter"])
207
223
  }, [
208
- R(r, {
209
- name: v.value ? "close" : "menu",
224
+ p(a, {
225
+ name: g.value ? "close" : "menu",
210
226
  stroke: e.color,
211
227
  "stroke-width": 2
212
228
  }, null, 8, ["name", "stroke"])
213
- ], 44, _),
214
- X("div", {
215
- "data-open": v.value,
216
- class: y({ "vue-ui-user-options-drawer": !0 }),
229
+ ], 44, oe),
230
+ U("div", {
231
+ "data-open": g.value,
232
+ class: c({ "vue-ui-user-options-drawer": !0 }),
217
233
  style: d(`background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
218
234
  }, [
219
235
  e.hasTooltip ? (t(), i("button", {
220
236
  key: 0,
221
237
  tabindex: "0",
222
238
  class: "vue-ui-user-options-button",
223
- onClick: W,
224
- onMouseenter: o[0] || (o[0] = (u) => n.value.tooltip = !0),
225
- onMouseout: o[1] || (o[1] = (u) => n.value.tooltip = !1)
239
+ onClick: H,
240
+ onMouseenter: o[0] || (o[0] = (s) => n.value.tooltip = !0),
241
+ onMouseout: o[1] || (o[1] = (s) => n.value.tooltip = !1)
226
242
  }, [
227
- l.$slots.optionTooltip ? m(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
228
- O.value ? (t(), g(r, {
243
+ l.$slots.optionTooltip ? m(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
244
+ O.value ? (t(), f(a, {
229
245
  key: 0,
230
246
  name: "tooltip",
231
247
  stroke: e.color,
232
248
  style: { "pointer-events": "none" }
233
- }, null, 8, ["stroke"])) : (t(), g(r, {
249
+ }, null, 8, ["stroke"])) : (t(), f(a, {
234
250
  key: 1,
235
251
  name: "tooltipDisabled",
236
252
  stroke: e.color,
237
253
  style: { "pointer-events": "none" }
238
254
  }, null, 8, ["stroke"]))
239
255
  ], 64)),
240
- c.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(), i("div", {
256
+ k.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(), i("div", {
241
257
  key: 2,
242
258
  dir: "auto",
243
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-left-visible": e.position === "left" && n.value.tooltip, "button-info-right-visible": e.position === "right" && n.value.tooltip }),
259
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-left-visible": e.position === "left" && n.value.tooltip, "button-info-right-visible": e.position === "right" && n.value.tooltip }),
244
260
  style: d({ background: e.backgroundColor, color: e.color })
245
- }, $(e.titles.tooltip), 7)) : s("", !0)
246
- ], 32)) : s("", !0),
261
+ }, $(e.titles.tooltip), 7)) : u("", !0)
262
+ ], 32)) : u("", !0),
247
263
  e.hasPdf ? (t(), i("button", {
248
264
  key: 1,
249
265
  tabindex: "0",
250
266
  class: "vue-ui-user-options-button",
251
- onClick: h,
252
- onMouseenter: o[2] || (o[2] = (u) => n.value.pdf = !0),
253
- onMouseout: o[3] || (o[3] = (u) => n.value.pdf = !1)
267
+ onClick: C,
268
+ onMouseenter: o[2] || (o[2] = (s) => n.value.pdf = !0),
269
+ onMouseout: o[3] || (o[3] = (s) => n.value.pdf = !1)
254
270
  }, [
255
- l.$slots.optionPdf ? m(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
256
- e.isPrinting ? (t(), g(r, {
271
+ l.$slots.optionPdf ? m(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
272
+ e.isPrinting ? (t(), f(a, {
257
273
  key: 0,
258
274
  name: "spin",
259
275
  isSpin: "",
260
276
  stroke: e.color,
261
277
  style: { "pointer-events": "none" }
262
- }, null, 8, ["stroke"])) : (t(), g(r, {
278
+ }, null, 8, ["stroke"])) : (t(), f(a, {
263
279
  key: 1,
264
280
  name: "pdf",
265
281
  stroke: e.color,
266
282
  style: { "pointer-events": "none" }
267
283
  }, null, 8, ["stroke"]))
268
284
  ], 64)),
269
- c.value && e.titles.pdf && !l.$slots.optionPdf ? (t(), i("div", {
285
+ k.value && e.titles.pdf && !l.$slots.optionPdf ? (t(), i("div", {
270
286
  key: 2,
271
287
  dir: "auto",
272
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.pdf, "button-info-left-visible": e.position === "left" && n.value.pdf }),
288
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.pdf, "button-info-left-visible": e.position === "left" && n.value.pdf }),
273
289
  style: d({ background: e.backgroundColor, color: e.color })
274
- }, $(e.titles.pdf), 7)) : s("", !0)
275
- ], 32)) : s("", !0),
290
+ }, $(e.titles.pdf), 7)) : u("", !0)
291
+ ], 32)) : u("", !0),
276
292
  e.hasXls ? (t(), i("button", {
277
293
  key: 2,
278
294
  tabindex: "0",
279
295
  class: "vue-ui-user-options-button",
280
- onClick: C,
281
- onMouseenter: o[4] || (o[4] = (u) => n.value.csv = !0),
282
- onMouseout: o[5] || (o[5] = (u) => n.value.csv = !1)
296
+ onClick: S,
297
+ onMouseenter: o[4] || (o[4] = (s) => n.value.csv = !0),
298
+ onMouseout: o[5] || (o[5] = (s) => n.value.csv = !1)
283
299
  }, [
284
- l.$slots.optionCsv ? m(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(), g(r, {
300
+ l.$slots.optionCsv ? m(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(), f(a, {
285
301
  key: 1,
286
302
  name: "excel",
287
303
  stroke: e.color,
288
304
  style: { "pointer-events": "none" }
289
305
  }, null, 8, ["stroke"])),
290
- c.value && e.titles.csv && !l.$slots.optionCsv ? (t(), i("div", {
306
+ k.value && e.titles.csv && !l.$slots.optionCsv ? (t(), i("div", {
291
307
  key: 2,
292
308
  dir: "auto",
293
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.csv, "button-info-left-visible": e.position === "left" && n.value.csv }),
309
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.csv, "button-info-left-visible": e.position === "left" && n.value.csv }),
294
310
  style: d({ background: e.backgroundColor, color: e.color })
295
- }, $(e.titles.csv), 7)) : s("", !0)
296
- ], 32)) : s("", !0),
311
+ }, $(e.titles.csv), 7)) : u("", !0)
312
+ ], 32)) : u("", !0),
297
313
  e.hasImg ? (t(), i("button", {
298
314
  key: 3,
299
315
  tabindex: "0",
300
316
  class: "vue-ui-user-options-button",
301
- onClick: S,
302
- onMouseenter: o[6] || (o[6] = (u) => n.value.img = !0),
303
- onMouseout: o[7] || (o[7] = (u) => n.value.img = !1)
317
+ onClick: A,
318
+ onMouseenter: o[6] || (o[6] = (s) => n.value.img = !0),
319
+ onMouseout: o[7] || (o[7] = (s) => n.value.img = !1)
304
320
  }, [
305
- l.$slots.optionImg ? m(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
306
- e.isImaging ? (t(), g(r, {
321
+ l.$slots.optionImg ? m(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
322
+ e.isImaging ? (t(), f(a, {
307
323
  key: 0,
308
324
  name: "spin",
309
325
  isSpin: "",
310
326
  stroke: e.color,
311
327
  style: { "pointer-events": "none" }
312
- }, null, 8, ["stroke"])) : (t(), g(r, {
328
+ }, null, 8, ["stroke"])) : (t(), f(a, {
313
329
  key: 1,
314
330
  name: "image",
315
331
  stroke: e.color,
316
332
  style: { "pointer-events": "none" }
317
333
  }, null, 8, ["stroke"]))
318
334
  ], 64)),
319
- c.value && e.titles.img && !l.$slots.optionImg ? (t(), i("div", {
335
+ k.value && e.titles.img && !l.$slots.optionImg ? (t(), i("div", {
320
336
  key: 2,
321
337
  dir: "auto",
322
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.img, "button-info-left-visible": e.position === "left" && n.value.img }),
338
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.img, "button-info-left-visible": e.position === "left" && n.value.img }),
323
339
  style: d({ background: e.backgroundColor, color: e.color })
324
- }, $(e.titles.img), 7)) : s("", !0)
325
- ], 32)) : s("", !0),
340
+ }, $(e.titles.img), 7)) : u("", !0)
341
+ ], 32)) : u("", !0),
326
342
  e.hasTable ? (t(), i("button", {
327
343
  key: 4,
328
344
  tabindex: "0",
329
345
  class: "vue-ui-user-options-button",
330
346
  onClick: I,
331
- onMouseenter: o[8] || (o[8] = (u) => n.value.table = !0),
332
- onMouseout: o[9] || (o[9] = (u) => n.value.table = !1)
347
+ onMouseenter: o[8] || (o[8] = (s) => n.value.table = !0),
348
+ onMouseout: o[9] || (o[9] = (s) => n.value.table = !1)
333
349
  }, [
334
- l.$slots.optionTable ? m(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(), g(r, {
350
+ l.$slots.optionTable ? m(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(), f(a, {
335
351
  key: 1,
336
- name: T.value ? "tableClose" : "tableOpen",
352
+ name: B.value ? "tableClose" : "tableOpen",
337
353
  stroke: e.color,
338
354
  style: { "pointer-events": "none" }
339
355
  }, null, 8, ["name", "stroke"])),
340
- c.value && e.titles.table && !l.$slots.optionTable ? (t(), i("div", {
356
+ k.value && e.titles.table && !l.$slots.optionTable ? (t(), i("div", {
341
357
  key: 2,
342
358
  dir: "auto",
343
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.table, "button-info-left-visible": e.position === "left" && n.value.table }),
359
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.table, "button-info-left-visible": e.position === "left" && n.value.table }),
344
360
  style: d({ background: e.backgroundColor, color: e.color })
345
- }, $(e.titles.table), 7)) : s("", !0)
346
- ], 32)) : s("", !0),
361
+ }, $(e.titles.table), 7)) : u("", !0)
362
+ ], 32)) : u("", !0),
347
363
  e.hasLabel ? (t(), i("button", {
348
364
  key: 5,
349
365
  tabindex: "0",
350
366
  class: "vue-ui-user-options-button",
351
- onClick: K,
352
- onMouseenter: o[10] || (o[10] = (u) => n.value.labels = !0),
353
- onMouseout: o[11] || (o[11] = (u) => n.value.labels = !1)
367
+ onClick: W,
368
+ onMouseenter: o[10] || (o[10] = (s) => n.value.labels = !0),
369
+ onMouseout: o[11] || (o[11] = (s) => n.value.labels = !1)
354
370
  }, [
355
- l.$slots.optionLabels ? m(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(), g(r, {
371
+ l.$slots.optionLabels ? m(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(), f(a, {
356
372
  key: 1,
357
373
  name: E.value ? "labelClose" : "labelOpen",
358
374
  stroke: e.color,
359
375
  style: { "pointer-events": "none" }
360
376
  }, null, 8, ["name", "stroke"])),
361
- c.value && e.titles.labels && !l.$slots.optionLabels ? (t(), i("div", {
377
+ k.value && e.titles.labels && !l.$slots.optionLabels ? (t(), i("div", {
362
378
  key: 2,
363
379
  dir: "auto",
364
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.labels, "button-info-left-visible": e.position === "left" && n.value.labels }),
380
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.labels, "button-info-left-visible": e.position === "left" && n.value.labels }),
365
381
  style: d({ background: e.backgroundColor, color: e.color })
366
- }, $(e.titles.labels), 7)) : s("", !0)
367
- ], 32)) : s("", !0),
382
+ }, $(e.titles.labels), 7)) : u("", !0)
383
+ ], 32)) : u("", !0),
368
384
  e.hasSort ? (t(), i("button", {
369
385
  key: 6,
370
386
  tabindex: "0",
371
387
  class: "vue-ui-user-options-button",
372
- onClick: V,
373
- onMouseenter: o[12] || (o[12] = (u) => n.value.sort = !0),
374
- onMouseout: o[13] || (o[13] = (u) => n.value.sort = !1)
388
+ onClick: q,
389
+ onMouseenter: o[12] || (o[12] = (s) => n.value.sort = !0),
390
+ onMouseout: o[13] || (o[13] = (s) => n.value.sort = !1)
375
391
  }, [
376
- l.$slots.optionSort ? m(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(), g(r, {
392
+ l.$slots.optionSort ? m(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(), f(a, {
377
393
  key: 1,
378
394
  name: "sort",
379
395
  stroke: e.color,
380
396
  style: { "pointer-events": "none" }
381
397
  }, null, 8, ["stroke"])),
382
- c.value && e.titles.sort && !l.$slots.optionSort ? (t(), i("div", {
398
+ k.value && e.titles.sort && !l.$slots.optionSort ? (t(), i("div", {
383
399
  key: 2,
384
400
  dir: "auto",
385
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.sort, "button-info-left-visible": e.position === "left" && n.value.sort }),
401
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.sort, "button-info-left-visible": e.position === "left" && n.value.sort }),
386
402
  style: d({ background: e.backgroundColor, color: e.color })
387
- }, $(e.titles.sort), 7)) : s("", !0)
388
- ], 32)) : s("", !0),
403
+ }, $(e.titles.sort), 7)) : u("", !0)
404
+ ], 32)) : u("", !0),
389
405
  e.hasStack ? (t(), i("button", {
390
406
  key: 7,
391
407
  tabindex: "0",
392
408
  class: "vue-ui-user-options-button",
393
- onClick: j,
394
- onMouseenter: o[14] || (o[14] = (u) => n.value.stack = !0),
395
- onMouseout: o[15] || (o[15] = (u) => n.value.stack = !1)
409
+ onClick: x,
410
+ onMouseenter: o[14] || (o[14] = (s) => n.value.stack = !0),
411
+ onMouseout: o[15] || (o[15] = (s) => n.value.stack = !1)
396
412
  }, [
397
- l.$slots.optionStack ? m(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
398
- F.value ? (t(), g(r, {
413
+ l.$slots.optionStack ? m(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
414
+ F.value ? (t(), f(a, {
399
415
  key: 0,
400
416
  name: "unstack",
401
417
  stroke: e.color,
402
418
  style: { "pointer-events": "none" }
403
- }, null, 8, ["stroke"])) : (t(), g(r, {
419
+ }, null, 8, ["stroke"])) : (t(), f(a, {
404
420
  key: 1,
405
421
  name: "stack",
406
422
  stroke: e.color,
407
423
  style: { "pointer-events": "none" }
408
424
  }, null, 8, ["stroke"]))
409
425
  ], 64)),
410
- c.value && e.titles.stack && !l.$slots.optionStack ? (t(), i("div", {
426
+ k.value && e.titles.stack && !l.$slots.optionStack ? (t(), i("div", {
411
427
  key: 2,
412
428
  dir: "auto",
413
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.stack, "button-info-left-visible": e.position === "left" && n.value.stack }),
429
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.stack, "button-info-left-visible": e.position === "left" && n.value.stack }),
414
430
  style: d({ background: e.backgroundColor, color: e.color })
415
- }, $(e.titles.stack), 7)) : s("", !0)
416
- ], 32)) : s("", !0),
431
+ }, $(e.titles.stack), 7)) : u("", !0)
432
+ ], 32)) : u("", !0),
417
433
  e.hasFullscreen ? (t(), i("button", {
418
434
  key: 8,
419
435
  tabindex: "0",
420
436
  class: "vue-ui-user-options-button",
421
- onMouseenter: o[16] || (o[16] = (u) => n.value.fullscreen = !0),
422
- onMouseout: o[17] || (o[17] = (u) => n.value.fullscreen = !1),
423
- onClick: o[18] || (o[18] = (u) => A(k.value ? "out" : "in"))
437
+ onMouseenter: o[16] || (o[16] = (s) => n.value.fullscreen = !0),
438
+ onMouseout: o[17] || (o[17] = (s) => n.value.fullscreen = !1),
439
+ onClick: o[18] || (o[18] = (s) => D(y.value ? "out" : "in"))
424
440
  }, [
425
- l.$slots.optionFullscreen ? m(l.$slots, "optionFullscreen", z(D({ key: 0 }, { toggleFullscreen: A, isFullscreen: k.value })), void 0, !0) : (t(), i(B, { key: 1 }, [
426
- k.value ? (t(), g(r, {
441
+ l.$slots.optionFullscreen ? m(l.$slots, "optionFullscreen", L(w({ key: 0 }, { toggleFullscreen: D, isFullscreen: y.value })), void 0, !0) : (t(), i(h, { key: 1 }, [
442
+ y.value ? (t(), f(a, {
427
443
  key: 0,
428
444
  name: "exitFullscreen",
429
445
  stroke: e.color,
430
446
  style: { "pointer-events": "none" }
431
- }, null, 8, ["stroke"])) : s("", !0),
432
- k.value ? s("", !0) : (t(), g(r, {
447
+ }, null, 8, ["stroke"])) : u("", !0),
448
+ y.value ? u("", !0) : (t(), f(a, {
433
449
  key: 1,
434
450
  name: "fullscreen",
435
451
  stroke: e.color,
436
452
  style: { "pointer-events": "none" }
437
453
  }, null, 8, ["stroke"]))
438
454
  ], 64)),
439
- c.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(), i("div", {
455
+ k.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(), i("div", {
440
456
  key: 2,
441
457
  dir: "auto",
442
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.fullscreen, "button-info-left-visible": e.position === "left" && n.value.fullscreen }),
458
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.fullscreen, "button-info-left-visible": e.position === "left" && n.value.fullscreen }),
443
459
  style: d({ background: e.backgroundColor, color: e.color })
444
- }, $(e.titles.fullscreen), 7)) : s("", !0)
445
- ], 32)) : s("", !0),
460
+ }, $(e.titles.fullscreen), 7)) : u("", !0)
461
+ ], 32)) : u("", !0),
446
462
  e.hasAnimation ? (t(), i("button", {
447
463
  key: 9,
448
464
  tabindex: "0",
449
465
  class: "vue-ui-user-options-button",
450
- onMouseenter: o[19] || (o[19] = (u) => n.value.animation = !0),
451
- onMouseout: o[20] || (o[20] = (u) => n.value.animation = !1),
452
- onClick: w
466
+ onMouseenter: o[19] || (o[19] = (s) => n.value.animation = !0),
467
+ onMouseout: o[20] || (o[20] = (s) => n.value.animation = !1),
468
+ onClick: X
453
469
  }, [
454
- l.$slots.optionAnimation ? m(l.$slots, "optionAnimation", z(D({ key: 0 }, { toggleAnimation: w, isAnimated: M.value })), void 0, !0) : (t(), i(B, { key: 1 }, [
455
- M.value ? (t(), g(r, {
470
+ l.$slots.optionAnimation ? m(l.$slots, "optionAnimation", L(w({ key: 0 }, { toggleAnimation: X, isAnimated: M.value })), void 0, !0) : (t(), i(h, { key: 1 }, [
471
+ M.value ? (t(), f(a, {
456
472
  key: 0,
457
473
  name: "play",
458
474
  stroke: e.color,
459
475
  style: { "pointer-events": "none" }
460
- }, null, 8, ["stroke"])) : s("", !0),
461
- M.value ? s("", !0) : (t(), g(r, {
476
+ }, null, 8, ["stroke"])) : u("", !0),
477
+ M.value ? u("", !0) : (t(), f(a, {
462
478
  key: 1,
463
479
  name: "pause",
464
480
  stroke: e.color,
465
481
  style: { "pointer-events": "none" }
466
482
  }, null, 8, ["stroke"]))
467
483
  ], 64)),
468
- c.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(), i("div", {
484
+ k.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(), i("div", {
485
+ key: 2,
486
+ dir: "auto",
487
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.animation, "button-info-left-visible": e.position === "left" && n.value.animation }),
488
+ style: d({ background: e.backgroundColor, color: e.color })
489
+ }, $(e.titles.animation), 7)) : u("", !0)
490
+ ], 32)) : u("", !0),
491
+ e.hasAnnotator ? (t(), i("button", {
492
+ key: 10,
493
+ tabindex: "0",
494
+ class: "vue-ui-user-options-button",
495
+ onMouseenter: o[21] || (o[21] = (s) => n.value.annotator = !0),
496
+ onMouseout: o[22] || (o[22] = (s) => n.value.annotator = !1),
497
+ onClick: z
498
+ }, [
499
+ l.$slots.optionAnnotator ? m(l.$slots, "optionAnnotator", L(w({ key: 0 }, { toggleAnnotator: z, isAnnotator: T.value })), void 0, !0) : (t(), i(h, { key: 1 }, [
500
+ T.value ? (t(), f(a, {
501
+ key: 0,
502
+ name: "annotatorDisabled",
503
+ stroke: e.color,
504
+ style: { "pointer-events": "none" }
505
+ }, null, 8, ["stroke"])) : u("", !0),
506
+ T.value ? u("", !0) : (t(), f(a, {
507
+ key: 1,
508
+ name: "annotator",
509
+ stroke: e.color,
510
+ style: { "pointer-events": "none" }
511
+ }, null, 8, ["stroke"]))
512
+ ], 64)),
513
+ k.value && e.titles.annotator && !l.$slots.optionAnnotator ? (t(), i("div", {
469
514
  key: 2,
470
515
  dir: "auto",
471
- class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.animation, "button-info-left-visible": e.position === "left" && n.value.animation }),
516
+ class: c({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.annotator, "button-info-left-visible": e.position === "left" && n.value.annotator }),
472
517
  style: d({ background: e.backgroundColor, color: e.color })
473
- }, $(e.titles.animation), 7)) : s("", !0)
474
- ], 32)) : s("", !0)
475
- ], 12, ee)
518
+ }, $(e.titles.annotator), 7)) : u("", !0)
519
+ ], 32)) : u("", !0)
520
+ ], 12, ne)
476
521
  ], 4)), [
477
- [Y(p), x]
522
+ [_(te), j]
478
523
  ]);
479
524
  }
480
- }, ie = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-88cd630d"]]);
481
- function se({
525
+ }, ae = /* @__PURE__ */ ee(le, [["__scopeId", "data-v-7ea47518"]]);
526
+ function re({
482
527
  elementId: e,
483
- fileName: f,
484
- canPrint: a = !0
528
+ fileName: v,
529
+ canPrint: r = !0
485
530
  }) {
486
- const h = b(!1), C = b(!1), S = b(null);
487
- async function T() {
488
- !a || h.value || (h.value = !0, clearTimeout(S.value), S.value = setTimeout(async () => {
489
- if (a)
531
+ const C = b(!1), S = b(!1), A = b(null);
532
+ async function B() {
533
+ !r || C.value || (C.value = !0, clearTimeout(A.value), A.value = setTimeout(async () => {
534
+ if (r)
490
535
  try {
491
- const { default: v } = await import("./pdf-B7oVat64.js");
492
- await v({
536
+ const { default: g } = await import("./pdf-B7oVat64.js");
537
+ await g({
493
538
  domElement: document.getElementById(e),
494
- fileName: f
539
+ fileName: v
495
540
  });
496
- } catch (v) {
497
- console.error("Error generating PDF:", v);
541
+ } catch (g) {
542
+ console.error("Error generating PDF:", g);
498
543
  } finally {
499
- h.value = !1;
544
+ C.value = !1;
500
545
  }
501
546
  }, 100));
502
547
  }
503
548
  async function I() {
504
- !a || C.value || (C.value = !0, clearTimeout(S.value), S.value = setTimeout(async () => {
505
- if (a)
549
+ !r || S.value || (S.value = !0, clearTimeout(A.value), A.value = setTimeout(async () => {
550
+ if (r)
506
551
  try {
507
- const { default: v } = await import("./img-DGzWcJ4Y.js");
508
- await v({
552
+ const { default: g } = await import("./img-DGzWcJ4Y.js");
553
+ await g({
509
554
  domElement: document.getElementById(e),
510
- fileName: f,
555
+ fileName: v,
511
556
  format: "png"
512
557
  });
513
- } catch (v) {
514
- console.error("Error generating image:", v);
558
+ } catch (g) {
559
+ console.error("Error generating image:", g);
515
560
  } finally {
516
- C.value = !1;
561
+ S.value = !1;
517
562
  }
518
563
  }, 100));
519
564
  }
520
565
  return {
521
- generatePdf: T,
566
+ generatePdf: B,
522
567
  generateImage: I,
523
- isPrinting: h,
524
- isImaging: C
568
+ isPrinting: C,
569
+ isImaging: S
525
570
  };
526
571
  }
527
572
  export {
528
- ie as U,
529
- se as u
573
+ ae as U,
574
+ re as u
530
575
  };