vue-data-ui 2.3.4 → 2.3.6

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 (145) hide show
  1. package/README.md +19 -15
  2. package/dist/{Arrow-C5yj6zwY.cjs → Arrow-BSOdhAJO.cjs} +1 -1
  3. package/dist/{Arrow-B6gJebT9.js → Arrow-BjDVSrfA.js} +1 -1
  4. package/dist/{BaseIcon-JtWoVorZ.cjs → BaseIcon-BoKtpbrI.cjs} +1 -1
  5. package/dist/{BaseIcon-7_g11dRj.js → BaseIcon-vmmfWlyR.js} +1 -1
  6. package/dist/{DataTable-CwaOlAsy.js → DataTable-CaB7GIwQ.js} +2 -2
  7. package/dist/{DataTable-Rm9II-m2.cjs → DataTable-ssrNbONo.cjs} +1 -1
  8. package/dist/{Legend-CxvJTjEm.js → Legend-DHpoRTAE.js} +1 -1
  9. package/dist/{Legend-D59FIuMs.cjs → Legend-Dl5IYoxK.cjs} +1 -1
  10. package/dist/{Shape-CjLV0scA.js → Shape-CQT4S7N-.js} +1 -1
  11. package/dist/{Shape-CVItL3vh.cjs → Shape-CaF4pvOn.cjs} +1 -1
  12. package/dist/{Slicer-Bxg5niHl.js → Slicer-Bdb1BlrC.js} +1 -1
  13. package/dist/{Slicer-Cdss5Rus.cjs → Slicer-QC8nTm24.cjs} +1 -1
  14. package/dist/{Title-2iks1ziC.js → Title-BNPZwnkp.js} +1 -1
  15. package/dist/{Title-Bb-A5OSV.cjs → Title-Cj_xubjI.cjs} +1 -1
  16. package/dist/{Tooltip-C_UE6y-E.cjs → Tooltip-CdJ5hegk.cjs} +1 -1
  17. package/dist/{Tooltip-C3phqKuU.js → Tooltip-ZnJAz6dl.js} +1 -1
  18. package/dist/documentation/installation.md +14 -13
  19. package/dist/{index-uOtklCCx.js → index-BMCvLyab.js} +555 -454
  20. package/dist/index-BkomIE9L.cjs +4 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +105 -5
  23. package/dist/types/vue-data-ui.d.ts +105 -5
  24. package/dist/{useNestedProp-2kIU-7On.cjs → useNestedProp-BMxXyPbW.cjs} +1 -1
  25. package/dist/{useNestedProp-BgWkUab_.js → useNestedProp-CkP8xhG_.js} +1 -1
  26. package/dist/usePrinter-BuuBz5JR.js +513 -0
  27. package/dist/usePrinter-r6uHYEcR.cjs +1 -0
  28. package/dist/vue-data-ui-Bc5U1cOP.cjs +9 -0
  29. package/dist/vue-data-ui-DxeO0iaC.js +254 -0
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +55 -54
  32. package/dist/{vue-ui-3d-bar-BKMPFDi2.js → vue-ui-3d-bar-32wM0tiX.js} +7 -7
  33. package/dist/{vue-ui-3d-bar-CKa4UXq4.cjs → vue-ui-3d-bar-CgB0fLQT.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-HJPf7My0.js → vue-ui-accordion-CLlVxx3Q.js} +3 -3
  35. package/dist/{vue-ui-accordion-C_pwrAJl.cjs → vue-ui-accordion-SXsobrUt.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-DB_CL-gu.js → vue-ui-age-pyramid-D_CY99xF.js} +8 -8
  37. package/dist/{vue-ui-age-pyramid-CE1xnA-8.cjs → vue-ui-age-pyramid-DqiwcOIr.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-DQsAL-nZ.js → vue-ui-annotator-DvP-IxDm.js} +1 -1
  39. package/dist/{vue-ui-annotator-BAMZcPlH.cjs → vue-ui-annotator-mntqd3q_.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-DCl8fpNu.js → vue-ui-candlestick-C-5u3i-1.js} +9 -9
  41. package/dist/{vue-ui-candlestick-Duv6oG79.cjs → vue-ui-candlestick-C_TvUQvH.cjs} +1 -1
  42. package/dist/vue-ui-carousel-table-BCePqkuz.cjs +1 -0
  43. package/dist/vue-ui-carousel-table-CAqhsLVx.js +304 -0
  44. package/dist/{vue-ui-chestnut-mIZ4-ZEM.cjs → vue-ui-chestnut-DhWlw2MD.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-BYHA6MT4.js → vue-ui-chestnut-DylSfYMB.js} +6 -6
  46. package/dist/{vue-ui-cursor-De7dy4Mo.cjs → vue-ui-cursor-B04HJQVl.cjs} +1 -1
  47. package/dist/{vue-ui-cursor-C96IChA3.js → vue-ui-cursor-DTYEMgbU.js} +2 -2
  48. package/dist/{vue-ui-dashboard-B2Yz41yO.js → vue-ui-dashboard-Bd0-cmSZ.js} +2 -2
  49. package/dist/{vue-ui-dashboard-BMGwKr0K.cjs → vue-ui-dashboard-DFIYwP1s.cjs} +1 -1
  50. package/dist/{vue-ui-digits-BnxLp7zQ.js → vue-ui-digits-CW5qNMIk.js} +2 -2
  51. package/dist/{vue-ui-digits-DSWyL-5K.cjs → vue-ui-digits-Ced5mBJZ.cjs} +1 -1
  52. package/dist/{vue-ui-donut-1kei9ws5.cjs → vue-ui-donut-DIhhgvWp.cjs} +1 -1
  53. package/dist/{vue-ui-donut-B9iXisHK.js → vue-ui-donut-EeVmrVJs.js} +9 -9
  54. package/dist/{vue-ui-donut-evolution-B7Sun8sw.js → vue-ui-donut-evolution-BN08Y2hy.js} +9 -9
  55. package/dist/{vue-ui-donut-evolution-yv17DnGy.cjs → vue-ui-donut-evolution-Ct6KAzs-.cjs} +1 -1
  56. package/dist/{vue-ui-dumbbell-DIsDnD1d.js → vue-ui-dumbbell-BMlxS1Nq.js} +8 -8
  57. package/dist/{vue-ui-dumbbell-BJEf_JEq.cjs → vue-ui-dumbbell-pextarqH.cjs} +1 -1
  58. package/dist/{vue-ui-flow-DOxJa8di.cjs → vue-ui-flow-BXVsbmyb.cjs} +1 -1
  59. package/dist/{vue-ui-flow-BTivYoGd.js → vue-ui-flow-CHmkgfyb.js} +7 -7
  60. package/dist/{vue-ui-galaxy-CHGOwCwM.cjs → vue-ui-galaxy-D4xyd-J1.cjs} +1 -1
  61. package/dist/{vue-ui-galaxy-BEmywfFB.js → vue-ui-galaxy-kiVOZOBz.js} +9 -9
  62. package/dist/{vue-ui-gauge-o4rDOqF3.js → vue-ui-gauge-BcO-z97J.js} +4 -4
  63. package/dist/{vue-ui-gauge-QAfMl-8t.cjs → vue-ui-gauge-DPFBsbFj.cjs} +1 -1
  64. package/dist/{vue-ui-heatmap-BS4EzedX.cjs → vue-ui-heatmap-DBOKYaJz.cjs} +1 -1
  65. package/dist/{vue-ui-heatmap-DwqQqEsk.js → vue-ui-heatmap-DD-Bzddj.js} +8 -8
  66. package/dist/{vue-ui-kpi-F4qkJ_U-.cjs → vue-ui-kpi-BEgf5yDv.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-h8elYTcA.js → vue-ui-kpi-BS0o7zb9.js} +2 -2
  68. package/dist/{vue-ui-mini-loader-C_8B2Pm6.cjs → vue-ui-mini-loader-Bm5EJxtG.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-Cgoi9rhH.js → vue-ui-mini-loader-DJEvG6ju.js} +2 -2
  70. package/dist/{vue-ui-molecule-Bmv76SWz.js → vue-ui-molecule-DdwnFEBJ.js} +9 -9
  71. package/dist/{vue-ui-molecule-C5CY_YYc.cjs → vue-ui-molecule-DzUqcaxd.cjs} +1 -1
  72. package/dist/{vue-ui-mood-radar-DeMouUIe.js → vue-ui-mood-radar-B9Gczs_Z.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-BN0dzlfp.cjs → vue-ui-mood-radar-DbB7m4Ku.cjs} +1 -1
  74. package/dist/{vue-ui-nested-donuts-ZyFoV-Zn.cjs → vue-ui-nested-donuts-BSINf8hd.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-wOUkSVyZ.js → vue-ui-nested-donuts-CVQ1CaXo.js} +9 -9
  76. package/dist/{vue-ui-onion-VmTUo7TR.cjs → vue-ui-onion-D3-6Tv4u.cjs} +1 -1
  77. package/dist/{vue-ui-onion-DCOKG2wG.js → vue-ui-onion-Ut75t7hB.js} +9 -9
  78. package/dist/{vue-ui-parallel-coordinate-plot-BGtO2P4a.js → vue-ui-parallel-coordinate-plot-Bjo09ZTX.js} +10 -10
  79. package/dist/{vue-ui-parallel-coordinate-plot-BziXRF8E.cjs → vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs} +1 -1
  80. package/dist/{vue-ui-quadrant-DawUUrur.cjs → vue-ui-quadrant-CzCvejGn.cjs} +1 -1
  81. package/dist/{vue-ui-quadrant--JOTjPZh.js → vue-ui-quadrant-Du9PKvlO.js} +10 -10
  82. package/dist/{vue-ui-quick-chart-jFlFtiNV.cjs → vue-ui-quick-chart-BsxsPbjz.cjs} +1 -1
  83. package/dist/{vue-ui-quick-chart-LXKfaJgS.js → vue-ui-quick-chart-u0cPmD3q.js} +6 -6
  84. package/dist/{vue-ui-radar-CWNIqvcA.js → vue-ui-radar-CBrpuE5r.js} +10 -10
  85. package/dist/{vue-ui-radar-VGH-lhaT.cjs → vue-ui-radar-DIpCrj1h.cjs} +1 -1
  86. package/dist/{vue-ui-rating-BNrIoJHN.js → vue-ui-rating-CaeGGlCw.js} +2 -2
  87. package/dist/{vue-ui-rating-Dtu6pwGx.cjs → vue-ui-rating-D8fJC8Yt.cjs} +1 -1
  88. package/dist/{vue-ui-relation-circle-B3NKudOy.js → vue-ui-relation-circle-5DNf880s.js} +5 -5
  89. package/dist/{vue-ui-relation-circle-Dwpx9o18.cjs → vue-ui-relation-circle-Ky3nPk6S.cjs} +1 -1
  90. package/dist/{vue-ui-rings-D9_OG--0.cjs → vue-ui-rings-CffZ4T2S.cjs} +1 -1
  91. package/dist/{vue-ui-rings-CsUngX_F.js → vue-ui-rings-IE3IdNRF.js} +9 -9
  92. package/dist/{vue-ui-scatter-DgxTz4Jx.js → vue-ui-scatter-C4GCZm0V.js} +10 -10
  93. package/dist/{vue-ui-scatter-DUsuh7bd.cjs → vue-ui-scatter-TsX5dW9l.cjs} +1 -1
  94. package/dist/{vue-ui-screenshot-51H_VrYY.js → vue-ui-screenshot-Bl3oooKI.js} +1 -1
  95. package/dist/{vue-ui-screenshot-C2Dz7CAe.cjs → vue-ui-screenshot-Bzpg6yof.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-BM9rwmxY.js → vue-ui-skeleton-BisWX1sO.js} +2 -2
  97. package/dist/{vue-ui-skeleton-sjfOtCZr.cjs → vue-ui-skeleton-JmGp11-u.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-DNnBtHht.cjs → vue-ui-smiley-BhSrt9f-.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-H5rSN-1B.js → vue-ui-smiley-Sth2pqG1.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-R4JJvfry.cjs → vue-ui-spark-trend-C8NSz4l8.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-CLXZDYlk.js → vue-ui-spark-trend-DAqO0TW2.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-C0k4ah-7.js → vue-ui-sparkbar-B0zX7NU7.js} +3 -3
  103. package/dist/{vue-ui-sparkbar-CEUDIw0A.cjs → vue-ui-sparkbar-hL1Q6ObK.cjs} +1 -1
  104. package/dist/{vue-ui-sparkgauge-BHj00A07.js → vue-ui-sparkgauge-CWR8zJnU.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-CaEw6nmI.cjs → vue-ui-sparkgauge-tbVqaLCK.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-B6GuavEu.cjs → vue-ui-sparkhistogram-Dv-lml4g.cjs} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-DbMLYKqE.js → vue-ui-sparkhistogram-DxqCtDpw.js} +4 -4
  108. package/dist/{vue-ui-sparkline-CJydanLS.cjs → vue-ui-sparkline-B6pvaBY_.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-CYova9x3.js → vue-ui-sparkline-BpL1jn7F.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-N5rVBM2h.js → vue-ui-sparkstackbar-BzbuBNIV.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-Df__yM5b.cjs → vue-ui-sparkstackbar-CQ2TEi4p.cjs} +1 -1
  112. package/dist/{vue-ui-strip-plot-b5lhB35d.cjs → vue-ui-strip-plot-DCC6F4VM.cjs} +1 -1
  113. package/dist/{vue-ui-strip-plot-DJJ1vEWz.js → vue-ui-strip-plot-DCcbD6UE.js} +9 -9
  114. package/dist/{vue-ui-table-xSvwJIa7.js → vue-ui-table-CFqIWfxl.js} +1 -1
  115. package/dist/{vue-ui-table-NHhOVDbs.cjs → vue-ui-table-CseaFWgX.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-DlL2nCqz.cjs → vue-ui-table-heatmap-Bwut-V1D.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-Cro2etCY.js → vue-ui-table-heatmap-Bz8KYDxr.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-Bw2Gc_ur.cjs → vue-ui-table-sparkline-CJBU3y8-.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-DppMitqF.js → vue-ui-table-sparkline-z29ND2lq.js} +5 -5
  120. package/dist/{vue-ui-thermometer-M2kdp1x5.js → vue-ui-thermometer-BNAITzJa.js} +5 -5
  121. package/dist/{vue-ui-thermometer-Q_3PX2V3.cjs → vue-ui-thermometer-DM2IKhqN.cjs} +1 -1
  122. package/dist/{vue-ui-timer-BtSDeIRp.cjs → vue-ui-timer-DLfXuW8T.cjs} +1 -1
  123. package/dist/{vue-ui-timer-CAaQ-QD6.js → vue-ui-timer-DV6lQVHU.js} +4 -4
  124. package/dist/{vue-ui-tiremarks-CbGOSEvD.cjs → vue-ui-tiremarks-B1bd1jPf.cjs} +1 -1
  125. package/dist/{vue-ui-tiremarks-JFv4JLP0.js → vue-ui-tiremarks-WyQPg7yo.js} +5 -5
  126. package/dist/{vue-ui-treemap-BqDX-bPf.cjs → vue-ui-treemap-BZGmoDHb.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-DCnv-xYr.js → vue-ui-treemap-DKmBhzV-.js} +9 -9
  128. package/dist/{vue-ui-vertical-bar-CJB_KXyr.cjs → vue-ui-vertical-bar-Bi-0rRN3.cjs} +1 -1
  129. package/dist/{vue-ui-vertical-bar-CEbApJZl.js → vue-ui-vertical-bar-C-ySfrhJ.js} +9 -9
  130. package/dist/{vue-ui-waffle-CTS6C7gu.js → vue-ui-waffle-CGRWu-da.js} +9 -9
  131. package/dist/{vue-ui-waffle-IMEbGe-b.cjs → vue-ui-waffle-VLYkR-YZ.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-CuOmEWMQ.cjs → vue-ui-wheel-D2q5vy5V.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-_zyCdFiI.js → vue-ui-wheel-Pj9OPk9f.js} +5 -5
  134. package/dist/{vue-ui-word-cloud-RDlXBEAN.js → vue-ui-word-cloud-8Vr-jo1p.js} +6 -6
  135. package/dist/{vue-ui-word-cloud-Y7Yk7uUJ.cjs → vue-ui-word-cloud-Ba4BjatU.cjs} +1 -1
  136. package/dist/{vue-ui-xy-BZJQBKnU.cjs → vue-ui-xy-C4QW5Lfl.cjs} +1 -1
  137. package/dist/{vue-ui-xy-canvas-D_dnbyFS.cjs → vue-ui-xy-canvas-Be-Da_0x.cjs} +1 -1
  138. package/dist/{vue-ui-xy-canvas-Dbcw8-9Q.js → vue-ui-xy-canvas-DnLWrf0e.js} +10 -10
  139. package/dist/{vue-ui-xy-DsvN9EIQ.js → vue-ui-xy-qToggEfh.js} +12 -12
  140. package/package.json +1 -1
  141. package/dist/index-p5gfZSvB.cjs +0 -4
  142. package/dist/usePrinter-B6xQCyL-.js +0 -464
  143. package/dist/usePrinter-fZlsJid8.cjs +0 -1
  144. package/dist/vue-data-ui-Be0rgmbA.cjs +0 -9
  145. package/dist/vue-data-ui-Ccy6rBZN.js +0 -246
@@ -0,0 +1,513 @@
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-vmmfWlyR.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
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),i=require("./BaseIcon-BoKtpbrI.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;
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),G=require("./BaseIcon-BoKtpbrI.cjs"),Q={key:0,style:{width:"100%",display:"flex",gap:"6px","align-items":"center",color:"#FF0000"}},$={style:{width:"36px"}},K={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap"],setup(_,{expose:B,emit:E}){const i=_,{component:H,dataset:O,config:N}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-CgB0fLQT.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-DqiwcOIr.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-mntqd3q_.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-C_TvUQvH.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-DhWlw2MD.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-DFIYwP1s.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-Ced5mBJZ.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-DIhhgvWp.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-Ct6KAzs-.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-D4xyd-J1.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-DPFBsbFj.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-DBOKYaJz.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-BEgf5yDv.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-Bm5EJxtG.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-DzUqcaxd.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-DbB7m4Ku.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-BSINf8hd.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-D3-6Tv4u.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-CzCvejGn.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-DIpCrj1h.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-D8fJC8Yt.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-Ky3nPk6S.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-CffZ4T2S.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-TsX5dW9l.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-Bzpg6yof.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-JmGp11-u.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-BhSrt9f-.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-hL1Q6ObK.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-tbVqaLCK.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-Dv-lml4g.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-B6pvaBY_.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-CQ2TEi4p.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-CseaFWgX.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-CJBU3y8-.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-DM2IKhqN.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-B1bd1jPf.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BZGmoDHb.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-Bi-0rRN3.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-VLYkR-YZ.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-D2q5vy5V.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-C4QW5Lfl.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-Bwut-V1D.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-SXsobrUt.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-BsxsPbjz.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-B04HJQVl.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-C8NSz4l8.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-DCC6F4VM.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-pextarqH.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-Ba4BjatU.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-Be-Da_0x.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-BXVsbmyb.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-DLfXuW8T.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-BCePqkuz.cjs")))},M={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"]},u=e.computed(()=>!l[i.component]),F=e.computed(()=>l[i.component]||null),o=e.ref(null),W=e.computed(()=>{const t=M[i.component]||[],n={};return t.includes("config")&&(n.config=N.value),t.includes("dataset")&&(n.dataset=O.value),n}),c=e.ref(()=>null),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),S=e.ref(()=>null),k=e.ref(()=>null),T=e.ref(()=>null),b=e.ref(()=>null),D=e.ref(()=>null),x=e.ref(()=>null),L=e.ref(()=>null),I=e.ref(()=>null);e.onMounted(()=>{if(u.value)throw new Error(`
2
+
3
+ Vue Data UI exception:
4
+ The provided component "${i.component}" does not exist. Check the spelling.
5
+
6
+ Available components:
7
+
8
+ ${Object.keys(l).map(t=>`. ${t}
9
+ `).join("")}`)}),e.watch(o,async t=>{t&&(t.generatePdf&&(c.value=t.generatePdf),t.generateImage&&(d.value=t.generateImage),t.generateCsv&&(m.value=t.generateCsv),t.getItemsPositions&&(g.value=t.getItemsPositions),t.toggleReadonly&&(p.value=t.toggleReadonly),t.shoot&&(f.value=t.shoot),t.close&&(V.value=t.close),t.restoreOrder&&(v.value=t.restoreOrder),t.recalculateHeight&&(U.value=t.recalculateHeight),t.toggleLock&&(h.value=t.toggleLock),t.toggleTable&&(y.value=t.toggleTable),t.toggleLabels&&(C.value=t.toggleLabels),t.toggleSort&&(A.value=t.toggleSort),t.toggleStack&&(P.value=t.toggleStack),t.toggleTooltip&&(q.value=t.toggleTooltip),t.start&&(S.value=t.start),t.pause&&(k.value=t.pause),t.reset&&(T.value=t.reset),t.restart&&(b.value=t.restart),t.lap&&(D.value=t.lap),t.toggleAnimation&&(x.value=t.toggleAnimation),t.pauseAnimation&&(L.value=t.pauseAnimation),t.resumeAnimation&&(I.value=t.resumeAnimation))});const X=()=>{const t=["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","pause","reset","restart","lap","toggleAnimation","pauseAnimation","resumeAnimation"],n={};return t.forEach(s=>{n[s]=(...a)=>E(s,...a)}),n},r=e.shallowReactive([]);return e.watch([r,o],()=>{if(o.value)for(;r.length;){const[t,...n]=r.shift();typeof o.value[t]=="function"&&o.value[t](...n)}}),B({getData:(...t)=>o.value&&typeof o.value.getData=="function"?o.value.getData():r.push(["getData",...t]),generatePdf:c,generateCsv:m,generateImage:d,getItemsPositions:g,toggleReadonly:p,shoot:f,close:V,restoreOrder:v,recalculateHeight:U,toggleLock:h,toggleTable:y,toggleLabels:C,toggleSort:A,toggleStack:P,toggleTooltip:q,start:S,pause:k,reset:T,restart:b,lap:D,pauseAnimation:L,resumeAnimation:I,toggleAnimation:x}),(t,n)=>u.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createElementVNode("div",$,[e.createVNode(G.default,{name:"moodFlat",stroke:"#FF0000"})]),e.createTextVNode(' The provided component "'+e.toDisplayString(e.unref(H))+'" does not exist ',1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(F.value),e.mergeProps({key:1,ref_key:"currentComponentRef",ref:o},W.value,e.toHandlers(X())),e.createSlots({_:2},[e.renderList(t.$slots,(s,a)=>({name:a,fn:e.withCtx(j=>[e.renderSlot(t.$slots,a,e.normalizeProps(e.guardReactiveProps(j)),()=>[e.createTextVNode(e.toDisplayString(s),1)])])}))]),1040))}};exports.default=K;