vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4
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/README.md +21 -0
- package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
- package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
- package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
- package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
- package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
- package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
- package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
- package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
- package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
- package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
- package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
- package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
- package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
- package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
- package/dist/dom-to-png-DGfv21rX.js +247 -0
- package/dist/img-fdViJw1e.js +20 -0
- package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
- package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +60 -1
- package/dist/types/vue-data-ui.d.ts +60 -1
- package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
- package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
- package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
- package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
- package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
- package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
- package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
- package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
- package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
- package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
- package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
- package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
- package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
- package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
- package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
- package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
- package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
- package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
- package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
- package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
- package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
- package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
- package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
- package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
- package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
- package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
- package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
- package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
- package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
- package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
- package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
- package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
- package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
- package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
- package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
- package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
- package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
- package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
- package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
- package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
- package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
- package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
- package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
- package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
- package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
- package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
- package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
- package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
- package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
- package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
- package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
- package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
- package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
- package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
- package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
- package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
- package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
- package/package.json +1 -1
- package/dist/dom-to-png-BjSUS-jY.js +0 -243
- package/dist/img-DWfzRJdv.js +0 -19
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
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
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import r from "./BaseIcon-d4dmqhkb.js";
|
|
4
|
+
import ne from "./img-fdViJw1e.js";
|
|
5
|
+
import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const ie = ["title"], se = ["data-open"], ae = {
|
|
6
7
|
__name: "UserOptions",
|
|
7
8
|
props: {
|
|
8
9
|
hasPdf: {
|
|
@@ -122,73 +123,88 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
122
123
|
isAnnotation: {
|
|
123
124
|
type: Boolean,
|
|
124
125
|
default: !1
|
|
126
|
+
},
|
|
127
|
+
callbacks: {
|
|
128
|
+
type: Object,
|
|
129
|
+
default() {
|
|
130
|
+
return {};
|
|
131
|
+
}
|
|
125
132
|
}
|
|
126
133
|
},
|
|
127
134
|
emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation", "toggleAnnotator"],
|
|
128
135
|
setup(e, { emit: z }) {
|
|
129
|
-
const
|
|
136
|
+
const i = e, b = z;
|
|
130
137
|
function D() {
|
|
131
|
-
|
|
138
|
+
i.callbacks.pdf ? i.callbacks.pdf(i.chartElement) : b("generatePdf");
|
|
132
139
|
}
|
|
133
140
|
function N() {
|
|
134
|
-
|
|
141
|
+
b("generateCsv", i.callbacks.csv);
|
|
135
142
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
143
|
+
async function j() {
|
|
144
|
+
if (i.callbacks.img) {
|
|
145
|
+
const l = await ne({ domElement: i.chartElement, base64: !0 });
|
|
146
|
+
i.callbacks.img(l);
|
|
147
|
+
} else
|
|
148
|
+
b("generateImage");
|
|
138
149
|
}
|
|
139
|
-
const B =
|
|
140
|
-
function
|
|
141
|
-
B.value = !B.value,
|
|
150
|
+
const B = m(!1);
|
|
151
|
+
function U() {
|
|
152
|
+
i.callbacks.table ? i.callbacks.table() : (B.value = !B.value, b("toggleTable"));
|
|
142
153
|
}
|
|
143
|
-
const $ =
|
|
154
|
+
const $ = m(!1), V = m(!0);
|
|
144
155
|
function O() {
|
|
145
|
-
g.value = window.innerWidth > 600, $.value = !$.value, $.value && (
|
|
156
|
+
g.value = window.innerWidth > 600, $.value = !$.value, $.value && (V.value = !1);
|
|
146
157
|
}
|
|
147
158
|
function K() {
|
|
148
|
-
|
|
159
|
+
i.isPrinting || i.isImaging || ($.value = !1);
|
|
149
160
|
}
|
|
150
161
|
function W() {
|
|
151
162
|
$.value && K();
|
|
152
163
|
}
|
|
153
|
-
const M =
|
|
164
|
+
const M = m(i.isLabelActive);
|
|
154
165
|
function q() {
|
|
155
|
-
M.value = !M.value,
|
|
166
|
+
i.callbacks.labels ? i.callbacks.labels() : (M.value = !M.value, b("toggleLabels"));
|
|
156
167
|
}
|
|
157
|
-
const C =
|
|
168
|
+
const C = m(i.isAnimation);
|
|
158
169
|
function L() {
|
|
159
|
-
C.value = !C.value,
|
|
170
|
+
i.callbacks.animation ? i.callbacks.animation() : (C.value = !C.value, b("toggleAnimation"));
|
|
160
171
|
}
|
|
161
172
|
const S = G({
|
|
162
|
-
get: () =>
|
|
173
|
+
get: () => i.isAnnotation,
|
|
163
174
|
set: (l) => l
|
|
164
175
|
});
|
|
165
176
|
function P() {
|
|
166
|
-
S.value = !S.value,
|
|
177
|
+
i.callbacks.annotator ? i.callbacks.annotator() : (S.value = !S.value, b("toggleAnnotator"));
|
|
167
178
|
}
|
|
168
179
|
function H() {
|
|
169
|
-
|
|
180
|
+
i.callbacks.sort ? i.callbacks.sort() : b("toggleSort");
|
|
170
181
|
}
|
|
171
|
-
const T =
|
|
182
|
+
const T = m(i.isStacked);
|
|
172
183
|
function R() {
|
|
173
|
-
T.value = !T.value,
|
|
184
|
+
i.callbacks.stack ? i.callbacks.stack() : (T.value = !T.value, b("toggleStack"));
|
|
174
185
|
}
|
|
175
|
-
const I =
|
|
186
|
+
const I = m(i.isTooltip);
|
|
176
187
|
function x() {
|
|
177
|
-
I.value = !I.value,
|
|
188
|
+
i.callbacks.tooltip ? i.callbacks.tooltip() : (I.value = !I.value, b("toggleTooltip"));
|
|
178
189
|
}
|
|
179
|
-
const
|
|
190
|
+
const c = m(!1);
|
|
180
191
|
function w(l) {
|
|
181
|
-
|
|
192
|
+
if (i.callbacks.fullscreen)
|
|
193
|
+
i.callbacks.fullscreen();
|
|
194
|
+
else {
|
|
195
|
+
if (!i.chartElement) return;
|
|
196
|
+
l === "in" ? (c.value = !0, i.chartElement.requestFullscreen(), b("toggleFullscreen", !0)) : (c.value = !1, document && document.exitFullscreen(), b("toggleFullscreen", !1));
|
|
197
|
+
}
|
|
182
198
|
}
|
|
183
199
|
function E(l) {
|
|
184
|
-
document.fullscreenElement ?
|
|
200
|
+
document.fullscreenElement ? c.value = !0 : c.value = !1;
|
|
185
201
|
}
|
|
186
202
|
J(() => {
|
|
187
203
|
document.addEventListener("fullscreenchange", E);
|
|
188
204
|
}), Q(() => {
|
|
189
205
|
document.removeEventListener("fullscreenchange", E);
|
|
190
206
|
});
|
|
191
|
-
const g =
|
|
207
|
+
const g = m(window.innerWidth > 600), n = m({
|
|
192
208
|
tooltip: !1,
|
|
193
209
|
pdf: !1,
|
|
194
210
|
csv: !1,
|
|
@@ -201,32 +217,32 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
201
217
|
animation: !1,
|
|
202
218
|
annotator: !1
|
|
203
219
|
});
|
|
204
|
-
return (l, o) => Y((t(),
|
|
220
|
+
return (l, o) => Y((t(), s("div", {
|
|
205
221
|
"data-dom-to-png-ignore": "",
|
|
206
222
|
class: "vue-ui-user-options",
|
|
207
|
-
style:
|
|
223
|
+
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
224
|
}, [
|
|
209
225
|
X("div", {
|
|
210
226
|
tabindex: "0",
|
|
211
227
|
title: $.value ? e.titles.close || "" : e.titles.open || "",
|
|
212
|
-
style:
|
|
228
|
+
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
229
|
onClick: p(O, ["stop"]),
|
|
214
230
|
onKeypress: Z(O, ["enter"])
|
|
215
231
|
}, [
|
|
216
|
-
|
|
217
|
-
ee(
|
|
232
|
+
k(l.$slots, "menuIcon", A(_({ isOpen: $.value, color: e.color })), () => [
|
|
233
|
+
ee(r, {
|
|
218
234
|
name: $.value ? "close" : "menu",
|
|
219
235
|
stroke: e.color,
|
|
220
236
|
"stroke-width": 2
|
|
221
237
|
}, null, 8, ["name", "stroke"])
|
|
222
238
|
], !0)
|
|
223
|
-
], 44,
|
|
239
|
+
], 44, ie),
|
|
224
240
|
X("div", {
|
|
225
241
|
"data-open": $.value,
|
|
226
|
-
class:
|
|
227
|
-
style:
|
|
242
|
+
class: d({ "vue-ui-user-options-drawer": !0 }),
|
|
243
|
+
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
244
|
}, [
|
|
229
|
-
e.hasTooltip ? (t(),
|
|
245
|
+
e.hasTooltip ? (t(), s("button", {
|
|
230
246
|
key: 0,
|
|
231
247
|
tabindex: "0",
|
|
232
248
|
class: "vue-ui-user-options-button",
|
|
@@ -234,27 +250,27 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
234
250
|
onMouseenter: o[0] || (o[0] = (u) => n.value.tooltip = !0),
|
|
235
251
|
onMouseout: o[1] || (o[1] = (u) => n.value.tooltip = !1)
|
|
236
252
|
}, [
|
|
237
|
-
l.$slots.optionTooltip ?
|
|
238
|
-
I.value ? (t(), r
|
|
253
|
+
l.$slots.optionTooltip ? k(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
|
|
254
|
+
I.value ? (t(), f(r, {
|
|
239
255
|
key: 0,
|
|
240
256
|
name: "tooltip",
|
|
241
257
|
stroke: e.color,
|
|
242
258
|
style: { "pointer-events": "none" }
|
|
243
|
-
}, null, 8, ["stroke"])) : (t(), r
|
|
259
|
+
}, null, 8, ["stroke"])) : (t(), f(r, {
|
|
244
260
|
key: 1,
|
|
245
261
|
name: "tooltipDisabled",
|
|
246
262
|
stroke: e.color,
|
|
247
263
|
style: { "pointer-events": "none" }
|
|
248
264
|
}, null, 8, ["stroke"]))
|
|
249
265
|
], 64)),
|
|
250
|
-
g.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(),
|
|
266
|
+
g.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(), s("div", {
|
|
251
267
|
key: 2,
|
|
252
268
|
dir: "auto",
|
|
253
|
-
class:
|
|
254
|
-
style:
|
|
255
|
-
}, y(e.titles.tooltip), 7)) :
|
|
256
|
-
], 32)) :
|
|
257
|
-
e.hasPdf ? (t(),
|
|
269
|
+
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 }),
|
|
270
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
271
|
+
}, y(e.titles.tooltip), 7)) : a("", !0)
|
|
272
|
+
], 32)) : a("", !0),
|
|
273
|
+
e.hasPdf ? (t(), s("button", {
|
|
258
274
|
key: 1,
|
|
259
275
|
tabindex: "0",
|
|
260
276
|
class: "vue-ui-user-options-button",
|
|
@@ -262,28 +278,28 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
262
278
|
onMouseenter: o[2] || (o[2] = (u) => n.value.pdf = !0),
|
|
263
279
|
onMouseout: o[3] || (o[3] = (u) => n.value.pdf = !1)
|
|
264
280
|
}, [
|
|
265
|
-
l.$slots.optionPdf ?
|
|
266
|
-
e.isPrinting ? (t(), r
|
|
281
|
+
l.$slots.optionPdf ? k(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
|
|
282
|
+
e.isPrinting ? (t(), f(r, {
|
|
267
283
|
key: 0,
|
|
268
284
|
name: "spin",
|
|
269
285
|
isSpin: "",
|
|
270
286
|
stroke: e.color,
|
|
271
287
|
style: { "pointer-events": "none" }
|
|
272
|
-
}, null, 8, ["stroke"])) : (t(), r
|
|
288
|
+
}, null, 8, ["stroke"])) : (t(), f(r, {
|
|
273
289
|
key: 1,
|
|
274
290
|
name: "pdf",
|
|
275
291
|
stroke: e.color,
|
|
276
292
|
style: { "pointer-events": "none" }
|
|
277
293
|
}, null, 8, ["stroke"]))
|
|
278
294
|
], 64)),
|
|
279
|
-
g.value && e.titles.pdf && !l.$slots.optionPdf ? (t(),
|
|
295
|
+
g.value && e.titles.pdf && !l.$slots.optionPdf ? (t(), s("div", {
|
|
280
296
|
key: 2,
|
|
281
297
|
dir: "auto",
|
|
282
|
-
class:
|
|
283
|
-
style:
|
|
284
|
-
}, y(e.titles.pdf), 7)) :
|
|
285
|
-
], 32)) :
|
|
286
|
-
e.hasXls ? (t(),
|
|
298
|
+
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 }),
|
|
299
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
300
|
+
}, y(e.titles.pdf), 7)) : a("", !0)
|
|
301
|
+
], 32)) : a("", !0),
|
|
302
|
+
e.hasXls ? (t(), s("button", {
|
|
287
303
|
key: 2,
|
|
288
304
|
tabindex: "0",
|
|
289
305
|
class: "vue-ui-user-options-button",
|
|
@@ -291,70 +307,70 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
291
307
|
onMouseenter: o[4] || (o[4] = (u) => n.value.csv = !0),
|
|
292
308
|
onMouseout: o[5] || (o[5] = (u) => n.value.csv = !1)
|
|
293
309
|
}, [
|
|
294
|
-
l.$slots.optionCsv ?
|
|
310
|
+
l.$slots.optionCsv ? k(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(), f(r, {
|
|
295
311
|
key: 1,
|
|
296
312
|
name: "excel",
|
|
297
313
|
stroke: e.color,
|
|
298
314
|
style: { "pointer-events": "none" }
|
|
299
315
|
}, null, 8, ["stroke"])),
|
|
300
|
-
g.value && e.titles.csv && !l.$slots.optionCsv ? (t(),
|
|
316
|
+
g.value && e.titles.csv && !l.$slots.optionCsv ? (t(), s("div", {
|
|
301
317
|
key: 2,
|
|
302
318
|
dir: "auto",
|
|
303
|
-
class:
|
|
304
|
-
style:
|
|
305
|
-
}, y(e.titles.csv), 7)) :
|
|
306
|
-
], 32)) :
|
|
307
|
-
e.hasImg ? (t(),
|
|
319
|
+
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 }),
|
|
320
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
321
|
+
}, y(e.titles.csv), 7)) : a("", !0)
|
|
322
|
+
], 32)) : a("", !0),
|
|
323
|
+
e.hasImg ? (t(), s("button", {
|
|
308
324
|
key: 3,
|
|
309
325
|
tabindex: "0",
|
|
310
326
|
class: "vue-ui-user-options-button",
|
|
311
|
-
onClick:
|
|
327
|
+
onClick: j,
|
|
312
328
|
onMouseenter: o[6] || (o[6] = (u) => n.value.img = !0),
|
|
313
329
|
onMouseout: o[7] || (o[7] = (u) => n.value.img = !1)
|
|
314
330
|
}, [
|
|
315
|
-
l.$slots.optionImg ?
|
|
316
|
-
e.isImaging ? (t(), r
|
|
331
|
+
l.$slots.optionImg ? k(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
|
|
332
|
+
e.isImaging ? (t(), f(r, {
|
|
317
333
|
key: 0,
|
|
318
334
|
name: "spin",
|
|
319
335
|
isSpin: "",
|
|
320
336
|
stroke: e.color,
|
|
321
337
|
style: { "pointer-events": "none" }
|
|
322
|
-
}, null, 8, ["stroke"])) : (t(), r
|
|
338
|
+
}, null, 8, ["stroke"])) : (t(), f(r, {
|
|
323
339
|
key: 1,
|
|
324
340
|
name: "image",
|
|
325
341
|
stroke: e.color,
|
|
326
342
|
style: { "pointer-events": "none" }
|
|
327
343
|
}, null, 8, ["stroke"]))
|
|
328
344
|
], 64)),
|
|
329
|
-
g.value && e.titles.img && !l.$slots.optionImg ? (t(),
|
|
345
|
+
g.value && e.titles.img && !l.$slots.optionImg ? (t(), s("div", {
|
|
330
346
|
key: 2,
|
|
331
347
|
dir: "auto",
|
|
332
|
-
class:
|
|
333
|
-
style:
|
|
334
|
-
}, y(e.titles.img), 7)) :
|
|
335
|
-
], 32)) :
|
|
336
|
-
e.hasTable ? (t(),
|
|
348
|
+
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 }),
|
|
349
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
350
|
+
}, y(e.titles.img), 7)) : a("", !0)
|
|
351
|
+
], 32)) : a("", !0),
|
|
352
|
+
e.hasTable ? (t(), s("button", {
|
|
337
353
|
key: 4,
|
|
338
354
|
tabindex: "0",
|
|
339
355
|
class: "vue-ui-user-options-button",
|
|
340
|
-
onClick:
|
|
356
|
+
onClick: U,
|
|
341
357
|
onMouseenter: o[8] || (o[8] = (u) => n.value.table = !0),
|
|
342
358
|
onMouseout: o[9] || (o[9] = (u) => n.value.table = !1)
|
|
343
359
|
}, [
|
|
344
|
-
l.$slots.optionTable ?
|
|
360
|
+
l.$slots.optionTable ? k(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(), f(r, {
|
|
345
361
|
key: 1,
|
|
346
362
|
name: B.value ? "tableClose" : "tableOpen",
|
|
347
363
|
stroke: e.color,
|
|
348
364
|
style: { "pointer-events": "none" }
|
|
349
365
|
}, null, 8, ["name", "stroke"])),
|
|
350
|
-
g.value && e.titles.table && !l.$slots.optionTable ? (t(),
|
|
366
|
+
g.value && e.titles.table && !l.$slots.optionTable ? (t(), s("div", {
|
|
351
367
|
key: 2,
|
|
352
368
|
dir: "auto",
|
|
353
|
-
class:
|
|
354
|
-
style:
|
|
355
|
-
}, y(e.titles.table), 7)) :
|
|
356
|
-
], 32)) :
|
|
357
|
-
e.hasLabel ? (t(),
|
|
369
|
+
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 }),
|
|
370
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
371
|
+
}, y(e.titles.table), 7)) : a("", !0)
|
|
372
|
+
], 32)) : a("", !0),
|
|
373
|
+
e.hasLabel ? (t(), s("button", {
|
|
358
374
|
key: 5,
|
|
359
375
|
tabindex: "0",
|
|
360
376
|
class: "vue-ui-user-options-button",
|
|
@@ -362,20 +378,20 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
362
378
|
onMouseenter: o[10] || (o[10] = (u) => n.value.labels = !0),
|
|
363
379
|
onMouseout: o[11] || (o[11] = (u) => n.value.labels = !1)
|
|
364
380
|
}, [
|
|
365
|
-
l.$slots.optionLabels ?
|
|
381
|
+
l.$slots.optionLabels ? k(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(), f(r, {
|
|
366
382
|
key: 1,
|
|
367
383
|
name: M.value ? "labelClose" : "labelOpen",
|
|
368
384
|
stroke: e.color,
|
|
369
385
|
style: { "pointer-events": "none" }
|
|
370
386
|
}, null, 8, ["name", "stroke"])),
|
|
371
|
-
g.value && e.titles.labels && !l.$slots.optionLabels ? (t(),
|
|
387
|
+
g.value && e.titles.labels && !l.$slots.optionLabels ? (t(), s("div", {
|
|
372
388
|
key: 2,
|
|
373
389
|
dir: "auto",
|
|
374
|
-
class:
|
|
375
|
-
style:
|
|
376
|
-
}, y(e.titles.labels), 7)) :
|
|
377
|
-
], 32)) :
|
|
378
|
-
e.hasSort ? (t(),
|
|
390
|
+
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 }),
|
|
391
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
392
|
+
}, y(e.titles.labels), 7)) : a("", !0)
|
|
393
|
+
], 32)) : a("", !0),
|
|
394
|
+
e.hasSort ? (t(), s("button", {
|
|
379
395
|
key: 6,
|
|
380
396
|
tabindex: "0",
|
|
381
397
|
class: "vue-ui-user-options-button",
|
|
@@ -383,20 +399,20 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
383
399
|
onMouseenter: o[12] || (o[12] = (u) => n.value.sort = !0),
|
|
384
400
|
onMouseout: o[13] || (o[13] = (u) => n.value.sort = !1)
|
|
385
401
|
}, [
|
|
386
|
-
l.$slots.optionSort ?
|
|
402
|
+
l.$slots.optionSort ? k(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(), f(r, {
|
|
387
403
|
key: 1,
|
|
388
404
|
name: "sort",
|
|
389
405
|
stroke: e.color,
|
|
390
406
|
style: { "pointer-events": "none" }
|
|
391
407
|
}, null, 8, ["stroke"])),
|
|
392
|
-
g.value && e.titles.sort && !l.$slots.optionSort ? (t(),
|
|
408
|
+
g.value && e.titles.sort && !l.$slots.optionSort ? (t(), s("div", {
|
|
393
409
|
key: 2,
|
|
394
410
|
dir: "auto",
|
|
395
|
-
class:
|
|
396
|
-
style:
|
|
397
|
-
}, y(e.titles.sort), 7)) :
|
|
398
|
-
], 32)) :
|
|
399
|
-
e.hasStack ? (t(),
|
|
411
|
+
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 }),
|
|
412
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
413
|
+
}, y(e.titles.sort), 7)) : a("", !0)
|
|
414
|
+
], 32)) : a("", !0),
|
|
415
|
+
e.hasStack ? (t(), s("button", {
|
|
400
416
|
key: 7,
|
|
401
417
|
tabindex: "0",
|
|
402
418
|
class: "vue-ui-user-options-button",
|
|
@@ -404,56 +420,56 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
404
420
|
onMouseenter: o[14] || (o[14] = (u) => n.value.stack = !0),
|
|
405
421
|
onMouseout: o[15] || (o[15] = (u) => n.value.stack = !1)
|
|
406
422
|
}, [
|
|
407
|
-
l.$slots.optionStack ?
|
|
408
|
-
T.value ? (t(), r
|
|
423
|
+
l.$slots.optionStack ? k(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), s(h, { key: 1 }, [
|
|
424
|
+
T.value ? (t(), f(r, {
|
|
409
425
|
key: 0,
|
|
410
426
|
name: "unstack",
|
|
411
427
|
stroke: e.color,
|
|
412
428
|
style: { "pointer-events": "none" }
|
|
413
|
-
}, null, 8, ["stroke"])) : (t(), r
|
|
429
|
+
}, null, 8, ["stroke"])) : (t(), f(r, {
|
|
414
430
|
key: 1,
|
|
415
431
|
name: "stack",
|
|
416
432
|
stroke: e.color,
|
|
417
433
|
style: { "pointer-events": "none" }
|
|
418
434
|
}, null, 8, ["stroke"]))
|
|
419
435
|
], 64)),
|
|
420
|
-
g.value && e.titles.stack && !l.$slots.optionStack ? (t(),
|
|
436
|
+
g.value && e.titles.stack && !l.$slots.optionStack ? (t(), s("div", {
|
|
421
437
|
key: 2,
|
|
422
438
|
dir: "auto",
|
|
423
|
-
class:
|
|
424
|
-
style:
|
|
425
|
-
}, y(e.titles.stack), 7)) :
|
|
426
|
-
], 32)) :
|
|
427
|
-
e.hasFullscreen ? (t(),
|
|
439
|
+
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 }),
|
|
440
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
441
|
+
}, y(e.titles.stack), 7)) : a("", !0)
|
|
442
|
+
], 32)) : a("", !0),
|
|
443
|
+
e.hasFullscreen ? (t(), s("button", {
|
|
428
444
|
key: 8,
|
|
429
445
|
tabindex: "0",
|
|
430
446
|
class: "vue-ui-user-options-button",
|
|
431
447
|
onMouseenter: o[16] || (o[16] = (u) => n.value.fullscreen = !0),
|
|
432
448
|
onMouseout: o[17] || (o[17] = (u) => n.value.fullscreen = !1),
|
|
433
|
-
onClick: o[18] || (o[18] = (u) => w(
|
|
449
|
+
onClick: o[18] || (o[18] = (u) => w(c.value ? "out" : "in"))
|
|
434
450
|
}, [
|
|
435
|
-
l.$slots.optionFullscreen ?
|
|
436
|
-
|
|
451
|
+
l.$slots.optionFullscreen ? k(l.$slots, "optionFullscreen", A(F({ key: 0 }, { toggleFullscreen: w, isFullscreen: c.value })), void 0, !0) : (t(), s(h, { key: 1 }, [
|
|
452
|
+
c.value ? (t(), f(r, {
|
|
437
453
|
key: 0,
|
|
438
454
|
name: "exitFullscreen",
|
|
439
455
|
stroke: e.color,
|
|
440
456
|
style: { "pointer-events": "none" }
|
|
441
|
-
}, null, 8, ["stroke"])) :
|
|
442
|
-
|
|
457
|
+
}, null, 8, ["stroke"])) : a("", !0),
|
|
458
|
+
c.value ? a("", !0) : (t(), f(r, {
|
|
443
459
|
key: 1,
|
|
444
460
|
name: "fullscreen",
|
|
445
461
|
stroke: e.color,
|
|
446
462
|
style: { "pointer-events": "none" }
|
|
447
463
|
}, null, 8, ["stroke"]))
|
|
448
464
|
], 64)),
|
|
449
|
-
g.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(),
|
|
465
|
+
g.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(), s("div", {
|
|
450
466
|
key: 2,
|
|
451
467
|
dir: "auto",
|
|
452
|
-
class:
|
|
453
|
-
style:
|
|
454
|
-
}, y(e.titles.fullscreen), 7)) :
|
|
455
|
-
], 32)) :
|
|
456
|
-
e.hasAnimation ? (t(),
|
|
468
|
+
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 }),
|
|
469
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
470
|
+
}, y(e.titles.fullscreen), 7)) : a("", !0)
|
|
471
|
+
], 32)) : a("", !0),
|
|
472
|
+
e.hasAnimation ? (t(), s("button", {
|
|
457
473
|
key: 9,
|
|
458
474
|
tabindex: "0",
|
|
459
475
|
class: "vue-ui-user-options-button",
|
|
@@ -461,28 +477,28 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
461
477
|
onMouseout: o[20] || (o[20] = (u) => n.value.animation = !1),
|
|
462
478
|
onClick: L
|
|
463
479
|
}, [
|
|
464
|
-
l.$slots.optionAnimation ?
|
|
465
|
-
C.value ? (t(), r
|
|
480
|
+
l.$slots.optionAnimation ? k(l.$slots, "optionAnimation", A(F({ key: 0 }, { toggleAnimation: L, isAnimated: C.value })), void 0, !0) : (t(), s(h, { key: 1 }, [
|
|
481
|
+
C.value ? (t(), f(r, {
|
|
466
482
|
key: 0,
|
|
467
483
|
name: "play",
|
|
468
484
|
stroke: e.color,
|
|
469
485
|
style: { "pointer-events": "none" }
|
|
470
|
-
}, null, 8, ["stroke"])) :
|
|
471
|
-
C.value ?
|
|
486
|
+
}, null, 8, ["stroke"])) : a("", !0),
|
|
487
|
+
C.value ? a("", !0) : (t(), f(r, {
|
|
472
488
|
key: 1,
|
|
473
489
|
name: "pause",
|
|
474
490
|
stroke: e.color,
|
|
475
491
|
style: { "pointer-events": "none" }
|
|
476
492
|
}, null, 8, ["stroke"]))
|
|
477
493
|
], 64)),
|
|
478
|
-
g.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(),
|
|
494
|
+
g.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(), s("div", {
|
|
479
495
|
key: 2,
|
|
480
496
|
dir: "auto",
|
|
481
|
-
class:
|
|
482
|
-
style:
|
|
483
|
-
}, y(e.titles.animation), 7)) :
|
|
484
|
-
], 32)) :
|
|
485
|
-
e.hasAnnotator ? (t(),
|
|
497
|
+
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 }),
|
|
498
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
499
|
+
}, y(e.titles.animation), 7)) : a("", !0)
|
|
500
|
+
], 32)) : a("", !0),
|
|
501
|
+
e.hasAnnotator ? (t(), s("button", {
|
|
486
502
|
key: 10,
|
|
487
503
|
tabindex: "0",
|
|
488
504
|
class: "vue-ui-user-options-button",
|
|
@@ -490,33 +506,33 @@ const le = ["title"], ie = ["data-open"], se = {
|
|
|
490
506
|
onMouseout: o[22] || (o[22] = (u) => n.value.annotator = !1),
|
|
491
507
|
onClick: P
|
|
492
508
|
}, [
|
|
493
|
-
l.$slots.optionAnnotator ?
|
|
494
|
-
S.value ? (t(), r
|
|
509
|
+
l.$slots.optionAnnotator ? k(l.$slots, "optionAnnotator", A(F({ key: 0 }, { toggleAnnotator: P, isAnnotator: S.value })), void 0, !0) : (t(), s(h, { key: 1 }, [
|
|
510
|
+
S.value ? (t(), f(r, {
|
|
495
511
|
key: 0,
|
|
496
512
|
name: "annotatorDisabled",
|
|
497
513
|
stroke: e.color,
|
|
498
514
|
style: { "pointer-events": "none" }
|
|
499
|
-
}, null, 8, ["stroke"])) :
|
|
500
|
-
S.value ?
|
|
515
|
+
}, null, 8, ["stroke"])) : a("", !0),
|
|
516
|
+
S.value ? a("", !0) : (t(), f(r, {
|
|
501
517
|
key: 1,
|
|
502
518
|
name: "annotator",
|
|
503
519
|
stroke: e.color,
|
|
504
520
|
style: { "pointer-events": "none" }
|
|
505
521
|
}, null, 8, ["stroke"]))
|
|
506
522
|
], 64)),
|
|
507
|
-
g.value && e.titles.annotator && !l.$slots.optionAnnotator ? (t(),
|
|
523
|
+
g.value && e.titles.annotator && !l.$slots.optionAnnotator ? (t(), s("div", {
|
|
508
524
|
key: 2,
|
|
509
525
|
dir: "auto",
|
|
510
|
-
class:
|
|
511
|
-
style:
|
|
512
|
-
}, y(e.titles.annotator), 7)) :
|
|
513
|
-
], 32)) :
|
|
514
|
-
], 12,
|
|
526
|
+
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 }),
|
|
527
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
528
|
+
}, y(e.titles.annotator), 7)) : a("", !0)
|
|
529
|
+
], 32)) : a("", !0)
|
|
530
|
+
], 12, se)
|
|
515
531
|
], 4)), [
|
|
516
532
|
[te(oe), W]
|
|
517
533
|
]);
|
|
518
534
|
}
|
|
519
|
-
},
|
|
535
|
+
}, ge = /* @__PURE__ */ le(ae, [["__scopeId", "data-v-a4e9fb31"]]);
|
|
520
536
|
export {
|
|
521
|
-
|
|
537
|
+
ge as default
|
|
522
538
|
};
|