vue-data-ui 2.3.84 → 2.3.86

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 (180) hide show
  1. package/dist/{Arrow-CQ1ubni5.js → Arrow-CJ7hmWgf.js} +1 -1
  2. package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CebZn6E4.cjs} +1 -1
  3. package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-B9istAKo.js} +1 -1
  4. package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-DnG75_Ol.cjs} +1 -1
  5. package/dist/{DataTable-CEtr89Og.cjs → DataTable-BA_BCbHC.cjs} +1 -1
  6. package/dist/{DataTable-C-iU_7h7.js → DataTable-tSDSY14n.js} +2 -2
  7. package/dist/{Legend-D2ZBCCXe.cjs → Legend-BOY57qwA.cjs} +1 -1
  8. package/dist/{Legend-pU_BwhaW.js → Legend-D3hovFqM.js} +1 -1
  9. package/dist/{Shape-BO_KyCq8.cjs → Shape-D6jrLLku.cjs} +1 -1
  10. package/dist/{Shape-CyM44biU.js → Shape-XiTBfhJM.js} +1 -1
  11. package/dist/{Slicer-CZobytqL.js → Slicer-BMvzmCKt.js} +2 -2
  12. package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-sZ-DArc4.cjs} +1 -1
  13. package/dist/{Title-B1_d29Eh.cjs → Title-Ahj4TYHa.cjs} +1 -1
  14. package/dist/{Title-Bk3h09h9.js → Title-DJ2FNrSN.js} +1 -1
  15. package/dist/{Tooltip-CdB80DsD.js → Tooltip-CQpXRqRC.js} +1 -1
  16. package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-XhevgJmm.cjs} +1 -1
  17. package/dist/index-CVgBMJU6.cjs +4 -0
  18. package/dist/{index-DI4DaxVG.js → index-D2epy0rJ.js} +4 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +3 -0
  21. package/dist/types/vue-data-ui.d.ts +3 -0
  22. package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B-NmF2LO.cjs} +1 -1
  23. package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-C_ZrJBd9.js} +1 -1
  24. package/dist/usePrinter-B6qtXaHk.js +527 -0
  25. package/dist/usePrinter-DN-6Hoh5.cjs +1 -0
  26. package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-DlNasA0G.cjs} +1 -1
  27. package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-vegY0BJm.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-CqRRjlUU.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-D-0SSMOt.js} +165 -164
  32. package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-BaV9R6cy.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-DzTB2FL0.js} +3 -3
  34. package/dist/vue-ui-age-pyramid-Bx4BuL3K.cjs +1 -0
  35. package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-_eo2DGen.js} +68 -67
  36. package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-8j2dJ0CU.js} +1 -1
  37. package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-CDZtr6tp.cjs} +1 -1
  38. package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CsF7OSvJ.js} +83 -82
  39. package/dist/vue-ui-candlestick-NypxP0Uu.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-CMHd2i-6.js} +7 -7
  41. package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-CV0eVeRd.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-B9miwyAN.cjs} +2 -2
  43. package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-CVftKftk.js} +11 -10
  44. package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-Bsrt107X.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-wujy8n_T.js} +2 -2
  46. package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-BCN0BhjL.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-Cvy0gI52.js} +2 -2
  48. package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-CnHgzHPI.cjs} +1 -1
  49. package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-J-WrKKHg.js} +2 -2
  50. package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-BOhWcHY_.js} +91 -90
  51. package/dist/vue-ui-donut-CZ1iKZq6.cjs +1 -0
  52. package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-CSSYuoti.js} +83 -82
  53. package/dist/vue-ui-donut-evolution-DuY2883r.cjs +1 -0
  54. package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-Cm0Rp_6W.js} +23 -22
  55. package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-i9QcsSVO.cjs} +2 -2
  56. package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-0m7a1NP7.js} +54 -53
  57. package/dist/vue-ui-flow-DXCBGdQT.cjs +1 -0
  58. package/dist/vue-ui-galaxy-D6GyjAnX.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-DCHEdZAl.js} +87 -86
  60. package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-HcM2JJpg.js} +78 -77
  61. package/dist/vue-ui-gauge-wbHQGQro.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-B-zMyi1m.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-Bfo_nUnZ.js} +2 -2
  64. package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-CxIHmv0t.js} +170 -169
  65. package/dist/vue-ui-heatmap-Du2vI5Ae.cjs +1 -0
  66. package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-BOe7-M9V.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-DibULfkp.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-Bv7l-Kx3.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-qFRhERid.js} +2 -2
  70. package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-4cIGPnWg.js} +282 -278
  71. package/dist/vue-ui-molecule-eOj3ZjvT.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-BTe21WKk.js} +144 -143
  73. package/dist/vue-ui-mood-radar-tUFqqekd.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-BVzabOga.js} +65 -64
  75. package/dist/vue-ui-nested-donuts-BigBLrFR.cjs +17 -0
  76. package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-C3TAKqro.js} +90 -89
  77. package/dist/vue-ui-onion-_ZC3vbIS.cjs +5 -0
  78. package/dist/vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-CKoCQXqj.js} +40 -39
  80. package/dist/vue-ui-quadrant-B67wGTic.cjs +1 -0
  81. package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-CKnyfJoi.js} +51 -50
  82. package/dist/vue-ui-quick-chart-DEjdx0AB.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-DZDYYnsI.js} +63 -62
  84. package/dist/vue-ui-radar-Cm_QkYGb.cjs +1 -0
  85. package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-v9yayJxu.js} +44 -43
  86. package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-Cc_N7qbe.js} +2 -2
  87. package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DV4cCZbB.cjs} +1 -1
  88. package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-Clqo4kkb.js} +74 -73
  89. package/dist/vue-ui-relation-circle-DcpIVbI6.cjs +1 -0
  90. package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-D27xNq9q.js} +78 -77
  91. package/dist/vue-ui-rings-DTn3t8Ku.cjs +2 -0
  92. package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-C07Mon-6.js} +53 -52
  93. package/dist/vue-ui-scatter-CXbrqLFm.cjs +1 -0
  94. package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-CsxqbqlJ.js} +1 -1
  95. package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-D8TAvQYN.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-BLiYyX95.js} +2 -2
  97. package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-Br1K3exH.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BUHatT3Z.js} +2 -2
  99. package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-CR_TkSYT.cjs} +1 -1
  100. package/dist/vue-ui-spark-trend-CnUz6s1m.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-GY2CfYRt.js} +29 -29
  102. package/dist/vue-ui-sparkbar-DaFwUA6Z.cjs +1 -0
  103. package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-tdgek1gv.js} +27 -27
  104. package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-1zu5KmTA.js} +22 -22
  105. package/dist/vue-ui-sparkgauge-D8P01Hem.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-b68QStxA.js} +52 -52
  107. package/dist/vue-ui-sparkhistogram-mg6yuwLH.cjs +1 -0
  108. package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-CAqav9Gn.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-CMmtp8MK.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-Cz8tOM3m.js} +6 -6
  111. package/dist/vue-ui-sparkstackbar-DOrquZvw.cjs +1 -0
  112. package/dist/vue-ui-stackbar-DUa5F_Zl.cjs +6 -0
  113. package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-DeQkP1dj.js} +64 -63
  114. package/dist/vue-ui-strip-plot-KNL9ToYG.cjs +1 -0
  115. package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-vqOCzdFV.js} +73 -72
  116. package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-BCdHNku5.cjs} +1 -1
  117. package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-DDdVqdHt.js} +1 -1
  118. package/dist/vue-ui-table-heatmap-BJDnZMZN.cjs +1 -0
  119. package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-DQg_jtYq.js} +27 -26
  120. package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Bg-VFq7X.js} +25 -24
  121. package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-D8DJxb5J.cjs} +1 -1
  122. package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-CajBbbYc.js} +60 -59
  123. package/dist/vue-ui-thermometer-eYM8DX7u.cjs +1 -0
  124. package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-D3VRVK-8.js} +4 -4
  125. package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-RclP4Tql.cjs} +1 -1
  126. package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-BT0k_3xi.js} +93 -92
  127. package/dist/vue-ui-tiremarks-Bc8bBBAw.cjs +1 -0
  128. package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-BjWDt2b2.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-DMhe3zCm.js} +14 -13
  130. package/dist/vue-ui-vertical-bar-DWzafNBH.cjs +4 -0
  131. package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-hH9R9V-K.js} +180 -179
  132. package/dist/vue-ui-waffle-BvYE9hAY.cjs +1 -0
  133. package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-DnNd6Iba.js} +85 -84
  134. package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Bx9_m-7W.js} +72 -71
  135. package/dist/vue-ui-wheel-CVBmY6h7.cjs +1 -0
  136. package/dist/vue-ui-word-cloud-3R-mYkIW.cjs +1 -0
  137. package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-DUk0Xt8q.js} +109 -108
  138. package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-FtaqoNK8.js} +401 -405
  139. package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-Bp4PTl_E.js} +54 -53
  140. package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Ctw_3PzN.cjs} +2 -2
  141. package/dist/vue-ui-xy-rX-aml0b.cjs +3 -0
  142. package/package.json +1 -1
  143. package/dist/index-Cx-40Fnz.cjs +0 -4
  144. package/dist/usePrinter-D9bNzUQP.js +0 -513
  145. package/dist/usePrinter-DbhL59iY.cjs +0 -1
  146. package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
  147. package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
  148. package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
  149. package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
  150. package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
  151. package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
  152. package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
  153. package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
  154. package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
  155. package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-C3CMWjgk.cjs +0 -17
  158. package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
  160. package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
  162. package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
  164. package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
  165. package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
  166. package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
  170. package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
  171. package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
  172. package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
  173. package/dist/vue-ui-table-heatmap-BnwiB4id.cjs +0 -1
  174. package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
  175. package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
  176. package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
  177. package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
  178. package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
  179. package/dist/vue-ui-word-cloud-D5JLdr9g.cjs +0 -1
  180. package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
@@ -1,513 +0,0 @@
1
- import { ref as k, onMounted as q, onBeforeUnmount as H, withDirectives as R, openBlock as t, createElementBlock as s, normalizeStyle as d, createElementVNode as w, withModifiers as x, withKeys as G, createVNode as J, normalizeClass as c, renderSlot as m, Fragment as M, createBlock as f, toDisplayString as $, createCommentVNode as u, normalizeProps as h, mergeProps as z, unref as Q } from "vue";
2
- import v from "./BaseIcon-B9ZZ6wkT.js";
3
- import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { p as Z } from "./pdf-97UbtKC2.js";
5
- import _ from "./html2canvas.esm-d2sM-0Wm.js";
6
- const ee = {
7
- beforeMount(e, r) {
8
- e.clickOutsideEvent = function(i) {
9
- e === i.target || e.contains(i.target) || r.value(i);
10
- }, document.addEventListener("click", e.clickOutsideEvent);
11
- },
12
- unmounted(e) {
13
- document.removeEventListener("click", e.clickOutsideEvent);
14
- }
15
- }, te = ["title", "onClick", "onKeypress"], oe = ["data-open"], ne = {
16
- __name: "UserOptions",
17
- props: {
18
- hasPdf: {
19
- type: Boolean,
20
- default: !0
21
- },
22
- hasXls: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- hasImg: {
27
- type: Boolean,
28
- default: !1
29
- },
30
- hasLabel: {
31
- type: Boolean,
32
- default: !1
33
- },
34
- isLabelActive: {
35
- type: Boolean,
36
- default: !1
37
- },
38
- hasTable: {
39
- type: Boolean,
40
- default: !1
41
- },
42
- hasSort: {
43
- type: Boolean,
44
- default: !1
45
- },
46
- hasStack: {
47
- type: Boolean,
48
- default: !1
49
- },
50
- hasTooltip: {
51
- type: Boolean,
52
- default: !1
53
- },
54
- color: {
55
- type: String
56
- },
57
- backgroundColor: {
58
- type: String
59
- },
60
- isPrinting: {
61
- type: Boolean,
62
- default: !1
63
- },
64
- isImaging: {
65
- type: Boolean,
66
- default: !1
67
- },
68
- title: {
69
- type: String
70
- },
71
- uid: {
72
- type: String
73
- },
74
- hasFullscreen: {
75
- type: Boolean,
76
- default: !1
77
- },
78
- chartElement: {
79
- type: HTMLElement,
80
- default: null
81
- },
82
- isFullscreen: {
83
- type: Boolean,
84
- default: !1
85
- },
86
- isStacked: {
87
- type: Boolean,
88
- default: !1
89
- },
90
- isTooltip: {
91
- type: Boolean,
92
- default: !1
93
- },
94
- hasAnimation: {
95
- type: Boolean,
96
- default: !1
97
- },
98
- isAnimation: {
99
- type: Boolean,
100
- default: !1
101
- },
102
- titles: {
103
- type: Object,
104
- default() {
105
- return {};
106
- }
107
- },
108
- showTooltips: {
109
- type: Boolean,
110
- default: !0
111
- },
112
- zIndex: {
113
- type: Number,
114
- default: 1
115
- },
116
- noOffset: {
117
- type: Boolean,
118
- default: !1
119
- }
120
- },
121
- emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation"],
122
- setup(e, { emit: r }) {
123
- const i = e;
124
- function T() {
125
- r("generatePdf");
126
- }
127
- function S() {
128
- r("generateCsv");
129
- }
130
- function C() {
131
- r("generateImage");
132
- }
133
- const b = k(!1);
134
- function D() {
135
- b.value = !b.value, r("toggleTable");
136
- }
137
- const B = k(!1), U = k(!0);
138
- function F() {
139
- g.value = window.innerWidth > 600, B.value = !B.value, B.value && (U.value = !1);
140
- }
141
- function K() {
142
- i.isPrinting || i.isImaging || (B.value = !1);
143
- }
144
- function N() {
145
- B.value && K();
146
- }
147
- const p = k(i.isLabelActive);
148
- function V() {
149
- p.value = !p.value, r("toggleLabels");
150
- }
151
- const I = k(i.isAnimation);
152
- function P() {
153
- I.value = !I.value, r("toggleAnimation");
154
- }
155
- function j() {
156
- r("toggleSort");
157
- }
158
- const E = k(i.isStacked);
159
- function W() {
160
- E.value = !E.value, r("toggleStack");
161
- }
162
- const L = k(i.isTooltip);
163
- function X() {
164
- L.value = !L.value, r("toggleTooltip");
165
- }
166
- const y = k(!1);
167
- function A(n) {
168
- i.chartElement && (n === "in" ? (y.value = !0, i.chartElement.requestFullscreen(), r("toggleFullscreen", !0)) : (y.value = !1, document && document.exitFullscreen(), r("toggleFullscreen", !1)));
169
- }
170
- function O(n) {
171
- document.fullscreenElement ? y.value = !0 : y.value = !1;
172
- }
173
- q(() => {
174
- document.addEventListener("fullscreenchange", O);
175
- }), H(() => {
176
- document.removeEventListener("fullscreenchange", O);
177
- });
178
- const g = k(window.innerWidth > 600), l = k({
179
- tooltip: !1,
180
- pdf: !1,
181
- csv: !1,
182
- img: !1,
183
- table: !1,
184
- labels: !1,
185
- sort: !1,
186
- stack: !1,
187
- fullscreen: !1,
188
- animation: !1
189
- });
190
- return (n, o) => R((t(), s("div", {
191
- "data-html2canvas-ignore": "",
192
- class: "vue-ui-user-options",
193
- style: d(`z-index: ${e.zIndex}; height: 34px; position: ${y.value ? "fixed" : "absolute"}; top: 0; right:${y.value ? "12px" : "0"}; padding: 4px; background:transparent;`)
194
- }, [
195
- w("div", {
196
- tabindex: "0",
197
- title: B.value ? e.titles.close || "" : e.titles.open || "",
198
- style: d(`width:32px; position: absolute; top: 0; right: ${e.noOffset ? 0 : 4}px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${e.backgroundColor}`),
199
- onClick: x(F, ["stop"]),
200
- onKeypress: G(F, ["enter"])
201
- }, [
202
- J(v, {
203
- name: B.value ? "close" : "menu",
204
- stroke: "#CCCCCC",
205
- "stroke-width": 2
206
- }, null, 8, ["name"])
207
- ], 44, te),
208
- w("div", {
209
- "data-open": B.value,
210
- class: c({ "vue-ui-user-options-drawer": !0 }),
211
- style: d(`background:${e.backgroundColor}; right:${e.noOffset ? 0 : 4}px`)
212
- }, [
213
- e.hasTooltip ? (t(), s("button", {
214
- key: 0,
215
- tabindex: "0",
216
- class: "vue-ui-user-options-button",
217
- onClick: X,
218
- onMouseenter: o[0] || (o[0] = (a) => l.value.tooltip = !0),
219
- onMouseout: o[1] || (o[1] = (a) => l.value.tooltip = !1)
220
- }, [
221
- n.$slots.optionTooltip ? m(n.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), s(M, { key: 1 }, [
222
- L.value ? (t(), f(v, {
223
- key: 0,
224
- name: "tooltip",
225
- stroke: e.color,
226
- style: { "pointer-events": "none" }
227
- }, null, 8, ["stroke"])) : (t(), f(v, {
228
- key: 1,
229
- name: "tooltipDisabled",
230
- stroke: e.color,
231
- style: { "pointer-events": "none" }
232
- }, null, 8, ["stroke"]))
233
- ], 64)),
234
- g.value && e.titles.tooltip && !n.$slots.optionTooltip ? (t(), s("div", {
235
- key: 2,
236
- class: c({ "button-info": !0, "button-info-visible": l.value.tooltip }),
237
- style: d({ background: e.backgroundColor, color: e.color })
238
- }, $(e.titles.tooltip), 7)) : u("", !0)
239
- ], 32)) : u("", !0),
240
- e.hasPdf ? (t(), s("button", {
241
- key: 1,
242
- tabindex: "0",
243
- class: "vue-ui-user-options-button",
244
- onClick: T,
245
- onMouseenter: o[2] || (o[2] = (a) => l.value.pdf = !0),
246
- onMouseout: o[3] || (o[3] = (a) => l.value.pdf = !1)
247
- }, [
248
- n.$slots.optionPdf ? m(n.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), s(M, { key: 1 }, [
249
- e.isPrinting ? (t(), f(v, {
250
- key: 0,
251
- name: "spin",
252
- isSpin: "",
253
- stroke: e.color,
254
- style: { "pointer-events": "none" }
255
- }, null, 8, ["stroke"])) : (t(), f(v, {
256
- key: 1,
257
- name: "pdf",
258
- stroke: e.color,
259
- style: { "pointer-events": "none" }
260
- }, null, 8, ["stroke"]))
261
- ], 64)),
262
- g.value && e.titles.pdf && !n.$slots.optionPdf ? (t(), s("div", {
263
- key: 2,
264
- class: c({ "button-info": !0, "button-info-visible": l.value.pdf }),
265
- style: d({ background: e.backgroundColor, color: e.color })
266
- }, $(e.titles.pdf), 7)) : u("", !0)
267
- ], 32)) : u("", !0),
268
- e.hasXls ? (t(), s("button", {
269
- key: 2,
270
- tabindex: "0",
271
- class: "vue-ui-user-options-button",
272
- onClick: S,
273
- onMouseenter: o[4] || (o[4] = (a) => l.value.csv = !0),
274
- onMouseout: o[5] || (o[5] = (a) => l.value.csv = !1)
275
- }, [
276
- n.$slots.optionCsv ? m(n.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(), f(v, {
277
- key: 1,
278
- name: "excel",
279
- stroke: e.color,
280
- style: { "pointer-events": "none" }
281
- }, null, 8, ["stroke"])),
282
- g.value && e.titles.csv && !n.$slots.optionCsv ? (t(), s("div", {
283
- key: 2,
284
- class: c({ "button-info": !0, "button-info-visible": l.value.csv }),
285
- style: d({ background: e.backgroundColor, color: e.color })
286
- }, $(e.titles.csv), 7)) : u("", !0)
287
- ], 32)) : u("", !0),
288
- e.hasImg ? (t(), s("button", {
289
- key: 3,
290
- tabindex: "0",
291
- class: "vue-ui-user-options-button",
292
- onClick: C,
293
- onMouseenter: o[6] || (o[6] = (a) => l.value.img = !0),
294
- onMouseout: o[7] || (o[7] = (a) => l.value.img = !1)
295
- }, [
296
- n.$slots.optionImg ? m(n.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), s(M, { key: 1 }, [
297
- e.isImaging ? (t(), f(v, {
298
- key: 0,
299
- name: "spin",
300
- isSpin: "",
301
- stroke: e.color,
302
- style: { "pointer-events": "none" }
303
- }, null, 8, ["stroke"])) : (t(), f(v, {
304
- key: 1,
305
- name: "image",
306
- stroke: e.color,
307
- style: { "pointer-events": "none" }
308
- }, null, 8, ["stroke"]))
309
- ], 64)),
310
- g.value && e.titles.img && !n.$slots.optionImg ? (t(), s("div", {
311
- key: 2,
312
- class: c({ "button-info": !0, "button-info-visible": l.value.img }),
313
- style: d({ background: e.backgroundColor, color: e.color })
314
- }, $(e.titles.img), 7)) : u("", !0)
315
- ], 32)) : u("", !0),
316
- e.hasTable ? (t(), s("button", {
317
- key: 4,
318
- tabindex: "0",
319
- class: "vue-ui-user-options-button",
320
- onClick: D,
321
- onMouseenter: o[8] || (o[8] = (a) => l.value.table = !0),
322
- onMouseout: o[9] || (o[9] = (a) => l.value.table = !1)
323
- }, [
324
- n.$slots.optionTable ? m(n.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(), f(v, {
325
- key: 1,
326
- name: b.value ? "tableClose" : "tableOpen",
327
- stroke: e.color,
328
- style: { "pointer-events": "none" }
329
- }, null, 8, ["name", "stroke"])),
330
- g.value && e.titles.table && !n.$slots.optionTable ? (t(), s("div", {
331
- key: 2,
332
- class: c({ "button-info": !0, "button-info-visible": l.value.table }),
333
- style: d({ background: e.backgroundColor, color: e.color })
334
- }, $(e.titles.table), 7)) : u("", !0)
335
- ], 32)) : u("", !0),
336
- e.hasLabel ? (t(), s("button", {
337
- key: 5,
338
- tabindex: "0",
339
- class: "vue-ui-user-options-button",
340
- onClick: V,
341
- onMouseenter: o[10] || (o[10] = (a) => l.value.labels = !0),
342
- onMouseout: o[11] || (o[11] = (a) => l.value.labels = !1)
343
- }, [
344
- n.$slots.optionLabels ? m(n.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(), f(v, {
345
- key: 1,
346
- name: p.value ? "labelClose" : "labelOpen",
347
- stroke: e.color,
348
- style: { "pointer-events": "none" }
349
- }, null, 8, ["name", "stroke"])),
350
- g.value && e.titles.labels && !n.$slots.optionLabels ? (t(), s("div", {
351
- key: 2,
352
- class: c({ "button-info": !0, "button-info-visible": l.value.labels }),
353
- style: d({ background: e.backgroundColor, color: e.color })
354
- }, $(e.titles.labels), 7)) : u("", !0)
355
- ], 32)) : u("", !0),
356
- e.hasSort ? (t(), s("button", {
357
- key: 6,
358
- tabindex: "0",
359
- class: "vue-ui-user-options-button",
360
- onClick: j,
361
- onMouseenter: o[12] || (o[12] = (a) => l.value.sort = !0),
362
- onMouseout: o[13] || (o[13] = (a) => l.value.sort = !1)
363
- }, [
364
- n.$slots.optionSort ? m(n.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(), f(v, {
365
- key: 1,
366
- name: "sort",
367
- stroke: e.color,
368
- style: { "pointer-events": "none" }
369
- }, null, 8, ["stroke"])),
370
- g.value && e.titles.sort && !n.$slots.optionSort ? (t(), s("div", {
371
- key: 2,
372
- class: c({ "button-info": !0, "button-info-visible": l.value.sort }),
373
- style: d({ background: e.backgroundColor, color: e.color })
374
- }, $(e.titles.sort), 7)) : u("", !0)
375
- ], 32)) : u("", !0),
376
- e.hasStack ? (t(), s("button", {
377
- key: 7,
378
- tabindex: "0",
379
- class: "vue-ui-user-options-button",
380
- onClick: W,
381
- onMouseenter: o[14] || (o[14] = (a) => l.value.stack = !0),
382
- onMouseout: o[15] || (o[15] = (a) => l.value.stack = !1)
383
- }, [
384
- n.$slots.optionStack ? m(n.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), s(M, { key: 1 }, [
385
- E.value ? (t(), f(v, {
386
- key: 0,
387
- name: "unstack",
388
- stroke: e.color,
389
- style: { "pointer-events": "none" }
390
- }, null, 8, ["stroke"])) : (t(), f(v, {
391
- key: 1,
392
- name: "stack",
393
- stroke: e.color,
394
- style: { "pointer-events": "none" }
395
- }, null, 8, ["stroke"]))
396
- ], 64)),
397
- g.value && e.titles.stack && !n.$slots.optionStack ? (t(), s("div", {
398
- key: 2,
399
- class: c({ "button-info": !0, "button-info-visible": l.value.stack }),
400
- style: d({ background: e.backgroundColor, color: e.color })
401
- }, $(e.titles.stack), 7)) : u("", !0)
402
- ], 32)) : u("", !0),
403
- e.hasFullscreen ? (t(), s("button", {
404
- key: 8,
405
- tabindex: "0",
406
- class: "vue-ui-user-options-button",
407
- onMouseenter: o[16] || (o[16] = (a) => l.value.fullscreen = !0),
408
- onMouseout: o[17] || (o[17] = (a) => l.value.fullscreen = !1),
409
- onClick: o[18] || (o[18] = (a) => A(y.value ? "out" : "in"))
410
- }, [
411
- n.$slots.optionFullscreen ? m(n.$slots, "optionFullscreen", h(z({ key: 0 }, { toggleFullscreen: A, isFullscreen: y.value })), void 0, !0) : (t(), s(M, { key: 1 }, [
412
- y.value ? (t(), f(v, {
413
- key: 0,
414
- name: "exitFullscreen",
415
- stroke: e.color,
416
- style: { "pointer-events": "none" }
417
- }, null, 8, ["stroke"])) : u("", !0),
418
- y.value ? u("", !0) : (t(), f(v, {
419
- key: 1,
420
- name: "fullscreen",
421
- stroke: e.color,
422
- style: { "pointer-events": "none" }
423
- }, null, 8, ["stroke"]))
424
- ], 64)),
425
- g.value && e.titles.fullscreen && !n.$slots.optionFullscreen ? (t(), s("div", {
426
- key: 2,
427
- class: c({ "button-info": !0, "button-info-visible": l.value.fullscreen }),
428
- style: d({ background: e.backgroundColor, color: e.color })
429
- }, $(e.titles.fullscreen), 7)) : u("", !0)
430
- ], 32)) : u("", !0),
431
- e.hasAnimation ? (t(), s("button", {
432
- key: 9,
433
- tabindex: "0",
434
- class: "vue-ui-user-options-button",
435
- onMouseenter: o[19] || (o[19] = (a) => l.value.animation = !0),
436
- onMouseout: o[20] || (o[20] = (a) => l.value.animation = !1),
437
- onClick: P
438
- }, [
439
- n.$slots.optionAnimation ? m(n.$slots, "optionAnimation", h(z({ key: 0 }, { toggleAnimation: P, isAnimated: I.value })), void 0, !0) : (t(), s(M, { key: 1 }, [
440
- I.value ? (t(), f(v, {
441
- key: 0,
442
- name: "play",
443
- stroke: e.color,
444
- style: { "pointer-events": "none" }
445
- }, null, 8, ["stroke"])) : u("", !0),
446
- I.value ? u("", !0) : (t(), f(v, {
447
- key: 1,
448
- name: "pause",
449
- stroke: e.color,
450
- style: { "pointer-events": "none" }
451
- }, null, 8, ["stroke"]))
452
- ], 64)),
453
- g.value && e.titles.fullscreen && !n.$slots.optionAnimation ? (t(), s("div", {
454
- key: 2,
455
- class: c({ "button-info": !0, "button-info-visible": l.value.animation }),
456
- style: d({ background: e.backgroundColor, color: e.color })
457
- }, $(e.titles.animation), 7)) : u("", !0)
458
- ], 32)) : u("", !0)
459
- ], 12, oe)
460
- ], 4)), [
461
- [Q(ee), N]
462
- ]);
463
- }
464
- }, ve = /* @__PURE__ */ Y(ne, [["__scopeId", "data-v-d4402778"]]);
465
- function le({ domElement: e, fileName: r, format: i = "png" }) {
466
- if (e)
467
- return new Promise((T, S) => {
468
- const C = document.createElement("a");
469
- _(e, { scale: 2 }).then((b) => {
470
- C.href = b.toDataURL(`image/${i}`), C.download = `${r}.${i}`, C.click(), C && C.remove(), T();
471
- }).catch((b) => {
472
- console.error("Error generating image:", b), S(b);
473
- });
474
- });
475
- }
476
- function fe({
477
- elementId: e,
478
- fileName: r
479
- }) {
480
- const i = k(!1), T = k(!1), S = k(null);
481
- function C() {
482
- i.value = !0, clearTimeout(S.value), S.value = setTimeout(() => {
483
- Z({
484
- domElement: document.getElementById(e),
485
- fileName: r
486
- }).finally(() => {
487
- i.value = !1;
488
- });
489
- }, 100);
490
- }
491
- function b() {
492
- T.value = !0, clearTimeout(S.value), S.value = setTimeout(() => {
493
- le({
494
- domElement: document.getElementById(e),
495
- fileName: r,
496
- format: "png"
497
- }).finally(() => {
498
- T.value = !1;
499
- }, 100);
500
- });
501
- }
502
- return {
503
- generatePdf: C,
504
- generateImage: b,
505
- isPrinting: i,
506
- isImaging: T
507
- };
508
- }
509
- export {
510
- ve as U,
511
- le as s,
512
- fe as u
513
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),i=require("./BaseIcon-CF1HQdM0.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./pdf-Cz3729tZ.cjs"),O=require("./html2canvas.esm-BA_v9SIU.cjs"),w={beforeMount(t,u){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||u.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},D=["title","onClick","onKeypress"],h=["data-open"],q={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const s=t;function v(){u("generatePdf")}function f(){u("generateCsv")}function d(){u("generateImage")}const c=e.ref(!1);function z(){c.value=!c.value,u("toggleTable")}const m=e.ref(!1),V=e.ref(!0);function C(){r.value=window.innerWidth>600,m.value=!m.value,m.value&&(V.value=!1)}function N(){s.isPrinting||s.isImaging||(m.value=!1)}function T(){m.value&&N()}const y=e.ref(s.isLabelActive);function I(){y.value=!y.value,u("toggleLabels")}const g=e.ref(s.isAnimation);function p(){g.value=!g.value,u("toggleAnimation")}function M(){u("toggleSort")}const b=e.ref(s.isStacked);function F(){b.value=!b.value,u("toggleStack")}const B=e.ref(s.isTooltip);function P(){B.value=!B.value,u("toggleTooltip")}const k=e.ref(!1);function $(l){s.chartElement&&(l==="in"?(k.value=!0,s.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(k.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function S(l){document.fullscreenElement?k.value=!0:k.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",S)});const r=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${k.value?"fixed":"absolute"}; top: 0; right:${k.value?"12px":"0"}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:m.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right: ${t.noOffset?0:4}px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${t.backgroundColor}`),onClick:e.withModifiers(C,["stop"]),onKeypress:e.withKeys(C,["enter"])},[e.createVNode(i.default,{name:m.value?"close":"menu",stroke:"#CCCCCC","stroke-width":2},null,8,["name"])],44,D),e.createElementVNode("div",{"data-open":m.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; right:${t.noOffset?0:4}px`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[0]||(o[0]=a=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=a=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[2]||(o[2]=a=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=a=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:f,onMouseenter:o[4]||(o[4]=a=>n.value.csv=!0),onMouseout:o[5]||(o[5]=a=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[6]||(o[6]=a=>n.value.img=!0),onMouseout:o[7]||(o[7]=a=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:z,onMouseenter:o[8]||(o[8]=a=>n.value.table=!0),onMouseout:o[9]||(o[9]=a=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:c.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[10]||(o[10]=a=>n.value.labels=!0),onMouseout:o[11]||(o[11]=a=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:M,onMouseenter:o[12]||(o[12]=a=>n.value.sort=!0),onMouseout:o[13]||(o[13]=a=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:F,onMouseenter:o[14]||(o[14]=a=>n.value.stack=!0),onMouseout:o[15]||(o[15]=a=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=a=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=a=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=a=>$(k.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:$,isFullscreen:k.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=a=>n.value.animation=!0),onMouseout:o[20]||(o[20]=a=>n.value.animation=!1),onClick:p},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:p,isAnimated:g.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[g.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,h)],4)),[[e.unref(w),T]])}},U=L._export_sfc(q,[["__scopeId","data-v-d4402778"]]);function E({domElement:t,fileName:u,format:s="png"}){if(t)return new Promise((v,f)=>{const d=document.createElement("a");O.default(t,{scale:2}).then(c=>{d.href=c.toDataURL(`image/${s}`),d.download=`${u}.${s}`,d.click(),d&&d.remove(),v()}).catch(c=>{console.error("Error generating image:",c),f(c)})})}function K({elementId:t,fileName:u}){const s=e.ref(!1),v=e.ref(!1),f=e.ref(null);function d(){s.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{A.pdf({domElement:document.getElementById(t),fileName:u}).finally(()=>{s.value=!1})},100)}function c(){v.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{E({domElement:document.getElementById(t),fileName:u,format:"png"}).finally(()=>{v.value=!1},100)})}return{generatePdf:d,generateImage:c,isPrinting:s,isImaging:v}}exports.UserOptions=U;exports.saveAsImage=E;exports.usePrinter=K;