vue-data-ui 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.js → UserOptions-C0YT60JN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-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-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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ee, ref as w, computed as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as Ut, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as Ra } from "./usePrinter-
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import Va from "./img-
|
|
12
|
-
import { S as qa } from "./Slicer-
|
|
1
|
+
import { defineAsyncComponent as Ee, ref as w, computed as M, toRefs as ya, watch as Te, shallowRef as Rt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, watchEffect as ka, createElementBlock as n, openBlock as o, normalizeStyle as B, normalizeClass as de, createBlock as Ie, createCommentVNode as m, createElementVNode as C, createVNode as be, unref as s, createSlots as ba, withCtx as ne, renderSlot as W, normalizeProps as me, guardReactiveProps as ge, toDisplayString as U, Fragment as x, renderList as T, Teleport as Sa, mergeProps as nt } from "vue";
|
|
2
|
+
import { c as wa, t as Aa, b as La, p as J, O as We, e as _a, a1 as za, f as Ca, o as $a, h as it, T as Ea, m as Xe, X as Ta, V as Ia, W as ut, Y as Pe, a as ie, d as j, M as Bt, z as Dt, x as ue, G as Ge, H as rt } from "./lib-BcBZIm6u.js";
|
|
3
|
+
import { t as Ut, u as Pa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Oa, a as Vt } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as Fa, B as Ma } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ra } from "./usePrinter-C1GiglOH.js";
|
|
7
|
+
import { u as Na } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ba } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Da } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Ua } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Va from "./img-CFY3JivG.js";
|
|
12
|
+
import { S as qa } from "./Slicer-BHgEsIBU.js";
|
|
13
13
|
import { t as Ha } from "./themes-Dw-dDudK.js";
|
|
14
14
|
import { _ as Wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const A = {
|
|
@@ -17,23 +17,23 @@ const A = {
|
|
|
17
17
|
BAR: "BAR",
|
|
18
18
|
DONUT: "DONUT"
|
|
19
19
|
}, Xa = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
20
|
-
function
|
|
21
|
-
let q = null,
|
|
22
|
-
if ((typeof h == "number" || typeof h == "string") && L && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Ye(h) && (re(h) && (h.length < O ? q = A.BAR : q = A.LINE,
|
|
20
|
+
function Ga({ dataset: h, barLineSwitch: O = 6, debug: L = !0 }) {
|
|
21
|
+
let q = null, G = null, se = 0;
|
|
22
|
+
if ((typeof h == "number" || typeof h == "string") && L && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Ye(h) && (re(h) && (h.length < O ? q = A.BAR : q = A.LINE, G = h, se = h.length), je(h))) {
|
|
23
23
|
if (!Ya(h))
|
|
24
24
|
return L && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
25
25
|
const Ze = Object.keys(h[0]), D = Object.values(h[0]);
|
|
26
|
-
if (!Ze.some((
|
|
26
|
+
if (!Ze.some((R) => Za(R)))
|
|
27
27
|
return L && 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;
|
|
28
|
-
qt(D, (
|
|
29
|
-
...
|
|
30
|
-
data: Ja(
|
|
31
|
-
}))), h = h.map((
|
|
28
|
+
qt(D, (R) => typeof R == "number") && (q = A.DONUT, G = h), qt(D, (R) => Array.isArray(R) && re(R)) && (Ht(h) > O ? q = A.LINE : q = A.BAR, se = Ht(h), G = h.map((R) => ({
|
|
29
|
+
...R,
|
|
30
|
+
data: Ja(R, (Oe) => re(Oe))
|
|
31
|
+
}))), h = h.map((R) => Wt(R)), G = G.map((R) => Wt(R));
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
dataset: h,
|
|
35
35
|
type: q,
|
|
36
|
-
usableDataset:
|
|
36
|
+
usableDataset: G,
|
|
37
37
|
maxSeriesLength: se
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -48,15 +48,15 @@ function re(h) {
|
|
|
48
48
|
const O = h.map((L) => Number(L));
|
|
49
49
|
return ![...new Set(O.flatMap((L) => typeof L == "number" && !isNaN(L)))].includes(!1);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function je(h) {
|
|
52
52
|
return !Ye(h) || Xt(h) || !![...new Set(h.flatMap((L) => typeof L == "object" && !Array.isArray(L)))].includes(!1) ? !1 : !h.map((L) => Object.keys(L).length > 0).includes(!1);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ja(h, O) {
|
|
55
55
|
const L = Object.keys(h).sort(), q = Object.keys(O).sort();
|
|
56
56
|
if (L.length !== q.length)
|
|
57
57
|
return !1;
|
|
58
|
-
for (let
|
|
59
|
-
const se = L[
|
|
58
|
+
for (let G = 0; G < L.length; G += 1) {
|
|
59
|
+
const se = L[G], Se = q[G];
|
|
60
60
|
if (se !== Se || typeof h[se] != typeof O[Se])
|
|
61
61
|
return !1;
|
|
62
62
|
}
|
|
@@ -66,7 +66,7 @@ function Ya(h) {
|
|
|
66
66
|
if (h.length <= 1) return !0;
|
|
67
67
|
for (let O = 0; O < h.length; O += 1)
|
|
68
68
|
for (let L = O + 1; L < h.length; L += 1)
|
|
69
|
-
if (!
|
|
69
|
+
if (!ja(h[O], h[L]))
|
|
70
70
|
return !1;
|
|
71
71
|
return !0;
|
|
72
72
|
}
|
|
@@ -109,7 +109,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
109
109
|
}, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "font-size", "fill"], $l = {
|
|
110
110
|
key: 3,
|
|
111
111
|
class: "periodLabels"
|
|
112
|
-
}, El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = { key: 0 }, Il = ["font-size", "text-anchor", "fill", "transform"], Pl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Ol = { class: "plots" }, Fl = { class: "line-plot-series" },
|
|
112
|
+
}, El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = { key: 0 }, Il = ["font-size", "text-anchor", "fill", "transform"], Pl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Ol = { class: "plots" }, Fl = { class: "line-plot-series" }, Ml = ["d", "stroke", "stroke-width"], Rl = ["d", "stroke", "stroke-width"], Nl = ["d", "stroke", "stroke-width"], Bl = ["d", "stroke", "stroke-width"], Dl = ["cx", "cy", "fill", "stroke"], Ul = {
|
|
113
113
|
key: 4,
|
|
114
114
|
class: "dataLabels"
|
|
115
115
|
}, Vl = ["font-size", "fill", "x", "y"], ql = {
|
|
@@ -118,7 +118,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
118
118
|
}, Hl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Wl = {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "line-grid"
|
|
121
|
-
}, Xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"],
|
|
121
|
+
}, Xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jl = {
|
|
122
122
|
key: 1,
|
|
123
123
|
class: "line-axis"
|
|
124
124
|
}, Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ql = ["x", "y", "font-size", "fill"], Kl = {
|
|
@@ -157,7 +157,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
157
157
|
},
|
|
158
158
|
emits: ["selectDatapoint", "selectLegend"],
|
|
159
159
|
setup(h, { expose: O, emit: L }) {
|
|
160
|
-
const q = Ee(() => import("./BaseIcon-
|
|
160
|
+
const q = Ee(() => import("./BaseIcon-B5KaGWWC.js")), G = Ee(() => import("./PackageVersion-DyDViSOy.js")), se = Ee(() => import("./PenAndPaper-Dj2diYr0.js")), Se = Ee(() => import("./Tooltip-Cs4v8OnI.js")), st = Ee(() => import("./UserOptions-C0YT60JN.js")), { vue_ui_quick_chart: Ze } = Oa(), D = h, R = w(null), Oe = w(null), vt = w(null), dt = w(null), Y = w(wa()), ce = w(!1), we = w(null), fe = w(""), te = w(null), ct = w(null), ft = w(null), _ = w([]), ht = w(0), Fe = w(0), mt = w(!1), Ae = w(null), Le = w(null), ae = w(null), Me = w(null), gt = w(null), pt = w(null), Re = w("#FFFFFF"), e = w(et()), Je = M(() => !!e.value.debug), { loading: V, FINAL_DATASET: Gt, manualLoading: yt } = Fa({
|
|
161
161
|
...ya(D),
|
|
162
162
|
FINAL_CONFIG: e,
|
|
163
163
|
prepareConfig: et,
|
|
@@ -171,7 +171,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
171
171
|
});
|
|
172
172
|
},
|
|
173
173
|
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
|
|
174
|
-
skeletonConfig:
|
|
174
|
+
skeletonConfig: Aa({
|
|
175
175
|
defaultConfig: e.value,
|
|
176
176
|
userConfig: {
|
|
177
177
|
backgroundColor: "#99999930",
|
|
@@ -193,9 +193,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
193
193
|
zoomEndIndex: null
|
|
194
194
|
}
|
|
195
195
|
})
|
|
196
|
-
}), { svgRef: Qe } =
|
|
196
|
+
}), { svgRef: Qe } = Da({ config: { text: e.value.title } }), jt = M(() => e.value.showUserOptionsOnChartHover), xt = M(() => e.value.keepUserOptionsStateOnChartLeave), Ne = w(!e.value.showUserOptionsOnChartHover), Ke = w(!1);
|
|
197
197
|
function kt(a = !1) {
|
|
198
|
-
Ke.value = a,
|
|
198
|
+
Ke.value = a, jt.value && (Ne.value = a);
|
|
199
199
|
}
|
|
200
200
|
function et() {
|
|
201
201
|
const a = Vt({
|
|
@@ -208,8 +208,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
208
208
|
userConfig: Ha.vue_ui_quick_chart[a.theme] || D.config,
|
|
209
209
|
defaultConfig: a
|
|
210
210
|
}),
|
|
211
|
-
customPalette:
|
|
212
|
-
} : r = a, D.config && We(D.config, "zoomStartIndex") ? r.zoomStartIndex = D.config.zoomStartIndex : r.zoomStartIndex = null, D.config && We(D.config, "zoomEndIndex") ? r.zoomEndIndex = D.config.zoomEndIndex : r.zoomEndIndex = null, D.config && !We(D.config, "donutStroke") ? We(D.config, "backgroundColor") ?
|
|
211
|
+
customPalette: La[a.theme] || J
|
|
212
|
+
} : r = a, D.config && We(D.config, "zoomStartIndex") ? r.zoomStartIndex = D.config.zoomStartIndex : r.zoomStartIndex = null, D.config && We(D.config, "zoomEndIndex") ? r.zoomEndIndex = D.config.zoomEndIndex : r.zoomEndIndex = null, D.config && !We(D.config, "donutStroke") ? We(D.config, "backgroundColor") ? Re.value = D.config.backgroundColor : Re.value = "#FFFFFF" : Re.value = D.config.donutStroke, r;
|
|
213
213
|
}
|
|
214
214
|
Te(() => D.config, (a) => {
|
|
215
215
|
V.value || (e.value = et()), S.value.width = e.value.width, S.value.height = e.value.height, Ne.value = !e.value.showUserOptionsOnChartHover, wt(), ye.value.showTooltip = e.value.showTooltip;
|
|
@@ -218,8 +218,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
218
218
|
}, { deep: !0 }), Te(() => D.dataset, (a) => {
|
|
219
219
|
Array.isArray(a) && a.length > 0 && (yt.value = !1);
|
|
220
220
|
}, { immediate: !0 });
|
|
221
|
-
const _e =
|
|
222
|
-
const a =
|
|
221
|
+
const _e = M(() => _a(e.value.customPalette)), pe = L, ze = M(() => {
|
|
222
|
+
const a = Ga({ debug: Je.value, dataset: za(Gt.value, [
|
|
223
223
|
"serie",
|
|
224
224
|
"series",
|
|
225
225
|
"data",
|
|
@@ -228,9 +228,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
228
228
|
"num"
|
|
229
229
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
230
230
|
return !a && Je.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
|
|
231
|
-
}), k = w(ze.value), Yt =
|
|
231
|
+
}), k = w(ze.value), Yt = M(() => !!k.value), $ = M(() => k.value ? k.value.type : null);
|
|
232
232
|
Te(() => $.value, (a) => {
|
|
233
|
-
a ||
|
|
233
|
+
a || Ca({
|
|
234
234
|
componentName: "VueUiQuickChart",
|
|
235
235
|
type: "dataset",
|
|
236
236
|
debug: Je.value
|
|
@@ -240,7 +240,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
240
240
|
elementId: `${$.value}_${Y.value}`,
|
|
241
241
|
fileName: e.value.title || $.value,
|
|
242
242
|
options: e.value.userOptionsPrint
|
|
243
|
-
}), Zt =
|
|
243
|
+
}), Zt = M(() => e.value.showUserOptions && !e.value.title), S = w({
|
|
244
244
|
width: e.value.width,
|
|
245
245
|
height: e.value.height
|
|
246
246
|
}), ye = w({
|
|
@@ -251,15 +251,15 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
251
251
|
showTooltip: e.value.showTooltip
|
|
252
252
|
};
|
|
253
253
|
}, { immediate: !0 });
|
|
254
|
-
const ve =
|
|
254
|
+
const ve = Rt(null), xe = Rt(null);
|
|
255
255
|
xa(async () => {
|
|
256
256
|
mt.value = !0, wt();
|
|
257
257
|
});
|
|
258
258
|
function wt() {
|
|
259
|
-
if (
|
|
259
|
+
if ($a(D.dataset) || (yt.value = e.value.loading), e.value.responsive) {
|
|
260
260
|
const a = Ut(() => {
|
|
261
|
-
const { width: r, height: t } =
|
|
262
|
-
chart:
|
|
261
|
+
const { width: r, height: t } = Pa({
|
|
262
|
+
chart: R.value,
|
|
263
263
|
title: e.value.title ? Oe.value : null,
|
|
264
264
|
legend: e.value.showLegend ? vt.value : null,
|
|
265
265
|
slicer: [A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? dt.value : null,
|
|
@@ -270,14 +270,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
270
270
|
S.value.width = r, S.value.height = t;
|
|
271
271
|
});
|
|
272
272
|
});
|
|
273
|
-
ve.value && (xe.value && ve.value.unobserve(xe.value), ve.value.disconnect()), ve.value = new ResizeObserver(a), xe.value =
|
|
273
|
+
ve.value && (xe.value && ve.value.unobserve(xe.value), ve.value.disconnect()), ve.value = new ResizeObserver(a), xe.value = R.value.parentNode, ve.value.observe(xe.value);
|
|
274
274
|
}
|
|
275
275
|
Et();
|
|
276
276
|
}
|
|
277
277
|
Nt(() => {
|
|
278
278
|
ve.value && (xe.value && ve.value.unobserve(xe.value), ve.value.disconnect());
|
|
279
279
|
});
|
|
280
|
-
const Jt =
|
|
280
|
+
const Jt = M(() => {
|
|
281
281
|
switch ($.value) {
|
|
282
282
|
case A.LINE:
|
|
283
283
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
@@ -302,17 +302,17 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
302
302
|
function Qt(a, r) {
|
|
303
303
|
Ue.value = !0;
|
|
304
304
|
let t = a.value;
|
|
305
|
-
const
|
|
305
|
+
const l = ze.value.dataset.find((u, p) => a.id === `donut_${p}`).VALUE;
|
|
306
306
|
if (_.value.includes(a.id)) {
|
|
307
307
|
let u = function() {
|
|
308
|
-
t >
|
|
308
|
+
t > l ? (Ue.value = !1, cancelAnimationFrame(zt.value), k.value = {
|
|
309
309
|
...k.value,
|
|
310
310
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
311
311
|
...p,
|
|
312
|
-
value:
|
|
313
|
-
VALUE:
|
|
312
|
+
value: l,
|
|
313
|
+
VALUE: l
|
|
314
314
|
} : p)
|
|
315
|
-
}) : (t +=
|
|
315
|
+
}) : (t += l * 0.025, k.value = {
|
|
316
316
|
...k.value,
|
|
317
317
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
318
318
|
...p,
|
|
@@ -324,7 +324,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
324
324
|
_.value = _.value.filter((p) => p !== a.id), u();
|
|
325
325
|
} else if (r.length > 1) {
|
|
326
326
|
let u = function() {
|
|
327
|
-
t <
|
|
327
|
+
t < l / 100 ? (Ue.value = !1, cancelAnimationFrame(_t.value), _.value.push(a.id), k.value = {
|
|
328
328
|
...k.value,
|
|
329
329
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
330
330
|
...p,
|
|
@@ -347,7 +347,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
347
347
|
function Kt(a) {
|
|
348
348
|
le.value = a;
|
|
349
349
|
}
|
|
350
|
-
const Ct =
|
|
350
|
+
const Ct = M(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = M(() => {
|
|
351
351
|
if ($.value !== A.DONUT) return null;
|
|
352
352
|
const a = k.value.dataset.map((f, z) => ({
|
|
353
353
|
...f,
|
|
@@ -360,7 +360,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
360
360
|
immutableValue: f.value
|
|
361
361
|
}));
|
|
362
362
|
function r(f, z) {
|
|
363
|
-
return
|
|
363
|
+
return j({
|
|
364
364
|
v: isNaN(f.value / At(z)) ? 0 : f.value / At(z) * 100,
|
|
365
365
|
s: "%",
|
|
366
366
|
r: e.value.dataLabelRoundingPercentage
|
|
@@ -369,14 +369,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
369
369
|
function t(f) {
|
|
370
370
|
return f.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function l(f, z) {
|
|
373
373
|
const d = ze.value.dataset.find((g, E) => `donut_${E}` === f).VALUE;
|
|
374
374
|
return Math.abs(String(Number(d.toFixed(0))).length - String(Number(z.toFixed(0))).length);
|
|
375
375
|
}
|
|
376
376
|
function u({ datapoint: f, seriesIndex: z }) {
|
|
377
377
|
we.value = { datapoint: f, seriesIndex: z, config: e.value, dataset: a }, te.value = f.id;
|
|
378
378
|
const d = e.value.tooltipCustomFormat;
|
|
379
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: z }),
|
|
379
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: z }), Ge(d) && rt(() => d({
|
|
380
380
|
datapoint: f,
|
|
381
381
|
seriesIndex: z,
|
|
382
382
|
series: a,
|
|
@@ -393,14 +393,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
393
393
|
i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${f.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${f.color}"/></svg>`, i += `<b>${ie(
|
|
394
394
|
e.value.formatter,
|
|
395
395
|
f.value,
|
|
396
|
-
|
|
396
|
+
j({
|
|
397
397
|
p: e.value.valuePrefix,
|
|
398
398
|
v: f.value,
|
|
399
399
|
s: e.value.valueSuffix,
|
|
400
400
|
r: e.value.dataLabelRoundingValue
|
|
401
401
|
}),
|
|
402
402
|
{ datapoint: f, seriesIndex: z }
|
|
403
|
-
)}</b>`, i += `<span>(${
|
|
403
|
+
)}</b>`, i += `<span>(${j({ v: f.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, fe.value = `<div>${i}</div>`;
|
|
404
404
|
}
|
|
405
405
|
ce.value = !0;
|
|
406
406
|
}
|
|
@@ -429,12 +429,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
429
429
|
useTooltip: u,
|
|
430
430
|
killTooltip: p,
|
|
431
431
|
selectDatapoint: b,
|
|
432
|
-
getSpaces:
|
|
432
|
+
getSpaces: l,
|
|
433
433
|
total: F,
|
|
434
434
|
cx: oe,
|
|
435
435
|
cy: Z,
|
|
436
436
|
radius: X,
|
|
437
|
-
chart:
|
|
437
|
+
chart: Ea(
|
|
438
438
|
{ series: a.filter((f) => !_.value.includes(f.id)) },
|
|
439
439
|
oe,
|
|
440
440
|
Z,
|
|
@@ -468,10 +468,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
468
468
|
const r = k.value.maxSeriesLength;
|
|
469
469
|
return a > r ? r : a < 0 || e.value.zoomStartIndex !== null && a < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : a;
|
|
470
470
|
}
|
|
471
|
-
const aa =
|
|
471
|
+
const aa = M(() => {
|
|
472
472
|
if (!e.value.zoomMinimap.show || $.value === A.DONUT) return [];
|
|
473
473
|
let a = [];
|
|
474
|
-
re(k.value.dataset) && (a = k.value.dataset),
|
|
474
|
+
re(k.value.dataset) && (a = k.value.dataset), je(k.value.dataset) && (a = k.value.dataset.map((u, p) => ({
|
|
475
475
|
values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
|
|
476
476
|
id: $.value === A.LINE ? `line_${p}` : `bar_${p}`
|
|
477
477
|
})).filter((u) => !_.value.includes(u.id)));
|
|
@@ -482,26 +482,33 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
482
482
|
else
|
|
483
483
|
for (let u = 0; u < r; u += 1)
|
|
484
484
|
t.push(a.map((p) => p.values[u] || 0).reduce((p, b) => (p || 0) + (b || 0), 0));
|
|
485
|
-
const
|
|
486
|
-
return t.map((u) => u + (
|
|
485
|
+
const l = Math.min(...t);
|
|
486
|
+
return t.map((u) => u + (l < 0 ? Math.abs(l) : 0));
|
|
487
487
|
});
|
|
488
488
|
function Tt() {
|
|
489
489
|
let a = 0;
|
|
490
|
-
return
|
|
490
|
+
return Me.value && (a = Array.from(Me.value.querySelectorAll("text")).reduce((l, u) => {
|
|
491
491
|
const p = u.getComputedTextLength();
|
|
492
|
-
return p >
|
|
492
|
+
return p > l ? p : l;
|
|
493
493
|
}, 0)), a + 4;
|
|
494
494
|
}
|
|
495
495
|
const tt = w(0), la = Ut((a) => {
|
|
496
496
|
tt.value = a;
|
|
497
497
|
}, 100);
|
|
498
|
-
|
|
498
|
+
ka((a) => {
|
|
499
|
+
const r = ae.value;
|
|
500
|
+
if (!r) return;
|
|
501
|
+
const t = new ResizeObserver((l) => {
|
|
502
|
+
la(l[0].contentRect.height);
|
|
503
|
+
});
|
|
504
|
+
t.observe(r), a(() => t.disconnect());
|
|
505
|
+
}), Nt(() => {
|
|
499
506
|
tt.value = 0;
|
|
500
507
|
});
|
|
501
|
-
const Ve =
|
|
508
|
+
const Ve = M(() => {
|
|
502
509
|
let a = 0, r = 0;
|
|
503
510
|
return ae.value && (r = tt.value), a + r;
|
|
504
|
-
}), c =
|
|
511
|
+
}), c = M(() => {
|
|
505
512
|
if ($.value !== A.LINE) return null;
|
|
506
513
|
const a = {
|
|
507
514
|
height: S.value.height,
|
|
@@ -520,8 +527,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
520
527
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
|
|
521
528
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
522
529
|
};
|
|
523
|
-
let
|
|
524
|
-
re(k.value.dataset) && (
|
|
530
|
+
let l = [];
|
|
531
|
+
re(k.value.dataset) && (l = [
|
|
525
532
|
{
|
|
526
533
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
527
534
|
absoluteValues: k.value.dataset,
|
|
@@ -530,7 +537,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
530
537
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
531
538
|
id: "line_0"
|
|
532
539
|
}
|
|
533
|
-
]),
|
|
540
|
+
]), je(k.value.dataset) && (l = k.value.dataset.map((d, i) => ({
|
|
534
541
|
...d,
|
|
535
542
|
values: d.VALUE || d.DATA || d.SERIE || d.SERIES || d.VALUES || d.NUM || 0,
|
|
536
543
|
name: d.NAME || d.DESCRIPTION || d.TITLE || d.LABEL || `Serie ${i}`,
|
|
@@ -543,14 +550,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
543
550
|
absoluteIndices: d.values.map((g, E) => E).slice(y.value.start, y.value.end)
|
|
544
551
|
})));
|
|
545
552
|
const u = {
|
|
546
|
-
max: Math.max(...
|
|
547
|
-
min: Math.min(...
|
|
548
|
-
maxSeries: Math.max(...
|
|
553
|
+
max: Math.max(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
554
|
+
min: Math.min(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
555
|
+
maxSeries: Math.max(...l.map((d) => d.values.length))
|
|
549
556
|
}, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((d) => ({
|
|
550
557
|
y: t.bottom - t.height * ((d + b) / (p.max + b)),
|
|
551
558
|
x: t.left - 8,
|
|
552
559
|
value: d
|
|
553
|
-
})), oe =
|
|
560
|
+
})), oe = l.map((d, i) => ({
|
|
554
561
|
...d,
|
|
555
562
|
shape: "circle",
|
|
556
563
|
coordinates: d.values.map((g, E) => ({
|
|
@@ -568,7 +575,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
568
575
|
};
|
|
569
576
|
});
|
|
570
577
|
function Z(d) {
|
|
571
|
-
return
|
|
578
|
+
return l.map((i) => ({
|
|
572
579
|
...i,
|
|
573
580
|
value: i.values[d],
|
|
574
581
|
absoluteIndex: i.absoluteIndices[d]
|
|
@@ -577,18 +584,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
577
584
|
function X(d) {
|
|
578
585
|
te.value = d, le.value = d;
|
|
579
586
|
const i = Z(d);
|
|
580
|
-
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset:
|
|
587
|
+
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: l };
|
|
581
588
|
const g = e.value.tooltipCustomFormat;
|
|
582
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }),
|
|
589
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }), Ge(g) && rt(() => g({
|
|
583
590
|
datapoint: i,
|
|
584
591
|
seriesIndex: d,
|
|
585
|
-
series:
|
|
592
|
+
series: l,
|
|
586
593
|
config: e.value
|
|
587
594
|
})))
|
|
588
595
|
fe.value = g({
|
|
589
596
|
datapoint: i,
|
|
590
597
|
seriesIndex: d,
|
|
591
|
-
series:
|
|
598
|
+
series: l,
|
|
592
599
|
config: e.value
|
|
593
600
|
});
|
|
594
601
|
else {
|
|
@@ -601,7 +608,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
601
608
|
<b>${ie(
|
|
602
609
|
e.value.formatter,
|
|
603
610
|
N.value,
|
|
604
|
-
|
|
611
|
+
j({
|
|
605
612
|
p: e.value.valuePrefix,
|
|
606
613
|
v: N.value,
|
|
607
614
|
s: e.value.valueSuffix,
|
|
@@ -636,7 +643,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
636
643
|
killTooltip: f,
|
|
637
644
|
selectDatapoint: z
|
|
638
645
|
};
|
|
639
|
-
}), v =
|
|
646
|
+
}), v = M(() => {
|
|
640
647
|
if ($.value !== A.BAR) return null;
|
|
641
648
|
const a = {
|
|
642
649
|
height: S.value.height,
|
|
@@ -655,8 +662,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
655
662
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
|
|
656
663
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
657
664
|
};
|
|
658
|
-
let
|
|
659
|
-
re(k.value.dataset) && (
|
|
665
|
+
let l = [];
|
|
666
|
+
re(k.value.dataset) && (l = [
|
|
660
667
|
{
|
|
661
668
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
662
669
|
absoluteValues: k.value.dataset,
|
|
@@ -665,7 +672,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
665
672
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
666
673
|
id: "bar_0"
|
|
667
674
|
}
|
|
668
|
-
]),
|
|
675
|
+
]), je(k.value.dataset) && (l = k.value.dataset.map((i, g) => ({
|
|
669
676
|
...i,
|
|
670
677
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
671
678
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${g}`,
|
|
@@ -678,18 +685,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
678
685
|
absoluteIndices: i.values.map((E, N) => N).slice(y.value.start, y.value.end)
|
|
679
686
|
})));
|
|
680
687
|
const u = {
|
|
681
|
-
max: Math.max(...
|
|
682
|
-
min: Math.min(...
|
|
683
|
-
maxSeries: Math.max(...
|
|
688
|
+
max: Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
689
|
+
min: Math.min(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
690
|
+
maxSeries: Math.max(...l.filter((i) => !_.value.includes(i.id)).map((i) => i.values.length))
|
|
684
691
|
}, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, P = t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((i) => ({
|
|
685
692
|
y: t.bottom - t.height * ((i + b) / (p.max + b)),
|
|
686
693
|
x: t.left - 8,
|
|
687
694
|
value: i
|
|
688
|
-
})), oe =
|
|
695
|
+
})), oe = l.map((i, g) => ({
|
|
689
696
|
...i,
|
|
690
697
|
shape: "square",
|
|
691
698
|
coordinates: i.values.map((E, N) => {
|
|
692
|
-
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, $e = F /
|
|
699
|
+
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, $e = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
|
|
693
700
|
return {
|
|
694
701
|
x: t.left + F * N + $e * g + e.value.barGap / 2,
|
|
695
702
|
y: E > 0 ? t.bottom - H : P,
|
|
@@ -698,10 +705,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
698
705
|
width: $e
|
|
699
706
|
};
|
|
700
707
|
})
|
|
701
|
-
})), Z =
|
|
708
|
+
})), Z = l.filter((i) => !_.value.includes(i.id)).map((i, g) => ({
|
|
702
709
|
...i,
|
|
703
710
|
coordinates: i.values.map((E, N) => {
|
|
704
|
-
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, $e = F /
|
|
711
|
+
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, $e = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
|
|
705
712
|
return {
|
|
706
713
|
x: t.left + F * N + $e * g + e.value.barGap / 2,
|
|
707
714
|
y: E > 0 ? t.bottom - H : P,
|
|
@@ -712,7 +719,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
712
719
|
})
|
|
713
720
|
}));
|
|
714
721
|
function X(i) {
|
|
715
|
-
return
|
|
722
|
+
return l.map((g) => ({
|
|
716
723
|
...g,
|
|
717
724
|
value: g.values[i],
|
|
718
725
|
absoluteIndex: g.absoluteIndices[i]
|
|
@@ -721,18 +728,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
721
728
|
function f(i) {
|
|
722
729
|
te.value = i, le.value = i;
|
|
723
730
|
const g = X(i);
|
|
724
|
-
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset:
|
|
731
|
+
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
|
|
725
732
|
const E = e.value.tooltipCustomFormat;
|
|
726
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }),
|
|
733
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), Ge(E) && rt(() => E({
|
|
727
734
|
datapoint: g,
|
|
728
735
|
seriesIndex: i,
|
|
729
|
-
series:
|
|
736
|
+
series: l,
|
|
730
737
|
config: e.value
|
|
731
738
|
})))
|
|
732
739
|
fe.value = E({
|
|
733
740
|
point: g,
|
|
734
741
|
seriesIndex: i,
|
|
735
|
-
series:
|
|
742
|
+
series: l,
|
|
736
743
|
config: e.value
|
|
737
744
|
});
|
|
738
745
|
else {
|
|
@@ -745,7 +752,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
745
752
|
<b>${ie(
|
|
746
753
|
e.value.formatter,
|
|
747
754
|
H.value,
|
|
748
|
-
|
|
755
|
+
j({
|
|
749
756
|
p: e.value.valuePrefix,
|
|
750
757
|
v: H.value,
|
|
751
758
|
s: e.value.valueSuffix,
|
|
@@ -788,8 +795,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
788
795
|
a.style.transition = "none", a.style.strokeDasharray = `${r}`, a.style.strokeDashoffset = `${r}`;
|
|
789
796
|
}
|
|
790
797
|
function It(a, { fromOpacity: r = "0", fromScale: t = "0.85" } = {}) {
|
|
791
|
-
a.forEach((
|
|
792
|
-
|
|
798
|
+
a.forEach((l) => {
|
|
799
|
+
l.style.animation = "none", l.style.transition = "none", l.style.opacity = r, l.style.transform = `scale(${t})`, l.style.transformBox = "fill-box", l.style.transformOrigin = "50% 50%";
|
|
793
800
|
});
|
|
794
801
|
}
|
|
795
802
|
function na(a) {
|
|
@@ -805,12 +812,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
805
812
|
if (!a.length) return [];
|
|
806
813
|
const t = a.map((P) => ({ el: P, x: r(P) })).filter((P) => Number.isFinite(P.x));
|
|
807
814
|
t.sort((P, F) => P.x - F.x);
|
|
808
|
-
let
|
|
815
|
+
let l = 1 / 0;
|
|
809
816
|
for (let P = 1; P < t.length; P++) {
|
|
810
817
|
const F = t[P].x - t[P - 1].x;
|
|
811
|
-
F > 0 && F <
|
|
818
|
+
F > 0 && F < l && (l = F);
|
|
812
819
|
}
|
|
813
|
-
const u = (
|
|
820
|
+
const u = (l === 1 / 0 ? 1 : l) / 2, p = [];
|
|
814
821
|
let b = { x: t[0].x, items: [t[0].el] };
|
|
815
822
|
for (let P = 1; P < t.length; P++) {
|
|
816
823
|
const { x: F, el: K } = t[P];
|
|
@@ -822,14 +829,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
822
829
|
pathDuration: a,
|
|
823
830
|
pathEasing: r = "ease-in-out",
|
|
824
831
|
pointDuration: t,
|
|
825
|
-
labelDuration:
|
|
832
|
+
labelDuration: l,
|
|
826
833
|
pointDelay: u = 0,
|
|
827
834
|
labelDelay: p = 0,
|
|
828
835
|
pointStep: b = 0,
|
|
829
836
|
labelStep: P = 0,
|
|
830
837
|
intraSeriesStep: F = 0
|
|
831
838
|
} = {}) {
|
|
832
|
-
const K = Array.isArray(Ae?.value) ? Ae.value : [Ae?.value].filter(Boolean), oe = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), Z = [...K, ...oe].filter(Boolean), X =
|
|
839
|
+
const K = Array.isArray(Ae?.value) ? Ae.value : [Ae?.value].filter(Boolean), oe = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), Z = [...K, ...oe].filter(Boolean), X = R?.value || null, f = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-plot")) : [], z = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
833
840
|
Z.forEach(oa), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(z, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), z.forEach((g) => g.classList.remove("quick-animation")), X && X.offsetWidth;
|
|
834
841
|
const d = f.length ? Pt(f, na) : [], i = z.length ? Pt(z, ia) : [];
|
|
835
842
|
requestAnimationFrame(() => {
|
|
@@ -844,13 +851,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
844
851
|
}), i.forEach((g, E) => {
|
|
845
852
|
g.items.forEach((N, H) => {
|
|
846
853
|
const ee = p + E * P + H * F;
|
|
847
|
-
N.style.transition = `opacity ${
|
|
854
|
+
N.style.transition = `opacity ${l}ms ease-out ${ee}ms, transform ${l}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
|
|
848
855
|
});
|
|
849
856
|
});
|
|
850
857
|
});
|
|
851
858
|
});
|
|
852
859
|
}
|
|
853
|
-
const ra =
|
|
860
|
+
const ra = M(() => {
|
|
854
861
|
if ($.value === A.LINE)
|
|
855
862
|
return c.value.legend.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
|
|
856
863
|
...a,
|
|
@@ -865,13 +872,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
865
872
|
type: "bar",
|
|
866
873
|
series: a.absoluteValues
|
|
867
874
|
}));
|
|
868
|
-
}), Q =
|
|
875
|
+
}), Q = M(() => Ba({
|
|
869
876
|
values: e.value.xyPeriods,
|
|
870
877
|
maxDatapoints: k.value.maxSeriesLength,
|
|
871
878
|
formatter: e.value.datetimeFormatter,
|
|
872
879
|
start: y.value.start,
|
|
873
880
|
end: y.value.end
|
|
874
|
-
})), ke =
|
|
881
|
+
})), ke = M(() => {
|
|
875
882
|
const a = e.value.xyPeriodsModulo;
|
|
876
883
|
return e.value.xyPeriods.length ? Math.min(a, [...new Set(Q.value.map((r) => r.text))].length) : a;
|
|
877
884
|
}), qe = w(!1);
|
|
@@ -886,18 +893,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
886
893
|
He.value = !He.value;
|
|
887
894
|
}
|
|
888
895
|
async function sa({ scale: a = 2 } = {}) {
|
|
889
|
-
if (!
|
|
890
|
-
const { width: r, height: t } =
|
|
896
|
+
if (!R.value) return;
|
|
897
|
+
const { width: r, height: t } = R.value.getBoundingClientRect(), l = r / t, { imageUri: u, base64: p } = await Va({ domElement: R.value, base64: !0, img: !0, scale: a });
|
|
891
898
|
return {
|
|
892
899
|
imageUri: u,
|
|
893
900
|
base64: p,
|
|
894
901
|
title: e.value.title,
|
|
895
902
|
width: r,
|
|
896
903
|
height: t,
|
|
897
|
-
aspectRatio:
|
|
904
|
+
aspectRatio: l
|
|
898
905
|
};
|
|
899
906
|
}
|
|
900
|
-
const va =
|
|
907
|
+
const va = M(() => S.value.width), da = M(() => S.value.height);
|
|
901
908
|
Ua({
|
|
902
909
|
timeLabelsEls: ae,
|
|
903
910
|
timeLabels: Q,
|
|
@@ -910,14 +917,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
910
917
|
height: da.value,
|
|
911
918
|
width: va.value
|
|
912
919
|
});
|
|
913
|
-
const ca =
|
|
920
|
+
const ca = M(() => e.value.backgroundColor), fa = M(() => $.value === A.DONUT ? I.value.legend : $.value === A.LINE ? c.value.legend : v.value.legend), ha = M(() => ({
|
|
914
921
|
show: e.value.showLegend,
|
|
915
922
|
bold: !1,
|
|
916
923
|
backgroundColor: e.value.backgroundColor,
|
|
917
924
|
color: e.value.color,
|
|
918
925
|
fontSize: e.value.legendFontSize,
|
|
919
926
|
position: e.value.legendPosition
|
|
920
|
-
})), ma =
|
|
927
|
+
})), ma = M(() => ({
|
|
921
928
|
text: e.value.title,
|
|
922
929
|
color: e.value.color,
|
|
923
930
|
fontSize: e.value.titleFontSize,
|
|
@@ -926,17 +933,17 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
926
933
|
subtitle: {
|
|
927
934
|
text: ""
|
|
928
935
|
}
|
|
929
|
-
})), { exportSvg: ga, getSvg: pa } =
|
|
936
|
+
})), { exportSvg: ga, getSvg: pa } = Na({
|
|
930
937
|
svg: Qe,
|
|
931
938
|
title: ma,
|
|
932
939
|
legend: ha,
|
|
933
940
|
legendItems: fa,
|
|
934
941
|
backgroundColor: ca
|
|
935
942
|
});
|
|
936
|
-
async function
|
|
943
|
+
async function Mt({ isCb: a }) {
|
|
937
944
|
if (a) {
|
|
938
|
-
const { blob: r, url: t, text:
|
|
939
|
-
e.value.userOptionsCallbacks.svg({ blob: r, url: t, text:
|
|
945
|
+
const { blob: r, url: t, text: l, dataUrl: u } = await pa();
|
|
946
|
+
e.value.userOptionsCallbacks.svg({ blob: r, url: t, text: l, dataUrl: u });
|
|
940
947
|
} else
|
|
941
948
|
ga();
|
|
942
949
|
}
|
|
@@ -944,21 +951,21 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
944
951
|
getImage: sa,
|
|
945
952
|
generatePdf: bt,
|
|
946
953
|
generateImage: St,
|
|
947
|
-
generateSvg:
|
|
954
|
+
generateSvg: Mt,
|
|
948
955
|
toggleTooltip: Ft,
|
|
949
956
|
toggleAnnotator: at,
|
|
950
957
|
toggleFullscreen: Ot
|
|
951
|
-
}), (a, r) => Yt.value ? (
|
|
958
|
+
}), (a, r) => Yt.value ? (o(), n("div", {
|
|
952
959
|
key: 0,
|
|
953
960
|
id: `${$.value}_${Y.value}`,
|
|
954
961
|
ref_key: "quickChart",
|
|
955
|
-
ref:
|
|
962
|
+
ref: R,
|
|
956
963
|
class: de({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": qe.value }),
|
|
957
964
|
style: B(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
958
965
|
onMouseenter: r[2] || (r[2] = () => kt(!0)),
|
|
959
966
|
onMouseleave: r[3] || (r[3] = () => kt(!1))
|
|
960
967
|
}, [
|
|
961
|
-
e.value.userOptionsButtons.annotator ? (
|
|
968
|
+
e.value.userOptionsButtons.annotator ? (o(), Ie(s(se), {
|
|
962
969
|
key: 0,
|
|
963
970
|
svgRef: s(Qe),
|
|
964
971
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -966,14 +973,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
966
973
|
active: He.value,
|
|
967
974
|
onClose: at
|
|
968
975
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
969
|
-
Zt.value ? (
|
|
976
|
+
Zt.value ? (o(), n("div", {
|
|
970
977
|
key: 1,
|
|
971
978
|
ref_key: "noTitle",
|
|
972
979
|
ref: ft,
|
|
973
980
|
class: "vue-data-ui-no-title-space",
|
|
974
981
|
style: "height:36px; width: 100%;background:transparent"
|
|
975
982
|
}, null, 512)) : m("", !0),
|
|
976
|
-
e.value.showUserOptions && (xt.value || Ne.value) ? (
|
|
983
|
+
e.value.showUserOptions && (xt.value || Ne.value) ? (o(), Ie(s(st), {
|
|
977
984
|
ref: "details",
|
|
978
985
|
key: `user_option_${ht.value}`,
|
|
979
986
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -990,7 +997,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
990
997
|
isTooltip: ye.value.showTooltip,
|
|
991
998
|
isFullscreen: qe.value,
|
|
992
999
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
993
|
-
chartElement:
|
|
1000
|
+
chartElement: R.value,
|
|
994
1001
|
position: e.value.userOptionsPosition,
|
|
995
1002
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
996
1003
|
isAnnotation: He.value,
|
|
@@ -999,17 +1006,17 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
999
1006
|
onToggleFullscreen: Ot,
|
|
1000
1007
|
onGeneratePdf: s(bt),
|
|
1001
1008
|
onGenerateImage: s(St),
|
|
1002
|
-
onGenerateSvg:
|
|
1009
|
+
onGenerateSvg: Mt,
|
|
1003
1010
|
onToggleTooltip: Ft,
|
|
1004
1011
|
onToggleAnnotator: at,
|
|
1005
1012
|
style: B({
|
|
1006
1013
|
visibility: xt.value ? Ne.value ? "visible" : "hidden" : "visible"
|
|
1007
1014
|
})
|
|
1008
|
-
},
|
|
1015
|
+
}, ba({ _: 2 }, [
|
|
1009
1016
|
a.$slots.menuIcon ? {
|
|
1010
1017
|
name: "menuIcon",
|
|
1011
|
-
fn: ne(({ isOpen: t, color:
|
|
1012
|
-
W(a.$slots, "menuIcon", me(ge({ isOpen: t, color:
|
|
1018
|
+
fn: ne(({ isOpen: t, color: l }) => [
|
|
1019
|
+
W(a.$slots, "menuIcon", me(ge({ isOpen: t, color: l })), void 0, !0)
|
|
1013
1020
|
]),
|
|
1014
1021
|
key: "0"
|
|
1015
1022
|
} : void 0,
|
|
@@ -1036,20 +1043,20 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1036
1043
|
} : void 0,
|
|
1037
1044
|
a.$slots.optionFullscreen ? {
|
|
1038
1045
|
name: "optionFullscreen",
|
|
1039
|
-
fn: ne(({ toggleFullscreen: t, isFullscreen:
|
|
1040
|
-
W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen:
|
|
1046
|
+
fn: ne(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
1047
|
+
W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
1041
1048
|
]),
|
|
1042
1049
|
key: "4"
|
|
1043
1050
|
} : void 0,
|
|
1044
1051
|
a.$slots.optionAnnotator ? {
|
|
1045
1052
|
name: "optionAnnotator",
|
|
1046
|
-
fn: ne(({ toggleAnnotator: t, isAnnotator:
|
|
1047
|
-
W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator:
|
|
1053
|
+
fn: ne(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
1054
|
+
W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
1048
1055
|
]),
|
|
1049
1056
|
key: "5"
|
|
1050
1057
|
} : void 0
|
|
1051
1058
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
1052
|
-
e.value.title ? (
|
|
1059
|
+
e.value.title ? (o(), n("div", {
|
|
1053
1060
|
key: 3,
|
|
1054
1061
|
ref_key: "quickChartTitle",
|
|
1055
1062
|
ref: Oe,
|
|
@@ -1059,16 +1066,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1059
1066
|
C("div", {
|
|
1060
1067
|
id: `legend-top-${Y.value}`
|
|
1061
1068
|
}, null, 8, Ka),
|
|
1062
|
-
$.value ? (
|
|
1069
|
+
$.value ? (o(), n("svg", {
|
|
1063
1070
|
key: 4,
|
|
1064
1071
|
ref_key: "svgRef",
|
|
1065
1072
|
ref: Qe,
|
|
1066
|
-
xmlns: s(
|
|
1073
|
+
xmlns: s(Ta),
|
|
1067
1074
|
viewBox: Jt.value,
|
|
1068
1075
|
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
1069
1076
|
}, [
|
|
1070
|
-
be(s(
|
|
1071
|
-
a.$slots["chart-background"] && $.value === A.BAR ? (
|
|
1077
|
+
be(s(G)),
|
|
1078
|
+
a.$slots["chart-background"] && $.value === A.BAR ? (o(), n("foreignObject", {
|
|
1072
1079
|
key: 0,
|
|
1073
1080
|
x: v.value.drawingArea.left,
|
|
1074
1081
|
y: v.value.drawingArea.top,
|
|
@@ -1080,7 +1087,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1080
1087
|
}, [
|
|
1081
1088
|
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1082
1089
|
], 8, tl)) : m("", !0),
|
|
1083
|
-
a.$slots["chart-background"] && $.value === A.LINE ? (
|
|
1090
|
+
a.$slots["chart-background"] && $.value === A.LINE ? (o(), n("foreignObject", {
|
|
1084
1091
|
key: 1,
|
|
1085
1092
|
x: c.value.drawingArea.left,
|
|
1086
1093
|
y: c.value.drawingArea.top,
|
|
@@ -1092,7 +1099,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1092
1099
|
}, [
|
|
1093
1100
|
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1094
1101
|
], 8, al)) : m("", !0),
|
|
1095
|
-
a.$slots["chart-background"] && $.value === A.DONUT ? (
|
|
1102
|
+
a.$slots["chart-background"] && $.value === A.DONUT ? (o(), n("foreignObject", {
|
|
1096
1103
|
key: 2,
|
|
1097
1104
|
x: 0,
|
|
1098
1105
|
y: 0,
|
|
@@ -1135,12 +1142,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1135
1142
|
}, null, 8, ul)
|
|
1136
1143
|
], 8, il)
|
|
1137
1144
|
]),
|
|
1138
|
-
$.value === A.DONUT ? (
|
|
1139
|
-
e.value.showDataLabels ? (
|
|
1140
|
-
(
|
|
1141
|
-
I.value.isArcBigEnough(t) ? (
|
|
1145
|
+
$.value === A.DONUT ? (o(), n(x, { key: 3 }, [
|
|
1146
|
+
e.value.showDataLabels ? (o(), n("g", rl, [
|
|
1147
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n(x, null, [
|
|
1148
|
+
I.value.isArcBigEnough(t) ? (o(), n("path", {
|
|
1142
1149
|
key: 0,
|
|
1143
|
-
d: s(
|
|
1150
|
+
d: s(Ia)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * Ct.value, 12, e.value.donutCurvedMarkers),
|
|
1144
1151
|
stroke: t.color,
|
|
1145
1152
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
1146
1153
|
"stroke-linecap": "round",
|
|
@@ -1158,24 +1165,24 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1158
1165
|
filter: e.value.donutUseShadow ? `url(#shadow_${Y.value})` : ""
|
|
1159
1166
|
}, null, 8, vl),
|
|
1160
1167
|
C("g", dl, [
|
|
1161
|
-
(
|
|
1168
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
1162
1169
|
d: t.arcSlice,
|
|
1163
1170
|
fill: t.color,
|
|
1164
|
-
stroke:
|
|
1171
|
+
stroke: Re.value,
|
|
1165
1172
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1166
1173
|
filter: Ce(t.id)
|
|
1167
1174
|
}, null, 8, cl))), 256)),
|
|
1168
|
-
(
|
|
1175
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
1169
1176
|
d: t.arcSlice,
|
|
1170
1177
|
fill: "transparent",
|
|
1171
|
-
onMouseenter: (u) => I.value.useTooltip({ datapoint: t, seriesIndex:
|
|
1172
|
-
onMouseout: (u) => I.value.killTooltip({ datapoint: t, seriesIndex:
|
|
1173
|
-
onClick: (u) => I.value.selectDatapoint({ datapoint: t, seriesIndex:
|
|
1178
|
+
onMouseenter: (u) => I.value.useTooltip({ datapoint: t, seriesIndex: l }),
|
|
1179
|
+
onMouseout: (u) => I.value.killTooltip({ datapoint: t, seriesIndex: l }),
|
|
1180
|
+
onClick: (u) => I.value.selectDatapoint({ datapoint: t, seriesIndex: l })
|
|
1174
1181
|
}, null, 40, fl))), 256))
|
|
1175
1182
|
]),
|
|
1176
|
-
e.value.showDataLabels ? (
|
|
1177
|
-
(
|
|
1178
|
-
I.value.isArcBigEnough(t) ? (
|
|
1183
|
+
e.value.showDataLabels ? (o(), n("g", hl, [
|
|
1184
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n(x, null, [
|
|
1185
|
+
I.value.isArcBigEnough(t) ? (o(), n("circle", {
|
|
1179
1186
|
key: 0,
|
|
1180
1187
|
cx: s(Pe)(t).x,
|
|
1181
1188
|
cy: s(ut)(t) - 3.7,
|
|
@@ -1185,7 +1192,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1185
1192
|
r: 3,
|
|
1186
1193
|
filter: Ce(t.id)
|
|
1187
1194
|
}, null, 8, ml)) : m("", !0),
|
|
1188
|
-
I.value.isArcBigEnough(t) ? (
|
|
1195
|
+
I.value.isArcBigEnough(t) ? (o(), n("text", {
|
|
1189
1196
|
key: 1,
|
|
1190
1197
|
"text-anchor": s(Pe)(t, !0, 20).anchor,
|
|
1191
1198
|
x: s(Pe)(t, !0).x,
|
|
@@ -1196,15 +1203,15 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1196
1203
|
}, U(I.value.displayArcPercentage(t, I.value.chart)) + " (" + U(s(ie)(
|
|
1197
1204
|
e.value.formatter,
|
|
1198
1205
|
t.value,
|
|
1199
|
-
s(
|
|
1206
|
+
s(j)({
|
|
1200
1207
|
p: e.value.valuePrefix,
|
|
1201
1208
|
v: t.value,
|
|
1202
1209
|
s: e.value.valueSuffix,
|
|
1203
1210
|
r: e.value.dataLabelRoundingValue
|
|
1204
1211
|
}),
|
|
1205
|
-
{ datapoint: t, seriesIndex:
|
|
1212
|
+
{ datapoint: t, seriesIndex: l }
|
|
1206
1213
|
)) + ") ", 9, gl)) : m("", !0),
|
|
1207
|
-
I.value.isArcBigEnough(t, !0, 20) ? (
|
|
1214
|
+
I.value.isArcBigEnough(t, !0, 20) ? (o(), n("text", {
|
|
1208
1215
|
key: 2,
|
|
1209
1216
|
"text-anchor": s(Pe)(t).anchor,
|
|
1210
1217
|
x: s(Pe)(t, !0).x,
|
|
@@ -1215,7 +1222,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1215
1222
|
}, U(t.name), 9, pl)) : m("", !0)
|
|
1216
1223
|
], 64))), 256))
|
|
1217
1224
|
])) : m("", !0),
|
|
1218
|
-
e.value.donutShowTotal ? (
|
|
1225
|
+
e.value.donutShowTotal ? (o(), n("g", yl, [
|
|
1219
1226
|
C("text", {
|
|
1220
1227
|
"text-anchor": "middle",
|
|
1221
1228
|
x: I.value.drawingArea.centerX,
|
|
@@ -1229,7 +1236,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1229
1236
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
1230
1237
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1231
1238
|
fill: e.value.color
|
|
1232
|
-
}, U(s(
|
|
1239
|
+
}, U(s(j)({
|
|
1233
1240
|
p: e.value.valuePrefix,
|
|
1234
1241
|
v: I.value.total,
|
|
1235
1242
|
s: e.value.valueSuffix,
|
|
@@ -1237,10 +1244,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1237
1244
|
})), 9, kl)
|
|
1238
1245
|
])) : m("", !0)
|
|
1239
1246
|
], 64)) : m("", !0),
|
|
1240
|
-
$.value === A.LINE ? (
|
|
1241
|
-
e.value.xyShowGrid ? (
|
|
1242
|
-
(
|
|
1243
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1247
|
+
$.value === A.LINE ? (o(), n(x, { key: 4 }, [
|
|
1248
|
+
e.value.xyShowGrid ? (o(), n("g", bl, [
|
|
1249
|
+
(o(!0), n(x, null, T(c.value.yLabels, (t) => (o(), n(x, null, [
|
|
1250
|
+
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
1244
1251
|
key: 0,
|
|
1245
1252
|
x1: c.value.drawingArea.left,
|
|
1246
1253
|
x2: c.value.drawingArea.right,
|
|
@@ -1251,9 +1258,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1251
1258
|
"stroke-linecap": "round"
|
|
1252
1259
|
}, null, 8, Sl)) : m("", !0)
|
|
1253
1260
|
], 64))), 256)),
|
|
1254
|
-
(
|
|
1255
|
-
x1: c.value.drawingArea.left + c.value.slotSize *
|
|
1256
|
-
x2: c.value.drawingArea.left + c.value.slotSize *
|
|
1261
|
+
(o(!0), n(x, null, T(c.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
|
|
1262
|
+
x1: c.value.drawingArea.left + c.value.slotSize * l,
|
|
1263
|
+
x2: c.value.drawingArea.left + c.value.slotSize * l,
|
|
1257
1264
|
y1: c.value.drawingArea.top,
|
|
1258
1265
|
y2: c.value.drawingArea.bottom,
|
|
1259
1266
|
stroke: e.value.xyGridStroke,
|
|
@@ -1261,7 +1268,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1261
1268
|
"stroke-linecap": "round"
|
|
1262
1269
|
}, null, 8, wl))), 256))
|
|
1263
1270
|
])) : m("", !0),
|
|
1264
|
-
e.value.xyShowAxis ? (
|
|
1271
|
+
e.value.xyShowAxis ? (o(), n("g", Al, [
|
|
1265
1272
|
C("line", {
|
|
1266
1273
|
x1: c.value.drawingArea.left,
|
|
1267
1274
|
x2: c.value.drawingArea.left,
|
|
@@ -1281,14 +1288,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1281
1288
|
"stroke-linecap": "round"
|
|
1282
1289
|
}, null, 8, _l)
|
|
1283
1290
|
])) : m("", !0),
|
|
1284
|
-
e.value.xyShowScale ? (
|
|
1291
|
+
e.value.xyShowScale ? (o(), n("g", {
|
|
1285
1292
|
key: 2,
|
|
1286
1293
|
class: "yLabels",
|
|
1287
1294
|
ref_key: "scaleLabels",
|
|
1288
|
-
ref:
|
|
1295
|
+
ref: Me
|
|
1289
1296
|
}, [
|
|
1290
|
-
(
|
|
1291
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1297
|
+
(o(!0), n(x, null, T(c.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1298
|
+
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
1292
1299
|
key: 0,
|
|
1293
1300
|
x1: t.x + 4,
|
|
1294
1301
|
x2: c.value.drawingArea.left,
|
|
@@ -1298,7 +1305,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1298
1305
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1299
1306
|
"stroke-linecap": "round"
|
|
1300
1307
|
}, null, 8, zl)) : m("", !0),
|
|
1301
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1308
|
+
t.y <= c.value.drawingArea.bottom ? (o(), n("text", {
|
|
1302
1309
|
key: 1,
|
|
1303
1310
|
x: t.x,
|
|
1304
1311
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
@@ -1308,22 +1315,22 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1308
1315
|
}, U(s(ie)(
|
|
1309
1316
|
e.value.formatter,
|
|
1310
1317
|
t.value,
|
|
1311
|
-
s(
|
|
1318
|
+
s(j)({
|
|
1312
1319
|
p: e.value.valuePrefix,
|
|
1313
1320
|
v: t.value,
|
|
1314
1321
|
s: e.value.valueSuffix,
|
|
1315
1322
|
r: e.value.dataLabelRoundingValue
|
|
1316
1323
|
}),
|
|
1317
|
-
{ datapoint: t, seriesIndex:
|
|
1324
|
+
{ datapoint: t, seriesIndex: l }
|
|
1318
1325
|
)), 9, Cl)) : m("", !0)
|
|
1319
1326
|
], 64))), 256))
|
|
1320
1327
|
], 512)) : m("", !0),
|
|
1321
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1322
|
-
(
|
|
1323
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1328
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", $l, [
|
|
1329
|
+
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1330
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("line", {
|
|
1324
1331
|
key: 0,
|
|
1325
|
-
x1: c.value.drawingArea.left + c.value.slotSize * (
|
|
1326
|
-
x2: c.value.drawingArea.left + c.value.slotSize * (
|
|
1332
|
+
x1: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
|
|
1333
|
+
x2: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
|
|
1327
1334
|
y1: c.value.drawingArea.bottom,
|
|
1328
1335
|
y2: c.value.drawingArea.bottom + 4,
|
|
1329
1336
|
stroke: e.value.xyAxisStroke,
|
|
@@ -1335,16 +1342,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1335
1342
|
ref_key: "timeLabelsEls",
|
|
1336
1343
|
ref: ae
|
|
1337
1344
|
}, [
|
|
1338
|
-
(
|
|
1339
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1345
|
+
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1346
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", Tl, [
|
|
1340
1347
|
String(t).includes(`
|
|
1341
|
-
`) ? (
|
|
1348
|
+
`) ? (o(), n("text", {
|
|
1342
1349
|
key: 1,
|
|
1343
1350
|
class: "vue-data-ui-time-label",
|
|
1344
1351
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1345
1352
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1346
1353
|
fill: e.value.color,
|
|
1347
|
-
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (
|
|
1354
|
+
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1348
1355
|
innerHTML: s(Bt)({
|
|
1349
1356
|
content: String(t),
|
|
1350
1357
|
fontSize: e.value.xyLabelsXFontSize,
|
|
@@ -1352,21 +1359,21 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1352
1359
|
x: 0,
|
|
1353
1360
|
y: 0
|
|
1354
1361
|
})
|
|
1355
|
-
}, null, 8, Pl)) : (
|
|
1362
|
+
}, null, 8, Pl)) : (o(), n("text", {
|
|
1356
1363
|
key: 0,
|
|
1357
1364
|
class: "vue-data-ui-time-label",
|
|
1358
1365
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1359
1366
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1360
1367
|
fill: e.value.color,
|
|
1361
|
-
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (
|
|
1368
|
+
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1362
1369
|
}, U(t), 9, Il))
|
|
1363
1370
|
])) : m("", !0)
|
|
1364
1371
|
], 64))), 256))
|
|
1365
1372
|
], 512)
|
|
1366
1373
|
])) : m("", !0),
|
|
1367
1374
|
C("g", Ol, [
|
|
1368
|
-
(
|
|
1369
|
-
e.value.lineSmooth ? (
|
|
1375
|
+
(o(!0), n(x, null, T(c.value.dataset, (t, l) => (o(), n("g", Fl, [
|
|
1376
|
+
e.value.lineSmooth ? (o(), n(x, { key: 0 }, [
|
|
1370
1377
|
C("path", {
|
|
1371
1378
|
ref_for: !0,
|
|
1372
1379
|
ref_key: "pathWrapper",
|
|
@@ -1378,7 +1385,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1378
1385
|
fill: "none",
|
|
1379
1386
|
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1380
1387
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1381
|
-
}, null, 14,
|
|
1388
|
+
}, null, 14, Ml),
|
|
1382
1389
|
C("path", {
|
|
1383
1390
|
ref_for: !0,
|
|
1384
1391
|
ref_key: "pathTop",
|
|
@@ -1390,8 +1397,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1390
1397
|
fill: "none",
|
|
1391
1398
|
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1392
1399
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1393
|
-
}, null, 14,
|
|
1394
|
-
], 64)) : (
|
|
1400
|
+
}, null, 14, Rl)
|
|
1401
|
+
], 64)) : (o(), n(x, { key: 1 }, [
|
|
1395
1402
|
C("path", {
|
|
1396
1403
|
ref_for: !0,
|
|
1397
1404
|
ref_key: "pathWrapper",
|
|
@@ -1417,7 +1424,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1417
1424
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1418
1425
|
}, null, 14, Bl)
|
|
1419
1426
|
], 64)),
|
|
1420
|
-
(
|
|
1427
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("circle", {
|
|
1421
1428
|
cx: u.x,
|
|
1422
1429
|
cy: s(ue)(u.y),
|
|
1423
1430
|
r: 3,
|
|
@@ -1429,9 +1436,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1429
1436
|
}, null, 14, Dl))), 256))
|
|
1430
1437
|
]))), 256))
|
|
1431
1438
|
]),
|
|
1432
|
-
e.value.showDataLabels ? (
|
|
1433
|
-
(
|
|
1434
|
-
(
|
|
1439
|
+
e.value.showDataLabels ? (o(), n("g", Ul, [
|
|
1440
|
+
(o(!0), n(x, null, T(c.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1441
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("text", {
|
|
1435
1442
|
"text-anchor": "middle",
|
|
1436
1443
|
"font-size": e.value.dataLabelFontSize,
|
|
1437
1444
|
fill: t.color,
|
|
@@ -1442,7 +1449,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1442
1449
|
}, U(s(ie)(
|
|
1443
1450
|
e.value.formatter,
|
|
1444
1451
|
s(ue)(u.value),
|
|
1445
|
-
s(
|
|
1452
|
+
s(j)({
|
|
1446
1453
|
p: e.value.valuePrefix,
|
|
1447
1454
|
v: s(ue)(u.value),
|
|
1448
1455
|
s: e.value.valueSuffix,
|
|
@@ -1452,24 +1459,24 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1452
1459
|
)), 15, Vl))), 256))
|
|
1453
1460
|
], 64))), 256))
|
|
1454
1461
|
])) : m("", !0),
|
|
1455
|
-
Ke.value ? (
|
|
1456
|
-
(
|
|
1457
|
-
x: c.value.drawingArea.left +
|
|
1462
|
+
Ke.value ? (o(), n("g", ql, [
|
|
1463
|
+
(o(!0), n(x, null, T(c.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
|
|
1464
|
+
x: c.value.drawingArea.left + l * c.value.slotSize,
|
|
1458
1465
|
y: c.value.drawingArea.top,
|
|
1459
1466
|
height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
|
|
1460
1467
|
width: c.value.slotSize <= 0 ? 1e-5 : c.value.slotSize,
|
|
1461
|
-
fill: [te.value, le.value].includes(
|
|
1468
|
+
fill: [te.value, le.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1462
1469
|
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1463
|
-
onMouseenter: (u) => c.value.useTooltip(
|
|
1464
|
-
onMouseleave: (u) => c.value.killTooltip(
|
|
1465
|
-
onClick: (u) => c.value.selectDatapoint(
|
|
1470
|
+
onMouseenter: (u) => c.value.useTooltip(l),
|
|
1471
|
+
onMouseleave: (u) => c.value.killTooltip(l),
|
|
1472
|
+
onClick: (u) => c.value.selectDatapoint(l)
|
|
1466
1473
|
}, null, 44, Hl))), 256))
|
|
1467
1474
|
])) : m("", !0)
|
|
1468
1475
|
], 64)) : m("", !0),
|
|
1469
|
-
$.value === A.BAR ? (
|
|
1470
|
-
e.value.xyShowGrid ? (
|
|
1471
|
-
(
|
|
1472
|
-
t.y <= v.value.drawingArea.bottom ? (
|
|
1476
|
+
$.value === A.BAR ? (o(), n(x, { key: 5 }, [
|
|
1477
|
+
e.value.xyShowGrid ? (o(), n("g", Wl, [
|
|
1478
|
+
(o(!0), n(x, null, T(v.value.yLabels, (t) => (o(), n(x, null, [
|
|
1479
|
+
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
1473
1480
|
key: 0,
|
|
1474
1481
|
x1: v.value.drawingArea.left,
|
|
1475
1482
|
x2: v.value.drawingArea.right,
|
|
@@ -1480,17 +1487,17 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1480
1487
|
"stroke-linecap": "round"
|
|
1481
1488
|
}, null, 8, Xl)) : m("", !0)
|
|
1482
1489
|
], 64))), 256)),
|
|
1483
|
-
(
|
|
1484
|
-
x1: v.value.drawingArea.left + v.value.slotSize *
|
|
1485
|
-
x2: v.value.drawingArea.left + v.value.slotSize *
|
|
1490
|
+
(o(!0), n(x, null, T(v.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
|
|
1491
|
+
x1: v.value.drawingArea.left + v.value.slotSize * l,
|
|
1492
|
+
x2: v.value.drawingArea.left + v.value.slotSize * l,
|
|
1486
1493
|
y1: v.value.drawingArea.top,
|
|
1487
1494
|
y2: v.value.drawingArea.bottom,
|
|
1488
1495
|
stroke: e.value.xyGridStroke,
|
|
1489
1496
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1490
1497
|
"stroke-linecap": "round"
|
|
1491
|
-
}, null, 8,
|
|
1498
|
+
}, null, 8, Gl))), 256))
|
|
1492
1499
|
])) : m("", !0),
|
|
1493
|
-
e.value.xyShowAxis ? (
|
|
1500
|
+
e.value.xyShowAxis ? (o(), n("g", jl, [
|
|
1494
1501
|
C("line", {
|
|
1495
1502
|
x1: v.value.drawingArea.left,
|
|
1496
1503
|
x2: v.value.drawingArea.left,
|
|
@@ -1510,14 +1517,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1510
1517
|
"stroke-linecap": "round"
|
|
1511
1518
|
}, null, 8, Zl)
|
|
1512
1519
|
])) : m("", !0),
|
|
1513
|
-
e.value.xyShowScale ? (
|
|
1520
|
+
e.value.xyShowScale ? (o(), n("g", {
|
|
1514
1521
|
key: 2,
|
|
1515
1522
|
class: "yLabels",
|
|
1516
1523
|
ref_key: "scaleLabels",
|
|
1517
|
-
ref:
|
|
1524
|
+
ref: Me
|
|
1518
1525
|
}, [
|
|
1519
|
-
(
|
|
1520
|
-
t.y <= v.value.drawingArea.bottom ? (
|
|
1526
|
+
(o(!0), n(x, null, T(v.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1527
|
+
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
1521
1528
|
key: 0,
|
|
1522
1529
|
x1: t.x + 4,
|
|
1523
1530
|
x2: v.value.drawingArea.left,
|
|
@@ -1527,7 +1534,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1527
1534
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1528
1535
|
"stroke-linecap": "round"
|
|
1529
1536
|
}, null, 8, Jl)) : m("", !0),
|
|
1530
|
-
t.y <= v.value.drawingArea.bottom ? (
|
|
1537
|
+
t.y <= v.value.drawingArea.bottom ? (o(), n("text", {
|
|
1531
1538
|
key: 1,
|
|
1532
1539
|
x: t.x,
|
|
1533
1540
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
@@ -1537,20 +1544,20 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1537
1544
|
}, U(s(ie)(
|
|
1538
1545
|
e.value.formatter,
|
|
1539
1546
|
t.value,
|
|
1540
|
-
s(
|
|
1547
|
+
s(j)({
|
|
1541
1548
|
p: e.value.valuePrefix,
|
|
1542
1549
|
v: t.value,
|
|
1543
1550
|
s: e.value.valueSuffix,
|
|
1544
1551
|
r: e.value.dataLabelRoundingValue
|
|
1545
1552
|
}),
|
|
1546
|
-
{ datapoint: t, seriesIndex:
|
|
1553
|
+
{ datapoint: t, seriesIndex: l }
|
|
1547
1554
|
)), 9, Ql)) : m("", !0)
|
|
1548
1555
|
], 64))), 256))
|
|
1549
1556
|
], 512)) : m("", !0),
|
|
1550
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1551
|
-
(
|
|
1552
|
-
x1: v.value.drawingArea.left + v.value.slotSize * (
|
|
1553
|
-
x2: v.value.drawingArea.left + v.value.slotSize * (
|
|
1557
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", Kl, [
|
|
1558
|
+
(o(!0), n(x, null, T(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, l) => (o(), n("line", {
|
|
1559
|
+
x1: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
|
|
1560
|
+
x2: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
|
|
1554
1561
|
y1: v.value.drawingArea.bottom,
|
|
1555
1562
|
y2: v.value.drawingArea.bottom + 4,
|
|
1556
1563
|
stroke: e.value.xyAxisStroke,
|
|
@@ -1561,16 +1568,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1561
1568
|
ref_key: "timeLabelsEls",
|
|
1562
1569
|
ref: ae
|
|
1563
1570
|
}, [
|
|
1564
|
-
(
|
|
1565
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1571
|
+
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1572
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", to, [
|
|
1566
1573
|
String(t).includes(`
|
|
1567
|
-
`) ? (
|
|
1574
|
+
`) ? (o(), n("text", {
|
|
1568
1575
|
key: 1,
|
|
1569
1576
|
class: "vue-data-ui-time-label",
|
|
1570
1577
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1571
1578
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1572
1579
|
fill: e.value.color,
|
|
1573
|
-
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (
|
|
1580
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1574
1581
|
innerHTML: s(Bt)({
|
|
1575
1582
|
content: String(t),
|
|
1576
1583
|
fontSize: e.value.xyLabelsXFontSize,
|
|
@@ -1578,21 +1585,21 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1578
1585
|
x: 0,
|
|
1579
1586
|
y: 0
|
|
1580
1587
|
})
|
|
1581
|
-
}, null, 8, lo)) : (
|
|
1588
|
+
}, null, 8, lo)) : (o(), n("text", {
|
|
1582
1589
|
key: 0,
|
|
1583
1590
|
class: "vue-data-ui-time-label",
|
|
1584
1591
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1585
1592
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1586
1593
|
fill: e.value.color,
|
|
1587
|
-
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (
|
|
1594
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1588
1595
|
}, U(t), 9, ao))
|
|
1589
1596
|
])) : m("", !0)
|
|
1590
1597
|
], 64))), 256))
|
|
1591
1598
|
], 512)
|
|
1592
1599
|
])) : m("", !0),
|
|
1593
1600
|
C("g", oo, [
|
|
1594
|
-
(
|
|
1595
|
-
(
|
|
1601
|
+
(o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1602
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("rect", {
|
|
1596
1603
|
x: u.x,
|
|
1597
1604
|
width: u.width <= 0 ? 1e-5 : u.width,
|
|
1598
1605
|
height: s(ue)(u.height <= 0 ? 1e-5 : u.height),
|
|
@@ -1603,14 +1610,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1603
1610
|
"stroke-linecap": "round",
|
|
1604
1611
|
class: de({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !s(V) })
|
|
1605
1612
|
}, [
|
|
1606
|
-
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (
|
|
1613
|
+
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (o(), n("animate", {
|
|
1607
1614
|
key: 0,
|
|
1608
1615
|
attributeName: "height",
|
|
1609
1616
|
from: 0,
|
|
1610
1617
|
to: u.height,
|
|
1611
1618
|
dur: "0.5s"
|
|
1612
1619
|
}, null, 8, io)) : m("", !0),
|
|
1613
|
-
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (
|
|
1620
|
+
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (o(), n("animate", {
|
|
1614
1621
|
key: 1,
|
|
1615
1622
|
attributeName: "y",
|
|
1616
1623
|
from: v.value.absoluteZero,
|
|
@@ -1620,9 +1627,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1620
1627
|
], 10, no))), 256))
|
|
1621
1628
|
], 64))), 256))
|
|
1622
1629
|
]),
|
|
1623
|
-
e.value.showDataLabels ? (
|
|
1624
|
-
(
|
|
1625
|
-
(
|
|
1630
|
+
e.value.showDataLabels ? (o(), n("g", ro, [
|
|
1631
|
+
(o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1632
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("text", {
|
|
1626
1633
|
x: u.x + u.width / 2,
|
|
1627
1634
|
y: s(ue)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1628
1635
|
"text-anchor": "middle",
|
|
@@ -1632,7 +1639,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1632
1639
|
}, U(s(ie)(
|
|
1633
1640
|
e.value.formatter,
|
|
1634
1641
|
s(ue)(u.value),
|
|
1635
|
-
s(
|
|
1642
|
+
s(j)({
|
|
1636
1643
|
p: e.value.valuePrefix,
|
|
1637
1644
|
v: s(ue)(u.value),
|
|
1638
1645
|
s: e.value.valueSuffix,
|
|
@@ -1642,22 +1649,22 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1642
1649
|
)), 9, so))), 256))
|
|
1643
1650
|
], 64))), 256))
|
|
1644
1651
|
])) : m("", !0),
|
|
1645
|
-
Ke.value ? (
|
|
1646
|
-
(
|
|
1647
|
-
x: v.value.drawingArea.left +
|
|
1652
|
+
Ke.value ? (o(), n("g", vo, [
|
|
1653
|
+
(o(!0), n(x, null, T(v.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
|
|
1654
|
+
x: v.value.drawingArea.left + l * v.value.slotSize,
|
|
1648
1655
|
y: v.value.drawingArea.top,
|
|
1649
1656
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1650
1657
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1651
|
-
fill: [te.value, le.value].includes(
|
|
1658
|
+
fill: [te.value, le.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1652
1659
|
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1653
|
-
onMouseenter: (u) => v.value.useTooltip(
|
|
1654
|
-
onMouseleave: (u) => v.value.killTooltip(
|
|
1655
|
-
onClick: (u) => v.value.selectDatapoint(
|
|
1660
|
+
onMouseenter: (u) => v.value.useTooltip(l),
|
|
1661
|
+
onMouseleave: (u) => v.value.killTooltip(l),
|
|
1662
|
+
onClick: (u) => v.value.selectDatapoint(l)
|
|
1656
1663
|
}, null, 44, co))), 256))
|
|
1657
1664
|
])) : m("", !0)
|
|
1658
1665
|
], 64)) : m("", !0),
|
|
1659
|
-
[A.LINE, A.BAR].includes($.value) ? (
|
|
1660
|
-
e.value.xAxisLabel && $.value === A.LINE ? (
|
|
1666
|
+
[A.LINE, A.BAR].includes($.value) ? (o(), n("g", fo, [
|
|
1667
|
+
e.value.xAxisLabel && $.value === A.LINE ? (o(), n("g", {
|
|
1661
1668
|
key: 0,
|
|
1662
1669
|
ref_key: "xAxisLabel",
|
|
1663
1670
|
ref: gt
|
|
@@ -1670,7 +1677,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1670
1677
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1671
1678
|
}, U(e.value.xAxisLabel), 9, ho)
|
|
1672
1679
|
], 512)) : m("", !0),
|
|
1673
|
-
e.value.xAxisLabel && $.value === A.BAR ? (
|
|
1680
|
+
e.value.xAxisLabel && $.value === A.BAR ? (o(), n("g", {
|
|
1674
1681
|
key: 1,
|
|
1675
1682
|
ref_key: "xAxisLabel",
|
|
1676
1683
|
ref: gt
|
|
@@ -1683,7 +1690,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1683
1690
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1684
1691
|
}, U(e.value.xAxisLabel), 9, mo)
|
|
1685
1692
|
], 512)) : m("", !0),
|
|
1686
|
-
e.value.yAxisLabel && $.value === A.LINE ? (
|
|
1693
|
+
e.value.yAxisLabel && $.value === A.LINE ? (o(), n("g", {
|
|
1687
1694
|
key: 2,
|
|
1688
1695
|
ref_key: "yAxisLabel",
|
|
1689
1696
|
ref: pt
|
|
@@ -1695,7 +1702,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1695
1702
|
"text-anchor": "middle"
|
|
1696
1703
|
}, U(e.value.yAxisLabel), 9, go)
|
|
1697
1704
|
], 512)) : m("", !0),
|
|
1698
|
-
e.value.yAxisLabel && $.value === A.BAR ? (
|
|
1705
|
+
e.value.yAxisLabel && $.value === A.BAR ? (o(), n("g", {
|
|
1699
1706
|
key: 3,
|
|
1700
1707
|
ref_key: "yAxisLabel",
|
|
1701
1708
|
ref: pt
|
|
@@ -1709,15 +1716,15 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1709
1716
|
], 512)) : m("", !0)
|
|
1710
1717
|
])) : m("", !0)
|
|
1711
1718
|
], 12, el)) : m("", !0),
|
|
1712
|
-
a.$slots.watermark ? (
|
|
1719
|
+
a.$slots.watermark ? (o(), n("div", yo, [
|
|
1713
1720
|
W(a.$slots, "watermark", me(ge({ isPrinting: s(Be) || s(De) })), void 0, !0)
|
|
1714
1721
|
])) : m("", !0),
|
|
1715
|
-
[A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (
|
|
1722
|
+
[A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (o(), n("div", {
|
|
1716
1723
|
key: `slicer_${Fe.value}`,
|
|
1717
1724
|
ref_key: "quickChartSlicer",
|
|
1718
1725
|
ref: dt
|
|
1719
1726
|
}, [
|
|
1720
|
-
(
|
|
1727
|
+
(o(), Ie(qa, {
|
|
1721
1728
|
ref_key: "slicerComponent",
|
|
1722
1729
|
ref: $t,
|
|
1723
1730
|
key: `slicer_${Fe.value}`,
|
|
@@ -1769,18 +1776,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1769
1776
|
C("div", {
|
|
1770
1777
|
id: `legend-bottom-${Y.value}`
|
|
1771
1778
|
}, null, 8, xo),
|
|
1772
|
-
mt.value ? (
|
|
1779
|
+
mt.value ? (o(), Ie(Sa, {
|
|
1773
1780
|
key: 7,
|
|
1774
1781
|
to: e.value.legendPosition === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
|
|
1775
1782
|
}, [
|
|
1776
|
-
e.value.showLegend ? (
|
|
1783
|
+
e.value.showLegend ? (o(), n("div", {
|
|
1777
1784
|
key: 0,
|
|
1778
1785
|
ref_key: "quickChartLegend",
|
|
1779
1786
|
ref: vt,
|
|
1780
1787
|
class: "vue-ui-quick-chart-legend",
|
|
1781
1788
|
style: B(`background:transparent;color:${e.value.color}`)
|
|
1782
1789
|
}, [
|
|
1783
|
-
$.value === A.DONUT ? (
|
|
1790
|
+
$.value === A.DONUT ? (o(!0), n(x, { key: 0 }, T(I.value.legend, (t, l) => (o(), n("div", {
|
|
1784
1791
|
class: "vue-ui-quick-chart-legend-item",
|
|
1785
1792
|
onClick: (u) => {
|
|
1786
1793
|
Qt(t, I.value.dataset), pe("selectLegend", t);
|
|
@@ -1790,7 +1797,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1790
1797
|
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1791
1798
|
key: 0,
|
|
1792
1799
|
ref_for: !0
|
|
1793
|
-
}, { legend: t }), void 0, !0) : (
|
|
1800
|
+
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1794
1801
|
be(s(q), {
|
|
1795
1802
|
name: e.value.legendIcon,
|
|
1796
1803
|
stroke: t.color,
|
|
@@ -1804,31 +1811,31 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1804
1811
|
}, U(_.value.includes(t.id) ? "-" : s(ie)(
|
|
1805
1812
|
e.value.formatter,
|
|
1806
1813
|
t.absoluteValue,
|
|
1807
|
-
s(
|
|
1814
|
+
s(j)({
|
|
1808
1815
|
p: e.value.valuePrefix,
|
|
1809
1816
|
v: t.absoluteValue,
|
|
1810
1817
|
s: e.value.valueSuffix,
|
|
1811
1818
|
r: e.value.dataLabelRoundingValue
|
|
1812
1819
|
}),
|
|
1813
|
-
{ datapoint: t, seriesIndex:
|
|
1820
|
+
{ datapoint: t, seriesIndex: l }
|
|
1814
1821
|
)), 5),
|
|
1815
|
-
_.value.includes(t.id) ? (
|
|
1822
|
+
_.value.includes(t.id) ? (o(), n("span", {
|
|
1816
1823
|
key: 0,
|
|
1817
1824
|
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1818
|
-
}, " ( - % ) ", 4)) : Ue.value ? (
|
|
1825
|
+
}, " ( - % ) ", 4)) : Ue.value ? (o(), n("span", {
|
|
1819
1826
|
key: 1,
|
|
1820
1827
|
style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1821
|
-
}, " ( - % ) ", 4)) : (
|
|
1828
|
+
}, " ( - % ) ", 4)) : (o(), n("span", {
|
|
1822
1829
|
key: 2,
|
|
1823
1830
|
style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1824
|
-
}, " (" + U(s(
|
|
1831
|
+
}, " (" + U(s(j)({
|
|
1825
1832
|
v: t.value / I.value.total * 100,
|
|
1826
1833
|
s: "%",
|
|
1827
1834
|
r: e.value.dataLabelRoundingPercentage
|
|
1828
1835
|
})) + ") ", 5))
|
|
1829
1836
|
], 64))
|
|
1830
1837
|
], 12, ko))), 256)) : m("", !0),
|
|
1831
|
-
$.value === A.LINE ? (
|
|
1838
|
+
$.value === A.LINE ? (o(!0), n(x, { key: 1 }, T(c.value.legend, (t, l) => (o(), n("div", {
|
|
1832
1839
|
class: "vue-ui-quick-chart-legend-item",
|
|
1833
1840
|
onClick: (u) => {
|
|
1834
1841
|
Lt(t.id, c.value.legend.length - 1), pe("selectLegend", t);
|
|
@@ -1838,7 +1845,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1838
1845
|
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1839
1846
|
key: 0,
|
|
1840
1847
|
ref_for: !0
|
|
1841
|
-
}, { legend: t }), void 0, !0) : (
|
|
1848
|
+
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1842
1849
|
be(s(q), {
|
|
1843
1850
|
name: e.value.legendIcon,
|
|
1844
1851
|
stroke: t.color,
|
|
@@ -1849,7 +1856,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1849
1856
|
}, U(t.name), 5)
|
|
1850
1857
|
], 64))
|
|
1851
1858
|
], 12, bo))), 256)) : m("", !0),
|
|
1852
|
-
$.value === A.BAR ? (
|
|
1859
|
+
$.value === A.BAR ? (o(!0), n(x, { key: 2 }, T(v.value.legend, (t, l) => (o(), n("div", {
|
|
1853
1860
|
class: "vue-ui-quick-chart-legend-item",
|
|
1854
1861
|
onClick: (u) => {
|
|
1855
1862
|
Lt(t.id, v.value.legend.length - 1), pe("selectLegend", t);
|
|
@@ -1859,7 +1866,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1859
1866
|
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1860
1867
|
key: 0,
|
|
1861
1868
|
ref_for: !0
|
|
1862
|
-
}, { legend: t }), void 0, !0) : (
|
|
1869
|
+
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1863
1870
|
be(s(q), {
|
|
1864
1871
|
name: e.value.legendIcon,
|
|
1865
1872
|
stroke: t.color,
|
|
@@ -1872,7 +1879,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1872
1879
|
], 12, So))), 256)) : m("", !0)
|
|
1873
1880
|
], 4)) : m("", !0)
|
|
1874
1881
|
], 8, ["to"])) : m("", !0),
|
|
1875
|
-
a.$slots.source ? (
|
|
1882
|
+
a.$slots.source ? (o(), n("div", {
|
|
1876
1883
|
key: 8,
|
|
1877
1884
|
ref_key: "source",
|
|
1878
1885
|
ref: ct,
|
|
@@ -1891,10 +1898,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1891
1898
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1892
1899
|
position: e.value.tooltipPosition,
|
|
1893
1900
|
offsetY: e.value.tooltipOffsetY,
|
|
1894
|
-
parent:
|
|
1901
|
+
parent: R.value,
|
|
1895
1902
|
content: fe.value,
|
|
1896
1903
|
isFullscreen: qe.value,
|
|
1897
|
-
isCustom: s(
|
|
1904
|
+
isCustom: s(Ge)(e.value.tooltipCustomFormat),
|
|
1898
1905
|
smooth: e.value.tooltipSmooth,
|
|
1899
1906
|
smoothForce: e.value.tooltipSmoothForce,
|
|
1900
1907
|
smoothSnapThreshold: e.value.tooltipSmoothSnapThreshold,
|
|
@@ -1908,8 +1915,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1908
1915
|
]),
|
|
1909
1916
|
_: 3
|
|
1910
1917
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
1911
|
-
s(V) ? (
|
|
1912
|
-
], 46, Qa)) : (
|
|
1918
|
+
s(V) ? (o(), Ie(Ma, { key: 9 })) : m("", !0)
|
|
1919
|
+
], 46, Qa)) : (o(), n("div", wo, [
|
|
1913
1920
|
be(s(q), {
|
|
1914
1921
|
name: "circleCancel",
|
|
1915
1922
|
stroke: "red"
|
|
@@ -1917,7 +1924,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1917
1924
|
r[5] || (r[5] = C("span", null, "Dataset is not processable", -1))
|
|
1918
1925
|
]));
|
|
1919
1926
|
}
|
|
1920
|
-
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-
|
|
1927
|
+
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-ad4e3d0e"]]);
|
|
1921
1928
|
export {
|
|
1922
1929
|
Bo as default
|
|
1923
1930
|
};
|