vue-data-ui 3.22.11 → 3.22.13
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/{PackageVersion-1MNr72Bz.js → PackageVersion-B6Hokxw9.js} +1 -1
- package/dist/{SlicerPreview-BIdvqU32.js → SlicerPreview-Cw6WMVhG.js} +434 -434
- package/dist/{UserOptions-B69xBEVP.js → UserOptions-DzAFK9cY.js} +438 -438
- 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-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-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-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-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-Bf-Nk9qU.js → package-DmDydylu.js} +1 -1
- package/dist/{render-common-DEb-WjM1.js → render-common-BIG8JYGK.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/composables.d.ts +28 -11
- package/dist/types/vue-data-ui.d.ts +26 -9
- package/dist/useMountedDelay-BAjrhRJb.js +14 -0
- package/dist/{vue-data-ui-Bme9usjG.js → vue-data-ui-rkzh6EkO.js} +64 -64
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-Ds1BPxqb.js → vue-ui-3d-bar-D5xHEWr1.js} +1 -1
- package/dist/vue-ui-accordion-UA88lv4d.js +81 -0
- package/dist/{vue-ui-age-pyramid-CNCrH8Kd.js → vue-ui-age-pyramid-CAJg01c7.js} +1 -1
- package/dist/{vue-ui-annotator-BfZ8RTzJ.js → vue-ui-annotator-q3ZKx6ua.js} +1 -1
- package/dist/{vue-ui-bullet-DscMmM2b.js → vue-ui-bullet-ByeaWGfI.js} +1 -1
- package/dist/{vue-ui-bump-BvwU1_-N.js → vue-ui-bump-BS7RCf0Z.js} +1 -1
- package/dist/{vue-ui-candlestick-Cp6r8ktf.js → vue-ui-candlestick-BZSGDKrM.js} +470 -470
- package/dist/{vue-ui-carousel-table-CbtccW1g.js → vue-ui-carousel-table-DO5NRXvX.js} +1 -1
- package/dist/{vue-ui-chestnut-C3Hmf1-m.js → vue-ui-chestnut-BfeSPeEh.js} +1 -1
- package/dist/{vue-ui-chord-DJk9j45J.js → vue-ui-chord-D6G7ceE-.js} +1 -1
- package/dist/{vue-ui-circle-pack-CJe2wETT.js → vue-ui-circle-pack-Cqmlw7AV.js} +3 -6
- package/dist/{vue-ui-cursor-BAi9omna.js → vue-ui-cursor-BpN5MsXM.js} +1 -1
- package/dist/{vue-ui-dag-D7BEbS71.js → vue-ui-dag-BzgOgXzU.js} +1 -1
- package/dist/{vue-ui-dashboard-BYFQjwgC.js → vue-ui-dashboard-DLvGJXJY.js} +63 -64
- package/dist/{vue-ui-digits-Bx8nZl9d.js → vue-ui-digits-OMPrn8fb.js} +1 -1
- package/dist/{vue-ui-donut-BUX4ybT6.js → vue-ui-donut-Cp5NbZ1r.js} +1 -1
- package/dist/{vue-ui-donut-jXRV-3ON.js → vue-ui-donut-ZIRebAWc.js} +1 -1
- package/dist/{vue-ui-donut-evolution-MWDjQPQ5.js → vue-ui-donut-evolution-DHVi5rOn.js} +351 -355
- package/dist/{vue-ui-dumbbell-CnwsHaIy.js → vue-ui-dumbbell-gDYjU2oF.js} +1 -1
- package/dist/{vue-ui-flow-CKXGk4Lm.js → vue-ui-flow-BusUK3H0.js} +1 -1
- package/dist/{vue-ui-funnel-CJwD7s7e.js → vue-ui-funnel-BtaYaU0r.js} +1 -1
- package/dist/{vue-ui-galaxy-DL85_SWR.js → vue-ui-galaxy-BMp-HzDh.js} +1 -1
- package/dist/{vue-ui-gauge-Dkx-aUQr.js → vue-ui-gauge-CBou0cFE.js} +1 -1
- package/dist/{vue-ui-geo-fkLF1rHB.js → vue-ui-geo-CyFgFKlh.js} +1 -1
- package/dist/{vue-ui-gizmo-S8w_p769.js → vue-ui-gizmo-DdeXwCQp.js} +1 -1
- package/dist/{vue-ui-heatmap-Dopkbn2N.js → vue-ui-heatmap-D8-qJ7fg.js} +2 -2
- package/dist/{vue-ui-history-plot-DDYpEapS.js → vue-ui-history-plot-C2Aqk2ON.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-Bi8WvKeD.js → vue-ui-horizontal-bar-BuwxI7d1.js} +2 -2
- package/dist/{vue-ui-kpi-BeJ-ajaS.js → vue-ui-kpi-ByxoO01r.js} +1 -1
- package/dist/{vue-ui-molecule-CBTgGZ-s.js → vue-ui-molecule-BqJJq49_.js} +1 -1
- package/dist/{vue-ui-mood-radar-CF83PcCx.js → vue-ui-mood-radar-BiOjxFEN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-D5dO-Uyg.js → vue-ui-nested-donuts-Cl1HVvDp.js} +1 -1
- package/dist/{vue-ui-onion-BxjaQKo8.js → vue-ui-onion-CRQOxurS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Dz6ozRAM.js → vue-ui-parallel-coordinate-plot-Dhn18RtR.js} +298 -301
- package/dist/{vue-ui-quadrant-Bnxpa6m5.js → vue-ui-quadrant-B21LkUc8.js} +1 -1
- package/dist/{vue-ui-quick-chart-CAE0-NYj.js → vue-ui-quick-chart-DAhSXYnp.js} +600 -625
- package/dist/{vue-ui-radar-O4BhBOyp.js → vue-ui-radar-CyzAyVos.js} +1 -1
- package/dist/{vue-ui-relation-circle-BZ0Xf-Nc.js → vue-ui-relation-circle-Cb33DMZo.js} +5 -11
- package/dist/{vue-ui-ridgeline-DHVTPiM6.js → vue-ui-ridgeline-D7aArzQk.js} +1 -1
- package/dist/{vue-ui-rings-DAfY1V--.js → vue-ui-rings-FtcdX8xl.js} +1 -1
- package/dist/vue-ui-scatter-Cp_-2ahf.js +2409 -0
- package/dist/{vue-ui-skeleton-DoIqQtIV.js → vue-ui-skeleton-COytVrfN.js} +1 -1
- package/dist/{vue-ui-spark-trend-Db-FsXch.js → vue-ui-spark-trend-DC2KUlEY.js} +1 -1
- package/dist/{vue-ui-sparkbar-Ce55FP_3.js → vue-ui-sparkbar-DdxQOFIF.js} +48 -51
- package/dist/{vue-ui-sparkgauge-hB59dXm7.js → vue-ui-sparkgauge-DTA-fORH.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-DjnaStBw.js → vue-ui-sparkhistogram-D1oFTrvt.js} +1 -1
- package/dist/{vue-ui-sparkline-D1dyhLvG.js → vue-ui-sparkline-DcR_N-zT.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-BhOBFjts.js → vue-ui-sparkstackbar-BlFio0lP.js} +1 -1
- package/dist/vue-ui-stackbar-Cu13EdVa.js +2322 -0
- package/dist/{vue-ui-stackline-DLFNVbAz.js → vue-ui-stackline-DKL0o_-3.js} +572 -570
- package/dist/vue-ui-strip-plot-NLCwYvyw.js +1736 -0
- package/dist/{vue-ui-table-DL_R4ppI.js → vue-ui-table-AM9brdwU.js} +2 -2
- package/dist/{vue-ui-table-heatmap-C9gF__Np.js → vue-ui-table-heatmap-CSI482KG.js} +4 -10
- package/dist/{vue-ui-table-sparkline-CT-0w9-a.js → vue-ui-table-sparkline-BE6DAvur.js} +1 -1
- package/dist/{vue-ui-thermometer-MP0dliC3.js → vue-ui-thermometer-D6Czx7Fb.js} +1 -1
- package/dist/{vue-ui-timer-B5S-6Da4.js → vue-ui-timer-BZM5ITG9.js} +1 -1
- package/dist/{vue-ui-tiremarks-DcJiLDsm.js → vue-ui-tiremarks-BCncDpHX.js} +1 -1
- package/dist/{vue-ui-treemap-CjldCPnX.js → vue-ui-treemap-BOEYCOdk.js} +3 -6
- package/dist/{vue-ui-waffle-dZM-9z1J.js → vue-ui-waffle-BrM8IHdG.js} +1 -1
- package/dist/{vue-ui-wheel-or7a6-Ce.js → vue-ui-wheel-BNsajigQ.js} +1 -1
- package/dist/{vue-ui-word-cloud-8BwQ0cuB.js → vue-ui-word-cloud-D7R7nhk1.js} +1 -1
- package/dist/{vue-ui-world-Q0KZb7A_.js → vue-ui-world-DZBt-07p.js} +1 -1
- package/dist/{vue-ui-xy-DZIs53tH.js → vue-ui-xy-CluEZ7lS.js} +1253 -1251
- package/dist/{vue-ui-xy-4uzwZJcj.js → vue-ui-xy-Dt_1bSBT.js} +1 -1
- package/dist/{vue-ui-xy-canvas-Dz9aii7f.js → vue-ui-xy-canvas-7YSYRdwr.js} +3 -3
- package/package.json +2 -2
- package/dist/vue-ui-accordion-nNxnZTg9.js +0 -81
- package/dist/vue-ui-scatter-Cb63SWJT.js +0 -2421
- package/dist/vue-ui-stackbar-BZKw8WYn.js +0 -2340
- package/dist/vue-ui-strip-plot-DyN2WELD.js +0 -1735
|
@@ -7,18 +7,19 @@ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
|
7
7
|
import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
8
|
import { t as pe } from "./useNestedProp-BY6DNN3i.js";
|
|
9
9
|
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as he } from "./
|
|
11
|
-
import { t as ge } from "./
|
|
12
|
-
import { t as _e } from "./
|
|
13
|
-
import {
|
|
14
|
-
import { t as be } from "./
|
|
15
|
-
import { t as xe } from "./
|
|
16
|
-
import { t as Se } from "./
|
|
17
|
-
import { t as Ce } from "./
|
|
18
|
-
import { t as we } from "./
|
|
19
|
-
import {
|
|
10
|
+
import { t as he } from "./useMountedDelay-BAjrhRJb.js";
|
|
11
|
+
import { t as ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as _e } from "./img-Bikk1dGb.js";
|
|
13
|
+
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
+
import { t as xe } from "./BaseLegendToggle-DsWphmIb.js";
|
|
16
|
+
import { t as Se } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as we } from "./Slicer-C6qNUmZ4.js";
|
|
19
|
+
import { t as Te } from "./vue_ui_quick_chart-mZBdml3Z.js";
|
|
20
|
+
import { Fragment as g, Teleport as Ee, computed as _, createBlock as De, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as Oe, createVNode as ke, defineAsyncComponent as Ae, guardReactiveProps as x, mergeProps as je, nextTick as Me, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ne, onMounted as Pe, openBlock as T, ref as E, renderList as D, renderSlot as O, shallowRef as Fe, toDisplayString as k, toRefs as Ie, unref as A, watch as Le, watchEffect as Re, withCtx as j } from "vue";
|
|
20
21
|
//#region src/chartDetector.js
|
|
21
|
-
var
|
|
22
|
+
var M = {
|
|
22
23
|
LINE: "LINE",
|
|
23
24
|
BAR: "BAR",
|
|
24
25
|
DONUT: "DONUT"
|
|
@@ -32,14 +33,14 @@ var j = {
|
|
|
32
33
|
];
|
|
33
34
|
function Be({ dataset: e, barLineSwitch: t = 6, debug: n = !0 }) {
|
|
34
35
|
let r = null, i = null, a = 0;
|
|
35
|
-
if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`), He(e) && (
|
|
36
|
-
if (!
|
|
36
|
+
if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`), He(e) && (Ue(e) && (r = e.length < t ? M.BAR : M.LINE, i = e, a = e.length), We(e))) {
|
|
37
|
+
if (!Ke(e)) return n && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
37
38
|
let o = Object.keys(e[0]), s = Object.values(e[0]);
|
|
38
|
-
if (!o.some((e) =>
|
|
39
|
-
|
|
39
|
+
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;
|
|
40
|
+
Je(s, (e) => typeof e == "number") && (r = M.DONUT, i = e), Je(s, (e) => Array.isArray(e) && Ue(e)) && (r = Ye(e) > t ? M.LINE : M.BAR, a = Ye(e), i = e.map((e) => ({
|
|
40
41
|
...e,
|
|
41
|
-
data:
|
|
42
|
-
}))), e = e.map((e) =>
|
|
42
|
+
data: Xe(e, (e) => Ue(e))
|
|
43
|
+
}))), e = e.map((e) => Ze(e)), i = i.map((e) => Ze(e));
|
|
43
44
|
}
|
|
44
45
|
return {
|
|
45
46
|
dataset: e,
|
|
@@ -54,15 +55,15 @@ function Ve(e) {
|
|
|
54
55
|
function He(e) {
|
|
55
56
|
return Array.isArray(e);
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function Ue(e) {
|
|
58
59
|
if (!He(e) || Ve(e)) return !1;
|
|
59
60
|
let t = e.map((e) => Number(e));
|
|
60
61
|
return ![...new Set(t.flatMap((e) => typeof e == "number" && !isNaN(e)))].includes(!1);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function We(e) {
|
|
63
64
|
return !He(e) || Ve(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);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function Ge(e, t) {
|
|
66
67
|
let n = Object.keys(e).sort(), r = Object.keys(t).sort();
|
|
67
68
|
if (n.length !== r.length) return !1;
|
|
68
69
|
for (let i = 0; i < n.length; i += 1) {
|
|
@@ -71,179 +72,171 @@ function We(e, t) {
|
|
|
71
72
|
}
|
|
72
73
|
return !0;
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function Ke(e) {
|
|
75
76
|
if (e.length <= 1) return !0;
|
|
76
|
-
for (let t = 0; t < e.length; t += 1) for (let n = t + 1; n < e.length; n += 1) if (!
|
|
77
|
+
for (let t = 0; t < e.length; t += 1) for (let n = t + 1; n < e.length; n += 1) if (!Ge(e[t], e[n])) return !1;
|
|
77
78
|
return !0;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function qe(e) {
|
|
80
81
|
return ze.includes(e.toUpperCase());
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function Je(e, t) {
|
|
83
84
|
let n = [];
|
|
84
85
|
for (let r = 0; r < e.length; r += 1) n.push(t(e[r]));
|
|
85
86
|
return n.includes(!0);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
return Math.max(...[...e].flatMap((e) => Object.values(e).filter((e) =>
|
|
88
|
+
function Ye(e) {
|
|
89
|
+
return Math.max(...[...e].flatMap((e) => Object.values(e).filter((e) => Ue(e)).map((e) => e.length)));
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function Xe(e, t) {
|
|
91
92
|
return Object.values(e).filter((e) => t(e))[0];
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function Ze(e) {
|
|
94
95
|
let t = {};
|
|
95
96
|
for (let n in e) e.hasOwnProperty(n) && (t[n.toUpperCase()] = e[n]);
|
|
96
97
|
return t;
|
|
97
98
|
}
|
|
98
99
|
//#endregion
|
|
99
100
|
//#region src/components/vue-ui-quick-chart.vue
|
|
100
|
-
var
|
|
101
|
+
var N = /* @__PURE__ */ e({ default: () => P }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
|
|
101
102
|
"xmlns",
|
|
102
103
|
"aria-describedby",
|
|
103
104
|
"viewBox"
|
|
104
|
-
],
|
|
105
|
+
], rt = [
|
|
105
106
|
"x",
|
|
106
107
|
"y",
|
|
107
108
|
"width",
|
|
108
109
|
"height"
|
|
109
|
-
],
|
|
110
|
+
], it = [
|
|
110
111
|
"x",
|
|
111
112
|
"y",
|
|
112
113
|
"width",
|
|
113
114
|
"height"
|
|
114
|
-
],
|
|
115
|
+
], at = ["width", "height"], ot = ["id"], st = ["id"], ct = ["id"], lt = ["flood-color"], ut = {
|
|
115
116
|
key: 0,
|
|
116
117
|
class: "donut-label-connectors"
|
|
117
|
-
},
|
|
118
|
+
}, dt = [
|
|
118
119
|
"d",
|
|
119
120
|
"stroke",
|
|
120
121
|
"stroke-width",
|
|
121
122
|
"filter"
|
|
122
|
-
],
|
|
123
|
+
], ft = [
|
|
123
124
|
"cx",
|
|
124
125
|
"cy",
|
|
125
126
|
"r",
|
|
126
127
|
"fill",
|
|
127
128
|
"filter"
|
|
128
|
-
],
|
|
129
|
+
], pt = { class: "donut" }, mt = [
|
|
129
130
|
"d",
|
|
130
131
|
"fill",
|
|
131
132
|
"stroke",
|
|
132
133
|
"stroke-width",
|
|
133
134
|
"filter"
|
|
134
|
-
],
|
|
135
|
+
], ht = [
|
|
135
136
|
"d",
|
|
136
137
|
"onMouseenter",
|
|
137
138
|
"onMouseout",
|
|
138
139
|
"onClick"
|
|
139
|
-
],
|
|
140
|
+
], gt = {
|
|
140
141
|
key: 1,
|
|
141
142
|
class: "donut-labels quick-animation"
|
|
142
|
-
},
|
|
143
|
+
}, _t = [
|
|
143
144
|
"cx",
|
|
144
145
|
"cy",
|
|
145
146
|
"fill",
|
|
146
147
|
"stroke",
|
|
147
148
|
"filter"
|
|
148
|
-
],
|
|
149
|
+
], vt = [
|
|
149
150
|
"text-anchor",
|
|
150
151
|
"x",
|
|
151
152
|
"y",
|
|
152
153
|
"fill",
|
|
153
154
|
"font-size",
|
|
154
155
|
"filter"
|
|
155
|
-
],
|
|
156
|
+
], yt = [
|
|
156
157
|
"text-anchor",
|
|
157
158
|
"x",
|
|
158
159
|
"y",
|
|
159
160
|
"fill",
|
|
160
161
|
"font-size",
|
|
161
162
|
"filter"
|
|
162
|
-
],
|
|
163
|
+
], bt = {
|
|
163
164
|
key: 2,
|
|
164
165
|
class: "donut-hollow quick-animation"
|
|
165
|
-
},
|
|
166
|
+
}, xt = [
|
|
166
167
|
"x",
|
|
167
168
|
"y",
|
|
168
169
|
"font-size",
|
|
169
170
|
"fill"
|
|
170
|
-
],
|
|
171
|
+
], St = [
|
|
171
172
|
"x",
|
|
172
173
|
"y",
|
|
173
174
|
"font-size",
|
|
174
175
|
"fill"
|
|
175
|
-
],
|
|
176
|
+
], Ct = {
|
|
176
177
|
key: 0,
|
|
177
178
|
class: "line-grid"
|
|
178
|
-
},
|
|
179
|
+
}, wt = [
|
|
179
180
|
"x1",
|
|
180
181
|
"x2",
|
|
181
182
|
"y1",
|
|
182
183
|
"y2",
|
|
183
184
|
"stroke",
|
|
184
185
|
"stroke-width"
|
|
185
|
-
],
|
|
186
|
+
], Tt = [
|
|
186
187
|
"x1",
|
|
187
188
|
"x2",
|
|
188
189
|
"y1",
|
|
189
190
|
"y2",
|
|
190
191
|
"stroke",
|
|
191
192
|
"stroke-width"
|
|
192
|
-
],
|
|
193
|
+
], Et = {
|
|
193
194
|
key: 1,
|
|
194
195
|
class: "line-axis"
|
|
195
|
-
},
|
|
196
|
+
}, Dt = [
|
|
196
197
|
"x1",
|
|
197
198
|
"x2",
|
|
198
199
|
"y1",
|
|
199
200
|
"y2",
|
|
200
201
|
"stroke",
|
|
201
202
|
"stroke-width"
|
|
202
|
-
],
|
|
203
|
+
], Ot = [
|
|
203
204
|
"x1",
|
|
204
205
|
"x2",
|
|
205
206
|
"y1",
|
|
206
207
|
"y2",
|
|
207
208
|
"stroke",
|
|
208
209
|
"stroke-width"
|
|
209
|
-
],
|
|
210
|
-
"
|
|
211
|
-
"x2",
|
|
212
|
-
"y1",
|
|
213
|
-
"y2",
|
|
210
|
+
], kt = [
|
|
211
|
+
"d",
|
|
214
212
|
"stroke",
|
|
215
213
|
"stroke-width"
|
|
216
|
-
],
|
|
217
|
-
"
|
|
218
|
-
"y",
|
|
214
|
+
], At = [
|
|
215
|
+
"transform",
|
|
219
216
|
"font-size",
|
|
220
217
|
"fill"
|
|
221
|
-
],
|
|
218
|
+
], jt = {
|
|
222
219
|
key: 3,
|
|
223
220
|
class: "periodLabels"
|
|
224
|
-
},
|
|
221
|
+
}, Mt = [
|
|
225
222
|
"x1",
|
|
226
223
|
"x2",
|
|
227
224
|
"y1",
|
|
228
225
|
"y2",
|
|
229
226
|
"stroke",
|
|
230
227
|
"stroke-width"
|
|
231
|
-
],
|
|
228
|
+
], Nt = { key: 0 }, Pt = [
|
|
232
229
|
"font-size",
|
|
233
230
|
"text-anchor",
|
|
234
231
|
"fill",
|
|
235
232
|
"transform"
|
|
236
|
-
],
|
|
233
|
+
], Ft = [
|
|
237
234
|
"font-size",
|
|
238
235
|
"text-anchor",
|
|
239
236
|
"fill",
|
|
240
237
|
"transform",
|
|
241
238
|
"innerHTML"
|
|
242
|
-
],
|
|
243
|
-
"d",
|
|
244
|
-
"stroke",
|
|
245
|
-
"stroke-width"
|
|
246
|
-
], Lt = [
|
|
239
|
+
], It = { class: "plots" }, Lt = [
|
|
247
240
|
"d",
|
|
248
241
|
"stroke",
|
|
249
242
|
"stroke-width"
|
|
@@ -256,22 +249,25 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
256
249
|
"stroke",
|
|
257
250
|
"stroke-width"
|
|
258
251
|
], Bt = [
|
|
252
|
+
"d",
|
|
253
|
+
"stroke",
|
|
254
|
+
"stroke-width"
|
|
255
|
+
], Vt = [
|
|
259
256
|
"cx",
|
|
260
257
|
"cy",
|
|
261
258
|
"fill",
|
|
262
259
|
"stroke"
|
|
263
|
-
],
|
|
260
|
+
], Ht = {
|
|
264
261
|
key: 4,
|
|
265
262
|
class: "dataLabels"
|
|
266
|
-
},
|
|
263
|
+
}, Ut = [
|
|
267
264
|
"font-size",
|
|
268
265
|
"fill",
|
|
269
|
-
"
|
|
270
|
-
|
|
271
|
-
], Ut = {
|
|
266
|
+
"transform"
|
|
267
|
+
], Wt = {
|
|
272
268
|
key: 5,
|
|
273
269
|
class: "tooltip-traps"
|
|
274
|
-
},
|
|
270
|
+
}, Gt = [
|
|
275
271
|
"x",
|
|
276
272
|
"y",
|
|
277
273
|
"height",
|
|
@@ -280,34 +276,27 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
280
276
|
"onMouseenter",
|
|
281
277
|
"onMouseleave",
|
|
282
278
|
"onClick"
|
|
283
|
-
],
|
|
279
|
+
], Kt = {
|
|
284
280
|
key: 0,
|
|
285
281
|
class: "line-grid"
|
|
286
|
-
},
|
|
282
|
+
}, qt = [
|
|
287
283
|
"x1",
|
|
288
284
|
"x2",
|
|
289
285
|
"y1",
|
|
290
286
|
"y2",
|
|
291
287
|
"stroke",
|
|
292
288
|
"stroke-width"
|
|
293
|
-
],
|
|
289
|
+
], Jt = [
|
|
294
290
|
"x1",
|
|
295
291
|
"x2",
|
|
296
292
|
"y1",
|
|
297
293
|
"y2",
|
|
298
294
|
"stroke",
|
|
299
295
|
"stroke-width"
|
|
300
|
-
],
|
|
296
|
+
], Yt = {
|
|
301
297
|
key: 1,
|
|
302
298
|
class: "line-axis"
|
|
303
|
-
},
|
|
304
|
-
"x1",
|
|
305
|
-
"x2",
|
|
306
|
-
"y1",
|
|
307
|
-
"y2",
|
|
308
|
-
"stroke",
|
|
309
|
-
"stroke-width"
|
|
310
|
-
], Xt = [
|
|
299
|
+
}, Xt = [
|
|
311
300
|
"x1",
|
|
312
301
|
"x2",
|
|
313
302
|
"y1",
|
|
@@ -322,32 +311,35 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
322
311
|
"stroke",
|
|
323
312
|
"stroke-width"
|
|
324
313
|
], Qt = [
|
|
325
|
-
"
|
|
326
|
-
"
|
|
314
|
+
"d",
|
|
315
|
+
"stroke",
|
|
316
|
+
"stroke-width"
|
|
317
|
+
], $t = [
|
|
318
|
+
"transform",
|
|
327
319
|
"font-size",
|
|
328
320
|
"fill"
|
|
329
|
-
],
|
|
321
|
+
], en = {
|
|
330
322
|
key: 3,
|
|
331
323
|
class: "periodLabels"
|
|
332
|
-
},
|
|
324
|
+
}, tn = [
|
|
333
325
|
"x1",
|
|
334
326
|
"x2",
|
|
335
327
|
"y1",
|
|
336
328
|
"y2",
|
|
337
329
|
"stroke",
|
|
338
330
|
"stroke-width"
|
|
339
|
-
],
|
|
331
|
+
], nn = { key: 0 }, rn = [
|
|
340
332
|
"font-size",
|
|
341
333
|
"text-anchor",
|
|
342
334
|
"fill",
|
|
343
335
|
"transform"
|
|
344
|
-
],
|
|
336
|
+
], an = [
|
|
345
337
|
"font-size",
|
|
346
338
|
"text-anchor",
|
|
347
339
|
"fill",
|
|
348
340
|
"transform",
|
|
349
341
|
"innerHTML"
|
|
350
|
-
],
|
|
342
|
+
], on = { class: "plots" }, sn = [
|
|
351
343
|
"x",
|
|
352
344
|
"width",
|
|
353
345
|
"height",
|
|
@@ -355,18 +347,17 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
355
347
|
"fill",
|
|
356
348
|
"stroke",
|
|
357
349
|
"stroke-width"
|
|
358
|
-
],
|
|
350
|
+
], cn = ["to"], ln = ["from", "to"], un = {
|
|
359
351
|
key: 4,
|
|
360
352
|
class: "dataLabels"
|
|
361
|
-
},
|
|
362
|
-
"
|
|
363
|
-
"y",
|
|
353
|
+
}, dn = [
|
|
354
|
+
"transform",
|
|
364
355
|
"font-size",
|
|
365
356
|
"fill"
|
|
366
|
-
],
|
|
357
|
+
], fn = {
|
|
367
358
|
key: 5,
|
|
368
359
|
class: "tooltip-traps"
|
|
369
|
-
},
|
|
360
|
+
}, pn = [
|
|
370
361
|
"x",
|
|
371
362
|
"y",
|
|
372
363
|
"height",
|
|
@@ -375,28 +366,28 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
375
366
|
"onMouseenter",
|
|
376
367
|
"onMouseleave",
|
|
377
368
|
"onClick"
|
|
378
|
-
],
|
|
369
|
+
], mn = {
|
|
379
370
|
key: 6,
|
|
380
371
|
class: "axis-labels"
|
|
381
|
-
},
|
|
372
|
+
}, hn = [
|
|
382
373
|
"font-size",
|
|
383
374
|
"fill",
|
|
384
375
|
"x",
|
|
385
376
|
"y"
|
|
386
|
-
],
|
|
377
|
+
], gn = [
|
|
387
378
|
"font-size",
|
|
388
379
|
"fill",
|
|
389
380
|
"x",
|
|
390
381
|
"y"
|
|
391
|
-
],
|
|
382
|
+
], _n = [
|
|
392
383
|
"font-size",
|
|
393
384
|
"fill",
|
|
394
385
|
"transform"
|
|
395
|
-
],
|
|
386
|
+
], vn = [
|
|
396
387
|
"font-size",
|
|
397
388
|
"fill",
|
|
398
389
|
"transform"
|
|
399
|
-
],
|
|
390
|
+
], yn = {
|
|
400
391
|
key: 1,
|
|
401
392
|
style: {
|
|
402
393
|
position: "absolute",
|
|
@@ -406,13 +397,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
406
397
|
},
|
|
407
398
|
"data-dom-to-png-ignore": "",
|
|
408
399
|
"aria-hidden": "true"
|
|
409
|
-
},
|
|
400
|
+
}, bn = {
|
|
410
401
|
key: 5,
|
|
411
402
|
class: "vue-data-ui-watermark"
|
|
412
|
-
},
|
|
403
|
+
}, xn = ["id"], Sn = ["onClick", "onKeydown"], Cn = ["onClick", "onKeydown"], wn = ["onClick", "onKeydown"], Tn = {
|
|
413
404
|
key: 1,
|
|
414
405
|
class: "vue-ui-quick-chart-not-processable"
|
|
415
|
-
},
|
|
406
|
+
}, P = /*#__PURE__*/ ve({
|
|
416
407
|
__name: "vue-ui-quick-chart",
|
|
417
408
|
props: {
|
|
418
409
|
config: {
|
|
@@ -438,13 +429,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
438
429
|
"selectLegend",
|
|
439
430
|
"copyAlt"
|
|
440
431
|
],
|
|
441
|
-
setup(e, { expose:
|
|
442
|
-
let Ve =
|
|
443
|
-
|
|
444
|
-
let B =
|
|
432
|
+
setup(e, { expose: ve, emit: ze }) {
|
|
433
|
+
let Ve = Ae(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), He = Ae(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), Ge = Ae(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Ke = Ae(() => import("./Tooltip-CA1rtSyl.js")), qe = Ae(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), { vue_ui_quick_chart: Je } = ce(), { isThemeValid: Ye, warnInvalidTheme: Xe } = me(), { isReady: Ze } = he(300), N = e, P = E(null), En = E(null), Dn = E(null), On = E(null), F = E(i()), I = E(!1), kn = E(null), An = E(""), L = E(null), jn = E(null), Mn = E(null), R = E([]), Nn = E(0), Pn = E(0), Fn = E(!1), In = E(null), Ln = E(null), z = E(null), Rn = E(null), zn = E(null), Bn = E(null);
|
|
434
|
+
E("#FFFFFF");
|
|
435
|
+
let B = E(er()), Vn = _(() => !!B.value.debug), Hn = _(() => B.value.useCursorPointer), V = E(null), Un = E({
|
|
445
436
|
x: 0,
|
|
446
437
|
y: 0
|
|
447
|
-
}), H =
|
|
438
|
+
}), H = E("pointer"), Wn = E(!1), Gn = _(() => re({
|
|
448
439
|
dafaultConfig: {
|
|
449
440
|
backgroundColor: "#99999930",
|
|
450
441
|
customPalette: ["#BABABA"],
|
|
@@ -465,13 +456,13 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
465
456
|
zoomEndIndex: null
|
|
466
457
|
},
|
|
467
458
|
userConfig: B.value.skeletonConfig ?? {}
|
|
468
|
-
})), { loading: U, FINAL_DATASET:
|
|
459
|
+
})), { loading: U, FINAL_DATASET: Kn, manualLoading: qn } = ue({
|
|
469
460
|
...Ie(N),
|
|
470
461
|
FINAL_CONFIG: B,
|
|
471
|
-
prepareConfig:
|
|
462
|
+
prepareConfig: er,
|
|
472
463
|
callback: () => {
|
|
473
464
|
Promise.resolve().then(async () => {
|
|
474
|
-
await
|
|
465
|
+
await Me(), K.value === M.LINE && B.value.lineAnimated && !U.value && Rr({
|
|
475
466
|
pathDuration: 1e3,
|
|
476
467
|
pointDuration: 1200,
|
|
477
468
|
labelDuration: 1200
|
|
@@ -492,21 +483,21 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
492
483
|
],
|
|
493
484
|
skeletonConfig: re({
|
|
494
485
|
defaultConfig: B.value,
|
|
495
|
-
userConfig:
|
|
486
|
+
userConfig: Gn.value
|
|
496
487
|
})
|
|
497
|
-
}), { svgRef:
|
|
498
|
-
function
|
|
499
|
-
|
|
488
|
+
}), { svgRef: Jn } = Ce({ config: { text: B.value.title } }), Yn = _(() => B.value.showUserOptionsOnChartHover), Xn = _(() => B.value.keepUserOptionsStateOnChartLeave), Zn = E(!B.value.showUserOptionsOnChartHover), Qn = E(!1);
|
|
489
|
+
function $n(e = !1) {
|
|
490
|
+
Qn.value = e, Yn.value && (Zn.value = e);
|
|
500
491
|
}
|
|
501
|
-
function
|
|
492
|
+
function er() {
|
|
502
493
|
let e = pe({
|
|
503
494
|
userConfig: N.config,
|
|
504
|
-
defaultConfig:
|
|
495
|
+
defaultConfig: Je
|
|
505
496
|
}), t = {}, n = e.theme;
|
|
506
|
-
if (n) if (!
|
|
497
|
+
if (n) if (!Ye.value(e)) Xe(e), t = e;
|
|
507
498
|
else {
|
|
508
499
|
let i = pe({
|
|
509
|
-
userConfig:
|
|
500
|
+
userConfig: Te[n] || N.config,
|
|
510
501
|
defaultConfig: e
|
|
511
502
|
});
|
|
512
503
|
t = {
|
|
@@ -521,16 +512,16 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
521
512
|
return t;
|
|
522
513
|
}
|
|
523
514
|
Le(() => N.config, (e) => {
|
|
524
|
-
U.value || (B.value =
|
|
515
|
+
U.value || (B.value = er()), q.value.width = B.value.width, q.value.height = B.value.height, Zn.value = !B.value.showUserOptionsOnChartHover, fr(), lr.value.showTooltip = B.value.showTooltip;
|
|
525
516
|
}, { deep: !0 }), Le(() => N.dataset, (e) => {
|
|
526
|
-
G.value =
|
|
517
|
+
G.value = nr.value, X.value.start = 0, X.value.end = G.value.maxSeriesLength, Pn.value += 1;
|
|
527
518
|
}, { deep: !0 }), Le(() => N.dataset, (e) => {
|
|
528
|
-
Array.isArray(e) && e.length > 0 && (
|
|
519
|
+
Array.isArray(e) && e.length > 0 && (qn.value = !1);
|
|
529
520
|
}, { immediate: !0 });
|
|
530
|
-
let
|
|
521
|
+
let tr = _(() => n(B.value.customPalette)), W = ze, nr = _(() => {
|
|
531
522
|
let e = Be({
|
|
532
|
-
debug:
|
|
533
|
-
dataset: a(
|
|
523
|
+
debug: Vn.value,
|
|
524
|
+
dataset: a(Kn.value, [
|
|
534
525
|
"serie",
|
|
535
526
|
"series",
|
|
536
527
|
"data",
|
|
@@ -540,86 +531,86 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
540
531
|
]),
|
|
541
532
|
barLineSwitch: B.value.chartIsBarUnderDatasetLength
|
|
542
533
|
});
|
|
543
|
-
return !e &&
|
|
544
|
-
}), G =
|
|
534
|
+
return !e && Vn.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
535
|
+
}), G = E(nr.value), rr = _(() => !!G.value), K = _(() => G.value ? G.value.type : null);
|
|
545
536
|
Le(() => K.value, (e) => {
|
|
546
537
|
e || f({
|
|
547
538
|
componentName: "VueUiQuickChart",
|
|
548
539
|
type: "dataset",
|
|
549
|
-
debug:
|
|
540
|
+
debug: Vn.value
|
|
550
541
|
});
|
|
551
542
|
}, { immediate: !0 });
|
|
552
|
-
let { isPrinting:
|
|
543
|
+
let { isPrinting: ir, isImaging: ar, generatePdf: or, generateImage: sr } = le({
|
|
553
544
|
elementId: `${K.value}_${F.value}`,
|
|
554
545
|
fileName: B.value.title || K.value,
|
|
555
546
|
options: B.value.userOptionsPrint
|
|
556
|
-
}),
|
|
547
|
+
}), cr = _(() => B.value.showUserOptions && !B.value.title), q = E({
|
|
557
548
|
width: B.value.width,
|
|
558
549
|
height: B.value.height
|
|
559
|
-
}),
|
|
550
|
+
}), lr = E({ showTooltip: B.value.showTooltip });
|
|
560
551
|
Le(B, () => {
|
|
561
|
-
|
|
552
|
+
lr.value = { showTooltip: B.value.showTooltip };
|
|
562
553
|
}, { immediate: !0 });
|
|
563
|
-
let
|
|
554
|
+
let ur = Fe(null), dr = Fe(null);
|
|
564
555
|
Pe(async () => {
|
|
565
|
-
|
|
556
|
+
Fn.value = !0, fr();
|
|
566
557
|
});
|
|
567
|
-
function
|
|
568
|
-
if (t(N.dataset) || (
|
|
569
|
-
let e =
|
|
570
|
-
let { width: e, height: t } =
|
|
558
|
+
function fr() {
|
|
559
|
+
if (t(N.dataset) || (qn.value = B.value.loading), B.value.responsive) {
|
|
560
|
+
let e = ye(() => {
|
|
561
|
+
let { width: e, height: t } = be({
|
|
571
562
|
chart: P.value,
|
|
572
|
-
title: B.value.title ?
|
|
573
|
-
legend: B.value.showLegend ?
|
|
574
|
-
slicer: [
|
|
575
|
-
source:
|
|
576
|
-
noTitle:
|
|
563
|
+
title: B.value.title ? En.value : null,
|
|
564
|
+
legend: B.value.showLegend ? Dn.value : null,
|
|
565
|
+
slicer: [M.BAR, M.LINE].includes(K.value) && B.value.zoomXy && G.value.maxSeriesLength > 1 ? On.value : null,
|
|
566
|
+
source: jn.value,
|
|
567
|
+
noTitle: Mn.value
|
|
577
568
|
});
|
|
578
569
|
requestAnimationFrame(() => {
|
|
579
570
|
q.value.width = e, q.value.height = t;
|
|
580
571
|
});
|
|
581
572
|
});
|
|
582
|
-
|
|
573
|
+
ur.value && (dr.value && ur.value.unobserve(dr.value), ur.value.disconnect()), ur.value = new ResizeObserver(e), dr.value = P.value.parentNode, ur.value.observe(dr.value);
|
|
583
574
|
}
|
|
584
|
-
|
|
575
|
+
Er();
|
|
585
576
|
}
|
|
586
577
|
Ne(() => {
|
|
587
|
-
|
|
578
|
+
ur.value && (dr.value && ur.value.unobserve(dr.value), ur.value.disconnect());
|
|
588
579
|
});
|
|
589
|
-
let
|
|
580
|
+
let pr = _(() => {
|
|
590
581
|
switch (K.value) {
|
|
591
|
-
case
|
|
592
|
-
case
|
|
593
|
-
case
|
|
582
|
+
case M.LINE: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
583
|
+
case M.BAR: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
584
|
+
case M.DONUT: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
594
585
|
default: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
595
586
|
}
|
|
596
587
|
});
|
|
597
|
-
function
|
|
588
|
+
function mr(e) {
|
|
598
589
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
599
590
|
}
|
|
600
|
-
function
|
|
591
|
+
function hr(e) {
|
|
601
592
|
return B.value.blurOnHover && ![null, void 0].includes(L.value) && L.value !== e ? `url(#blur_${F.value})` : "";
|
|
602
593
|
}
|
|
603
|
-
function
|
|
604
|
-
R.value.length ? R.value = [] : K.value ===
|
|
594
|
+
function gr() {
|
|
595
|
+
R.value.length ? R.value = [] : K.value === M.DONUT ? Y.value.legend.forEach((e) => {
|
|
605
596
|
R.value.push(e.id);
|
|
606
|
-
}) : K.value ===
|
|
597
|
+
}) : K.value === M.LINE ? Z.value.legend.forEach((e) => {
|
|
607
598
|
R.value.push(e.id);
|
|
608
|
-
}) : K.value ===
|
|
599
|
+
}) : K.value === M.BAR && Q.value.legend.forEach((e) => {
|
|
609
600
|
R.value.push(e.id);
|
|
610
|
-
}), K.value ===
|
|
601
|
+
}), K.value === M.DONUT ? W("selectLegend", Y.value.dataset) : K.value === M.LINE ? W("selectLegend", Z.value.dataset) : K.value === M.BAR && W("selectLegend", Q.value.dataset);
|
|
611
602
|
}
|
|
612
|
-
function
|
|
603
|
+
function _r(e, t) {
|
|
613
604
|
R.value.includes(e) ? R.value = R.value.filter((t) => t !== e) : R.value.length < t && R.value.push(e);
|
|
614
605
|
}
|
|
615
|
-
let
|
|
616
|
-
function
|
|
617
|
-
|
|
618
|
-
let n = e.value, r =
|
|
606
|
+
let vr = E(null), yr = E(null), br = E(!1);
|
|
607
|
+
function xr(e, t) {
|
|
608
|
+
br.value = !0;
|
|
609
|
+
let n = e.value, r = nr.value.dataset.find((t, n) => e.id === `donut_${n}`).VALUE;
|
|
619
610
|
if (R.value.includes(e.id)) {
|
|
620
611
|
R.value = R.value.filter((t) => t !== e.id);
|
|
621
612
|
function t() {
|
|
622
|
-
n > r ? (
|
|
613
|
+
n > r ? (br.value = !1, cancelAnimationFrame(yr.value), G.value = {
|
|
623
614
|
...G.value,
|
|
624
615
|
dataset: G.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
625
616
|
...t,
|
|
@@ -633,12 +624,12 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
633
624
|
value: n,
|
|
634
625
|
VALUE: n
|
|
635
626
|
} : t)
|
|
636
|
-
},
|
|
627
|
+
}, yr.value = requestAnimationFrame(t));
|
|
637
628
|
}
|
|
638
629
|
t();
|
|
639
630
|
} else if (t.length > 1) {
|
|
640
631
|
function t() {
|
|
641
|
-
n < r / 100 ? (
|
|
632
|
+
n < r / 100 ? (br.value = !1, cancelAnimationFrame(vr.value), R.value.push(e.id), G.value = {
|
|
642
633
|
...G.value,
|
|
643
634
|
dataset: G.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
644
635
|
...t,
|
|
@@ -652,17 +643,17 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
652
643
|
value: n,
|
|
653
644
|
VALUE: n
|
|
654
645
|
} : t)
|
|
655
|
-
},
|
|
646
|
+
}, vr.value = requestAnimationFrame(t));
|
|
656
647
|
}
|
|
657
648
|
t();
|
|
658
649
|
} else W("selectLegend", Y.value.dataset);
|
|
659
650
|
}
|
|
660
|
-
let J =
|
|
661
|
-
function
|
|
651
|
+
let J = E(null);
|
|
652
|
+
function Sr(e) {
|
|
662
653
|
J.value = e;
|
|
663
654
|
}
|
|
664
|
-
let
|
|
665
|
-
if (K.value !==
|
|
655
|
+
let Cr = _(() => B.value.donutThicknessRatio < .01 ? .01 : B.value.donutThicknessRatio > .4 ? .4 : B.value.donutThicknessRatio), Y = _(() => {
|
|
656
|
+
if (K.value !== M.DONUT) return null;
|
|
666
657
|
let e = G.value.dataset.map((e, t) => ({
|
|
667
658
|
...e,
|
|
668
659
|
value: e.VALUE || e.DATA || e.SERIE || e.VALUES || e.NUM || 0,
|
|
@@ -670,12 +661,12 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
670
661
|
id: `donut_${t}`
|
|
671
662
|
})).map((e, t) => ({
|
|
672
663
|
...e,
|
|
673
|
-
color: e.COLOR ? oe(e.COLOR) :
|
|
664
|
+
color: e.COLOR ? oe(e.COLOR) : tr.value[t + B.value.paletteStartIndex] || s[t + B.value.paletteStartIndex] || s[(t + B.value.paletteStartIndex) % s.length],
|
|
674
665
|
immutableValue: e.value
|
|
675
666
|
}));
|
|
676
667
|
function t(e, t) {
|
|
677
668
|
return u({
|
|
678
|
-
v: isNaN(e.value /
|
|
669
|
+
v: isNaN(e.value / mr(t)) ? 0 : e.value / mr(t) * 100,
|
|
679
670
|
s: "%",
|
|
680
671
|
r: B.value.dataLabelRoundingPercentage
|
|
681
672
|
});
|
|
@@ -684,11 +675,11 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
684
675
|
return e.proportion * 100 > B.value.donutHideLabelUnderPercentage;
|
|
685
676
|
}
|
|
686
677
|
function r(e, t) {
|
|
687
|
-
let n =
|
|
678
|
+
let n = nr.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
|
|
688
679
|
return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
|
|
689
680
|
}
|
|
690
681
|
function i({ datapoint: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
691
|
-
|
|
682
|
+
kn.value = {
|
|
692
683
|
datapoint: t,
|
|
693
684
|
seriesIndex: n,
|
|
694
685
|
config: B.value,
|
|
@@ -703,7 +694,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
703
694
|
seriesIndex: n,
|
|
704
695
|
series: e,
|
|
705
696
|
config: B.value
|
|
706
|
-
})))
|
|
697
|
+
}))) An.value = i({
|
|
707
698
|
datapoint: t,
|
|
708
699
|
seriesIndex: n,
|
|
709
700
|
series: e,
|
|
@@ -723,7 +714,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
723
714
|
v: t.proportion * 100,
|
|
724
715
|
s: "%",
|
|
725
716
|
r: B.value.dataLabelRoundingPercentage
|
|
726
|
-
})})</span></div>`,
|
|
717
|
+
})})</span></div>`, An.value = `<div>${e}</div>`;
|
|
727
718
|
}
|
|
728
719
|
I.value = !0;
|
|
729
720
|
}
|
|
@@ -746,7 +737,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
746
737
|
...e,
|
|
747
738
|
proportion: (e.value || 0) / d,
|
|
748
739
|
value: e.value || 0,
|
|
749
|
-
absoluteValue:
|
|
740
|
+
absoluteValue: nr.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
|
|
750
741
|
shape: "circle"
|
|
751
742
|
})), p = q.value.width / 2, te = q.value.height / 2, ne = q.value.height * B.value.donutRadiusRatio;
|
|
752
743
|
return {
|
|
@@ -763,70 +754,70 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
763
754
|
cx: p,
|
|
764
755
|
cy: te,
|
|
765
756
|
radius: ne,
|
|
766
|
-
chart: c({ series: e.filter((e) => !R.value.includes(e.id)) }, p, te, ne, ne, 1.99999, 2, 1, 360, 105.25, q.value.height *
|
|
757
|
+
chart: c({ series: e.filter((e) => !R.value.includes(e.id)) }, p, te, ne, ne, 1.99999, 2, 1, 360, 105.25, q.value.height * Cr.value)
|
|
767
758
|
};
|
|
768
|
-
}), X =
|
|
759
|
+
}), X = E({
|
|
769
760
|
start: 0,
|
|
770
761
|
end: G.value.maxSeriesLength
|
|
771
762
|
});
|
|
772
|
-
function
|
|
773
|
-
|
|
763
|
+
function wr() {
|
|
764
|
+
Er();
|
|
774
765
|
}
|
|
775
|
-
let
|
|
776
|
-
async function
|
|
777
|
-
await
|
|
778
|
-
let { zoomStartIndex: e, zoomEndIndex: t } = B.value, n =
|
|
779
|
-
(e != null || t != null) && n ? (e != null && n.setStartValue(e), t != null && n.setEndValue(
|
|
766
|
+
let Tr = E(null);
|
|
767
|
+
async function Er() {
|
|
768
|
+
await Me(), await Me();
|
|
769
|
+
let { zoomStartIndex: e, zoomEndIndex: t } = B.value, n = Tr.value;
|
|
770
|
+
(e != null || t != null) && n ? (e != null && n.setStartValue(e), t != null && n.setEndValue(Dr(t + 1))) : (X.value = {
|
|
780
771
|
start: 0,
|
|
781
772
|
end: G.value.maxSeriesLength
|
|
782
|
-
},
|
|
773
|
+
}, Pn.value += 1);
|
|
783
774
|
}
|
|
784
|
-
function
|
|
775
|
+
function Dr(e) {
|
|
785
776
|
let t = G.value.maxSeriesLength;
|
|
786
777
|
return e > t ? t : e < 0 || B.value.zoomStartIndex !== null && e < B.value.zoomStartIndex ? B.value.zoomStartIndex === null ? 1 : B.value.zoomStartIndex + 1 : e;
|
|
787
778
|
}
|
|
788
|
-
let
|
|
789
|
-
if (!B.value.zoomMinimap.show || K.value ===
|
|
779
|
+
let Or = _(() => {
|
|
780
|
+
if (!B.value.zoomMinimap.show || K.value === M.DONUT) return [];
|
|
790
781
|
let e = [];
|
|
791
|
-
|
|
782
|
+
Ue(G.value.dataset) && (e = G.value.dataset), We(G.value.dataset) && (e = G.value.dataset.map((e, t) => ({
|
|
792
783
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
793
|
-
id: K.value ===
|
|
784
|
+
id: K.value === M.LINE ? `line_${t}` : `bar_${t}`
|
|
794
785
|
})).filter((e) => !R.value.includes(e.id)));
|
|
795
|
-
let t =
|
|
796
|
-
if (
|
|
786
|
+
let t = Ue(e) ? e.length : Math.max(...e.map((e) => e.values.length)), n = [];
|
|
787
|
+
if (Ue(e)) n = e;
|
|
797
788
|
else for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.values[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
798
789
|
let r = Math.min(...n);
|
|
799
790
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
800
791
|
});
|
|
801
|
-
function
|
|
792
|
+
function kr() {
|
|
802
793
|
let e = 0;
|
|
803
|
-
return
|
|
794
|
+
return Rn.value && (e = Array.from(Rn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
804
795
|
let n = t.getComputedTextLength();
|
|
805
796
|
return n > e ? n : e;
|
|
806
797
|
}, 0)), e + 4;
|
|
807
798
|
}
|
|
808
|
-
let
|
|
809
|
-
|
|
799
|
+
let Ar = E(0), jr = ye((e) => {
|
|
800
|
+
Ar.value = e;
|
|
810
801
|
}, 100);
|
|
811
802
|
Re((e) => {
|
|
812
803
|
let t = z.value;
|
|
813
804
|
if (!t) return;
|
|
814
805
|
let n = new ResizeObserver((e) => {
|
|
815
|
-
|
|
806
|
+
jr(e[0].contentRect.height);
|
|
816
807
|
});
|
|
817
808
|
n.observe(t), e(() => n.disconnect());
|
|
818
809
|
}), Ne(() => {
|
|
819
|
-
|
|
810
|
+
Ar.value = 0;
|
|
820
811
|
});
|
|
821
|
-
let
|
|
812
|
+
let Mr = _(() => {
|
|
822
813
|
let e = 0;
|
|
823
|
-
return z.value && (e =
|
|
814
|
+
return z.value && (e = Ar.value), 0 + e;
|
|
824
815
|
}), Z = _(() => {
|
|
825
|
-
if (K.value !==
|
|
816
|
+
if (K.value !== M.LINE) return null;
|
|
826
817
|
let e = {
|
|
827
818
|
height: q.value.height,
|
|
828
819
|
width: q.value.width
|
|
829
|
-
}, t =
|
|
820
|
+
}, t = kr();
|
|
830
821
|
if (z.value) {
|
|
831
822
|
let e = z.value.getBBox().x;
|
|
832
823
|
e < 0 && (t += Math.abs(e));
|
|
@@ -835,25 +826,25 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
835
826
|
left: t + B.value.xyPaddingLeft,
|
|
836
827
|
top: B.value.xyPaddingTop,
|
|
837
828
|
right: e.width - B.value.xyPaddingRight,
|
|
838
|
-
bottom: e.height - B.value.xyPaddingBottom -
|
|
829
|
+
bottom: e.height - B.value.xyPaddingBottom - Mr.value,
|
|
839
830
|
width: Math.max(10, e.width - B.value.xyPaddingLeft - B.value.xyPaddingRight - t),
|
|
840
|
-
height: Math.max(10, e.height - B.value.xyPaddingTop - B.value.xyPaddingBottom -
|
|
831
|
+
height: Math.max(10, e.height - B.value.xyPaddingTop - B.value.xyPaddingBottom - Mr.value)
|
|
841
832
|
}, r = [];
|
|
842
|
-
|
|
833
|
+
Ue(G.value.dataset) && (r = [{
|
|
843
834
|
values: G.value.dataset.slice(X.value.start, X.value.end),
|
|
844
835
|
absoluteValues: G.value.dataset,
|
|
845
836
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
846
837
|
name: B.value.title,
|
|
847
|
-
color:
|
|
838
|
+
color: tr.value[B.value.paletteStartIndex] || s[B.value.paletteStartIndex],
|
|
848
839
|
id: "line_0"
|
|
849
|
-
}]),
|
|
840
|
+
}]), We(G.value.dataset) && (r = G.value.dataset.map((e, t) => ({
|
|
850
841
|
...e,
|
|
851
842
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
852
843
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
853
844
|
id: `line_${t}`
|
|
854
845
|
})).map((e, t) => ({
|
|
855
846
|
...e,
|
|
856
|
-
color: e.COLOR ? oe(e.COLOR) :
|
|
847
|
+
color: e.COLOR ? oe(e.COLOR) : tr.value[t + B.value.paletteStartIndex] || s[t + B.value.paletteStartIndex] || s[(t + B.value.paletteStartIndex) % s.length],
|
|
857
848
|
values: e.values.slice(X.value.start, X.value.end),
|
|
858
849
|
absoluteValues: e.values,
|
|
859
850
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -893,7 +884,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
893
884
|
function ne(e, t = "pointer") {
|
|
894
885
|
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
895
886
|
let n = p(e);
|
|
896
|
-
|
|
887
|
+
kn.value = {
|
|
897
888
|
datapoint: n,
|
|
898
889
|
seriesIndex: e,
|
|
899
890
|
config: B.value,
|
|
@@ -908,7 +899,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
908
899
|
seriesIndex: e,
|
|
909
900
|
series: r,
|
|
910
901
|
config: B.value
|
|
911
|
-
})))
|
|
902
|
+
}))) An.value = i({
|
|
912
903
|
datapoint: n,
|
|
913
904
|
seriesIndex: e,
|
|
914
905
|
series: r,
|
|
@@ -933,7 +924,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
933
924
|
</b>
|
|
934
925
|
</div>
|
|
935
926
|
`;
|
|
936
|
-
}),
|
|
927
|
+
}), An.value = e;
|
|
937
928
|
}
|
|
938
929
|
I.value = !0;
|
|
939
930
|
}
|
|
@@ -964,11 +955,11 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
964
955
|
selectDatapoint: ae
|
|
965
956
|
};
|
|
966
957
|
}), Q = _(() => {
|
|
967
|
-
if (K.value !==
|
|
958
|
+
if (K.value !== M.BAR) return null;
|
|
968
959
|
let e = {
|
|
969
960
|
height: q.value.height,
|
|
970
961
|
width: q.value.width
|
|
971
|
-
}, t =
|
|
962
|
+
}, t = kr();
|
|
972
963
|
if (z.value) {
|
|
973
964
|
let e = z.value.getBBox().x;
|
|
974
965
|
e < 0 && (t += Math.abs(e));
|
|
@@ -977,25 +968,25 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
977
968
|
left: t + B.value.xyPaddingLeft,
|
|
978
969
|
top: B.value.xyPaddingTop,
|
|
979
970
|
right: e.width - B.value.xyPaddingRight,
|
|
980
|
-
bottom: e.height - B.value.xyPaddingBottom -
|
|
971
|
+
bottom: e.height - B.value.xyPaddingBottom - Mr.value,
|
|
981
972
|
width: Math.max(10, e.width - B.value.xyPaddingLeft - B.value.xyPaddingRight - t),
|
|
982
|
-
height: Math.max(10, e.height - B.value.xyPaddingTop - B.value.xyPaddingBottom -
|
|
973
|
+
height: Math.max(10, e.height - B.value.xyPaddingTop - B.value.xyPaddingBottom - Mr.value)
|
|
983
974
|
}, r = [];
|
|
984
|
-
|
|
975
|
+
Ue(G.value.dataset) && (r = [{
|
|
985
976
|
values: G.value.dataset.slice(X.value.start, X.value.end),
|
|
986
977
|
absoluteValues: G.value.dataset,
|
|
987
978
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
988
979
|
name: B.value.title,
|
|
989
|
-
color:
|
|
980
|
+
color: tr.value[B.value.paletteStartIndex] || s[B.value.paletteStartIndex],
|
|
990
981
|
id: "bar_0"
|
|
991
|
-
}]),
|
|
982
|
+
}]), We(G.value.dataset) && (r = G.value.dataset.map((e, t) => ({
|
|
992
983
|
...e,
|
|
993
984
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
994
985
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
995
986
|
id: `bar_${t}`
|
|
996
987
|
})).map((e, t) => ({
|
|
997
988
|
...e,
|
|
998
|
-
color: e.COLOR ? oe(e.COLOR) :
|
|
989
|
+
color: e.COLOR ? oe(e.COLOR) : tr.value[t + B.value.paletteStartIndex] || s[t + B.value.paletteStartIndex] || s[(t + B.value.paletteStartIndex) % s.length],
|
|
999
990
|
values: e.values.slice(X.value.start, X.value.end),
|
|
1000
991
|
absoluteValues: e.values,
|
|
1001
992
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
@@ -1044,7 +1035,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1044
1035
|
function re(e, t = "pointer") {
|
|
1045
1036
|
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
1046
1037
|
let n = ne(e);
|
|
1047
|
-
|
|
1038
|
+
kn.value = {
|
|
1048
1039
|
datapoint: n,
|
|
1049
1040
|
seriesIndex: e,
|
|
1050
1041
|
config: B.value,
|
|
@@ -1059,7 +1050,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1059
1050
|
seriesIndex: e,
|
|
1060
1051
|
series: r,
|
|
1061
1052
|
config: B.value
|
|
1062
|
-
})))
|
|
1053
|
+
}))) An.value = i({
|
|
1063
1054
|
point: n,
|
|
1064
1055
|
seriesIndex: e,
|
|
1065
1056
|
series: r,
|
|
@@ -1084,7 +1075,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1084
1075
|
</b>
|
|
1085
1076
|
</div>
|
|
1086
1077
|
`;
|
|
1087
|
-
}),
|
|
1078
|
+
}), An.value = e;
|
|
1088
1079
|
}
|
|
1089
1080
|
I.value = !0;
|
|
1090
1081
|
}
|
|
@@ -1116,26 +1107,26 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1116
1107
|
selectDatapoint: h
|
|
1117
1108
|
};
|
|
1118
1109
|
});
|
|
1119
|
-
function
|
|
1110
|
+
function Nr(e) {
|
|
1120
1111
|
if (!e) return;
|
|
1121
1112
|
let t = e.getTotalLength();
|
|
1122
1113
|
e.style.transition = "none", e.style.strokeDasharray = `${t}`, e.style.strokeDashoffset = `${t}`;
|
|
1123
1114
|
}
|
|
1124
|
-
function
|
|
1115
|
+
function Pr(e, { fromOpacity: t = "0", fromScale: n = "0.85" } = {}) {
|
|
1125
1116
|
e.forEach((e) => {
|
|
1126
1117
|
e.style.animation = "none", e.style.transition = "none", e.style.opacity = t, e.style.transform = `scale(${n})`, e.style.transformBox = "fill-box", e.style.transformOrigin = "50% 50%";
|
|
1127
1118
|
});
|
|
1128
1119
|
}
|
|
1129
|
-
function
|
|
1120
|
+
function Fr(e) {
|
|
1130
1121
|
return e.cx?.baseVal?.value ?? parseFloat(e.getAttribute("cx"));
|
|
1131
1122
|
}
|
|
1132
|
-
function
|
|
1123
|
+
function Ir(e) {
|
|
1133
1124
|
let t = e.getAttribute("x");
|
|
1134
1125
|
if (t != null) return parseFloat(t);
|
|
1135
1126
|
let n = e.getCTM?.();
|
|
1136
1127
|
return n ? n.e : 0;
|
|
1137
1128
|
}
|
|
1138
|
-
function
|
|
1129
|
+
function Lr(e, t) {
|
|
1139
1130
|
if (!e.length) return [];
|
|
1140
1131
|
let n = e.map((e) => ({
|
|
1141
1132
|
el: e,
|
|
@@ -1160,16 +1151,16 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1160
1151
|
}
|
|
1161
1152
|
return a.push(o), a;
|
|
1162
1153
|
}
|
|
1163
|
-
function
|
|
1164
|
-
let l = Array.isArray(
|
|
1165
|
-
ee.forEach(
|
|
1154
|
+
function Rr({ pathDuration: e, pathEasing: t = "ease-in-out", pointDuration: n, labelDuration: r, pointDelay: i = 0, labelDelay: a = 0, pointStep: o = 0, labelStep: s = 0, intraSeriesStep: c = 0 } = {}) {
|
|
1155
|
+
let l = Array.isArray(In?.value) ? In.value : [In?.value].filter(Boolean), u = Array.isArray(Ln?.value) ? Ln.value : [Ln?.value].filter(Boolean), ee = [...l, ...u].filter(Boolean), d = P?.value || null, f = d ? Array.from(d.querySelectorAll(".vue-ui-quick-chart-plot")) : [], p = d ? Array.from(d.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
1156
|
+
ee.forEach(Nr), Pr(f, {
|
|
1166
1157
|
fromOpacity: "0",
|
|
1167
1158
|
fromScale: "0.75"
|
|
1168
|
-
}),
|
|
1159
|
+
}), Pr(p, {
|
|
1169
1160
|
fromOpacity: "0",
|
|
1170
1161
|
fromScale: "0.98"
|
|
1171
1162
|
}), f.forEach((e) => e.classList.remove("quick-animation")), p.forEach((e) => e.classList.remove("quick-animation")), d && d.offsetWidth;
|
|
1172
|
-
let te = f.length ?
|
|
1163
|
+
let te = f.length ? Lr(f, Fr) : [], m = p.length ? Lr(p, Ir) : [];
|
|
1173
1164
|
requestAnimationFrame(() => {
|
|
1174
1165
|
requestAnimationFrame(() => {
|
|
1175
1166
|
ee.forEach((n) => {
|
|
@@ -1188,22 +1179,22 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1188
1179
|
});
|
|
1189
1180
|
});
|
|
1190
1181
|
}
|
|
1191
|
-
let
|
|
1192
|
-
if (K.value ===
|
|
1182
|
+
let zr = _(() => {
|
|
1183
|
+
if (K.value === M.LINE) return Z.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
|
|
1193
1184
|
...e,
|
|
1194
1185
|
isVisible: !R.value.includes(e.id),
|
|
1195
1186
|
type: "line",
|
|
1196
1187
|
series: e.absoluteValues
|
|
1197
1188
|
}));
|
|
1198
|
-
if (K.value ===
|
|
1189
|
+
if (K.value === M.BAR) return Q.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
|
|
1199
1190
|
...e,
|
|
1200
1191
|
isVisible: !R.value.includes(e.id),
|
|
1201
1192
|
type: "bar",
|
|
1202
1193
|
series: e.absoluteValues
|
|
1203
1194
|
}));
|
|
1204
|
-
}), $ =
|
|
1195
|
+
}), $ = E([]), Br = 0;
|
|
1205
1196
|
Re(() => {
|
|
1206
|
-
let e = ++
|
|
1197
|
+
let e = ++Br;
|
|
1207
1198
|
(async () => {
|
|
1208
1199
|
let t = await se({
|
|
1209
1200
|
values: B.value.xyPeriods,
|
|
@@ -1212,26 +1203,26 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1212
1203
|
start: X.value.start,
|
|
1213
1204
|
end: X.value.end
|
|
1214
1205
|
});
|
|
1215
|
-
e ===
|
|
1206
|
+
e === Br && ($.value = t);
|
|
1216
1207
|
})();
|
|
1217
1208
|
});
|
|
1218
|
-
let
|
|
1209
|
+
let Vr = _(() => {
|
|
1219
1210
|
let e = B.value.xyPeriodsModulo;
|
|
1220
1211
|
return B.value.xyPeriods.length ? Math.min(e, [...new Set($.value.map((e) => e.text))].length) : e;
|
|
1221
|
-
}),
|
|
1222
|
-
function
|
|
1223
|
-
|
|
1212
|
+
}), Hr = E(!1);
|
|
1213
|
+
function Ur(e) {
|
|
1214
|
+
Hr.value = e, Nn.value += 1;
|
|
1224
1215
|
}
|
|
1225
|
-
function
|
|
1226
|
-
|
|
1216
|
+
function Wr() {
|
|
1217
|
+
lr.value.showTooltip = !lr.value.showTooltip;
|
|
1227
1218
|
}
|
|
1228
|
-
let
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1219
|
+
let Gr = E(!1);
|
|
1220
|
+
function Kr() {
|
|
1221
|
+
Gr.value = !Gr.value;
|
|
1231
1222
|
}
|
|
1232
|
-
async function
|
|
1223
|
+
async function qr({ scale: e = 2 } = {}) {
|
|
1233
1224
|
if (!P.value) return;
|
|
1234
|
-
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
1225
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
1235
1226
|
domElement: P.value,
|
|
1236
1227
|
base64: !0,
|
|
1237
1228
|
img: !0,
|
|
@@ -1246,8 +1237,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1246
1237
|
aspectRatio: r
|
|
1247
1238
|
};
|
|
1248
1239
|
}
|
|
1249
|
-
let
|
|
1250
|
-
|
|
1240
|
+
let Jr = _(() => q.value.width), Yr = _(() => q.value.height);
|
|
1241
|
+
ge({
|
|
1251
1242
|
timeLabelsEls: z,
|
|
1252
1243
|
timeLabels: $,
|
|
1253
1244
|
slicer: X,
|
|
@@ -1256,18 +1247,18 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1256
1247
|
autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
|
|
1257
1248
|
isAutoSize: !1,
|
|
1258
1249
|
rotation: B.value.xyPeriodLabelsAutoRotate.angle,
|
|
1259
|
-
height:
|
|
1260
|
-
width:
|
|
1250
|
+
height: Yr.value,
|
|
1251
|
+
width: Jr.value
|
|
1261
1252
|
});
|
|
1262
|
-
let
|
|
1253
|
+
let Xr = _(() => B.value.backgroundColor), Zr = _(() => K.value === M.DONUT ? Y.value.legend : K.value === M.LINE ? Z.value.legend : Q.value.legend), Qr = _(() => ({
|
|
1263
1254
|
show: B.value.showLegend,
|
|
1264
1255
|
bold: !1,
|
|
1265
1256
|
backgroundColor: B.value.backgroundColor,
|
|
1266
1257
|
color: B.value.color,
|
|
1267
1258
|
fontSize: B.value.legendFontSize,
|
|
1268
1259
|
position: B.value.legendPosition
|
|
1269
|
-
})), { exportSvg:
|
|
1270
|
-
svg:
|
|
1260
|
+
})), { exportSvg: $r, getSvg: ei } = fe({
|
|
1261
|
+
svg: Jn,
|
|
1271
1262
|
title: _(() => ({
|
|
1272
1263
|
text: B.value.title,
|
|
1273
1264
|
color: B.value.color,
|
|
@@ -1276,22 +1267,22 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1276
1267
|
textAlign: B.value.titleTextAlign,
|
|
1277
1268
|
subtitle: { text: "" }
|
|
1278
1269
|
})),
|
|
1279
|
-
legend:
|
|
1280
|
-
legendItems:
|
|
1281
|
-
backgroundColor:
|
|
1270
|
+
legend: Qr,
|
|
1271
|
+
legendItems: Zr,
|
|
1272
|
+
backgroundColor: Xr
|
|
1282
1273
|
});
|
|
1283
|
-
async function
|
|
1274
|
+
async function ti({ isCb: e }) {
|
|
1284
1275
|
if (e) {
|
|
1285
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1276
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ei();
|
|
1286
1277
|
B.value.userOptionsCallbacks.svg({
|
|
1287
1278
|
blob: e,
|
|
1288
1279
|
url: t,
|
|
1289
1280
|
text: n,
|
|
1290
1281
|
dataUrl: r
|
|
1291
1282
|
});
|
|
1292
|
-
} else
|
|
1283
|
+
} else $r();
|
|
1293
1284
|
}
|
|
1294
|
-
async function
|
|
1285
|
+
async function ni() {
|
|
1295
1286
|
if (W("copyAlt", {
|
|
1296
1287
|
config: B.value,
|
|
1297
1288
|
dataset: {
|
|
@@ -1312,18 +1303,18 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1312
1303
|
}
|
|
1313
1304
|
}));
|
|
1314
1305
|
}
|
|
1315
|
-
function
|
|
1306
|
+
function ri(e, t) {
|
|
1316
1307
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
1317
1308
|
}
|
|
1318
|
-
let
|
|
1319
|
-
function ii() {
|
|
1320
|
-
V.value = null, Un.value = !0;
|
|
1321
|
-
}
|
|
1309
|
+
let ii = _(() => K.value === M.DONUT ? Y.value?.chart?.length ?? 0 : K.value === M.LINE ? Z.value?.extremes?.maxSeries ?? 0 : K.value === M.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
|
|
1322
1310
|
function ai() {
|
|
1323
|
-
V.value = null,
|
|
1311
|
+
V.value = null, Wn.value = !0;
|
|
1324
1312
|
}
|
|
1325
|
-
function oi(
|
|
1326
|
-
|
|
1313
|
+
function oi() {
|
|
1314
|
+
V.value = null, H.value = "pointer", I.value = !1, L.value = null, J.value = null, Wn.value = !1;
|
|
1315
|
+
}
|
|
1316
|
+
function si(e) {
|
|
1317
|
+
if (!Jn.value || Gr.value || document.activeElement !== Jn.value || !ii.value) return;
|
|
1327
1318
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1328
1319
|
if (!t && !n && !r && !i) return;
|
|
1329
1320
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -1332,7 +1323,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1332
1323
|
}
|
|
1333
1324
|
if (r) {
|
|
1334
1325
|
if (V.value === null) return;
|
|
1335
|
-
if (K.value ===
|
|
1326
|
+
if (K.value === M.DONUT) {
|
|
1336
1327
|
let e = Y.value?.chart?.[V.value];
|
|
1337
1328
|
if (!e) return;
|
|
1338
1329
|
Y.value.selectDatapoint({
|
|
@@ -1341,59 +1332,59 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1341
1332
|
});
|
|
1342
1333
|
return;
|
|
1343
1334
|
}
|
|
1344
|
-
if (K.value ===
|
|
1335
|
+
if (K.value === M.LINE) {
|
|
1345
1336
|
Z.value?.selectDatapoint(V.value);
|
|
1346
1337
|
return;
|
|
1347
1338
|
}
|
|
1348
|
-
if (K.value ===
|
|
1339
|
+
if (K.value === M.BAR) {
|
|
1349
1340
|
Q.value?.selectDatapoint(V.value);
|
|
1350
1341
|
return;
|
|
1351
1342
|
}
|
|
1352
1343
|
return;
|
|
1353
1344
|
}
|
|
1354
|
-
let a = V.value, o = J.value, s = a !== null && a >= 0 && a <
|
|
1355
|
-
if (s ? n ? (a += 1, a >=
|
|
1345
|
+
let a = V.value, o = J.value, s = a !== null && a >= 0 && a < ii.value, c = o !== null && o >= 0 && o < ii.value;
|
|
1346
|
+
if (s ? n ? (a += 1, a >= ii.value && (a = 0)) : t && (--a, a < 0 && (a = ii.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= ii.value && (a = 0), a < 0 && (a = ii.value - 1)) : a = n ? 0 : ii.value - 1, K.value === M.DONUT) {
|
|
1356
1347
|
let e = Y.value?.chart?.[a];
|
|
1357
1348
|
if (!e) return;
|
|
1358
|
-
|
|
1349
|
+
ci(a), Y.value.useTooltip({
|
|
1359
1350
|
datapoint: e,
|
|
1360
1351
|
seriesIndex: a,
|
|
1361
1352
|
triggerMode: "keyboard"
|
|
1362
1353
|
});
|
|
1363
1354
|
return;
|
|
1364
1355
|
}
|
|
1365
|
-
if (K.value ===
|
|
1366
|
-
|
|
1356
|
+
if (K.value === M.LINE) {
|
|
1357
|
+
ci(a), Z.value?.useTooltip(a, "keyboard");
|
|
1367
1358
|
return;
|
|
1368
1359
|
}
|
|
1369
|
-
K.value ===
|
|
1360
|
+
K.value === M.BAR && (ci(a), Q.value?.useTooltip(a, "keyboard"));
|
|
1370
1361
|
}
|
|
1371
|
-
function
|
|
1372
|
-
if (!Number.isFinite(e) || !
|
|
1362
|
+
function ci(e) {
|
|
1363
|
+
if (!Number.isFinite(e) || !Jn.value) return;
|
|
1373
1364
|
let t = 0, n = 0;
|
|
1374
|
-
if (K.value ===
|
|
1365
|
+
if (K.value === M.DONUT) {
|
|
1375
1366
|
let r = Y.value?.chart?.[e];
|
|
1376
1367
|
if (!r) return;
|
|
1377
1368
|
t = d(r, !0).x, n = p(r);
|
|
1378
1369
|
}
|
|
1379
|
-
if (K.value ===
|
|
1370
|
+
if (K.value === M.LINE) {
|
|
1380
1371
|
let r = Z.value?.drawingArea, i = Z.value?.slotSize;
|
|
1381
1372
|
if (!r || !i) return;
|
|
1382
1373
|
t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
|
|
1383
1374
|
}
|
|
1384
|
-
if (K.value ===
|
|
1375
|
+
if (K.value === M.BAR) {
|
|
1385
1376
|
let r = Q.value?.drawingArea, i = Q.value?.slotSize;
|
|
1386
1377
|
if (!r || !i) return;
|
|
1387
1378
|
t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
|
|
1388
1379
|
}
|
|
1389
|
-
let r =
|
|
1390
|
-
|
|
1380
|
+
let r = Jn.value.getBoundingClientRect();
|
|
1381
|
+
Un.value = {
|
|
1391
1382
|
x: r.left + t / q.value.width * r.width,
|
|
1392
1383
|
y: r.top + n / q.value.height * r.height
|
|
1393
1384
|
};
|
|
1394
1385
|
}
|
|
1395
|
-
let
|
|
1396
|
-
if (K.value ===
|
|
1386
|
+
let li = _(() => {
|
|
1387
|
+
if (K.value === M.DONUT) return {
|
|
1397
1388
|
headers: [
|
|
1398
1389
|
"Series",
|
|
1399
1390
|
"Value",
|
|
@@ -1417,8 +1408,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1417
1408
|
];
|
|
1418
1409
|
})
|
|
1419
1410
|
};
|
|
1420
|
-
if (K.value ===
|
|
1421
|
-
let e = K.value ===
|
|
1411
|
+
if (K.value === M.LINE || K.value === M.BAR) {
|
|
1412
|
+
let e = K.value === M.LINE ? Z.value?.dataset ?? [] : Q.value?.dataset ?? [], t = K.value === M.LINE ? Z.value?.extremes?.maxSeries ?? 0 : Q.value?.extremes?.maxSeries ?? 0;
|
|
1422
1413
|
return {
|
|
1423
1414
|
headers: ["Index", ...e.map((e) => e.name)],
|
|
1424
1415
|
rows: Array.from({ length: t }, (t, n) => [$.value?.[n + X.value.start]?.text ?? String(n + X.value.start), ...e.map((e) => {
|
|
@@ -1437,38 +1428,38 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1437
1428
|
rows: []
|
|
1438
1429
|
};
|
|
1439
1430
|
});
|
|
1440
|
-
return
|
|
1441
|
-
getImage:
|
|
1442
|
-
generatePdf:
|
|
1443
|
-
generateImage:
|
|
1444
|
-
generateSvg:
|
|
1445
|
-
toggleTooltip:
|
|
1446
|
-
toggleAnnotator:
|
|
1447
|
-
toggleFullscreen:
|
|
1448
|
-
copyAlt:
|
|
1449
|
-
}), (e, t) =>
|
|
1431
|
+
return ve({
|
|
1432
|
+
getImage: qr,
|
|
1433
|
+
generatePdf: or,
|
|
1434
|
+
generateImage: sr,
|
|
1435
|
+
generateSvg: ti,
|
|
1436
|
+
toggleTooltip: Wr,
|
|
1437
|
+
toggleAnnotator: Kr,
|
|
1438
|
+
toggleFullscreen: Ur,
|
|
1439
|
+
copyAlt: ni
|
|
1440
|
+
}), (e, t) => rr.value ? (T(), y("div", {
|
|
1450
1441
|
key: 0,
|
|
1451
1442
|
id: `${K.value}_${F.value}`,
|
|
1452
1443
|
ref_key: "quickChart",
|
|
1453
1444
|
ref: P,
|
|
1454
|
-
class:
|
|
1445
|
+
class: S({
|
|
1455
1446
|
"vue-data-ui-component": !0,
|
|
1456
1447
|
"vue-ui-quick-chart": !0,
|
|
1457
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1448
|
+
"vue-data-ui-wrapper-fullscreen": Hr.value
|
|
1458
1449
|
}),
|
|
1459
|
-
style:
|
|
1460
|
-
onMouseenter: t[2] ||= () =>
|
|
1461
|
-
onMouseleave: t[3] ||= () =>
|
|
1450
|
+
style: w(`background:${B.value.backgroundColor};color:${B.value.color};font-family:${B.value.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
|
|
1451
|
+
onMouseenter: t[2] ||= () => $n(!0),
|
|
1452
|
+
onMouseleave: t[3] ||= () => $n(!1)
|
|
1462
1453
|
}, [
|
|
1463
1454
|
b("div", {
|
|
1464
1455
|
id: `chart-instructions-${F.value}`,
|
|
1465
1456
|
class: "sr-only"
|
|
1466
|
-
}, [b("p", null,
|
|
1467
|
-
|
|
1457
|
+
}, [b("p", null, k(B.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
|
|
1458
|
+
li.value.rows.length ? (T(), De(Se, {
|
|
1468
1459
|
key: 0,
|
|
1469
1460
|
uid: F.value,
|
|
1470
|
-
head:
|
|
1471
|
-
body:
|
|
1461
|
+
head: li.value.headers,
|
|
1462
|
+
body: li.value.rows,
|
|
1472
1463
|
notice: B.value.a11y.translations.tableAvailable,
|
|
1473
1464
|
caption: B.value.a11y.translations.tableCaption
|
|
1474
1465
|
}, null, 8, [
|
|
@@ -1478,21 +1469,21 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1478
1469
|
"notice",
|
|
1479
1470
|
"caption"
|
|
1480
1471
|
])) : v("", !0),
|
|
1481
|
-
B.value.userOptionsButtons.annotator ? (
|
|
1472
|
+
B.value.userOptionsButtons.annotator ? (T(), De(A(Ge), {
|
|
1482
1473
|
key: 1,
|
|
1483
|
-
svgRef:
|
|
1474
|
+
svgRef: A(Jn),
|
|
1484
1475
|
backgroundColor: B.value.backgroundColor,
|
|
1485
1476
|
color: B.value.color,
|
|
1486
|
-
active:
|
|
1487
|
-
isCursorPointer:
|
|
1488
|
-
onClose:
|
|
1477
|
+
active: Gr.value,
|
|
1478
|
+
isCursorPointer: Hn.value,
|
|
1479
|
+
onClose: Kr
|
|
1489
1480
|
}, {
|
|
1490
|
-
"annotator-action-close":
|
|
1491
|
-
"annotator-action-color":
|
|
1492
|
-
"annotator-action-draw":
|
|
1493
|
-
"annotator-action-undo":
|
|
1494
|
-
"annotator-action-redo":
|
|
1495
|
-
"annotator-action-delete":
|
|
1481
|
+
"annotator-action-close": j(() => [O(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1482
|
+
"annotator-action-color": j(({ color: t }) => [O(e.$slots, "annotator-action-color", C(x({ color: t })), void 0, !0)]),
|
|
1483
|
+
"annotator-action-draw": j(({ mode: t }) => [O(e.$slots, "annotator-action-draw", C(x({ mode: t })), void 0, !0)]),
|
|
1484
|
+
"annotator-action-undo": j(({ disabled: t }) => [O(e.$slots, "annotator-action-undo", C(x({ disabled: t })), void 0, !0)]),
|
|
1485
|
+
"annotator-action-redo": j(({ disabled: t }) => [O(e.$slots, "annotator-action-redo", C(x({ disabled: t })), void 0, !0)]),
|
|
1486
|
+
"annotator-action-delete": j(({ disabled: t }) => [O(e.$slots, "annotator-action-delete", C(x({ disabled: t })), void 0, !0)]),
|
|
1496
1487
|
_: 3
|
|
1497
1488
|
}, 8, [
|
|
1498
1489
|
"svgRef",
|
|
@@ -1501,20 +1492,20 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1501
1492
|
"active",
|
|
1502
1493
|
"isCursorPointer"
|
|
1503
1494
|
])) : v("", !0),
|
|
1504
|
-
|
|
1495
|
+
cr.value ? (T(), y("div", {
|
|
1505
1496
|
key: 2,
|
|
1506
1497
|
ref_key: "noTitle",
|
|
1507
|
-
ref:
|
|
1498
|
+
ref: Mn,
|
|
1508
1499
|
class: "vue-data-ui-no-title-space",
|
|
1509
1500
|
style: "height:36px; width: 100%;background:transparent"
|
|
1510
1501
|
}, null, 512)) : v("", !0),
|
|
1511
|
-
B.value.showUserOptions && (
|
|
1502
|
+
B.value.showUserOptions && (Xn.value || Zn.value) ? (T(), De(A(qe), {
|
|
1512
1503
|
ref: "details",
|
|
1513
|
-
key: `user_option_${
|
|
1504
|
+
key: `user_option_${Nn.value}`,
|
|
1514
1505
|
backgroundColor: B.value.backgroundColor,
|
|
1515
1506
|
color: B.value.color,
|
|
1516
|
-
isPrinting:
|
|
1517
|
-
isImaging:
|
|
1507
|
+
isPrinting: A(ir),
|
|
1508
|
+
isImaging: A(ar),
|
|
1518
1509
|
uid: F.value,
|
|
1519
1510
|
hasTooltip: B.value.userOptionsButtons.tooltip && B.value.showTooltip,
|
|
1520
1511
|
hasPdf: B.value.userOptionsButtons.pdf,
|
|
@@ -1523,28 +1514,28 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1523
1514
|
hasFullscreen: B.value.userOptionsButtons.fullscreen,
|
|
1524
1515
|
hasAltCopy: B.value.userOptionsButtons.altCopy,
|
|
1525
1516
|
hasXls: !1,
|
|
1526
|
-
isTooltip:
|
|
1527
|
-
isFullscreen:
|
|
1517
|
+
isTooltip: lr.value.showTooltip,
|
|
1518
|
+
isFullscreen: Hr.value,
|
|
1528
1519
|
titles: { ...B.value.userOptionsButtonTitles },
|
|
1529
1520
|
chartElement: P.value,
|
|
1530
1521
|
position: B.value.userOptionsPosition,
|
|
1531
1522
|
hasAnnotator: B.value.userOptionsButtons.annotator,
|
|
1532
|
-
isAnnotation:
|
|
1523
|
+
isAnnotation: Gr.value,
|
|
1533
1524
|
callbacks: B.value.userOptionsCallbacks,
|
|
1534
1525
|
printScale: B.value.userOptionsPrint.scale,
|
|
1535
|
-
isCursorPointer:
|
|
1536
|
-
onToggleFullscreen:
|
|
1537
|
-
onGeneratePdf:
|
|
1538
|
-
onGenerateImage:
|
|
1539
|
-
onGenerateSvg:
|
|
1540
|
-
onToggleTooltip:
|
|
1541
|
-
onToggleAnnotator:
|
|
1542
|
-
onCopyAlt:
|
|
1543
|
-
style:
|
|
1544
|
-
},
|
|
1526
|
+
isCursorPointer: Hn.value,
|
|
1527
|
+
onToggleFullscreen: Ur,
|
|
1528
|
+
onGeneratePdf: A(or),
|
|
1529
|
+
onGenerateImage: A(sr),
|
|
1530
|
+
onGenerateSvg: ti,
|
|
1531
|
+
onToggleTooltip: Wr,
|
|
1532
|
+
onToggleAnnotator: Kr,
|
|
1533
|
+
onCopyAlt: ni,
|
|
1534
|
+
style: w({ visibility: Xn.value ? Zn.value ? "visible" : "hidden" : "visible" })
|
|
1535
|
+
}, Oe({ _: 2 }, [
|
|
1545
1536
|
e.$slots.menuIcon ? {
|
|
1546
1537
|
name: "menuIcon",
|
|
1547
|
-
fn:
|
|
1538
|
+
fn: j(({ isOpen: t, color: n }) => [O(e.$slots, "menuIcon", C(x({
|
|
1548
1539
|
isOpen: t,
|
|
1549
1540
|
color: n
|
|
1550
1541
|
})), void 0, !0)]),
|
|
@@ -1552,27 +1543,27 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1552
1543
|
} : void 0,
|
|
1553
1544
|
e.$slots.optionTooltip ? {
|
|
1554
1545
|
name: "optionTooltip",
|
|
1555
|
-
fn:
|
|
1546
|
+
fn: j(() => [O(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1556
1547
|
key: "1"
|
|
1557
1548
|
} : void 0,
|
|
1558
1549
|
e.$slots.optionPdf ? {
|
|
1559
1550
|
name: "optionPdf",
|
|
1560
|
-
fn:
|
|
1551
|
+
fn: j(() => [O(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1561
1552
|
key: "2"
|
|
1562
1553
|
} : void 0,
|
|
1563
1554
|
e.$slots.optionImg ? {
|
|
1564
1555
|
name: "optionImg",
|
|
1565
|
-
fn:
|
|
1556
|
+
fn: j(() => [O(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1566
1557
|
key: "3"
|
|
1567
1558
|
} : void 0,
|
|
1568
1559
|
e.$slots.optionSvg ? {
|
|
1569
1560
|
name: "optionSvg",
|
|
1570
|
-
fn:
|
|
1561
|
+
fn: j(() => [O(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1571
1562
|
key: "4"
|
|
1572
1563
|
} : void 0,
|
|
1573
1564
|
e.$slots.optionFullscreen ? {
|
|
1574
1565
|
name: "optionFullscreen",
|
|
1575
|
-
fn:
|
|
1566
|
+
fn: j(({ toggleFullscreen: t, isFullscreen: n }) => [O(e.$slots, "optionFullscreen", C(x({
|
|
1576
1567
|
toggleFullscreen: t,
|
|
1577
1568
|
isFullscreen: n
|
|
1578
1569
|
})), void 0, !0)]),
|
|
@@ -1580,7 +1571,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1580
1571
|
} : void 0,
|
|
1581
1572
|
e.$slots.optionAnnotator ? {
|
|
1582
1573
|
name: "optionAnnotator",
|
|
1583
|
-
fn:
|
|
1574
|
+
fn: j(({ toggleAnnotator: t, isAnnotator: n }) => [O(e.$slots, "optionAnnotator", C(x({
|
|
1584
1575
|
toggleAnnotator: t,
|
|
1585
1576
|
isAnnotator: n
|
|
1586
1577
|
})), void 0, !0)]),
|
|
@@ -1588,17 +1579,17 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1588
1579
|
} : void 0,
|
|
1589
1580
|
e.$slots.optionAltCopy ? {
|
|
1590
1581
|
name: "optionAltCopy",
|
|
1591
|
-
fn:
|
|
1582
|
+
fn: j(({ altCopy: t }) => [O(e.$slots, "optionAltCopy", C(x({ altCopy: t })), void 0, !0)]),
|
|
1592
1583
|
key: "7"
|
|
1593
1584
|
} : void 0,
|
|
1594
1585
|
e.$slots["custom-menu-before"] ? {
|
|
1595
1586
|
name: "custom-menu-before",
|
|
1596
|
-
fn:
|
|
1587
|
+
fn: j(() => [O(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1597
1588
|
key: "8"
|
|
1598
1589
|
} : void 0,
|
|
1599
1590
|
e.$slots["custom-menu-after"] ? {
|
|
1600
1591
|
name: "custom-menu-after",
|
|
1601
|
-
fn:
|
|
1592
|
+
fn: j(() => [O(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1602
1593
|
key: "9"
|
|
1603
1594
|
} : void 0
|
|
1604
1595
|
]), 1032, [
|
|
@@ -1627,52 +1618,52 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1627
1618
|
"onGenerateImage",
|
|
1628
1619
|
"style"
|
|
1629
1620
|
])) : v("", !0),
|
|
1630
|
-
B.value.title ? (
|
|
1621
|
+
B.value.title ? (T(), y("div", {
|
|
1631
1622
|
key: 4,
|
|
1632
1623
|
ref_key: "quickChartTitle",
|
|
1633
|
-
ref:
|
|
1624
|
+
ref: En,
|
|
1634
1625
|
class: "vue-ui-quick-chart-title",
|
|
1635
|
-
style:
|
|
1636
|
-
},
|
|
1637
|
-
b("div", { id: `legend-top-${F.value}` }, null, 8,
|
|
1638
|
-
b("div",
|
|
1626
|
+
style: w(`background:transparent;color:${B.value.color};font-size:${B.value.titleFontSize}px;font-weight:${B.value.titleBold ? "bold" : "normal"};text-align:${B.value.titleTextAlign}`)
|
|
1627
|
+
}, k(B.value.title), 5)) : v("", !0),
|
|
1628
|
+
b("div", { id: `legend-top-${F.value}` }, null, 8, et),
|
|
1629
|
+
b("div", tt, [K.value ? (T(), y("svg", {
|
|
1639
1630
|
key: 0,
|
|
1640
1631
|
ref_key: "svgRef",
|
|
1641
|
-
ref:
|
|
1642
|
-
xmlns:
|
|
1632
|
+
ref: Jn,
|
|
1633
|
+
xmlns: A(ae),
|
|
1643
1634
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1644
|
-
viewBox:
|
|
1645
|
-
style:
|
|
1635
|
+
viewBox: pr.value,
|
|
1636
|
+
style: w(`max-width:100%;overflow:visible;background:transparent;color:${B.value.color}`),
|
|
1646
1637
|
tabindex: "0",
|
|
1647
|
-
onFocus:
|
|
1648
|
-
onBlur:
|
|
1649
|
-
onKeydown:
|
|
1638
|
+
onFocus: ai,
|
|
1639
|
+
onBlur: oi,
|
|
1640
|
+
onKeydown: si
|
|
1650
1641
|
}, [
|
|
1651
|
-
|
|
1652
|
-
e.$slots["chart-background"] && K.value ===
|
|
1642
|
+
ke(A(He)),
|
|
1643
|
+
e.$slots["chart-background"] && K.value === M.BAR ? (T(), y("foreignObject", {
|
|
1653
1644
|
key: 0,
|
|
1654
1645
|
x: Q.value.drawingArea.left,
|
|
1655
1646
|
y: Q.value.drawingArea.top,
|
|
1656
1647
|
width: Q.value.drawingArea.width,
|
|
1657
1648
|
height: Q.value.drawingArea.height,
|
|
1658
1649
|
style: { pointerEvents: "none" }
|
|
1659
|
-
}, [
|
|
1660
|
-
e.$slots["chart-background"] && K.value ===
|
|
1650
|
+
}, [O(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : v("", !0),
|
|
1651
|
+
e.$slots["chart-background"] && K.value === M.LINE ? (T(), y("foreignObject", {
|
|
1661
1652
|
key: 1,
|
|
1662
1653
|
x: Z.value.drawingArea.left,
|
|
1663
1654
|
y: Z.value.drawingArea.top,
|
|
1664
1655
|
width: Z.value.drawingArea.width,
|
|
1665
1656
|
height: Z.value.drawingArea.height,
|
|
1666
1657
|
style: { pointerEvents: "none" }
|
|
1667
|
-
}, [
|
|
1668
|
-
e.$slots["chart-background"] && K.value ===
|
|
1658
|
+
}, [O(e.$slots, "chart-background", {}, void 0, !0)], 8, it)) : v("", !0),
|
|
1659
|
+
e.$slots["chart-background"] && K.value === M.DONUT ? (T(), y("foreignObject", {
|
|
1669
1660
|
key: 2,
|
|
1670
1661
|
x: 0,
|
|
1671
1662
|
y: 0,
|
|
1672
1663
|
width: q.value.width,
|
|
1673
1664
|
height: q.value.height,
|
|
1674
1665
|
style: { pointerEvents: "none" }
|
|
1675
|
-
}, [
|
|
1666
|
+
}, [O(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : v("", !0),
|
|
1676
1667
|
b("defs", null, [b("filter", {
|
|
1677
1668
|
id: `blur_${F.value}`,
|
|
1678
1669
|
x: "-50%",
|
|
@@ -1683,10 +1674,10 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1683
1674
|
in: "SourceGraphic",
|
|
1684
1675
|
stdDeviation: 2,
|
|
1685
1676
|
id: `blur_std_${F.value}`
|
|
1686
|
-
}, null, 8,
|
|
1677
|
+
}, null, 8, st), t[4] ||= b("feColorMatrix", {
|
|
1687
1678
|
type: "saturate",
|
|
1688
1679
|
values: "0"
|
|
1689
|
-
}, null, -1)], 8,
|
|
1680
|
+
}, null, -1)], 8, ot), b("filter", {
|
|
1690
1681
|
id: `shadow_${F.value}`,
|
|
1691
1682
|
"color-interpolation-filters": "sRGB"
|
|
1692
1683
|
}, [b("feDropShadow", {
|
|
@@ -1695,35 +1686,35 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1695
1686
|
stdDeviation: "10",
|
|
1696
1687
|
"flood-opacity": "0.5",
|
|
1697
1688
|
"flood-color": B.value.donutShadowColor
|
|
1698
|
-
}, null, 8,
|
|
1699
|
-
K.value ===
|
|
1700
|
-
B.value.showDataLabels ? (
|
|
1689
|
+
}, null, 8, lt)], 8, ct)]),
|
|
1690
|
+
K.value === M.DONUT ? (T(), y(g, { key: 3 }, [
|
|
1691
|
+
B.value.showDataLabels ? (T(), y("g", ut, [(T(!0), y(g, null, D(Y.value.chart, (e, t) => (T(), y(g, null, [Y.value.isArcBigEnough(e) ? (T(), y("path", {
|
|
1701
1692
|
key: 0,
|
|
1702
|
-
d:
|
|
1693
|
+
d: A(ne)(e, {
|
|
1703
1694
|
x: q.value.width / 2,
|
|
1704
1695
|
y: q.value.height / 2
|
|
1705
|
-
}, 16, 16, !1, !1, q.value.height *
|
|
1696
|
+
}, 16, 16, !1, !1, q.value.height * Cr.value, 12, B.value.donutCurvedMarkers),
|
|
1706
1697
|
stroke: e.color,
|
|
1707
1698
|
"stroke-width": B.value.donutLabelMarkerStrokeWidth,
|
|
1708
1699
|
"stroke-linecap": "round",
|
|
1709
1700
|
"stroke-linejoin": "round",
|
|
1710
1701
|
fill: "none",
|
|
1711
|
-
filter:
|
|
1712
|
-
}, null, 8,
|
|
1702
|
+
filter: hr(e.id)
|
|
1703
|
+
}, null, 8, dt)) : v("", !0)], 64))), 256))])) : v("", !0),
|
|
1713
1704
|
b("circle", {
|
|
1714
1705
|
cx: Y.value.cx,
|
|
1715
1706
|
cy: Y.value.cy,
|
|
1716
1707
|
r: Y.value.radius,
|
|
1717
1708
|
fill: B.value.backgroundColor,
|
|
1718
1709
|
filter: B.value.donutUseShadow ? `url(#shadow_${F.value})` : ""
|
|
1719
|
-
}, null, 8,
|
|
1720
|
-
b("g",
|
|
1710
|
+
}, null, 8, ft),
|
|
1711
|
+
b("g", pt, [(T(!0), y(g, null, D(Y.value.chart, (e, t) => (T(), y("path", {
|
|
1721
1712
|
d: e.arcSlice,
|
|
1722
1713
|
fill: e.color,
|
|
1723
1714
|
stroke: B.value.donutStroke || B.value.backgroundColor,
|
|
1724
1715
|
"stroke-width": B.value.donutStrokeWidth,
|
|
1725
|
-
filter:
|
|
1726
|
-
}, null, 8,
|
|
1716
|
+
filter: hr(e.id)
|
|
1717
|
+
}, null, 8, mt))), 256)), (T(!0), y(g, null, D(Y.value.chart, (e, t) => (T(), y("path", {
|
|
1727
1718
|
d: e.arcSlice,
|
|
1728
1719
|
fill: "transparent",
|
|
1729
1720
|
onMouseenter: (n) => Y.value.useTooltip({
|
|
@@ -1739,27 +1730,27 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1739
1730
|
datapoint: e,
|
|
1740
1731
|
seriesIndex: t
|
|
1741
1732
|
})
|
|
1742
|
-
}, null, 40,
|
|
1743
|
-
B.value.showDataLabels ? (
|
|
1744
|
-
Y.value.isArcBigEnough(e) ? (
|
|
1733
|
+
}, null, 40, ht))), 256))]),
|
|
1734
|
+
B.value.showDataLabels ? (T(), y("g", gt, [(T(!0), y(g, null, D(Y.value.chart, (e, t) => (T(), y(g, null, [
|
|
1735
|
+
Y.value.isArcBigEnough(e) ? (T(), y("circle", {
|
|
1745
1736
|
key: 0,
|
|
1746
|
-
cx:
|
|
1747
|
-
cy:
|
|
1737
|
+
cx: A(d)(e).x,
|
|
1738
|
+
cy: A(p)(e) - 3.7,
|
|
1748
1739
|
fill: e.color,
|
|
1749
1740
|
stroke: B.value.backgroundColor,
|
|
1750
1741
|
"stroke-width": 1,
|
|
1751
1742
|
r: 3,
|
|
1752
|
-
filter:
|
|
1753
|
-
}, null, 8,
|
|
1754
|
-
Y.value.isArcBigEnough(e) ? (
|
|
1743
|
+
filter: hr(e.id)
|
|
1744
|
+
}, null, 8, _t)) : v("", !0),
|
|
1745
|
+
Y.value.isArcBigEnough(e) ? (T(), y("text", {
|
|
1755
1746
|
key: 1,
|
|
1756
|
-
"text-anchor":
|
|
1757
|
-
x:
|
|
1758
|
-
y:
|
|
1747
|
+
"text-anchor": A(d)(e, !0, 20).anchor,
|
|
1748
|
+
x: A(d)(e, !0).x,
|
|
1749
|
+
y: A(p)(e),
|
|
1759
1750
|
fill: B.value.color,
|
|
1760
1751
|
"font-size": B.value.dataLabelFontSize,
|
|
1761
|
-
filter:
|
|
1762
|
-
},
|
|
1752
|
+
filter: hr(e.id)
|
|
1753
|
+
}, k(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + k(A(m)(B.value.formatter, e.value, A(u)({
|
|
1763
1754
|
p: B.value.valuePrefix,
|
|
1764
1755
|
v: e.value,
|
|
1765
1756
|
s: B.value.valueSuffix,
|
|
@@ -1767,38 +1758,38 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1767
1758
|
}), {
|
|
1768
1759
|
datapoint: e,
|
|
1769
1760
|
seriesIndex: t
|
|
1770
|
-
})) + ") ", 9,
|
|
1771
|
-
Y.value.isArcBigEnough(e, !0, 20) ? (
|
|
1761
|
+
})) + ") ", 9, vt)) : v("", !0),
|
|
1762
|
+
Y.value.isArcBigEnough(e, !0, 20) ? (T(), y("text", {
|
|
1772
1763
|
key: 2,
|
|
1773
|
-
"text-anchor":
|
|
1774
|
-
x:
|
|
1775
|
-
y:
|
|
1764
|
+
"text-anchor": A(d)(e).anchor,
|
|
1765
|
+
x: A(d)(e, !0).x,
|
|
1766
|
+
y: A(p)(e) + B.value.dataLabelFontSize,
|
|
1776
1767
|
fill: B.value.color,
|
|
1777
1768
|
"font-size": B.value.dataLabelFontSize,
|
|
1778
|
-
filter:
|
|
1779
|
-
},
|
|
1769
|
+
filter: hr(e.id)
|
|
1770
|
+
}, k(e.name), 9, yt)) : v("", !0)
|
|
1780
1771
|
], 64))), 256))])) : v("", !0),
|
|
1781
|
-
B.value.donutShowTotal ? (
|
|
1772
|
+
B.value.donutShowTotal ? (T(), y("g", bt, [b("text", {
|
|
1782
1773
|
"text-anchor": "middle",
|
|
1783
1774
|
x: Y.value.drawingArea.centerX,
|
|
1784
1775
|
y: Y.value.drawingArea.centerY - B.value.donutTotalLabelFontSize / 2,
|
|
1785
1776
|
"font-size": B.value.donutTotalLabelFontSize,
|
|
1786
1777
|
fill: B.value.color
|
|
1787
|
-
},
|
|
1778
|
+
}, k(B.value.donutTotalLabelText), 9, xt), b("text", {
|
|
1788
1779
|
"text-anchor": "middle",
|
|
1789
1780
|
x: Y.value.drawingArea.centerX,
|
|
1790
1781
|
y: Y.value.drawingArea.centerY + B.value.donutTotalLabelFontSize,
|
|
1791
1782
|
"font-size": B.value.donutTotalLabelFontSize,
|
|
1792
1783
|
fill: B.value.color
|
|
1793
|
-
},
|
|
1784
|
+
}, k(A(u)({
|
|
1794
1785
|
p: B.value.valuePrefix,
|
|
1795
1786
|
v: Y.value.total,
|
|
1796
1787
|
s: B.value.valueSuffix,
|
|
1797
1788
|
r: B.value.dataLabelRoundingValue
|
|
1798
|
-
})), 9,
|
|
1789
|
+
})), 9, St)])) : v("", !0)
|
|
1799
1790
|
], 64)) : v("", !0),
|
|
1800
|
-
K.value ===
|
|
1801
|
-
B.value.xyShowGrid ? (
|
|
1791
|
+
K.value === M.LINE ? (T(), y(g, { key: 4 }, [
|
|
1792
|
+
B.value.xyShowGrid ? (T(), y("g", Ct, [(T(!0), y(g, null, D(Z.value.yLabels, (e) => (T(), y(g, null, [e.y <= Z.value.drawingArea.bottom ? (T(), y("line", {
|
|
1802
1793
|
key: 0,
|
|
1803
1794
|
x1: Z.value.drawingArea.left,
|
|
1804
1795
|
x2: Z.value.drawingArea.right,
|
|
@@ -1807,7 +1798,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1807
1798
|
stroke: B.value.xyGridStroke,
|
|
1808
1799
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
1809
1800
|
"stroke-linecap": "round"
|
|
1810
|
-
}, null, 8,
|
|
1801
|
+
}, null, 8, wt)) : v("", !0)], 64))), 256)), (T(!0), y(g, null, D(Z.value.extremes.maxSeries + 1, (e, t) => (T(), y("line", {
|
|
1811
1802
|
x1: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1812
1803
|
x2: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1813
1804
|
y1: Z.value.drawingArea.top,
|
|
@@ -1815,8 +1806,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1815
1806
|
stroke: B.value.xyGridStroke,
|
|
1816
1807
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
1817
1808
|
"stroke-linecap": "round"
|
|
1818
|
-
}, null, 8,
|
|
1819
|
-
B.value.xyShowAxis ? (
|
|
1809
|
+
}, null, 8, Tt))), 256))])) : v("", !0),
|
|
1810
|
+
B.value.xyShowAxis ? (T(), y("g", Et, [b("line", {
|
|
1820
1811
|
x1: Z.value.drawingArea.left,
|
|
1821
1812
|
x2: Z.value.drawingArea.left,
|
|
1822
1813
|
y1: Z.value.drawingArea.top,
|
|
@@ -1824,7 +1815,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1824
1815
|
stroke: B.value.xyAxisStroke,
|
|
1825
1816
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1826
1817
|
"stroke-linecap": "round"
|
|
1827
|
-
}, null, 8,
|
|
1818
|
+
}, null, 8, Dt), b("line", {
|
|
1828
1819
|
x1: Z.value.drawingArea.left,
|
|
1829
1820
|
x2: Z.value.drawingArea.right,
|
|
1830
1821
|
y1: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
|
|
@@ -1832,29 +1823,27 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1832
1823
|
stroke: B.value.xyAxisStroke,
|
|
1833
1824
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1834
1825
|
"stroke-linecap": "round"
|
|
1835
|
-
}, null, 8,
|
|
1836
|
-
B.value.xyShowScale ? (
|
|
1826
|
+
}, null, 8, Ot)])) : v("", !0),
|
|
1827
|
+
B.value.xyShowScale ? (T(), y("g", {
|
|
1837
1828
|
key: 2,
|
|
1838
1829
|
class: "yLabels",
|
|
1839
1830
|
ref_key: "scaleLabels",
|
|
1840
|
-
ref:
|
|
1841
|
-
}, [(
|
|
1831
|
+
ref: Rn
|
|
1832
|
+
}, [(T(!0), y(g, null, D(Z.value.yLabels, (e, t) => (T(), y(g, { key: `sl_${t}` }, [e.y <= Z.value.drawingArea.bottom ? (T(), y("path", {
|
|
1842
1833
|
key: 0,
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
y1: e.y,
|
|
1846
|
-
y2: e.y,
|
|
1834
|
+
class: S({ "vue-data-ui-datalabel": A(Ze) }),
|
|
1835
|
+
d: `M${e.x + 4},${e.y} ${Z.value.drawingArea.left},${e.y}`,
|
|
1847
1836
|
stroke: B.value.xyAxisStroke,
|
|
1848
1837
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1849
1838
|
"stroke-linecap": "round"
|
|
1850
|
-
}, null,
|
|
1839
|
+
}, null, 10, kt)) : v("", !0), e.y <= Z.value.drawingArea.bottom ? (T(), y("text", {
|
|
1851
1840
|
key: 1,
|
|
1852
|
-
|
|
1853
|
-
|
|
1841
|
+
class: S({ "vue-data-ui-datalabel": A(Ze) }),
|
|
1842
|
+
transform: `translate(${e.x}, ${e.y + B.value.xyLabelsYFontSize / 3})`,
|
|
1854
1843
|
"text-anchor": "end",
|
|
1855
1844
|
"font-size": B.value.xyLabelsYFontSize,
|
|
1856
1845
|
fill: B.value.color
|
|
1857
|
-
},
|
|
1846
|
+
}, k(A(m)(B.value.formatter, e.value, A(u)({
|
|
1858
1847
|
p: B.value.valuePrefix,
|
|
1859
1848
|
v: e.value,
|
|
1860
1849
|
s: B.value.valueSuffix,
|
|
@@ -1862,8 +1851,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1862
1851
|
}), {
|
|
1863
1852
|
datapoint: e,
|
|
1864
1853
|
seriesIndex: t
|
|
1865
|
-
})),
|
|
1866
|
-
B.value.xyShowScale && B.value.xyPeriods.length ? (
|
|
1854
|
+
})), 11, At)) : v("", !0)], 64))), 128))], 512)) : v("", !0),
|
|
1855
|
+
B.value.xyShowScale && B.value.xyPeriods.length ? (T(), y("g", jt, [(T(!0), y(g, null, D($.value.map((e) => e.text), (e, t) => (T(), y(g, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Vr.value) === 0 || X.value.end - X.value.start <= Vr.value ? (T(), y("line", {
|
|
1867
1856
|
key: 0,
|
|
1868
1857
|
x1: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
1869
1858
|
x2: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
@@ -1872,134 +1861,132 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
1872
1861
|
stroke: B.value.xyAxisStroke,
|
|
1873
1862
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1874
1863
|
"stroke-linecap": "round"
|
|
1875
|
-
}, null, 8,
|
|
1864
|
+
}, null, 8, Mt)) : v("", !0)], 64))), 256)), b("g", {
|
|
1876
1865
|
ref_key: "timeLabelsEls",
|
|
1877
1866
|
ref: z
|
|
1878
|
-
}, [(
|
|
1867
|
+
}, [(T(!0), y(g, null, D($.value.map((e) => e.text), (e, t) => (T(), y(g, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Vr.value) === 0 || X.value.end - X.value.start <= Vr.value ? (T(), y("g", Nt, [String(e).includes("\n") ? (T(), y("text", {
|
|
1879
1868
|
key: 1,
|
|
1880
1869
|
class: "vue-data-ui-time-label",
|
|
1881
1870
|
"font-size": B.value.xyLabelsXFontSize,
|
|
1882
1871
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1883
1872
|
fill: B.value.color,
|
|
1884
1873
|
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`,
|
|
1885
|
-
innerHTML:
|
|
1874
|
+
innerHTML: A(l)({
|
|
1886
1875
|
content: String(e),
|
|
1887
1876
|
fontSize: B.value.xyLabelsXFontSize,
|
|
1888
1877
|
fill: B.value.color,
|
|
1889
1878
|
x: 0,
|
|
1890
1879
|
y: 0
|
|
1891
1880
|
})
|
|
1892
|
-
}, null, 8,
|
|
1881
|
+
}, null, 8, Ft)) : (T(), y("text", {
|
|
1893
1882
|
key: 0,
|
|
1894
1883
|
class: "vue-data-ui-time-label",
|
|
1895
1884
|
"font-size": B.value.xyLabelsXFontSize,
|
|
1896
1885
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1897
1886
|
fill: B.value.color,
|
|
1898
1887
|
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`
|
|
1899
|
-
},
|
|
1900
|
-
b("g",
|
|
1888
|
+
}, k(e), 9, Pt))])) : v("", !0)], 64))), 256))], 512)])) : v("", !0),
|
|
1889
|
+
b("g", It, [(T(!0), y(g, null, D(Z.value.dataset, (e, t) => (T(), y("g", {
|
|
1890
|
+
key: `serie_${e.id}`,
|
|
1891
|
+
class: "line-plot-series"
|
|
1892
|
+
}, [B.value.lineSmooth ? (T(), y(g, { key: 0 }, [b("path", {
|
|
1901
1893
|
ref_for: !0,
|
|
1902
1894
|
ref_key: "pathWrapper",
|
|
1903
|
-
ref:
|
|
1904
|
-
d: `M ${
|
|
1895
|
+
ref: In,
|
|
1896
|
+
d: `M ${A(o)(e.coordinates)}`,
|
|
1905
1897
|
stroke: B.value.backgroundColor,
|
|
1906
1898
|
"stroke-width": B.value.lineStrokeWidth + 1,
|
|
1907
1899
|
"stroke-linecap": "round",
|
|
1908
1900
|
fill: "none",
|
|
1909
|
-
class:
|
|
1910
|
-
"quick-animation": !
|
|
1911
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1901
|
+
class: S({
|
|
1902
|
+
"quick-animation": !A(U),
|
|
1903
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !A(U)
|
|
1912
1904
|
}),
|
|
1913
|
-
style:
|
|
1914
|
-
}, null, 14,
|
|
1905
|
+
style: w({ transition: A(U) ? void 0 : "all 0.2s ease-in-out" })
|
|
1906
|
+
}, null, 14, Lt), b("path", {
|
|
1915
1907
|
ref_for: !0,
|
|
1916
1908
|
ref_key: "pathTop",
|
|
1917
|
-
ref:
|
|
1918
|
-
d: `M ${
|
|
1909
|
+
ref: Ln,
|
|
1910
|
+
d: `M ${A(o)(e.coordinates)}`,
|
|
1919
1911
|
stroke: e.color,
|
|
1920
1912
|
"stroke-width": B.value.lineStrokeWidth,
|
|
1921
1913
|
"stroke-linecap": "round",
|
|
1922
1914
|
fill: "none",
|
|
1923
|
-
class:
|
|
1924
|
-
"quick-animation": !
|
|
1925
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1915
|
+
class: S({
|
|
1916
|
+
"quick-animation": !A(U),
|
|
1917
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !A(U)
|
|
1926
1918
|
}),
|
|
1927
|
-
style:
|
|
1928
|
-
}, null, 14,
|
|
1919
|
+
style: w({ transition: A(U) ? void 0 : "all 0.2s ease-in-out" })
|
|
1920
|
+
}, null, 14, Rt)], 64)) : (T(), y(g, { key: 1 }, [b("path", {
|
|
1929
1921
|
ref_for: !0,
|
|
1930
1922
|
ref_key: "pathWrapper",
|
|
1931
|
-
ref:
|
|
1923
|
+
ref: In,
|
|
1932
1924
|
d: `M ${e.linePath}`,
|
|
1933
1925
|
stroke: B.value.backgroundColor,
|
|
1934
1926
|
"stroke-width": B.value.lineStrokeWidth + 1,
|
|
1935
1927
|
"stroke-linecap": "round",
|
|
1936
1928
|
fill: "none",
|
|
1937
|
-
class:
|
|
1938
|
-
"quick-animation": !
|
|
1939
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1929
|
+
class: S({
|
|
1930
|
+
"quick-animation": !A(U),
|
|
1931
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !A(U)
|
|
1940
1932
|
}),
|
|
1941
|
-
style:
|
|
1942
|
-
}, null, 14,
|
|
1933
|
+
style: w({ transition: A(U) ? void 0 : "all 0.2s ease-in-out" })
|
|
1934
|
+
}, null, 14, zt), b("path", {
|
|
1943
1935
|
ref_for: !0,
|
|
1944
1936
|
ref_key: "pathTop",
|
|
1945
|
-
ref:
|
|
1937
|
+
ref: Ln,
|
|
1946
1938
|
d: `M ${e.linePath}`,
|
|
1947
1939
|
stroke: e.color,
|
|
1948
1940
|
"stroke-width": B.value.lineStrokeWidth,
|
|
1949
1941
|
"stroke-linecap": "round",
|
|
1950
1942
|
fill: "none",
|
|
1951
|
-
class:
|
|
1952
|
-
"quick-animation": !
|
|
1953
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1943
|
+
class: S({
|
|
1944
|
+
"quick-animation": !A(U),
|
|
1945
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !A(U)
|
|
1954
1946
|
}),
|
|
1955
|
-
style:
|
|
1956
|
-
}, null, 14,
|
|
1947
|
+
style: w({ transition: A(U) ? void 0 : "all 0.2s ease-in-out" })
|
|
1948
|
+
}, null, 14, Bt)], 64)), (T(!0), y(g, null, D(e.coordinates, (t, n) => (T(), y("circle", {
|
|
1949
|
+
key: `dp_${e.id}_${n + X.value.start}`,
|
|
1957
1950
|
cx: t.x,
|
|
1958
|
-
cy:
|
|
1951
|
+
cy: A(h)(t.y),
|
|
1959
1952
|
r: 3,
|
|
1960
1953
|
fill: e.color,
|
|
1961
1954
|
stroke: B.value.backgroundColor,
|
|
1962
1955
|
"stroke-width": "0.5",
|
|
1963
|
-
class:
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
B.value.showDataLabels ? (w(), y("g", Vt, [(w(!0), y(g, null, E(Z.value.dataset, (e, t) => (w(), y(g, null, [(w(!0), y(g, null, E(e.coordinates, (t, n) => (w(), y("text", {
|
|
1956
|
+
class: S({ "vue-ui-quick-chart-plot": !0 }),
|
|
1957
|
+
style: w({ transition: A(U) ? void 0 : "all 0.2s ease-in-out" })
|
|
1958
|
+
}, null, 12, Vt))), 128))]))), 128))]),
|
|
1959
|
+
B.value.showDataLabels ? (T(), y("g", Ht, [(T(!0), y(g, null, D(Z.value.dataset, (e, t) => (T(), y(g, { key: `ds_${e.id}` }, [(T(!0), y(g, null, D(e.coordinates, (t, n) => (T(), y("text", {
|
|
1960
|
+
class: S(["vue-ui-quick-chart-label", { "vue-data-ui-datalabel": A(Ze) }]),
|
|
1961
|
+
key: `plot_${e.id}_${n + X.value.start}`,
|
|
1970
1962
|
"text-anchor": "middle",
|
|
1971
1963
|
"font-size": B.value.dataLabelFontSize,
|
|
1972
1964
|
fill: e.color,
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
"vue-ui-quick-chart-label": !0,
|
|
1977
|
-
"quick-animation": !k(U)
|
|
1978
|
-
}),
|
|
1979
|
-
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1980
|
-
}, O(k(m)(B.value.formatter, k(h)(t.value), k(u)({
|
|
1965
|
+
transform: `translate(${t.x}, ${A(h)(t.y) - B.value.dataLabelFontSize / 2})`,
|
|
1966
|
+
style: w({ transition: A(U) ? void 0 : "all 0.2s ease-in-out" })
|
|
1967
|
+
}, k(A(m)(B.value.formatter, A(h)(t.value), A(u)({
|
|
1981
1968
|
p: B.value.valuePrefix,
|
|
1982
|
-
v:
|
|
1969
|
+
v: A(h)(t.value),
|
|
1983
1970
|
s: B.value.valueSuffix,
|
|
1984
1971
|
r: B.value.dataLabelRoundingValue
|
|
1985
1972
|
}), {
|
|
1986
1973
|
datapoint: t,
|
|
1987
1974
|
seriesIndex: n
|
|
1988
|
-
})), 15,
|
|
1989
|
-
|
|
1975
|
+
})), 15, Ut))), 128))], 64))), 128))])) : v("", !0),
|
|
1976
|
+
Qn.value ? (T(), y("g", Wt, [(T(!0), y(g, null, D(Z.value.extremes.maxSeries, (e, t) => (T(), y("rect", {
|
|
1990
1977
|
x: Z.value.drawingArea.left + t * Z.value.slotSize,
|
|
1991
1978
|
y: Z.value.drawingArea.top,
|
|
1992
1979
|
height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
|
|
1993
1980
|
width: Z.value.slotSize <= 0 ? 1e-5 : Z.value.slotSize,
|
|
1994
1981
|
fill: [L.value, J.value].includes(t) ? B.value.xyHighlighterColor : "transparent",
|
|
1995
|
-
style:
|
|
1982
|
+
style: w(`opacity:${B.value.xyHighlighterOpacity}`),
|
|
1996
1983
|
onMouseenter: (e) => Z.value.useTooltip(t, "pointer"),
|
|
1997
1984
|
onMouseleave: (e) => Z.value.killTooltip(t),
|
|
1998
1985
|
onClick: (e) => Z.value.selectDatapoint(t)
|
|
1999
|
-
}, null, 44,
|
|
1986
|
+
}, null, 44, Gt))), 256))])) : v("", !0)
|
|
2000
1987
|
], 64)) : v("", !0),
|
|
2001
|
-
K.value ===
|
|
2002
|
-
B.value.xyShowGrid ? (
|
|
1988
|
+
K.value === M.BAR ? (T(), y(g, { key: 5 }, [
|
|
1989
|
+
B.value.xyShowGrid ? (T(), y("g", Kt, [(T(!0), y(g, null, D(Q.value.yLabels, (e) => (T(), y(g, null, [e.y <= Q.value.drawingArea.bottom ? (T(), y("line", {
|
|
2003
1990
|
key: 0,
|
|
2004
1991
|
x1: Q.value.drawingArea.left,
|
|
2005
1992
|
x2: Q.value.drawingArea.right,
|
|
@@ -2008,7 +1995,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2008
1995
|
stroke: B.value.xyGridStroke,
|
|
2009
1996
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
2010
1997
|
"stroke-linecap": "round"
|
|
2011
|
-
}, null, 8,
|
|
1998
|
+
}, null, 8, qt)) : v("", !0)], 64))), 256)), R.value.length < Q.value.legend.length ? (T(!0), y(g, { key: 0 }, D(Q.value.extremes.maxSeries + 1, (e, t) => (T(), y("line", {
|
|
2012
1999
|
x1: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
2013
2000
|
x2: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
2014
2001
|
y1: Q.value.drawingArea.top,
|
|
@@ -2016,8 +2003,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2016
2003
|
stroke: B.value.xyGridStroke,
|
|
2017
2004
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
2018
2005
|
"stroke-linecap": "round"
|
|
2019
|
-
}, null, 8,
|
|
2020
|
-
B.value.xyShowAxis ? (
|
|
2006
|
+
}, null, 8, Jt))), 256)) : v("", !0)])) : v("", !0),
|
|
2007
|
+
B.value.xyShowAxis ? (T(), y("g", Yt, [b("line", {
|
|
2021
2008
|
x1: Q.value.drawingArea.left,
|
|
2022
2009
|
x2: Q.value.drawingArea.left,
|
|
2023
2010
|
y1: Q.value.drawingArea.top,
|
|
@@ -2025,7 +2012,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2025
2012
|
stroke: B.value.xyAxisStroke,
|
|
2026
2013
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2027
2014
|
"stroke-linecap": "round"
|
|
2028
|
-
}, null, 8,
|
|
2015
|
+
}, null, 8, Xt), b("line", {
|
|
2029
2016
|
x1: Q.value.drawingArea.left,
|
|
2030
2017
|
x2: Q.value.drawingArea.right,
|
|
2031
2018
|
y1: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
|
|
@@ -2033,29 +2020,27 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2033
2020
|
stroke: B.value.xyAxisStroke,
|
|
2034
2021
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2035
2022
|
"stroke-linecap": "round"
|
|
2036
|
-
}, null, 8,
|
|
2037
|
-
B.value.xyShowScale ? (
|
|
2023
|
+
}, null, 8, Zt)])) : v("", !0),
|
|
2024
|
+
B.value.xyShowScale ? (T(), y("g", {
|
|
2038
2025
|
key: 2,
|
|
2039
2026
|
class: "yLabels",
|
|
2040
2027
|
ref_key: "scaleLabels",
|
|
2041
|
-
ref:
|
|
2042
|
-
}, [(
|
|
2028
|
+
ref: Rn
|
|
2029
|
+
}, [(T(!0), y(g, null, D(Q.value.yLabels, (e, t) => (T(), y(g, { key: `sl_${t}` }, [e.y <= Q.value.drawingArea.bottom ? (T(), y("path", {
|
|
2043
2030
|
key: 0,
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
y1: e.y,
|
|
2047
|
-
y2: e.y,
|
|
2031
|
+
class: S({ "vue-data-ui-datalabel": A(Ze) }),
|
|
2032
|
+
d: `M${e.x + 4},${e.y} ${Q.value.drawingArea.left},${e.y}`,
|
|
2048
2033
|
stroke: B.value.xyAxisStroke,
|
|
2049
2034
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2050
2035
|
"stroke-linecap": "round"
|
|
2051
|
-
}, null,
|
|
2036
|
+
}, null, 10, Qt)) : v("", !0), e.y <= Q.value.drawingArea.bottom ? (T(), y("text", {
|
|
2052
2037
|
key: 1,
|
|
2053
|
-
|
|
2054
|
-
|
|
2038
|
+
class: S({ "vue-data-ui-datalabel": A(Ze) }),
|
|
2039
|
+
transform: `translate(${e.x}, ${e.y + B.value.xyLabelsYFontSize / 3})`,
|
|
2055
2040
|
"text-anchor": "end",
|
|
2056
2041
|
"font-size": B.value.xyLabelsYFontSize,
|
|
2057
2042
|
fill: B.value.color
|
|
2058
|
-
},
|
|
2043
|
+
}, k(A(m)(B.value.formatter, e.value, A(u)({
|
|
2059
2044
|
p: B.value.valuePrefix,
|
|
2060
2045
|
v: e.value,
|
|
2061
2046
|
s: B.value.valueSuffix,
|
|
@@ -2063,8 +2048,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2063
2048
|
}), {
|
|
2064
2049
|
datapoint: e,
|
|
2065
2050
|
seriesIndex: t
|
|
2066
|
-
})),
|
|
2067
|
-
B.value.xyShowScale && B.value.xyPeriods.length ? (
|
|
2051
|
+
})), 11, $t)) : v("", !0)], 64))), 128))], 512)) : v("", !0),
|
|
2052
|
+
B.value.xyShowScale && B.value.xyPeriods.length ? (T(), y("g", en, [(T(!0), y(g, null, D(B.value.xyPeriods.slice(X.value.start, X.value.end), (e, t) => (T(), y("line", {
|
|
2068
2053
|
x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2069
2054
|
x2: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2070
2055
|
y1: Q.value.drawingArea.bottom,
|
|
@@ -2072,139 +2057,138 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2072
2057
|
stroke: B.value.xyAxisStroke,
|
|
2073
2058
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2074
2059
|
"stroke-linecap": "round"
|
|
2075
|
-
}, null, 8,
|
|
2060
|
+
}, null, 8, tn))), 256)), b("g", {
|
|
2076
2061
|
ref_key: "timeLabelsEls",
|
|
2077
2062
|
ref: z
|
|
2078
|
-
}, [(
|
|
2063
|
+
}, [(T(!0), y(g, null, D($.value.map((e) => e.text), (e, t) => (T(), y(g, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Vr.value) === 0 || X.value.end - X.value.start <= Vr.value ? (T(), y("g", nn, [String(e).includes("\n") ? (T(), y("text", {
|
|
2079
2064
|
key: 1,
|
|
2080
2065
|
class: "vue-data-ui-time-label",
|
|
2081
2066
|
"font-size": B.value.xyLabelsXFontSize,
|
|
2082
2067
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2083
2068
|
fill: B.value.color,
|
|
2084
2069
|
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`,
|
|
2085
|
-
innerHTML:
|
|
2070
|
+
innerHTML: A(l)({
|
|
2086
2071
|
content: String(e),
|
|
2087
2072
|
fontSize: B.value.xyLabelsXFontSize,
|
|
2088
2073
|
fill: B.value.color,
|
|
2089
2074
|
x: 0,
|
|
2090
2075
|
y: 0
|
|
2091
2076
|
})
|
|
2092
|
-
}, null, 8,
|
|
2077
|
+
}, null, 8, an)) : (T(), y("text", {
|
|
2093
2078
|
key: 0,
|
|
2094
2079
|
class: "vue-data-ui-time-label",
|
|
2095
2080
|
"font-size": B.value.xyLabelsXFontSize,
|
|
2096
2081
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2097
2082
|
fill: B.value.color,
|
|
2098
2083
|
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`
|
|
2099
|
-
},
|
|
2100
|
-
b("g",
|
|
2084
|
+
}, k(e), 9, rn))])) : v("", !0)], 64))), 256))], 512)])) : v("", !0),
|
|
2085
|
+
b("g", on, [(T(!0), y(g, null, D(Q.value.dataset, (e, t) => (T(), y(g, null, [(T(!0), y(g, null, D(e.coordinates, (t, n) => (T(), y("rect", {
|
|
2101
2086
|
x: t.x,
|
|
2102
2087
|
width: t.width <= 0 ? 1e-5 : t.width,
|
|
2103
|
-
height:
|
|
2104
|
-
y:
|
|
2088
|
+
height: A(h)(t.height <= 0 ? 1e-5 : t.height),
|
|
2089
|
+
y: A(h)(t.y),
|
|
2105
2090
|
fill: e.color,
|
|
2106
2091
|
stroke: B.value.backgroundColor,
|
|
2107
2092
|
"stroke-width": B.value.barStrokeWidth,
|
|
2108
2093
|
"stroke-linecap": "round",
|
|
2109
|
-
class:
|
|
2110
|
-
}, [B.value.barAnimated && t.value > 0 && !
|
|
2094
|
+
class: S({ "vue-data-ui-bar-animated": B.value.barAnimated && t.value < 0 && !A(U) })
|
|
2095
|
+
}, [B.value.barAnimated && t.value > 0 && !A(ir) && !A(ar) ? (T(), y("animate", {
|
|
2111
2096
|
key: 0,
|
|
2112
2097
|
attributeName: "height",
|
|
2113
2098
|
from: 0,
|
|
2114
2099
|
to: t.height,
|
|
2115
2100
|
dur: "0.5s"
|
|
2116
|
-
}, null, 8,
|
|
2101
|
+
}, null, 8, cn)) : v("", !0), B.value.barAnimated && t.value > 0 && !A(ir) && !A(ar) ? (T(), y("animate", {
|
|
2117
2102
|
key: 1,
|
|
2118
2103
|
attributeName: "y",
|
|
2119
2104
|
from: Q.value.absoluteZero,
|
|
2120
2105
|
to: Q.value.absoluteZero - t.height,
|
|
2121
2106
|
dur: "0.5s"
|
|
2122
|
-
}, null, 8,
|
|
2123
|
-
B.value.showDataLabels ? (
|
|
2124
|
-
|
|
2125
|
-
|
|
2107
|
+
}, null, 8, ln)) : v("", !0)], 10, sn))), 256))], 64))), 256))]),
|
|
2108
|
+
B.value.showDataLabels ? (T(), y("g", un, [(T(!0), y(g, null, D(Q.value.dataset, (e, t) => (T(), y(g, { key: `ds_${e.id}` }, [(T(!0), y(g, null, D(e.coordinates, (t, n) => (T(), y("text", {
|
|
2109
|
+
key: `plot_${n + X.value.start}`,
|
|
2110
|
+
transform: `translate(${t.x + t.width / 2}, ${A(h)(t.y) - B.value.dataLabelFontSize / 2})`,
|
|
2126
2111
|
"text-anchor": "middle",
|
|
2127
2112
|
"font-size": B.value.dataLabelFontSize,
|
|
2128
|
-
fill: e.color
|
|
2129
|
-
|
|
2130
|
-
}, O(k(m)(B.value.formatter, k(h)(t.value), k(u)({
|
|
2113
|
+
fill: e.color
|
|
2114
|
+
}, k(A(m)(B.value.formatter, A(h)(t.value), A(u)({
|
|
2131
2115
|
p: B.value.valuePrefix,
|
|
2132
|
-
v:
|
|
2116
|
+
v: A(h)(t.value),
|
|
2133
2117
|
s: B.value.valueSuffix,
|
|
2134
2118
|
r: B.value.dataLabelRoundingValue
|
|
2135
2119
|
}), {
|
|
2136
2120
|
datapoint: t,
|
|
2137
2121
|
seriesIndex: n
|
|
2138
|
-
})), 9,
|
|
2139
|
-
|
|
2122
|
+
})), 9, dn))), 128))], 64))), 128))])) : v("", !0),
|
|
2123
|
+
Qn.value && R.value.length < Q.value.legend.length ? (T(), y("g", fn, [(T(!0), y(g, null, D(Q.value.extremes.maxSeries, (e, t) => (T(), y("rect", {
|
|
2140
2124
|
x: Q.value.drawingArea.left + t * Q.value.slotSize,
|
|
2141
2125
|
y: Q.value.drawingArea.top,
|
|
2142
2126
|
height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
|
|
2143
2127
|
width: Q.value.slotSize <= 0 ? 1e-5 : Q.value.slotSize,
|
|
2144
2128
|
fill: [L.value, J.value].includes(t) ? B.value.xyHighlighterColor : "transparent",
|
|
2145
|
-
style:
|
|
2129
|
+
style: w(`opacity:${B.value.xyHighlighterOpacity}`),
|
|
2146
2130
|
onMouseenter: (e) => Q.value.useTooltip(t, "pointer"),
|
|
2147
2131
|
onMouseleave: (e) => Q.value.killTooltip(t),
|
|
2148
2132
|
onClick: (e) => Q.value.selectDatapoint(t)
|
|
2149
|
-
}, null, 44,
|
|
2133
|
+
}, null, 44, pn))), 256))])) : v("", !0)
|
|
2150
2134
|
], 64)) : v("", !0),
|
|
2151
|
-
[
|
|
2152
|
-
B.value.xAxisLabel && K.value ===
|
|
2135
|
+
[M.LINE, M.BAR].includes(K.value) ? (T(), y("g", mn, [
|
|
2136
|
+
B.value.xAxisLabel && K.value === M.LINE ? (T(), y("g", {
|
|
2153
2137
|
key: 0,
|
|
2154
2138
|
ref_key: "xAxisLabel",
|
|
2155
|
-
ref:
|
|
2139
|
+
ref: zn
|
|
2156
2140
|
}, [b("text", {
|
|
2157
2141
|
"font-size": B.value.axisLabelsFontSize,
|
|
2158
2142
|
fill: B.value.color,
|
|
2159
2143
|
"text-anchor": "middle",
|
|
2160
2144
|
x: Z.value.drawingArea.left + Z.value.drawingArea.width / 2,
|
|
2161
2145
|
y: q.value.height - B.value.axisLabelsFontSize / 3
|
|
2162
|
-
},
|
|
2163
|
-
B.value.xAxisLabel && K.value ===
|
|
2146
|
+
}, k(B.value.xAxisLabel), 9, hn)], 512)) : v("", !0),
|
|
2147
|
+
B.value.xAxisLabel && K.value === M.BAR ? (T(), y("g", {
|
|
2164
2148
|
key: 1,
|
|
2165
2149
|
ref_key: "xAxisLabel",
|
|
2166
|
-
ref:
|
|
2150
|
+
ref: zn
|
|
2167
2151
|
}, [b("text", {
|
|
2168
2152
|
"font-size": B.value.axisLabelsFontSize,
|
|
2169
2153
|
fill: B.value.color,
|
|
2170
2154
|
"text-anchor": "middle",
|
|
2171
2155
|
x: Q.value.drawingArea.left + Q.value.drawingArea.width / 2,
|
|
2172
2156
|
y: q.value.height - B.value.axisLabelsFontSize / 3
|
|
2173
|
-
},
|
|
2174
|
-
B.value.yAxisLabel && K.value ===
|
|
2157
|
+
}, k(B.value.xAxisLabel), 9, gn)], 512)) : v("", !0),
|
|
2158
|
+
B.value.yAxisLabel && K.value === M.LINE ? (T(), y("g", {
|
|
2175
2159
|
key: 2,
|
|
2176
2160
|
ref_key: "yAxisLabel",
|
|
2177
|
-
ref:
|
|
2161
|
+
ref: Bn
|
|
2178
2162
|
}, [b("text", {
|
|
2179
2163
|
"font-size": B.value.axisLabelsFontSize,
|
|
2180
2164
|
fill: B.value.color,
|
|
2181
2165
|
transform: `translate(${B.value.axisLabelsFontSize}, ${Z.value.drawingArea.top + Z.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2182
2166
|
"text-anchor": "middle"
|
|
2183
|
-
},
|
|
2184
|
-
B.value.yAxisLabel && K.value ===
|
|
2167
|
+
}, k(B.value.yAxisLabel), 9, _n)], 512)) : v("", !0),
|
|
2168
|
+
B.value.yAxisLabel && K.value === M.BAR ? (T(), y("g", {
|
|
2185
2169
|
key: 3,
|
|
2186
2170
|
ref_key: "yAxisLabel",
|
|
2187
|
-
ref:
|
|
2171
|
+
ref: Bn
|
|
2188
2172
|
}, [b("text", {
|
|
2189
2173
|
"font-size": B.value.axisLabelsFontSize,
|
|
2190
2174
|
fill: B.value.color,
|
|
2191
2175
|
transform: `translate(${B.value.axisLabelsFontSize}, ${Q.value.drawingArea.top + Q.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2192
2176
|
"text-anchor": "middle"
|
|
2193
|
-
},
|
|
2177
|
+
}, k(B.value.yAxisLabel), 9, vn)], 512)) : v("", !0)
|
|
2194
2178
|
])) : v("", !0)
|
|
2195
|
-
], 44,
|
|
2179
|
+
], 44, nt)) : v("", !0), e.$slots.hint ? (T(), y("div", yn, [O(e.$slots, "hint", C(x({
|
|
2196
2180
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
2197
|
-
isVisible:
|
|
2181
|
+
isVisible: Wn.value
|
|
2198
2182
|
})), void 0, !0)])) : v("", !0)]),
|
|
2199
|
-
e.$slots.watermark ? (
|
|
2200
|
-
[
|
|
2201
|
-
key: `slicer_${
|
|
2183
|
+
e.$slots.watermark ? (T(), y("div", bn, [O(e.$slots, "watermark", C(x({ isPrinting: A(ir) || A(ar) })), void 0, !0)])) : v("", !0),
|
|
2184
|
+
[M.BAR, M.LINE].includes(K.value) && B.value.zoomXy && G.value.maxSeriesLength > 1 ? (T(), y("div", {
|
|
2185
|
+
key: `slicer_${Pn.value}`,
|
|
2202
2186
|
ref_key: "quickChartSlicer",
|
|
2203
|
-
ref:
|
|
2204
|
-
}, [(
|
|
2187
|
+
ref: On
|
|
2188
|
+
}, [(T(), De(we, {
|
|
2205
2189
|
ref_key: "slicerComponent",
|
|
2206
|
-
ref:
|
|
2207
|
-
key: `slicer_${
|
|
2190
|
+
ref: Tr,
|
|
2191
|
+
key: `slicer_${Pn.value}`,
|
|
2208
2192
|
background: B.value.zoomColor,
|
|
2209
2193
|
borderColor: B.value.backgroundColor,
|
|
2210
2194
|
fontSize: B.value.zoomFontSize,
|
|
@@ -2223,7 +2207,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2223
2207
|
minimapSelectedColorOpacity: B.value.zoomMinimap.selectedColorOpacity,
|
|
2224
2208
|
minimapSelectionRadius: B.value.zoomMinimap.selectionRadius,
|
|
2225
2209
|
minimapLineColor: B.value.zoomMinimap.lineColor,
|
|
2226
|
-
minimap:
|
|
2210
|
+
minimap: Or.value,
|
|
2227
2211
|
minimapIndicatorColor: B.value.zoomMinimap.indicatorColor,
|
|
2228
2212
|
verticalHandles: B.value.zoomMinimap.verticalHandles,
|
|
2229
2213
|
minimapSelectedIndex: J.value,
|
|
@@ -2237,7 +2221,7 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2237
2221
|
enableSelectionDrag: B.value.zoomEnableSelectionDrag,
|
|
2238
2222
|
minimapCompact: B.value.zoomMinimap.compact,
|
|
2239
2223
|
minimapMerged: B.value.zoomMinimap.merged,
|
|
2240
|
-
allMinimaps:
|
|
2224
|
+
allMinimaps: zr.value,
|
|
2241
2225
|
minimapFrameColor: B.value.zoomMinimap.frameColor,
|
|
2242
2226
|
additionalMinimapHeight: B.value.zoomMinimap.additionalHeight,
|
|
2243
2227
|
handleType: B.value.zoomMinimap.handleType,
|
|
@@ -2249,31 +2233,31 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2249
2233
|
focusOnDrag: B.value.zoomFocusOnDrag,
|
|
2250
2234
|
focusRangeRatio: B.value.zoomFocusRangeRatio,
|
|
2251
2235
|
maxWidth: B.value.zoomMaxWidth,
|
|
2252
|
-
onReset:
|
|
2253
|
-
onTrapMouse:
|
|
2236
|
+
onReset: wr,
|
|
2237
|
+
onTrapMouse: Sr
|
|
2254
2238
|
}, {
|
|
2255
|
-
"reset-action":
|
|
2239
|
+
"reset-action": j(({ reset: t }) => [O(e.$slots, "reset-action", C(x({ reset: t })), void 0, !0)]),
|
|
2256
2240
|
_: 3
|
|
2257
2241
|
}, 8, /* @__PURE__ */ "background.borderColor.fontSize.useResetSlot.labelLeft.labelRight.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".split(".")))])) : v("", !0),
|
|
2258
|
-
b("div", { id: `legend-bottom-${F.value}` }, null, 8,
|
|
2259
|
-
|
|
2242
|
+
b("div", { id: `legend-bottom-${F.value}` }, null, 8, xn),
|
|
2243
|
+
Fn.value && B.value.showLegend ? (T(), De(Ee, {
|
|
2260
2244
|
key: 7,
|
|
2261
2245
|
to: B.value.legendPosition === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2262
|
-
}, [B.value.showLegend ? (
|
|
2246
|
+
}, [B.value.showLegend ? (T(), y("div", {
|
|
2263
2247
|
key: 0,
|
|
2264
2248
|
ref_key: "quickChartLegend",
|
|
2265
|
-
ref:
|
|
2249
|
+
ref: Dn,
|
|
2266
2250
|
class: "vue-ui-quick-chart-legend",
|
|
2267
|
-
style:
|
|
2251
|
+
style: w(`background:transparent;color:${B.value.color}`)
|
|
2268
2252
|
}, [
|
|
2269
|
-
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && B.value.showLegendSelectAllToggle && !
|
|
2253
|
+
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && B.value.showLegendSelectAllToggle && !A(U) ? (T(), De(xe, {
|
|
2270
2254
|
key: 0,
|
|
2271
2255
|
backgroundColor: B.value.legendSelectAllToggleBackgroundColor,
|
|
2272
2256
|
color: B.value.legendSelectAllToggleColor,
|
|
2273
2257
|
fontSize: B.value.legendFontSize,
|
|
2274
2258
|
checked: R.value.length > 0,
|
|
2275
|
-
isCursorPointer:
|
|
2276
|
-
onToggle:
|
|
2259
|
+
isCursorPointer: Hn.value,
|
|
2260
|
+
onToggle: gr
|
|
2277
2261
|
}, null, 8, [
|
|
2278
2262
|
"backgroundColor",
|
|
2279
2263
|
"color",
|
|
@@ -2281,28 +2265,25 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2281
2265
|
"checked",
|
|
2282
2266
|
"isCursorPointer"
|
|
2283
2267
|
])) : v("", !0),
|
|
2284
|
-
K.value ===
|
|
2268
|
+
K.value === M.DONUT ? (T(!0), y(g, { key: 1 }, D(Y.value.legend, (t, n) => (T(), y("div", {
|
|
2285
2269
|
class: "vue-ui-quick-chart-legend-item",
|
|
2286
|
-
onClick: (e) =>
|
|
2287
|
-
style:
|
|
2270
|
+
onClick: (e) => xr(t, Y.value.dataset),
|
|
2271
|
+
style: w(`cursor: ${Y.value.legend.length > 1 && Hn.value ? "pointer" : "default"}; opacity:${R.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2288
2272
|
role: "button",
|
|
2289
2273
|
tabindex: "0",
|
|
2290
2274
|
onKeydown: (e) => {
|
|
2291
|
-
|
|
2292
|
-
|
|
2275
|
+
ri(e, () => {
|
|
2276
|
+
xr(t, Y.value.dataset);
|
|
2293
2277
|
});
|
|
2294
2278
|
}
|
|
2295
|
-
}, [B.value.useCustomLegend ?
|
|
2296
|
-
key: 0,
|
|
2297
|
-
ref_for: !0
|
|
2298
|
-
}, { legend: {
|
|
2279
|
+
}, [B.value.useCustomLegend ? O(e.$slots, "legend", je({ ref_for: !0 }, { legend: {
|
|
2299
2280
|
...t,
|
|
2300
2281
|
isSegregated: R.value.includes(t.id),
|
|
2301
2282
|
segregate: () => {
|
|
2302
|
-
|
|
2283
|
+
xr(t, Y.value.dataset);
|
|
2303
2284
|
}
|
|
2304
|
-
} }), void 0, !0) : (
|
|
2305
|
-
|
|
2285
|
+
} }), void 0, !0, 0) : (T(), y(g, { key: 1 }, [
|
|
2286
|
+
ke(A(Ve), {
|
|
2306
2287
|
name: B.value.legendIcon,
|
|
2307
2288
|
stroke: t.color,
|
|
2308
2289
|
size: B.value.legendIconSize
|
|
@@ -2311,8 +2292,8 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2311
2292
|
"stroke",
|
|
2312
2293
|
"size"
|
|
2313
2294
|
]),
|
|
2314
|
-
b("span", { style:
|
|
2315
|
-
b("span", { style:
|
|
2295
|
+
b("span", { style: w(`font-size:${B.value.legendFontSize}px`) }, k(t.name), 5),
|
|
2296
|
+
b("span", { style: w(`font-size:${B.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, k(R.value.includes(t.id) ? "-" : A(m)(B.value.formatter, t.absoluteValue, A(u)({
|
|
2316
2297
|
p: B.value.valuePrefix,
|
|
2317
2298
|
v: t.absoluteValue,
|
|
2318
2299
|
s: B.value.valueSuffix,
|
|
@@ -2321,44 +2302,41 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2321
2302
|
datapoint: t,
|
|
2322
2303
|
seriesIndex: n
|
|
2323
2304
|
})), 5),
|
|
2324
|
-
R.value.includes(t.id) ? (
|
|
2305
|
+
R.value.includes(t.id) ? (T(), y("span", {
|
|
2325
2306
|
key: 0,
|
|
2326
|
-
style:
|
|
2327
|
-
}, " ( - % ) ", 4)) :
|
|
2307
|
+
style: w(`font-size:${B.value.legendFontSize}px`)
|
|
2308
|
+
}, " ( - % ) ", 4)) : br.value ? (T(), y("span", {
|
|
2328
2309
|
key: 1,
|
|
2329
|
-
style:
|
|
2330
|
-
}, " ( - % ) ", 4)) : (
|
|
2310
|
+
style: w(`font-size:${B.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2311
|
+
}, " ( - % ) ", 4)) : (T(), y("span", {
|
|
2331
2312
|
key: 2,
|
|
2332
|
-
style:
|
|
2333
|
-
}, " (" +
|
|
2313
|
+
style: w(`font-size:${B.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2314
|
+
}, " (" + k(A(u)({
|
|
2334
2315
|
v: t.value / Y.value.total * 100,
|
|
2335
2316
|
s: "%",
|
|
2336
2317
|
r: B.value.dataLabelRoundingPercentage
|
|
2337
2318
|
})) + ") ", 5))
|
|
2338
|
-
], 64))], 44,
|
|
2339
|
-
K.value ===
|
|
2319
|
+
], 64))], 44, Sn))), 256)) : v("", !0),
|
|
2320
|
+
K.value === M.LINE ? (T(!0), y(g, { key: 2 }, D(Z.value.legend, (t, n) => (T(), y("div", {
|
|
2340
2321
|
class: "vue-ui-quick-chart-legend-item",
|
|
2341
2322
|
onClick: (e) => {
|
|
2342
|
-
|
|
2323
|
+
_r(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2343
2324
|
},
|
|
2344
|
-
style:
|
|
2325
|
+
style: w(`cursor: ${Z.value.legend.length > 1 && Hn.value ? "pointer" : "default"}; opacity:${R.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2345
2326
|
role: "button",
|
|
2346
2327
|
tabindex: "0",
|
|
2347
2328
|
onKeydown: (e) => {
|
|
2348
|
-
|
|
2349
|
-
|
|
2329
|
+
ri(e, () => {
|
|
2330
|
+
_r(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2350
2331
|
});
|
|
2351
2332
|
}
|
|
2352
|
-
}, [B.value.useCustomLegend ?
|
|
2353
|
-
key: 0,
|
|
2354
|
-
ref_for: !0
|
|
2355
|
-
}, { legend: {
|
|
2333
|
+
}, [B.value.useCustomLegend ? O(e.$slots, "legend", je({ ref_for: !0 }, { legend: {
|
|
2356
2334
|
...t,
|
|
2357
2335
|
isSegregated: R.value.includes(t.id),
|
|
2358
2336
|
segregate: () => {
|
|
2359
|
-
|
|
2337
|
+
_r(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2360
2338
|
}
|
|
2361
|
-
} }), void 0, !0) : (
|
|
2339
|
+
} }), void 0, !0, 0) : (T(), y(g, { key: 1 }, [ke(A(Ve), {
|
|
2362
2340
|
name: B.value.legendIcon,
|
|
2363
2341
|
stroke: t.color,
|
|
2364
2342
|
size: B.value.legendIconSize
|
|
@@ -2366,30 +2344,27 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2366
2344
|
"name",
|
|
2367
2345
|
"stroke",
|
|
2368
2346
|
"size"
|
|
2369
|
-
]), b("span", { style:
|
|
2370
|
-
K.value ===
|
|
2347
|
+
]), b("span", { style: w(`font-size:${B.value.legendFontSize}px`) }, k(t.name), 5)], 64))], 44, Cn))), 256)) : v("", !0),
|
|
2348
|
+
K.value === M.BAR ? (T(!0), y(g, { key: 3 }, D(Q.value.legend, (t, n) => (T(), y("div", {
|
|
2371
2349
|
class: "vue-ui-quick-chart-legend-item",
|
|
2372
2350
|
onClick: (e) => {
|
|
2373
|
-
|
|
2351
|
+
_r(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2374
2352
|
},
|
|
2375
|
-
style:
|
|
2353
|
+
style: w(`cursor: ${Q.value.legend.length > 1 && Hn.value ? "pointer" : "default"}; opacity:${R.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2376
2354
|
role: "button",
|
|
2377
2355
|
tabindex: "0",
|
|
2378
2356
|
onKeydown: (e) => {
|
|
2379
|
-
|
|
2380
|
-
|
|
2357
|
+
ri(e, () => {
|
|
2358
|
+
_r(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2381
2359
|
});
|
|
2382
2360
|
}
|
|
2383
|
-
}, [B.value.useCustomLegend ?
|
|
2384
|
-
key: 0,
|
|
2385
|
-
ref_for: !0
|
|
2386
|
-
}, { legend: {
|
|
2361
|
+
}, [B.value.useCustomLegend ? O(e.$slots, "legend", je({ ref_for: !0 }, { legend: {
|
|
2387
2362
|
...t,
|
|
2388
2363
|
isSegregated: R.value.includes(t.id),
|
|
2389
2364
|
segregate: () => {
|
|
2390
|
-
|
|
2365
|
+
_r(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2391
2366
|
}
|
|
2392
|
-
} }), void 0, !0) : (
|
|
2367
|
+
} }), void 0, !0, 0) : (T(), y(g, { key: 1 }, [ke(A(Ve), {
|
|
2393
2368
|
name: B.value.legendIcon,
|
|
2394
2369
|
stroke: t.color,
|
|
2395
2370
|
size: B.value.legendIconSize
|
|
@@ -2397,17 +2372,17 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2397
2372
|
"name",
|
|
2398
2373
|
"stroke",
|
|
2399
2374
|
"size"
|
|
2400
|
-
]), b("span", { style:
|
|
2375
|
+
]), b("span", { style: w(`font-size:${B.value.legendFontSize}px`) }, k(t.name), 5)], 64))], 44, wn))), 256)) : v("", !0)
|
|
2401
2376
|
], 4)) : v("", !0)], 8, ["to"])) : v("", !0),
|
|
2402
|
-
e.$slots.source ? (
|
|
2377
|
+
e.$slots.source ? (T(), y("div", {
|
|
2403
2378
|
key: 8,
|
|
2404
2379
|
ref_key: "source",
|
|
2405
|
-
ref:
|
|
2380
|
+
ref: jn,
|
|
2406
2381
|
dir: "auto"
|
|
2407
|
-
}, [
|
|
2408
|
-
|
|
2382
|
+
}, [O(e.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
2383
|
+
ke(A(Ke), {
|
|
2409
2384
|
teleportTo: B.value.tooltipTeleportTo,
|
|
2410
|
-
show:
|
|
2385
|
+
show: lr.value.showTooltip && I.value,
|
|
2411
2386
|
backgroundColor: B.value.backgroundColor,
|
|
2412
2387
|
color: B.value.color,
|
|
2413
2388
|
borderRadius: B.value.tooltipBorderRadius,
|
|
@@ -2419,19 +2394,19 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2419
2394
|
offsetX: B.value.tooltipOffsetX,
|
|
2420
2395
|
offsetY: B.value.tooltipOffsetY,
|
|
2421
2396
|
parent: P.value,
|
|
2422
|
-
content:
|
|
2423
|
-
isFullscreen:
|
|
2424
|
-
isCustom:
|
|
2397
|
+
content: An.value,
|
|
2398
|
+
isFullscreen: Hr.value,
|
|
2399
|
+
isCustom: A(ee)(B.value.tooltipCustomFormat),
|
|
2425
2400
|
smooth: B.value.tooltipSmooth,
|
|
2426
2401
|
smoothForce: B.value.tooltipSmoothForce,
|
|
2427
2402
|
smoothSnapThreshold: B.value.tooltipSmoothSnapThreshold,
|
|
2428
2403
|
backdropFilter: B.value.tooltipBackdropFilter,
|
|
2429
2404
|
isA11yMode: H.value === "keyboard",
|
|
2430
|
-
a11yPosition:
|
|
2405
|
+
a11yPosition: Un.value
|
|
2431
2406
|
}, {
|
|
2432
|
-
"tooltip-before":
|
|
2433
|
-
tooltip:
|
|
2434
|
-
"tooltip-after":
|
|
2407
|
+
"tooltip-before": j(() => [O(e.$slots, "tooltip-before", C(x({ ...kn.value })), void 0, !0)]),
|
|
2408
|
+
tooltip: j(() => [O(e.$slots, "tooltip", C(x({ ...kn.value })), void 0, !0)]),
|
|
2409
|
+
"tooltip-after": j(() => [O(e.$slots, "tooltip-after", C(x({ ...kn.value })), void 0, !0)]),
|
|
2435
2410
|
_: 3
|
|
2436
2411
|
}, 8, [
|
|
2437
2412
|
"teleportTo",
|
|
@@ -2457,12 +2432,12 @@ var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe =
|
|
|
2457
2432
|
"isA11yMode",
|
|
2458
2433
|
"a11yPosition"
|
|
2459
2434
|
]),
|
|
2460
|
-
|
|
2461
|
-
], 46,
|
|
2435
|
+
O(e.$slots, "skeleton", {}, () => [A(U) ? (T(), De(de, { key: 0 })) : v("", !0)], !0)
|
|
2436
|
+
], 46, Qe)) : (T(), y("div", Tn, [ke(A(Ve), {
|
|
2462
2437
|
name: "circleCancel",
|
|
2463
2438
|
stroke: "red"
|
|
2464
2439
|
}), t[5] ||= b("span", null, "Dataset is not processable", -1)]));
|
|
2465
2440
|
}
|
|
2466
|
-
}, [["__scopeId", "data-v-
|
|
2441
|
+
}, [["__scopeId", "data-v-b3c8ddac"]]);
|
|
2467
2442
|
//#endregion
|
|
2468
|
-
export {
|
|
2443
|
+
export { N as n, P as t };
|