vue-data-ui 3.0.0-next.7 → 3.0.0-next.70
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-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
- package/dist/Slicer-D8a4Wv1q.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
- package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +600 -22
- package/dist/types/vue-data-ui.d.ts +600 -22
- package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-DtUATNAU.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.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-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
- package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
- package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
- package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
- package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
- package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
- package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
- package/dist/vue-ui-flow-B1AOqk14.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
- package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
- package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
- package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
- package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
- package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
- package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
- package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
- package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
- package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
- package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
- package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
- package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
- package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
- package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
- package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
- package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
- package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
- package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
- package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
- package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
- package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
- package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
- package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
- package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
- package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
- package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
- package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
- package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
- package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, ref as G, useSlots as L, onMounted as _, computed as c, watch as N, createElementBlock as s, openBlock as a, normalizeStyle as $, createVNode as F, createCommentVNode as n, unref as l, createElementVNode as t, Fragment as p, toDisplayString as y } from "vue";
|
|
2
|
-
import { u as V, c as B, e as P, i as k, f as m } from "./index-Cg-RjxqH.js";
|
|
3
|
-
import { u as U } from "./useNestedProp-C_G5E08Y.js";
|
|
4
|
-
const D = ["viewBox", "width"], I = { key: 0 }, M = ["id"], S = ["stop-color"], A = ["stop-color"], E = ["stroke"], O = ["stroke"], j = ["width", "fill"], T = ["fill"], q = { key: 0 }, H = ["id"], J = ["stroke"], K = ["stroke", "stroke-dasharray", "stroke-dashoffset"], Q = ["filter"], R = ["stroke", "stroke-dasharray", "stroke-dashoffset"], W = ["fill"], ee = {
|
|
5
|
-
__name: "vue-ui-gizmo",
|
|
6
|
-
props: {
|
|
7
|
-
config: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default() {
|
|
10
|
-
return {};
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
dataset: {
|
|
14
|
-
type: Number,
|
|
15
|
-
default: 0
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(f) {
|
|
19
|
-
const w = z(() => import("./PackageVersion-CeEYZfaH.js")), { vue_ui_gizmo: x } = V(), o = f, u = G(B()), C = L();
|
|
20
|
-
_(() => {
|
|
21
|
-
h();
|
|
22
|
-
}), _(() => {
|
|
23
|
-
C["chart-background"] && console.warn("VueUiGizmo does not support the #chart-background slot.");
|
|
24
|
-
});
|
|
25
|
-
function h() {
|
|
26
|
-
!o.dataset && o.dataset !== 0 && P({
|
|
27
|
-
componentName: "VueUiGizmo",
|
|
28
|
-
type: "dataset"
|
|
29
|
-
}), o.dataset < 0 && console.warn("VueUiGizmo: dataset cannot be negative.");
|
|
30
|
-
}
|
|
31
|
-
const e = c({
|
|
32
|
-
get: () => g(),
|
|
33
|
-
set: (i) => i
|
|
34
|
-
});
|
|
35
|
-
function g() {
|
|
36
|
-
return U({
|
|
37
|
-
userConfig: o.config,
|
|
38
|
-
defaultConfig: x
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
N(() => o.config, (i) => {
|
|
42
|
-
e.value = g(), h();
|
|
43
|
-
}, { deep: !0 });
|
|
44
|
-
const v = c(() => ({
|
|
45
|
-
battery: { width: e.value.showPercentage ? 140 : 80, height: 50 },
|
|
46
|
-
gauge: { width: 80, height: 80 }
|
|
47
|
-
})[e.value.type]), d = c(() => {
|
|
48
|
-
const r = 2 * Math.PI * 35, b = r - o.dataset / 100 * r;
|
|
49
|
-
return {
|
|
50
|
-
dasharray: `${r} ${r}`,
|
|
51
|
-
dashoffset: b
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return (i, r) => (a(), s("svg", {
|
|
55
|
-
class: "vue-ui-gizmo",
|
|
56
|
-
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
57
|
-
width: e.value.size,
|
|
58
|
-
style: $({
|
|
59
|
-
background: "transparent",
|
|
60
|
-
fontFamily: e.value.fontFamily
|
|
61
|
-
})
|
|
62
|
-
}, [
|
|
63
|
-
F(l(w)),
|
|
64
|
-
e.value.useGradient ? (a(), s("defs", I, [
|
|
65
|
-
t("linearGradient", {
|
|
66
|
-
id: `gizmo_gradient_${u.value}`,
|
|
67
|
-
x1: "0%",
|
|
68
|
-
x2: "100%",
|
|
69
|
-
y1: "0%",
|
|
70
|
-
y2: "0%"
|
|
71
|
-
}, [
|
|
72
|
-
t("stop", {
|
|
73
|
-
offset: "0%",
|
|
74
|
-
"stop-color": e.value.gradientColor
|
|
75
|
-
}, null, 8, S),
|
|
76
|
-
t("stop", {
|
|
77
|
-
offset: "100%",
|
|
78
|
-
"stop-color": e.value.color
|
|
79
|
-
}, null, 8, A)
|
|
80
|
-
], 8, M)
|
|
81
|
-
])) : n("", !0),
|
|
82
|
-
e.value.type === "battery" ? (a(), s(p, { key: 1 }, [
|
|
83
|
-
t("path", {
|
|
84
|
-
d: "M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",
|
|
85
|
-
stroke: e.value.stroke,
|
|
86
|
-
"stroke-width": 2,
|
|
87
|
-
fill: "none"
|
|
88
|
-
}, null, 8, E),
|
|
89
|
-
t("path", {
|
|
90
|
-
d: "M 70 16 L 70 34",
|
|
91
|
-
stroke: e.value.stroke,
|
|
92
|
-
"stroke-width": 2,
|
|
93
|
-
fill: "none",
|
|
94
|
-
style: { opacity: "0.5" }
|
|
95
|
-
}, null, 8, O),
|
|
96
|
-
t("rect", {
|
|
97
|
-
x: 10,
|
|
98
|
-
y: 10,
|
|
99
|
-
height: 30,
|
|
100
|
-
width: 55 * (f.dataset / 100),
|
|
101
|
-
fill: e.value.useGradient ? `url(#gizmo_gradient_${u.value})` : e.value.color,
|
|
102
|
-
rx: 2
|
|
103
|
-
}, null, 8, j),
|
|
104
|
-
e.value.showPercentage ? (a(), s("text", {
|
|
105
|
-
key: 0,
|
|
106
|
-
x: 85,
|
|
107
|
-
y: 32,
|
|
108
|
-
"text-anchor": "start",
|
|
109
|
-
"font-size": "20",
|
|
110
|
-
fill: e.value.textColor
|
|
111
|
-
}, y(l(k)(
|
|
112
|
-
e.value.formatter,
|
|
113
|
-
o.dataset,
|
|
114
|
-
l(m)({
|
|
115
|
-
v: o.dataset,
|
|
116
|
-
s: "%"
|
|
117
|
-
})
|
|
118
|
-
)), 9, T)) : n("", !0)
|
|
119
|
-
], 64)) : n("", !0),
|
|
120
|
-
e.value.type === "gauge" ? (a(), s(p, { key: 2 }, [
|
|
121
|
-
e.value.useGradient ? (a(), s("defs", q, [
|
|
122
|
-
t("filter", {
|
|
123
|
-
id: `blur_${u.value}`,
|
|
124
|
-
x: "-50%",
|
|
125
|
-
y: "-50%",
|
|
126
|
-
width: "200%",
|
|
127
|
-
height: "200%"
|
|
128
|
-
}, r[0] || (r[0] = [
|
|
129
|
-
t("feGaussianBlur", {
|
|
130
|
-
in: "SourceGraphic",
|
|
131
|
-
stdDeviation: 1
|
|
132
|
-
}, null, -1)
|
|
133
|
-
]), 8, H)
|
|
134
|
-
])) : n("", !0),
|
|
135
|
-
t("circle", {
|
|
136
|
-
cx: 40,
|
|
137
|
-
cy: 40,
|
|
138
|
-
r: 35,
|
|
139
|
-
stroke: e.value.stroke,
|
|
140
|
-
"stroke-width": 2 * 4,
|
|
141
|
-
fill: "none"
|
|
142
|
-
}, null, 8, J),
|
|
143
|
-
t("circle", {
|
|
144
|
-
cx: 40,
|
|
145
|
-
cy: 40,
|
|
146
|
-
r: 35,
|
|
147
|
-
stroke: e.value.color,
|
|
148
|
-
"stroke-width": 2 * 4,
|
|
149
|
-
"stroke-dasharray": d.value.dasharray,
|
|
150
|
-
"stroke-dashoffset": d.value.dashoffset,
|
|
151
|
-
"stroke-linecap": "round",
|
|
152
|
-
fill: "none",
|
|
153
|
-
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
154
|
-
}, null, 8, K),
|
|
155
|
-
e.value.useGradient ? (a(), s("g", {
|
|
156
|
-
key: 1,
|
|
157
|
-
filter: `url(#blur_${u.value})`
|
|
158
|
-
}, [
|
|
159
|
-
t("circle", {
|
|
160
|
-
cx: 40,
|
|
161
|
-
cy: 40,
|
|
162
|
-
r: 35,
|
|
163
|
-
stroke: e.value.gradientColor,
|
|
164
|
-
"stroke-width": 1,
|
|
165
|
-
fill: "none",
|
|
166
|
-
"stroke-dasharray": d.value.dasharray,
|
|
167
|
-
"stroke-dashoffset": d.value.dashoffset,
|
|
168
|
-
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
169
|
-
}, null, 8, R)
|
|
170
|
-
], 8, Q)) : n("", !0),
|
|
171
|
-
e.value.showPercentage ? (a(), s("text", {
|
|
172
|
-
key: 2,
|
|
173
|
-
x: 40,
|
|
174
|
-
y: 47,
|
|
175
|
-
"text-anchor": "middle",
|
|
176
|
-
"font-size": "20",
|
|
177
|
-
fill: e.value.textColor
|
|
178
|
-
}, y(l(k)(
|
|
179
|
-
e.value.formatter,
|
|
180
|
-
o.dataset,
|
|
181
|
-
l(m)({
|
|
182
|
-
v: o.dataset,
|
|
183
|
-
s: "%"
|
|
184
|
-
})
|
|
185
|
-
)), 9, W)) : n("", !0)
|
|
186
|
-
], 64)) : n("", !0)
|
|
187
|
-
], 12, D));
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
export {
|
|
191
|
-
ee as default
|
|
192
|
-
};
|