vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,17 +1,18 @@
|
|
|
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
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as O, computed as m, ref as d, watch as pe, shallowRef as me, onMounted as ke, onBeforeUnmount as Ue, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as V, normalizeClass as _e, createBlock as z, createCommentVNode as v, createElementVNode as i, createSlots as Be, withCtx as _, renderSlot as k, normalizeProps as E, guardReactiveProps as H, createVNode as je, Fragment as $, renderList as L, toDisplayString as S, createTextVNode as xe, nextTick as qe } from "vue";
|
|
2
|
+
import { u as Ye, c as we, a as Ze, o as Je, e as Ce, g as Ke, v as $e, D as Qe, f as X, X as Le, i as q, l as Ae, h as ze, q as et, r as tt } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { t as lt, u as at } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Se } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as st } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import nt from "./Legend-CYbP3Kfg.js";
|
|
9
|
+
import ut from "./Title-pVYRzQXY.js";
|
|
10
|
+
import it from "./img-ku4zevVD.js";
|
|
11
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const dt = ["id"], vt = ["xmlns", "viewBox"], ht = ["x", "y", "width", "height"], yt = { key: 1 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = { key: 2 }, gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], mt = { key: 3 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["x", "y", "font-size", "fill"], xt = { key: 4 }, wt = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["id"], $t = ["stop-color"], Lt = ["stop-color"], At = ["stop-color"], zt = ["id"], St = ["stop-color"], Xt = ["stop-color"], Nt = ["stop-color"], Tt = ["id"], Ot = ["stop-color"], Pt = ["stop-color"], It = ["id"], Mt = ["stop-color"], Gt = ["stop-color"], Dt = { key: 0 }, Ft = ["d", "fill"], Rt = { key: 1 }, Vt = ["x", "y", "height", "width", "fill"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ht = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Wt = { key: 5 }, Ut = ["x", "y", "fill", "font-size"], Bt = { key: 6 }, jt = ["x", "y", "fill", "font-size"], qt = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, Yt = ["xmlns", "height", "width"], Zt = ["fill"], Jt = ["innerHTML"], Kt = {
|
|
15
16
|
__name: "vue-ui-dumbbell",
|
|
16
17
|
props: {
|
|
17
18
|
config: {
|
|
@@ -28,49 +29,49 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
emits: ["selectDatapoint"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
32
|
+
setup(Xe, { expose: Ne, emit: Qt }) {
|
|
33
|
+
const Te = O(() => import("./vue-ui-accordion-DgZK-qDz.js")), Oe = O(() => import("./DataTable-CgL0Rz0x.js")), Pe = O(() => import("./PackageVersion-CAkNkiIG.js")), Ie = O(() => import("./PenAndPaper-Cx1-5zdD.js")), Me = O(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Ge = O(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_dumbbell: De } = Ye(), g = Xe, N = m({
|
|
33
34
|
get() {
|
|
34
|
-
return !!
|
|
35
|
+
return !!g.dataset && g.dataset.length;
|
|
35
36
|
},
|
|
36
37
|
set(l) {
|
|
37
38
|
return l;
|
|
38
39
|
}
|
|
39
|
-
}), y = d(
|
|
40
|
+
}), y = d(we()), Y = d(0), A = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), te = d(0), le = d(0), e = m({
|
|
40
41
|
get: () => re(),
|
|
41
42
|
set: (l) => l
|
|
42
|
-
}), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } =
|
|
43
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = ot({ config: e.value }), { svgRef: oe } = rt({ config: e.value.style.chart.title });
|
|
43
44
|
function re() {
|
|
44
|
-
const l =
|
|
45
|
-
userConfig:
|
|
46
|
-
defaultConfig:
|
|
45
|
+
const l = Se({
|
|
46
|
+
userConfig: g.config,
|
|
47
|
+
defaultConfig: De
|
|
47
48
|
});
|
|
48
49
|
return l.theme ? {
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
50
|
+
...Se({
|
|
51
|
+
userConfig: Ze.vue_ui_dumbbell[l.theme] || g.config,
|
|
51
52
|
defaultConfig: l
|
|
52
53
|
})
|
|
53
54
|
} : l;
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
-
e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight,
|
|
57
|
-
}, { deep: !0 }),
|
|
56
|
+
pe(() => g.config, (l) => {
|
|
57
|
+
e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight, I.value = e.value.style.chart.width, P.value.showTable = e.value.table.show;
|
|
58
|
+
}, { deep: !0 }), pe(() => g.dataset, (l) => {
|
|
58
59
|
he();
|
|
59
60
|
}, { deep: !0 });
|
|
60
|
-
const
|
|
61
|
-
|
|
61
|
+
const w = me(null), T = me(null);
|
|
62
|
+
ke(() => {
|
|
62
63
|
ne();
|
|
63
64
|
});
|
|
64
65
|
function ne() {
|
|
65
|
-
if (
|
|
66
|
+
if (Je(g.dataset) ? Ce({
|
|
66
67
|
componentName: "VueUiDumbbell",
|
|
67
68
|
type: "dataset"
|
|
68
|
-
}) :
|
|
69
|
-
|
|
69
|
+
}) : g.dataset.forEach((l, u) => {
|
|
70
|
+
Ke({
|
|
70
71
|
datasetObject: l,
|
|
71
72
|
requiredAttributes: ["name", "start", "end"]
|
|
72
73
|
}).forEach((t) => {
|
|
73
|
-
|
|
74
|
+
N.value = !1, Ce({
|
|
74
75
|
componentName: "VueUiDumbbell",
|
|
75
76
|
type: "datasetSerieAttribute",
|
|
76
77
|
property: t,
|
|
@@ -78,47 +79,47 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
78
79
|
});
|
|
79
80
|
});
|
|
80
81
|
}), e.value.responsive) {
|
|
81
|
-
const l =
|
|
82
|
-
const { width: u, height: t } =
|
|
83
|
-
chart:
|
|
82
|
+
const l = lt(() => {
|
|
83
|
+
const { width: u, height: t } = at({
|
|
84
|
+
chart: A.value,
|
|
84
85
|
title: e.value.style.chart.title.text ? Z.value : null,
|
|
85
86
|
legend: e.value.style.chart.legend.show ? J.value : null,
|
|
86
87
|
source: K.value,
|
|
87
88
|
noTitle: Q.value
|
|
88
89
|
});
|
|
89
90
|
requestAnimationFrame(() => {
|
|
90
|
-
|
|
91
|
+
I.value = u, h.value = t / g.dataset.length, f.value = G();
|
|
91
92
|
});
|
|
92
93
|
});
|
|
93
|
-
|
|
94
|
+
w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect()), w.value = new ResizeObserver(l), T.value = A.value.parentNode, w.value.observe(T.value);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
Ue(() => {
|
|
98
|
+
w.value && (T.value && w.value.unobserve(T.value), w.value.disconnect());
|
|
98
99
|
});
|
|
99
|
-
const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } =
|
|
100
|
+
const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = st({
|
|
100
101
|
elementId: `dumbbell_${y.value}`,
|
|
101
102
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
102
103
|
options: e.value.userOptions.print
|
|
103
|
-
}),
|
|
104
|
+
}), Fe = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
|
|
104
105
|
showTable: e.value.table.show
|
|
105
|
-
}),
|
|
106
|
+
}), x = m(() => g.dataset.map((l, u) => ({
|
|
106
107
|
...l,
|
|
107
|
-
start:
|
|
108
|
-
end:
|
|
109
|
-
id:
|
|
110
|
-
}))), U =
|
|
111
|
-
max: Math.max(...
|
|
112
|
-
min: Math.min(...
|
|
113
|
-
})), c =
|
|
114
|
-
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right +
|
|
108
|
+
start: $e(l.start),
|
|
109
|
+
end: $e(l.end),
|
|
110
|
+
id: we()
|
|
111
|
+
}))), U = m(() => ({
|
|
112
|
+
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
113
|
+
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
114
|
+
})), c = m(() => Qe(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), I = d(e.value.style.chart.width), s = m(() => {
|
|
115
|
+
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + I.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * g.dataset.length, a = c.value.ticks.length * (I.value / c.value.ticks.length);
|
|
115
116
|
return {
|
|
116
117
|
left: e.value.style.chart.padding.left,
|
|
117
118
|
right: u - e.value.style.chart.padding.right,
|
|
118
119
|
top: e.value.style.chart.padding.top,
|
|
119
120
|
bottom: t - e.value.style.chart.padding.bottom,
|
|
120
|
-
width:
|
|
121
|
-
height: l *
|
|
121
|
+
width: I.value,
|
|
122
|
+
height: l * g.dataset.length,
|
|
122
123
|
rowHeight: l,
|
|
123
124
|
absoluteHeight: t,
|
|
124
125
|
absoluteWidth: u,
|
|
@@ -126,46 +127,46 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
126
127
|
};
|
|
127
128
|
});
|
|
128
129
|
function G() {
|
|
129
|
-
return
|
|
130
|
-
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference,
|
|
130
|
+
return x.value.map((l, u) => {
|
|
131
|
+
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, p = t + (a - t) / 2;
|
|
131
132
|
return {
|
|
132
133
|
...l,
|
|
133
134
|
startX: t,
|
|
134
135
|
endX: a,
|
|
135
|
-
centerX:
|
|
136
|
+
centerX: p,
|
|
136
137
|
y: s.value.top + u * h.value + h.value / 2,
|
|
137
138
|
endVal: l.start
|
|
138
139
|
};
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
|
-
const f = d([]), ve = d(null),
|
|
142
|
-
|
|
142
|
+
const f = d([]), ve = d(null), Re = m(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
|
|
143
|
+
ke(() => {
|
|
143
144
|
he();
|
|
144
145
|
});
|
|
145
146
|
function he() {
|
|
146
147
|
f.value = G();
|
|
147
148
|
let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
|
|
148
149
|
function u() {
|
|
149
|
-
const t =
|
|
150
|
-
l >=
|
|
151
|
-
a.endVal += t[
|
|
152
|
-
const
|
|
150
|
+
const t = x.value.map((a) => a.end - a.start);
|
|
151
|
+
l >= Re.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, p) => {
|
|
152
|
+
a.endVal += t[p] * (e.value.animationSpeed / 100);
|
|
153
|
+
const b = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, R = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = b + (R - b) / 2;
|
|
153
154
|
return {
|
|
154
155
|
...a,
|
|
155
|
-
startX:
|
|
156
|
-
endX:
|
|
156
|
+
startX: b,
|
|
157
|
+
endX: R,
|
|
157
158
|
centerX: j,
|
|
158
|
-
y: s.value.top +
|
|
159
|
+
y: s.value.top + p * h.value + h.value / 2,
|
|
159
160
|
endVal: a.endVal
|
|
160
161
|
};
|
|
161
|
-
}), l = f.value.map((a) => a.endVal).reduce((a,
|
|
162
|
+
}), l = f.value.map((a) => a.endVal).reduce((a, p) => a + p, 0), ve.value = requestAnimationFrame(u));
|
|
162
163
|
}
|
|
163
164
|
e.value.useAnimation ? u() : f.value = G();
|
|
164
165
|
}
|
|
165
|
-
const ye =
|
|
166
|
+
const ye = m(() => [
|
|
166
167
|
{ 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 },
|
|
167
168
|
{ 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 }
|
|
168
|
-
]), Ve =
|
|
169
|
+
]), Ve = m(() => ({
|
|
169
170
|
cy: "donut-div-legend",
|
|
170
171
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
171
172
|
color: e.value.style.chart.legend.color,
|
|
@@ -173,7 +174,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
173
174
|
paddingBottom: 12,
|
|
174
175
|
paddingTop: 12,
|
|
175
176
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
176
|
-
})), C =
|
|
177
|
+
})), C = m(() => {
|
|
177
178
|
const l = f.value.map((t) => ({
|
|
178
179
|
name: t.name
|
|
179
180
|
})), u = f.value.map((t) => ({
|
|
@@ -181,33 +182,33 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
181
182
|
end: t.end
|
|
182
183
|
}));
|
|
183
184
|
return { head: l, body: u };
|
|
184
|
-
}), D =
|
|
185
|
+
}), D = m(() => {
|
|
185
186
|
const l = [
|
|
186
187
|
e.value.table.columnNames.series,
|
|
187
188
|
e.value.table.columnNames.start,
|
|
188
189
|
e.value.table.columnNames.end,
|
|
189
190
|
e.value.table.columnNames.progression
|
|
190
|
-
], u = C.value.head.map((
|
|
191
|
-
const
|
|
191
|
+
], u = C.value.head.map((p, b) => {
|
|
192
|
+
const R = X({
|
|
192
193
|
p: e.value.style.chart.labels.prefix,
|
|
193
|
-
v: C.value.body[
|
|
194
|
+
v: C.value.body[b].start,
|
|
194
195
|
s: e.value.style.chart.labels.suffix,
|
|
195
196
|
r: e.value.table.td.roundingValue
|
|
196
|
-
}), j =
|
|
197
|
+
}), j = X({
|
|
197
198
|
p: e.value.style.chart.labels.prefix,
|
|
198
|
-
v: C.value.body[
|
|
199
|
+
v: C.value.body[b].end,
|
|
199
200
|
s: e.value.style.chart.labels.suffix,
|
|
200
201
|
r: e.value.table.td.roundingValue
|
|
201
|
-
}),
|
|
202
|
-
v: 100 * (C.value.body[
|
|
202
|
+
}), We = X({
|
|
203
|
+
v: 100 * (C.value.body[b].end / C.value.body[b].start - 1),
|
|
203
204
|
s: "%",
|
|
204
205
|
r: e.value.table.td.roundingPercentage
|
|
205
206
|
});
|
|
206
207
|
return [
|
|
207
|
-
{ name:
|
|
208
|
-
|
|
208
|
+
{ name: p.name },
|
|
209
|
+
R,
|
|
209
210
|
j,
|
|
210
|
-
|
|
211
|
+
We
|
|
211
212
|
];
|
|
212
213
|
}), t = {
|
|
213
214
|
th: {
|
|
@@ -235,44 +236,58 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
235
236
|
};
|
|
236
237
|
});
|
|
237
238
|
function fe(l = null) {
|
|
238
|
-
|
|
239
|
-
const u = C.value.head.map((
|
|
240
|
-
|
|
241
|
-
], [C.value.body[
|
|
242
|
-
l ? l(a) :
|
|
239
|
+
qe(() => {
|
|
240
|
+
const u = C.value.head.map((p, b) => [[
|
|
241
|
+
p.name
|
|
242
|
+
], [C.value.body[b].start], [C.value.body[b].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(u), a = et(t);
|
|
243
|
+
l ? l(a) : tt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
246
|
const M = d(!1);
|
|
246
|
-
function
|
|
247
|
+
function be(l) {
|
|
247
248
|
M.value = l, Y.value += 1;
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
-
return
|
|
250
|
+
function Ee() {
|
|
251
|
+
return x.value;
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
253
|
+
function ge() {
|
|
254
|
+
P.value.showTable = !P.value.showTable;
|
|
254
255
|
}
|
|
255
256
|
const F = d(!1);
|
|
256
257
|
function B() {
|
|
257
258
|
F.value = !F.value;
|
|
258
259
|
}
|
|
259
|
-
|
|
260
|
-
|
|
260
|
+
async function He({ scale: l = 2 } = {}) {
|
|
261
|
+
if (!A.value) return;
|
|
262
|
+
const { width: u, height: t } = A.value.getBoundingClientRect(), a = u / t, { imageUri: p, base64: b } = await it({ domElement: A.value, base64: !0, img: !0, scale: l });
|
|
263
|
+
return {
|
|
264
|
+
imageUri: p,
|
|
265
|
+
base64: b,
|
|
266
|
+
title: e.value.style.chart.title.text,
|
|
267
|
+
width: u,
|
|
268
|
+
height: t,
|
|
269
|
+
aspectRatio: a
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
return Ne({
|
|
273
|
+
getData: Ee,
|
|
274
|
+
getImage: He,
|
|
261
275
|
generatePdf: ce,
|
|
262
276
|
generateCsv: fe,
|
|
263
277
|
generateImage: de,
|
|
264
|
-
toggleTable:
|
|
265
|
-
toggleAnnotator: B
|
|
278
|
+
toggleTable: ge,
|
|
279
|
+
toggleAnnotator: B,
|
|
280
|
+
toggleFullscreen: be
|
|
266
281
|
}), (l, u) => (o(), r("div", {
|
|
267
282
|
ref_key: "dumbbellChart",
|
|
268
|
-
ref:
|
|
269
|
-
class:
|
|
270
|
-
style:
|
|
283
|
+
ref: A,
|
|
284
|
+
class: _e(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
285
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
271
286
|
id: `dumbbell_${y.value}`,
|
|
272
287
|
onMouseenter: u[1] || (u[1] = () => n(ae)(!0)),
|
|
273
288
|
onMouseleave: u[2] || (u[2] = () => n(ae)(!1))
|
|
274
289
|
}, [
|
|
275
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
290
|
+
e.value.userOptions.buttons.annotator ? (o(), z(n(Ie), {
|
|
276
291
|
key: 0,
|
|
277
292
|
svgRef: n(oe),
|
|
278
293
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -280,7 +295,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
280
295
|
active: F.value,
|
|
281
296
|
onClose: B
|
|
282
297
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
283
|
-
|
|
298
|
+
Fe.value ? (o(), r("div", {
|
|
284
299
|
key: 1,
|
|
285
300
|
ref_key: "noTitle",
|
|
286
301
|
ref: Q,
|
|
@@ -293,7 +308,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
293
308
|
ref: Z,
|
|
294
309
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
295
310
|
}, [
|
|
296
|
-
(o(),
|
|
311
|
+
(o(), z(ut, {
|
|
297
312
|
key: `title_${ee.value}`,
|
|
298
313
|
config: {
|
|
299
314
|
title: {
|
|
@@ -307,7 +322,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
307
322
|
}
|
|
308
323
|
}, null, 8, ["config"]))
|
|
309
324
|
], 512)) : v("", !0),
|
|
310
|
-
e.value.userOptions.show &&
|
|
325
|
+
e.value.userOptions.show && N.value && (n(se) || n(W)) ? (o(), z(n(Ge), {
|
|
311
326
|
ref: "details",
|
|
312
327
|
key: `user_option_${Y.value}`,
|
|
313
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -322,81 +337,82 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
322
337
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
323
338
|
isFullscreen: M.value,
|
|
324
339
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
325
|
-
chartElement:
|
|
340
|
+
chartElement: A.value,
|
|
326
341
|
position: e.value.userOptions.position,
|
|
327
342
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
328
343
|
isAnnotation: F.value,
|
|
329
344
|
callbacks: e.value.userOptions.callbacks,
|
|
330
|
-
|
|
345
|
+
printScale: e.value.userOptions.print.scale,
|
|
346
|
+
onToggleFullscreen: be,
|
|
331
347
|
onGeneratePdf: n(ce),
|
|
332
348
|
onGenerateCsv: fe,
|
|
333
349
|
onGenerateImage: n(de),
|
|
334
|
-
onToggleTable:
|
|
350
|
+
onToggleTable: ge,
|
|
335
351
|
onToggleAnnotator: B,
|
|
336
|
-
style:
|
|
352
|
+
style: V({
|
|
337
353
|
visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
|
|
338
354
|
})
|
|
339
|
-
},
|
|
355
|
+
}, Be({ _: 2 }, [
|
|
340
356
|
l.$slots.menuIcon ? {
|
|
341
357
|
name: "menuIcon",
|
|
342
|
-
fn:
|
|
343
|
-
|
|
358
|
+
fn: _(({ isOpen: t, color: a }) => [
|
|
359
|
+
k(l.$slots, "menuIcon", E(H({ isOpen: t, color: a })), void 0, !0)
|
|
344
360
|
]),
|
|
345
361
|
key: "0"
|
|
346
362
|
} : void 0,
|
|
347
363
|
l.$slots.optionPdf ? {
|
|
348
364
|
name: "optionPdf",
|
|
349
|
-
fn:
|
|
350
|
-
|
|
365
|
+
fn: _(() => [
|
|
366
|
+
k(l.$slots, "optionPdf", {}, void 0, !0)
|
|
351
367
|
]),
|
|
352
368
|
key: "1"
|
|
353
369
|
} : void 0,
|
|
354
370
|
l.$slots.optionCsv ? {
|
|
355
371
|
name: "optionCsv",
|
|
356
|
-
fn:
|
|
357
|
-
|
|
372
|
+
fn: _(() => [
|
|
373
|
+
k(l.$slots, "optionCsv", {}, void 0, !0)
|
|
358
374
|
]),
|
|
359
375
|
key: "2"
|
|
360
376
|
} : void 0,
|
|
361
377
|
l.$slots.optionImg ? {
|
|
362
378
|
name: "optionImg",
|
|
363
|
-
fn:
|
|
364
|
-
|
|
379
|
+
fn: _(() => [
|
|
380
|
+
k(l.$slots, "optionImg", {}, void 0, !0)
|
|
365
381
|
]),
|
|
366
382
|
key: "3"
|
|
367
383
|
} : void 0,
|
|
368
384
|
l.$slots.optionTable ? {
|
|
369
385
|
name: "optionTable",
|
|
370
|
-
fn:
|
|
371
|
-
|
|
386
|
+
fn: _(() => [
|
|
387
|
+
k(l.$slots, "optionTable", {}, void 0, !0)
|
|
372
388
|
]),
|
|
373
389
|
key: "4"
|
|
374
390
|
} : void 0,
|
|
375
391
|
l.$slots.optionFullscreen ? {
|
|
376
392
|
name: "optionFullscreen",
|
|
377
|
-
fn:
|
|
378
|
-
|
|
393
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
394
|
+
k(l.$slots, "optionFullscreen", E(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
379
395
|
]),
|
|
380
396
|
key: "5"
|
|
381
397
|
} : void 0,
|
|
382
398
|
l.$slots.optionAnnotator ? {
|
|
383
399
|
name: "optionAnnotator",
|
|
384
|
-
fn:
|
|
385
|
-
|
|
400
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
401
|
+
k(l.$slots, "optionAnnotator", E(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
386
402
|
]),
|
|
387
403
|
key: "6"
|
|
388
404
|
} : void 0
|
|
389
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
390
|
-
|
|
405
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
406
|
+
N.value ? (o(), r("svg", {
|
|
391
407
|
key: 4,
|
|
392
408
|
ref_key: "svgRef",
|
|
393
409
|
ref: oe,
|
|
394
|
-
xmlns: n(
|
|
395
|
-
class:
|
|
410
|
+
xmlns: n(Le),
|
|
411
|
+
class: _e({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
396
412
|
viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
|
|
397
|
-
style:
|
|
413
|
+
style: V(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
398
414
|
}, [
|
|
399
|
-
|
|
415
|
+
je(n(Pe)),
|
|
400
416
|
l.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
401
417
|
key: 0,
|
|
402
418
|
x: s.value.left,
|
|
@@ -407,9 +423,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
407
423
|
pointerEvents: "none"
|
|
408
424
|
}
|
|
409
425
|
}, [
|
|
410
|
-
|
|
411
|
-
], 8,
|
|
412
|
-
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g",
|
|
426
|
+
k(l.$slots, "chart-background", {}, void 0, !0)
|
|
427
|
+
], 8, ht)) : v("", !0),
|
|
428
|
+
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", yt, [
|
|
413
429
|
(o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
|
|
414
430
|
x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
|
|
415
431
|
x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
|
|
@@ -418,10 +434,10 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
418
434
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
419
435
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
420
436
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
421
|
-
}, null, 8,
|
|
437
|
+
}, null, 8, ft))), 256))
|
|
422
438
|
])) : v("", !0),
|
|
423
|
-
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g",
|
|
424
|
-
(o(!0), r($, null, L(
|
|
439
|
+
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", bt, [
|
|
440
|
+
(o(!0), r($, null, L(x.value, (t, a) => (o(), r("line", {
|
|
425
441
|
x1: s.value.left,
|
|
426
442
|
x2: s.value.right,
|
|
427
443
|
y1: s.value.top + a * h.value,
|
|
@@ -429,7 +445,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
429
445
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
430
446
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
431
447
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
432
|
-
}, null, 8,
|
|
448
|
+
}, null, 8, gt))), 256)),
|
|
433
449
|
i("line", {
|
|
434
450
|
x1: s.value.left,
|
|
435
451
|
x2: s.value.right,
|
|
@@ -438,30 +454,30 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
438
454
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
439
455
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
440
456
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
441
|
-
}, null, 8,
|
|
457
|
+
}, null, 8, pt)
|
|
442
458
|
])) : v("", !0),
|
|
443
|
-
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g",
|
|
444
|
-
(o(!0), r($, null, L(
|
|
459
|
+
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", mt, [
|
|
460
|
+
(o(!0), r($, null, L(x.value, (t, a) => (o(), r("text", {
|
|
445
461
|
x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
446
462
|
y: s.value.top + a * h.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? h.value / 3 : h.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
447
463
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
448
464
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
449
465
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
450
466
|
"text-anchor": "end"
|
|
451
|
-
},
|
|
452
|
-
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(
|
|
467
|
+
}, S(t.name), 9, kt))), 256)),
|
|
468
|
+
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(x.value, (t, a) => (o(), r("text", {
|
|
453
469
|
x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
454
470
|
y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
455
471
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
456
472
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
457
473
|
"text-anchor": "end"
|
|
458
|
-
},
|
|
474
|
+
}, S(n(X)({
|
|
459
475
|
v: 100 * (t.end / t.start - 1),
|
|
460
476
|
s: "%",
|
|
461
477
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
462
|
-
})), 9,
|
|
478
|
+
})), 9, _t))), 256)) : v("", !0)
|
|
463
479
|
])) : v("", !0),
|
|
464
|
-
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g",
|
|
480
|
+
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", xt, [
|
|
465
481
|
(o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
|
|
466
482
|
x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
|
|
467
483
|
y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
@@ -469,17 +485,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
469
485
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
470
486
|
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
471
487
|
"text-anchor": "middle"
|
|
472
|
-
},
|
|
488
|
+
}, S(n(q)(
|
|
473
489
|
e.value.style.chart.labels.formatter,
|
|
474
490
|
t,
|
|
475
|
-
n(
|
|
491
|
+
n(X)({
|
|
476
492
|
p: e.value.style.chart.labels.prefix,
|
|
477
493
|
v: t,
|
|
478
494
|
s: e.value.style.chart.labels.suffix,
|
|
479
495
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
480
496
|
}),
|
|
481
497
|
{ datapoint: t, seriesIndex: a }
|
|
482
|
-
)), 9,
|
|
498
|
+
)), 9, wt))), 256))
|
|
483
499
|
])) : v("", !0),
|
|
484
500
|
i("defs", null, [
|
|
485
501
|
i("radialGradient", {
|
|
@@ -488,34 +504,34 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
488
504
|
}, [
|
|
489
505
|
i("stop", {
|
|
490
506
|
offset: "10%",
|
|
491
|
-
"stop-color": n(
|
|
492
|
-
}, null, 8,
|
|
507
|
+
"stop-color": n(Ae)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
508
|
+
}, null, 8, $t),
|
|
493
509
|
i("stop", {
|
|
494
510
|
offset: "90%",
|
|
495
|
-
"stop-color": n(
|
|
496
|
-
}, null, 8,
|
|
511
|
+
"stop-color": n(ze)(e.value.style.chart.plots.startColor, 0.1)
|
|
512
|
+
}, null, 8, Lt),
|
|
497
513
|
i("stop", {
|
|
498
514
|
offset: "100%",
|
|
499
515
|
"stop-color": e.value.style.chart.plots.startColor
|
|
500
|
-
}, null, 8,
|
|
501
|
-
], 8,
|
|
516
|
+
}, null, 8, At)
|
|
517
|
+
], 8, Ct),
|
|
502
518
|
i("radialGradient", {
|
|
503
519
|
id: `end_grad_${y.value}`,
|
|
504
520
|
fy: "30%"
|
|
505
521
|
}, [
|
|
506
522
|
i("stop", {
|
|
507
523
|
offset: "10%",
|
|
508
|
-
"stop-color": n(
|
|
509
|
-
}, null, 8,
|
|
524
|
+
"stop-color": n(Ae)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
525
|
+
}, null, 8, St),
|
|
510
526
|
i("stop", {
|
|
511
527
|
offset: "90%",
|
|
512
|
-
"stop-color": n(
|
|
513
|
-
}, null, 8,
|
|
528
|
+
"stop-color": n(ze)(e.value.style.chart.plots.endColor, 0.1)
|
|
529
|
+
}, null, 8, Xt),
|
|
514
530
|
i("stop", {
|
|
515
531
|
offset: "100%",
|
|
516
532
|
"stop-color": e.value.style.chart.plots.endColor
|
|
517
|
-
}, null, 8,
|
|
518
|
-
], 8,
|
|
533
|
+
}, null, 8, Nt)
|
|
534
|
+
], 8, zt)
|
|
519
535
|
]),
|
|
520
536
|
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
|
|
521
537
|
i("defs", null, [
|
|
@@ -529,12 +545,12 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
529
545
|
i("stop", {
|
|
530
546
|
offset: "0%",
|
|
531
547
|
"stop-color": e.value.style.chart.plots.startColor
|
|
532
|
-
}, null, 8,
|
|
548
|
+
}, null, 8, Ot),
|
|
533
549
|
i("stop", {
|
|
534
550
|
offset: "100%",
|
|
535
551
|
"stop-color": e.value.style.chart.plots.endColor
|
|
536
|
-
}, null, 8,
|
|
537
|
-
], 8,
|
|
552
|
+
}, null, 8, Pt)
|
|
553
|
+
], 8, Tt),
|
|
538
554
|
i("linearGradient", {
|
|
539
555
|
id: `grad_negative_${y.value}`,
|
|
540
556
|
x1: "0%",
|
|
@@ -545,14 +561,14 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
545
561
|
i("stop", {
|
|
546
562
|
offset: "0%",
|
|
547
563
|
"stop-color": e.value.style.chart.plots.endColor
|
|
548
|
-
}, null, 8,
|
|
564
|
+
}, null, 8, Mt),
|
|
549
565
|
i("stop", {
|
|
550
566
|
offset: "100%",
|
|
551
567
|
"stop-color": e.value.style.chart.plots.startColor
|
|
552
|
-
}, null, 8,
|
|
553
|
-
], 8,
|
|
568
|
+
}, null, 8, Gt)
|
|
569
|
+
], 8, It)
|
|
554
570
|
]),
|
|
555
|
-
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g",
|
|
571
|
+
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", Dt, [
|
|
556
572
|
i("path", {
|
|
557
573
|
d: `M
|
|
558
574
|
${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
@@ -564,15 +580,15 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
564
580
|
Z
|
|
565
581
|
`,
|
|
566
582
|
fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
|
|
567
|
-
}, null, 8,
|
|
568
|
-
])) : (o(), r("g",
|
|
583
|
+
}, null, 8, Ft)
|
|
584
|
+
])) : (o(), r("g", Rt, [
|
|
569
585
|
i("rect", {
|
|
570
586
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
571
587
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
572
588
|
height: e.value.style.chart.plots.link.strokeWidth,
|
|
573
589
|
width: Math.abs(t.endX - t.startX),
|
|
574
590
|
fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
|
|
575
|
-
}, null, 8,
|
|
591
|
+
}, null, 8, Vt)
|
|
576
592
|
])),
|
|
577
593
|
i("circle", {
|
|
578
594
|
cx: t.startX,
|
|
@@ -581,7 +597,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
581
597
|
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
|
|
582
598
|
stroke: e.value.style.chart.plots.stroke,
|
|
583
599
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
584
|
-
}, null, 8,
|
|
600
|
+
}, null, 8, Et),
|
|
585
601
|
i("circle", {
|
|
586
602
|
cx: t.endX,
|
|
587
603
|
cy: t.y,
|
|
@@ -589,52 +605,52 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
589
605
|
fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
|
|
590
606
|
stroke: e.value.style.chart.plots.stroke,
|
|
591
607
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
592
|
-
}, null, 8,
|
|
608
|
+
}, null, 8, Ht)
|
|
593
609
|
]))), 256)),
|
|
594
|
-
e.value.style.chart.labels.startLabels.show ? (o(), r("g",
|
|
610
|
+
e.value.style.chart.labels.startLabels.show ? (o(), r("g", Wt, [
|
|
595
611
|
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
|
|
596
612
|
x: t.startX,
|
|
597
613
|
y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
|
|
598
614
|
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
599
615
|
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
600
616
|
"text-anchor": "middle"
|
|
601
|
-
},
|
|
617
|
+
}, S(n(q)(
|
|
602
618
|
e.value.style.chart.labels.formatter,
|
|
603
619
|
t.start,
|
|
604
|
-
n(
|
|
620
|
+
n(X)({
|
|
605
621
|
p: e.value.style.chart.labels.prefix,
|
|
606
622
|
v: t.start,
|
|
607
623
|
s: e.value.style.chart.labels.suffix,
|
|
608
624
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
609
625
|
}),
|
|
610
626
|
{ datapoint: t, seriesIndex: a }
|
|
611
|
-
)), 9,
|
|
627
|
+
)), 9, Ut))), 256))
|
|
612
628
|
])) : v("", !0),
|
|
613
|
-
e.value.style.chart.labels.endLabels.show ? (o(), r("g",
|
|
629
|
+
e.value.style.chart.labels.endLabels.show ? (o(), r("g", Bt, [
|
|
614
630
|
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
|
|
615
631
|
x: t.endX,
|
|
616
632
|
y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
617
633
|
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
618
634
|
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
619
635
|
"text-anchor": "middle"
|
|
620
|
-
},
|
|
636
|
+
}, S(n(q)(
|
|
621
637
|
e.value.style.chart.labels.formatter,
|
|
622
638
|
t.end,
|
|
623
|
-
n(
|
|
639
|
+
n(X)({
|
|
624
640
|
p: e.value.style.chart.labels.prefix,
|
|
625
641
|
v: t.end,
|
|
626
642
|
s: e.value.style.chart.labels.suffix,
|
|
627
643
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
628
644
|
}),
|
|
629
645
|
{ datapoint: t, seriesIndex: a }
|
|
630
|
-
)), 9,
|
|
646
|
+
)), 9, jt))), 256))
|
|
631
647
|
])) : v("", !0),
|
|
632
|
-
|
|
633
|
-
], 14,
|
|
634
|
-
l.$slots.watermark ? (o(), r("div",
|
|
635
|
-
|
|
648
|
+
k(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
649
|
+
], 14, vt)) : v("", !0),
|
|
650
|
+
l.$slots.watermark ? (o(), r("div", qt, [
|
|
651
|
+
k(l.$slots, "watermark", E(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
|
|
636
652
|
])) : v("", !0),
|
|
637
|
-
|
|
653
|
+
N.value ? v("", !0) : (o(), z(n(Me), {
|
|
638
654
|
key: 6,
|
|
639
655
|
config: {
|
|
640
656
|
type: "dumbbell",
|
|
@@ -650,17 +666,17 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
650
666
|
ref_key: "chartLegend",
|
|
651
667
|
ref: J
|
|
652
668
|
}, [
|
|
653
|
-
e.value.style.chart.legend.show &&
|
|
669
|
+
e.value.style.chart.legend.show && N.value ? (o(), z(nt, {
|
|
654
670
|
key: `legend_${le.value}`,
|
|
655
671
|
legendSet: ye.value,
|
|
656
672
|
config: Ve.value
|
|
657
673
|
}, {
|
|
658
|
-
item:
|
|
674
|
+
item: _(({ legend: t }) => [
|
|
659
675
|
i("div", {
|
|
660
|
-
style:
|
|
676
|
+
style: V(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
661
677
|
}, [
|
|
662
678
|
(o(), r("svg", {
|
|
663
|
-
xmlns: n(
|
|
679
|
+
xmlns: n(Le),
|
|
664
680
|
viewBox: "0 0 20 20",
|
|
665
681
|
height: e.value.style.chart.legend.fontSize,
|
|
666
682
|
width: e.value.style.chart.legend.fontSize
|
|
@@ -670,13 +686,13 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
670
686
|
cy: 10,
|
|
671
687
|
r: 9,
|
|
672
688
|
fill: t.color
|
|
673
|
-
}, null, 8,
|
|
674
|
-
], 8,
|
|
675
|
-
|
|
689
|
+
}, null, 8, Zt)
|
|
690
|
+
], 8, Yt)),
|
|
691
|
+
xe(" " + S(t.name), 1)
|
|
676
692
|
], 4)
|
|
677
693
|
]),
|
|
678
694
|
_: 1
|
|
679
|
-
}, 8, ["legendSet", "config"])) :
|
|
695
|
+
}, 8, ["legendSet", "config"])) : k(l.$slots, "legend", {
|
|
680
696
|
key: 1,
|
|
681
697
|
legend: ye.value
|
|
682
698
|
}, void 0, !0)
|
|
@@ -687,13 +703,13 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
687
703
|
ref: K,
|
|
688
704
|
dir: "auto"
|
|
689
705
|
}, [
|
|
690
|
-
|
|
706
|
+
k(l.$slots, "source", {}, void 0, !0)
|
|
691
707
|
], 512)) : v("", !0),
|
|
692
|
-
|
|
708
|
+
N.value ? (o(), z(n(Te), {
|
|
693
709
|
key: 8,
|
|
694
710
|
hideDetails: "",
|
|
695
711
|
config: {
|
|
696
|
-
open:
|
|
712
|
+
open: P.value.showTable,
|
|
697
713
|
maxHeight: 1e4,
|
|
698
714
|
body: {
|
|
699
715
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -705,33 +721,33 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
705
721
|
}
|
|
706
722
|
}
|
|
707
723
|
}, {
|
|
708
|
-
content:
|
|
709
|
-
(o(),
|
|
724
|
+
content: _(() => [
|
|
725
|
+
(o(), z(n(Oe), {
|
|
710
726
|
key: `table_${te.value}`,
|
|
711
727
|
colNames: D.value.colNames,
|
|
712
728
|
head: D.value.head,
|
|
713
729
|
body: D.value.body,
|
|
714
730
|
config: D.value.config,
|
|
715
731
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
716
|
-
onClose: u[0] || (u[0] = (t) =>
|
|
732
|
+
onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
|
|
717
733
|
}, {
|
|
718
|
-
th:
|
|
734
|
+
th: _(({ th: t }) => [
|
|
719
735
|
i("div", {
|
|
720
736
|
innerHTML: t,
|
|
721
737
|
style: { display: "flex", "align-items": "center" }
|
|
722
|
-
}, null, 8,
|
|
738
|
+
}, null, 8, Jt)
|
|
723
739
|
]),
|
|
724
|
-
td:
|
|
725
|
-
|
|
740
|
+
td: _(({ td: t }) => [
|
|
741
|
+
xe(S(t.name || t), 1)
|
|
726
742
|
]),
|
|
727
743
|
_: 1
|
|
728
744
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
729
745
|
]),
|
|
730
746
|
_: 1
|
|
731
747
|
}, 8, ["config"])) : v("", !0)
|
|
732
|
-
], 46,
|
|
748
|
+
], 46, dt));
|
|
733
749
|
}
|
|
734
|
-
},
|
|
750
|
+
}, dl = /* @__PURE__ */ ct(Kt, [["__scopeId", "data-v-8b6099dd"]]);
|
|
735
751
|
export {
|
|
736
|
-
|
|
752
|
+
dl as default
|
|
737
753
|
};
|