vue-data-ui 3.0.0-next.5 → 3.0.0-next.51
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-6c56sGJ3.js → Arrow-BMGju2_w.js} +1 -1
- package/dist/{BaseDraggableDialog-y-BEzdTM.js → BaseDraggableDialog-ttBbgyGA.js} +2 -2
- package/dist/{BaseIcon-C-MP5EHV.js → BaseIcon-DBAQZ9vX.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-P7R8vBej.js → ColorPicker-BzrG0PPC.js} +2 -2
- package/dist/{DataTable-DD2pZIgh.js → DataTable-CdD7tKpP.js} +2 -2
- package/dist/{Legend-DZZeyx5j.js → Legend-BwFrIr1T.js} +2 -2
- package/dist/{NonSvgPenAndPaper-uETwt6yC.js → NonSvgPenAndPaper-7fQv8_3z.js} +3 -3
- package/dist/{PackageVersion-D3jqYZS6.js → PackageVersion-DQcP7Cwd.js} +1 -1
- package/dist/{PenAndPaper-Dy9zUXnw.js → PenAndPaper-Bf9A4qL1.js} +3 -3
- package/dist/{Shape-CFp_TwS5.js → Shape-DOpTDQGX.js} +43 -37
- package/dist/Slicer-CU5E8-Ee.js +602 -0
- package/dist/{SparkTooltip-BMV9aNLi.js → SparkTooltip-DlMDmeF6.js} +7 -7
- package/dist/{Title-zqtIOYc5.js → Title-3ACEciQv.js} +1 -1
- package/dist/{Tooltip-Bo30Qf34.js → Tooltip-D4AvFVyr.js} +23 -19
- package/dist/{UserOptions-Cgrlu96K.js → UserOptions-oB62jZT7.js} +2 -2
- package/dist/{dom-to-png-SVXVB8J4.js → dom-to-png-DYbPVI5z.js} +1 -1
- package/dist/{img-DJTFe-dE.js → img-Ck7tqm17.js} +1 -1
- package/dist/{index-DFSXaw69.js → index-DJKz3EWJ.js} +1598 -1216
- package/dist/{pdf-D-ie2h2J.js → pdf-p5i09caM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +326 -14
- package/dist/types/vue-data-ui.d.ts +326 -14
- package/dist/useAutoSizeLabelsInsideViewbox-Cz_aX3xn.js +41 -0
- package/dist/{useNestedProp-CV3NndHa.js → useNestedProp-DoTKbeYP.js} +1 -1
- package/dist/{usePrinter-DXG9SdJr.js → usePrinter-Iy7FxhyL.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DhThPvS0.js → vue-data-ui-qsd4viNh.js} +64 -64
- package/dist/vue-data-ui.js +30 -29
- package/dist/{vue-ui-3d-bar-C1M9fXQl.js → vue-ui-3d-bar-B4Yzjkm9.js} +6 -6
- package/dist/{vue-ui-accordion-B-PjY4U8.js → vue-ui-accordion-C0GWT8Ql.js} +3 -3
- package/dist/vue-ui-age-pyramid-CpM6j4zn.js +834 -0
- package/dist/{vue-ui-annotator-DauoYrzs.js → vue-ui-annotator-BiMqF0-h.js} +2 -2
- package/dist/vue-ui-bullet-Ceut2XIO.js +571 -0
- package/dist/vue-ui-candlestick-BuTIRR3U.js +999 -0
- package/dist/{vue-ui-carousel-table-B7i9TvuL.js → vue-ui-carousel-table-Ci_1ZoKD.js} +4 -4
- package/dist/{vue-ui-chestnut-D9HL_oAu.js → vue-ui-chestnut-Cuf0fg9v.js} +5 -5
- package/dist/{vue-ui-chord-BaEQ4_bQ.js → vue-ui-chord-BVRIWOiZ.js} +8 -8
- package/dist/{vue-ui-circle-pack-DumySU9s.js → vue-ui-circle-pack-BR5cI0BK.js} +26 -26
- package/dist/{vue-ui-cursor-D-88A6ue.js → vue-ui-cursor-DoIpdlLl.js} +2 -2
- package/dist/{vue-ui-dashboard-Br7MlswR.js → vue-ui-dashboard-BjBuMTeM.js} +62 -62
- package/dist/{vue-ui-digits-BMb2ZxN9.js → vue-ui-digits-C_JqOPx0.js} +2 -2
- package/dist/{vue-ui-donut-NZIGKCYr.js → vue-ui-donut-DXUQ0UP0.js} +401 -375
- package/dist/vue-ui-donut-evolution-BR6Xdy54.js +1075 -0
- package/dist/{vue-ui-dumbbell-B7jEqxUu.js → vue-ui-dumbbell-_JfspQwX.js} +7 -7
- package/dist/vue-ui-flow-BEnIvnRQ.js +841 -0
- package/dist/{vue-ui-funnel-BRfQjCk6.js → vue-ui-funnel-CyuziHMi.js} +6 -6
- package/dist/{vue-ui-galaxy-u0oNgjDP.js → vue-ui-galaxy-DcWvmZ6n.js} +60 -58
- package/dist/vue-ui-gauge-oN1N7b28.js +791 -0
- package/dist/{vue-ui-gizmo-6QSDxdTp.js → vue-ui-gizmo-Mqwbrfln.js} +3 -3
- package/dist/vue-ui-heatmap-Dhjk-00-.js +1078 -0
- package/dist/vue-ui-history-plot-BSJQ35vE.js +1073 -0
- package/dist/{vue-ui-kpi-DwOX2xG0.js → vue-ui-kpi-D0rfVSKA.js} +3 -3
- package/dist/{vue-ui-mini-loader-CrAhBt4w.js → vue-ui-mini-loader-Jp6LdxDx.js} +2 -2
- package/dist/{vue-ui-molecule-DVPFCYdv.js → vue-ui-molecule-CSXuV9bG.js} +46 -44
- package/dist/{vue-ui-mood-radar-BPCedEDi.js → vue-ui-mood-radar-im8oGB8C.js} +7 -7
- package/dist/vue-ui-nested-donuts-DnLmjykV.js +1286 -0
- package/dist/vue-ui-onion-Bk4zJ_9o.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-C2595LWs.js +915 -0
- package/dist/{vue-ui-quadrant-CRR0XJzp.js → vue-ui-quadrant-BmJdsTsT.js} +59 -57
- package/dist/vue-ui-quick-chart-D9TOJnI3.js +1761 -0
- package/dist/{vue-ui-radar-Fxk4Nq3_.js → vue-ui-radar-DTm1lF8I.js} +12 -10
- package/dist/{vue-ui-rating-EwwvsCi3.js → vue-ui-rating-BdMFk64J.js} +2 -2
- package/dist/{vue-ui-relation-circle-DB7plTEJ.js → vue-ui-relation-circle-CPJ8D3Kg.js} +6 -6
- package/dist/vue-ui-ridgeline-C4mCCqFj.js +1153 -0
- package/dist/vue-ui-rings-CAXGp0RS.js +728 -0
- package/dist/vue-ui-scatter-DgFXq8bL.js +1178 -0
- package/dist/{vue-ui-skeleton-1OErZL6t.js → vue-ui-skeleton-B-rmcfy0.js} +3 -3
- package/dist/{vue-ui-smiley-C_8dvJDX.js → vue-ui-smiley-r_P2OEcO.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ds3apeYN.js → vue-ui-spark-trend-DQDvNfRA.js} +6 -6
- package/dist/{vue-ui-sparkbar-NpyQVY-J.js → vue-ui-sparkbar-68lw7dCX.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BYHhBxke.js → vue-ui-sparkgauge-BymOwBcd.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DFbQ-g2X.js → vue-ui-sparkhistogram-q1Yk5jCv.js} +4 -4
- package/dist/vue-ui-sparkline-D8DYc1V7.js +489 -0
- package/dist/{vue-ui-sparkstackbar-BxMFKBBt.js → vue-ui-sparkstackbar-DOGkUFjJ.js} +55 -53
- package/dist/vue-ui-stackbar-7Xj5uhuM.js +1370 -0
- package/dist/{vue-ui-strip-plot-Crml8nCi.js → vue-ui-strip-plot-CAnsn0VI.js} +30 -28
- package/dist/{vue-ui-table-C3lxyo1m.js → vue-ui-table-D3CUOPTQ.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DYgu1wOK.js → vue-ui-table-heatmap-BZVJgTWg.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B_eROo0E.js → vue-ui-table-sparkline-Du1BvydE.js} +4 -4
- package/dist/{vue-ui-thermometer-Dn8-68zJ.js → vue-ui-thermometer-CcRtjSqY.js} +6 -6
- package/dist/{vue-ui-timer-CREgpYVZ.js → vue-ui-timer-DacMmmiu.js} +5 -5
- package/dist/vue-ui-tiremarks-BtYB3Ynv.js +406 -0
- package/dist/vue-ui-treemap-ZpdTWlqY.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BYtbI3Eq.js → vue-ui-vertical-bar-BTk4W7w-.js} +322 -306
- package/dist/vue-ui-waffle-Fa9tb_rV.js +910 -0
- package/dist/vue-ui-wheel-4Z4eLQhc.js +379 -0
- package/dist/{vue-ui-word-cloud-DBJueUIP.js → vue-ui-word-cloud-DoaJFhqN.js} +12 -10
- package/dist/{vue-ui-world-DR6IEkat.js → vue-ui-world-Dz9YUEEG.js} +11 -9
- package/dist/vue-ui-xy-D5RVw5D0.js +3760 -0
- package/dist/{vue-ui-xy-canvas-C2k2SOVa.js → vue-ui-xy-canvas-DzDX5ysJ.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-Bba4UfIm.js +0 -577
- package/dist/vue-ui-age-pyramid-Bt0KEjza.js +0 -746
- package/dist/vue-ui-bullet-CWxvbrat.js +0 -513
- package/dist/vue-ui-candlestick-BmYaA6wk.js +0 -873
- package/dist/vue-ui-donut-evolution-D38U9QxB.js +0 -903
- package/dist/vue-ui-flow-k4KjXCTn.js +0 -765
- package/dist/vue-ui-gauge-DUpSrOgm.js +0 -738
- package/dist/vue-ui-heatmap-CqqXcJ8F.js +0 -877
- package/dist/vue-ui-history-plot-BiC39PhQ.js +0 -924
- package/dist/vue-ui-nested-donuts-C2kl6581.js +0 -1177
- package/dist/vue-ui-onion-Dk3OUNGJ.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-B-r0h3BM.js +0 -807
- package/dist/vue-ui-quick-chart-CS-Uk49C.js +0 -1612
- package/dist/vue-ui-ridgeline-D55xotqc.js +0 -969
- package/dist/vue-ui-rings-D6gr6DBO.js +0 -685
- package/dist/vue-ui-scatter-hFI2YfFt.js +0 -1045
- package/dist/vue-ui-sparkline-CiVlvGOI.js +0 -459
- package/dist/vue-ui-stackbar-DHsxlaNI.js +0 -1207
- package/dist/vue-ui-tiremarks-DrFKdGSj.js +0 -358
- package/dist/vue-ui-treemap-C1m-cAh0.js +0 -965
- package/dist/vue-ui-waffle-Cr0JqMuU.js +0 -863
- package/dist/vue-ui-wheel-CUgfhL9p.js +0 -352
- package/dist/vue-ui-xy-BCFKGTws.js +0 -2980
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { s as z } from "./index-
|
|
3
|
-
function M({ tooltip: e, chart: a, clientPosition: t, positionPreference:
|
|
4
|
-
const o =
|
|
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-DJKz3EWJ.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
5
|
if (e && a) {
|
|
6
6
|
const { width: n, height: v } = e.getBoundingClientRect(), { right: f, left: l, bottom: r } = a.getBoundingClientRect();
|
|
7
|
-
|
|
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
8
|
}
|
|
9
9
|
return {
|
|
10
10
|
top: t.y + i.value,
|
|
@@ -12,10 +12,10 @@ function M({ tooltip: e, chart: a, clientPosition: t, positionPreference: d = "c
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
function T(e, a, t) {
|
|
15
|
-
|
|
15
|
+
k(() => e.addEventListener(a, t)), g(() => e.removeEventListener(a, t));
|
|
16
16
|
}
|
|
17
17
|
function E() {
|
|
18
|
-
const e =
|
|
18
|
+
const e = d(0), a = d(0);
|
|
19
19
|
return T(window, "mousemove", (t) => {
|
|
20
20
|
e.value = t.clientX, a.value = t.clientY;
|
|
21
21
|
}), { x: e, y: a };
|
|
@@ -83,27 +83,31 @@ const L = ["aria-hidden"], O = ["innerHTML"], b = 0.18, A = {
|
|
|
83
83
|
type: Boolean,
|
|
84
84
|
default: !1
|
|
85
85
|
},
|
|
86
|
-
|
|
86
|
+
smooth: {
|
|
87
87
|
type: Boolean,
|
|
88
|
-
default: !
|
|
88
|
+
default: !0
|
|
89
|
+
},
|
|
90
|
+
backdropFilter: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: !0
|
|
89
93
|
}
|
|
90
94
|
},
|
|
91
95
|
setup(e) {
|
|
92
|
-
const a = e, t =
|
|
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 });
|
|
93
97
|
let i = null;
|
|
94
98
|
function n() {
|
|
95
|
-
if (a.
|
|
99
|
+
if (!a.smooth) {
|
|
96
100
|
o.value.x = u.value.x, o.value.y = u.value.y;
|
|
97
101
|
return;
|
|
98
102
|
}
|
|
99
103
|
o.value.x += (u.value.x - o.value.x) * b, o.value.y += (u.value.y - o.value.y) * b, i = requestAnimationFrame(n);
|
|
100
104
|
}
|
|
101
|
-
p([
|
|
102
|
-
u.value.x = l, u.value.y = r, a.
|
|
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);
|
|
103
107
|
}), p(() => a.show, async (l) => {
|
|
104
108
|
if (l) {
|
|
105
|
-
const r =
|
|
106
|
-
u.value.x = r, u.value.y = y, o.value.x = r, o.value.y = y, await
|
|
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();
|
|
107
111
|
} else
|
|
108
112
|
i && (cancelAnimationFrame(i), i = null);
|
|
109
113
|
}), g(() => {
|
|
@@ -123,17 +127,17 @@ const L = ["aria-hidden"], O = ["innerHTML"], b = 0.18, A = {
|
|
|
123
127
|
left: Math.round(l.left)
|
|
124
128
|
};
|
|
125
129
|
}), f = x(() => z(a.backgroundColor, a.backgroundOpacity));
|
|
126
|
-
return (l, r) => (h(),
|
|
130
|
+
return (l, r) => (h(), S($, {
|
|
127
131
|
to: e.isFullscreen ? e.parent : "body"
|
|
128
132
|
}, [
|
|
129
|
-
e.show ? (h(),
|
|
133
|
+
e.show ? (h(), B("div", {
|
|
130
134
|
key: 0,
|
|
131
135
|
ref_key: "tooltip",
|
|
132
136
|
ref: t,
|
|
133
137
|
role: "tooltip",
|
|
134
138
|
"aria-hidden": !e.show,
|
|
135
139
|
"aria-live": "polite",
|
|
136
|
-
class: N({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom }),
|
|
140
|
+
class: N({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom, "vue-data-ui-tooltip-backdrop": e.backdropFilter }),
|
|
137
141
|
style: w(`
|
|
138
142
|
pointer-events:none;
|
|
139
143
|
top:${v.value.top}px;
|
|
@@ -148,7 +152,7 @@ const L = ["aria-hidden"], O = ["innerHTML"], b = 0.18, A = {
|
|
|
148
152
|
m(l.$slots, "default"),
|
|
149
153
|
Y("div", { innerHTML: e.content }, null, 8, O),
|
|
150
154
|
m(l.$slots, "tooltip-after")
|
|
151
|
-
], 14, L)) :
|
|
155
|
+
], 14, L)) : C("", !0)
|
|
152
156
|
], 8, ["to"]));
|
|
153
157
|
}
|
|
154
158
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as m, computed as w, onMounted as Q, onBeforeUnmount as Y, withDirectives as Z, createElementBlock as s, openBlock as o, normalizeStyle as v, createElementVNode as X, withKeys as p, withModifiers as _, renderSlot as d, normalizeProps as S, guardReactiveProps as ee, createVNode as te, normalizeClass as k, createCommentVNode as a, Fragment as $, createBlock as f, toDisplayString as c, mergeProps as T, unref as oe } from "vue";
|
|
2
2
|
import { v as ne } from "./vClickOutside-C6WiFswA.js";
|
|
3
|
-
import r from "./BaseIcon-
|
|
4
|
-
import z from "./img-
|
|
3
|
+
import r from "./BaseIcon-DBAQZ9vX.js";
|
|
4
|
+
import z from "./img-Ck7tqm17.js";
|
|
5
5
|
import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ie = ["title"], se = ["data-open"], ae = {
|
|
7
7
|
__name: "UserOptions",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as n } from "./dom-to-png-
|
|
1
|
+
import { d as n } from "./dom-to-png-DYbPVI5z.js";
|
|
2
2
|
async function u({ domElement: t, fileName: c, format: f = "png", scale: i = 2, base64: a = !1, img: g = !1 }) {
|
|
3
3
|
if (!t) return Promise.reject("No element provided");
|
|
4
4
|
const h = typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|