vue-data-ui 2.4.61 → 2.4.63
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-C4JCfYUu.cjs → Arrow-BpZBF7Ak.cjs} +1 -1
- package/dist/{Arrow-NyYxjtAV.js → Arrow-nOy23OOV.js} +1 -1
- package/dist/{BaseIcon-a81b_5b0.js → BaseIcon-CrqNvGTs.js} +1 -1
- package/dist/{BaseIcon-B1zKYJGk.cjs → BaseIcon-rzIvDo2Q.cjs} +1 -1
- package/dist/{DataTable-CcW8SHH2.js → DataTable-BBh7_ttv.js} +2 -2
- package/dist/{DataTable-BVwnM0tQ.cjs → DataTable-CCJGHIVo.cjs} +1 -1
- package/dist/{Legend-fpW6iFgA.cjs → Legend-CqilK5CI.cjs} +1 -1
- package/dist/{Legend-Cq1rcFzv.js → Legend-WOejx9sp.js} +1 -1
- package/dist/{PackageVersion-LRbiiLp0.js → PackageVersion-dR8EUy_P.js} +1 -1
- package/dist/{PackageVersion-B7-YDa6h.cjs → PackageVersion-eZ5Dmuid.cjs} +1 -1
- package/dist/{PenAndPaper-BCjJ-td_.js → PenAndPaper-CrXlqi9I.js} +3 -3
- package/dist/{PenAndPaper-JkRknDt7.cjs → PenAndPaper-D_w2N2qM.cjs} +1 -1
- package/dist/{Shape-hFNcMth4.js → Shape-CwmKWYzq.js} +1 -1
- package/dist/{Shape-QZcWXoYb.cjs → Shape-qkkvCKyp.cjs} +1 -1
- package/dist/Slicer-DvdU-uf8.js +484 -0
- package/dist/Slicer-oNEtv1s3.cjs +1 -0
- package/dist/{Title-CQVviDIQ.cjs → Title-CoNtoGH9.cjs} +1 -1
- package/dist/{Title-Zm0LCGPS.js → Title-obqvTiXP.js} +1 -1
- package/dist/{Tooltip-CoahRzyE.js → Tooltip-BK-ACGDE.js} +1 -1
- package/dist/{Tooltip-DZ1uTqBW.cjs → Tooltip-Dz4wVJkz.cjs} +1 -1
- package/dist/index-ChOY3hT9.cjs +9 -0
- package/dist/{index-CG_OTzik.js → index-Z_vzxZTo.js} +8 -3
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-BZZvruew.js → useNestedProp-Buhi5uyL.js} +1 -1
- package/dist/{useNestedProp--db71Vbu.cjs → useNestedProp-CA8PjFJH.cjs} +1 -1
- package/dist/{usePrinter-CxBwzZkb.js → usePrinter-Ck0oiMlt.js} +1 -1
- package/dist/{usePrinter-D0LQ1CyY.cjs → usePrinter-c3c7_uAW.cjs} +1 -1
- package/dist/{vue-data-ui-C4A5zIHI.js → vue-data-ui-BGng_wXI.js} +60 -60
- package/dist/{vue-data-ui-CUyuYhwT.cjs → vue-data-ui-CihfnXFF.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-DAh8koX4.js → vue-ui-3d-bar-B7k4LzL1.js} +9 -9
- package/dist/{vue-ui-3d-bar-DKiYqw0u.cjs → vue-ui-3d-bar-BsxFEhMN.cjs} +1 -1
- package/dist/{vue-ui-accordion-C2IbGLRv.js → vue-ui-accordion-CV2-8b1O.js} +3 -3
- package/dist/{vue-ui-accordion-B7VpkrPR.cjs → vue-ui-accordion-CZ8AlriN.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-me4GgQNb.js → vue-ui-age-pyramid-Bc4DaLIy.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BmqvzA-d.cjs → vue-ui-age-pyramid-C1crnKk7.cjs} +1 -1
- package/dist/{vue-ui-annotator-XOzj9Bpg.js → vue-ui-annotator-DLbAn_Mz.js} +1 -1
- package/dist/{vue-ui-annotator-Bg9Juc1l.cjs → vue-ui-annotator-DNKcAaEh.cjs} +1 -1
- package/dist/{vue-ui-bullet-BsHk8Y0E.cjs → vue-ui-bullet-CEO3AsWC.cjs} +1 -1
- package/dist/{vue-ui-bullet-D1ElgM95.js → vue-ui-bullet-ClODxNrk.js} +8 -8
- package/dist/{vue-ui-candlestick-Ba4yv9ZM.cjs → vue-ui-candlestick-B00zQB4B.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DLhwvS6l.js → vue-ui-candlestick-DI7t6jqz.js} +75 -73
- package/dist/{vue-ui-carousel-table-cEaGm232.js → vue-ui-carousel-table-5jXlkslq.js} +4 -4
- package/dist/{vue-ui-carousel-table-DSoV6GBf.cjs → vue-ui-carousel-table-Bm2D_0pZ.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DCURZY6w.js → vue-ui-chestnut-CRZsXRUH.js} +8 -8
- package/dist/{vue-ui-chestnut-D6D5Zr4r.cjs → vue-ui-chestnut-DP6-Gie6.cjs} +1 -1
- package/dist/{vue-ui-cursor-CqDpaKei.cjs → vue-ui-cursor-BGe0gZK8.cjs} +1 -1
- package/dist/{vue-ui-cursor-B9eASI3M.js → vue-ui-cursor-DA8bsmEc.js} +2 -2
- package/dist/{vue-ui-dashboard-B2rw-G-R.js → vue-ui-dashboard-BZD-6Pz7.js} +43 -43
- package/dist/vue-ui-dashboard-D2v4oSiB.cjs +1 -0
- package/dist/{vue-ui-digits-BAG_spWA.js → vue-ui-digits-CKvrL9Wc.js} +2 -2
- package/dist/{vue-ui-digits-CagcmtFs.cjs → vue-ui-digits-DC8ZuHOj.cjs} +1 -1
- package/dist/{vue-ui-donut-5jgX6ZLE.cjs → vue-ui-donut-D5mDCNky.cjs} +1 -1
- package/dist/{vue-ui-donut-BJl5Isgy.js → vue-ui-donut-DDayabSz.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CnqdY8LW.cjs → vue-ui-donut-evolution-AlCGLfzy.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DMhkt7mf.js → vue-ui-donut-evolution-CBsxmrTO.js} +127 -125
- package/dist/{vue-ui-dumbbell-Be0B-LgS.cjs → vue-ui-dumbbell-B9cELz3z.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Dg3mYtw3.js → vue-ui-dumbbell-DB7jNjQP.js} +10 -10
- package/dist/{vue-ui-flow-BKyhoEjt.cjs → vue-ui-flow-CCM51fzQ.cjs} +1 -1
- package/dist/{vue-ui-flow-Cq8-bQr_.js → vue-ui-flow-Cw1Vfk_e.js} +9 -9
- package/dist/{vue-ui-funnel-DFk4PKvj.cjs → vue-ui-funnel--4JhwVwW.cjs} +1 -1
- package/dist/{vue-ui-funnel-DHFbd45-.js → vue-ui-funnel-CU72MuGg.js} +9 -9
- package/dist/{vue-ui-galaxy-Y1gaT5UE.cjs → vue-ui-galaxy-BJrkygeR.cjs} +1 -1
- package/dist/{vue-ui-galaxy-rYHDLCt9.js → vue-ui-galaxy-BKInqdOk.js} +11 -11
- package/dist/{vue-ui-gauge-Ba14Ybvo.js → vue-ui-gauge-DBPB11Eo.js} +7 -7
- package/dist/{vue-ui-gauge-Bmuasq4t.cjs → vue-ui-gauge-Uo_1rs0Z.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CuMablqV.js → vue-ui-gizmo-BSDdKP_q.js} +3 -3
- package/dist/{vue-ui-gizmo-CF11m0cq.cjs → vue-ui-gizmo-D7hHruEs.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BekQJ_O8.cjs → vue-ui-heatmap-CysVyR78.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B0Ry1OTW.js → vue-ui-heatmap-DhoDd6I_.js} +10 -10
- package/dist/{vue-ui-history-plot-DkJdYX5N.js → vue-ui-history-plot-C1IcR5tn.js} +11 -11
- package/dist/{vue-ui-history-plot-BTVojhgQ.cjs → vue-ui-history-plot-D97p0C8E.cjs} +1 -1
- package/dist/{vue-ui-kpi-BQwuGH5_.js → vue-ui-kpi-C43FJnkn.js} +3 -3
- package/dist/{vue-ui-kpi-BLreWPBQ.cjs → vue-ui-kpi-Cu2PoWud.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C-61eqcR.cjs → vue-ui-mini-loader-Bdr0862F.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DOGNwMhX.js → vue-ui-mini-loader-DgPnsWaW.js} +2 -2
- package/dist/{vue-ui-molecule-BRM8s9SD.cjs → vue-ui-molecule-CEJzQ7RY.cjs} +1 -1
- package/dist/{vue-ui-molecule-DHBRDC8t.js → vue-ui-molecule-CvxtHapj.js} +11 -11
- package/dist/{vue-ui-mood-radar-dfN44AZx.js → vue-ui-mood-radar-B6EmzBGf.js} +11 -11
- package/dist/{vue-ui-mood-radar-MXQgj0yp.cjs → vue-ui-mood-radar-DIn_Oars.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-C-nDnw6v.js → vue-ui-nested-donuts-D4pAkaZH.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BAtJgYOg.cjs → vue-ui-nested-donuts-c2pJF_ex.cjs} +1 -1
- package/dist/{vue-ui-onion-D8OvxeHr.js → vue-ui-onion-98XPhnVF.js} +11 -11
- package/dist/{vue-ui-onion-EO8dPufp.cjs → vue-ui-onion-DHOhnx2s.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Cxl3bY0H.cjs → vue-ui-parallel-coordinate-plot-CrVVxflg.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-3BNXcNsy.js → vue-ui-parallel-coordinate-plot-DLOtv_NO.js} +12 -12
- package/dist/{vue-ui-quadrant-BOReLkSm.js → vue-ui-quadrant-DWM3zE7x.js} +12 -12
- package/dist/{vue-ui-quadrant-DiU08Q5X.cjs → vue-ui-quadrant-DbDQtcxz.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D4UZCrzj.js → vue-ui-quick-chart-CFVAisN4.js} +214 -212
- package/dist/{vue-ui-quick-chart-BRERkFkI.cjs → vue-ui-quick-chart-DP0hSesI.cjs} +3 -3
- package/dist/{vue-ui-radar-DduWN5dL.cjs → vue-ui-radar-CDhwXWfs.cjs} +1 -1
- package/dist/{vue-ui-radar-C2ePOuIW.js → vue-ui-radar-CNBN5GF9.js} +12 -12
- package/dist/{vue-ui-rating-BYfD1N57.js → vue-ui-rating-CEfg8aGb.js} +2 -2
- package/dist/{vue-ui-rating-BtzMW1EB.cjs → vue-ui-rating-cHW6zh7i.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKjs6DR1.js → vue-ui-relation-circle-92LvehQf.js} +7 -7
- package/dist/{vue-ui-relation-circle-DhLvWetz.cjs → vue-ui-relation-circle-olDAN0lU.cjs} +1 -1
- package/dist/{vue-ui-rings-BNwvxf2K.js → vue-ui-rings-Bp0WLW4E.js} +11 -11
- package/dist/{vue-ui-rings-CzZyxYeS.cjs → vue-ui-rings-BwvTmRCE.cjs} +1 -1
- package/dist/{vue-ui-scatter-thYwTZhC.js → vue-ui-scatter-6wDrQ5fP.js} +12 -12
- package/dist/{vue-ui-scatter-D3Cl-rFL.cjs → vue-ui-scatter-BvdgtUHX.cjs} +1 -1
- package/dist/{vue-ui-screenshot-9y8wYnc3.js → vue-ui-screenshot-CIAlcAvq.js} +1 -1
- package/dist/{vue-ui-screenshot-DFHP0ThC.cjs → vue-ui-screenshot-ChB7VFUO.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B6hyEcxy.js → vue-ui-skeleton-BMRe3SzB.js} +3 -3
- package/dist/{vue-ui-skeleton-D56sSIBO.cjs → vue-ui-skeleton-DlnPFtb4.cjs} +1 -1
- package/dist/{vue-ui-smiley-B-4Fqh2J.js → vue-ui-smiley-CN5FWJ1G.js} +2 -2
- package/dist/{vue-ui-smiley-BsWAahKv.cjs → vue-ui-smiley-DkrQ5gDD.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-MAq0VlUq.cjs → vue-ui-spark-trend-BlOdnAb4.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DJcpI-ZY.js → vue-ui-spark-trend-MNkadB41.js} +5 -5
- package/dist/{vue-ui-sparkbar-DZqE8qN3.js → vue-ui-sparkbar-CBPO2mUa.js} +4 -4
- package/dist/{vue-ui-sparkbar-DMlzP8ZM.cjs → vue-ui-sparkbar-ChTbwY11.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CvOP9U7-.cjs → vue-ui-sparkgauge-B7yvQfZW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B-kRhMYK.js → vue-ui-sparkgauge-VLkIev3p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-EOeboT7_.js → vue-ui-sparkhistogram-DbOxX4Ks.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DjUvwlYU.cjs → vue-ui-sparkhistogram-mYU6RAK_.cjs} +1 -1
- package/dist/vue-ui-sparkline-DO496Tk5.cjs +1 -0
- package/dist/{vue-ui-sparkline-BgB5km-f.js → vue-ui-sparkline-D_-31O2S.js} +117 -114
- package/dist/{vue-ui-sparkstackbar-DSTz24kS.cjs → vue-ui-sparkstackbar-KaFMlIAL.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DGihKtGC.js → vue-ui-sparkstackbar-gW7rpJmQ.js} +5 -5
- package/dist/{vue-ui-stackbar-m-5t4Otk.cjs → vue-ui-stackbar-CYHsSzEK.cjs} +2 -2
- package/dist/{vue-ui-stackbar-DrJ3au6w.js → vue-ui-stackbar-vIyS6oag.js} +80 -78
- package/dist/{vue-ui-strip-plot-4uC5MD3e.js → vue-ui-strip-plot-4o1zAxG_.js} +11 -11
- package/dist/{vue-ui-strip-plot-Yy2DIoMg.cjs → vue-ui-strip-plot-MlP5pDNx.cjs} +1 -1
- package/dist/{vue-ui-table-DCe_BTaV.cjs → vue-ui-table-B0PFrkLI.cjs} +1 -1
- package/dist/{vue-ui-table-DN498EB2.js → vue-ui-table-DWNrd7zM.js} +1 -1
- package/dist/{vue-ui-table-heatmap-PvopeKyW.cjs → vue-ui-table-heatmap-4k74Ux7O.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CMVmFTPi.js → vue-ui-table-heatmap-BSKCS8Lq.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DpXxi6al.js → vue-ui-table-sparkline-BrImSTh0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BtUV0t4I.cjs → vue-ui-table-sparkline-DCCogh2-.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CB38vNj3.js → vue-ui-thermometer-DHEoT4yB.js} +7 -7
- package/dist/{vue-ui-thermometer-B9YyPrvt.cjs → vue-ui-thermometer-DswmMXiU.cjs} +1 -1
- package/dist/{vue-ui-timer-BmFFjMb9.js → vue-ui-timer-BNFihNgK.js} +5 -5
- package/dist/{vue-ui-timer-D6GsFvTy.cjs → vue-ui-timer-Tv94CYqL.cjs} +1 -1
- package/dist/{vue-ui-tiremarks--CrAFWU2.cjs → vue-ui-tiremarks-B2kuKLe-.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CJ2y_2T1.js → vue-ui-tiremarks-DzaUfiET.js} +7 -7
- package/dist/{vue-ui-treemap-HpoEGWKV.cjs → vue-ui-treemap-Dmt3RPF2.cjs} +1 -1
- package/dist/{vue-ui-treemap-Z3t2YGoE.js → vue-ui-treemap-qKZJcEYe.js} +11 -11
- package/dist/{vue-ui-vertical-bar-B_x2w4L8.js → vue-ui-vertical-bar-CMXtevyE.js} +11 -11
- package/dist/{vue-ui-vertical-bar-LdxXCg3W.cjs → vue-ui-vertical-bar-CQ_qEJ_O.cjs} +1 -1
- package/dist/{vue-ui-waffle-BKrNIOiM.js → vue-ui-waffle-DjJoezg-.js} +11 -11
- package/dist/{vue-ui-waffle-BDkOv8M4.cjs → vue-ui-waffle-fWQvVbAH.cjs} +1 -1
- package/dist/{vue-ui-wheel-DgzJQSl_.cjs → vue-ui-wheel-2qIHyZe1.cjs} +1 -1
- package/dist/{vue-ui-wheel-BCs1b_hk.js → vue-ui-wheel-DOrWSWt6.js} +7 -7
- package/dist/{vue-ui-word-cloud-BHm3q6eZ.cjs → vue-ui-word-cloud-Tgg5jCE6.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CO47t4OJ.js → vue-ui-word-cloud-UPPKGsXt.js} +10 -10
- package/dist/{vue-ui-xy-c7YLqedj.cjs → vue-ui-xy-CMde0Kq-.cjs} +3 -3
- package/dist/{vue-ui-xy-canvas-CY1JxJvm.cjs → vue-ui-xy-canvas-Dm3YUQ3g.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-Q6mKl1B-.js → vue-ui-xy-canvas-paHHRtqs.js} +227 -225
- package/dist/{vue-ui-xy-RDecyidx.js → vue-ui-xy-zCJv-Vao.js} +35 -33
- package/package.json +1 -1
- package/dist/Slicer-DGn72_0M.js +0 -423
- package/dist/Slicer-DMYxCNLb.cjs +0 -1
- package/dist/index-V6tl1xgQ.cjs +0 -9
- package/dist/vue-ui-dashboard-Q-ILTgqP.cjs +0 -1
- package/dist/vue-ui-sparkline-BS_ZXXei.cjs +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
1
|
+
import { ref as L, computed as U, watch as Ne, onMounted as St, onBeforeUnmount as wt, nextTick as Ce, openBlock as a, createElementBlock as l, normalizeClass as re, normalizeStyle as N, createBlock as Ie, createCommentVNode as f, unref as g, createSlots as At, withCtx as Q, renderSlot as F, normalizeProps as G, guardReactiveProps as se, toDisplayString as O, createVNode as ve, createElementVNode as _, Fragment as p, renderList as $, mergeProps as Fe, pushScopeId as _t, popScopeId as zt } from "vue";
|
|
2
|
+
import { u as Lt, c as $t, t as Ct, a as It, p as V, C as lt, b as Et, J as Pt, e as Tt, d as Me, m as Ot, D as ot, X as Rt, j as Nt, k as xe, n as Ue, i as X, f as B, R as nt, v as Z, x as Ee, y as Be } from "./index-Z_vzxZTo.js";
|
|
3
3
|
import { t as Ft, u as Mt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import Pe from "./BaseIcon-
|
|
5
|
-
import { _ as Ut } from "./Tooltip-
|
|
6
|
-
import { u as Bt, U as Dt } from "./usePrinter-
|
|
7
|
-
import { S as Vt } from "./Slicer-
|
|
8
|
-
import qt from "./vue-ui-skeleton-
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as Wt } from "./PackageVersion-
|
|
11
|
-
import { P as jt } from "./PenAndPaper-
|
|
12
|
-
import { _ as
|
|
4
|
+
import Pe from "./BaseIcon-CrqNvGTs.js";
|
|
5
|
+
import { _ as Ut } from "./Tooltip-BK-ACGDE.js";
|
|
6
|
+
import { u as Bt, U as Dt } from "./usePrinter-Ck0oiMlt.js";
|
|
7
|
+
import { S as Vt } from "./Slicer-DvdU-uf8.js";
|
|
8
|
+
import qt from "./vue-ui-skeleton-BMRe3SzB.js";
|
|
9
|
+
import { u as it } from "./useNestedProp-Buhi5uyL.js";
|
|
10
|
+
import { _ as Wt } from "./PackageVersion-dR8EUy_P.js";
|
|
11
|
+
import { P as jt } from "./PenAndPaper-CrXlqi9I.js";
|
|
12
|
+
import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const A = {
|
|
14
14
|
LINE: "LINE",
|
|
15
15
|
BAR: "BAR",
|
|
16
16
|
DONUT: "DONUT"
|
|
17
|
-
},
|
|
17
|
+
}, Gt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
18
18
|
function Xt({ dataset: d, barLineSwitch: I = 6 }) {
|
|
19
19
|
let m = null, C = null, q = 0;
|
|
20
20
|
if ((typeof d == "number" || typeof d == "string") && console.warn(`The provided dataset (${d}) is not sufficient to build a chart`), ye(d) && (Y(d) && (d.length < I ? m = A.BAR : m = A.LINE, C = d, q = d.length), Te(d))) {
|
|
@@ -25,7 +25,7 @@ function Xt({ dataset: d, barLineSwitch: I = 6 }) {
|
|
|
25
25
|
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;
|
|
26
26
|
ut(de, (P) => typeof P == "number") && (m = A.DONUT, C = d), ut(de, (P) => Array.isArray(P) && Y(P)) && (rt(d) > I ? m = A.LINE : m = A.BAR, q = rt(d), C = d.map((P) => ({
|
|
27
27
|
...P,
|
|
28
|
-
data: Qt(P, (
|
|
28
|
+
data: Qt(P, (H) => Y(H))
|
|
29
29
|
}))), d = d.map((P) => st(P)), C = C.map((P) => st(P));
|
|
30
30
|
}
|
|
31
31
|
return ye(d) && [...new Set(d.flatMap((oe) => Array.isArray(oe)))][0], {
|
|
@@ -69,7 +69,7 @@ function Yt(d) {
|
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
71
|
function Jt(d) {
|
|
72
|
-
return
|
|
72
|
+
return Gt.includes(d.toUpperCase());
|
|
73
73
|
}
|
|
74
74
|
function ut(d, I) {
|
|
75
75
|
let m = [];
|
|
@@ -89,7 +89,7 @@ function st(d) {
|
|
|
89
89
|
d.hasOwnProperty(m) && (I[m.toUpperCase()] = d[m]);
|
|
90
90
|
return I;
|
|
91
91
|
}
|
|
92
|
-
const dt = (d) => (_t("data-v-
|
|
92
|
+
const dt = (d) => (_t("data-v-ccb29683"), d = d(), zt(), d), Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"], aa = ["x", "y", "width", "height"], la = ["width", "height"], oa = ["id"], na = ["id"], ia = /* @__PURE__ */ dt(() => /* @__PURE__ */ _("feColorMatrix", {
|
|
93
93
|
type: "saturate",
|
|
94
94
|
values: "0"
|
|
95
95
|
}, null, -1)), ua = ["id"], ra = ["flood-color"], sa = {
|
|
@@ -107,7 +107,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
107
107
|
}, wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _a = {
|
|
108
108
|
key: 1,
|
|
109
109
|
class: "line-axis"
|
|
110
|
-
},
|
|
110
|
+
}, za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = {
|
|
111
111
|
key: 2,
|
|
112
112
|
class: "yLabels"
|
|
113
113
|
}, Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ia = ["x", "y", "font-size", "fill"], Ea = {
|
|
@@ -119,7 +119,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
119
119
|
}, Va = ["font-size", "fill", "x", "y"], qa = { class: "tooltip-traps" }, Wa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], ja = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "line-grid"
|
|
122
|
-
},
|
|
122
|
+
}, Ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ga = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xa = {
|
|
123
123
|
key: 1,
|
|
124
124
|
class: "line-axis"
|
|
125
125
|
}, Za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ja = {
|
|
@@ -128,7 +128,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
128
128
|
}, Qa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ka = ["x", "y", "font-size", "fill"], el = {
|
|
129
129
|
key: 3,
|
|
130
130
|
class: "periodLabels"
|
|
131
|
-
}, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["font-size", "text-anchor", "transform", "fill"], ll = { class: "plots" }, ol = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"],
|
|
131
|
+
}, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["font-size", "text-anchor", "transform", "fill"], ll = { class: "plots" }, ol = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], nl = ["to"], il = ["from", "to"], ul = {
|
|
132
132
|
key: 4,
|
|
133
133
|
class: "dataLabels"
|
|
134
134
|
}, rl = ["x", "y", "font-size", "fill"], sl = { class: "tooltip-traps" }, vl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], dl = {
|
|
@@ -140,7 +140,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
140
140
|
}, bl = ["onClick"], Sl = ["onClick"], wl = ["onClick"], Al = {
|
|
141
141
|
key: 1,
|
|
142
142
|
class: "vue-ui-quick-chart-not-processable"
|
|
143
|
-
}, _l = /* @__PURE__ */ dt(() => /* @__PURE__ */ _("span", null, "Dataset is not processable", -1)),
|
|
143
|
+
}, _l = /* @__PURE__ */ dt(() => /* @__PURE__ */ _("span", null, "Dataset is not processable", -1)), zl = {
|
|
144
144
|
__name: "vue-ui-quick-chart",
|
|
145
145
|
props: {
|
|
146
146
|
config: {
|
|
@@ -158,21 +158,21 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
158
158
|
},
|
|
159
159
|
emits: ["selectDatapoint", "selectLegend"],
|
|
160
160
|
setup(d, { expose: I, emit: m }) {
|
|
161
|
-
const C = d, { vue_ui_quick_chart: q } =
|
|
162
|
-
get: () =>
|
|
161
|
+
const C = d, { vue_ui_quick_chart: q } = Lt(), W = L(null), le = L(null), oe = L(null), de = L(null), P = L($t()), H = L(!1), ce = L(null), K = L(""), j = L(null), De = L(null), Ve = L(null), w = L([]), qe = L(0), ke = L(0), e = U({
|
|
162
|
+
get: () => He(),
|
|
163
163
|
set: (o) => o
|
|
164
|
-
}), ct = U(() => e.value.showUserOptionsOnChartHover), We = U(() => e.value.keepUserOptionsStateOnChartLeave), be =
|
|
164
|
+
}), ct = U(() => e.value.showUserOptionsOnChartHover), We = U(() => e.value.keepUserOptionsStateOnChartLeave), be = L(!e.value.showUserOptionsOnChartHover);
|
|
165
165
|
function je(o = !1) {
|
|
166
166
|
ct.value && (be.value = o);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
const o =
|
|
168
|
+
function He() {
|
|
169
|
+
const o = it({
|
|
170
170
|
userConfig: C.config,
|
|
171
171
|
defaultConfig: q
|
|
172
172
|
});
|
|
173
173
|
let s = {};
|
|
174
174
|
return o.theme ? s = {
|
|
175
|
-
...
|
|
175
|
+
...it({
|
|
176
176
|
userConfig: Ct.vue_ui_quick_chart[o.theme] || C.config,
|
|
177
177
|
defaultConfig: o
|
|
178
178
|
}),
|
|
@@ -180,7 +180,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
180
180
|
} : s = o, C.config && lt(C.config, "zoomStartIndex") ? s.zoomStartIndex = C.config.zoomStartIndex : s.zoomStartIndex = null, C.config && lt(C.config, "zoomEndIndex") ? s.zoomEndIndex = C.config.zoomEndIndex : s.zoomEndIndex = null, s;
|
|
181
181
|
}
|
|
182
182
|
Ne(() => C.config, (o) => {
|
|
183
|
-
e.value =
|
|
183
|
+
e.value = He(), k.value.width = e.value.width, k.value.height = e.value.height, be.value = !e.value.showUserOptionsOnChartHover, Ze();
|
|
184
184
|
}, { deep: !0 }), Ne(() => C.dataset, (o) => {
|
|
185
185
|
x.value = fe.value, b.value.start = 0, b.value.end = x.value.maxSeriesLength, ke.value += 1;
|
|
186
186
|
}, { deep: !0 });
|
|
@@ -194,22 +194,22 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
194
194
|
"num"
|
|
195
195
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
196
196
|
return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
|
|
197
|
-
}), x =
|
|
198
|
-
Ne(() =>
|
|
197
|
+
}), x = L(fe.value), ht = U(() => !!x.value), z = U(() => x.value ? x.value.type : null);
|
|
198
|
+
Ne(() => z.value, (o) => {
|
|
199
199
|
o || Tt({
|
|
200
200
|
componentName: "VueUiQuickChart",
|
|
201
201
|
type: "dataset"
|
|
202
202
|
});
|
|
203
203
|
}, { immediate: !0 });
|
|
204
|
-
const { isPrinting: Se, isImaging: we, generatePdf:
|
|
205
|
-
elementId: `${
|
|
206
|
-
fileName: e.value.title ||
|
|
207
|
-
}), ft = U(() => e.value.showUserOptions && !e.value.title), k =
|
|
204
|
+
const { isPrinting: Se, isImaging: we, generatePdf: Ge, generateImage: Xe } = Bt({
|
|
205
|
+
elementId: `${z.value}_${P.value}`,
|
|
206
|
+
fileName: e.value.title || z.value
|
|
207
|
+
}), ft = U(() => e.value.showUserOptions && !e.value.title), k = L({
|
|
208
208
|
width: e.value.width,
|
|
209
209
|
height: e.value.height
|
|
210
|
-
}), Ae =
|
|
210
|
+
}), Ae = L({
|
|
211
211
|
showTooltip: e.value.showTooltip
|
|
212
|
-
}), _e =
|
|
212
|
+
}), _e = L(null);
|
|
213
213
|
St(() => {
|
|
214
214
|
Ze();
|
|
215
215
|
});
|
|
@@ -220,7 +220,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
220
220
|
chart: W.value,
|
|
221
221
|
title: e.value.title ? le.value : null,
|
|
222
222
|
legend: e.value.showLegend ? oe.value : null,
|
|
223
|
-
slicer: [A.BAR, A.LINE].includes(
|
|
223
|
+
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? de.value : null,
|
|
224
224
|
source: De.value,
|
|
225
225
|
noTitle: Ve.value
|
|
226
226
|
});
|
|
@@ -234,7 +234,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
234
234
|
_e.value && _e.value.disconnect();
|
|
235
235
|
});
|
|
236
236
|
const gt = U(() => {
|
|
237
|
-
switch (
|
|
237
|
+
switch (z.value) {
|
|
238
238
|
case A.LINE:
|
|
239
239
|
return `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`;
|
|
240
240
|
case A.BAR:
|
|
@@ -254,14 +254,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
254
254
|
function Je(o, s) {
|
|
255
255
|
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
|
|
256
256
|
}
|
|
257
|
-
const Qe =
|
|
257
|
+
const Qe = L(null), Ke = L(null), ze = L(!1);
|
|
258
258
|
function mt(o, s) {
|
|
259
|
-
|
|
259
|
+
ze.value = !0;
|
|
260
260
|
let t = o.value;
|
|
261
261
|
const u = fe.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
|
|
262
262
|
if (w.value.includes(o.id)) {
|
|
263
263
|
let r = function() {
|
|
264
|
-
t > u ? (
|
|
264
|
+
t > u ? (ze.value = !1, cancelAnimationFrame(Ke.value), x.value = {
|
|
265
265
|
...x.value,
|
|
266
266
|
dataset: x.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
|
|
267
267
|
...h,
|
|
@@ -280,7 +280,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
280
280
|
w.value = w.value.filter((h) => h !== o.id), r();
|
|
281
281
|
} else if (s.length > 1) {
|
|
282
282
|
let r = function() {
|
|
283
|
-
t < u / 100 ? (
|
|
283
|
+
t < u / 100 ? (ze.value = !1, cancelAnimationFrame(Qe.value), w.value.push(o.id), x.value = {
|
|
284
284
|
...x.value,
|
|
285
285
|
dataset: x.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
|
|
286
286
|
...h,
|
|
@@ -299,82 +299,82 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
299
299
|
r();
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const J =
|
|
302
|
+
const J = L(null);
|
|
303
303
|
function pt(o) {
|
|
304
304
|
J.value = o;
|
|
305
305
|
}
|
|
306
306
|
const et = U(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), E = U(() => {
|
|
307
|
-
if (
|
|
308
|
-
const o = x.value.dataset.map((
|
|
309
|
-
...
|
|
310
|
-
value:
|
|
311
|
-
name:
|
|
312
|
-
id: `donut_${
|
|
313
|
-
})).map((
|
|
314
|
-
...
|
|
315
|
-
color:
|
|
316
|
-
immutableValue:
|
|
307
|
+
if (z.value !== A.DONUT) return null;
|
|
308
|
+
const o = x.value.dataset.map((n, i) => ({
|
|
309
|
+
...n,
|
|
310
|
+
value: n.VALUE || n.DATA || n.SERIE || n.VALUES || n.NUM || 0,
|
|
311
|
+
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${i}`,
|
|
312
|
+
id: `donut_${i}`
|
|
313
|
+
})).map((n, i) => ({
|
|
314
|
+
...n,
|
|
315
|
+
color: n.COLOR ? Me(n.COLOR) : he.value[i + e.value.paletteStartIndex] || V[i + e.value.paletteStartIndex] || V[(i + e.value.paletteStartIndex) % V.length],
|
|
316
|
+
immutableValue: n.value
|
|
317
317
|
}));
|
|
318
|
-
function s(
|
|
318
|
+
function s(n, i) {
|
|
319
319
|
return B({
|
|
320
|
-
v: isNaN(
|
|
320
|
+
v: isNaN(n.value / Ye(i)) ? 0 : n.value / Ye(i) * 100,
|
|
321
321
|
s: "%",
|
|
322
322
|
r: e.value.dataLabelRoundingPercentage
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
function t(
|
|
326
|
-
return
|
|
325
|
+
function t(n) {
|
|
326
|
+
return n.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
327
327
|
}
|
|
328
|
-
function u(
|
|
329
|
-
const S = fe.value.dataset.find((T, M) => `donut_${M}` ===
|
|
330
|
-
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(
|
|
328
|
+
function u(n, i) {
|
|
329
|
+
const S = fe.value.dataset.find((T, M) => `donut_${M}` === n).VALUE;
|
|
330
|
+
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
331
331
|
}
|
|
332
|
-
function r({ datapoint:
|
|
333
|
-
ce.value = { datapoint:
|
|
332
|
+
function r({ datapoint: n, seriesIndex: i }) {
|
|
333
|
+
ce.value = { datapoint: n, seriesIndex: i, config: e.value, dataset: o }, j.value = n.id;
|
|
334
334
|
const S = e.value.tooltipCustomFormat;
|
|
335
335
|
if (Ee(S) && Be(() => S({
|
|
336
|
-
datapoint:
|
|
337
|
-
seriesIndex:
|
|
336
|
+
datapoint: n,
|
|
337
|
+
seriesIndex: i,
|
|
338
338
|
series: o,
|
|
339
339
|
config: e.value
|
|
340
340
|
})))
|
|
341
341
|
K.value = S({
|
|
342
|
-
datapoint:
|
|
343
|
-
seriesIndex:
|
|
342
|
+
datapoint: n,
|
|
343
|
+
seriesIndex: i,
|
|
344
344
|
series: o,
|
|
345
345
|
config: e.value
|
|
346
346
|
});
|
|
347
347
|
else {
|
|
348
348
|
let y = "";
|
|
349
|
-
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${
|
|
349
|
+
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, y += `<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="${n.color}"/></svg>`, y += `<b>${X(
|
|
350
350
|
e.value.formatter,
|
|
351
|
-
|
|
351
|
+
n.value,
|
|
352
352
|
B({
|
|
353
353
|
p: e.value.valuePrefix,
|
|
354
|
-
v:
|
|
354
|
+
v: n.value,
|
|
355
355
|
s: e.value.valueSuffix,
|
|
356
356
|
r: e.value.dataLabelRoundingValue
|
|
357
357
|
}),
|
|
358
|
-
{ datapoint:
|
|
359
|
-
)}</b>`, y += `<span>(${B({ v:
|
|
358
|
+
{ datapoint: n, seriesIndex: i }
|
|
359
|
+
)}</b>`, y += `<span>(${B({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, K.value = `<div>${y}</div>`;
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
H.value = !0;
|
|
362
362
|
}
|
|
363
363
|
function h() {
|
|
364
|
-
|
|
364
|
+
H.value = !1, j.value = null, J.value = null;
|
|
365
365
|
}
|
|
366
366
|
const R = {
|
|
367
367
|
centerX: k.value.width / 2,
|
|
368
368
|
centerY: k.value.height / 2
|
|
369
|
-
}, D = o.filter((
|
|
370
|
-
...
|
|
371
|
-
proportion: (
|
|
372
|
-
value:
|
|
373
|
-
absoluteValue: fe.value.dataset.find((S, y) => `donut_${y}` ===
|
|
369
|
+
}, D = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0), ie = o.map((n, i) => ({
|
|
370
|
+
...n,
|
|
371
|
+
proportion: (n.value || 0) / D,
|
|
372
|
+
value: n.value || 0,
|
|
373
|
+
absoluteValue: fe.value.dataset.find((S, y) => `donut_${y}` === n.id).VALUE
|
|
374
374
|
})), ee = k.value.width / 2, ue = k.value.height / 2, te = k.value.height * e.value.donutRadiusRatio;
|
|
375
375
|
return {
|
|
376
|
-
dataset:
|
|
377
|
-
legend:
|
|
376
|
+
dataset: ie.filter((n) => !w.value.includes(n.id)),
|
|
377
|
+
legend: ie,
|
|
378
378
|
drawingArea: R,
|
|
379
379
|
displayArcPercentage: s,
|
|
380
380
|
isArcBigEnough: t,
|
|
@@ -386,7 +386,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
386
386
|
cy: ue,
|
|
387
387
|
radius: te,
|
|
388
388
|
chart: Ot(
|
|
389
|
-
{ series: o.filter((
|
|
389
|
+
{ series: o.filter((n) => !w.value.includes(n.id)) },
|
|
390
390
|
ee,
|
|
391
391
|
ue,
|
|
392
392
|
te,
|
|
@@ -399,16 +399,16 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
399
399
|
k.value.height * et.value
|
|
400
400
|
)
|
|
401
401
|
};
|
|
402
|
-
}), b =
|
|
402
|
+
}), b = L({
|
|
403
403
|
start: 0,
|
|
404
404
|
end: x.value.maxSeriesLength
|
|
405
405
|
});
|
|
406
406
|
function xt() {
|
|
407
407
|
tt();
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const ne = L(null);
|
|
410
410
|
async function tt() {
|
|
411
|
-
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) &&
|
|
411
|
+
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && ne.value ? (e.value.zoomStartIndex !== null && (await Ce(), await Ce(), ne.value && ne.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Ce(), await Ce(), ne.value && ne.value.setEndValue(yt(e.value.zoomEndIndex + 1)))) : (b.value = {
|
|
412
412
|
start: 0,
|
|
413
413
|
end: x.value.maxSeriesLength
|
|
414
414
|
}, ke.value += 1);
|
|
@@ -418,11 +418,11 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
418
418
|
return o > s ? s : o < 0 || e.value.zoomStartIndex !== null && o < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : o;
|
|
419
419
|
}
|
|
420
420
|
const kt = U(() => {
|
|
421
|
-
if (!e.value.zoomMinimap.show ||
|
|
421
|
+
if (!e.value.zoomMinimap.show || z.value === A.DONUT) return [];
|
|
422
422
|
let o = [];
|
|
423
423
|
Y(x.value.dataset) && (o = x.value.dataset), Te(x.value.dataset) && (o = x.value.dataset.map((r, h) => ({
|
|
424
424
|
values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
|
|
425
|
-
id:
|
|
425
|
+
id: z.value === A.LINE ? `line_${h}` : `bar_${h}`
|
|
426
426
|
})).filter((r) => !w.value.includes(r.id)));
|
|
427
427
|
const s = Y(o) ? o.length : Math.max(...o.map((r) => r.values.length));
|
|
428
428
|
let t = [];
|
|
@@ -434,7 +434,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
434
434
|
const u = Math.min(...t);
|
|
435
435
|
return t.map((r) => r + (u < 0 ? Math.abs(u) : 0));
|
|
436
436
|
}), c = U(() => {
|
|
437
|
-
if (
|
|
437
|
+
if (z.value !== A.LINE) return null;
|
|
438
438
|
const o = {
|
|
439
439
|
height: k.value.height,
|
|
440
440
|
width: k.value.width
|
|
@@ -450,70 +450,70 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
450
450
|
Y(x.value.dataset) && (t = [
|
|
451
451
|
{
|
|
452
452
|
values: x.value.dataset.slice(b.value.start, b.value.end),
|
|
453
|
-
absoluteIndices: x.value.dataset.map((
|
|
453
|
+
absoluteIndices: x.value.dataset.map((n, i) => i).slice(b.value.start, b.value.end),
|
|
454
454
|
name: e.value.title,
|
|
455
455
|
color: he.value[e.value.paletteStartIndex] || V[e.value.paletteStartIndex],
|
|
456
456
|
id: "line_0"
|
|
457
457
|
}
|
|
458
|
-
]), Te(x.value.dataset) && (t = x.value.dataset.map((
|
|
459
|
-
...
|
|
460
|
-
values:
|
|
461
|
-
name:
|
|
462
|
-
id: `line_${
|
|
463
|
-
})).map((
|
|
464
|
-
...
|
|
465
|
-
color:
|
|
466
|
-
values:
|
|
467
|
-
absoluteIndices:
|
|
458
|
+
]), Te(x.value.dataset) && (t = x.value.dataset.map((n, i) => ({
|
|
459
|
+
...n,
|
|
460
|
+
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
461
|
+
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${i}`,
|
|
462
|
+
id: `line_${i}`
|
|
463
|
+
})).map((n, i) => ({
|
|
464
|
+
...n,
|
|
465
|
+
color: n.COLOR ? Me(n.COLOR) : he.value[i + e.value.paletteStartIndex] || V[i + e.value.paletteStartIndex] || V[(i + e.value.paletteStartIndex) % V.length],
|
|
466
|
+
values: n.values.slice(b.value.start, b.value.end),
|
|
467
|
+
absoluteIndices: n.values.map((S, y) => y).slice(b.value.start, b.value.end)
|
|
468
468
|
})));
|
|
469
469
|
const u = {
|
|
470
|
-
max: Math.max(...t.filter((
|
|
471
|
-
min: Math.min(...t.filter((
|
|
472
|
-
maxSeries: Math.max(...t.map((
|
|
473
|
-
}, r = ot(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, R = u.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, D = s.width / u.maxSeries,
|
|
474
|
-
y: s.bottom - s.height * ((
|
|
470
|
+
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
471
|
+
min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
472
|
+
maxSeries: Math.max(...t.map((n) => n.values.length))
|
|
473
|
+
}, r = ot(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, R = u.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, D = s.width / u.maxSeries, ie = r.ticks.map((n) => ({
|
|
474
|
+
y: s.bottom - s.height * ((n + h) / (r.max + h)),
|
|
475
475
|
x: s.left - 8,
|
|
476
|
-
value:
|
|
477
|
-
})), ee = t.map((
|
|
478
|
-
...
|
|
479
|
-
coordinates:
|
|
476
|
+
value: n
|
|
477
|
+
})), ee = t.map((n, i) => ({
|
|
478
|
+
...n,
|
|
479
|
+
coordinates: n.values.map((S, y) => ({
|
|
480
480
|
x: s.left + D * (y + 1) - D / 2,
|
|
481
481
|
y: s.bottom - (S + h) / (r.max + h) * s.height,
|
|
482
482
|
value: S
|
|
483
483
|
}))
|
|
484
|
-
})).map((
|
|
485
|
-
let
|
|
486
|
-
return
|
|
487
|
-
|
|
484
|
+
})).map((n) => {
|
|
485
|
+
let i = [];
|
|
486
|
+
return n.coordinates.forEach((S) => {
|
|
487
|
+
i.push(`${S.x},${S.y} `);
|
|
488
488
|
}), {
|
|
489
|
-
...
|
|
490
|
-
linePath:
|
|
489
|
+
...n,
|
|
490
|
+
linePath: i.join(" ")
|
|
491
491
|
};
|
|
492
492
|
});
|
|
493
|
-
function ue(
|
|
494
|
-
j.value =
|
|
495
|
-
const
|
|
493
|
+
function ue(n) {
|
|
494
|
+
j.value = n, J.value = n;
|
|
495
|
+
const i = t.map((y) => ({
|
|
496
496
|
...y,
|
|
497
|
-
value: y.values[
|
|
498
|
-
absoluteIndex: y.absoluteIndices[
|
|
497
|
+
value: y.values[n],
|
|
498
|
+
absoluteIndex: y.absoluteIndices[n]
|
|
499
499
|
})).filter((y) => !w.value.includes(y.id));
|
|
500
|
-
ce.value = { datapoint:
|
|
500
|
+
ce.value = { datapoint: i, seriesIndex: n, config: e.value, dataset: t };
|
|
501
501
|
const S = e.value.tooltipCustomFormat;
|
|
502
502
|
if (Ee(S) && Be(() => S({
|
|
503
|
-
datapoint:
|
|
504
|
-
seriesIndex:
|
|
503
|
+
datapoint: i,
|
|
504
|
+
seriesIndex: n,
|
|
505
505
|
series: t,
|
|
506
506
|
config: e.value
|
|
507
507
|
})))
|
|
508
508
|
K.value = S({
|
|
509
|
-
datapoint:
|
|
510
|
-
seriesIndex:
|
|
509
|
+
datapoint: i,
|
|
510
|
+
seriesIndex: n,
|
|
511
511
|
series: t,
|
|
512
512
|
config: e.value
|
|
513
513
|
});
|
|
514
514
|
else {
|
|
515
515
|
let y = "";
|
|
516
|
-
e.value.xyPeriods[
|
|
516
|
+
e.value.xyPeriods[i[0].absoluteIndex] && (y += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[i[0].absoluteIndex]}</div>`), i.forEach((T, M) => {
|
|
517
517
|
y += `
|
|
518
518
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
519
519
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${T.color}"/></svg>
|
|
@@ -534,24 +534,24 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
534
534
|
`;
|
|
535
535
|
}), K.value = y;
|
|
536
536
|
}
|
|
537
|
-
|
|
537
|
+
H.value = !0;
|
|
538
538
|
}
|
|
539
539
|
function te() {
|
|
540
|
-
j.value = null,
|
|
540
|
+
j.value = null, H.value = !1;
|
|
541
541
|
}
|
|
542
542
|
return {
|
|
543
543
|
absoluteZero: R,
|
|
544
|
-
dataset: ee.filter((
|
|
544
|
+
dataset: ee.filter((n) => !w.value.includes(n.id)),
|
|
545
545
|
legend: ee,
|
|
546
546
|
drawingArea: s,
|
|
547
547
|
extremes: u,
|
|
548
548
|
slotSize: D,
|
|
549
|
-
yLabels:
|
|
549
|
+
yLabels: ie,
|
|
550
550
|
useTooltip: ue,
|
|
551
551
|
killTooltip: te
|
|
552
552
|
};
|
|
553
553
|
}), v = U(() => {
|
|
554
|
-
if (
|
|
554
|
+
if (z.value !== A.BAR) return null;
|
|
555
555
|
const o = {
|
|
556
556
|
height: k.value.height,
|
|
557
557
|
width: k.value.width
|
|
@@ -567,33 +567,33 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
567
567
|
Y(x.value.dataset) && (t = [
|
|
568
568
|
{
|
|
569
569
|
values: x.value.dataset.slice(b.value.start, b.value.end),
|
|
570
|
-
absoluteIndices: x.value.dataset.map((
|
|
570
|
+
absoluteIndices: x.value.dataset.map((i, S) => S).slice(b.value.start, b.value.end),
|
|
571
571
|
name: e.value.title,
|
|
572
572
|
color: he.value[e.value.paletteStartIndex] || V[e.value.paletteStartIndex],
|
|
573
573
|
id: "bar_0"
|
|
574
574
|
}
|
|
575
|
-
]), Te(x.value.dataset) && (t = x.value.dataset.map((
|
|
576
|
-
...
|
|
577
|
-
values:
|
|
578
|
-
name:
|
|
575
|
+
]), Te(x.value.dataset) && (t = x.value.dataset.map((i, S) => ({
|
|
576
|
+
...i,
|
|
577
|
+
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
578
|
+
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${S}`,
|
|
579
579
|
id: `bar_${S}`
|
|
580
|
-
})).map((
|
|
581
|
-
...
|
|
582
|
-
color:
|
|
583
|
-
values:
|
|
584
|
-
absoluteIndices:
|
|
580
|
+
})).map((i, S) => ({
|
|
581
|
+
...i,
|
|
582
|
+
color: i.COLOR ? Me(i.COLOR) : he.value[S + e.value.paletteStartIndex] || V[S + e.value.paletteStartIndex] || V[(S + e.value.paletteStartIndex) % V.length],
|
|
583
|
+
values: i.values.slice(b.value.start, b.value.end),
|
|
584
|
+
absoluteIndices: i.values.map((y, T) => T).slice(b.value.start, b.value.end)
|
|
585
585
|
})));
|
|
586
586
|
const u = {
|
|
587
|
-
max: Math.max(...t.filter((
|
|
588
|
-
min: Math.min(...t.filter((
|
|
589
|
-
maxSeries: Math.max(...t.filter((
|
|
590
|
-
}, r = ot(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, R = s.bottom - h / (r.max + h) * s.height, D = s.width / u.maxSeries,
|
|
591
|
-
y: s.bottom - s.height * ((
|
|
587
|
+
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)),
|
|
588
|
+
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
589
|
+
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
590
|
+
}, r = ot(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, R = s.bottom - h / (r.max + h) * s.height, D = s.width / u.maxSeries, ie = r.ticks.map((i) => ({
|
|
591
|
+
y: s.bottom - s.height * ((i + h) / (r.max + h)),
|
|
592
592
|
x: s.left - 8,
|
|
593
|
-
value:
|
|
594
|
-
})), ee = t.map((
|
|
595
|
-
...
|
|
596
|
-
coordinates:
|
|
593
|
+
value: i
|
|
594
|
+
})), ee = t.map((i, S) => ({
|
|
595
|
+
...i,
|
|
596
|
+
coordinates: i.values.map((y, T) => {
|
|
597
597
|
const M = (y + h) / (u.max + h) * s.height, me = Math.abs(y) / Math.abs(u.min) * (s.height - R), Re = h / (u.max + h) * s.height, pe = D / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
598
598
|
return {
|
|
599
599
|
x: s.left + D * T + pe * S + e.value.barGap / 2,
|
|
@@ -603,9 +603,9 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
603
603
|
width: pe
|
|
604
604
|
};
|
|
605
605
|
})
|
|
606
|
-
})), ue = t.filter((
|
|
607
|
-
...
|
|
608
|
-
coordinates:
|
|
606
|
+
})), ue = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
|
|
607
|
+
...i,
|
|
608
|
+
coordinates: i.values.map((y, T) => {
|
|
609
609
|
const M = (y + h) / (u.max + h) * s.height, me = Math.abs(y) / (u.max + h) * s.height, Re = h / (u.max + h) * s.height, pe = D / t.filter((ae) => !w.value.includes(ae.id)).length - e.value.barGap / t.filter((ae) => !w.value.includes(ae.id)).length;
|
|
610
610
|
return {
|
|
611
611
|
x: s.left + D * T + pe * S + e.value.barGap / 2,
|
|
@@ -616,24 +616,24 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
616
616
|
};
|
|
617
617
|
})
|
|
618
618
|
}));
|
|
619
|
-
function te(
|
|
620
|
-
j.value =
|
|
619
|
+
function te(i) {
|
|
620
|
+
j.value = i, J.value = i;
|
|
621
621
|
const S = t.map((T) => ({
|
|
622
622
|
...T,
|
|
623
|
-
value: T.values[
|
|
624
|
-
absoluteIndex: T.absoluteIndices[
|
|
623
|
+
value: T.values[i],
|
|
624
|
+
absoluteIndex: T.absoluteIndices[i]
|
|
625
625
|
})).filter((T) => !w.value.includes(T.id));
|
|
626
|
-
ce.value = { datapoint: S, seriesIndex:
|
|
626
|
+
ce.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
|
|
627
627
|
const y = e.value.tooltipCustomFormat;
|
|
628
628
|
if (Ee(y) && Be(() => y({
|
|
629
629
|
datapoint: S,
|
|
630
|
-
seriesIndex:
|
|
630
|
+
seriesIndex: i,
|
|
631
631
|
series: t,
|
|
632
632
|
config: e.value
|
|
633
633
|
})))
|
|
634
634
|
K.value = y({
|
|
635
635
|
point: S,
|
|
636
|
-
seriesIndex:
|
|
636
|
+
seriesIndex: i,
|
|
637
637
|
series: t,
|
|
638
638
|
config: e.value
|
|
639
639
|
});
|
|
@@ -660,44 +660,44 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
660
660
|
`;
|
|
661
661
|
}), K.value = T;
|
|
662
662
|
}
|
|
663
|
-
|
|
663
|
+
H.value = !0;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
|
|
665
|
+
function n() {
|
|
666
|
+
H.value = !1, j.value = null, J.value = null;
|
|
667
667
|
}
|
|
668
668
|
return {
|
|
669
669
|
absoluteZero: R,
|
|
670
|
-
dataset: ue.filter((
|
|
670
|
+
dataset: ue.filter((i) => !w.value.includes(i.id)),
|
|
671
671
|
legend: ee,
|
|
672
672
|
drawingArea: s,
|
|
673
673
|
extremes: u,
|
|
674
674
|
slotSize: D,
|
|
675
|
-
yLabels:
|
|
675
|
+
yLabels: ie,
|
|
676
676
|
useTooltip: te,
|
|
677
|
-
killTooltip:
|
|
677
|
+
killTooltip: n
|
|
678
678
|
};
|
|
679
|
-
}),
|
|
679
|
+
}), Le = L(!1);
|
|
680
680
|
function bt(o) {
|
|
681
|
-
|
|
681
|
+
Le.value = o, qe.value += 1;
|
|
682
682
|
}
|
|
683
683
|
function at() {
|
|
684
684
|
Ae.value.showTooltip = !Ae.value.showTooltip;
|
|
685
685
|
}
|
|
686
|
-
const $e =
|
|
686
|
+
const $e = L(!1);
|
|
687
687
|
function Oe() {
|
|
688
688
|
$e.value = !$e.value;
|
|
689
689
|
}
|
|
690
690
|
return I({
|
|
691
|
-
generatePdf:
|
|
691
|
+
generatePdf: Ge,
|
|
692
692
|
generateImage: Xe,
|
|
693
693
|
toggleTooltip: at,
|
|
694
694
|
toggleAnnotator: Oe
|
|
695
695
|
}), (o, s) => ht.value ? (a(), l("div", {
|
|
696
696
|
key: 0,
|
|
697
|
-
id: `${
|
|
697
|
+
id: `${z.value}_${P.value}`,
|
|
698
698
|
ref_key: "quickChart",
|
|
699
699
|
ref: W,
|
|
700
|
-
class: re({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen":
|
|
700
|
+
class: re({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Le.value }),
|
|
701
701
|
style: N(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
702
702
|
onMouseenter: s[5] || (s[5] = () => je(!0)),
|
|
703
703
|
onMouseleave: s[6] || (s[6] = () => je(!1))
|
|
@@ -731,14 +731,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
731
731
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
732
732
|
hasXls: !1,
|
|
733
733
|
isTooltip: Ae.value.showTooltip,
|
|
734
|
-
isFullscreen:
|
|
734
|
+
isFullscreen: Le.value,
|
|
735
735
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
736
736
|
chartElement: W.value,
|
|
737
737
|
position: e.value.userOptionsPosition,
|
|
738
738
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
739
739
|
isAnnotation: $e.value,
|
|
740
740
|
onToggleFullscreen: bt,
|
|
741
|
-
onGeneratePdf: g(
|
|
741
|
+
onGeneratePdf: g(Ge),
|
|
742
742
|
onGenerateImage: g(Xe),
|
|
743
743
|
onToggleTooltip: at,
|
|
744
744
|
onToggleAnnotator: Oe,
|
|
@@ -770,14 +770,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
770
770
|
o.$slots.optionFullscreen ? {
|
|
771
771
|
name: "optionFullscreen",
|
|
772
772
|
fn: Q(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
773
|
-
F(o.$slots, "optionFullscreen",
|
|
773
|
+
F(o.$slots, "optionFullscreen", G(se({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
774
774
|
]),
|
|
775
775
|
key: "3"
|
|
776
776
|
} : void 0,
|
|
777
777
|
o.$slots.optionAnnotator ? {
|
|
778
778
|
name: "optionAnnotator",
|
|
779
779
|
fn: Q(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
780
|
-
F(o.$slots, "optionAnnotator",
|
|
780
|
+
F(o.$slots, "optionAnnotator", G(se({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
781
781
|
]),
|
|
782
782
|
key: "4"
|
|
783
783
|
} : void 0
|
|
@@ -789,14 +789,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
789
789
|
class: "vue-ui-quick-chart-title",
|
|
790
790
|
style: N(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
791
791
|
}, O(e.value.title), 5)) : f("", !0),
|
|
792
|
-
|
|
792
|
+
z.value ? (a(), l("svg", {
|
|
793
793
|
key: 4,
|
|
794
794
|
xmlns: g(Rt),
|
|
795
795
|
viewBox: gt.value,
|
|
796
796
|
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
797
797
|
}, [
|
|
798
798
|
ve(Wt),
|
|
799
|
-
o.$slots["chart-background"] &&
|
|
799
|
+
o.$slots["chart-background"] && z.value === A.BAR ? (a(), l("foreignObject", {
|
|
800
800
|
key: 0,
|
|
801
801
|
x: v.value.drawingArea.left,
|
|
802
802
|
y: v.value.drawingArea.top,
|
|
@@ -808,7 +808,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
808
808
|
}, [
|
|
809
809
|
F(o.$slots, "chart-background", {}, void 0, !0)
|
|
810
810
|
], 8, ta)) : f("", !0),
|
|
811
|
-
o.$slots["chart-background"] &&
|
|
811
|
+
o.$slots["chart-background"] && z.value === A.LINE ? (a(), l("foreignObject", {
|
|
812
812
|
key: 1,
|
|
813
813
|
x: c.value.drawingArea.left,
|
|
814
814
|
y: c.value.drawingArea.top,
|
|
@@ -820,7 +820,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
820
820
|
}, [
|
|
821
821
|
F(o.$slots, "chart-background", {}, void 0, !0)
|
|
822
822
|
], 8, aa)) : f("", !0),
|
|
823
|
-
o.$slots["chart-background"] &&
|
|
823
|
+
o.$slots["chart-background"] && z.value === A.DONUT ? (a(), l("foreignObject", {
|
|
824
824
|
key: 2,
|
|
825
825
|
x: 0,
|
|
826
826
|
y: 0,
|
|
@@ -844,8 +844,8 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
844
844
|
in: "SourceGraphic",
|
|
845
845
|
stdDeviation: 2,
|
|
846
846
|
id: `blur_std_${P.value}`
|
|
847
|
-
}, null, 8,
|
|
848
|
-
|
|
847
|
+
}, null, 8, na),
|
|
848
|
+
ia
|
|
849
849
|
], 8, oa),
|
|
850
850
|
_("filter", {
|
|
851
851
|
id: `shadow_${P.value}`,
|
|
@@ -860,7 +860,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
860
860
|
}, null, 8, ra)
|
|
861
861
|
], 8, ua)
|
|
862
862
|
]),
|
|
863
|
-
|
|
863
|
+
z.value === A.DONUT ? (a(), l(p, { key: 3 }, [
|
|
864
864
|
e.value.showDataLabels ? (a(), l("g", sa, [
|
|
865
865
|
(a(!0), l(p, null, $(E.value.chart, (t, u) => (a(), l(p, null, [
|
|
866
866
|
E.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
@@ -962,7 +962,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
962
962
|
})), 9, ba)
|
|
963
963
|
])) : f("", !0)
|
|
964
964
|
], 64)) : f("", !0),
|
|
965
|
-
|
|
965
|
+
z.value === A.LINE ? (a(), l(p, { key: 4 }, [
|
|
966
966
|
e.value.xyShowGrid ? (a(), l("g", Sa, [
|
|
967
967
|
(a(!0), l(p, null, $(c.value.yLabels, (t) => (a(), l(p, null, [
|
|
968
968
|
t.y <= c.value.drawingArea.bottom ? (a(), l("line", {
|
|
@@ -995,7 +995,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
995
995
|
stroke: e.value.xyAxisStroke,
|
|
996
996
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
997
997
|
"stroke-linecap": "round"
|
|
998
|
-
}, null, 8,
|
|
998
|
+
}, null, 8, za),
|
|
999
999
|
_("line", {
|
|
1000
1000
|
x1: c.value.drawingArea.left,
|
|
1001
1001
|
x2: c.value.drawingArea.right,
|
|
@@ -1004,7 +1004,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1004
1004
|
stroke: e.value.xyAxisStroke,
|
|
1005
1005
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1006
1006
|
"stroke-linecap": "round"
|
|
1007
|
-
}, null, 8,
|
|
1007
|
+
}, null, 8, La)
|
|
1008
1008
|
])) : f("", !0),
|
|
1009
1009
|
e.value.xyShowScale ? (a(), l("g", $a, [
|
|
1010
1010
|
(a(!0), l(p, null, $(c.value.yLabels, (t, u) => (a(), l(p, null, [
|
|
@@ -1059,7 +1059,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1059
1059
|
(a(!0), l(p, null, $(c.value.dataset, (t, u) => (a(), l("g", Ra, [
|
|
1060
1060
|
e.value.lineSmooth ? (a(), l(p, { key: 0 }, [
|
|
1061
1061
|
_("path", {
|
|
1062
|
-
d: `M ${g(
|
|
1062
|
+
d: `M ${g(nt)(t.coordinates)}`,
|
|
1063
1063
|
stroke: e.value.backgroundColor,
|
|
1064
1064
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1065
1065
|
"stroke-linecap": "round",
|
|
@@ -1068,7 +1068,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1068
1068
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1069
1069
|
}, null, 10, Na),
|
|
1070
1070
|
_("path", {
|
|
1071
|
-
d: `M ${g(
|
|
1071
|
+
d: `M ${g(nt)(t.coordinates)}`,
|
|
1072
1072
|
stroke: t.color,
|
|
1073
1073
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1074
1074
|
"stroke-linecap": "round",
|
|
@@ -1148,7 +1148,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1148
1148
|
}, null, 44, Wa))), 256))
|
|
1149
1149
|
])
|
|
1150
1150
|
], 64)) : f("", !0),
|
|
1151
|
-
|
|
1151
|
+
z.value === A.BAR ? (a(), l(p, { key: 5 }, [
|
|
1152
1152
|
e.value.xyShowGrid ? (a(), l("g", ja, [
|
|
1153
1153
|
(a(!0), l(p, null, $(v.value.yLabels, (t) => (a(), l(p, null, [
|
|
1154
1154
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
@@ -1160,7 +1160,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1160
1160
|
stroke: e.value.xyGridStroke,
|
|
1161
1161
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1162
1162
|
"stroke-linecap": "round"
|
|
1163
|
-
}, null, 8,
|
|
1163
|
+
}, null, 8, Ha)) : f("", !0)
|
|
1164
1164
|
], 64))), 256)),
|
|
1165
1165
|
(a(!0), l(p, null, $(v.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
1166
1166
|
x1: v.value.drawingArea.left + v.value.slotSize * u,
|
|
@@ -1170,7 +1170,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1170
1170
|
stroke: e.value.xyGridStroke,
|
|
1171
1171
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1172
1172
|
"stroke-linecap": "round"
|
|
1173
|
-
}, null, 8,
|
|
1173
|
+
}, null, 8, Ga))), 256))
|
|
1174
1174
|
])) : f("", !0),
|
|
1175
1175
|
e.value.xyShowAxis ? (a(), l("g", Xa, [
|
|
1176
1176
|
_("line", {
|
|
@@ -1260,14 +1260,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1260
1260
|
from: 0,
|
|
1261
1261
|
to: r.height,
|
|
1262
1262
|
dur: "0.5s"
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, nl)) : f("", !0),
|
|
1264
1264
|
e.value.barAnimated && r.value > 0 && !g(Se) && !g(we) ? (a(), l("animate", {
|
|
1265
1265
|
key: 1,
|
|
1266
1266
|
attributeName: "y",
|
|
1267
1267
|
from: v.value.absoluteZero,
|
|
1268
1268
|
to: v.value.absoluteZero - r.height,
|
|
1269
1269
|
dur: "0.5s"
|
|
1270
|
-
}, null, 8,
|
|
1270
|
+
}, null, 8, il)) : f("", !0)
|
|
1271
1271
|
], 10, ol))), 256))
|
|
1272
1272
|
], 64))), 256))
|
|
1273
1273
|
]),
|
|
@@ -1310,8 +1310,8 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1310
1310
|
}, null, 44, vl))), 256))
|
|
1311
1311
|
])
|
|
1312
1312
|
], 64)) : f("", !0),
|
|
1313
|
-
[A.LINE, A.BAR].includes(
|
|
1314
|
-
e.value.xAxisLabel &&
|
|
1313
|
+
[A.LINE, A.BAR].includes(z.value) ? (a(), l("g", dl, [
|
|
1314
|
+
e.value.xAxisLabel && z.value === A.LINE ? (a(), l("g", cl, [
|
|
1315
1315
|
_("text", {
|
|
1316
1316
|
"font-size": e.value.axisLabelsFontSize,
|
|
1317
1317
|
fill: e.value.color,
|
|
@@ -1320,7 +1320,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1320
1320
|
y: k.value.height - e.value.axisLabelsFontSize / 3
|
|
1321
1321
|
}, O(e.value.xAxisLabel), 9, hl)
|
|
1322
1322
|
])) : f("", !0),
|
|
1323
|
-
e.value.xAxisLabel &&
|
|
1323
|
+
e.value.xAxisLabel && z.value === A.BAR ? (a(), l("g", fl, [
|
|
1324
1324
|
_("text", {
|
|
1325
1325
|
"font-size": e.value.axisLabelsFontSize,
|
|
1326
1326
|
fill: e.value.color,
|
|
@@ -1329,7 +1329,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1329
1329
|
y: k.value.height - e.value.axisLabelsFontSize / 3
|
|
1330
1330
|
}, O(e.value.xAxisLabel), 9, gl)
|
|
1331
1331
|
])) : f("", !0),
|
|
1332
|
-
e.value.yAxisLabel &&
|
|
1332
|
+
e.value.yAxisLabel && z.value === A.LINE ? (a(), l("g", ml, [
|
|
1333
1333
|
_("text", {
|
|
1334
1334
|
"font-size": e.value.axisLabelsFontSize,
|
|
1335
1335
|
fill: e.value.color,
|
|
@@ -1337,7 +1337,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1337
1337
|
"text-anchor": "middle"
|
|
1338
1338
|
}, O(e.value.yAxisLabel), 9, pl)
|
|
1339
1339
|
])) : f("", !0),
|
|
1340
|
-
e.value.yAxisLabel &&
|
|
1340
|
+
e.value.yAxisLabel && z.value === A.BAR ? (a(), l("g", xl, [
|
|
1341
1341
|
_("text", {
|
|
1342
1342
|
"font-size": e.value.axisLabelsFontSize,
|
|
1343
1343
|
fill: e.value.color,
|
|
@@ -1347,7 +1347,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1347
1347
|
])) : f("", !0)
|
|
1348
1348
|
])) : f("", !0)
|
|
1349
1349
|
], 12, ea)) : f("", !0),
|
|
1350
|
-
|
|
1350
|
+
z.value ? f("", !0) : (a(), Ie(qt, {
|
|
1351
1351
|
key: 5,
|
|
1352
1352
|
config: {
|
|
1353
1353
|
type: "line",
|
|
@@ -1366,16 +1366,16 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}, null, 8, ["config"])),
|
|
1368
1368
|
o.$slots.watermark ? (a(), l("div", kl, [
|
|
1369
|
-
F(o.$slots, "watermark",
|
|
1369
|
+
F(o.$slots, "watermark", G(se({ isPrinting: g(Se) || g(we) })), void 0, !0)
|
|
1370
1370
|
])) : f("", !0),
|
|
1371
|
-
[A.BAR, A.LINE].includes(
|
|
1371
|
+
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && x.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1372
1372
|
key: `slicer_${ke.value}`,
|
|
1373
1373
|
ref_key: "quickChartSlicer",
|
|
1374
1374
|
ref: de
|
|
1375
1375
|
}, [
|
|
1376
1376
|
(a(), Ie(Vt, {
|
|
1377
1377
|
ref_key: "slicerComponent",
|
|
1378
|
-
ref:
|
|
1378
|
+
ref: ne,
|
|
1379
1379
|
key: `slicer_${ke.value}`,
|
|
1380
1380
|
background: e.value.zoomColor,
|
|
1381
1381
|
borderColor: e.value.backgroundColor,
|
|
@@ -1404,14 +1404,16 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1404
1404
|
"onUpdate:end": s[4] || (s[4] = (t) => b.value.end = t),
|
|
1405
1405
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1406
1406
|
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : x.value.maxSeriesLength,
|
|
1407
|
+
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1408
|
+
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1407
1409
|
onReset: xt,
|
|
1408
1410
|
onTrapMouse: pt
|
|
1409
1411
|
}, {
|
|
1410
1412
|
"reset-action": Q(({ reset: t }) => [
|
|
1411
|
-
F(o.$slots, "reset-action",
|
|
1413
|
+
F(o.$slots, "reset-action", G(se({ reset: t })), void 0, !0)
|
|
1412
1414
|
]),
|
|
1413
1415
|
_: 3
|
|
1414
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint"]))
|
|
1416
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
1415
1417
|
])) : f("", !0),
|
|
1416
1418
|
e.value.showLegend ? (a(), l("div", {
|
|
1417
1419
|
key: 8,
|
|
@@ -1420,14 +1422,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1420
1422
|
class: "vue-ui-quick-chart-legend",
|
|
1421
1423
|
style: N(`background:transparent;color:${e.value.color}`)
|
|
1422
1424
|
}, [
|
|
1423
|
-
|
|
1425
|
+
z.value === A.DONUT ? (a(!0), l(p, { key: 0 }, $(E.value.legend, (t, u) => (a(), l("div", {
|
|
1424
1426
|
class: "vue-ui-quick-chart-legend-item",
|
|
1425
1427
|
onClick: (r) => {
|
|
1426
1428
|
mt(t, E.value.dataset), m("selectLegend", t);
|
|
1427
1429
|
},
|
|
1428
1430
|
style: N(`cursor: ${E.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1429
1431
|
}, [
|
|
1430
|
-
e.value.useCustomLegend ? F(o.$slots, "legend",
|
|
1432
|
+
e.value.useCustomLegend ? F(o.$slots, "legend", G(Fe({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1431
1433
|
ve(Pe, {
|
|
1432
1434
|
name: e.value.legendIcon,
|
|
1433
1435
|
stroke: t.color,
|
|
@@ -1452,7 +1454,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1452
1454
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1453
1455
|
key: 0,
|
|
1454
1456
|
style: N(`font-size:${e.value.legendFontSize}px`)
|
|
1455
|
-
}, " ( - % ) ", 4)) :
|
|
1457
|
+
}, " ( - % ) ", 4)) : ze.value ? (a(), l("span", {
|
|
1456
1458
|
key: 1,
|
|
1457
1459
|
style: N(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1458
1460
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
@@ -1465,14 +1467,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1465
1467
|
})) + ") ", 5))
|
|
1466
1468
|
], 64))
|
|
1467
1469
|
], 12, bl))), 256)) : f("", !0),
|
|
1468
|
-
|
|
1470
|
+
z.value === A.LINE ? (a(!0), l(p, { key: 1 }, $(c.value.legend, (t, u) => (a(), l("div", {
|
|
1469
1471
|
class: "vue-ui-quick-chart-legend-item",
|
|
1470
1472
|
onClick: (r) => {
|
|
1471
1473
|
Je(t.id, c.value.legend.length - 1), m("selectLegend", t);
|
|
1472
1474
|
},
|
|
1473
1475
|
style: N(`cursor: ${c.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1474
1476
|
}, [
|
|
1475
|
-
e.value.useCustomLegend ? F(o.$slots, "legend",
|
|
1477
|
+
e.value.useCustomLegend ? F(o.$slots, "legend", G(Fe({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1476
1478
|
ve(Pe, {
|
|
1477
1479
|
name: e.value.legendIcon,
|
|
1478
1480
|
stroke: t.color,
|
|
@@ -1483,14 +1485,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1483
1485
|
}, O(t.name), 5)
|
|
1484
1486
|
], 64))
|
|
1485
1487
|
], 12, Sl))), 256)) : f("", !0),
|
|
1486
|
-
|
|
1488
|
+
z.value === A.BAR ? (a(!0), l(p, { key: 2 }, $(v.value.legend, (t, u) => (a(), l("div", {
|
|
1487
1489
|
class: "vue-ui-quick-chart-legend-item",
|
|
1488
1490
|
onClick: (r) => {
|
|
1489
1491
|
Je(t.id, v.value.legend.length - 1), m("selectLegend", t);
|
|
1490
1492
|
},
|
|
1491
1493
|
style: N(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1492
1494
|
}, [
|
|
1493
|
-
e.value.useCustomLegend ? F(o.$slots, "legend",
|
|
1495
|
+
e.value.useCustomLegend ? F(o.$slots, "legend", G(Fe({ key: 0 }, { legend: t })), void 0, !0) : (a(), l(p, { key: 1 }, [
|
|
1494
1496
|
ve(Pe, {
|
|
1495
1497
|
name: e.value.legendIcon,
|
|
1496
1498
|
stroke: t.color,
|
|
@@ -1511,7 +1513,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1511
1513
|
F(o.$slots, "source", {}, void 0, !0)
|
|
1512
1514
|
], 512)) : f("", !0),
|
|
1513
1515
|
ve(Ut, {
|
|
1514
|
-
show: Ae.value.showTooltip &&
|
|
1516
|
+
show: Ae.value.showTooltip && H.value,
|
|
1515
1517
|
backgroundColor: e.value.backgroundColor,
|
|
1516
1518
|
color: e.value.color,
|
|
1517
1519
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1523,14 +1525,14 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1523
1525
|
offsetY: e.value.tooltipOffsetY,
|
|
1524
1526
|
parent: W.value,
|
|
1525
1527
|
content: K.value,
|
|
1526
|
-
isFullscreen:
|
|
1528
|
+
isFullscreen: Le.value,
|
|
1527
1529
|
isCustom: g(Ee)(e.value.tooltipCustomFormat)
|
|
1528
1530
|
}, {
|
|
1529
1531
|
"tooltip-before": Q(() => [
|
|
1530
|
-
F(o.$slots, "tooltip-before",
|
|
1532
|
+
F(o.$slots, "tooltip-before", G(se({ ...ce.value })), void 0, !0)
|
|
1531
1533
|
]),
|
|
1532
1534
|
"tooltip-after": Q(() => [
|
|
1533
|
-
F(o.$slots, "tooltip-after",
|
|
1535
|
+
F(o.$slots, "tooltip-after", G(se({ ...ce.value })), void 0, !0)
|
|
1534
1536
|
]),
|
|
1535
1537
|
_: 3
|
|
1536
1538
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
@@ -1542,7 +1544,7 @@ const dt = (d) => (_t("data-v-c3f7d8f5"), d = d(), Lt(), d), Kt = ["id"], ea = [
|
|
|
1542
1544
|
_l
|
|
1543
1545
|
]));
|
|
1544
1546
|
}
|
|
1545
|
-
}, Ul = /* @__PURE__ */
|
|
1547
|
+
}, Ul = /* @__PURE__ */ Ht(zl, [["__scopeId", "data-v-ccb29683"]]);
|
|
1546
1548
|
export {
|
|
1547
1549
|
Ul as default
|
|
1548
1550
|
};
|