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
@@ -1,464 +0,0 @@
1
- import { ref as c, onMounted as j, onBeforeUnmount as N, withDirectives as W, openBlock as o, createElementBlock as s, normalizeStyle as d, createElementVNode as w, withModifiers as X, withKeys as q, createVNode as H, normalizeClass as y, renderSlot as $, Fragment as B, createBlock as f, toDisplayString as C, createCommentVNode as u, normalizeProps as R, mergeProps as G, unref as J } from "vue";
2
- import v from "./BaseIcon-7_g11dRj.js";
3
- import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { p as Y } from "./pdf-97UbtKC2.js";
5
- import Z from "./html2canvas.esm-d2sM-0Wm.js";
6
- const x = {
7
- beforeMount(e, r) {
8
- e.clickOutsideEvent = function(a) {
9
- e === a.target || e.contains(a.target) || r.value(a);
10
- }, document.addEventListener("click", e.clickOutsideEvent);
11
- },
12
- unmounted(e) {
13
- document.removeEventListener("click", e.clickOutsideEvent);
14
- }
15
- }, _ = ["title", "onClick", "onKeypress"], ee = ["data-open"], te = {
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
- titles: {
95
- type: Object,
96
- default() {
97
- return {};
98
- }
99
- },
100
- showTooltips: {
101
- type: Boolean,
102
- default: !0
103
- }
104
- },
105
- emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip"],
106
- setup(e, { emit: r }) {
107
- const a = e;
108
- function T() {
109
- r("generatePdf");
110
- }
111
- function S() {
112
- r("generateCsv");
113
- }
114
- function m() {
115
- r("generateImage");
116
- }
117
- const k = c(!1);
118
- function O() {
119
- k.value = !k.value, r("toggleTable");
120
- }
121
- const p = c(!1), h = c(!0);
122
- function L() {
123
- b.value = window.innerWidth > 600, p.value = !p.value, p.value && (h.value = !1);
124
- }
125
- function D() {
126
- a.isPrinting || a.isImaging || (p.value = !1);
127
- }
128
- function U() {
129
- p.value && D();
130
- }
131
- const M = c(a.isLabelActive);
132
- function z() {
133
- M.value = !M.value, r("toggleLabels");
134
- }
135
- function A() {
136
- r("toggleSort");
137
- }
138
- const I = c(a.isStacked);
139
- function K() {
140
- I.value = !I.value, r("toggleStack");
141
- }
142
- const E = c(a.isTooltip);
143
- function V() {
144
- E.value = !E.value, r("toggleTooltip");
145
- }
146
- const g = c(!1);
147
- function F(l) {
148
- a.chartElement && (l === "in" ? (g.value = !0, a.chartElement.requestFullscreen(), r("toggleFullscreen", !0)) : (g.value = !1, document && document.exitFullscreen(), r("toggleFullscreen", !1)));
149
- }
150
- function P(l) {
151
- document.fullscreenElement ? g.value = !0 : g.value = !1;
152
- }
153
- j(() => {
154
- document.addEventListener("fullscreenchange", P);
155
- }), N(() => {
156
- document.removeEventListener("fullscreenchange", P);
157
- });
158
- const b = c(window.innerWidth > 600), n = c({
159
- tooltip: !1,
160
- pdf: !1,
161
- csv: !1,
162
- img: !1,
163
- table: !1,
164
- labels: !1,
165
- sort: !1,
166
- stack: !1,
167
- fullscreen: !1
168
- });
169
- return (l, t) => W((o(), s("div", {
170
- "data-html2canvas-ignore": "",
171
- class: "vue-ui-user-options",
172
- style: d(`height: 34px; position: ${g.value ? "fixed" : "absolute"}; top: 0; right:${g.value ? "12px" : "0"}; padding: 4px; background:transparent; z-index: 1`)
173
- }, [
174
- w("div", {
175
- tabindex: "0",
176
- title: p.value ? e.titles.close || "" : e.titles.open || "",
177
- style: d(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${e.backgroundColor}`),
178
- onClick: X(L, ["stop"]),
179
- onKeypress: q(L, ["enter"])
180
- }, [
181
- H(v, {
182
- name: p.value ? "close" : "menu",
183
- stroke: "#CCCCCC",
184
- "stroke-width": 2
185
- }, null, 8, ["name"])
186
- ], 44, _),
187
- w("div", {
188
- "data-open": p.value,
189
- class: y({ "vue-ui-user-options-drawer": !0 }),
190
- style: d(`background:${e.backgroundColor};`)
191
- }, [
192
- e.hasTooltip ? (o(), s("button", {
193
- key: 0,
194
- tabindex: "0",
195
- class: "vue-ui-user-options-button",
196
- onClick: V,
197
- onMouseenter: t[0] || (t[0] = (i) => n.value.tooltip = !0),
198
- onMouseout: t[1] || (t[1] = (i) => n.value.tooltip = !1)
199
- }, [
200
- l.$slots.optionTooltip ? $(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (o(), s(B, { key: 1 }, [
201
- E.value ? (o(), f(v, {
202
- key: 0,
203
- name: "tooltip",
204
- stroke: e.color,
205
- style: { "pointer-events": "none" }
206
- }, null, 8, ["stroke"])) : (o(), f(v, {
207
- key: 1,
208
- name: "tooltipDisabled",
209
- stroke: e.color,
210
- style: { "pointer-events": "none" }
211
- }, null, 8, ["stroke"]))
212
- ], 64)),
213
- b.value && e.titles.tooltip && !l.$slots.optionTooltip ? (o(), s("div", {
214
- key: 2,
215
- class: y({ "button-info": !0, "button-info-visible": n.value.tooltip }),
216
- style: d({ background: e.backgroundColor, color: e.color })
217
- }, C(e.titles.tooltip), 7)) : u("", !0)
218
- ], 32)) : u("", !0),
219
- e.hasPdf ? (o(), s("button", {
220
- key: 1,
221
- tabindex: "0",
222
- class: "vue-ui-user-options-button",
223
- onClick: T,
224
- onMouseenter: t[2] || (t[2] = (i) => n.value.pdf = !0),
225
- onMouseout: t[3] || (t[3] = (i) => n.value.pdf = !1)
226
- }, [
227
- l.$slots.optionPdf ? $(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (o(), s(B, { key: 1 }, [
228
- e.isPrinting ? (o(), f(v, {
229
- key: 0,
230
- name: "spin",
231
- isSpin: "",
232
- stroke: e.color,
233
- style: { "pointer-events": "none" }
234
- }, null, 8, ["stroke"])) : (o(), f(v, {
235
- key: 1,
236
- name: "pdf",
237
- stroke: e.color,
238
- style: { "pointer-events": "none" }
239
- }, null, 8, ["stroke"]))
240
- ], 64)),
241
- b.value && e.titles.pdf && !l.$slots.optionPdf ? (o(), s("div", {
242
- key: 2,
243
- class: y({ "button-info": !0, "button-info-visible": n.value.pdf }),
244
- style: d({ background: e.backgroundColor, color: e.color })
245
- }, C(e.titles.pdf), 7)) : u("", !0)
246
- ], 32)) : u("", !0),
247
- e.hasXls ? (o(), s("button", {
248
- key: 2,
249
- tabindex: "0",
250
- class: "vue-ui-user-options-button",
251
- onClick: S,
252
- onMouseenter: t[4] || (t[4] = (i) => n.value.csv = !0),
253
- onMouseout: t[5] || (t[5] = (i) => n.value.csv = !1)
254
- }, [
255
- l.$slots.optionCsv ? $(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (o(), f(v, {
256
- key: 1,
257
- name: "excel",
258
- stroke: e.color,
259
- style: { "pointer-events": "none" }
260
- }, null, 8, ["stroke"])),
261
- b.value && e.titles.csv && !l.$slots.optionCsv ? (o(), s("div", {
262
- key: 2,
263
- class: y({ "button-info": !0, "button-info-visible": n.value.csv }),
264
- style: d({ background: e.backgroundColor, color: e.color })
265
- }, C(e.titles.csv), 7)) : u("", !0)
266
- ], 32)) : u("", !0),
267
- e.hasImg ? (o(), s("button", {
268
- key: 3,
269
- tabindex: "0",
270
- class: "vue-ui-user-options-button",
271
- onClick: m,
272
- onMouseenter: t[6] || (t[6] = (i) => n.value.img = !0),
273
- onMouseout: t[7] || (t[7] = (i) => n.value.img = !1)
274
- }, [
275
- l.$slots.optionImg ? $(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (o(), s(B, { key: 1 }, [
276
- e.isImaging ? (o(), f(v, {
277
- key: 0,
278
- name: "spin",
279
- isSpin: "",
280
- stroke: e.color,
281
- style: { "pointer-events": "none" }
282
- }, null, 8, ["stroke"])) : (o(), f(v, {
283
- key: 1,
284
- name: "image",
285
- stroke: e.color,
286
- style: { "pointer-events": "none" }
287
- }, null, 8, ["stroke"]))
288
- ], 64)),
289
- b.value && e.titles.img && !l.$slots.optionImg ? (o(), s("div", {
290
- key: 2,
291
- class: y({ "button-info": !0, "button-info-visible": n.value.img }),
292
- style: d({ background: e.backgroundColor, color: e.color })
293
- }, C(e.titles.img), 7)) : u("", !0)
294
- ], 32)) : u("", !0),
295
- e.hasTable ? (o(), s("button", {
296
- key: 4,
297
- tabindex: "0",
298
- class: "vue-ui-user-options-button",
299
- onClick: O,
300
- onMouseenter: t[8] || (t[8] = (i) => n.value.table = !0),
301
- onMouseout: t[9] || (t[9] = (i) => n.value.table = !1)
302
- }, [
303
- l.$slots.optionTable ? $(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (o(), f(v, {
304
- key: 1,
305
- name: k.value ? "tableClose" : "tableOpen",
306
- stroke: e.color,
307
- style: { "pointer-events": "none" }
308
- }, null, 8, ["name", "stroke"])),
309
- b.value && e.titles.table && !l.$slots.optionTable ? (o(), s("div", {
310
- key: 2,
311
- class: y({ "button-info": !0, "button-info-visible": n.value.table }),
312
- style: d({ background: e.backgroundColor, color: e.color })
313
- }, C(e.titles.table), 7)) : u("", !0)
314
- ], 32)) : u("", !0),
315
- e.hasLabel ? (o(), s("button", {
316
- key: 5,
317
- tabindex: "0",
318
- class: "vue-ui-user-options-button",
319
- onClick: z,
320
- onMouseenter: t[10] || (t[10] = (i) => n.value.labels = !0),
321
- onMouseout: t[11] || (t[11] = (i) => n.value.labels = !1)
322
- }, [
323
- l.$slots.optionLabels ? $(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (o(), f(v, {
324
- key: 1,
325
- name: M.value ? "labelClose" : "labelOpen",
326
- stroke: e.color,
327
- style: { "pointer-events": "none" }
328
- }, null, 8, ["name", "stroke"])),
329
- b.value && e.titles.labels && !l.$slots.optionLabels ? (o(), s("div", {
330
- key: 2,
331
- class: y({ "button-info": !0, "button-info-visible": n.value.labels }),
332
- style: d({ background: e.backgroundColor, color: e.color })
333
- }, C(e.titles.labels), 7)) : u("", !0)
334
- ], 32)) : u("", !0),
335
- e.hasSort ? (o(), s("button", {
336
- key: 6,
337
- tabindex: "0",
338
- class: "vue-ui-user-options-button",
339
- onClick: A,
340
- onMouseenter: t[12] || (t[12] = (i) => n.value.sort = !0),
341
- onMouseout: t[13] || (t[13] = (i) => n.value.sort = !1)
342
- }, [
343
- l.$slots.optionSort ? $(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (o(), f(v, {
344
- key: 1,
345
- name: "sort",
346
- stroke: e.color,
347
- style: { "pointer-events": "none" }
348
- }, null, 8, ["stroke"])),
349
- b.value && e.titles.sort && !l.$slots.optionSort ? (o(), s("div", {
350
- key: 2,
351
- class: y({ "button-info": !0, "button-info-visible": n.value.sort }),
352
- style: d({ background: e.backgroundColor, color: e.color })
353
- }, C(e.titles.sort), 7)) : u("", !0)
354
- ], 32)) : u("", !0),
355
- e.hasStack ? (o(), s("button", {
356
- key: 7,
357
- tabindex: "0",
358
- class: "vue-ui-user-options-button",
359
- onClick: K,
360
- onMouseenter: t[14] || (t[14] = (i) => n.value.stack = !0),
361
- onMouseout: t[15] || (t[15] = (i) => n.value.stack = !1)
362
- }, [
363
- l.$slots.optionStack ? $(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (o(), s(B, { key: 1 }, [
364
- I.value ? (o(), f(v, {
365
- key: 0,
366
- name: "unstack",
367
- stroke: e.color,
368
- style: { "pointer-events": "none" }
369
- }, null, 8, ["stroke"])) : (o(), f(v, {
370
- key: 1,
371
- name: "stack",
372
- stroke: e.color,
373
- style: { "pointer-events": "none" }
374
- }, null, 8, ["stroke"]))
375
- ], 64)),
376
- b.value && e.titles.stack && !l.$slots.optionStack ? (o(), s("div", {
377
- key: 2,
378
- class: y({ "button-info": !0, "button-info-visible": n.value.stack }),
379
- style: d({ background: e.backgroundColor, color: e.color })
380
- }, C(e.titles.stack), 7)) : u("", !0)
381
- ], 32)) : u("", !0),
382
- e.hasFullscreen ? (o(), s("button", {
383
- key: 8,
384
- tabindex: "0",
385
- class: "vue-ui-user-options-button",
386
- onMouseenter: t[16] || (t[16] = (i) => n.value.fullscreen = !0),
387
- onMouseout: t[17] || (t[17] = (i) => n.value.fullscreen = !1),
388
- onClick: t[18] || (t[18] = (i) => F(g.value ? "out" : "in"))
389
- }, [
390
- l.$slots.optionFullscreen ? $(l.$slots, "optionFullscreen", R(G({ key: 0 }, { toggleFullscreen: F, isFullscreen: g.value })), void 0, !0) : (o(), s(B, { key: 1 }, [
391
- g.value ? (o(), f(v, {
392
- key: 0,
393
- name: "exitFullscreen",
394
- stroke: e.color,
395
- style: { "pointer-events": "none" }
396
- }, null, 8, ["stroke"])) : u("", !0),
397
- g.value ? u("", !0) : (o(), f(v, {
398
- key: 1,
399
- name: "fullscreen",
400
- stroke: e.color,
401
- style: { "pointer-events": "none" }
402
- }, null, 8, ["stroke"]))
403
- ], 64)),
404
- b.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (o(), s("div", {
405
- key: 2,
406
- class: y({ "button-info": !0, "button-info-visible": n.value.fullscreen }),
407
- style: d({ background: e.backgroundColor, color: e.color })
408
- }, C(e.titles.fullscreen), 7)) : u("", !0)
409
- ], 32)) : u("", !0)
410
- ], 12, ee)
411
- ], 4)), [
412
- [J(x), U]
413
- ]);
414
- }
415
- }, ie = /* @__PURE__ */ Q(te, [["__scopeId", "data-v-693c5f9e"]]);
416
- function oe({ domElement: e, fileName: r, format: a = "png" }) {
417
- if (e)
418
- return new Promise((T, S) => {
419
- const m = document.createElement("a");
420
- Z(e, { scale: 2 }).then((k) => {
421
- m.href = k.toDataURL(`image/${a}`), m.download = `${r}.${a}`, m.click(), m && m.remove(), T();
422
- }).catch((k) => {
423
- console.error("Error generating image:", k), S(k);
424
- });
425
- });
426
- }
427
- function re({
428
- elementId: e,
429
- fileName: r
430
- }) {
431
- const a = c(!1), T = c(!1), S = c(null);
432
- function m() {
433
- a.value = !0, clearTimeout(S.value), S.value = setTimeout(() => {
434
- Y({
435
- domElement: document.getElementById(e),
436
- fileName: r
437
- }).finally(() => {
438
- a.value = !1;
439
- });
440
- }, 100);
441
- }
442
- function k() {
443
- T.value = !0, clearTimeout(S.value), S.value = setTimeout(() => {
444
- oe({
445
- domElement: document.getElementById(e),
446
- fileName: r,
447
- format: "png"
448
- }).finally(() => {
449
- T.value = !1;
450
- }, 100);
451
- });
452
- }
453
- return {
454
- generatePdf: m,
455
- generateImage: k,
456
- isPrinting: a,
457
- isImaging: T
458
- };
459
- }
460
- export {
461
- ie as U,
462
- oe as s,
463
- re as u
464
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),r=require("./BaseIcon-JtWoVorZ.cjs"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=require("./pdf-Cz3729tZ.cjs"),P=require("./html2canvas.esm-BA_v9SIU.cjs"),w={beforeMount(t,u){t.clickOutsideEvent=function(a){t===a.target||t.contains(a.target)||u.value(a)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},D=["title","onClick","onKeypress"],O=["data-open"],h={__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},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip"],setup(t,{emit:u}){const a=t;function m(){u("generatePdf")}function f(){u("generateCsv")}function d(){u("generateImage")}const i=e.ref(!1);function $(){i.value=!i.value,u("toggleTable")}const v=e.ref(!1),E=e.ref(!0);function B(){k.value=window.innerWidth>600,v.value=!v.value,v.value&&(E.value=!1)}function T(){a.isPrinting||a.isImaging||(v.value=!1)}function z(){v.value&&T()}const g=e.ref(a.isLabelActive);function V(){g.value=!g.value,u("toggleLabels")}function I(){u("toggleSort")}const y=e.ref(a.isStacked);function M(){y.value=!y.value,u("toggleStack")}const b=e.ref(a.isTooltip);function N(){b.value=!b.value,u("toggleTooltip")}const c=e.ref(!1);function p(l){a.chartElement&&(l==="in"?(c.value=!0,a.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(c.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function C(l){document.fullscreenElement?c.value=!0:c.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",C)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",C)});const k=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});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`height: 34px; position: ${c.value?"fixed":"absolute"}; top: 0; right:${c.value?"12px":"0"}; padding: 4px; background:transparent; z-index: 1`)},[e.createElementVNode("div",{tabindex:"0",title:v.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${t.backgroundColor}`),onClick:e.withModifiers(B,["stop"]),onKeypress:e.withKeys(B,["enter"])},[e.createVNode(r.default,{name:v.value?"close":"menu",stroke:"#CCCCCC","stroke-width":2},null,8,["name"])],44,D),e.createElementVNode("div",{"data-open":v.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor};`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:N,onMouseenter:o[0]||(o[0]=s=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=s=>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(r.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(r.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),k.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:m,onMouseenter:o[2]||(o[2]=s=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=s=>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(r.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(r.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),k.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]=s=>n.value.csv=!0),onMouseout:o[5]||(o[5]=s=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(r.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),k.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]=s=>n.value.img=!0),onMouseout:o[7]||(o[7]=s=>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(r.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(r.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),k.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:$,onMouseenter:o[8]||(o[8]=s=>n.value.table=!0),onMouseout:o[9]||(o[9]=s=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(r.default,{key:1,name:i.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),k.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:V,onMouseenter:o[10]||(o[10]=s=>n.value.labels=!0),onMouseout:o[11]||(o[11]=s=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(r.default,{key:1,name:g.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),k.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:I,onMouseenter:o[12]||(o[12]=s=>n.value.sort=!0),onMouseout:o[13]||(o[13]=s=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(r.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),k.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:M,onMouseenter:o[14]||(o[14]=s=>n.value.stack=!0),onMouseout:o[15]||(o[15]=s=>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},[y.value?(e.openBlock(),e.createBlock(r.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(r.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),k.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]=s=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=s=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=s=>p(c.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:p,isFullscreen:c.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value?(e.openBlock(),e.createBlock(r.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),k.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)],12,O)],4)),[[e.unref(w),z]])}},q=F._export_sfc(h,[["__scopeId","data-v-693c5f9e"]]);function S({domElement:t,fileName:u,format:a="png"}){if(t)return new Promise((m,f)=>{const d=document.createElement("a");P.default(t,{scale:2}).then(i=>{d.href=i.toDataURL(`image/${a}`),d.download=`${u}.${a}`,d.click(),d&&d.remove(),m()}).catch(i=>{console.error("Error generating image:",i),f(i)})})}function U({elementId:t,fileName:u}){const a=e.ref(!1),m=e.ref(!1),f=e.ref(null);function d(){a.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{L.pdf({domElement:document.getElementById(t),fileName:u}).finally(()=>{a.value=!1})},100)}function i(){m.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{S({domElement:document.getElementById(t),fileName:u,format:"png"}).finally(()=>{m.value=!1},100)})}return{generatePdf:d,generateImage:i,isPrinting:a,isImaging:m}}exports.UserOptions=q;exports.saveAsImage=S;exports.usePrinter=U;
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),W=require("./BaseIcon-JtWoVorZ.cjs"),X={key:0,style:{width:"100%",display:"flex",gap:"6px","align-items":"center",color:"#FF0000"}},j={style:{width:"36px"}},G={__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(x,{expose:L,emit:I}){const i=x,{component:_,dataset:B,config:E}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-CKa4UXq4.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-CE1xnA-8.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-BAMZcPlH.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-Duv6oG79.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-mIZ4-ZEM.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-BMGwKr0K.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-DSWyL-5K.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-1kei9ws5.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-yv17DnGy.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-CHGOwCwM.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-QAfMl-8t.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-BS4EzedX.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-F4qkJ_U-.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-C_8B2Pm6.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-C5CY_YYc.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-BN0dzlfp.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-ZyFoV-Zn.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-VmTUo7TR.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-DawUUrur.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-VGH-lhaT.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-Dtu6pwGx.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-Dwpx9o18.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-D9_OG--0.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-DUsuh7bd.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-C2Dz7CAe.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-sjfOtCZr.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-DNnBtHht.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-CEUDIw0A.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-CaEw6nmI.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-B6GuavEu.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-CJydanLS.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-Df__yM5b.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-NHhOVDbs.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-Bw2Gc_ur.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-Q_3PX2V3.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-CbGOSEvD.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BqDX-bPf.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-CJB_KXyr.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-IMEbGe-b.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-CuOmEWMQ.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-BZJQBKnU.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-DlL2nCqz.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-C_pwrAJl.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-jFlFtiNV.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-De7dy4Mo.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-R4JJvfry.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-b5lhB35d.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-BJEf_JEq.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-Y7Yk7uUJ.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-D_dnbyFS.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-DOxJa8di.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BziXRF8E.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-BtSDeIRp.cjs")))},H={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"]},u=e.computed(()=>!l[i.component]),O=e.computed(()=>l[i.component]||null),o=e.ref(null),N=e.computed(()=>{const t=H[i.component]||[],n={};return t.includes("config")&&(n.config=E.value),t.includes("dataset")&&(n.dataset=B.value),n}),c=e.ref(()=>null),d=e.ref(()=>null),m=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),P=e.ref(()=>null),A=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);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&&(m.value=t.generateImage),t.generateCsv&&(d.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&&(P.value=t.toggleSort),t.toggleStack&&(A.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))});const M=()=>{const t=["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","pause","reset","restart","lap"],n={};return t.forEach(s=>{n[s]=(...a)=>I(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)}}),L({getData:(...t)=>o.value&&typeof o.value.getData=="function"?o.value.getData():r.push(["getData",...t]),generatePdf:c,generateCsv:d,generateImage:m,getItemsPositions:g,toggleReadonly:p,shoot:f,close:V,restoreOrder:v,recalculateHeight:U,toggleLock:h,toggleTable:y,toggleLabels:C,toggleSort:P,toggleStack:A,toggleTooltip:q,start:S,pause:k,reset:T,restart:b,lap:D}),(t,n)=>u.value?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",j,[e.createVNode(W.default,{name:"moodFlat",stroke:"#FF0000"})]),e.createTextVNode(' The provided component "'+e.toDisplayString(e.unref(_))+'" does not exist ',1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(O.value),e.mergeProps({key:1,ref_key:"currentComponentRef",ref:o},N.value,e.toHandlers(M())),e.createSlots({_:2},[e.renderList(t.$slots,(s,a)=>({name:a,fn:e.withCtx(F=>[e.renderSlot(t.$slots,a,e.normalizeProps(e.guardReactiveProps(F)),()=>[e.createTextVNode(e.toDisplayString(s),1)])])}))]),1040))}};exports.default=G;