vue-data-ui 3.0.0-next.9 → 3.0.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/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
- package/dist/Slicer-t6e1t2iM.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
- package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-CjnS13nF.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
- package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
- package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
- package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
- package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
- package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
- package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
- package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
- package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
- package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
- package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
- package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
- package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
- package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
- package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
- package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
- package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
- package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
- package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
- package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
- package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
- package/dist/vue-ui-rings-BH81WmMS.js +728 -0
- package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
- package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
- package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
- package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
- package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
- package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
- package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
- package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
- package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
- package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
- package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
- package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
- package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
- package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
- package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
- package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -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-CgShIRes.js";
|
|
3
|
-
import { u as U } from "./useNestedProp-BC4Ciblw.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-2QvaZf9_.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
|
-
};
|