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,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as U, computed as g, ref as h, toRefs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as me, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as U, computed as g, ref as h, toRefs as Lt, watch as ge, shallowRef as Ye, onMounted as Ze, onBeforeUnmount as Je, watchEffect as At, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as ee, normalizeClass as Ke, createBlock as T, createCommentVNode as b, createElementVNode as c, createSlots as Nt, withCtx as x, renderSlot as p, normalizeProps as te, guardReactiveProps as le, createVNode as St, withDirectives as W, Fragment as C, renderList as A, toDisplayString as _, vShow as q, Teleport as Mt, createTextVNode as Qe, nextTick as Xt } from "vue";
|
|
2
|
+
import { u as zt, c as et, t as Tt, b as It, o as Ot, f as tt, g as Ft, h as lt, D as Ht, i as w, k as H, X as at, s as st, l as j, j as Y, v as Pt, w as Dt } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as me, u as Gt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Et } from "./usePrinter-CZk2ISUm.js";
|
|
5
|
+
import { u as Rt, B as Bt } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as ot } from "./useNestedProp-BXhArS-K.js";
|
|
7
|
+
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as Wt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import qt from "./img-CBdOMFyn.js";
|
|
11
|
+
import jt from "./Title-CINHji0n.js";
|
|
12
|
+
import Yt from "./Legend-CevCqVZ5.js";
|
|
13
|
+
import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"], tl = { key: 1 }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = { key: 2 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = ["transform", "font-size", "fill"], rl = ["x", "y", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick"], ul = ["x", "y", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], il = ["x", "y", "font-size", "fill"], cl = ["transform", "font-size", "fill", "font-weight", "text-anchor"], vl = ["d", "stroke", "stroke-width", "stroke-dasharray"], dl = ["d", "stroke", "stroke-width", "stroke-dasharray"], hl = ["x", "y", "height", "width", "fill"], yl = ["transform", "fill", "font-size"], fl = ["id"], bl = ["stop-color"], gl = ["stop-color"], ml = ["stop-color"], pl = ["id"], xl = ["stop-color"], _l = ["stop-color"], kl = ["stop-color"], Cl = ["id"], wl = ["stop-color"], $l = ["stop-color"], Ll = ["stop-color"], Al = ["id"], Nl = ["stop-color"], Sl = ["stop-color"], Ml = ["stop-color"], Xl = ["id"], zl = ["stop-color"], Tl = ["stop-color"], Il = ["stop-color"], Ol = ["id"], Fl = ["stop-color"], Hl = ["stop-color"], Pl = ["id"], Dl = ["stop-color"], Gl = ["stop-color"], El = { key: 0 }, Rl = { key: 0 }, Bl = ["d", "fill"], Vl = { key: 1 }, Ul = ["x", "y", "height", "width", "fill"], Wl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], jl = { key: 7 }, Yl = ["x", "y", "fill", "font-size"], Zl = { key: 8 }, Jl = ["x", "y", "fill", "font-size"], Kl = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Ql = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, ea = ["id"], ta = ["xmlns", "height", "width"], la = ["fill"], aa = ["innerHTML"], sa = {
|
|
18
18
|
__name: "vue-ui-dumbbell",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,16 +31,16 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(nt, { expose: rt, emit: oa }) {
|
|
35
|
+
const ut = U(() => import("./vue-ui-accordion-s_m_NJzJ.js")), it = U(() => import("./DataTable-CWzb1j8d.js")), ct = U(() => import("./PenAndPaper-C_R9vJkU.js")), vt = U(() => import("./UserOptions-r0epwyXR.js")), dt = U(() => import("./PackageVersion-n4qokxnx.js")), { vue_ui_dumbbell: ht } = zt(), N = nt, Z = g({
|
|
36
36
|
get() {
|
|
37
37
|
return !!N.dataset && N.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(l) {
|
|
40
40
|
return l;
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
43
|
-
|
|
42
|
+
}), y = h(et()), pe = h(0), I = h(null), xe = h(null), _e = h(null), ke = h(null), Ce = h(null), we = h(0), $e = h(0), Le = h(0), Ae = h(!1), ae = h(null), se = h(null), J = h(null), oe = h(null), O = h(null), r = h(null), F = h(!1), e = h(ie()), { loading: ne, FINAL_DATASET: re, manualLoading: yt } = Rt({
|
|
43
|
+
...Lt(N),
|
|
44
44
|
FINAL_CONFIG: e,
|
|
45
45
|
prepareConfig: ie,
|
|
46
46
|
skeletonDataset: [
|
|
@@ -50,7 +50,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
50
50
|
{ name: "_", start: 5, end: 8 },
|
|
51
51
|
{ name: "_", start: 3, end: 5 }
|
|
52
52
|
],
|
|
53
|
-
skeletonConfig:
|
|
53
|
+
skeletonConfig: Tt({
|
|
54
54
|
defaultConfig: e.value,
|
|
55
55
|
userConfig: {
|
|
56
56
|
userOptions: { show: !1 },
|
|
@@ -92,72 +92,72 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
})
|
|
95
|
-
}), { userOptionsVisible: ue, setUserOptionsVisibility:
|
|
95
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: Ne, keepUserOptionState: Se } = Vt({ config: e.value }), { svgRef: Me } = Ut({ config: e.value.style.chart.title });
|
|
96
96
|
function ie() {
|
|
97
|
-
const l =
|
|
97
|
+
const l = ot({
|
|
98
98
|
userConfig: N.config,
|
|
99
|
-
defaultConfig:
|
|
99
|
+
defaultConfig: ht
|
|
100
100
|
});
|
|
101
101
|
return l.theme ? {
|
|
102
|
-
...
|
|
103
|
-
userConfig:
|
|
102
|
+
...ot({
|
|
103
|
+
userConfig: It.vue_ui_dumbbell[l.theme] || N.config,
|
|
104
104
|
defaultConfig: l
|
|
105
105
|
})
|
|
106
106
|
} : l;
|
|
107
107
|
}
|
|
108
108
|
ge(() => N.config, (l) => {
|
|
109
|
-
ne.value || (e.value = ie()), ue.value = !e.value.userOptions.showOnChartHover,
|
|
109
|
+
ne.value || (e.value = ie()), ue.value = !e.value.userOptions.showOnChartHover, ze(), we.value += 1, $e.value += 1, Le.value += 1, E.value = e.value.style.chart.rowHeight, R.value = e.value.style.chart.width, D.value.showTable = e.value.table.show;
|
|
110
110
|
}, { deep: !0 }), ge(() => re.value, (l) => {
|
|
111
|
-
Array.isArray(l) && l.length > 0 && (
|
|
111
|
+
Array.isArray(l) && l.length > 0 && (yt.value = !1), Ge(), Ee();
|
|
112
112
|
}, { deep: !0 });
|
|
113
|
-
const S =
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const S = Ye(null), P = Ye(null);
|
|
114
|
+
Ze(() => {
|
|
115
|
+
Ae.value = !0, ze();
|
|
116
116
|
});
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
if (
|
|
117
|
+
const Xe = g(() => !!e.value.debug);
|
|
118
|
+
function ze() {
|
|
119
|
+
if (Ot(N.dataset) ? tt({
|
|
120
120
|
componentName: "VueUiDumbbell",
|
|
121
121
|
type: "dataset",
|
|
122
|
-
debug:
|
|
122
|
+
debug: Xe.value
|
|
123
123
|
}) : N.dataset.forEach((l, s) => {
|
|
124
|
-
|
|
124
|
+
Ft({
|
|
125
125
|
datasetObject: l,
|
|
126
126
|
requiredAttributes: ["name", "start", "end"]
|
|
127
127
|
}).forEach((t) => {
|
|
128
|
-
Z.value = !1,
|
|
128
|
+
Z.value = !1, tt({
|
|
129
129
|
componentName: "VueUiDumbbell",
|
|
130
130
|
type: "datasetSerieAttribute",
|
|
131
131
|
property: t,
|
|
132
132
|
index: s,
|
|
133
|
-
debug:
|
|
133
|
+
debug: Xe.value
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
}), e.value.responsive) {
|
|
137
137
|
const l = me(() => {
|
|
138
|
-
const { width: s, height: t } =
|
|
139
|
-
chart:
|
|
138
|
+
const { width: s, height: t } = Gt({
|
|
139
|
+
chart: I.value,
|
|
140
140
|
title: e.value.style.chart.title.text ? xe.value : null,
|
|
141
141
|
legend: e.value.style.chart.legend.show ? _e.value : null,
|
|
142
142
|
source: ke.value,
|
|
143
143
|
noTitle: Ce.value
|
|
144
144
|
}), a = e.value.style.chart.title.text ? 24 : 0, u = e.value.style.chart.legend.show ? 24 : 0;
|
|
145
145
|
requestAnimationFrame(async () => {
|
|
146
|
-
R.value = Math.max(0.1, s), E.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / re.value.length),
|
|
146
|
+
R.value = Math.max(0.1, s), E.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / re.value.length), qe();
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect()), S.value = new ResizeObserver(l), P.value =
|
|
149
|
+
S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect()), S.value = new ResizeObserver(l), P.value = I.value.parentNode, S.value.observe(P.value);
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
qe();
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
Je(() => {
|
|
154
154
|
L.value != null && (cancelAnimationFrame(L.value), L.value = null), S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect());
|
|
155
155
|
});
|
|
156
|
-
const { isPrinting:
|
|
157
|
-
elementId: `dumbbell_${
|
|
156
|
+
const { isPrinting: Te, isImaging: Ie, generatePdf: Oe, generateImage: Fe } = Et({
|
|
157
|
+
elementId: `dumbbell_${y.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
159
159
|
options: e.value.userOptions.print
|
|
160
|
-
}),
|
|
160
|
+
}), ft = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = h({
|
|
161
161
|
showTable: e.value.table.show
|
|
162
162
|
});
|
|
163
163
|
ge(e, () => {
|
|
@@ -167,14 +167,14 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
167
167
|
}, { immediate: !0 });
|
|
168
168
|
const G = g(() => re.value.map((l, s) => ({
|
|
169
169
|
...l,
|
|
170
|
-
start:
|
|
171
|
-
end:
|
|
172
|
-
id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${
|
|
173
|
-
}))),
|
|
174
|
-
const l = e.value.style.chart.grid, s = G.value.flatMap((
|
|
170
|
+
start: lt(l.start),
|
|
171
|
+
end: lt(l.end),
|
|
172
|
+
id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${et()}`
|
|
173
|
+
}))), He = g(() => {
|
|
174
|
+
const l = e.value.style.chart.grid, s = G.value.flatMap((f) => [f.start, f.end]).map((f) => Number(f)).filter((f) => Number.isFinite(f)), t = s.length ? Math.min(...s) : 0, a = s.length ? Math.max(...s) : 0, u = l.scaleMin ?? Math.min(t, 0), d = l.scaleMax ?? a;
|
|
175
175
|
return { min: u, max: d };
|
|
176
|
-
}), $ = g(() =>
|
|
177
|
-
function
|
|
176
|
+
}), $ = g(() => Ht(He.value.min, He.value.max, e.value.style.chart.grid.scaleSteps)), E = h(e.value.style.chart.rowHeight), R = h(e.value.style.chart.width);
|
|
177
|
+
function bt() {
|
|
178
178
|
let l = 0;
|
|
179
179
|
se.value && (l = Array.from(se.value.querySelectorAll("text")).reduce((a, u) => {
|
|
180
180
|
const d = u.getComputedTextLength();
|
|
@@ -183,42 +183,42 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
183
183
|
const s = ae.value ? ae.value.getBoundingClientRect().width : 0;
|
|
184
184
|
return l + s + (s ? 24 + e.value.style.chart.labels.axis.yLabelOffsetX : 0);
|
|
185
185
|
}
|
|
186
|
-
const ce = h(0),
|
|
186
|
+
const ce = h(0), gt = me((l) => {
|
|
187
187
|
ce.value = l;
|
|
188
188
|
}, 100);
|
|
189
|
-
|
|
189
|
+
At((l) => {
|
|
190
190
|
const s = J.value;
|
|
191
191
|
if (!s) return;
|
|
192
192
|
const t = new ResizeObserver((a) => {
|
|
193
|
-
|
|
193
|
+
gt(a[0].contentRect.height);
|
|
194
194
|
});
|
|
195
195
|
t.observe(s), l(() => t.disconnect());
|
|
196
|
-
}),
|
|
196
|
+
}), Je(() => {
|
|
197
197
|
ce.value = 0;
|
|
198
198
|
});
|
|
199
|
-
const
|
|
200
|
-
|
|
199
|
+
const Pe = g(() => {
|
|
200
|
+
F.value;
|
|
201
201
|
let l = 0;
|
|
202
202
|
oe.value && (l = oe.value.getBBox().height);
|
|
203
203
|
let s = 0;
|
|
204
204
|
return J.value && (s = ce.value), l + s;
|
|
205
205
|
}), ve = g(() => G.value.length);
|
|
206
|
-
function
|
|
207
|
-
const a = Number(l), u = Number(s.min), d = Number(s.max),
|
|
208
|
-
if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(
|
|
206
|
+
function De(l, s, t) {
|
|
207
|
+
const a = Number(l), u = Number(s.min), d = Number(s.max), f = Number(t.width);
|
|
208
|
+
if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(f))
|
|
209
209
|
return t.left;
|
|
210
210
|
const m = d - u;
|
|
211
|
-
return m <= 0 ? t.left : t.left + (a - u) / m *
|
|
211
|
+
return m <= 0 ? t.left : t.left + (a - u) / m * f;
|
|
212
212
|
}
|
|
213
213
|
const o = g(() => {
|
|
214
|
-
|
|
215
|
-
const l =
|
|
214
|
+
F.value;
|
|
215
|
+
const l = bt(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = E.value * ve.value - Pe.value - s.top - s.bottom - t, u = a / ve.value, d = E.value * ve.value, f = R.value - l - s.left - s.right, m = $.value.ticks.length * (f / $.value.ticks.length);
|
|
216
216
|
return {
|
|
217
217
|
left: e.value.style.chart.padding.left + l,
|
|
218
218
|
right: R.value - e.value.style.chart.padding.right,
|
|
219
219
|
top: e.value.style.chart.padding.top,
|
|
220
|
-
bottom: d - e.value.style.chart.padding.bottom -
|
|
221
|
-
width:
|
|
220
|
+
bottom: d - e.value.style.chart.padding.bottom - Pe.value - t,
|
|
221
|
+
width: f,
|
|
222
222
|
height: a,
|
|
223
223
|
rowHeight: u,
|
|
224
224
|
absoluteHeight: d,
|
|
@@ -228,17 +228,17 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
228
228
|
get() {
|
|
229
229
|
const l = o.value, s = $.value;
|
|
230
230
|
return B.value.map((t, a) => {
|
|
231
|
-
const u =
|
|
231
|
+
const u = De(t.start, s, l), d = De(t.endVal, s, l), f = u + (d - u) / 2, m = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end > t.start, z = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end < t.start, je = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end === t.start || [null, void 0].includes(t.start) || [null, void 0].includes(t.end), $t = m ? e.value.style.chart.plots.evaluationColors.positive : z ? e.value.style.chart.plots.evaluationColors.negative : e.value.style.chart.plots.evaluationColors.neutral;
|
|
232
232
|
return {
|
|
233
233
|
...t,
|
|
234
234
|
isPositive: m,
|
|
235
235
|
isNegative: z,
|
|
236
|
-
isNeutral:
|
|
237
|
-
evaluationColor:
|
|
238
|
-
evaluationGrad: `url(#${m ? "positive" : z ? "negative" : "neutral"}_grad_${
|
|
236
|
+
isNeutral: je,
|
|
237
|
+
evaluationColor: $t,
|
|
238
|
+
evaluationGrad: `url(#${m ? "positive" : z ? "negative" : "neutral"}_grad_${y.value})`,
|
|
239
239
|
startX: u,
|
|
240
240
|
endX: d,
|
|
241
|
-
centerX:
|
|
241
|
+
centerX: f,
|
|
242
242
|
y: l.top + a * l.rowHeight + l.rowHeight / 2
|
|
243
243
|
};
|
|
244
244
|
});
|
|
@@ -247,7 +247,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
247
247
|
B.value = l;
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
function
|
|
250
|
+
function Ge() {
|
|
251
251
|
B.value = G.value.map((l) => {
|
|
252
252
|
const s = Number(l.start);
|
|
253
253
|
return {
|
|
@@ -257,11 +257,11 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
const L = h(null);
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
Ze(() => {
|
|
261
|
+
Ee();
|
|
262
262
|
});
|
|
263
|
-
function
|
|
264
|
-
if (L.value != null && (cancelAnimationFrame(L.value), L.value = null),
|
|
263
|
+
function Ee() {
|
|
264
|
+
if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), Ge(), !e.value.useAnimation) {
|
|
265
265
|
k.value = B.value.map((a) => {
|
|
266
266
|
const u = Number(a.end);
|
|
267
267
|
return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
|
|
@@ -269,25 +269,25 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
271
|
const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s = G.value.map((a) => {
|
|
272
|
-
const u = Number(a.start), d = Number(a.end),
|
|
273
|
-
return (Number.isFinite(d) ? d :
|
|
272
|
+
const u = Number(a.start), d = Number(a.end), f = Number.isFinite(u) ? u : 0;
|
|
273
|
+
return (Number.isFinite(d) ? d : f) - f;
|
|
274
274
|
}), t = () => {
|
|
275
275
|
let a = !0;
|
|
276
276
|
k.value = B.value.map((u, d) => {
|
|
277
|
-
const
|
|
278
|
-
return z !==
|
|
277
|
+
const f = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, m = u.endVal + s[d] * l, z = s[d] >= 0 ? Math.min(m, f) : Math.max(m, f);
|
|
278
|
+
return z !== f && (a = !1), { ...u, endVal: z };
|
|
279
279
|
}), a ? L.value = null : L.value = requestAnimationFrame(t);
|
|
280
280
|
};
|
|
281
281
|
L.value = requestAnimationFrame(t);
|
|
282
282
|
}
|
|
283
|
-
const
|
|
284
|
-
{ name: e.value.style.chart.legend.labelNegative, color: e.value.style.chart.plots.gradient.show ? `url(#negative_grad_${
|
|
285
|
-
{ name: e.value.style.chart.legend.labelNeutral, color: e.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${
|
|
286
|
-
{ name: e.value.style.chart.legend.labelPositive, color: e.value.style.chart.plots.gradient.show ? `url(#positive_grad_${
|
|
283
|
+
const Re = g(() => e.value.style.chart.plots.evaluationColors.enable ? [
|
|
284
|
+
{ name: e.value.style.chart.legend.labelNegative, color: e.value.style.chart.plots.gradient.show ? `url(#negative_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.negative },
|
|
285
|
+
{ name: e.value.style.chart.legend.labelNeutral, color: e.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.neutral },
|
|
286
|
+
{ name: e.value.style.chart.legend.labelPositive, color: e.value.style.chart.plots.gradient.show ? `url(#positive_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.positive }
|
|
287
287
|
] : [
|
|
288
|
-
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${
|
|
289
|
-
{ name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${
|
|
290
|
-
]),
|
|
288
|
+
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor },
|
|
289
|
+
{ name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor }
|
|
290
|
+
]), mt = g(() => ({
|
|
291
291
|
cy: "donut-div-legend",
|
|
292
292
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
293
293
|
color: e.value.style.chart.legend.color,
|
|
@@ -310,7 +310,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
310
310
|
e.value.table.columnNames.end,
|
|
311
311
|
e.value.table.columnNames.progression
|
|
312
312
|
], s = X.value.head.map((u, d) => {
|
|
313
|
-
const
|
|
313
|
+
const f = w({
|
|
314
314
|
p: e.value.style.chart.labels.prefix,
|
|
315
315
|
v: X.value.body[d].start,
|
|
316
316
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -327,7 +327,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
327
327
|
});
|
|
328
328
|
return [
|
|
329
329
|
{ name: u.name },
|
|
330
|
-
|
|
330
|
+
f,
|
|
331
331
|
m,
|
|
332
332
|
z
|
|
333
333
|
];
|
|
@@ -356,31 +356,31 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
356
356
|
config: t
|
|
357
357
|
};
|
|
358
358
|
});
|
|
359
|
-
function
|
|
360
|
-
|
|
359
|
+
function Be(l = null) {
|
|
360
|
+
Xt(() => {
|
|
361
361
|
const s = X.value.head.map((u, d) => [[
|
|
362
362
|
u.name
|
|
363
|
-
], [X.value.body[d].start], [X.value.body[d].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(s), a =
|
|
364
|
-
l ? l(a) :
|
|
363
|
+
], [X.value.body[d].start], [X.value.body[d].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(s), a = Pt(t);
|
|
364
|
+
l ? l(a) : Dt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
const V = h(!1);
|
|
368
|
-
function
|
|
368
|
+
function Ve(l) {
|
|
369
369
|
V.value = l, pe.value += 1;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function pt() {
|
|
372
372
|
return G.value;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ue() {
|
|
375
375
|
D.value.showTable = !D.value.showTable;
|
|
376
376
|
}
|
|
377
377
|
const Q = h(!1);
|
|
378
378
|
function de() {
|
|
379
379
|
Q.value = !Q.value;
|
|
380
380
|
}
|
|
381
|
-
async function
|
|
382
|
-
if (!
|
|
383
|
-
const { width: s, height: t } =
|
|
381
|
+
async function xt({ scale: l = 2 } = {}) {
|
|
382
|
+
if (!I.value) return;
|
|
383
|
+
const { width: s, height: t } = I.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await qt({ domElement: I.value, base64: !0, img: !0, scale: l });
|
|
384
384
|
return {
|
|
385
385
|
imageUri: u,
|
|
386
386
|
base64: d,
|
|
@@ -390,11 +390,11 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
390
390
|
aspectRatio: a
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
const
|
|
394
|
-
|
|
393
|
+
const We = g(() => $.value.ticks), _t = g(() => ({ start: 0, end: We.value.length }));
|
|
394
|
+
Wt({
|
|
395
395
|
timeLabelsEls: J,
|
|
396
|
-
timeLabels:
|
|
397
|
-
slicer:
|
|
396
|
+
timeLabels: We,
|
|
397
|
+
slicer: _t,
|
|
398
398
|
configRef: e,
|
|
399
399
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
400
400
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
@@ -404,42 +404,42 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
404
404
|
targetClass: ".vue-ui-dumbbell-scale-label",
|
|
405
405
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
406
406
|
});
|
|
407
|
-
function
|
|
407
|
+
function kt({
|
|
408
408
|
rowHeight: l,
|
|
409
409
|
fontSize: s,
|
|
410
410
|
showProgression: t
|
|
411
411
|
}) {
|
|
412
412
|
if (!t) return !1;
|
|
413
|
-
const a = l / 3, u = l / 1.3, d = Math.abs(u - a),
|
|
414
|
-
return d <
|
|
413
|
+
const a = l / 3, u = l / 1.3, d = Math.abs(u - a), f = s * 1.2;
|
|
414
|
+
return d < f;
|
|
415
415
|
}
|
|
416
|
-
const
|
|
416
|
+
const Ct = /* @__PURE__ */ (() => {
|
|
417
417
|
let l = null, s = 0;
|
|
418
418
|
const t = 1;
|
|
419
419
|
return (a) => {
|
|
420
|
-
if (a ===
|
|
420
|
+
if (a === F.value) {
|
|
421
421
|
l = null, s = 0;
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
|
-
l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (
|
|
424
|
+
l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (F.value = a, l = null, s = 0));
|
|
425
425
|
};
|
|
426
|
-
})(),
|
|
426
|
+
})(), qe = me(() => {
|
|
427
427
|
requestAnimationFrame(() => {
|
|
428
428
|
requestAnimationFrame(() => {
|
|
429
|
-
const l =
|
|
429
|
+
const l = kt({
|
|
430
430
|
rowHeight: o.value.rowHeight,
|
|
431
431
|
fontSize: e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
432
432
|
showProgression: e.value.style.chart.labels.yAxisLabels.showProgression
|
|
433
433
|
});
|
|
434
|
-
|
|
434
|
+
Ct(l);
|
|
435
435
|
});
|
|
436
436
|
});
|
|
437
437
|
}, 100);
|
|
438
438
|
function he({ datapoint: l, seriesIndex: s }) {
|
|
439
|
-
|
|
439
|
+
O.value = s, r.value = l, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
|
|
440
440
|
}
|
|
441
441
|
function ye({ datapoint: l, seriesIndex: s }) {
|
|
442
|
-
|
|
442
|
+
O.value = null, r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
|
|
443
443
|
}
|
|
444
444
|
function fe({ datapoint: l, seriesIndex: s }) {
|
|
445
445
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
@@ -448,7 +448,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
448
448
|
if (r.value === null) return 0;
|
|
449
449
|
const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
|
|
450
450
|
return l && s ? Math.min(r.value.startX, r.value.endX) + Math.abs(r.value.startX - r.value.endX) / 2 : l && !s ? r.value.startX : s && !l ? r.value.endX : null;
|
|
451
|
-
}),
|
|
451
|
+
}), wt = g(() => {
|
|
452
452
|
if (r.value === null) return "";
|
|
453
453
|
const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
|
|
454
454
|
let t = "", a = "";
|
|
@@ -461,7 +461,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
461
461
|
s: e.value.style.chart.labels.suffix,
|
|
462
462
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
463
463
|
}),
|
|
464
|
-
{ datapoint: r.value, seriesIndex:
|
|
464
|
+
{ datapoint: r.value, seriesIndex: O.value }
|
|
465
465
|
)), s && (a = H(
|
|
466
466
|
e.value.style.chart.labels.formatter,
|
|
467
467
|
r.value.end,
|
|
@@ -471,49 +471,49 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
471
471
|
s: e.value.style.chart.labels.suffix,
|
|
472
472
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
473
473
|
}),
|
|
474
|
-
{ datapoint: r.value, seriesIndex:
|
|
474
|
+
{ datapoint: r.value, seriesIndex: O.value }
|
|
475
475
|
)), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
|
|
476
476
|
});
|
|
477
|
-
return
|
|
478
|
-
getData:
|
|
479
|
-
getImage:
|
|
480
|
-
generatePdf:
|
|
481
|
-
generateCsv:
|
|
482
|
-
generateImage:
|
|
483
|
-
toggleTable:
|
|
477
|
+
return rt({
|
|
478
|
+
getData: pt,
|
|
479
|
+
getImage: xt,
|
|
480
|
+
generatePdf: Oe,
|
|
481
|
+
generateCsv: Be,
|
|
482
|
+
generateImage: Fe,
|
|
483
|
+
toggleTable: Ue,
|
|
484
484
|
toggleAnnotator: de,
|
|
485
|
-
toggleFullscreen:
|
|
486
|
-
}), (l, s) => (n(),
|
|
485
|
+
toggleFullscreen: Ve
|
|
486
|
+
}), (l, s) => (n(), v("div", {
|
|
487
487
|
ref_key: "dumbbellChart",
|
|
488
|
-
ref:
|
|
489
|
-
class:
|
|
488
|
+
ref: I,
|
|
489
|
+
class: Ke(`vue-ui-dumbbell ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
490
490
|
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
491
|
-
id: `dumbbell_${
|
|
492
|
-
onMouseenter: s[1] || (s[1] = () => i(
|
|
493
|
-
onMouseleave: s[2] || (s[2] = () => i(
|
|
491
|
+
id: `dumbbell_${y.value}`,
|
|
492
|
+
onMouseenter: s[1] || (s[1] = () => i(Ne)(!0)),
|
|
493
|
+
onMouseleave: s[2] || (s[2] = () => i(Ne)(!1))
|
|
494
494
|
}, [
|
|
495
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
495
|
+
e.value.userOptions.buttons.annotator ? (n(), T(i(ct), {
|
|
496
496
|
key: 0,
|
|
497
|
-
svgRef: i(
|
|
497
|
+
svgRef: i(Me),
|
|
498
498
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
499
499
|
color: e.value.style.chart.color,
|
|
500
500
|
active: Q.value,
|
|
501
501
|
onClose: de
|
|
502
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
503
|
-
|
|
502
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
503
|
+
ft.value ? (n(), v("div", {
|
|
504
504
|
key: 1,
|
|
505
505
|
ref_key: "noTitle",
|
|
506
506
|
ref: Ce,
|
|
507
507
|
class: "vue-data-ui-no-title-space",
|
|
508
508
|
style: "height:36px; width: 100%;background:transparent"
|
|
509
|
-
}, null, 512)) :
|
|
510
|
-
e.value.style.chart.title.text ? (n(),
|
|
509
|
+
}, null, 512)) : b("", !0),
|
|
510
|
+
e.value.style.chart.title.text ? (n(), v("div", {
|
|
511
511
|
key: 2,
|
|
512
512
|
ref_key: "chartTitle",
|
|
513
513
|
ref: xe,
|
|
514
514
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
515
515
|
}, [
|
|
516
|
-
(n(),
|
|
516
|
+
(n(), T(jt, {
|
|
517
517
|
key: `title_${we.value}`,
|
|
518
518
|
config: {
|
|
519
519
|
title: {
|
|
@@ -526,15 +526,18 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
}, null, 8, ["config"]))
|
|
529
|
-
], 512)) :
|
|
530
|
-
|
|
529
|
+
], 512)) : b("", !0),
|
|
530
|
+
c("div", {
|
|
531
|
+
id: `legend-top-${y.value}`
|
|
532
|
+
}, null, 8, Kt),
|
|
533
|
+
e.value.userOptions.show && Z.value && (i(Se) || i(ue)) ? (n(), T(i(vt), {
|
|
531
534
|
ref: "details",
|
|
532
535
|
key: `user_option_${pe.value}`,
|
|
533
536
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
534
537
|
color: e.value.style.chart.color,
|
|
535
|
-
isPrinting: i(
|
|
536
|
-
isImaging: i(
|
|
537
|
-
uid:
|
|
538
|
+
isPrinting: i(Te),
|
|
539
|
+
isImaging: i(Ie),
|
|
540
|
+
uid: y.value,
|
|
538
541
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
539
542
|
hasXls: e.value.userOptions.buttons.csv,
|
|
540
543
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -542,22 +545,22 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
542
545
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
543
546
|
isFullscreen: V.value,
|
|
544
547
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
545
|
-
chartElement:
|
|
548
|
+
chartElement: I.value,
|
|
546
549
|
position: e.value.userOptions.position,
|
|
547
550
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
548
551
|
isAnnotation: Q.value,
|
|
549
552
|
callbacks: e.value.userOptions.callbacks,
|
|
550
553
|
printScale: e.value.userOptions.print.scale,
|
|
551
|
-
onToggleFullscreen:
|
|
552
|
-
onGeneratePdf: i(
|
|
553
|
-
onGenerateCsv:
|
|
554
|
-
onGenerateImage: i(
|
|
555
|
-
onToggleTable:
|
|
554
|
+
onToggleFullscreen: Ve,
|
|
555
|
+
onGeneratePdf: i(Oe),
|
|
556
|
+
onGenerateCsv: Be,
|
|
557
|
+
onGenerateImage: i(Fe),
|
|
558
|
+
onToggleTable: Ue,
|
|
556
559
|
onToggleAnnotator: de,
|
|
557
560
|
style: ee({
|
|
558
|
-
visibility: i(
|
|
561
|
+
visibility: i(Se) ? i(ue) ? "visible" : "hidden" : "visible"
|
|
559
562
|
})
|
|
560
|
-
},
|
|
563
|
+
}, Nt({ _: 2 }, [
|
|
561
564
|
l.$slots.menuIcon ? {
|
|
562
565
|
name: "menuIcon",
|
|
563
566
|
fn: x(({ isOpen: t, color: a }) => [
|
|
@@ -607,17 +610,17 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
607
610
|
]),
|
|
608
611
|
key: "6"
|
|
609
612
|
} : void 0
|
|
610
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
611
|
-
(n(),
|
|
613
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
614
|
+
(n(), v("svg", {
|
|
612
615
|
ref_key: "svgRef",
|
|
613
|
-
ref:
|
|
614
|
-
xmlns: i(
|
|
615
|
-
class:
|
|
616
|
+
ref: Me,
|
|
617
|
+
xmlns: i(at),
|
|
618
|
+
class: Ke({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
616
619
|
viewBox: `0 0 ${R.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
|
|
617
620
|
style: ee(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
618
621
|
}, [
|
|
619
|
-
|
|
620
|
-
l.$slots["chart-background"] ? (n(),
|
|
622
|
+
St(i(dt)),
|
|
623
|
+
l.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
621
624
|
key: 0,
|
|
622
625
|
x: o.value.left,
|
|
623
626
|
y: o.value.top,
|
|
@@ -628,9 +631,9 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
628
631
|
}
|
|
629
632
|
}, [
|
|
630
633
|
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
631
|
-
], 8,
|
|
632
|
-
e.value.style.chart.grid.verticalGrid.show ? (n(),
|
|
633
|
-
(n(!0),
|
|
634
|
+
], 8, el)) : b("", !0),
|
|
635
|
+
e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", tl, [
|
|
636
|
+
(n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("line", {
|
|
634
637
|
x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
635
638
|
x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
636
639
|
y1: o.value.top,
|
|
@@ -638,10 +641,10 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
638
641
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
639
642
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
640
643
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
641
|
-
}, null, 8,
|
|
642
|
-
])) :
|
|
643
|
-
e.value.style.chart.grid.horizontalGrid.show ? (n(),
|
|
644
|
-
(n(!0),
|
|
644
|
+
}, null, 8, ll))), 256))
|
|
645
|
+
])) : b("", !0),
|
|
646
|
+
e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g", al, [
|
|
647
|
+
(n(!0), v(C, null, A(G.value, (t, a) => (n(), v("line", {
|
|
645
648
|
x1: o.value.left,
|
|
646
649
|
x2: o.value.right,
|
|
647
650
|
y1: o.value.top + a * o.value.rowHeight,
|
|
@@ -649,8 +652,8 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
649
652
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
650
653
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
651
654
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
652
|
-
}, null, 8,
|
|
653
|
-
|
|
655
|
+
}, null, 8, sl))), 256)),
|
|
656
|
+
c("line", {
|
|
654
657
|
x1: o.value.left,
|
|
655
658
|
x2: o.value.right,
|
|
656
659
|
y1: o.value.bottom,
|
|
@@ -658,9 +661,9 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
658
661
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
659
662
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
660
663
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
661
|
-
}, null, 8,
|
|
662
|
-
])) :
|
|
663
|
-
e.value.style.chart.labels.axis.yLabel ? (n(),
|
|
664
|
+
}, null, 8, ol)
|
|
665
|
+
])) : b("", !0),
|
|
666
|
+
e.value.style.chart.labels.axis.yLabel ? (n(), v("text", {
|
|
664
667
|
key: 3,
|
|
665
668
|
ref_key: "yAxisLabel",
|
|
666
669
|
ref: ae,
|
|
@@ -668,17 +671,17 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
668
671
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
669
672
|
fill: e.value.style.chart.labels.axis.color,
|
|
670
673
|
"text-anchor": "middle"
|
|
671
|
-
}, _(e.value.style.chart.labels.axis.yLabel), 9,
|
|
672
|
-
e.value.style.chart.labels.yAxisLabels.show ? (n(),
|
|
674
|
+
}, _(e.value.style.chart.labels.axis.yLabel), 9, nl)) : b("", !0),
|
|
675
|
+
e.value.style.chart.labels.yAxisLabels.show ? (n(), v("g", {
|
|
673
676
|
key: 4,
|
|
674
677
|
ref_key: "serieLabels",
|
|
675
678
|
ref: se
|
|
676
679
|
}, [
|
|
677
|
-
(n(!0),
|
|
680
|
+
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("text", {
|
|
678
681
|
class: "vue-ui-dumbbell-serie-name",
|
|
679
682
|
key: `serieLabel_${t.id}_${a}`,
|
|
680
683
|
x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
681
|
-
y: o.value.top + a * o.value.rowHeight + (!e.value.style.chart.labels.yAxisLabels.showProgression ||
|
|
684
|
+
y: o.value.top + a * o.value.rowHeight + (!e.value.style.chart.labels.yAxisLabels.showProgression || F.value ? o.value.rowHeight / 2 : o.value.rowHeight / 3) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
682
685
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
683
686
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
684
687
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
@@ -686,7 +689,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
686
689
|
onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
|
|
687
690
|
onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
|
|
688
691
|
onClick: (u) => fe({ datapoint: t, seriesIndex: a })
|
|
689
|
-
}, _(t.name) + " " + _(
|
|
692
|
+
}, _(t.name) + " " + _(F.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(H)(
|
|
690
693
|
e.value.style.chart.labels.yAxisLabels.formatter,
|
|
691
694
|
100 * (t.end / t.start - 1),
|
|
692
695
|
i(w)({
|
|
@@ -695,8 +698,8 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
695
698
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
696
699
|
}),
|
|
697
700
|
{ datapoint: t }
|
|
698
|
-
)})` : ""), 41,
|
|
699
|
-
e.value.style.chart.labels.yAxisLabels.showProgression && !
|
|
701
|
+
)})` : ""), 41, rl))), 128)),
|
|
702
|
+
e.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (n(!0), v(C, { key: 0 }, A(k.value, (t, a) => (n(), v("text", {
|
|
700
703
|
class: "vue-ui-dumbbell-serie-value",
|
|
701
704
|
x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
702
705
|
y: o.value.top + a * o.value.rowHeight + o.value.rowHeight / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -715,9 +718,9 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
715
718
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
716
719
|
}),
|
|
717
720
|
{ datapoint: t }
|
|
718
|
-
)), 41,
|
|
719
|
-
], 512)) :
|
|
720
|
-
e.value.style.chart.labels.axis.xLabel ? (n(),
|
|
721
|
+
)), 41, ul))), 256)) : b("", !0)
|
|
722
|
+
], 512)) : b("", !0),
|
|
723
|
+
e.value.style.chart.labels.axis.xLabel ? (n(), v("text", {
|
|
721
724
|
key: 5,
|
|
722
725
|
ref_key: "xAxisLabel",
|
|
723
726
|
ref: oe,
|
|
@@ -726,13 +729,13 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
726
729
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
727
730
|
fill: e.value.style.chart.labels.axis.color,
|
|
728
731
|
"text-anchor": "middle"
|
|
729
|
-
}, _(e.value.style.chart.labels.axis.xLabel), 9,
|
|
730
|
-
e.value.style.chart.labels.xAxisLabels.show ? (n(),
|
|
732
|
+
}, _(e.value.style.chart.labels.axis.xLabel), 9, il)) : b("", !0),
|
|
733
|
+
e.value.style.chart.labels.xAxisLabels.show ? (n(), v("g", {
|
|
731
734
|
key: 6,
|
|
732
735
|
ref_key: "scaleLabels",
|
|
733
736
|
ref: J
|
|
734
737
|
}, [
|
|
735
|
-
(n(!0),
|
|
738
|
+
(n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("text", {
|
|
736
739
|
class: "vue-ui-dumbbell-scale-label",
|
|
737
740
|
key: `tick_${a}`,
|
|
738
741
|
transform: `translate(${o.value.left + a * (o.value.width / ($.value.ticks.length - 1))}, ${o.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
@@ -750,176 +753,176 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
750
753
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
751
754
|
}),
|
|
752
755
|
{ datapoint: t, seriesIndex: a }
|
|
753
|
-
)), 9,
|
|
754
|
-
], 512)) :
|
|
755
|
-
W(
|
|
756
|
-
W(
|
|
756
|
+
)), 9, cl))), 128))
|
|
757
|
+
], 512)) : b("", !0),
|
|
758
|
+
W(c("g", null, [
|
|
759
|
+
W(c("path", {
|
|
757
760
|
d: `M ${r.value ? r.value.startX : o.value.left},${o.value.top} ${r.value ? r.value.startX : o.value.left},${o.value.bottom}`,
|
|
758
761
|
stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.startColor : "transparent",
|
|
759
762
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
760
763
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
761
764
|
style: { transition: "all 0.3s ease-in-out" }
|
|
762
|
-
}, null, 8,
|
|
765
|
+
}, null, 8, vl), [
|
|
763
766
|
[q, r.value !== null && ![null, void 0].includes(r.value.start)]
|
|
764
767
|
]),
|
|
765
|
-
W(
|
|
768
|
+
W(c("path", {
|
|
766
769
|
d: `M ${r.value ? r.value.endX : o.value.left},${o.value.top} ${r.value ? r.value.endX : o.value.left},${o.value.bottom}`,
|
|
767
770
|
stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.endColor : "transparent",
|
|
768
771
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
769
772
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
770
773
|
style: { transition: "all 0.3s ease-in-out" }
|
|
771
|
-
}, null, 8,
|
|
774
|
+
}, null, 8, dl), [
|
|
772
775
|
[q, r.value !== null && ![null, void 0].includes(r.value.end)]
|
|
773
776
|
]),
|
|
774
|
-
W(
|
|
777
|
+
W(c("rect", {
|
|
775
778
|
x: r.value ? Math.min(r.value.startX, r.value.endX) : o.value.left,
|
|
776
779
|
y: o.value.top,
|
|
777
780
|
height: Math.max(0.1, o.value.height),
|
|
778
781
|
width: r.value ? Math.max(0.1, Math.abs(r.value.endX - r.value.startX)) : 0,
|
|
779
|
-
fill: r.value ? i(
|
|
782
|
+
fill: r.value ? i(st)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
|
|
780
783
|
style: { transition: "all 0.3s ease-in-out" }
|
|
781
|
-
}, null, 8,
|
|
784
|
+
}, null, 8, hl), [
|
|
782
785
|
[q, e.value.style.chart.comparisonLines.showRect && r.value !== null && ![null, void 0].includes(r.value.start) && ![null, void 0].includes(r.value.end)]
|
|
783
786
|
]),
|
|
784
|
-
W(
|
|
787
|
+
W(c("text", {
|
|
785
788
|
transform: `translate(${be.value == null ? 0 : be.value}, ${o.value.top - 6})`,
|
|
786
789
|
fill: e.value.style.chart.comparisonLines.labelColor,
|
|
787
790
|
"font-size": e.value.style.chart.comparisonLines.labelFontSize,
|
|
788
791
|
"text-anchor": "middle",
|
|
789
792
|
style: { transition: "all 0.3s ease-in-out" }
|
|
790
|
-
}, _(
|
|
793
|
+
}, _(wt.value), 9, yl), [
|
|
791
794
|
[q, r.value !== null && be.value !== null && e.value.style.chart.comparisonLines.showLabel]
|
|
792
795
|
])
|
|
793
796
|
], 512), [
|
|
794
|
-
[q, e.value.style.chart.comparisonLines.show &&
|
|
797
|
+
[q, e.value.style.chart.comparisonLines.show && O.value !== null]
|
|
795
798
|
]),
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
id: `start_grad_${
|
|
799
|
+
c("defs", null, [
|
|
800
|
+
c("radialGradient", {
|
|
801
|
+
id: `start_grad_${y.value}`,
|
|
799
802
|
fy: "30%"
|
|
800
803
|
}, [
|
|
801
|
-
|
|
804
|
+
c("stop", {
|
|
802
805
|
offset: "10%",
|
|
803
806
|
"stop-color": i(j)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
804
|
-
}, null, 8,
|
|
805
|
-
|
|
807
|
+
}, null, 8, bl),
|
|
808
|
+
c("stop", {
|
|
806
809
|
offset: "90%",
|
|
807
810
|
"stop-color": i(Y)(e.value.style.chart.plots.startColor, 0.1)
|
|
808
|
-
}, null, 8,
|
|
809
|
-
|
|
811
|
+
}, null, 8, gl),
|
|
812
|
+
c("stop", {
|
|
810
813
|
offset: "100%",
|
|
811
814
|
"stop-color": e.value.style.chart.plots.startColor
|
|
812
|
-
}, null, 8,
|
|
813
|
-
], 8,
|
|
814
|
-
|
|
815
|
-
id: `end_grad_${
|
|
815
|
+
}, null, 8, ml)
|
|
816
|
+
], 8, fl),
|
|
817
|
+
c("radialGradient", {
|
|
818
|
+
id: `end_grad_${y.value}`,
|
|
816
819
|
fy: "30%"
|
|
817
820
|
}, [
|
|
818
|
-
|
|
821
|
+
c("stop", {
|
|
819
822
|
offset: "10%",
|
|
820
823
|
"stop-color": i(j)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
821
|
-
}, null, 8,
|
|
822
|
-
|
|
824
|
+
}, null, 8, xl),
|
|
825
|
+
c("stop", {
|
|
823
826
|
offset: "90%",
|
|
824
827
|
"stop-color": i(Y)(e.value.style.chart.plots.endColor, 0.1)
|
|
825
|
-
}, null, 8,
|
|
826
|
-
|
|
828
|
+
}, null, 8, _l),
|
|
829
|
+
c("stop", {
|
|
827
830
|
offset: "100%",
|
|
828
831
|
"stop-color": e.value.style.chart.plots.endColor
|
|
829
|
-
}, null, 8,
|
|
830
|
-
], 8,
|
|
831
|
-
|
|
832
|
-
id: `positive_grad_${
|
|
832
|
+
}, null, 8, kl)
|
|
833
|
+
], 8, pl),
|
|
834
|
+
c("radialGradient", {
|
|
835
|
+
id: `positive_grad_${y.value}`,
|
|
833
836
|
fy: "30%"
|
|
834
837
|
}, [
|
|
835
|
-
|
|
838
|
+
c("stop", {
|
|
836
839
|
offset: "10%",
|
|
837
840
|
"stop-color": i(j)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
|
|
838
|
-
}, null, 8,
|
|
839
|
-
|
|
841
|
+
}, null, 8, wl),
|
|
842
|
+
c("stop", {
|
|
840
843
|
offset: "90%",
|
|
841
844
|
"stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
|
|
842
|
-
}, null, 8,
|
|
843
|
-
|
|
845
|
+
}, null, 8, $l),
|
|
846
|
+
c("stop", {
|
|
844
847
|
offset: "100%",
|
|
845
848
|
"stop-color": e.value.style.chart.plots.evaluationColors.positive
|
|
846
|
-
}, null, 8,
|
|
847
|
-
], 8,
|
|
848
|
-
|
|
849
|
-
id: `negative_grad_${
|
|
849
|
+
}, null, 8, Ll)
|
|
850
|
+
], 8, Cl),
|
|
851
|
+
c("radialGradient", {
|
|
852
|
+
id: `negative_grad_${y.value}`,
|
|
850
853
|
fy: "30%"
|
|
851
854
|
}, [
|
|
852
|
-
|
|
855
|
+
c("stop", {
|
|
853
856
|
offset: "10%",
|
|
854
857
|
"stop-color": i(j)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
|
|
855
|
-
}, null, 8,
|
|
856
|
-
|
|
858
|
+
}, null, 8, Nl),
|
|
859
|
+
c("stop", {
|
|
857
860
|
offset: "90%",
|
|
858
861
|
"stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
|
|
859
|
-
}, null, 8,
|
|
860
|
-
|
|
862
|
+
}, null, 8, Sl),
|
|
863
|
+
c("stop", {
|
|
861
864
|
offset: "100%",
|
|
862
865
|
"stop-color": e.value.style.chart.plots.evaluationColors.negative
|
|
863
|
-
}, null, 8,
|
|
864
|
-
], 8,
|
|
865
|
-
|
|
866
|
-
id: `neutral_grad_${
|
|
866
|
+
}, null, 8, Ml)
|
|
867
|
+
], 8, Al),
|
|
868
|
+
c("radialGradient", {
|
|
869
|
+
id: `neutral_grad_${y.value}`,
|
|
867
870
|
fy: "30%"
|
|
868
871
|
}, [
|
|
869
|
-
|
|
872
|
+
c("stop", {
|
|
870
873
|
offset: "10%",
|
|
871
874
|
"stop-color": i(j)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
|
|
872
|
-
}, null, 8,
|
|
873
|
-
|
|
875
|
+
}, null, 8, zl),
|
|
876
|
+
c("stop", {
|
|
874
877
|
offset: "90%",
|
|
875
878
|
"stop-color": i(Y)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
|
|
876
|
-
}, null, 8,
|
|
877
|
-
|
|
879
|
+
}, null, 8, Tl),
|
|
880
|
+
c("stop", {
|
|
878
881
|
offset: "100%",
|
|
879
882
|
"stop-color": e.value.style.chart.plots.evaluationColors.neutral
|
|
880
|
-
}, null, 8,
|
|
881
|
-
], 8,
|
|
883
|
+
}, null, 8, Il)
|
|
884
|
+
], 8, Xl)
|
|
882
885
|
]),
|
|
883
|
-
(n(!0),
|
|
886
|
+
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
884
887
|
key: `plot_${a}_${t.id}`
|
|
885
888
|
}, [
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
id: `grad_pos_${
|
|
889
|
+
c("defs", null, [
|
|
890
|
+
c("linearGradient", {
|
|
891
|
+
id: `grad_pos_${y.value}`,
|
|
889
892
|
x1: "0%",
|
|
890
893
|
x2: "100%",
|
|
891
894
|
y1: "0%",
|
|
892
895
|
y2: "0%"
|
|
893
896
|
}, [
|
|
894
|
-
|
|
897
|
+
c("stop", {
|
|
895
898
|
offset: "0%",
|
|
896
899
|
"stop-color": e.value.style.chart.plots.startColor
|
|
897
|
-
}, null, 8,
|
|
898
|
-
|
|
900
|
+
}, null, 8, Fl),
|
|
901
|
+
c("stop", {
|
|
899
902
|
offset: "100%",
|
|
900
903
|
"stop-color": e.value.style.chart.plots.endColor
|
|
901
|
-
}, null, 8,
|
|
902
|
-
], 8,
|
|
903
|
-
|
|
904
|
-
id: `grad_neg_${
|
|
904
|
+
}, null, 8, Hl)
|
|
905
|
+
], 8, Ol),
|
|
906
|
+
c("linearGradient", {
|
|
907
|
+
id: `grad_neg_${y.value}`,
|
|
905
908
|
x1: "0%",
|
|
906
909
|
x2: "100%",
|
|
907
910
|
y1: "0%",
|
|
908
911
|
y2: "0%"
|
|
909
912
|
}, [
|
|
910
|
-
|
|
913
|
+
c("stop", {
|
|
911
914
|
offset: "0%",
|
|
912
915
|
"stop-color": e.value.style.chart.plots.endColor
|
|
913
|
-
}, null, 8,
|
|
914
|
-
|
|
916
|
+
}, null, 8, Dl),
|
|
917
|
+
c("stop", {
|
|
915
918
|
offset: "100%",
|
|
916
919
|
"stop-color": e.value.style.chart.plots.startColor
|
|
917
|
-
}, null, 8,
|
|
918
|
-
], 8,
|
|
920
|
+
}, null, 8, Gl)
|
|
921
|
+
], 8, Pl)
|
|
919
922
|
]),
|
|
920
|
-
![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(),
|
|
921
|
-
e.value.style.chart.plots.link.type === "curved" ? (n(),
|
|
922
|
-
|
|
923
|
+
![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g", El, [
|
|
924
|
+
e.value.style.chart.plots.link.type === "curved" ? (n(), v("g", Rl, [
|
|
925
|
+
c("path", {
|
|
923
926
|
d: `M
|
|
924
927
|
${t.startX},${t.y + M.value / 2}
|
|
925
928
|
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
@@ -929,42 +932,42 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
929
932
|
${t.startX},${t.y - M.value / 2}
|
|
930
933
|
Z
|
|
931
934
|
`,
|
|
932
|
-
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${
|
|
933
|
-
}, null, 8,
|
|
934
|
-
])) : (n(),
|
|
935
|
-
|
|
935
|
+
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${y.value})` : `url(#grad_neg_${y.value})`
|
|
936
|
+
}, null, 8, Bl)
|
|
937
|
+
])) : (n(), v("g", Vl, [
|
|
938
|
+
c("rect", {
|
|
936
939
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
937
940
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
938
941
|
height: Math.max(0.01, e.value.style.chart.plots.link.strokeWidth),
|
|
939
942
|
width: Math.max(0.01, Math.abs(t.endX - t.startX)),
|
|
940
|
-
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${
|
|
941
|
-
}, null, 8,
|
|
943
|
+
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${y.value})` : `url(#grad_neg_${y.value})`
|
|
944
|
+
}, null, 8, Ul)
|
|
942
945
|
]))
|
|
943
|
-
])) :
|
|
944
|
-
[null, void 0].includes(t.start) ?
|
|
946
|
+
])) : b("", !0),
|
|
947
|
+
[null, void 0].includes(t.start) ? b("", !0) : (n(), v("circle", {
|
|
945
948
|
key: 1,
|
|
946
949
|
cx: t.startX,
|
|
947
950
|
cy: t.y,
|
|
948
951
|
r: M.value,
|
|
949
|
-
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${
|
|
952
|
+
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
|
|
950
953
|
stroke: e.value.style.chart.plots.stroke,
|
|
951
954
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
952
|
-
}, null, 8,
|
|
953
|
-
[null, void 0].includes(t.end) ?
|
|
955
|
+
}, null, 8, Wl)),
|
|
956
|
+
[null, void 0].includes(t.end) ? b("", !0) : (n(), v("circle", {
|
|
954
957
|
key: 2,
|
|
955
958
|
cx: t.endX,
|
|
956
959
|
cy: t.y,
|
|
957
960
|
r: M.value,
|
|
958
|
-
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${
|
|
961
|
+
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${y.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
|
|
959
962
|
stroke: e.value.style.chart.plots.stroke,
|
|
960
963
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
961
|
-
}, null, 8,
|
|
964
|
+
}, null, 8, ql))
|
|
962
965
|
]))), 128)),
|
|
963
|
-
e.value.style.chart.labels.startLabels.show ? (n(),
|
|
964
|
-
(n(!0),
|
|
966
|
+
e.value.style.chart.labels.startLabels.show ? (n(), v("g", jl, [
|
|
967
|
+
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
965
968
|
key: `start_label_${a}_${t.id}`
|
|
966
969
|
}, [
|
|
967
|
-
[null, void 0].includes(t.start) ?
|
|
970
|
+
[null, void 0].includes(t.start) ? b("", !0) : (n(), v("text", {
|
|
968
971
|
key: 0,
|
|
969
972
|
x: t.startX,
|
|
970
973
|
y: t.y + M.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
|
|
@@ -981,14 +984,14 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
981
984
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
982
985
|
}),
|
|
983
986
|
{ datapoint: t, seriesIndex: a }
|
|
984
|
-
)), 9,
|
|
987
|
+
)), 9, Yl))
|
|
985
988
|
]))), 128))
|
|
986
|
-
])) :
|
|
987
|
-
e.value.style.chart.labels.endLabels.show ? (n(),
|
|
988
|
-
(n(!0),
|
|
989
|
+
])) : b("", !0),
|
|
990
|
+
e.value.style.chart.labels.endLabels.show ? (n(), v("g", Zl, [
|
|
991
|
+
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
989
992
|
key: `end_label_${a}_${t.id}`
|
|
990
993
|
}, [
|
|
991
|
-
[null, void 0].includes(t.end) ?
|
|
994
|
+
[null, void 0].includes(t.end) ? b("", !0) : (n(), v("text", {
|
|
992
995
|
key: 0,
|
|
993
996
|
x: t.endX,
|
|
994
997
|
y: t.y - (M.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
|
|
@@ -1005,74 +1008,82 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
1005
1008
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
1006
1009
|
}),
|
|
1007
1010
|
{ datapoint: t, seriesIndex: a }
|
|
1008
|
-
)), 9,
|
|
1011
|
+
)), 9, Jl))
|
|
1009
1012
|
]))), 128))
|
|
1010
|
-
])) :
|
|
1011
|
-
|
|
1012
|
-
(n(!0),
|
|
1013
|
+
])) : b("", !0),
|
|
1014
|
+
c("g", null, [
|
|
1015
|
+
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("rect", {
|
|
1013
1016
|
x: o.value.left,
|
|
1014
1017
|
y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
|
|
1015
1018
|
width: Math.max(0.1, o.value.width),
|
|
1016
1019
|
height: Math.max(0.1, o.value.rowHeight),
|
|
1017
|
-
fill:
|
|
1020
|
+
fill: O.value !== null && O.value === a ? i(st)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
|
|
1018
1021
|
onMouseenter: (u) => he({ datapoint: t, seriesIndex: a }),
|
|
1019
1022
|
onMouseleave: (u) => ye({ datapoint: t, seriesIndex: a }),
|
|
1020
1023
|
onClick: (u) => fe({ datapoint: t, seriesIndex: a })
|
|
1021
|
-
}, null, 40,
|
|
1024
|
+
}, null, 40, Kl))), 256))
|
|
1022
1025
|
]),
|
|
1023
1026
|
p(l.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1024
|
-
], 14,
|
|
1025
|
-
l.$slots.watermark ? (n(),
|
|
1026
|
-
p(l.$slots, "watermark", te(le({ isPrinting: i(
|
|
1027
|
-
])) :
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1027
|
+
], 14, Qt)),
|
|
1028
|
+
l.$slots.watermark ? (n(), v("div", Ql, [
|
|
1029
|
+
p(l.$slots, "watermark", te(le({ isPrinting: i(Te) || i(Ie) })), void 0, !0)
|
|
1030
|
+
])) : b("", !0),
|
|
1031
|
+
c("div", {
|
|
1032
|
+
id: `legend-bottom-${y.value}`
|
|
1033
|
+
}, null, 8, ea),
|
|
1034
|
+
Ae.value ? (n(), T(Mt, {
|
|
1035
|
+
key: 5,
|
|
1036
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
1031
1037
|
}, [
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
height: e.value.style.chart.legend.fontSize,
|
|
1046
|
-
width: e.value.style.chart.legend.fontSize
|
|
1038
|
+
c("div", {
|
|
1039
|
+
ref_key: "chartLegend",
|
|
1040
|
+
ref: _e
|
|
1041
|
+
}, [
|
|
1042
|
+
e.value.style.chart.legend.show && Z.value ? (n(), T(Yt, {
|
|
1043
|
+
key: `legend_${Le.value}`,
|
|
1044
|
+
legendSet: Re.value,
|
|
1045
|
+
config: mt.value,
|
|
1046
|
+
clickable: !1
|
|
1047
|
+
}, {
|
|
1048
|
+
item: x(({ legend: t }) => [
|
|
1049
|
+
c("div", {
|
|
1050
|
+
style: ee(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
1047
1051
|
}, [
|
|
1048
|
-
v("
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
},
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1052
|
+
(n(), v("svg", {
|
|
1053
|
+
xmlns: i(at),
|
|
1054
|
+
viewBox: "0 0 20 20",
|
|
1055
|
+
height: e.value.style.chart.legend.fontSize,
|
|
1056
|
+
width: e.value.style.chart.legend.fontSize
|
|
1057
|
+
}, [
|
|
1058
|
+
c("circle", {
|
|
1059
|
+
cx: 10,
|
|
1060
|
+
cy: 10,
|
|
1061
|
+
r: 9,
|
|
1062
|
+
fill: t.color
|
|
1063
|
+
}, null, 8, la)
|
|
1064
|
+
], 8, ta)),
|
|
1065
|
+
i(ne) ? b("", !0) : (n(), v(C, { key: 0 }, [
|
|
1066
|
+
Qe(_(t.name), 1)
|
|
1067
|
+
], 64))
|
|
1068
|
+
], 4)
|
|
1069
|
+
]),
|
|
1070
|
+
_: 1
|
|
1071
|
+
}, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
|
|
1072
|
+
key: 1,
|
|
1073
|
+
legend: Re.value
|
|
1074
|
+
}, void 0, !0)
|
|
1075
|
+
], 512)
|
|
1076
|
+
], 8, ["to"])) : b("", !0),
|
|
1077
|
+
l.$slots.source ? (n(), v("div", {
|
|
1078
|
+
key: 6,
|
|
1068
1079
|
ref_key: "source",
|
|
1069
1080
|
ref: ke,
|
|
1070
1081
|
dir: "auto"
|
|
1071
1082
|
}, [
|
|
1072
1083
|
p(l.$slots, "source", {}, void 0, !0)
|
|
1073
|
-
], 512)) :
|
|
1074
|
-
Z.value ? (n(),
|
|
1075
|
-
key:
|
|
1084
|
+
], 512)) : b("", !0),
|
|
1085
|
+
Z.value ? (n(), T(i(ut), {
|
|
1086
|
+
key: 7,
|
|
1076
1087
|
hideDetails: "",
|
|
1077
1088
|
config: {
|
|
1078
1089
|
open: D.value.showTable,
|
|
@@ -1088,7 +1099,7 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
1088
1099
|
}
|
|
1089
1100
|
}, {
|
|
1090
1101
|
content: x(() => [
|
|
1091
|
-
(n(),
|
|
1102
|
+
(n(), T(i(it), {
|
|
1092
1103
|
key: `table_${$e.value}`,
|
|
1093
1104
|
colNames: K.value.colNames,
|
|
1094
1105
|
head: K.value.head,
|
|
@@ -1098,23 +1109,23 @@ const Yt = ["id"], Zt = ["xmlns", "viewBox"], Jt = ["x", "y", "width", "height"]
|
|
|
1098
1109
|
onClose: s[0] || (s[0] = (t) => D.value.showTable = !1)
|
|
1099
1110
|
}, {
|
|
1100
1111
|
th: x(({ th: t }) => [
|
|
1101
|
-
|
|
1112
|
+
c("div", {
|
|
1102
1113
|
innerHTML: t,
|
|
1103
1114
|
style: { display: "flex", "align-items": "center" }
|
|
1104
|
-
}, null, 8,
|
|
1115
|
+
}, null, 8, aa)
|
|
1105
1116
|
]),
|
|
1106
1117
|
td: x(({ td: t }) => [
|
|
1107
|
-
|
|
1118
|
+
Qe(_(t.name || t), 1)
|
|
1108
1119
|
]),
|
|
1109
1120
|
_: 1
|
|
1110
1121
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1111
1122
|
]),
|
|
1112
1123
|
_: 1
|
|
1113
|
-
}, 8, ["config"])) :
|
|
1114
|
-
i(ne) ? (n(),
|
|
1115
|
-
], 46,
|
|
1124
|
+
}, 8, ["config"])) : b("", !0),
|
|
1125
|
+
i(ne) ? (n(), T(Bt, { key: 8 })) : b("", !0)
|
|
1126
|
+
], 46, Jt));
|
|
1116
1127
|
}
|
|
1117
|
-
},
|
|
1128
|
+
}, pa = /* @__PURE__ */ Zt(sa, [["__scopeId", "data-v-3328933a"]]);
|
|
1118
1129
|
export {
|
|
1119
|
-
|
|
1130
|
+
pa as default
|
|
1120
1131
|
};
|