vue-data-ui 3.0.0-next.5 → 3.0.0-next.50
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-Z9jhaVP0.js} +1 -1
- package/dist/{BaseDraggableDialog-y-BEzdTM.js → BaseDraggableDialog-CXFM6lrb.js} +2 -2
- package/dist/{BaseIcon-C-MP5EHV.js → BaseIcon-D3lVmh4q.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-P7R8vBej.js → ColorPicker-CZydWpxG.js} +2 -2
- package/dist/{DataTable-DD2pZIgh.js → DataTable-DBPMgoC3.js} +2 -2
- package/dist/{Legend-DZZeyx5j.js → Legend-Dj4hW4ih.js} +2 -2
- package/dist/{NonSvgPenAndPaper-uETwt6yC.js → NonSvgPenAndPaper-JPMlKVW3.js} +3 -3
- package/dist/{PackageVersion-D3jqYZS6.js → PackageVersion-_JpUHIQF.js} +1 -1
- package/dist/{PenAndPaper-Dy9zUXnw.js → PenAndPaper-CiXy6ifX.js} +3 -3
- package/dist/{Shape-CFp_TwS5.js → Shape-BLUp5WPA.js} +43 -37
- package/dist/Slicer-QbudvRet.js +602 -0
- package/dist/{SparkTooltip-BMV9aNLi.js → SparkTooltip-Nh3_vlzT.js} +7 -7
- package/dist/{Title-zqtIOYc5.js → Title-CxOYqn0J.js} +1 -1
- package/dist/{Tooltip-Bo30Qf34.js → Tooltip-CzRs24i2.js} +23 -19
- package/dist/{UserOptions-Cgrlu96K.js → UserOptions-RZkXTOCa.js} +2 -2
- package/dist/{dom-to-png-SVXVB8J4.js → dom-to-png-CV2fR0EQ.js} +1 -1
- package/dist/{img-DJTFe-dE.js → img-B7ogJ4e0.js} +1 -1
- package/dist/{index-DFSXaw69.js → index-CJ_8wwwn.js} +1594 -1216
- package/dist/{pdf-D-ie2h2J.js → pdf-set5F9CM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +324 -14
- package/dist/types/vue-data-ui.d.ts +324 -14
- package/dist/useAutoSizeLabelsInsideViewbox-CyuM0n69.js +41 -0
- package/dist/{useNestedProp-CV3NndHa.js → useNestedProp-Co3NIfJz.js} +1 -1
- package/dist/{usePrinter-DXG9SdJr.js → usePrinter-Djgu-cC0.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-HYXpyDKV.js} +64 -64
- package/dist/vue-data-ui.js +30 -29
- package/dist/{vue-ui-3d-bar-C1M9fXQl.js → vue-ui-3d-bar-CT_YtMoO.js} +6 -6
- package/dist/{vue-ui-accordion-B-PjY4U8.js → vue-ui-accordion-3yBUN0ar.js} +3 -3
- package/dist/vue-ui-age-pyramid-FUsbvtyA.js +834 -0
- package/dist/{vue-ui-annotator-DauoYrzs.js → vue-ui-annotator-C4Z-9ldl.js} +2 -2
- package/dist/vue-ui-bullet-B1ALDthr.js +571 -0
- package/dist/vue-ui-candlestick-BuD3f7_o.js +999 -0
- package/dist/{vue-ui-carousel-table-B7i9TvuL.js → vue-ui-carousel-table-Dm_FdAF0.js} +4 -4
- package/dist/{vue-ui-chestnut-D9HL_oAu.js → vue-ui-chestnut-WTwQvrY9.js} +5 -5
- package/dist/{vue-ui-chord-BaEQ4_bQ.js → vue-ui-chord-CPVmSnYG.js} +8 -8
- package/dist/{vue-ui-circle-pack-DumySU9s.js → vue-ui-circle-pack-Bc8bJtl0.js} +26 -26
- package/dist/{vue-ui-cursor-D-88A6ue.js → vue-ui-cursor-DfZVsgB6.js} +2 -2
- package/dist/{vue-ui-dashboard-Br7MlswR.js → vue-ui-dashboard-BP5AhItc.js} +62 -62
- package/dist/{vue-ui-digits-BMb2ZxN9.js → vue-ui-digits-FvXrM2xK.js} +2 -2
- package/dist/{vue-ui-donut-NZIGKCYr.js → vue-ui-donut-3JmvHI0A.js} +401 -375
- package/dist/vue-ui-donut-evolution-DiBD970y.js +1075 -0
- package/dist/{vue-ui-dumbbell-B7jEqxUu.js → vue-ui-dumbbell-BiD393o3.js} +7 -7
- package/dist/vue-ui-flow-DbdQR23z.js +841 -0
- package/dist/{vue-ui-funnel-BRfQjCk6.js → vue-ui-funnel-DByaDRM7.js} +6 -6
- package/dist/{vue-ui-galaxy-u0oNgjDP.js → vue-ui-galaxy-C4Al6xQj.js} +60 -58
- package/dist/vue-ui-gauge-DjUtEfNU.js +791 -0
- package/dist/{vue-ui-gizmo-6QSDxdTp.js → vue-ui-gizmo-CzrxRz6L.js} +3 -3
- package/dist/vue-ui-heatmap-HVYUxTOT.js +1078 -0
- package/dist/vue-ui-history-plot-DXSpSL4A.js +1073 -0
- package/dist/{vue-ui-kpi-DwOX2xG0.js → vue-ui-kpi-DU8bOzeM.js} +3 -3
- package/dist/{vue-ui-mini-loader-CrAhBt4w.js → vue-ui-mini-loader-E4KhKAQz.js} +2 -2
- package/dist/{vue-ui-molecule-DVPFCYdv.js → vue-ui-molecule-DrFrNbBj.js} +46 -44
- package/dist/{vue-ui-mood-radar-BPCedEDi.js → vue-ui-mood-radar-Cf_2QCYC.js} +7 -7
- package/dist/vue-ui-nested-donuts-BnA1KtIt.js +1286 -0
- package/dist/vue-ui-onion-B84CPvyH.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-D4Ct2cvP.js +915 -0
- package/dist/{vue-ui-quadrant-CRR0XJzp.js → vue-ui-quadrant-8ksd3FSu.js} +59 -57
- package/dist/vue-ui-quick-chart-BY8Kd1LO.js +1761 -0
- package/dist/{vue-ui-radar-Fxk4Nq3_.js → vue-ui-radar-BUQaHh0L.js} +12 -10
- package/dist/{vue-ui-rating-EwwvsCi3.js → vue-ui-rating-Cn1_Hn2b.js} +2 -2
- package/dist/{vue-ui-relation-circle-DB7plTEJ.js → vue-ui-relation-circle-DPKDfjYx.js} +6 -6
- package/dist/vue-ui-ridgeline-zvRHpo_N.js +1153 -0
- package/dist/vue-ui-rings-Tw1dHWHH.js +728 -0
- package/dist/vue-ui-scatter-8LZZMVhD.js +1178 -0
- package/dist/{vue-ui-skeleton-1OErZL6t.js → vue-ui-skeleton-DVxUvega.js} +3 -3
- package/dist/{vue-ui-smiley-C_8dvJDX.js → vue-ui-smiley-DJTTUjT_.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ds3apeYN.js → vue-ui-spark-trend-Dsku4oGR.js} +6 -6
- package/dist/{vue-ui-sparkbar-NpyQVY-J.js → vue-ui-sparkbar-Br_fLEOr.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BYHhBxke.js → vue-ui-sparkgauge-DSBJsCu3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DFbQ-g2X.js → vue-ui-sparkhistogram-BX6SXzWN.js} +4 -4
- package/dist/vue-ui-sparkline-DgVH0bCY.js +489 -0
- package/dist/{vue-ui-sparkstackbar-BxMFKBBt.js → vue-ui-sparkstackbar-D-KbMYmo.js} +55 -53
- package/dist/vue-ui-stackbar-DWOm3J6d.js +1370 -0
- package/dist/{vue-ui-strip-plot-Crml8nCi.js → vue-ui-strip-plot-Bi4PWqJG.js} +30 -28
- package/dist/{vue-ui-table-C3lxyo1m.js → vue-ui-table-Ac5mvoTX.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DYgu1wOK.js → vue-ui-table-heatmap-DtN-NEea.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B_eROo0E.js → vue-ui-table-sparkline-Dm9VtfGM.js} +4 -4
- package/dist/{vue-ui-thermometer-Dn8-68zJ.js → vue-ui-thermometer-CKzsQxea.js} +6 -6
- package/dist/{vue-ui-timer-CREgpYVZ.js → vue-ui-timer-CRuQHU_f.js} +5 -5
- package/dist/vue-ui-tiremarks-0mS5yMkd.js +406 -0
- package/dist/vue-ui-treemap-BkU919fN.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BYtbI3Eq.js → vue-ui-vertical-bar-ByPC7JmK.js} +322 -306
- package/dist/vue-ui-waffle-GWXnMKeQ.js +910 -0
- package/dist/{vue-ui-wheel-CUgfhL9p.js → vue-ui-wheel-PP-IY2XR.js} +6 -6
- package/dist/{vue-ui-word-cloud-DBJueUIP.js → vue-ui-word-cloud-Cc5c_8Z1.js} +12 -10
- package/dist/{vue-ui-world-DR6IEkat.js → vue-ui-world-B1zbPwk3.js} +11 -9
- package/dist/vue-ui-xy-D7Sx_bPF.js +3760 -0
- package/dist/{vue-ui-xy-canvas-C2k2SOVa.js → vue-ui-xy-canvas-sA_OEIMw.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-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-CJ_8wwwn.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-D3lVmh4q.js";
|
|
4
|
+
import z from "./img-B7ogJ4e0.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-CV2fR0EQ.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);
|