vue-data-ui 3.25.7 → 3.25.9
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
- package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
- package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
- package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
- package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
- package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
- package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
- package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
- package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
- package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
- package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
- package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
- package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
- package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
- package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
- package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
- package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
- package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
- package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
- package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
- package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
- package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
- package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
- package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
- package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
- package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
- package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
- package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
- package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
- package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
- package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
- package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
- package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
- package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
- package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
- package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
- package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
- package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
- package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
- package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Ct as t, G as n, Lt as r, Mt as i, P as a, Pt as o, S as ee, Vt as s, X as c, Yt as l,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { l as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as m, Teleport as
|
|
2
|
+
import { Ct as t, G as n, Lt as r, Mt as i, P as a, Pt as o, S as ee, Vt as s, X as c, Yt as l, Z as te, Zt as u, _ as ne, b as d, f, h as re, i as p, lt as ie, nt as ae, p as oe, q as se, t as ce, w as le } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as fe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as pe } from "./useConfig-D32D002m.js";
|
|
6
|
+
import { t as me } from "./usePrinter-DISD7q5m.js";
|
|
7
|
+
import { n as he, t as ge } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
+
import { t as _e } from "./useNestedProp-Chvyfpl-.js";
|
|
9
|
+
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as ye } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
+
import { t as be } from "./useTransitions-g_zBREk2.js";
|
|
12
|
+
import { t as xe } from "./useStableElementSize-C7KADDKj.js";
|
|
13
|
+
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
+
import { t as Ce } from "./img-DhGApYG0.js";
|
|
15
|
+
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
+
import { t as De } from "./SlicerPreview-B6iHOC9L.js";
|
|
18
|
+
import { t as Oe } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
19
|
+
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
+
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as je } from "./vue_ui_quick_chart-mZBdml3Z.js";
|
|
22
|
+
import { Fragment as m, Teleport as Me, computed as h, createBlock as Ne, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as Pe, createVNode as Fe, defineAsyncComponent as Ie, guardReactiveProps as y, mergeProps as Le, nextTick as Re, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as ze, onMounted as Be, openBlock as C, ref as w, renderList as T, renderSlot as E, shallowRef as Ve, toDisplayString as D, toRefs as He, unref as O, watch as Ue, watchEffect as We, withCtx as k } from "vue";
|
|
23
23
|
//#region src/chartDetector.js
|
|
24
24
|
var A = {
|
|
25
25
|
LINE: "LINE",
|
|
26
26
|
BAR: "BAR",
|
|
27
27
|
DONUT: "DONUT"
|
|
28
|
-
},
|
|
28
|
+
}, Ge = [
|
|
29
29
|
"SERIE",
|
|
30
30
|
"SERIES",
|
|
31
31
|
"DATA",
|
|
@@ -33,15 +33,15 @@ var A = {
|
|
|
33
33
|
"VALUES",
|
|
34
34
|
"NUM"
|
|
35
35
|
];
|
|
36
|
-
function
|
|
36
|
+
function Ke({ dataset: e, barLineSwitch: t = 6, debug: n = !0 }) {
|
|
37
37
|
let r = null, i = null, a = 0;
|
|
38
|
-
if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`),
|
|
39
|
-
if (!
|
|
38
|
+
if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`), Je(e) && (j(e) && (r = e.length < t ? A.BAR : A.LINE, i = e, a = e.length), Ye(e))) {
|
|
39
|
+
if (!Ze(e)) return n && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
40
40
|
let o = Object.keys(e[0]), ee = Object.values(e[0]);
|
|
41
|
-
if (!o.some((e) =>
|
|
42
|
-
|
|
41
|
+
if (!o.some((e) => Qe(e))) return n && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
42
|
+
$e(ee, (e) => typeof e == "number") && (r = A.DONUT, i = e), $e(ee, (e) => Array.isArray(e) && j(e)) && (r = et(e) > t ? A.LINE : A.BAR, a = et(e), i = e.map((e) => ({
|
|
43
43
|
...e,
|
|
44
|
-
data:
|
|
44
|
+
data: tt(e, (e) => j(e))
|
|
45
45
|
}))), e = e.map((e) => M(e)), i = i.map((e) => M(e));
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
@@ -51,21 +51,21 @@ function Ge({ dataset: e, barLineSwitch: t = 6, debug: n = !0 }) {
|
|
|
51
51
|
maxSeriesLength: a
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function Ke(e) {
|
|
55
|
-
return !e || qe(e) && !e.length;
|
|
56
|
-
}
|
|
57
54
|
function qe(e) {
|
|
55
|
+
return !e || Je(e) && !e.length;
|
|
56
|
+
}
|
|
57
|
+
function Je(e) {
|
|
58
58
|
return Array.isArray(e);
|
|
59
59
|
}
|
|
60
60
|
function j(e) {
|
|
61
|
-
if (!
|
|
61
|
+
if (!Je(e) || qe(e)) return !1;
|
|
62
62
|
let t = e.map((e) => Number(e));
|
|
63
63
|
return ![...new Set(t.flatMap((e) => typeof e == "number" && !isNaN(e)))].includes(!1);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return !
|
|
65
|
+
function Ye(e) {
|
|
66
|
+
return !Je(e) || qe(e) || [...new Set(e.flatMap((e) => typeof e == "object" && !Array.isArray(e)))].includes(!1) ? !1 : !e.map((e) => Object.keys(e).length > 0).includes(!1);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Xe(e, t) {
|
|
69
69
|
let n = Object.keys(e).sort(), r = Object.keys(t).sort();
|
|
70
70
|
if (n.length !== r.length) return !1;
|
|
71
71
|
for (let i = 0; i < n.length; i += 1) {
|
|
@@ -74,23 +74,23 @@ function Ye(e, t) {
|
|
|
74
74
|
}
|
|
75
75
|
return !0;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ze(e) {
|
|
78
78
|
if (e.length <= 1) return !0;
|
|
79
|
-
for (let t = 0; t < e.length; t += 1) for (let n = t + 1; n < e.length; n += 1) if (!
|
|
79
|
+
for (let t = 0; t < e.length; t += 1) for (let n = t + 1; n < e.length; n += 1) if (!Xe(e[t], e[n])) return !1;
|
|
80
80
|
return !0;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Qe(e) {
|
|
83
|
+
return Ge.includes(e.toUpperCase());
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function $e(e, t) {
|
|
86
86
|
let n = [];
|
|
87
87
|
for (let r = 0; r < e.length; r += 1) n.push(t(e[r]));
|
|
88
88
|
return n.includes(!0);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function et(e) {
|
|
91
91
|
return Math.max(...[...e].flatMap((e) => Object.values(e).filter((e) => j(e)).map((e) => e.length)));
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function tt(e, t) {
|
|
94
94
|
return Object.values(e).filter((e) => t(e))[0];
|
|
95
95
|
}
|
|
96
96
|
function M(e) {
|
|
@@ -100,149 +100,145 @@ function M(e) {
|
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/components/vue-ui-quick-chart.vue
|
|
103
|
-
var N = /* @__PURE__ */ e({ default: () =>
|
|
103
|
+
var N = /* @__PURE__ */ e({ default: () => On }), nt = ["id"], rt = ["id"], it = ["id"], at = { style: { position: "relative" } }, ot = [
|
|
104
104
|
"xmlns",
|
|
105
105
|
"aria-describedby",
|
|
106
106
|
"viewBox"
|
|
107
|
-
],
|
|
107
|
+
], st = [
|
|
108
108
|
"x",
|
|
109
109
|
"y",
|
|
110
110
|
"width",
|
|
111
111
|
"height"
|
|
112
|
-
],
|
|
112
|
+
], ct = [
|
|
113
113
|
"x",
|
|
114
114
|
"y",
|
|
115
115
|
"width",
|
|
116
116
|
"height"
|
|
117
|
-
],
|
|
117
|
+
], lt = ["width", "height"], ut = ["id"], dt = ["id"], ft = ["id"], pt = ["flood-color"], mt = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "donut-label-connectors"
|
|
120
|
-
},
|
|
120
|
+
}, ht = [
|
|
121
121
|
"d",
|
|
122
122
|
"stroke",
|
|
123
123
|
"stroke-width",
|
|
124
124
|
"filter"
|
|
125
|
-
],
|
|
125
|
+
], gt = [
|
|
126
126
|
"cx",
|
|
127
127
|
"cy",
|
|
128
128
|
"r",
|
|
129
129
|
"fill",
|
|
130
130
|
"filter"
|
|
131
|
-
],
|
|
131
|
+
], _t = { class: "donut" }, vt = [
|
|
132
132
|
"d",
|
|
133
133
|
"fill",
|
|
134
134
|
"stroke",
|
|
135
135
|
"stroke-width",
|
|
136
136
|
"filter"
|
|
137
|
-
],
|
|
137
|
+
], yt = [
|
|
138
138
|
"d",
|
|
139
139
|
"onMouseenter",
|
|
140
140
|
"onMouseout",
|
|
141
141
|
"onClick"
|
|
142
|
-
],
|
|
142
|
+
], bt = {
|
|
143
143
|
key: 1,
|
|
144
144
|
class: "donut-labels"
|
|
145
|
-
},
|
|
145
|
+
}, xt = [
|
|
146
146
|
"cx",
|
|
147
147
|
"cy",
|
|
148
148
|
"fill",
|
|
149
149
|
"stroke",
|
|
150
150
|
"filter"
|
|
151
|
-
],
|
|
151
|
+
], St = [
|
|
152
152
|
"text-anchor",
|
|
153
153
|
"x",
|
|
154
154
|
"y",
|
|
155
155
|
"fill",
|
|
156
156
|
"font-size",
|
|
157
157
|
"filter"
|
|
158
|
-
],
|
|
158
|
+
], Ct = [
|
|
159
159
|
"text-anchor",
|
|
160
160
|
"x",
|
|
161
161
|
"y",
|
|
162
162
|
"fill",
|
|
163
163
|
"font-size",
|
|
164
164
|
"filter"
|
|
165
|
-
],
|
|
165
|
+
], wt = {
|
|
166
166
|
key: 2,
|
|
167
167
|
class: "donut-hollow"
|
|
168
|
-
},
|
|
168
|
+
}, Tt = [
|
|
169
169
|
"x",
|
|
170
170
|
"y",
|
|
171
171
|
"font-size",
|
|
172
172
|
"fill"
|
|
173
|
-
],
|
|
173
|
+
], Et = [
|
|
174
174
|
"x",
|
|
175
175
|
"y",
|
|
176
176
|
"font-size",
|
|
177
177
|
"fill"
|
|
178
|
-
],
|
|
178
|
+
], Dt = {
|
|
179
179
|
key: 0,
|
|
180
180
|
class: "line-grid"
|
|
181
|
-
},
|
|
181
|
+
}, Ot = [
|
|
182
182
|
"x1",
|
|
183
183
|
"x2",
|
|
184
184
|
"y1",
|
|
185
185
|
"y2",
|
|
186
186
|
"stroke",
|
|
187
187
|
"stroke-width"
|
|
188
|
-
],
|
|
188
|
+
], kt = [
|
|
189
189
|
"x1",
|
|
190
190
|
"x2",
|
|
191
191
|
"y1",
|
|
192
192
|
"y2",
|
|
193
193
|
"stroke",
|
|
194
194
|
"stroke-width"
|
|
195
|
-
],
|
|
195
|
+
], At = {
|
|
196
196
|
key: 1,
|
|
197
197
|
class: "line-axis"
|
|
198
|
-
},
|
|
198
|
+
}, jt = [
|
|
199
199
|
"x1",
|
|
200
200
|
"x2",
|
|
201
201
|
"y1",
|
|
202
202
|
"y2",
|
|
203
203
|
"stroke",
|
|
204
204
|
"stroke-width"
|
|
205
|
-
],
|
|
205
|
+
], Mt = [
|
|
206
206
|
"x1",
|
|
207
207
|
"x2",
|
|
208
208
|
"y1",
|
|
209
209
|
"y2",
|
|
210
210
|
"stroke",
|
|
211
211
|
"stroke-width"
|
|
212
|
-
],
|
|
212
|
+
], Nt = [
|
|
213
213
|
"d",
|
|
214
214
|
"stroke",
|
|
215
215
|
"stroke-width"
|
|
216
|
-
],
|
|
216
|
+
], Pt = [
|
|
217
217
|
"transform",
|
|
218
218
|
"font-size",
|
|
219
219
|
"fill"
|
|
220
|
-
],
|
|
220
|
+
], Ft = {
|
|
221
221
|
key: 3,
|
|
222
222
|
class: "periodLabels"
|
|
223
|
-
},
|
|
223
|
+
}, It = [
|
|
224
224
|
"x1",
|
|
225
225
|
"x2",
|
|
226
226
|
"y1",
|
|
227
227
|
"y2",
|
|
228
228
|
"stroke",
|
|
229
229
|
"stroke-width"
|
|
230
|
-
],
|
|
230
|
+
], Lt = { key: 0 }, Rt = [
|
|
231
231
|
"font-size",
|
|
232
232
|
"text-anchor",
|
|
233
233
|
"fill",
|
|
234
234
|
"transform"
|
|
235
|
-
],
|
|
235
|
+
], zt = [
|
|
236
236
|
"font-size",
|
|
237
237
|
"text-anchor",
|
|
238
238
|
"fill",
|
|
239
239
|
"transform",
|
|
240
240
|
"innerHTML"
|
|
241
|
-
],
|
|
242
|
-
"d",
|
|
243
|
-
"stroke",
|
|
244
|
-
"stroke-width"
|
|
245
|
-
], Vt = [
|
|
241
|
+
], Bt = { class: "plots" }, Vt = [
|
|
246
242
|
"d",
|
|
247
243
|
"stroke",
|
|
248
244
|
"stroke-width"
|
|
@@ -255,21 +251,25 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
255
251
|
"stroke",
|
|
256
252
|
"stroke-width"
|
|
257
253
|
], Wt = [
|
|
254
|
+
"d",
|
|
255
|
+
"stroke",
|
|
256
|
+
"stroke-width"
|
|
257
|
+
], Gt = [
|
|
258
258
|
"cx",
|
|
259
259
|
"cy",
|
|
260
260
|
"fill",
|
|
261
261
|
"stroke"
|
|
262
|
-
],
|
|
262
|
+
], Kt = {
|
|
263
263
|
key: 4,
|
|
264
264
|
class: "dataLabels"
|
|
265
|
-
},
|
|
265
|
+
}, qt = [
|
|
266
266
|
"font-size",
|
|
267
267
|
"fill",
|
|
268
268
|
"transform"
|
|
269
|
-
],
|
|
269
|
+
], Jt = {
|
|
270
270
|
key: 5,
|
|
271
271
|
class: "tooltip-traps"
|
|
272
|
-
},
|
|
272
|
+
}, Yt = [
|
|
273
273
|
"x",
|
|
274
274
|
"y",
|
|
275
275
|
"height",
|
|
@@ -278,70 +278,70 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
278
278
|
"onMouseenter",
|
|
279
279
|
"onMouseleave",
|
|
280
280
|
"onClick"
|
|
281
|
-
],
|
|
281
|
+
], Xt = {
|
|
282
282
|
key: 0,
|
|
283
283
|
class: "line-grid"
|
|
284
|
-
},
|
|
284
|
+
}, Zt = [
|
|
285
285
|
"x1",
|
|
286
286
|
"x2",
|
|
287
287
|
"y1",
|
|
288
288
|
"y2",
|
|
289
289
|
"stroke",
|
|
290
290
|
"stroke-width"
|
|
291
|
-
],
|
|
291
|
+
], Qt = [
|
|
292
292
|
"x1",
|
|
293
293
|
"x2",
|
|
294
294
|
"y1",
|
|
295
295
|
"y2",
|
|
296
296
|
"stroke",
|
|
297
297
|
"stroke-width"
|
|
298
|
-
],
|
|
298
|
+
], $t = {
|
|
299
299
|
key: 1,
|
|
300
300
|
class: "line-axis"
|
|
301
|
-
},
|
|
301
|
+
}, en = [
|
|
302
302
|
"x1",
|
|
303
303
|
"x2",
|
|
304
304
|
"y1",
|
|
305
305
|
"y2",
|
|
306
306
|
"stroke",
|
|
307
307
|
"stroke-width"
|
|
308
|
-
],
|
|
308
|
+
], tn = [
|
|
309
309
|
"x1",
|
|
310
310
|
"x2",
|
|
311
311
|
"y1",
|
|
312
312
|
"y2",
|
|
313
313
|
"stroke",
|
|
314
314
|
"stroke-width"
|
|
315
|
-
],
|
|
315
|
+
], nn = [
|
|
316
316
|
"d",
|
|
317
317
|
"stroke",
|
|
318
318
|
"stroke-width"
|
|
319
|
-
],
|
|
319
|
+
], rn = [
|
|
320
320
|
"transform",
|
|
321
321
|
"font-size",
|
|
322
322
|
"fill"
|
|
323
|
-
],
|
|
323
|
+
], an = {
|
|
324
324
|
key: 3,
|
|
325
325
|
class: "periodLabels"
|
|
326
|
-
},
|
|
326
|
+
}, on = [
|
|
327
327
|
"x1",
|
|
328
328
|
"x2",
|
|
329
329
|
"y1",
|
|
330
330
|
"y2",
|
|
331
331
|
"stroke",
|
|
332
332
|
"stroke-width"
|
|
333
|
-
],
|
|
333
|
+
], sn = { key: 0 }, cn = [
|
|
334
334
|
"font-size",
|
|
335
335
|
"text-anchor",
|
|
336
336
|
"fill",
|
|
337
337
|
"transform"
|
|
338
|
-
],
|
|
338
|
+
], ln = [
|
|
339
339
|
"font-size",
|
|
340
340
|
"text-anchor",
|
|
341
341
|
"fill",
|
|
342
342
|
"transform",
|
|
343
343
|
"innerHTML"
|
|
344
|
-
],
|
|
344
|
+
], un = { class: "plots" }, dn = [
|
|
345
345
|
"x",
|
|
346
346
|
"width",
|
|
347
347
|
"height",
|
|
@@ -349,17 +349,17 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
349
349
|
"fill",
|
|
350
350
|
"stroke",
|
|
351
351
|
"stroke-width"
|
|
352
|
-
],
|
|
352
|
+
], fn = {
|
|
353
353
|
key: 4,
|
|
354
354
|
class: "dataLabels"
|
|
355
|
-
},
|
|
355
|
+
}, pn = [
|
|
356
356
|
"transform",
|
|
357
357
|
"font-size",
|
|
358
358
|
"fill"
|
|
359
|
-
],
|
|
359
|
+
], mn = {
|
|
360
360
|
key: 5,
|
|
361
361
|
class: "tooltip-traps"
|
|
362
|
-
},
|
|
362
|
+
}, hn = [
|
|
363
363
|
"x",
|
|
364
364
|
"y",
|
|
365
365
|
"height",
|
|
@@ -368,28 +368,28 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
368
368
|
"onMouseenter",
|
|
369
369
|
"onMouseleave",
|
|
370
370
|
"onClick"
|
|
371
|
-
],
|
|
371
|
+
], gn = {
|
|
372
372
|
key: 6,
|
|
373
373
|
class: "axis-labels"
|
|
374
|
-
},
|
|
374
|
+
}, _n = [
|
|
375
375
|
"font-size",
|
|
376
376
|
"fill",
|
|
377
377
|
"x",
|
|
378
378
|
"y"
|
|
379
|
-
],
|
|
379
|
+
], vn = [
|
|
380
380
|
"font-size",
|
|
381
381
|
"fill",
|
|
382
382
|
"x",
|
|
383
383
|
"y"
|
|
384
|
-
],
|
|
384
|
+
], yn = [
|
|
385
385
|
"font-size",
|
|
386
386
|
"fill",
|
|
387
387
|
"transform"
|
|
388
|
-
],
|
|
388
|
+
], bn = [
|
|
389
389
|
"font-size",
|
|
390
390
|
"fill",
|
|
391
391
|
"transform"
|
|
392
|
-
],
|
|
392
|
+
], xn = {
|
|
393
393
|
key: 1,
|
|
394
394
|
style: {
|
|
395
395
|
position: "absolute",
|
|
@@ -399,13 +399,13 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
399
399
|
},
|
|
400
400
|
"data-dom-to-png-ignore": "",
|
|
401
401
|
"aria-hidden": "true"
|
|
402
|
-
},
|
|
402
|
+
}, Sn = {
|
|
403
403
|
key: 5,
|
|
404
404
|
class: "vue-data-ui-watermark"
|
|
405
|
-
},
|
|
405
|
+
}, Cn = ["id"], wn = ["onClick", "onKeydown"], Tn = ["onClick", "onKeydown"], En = ["onClick", "onKeydown"], Dn = {
|
|
406
406
|
key: 1,
|
|
407
407
|
class: "vue-ui-quick-chart-not-processable"
|
|
408
|
-
},
|
|
408
|
+
}, On = /*#__PURE__*/ we({
|
|
409
409
|
__name: "vue-ui-quick-chart",
|
|
410
410
|
props: {
|
|
411
411
|
config: {
|
|
@@ -431,44 +431,44 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
431
431
|
"selectLegend",
|
|
432
432
|
"copyAlt"
|
|
433
433
|
],
|
|
434
|
-
setup(e, { expose:
|
|
435
|
-
let
|
|
436
|
-
function qn() {
|
|
437
|
-
Hn.value = N.value?.parentNode ?? null;
|
|
438
|
-
}
|
|
434
|
+
setup(e, { expose: we, emit: Ge }) {
|
|
435
|
+
let qe = Ie(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Je = Ie(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), Xe = Ie(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Ze = Ie(() => import("./Tooltip-hhrkQ3Lk.js")), Qe = Ie(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), { vue_ui_quick_chart: $e } = pe(), { isThemeValid: et, warnInvalidTheme: tt } = ve(), M = e, N = w(null), On = w(null), kn = w(null), An = w(null), P = w(se()), F = w(!1), jn = w(null), Mn = w(""), I = w(null), Nn = w(null), Pn = w(null), L = w([]), Fn = w(0), In = w(0), Ln = w(!1), Rn = w(null), zn = w(null), R = w(null), Bn = w(null), Vn = w(null), Hn = w(null), Un = Ve(null), Wn = w(!1), Gn = w(0), Kn = w(0), qn = w(!1);
|
|
439
436
|
function Jn() {
|
|
437
|
+
Un.value = N.value?.parentNode ?? null;
|
|
438
|
+
}
|
|
439
|
+
function Yn() {
|
|
440
440
|
return new Promise((e) => {
|
|
441
441
|
requestAnimationFrame(() => {
|
|
442
442
|
requestAnimationFrame(e);
|
|
443
443
|
});
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
async function
|
|
447
|
-
let e = ++
|
|
448
|
-
|
|
446
|
+
async function Xn() {
|
|
447
|
+
let e = ++Kn.value;
|
|
448
|
+
Wn.value = !1, await Re(), await Yn(), await Yn(), e === Kn.value && (Gn.value += 1, Wn.value = !0);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
|
|
452
|
-
|
|
450
|
+
function Zn() {
|
|
451
|
+
qn.value || (qn.value = !0, Re(() => {
|
|
452
|
+
qn.value = !1, Jn(), Xn();
|
|
453
453
|
}));
|
|
454
454
|
}
|
|
455
|
-
let
|
|
456
|
-
elementRef:
|
|
455
|
+
let Qn = xe({
|
|
456
|
+
elementRef: Un,
|
|
457
457
|
minimumWidth: 2,
|
|
458
458
|
minimumHeight: 2,
|
|
459
459
|
stableFramesRequired: 2,
|
|
460
460
|
once: !1,
|
|
461
461
|
onSizeAccepted: () => {
|
|
462
|
-
|
|
462
|
+
Xn();
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
w("#FFFFFF");
|
|
466
|
-
let z = w(
|
|
467
|
-
|
|
466
|
+
let z = w(pr());
|
|
467
|
+
ue({
|
|
468
468
|
config: () => z.value,
|
|
469
469
|
dataset: () => M.dataset,
|
|
470
470
|
component: "VueUiQuickChart",
|
|
471
|
-
rules: [
|
|
471
|
+
rules: [de.emptyArray, {
|
|
472
472
|
test: () => !0,
|
|
473
473
|
message: [
|
|
474
474
|
"👀 This is a swiss-knife component. If you need more control, consider using dedicated components:",
|
|
@@ -479,13 +479,13 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
479
479
|
]
|
|
480
480
|
}]
|
|
481
481
|
});
|
|
482
|
-
let { transitionEnabled: B } =
|
|
482
|
+
let { transitionEnabled: B } = be({
|
|
483
483
|
config: () => z.value.transitions,
|
|
484
484
|
dataset: () => M.dataset
|
|
485
|
-
}),
|
|
485
|
+
}), $n = h(() => z.value.debug), er = h(() => z.value.useCursorPointer), V = w(null), tr = w({
|
|
486
486
|
x: 0,
|
|
487
487
|
y: 0
|
|
488
|
-
}), H = w("pointer"),
|
|
488
|
+
}), H = w("pointer"), nr = w(!1), rr = h(() => u({
|
|
489
489
|
dafaultConfig: {
|
|
490
490
|
backgroundColor: "#99999930",
|
|
491
491
|
customPalette: ["#BABABA"],
|
|
@@ -506,10 +506,10 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
506
506
|
zoomEndIndex: null
|
|
507
507
|
},
|
|
508
508
|
userConfig: z.value.skeletonConfig ?? {}
|
|
509
|
-
})), { loading:
|
|
510
|
-
...
|
|
509
|
+
})), { loading: ir, FINAL_DATASET: ar, manualLoading: or } = he({
|
|
510
|
+
...He(M),
|
|
511
511
|
FINAL_CONFIG: z,
|
|
512
|
-
prepareConfig:
|
|
512
|
+
prepareConfig: pr,
|
|
513
513
|
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
514
514
|
1,
|
|
515
515
|
2,
|
|
@@ -522,28 +522,28 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
522
522
|
55,
|
|
523
523
|
89
|
|
524
524
|
],
|
|
525
|
-
skeletonConfig:
|
|
525
|
+
skeletonConfig: u({
|
|
526
526
|
defaultConfig: z.value,
|
|
527
|
-
userConfig:
|
|
527
|
+
userConfig: rr.value
|
|
528
528
|
})
|
|
529
|
-
}), { svgRef:
|
|
530
|
-
function
|
|
531
|
-
|
|
529
|
+
}), { svgRef: sr } = Ae({ config: { text: z.value.title } }), cr = h(() => z.value.showUserOptionsOnChartHover), lr = h(() => z.value.keepUserOptionsStateOnChartLeave), ur = w(!z.value.showUserOptionsOnChartHover), dr = w(!1);
|
|
530
|
+
function fr(e = !1) {
|
|
531
|
+
dr.value = e, cr.value && (ur.value = e);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
let e =
|
|
533
|
+
function pr() {
|
|
534
|
+
let e = _e({
|
|
535
535
|
userConfig: M.config,
|
|
536
|
-
defaultConfig:
|
|
536
|
+
defaultConfig: $e
|
|
537
537
|
}), t = {}, n = e.theme;
|
|
538
538
|
if (n) {
|
|
539
|
-
if (
|
|
539
|
+
if (!et.value(e)) tt(e), t = e;
|
|
540
540
|
else {
|
|
541
|
-
let i =
|
|
542
|
-
userConfig:
|
|
541
|
+
let i = _e({
|
|
542
|
+
userConfig: je[n] || M.config,
|
|
543
543
|
defaultConfig: e
|
|
544
544
|
});
|
|
545
545
|
t = {
|
|
546
|
-
...
|
|
546
|
+
..._e({
|
|
547
547
|
userConfig: M.config,
|
|
548
548
|
defaultConfig: i
|
|
549
549
|
}),
|
|
@@ -553,17 +553,29 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
553
553
|
} else t = e;
|
|
554
554
|
return t;
|
|
555
555
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
556
|
+
function mr(e) {
|
|
557
|
+
let t = te(e);
|
|
558
|
+
return t?.tooltipPosition && delete t.tooltipPosition, JSON.stringify(t);
|
|
559
|
+
}
|
|
560
|
+
let hr = mr(M.config);
|
|
561
|
+
Ue(() => M.config, (e, t) => {
|
|
562
|
+
let n = mr(e), r = n !== hr;
|
|
563
|
+
hr = n;
|
|
564
|
+
let i = pr();
|
|
565
|
+
if (!r) {
|
|
566
|
+
z.value.tooltipPosition = i.tooltipPosition, wr.value.showTooltip = z.value.showTooltip;
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
ir.value || (z.value = i), K.value.width = z.value.width, K.value.height = z.value.height, ur.value = !z.value.showUserOptionsOnChartHover, Er(), wr.value.showTooltip = z.value.showTooltip;
|
|
570
|
+
}, { deep: !0 }), Ue(() => M.dataset, (e) => {
|
|
571
|
+
W.value = _r.value, X.value.start = 0, X.value.end = W.value.maxSeriesLength, In.value += 1, Zn();
|
|
572
|
+
}, { deep: !0 }), Ue(() => M.dataset, (e) => {
|
|
573
|
+
Array.isArray(e) && e.length > 0 && (or.value = !1);
|
|
562
574
|
}, { immediate: !0 });
|
|
563
|
-
let
|
|
564
|
-
let e =
|
|
565
|
-
debug:
|
|
566
|
-
dataset: s(
|
|
575
|
+
let gr = h(() => le(z.value.customPalette)), U = Ge, _r = h(() => {
|
|
576
|
+
let e = Ke({
|
|
577
|
+
debug: $n.value,
|
|
578
|
+
dataset: s(ar.value, [
|
|
567
579
|
"serie",
|
|
568
580
|
"series",
|
|
569
581
|
"data",
|
|
@@ -573,53 +585,53 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
573
585
|
]),
|
|
574
586
|
barLineSwitch: z.value.chartIsBarUnderDatasetLength
|
|
575
587
|
});
|
|
576
|
-
return !e &&
|
|
577
|
-
}), W = w(
|
|
578
|
-
|
|
588
|
+
return !e && $n.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
589
|
+
}), W = w(_r.value), vr = h(() => !!W.value), G = h(() => W.value ? W.value.type : null);
|
|
590
|
+
Ue(() => G.value, (e) => {
|
|
579
591
|
e || ae({
|
|
580
592
|
componentName: "VueUiQuickChart",
|
|
581
593
|
type: "dataset",
|
|
582
|
-
debug:
|
|
594
|
+
debug: $n.value
|
|
583
595
|
});
|
|
584
596
|
}, { immediate: !0 });
|
|
585
|
-
let { isPrinting:
|
|
597
|
+
let { isPrinting: yr, isImaging: br, generatePdf: xr, generateImage: Sr } = me({
|
|
586
598
|
elementId: `${G.value}_${P.value}`,
|
|
587
599
|
fileName: z.value.title || G.value,
|
|
588
600
|
options: z.value.userOptionsPrint
|
|
589
|
-
}),
|
|
601
|
+
}), Cr = h(() => z.value.showUserOptions && !z.value.title), K = w({
|
|
590
602
|
width: z.value.width,
|
|
591
603
|
height: z.value.height
|
|
592
|
-
}),
|
|
593
|
-
|
|
594
|
-
|
|
604
|
+
}), wr = w({ showTooltip: z.value.showTooltip });
|
|
605
|
+
Ue(z, () => {
|
|
606
|
+
wr.value = { showTooltip: z.value.showTooltip };
|
|
595
607
|
}, { immediate: !0 });
|
|
596
|
-
let q =
|
|
597
|
-
|
|
598
|
-
|
|
608
|
+
let q = Ve(null), Tr = Ve(null);
|
|
609
|
+
Be(() => {
|
|
610
|
+
Ln.value = !0, Jn(), Qn.start(), Er(), Xn();
|
|
599
611
|
});
|
|
600
|
-
function
|
|
601
|
-
if (o(M.dataset) || (
|
|
602
|
-
let e =
|
|
603
|
-
let { width: e, height: t } =
|
|
612
|
+
function Er() {
|
|
613
|
+
if (o(M.dataset) || (or.value = z.value.loading), z.value.responsive) {
|
|
614
|
+
let e = Te(() => {
|
|
615
|
+
let { width: e, height: t } = Ee({
|
|
604
616
|
chart: N.value,
|
|
605
|
-
title: z.value.title ?
|
|
606
|
-
legend: z.value.showLegend ?
|
|
607
|
-
slicer: [A.BAR, A.LINE].includes(G.value) && z.value.zoomXy && W.value.maxSeriesLength > 1 ?
|
|
608
|
-
source:
|
|
609
|
-
noTitle:
|
|
617
|
+
title: z.value.title ? On.value : null,
|
|
618
|
+
legend: z.value.showLegend ? kn.value : null,
|
|
619
|
+
slicer: [A.BAR, A.LINE].includes(G.value) && z.value.zoomXy && W.value.maxSeriesLength > 1 ? An.value : null,
|
|
620
|
+
source: Nn.value,
|
|
621
|
+
noTitle: Pn.value
|
|
610
622
|
});
|
|
611
623
|
requestAnimationFrame(() => {
|
|
612
|
-
K.value.width = e, K.value.height = t,
|
|
624
|
+
K.value.width = e, K.value.height = t, Zn();
|
|
613
625
|
});
|
|
614
626
|
});
|
|
615
|
-
q.value && (
|
|
627
|
+
q.value && (Tr.value && q.value.unobserve(Tr.value), q.value.disconnect()), q.value = new ResizeObserver(e), Tr.value = N.value.parentNode, q.value.observe(Tr.value);
|
|
616
628
|
}
|
|
617
|
-
|
|
629
|
+
Br(), Zn();
|
|
618
630
|
}
|
|
619
|
-
|
|
620
|
-
|
|
631
|
+
ze(() => {
|
|
632
|
+
Qn.stop(), q.value && (Tr.value && q.value.unobserve(Tr.value), q.value.disconnect(), q.value = null, Tr.value = null);
|
|
621
633
|
});
|
|
622
|
-
let
|
|
634
|
+
let Dr = h(() => {
|
|
623
635
|
switch (G.value) {
|
|
624
636
|
case A.LINE: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
625
637
|
case A.BAR: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
@@ -627,13 +639,13 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
627
639
|
default: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
628
640
|
}
|
|
629
641
|
});
|
|
630
|
-
function
|
|
642
|
+
function Or(e) {
|
|
631
643
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
632
644
|
}
|
|
633
|
-
function
|
|
645
|
+
function kr(e) {
|
|
634
646
|
return z.value.blurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${P.value})` : "";
|
|
635
647
|
}
|
|
636
|
-
function
|
|
648
|
+
function Ar() {
|
|
637
649
|
L.value.length ? L.value = [] : G.value === A.DONUT ? Y.value.legend.forEach((e) => {
|
|
638
650
|
L.value.push(e.id);
|
|
639
651
|
}) : G.value === A.LINE ? Z.value.legend.forEach((e) => {
|
|
@@ -642,17 +654,17 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
642
654
|
L.value.push(e.id);
|
|
643
655
|
}), G.value === A.DONUT ? U("selectLegend", Y.value.dataset) : G.value === A.LINE ? U("selectLegend", Z.value.dataset) : G.value === A.BAR && U("selectLegend", Q.value.dataset);
|
|
644
656
|
}
|
|
645
|
-
function
|
|
657
|
+
function jr(e, t) {
|
|
646
658
|
L.value.includes(e) ? L.value = L.value.filter((t) => t !== e) : L.value.length < t && L.value.push(e);
|
|
647
659
|
}
|
|
648
|
-
let
|
|
649
|
-
function
|
|
650
|
-
|
|
651
|
-
let n = e.value, r =
|
|
660
|
+
let Mr = w(null), Nr = w(null), Pr = w(!1);
|
|
661
|
+
function Fr(e, t) {
|
|
662
|
+
Pr.value = !0;
|
|
663
|
+
let n = e.value, r = _r.value.dataset.find((t, n) => e.id === `donut_${n}`).VALUE;
|
|
652
664
|
if (L.value.includes(e.id)) {
|
|
653
665
|
L.value = L.value.filter((t) => t !== e.id);
|
|
654
666
|
function t() {
|
|
655
|
-
n > r ? (
|
|
667
|
+
n > r ? (Pr.value = !1, cancelAnimationFrame(Nr.value), W.value = {
|
|
656
668
|
...W.value,
|
|
657
669
|
dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
658
670
|
...t,
|
|
@@ -666,12 +678,12 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
666
678
|
value: n,
|
|
667
679
|
VALUE: n
|
|
668
680
|
} : t)
|
|
669
|
-
},
|
|
681
|
+
}, Nr.value = requestAnimationFrame(t));
|
|
670
682
|
}
|
|
671
683
|
t();
|
|
672
684
|
} else if (t.length > 1) {
|
|
673
685
|
function t() {
|
|
674
|
-
n < r / 100 ? (
|
|
686
|
+
n < r / 100 ? (Pr.value = !1, cancelAnimationFrame(Mr.value), L.value.push(e.id), W.value = {
|
|
675
687
|
...W.value,
|
|
676
688
|
dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
677
689
|
...t,
|
|
@@ -685,16 +697,16 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
685
697
|
value: n,
|
|
686
698
|
VALUE: n
|
|
687
699
|
} : t)
|
|
688
|
-
},
|
|
700
|
+
}, Mr.value = requestAnimationFrame(t));
|
|
689
701
|
}
|
|
690
702
|
t();
|
|
691
703
|
} else U("selectLegend", Y.value.dataset);
|
|
692
704
|
}
|
|
693
705
|
let J = w(null);
|
|
694
|
-
function
|
|
706
|
+
function Ir(e) {
|
|
695
707
|
J.value = e;
|
|
696
708
|
}
|
|
697
|
-
let
|
|
709
|
+
let Lr = h(() => z.value.donutThicknessRatio < .01 ? .01 : z.value.donutThicknessRatio > .4 ? .4 : z.value.donutThicknessRatio), Y = h(() => {
|
|
698
710
|
if (G.value !== A.DONUT) return null;
|
|
699
711
|
let e = W.value.dataset.map((e, t) => ({
|
|
700
712
|
...e,
|
|
@@ -703,12 +715,12 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
703
715
|
id: `donut_${t}`
|
|
704
716
|
})).map((e, t) => ({
|
|
705
717
|
...e,
|
|
706
|
-
color: e.COLOR ? ee(e.COLOR) :
|
|
718
|
+
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] || r[t + z.value.paletteStartIndex] || r[(t + z.value.paletteStartIndex) % r.length],
|
|
707
719
|
immutableValue: e.value
|
|
708
720
|
}));
|
|
709
721
|
function n(e, t) {
|
|
710
722
|
return c({
|
|
711
|
-
v: isNaN(e.value /
|
|
723
|
+
v: isNaN(e.value / Or(t)) ? 0 : e.value / Or(t) * 100,
|
|
712
724
|
s: "%",
|
|
713
725
|
r: z.value.dataLabelRoundingPercentage
|
|
714
726
|
});
|
|
@@ -717,11 +729,11 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
717
729
|
return e.proportion * 100 > z.value.donutHideLabelUnderPercentage;
|
|
718
730
|
}
|
|
719
731
|
function o(e, t) {
|
|
720
|
-
let n =
|
|
732
|
+
let n = _r.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
|
|
721
733
|
return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
|
|
722
734
|
}
|
|
723
735
|
function s({ datapoint: n, seriesIndex: r, triggerMode: i = "pointer" }) {
|
|
724
|
-
|
|
736
|
+
jn.value = {
|
|
725
737
|
datapoint: n,
|
|
726
738
|
seriesIndex: r,
|
|
727
739
|
config: z.value,
|
|
@@ -736,7 +748,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
736
748
|
seriesIndex: r,
|
|
737
749
|
series: e,
|
|
738
750
|
config: z.value
|
|
739
|
-
})))
|
|
751
|
+
}))) Mn.value = a({
|
|
740
752
|
datapoint: n,
|
|
741
753
|
seriesIndex: r,
|
|
742
754
|
series: e,
|
|
@@ -744,7 +756,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
744
756
|
});
|
|
745
757
|
else {
|
|
746
758
|
let e = "";
|
|
747
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>`, e += `<b>${
|
|
759
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>`, e += `<b>${p(z.value.formatter, n.value, c({
|
|
748
760
|
p: z.value.valuePrefix,
|
|
749
761
|
v: n.value,
|
|
750
762
|
s: z.value.valueSuffix,
|
|
@@ -756,7 +768,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
756
768
|
v: n.proportion * 100,
|
|
757
769
|
s: "%",
|
|
758
770
|
r: z.value.dataLabelRoundingPercentage
|
|
759
|
-
})})</span></div>`,
|
|
771
|
+
})})</span></div>`, Mn.value = `<div>${e}</div>`;
|
|
760
772
|
}
|
|
761
773
|
F.value = !0;
|
|
762
774
|
}
|
|
@@ -772,56 +784,56 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
772
784
|
seriesIndex: t
|
|
773
785
|
}), U("selectDatapoint", e);
|
|
774
786
|
}
|
|
775
|
-
let
|
|
787
|
+
let u = {
|
|
776
788
|
centerX: K.value.width / 2,
|
|
777
789
|
centerY: K.value.height / 2
|
|
778
|
-
},
|
|
790
|
+
}, ne = e.filter((e) => !L.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0), d = e.map((e, t) => ({
|
|
779
791
|
...e,
|
|
780
|
-
proportion: (e.value || 0) /
|
|
792
|
+
proportion: (e.value || 0) / ne,
|
|
781
793
|
value: e.value || 0,
|
|
782
|
-
absoluteValue:
|
|
794
|
+
absoluteValue: _r.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
|
|
783
795
|
shape: "circle"
|
|
784
|
-
})),
|
|
796
|
+
})), f = K.value.width / 2, re = K.value.height / 2, ae = K.value.height * z.value.donutRadiusRatio;
|
|
785
797
|
return {
|
|
786
798
|
dataset: d.filter((e) => !L.value.includes(e.id)),
|
|
787
799
|
legend: d,
|
|
788
|
-
drawingArea:
|
|
800
|
+
drawingArea: u,
|
|
789
801
|
displayArcPercentage: n,
|
|
790
802
|
isArcBigEnough: a,
|
|
791
803
|
useTooltip: s,
|
|
792
804
|
killTooltip: l,
|
|
793
805
|
selectDatapoint: te,
|
|
794
806
|
getSpaces: o,
|
|
795
|
-
total:
|
|
796
|
-
cx:
|
|
797
|
-
cy:
|
|
798
|
-
radius:
|
|
799
|
-
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) }, re, ae,
|
|
807
|
+
total: ne,
|
|
808
|
+
cx: f,
|
|
809
|
+
cy: re,
|
|
810
|
+
radius: ae,
|
|
811
|
+
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) }, f, re, ae, ae, 1.99999, 2, 1, 360, 105.25, K.value.height * Lr.value)
|
|
800
812
|
};
|
|
801
813
|
}), X = w({
|
|
802
814
|
start: 0,
|
|
803
815
|
end: W.value.maxSeriesLength
|
|
804
816
|
});
|
|
805
|
-
function
|
|
806
|
-
|
|
817
|
+
function Rr() {
|
|
818
|
+
Br();
|
|
807
819
|
}
|
|
808
|
-
let
|
|
809
|
-
async function
|
|
810
|
-
await
|
|
811
|
-
let { zoomStartIndex: e, zoomEndIndex: t } = z.value, n =
|
|
812
|
-
(e != null || t != null) && n ? (e != null && n.setStartValue(e), t != null && n.setEndValue(
|
|
820
|
+
let zr = w(null);
|
|
821
|
+
async function Br() {
|
|
822
|
+
await Re(), await Re();
|
|
823
|
+
let { zoomStartIndex: e, zoomEndIndex: t } = z.value, n = zr.value;
|
|
824
|
+
(e != null || t != null) && n ? (e != null && n.setStartValue(e), t != null && n.setEndValue(Vr(t + 1))) : (X.value = {
|
|
813
825
|
start: 0,
|
|
814
826
|
end: W.value.maxSeriesLength
|
|
815
|
-
},
|
|
827
|
+
}, In.value += 1), Zn();
|
|
816
828
|
}
|
|
817
|
-
function
|
|
829
|
+
function Vr(e) {
|
|
818
830
|
let t = W.value.maxSeriesLength;
|
|
819
831
|
return e > t ? t : e < 0 || z.value.zoomStartIndex !== null && e < z.value.zoomStartIndex ? z.value.zoomStartIndex === null ? 1 : z.value.zoomStartIndex + 1 : e;
|
|
820
832
|
}
|
|
821
|
-
let
|
|
833
|
+
let Hr = h(() => {
|
|
822
834
|
if (!z.value.zoomMinimap.show || G.value === A.DONUT) return [];
|
|
823
835
|
let e = [];
|
|
824
|
-
j(W.value.dataset) && (e = W.value.dataset),
|
|
836
|
+
j(W.value.dataset) && (e = W.value.dataset), Ye(W.value.dataset) && (e = W.value.dataset.map((e, t) => ({
|
|
825
837
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
826
838
|
id: G.value === A.LINE ? `line_${t}` : `bar_${t}`
|
|
827
839
|
})).filter((e) => !L.value.includes(e.id)));
|
|
@@ -831,36 +843,36 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
831
843
|
let r = Math.min(...n);
|
|
832
844
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
833
845
|
});
|
|
834
|
-
function
|
|
846
|
+
function Ur() {
|
|
835
847
|
let e = 0;
|
|
836
|
-
return
|
|
848
|
+
return Bn.value && (e = Array.from(Bn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
837
849
|
let n = t.getComputedTextLength();
|
|
838
850
|
return n > e ? n : e;
|
|
839
851
|
}, 0)), e + 4;
|
|
840
852
|
}
|
|
841
|
-
let
|
|
842
|
-
|
|
853
|
+
let Wr = w(0), Gr = Te((e) => {
|
|
854
|
+
Wr.value = e;
|
|
843
855
|
}, 100);
|
|
844
|
-
|
|
856
|
+
We((e) => {
|
|
845
857
|
let t = R.value;
|
|
846
858
|
if (!t) return;
|
|
847
859
|
let n = new ResizeObserver((e) => {
|
|
848
|
-
|
|
860
|
+
Gr(e[0].contentRect.height);
|
|
849
861
|
});
|
|
850
862
|
n.observe(t), e(() => n.disconnect());
|
|
851
|
-
}),
|
|
852
|
-
|
|
863
|
+
}), ze(() => {
|
|
864
|
+
Wr.value = 0;
|
|
853
865
|
});
|
|
854
|
-
let
|
|
866
|
+
let Kr = h(() => {
|
|
855
867
|
let e = 0;
|
|
856
|
-
return R.value && (e =
|
|
868
|
+
return R.value && (e = Wr.value), 0 + e;
|
|
857
869
|
}), Z = h(() => {
|
|
858
870
|
if (G.value !== A.LINE) return null;
|
|
859
|
-
|
|
871
|
+
Gn.value;
|
|
860
872
|
let e = {
|
|
861
873
|
height: K.value.height,
|
|
862
874
|
width: K.value.width
|
|
863
|
-
}, n =
|
|
875
|
+
}, n = Ur();
|
|
864
876
|
if (R.value) {
|
|
865
877
|
let e = R.value.getBBox().x;
|
|
866
878
|
e < 0 && (n += Math.abs(e));
|
|
@@ -869,25 +881,25 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
869
881
|
left: n + z.value.xyPaddingLeft,
|
|
870
882
|
top: z.value.xyPaddingTop,
|
|
871
883
|
right: e.width - z.value.xyPaddingRight,
|
|
872
|
-
bottom: e.height - z.value.xyPaddingBottom -
|
|
884
|
+
bottom: e.height - z.value.xyPaddingBottom - Kr.value,
|
|
873
885
|
width: Math.max(10, e.width - z.value.xyPaddingLeft - z.value.xyPaddingRight - n),
|
|
874
|
-
height: Math.max(10, e.height - z.value.xyPaddingTop - z.value.xyPaddingBottom -
|
|
886
|
+
height: Math.max(10, e.height - z.value.xyPaddingTop - z.value.xyPaddingBottom - Kr.value)
|
|
875
887
|
}, a = [];
|
|
876
888
|
j(W.value.dataset) && (a = [{
|
|
877
889
|
values: W.value.dataset.slice(X.value.start, X.value.end),
|
|
878
890
|
absoluteValues: W.value.dataset,
|
|
879
891
|
absoluteIndices: W.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
880
892
|
name: z.value.title,
|
|
881
|
-
color:
|
|
893
|
+
color: gr.value[z.value.paletteStartIndex] || r[z.value.paletteStartIndex],
|
|
882
894
|
id: "line_0"
|
|
883
|
-
}]),
|
|
895
|
+
}]), Ye(W.value.dataset) && (a = W.value.dataset.map((e, t) => ({
|
|
884
896
|
...e,
|
|
885
897
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
886
898
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
887
899
|
id: `line_${t}`
|
|
888
900
|
})).map((e, t) => ({
|
|
889
901
|
...e,
|
|
890
|
-
color: e.COLOR ? ee(e.COLOR) :
|
|
902
|
+
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] || r[t + z.value.paletteStartIndex] || r[(t + z.value.paletteStartIndex) % r.length],
|
|
891
903
|
values: e.values.slice(X.value.start, X.value.end),
|
|
892
904
|
absoluteValues: e.values,
|
|
893
905
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -900,7 +912,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
900
912
|
y: i.bottom - i.height * ((e + l) / (s.max + l)),
|
|
901
913
|
x: i.left - 8,
|
|
902
914
|
value: e
|
|
903
|
-
})),
|
|
915
|
+
})), f = a.map((e, t) => ({
|
|
904
916
|
...e,
|
|
905
917
|
shape: "circle",
|
|
906
918
|
coordinates: e.values.map((e, t) => ({
|
|
@@ -917,17 +929,17 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
917
929
|
linePath: t.join(" ")
|
|
918
930
|
};
|
|
919
931
|
});
|
|
920
|
-
function
|
|
932
|
+
function re(e) {
|
|
921
933
|
return a.map((t) => ({
|
|
922
934
|
...t,
|
|
923
935
|
value: t.values[e],
|
|
924
936
|
absoluteIndex: t.absoluteIndices[e]
|
|
925
937
|
})).filter((e) => !L.value.includes(e.id));
|
|
926
938
|
}
|
|
927
|
-
function
|
|
939
|
+
function ae(e, n = "pointer") {
|
|
928
940
|
I.value = e, J.value = e, V.value = e, H.value = n;
|
|
929
|
-
let r =
|
|
930
|
-
|
|
941
|
+
let r = re(e);
|
|
942
|
+
jn.value = {
|
|
931
943
|
datapoint: r,
|
|
932
944
|
seriesIndex: e,
|
|
933
945
|
config: z.value,
|
|
@@ -942,7 +954,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
942
954
|
seriesIndex: e,
|
|
943
955
|
series: a,
|
|
944
956
|
config: z.value
|
|
945
|
-
})))
|
|
957
|
+
}))) Mn.value = i({
|
|
946
958
|
datapoint: r,
|
|
947
959
|
seriesIndex: e,
|
|
948
960
|
series: a,
|
|
@@ -955,7 +967,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
955
967
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
956
968
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>
|
|
957
969
|
<span>${t.name}:</span>
|
|
958
|
-
<b>${
|
|
970
|
+
<b>${p(z.value.formatter, t.value, c({
|
|
959
971
|
p: z.value.valuePrefix,
|
|
960
972
|
v: t.value,
|
|
961
973
|
s: z.value.valueSuffix,
|
|
@@ -967,19 +979,19 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
967
979
|
</b>
|
|
968
980
|
</div>
|
|
969
981
|
`;
|
|
970
|
-
}),
|
|
982
|
+
}), Mn.value = e;
|
|
971
983
|
}
|
|
972
984
|
F.value = !0;
|
|
973
985
|
}
|
|
974
986
|
function oe(e) {
|
|
975
|
-
let t =
|
|
987
|
+
let t = re(e);
|
|
976
988
|
z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
977
989
|
datapoint: t,
|
|
978
990
|
seriesIndex: e + X.value.start
|
|
979
991
|
}), I.value = null, J.value = null, F.value = !1, V.value = null, H.value = "pointer";
|
|
980
992
|
}
|
|
981
993
|
function se(e) {
|
|
982
|
-
let t =
|
|
994
|
+
let t = re(e);
|
|
983
995
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
984
996
|
datapoint: t,
|
|
985
997
|
seriesIndex: e + X.value.start
|
|
@@ -987,23 +999,23 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
987
999
|
}
|
|
988
1000
|
return {
|
|
989
1001
|
absoluteZero: te,
|
|
990
|
-
dataset:
|
|
991
|
-
legend:
|
|
1002
|
+
dataset: f.filter((e) => !L.value.includes(e.id)),
|
|
1003
|
+
legend: f,
|
|
992
1004
|
drawingArea: i,
|
|
993
1005
|
extremes: o,
|
|
994
1006
|
slotSize: u,
|
|
995
1007
|
yLabels: d,
|
|
996
|
-
useTooltip:
|
|
1008
|
+
useTooltip: ae,
|
|
997
1009
|
killTooltip: oe,
|
|
998
1010
|
selectDatapoint: se
|
|
999
1011
|
};
|
|
1000
1012
|
}), Q = h(() => {
|
|
1001
1013
|
if (G.value !== A.BAR) return null;
|
|
1002
|
-
|
|
1014
|
+
Gn.value;
|
|
1003
1015
|
let e = {
|
|
1004
1016
|
height: K.value.height,
|
|
1005
1017
|
width: K.value.width
|
|
1006
|
-
}, n =
|
|
1018
|
+
}, n = Ur();
|
|
1007
1019
|
if (R.value) {
|
|
1008
1020
|
let e = R.value.getBBox().x;
|
|
1009
1021
|
e < 0 && (n += Math.abs(e));
|
|
@@ -1012,25 +1024,25 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1012
1024
|
left: n + z.value.xyPaddingLeft,
|
|
1013
1025
|
top: z.value.xyPaddingTop,
|
|
1014
1026
|
right: e.width - z.value.xyPaddingRight,
|
|
1015
|
-
bottom: e.height - z.value.xyPaddingBottom -
|
|
1027
|
+
bottom: e.height - z.value.xyPaddingBottom - Kr.value,
|
|
1016
1028
|
width: Math.max(10, e.width - z.value.xyPaddingLeft - z.value.xyPaddingRight - n),
|
|
1017
|
-
height: Math.max(10, e.height - z.value.xyPaddingTop - z.value.xyPaddingBottom -
|
|
1029
|
+
height: Math.max(10, e.height - z.value.xyPaddingTop - z.value.xyPaddingBottom - Kr.value)
|
|
1018
1030
|
}, a = [];
|
|
1019
1031
|
j(W.value.dataset) && (a = [{
|
|
1020
1032
|
values: W.value.dataset.slice(X.value.start, X.value.end),
|
|
1021
1033
|
absoluteValues: W.value.dataset,
|
|
1022
1034
|
absoluteIndices: W.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
1023
1035
|
name: z.value.title,
|
|
1024
|
-
color:
|
|
1036
|
+
color: gr.value[z.value.paletteStartIndex] || r[z.value.paletteStartIndex],
|
|
1025
1037
|
id: "bar_0"
|
|
1026
|
-
}]),
|
|
1038
|
+
}]), Ye(W.value.dataset) && (a = W.value.dataset.map((e, t) => ({
|
|
1027
1039
|
...e,
|
|
1028
1040
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
1029
1041
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
1030
1042
|
id: `bar_${t}`
|
|
1031
1043
|
})).map((e, t) => ({
|
|
1032
1044
|
...e,
|
|
1033
|
-
color: e.COLOR ? ee(e.COLOR) :
|
|
1045
|
+
color: e.COLOR ? ee(e.COLOR) : gr.value[t + z.value.paletteStartIndex] || r[t + z.value.paletteStartIndex] || r[(t + z.value.paletteStartIndex) % r.length],
|
|
1034
1046
|
values: e.values.slice(X.value.start, X.value.end),
|
|
1035
1047
|
absoluteValues: e.values,
|
|
1036
1048
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -1043,7 +1055,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1043
1055
|
y: i.bottom - i.height * ((e + l) / (s.max + l)),
|
|
1044
1056
|
x: i.left - 8,
|
|
1045
1057
|
value: e
|
|
1046
|
-
})),
|
|
1058
|
+
})), f = a.map((e, t) => ({
|
|
1047
1059
|
...e,
|
|
1048
1060
|
shape: "square",
|
|
1049
1061
|
coordinates: e.values.map((e, n) => {
|
|
@@ -1056,7 +1068,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1056
1068
|
width: c
|
|
1057
1069
|
};
|
|
1058
1070
|
})
|
|
1059
|
-
})),
|
|
1071
|
+
})), re = a.filter((e) => !L.value.includes(e.id)).map((e, t) => ({
|
|
1060
1072
|
...e,
|
|
1061
1073
|
coordinates: e.values.map((e, n) => {
|
|
1062
1074
|
let r = (e + l) / (o.max + l) * i.height, ee = Math.abs(e) / (o.max + l) * i.height, s = l / (o.max + l) * i.height, c = u / a.filter((e) => !L.value.includes(e.id)).length - z.value.barGap / a.filter((e) => !L.value.includes(e.id)).length;
|
|
@@ -1069,7 +1081,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1069
1081
|
};
|
|
1070
1082
|
})
|
|
1071
1083
|
}));
|
|
1072
|
-
function
|
|
1084
|
+
function ae(e) {
|
|
1073
1085
|
return a.map((t) => ({
|
|
1074
1086
|
...t,
|
|
1075
1087
|
value: t.values[e],
|
|
@@ -1078,8 +1090,8 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1078
1090
|
}
|
|
1079
1091
|
function oe(e, n = "pointer") {
|
|
1080
1092
|
I.value = e, J.value = e, V.value = e, H.value = n;
|
|
1081
|
-
let r =
|
|
1082
|
-
|
|
1093
|
+
let r = ae(e);
|
|
1094
|
+
jn.value = {
|
|
1083
1095
|
datapoint: r,
|
|
1084
1096
|
seriesIndex: e,
|
|
1085
1097
|
config: z.value,
|
|
@@ -1094,7 +1106,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1094
1106
|
seriesIndex: e,
|
|
1095
1107
|
series: a,
|
|
1096
1108
|
config: z.value
|
|
1097
|
-
})))
|
|
1109
|
+
}))) Mn.value = i({
|
|
1098
1110
|
point: r,
|
|
1099
1111
|
seriesIndex: e,
|
|
1100
1112
|
series: a,
|
|
@@ -1107,7 +1119,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1107
1119
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
1108
1120
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${t.color}"/></svg>
|
|
1109
1121
|
<span>${t.name}:</span>
|
|
1110
|
-
<b>${
|
|
1122
|
+
<b>${p(z.value.formatter, t.value, c({
|
|
1111
1123
|
p: z.value.valuePrefix,
|
|
1112
1124
|
v: t.value,
|
|
1113
1125
|
s: z.value.valueSuffix,
|
|
@@ -1119,19 +1131,19 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1119
1131
|
</b>
|
|
1120
1132
|
</div>
|
|
1121
1133
|
`;
|
|
1122
|
-
}),
|
|
1134
|
+
}), Mn.value = e;
|
|
1123
1135
|
}
|
|
1124
1136
|
F.value = !0;
|
|
1125
1137
|
}
|
|
1126
1138
|
function se(e) {
|
|
1127
|
-
let t =
|
|
1139
|
+
let t = ae(e);
|
|
1128
1140
|
z.value.events.datapointLeave && z.value.events.datapointLeave({
|
|
1129
1141
|
datapoint: t,
|
|
1130
1142
|
seriesIndex: e + X.value.start
|
|
1131
1143
|
}), F.value = !1, I.value = null, J.value = null, V.value = null, H.value = "pointer";
|
|
1132
1144
|
}
|
|
1133
1145
|
function ce(e) {
|
|
1134
|
-
let t =
|
|
1146
|
+
let t = ae(e);
|
|
1135
1147
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
1136
1148
|
datapoint: t,
|
|
1137
1149
|
seriesIndex: e + X.value.start
|
|
@@ -1139,9 +1151,9 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1139
1151
|
}
|
|
1140
1152
|
return {
|
|
1141
1153
|
absoluteZero: te,
|
|
1142
|
-
dataset:
|
|
1143
|
-
absoluteDataset:
|
|
1144
|
-
legend:
|
|
1154
|
+
dataset: re.filter((e) => !L.value.includes(e.id)),
|
|
1155
|
+
absoluteDataset: re,
|
|
1156
|
+
legend: f,
|
|
1145
1157
|
drawingArea: i,
|
|
1146
1158
|
extremes: o,
|
|
1147
1159
|
slotSize: u,
|
|
@@ -1150,13 +1162,13 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1150
1162
|
killTooltip: se,
|
|
1151
1163
|
selectDatapoint: ce
|
|
1152
1164
|
};
|
|
1153
|
-
}),
|
|
1154
|
-
let e =
|
|
1165
|
+
}), qr = h(() => G.value === A.LINE ? Z.value?.drawingArea ?? null : G.value === A.BAR ? Q.value?.drawingArea ?? null : null), Jr = h(() => {
|
|
1166
|
+
let e = qr.value, t = K.value.width;
|
|
1155
1167
|
return !e || t <= 0 || !z.value.zoomXyAutoFit ? null : e.left / t;
|
|
1156
|
-
}),
|
|
1157
|
-
let e =
|
|
1168
|
+
}), Yr = h(() => {
|
|
1169
|
+
let e = qr.value, t = K.value.width;
|
|
1158
1170
|
return !e || t <= 0 || !z.value.zoomXyAutoFit ? null : (t - e.right) / t;
|
|
1159
|
-
}),
|
|
1171
|
+
}), Xr = h(() => {
|
|
1160
1172
|
if (G.value === A.LINE) return Z.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
|
|
1161
1173
|
...e,
|
|
1162
1174
|
isVisible: !L.value.includes(e.id),
|
|
@@ -1169,37 +1181,37 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1169
1181
|
type: "bar",
|
|
1170
1182
|
series: e.absoluteValues
|
|
1171
1183
|
}));
|
|
1172
|
-
}), $ = w([]),
|
|
1173
|
-
|
|
1174
|
-
let e = ++
|
|
1184
|
+
}), $ = w([]), Zr = 0;
|
|
1185
|
+
We(() => {
|
|
1186
|
+
let e = ++Zr;
|
|
1175
1187
|
(async () => {
|
|
1176
|
-
let t = await
|
|
1188
|
+
let t = await fe({
|
|
1177
1189
|
values: z.value.xyPeriods,
|
|
1178
1190
|
maxDatapoints: W.value.maxSeriesLength,
|
|
1179
1191
|
formatter: z.value.datetimeFormatter,
|
|
1180
1192
|
start: X.value.start,
|
|
1181
1193
|
end: X.value.end
|
|
1182
1194
|
});
|
|
1183
|
-
e ===
|
|
1195
|
+
e === Zr && ($.value = t);
|
|
1184
1196
|
})();
|
|
1185
1197
|
});
|
|
1186
|
-
let
|
|
1198
|
+
let Qr = h(() => {
|
|
1187
1199
|
let e = z.value.xyPeriodsModulo;
|
|
1188
1200
|
return z.value.xyPeriods.length ? Math.min(e, [...new Set($.value.map((e) => e.text))].length) : e;
|
|
1189
|
-
}),
|
|
1190
|
-
function
|
|
1191
|
-
|
|
1201
|
+
}), $r = w(!1);
|
|
1202
|
+
function ei(e) {
|
|
1203
|
+
$r.value = e, Fn.value += 1;
|
|
1192
1204
|
}
|
|
1193
|
-
function
|
|
1194
|
-
|
|
1205
|
+
function ti() {
|
|
1206
|
+
wr.value.showTooltip = !wr.value.showTooltip;
|
|
1195
1207
|
}
|
|
1196
|
-
let
|
|
1197
|
-
function
|
|
1198
|
-
|
|
1208
|
+
let ni = w(!1);
|
|
1209
|
+
function ri() {
|
|
1210
|
+
ni.value = !ni.value;
|
|
1199
1211
|
}
|
|
1200
|
-
async function
|
|
1212
|
+
async function ii({ scale: e = 2 } = {}) {
|
|
1201
1213
|
if (!N.value) return;
|
|
1202
|
-
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
1214
|
+
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
1203
1215
|
domElement: N.value,
|
|
1204
1216
|
base64: !0,
|
|
1205
1217
|
img: !0,
|
|
@@ -1214,8 +1226,8 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1214
1226
|
aspectRatio: r
|
|
1215
1227
|
};
|
|
1216
1228
|
}
|
|
1217
|
-
let
|
|
1218
|
-
|
|
1229
|
+
let ai = h(() => K.value.width), oi = h(() => K.value.height);
|
|
1230
|
+
Se({
|
|
1219
1231
|
timeLabelsEls: R,
|
|
1220
1232
|
timeLabels: $,
|
|
1221
1233
|
slicer: X,
|
|
@@ -1224,33 +1236,33 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1224
1236
|
autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
|
|
1225
1237
|
isAutoSize: !1,
|
|
1226
1238
|
rotation: z.value.xyPeriodLabelsAutoRotate.angle,
|
|
1227
|
-
height:
|
|
1228
|
-
width:
|
|
1239
|
+
height: oi.value,
|
|
1240
|
+
width: ai.value
|
|
1229
1241
|
});
|
|
1230
|
-
let
|
|
1242
|
+
let si = h(() => z.value.backgroundColor), ci = h(() => G.value === A.DONUT ? Y.value.legend : G.value === A.LINE ? Z.value.legend : Q.value.legend), li = h(() => ({
|
|
1231
1243
|
show: z.value.showLegend,
|
|
1232
1244
|
bold: !1,
|
|
1233
1245
|
backgroundColor: z.value.backgroundColor,
|
|
1234
1246
|
color: z.value.color,
|
|
1235
1247
|
fontSize: z.value.legendFontSize,
|
|
1236
1248
|
position: z.value.legendPosition
|
|
1237
|
-
})),
|
|
1249
|
+
})), ui = h(() => ({
|
|
1238
1250
|
text: z.value.title,
|
|
1239
1251
|
color: z.value.color,
|
|
1240
1252
|
fontSize: z.value.titleFontSize,
|
|
1241
1253
|
bold: z.value.titleBold,
|
|
1242
1254
|
textAlign: z.value.titleTextAlign,
|
|
1243
1255
|
subtitle: { text: "" }
|
|
1244
|
-
})), { generateSvg:
|
|
1245
|
-
svg:
|
|
1246
|
-
title:
|
|
1247
|
-
legend:
|
|
1248
|
-
legendItems:
|
|
1249
|
-
backgroundColor:
|
|
1256
|
+
})), { generateSvg: di, onGenerateImage: fi } = ye({
|
|
1257
|
+
svg: sr,
|
|
1258
|
+
title: ui,
|
|
1259
|
+
legend: li,
|
|
1260
|
+
legendItems: ci,
|
|
1261
|
+
backgroundColor: si,
|
|
1250
1262
|
getSvgCallback: () => z.value.userOptionsCallbacks.svg,
|
|
1251
|
-
generateImage:
|
|
1263
|
+
generateImage: Sr
|
|
1252
1264
|
});
|
|
1253
|
-
async function
|
|
1265
|
+
async function pi() {
|
|
1254
1266
|
if (U("copyAlt", {
|
|
1255
1267
|
config: z.value,
|
|
1256
1268
|
dataset: {
|
|
@@ -1271,18 +1283,18 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1271
1283
|
}
|
|
1272
1284
|
}));
|
|
1273
1285
|
}
|
|
1274
|
-
function
|
|
1286
|
+
function mi(e, t) {
|
|
1275
1287
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
1276
1288
|
}
|
|
1277
|
-
let
|
|
1278
|
-
function
|
|
1279
|
-
V.value = null,
|
|
1289
|
+
let hi = h(() => G.value === A.DONUT ? Y.value?.chart?.length ?? 0 : G.value === A.LINE ? Z.value?.extremes?.maxSeries ?? 0 : G.value === A.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
|
|
1290
|
+
function gi() {
|
|
1291
|
+
V.value = null, nr.value = !0;
|
|
1280
1292
|
}
|
|
1281
|
-
function
|
|
1282
|
-
V.value = null, H.value = "pointer", F.value = !1, I.value = null, J.value = null,
|
|
1293
|
+
function _i() {
|
|
1294
|
+
V.value = null, H.value = "pointer", F.value = !1, I.value = null, J.value = null, nr.value = !1;
|
|
1283
1295
|
}
|
|
1284
|
-
function
|
|
1285
|
-
if (!
|
|
1296
|
+
function vi(e) {
|
|
1297
|
+
if (!sr.value || ni.value || document.activeElement !== sr.value || !hi.value) return;
|
|
1286
1298
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1287
1299
|
if (!t && !n && !r && !i) return;
|
|
1288
1300
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -1310,11 +1322,11 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1310
1322
|
}
|
|
1311
1323
|
return;
|
|
1312
1324
|
}
|
|
1313
|
-
let a = V.value, o = J.value, ee = a !== null && a >= 0 && a <
|
|
1314
|
-
if (ee ? n ? (a += 1, a >=
|
|
1325
|
+
let a = V.value, o = J.value, ee = a !== null && a >= 0 && a < hi.value, s = o !== null && o >= 0 && o < hi.value;
|
|
1326
|
+
if (ee ? n ? (a += 1, a >= hi.value && (a = 0)) : t && (--a, a < 0 && (a = hi.value - 1)) : s ? (a = n ? o + 1 : o - 1, a >= hi.value && (a = 0), a < 0 && (a = hi.value - 1)) : a = n ? 0 : hi.value - 1, G.value === A.DONUT) {
|
|
1315
1327
|
let e = Y.value?.chart?.[a];
|
|
1316
1328
|
if (!e) return;
|
|
1317
|
-
|
|
1329
|
+
yi(a), Y.value.useTooltip({
|
|
1318
1330
|
datapoint: e,
|
|
1319
1331
|
seriesIndex: a,
|
|
1320
1332
|
triggerMode: "keyboard"
|
|
@@ -1322,18 +1334,18 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1322
1334
|
return;
|
|
1323
1335
|
}
|
|
1324
1336
|
if (G.value === A.LINE) {
|
|
1325
|
-
|
|
1337
|
+
yi(a), Z.value?.useTooltip(a, "keyboard");
|
|
1326
1338
|
return;
|
|
1327
1339
|
}
|
|
1328
|
-
G.value === A.BAR && (
|
|
1340
|
+
G.value === A.BAR && (yi(a), Q.value?.useTooltip(a, "keyboard"));
|
|
1329
1341
|
}
|
|
1330
|
-
function
|
|
1331
|
-
if (!Number.isFinite(e) || !
|
|
1342
|
+
function yi(e) {
|
|
1343
|
+
if (!Number.isFinite(e) || !sr.value) return;
|
|
1332
1344
|
let t = 0, n = 0;
|
|
1333
1345
|
if (G.value === A.DONUT) {
|
|
1334
1346
|
let r = Y.value?.chart?.[e];
|
|
1335
1347
|
if (!r) return;
|
|
1336
|
-
t =
|
|
1348
|
+
t = f(r, !0).x, n = oe(r);
|
|
1337
1349
|
}
|
|
1338
1350
|
if (G.value === A.LINE) {
|
|
1339
1351
|
let r = Z.value?.drawingArea, i = Z.value?.slotSize;
|
|
@@ -1345,13 +1357,13 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1345
1357
|
if (!r || !i) return;
|
|
1346
1358
|
t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
|
|
1347
1359
|
}
|
|
1348
|
-
let r =
|
|
1349
|
-
|
|
1360
|
+
let r = sr.value.getBoundingClientRect();
|
|
1361
|
+
tr.value = {
|
|
1350
1362
|
x: r.left + t / K.value.width * r.width,
|
|
1351
1363
|
y: r.top + n / K.value.height * r.height
|
|
1352
1364
|
};
|
|
1353
1365
|
}
|
|
1354
|
-
let
|
|
1366
|
+
let bi = h(() => {
|
|
1355
1367
|
if (G.value === A.DONUT) return {
|
|
1356
1368
|
headers: [
|
|
1357
1369
|
"Series",
|
|
@@ -1366,7 +1378,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1366
1378
|
}) : "0%";
|
|
1367
1379
|
return [
|
|
1368
1380
|
e.name,
|
|
1369
|
-
|
|
1381
|
+
p(z.value.formatter, e.value, c({
|
|
1370
1382
|
p: z.value.valuePrefix,
|
|
1371
1383
|
v: e.value,
|
|
1372
1384
|
s: z.value.valueSuffix,
|
|
@@ -1382,7 +1394,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1382
1394
|
headers: ["Index", ...e.map((e) => e.name)],
|
|
1383
1395
|
rows: Array.from({ length: t }, (t, n) => [$.value?.[n + X.value.start]?.text ?? String(n + X.value.start), ...e.map((e) => {
|
|
1384
1396
|
let t = e.values?.[n];
|
|
1385
|
-
return
|
|
1397
|
+
return p(z.value.formatter, t, c({
|
|
1386
1398
|
p: z.value.valuePrefix,
|
|
1387
1399
|
v: t,
|
|
1388
1400
|
s: z.value.valueSuffix,
|
|
@@ -1396,16 +1408,16 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1396
1408
|
rows: []
|
|
1397
1409
|
};
|
|
1398
1410
|
});
|
|
1399
|
-
return
|
|
1400
|
-
getImage:
|
|
1401
|
-
generatePdf:
|
|
1402
|
-
generateImage:
|
|
1403
|
-
generateSvg:
|
|
1404
|
-
toggleTooltip:
|
|
1405
|
-
toggleAnnotator:
|
|
1406
|
-
toggleFullscreen:
|
|
1407
|
-
copyAlt:
|
|
1408
|
-
}), (e, r) =>
|
|
1411
|
+
return we({
|
|
1412
|
+
getImage: ii,
|
|
1413
|
+
generatePdf: xr,
|
|
1414
|
+
generateImage: Sr,
|
|
1415
|
+
generateSvg: di,
|
|
1416
|
+
toggleTooltip: ti,
|
|
1417
|
+
toggleAnnotator: ri,
|
|
1418
|
+
toggleFullscreen: ei,
|
|
1419
|
+
copyAlt: pi
|
|
1420
|
+
}), (e, r) => vr.value ? (C(), _("div", {
|
|
1409
1421
|
key: 0,
|
|
1410
1422
|
id: `${G.value}_${P.value}`,
|
|
1411
1423
|
ref_key: "quickChart",
|
|
@@ -1413,21 +1425,21 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1413
1425
|
class: b({
|
|
1414
1426
|
"vue-data-ui-component": !0,
|
|
1415
1427
|
"vue-ui-quick-chart": !0,
|
|
1416
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1428
|
+
"vue-data-ui-wrapper-fullscreen": $r.value
|
|
1417
1429
|
}),
|
|
1418
1430
|
style: S(`background:${z.value.backgroundColor};color:${z.value.color};font-family:${z.value.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1419
|
-
onMouseenter: r[2] ||= () =>
|
|
1420
|
-
onMouseleave: r[3] ||= () =>
|
|
1431
|
+
onMouseenter: r[2] ||= () => fr(!0),
|
|
1432
|
+
onMouseleave: r[3] ||= () => fr(!1)
|
|
1421
1433
|
}, [
|
|
1422
1434
|
v("div", {
|
|
1423
1435
|
id: `chart-instructions-${P.value}`,
|
|
1424
1436
|
class: "sr-only"
|
|
1425
|
-
}, [v("p", null, D(z.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1426
|
-
|
|
1437
|
+
}, [v("p", null, D(z.value.a11y.translations.keyboardNavigation), 1)], 8, rt),
|
|
1438
|
+
bi.value.rows.length ? (C(), Ne(ke, {
|
|
1427
1439
|
key: 0,
|
|
1428
1440
|
uid: P.value,
|
|
1429
|
-
head:
|
|
1430
|
-
body:
|
|
1441
|
+
head: bi.value.headers,
|
|
1442
|
+
body: bi.value.rows,
|
|
1431
1443
|
notice: z.value.a11y.translations.tableAvailable,
|
|
1432
1444
|
caption: z.value.a11y.translations.tableCaption
|
|
1433
1445
|
}, null, 8, [
|
|
@@ -1437,15 +1449,15 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1437
1449
|
"notice",
|
|
1438
1450
|
"caption"
|
|
1439
1451
|
])) : g("", !0),
|
|
1440
|
-
z.value.userOptionsButtons.annotator ? (C(),
|
|
1452
|
+
z.value.userOptionsButtons.annotator ? (C(), Ne(O(Xe), {
|
|
1441
1453
|
key: 1,
|
|
1442
|
-
svgRef: O(
|
|
1454
|
+
svgRef: O(sr),
|
|
1443
1455
|
backgroundColor: z.value.backgroundColor,
|
|
1444
1456
|
color: z.value.color,
|
|
1445
|
-
active:
|
|
1446
|
-
isCursorPointer:
|
|
1457
|
+
active: ni.value,
|
|
1458
|
+
isCursorPointer: er.value,
|
|
1447
1459
|
palette: z.value.annotatorPalette,
|
|
1448
|
-
onClose:
|
|
1460
|
+
onClose: ri
|
|
1449
1461
|
}, {
|
|
1450
1462
|
"annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1451
1463
|
"annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
@@ -1462,20 +1474,20 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1462
1474
|
"isCursorPointer",
|
|
1463
1475
|
"palette"
|
|
1464
1476
|
])) : g("", !0),
|
|
1465
|
-
|
|
1477
|
+
Cr.value ? (C(), _("div", {
|
|
1466
1478
|
key: 2,
|
|
1467
1479
|
ref_key: "noTitle",
|
|
1468
|
-
ref:
|
|
1480
|
+
ref: Pn,
|
|
1469
1481
|
class: "vue-data-ui-no-title-space",
|
|
1470
1482
|
style: "height:36px; width: 100%;background:transparent"
|
|
1471
1483
|
}, null, 512)) : g("", !0),
|
|
1472
|
-
z.value.showUserOptions && (
|
|
1484
|
+
z.value.showUserOptions && (lr.value || ur.value) ? (C(), Ne(O(Qe), {
|
|
1473
1485
|
ref: "details",
|
|
1474
|
-
key: `user_option_${
|
|
1486
|
+
key: `user_option_${Fn.value}`,
|
|
1475
1487
|
backgroundColor: z.value.backgroundColor,
|
|
1476
1488
|
color: z.value.color,
|
|
1477
|
-
isPrinting: O(
|
|
1478
|
-
isImaging: O(
|
|
1489
|
+
isPrinting: O(yr),
|
|
1490
|
+
isImaging: O(br),
|
|
1479
1491
|
uid: P.value,
|
|
1480
1492
|
hasTooltip: z.value.userOptionsButtons.tooltip && z.value.showTooltip,
|
|
1481
1493
|
hasPdf: z.value.userOptionsButtons.pdf,
|
|
@@ -1484,25 +1496,25 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1484
1496
|
hasFullscreen: z.value.userOptionsButtons.fullscreen,
|
|
1485
1497
|
hasAltCopy: z.value.userOptionsButtons.altCopy,
|
|
1486
1498
|
hasXls: !1,
|
|
1487
|
-
isTooltip:
|
|
1488
|
-
isFullscreen:
|
|
1499
|
+
isTooltip: wr.value.showTooltip,
|
|
1500
|
+
isFullscreen: $r.value,
|
|
1489
1501
|
titles: { ...z.value.userOptionsButtonTitles },
|
|
1490
1502
|
chartElement: N.value,
|
|
1491
1503
|
position: z.value.userOptionsPosition,
|
|
1492
1504
|
hasAnnotator: z.value.userOptionsButtons.annotator,
|
|
1493
|
-
isAnnotation:
|
|
1505
|
+
isAnnotation: ni.value,
|
|
1494
1506
|
callbacks: z.value.userOptionsCallbacks,
|
|
1495
1507
|
printScale: z.value.userOptionsPrint.scale,
|
|
1496
|
-
isCursorPointer:
|
|
1497
|
-
onToggleFullscreen:
|
|
1498
|
-
onGeneratePdf: O(
|
|
1499
|
-
onGenerateImage: O(
|
|
1500
|
-
onGenerateSvg: O(
|
|
1501
|
-
onToggleTooltip:
|
|
1502
|
-
onToggleAnnotator:
|
|
1503
|
-
onCopyAlt:
|
|
1504
|
-
style: S({ visibility:
|
|
1505
|
-
},
|
|
1508
|
+
isCursorPointer: er.value,
|
|
1509
|
+
onToggleFullscreen: ei,
|
|
1510
|
+
onGeneratePdf: O(xr),
|
|
1511
|
+
onGenerateImage: O(fi),
|
|
1512
|
+
onGenerateSvg: O(di),
|
|
1513
|
+
onToggleTooltip: ti,
|
|
1514
|
+
onToggleAnnotator: ri,
|
|
1515
|
+
onCopyAlt: pi,
|
|
1516
|
+
style: S({ visibility: lr.value ? ur.value ? "visible" : "hidden" : "visible" })
|
|
1517
|
+
}, Pe({ _: 2 }, [
|
|
1506
1518
|
e.$slots.menuIcon ? {
|
|
1507
1519
|
name: "menuIcon",
|
|
1508
1520
|
fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
|
|
@@ -1592,26 +1604,26 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1592
1604
|
z.value.title ? (C(), _("div", {
|
|
1593
1605
|
key: 4,
|
|
1594
1606
|
ref_key: "quickChartTitle",
|
|
1595
|
-
ref:
|
|
1607
|
+
ref: On,
|
|
1596
1608
|
class: "vue-ui-quick-chart-title",
|
|
1597
1609
|
style: S(`background:transparent;color:${z.value.color};font-size:${z.value.titleFontSize}px;font-weight:${z.value.titleBold ? "bold" : "normal"};text-align:${z.value.titleTextAlign}`)
|
|
1598
1610
|
}, D(z.value.title), 5)) : g("", !0),
|
|
1599
|
-
v("div", { id: `legend-top-${P.value}` }, null, 8,
|
|
1600
|
-
v("div",
|
|
1611
|
+
v("div", { id: `legend-top-${P.value}` }, null, 8, it),
|
|
1612
|
+
v("div", at, [G.value ? (C(), _("svg", {
|
|
1601
1613
|
key: 0,
|
|
1602
1614
|
ref_key: "svgRef",
|
|
1603
|
-
ref:
|
|
1604
|
-
xmlns: O(
|
|
1615
|
+
ref: sr,
|
|
1616
|
+
xmlns: O(ce),
|
|
1605
1617
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1606
|
-
viewBox:
|
|
1618
|
+
viewBox: Dr.value,
|
|
1607
1619
|
style: S(`max-width:100%;overflow:visible;background:transparent;color:${z.value.color}`),
|
|
1608
1620
|
class: b({ "vue-data-ui-no-transition": !O(B) }),
|
|
1609
1621
|
tabindex: "0",
|
|
1610
|
-
onFocus:
|
|
1611
|
-
onBlur:
|
|
1612
|
-
onKeydown:
|
|
1622
|
+
onFocus: gi,
|
|
1623
|
+
onBlur: _i,
|
|
1624
|
+
onKeydown: vi
|
|
1613
1625
|
}, [
|
|
1614
|
-
|
|
1626
|
+
Fe(O(Je)),
|
|
1615
1627
|
e.$slots["chart-background"] && G.value === A.BAR ? (C(), _("foreignObject", {
|
|
1616
1628
|
key: 0,
|
|
1617
1629
|
x: Q.value.drawingArea.left,
|
|
@@ -1619,7 +1631,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1619
1631
|
width: Q.value.drawingArea.width,
|
|
1620
1632
|
height: Q.value.drawingArea.height,
|
|
1621
1633
|
style: { pointerEvents: "none" }
|
|
1622
|
-
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1634
|
+
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, st)) : g("", !0),
|
|
1623
1635
|
e.$slots["chart-background"] && G.value === A.LINE ? (C(), _("foreignObject", {
|
|
1624
1636
|
key: 1,
|
|
1625
1637
|
x: Z.value.drawingArea.left,
|
|
@@ -1627,7 +1639,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1627
1639
|
width: Z.value.drawingArea.width,
|
|
1628
1640
|
height: Z.value.drawingArea.height,
|
|
1629
1641
|
style: { pointerEvents: "none" }
|
|
1630
|
-
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1642
|
+
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : g("", !0),
|
|
1631
1643
|
e.$slots["chart-background"] && G.value === A.DONUT ? (C(), _("foreignObject", {
|
|
1632
1644
|
key: 2,
|
|
1633
1645
|
x: 0,
|
|
@@ -1635,7 +1647,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1635
1647
|
width: K.value.width,
|
|
1636
1648
|
height: K.value.height,
|
|
1637
1649
|
style: { pointerEvents: "none" }
|
|
1638
|
-
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1650
|
+
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : g("", !0),
|
|
1639
1651
|
v("defs", null, [v("filter", {
|
|
1640
1652
|
id: `blur_${P.value}`,
|
|
1641
1653
|
x: "-50%",
|
|
@@ -1646,10 +1658,10 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1646
1658
|
in: "SourceGraphic",
|
|
1647
1659
|
stdDeviation: 2,
|
|
1648
1660
|
id: `blur_std_${P.value}`
|
|
1649
|
-
}, null, 8,
|
|
1661
|
+
}, null, 8, dt), r[4] ||= v("feColorMatrix", {
|
|
1650
1662
|
type: "saturate",
|
|
1651
1663
|
values: "0"
|
|
1652
|
-
}, null, -1)], 8,
|
|
1664
|
+
}, null, -1)], 8, ut), v("filter", {
|
|
1653
1665
|
id: `shadow_${P.value}`,
|
|
1654
1666
|
"color-interpolation-filters": "sRGB"
|
|
1655
1667
|
}, [v("feDropShadow", {
|
|
@@ -1658,35 +1670,35 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1658
1670
|
stdDeviation: "10",
|
|
1659
1671
|
"flood-opacity": "0.5",
|
|
1660
1672
|
"flood-color": z.value.donutShadowColor
|
|
1661
|
-
}, null, 8,
|
|
1673
|
+
}, null, 8, pt)], 8, ft)]),
|
|
1662
1674
|
G.value === A.DONUT ? (C(), _(m, { key: 3 }, [
|
|
1663
|
-
z.value.showDataLabels ? (C(), _("g",
|
|
1675
|
+
z.value.showDataLabels ? (C(), _("g", mt, [(C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _(m, null, [Y.value.isArcBigEnough(e) ? (C(), _("path", {
|
|
1664
1676
|
key: 0,
|
|
1665
1677
|
d: O(re)(e, {
|
|
1666
1678
|
x: K.value.width / 2,
|
|
1667
1679
|
y: K.value.height / 2
|
|
1668
|
-
}, 16, 16, !1, !1, K.value.height *
|
|
1680
|
+
}, 16, 16, !1, !1, K.value.height * Lr.value, 12, z.value.donutCurvedMarkers),
|
|
1669
1681
|
stroke: e.color,
|
|
1670
1682
|
"stroke-width": z.value.donutLabelMarkerStrokeWidth,
|
|
1671
1683
|
"stroke-linecap": "round",
|
|
1672
1684
|
"stroke-linejoin": "round",
|
|
1673
1685
|
fill: "none",
|
|
1674
|
-
filter:
|
|
1675
|
-
}, null, 8,
|
|
1686
|
+
filter: kr(e.id)
|
|
1687
|
+
}, null, 8, ht)) : g("", !0)], 64))), 256))])) : g("", !0),
|
|
1676
1688
|
v("circle", {
|
|
1677
1689
|
cx: Y.value.cx,
|
|
1678
1690
|
cy: Y.value.cy,
|
|
1679
1691
|
r: Y.value.radius,
|
|
1680
1692
|
fill: z.value.backgroundColor,
|
|
1681
1693
|
filter: z.value.donutUseShadow ? `url(#shadow_${P.value})` : ""
|
|
1682
|
-
}, null, 8,
|
|
1683
|
-
v("g",
|
|
1694
|
+
}, null, 8, gt),
|
|
1695
|
+
v("g", _t, [(C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _("path", {
|
|
1684
1696
|
d: e.arcSlice,
|
|
1685
1697
|
fill: e.color,
|
|
1686
1698
|
stroke: z.value.donutStroke || z.value.backgroundColor,
|
|
1687
1699
|
"stroke-width": z.value.donutStrokeWidth,
|
|
1688
|
-
filter:
|
|
1689
|
-
}, null, 8,
|
|
1700
|
+
filter: kr(e.id)
|
|
1701
|
+
}, null, 8, vt))), 256)), (C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _("path", {
|
|
1690
1702
|
d: e.arcSlice,
|
|
1691
1703
|
fill: "transparent",
|
|
1692
1704
|
onMouseenter: (n) => Y.value.useTooltip({
|
|
@@ -1702,27 +1714,27 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1702
1714
|
datapoint: e,
|
|
1703
1715
|
seriesIndex: t
|
|
1704
1716
|
})
|
|
1705
|
-
}, null, 40,
|
|
1706
|
-
z.value.showDataLabels ? (C(), _("g",
|
|
1717
|
+
}, null, 40, yt))), 256))]),
|
|
1718
|
+
z.value.showDataLabels ? (C(), _("g", bt, [(C(!0), _(m, null, T(Y.value.chart, (e, t) => (C(), _(m, null, [
|
|
1707
1719
|
Y.value.isArcBigEnough(e) ? (C(), _("circle", {
|
|
1708
1720
|
key: 0,
|
|
1709
|
-
cx: O(
|
|
1710
|
-
cy: O(
|
|
1721
|
+
cx: O(f)(e).x,
|
|
1722
|
+
cy: O(oe)(e) - 3.7,
|
|
1711
1723
|
fill: e.color,
|
|
1712
1724
|
stroke: z.value.backgroundColor,
|
|
1713
1725
|
"stroke-width": 1,
|
|
1714
1726
|
r: 3,
|
|
1715
|
-
filter:
|
|
1716
|
-
}, null, 8,
|
|
1727
|
+
filter: kr(e.id)
|
|
1728
|
+
}, null, 8, xt)) : g("", !0),
|
|
1717
1729
|
Y.value.isArcBigEnough(e) ? (C(), _("text", {
|
|
1718
1730
|
key: 1,
|
|
1719
|
-
"text-anchor": O(
|
|
1720
|
-
x: O(
|
|
1721
|
-
y: O(
|
|
1731
|
+
"text-anchor": O(f)(e, !0, 20).anchor,
|
|
1732
|
+
x: O(f)(e, !0).x,
|
|
1733
|
+
y: O(oe)(e),
|
|
1722
1734
|
fill: z.value.color,
|
|
1723
1735
|
"font-size": z.value.dataLabelFontSize,
|
|
1724
|
-
filter:
|
|
1725
|
-
}, D(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + D(O(
|
|
1736
|
+
filter: kr(e.id)
|
|
1737
|
+
}, D(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + D(O(p)(z.value.formatter, e.value, O(c)({
|
|
1726
1738
|
p: z.value.valuePrefix,
|
|
1727
1739
|
v: e.value,
|
|
1728
1740
|
s: z.value.valueSuffix,
|
|
@@ -1730,24 +1742,24 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1730
1742
|
}), {
|
|
1731
1743
|
datapoint: e,
|
|
1732
1744
|
seriesIndex: t
|
|
1733
|
-
})) + ") ", 9,
|
|
1745
|
+
})) + ") ", 9, St)) : g("", !0),
|
|
1734
1746
|
Y.value.isArcBigEnough(e, !0, 20) ? (C(), _("text", {
|
|
1735
1747
|
key: 2,
|
|
1736
|
-
"text-anchor": O(
|
|
1737
|
-
x: O(
|
|
1738
|
-
y: O(
|
|
1748
|
+
"text-anchor": O(f)(e).anchor,
|
|
1749
|
+
x: O(f)(e, !0).x,
|
|
1750
|
+
y: O(oe)(e) + z.value.dataLabelFontSize,
|
|
1739
1751
|
fill: z.value.color,
|
|
1740
1752
|
"font-size": z.value.dataLabelFontSize,
|
|
1741
|
-
filter:
|
|
1742
|
-
}, D(e.name), 9,
|
|
1753
|
+
filter: kr(e.id)
|
|
1754
|
+
}, D(e.name), 9, Ct)) : g("", !0)
|
|
1743
1755
|
], 64))), 256))])) : g("", !0),
|
|
1744
|
-
z.value.donutShowTotal ? (C(), _("g",
|
|
1756
|
+
z.value.donutShowTotal ? (C(), _("g", wt, [v("text", {
|
|
1745
1757
|
"text-anchor": "middle",
|
|
1746
1758
|
x: Y.value.drawingArea.centerX,
|
|
1747
1759
|
y: Y.value.drawingArea.centerY - z.value.donutTotalLabelFontSize / 2,
|
|
1748
1760
|
"font-size": z.value.donutTotalLabelFontSize,
|
|
1749
1761
|
fill: z.value.color
|
|
1750
|
-
}, D(z.value.donutTotalLabelText), 9,
|
|
1762
|
+
}, D(z.value.donutTotalLabelText), 9, Tt), v("text", {
|
|
1751
1763
|
"text-anchor": "middle",
|
|
1752
1764
|
x: Y.value.drawingArea.centerX,
|
|
1753
1765
|
y: Y.value.drawingArea.centerY + z.value.donutTotalLabelFontSize,
|
|
@@ -1758,10 +1770,10 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1758
1770
|
v: Y.value.total,
|
|
1759
1771
|
s: z.value.valueSuffix,
|
|
1760
1772
|
r: z.value.dataLabelRoundingValue
|
|
1761
|
-
})), 9,
|
|
1773
|
+
})), 9, Et)])) : g("", !0)
|
|
1762
1774
|
], 64)) : g("", !0),
|
|
1763
1775
|
G.value === A.LINE ? (C(), _(m, { key: 4 }, [
|
|
1764
|
-
z.value.xyShowGrid ? (C(), _("g",
|
|
1776
|
+
z.value.xyShowGrid ? (C(), _("g", Dt, [(C(!0), _(m, null, T(Z.value.yLabels, (e) => (C(), _(m, null, [e.y <= Z.value.drawingArea.bottom ? (C(), _("line", {
|
|
1765
1777
|
key: 0,
|
|
1766
1778
|
x1: Z.value.drawingArea.left,
|
|
1767
1779
|
x2: Z.value.drawingArea.right,
|
|
@@ -1770,7 +1782,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1770
1782
|
stroke: z.value.xyGridStroke,
|
|
1771
1783
|
"stroke-width": z.value.xyGridStrokeWidth,
|
|
1772
1784
|
"stroke-linecap": "round"
|
|
1773
|
-
}, null, 8,
|
|
1785
|
+
}, null, 8, Ot)) : g("", !0)], 64))), 256)), (C(!0), _(m, null, T(Z.value.extremes.maxSeries + 1, (e, t) => (C(), _("line", {
|
|
1774
1786
|
x1: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1775
1787
|
x2: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1776
1788
|
y1: Z.value.drawingArea.top,
|
|
@@ -1778,8 +1790,8 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1778
1790
|
stroke: z.value.xyGridStroke,
|
|
1779
1791
|
"stroke-width": z.value.xyGridStrokeWidth,
|
|
1780
1792
|
"stroke-linecap": "round"
|
|
1781
|
-
}, null, 8,
|
|
1782
|
-
z.value.xyShowAxis ? (C(), _("g",
|
|
1793
|
+
}, null, 8, kt))), 256))])) : g("", !0),
|
|
1794
|
+
z.value.xyShowAxis ? (C(), _("g", At, [v("line", {
|
|
1783
1795
|
x1: Z.value.drawingArea.left,
|
|
1784
1796
|
x2: Z.value.drawingArea.left,
|
|
1785
1797
|
y1: Z.value.drawingArea.top,
|
|
@@ -1787,7 +1799,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1787
1799
|
stroke: z.value.xyAxisStroke,
|
|
1788
1800
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
1789
1801
|
"stroke-linecap": "round"
|
|
1790
|
-
}, null, 8,
|
|
1802
|
+
}, null, 8, jt), v("line", {
|
|
1791
1803
|
x1: Z.value.drawingArea.left,
|
|
1792
1804
|
x2: Z.value.drawingArea.right,
|
|
1793
1805
|
y1: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
|
|
@@ -1795,12 +1807,12 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1795
1807
|
stroke: z.value.xyAxisStroke,
|
|
1796
1808
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
1797
1809
|
"stroke-linecap": "round"
|
|
1798
|
-
}, null, 8,
|
|
1810
|
+
}, null, 8, Mt)])) : g("", !0),
|
|
1799
1811
|
z.value.xyShowScale ? (C(), _("g", {
|
|
1800
1812
|
key: 2,
|
|
1801
1813
|
class: "yLabels",
|
|
1802
1814
|
ref_key: "scaleLabels",
|
|
1803
|
-
ref:
|
|
1815
|
+
ref: Bn
|
|
1804
1816
|
}, [(C(!0), _(m, null, T(Z.value.yLabels, (e, t) => (C(), _(m, { key: `sl_${t}` }, [e.y <= Z.value.drawingArea.bottom ? (C(), _("path", {
|
|
1805
1817
|
key: 0,
|
|
1806
1818
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
@@ -1808,14 +1820,14 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1808
1820
|
stroke: z.value.xyAxisStroke,
|
|
1809
1821
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
1810
1822
|
"stroke-linecap": "round"
|
|
1811
|
-
}, null, 10,
|
|
1823
|
+
}, null, 10, Nt)) : g("", !0), e.y <= Z.value.drawingArea.bottom ? (C(), _("text", {
|
|
1812
1824
|
key: 1,
|
|
1813
1825
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
1814
1826
|
transform: `translate(${e.x}, ${e.y + z.value.xyLabelsYFontSize / 3})`,
|
|
1815
1827
|
"text-anchor": "end",
|
|
1816
1828
|
"font-size": z.value.xyLabelsYFontSize,
|
|
1817
1829
|
fill: z.value.color
|
|
1818
|
-
}, D(O(
|
|
1830
|
+
}, D(O(p)(z.value.formatter, e.value, O(c)({
|
|
1819
1831
|
p: z.value.valuePrefix,
|
|
1820
1832
|
v: e.value,
|
|
1821
1833
|
s: z.value.valueSuffix,
|
|
@@ -1823,8 +1835,8 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1823
1835
|
}), {
|
|
1824
1836
|
datapoint: e,
|
|
1825
1837
|
seriesIndex: t
|
|
1826
|
-
})), 11,
|
|
1827
|
-
z.value.xyShowScale && z.value.xyPeriods.length ? (C(), _("g",
|
|
1838
|
+
})), 11, Pt)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
1839
|
+
z.value.xyShowScale && z.value.xyPeriods.length ? (C(), _("g", Ft, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!z.value.xyPeriodsShowOnlyAtModulo || z.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Qr.value) === 0 || X.value.end - X.value.start <= Qr.value ? (C(), _("line", {
|
|
1828
1840
|
key: 0,
|
|
1829
1841
|
x1: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
1830
1842
|
x2: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
@@ -1833,10 +1845,10 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1833
1845
|
stroke: z.value.xyAxisStroke,
|
|
1834
1846
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
1835
1847
|
"stroke-linecap": "round"
|
|
1836
|
-
}, null, 8,
|
|
1848
|
+
}, null, 8, It)) : g("", !0)], 64))), 256)), v("g", {
|
|
1837
1849
|
ref_key: "timeLabelsEls",
|
|
1838
1850
|
ref: R
|
|
1839
|
-
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!z.value.xyPeriodsShowOnlyAtModulo || z.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) /
|
|
1851
|
+
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!z.value.xyPeriodsShowOnlyAtModulo || z.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Qr.value) === 0 || X.value.end - X.value.start <= Qr.value ? (C(), _("g", Lt, [String(e).includes("\n") ? (C(), _("text", {
|
|
1840
1852
|
key: 1,
|
|
1841
1853
|
class: "vue-data-ui-time-label",
|
|
1842
1854
|
"font-size": z.value.xyLabelsXFontSize,
|
|
@@ -1850,62 +1862,62 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1850
1862
|
x: 0,
|
|
1851
1863
|
y: 0
|
|
1852
1864
|
})
|
|
1853
|
-
}, null, 8,
|
|
1865
|
+
}, null, 8, zt)) : (C(), _("text", {
|
|
1854
1866
|
key: 0,
|
|
1855
1867
|
class: "vue-data-ui-time-label",
|
|
1856
1868
|
"font-size": z.value.xyLabelsXFontSize,
|
|
1857
1869
|
"text-anchor": z.value.xyPeriodLabelsRotation > 0 ? "start" : z.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1858
1870
|
fill: z.value.color,
|
|
1859
1871
|
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + z.value.xyLabelsXFontSize + 6}), rotate(${z.value.xyPeriodLabelsRotation})`
|
|
1860
|
-
}, D(e), 9,
|
|
1861
|
-
v("g",
|
|
1872
|
+
}, D(e), 9, Rt))])) : g("", !0)], 64))), 256))], 512)])) : g("", !0),
|
|
1873
|
+
v("g", Bt, [(C(!0), _(m, null, T(Z.value.dataset, (e, t) => (C(), _("g", {
|
|
1862
1874
|
key: `serie_${e.id}`,
|
|
1863
1875
|
class: "line-plot-series"
|
|
1864
1876
|
}, [z.value.lineSmooth ? (C(), _(m, { key: 0 }, [v("path", {
|
|
1865
1877
|
ref_for: !0,
|
|
1866
1878
|
ref_key: "pathWrapper",
|
|
1867
|
-
ref:
|
|
1879
|
+
ref: Rn,
|
|
1868
1880
|
d: `M ${O(a)(e.coordinates)}`,
|
|
1869
1881
|
stroke: z.value.backgroundColor,
|
|
1870
1882
|
"stroke-width": z.value.lineStrokeWidth + 1,
|
|
1871
1883
|
"stroke-linecap": "round",
|
|
1872
1884
|
fill: "none",
|
|
1873
1885
|
class: b({ "vue-data-ui-transition": O(B) })
|
|
1874
|
-
}, null, 10,
|
|
1886
|
+
}, null, 10, Vt), v("path", {
|
|
1875
1887
|
ref_for: !0,
|
|
1876
1888
|
ref_key: "pathTop",
|
|
1877
|
-
ref:
|
|
1889
|
+
ref: zn,
|
|
1878
1890
|
d: `M ${O(a)(e.coordinates)}`,
|
|
1879
1891
|
stroke: e.color,
|
|
1880
1892
|
"stroke-width": z.value.lineStrokeWidth,
|
|
1881
1893
|
"stroke-linecap": "round",
|
|
1882
1894
|
fill: "none",
|
|
1883
1895
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
1884
|
-
style: S({ transition: O(
|
|
1885
|
-
}, null, 14,
|
|
1896
|
+
style: S({ transition: O(ir) ? void 0 : "all 0.2s ease-in-out" })
|
|
1897
|
+
}, null, 14, Ht)], 64)) : (C(), _(m, { key: 1 }, [v("path", {
|
|
1886
1898
|
ref_for: !0,
|
|
1887
1899
|
ref_key: "pathWrapper",
|
|
1888
|
-
ref:
|
|
1900
|
+
ref: Rn,
|
|
1889
1901
|
d: `M ${e.linePath}`,
|
|
1890
1902
|
stroke: z.value.backgroundColor,
|
|
1891
1903
|
"stroke-width": z.value.lineStrokeWidth + 1,
|
|
1892
1904
|
"stroke-linecap": "round",
|
|
1893
1905
|
fill: "none",
|
|
1894
1906
|
class: b({ "vue-data-ui-transition": O(B) })
|
|
1895
|
-
}, null, 10,
|
|
1907
|
+
}, null, 10, Ut), v("path", {
|
|
1896
1908
|
ref_for: !0,
|
|
1897
1909
|
ref_key: "pathTop",
|
|
1898
|
-
ref:
|
|
1910
|
+
ref: zn,
|
|
1899
1911
|
d: `M ${e.linePath}`,
|
|
1900
1912
|
stroke: e.color,
|
|
1901
1913
|
"stroke-width": z.value.lineStrokeWidth,
|
|
1902
1914
|
"stroke-linecap": "round",
|
|
1903
1915
|
fill: "none",
|
|
1904
1916
|
class: b({ "vue-data-ui-transition": O(B) })
|
|
1905
|
-
}, null, 10,
|
|
1917
|
+
}, null, 10, Wt)], 64)), (C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("circle", {
|
|
1906
1918
|
key: `dp_${e.id}_${n + X.value.start}`,
|
|
1907
1919
|
cx: t.x,
|
|
1908
|
-
cy: O(
|
|
1920
|
+
cy: O(d)(t.y),
|
|
1909
1921
|
r: 3,
|
|
1910
1922
|
fill: e.color,
|
|
1911
1923
|
stroke: z.value.backgroundColor,
|
|
@@ -1914,24 +1926,24 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1914
1926
|
"vue-ui-quick-chart-plot": !0,
|
|
1915
1927
|
"vue-data-ui-transition": O(B)
|
|
1916
1928
|
})
|
|
1917
|
-
}, null, 10,
|
|
1918
|
-
z.value.showDataLabels ? (C(), _("g",
|
|
1929
|
+
}, null, 10, Gt))), 128))]))), 128))]),
|
|
1930
|
+
z.value.showDataLabels ? (C(), _("g", Kt, [(C(!0), _(m, null, T(Z.value.dataset, (e, t) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("text", {
|
|
1919
1931
|
class: b(["vue-ui-quick-chart-label", { "vue-data-ui-transition": O(B) }]),
|
|
1920
1932
|
key: `plot_${e.id}_${n + X.value.start}`,
|
|
1921
1933
|
"text-anchor": "middle",
|
|
1922
1934
|
"font-size": z.value.dataLabelFontSize,
|
|
1923
1935
|
fill: e.color,
|
|
1924
|
-
transform: `translate(${t.x}, ${O(
|
|
1925
|
-
}, D(O(
|
|
1936
|
+
transform: `translate(${t.x}, ${O(d)(t.y) - z.value.dataLabelFontSize / 2})`
|
|
1937
|
+
}, D(O(p)(z.value.formatter, O(d)(t.value), O(c)({
|
|
1926
1938
|
p: z.value.valuePrefix,
|
|
1927
|
-
v: O(
|
|
1939
|
+
v: O(d)(t.value),
|
|
1928
1940
|
s: z.value.valueSuffix,
|
|
1929
1941
|
r: z.value.dataLabelRoundingValue
|
|
1930
1942
|
}), {
|
|
1931
1943
|
datapoint: t,
|
|
1932
1944
|
seriesIndex: n
|
|
1933
|
-
})), 11,
|
|
1934
|
-
|
|
1945
|
+
})), 11, qt))), 128))], 64))), 128))])) : g("", !0),
|
|
1946
|
+
dr.value ? (C(), _("g", Jt, [(C(!0), _(m, null, T(Z.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
|
|
1935
1947
|
x: Z.value.drawingArea.left + t * Z.value.slotSize,
|
|
1936
1948
|
y: Z.value.drawingArea.top,
|
|
1937
1949
|
height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
|
|
@@ -1941,10 +1953,10 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1941
1953
|
onMouseenter: (e) => Z.value.useTooltip(t, "pointer"),
|
|
1942
1954
|
onMouseleave: (e) => Z.value.killTooltip(t),
|
|
1943
1955
|
onClick: (e) => Z.value.selectDatapoint(t)
|
|
1944
|
-
}, null, 44,
|
|
1956
|
+
}, null, 44, Yt))), 256))])) : g("", !0)
|
|
1945
1957
|
], 64)) : g("", !0),
|
|
1946
1958
|
G.value === A.BAR ? (C(), _(m, { key: 5 }, [
|
|
1947
|
-
z.value.xyShowGrid ? (C(), _("g",
|
|
1959
|
+
z.value.xyShowGrid ? (C(), _("g", Xt, [(C(!0), _(m, null, T(Q.value.yLabels, (e) => (C(), _(m, null, [e.y <= Q.value.drawingArea.bottom ? (C(), _("line", {
|
|
1948
1960
|
key: 0,
|
|
1949
1961
|
x1: Q.value.drawingArea.left,
|
|
1950
1962
|
x2: Q.value.drawingArea.right,
|
|
@@ -1953,7 +1965,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1953
1965
|
stroke: z.value.xyGridStroke,
|
|
1954
1966
|
"stroke-width": z.value.xyGridStrokeWidth,
|
|
1955
1967
|
"stroke-linecap": "round"
|
|
1956
|
-
}, null, 8,
|
|
1968
|
+
}, null, 8, Zt)) : g("", !0)], 64))), 256)), L.value.length < Q.value.legend.length ? (C(!0), _(m, { key: 0 }, T(Q.value.extremes.maxSeries + 1, (e, t) => (C(), _("line", {
|
|
1957
1969
|
x1: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
1958
1970
|
x2: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
1959
1971
|
y1: Q.value.drawingArea.top,
|
|
@@ -1961,8 +1973,8 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1961
1973
|
stroke: z.value.xyGridStroke,
|
|
1962
1974
|
"stroke-width": z.value.xyGridStrokeWidth,
|
|
1963
1975
|
"stroke-linecap": "round"
|
|
1964
|
-
}, null, 8,
|
|
1965
|
-
z.value.xyShowAxis ? (C(), _("g",
|
|
1976
|
+
}, null, 8, Qt))), 256)) : g("", !0)])) : g("", !0),
|
|
1977
|
+
z.value.xyShowAxis ? (C(), _("g", $t, [v("line", {
|
|
1966
1978
|
x1: Q.value.drawingArea.left,
|
|
1967
1979
|
x2: Q.value.drawingArea.left,
|
|
1968
1980
|
y1: Q.value.drawingArea.top,
|
|
@@ -1970,7 +1982,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1970
1982
|
stroke: z.value.xyAxisStroke,
|
|
1971
1983
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
1972
1984
|
"stroke-linecap": "round"
|
|
1973
|
-
}, null, 8,
|
|
1985
|
+
}, null, 8, en), v("line", {
|
|
1974
1986
|
x1: Q.value.drawingArea.left,
|
|
1975
1987
|
x2: Q.value.drawingArea.right,
|
|
1976
1988
|
y1: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
|
|
@@ -1978,12 +1990,12 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1978
1990
|
stroke: z.value.xyAxisStroke,
|
|
1979
1991
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
1980
1992
|
"stroke-linecap": "round"
|
|
1981
|
-
}, null, 8,
|
|
1993
|
+
}, null, 8, tn)])) : g("", !0),
|
|
1982
1994
|
z.value.xyShowScale ? (C(), _("g", {
|
|
1983
1995
|
key: 2,
|
|
1984
1996
|
class: "yLabels",
|
|
1985
1997
|
ref_key: "scaleLabels",
|
|
1986
|
-
ref:
|
|
1998
|
+
ref: Bn
|
|
1987
1999
|
}, [(C(!0), _(m, null, T(Q.value.yLabels, (e, t) => (C(), _(m, { key: `sl_${t}` }, [e.y <= Q.value.drawingArea.bottom ? (C(), _("path", {
|
|
1988
2000
|
key: 0,
|
|
1989
2001
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
@@ -1991,14 +2003,14 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
1991
2003
|
stroke: z.value.xyAxisStroke,
|
|
1992
2004
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
1993
2005
|
"stroke-linecap": "round"
|
|
1994
|
-
}, null, 10,
|
|
2006
|
+
}, null, 10, nn)) : g("", !0), e.y <= Q.value.drawingArea.bottom ? (C(), _("text", {
|
|
1995
2007
|
key: 1,
|
|
1996
2008
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
1997
2009
|
transform: `translate(${e.x}, ${e.y + z.value.xyLabelsYFontSize / 3})`,
|
|
1998
2010
|
"text-anchor": "end",
|
|
1999
2011
|
"font-size": z.value.xyLabelsYFontSize,
|
|
2000
2012
|
fill: z.value.color
|
|
2001
|
-
}, D(O(
|
|
2013
|
+
}, D(O(p)(z.value.formatter, e.value, O(c)({
|
|
2002
2014
|
p: z.value.valuePrefix,
|
|
2003
2015
|
v: e.value,
|
|
2004
2016
|
s: z.value.valueSuffix,
|
|
@@ -2006,8 +2018,8 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2006
2018
|
}), {
|
|
2007
2019
|
datapoint: e,
|
|
2008
2020
|
seriesIndex: t
|
|
2009
|
-
})), 11,
|
|
2010
|
-
z.value.xyShowScale && z.value.xyPeriods.length ? (C(), _("g",
|
|
2021
|
+
})), 11, rn)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
2022
|
+
z.value.xyShowScale && z.value.xyPeriods.length ? (C(), _("g", an, [(C(!0), _(m, null, T(z.value.xyPeriods.slice(X.value.start, X.value.end), (e, t) => (C(), _("line", {
|
|
2011
2023
|
x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2012
2024
|
x2: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2013
2025
|
y1: Q.value.drawingArea.bottom,
|
|
@@ -2015,10 +2027,10 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2015
2027
|
stroke: z.value.xyAxisStroke,
|
|
2016
2028
|
"stroke-width": z.value.xyAxisStrokeWidth,
|
|
2017
2029
|
"stroke-linecap": "round"
|
|
2018
|
-
}, null, 8,
|
|
2030
|
+
}, null, 8, on))), 256)), v("g", {
|
|
2019
2031
|
ref_key: "timeLabelsEls",
|
|
2020
2032
|
ref: R
|
|
2021
|
-
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!z.value.xyPeriodsShowOnlyAtModulo || z.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) /
|
|
2033
|
+
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!z.value.xyPeriodsShowOnlyAtModulo || z.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Qr.value) === 0 || X.value.end - X.value.start <= Qr.value ? (C(), _("g", sn, [String(e).includes("\n") ? (C(), _("text", {
|
|
2022
2034
|
key: 1,
|
|
2023
2035
|
class: "vue-data-ui-time-label",
|
|
2024
2036
|
"font-size": z.value.xyLabelsXFontSize,
|
|
@@ -2032,42 +2044,42 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2032
2044
|
x: 0,
|
|
2033
2045
|
y: 0
|
|
2034
2046
|
})
|
|
2035
|
-
}, null, 8,
|
|
2047
|
+
}, null, 8, ln)) : (C(), _("text", {
|
|
2036
2048
|
key: 0,
|
|
2037
2049
|
class: "vue-data-ui-time-label",
|
|
2038
2050
|
"font-size": z.value.xyLabelsXFontSize,
|
|
2039
2051
|
"text-anchor": z.value.xyPeriodLabelsRotation > 0 ? "start" : z.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2040
2052
|
fill: z.value.color,
|
|
2041
2053
|
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + z.value.xyLabelsXFontSize + 6}), rotate(${z.value.xyPeriodLabelsRotation})`
|
|
2042
|
-
}, D(e), 9,
|
|
2043
|
-
v("g",
|
|
2054
|
+
}, D(e), 9, cn))])) : g("", !0)], 64))), 256))], 512)])) : g("", !0),
|
|
2055
|
+
v("g", un, [(C(!0), _(m, null, T(Q.value.dataset, (e, t) => (C(), _(m, null, [(C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("rect", {
|
|
2044
2056
|
x: t.x,
|
|
2045
2057
|
width: t.width <= 0 ? 1e-5 : t.width,
|
|
2046
|
-
height: O(
|
|
2047
|
-
y: O(
|
|
2058
|
+
height: O(d)(t.height <= 0 ? 1e-5 : t.height),
|
|
2059
|
+
y: O(d)(t.y),
|
|
2048
2060
|
fill: e.color,
|
|
2049
2061
|
stroke: z.value.backgroundColor,
|
|
2050
2062
|
"stroke-width": z.value.barStrokeWidth,
|
|
2051
2063
|
"stroke-linecap": "round",
|
|
2052
2064
|
class: b({ "vue-data-ui-transition": O(B) })
|
|
2053
|
-
}, null, 10,
|
|
2054
|
-
z.value.showDataLabels ? (C(), _("g",
|
|
2065
|
+
}, null, 10, dn))), 256))], 64))), 256))]),
|
|
2066
|
+
z.value.showDataLabels ? (C(), _("g", fn, [(C(!0), _(m, null, T(Q.value.dataset, (e, t) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("text", {
|
|
2055
2067
|
class: b({ "vue-data-ui-transition": O(B) }),
|
|
2056
2068
|
key: `plot_${n + X.value.start}`,
|
|
2057
|
-
transform: `translate(${t.x + t.width / 2}, ${O(
|
|
2069
|
+
transform: `translate(${t.x + t.width / 2}, ${O(d)(t.y) - z.value.dataLabelFontSize / 2})`,
|
|
2058
2070
|
"text-anchor": "middle",
|
|
2059
2071
|
"font-size": z.value.dataLabelFontSize,
|
|
2060
2072
|
fill: e.color
|
|
2061
|
-
}, D(O(
|
|
2073
|
+
}, D(O(p)(z.value.formatter, O(d)(t.value), O(c)({
|
|
2062
2074
|
p: z.value.valuePrefix,
|
|
2063
|
-
v: O(
|
|
2075
|
+
v: O(d)(t.value),
|
|
2064
2076
|
s: z.value.valueSuffix,
|
|
2065
2077
|
r: z.value.dataLabelRoundingValue
|
|
2066
2078
|
}), {
|
|
2067
2079
|
datapoint: t,
|
|
2068
2080
|
seriesIndex: n
|
|
2069
|
-
})), 11,
|
|
2070
|
-
|
|
2081
|
+
})), 11, pn))), 128))], 64))), 128))])) : g("", !0),
|
|
2082
|
+
dr.value && L.value.length < Q.value.legend.length ? (C(), _("g", mn, [(C(!0), _(m, null, T(Q.value.extremes.maxSeries, (e, t) => (C(), _("rect", {
|
|
2071
2083
|
x: Q.value.drawingArea.left + t * Q.value.slotSize,
|
|
2072
2084
|
y: Q.value.drawingArea.top,
|
|
2073
2085
|
height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
|
|
@@ -2077,65 +2089,65 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2077
2089
|
onMouseenter: (e) => Q.value.useTooltip(t, "pointer"),
|
|
2078
2090
|
onMouseleave: (e) => Q.value.killTooltip(t),
|
|
2079
2091
|
onClick: (e) => Q.value.selectDatapoint(t)
|
|
2080
|
-
}, null, 44,
|
|
2092
|
+
}, null, 44, hn))), 256))])) : g("", !0)
|
|
2081
2093
|
], 64)) : g("", !0),
|
|
2082
|
-
[A.LINE, A.BAR].includes(G.value) ? (C(), _("g",
|
|
2094
|
+
[A.LINE, A.BAR].includes(G.value) ? (C(), _("g", gn, [
|
|
2083
2095
|
z.value.xAxisLabel && G.value === A.LINE ? (C(), _("g", {
|
|
2084
2096
|
key: 0,
|
|
2085
2097
|
ref_key: "xAxisLabel",
|
|
2086
|
-
ref:
|
|
2098
|
+
ref: Vn
|
|
2087
2099
|
}, [v("text", {
|
|
2088
2100
|
"font-size": z.value.axisLabelsFontSize,
|
|
2089
2101
|
fill: z.value.color,
|
|
2090
2102
|
"text-anchor": "middle",
|
|
2091
2103
|
x: Z.value.drawingArea.left + Z.value.drawingArea.width / 2,
|
|
2092
2104
|
y: K.value.height - z.value.axisLabelsFontSize / 3
|
|
2093
|
-
}, D(z.value.xAxisLabel), 9,
|
|
2105
|
+
}, D(z.value.xAxisLabel), 9, _n)], 512)) : g("", !0),
|
|
2094
2106
|
z.value.xAxisLabel && G.value === A.BAR ? (C(), _("g", {
|
|
2095
2107
|
key: 1,
|
|
2096
2108
|
ref_key: "xAxisLabel",
|
|
2097
|
-
ref:
|
|
2109
|
+
ref: Vn
|
|
2098
2110
|
}, [v("text", {
|
|
2099
2111
|
"font-size": z.value.axisLabelsFontSize,
|
|
2100
2112
|
fill: z.value.color,
|
|
2101
2113
|
"text-anchor": "middle",
|
|
2102
2114
|
x: Q.value.drawingArea.left + Q.value.drawingArea.width / 2,
|
|
2103
2115
|
y: K.value.height - z.value.axisLabelsFontSize / 3
|
|
2104
|
-
}, D(z.value.xAxisLabel), 9,
|
|
2116
|
+
}, D(z.value.xAxisLabel), 9, vn)], 512)) : g("", !0),
|
|
2105
2117
|
z.value.yAxisLabel && G.value === A.LINE ? (C(), _("g", {
|
|
2106
2118
|
key: 2,
|
|
2107
2119
|
ref_key: "yAxisLabel",
|
|
2108
|
-
ref:
|
|
2120
|
+
ref: Hn
|
|
2109
2121
|
}, [v("text", {
|
|
2110
2122
|
"font-size": z.value.axisLabelsFontSize,
|
|
2111
2123
|
fill: z.value.color,
|
|
2112
2124
|
transform: `translate(${z.value.axisLabelsFontSize}, ${Z.value.drawingArea.top + Z.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2113
2125
|
"text-anchor": "middle"
|
|
2114
|
-
}, D(z.value.yAxisLabel), 9,
|
|
2126
|
+
}, D(z.value.yAxisLabel), 9, yn)], 512)) : g("", !0),
|
|
2115
2127
|
z.value.yAxisLabel && G.value === A.BAR ? (C(), _("g", {
|
|
2116
2128
|
key: 3,
|
|
2117
2129
|
ref_key: "yAxisLabel",
|
|
2118
|
-
ref:
|
|
2130
|
+
ref: Hn
|
|
2119
2131
|
}, [v("text", {
|
|
2120
2132
|
"font-size": z.value.axisLabelsFontSize,
|
|
2121
2133
|
fill: z.value.color,
|
|
2122
2134
|
transform: `translate(${z.value.axisLabelsFontSize}, ${Q.value.drawingArea.top + Q.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2123
2135
|
"text-anchor": "middle"
|
|
2124
|
-
}, D(z.value.yAxisLabel), 9,
|
|
2136
|
+
}, D(z.value.yAxisLabel), 9, bn)], 512)) : g("", !0)
|
|
2125
2137
|
])) : g("", !0)
|
|
2126
|
-
], 46,
|
|
2138
|
+
], 46, ot)) : g("", !0), e.$slots.hint ? (C(), _("div", xn, [E(e.$slots, "hint", x(y({
|
|
2127
2139
|
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2128
|
-
isVisible:
|
|
2140
|
+
isVisible: nr.value
|
|
2129
2141
|
})), void 0, !0)])) : g("", !0)]),
|
|
2130
|
-
e.$slots.watermark ? (C(), _("div",
|
|
2142
|
+
e.$slots.watermark ? (C(), _("div", Sn, [E(e.$slots, "watermark", x(y({ isPrinting: O(yr) || O(br) })), void 0, !0)])) : g("", !0),
|
|
2131
2143
|
[A.BAR, A.LINE].includes(G.value) && z.value.zoomXy && W.value.maxSeriesLength > 1 ? (C(), _("div", {
|
|
2132
|
-
key: `slicer_${
|
|
2144
|
+
key: `slicer_${In.value}`,
|
|
2133
2145
|
ref_key: "quickChartSlicer",
|
|
2134
|
-
ref:
|
|
2135
|
-
}, [(C(),
|
|
2146
|
+
ref: An
|
|
2147
|
+
}, [(C(), Ne(De, {
|
|
2136
2148
|
ref_key: "slicerComponent",
|
|
2137
|
-
ref:
|
|
2138
|
-
key: `slicer_${
|
|
2149
|
+
ref: zr,
|
|
2150
|
+
key: `slicer_${In.value}`,
|
|
2139
2151
|
timeLabels: $.value,
|
|
2140
2152
|
background: z.value.zoomColor,
|
|
2141
2153
|
borderColor: z.value.backgroundColor,
|
|
@@ -2153,7 +2165,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2153
2165
|
minimapSelectedColorOpacity: z.value.zoomMinimap.selectedColorOpacity,
|
|
2154
2166
|
minimapSelectionRadius: z.value.zoomMinimap.selectionRadius,
|
|
2155
2167
|
minimapLineColor: z.value.zoomMinimap.lineColor,
|
|
2156
|
-
minimap:
|
|
2168
|
+
minimap: Hr.value,
|
|
2157
2169
|
minimapIndicatorColor: z.value.zoomMinimap.indicatorColor,
|
|
2158
2170
|
verticalHandles: z.value.zoomMinimap.verticalHandles,
|
|
2159
2171
|
minimapSelectedIndex: J.value,
|
|
@@ -2167,7 +2179,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2167
2179
|
enableSelectionDrag: z.value.zoomEnableSelectionDrag,
|
|
2168
2180
|
minimapCompact: z.value.zoomMinimap.compact,
|
|
2169
2181
|
minimapMerged: z.value.zoomMinimap.merged,
|
|
2170
|
-
allMinimaps:
|
|
2182
|
+
allMinimaps: Xr.value,
|
|
2171
2183
|
minimapFrameColor: z.value.zoomMinimap.frameColor,
|
|
2172
2184
|
additionalMinimapHeight: z.value.zoomMinimap.additionalHeight,
|
|
2173
2185
|
handleType: z.value.zoomMinimap.handleType,
|
|
@@ -2179,33 +2191,33 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2179
2191
|
focusOnDrag: z.value.zoomFocusOnDrag,
|
|
2180
2192
|
focusRangeRatio: z.value.zoomFocusRangeRatio,
|
|
2181
2193
|
maxWidth: z.value.zoomMaxWidth,
|
|
2182
|
-
minimapLeftInsetRatio:
|
|
2183
|
-
minimapRightInsetRatio:
|
|
2184
|
-
onReset:
|
|
2185
|
-
onTrapMouse:
|
|
2194
|
+
minimapLeftInsetRatio: Jr.value,
|
|
2195
|
+
minimapRightInsetRatio: Yr.value,
|
|
2196
|
+
onReset: Rr,
|
|
2197
|
+
onTrapMouse: Ir
|
|
2186
2198
|
}, {
|
|
2187
2199
|
"reset-action": k(({ reset: t }) => [E(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
|
|
2188
2200
|
_: 3
|
|
2189
2201
|
}, 8, /* @__PURE__ */ "timeLabels.background.borderColor.fontSize.useResetSlot.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.start.end.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio".split(".")))])) : g("", !0),
|
|
2190
|
-
v("div", { id: `legend-bottom-${P.value}` }, null, 8,
|
|
2191
|
-
|
|
2202
|
+
v("div", { id: `legend-bottom-${P.value}` }, null, 8, Cn),
|
|
2203
|
+
Ln.value && z.value.showLegend ? (C(), Ne(Me, {
|
|
2192
2204
|
key: 7,
|
|
2193
2205
|
to: z.value.legendPosition === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
2194
2206
|
}, [z.value.showLegend ? (C(), _("div", {
|
|
2195
2207
|
key: 0,
|
|
2196
2208
|
ref_key: "quickChartLegend",
|
|
2197
|
-
ref:
|
|
2209
|
+
ref: kn,
|
|
2198
2210
|
class: "vue-ui-quick-chart-legend",
|
|
2199
2211
|
style: S(`background:transparent;color:${z.value.color}`)
|
|
2200
2212
|
}, [
|
|
2201
|
-
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && z.value.showLegendSelectAllToggle && !O(
|
|
2213
|
+
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && z.value.showLegendSelectAllToggle && !O(ir) ? (C(), Ne(Oe, {
|
|
2202
2214
|
key: 0,
|
|
2203
2215
|
backgroundColor: z.value.legendSelectAllToggleBackgroundColor,
|
|
2204
2216
|
color: z.value.legendSelectAllToggleColor,
|
|
2205
2217
|
fontSize: z.value.legendFontSize,
|
|
2206
2218
|
checked: L.value.length > 0,
|
|
2207
|
-
isCursorPointer:
|
|
2208
|
-
onToggle:
|
|
2219
|
+
isCursorPointer: er.value,
|
|
2220
|
+
onToggle: Ar
|
|
2209
2221
|
}, null, 8, [
|
|
2210
2222
|
"backgroundColor",
|
|
2211
2223
|
"color",
|
|
@@ -2215,23 +2227,23 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2215
2227
|
])) : g("", !0),
|
|
2216
2228
|
G.value === A.DONUT ? (C(!0), _(m, { key: 1 }, T(Y.value.legend, (t, n) => (C(), _("div", {
|
|
2217
2229
|
class: "vue-ui-quick-chart-legend-item",
|
|
2218
|
-
onClick: (e) =>
|
|
2219
|
-
style: S(`cursor: ${Y.value.legend.length > 1 &&
|
|
2230
|
+
onClick: (e) => Fr(t, Y.value.dataset),
|
|
2231
|
+
style: S(`cursor: ${Y.value.legend.length > 1 && er.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2220
2232
|
role: "button",
|
|
2221
2233
|
tabindex: "0",
|
|
2222
2234
|
onKeydown: (e) => {
|
|
2223
|
-
|
|
2224
|
-
|
|
2235
|
+
mi(e, () => {
|
|
2236
|
+
Fr(t, Y.value.dataset);
|
|
2225
2237
|
});
|
|
2226
2238
|
}
|
|
2227
|
-
}, [z.value.useCustomLegend ? E(e.$slots, "legend",
|
|
2239
|
+
}, [z.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2228
2240
|
...t,
|
|
2229
2241
|
isSegregated: L.value.includes(t.id),
|
|
2230
2242
|
segregate: () => {
|
|
2231
|
-
|
|
2243
|
+
Fr(t, Y.value.dataset);
|
|
2232
2244
|
}
|
|
2233
2245
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [
|
|
2234
|
-
|
|
2246
|
+
Fe(O(qe), {
|
|
2235
2247
|
name: z.value.legendIcon,
|
|
2236
2248
|
stroke: t.color,
|
|
2237
2249
|
size: z.value.legendIconSize
|
|
@@ -2241,7 +2253,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2241
2253
|
"size"
|
|
2242
2254
|
]),
|
|
2243
2255
|
v("span", { style: S(`font-size:${z.value.legendFontSize}px`) }, D(t.name), 5),
|
|
2244
|
-
v("span", { style: S(`font-size:${z.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, D(L.value.includes(t.id) ? "-" : O(
|
|
2256
|
+
v("span", { style: S(`font-size:${z.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, D(L.value.includes(t.id) ? "-" : O(p)(z.value.formatter, t.absoluteValue, O(c)({
|
|
2245
2257
|
p: z.value.valuePrefix,
|
|
2246
2258
|
v: t.absoluteValue,
|
|
2247
2259
|
s: z.value.valueSuffix,
|
|
@@ -2253,7 +2265,7 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2253
2265
|
L.value.includes(t.id) ? (C(), _("span", {
|
|
2254
2266
|
key: 0,
|
|
2255
2267
|
style: S(`font-size:${z.value.legendFontSize}px`)
|
|
2256
|
-
}, " ( - % ) ", 4)) :
|
|
2268
|
+
}, " ( - % ) ", 4)) : Pr.value ? (C(), _("span", {
|
|
2257
2269
|
key: 1,
|
|
2258
2270
|
style: S(`font-size:${z.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2259
2271
|
}, " ( - % ) ", 4)) : (C(), _("span", {
|
|
@@ -2264,27 +2276,27 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2264
2276
|
s: "%",
|
|
2265
2277
|
r: z.value.dataLabelRoundingPercentage
|
|
2266
2278
|
})) + ") ", 5))
|
|
2267
|
-
], 64))], 44,
|
|
2279
|
+
], 64))], 44, wn))), 256)) : g("", !0),
|
|
2268
2280
|
G.value === A.LINE ? (C(!0), _(m, { key: 2 }, T(Z.value.legend, (t, n) => (C(), _("div", {
|
|
2269
2281
|
class: "vue-ui-quick-chart-legend-item",
|
|
2270
2282
|
onClick: (e) => {
|
|
2271
|
-
|
|
2283
|
+
jr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2272
2284
|
},
|
|
2273
|
-
style: S(`cursor: ${Z.value.legend.length > 1 &&
|
|
2285
|
+
style: S(`cursor: ${Z.value.legend.length > 1 && er.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2274
2286
|
role: "button",
|
|
2275
2287
|
tabindex: "0",
|
|
2276
2288
|
onKeydown: (e) => {
|
|
2277
|
-
|
|
2278
|
-
|
|
2289
|
+
mi(e, () => {
|
|
2290
|
+
jr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2279
2291
|
});
|
|
2280
2292
|
}
|
|
2281
|
-
}, [z.value.useCustomLegend ? E(e.$slots, "legend",
|
|
2293
|
+
}, [z.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2282
2294
|
...t,
|
|
2283
2295
|
isSegregated: L.value.includes(t.id),
|
|
2284
2296
|
segregate: () => {
|
|
2285
|
-
|
|
2297
|
+
jr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2286
2298
|
}
|
|
2287
|
-
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [
|
|
2299
|
+
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
|
|
2288
2300
|
name: z.value.legendIcon,
|
|
2289
2301
|
stroke: t.color,
|
|
2290
2302
|
size: z.value.legendIconSize
|
|
@@ -2292,27 +2304,27 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2292
2304
|
"name",
|
|
2293
2305
|
"stroke",
|
|
2294
2306
|
"size"
|
|
2295
|
-
]), v("span", { style: S(`font-size:${z.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44,
|
|
2307
|
+
]), v("span", { style: S(`font-size:${z.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44, Tn))), 256)) : g("", !0),
|
|
2296
2308
|
G.value === A.BAR ? (C(!0), _(m, { key: 3 }, T(Q.value.legend, (t, n) => (C(), _("div", {
|
|
2297
2309
|
class: "vue-ui-quick-chart-legend-item",
|
|
2298
2310
|
onClick: (e) => {
|
|
2299
|
-
|
|
2311
|
+
jr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2300
2312
|
},
|
|
2301
|
-
style: S(`cursor: ${Q.value.legend.length > 1 &&
|
|
2313
|
+
style: S(`cursor: ${Q.value.legend.length > 1 && er.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2302
2314
|
role: "button",
|
|
2303
2315
|
tabindex: "0",
|
|
2304
2316
|
onKeydown: (e) => {
|
|
2305
|
-
|
|
2306
|
-
|
|
2317
|
+
mi(e, () => {
|
|
2318
|
+
jr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2307
2319
|
});
|
|
2308
2320
|
}
|
|
2309
|
-
}, [z.value.useCustomLegend ? E(e.$slots, "legend",
|
|
2321
|
+
}, [z.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2310
2322
|
...t,
|
|
2311
2323
|
isSegregated: L.value.includes(t.id),
|
|
2312
2324
|
segregate: () => {
|
|
2313
|
-
|
|
2325
|
+
jr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2314
2326
|
}
|
|
2315
|
-
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [
|
|
2327
|
+
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
|
|
2316
2328
|
name: z.value.legendIcon,
|
|
2317
2329
|
stroke: t.color,
|
|
2318
2330
|
size: z.value.legendIconSize
|
|
@@ -2320,17 +2332,17 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2320
2332
|
"name",
|
|
2321
2333
|
"stroke",
|
|
2322
2334
|
"size"
|
|
2323
|
-
]), v("span", { style: S(`font-size:${z.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44,
|
|
2335
|
+
]), v("span", { style: S(`font-size:${z.value.legendFontSize}px`) }, D(t.name), 5)], 64))], 44, En))), 256)) : g("", !0)
|
|
2324
2336
|
], 4)) : g("", !0)], 8, ["to"])) : g("", !0),
|
|
2325
2337
|
e.$slots.source ? (C(), _("div", {
|
|
2326
2338
|
key: 8,
|
|
2327
2339
|
ref_key: "source",
|
|
2328
|
-
ref:
|
|
2340
|
+
ref: Nn,
|
|
2329
2341
|
dir: "auto"
|
|
2330
2342
|
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
2331
|
-
|
|
2343
|
+
Fe(O(Ze), {
|
|
2332
2344
|
teleportTo: z.value.tooltipTeleportTo,
|
|
2333
|
-
show:
|
|
2345
|
+
show: wr.value.showTooltip && F.value,
|
|
2334
2346
|
backgroundColor: z.value.backgroundColor,
|
|
2335
2347
|
color: z.value.color,
|
|
2336
2348
|
borderRadius: z.value.tooltipBorderRadius,
|
|
@@ -2342,19 +2354,19 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2342
2354
|
offsetX: z.value.tooltipOffsetX,
|
|
2343
2355
|
offsetY: z.value.tooltipOffsetY,
|
|
2344
2356
|
parent: N.value,
|
|
2345
|
-
content:
|
|
2346
|
-
isFullscreen:
|
|
2357
|
+
content: Mn.value,
|
|
2358
|
+
isFullscreen: $r.value,
|
|
2347
2359
|
isCustom: O(t)(z.value.tooltipCustomFormat),
|
|
2348
2360
|
smooth: z.value.tooltipSmooth,
|
|
2349
2361
|
smoothForce: z.value.tooltipSmoothForce,
|
|
2350
2362
|
smoothSnapThreshold: z.value.tooltipSmoothSnapThreshold,
|
|
2351
2363
|
backdropFilter: z.value.tooltipBackdropFilter,
|
|
2352
2364
|
isA11yMode: H.value === "keyboard",
|
|
2353
|
-
a11yPosition:
|
|
2365
|
+
a11yPosition: tr.value
|
|
2354
2366
|
}, {
|
|
2355
|
-
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...
|
|
2356
|
-
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...
|
|
2357
|
-
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...
|
|
2367
|
+
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...jn.value })), void 0, !0)]),
|
|
2368
|
+
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...jn.value })), void 0, !0)]),
|
|
2369
|
+
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...jn.value })), void 0, !0)]),
|
|
2358
2370
|
_: 3
|
|
2359
2371
|
}, 8, [
|
|
2360
2372
|
"teleportTo",
|
|
@@ -2380,12 +2392,12 @@ var N = /* @__PURE__ */ e({ default: () => Dn }), tt = ["id"], nt = ["id"], rt =
|
|
|
2380
2392
|
"isA11yMode",
|
|
2381
2393
|
"a11yPosition"
|
|
2382
2394
|
]),
|
|
2383
|
-
E(e.$slots, "skeleton", {}, () => [O(
|
|
2384
|
-
], 46,
|
|
2395
|
+
E(e.$slots, "skeleton", {}, () => [O(ir) ? (C(), Ne(ge, { key: 0 })) : g("", !0)], !0)
|
|
2396
|
+
], 46, nt)) : (C(), _("div", Dn, [Fe(O(qe), {
|
|
2385
2397
|
name: "circleCancel",
|
|
2386
2398
|
stroke: "red"
|
|
2387
2399
|
}), r[5] ||= v("span", null, "Dataset is not processable", -1)]));
|
|
2388
2400
|
}
|
|
2389
|
-
}, [["__scopeId", "data-v-
|
|
2401
|
+
}, [["__scopeId", "data-v-0c7f3834"]]);
|
|
2390
2402
|
//#endregion
|
|
2391
|
-
export { N as n,
|
|
2403
|
+
export { N as n, On as t };
|