vue-data-ui 3.9.21 → 3.10.0
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 +76 -57
- package/dist/{BaseDraggableDialog-LQz9Nmbj.js → BaseDraggableDialog-O2XSymlZ.js} +1 -1
- package/dist/{BaseIcon-rQpZbUMg.js → BaseIcon-B9bGT7HU.js} +22 -8
- package/dist/{BaseZoomControls-8e6l8HWf.js → BaseZoomControls-B4rpv4Kk.js} +1 -1
- package/dist/{ColorPicker-C-M_3O5E.js → ColorPicker-VKEPgk58.js} +1 -1
- package/dist/{DataTable-CRLvcC19.js → DataTable-DEwh__D8.js} +15 -15
- package/dist/{NonSvgPenAndPaper-DHu-zNDR.js → NonSvgPenAndPaper-CxbOhI52.js} +2 -2
- package/dist/{PackageVersion-BiGAIrqC.js → PackageVersion-C-JOGZBL.js} +1 -1
- package/dist/{PenAndPaper-D6dHXPfu.js → PenAndPaper-CulSakut.js} +2 -2
- package/dist/{Slicer-iEpMHxAy.js → Slicer-EQH4YKwe.js} +1 -1
- package/dist/{SlicerPreview-Dfih1r3H.js → SlicerPreview-Ddfxn6es.js} +1 -1
- package/dist/{Title-B7pkWzTi.js → Title-B5L2jweB.js} +1 -1
- package/dist/UserOptions-5pXc4J-c.js +1347 -0
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +5 -0
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +222 -5
- package/dist/types/vue-ui-bump.d.ts +16 -0
- package/dist/{useNestedProp-gqRzbKJy.js → useNestedProp-BCt4DMkT.js} +271 -163
- package/dist/{vue-data-ui-C0zyzSI7.js → vue-data-ui-CwfD22m4.js} +79 -77
- package/dist/vue-data-ui.js +89 -87
- package/dist/{vue-ui-3d-bar-DlUrsPdB.js → vue-ui-3d-bar-DAr11NEe.js} +3 -3
- package/dist/{vue-ui-accordion-Cy3d_0_S.js → vue-ui-accordion-CAXPDm31.js} +2 -2
- package/dist/{vue-ui-age-pyramid-CW2CmApD.js → vue-ui-age-pyramid-KApqwR11.js} +3 -3
- package/dist/{vue-ui-annotator-DgDMYDKr.js → vue-ui-annotator-D-x-F49X.js} +4 -4
- package/dist/{vue-ui-bullet-Dfz8VKqe.js → vue-ui-bullet-D3ZOexko.js} +3 -3
- package/dist/vue-ui-bump-BJUb7fNz.js +1002 -0
- package/dist/{vue-ui-candlestick-xyQGCkr8.js → vue-ui-candlestick-BBwYtV1-.js} +4 -4
- package/dist/{vue-ui-carousel-table-eqx_-juF.js → vue-ui-carousel-table-DrzQReuc.js} +2 -2
- package/dist/{vue-ui-chestnut-DQM73VJP.js → vue-ui-chestnut-ByqOYfmS.js} +2 -2
- package/dist/{vue-ui-chord-ij0fy_Vk.js → vue-ui-chord-3k3MxDxL.js} +3 -3
- package/dist/{vue-ui-circle-pack-iL6dfKsl.js → vue-ui-circle-pack-U-fW2dBh.js} +3 -3
- package/dist/{vue-ui-cursor-BwtAgyzA.js → vue-ui-cursor-PxyKLKT4.js} +2 -2
- package/dist/{vue-ui-dag-DyVpGUMm.js → vue-ui-dag-BgB4pBHg.js} +4 -4
- package/dist/{vue-ui-dashboard-Dp8tt7UQ.js → vue-ui-dashboard-Bb0qmaCv.js} +66 -66
- package/dist/{vue-ui-digits-bUDar5q1.js → vue-ui-digits-DWt_f5c-.js} +1 -1
- package/dist/{vue-ui-donut-XhYkW3YB.js → vue-ui-donut-Ce4aLPAr.js} +3 -3
- package/dist/{vue-ui-donut-evolution-BtSDnqw5.js → vue-ui-donut-evolution-Dn8sOIr-.js} +4 -4
- package/dist/{vue-ui-dumbbell-Dk9GEs9q.js → vue-ui-dumbbell-Bu8opmEM.js} +3 -3
- package/dist/{vue-ui-flow-Dmadpe5T.js → vue-ui-flow-CavJTxRY.js} +3 -3
- package/dist/{vue-ui-funnel-BGZmzIxy.js → vue-ui-funnel-CWSmOHEt.js} +3 -3
- package/dist/{vue-ui-galaxy-btCfKlLt.js → vue-ui-galaxy-CqeQVqG-.js} +3 -3
- package/dist/{vue-ui-gauge-CIq10clu.js → vue-ui-gauge-DnU9JZ0v.js} +3 -3
- package/dist/{vue-ui-geo-C72smrB2.js → vue-ui-geo-Dg8W127k.js} +4 -4
- package/dist/{vue-ui-gizmo-BCy3dErL.js → vue-ui-gizmo-BfyTXxBY.js} +2 -2
- package/dist/{vue-ui-heatmap-DX1asUT7.js → vue-ui-heatmap-D_JOEm4-.js} +4 -4
- package/dist/{vue-ui-history-plot-DFtOy7CE.js → vue-ui-history-plot-DgMc6-9X.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-BpN0u8hd.js → vue-ui-horizontal-bar-BPX7YBdV.js} +8 -8
- package/dist/{vue-ui-kpi-CnmyYRvK.js → vue-ui-kpi-BqCS6onP.js} +2 -2
- package/dist/{vue-ui-mini-loader-DVEVYQd5.js → vue-ui-mini-loader-CcXuJ3iD.js} +1 -1
- package/dist/{vue-ui-molecule-CETOdJ0z.js → vue-ui-molecule-CX-pPp0u.js} +2 -2
- package/dist/{vue-ui-mood-radar-BOq7hUtX.js → vue-ui-mood-radar-3nHlZfrB.js} +3 -3
- package/dist/{vue-ui-nested-donuts-C6Popcf-.js → vue-ui-nested-donuts-cz79gQlJ.js} +3 -3
- package/dist/{vue-ui-onion-BHIySmN4.js → vue-ui-onion-yseOpPeu.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BAAEnWGD.js → vue-ui-parallel-coordinate-plot-Dqg_vJCM.js} +3 -3
- package/dist/{vue-ui-quadrant-JvGjWc7P.js → vue-ui-quadrant-D4UDUZoN.js} +3 -3
- package/dist/{vue-ui-quick-chart-Nffw66GY.js → vue-ui-quick-chart-BMDrPkAJ.js} +3 -3
- package/dist/{vue-ui-radar-CdjuAdeB.js → vue-ui-radar-B_wSZVDb.js} +3 -3
- package/dist/{vue-ui-rating-CTN4-Xx3.js → vue-ui-rating-CBedYtOp.js} +1 -1
- package/dist/{vue-ui-relation-circle-Cb3uKDYx.js → vue-ui-relation-circle-DydZv4Pf.js} +3 -3
- package/dist/{vue-ui-ridgeline-Dgr0nyh1.js → vue-ui-ridgeline-BGerPYkY.js} +3 -3
- package/dist/{vue-ui-rings-Ctkw20nS.js → vue-ui-rings-BdYnuNS7.js} +3 -3
- package/dist/{vue-ui-scatter-BpeJpMqR.js → vue-ui-scatter-QISpPygj.js} +3 -3
- package/dist/{vue-ui-skeleton-C8-nUbeq.js → vue-ui-skeleton-CdpD_Zjk.js} +2 -2
- package/dist/{vue-ui-smiley-CxVaJpm8.js → vue-ui-smiley-CTeSlfZa.js} +1 -1
- package/dist/{vue-ui-spark-trend-BRayrIQ5.js → vue-ui-spark-trend-Jgho2QgC.js} +2 -2
- package/dist/{vue-ui-sparkbar-D5UO6Yae.js → vue-ui-sparkbar-CLqcdko6.js} +2 -2
- package/dist/{vue-ui-sparkgauge-DMvYS_KK.js → vue-ui-sparkgauge-BA3NDOhA.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-CNwDggdT.js → vue-ui-sparkhistogram-fb8hGuCn.js} +2 -2
- package/dist/{vue-ui-sparkline-Dh6mAGol.js → vue-ui-sparkline-BWdvoOYj.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-CFhUgaiz.js → vue-ui-sparkstackbar-DbbdPqIp.js} +2 -2
- package/dist/{vue-ui-stackbar-g5Sq_ZTb.js → vue-ui-stackbar-MYly9iMc.js} +5 -5
- package/dist/{vue-ui-stackline-CKwIVvUs.js → vue-ui-stackline-L0q_GsYv.js} +5 -5
- package/dist/{vue-ui-strip-plot-CvCBxxNn.js → vue-ui-strip-plot-B7W1EZdY.js} +3 -3
- package/dist/{vue-ui-table-DswHIBiJ.js → vue-ui-table-WSRRp_nE.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Crgh4Fiz.js → vue-ui-table-heatmap-Bqr4Eubg.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BJGYRzNL.js → vue-ui-table-sparkline-UhaEz2jD.js} +2 -2
- package/dist/{vue-ui-thermometer-46TB3agk.js → vue-ui-thermometer-BFwmgdMO.js} +3 -3
- package/dist/{vue-ui-timer-CgEPlDmY.js → vue-ui-timer-CoLOwKwP.js} +4 -4
- package/dist/{vue-ui-tiremarks-DZHVry9u.js → vue-ui-tiremarks-CvXOa3z4.js} +3 -3
- package/dist/{vue-ui-treemap-3_8JQzd0.js → vue-ui-treemap-C8HbMbin.js} +4 -4
- package/dist/{vue-ui-waffle-Ck_wiBzc.js → vue-ui-waffle-rS6LRZNV.js} +3 -3
- package/dist/{vue-ui-wheel-4ZZLizdv.js → vue-ui-wheel-BGle0ni9.js} +3 -3
- package/dist/{vue-ui-word-cloud-BPA2fseE.js → vue-ui-word-cloud-Dj1lJdtL.js} +4 -4
- package/dist/{vue-ui-world-K4hMlU7V.js → vue-ui-world-C7d5vM6d.js} +2 -2
- package/dist/{vue-ui-xy-cHQ3KQCE.js → vue-ui-xy-De-FDHwh.js} +5 -5
- package/dist/{vue-ui-xy-canvas-Qeg6DtP0.js → vue-ui-xy-canvas-CoBMpLeE.js} +6 -6
- package/package.json +1 -1
- package/dist/UserOptions-BlWCqtbi.js +0 -649
|
@@ -0,0 +1,1347 @@
|
|
|
1
|
+
import { ref as P, computed as J, onMounted as ke, onBeforeUnmount as ce, watch as ye, nextTick as Q, withDirectives as me, createElementBlock as i, openBlock as n, normalizeStyle as v, createElementVNode as V, withKeys as $e, withModifiers as p, renderSlot as g, normalizeProps as F, guardReactiveProps as he, createVNode as Ce, normalizeClass as k, createCommentVNode as a, Fragment as h, createBlock as f, toDisplayString as c, mergeProps as E, unref as we } from "vue";
|
|
2
|
+
import { v as ze } from "./vClickOutside-C6WiFswA.js";
|
|
3
|
+
import r from "./BaseIcon-B9bGT7HU.js";
|
|
4
|
+
import Me from "./img-CqYIrJ8I.js";
|
|
5
|
+
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const Xe = {
|
|
7
|
+
beforeMount(e, w) {
|
|
8
|
+
const X = () => typeof w.value == "function" ? {
|
|
9
|
+
handler: w.value,
|
|
10
|
+
targets: [e],
|
|
11
|
+
disabled: !1,
|
|
12
|
+
scrollGuardMs: 250,
|
|
13
|
+
moveThreshold: 10
|
|
14
|
+
} : {
|
|
15
|
+
handler: w.value?.handler,
|
|
16
|
+
targets: w.value?.targets ?? [e],
|
|
17
|
+
disabled: !!w.value?.disabled,
|
|
18
|
+
scrollGuardMs: w.value?.scrollGuardMs ?? 250,
|
|
19
|
+
moveThreshold: w.value?.moveThreshold ?? 10
|
|
20
|
+
}, s = {
|
|
21
|
+
lastScrollTs: 0,
|
|
22
|
+
pointerId: null,
|
|
23
|
+
startX: 0,
|
|
24
|
+
startY: 0,
|
|
25
|
+
moved: !1
|
|
26
|
+
}, C = () => {
|
|
27
|
+
s.lastScrollTs = performance.now();
|
|
28
|
+
}, O = (m) => {
|
|
29
|
+
s.pointerId = m.pointerId ?? null, s.startX = m.clientX ?? 0, s.startY = m.clientY ?? 0, s.moved = !1;
|
|
30
|
+
}, x = (m) => {
|
|
31
|
+
if (s.pointerId === null || (m.pointerId ?? null) !== s.pointerId) return;
|
|
32
|
+
const T = (m.clientX ?? 0) - s.startX, I = (m.clientY ?? 0) - s.startY, { moveThreshold: A } = X();
|
|
33
|
+
T * T + I * I >= A * A && (s.moved = !0);
|
|
34
|
+
}, y = (m) => {
|
|
35
|
+
s.pointerId !== null && (m.pointerId ?? null) === s.pointerId && (s.pointerId = null);
|
|
36
|
+
}, d = (m, T) => {
|
|
37
|
+
const I = m.composedPath ? m.composedPath() : [];
|
|
38
|
+
for (const A of T) {
|
|
39
|
+
const M = A && typeof A == "object" && "value" in A ? A.value : A;
|
|
40
|
+
if (M && (M === m.target || M.contains && M.contains(m.target) || I.length && I.includes(M)))
|
|
41
|
+
return !0;
|
|
42
|
+
}
|
|
43
|
+
return !1;
|
|
44
|
+
}, $ = (m) => {
|
|
45
|
+
const { handler: T, targets: I, disabled: A, scrollGuardMs: M } = X();
|
|
46
|
+
if (A || typeof T != "function" || performance.now() - s.lastScrollTs < M || s.moved) return;
|
|
47
|
+
d(m, I) || T(m);
|
|
48
|
+
};
|
|
49
|
+
e.__vPopoverClickOutside__ = {
|
|
50
|
+
onScrollCapture: C,
|
|
51
|
+
onPointerDownCapture: O,
|
|
52
|
+
onPointerMoveCapture: x,
|
|
53
|
+
onPointerUpCapture: y,
|
|
54
|
+
onClickCapture: $
|
|
55
|
+
}, window.addEventListener("scroll", C, !0), document.addEventListener("pointerdown", O, !0), document.addEventListener("pointermove", x, !0), document.addEventListener("pointerup", y, !0), document.addEventListener("click", $, !0);
|
|
56
|
+
},
|
|
57
|
+
unmounted(e) {
|
|
58
|
+
const w = e.__vPopoverClickOutside__;
|
|
59
|
+
w && (window.removeEventListener("scroll", w.onScrollCapture, !0), document.removeEventListener("pointerdown", w.onPointerDownCapture, !0), document.removeEventListener("pointermove", w.onPointerMoveCapture, !0), document.removeEventListener("pointerup", w.onPointerUpCapture, !0), document.removeEventListener("click", w.onClickCapture, !0), delete e.__vPopoverClickOutside__);
|
|
60
|
+
}
|
|
61
|
+
}, Ze = ["title", "onKeydown"], De = ["popover", "data-open"], Ne = ["title"], Ue = ["data-open"], je = {
|
|
62
|
+
__name: "UserOptions",
|
|
63
|
+
props: {
|
|
64
|
+
hasPdf: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: !0
|
|
67
|
+
},
|
|
68
|
+
hasXls: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: !0
|
|
71
|
+
},
|
|
72
|
+
hasImg: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
hasSvg: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: !1
|
|
79
|
+
},
|
|
80
|
+
hasLabel: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
},
|
|
84
|
+
isLabelActive: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: !1
|
|
87
|
+
},
|
|
88
|
+
hasTable: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: !1
|
|
91
|
+
},
|
|
92
|
+
hasSort: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: !1
|
|
95
|
+
},
|
|
96
|
+
hasStack: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: !1
|
|
99
|
+
},
|
|
100
|
+
hasTooltip: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: !1
|
|
103
|
+
},
|
|
104
|
+
color: {
|
|
105
|
+
type: String
|
|
106
|
+
},
|
|
107
|
+
backgroundColor: {
|
|
108
|
+
type: String
|
|
109
|
+
},
|
|
110
|
+
isPrinting: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !1
|
|
113
|
+
},
|
|
114
|
+
isImaging: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: !1
|
|
117
|
+
},
|
|
118
|
+
title: {
|
|
119
|
+
type: String
|
|
120
|
+
},
|
|
121
|
+
uid: {
|
|
122
|
+
type: String
|
|
123
|
+
},
|
|
124
|
+
hasFullscreen: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: !1
|
|
127
|
+
},
|
|
128
|
+
chartElement: {
|
|
129
|
+
type: HTMLElement,
|
|
130
|
+
default: null
|
|
131
|
+
},
|
|
132
|
+
isFullscreen: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: !1
|
|
135
|
+
},
|
|
136
|
+
isStacked: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: !1
|
|
139
|
+
},
|
|
140
|
+
isTooltip: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
default: !1
|
|
143
|
+
},
|
|
144
|
+
hasAnimation: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: !1
|
|
147
|
+
},
|
|
148
|
+
isAnimation: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
default: !1
|
|
151
|
+
},
|
|
152
|
+
titles: {
|
|
153
|
+
type: Object,
|
|
154
|
+
default() {
|
|
155
|
+
return {};
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
showTooltips: {
|
|
159
|
+
type: Boolean,
|
|
160
|
+
default: !0
|
|
161
|
+
},
|
|
162
|
+
zIndex: {
|
|
163
|
+
type: Number,
|
|
164
|
+
default: 1
|
|
165
|
+
},
|
|
166
|
+
noOffset: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: !0
|
|
169
|
+
},
|
|
170
|
+
position: {
|
|
171
|
+
type: String,
|
|
172
|
+
default: "right"
|
|
173
|
+
},
|
|
174
|
+
offsetX: {
|
|
175
|
+
type: Number,
|
|
176
|
+
default: 0
|
|
177
|
+
},
|
|
178
|
+
hasAnnotator: {
|
|
179
|
+
type: Boolean,
|
|
180
|
+
default: !1
|
|
181
|
+
},
|
|
182
|
+
isAnnotation: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: !1
|
|
185
|
+
},
|
|
186
|
+
callbacks: {
|
|
187
|
+
type: Object,
|
|
188
|
+
default() {
|
|
189
|
+
return {};
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
printScale: {
|
|
193
|
+
type: Number,
|
|
194
|
+
default: 2
|
|
195
|
+
},
|
|
196
|
+
tableDialog: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
default: !1
|
|
199
|
+
},
|
|
200
|
+
hasZoom: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: !1
|
|
203
|
+
},
|
|
204
|
+
isZoom: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
default: !1
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
emits: [
|
|
210
|
+
"generatePdf",
|
|
211
|
+
"generateCsv",
|
|
212
|
+
"generateImage",
|
|
213
|
+
"toggleTable",
|
|
214
|
+
"toggleLabels",
|
|
215
|
+
"toggleSort",
|
|
216
|
+
"toggleFullscreen",
|
|
217
|
+
"toggleStack",
|
|
218
|
+
"toggleTooltip",
|
|
219
|
+
"toggleAnimation",
|
|
220
|
+
"toggleAnnotator",
|
|
221
|
+
"generateSvg",
|
|
222
|
+
"toggleZoom"
|
|
223
|
+
],
|
|
224
|
+
setup(e, { expose: w, emit: X }) {
|
|
225
|
+
const s = e, C = X, O = P(null), x = P(null), y = P(null), d = P(!1), $ = J(() => typeof window < "u" && typeof HTMLElement < "u" && "popover" in HTMLElement.prototype);
|
|
226
|
+
async function m() {
|
|
227
|
+
if (s.callbacks.pdf) {
|
|
228
|
+
const { imageUri: o, base64: t } = await Me({
|
|
229
|
+
domElement: s.chartElement,
|
|
230
|
+
base64: !0,
|
|
231
|
+
img: !0,
|
|
232
|
+
scale: s.printScale
|
|
233
|
+
});
|
|
234
|
+
s.callbacks.pdf({ domElement: s.chartElement, base64: t, imageUri: o });
|
|
235
|
+
} else
|
|
236
|
+
C("generatePdf");
|
|
237
|
+
}
|
|
238
|
+
function T() {
|
|
239
|
+
C("generateCsv", s.callbacks.csv);
|
|
240
|
+
}
|
|
241
|
+
async function I() {
|
|
242
|
+
if (s.callbacks.img) {
|
|
243
|
+
const { imageUri: o, base64: t } = await Me({
|
|
244
|
+
domElement: s.chartElement,
|
|
245
|
+
base64: !0,
|
|
246
|
+
img: !0,
|
|
247
|
+
scale: s.printScale
|
|
248
|
+
});
|
|
249
|
+
s.callbacks.img({ domElement: s.chartElement, imageUri: o, base64: t });
|
|
250
|
+
} else
|
|
251
|
+
C("generateImage");
|
|
252
|
+
}
|
|
253
|
+
function A() {
|
|
254
|
+
C("generateSvg", { isCb: !!s.callbacks.svg });
|
|
255
|
+
}
|
|
256
|
+
const M = P(!1);
|
|
257
|
+
function H() {
|
|
258
|
+
s.callbacks.table ? s.callbacks.table() : (M.value = !M.value, C("toggleTable"));
|
|
259
|
+
}
|
|
260
|
+
function Se(o) {
|
|
261
|
+
M.value = o;
|
|
262
|
+
}
|
|
263
|
+
w({
|
|
264
|
+
setTableIconState: Se
|
|
265
|
+
});
|
|
266
|
+
const Z = P(s.isLabelActive);
|
|
267
|
+
function _() {
|
|
268
|
+
s.callbacks.labels ? s.callbacks.labels() : (Z.value = !Z.value, C("toggleLabels"));
|
|
269
|
+
}
|
|
270
|
+
const B = P(s.isAnimation);
|
|
271
|
+
function D() {
|
|
272
|
+
s.callbacks.animation ? s.callbacks.animation() : (B.value = !B.value, C("toggleAnimation"));
|
|
273
|
+
}
|
|
274
|
+
const ee = P(s.isZoom);
|
|
275
|
+
function N() {
|
|
276
|
+
s.callbacks.zoom ? s.callbacks.zoom() : (ee.value = !ee.value, C("toggleZoom"));
|
|
277
|
+
}
|
|
278
|
+
const z = J({
|
|
279
|
+
get: () => s.isAnnotation,
|
|
280
|
+
set: (o) => o
|
|
281
|
+
});
|
|
282
|
+
function U() {
|
|
283
|
+
s.callbacks.annotator ? s.callbacks.annotator() : (z.value = !z.value, C("toggleAnnotator"));
|
|
284
|
+
}
|
|
285
|
+
function te() {
|
|
286
|
+
s.callbacks.sort ? s.callbacks.sort() : C("toggleSort");
|
|
287
|
+
}
|
|
288
|
+
const R = P(s.isStacked);
|
|
289
|
+
function oe() {
|
|
290
|
+
s.callbacks.stack ? s.callbacks.stack() : (R.value = !R.value, C("toggleStack"));
|
|
291
|
+
}
|
|
292
|
+
const j = P(s.isTooltip);
|
|
293
|
+
function ne() {
|
|
294
|
+
s.callbacks.tooltip ? s.callbacks.tooltip() : (j.value = !j.value, C("toggleTooltip"));
|
|
295
|
+
}
|
|
296
|
+
const Pe = J({
|
|
297
|
+
get: () => s.isFullscreen,
|
|
298
|
+
set: (o) => C("toggleFullscreen", o)
|
|
299
|
+
});
|
|
300
|
+
function G() {
|
|
301
|
+
if (!s.chartElement) return;
|
|
302
|
+
const o = !s.isFullscreen;
|
|
303
|
+
Pe.value = o, o ? s.chartElement.requestFullscreen() : document.exitFullscreen();
|
|
304
|
+
}
|
|
305
|
+
function le() {
|
|
306
|
+
const o = !!document.fullscreenElement;
|
|
307
|
+
C("toggleFullscreen", o);
|
|
308
|
+
}
|
|
309
|
+
ke(() => {
|
|
310
|
+
document.addEventListener("fullscreenchange", le);
|
|
311
|
+
}), ce(() => {
|
|
312
|
+
document.removeEventListener("fullscreenchange", le);
|
|
313
|
+
});
|
|
314
|
+
const b = P(window.innerWidth > 600), l = P({
|
|
315
|
+
tooltip: !1,
|
|
316
|
+
pdf: !1,
|
|
317
|
+
csv: !1,
|
|
318
|
+
img: !1,
|
|
319
|
+
table: !1,
|
|
320
|
+
labels: !1,
|
|
321
|
+
sort: !1,
|
|
322
|
+
stack: !1,
|
|
323
|
+
fullscreen: !1,
|
|
324
|
+
animation: !1,
|
|
325
|
+
annotator: !1,
|
|
326
|
+
svg: !1,
|
|
327
|
+
zoom: !1
|
|
328
|
+
}), Ae = P(!0);
|
|
329
|
+
function ie() {
|
|
330
|
+
b.value = window.innerWidth > 600, d.value = !d.value, d.value && (Ae.value = !1);
|
|
331
|
+
}
|
|
332
|
+
function Fe() {
|
|
333
|
+
s.isPrinting || s.isImaging || (d.value = !1);
|
|
334
|
+
}
|
|
335
|
+
function Le() {
|
|
336
|
+
d.value && Fe();
|
|
337
|
+
}
|
|
338
|
+
const W = P(0);
|
|
339
|
+
function se() {
|
|
340
|
+
W.value = performance.now() + 50;
|
|
341
|
+
}
|
|
342
|
+
function ue() {
|
|
343
|
+
s.isPrinting || s.isImaging || ($.value && q(), d.value = !1);
|
|
344
|
+
}
|
|
345
|
+
function Te() {
|
|
346
|
+
performance.now() < W.value || ue();
|
|
347
|
+
}
|
|
348
|
+
function ae() {
|
|
349
|
+
if (b.value = window.innerWidth > 600, !$.value) {
|
|
350
|
+
d.value || se(), d.value = !d.value;
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
const o = y.value;
|
|
354
|
+
if (!!(o && o.matches && o.matches(":popover-open")) || d.value) {
|
|
355
|
+
d.value = !1, q();
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
se(), d.value = !0;
|
|
359
|
+
}
|
|
360
|
+
function Ie() {
|
|
361
|
+
ae();
|
|
362
|
+
}
|
|
363
|
+
function re(o, t, u, S) {
|
|
364
|
+
const L = window.devicePixelRatio || 1, K = (Be) => Math.round(Be * L) / L;
|
|
365
|
+
o.style.position = "fixed", o.style.top = `${K(t)}px`, o.style.left = `${K(u)}px`, o.style.right = "auto", o.style.width = `${K(S)}px`;
|
|
366
|
+
}
|
|
367
|
+
function Ee(o) {
|
|
368
|
+
if (o.style.width = "", o.style.left = "", o.style.right = "", o.style.top = "", o.style.position = "absolute", o.style.top = "36px", s.position === "right") {
|
|
369
|
+
const t = s.offsetX ? s.offsetX : s.noOffset ? 0 : 4;
|
|
370
|
+
o.style.right = `${t}px`, o.style.left = "auto";
|
|
371
|
+
} else {
|
|
372
|
+
const t = s.noOffset ? 0 : 4;
|
|
373
|
+
o.style.left = `${t}px`, o.style.right = "auto";
|
|
374
|
+
}
|
|
375
|
+
o.style.display = "flex", o.style.visibility = "hidden", o.style.pointerEvents = "none";
|
|
376
|
+
}
|
|
377
|
+
function fe() {
|
|
378
|
+
if (!$.value || !d.value || !O.value || !y.value) return;
|
|
379
|
+
const o = O.value.getBoundingClientRect(), t = y.value.getBoundingClientRect(), u = o.top + 36;
|
|
380
|
+
if (s.position === "right") {
|
|
381
|
+
const S = s.offsetX ? s.offsetX : s.noOffset ? 0 : 4, L = o.right - S - t.width;
|
|
382
|
+
re(y.value, u, L, t.width);
|
|
383
|
+
} else {
|
|
384
|
+
const S = s.noOffset ? 0 : 4, L = o.left + S;
|
|
385
|
+
re(y.value, u, L, t.width);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
let ve = 0;
|
|
389
|
+
function Oe() {
|
|
390
|
+
cancelAnimationFrame(ve), ve = requestAnimationFrame(() => {
|
|
391
|
+
fe();
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
function Y() {
|
|
395
|
+
$.value && d.value && Oe();
|
|
396
|
+
}
|
|
397
|
+
function xe(o, t) {
|
|
398
|
+
const u = window.devicePixelRatio || 1, S = (L) => Math.round(L * u) / u;
|
|
399
|
+
o.style.position = "fixed", o.style.top = `${S(t.top)}px`, o.style.left = `${S(t.left)}px`, o.style.right = "auto", o.style.width = `${S(t.width)}px`;
|
|
400
|
+
}
|
|
401
|
+
async function de(o = !1) {
|
|
402
|
+
if (!$.value) return;
|
|
403
|
+
const t = y.value;
|
|
404
|
+
if (!t) return;
|
|
405
|
+
const u = t.getAttribute("style") || "", S = t.getAttribute("data-open");
|
|
406
|
+
t.setAttribute("popover", "manual");
|
|
407
|
+
try {
|
|
408
|
+
t.setAttribute("data-open", "true"), Ee(t), await Q();
|
|
409
|
+
const L = t.getBoundingClientRect();
|
|
410
|
+
t.setAttribute("style", u), S === null ? t.removeAttribute("data-open") : t.setAttribute("data-open", S), xe(t, L), o || (typeof t.showPopover == "function" ? t.showPopover() : t.style.display = "flex");
|
|
411
|
+
} catch {
|
|
412
|
+
if (!o)
|
|
413
|
+
try {
|
|
414
|
+
typeof t.showPopover == "function" ? t.showPopover() : t.style.display = "flex";
|
|
415
|
+
} catch {
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function q() {
|
|
420
|
+
if (!$.value) return;
|
|
421
|
+
const o = y.value;
|
|
422
|
+
if (o) {
|
|
423
|
+
o.setAttribute("popover", "manual");
|
|
424
|
+
try {
|
|
425
|
+
typeof o.hidePopover == "function" ? o.hidePopover() : o.style.display = "none";
|
|
426
|
+
} catch {
|
|
427
|
+
o.style.display = "none";
|
|
428
|
+
}
|
|
429
|
+
o.style.position = "", o.style.top = "", o.style.left = "", o.style.right = "", o.style.width = "", o.style.inset = "";
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
function be() {
|
|
433
|
+
if (!$.value) return;
|
|
434
|
+
const o = y.value;
|
|
435
|
+
o && d.value && (d.value = typeof o.matches == "function" ? (() => {
|
|
436
|
+
try {
|
|
437
|
+
return o.matches(":popover-open");
|
|
438
|
+
} catch {
|
|
439
|
+
return !1;
|
|
440
|
+
}
|
|
441
|
+
})() : !1);
|
|
442
|
+
}
|
|
443
|
+
function ge(o) {
|
|
444
|
+
if (!$.value || !d.value || performance.now() < W.value) return;
|
|
445
|
+
const t = o.composedPath ? o.composedPath() : [], u = x.value ? t.includes(x.value) : !1, S = y.value ? t.includes(y.value) : !1;
|
|
446
|
+
!u && !S && ue();
|
|
447
|
+
}
|
|
448
|
+
return ye(
|
|
449
|
+
() => s.isFullscreen,
|
|
450
|
+
async () => {
|
|
451
|
+
$.value && (await Q(), d.value && de());
|
|
452
|
+
}
|
|
453
|
+
), ye(
|
|
454
|
+
() => d.value,
|
|
455
|
+
async (o) => {
|
|
456
|
+
$.value && (await Q(), o ? (await de(!1), fe()) : q());
|
|
457
|
+
}
|
|
458
|
+
), ke(() => {
|
|
459
|
+
window.addEventListener("pointerdown", ge, !0), window.addEventListener("resize", Y, { passive: !0 }), window.addEventListener("scroll", Y, { passive: !0, capture: !0 }), y.value && y.value.addEventListener("toggle", be);
|
|
460
|
+
}), ce(() => {
|
|
461
|
+
window.removeEventListener("pointerdown", ge, !0), window.removeEventListener("resize", Y), window.removeEventListener("scroll", Y, !0), y.value && y.value.removeEventListener("toggle", be);
|
|
462
|
+
}), (o, t) => $.value ? me((n(), i("div", {
|
|
463
|
+
key: 0,
|
|
464
|
+
ref_key: "rootRef",
|
|
465
|
+
ref: O,
|
|
466
|
+
"data-dom-to-png-ignore": "",
|
|
467
|
+
class: "vue-ui-user-options",
|
|
468
|
+
style: v(`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;`)
|
|
469
|
+
}, [
|
|
470
|
+
V("div", {
|
|
471
|
+
ref_key: "triggerRef",
|
|
472
|
+
ref: x,
|
|
473
|
+
tabindex: "0",
|
|
474
|
+
title: d.value ? e.titles.close || "" : e.titles.open || "",
|
|
475
|
+
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`),
|
|
476
|
+
onPointerdown: p(ae, ["stop", "prevent"]),
|
|
477
|
+
onKeydown: $e(p(Ie, ["stop", "prevent"]), ["enter"])
|
|
478
|
+
}, [
|
|
479
|
+
g(o.$slots, "menuIcon", F(he({ isOpen: d.value, color: e.color })), () => [
|
|
480
|
+
Ce(r, {
|
|
481
|
+
name: d.value ? "close" : "menu",
|
|
482
|
+
stroke: e.color,
|
|
483
|
+
"stroke-width": 2
|
|
484
|
+
}, null, 8, ["name", "stroke"])
|
|
485
|
+
], !0)
|
|
486
|
+
], 44, Ze),
|
|
487
|
+
V("div", {
|
|
488
|
+
ref_key: "drawerRef",
|
|
489
|
+
ref: y,
|
|
490
|
+
popover: $.value ? "manual" : null,
|
|
491
|
+
"data-open": $.value ? null : d.value,
|
|
492
|
+
class: k({ "vue-ui-user-options-drawer": !0 }),
|
|
493
|
+
style: v($.value ? { background: e.backgroundColor } : `background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
|
|
494
|
+
}, [
|
|
495
|
+
e.hasTooltip ? (n(), i("button", {
|
|
496
|
+
key: 0,
|
|
497
|
+
tabindex: "0",
|
|
498
|
+
class: "vue-ui-user-options-button",
|
|
499
|
+
onClick: ne,
|
|
500
|
+
onMouseenter: t[0] || (t[0] = (u) => l.value.tooltip = !0),
|
|
501
|
+
onMouseout: t[1] || (t[1] = (u) => l.value.tooltip = !1)
|
|
502
|
+
}, [
|
|
503
|
+
o.$slots.optionTooltip ? g(o.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
504
|
+
j.value ? (n(), f(r, {
|
|
505
|
+
key: 0,
|
|
506
|
+
name: "tooltip",
|
|
507
|
+
stroke: e.color,
|
|
508
|
+
style: { "pointer-events": "none" }
|
|
509
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
510
|
+
key: 1,
|
|
511
|
+
name: "tooltipDisabled",
|
|
512
|
+
stroke: e.color,
|
|
513
|
+
style: { "pointer-events": "none" }
|
|
514
|
+
}, null, 8, ["stroke"]))
|
|
515
|
+
], 64)),
|
|
516
|
+
b.value && e.titles.tooltip ? (n(), i("div", {
|
|
517
|
+
key: 2,
|
|
518
|
+
dir: "auto",
|
|
519
|
+
class: k({
|
|
520
|
+
"button-info-left": e.position === "left",
|
|
521
|
+
"button-info-right": e.position === "right",
|
|
522
|
+
"button-info-left-visible": e.position === "left" && l.value.tooltip,
|
|
523
|
+
"button-info-right-visible": e.position === "right" && l.value.tooltip
|
|
524
|
+
}),
|
|
525
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
526
|
+
}, c(e.titles.tooltip), 7)) : a("", !0)
|
|
527
|
+
], 32)) : a("", !0),
|
|
528
|
+
e.hasPdf ? (n(), i("button", {
|
|
529
|
+
key: 1,
|
|
530
|
+
tabindex: "0",
|
|
531
|
+
class: "vue-ui-user-options-button",
|
|
532
|
+
onClick: m,
|
|
533
|
+
onMouseenter: t[2] || (t[2] = (u) => l.value.pdf = !0),
|
|
534
|
+
onMouseout: t[3] || (t[3] = (u) => l.value.pdf = !1)
|
|
535
|
+
}, [
|
|
536
|
+
o.$slots.optionPdf ? g(o.$slots, "optionPdf", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
537
|
+
e.isPrinting ? (n(), f(r, {
|
|
538
|
+
key: 0,
|
|
539
|
+
name: "spinner2",
|
|
540
|
+
isSpin: "",
|
|
541
|
+
stroke: e.color,
|
|
542
|
+
style: { "pointer-events": "none" }
|
|
543
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
544
|
+
key: 1,
|
|
545
|
+
name: "pdf",
|
|
546
|
+
stroke: e.color,
|
|
547
|
+
style: { "pointer-events": "none" }
|
|
548
|
+
}, null, 8, ["stroke"]))
|
|
549
|
+
], 64)),
|
|
550
|
+
b.value && e.titles.pdf ? (n(), i("div", {
|
|
551
|
+
key: 2,
|
|
552
|
+
dir: "auto",
|
|
553
|
+
class: k({
|
|
554
|
+
"button-info-left": e.position === "left",
|
|
555
|
+
"button-info-right": e.position === "right",
|
|
556
|
+
"button-info-right-visible": e.position === "right" && l.value.pdf,
|
|
557
|
+
"button-info-left-visible": e.position === "left" && l.value.pdf
|
|
558
|
+
}),
|
|
559
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
560
|
+
}, c(e.titles.pdf), 7)) : a("", !0)
|
|
561
|
+
], 32)) : a("", !0),
|
|
562
|
+
e.hasXls ? (n(), i("button", {
|
|
563
|
+
key: 2,
|
|
564
|
+
tabindex: "0",
|
|
565
|
+
class: "vue-ui-user-options-button",
|
|
566
|
+
onClick: T,
|
|
567
|
+
onMouseenter: t[4] || (t[4] = (u) => l.value.csv = !0),
|
|
568
|
+
onMouseout: t[5] || (t[5] = (u) => l.value.csv = !1)
|
|
569
|
+
}, [
|
|
570
|
+
o.$slots.optionCsv ? g(o.$slots, "optionCsv", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
571
|
+
key: 1,
|
|
572
|
+
name: "excel",
|
|
573
|
+
stroke: e.color,
|
|
574
|
+
style: { "pointer-events": "none" }
|
|
575
|
+
}, null, 8, ["stroke"])),
|
|
576
|
+
b.value && e.titles.csv ? (n(), i("div", {
|
|
577
|
+
key: 2,
|
|
578
|
+
dir: "auto",
|
|
579
|
+
class: k({
|
|
580
|
+
"button-info-left": e.position === "left",
|
|
581
|
+
"button-info-right": e.position === "right",
|
|
582
|
+
"button-info-right-visible": e.position === "right" && l.value.csv,
|
|
583
|
+
"button-info-left-visible": e.position === "left" && l.value.csv
|
|
584
|
+
}),
|
|
585
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
586
|
+
}, c(e.titles.csv), 7)) : a("", !0)
|
|
587
|
+
], 32)) : a("", !0),
|
|
588
|
+
e.hasImg ? (n(), i("button", {
|
|
589
|
+
key: 3,
|
|
590
|
+
tabindex: "0",
|
|
591
|
+
class: "vue-ui-user-options-button",
|
|
592
|
+
onClick: I,
|
|
593
|
+
onMouseenter: t[6] || (t[6] = (u) => l.value.img = !0),
|
|
594
|
+
onMouseout: t[7] || (t[7] = (u) => l.value.img = !1)
|
|
595
|
+
}, [
|
|
596
|
+
o.$slots.optionImg ? g(o.$slots, "optionImg", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
597
|
+
e.isImaging ? (n(), f(r, {
|
|
598
|
+
key: 0,
|
|
599
|
+
name: "spinner2",
|
|
600
|
+
isSpin: "",
|
|
601
|
+
stroke: e.color,
|
|
602
|
+
style: { "pointer-events": "none" }
|
|
603
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
604
|
+
key: 1,
|
|
605
|
+
name: "image",
|
|
606
|
+
stroke: e.color,
|
|
607
|
+
style: { "pointer-events": "none" }
|
|
608
|
+
}, null, 8, ["stroke"]))
|
|
609
|
+
], 64)),
|
|
610
|
+
b.value && e.titles.img ? (n(), i("div", {
|
|
611
|
+
key: 2,
|
|
612
|
+
dir: "auto",
|
|
613
|
+
class: k({
|
|
614
|
+
"button-info-left": e.position === "left",
|
|
615
|
+
"button-info-right": e.position === "right",
|
|
616
|
+
"button-info-right-visible": e.position === "right" && l.value.img,
|
|
617
|
+
"button-info-left-visible": e.position === "left" && l.value.img
|
|
618
|
+
}),
|
|
619
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
620
|
+
}, c(e.titles.img), 7)) : a("", !0)
|
|
621
|
+
], 32)) : a("", !0),
|
|
622
|
+
e.hasSvg ? (n(), i("button", {
|
|
623
|
+
key: 4,
|
|
624
|
+
tabindex: "0",
|
|
625
|
+
class: "vue-ui-user-options-button",
|
|
626
|
+
onClick: A,
|
|
627
|
+
onMouseenter: t[8] || (t[8] = (u) => l.value.svg = !0),
|
|
628
|
+
onMouseout: t[9] || (t[9] = (u) => l.value.svg = !1)
|
|
629
|
+
}, [
|
|
630
|
+
o.$slots.optionSvg ? g(o.$slots, "optionSvg", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
631
|
+
key: 1,
|
|
632
|
+
name: "svg",
|
|
633
|
+
stroke: e.color,
|
|
634
|
+
style: { "pointer-events": "none" }
|
|
635
|
+
}, null, 8, ["stroke"])),
|
|
636
|
+
b.value && e.titles.svg ? (n(), i("div", {
|
|
637
|
+
key: 2,
|
|
638
|
+
dir: "auto",
|
|
639
|
+
class: k({
|
|
640
|
+
"button-info-left": e.position === "left",
|
|
641
|
+
"button-info-right": e.position === "right",
|
|
642
|
+
"button-info-right-visible": e.position === "right" && l.value.svg,
|
|
643
|
+
"button-info-left-visible": e.position === "left" && l.value.svg
|
|
644
|
+
}),
|
|
645
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
646
|
+
}, c(e.titles.svg), 7)) : a("", !0)
|
|
647
|
+
], 32)) : a("", !0),
|
|
648
|
+
e.hasTable ? (n(), i("button", {
|
|
649
|
+
key: 5,
|
|
650
|
+
tabindex: "0",
|
|
651
|
+
class: "vue-ui-user-options-button",
|
|
652
|
+
onClick: H,
|
|
653
|
+
onMouseenter: t[10] || (t[10] = (u) => l.value.table = !0),
|
|
654
|
+
onMouseout: t[11] || (t[11] = (u) => l.value.table = !1)
|
|
655
|
+
}, [
|
|
656
|
+
o.$slots.optionTable ? g(o.$slots, "optionTable", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
657
|
+
e.tableDialog ? (n(), f(r, {
|
|
658
|
+
key: 0,
|
|
659
|
+
name: M.value ? "tableDialogClose" : "tableDialogOpen",
|
|
660
|
+
stroke: e.color,
|
|
661
|
+
style: { "pointer-events": "none" }
|
|
662
|
+
}, null, 8, ["name", "stroke"])) : (n(), f(r, {
|
|
663
|
+
key: 1,
|
|
664
|
+
name: M.value ? "tableClose" : "tableOpen",
|
|
665
|
+
stroke: e.color,
|
|
666
|
+
style: { "pointer-events": "none" }
|
|
667
|
+
}, null, 8, ["name", "stroke"]))
|
|
668
|
+
], 64)),
|
|
669
|
+
b.value && e.titles.table ? (n(), i("div", {
|
|
670
|
+
key: 2,
|
|
671
|
+
dir: "auto",
|
|
672
|
+
class: k({
|
|
673
|
+
"button-info-left": e.position === "left",
|
|
674
|
+
"button-info-right": e.position === "right",
|
|
675
|
+
"button-info-right-visible": e.position === "right" && l.value.table,
|
|
676
|
+
"button-info-left-visible": e.position === "left" && l.value.table
|
|
677
|
+
}),
|
|
678
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
679
|
+
}, c(e.titles.table), 7)) : a("", !0)
|
|
680
|
+
], 32)) : a("", !0),
|
|
681
|
+
e.hasLabel ? (n(), i("button", {
|
|
682
|
+
key: 6,
|
|
683
|
+
tabindex: "0",
|
|
684
|
+
class: "vue-ui-user-options-button",
|
|
685
|
+
onClick: _,
|
|
686
|
+
onMouseenter: t[12] || (t[12] = (u) => l.value.labels = !0),
|
|
687
|
+
onMouseout: t[13] || (t[13] = (u) => l.value.labels = !1)
|
|
688
|
+
}, [
|
|
689
|
+
o.$slots.optionLabels ? g(o.$slots, "optionLabels", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
690
|
+
key: 1,
|
|
691
|
+
name: Z.value ? "labelClose" : "labelOpen",
|
|
692
|
+
stroke: e.color,
|
|
693
|
+
style: { "pointer-events": "none" }
|
|
694
|
+
}, null, 8, ["name", "stroke"])),
|
|
695
|
+
b.value && e.titles.labels ? (n(), i("div", {
|
|
696
|
+
key: 2,
|
|
697
|
+
dir: "auto",
|
|
698
|
+
class: k({
|
|
699
|
+
"button-info-left": e.position === "left",
|
|
700
|
+
"button-info-right": e.position === "right",
|
|
701
|
+
"button-info-right-visible": e.position === "right" && l.value.labels,
|
|
702
|
+
"button-info-left-visible": e.position === "left" && l.value.labels
|
|
703
|
+
}),
|
|
704
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
705
|
+
}, c(e.titles.labels), 7)) : a("", !0)
|
|
706
|
+
], 32)) : a("", !0),
|
|
707
|
+
e.hasSort ? (n(), i("button", {
|
|
708
|
+
key: 7,
|
|
709
|
+
tabindex: "0",
|
|
710
|
+
class: "vue-ui-user-options-button",
|
|
711
|
+
onClick: te,
|
|
712
|
+
onMouseenter: t[14] || (t[14] = (u) => l.value.sort = !0),
|
|
713
|
+
onMouseout: t[15] || (t[15] = (u) => l.value.sort = !1)
|
|
714
|
+
}, [
|
|
715
|
+
o.$slots.optionSort ? g(o.$slots, "optionSort", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
716
|
+
key: 1,
|
|
717
|
+
name: "sort",
|
|
718
|
+
stroke: e.color,
|
|
719
|
+
style: { "pointer-events": "none" }
|
|
720
|
+
}, null, 8, ["stroke"])),
|
|
721
|
+
b.value && e.titles.sort ? (n(), i("div", {
|
|
722
|
+
key: 2,
|
|
723
|
+
dir: "auto",
|
|
724
|
+
class: k({
|
|
725
|
+
"button-info-left": e.position === "left",
|
|
726
|
+
"button-info-right": e.position === "right",
|
|
727
|
+
"button-info-right-visible": e.position === "right" && l.value.sort,
|
|
728
|
+
"button-info-left-visible": e.position === "left" && l.value.sort
|
|
729
|
+
}),
|
|
730
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
731
|
+
}, c(e.titles.sort), 7)) : a("", !0)
|
|
732
|
+
], 32)) : a("", !0),
|
|
733
|
+
e.hasStack ? (n(), i("button", {
|
|
734
|
+
key: 8,
|
|
735
|
+
tabindex: "0",
|
|
736
|
+
class: "vue-ui-user-options-button",
|
|
737
|
+
onClick: oe,
|
|
738
|
+
onMouseenter: t[16] || (t[16] = (u) => l.value.stack = !0),
|
|
739
|
+
onMouseout: t[17] || (t[17] = (u) => l.value.stack = !1)
|
|
740
|
+
}, [
|
|
741
|
+
o.$slots.optionStack ? g(o.$slots, "optionStack", F(E({ key: 0 }, { isStack: R.value })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
742
|
+
R.value ? (n(), f(r, {
|
|
743
|
+
key: 0,
|
|
744
|
+
name: "unstack",
|
|
745
|
+
stroke: e.color,
|
|
746
|
+
style: { "pointer-events": "none" }
|
|
747
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
748
|
+
key: 1,
|
|
749
|
+
name: "stack",
|
|
750
|
+
stroke: e.color,
|
|
751
|
+
style: { "pointer-events": "none" }
|
|
752
|
+
}, null, 8, ["stroke"]))
|
|
753
|
+
], 64)),
|
|
754
|
+
b.value && e.titles.stack ? (n(), i("div", {
|
|
755
|
+
key: 2,
|
|
756
|
+
dir: "auto",
|
|
757
|
+
class: k({
|
|
758
|
+
"button-info-left": e.position === "left",
|
|
759
|
+
"button-info-right": e.position === "right",
|
|
760
|
+
"button-info-right-visible": e.position === "right" && l.value.stack,
|
|
761
|
+
"button-info-left-visible": e.position === "left" && l.value.stack
|
|
762
|
+
}),
|
|
763
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
764
|
+
}, c(e.titles.stack), 7)) : a("", !0)
|
|
765
|
+
], 32)) : a("", !0),
|
|
766
|
+
e.hasFullscreen ? (n(), i("button", {
|
|
767
|
+
key: 9,
|
|
768
|
+
tabindex: "0",
|
|
769
|
+
class: "vue-ui-user-options-button",
|
|
770
|
+
onMouseenter: t[18] || (t[18] = (u) => l.value.fullscreen = !0),
|
|
771
|
+
onMouseout: t[19] || (t[19] = (u) => l.value.fullscreen = !1),
|
|
772
|
+
onClick: t[20] || (t[20] = (u) => G(e.isFullscreen ? "out" : "in"))
|
|
773
|
+
}, [
|
|
774
|
+
o.$slots.optionFullscreen ? g(o.$slots, "optionFullscreen", F(E({ key: 0 }, { toggleFullscreen: G, isFullscreen: e.isFullscreen })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
775
|
+
e.isFullscreen ? (n(), f(r, {
|
|
776
|
+
key: 0,
|
|
777
|
+
name: "exitFullscreen",
|
|
778
|
+
stroke: e.color,
|
|
779
|
+
style: { "pointer-events": "none" }
|
|
780
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
781
|
+
key: 1,
|
|
782
|
+
name: "fullscreen",
|
|
783
|
+
stroke: e.color,
|
|
784
|
+
style: { "pointer-events": "none" }
|
|
785
|
+
}, null, 8, ["stroke"]))
|
|
786
|
+
], 64)),
|
|
787
|
+
b.value && e.titles.fullscreen ? (n(), i("div", {
|
|
788
|
+
key: 2,
|
|
789
|
+
dir: "auto",
|
|
790
|
+
class: k({
|
|
791
|
+
"button-info-left": e.position === "left",
|
|
792
|
+
"button-info-right": e.position === "right",
|
|
793
|
+
"button-info-right-visible": e.position === "right" && l.value.fullscreen,
|
|
794
|
+
"button-info-left-visible": e.position === "left" && l.value.fullscreen
|
|
795
|
+
}),
|
|
796
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
797
|
+
}, c(e.titles.fullscreen), 7)) : a("", !0)
|
|
798
|
+
], 32)) : a("", !0),
|
|
799
|
+
e.hasZoom ? (n(), i("button", {
|
|
800
|
+
key: 10,
|
|
801
|
+
tabindex: "0",
|
|
802
|
+
class: "vue-ui-user-options-button",
|
|
803
|
+
onMouseenter: t[21] || (t[21] = (u) => l.value.zoom = !0),
|
|
804
|
+
onMouseout: t[22] || (t[22] = (u) => l.value.zoom = !1),
|
|
805
|
+
onClick: t[23] || (t[23] = (u) => N())
|
|
806
|
+
}, [
|
|
807
|
+
o.$slots.optionZoom ? g(o.$slots, "optionZoom", F(E({ key: 0 }, { toggleZoom: N, isZoomLocked: !e.isZoom })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
808
|
+
e.isZoom ? (n(), f(r, {
|
|
809
|
+
key: 0,
|
|
810
|
+
name: "zoomUnlock",
|
|
811
|
+
stroke: e.color,
|
|
812
|
+
style: { "pointer-events": "none" }
|
|
813
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
814
|
+
key: 1,
|
|
815
|
+
name: "zoomLock",
|
|
816
|
+
stroke: e.color,
|
|
817
|
+
style: { "pointer-events": "none" }
|
|
818
|
+
}, null, 8, ["stroke"]))
|
|
819
|
+
], 64)),
|
|
820
|
+
b.value && e.titles.zoom ? (n(), i("div", {
|
|
821
|
+
key: 2,
|
|
822
|
+
dir: "auto",
|
|
823
|
+
class: k({
|
|
824
|
+
"button-info-left": e.position === "left",
|
|
825
|
+
"button-info-right": e.position === "right",
|
|
826
|
+
"button-info-right-visible": e.position === "right" && l.value.zoom,
|
|
827
|
+
"button-info-left-visible": e.position === "left" && l.value.zoom
|
|
828
|
+
}),
|
|
829
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
830
|
+
}, c(e.titles.zoom), 7)) : a("", !0)
|
|
831
|
+
], 32)) : a("", !0),
|
|
832
|
+
e.hasAnimation ? (n(), i("button", {
|
|
833
|
+
key: 11,
|
|
834
|
+
tabindex: "0",
|
|
835
|
+
class: "vue-ui-user-options-button",
|
|
836
|
+
onMouseenter: t[24] || (t[24] = (u) => l.value.animation = !0),
|
|
837
|
+
onMouseout: t[25] || (t[25] = (u) => l.value.animation = !1),
|
|
838
|
+
onClick: D
|
|
839
|
+
}, [
|
|
840
|
+
o.$slots.optionAnimation ? g(o.$slots, "optionAnimation", F(E({ key: 0 }, { toggleAnimation: D, isAnimated: B.value })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
841
|
+
B.value ? (n(), f(r, {
|
|
842
|
+
key: 0,
|
|
843
|
+
name: "play",
|
|
844
|
+
stroke: e.color,
|
|
845
|
+
style: { "pointer-events": "none" }
|
|
846
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
847
|
+
key: 1,
|
|
848
|
+
name: "pause",
|
|
849
|
+
stroke: e.color,
|
|
850
|
+
style: { "pointer-events": "none" }
|
|
851
|
+
}, null, 8, ["stroke"]))
|
|
852
|
+
], 64)),
|
|
853
|
+
b.value && e.titles.fullscreen ? (n(), i("div", {
|
|
854
|
+
key: 2,
|
|
855
|
+
dir: "auto",
|
|
856
|
+
class: k({
|
|
857
|
+
"button-info-left": e.position === "left",
|
|
858
|
+
"button-info-right": e.position === "right",
|
|
859
|
+
"button-info-right-visible": e.position === "right" && l.value.animation,
|
|
860
|
+
"button-info-left-visible": e.position === "left" && l.value.animation
|
|
861
|
+
}),
|
|
862
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
863
|
+
}, c(e.titles.animation), 7)) : a("", !0)
|
|
864
|
+
], 32)) : a("", !0),
|
|
865
|
+
e.hasAnnotator ? (n(), i("button", {
|
|
866
|
+
key: 12,
|
|
867
|
+
tabindex: "0",
|
|
868
|
+
class: "vue-ui-user-options-button",
|
|
869
|
+
onMouseenter: t[26] || (t[26] = (u) => l.value.annotator = !0),
|
|
870
|
+
onMouseout: t[27] || (t[27] = (u) => l.value.annotator = !1),
|
|
871
|
+
onClick: U
|
|
872
|
+
}, [
|
|
873
|
+
o.$slots.optionAnnotator ? g(o.$slots, "optionAnnotator", F(E({ key: 0 }, { toggleAnnotator: U, isAnnotator: z.value })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
874
|
+
z.value ? (n(), f(r, {
|
|
875
|
+
key: 0,
|
|
876
|
+
name: "annotatorDisabled",
|
|
877
|
+
stroke: e.color,
|
|
878
|
+
style: { "pointer-events": "none" }
|
|
879
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
880
|
+
key: 1,
|
|
881
|
+
name: "annotator",
|
|
882
|
+
stroke: e.color,
|
|
883
|
+
style: { "pointer-events": "none" }
|
|
884
|
+
}, null, 8, ["stroke"]))
|
|
885
|
+
], 64)),
|
|
886
|
+
b.value && e.titles.annotator ? (n(), i("div", {
|
|
887
|
+
key: 2,
|
|
888
|
+
dir: "auto",
|
|
889
|
+
class: k({
|
|
890
|
+
"button-info-left": e.position === "left",
|
|
891
|
+
"button-info-right": e.position === "right",
|
|
892
|
+
"button-info-right-visible": e.position === "right" && l.value.annotator,
|
|
893
|
+
"button-info-left-visible": e.position === "left" && l.value.annotator
|
|
894
|
+
}),
|
|
895
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
896
|
+
}, c(e.titles.annotator), 7)) : a("", !0)
|
|
897
|
+
], 32)) : a("", !0)
|
|
898
|
+
], 12, De)
|
|
899
|
+
], 4)), [
|
|
900
|
+
[we(Xe), $.value ? null : {
|
|
901
|
+
targets: [O.value, y.value, x.value],
|
|
902
|
+
handler: Te
|
|
903
|
+
}]
|
|
904
|
+
]) : me((n(), i("div", {
|
|
905
|
+
key: 1,
|
|
906
|
+
ref_key: "rootRef",
|
|
907
|
+
ref: O,
|
|
908
|
+
"data-dom-to-png-ignore": "",
|
|
909
|
+
class: "vue-ui-user-options",
|
|
910
|
+
style: v(`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;`)
|
|
911
|
+
}, [
|
|
912
|
+
V("div", {
|
|
913
|
+
ref_key: "triggerRef",
|
|
914
|
+
ref: x,
|
|
915
|
+
tabindex: "0",
|
|
916
|
+
title: d.value ? e.titles.close || "" : e.titles.open || "",
|
|
917
|
+
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`),
|
|
918
|
+
onClick: p(ie, ["stop"]),
|
|
919
|
+
onKeypress: $e(ie, ["enter"])
|
|
920
|
+
}, [
|
|
921
|
+
g(o.$slots, "menuIcon", F(he({ isOpen: d.value, color: e.color })), () => [
|
|
922
|
+
Ce(r, {
|
|
923
|
+
name: d.value ? "close" : "menu",
|
|
924
|
+
stroke: e.color,
|
|
925
|
+
"stroke-width": 2
|
|
926
|
+
}, null, 8, ["name", "stroke"])
|
|
927
|
+
], !0)
|
|
928
|
+
], 44, Ne),
|
|
929
|
+
V("div", {
|
|
930
|
+
ref_key: "drawerRef",
|
|
931
|
+
ref: y,
|
|
932
|
+
"data-open": d.value,
|
|
933
|
+
class: k({ "vue-ui-user-options-drawer": !0 }),
|
|
934
|
+
style: v(`background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.offsetX ? e.offsetX : e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
|
|
935
|
+
}, [
|
|
936
|
+
e.hasTooltip ? (n(), i("button", {
|
|
937
|
+
key: 0,
|
|
938
|
+
tabindex: "0",
|
|
939
|
+
class: "vue-ui-user-options-button",
|
|
940
|
+
onClick: ne,
|
|
941
|
+
onMouseenter: t[28] || (t[28] = (u) => l.value.tooltip = !0),
|
|
942
|
+
onMouseout: t[29] || (t[29] = (u) => l.value.tooltip = !1)
|
|
943
|
+
}, [
|
|
944
|
+
o.$slots.optionTooltip ? g(o.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
945
|
+
j.value ? (n(), f(r, {
|
|
946
|
+
key: 0,
|
|
947
|
+
name: "tooltip",
|
|
948
|
+
stroke: e.color,
|
|
949
|
+
style: { "pointer-events": "none" }
|
|
950
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
951
|
+
key: 1,
|
|
952
|
+
name: "tooltipDisabled",
|
|
953
|
+
stroke: e.color,
|
|
954
|
+
style: { "pointer-events": "none" }
|
|
955
|
+
}, null, 8, ["stroke"]))
|
|
956
|
+
], 64)),
|
|
957
|
+
b.value && e.titles.tooltip ? (n(), i("div", {
|
|
958
|
+
key: 2,
|
|
959
|
+
dir: "auto",
|
|
960
|
+
class: k({
|
|
961
|
+
"button-info-left": e.position === "left",
|
|
962
|
+
"button-info-right": e.position === "right",
|
|
963
|
+
"button-info-left-visible": e.position === "left" && l.value.tooltip,
|
|
964
|
+
"button-info-right-visible": e.position === "right" && l.value.tooltip
|
|
965
|
+
}),
|
|
966
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
967
|
+
}, c(e.titles.tooltip), 7)) : a("", !0)
|
|
968
|
+
], 32)) : a("", !0),
|
|
969
|
+
e.hasPdf ? (n(), i("button", {
|
|
970
|
+
key: 1,
|
|
971
|
+
tabindex: "0",
|
|
972
|
+
class: "vue-ui-user-options-button",
|
|
973
|
+
onClick: m,
|
|
974
|
+
onMouseenter: t[30] || (t[30] = (u) => l.value.pdf = !0),
|
|
975
|
+
onMouseout: t[31] || (t[31] = (u) => l.value.pdf = !1)
|
|
976
|
+
}, [
|
|
977
|
+
o.$slots.optionPdf ? g(o.$slots, "optionPdf", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
978
|
+
e.isPrinting ? (n(), f(r, {
|
|
979
|
+
key: 0,
|
|
980
|
+
name: "spinner2",
|
|
981
|
+
isSpin: "",
|
|
982
|
+
stroke: e.color,
|
|
983
|
+
style: { "pointer-events": "none" }
|
|
984
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
985
|
+
key: 1,
|
|
986
|
+
name: "pdf",
|
|
987
|
+
stroke: e.color,
|
|
988
|
+
style: { "pointer-events": "none" }
|
|
989
|
+
}, null, 8, ["stroke"]))
|
|
990
|
+
], 64)),
|
|
991
|
+
b.value && e.titles.pdf ? (n(), i("div", {
|
|
992
|
+
key: 2,
|
|
993
|
+
dir: "auto",
|
|
994
|
+
class: k({
|
|
995
|
+
"button-info-left": e.position === "left",
|
|
996
|
+
"button-info-right": e.position === "right",
|
|
997
|
+
"button-info-right-visible": e.position === "right" && l.value.pdf,
|
|
998
|
+
"button-info-left-visible": e.position === "left" && l.value.pdf
|
|
999
|
+
}),
|
|
1000
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1001
|
+
}, c(e.titles.pdf), 7)) : a("", !0)
|
|
1002
|
+
], 32)) : a("", !0),
|
|
1003
|
+
e.hasXls ? (n(), i("button", {
|
|
1004
|
+
key: 2,
|
|
1005
|
+
tabindex: "0",
|
|
1006
|
+
class: "vue-ui-user-options-button",
|
|
1007
|
+
onClick: T,
|
|
1008
|
+
onMouseenter: t[32] || (t[32] = (u) => l.value.csv = !0),
|
|
1009
|
+
onMouseout: t[33] || (t[33] = (u) => l.value.csv = !1)
|
|
1010
|
+
}, [
|
|
1011
|
+
o.$slots.optionCsv ? g(o.$slots, "optionCsv", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
1012
|
+
key: 1,
|
|
1013
|
+
name: "excel",
|
|
1014
|
+
stroke: e.color,
|
|
1015
|
+
style: { "pointer-events": "none" }
|
|
1016
|
+
}, null, 8, ["stroke"])),
|
|
1017
|
+
b.value && e.titles.csv ? (n(), i("div", {
|
|
1018
|
+
key: 2,
|
|
1019
|
+
dir: "auto",
|
|
1020
|
+
class: k({
|
|
1021
|
+
"button-info-left": e.position === "left",
|
|
1022
|
+
"button-info-right": e.position === "right",
|
|
1023
|
+
"button-info-right-visible": e.position === "right" && l.value.csv,
|
|
1024
|
+
"button-info-left-visible": e.position === "left" && l.value.csv
|
|
1025
|
+
}),
|
|
1026
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1027
|
+
}, c(e.titles.csv), 7)) : a("", !0)
|
|
1028
|
+
], 32)) : a("", !0),
|
|
1029
|
+
e.hasImg ? (n(), i("button", {
|
|
1030
|
+
key: 3,
|
|
1031
|
+
tabindex: "0",
|
|
1032
|
+
class: "vue-ui-user-options-button",
|
|
1033
|
+
onClick: I,
|
|
1034
|
+
onMouseenter: t[34] || (t[34] = (u) => l.value.img = !0),
|
|
1035
|
+
onMouseout: t[35] || (t[35] = (u) => l.value.img = !1)
|
|
1036
|
+
}, [
|
|
1037
|
+
o.$slots.optionImg ? g(o.$slots, "optionImg", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
1038
|
+
e.isImaging ? (n(), f(r, {
|
|
1039
|
+
key: 0,
|
|
1040
|
+
name: "spinner2",
|
|
1041
|
+
isSpin: "",
|
|
1042
|
+
stroke: e.color,
|
|
1043
|
+
style: { "pointer-events": "none" }
|
|
1044
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
1045
|
+
key: 1,
|
|
1046
|
+
name: "image",
|
|
1047
|
+
stroke: e.color,
|
|
1048
|
+
style: { "pointer-events": "none" }
|
|
1049
|
+
}, null, 8, ["stroke"]))
|
|
1050
|
+
], 64)),
|
|
1051
|
+
b.value && e.titles.img ? (n(), i("div", {
|
|
1052
|
+
key: 2,
|
|
1053
|
+
dir: "auto",
|
|
1054
|
+
class: k({
|
|
1055
|
+
"button-info-left": e.position === "left",
|
|
1056
|
+
"button-info-right": e.position === "right",
|
|
1057
|
+
"button-info-right-visible": e.position === "right" && l.value.img,
|
|
1058
|
+
"button-info-left-visible": e.position === "left" && l.value.img
|
|
1059
|
+
}),
|
|
1060
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1061
|
+
}, c(e.titles.img), 7)) : a("", !0)
|
|
1062
|
+
], 32)) : a("", !0),
|
|
1063
|
+
e.hasSvg ? (n(), i("button", {
|
|
1064
|
+
key: 4,
|
|
1065
|
+
tabindex: "0",
|
|
1066
|
+
class: "vue-ui-user-options-button",
|
|
1067
|
+
onClick: A,
|
|
1068
|
+
onMouseenter: t[36] || (t[36] = (u) => l.value.svg = !0),
|
|
1069
|
+
onMouseout: t[37] || (t[37] = (u) => l.value.svg = !1)
|
|
1070
|
+
}, [
|
|
1071
|
+
o.$slots.optionSvg ? g(o.$slots, "optionSvg", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
1072
|
+
key: 1,
|
|
1073
|
+
name: "svg",
|
|
1074
|
+
stroke: e.color,
|
|
1075
|
+
style: { "pointer-events": "none" }
|
|
1076
|
+
}, null, 8, ["stroke"])),
|
|
1077
|
+
b.value && e.titles.svg ? (n(), i("div", {
|
|
1078
|
+
key: 2,
|
|
1079
|
+
dir: "auto",
|
|
1080
|
+
class: k({
|
|
1081
|
+
"button-info-left": e.position === "left",
|
|
1082
|
+
"button-info-right": e.position === "right",
|
|
1083
|
+
"button-info-right-visible": e.position === "right" && l.value.svg,
|
|
1084
|
+
"button-info-left-visible": e.position === "left" && l.value.svg
|
|
1085
|
+
}),
|
|
1086
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1087
|
+
}, c(e.titles.svg), 7)) : a("", !0)
|
|
1088
|
+
], 32)) : a("", !0),
|
|
1089
|
+
e.hasTable ? (n(), i("button", {
|
|
1090
|
+
key: 5,
|
|
1091
|
+
tabindex: "0",
|
|
1092
|
+
class: "vue-ui-user-options-button",
|
|
1093
|
+
onClick: H,
|
|
1094
|
+
onMouseenter: t[38] || (t[38] = (u) => l.value.table = !0),
|
|
1095
|
+
onMouseout: t[39] || (t[39] = (u) => l.value.table = !1)
|
|
1096
|
+
}, [
|
|
1097
|
+
o.$slots.optionTable ? g(o.$slots, "optionTable", { key: 0 }, void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
1098
|
+
e.tableDialog ? (n(), f(r, {
|
|
1099
|
+
key: 0,
|
|
1100
|
+
name: M.value ? "tableDialogClose" : "tableDialogOpen",
|
|
1101
|
+
stroke: e.color,
|
|
1102
|
+
style: { "pointer-events": "none" }
|
|
1103
|
+
}, null, 8, ["name", "stroke"])) : (n(), f(r, {
|
|
1104
|
+
key: 1,
|
|
1105
|
+
name: M.value ? "tableClose" : "tableOpen",
|
|
1106
|
+
stroke: e.color,
|
|
1107
|
+
style: { "pointer-events": "none" }
|
|
1108
|
+
}, null, 8, ["name", "stroke"]))
|
|
1109
|
+
], 64)),
|
|
1110
|
+
b.value && e.titles.table ? (n(), i("div", {
|
|
1111
|
+
key: 2,
|
|
1112
|
+
dir: "auto",
|
|
1113
|
+
class: k({
|
|
1114
|
+
"button-info-left": e.position === "left",
|
|
1115
|
+
"button-info-right": e.position === "right",
|
|
1116
|
+
"button-info-right-visible": e.position === "right" && l.value.table,
|
|
1117
|
+
"button-info-left-visible": e.position === "left" && l.value.table
|
|
1118
|
+
}),
|
|
1119
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1120
|
+
}, c(e.titles.table), 7)) : a("", !0)
|
|
1121
|
+
], 32)) : a("", !0),
|
|
1122
|
+
e.hasLabel ? (n(), i("button", {
|
|
1123
|
+
key: 6,
|
|
1124
|
+
tabindex: "0",
|
|
1125
|
+
class: "vue-ui-user-options-button",
|
|
1126
|
+
onClick: _,
|
|
1127
|
+
onMouseenter: t[40] || (t[40] = (u) => l.value.labels = !0),
|
|
1128
|
+
onMouseout: t[41] || (t[41] = (u) => l.value.labels = !1)
|
|
1129
|
+
}, [
|
|
1130
|
+
o.$slots.optionLabels ? g(o.$slots, "optionLabels", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
1131
|
+
key: 1,
|
|
1132
|
+
name: Z.value ? "labelClose" : "labelOpen",
|
|
1133
|
+
stroke: e.color,
|
|
1134
|
+
style: { "pointer-events": "none" }
|
|
1135
|
+
}, null, 8, ["name", "stroke"])),
|
|
1136
|
+
b.value && e.titles.labels ? (n(), i("div", {
|
|
1137
|
+
key: 2,
|
|
1138
|
+
dir: "auto",
|
|
1139
|
+
class: k({
|
|
1140
|
+
"button-info-left": e.position === "left",
|
|
1141
|
+
"button-info-right": e.position === "right",
|
|
1142
|
+
"button-info-right-visible": e.position === "right" && l.value.labels,
|
|
1143
|
+
"button-info-left-visible": e.position === "left" && l.value.labels
|
|
1144
|
+
}),
|
|
1145
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1146
|
+
}, c(e.titles.labels), 7)) : a("", !0)
|
|
1147
|
+
], 32)) : a("", !0),
|
|
1148
|
+
e.hasSort ? (n(), i("button", {
|
|
1149
|
+
key: 7,
|
|
1150
|
+
tabindex: "0",
|
|
1151
|
+
class: "vue-ui-user-options-button",
|
|
1152
|
+
onClick: te,
|
|
1153
|
+
onMouseenter: t[42] || (t[42] = (u) => l.value.sort = !0),
|
|
1154
|
+
onMouseout: t[43] || (t[43] = (u) => l.value.sort = !1)
|
|
1155
|
+
}, [
|
|
1156
|
+
o.$slots.optionSort ? g(o.$slots, "optionSort", { key: 0 }, void 0, !0) : (n(), f(r, {
|
|
1157
|
+
key: 1,
|
|
1158
|
+
name: "sort",
|
|
1159
|
+
stroke: e.color,
|
|
1160
|
+
style: { "pointer-events": "none" }
|
|
1161
|
+
}, null, 8, ["stroke"])),
|
|
1162
|
+
b.value && e.titles.sort ? (n(), i("div", {
|
|
1163
|
+
key: 2,
|
|
1164
|
+
dir: "auto",
|
|
1165
|
+
class: k({
|
|
1166
|
+
"button-info-left": e.position === "left",
|
|
1167
|
+
"button-info-right": e.position === "right",
|
|
1168
|
+
"button-info-right-visible": e.position === "right" && l.value.sort,
|
|
1169
|
+
"button-info-left-visible": e.position === "left" && l.value.sort
|
|
1170
|
+
}),
|
|
1171
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1172
|
+
}, c(e.titles.sort), 7)) : a("", !0)
|
|
1173
|
+
], 32)) : a("", !0),
|
|
1174
|
+
e.hasStack ? (n(), i("button", {
|
|
1175
|
+
key: 8,
|
|
1176
|
+
tabindex: "0",
|
|
1177
|
+
class: "vue-ui-user-options-button",
|
|
1178
|
+
onClick: oe,
|
|
1179
|
+
onMouseenter: t[44] || (t[44] = (u) => l.value.stack = !0),
|
|
1180
|
+
onMouseout: t[45] || (t[45] = (u) => l.value.stack = !1)
|
|
1181
|
+
}, [
|
|
1182
|
+
o.$slots.optionStack ? g(o.$slots, "optionStack", F(E({ key: 0 }, { isStack: R.value })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
1183
|
+
R.value ? (n(), f(r, {
|
|
1184
|
+
key: 0,
|
|
1185
|
+
name: "unstack",
|
|
1186
|
+
stroke: e.color,
|
|
1187
|
+
style: { "pointer-events": "none" }
|
|
1188
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
1189
|
+
key: 1,
|
|
1190
|
+
name: "stack",
|
|
1191
|
+
stroke: e.color,
|
|
1192
|
+
style: { "pointer-events": "none" }
|
|
1193
|
+
}, null, 8, ["stroke"]))
|
|
1194
|
+
], 64)),
|
|
1195
|
+
b.value && e.titles.stack ? (n(), i("div", {
|
|
1196
|
+
key: 2,
|
|
1197
|
+
dir: "auto",
|
|
1198
|
+
class: k({
|
|
1199
|
+
"button-info-left": e.position === "left",
|
|
1200
|
+
"button-info-right": e.position === "right",
|
|
1201
|
+
"button-info-right-visible": e.position === "right" && l.value.stack,
|
|
1202
|
+
"button-info-left-visible": e.position === "left" && l.value.stack
|
|
1203
|
+
}),
|
|
1204
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1205
|
+
}, c(e.titles.stack), 7)) : a("", !0)
|
|
1206
|
+
], 32)) : a("", !0),
|
|
1207
|
+
e.hasFullscreen ? (n(), i("button", {
|
|
1208
|
+
key: 9,
|
|
1209
|
+
tabindex: "0",
|
|
1210
|
+
class: "vue-ui-user-options-button",
|
|
1211
|
+
onMouseenter: t[46] || (t[46] = (u) => l.value.fullscreen = !0),
|
|
1212
|
+
onMouseout: t[47] || (t[47] = (u) => l.value.fullscreen = !1),
|
|
1213
|
+
onClick: t[48] || (t[48] = (u) => G(e.isFullscreen ? "out" : "in"))
|
|
1214
|
+
}, [
|
|
1215
|
+
o.$slots.optionFullscreen ? g(o.$slots, "optionFullscreen", F(E({ key: 0 }, { toggleFullscreen: G, isFullscreen: e.isFullscreen })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
1216
|
+
e.isFullscreen ? (n(), f(r, {
|
|
1217
|
+
key: 0,
|
|
1218
|
+
name: "exitFullscreen",
|
|
1219
|
+
stroke: e.color,
|
|
1220
|
+
style: { "pointer-events": "none" }
|
|
1221
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
1222
|
+
key: 1,
|
|
1223
|
+
name: "fullscreen",
|
|
1224
|
+
stroke: e.color,
|
|
1225
|
+
style: { "pointer-events": "none" }
|
|
1226
|
+
}, null, 8, ["stroke"]))
|
|
1227
|
+
], 64)),
|
|
1228
|
+
b.value && e.titles.fullscreen ? (n(), i("div", {
|
|
1229
|
+
key: 2,
|
|
1230
|
+
dir: "auto",
|
|
1231
|
+
class: k({
|
|
1232
|
+
"button-info-left": e.position === "left",
|
|
1233
|
+
"button-info-right": e.position === "right",
|
|
1234
|
+
"button-info-right-visible": e.position === "right" && l.value.fullscreen,
|
|
1235
|
+
"button-info-left-visible": e.position === "left" && l.value.fullscreen
|
|
1236
|
+
}),
|
|
1237
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1238
|
+
}, c(e.titles.fullscreen), 7)) : a("", !0)
|
|
1239
|
+
], 32)) : a("", !0),
|
|
1240
|
+
e.hasZoom ? (n(), i("button", {
|
|
1241
|
+
key: 10,
|
|
1242
|
+
tabindex: "0",
|
|
1243
|
+
class: "vue-ui-user-options-button",
|
|
1244
|
+
onMouseenter: t[49] || (t[49] = (u) => l.value.zoom = !0),
|
|
1245
|
+
onMouseout: t[50] || (t[50] = (u) => l.value.zoom = !1),
|
|
1246
|
+
onClick: t[51] || (t[51] = (u) => N())
|
|
1247
|
+
}, [
|
|
1248
|
+
o.$slots.optionZoom ? g(o.$slots, "optionZoom", F(E({ key: 0 }, { toggleZoom: N, isZoomLocked: !e.isZoom })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
1249
|
+
e.isZoom ? (n(), f(r, {
|
|
1250
|
+
key: 0,
|
|
1251
|
+
name: "zoomUnlock",
|
|
1252
|
+
stroke: e.color,
|
|
1253
|
+
style: { "pointer-events": "none" }
|
|
1254
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
1255
|
+
key: 1,
|
|
1256
|
+
name: "zoomLock",
|
|
1257
|
+
stroke: e.color,
|
|
1258
|
+
style: { "pointer-events": "none" }
|
|
1259
|
+
}, null, 8, ["stroke"]))
|
|
1260
|
+
], 64)),
|
|
1261
|
+
b.value && e.titles.zoom ? (n(), i("div", {
|
|
1262
|
+
key: 2,
|
|
1263
|
+
dir: "auto",
|
|
1264
|
+
class: k({
|
|
1265
|
+
"button-info-left": e.position === "left",
|
|
1266
|
+
"button-info-right": e.position === "right",
|
|
1267
|
+
"button-info-right-visible": e.position === "right" && l.value.zoom,
|
|
1268
|
+
"button-info-left-visible": e.position === "left" && l.value.zoom
|
|
1269
|
+
}),
|
|
1270
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1271
|
+
}, c(e.titles.zoom), 7)) : a("", !0)
|
|
1272
|
+
], 32)) : a("", !0),
|
|
1273
|
+
e.hasAnimation ? (n(), i("button", {
|
|
1274
|
+
key: 11,
|
|
1275
|
+
tabindex: "0",
|
|
1276
|
+
class: "vue-ui-user-options-button",
|
|
1277
|
+
onMouseenter: t[52] || (t[52] = (u) => l.value.animation = !0),
|
|
1278
|
+
onMouseout: t[53] || (t[53] = (u) => l.value.animation = !1),
|
|
1279
|
+
onClick: D
|
|
1280
|
+
}, [
|
|
1281
|
+
o.$slots.optionAnimation ? g(o.$slots, "optionAnimation", F(E({ key: 0 }, { toggleAnimation: D, isAnimated: B.value })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
1282
|
+
B.value ? (n(), f(r, {
|
|
1283
|
+
key: 0,
|
|
1284
|
+
name: "play",
|
|
1285
|
+
stroke: e.color,
|
|
1286
|
+
style: { "pointer-events": "none" }
|
|
1287
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
1288
|
+
key: 1,
|
|
1289
|
+
name: "pause",
|
|
1290
|
+
stroke: e.color,
|
|
1291
|
+
style: { "pointer-events": "none" }
|
|
1292
|
+
}, null, 8, ["stroke"]))
|
|
1293
|
+
], 64)),
|
|
1294
|
+
b.value && e.titles.fullscreen ? (n(), i("div", {
|
|
1295
|
+
key: 2,
|
|
1296
|
+
dir: "auto",
|
|
1297
|
+
class: k({
|
|
1298
|
+
"button-info-left": e.position === "left",
|
|
1299
|
+
"button-info-right": e.position === "right",
|
|
1300
|
+
"button-info-right-visible": e.position === "right" && l.value.animation,
|
|
1301
|
+
"button-info-left-visible": e.position === "left" && l.value.animation
|
|
1302
|
+
}),
|
|
1303
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1304
|
+
}, c(e.titles.animation), 7)) : a("", !0)
|
|
1305
|
+
], 32)) : a("", !0),
|
|
1306
|
+
e.hasAnnotator ? (n(), i("button", {
|
|
1307
|
+
key: 12,
|
|
1308
|
+
tabindex: "0",
|
|
1309
|
+
class: "vue-ui-user-options-button",
|
|
1310
|
+
onMouseenter: t[54] || (t[54] = (u) => l.value.annotator = !0),
|
|
1311
|
+
onMouseout: t[55] || (t[55] = (u) => l.value.annotator = !1),
|
|
1312
|
+
onClick: U
|
|
1313
|
+
}, [
|
|
1314
|
+
o.$slots.optionAnnotator ? g(o.$slots, "optionAnnotator", F(E({ key: 0 }, { toggleAnnotator: U, isAnnotator: z.value })), void 0, !0) : (n(), i(h, { key: 1 }, [
|
|
1315
|
+
z.value ? (n(), f(r, {
|
|
1316
|
+
key: 0,
|
|
1317
|
+
name: "annotatorDisabled",
|
|
1318
|
+
stroke: e.color,
|
|
1319
|
+
style: { "pointer-events": "none" }
|
|
1320
|
+
}, null, 8, ["stroke"])) : (n(), f(r, {
|
|
1321
|
+
key: 1,
|
|
1322
|
+
name: "annotator",
|
|
1323
|
+
stroke: e.color,
|
|
1324
|
+
style: { "pointer-events": "none" }
|
|
1325
|
+
}, null, 8, ["stroke"]))
|
|
1326
|
+
], 64)),
|
|
1327
|
+
b.value && e.titles.annotator ? (n(), i("div", {
|
|
1328
|
+
key: 2,
|
|
1329
|
+
dir: "auto",
|
|
1330
|
+
class: k({
|
|
1331
|
+
"button-info-left": e.position === "left",
|
|
1332
|
+
"button-info-right": e.position === "right",
|
|
1333
|
+
"button-info-right-visible": e.position === "right" && l.value.annotator,
|
|
1334
|
+
"button-info-left-visible": e.position === "left" && l.value.annotator
|
|
1335
|
+
}),
|
|
1336
|
+
style: v({ background: e.backgroundColor, color: e.color })
|
|
1337
|
+
}, c(e.titles.annotator), 7)) : a("", !0)
|
|
1338
|
+
], 32)) : a("", !0)
|
|
1339
|
+
], 12, Ue)
|
|
1340
|
+
], 4)), [
|
|
1341
|
+
[we(ze), Le]
|
|
1342
|
+
]);
|
|
1343
|
+
}
|
|
1344
|
+
}, We = /* @__PURE__ */ Re(je, [["__scopeId", "data-v-6f387873"]]);
|
|
1345
|
+
export {
|
|
1346
|
+
We as default
|
|
1347
|
+
};
|