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.
- package/README.md +15 -0
- package/dist/{Arrow-HbfibAF0.js → Arrow-kQyQXUUg.js} +1 -1
- package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
- package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-DaR0sIWZ.js} +1 -1
- package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-Bj3sq9o7.js} +2 -2
- package/dist/{DataTable-CsoAI95B.js → DataTable-BBqbcutV.js} +2 -2
- package/dist/{Legend-ZW-PFcHg.js → Legend-DRqzYrP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
- package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-ClpqQxYT.js} +1 -1
- package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-B-T7XvxF.js} +3 -3
- package/dist/{Shape-BBbhObHC.js → Shape-DEWxbZ-l.js} +1 -1
- package/dist/{Slicer-Vh74fjdf.js → Slicer-o6jJH5bw.js} +2 -2
- package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-LPnbBoFu.js} +1 -1
- package/dist/{Title-Dx8ctnVy.js → Title-apr_T9tg.js} +1 -1
- package/dist/{Tooltip-COHlzpZI.js → Tooltip-BuHsMAfp.js} +1 -1
- package/dist/{UserOptions-CGn3YdRV.js → UserOptions-OVNxxnq5.js} +144 -133
- package/dist/{dom-to-png-BjSUS-jY.js → dom-to-png-C0Ct8ClX.js} +1 -1
- package/dist/{img-DWfzRJdv.js → img-P0SFFw37.js} +1 -1
- package/dist/{index-CbcpITE_.js → index-CH_mJIWj.js} +185 -127
- package/dist/{pdf-Cy09nTjn.js → pdf-Jun3ogRn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +42 -0
- package/dist/types/vue-data-ui.d.ts +42 -0
- package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-rMR-JeOJ.js} +1 -1
- package/dist/{usePrinter-u-gQiRNz.js → usePrinter-DJ7WfWUs.js} +2 -2
- package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-D7AaTKU6.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
- package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
- package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
- package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
- package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
- package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
- package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
- package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
- package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
- package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
- package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
- package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
- package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
- package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
- package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
- package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
- package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-CYWiZjrP.js} +9 -8
- package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
- package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
- package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BJgJgef_.js} +33 -32
- package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-DBclpybR.js} +3 -3
- package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
- package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
- package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
- package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
- package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
- package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
- package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-UzMmwtvF.js} +9 -8
- package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
- package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
- package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
- package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DMfv2hSb.js} +6 -6
- package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CFYHJrxj.js} +2 -2
- package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
- package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
- package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-CyX30Ccv.js} +23 -22
- package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BEDnWByj.js} +10 -9
- package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
- package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-79itAe84.js} +2 -2
- package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
- package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
- package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
- package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
- package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
- package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-DFTE1OH5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
- package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
- package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
- package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
- package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-B0CPNusH.js} +229 -228
- package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
- package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
- package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
- package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
- package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-BhUsfhY5.js} +8 -7
- package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-CEFkua9H.js} +918 -811
- package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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
|
|
135
|
+
const i = e, b = z;
|
|
130
136
|
function D() {
|
|
131
|
-
|
|
137
|
+
i.callbacks.pdf ? i.callbacks.pdf() : b("generatePdf");
|
|
132
138
|
}
|
|
133
139
|
function N() {
|
|
134
|
-
|
|
140
|
+
i.callbacks.csv ? i.callbacks.csv() : b("generateCsv");
|
|
135
141
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
142
|
+
function j() {
|
|
143
|
+
i.callbacks.img ? i.callbacks.img() : b("generateImage");
|
|
138
144
|
}
|
|
139
|
-
const B =
|
|
140
|
-
function
|
|
141
|
-
B.value = !B.value,
|
|
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 $ =
|
|
149
|
+
const $ = m(!1), V = m(!0);
|
|
144
150
|
function O() {
|
|
145
|
-
g.value = window.innerWidth > 600, $.value = !$.value, $.value && (
|
|
151
|
+
g.value = window.innerWidth > 600, $.value = !$.value, $.value && (V.value = !1);
|
|
146
152
|
}
|
|
147
153
|
function K() {
|
|
148
|
-
|
|
154
|
+
i.isPrinting || i.isImaging || ($.value = !1);
|
|
149
155
|
}
|
|
150
156
|
function W() {
|
|
151
157
|
$.value && K();
|
|
152
158
|
}
|
|
153
|
-
const M =
|
|
159
|
+
const M = m(i.isLabelActive);
|
|
154
160
|
function q() {
|
|
155
|
-
M.value = !M.value,
|
|
161
|
+
i.callbacks.labels ? i.callbacks.labels() : (M.value = !M.value, b("toggleLabels"));
|
|
156
162
|
}
|
|
157
|
-
const C =
|
|
163
|
+
const C = m(i.isAnimation);
|
|
158
164
|
function L() {
|
|
159
|
-
C.value = !C.value,
|
|
165
|
+
i.callbacks.animation ? i.callbacks.animation() : (C.value = !C.value, b("toggleAnimation"));
|
|
160
166
|
}
|
|
161
167
|
const S = G({
|
|
162
|
-
get: () =>
|
|
168
|
+
get: () => i.isAnnotation,
|
|
163
169
|
set: (l) => l
|
|
164
170
|
});
|
|
165
171
|
function P() {
|
|
166
|
-
S.value = !S.value,
|
|
172
|
+
i.callbacks.annotator ? i.callbacks.annotator() : (S.value = !S.value, b("toggleAnnotator"));
|
|
167
173
|
}
|
|
168
174
|
function H() {
|
|
169
|
-
|
|
175
|
+
i.callbacks.sort ? i.callbacks.sort() : b("toggleSort");
|
|
170
176
|
}
|
|
171
|
-
const T =
|
|
177
|
+
const T = m(i.isStacked);
|
|
172
178
|
function R() {
|
|
173
|
-
T.value = !T.value,
|
|
179
|
+
i.callbacks.stack ? i.callbacks.stack() : (T.value = !T.value, b("toggleStack"));
|
|
174
180
|
}
|
|
175
|
-
const I =
|
|
181
|
+
const I = m(i.isTooltip);
|
|
176
182
|
function x() {
|
|
177
|
-
I.value = !I.value,
|
|
183
|
+
i.callbacks.tooltip ? i.callbacks.tooltip() : (I.value = !I.value, b("toggleTooltip"));
|
|
178
184
|
}
|
|
179
|
-
const
|
|
185
|
+
const c = m(!1);
|
|
180
186
|
function w(l) {
|
|
181
|
-
|
|
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 ?
|
|
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 =
|
|
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(),
|
|
215
|
+
return (l, o) => Y((t(), s("div", {
|
|
205
216
|
"data-dom-to-png-ignore": "",
|
|
206
217
|
class: "vue-ui-user-options",
|
|
207
|
-
style:
|
|
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:
|
|
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
|
-
|
|
217
|
-
ee(
|
|
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:
|
|
227
|
-
style:
|
|
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(),
|
|
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 ?
|
|
238
|
-
I.value ? (t(), r
|
|
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
|
|
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(),
|
|
261
|
+
g.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(), s("div", {
|
|
251
262
|
key: 2,
|
|
252
263
|
dir: "auto",
|
|
253
|
-
class:
|
|
254
|
-
style:
|
|
255
|
-
}, y(e.titles.tooltip), 7)) :
|
|
256
|
-
], 32)) :
|
|
257
|
-
e.hasPdf ? (t(),
|
|
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 ?
|
|
266
|
-
e.isPrinting ? (t(), r
|
|
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
|
|
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(),
|
|
290
|
+
g.value && e.titles.pdf && !l.$slots.optionPdf ? (t(), s("div", {
|
|
280
291
|
key: 2,
|
|
281
292
|
dir: "auto",
|
|
282
|
-
class:
|
|
283
|
-
style:
|
|
284
|
-
}, y(e.titles.pdf), 7)) :
|
|
285
|
-
], 32)) :
|
|
286
|
-
e.hasXls ? (t(),
|
|
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 ?
|
|
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(),
|
|
311
|
+
g.value && e.titles.csv && !l.$slots.optionCsv ? (t(), s("div", {
|
|
301
312
|
key: 2,
|
|
302
313
|
dir: "auto",
|
|
303
|
-
class:
|
|
304
|
-
style:
|
|
305
|
-
}, y(e.titles.csv), 7)) :
|
|
306
|
-
], 32)) :
|
|
307
|
-
e.hasImg ? (t(),
|
|
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:
|
|
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 ?
|
|
316
|
-
e.isImaging ? (t(), r
|
|
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
|
|
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(),
|
|
340
|
+
g.value && e.titles.img && !l.$slots.optionImg ? (t(), s("div", {
|
|
330
341
|
key: 2,
|
|
331
342
|
dir: "auto",
|
|
332
|
-
class:
|
|
333
|
-
style:
|
|
334
|
-
}, y(e.titles.img), 7)) :
|
|
335
|
-
], 32)) :
|
|
336
|
-
e.hasTable ? (t(),
|
|
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:
|
|
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 ?
|
|
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(),
|
|
361
|
+
g.value && e.titles.table && !l.$slots.optionTable ? (t(), s("div", {
|
|
351
362
|
key: 2,
|
|
352
363
|
dir: "auto",
|
|
353
|
-
class:
|
|
354
|
-
style:
|
|
355
|
-
}, y(e.titles.table), 7)) :
|
|
356
|
-
], 32)) :
|
|
357
|
-
e.hasLabel ? (t(),
|
|
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 ?
|
|
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(),
|
|
382
|
+
g.value && e.titles.labels && !l.$slots.optionLabels ? (t(), s("div", {
|
|
372
383
|
key: 2,
|
|
373
384
|
dir: "auto",
|
|
374
|
-
class:
|
|
375
|
-
style:
|
|
376
|
-
}, y(e.titles.labels), 7)) :
|
|
377
|
-
], 32)) :
|
|
378
|
-
e.hasSort ? (t(),
|
|
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 ?
|
|
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(),
|
|
403
|
+
g.value && e.titles.sort && !l.$slots.optionSort ? (t(), s("div", {
|
|
393
404
|
key: 2,
|
|
394
405
|
dir: "auto",
|
|
395
|
-
class:
|
|
396
|
-
style:
|
|
397
|
-
}, y(e.titles.sort), 7)) :
|
|
398
|
-
], 32)) :
|
|
399
|
-
e.hasStack ? (t(),
|
|
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 ?
|
|
408
|
-
T.value ? (t(), r
|
|
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
|
|
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(),
|
|
431
|
+
g.value && e.titles.stack && !l.$slots.optionStack ? (t(), s("div", {
|
|
421
432
|
key: 2,
|
|
422
433
|
dir: "auto",
|
|
423
|
-
class:
|
|
424
|
-
style:
|
|
425
|
-
}, y(e.titles.stack), 7)) :
|
|
426
|
-
], 32)) :
|
|
427
|
-
e.hasFullscreen ? (t(),
|
|
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(
|
|
444
|
+
onClick: o[18] || (o[18] = (u) => w(c.value ? "out" : "in"))
|
|
434
445
|
}, [
|
|
435
|
-
l.$slots.optionFullscreen ?
|
|
436
|
-
|
|
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"])) :
|
|
442
|
-
|
|
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(),
|
|
460
|
+
g.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(), s("div", {
|
|
450
461
|
key: 2,
|
|
451
462
|
dir: "auto",
|
|
452
|
-
class:
|
|
453
|
-
style:
|
|
454
|
-
}, y(e.titles.fullscreen), 7)) :
|
|
455
|
-
], 32)) :
|
|
456
|
-
e.hasAnimation ? (t(),
|
|
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 ?
|
|
465
|
-
C.value ? (t(), r
|
|
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"])) :
|
|
471
|
-
C.value ?
|
|
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(),
|
|
489
|
+
g.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(), s("div", {
|
|
479
490
|
key: 2,
|
|
480
491
|
dir: "auto",
|
|
481
|
-
class:
|
|
482
|
-
style:
|
|
483
|
-
}, y(e.titles.animation), 7)) :
|
|
484
|
-
], 32)) :
|
|
485
|
-
e.hasAnnotator ? (t(),
|
|
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 ?
|
|
494
|
-
S.value ? (t(), r
|
|
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"])) :
|
|
500
|
-
S.value ?
|
|
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(),
|
|
518
|
+
g.value && e.titles.annotator && !l.$slots.optionAnnotator ? (t(), s("div", {
|
|
508
519
|
key: 2,
|
|
509
520
|
dir: "auto",
|
|
510
|
-
class:
|
|
511
|
-
style:
|
|
512
|
-
}, y(e.titles.annotator), 7)) :
|
|
513
|
-
], 32)) :
|
|
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-
|
|
530
|
+
}, ve = /* @__PURE__ */ ne(se, [["__scopeId", "data-v-3f9698be"]]);
|
|
520
531
|
export {
|
|
521
532
|
ve as default
|
|
522
533
|
};
|