vue-data-ui 3.4.9 → 3.5.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 +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.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-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.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-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, ref as
|
|
2
|
-
import { u as Ge, a as de } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as G, ref as c, computed as h, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as V, normalizeClass as he, createBlock as A, createCommentVNode as u, createElementVNode as _, withCtx as f, renderSlot as i, normalizeProps as p, guardReactiveProps as b, createSlots as Ue, createVNode as We, Fragment as j, renderList as q, toDisplayString as H, Teleport as De } from "vue";
|
|
2
|
+
import { u as Ge, a as de } from "./useNestedProp-DjGXw6S9.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";
|
|
5
5
|
import { u as et } from "./usePrinter-DTzqpYKF.js";
|
|
@@ -7,9 +7,9 @@ import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
7
7
|
import { u as at } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { t as lt } from "./themes-AUNCOb2G.js";
|
|
9
9
|
import st from "./Legend-G6GMcdAc.js";
|
|
10
|
-
import ot from "./Title-
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
10
|
+
import ot from "./Title-isbiM8i8.js";
|
|
11
|
+
import nt from "./img-BecE5qXd.js";
|
|
12
|
+
import { u as rt, B as ut } from "./BaseScanner-BgWxam9d.js";
|
|
13
13
|
import { u as it } from "./useSvgExport-DrjCWun4.js";
|
|
14
14
|
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const ct = ["id"], ht = {
|
|
@@ -17,10 +17,10 @@ const ct = ["id"], ht = {
|
|
|
17
17
|
ref: "noTitle",
|
|
18
18
|
class: "vue-data-ui-no-title-space",
|
|
19
19
|
style: "height:36px; width: 100%;background:transparent"
|
|
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 },
|
|
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 }, Ct = ["x", "y", "fill", "font-size", "font-weight"], $t = { key: 4 }, At = ["x1", "x2", "y1", "y2", "stroke"], _t = {
|
|
21
21
|
key: 4,
|
|
22
22
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
23
|
+
}, Lt = ["id"], St = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "vue-ui-bullet-legend-item",
|
|
26
26
|
dir: "auto"
|
|
@@ -41,10 +41,10 @@ const ct = ["id"], ht = {
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(me, { expose: ye }) {
|
|
44
|
-
const pe = G(() => import("./PackageVersion-
|
|
45
|
-
get: () =>
|
|
44
|
+
const pe = G(() => import("./PackageVersion-DQvyATVa.js")), be = G(() => import("./PenAndPaper-SZQIAgkg.js")), ke = G(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_bullet: we } = Ge(), B = me, k = c(null), X = c(null), Y = c(0), J = c(null), K = c(null), xe = c(0), L = c(null), I = c(null), Q = c(!1), x = h({
|
|
45
|
+
get: () => v.value.hasOwnProperty("value"),
|
|
46
46
|
set: (t) => t
|
|
47
|
-
}),
|
|
47
|
+
}), S = h(() => v.value.segments ? Array.isArray(v.value.segments) ? v.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
48
48
|
|
|
49
49
|
segments: [
|
|
50
50
|
{
|
|
@@ -55,7 +55,7 @@ segments: [
|
|
|
55
55
|
},
|
|
56
56
|
{...}
|
|
57
57
|
]
|
|
58
|
-
`),
|
|
58
|
+
`), x.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
|
+
`), x.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
70
70
|
|
|
71
71
|
segments: [
|
|
72
72
|
{
|
|
@@ -77,18 +77,18 @@ segments: [
|
|
|
77
77
|
},
|
|
78
78
|
{...}
|
|
79
79
|
]
|
|
80
|
-
`),
|
|
80
|
+
`), x.value = !1, !1)), Z = h(() => !!e.value.debug);
|
|
81
81
|
function ee() {
|
|
82
|
-
if (ge(
|
|
82
|
+
if (ge(v.value) ? (fe({
|
|
83
83
|
componentName: "VueUiBullet",
|
|
84
84
|
type: "dataset",
|
|
85
85
|
debug: Z.value
|
|
86
|
-
}),
|
|
86
|
+
}), P.value = !0) : S.value ? v.value.segments.forEach((t, s) => {
|
|
87
87
|
Ke({
|
|
88
88
|
datasetObject: t,
|
|
89
89
|
requiredAttributes: ["name", "from", "to"]
|
|
90
90
|
}).forEach((a) => {
|
|
91
|
-
|
|
91
|
+
x.value = !1, fe({
|
|
92
92
|
componentName: "VueUiBullet segment",
|
|
93
93
|
type: "datasetSerieAttribute",
|
|
94
94
|
property: a,
|
|
@@ -96,40 +96,40 @@ segments: [
|
|
|
96
96
|
debug: Z.value
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
|
-
}) : (
|
|
99
|
+
}) : (x.value = !1, P.value = !0), ge(v.value) || (P.value = e.value.loading), e.value.responsive) {
|
|
100
100
|
const t = Qe(() => {
|
|
101
101
|
const { width: s, height: a } = Ze({
|
|
102
|
-
chart:
|
|
102
|
+
chart: k.value,
|
|
103
103
|
title: e.value.style.chart.title.text ? X.value : null,
|
|
104
104
|
legend: e.value.style.chart.legend.show ? J.value : null,
|
|
105
105
|
source: K.value
|
|
106
106
|
});
|
|
107
107
|
requestAnimationFrame(() => {
|
|
108
|
-
|
|
108
|
+
F.value.width = s, F.value.height = a - 12;
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
|
-
|
|
111
|
+
L.value && (I.value && L.value.unobserve(I.value), L.value.disconnect()), L.value = new ResizeObserver(t), I.value = k.value.parentNode, L.value.observe(I.value);
|
|
112
112
|
}
|
|
113
|
-
e.value.style.chart.animation.show && !
|
|
113
|
+
e.value.style.chart.animation.show && !C.value && se(v.value.value || 0);
|
|
114
114
|
}
|
|
115
115
|
ze(() => {
|
|
116
116
|
Q.value = !0, ee();
|
|
117
117
|
});
|
|
118
|
-
const
|
|
118
|
+
const w = c(Ve());
|
|
119
119
|
function z() {
|
|
120
120
|
const t = de({
|
|
121
|
-
userConfig:
|
|
121
|
+
userConfig: B.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] || B.config,
|
|
127
127
|
defaultConfig: t
|
|
128
128
|
})
|
|
129
129
|
} : t;
|
|
130
130
|
}
|
|
131
|
-
const e =
|
|
132
|
-
...Ne(
|
|
131
|
+
const e = c(z()), { loading: C, FINAL_DATASET: v, manualLoading: P } = rt({
|
|
132
|
+
...Ne(B),
|
|
133
133
|
FINAL_CONFIG: e,
|
|
134
134
|
prepareConfig: z,
|
|
135
135
|
skeletonDataset: {
|
|
@@ -177,78 +177,78 @@ 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(() => B.config, (t) => {
|
|
181
|
+
C.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, ee(), Y.value += 1;
|
|
182
182
|
}, { deep: !0 });
|
|
183
|
-
const
|
|
183
|
+
const F = c({
|
|
184
184
|
width: e.value.style.chart.width,
|
|
185
185
|
height: e.value.style.chart.height
|
|
186
|
-
}),
|
|
187
|
-
const t =
|
|
186
|
+
}), Ce = h(() => F.value.width), $e = h(() => F.value.height), l = h(() => {
|
|
187
|
+
const t = $e.value, s = Ce.value, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right, $ = e.value.style.chart.padding.top, g = 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
|
-
right:
|
|
193
|
-
top:
|
|
194
|
-
bottom:
|
|
195
|
-
chartWidth: Math.max(1e-3,
|
|
196
|
-
chartHeight: Math.max(1e-3,
|
|
192
|
+
right: d,
|
|
193
|
+
top: $,
|
|
194
|
+
bottom: g,
|
|
195
|
+
chartWidth: Math.max(1e-3, d - a),
|
|
196
|
+
chartHeight: Math.max(1e-3, g - $)
|
|
197
197
|
};
|
|
198
|
-
}), Ae =
|
|
199
|
-
if (!
|
|
198
|
+
}), Ae = h(() => {
|
|
199
|
+
if (!S.value) return [];
|
|
200
200
|
const t = [];
|
|
201
|
-
for (let s = 0; s <
|
|
202
|
-
t.push(qe(e.value.style.chart.segments.baseColor, s /
|
|
201
|
+
for (let s = 0; s < v.value.segments.length; s += 1)
|
|
202
|
+
t.push(qe(e.value.style.chart.segments.baseColor, s / v.value.segments.length));
|
|
203
203
|
return t;
|
|
204
|
-
}), U =
|
|
205
|
-
min: Math.min(...
|
|
206
|
-
max: Math.max(...
|
|
207
|
-
} : { min: 0, max: 1 }),
|
|
208
|
-
ce(() =>
|
|
209
|
-
t.hasOwnProperty("value") && (
|
|
204
|
+
}), U = h(() => S.value ? {
|
|
205
|
+
min: Math.min(...v.value.segments.map((t) => t.from)),
|
|
206
|
+
max: Math.max(...v.value.segments.map((t) => t.to))
|
|
207
|
+
} : { min: 0, max: 1 }), m = c(_e());
|
|
208
|
+
ce(() => v.value, (t) => {
|
|
209
|
+
t.hasOwnProperty("value") && (P.value = !1), e.value.style.chart.animation.show && !C.value ? se(t.value || 0) : m.value = t.value || 0;
|
|
210
210
|
}, { deep: !0 });
|
|
211
|
-
function
|
|
212
|
-
return e.value.style.chart.animation.show && !
|
|
211
|
+
function _e() {
|
|
212
|
+
return e.value.style.chart.animation.show && !C.value ? U.value.min : v.value.value || 0;
|
|
213
213
|
}
|
|
214
|
-
const le =
|
|
214
|
+
const le = c(null);
|
|
215
215
|
function se(t) {
|
|
216
|
-
const s = Math.abs(t -
|
|
216
|
+
const s = Math.abs(t - m.value) / e.value.style.chart.animation.animationFrames;
|
|
217
217
|
function a() {
|
|
218
|
-
|
|
218
|
+
m.value < t ? m.value = Math.min(m.value + s, t) : m.value > t && (m.value = Math.max(m.value - s, t)), m.value !== t && (le.value = requestAnimationFrame(a));
|
|
219
219
|
}
|
|
220
220
|
a();
|
|
221
221
|
}
|
|
222
222
|
Ee(() => {
|
|
223
223
|
cancelAnimationFrame(le.value);
|
|
224
224
|
});
|
|
225
|
-
const
|
|
226
|
-
if (!
|
|
225
|
+
const y = h(() => {
|
|
226
|
+
if (!S.value)
|
|
227
227
|
return [];
|
|
228
228
|
const t = Xe(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
229
|
-
x: l.value.left + (
|
|
230
|
-
},
|
|
231
|
-
width: (
|
|
232
|
-
},
|
|
233
|
-
value:
|
|
229
|
+
x: l.value.left + (v.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
230
|
+
}, d = {
|
|
231
|
+
width: (m.value + s) / (t.max + s) * l.value.chartWidth
|
|
232
|
+
}, $ = t.ticks.map((g) => ({
|
|
233
|
+
value: g,
|
|
234
234
|
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
235
|
-
x: l.value.left + (
|
|
235
|
+
x: l.value.left + (g + s) / (t.max + s) * l.value.chartWidth
|
|
236
236
|
}));
|
|
237
237
|
return {
|
|
238
238
|
scale: t,
|
|
239
239
|
target: a,
|
|
240
|
-
value:
|
|
241
|
-
ticks:
|
|
242
|
-
chunks:
|
|
243
|
-
...
|
|
244
|
-
color:
|
|
245
|
-
x: l.value.left + l.value.chartWidth * ((
|
|
240
|
+
value: d,
|
|
241
|
+
ticks: $,
|
|
242
|
+
chunks: v.value.segments.map((g, Re) => ({
|
|
243
|
+
...g,
|
|
244
|
+
color: g.color ? Ye(g.color) : Ae.value[Re],
|
|
245
|
+
x: l.value.left + l.value.chartWidth * ((g.from + s) / (t.max + s)),
|
|
246
246
|
y: l.value.top,
|
|
247
247
|
height: l.value.chartHeight,
|
|
248
|
-
width: l.value.chartWidth * (Math.abs(
|
|
248
|
+
width: l.value.chartWidth * (Math.abs(g.to - g.from) / (t.max + s))
|
|
249
249
|
}))
|
|
250
250
|
};
|
|
251
|
-
}), W =
|
|
251
|
+
}), W = h(() => !y.value || !y.value.chunks || !y.value.chunks.length ? [] : y.value.chunks.map((t) => {
|
|
252
252
|
const s = M(
|
|
253
253
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
254
254
|
t.from,
|
|
@@ -267,51 +267,51 @@ segments: [
|
|
|
267
267
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
268
268
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
269
269
|
})
|
|
270
|
-
),
|
|
270
|
+
), d = `${s} — ${a}`;
|
|
271
271
|
return {
|
|
272
272
|
...t,
|
|
273
273
|
shape: "square",
|
|
274
|
-
value:
|
|
275
|
-
display: `${t.name}: ${
|
|
274
|
+
value: d,
|
|
275
|
+
display: `${t.name}: ${d}`
|
|
276
276
|
};
|
|
277
|
-
})),
|
|
277
|
+
})), Le = h(() => ({
|
|
278
278
|
cy: "bullet-div-legend",
|
|
279
279
|
backgroundColor: "transparent",
|
|
280
280
|
color: e.value.style.chart.legend.color,
|
|
281
281
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
282
282
|
paddingBottom: 6,
|
|
283
283
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
284
|
-
})), { isPrinting: oe, isImaging:
|
|
285
|
-
elementId: `bullet_${
|
|
284
|
+
})), { isPrinting: oe, isImaging: ne, generatePdf: re, generateImage: ue } = et({
|
|
285
|
+
elementId: `bullet_${w.value}`,
|
|
286
286
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
287
287
|
options: e.value.userOptions.print
|
|
288
|
-
}), Se =
|
|
288
|
+
}), Se = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = c(!1);
|
|
289
289
|
function ie(t) {
|
|
290
|
-
|
|
290
|
+
O.value = t, xe.value += 1;
|
|
291
291
|
}
|
|
292
292
|
function Oe() {
|
|
293
|
-
return
|
|
293
|
+
return y.value;
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const T = c(!1);
|
|
296
296
|
function D() {
|
|
297
|
-
|
|
297
|
+
T.value = !T.value;
|
|
298
298
|
}
|
|
299
299
|
async function Be({ scale: t = 2 } = {}) {
|
|
300
|
-
if (!
|
|
301
|
-
const { width: s, height: a } =
|
|
300
|
+
if (!k.value) return;
|
|
301
|
+
const { width: s, height: a } = k.value.getBoundingClientRect(), d = s / a, { imageUri: $, base64: g } = await nt({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
302
302
|
return {
|
|
303
|
-
imageUri:
|
|
304
|
-
base64:
|
|
303
|
+
imageUri: $,
|
|
304
|
+
base64: g,
|
|
305
305
|
title: e.value.style.chart.title.text,
|
|
306
306
|
width: s,
|
|
307
307
|
height: a,
|
|
308
|
-
aspectRatio:
|
|
308
|
+
aspectRatio: d
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
const Ie =
|
|
311
|
+
const Ie = h(() => W.value.map((t) => ({
|
|
312
312
|
...t,
|
|
313
313
|
name: t.display
|
|
314
|
-
}))), Pe =
|
|
314
|
+
}))), Pe = h(() => e.value.style.chart.backgroundColor), Fe = h(() => e.value.style.chart.legend), Te = h(() => e.value.style.chart.title), { exportSvg: He, getSvg: Me } = it({
|
|
315
315
|
svg: E,
|
|
316
316
|
title: Te,
|
|
317
317
|
legend: Fe,
|
|
@@ -324,36 +324,56 @@ segments: [
|
|
|
324
324
|
return ye({
|
|
325
325
|
getData: Oe,
|
|
326
326
|
getImage: Be,
|
|
327
|
-
generatePdf:
|
|
327
|
+
generatePdf: re,
|
|
328
328
|
generateImage: ue,
|
|
329
329
|
generateSvg: ve,
|
|
330
330
|
toggleAnnotator: D,
|
|
331
331
|
toggleFullscreen: ie
|
|
332
|
-
}), (t, s) => (o(),
|
|
332
|
+
}), (t, s) => (o(), r("div", {
|
|
333
333
|
ref_key: "bulletChart",
|
|
334
|
-
ref:
|
|
335
|
-
class: he(`vue-data-ui-component vue-ui-bullet ${
|
|
334
|
+
ref: k,
|
|
335
|
+
class: he(`vue-data-ui-component vue-ui-bullet ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
336
336
|
style: V(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
337
|
-
id: `bullet_${
|
|
338
|
-
onMouseenter: s[0] || (s[0] = () =>
|
|
339
|
-
onMouseleave: s[1] || (s[1] = () =>
|
|
337
|
+
id: `bullet_${w.value}`,
|
|
338
|
+
onMouseenter: s[0] || (s[0] = () => n(te)(!0)),
|
|
339
|
+
onMouseleave: s[1] || (s[1] = () => n(te)(!1))
|
|
340
340
|
}, [
|
|
341
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
341
|
+
e.value.userOptions.buttons.annotator ? (o(), A(n(be), {
|
|
342
342
|
key: 0,
|
|
343
|
-
svgRef:
|
|
343
|
+
svgRef: n(E),
|
|
344
344
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
345
345
|
color: e.value.style.chart.color,
|
|
346
|
-
active:
|
|
346
|
+
active: T.value,
|
|
347
347
|
onClose: D
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
}, {
|
|
349
|
+
"annotator-action-close": f(() => [
|
|
350
|
+
i(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
351
|
+
]),
|
|
352
|
+
"annotator-action-color": f(({ color: a }) => [
|
|
353
|
+
i(t.$slots, "annotator-action-color", p(b({ color: a })), void 0, !0)
|
|
354
|
+
]),
|
|
355
|
+
"annotator-action-draw": f(({ mode: a }) => [
|
|
356
|
+
i(t.$slots, "annotator-action-draw", p(b({ mode: a })), void 0, !0)
|
|
357
|
+
]),
|
|
358
|
+
"annotator-action-undo": f(({ disabled: a }) => [
|
|
359
|
+
i(t.$slots, "annotator-action-undo", p(b({ disabled: a })), void 0, !0)
|
|
360
|
+
]),
|
|
361
|
+
"annotator-action-redo": f(({ disabled: a }) => [
|
|
362
|
+
i(t.$slots, "annotator-action-redo", p(b({ disabled: a })), void 0, !0)
|
|
363
|
+
]),
|
|
364
|
+
"annotator-action-delete": f(({ disabled: a }) => [
|
|
365
|
+
i(t.$slots, "annotator-action-delete", p(b({ disabled: a })), void 0, !0)
|
|
366
|
+
]),
|
|
367
|
+
_: 3
|
|
368
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
|
|
369
|
+
Se.value ? (o(), r("div", ht, null, 512)) : u("", !0),
|
|
370
|
+
e.value.style.chart.title.text ? (o(), r("div", {
|
|
351
371
|
key: 2,
|
|
352
372
|
ref_key: "chartTitle",
|
|
353
373
|
ref: X,
|
|
354
374
|
style: "width:100%;background:transparent;"
|
|
355
375
|
}, [
|
|
356
|
-
(o(),
|
|
376
|
+
(o(), A(ot, {
|
|
357
377
|
lineHeight: "1.3rem",
|
|
358
378
|
key: `title_${Y.value}`,
|
|
359
379
|
config: {
|
|
@@ -368,17 +388,17 @@ segments: [
|
|
|
368
388
|
}
|
|
369
389
|
}, null, 8, ["config"]))
|
|
370
390
|
], 512)) : u("", !0),
|
|
371
|
-
|
|
372
|
-
id: `legend-top-${
|
|
391
|
+
_("div", {
|
|
392
|
+
id: `legend-top-${w.value}`
|
|
373
393
|
}, null, 8, dt),
|
|
374
|
-
e.value.userOptions.show &&
|
|
394
|
+
e.value.userOptions.show && x.value && (n(ae) || n(N)) ? (o(), A(n(ke), {
|
|
375
395
|
key: 3,
|
|
376
396
|
ref: "details",
|
|
377
397
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
378
398
|
color: e.value.style.chart.color,
|
|
379
|
-
isPrinting:
|
|
380
|
-
isImaging:
|
|
381
|
-
uid:
|
|
399
|
+
isPrinting: n(oe),
|
|
400
|
+
isImaging: n(ne),
|
|
401
|
+
uid: w.value,
|
|
382
402
|
hasTooltip: !1,
|
|
383
403
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
384
404
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -387,76 +407,76 @@ segments: [
|
|
|
387
407
|
hasTable: !1,
|
|
388
408
|
hasLabel: !1,
|
|
389
409
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
390
|
-
isFullscreen:
|
|
391
|
-
chartElement:
|
|
410
|
+
isFullscreen: O.value,
|
|
411
|
+
chartElement: k.value,
|
|
392
412
|
position: e.value.userOptions.position,
|
|
393
413
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
394
414
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
395
|
-
isAnnotation:
|
|
415
|
+
isAnnotation: T.value,
|
|
396
416
|
callbacks: e.value.userOptions.callbacks,
|
|
397
417
|
printScale: e.value.userOptions.print.scale,
|
|
398
418
|
onToggleFullscreen: ie,
|
|
399
|
-
onGeneratePdf:
|
|
400
|
-
onGenerateImage:
|
|
419
|
+
onGeneratePdf: n(re),
|
|
420
|
+
onGenerateImage: n(ue),
|
|
401
421
|
onGenerateSvg: ve,
|
|
402
422
|
onToggleAnnotator: D,
|
|
403
423
|
style: V({
|
|
404
|
-
visibility:
|
|
424
|
+
visibility: n(ae) ? n(N) ? "visible" : "hidden" : "visible"
|
|
405
425
|
})
|
|
406
426
|
}, Ue({ _: 2 }, [
|
|
407
427
|
t.$slots.menuIcon ? {
|
|
408
428
|
name: "menuIcon",
|
|
409
|
-
fn:
|
|
410
|
-
|
|
429
|
+
fn: f(({ isOpen: a, color: d }) => [
|
|
430
|
+
i(t.$slots, "menuIcon", p(b({ isOpen: a, color: d })), void 0, !0)
|
|
411
431
|
]),
|
|
412
432
|
key: "0"
|
|
413
433
|
} : void 0,
|
|
414
434
|
t.$slots.optionPdf ? {
|
|
415
435
|
name: "optionPdf",
|
|
416
|
-
fn:
|
|
417
|
-
|
|
436
|
+
fn: f(() => [
|
|
437
|
+
i(t.$slots, "optionPdf", {}, void 0, !0)
|
|
418
438
|
]),
|
|
419
439
|
key: "1"
|
|
420
440
|
} : void 0,
|
|
421
441
|
t.$slots.optionImg ? {
|
|
422
442
|
name: "optionImg",
|
|
423
|
-
fn:
|
|
424
|
-
|
|
443
|
+
fn: f(() => [
|
|
444
|
+
i(t.$slots, "optionImg", {}, void 0, !0)
|
|
425
445
|
]),
|
|
426
446
|
key: "2"
|
|
427
447
|
} : void 0,
|
|
428
448
|
t.$slots.optionSvg ? {
|
|
429
449
|
name: "optionSvg",
|
|
430
|
-
fn:
|
|
431
|
-
|
|
450
|
+
fn: f(() => [
|
|
451
|
+
i(t.$slots, "optionSvg", {}, void 0, !0)
|
|
432
452
|
]),
|
|
433
453
|
key: "3"
|
|
434
454
|
} : void 0,
|
|
435
455
|
t.$slots.optionFullscreen ? {
|
|
436
456
|
name: "optionFullscreen",
|
|
437
|
-
fn:
|
|
438
|
-
|
|
457
|
+
fn: f(({ toggleFullscreen: a, isFullscreen: d }) => [
|
|
458
|
+
i(t.$slots, "optionFullscreen", p(b({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
|
|
439
459
|
]),
|
|
440
460
|
key: "4"
|
|
441
461
|
} : void 0,
|
|
442
462
|
t.$slots.optionAnnotator ? {
|
|
443
463
|
name: "optionAnnotator",
|
|
444
|
-
fn:
|
|
445
|
-
|
|
464
|
+
fn: f(({ toggleAnnotator: a, isAnnotator: d }) => [
|
|
465
|
+
i(t.$slots, "optionAnnotator", p(b({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
|
|
446
466
|
]),
|
|
447
467
|
key: "5"
|
|
448
468
|
} : void 0
|
|
449
469
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
|
|
450
|
-
(o(),
|
|
470
|
+
(o(), r("svg", {
|
|
451
471
|
ref_key: "svgRef",
|
|
452
472
|
ref: E,
|
|
453
|
-
xmlns:
|
|
454
|
-
class: he({ "vue-data-ui-fullscreen--on":
|
|
473
|
+
xmlns: n(Je),
|
|
474
|
+
class: he({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value, "vue-ui-bullet-svg": !0 }),
|
|
455
475
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
456
476
|
style: V(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
457
477
|
}, [
|
|
458
|
-
We(
|
|
459
|
-
t.$slots["chart-background"] ? (o(),
|
|
478
|
+
We(n(pe)),
|
|
479
|
+
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
460
480
|
key: 0,
|
|
461
481
|
x: 0,
|
|
462
482
|
y: 0,
|
|
@@ -466,10 +486,10 @@ segments: [
|
|
|
466
486
|
pointerEvents: "none"
|
|
467
487
|
}
|
|
468
488
|
}, [
|
|
469
|
-
|
|
489
|
+
i(t.$slots, "chart-background", {}, void 0, !0)
|
|
470
490
|
], 8, ft)) : u("", !0),
|
|
471
|
-
|
|
472
|
-
(o(!0),
|
|
491
|
+
S.value ? (o(), r("g", mt, [
|
|
492
|
+
(o(!0), r(j, null, q(y.value.chunks, (a) => (o(), r("rect", {
|
|
473
493
|
x: a.x,
|
|
474
494
|
y: a.y,
|
|
475
495
|
height: a.height,
|
|
@@ -479,9 +499,9 @@ segments: [
|
|
|
479
499
|
stroke: e.value.style.chart.backgroundColor,
|
|
480
500
|
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
481
501
|
}, null, 8, yt))), 256)),
|
|
482
|
-
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(),
|
|
502
|
+
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(), r("rect", {
|
|
483
503
|
key: 0,
|
|
484
|
-
x:
|
|
504
|
+
x: y.value.target.x,
|
|
485
505
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
486
506
|
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
487
507
|
width: e.value.style.chart.target.width,
|
|
@@ -490,36 +510,36 @@ segments: [
|
|
|
490
510
|
stroke: e.value.style.chart.target.stroke,
|
|
491
511
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
492
512
|
}, null, 8, pt)) : u("", !0),
|
|
493
|
-
|
|
513
|
+
_("rect", {
|
|
494
514
|
x: l.value.left,
|
|
495
515
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
496
516
|
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
497
|
-
width:
|
|
517
|
+
width: y.value.value.width,
|
|
498
518
|
fill: e.value.style.chart.valueBar.color,
|
|
499
519
|
stroke: e.value.style.chart.valueBar.stroke,
|
|
500
520
|
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
501
521
|
}, null, 8, bt),
|
|
502
|
-
e.value.style.chart.valueBar.label.show ? (o(),
|
|
522
|
+
e.value.style.chart.valueBar.label.show ? (o(), r("text", {
|
|
503
523
|
key: 1,
|
|
504
|
-
x: l.value.left +
|
|
524
|
+
x: l.value.left + y.value.value.width,
|
|
505
525
|
y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
|
|
506
526
|
"font-size": e.value.style.chart.valueBar.label.fontSize,
|
|
507
527
|
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
508
528
|
fill: e.value.style.chart.valueBar.label.color,
|
|
509
529
|
"text-anchor": "middle"
|
|
510
|
-
}, H(
|
|
530
|
+
}, H(n(M)(
|
|
511
531
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
512
|
-
|
|
513
|
-
|
|
532
|
+
m.value,
|
|
533
|
+
n(R)({
|
|
514
534
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
515
|
-
v:
|
|
535
|
+
v: m.value,
|
|
516
536
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
517
537
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
518
538
|
})
|
|
519
539
|
)), 9, kt)) : u("", !0),
|
|
520
|
-
e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(),
|
|
540
|
+
e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(), r("rect", {
|
|
521
541
|
key: 2,
|
|
522
|
-
x:
|
|
542
|
+
x: y.value.target.x,
|
|
523
543
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
524
544
|
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
525
545
|
width: e.value.style.chart.target.width,
|
|
@@ -529,27 +549,27 @@ segments: [
|
|
|
529
549
|
"stroke-width": e.value.style.chart.target.strokeWidth,
|
|
530
550
|
style: { transition: "x 0.3s ease-in-out" }
|
|
531
551
|
}, null, 8, wt)) : u("", !0),
|
|
532
|
-
e.value.style.chart.segments.dataLabels.show ? (o(),
|
|
533
|
-
(o(!0),
|
|
552
|
+
e.value.style.chart.segments.dataLabels.show ? (o(), r("g", xt, [
|
|
553
|
+
(o(!0), r(j, null, q(y.value.ticks, (a) => (o(), r("text", {
|
|
534
554
|
x: a.x,
|
|
535
555
|
y: a.y,
|
|
536
556
|
"text-anchor": "middle",
|
|
537
557
|
fill: e.value.style.chart.segments.dataLabels.color,
|
|
538
558
|
"font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
539
559
|
"font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
540
|
-
}, H(
|
|
560
|
+
}, H(n(M)(
|
|
541
561
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
542
562
|
a.value,
|
|
543
|
-
|
|
563
|
+
n(R)({
|
|
544
564
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
545
565
|
v: a.value,
|
|
546
566
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
547
567
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
548
568
|
})
|
|
549
|
-
)), 9,
|
|
569
|
+
)), 9, Ct))), 256))
|
|
550
570
|
])) : u("", !0),
|
|
551
|
-
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (o(),
|
|
552
|
-
(o(!0),
|
|
571
|
+
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (o(), r("g", $t, [
|
|
572
|
+
(o(!0), r(j, null, q(y.value.ticks, (a) => (o(), r("line", {
|
|
553
573
|
x1: a.x,
|
|
554
574
|
x2: a.x,
|
|
555
575
|
y1: l.value.bottom,
|
|
@@ -560,51 +580,51 @@ segments: [
|
|
|
560
580
|
}, null, 8, At))), 256))
|
|
561
581
|
])) : u("", !0)
|
|
562
582
|
])) : u("", !0),
|
|
563
|
-
|
|
583
|
+
i(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
564
584
|
], 14, gt)),
|
|
565
|
-
t.$slots.watermark ? (o(),
|
|
566
|
-
|
|
585
|
+
t.$slots.watermark ? (o(), r("div", _t, [
|
|
586
|
+
i(t.$slots, "watermark", p(b({ isPrinting: n(oe) || n(ne) })), void 0, !0)
|
|
567
587
|
])) : u("", !0),
|
|
568
|
-
|
|
569
|
-
id: `legend-bottom-${
|
|
570
|
-
}, null, 8,
|
|
571
|
-
Q.value ? (o(),
|
|
588
|
+
_("div", {
|
|
589
|
+
id: `legend-bottom-${w.value}`
|
|
590
|
+
}, null, 8, Lt),
|
|
591
|
+
Q.value ? (o(), A(De, {
|
|
572
592
|
key: 5,
|
|
573
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
593
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
574
594
|
}, [
|
|
575
|
-
|
|
595
|
+
_("div", {
|
|
576
596
|
ref_key: "chartLegend",
|
|
577
597
|
ref: J
|
|
578
598
|
}, [
|
|
579
|
-
e.value.style.chart.legend.show ? (o(),
|
|
599
|
+
e.value.style.chart.legend.show ? (o(), A(st, {
|
|
580
600
|
key: 0,
|
|
581
601
|
clickable: !1,
|
|
582
602
|
legendSet: W.value,
|
|
583
|
-
config:
|
|
603
|
+
config: Le.value
|
|
584
604
|
}, {
|
|
585
|
-
item:
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
605
|
+
item: f(({ legend: a }) => [
|
|
606
|
+
n(C) ? u("", !0) : (o(), r("div", St, [
|
|
607
|
+
_("span", Ot, H(a.name) + ":", 1),
|
|
608
|
+
_("span", null, H(a.value), 1)
|
|
589
609
|
]))
|
|
590
610
|
]),
|
|
591
611
|
_: 1
|
|
592
612
|
}, 8, ["legendSet", "config"])) : u("", !0),
|
|
593
|
-
|
|
613
|
+
i(t.$slots, "legend", { legend: W.value }, void 0, !0)
|
|
594
614
|
], 512)
|
|
595
615
|
], 8, ["to"])) : u("", !0),
|
|
596
|
-
t.$slots.source ? (o(),
|
|
616
|
+
t.$slots.source ? (o(), r("div", {
|
|
597
617
|
key: 6,
|
|
598
618
|
ref_key: "source",
|
|
599
619
|
ref: K,
|
|
600
620
|
dir: "auto"
|
|
601
621
|
}, [
|
|
602
|
-
|
|
622
|
+
i(t.$slots, "source", {}, void 0, !0)
|
|
603
623
|
], 512)) : u("", !0),
|
|
604
|
-
|
|
624
|
+
n(C) ? (o(), A(ut, { key: 7 })) : u("", !0)
|
|
605
625
|
], 46, ct));
|
|
606
626
|
}
|
|
607
|
-
}, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-
|
|
627
|
+
}, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-ab4dd268"]]);
|
|
608
628
|
export {
|
|
609
629
|
Vt as default
|
|
610
630
|
};
|