vue-data-ui 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-COJRk3pc.js → Arrow-BFbcF5Sq.js} +1 -1
- package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
- package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-BQQGRQ2U.js} +1 -1
- package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-d1kmGapq.js} +2 -2
- package/dist/{DataTable-CzO3oHys.js → DataTable-D6voeZvO.js} +2 -2
- package/dist/{Legend-BQqnf4BN.js → Legend-nPGcCxG_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
- package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BeStrsPr.js} +1 -1
- package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-C6tiapdo.js} +3 -3
- package/dist/{Shape-BEVQVI0z.js → Shape-DBVq0fdK.js} +1 -1
- package/dist/Slicer-Duqm7KZK.js +597 -0
- package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-wNGmXZSx.js} +1 -1
- package/dist/{Title-nHtPyPd9.js → Title-ydtId0LC.js} +1 -1
- package/dist/Tooltip-oeu9knGI.js +200 -0
- package/dist/{UserOptions-D3pVnvAB.js → UserOptions-CnJxN2Vo.js} +2 -2
- package/dist/{dom-to-png-CcijTM69.js → dom-to-png-CMCYtLrX.js} +1 -1
- package/dist/{img-Bl0o2UAr.js → img-Neec0VVb.js} +1 -1
- package/dist/{index-INqbM37s.js → index-BkfuZCRT.js} +6 -2
- package/dist/{pdf-BeeAdG2m.js → pdf-CpQ-dqJh.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
- package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-BMzw9VUz.js} +1 -1
- package/dist/{usePrinter-9WO5mDzj.js → usePrinter-CEdg3j8S.js} +2 -2
- package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-D5B7a84o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
- package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
- package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
- package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-VPchh2r2.js} +7 -7
- package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
- package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
- package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
- package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-DVSBY9ou.js} +8 -8
- package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
- package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-BIuc6nds.js} +2 -2
- package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-C7xIcrvD.js} +67 -67
- package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
- package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-BApz1ho5.js} +52 -50
- package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
- package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
- package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-COtJRNLE.js} +40 -38
- package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
- package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
- package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-CFUA5ORH.js} +7 -7
- package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
- package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-DakytdCv.js} +68 -66
- package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
- package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-UmcKQftv.js} +3 -3
- package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
- package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-BZrmSVps.js} +63 -61
- package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
- package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-aHCc3r7L.js} +38 -36
- package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
- package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
- package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-CJ2Wdln9.js} +63 -61
- package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-Cgnooz7-.js} +121 -119
- package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-DF71ymNG.js} +2 -2
- package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
- package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-C4hKgrft.js} +162 -160
- package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
- package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
- package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
- package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
- package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
- package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
- package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-BItmKbvF.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
- package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
- package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-BIv2sfQA.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
- package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
- package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
- package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-CewP8k-W.js} +67 -65
- package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
- package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
- package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-CuwXMI3D.js} +11 -9
- package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
- package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
- package/package.json +1 -1
- package/dist/Slicer-Cmc94zkG.js +0 -604
- package/dist/Tooltip-RCWHeRDV.js +0 -161
package/dist/Tooltip-RCWHeRDV.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { ref as d, onMounted as k, onUnmounted as g, watch as p, nextTick as F, computed as x, createBlock as S, openBlock as h, Teleport as $, createElementBlock as B, createCommentVNode as C, normalizeStyle as w, normalizeClass as N, renderSlot as m, createElementVNode as Y } from "vue";
|
|
2
|
-
import { s as z } from "./index-INqbM37s.js";
|
|
3
|
-
function M({ tooltip: e, chart: a, clientPosition: t, positionPreference: s = "center", defaultOffsetY: c = 24, blockShiftY: u = !1 }) {
|
|
4
|
-
const o = d(0), i = d(c);
|
|
5
|
-
if (e && a) {
|
|
6
|
-
const { width: n, height: v } = e.getBoundingClientRect(), { right: f, left: l, bottom: r } = a.getBoundingClientRect();
|
|
7
|
-
s === "center" && (t.x + n / 2 > f ? o.value = -n + (f - t.x) : t.x - n / 2 < l ? o.value = -n + (n - (t.x - l)) : o.value = -n / 2), s === "right" && (t.x + n > f ? o.value = -n + (f - t.x) : o.value = 0), s === "left" && (t.x < l + n ? o.value = -n + (n - (t.x - l)) : o.value = -n), t.y + v > r && !u && (i.value = -v - c);
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
top: t.y + i.value,
|
|
11
|
-
left: t.x + o.value
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function T(e, a, t) {
|
|
15
|
-
k(() => e.addEventListener(a, t)), g(() => e.removeEventListener(a, t));
|
|
16
|
-
}
|
|
17
|
-
function E() {
|
|
18
|
-
const e = d(0), a = d(0);
|
|
19
|
-
return T(window, "mousemove", (t) => {
|
|
20
|
-
e.value = t.clientX, a.value = t.clientY;
|
|
21
|
-
}), { x: e, y: a };
|
|
22
|
-
}
|
|
23
|
-
const L = ["aria-hidden"], O = ["innerHTML"], b = 0.18, A = {
|
|
24
|
-
__name: "Tooltip",
|
|
25
|
-
props: {
|
|
26
|
-
backgroundColor: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "#FFFFFF"
|
|
29
|
-
},
|
|
30
|
-
color: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "#000000"
|
|
33
|
-
},
|
|
34
|
-
content: String,
|
|
35
|
-
maxWidth: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "300px"
|
|
38
|
-
},
|
|
39
|
-
parent: {
|
|
40
|
-
type: Object
|
|
41
|
-
},
|
|
42
|
-
show: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
isCustom: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !1
|
|
49
|
-
},
|
|
50
|
-
fontSize: {
|
|
51
|
-
type: [Number, String],
|
|
52
|
-
default: 14
|
|
53
|
-
},
|
|
54
|
-
borderRadius: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 4
|
|
57
|
-
},
|
|
58
|
-
borderColor: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: "#e1e5e8"
|
|
61
|
-
},
|
|
62
|
-
borderWidth: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 1
|
|
65
|
-
},
|
|
66
|
-
backgroundOpacity: {
|
|
67
|
-
type: Number,
|
|
68
|
-
default: 100
|
|
69
|
-
},
|
|
70
|
-
position: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: "center"
|
|
73
|
-
},
|
|
74
|
-
offsetY: {
|
|
75
|
-
type: Number,
|
|
76
|
-
default: 24
|
|
77
|
-
},
|
|
78
|
-
blockShiftY: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: !1
|
|
81
|
-
},
|
|
82
|
-
isFullscreen: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !1
|
|
85
|
-
},
|
|
86
|
-
smooth: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: !0
|
|
89
|
-
},
|
|
90
|
-
backdropFilter: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: !0
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
setup(e) {
|
|
96
|
-
const a = e, t = d(null), { x: s, y: c } = E(a.parent), u = d({ x: 0, y: 0 }), o = d({ x: 0, y: 0 });
|
|
97
|
-
let i = null;
|
|
98
|
-
function n() {
|
|
99
|
-
if (!a.smooth) {
|
|
100
|
-
o.value.x = u.value.x, o.value.y = u.value.y;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
o.value.x += (u.value.x - o.value.x) * b, o.value.y += (u.value.y - o.value.y) * b, i = requestAnimationFrame(n);
|
|
104
|
-
}
|
|
105
|
-
p([s, c], ([l, r]) => {
|
|
106
|
-
u.value.x = l, u.value.y = r, a.smooth || (o.value.x = l, o.value.y = r);
|
|
107
|
-
}), p(() => a.show, async (l) => {
|
|
108
|
-
if (l) {
|
|
109
|
-
const r = s.value, y = c.value;
|
|
110
|
-
u.value.x = r, u.value.y = y, o.value.x = r, o.value.y = y, await F(), i || n();
|
|
111
|
-
} else
|
|
112
|
-
i && (cancelAnimationFrame(i), i = null);
|
|
113
|
-
}), g(() => {
|
|
114
|
-
i && cancelAnimationFrame(i);
|
|
115
|
-
});
|
|
116
|
-
const v = x(() => {
|
|
117
|
-
const l = M({
|
|
118
|
-
tooltip: t.value,
|
|
119
|
-
chart: a.parent,
|
|
120
|
-
clientPosition: o.value,
|
|
121
|
-
positionPreference: a.position,
|
|
122
|
-
defaultOffsetY: a.offsetY,
|
|
123
|
-
blockShiftY: a.blockShiftY
|
|
124
|
-
});
|
|
125
|
-
return {
|
|
126
|
-
top: Math.round(l.top),
|
|
127
|
-
left: Math.round(l.left)
|
|
128
|
-
};
|
|
129
|
-
}), f = x(() => z(a.backgroundColor, a.backgroundOpacity));
|
|
130
|
-
return (l, r) => (h(), S($, {
|
|
131
|
-
to: e.isFullscreen ? e.parent : "body"
|
|
132
|
-
}, [
|
|
133
|
-
e.show ? (h(), B("div", {
|
|
134
|
-
key: 0,
|
|
135
|
-
ref_key: "tooltip",
|
|
136
|
-
ref: t,
|
|
137
|
-
role: "tooltip",
|
|
138
|
-
"aria-hidden": !e.show,
|
|
139
|
-
"aria-live": "polite",
|
|
140
|
-
class: N({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom, "vue-data-ui-tooltip-backdrop": e.backdropFilter }),
|
|
141
|
-
style: w(`
|
|
142
|
-
pointer-events:none;
|
|
143
|
-
top:${v.value.top}px;
|
|
144
|
-
left:${v.value.left}px;
|
|
145
|
-
${e.isCustom ? "" : `background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};
|
|
146
|
-
border-radius:${e.borderRadius}px;
|
|
147
|
-
border:${e.borderWidth}px solid ${e.borderColor};
|
|
148
|
-
z-index:2147483647;
|
|
149
|
-
`)
|
|
150
|
-
}, [
|
|
151
|
-
m(l.$slots, "tooltip-before"),
|
|
152
|
-
m(l.$slots, "default"),
|
|
153
|
-
Y("div", { innerHTML: e.content }, null, 8, O),
|
|
154
|
-
m(l.$slots, "tooltip-after")
|
|
155
|
-
], 14, L)) : C("", !0)
|
|
156
|
-
], 8, ["to"]));
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
export {
|
|
160
|
-
A as default
|
|
161
|
-
};
|