vue-data-ui 3.3.3 → 3.4.1
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-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-VpPtLYhK.js} +1 -1
- package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CJXSEhan.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-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-BzVpWnNO.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-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-oDJui39L.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-wycTM073.js} +56 -56
- package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +39 -39
- package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-CIsX5UJw.js} +7 -7
- package/dist/vue-ui-candlestick-BRFx3_KK.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-hJySHJTu.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-D4GjvQh0.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-By2NOs0N.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-OCmAkTNs.js} +59 -59
- package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-C7fwU9xb.js} +67 -67
- package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-dVVBUQJz.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-BoWGaQP0.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-YMPZ3CVA.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-BE62rVS3.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-kNpDFAWo.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-BBBiXXyk.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-PQNTTl3Y.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-D3gQxQz3.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-CKWQButF.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DYFzdR4Z.js} +91 -91
- package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-Cklyb74B.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-Cvq4ZuLe.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-Bm78P1ES.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-Bh5jTb31.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BPhJzots.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-DbJR9CN3.js} +86 -86
- package/dist/vue-ui-radar-CrenQprr.js +938 -0
- package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-BJ5RuZ0j.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-CKuom5Bu.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-B84GAEf4.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-CBX-g9w3.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-CZ8xxpEU.js} +3 -3
- package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-DOf7-cIf.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-D-MPA2zf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9xRiVSU.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-BWb0lqQP.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-BF-qr8Ti.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-DnCUpk50.js} +17 -17
- package/dist/vue-ui-stackbar-DvJ8Hahn.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-SAh1gIs5.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BJdDfMYD.js} +18 -18
- package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-BBFEJ8c6.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-D8DH6QSN.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-CaUdAHBE.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-_sUH1d3J.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-DXduzuW4.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-JdjmgwQj.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-h8zoi4Rc.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-Ck1Mx37j.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-CjWvuukM.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-Dw71_Mu2.js} +6 -6
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/dist/vue-ui-xy-tSMgXqqb.js +3375 -0
- package/package.json +2 -2
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- package/dist/vue-ui-radar-Csznqw19.js +0 -891
- package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
- package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
- package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ee, ref as w, computed as
|
|
2
|
-
import { c as wa, t as Aa, b as La, p as J,
|
|
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
3
|
import { t as Ut, u as Pa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Oa, a as Vt } from "./useNestedProp-
|
|
5
|
-
import { u as Fa, B as
|
|
6
|
-
import { u as
|
|
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
7
|
import { u as Na } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Ba } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
9
|
import { u as Da } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as Ua } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
-
import Va from "./img-
|
|
12
|
-
import { S as qa } from "./Slicer-
|
|
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-VpPtLYhK.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,
|
|
@@ -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 } = Da({ config: { text: e.value.title } }),
|
|
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({
|
|
@@ -209,7 +209,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
209
209
|
defaultConfig: a
|
|
210
210
|
}),
|
|
211
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") ?
|
|
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,7 +228,7 @@ 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
233
|
a || Ca({
|
|
234
234
|
componentName: "VueUiQuickChart",
|
|
@@ -236,11 +236,11 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
236
236
|
debug: Je.value
|
|
237
237
|
});
|
|
238
238
|
}, { immediate: !0 });
|
|
239
|
-
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } =
|
|
239
|
+
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } = Ra({
|
|
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,7 +251,7 @@ 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
|
});
|
|
@@ -259,7 +259,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
259
259
|
if ($a(D.dataset) || (yt.value = e.value.loading), e.value.responsive) {
|
|
260
260
|
const a = Ut(() => {
|
|
261
261
|
const { width: r, height: t } = Pa({
|
|
262
|
-
chart:
|
|
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}`;
|
|
@@ -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
|
|
@@ -376,7 +376,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
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
|
}
|
|
@@ -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)));
|
|
@@ -487,7 +487,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
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
492
|
return p > l ? p : l;
|
|
493
493
|
}, 0)), a + 4;
|
|
@@ -505,10 +505,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
505
505
|
}), Nt(() => {
|
|
506
506
|
tt.value = 0;
|
|
507
507
|
});
|
|
508
|
-
const Ve =
|
|
508
|
+
const Ve = M(() => {
|
|
509
509
|
let a = 0, r = 0;
|
|
510
510
|
return ae.value && (r = tt.value), a + r;
|
|
511
|
-
}), c =
|
|
511
|
+
}), c = M(() => {
|
|
512
512
|
if ($.value !== A.LINE) return null;
|
|
513
513
|
const a = {
|
|
514
514
|
height: S.value.height,
|
|
@@ -537,7 +537,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
537
537
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
538
538
|
id: "line_0"
|
|
539
539
|
}
|
|
540
|
-
]),
|
|
540
|
+
]), je(k.value.dataset) && (l = k.value.dataset.map((d, i) => ({
|
|
541
541
|
...d,
|
|
542
542
|
values: d.VALUE || d.DATA || d.SERIE || d.SERIES || d.VALUES || d.NUM || 0,
|
|
543
543
|
name: d.NAME || d.DESCRIPTION || d.TITLE || d.LABEL || `Serie ${i}`,
|
|
@@ -586,7 +586,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
586
586
|
const i = Z(d);
|
|
587
587
|
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: l };
|
|
588
588
|
const g = e.value.tooltipCustomFormat;
|
|
589
|
-
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({
|
|
590
590
|
datapoint: i,
|
|
591
591
|
seriesIndex: d,
|
|
592
592
|
series: l,
|
|
@@ -608,7 +608,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
608
608
|
<b>${ie(
|
|
609
609
|
e.value.formatter,
|
|
610
610
|
N.value,
|
|
611
|
-
|
|
611
|
+
j({
|
|
612
612
|
p: e.value.valuePrefix,
|
|
613
613
|
v: N.value,
|
|
614
614
|
s: e.value.valueSuffix,
|
|
@@ -643,7 +643,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
643
643
|
killTooltip: f,
|
|
644
644
|
selectDatapoint: z
|
|
645
645
|
};
|
|
646
|
-
}), v =
|
|
646
|
+
}), v = M(() => {
|
|
647
647
|
if ($.value !== A.BAR) return null;
|
|
648
648
|
const a = {
|
|
649
649
|
height: S.value.height,
|
|
@@ -672,7 +672,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
672
672
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
673
673
|
id: "bar_0"
|
|
674
674
|
}
|
|
675
|
-
]),
|
|
675
|
+
]), je(k.value.dataset) && (l = k.value.dataset.map((i, g) => ({
|
|
676
676
|
...i,
|
|
677
677
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
678
678
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${g}`,
|
|
@@ -730,7 +730,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
730
730
|
const g = X(i);
|
|
731
731
|
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
|
|
732
732
|
const E = e.value.tooltipCustomFormat;
|
|
733
|
-
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({
|
|
734
734
|
datapoint: g,
|
|
735
735
|
seriesIndex: i,
|
|
736
736
|
series: l,
|
|
@@ -752,7 +752,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
752
752
|
<b>${ie(
|
|
753
753
|
e.value.formatter,
|
|
754
754
|
H.value,
|
|
755
|
-
|
|
755
|
+
j({
|
|
756
756
|
p: e.value.valuePrefix,
|
|
757
757
|
v: H.value,
|
|
758
758
|
s: e.value.valueSuffix,
|
|
@@ -836,7 +836,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
836
836
|
labelStep: P = 0,
|
|
837
837
|
intraSeriesStep: F = 0
|
|
838
838
|
} = {}) {
|
|
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 =
|
|
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")) : [];
|
|
840
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;
|
|
841
841
|
const d = f.length ? Pt(f, na) : [], i = z.length ? Pt(z, ia) : [];
|
|
842
842
|
requestAnimationFrame(() => {
|
|
@@ -857,7 +857,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
857
857
|
});
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
|
-
const ra =
|
|
860
|
+
const ra = M(() => {
|
|
861
861
|
if ($.value === A.LINE)
|
|
862
862
|
return c.value.legend.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
|
|
863
863
|
...a,
|
|
@@ -872,13 +872,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
872
872
|
type: "bar",
|
|
873
873
|
series: a.absoluteValues
|
|
874
874
|
}));
|
|
875
|
-
}), Q =
|
|
875
|
+
}), Q = M(() => Ba({
|
|
876
876
|
values: e.value.xyPeriods,
|
|
877
877
|
maxDatapoints: k.value.maxSeriesLength,
|
|
878
878
|
formatter: e.value.datetimeFormatter,
|
|
879
879
|
start: y.value.start,
|
|
880
880
|
end: y.value.end
|
|
881
|
-
})), ke =
|
|
881
|
+
})), ke = M(() => {
|
|
882
882
|
const a = e.value.xyPeriodsModulo;
|
|
883
883
|
return e.value.xyPeriods.length ? Math.min(a, [...new Set(Q.value.map((r) => r.text))].length) : a;
|
|
884
884
|
}), qe = w(!1);
|
|
@@ -893,8 +893,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
893
893
|
He.value = !He.value;
|
|
894
894
|
}
|
|
895
895
|
async function sa({ scale: a = 2 } = {}) {
|
|
896
|
-
if (!
|
|
897
|
-
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 });
|
|
898
898
|
return {
|
|
899
899
|
imageUri: u,
|
|
900
900
|
base64: p,
|
|
@@ -904,7 +904,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
904
904
|
aspectRatio: l
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
|
-
const va =
|
|
907
|
+
const va = M(() => S.value.width), da = M(() => S.value.height);
|
|
908
908
|
Ua({
|
|
909
909
|
timeLabelsEls: ae,
|
|
910
910
|
timeLabels: Q,
|
|
@@ -917,14 +917,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
917
917
|
height: da.value,
|
|
918
918
|
width: va.value
|
|
919
919
|
});
|
|
920
|
-
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(() => ({
|
|
921
921
|
show: e.value.showLegend,
|
|
922
922
|
bold: !1,
|
|
923
923
|
backgroundColor: e.value.backgroundColor,
|
|
924
924
|
color: e.value.color,
|
|
925
925
|
fontSize: e.value.legendFontSize,
|
|
926
926
|
position: e.value.legendPosition
|
|
927
|
-
})), ma =
|
|
927
|
+
})), ma = M(() => ({
|
|
928
928
|
text: e.value.title,
|
|
929
929
|
color: e.value.color,
|
|
930
930
|
fontSize: e.value.titleFontSize,
|
|
@@ -940,7 +940,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
940
940
|
legendItems: fa,
|
|
941
941
|
backgroundColor: ca
|
|
942
942
|
});
|
|
943
|
-
async function
|
|
943
|
+
async function Mt({ isCb: a }) {
|
|
944
944
|
if (a) {
|
|
945
945
|
const { blob: r, url: t, text: l, dataUrl: u } = await pa();
|
|
946
946
|
e.value.userOptionsCallbacks.svg({ blob: r, url: t, text: l, dataUrl: u });
|
|
@@ -951,7 +951,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
951
951
|
getImage: sa,
|
|
952
952
|
generatePdf: bt,
|
|
953
953
|
generateImage: St,
|
|
954
|
-
generateSvg:
|
|
954
|
+
generateSvg: Mt,
|
|
955
955
|
toggleTooltip: Ft,
|
|
956
956
|
toggleAnnotator: at,
|
|
957
957
|
toggleFullscreen: Ot
|
|
@@ -959,7 +959,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
959
959
|
key: 0,
|
|
960
960
|
id: `${$.value}_${Y.value}`,
|
|
961
961
|
ref_key: "quickChart",
|
|
962
|
-
ref:
|
|
962
|
+
ref: R,
|
|
963
963
|
class: de({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": qe.value }),
|
|
964
964
|
style: B(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
965
965
|
onMouseenter: r[2] || (r[2] = () => kt(!0)),
|
|
@@ -997,7 +997,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
997
997
|
isTooltip: ye.value.showTooltip,
|
|
998
998
|
isFullscreen: qe.value,
|
|
999
999
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
1000
|
-
chartElement:
|
|
1000
|
+
chartElement: R.value,
|
|
1001
1001
|
position: e.value.userOptionsPosition,
|
|
1002
1002
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
1003
1003
|
isAnnotation: He.value,
|
|
@@ -1006,7 +1006,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1006
1006
|
onToggleFullscreen: Ot,
|
|
1007
1007
|
onGeneratePdf: s(bt),
|
|
1008
1008
|
onGenerateImage: s(St),
|
|
1009
|
-
onGenerateSvg:
|
|
1009
|
+
onGenerateSvg: Mt,
|
|
1010
1010
|
onToggleTooltip: Ft,
|
|
1011
1011
|
onToggleAnnotator: at,
|
|
1012
1012
|
style: B({
|
|
@@ -1074,7 +1074,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1074
1074
|
viewBox: Jt.value,
|
|
1075
1075
|
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
1076
1076
|
}, [
|
|
1077
|
-
be(s(
|
|
1077
|
+
be(s(G)),
|
|
1078
1078
|
a.$slots["chart-background"] && $.value === A.BAR ? (o(), n("foreignObject", {
|
|
1079
1079
|
key: 0,
|
|
1080
1080
|
x: v.value.drawingArea.left,
|
|
@@ -1168,7 +1168,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1168
1168
|
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
1169
1169
|
d: t.arcSlice,
|
|
1170
1170
|
fill: t.color,
|
|
1171
|
-
stroke:
|
|
1171
|
+
stroke: Re.value,
|
|
1172
1172
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1173
1173
|
filter: Ce(t.id)
|
|
1174
1174
|
}, null, 8, cl))), 256)),
|
|
@@ -1203,7 +1203,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1203
1203
|
}, U(I.value.displayArcPercentage(t, I.value.chart)) + " (" + U(s(ie)(
|
|
1204
1204
|
e.value.formatter,
|
|
1205
1205
|
t.value,
|
|
1206
|
-
s(
|
|
1206
|
+
s(j)({
|
|
1207
1207
|
p: e.value.valuePrefix,
|
|
1208
1208
|
v: t.value,
|
|
1209
1209
|
s: e.value.valueSuffix,
|
|
@@ -1236,7 +1236,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1236
1236
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
1237
1237
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1238
1238
|
fill: e.value.color
|
|
1239
|
-
}, U(s(
|
|
1239
|
+
}, U(s(j)({
|
|
1240
1240
|
p: e.value.valuePrefix,
|
|
1241
1241
|
v: I.value.total,
|
|
1242
1242
|
s: e.value.valueSuffix,
|
|
@@ -1292,7 +1292,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1292
1292
|
key: 2,
|
|
1293
1293
|
class: "yLabels",
|
|
1294
1294
|
ref_key: "scaleLabels",
|
|
1295
|
-
ref:
|
|
1295
|
+
ref: Me
|
|
1296
1296
|
}, [
|
|
1297
1297
|
(o(!0), n(x, null, T(c.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1298
1298
|
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
@@ -1315,7 +1315,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1315
1315
|
}, U(s(ie)(
|
|
1316
1316
|
e.value.formatter,
|
|
1317
1317
|
t.value,
|
|
1318
|
-
s(
|
|
1318
|
+
s(j)({
|
|
1319
1319
|
p: e.value.valuePrefix,
|
|
1320
1320
|
v: t.value,
|
|
1321
1321
|
s: e.value.valueSuffix,
|
|
@@ -1385,7 +1385,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1385
1385
|
fill: "none",
|
|
1386
1386
|
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1387
1387
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1388
|
-
}, null, 14,
|
|
1388
|
+
}, null, 14, Ml),
|
|
1389
1389
|
C("path", {
|
|
1390
1390
|
ref_for: !0,
|
|
1391
1391
|
ref_key: "pathTop",
|
|
@@ -1397,7 +1397,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1397
1397
|
fill: "none",
|
|
1398
1398
|
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1399
1399
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1400
|
-
}, null, 14,
|
|
1400
|
+
}, null, 14, Rl)
|
|
1401
1401
|
], 64)) : (o(), n(x, { key: 1 }, [
|
|
1402
1402
|
C("path", {
|
|
1403
1403
|
ref_for: !0,
|
|
@@ -1449,7 +1449,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1449
1449
|
}, U(s(ie)(
|
|
1450
1450
|
e.value.formatter,
|
|
1451
1451
|
s(ue)(u.value),
|
|
1452
|
-
s(
|
|
1452
|
+
s(j)({
|
|
1453
1453
|
p: e.value.valuePrefix,
|
|
1454
1454
|
v: s(ue)(u.value),
|
|
1455
1455
|
s: e.value.valueSuffix,
|
|
@@ -1495,9 +1495,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1495
1495
|
stroke: e.value.xyGridStroke,
|
|
1496
1496
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1497
1497
|
"stroke-linecap": "round"
|
|
1498
|
-
}, null, 8,
|
|
1498
|
+
}, null, 8, Gl))), 256))
|
|
1499
1499
|
])) : m("", !0),
|
|
1500
|
-
e.value.xyShowAxis ? (o(), n("g",
|
|
1500
|
+
e.value.xyShowAxis ? (o(), n("g", jl, [
|
|
1501
1501
|
C("line", {
|
|
1502
1502
|
x1: v.value.drawingArea.left,
|
|
1503
1503
|
x2: v.value.drawingArea.left,
|
|
@@ -1521,7 +1521,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1521
1521
|
key: 2,
|
|
1522
1522
|
class: "yLabels",
|
|
1523
1523
|
ref_key: "scaleLabels",
|
|
1524
|
-
ref:
|
|
1524
|
+
ref: Me
|
|
1525
1525
|
}, [
|
|
1526
1526
|
(o(!0), n(x, null, T(v.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1527
1527
|
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
@@ -1544,7 +1544,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1544
1544
|
}, U(s(ie)(
|
|
1545
1545
|
e.value.formatter,
|
|
1546
1546
|
t.value,
|
|
1547
|
-
s(
|
|
1547
|
+
s(j)({
|
|
1548
1548
|
p: e.value.valuePrefix,
|
|
1549
1549
|
v: t.value,
|
|
1550
1550
|
s: e.value.valueSuffix,
|
|
@@ -1639,7 +1639,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1639
1639
|
}, U(s(ie)(
|
|
1640
1640
|
e.value.formatter,
|
|
1641
1641
|
s(ue)(u.value),
|
|
1642
|
-
s(
|
|
1642
|
+
s(j)({
|
|
1643
1643
|
p: e.value.valuePrefix,
|
|
1644
1644
|
v: s(ue)(u.value),
|
|
1645
1645
|
s: e.value.valueSuffix,
|
|
@@ -1811,7 +1811,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1811
1811
|
}, U(_.value.includes(t.id) ? "-" : s(ie)(
|
|
1812
1812
|
e.value.formatter,
|
|
1813
1813
|
t.absoluteValue,
|
|
1814
|
-
s(
|
|
1814
|
+
s(j)({
|
|
1815
1815
|
p: e.value.valuePrefix,
|
|
1816
1816
|
v: t.absoluteValue,
|
|
1817
1817
|
s: e.value.valueSuffix,
|
|
@@ -1828,7 +1828,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1828
1828
|
}, " ( - % ) ", 4)) : (o(), n("span", {
|
|
1829
1829
|
key: 2,
|
|
1830
1830
|
style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1831
|
-
}, " (" + U(s(
|
|
1831
|
+
}, " (" + U(s(j)({
|
|
1832
1832
|
v: t.value / I.value.total * 100,
|
|
1833
1833
|
s: "%",
|
|
1834
1834
|
r: e.value.dataLabelRoundingPercentage
|
|
@@ -1898,10 +1898,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1898
1898
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1899
1899
|
position: e.value.tooltipPosition,
|
|
1900
1900
|
offsetY: e.value.tooltipOffsetY,
|
|
1901
|
-
parent:
|
|
1901
|
+
parent: R.value,
|
|
1902
1902
|
content: fe.value,
|
|
1903
1903
|
isFullscreen: qe.value,
|
|
1904
|
-
isCustom: s(
|
|
1904
|
+
isCustom: s(Ge)(e.value.tooltipCustomFormat),
|
|
1905
1905
|
smooth: e.value.tooltipSmooth,
|
|
1906
1906
|
smoothForce: e.value.tooltipSmoothForce,
|
|
1907
1907
|
smoothSnapThreshold: e.value.tooltipSmoothSnapThreshold,
|
|
@@ -1915,7 +1915,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1915
1915
|
]),
|
|
1916
1916
|
_: 3
|
|
1917
1917
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
1918
|
-
s(V) ? (o(), Ie(
|
|
1918
|
+
s(V) ? (o(), Ie(Ma, { key: 9 })) : m("", !0)
|
|
1919
1919
|
], 46, Qa)) : (o(), n("div", wo, [
|
|
1920
1920
|
be(s(q), {
|
|
1921
1921
|
name: "circleCancel",
|