vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +15 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-kQyQXUUg.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-DaR0sIWZ.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-Bj3sq9o7.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-BBqbcutV.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-DRqzYrP9.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-ClpqQxYT.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-B-T7XvxF.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-DEWxbZ-l.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-o6jJH5bw.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-LPnbBoFu.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-apr_T9tg.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-BuHsMAfp.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-OVNxxnq5.js} +144 -133
  17. package/dist/{dom-to-png-BjSUS-jY.js → dom-to-png-C0Ct8ClX.js} +1 -1
  18. package/dist/{img-DWfzRJdv.js → img-P0SFFw37.js} +1 -1
  19. package/dist/{index-CbcpITE_.js → index-CH_mJIWj.js} +185 -127
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Jun3ogRn.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +42 -0
  23. package/dist/types/vue-data-ui.d.ts +42 -0
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-rMR-JeOJ.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-DJ7WfWUs.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-D7AaTKU6.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-CYWiZjrP.js} +9 -8
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BJgJgef_.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-DBclpybR.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-UzMmwtvF.js} +9 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DMfv2hSb.js} +6 -6
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CFYHJrxj.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-CyX30Ccv.js} +23 -22
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BEDnWByj.js} +10 -9
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-79itAe84.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-DFTE1OH5.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-B0CPNusH.js} +229 -228
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-BhUsfhY5.js} +8 -7
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-CEFkua9H.js} +918 -811
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
  90. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { ref as c, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as Y, createElementBlock as i, openBlock as t, normalizeStyle as f, createElementVNode as X, withKeys as Z, withModifiers as p, renderSlot as d, normalizeProps as A, guardReactiveProps as _, createVNode as ee, normalizeClass as b, createCommentVNode as s, Fragment as h, createBlock as r, toDisplayString as y, mergeProps as F, unref as te } from "vue";
1
+ import { ref as m, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as Y, createElementBlock as s, openBlock as t, normalizeStyle as v, createElementVNode as X, withKeys as Z, withModifiers as p, renderSlot as k, normalizeProps as A, guardReactiveProps as _, createVNode as ee, normalizeClass as d, createCommentVNode as a, Fragment as h, createBlock as f, toDisplayString as y, mergeProps as F, unref as te } from "vue";
2
2
  import { v as oe } from "./vClickOutside-C6WiFswA.js";
3
- import a from "./BaseIcon-j0c6lJUs.js";
3
+ import r from "./BaseIcon-DaR0sIWZ.js";
4
4
  import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const le = ["title"], ie = ["data-open"], se = {
6
6
  __name: "UserOptions",
@@ -122,73 +122,84 @@ const le = ["title"], ie = ["data-open"], se = {
122
122
  isAnnotation: {
123
123
  type: Boolean,
124
124
  default: !1
125
+ },
126
+ callbacks: {
127
+ type: Object,
128
+ default() {
129
+ return {};
130
+ }
125
131
  }
126
132
  },
127
133
  emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation", "toggleAnnotator"],
128
134
  setup(e, { emit: z }) {
129
- const m = e, v = z;
135
+ const i = e, b = z;
130
136
  function D() {
131
- v("generatePdf");
137
+ i.callbacks.pdf ? i.callbacks.pdf() : b("generatePdf");
132
138
  }
133
139
  function N() {
134
- v("generateCsv");
140
+ i.callbacks.csv ? i.callbacks.csv() : b("generateCsv");
135
141
  }
136
- function U() {
137
- v("generateImage");
142
+ function j() {
143
+ i.callbacks.img ? i.callbacks.img() : b("generateImage");
138
144
  }
139
- const B = c(!1);
140
- function V() {
141
- B.value = !B.value, v("toggleTable");
145
+ const B = m(!1);
146
+ function U() {
147
+ i.callbacks.table ? i.callbacks.table() : (B.value = !B.value, b("toggleTable"));
142
148
  }
143
- const $ = c(!1), j = c(!0);
149
+ const $ = m(!1), V = m(!0);
144
150
  function O() {
145
- g.value = window.innerWidth > 600, $.value = !$.value, $.value && (j.value = !1);
151
+ g.value = window.innerWidth > 600, $.value = !$.value, $.value && (V.value = !1);
146
152
  }
147
153
  function K() {
148
- m.isPrinting || m.isImaging || ($.value = !1);
154
+ i.isPrinting || i.isImaging || ($.value = !1);
149
155
  }
150
156
  function W() {
151
157
  $.value && K();
152
158
  }
153
- const M = c(m.isLabelActive);
159
+ const M = m(i.isLabelActive);
154
160
  function q() {
155
- M.value = !M.value, v("toggleLabels");
161
+ i.callbacks.labels ? i.callbacks.labels() : (M.value = !M.value, b("toggleLabels"));
156
162
  }
157
- const C = c(m.isAnimation);
163
+ const C = m(i.isAnimation);
158
164
  function L() {
159
- C.value = !C.value, v("toggleAnimation");
165
+ i.callbacks.animation ? i.callbacks.animation() : (C.value = !C.value, b("toggleAnimation"));
160
166
  }
161
167
  const S = G({
162
- get: () => m.isAnnotation,
168
+ get: () => i.isAnnotation,
163
169
  set: (l) => l
164
170
  });
165
171
  function P() {
166
- S.value = !S.value, v("toggleAnnotator");
172
+ i.callbacks.annotator ? i.callbacks.annotator() : (S.value = !S.value, b("toggleAnnotator"));
167
173
  }
168
174
  function H() {
169
- v("toggleSort");
175
+ i.callbacks.sort ? i.callbacks.sort() : b("toggleSort");
170
176
  }
171
- const T = c(m.isStacked);
177
+ const T = m(i.isStacked);
172
178
  function R() {
173
- T.value = !T.value, v("toggleStack");
179
+ i.callbacks.stack ? i.callbacks.stack() : (T.value = !T.value, b("toggleStack"));
174
180
  }
175
- const I = c(m.isTooltip);
181
+ const I = m(i.isTooltip);
176
182
  function x() {
177
- I.value = !I.value, v("toggleTooltip");
183
+ i.callbacks.tooltip ? i.callbacks.tooltip() : (I.value = !I.value, b("toggleTooltip"));
178
184
  }
179
- const k = c(!1);
185
+ const c = m(!1);
180
186
  function w(l) {
181
- m.chartElement && (l === "in" ? (k.value = !0, m.chartElement.requestFullscreen(), v("toggleFullscreen", !0)) : (k.value = !1, document && document.exitFullscreen(), v("toggleFullscreen", !1)));
187
+ if (i.callbacks.fullscreen)
188
+ i.callbacks.fullscreen();
189
+ else {
190
+ if (!i.chartElement) return;
191
+ l === "in" ? (c.value = !0, i.chartElement.requestFullscreen(), b("toggleFullscreen", !0)) : (c.value = !1, document && document.exitFullscreen(), b("toggleFullscreen", !1));
192
+ }
182
193
  }
183
194
  function E(l) {
184
- document.fullscreenElement ? k.value = !0 : k.value = !1;
195
+ document.fullscreenElement ? c.value = !0 : c.value = !1;
185
196
  }
186
197
  J(() => {
187
198
  document.addEventListener("fullscreenchange", E);
188
199
  }), Q(() => {
189
200
  document.removeEventListener("fullscreenchange", E);
190
201
  });
191
- const g = c(window.innerWidth > 600), n = c({
202
+ const g = m(window.innerWidth > 600), n = m({
192
203
  tooltip: !1,
193
204
  pdf: !1,
194
205
  csv: !1,
@@ -201,20 +212,20 @@ const le = ["title"], ie = ["data-open"], se = {
201
212
  animation: !1,
202
213
  annotator: !1
203
214
  });
204
- return (l, o) => Y((t(), i("div", {
215
+ return (l, o) => Y((t(), s("div", {
205
216
  "data-dom-to-png-ignore": "",
206
217
  class: "vue-ui-user-options",
207
- style: f(`z-index: ${e.zIndex}; height: 34px; position: ${k.value ? "fixed" : "absolute"}; top: 0; ${e.position === "right" ? `right:${k.value ? "12px" : "0"}` : `left:${k.value ? "12px" : "0"}`}; padding: 4px; background:transparent;`)
218
+ style: v(`z-index: ${e.zIndex}; height: 34px; position: ${c.value ? "fixed" : "absolute"}; top: 0; ${e.position === "right" ? `right:${c.value ? "12px" : "0"}` : `left:${c.value ? "12px" : "0"}`}; padding: 4px; background:transparent;`)
208
219
  }, [
209
220
  X("div", {
210
221
  tabindex: "0",
211
222
  title: $.value ? e.titles.close || "" : e.titles.open || "",
212
- style: f(`width:32px; position: absolute; top: 0;${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),
223
+ style: v(`width:32px; position: absolute; top: 0;${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),
213
224
  onClick: p(O, ["stop"]),
214
225
  onKeypress: Z(O, ["enter"])
215
226
  }, [
216
- d(l.$slots, "menuIcon", A(_({ isOpen: $.value, color: e.color })), () => [
217
- ee(a, {
227
+ k(l.$slots, "menuIcon", A(_({ isOpen: $.value, color: e.color })), () => [
228
+ ee(r, {
218
229
  name: $.value ? "close" : "menu",
219
230
  stroke: e.color,
220
231
  "stroke-width": 2
@@ -223,10 +234,10 @@ const le = ["title"], ie = ["data-open"], se = {
223
234
  ], 44, le),
224
235
  X("div", {
225
236
  "data-open": $.value,
226
- class: b({ "vue-ui-user-options-drawer": !0 }),
227
- style: f(`background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
237
+ class: d({ "vue-ui-user-options-drawer": !0 }),
238
+ style: v(`background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
228
239
  }, [
229
- e.hasTooltip ? (t(), i("button", {
240
+ e.hasTooltip ? (t(), s("button", {
230
241
  key: 0,
231
242
  tabindex: "0",
232
243
  class: "vue-ui-user-options-button",
@@ -234,27 +245,27 @@ const le = ["title"], ie = ["data-open"], se = {
234
245
  onMouseenter: o[0] || (o[0] = (u) => n.value.tooltip = !0),
235
246
  onMouseout: o[1] || (o[1] = (u) => n.value.tooltip = !1)
236
247
  }, [
237
- l.$slots.optionTooltip ? d(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
238
- I.value ? (t(), r(a, {
248
+ l.$slots.optionTooltip ? k(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
249
+ I.value ? (t(), f(r, {
239
250
  key: 0,
240
251
  name: "tooltip",
241
252
  stroke: e.color,
242
253
  style: { "pointer-events": "none" }
243
- }, null, 8, ["stroke"])) : (t(), r(a, {
254
+ }, null, 8, ["stroke"])) : (t(), f(r, {
244
255
  key: 1,
245
256
  name: "tooltipDisabled",
246
257
  stroke: e.color,
247
258
  style: { "pointer-events": "none" }
248
259
  }, null, 8, ["stroke"]))
249
260
  ], 64)),
250
- g.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(), i("div", {
261
+ g.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(), s("div", {
251
262
  key: 2,
252
263
  dir: "auto",
253
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-left-visible": e.position === "left" && n.value.tooltip, "button-info-right-visible": e.position === "right" && n.value.tooltip }),
254
- style: f({ background: e.backgroundColor, color: e.color })
255
- }, y(e.titles.tooltip), 7)) : s("", !0)
256
- ], 32)) : s("", !0),
257
- e.hasPdf ? (t(), i("button", {
264
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-left-visible": e.position === "left" && n.value.tooltip, "button-info-right-visible": e.position === "right" && n.value.tooltip }),
265
+ style: v({ background: e.backgroundColor, color: e.color })
266
+ }, y(e.titles.tooltip), 7)) : a("", !0)
267
+ ], 32)) : a("", !0),
268
+ e.hasPdf ? (t(), s("button", {
258
269
  key: 1,
259
270
  tabindex: "0",
260
271
  class: "vue-ui-user-options-button",
@@ -262,28 +273,28 @@ const le = ["title"], ie = ["data-open"], se = {
262
273
  onMouseenter: o[2] || (o[2] = (u) => n.value.pdf = !0),
263
274
  onMouseout: o[3] || (o[3] = (u) => n.value.pdf = !1)
264
275
  }, [
265
- l.$slots.optionPdf ? d(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
266
- e.isPrinting ? (t(), r(a, {
276
+ l.$slots.optionPdf ? k(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
277
+ e.isPrinting ? (t(), f(r, {
267
278
  key: 0,
268
279
  name: "spin",
269
280
  isSpin: "",
270
281
  stroke: e.color,
271
282
  style: { "pointer-events": "none" }
272
- }, null, 8, ["stroke"])) : (t(), r(a, {
283
+ }, null, 8, ["stroke"])) : (t(), f(r, {
273
284
  key: 1,
274
285
  name: "pdf",
275
286
  stroke: e.color,
276
287
  style: { "pointer-events": "none" }
277
288
  }, null, 8, ["stroke"]))
278
289
  ], 64)),
279
- g.value && e.titles.pdf && !l.$slots.optionPdf ? (t(), i("div", {
290
+ g.value && e.titles.pdf && !l.$slots.optionPdf ? (t(), s("div", {
280
291
  key: 2,
281
292
  dir: "auto",
282
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.pdf, "button-info-left-visible": e.position === "left" && n.value.pdf }),
283
- style: f({ background: e.backgroundColor, color: e.color })
284
- }, y(e.titles.pdf), 7)) : s("", !0)
285
- ], 32)) : s("", !0),
286
- e.hasXls ? (t(), i("button", {
293
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.pdf, "button-info-left-visible": e.position === "left" && n.value.pdf }),
294
+ style: v({ background: e.backgroundColor, color: e.color })
295
+ }, y(e.titles.pdf), 7)) : a("", !0)
296
+ ], 32)) : a("", !0),
297
+ e.hasXls ? (t(), s("button", {
287
298
  key: 2,
288
299
  tabindex: "0",
289
300
  class: "vue-ui-user-options-button",
@@ -291,70 +302,70 @@ const le = ["title"], ie = ["data-open"], se = {
291
302
  onMouseenter: o[4] || (o[4] = (u) => n.value.csv = !0),
292
303
  onMouseout: o[5] || (o[5] = (u) => n.value.csv = !1)
293
304
  }, [
294
- l.$slots.optionCsv ? d(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(), r(a, {
305
+ l.$slots.optionCsv ? k(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(), f(r, {
295
306
  key: 1,
296
307
  name: "excel",
297
308
  stroke: e.color,
298
309
  style: { "pointer-events": "none" }
299
310
  }, null, 8, ["stroke"])),
300
- g.value && e.titles.csv && !l.$slots.optionCsv ? (t(), i("div", {
311
+ g.value && e.titles.csv && !l.$slots.optionCsv ? (t(), s("div", {
301
312
  key: 2,
302
313
  dir: "auto",
303
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.csv, "button-info-left-visible": e.position === "left" && n.value.csv }),
304
- style: f({ background: e.backgroundColor, color: e.color })
305
- }, y(e.titles.csv), 7)) : s("", !0)
306
- ], 32)) : s("", !0),
307
- e.hasImg ? (t(), i("button", {
314
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.csv, "button-info-left-visible": e.position === "left" && n.value.csv }),
315
+ style: v({ background: e.backgroundColor, color: e.color })
316
+ }, y(e.titles.csv), 7)) : a("", !0)
317
+ ], 32)) : a("", !0),
318
+ e.hasImg ? (t(), s("button", {
308
319
  key: 3,
309
320
  tabindex: "0",
310
321
  class: "vue-ui-user-options-button",
311
- onClick: U,
322
+ onClick: j,
312
323
  onMouseenter: o[6] || (o[6] = (u) => n.value.img = !0),
313
324
  onMouseout: o[7] || (o[7] = (u) => n.value.img = !1)
314
325
  }, [
315
- l.$slots.optionImg ? d(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
316
- e.isImaging ? (t(), r(a, {
326
+ l.$slots.optionImg ? k(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
327
+ e.isImaging ? (t(), f(r, {
317
328
  key: 0,
318
329
  name: "spin",
319
330
  isSpin: "",
320
331
  stroke: e.color,
321
332
  style: { "pointer-events": "none" }
322
- }, null, 8, ["stroke"])) : (t(), r(a, {
333
+ }, null, 8, ["stroke"])) : (t(), f(r, {
323
334
  key: 1,
324
335
  name: "image",
325
336
  stroke: e.color,
326
337
  style: { "pointer-events": "none" }
327
338
  }, null, 8, ["stroke"]))
328
339
  ], 64)),
329
- g.value && e.titles.img && !l.$slots.optionImg ? (t(), i("div", {
340
+ g.value && e.titles.img && !l.$slots.optionImg ? (t(), s("div", {
330
341
  key: 2,
331
342
  dir: "auto",
332
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.img, "button-info-left-visible": e.position === "left" && n.value.img }),
333
- style: f({ background: e.backgroundColor, color: e.color })
334
- }, y(e.titles.img), 7)) : s("", !0)
335
- ], 32)) : s("", !0),
336
- e.hasTable ? (t(), i("button", {
343
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.img, "button-info-left-visible": e.position === "left" && n.value.img }),
344
+ style: v({ background: e.backgroundColor, color: e.color })
345
+ }, y(e.titles.img), 7)) : a("", !0)
346
+ ], 32)) : a("", !0),
347
+ e.hasTable ? (t(), s("button", {
337
348
  key: 4,
338
349
  tabindex: "0",
339
350
  class: "vue-ui-user-options-button",
340
- onClick: V,
351
+ onClick: U,
341
352
  onMouseenter: o[8] || (o[8] = (u) => n.value.table = !0),
342
353
  onMouseout: o[9] || (o[9] = (u) => n.value.table = !1)
343
354
  }, [
344
- l.$slots.optionTable ? d(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(), r(a, {
355
+ l.$slots.optionTable ? k(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(), f(r, {
345
356
  key: 1,
346
357
  name: B.value ? "tableClose" : "tableOpen",
347
358
  stroke: e.color,
348
359
  style: { "pointer-events": "none" }
349
360
  }, null, 8, ["name", "stroke"])),
350
- g.value && e.titles.table && !l.$slots.optionTable ? (t(), i("div", {
361
+ g.value && e.titles.table && !l.$slots.optionTable ? (t(), s("div", {
351
362
  key: 2,
352
363
  dir: "auto",
353
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.table, "button-info-left-visible": e.position === "left" && n.value.table }),
354
- style: f({ background: e.backgroundColor, color: e.color })
355
- }, y(e.titles.table), 7)) : s("", !0)
356
- ], 32)) : s("", !0),
357
- e.hasLabel ? (t(), i("button", {
364
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.table, "button-info-left-visible": e.position === "left" && n.value.table }),
365
+ style: v({ background: e.backgroundColor, color: e.color })
366
+ }, y(e.titles.table), 7)) : a("", !0)
367
+ ], 32)) : a("", !0),
368
+ e.hasLabel ? (t(), s("button", {
358
369
  key: 5,
359
370
  tabindex: "0",
360
371
  class: "vue-ui-user-options-button",
@@ -362,20 +373,20 @@ const le = ["title"], ie = ["data-open"], se = {
362
373
  onMouseenter: o[10] || (o[10] = (u) => n.value.labels = !0),
363
374
  onMouseout: o[11] || (o[11] = (u) => n.value.labels = !1)
364
375
  }, [
365
- l.$slots.optionLabels ? d(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(), r(a, {
376
+ l.$slots.optionLabels ? k(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(), f(r, {
366
377
  key: 1,
367
378
  name: M.value ? "labelClose" : "labelOpen",
368
379
  stroke: e.color,
369
380
  style: { "pointer-events": "none" }
370
381
  }, null, 8, ["name", "stroke"])),
371
- g.value && e.titles.labels && !l.$slots.optionLabels ? (t(), i("div", {
382
+ g.value && e.titles.labels && !l.$slots.optionLabels ? (t(), s("div", {
372
383
  key: 2,
373
384
  dir: "auto",
374
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.labels, "button-info-left-visible": e.position === "left" && n.value.labels }),
375
- style: f({ background: e.backgroundColor, color: e.color })
376
- }, y(e.titles.labels), 7)) : s("", !0)
377
- ], 32)) : s("", !0),
378
- e.hasSort ? (t(), i("button", {
385
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.labels, "button-info-left-visible": e.position === "left" && n.value.labels }),
386
+ style: v({ background: e.backgroundColor, color: e.color })
387
+ }, y(e.titles.labels), 7)) : a("", !0)
388
+ ], 32)) : a("", !0),
389
+ e.hasSort ? (t(), s("button", {
379
390
  key: 6,
380
391
  tabindex: "0",
381
392
  class: "vue-ui-user-options-button",
@@ -383,20 +394,20 @@ const le = ["title"], ie = ["data-open"], se = {
383
394
  onMouseenter: o[12] || (o[12] = (u) => n.value.sort = !0),
384
395
  onMouseout: o[13] || (o[13] = (u) => n.value.sort = !1)
385
396
  }, [
386
- l.$slots.optionSort ? d(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(), r(a, {
397
+ l.$slots.optionSort ? k(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(), f(r, {
387
398
  key: 1,
388
399
  name: "sort",
389
400
  stroke: e.color,
390
401
  style: { "pointer-events": "none" }
391
402
  }, null, 8, ["stroke"])),
392
- g.value && e.titles.sort && !l.$slots.optionSort ? (t(), i("div", {
403
+ g.value && e.titles.sort && !l.$slots.optionSort ? (t(), s("div", {
393
404
  key: 2,
394
405
  dir: "auto",
395
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.sort, "button-info-left-visible": e.position === "left" && n.value.sort }),
396
- style: f({ background: e.backgroundColor, color: e.color })
397
- }, y(e.titles.sort), 7)) : s("", !0)
398
- ], 32)) : s("", !0),
399
- e.hasStack ? (t(), i("button", {
406
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.sort, "button-info-left-visible": e.position === "left" && n.value.sort }),
407
+ style: v({ background: e.backgroundColor, color: e.color })
408
+ }, y(e.titles.sort), 7)) : a("", !0)
409
+ ], 32)) : a("", !0),
410
+ e.hasStack ? (t(), s("button", {
400
411
  key: 7,
401
412
  tabindex: "0",
402
413
  class: "vue-ui-user-options-button",
@@ -404,56 +415,56 @@ const le = ["title"], ie = ["data-open"], se = {
404
415
  onMouseenter: o[14] || (o[14] = (u) => n.value.stack = !0),
405
416
  onMouseout: o[15] || (o[15] = (u) => n.value.stack = !1)
406
417
  }, [
407
- l.$slots.optionStack ? d(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), i(h, { key: 1 }, [
408
- T.value ? (t(), r(a, {
418
+ l.$slots.optionStack ? k(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
419
+ T.value ? (t(), f(r, {
409
420
  key: 0,
410
421
  name: "unstack",
411
422
  stroke: e.color,
412
423
  style: { "pointer-events": "none" }
413
- }, null, 8, ["stroke"])) : (t(), r(a, {
424
+ }, null, 8, ["stroke"])) : (t(), f(r, {
414
425
  key: 1,
415
426
  name: "stack",
416
427
  stroke: e.color,
417
428
  style: { "pointer-events": "none" }
418
429
  }, null, 8, ["stroke"]))
419
430
  ], 64)),
420
- g.value && e.titles.stack && !l.$slots.optionStack ? (t(), i("div", {
431
+ g.value && e.titles.stack && !l.$slots.optionStack ? (t(), s("div", {
421
432
  key: 2,
422
433
  dir: "auto",
423
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.stack, "button-info-left-visible": e.position === "left" && n.value.stack }),
424
- style: f({ background: e.backgroundColor, color: e.color })
425
- }, y(e.titles.stack), 7)) : s("", !0)
426
- ], 32)) : s("", !0),
427
- e.hasFullscreen ? (t(), i("button", {
434
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.stack, "button-info-left-visible": e.position === "left" && n.value.stack }),
435
+ style: v({ background: e.backgroundColor, color: e.color })
436
+ }, y(e.titles.stack), 7)) : a("", !0)
437
+ ], 32)) : a("", !0),
438
+ e.hasFullscreen ? (t(), s("button", {
428
439
  key: 8,
429
440
  tabindex: "0",
430
441
  class: "vue-ui-user-options-button",
431
442
  onMouseenter: o[16] || (o[16] = (u) => n.value.fullscreen = !0),
432
443
  onMouseout: o[17] || (o[17] = (u) => n.value.fullscreen = !1),
433
- onClick: o[18] || (o[18] = (u) => w(k.value ? "out" : "in"))
444
+ onClick: o[18] || (o[18] = (u) => w(c.value ? "out" : "in"))
434
445
  }, [
435
- l.$slots.optionFullscreen ? d(l.$slots, "optionFullscreen", A(F({ key: 0 }, { toggleFullscreen: w, isFullscreen: k.value })), void 0, !0) : (t(), i(h, { key: 1 }, [
436
- k.value ? (t(), r(a, {
446
+ l.$slots.optionFullscreen ? k(l.$slots, "optionFullscreen", A(F({ key: 0 }, { toggleFullscreen: w, isFullscreen: c.value })), void 0, !0) : (t(), s(h, { key: 1 }, [
447
+ c.value ? (t(), f(r, {
437
448
  key: 0,
438
449
  name: "exitFullscreen",
439
450
  stroke: e.color,
440
451
  style: { "pointer-events": "none" }
441
- }, null, 8, ["stroke"])) : s("", !0),
442
- k.value ? s("", !0) : (t(), r(a, {
452
+ }, null, 8, ["stroke"])) : a("", !0),
453
+ c.value ? a("", !0) : (t(), f(r, {
443
454
  key: 1,
444
455
  name: "fullscreen",
445
456
  stroke: e.color,
446
457
  style: { "pointer-events": "none" }
447
458
  }, null, 8, ["stroke"]))
448
459
  ], 64)),
449
- g.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(), i("div", {
460
+ g.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(), s("div", {
450
461
  key: 2,
451
462
  dir: "auto",
452
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.fullscreen, "button-info-left-visible": e.position === "left" && n.value.fullscreen }),
453
- style: f({ background: e.backgroundColor, color: e.color })
454
- }, y(e.titles.fullscreen), 7)) : s("", !0)
455
- ], 32)) : s("", !0),
456
- e.hasAnimation ? (t(), i("button", {
463
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.fullscreen, "button-info-left-visible": e.position === "left" && n.value.fullscreen }),
464
+ style: v({ background: e.backgroundColor, color: e.color })
465
+ }, y(e.titles.fullscreen), 7)) : a("", !0)
466
+ ], 32)) : a("", !0),
467
+ e.hasAnimation ? (t(), s("button", {
457
468
  key: 9,
458
469
  tabindex: "0",
459
470
  class: "vue-ui-user-options-button",
@@ -461,28 +472,28 @@ const le = ["title"], ie = ["data-open"], se = {
461
472
  onMouseout: o[20] || (o[20] = (u) => n.value.animation = !1),
462
473
  onClick: L
463
474
  }, [
464
- l.$slots.optionAnimation ? d(l.$slots, "optionAnimation", A(F({ key: 0 }, { toggleAnimation: L, isAnimated: C.value })), void 0, !0) : (t(), i(h, { key: 1 }, [
465
- C.value ? (t(), r(a, {
475
+ l.$slots.optionAnimation ? k(l.$slots, "optionAnimation", A(F({ key: 0 }, { toggleAnimation: L, isAnimated: C.value })), void 0, !0) : (t(), s(h, { key: 1 }, [
476
+ C.value ? (t(), f(r, {
466
477
  key: 0,
467
478
  name: "play",
468
479
  stroke: e.color,
469
480
  style: { "pointer-events": "none" }
470
- }, null, 8, ["stroke"])) : s("", !0),
471
- C.value ? s("", !0) : (t(), r(a, {
481
+ }, null, 8, ["stroke"])) : a("", !0),
482
+ C.value ? a("", !0) : (t(), f(r, {
472
483
  key: 1,
473
484
  name: "pause",
474
485
  stroke: e.color,
475
486
  style: { "pointer-events": "none" }
476
487
  }, null, 8, ["stroke"]))
477
488
  ], 64)),
478
- g.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(), i("div", {
489
+ g.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(), s("div", {
479
490
  key: 2,
480
491
  dir: "auto",
481
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.animation, "button-info-left-visible": e.position === "left" && n.value.animation }),
482
- style: f({ background: e.backgroundColor, color: e.color })
483
- }, y(e.titles.animation), 7)) : s("", !0)
484
- ], 32)) : s("", !0),
485
- e.hasAnnotator ? (t(), i("button", {
492
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.animation, "button-info-left-visible": e.position === "left" && n.value.animation }),
493
+ style: v({ background: e.backgroundColor, color: e.color })
494
+ }, y(e.titles.animation), 7)) : a("", !0)
495
+ ], 32)) : a("", !0),
496
+ e.hasAnnotator ? (t(), s("button", {
486
497
  key: 10,
487
498
  tabindex: "0",
488
499
  class: "vue-ui-user-options-button",
@@ -490,33 +501,33 @@ const le = ["title"], ie = ["data-open"], se = {
490
501
  onMouseout: o[22] || (o[22] = (u) => n.value.annotator = !1),
491
502
  onClick: P
492
503
  }, [
493
- l.$slots.optionAnnotator ? d(l.$slots, "optionAnnotator", A(F({ key: 0 }, { toggleAnnotator: P, isAnnotator: S.value })), void 0, !0) : (t(), i(h, { key: 1 }, [
494
- S.value ? (t(), r(a, {
504
+ l.$slots.optionAnnotator ? k(l.$slots, "optionAnnotator", A(F({ key: 0 }, { toggleAnnotator: P, isAnnotator: S.value })), void 0, !0) : (t(), s(h, { key: 1 }, [
505
+ S.value ? (t(), f(r, {
495
506
  key: 0,
496
507
  name: "annotatorDisabled",
497
508
  stroke: e.color,
498
509
  style: { "pointer-events": "none" }
499
- }, null, 8, ["stroke"])) : s("", !0),
500
- S.value ? s("", !0) : (t(), r(a, {
510
+ }, null, 8, ["stroke"])) : a("", !0),
511
+ S.value ? a("", !0) : (t(), f(r, {
501
512
  key: 1,
502
513
  name: "annotator",
503
514
  stroke: e.color,
504
515
  style: { "pointer-events": "none" }
505
516
  }, null, 8, ["stroke"]))
506
517
  ], 64)),
507
- g.value && e.titles.annotator && !l.$slots.optionAnnotator ? (t(), i("div", {
518
+ g.value && e.titles.annotator && !l.$slots.optionAnnotator ? (t(), s("div", {
508
519
  key: 2,
509
520
  dir: "auto",
510
- class: b({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.annotator, "button-info-left-visible": e.position === "left" && n.value.annotator }),
511
- style: f({ background: e.backgroundColor, color: e.color })
512
- }, y(e.titles.annotator), 7)) : s("", !0)
513
- ], 32)) : s("", !0)
521
+ class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.annotator, "button-info-left-visible": e.position === "left" && n.value.annotator }),
522
+ style: v({ background: e.backgroundColor, color: e.color })
523
+ }, y(e.titles.annotator), 7)) : a("", !0)
524
+ ], 32)) : a("", !0)
514
525
  ], 12, ie)
515
526
  ], 4)), [
516
527
  [te(oe), W]
517
528
  ]);
518
529
  }
519
- }, ve = /* @__PURE__ */ ne(se, [["__scopeId", "data-v-2b85c189"]]);
530
+ }, ve = /* @__PURE__ */ ne(se, [["__scopeId", "data-v-3f9698be"]]);
520
531
  export {
521
532
  ve as default
522
533
  };
@@ -1,4 +1,4 @@
1
- import { X as x } from "./index-CbcpITE_.js";
1
+ import { X as x } from "./index-CH_mJIWj.js";
2
2
  async function A(n) {
3
3
  const i = n.querySelectorAll("img"), o = Array.from(i).map((t) => new Promise((s) => {
4
4
  if (!t.src || t.src.startsWith("data:")) return s();
@@ -1,4 +1,4 @@
1
- import { d as i } from "./dom-to-png-BjSUS-jY.js";
1
+ import { d as i } from "./dom-to-png-C0Ct8ClX.js";
2
2
  async function a({ domElement: r, fileName: n, format: t = "png", scale: c = 2 }) {
3
3
  if (!r) return Promise.reject("No element provided");
4
4
  if (t === "svg") {