vue-data-ui 3.1.1 → 3.1.2
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.
- package/dist/{Arrow-xQM7mBzd.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-8_V5egWW.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dz-j6ERs.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-C4B0wEFn.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-NfRSd6fU.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-DOCeCCqz.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as m, computed as w, onMounted as
|
|
2
|
-
import { v as
|
|
3
|
-
import r from "./BaseIcon-
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { ref as m, computed as w, onMounted as Z, onBeforeUnmount as p, withDirectives as _, createElementBlock as s, openBlock as o, normalizeStyle as b, createElementVNode as D, withKeys as ee, withModifiers as te, renderSlot as k, normalizeProps as A, guardReactiveProps as oe, createVNode as ne, normalizeClass as d, createCommentVNode as a, Fragment as $, createBlock as f, toDisplayString as c, mergeProps as T, unref as le } from "vue";
|
|
2
|
+
import { v as ie } from "./vClickOutside-C6WiFswA.js";
|
|
3
|
+
import r from "./BaseIcon-BLg8FaQ2.js";
|
|
4
|
+
import X from "./img-DvuphHeJ.js";
|
|
5
|
+
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const ae = ["title"], ue = ["data-open"], re = {
|
|
7
7
|
__name: "UserOptions",
|
|
8
8
|
props: {
|
|
9
9
|
hasPdf: {
|
|
@@ -133,84 +133,94 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
133
133
|
printScale: {
|
|
134
134
|
type: Number,
|
|
135
135
|
default: 2
|
|
136
|
+
},
|
|
137
|
+
tableDialog: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: !1
|
|
136
140
|
}
|
|
137
141
|
},
|
|
138
142
|
emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation", "toggleAnnotator"],
|
|
139
|
-
setup(e, { emit: N }) {
|
|
140
|
-
const i = e,
|
|
141
|
-
async function
|
|
143
|
+
setup(e, { expose: z, emit: N }) {
|
|
144
|
+
const i = e, v = N;
|
|
145
|
+
async function U() {
|
|
142
146
|
if (i.callbacks.pdf) {
|
|
143
|
-
const { imageUri: n, base64: t } = await
|
|
147
|
+
const { imageUri: n, base64: t } = await X({ domElement: i.chartElement, base64: !0, img: !0, scale: i.printScale });
|
|
144
148
|
i.callbacks.pdf({ domElement: i.chartElement, base64: t, imageUri: n });
|
|
145
149
|
} else
|
|
146
|
-
|
|
150
|
+
v("generatePdf");
|
|
147
151
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
152
|
+
function j() {
|
|
153
|
+
v("generateCsv", i.callbacks.csv);
|
|
150
154
|
}
|
|
151
|
-
async function
|
|
155
|
+
async function V() {
|
|
152
156
|
if (i.callbacks.img) {
|
|
153
|
-
const { imageUri: n, base64: t } = await
|
|
157
|
+
const { imageUri: n, base64: t } = await X({ domElement: i.chartElement, base64: !0, img: !0, scale: i.printScale });
|
|
154
158
|
i.callbacks.img({ domElement: i.chartElement, imageUri: n, base64: t });
|
|
155
159
|
} else
|
|
156
|
-
|
|
160
|
+
v("generateImage");
|
|
157
161
|
}
|
|
158
|
-
const
|
|
159
|
-
function
|
|
160
|
-
i.callbacks.table ? i.callbacks.table() : (
|
|
162
|
+
const h = m(!1);
|
|
163
|
+
function x() {
|
|
164
|
+
i.callbacks.table ? i.callbacks.table() : (h.value = !h.value, v("toggleTable"));
|
|
165
|
+
}
|
|
166
|
+
function K(n) {
|
|
167
|
+
h.value = n;
|
|
161
168
|
}
|
|
162
|
-
|
|
169
|
+
z({
|
|
170
|
+
setTableIconState: K
|
|
171
|
+
});
|
|
172
|
+
const y = m(!1), W = m(!0);
|
|
163
173
|
function I() {
|
|
164
|
-
g.value = window.innerWidth > 600, y.value = !y.value, y.value && (
|
|
174
|
+
g.value = window.innerWidth > 600, y.value = !y.value, y.value && (W.value = !1);
|
|
165
175
|
}
|
|
166
|
-
function
|
|
176
|
+
function q() {
|
|
167
177
|
i.isPrinting || i.isImaging || (y.value = !1);
|
|
168
178
|
}
|
|
169
|
-
function
|
|
170
|
-
y.value &&
|
|
179
|
+
function H() {
|
|
180
|
+
y.value && q();
|
|
171
181
|
}
|
|
172
182
|
const B = m(i.isLabelActive);
|
|
173
|
-
function
|
|
174
|
-
i.callbacks.labels ? i.callbacks.labels() : (B.value = !B.value,
|
|
183
|
+
function R() {
|
|
184
|
+
i.callbacks.labels ? i.callbacks.labels() : (B.value = !B.value, v("toggleLabels"));
|
|
175
185
|
}
|
|
176
|
-
const
|
|
186
|
+
const C = m(i.isAnimation);
|
|
177
187
|
function E() {
|
|
178
|
-
i.callbacks.animation ? i.callbacks.animation() : (
|
|
188
|
+
i.callbacks.animation ? i.callbacks.animation() : (C.value = !C.value, v("toggleAnimation"));
|
|
179
189
|
}
|
|
180
|
-
const
|
|
190
|
+
const S = w({
|
|
181
191
|
get: () => i.isAnnotation,
|
|
182
192
|
set: (n) => n
|
|
183
193
|
});
|
|
184
194
|
function O() {
|
|
185
|
-
i.callbacks.annotator ? i.callbacks.annotator() : (
|
|
195
|
+
i.callbacks.annotator ? i.callbacks.annotator() : (S.value = !S.value, v("toggleAnnotator"));
|
|
186
196
|
}
|
|
187
|
-
function
|
|
188
|
-
i.callbacks.sort ? i.callbacks.sort() :
|
|
197
|
+
function G() {
|
|
198
|
+
i.callbacks.sort ? i.callbacks.sort() : v("toggleSort");
|
|
189
199
|
}
|
|
190
200
|
const F = m(i.isStacked);
|
|
191
|
-
function
|
|
192
|
-
i.callbacks.stack ? i.callbacks.stack() : (F.value = !F.value,
|
|
201
|
+
function J() {
|
|
202
|
+
i.callbacks.stack ? i.callbacks.stack() : (F.value = !F.value, v("toggleStack"));
|
|
193
203
|
}
|
|
194
204
|
const M = m(i.isTooltip);
|
|
195
|
-
function
|
|
196
|
-
i.callbacks.tooltip ? i.callbacks.tooltip() : (M.value = !M.value,
|
|
205
|
+
function Q() {
|
|
206
|
+
i.callbacks.tooltip ? i.callbacks.tooltip() : (M.value = !M.value, v("toggleTooltip"));
|
|
197
207
|
}
|
|
198
|
-
const
|
|
208
|
+
const Y = w({
|
|
199
209
|
get: () => i.isFullscreen,
|
|
200
|
-
set: (n) =>
|
|
210
|
+
set: (n) => v("toggleFullscreen", n)
|
|
201
211
|
});
|
|
202
212
|
function L() {
|
|
203
213
|
if (!i.chartElement) return;
|
|
204
214
|
const n = !i.isFullscreen;
|
|
205
|
-
|
|
215
|
+
Y.value = n, n ? i.chartElement.requestFullscreen() : document.exitFullscreen();
|
|
206
216
|
}
|
|
207
217
|
function P() {
|
|
208
218
|
const n = !!document.fullscreenElement;
|
|
209
|
-
|
|
219
|
+
v("toggleFullscreen", n);
|
|
210
220
|
}
|
|
211
|
-
|
|
221
|
+
Z(() => {
|
|
212
222
|
document.addEventListener("fullscreenchange", P);
|
|
213
|
-
}),
|
|
223
|
+
}), p(() => {
|
|
214
224
|
document.removeEventListener("fullscreenchange", P);
|
|
215
225
|
});
|
|
216
226
|
const g = m(window.innerWidth > 600), l = m({
|
|
@@ -226,40 +236,40 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
226
236
|
animation: !1,
|
|
227
237
|
annotator: !1
|
|
228
238
|
});
|
|
229
|
-
return (n, t) =>
|
|
239
|
+
return (n, t) => _((o(), s("div", {
|
|
230
240
|
"data-dom-to-png-ignore": "",
|
|
231
241
|
class: "vue-ui-user-options",
|
|
232
|
-
style:
|
|
242
|
+
style: b(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen ? "fixed" : "absolute"}; top: 0; ${e.position === "right" ? `right:${e.isFullscreen ? "12px" : "0"}` : `left:${e.isFullscreen ? "12px" : "0"}`}; padding: 4px; background:transparent;`)
|
|
233
243
|
}, [
|
|
234
|
-
|
|
244
|
+
D("div", {
|
|
235
245
|
tabindex: "0",
|
|
236
246
|
title: y.value ? e.titles.close || "" : e.titles.open || "",
|
|
237
|
-
style:
|
|
238
|
-
onClick:
|
|
239
|
-
onKeypress:
|
|
247
|
+
style: b(`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`),
|
|
248
|
+
onClick: te(I, ["stop"]),
|
|
249
|
+
onKeypress: ee(I, ["enter"])
|
|
240
250
|
}, [
|
|
241
|
-
|
|
242
|
-
|
|
251
|
+
k(n.$slots, "menuIcon", A(oe({ isOpen: y.value, color: e.color })), () => [
|
|
252
|
+
ne(r, {
|
|
243
253
|
name: y.value ? "close" : "menu",
|
|
244
254
|
stroke: e.color,
|
|
245
255
|
"stroke-width": 2
|
|
246
256
|
}, null, 8, ["name", "stroke"])
|
|
247
257
|
], !0)
|
|
248
|
-
], 44,
|
|
249
|
-
|
|
258
|
+
], 44, ae),
|
|
259
|
+
D("div", {
|
|
250
260
|
"data-open": y.value,
|
|
251
|
-
class:
|
|
252
|
-
style:
|
|
261
|
+
class: d({ "vue-ui-user-options-drawer": !0 }),
|
|
262
|
+
style: b(`background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
|
|
253
263
|
}, [
|
|
254
264
|
e.hasTooltip ? (o(), s("button", {
|
|
255
265
|
key: 0,
|
|
256
266
|
tabindex: "0",
|
|
257
267
|
class: "vue-ui-user-options-button",
|
|
258
|
-
onClick:
|
|
268
|
+
onClick: Q,
|
|
259
269
|
onMouseenter: t[0] || (t[0] = (u) => l.value.tooltip = !0),
|
|
260
270
|
onMouseout: t[1] || (t[1] = (u) => l.value.tooltip = !1)
|
|
261
271
|
}, [
|
|
262
|
-
n.$slots.optionTooltip ?
|
|
272
|
+
n.$slots.optionTooltip ? k(n.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
263
273
|
M.value ? (o(), f(r, {
|
|
264
274
|
key: 0,
|
|
265
275
|
name: "tooltip",
|
|
@@ -275,19 +285,19 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
275
285
|
g.value && e.titles.tooltip && !n.$slots.optionTooltip ? (o(), s("div", {
|
|
276
286
|
key: 2,
|
|
277
287
|
dir: "auto",
|
|
278
|
-
class:
|
|
279
|
-
style:
|
|
288
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-left-visible": e.position === "left" && l.value.tooltip, "button-info-right-visible": e.position === "right" && l.value.tooltip }),
|
|
289
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
280
290
|
}, c(e.titles.tooltip), 7)) : a("", !0)
|
|
281
291
|
], 32)) : a("", !0),
|
|
282
292
|
e.hasPdf ? (o(), s("button", {
|
|
283
293
|
key: 1,
|
|
284
294
|
tabindex: "0",
|
|
285
295
|
class: "vue-ui-user-options-button",
|
|
286
|
-
onClick:
|
|
296
|
+
onClick: U,
|
|
287
297
|
onMouseenter: t[2] || (t[2] = (u) => l.value.pdf = !0),
|
|
288
298
|
onMouseout: t[3] || (t[3] = (u) => l.value.pdf = !1)
|
|
289
299
|
}, [
|
|
290
|
-
n.$slots.optionPdf ?
|
|
300
|
+
n.$slots.optionPdf ? k(n.$slots, "optionPdf", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
291
301
|
e.isPrinting ? (o(), f(r, {
|
|
292
302
|
key: 0,
|
|
293
303
|
name: "spin",
|
|
@@ -304,19 +314,19 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
304
314
|
g.value && e.titles.pdf && !n.$slots.optionPdf ? (o(), s("div", {
|
|
305
315
|
key: 2,
|
|
306
316
|
dir: "auto",
|
|
307
|
-
class:
|
|
308
|
-
style:
|
|
317
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.pdf, "button-info-left-visible": e.position === "left" && l.value.pdf }),
|
|
318
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
309
319
|
}, c(e.titles.pdf), 7)) : a("", !0)
|
|
310
320
|
], 32)) : a("", !0),
|
|
311
321
|
e.hasXls ? (o(), s("button", {
|
|
312
322
|
key: 2,
|
|
313
323
|
tabindex: "0",
|
|
314
324
|
class: "vue-ui-user-options-button",
|
|
315
|
-
onClick:
|
|
325
|
+
onClick: j,
|
|
316
326
|
onMouseenter: t[4] || (t[4] = (u) => l.value.csv = !0),
|
|
317
327
|
onMouseout: t[5] || (t[5] = (u) => l.value.csv = !1)
|
|
318
328
|
}, [
|
|
319
|
-
n.$slots.optionCsv ?
|
|
329
|
+
n.$slots.optionCsv ? k(n.$slots, "optionCsv", { key: 0 }, void 0, !0) : (o(), f(r, {
|
|
320
330
|
key: 1,
|
|
321
331
|
name: "excel",
|
|
322
332
|
stroke: e.color,
|
|
@@ -325,19 +335,19 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
325
335
|
g.value && e.titles.csv && !n.$slots.optionCsv ? (o(), s("div", {
|
|
326
336
|
key: 2,
|
|
327
337
|
dir: "auto",
|
|
328
|
-
class:
|
|
329
|
-
style:
|
|
338
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.csv, "button-info-left-visible": e.position === "left" && l.value.csv }),
|
|
339
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
330
340
|
}, c(e.titles.csv), 7)) : a("", !0)
|
|
331
341
|
], 32)) : a("", !0),
|
|
332
342
|
e.hasImg ? (o(), s("button", {
|
|
333
343
|
key: 3,
|
|
334
344
|
tabindex: "0",
|
|
335
345
|
class: "vue-ui-user-options-button",
|
|
336
|
-
onClick:
|
|
346
|
+
onClick: V,
|
|
337
347
|
onMouseenter: t[6] || (t[6] = (u) => l.value.img = !0),
|
|
338
348
|
onMouseout: t[7] || (t[7] = (u) => l.value.img = !1)
|
|
339
349
|
}, [
|
|
340
|
-
n.$slots.optionImg ?
|
|
350
|
+
n.$slots.optionImg ? k(n.$slots, "optionImg", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
341
351
|
e.isImaging ? (o(), f(r, {
|
|
342
352
|
key: 0,
|
|
343
353
|
name: "spin",
|
|
@@ -354,40 +364,47 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
354
364
|
g.value && e.titles.img && !n.$slots.optionImg ? (o(), s("div", {
|
|
355
365
|
key: 2,
|
|
356
366
|
dir: "auto",
|
|
357
|
-
class:
|
|
358
|
-
style:
|
|
367
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.img, "button-info-left-visible": e.position === "left" && l.value.img }),
|
|
368
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
359
369
|
}, c(e.titles.img), 7)) : a("", !0)
|
|
360
370
|
], 32)) : a("", !0),
|
|
361
371
|
e.hasTable ? (o(), s("button", {
|
|
362
372
|
key: 4,
|
|
363
373
|
tabindex: "0",
|
|
364
374
|
class: "vue-ui-user-options-button",
|
|
365
|
-
onClick:
|
|
375
|
+
onClick: x,
|
|
366
376
|
onMouseenter: t[8] || (t[8] = (u) => l.value.table = !0),
|
|
367
377
|
onMouseout: t[9] || (t[9] = (u) => l.value.table = !1)
|
|
368
378
|
}, [
|
|
369
|
-
n.$slots.optionTable ?
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
379
|
+
n.$slots.optionTable ? k(n.$slots, "optionTable", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
380
|
+
e.tableDialog ? (o(), f(r, {
|
|
381
|
+
key: 0,
|
|
382
|
+
name: h.value ? "tableDialogClose" : "tableDialogOpen",
|
|
383
|
+
stroke: e.color,
|
|
384
|
+
style: { "pointer-events": "none" }
|
|
385
|
+
}, null, 8, ["name", "stroke"])) : (o(), f(r, {
|
|
386
|
+
key: 1,
|
|
387
|
+
name: h.value ? "tableClose" : "tableOpen",
|
|
388
|
+
stroke: e.color,
|
|
389
|
+
style: { "pointer-events": "none" }
|
|
390
|
+
}, null, 8, ["name", "stroke"]))
|
|
391
|
+
], 64)),
|
|
375
392
|
g.value && e.titles.table && !n.$slots.optionTable ? (o(), s("div", {
|
|
376
393
|
key: 2,
|
|
377
394
|
dir: "auto",
|
|
378
|
-
class:
|
|
379
|
-
style:
|
|
395
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.table, "button-info-left-visible": e.position === "left" && l.value.table }),
|
|
396
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
380
397
|
}, c(e.titles.table), 7)) : a("", !0)
|
|
381
398
|
], 32)) : a("", !0),
|
|
382
399
|
e.hasLabel ? (o(), s("button", {
|
|
383
400
|
key: 5,
|
|
384
401
|
tabindex: "0",
|
|
385
402
|
class: "vue-ui-user-options-button",
|
|
386
|
-
onClick:
|
|
403
|
+
onClick: R,
|
|
387
404
|
onMouseenter: t[10] || (t[10] = (u) => l.value.labels = !0),
|
|
388
405
|
onMouseout: t[11] || (t[11] = (u) => l.value.labels = !1)
|
|
389
406
|
}, [
|
|
390
|
-
n.$slots.optionLabels ?
|
|
407
|
+
n.$slots.optionLabels ? k(n.$slots, "optionLabels", { key: 0 }, void 0, !0) : (o(), f(r, {
|
|
391
408
|
key: 1,
|
|
392
409
|
name: B.value ? "labelClose" : "labelOpen",
|
|
393
410
|
stroke: e.color,
|
|
@@ -396,19 +413,19 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
396
413
|
g.value && e.titles.labels && !n.$slots.optionLabels ? (o(), s("div", {
|
|
397
414
|
key: 2,
|
|
398
415
|
dir: "auto",
|
|
399
|
-
class:
|
|
400
|
-
style:
|
|
416
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.labels, "button-info-left-visible": e.position === "left" && l.value.labels }),
|
|
417
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
401
418
|
}, c(e.titles.labels), 7)) : a("", !0)
|
|
402
419
|
], 32)) : a("", !0),
|
|
403
420
|
e.hasSort ? (o(), s("button", {
|
|
404
421
|
key: 6,
|
|
405
422
|
tabindex: "0",
|
|
406
423
|
class: "vue-ui-user-options-button",
|
|
407
|
-
onClick:
|
|
424
|
+
onClick: G,
|
|
408
425
|
onMouseenter: t[12] || (t[12] = (u) => l.value.sort = !0),
|
|
409
426
|
onMouseout: t[13] || (t[13] = (u) => l.value.sort = !1)
|
|
410
427
|
}, [
|
|
411
|
-
n.$slots.optionSort ?
|
|
428
|
+
n.$slots.optionSort ? k(n.$slots, "optionSort", { key: 0 }, void 0, !0) : (o(), f(r, {
|
|
412
429
|
key: 1,
|
|
413
430
|
name: "sort",
|
|
414
431
|
stroke: e.color,
|
|
@@ -417,19 +434,19 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
417
434
|
g.value && e.titles.sort && !n.$slots.optionSort ? (o(), s("div", {
|
|
418
435
|
key: 2,
|
|
419
436
|
dir: "auto",
|
|
420
|
-
class:
|
|
421
|
-
style:
|
|
437
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.sort, "button-info-left-visible": e.position === "left" && l.value.sort }),
|
|
438
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
422
439
|
}, c(e.titles.sort), 7)) : a("", !0)
|
|
423
440
|
], 32)) : a("", !0),
|
|
424
441
|
e.hasStack ? (o(), s("button", {
|
|
425
442
|
key: 7,
|
|
426
443
|
tabindex: "0",
|
|
427
444
|
class: "vue-ui-user-options-button",
|
|
428
|
-
onClick:
|
|
445
|
+
onClick: J,
|
|
429
446
|
onMouseenter: t[14] || (t[14] = (u) => l.value.stack = !0),
|
|
430
447
|
onMouseout: t[15] || (t[15] = (u) => l.value.stack = !1)
|
|
431
448
|
}, [
|
|
432
|
-
n.$slots.optionStack ?
|
|
449
|
+
n.$slots.optionStack ? k(n.$slots, "optionStack", { key: 0 }, void 0, !0) : (o(), s($, { key: 1 }, [
|
|
433
450
|
F.value ? (o(), f(r, {
|
|
434
451
|
key: 0,
|
|
435
452
|
name: "unstack",
|
|
@@ -445,8 +462,8 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
445
462
|
g.value && e.titles.stack && !n.$slots.optionStack ? (o(), s("div", {
|
|
446
463
|
key: 2,
|
|
447
464
|
dir: "auto",
|
|
448
|
-
class:
|
|
449
|
-
style:
|
|
465
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.stack, "button-info-left-visible": e.position === "left" && l.value.stack }),
|
|
466
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
450
467
|
}, c(e.titles.stack), 7)) : a("", !0)
|
|
451
468
|
], 32)) : a("", !0),
|
|
452
469
|
e.hasFullscreen ? (o(), s("button", {
|
|
@@ -457,7 +474,7 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
457
474
|
onMouseout: t[17] || (t[17] = (u) => l.value.fullscreen = !1),
|
|
458
475
|
onClick: t[18] || (t[18] = (u) => L(e.isFullscreen ? "out" : "in"))
|
|
459
476
|
}, [
|
|
460
|
-
n.$slots.optionFullscreen ?
|
|
477
|
+
n.$slots.optionFullscreen ? k(n.$slots, "optionFullscreen", A(T({ key: 0 }, { toggleFullscreen: L, isFullscreen: e.isFullscreen })), void 0, !0) : (o(), s($, { key: 1 }, [
|
|
461
478
|
e.isFullscreen ? (o(), f(r, {
|
|
462
479
|
key: 0,
|
|
463
480
|
name: "exitFullscreen",
|
|
@@ -474,8 +491,8 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
474
491
|
g.value && e.titles.fullscreen && !n.$slots.optionFullscreen ? (o(), s("div", {
|
|
475
492
|
key: 2,
|
|
476
493
|
dir: "auto",
|
|
477
|
-
class:
|
|
478
|
-
style:
|
|
494
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.fullscreen, "button-info-left-visible": e.position === "left" && l.value.fullscreen }),
|
|
495
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
479
496
|
}, c(e.titles.fullscreen), 7)) : a("", !0)
|
|
480
497
|
], 32)) : a("", !0),
|
|
481
498
|
e.hasAnimation ? (o(), s("button", {
|
|
@@ -486,14 +503,14 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
486
503
|
onMouseout: t[20] || (t[20] = (u) => l.value.animation = !1),
|
|
487
504
|
onClick: E
|
|
488
505
|
}, [
|
|
489
|
-
n.$slots.optionAnimation ?
|
|
490
|
-
|
|
506
|
+
n.$slots.optionAnimation ? k(n.$slots, "optionAnimation", A(T({ key: 0 }, { toggleAnimation: E, isAnimated: C.value })), void 0, !0) : (o(), s($, { key: 1 }, [
|
|
507
|
+
C.value ? (o(), f(r, {
|
|
491
508
|
key: 0,
|
|
492
509
|
name: "play",
|
|
493
510
|
stroke: e.color,
|
|
494
511
|
style: { "pointer-events": "none" }
|
|
495
512
|
}, null, 8, ["stroke"])) : a("", !0),
|
|
496
|
-
|
|
513
|
+
C.value ? a("", !0) : (o(), f(r, {
|
|
497
514
|
key: 1,
|
|
498
515
|
name: "pause",
|
|
499
516
|
stroke: e.color,
|
|
@@ -503,8 +520,8 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
503
520
|
g.value && e.titles.fullscreen && !n.$slots.optionAnimation ? (o(), s("div", {
|
|
504
521
|
key: 2,
|
|
505
522
|
dir: "auto",
|
|
506
|
-
class:
|
|
507
|
-
style:
|
|
523
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.animation, "button-info-left-visible": e.position === "left" && l.value.animation }),
|
|
524
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
508
525
|
}, c(e.titles.animation), 7)) : a("", !0)
|
|
509
526
|
], 32)) : a("", !0),
|
|
510
527
|
e.hasAnnotator ? (o(), s("button", {
|
|
@@ -515,14 +532,14 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
515
532
|
onMouseout: t[22] || (t[22] = (u) => l.value.annotator = !1),
|
|
516
533
|
onClick: O
|
|
517
534
|
}, [
|
|
518
|
-
n.$slots.optionAnnotator ?
|
|
519
|
-
|
|
535
|
+
n.$slots.optionAnnotator ? k(n.$slots, "optionAnnotator", A(T({ key: 0 }, { toggleAnnotator: O, isAnnotator: S.value })), void 0, !0) : (o(), s($, { key: 1 }, [
|
|
536
|
+
S.value ? (o(), f(r, {
|
|
520
537
|
key: 0,
|
|
521
538
|
name: "annotatorDisabled",
|
|
522
539
|
stroke: e.color,
|
|
523
540
|
style: { "pointer-events": "none" }
|
|
524
541
|
}, null, 8, ["stroke"])) : a("", !0),
|
|
525
|
-
|
|
542
|
+
S.value ? a("", !0) : (o(), f(r, {
|
|
526
543
|
key: 1,
|
|
527
544
|
name: "annotator",
|
|
528
545
|
stroke: e.color,
|
|
@@ -532,16 +549,16 @@ const ie = ["title"], se = ["data-open"], ae = {
|
|
|
532
549
|
g.value && e.titles.annotator && !n.$slots.optionAnnotator ? (o(), s("div", {
|
|
533
550
|
key: 2,
|
|
534
551
|
dir: "auto",
|
|
535
|
-
class:
|
|
536
|
-
style:
|
|
552
|
+
class: d({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && l.value.annotator, "button-info-left-visible": e.position === "left" && l.value.annotator }),
|
|
553
|
+
style: b({ background: e.backgroundColor, color: e.color })
|
|
537
554
|
}, c(e.titles.annotator), 7)) : a("", !0)
|
|
538
555
|
], 32)) : a("", !0)
|
|
539
|
-
], 12,
|
|
556
|
+
], 12, ue)
|
|
540
557
|
], 4)), [
|
|
541
|
-
[
|
|
558
|
+
[le(ie), H]
|
|
542
559
|
]);
|
|
543
560
|
}
|
|
544
|
-
},
|
|
561
|
+
}, de = /* @__PURE__ */ se(re, [["__scopeId", "data-v-13ca0ffa"]]);
|
|
545
562
|
export {
|
|
546
|
-
|
|
563
|
+
de as default
|
|
547
564
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as n } from "./dom-to-png-
|
|
1
|
+
import { d as n } from "./dom-to-png-C7V0EktO.js";
|
|
2
2
|
async function u({ domElement: t, fileName: c, format: f = "png", scale: i = 2, base64: a = !1, img: g = !1 }) {
|
|
3
3
|
if (!t) return Promise.reject("No element provided");
|
|
4
4
|
const h = typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|