vue-data-ui 2.3.80 → 2.3.82
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-BwOfAkTh.cjs → Arrow-BTO6BS7p.cjs} +1 -1
- package/dist/{Arrow-BI2HWbkl.js → Arrow-D-Ef1hLL.js} +1 -1
- package/dist/{BaseIcon-BhdIp3HQ.js → BaseIcon-CVe5ECp8.js} +1 -1
- package/dist/{BaseIcon-DU-oJKBy.cjs → BaseIcon-DS9Fpauh.cjs} +1 -1
- package/dist/{DataTable-ysqfWT9v.cjs → DataTable-BfvpbyB5.cjs} +1 -1
- package/dist/{DataTable-CThhaAYT.js → DataTable-OKHTStDc.js} +2 -2
- package/dist/{Legend-DtnPX_Dc.cjs → Legend-B3B4K_lr.cjs} +1 -1
- package/dist/{Legend-DxRA5XXC.js → Legend-Bt4nNAHo.js} +1 -1
- package/dist/{Shape-EntBaNbX.js → Shape-C0HIiqHY.js} +1 -1
- package/dist/{Shape-DJdHakOl.cjs → Shape-Dg4DHNlU.cjs} +1 -1
- package/dist/{Slicer-xJl1pkRn.cjs → Slicer-BPvgOo6Z.cjs} +1 -1
- package/dist/{Slicer-BLFTdmNs.js → Slicer-CB-YgfIM.js} +2 -2
- package/dist/{Title-DOzi72Pu.cjs → Title-B238VbIb.cjs} +1 -1
- package/dist/{Title-Bgh58KWs.js → Title-CXeDgAE7.js} +1 -1
- package/dist/{Tooltip-HqwVgkYT.js → Tooltip-_e0VoMC-.js} +1 -1
- package/dist/{Tooltip-DWx3KcqE.cjs → Tooltip-hihJcWT0.cjs} +1 -1
- package/dist/{index-C_xZ1jJj.js → index-B6m-GhsP.js} +1 -1
- package/dist/{index-BofUHMEw.cjs → index-CeMgFh6-.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-9QKvGow8.js → useNestedProp-BrcBWysp.js} +1 -1
- package/dist/{useNestedProp-DGK0LGfN.cjs → useNestedProp-CD3RA8XO.cjs} +1 -1
- package/dist/{usePrinter-BJ7GxAOO.js → usePrinter-BkKBQlCO.js} +1 -1
- package/dist/{usePrinter-_JYb_33H.cjs → usePrinter-_rbdfvVi.cjs} +1 -1
- package/dist/{vue-data-ui-BDRU4x1z.cjs → vue-data-ui-BgHHdUNr.cjs} +1 -1
- package/dist/{vue-data-ui-MIo8xmC1.js → vue-data-ui-wvh5ZEeD.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dul4M5zs.js → vue-ui-3d-bar-DNHZheVL.js} +7 -7
- package/dist/{vue-ui-3d-bar-Clct1WMZ.cjs → vue-ui-3d-bar-ia_wUTc1.cjs} +1 -1
- package/dist/{vue-ui-accordion-issoIPFd.js → vue-ui-accordion-BygOGjRr.js} +3 -3
- package/dist/{vue-ui-accordion-XtygMpX7.cjs → vue-ui-accordion-CH_rY04P.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DnfnIupT.js → vue-ui-age-pyramid-BZrN9gk2.js} +8 -8
- package/dist/{vue-ui-age-pyramid-EsCLRd6s.cjs → vue-ui-age-pyramid-DftioDeW.cjs} +1 -1
- package/dist/{vue-ui-annotator-zFbcfeEs.cjs → vue-ui-annotator-BGYJrkr0.cjs} +1 -1
- package/dist/{vue-ui-annotator-CmrenuBi.js → vue-ui-annotator-DRpBiqTN.js} +1 -1
- package/dist/{vue-ui-candlestick-DlwYwMdG.js → vue-ui-candlestick-BP5nrvrA.js} +9 -9
- package/dist/{vue-ui-candlestick-Bdo2RhhM.cjs → vue-ui-candlestick-CVgaOkTY.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-IN0an_Jc.cjs → vue-ui-carousel-table-Cd93n0fJ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-mo9C1GJ9.js → vue-ui-carousel-table-Dtkm1_OH.js} +4 -4
- package/dist/{vue-ui-chestnut-C9jiVBGB.cjs → vue-ui-chestnut-B6_rC31R.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DUeStDzz.js → vue-ui-chestnut-CKviQSxK.js} +6 -6
- package/dist/{vue-ui-cursor-BoetT349.cjs → vue-ui-cursor-C4FRP_Nc.cjs} +1 -1
- package/dist/{vue-ui-cursor-x_Ai6P6S.js → vue-ui-cursor-_egqr6DD.js} +2 -2
- package/dist/{vue-ui-dashboard-B8IRsFc3.js → vue-ui-dashboard-DUgt8PIq.js} +2 -2
- package/dist/{vue-ui-dashboard-DUH23G5u.cjs → vue-ui-dashboard-iPdvuNQ9.cjs} +1 -1
- package/dist/{vue-ui-digits-BO5Bxyib.js → vue-ui-digits-CcrjtXtk.js} +2 -2
- package/dist/{vue-ui-digits-ByNeTvE4.cjs → vue-ui-digits-OWEvFsfq.cjs} +1 -1
- package/dist/{vue-ui-donut-CDizH2x3.cjs → vue-ui-donut-D2SQezST.cjs} +1 -1
- package/dist/{vue-ui-donut-DC6mZWdM.js → vue-ui-donut-Dmr11NmB.js} +9 -9
- package/dist/{vue-ui-donut-evolution-B2U3g0Yw.js → vue-ui-donut-evolution-D1LXnQfC.js} +48 -48
- package/dist/{vue-ui-donut-evolution-B7G4UB_e.cjs → vue-ui-donut-evolution-PtyzK7G6.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DD7RtYjl.cjs → vue-ui-dumbbell-Bbv_WYY2.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-81Azsrmw.js → vue-ui-dumbbell-CNX0gxiM.js} +8 -8
- package/dist/{vue-ui-flow-BbJmSWr4.cjs → vue-ui-flow-DRjha-Xx.cjs} +1 -1
- package/dist/{vue-ui-flow-CTobijfD.js → vue-ui-flow-FsawfZQj.js} +7 -7
- package/dist/{vue-ui-galaxy-BxkH3rZs.cjs → vue-ui-galaxy-BCMTqPX1.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B9U-hTWd.js → vue-ui-galaxy-Eev5Q8w4.js} +9 -9
- package/dist/{vue-ui-gauge-DezT9Iw3.cjs → vue-ui-gauge-CPMlQvxU.cjs} +1 -1
- package/dist/{vue-ui-gauge-BvS6Ep8K.js → vue-ui-gauge-DBxTCkge.js} +5 -5
- package/dist/{vue-ui-gizmo-CCSV95Cw.js → vue-ui-gizmo-BAiNxz8X.js} +2 -2
- package/dist/{vue-ui-gizmo-CdGlyolL.cjs → vue-ui-gizmo-CxnoYWwd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DQntMs3y.js → vue-ui-heatmap-BpHByyVR.js} +8 -8
- package/dist/{vue-ui-heatmap-Decb4BRV.cjs → vue-ui-heatmap-DvsH2Au0.cjs} +1 -1
- package/dist/{vue-ui-kpi-yDsCX1qh.js → vue-ui-kpi-CyvW8X1f.js} +3 -3
- package/dist/{vue-ui-kpi-MZSJlc3i.cjs → vue-ui-kpi-DFquN6Ls.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DluKyWjA.js → vue-ui-mini-loader--6qogu7d.js} +2 -2
- package/dist/{vue-ui-mini-loader-Dz3LxxFJ.cjs → vue-ui-mini-loader-DIa_OVyM.cjs} +1 -1
- package/dist/{vue-ui-molecule-rmhSL2tT.cjs → vue-ui-molecule-CbLmk-Fv.cjs} +1 -1
- package/dist/{vue-ui-molecule-BG1BbGts.js → vue-ui-molecule-YJ0bXwbB.js} +9 -9
- package/dist/{vue-ui-mood-radar-EO6jRkGF.js → vue-ui-mood-radar-B8QHrApG.js} +9 -9
- package/dist/{vue-ui-mood-radar-owAd1Twe.cjs → vue-ui-mood-radar-BV5RnpiH.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-HDfFuFhB.js → vue-ui-nested-donuts-CLhrY6y1.js} +9 -9
- package/dist/{vue-ui-nested-donuts-u-4RFRIE.cjs → vue-ui-nested-donuts-DKAkxEPd.cjs} +1 -1
- package/dist/{vue-ui-onion-DqMY1iPE.js → vue-ui-onion-BXdEzlmA.js} +9 -9
- package/dist/{vue-ui-onion-BUOOD3WG.cjs → vue-ui-onion-CkknGnDm.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CUU74I_R.js → vue-ui-parallel-coordinate-plot-4XBOTcO8.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-2JGpf8SJ.cjs → vue-ui-parallel-coordinate-plot-CE31yJK_.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BrbrrHLN.js → vue-ui-quadrant-CgMsyw3Q.js} +10 -10
- package/dist/{vue-ui-quadrant-BXUtKBlK.cjs → vue-ui-quadrant-D9_7g38o.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BeJMzQZr.js → vue-ui-quick-chart-Cgbq5tLg.js} +334 -334
- package/dist/vue-ui-quick-chart-sMi9mLRt.cjs +15 -0
- package/dist/{vue-ui-radar-BMbWx0XC.js → vue-ui-radar-BvN2WTtC.js} +10 -10
- package/dist/{vue-ui-radar-yFYbYYI9.cjs → vue-ui-radar-CkcPJX_6.cjs} +1 -1
- package/dist/{vue-ui-rating-Ckh6xyv1.cjs → vue-ui-rating-Cl-ncmAS.cjs} +1 -1
- package/dist/{vue-ui-rating-D19QGpzZ.js → vue-ui-rating-DfKMxLTK.js} +2 -2
- package/dist/{vue-ui-relation-circle-YH6EpWSC.cjs → vue-ui-relation-circle-CJP9zuqV.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DqdXa6V6.js → vue-ui-relation-circle-DV5lMEvZ.js} +5 -5
- package/dist/{vue-ui-rings-CDqf78PA.js → vue-ui-rings-Bu-zVpHc.js} +9 -9
- package/dist/{vue-ui-rings-Dbi3uWQh.cjs → vue-ui-rings-C8u__5v-.cjs} +1 -1
- package/dist/{vue-ui-scatter-Ch3iYYoX.cjs → vue-ui-scatter-D3FTfnsR.cjs} +1 -1
- package/dist/{vue-ui-scatter-D3IFY9II.js → vue-ui-scatter-WeSsnz6H.js} +10 -10
- package/dist/{vue-ui-screenshot-Xtz1BC-w.js → vue-ui-screenshot-B9Mbp_0-.js} +1 -1
- package/dist/{vue-ui-screenshot-DBmmftjw.cjs → vue-ui-screenshot-BFL-8cPa.cjs} +1 -1
- package/dist/{vue-ui-skeleton-C3UWXP3Q.js → vue-ui-skeleton-BOhyMEA5.js} +2 -2
- package/dist/{vue-ui-skeleton-Bx_kbjKr.cjs → vue-ui-skeleton-dfikkXQa.cjs} +1 -1
- package/dist/{vue-ui-smiley-BCorPn2E.cjs → vue-ui-smiley-BVd6D7fu.cjs} +1 -1
- package/dist/{vue-ui-smiley-FhcqViE3.js → vue-ui-smiley-CwYjTYN8.js} +2 -2
- package/dist/{vue-ui-spark-trend-RJUm-CJC.js → vue-ui-spark-trend-D6IwslA-.js} +4 -4
- package/dist/{vue-ui-spark-trend-C1BmsVRe.cjs → vue-ui-spark-trend-DuIEXk8W.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C6sZ4mYK.js → vue-ui-sparkbar-1v_BypP0.js} +3 -3
- package/dist/{vue-ui-sparkbar-CtQSQySy.cjs → vue-ui-sparkbar-woU3TqMe.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CoyqAUDp.cjs → vue-ui-sparkgauge-B4wnbfIi.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-C1pOZo8V.js → vue-ui-sparkgauge-Cwu4aQUR.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Mh93EuLF.js → vue-ui-sparkhistogram-BTdWXIO8.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvBJHfyk.cjs → vue-ui-sparkhistogram-wRqt6OJx.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DiAIsoI3.js → vue-ui-sparkline-B2v0wJH3.js} +3 -3
- package/dist/{vue-ui-sparkline-CXIAmE5m.cjs → vue-ui-sparkline-DE3oMNsY.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Bb8ZtMfn.js → vue-ui-sparkstackbar-B4lRHLJK.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BePzQn-H.cjs → vue-ui-sparkstackbar-DIk48oMu.cjs} +1 -1
- package/dist/{vue-ui-stackbar-B7KyGHZZ.js → vue-ui-stackbar-DSc8j8LH.js} +10 -10
- package/dist/{vue-ui-stackbar-BiNZ2pBZ.cjs → vue-ui-stackbar-DVdBUu5U.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-8d_juyi7.js → vue-ui-strip-plot-6hhRMLCq.js} +9 -9
- package/dist/{vue-ui-strip-plot-CY5rDwjh.cjs → vue-ui-strip-plot-Cjays3PT.cjs} +1 -1
- package/dist/{vue-ui-table-CoGh4xvF.cjs → vue-ui-table-D-_a1UzS.cjs} +1 -1
- package/dist/{vue-ui-table-CSm91gHM.js → vue-ui-table-DQkiNDaZ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CwDproVr.cjs → vue-ui-table-heatmap-BRvVWrf1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B30TipjK.js → vue-ui-table-heatmap-_KVKSH7q.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BcFIKA8V.js → vue-ui-table-sparkline-C_0i15kC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B8lCOsfc.cjs → vue-ui-table-sparkline-kyYy6tk8.cjs} +1 -1
- package/dist/{vue-ui-thermometer-D6rDq4hj.cjs → vue-ui-thermometer-BjU-T5A0.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CPqFKYwL.js → vue-ui-thermometer-y3Hm1mwz.js} +5 -5
- package/dist/{vue-ui-timer-DdQB8bF5.js → vue-ui-timer-7ouUkgHq.js} +4 -4
- package/dist/{vue-ui-timer-C70sw9Rc.cjs → vue-ui-timer-CVHz7dT6.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DDCOUKU9.js → vue-ui-tiremarks-8-riUzAT.js} +5 -5
- package/dist/{vue-ui-tiremarks-o-KdCzZV.cjs → vue-ui-tiremarks-Dr9qSWVo.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOCZ8x4F.js → vue-ui-treemap-ChYWvnSf.js} +9 -9
- package/dist/{vue-ui-treemap-C3XRZk0P.cjs → vue-ui-treemap-CmoQK2_G.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-C2ZIoY0I.cjs → vue-ui-vertical-bar-Doj3k8dI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CAlQekf-.js → vue-ui-vertical-bar-Ecx25LWQ.js} +9 -9
- package/dist/{vue-ui-waffle-D1eYO-NM.cjs → vue-ui-waffle-BgoDu9wa.cjs} +1 -1
- package/dist/{vue-ui-waffle-CasLSUzY.js → vue-ui-waffle-BlqBRA5E.js} +9 -9
- package/dist/{vue-ui-wheel-C4ODblPX.cjs → vue-ui-wheel-BlVmj1yz.cjs} +1 -1
- package/dist/{vue-ui-wheel-CHn24pYD.js → vue-ui-wheel-DNndo4fU.js} +5 -5
- package/dist/{vue-ui-word-cloud-uGJLXPYv.js → vue-ui-word-cloud-C9XDZjPt.js} +7 -7
- package/dist/{vue-ui-word-cloud-XCS_A5_a.cjs → vue-ui-word-cloud-Cvyev8yY.cjs} +1 -1
- package/dist/{vue-ui-xy-KnfMOUv4.js → vue-ui-xy-DkNi0ZJ4.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DVjSzeFt.js → vue-ui-xy-canvas-DIFlyxki.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Yy7FaFLS.cjs → vue-ui-xy-canvas-a3pNJKYd.cjs} +1 -1
- package/dist/{vue-ui-xy-CH9wvh8w.cjs → vue-ui-xy-x5TSd-hr.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-CNn9Wt0K.cjs +0 -15
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import Le from "./BaseIcon-
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
1
|
+
import { ref as I, computed as D, watch as Te, onMounted as rt, onBeforeUnmount as st, openBlock as a, createElementBlock as l, normalizeClass as ne, normalizeStyle as O, createBlock as Pe, unref as f, createSlots as vt, withCtx as ae, renderSlot as V, normalizeProps as J, guardReactiveProps as ge, createCommentVNode as p, toDisplayString as E, createElementVNode as _, Fragment as m, renderList as L, mergeProps as Ie, createVNode as me, pushScopeId as dt, popScopeId as ct } from "vue";
|
|
2
|
+
import { u as ht, c as ft, t as gt, a as mt, p as U, b as pt, G as xt, e as yt, d as Ee, m as kt, C as He, X as bt, j as St, k as pe, n as Re, i as H, f as M, Q as Xe, v as X, x as Ae, y as Ne } from "./index-B6m-GhsP.js";
|
|
3
|
+
import { t as wt, u as _t } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import Le from "./BaseIcon-CVe5ECp8.js";
|
|
5
|
+
import { _ as At } from "./Tooltip-_e0VoMC-.js";
|
|
6
|
+
import { u as Lt, U as zt } from "./usePrinter-BkKBQlCO.js";
|
|
7
|
+
import { S as $t } from "./Slicer-CB-YgfIM.js";
|
|
8
|
+
import Ct from "./vue-ui-skeleton-BOhyMEA5.js";
|
|
9
|
+
import { u as Ze } from "./useNestedProp-BrcBWysp.js";
|
|
10
|
+
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const A = {
|
|
12
12
|
LINE: "LINE",
|
|
13
13
|
BAR: "BAR",
|
|
14
14
|
DONUT: "DONUT"
|
|
15
15
|
}, Pt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
16
16
|
function It({ dataset: s, barLineSwitch: $ = 6 }) {
|
|
17
|
-
let g = null, R = null,
|
|
18
|
-
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`), xe(s) && (Z(s) && (s.length < $ ? g = A.BAR : g = A.LINE, R = s,
|
|
19
|
-
if (!
|
|
17
|
+
let g = null, R = null, q = 0;
|
|
18
|
+
if ((typeof s == "number" || typeof s == "string") && console.warn(`The provided dataset (${s}) is not sufficient to build a chart`), xe(s) && (Z(s) && (s.length < $ ? g = A.BAR : g = A.LINE, R = s, q = s.length), ze(s))) {
|
|
19
|
+
if (!Rt(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
21
|
const oe = Object.keys(s[0]), re = Object.values(s[0]);
|
|
22
|
-
if (!oe.some((
|
|
22
|
+
if (!oe.some((T) => Nt(T)))
|
|
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
|
-
|
|
25
|
-
...
|
|
26
|
-
data:
|
|
27
|
-
}))), s = s.map((
|
|
24
|
+
Ye(re, (T) => typeof T == "number") && (g = A.DONUT, R = s), Ye(re, (T) => Array.isArray(T) && Z(T)) && (Je(s) > $ ? g = A.LINE : g = A.BAR, q = Je(s), R = s.map((T) => ({
|
|
25
|
+
...T,
|
|
26
|
+
data: Ot(T, (G) => Z(G))
|
|
27
|
+
}))), s = s.map((T) => Qe(T)), R = R.map((T) => Qe(T));
|
|
28
28
|
}
|
|
29
29
|
return xe(s) && [...new Set(s.flatMap((oe) => Array.isArray(oe)))][0], {
|
|
30
30
|
dataset: s,
|
|
31
31
|
type: g,
|
|
32
32
|
usableDataset: R,
|
|
33
|
-
maxSeriesLength:
|
|
33
|
+
maxSeriesLength: q
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ke(s) {
|
|
37
37
|
return !s || xe(s) && !s.length;
|
|
38
38
|
}
|
|
39
39
|
function xe(s) {
|
|
40
40
|
return Array.isArray(s);
|
|
41
41
|
}
|
|
42
42
|
function Z(s) {
|
|
43
|
-
if (!xe(s) ||
|
|
43
|
+
if (!xe(s) || Ke(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
47
|
function ze(s) {
|
|
48
|
-
return !xe(s) ||
|
|
48
|
+
return !xe(s) || Ke(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
50
|
function Et(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
|
-
for (let
|
|
55
|
-
const j = g[
|
|
54
|
+
for (let q = 0; q < g.length; q += 1) {
|
|
55
|
+
const j = g[q], le = R[q];
|
|
56
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 Rt(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)
|
|
@@ -66,79 +66,79 @@ function Tt(s) {
|
|
|
66
66
|
return !1;
|
|
67
67
|
return !0;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Nt(s) {
|
|
70
70
|
return Pt.includes(s.toUpperCase());
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Ye(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 Je(s) {
|
|
79
79
|
return Math.max(...[...s].flatMap(($) => Object.values($).filter((g) => Z(g)).map((g) => g.length)));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ot(s, $) {
|
|
82
82
|
return Object.values(s).filter((g) => $(g))[0];
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Qe(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 et = (s) => (dt("data-v-e43e9919"), s = s(), ct(), s), Ft = ["id"], Mt = ["xmlns", "viewBox"], Bt = ["id"], Ut = ["id"], Dt = /* @__PURE__ */ et(() => /* @__PURE__ */ _("feColorMatrix", {
|
|
91
91
|
type: "saturate",
|
|
92
92
|
values: "0"
|
|
93
|
-
}, null, -1)),
|
|
93
|
+
}, null, -1)), Vt = ["id"], qt = ["flood-color"], Wt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "donut-label-connectors"
|
|
96
|
-
},
|
|
96
|
+
}, jt = ["d", "stroke", "stroke-width", "filter"], Gt = ["cx", "cy", "r", "fill"], Ht = ["cx", "cy", "r", "fill", "filter"], Xt = { class: "donut" }, Zt = ["d", "fill", "stroke", "stroke-width", "filter"], Yt = ["d", "onMouseenter", "onClick"], Jt = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "donut-labels quick-animation"
|
|
99
|
-
},
|
|
99
|
+
}, Qt = ["cx", "cy", "fill", "filter"], Kt = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ea = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ta = {
|
|
100
100
|
key: 2,
|
|
101
101
|
class: "donut-hollow quick-animation"
|
|
102
|
-
},
|
|
102
|
+
}, aa = ["x", "y", "font-size", "fill"], la = ["x", "y", "font-size", "fill"], oa = {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "line-grid"
|
|
105
|
-
},
|
|
105
|
+
}, ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: "line-axis"
|
|
108
|
-
},
|
|
108
|
+
}, ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], va = {
|
|
109
109
|
key: 2,
|
|
110
110
|
class: "yLabels"
|
|
111
|
-
},
|
|
111
|
+
}, da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["x", "y", "font-size", "fill"], ha = {
|
|
112
112
|
key: 3,
|
|
113
113
|
class: "periodLabels"
|
|
114
|
-
},
|
|
114
|
+
}, fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ga = ["font-size", "text-anchor", "fill", "transform"], ma = { class: "plots" }, pa = { class: "line-plot-series" }, xa = ["d", "stroke", "stroke-width"], ya = ["d", "stroke", "stroke-width"], ka = ["d", "stroke", "stroke-width"], ba = ["d", "stroke", "stroke-width"], Sa = ["cx", "cy", "fill", "stroke"], wa = {
|
|
115
115
|
key: 4,
|
|
116
116
|
class: "dataLabels"
|
|
117
|
-
},
|
|
117
|
+
}, _a = ["font-size", "fill", "x", "y"], Aa = { class: "tooltip-traps" }, La = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], za = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "line-grid"
|
|
120
|
-
},
|
|
120
|
+
}, $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = {
|
|
121
121
|
key: 1,
|
|
122
122
|
class: "line-axis"
|
|
123
123
|
}, Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = {
|
|
124
124
|
key: 2,
|
|
125
125
|
class: "yLabels"
|
|
126
|
-
},
|
|
126
|
+
}, Ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x", "y", "font-size", "fill"], Oa = {
|
|
127
127
|
key: 3,
|
|
128
128
|
class: "periodLabels"
|
|
129
|
-
},
|
|
129
|
+
}, Fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ma = ["font-size", "text-anchor", "transform", "fill"], Ba = { class: "plots" }, Ua = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Da = ["to"], Va = ["from", "to"], qa = {
|
|
130
130
|
key: 4,
|
|
131
131
|
class: "dataLabels"
|
|
132
|
-
},
|
|
132
|
+
}, Wa = ["x", "y", "font-size", "fill"], ja = { class: "tooltip-traps" }, Ga = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Ha = {
|
|
133
133
|
key: 3,
|
|
134
134
|
class: "axis-labels"
|
|
135
|
-
},
|
|
135
|
+
}, Xa = { key: 0 }, Za = ["font-size", "fill", "x", "y"], Ya = { key: 1 }, Ja = ["font-size", "fill", "x", "y"], Qa = { key: 2 }, Ka = ["font-size", "fill", "transform"], el = { key: 3 }, tl = ["font-size", "fill", "transform"], al = {
|
|
136
136
|
key: 4,
|
|
137
137
|
class: "vue-data-ui-watermark"
|
|
138
|
-
},
|
|
138
|
+
}, ll = ["onClick"], ol = ["onClick"], il = ["onClick"], ul = {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "vue-ui-quick-chart-not-processable"
|
|
141
|
-
},
|
|
141
|
+
}, nl = /* @__PURE__ */ et(() => /* @__PURE__ */ _("span", null, "Dataset is not processable", -1)), rl = {
|
|
142
142
|
__name: "vue-ui-quick-chart",
|
|
143
143
|
props: {
|
|
144
144
|
config: {
|
|
@@ -156,30 +156,30 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["selectDatapoint", "selectLegend"],
|
|
158
158
|
setup(s, { expose: $, emit: g }) {
|
|
159
|
-
const R = s, { vue_ui_quick_chart:
|
|
160
|
-
get: () =>
|
|
159
|
+
const R = s, { vue_ui_quick_chart: q } = ht(), j = I(null), le = I(null), oe = I(null), re = I(null), T = I(ft()), G = I(!1), se = I(null), Q = I(""), W = I(null), w = I([]), Oe = I(0), ye = I(0), e = D({
|
|
160
|
+
get: () => Fe(),
|
|
161
161
|
set: (u) => u
|
|
162
162
|
});
|
|
163
|
-
function
|
|
164
|
-
const u =
|
|
163
|
+
function Fe() {
|
|
164
|
+
const u = Ze({
|
|
165
165
|
userConfig: R.config,
|
|
166
|
-
defaultConfig:
|
|
166
|
+
defaultConfig: q
|
|
167
167
|
});
|
|
168
168
|
return u.theme ? {
|
|
169
|
-
...
|
|
170
|
-
userConfig:
|
|
169
|
+
...Ze({
|
|
170
|
+
userConfig: gt.vue_ui_quick_chart[u.theme] || R.config,
|
|
171
171
|
defaultConfig: u
|
|
172
172
|
}),
|
|
173
|
-
customPalette:
|
|
173
|
+
customPalette: mt[u.theme] || U
|
|
174
174
|
} : u;
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
e.value =
|
|
178
|
-
}, { deep: !0 }),
|
|
179
|
-
|
|
176
|
+
Te(() => R.config, (u) => {
|
|
177
|
+
e.value = Fe(), y.value.width = e.value.width, y.value.height = e.value.height, Ue();
|
|
178
|
+
}, { deep: !0 }), Te(() => R.dataset, (u) => {
|
|
179
|
+
k.value = de.value, b.value.start = 0, b.value.end = k.value.maxSeriesLength, ye.value += 1;
|
|
180
180
|
}, { deep: !0 });
|
|
181
|
-
const ve =
|
|
182
|
-
const u = It({ dataset:
|
|
181
|
+
const ve = D(() => pt(e.value.customPalette)), de = D(() => {
|
|
182
|
+
const u = It({ dataset: xt(R.dataset, [
|
|
183
183
|
"serie",
|
|
184
184
|
"series",
|
|
185
185
|
"data",
|
|
@@ -188,79 +188,79 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
188
188
|
"num"
|
|
189
189
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
190
190
|
return u || console.error("VueUiQuickChart : Dataset is not processable"), u;
|
|
191
|
-
}),
|
|
192
|
-
|
|
193
|
-
u ||
|
|
191
|
+
}), k = I(de.value), tt = D(() => !!k.value), z = D(() => k.value ? k.value.type : null);
|
|
192
|
+
Te(() => z.value, (u) => {
|
|
193
|
+
u || yt({
|
|
194
194
|
componentName: "VueUiQuickChart",
|
|
195
195
|
type: "dataset"
|
|
196
196
|
});
|
|
197
197
|
}, { immediate: !0 });
|
|
198
|
-
const { isPrinting: ke, isImaging: be, generatePdf:
|
|
199
|
-
elementId: `${z.value}_${
|
|
198
|
+
const { isPrinting: ke, isImaging: be, generatePdf: Me, generateImage: Be } = Lt({
|
|
199
|
+
elementId: `${z.value}_${T.value}`,
|
|
200
200
|
fileName: e.value.title || z.value
|
|
201
|
-
}),
|
|
201
|
+
}), y = I({
|
|
202
202
|
width: e.value.width,
|
|
203
203
|
height: e.value.height
|
|
204
|
-
}), Se =
|
|
204
|
+
}), Se = I({
|
|
205
205
|
showTooltip: e.value.showTooltip
|
|
206
|
-
}), we =
|
|
207
|
-
|
|
206
|
+
}), we = I(null);
|
|
207
|
+
rt(() => {
|
|
208
208
|
Ue();
|
|
209
209
|
});
|
|
210
210
|
function Ue() {
|
|
211
211
|
if (e.value.responsive) {
|
|
212
|
-
const u =
|
|
213
|
-
const { width: c, height: t } =
|
|
212
|
+
const u = wt(() => {
|
|
213
|
+
const { width: c, height: t } = _t({
|
|
214
214
|
chart: j.value,
|
|
215
215
|
title: e.value.title ? le.value : null,
|
|
216
216
|
legend: e.value.showLegend ? oe.value : null,
|
|
217
|
-
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy &&
|
|
217
|
+
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? re.value : null
|
|
218
218
|
});
|
|
219
|
-
|
|
219
|
+
y.value.width = c, y.value.height = t;
|
|
220
220
|
});
|
|
221
221
|
we.value = new ResizeObserver(u), we.value.observe(j.value.parentNode);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
|
|
224
|
+
st(() => {
|
|
225
225
|
we.value && we.value.disconnect();
|
|
226
226
|
});
|
|
227
|
-
const
|
|
227
|
+
const at = D(() => {
|
|
228
228
|
switch (z.value) {
|
|
229
229
|
case A.LINE:
|
|
230
|
-
return `0 0 ${
|
|
230
|
+
return `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`;
|
|
231
231
|
case A.BAR:
|
|
232
|
-
return `0 0 ${
|
|
232
|
+
return `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`;
|
|
233
233
|
case A.DONUT:
|
|
234
|
-
return `0 0 ${
|
|
234
|
+
return `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`;
|
|
235
235
|
default:
|
|
236
|
-
return `0 0 ${
|
|
236
|
+
return `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${y.value.height <= 0 ? 10 : y.value.height}`;
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
function De(u) {
|
|
240
240
|
return [...u].map((c) => c.value).reduce((c, t) => c + t, 0);
|
|
241
241
|
}
|
|
242
242
|
function ce(u) {
|
|
243
|
-
return e.value.blurOnHover && ![null, void 0].includes(
|
|
243
|
+
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== u ? `url(#blur_${T.value})` : "";
|
|
244
244
|
}
|
|
245
245
|
function Ve(u, c) {
|
|
246
246
|
w.value.includes(u) ? w.value = w.value.filter((t) => t !== u) : w.value.length < c && w.value.push(u);
|
|
247
247
|
}
|
|
248
|
-
const qe =
|
|
249
|
-
function
|
|
248
|
+
const qe = I(null), We = I(null), _e = I(!1);
|
|
249
|
+
function lt(u, c) {
|
|
250
250
|
_e.value = !0;
|
|
251
251
|
let t = u.value;
|
|
252
252
|
if (w.value.includes(u.id)) {
|
|
253
253
|
let r = function() {
|
|
254
|
-
t > n ? (_e.value = !1, cancelAnimationFrame(We.value),
|
|
255
|
-
...
|
|
256
|
-
dataset:
|
|
254
|
+
t > n ? (_e.value = !1, cancelAnimationFrame(We.value), k.value = {
|
|
255
|
+
...k.value,
|
|
256
|
+
dataset: k.value.dataset.map((h, N) => u.id === `donut_${N}` ? {
|
|
257
257
|
...h,
|
|
258
258
|
value: n,
|
|
259
259
|
VALUE: n
|
|
260
260
|
} : h)
|
|
261
|
-
}) : (t += n * 0.025,
|
|
262
|
-
...
|
|
263
|
-
dataset:
|
|
261
|
+
}) : (t += n * 0.025, k.value = {
|
|
262
|
+
...k.value,
|
|
263
|
+
dataset: k.value.dataset.map((h, N) => u.id === `donut_${N}` ? {
|
|
264
264
|
...h,
|
|
265
265
|
value: t,
|
|
266
266
|
VALUE: t
|
|
@@ -272,16 +272,16 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
272
272
|
r();
|
|
273
273
|
} else if (c.length > 1) {
|
|
274
274
|
let n = function() {
|
|
275
|
-
t < 0.1 ? (_e.value = !1, cancelAnimationFrame(qe.value), w.value.push(u.id),
|
|
276
|
-
...
|
|
277
|
-
dataset:
|
|
275
|
+
t < 0.1 ? (_e.value = !1, cancelAnimationFrame(qe.value), w.value.push(u.id), k.value = {
|
|
276
|
+
...k.value,
|
|
277
|
+
dataset: k.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
278
278
|
...r,
|
|
279
279
|
value: 0,
|
|
280
280
|
VALUE: 0
|
|
281
281
|
} : r)
|
|
282
|
-
}) : (t /= 1.1,
|
|
283
|
-
...
|
|
284
|
-
dataset:
|
|
282
|
+
}) : (t /= 1.1, k.value = {
|
|
283
|
+
...k.value,
|
|
284
|
+
dataset: k.value.dataset.map((r, h) => u.id === `donut_${h}` ? {
|
|
285
285
|
...r,
|
|
286
286
|
value: t,
|
|
287
287
|
VALUE: t
|
|
@@ -291,24 +291,24 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
291
291
|
n();
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
const Y =
|
|
295
|
-
function
|
|
294
|
+
const Y = I(null);
|
|
295
|
+
function ot(u) {
|
|
296
296
|
Y.value = u;
|
|
297
297
|
}
|
|
298
|
-
const C =
|
|
298
|
+
const je = D(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), C = D(() => {
|
|
299
299
|
if (z.value !== A.DONUT) return null;
|
|
300
|
-
const u =
|
|
300
|
+
const u = k.value.dataset.map((o, i) => ({
|
|
301
301
|
...o,
|
|
302
302
|
value: o.VALUE || o.DATA || o.SERIE || o.VALUES || o.NUM || 0,
|
|
303
303
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
304
304
|
id: `donut_${i}`
|
|
305
305
|
})).map((o, i) => ({
|
|
306
306
|
...o,
|
|
307
|
-
color: o.COLOR ?
|
|
307
|
+
color: o.COLOR ? Ee(o.COLOR) : ve.value[i + e.value.paletteStartIndex] || U[i + e.value.paletteStartIndex] || U[(i + e.value.paletteStartIndex) % U.length],
|
|
308
308
|
immutableValue: o.value
|
|
309
309
|
}));
|
|
310
310
|
function c(o, i) {
|
|
311
|
-
return
|
|
311
|
+
return M({
|
|
312
312
|
v: isNaN(o.value / De(i)) ? 0 : o.value / De(i) * 100,
|
|
313
313
|
s: "%",
|
|
314
314
|
r: e.value.dataLabelRoundingPercentage
|
|
@@ -318,11 +318,11 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
318
318
|
return o.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
319
319
|
}
|
|
320
320
|
function n(o, i) {
|
|
321
|
-
const S = de.value.dataset.find((
|
|
321
|
+
const S = de.value.dataset.find((P, F) => `donut_${F}` === o).VALUE;
|
|
322
322
|
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
323
323
|
}
|
|
324
324
|
function r({ datapoint: o, seriesIndex: i }) {
|
|
325
|
-
se.value = { datapoint: o, seriesIndex: i, config: e.value, dataset: u },
|
|
325
|
+
se.value = { datapoint: o, seriesIndex: i, config: e.value, dataset: u }, W.value = o.id;
|
|
326
326
|
const S = e.value.tooltipCustomFormat;
|
|
327
327
|
if (Ae(S) && Ne(() => S({
|
|
328
328
|
datapoint: o,
|
|
@@ -341,29 +341,29 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
341
341
|
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(
|
|
342
342
|
e.value.formatter,
|
|
343
343
|
o.value,
|
|
344
|
-
|
|
344
|
+
M({
|
|
345
345
|
p: e.value.valuePrefix,
|
|
346
346
|
v: o.value,
|
|
347
347
|
s: e.value.valueSuffix,
|
|
348
348
|
r: e.value.dataLabelRoundingValue
|
|
349
349
|
}),
|
|
350
350
|
{ datapoint: o, seriesIndex: i }
|
|
351
|
-
)}</b>`, x += `<span>(${
|
|
351
|
+
)}</b>`, x += `<span>(${M({ v: o.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, Q.value = `<div>${x}</div>`;
|
|
352
352
|
}
|
|
353
353
|
G.value = !0;
|
|
354
354
|
}
|
|
355
355
|
function h() {
|
|
356
|
-
G.value = !1,
|
|
356
|
+
G.value = !1, W.value = null, Y.value = null;
|
|
357
357
|
}
|
|
358
358
|
const N = {
|
|
359
|
-
centerX:
|
|
360
|
-
centerY:
|
|
359
|
+
centerX: y.value.width / 2,
|
|
360
|
+
centerY: y.value.height / 2
|
|
361
361
|
}, B = u.filter((o) => !w.value.includes(o.id)).map((o) => o.value || 0).reduce((o, i) => o + i, 0), ie = u.map((o, i) => ({
|
|
362
362
|
...o,
|
|
363
363
|
proportion: (o.value || 0) / B,
|
|
364
364
|
value: o.value || 0,
|
|
365
365
|
absoluteValue: de.value.dataset.find((S, x) => `donut_${x}` === o.id).VALUE
|
|
366
|
-
})), K =
|
|
366
|
+
})), K = y.value.width / 2, ue = y.value.height / 2, ee = y.value.height * e.value.donutRadiusRatio;
|
|
367
367
|
return {
|
|
368
368
|
dataset: ie.filter((o) => !w.value.includes(o.id)),
|
|
369
369
|
legend: ie,
|
|
@@ -377,7 +377,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
377
377
|
cx: K,
|
|
378
378
|
cy: ue,
|
|
379
379
|
radius: ee,
|
|
380
|
-
chart:
|
|
380
|
+
chart: kt(
|
|
381
381
|
{ series: u.filter((o) => !w.value.includes(o.id)) },
|
|
382
382
|
K,
|
|
383
383
|
ue,
|
|
@@ -388,23 +388,23 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
388
388
|
1,
|
|
389
389
|
360,
|
|
390
390
|
105.25,
|
|
391
|
-
|
|
391
|
+
y.value.height * je.value
|
|
392
392
|
)
|
|
393
393
|
};
|
|
394
|
-
}), b =
|
|
394
|
+
}), b = I({
|
|
395
395
|
start: 0,
|
|
396
|
-
end:
|
|
396
|
+
end: k.value.maxSeriesLength
|
|
397
397
|
});
|
|
398
|
-
function
|
|
398
|
+
function it() {
|
|
399
399
|
b.value = {
|
|
400
400
|
start: 0,
|
|
401
|
-
end:
|
|
401
|
+
end: k.value.maxSeriesLength
|
|
402
402
|
}, ye.value += 1;
|
|
403
403
|
}
|
|
404
|
-
const
|
|
404
|
+
const ut = D(() => {
|
|
405
405
|
if (!e.value.zoomMinimap.show || z.value === A.DONUT) return [];
|
|
406
406
|
let u = [];
|
|
407
|
-
Z(
|
|
407
|
+
Z(k.value.dataset) && (u = k.value.dataset), ze(k.value.dataset) && (u = k.value.dataset.map((r, h) => ({
|
|
408
408
|
values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
|
|
409
409
|
id: z.value === A.LINE ? `line_${h}` : `bar_${h}`
|
|
410
410
|
})).filter((r) => !w.value.includes(r.id)));
|
|
@@ -417,11 +417,11 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
417
417
|
t.push(u.map((h) => h.values[r] || 0).reduce((h, N) => (h || 0) + (N || 0), 0));
|
|
418
418
|
const n = Math.min(...t);
|
|
419
419
|
return t.map((r) => r + (n < 0 ? Math.abs(n) : 0));
|
|
420
|
-
}), d =
|
|
420
|
+
}), d = D(() => {
|
|
421
421
|
if (z.value !== A.LINE) return null;
|
|
422
422
|
const u = {
|
|
423
|
-
height:
|
|
424
|
-
width:
|
|
423
|
+
height: y.value.height,
|
|
424
|
+
width: y.value.width
|
|
425
425
|
}, c = {
|
|
426
426
|
left: e.value.xyPaddingLeft,
|
|
427
427
|
top: e.value.xyPaddingTop,
|
|
@@ -431,22 +431,22 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
431
431
|
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
432
432
|
};
|
|
433
433
|
let t = [];
|
|
434
|
-
Z(
|
|
434
|
+
Z(k.value.dataset) && (t = [
|
|
435
435
|
{
|
|
436
|
-
values:
|
|
437
|
-
absoluteIndices:
|
|
436
|
+
values: k.value.dataset.slice(b.value.start, b.value.end),
|
|
437
|
+
absoluteIndices: k.value.dataset.map((o, i) => i).slice(b.value.start, b.value.end),
|
|
438
438
|
name: e.value.title,
|
|
439
439
|
color: ve.value[e.value.paletteStartIndex] || U[e.value.paletteStartIndex],
|
|
440
440
|
id: "line_0"
|
|
441
441
|
}
|
|
442
|
-
]), ze(
|
|
442
|
+
]), ze(k.value.dataset) && (t = k.value.dataset.map((o, i) => ({
|
|
443
443
|
...o,
|
|
444
444
|
values: o.VALUE || o.DATA || o.SERIE || o.SERIES || o.VALUES || o.NUM || 0,
|
|
445
445
|
name: o.NAME || o.DESCRIPTION || o.TITLE || o.LABEL || `Serie ${i}`,
|
|
446
446
|
id: `line_${i}`
|
|
447
447
|
})).map((o, i) => ({
|
|
448
448
|
...o,
|
|
449
|
-
color: o.COLOR ?
|
|
449
|
+
color: o.COLOR ? Ee(o.COLOR) : ve.value[i + e.value.paletteStartIndex] || U[i + e.value.paletteStartIndex] || U[(i + e.value.paletteStartIndex) % U.length],
|
|
450
450
|
values: o.values.slice(b.value.start, b.value.end),
|
|
451
451
|
absoluteIndices: o.values.map((S, x) => x).slice(b.value.start, b.value.end)
|
|
452
452
|
})));
|
|
@@ -454,7 +454,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
454
454
|
max: Math.max(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
455
455
|
min: Math.min(...t.filter((o) => !w.value.includes(o.id)).flatMap((o) => o.values)),
|
|
456
456
|
maxSeries: Math.max(...t.map((o) => o.values.length))
|
|
457
|
-
}, r =
|
|
457
|
+
}, r = He(n.min < 0 ? n.min : 0, n.max < 0 ? 0 : n.max, e.value.xyScaleSegments), h = n.min < 0 ? Math.abs(n.min) : 0, N = n.max < 0 ? c.top : c.bottom - h / (r.max + h) * c.height, B = c.width / n.maxSeries, ie = r.ticks.map((o) => ({
|
|
458
458
|
y: c.bottom - c.height * ((o + h) / (r.max + h)),
|
|
459
459
|
x: c.left - 8,
|
|
460
460
|
value: o
|
|
@@ -475,7 +475,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
475
475
|
};
|
|
476
476
|
});
|
|
477
477
|
function ue(o) {
|
|
478
|
-
|
|
478
|
+
W.value = o, Y.value = o;
|
|
479
479
|
const i = t.map((x) => ({
|
|
480
480
|
...x,
|
|
481
481
|
value: x.values[o],
|
|
@@ -497,21 +497,21 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
497
497
|
});
|
|
498
498
|
else {
|
|
499
499
|
let x = "";
|
|
500
|
-
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((
|
|
500
|
+
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((P, F) => {
|
|
501
501
|
x += `
|
|
502
502
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
503
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${
|
|
504
|
-
<span>${
|
|
503
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${P.color}"/></svg>
|
|
504
|
+
<span>${P.name}:</span>
|
|
505
505
|
<b>${H(
|
|
506
506
|
e.value.formatter,
|
|
507
|
-
|
|
508
|
-
|
|
507
|
+
P.value,
|
|
508
|
+
M({
|
|
509
509
|
p: e.value.valuePrefix,
|
|
510
|
-
v:
|
|
510
|
+
v: P.value,
|
|
511
511
|
s: e.value.valueSuffix,
|
|
512
512
|
r: e.value.dataLabelRoundingValue
|
|
513
513
|
}),
|
|
514
|
-
{ datapoint:
|
|
514
|
+
{ datapoint: P, seriesIndex: F }
|
|
515
515
|
)}
|
|
516
516
|
</b>
|
|
517
517
|
</div>
|
|
@@ -521,7 +521,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
521
521
|
G.value = !0;
|
|
522
522
|
}
|
|
523
523
|
function ee() {
|
|
524
|
-
|
|
524
|
+
W.value = null, G.value = !1;
|
|
525
525
|
}
|
|
526
526
|
return {
|
|
527
527
|
absoluteZero: N,
|
|
@@ -534,11 +534,11 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
534
534
|
useTooltip: ue,
|
|
535
535
|
killTooltip: ee
|
|
536
536
|
};
|
|
537
|
-
}), v =
|
|
537
|
+
}), v = D(() => {
|
|
538
538
|
if (z.value !== A.BAR) return null;
|
|
539
539
|
const u = {
|
|
540
|
-
height:
|
|
541
|
-
width:
|
|
540
|
+
height: y.value.height,
|
|
541
|
+
width: y.value.width
|
|
542
542
|
}, c = {
|
|
543
543
|
left: e.value.xyPaddingLeft,
|
|
544
544
|
top: e.value.xyPaddingTop,
|
|
@@ -548,65 +548,65 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
548
548
|
height: u.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
549
549
|
};
|
|
550
550
|
let t = [];
|
|
551
|
-
Z(
|
|
551
|
+
Z(k.value.dataset) && (t = [
|
|
552
552
|
{
|
|
553
|
-
values:
|
|
554
|
-
absoluteIndices:
|
|
553
|
+
values: k.value.dataset.slice(b.value.start, b.value.end),
|
|
554
|
+
absoluteIndices: k.value.dataset.map((i, S) => S).slice(b.value.start, b.value.end),
|
|
555
555
|
name: e.value.title,
|
|
556
556
|
color: ve.value[e.value.paletteStartIndex] || U[e.value.paletteStartIndex],
|
|
557
557
|
id: "bar_0"
|
|
558
558
|
}
|
|
559
|
-
]), ze(
|
|
559
|
+
]), ze(k.value.dataset) && (t = k.value.dataset.map((i, S) => ({
|
|
560
560
|
...i,
|
|
561
561
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
562
562
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${S}`,
|
|
563
563
|
id: `bar_${S}`
|
|
564
564
|
})).map((i, S) => ({
|
|
565
565
|
...i,
|
|
566
|
-
color: i.COLOR ?
|
|
566
|
+
color: i.COLOR ? Ee(i.COLOR) : ve.value[S + e.value.paletteStartIndex] || U[S + e.value.paletteStartIndex] || U[(S + e.value.paletteStartIndex) % U.length],
|
|
567
567
|
values: i.values.slice(b.value.start, b.value.end),
|
|
568
|
-
absoluteIndices: i.values.map((x,
|
|
568
|
+
absoluteIndices: i.values.map((x, P) => P).slice(b.value.start, b.value.end)
|
|
569
569
|
})));
|
|
570
570
|
const n = {
|
|
571
571
|
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)),
|
|
572
572
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
573
573
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
574
|
-
}, r =
|
|
574
|
+
}, r = He(n.min < 0 ? n.min : 0, n.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, N = c.bottom - h / (r.max + h) * c.height, B = c.width / n.maxSeries, ie = r.ticks.map((i) => ({
|
|
575
575
|
y: c.bottom - c.height * ((i + h) / (r.max + h)),
|
|
576
576
|
x: c.left - 8,
|
|
577
577
|
value: i
|
|
578
578
|
})), K = t.map((i, S) => ({
|
|
579
579
|
...i,
|
|
580
|
-
coordinates: i.values.map((x,
|
|
581
|
-
const
|
|
580
|
+
coordinates: i.values.map((x, P) => {
|
|
581
|
+
const F = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / Math.abs(n.min) * (c.height - N), Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
582
582
|
return {
|
|
583
|
-
x: c.left + B *
|
|
584
|
-
y: x > 0 ? c.bottom -
|
|
585
|
-
height: x > 0 ?
|
|
583
|
+
x: c.left + B * P + fe * S + e.value.barGap / 2,
|
|
584
|
+
y: x > 0 ? c.bottom - F : N,
|
|
585
|
+
height: x > 0 ? F - Ce : he,
|
|
586
586
|
value: x,
|
|
587
587
|
width: fe
|
|
588
588
|
};
|
|
589
589
|
})
|
|
590
590
|
})), ue = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
|
|
591
591
|
...i,
|
|
592
|
-
coordinates: i.values.map((x,
|
|
593
|
-
const
|
|
592
|
+
coordinates: i.values.map((x, P) => {
|
|
593
|
+
const F = (x + h) / (n.max + h) * c.height, he = Math.abs(x) / (n.max + h) * c.height, Ce = h / (n.max + h) * c.height, fe = B / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
594
594
|
return {
|
|
595
|
-
x: c.left + B *
|
|
596
|
-
y: x > 0 ? c.bottom -
|
|
597
|
-
height: x > 0 ?
|
|
595
|
+
x: c.left + B * P + fe * S + e.value.barGap / 2,
|
|
596
|
+
y: x > 0 ? c.bottom - F : N,
|
|
597
|
+
height: x > 0 ? F - Ce : he,
|
|
598
598
|
value: x,
|
|
599
599
|
width: fe
|
|
600
600
|
};
|
|
601
601
|
})
|
|
602
602
|
}));
|
|
603
603
|
function ee(i) {
|
|
604
|
-
|
|
605
|
-
const S = t.map((
|
|
606
|
-
...
|
|
607
|
-
value:
|
|
608
|
-
absoluteIndex:
|
|
609
|
-
})).filter((
|
|
604
|
+
W.value = i, Y.value = i;
|
|
605
|
+
const S = t.map((P) => ({
|
|
606
|
+
...P,
|
|
607
|
+
value: P.values[i],
|
|
608
|
+
absoluteIndex: P.absoluteIndices[i]
|
|
609
|
+
})).filter((P) => !w.value.includes(P.id));
|
|
610
610
|
se.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
|
|
611
611
|
const x = e.value.tooltipCustomFormat;
|
|
612
612
|
if (Ae(x) && Ne(() => x({
|
|
@@ -622,32 +622,32 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
622
622
|
config: e.value
|
|
623
623
|
});
|
|
624
624
|
else {
|
|
625
|
-
let
|
|
626
|
-
e.value.xyPeriods[S[0].absoluteIndex] && (
|
|
627
|
-
|
|
625
|
+
let P = "";
|
|
626
|
+
e.value.xyPeriods[S[0].absoluteIndex] && (P += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((F, he) => {
|
|
627
|
+
P += `
|
|
628
628
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
629
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${
|
|
630
|
-
<span>${
|
|
629
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${F.color}"/></svg>
|
|
630
|
+
<span>${F.name}:</span>
|
|
631
631
|
<b>${H(
|
|
632
632
|
e.value.formatter,
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
F.value,
|
|
634
|
+
M({
|
|
635
635
|
p: e.value.valuePrefix,
|
|
636
|
-
v:
|
|
636
|
+
v: F.value,
|
|
637
637
|
s: e.value.valueSuffix,
|
|
638
638
|
r: e.value.dataLabelRoundingValue
|
|
639
639
|
}),
|
|
640
|
-
{ datapoint:
|
|
640
|
+
{ datapoint: F, seriesIndex: he }
|
|
641
641
|
)}
|
|
642
642
|
</b>
|
|
643
643
|
</div>
|
|
644
644
|
`;
|
|
645
|
-
}), Q.value =
|
|
645
|
+
}), Q.value = P;
|
|
646
646
|
}
|
|
647
647
|
G.value = !0;
|
|
648
648
|
}
|
|
649
649
|
function o() {
|
|
650
|
-
G.value = !1,
|
|
650
|
+
G.value = !1, W.value = null, Y.value = null;
|
|
651
651
|
}
|
|
652
652
|
return {
|
|
653
653
|
absoluteZero: N,
|
|
@@ -660,33 +660,33 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
660
660
|
useTooltip: ee,
|
|
661
661
|
killTooltip: o
|
|
662
662
|
};
|
|
663
|
-
}), $e =
|
|
664
|
-
function
|
|
665
|
-
$e.value = u,
|
|
663
|
+
}), $e = I(!1);
|
|
664
|
+
function nt(u) {
|
|
665
|
+
$e.value = u, Oe.value += 1;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Ge() {
|
|
668
668
|
Se.value.showTooltip = !Se.value.showTooltip;
|
|
669
669
|
}
|
|
670
670
|
return $({
|
|
671
|
-
generatePdf:
|
|
671
|
+
generatePdf: Me,
|
|
672
672
|
generateImage: Be,
|
|
673
|
-
toggleTooltip:
|
|
674
|
-
}), (u, c) =>
|
|
673
|
+
toggleTooltip: Ge
|
|
674
|
+
}), (u, c) => tt.value ? (a(), l("div", {
|
|
675
675
|
key: 0,
|
|
676
|
-
id: `${z.value}_${
|
|
676
|
+
id: `${z.value}_${T.value}`,
|
|
677
677
|
ref_key: "quickChart",
|
|
678
678
|
ref: j,
|
|
679
679
|
class: ne({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": $e.value }),
|
|
680
|
-
style:
|
|
680
|
+
style: O(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
681
681
|
}, [
|
|
682
|
-
e.value.showUserOptions ? (a(),
|
|
682
|
+
e.value.showUserOptions ? (a(), Pe(zt, {
|
|
683
683
|
ref: "details",
|
|
684
|
-
key: `user_option_${
|
|
684
|
+
key: `user_option_${Oe.value}`,
|
|
685
685
|
backgroundColor: e.value.backgroundColor,
|
|
686
686
|
color: e.value.color,
|
|
687
687
|
isPrinting: f(ke),
|
|
688
688
|
isImaging: f(be),
|
|
689
|
-
uid:
|
|
689
|
+
uid: T.value,
|
|
690
690
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
691
691
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
692
692
|
hasImg: e.value.userOptionsButtons.img,
|
|
@@ -696,36 +696,36 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
696
696
|
isFullscreen: $e.value,
|
|
697
697
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
698
698
|
chartElement: j.value,
|
|
699
|
-
onToggleFullscreen:
|
|
700
|
-
onGeneratePdf: f(
|
|
699
|
+
onToggleFullscreen: nt,
|
|
700
|
+
onGeneratePdf: f(Me),
|
|
701
701
|
onGenerateImage: f(Be),
|
|
702
|
-
onToggleTooltip:
|
|
703
|
-
},
|
|
702
|
+
onToggleTooltip: Ge
|
|
703
|
+
}, vt({ _: 2 }, [
|
|
704
704
|
u.$slots.optionTooltip ? {
|
|
705
705
|
name: "optionTooltip",
|
|
706
706
|
fn: ae(() => [
|
|
707
|
-
|
|
707
|
+
V(u.$slots, "optionTooltip", {}, void 0, !0)
|
|
708
708
|
]),
|
|
709
709
|
key: "0"
|
|
710
710
|
} : void 0,
|
|
711
711
|
u.$slots.optionPdf ? {
|
|
712
712
|
name: "optionPdf",
|
|
713
713
|
fn: ae(() => [
|
|
714
|
-
|
|
714
|
+
V(u.$slots, "optionPdf", {}, void 0, !0)
|
|
715
715
|
]),
|
|
716
716
|
key: "1"
|
|
717
717
|
} : void 0,
|
|
718
718
|
u.$slots.optionImg ? {
|
|
719
719
|
name: "optionImg",
|
|
720
720
|
fn: ae(() => [
|
|
721
|
-
|
|
721
|
+
V(u.$slots, "optionImg", {}, void 0, !0)
|
|
722
722
|
]),
|
|
723
723
|
key: "2"
|
|
724
724
|
} : void 0,
|
|
725
725
|
u.$slots.optionFullscreen ? {
|
|
726
726
|
name: "optionFullscreen",
|
|
727
727
|
fn: ae(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
728
|
-
|
|
728
|
+
V(u.$slots, "optionFullscreen", J(ge({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
729
729
|
]),
|
|
730
730
|
key: "3"
|
|
731
731
|
} : void 0
|
|
@@ -735,17 +735,17 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
735
735
|
ref_key: "quickChartTitle",
|
|
736
736
|
ref: le,
|
|
737
737
|
class: "vue-ui-quick-chart-title",
|
|
738
|
-
style:
|
|
739
|
-
},
|
|
738
|
+
style: O(`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}`)
|
|
739
|
+
}, E(e.value.title), 5)) : p("", !0),
|
|
740
740
|
z.value ? (a(), l("svg", {
|
|
741
741
|
key: 2,
|
|
742
|
-
xmlns: f(
|
|
743
|
-
viewBox:
|
|
744
|
-
style:
|
|
742
|
+
xmlns: f(bt),
|
|
743
|
+
viewBox: at.value,
|
|
744
|
+
style: O(`max-width:100%;overflow:visible;background:${e.value.backgroundColor};color:${e.value.color}`)
|
|
745
745
|
}, [
|
|
746
746
|
_("defs", null, [
|
|
747
747
|
_("filter", {
|
|
748
|
-
id: `blur_${
|
|
748
|
+
id: `blur_${T.value}`,
|
|
749
749
|
x: "-50%",
|
|
750
750
|
y: "-50%",
|
|
751
751
|
width: "200%",
|
|
@@ -754,12 +754,12 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
754
754
|
_("feGaussianBlur", {
|
|
755
755
|
in: "SourceGraphic",
|
|
756
756
|
stdDeviation: 2,
|
|
757
|
-
id: `blur_std_${
|
|
758
|
-
}, null, 8,
|
|
759
|
-
|
|
760
|
-
], 8,
|
|
757
|
+
id: `blur_std_${T.value}`
|
|
758
|
+
}, null, 8, Ut),
|
|
759
|
+
Dt
|
|
760
|
+
], 8, Bt),
|
|
761
761
|
_("filter", {
|
|
762
|
-
id: `shadow_${
|
|
762
|
+
id: `shadow_${T.value}`,
|
|
763
763
|
"color-interpolation-filters": "sRGB"
|
|
764
764
|
}, [
|
|
765
765
|
_("feDropShadow", {
|
|
@@ -768,55 +768,55 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
768
768
|
stdDeviation: "10",
|
|
769
769
|
"flood-opacity": "0.5",
|
|
770
770
|
"flood-color": e.value.donutShadowColor
|
|
771
|
-
}, null, 8,
|
|
772
|
-
], 8,
|
|
771
|
+
}, null, 8, qt)
|
|
772
|
+
], 8, Vt)
|
|
773
773
|
]),
|
|
774
774
|
z.value === A.DONUT ? (a(), l(m, { key: 0 }, [
|
|
775
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
775
|
+
e.value.showDataLabels ? (a(), l("g", Wt, [
|
|
776
776
|
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l(m, null, [
|
|
777
777
|
C.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
778
778
|
key: 0,
|
|
779
|
-
d: f(
|
|
779
|
+
d: f(St)(t, { x: y.value.width / 2, y: y.value.height / 2 }, 16, 16, !1, !1, y.value.height * je.value),
|
|
780
780
|
stroke: t.color,
|
|
781
781
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
782
782
|
"stroke-linecap": "round",
|
|
783
783
|
"stroke-linejoin": "round",
|
|
784
784
|
fill: "none",
|
|
785
785
|
filter: ce(t.id)
|
|
786
|
-
}, null, 8,
|
|
786
|
+
}, null, 8, jt)) : p("", !0)
|
|
787
787
|
], 64))), 256))
|
|
788
788
|
])) : p("", !0),
|
|
789
789
|
_("circle", {
|
|
790
790
|
class: "donut-hollow",
|
|
791
|
-
cx: (e.value.width ||
|
|
792
|
-
cy: (e.value.height ||
|
|
793
|
-
r: (e.value.height ||
|
|
791
|
+
cx: (e.value.width || y.value.width) / 2,
|
|
792
|
+
cy: (e.value.height || y.value.height) / 2,
|
|
793
|
+
r: (e.value.height || y.value.height) * e.value.donutRadiusRatio,
|
|
794
794
|
fill: e.value.backgroundColor
|
|
795
|
-
}, null, 8,
|
|
795
|
+
}, null, 8, Gt),
|
|
796
796
|
_("circle", {
|
|
797
797
|
cx: C.value.cx,
|
|
798
798
|
cy: C.value.cy,
|
|
799
799
|
r: C.value.radius,
|
|
800
800
|
fill: e.value.backgroundColor,
|
|
801
|
-
filter: e.value.donutUseShadow ? `url(#shadow_${
|
|
802
|
-
}, null, 8,
|
|
803
|
-
_("g",
|
|
801
|
+
filter: e.value.donutUseShadow ? `url(#shadow_${T.value})` : ""
|
|
802
|
+
}, null, 8, Ht),
|
|
803
|
+
_("g", Xt, [
|
|
804
804
|
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
805
805
|
d: t.arcSlice,
|
|
806
806
|
fill: t.color,
|
|
807
807
|
stroke: e.value.backgroundColor,
|
|
808
808
|
"stroke-width": e.value.donutStrokeWidth,
|
|
809
809
|
filter: ce(t.id)
|
|
810
|
-
}, null, 8,
|
|
810
|
+
}, null, 8, Zt))), 256)),
|
|
811
811
|
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l("path", {
|
|
812
812
|
d: t.arcSlice,
|
|
813
813
|
fill: "transparent",
|
|
814
814
|
onMouseenter: (r) => C.value.useTooltip({ datapoint: t, seriesIndex: n }),
|
|
815
815
|
onMouseout: c[0] || (c[0] = (r) => C.value.killTooltip()),
|
|
816
816
|
onClick: (r) => g("selectDatapoint", t)
|
|
817
|
-
}, null, 40,
|
|
817
|
+
}, null, 40, Yt))), 256))
|
|
818
818
|
]),
|
|
819
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
819
|
+
e.value.showDataLabels ? (a(), l("g", Jt, [
|
|
820
820
|
(a(!0), l(m, null, L(C.value.chart, (t, n) => (a(), l(m, null, [
|
|
821
821
|
C.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
822
822
|
key: 0,
|
|
@@ -825,7 +825,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
825
825
|
fill: t.color,
|
|
826
826
|
r: 3,
|
|
827
827
|
filter: ce(t.id)
|
|
828
|
-
}, null, 8,
|
|
828
|
+
}, null, 8, Qt)) : p("", !0),
|
|
829
829
|
C.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
830
830
|
key: 1,
|
|
831
831
|
"text-anchor": f(pe)(t, !0, 20).anchor,
|
|
@@ -834,17 +834,17 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
834
834
|
fill: e.value.color,
|
|
835
835
|
"font-size": e.value.dataLabelFontSize,
|
|
836
836
|
filter: ce(t.id)
|
|
837
|
-
},
|
|
837
|
+
}, E(C.value.displayArcPercentage(t, C.value.chart)) + " (" + E(f(H)(
|
|
838
838
|
e.value.formatter,
|
|
839
839
|
t.value,
|
|
840
|
-
f(
|
|
840
|
+
f(M)({
|
|
841
841
|
p: e.value.valuePrefix,
|
|
842
842
|
v: t.value,
|
|
843
843
|
s: e.value.valueSuffix,
|
|
844
844
|
r: e.value.dataLabelRoundingValue
|
|
845
845
|
}),
|
|
846
846
|
{ datapoint: t, seriesIndex: n }
|
|
847
|
-
)) + ") ", 9,
|
|
847
|
+
)) + ") ", 9, Kt)) : p("", !0),
|
|
848
848
|
C.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
849
849
|
key: 2,
|
|
850
850
|
"text-anchor": f(pe)(t).anchor,
|
|
@@ -853,33 +853,33 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
853
853
|
fill: e.value.color,
|
|
854
854
|
"font-size": e.value.dataLabelFontSize,
|
|
855
855
|
filter: ce(t.id)
|
|
856
|
-
},
|
|
856
|
+
}, E(t.name), 9, ea)) : p("", !0)
|
|
857
857
|
], 64))), 256))
|
|
858
858
|
])) : p("", !0),
|
|
859
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
859
|
+
e.value.donutShowTotal ? (a(), l("g", ta, [
|
|
860
860
|
_("text", {
|
|
861
861
|
"text-anchor": "middle",
|
|
862
862
|
x: C.value.drawingArea.centerX,
|
|
863
863
|
y: C.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
864
864
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
865
865
|
fill: e.value.color
|
|
866
|
-
},
|
|
866
|
+
}, E(e.value.donutTotalLabelText), 9, aa),
|
|
867
867
|
_("text", {
|
|
868
868
|
"text-anchor": "middle",
|
|
869
869
|
x: C.value.drawingArea.centerX,
|
|
870
870
|
y: C.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
871
871
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
872
872
|
fill: e.value.color
|
|
873
|
-
},
|
|
873
|
+
}, E(f(M)({
|
|
874
874
|
p: e.value.valuePrefix,
|
|
875
875
|
v: C.value.total,
|
|
876
876
|
s: e.value.valueSuffix,
|
|
877
877
|
r: e.value.dataLabelRoundingValue
|
|
878
|
-
})), 9,
|
|
878
|
+
})), 9, la)
|
|
879
879
|
])) : p("", !0)
|
|
880
880
|
], 64)) : p("", !0),
|
|
881
881
|
z.value === A.LINE ? (a(), l(m, { key: 1 }, [
|
|
882
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
882
|
+
e.value.xyShowGrid ? (a(), l("g", oa, [
|
|
883
883
|
(a(!0), l(m, null, L(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
884
884
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
885
885
|
key: 0,
|
|
@@ -890,7 +890,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
890
890
|
stroke: e.value.xyGridStroke,
|
|
891
891
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
892
892
|
"stroke-linecap": "round"
|
|
893
|
-
}, null, 8,
|
|
893
|
+
}, null, 8, ia)) : p("", !0)
|
|
894
894
|
], 64))), 256)),
|
|
895
895
|
(a(!0), l(m, null, L(d.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
896
896
|
x1: d.value.drawingArea.left + d.value.slotSize * n,
|
|
@@ -900,9 +900,9 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
900
900
|
stroke: e.value.xyGridStroke,
|
|
901
901
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
902
902
|
"stroke-linecap": "round"
|
|
903
|
-
}, null, 8,
|
|
903
|
+
}, null, 8, ua))), 256))
|
|
904
904
|
])) : p("", !0),
|
|
905
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
905
|
+
e.value.xyShowAxis ? (a(), l("g", na, [
|
|
906
906
|
_("line", {
|
|
907
907
|
x1: d.value.drawingArea.left,
|
|
908
908
|
x2: d.value.drawingArea.left,
|
|
@@ -911,7 +911,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
911
911
|
stroke: e.value.xyAxisStroke,
|
|
912
912
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
913
913
|
"stroke-linecap": "round"
|
|
914
|
-
}, null, 8,
|
|
914
|
+
}, null, 8, ra),
|
|
915
915
|
_("line", {
|
|
916
916
|
x1: d.value.drawingArea.left,
|
|
917
917
|
x2: d.value.drawingArea.right,
|
|
@@ -920,9 +920,9 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
920
920
|
stroke: e.value.xyAxisStroke,
|
|
921
921
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
922
922
|
"stroke-linecap": "round"
|
|
923
|
-
}, null, 8,
|
|
923
|
+
}, null, 8, sa)
|
|
924
924
|
])) : p("", !0),
|
|
925
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
925
|
+
e.value.xyShowScale ? (a(), l("g", va, [
|
|
926
926
|
(a(!0), l(m, null, L(d.value.yLabels, (t, n) => (a(), l(m, null, [
|
|
927
927
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
928
928
|
key: 0,
|
|
@@ -933,7 +933,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
933
933
|
stroke: e.value.xyAxisStroke,
|
|
934
934
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
935
935
|
"stroke-linecap": "round"
|
|
936
|
-
}, null, 8,
|
|
936
|
+
}, null, 8, da)) : p("", !0),
|
|
937
937
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
938
938
|
key: 1,
|
|
939
939
|
x: t.x,
|
|
@@ -941,20 +941,20 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
941
941
|
"text-anchor": "end",
|
|
942
942
|
"font-size": e.value.xyLabelsYFontSize,
|
|
943
943
|
fill: e.value.color
|
|
944
|
-
},
|
|
944
|
+
}, E(f(H)(
|
|
945
945
|
e.value.formatter,
|
|
946
946
|
t.value,
|
|
947
|
-
f(
|
|
947
|
+
f(M)({
|
|
948
948
|
p: e.value.valuePrefix,
|
|
949
949
|
v: t.value,
|
|
950
950
|
s: e.value.valueSuffix,
|
|
951
951
|
r: e.value.dataLabelRoundingValue
|
|
952
952
|
}),
|
|
953
953
|
{ datapoint: t, seriesIndex: n }
|
|
954
|
-
)), 9,
|
|
954
|
+
)), 9, ca)) : p("", !0)
|
|
955
955
|
], 64))), 256))
|
|
956
956
|
])) : p("", !0),
|
|
957
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
957
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", ha, [
|
|
958
958
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("line", {
|
|
959
959
|
x1: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
960
960
|
x2: d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2,
|
|
@@ -963,35 +963,35 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
963
963
|
stroke: e.value.xyAxisStroke,
|
|
964
964
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
965
965
|
"stroke-linecap": "round"
|
|
966
|
-
}, null, 8,
|
|
966
|
+
}, null, 8, fa))), 256)),
|
|
967
967
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("text", {
|
|
968
968
|
"font-size": e.value.xyLabelsXFontSize,
|
|
969
969
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
970
970
|
fill: e.value.color,
|
|
971
971
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (n + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
972
|
-
},
|
|
972
|
+
}, E(t), 9, ga))), 256))
|
|
973
973
|
])) : p("", !0),
|
|
974
|
-
_("g",
|
|
975
|
-
(a(!0), l(m, null, L(d.value.dataset, (t, n) => (a(), l("g",
|
|
974
|
+
_("g", ma, [
|
|
975
|
+
(a(!0), l(m, null, L(d.value.dataset, (t, n) => (a(), l("g", pa, [
|
|
976
976
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
977
977
|
_("path", {
|
|
978
|
-
d: `M ${f(
|
|
978
|
+
d: `M ${f(Xe)(t.coordinates)}`,
|
|
979
979
|
stroke: e.value.backgroundColor,
|
|
980
980
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
981
981
|
"stroke-linecap": "round",
|
|
982
982
|
fill: "none",
|
|
983
983
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
984
984
|
style: { transition: "all 0.3s ease-in-out" }
|
|
985
|
-
}, null, 10,
|
|
985
|
+
}, null, 10, xa),
|
|
986
986
|
_("path", {
|
|
987
|
-
d: `M ${f(
|
|
987
|
+
d: `M ${f(Xe)(t.coordinates)}`,
|
|
988
988
|
stroke: t.color,
|
|
989
989
|
"stroke-width": e.value.lineStrokeWidth,
|
|
990
990
|
"stroke-linecap": "round",
|
|
991
991
|
fill: "none",
|
|
992
992
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
993
993
|
style: { transition: "all 0.3s ease-in-out" }
|
|
994
|
-
}, null, 10,
|
|
994
|
+
}, null, 10, ya)
|
|
995
995
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
996
996
|
_("path", {
|
|
997
997
|
d: `M ${t.linePath}`,
|
|
@@ -1001,7 +1001,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1001
1001
|
fill: "none",
|
|
1002
1002
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1003
1003
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1004
|
-
}, null, 10,
|
|
1004
|
+
}, null, 10, ka),
|
|
1005
1005
|
_("path", {
|
|
1006
1006
|
d: `M ${t.linePath}`,
|
|
1007
1007
|
stroke: t.color,
|
|
@@ -1010,7 +1010,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1010
1010
|
fill: "none",
|
|
1011
1011
|
class: ne({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1012
1012
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1013
|
-
}, null, 10,
|
|
1013
|
+
}, null, 10, ba)
|
|
1014
1014
|
], 64)),
|
|
1015
1015
|
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1016
1016
|
cx: r.x,
|
|
@@ -1021,10 +1021,10 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1021
1021
|
"stroke-width": "0.5",
|
|
1022
1022
|
class: "quick-animation",
|
|
1023
1023
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1024
|
-
}, null, 8,
|
|
1024
|
+
}, null, 8, Sa))), 256))
|
|
1025
1025
|
]))), 256))
|
|
1026
1026
|
]),
|
|
1027
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1027
|
+
e.value.showDataLabels ? (a(), l("g", wa, [
|
|
1028
1028
|
(a(!0), l(m, null, L(d.value.dataset, (t, n) => (a(), l(m, null, [
|
|
1029
1029
|
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1030
1030
|
"text-anchor": "middle",
|
|
@@ -1034,38 +1034,38 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1034
1034
|
y: f(X)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1035
1035
|
class: "quick-animation",
|
|
1036
1036
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1037
|
-
},
|
|
1037
|
+
}, E(f(H)(
|
|
1038
1038
|
e.value.formatter,
|
|
1039
1039
|
f(X)(r.value),
|
|
1040
|
-
f(
|
|
1040
|
+
f(M)({
|
|
1041
1041
|
p: e.value.valuePrefix,
|
|
1042
1042
|
v: f(X)(r.value),
|
|
1043
1043
|
s: e.value.valueSuffix,
|
|
1044
1044
|
r: e.value.dataLabelRoundingValue
|
|
1045
1045
|
}),
|
|
1046
1046
|
{ datapoint: r, seriesIndex: h }
|
|
1047
|
-
)), 9,
|
|
1047
|
+
)), 9, _a))), 256))
|
|
1048
1048
|
], 64))), 256))
|
|
1049
1049
|
])) : p("", !0),
|
|
1050
|
-
_("g",
|
|
1050
|
+
_("g", Aa, [
|
|
1051
1051
|
(a(!0), l(m, null, L(d.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1052
1052
|
x: d.value.drawingArea.left + n * d.value.slotSize,
|
|
1053
1053
|
y: d.value.drawingArea.top,
|
|
1054
1054
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1055
1055
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1056
|
-
fill: [
|
|
1057
|
-
style:
|
|
1056
|
+
fill: [W.value, Y.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1057
|
+
style: O(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1058
1058
|
onMouseenter: (r) => d.value.useTooltip(n),
|
|
1059
1059
|
onMouseleave: c[1] || (c[1] = (r) => d.value.killTooltip()),
|
|
1060
1060
|
onClick: (r) => g("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1061
1061
|
...h,
|
|
1062
1062
|
value: h.values[n]
|
|
1063
1063
|
})))
|
|
1064
|
-
}, null, 44,
|
|
1064
|
+
}, null, 44, La))), 256))
|
|
1065
1065
|
])
|
|
1066
1066
|
], 64)) : p("", !0),
|
|
1067
1067
|
z.value === A.BAR ? (a(), l(m, { key: 2 }, [
|
|
1068
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1068
|
+
e.value.xyShowGrid ? (a(), l("g", za, [
|
|
1069
1069
|
(a(!0), l(m, null, L(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
1070
1070
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1071
1071
|
key: 0,
|
|
@@ -1076,7 +1076,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1076
1076
|
stroke: e.value.xyGridStroke,
|
|
1077
1077
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1078
1078
|
"stroke-linecap": "round"
|
|
1079
|
-
}, null, 8,
|
|
1079
|
+
}, null, 8, $a)) : p("", !0)
|
|
1080
1080
|
], 64))), 256)),
|
|
1081
1081
|
(a(!0), l(m, null, L(v.value.extremes.maxSeries + 1, (t, n) => (a(), l("line", {
|
|
1082
1082
|
x1: v.value.drawingArea.left + v.value.slotSize * n,
|
|
@@ -1086,9 +1086,9 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1086
1086
|
stroke: e.value.xyGridStroke,
|
|
1087
1087
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1088
1088
|
"stroke-linecap": "round"
|
|
1089
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, Ca))), 256))
|
|
1090
1090
|
])) : p("", !0),
|
|
1091
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1091
|
+
e.value.xyShowAxis ? (a(), l("g", Ta, [
|
|
1092
1092
|
_("line", {
|
|
1093
1093
|
x1: v.value.drawingArea.left,
|
|
1094
1094
|
x2: v.value.drawingArea.left,
|
|
@@ -1119,7 +1119,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1119
1119
|
stroke: e.value.xyAxisStroke,
|
|
1120
1120
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1121
1121
|
"stroke-linecap": "round"
|
|
1122
|
-
}, null, 8,
|
|
1122
|
+
}, null, 8, Ra)) : p("", !0),
|
|
1123
1123
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1124
1124
|
key: 1,
|
|
1125
1125
|
x: t.x,
|
|
@@ -1127,20 +1127,20 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1127
1127
|
"text-anchor": "end",
|
|
1128
1128
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1129
1129
|
fill: e.value.color
|
|
1130
|
-
},
|
|
1130
|
+
}, E(f(H)(
|
|
1131
1131
|
e.value.formatter,
|
|
1132
1132
|
t.value,
|
|
1133
|
-
f(
|
|
1133
|
+
f(M)({
|
|
1134
1134
|
p: e.value.valuePrefix,
|
|
1135
1135
|
v: t.value,
|
|
1136
1136
|
s: e.value.valueSuffix,
|
|
1137
1137
|
r: e.value.dataLabelRoundingValue
|
|
1138
1138
|
}),
|
|
1139
1139
|
{ datapoint: t, seriesIndex: n }
|
|
1140
|
-
)), 9,
|
|
1140
|
+
)), 9, Na)) : p("", !0)
|
|
1141
1141
|
], 64))), 256))
|
|
1142
1142
|
])) : p("", !0),
|
|
1143
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1143
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Oa, [
|
|
1144
1144
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("line", {
|
|
1145
1145
|
x1: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
1146
1146
|
x2: v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2,
|
|
@@ -1149,15 +1149,15 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1149
1149
|
stroke: e.value.xyAxisStroke,
|
|
1150
1150
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1151
1151
|
"stroke-linecap": "round"
|
|
1152
|
-
}, null, 8,
|
|
1152
|
+
}, null, 8, Fa))), 256)),
|
|
1153
1153
|
(a(!0), l(m, null, L(e.value.xyPeriods.slice(b.value.start, b.value.end), (t, n) => (a(), l("text", {
|
|
1154
1154
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1155
1155
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1156
1156
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (n + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1157
1157
|
fill: e.value.color
|
|
1158
|
-
},
|
|
1158
|
+
}, E(t), 9, Ma))), 256))
|
|
1159
1159
|
])) : p("", !0),
|
|
1160
|
-
_("g",
|
|
1160
|
+
_("g", Ba, [
|
|
1161
1161
|
(a(!0), l(m, null, L(v.value.dataset, (t, n) => (a(), l(m, null, [
|
|
1162
1162
|
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1163
1163
|
x: r.x,
|
|
@@ -1176,18 +1176,18 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1176
1176
|
from: 0,
|
|
1177
1177
|
to: r.height,
|
|
1178
1178
|
dur: "0.5s"
|
|
1179
|
-
}, null, 8,
|
|
1179
|
+
}, null, 8, Da)) : p("", !0),
|
|
1180
1180
|
e.value.barAnimated && r.value > 0 && !f(ke) && !f(be) ? (a(), l("animate", {
|
|
1181
1181
|
key: 1,
|
|
1182
1182
|
attributeName: "y",
|
|
1183
1183
|
from: v.value.absoluteZero,
|
|
1184
1184
|
to: v.value.absoluteZero - r.height,
|
|
1185
1185
|
dur: "0.5s"
|
|
1186
|
-
}, null, 8,
|
|
1187
|
-
], 10,
|
|
1186
|
+
}, null, 8, Va)) : p("", !0)
|
|
1187
|
+
], 10, Ua))), 256))
|
|
1188
1188
|
], 64))), 256))
|
|
1189
1189
|
]),
|
|
1190
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1190
|
+
e.value.showDataLabels ? (a(), l("g", qa, [
|
|
1191
1191
|
(a(!0), l(m, null, L(v.value.dataset, (t, n) => (a(), l(m, null, [
|
|
1192
1192
|
(a(!0), l(m, null, L(t.coordinates, (r, h) => (a(), l("text", {
|
|
1193
1193
|
x: r.x + r.width / 2,
|
|
@@ -1196,74 +1196,74 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1196
1196
|
"font-size": e.value.dataLabelFontSize,
|
|
1197
1197
|
fill: t.color,
|
|
1198
1198
|
class: "quick-animation"
|
|
1199
|
-
},
|
|
1199
|
+
}, E(f(H)(
|
|
1200
1200
|
e.value.formatter,
|
|
1201
1201
|
f(X)(r.value),
|
|
1202
|
-
f(
|
|
1202
|
+
f(M)({
|
|
1203
1203
|
p: e.value.valuePrefix,
|
|
1204
1204
|
v: f(X)(r.value),
|
|
1205
1205
|
s: e.value.valueSuffix,
|
|
1206
1206
|
r: e.value.dataLabelRoundingValue
|
|
1207
1207
|
}),
|
|
1208
1208
|
{ datapoint: r, seriesIndex: h }
|
|
1209
|
-
)), 9,
|
|
1209
|
+
)), 9, Wa))), 256))
|
|
1210
1210
|
], 64))), 256))
|
|
1211
1211
|
])) : p("", !0),
|
|
1212
|
-
_("g",
|
|
1212
|
+
_("g", ja, [
|
|
1213
1213
|
(a(!0), l(m, null, L(v.value.extremes.maxSeries, (t, n) => (a(), l("rect", {
|
|
1214
1214
|
x: v.value.drawingArea.left + n * v.value.slotSize,
|
|
1215
1215
|
y: v.value.drawingArea.top,
|
|
1216
1216
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1217
1217
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1218
|
-
fill: [
|
|
1219
|
-
style:
|
|
1218
|
+
fill: [W.value, Y.value].includes(n) ? e.value.xyHighlighterColor : "transparent",
|
|
1219
|
+
style: O(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1220
1220
|
onMouseenter: (r) => v.value.useTooltip(n),
|
|
1221
1221
|
onMouseleave: c[2] || (c[2] = (r) => v.value.killTooltip()),
|
|
1222
1222
|
onClick: (r) => g("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1223
1223
|
...h,
|
|
1224
1224
|
value: h.values[n]
|
|
1225
1225
|
})))
|
|
1226
|
-
}, null, 44,
|
|
1226
|
+
}, null, 44, Ga))), 256))
|
|
1227
1227
|
])
|
|
1228
1228
|
], 64)) : p("", !0),
|
|
1229
|
-
[A.LINE, A.BAR].includes(z.value) ? (a(), l("g",
|
|
1230
|
-
e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g",
|
|
1229
|
+
[A.LINE, A.BAR].includes(z.value) ? (a(), l("g", Ha, [
|
|
1230
|
+
e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g", Xa, [
|
|
1231
1231
|
_("text", {
|
|
1232
1232
|
"font-size": e.value.axisLabelsFontSize,
|
|
1233
1233
|
fill: e.value.color,
|
|
1234
1234
|
"text-anchor": "middle",
|
|
1235
1235
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1236
|
-
y:
|
|
1237
|
-
},
|
|
1236
|
+
y: y.value.height - e.value.axisLabelsFontSize / 3
|
|
1237
|
+
}, E(e.value.xAxisLabel), 9, Za)
|
|
1238
1238
|
])) : p("", !0),
|
|
1239
|
-
e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g",
|
|
1239
|
+
e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g", Ya, [
|
|
1240
1240
|
_("text", {
|
|
1241
1241
|
"font-size": e.value.axisLabelsFontSize,
|
|
1242
1242
|
fill: e.value.color,
|
|
1243
1243
|
"text-anchor": "middle",
|
|
1244
1244
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1245
|
-
y:
|
|
1246
|
-
},
|
|
1245
|
+
y: y.value.height - e.value.axisLabelsFontSize / 3
|
|
1246
|
+
}, E(e.value.xAxisLabel), 9, Ja)
|
|
1247
1247
|
])) : p("", !0),
|
|
1248
|
-
e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g",
|
|
1248
|
+
e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g", Qa, [
|
|
1249
1249
|
_("text", {
|
|
1250
1250
|
"font-size": e.value.axisLabelsFontSize,
|
|
1251
1251
|
fill: e.value.color,
|
|
1252
1252
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1253
1253
|
"text-anchor": "middle"
|
|
1254
|
-
},
|
|
1254
|
+
}, E(e.value.yAxisLabel), 9, Ka)
|
|
1255
1255
|
])) : p("", !0),
|
|
1256
|
-
e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g",
|
|
1256
|
+
e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g", el, [
|
|
1257
1257
|
_("text", {
|
|
1258
1258
|
"font-size": e.value.axisLabelsFontSize,
|
|
1259
1259
|
fill: e.value.color,
|
|
1260
1260
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1261
1261
|
"text-anchor": "middle"
|
|
1262
|
-
},
|
|
1262
|
+
}, E(e.value.yAxisLabel), 9, tl)
|
|
1263
1263
|
])) : p("", !0)
|
|
1264
1264
|
])) : p("", !0)
|
|
1265
|
-
], 12,
|
|
1266
|
-
z.value ? p("", !0) : (a(),
|
|
1265
|
+
], 12, Mt)) : p("", !0),
|
|
1266
|
+
z.value ? p("", !0) : (a(), Pe(Ct, {
|
|
1267
1267
|
key: 3,
|
|
1268
1268
|
config: {
|
|
1269
1269
|
type: "line",
|
|
@@ -1281,15 +1281,15 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
}, null, 8, ["config"])),
|
|
1284
|
-
u.$slots.watermark ? (a(), l("div",
|
|
1285
|
-
|
|
1284
|
+
u.$slots.watermark ? (a(), l("div", al, [
|
|
1285
|
+
V(u.$slots, "watermark", J(ge({ isPrinting: f(ke) || f(be) })), void 0, !0)
|
|
1286
1286
|
])) : p("", !0),
|
|
1287
|
-
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy &&
|
|
1287
|
+
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1288
1288
|
key: `slicer_${ye.value}`,
|
|
1289
1289
|
ref_key: "quickChartSlicer",
|
|
1290
1290
|
ref: re
|
|
1291
1291
|
}, [
|
|
1292
|
-
(a(),
|
|
1292
|
+
(a(), Pe($t, {
|
|
1293
1293
|
key: `slicer_${ye.value}`,
|
|
1294
1294
|
background: e.value.zoomColor,
|
|
1295
1295
|
borderColor: e.value.backgroundColor,
|
|
@@ -1300,7 +1300,7 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1300
1300
|
textColor: e.value.color,
|
|
1301
1301
|
inputColor: e.value.zoomColor,
|
|
1302
1302
|
selectColor: e.value.zoomHighlightColor,
|
|
1303
|
-
max:
|
|
1303
|
+
max: k.value.maxSeriesLength,
|
|
1304
1304
|
min: 0,
|
|
1305
1305
|
valueStart: b.value.start,
|
|
1306
1306
|
valueEnd: b.value.end,
|
|
@@ -1309,18 +1309,18 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1309
1309
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1310
1310
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1311
1311
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1312
|
-
minimap:
|
|
1312
|
+
minimap: ut.value,
|
|
1313
1313
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1314
1314
|
minimapSelectedIndex: Y.value,
|
|
1315
1315
|
start: b.value.start,
|
|
1316
1316
|
"onUpdate:start": c[3] || (c[3] = (t) => b.value.start = t),
|
|
1317
1317
|
end: b.value.end,
|
|
1318
1318
|
"onUpdate:end": c[4] || (c[4] = (t) => b.value.end = t),
|
|
1319
|
-
onReset:
|
|
1320
|
-
onTrapMouse:
|
|
1319
|
+
onReset: it,
|
|
1320
|
+
onTrapMouse: ot
|
|
1321
1321
|
}, {
|
|
1322
1322
|
"reset-action": ae(({ reset: t }) => [
|
|
1323
|
-
|
|
1323
|
+
V(u.$slots, "reset-action", J(ge({ reset: t })), void 0, !0)
|
|
1324
1324
|
]),
|
|
1325
1325
|
_: 3
|
|
1326
1326
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "minimapSelectedIndex", "start", "end"]))
|
|
@@ -1330,30 +1330,30 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1330
1330
|
ref_key: "quickChartLegend",
|
|
1331
1331
|
ref: oe,
|
|
1332
1332
|
class: "vue-ui-quick-chart-legend",
|
|
1333
|
-
style:
|
|
1333
|
+
style: O(`background:${e.value.backgroundColor};color:${e.value.color}`)
|
|
1334
1334
|
}, [
|
|
1335
1335
|
z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, L(C.value.legend, (t, n) => (a(), l("div", {
|
|
1336
1336
|
class: "vue-ui-quick-chart-legend-item",
|
|
1337
1337
|
onClick: (r) => {
|
|
1338
|
-
|
|
1338
|
+
lt(t, C.value.dataset), g("selectLegend", t);
|
|
1339
1339
|
},
|
|
1340
|
-
style:
|
|
1340
|
+
style: O(`cursor: ${C.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1341
1341
|
}, [
|
|
1342
|
-
e.value.useCustomLegend ?
|
|
1342
|
+
e.value.useCustomLegend ? V(u.$slots, "legend", J(Ie({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1343
1343
|
me(Le, {
|
|
1344
1344
|
name: e.value.legendIcon,
|
|
1345
1345
|
stroke: t.color,
|
|
1346
1346
|
size: e.value.legendIconSize
|
|
1347
1347
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1348
1348
|
_("span", {
|
|
1349
|
-
style:
|
|
1350
|
-
},
|
|
1349
|
+
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1350
|
+
}, E(t.name), 5),
|
|
1351
1351
|
_("span", {
|
|
1352
|
-
style:
|
|
1353
|
-
},
|
|
1352
|
+
style: O(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1353
|
+
}, E(w.value.includes(t.id) ? "-" : f(H)(
|
|
1354
1354
|
e.value.formatter,
|
|
1355
1355
|
t.absoluteValue,
|
|
1356
|
-
f(
|
|
1356
|
+
f(M)({
|
|
1357
1357
|
p: e.value.valuePrefix,
|
|
1358
1358
|
v: t.absoluteValue,
|
|
1359
1359
|
s: e.value.valueSuffix,
|
|
@@ -1363,58 +1363,58 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1363
1363
|
)), 5),
|
|
1364
1364
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1365
1365
|
key: 0,
|
|
1366
|
-
style:
|
|
1366
|
+
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1367
1367
|
}, " ( - % ) ", 4)) : _e.value ? (a(), l("span", {
|
|
1368
1368
|
key: 1,
|
|
1369
|
-
style:
|
|
1369
|
+
style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1370
1370
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1371
1371
|
key: 2,
|
|
1372
|
-
style:
|
|
1373
|
-
}, " (" +
|
|
1372
|
+
style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1373
|
+
}, " (" + E(f(M)({
|
|
1374
1374
|
v: t.value / C.value.total * 100,
|
|
1375
1375
|
s: "%",
|
|
1376
1376
|
r: e.value.dataLabelRoundingPercentage
|
|
1377
1377
|
})) + ") ", 5))
|
|
1378
1378
|
], 64))
|
|
1379
|
-
], 12,
|
|
1379
|
+
], 12, ll))), 256)) : p("", !0),
|
|
1380
1380
|
z.value === A.LINE ? (a(!0), l(m, { key: 1 }, L(d.value.legend, (t, n) => (a(), l("div", {
|
|
1381
1381
|
class: "vue-ui-quick-chart-legend-item",
|
|
1382
1382
|
onClick: (r) => {
|
|
1383
1383
|
Ve(t.id, d.value.legend.length - 1), g("selectLegend", t);
|
|
1384
1384
|
},
|
|
1385
|
-
style:
|
|
1385
|
+
style: O(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1386
1386
|
}, [
|
|
1387
|
-
e.value.useCustomLegend ?
|
|
1387
|
+
e.value.useCustomLegend ? V(u.$slots, "legend", J(Ie({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1388
1388
|
me(Le, {
|
|
1389
1389
|
name: e.value.legendIcon,
|
|
1390
1390
|
stroke: t.color,
|
|
1391
1391
|
size: e.value.legendIconSize
|
|
1392
1392
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1393
1393
|
_("span", {
|
|
1394
|
-
style:
|
|
1395
|
-
},
|
|
1394
|
+
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1395
|
+
}, E(t.name), 5)
|
|
1396
1396
|
], 64))
|
|
1397
|
-
], 12,
|
|
1397
|
+
], 12, ol))), 256)) : p("", !0),
|
|
1398
1398
|
z.value === A.BAR ? (a(!0), l(m, { key: 2 }, L(v.value.legend, (t, n) => (a(), l("div", {
|
|
1399
1399
|
class: "vue-ui-quick-chart-legend-item",
|
|
1400
1400
|
onClick: (r) => {
|
|
1401
1401
|
Ve(t.id, v.value.legend.length - 1), g("selectLegend", t);
|
|
1402
1402
|
},
|
|
1403
|
-
style:
|
|
1403
|
+
style: O(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1404
1404
|
}, [
|
|
1405
|
-
e.value.useCustomLegend ?
|
|
1405
|
+
e.value.useCustomLegend ? V(u.$slots, "legend", J(Ie({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1406
1406
|
me(Le, {
|
|
1407
1407
|
name: e.value.legendIcon,
|
|
1408
1408
|
stroke: t.color,
|
|
1409
1409
|
size: e.value.legendIconSize
|
|
1410
1410
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1411
1411
|
_("span", {
|
|
1412
|
-
style:
|
|
1413
|
-
},
|
|
1412
|
+
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1413
|
+
}, E(t.name), 5)
|
|
1414
1414
|
], 64))
|
|
1415
|
-
], 12,
|
|
1415
|
+
], 12, il))), 256)) : p("", !0)
|
|
1416
1416
|
], 4)) : p("", !0),
|
|
1417
|
-
me(
|
|
1417
|
+
me(At, {
|
|
1418
1418
|
show: Se.value.showTooltip && G.value,
|
|
1419
1419
|
backgroundColor: e.value.backgroundColor,
|
|
1420
1420
|
color: e.value.color,
|
|
@@ -1430,22 +1430,22 @@ const Ke = (s) => (vt("data-v-0b4fa3fa"), s = s(), dt(), s), Mt = ["id"], Ot = [
|
|
|
1430
1430
|
isCustom: f(Ae)(e.value.tooltipCustomFormat)
|
|
1431
1431
|
}, {
|
|
1432
1432
|
"tooltip-before": ae(() => [
|
|
1433
|
-
|
|
1433
|
+
V(u.$slots, "tooltip-before", J(ge({ ...se.value })), void 0, !0)
|
|
1434
1434
|
]),
|
|
1435
1435
|
"tooltip-after": ae(() => [
|
|
1436
|
-
|
|
1436
|
+
V(u.$slots, "tooltip-after", J(ge({ ...se.value })), void 0, !0)
|
|
1437
1437
|
]),
|
|
1438
1438
|
_: 3
|
|
1439
1439
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"])
|
|
1440
|
-
], 14,
|
|
1440
|
+
], 14, Ft)) : (a(), l("div", ul, [
|
|
1441
1441
|
me(Le, {
|
|
1442
1442
|
name: "circleCancel",
|
|
1443
1443
|
stroke: "red"
|
|
1444
1444
|
}),
|
|
1445
|
-
|
|
1445
|
+
nl
|
|
1446
1446
|
]));
|
|
1447
1447
|
}
|
|
1448
|
-
},
|
|
1448
|
+
}, yl = /* @__PURE__ */ Tt(rl, [["__scopeId", "data-v-e43e9919"]]);
|
|
1449
1449
|
export {
|
|
1450
|
-
|
|
1450
|
+
yl as default
|
|
1451
1451
|
};
|