vue-data-ui 2.3.65 → 2.3.67
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-DPnMmAX7.js → Arrow-C8pYyZqD.js} +1 -1
- package/dist/{Arrow-uesE2kaL.cjs → Arrow-Dswup7Lq.cjs} +1 -1
- package/dist/{BaseIcon-BNFf4B_v.js → BaseIcon-Dz58O3w1.js} +1 -1
- package/dist/{BaseIcon-3dGIQkTt.cjs → BaseIcon-wCGYJ8GM.cjs} +1 -1
- package/dist/{DataTable-BwHWRlRZ.js → DataTable-CzvZIRDs.js} +2 -2
- package/dist/{DataTable-UBogHlHz.cjs → DataTable-Dr67tL_4.cjs} +1 -1
- package/dist/{Legend-CsVEDSh6.js → Legend-C2DZGZN5.js} +1 -1
- package/dist/{Legend-DomGAell.cjs → Legend-CkIdFaKE.cjs} +1 -1
- package/dist/{Shape-D-NzWRg3.cjs → Shape-BfT5b6-S.cjs} +1 -1
- package/dist/{Shape-D3yIJobN.js → Shape-qXMEmkXY.js} +1 -1
- package/dist/Slicer-3itdmkZf.cjs +1 -0
- package/dist/Slicer-CnIWgBPY.js +381 -0
- package/dist/{Title-CRj-Ysyr.cjs → Title-BYDRRvqX.cjs} +1 -1
- package/dist/{Title-DbTGPg4G.js → Title-BxitYokc.js} +1 -1
- package/dist/{Tooltip-DBdcH3mQ.cjs → Tooltip-CtRqM9Sw.cjs} +1 -1
- package/dist/{Tooltip-u79R5W5y.js → Tooltip-DTntJRyb.js} +1 -1
- package/dist/index-DnCegWge.cjs +4 -0
- package/dist/{index-CguVaFlt.js → index-fMHmzYJu.js} +3 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DmS8KxmW.cjs → useNestedProp-18FTwhUW.cjs} +1 -1
- package/dist/{useNestedProp-BbEbJmgv.js → useNestedProp-lzTC0cjC.js} +1 -1
- package/dist/{usePrinter-ClsMRVJG.js → usePrinter-BEVwOH5x.js} +1 -1
- package/dist/{usePrinter-qYDc_jVR.cjs → usePrinter-C94KiYaY.cjs} +1 -1
- package/dist/{vue-data-ui-BQxedlG9.js → vue-data-ui-BG25mzqo.js} +57 -57
- package/dist/{vue-data-ui-DbkGvG6G.cjs → vue-data-ui-CqFeVAMl.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DFd8LLYs.js → vue-ui-3d-bar-D8WIzocy.js} +7 -7
- package/dist/{vue-ui-3d-bar-CsQlP4Di.cjs → vue-ui-3d-bar-DyVzM9lj.cjs} +1 -1
- package/dist/{vue-ui-accordion-x_3F7J52.cjs → vue-ui-accordion-CG_G9ock.cjs} +1 -1
- package/dist/{vue-ui-accordion-w15FGKRN.js → vue-ui-accordion-CVzTuENA.js} +3 -3
- package/dist/{vue-ui-age-pyramid-frmKw0vt.js → vue-ui-age-pyramid-BZEiDo6X.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DVfxc6Ov.cjs → vue-ui-age-pyramid-DgAJ_4pC.cjs} +1 -1
- package/dist/{vue-ui-annotator-BWF8Pe0l.js → vue-ui-annotator-DYMGXQSF.js} +1 -1
- package/dist/{vue-ui-annotator-DeTV1vC_.cjs → vue-ui-annotator-DwwLMn8x.cjs} +1 -1
- package/dist/{vue-ui-candlestick-ryLshJfb.cjs → vue-ui-candlestick-DMh_omoZ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C4VhdwJ6.js → vue-ui-candlestick-F7a1z8rF.js} +9 -9
- package/dist/{vue-ui-carousel-table-B8w17Va9.js → vue-ui-carousel-table-BAbXjbOY.js} +4 -4
- package/dist/{vue-ui-carousel-table-DVNL0Pst.cjs → vue-ui-carousel-table-BQZBWVfB.cjs} +1 -1
- package/dist/{vue-ui-chestnut-C6D2XKD_.cjs → vue-ui-chestnut-DGUOcpUb.cjs} +1 -1
- package/dist/{vue-ui-chestnut-J3y-gLdr.js → vue-ui-chestnut-bdGmk0m5.js} +6 -6
- package/dist/{vue-ui-cursor-uZQJBHDI.js → vue-ui-cursor-_Hme39yS.js} +2 -2
- package/dist/{vue-ui-cursor-8X87Qqag.cjs → vue-ui-cursor-zRPYiTzg.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BvxPzSpX.cjs → vue-ui-dashboard-BxcYVoZr.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B9cXpm-f.js → vue-ui-dashboard-sMYoIdL3.js} +2 -2
- package/dist/{vue-ui-digits-CH8cnwd1.cjs → vue-ui-digits-Do-yAjSx.cjs} +1 -1
- package/dist/{vue-ui-digits-CGRdypIC.js → vue-ui-digits-yn6cZZpI.js} +2 -2
- package/dist/{vue-ui-donut-Wc9_Wp7Z.js → vue-ui-donut-CZGAyjMJ.js} +9 -9
- package/dist/{vue-ui-donut-B6-Z6EDh.cjs → vue-ui-donut-D8By144q.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BYYu5GGU.js → vue-ui-donut-evolution-euuIoSwG.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DGEUEHTT.cjs → vue-ui-donut-evolution-wRc663rx.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-MhRtKyw1.cjs → vue-ui-dumbbell-DzDU6BtH.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CYMWl8i6.js → vue-ui-dumbbell-GwPAVNAr.js} +8 -8
- package/dist/{vue-ui-flow-Ch6-m_HE.cjs → vue-ui-flow-2tDYyk_d.cjs} +1 -1
- package/dist/{vue-ui-flow-B1HsQT8G.js → vue-ui-flow-D-2Yx4Pd.js} +7 -7
- package/dist/{vue-ui-galaxy-CFlBhbpn.js → vue-ui-galaxy-Cr1PHA7e.js} +9 -9
- package/dist/{vue-ui-galaxy-B5IQYeE2.cjs → vue-ui-galaxy-k1zIeVWl.cjs} +1 -1
- package/dist/{vue-ui-gauge-DQyUybt9.js → vue-ui-gauge-DrG1p_lu.js} +5 -5
- package/dist/{vue-ui-gauge-YclVOv9i.cjs → vue-ui-gauge-DyWEB9zv.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dc8Oh1GS.js → vue-ui-gizmo-BUeQIgPm.js} +2 -2
- package/dist/{vue-ui-gizmo-BV0cRYJR.cjs → vue-ui-gizmo-Cf6DtKdF.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dxet06AN.js → vue-ui-heatmap-1s92iamk.js} +8 -8
- package/dist/{vue-ui-heatmap-DvTbIgBC.cjs → vue-ui-heatmap-B9gzhzl-.cjs} +1 -1
- package/dist/{vue-ui-kpi-Obs0pp5K.cjs → vue-ui-kpi-Cocglkc1.cjs} +1 -1
- package/dist/{vue-ui-kpi-6Ug3wB5-.js → vue-ui-kpi-DXrL1517.js} +3 -3
- package/dist/{vue-ui-mini-loader--9JCcmel.cjs → vue-ui-mini-loader-3ssTbcFo.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DO8L0uoR.js → vue-ui-mini-loader-D1MAsGWr.js} +2 -2
- package/dist/{vue-ui-molecule-Di8d69m_.cjs → vue-ui-molecule-DFD-6XKb.cjs} +1 -1
- package/dist/{vue-ui-molecule-DUqT-xxF.js → vue-ui-molecule-QWFA_72V.js} +9 -9
- package/dist/{vue-ui-mood-radar-hwK3JZHx.cjs → vue-ui-mood-radar-DBq_gQ0i.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-UMlgOP0N.js → vue-ui-mood-radar-DXLP2L3n.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CoydBQ1Z.cjs → vue-ui-nested-donuts-Cx4Ia5Ga.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DFWDYNRb.js → vue-ui-nested-donuts-Cx57mbbY.js} +9 -9
- package/dist/{vue-ui-onion-Dxd8NNV8.cjs → vue-ui-onion-CApJ-Npg.cjs} +1 -1
- package/dist/{vue-ui-onion-CXscsP8f.js → vue-ui-onion-CE4wSxPC.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-B4y-tLrW.cjs → vue-ui-parallel-coordinate-plot-D8LWLRdK.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-8fsiFsCK.js → vue-ui-parallel-coordinate-plot-DVqDX4Xb.js} +10 -10
- package/dist/{vue-ui-quadrant-C8ZGy7Vz.cjs → vue-ui-quadrant-BNyw9TMO.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CtaVeR8A.js → vue-ui-quadrant-XSVao9uA.js} +10 -10
- package/dist/{vue-ui-quick-chart-BkbnCL9J.js → vue-ui-quick-chart-Ik_UH2Wj.js} +370 -363
- package/dist/vue-ui-quick-chart-uwdSvb9u.cjs +15 -0
- package/dist/{vue-ui-radar-FzvdUuQW.cjs → vue-ui-radar-B5aRCCKL.cjs} +1 -1
- package/dist/{vue-ui-radar-CYpFzHVj.js → vue-ui-radar-CR6ezAzt.js} +10 -10
- package/dist/{vue-ui-rating-Pbbo9WlF.js → vue-ui-rating-CD_nWk1T.js} +2 -2
- package/dist/{vue-ui-rating-CQMIQetd.cjs → vue-ui-rating-CguNsO-T.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DyVNLOkn.cjs → vue-ui-relation-circle-8FZkM92K.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DXN96O8B.js → vue-ui-relation-circle-DT2nom_x.js} +5 -5
- package/dist/{vue-ui-rings-Py5qpBEi.cjs → vue-ui-rings-CNY7UKKQ.cjs} +1 -1
- package/dist/{vue-ui-rings-RaL8pTXF.js → vue-ui-rings-cpj5NfzL.js} +9 -9
- package/dist/{vue-ui-scatter-C5-IZPAD.js → vue-ui-scatter-Bar7v9mt.js} +10 -10
- package/dist/{vue-ui-scatter-C0Qbl8if.cjs → vue-ui-scatter-lt_SEmmy.cjs} +1 -1
- package/dist/{vue-ui-screenshot-xDbAEPnl.js → vue-ui-screenshot-DLqFrK48.js} +1 -1
- package/dist/{vue-ui-screenshot-5dSbg20c.cjs → vue-ui-screenshot-DgPB2-6h.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D5jxUSy8.cjs → vue-ui-skeleton-Cey15-vY.cjs} +1 -1
- package/dist/{vue-ui-skeleton-ChHLL5Hw.js → vue-ui-skeleton-DiJmBrEY.js} +2 -2
- package/dist/{vue-ui-smiley-CMoVMgzF.js → vue-ui-smiley-9d8vQDje.js} +2 -2
- package/dist/{vue-ui-smiley-DELBP4YY.cjs → vue-ui-smiley-NcQqECQm.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CwTDE8hW.js → vue-ui-spark-trend-RIw8O12_.js} +4 -4
- package/dist/{vue-ui-spark-trend-Bd--ueZ_.cjs → vue-ui-spark-trend-gLgFrogO.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BI9p7mG3.cjs → vue-ui-sparkbar-BJZv7_r3.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DlHNW471.js → vue-ui-sparkbar-DpnX31Vt.js} +3 -3
- package/dist/{vue-ui-sparkgauge-OmKjwPSm.cjs → vue-ui-sparkgauge-2nfXMS4J.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Bv4PqAAa.js → vue-ui-sparkgauge-Ci1EXG01.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Du2G89Uf.cjs → vue-ui-sparkhistogram-B9Hzrj17.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Caz0-A2v.js → vue-ui-sparkhistogram-o1cCgVjJ.js} +4 -4
- package/dist/{vue-ui-sparkline-Cb9oSi7e.cjs → vue-ui-sparkline-Bpbwgdjl.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BjBx0Xph.js → vue-ui-sparkline-CTFZOTQ4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DAvtpGxR.cjs → vue-ui-sparkstackbar-D1a4pKvC.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D0h3xCgn.js → vue-ui-sparkstackbar-Dci-TIxt.js} +3 -3
- package/dist/{vue-ui-stackbar-D6Twi4kA.js → vue-ui-stackbar-DX86sbcN.js} +10 -10
- package/dist/{vue-ui-stackbar-DtGhGaha.cjs → vue-ui-stackbar-uyUtl8SO.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-hssak3_i.js → vue-ui-strip-plot-Br3W0ejH.js} +9 -9
- package/dist/{vue-ui-strip-plot-BKZS4u9o.cjs → vue-ui-strip-plot-C2NjIy5-.cjs} +1 -1
- package/dist/{vue-ui-table-DbA-NarQ.js → vue-ui-table-BFs9-zs7.js} +1 -1
- package/dist/{vue-ui-table-HbHx9LFn.cjs → vue-ui-table-Ctw9daYW.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bp2AW6SZ.js → vue-ui-table-heatmap-DqoiRtjC.js} +4 -4
- package/dist/{vue-ui-table-heatmap-YqkKo7Rw.cjs → vue-ui-table-heatmap-zAbifnaM.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D6tpky88.cjs → vue-ui-table-sparkline-DuUY9yJu.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CSCRSC9Z.js → vue-ui-table-sparkline-h4J419FI.js} +5 -5
- package/dist/{vue-ui-thermometer-BtNbxKWF.cjs → vue-ui-thermometer-Bt-SnP1Y.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C4D5DYLq.js → vue-ui-thermometer-D_4mS8Z8.js} +5 -5
- package/dist/{vue-ui-timer-CjSaHRia.cjs → vue-ui-timer-CMsje-f2.cjs} +1 -1
- package/dist/{vue-ui-timer-B1gf42-7.js → vue-ui-timer-CPZm7Dif.js} +4 -4
- package/dist/{vue-ui-tiremarks-B-E_m-JM.cjs → vue-ui-tiremarks-Bcm8DSj6.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-2w8HGpJh.js → vue-ui-tiremarks-CVBbjezc.js} +5 -5
- package/dist/{vue-ui-treemap-BratMgOF.js → vue-ui-treemap-1rEDHWrf.js} +9 -9
- package/dist/{vue-ui-treemap-TQu-XVV4.cjs → vue-ui-treemap-CB1gz8gX.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BWhOc_BN.js → vue-ui-vertical-bar-CfGS6Snt.js} +9 -9
- package/dist/{vue-ui-vertical-bar-CUSxr8J5.cjs → vue-ui-vertical-bar-DHFaoQcu.cjs} +1 -1
- package/dist/{vue-ui-waffle-BmjYKwYK.cjs → vue-ui-waffle-COf_Yi5Y.cjs} +1 -1
- package/dist/{vue-ui-waffle-CrunUoiX.js → vue-ui-waffle-D-niDah6.js} +9 -9
- package/dist/{vue-ui-wheel-8pydvFdd.js → vue-ui-wheel-BPcde5q6.js} +5 -5
- package/dist/{vue-ui-wheel-49jAAVu7.cjs → vue-ui-wheel-CKoly9Ay.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D5-ouQkK.js → vue-ui-word-cloud-C9Ok-uiw.js} +7 -7
- package/dist/{vue-ui-word-cloud-C89Siwo7.cjs → vue-ui-word-cloud-CPb5G65W.cjs} +1 -1
- package/dist/{vue-ui-xy-BZkuRafq.js → vue-ui-xy-BjpH25yC.js} +488 -481
- package/dist/vue-ui-xy-C9T7Qybt.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-DG-o3-nt.cjs → vue-ui-xy-canvas-DoDgOkMe.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DcywpKdf.js → vue-ui-xy-canvas-JpE-OhiQ.js} +10 -10
- package/package.json +1 -1
- package/dist/Slicer-BBKMtMzF.js +0 -328
- package/dist/Slicer-CyAlmC4y.cjs +0 -1
- package/dist/index-7N8NxNg5.cjs +0 -4
- package/dist/vue-ui-quick-chart-B4o_RZTj.cjs +0 -15
- package/dist/vue-ui-xy-DsiERLim.cjs +0 -3
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
1
|
+
import { ref as E, computed as W, watch as ot, onMounted as it, onBeforeUnmount as ut, openBlock as a, createElementBlock as l, normalizeClass as ne, normalizeStyle as F, createBlock as Pe, unref as f, createSlots as nt, withCtx as ae, renderSlot as D, normalizeProps as J, guardReactiveProps as fe, createCommentVNode as p, toDisplayString as T, createElementVNode as _, Fragment as m, renderList as L, mergeProps as Ie, createVNode as ge, pushScopeId as rt, popScopeId as st } from "vue";
|
|
2
|
+
import { u as vt, c as dt, t as ct, a as ht, p as U, b as ft, F as gt, e as mt, d as Ee, m as pt, B as qe, X as xt, j as yt, k as me, n as Te, i as H, f as O, P as We, s as X, x as _e, y as Re } from "./index-fMHmzYJu.js";
|
|
3
|
+
import { t as kt, u as bt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import Ae from "./BaseIcon-Dz58O3w1.js";
|
|
5
|
+
import { _ as St } from "./Tooltip-DTntJRyb.js";
|
|
6
|
+
import { u as wt, U as _t } from "./usePrinter-BEVwOH5x.js";
|
|
7
|
+
import { S as At } from "./Slicer-CnIWgBPY.js";
|
|
8
|
+
import Lt from "./vue-ui-skeleton-DiJmBrEY.js";
|
|
9
|
+
import { u as je } from "./useNestedProp-lzTC0cjC.js";
|
|
10
|
+
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const A = {
|
|
12
12
|
LINE: "LINE",
|
|
13
13
|
BAR: "BAR",
|
|
14
14
|
DONUT: "DONUT"
|
|
15
|
-
},
|
|
16
|
-
function
|
|
15
|
+
}, $t = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
16
|
+
function Ct({ dataset: s, barLineSwitch: $ = 6 }) {
|
|
17
17
|
let g = null, R = null, V = 0;
|
|
18
|
-
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`),
|
|
19
|
-
if (!
|
|
18
|
+
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`), pe(s) && (Z(s) && (s.length < $ ? g = A.BAR : g = A.LINE, R = s, V = s.length), Le(s))) {
|
|
19
|
+
if (!It(s))
|
|
20
20
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
21
|
+
const oe = Object.keys(s[0]), re = Object.values(s[0]);
|
|
22
|
+
if (!oe.some((P) => Et(P)))
|
|
23
23
|
return 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;
|
|
24
|
-
|
|
24
|
+
Ge(re, (P) => typeof P == "number") && (g = A.DONUT, R = s), Ge(re, (P) => Array.isArray(P) && Z(P)) && (He(s) > $ ? g = A.LINE : g = A.BAR, V = He(s), R = s.map((P) => ({
|
|
25
25
|
...P,
|
|
26
|
-
data:
|
|
27
|
-
}))), s = s.map((P) =>
|
|
26
|
+
data: Tt(P, (G) => Z(G))
|
|
27
|
+
}))), s = s.map((P) => Xe(P)), R = R.map((P) => Xe(P));
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return pe(s) && [...new Set(s.flatMap((oe) => Array.isArray(oe)))][0], {
|
|
30
30
|
dataset: s,
|
|
31
31
|
type: g,
|
|
32
32
|
usableDataset: R,
|
|
33
33
|
maxSeriesLength: V
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return !s ||
|
|
36
|
+
function Ze(s) {
|
|
37
|
+
return !s || pe(s) && !s.length;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function pe(s) {
|
|
40
40
|
return Array.isArray(s);
|
|
41
41
|
}
|
|
42
42
|
function Z(s) {
|
|
43
|
-
if (!
|
|
43
|
+
if (!pe(s) || Ze(s)) return !1;
|
|
44
44
|
const $ = s.map((g) => Number(g));
|
|
45
45
|
return ![...new Set($.flatMap((g) => typeof g == "number" && !isNaN(g)))].includes(!1);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return !
|
|
47
|
+
function Le(s) {
|
|
48
|
+
return !pe(s) || Ze(s) || !![...new Set(s.flatMap((g) => typeof g == "object" && !Array.isArray(g)))].includes(!1) ? !1 : !s.map((g) => Object.keys(g).length > 0).includes(!1);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pt(s, $) {
|
|
51
51
|
const g = Object.keys(s).sort(), R = Object.keys($).sort();
|
|
52
52
|
if (g.length !== R.length)
|
|
53
53
|
return !1;
|
|
54
54
|
for (let V = 0; V < g.length; V += 1) {
|
|
55
|
-
const j = g[V],
|
|
56
|
-
if (j !==
|
|
55
|
+
const j = g[V], le = R[V];
|
|
56
|
+
if (j !== le || typeof s[j] != typeof $[le])
|
|
57
57
|
return !1;
|
|
58
58
|
}
|
|
59
59
|
return !0;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function It(s) {
|
|
62
62
|
if (s.length <= 1) return !0;
|
|
63
63
|
for (let $ = 0; $ < s.length; $ += 1)
|
|
64
64
|
for (let g = $ + 1; g < s.length; g += 1)
|
|
65
|
-
if (
|
|
65
|
+
if (!Pt(s[$], s[g]))
|
|
66
66
|
return !1;
|
|
67
67
|
return !0;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
function Et(s) {
|
|
70
|
+
return $t.includes(s.toUpperCase());
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ge(s, $) {
|
|
73
73
|
let g = [];
|
|
74
74
|
for (let R = 0; R < s.length; R += 1)
|
|
75
75
|
g.push($(s[R]));
|
|
76
76
|
return g.includes(!0);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function He(s) {
|
|
79
79
|
return Math.max(...[...s].flatMap(($) => Object.values($).filter((g) => Z(g)).map((g) => g.length)));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Tt(s, $) {
|
|
82
82
|
return Object.values(s).filter((g) => $(g))[0];
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Xe(s) {
|
|
85
85
|
const $ = {};
|
|
86
86
|
for (let g in s)
|
|
87
87
|
s.hasOwnProperty(g) && ($[g.toUpperCase()] = s[g]);
|
|
88
88
|
return $;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const Ye = (s) => (rt("data-v-bf59d888"), s = s(), st(), s), Rt = ["id"], Nt = ["xmlns", "viewBox"], Ft = ["id"], Mt = ["id"], Ot = /* @__PURE__ */ Ye(() => /* @__PURE__ */ _("feColorMatrix", {
|
|
91
91
|
type: "saturate",
|
|
92
92
|
values: "0"
|
|
93
|
-
}, null, -1)),
|
|
93
|
+
}, null, -1)), Bt = ["id"], Ut = ["flood-color"], Dt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "donut-label-connectors"
|
|
96
|
-
},
|
|
96
|
+
}, Vt = ["d", "stroke", "stroke-width", "filter"], qt = ["cx", "cy", "r", "fill"], Wt = ["cx", "cy", "r", "fill", "filter"], jt = { class: "donut" }, Gt = ["d", "fill", "stroke", "stroke-width", "filter"], Ht = ["d", "onMouseenter", "onClick"], Xt = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "donut-labels quick-animation"
|
|
99
|
-
},
|
|
99
|
+
}, Zt = ["cx", "cy", "fill", "filter"], Yt = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Jt = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Qt = {
|
|
100
100
|
key: 2,
|
|
101
101
|
class: "donut-hollow quick-animation"
|
|
102
|
-
},
|
|
102
|
+
}, Kt = ["x", "y", "font-size", "fill"], ea = ["x", "y", "font-size", "fill"], ta = {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "line-grid"
|
|
105
|
-
},
|
|
105
|
+
}, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: "line-axis"
|
|
108
|
-
},
|
|
108
|
+
}, ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = {
|
|
109
109
|
key: 2,
|
|
110
110
|
class: "yLabels"
|
|
111
|
-
},
|
|
111
|
+
}, ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = ["x", "y", "font-size", "fill"], va = {
|
|
112
112
|
key: 3,
|
|
113
113
|
class: "periodLabels"
|
|
114
|
-
},
|
|
114
|
+
}, da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["font-size", "text-anchor", "fill", "transform"], ha = { class: "plots" }, fa = { class: "line-plot-series" }, ga = ["d", "stroke", "stroke-width"], ma = ["d", "stroke", "stroke-width"], pa = ["d", "stroke", "stroke-width"], xa = ["d", "stroke", "stroke-width"], ya = ["cx", "cy", "fill", "stroke"], ka = {
|
|
115
115
|
key: 4,
|
|
116
116
|
class: "dataLabels"
|
|
117
|
-
},
|
|
117
|
+
}, ba = ["font-size", "fill", "x", "y"], Sa = { class: "tooltip-traps" }, wa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], _a = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "line-grid"
|
|
120
|
-
},
|
|
120
|
+
}, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], za = {
|
|
121
121
|
key: 1,
|
|
122
122
|
class: "line-axis"
|
|
123
|
-
},
|
|
123
|
+
}, $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = {
|
|
124
124
|
key: 2,
|
|
125
125
|
class: "yLabels"
|
|
126
|
-
},
|
|
126
|
+
}, Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x", "y", "font-size", "fill"], Ta = {
|
|
127
127
|
key: 3,
|
|
128
128
|
class: "periodLabels"
|
|
129
|
-
},
|
|
129
|
+
}, Ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["font-size", "text-anchor", "transform", "fill"], Fa = { class: "plots" }, Ma = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Oa = ["to"], Ba = ["from", "to"], Ua = {
|
|
130
130
|
key: 4,
|
|
131
131
|
class: "dataLabels"
|
|
132
|
-
},
|
|
132
|
+
}, Da = ["x", "y", "font-size", "fill"], Va = { class: "tooltip-traps" }, qa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Wa = {
|
|
133
133
|
key: 3,
|
|
134
134
|
class: "axis-labels"
|
|
135
|
-
},
|
|
135
|
+
}, ja = { key: 0 }, Ga = ["font-size", "fill", "x", "y"], Ha = { key: 1 }, Xa = ["font-size", "fill", "x", "y"], Za = { key: 2 }, Ya = ["font-size", "fill", "transform"], Ja = { key: 3 }, Qa = ["font-size", "fill", "transform"], Ka = {
|
|
136
136
|
key: 4,
|
|
137
137
|
class: "vue-data-ui-watermark"
|
|
138
|
-
},
|
|
138
|
+
}, el = ["onClick"], tl = ["onClick"], al = ["onClick"], ll = {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "vue-ui-quick-chart-not-processable"
|
|
141
|
-
},
|
|
141
|
+
}, ol = /* @__PURE__ */ Ye(() => /* @__PURE__ */ _("span", null, "Dataset is not processable", -1)), il = {
|
|
142
142
|
__name: "vue-ui-quick-chart",
|
|
143
143
|
props: {
|
|
144
144
|
config: {
|
|
@@ -156,20 +156,20 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["selectDatapoint", "selectLegend"],
|
|
158
158
|
setup(s, { expose: $, emit: g }) {
|
|
159
|
-
const R = s, { vue_ui_quick_chart: V } =
|
|
160
|
-
const r =
|
|
159
|
+
const R = s, { vue_ui_quick_chart: V } = vt(), j = E(null), le = E(null), oe = E(null), re = E(null), P = E(dt()), G = E(!1), se = E(null), Q = E(""), q = E(null), w = E([]), Ne = E(0), ze = E(0), e = W(() => {
|
|
160
|
+
const r = je({
|
|
161
161
|
userConfig: R.config,
|
|
162
162
|
defaultConfig: V
|
|
163
163
|
});
|
|
164
164
|
return r.theme ? {
|
|
165
|
-
...
|
|
166
|
-
userConfig:
|
|
165
|
+
...je({
|
|
166
|
+
userConfig: ct.vue_ui_quick_chart[r.theme] || R.config,
|
|
167
167
|
defaultConfig: r
|
|
168
168
|
}),
|
|
169
|
-
customPalette:
|
|
169
|
+
customPalette: ht[r.theme] || U
|
|
170
170
|
} : r;
|
|
171
|
-
}),
|
|
172
|
-
const r =
|
|
171
|
+
}), ve = W(() => ft(e.value.customPalette)), xe = W(() => {
|
|
172
|
+
const r = Ct({ dataset: gt(R.dataset, [
|
|
173
173
|
"serie",
|
|
174
174
|
"series",
|
|
175
175
|
"data",
|
|
@@ -178,39 +178,39 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
178
178
|
"num"
|
|
179
179
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
180
180
|
return r || console.error("VueUiQuickChart : Dataset is not processable"), r;
|
|
181
|
-
}), k =
|
|
182
|
-
|
|
183
|
-
r ||
|
|
181
|
+
}), k = E(xe.value), Je = W(() => !!k.value), z = W(() => k.value ? k.value.type : null);
|
|
182
|
+
ot(() => z.value, (r) => {
|
|
183
|
+
r || mt({
|
|
184
184
|
componentName: "VueUiQuickChart",
|
|
185
185
|
type: "dataset"
|
|
186
186
|
});
|
|
187
187
|
}, { immediate: !0 });
|
|
188
|
-
const { isPrinting:
|
|
188
|
+
const { isPrinting: ye, isImaging: ke, generatePdf: Fe, generateImage: Me } = wt({
|
|
189
189
|
elementId: `${z.value}_${P.value}`,
|
|
190
190
|
fileName: e.value.title || z.value
|
|
191
|
-
}), b =
|
|
191
|
+
}), b = E({
|
|
192
192
|
width: e.value.width,
|
|
193
193
|
height: e.value.height
|
|
194
|
-
}),
|
|
194
|
+
}), be = E({
|
|
195
195
|
showTooltip: e.value.showTooltip
|
|
196
|
-
}),
|
|
197
|
-
|
|
196
|
+
}), Se = E(null);
|
|
197
|
+
it(() => {
|
|
198
198
|
if (e.value.responsive) {
|
|
199
|
-
const r =
|
|
200
|
-
const { width: c, height: t } =
|
|
199
|
+
const r = kt(() => {
|
|
200
|
+
const { width: c, height: t } = bt({
|
|
201
201
|
chart: j.value,
|
|
202
|
-
title: e.value.title ?
|
|
203
|
-
legend: e.value.showLegend ?
|
|
204
|
-
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ?
|
|
202
|
+
title: e.value.title ? le.value : null,
|
|
203
|
+
legend: e.value.showLegend ? oe.value : null,
|
|
204
|
+
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? re.value : null
|
|
205
205
|
});
|
|
206
206
|
b.value.width = c, b.value.height = t;
|
|
207
207
|
});
|
|
208
|
-
|
|
208
|
+
Se.value = new ResizeObserver(r), Se.value.observe(j.value.parentNode);
|
|
209
209
|
}
|
|
210
|
-
}),
|
|
211
|
-
|
|
210
|
+
}), ut(() => {
|
|
211
|
+
Se.value && Se.value.disconnect();
|
|
212
212
|
});
|
|
213
|
-
const
|
|
213
|
+
const Qe = W(() => {
|
|
214
214
|
switch (z.value) {
|
|
215
215
|
case A.LINE:
|
|
216
216
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
@@ -225,19 +225,19 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
225
225
|
function Oe(r) {
|
|
226
226
|
return [...r].map((c) => c.value).reduce((c, t) => c + t, 0);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function de(r) {
|
|
229
229
|
return e.value.blurOnHover && ![null, void 0].includes(q.value) && q.value !== r ? `url(#blur_${P.value})` : "";
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Be(r, c) {
|
|
232
232
|
w.value.includes(r) ? w.value = w.value.filter((t) => t !== r) : w.value.length < c && w.value.push(r);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
function
|
|
236
|
-
|
|
234
|
+
const Ue = E(null), De = E(null), we = E(!1);
|
|
235
|
+
function Ke(r, c) {
|
|
236
|
+
we.value = !0;
|
|
237
237
|
let t = r.value;
|
|
238
238
|
if (w.value.includes(r.id)) {
|
|
239
239
|
let n = function() {
|
|
240
|
-
t > u ? (
|
|
240
|
+
t > u ? (we.value = !1, cancelAnimationFrame(De.value), k.value = {
|
|
241
241
|
...k.value,
|
|
242
242
|
dataset: k.value.dataset.map((h, N) => r.id === `donut_${N}` ? {
|
|
243
243
|
...h,
|
|
@@ -251,14 +251,14 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
251
251
|
value: t,
|
|
252
252
|
VALUE: t
|
|
253
253
|
} : h)
|
|
254
|
-
},
|
|
254
|
+
}, De.value = requestAnimationFrame(n));
|
|
255
255
|
};
|
|
256
256
|
w.value = w.value.filter((h) => h !== r.id);
|
|
257
|
-
const u =
|
|
257
|
+
const u = xe.value.dataset.find((h, N) => r.id === `donut_${N}`).VALUE;
|
|
258
258
|
n();
|
|
259
259
|
} else if (c.length > 1) {
|
|
260
260
|
let u = function() {
|
|
261
|
-
t < 0.1 ? (
|
|
261
|
+
t < 0.1 ? (we.value = !1, cancelAnimationFrame(Ue.value), w.value.push(r.id), k.value = {
|
|
262
262
|
...k.value,
|
|
263
263
|
dataset: k.value.dataset.map((n, h) => r.id === `donut_${h}` ? {
|
|
264
264
|
...n,
|
|
@@ -272,11 +272,15 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
272
272
|
value: t,
|
|
273
273
|
VALUE: t
|
|
274
274
|
} : n)
|
|
275
|
-
},
|
|
275
|
+
}, Ue.value = requestAnimationFrame(u));
|
|
276
276
|
};
|
|
277
277
|
u();
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
+
const Y = E(null);
|
|
281
|
+
function et(r) {
|
|
282
|
+
Y.value = r;
|
|
283
|
+
}
|
|
280
284
|
const C = W(() => {
|
|
281
285
|
if (z.value !== A.DONUT) return null;
|
|
282
286
|
const r = k.value.dataset.map((o, i) => ({
|
|
@@ -286,11 +290,11 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
286
290
|
id: `donut_${i}`
|
|
287
291
|
})).map((o, i) => ({
|
|
288
292
|
...o,
|
|
289
|
-
color: o.COLOR ? Ee(o.COLOR) :
|
|
293
|
+
color: o.COLOR ? Ee(o.COLOR) : ve.value[i + e.value.paletteStartIndex] || U[i + e.value.paletteStartIndex] || U[(i + e.value.paletteStartIndex) % U.length],
|
|
290
294
|
immutableValue: o.value
|
|
291
295
|
}));
|
|
292
296
|
function c(o, i) {
|
|
293
|
-
return
|
|
297
|
+
return O({
|
|
294
298
|
v: isNaN(o.value / Oe(i)) ? 0 : o.value / Oe(i) * 100,
|
|
295
299
|
s: "%",
|
|
296
300
|
r: e.value.dataLabelRoundingPercentage
|
|
@@ -300,19 +304,19 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
300
304
|
return o.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
301
305
|
}
|
|
302
306
|
function u(o, i) {
|
|
303
|
-
const y =
|
|
307
|
+
const y = xe.value.dataset.find((I, M) => `donut_${M}` === o).VALUE;
|
|
304
308
|
return Math.abs(String(Number(y.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
305
309
|
}
|
|
306
310
|
function n({ datapoint: o, seriesIndex: i }) {
|
|
307
|
-
|
|
311
|
+
se.value = { datapoint: o, seriesIndex: i, config: e.value, dataset: r }, q.value = o.id;
|
|
308
312
|
const y = e.value.tooltipCustomFormat;
|
|
309
|
-
if (
|
|
313
|
+
if (_e(y) && Re(() => y({
|
|
310
314
|
datapoint: o,
|
|
311
315
|
seriesIndex: i,
|
|
312
316
|
series: r,
|
|
313
317
|
config: e.value
|
|
314
318
|
})))
|
|
315
|
-
|
|
319
|
+
Q.value = y({
|
|
316
320
|
datapoint: o,
|
|
317
321
|
seriesIndex: i,
|
|
318
322
|
series: r,
|
|
@@ -323,32 +327,32 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
323
327
|
x += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, x += `<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="${o.color}"/></svg>`, x += `<b>${H(
|
|
324
328
|
e.value.formatter,
|
|
325
329
|
o.value,
|
|
326
|
-
|
|
330
|
+
O({
|
|
327
331
|
p: e.value.valuePrefix,
|
|
328
332
|
v: o.value,
|
|
329
333
|
s: e.value.valueSuffix,
|
|
330
334
|
r: e.value.dataLabelRoundingValue
|
|
331
335
|
}),
|
|
332
336
|
{ datapoint: o, seriesIndex: i }
|
|
333
|
-
)}</b>`, x += `<span>(${
|
|
337
|
+
)}</b>`, x += `<span>(${O({ v: o.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, Q.value = `<div>${x}</div>`;
|
|
334
338
|
}
|
|
335
339
|
G.value = !0;
|
|
336
340
|
}
|
|
337
341
|
function h() {
|
|
338
|
-
G.value = !1, q.value = null;
|
|
342
|
+
G.value = !1, q.value = null, Y.value = null;
|
|
339
343
|
}
|
|
340
344
|
const N = {
|
|
341
345
|
centerX: b.value.width / 2,
|
|
342
346
|
centerY: b.value.height / 2
|
|
343
|
-
}, B = r.filter((o) => !w.value.includes(o.id)).map((o) => o.value || 0).reduce((o, i) => o + i, 0),
|
|
347
|
+
}, B = r.filter((o) => !w.value.includes(o.id)).map((o) => o.value || 0).reduce((o, i) => o + i, 0), ie = r.map((o, i) => ({
|
|
344
348
|
...o,
|
|
345
349
|
proportion: (o.value || 0) / B,
|
|
346
350
|
value: o.value || 0,
|
|
347
|
-
absoluteValue:
|
|
348
|
-
})),
|
|
351
|
+
absoluteValue: xe.value.dataset.find((y, x) => `donut_${x}` === o.id).VALUE
|
|
352
|
+
})), K = b.value.width / 2, ue = b.value.height / 2, ee = b.value.height * e.value.donutRadiusRatio;
|
|
349
353
|
return {
|
|
350
|
-
dataset:
|
|
351
|
-
legend:
|
|
354
|
+
dataset: ie.filter((o) => !w.value.includes(o.id)),
|
|
355
|
+
legend: ie,
|
|
352
356
|
drawingArea: N,
|
|
353
357
|
displayArcPercentage: c,
|
|
354
358
|
isArcBigEnough: t,
|
|
@@ -356,15 +360,15 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
356
360
|
killTooltip: h,
|
|
357
361
|
getSpaces: u,
|
|
358
362
|
total: B,
|
|
359
|
-
cx:
|
|
360
|
-
cy:
|
|
361
|
-
radius:
|
|
362
|
-
chart:
|
|
363
|
+
cx: K,
|
|
364
|
+
cy: ue,
|
|
365
|
+
radius: ee,
|
|
366
|
+
chart: pt(
|
|
363
367
|
{ series: r.filter((o) => !w.value.includes(o.id)) },
|
|
364
|
-
Q,
|
|
365
|
-
ie,
|
|
366
|
-
K,
|
|
367
368
|
K,
|
|
369
|
+
ue,
|
|
370
|
+
ee,
|
|
371
|
+
ee,
|
|
368
372
|
1.99999,
|
|
369
373
|
2,
|
|
370
374
|
1,
|
|
@@ -373,20 +377,20 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
373
377
|
b.value.height * e.value.donutThicknessRatio
|
|
374
378
|
)
|
|
375
379
|
};
|
|
376
|
-
}), S =
|
|
380
|
+
}), S = E({
|
|
377
381
|
start: 0,
|
|
378
382
|
end: k.value.maxSeriesLength
|
|
379
383
|
});
|
|
380
|
-
function
|
|
384
|
+
function tt() {
|
|
381
385
|
S.value = {
|
|
382
386
|
start: 0,
|
|
383
387
|
end: k.value.maxSeriesLength
|
|
384
|
-
},
|
|
388
|
+
}, ze.value += 1;
|
|
385
389
|
}
|
|
386
|
-
const
|
|
390
|
+
const at = W(() => {
|
|
387
391
|
if (!e.value.zoomMinimap.show || z.value === A.DONUT) return [];
|
|
388
392
|
let r = [];
|
|
389
|
-
Z(k.value.dataset) && (r = k.value.dataset),
|
|
393
|
+
Z(k.value.dataset) && (r = k.value.dataset), Le(k.value.dataset) && (r = k.value.dataset.map((n, h) => ({
|
|
390
394
|
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
391
395
|
id: z.value === A.LINE ? `line_${h}` : `bar_${h}`
|
|
392
396
|
})).filter((n) => !w.value.includes(n.id)));
|
|
@@ -418,17 +422,17 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
418
422
|
values: k.value.dataset.slice(S.value.start, S.value.end),
|
|
419
423
|
absoluteIndices: k.value.dataset.map((o, i) => i).slice(S.value.start, S.value.end),
|
|
420
424
|
name: e.value.title,
|
|
421
|
-
color:
|
|
425
|
+
color: ve.value[e.value.paletteStartIndex] || U[e.value.paletteStartIndex],
|
|
422
426
|
id: "line_0"
|
|
423
427
|
}
|
|
424
|
-
]),
|
|
428
|
+
]), Le(k.value.dataset) && (t = k.value.dataset.map((o, i) => ({
|
|
425
429
|
...o,
|
|
426
430
|
values: o.VALUE || o.DATA || o.SERIE || o.SERIES || o.VALUES || o.NUM || 0,
|
|
427
431
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
428
432
|
id: `line_${i}`
|
|
429
433
|
})).map((o, i) => ({
|
|
430
434
|
...o,
|
|
431
|
-
color: o.COLOR ? Ee(o.COLOR) :
|
|
435
|
+
color: o.COLOR ? Ee(o.COLOR) : ve.value[i + e.value.paletteStartIndex] || U[i + e.value.paletteStartIndex] || U[(i + e.value.paletteStartIndex) % U.length],
|
|
432
436
|
values: o.values.slice(S.value.start, S.value.end),
|
|
433
437
|
absoluteIndices: o.values.map((y, x) => x).slice(S.value.start, S.value.end)
|
|
434
438
|
})));
|
|
@@ -436,11 +440,11 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
436
440
|
max: Math.max(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
437
441
|
min: Math.min(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
438
442
|
maxSeries: Math.max(...t.map((o) => o.values.length))
|
|
439
|
-
}, n =
|
|
443
|
+
}, n = qe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, N = u.max < 0 ? c.top : c.bottom - h / (n.max + h) * c.height, B = c.width / u.maxSeries, ie = n.ticks.map((o) => ({
|
|
440
444
|
y: c.bottom - c.height * ((o + h) / (n.max + h)),
|
|
441
445
|
x: c.left - 8,
|
|
442
446
|
value: o
|
|
443
|
-
})),
|
|
447
|
+
})), K = t.map((o, i) => ({
|
|
444
448
|
...o,
|
|
445
449
|
coordinates: o.values.map((y, x) => ({
|
|
446
450
|
x: c.left + B * (x + 1) - B / 2,
|
|
@@ -456,22 +460,22 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
456
460
|
linePath: i.join(" ")
|
|
457
461
|
};
|
|
458
462
|
});
|
|
459
|
-
function
|
|
460
|
-
q.value = o;
|
|
463
|
+
function ue(o) {
|
|
464
|
+
q.value = o, Y.value = o;
|
|
461
465
|
const i = t.map((x) => ({
|
|
462
466
|
...x,
|
|
463
467
|
value: x.values[o],
|
|
464
468
|
absoluteIndex: x.absoluteIndices[o]
|
|
465
469
|
})).filter((x) => !w.value.includes(x.id));
|
|
466
|
-
|
|
470
|
+
se.value = { datapoint: i, seriesIndex: o, config: e.value, dataset: t };
|
|
467
471
|
const y = e.value.tooltipCustomFormat;
|
|
468
|
-
if (
|
|
472
|
+
if (_e(y) && Re(() => y({
|
|
469
473
|
datapoint: i,
|
|
470
474
|
seriesIndex: o,
|
|
471
475
|
series: t,
|
|
472
476
|
config: e.value
|
|
473
477
|
})))
|
|
474
|
-
|
|
478
|
+
Q.value = y({
|
|
475
479
|
datapoint: i,
|
|
476
480
|
seriesIndex: o,
|
|
477
481
|
series: t,
|
|
@@ -479,42 +483,42 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
479
483
|
});
|
|
480
484
|
else {
|
|
481
485
|
let x = "";
|
|
482
|
-
e.value.xyPeriods[i[0].absoluteIndex] && (x += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((
|
|
486
|
+
e.value.xyPeriods[i[0].absoluteIndex] && (x += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((I, M) => {
|
|
483
487
|
x += `
|
|
484
488
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
485
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${
|
|
486
|
-
<span>${
|
|
489
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${I.color}"/></svg>
|
|
490
|
+
<span>${I.name}:</span>
|
|
487
491
|
<b>${H(
|
|
488
492
|
e.value.formatter,
|
|
489
|
-
|
|
490
|
-
|
|
493
|
+
I.value,
|
|
494
|
+
O({
|
|
491
495
|
p: e.value.valuePrefix,
|
|
492
|
-
v:
|
|
496
|
+
v: I.value,
|
|
493
497
|
s: e.value.valueSuffix,
|
|
494
498
|
r: e.value.dataLabelRoundingValue
|
|
495
499
|
}),
|
|
496
|
-
{ datapoint:
|
|
500
|
+
{ datapoint: I, seriesIndex: M }
|
|
497
501
|
)}
|
|
498
502
|
</b>
|
|
499
503
|
</div>
|
|
500
504
|
`;
|
|
501
|
-
}),
|
|
505
|
+
}), Q.value = x;
|
|
502
506
|
}
|
|
503
507
|
G.value = !0;
|
|
504
508
|
}
|
|
505
|
-
function
|
|
509
|
+
function ee() {
|
|
506
510
|
q.value = null, G.value = !1;
|
|
507
511
|
}
|
|
508
512
|
return {
|
|
509
513
|
absoluteZero: N,
|
|
510
|
-
dataset:
|
|
511
|
-
legend:
|
|
514
|
+
dataset: K.filter((o) => !w.value.includes(o.id)),
|
|
515
|
+
legend: K,
|
|
512
516
|
drawingArea: c,
|
|
513
517
|
extremes: u,
|
|
514
518
|
slotSize: B,
|
|
515
|
-
yLabels:
|
|
516
|
-
useTooltip:
|
|
517
|
-
killTooltip:
|
|
519
|
+
yLabels: ie,
|
|
520
|
+
useTooltip: ue,
|
|
521
|
+
killTooltip: ee
|
|
518
522
|
};
|
|
519
523
|
}), v = W(() => {
|
|
520
524
|
if (z.value !== A.BAR) return null;
|
|
@@ -535,179 +539,179 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
535
539
|
values: k.value.dataset.slice(S.value.start, S.value.end),
|
|
536
540
|
absoluteIndices: k.value.dataset.map((i, y) => y).slice(S.value.start, S.value.end),
|
|
537
541
|
name: e.value.title,
|
|
538
|
-
color:
|
|
542
|
+
color: ve.value[e.value.paletteStartIndex] || U[e.value.paletteStartIndex],
|
|
539
543
|
id: "bar_0"
|
|
540
544
|
}
|
|
541
|
-
]),
|
|
545
|
+
]), Le(k.value.dataset) && (t = k.value.dataset.map((i, y) => ({
|
|
542
546
|
...i,
|
|
543
547
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
544
548
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${y}`,
|
|
545
549
|
id: `bar_${y}`
|
|
546
550
|
})).map((i, y) => ({
|
|
547
551
|
...i,
|
|
548
|
-
color: i.COLOR ? Ee(i.COLOR) :
|
|
552
|
+
color: i.COLOR ? Ee(i.COLOR) : ve.value[y + e.value.paletteStartIndex] || U[y + e.value.paletteStartIndex] || U[(y + e.value.paletteStartIndex) % U.length],
|
|
549
553
|
values: i.values.slice(S.value.start, S.value.end),
|
|
550
|
-
absoluteIndices: i.values.map((x,
|
|
554
|
+
absoluteIndices: i.values.map((x, I) => I).slice(S.value.start, S.value.end)
|
|
551
555
|
})));
|
|
552
556
|
const u = {
|
|
553
557
|
max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
554
558
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
555
559
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
556
|
-
}, n =
|
|
560
|
+
}, n = qe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = n.min < 0 ? Math.abs(n.min) : 0, N = c.bottom - h / (n.max + h) * c.height, B = c.width / u.maxSeries, ie = n.ticks.map((i) => ({
|
|
557
561
|
y: c.bottom - c.height * ((i + h) / (n.max + h)),
|
|
558
562
|
x: c.left - 8,
|
|
559
563
|
value: i
|
|
560
|
-
})),
|
|
564
|
+
})), K = t.map((i, y) => ({
|
|
561
565
|
...i,
|
|
562
|
-
coordinates: i.values.map((x,
|
|
563
|
-
const
|
|
566
|
+
coordinates: i.values.map((x, I) => {
|
|
567
|
+
const M = (x + h) / (u.max + h) * c.height, ce = Math.abs(x) / Math.abs(u.min) * (c.height - N), Ce = h / (u.max + h) * c.height, he = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
564
568
|
return {
|
|
565
|
-
x: c.left + B *
|
|
566
|
-
y: x > 0 ? c.bottom -
|
|
567
|
-
height: x > 0 ?
|
|
569
|
+
x: c.left + B * I + he * y + e.value.barGap / 2,
|
|
570
|
+
y: x > 0 ? c.bottom - M : N,
|
|
571
|
+
height: x > 0 ? M - Ce : ce,
|
|
568
572
|
value: x,
|
|
569
|
-
width:
|
|
573
|
+
width: he
|
|
570
574
|
};
|
|
571
575
|
})
|
|
572
|
-
})),
|
|
576
|
+
})), ue = t.filter((i) => !w.value.includes(i.id)).map((i, y) => ({
|
|
573
577
|
...i,
|
|
574
|
-
coordinates: i.values.map((x,
|
|
575
|
-
const
|
|
578
|
+
coordinates: i.values.map((x, I) => {
|
|
579
|
+
const M = (x + h) / (u.max + h) * c.height, ce = Math.abs(x) / (u.max + h) * c.height, Ce = h / (u.max + h) * c.height, he = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
576
580
|
return {
|
|
577
|
-
x: c.left + B *
|
|
578
|
-
y: x > 0 ? c.bottom -
|
|
579
|
-
height: x > 0 ?
|
|
581
|
+
x: c.left + B * I + he * y + e.value.barGap / 2,
|
|
582
|
+
y: x > 0 ? c.bottom - M : N,
|
|
583
|
+
height: x > 0 ? M - Ce : ce,
|
|
580
584
|
value: x,
|
|
581
|
-
width:
|
|
585
|
+
width: he
|
|
582
586
|
};
|
|
583
587
|
})
|
|
584
588
|
}));
|
|
585
|
-
function
|
|
586
|
-
q.value = i;
|
|
587
|
-
const y = t.map((
|
|
588
|
-
...
|
|
589
|
-
value:
|
|
590
|
-
absoluteIndex:
|
|
591
|
-
})).filter((
|
|
592
|
-
|
|
589
|
+
function ee(i) {
|
|
590
|
+
q.value = i, Y.value = i;
|
|
591
|
+
const y = t.map((I) => ({
|
|
592
|
+
...I,
|
|
593
|
+
value: I.values[i],
|
|
594
|
+
absoluteIndex: I.absoluteIndices[i]
|
|
595
|
+
})).filter((I) => !w.value.includes(I.id));
|
|
596
|
+
se.value = { datapoint: y, seriesIndex: i, config: e.value, dataset: t };
|
|
593
597
|
const x = e.value.tooltipCustomFormat;
|
|
594
|
-
if (
|
|
598
|
+
if (_e(x) && Re(() => x({
|
|
595
599
|
datapoint: y,
|
|
596
600
|
seriesIndex: i,
|
|
597
601
|
series: t,
|
|
598
602
|
config: e.value
|
|
599
603
|
})))
|
|
600
|
-
|
|
604
|
+
Q.value = x({
|
|
601
605
|
point: y,
|
|
602
606
|
seriesIndex: i,
|
|
603
607
|
series: t,
|
|
604
608
|
config: e.value
|
|
605
609
|
});
|
|
606
610
|
else {
|
|
607
|
-
let
|
|
608
|
-
e.value.xyPeriods[y[0].absoluteIndex] && (
|
|
609
|
-
|
|
611
|
+
let I = "";
|
|
612
|
+
e.value.xyPeriods[y[0].absoluteIndex] && (I += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[y[0].absoluteIndex]}</div>`), y.forEach((M, ce) => {
|
|
613
|
+
I += `
|
|
610
614
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
611
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${
|
|
612
|
-
<span>${
|
|
615
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${M.color}"/></svg>
|
|
616
|
+
<span>${M.name}:</span>
|
|
613
617
|
<b>${H(
|
|
614
618
|
e.value.formatter,
|
|
615
|
-
|
|
616
|
-
|
|
619
|
+
M.value,
|
|
620
|
+
O({
|
|
617
621
|
p: e.value.valuePrefix,
|
|
618
|
-
v:
|
|
622
|
+
v: M.value,
|
|
619
623
|
s: e.value.valueSuffix,
|
|
620
624
|
r: e.value.dataLabelRoundingValue
|
|
621
625
|
}),
|
|
622
|
-
{ datapoint:
|
|
626
|
+
{ datapoint: M, seriesIndex: ce }
|
|
623
627
|
)}
|
|
624
628
|
</b>
|
|
625
629
|
</div>
|
|
626
630
|
`;
|
|
627
|
-
}),
|
|
631
|
+
}), Q.value = I;
|
|
628
632
|
}
|
|
629
633
|
G.value = !0;
|
|
630
634
|
}
|
|
631
635
|
function o() {
|
|
632
|
-
G.value = !1, q.value = null;
|
|
636
|
+
G.value = !1, q.value = null, Y.value = null;
|
|
633
637
|
}
|
|
634
638
|
return {
|
|
635
639
|
absoluteZero: N,
|
|
636
|
-
dataset:
|
|
637
|
-
legend:
|
|
640
|
+
dataset: ue.filter((i) => !w.value.includes(i.id)),
|
|
641
|
+
legend: K,
|
|
638
642
|
drawingArea: c,
|
|
639
643
|
extremes: u,
|
|
640
644
|
slotSize: B,
|
|
641
|
-
yLabels:
|
|
642
|
-
useTooltip:
|
|
645
|
+
yLabels: ie,
|
|
646
|
+
useTooltip: ee,
|
|
643
647
|
killTooltip: o
|
|
644
648
|
};
|
|
645
|
-
}),
|
|
646
|
-
function
|
|
647
|
-
|
|
649
|
+
}), $e = E(!1);
|
|
650
|
+
function lt(r) {
|
|
651
|
+
$e.value = r, Ne.value += 1;
|
|
648
652
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
653
|
+
function Ve() {
|
|
654
|
+
be.value.showTooltip = !be.value.showTooltip;
|
|
651
655
|
}
|
|
652
656
|
return $({
|
|
653
|
-
generatePdf:
|
|
654
|
-
generateImage:
|
|
655
|
-
toggleTooltip:
|
|
656
|
-
}), (r, c) =>
|
|
657
|
+
generatePdf: Fe,
|
|
658
|
+
generateImage: Me,
|
|
659
|
+
toggleTooltip: Ve
|
|
660
|
+
}), (r, c) => Je.value ? (a(), l("div", {
|
|
657
661
|
key: 0,
|
|
658
662
|
id: `${z.value}_${P.value}`,
|
|
659
663
|
ref_key: "quickChart",
|
|
660
664
|
ref: j,
|
|
661
|
-
class:
|
|
665
|
+
class: ne({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": $e.value }),
|
|
662
666
|
style: F(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
663
667
|
}, [
|
|
664
|
-
e.value.showUserOptions ? (a(),
|
|
668
|
+
e.value.showUserOptions ? (a(), Pe(_t, {
|
|
665
669
|
ref: "details",
|
|
666
|
-
key: `user_option_${
|
|
670
|
+
key: `user_option_${Ne.value}`,
|
|
667
671
|
backgroundColor: e.value.backgroundColor,
|
|
668
672
|
color: e.value.color,
|
|
669
|
-
isPrinting: f(
|
|
670
|
-
isImaging: f(
|
|
673
|
+
isPrinting: f(ye),
|
|
674
|
+
isImaging: f(ke),
|
|
671
675
|
uid: P.value,
|
|
672
676
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
673
677
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
674
678
|
hasImg: e.value.userOptionsButtons.img,
|
|
675
679
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
676
680
|
hasXls: !1,
|
|
677
|
-
isTooltip:
|
|
678
|
-
isFullscreen:
|
|
681
|
+
isTooltip: be.value.showTooltip,
|
|
682
|
+
isFullscreen: $e.value,
|
|
679
683
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
680
684
|
chartElement: j.value,
|
|
681
|
-
onToggleFullscreen:
|
|
682
|
-
onGeneratePdf: f(
|
|
683
|
-
onGenerateImage: f(
|
|
684
|
-
onToggleTooltip:
|
|
685
|
-
},
|
|
685
|
+
onToggleFullscreen: lt,
|
|
686
|
+
onGeneratePdf: f(Fe),
|
|
687
|
+
onGenerateImage: f(Me),
|
|
688
|
+
onToggleTooltip: Ve
|
|
689
|
+
}, nt({ _: 2 }, [
|
|
686
690
|
r.$slots.optionTooltip ? {
|
|
687
691
|
name: "optionTooltip",
|
|
688
|
-
fn:
|
|
692
|
+
fn: ae(() => [
|
|
689
693
|
D(r.$slots, "optionTooltip", {}, void 0, !0)
|
|
690
694
|
]),
|
|
691
695
|
key: "0"
|
|
692
696
|
} : void 0,
|
|
693
697
|
r.$slots.optionPdf ? {
|
|
694
698
|
name: "optionPdf",
|
|
695
|
-
fn:
|
|
699
|
+
fn: ae(() => [
|
|
696
700
|
D(r.$slots, "optionPdf", {}, void 0, !0)
|
|
697
701
|
]),
|
|
698
702
|
key: "1"
|
|
699
703
|
} : void 0,
|
|
700
704
|
r.$slots.optionImg ? {
|
|
701
705
|
name: "optionImg",
|
|
702
|
-
fn:
|
|
706
|
+
fn: ae(() => [
|
|
703
707
|
D(r.$slots, "optionImg", {}, void 0, !0)
|
|
704
708
|
]),
|
|
705
709
|
key: "2"
|
|
706
710
|
} : void 0,
|
|
707
711
|
r.$slots.optionFullscreen ? {
|
|
708
712
|
name: "optionFullscreen",
|
|
709
|
-
fn:
|
|
710
|
-
D(r.$slots, "optionFullscreen",
|
|
713
|
+
fn: ae(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
714
|
+
D(r.$slots, "optionFullscreen", J(fe({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
711
715
|
]),
|
|
712
716
|
key: "3"
|
|
713
717
|
} : void 0
|
|
@@ -715,14 +719,14 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
715
719
|
e.value.title ? (a(), l("div", {
|
|
716
720
|
key: 1,
|
|
717
721
|
ref_key: "quickChartTitle",
|
|
718
|
-
ref:
|
|
722
|
+
ref: le,
|
|
719
723
|
class: "vue-ui-quick-chart-title",
|
|
720
724
|
style: F(`background:${e.value.backgroundColor};color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
721
|
-
},
|
|
725
|
+
}, T(e.value.title), 5)) : p("", !0),
|
|
722
726
|
z.value ? (a(), l("svg", {
|
|
723
727
|
key: 2,
|
|
724
|
-
xmlns: f(
|
|
725
|
-
viewBox:
|
|
728
|
+
xmlns: f(xt),
|
|
729
|
+
viewBox: Qe.value,
|
|
726
730
|
style: F(`max-width:100%;overflow:visible;background:${e.value.backgroundColor};color:${e.value.color}`)
|
|
727
731
|
}, [
|
|
728
732
|
_("defs", null, [
|
|
@@ -737,9 +741,9 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
737
741
|
in: "SourceGraphic",
|
|
738
742
|
stdDeviation: 2,
|
|
739
743
|
id: `blur_std_${P.value}`
|
|
740
|
-
}, null, 8,
|
|
741
|
-
|
|
742
|
-
], 8,
|
|
744
|
+
}, null, 8, Mt),
|
|
745
|
+
Ot
|
|
746
|
+
], 8, Ft),
|
|
743
747
|
_("filter", {
|
|
744
748
|
id: `shadow_${P.value}`,
|
|
745
749
|
"color-interpolation-filters": "sRGB"
|
|
@@ -750,22 +754,22 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
750
754
|
stdDeviation: "10",
|
|
751
755
|
"flood-opacity": "0.5",
|
|
752
756
|
"flood-color": e.value.donutShadowColor
|
|
753
|
-
}, null, 8,
|
|
754
|
-
], 8,
|
|
757
|
+
}, null, 8, Ut)
|
|
758
|
+
], 8, Bt)
|
|
755
759
|
]),
|
|
756
760
|
z.value === A.DONUT ? (a(), l(m, { key: 0 }, [
|
|
757
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
761
|
+
e.value.showDataLabels ? (a(), l("g", Dt, [
|
|
758
762
|
(a(!0), l(m, null, L(C.value.chart, (t, u) => (a(), l(m, null, [
|
|
759
763
|
C.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
760
764
|
key: 0,
|
|
761
|
-
d: f(
|
|
765
|
+
d: f(yt)(t, { x: (e.value.width || b.value.width) / 2, y: (e.value.height || b.value.height) / 2 }, 16, 16, !1, !1, e.value.donutLabelMarkerStrokeWidth),
|
|
762
766
|
stroke: t.color,
|
|
763
767
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
764
768
|
"stroke-linecap": "round",
|
|
765
769
|
"stroke-linejoin": "round",
|
|
766
770
|
fill: "none",
|
|
767
|
-
filter:
|
|
768
|
-
}, null, 8,
|
|
771
|
+
filter: de(t.id)
|
|
772
|
+
}, null, 8, Vt)) : p("", !0)
|
|
769
773
|
], 64))), 256))
|
|
770
774
|
])) : p("", !0),
|
|
771
775
|
_("circle", {
|
|
@@ -774,94 +778,94 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
774
778
|
cy: (e.value.height || b.value.height) / 2,
|
|
775
779
|
r: (e.value.height || b.value.height) * e.value.donutRadiusRatio,
|
|
776
780
|
fill: e.value.backgroundColor
|
|
777
|
-
}, null, 8,
|
|
781
|
+
}, null, 8, qt),
|
|
778
782
|
_("circle", {
|
|
779
783
|
cx: C.value.cx,
|
|
780
784
|
cy: C.value.cy,
|
|
781
785
|
r: C.value.radius,
|
|
782
786
|
fill: e.value.backgroundColor,
|
|
783
787
|
filter: e.value.donutUseShadow ? `url(#shadow_${P.value})` : ""
|
|
784
|
-
}, null, 8,
|
|
785
|
-
_("g",
|
|
788
|
+
}, null, 8, Wt),
|
|
789
|
+
_("g", jt, [
|
|
786
790
|
(a(!0), l(m, null, L(C.value.chart, (t, u) => (a(), l("path", {
|
|
787
791
|
d: t.arcSlice,
|
|
788
792
|
fill: t.color,
|
|
789
793
|
stroke: e.value.backgroundColor,
|
|
790
794
|
"stroke-width": e.value.donutStrokeWidth,
|
|
791
|
-
filter:
|
|
792
|
-
}, null, 8,
|
|
795
|
+
filter: de(t.id)
|
|
796
|
+
}, null, 8, Gt))), 256)),
|
|
793
797
|
(a(!0), l(m, null, L(C.value.chart, (t, u) => (a(), l("path", {
|
|
794
798
|
d: t.arcSlice,
|
|
795
799
|
fill: "transparent",
|
|
796
800
|
onMouseenter: (n) => C.value.useTooltip({ datapoint: t, seriesIndex: u }),
|
|
797
801
|
onMouseout: c[0] || (c[0] = (n) => C.value.killTooltip()),
|
|
798
802
|
onClick: (n) => g("selectDatapoint", t)
|
|
799
|
-
}, null, 40,
|
|
803
|
+
}, null, 40, Ht))), 256))
|
|
800
804
|
]),
|
|
801
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
805
|
+
e.value.showDataLabels ? (a(), l("g", Xt, [
|
|
802
806
|
(a(!0), l(m, null, L(C.value.chart, (t, u) => (a(), l(m, null, [
|
|
803
807
|
C.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
804
808
|
key: 0,
|
|
805
|
-
cx: f(
|
|
809
|
+
cx: f(me)(t).x,
|
|
806
810
|
cy: f(Te)(t) - 3.7,
|
|
807
811
|
fill: t.color,
|
|
808
812
|
r: 3,
|
|
809
|
-
filter:
|
|
810
|
-
}, null, 8,
|
|
813
|
+
filter: de(t.id)
|
|
814
|
+
}, null, 8, Zt)) : p("", !0),
|
|
811
815
|
C.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
812
816
|
key: 1,
|
|
813
|
-
"text-anchor": f(
|
|
814
|
-
x: f(
|
|
817
|
+
"text-anchor": f(me)(t, !0, 20).anchor,
|
|
818
|
+
x: f(me)(t, !0).x,
|
|
815
819
|
y: f(Te)(t),
|
|
816
820
|
fill: e.value.color,
|
|
817
821
|
"font-size": e.value.dataLabelFontSize,
|
|
818
|
-
filter:
|
|
819
|
-
},
|
|
822
|
+
filter: de(t.id)
|
|
823
|
+
}, T(C.value.displayArcPercentage(t, C.value.chart)) + " (" + T(f(H)(
|
|
820
824
|
e.value.formatter,
|
|
821
825
|
t.value,
|
|
822
|
-
f(
|
|
826
|
+
f(O)({
|
|
823
827
|
p: e.value.valuePrefix,
|
|
824
828
|
v: t.value,
|
|
825
829
|
s: e.value.valueSuffix,
|
|
826
830
|
r: e.value.dataLabelRoundingValue
|
|
827
831
|
}),
|
|
828
832
|
{ datapoint: t, seriesIndex: u }
|
|
829
|
-
)) + ") ", 9,
|
|
833
|
+
)) + ") ", 9, Yt)) : p("", !0),
|
|
830
834
|
C.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
831
835
|
key: 2,
|
|
832
|
-
"text-anchor": f(
|
|
833
|
-
x: f(
|
|
836
|
+
"text-anchor": f(me)(t).anchor,
|
|
837
|
+
x: f(me)(t, !0).x,
|
|
834
838
|
y: f(Te)(t) + e.value.dataLabelFontSize,
|
|
835
839
|
fill: e.value.color,
|
|
836
840
|
"font-size": e.value.dataLabelFontSize,
|
|
837
|
-
filter:
|
|
838
|
-
},
|
|
841
|
+
filter: de(t.id)
|
|
842
|
+
}, T(t.name), 9, Jt)) : p("", !0)
|
|
839
843
|
], 64))), 256))
|
|
840
844
|
])) : p("", !0),
|
|
841
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
845
|
+
e.value.donutShowTotal ? (a(), l("g", Qt, [
|
|
842
846
|
_("text", {
|
|
843
847
|
"text-anchor": "middle",
|
|
844
848
|
x: C.value.drawingArea.centerX,
|
|
845
849
|
y: C.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
846
850
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
847
851
|
fill: e.value.color
|
|
848
|
-
},
|
|
852
|
+
}, T(e.value.donutTotalLabelText), 9, Kt),
|
|
849
853
|
_("text", {
|
|
850
854
|
"text-anchor": "middle",
|
|
851
855
|
x: C.value.drawingArea.centerX,
|
|
852
856
|
y: C.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
853
857
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
854
858
|
fill: e.value.color
|
|
855
|
-
},
|
|
859
|
+
}, T(f(O)({
|
|
856
860
|
p: e.value.valuePrefix,
|
|
857
861
|
v: C.value.total,
|
|
858
862
|
s: e.value.valueSuffix,
|
|
859
863
|
r: e.value.dataLabelRoundingValue
|
|
860
|
-
})), 9,
|
|
864
|
+
})), 9, ea)
|
|
861
865
|
])) : p("", !0)
|
|
862
866
|
], 64)) : p("", !0),
|
|
863
867
|
z.value === A.LINE ? (a(), l(m, { key: 1 }, [
|
|
864
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
868
|
+
e.value.xyShowGrid ? (a(), l("g", ta, [
|
|
865
869
|
(a(!0), l(m, null, L(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
866
870
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
867
871
|
key: 0,
|
|
@@ -872,7 +876,7 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
872
876
|
stroke: e.value.xyGridStroke,
|
|
873
877
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
874
878
|
"stroke-linecap": "round"
|
|
875
|
-
}, null, 8,
|
|
879
|
+
}, null, 8, aa)) : p("", !0)
|
|
876
880
|
], 64))), 256)),
|
|
877
881
|
(a(!0), l(m, null, L(d.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
878
882
|
x1: d.value.drawingArea.left + d.value.slotSize * u,
|
|
@@ -882,9 +886,9 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
882
886
|
stroke: e.value.xyGridStroke,
|
|
883
887
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
884
888
|
"stroke-linecap": "round"
|
|
885
|
-
}, null, 8,
|
|
889
|
+
}, null, 8, la))), 256))
|
|
886
890
|
])) : p("", !0),
|
|
887
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
891
|
+
e.value.xyShowAxis ? (a(), l("g", oa, [
|
|
888
892
|
_("line", {
|
|
889
893
|
x1: d.value.drawingArea.left,
|
|
890
894
|
x2: d.value.drawingArea.left,
|
|
@@ -893,7 +897,7 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
893
897
|
stroke: e.value.xyAxisStroke,
|
|
894
898
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
895
899
|
"stroke-linecap": "round"
|
|
896
|
-
}, null, 8,
|
|
900
|
+
}, null, 8, ia),
|
|
897
901
|
_("line", {
|
|
898
902
|
x1: d.value.drawingArea.left,
|
|
899
903
|
x2: d.value.drawingArea.right,
|
|
@@ -902,9 +906,9 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
902
906
|
stroke: e.value.xyAxisStroke,
|
|
903
907
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
904
908
|
"stroke-linecap": "round"
|
|
905
|
-
}, null, 8,
|
|
909
|
+
}, null, 8, ua)
|
|
906
910
|
])) : p("", !0),
|
|
907
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
911
|
+
e.value.xyShowScale ? (a(), l("g", na, [
|
|
908
912
|
(a(!0), l(m, null, L(d.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
909
913
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
910
914
|
key: 0,
|
|
@@ -915,7 +919,7 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
915
919
|
stroke: e.value.xyAxisStroke,
|
|
916
920
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
917
921
|
"stroke-linecap": "round"
|
|
918
|
-
}, null, 8,
|
|
922
|
+
}, null, 8, ra)) : p("", !0),
|
|
919
923
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
920
924
|
key: 1,
|
|
921
925
|
x: t.x,
|
|
@@ -923,20 +927,20 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
923
927
|
"text-anchor": "end",
|
|
924
928
|
"font-size": e.value.xyLabelsYFontSize,
|
|
925
929
|
fill: e.value.color
|
|
926
|
-
},
|
|
930
|
+
}, T(f(H)(
|
|
927
931
|
e.value.formatter,
|
|
928
932
|
t.value,
|
|
929
|
-
f(
|
|
933
|
+
f(O)({
|
|
930
934
|
p: e.value.valuePrefix,
|
|
931
935
|
v: t.value,
|
|
932
936
|
s: e.value.valueSuffix,
|
|
933
937
|
r: e.value.dataLabelRoundingValue
|
|
934
938
|
}),
|
|
935
939
|
{ datapoint: t, seriesIndex: u }
|
|
936
|
-
)), 9,
|
|
940
|
+
)), 9, sa)) : p("", !0)
|
|
937
941
|
], 64))), 256))
|
|
938
942
|
])) : p("", !0),
|
|
939
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
943
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", va, [
|
|
940
944
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(S.value.start, S.value.end), (t, u) => (a(), l("line", {
|
|
941
945
|
x1: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
942
946
|
x2: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
@@ -945,35 +949,35 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
945
949
|
stroke: e.value.xyAxisStroke,
|
|
946
950
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
947
951
|
"stroke-linecap": "round"
|
|
948
|
-
}, null, 8,
|
|
952
|
+
}, null, 8, da))), 256)),
|
|
949
953
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(S.value.start, S.value.end), (t, u) => (a(), l("text", {
|
|
950
954
|
"font-size": e.value.xyLabelsXFontSize,
|
|
951
955
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
952
956
|
fill: e.value.color,
|
|
953
957
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
954
|
-
},
|
|
958
|
+
}, T(t), 9, ca))), 256))
|
|
955
959
|
])) : p("", !0),
|
|
956
|
-
_("g",
|
|
957
|
-
(a(!0), l(m, null, L(d.value.dataset, (t, u) => (a(), l("g",
|
|
960
|
+
_("g", ha, [
|
|
961
|
+
(a(!0), l(m, null, L(d.value.dataset, (t, u) => (a(), l("g", fa, [
|
|
958
962
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
959
963
|
_("path", {
|
|
960
|
-
d: `M ${f(
|
|
964
|
+
d: `M ${f(We)(t.coordinates)}`,
|
|
961
965
|
stroke: e.value.backgroundColor,
|
|
962
966
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
963
967
|
"stroke-linecap": "round",
|
|
964
968
|
fill: "none",
|
|
965
|
-
class:
|
|
969
|
+
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
966
970
|
style: { transition: "all 0.3s ease-in-out" }
|
|
967
|
-
}, null, 10,
|
|
971
|
+
}, null, 10, ga),
|
|
968
972
|
_("path", {
|
|
969
|
-
d: `M ${f(
|
|
973
|
+
d: `M ${f(We)(t.coordinates)}`,
|
|
970
974
|
stroke: t.color,
|
|
971
975
|
"stroke-width": e.value.lineStrokeWidth,
|
|
972
976
|
"stroke-linecap": "round",
|
|
973
977
|
fill: "none",
|
|
974
|
-
class:
|
|
978
|
+
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
975
979
|
style: { transition: "all 0.3s ease-in-out" }
|
|
976
|
-
}, null, 10,
|
|
980
|
+
}, null, 10, ma)
|
|
977
981
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
978
982
|
_("path", {
|
|
979
983
|
d: `M ${t.linePath}`,
|
|
@@ -981,18 +985,18 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
981
985
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
982
986
|
"stroke-linecap": "round",
|
|
983
987
|
fill: "none",
|
|
984
|
-
class:
|
|
988
|
+
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
985
989
|
style: { transition: "all 0.3s ease-in-out" }
|
|
986
|
-
}, null, 10,
|
|
990
|
+
}, null, 10, pa),
|
|
987
991
|
_("path", {
|
|
988
992
|
d: `M ${t.linePath}`,
|
|
989
993
|
stroke: t.color,
|
|
990
994
|
"stroke-width": e.value.lineStrokeWidth,
|
|
991
995
|
"stroke-linecap": "round",
|
|
992
996
|
fill: "none",
|
|
993
|
-
class:
|
|
997
|
+
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
994
998
|
style: { transition: "all 0.3s ease-in-out" }
|
|
995
|
-
}, null, 10,
|
|
999
|
+
}, null, 10, xa)
|
|
996
1000
|
], 64)),
|
|
997
1001
|
(a(!0), l(m, null, L(t.coordinates, (n, h) => (a(), l("circle", {
|
|
998
1002
|
cx: n.x,
|
|
@@ -1003,10 +1007,10 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1003
1007
|
"stroke-width": "0.5",
|
|
1004
1008
|
class: "quick-animation",
|
|
1005
1009
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1006
|
-
}, null, 8,
|
|
1010
|
+
}, null, 8, ya))), 256))
|
|
1007
1011
|
]))), 256))
|
|
1008
1012
|
]),
|
|
1009
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1013
|
+
e.value.showDataLabels ? (a(), l("g", ka, [
|
|
1010
1014
|
(a(!0), l(m, null, L(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1011
1015
|
(a(!0), l(m, null, L(t.coordinates, (n, h) => (a(), l("text", {
|
|
1012
1016
|
"text-anchor": "middle",
|
|
@@ -1016,26 +1020,26 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1016
1020
|
y: f(X)(n.y) - e.value.dataLabelFontSize / 2,
|
|
1017
1021
|
class: "quick-animation",
|
|
1018
1022
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1019
|
-
},
|
|
1023
|
+
}, T(f(H)(
|
|
1020
1024
|
e.value.formatter,
|
|
1021
1025
|
f(X)(n.value),
|
|
1022
|
-
f(
|
|
1026
|
+
f(O)({
|
|
1023
1027
|
p: e.value.valuePrefix,
|
|
1024
1028
|
v: f(X)(n.value),
|
|
1025
1029
|
s: e.value.valueSuffix,
|
|
1026
1030
|
r: e.value.dataLabelRoundingValue
|
|
1027
1031
|
}),
|
|
1028
1032
|
{ datapoint: n, seriesIndex: h }
|
|
1029
|
-
)), 9,
|
|
1033
|
+
)), 9, ba))), 256))
|
|
1030
1034
|
], 64))), 256))
|
|
1031
1035
|
])) : p("", !0),
|
|
1032
|
-
_("g",
|
|
1036
|
+
_("g", Sa, [
|
|
1033
1037
|
(a(!0), l(m, null, L(d.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1034
1038
|
x: d.value.drawingArea.left + u * d.value.slotSize,
|
|
1035
1039
|
y: d.value.drawingArea.top,
|
|
1036
1040
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1037
1041
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1038
|
-
fill: q.value
|
|
1042
|
+
fill: [q.value, Y.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1039
1043
|
style: F(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1040
1044
|
onMouseenter: (n) => d.value.useTooltip(u),
|
|
1041
1045
|
onMouseleave: c[1] || (c[1] = (n) => d.value.killTooltip()),
|
|
@@ -1043,11 +1047,11 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1043
1047
|
...h,
|
|
1044
1048
|
value: h.values[u]
|
|
1045
1049
|
})))
|
|
1046
|
-
}, null, 44,
|
|
1050
|
+
}, null, 44, wa))), 256))
|
|
1047
1051
|
])
|
|
1048
1052
|
], 64)) : p("", !0),
|
|
1049
1053
|
z.value === A.BAR ? (a(), l(m, { key: 2 }, [
|
|
1050
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1054
|
+
e.value.xyShowGrid ? (a(), l("g", _a, [
|
|
1051
1055
|
(a(!0), l(m, null, L(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
1052
1056
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1053
1057
|
key: 0,
|
|
@@ -1058,7 +1062,7 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1058
1062
|
stroke: e.value.xyGridStroke,
|
|
1059
1063
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1060
1064
|
"stroke-linecap": "round"
|
|
1061
|
-
}, null, 8,
|
|
1065
|
+
}, null, 8, Aa)) : p("", !0)
|
|
1062
1066
|
], 64))), 256)),
|
|
1063
1067
|
(a(!0), l(m, null, L(v.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
1064
1068
|
x1: v.value.drawingArea.left + v.value.slotSize * u,
|
|
@@ -1068,9 +1072,9 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1068
1072
|
stroke: e.value.xyGridStroke,
|
|
1069
1073
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1070
1074
|
"stroke-linecap": "round"
|
|
1071
|
-
}, null, 8,
|
|
1075
|
+
}, null, 8, La))), 256))
|
|
1072
1076
|
])) : p("", !0),
|
|
1073
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1077
|
+
e.value.xyShowAxis ? (a(), l("g", za, [
|
|
1074
1078
|
_("line", {
|
|
1075
1079
|
x1: v.value.drawingArea.left,
|
|
1076
1080
|
x2: v.value.drawingArea.left,
|
|
@@ -1079,7 +1083,7 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1079
1083
|
stroke: e.value.xyAxisStroke,
|
|
1080
1084
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1081
1085
|
"stroke-linecap": "round"
|
|
1082
|
-
}, null, 8,
|
|
1086
|
+
}, null, 8, $a),
|
|
1083
1087
|
_("line", {
|
|
1084
1088
|
x1: v.value.drawingArea.left,
|
|
1085
1089
|
x2: v.value.drawingArea.right,
|
|
@@ -1088,9 +1092,9 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1088
1092
|
stroke: e.value.xyAxisStroke,
|
|
1089
1093
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1090
1094
|
"stroke-linecap": "round"
|
|
1091
|
-
}, null, 8,
|
|
1095
|
+
}, null, 8, Ca)
|
|
1092
1096
|
])) : p("", !0),
|
|
1093
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1097
|
+
e.value.xyShowScale ? (a(), l("g", Pa, [
|
|
1094
1098
|
(a(!0), l(m, null, L(v.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1095
1099
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1096
1100
|
key: 0,
|
|
@@ -1101,7 +1105,7 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1101
1105
|
stroke: e.value.xyAxisStroke,
|
|
1102
1106
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1103
1107
|
"stroke-linecap": "round"
|
|
1104
|
-
}, null, 8,
|
|
1108
|
+
}, null, 8, Ia)) : p("", !0),
|
|
1105
1109
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1106
1110
|
key: 1,
|
|
1107
1111
|
x: t.x,
|
|
@@ -1109,20 +1113,20 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1109
1113
|
"text-anchor": "end",
|
|
1110
1114
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1111
1115
|
fill: e.value.color
|
|
1112
|
-
},
|
|
1116
|
+
}, T(f(H)(
|
|
1113
1117
|
e.value.formatter,
|
|
1114
1118
|
t.value,
|
|
1115
|
-
f(
|
|
1119
|
+
f(O)({
|
|
1116
1120
|
p: e.value.valuePrefix,
|
|
1117
1121
|
v: t.value,
|
|
1118
1122
|
s: e.value.valueSuffix,
|
|
1119
1123
|
r: e.value.dataLabelRoundingValue
|
|
1120
1124
|
}),
|
|
1121
1125
|
{ datapoint: t, seriesIndex: u }
|
|
1122
|
-
)), 9,
|
|
1126
|
+
)), 9, Ea)) : p("", !0)
|
|
1123
1127
|
], 64))), 256))
|
|
1124
1128
|
])) : p("", !0),
|
|
1125
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1129
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ta, [
|
|
1126
1130
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(S.value.start, S.value.end), (t, u) => (a(), l("line", {
|
|
1127
1131
|
x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
1128
1132
|
x2: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
@@ -1131,15 +1135,15 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1131
1135
|
stroke: e.value.xyAxisStroke,
|
|
1132
1136
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1133
1137
|
"stroke-linecap": "round"
|
|
1134
|
-
}, null, 8,
|
|
1138
|
+
}, null, 8, Ra))), 256)),
|
|
1135
1139
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(S.value.start, S.value.end), (t, u) => (a(), l("text", {
|
|
1136
1140
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1137
1141
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1138
1142
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1139
1143
|
fill: e.value.color
|
|
1140
|
-
},
|
|
1144
|
+
}, T(t), 9, Na))), 256))
|
|
1141
1145
|
])) : p("", !0),
|
|
1142
|
-
_("g",
|
|
1146
|
+
_("g", Fa, [
|
|
1143
1147
|
(a(!0), l(m, null, L(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1144
1148
|
(a(!0), l(m, null, L(t.coordinates, (n, h) => (a(), l("rect", {
|
|
1145
1149
|
x: n.x,
|
|
@@ -1150,26 +1154,26 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1150
1154
|
stroke: e.value.backgroundColor,
|
|
1151
1155
|
"stroke-width": e.value.barStrokeWidth,
|
|
1152
1156
|
"stroke-linecap": "round",
|
|
1153
|
-
class:
|
|
1157
|
+
class: ne({ "vue-data-ui-bar-animated": e.value.barAnimated && n.value < 0 })
|
|
1154
1158
|
}, [
|
|
1155
|
-
e.value.barAnimated && n.value > 0 && !f(
|
|
1159
|
+
e.value.barAnimated && n.value > 0 && !f(ye) && !f(ke) ? (a(), l("animate", {
|
|
1156
1160
|
key: 0,
|
|
1157
1161
|
attributeName: "height",
|
|
1158
1162
|
from: 0,
|
|
1159
1163
|
to: n.height,
|
|
1160
1164
|
dur: "0.5s"
|
|
1161
|
-
}, null, 8,
|
|
1162
|
-
e.value.barAnimated && n.value > 0 && !f(
|
|
1165
|
+
}, null, 8, Oa)) : p("", !0),
|
|
1166
|
+
e.value.barAnimated && n.value > 0 && !f(ye) && !f(ke) ? (a(), l("animate", {
|
|
1163
1167
|
key: 1,
|
|
1164
1168
|
attributeName: "y",
|
|
1165
1169
|
from: v.value.absoluteZero,
|
|
1166
1170
|
to: v.value.absoluteZero - n.height,
|
|
1167
1171
|
dur: "0.5s"
|
|
1168
|
-
}, null, 8,
|
|
1169
|
-
], 10,
|
|
1172
|
+
}, null, 8, Ba)) : p("", !0)
|
|
1173
|
+
], 10, Ma))), 256))
|
|
1170
1174
|
], 64))), 256))
|
|
1171
1175
|
]),
|
|
1172
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1176
|
+
e.value.showDataLabels ? (a(), l("g", Ua, [
|
|
1173
1177
|
(a(!0), l(m, null, L(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1174
1178
|
(a(!0), l(m, null, L(t.coordinates, (n, h) => (a(), l("text", {
|
|
1175
1179
|
x: n.x + n.width / 2,
|
|
@@ -1178,26 +1182,26 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1178
1182
|
"font-size": e.value.dataLabelFontSize,
|
|
1179
1183
|
fill: t.color,
|
|
1180
1184
|
class: "quick-animation"
|
|
1181
|
-
},
|
|
1185
|
+
}, T(f(H)(
|
|
1182
1186
|
e.value.formatter,
|
|
1183
1187
|
f(X)(n.value),
|
|
1184
|
-
f(
|
|
1188
|
+
f(O)({
|
|
1185
1189
|
p: e.value.valuePrefix,
|
|
1186
1190
|
v: f(X)(n.value),
|
|
1187
1191
|
s: e.value.valueSuffix,
|
|
1188
1192
|
r: e.value.dataLabelRoundingValue
|
|
1189
1193
|
}),
|
|
1190
1194
|
{ datapoint: n, seriesIndex: h }
|
|
1191
|
-
)), 9,
|
|
1195
|
+
)), 9, Da))), 256))
|
|
1192
1196
|
], 64))), 256))
|
|
1193
1197
|
])) : p("", !0),
|
|
1194
|
-
_("g",
|
|
1198
|
+
_("g", Va, [
|
|
1195
1199
|
(a(!0), l(m, null, L(v.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1196
1200
|
x: v.value.drawingArea.left + u * v.value.slotSize,
|
|
1197
1201
|
y: v.value.drawingArea.top,
|
|
1198
1202
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1199
1203
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1200
|
-
fill: q.value
|
|
1204
|
+
fill: [q.value, Y.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1201
1205
|
style: F(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1202
1206
|
onMouseenter: (n) => v.value.useTooltip(u),
|
|
1203
1207
|
onMouseleave: c[2] || (c[2] = (n) => v.value.killTooltip()),
|
|
@@ -1205,47 +1209,47 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1205
1209
|
...h,
|
|
1206
1210
|
value: h.values[u]
|
|
1207
1211
|
})))
|
|
1208
|
-
}, null, 44,
|
|
1212
|
+
}, null, 44, qa))), 256))
|
|
1209
1213
|
])
|
|
1210
1214
|
], 64)) : p("", !0),
|
|
1211
|
-
[A.LINE, A.BAR].includes(z.value) ? (a(), l("g",
|
|
1212
|
-
e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g",
|
|
1215
|
+
[A.LINE, A.BAR].includes(z.value) ? (a(), l("g", Wa, [
|
|
1216
|
+
e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g", ja, [
|
|
1213
1217
|
_("text", {
|
|
1214
1218
|
"font-size": e.value.axisLabelsFontSize,
|
|
1215
1219
|
fill: e.value.color,
|
|
1216
1220
|
"text-anchor": "middle",
|
|
1217
1221
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1218
1222
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1219
|
-
},
|
|
1223
|
+
}, T(e.value.xAxisLabel), 9, Ga)
|
|
1220
1224
|
])) : p("", !0),
|
|
1221
|
-
e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g",
|
|
1225
|
+
e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g", Ha, [
|
|
1222
1226
|
_("text", {
|
|
1223
1227
|
"font-size": e.value.axisLabelsFontSize,
|
|
1224
1228
|
fill: e.value.color,
|
|
1225
1229
|
"text-anchor": "middle",
|
|
1226
1230
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1227
1231
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1228
|
-
},
|
|
1232
|
+
}, T(e.value.xAxisLabel), 9, Xa)
|
|
1229
1233
|
])) : p("", !0),
|
|
1230
|
-
e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g",
|
|
1234
|
+
e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g", Za, [
|
|
1231
1235
|
_("text", {
|
|
1232
1236
|
"font-size": e.value.axisLabelsFontSize,
|
|
1233
1237
|
fill: e.value.color,
|
|
1234
1238
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1235
1239
|
"text-anchor": "middle"
|
|
1236
|
-
},
|
|
1240
|
+
}, T(e.value.yAxisLabel), 9, Ya)
|
|
1237
1241
|
])) : p("", !0),
|
|
1238
|
-
e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g",
|
|
1242
|
+
e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g", Ja, [
|
|
1239
1243
|
_("text", {
|
|
1240
1244
|
"font-size": e.value.axisLabelsFontSize,
|
|
1241
1245
|
fill: e.value.color,
|
|
1242
1246
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1243
1247
|
"text-anchor": "middle"
|
|
1244
|
-
},
|
|
1248
|
+
}, T(e.value.yAxisLabel), 9, Qa)
|
|
1245
1249
|
])) : p("", !0)
|
|
1246
1250
|
])) : p("", !0)
|
|
1247
|
-
], 12,
|
|
1248
|
-
z.value ? p("", !0) : (a(),
|
|
1251
|
+
], 12, Nt)) : p("", !0),
|
|
1252
|
+
z.value ? p("", !0) : (a(), Pe(Lt, {
|
|
1249
1253
|
key: 3,
|
|
1250
1254
|
config: {
|
|
1251
1255
|
type: "line",
|
|
@@ -1263,16 +1267,16 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1263
1267
|
}
|
|
1264
1268
|
}
|
|
1265
1269
|
}, null, 8, ["config"])),
|
|
1266
|
-
r.$slots.watermark ? (a(), l("div",
|
|
1267
|
-
D(r.$slots, "watermark",
|
|
1270
|
+
r.$slots.watermark ? (a(), l("div", Ka, [
|
|
1271
|
+
D(r.$slots, "watermark", J(fe({ isPrinting: f(ye) || f(ke) })), void 0, !0)
|
|
1268
1272
|
])) : p("", !0),
|
|
1269
1273
|
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1270
|
-
key: `slicer_${
|
|
1274
|
+
key: `slicer_${ze.value}`,
|
|
1271
1275
|
ref_key: "quickChartSlicer",
|
|
1272
|
-
ref:
|
|
1276
|
+
ref: re
|
|
1273
1277
|
}, [
|
|
1274
|
-
(a(),
|
|
1275
|
-
key: `slicer_${
|
|
1278
|
+
(a(), Pe(At, {
|
|
1279
|
+
key: `slicer_${ze.value}`,
|
|
1276
1280
|
background: e.value.zoomColor,
|
|
1277
1281
|
borderColor: e.value.backgroundColor,
|
|
1278
1282
|
fontSize: e.value.zoomFontSize,
|
|
@@ -1291,48 +1295,51 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1291
1295
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1292
1296
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1293
1297
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1294
|
-
minimap:
|
|
1298
|
+
minimap: at.value,
|
|
1299
|
+
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1300
|
+
minimapSelectedIndex: Y.value,
|
|
1295
1301
|
start: S.value.start,
|
|
1296
1302
|
"onUpdate:start": c[3] || (c[3] = (t) => S.value.start = t),
|
|
1297
1303
|
end: S.value.end,
|
|
1298
1304
|
"onUpdate:end": c[4] || (c[4] = (t) => S.value.end = t),
|
|
1299
|
-
onReset:
|
|
1305
|
+
onReset: tt,
|
|
1306
|
+
onTrapMouse: et
|
|
1300
1307
|
}, {
|
|
1301
|
-
"reset-action":
|
|
1302
|
-
D(r.$slots, "reset-action",
|
|
1308
|
+
"reset-action": ae(({ reset: t }) => [
|
|
1309
|
+
D(r.$slots, "reset-action", J(fe({ reset: t })), void 0, !0)
|
|
1303
1310
|
]),
|
|
1304
1311
|
_: 3
|
|
1305
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "start", "end"]))
|
|
1312
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "minimapSelectedIndex", "start", "end"]))
|
|
1306
1313
|
])) : p("", !0),
|
|
1307
1314
|
e.value.showLegend ? (a(), l("div", {
|
|
1308
1315
|
key: 6,
|
|
1309
1316
|
ref_key: "quickChartLegend",
|
|
1310
|
-
ref:
|
|
1317
|
+
ref: oe,
|
|
1311
1318
|
class: "vue-ui-quick-chart-legend",
|
|
1312
1319
|
style: F(`background:${e.value.backgroundColor};color:${e.value.color}`)
|
|
1313
1320
|
}, [
|
|
1314
1321
|
z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, L(C.value.legend, (t, u) => (a(), l("div", {
|
|
1315
1322
|
class: "vue-ui-quick-chart-legend-item",
|
|
1316
1323
|
onClick: (n) => {
|
|
1317
|
-
|
|
1324
|
+
Ke(t, C.value.dataset), g("selectLegend", t);
|
|
1318
1325
|
},
|
|
1319
1326
|
style: F(`cursor: ${C.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1320
1327
|
}, [
|
|
1321
|
-
e.value.useCustomLegend ? D(r.$slots, "legend",
|
|
1322
|
-
|
|
1328
|
+
e.value.useCustomLegend ? D(r.$slots, "legend", J(Ie({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1329
|
+
ge(Ae, {
|
|
1323
1330
|
name: e.value.legendIcon,
|
|
1324
1331
|
stroke: t.color,
|
|
1325
1332
|
size: e.value.legendIconSize
|
|
1326
1333
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1327
1334
|
_("span", {
|
|
1328
1335
|
style: F(`font-size:${e.value.legendFontSize}px`)
|
|
1329
|
-
},
|
|
1336
|
+
}, T(t.name), 5),
|
|
1330
1337
|
_("span", {
|
|
1331
1338
|
style: F(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1332
|
-
},
|
|
1339
|
+
}, T(w.value.includes(t.id) ? "-" : f(H)(
|
|
1333
1340
|
e.value.formatter,
|
|
1334
1341
|
t.absoluteValue,
|
|
1335
|
-
f(
|
|
1342
|
+
f(O)({
|
|
1336
1343
|
p: e.value.valuePrefix,
|
|
1337
1344
|
v: t.absoluteValue,
|
|
1338
1345
|
s: e.value.valueSuffix,
|
|
@@ -1343,58 +1350,58 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1343
1350
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1344
1351
|
key: 0,
|
|
1345
1352
|
style: F(`font-size:${e.value.legendFontSize}px`)
|
|
1346
|
-
}, " ( - % ) ", 4)) :
|
|
1353
|
+
}, " ( - % ) ", 4)) : we.value ? (a(), l("span", {
|
|
1347
1354
|
key: 1,
|
|
1348
1355
|
style: F(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1349
1356
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1350
1357
|
key: 2,
|
|
1351
1358
|
style: F(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1352
|
-
}, " (" +
|
|
1359
|
+
}, " (" + T(f(O)({
|
|
1353
1360
|
v: t.value / C.value.total * 100,
|
|
1354
1361
|
s: "%",
|
|
1355
1362
|
r: e.value.dataLabelRoundingPercentage
|
|
1356
1363
|
})) + ") ", 5))
|
|
1357
1364
|
], 64))
|
|
1358
|
-
], 12,
|
|
1365
|
+
], 12, el))), 256)) : p("", !0),
|
|
1359
1366
|
z.value === A.LINE ? (a(!0), l(m, { key: 1 }, L(d.value.legend, (t, u) => (a(), l("div", {
|
|
1360
1367
|
class: "vue-ui-quick-chart-legend-item",
|
|
1361
1368
|
onClick: (n) => {
|
|
1362
|
-
|
|
1369
|
+
Be(t.id, d.value.legend.length - 1), g("selectLegend", t);
|
|
1363
1370
|
},
|
|
1364
1371
|
style: F(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1365
1372
|
}, [
|
|
1366
|
-
e.value.useCustomLegend ? D(r.$slots, "legend",
|
|
1367
|
-
|
|
1373
|
+
e.value.useCustomLegend ? D(r.$slots, "legend", J(Ie({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1374
|
+
ge(Ae, {
|
|
1368
1375
|
name: e.value.legendIcon,
|
|
1369
1376
|
stroke: t.color,
|
|
1370
1377
|
size: e.value.legendIconSize
|
|
1371
1378
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1372
1379
|
_("span", {
|
|
1373
1380
|
style: F(`font-size:${e.value.legendFontSize}px`)
|
|
1374
|
-
},
|
|
1381
|
+
}, T(t.name), 5)
|
|
1375
1382
|
], 64))
|
|
1376
|
-
], 12,
|
|
1383
|
+
], 12, tl))), 256)) : p("", !0),
|
|
1377
1384
|
z.value === A.BAR ? (a(!0), l(m, { key: 2 }, L(v.value.legend, (t, u) => (a(), l("div", {
|
|
1378
1385
|
class: "vue-ui-quick-chart-legend-item",
|
|
1379
1386
|
onClick: (n) => {
|
|
1380
|
-
|
|
1387
|
+
Be(t.id, v.value.legend.length - 1), g("selectLegend", t);
|
|
1381
1388
|
},
|
|
1382
1389
|
style: F(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1383
1390
|
}, [
|
|
1384
|
-
e.value.useCustomLegend ? D(r.$slots, "legend",
|
|
1385
|
-
|
|
1391
|
+
e.value.useCustomLegend ? D(r.$slots, "legend", J(Ie({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1392
|
+
ge(Ae, {
|
|
1386
1393
|
name: e.value.legendIcon,
|
|
1387
1394
|
stroke: t.color,
|
|
1388
1395
|
size: e.value.legendIconSize
|
|
1389
1396
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1390
1397
|
_("span", {
|
|
1391
1398
|
style: F(`font-size:${e.value.legendFontSize}px`)
|
|
1392
|
-
},
|
|
1399
|
+
}, T(t.name), 5)
|
|
1393
1400
|
], 64))
|
|
1394
|
-
], 12,
|
|
1401
|
+
], 12, al))), 256)) : p("", !0)
|
|
1395
1402
|
], 4)) : p("", !0),
|
|
1396
|
-
|
|
1397
|
-
show:
|
|
1403
|
+
ge(St, {
|
|
1404
|
+
show: be.value.showTooltip && G.value,
|
|
1398
1405
|
backgroundColor: e.value.backgroundColor,
|
|
1399
1406
|
color: e.value.color,
|
|
1400
1407
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1405,26 +1412,26 @@ const Ze = (s) => (ut("data-v-ee278018"), s = s(), nt(), s), Tt = ["id"], It = [
|
|
|
1405
1412
|
position: e.value.tooltipPosition,
|
|
1406
1413
|
offsetY: e.value.tooltipOffsetY,
|
|
1407
1414
|
parent: j.value,
|
|
1408
|
-
content:
|
|
1409
|
-
isCustom: f(
|
|
1415
|
+
content: Q.value,
|
|
1416
|
+
isCustom: f(_e)(e.value.tooltipCustomFormat)
|
|
1410
1417
|
}, {
|
|
1411
|
-
"tooltip-before":
|
|
1412
|
-
D(r.$slots, "tooltip-before",
|
|
1418
|
+
"tooltip-before": ae(() => [
|
|
1419
|
+
D(r.$slots, "tooltip-before", J(fe({ ...se.value })), void 0, !0)
|
|
1413
1420
|
]),
|
|
1414
|
-
"tooltip-after":
|
|
1415
|
-
D(r.$slots, "tooltip-after",
|
|
1421
|
+
"tooltip-after": ae(() => [
|
|
1422
|
+
D(r.$slots, "tooltip-after", J(fe({ ...se.value })), void 0, !0)
|
|
1416
1423
|
]),
|
|
1417
1424
|
_: 3
|
|
1418
1425
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"])
|
|
1419
|
-
], 14,
|
|
1420
|
-
|
|
1426
|
+
], 14, Rt)) : (a(), l("div", ll, [
|
|
1427
|
+
ge(Ae, {
|
|
1421
1428
|
name: "circleCancel",
|
|
1422
1429
|
stroke: "red"
|
|
1423
1430
|
}),
|
|
1424
|
-
|
|
1431
|
+
ol
|
|
1425
1432
|
]));
|
|
1426
1433
|
}
|
|
1427
|
-
},
|
|
1434
|
+
}, ml = /* @__PURE__ */ zt(il, [["__scopeId", "data-v-bf59d888"]]);
|
|
1428
1435
|
export {
|
|
1429
|
-
|
|
1436
|
+
ml as default
|
|
1430
1437
|
};
|