vue-data-ui 2.12.6 → 2.12.7-beta.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-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { computed as g, ref as d, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import { _ as lt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
13
|
-
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
|
-
import { u as st } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], it = { key: 1 }, ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = { key: 2 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 3 }, ft = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill"], gt = { key: 4 }, mt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["id"], _t = ["stop-color"], kt = ["stop-color"], xt = ["stop-color"], wt = ["id"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["stop-color"], At = ["id"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Ot = { key: 0 }, Pt = ["d", "fill"], It = { key: 1 }, Gt = ["x", "y", "height", "width", "fill"], Mt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ft = { key: 5 }, Vt = ["x", "y", "fill", "font-size"], Et = { key: 6 }, Rt = ["x", "y", "fill", "font-size"], Ht = {
|
|
1
|
+
import { defineAsyncComponent as T, computed as g, ref as d, watch as ge, shallowRef as pe, onMounted as me, onBeforeUnmount as We, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as E, normalizeClass as ke, createBlock as A, createCommentVNode as v, createElementVNode as i, createSlots as Ue, withCtx as k, renderSlot as p, normalizeProps as R, guardReactiveProps as H, createVNode as Be, Fragment as $, renderList as L, toDisplayString as z, createTextVNode as _e, nextTick as je } from "vue";
|
|
2
|
+
import { u as qe, c as xe, a as Ye, o as Ze, e as we, g as Je, v as Ce, D as Ke, f as S, X as $e, i as q, l as Le, h as Ae, q as Qe, r as et } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as tt, u as lt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as ze } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as at } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import rt from "./Legend-DFunFf8i.js";
|
|
9
|
+
import nt from "./Title-B5qqUI3M.js";
|
|
10
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"], vt = { key: 1 }, ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 2 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gt = { key: 3 }, pt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["x", "y", "font-size", "fill"], kt = { key: 4 }, _t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["id"], At = ["stop-color"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Pt = ["id"], Ot = ["stop-color"], Mt = ["stop-color"], It = { key: 0 }, Gt = ["d", "fill"], Dt = { key: 1 }, Ft = ["x", "y", "height", "width", "fill"], Vt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Rt = { key: 5 }, Ht = ["x", "y", "fill", "font-size"], Wt = { key: 6 }, Ut = ["x", "y", "fill", "font-size"], Bt = {
|
|
17
12
|
key: 5,
|
|
18
13
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
14
|
+
}, jt = ["xmlns", "height", "width"], qt = ["fill"], Yt = ["innerHTML"], Zt = {
|
|
20
15
|
__name: "vue-ui-dumbbell",
|
|
21
16
|
props: {
|
|
22
17
|
config: {
|
|
@@ -33,144 +28,144 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
33
28
|
}
|
|
34
29
|
},
|
|
35
30
|
emits: ["selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const { vue_ui_dumbbell:
|
|
31
|
+
setup(Se, { expose: Xe, emit: Jt }) {
|
|
32
|
+
const Ne = T(() => import("./vue-ui-accordion-CmCs2yR2.js")), Te = T(() => import("./DataTable-Cv9CIz-a.js")), Pe = T(() => import("./PackageVersion-CLY-udAA.js")), Oe = T(() => import("./PenAndPaper-B9na2mbr.js")), Me = T(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Ie = T(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_dumbbell: Ge } = qe(), b = Se, X = g({
|
|
38
33
|
get() {
|
|
39
34
|
return !!b.dataset && b.dataset.length;
|
|
40
35
|
},
|
|
41
36
|
set(l) {
|
|
42
37
|
return l;
|
|
43
38
|
}
|
|
44
|
-
}), y = d(
|
|
45
|
-
get: () =>
|
|
39
|
+
}), y = d(xe()), Y = d(0), I = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), te = d(0), le = d(0), e = g({
|
|
40
|
+
get: () => re(),
|
|
46
41
|
set: (l) => l
|
|
47
|
-
}), { userOptionsVisible:
|
|
48
|
-
function
|
|
49
|
-
const l =
|
|
42
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = st({ config: e.value }), { svgRef: oe } = ot({ config: e.value.style.chart.title });
|
|
43
|
+
function re() {
|
|
44
|
+
const l = ze({
|
|
50
45
|
userConfig: b.config,
|
|
51
|
-
defaultConfig:
|
|
46
|
+
defaultConfig: Ge
|
|
52
47
|
});
|
|
53
48
|
return l.theme ? {
|
|
54
|
-
|
|
55
|
-
userConfig:
|
|
49
|
+
...ze({
|
|
50
|
+
userConfig: Ye.vue_ui_dumbbell[l.theme] || b.config,
|
|
56
51
|
defaultConfig: l
|
|
57
52
|
})
|
|
58
53
|
} : l;
|
|
59
54
|
}
|
|
60
|
-
|
|
61
|
-
e.value =
|
|
62
|
-
}, { deep: !0 }),
|
|
63
|
-
|
|
55
|
+
ge(() => b.config, (l) => {
|
|
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, O.value = e.value.style.chart.width, P.value.showTable = e.value.table.show;
|
|
57
|
+
}, { deep: !0 }), ge(() => b.dataset, (l) => {
|
|
58
|
+
he();
|
|
64
59
|
}, { deep: !0 });
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
const _ = pe(null), N = pe(null);
|
|
61
|
+
me(() => {
|
|
62
|
+
ne();
|
|
68
63
|
});
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
64
|
+
function ne() {
|
|
65
|
+
if (Ze(b.dataset) ? we({
|
|
71
66
|
componentName: "VueUiDumbbell",
|
|
72
67
|
type: "dataset"
|
|
73
|
-
}) : b.dataset.forEach((l,
|
|
74
|
-
|
|
68
|
+
}) : b.dataset.forEach((l, u) => {
|
|
69
|
+
Je({
|
|
75
70
|
datasetObject: l,
|
|
76
71
|
requiredAttributes: ["name", "start", "end"]
|
|
77
72
|
}).forEach((t) => {
|
|
78
|
-
|
|
73
|
+
X.value = !1, we({
|
|
79
74
|
componentName: "VueUiDumbbell",
|
|
80
75
|
type: "datasetSerieAttribute",
|
|
81
76
|
property: t,
|
|
82
|
-
index:
|
|
77
|
+
index: u
|
|
83
78
|
});
|
|
84
79
|
});
|
|
85
80
|
}), e.value.responsive) {
|
|
86
|
-
const l =
|
|
87
|
-
const { width:
|
|
88
|
-
chart:
|
|
89
|
-
title: e.value.style.chart.title.text ?
|
|
90
|
-
legend: e.value.style.chart.legend.show ?
|
|
91
|
-
source:
|
|
92
|
-
noTitle:
|
|
81
|
+
const l = tt(() => {
|
|
82
|
+
const { width: u, height: t } = lt({
|
|
83
|
+
chart: I.value,
|
|
84
|
+
title: e.value.style.chart.title.text ? Z.value : null,
|
|
85
|
+
legend: e.value.style.chart.legend.show ? J.value : null,
|
|
86
|
+
source: K.value,
|
|
87
|
+
noTitle: Q.value
|
|
93
88
|
});
|
|
94
89
|
requestAnimationFrame(() => {
|
|
95
|
-
|
|
90
|
+
O.value = u, h.value = t / b.dataset.length, f.value = G();
|
|
96
91
|
});
|
|
97
92
|
});
|
|
98
|
-
|
|
93
|
+
_.value && (N.value && _.value.unobserve(N.value), _.value.disconnect()), _.value = new ResizeObserver(l), N.value = I.value.parentNode, _.value.observe(N.value);
|
|
99
94
|
}
|
|
100
95
|
}
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
We(() => {
|
|
97
|
+
_.value && (N.value && _.value.unobserve(N.value), _.value.disconnect());
|
|
103
98
|
});
|
|
104
|
-
const { isPrinting:
|
|
99
|
+
const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = at({
|
|
105
100
|
elementId: `dumbbell_${y.value}`,
|
|
106
101
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
107
102
|
options: e.value.userOptions.print
|
|
108
|
-
}),
|
|
103
|
+
}), De = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
|
|
109
104
|
showTable: e.value.table.show
|
|
110
|
-
}),
|
|
105
|
+
}), x = g(() => b.dataset.map((l, u) => ({
|
|
111
106
|
...l,
|
|
112
|
-
start:
|
|
113
|
-
end:
|
|
114
|
-
id:
|
|
115
|
-
}))),
|
|
116
|
-
max: Math.max(...
|
|
117
|
-
min: Math.min(...
|
|
118
|
-
})), c = g(() =>
|
|
119
|
-
const l = h.value,
|
|
107
|
+
start: Ce(l.start),
|
|
108
|
+
end: Ce(l.end),
|
|
109
|
+
id: xe()
|
|
110
|
+
}))), U = g(() => ({
|
|
111
|
+
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
112
|
+
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
113
|
+
})), c = g(() => Ke(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), O = d(e.value.style.chart.width), s = g(() => {
|
|
114
|
+
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + O.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * b.dataset.length, a = c.value.ticks.length * (O.value / c.value.ticks.length);
|
|
120
115
|
return {
|
|
121
116
|
left: e.value.style.chart.padding.left,
|
|
122
|
-
right:
|
|
117
|
+
right: u - e.value.style.chart.padding.right,
|
|
123
118
|
top: e.value.style.chart.padding.top,
|
|
124
119
|
bottom: t - e.value.style.chart.padding.bottom,
|
|
125
|
-
width:
|
|
120
|
+
width: O.value,
|
|
126
121
|
height: l * b.dataset.length,
|
|
127
122
|
rowHeight: l,
|
|
128
123
|
absoluteHeight: t,
|
|
129
|
-
absoluteWidth:
|
|
124
|
+
absoluteWidth: u,
|
|
130
125
|
widthPlotReference: a
|
|
131
126
|
};
|
|
132
127
|
});
|
|
133
|
-
function
|
|
134
|
-
return
|
|
135
|
-
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,
|
|
128
|
+
function G() {
|
|
129
|
+
return x.value.map((l, u) => {
|
|
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, m = t + (a - t) / 2;
|
|
136
131
|
return {
|
|
137
132
|
...l,
|
|
138
133
|
startX: t,
|
|
139
134
|
endX: a,
|
|
140
|
-
centerX:
|
|
141
|
-
y: s.value.top +
|
|
135
|
+
centerX: m,
|
|
136
|
+
y: s.value.top + u * h.value + h.value / 2,
|
|
142
137
|
endVal: l.start
|
|
143
138
|
};
|
|
144
139
|
});
|
|
145
140
|
}
|
|
146
|
-
const f = d([]),
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
const f = d([]), ve = d(null), Fe = g(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
|
|
142
|
+
me(() => {
|
|
143
|
+
he();
|
|
149
144
|
});
|
|
150
|
-
function
|
|
151
|
-
f.value =
|
|
145
|
+
function he() {
|
|
146
|
+
f.value = G();
|
|
152
147
|
let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
|
|
153
|
-
function
|
|
154
|
-
const t =
|
|
155
|
-
l >=
|
|
156
|
-
a.endVal += t[
|
|
157
|
-
const
|
|
148
|
+
function u() {
|
|
149
|
+
const t = x.value.map((a) => a.end - a.start);
|
|
150
|
+
l >= Fe.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, m) => {
|
|
151
|
+
a.endVal += t[m] * (e.value.animationSpeed / 100);
|
|
152
|
+
const C = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, V = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = C + (V - C) / 2;
|
|
158
153
|
return {
|
|
159
154
|
...a,
|
|
160
|
-
startX:
|
|
161
|
-
endX:
|
|
162
|
-
centerX:
|
|
163
|
-
y: s.value.top +
|
|
155
|
+
startX: C,
|
|
156
|
+
endX: V,
|
|
157
|
+
centerX: j,
|
|
158
|
+
y: s.value.top + m * h.value + h.value / 2,
|
|
164
159
|
endVal: a.endVal
|
|
165
160
|
};
|
|
166
|
-
}), l = f.value.map((a) => a.endVal).reduce((a,
|
|
161
|
+
}), l = f.value.map((a) => a.endVal).reduce((a, m) => a + m, 0), ve.value = requestAnimationFrame(u));
|
|
167
162
|
}
|
|
168
|
-
e.value.useAnimation ?
|
|
163
|
+
e.value.useAnimation ? u() : f.value = G();
|
|
169
164
|
}
|
|
170
|
-
const
|
|
165
|
+
const ye = g(() => [
|
|
171
166
|
{ 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 },
|
|
172
167
|
{ 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 }
|
|
173
|
-
]),
|
|
168
|
+
]), Ve = g(() => ({
|
|
174
169
|
cy: "donut-div-legend",
|
|
175
170
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
176
171
|
color: e.value.style.chart.legend.color,
|
|
@@ -178,41 +173,41 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
178
173
|
paddingBottom: 12,
|
|
179
174
|
paddingTop: 12,
|
|
180
175
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
181
|
-
})),
|
|
176
|
+
})), w = g(() => {
|
|
182
177
|
const l = f.value.map((t) => ({
|
|
183
178
|
name: t.name
|
|
184
|
-
})),
|
|
179
|
+
})), u = f.value.map((t) => ({
|
|
185
180
|
start: t.start,
|
|
186
181
|
end: t.end
|
|
187
182
|
}));
|
|
188
|
-
return { head: l, body:
|
|
189
|
-
}),
|
|
183
|
+
return { head: l, body: u };
|
|
184
|
+
}), D = g(() => {
|
|
190
185
|
const l = [
|
|
191
186
|
e.value.table.columnNames.series,
|
|
192
187
|
e.value.table.columnNames.start,
|
|
193
188
|
e.value.table.columnNames.end,
|
|
194
189
|
e.value.table.columnNames.progression
|
|
195
|
-
],
|
|
196
|
-
const
|
|
190
|
+
], u = w.value.head.map((m, C) => {
|
|
191
|
+
const V = S({
|
|
197
192
|
p: e.value.style.chart.labels.prefix,
|
|
198
|
-
v:
|
|
193
|
+
v: w.value.body[C].start,
|
|
199
194
|
s: e.value.style.chart.labels.suffix,
|
|
200
195
|
r: e.value.table.td.roundingValue
|
|
201
|
-
}),
|
|
196
|
+
}), j = S({
|
|
202
197
|
p: e.value.style.chart.labels.prefix,
|
|
203
|
-
v:
|
|
198
|
+
v: w.value.body[C].end,
|
|
204
199
|
s: e.value.style.chart.labels.suffix,
|
|
205
200
|
r: e.value.table.td.roundingValue
|
|
206
|
-
}),
|
|
207
|
-
v: 100 * (
|
|
201
|
+
}), He = S({
|
|
202
|
+
v: 100 * (w.value.body[C].end / w.value.body[C].start - 1),
|
|
208
203
|
s: "%",
|
|
209
204
|
r: e.value.table.td.roundingPercentage
|
|
210
205
|
});
|
|
211
206
|
return [
|
|
212
|
-
{ name:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
{ name: m.name },
|
|
208
|
+
V,
|
|
209
|
+
j,
|
|
210
|
+
He
|
|
216
211
|
];
|
|
217
212
|
}), t = {
|
|
218
213
|
th: {
|
|
@@ -235,71 +230,71 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
235
230
|
e.value.table.columnNames.progression
|
|
236
231
|
],
|
|
237
232
|
head: l,
|
|
238
|
-
body:
|
|
233
|
+
body: u,
|
|
239
234
|
config: t
|
|
240
235
|
};
|
|
241
236
|
});
|
|
242
|
-
function
|
|
243
|
-
|
|
244
|
-
const l =
|
|
237
|
+
function fe() {
|
|
238
|
+
je(() => {
|
|
239
|
+
const l = w.value.head.map((a, m) => [[
|
|
245
240
|
a.name
|
|
246
|
-
], [
|
|
247
|
-
|
|
241
|
+
], [w.value.body[m].start], [w.value.body[m].end]]), u = [[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(l), t = Qe(u);
|
|
242
|
+
et({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
248
243
|
});
|
|
249
244
|
}
|
|
250
|
-
const
|
|
251
|
-
function
|
|
252
|
-
|
|
245
|
+
const M = d(!1);
|
|
246
|
+
function Ee(l) {
|
|
247
|
+
M.value = l, Y.value += 1;
|
|
253
248
|
}
|
|
254
|
-
function
|
|
249
|
+
function Re() {
|
|
255
250
|
return f.value;
|
|
256
251
|
}
|
|
257
|
-
function
|
|
258
|
-
|
|
252
|
+
function be() {
|
|
253
|
+
P.value.showTable = !P.value.showTable;
|
|
259
254
|
}
|
|
260
|
-
const
|
|
261
|
-
function
|
|
262
|
-
|
|
255
|
+
const F = d(!1);
|
|
256
|
+
function B() {
|
|
257
|
+
F.value = !F.value;
|
|
263
258
|
}
|
|
264
|
-
return
|
|
265
|
-
getData:
|
|
266
|
-
generatePdf:
|
|
267
|
-
generateCsv:
|
|
268
|
-
generateImage:
|
|
269
|
-
toggleTable:
|
|
270
|
-
toggleAnnotator:
|
|
271
|
-
}), (l,
|
|
259
|
+
return Xe({
|
|
260
|
+
getData: Re,
|
|
261
|
+
generatePdf: ce,
|
|
262
|
+
generateCsv: fe,
|
|
263
|
+
generateImage: de,
|
|
264
|
+
toggleTable: be,
|
|
265
|
+
toggleAnnotator: B
|
|
266
|
+
}), (l, u) => (o(), r("div", {
|
|
272
267
|
ref_key: "dumbbellChart",
|
|
273
|
-
ref:
|
|
274
|
-
class:
|
|
275
|
-
style:
|
|
268
|
+
ref: I,
|
|
269
|
+
class: ke(`vue-ui-dumbbell ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
270
|
+
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
276
271
|
id: `dumbbell_${y.value}`,
|
|
277
|
-
onMouseenter:
|
|
278
|
-
onMouseleave:
|
|
272
|
+
onMouseenter: u[1] || (u[1] = () => n(ae)(!0)),
|
|
273
|
+
onMouseleave: u[2] || (u[2] = () => n(ae)(!1))
|
|
279
274
|
}, [
|
|
280
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
275
|
+
e.value.userOptions.buttons.annotator ? (o(), A(n(Oe), {
|
|
281
276
|
key: 0,
|
|
282
|
-
svgRef:
|
|
277
|
+
svgRef: n(oe),
|
|
283
278
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
284
279
|
color: e.value.style.chart.color,
|
|
285
|
-
active:
|
|
286
|
-
onClose:
|
|
280
|
+
active: F.value,
|
|
281
|
+
onClose: B
|
|
287
282
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
|
|
288
|
-
|
|
283
|
+
De.value ? (o(), r("div", {
|
|
289
284
|
key: 1,
|
|
290
285
|
ref_key: "noTitle",
|
|
291
|
-
ref:
|
|
286
|
+
ref: Q,
|
|
292
287
|
class: "vue-data-ui-no-title-space",
|
|
293
288
|
style: "height:36px; width: 100%;background:transparent"
|
|
294
289
|
}, null, 512)) : v("", !0),
|
|
295
290
|
e.value.style.chart.title.text ? (o(), r("div", {
|
|
296
291
|
key: 2,
|
|
297
292
|
ref_key: "chartTitle",
|
|
298
|
-
ref:
|
|
293
|
+
ref: Z,
|
|
299
294
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
300
295
|
}, [
|
|
301
|
-
(o(),
|
|
302
|
-
key: `title_${
|
|
296
|
+
(o(), A(nt, {
|
|
297
|
+
key: `title_${ee.value}`,
|
|
303
298
|
config: {
|
|
304
299
|
title: {
|
|
305
300
|
cy: "donut-div-title",
|
|
@@ -312,109 +307,109 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
312
307
|
}
|
|
313
308
|
}, null, 8, ["config"]))
|
|
314
309
|
], 512)) : v("", !0),
|
|
315
|
-
e.value.userOptions.show &&
|
|
310
|
+
e.value.userOptions.show && X.value && (n(se) || n(W)) ? (o(), A(n(Ie), {
|
|
316
311
|
ref: "details",
|
|
317
|
-
key: `user_option_${
|
|
312
|
+
key: `user_option_${Y.value}`,
|
|
318
313
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
319
314
|
color: e.value.style.chart.color,
|
|
320
|
-
isPrinting:
|
|
321
|
-
isImaging:
|
|
315
|
+
isPrinting: n(ue),
|
|
316
|
+
isImaging: n(ie),
|
|
322
317
|
uid: y.value,
|
|
323
318
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
324
319
|
hasXls: e.value.userOptions.buttons.csv,
|
|
325
320
|
hasImg: e.value.userOptions.buttons.img,
|
|
326
321
|
hasTable: e.value.userOptions.buttons.table,
|
|
327
322
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
328
|
-
isFullscreen:
|
|
323
|
+
isFullscreen: M.value,
|
|
329
324
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
330
|
-
chartElement:
|
|
325
|
+
chartElement: I.value,
|
|
331
326
|
position: e.value.userOptions.position,
|
|
332
327
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
333
|
-
isAnnotation:
|
|
334
|
-
onToggleFullscreen:
|
|
335
|
-
onGeneratePdf:
|
|
336
|
-
onGenerateCsv:
|
|
337
|
-
onGenerateImage:
|
|
338
|
-
onToggleTable:
|
|
339
|
-
onToggleAnnotator:
|
|
340
|
-
style:
|
|
341
|
-
visibility:
|
|
328
|
+
isAnnotation: F.value,
|
|
329
|
+
onToggleFullscreen: Ee,
|
|
330
|
+
onGeneratePdf: n(ce),
|
|
331
|
+
onGenerateCsv: fe,
|
|
332
|
+
onGenerateImage: n(de),
|
|
333
|
+
onToggleTable: be,
|
|
334
|
+
onToggleAnnotator: B,
|
|
335
|
+
style: E({
|
|
336
|
+
visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
|
|
342
337
|
})
|
|
343
|
-
},
|
|
338
|
+
}, Ue({ _: 2 }, [
|
|
344
339
|
l.$slots.menuIcon ? {
|
|
345
340
|
name: "menuIcon",
|
|
346
|
-
fn:
|
|
347
|
-
|
|
341
|
+
fn: k(({ isOpen: t, color: a }) => [
|
|
342
|
+
p(l.$slots, "menuIcon", R(H({ isOpen: t, color: a })), void 0, !0)
|
|
348
343
|
]),
|
|
349
344
|
key: "0"
|
|
350
345
|
} : void 0,
|
|
351
346
|
l.$slots.optionPdf ? {
|
|
352
347
|
name: "optionPdf",
|
|
353
|
-
fn:
|
|
354
|
-
|
|
348
|
+
fn: k(() => [
|
|
349
|
+
p(l.$slots, "optionPdf", {}, void 0, !0)
|
|
355
350
|
]),
|
|
356
351
|
key: "1"
|
|
357
352
|
} : void 0,
|
|
358
353
|
l.$slots.optionCsv ? {
|
|
359
354
|
name: "optionCsv",
|
|
360
|
-
fn:
|
|
361
|
-
|
|
355
|
+
fn: k(() => [
|
|
356
|
+
p(l.$slots, "optionCsv", {}, void 0, !0)
|
|
362
357
|
]),
|
|
363
358
|
key: "2"
|
|
364
359
|
} : void 0,
|
|
365
360
|
l.$slots.optionImg ? {
|
|
366
361
|
name: "optionImg",
|
|
367
|
-
fn:
|
|
368
|
-
|
|
362
|
+
fn: k(() => [
|
|
363
|
+
p(l.$slots, "optionImg", {}, void 0, !0)
|
|
369
364
|
]),
|
|
370
365
|
key: "3"
|
|
371
366
|
} : void 0,
|
|
372
367
|
l.$slots.optionTable ? {
|
|
373
368
|
name: "optionTable",
|
|
374
|
-
fn:
|
|
375
|
-
|
|
369
|
+
fn: k(() => [
|
|
370
|
+
p(l.$slots, "optionTable", {}, void 0, !0)
|
|
376
371
|
]),
|
|
377
372
|
key: "4"
|
|
378
373
|
} : void 0,
|
|
379
374
|
l.$slots.optionFullscreen ? {
|
|
380
375
|
name: "optionFullscreen",
|
|
381
|
-
fn:
|
|
382
|
-
|
|
376
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
377
|
+
p(l.$slots, "optionFullscreen", R(H({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
383
378
|
]),
|
|
384
379
|
key: "5"
|
|
385
380
|
} : void 0,
|
|
386
381
|
l.$slots.optionAnnotator ? {
|
|
387
382
|
name: "optionAnnotator",
|
|
388
|
-
fn:
|
|
389
|
-
|
|
383
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
384
|
+
p(l.$slots, "optionAnnotator", R(H({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
390
385
|
]),
|
|
391
386
|
key: "6"
|
|
392
387
|
} : void 0
|
|
393
388
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
394
|
-
|
|
389
|
+
X.value ? (o(), r("svg", {
|
|
395
390
|
key: 4,
|
|
396
391
|
ref_key: "svgRef",
|
|
397
|
-
ref:
|
|
398
|
-
xmlns:
|
|
399
|
-
class:
|
|
392
|
+
ref: oe,
|
|
393
|
+
xmlns: n($e),
|
|
394
|
+
class: ke({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
400
395
|
viewBox: `0 0 ${s.value.absoluteWidth <= 0 ? 10 : s.value.absoluteWidth} ${s.value.absoluteHeight <= 0 ? 10 : s.value.absoluteHeight}`,
|
|
401
|
-
style:
|
|
396
|
+
style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
402
397
|
}, [
|
|
403
|
-
|
|
398
|
+
Be(n(Pe)),
|
|
404
399
|
l.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
405
400
|
key: 0,
|
|
406
401
|
x: s.value.left,
|
|
407
402
|
y: s.value.top,
|
|
408
|
-
width: s.value.width,
|
|
409
|
-
height: s.value.height,
|
|
403
|
+
width: Math.max(0.1, s.value.width),
|
|
404
|
+
height: Math.max(0.1, s.value.height),
|
|
410
405
|
style: {
|
|
411
406
|
pointerEvents: "none"
|
|
412
407
|
}
|
|
413
408
|
}, [
|
|
414
|
-
|
|
415
|
-
], 8,
|
|
416
|
-
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g",
|
|
417
|
-
(o(!0), r(
|
|
409
|
+
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
410
|
+
], 8, dt)) : v("", !0),
|
|
411
|
+
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", vt, [
|
|
412
|
+
(o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("line", {
|
|
418
413
|
x1: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
|
|
419
414
|
x2: s.value.left + a * s.value.width / (c.value.ticks.length - 1),
|
|
420
415
|
y1: s.value.top,
|
|
@@ -422,10 +417,10 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
422
417
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
423
418
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
424
419
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
425
|
-
}, null, 8,
|
|
420
|
+
}, null, 8, ht))), 256))
|
|
426
421
|
])) : v("", !0),
|
|
427
|
-
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g",
|
|
428
|
-
(o(!0), r(
|
|
422
|
+
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", yt, [
|
|
423
|
+
(o(!0), r($, null, L(x.value, (t, a) => (o(), r("line", {
|
|
429
424
|
x1: s.value.left,
|
|
430
425
|
x2: s.value.right,
|
|
431
426
|
y1: s.value.top + a * h.value,
|
|
@@ -433,7 +428,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
433
428
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
434
429
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
435
430
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
436
|
-
}, null, 8,
|
|
431
|
+
}, null, 8, ft))), 256)),
|
|
437
432
|
i("line", {
|
|
438
433
|
x1: s.value.left,
|
|
439
434
|
x2: s.value.right,
|
|
@@ -442,48 +437,48 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
442
437
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
443
438
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
444
439
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
445
|
-
}, null, 8,
|
|
440
|
+
}, null, 8, bt)
|
|
446
441
|
])) : v("", !0),
|
|
447
|
-
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g",
|
|
448
|
-
(o(!0), r(
|
|
442
|
+
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", gt, [
|
|
443
|
+
(o(!0), r($, null, L(x.value, (t, a) => (o(), r("text", {
|
|
449
444
|
x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
450
445
|
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,
|
|
451
446
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
452
447
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
453
448
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
454
449
|
"text-anchor": "end"
|
|
455
|
-
},
|
|
456
|
-
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r(
|
|
450
|
+
}, z(t.name), 9, pt))), 256)),
|
|
451
|
+
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(x.value, (t, a) => (o(), r("text", {
|
|
457
452
|
x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
458
453
|
y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
459
454
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
460
455
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
461
456
|
"text-anchor": "end"
|
|
462
|
-
},
|
|
457
|
+
}, z(n(S)({
|
|
463
458
|
v: 100 * (t.end / t.start - 1),
|
|
464
459
|
s: "%",
|
|
465
460
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
466
|
-
})), 9,
|
|
461
|
+
})), 9, mt))), 256)) : v("", !0)
|
|
467
462
|
])) : v("", !0),
|
|
468
|
-
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g",
|
|
469
|
-
(o(!0), r(
|
|
463
|
+
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", kt, [
|
|
464
|
+
(o(!0), r($, null, L(c.value.ticks, (t, a) => (o(), r("text", {
|
|
470
465
|
x: s.value.left + a * (s.value.width / (c.value.ticks.length - 1)),
|
|
471
466
|
y: s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
472
467
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
473
468
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
474
469
|
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
475
470
|
"text-anchor": "middle"
|
|
476
|
-
},
|
|
471
|
+
}, z(n(q)(
|
|
477
472
|
e.value.style.chart.labels.formatter,
|
|
478
473
|
t,
|
|
479
|
-
|
|
474
|
+
n(S)({
|
|
480
475
|
p: e.value.style.chart.labels.prefix,
|
|
481
476
|
v: t,
|
|
482
477
|
s: e.value.style.chart.labels.suffix,
|
|
483
478
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
484
479
|
}),
|
|
485
480
|
{ datapoint: t, seriesIndex: a }
|
|
486
|
-
)), 9,
|
|
481
|
+
)), 9, _t))), 256))
|
|
487
482
|
])) : v("", !0),
|
|
488
483
|
i("defs", null, [
|
|
489
484
|
i("radialGradient", {
|
|
@@ -492,36 +487,36 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
492
487
|
}, [
|
|
493
488
|
i("stop", {
|
|
494
489
|
offset: "10%",
|
|
495
|
-
"stop-color":
|
|
496
|
-
}, null, 8,
|
|
490
|
+
"stop-color": n(Le)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
491
|
+
}, null, 8, wt),
|
|
497
492
|
i("stop", {
|
|
498
493
|
offset: "90%",
|
|
499
|
-
"stop-color":
|
|
500
|
-
}, null, 8,
|
|
494
|
+
"stop-color": n(Ae)(e.value.style.chart.plots.startColor, 0.1)
|
|
495
|
+
}, null, 8, Ct),
|
|
501
496
|
i("stop", {
|
|
502
497
|
offset: "100%",
|
|
503
498
|
"stop-color": e.value.style.chart.plots.startColor
|
|
504
|
-
}, null, 8,
|
|
505
|
-
], 8,
|
|
499
|
+
}, null, 8, $t)
|
|
500
|
+
], 8, xt),
|
|
506
501
|
i("radialGradient", {
|
|
507
502
|
id: `end_grad_${y.value}`,
|
|
508
503
|
fy: "30%"
|
|
509
504
|
}, [
|
|
510
505
|
i("stop", {
|
|
511
506
|
offset: "10%",
|
|
512
|
-
"stop-color":
|
|
513
|
-
}, null, 8,
|
|
507
|
+
"stop-color": n(Le)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
508
|
+
}, null, 8, At),
|
|
514
509
|
i("stop", {
|
|
515
510
|
offset: "90%",
|
|
516
|
-
"stop-color":
|
|
517
|
-
}, null, 8,
|
|
511
|
+
"stop-color": n(Ae)(e.value.style.chart.plots.endColor, 0.1)
|
|
512
|
+
}, null, 8, zt),
|
|
518
513
|
i("stop", {
|
|
519
514
|
offset: "100%",
|
|
520
515
|
"stop-color": e.value.style.chart.plots.endColor
|
|
521
|
-
}, null, 8,
|
|
522
|
-
], 8,
|
|
516
|
+
}, null, 8, St)
|
|
517
|
+
], 8, Lt)
|
|
523
518
|
]),
|
|
524
|
-
(o(!0), r(
|
|
519
|
+
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
|
|
525
520
|
i("defs", null, [
|
|
526
521
|
i("linearGradient", {
|
|
527
522
|
id: `grad_positive_${y.value}`,
|
|
@@ -533,12 +528,12 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
533
528
|
i("stop", {
|
|
534
529
|
offset: "0%",
|
|
535
530
|
"stop-color": e.value.style.chart.plots.startColor
|
|
536
|
-
}, null, 8,
|
|
531
|
+
}, null, 8, Nt),
|
|
537
532
|
i("stop", {
|
|
538
533
|
offset: "100%",
|
|
539
534
|
"stop-color": e.value.style.chart.plots.endColor
|
|
540
|
-
}, null, 8,
|
|
541
|
-
], 8,
|
|
535
|
+
}, null, 8, Tt)
|
|
536
|
+
], 8, Xt),
|
|
542
537
|
i("linearGradient", {
|
|
543
538
|
id: `grad_negative_${y.value}`,
|
|
544
539
|
x1: "0%",
|
|
@@ -549,14 +544,14 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
549
544
|
i("stop", {
|
|
550
545
|
offset: "0%",
|
|
551
546
|
"stop-color": e.value.style.chart.plots.endColor
|
|
552
|
-
}, null, 8,
|
|
547
|
+
}, null, 8, Ot),
|
|
553
548
|
i("stop", {
|
|
554
549
|
offset: "100%",
|
|
555
550
|
"stop-color": e.value.style.chart.plots.startColor
|
|
556
|
-
}, null, 8,
|
|
557
|
-
], 8,
|
|
551
|
+
}, null, 8, Mt)
|
|
552
|
+
], 8, Pt)
|
|
558
553
|
]),
|
|
559
|
-
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g",
|
|
554
|
+
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", It, [
|
|
560
555
|
i("path", {
|
|
561
556
|
d: `M
|
|
562
557
|
${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
@@ -568,15 +563,15 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
568
563
|
Z
|
|
569
564
|
`,
|
|
570
565
|
fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
|
|
571
|
-
}, null, 8,
|
|
572
|
-
])) : (o(), r("g",
|
|
566
|
+
}, null, 8, Gt)
|
|
567
|
+
])) : (o(), r("g", Dt, [
|
|
573
568
|
i("rect", {
|
|
574
569
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
575
570
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
576
571
|
height: e.value.style.chart.plots.link.strokeWidth,
|
|
577
572
|
width: Math.abs(t.endX - t.startX),
|
|
578
573
|
fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
|
|
579
|
-
}, null, 8,
|
|
574
|
+
}, null, 8, Ft)
|
|
580
575
|
])),
|
|
581
576
|
i("circle", {
|
|
582
577
|
cx: t.startX,
|
|
@@ -585,7 +580,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
585
580
|
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor,
|
|
586
581
|
stroke: e.value.style.chart.plots.stroke,
|
|
587
582
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
588
|
-
}, null, 8,
|
|
583
|
+
}, null, 8, Vt),
|
|
589
584
|
i("circle", {
|
|
590
585
|
cx: t.endX,
|
|
591
586
|
cy: t.y,
|
|
@@ -593,52 +588,52 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
593
588
|
fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${y.value})` : e.value.style.chart.plots.endColor,
|
|
594
589
|
stroke: e.value.style.chart.plots.stroke,
|
|
595
590
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
596
|
-
}, null, 8,
|
|
591
|
+
}, null, 8, Et)
|
|
597
592
|
]))), 256)),
|
|
598
|
-
e.value.style.chart.labels.startLabels.show ? (o(), r("g",
|
|
599
|
-
(o(!0), r(
|
|
593
|
+
e.value.style.chart.labels.startLabels.show ? (o(), r("g", Rt, [
|
|
594
|
+
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
|
|
600
595
|
x: t.startX,
|
|
601
596
|
y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
|
|
602
597
|
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
603
598
|
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
604
599
|
"text-anchor": "middle"
|
|
605
|
-
},
|
|
600
|
+
}, z(n(q)(
|
|
606
601
|
e.value.style.chart.labels.formatter,
|
|
607
602
|
t.start,
|
|
608
|
-
|
|
603
|
+
n(S)({
|
|
609
604
|
p: e.value.style.chart.labels.prefix,
|
|
610
605
|
v: t.start,
|
|
611
606
|
s: e.value.style.chart.labels.suffix,
|
|
612
607
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
613
608
|
}),
|
|
614
609
|
{ datapoint: t, seriesIndex: a }
|
|
615
|
-
)), 9,
|
|
610
|
+
)), 9, Ht))), 256))
|
|
616
611
|
])) : v("", !0),
|
|
617
|
-
e.value.style.chart.labels.endLabels.show ? (o(), r("g",
|
|
618
|
-
(o(!0), r(
|
|
612
|
+
e.value.style.chart.labels.endLabels.show ? (o(), r("g", Wt, [
|
|
613
|
+
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
|
|
619
614
|
x: t.endX,
|
|
620
615
|
y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
621
616
|
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
622
617
|
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
623
618
|
"text-anchor": "middle"
|
|
624
|
-
},
|
|
619
|
+
}, z(n(q)(
|
|
625
620
|
e.value.style.chart.labels.formatter,
|
|
626
621
|
t.end,
|
|
627
|
-
|
|
622
|
+
n(S)({
|
|
628
623
|
p: e.value.style.chart.labels.prefix,
|
|
629
624
|
v: t.end,
|
|
630
625
|
s: e.value.style.chart.labels.suffix,
|
|
631
626
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
632
627
|
}),
|
|
633
628
|
{ datapoint: t, seriesIndex: a }
|
|
634
|
-
)), 9,
|
|
629
|
+
)), 9, Ut))), 256))
|
|
635
630
|
])) : v("", !0),
|
|
636
|
-
|
|
637
|
-
], 14,
|
|
638
|
-
l.$slots.watermark ? (o(), r("div",
|
|
639
|
-
|
|
631
|
+
p(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
632
|
+
], 14, ct)) : v("", !0),
|
|
633
|
+
l.$slots.watermark ? (o(), r("div", Bt, [
|
|
634
|
+
p(l.$slots, "watermark", R(H({ isPrinting: n(ue) || n(ie) })), void 0, !0)
|
|
640
635
|
])) : v("", !0),
|
|
641
|
-
|
|
636
|
+
X.value ? v("", !0) : (o(), A(n(Me), {
|
|
642
637
|
key: 6,
|
|
643
638
|
config: {
|
|
644
639
|
type: "dumbbell",
|
|
@@ -652,19 +647,19 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
652
647
|
}, null, 8, ["config"])),
|
|
653
648
|
i("div", {
|
|
654
649
|
ref_key: "chartLegend",
|
|
655
|
-
ref:
|
|
650
|
+
ref: J
|
|
656
651
|
}, [
|
|
657
|
-
e.value.style.chart.legend.show &&
|
|
658
|
-
key: `legend_${
|
|
659
|
-
legendSet:
|
|
660
|
-
config:
|
|
652
|
+
e.value.style.chart.legend.show && X.value ? (o(), A(rt, {
|
|
653
|
+
key: `legend_${le.value}`,
|
|
654
|
+
legendSet: ye.value,
|
|
655
|
+
config: Ve.value
|
|
661
656
|
}, {
|
|
662
|
-
item:
|
|
657
|
+
item: k(({ legend: t }) => [
|
|
663
658
|
i("div", {
|
|
664
|
-
style:
|
|
659
|
+
style: E(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
665
660
|
}, [
|
|
666
661
|
(o(), r("svg", {
|
|
667
|
-
xmlns:
|
|
662
|
+
xmlns: n($e),
|
|
668
663
|
viewBox: "0 0 20 20",
|
|
669
664
|
height: e.value.style.chart.legend.fontSize,
|
|
670
665
|
width: e.value.style.chart.legend.fontSize
|
|
@@ -674,30 +669,30 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
674
669
|
cy: 10,
|
|
675
670
|
r: 9,
|
|
676
671
|
fill: t.color
|
|
677
|
-
}, null, 8,
|
|
678
|
-
], 8,
|
|
679
|
-
|
|
672
|
+
}, null, 8, qt)
|
|
673
|
+
], 8, jt)),
|
|
674
|
+
_e(" " + z(t.name), 1)
|
|
680
675
|
], 4)
|
|
681
676
|
]),
|
|
682
677
|
_: 1
|
|
683
|
-
}, 8, ["legendSet", "config"])) :
|
|
678
|
+
}, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
|
|
684
679
|
key: 1,
|
|
685
|
-
legend:
|
|
680
|
+
legend: ye.value
|
|
686
681
|
}, void 0, !0)
|
|
687
682
|
], 512),
|
|
688
683
|
l.$slots.source ? (o(), r("div", {
|
|
689
684
|
key: 7,
|
|
690
685
|
ref_key: "source",
|
|
691
|
-
ref:
|
|
686
|
+
ref: K,
|
|
692
687
|
dir: "auto"
|
|
693
688
|
}, [
|
|
694
|
-
|
|
689
|
+
p(l.$slots, "source", {}, void 0, !0)
|
|
695
690
|
], 512)) : v("", !0),
|
|
696
|
-
|
|
691
|
+
X.value ? (o(), A(n(Ne), {
|
|
697
692
|
key: 8,
|
|
698
693
|
hideDetails: "",
|
|
699
694
|
config: {
|
|
700
|
-
open:
|
|
695
|
+
open: P.value.showTable,
|
|
701
696
|
maxHeight: 1e4,
|
|
702
697
|
body: {
|
|
703
698
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -709,33 +704,33 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
709
704
|
}
|
|
710
705
|
}
|
|
711
706
|
}, {
|
|
712
|
-
content:
|
|
713
|
-
(o(),
|
|
714
|
-
key: `table_${
|
|
715
|
-
colNames:
|
|
716
|
-
head:
|
|
717
|
-
body:
|
|
718
|
-
config:
|
|
707
|
+
content: k(() => [
|
|
708
|
+
(o(), A(n(Te), {
|
|
709
|
+
key: `table_${te.value}`,
|
|
710
|
+
colNames: D.value.colNames,
|
|
711
|
+
head: D.value.head,
|
|
712
|
+
body: D.value.body,
|
|
713
|
+
config: D.value.config,
|
|
719
714
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
720
|
-
onClose:
|
|
715
|
+
onClose: u[0] || (u[0] = (t) => P.value.showTable = !1)
|
|
721
716
|
}, {
|
|
722
|
-
th:
|
|
717
|
+
th: k(({ th: t }) => [
|
|
723
718
|
i("div", {
|
|
724
719
|
innerHTML: t,
|
|
725
720
|
style: { display: "flex", "align-items": "center" }
|
|
726
|
-
}, null, 8,
|
|
721
|
+
}, null, 8, Yt)
|
|
727
722
|
]),
|
|
728
|
-
td:
|
|
729
|
-
|
|
723
|
+
td: k(({ td: t }) => [
|
|
724
|
+
_e(z(t.name || t), 1)
|
|
730
725
|
]),
|
|
731
726
|
_: 1
|
|
732
727
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
733
728
|
]),
|
|
734
729
|
_: 1
|
|
735
730
|
}, 8, ["config"])) : v("", !0)
|
|
736
|
-
], 46,
|
|
731
|
+
], 46, it));
|
|
737
732
|
}
|
|
738
|
-
},
|
|
733
|
+
}, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-42691b72"]]);
|
|
739
734
|
export {
|
|
740
|
-
|
|
735
|
+
ul as default
|
|
741
736
|
};
|