vue-data-ui 2.12.6 → 2.12.7-beta.1
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-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-data-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.12.
|
|
4
|
+
"version": "2.12.7-beta.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
|
|
7
7
|
"keywords": [
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@vitejs/plugin-vue": "^
|
|
104
|
-
"cypress": "^14.0
|
|
103
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
104
|
+
"cypress": "^14.5.0",
|
|
105
105
|
"remove-attr": "^0.0.13",
|
|
106
106
|
"sass": "^1.57.1",
|
|
107
107
|
"simple-git": "^3.24.0",
|
|
108
|
-
"vite": "^
|
|
109
|
-
"vitest": "^3.
|
|
110
|
-
"vue": "^3.5.
|
|
108
|
+
"vite": "^7.0.0",
|
|
109
|
+
"vitest": "^3.2.4",
|
|
110
|
+
"vue": "^3.5.17"
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { useCssVars as T, ref as M, reactive as $, computed as R, onUnmounted as N, createBlock as V, openBlock as g, Teleport as _, createElementBlock as y, createCommentVNode as I, withModifiers as a, normalizeStyle as k, createElementVNode as r, unref as j, renderSlot as b, createVNode as P, nextTick as U } from "vue";
|
|
2
|
-
import q from "./BaseIcon-CNbwMh_-.js";
|
|
3
|
-
import { X as A } from "./index-BFzQMJda.js";
|
|
4
|
-
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const G = ["xmlns"], J = { class: "modal-title" }, K = { class: "modal-body" }, Q = {
|
|
6
|
-
__name: "BaseDraggableDialog",
|
|
7
|
-
props: {
|
|
8
|
-
backgroundColor: { type: String },
|
|
9
|
-
color: { type: String },
|
|
10
|
-
headerBg: { type: String },
|
|
11
|
-
headerColor: { type: String }
|
|
12
|
-
},
|
|
13
|
-
emits: ["close"],
|
|
14
|
-
setup(u, { expose: D, emit: X }) {
|
|
15
|
-
T((t) => ({
|
|
16
|
-
b93256ca: u.color
|
|
17
|
-
}));
|
|
18
|
-
const B = u, C = X, f = M(!1), w = M(!1), e = $({
|
|
19
|
-
left: window.innerWidth / 2 - 200,
|
|
20
|
-
top: window.innerHeight / 2 - 120,
|
|
21
|
-
width: 400,
|
|
22
|
-
height: 400,
|
|
23
|
-
dragging: !1,
|
|
24
|
-
resizing: !1,
|
|
25
|
-
dragOffsetX: 0,
|
|
26
|
-
dragOffsetY: 0,
|
|
27
|
-
pointerStartX: 0,
|
|
28
|
-
pointerStartY: 0,
|
|
29
|
-
resizeStartW: 0,
|
|
30
|
-
resizeStartH: 0
|
|
31
|
-
});
|
|
32
|
-
function W() {
|
|
33
|
-
f.value = !0, U(() => {
|
|
34
|
-
w.value || (e.left = Math.max(0, window.innerWidth / 2 - e.width / 2), e.top = Math.max(0, window.innerHeight / 2 - e.height / 2), w.value = !0);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function x() {
|
|
38
|
-
f.value = !1, C("close");
|
|
39
|
-
}
|
|
40
|
-
D({ open: W, close: x });
|
|
41
|
-
const Y = R(() => ({
|
|
42
|
-
position: "fixed",
|
|
43
|
-
left: `${e.left}px`,
|
|
44
|
-
top: `${e.top}px`,
|
|
45
|
-
width: `${e.width}px`,
|
|
46
|
-
height: `${e.height}px`,
|
|
47
|
-
padding: 0,
|
|
48
|
-
border: "none",
|
|
49
|
-
background: B.backgroundColor,
|
|
50
|
-
boxShadow: "0 4px 24px rgba(0,0,0,0.15)",
|
|
51
|
-
zIndex: 9999,
|
|
52
|
-
overflow: "visible",
|
|
53
|
-
borderRadius: "2px"
|
|
54
|
-
}));
|
|
55
|
-
function d(t) {
|
|
56
|
-
return t.touches && t.touches.length ? { x: t.touches[0].clientX, y: t.touches[0].clientY } : { x: t.clientX, y: t.clientY };
|
|
57
|
-
}
|
|
58
|
-
function S(t) {
|
|
59
|
-
var o;
|
|
60
|
-
(o = t.preventDefault) == null || o.call(t), e.dragging = !0;
|
|
61
|
-
const n = d(t);
|
|
62
|
-
e.dragOffsetX = n.x - e.left, e.dragOffsetY = n.y - e.top, document.addEventListener("mousemove", h), document.addEventListener("mouseup", l), document.addEventListener("touchmove", h, { passive: !1 }), document.addEventListener("touchend", l);
|
|
63
|
-
}
|
|
64
|
-
function h(t) {
|
|
65
|
-
var s;
|
|
66
|
-
if (!e.dragging) return;
|
|
67
|
-
(s = t.preventDefault) == null || s.call(t);
|
|
68
|
-
const n = d(t);
|
|
69
|
-
let o = n.x - e.dragOffsetX, i = n.y - e.dragOffsetY;
|
|
70
|
-
o = Math.max(0, Math.min(o, window.innerWidth - e.width)), i = Math.max(0, Math.min(i, window.innerHeight - e.height)), e.left = o, e.top = i;
|
|
71
|
-
}
|
|
72
|
-
function l() {
|
|
73
|
-
e.dragging = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", l), document.removeEventListener("touchmove", h), document.removeEventListener("touchend", l);
|
|
74
|
-
}
|
|
75
|
-
function z(t) {
|
|
76
|
-
var o;
|
|
77
|
-
(o = t.preventDefault) == null || o.call(t), e.resizing = !0;
|
|
78
|
-
const n = d(t);
|
|
79
|
-
e.pointerStartX = n.x, e.pointerStartY = n.y, e.resizeStartW = e.width, e.resizeStartH = e.height, document.addEventListener("mousemove", p), document.addEventListener("mouseup", c), document.addEventListener("touchmove", p, { passive: !1 }), document.addEventListener("touchend", c);
|
|
80
|
-
}
|
|
81
|
-
function p(t) {
|
|
82
|
-
var s;
|
|
83
|
-
if (!e.resizing) return;
|
|
84
|
-
(s = t.preventDefault) == null || s.call(t);
|
|
85
|
-
const n = d(t);
|
|
86
|
-
let o = n.x - e.pointerStartX, i = n.y - e.pointerStartY;
|
|
87
|
-
e.width = Math.max(240, e.resizeStartW + o), e.height = Math.max(400, e.resizeStartH + i);
|
|
88
|
-
}
|
|
89
|
-
function c() {
|
|
90
|
-
e.resizing = !1, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", c), document.removeEventListener("touchmove", p), document.removeEventListener("touchend", c);
|
|
91
|
-
}
|
|
92
|
-
function L(t) {
|
|
93
|
-
var o;
|
|
94
|
-
(o = t.preventDefault) == null || o.call(t), e.resizing = !0;
|
|
95
|
-
const n = d(t);
|
|
96
|
-
e.pointerStartX = n.x, e.pointerStartY = n.y, e.resizeStartW = e.width, e.resizeStartH = e.height, e.resizeStartLeft = e.left, e.resizeStartTop = e.top, document.addEventListener("mousemove", v), document.addEventListener("mouseup", m), document.addEventListener("touchmove", v, { passive: !1 }), document.addEventListener("touchend", m);
|
|
97
|
-
}
|
|
98
|
-
function v(t) {
|
|
99
|
-
var E;
|
|
100
|
-
if (!e.resizing) return;
|
|
101
|
-
(E = t.preventDefault) == null || E.call(t);
|
|
102
|
-
const n = d(t);
|
|
103
|
-
let o = n.x - e.pointerStartX, i = Math.min(
|
|
104
|
-
Math.max(0, e.resizeStartLeft + o),
|
|
105
|
-
e.resizeStartLeft + e.resizeStartW - 240
|
|
106
|
-
// min width
|
|
107
|
-
), s = e.resizeStartW - (i - e.resizeStartLeft), H = n.y - e.pointerStartY, O = Math.max(400, e.resizeStartH + H);
|
|
108
|
-
e.left = i, e.width = s, e.height = O;
|
|
109
|
-
}
|
|
110
|
-
function m() {
|
|
111
|
-
e.resizing = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", m), document.removeEventListener("touchmove", v), document.removeEventListener("touchend", m);
|
|
112
|
-
}
|
|
113
|
-
return N(() => {
|
|
114
|
-
l(), c(), m();
|
|
115
|
-
}), (t, n) => (g(), V(_, { to: "body" }, [
|
|
116
|
-
f.value ? (g(), y("div", {
|
|
117
|
-
key: 0,
|
|
118
|
-
class: "modal vue-ui-draggable-dialog",
|
|
119
|
-
style: k(Y.value),
|
|
120
|
-
onClick: n[0] || (n[0] = a(() => {
|
|
121
|
-
}, ["stop"]))
|
|
122
|
-
}, [
|
|
123
|
-
r("div", {
|
|
124
|
-
class: "modal-header",
|
|
125
|
-
style: k({
|
|
126
|
-
backgroundColor: u.headerBg,
|
|
127
|
-
color: u.headerColor
|
|
128
|
-
})
|
|
129
|
-
}, [
|
|
130
|
-
r("span", {
|
|
131
|
-
class: "drag-handle",
|
|
132
|
-
onMousedown: a(S, ["stop", "prevent"]),
|
|
133
|
-
onTouchstart: a(S, ["stop", "prevent"])
|
|
134
|
-
}, [
|
|
135
|
-
(g(), y("svg", {
|
|
136
|
-
xmlns: j(A),
|
|
137
|
-
width: "20",
|
|
138
|
-
height: "20",
|
|
139
|
-
viewBox: "0 0 24 24",
|
|
140
|
-
fill: "none",
|
|
141
|
-
stroke: "currentColor",
|
|
142
|
-
"stroke-width": "1",
|
|
143
|
-
"stroke-linecap": "round",
|
|
144
|
-
"stroke-linejoin": "round"
|
|
145
|
-
}, n[1] || (n[1] = [
|
|
146
|
-
r("path", { d: "M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
147
|
-
r("path", { d: "M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
148
|
-
r("path", { d: "M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
149
|
-
r("path", { d: "M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
150
|
-
r("path", { d: "M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
151
|
-
r("path", { d: "M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
152
|
-
]), 8, G))
|
|
153
|
-
], 32),
|
|
154
|
-
r("span", J, [
|
|
155
|
-
b(t.$slots, "title", {}, void 0, !0)
|
|
156
|
-
]),
|
|
157
|
-
r("button", {
|
|
158
|
-
class: "close",
|
|
159
|
-
onClick: x
|
|
160
|
-
}, [
|
|
161
|
-
P(q, {
|
|
162
|
-
name: "close",
|
|
163
|
-
stroke: u.headerColor
|
|
164
|
-
}, null, 8, ["stroke"])
|
|
165
|
-
])
|
|
166
|
-
], 4),
|
|
167
|
-
r("div", K, [
|
|
168
|
-
b(t.$slots, "default", {}, void 0, !0)
|
|
169
|
-
]),
|
|
170
|
-
r("div", {
|
|
171
|
-
class: "resize-handle",
|
|
172
|
-
onMousedown: a(z, ["stop", "prevent"]),
|
|
173
|
-
onTouchstart: a(z, ["stop", "prevent"])
|
|
174
|
-
}, null, 32),
|
|
175
|
-
r("div", {
|
|
176
|
-
class: "resize-handle resize-handle-left",
|
|
177
|
-
onMousedown: a(L, ["stop", "prevent"]),
|
|
178
|
-
onTouchstart: a(L, ["stop", "prevent"])
|
|
179
|
-
}, null, 32)
|
|
180
|
-
], 4)) : I("", !0)
|
|
181
|
-
]));
|
|
182
|
-
}
|
|
183
|
-
}, oe = /* @__PURE__ */ F(Q, [["__scopeId", "data-v-1344ad9f"]]);
|
|
184
|
-
export {
|
|
185
|
-
oe as B
|
|
186
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as r } from "vue";
|
|
2
|
-
const n = "2.12.6", s = { "aria-hidden": "true" }, p = {
|
|
3
|
-
__name: "PackageVersion",
|
|
4
|
-
setup(a) {
|
|
5
|
-
return (c, _) => (t(), e("desc", s, "Composed with Vue Data UI " + o(r(n)), 1));
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
p as _
|
|
10
|
-
};
|
package/dist/Tooltip-CWmRmhJr.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { ref as s, onMounted as S, onUnmounted as g, watch as p, nextTick as k, computed as x, createBlock as $, openBlock as h, Teleport as C, createElementBlock as F, createCommentVNode as B, normalizeStyle as w, normalizeClass as N, renderSlot as m, createElementVNode as Y } from "vue";
|
|
2
|
-
import { s as z } from "./index-BFzQMJda.js";
|
|
3
|
-
function M({ tooltip: e, chart: a, clientPosition: t, positionPreference: d = "center", defaultOffsetY: c = 24, blockShiftY: u = !1 }) {
|
|
4
|
-
const o = s(0), i = s(c);
|
|
5
|
-
if (e && a) {
|
|
6
|
-
const { width: n, height: v } = e.getBoundingClientRect(), { right: f, left: l, bottom: r } = a.getBoundingClientRect();
|
|
7
|
-
d === "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), d === "right" && (t.x + n > f ? o.value = -n + (f - t.x) : o.value = 0), d === "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
|
-
S(() => e.addEventListener(a, t)), g(() => e.removeEventListener(a, t));
|
|
16
|
-
}
|
|
17
|
-
function E() {
|
|
18
|
-
const e = s(0), a = s(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
|
-
disableSmoothing: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: !1
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
setup(e) {
|
|
92
|
-
const a = e, t = s(null), { x: d, y: c } = E(a.parent), u = s({ x: 0, y: 0 }), o = s({ x: 0, y: 0 });
|
|
93
|
-
let i = null;
|
|
94
|
-
function n() {
|
|
95
|
-
if (a.disableSmoothing) {
|
|
96
|
-
o.value.x = u.value.x, o.value.y = u.value.y;
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
o.value.x += (u.value.x - o.value.x) * b, o.value.y += (u.value.y - o.value.y) * b, i = requestAnimationFrame(n);
|
|
100
|
-
}
|
|
101
|
-
p([d, c], ([l, r]) => {
|
|
102
|
-
u.value.x = l, u.value.y = r, a.disableSmoothing && (o.value.x = l, o.value.y = r);
|
|
103
|
-
}), p(() => a.show, async (l) => {
|
|
104
|
-
if (l) {
|
|
105
|
-
const r = d.value, y = c.value;
|
|
106
|
-
u.value.x = r, u.value.y = y, o.value.x = r, o.value.y = y, await k(), i || n();
|
|
107
|
-
} else
|
|
108
|
-
i && (cancelAnimationFrame(i), i = null);
|
|
109
|
-
}), g(() => {
|
|
110
|
-
i && cancelAnimationFrame(i);
|
|
111
|
-
});
|
|
112
|
-
const v = x(() => {
|
|
113
|
-
const l = M({
|
|
114
|
-
tooltip: t.value,
|
|
115
|
-
chart: a.parent,
|
|
116
|
-
clientPosition: o.value,
|
|
117
|
-
positionPreference: a.position,
|
|
118
|
-
defaultOffsetY: a.offsetY,
|
|
119
|
-
blockShiftY: a.blockShiftY
|
|
120
|
-
});
|
|
121
|
-
return {
|
|
122
|
-
top: Math.round(l.top),
|
|
123
|
-
left: Math.round(l.left)
|
|
124
|
-
};
|
|
125
|
-
}), f = x(() => z(a.backgroundColor, a.backgroundOpacity));
|
|
126
|
-
return (l, r) => (h(), $(C, {
|
|
127
|
-
to: e.isFullscreen ? e.parent : "body"
|
|
128
|
-
}, [
|
|
129
|
-
e.show ? (h(), F("div", {
|
|
130
|
-
key: 0,
|
|
131
|
-
ref_key: "tooltip",
|
|
132
|
-
ref: t,
|
|
133
|
-
role: "tooltip",
|
|
134
|
-
"aria-hidden": !e.show,
|
|
135
|
-
"aria-live": "polite",
|
|
136
|
-
class: N({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom }),
|
|
137
|
-
style: w(`
|
|
138
|
-
pointer-events:none;
|
|
139
|
-
top:${v.value.top}px;
|
|
140
|
-
left:${v.value.left}px;
|
|
141
|
-
${e.isCustom ? "" : `background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};
|
|
142
|
-
border-radius:${e.borderRadius}px;
|
|
143
|
-
border:${e.borderWidth}px solid ${e.borderColor};
|
|
144
|
-
z-index:2147483647;
|
|
145
|
-
`)
|
|
146
|
-
}, [
|
|
147
|
-
m(l.$slots, "tooltip-before"),
|
|
148
|
-
m(l.$slots, "default"),
|
|
149
|
-
Y("div", { innerHTML: e.content }, null, 8, O),
|
|
150
|
-
m(l.$slots, "tooltip-after")
|
|
151
|
-
], 14, L)) : B("", !0)
|
|
152
|
-
], 8, ["to"]));
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
export {
|
|
156
|
-
A as _,
|
|
157
|
-
E as u
|
|
158
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ref as r, onMounted as s, nextTick as i } from "vue";
|
|
2
|
-
function v({ config: t }) {
|
|
3
|
-
var u;
|
|
4
|
-
const e = r(null), a = (t == null ? void 0 : t.text) || "Chart visualization", l = ((u = t == null ? void 0 : t.subtitle) == null ? void 0 : u.text) || "";
|
|
5
|
-
return s(() => {
|
|
6
|
-
i(() => {
|
|
7
|
-
e.value && (e.value.setAttribute("aria-label", `${a}${l ? `. ${l}` : ""}`), e.value.setAttribute("role", "img"), e.value.setAttribute("aria-live", "polite"));
|
|
8
|
-
});
|
|
9
|
-
}), { svgRef: e };
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
v as u
|
|
13
|
-
};
|