vue-data-ui 3.4.6 → 3.4.8
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/{PackageVersion-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, ref as v, computed as c, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as V, normalizeClass as he, createBlock as
|
|
1
|
+
import { defineAsyncComponent as G, ref as v, computed as c, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as V, normalizeClass as he, createBlock as _, createCommentVNode as u, createElementVNode as C, createSlots as Ue, withCtx as b, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as We, Fragment as j, renderList as q, toDisplayString as H, Teleport as De } from "vue";
|
|
2
2
|
import { u as Ge, a as de } from "./useNestedProp-BjZe1Y85.js";
|
|
3
3
|
import { c as Ve, t as je, S as qe, m as Xe, h as Ye, a as M, d as R, X as Je, o as ge, f as fe, g as Ke } from "./lib-C_mNZmhD.js";
|
|
4
4
|
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
@@ -20,11 +20,11 @@ const ct = ["id"], ht = {
|
|
|
20
20
|
}, dt = ["id"], gt = ["xmlns", "viewBox"], ft = ["width", "height"], mt = { key: 1 }, yt = ["x", "y", "height", "width", "fill", "stroke"], pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], kt = ["x", "y", "font-size", "font-weight", "fill"], wt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], xt = { key: 3 }, _t = ["x", "y", "fill", "font-size", "font-weight"], Ct = { key: 4 }, At = ["x1", "x2", "y1", "y2", "stroke"], Lt = {
|
|
21
21
|
key: 4,
|
|
22
22
|
class: "vue-data-ui-watermark"
|
|
23
|
-
}, $t = ["id"],
|
|
23
|
+
}, $t = ["id"], St = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "vue-ui-bullet-legend-item",
|
|
26
26
|
dir: "auto"
|
|
27
|
-
},
|
|
27
|
+
}, Ot = { style: { "margin-right": "2px" } }, Bt = {
|
|
28
28
|
__name: "vue-ui-bullet",
|
|
29
29
|
props: {
|
|
30
30
|
config: {
|
|
@@ -41,7 +41,7 @@ const ct = ["id"], ht = {
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(me, { expose: ye }) {
|
|
44
|
-
const pe = G(() => import("./PackageVersion-
|
|
44
|
+
const pe = G(() => import("./PackageVersion-D-auaEEJ.js")), be = G(() => import("./PenAndPaper-DSvu9dwa.js")), ke = G(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_bullet: we } = Ge(), S = me, y = v(null), X = v(null), Y = v(0), J = v(null), K = v(null), xe = v(0), A = v(null), O = v(null), Q = v(!1), k = c({
|
|
45
45
|
get: () => i.value.hasOwnProperty("value"),
|
|
46
46
|
set: (t) => t
|
|
47
47
|
}), L = c(() => i.value.segments ? Array.isArray(i.value.segments) ? i.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
@@ -55,7 +55,7 @@ segments: [
|
|
|
55
55
|
},
|
|
56
56
|
{...}
|
|
57
57
|
]
|
|
58
|
-
`),
|
|
58
|
+
`), k.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
59
59
|
|
|
60
60
|
segments: [
|
|
61
61
|
{
|
|
@@ -66,7 +66,7 @@ segments: [
|
|
|
66
66
|
},
|
|
67
67
|
{...}
|
|
68
68
|
]
|
|
69
|
-
`),
|
|
69
|
+
`), k.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
70
70
|
|
|
71
71
|
segments: [
|
|
72
72
|
{
|
|
@@ -77,7 +77,7 @@ segments: [
|
|
|
77
77
|
},
|
|
78
78
|
{...}
|
|
79
79
|
]
|
|
80
|
-
`),
|
|
80
|
+
`), k.value = !1, !1)), Z = c(() => !!e.value.debug);
|
|
81
81
|
function ee() {
|
|
82
82
|
if (ge(i.value) ? (fe({
|
|
83
83
|
componentName: "VueUiBullet",
|
|
@@ -88,7 +88,7 @@ segments: [
|
|
|
88
88
|
datasetObject: t,
|
|
89
89
|
requiredAttributes: ["name", "from", "to"]
|
|
90
90
|
}).forEach((a) => {
|
|
91
|
-
|
|
91
|
+
k.value = !1, fe({
|
|
92
92
|
componentName: "VueUiBullet segment",
|
|
93
93
|
type: "datasetSerieAttribute",
|
|
94
94
|
property: a,
|
|
@@ -96,7 +96,7 @@ segments: [
|
|
|
96
96
|
debug: Z.value
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
|
-
}) : (
|
|
99
|
+
}) : (k.value = !1, B.value = !0), ge(i.value) || (B.value = e.value.loading), e.value.responsive) {
|
|
100
100
|
const t = Qe(() => {
|
|
101
101
|
const { width: s, height: a } = Ze({
|
|
102
102
|
chart: y.value,
|
|
@@ -108,9 +108,9 @@ segments: [
|
|
|
108
108
|
I.value.width = s, I.value.height = a - 12;
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
|
-
A.value && (
|
|
111
|
+
A.value && (O.value && A.value.unobserve(O.value), A.value.disconnect()), A.value = new ResizeObserver(t), O.value = y.value.parentNode, A.value.observe(O.value);
|
|
112
112
|
}
|
|
113
|
-
e.value.style.chart.animation.show && !
|
|
113
|
+
e.value.style.chart.animation.show && !w.value && se(i.value.value || 0);
|
|
114
114
|
}
|
|
115
115
|
ze(() => {
|
|
116
116
|
Q.value = !0, ee();
|
|
@@ -118,18 +118,18 @@ segments: [
|
|
|
118
118
|
const p = v(Ve());
|
|
119
119
|
function z() {
|
|
120
120
|
const t = de({
|
|
121
|
-
userConfig:
|
|
121
|
+
userConfig: S.config,
|
|
122
122
|
defaultConfig: we
|
|
123
123
|
});
|
|
124
124
|
return t.theme ? {
|
|
125
125
|
...de({
|
|
126
|
-
userConfig: lt.vue_ui_bullet[t.theme] ||
|
|
126
|
+
userConfig: lt.vue_ui_bullet[t.theme] || S.config,
|
|
127
127
|
defaultConfig: t
|
|
128
128
|
})
|
|
129
129
|
} : t;
|
|
130
130
|
}
|
|
131
|
-
const e = v(z()), { loading:
|
|
132
|
-
...Ne(
|
|
131
|
+
const e = v(z()), { loading: w, FINAL_DATASET: i, manualLoading: B } = nt({
|
|
132
|
+
...Ne(S),
|
|
133
133
|
FINAL_CONFIG: e,
|
|
134
134
|
prepareConfig: z,
|
|
135
135
|
skeletonDataset: {
|
|
@@ -177,23 +177,23 @@ segments: [
|
|
|
177
177
|
}
|
|
178
178
|
})
|
|
179
179
|
}), { userOptionsVisible: N, setUserOptionsVisibility: te, keepUserOptionState: ae } = tt({ config: e.value }), { svgRef: E } = at({ config: e.value.style.chart.title });
|
|
180
|
-
ce(() =>
|
|
181
|
-
|
|
180
|
+
ce(() => S.config, (t) => {
|
|
181
|
+
w.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, ee(), Y.value += 1;
|
|
182
182
|
}, { deep: !0 });
|
|
183
183
|
const I = v({
|
|
184
184
|
width: e.value.style.chart.width,
|
|
185
185
|
height: e.value.style.chart.height
|
|
186
186
|
}), _e = c(() => I.value.width), Ce = c(() => I.value.height), l = c(() => {
|
|
187
|
-
const t = Ce.value, s = _e.value, a = e.value.style.chart.padding.left, h = s - e.value.style.chart.padding.right,
|
|
187
|
+
const t = Ce.value, s = _e.value, a = e.value.style.chart.padding.left, h = s - e.value.style.chart.padding.right, x = e.value.style.chart.padding.top, d = t - e.value.style.chart.padding.bottom;
|
|
188
188
|
return {
|
|
189
189
|
height: Math.max(1e-3, t),
|
|
190
190
|
width: Math.max(1e-3, s),
|
|
191
191
|
left: a,
|
|
192
192
|
right: h,
|
|
193
|
-
top:
|
|
193
|
+
top: x,
|
|
194
194
|
bottom: d,
|
|
195
195
|
chartWidth: Math.max(1e-3, h - a),
|
|
196
|
-
chartHeight: Math.max(1e-3, d -
|
|
196
|
+
chartHeight: Math.max(1e-3, d - x)
|
|
197
197
|
};
|
|
198
198
|
}), Ae = c(() => {
|
|
199
199
|
if (!L.value) return [];
|
|
@@ -206,10 +206,10 @@ segments: [
|
|
|
206
206
|
max: Math.max(...i.value.segments.map((t) => t.to))
|
|
207
207
|
} : { min: 0, max: 1 }), g = v(Le());
|
|
208
208
|
ce(() => i.value, (t) => {
|
|
209
|
-
t.hasOwnProperty("value") && (B.value = !1), e.value.style.chart.animation.show && !
|
|
209
|
+
t.hasOwnProperty("value") && (B.value = !1), e.value.style.chart.animation.show && !w.value ? se(t.value || 0) : g.value = t.value || 0;
|
|
210
210
|
}, { deep: !0 });
|
|
211
211
|
function Le() {
|
|
212
|
-
return e.value.style.chart.animation.show && !
|
|
212
|
+
return e.value.style.chart.animation.show && !w.value ? U.value.min : i.value.value || 0;
|
|
213
213
|
}
|
|
214
214
|
const le = v(null);
|
|
215
215
|
function se(t) {
|
|
@@ -229,7 +229,7 @@ segments: [
|
|
|
229
229
|
x: l.value.left + (i.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
230
230
|
}, h = {
|
|
231
231
|
width: (g.value + s) / (t.max + s) * l.value.chartWidth
|
|
232
|
-
},
|
|
232
|
+
}, x = t.ticks.map((d) => ({
|
|
233
233
|
value: d,
|
|
234
234
|
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
235
235
|
x: l.value.left + (d + s) / (t.max + s) * l.value.chartWidth
|
|
@@ -238,7 +238,7 @@ segments: [
|
|
|
238
238
|
scale: t,
|
|
239
239
|
target: a,
|
|
240
240
|
value: h,
|
|
241
|
-
ticks:
|
|
241
|
+
ticks: x,
|
|
242
242
|
chunks: i.value.segments.map((d, Re) => ({
|
|
243
243
|
...d,
|
|
244
244
|
color: d.color ? Ye(d.color) : Ae.value[Re],
|
|
@@ -285,11 +285,11 @@ segments: [
|
|
|
285
285
|
elementId: `bullet_${p.value}`,
|
|
286
286
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
287
287
|
options: e.value.userOptions.print
|
|
288
|
-
}),
|
|
288
|
+
}), Se = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), $ = v(!1);
|
|
289
289
|
function ie(t) {
|
|
290
290
|
$.value = t, xe.value += 1;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Oe() {
|
|
293
293
|
return f.value;
|
|
294
294
|
}
|
|
295
295
|
const P = v(!1);
|
|
@@ -298,9 +298,9 @@ segments: [
|
|
|
298
298
|
}
|
|
299
299
|
async function Be({ scale: t = 2 } = {}) {
|
|
300
300
|
if (!y.value) return;
|
|
301
|
-
const { width: s, height: a } = y.value.getBoundingClientRect(), h = s / a, { imageUri:
|
|
301
|
+
const { width: s, height: a } = y.value.getBoundingClientRect(), h = s / a, { imageUri: x, base64: d } = await rt({ domElement: y.value, base64: !0, img: !0, scale: t });
|
|
302
302
|
return {
|
|
303
|
-
imageUri:
|
|
303
|
+
imageUri: x,
|
|
304
304
|
base64: d,
|
|
305
305
|
title: e.value.style.chart.title.text,
|
|
306
306
|
width: s,
|
|
@@ -322,7 +322,7 @@ segments: [
|
|
|
322
322
|
t ? e.value.userOptions.callbacks.svg(Me()) : He();
|
|
323
323
|
}
|
|
324
324
|
return ye({
|
|
325
|
-
getData:
|
|
325
|
+
getData: Oe,
|
|
326
326
|
getImage: Be,
|
|
327
327
|
generatePdf: ne,
|
|
328
328
|
generateImage: ue,
|
|
@@ -338,7 +338,7 @@ segments: [
|
|
|
338
338
|
onMouseenter: s[0] || (s[0] = () => r(te)(!0)),
|
|
339
339
|
onMouseleave: s[1] || (s[1] = () => r(te)(!1))
|
|
340
340
|
}, [
|
|
341
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
341
|
+
e.value.userOptions.buttons.annotator ? (o(), _(r(be), {
|
|
342
342
|
key: 0,
|
|
343
343
|
svgRef: r(E),
|
|
344
344
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -346,14 +346,14 @@ segments: [
|
|
|
346
346
|
active: P.value,
|
|
347
347
|
onClose: D
|
|
348
348
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
|
|
349
|
-
|
|
349
|
+
Se.value ? (o(), n("div", ht, null, 512)) : u("", !0),
|
|
350
350
|
e.value.style.chart.title.text ? (o(), n("div", {
|
|
351
351
|
key: 2,
|
|
352
352
|
ref_key: "chartTitle",
|
|
353
353
|
ref: X,
|
|
354
354
|
style: "width:100%;background:transparent;"
|
|
355
355
|
}, [
|
|
356
|
-
(o(),
|
|
356
|
+
(o(), _(ot, {
|
|
357
357
|
lineHeight: "1.3rem",
|
|
358
358
|
key: `title_${Y.value}`,
|
|
359
359
|
config: {
|
|
@@ -368,10 +368,10 @@ segments: [
|
|
|
368
368
|
}
|
|
369
369
|
}, null, 8, ["config"]))
|
|
370
370
|
], 512)) : u("", !0),
|
|
371
|
-
|
|
371
|
+
C("div", {
|
|
372
372
|
id: `legend-top-${p.value}`
|
|
373
373
|
}, null, 8, dt),
|
|
374
|
-
e.value.userOptions.show &&
|
|
374
|
+
e.value.userOptions.show && k.value && (r(ae) || r(N)) ? (o(), _(r(ke), {
|
|
375
375
|
key: 3,
|
|
376
376
|
ref: "details",
|
|
377
377
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -406,38 +406,45 @@ segments: [
|
|
|
406
406
|
}, Ue({ _: 2 }, [
|
|
407
407
|
t.$slots.menuIcon ? {
|
|
408
408
|
name: "menuIcon",
|
|
409
|
-
fn:
|
|
409
|
+
fn: b(({ isOpen: a, color: h }) => [
|
|
410
410
|
m(t.$slots, "menuIcon", F(T({ isOpen: a, color: h })), void 0, !0)
|
|
411
411
|
]),
|
|
412
412
|
key: "0"
|
|
413
413
|
} : void 0,
|
|
414
414
|
t.$slots.optionPdf ? {
|
|
415
415
|
name: "optionPdf",
|
|
416
|
-
fn:
|
|
416
|
+
fn: b(() => [
|
|
417
417
|
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
418
418
|
]),
|
|
419
419
|
key: "1"
|
|
420
420
|
} : void 0,
|
|
421
421
|
t.$slots.optionImg ? {
|
|
422
422
|
name: "optionImg",
|
|
423
|
-
fn:
|
|
423
|
+
fn: b(() => [
|
|
424
424
|
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
425
425
|
]),
|
|
426
426
|
key: "2"
|
|
427
427
|
} : void 0,
|
|
428
|
+
t.$slots.optionSvg ? {
|
|
429
|
+
name: "optionSvg",
|
|
430
|
+
fn: b(() => [
|
|
431
|
+
m(t.$slots, "optionSvg", {}, void 0, !0)
|
|
432
|
+
]),
|
|
433
|
+
key: "3"
|
|
434
|
+
} : void 0,
|
|
428
435
|
t.$slots.optionFullscreen ? {
|
|
429
436
|
name: "optionFullscreen",
|
|
430
|
-
fn:
|
|
437
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: h }) => [
|
|
431
438
|
m(t.$slots, "optionFullscreen", F(T({ toggleFullscreen: a, isFullscreen: h })), void 0, !0)
|
|
432
439
|
]),
|
|
433
|
-
key: "
|
|
440
|
+
key: "4"
|
|
434
441
|
} : void 0,
|
|
435
442
|
t.$slots.optionAnnotator ? {
|
|
436
443
|
name: "optionAnnotator",
|
|
437
|
-
fn:
|
|
444
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: h }) => [
|
|
438
445
|
m(t.$slots, "optionAnnotator", F(T({ toggleAnnotator: a, isAnnotator: h })), void 0, !0)
|
|
439
446
|
]),
|
|
440
|
-
key: "
|
|
447
|
+
key: "5"
|
|
441
448
|
} : void 0
|
|
442
449
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
|
|
443
450
|
(o(), n("svg", {
|
|
@@ -483,7 +490,7 @@ segments: [
|
|
|
483
490
|
stroke: e.value.style.chart.target.stroke,
|
|
484
491
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
485
492
|
}, null, 8, pt)) : u("", !0),
|
|
486
|
-
|
|
493
|
+
C("rect", {
|
|
487
494
|
x: l.value.left,
|
|
488
495
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
489
496
|
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
@@ -558,27 +565,27 @@ segments: [
|
|
|
558
565
|
t.$slots.watermark ? (o(), n("div", Lt, [
|
|
559
566
|
m(t.$slots, "watermark", F(T({ isPrinting: r(oe) || r(re) })), void 0, !0)
|
|
560
567
|
])) : u("", !0),
|
|
561
|
-
|
|
568
|
+
C("div", {
|
|
562
569
|
id: `legend-bottom-${p.value}`
|
|
563
570
|
}, null, 8, $t),
|
|
564
|
-
Q.value ? (o(),
|
|
571
|
+
Q.value ? (o(), _(De, {
|
|
565
572
|
key: 5,
|
|
566
573
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
567
574
|
}, [
|
|
568
|
-
|
|
575
|
+
C("div", {
|
|
569
576
|
ref_key: "chartLegend",
|
|
570
577
|
ref: J
|
|
571
578
|
}, [
|
|
572
|
-
e.value.style.chart.legend.show ? (o(),
|
|
579
|
+
e.value.style.chart.legend.show ? (o(), _(st, {
|
|
573
580
|
key: 0,
|
|
574
581
|
clickable: !1,
|
|
575
582
|
legendSet: W.value,
|
|
576
583
|
config: $e.value
|
|
577
584
|
}, {
|
|
578
|
-
item:
|
|
579
|
-
r(
|
|
580
|
-
|
|
581
|
-
|
|
585
|
+
item: b(({ legend: a }) => [
|
|
586
|
+
r(w) ? u("", !0) : (o(), n("div", St, [
|
|
587
|
+
C("span", Ot, H(a.name) + ":", 1),
|
|
588
|
+
C("span", null, H(a.value), 1)
|
|
582
589
|
]))
|
|
583
590
|
]),
|
|
584
591
|
_: 1
|
|
@@ -594,10 +601,10 @@ segments: [
|
|
|
594
601
|
}, [
|
|
595
602
|
m(t.$slots, "source", {}, void 0, !0)
|
|
596
603
|
], 512)) : u("", !0),
|
|
597
|
-
r(
|
|
604
|
+
r(w) ? (o(), _(ut, { key: 7 })) : u("", !0)
|
|
598
605
|
], 46, ct));
|
|
599
606
|
}
|
|
600
|
-
}, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-
|
|
607
|
+
}, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-6daaa51f"]]);
|
|
601
608
|
export {
|
|
602
609
|
Vt as default
|
|
603
610
|
};
|