vue-data-ui 3.0.22 → 3.1.0
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-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/Legend-2-dC7DVb.js +72 -0
- package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-Y5T9UxMO.js +0 -133
- package/dist/Legend-DkU3at-b.js +0 -72
- package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
- package/dist/vue-ui-chord-0wf798ls.js +0 -1049
- package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
- package/dist/vue-ui-flow-K7UBguES.js +0 -852
- package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
- package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
- package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
- package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
- package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
- package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
- package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
- package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
- package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
- package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
- package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t 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 H, computed as g, ref as h, toRefs as zt, watch as le, shallowRef as Ke, onMounted as Qe, onBeforeUnmount as et, watchEffect as Tt, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as ae, normalizeClass as tt, createBlock as I, createCommentVNode as b, createElementVNode as c, createSlots as lt, withCtx as p, renderSlot as x, normalizeProps as se, guardReactiveProps as oe, createVNode as at, withDirectives as j, Fragment as C, renderList as A, toDisplayString as _, vShow as Y, Teleport as Dt, createTextVNode as _e, resolveDynamicComponent as It, mergeProps as Ot, nextTick as Ft } from "vue";
|
|
2
|
+
import { u as Ht, c as st, t as Pt, b as Gt, o as Et, f as ot, g as Bt, h as nt, D as Rt, i as w, k as P, X as rt, s as ut, l as Z, j as J, v as Vt, w as Ut } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as ke, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as qt } from "./usePrinter-Bnl1YeUU.js";
|
|
5
|
+
import { u as jt, B as Yt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as it } from "./useNestedProp-BPEHGiYX.js";
|
|
7
|
+
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as Kt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import Qt from "./img-JOqdlnUs.js";
|
|
11
|
+
import el from "./Title-Dq2_Z9kR.js";
|
|
12
|
+
import tl from "./Legend-2-dC7DVb.js";
|
|
13
|
+
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const al = ["id"], sl = ["id"], ol = ["xmlns", "viewBox"], nl = ["x", "y", "width", "height"], rl = { key: 1 }, ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = { key: 2 }, cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["transform", "font-size", "fill"], hl = ["x", "y", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick"], fl = ["x", "y", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], yl = ["x", "y", "font-size", "fill"], bl = ["transform", "font-size", "fill", "font-weight", "text-anchor"], gl = ["d", "stroke", "stroke-width", "stroke-dasharray"], ml = ["d", "stroke", "stroke-width", "stroke-dasharray"], pl = ["x", "y", "height", "width", "fill"], xl = ["transform", "fill", "font-size"], _l = ["id"], kl = ["stop-color"], Cl = ["stop-color"], wl = ["stop-color"], $l = ["id"], Ll = ["stop-color"], Al = ["stop-color"], Nl = ["stop-color"], Sl = ["id"], Ml = ["stop-color"], Xl = ["stop-color"], zl = ["stop-color"], Tl = ["id"], Dl = ["stop-color"], Il = ["stop-color"], Ol = ["stop-color"], Fl = ["id"], Hl = ["stop-color"], Pl = ["stop-color"], Gl = ["stop-color"], El = ["id"], Bl = ["stop-color"], Rl = ["stop-color"], Vl = ["id"], Ul = ["stop-color"], Wl = ["stop-color"], ql = { key: 0 }, jl = { key: 0 }, Yl = ["d", "fill"], Zl = { key: 1 }, Jl = ["x", "y", "height", "width", "fill"], Kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ea = { key: 7 }, ta = ["x", "y", "fill", "font-size"], la = { key: 8 }, aa = ["x", "y", "fill", "font-size"], sa = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], oa = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, na = ["id"], ra = ["xmlns", "height", "width"], ua = ["fill"], ia = ["innerHTML"], ca = {
|
|
18
18
|
__name: "vue-ui-dumbbell",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,18 +31,18 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(ct, { expose: vt, emit: va }) {
|
|
35
|
+
const dt = H(() => import("./BaseIcon-DHtro8us.js")), ht = H(() => import("./vue-ui-accordion-Bf_LHFFX.js")), ft = H(() => import("./DataTable-DJjA2_wf.js")), yt = H(() => import("./PenAndPaper-B7QEDgx4.js")), bt = H(() => import("./UserOptions-BuGfCdAY.js")), gt = H(() => import("./PackageVersion-DU12WH3O.js")), mt = H(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_dumbbell: pt } = Ht(), N = ct, K = 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
|
+
}), f = h(st()), Ce = h(0), S = h(null), we = h(null), $e = h(null), Le = h(null), Ae = h(null), Ne = h(0), Se = h(0), Me = h(0), Xe = h(!1), U = h(null), ne = h(null), re = h(null), Q = h(null), ue = h(null), O = h(null), r = h(null), F = h(!1), e = h(de()), { loading: ie, FINAL_DATASET: ce, manualLoading: xt } = jt({
|
|
43
|
+
...zt(N),
|
|
44
44
|
FINAL_CONFIG: e,
|
|
45
|
-
prepareConfig:
|
|
45
|
+
prepareConfig: de,
|
|
46
46
|
skeletonDataset: [
|
|
47
47
|
{ name: "_", start: 21, end: 34 },
|
|
48
48
|
{ name: "_", start: 13, end: 21 },
|
|
@@ -50,7 +50,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
50
50
|
{ name: "_", start: 5, end: 8 },
|
|
51
51
|
{ name: "_", start: 3, end: 5 }
|
|
52
52
|
],
|
|
53
|
-
skeletonConfig:
|
|
53
|
+
skeletonConfig: Pt({
|
|
54
54
|
defaultConfig: e.value,
|
|
55
55
|
userConfig: {
|
|
56
56
|
userOptions: { show: !1 },
|
|
@@ -92,163 +92,163 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
})
|
|
95
|
-
}), { userOptionsVisible:
|
|
96
|
-
function
|
|
97
|
-
const l =
|
|
95
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: De } = Jt({ config: e.value.style.chart.title });
|
|
96
|
+
function de() {
|
|
97
|
+
const l = it({
|
|
98
98
|
userConfig: N.config,
|
|
99
|
-
defaultConfig:
|
|
99
|
+
defaultConfig: pt
|
|
100
100
|
});
|
|
101
101
|
return l.theme ? {
|
|
102
|
-
...
|
|
103
|
-
userConfig:
|
|
102
|
+
...it({
|
|
103
|
+
userConfig: Gt.vue_ui_dumbbell[l.theme] || N.config,
|
|
104
104
|
defaultConfig: l
|
|
105
105
|
})
|
|
106
106
|
} : l;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}, { deep: !0 }),
|
|
111
|
-
Array.isArray(l) && l.length > 0 && (
|
|
108
|
+
le(() => N.config, (l) => {
|
|
109
|
+
ie.value || (e.value = de()), ve.value = !e.value.userOptions.showOnChartHover, Oe(), Ne.value += 1, Se.value += 1, Me.value += 1, B.value = e.value.style.chart.rowHeight, R.value = e.value.style.chart.width, X.value.showTable = e.value.table.show;
|
|
110
|
+
}, { deep: !0 }), le(() => ce.value, (l) => {
|
|
111
|
+
Array.isArray(l) && l.length > 0 && (xt.value = !1), Ve(), Ue();
|
|
112
112
|
}, { deep: !0 });
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const M = Ke(null), G = Ke(null);
|
|
114
|
+
Qe(() => {
|
|
115
|
+
Xe.value = !0, Oe();
|
|
116
116
|
});
|
|
117
|
-
const
|
|
118
|
-
function
|
|
119
|
-
if (
|
|
117
|
+
const Ie = g(() => !!e.value.debug);
|
|
118
|
+
function Oe() {
|
|
119
|
+
if (Et(N.dataset) ? ot({
|
|
120
120
|
componentName: "VueUiDumbbell",
|
|
121
121
|
type: "dataset",
|
|
122
|
-
debug:
|
|
122
|
+
debug: Ie.value
|
|
123
123
|
}) : N.dataset.forEach((l, s) => {
|
|
124
|
-
|
|
124
|
+
Bt({
|
|
125
125
|
datasetObject: l,
|
|
126
126
|
requiredAttributes: ["name", "start", "end"]
|
|
127
127
|
}).forEach((t) => {
|
|
128
|
-
|
|
128
|
+
K.value = !1, ot({
|
|
129
129
|
componentName: "VueUiDumbbell",
|
|
130
130
|
type: "datasetSerieAttribute",
|
|
131
131
|
property: t,
|
|
132
132
|
index: s,
|
|
133
|
-
debug:
|
|
133
|
+
debug: Ie.value
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
}), e.value.responsive) {
|
|
137
|
-
const l =
|
|
138
|
-
const { width: s, height: t } =
|
|
139
|
-
chart:
|
|
140
|
-
title: e.value.style.chart.title.text ?
|
|
141
|
-
legend: e.value.style.chart.legend.show ?
|
|
142
|
-
source:
|
|
143
|
-
noTitle:
|
|
137
|
+
const l = ke(() => {
|
|
138
|
+
const { width: s, height: t } = Wt({
|
|
139
|
+
chart: S.value,
|
|
140
|
+
title: e.value.style.chart.title.text ? we.value : null,
|
|
141
|
+
legend: e.value.style.chart.legend.show ? $e.value : null,
|
|
142
|
+
source: Le.value,
|
|
143
|
+
noTitle: Ae.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),
|
|
146
|
+
R.value = Math.max(0.1, s), B.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / ce.value.length), Ze();
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
|
|
149
|
+
M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect()), M.value = new ResizeObserver(l), G.value = S.value.parentNode, M.value.observe(G.value);
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
Ze();
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
L.value != null && (cancelAnimationFrame(L.value), L.value = null),
|
|
153
|
+
et(() => {
|
|
154
|
+
L.value != null && (cancelAnimationFrame(L.value), L.value = null), M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect());
|
|
155
155
|
});
|
|
156
|
-
const { isPrinting:
|
|
157
|
-
elementId: `dumbbell_${
|
|
156
|
+
const { isPrinting: Fe, isImaging: He, generatePdf: Pe, generateImage: Ge } = qt({
|
|
157
|
+
elementId: `dumbbell_${f.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
159
159
|
options: e.value.userOptions.print
|
|
160
|
-
}),
|
|
160
|
+
}), _t = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), X = h({
|
|
161
161
|
showTable: e.value.table.show
|
|
162
162
|
});
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
le(e, () => {
|
|
164
|
+
X.value = {
|
|
165
165
|
showTable: e.value.table.show
|
|
166
166
|
};
|
|
167
167
|
}, { immediate: !0 });
|
|
168
|
-
const
|
|
168
|
+
const E = g(() => ce.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 =
|
|
170
|
+
start: nt(l.start),
|
|
171
|
+
end: nt(l.end),
|
|
172
|
+
id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${st()}`
|
|
173
|
+
}))), Ee = g(() => {
|
|
174
|
+
const l = e.value.style.chart.grid, s = E.value.flatMap((y) => [y.start, y.end]).map((y) => Number(y)).filter((y) => Number.isFinite(y)), 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(() => Rt(Ee.value.min, Ee.value.max, e.value.style.chart.grid.scaleSteps)), B = h(e.value.style.chart.rowHeight), R = h(e.value.style.chart.width);
|
|
177
|
+
function kt() {
|
|
178
178
|
let l = 0;
|
|
179
|
-
|
|
179
|
+
re.value && (l = Array.from(re.value.querySelectorAll("text")).reduce((a, u) => {
|
|
180
180
|
const d = u.getComputedTextLength();
|
|
181
181
|
return d > a ? d : a;
|
|
182
182
|
}, 0));
|
|
183
|
-
const s =
|
|
183
|
+
const s = ne.value ? ne.value.getBoundingClientRect().width : 0;
|
|
184
184
|
return l + s + (s ? 24 + e.value.style.chart.labels.axis.yLabelOffsetX : 0);
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
|
|
186
|
+
const he = h(0), Ct = ke((l) => {
|
|
187
|
+
he.value = l;
|
|
188
188
|
}, 100);
|
|
189
|
-
|
|
190
|
-
const s =
|
|
189
|
+
Tt((l) => {
|
|
190
|
+
const s = Q.value;
|
|
191
191
|
if (!s) return;
|
|
192
192
|
const t = new ResizeObserver((a) => {
|
|
193
|
-
|
|
193
|
+
Ct(a[0].contentRect.height);
|
|
194
194
|
});
|
|
195
195
|
t.observe(s), l(() => t.disconnect());
|
|
196
|
-
}),
|
|
197
|
-
|
|
196
|
+
}), et(() => {
|
|
197
|
+
he.value = 0;
|
|
198
198
|
});
|
|
199
|
-
const
|
|
199
|
+
const Be = g(() => {
|
|
200
200
|
F.value;
|
|
201
201
|
let l = 0;
|
|
202
|
-
|
|
202
|
+
ue.value && (l = ue.value.getBBox().height);
|
|
203
203
|
let s = 0;
|
|
204
|
-
return
|
|
205
|
-
}),
|
|
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(
|
|
204
|
+
return Q.value && (s = he.value), l + s;
|
|
205
|
+
}), fe = g(() => E.value.length);
|
|
206
|
+
function Re(l, s, t) {
|
|
207
|
+
const a = Number(l), u = Number(s.min), d = Number(s.max), y = Number(t.width);
|
|
208
|
+
if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(y))
|
|
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 * y;
|
|
212
212
|
}
|
|
213
213
|
const o = g(() => {
|
|
214
214
|
F.value;
|
|
215
|
-
const l =
|
|
215
|
+
const l = kt(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = B.value * fe.value - Be.value - s.top - s.bottom - t, u = a / fe.value, d = B.value * fe.value, y = R.value - l - s.left - s.right, m = $.value.ticks.length * (y / $.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 - Be.value - t,
|
|
221
|
+
width: y,
|
|
222
222
|
height: a,
|
|
223
223
|
rowHeight: u,
|
|
224
224
|
absoluteHeight: d,
|
|
225
225
|
widthPlotReference: m
|
|
226
226
|
};
|
|
227
|
-
}),
|
|
227
|
+
}), z = g(() => Math.min(B.value / 2 * 0.7, e.value.style.chart.plots.radius)), W = h([]), k = g({
|
|
228
228
|
get() {
|
|
229
229
|
const l = o.value, s = $.value;
|
|
230
|
-
return
|
|
231
|
-
const u =
|
|
230
|
+
return W.value.map((t, a) => {
|
|
231
|
+
const u = Re(t.start, s, l), d = Re(t.endVal, s, l), y = u + (d - u) / 2, m = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end > t.start, D = ![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), Xt = m ? e.value.style.chart.plots.evaluationColors.positive : D ? 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
|
-
isNegative:
|
|
236
|
-
isNeutral:
|
|
237
|
-
evaluationColor:
|
|
238
|
-
evaluationGrad: `url(#${m ? "positive" :
|
|
235
|
+
isNegative: D,
|
|
236
|
+
isNeutral: Je,
|
|
237
|
+
evaluationColor: Xt,
|
|
238
|
+
evaluationGrad: `url(#${m ? "positive" : D ? "negative" : "neutral"}_grad_${f.value})`,
|
|
239
239
|
startX: u,
|
|
240
240
|
endX: d,
|
|
241
|
-
centerX:
|
|
241
|
+
centerX: y,
|
|
242
242
|
y: l.top + a * l.rowHeight + l.rowHeight / 2
|
|
243
243
|
};
|
|
244
244
|
});
|
|
245
245
|
},
|
|
246
246
|
set(l) {
|
|
247
|
-
|
|
247
|
+
W.value = l;
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
function
|
|
251
|
-
|
|
250
|
+
function Ve() {
|
|
251
|
+
W.value = E.value.map((l) => {
|
|
252
252
|
const s = Number(l.start);
|
|
253
253
|
return {
|
|
254
254
|
...l,
|
|
@@ -257,37 +257,37 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
const L = h(null);
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
Qe(() => {
|
|
261
|
+
Ue();
|
|
262
262
|
});
|
|
263
|
-
function
|
|
264
|
-
if (L.value != null && (cancelAnimationFrame(L.value), L.value = null),
|
|
265
|
-
k.value =
|
|
263
|
+
function Ue() {
|
|
264
|
+
if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), Ve(), !e.value.useAnimation) {
|
|
265
|
+
k.value = W.value.map((a) => {
|
|
266
266
|
const u = Number(a.end);
|
|
267
267
|
return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
|
|
268
268
|
});
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
|
-
const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s =
|
|
272
|
-
const u = Number(a.start), d = Number(a.end),
|
|
273
|
-
return (Number.isFinite(d) ? d :
|
|
271
|
+
const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s = E.value.map((a) => {
|
|
272
|
+
const u = Number(a.start), d = Number(a.end), y = Number.isFinite(u) ? u : 0;
|
|
273
|
+
return (Number.isFinite(d) ? d : y) - y;
|
|
274
274
|
}), t = () => {
|
|
275
275
|
let a = !0;
|
|
276
|
-
k.value =
|
|
277
|
-
const
|
|
278
|
-
return
|
|
276
|
+
k.value = W.value.map((u, d) => {
|
|
277
|
+
const y = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, m = u.endVal + s[d] * l, D = s[d] >= 0 ? Math.min(m, y) : Math.max(m, y);
|
|
278
|
+
return D !== y && (a = !1), { ...u, endVal: D };
|
|
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 We = 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_${f.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_${f.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_${f.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_${f.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_${f.value})` : e.value.style.chart.plots.endColor }
|
|
290
|
+
]), wt = 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,
|
|
@@ -295,7 +295,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
295
295
|
paddingBottom: 12,
|
|
296
296
|
paddingTop: 12,
|
|
297
297
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
298
|
-
})),
|
|
298
|
+
})), T = g(() => {
|
|
299
299
|
const l = k.value.map((t) => ({
|
|
300
300
|
name: t.name
|
|
301
301
|
})), s = k.value.map((t) => ({
|
|
@@ -303,33 +303,33 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
303
303
|
end: t.end
|
|
304
304
|
}));
|
|
305
305
|
return { head: l, body: s };
|
|
306
|
-
}),
|
|
306
|
+
}), ee = g(() => {
|
|
307
307
|
const l = [
|
|
308
308
|
e.value.table.columnNames.series,
|
|
309
309
|
e.value.table.columnNames.start,
|
|
310
310
|
e.value.table.columnNames.end,
|
|
311
311
|
e.value.table.columnNames.progression
|
|
312
|
-
], s =
|
|
313
|
-
const
|
|
312
|
+
], s = T.value.head.map((u, d) => {
|
|
313
|
+
const y = w({
|
|
314
314
|
p: e.value.style.chart.labels.prefix,
|
|
315
|
-
v:
|
|
315
|
+
v: T.value.body[d].start,
|
|
316
316
|
s: e.value.style.chart.labels.suffix,
|
|
317
317
|
r: e.value.table.td.roundingValue
|
|
318
318
|
}), m = w({
|
|
319
319
|
p: e.value.style.chart.labels.prefix,
|
|
320
|
-
v:
|
|
320
|
+
v: T.value.body[d].end,
|
|
321
321
|
s: e.value.style.chart.labels.suffix,
|
|
322
322
|
r: e.value.table.td.roundingValue
|
|
323
|
-
}),
|
|
324
|
-
v: 100 * (
|
|
323
|
+
}), D = w({
|
|
324
|
+
v: 100 * (T.value.body[d].end / T.value.body[d].start - 1),
|
|
325
325
|
s: "%",
|
|
326
326
|
r: e.value.table.td.roundingPercentage
|
|
327
327
|
});
|
|
328
328
|
return [
|
|
329
329
|
{ name: u.name },
|
|
330
|
-
|
|
330
|
+
y,
|
|
331
331
|
m,
|
|
332
|
-
|
|
332
|
+
D
|
|
333
333
|
];
|
|
334
334
|
}), t = {
|
|
335
335
|
th: {
|
|
@@ -356,31 +356,31 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
356
356
|
config: t
|
|
357
357
|
};
|
|
358
358
|
});
|
|
359
|
-
function
|
|
360
|
-
|
|
361
|
-
const s =
|
|
359
|
+
function ye(l = null) {
|
|
360
|
+
Ft(() => {
|
|
361
|
+
const s = T.value.head.map((u, d) => [[
|
|
362
362
|
u.name
|
|
363
|
-
], [
|
|
364
|
-
l ? l(a) :
|
|
363
|
+
], [T.value.body[d].start], [T.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 = Vt(t);
|
|
364
|
+
l ? l(a) : Ut({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
const V = h(!1);
|
|
368
|
-
function
|
|
369
|
-
V.value = l,
|
|
368
|
+
function qe(l) {
|
|
369
|
+
V.value = l, Ce.value += 1;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function $t() {
|
|
372
|
+
return E.value;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
|
|
374
|
+
function je() {
|
|
375
|
+
X.value.showTable = !X.value.showTable;
|
|
376
376
|
}
|
|
377
|
-
const
|
|
378
|
-
function
|
|
379
|
-
|
|
377
|
+
const te = h(!1);
|
|
378
|
+
function be() {
|
|
379
|
+
te.value = !te.value;
|
|
380
380
|
}
|
|
381
|
-
async function
|
|
382
|
-
if (!
|
|
383
|
-
const { width: s, height: t } =
|
|
381
|
+
async function Lt({ scale: l = 2 } = {}) {
|
|
382
|
+
if (!S.value) return;
|
|
383
|
+
const { width: s, height: t } = S.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await Qt({ domElement: S.value, base64: !0, img: !0, scale: l });
|
|
384
384
|
return {
|
|
385
385
|
imageUri: u,
|
|
386
386
|
base64: d,
|
|
@@ -390,30 +390,30 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
390
390
|
aspectRatio: a
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
timeLabelsEls:
|
|
396
|
-
timeLabels:
|
|
397
|
-
slicer:
|
|
393
|
+
const Ye = g(() => $.value.ticks), At = g(() => ({ start: 0, end: Ye.value.length }));
|
|
394
|
+
Kt({
|
|
395
|
+
timeLabelsEls: Q,
|
|
396
|
+
timeLabels: Ye,
|
|
397
|
+
slicer: At,
|
|
398
398
|
configRef: e,
|
|
399
399
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
400
400
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
401
401
|
isAutoSize: !1,
|
|
402
402
|
width: R,
|
|
403
|
-
height:
|
|
403
|
+
height: B,
|
|
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 Nt({
|
|
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), y = s * 1.2;
|
|
414
|
+
return d < y;
|
|
415
415
|
}
|
|
416
|
-
const
|
|
416
|
+
const St = /* @__PURE__ */ (() => {
|
|
417
417
|
let l = null, s = 0;
|
|
418
418
|
const t = 1;
|
|
419
419
|
return (a) => {
|
|
@@ -423,36 +423,36 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
423
423
|
}
|
|
424
424
|
l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (F.value = a, l = null, s = 0));
|
|
425
425
|
};
|
|
426
|
-
})(),
|
|
426
|
+
})(), Ze = ke(() => {
|
|
427
427
|
requestAnimationFrame(() => {
|
|
428
428
|
requestAnimationFrame(() => {
|
|
429
|
-
const l =
|
|
429
|
+
const l = Nt({
|
|
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
|
+
St(l);
|
|
435
435
|
});
|
|
436
436
|
});
|
|
437
437
|
}, 100);
|
|
438
|
-
function
|
|
438
|
+
function ge({ 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
|
-
function
|
|
441
|
+
function me({ 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
|
-
function
|
|
444
|
+
function pe({ datapoint: l, seriesIndex: s }) {
|
|
445
445
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
446
446
|
}
|
|
447
|
-
const
|
|
447
|
+
const xe = g(() => {
|
|
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
|
+
}), Mt = 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 = "";
|
|
455
|
-
return l && (t =
|
|
455
|
+
return l && (t = P(
|
|
456
456
|
e.value.style.chart.labels.formatter,
|
|
457
457
|
r.value.start,
|
|
458
458
|
w({
|
|
@@ -462,7 +462,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
462
462
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
463
463
|
}),
|
|
464
464
|
{ datapoint: r.value, seriesIndex: O.value }
|
|
465
|
-
)), s && (a =
|
|
465
|
+
)), s && (a = P(
|
|
466
466
|
e.value.style.chart.labels.formatter,
|
|
467
467
|
r.value.end,
|
|
468
468
|
w({
|
|
@@ -473,48 +473,79 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
473
473
|
}),
|
|
474
474
|
{ datapoint: r.value, seriesIndex: O.value }
|
|
475
475
|
)), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
|
|
476
|
+
}), q = g(() => {
|
|
477
|
+
const l = e.value.table.useDialog && !e.value.table.show, s = X.value.showTable;
|
|
478
|
+
return {
|
|
479
|
+
component: l ? mt : ht,
|
|
480
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
481
|
+
props: l ? {
|
|
482
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
483
|
+
color: e.value.table.th.color,
|
|
484
|
+
headerColor: e.value.table.th.color,
|
|
485
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
486
|
+
isFullscreen: V.value,
|
|
487
|
+
fullscreenParent: S.value,
|
|
488
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
489
|
+
} : {
|
|
490
|
+
hideDetails: !0,
|
|
491
|
+
config: {
|
|
492
|
+
open: s,
|
|
493
|
+
maxHeight: 1e4,
|
|
494
|
+
body: {
|
|
495
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
496
|
+
color: e.value.style.chart.color
|
|
497
|
+
},
|
|
498
|
+
head: {
|
|
499
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
500
|
+
color: e.value.style.chart.color
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
};
|
|
476
505
|
});
|
|
477
|
-
return
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
506
|
+
return le(() => X.value.showTable, (l) => {
|
|
507
|
+
e.value.table.show || (l && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
|
|
508
|
+
}), vt({
|
|
509
|
+
getData: $t,
|
|
510
|
+
getImage: Lt,
|
|
511
|
+
generatePdf: Pe,
|
|
512
|
+
generateCsv: ye,
|
|
513
|
+
generateImage: Ge,
|
|
514
|
+
toggleTable: je,
|
|
515
|
+
toggleAnnotator: be,
|
|
516
|
+
toggleFullscreen: qe
|
|
486
517
|
}), (l, s) => (n(), v("div", {
|
|
487
518
|
ref_key: "dumbbellChart",
|
|
488
|
-
ref:
|
|
489
|
-
class:
|
|
490
|
-
style:
|
|
491
|
-
id: `dumbbell_${
|
|
492
|
-
onMouseenter: s[
|
|
493
|
-
onMouseleave: s[
|
|
519
|
+
ref: S,
|
|
520
|
+
class: tt(`vue-ui-dumbbell ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
521
|
+
style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
522
|
+
id: `dumbbell_${f.value}`,
|
|
523
|
+
onMouseenter: s[3] || (s[3] = () => i(ze)(!0)),
|
|
524
|
+
onMouseleave: s[4] || (s[4] = () => i(ze)(!1))
|
|
494
525
|
}, [
|
|
495
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
526
|
+
e.value.userOptions.buttons.annotator ? (n(), I(i(yt), {
|
|
496
527
|
key: 0,
|
|
497
|
-
svgRef: i(
|
|
528
|
+
svgRef: i(De),
|
|
498
529
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
499
530
|
color: e.value.style.chart.color,
|
|
500
|
-
active:
|
|
501
|
-
onClose:
|
|
531
|
+
active: te.value,
|
|
532
|
+
onClose: be
|
|
502
533
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
503
|
-
|
|
534
|
+
_t.value ? (n(), v("div", {
|
|
504
535
|
key: 1,
|
|
505
536
|
ref_key: "noTitle",
|
|
506
|
-
ref:
|
|
537
|
+
ref: Ae,
|
|
507
538
|
class: "vue-data-ui-no-title-space",
|
|
508
539
|
style: "height:36px; width: 100%;background:transparent"
|
|
509
540
|
}, null, 512)) : b("", !0),
|
|
510
541
|
e.value.style.chart.title.text ? (n(), v("div", {
|
|
511
542
|
key: 2,
|
|
512
543
|
ref_key: "chartTitle",
|
|
513
|
-
ref:
|
|
544
|
+
ref: we,
|
|
514
545
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
515
546
|
}, [
|
|
516
|
-
(n(),
|
|
517
|
-
key: `title_${
|
|
547
|
+
(n(), I(el, {
|
|
548
|
+
key: `title_${Ne.value}`,
|
|
518
549
|
config: {
|
|
519
550
|
title: {
|
|
520
551
|
cy: "donut-div-title",
|
|
@@ -528,16 +559,16 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
528
559
|
}, null, 8, ["config"]))
|
|
529
560
|
], 512)) : b("", !0),
|
|
530
561
|
c("div", {
|
|
531
|
-
id: `legend-top-${
|
|
532
|
-
}, null, 8,
|
|
533
|
-
e.value.userOptions.show &&
|
|
562
|
+
id: `legend-top-${f.value}`
|
|
563
|
+
}, null, 8, sl),
|
|
564
|
+
e.value.userOptions.show && K.value && (i(Te) || i(ve)) ? (n(), I(i(bt), {
|
|
534
565
|
ref: "details",
|
|
535
|
-
key: `user_option_${
|
|
566
|
+
key: `user_option_${Ce.value}`,
|
|
536
567
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
537
568
|
color: e.value.style.chart.color,
|
|
538
|
-
isPrinting: i(
|
|
539
|
-
isImaging: i(
|
|
540
|
-
uid:
|
|
569
|
+
isPrinting: i(Fe),
|
|
570
|
+
isImaging: i(He),
|
|
571
|
+
uid: f.value,
|
|
541
572
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
542
573
|
hasXls: e.value.userOptions.buttons.csv,
|
|
543
574
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -545,81 +576,81 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
545
576
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
546
577
|
isFullscreen: V.value,
|
|
547
578
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
548
|
-
chartElement:
|
|
579
|
+
chartElement: S.value,
|
|
549
580
|
position: e.value.userOptions.position,
|
|
550
581
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
551
|
-
isAnnotation:
|
|
582
|
+
isAnnotation: te.value,
|
|
552
583
|
callbacks: e.value.userOptions.callbacks,
|
|
553
584
|
printScale: e.value.userOptions.print.scale,
|
|
554
|
-
onToggleFullscreen:
|
|
555
|
-
onGeneratePdf: i(
|
|
556
|
-
onGenerateCsv:
|
|
557
|
-
onGenerateImage: i(
|
|
558
|
-
onToggleTable:
|
|
559
|
-
onToggleAnnotator:
|
|
560
|
-
style:
|
|
561
|
-
visibility: i(
|
|
585
|
+
onToggleFullscreen: qe,
|
|
586
|
+
onGeneratePdf: i(Pe),
|
|
587
|
+
onGenerateCsv: ye,
|
|
588
|
+
onGenerateImage: i(Ge),
|
|
589
|
+
onToggleTable: je,
|
|
590
|
+
onToggleAnnotator: be,
|
|
591
|
+
style: ae({
|
|
592
|
+
visibility: i(Te) ? i(ve) ? "visible" : "hidden" : "visible"
|
|
562
593
|
})
|
|
563
|
-
},
|
|
594
|
+
}, lt({ _: 2 }, [
|
|
564
595
|
l.$slots.menuIcon ? {
|
|
565
596
|
name: "menuIcon",
|
|
566
|
-
fn:
|
|
567
|
-
|
|
597
|
+
fn: p(({ isOpen: t, color: a }) => [
|
|
598
|
+
x(l.$slots, "menuIcon", se(oe({ isOpen: t, color: a })), void 0, !0)
|
|
568
599
|
]),
|
|
569
600
|
key: "0"
|
|
570
601
|
} : void 0,
|
|
571
602
|
l.$slots.optionPdf ? {
|
|
572
603
|
name: "optionPdf",
|
|
573
|
-
fn:
|
|
574
|
-
|
|
604
|
+
fn: p(() => [
|
|
605
|
+
x(l.$slots, "optionPdf", {}, void 0, !0)
|
|
575
606
|
]),
|
|
576
607
|
key: "1"
|
|
577
608
|
} : void 0,
|
|
578
609
|
l.$slots.optionCsv ? {
|
|
579
610
|
name: "optionCsv",
|
|
580
|
-
fn:
|
|
581
|
-
|
|
611
|
+
fn: p(() => [
|
|
612
|
+
x(l.$slots, "optionCsv", {}, void 0, !0)
|
|
582
613
|
]),
|
|
583
614
|
key: "2"
|
|
584
615
|
} : void 0,
|
|
585
616
|
l.$slots.optionImg ? {
|
|
586
617
|
name: "optionImg",
|
|
587
|
-
fn:
|
|
588
|
-
|
|
618
|
+
fn: p(() => [
|
|
619
|
+
x(l.$slots, "optionImg", {}, void 0, !0)
|
|
589
620
|
]),
|
|
590
621
|
key: "3"
|
|
591
622
|
} : void 0,
|
|
592
623
|
l.$slots.optionTable ? {
|
|
593
624
|
name: "optionTable",
|
|
594
|
-
fn:
|
|
595
|
-
|
|
625
|
+
fn: p(() => [
|
|
626
|
+
x(l.$slots, "optionTable", {}, void 0, !0)
|
|
596
627
|
]),
|
|
597
628
|
key: "4"
|
|
598
629
|
} : void 0,
|
|
599
630
|
l.$slots.optionFullscreen ? {
|
|
600
631
|
name: "optionFullscreen",
|
|
601
|
-
fn:
|
|
602
|
-
|
|
632
|
+
fn: p(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
633
|
+
x(l.$slots, "optionFullscreen", se(oe({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
603
634
|
]),
|
|
604
635
|
key: "5"
|
|
605
636
|
} : void 0,
|
|
606
637
|
l.$slots.optionAnnotator ? {
|
|
607
638
|
name: "optionAnnotator",
|
|
608
|
-
fn:
|
|
609
|
-
|
|
639
|
+
fn: p(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
640
|
+
x(l.$slots, "optionAnnotator", se(oe({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
610
641
|
]),
|
|
611
642
|
key: "6"
|
|
612
643
|
} : void 0
|
|
613
644
|
]), 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
645
|
(n(), v("svg", {
|
|
615
646
|
ref_key: "svgRef",
|
|
616
|
-
ref:
|
|
617
|
-
xmlns: i(
|
|
618
|
-
class:
|
|
647
|
+
ref: De,
|
|
648
|
+
xmlns: i(rt),
|
|
649
|
+
class: tt({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
619
650
|
viewBox: `0 0 ${R.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
|
|
620
|
-
style:
|
|
651
|
+
style: ae(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
621
652
|
}, [
|
|
622
|
-
|
|
653
|
+
at(i(gt)),
|
|
623
654
|
l.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
624
655
|
key: 0,
|
|
625
656
|
x: o.value.left,
|
|
@@ -630,9 +661,9 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
630
661
|
pointerEvents: "none"
|
|
631
662
|
}
|
|
632
663
|
}, [
|
|
633
|
-
|
|
634
|
-
], 8,
|
|
635
|
-
e.value.style.chart.grid.verticalGrid.show ? (n(), v("g",
|
|
664
|
+
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
665
|
+
], 8, nl)) : b("", !0),
|
|
666
|
+
e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", rl, [
|
|
636
667
|
(n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("line", {
|
|
637
668
|
x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
638
669
|
x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
@@ -641,10 +672,10 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
641
672
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
642
673
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
643
674
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
644
|
-
}, null, 8,
|
|
675
|
+
}, null, 8, ul))), 256))
|
|
645
676
|
])) : b("", !0),
|
|
646
|
-
e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g",
|
|
647
|
-
(n(!0), v(C, null, A(
|
|
677
|
+
e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g", il, [
|
|
678
|
+
(n(!0), v(C, null, A(E.value, (t, a) => (n(), v("line", {
|
|
648
679
|
x1: o.value.left,
|
|
649
680
|
x2: o.value.right,
|
|
650
681
|
y1: o.value.top + a * o.value.rowHeight,
|
|
@@ -652,7 +683,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
652
683
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
653
684
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
654
685
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
655
|
-
}, null, 8,
|
|
686
|
+
}, null, 8, cl))), 256)),
|
|
656
687
|
c("line", {
|
|
657
688
|
x1: o.value.left,
|
|
658
689
|
x2: o.value.right,
|
|
@@ -661,21 +692,21 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
661
692
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
662
693
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
663
694
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
664
|
-
}, null, 8,
|
|
695
|
+
}, null, 8, vl)
|
|
665
696
|
])) : b("", !0),
|
|
666
697
|
e.value.style.chart.labels.axis.yLabel ? (n(), v("text", {
|
|
667
698
|
key: 3,
|
|
668
699
|
ref_key: "yAxisLabel",
|
|
669
|
-
ref:
|
|
700
|
+
ref: ne,
|
|
670
701
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.absoluteHeight / 2}), rotate(-90)`,
|
|
671
702
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
672
703
|
fill: e.value.style.chart.labels.axis.color,
|
|
673
704
|
"text-anchor": "middle"
|
|
674
|
-
}, _(e.value.style.chart.labels.axis.yLabel), 9,
|
|
705
|
+
}, _(e.value.style.chart.labels.axis.yLabel), 9, dl)) : b("", !0),
|
|
675
706
|
e.value.style.chart.labels.yAxisLabels.show ? (n(), v("g", {
|
|
676
707
|
key: 4,
|
|
677
708
|
ref_key: "serieLabels",
|
|
678
|
-
ref:
|
|
709
|
+
ref: re
|
|
679
710
|
}, [
|
|
680
711
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("text", {
|
|
681
712
|
class: "vue-ui-dumbbell-serie-name",
|
|
@@ -686,10 +717,10 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
686
717
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
687
718
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
688
719
|
"text-anchor": "end",
|
|
689
|
-
onMouseenter: (u) =>
|
|
690
|
-
onMouseleave: (u) =>
|
|
691
|
-
onClick: (u) =>
|
|
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(
|
|
720
|
+
onMouseenter: (u) => ge({ datapoint: t, seriesIndex: a }),
|
|
721
|
+
onMouseleave: (u) => me({ datapoint: t, seriesIndex: a }),
|
|
722
|
+
onClick: (u) => pe({ datapoint: t, seriesIndex: a })
|
|
723
|
+
}, _(t.name) + " " + _(F.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(P)(
|
|
693
724
|
e.value.style.chart.labels.yAxisLabels.formatter,
|
|
694
725
|
100 * (t.end / t.start - 1),
|
|
695
726
|
i(w)({
|
|
@@ -698,7 +729,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
698
729
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
699
730
|
}),
|
|
700
731
|
{ datapoint: t }
|
|
701
|
-
)})` : ""), 41,
|
|
732
|
+
)})` : ""), 41, hl))), 128)),
|
|
702
733
|
e.value.style.chart.labels.yAxisLabels.showProgression && !F.value ? (n(!0), v(C, { key: 0 }, A(k.value, (t, a) => (n(), v("text", {
|
|
703
734
|
class: "vue-ui-dumbbell-serie-value",
|
|
704
735
|
x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
@@ -706,10 +737,10 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
706
737
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
707
738
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
708
739
|
"text-anchor": "end",
|
|
709
|
-
onMouseenter: (u) =>
|
|
710
|
-
onMouseleave: (u) =>
|
|
711
|
-
onClick: (u) =>
|
|
712
|
-
}, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(
|
|
740
|
+
onMouseenter: (u) => ge({ datapoint: t, seriesIndex: a }),
|
|
741
|
+
onMouseleave: (u) => me({ datapoint: t, seriesIndex: a }),
|
|
742
|
+
onClick: (u) => pe({ datapoint: t, seriesIndex: a })
|
|
743
|
+
}, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(P)(
|
|
713
744
|
e.value.style.chart.labels.yAxisLabels.formatter,
|
|
714
745
|
100 * (t.end / t.start - 1),
|
|
715
746
|
i(w)({
|
|
@@ -718,22 +749,22 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
718
749
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
719
750
|
}),
|
|
720
751
|
{ datapoint: t }
|
|
721
|
-
)), 41,
|
|
752
|
+
)), 41, fl))), 256)) : b("", !0)
|
|
722
753
|
], 512)) : b("", !0),
|
|
723
754
|
e.value.style.chart.labels.axis.xLabel ? (n(), v("text", {
|
|
724
755
|
key: 5,
|
|
725
756
|
ref_key: "xAxisLabel",
|
|
726
|
-
ref:
|
|
757
|
+
ref: ue,
|
|
727
758
|
x: o.value.left + o.value.width / 2,
|
|
728
759
|
y: o.value.absoluteHeight - e.value.style.chart.labels.axis.fontSize / 3,
|
|
729
760
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
730
761
|
fill: e.value.style.chart.labels.axis.color,
|
|
731
762
|
"text-anchor": "middle"
|
|
732
|
-
}, _(e.value.style.chart.labels.axis.xLabel), 9,
|
|
763
|
+
}, _(e.value.style.chart.labels.axis.xLabel), 9, yl)) : b("", !0),
|
|
733
764
|
e.value.style.chart.labels.xAxisLabels.show ? (n(), v("g", {
|
|
734
765
|
key: 6,
|
|
735
766
|
ref_key: "scaleLabels",
|
|
736
|
-
ref:
|
|
767
|
+
ref: Q
|
|
737
768
|
}, [
|
|
738
769
|
(n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("text", {
|
|
739
770
|
class: "vue-ui-dumbbell-scale-label",
|
|
@@ -743,7 +774,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
743
774
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
744
775
|
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
745
776
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
746
|
-
}, _(i(
|
|
777
|
+
}, _(i(P)(
|
|
747
778
|
e.value.style.chart.labels.formatter,
|
|
748
779
|
t,
|
|
749
780
|
i(w)({
|
|
@@ -753,142 +784,142 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
753
784
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
754
785
|
}),
|
|
755
786
|
{ datapoint: t, seriesIndex: a }
|
|
756
|
-
)), 9,
|
|
787
|
+
)), 9, bl))), 128))
|
|
757
788
|
], 512)) : b("", !0),
|
|
758
|
-
|
|
759
|
-
|
|
789
|
+
j(c("g", null, [
|
|
790
|
+
j(c("path", {
|
|
760
791
|
d: `M ${r.value ? r.value.startX : o.value.left},${o.value.top} ${r.value ? r.value.startX : o.value.left},${o.value.bottom}`,
|
|
761
792
|
stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.startColor : "transparent",
|
|
762
793
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
763
794
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
764
795
|
style: { transition: "all 0.3s ease-in-out" }
|
|
765
|
-
}, null, 8,
|
|
766
|
-
[
|
|
796
|
+
}, null, 8, gl), [
|
|
797
|
+
[Y, r.value !== null && ![null, void 0].includes(r.value.start)]
|
|
767
798
|
]),
|
|
768
|
-
|
|
799
|
+
j(c("path", {
|
|
769
800
|
d: `M ${r.value ? r.value.endX : o.value.left},${o.value.top} ${r.value ? r.value.endX : o.value.left},${o.value.bottom}`,
|
|
770
801
|
stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.endColor : "transparent",
|
|
771
802
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
772
803
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
773
804
|
style: { transition: "all 0.3s ease-in-out" }
|
|
774
|
-
}, null, 8,
|
|
775
|
-
[
|
|
805
|
+
}, null, 8, ml), [
|
|
806
|
+
[Y, r.value !== null && ![null, void 0].includes(r.value.end)]
|
|
776
807
|
]),
|
|
777
|
-
|
|
808
|
+
j(c("rect", {
|
|
778
809
|
x: r.value ? Math.min(r.value.startX, r.value.endX) : o.value.left,
|
|
779
810
|
y: o.value.top,
|
|
780
811
|
height: Math.max(0.1, o.value.height),
|
|
781
812
|
width: r.value ? Math.max(0.1, Math.abs(r.value.endX - r.value.startX)) : 0,
|
|
782
|
-
fill: r.value ? i(
|
|
813
|
+
fill: r.value ? i(ut)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
|
|
783
814
|
style: { transition: "all 0.3s ease-in-out" }
|
|
784
|
-
}, null, 8,
|
|
785
|
-
[
|
|
815
|
+
}, null, 8, pl), [
|
|
816
|
+
[Y, e.value.style.chart.comparisonLines.showRect && r.value !== null && ![null, void 0].includes(r.value.start) && ![null, void 0].includes(r.value.end)]
|
|
786
817
|
]),
|
|
787
|
-
|
|
788
|
-
transform: `translate(${
|
|
818
|
+
j(c("text", {
|
|
819
|
+
transform: `translate(${xe.value == null ? 0 : xe.value}, ${o.value.top - 6})`,
|
|
789
820
|
fill: e.value.style.chart.comparisonLines.labelColor,
|
|
790
821
|
"font-size": e.value.style.chart.comparisonLines.labelFontSize,
|
|
791
822
|
"text-anchor": "middle",
|
|
792
823
|
style: { transition: "all 0.3s ease-in-out" }
|
|
793
|
-
}, _(
|
|
794
|
-
[
|
|
824
|
+
}, _(Mt.value), 9, xl), [
|
|
825
|
+
[Y, r.value !== null && xe.value !== null && e.value.style.chart.comparisonLines.showLabel]
|
|
795
826
|
])
|
|
796
827
|
], 512), [
|
|
797
|
-
[
|
|
828
|
+
[Y, e.value.style.chart.comparisonLines.show && O.value !== null]
|
|
798
829
|
]),
|
|
799
830
|
c("defs", null, [
|
|
800
831
|
c("radialGradient", {
|
|
801
|
-
id: `start_grad_${
|
|
832
|
+
id: `start_grad_${f.value}`,
|
|
802
833
|
fy: "30%"
|
|
803
834
|
}, [
|
|
804
835
|
c("stop", {
|
|
805
836
|
offset: "10%",
|
|
806
|
-
"stop-color": i(
|
|
807
|
-
}, null, 8,
|
|
837
|
+
"stop-color": i(Z)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
838
|
+
}, null, 8, kl),
|
|
808
839
|
c("stop", {
|
|
809
840
|
offset: "90%",
|
|
810
|
-
"stop-color": i(
|
|
811
|
-
}, null, 8,
|
|
841
|
+
"stop-color": i(J)(e.value.style.chart.plots.startColor, 0.1)
|
|
842
|
+
}, null, 8, Cl),
|
|
812
843
|
c("stop", {
|
|
813
844
|
offset: "100%",
|
|
814
845
|
"stop-color": e.value.style.chart.plots.startColor
|
|
815
|
-
}, null, 8,
|
|
816
|
-
], 8,
|
|
846
|
+
}, null, 8, wl)
|
|
847
|
+
], 8, _l),
|
|
817
848
|
c("radialGradient", {
|
|
818
|
-
id: `end_grad_${
|
|
849
|
+
id: `end_grad_${f.value}`,
|
|
819
850
|
fy: "30%"
|
|
820
851
|
}, [
|
|
821
852
|
c("stop", {
|
|
822
853
|
offset: "10%",
|
|
823
|
-
"stop-color": i(
|
|
824
|
-
}, null, 8,
|
|
854
|
+
"stop-color": i(Z)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
855
|
+
}, null, 8, Ll),
|
|
825
856
|
c("stop", {
|
|
826
857
|
offset: "90%",
|
|
827
|
-
"stop-color": i(
|
|
828
|
-
}, null, 8,
|
|
858
|
+
"stop-color": i(J)(e.value.style.chart.plots.endColor, 0.1)
|
|
859
|
+
}, null, 8, Al),
|
|
829
860
|
c("stop", {
|
|
830
861
|
offset: "100%",
|
|
831
862
|
"stop-color": e.value.style.chart.plots.endColor
|
|
832
|
-
}, null, 8,
|
|
833
|
-
], 8,
|
|
863
|
+
}, null, 8, Nl)
|
|
864
|
+
], 8, $l),
|
|
834
865
|
c("radialGradient", {
|
|
835
|
-
id: `positive_grad_${
|
|
866
|
+
id: `positive_grad_${f.value}`,
|
|
836
867
|
fy: "30%"
|
|
837
868
|
}, [
|
|
838
869
|
c("stop", {
|
|
839
870
|
offset: "10%",
|
|
840
|
-
"stop-color": i(
|
|
841
|
-
}, null, 8,
|
|
871
|
+
"stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
|
|
872
|
+
}, null, 8, Ml),
|
|
842
873
|
c("stop", {
|
|
843
874
|
offset: "90%",
|
|
844
|
-
"stop-color": i(
|
|
845
|
-
}, null, 8,
|
|
875
|
+
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
|
|
876
|
+
}, null, 8, Xl),
|
|
846
877
|
c("stop", {
|
|
847
878
|
offset: "100%",
|
|
848
879
|
"stop-color": e.value.style.chart.plots.evaluationColors.positive
|
|
849
|
-
}, null, 8,
|
|
850
|
-
], 8,
|
|
880
|
+
}, null, 8, zl)
|
|
881
|
+
], 8, Sl),
|
|
851
882
|
c("radialGradient", {
|
|
852
|
-
id: `negative_grad_${
|
|
883
|
+
id: `negative_grad_${f.value}`,
|
|
853
884
|
fy: "30%"
|
|
854
885
|
}, [
|
|
855
886
|
c("stop", {
|
|
856
887
|
offset: "10%",
|
|
857
|
-
"stop-color": i(
|
|
858
|
-
}, null, 8,
|
|
888
|
+
"stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
|
|
889
|
+
}, null, 8, Dl),
|
|
859
890
|
c("stop", {
|
|
860
891
|
offset: "90%",
|
|
861
|
-
"stop-color": i(
|
|
862
|
-
}, null, 8,
|
|
892
|
+
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
|
|
893
|
+
}, null, 8, Il),
|
|
863
894
|
c("stop", {
|
|
864
895
|
offset: "100%",
|
|
865
896
|
"stop-color": e.value.style.chart.plots.evaluationColors.negative
|
|
866
|
-
}, null, 8,
|
|
867
|
-
], 8,
|
|
897
|
+
}, null, 8, Ol)
|
|
898
|
+
], 8, Tl),
|
|
868
899
|
c("radialGradient", {
|
|
869
|
-
id: `neutral_grad_${
|
|
900
|
+
id: `neutral_grad_${f.value}`,
|
|
870
901
|
fy: "30%"
|
|
871
902
|
}, [
|
|
872
903
|
c("stop", {
|
|
873
904
|
offset: "10%",
|
|
874
|
-
"stop-color": i(
|
|
875
|
-
}, null, 8,
|
|
905
|
+
"stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
|
|
906
|
+
}, null, 8, Hl),
|
|
876
907
|
c("stop", {
|
|
877
908
|
offset: "90%",
|
|
878
|
-
"stop-color": i(
|
|
879
|
-
}, null, 8,
|
|
909
|
+
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
|
|
910
|
+
}, null, 8, Pl),
|
|
880
911
|
c("stop", {
|
|
881
912
|
offset: "100%",
|
|
882
913
|
"stop-color": e.value.style.chart.plots.evaluationColors.neutral
|
|
883
|
-
}, null, 8,
|
|
884
|
-
], 8,
|
|
914
|
+
}, null, 8, Gl)
|
|
915
|
+
], 8, Fl)
|
|
885
916
|
]),
|
|
886
917
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
887
918
|
key: `plot_${a}_${t.id}`
|
|
888
919
|
}, [
|
|
889
920
|
c("defs", null, [
|
|
890
921
|
c("linearGradient", {
|
|
891
|
-
id: `grad_pos_${
|
|
922
|
+
id: `grad_pos_${f.value}`,
|
|
892
923
|
x1: "0%",
|
|
893
924
|
x2: "100%",
|
|
894
925
|
y1: "0%",
|
|
@@ -897,14 +928,14 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
897
928
|
c("stop", {
|
|
898
929
|
offset: "0%",
|
|
899
930
|
"stop-color": e.value.style.chart.plots.startColor
|
|
900
|
-
}, null, 8,
|
|
931
|
+
}, null, 8, Bl),
|
|
901
932
|
c("stop", {
|
|
902
933
|
offset: "100%",
|
|
903
934
|
"stop-color": e.value.style.chart.plots.endColor
|
|
904
|
-
}, null, 8,
|
|
905
|
-
], 8,
|
|
935
|
+
}, null, 8, Rl)
|
|
936
|
+
], 8, El),
|
|
906
937
|
c("linearGradient", {
|
|
907
|
-
id: `grad_neg_${
|
|
938
|
+
id: `grad_neg_${f.value}`,
|
|
908
939
|
x1: "0%",
|
|
909
940
|
x2: "100%",
|
|
910
941
|
y1: "0%",
|
|
@@ -913,68 +944,68 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
913
944
|
c("stop", {
|
|
914
945
|
offset: "0%",
|
|
915
946
|
"stop-color": e.value.style.chart.plots.endColor
|
|
916
|
-
}, null, 8,
|
|
947
|
+
}, null, 8, Ul),
|
|
917
948
|
c("stop", {
|
|
918
949
|
offset: "100%",
|
|
919
950
|
"stop-color": e.value.style.chart.plots.startColor
|
|
920
|
-
}, null, 8,
|
|
921
|
-
], 8,
|
|
951
|
+
}, null, 8, Wl)
|
|
952
|
+
], 8, Vl)
|
|
922
953
|
]),
|
|
923
|
-
![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g",
|
|
924
|
-
e.value.style.chart.plots.link.type === "curved" ? (n(), v("g",
|
|
954
|
+
![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g", ql, [
|
|
955
|
+
e.value.style.chart.plots.link.type === "curved" ? (n(), v("g", jl, [
|
|
925
956
|
c("path", {
|
|
926
957
|
d: `M
|
|
927
|
-
${t.startX},${t.y +
|
|
958
|
+
${t.startX},${t.y + z.value / 2}
|
|
928
959
|
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
929
|
-
${t.endX},${t.y +
|
|
930
|
-
L ${t.endX},${t.y -
|
|
960
|
+
${t.endX},${t.y + z.value / 2}
|
|
961
|
+
L ${t.endX},${t.y - z.value / 2}
|
|
931
962
|
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
932
|
-
${t.startX},${t.y -
|
|
963
|
+
${t.startX},${t.y - z.value / 2}
|
|
933
964
|
Z
|
|
934
965
|
`,
|
|
935
|
-
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${
|
|
936
|
-
}, null, 8,
|
|
937
|
-
])) : (n(), v("g",
|
|
966
|
+
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
|
|
967
|
+
}, null, 8, Yl)
|
|
968
|
+
])) : (n(), v("g", Zl, [
|
|
938
969
|
c("rect", {
|
|
939
970
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
940
971
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
941
972
|
height: Math.max(0.01, e.value.style.chart.plots.link.strokeWidth),
|
|
942
973
|
width: Math.max(0.01, Math.abs(t.endX - t.startX)),
|
|
943
|
-
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${
|
|
944
|
-
}, null, 8,
|
|
974
|
+
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
|
|
975
|
+
}, null, 8, Jl)
|
|
945
976
|
]))
|
|
946
977
|
])) : b("", !0),
|
|
947
978
|
[null, void 0].includes(t.start) ? b("", !0) : (n(), v("circle", {
|
|
948
979
|
key: 1,
|
|
949
980
|
cx: t.startX,
|
|
950
981
|
cy: t.y,
|
|
951
|
-
r:
|
|
952
|
-
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${
|
|
982
|
+
r: z.value,
|
|
983
|
+
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
|
|
953
984
|
stroke: e.value.style.chart.plots.stroke,
|
|
954
985
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
955
|
-
}, null, 8,
|
|
986
|
+
}, null, 8, Kl)),
|
|
956
987
|
[null, void 0].includes(t.end) ? b("", !0) : (n(), v("circle", {
|
|
957
988
|
key: 2,
|
|
958
989
|
cx: t.endX,
|
|
959
990
|
cy: t.y,
|
|
960
|
-
r:
|
|
961
|
-
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${
|
|
991
|
+
r: z.value,
|
|
992
|
+
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
|
|
962
993
|
stroke: e.value.style.chart.plots.stroke,
|
|
963
994
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
964
|
-
}, null, 8,
|
|
995
|
+
}, null, 8, Ql))
|
|
965
996
|
]))), 128)),
|
|
966
|
-
e.value.style.chart.labels.startLabels.show ? (n(), v("g",
|
|
997
|
+
e.value.style.chart.labels.startLabels.show ? (n(), v("g", ea, [
|
|
967
998
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
968
999
|
key: `start_label_${a}_${t.id}`
|
|
969
1000
|
}, [
|
|
970
1001
|
[null, void 0].includes(t.start) ? b("", !0) : (n(), v("text", {
|
|
971
1002
|
key: 0,
|
|
972
1003
|
x: t.startX,
|
|
973
|
-
y: t.y +
|
|
1004
|
+
y: t.y + z.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
|
|
974
1005
|
fill: e.value.style.chart.plots.evaluationColors.enable && e.value.style.chart.labels.startLabels.useEvaluationColor ? t.evaluationColor : e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
975
1006
|
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
976
1007
|
"text-anchor": "middle"
|
|
977
|
-
}, _(i(
|
|
1008
|
+
}, _(i(P)(
|
|
978
1009
|
e.value.style.chart.labels.formatter,
|
|
979
1010
|
t.start,
|
|
980
1011
|
i(w)({
|
|
@@ -984,21 +1015,21 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
984
1015
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
985
1016
|
}),
|
|
986
1017
|
{ datapoint: t, seriesIndex: a }
|
|
987
|
-
)), 9,
|
|
1018
|
+
)), 9, ta))
|
|
988
1019
|
]))), 128))
|
|
989
1020
|
])) : b("", !0),
|
|
990
|
-
e.value.style.chart.labels.endLabels.show ? (n(), v("g",
|
|
1021
|
+
e.value.style.chart.labels.endLabels.show ? (n(), v("g", la, [
|
|
991
1022
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
992
1023
|
key: `end_label_${a}_${t.id}`
|
|
993
1024
|
}, [
|
|
994
1025
|
[null, void 0].includes(t.end) ? b("", !0) : (n(), v("text", {
|
|
995
1026
|
key: 0,
|
|
996
1027
|
x: t.endX,
|
|
997
|
-
y: t.y - (
|
|
1028
|
+
y: t.y - (z.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
|
|
998
1029
|
fill: e.value.style.chart.plots.evaluationColors.enable && e.value.style.chart.labels.endLabels.useEvaluationColor ? t.evaluationColor : e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
999
1030
|
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
1000
1031
|
"text-anchor": "middle"
|
|
1001
|
-
}, _(i(
|
|
1032
|
+
}, _(i(P)(
|
|
1002
1033
|
e.value.style.chart.labels.formatter,
|
|
1003
1034
|
t.end,
|
|
1004
1035
|
i(w)({
|
|
@@ -1008,7 +1039,7 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
1008
1039
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
1009
1040
|
}),
|
|
1010
1041
|
{ datapoint: t, seriesIndex: a }
|
|
1011
|
-
)), 9,
|
|
1042
|
+
)), 9, aa))
|
|
1012
1043
|
]))), 128))
|
|
1013
1044
|
])) : b("", !0),
|
|
1014
1045
|
c("g", null, [
|
|
@@ -1017,40 +1048,40 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
1017
1048
|
y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
|
|
1018
1049
|
width: Math.max(0.1, o.value.width),
|
|
1019
1050
|
height: Math.max(0.1, o.value.rowHeight),
|
|
1020
|
-
fill: O.value !== null && O.value === a ? i(
|
|
1021
|
-
onMouseenter: (u) =>
|
|
1022
|
-
onMouseleave: (u) =>
|
|
1023
|
-
onClick: (u) =>
|
|
1024
|
-
}, null, 40,
|
|
1051
|
+
fill: O.value !== null && O.value === a ? i(ut)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
|
|
1052
|
+
onMouseenter: (u) => ge({ datapoint: t, seriesIndex: a }),
|
|
1053
|
+
onMouseleave: (u) => me({ datapoint: t, seriesIndex: a }),
|
|
1054
|
+
onClick: (u) => pe({ datapoint: t, seriesIndex: a })
|
|
1055
|
+
}, null, 40, sa))), 256))
|
|
1025
1056
|
]),
|
|
1026
|
-
|
|
1027
|
-
], 14,
|
|
1028
|
-
l.$slots.watermark ? (n(), v("div",
|
|
1029
|
-
|
|
1057
|
+
x(l.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1058
|
+
], 14, ol)),
|
|
1059
|
+
l.$slots.watermark ? (n(), v("div", oa, [
|
|
1060
|
+
x(l.$slots, "watermark", se(oe({ isPrinting: i(Fe) || i(He) })), void 0, !0)
|
|
1030
1061
|
])) : b("", !0),
|
|
1031
1062
|
c("div", {
|
|
1032
|
-
id: `legend-bottom-${
|
|
1033
|
-
}, null, 8,
|
|
1034
|
-
|
|
1063
|
+
id: `legend-bottom-${f.value}`
|
|
1064
|
+
}, null, 8, na),
|
|
1065
|
+
Xe.value ? (n(), I(Dt, {
|
|
1035
1066
|
key: 5,
|
|
1036
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1067
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1037
1068
|
}, [
|
|
1038
1069
|
c("div", {
|
|
1039
1070
|
ref_key: "chartLegend",
|
|
1040
|
-
ref:
|
|
1071
|
+
ref: $e
|
|
1041
1072
|
}, [
|
|
1042
|
-
e.value.style.chart.legend.show &&
|
|
1043
|
-
key: `legend_${
|
|
1044
|
-
legendSet:
|
|
1045
|
-
config:
|
|
1073
|
+
e.value.style.chart.legend.show && K.value ? (n(), I(tl, {
|
|
1074
|
+
key: `legend_${Me.value}`,
|
|
1075
|
+
legendSet: We.value,
|
|
1076
|
+
config: wt.value,
|
|
1046
1077
|
clickable: !1
|
|
1047
1078
|
}, {
|
|
1048
|
-
item:
|
|
1079
|
+
item: p(({ legend: t }) => [
|
|
1049
1080
|
c("div", {
|
|
1050
|
-
style:
|
|
1081
|
+
style: ae(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
1051
1082
|
}, [
|
|
1052
1083
|
(n(), v("svg", {
|
|
1053
|
-
xmlns: i(
|
|
1084
|
+
xmlns: i(rt),
|
|
1054
1085
|
viewBox: "0 0 20 20",
|
|
1055
1086
|
height: e.value.style.chart.legend.fontSize,
|
|
1056
1087
|
width: e.value.style.chart.legend.fontSize
|
|
@@ -1060,72 +1091,86 @@ const Jt = ["id"], Kt = ["id"], Qt = ["xmlns", "viewBox"], el = ["x", "y", "widt
|
|
|
1060
1091
|
cy: 10,
|
|
1061
1092
|
r: 9,
|
|
1062
1093
|
fill: t.color
|
|
1063
|
-
}, null, 8,
|
|
1064
|
-
], 8,
|
|
1065
|
-
i(
|
|
1066
|
-
|
|
1094
|
+
}, null, 8, ua)
|
|
1095
|
+
], 8, ra)),
|
|
1096
|
+
i(ie) ? b("", !0) : (n(), v(C, { key: 0 }, [
|
|
1097
|
+
_e(_(t.name), 1)
|
|
1067
1098
|
], 64))
|
|
1068
1099
|
], 4)
|
|
1069
1100
|
]),
|
|
1070
1101
|
_: 1
|
|
1071
|
-
}, 8, ["legendSet", "config"])) :
|
|
1102
|
+
}, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
|
|
1072
1103
|
key: 1,
|
|
1073
|
-
legend:
|
|
1104
|
+
legend: We.value
|
|
1074
1105
|
}, void 0, !0)
|
|
1075
1106
|
], 512)
|
|
1076
1107
|
], 8, ["to"])) : b("", !0),
|
|
1077
1108
|
l.$slots.source ? (n(), v("div", {
|
|
1078
1109
|
key: 6,
|
|
1079
1110
|
ref_key: "source",
|
|
1080
|
-
ref:
|
|
1111
|
+
ref: Le,
|
|
1081
1112
|
dir: "auto"
|
|
1082
1113
|
}, [
|
|
1083
|
-
|
|
1114
|
+
x(l.$slots, "source", {}, void 0, !0)
|
|
1084
1115
|
], 512)) : b("", !0),
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
}, {
|
|
1101
|
-
content: x(() => [
|
|
1102
|
-
(n(), T(i(it), {
|
|
1103
|
-
key: `table_${$e.value}`,
|
|
1104
|
-
colNames: K.value.colNames,
|
|
1105
|
-
head: K.value.head,
|
|
1106
|
-
body: K.value.body,
|
|
1107
|
-
config: K.value.config,
|
|
1108
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1109
|
-
onClose: s[0] || (s[0] = (t) => D.value.showTable = !1)
|
|
1116
|
+
K.value ? (n(), I(It(q.value.component), Ot({ key: 7 }, q.value.props, {
|
|
1117
|
+
ref_key: "tableUnit",
|
|
1118
|
+
ref: U,
|
|
1119
|
+
onClose: s[2] || (s[2] = (t) => X.value.showTable = !1)
|
|
1120
|
+
}), lt({
|
|
1121
|
+
content: p(() => [
|
|
1122
|
+
(n(), I(i(ft), {
|
|
1123
|
+
key: `table_${Se.value}`,
|
|
1124
|
+
colNames: ee.value.colNames,
|
|
1125
|
+
head: ee.value.head,
|
|
1126
|
+
body: ee.value.body,
|
|
1127
|
+
config: ee.value.config,
|
|
1128
|
+
title: e.value.table.useDialog ? "" : q.value.title,
|
|
1129
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1130
|
+
onClose: s[1] || (s[1] = (t) => X.value.showTable = !1)
|
|
1110
1131
|
}, {
|
|
1111
|
-
th:
|
|
1132
|
+
th: p(({ th: t }) => [
|
|
1112
1133
|
c("div", {
|
|
1113
1134
|
innerHTML: t,
|
|
1114
1135
|
style: { display: "flex", "align-items": "center" }
|
|
1115
|
-
}, null, 8,
|
|
1136
|
+
}, null, 8, ia)
|
|
1116
1137
|
]),
|
|
1117
|
-
td:
|
|
1118
|
-
|
|
1138
|
+
td: p(({ td: t }) => [
|
|
1139
|
+
_e(_(t.name || t), 1)
|
|
1119
1140
|
]),
|
|
1120
1141
|
_: 1
|
|
1121
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1142
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1122
1143
|
]),
|
|
1123
|
-
_:
|
|
1124
|
-
},
|
|
1125
|
-
|
|
1126
|
-
|
|
1144
|
+
_: 2
|
|
1145
|
+
}, [
|
|
1146
|
+
e.value.table.useDialog ? {
|
|
1147
|
+
name: "title",
|
|
1148
|
+
fn: p(() => [
|
|
1149
|
+
_e(_(q.value.title), 1)
|
|
1150
|
+
]),
|
|
1151
|
+
key: "0"
|
|
1152
|
+
} : void 0,
|
|
1153
|
+
e.value.table.useDialog ? {
|
|
1154
|
+
name: "actions",
|
|
1155
|
+
fn: p(() => [
|
|
1156
|
+
c("button", {
|
|
1157
|
+
tabindex: "0",
|
|
1158
|
+
class: "vue-ui-user-options-button",
|
|
1159
|
+
onClick: s[0] || (s[0] = (t) => ye(e.value.userOptions.callbacks.csv))
|
|
1160
|
+
}, [
|
|
1161
|
+
at(i(dt), {
|
|
1162
|
+
name: "excel",
|
|
1163
|
+
stroke: q.value.props.color
|
|
1164
|
+
}, null, 8, ["stroke"])
|
|
1165
|
+
])
|
|
1166
|
+
]),
|
|
1167
|
+
key: "1"
|
|
1168
|
+
} : void 0
|
|
1169
|
+
]), 1040)) : b("", !0),
|
|
1170
|
+
i(ie) ? (n(), I(Yt, { key: 8 })) : b("", !0)
|
|
1171
|
+
], 46, al));
|
|
1127
1172
|
}
|
|
1128
|
-
},
|
|
1173
|
+
}, $a = /* @__PURE__ */ ll(ca, [["__scopeId", "data-v-0a9a1b98"]]);
|
|
1129
1174
|
export {
|
|
1130
|
-
|
|
1175
|
+
$a as default
|
|
1131
1176
|
};
|