vue-data-ui 3.0.2 → 3.0.3
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-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineAsyncComponent as W, ref as c, computed as f, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { t as
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { defineAsyncComponent as W, ref as c, computed as f, onMounted as Ie, toRefs as Pe, watch as ce, onBeforeUnmount as Fe, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as D, normalizeClass as ve, createBlock as x, createCommentVNode as u, createElementVNode as _, createSlots as Te, withCtx as A, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as He, Fragment as V, renderList as G, toDisplayString as H, Teleport as Me } from "vue";
|
|
2
|
+
import { u as Re, c as ze, t as Ne, l as Ue, D as Ee, e as We, k as M, i as R, X as De, o as he, f as de, g as Ve, b as Ge } from "./index-DrRiscPm.js";
|
|
3
|
+
import { u as ge } from "./useNestedProp-BXhArS-K.js";
|
|
4
|
+
import { u as je } from "./usePrinter-CZk2ISUm.js";
|
|
5
|
+
import { u as qe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import Ye from "./Legend-CevCqVZ5.js";
|
|
8
|
+
import Je from "./Title-CINHji0n.js";
|
|
9
|
+
import Ke from "./img-CBdOMFyn.js";
|
|
10
|
+
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
11
|
+
import { u as et, B as tt } from "./useLoading-D7YHNtLX.js";
|
|
12
|
+
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const lt = ["id"], st = {
|
|
14
14
|
key: 1,
|
|
15
15
|
ref: "noTitle",
|
|
16
16
|
class: "vue-data-ui-no-title-space",
|
|
17
17
|
style: "height:36px; width: 100%;background:transparent"
|
|
18
|
-
},
|
|
18
|
+
}, rt = ["id"], ot = ["xmlns", "viewBox"], nt = ["width", "height"], ut = { key: 1 }, it = ["x", "y", "height", "width", "fill", "stroke"], ct = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], ht = ["x", "y", "font-size", "font-weight", "fill"], dt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], gt = { key: 3 }, ft = ["x", "y", "fill", "font-size", "font-weight"], mt = { key: 4 }, yt = ["x1", "x2", "y1", "y2", "stroke"], pt = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
21
|
+
}, bt = ["id"], kt = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "vue-ui-bullet-legend-item",
|
|
24
24
|
dir: "auto"
|
|
25
|
-
},
|
|
25
|
+
}, wt = { style: { "margin-right": "2px" } }, xt = {
|
|
26
26
|
__name: "vue-ui-bullet",
|
|
27
27
|
props: {
|
|
28
28
|
config: {
|
|
@@ -38,11 +38,11 @@ const tt = ["id"], at = {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
get: () =>
|
|
41
|
+
setup(fe, { expose: me }) {
|
|
42
|
+
const ye = W(() => import("./PackageVersion-n4qokxnx.js")), pe = W(() => import("./PenAndPaper-C_R9vJkU.js")), be = W(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_bullet: ke } = Re(), O = fe, y = c(null), j = c(null), q = c(0), X = c(null), Y = c(null), we = c(0), C = c(null), B = c(null), J = c(!1), b = f({
|
|
43
|
+
get: () => i.value.hasOwnProperty("value"),
|
|
44
44
|
set: (t) => t
|
|
45
|
-
}),
|
|
45
|
+
}), L = f(() => 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:
|
|
46
46
|
|
|
47
47
|
segments: [
|
|
48
48
|
{
|
|
@@ -53,7 +53,7 @@ segments: [
|
|
|
53
53
|
},
|
|
54
54
|
{...}
|
|
55
55
|
]
|
|
56
|
-
`),
|
|
56
|
+
`), b.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
57
57
|
|
|
58
58
|
segments: [
|
|
59
59
|
{
|
|
@@ -64,7 +64,7 @@ segments: [
|
|
|
64
64
|
},
|
|
65
65
|
{...}
|
|
66
66
|
]
|
|
67
|
-
`),
|
|
67
|
+
`), b.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
68
68
|
|
|
69
69
|
segments: [
|
|
70
70
|
{
|
|
@@ -75,57 +75,59 @@ segments: [
|
|
|
75
75
|
},
|
|
76
76
|
{...}
|
|
77
77
|
]
|
|
78
|
-
`),
|
|
79
|
-
function
|
|
80
|
-
if (he(
|
|
78
|
+
`), b.value = !1, !1)), K = f(() => !!e.value.debug);
|
|
79
|
+
function Q() {
|
|
80
|
+
if (he(i.value) ? (de({
|
|
81
81
|
componentName: "VueUiBullet",
|
|
82
82
|
type: "dataset",
|
|
83
|
-
debug:
|
|
84
|
-
}),
|
|
85
|
-
|
|
83
|
+
debug: K.value
|
|
84
|
+
}), S.value = !0) : L.value ? i.value.segments.forEach((t, s) => {
|
|
85
|
+
Ve({
|
|
86
86
|
datasetObject: t,
|
|
87
87
|
requiredAttributes: ["name", "from", "to"]
|
|
88
88
|
}).forEach((a) => {
|
|
89
|
-
|
|
89
|
+
b.value = !1, de({
|
|
90
90
|
componentName: "VueUiBullet segment",
|
|
91
91
|
type: "datasetSerieAttribute",
|
|
92
92
|
property: a,
|
|
93
93
|
index: s,
|
|
94
|
-
debug:
|
|
94
|
+
debug: K.value
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
|
-
}) : (
|
|
98
|
-
const t =
|
|
99
|
-
const { width: s, height: a } =
|
|
97
|
+
}) : (b.value = !1, S.value = !0), he(i.value) || (S.value = e.value.loading), e.value.responsive) {
|
|
98
|
+
const t = Qe(() => {
|
|
99
|
+
const { width: s, height: a } = Ze({
|
|
100
100
|
chart: y.value,
|
|
101
101
|
title: e.value.style.chart.title.text ? j.value : null,
|
|
102
102
|
legend: e.value.style.chart.legend.show ? X.value : null,
|
|
103
103
|
source: Y.value
|
|
104
104
|
});
|
|
105
105
|
requestAnimationFrame(() => {
|
|
106
|
-
|
|
106
|
+
I.value.width = s, I.value.height = a - 12;
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
C.value && (B.value && C.value.unobserve(B.value), C.value.disconnect()), C.value = new ResizeObserver(t), B.value = y.value.parentNode, C.value.observe(B.value);
|
|
110
110
|
}
|
|
111
|
-
e.value.style.chart.animation.show && !
|
|
111
|
+
e.value.style.chart.animation.show && !k.value && le(i.value.value || 0);
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
Ie(() => {
|
|
114
|
+
J.value = !0, Q();
|
|
115
|
+
});
|
|
116
|
+
const p = c(ze());
|
|
115
117
|
function z() {
|
|
116
|
-
const t =
|
|
117
|
-
userConfig:
|
|
118
|
-
defaultConfig:
|
|
118
|
+
const t = ge({
|
|
119
|
+
userConfig: O.config,
|
|
120
|
+
defaultConfig: ke
|
|
119
121
|
});
|
|
120
122
|
return t.theme ? {
|
|
121
|
-
...
|
|
122
|
-
userConfig:
|
|
123
|
+
...ge({
|
|
124
|
+
userConfig: Ge.vue_ui_bullet[t.theme] || O.config,
|
|
123
125
|
defaultConfig: t
|
|
124
126
|
})
|
|
125
127
|
} : t;
|
|
126
128
|
}
|
|
127
|
-
const e = c(z()), { loading:
|
|
128
|
-
...
|
|
129
|
+
const e = c(z()), { loading: k, FINAL_DATASET: i, manualLoading: S } = et({
|
|
130
|
+
...Pe(O),
|
|
129
131
|
FINAL_CONFIG: e,
|
|
130
132
|
prepareConfig: z,
|
|
131
133
|
skeletonDataset: {
|
|
@@ -152,7 +154,7 @@ segments: [
|
|
|
152
154
|
}
|
|
153
155
|
]
|
|
154
156
|
},
|
|
155
|
-
skeletonConfig:
|
|
157
|
+
skeletonConfig: Ne({
|
|
156
158
|
defaultConfig: e.value,
|
|
157
159
|
userConfig: {
|
|
158
160
|
userOptions: { show: !1 },
|
|
@@ -172,83 +174,83 @@ segments: [
|
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
176
|
})
|
|
175
|
-
}), { userOptionsVisible: N, setUserOptionsVisibility:
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
}), { userOptionsVisible: N, setUserOptionsVisibility: Z, keepUserOptionState: ee } = qe({ config: e.value }), { svgRef: te } = Xe({ config: e.value.style.chart.title });
|
|
178
|
+
ce(() => O.config, (t) => {
|
|
179
|
+
k.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, Q(), q.value += 1;
|
|
178
180
|
}, { deep: !0 });
|
|
179
|
-
const
|
|
181
|
+
const I = c({
|
|
180
182
|
width: e.value.style.chart.width,
|
|
181
183
|
height: e.value.style.chart.height
|
|
182
|
-
}),
|
|
183
|
-
const t =
|
|
184
|
+
}), xe = f(() => I.value.width), _e = f(() => I.value.height), l = f(() => {
|
|
185
|
+
const t = _e.value, s = xe.value, a = e.value.style.chart.padding.left, g = s - e.value.style.chart.padding.right, w = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
|
|
184
186
|
return {
|
|
185
187
|
height: Math.max(1e-3, t),
|
|
186
188
|
width: Math.max(1e-3, s),
|
|
187
189
|
left: a,
|
|
188
190
|
right: g,
|
|
189
|
-
top:
|
|
190
|
-
bottom:
|
|
191
|
+
top: w,
|
|
192
|
+
bottom: v,
|
|
191
193
|
chartWidth: Math.max(1e-3, g - a),
|
|
192
|
-
chartHeight: Math.max(1e-3,
|
|
194
|
+
chartHeight: Math.max(1e-3, v - w)
|
|
193
195
|
};
|
|
194
196
|
}), Ae = f(() => {
|
|
195
|
-
if (!
|
|
197
|
+
if (!L.value) return [];
|
|
196
198
|
const t = [];
|
|
197
|
-
for (let s = 0; s <
|
|
198
|
-
t.push(
|
|
199
|
+
for (let s = 0; s < i.value.segments.length; s += 1)
|
|
200
|
+
t.push(Ue(e.value.style.chart.segments.baseColor, s / i.value.segments.length));
|
|
199
201
|
return t;
|
|
200
|
-
}), U = f(() =>
|
|
201
|
-
min: Math.min(...
|
|
202
|
-
max: Math.max(...
|
|
203
|
-
} : { min: 0, max: 1 }),
|
|
204
|
-
|
|
205
|
-
t.hasOwnProperty("value") && (
|
|
202
|
+
}), U = f(() => L.value ? {
|
|
203
|
+
min: Math.min(...i.value.segments.map((t) => t.from)),
|
|
204
|
+
max: Math.max(...i.value.segments.map((t) => t.to))
|
|
205
|
+
} : { min: 0, max: 1 }), h = c(Ce());
|
|
206
|
+
ce(() => i.value, (t) => {
|
|
207
|
+
t.hasOwnProperty("value") && (S.value = !1), e.value.style.chart.animation.show && !k.value ? le(t.value || 0) : h.value = t.value || 0;
|
|
206
208
|
}, { deep: !0 });
|
|
207
|
-
function
|
|
208
|
-
return e.value.style.chart.animation.show && !
|
|
209
|
+
function Ce() {
|
|
210
|
+
return e.value.style.chart.animation.show && !k.value ? U.value.min : i.value.value || 0;
|
|
209
211
|
}
|
|
210
|
-
const
|
|
211
|
-
function
|
|
212
|
-
const s = Math.abs(t -
|
|
212
|
+
const ae = c(null);
|
|
213
|
+
function le(t) {
|
|
214
|
+
const s = Math.abs(t - h.value) / e.value.style.chart.animation.animationFrames;
|
|
213
215
|
function a() {
|
|
214
|
-
|
|
216
|
+
h.value < t ? h.value = Math.min(h.value + s, t) : h.value > t && (h.value = Math.max(h.value - s, t)), h.value !== t && (ae.value = requestAnimationFrame(a));
|
|
215
217
|
}
|
|
216
218
|
a();
|
|
217
219
|
}
|
|
218
|
-
|
|
219
|
-
cancelAnimationFrame(
|
|
220
|
+
Fe(() => {
|
|
221
|
+
cancelAnimationFrame(ae.value);
|
|
220
222
|
});
|
|
221
223
|
const d = f(() => {
|
|
222
|
-
if (!
|
|
224
|
+
if (!L.value)
|
|
223
225
|
return [];
|
|
224
|
-
const t =
|
|
225
|
-
x: l.value.left + (
|
|
226
|
+
const t = Ee(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
227
|
+
x: l.value.left + (i.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
226
228
|
}, g = {
|
|
227
|
-
width: (
|
|
228
|
-
},
|
|
229
|
-
value:
|
|
229
|
+
width: (h.value + s) / (t.max + s) * l.value.chartWidth
|
|
230
|
+
}, w = t.ticks.map((v) => ({
|
|
231
|
+
value: v,
|
|
230
232
|
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
231
|
-
x: l.value.left + (
|
|
233
|
+
x: l.value.left + (v + s) / (t.max + s) * l.value.chartWidth
|
|
232
234
|
}));
|
|
233
235
|
return {
|
|
234
236
|
scale: t,
|
|
235
237
|
target: a,
|
|
236
238
|
value: g,
|
|
237
|
-
ticks:
|
|
238
|
-
chunks:
|
|
239
|
-
...
|
|
240
|
-
color:
|
|
241
|
-
x: l.value.left + l.value.chartWidth * ((
|
|
239
|
+
ticks: w,
|
|
240
|
+
chunks: i.value.segments.map((v, Se) => ({
|
|
241
|
+
...v,
|
|
242
|
+
color: v.color ? We(v.color) : Ae.value[Se],
|
|
243
|
+
x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
|
|
242
244
|
y: l.value.top,
|
|
243
245
|
height: l.value.chartHeight,
|
|
244
|
-
width: l.value.chartWidth * (Math.abs(
|
|
246
|
+
width: l.value.chartWidth * (Math.abs(v.to - v.from) / (t.max + s))
|
|
245
247
|
}))
|
|
246
248
|
};
|
|
247
|
-
}),
|
|
249
|
+
}), se = f(() => !d.value || !d.value.chunks || !d.value.chunks.length ? [] : d.value.chunks.map((t) => {
|
|
248
250
|
const s = M(
|
|
249
251
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
250
252
|
t.from,
|
|
251
|
-
|
|
253
|
+
R({
|
|
252
254
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
253
255
|
v: t.from,
|
|
254
256
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
@@ -257,7 +259,7 @@ segments: [
|
|
|
257
259
|
), a = M(
|
|
258
260
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
259
261
|
t.to,
|
|
260
|
-
|
|
262
|
+
R({
|
|
261
263
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
262
264
|
v: t.to,
|
|
263
265
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
@@ -269,72 +271,72 @@ segments: [
|
|
|
269
271
|
shape: "square",
|
|
270
272
|
value: `${s} - ${a}`
|
|
271
273
|
};
|
|
272
|
-
})),
|
|
274
|
+
})), Le = f(() => ({
|
|
273
275
|
cy: "bullet-div-legend",
|
|
274
276
|
backgroundColor: "transparent",
|
|
275
277
|
color: e.value.style.chart.legend.color,
|
|
276
278
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
277
279
|
paddingBottom: 6,
|
|
278
280
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
279
|
-
})), { isPrinting:
|
|
280
|
-
elementId: `bullet_${
|
|
281
|
+
})), { isPrinting: re, isImaging: oe, generatePdf: ne, generateImage: ue } = je({
|
|
282
|
+
elementId: `bullet_${p.value}`,
|
|
281
283
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
282
284
|
options: e.value.userOptions.print
|
|
283
|
-
}),
|
|
284
|
-
function
|
|
285
|
-
|
|
285
|
+
}), $e = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), $ = c(!1);
|
|
286
|
+
function ie(t) {
|
|
287
|
+
$.value = t, we.value += 1;
|
|
286
288
|
}
|
|
287
289
|
function Oe() {
|
|
288
290
|
return d.value;
|
|
289
291
|
}
|
|
290
|
-
const
|
|
292
|
+
const P = c(!1);
|
|
291
293
|
function E() {
|
|
292
|
-
|
|
294
|
+
P.value = !P.value;
|
|
293
295
|
}
|
|
294
296
|
async function Be({ scale: t = 2 } = {}) {
|
|
295
297
|
if (!y.value) return;
|
|
296
|
-
const { width: s, height: a } = y.value.getBoundingClientRect(), g = s / a, { imageUri:
|
|
298
|
+
const { width: s, height: a } = y.value.getBoundingClientRect(), g = s / a, { imageUri: w, base64: v } = await Ke({ domElement: y.value, base64: !0, img: !0, scale: t });
|
|
297
299
|
return {
|
|
298
|
-
imageUri:
|
|
299
|
-
base64:
|
|
300
|
+
imageUri: w,
|
|
301
|
+
base64: v,
|
|
300
302
|
title: e.value.style.chart.title.text,
|
|
301
303
|
width: s,
|
|
302
304
|
height: a,
|
|
303
305
|
aspectRatio: g
|
|
304
306
|
};
|
|
305
307
|
}
|
|
306
|
-
return
|
|
308
|
+
return me({
|
|
307
309
|
getData: Oe,
|
|
308
310
|
getImage: Be,
|
|
309
|
-
generatePdf:
|
|
310
|
-
generateImage:
|
|
311
|
+
generatePdf: ne,
|
|
312
|
+
generateImage: ue,
|
|
311
313
|
toggleAnnotator: E,
|
|
312
|
-
toggleFullscreen:
|
|
314
|
+
toggleFullscreen: ie
|
|
313
315
|
}), (t, s) => (r(), n("div", {
|
|
314
316
|
ref_key: "bulletChart",
|
|
315
317
|
ref: y,
|
|
316
|
-
class:
|
|
318
|
+
class: ve(`vue-ui-bullet ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
317
319
|
style: D(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
318
|
-
id: `bullet_${
|
|
319
|
-
onMouseenter: s[0] || (s[0] = () => o(
|
|
320
|
-
onMouseleave: s[1] || (s[1] = () => o(
|
|
320
|
+
id: `bullet_${p.value}`,
|
|
321
|
+
onMouseenter: s[0] || (s[0] = () => o(Z)(!0)),
|
|
322
|
+
onMouseleave: s[1] || (s[1] = () => o(Z)(!1))
|
|
321
323
|
}, [
|
|
322
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
324
|
+
e.value.userOptions.buttons.annotator ? (r(), x(o(pe), {
|
|
323
325
|
key: 0,
|
|
324
|
-
svgRef: o(
|
|
326
|
+
svgRef: o(te),
|
|
325
327
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
326
328
|
color: e.value.style.chart.color,
|
|
327
|
-
active:
|
|
329
|
+
active: P.value,
|
|
328
330
|
onClose: E
|
|
329
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
330
|
-
|
|
331
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
|
|
332
|
+
$e.value ? (r(), n("div", st, null, 512)) : u("", !0),
|
|
331
333
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
332
334
|
key: 2,
|
|
333
335
|
ref_key: "chartTitle",
|
|
334
336
|
ref: j,
|
|
335
337
|
style: "width:100%;background:transparent;"
|
|
336
338
|
}, [
|
|
337
|
-
(r(),
|
|
339
|
+
(r(), x(Je, {
|
|
338
340
|
lineHeight: "1.3rem",
|
|
339
341
|
key: `title_${q.value}`,
|
|
340
342
|
config: {
|
|
@@ -348,15 +350,18 @@ segments: [
|
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
}, null, 8, ["config"]))
|
|
351
|
-
], 512)) :
|
|
352
|
-
|
|
353
|
+
], 512)) : u("", !0),
|
|
354
|
+
_("div", {
|
|
355
|
+
id: `legend-top-${p.value}`
|
|
356
|
+
}, null, 8, rt),
|
|
357
|
+
e.value.userOptions.show && b.value && (o(ee) || o(N)) ? (r(), x(o(be), {
|
|
353
358
|
key: 3,
|
|
354
359
|
ref: "details",
|
|
355
360
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
356
361
|
color: e.value.style.chart.color,
|
|
357
|
-
isPrinting: o(
|
|
358
|
-
isImaging: o(
|
|
359
|
-
uid:
|
|
362
|
+
isPrinting: o(re),
|
|
363
|
+
isImaging: o(oe),
|
|
364
|
+
uid: p.value,
|
|
360
365
|
hasTooltip: !1,
|
|
361
366
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
362
367
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -364,67 +369,67 @@ segments: [
|
|
|
364
369
|
hasTable: !1,
|
|
365
370
|
hasLabel: !1,
|
|
366
371
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
367
|
-
isFullscreen:
|
|
372
|
+
isFullscreen: $.value,
|
|
368
373
|
chartElement: y.value,
|
|
369
374
|
position: e.value.userOptions.position,
|
|
370
375
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
371
376
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
372
|
-
isAnnotation:
|
|
377
|
+
isAnnotation: P.value,
|
|
373
378
|
callbacks: e.value.userOptions.callbacks,
|
|
374
379
|
printScale: e.value.userOptions.print.scale,
|
|
375
|
-
onToggleFullscreen:
|
|
376
|
-
onGeneratePdf: o(
|
|
377
|
-
onGenerateImage: o(
|
|
380
|
+
onToggleFullscreen: ie,
|
|
381
|
+
onGeneratePdf: o(ne),
|
|
382
|
+
onGenerateImage: o(ue),
|
|
378
383
|
onToggleAnnotator: E,
|
|
379
384
|
style: D({
|
|
380
|
-
visibility: o(
|
|
385
|
+
visibility: o(ee) ? o(N) ? "visible" : "hidden" : "visible"
|
|
381
386
|
})
|
|
382
|
-
},
|
|
387
|
+
}, Te({ _: 2 }, [
|
|
383
388
|
t.$slots.menuIcon ? {
|
|
384
389
|
name: "menuIcon",
|
|
385
|
-
fn:
|
|
386
|
-
m(t.$slots, "menuIcon",
|
|
390
|
+
fn: A(({ isOpen: a, color: g }) => [
|
|
391
|
+
m(t.$slots, "menuIcon", F(T({ isOpen: a, color: g })), void 0, !0)
|
|
387
392
|
]),
|
|
388
393
|
key: "0"
|
|
389
394
|
} : void 0,
|
|
390
395
|
t.$slots.optionPdf ? {
|
|
391
396
|
name: "optionPdf",
|
|
392
|
-
fn:
|
|
397
|
+
fn: A(() => [
|
|
393
398
|
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
394
399
|
]),
|
|
395
400
|
key: "1"
|
|
396
401
|
} : void 0,
|
|
397
402
|
t.$slots.optionImg ? {
|
|
398
403
|
name: "optionImg",
|
|
399
|
-
fn:
|
|
404
|
+
fn: A(() => [
|
|
400
405
|
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
401
406
|
]),
|
|
402
407
|
key: "2"
|
|
403
408
|
} : void 0,
|
|
404
409
|
t.$slots.optionFullscreen ? {
|
|
405
410
|
name: "optionFullscreen",
|
|
406
|
-
fn:
|
|
407
|
-
m(t.$slots, "optionFullscreen",
|
|
411
|
+
fn: A(({ toggleFullscreen: a, isFullscreen: g }) => [
|
|
412
|
+
m(t.$slots, "optionFullscreen", F(T({ toggleFullscreen: a, isFullscreen: g })), void 0, !0)
|
|
408
413
|
]),
|
|
409
414
|
key: "3"
|
|
410
415
|
} : void 0,
|
|
411
416
|
t.$slots.optionAnnotator ? {
|
|
412
417
|
name: "optionAnnotator",
|
|
413
|
-
fn:
|
|
414
|
-
m(t.$slots, "optionAnnotator",
|
|
418
|
+
fn: A(({ toggleAnnotator: a, isAnnotator: g }) => [
|
|
419
|
+
m(t.$slots, "optionAnnotator", F(T({ toggleAnnotator: a, isAnnotator: g })), void 0, !0)
|
|
415
420
|
]),
|
|
416
421
|
key: "4"
|
|
417
422
|
} : void 0
|
|
418
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
423
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
|
|
419
424
|
(r(), n("svg", {
|
|
420
425
|
ref_key: "svgRef",
|
|
421
|
-
ref:
|
|
422
|
-
xmlns: o(
|
|
423
|
-
class:
|
|
426
|
+
ref: te,
|
|
427
|
+
xmlns: o(De),
|
|
428
|
+
class: ve({ "vue-data-ui-fullscreen--on": $.value, "vue-data-ui-fulscreen--off": !$.value, "vue-ui-bullet-svg": !0 }),
|
|
424
429
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
425
430
|
style: D(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
426
431
|
}, [
|
|
427
|
-
He(o(
|
|
432
|
+
He(o(ye)),
|
|
428
433
|
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
429
434
|
key: 0,
|
|
430
435
|
x: 0,
|
|
@@ -436,8 +441,8 @@ segments: [
|
|
|
436
441
|
}
|
|
437
442
|
}, [
|
|
438
443
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
439
|
-
], 8,
|
|
440
|
-
|
|
444
|
+
], 8, nt)) : u("", !0),
|
|
445
|
+
L.value ? (r(), n("g", ut, [
|
|
441
446
|
(r(!0), n(V, null, G(d.value.chunks, (a) => (r(), n("rect", {
|
|
442
447
|
x: a.x,
|
|
443
448
|
y: a.y,
|
|
@@ -447,7 +452,7 @@ segments: [
|
|
|
447
452
|
"stroke-width": 1,
|
|
448
453
|
stroke: e.value.style.chart.backgroundColor,
|
|
449
454
|
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
450
|
-
}, null, 8,
|
|
455
|
+
}, null, 8, it))), 256)),
|
|
451
456
|
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (r(), n("rect", {
|
|
452
457
|
key: 0,
|
|
453
458
|
x: d.value.target.x,
|
|
@@ -458,8 +463,8 @@ segments: [
|
|
|
458
463
|
fill: e.value.style.chart.target.color,
|
|
459
464
|
stroke: e.value.style.chart.target.stroke,
|
|
460
465
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
461
|
-
}, null, 8,
|
|
462
|
-
|
|
466
|
+
}, null, 8, ct)) : u("", !0),
|
|
467
|
+
_("rect", {
|
|
463
468
|
x: l.value.left,
|
|
464
469
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
465
470
|
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
@@ -467,7 +472,7 @@ segments: [
|
|
|
467
472
|
fill: e.value.style.chart.valueBar.color,
|
|
468
473
|
stroke: e.value.style.chart.valueBar.stroke,
|
|
469
474
|
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
470
|
-
}, null, 8,
|
|
475
|
+
}, null, 8, vt),
|
|
471
476
|
e.value.style.chart.valueBar.label.show ? (r(), n("text", {
|
|
472
477
|
key: 1,
|
|
473
478
|
x: l.value.left + d.value.value.width,
|
|
@@ -478,14 +483,14 @@ segments: [
|
|
|
478
483
|
"text-anchor": "middle"
|
|
479
484
|
}, H(o(M)(
|
|
480
485
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
481
|
-
|
|
482
|
-
o(
|
|
486
|
+
h.value,
|
|
487
|
+
o(R)({
|
|
483
488
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
484
|
-
v:
|
|
489
|
+
v: h.value,
|
|
485
490
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
486
491
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
487
492
|
})
|
|
488
|
-
)), 9,
|
|
493
|
+
)), 9, ht)) : u("", !0),
|
|
489
494
|
e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (r(), n("rect", {
|
|
490
495
|
key: 2,
|
|
491
496
|
x: d.value.target.x,
|
|
@@ -497,8 +502,8 @@ segments: [
|
|
|
497
502
|
stroke: e.value.style.chart.target.stroke,
|
|
498
503
|
"stroke-width": e.value.style.chart.target.strokeWidth,
|
|
499
504
|
style: { transition: "x 0.3s ease-in-out" }
|
|
500
|
-
}, null, 8,
|
|
501
|
-
e.value.style.chart.segments.dataLabels.show ? (r(), n("g",
|
|
505
|
+
}, null, 8, dt)) : u("", !0),
|
|
506
|
+
e.value.style.chart.segments.dataLabels.show ? (r(), n("g", gt, [
|
|
502
507
|
(r(!0), n(V, null, G(d.value.ticks, (a) => (r(), n("text", {
|
|
503
508
|
x: a.x,
|
|
504
509
|
y: a.y,
|
|
@@ -509,15 +514,15 @@ segments: [
|
|
|
509
514
|
}, H(o(M)(
|
|
510
515
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
511
516
|
a.value,
|
|
512
|
-
o(
|
|
517
|
+
o(R)({
|
|
513
518
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
514
519
|
v: a.value,
|
|
515
520
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
516
521
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
517
522
|
})
|
|
518
|
-
)), 9,
|
|
519
|
-
])) :
|
|
520
|
-
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g",
|
|
523
|
+
)), 9, ft))), 256))
|
|
524
|
+
])) : u("", !0),
|
|
525
|
+
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", mt, [
|
|
521
526
|
(r(!0), n(V, null, G(d.value.ticks, (a) => (r(), n("line", {
|
|
522
527
|
x1: a.x,
|
|
523
528
|
x2: a.x,
|
|
@@ -526,46 +531,54 @@ segments: [
|
|
|
526
531
|
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
527
532
|
"stroke-width": 1,
|
|
528
533
|
"stroke-linecap": "round"
|
|
529
|
-
}, null, 8,
|
|
530
|
-
])) :
|
|
531
|
-
])) :
|
|
534
|
+
}, null, 8, yt))), 256))
|
|
535
|
+
])) : u("", !0)
|
|
536
|
+
])) : u("", !0),
|
|
532
537
|
m(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
533
|
-
], 14,
|
|
534
|
-
t.$slots.watermark ? (r(), n("div",
|
|
535
|
-
m(t.$slots, "watermark",
|
|
536
|
-
])) :
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
], 14, ot)),
|
|
539
|
+
t.$slots.watermark ? (r(), n("div", pt, [
|
|
540
|
+
m(t.$slots, "watermark", F(T({ isPrinting: o(re) || o(oe) })), void 0, !0)
|
|
541
|
+
])) : u("", !0),
|
|
542
|
+
_("div", {
|
|
543
|
+
id: `legend-bottom-${p.value}`
|
|
544
|
+
}, null, 8, bt),
|
|
545
|
+
J.value ? (r(), x(Me, {
|
|
546
|
+
key: 5,
|
|
547
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
540
548
|
}, [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
549
|
+
_("div", {
|
|
550
|
+
ref_key: "chartLegend",
|
|
551
|
+
ref: X
|
|
552
|
+
}, [
|
|
553
|
+
e.value.style.chart.legend.show ? (r(), x(Ye, {
|
|
554
|
+
key: 0,
|
|
555
|
+
clickable: !1,
|
|
556
|
+
legendSet: se.value,
|
|
557
|
+
config: Le.value
|
|
558
|
+
}, {
|
|
559
|
+
item: A(({ legend: a }) => [
|
|
560
|
+
o(k) ? u("", !0) : (r(), n("div", kt, [
|
|
561
|
+
_("span", wt, H(a.name) + ":", 1),
|
|
562
|
+
_("span", null, H(a.value), 1)
|
|
563
|
+
]))
|
|
564
|
+
]),
|
|
565
|
+
_: 1
|
|
566
|
+
}, 8, ["legendSet", "config"])) : u("", !0),
|
|
567
|
+
m(t.$slots, "legend", { legend: se.value }, void 0, !0)
|
|
568
|
+
], 512)
|
|
569
|
+
], 8, ["to"])) : u("", !0),
|
|
557
570
|
t.$slots.source ? (r(), n("div", {
|
|
558
|
-
key:
|
|
571
|
+
key: 6,
|
|
559
572
|
ref_key: "source",
|
|
560
573
|
ref: Y,
|
|
561
574
|
dir: "auto"
|
|
562
575
|
}, [
|
|
563
576
|
m(t.$slots, "source", {}, void 0, !0)
|
|
564
|
-
], 512)) :
|
|
565
|
-
o(
|
|
566
|
-
], 46,
|
|
577
|
+
], 512)) : u("", !0),
|
|
578
|
+
o(k) ? (r(), x(tt, { key: 7 })) : u("", !0)
|
|
579
|
+
], 46, lt));
|
|
567
580
|
}
|
|
568
|
-
},
|
|
581
|
+
}, Ht = /* @__PURE__ */ at(xt, [["__scopeId", "data-v-cf97848f"]]);
|
|
569
582
|
export {
|
|
570
|
-
|
|
583
|
+
Ht as default
|
|
571
584
|
};
|