vue-data-ui 3.4.5 → 3.4.7
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/{PackageVersion-C-wnwkC4.js → PackageVersion-QNVkHOgG.js} +1 -1
- package/dist/{Title-BWp-37K_.js → Title-l36lOBMx.js} +1 -1
- package/dist/Tooltip-oWCO1HKy.js +205 -0
- package/dist/{UserOptions-1OZ3jcm6.js → UserOptions-CnzumGJj.js} +113 -113
- 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-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-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-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-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-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 +1 -0
- package/dist/{useNestedProp-dJX_8vvZ.js → useNestedProp-BjZe1Y85.js} +2 -1
- package/dist/{vue-data-ui-BMm1cH_7.js → vue-data-ui-BFwmY6si.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-KbXMgsD4.js → vue-ui-3d-bar-D1GoJWeg.js} +3 -3
- package/dist/{vue-ui-accordion-UpZ765hd.js → vue-ui-accordion-CZ0thhxa.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CAnvJqVu.js → vue-ui-age-pyramid-BDGFSsA5.js} +3 -3
- package/dist/{vue-ui-annotator--8upDtTs.js → vue-ui-annotator-BylDgUVb.js} +2 -2
- package/dist/{vue-ui-bullet-vEsqg-Wk.js → vue-ui-bullet-C3GtE3bF.js} +3 -3
- package/dist/{vue-ui-candlestick-C2q8lhDv.js → vue-ui-candlestick-BlzmB2vM.js} +3 -3
- package/dist/{vue-ui-carousel-table-7ZDbJPdA.js → vue-ui-carousel-table-TKa7KYZ0.js} +2 -2
- package/dist/{vue-ui-chestnut-jHiG8RhC.js → vue-ui-chestnut-DNxARRsx.js} +2 -2
- package/dist/{vue-ui-chord-Br7aGEQ3.js → vue-ui-chord-BM7tZig3.js} +3 -3
- package/dist/{vue-ui-circle-pack-CkDTsG3R.js → vue-ui-circle-pack-BZU75WUb.js} +3 -3
- package/dist/{vue-ui-cursor-BqWDtj2I.js → vue-ui-cursor-ik59bfC4.js} +1 -1
- package/dist/{vue-ui-dashboard-r8kE5hha.js → vue-ui-dashboard-pNXFzQu4.js} +64 -64
- package/dist/{vue-ui-digits-Cdn6EcYe.js → vue-ui-digits-ByNNcWXi.js} +1 -1
- package/dist/{vue-ui-donut-SyV7u3Fk.js → vue-ui-donut-CRvfqCUO.js} +3 -3
- package/dist/{vue-ui-donut-evolution-DiUVj1kD.js → vue-ui-donut-evolution-CCdIWlyZ.js} +3 -3
- package/dist/{vue-ui-dumbbell-Dy0L7H8E.js → vue-ui-dumbbell-CLmwZyrf.js} +3 -3
- package/dist/vue-ui-flow-BY8XQXKF.js +964 -0
- package/dist/{vue-ui-funnel-CI6hxhV_.js → vue-ui-funnel-BmxhWoVW.js} +3 -3
- package/dist/{vue-ui-galaxy-EzuozsBr.js → vue-ui-galaxy-BgtKffX5.js} +3 -3
- package/dist/{vue-ui-gauge-fB0yh37Y.js → vue-ui-gauge-DLpK4-Cd.js} +3 -3
- package/dist/{vue-ui-gizmo-Bdgj1nqN.js → vue-ui-gizmo-CCNboEnL.js} +2 -2
- package/dist/{vue-ui-heatmap-BmVWhxg-.js → vue-ui-heatmap-BSDmuvq8.js} +4 -4
- package/dist/{vue-ui-history-plot-C2glM-Ch.js → vue-ui-history-plot-s8wYm7fn.js} +3 -3
- package/dist/{vue-ui-kpi-CVpJH51G.js → vue-ui-kpi-BGGff8LM.js} +2 -2
- package/dist/{vue-ui-mini-loader-b4D0tPsD.js → vue-ui-mini-loader-CSF-7TJL.js} +1 -1
- package/dist/{vue-ui-molecule-D4SUfwjo.js → vue-ui-molecule-BYWE2ONy.js} +2 -2
- package/dist/{vue-ui-mood-radar-CJt19tCD.js → vue-ui-mood-radar-BOvaA1Jq.js} +3 -3
- package/dist/{vue-ui-nested-donuts-vpUAKVVs.js → vue-ui-nested-donuts-BUGkuN56.js} +3 -3
- package/dist/{vue-ui-onion-DhgSgY5m.js → vue-ui-onion-CPshjlgf.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-B6SLr7sn.js → vue-ui-parallel-coordinate-plot-orQotxDr.js} +3 -3
- package/dist/{vue-ui-quadrant-Ctik4Ah_.js → vue-ui-quadrant-CM3iH31f.js} +3 -3
- package/dist/{vue-ui-quick-chart-BM5eEuC7.js → vue-ui-quick-chart-BhO2YQn0.js} +2 -2
- package/dist/{vue-ui-radar-D8SgJ4tK.js → vue-ui-radar-CNZVFG-v.js} +3 -3
- package/dist/{vue-ui-rating-CvJlfRvs.js → vue-ui-rating-CiMoFM_c.js} +1 -1
- package/dist/{vue-ui-relation-circle-s1sWs_WI.js → vue-ui-relation-circle-BX48Cgx3.js} +3 -3
- package/dist/{vue-ui-ridgeline-DjAxHRqR.js → vue-ui-ridgeline-MQAF9nvq.js} +3 -3
- package/dist/{vue-ui-rings-vO1AGupU.js → vue-ui-rings-BPhLSCUX.js} +3 -3
- package/dist/{vue-ui-scatter-DN_7iGgB.js → vue-ui-scatter-C3dD6T6q.js} +3 -3
- package/dist/{vue-ui-skeleton-DGSWEtd8.js → vue-ui-skeleton-Be8xm0gy.js} +2 -2
- package/dist/{vue-ui-smiley-D3k4b6h1.js → vue-ui-smiley-sGFRbn31.js} +1 -1
- package/dist/{vue-ui-spark-trend-D9ZTHsa9.js → vue-ui-spark-trend-suNsujGP.js} +2 -2
- package/dist/{vue-ui-sparkbar-DZpkkEtB.js → vue-ui-sparkbar-BjD2kUth.js} +2 -2
- package/dist/{vue-ui-sparkgauge-DGtUfL_p.js → vue-ui-sparkgauge-C816ocz6.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BFTP4gTI.js → vue-ui-sparkhistogram-CAgfueUq.js} +2 -2
- package/dist/{vue-ui-sparkline-CU8Va2AD.js → vue-ui-sparkline-BmVwG9vw.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-UVkUOUYB.js → vue-ui-sparkstackbar-DoFTW_u_.js} +2 -2
- package/dist/{vue-ui-stackbar-ksABSPMl.js → vue-ui-stackbar-C1qHHSuI.js} +3 -3
- package/dist/{vue-ui-strip-plot-CtnEtJKi.js → vue-ui-strip-plot-Ccz9BiSl.js} +3 -3
- package/dist/{vue-ui-table-D_r5Yi-t.js → vue-ui-table-IKsrsEUh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-zbRs5HKh.js → vue-ui-table-heatmap-B4rjR34n.js} +2 -2
- package/dist/{vue-ui-table-sparkline-g3zovGbg.js → vue-ui-table-sparkline-B71QVMkq.js} +2 -2
- package/dist/{vue-ui-thermometer-ChGRvASK.js → vue-ui-thermometer-fY5WxAbX.js} +3 -3
- package/dist/{vue-ui-timer-ClBUDPDN.js → vue-ui-timer-BBdNJ0fK.js} +3 -3
- package/dist/{vue-ui-tiremarks-Drrj3Zrx.js → vue-ui-tiremarks-Co0t61HH.js} +3 -3
- package/dist/{vue-ui-treemap-B9iT80T5.js → vue-ui-treemap-ujTn_36A.js} +3 -3
- package/dist/{vue-ui-vertical-bar-DtNL4lAc.js → vue-ui-vertical-bar-BNp-Vl0q.js} +4 -4
- package/dist/{vue-ui-waffle-DtotUBJA.js → vue-ui-waffle-CRPYb9mZ.js} +3 -3
- package/dist/{vue-ui-wheel-D6F9i5SF.js → vue-ui-wheel-BvycoQ3Z.js} +3 -3
- package/dist/{vue-ui-word-cloud-B0T-B3Oa.js → vue-ui-word-cloud-Cjs46-dC.js} +3 -3
- package/dist/{vue-ui-world-Bwvp67h5.js → vue-ui-world-BTLAdJeD.js} +2 -2
- package/dist/{vue-ui-xy-BDCmrr2a.js → vue-ui-xy-CBRHUbAn.js} +4 -4
- package/dist/{vue-ui-xy-canvas-Dm-LZ-LP.js → vue-ui-xy-canvas-BGl_2pHw.js} +4 -4
- package/package.json +1 -1
- package/dist/Tooltip-68Yi_FFl.js +0 -200
- package/dist/vue-ui-flow-_6RQ-gmk.js +0 -931
package/dist/Tooltip-68Yi_FFl.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { ref as f, onMounted as F, onUnmounted as S, watch as b, nextTick as B, computed as y, createBlock as C, openBlock as g, Teleport as w, createElementBlock as N, createCommentVNode as T, normalizeStyle as $, normalizeClass as M, renderSlot as h, createElementVNode as Y } from "vue";
|
|
2
|
-
import { s as z } from "./lib-C_mNZmhD.js";
|
|
3
|
-
function A({ tooltip: a, chart: e, clientPosition: o, positionPreference: c = "center", defaultOffsetY: p = 24, blockShiftY: u = !1 }) {
|
|
4
|
-
const t = f(0), i = f(p);
|
|
5
|
-
if (a && e) {
|
|
6
|
-
const { width: n, height: m } = a.getBoundingClientRect(), { right: r, left: d, bottom: v } = e.getBoundingClientRect();
|
|
7
|
-
c === "center" && (o.x + n / 2 > r ? t.value = -n + (r - o.x) : o.x - n / 2 < d ? t.value = -n + (n - (o.x - d)) : t.value = -n / 2), c === "right" && (o.x + n > r ? t.value = -n + (r - o.x) : t.value = 0), c === "left" && (o.x < d + n ? t.value = -n + (n - (o.x - d)) : t.value = -n), o.y + m > v && !u && (i.value = -m - p);
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
top: o.y + i.value,
|
|
11
|
-
left: o.x + t.value
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function E(a, e, o) {
|
|
15
|
-
F(() => a.addEventListener(e, o)), S(() => a.removeEventListener(e, o));
|
|
16
|
-
}
|
|
17
|
-
function R() {
|
|
18
|
-
const a = f(0), e = f(0);
|
|
19
|
-
return E(window, "mousemove", (o) => {
|
|
20
|
-
a.value = o.clientX, e.value = o.clientY;
|
|
21
|
-
}), { x: a, y: e };
|
|
22
|
-
}
|
|
23
|
-
const L = ["aria-hidden"], O = ["innerHTML"], q = {
|
|
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
|
-
smoothForce: {
|
|
95
|
-
type: Number,
|
|
96
|
-
default: 0.18
|
|
97
|
-
},
|
|
98
|
-
smoothSnapThreshold: {
|
|
99
|
-
type: Number,
|
|
100
|
-
default: 0.25
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
setup(a) {
|
|
104
|
-
const e = a, o = f(null), { x: c, y: p } = R(e.parent), u = f({ x: 0, y: 0 }), t = f({ x: 0, y: 0 });
|
|
105
|
-
let i = null;
|
|
106
|
-
function n() {
|
|
107
|
-
if (!e.show) {
|
|
108
|
-
r();
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (!e.smooth) {
|
|
112
|
-
t.value.x = u.value.x, t.value.y = u.value.y, r();
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const l = u.value.x - t.value.x, s = u.value.y - t.value.y;
|
|
116
|
-
if (Math.abs(l) <= e.smoothSnapThreshold && Math.abs(s) <= e.smoothSnapThreshold) {
|
|
117
|
-
t.value.x = u.value.x, t.value.y = u.value.y, r();
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
t.value.x += l * e.smoothForce, t.value.y += s * e.smoothForce, i = requestAnimationFrame(n);
|
|
121
|
-
}
|
|
122
|
-
function m() {
|
|
123
|
-
i == null && e.show && e.smooth && (i = requestAnimationFrame(n));
|
|
124
|
-
}
|
|
125
|
-
function r() {
|
|
126
|
-
i != null && (cancelAnimationFrame(i), i = null);
|
|
127
|
-
}
|
|
128
|
-
b([c, p], ([l, s]) => {
|
|
129
|
-
u.value.x = l, u.value.y = s, e.smooth ? m() : (t.value.x = l, t.value.y = s);
|
|
130
|
-
}), b(
|
|
131
|
-
() => e.show,
|
|
132
|
-
async (l) => {
|
|
133
|
-
if (l) {
|
|
134
|
-
const s = c.value, x = p.value;
|
|
135
|
-
u.value.x = s, u.value.y = x, t.value.x = s, t.value.y = x, await B(), m();
|
|
136
|
-
} else
|
|
137
|
-
r();
|
|
138
|
-
}
|
|
139
|
-
), S(() => {
|
|
140
|
-
r();
|
|
141
|
-
});
|
|
142
|
-
const d = y(() => {
|
|
143
|
-
const l = A({
|
|
144
|
-
tooltip: o.value,
|
|
145
|
-
chart: e.parent,
|
|
146
|
-
clientPosition: t.value,
|
|
147
|
-
positionPreference: e.position,
|
|
148
|
-
defaultOffsetY: e.offsetY,
|
|
149
|
-
blockShiftY: e.blockShiftY
|
|
150
|
-
});
|
|
151
|
-
return {
|
|
152
|
-
top: Math.round(l.top),
|
|
153
|
-
left: Math.round(l.left)
|
|
154
|
-
};
|
|
155
|
-
}), v = y(() => z(e.backgroundColor, e.backgroundOpacity)), k = y(() => {
|
|
156
|
-
const l = {
|
|
157
|
-
pointerEvents: "none",
|
|
158
|
-
position: "fixed",
|
|
159
|
-
top: "0px",
|
|
160
|
-
left: "0px",
|
|
161
|
-
transform: `translate3d(${d.value.left}px, ${d.value.top}px, 0)`,
|
|
162
|
-
borderRadius: `${e.borderRadius}px`,
|
|
163
|
-
border: `${e.borderWidth}px solid ${e.borderColor}`,
|
|
164
|
-
zIndex: 2147483647
|
|
165
|
-
};
|
|
166
|
-
return e.isCustom || Object.assign(l, {
|
|
167
|
-
background: v.value,
|
|
168
|
-
color: e.color,
|
|
169
|
-
maxWidth: e.maxWidth,
|
|
170
|
-
fontSize: `${e.fontSize}px`
|
|
171
|
-
}), l;
|
|
172
|
-
});
|
|
173
|
-
return (l, s) => (g(), C(w, {
|
|
174
|
-
to: a.isFullscreen ? a.parent : "body"
|
|
175
|
-
}, [
|
|
176
|
-
a.show ? (g(), N("div", {
|
|
177
|
-
key: 0,
|
|
178
|
-
ref_key: "tooltip",
|
|
179
|
-
ref: o,
|
|
180
|
-
role: "tooltip",
|
|
181
|
-
"aria-hidden": !a.show,
|
|
182
|
-
"aria-live": "polite",
|
|
183
|
-
class: M({
|
|
184
|
-
"vue-data-ui-custom-tooltip": a.isCustom,
|
|
185
|
-
"vue-data-ui-tooltip": !a.isCustom,
|
|
186
|
-
"vue-data-ui-tooltip-backdrop": a.backdropFilter
|
|
187
|
-
}),
|
|
188
|
-
style: $(k.value)
|
|
189
|
-
}, [
|
|
190
|
-
h(l.$slots, "tooltip-before"),
|
|
191
|
-
h(l.$slots, "default"),
|
|
192
|
-
Y("div", { innerHTML: a.content }, null, 8, O),
|
|
193
|
-
h(l.$slots, "tooltip-after")
|
|
194
|
-
], 14, L)) : T("", !0)
|
|
195
|
-
], 8, ["to"]));
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
export {
|
|
199
|
-
q as default
|
|
200
|
-
};
|