vue-data-ui 3.22.5 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-CqE8ssFu.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-YOcaZtwF.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-B80rr2N_.js → render-common-CUAlQvAQ.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +13 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-mqURXOql.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-RGCGF_cO.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-CiUmHi6k.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-BJUk5fMm.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-BksIDurC.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-DddaioRm.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-D2-hWt_G.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-Dp7pV6Ps.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-D91C5cXo.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-CMA3U4ZS.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-DpiS28CQ.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-2B61hvv2.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-7Yfsu6AY.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-yo4G5HMt.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-BOHI6oMZ.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DI-35oK-.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-DBVM90VE.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-XBrvSxtJ.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-55wwhSBh.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-izcbwGOc.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DRJ1QT2n.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-xTZOmmtb.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CJ1xQgYc.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-C26C6p7e.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-BbJa5C-d.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-D9Iw5xlb.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-C4D0i9ho.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-CMb7UI2t.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-DEawjWhg.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-mubHGQF_.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-D8N-jNBt.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-D4p0PS3-.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-BzHSHKqe.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-pPiVqFYo.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-BzqQKuL-.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-BnavmY2R.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-ePIxpTuE.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-BQZxD91f.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-CDOlCWS8.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-BpZrFfUb.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-DRfyK9q9.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-D0JUA9I9.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-Dx-41fUM.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-BLSGO4Lm.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-DpRqQ09J.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-BZ1Slxfu.js +0 -1757
- package/dist/vue-ui-age-pyramid-uUVFZo8M.js +0 -1238
- package/dist/vue-ui-chestnut-B3OHA5rg.js +0 -2010
- package/dist/vue-ui-chord-DETV2viY.js +0 -1391
- package/dist/vue-ui-donut-DObpw5zP.js +0 -2410
- package/dist/vue-ui-dumbbell-Cmr65TNE.js +0 -1530
- package/dist/vue-ui-funnel-BLRBDW1a.js +0 -777
- package/dist/vue-ui-galaxy-B9cxOcoE.js +0 -1077
- package/dist/vue-ui-history-plot-BiWpOHKE.js +0 -1715
- package/dist/vue-ui-molecule-DB3rmTw1.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BxQ7D2_o.js +0 -1416
- package/dist/vue-ui-quadrant-BvAmtyAE.js +0 -1978
- package/dist/vue-ui-relation-circle-Dl1aWFAI.js +0 -924
- package/dist/vue-ui-rings-CyrvskTi.js +0 -1246
- package/dist/vue-ui-sparkstackbar-DnrZkIIc.js +0 -662
- package/dist/vue-ui-stackline-CWSvsW1n.js +0 -2416
- package/dist/vue-ui-treemap-DrZlX_7n.js +0 -1587
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { Fragment as
|
|
2
|
+
import { At as t, Dt as n, H as r, Ht as i, Pt as a, Q as o, S as s, Tt as ee, W as c, Wt as l, _t as te, at as u, b as ne, d, h as re, i as f, j as p, p as ie, q as m, t as ae, u as oe, v as h } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as se } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as ce } from "./useConfig-DYM3f6EI.js";
|
|
5
|
+
import { t as le } from "./usePrinter-CRp5IW3v.js";
|
|
6
|
+
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as fe } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as pe } from "./useNestedProp-BEo2N1Db.js";
|
|
9
|
+
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as he } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
+
import { t as ge } from "./img-B_y5qDdm.js";
|
|
12
|
+
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as ve } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as ye } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as be } from "./BaseLegendToggle-DFwIY5bE.js";
|
|
16
|
+
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as Ce } from "./Slicer-ClIGOuoX.js";
|
|
19
|
+
import { t as we } from "./vue_ui_quick_chart-mZBdml3Z.js";
|
|
20
|
+
import { Fragment as g, Teleport as Te, computed as _, createBlock as Ee, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as x, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as Ne, onMounted as Pe, openBlock as w, ref as T, renderList as E, renderSlot as D, shallowRef as Fe, toDisplayString as O, toRefs as Ie, unref as k, watch as Le, watchEffect as Re, withCtx as A } from "vue";
|
|
21
21
|
//#region src/chartDetector.js
|
|
22
|
-
var
|
|
22
|
+
var j = {
|
|
23
23
|
LINE: "LINE",
|
|
24
24
|
BAR: "BAR",
|
|
25
25
|
DONUT: "DONUT"
|
|
26
|
-
},
|
|
26
|
+
}, ze = [
|
|
27
27
|
"SERIE",
|
|
28
28
|
"SERIES",
|
|
29
29
|
"DATA",
|
|
@@ -31,16 +31,16 @@ var M = {
|
|
|
31
31
|
"VALUES",
|
|
32
32
|
"NUM"
|
|
33
33
|
];
|
|
34
|
-
function
|
|
34
|
+
function Be({ dataset: e, barLineSwitch: t = 6, debug: n = !0 }) {
|
|
35
35
|
let r = null, i = null, a = 0;
|
|
36
|
-
if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`),
|
|
37
|
-
if (!
|
|
36
|
+
if ((typeof e == "number" || typeof e == "string") && n && console.warn(`The provided dataset (${e}) is not sufficient to build a chart`), He(e) && (M(e) && (r = e.length < t ? j.BAR : j.LINE, i = e, a = e.length), Ue(e))) {
|
|
37
|
+
if (!Ge(e)) return n && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
38
38
|
let o = Object.keys(e[0]), s = Object.values(e[0]);
|
|
39
|
-
if (!o.some((e) =>
|
|
40
|
-
|
|
39
|
+
if (!o.some((e) => Ke(e))) return n && 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;
|
|
40
|
+
qe(s, (e) => typeof e == "number") && (r = j.DONUT, i = e), qe(s, (e) => Array.isArray(e) && M(e)) && (r = Je(e) > t ? j.LINE : j.BAR, a = Je(e), i = e.map((e) => ({
|
|
41
41
|
...e,
|
|
42
|
-
data:
|
|
43
|
-
}))), e = e.map((e) =>
|
|
42
|
+
data: Ye(e, (e) => M(e))
|
|
43
|
+
}))), e = e.map((e) => N(e)), i = i.map((e) => N(e));
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
dataset: e,
|
|
@@ -49,21 +49,21 @@ function ze({ dataset: e, barLineSwitch: t = 6, debug: n = !0 }) {
|
|
|
49
49
|
maxSeriesLength: a
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function Be(e) {
|
|
53
|
-
return !e || Ve(e) && !e.length;
|
|
54
|
-
}
|
|
55
52
|
function Ve(e) {
|
|
53
|
+
return !e || He(e) && !e.length;
|
|
54
|
+
}
|
|
55
|
+
function He(e) {
|
|
56
56
|
return Array.isArray(e);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
if (!
|
|
58
|
+
function M(e) {
|
|
59
|
+
if (!He(e) || Ve(e)) return !1;
|
|
60
60
|
let t = e.map((e) => Number(e));
|
|
61
61
|
return ![...new Set(t.flatMap((e) => typeof e == "number" && !isNaN(e)))].includes(!1);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return !
|
|
63
|
+
function Ue(e) {
|
|
64
|
+
return !He(e) || Ve(e) || [...new Set(e.flatMap((e) => typeof e == "object" && !Array.isArray(e)))].includes(!1) ? !1 : !e.map((e) => Object.keys(e).length > 0).includes(!1);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function We(e, t) {
|
|
67
67
|
let n = Object.keys(e).sort(), r = Object.keys(t).sort();
|
|
68
68
|
if (n.length !== r.length) return !1;
|
|
69
69
|
for (let i = 0; i < n.length; i += 1) {
|
|
@@ -72,179 +72,175 @@ function Ue(e, t) {
|
|
|
72
72
|
}
|
|
73
73
|
return !0;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ge(e) {
|
|
76
76
|
if (e.length <= 1) return !0;
|
|
77
|
-
for (let t = 0; t < e.length; t += 1) for (let n = t + 1; n < e.length; n += 1) if (!
|
|
77
|
+
for (let t = 0; t < e.length; t += 1) for (let n = t + 1; n < e.length; n += 1) if (!We(e[t], e[n])) return !1;
|
|
78
78
|
return !0;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
80
|
+
function Ke(e) {
|
|
81
|
+
return ze.includes(e.toUpperCase());
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function qe(e, t) {
|
|
84
84
|
let n = [];
|
|
85
85
|
for (let r = 0; r < e.length; r += 1) n.push(t(e[r]));
|
|
86
86
|
return n.includes(!0);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return Math.max(...[...e].flatMap((e) => Object.values(e).filter((e) =>
|
|
88
|
+
function Je(e) {
|
|
89
|
+
return Math.max(...[...e].flatMap((e) => Object.values(e).filter((e) => M(e)).map((e) => e.length)));
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ye(e, t) {
|
|
92
92
|
return Object.values(e).filter((e) => t(e))[0];
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function N(e) {
|
|
95
95
|
let t = {};
|
|
96
96
|
for (let n in e) e.hasOwnProperty(n) && (t[n.toUpperCase()] = e[n]);
|
|
97
97
|
return t;
|
|
98
98
|
}
|
|
99
99
|
//#endregion
|
|
100
100
|
//#region src/components/vue-ui-quick-chart.vue
|
|
101
|
-
var
|
|
101
|
+
var P = /* @__PURE__ */ e({ default: () => Tn }), Xe = ["id"], Ze = ["id"], Qe = ["id"], $e = { style: { position: "relative" } }, et = [
|
|
102
102
|
"xmlns",
|
|
103
103
|
"aria-describedby",
|
|
104
104
|
"viewBox"
|
|
105
|
-
],
|
|
105
|
+
], tt = [
|
|
106
106
|
"x",
|
|
107
107
|
"y",
|
|
108
108
|
"width",
|
|
109
109
|
"height"
|
|
110
|
-
],
|
|
110
|
+
], nt = [
|
|
111
111
|
"x",
|
|
112
112
|
"y",
|
|
113
113
|
"width",
|
|
114
114
|
"height"
|
|
115
|
-
],
|
|
115
|
+
], rt = ["width", "height"], it = ["id"], at = ["id"], ot = ["id"], st = ["flood-color"], ct = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "donut-label-connectors"
|
|
118
|
-
},
|
|
118
|
+
}, lt = [
|
|
119
119
|
"d",
|
|
120
120
|
"stroke",
|
|
121
121
|
"stroke-width",
|
|
122
122
|
"filter"
|
|
123
|
-
],
|
|
123
|
+
], ut = [
|
|
124
124
|
"cx",
|
|
125
125
|
"cy",
|
|
126
126
|
"r",
|
|
127
127
|
"fill",
|
|
128
128
|
"filter"
|
|
129
|
-
],
|
|
129
|
+
], dt = { class: "donut" }, ft = [
|
|
130
130
|
"d",
|
|
131
131
|
"fill",
|
|
132
132
|
"stroke",
|
|
133
133
|
"stroke-width",
|
|
134
134
|
"filter"
|
|
135
|
-
],
|
|
135
|
+
], pt = [
|
|
136
136
|
"d",
|
|
137
137
|
"onMouseenter",
|
|
138
138
|
"onMouseout",
|
|
139
139
|
"onClick"
|
|
140
|
-
],
|
|
140
|
+
], mt = {
|
|
141
141
|
key: 1,
|
|
142
142
|
class: "donut-labels quick-animation"
|
|
143
|
-
},
|
|
143
|
+
}, ht = [
|
|
144
144
|
"cx",
|
|
145
145
|
"cy",
|
|
146
146
|
"fill",
|
|
147
147
|
"stroke",
|
|
148
148
|
"filter"
|
|
149
|
-
],
|
|
149
|
+
], gt = [
|
|
150
150
|
"text-anchor",
|
|
151
151
|
"x",
|
|
152
152
|
"y",
|
|
153
153
|
"fill",
|
|
154
154
|
"font-size",
|
|
155
155
|
"filter"
|
|
156
|
-
],
|
|
156
|
+
], _t = [
|
|
157
157
|
"text-anchor",
|
|
158
158
|
"x",
|
|
159
159
|
"y",
|
|
160
160
|
"fill",
|
|
161
161
|
"font-size",
|
|
162
162
|
"filter"
|
|
163
|
-
],
|
|
163
|
+
], vt = {
|
|
164
164
|
key: 2,
|
|
165
165
|
class: "donut-hollow quick-animation"
|
|
166
|
-
},
|
|
166
|
+
}, yt = [
|
|
167
167
|
"x",
|
|
168
168
|
"y",
|
|
169
169
|
"font-size",
|
|
170
170
|
"fill"
|
|
171
|
-
],
|
|
171
|
+
], bt = [
|
|
172
172
|
"x",
|
|
173
173
|
"y",
|
|
174
174
|
"font-size",
|
|
175
175
|
"fill"
|
|
176
|
-
],
|
|
176
|
+
], xt = {
|
|
177
177
|
key: 0,
|
|
178
178
|
class: "line-grid"
|
|
179
|
-
},
|
|
179
|
+
}, St = [
|
|
180
180
|
"x1",
|
|
181
181
|
"x2",
|
|
182
182
|
"y1",
|
|
183
183
|
"y2",
|
|
184
184
|
"stroke",
|
|
185
185
|
"stroke-width"
|
|
186
|
-
],
|
|
186
|
+
], Ct = [
|
|
187
187
|
"x1",
|
|
188
188
|
"x2",
|
|
189
189
|
"y1",
|
|
190
190
|
"y2",
|
|
191
191
|
"stroke",
|
|
192
192
|
"stroke-width"
|
|
193
|
-
],
|
|
193
|
+
], wt = {
|
|
194
194
|
key: 1,
|
|
195
195
|
class: "line-axis"
|
|
196
|
-
},
|
|
196
|
+
}, Tt = [
|
|
197
197
|
"x1",
|
|
198
198
|
"x2",
|
|
199
199
|
"y1",
|
|
200
200
|
"y2",
|
|
201
201
|
"stroke",
|
|
202
202
|
"stroke-width"
|
|
203
|
-
],
|
|
203
|
+
], Et = [
|
|
204
204
|
"x1",
|
|
205
205
|
"x2",
|
|
206
206
|
"y1",
|
|
207
207
|
"y2",
|
|
208
208
|
"stroke",
|
|
209
209
|
"stroke-width"
|
|
210
|
-
],
|
|
210
|
+
], Dt = [
|
|
211
211
|
"x1",
|
|
212
212
|
"x2",
|
|
213
213
|
"y1",
|
|
214
214
|
"y2",
|
|
215
215
|
"stroke",
|
|
216
216
|
"stroke-width"
|
|
217
|
-
],
|
|
217
|
+
], Ot = [
|
|
218
218
|
"x",
|
|
219
219
|
"y",
|
|
220
220
|
"font-size",
|
|
221
221
|
"fill"
|
|
222
|
-
],
|
|
222
|
+
], kt = {
|
|
223
223
|
key: 3,
|
|
224
224
|
class: "periodLabels"
|
|
225
|
-
},
|
|
225
|
+
}, At = [
|
|
226
226
|
"x1",
|
|
227
227
|
"x2",
|
|
228
228
|
"y1",
|
|
229
229
|
"y2",
|
|
230
230
|
"stroke",
|
|
231
231
|
"stroke-width"
|
|
232
|
-
],
|
|
232
|
+
], jt = { key: 0 }, Mt = [
|
|
233
233
|
"font-size",
|
|
234
234
|
"text-anchor",
|
|
235
235
|
"fill",
|
|
236
236
|
"transform"
|
|
237
|
-
],
|
|
237
|
+
], Nt = [
|
|
238
238
|
"font-size",
|
|
239
239
|
"text-anchor",
|
|
240
240
|
"fill",
|
|
241
241
|
"transform",
|
|
242
242
|
"innerHTML"
|
|
243
|
-
],
|
|
244
|
-
"d",
|
|
245
|
-
"stroke",
|
|
246
|
-
"stroke-width"
|
|
247
|
-
], It = [
|
|
243
|
+
], Pt = { class: "plots" }, Ft = { class: "line-plot-series" }, It = [
|
|
248
244
|
"d",
|
|
249
245
|
"stroke",
|
|
250
246
|
"stroke-width"
|
|
@@ -257,22 +253,26 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
257
253
|
"stroke",
|
|
258
254
|
"stroke-width"
|
|
259
255
|
], zt = [
|
|
256
|
+
"d",
|
|
257
|
+
"stroke",
|
|
258
|
+
"stroke-width"
|
|
259
|
+
], Bt = [
|
|
260
260
|
"cx",
|
|
261
261
|
"cy",
|
|
262
262
|
"fill",
|
|
263
263
|
"stroke"
|
|
264
|
-
],
|
|
264
|
+
], Vt = {
|
|
265
265
|
key: 4,
|
|
266
266
|
class: "dataLabels"
|
|
267
|
-
},
|
|
267
|
+
}, Ht = [
|
|
268
268
|
"font-size",
|
|
269
269
|
"fill",
|
|
270
270
|
"x",
|
|
271
271
|
"y"
|
|
272
|
-
],
|
|
272
|
+
], Ut = {
|
|
273
273
|
key: 5,
|
|
274
274
|
class: "tooltip-traps"
|
|
275
|
-
},
|
|
275
|
+
}, Wt = [
|
|
276
276
|
"x",
|
|
277
277
|
"y",
|
|
278
278
|
"height",
|
|
@@ -281,74 +281,74 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
281
281
|
"onMouseenter",
|
|
282
282
|
"onMouseleave",
|
|
283
283
|
"onClick"
|
|
284
|
-
],
|
|
284
|
+
], Gt = {
|
|
285
285
|
key: 0,
|
|
286
286
|
class: "line-grid"
|
|
287
|
-
},
|
|
287
|
+
}, Kt = [
|
|
288
288
|
"x1",
|
|
289
289
|
"x2",
|
|
290
290
|
"y1",
|
|
291
291
|
"y2",
|
|
292
292
|
"stroke",
|
|
293
293
|
"stroke-width"
|
|
294
|
-
],
|
|
294
|
+
], qt = [
|
|
295
295
|
"x1",
|
|
296
296
|
"x2",
|
|
297
297
|
"y1",
|
|
298
298
|
"y2",
|
|
299
299
|
"stroke",
|
|
300
300
|
"stroke-width"
|
|
301
|
-
],
|
|
301
|
+
], Jt = {
|
|
302
302
|
key: 1,
|
|
303
303
|
class: "line-axis"
|
|
304
|
-
},
|
|
304
|
+
}, Yt = [
|
|
305
305
|
"x1",
|
|
306
306
|
"x2",
|
|
307
307
|
"y1",
|
|
308
308
|
"y2",
|
|
309
309
|
"stroke",
|
|
310
310
|
"stroke-width"
|
|
311
|
-
],
|
|
311
|
+
], Xt = [
|
|
312
312
|
"x1",
|
|
313
313
|
"x2",
|
|
314
314
|
"y1",
|
|
315
315
|
"y2",
|
|
316
316
|
"stroke",
|
|
317
317
|
"stroke-width"
|
|
318
|
-
],
|
|
318
|
+
], Zt = [
|
|
319
319
|
"x1",
|
|
320
320
|
"x2",
|
|
321
321
|
"y1",
|
|
322
322
|
"y2",
|
|
323
323
|
"stroke",
|
|
324
324
|
"stroke-width"
|
|
325
|
-
],
|
|
325
|
+
], Qt = [
|
|
326
326
|
"x",
|
|
327
327
|
"y",
|
|
328
328
|
"font-size",
|
|
329
329
|
"fill"
|
|
330
|
-
],
|
|
330
|
+
], $t = {
|
|
331
331
|
key: 3,
|
|
332
332
|
class: "periodLabels"
|
|
333
|
-
},
|
|
333
|
+
}, en = [
|
|
334
334
|
"x1",
|
|
335
335
|
"x2",
|
|
336
336
|
"y1",
|
|
337
337
|
"y2",
|
|
338
338
|
"stroke",
|
|
339
339
|
"stroke-width"
|
|
340
|
-
],
|
|
340
|
+
], tn = { key: 0 }, nn = [
|
|
341
341
|
"font-size",
|
|
342
342
|
"text-anchor",
|
|
343
343
|
"fill",
|
|
344
344
|
"transform"
|
|
345
|
-
],
|
|
345
|
+
], rn = [
|
|
346
346
|
"font-size",
|
|
347
347
|
"text-anchor",
|
|
348
348
|
"fill",
|
|
349
349
|
"transform",
|
|
350
350
|
"innerHTML"
|
|
351
|
-
],
|
|
351
|
+
], an = { class: "plots" }, on = [
|
|
352
352
|
"x",
|
|
353
353
|
"width",
|
|
354
354
|
"height",
|
|
@@ -356,18 +356,18 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
356
356
|
"fill",
|
|
357
357
|
"stroke",
|
|
358
358
|
"stroke-width"
|
|
359
|
-
],
|
|
359
|
+
], sn = ["to"], cn = ["from", "to"], ln = {
|
|
360
360
|
key: 4,
|
|
361
361
|
class: "dataLabels"
|
|
362
|
-
},
|
|
362
|
+
}, un = [
|
|
363
363
|
"x",
|
|
364
364
|
"y",
|
|
365
365
|
"font-size",
|
|
366
366
|
"fill"
|
|
367
|
-
],
|
|
367
|
+
], dn = {
|
|
368
368
|
key: 5,
|
|
369
369
|
class: "tooltip-traps"
|
|
370
|
-
},
|
|
370
|
+
}, fn = [
|
|
371
371
|
"x",
|
|
372
372
|
"y",
|
|
373
373
|
"height",
|
|
@@ -376,28 +376,28 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
376
376
|
"onMouseenter",
|
|
377
377
|
"onMouseleave",
|
|
378
378
|
"onClick"
|
|
379
|
-
],
|
|
379
|
+
], pn = {
|
|
380
380
|
key: 6,
|
|
381
381
|
class: "axis-labels"
|
|
382
|
-
},
|
|
382
|
+
}, mn = [
|
|
383
383
|
"font-size",
|
|
384
384
|
"fill",
|
|
385
385
|
"x",
|
|
386
386
|
"y"
|
|
387
|
-
],
|
|
387
|
+
], hn = [
|
|
388
388
|
"font-size",
|
|
389
389
|
"fill",
|
|
390
390
|
"x",
|
|
391
391
|
"y"
|
|
392
|
-
],
|
|
392
|
+
], gn = [
|
|
393
393
|
"font-size",
|
|
394
394
|
"fill",
|
|
395
395
|
"transform"
|
|
396
|
-
],
|
|
396
|
+
], _n = [
|
|
397
397
|
"font-size",
|
|
398
398
|
"fill",
|
|
399
399
|
"transform"
|
|
400
|
-
],
|
|
400
|
+
], vn = {
|
|
401
401
|
key: 1,
|
|
402
402
|
style: {
|
|
403
403
|
position: "absolute",
|
|
@@ -407,13 +407,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
407
407
|
},
|
|
408
408
|
"data-dom-to-png-ignore": "",
|
|
409
409
|
"aria-hidden": "true"
|
|
410
|
-
},
|
|
410
|
+
}, yn = {
|
|
411
411
|
key: 5,
|
|
412
412
|
class: "vue-data-ui-watermark"
|
|
413
|
-
},
|
|
413
|
+
}, bn = ["id"], xn = ["onClick", "onKeydown"], Sn = ["onClick", "onKeydown"], Cn = ["onClick", "onKeydown"], wn = {
|
|
414
414
|
key: 1,
|
|
415
415
|
class: "vue-ui-quick-chart-not-processable"
|
|
416
|
-
},
|
|
416
|
+
}, Tn = /*#__PURE__*/ _e({
|
|
417
417
|
__name: "vue-ui-quick-chart",
|
|
418
418
|
props: {
|
|
419
419
|
config: {
|
|
@@ -439,13 +439,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
439
439
|
"selectLegend",
|
|
440
440
|
"copyAlt"
|
|
441
441
|
],
|
|
442
|
-
setup(e, { expose:
|
|
443
|
-
let
|
|
444
|
-
|
|
445
|
-
let B =
|
|
442
|
+
setup(e, { expose: _e, emit: ze }) {
|
|
443
|
+
let Ve = ke(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), He = ke(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), We = ke(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), Ge = ke(() => import("./Tooltip-YabpoXo1.js")), Ke = ke(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), { vue_ui_quick_chart: qe } = ce(), { isThemeValid: Je, warnInvalidTheme: Ye } = me(), N = e, P = T(null), Tn = T(null), En = T(null), Dn = T(null), F = T(c()), I = T(!1), On = T(null), kn = T(""), L = T(null), An = T(null), jn = T(null), R = T([]), Mn = T(0), Nn = T(0), Pn = T(!1), Fn = T(null), In = T(null), z = T(null), Ln = T(null), Rn = T(null), zn = T(null);
|
|
444
|
+
T("#FFFFFF");
|
|
445
|
+
let B = T($n()), Bn = _(() => !!B.value.debug), Vn = _(() => B.value.useCursorPointer), V = T(null), Hn = T({
|
|
446
446
|
x: 0,
|
|
447
447
|
y: 0
|
|
448
|
-
}), H =
|
|
448
|
+
}), H = T("pointer"), Un = T(!1), Wn = _(() => l({
|
|
449
449
|
dafaultConfig: {
|
|
450
450
|
backgroundColor: "#99999930",
|
|
451
451
|
customPalette: ["#BABABA"],
|
|
@@ -466,20 +466,20 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
466
466
|
zoomEndIndex: null
|
|
467
467
|
},
|
|
468
468
|
userConfig: B.value.skeletonConfig ?? {}
|
|
469
|
-
})), { loading: U, FINAL_DATASET: Gn, manualLoading: Kn } =
|
|
470
|
-
...
|
|
469
|
+
})), { loading: U, FINAL_DATASET: Gn, manualLoading: Kn } = ue({
|
|
470
|
+
...Ie(N),
|
|
471
471
|
FINAL_CONFIG: B,
|
|
472
472
|
prepareConfig: $n,
|
|
473
473
|
callback: () => {
|
|
474
474
|
Promise.resolve().then(async () => {
|
|
475
|
-
await
|
|
475
|
+
await je(), K.value === j.LINE && B.value.lineAnimated && !U.value && Lr({
|
|
476
476
|
pathDuration: 1e3,
|
|
477
477
|
pointDuration: 1200,
|
|
478
478
|
labelDuration: 1200
|
|
479
479
|
});
|
|
480
480
|
});
|
|
481
481
|
},
|
|
482
|
-
skeletonDataset:
|
|
482
|
+
skeletonDataset: N.config?.skeletonDataset ?? [
|
|
483
483
|
1,
|
|
484
484
|
2,
|
|
485
485
|
3,
|
|
@@ -491,47 +491,47 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
491
491
|
55,
|
|
492
492
|
89
|
|
493
493
|
],
|
|
494
|
-
skeletonConfig:
|
|
494
|
+
skeletonConfig: l({
|
|
495
495
|
defaultConfig: B.value,
|
|
496
496
|
userConfig: Wn.value
|
|
497
497
|
})
|
|
498
|
-
}), { svgRef: qn } =
|
|
498
|
+
}), { svgRef: qn } = Se({ config: { text: B.value.title } }), Jn = _(() => B.value.showUserOptionsOnChartHover), Yn = _(() => B.value.keepUserOptionsStateOnChartLeave), Xn = T(!B.value.showUserOptionsOnChartHover), Zn = T(!1);
|
|
499
499
|
function Qn(e = !1) {
|
|
500
500
|
Zn.value = e, Jn.value && (Xn.value = e);
|
|
501
501
|
}
|
|
502
502
|
function $n() {
|
|
503
|
-
let e =
|
|
504
|
-
userConfig:
|
|
505
|
-
defaultConfig:
|
|
506
|
-
}),
|
|
507
|
-
if (
|
|
503
|
+
let e = pe({
|
|
504
|
+
userConfig: N.config,
|
|
505
|
+
defaultConfig: qe
|
|
506
|
+
}), n = {}, r = e.theme;
|
|
507
|
+
if (r) if (!Je.value(e)) Ye(e), n = e;
|
|
508
508
|
else {
|
|
509
|
-
let
|
|
510
|
-
userConfig:
|
|
509
|
+
let a = pe({
|
|
510
|
+
userConfig: we[r] || N.config,
|
|
511
511
|
defaultConfig: e
|
|
512
512
|
});
|
|
513
|
-
|
|
514
|
-
...
|
|
515
|
-
userConfig:
|
|
516
|
-
defaultConfig:
|
|
513
|
+
n = {
|
|
514
|
+
...pe({
|
|
515
|
+
userConfig: N.config,
|
|
516
|
+
defaultConfig: a
|
|
517
517
|
}),
|
|
518
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
518
|
+
customPalette: e.customPalette.length ? e.customPalette : i[r] || t
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
else
|
|
522
|
-
return
|
|
521
|
+
else n = e;
|
|
522
|
+
return n;
|
|
523
523
|
}
|
|
524
|
-
|
|
524
|
+
Le(() => N.config, (e) => {
|
|
525
525
|
U.value || (B.value = $n()), q.value.width = B.value.width, q.value.height = B.value.height, Xn.value = !B.value.showUserOptionsOnChartHover, dr(), cr.value.showTooltip = B.value.showTooltip;
|
|
526
|
-
}, { deep: !0 }),
|
|
527
|
-
G.value = tr.value, X.value.start = 0, X.value.end = G.value.maxSeriesLength,
|
|
528
|
-
}, { deep: !0 }),
|
|
526
|
+
}, { deep: !0 }), Le(() => N.dataset, (e) => {
|
|
527
|
+
G.value = tr.value, X.value.start = 0, X.value.end = G.value.maxSeriesLength, Nn.value += 1;
|
|
528
|
+
}, { deep: !0 }), Le(() => N.dataset, (e) => {
|
|
529
529
|
Array.isArray(e) && e.length > 0 && (Kn.value = !1);
|
|
530
530
|
}, { immediate: !0 });
|
|
531
|
-
let er =
|
|
532
|
-
let e =
|
|
531
|
+
let er = _(() => s(B.value.customPalette)), W = ze, tr = _(() => {
|
|
532
|
+
let e = Be({
|
|
533
533
|
debug: Bn.value,
|
|
534
|
-
dataset:
|
|
534
|
+
dataset: a(Gn.value, [
|
|
535
535
|
"serie",
|
|
536
536
|
"series",
|
|
537
537
|
"data",
|
|
@@ -542,56 +542,56 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
542
542
|
barLineSwitch: B.value.chartIsBarUnderDatasetLength
|
|
543
543
|
});
|
|
544
544
|
return !e && Bn.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
545
|
-
}), G =
|
|
546
|
-
|
|
545
|
+
}), G = T(tr.value), nr = _(() => !!G.value), K = _(() => G.value ? G.value.type : null);
|
|
546
|
+
Le(() => K.value, (e) => {
|
|
547
547
|
e || o({
|
|
548
548
|
componentName: "VueUiQuickChart",
|
|
549
549
|
type: "dataset",
|
|
550
550
|
debug: Bn.value
|
|
551
551
|
});
|
|
552
552
|
}, { immediate: !0 });
|
|
553
|
-
let { isPrinting: rr, isImaging: ir, generatePdf: ar, generateImage: or } =
|
|
554
|
-
elementId: `${K.value}_${
|
|
553
|
+
let { isPrinting: rr, isImaging: ir, generatePdf: ar, generateImage: or } = le({
|
|
554
|
+
elementId: `${K.value}_${F.value}`,
|
|
555
555
|
fileName: B.value.title || K.value,
|
|
556
556
|
options: B.value.userOptionsPrint
|
|
557
|
-
}), sr =
|
|
557
|
+
}), sr = _(() => B.value.showUserOptions && !B.value.title), q = T({
|
|
558
558
|
width: B.value.width,
|
|
559
559
|
height: B.value.height
|
|
560
|
-
}), cr =
|
|
561
|
-
|
|
560
|
+
}), cr = T({ showTooltip: B.value.showTooltip });
|
|
561
|
+
Le(B, () => {
|
|
562
562
|
cr.value = { showTooltip: B.value.showTooltip };
|
|
563
563
|
}, { immediate: !0 });
|
|
564
|
-
let lr =
|
|
565
|
-
|
|
566
|
-
|
|
564
|
+
let lr = Fe(null), ur = Fe(null);
|
|
565
|
+
Pe(async () => {
|
|
566
|
+
Pn.value = !0, dr();
|
|
567
567
|
});
|
|
568
568
|
function dr() {
|
|
569
|
-
if (
|
|
570
|
-
let e =
|
|
571
|
-
let { width: e, height: t } =
|
|
572
|
-
chart:
|
|
573
|
-
title: B.value.title ?
|
|
574
|
-
legend: B.value.showLegend ?
|
|
575
|
-
slicer: [
|
|
576
|
-
source:
|
|
577
|
-
noTitle:
|
|
569
|
+
if (n(N.dataset) || (Kn.value = B.value.loading), B.value.responsive) {
|
|
570
|
+
let e = ve(() => {
|
|
571
|
+
let { width: e, height: t } = ye({
|
|
572
|
+
chart: P.value,
|
|
573
|
+
title: B.value.title ? Tn.value : null,
|
|
574
|
+
legend: B.value.showLegend ? En.value : null,
|
|
575
|
+
slicer: [j.BAR, j.LINE].includes(K.value) && B.value.zoomXy && G.value.maxSeriesLength > 1 ? Dn.value : null,
|
|
576
|
+
source: An.value,
|
|
577
|
+
noTitle: jn.value
|
|
578
578
|
});
|
|
579
579
|
requestAnimationFrame(() => {
|
|
580
580
|
q.value.width = e, q.value.height = t;
|
|
581
581
|
});
|
|
582
582
|
});
|
|
583
|
-
lr.value && (ur.value && lr.value.unobserve(ur.value), lr.value.disconnect()), lr.value = new ResizeObserver(e), ur.value =
|
|
583
|
+
lr.value && (ur.value && lr.value.unobserve(ur.value), lr.value.disconnect()), lr.value = new ResizeObserver(e), ur.value = P.value.parentNode, lr.value.observe(ur.value);
|
|
584
584
|
}
|
|
585
585
|
Tr();
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
Ne(() => {
|
|
588
588
|
lr.value && (ur.value && lr.value.unobserve(ur.value), lr.value.disconnect());
|
|
589
589
|
});
|
|
590
|
-
let fr =
|
|
590
|
+
let fr = _(() => {
|
|
591
591
|
switch (K.value) {
|
|
592
|
-
case
|
|
593
|
-
case
|
|
594
|
-
case
|
|
592
|
+
case j.LINE: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
593
|
+
case j.BAR: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
594
|
+
case j.DONUT: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
595
595
|
default: return `0 0 ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`;
|
|
596
596
|
}
|
|
597
597
|
});
|
|
@@ -599,26 +599,26 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
599
599
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
600
600
|
}
|
|
601
601
|
function mr(e) {
|
|
602
|
-
return B.value.blurOnHover && ![null, void 0].includes(
|
|
602
|
+
return B.value.blurOnHover && ![null, void 0].includes(L.value) && L.value !== e ? `url(#blur_${F.value})` : "";
|
|
603
603
|
}
|
|
604
604
|
function hr() {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}) : K.value ===
|
|
608
|
-
|
|
609
|
-
}) : K.value ===
|
|
610
|
-
|
|
611
|
-
}), K.value ===
|
|
605
|
+
R.value.length ? R.value = [] : K.value === j.DONUT ? Y.value.legend.forEach((e) => {
|
|
606
|
+
R.value.push(e.id);
|
|
607
|
+
}) : K.value === j.LINE ? Z.value.legend.forEach((e) => {
|
|
608
|
+
R.value.push(e.id);
|
|
609
|
+
}) : K.value === j.BAR && Q.value.legend.forEach((e) => {
|
|
610
|
+
R.value.push(e.id);
|
|
611
|
+
}), K.value === j.DONUT ? W("selectLegend", Y.value.dataset) : K.value === j.LINE ? W("selectLegend", Z.value.dataset) : K.value === j.BAR && W("selectLegend", Q.value.dataset);
|
|
612
612
|
}
|
|
613
613
|
function gr(e, t) {
|
|
614
|
-
|
|
614
|
+
R.value.includes(e) ? R.value = R.value.filter((t) => t !== e) : R.value.length < t && R.value.push(e);
|
|
615
615
|
}
|
|
616
|
-
let _r =
|
|
616
|
+
let _r = T(null), vr = T(null), yr = T(!1);
|
|
617
617
|
function br(e, t) {
|
|
618
618
|
yr.value = !0;
|
|
619
619
|
let n = e.value, r = tr.value.dataset.find((t, n) => e.id === `donut_${n}`).VALUE;
|
|
620
|
-
if (
|
|
621
|
-
|
|
620
|
+
if (R.value.includes(e.id)) {
|
|
621
|
+
R.value = R.value.filter((t) => t !== e.id);
|
|
622
622
|
function t() {
|
|
623
623
|
n > r ? (yr.value = !1, cancelAnimationFrame(vr.value), G.value = {
|
|
624
624
|
...G.value,
|
|
@@ -639,7 +639,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
639
639
|
t();
|
|
640
640
|
} else if (t.length > 1) {
|
|
641
641
|
function t() {
|
|
642
|
-
n < r / 100 ? (yr.value = !1, cancelAnimationFrame(_r.value),
|
|
642
|
+
n < r / 100 ? (yr.value = !1, cancelAnimationFrame(_r.value), R.value.push(e.id), G.value = {
|
|
643
643
|
...G.value,
|
|
644
644
|
dataset: G.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
645
645
|
...t,
|
|
@@ -658,24 +658,24 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
658
658
|
t();
|
|
659
659
|
} else W("selectLegend", Y.value.dataset);
|
|
660
660
|
}
|
|
661
|
-
let J =
|
|
661
|
+
let J = T(null);
|
|
662
662
|
function xr(e) {
|
|
663
663
|
J.value = e;
|
|
664
664
|
}
|
|
665
|
-
let Sr =
|
|
666
|
-
if (K.value !==
|
|
665
|
+
let Sr = _(() => B.value.donutThicknessRatio < .01 ? .01 : B.value.donutThicknessRatio > .4 ? .4 : B.value.donutThicknessRatio), Y = _(() => {
|
|
666
|
+
if (K.value !== j.DONUT) return null;
|
|
667
667
|
let e = G.value.dataset.map((e, t) => ({
|
|
668
668
|
...e,
|
|
669
669
|
value: e.VALUE || e.DATA || e.SERIE || e.VALUES || e.NUM || 0,
|
|
670
670
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
671
671
|
id: `donut_${t}`
|
|
672
|
-
})).map((e,
|
|
672
|
+
})).map((e, n) => ({
|
|
673
673
|
...e,
|
|
674
|
-
color: e.COLOR ?
|
|
674
|
+
color: e.COLOR ? ne(e.COLOR) : er.value[n + B.value.paletteStartIndex] || t[n + B.value.paletteStartIndex] || t[(n + B.value.paletteStartIndex) % t.length],
|
|
675
675
|
immutableValue: e.value
|
|
676
676
|
}));
|
|
677
677
|
function n(e, t) {
|
|
678
|
-
return
|
|
678
|
+
return m({
|
|
679
679
|
v: isNaN(e.value / pr(t)) ? 0 : e.value / pr(t) * 100,
|
|
680
680
|
s: "%",
|
|
681
681
|
r: B.value.dataLabelRoundingPercentage
|
|
@@ -689,22 +689,22 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
689
689
|
return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
|
|
690
690
|
}
|
|
691
691
|
function a({ datapoint: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
692
|
-
|
|
692
|
+
On.value = {
|
|
693
693
|
datapoint: t,
|
|
694
694
|
seriesIndex: n,
|
|
695
695
|
config: B.value,
|
|
696
696
|
dataset: e
|
|
697
|
-
},
|
|
697
|
+
}, L.value = t.id, V.value = n, H.value = r;
|
|
698
698
|
let i = B.value.tooltipCustomFormat;
|
|
699
699
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
700
700
|
datapoint: t,
|
|
701
701
|
seriesIndex: n
|
|
702
|
-
}),
|
|
702
|
+
}), te(i) && u(() => i({
|
|
703
703
|
datapoint: t,
|
|
704
704
|
seriesIndex: n,
|
|
705
705
|
series: e,
|
|
706
706
|
config: B.value
|
|
707
|
-
})))
|
|
707
|
+
}))) kn.value = i({
|
|
708
708
|
datapoint: t,
|
|
709
709
|
seriesIndex: n,
|
|
710
710
|
series: e,
|
|
@@ -712,7 +712,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
712
712
|
});
|
|
713
713
|
else {
|
|
714
714
|
let e = "";
|
|
715
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${B.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, e += `<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="${t.color}"/></svg>`, e += `<b>${f(B.value.formatter, t.value,
|
|
715
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${B.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, e += `<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="${t.color}"/></svg>`, e += `<b>${f(B.value.formatter, t.value, m({
|
|
716
716
|
p: B.value.valuePrefix,
|
|
717
717
|
v: t.value,
|
|
718
718
|
s: B.value.valueSuffix,
|
|
@@ -720,19 +720,19 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
720
720
|
}), {
|
|
721
721
|
datapoint: t,
|
|
722
722
|
seriesIndex: n
|
|
723
|
-
})}</b>`, e += `<span>(${
|
|
723
|
+
})}</b>`, e += `<span>(${m({
|
|
724
724
|
v: t.proportion * 100,
|
|
725
725
|
s: "%",
|
|
726
726
|
r: B.value.dataLabelRoundingPercentage
|
|
727
|
-
})})</span></div>`,
|
|
727
|
+
})})</span></div>`, kn.value = `<div>${e}</div>`;
|
|
728
728
|
}
|
|
729
|
-
|
|
729
|
+
I.value = !0;
|
|
730
730
|
}
|
|
731
731
|
function o({ datapoint: e, seriesIndex: t }) {
|
|
732
732
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
733
733
|
datapoint: e,
|
|
734
734
|
seriesIndex: t
|
|
735
|
-
}),
|
|
735
|
+
}), I.value = !1, L.value = null, J.value = null, V.value = null, H.value = "pointer";
|
|
736
736
|
}
|
|
737
737
|
function s({ datapoint: e, seriesIndex: t }) {
|
|
738
738
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
@@ -743,16 +743,16 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
743
743
|
let c = {
|
|
744
744
|
centerX: q.value.width / 2,
|
|
745
745
|
centerY: q.value.height / 2
|
|
746
|
-
}, l = e.filter((e) => !
|
|
746
|
+
}, l = e.filter((e) => !R.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0), d = e.map((e, t) => ({
|
|
747
747
|
...e,
|
|
748
748
|
proportion: (e.value || 0) / l,
|
|
749
749
|
value: e.value || 0,
|
|
750
750
|
absoluteValue: tr.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
|
|
751
751
|
shape: "circle"
|
|
752
|
-
})),
|
|
752
|
+
})), re = q.value.width / 2, p = q.value.height / 2, ie = q.value.height * B.value.donutRadiusRatio;
|
|
753
753
|
return {
|
|
754
|
-
dataset:
|
|
755
|
-
legend:
|
|
754
|
+
dataset: d.filter((e) => !R.value.includes(e.id)),
|
|
755
|
+
legend: d,
|
|
756
756
|
drawingArea: c,
|
|
757
757
|
displayArcPercentage: n,
|
|
758
758
|
isArcBigEnough: r,
|
|
@@ -761,40 +761,40 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
761
761
|
selectDatapoint: s,
|
|
762
762
|
getSpaces: i,
|
|
763
763
|
total: l,
|
|
764
|
-
cx:
|
|
764
|
+
cx: re,
|
|
765
765
|
cy: p,
|
|
766
|
-
radius:
|
|
767
|
-
chart:
|
|
766
|
+
radius: ie,
|
|
767
|
+
chart: ee({ series: e.filter((e) => !R.value.includes(e.id)) }, re, p, ie, ie, 1.99999, 2, 1, 360, 105.25, q.value.height * Sr.value)
|
|
768
768
|
};
|
|
769
|
-
}), X =
|
|
769
|
+
}), X = T({
|
|
770
770
|
start: 0,
|
|
771
771
|
end: G.value.maxSeriesLength
|
|
772
772
|
});
|
|
773
773
|
function Cr() {
|
|
774
774
|
Tr();
|
|
775
775
|
}
|
|
776
|
-
let wr =
|
|
776
|
+
let wr = T(null);
|
|
777
777
|
async function Tr() {
|
|
778
|
-
await
|
|
778
|
+
await je(), await je();
|
|
779
779
|
let { zoomStartIndex: e, zoomEndIndex: t } = B.value, n = wr.value;
|
|
780
780
|
(e != null || t != null) && n ? (e != null && n.setStartValue(e), t != null && n.setEndValue(Er(t + 1))) : (X.value = {
|
|
781
781
|
start: 0,
|
|
782
782
|
end: G.value.maxSeriesLength
|
|
783
|
-
},
|
|
783
|
+
}, Nn.value += 1);
|
|
784
784
|
}
|
|
785
785
|
function Er(e) {
|
|
786
786
|
let t = G.value.maxSeriesLength;
|
|
787
787
|
return e > t ? t : e < 0 || B.value.zoomStartIndex !== null && e < B.value.zoomStartIndex ? B.value.zoomStartIndex === null ? 1 : B.value.zoomStartIndex + 1 : e;
|
|
788
788
|
}
|
|
789
|
-
let Dr =
|
|
790
|
-
if (!B.value.zoomMinimap.show || K.value ===
|
|
789
|
+
let Dr = _(() => {
|
|
790
|
+
if (!B.value.zoomMinimap.show || K.value === j.DONUT) return [];
|
|
791
791
|
let e = [];
|
|
792
|
-
|
|
792
|
+
M(G.value.dataset) && (e = G.value.dataset), Ue(G.value.dataset) && (e = G.value.dataset.map((e, t) => ({
|
|
793
793
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
794
|
-
id: K.value ===
|
|
795
|
-
})).filter((e) => !
|
|
796
|
-
let t =
|
|
797
|
-
if (
|
|
794
|
+
id: K.value === j.LINE ? `line_${t}` : `bar_${t}`
|
|
795
|
+
})).filter((e) => !R.value.includes(e.id)));
|
|
796
|
+
let t = M(e) ? e.length : Math.max(...e.map((e) => e.values.length)), n = [];
|
|
797
|
+
if (M(e)) n = e;
|
|
798
798
|
else for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.values[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
799
799
|
let r = Math.min(...n);
|
|
800
800
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
@@ -806,73 +806,73 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
806
806
|
return n > e ? n : e;
|
|
807
807
|
}, 0)), e + 4;
|
|
808
808
|
}
|
|
809
|
-
let kr =
|
|
809
|
+
let kr = T(0), Ar = ve((e) => {
|
|
810
810
|
kr.value = e;
|
|
811
811
|
}, 100);
|
|
812
|
-
|
|
813
|
-
let t =
|
|
812
|
+
Re((e) => {
|
|
813
|
+
let t = z.value;
|
|
814
814
|
if (!t) return;
|
|
815
815
|
let n = new ResizeObserver((e) => {
|
|
816
816
|
Ar(e[0].contentRect.height);
|
|
817
817
|
});
|
|
818
818
|
n.observe(t), e(() => n.disconnect());
|
|
819
|
-
}),
|
|
819
|
+
}), Ne(() => {
|
|
820
820
|
kr.value = 0;
|
|
821
821
|
});
|
|
822
|
-
let jr =
|
|
822
|
+
let jr = _(() => {
|
|
823
823
|
let e = 0;
|
|
824
|
-
return
|
|
825
|
-
}), Z =
|
|
826
|
-
if (K.value !==
|
|
824
|
+
return z.value && (e = kr.value), 0 + e;
|
|
825
|
+
}), Z = _(() => {
|
|
826
|
+
if (K.value !== j.LINE) return null;
|
|
827
827
|
let e = {
|
|
828
828
|
height: q.value.height,
|
|
829
829
|
width: q.value.width
|
|
830
|
-
},
|
|
831
|
-
if (
|
|
832
|
-
let e =
|
|
833
|
-
e < 0 && (
|
|
830
|
+
}, n = Or();
|
|
831
|
+
if (z.value) {
|
|
832
|
+
let e = z.value.getBBox().x;
|
|
833
|
+
e < 0 && (n += Math.abs(e));
|
|
834
834
|
}
|
|
835
|
-
let
|
|
836
|
-
left:
|
|
835
|
+
let r = {
|
|
836
|
+
left: n + B.value.xyPaddingLeft,
|
|
837
837
|
top: B.value.xyPaddingTop,
|
|
838
838
|
right: e.width - B.value.xyPaddingRight,
|
|
839
839
|
bottom: e.height - B.value.xyPaddingBottom - jr.value,
|
|
840
|
-
width: Math.max(10, e.width - B.value.xyPaddingLeft - B.value.xyPaddingRight -
|
|
840
|
+
width: Math.max(10, e.width - B.value.xyPaddingLeft - B.value.xyPaddingRight - n),
|
|
841
841
|
height: Math.max(10, e.height - B.value.xyPaddingTop - B.value.xyPaddingBottom - jr.value)
|
|
842
|
-
},
|
|
843
|
-
|
|
842
|
+
}, i = [];
|
|
843
|
+
M(G.value.dataset) && (i = [{
|
|
844
844
|
values: G.value.dataset.slice(X.value.start, X.value.end),
|
|
845
845
|
absoluteValues: G.value.dataset,
|
|
846
846
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
847
847
|
name: B.value.title,
|
|
848
|
-
color: er.value[B.value.paletteStartIndex] ||
|
|
848
|
+
color: er.value[B.value.paletteStartIndex] || t[B.value.paletteStartIndex],
|
|
849
849
|
id: "line_0"
|
|
850
|
-
}]),
|
|
850
|
+
}]), Ue(G.value.dataset) && (i = G.value.dataset.map((e, t) => ({
|
|
851
851
|
...e,
|
|
852
852
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
853
853
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
854
854
|
id: `line_${t}`
|
|
855
|
-
})).map((e,
|
|
855
|
+
})).map((e, n) => ({
|
|
856
856
|
...e,
|
|
857
|
-
color: e.COLOR ?
|
|
857
|
+
color: e.COLOR ? ne(e.COLOR) : er.value[n + B.value.paletteStartIndex] || t[n + B.value.paletteStartIndex] || t[(n + B.value.paletteStartIndex) % t.length],
|
|
858
858
|
values: e.values.slice(X.value.start, X.value.end),
|
|
859
859
|
absoluteValues: e.values,
|
|
860
860
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
861
861
|
})));
|
|
862
|
-
let
|
|
863
|
-
max: Math.max(...
|
|
864
|
-
min: Math.min(...
|
|
865
|
-
maxSeries: Math.max(...
|
|
866
|
-
},
|
|
867
|
-
y:
|
|
868
|
-
x:
|
|
862
|
+
let a = {
|
|
863
|
+
max: Math.max(...i.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)),
|
|
864
|
+
min: Math.min(...i.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)),
|
|
865
|
+
maxSeries: Math.max(...i.map((e) => e.values.length))
|
|
866
|
+
}, o = a.max === a.min ? re(a.min, a.min + 1, B.value.xyScaleSegments) : re(a.min < 0 ? a.min : 0, a.max < 0 ? 0 : a.max, B.value.xyScaleSegments), s = a.min < 0 ? Math.abs(a.min) : 0, ee = a.max < 0 ? r.top : r.bottom - s / (o.max + s) * r.height, c = r.width / a.maxSeries, l = o.ticks.map((e) => ({
|
|
867
|
+
y: r.bottom - r.height * ((e + s) / (o.max + s)),
|
|
868
|
+
x: r.left - 8,
|
|
869
869
|
value: e
|
|
870
|
-
})),
|
|
870
|
+
})), d = i.map((e, t) => ({
|
|
871
871
|
...e,
|
|
872
872
|
shape: "circle",
|
|
873
873
|
coordinates: e.values.map((e, t) => ({
|
|
874
|
-
x:
|
|
875
|
-
y:
|
|
874
|
+
x: r.left + c * (t + 1) - c / 2,
|
|
875
|
+
y: r.bottom - (e + s) / (o.max + s) * r.height,
|
|
876
876
|
value: e
|
|
877
877
|
}))
|
|
878
878
|
})).map((e) => {
|
|
@@ -885,34 +885,34 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
885
885
|
};
|
|
886
886
|
});
|
|
887
887
|
function p(e) {
|
|
888
|
-
return
|
|
888
|
+
return i.map((t) => ({
|
|
889
889
|
...t,
|
|
890
890
|
value: t.values[e],
|
|
891
891
|
absoluteIndex: t.absoluteIndices[e]
|
|
892
|
-
})).filter((e) => !
|
|
892
|
+
})).filter((e) => !R.value.includes(e.id));
|
|
893
893
|
}
|
|
894
|
-
function
|
|
895
|
-
|
|
894
|
+
function ie(e, t = "pointer") {
|
|
895
|
+
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
896
896
|
let n = p(e);
|
|
897
|
-
|
|
897
|
+
On.value = {
|
|
898
898
|
datapoint: n,
|
|
899
899
|
seriesIndex: e,
|
|
900
900
|
config: B.value,
|
|
901
|
-
dataset:
|
|
901
|
+
dataset: i
|
|
902
902
|
};
|
|
903
|
-
let
|
|
903
|
+
let r = B.value.tooltipCustomFormat;
|
|
904
904
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
905
905
|
datapoint: n,
|
|
906
906
|
seriesIndex: e + X.value.start
|
|
907
|
-
}),
|
|
907
|
+
}), te(r) && u(() => r({
|
|
908
908
|
datapoint: n,
|
|
909
909
|
seriesIndex: e,
|
|
910
|
-
series:
|
|
910
|
+
series: i,
|
|
911
911
|
config: B.value
|
|
912
|
-
})))
|
|
912
|
+
}))) kn.value = r({
|
|
913
913
|
datapoint: n,
|
|
914
914
|
seriesIndex: e,
|
|
915
|
-
series:
|
|
915
|
+
series: i,
|
|
916
916
|
config: B.value
|
|
917
917
|
});
|
|
918
918
|
else {
|
|
@@ -922,7 +922,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
922
922
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
923
923
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>
|
|
924
924
|
<span>${t.name}:</span>
|
|
925
|
-
<b>${f(B.value.formatter, t.value,
|
|
925
|
+
<b>${f(B.value.formatter, t.value, m({
|
|
926
926
|
p: B.value.valuePrefix,
|
|
927
927
|
v: t.value,
|
|
928
928
|
s: B.value.valueSuffix,
|
|
@@ -934,18 +934,18 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
934
934
|
</b>
|
|
935
935
|
</div>
|
|
936
936
|
`;
|
|
937
|
-
}),
|
|
937
|
+
}), kn.value = e;
|
|
938
938
|
}
|
|
939
|
-
|
|
939
|
+
I.value = !0;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function ae(e) {
|
|
942
942
|
let t = p(e);
|
|
943
943
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
944
944
|
datapoint: t,
|
|
945
945
|
seriesIndex: e + X.value.start
|
|
946
|
-
}),
|
|
946
|
+
}), L.value = null, J.value = null, I.value = !1, V.value = null, H.value = "pointer";
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function oe(e) {
|
|
949
949
|
let t = p(e);
|
|
950
950
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
951
951
|
datapoint: t,
|
|
@@ -953,117 +953,117 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
953
953
|
}), W("selectDatapoint", t);
|
|
954
954
|
}
|
|
955
955
|
return {
|
|
956
|
-
absoluteZero:
|
|
957
|
-
dataset:
|
|
958
|
-
legend:
|
|
959
|
-
drawingArea:
|
|
960
|
-
extremes:
|
|
956
|
+
absoluteZero: ee,
|
|
957
|
+
dataset: d.filter((e) => !R.value.includes(e.id)),
|
|
958
|
+
legend: d,
|
|
959
|
+
drawingArea: r,
|
|
960
|
+
extremes: a,
|
|
961
961
|
slotSize: c,
|
|
962
962
|
yLabels: l,
|
|
963
|
-
useTooltip:
|
|
964
|
-
killTooltip:
|
|
965
|
-
selectDatapoint:
|
|
963
|
+
useTooltip: ie,
|
|
964
|
+
killTooltip: ae,
|
|
965
|
+
selectDatapoint: oe
|
|
966
966
|
};
|
|
967
|
-
}), Q =
|
|
968
|
-
if (K.value !==
|
|
967
|
+
}), Q = _(() => {
|
|
968
|
+
if (K.value !== j.BAR) return null;
|
|
969
969
|
let e = {
|
|
970
970
|
height: q.value.height,
|
|
971
971
|
width: q.value.width
|
|
972
|
-
},
|
|
973
|
-
if (
|
|
974
|
-
let e =
|
|
975
|
-
e < 0 && (
|
|
972
|
+
}, n = Or();
|
|
973
|
+
if (z.value) {
|
|
974
|
+
let e = z.value.getBBox().x;
|
|
975
|
+
e < 0 && (n += Math.abs(e));
|
|
976
976
|
}
|
|
977
|
-
let
|
|
978
|
-
left:
|
|
977
|
+
let r = {
|
|
978
|
+
left: n + B.value.xyPaddingLeft,
|
|
979
979
|
top: B.value.xyPaddingTop,
|
|
980
980
|
right: e.width - B.value.xyPaddingRight,
|
|
981
981
|
bottom: e.height - B.value.xyPaddingBottom - jr.value,
|
|
982
|
-
width: Math.max(10, e.width - B.value.xyPaddingLeft - B.value.xyPaddingRight -
|
|
982
|
+
width: Math.max(10, e.width - B.value.xyPaddingLeft - B.value.xyPaddingRight - n),
|
|
983
983
|
height: Math.max(10, e.height - B.value.xyPaddingTop - B.value.xyPaddingBottom - jr.value)
|
|
984
|
-
},
|
|
985
|
-
|
|
984
|
+
}, i = [];
|
|
985
|
+
M(G.value.dataset) && (i = [{
|
|
986
986
|
values: G.value.dataset.slice(X.value.start, X.value.end),
|
|
987
987
|
absoluteValues: G.value.dataset,
|
|
988
988
|
absoluteIndices: G.value.dataset.map((e, t) => t).slice(X.value.start, X.value.end),
|
|
989
989
|
name: B.value.title,
|
|
990
|
-
color: er.value[B.value.paletteStartIndex] ||
|
|
990
|
+
color: er.value[B.value.paletteStartIndex] || t[B.value.paletteStartIndex],
|
|
991
991
|
id: "bar_0"
|
|
992
|
-
}]),
|
|
992
|
+
}]), Ue(G.value.dataset) && (i = G.value.dataset.map((e, t) => ({
|
|
993
993
|
...e,
|
|
994
994
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
995
995
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
996
996
|
id: `bar_${t}`
|
|
997
|
-
})).map((e,
|
|
997
|
+
})).map((e, n) => ({
|
|
998
998
|
...e,
|
|
999
|
-
color: e.COLOR ?
|
|
999
|
+
color: e.COLOR ? ne(e.COLOR) : er.value[n + B.value.paletteStartIndex] || t[n + B.value.paletteStartIndex] || t[(n + B.value.paletteStartIndex) % t.length],
|
|
1000
1000
|
values: e.values.slice(X.value.start, X.value.end),
|
|
1001
1001
|
absoluteValues: e.values,
|
|
1002
1002
|
absoluteIndices: e.values.map((e, t) => t).slice(X.value.start, X.value.end)
|
|
1003
1003
|
})));
|
|
1004
|
-
let
|
|
1005
|
-
max: Math.max(...
|
|
1006
|
-
min: Math.min(...
|
|
1007
|
-
maxSeries: Math.max(...
|
|
1008
|
-
},
|
|
1009
|
-
y:
|
|
1010
|
-
x:
|
|
1004
|
+
let a = {
|
|
1005
|
+
max: Math.max(...i.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)) < 0 ? 0 : Math.max(...i.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)) ?? 1,
|
|
1006
|
+
min: Math.min(...i.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values)) ?? 0,
|
|
1007
|
+
maxSeries: Math.max(...i.filter((e) => !R.value.includes(e.id)).map((e) => e.values.length)) ?? 0
|
|
1008
|
+
}, o = a.min === a.max ? re(a.min, a.min + 1, B.value.xyScaleSegments) : re(a.min < 0 ? a.min : 0, a.max, B.value.xyScaleSegments), s = o.min < 0 ? Math.abs(o.min) : 0, ee = r.bottom - s / (o.max + s) * r.height, c = r.width / a.maxSeries, l = o.ticks.map((e) => ({
|
|
1009
|
+
y: r.bottom - r.height * ((e + s) / (o.max + s)),
|
|
1010
|
+
x: r.left - 8,
|
|
1011
1011
|
value: e
|
|
1012
|
-
})),
|
|
1012
|
+
})), d = i.map((e, t) => ({
|
|
1013
1013
|
...e,
|
|
1014
1014
|
shape: "square",
|
|
1015
|
-
coordinates: e.values.map((e,
|
|
1016
|
-
let
|
|
1015
|
+
coordinates: e.values.map((e, n) => {
|
|
1016
|
+
let o = (e + s) / (a.max + s) * r.height, l = Math.abs(e) / Math.abs(a.min) * (r.height - ee), te = s / (a.max + s) * r.height, u = c / i.filter((e) => !R.value.includes(e.id)).length - B.value.barGap / i.filter((e) => !R.value.includes(e.id)).length;
|
|
1017
1017
|
return {
|
|
1018
|
-
x:
|
|
1019
|
-
y: e > 0 ?
|
|
1020
|
-
height: e > 0 ?
|
|
1018
|
+
x: r.left + c * n + u * t + B.value.barGap / 2,
|
|
1019
|
+
y: e > 0 ? r.bottom - o : ee,
|
|
1020
|
+
height: e > 0 ? o - te : l,
|
|
1021
1021
|
value: e,
|
|
1022
|
-
width:
|
|
1022
|
+
width: u
|
|
1023
1023
|
};
|
|
1024
1024
|
})
|
|
1025
|
-
})), p =
|
|
1025
|
+
})), p = i.filter((e) => !R.value.includes(e.id)).map((e, t) => ({
|
|
1026
1026
|
...e,
|
|
1027
|
-
coordinates: e.values.map((e,
|
|
1028
|
-
let
|
|
1027
|
+
coordinates: e.values.map((e, n) => {
|
|
1028
|
+
let o = (e + s) / (a.max + s) * r.height, l = Math.abs(e) / (a.max + s) * r.height, te = s / (a.max + s) * r.height, u = c / i.filter((e) => !R.value.includes(e.id)).length - B.value.barGap / i.filter((e) => !R.value.includes(e.id)).length;
|
|
1029
1029
|
return {
|
|
1030
|
-
x:
|
|
1031
|
-
y: e > 0 ?
|
|
1032
|
-
height: e > 0 ?
|
|
1030
|
+
x: r.left + c * n + u * t + B.value.barGap / 2,
|
|
1031
|
+
y: e > 0 ? r.bottom - o : ee,
|
|
1032
|
+
height: e > 0 ? o - te : l,
|
|
1033
1033
|
value: e,
|
|
1034
|
-
width:
|
|
1034
|
+
width: u
|
|
1035
1035
|
};
|
|
1036
1036
|
})
|
|
1037
1037
|
}));
|
|
1038
|
-
function
|
|
1039
|
-
return
|
|
1038
|
+
function ie(e) {
|
|
1039
|
+
return i.map((t) => ({
|
|
1040
1040
|
...t,
|
|
1041
1041
|
value: t.values[e],
|
|
1042
1042
|
absoluteIndex: t.absoluteIndices[e]
|
|
1043
|
-
})).filter((e) => !
|
|
1043
|
+
})).filter((e) => !R.value.includes(e.id));
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1046
|
-
|
|
1047
|
-
let n =
|
|
1048
|
-
|
|
1045
|
+
function ae(e, t = "pointer") {
|
|
1046
|
+
L.value = e, J.value = e, V.value = e, H.value = t;
|
|
1047
|
+
let n = ie(e);
|
|
1048
|
+
On.value = {
|
|
1049
1049
|
datapoint: n,
|
|
1050
1050
|
seriesIndex: e,
|
|
1051
1051
|
config: B.value,
|
|
1052
|
-
dataset:
|
|
1052
|
+
dataset: i
|
|
1053
1053
|
};
|
|
1054
|
-
let
|
|
1054
|
+
let r = B.value.tooltipCustomFormat;
|
|
1055
1055
|
if (B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
1056
1056
|
datapoint: n,
|
|
1057
1057
|
seriesIndex: e + X.value.start
|
|
1058
|
-
}),
|
|
1058
|
+
}), te(r) && u(() => r({
|
|
1059
1059
|
datapoint: n,
|
|
1060
1060
|
seriesIndex: e,
|
|
1061
|
-
series:
|
|
1061
|
+
series: i,
|
|
1062
1062
|
config: B.value
|
|
1063
|
-
})))
|
|
1063
|
+
}))) kn.value = r({
|
|
1064
1064
|
point: n,
|
|
1065
1065
|
seriesIndex: e,
|
|
1066
|
-
series:
|
|
1066
|
+
series: i,
|
|
1067
1067
|
config: B.value
|
|
1068
1068
|
});
|
|
1069
1069
|
else {
|
|
@@ -1073,7 +1073,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1073
1073
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
1074
1074
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${t.color}"/></svg>
|
|
1075
1075
|
<span>${t.name}:</span>
|
|
1076
|
-
<b>${f(B.value.formatter, t.value,
|
|
1076
|
+
<b>${f(B.value.formatter, t.value, m({
|
|
1077
1077
|
p: B.value.valuePrefix,
|
|
1078
1078
|
v: t.value,
|
|
1079
1079
|
s: B.value.valueSuffix,
|
|
@@ -1085,36 +1085,36 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1085
1085
|
</b>
|
|
1086
1086
|
</div>
|
|
1087
1087
|
`;
|
|
1088
|
-
}),
|
|
1088
|
+
}), kn.value = e;
|
|
1089
1089
|
}
|
|
1090
|
-
|
|
1090
|
+
I.value = !0;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1093
|
-
let t =
|
|
1092
|
+
function oe(e) {
|
|
1093
|
+
let t = ie(e);
|
|
1094
1094
|
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
1095
1095
|
datapoint: t,
|
|
1096
1096
|
seriesIndex: e + X.value.start
|
|
1097
|
-
}),
|
|
1097
|
+
}), I.value = !1, L.value = null, J.value = null, V.value = null, H.value = "pointer";
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
let t =
|
|
1099
|
+
function h(e) {
|
|
1100
|
+
let t = ie(e);
|
|
1101
1101
|
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
1102
1102
|
datapoint: t,
|
|
1103
1103
|
seriesIndex: e + X.value.start
|
|
1104
1104
|
}), W("selectDatapoint", t);
|
|
1105
1105
|
}
|
|
1106
1106
|
return {
|
|
1107
|
-
absoluteZero:
|
|
1108
|
-
dataset: p.filter((e) => !
|
|
1107
|
+
absoluteZero: ee,
|
|
1108
|
+
dataset: p.filter((e) => !R.value.includes(e.id)),
|
|
1109
1109
|
absoluteDataset: p,
|
|
1110
|
-
legend:
|
|
1111
|
-
drawingArea:
|
|
1112
|
-
extremes:
|
|
1110
|
+
legend: d,
|
|
1111
|
+
drawingArea: r,
|
|
1112
|
+
extremes: a,
|
|
1113
1113
|
slotSize: c,
|
|
1114
1114
|
yLabels: l,
|
|
1115
|
-
useTooltip:
|
|
1116
|
-
killTooltip:
|
|
1117
|
-
selectDatapoint:
|
|
1115
|
+
useTooltip: ae,
|
|
1116
|
+
killTooltip: oe,
|
|
1117
|
+
selectDatapoint: h
|
|
1118
1118
|
};
|
|
1119
1119
|
});
|
|
1120
1120
|
function Mr(e) {
|
|
@@ -1161,52 +1161,52 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1161
1161
|
}
|
|
1162
1162
|
return a.push(o), a;
|
|
1163
1163
|
}
|
|
1164
|
-
function Lr({ pathDuration: e, pathEasing: t = "ease-in-out", pointDuration: n, labelDuration: r, pointDelay: i = 0, labelDelay: a = 0, pointStep: o = 0, labelStep: s = 0, intraSeriesStep:
|
|
1165
|
-
let
|
|
1166
|
-
|
|
1164
|
+
function Lr({ pathDuration: e, pathEasing: t = "ease-in-out", pointDuration: n, labelDuration: r, pointDelay: i = 0, labelDelay: a = 0, pointStep: o = 0, labelStep: s = 0, intraSeriesStep: ee = 0 } = {}) {
|
|
1165
|
+
let c = Array.isArray(Fn?.value) ? Fn.value : [Fn?.value].filter(Boolean), l = Array.isArray(In?.value) ? In.value : [In?.value].filter(Boolean), te = [...c, ...l].filter(Boolean), u = P?.value || null, ne = u ? Array.from(u.querySelectorAll(".vue-ui-quick-chart-plot")) : [], d = u ? Array.from(u.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
1166
|
+
te.forEach(Mr), Nr(ne, {
|
|
1167
1167
|
fromOpacity: "0",
|
|
1168
1168
|
fromScale: "0.75"
|
|
1169
|
-
}), Nr(
|
|
1169
|
+
}), Nr(d, {
|
|
1170
1170
|
fromOpacity: "0",
|
|
1171
1171
|
fromScale: "0.98"
|
|
1172
|
-
}),
|
|
1173
|
-
let
|
|
1172
|
+
}), ne.forEach((e) => e.classList.remove("quick-animation")), d.forEach((e) => e.classList.remove("quick-animation")), u && u.offsetWidth;
|
|
1173
|
+
let re = ne.length ? Ir(ne, Pr) : [], f = d.length ? Ir(d, Fr) : [];
|
|
1174
1174
|
requestAnimationFrame(() => {
|
|
1175
1175
|
requestAnimationFrame(() => {
|
|
1176
|
-
|
|
1176
|
+
te.forEach((n) => {
|
|
1177
1177
|
n.style.transition = `stroke-dashoffset ${e}ms ${t}`, n.style.strokeDashoffset = "0";
|
|
1178
|
-
}),
|
|
1178
|
+
}), re.forEach((e, t) => {
|
|
1179
1179
|
e.items.forEach((e, r) => {
|
|
1180
|
-
let a = i + t * o + r *
|
|
1180
|
+
let a = i + t * o + r * ee;
|
|
1181
1181
|
e.style.transition = `opacity ${n}ms ease-out ${a}ms, transform ${n}ms ease-out ${a}ms`, e.style.opacity = "1", e.style.transform = "scale(1)";
|
|
1182
1182
|
});
|
|
1183
|
-
}),
|
|
1183
|
+
}), f.forEach((e, t) => {
|
|
1184
1184
|
e.items.forEach((e, n) => {
|
|
1185
|
-
let i = a + t * s + n *
|
|
1185
|
+
let i = a + t * s + n * ee;
|
|
1186
1186
|
e.style.transition = `opacity ${r}ms ease-out ${i}ms, transform ${r}ms ease-out ${i}ms`, e.style.opacity = "1", e.style.transform = "scale(1)";
|
|
1187
1187
|
});
|
|
1188
1188
|
});
|
|
1189
1189
|
});
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
|
-
let Rr =
|
|
1193
|
-
if (K.value ===
|
|
1192
|
+
let Rr = _(() => {
|
|
1193
|
+
if (K.value === j.LINE) return Z.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
|
|
1194
1194
|
...e,
|
|
1195
|
-
isVisible: !
|
|
1195
|
+
isVisible: !R.value.includes(e.id),
|
|
1196
1196
|
type: "line",
|
|
1197
1197
|
series: e.absoluteValues
|
|
1198
1198
|
}));
|
|
1199
|
-
if (K.value ===
|
|
1199
|
+
if (K.value === j.BAR) return Q.value.legend.map((e) => (Math.min(...e.absoluteValues.map((e) => e ?? 0)), {
|
|
1200
1200
|
...e,
|
|
1201
|
-
isVisible: !
|
|
1201
|
+
isVisible: !R.value.includes(e.id),
|
|
1202
1202
|
type: "bar",
|
|
1203
1203
|
series: e.absoluteValues
|
|
1204
1204
|
}));
|
|
1205
|
-
}), $ =
|
|
1206
|
-
|
|
1205
|
+
}), $ = T([]), zr = 0;
|
|
1206
|
+
Re(() => {
|
|
1207
1207
|
let e = ++zr;
|
|
1208
1208
|
(async () => {
|
|
1209
|
-
let t = await
|
|
1209
|
+
let t = await se({
|
|
1210
1210
|
values: B.value.xyPeriods,
|
|
1211
1211
|
maxDatapoints: G.value.maxSeriesLength,
|
|
1212
1212
|
formatter: B.value.datetimeFormatter,
|
|
@@ -1216,24 +1216,24 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1216
1216
|
e === zr && ($.value = t);
|
|
1217
1217
|
})();
|
|
1218
1218
|
});
|
|
1219
|
-
let Br =
|
|
1219
|
+
let Br = _(() => {
|
|
1220
1220
|
let e = B.value.xyPeriodsModulo;
|
|
1221
1221
|
return B.value.xyPeriods.length ? Math.min(e, [...new Set($.value.map((e) => e.text))].length) : e;
|
|
1222
|
-
}), Vr =
|
|
1222
|
+
}), Vr = T(!1);
|
|
1223
1223
|
function Hr(e) {
|
|
1224
|
-
Vr.value = e,
|
|
1224
|
+
Vr.value = e, Mn.value += 1;
|
|
1225
1225
|
}
|
|
1226
1226
|
function Ur() {
|
|
1227
1227
|
cr.value.showTooltip = !cr.value.showTooltip;
|
|
1228
1228
|
}
|
|
1229
|
-
let Wr =
|
|
1229
|
+
let Wr = T(!1);
|
|
1230
1230
|
function Gr() {
|
|
1231
1231
|
Wr.value = !Wr.value;
|
|
1232
1232
|
}
|
|
1233
1233
|
async function Kr({ scale: e = 2 } = {}) {
|
|
1234
|
-
if (!
|
|
1235
|
-
let { width: t, height: n } =
|
|
1236
|
-
domElement:
|
|
1234
|
+
if (!P.value) return;
|
|
1235
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
|
|
1236
|
+
domElement: P.value,
|
|
1237
1237
|
base64: !0,
|
|
1238
1238
|
img: !0,
|
|
1239
1239
|
scale: e
|
|
@@ -1247,9 +1247,9 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1247
1247
|
aspectRatio: r
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
let qr =
|
|
1251
|
-
|
|
1252
|
-
timeLabelsEls:
|
|
1250
|
+
let qr = _(() => q.value.width), Jr = _(() => q.value.height);
|
|
1251
|
+
he({
|
|
1252
|
+
timeLabelsEls: z,
|
|
1253
1253
|
timeLabels: $,
|
|
1254
1254
|
slicer: X,
|
|
1255
1255
|
configRef: B,
|
|
@@ -1260,16 +1260,16 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1260
1260
|
height: Jr.value,
|
|
1261
1261
|
width: qr.value
|
|
1262
1262
|
});
|
|
1263
|
-
let Yr =
|
|
1263
|
+
let Yr = _(() => B.value.backgroundColor), Xr = _(() => K.value === j.DONUT ? Y.value.legend : K.value === j.LINE ? Z.value.legend : Q.value.legend), Zr = _(() => ({
|
|
1264
1264
|
show: B.value.showLegend,
|
|
1265
1265
|
bold: !1,
|
|
1266
1266
|
backgroundColor: B.value.backgroundColor,
|
|
1267
1267
|
color: B.value.color,
|
|
1268
1268
|
fontSize: B.value.legendFontSize,
|
|
1269
1269
|
position: B.value.legendPosition
|
|
1270
|
-
})), { exportSvg: Qr, getSvg: $r } =
|
|
1270
|
+
})), { exportSvg: Qr, getSvg: $r } = fe({
|
|
1271
1271
|
svg: qn,
|
|
1272
|
-
title:
|
|
1272
|
+
title: _(() => ({
|
|
1273
1273
|
text: B.value.title,
|
|
1274
1274
|
color: B.value.color,
|
|
1275
1275
|
fontSize: B.value.titleFontSize,
|
|
@@ -1316,24 +1316,24 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1316
1316
|
function ni(e, t) {
|
|
1317
1317
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
1318
1318
|
}
|
|
1319
|
-
let ri =
|
|
1319
|
+
let ri = _(() => K.value === j.DONUT ? Y.value?.chart?.length ?? 0 : K.value === j.LINE ? Z.value?.extremes?.maxSeries ?? 0 : K.value === j.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
|
|
1320
1320
|
function ii() {
|
|
1321
1321
|
V.value = null, Un.value = !0;
|
|
1322
1322
|
}
|
|
1323
1323
|
function ai() {
|
|
1324
|
-
V.value = null, H.value = "pointer",
|
|
1324
|
+
V.value = null, H.value = "pointer", I.value = !1, L.value = null, J.value = null, Un.value = !1;
|
|
1325
1325
|
}
|
|
1326
1326
|
function oi(e) {
|
|
1327
1327
|
if (!qn.value || Wr.value || document.activeElement !== qn.value || !ri.value) return;
|
|
1328
1328
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1329
1329
|
if (!t && !n && !r && !i) return;
|
|
1330
1330
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1331
|
-
V.value = null, H.value = "pointer",
|
|
1331
|
+
V.value = null, H.value = "pointer", I.value = !1, L.value = null, J.value = null;
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
1334
|
if (r) {
|
|
1335
1335
|
if (V.value === null) return;
|
|
1336
|
-
if (K.value ===
|
|
1336
|
+
if (K.value === j.DONUT) {
|
|
1337
1337
|
let e = Y.value?.chart?.[V.value];
|
|
1338
1338
|
if (!e) return;
|
|
1339
1339
|
Y.value.selectDatapoint({
|
|
@@ -1342,18 +1342,18 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1342
1342
|
});
|
|
1343
1343
|
return;
|
|
1344
1344
|
}
|
|
1345
|
-
if (K.value ===
|
|
1345
|
+
if (K.value === j.LINE) {
|
|
1346
1346
|
Z.value?.selectDatapoint(V.value);
|
|
1347
1347
|
return;
|
|
1348
1348
|
}
|
|
1349
|
-
if (K.value ===
|
|
1349
|
+
if (K.value === j.BAR) {
|
|
1350
1350
|
Q.value?.selectDatapoint(V.value);
|
|
1351
1351
|
return;
|
|
1352
1352
|
}
|
|
1353
1353
|
return;
|
|
1354
1354
|
}
|
|
1355
|
-
let a = V.value, o = J.value, s = a !== null && a >= 0 && a < ri.value,
|
|
1356
|
-
if (s ? n ? (a += 1, a >= ri.value && (a = 0)) : t && (--a, a < 0 && (a = ri.value - 1)) :
|
|
1355
|
+
let a = V.value, o = J.value, s = a !== null && a >= 0 && a < ri.value, ee = o !== null && o >= 0 && o < ri.value;
|
|
1356
|
+
if (s ? n ? (a += 1, a >= ri.value && (a = 0)) : t && (--a, a < 0 && (a = ri.value - 1)) : ee ? (a = n ? o + 1 : o - 1, a >= ri.value && (a = 0), a < 0 && (a = ri.value - 1)) : a = n ? 0 : ri.value - 1, K.value === j.DONUT) {
|
|
1357
1357
|
let e = Y.value?.chart?.[a];
|
|
1358
1358
|
if (!e) return;
|
|
1359
1359
|
si(a), Y.value.useTooltip({
|
|
@@ -1363,26 +1363,26 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1363
1363
|
});
|
|
1364
1364
|
return;
|
|
1365
1365
|
}
|
|
1366
|
-
if (K.value ===
|
|
1366
|
+
if (K.value === j.LINE) {
|
|
1367
1367
|
si(a), Z.value?.useTooltip(a, "keyboard");
|
|
1368
1368
|
return;
|
|
1369
1369
|
}
|
|
1370
|
-
K.value ===
|
|
1370
|
+
K.value === j.BAR && (si(a), Q.value?.useTooltip(a, "keyboard"));
|
|
1371
1371
|
}
|
|
1372
1372
|
function si(e) {
|
|
1373
1373
|
if (!Number.isFinite(e) || !qn.value) return;
|
|
1374
1374
|
let t = 0, n = 0;
|
|
1375
|
-
if (K.value ===
|
|
1375
|
+
if (K.value === j.DONUT) {
|
|
1376
1376
|
let r = Y.value?.chart?.[e];
|
|
1377
1377
|
if (!r) return;
|
|
1378
|
-
t =
|
|
1378
|
+
t = oe(r, !0).x, n = d(r);
|
|
1379
1379
|
}
|
|
1380
|
-
if (K.value ===
|
|
1380
|
+
if (K.value === j.LINE) {
|
|
1381
1381
|
let r = Z.value?.drawingArea, i = Z.value?.slotSize;
|
|
1382
1382
|
if (!r || !i) return;
|
|
1383
1383
|
t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
|
|
1384
1384
|
}
|
|
1385
|
-
if (K.value ===
|
|
1385
|
+
if (K.value === j.BAR) {
|
|
1386
1386
|
let r = Q.value?.drawingArea, i = Q.value?.slotSize;
|
|
1387
1387
|
if (!r || !i) return;
|
|
1388
1388
|
t = r.left + i * (e + 1) - i / 2, n = r.top + r.height / 2;
|
|
@@ -1393,22 +1393,22 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1393
1393
|
y: r.top + n / q.value.height * r.height
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
let ci =
|
|
1397
|
-
if (K.value ===
|
|
1396
|
+
let ci = _(() => {
|
|
1397
|
+
if (K.value === j.DONUT) return {
|
|
1398
1398
|
headers: [
|
|
1399
1399
|
"Series",
|
|
1400
1400
|
"Value",
|
|
1401
1401
|
"Percentage"
|
|
1402
1402
|
],
|
|
1403
1403
|
rows: (Y.value?.dataset ?? []).map((e) => {
|
|
1404
|
-
let t = Y.value?.total ?
|
|
1404
|
+
let t = Y.value?.total ? m({
|
|
1405
1405
|
v: e.value / Y.value.total * 100,
|
|
1406
1406
|
s: "%",
|
|
1407
1407
|
r: B.value.dataLabelRoundingPercentage
|
|
1408
1408
|
}) : "0%";
|
|
1409
1409
|
return [
|
|
1410
1410
|
e.name,
|
|
1411
|
-
f(B.value.formatter, e.value,
|
|
1411
|
+
f(B.value.formatter, e.value, m({
|
|
1412
1412
|
p: B.value.valuePrefix,
|
|
1413
1413
|
v: e.value,
|
|
1414
1414
|
s: B.value.valueSuffix,
|
|
@@ -1418,13 +1418,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1418
1418
|
];
|
|
1419
1419
|
})
|
|
1420
1420
|
};
|
|
1421
|
-
if (K.value ===
|
|
1422
|
-
let e = K.value ===
|
|
1421
|
+
if (K.value === j.LINE || K.value === j.BAR) {
|
|
1422
|
+
let e = K.value === j.LINE ? Z.value?.dataset ?? [] : Q.value?.dataset ?? [], t = K.value === j.LINE ? Z.value?.extremes?.maxSeries ?? 0 : Q.value?.extremes?.maxSeries ?? 0;
|
|
1423
1423
|
return {
|
|
1424
1424
|
headers: ["Index", ...e.map((e) => e.name)],
|
|
1425
1425
|
rows: Array.from({ length: t }, (t, n) => [$.value?.[n + X.value.start]?.text ?? String(n + X.value.start), ...e.map((e) => {
|
|
1426
1426
|
let t = e.values?.[n];
|
|
1427
|
-
return f(B.value.formatter, t,
|
|
1427
|
+
return f(B.value.formatter, t, m({
|
|
1428
1428
|
p: B.value.valuePrefix,
|
|
1429
1429
|
v: t,
|
|
1430
1430
|
s: B.value.valueSuffix,
|
|
@@ -1438,7 +1438,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1438
1438
|
rows: []
|
|
1439
1439
|
};
|
|
1440
1440
|
});
|
|
1441
|
-
return
|
|
1441
|
+
return _e({
|
|
1442
1442
|
getImage: Kr,
|
|
1443
1443
|
generatePdf: ar,
|
|
1444
1444
|
generateImage: or,
|
|
@@ -1447,27 +1447,27 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1447
1447
|
toggleAnnotator: Gr,
|
|
1448
1448
|
toggleFullscreen: Hr,
|
|
1449
1449
|
copyAlt: ti
|
|
1450
|
-
}), (e, t) => nr.value ? (
|
|
1450
|
+
}), (e, t) => nr.value ? (w(), y("div", {
|
|
1451
1451
|
key: 0,
|
|
1452
|
-
id: `${K.value}_${
|
|
1452
|
+
id: `${K.value}_${F.value}`,
|
|
1453
1453
|
ref_key: "quickChart",
|
|
1454
|
-
ref:
|
|
1455
|
-
class:
|
|
1454
|
+
ref: P,
|
|
1455
|
+
class: Me({
|
|
1456
1456
|
"vue-data-ui-component": !0,
|
|
1457
1457
|
"vue-ui-quick-chart": !0,
|
|
1458
1458
|
"vue-data-ui-wrapper-fullscreen": Vr.value
|
|
1459
1459
|
}),
|
|
1460
|
-
style:
|
|
1460
|
+
style: C(`background:${B.value.backgroundColor};color:${B.value.color};font-family:${B.value.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
|
|
1461
1461
|
onMouseenter: t[2] ||= () => Qn(!0),
|
|
1462
1462
|
onMouseleave: t[3] ||= () => Qn(!1)
|
|
1463
1463
|
}, [
|
|
1464
|
-
|
|
1465
|
-
id: `chart-instructions-${
|
|
1464
|
+
b("div", {
|
|
1465
|
+
id: `chart-instructions-${F.value}`,
|
|
1466
1466
|
class: "sr-only"
|
|
1467
|
-
}, [
|
|
1468
|
-
ci.value.rows.length ? (
|
|
1467
|
+
}, [b("p", null, O(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
|
|
1468
|
+
ci.value.rows.length ? (w(), Ee(xe, {
|
|
1469
1469
|
key: 0,
|
|
1470
|
-
uid:
|
|
1470
|
+
uid: F.value,
|
|
1471
1471
|
head: ci.value.headers,
|
|
1472
1472
|
body: ci.value.rows,
|
|
1473
1473
|
notice: B.value.a11y.translations.tableAvailable,
|
|
@@ -1478,22 +1478,22 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1478
1478
|
"body",
|
|
1479
1479
|
"notice",
|
|
1480
1480
|
"caption"
|
|
1481
|
-
])) :
|
|
1482
|
-
B.value.userOptionsButtons.annotator ? (
|
|
1481
|
+
])) : v("", !0),
|
|
1482
|
+
B.value.userOptionsButtons.annotator ? (w(), Ee(k(We), {
|
|
1483
1483
|
key: 1,
|
|
1484
|
-
svgRef:
|
|
1484
|
+
svgRef: k(qn),
|
|
1485
1485
|
backgroundColor: B.value.backgroundColor,
|
|
1486
1486
|
color: B.value.color,
|
|
1487
1487
|
active: Wr.value,
|
|
1488
1488
|
isCursorPointer: Vn.value,
|
|
1489
1489
|
onClose: Gr
|
|
1490
1490
|
}, {
|
|
1491
|
-
"annotator-action-close":
|
|
1492
|
-
"annotator-action-color":
|
|
1493
|
-
"annotator-action-draw":
|
|
1494
|
-
"annotator-action-undo":
|
|
1495
|
-
"annotator-action-redo":
|
|
1496
|
-
"annotator-action-delete":
|
|
1491
|
+
"annotator-action-close": A(() => [D(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1492
|
+
"annotator-action-color": A(({ color: t }) => [D(e.$slots, "annotator-action-color", S(x({ color: t })), void 0, !0)]),
|
|
1493
|
+
"annotator-action-draw": A(({ mode: t }) => [D(e.$slots, "annotator-action-draw", S(x({ mode: t })), void 0, !0)]),
|
|
1494
|
+
"annotator-action-undo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-undo", S(x({ disabled: t })), void 0, !0)]),
|
|
1495
|
+
"annotator-action-redo": A(({ disabled: t }) => [D(e.$slots, "annotator-action-redo", S(x({ disabled: t })), void 0, !0)]),
|
|
1496
|
+
"annotator-action-delete": A(({ disabled: t }) => [D(e.$slots, "annotator-action-delete", S(x({ disabled: t })), void 0, !0)]),
|
|
1497
1497
|
_: 3
|
|
1498
1498
|
}, 8, [
|
|
1499
1499
|
"svgRef",
|
|
@@ -1501,22 +1501,22 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1501
1501
|
"color",
|
|
1502
1502
|
"active",
|
|
1503
1503
|
"isCursorPointer"
|
|
1504
|
-
])) :
|
|
1505
|
-
sr.value ? (
|
|
1504
|
+
])) : v("", !0),
|
|
1505
|
+
sr.value ? (w(), y("div", {
|
|
1506
1506
|
key: 2,
|
|
1507
1507
|
ref_key: "noTitle",
|
|
1508
|
-
ref:
|
|
1508
|
+
ref: jn,
|
|
1509
1509
|
class: "vue-data-ui-no-title-space",
|
|
1510
1510
|
style: "height:36px; width: 100%;background:transparent"
|
|
1511
|
-
}, null, 512)) :
|
|
1512
|
-
B.value.showUserOptions && (Yn.value || Xn.value) ? (
|
|
1511
|
+
}, null, 512)) : v("", !0),
|
|
1512
|
+
B.value.showUserOptions && (Yn.value || Xn.value) ? (w(), Ee(k(Ke), {
|
|
1513
1513
|
ref: "details",
|
|
1514
|
-
key: `user_option_${
|
|
1514
|
+
key: `user_option_${Mn.value}`,
|
|
1515
1515
|
backgroundColor: B.value.backgroundColor,
|
|
1516
1516
|
color: B.value.color,
|
|
1517
|
-
isPrinting:
|
|
1518
|
-
isImaging:
|
|
1519
|
-
uid:
|
|
1517
|
+
isPrinting: k(rr),
|
|
1518
|
+
isImaging: k(ir),
|
|
1519
|
+
uid: F.value,
|
|
1520
1520
|
hasTooltip: B.value.userOptionsButtons.tooltip && B.value.showTooltip,
|
|
1521
1521
|
hasPdf: B.value.userOptionsButtons.pdf,
|
|
1522
1522
|
hasImg: B.value.userOptionsButtons.img,
|
|
@@ -1527,7 +1527,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1527
1527
|
isTooltip: cr.value.showTooltip,
|
|
1528
1528
|
isFullscreen: Vr.value,
|
|
1529
1529
|
titles: { ...B.value.userOptionsButtonTitles },
|
|
1530
|
-
chartElement:
|
|
1530
|
+
chartElement: P.value,
|
|
1531
1531
|
position: B.value.userOptionsPosition,
|
|
1532
1532
|
hasAnnotator: B.value.userOptionsButtons.annotator,
|
|
1533
1533
|
isAnnotation: Wr.value,
|
|
@@ -1535,17 +1535,17 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1535
1535
|
printScale: B.value.userOptionsPrint.scale,
|
|
1536
1536
|
isCursorPointer: Vn.value,
|
|
1537
1537
|
onToggleFullscreen: Hr,
|
|
1538
|
-
onGeneratePdf:
|
|
1539
|
-
onGenerateImage:
|
|
1538
|
+
onGeneratePdf: k(ar),
|
|
1539
|
+
onGenerateImage: k(or),
|
|
1540
1540
|
onGenerateSvg: ei,
|
|
1541
1541
|
onToggleTooltip: Ur,
|
|
1542
1542
|
onToggleAnnotator: Gr,
|
|
1543
1543
|
onCopyAlt: ti,
|
|
1544
|
-
style:
|
|
1545
|
-
},
|
|
1544
|
+
style: C({ visibility: Yn.value ? Xn.value ? "visible" : "hidden" : "visible" })
|
|
1545
|
+
}, De({ _: 2 }, [
|
|
1546
1546
|
e.$slots.menuIcon ? {
|
|
1547
1547
|
name: "menuIcon",
|
|
1548
|
-
fn:
|
|
1548
|
+
fn: A(({ isOpen: t, color: n }) => [D(e.$slots, "menuIcon", S(x({
|
|
1549
1549
|
isOpen: t,
|
|
1550
1550
|
color: n
|
|
1551
1551
|
})), void 0, !0)]),
|
|
@@ -1553,27 +1553,27 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1553
1553
|
} : void 0,
|
|
1554
1554
|
e.$slots.optionTooltip ? {
|
|
1555
1555
|
name: "optionTooltip",
|
|
1556
|
-
fn:
|
|
1556
|
+
fn: A(() => [D(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1557
1557
|
key: "1"
|
|
1558
1558
|
} : void 0,
|
|
1559
1559
|
e.$slots.optionPdf ? {
|
|
1560
1560
|
name: "optionPdf",
|
|
1561
|
-
fn:
|
|
1561
|
+
fn: A(() => [D(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1562
1562
|
key: "2"
|
|
1563
1563
|
} : void 0,
|
|
1564
1564
|
e.$slots.optionImg ? {
|
|
1565
1565
|
name: "optionImg",
|
|
1566
|
-
fn:
|
|
1566
|
+
fn: A(() => [D(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1567
1567
|
key: "3"
|
|
1568
1568
|
} : void 0,
|
|
1569
1569
|
e.$slots.optionSvg ? {
|
|
1570
1570
|
name: "optionSvg",
|
|
1571
|
-
fn:
|
|
1571
|
+
fn: A(() => [D(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1572
1572
|
key: "4"
|
|
1573
1573
|
} : void 0,
|
|
1574
1574
|
e.$slots.optionFullscreen ? {
|
|
1575
1575
|
name: "optionFullscreen",
|
|
1576
|
-
fn:
|
|
1576
|
+
fn: A(({ toggleFullscreen: t, isFullscreen: n }) => [D(e.$slots, "optionFullscreen", S(x({
|
|
1577
1577
|
toggleFullscreen: t,
|
|
1578
1578
|
isFullscreen: n
|
|
1579
1579
|
})), void 0, !0)]),
|
|
@@ -1581,7 +1581,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1581
1581
|
} : void 0,
|
|
1582
1582
|
e.$slots.optionAnnotator ? {
|
|
1583
1583
|
name: "optionAnnotator",
|
|
1584
|
-
fn:
|
|
1584
|
+
fn: A(({ toggleAnnotator: t, isAnnotator: n }) => [D(e.$slots, "optionAnnotator", S(x({
|
|
1585
1585
|
toggleAnnotator: t,
|
|
1586
1586
|
isAnnotator: n
|
|
1587
1587
|
})), void 0, !0)]),
|
|
@@ -1589,17 +1589,17 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1589
1589
|
} : void 0,
|
|
1590
1590
|
e.$slots.optionAltCopy ? {
|
|
1591
1591
|
name: "optionAltCopy",
|
|
1592
|
-
fn:
|
|
1592
|
+
fn: A(({ altCopy: t }) => [D(e.$slots, "optionAltCopy", S(x({ altCopy: t })), void 0, !0)]),
|
|
1593
1593
|
key: "7"
|
|
1594
1594
|
} : void 0,
|
|
1595
1595
|
e.$slots["custom-menu-before"] ? {
|
|
1596
1596
|
name: "custom-menu-before",
|
|
1597
|
-
fn:
|
|
1597
|
+
fn: A(() => [D(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1598
1598
|
key: "8"
|
|
1599
1599
|
} : void 0,
|
|
1600
1600
|
e.$slots["custom-menu-after"] ? {
|
|
1601
1601
|
name: "custom-menu-after",
|
|
1602
|
-
fn:
|
|
1602
|
+
fn: A(() => [D(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1603
1603
|
key: "9"
|
|
1604
1604
|
} : void 0
|
|
1605
1605
|
]), 1032, [
|
|
@@ -1627,80 +1627,80 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1627
1627
|
"onGeneratePdf",
|
|
1628
1628
|
"onGenerateImage",
|
|
1629
1629
|
"style"
|
|
1630
|
-
])) :
|
|
1631
|
-
B.value.title ? (
|
|
1630
|
+
])) : v("", !0),
|
|
1631
|
+
B.value.title ? (w(), y("div", {
|
|
1632
1632
|
key: 4,
|
|
1633
1633
|
ref_key: "quickChartTitle",
|
|
1634
|
-
ref:
|
|
1634
|
+
ref: Tn,
|
|
1635
1635
|
class: "vue-ui-quick-chart-title",
|
|
1636
|
-
style:
|
|
1637
|
-
},
|
|
1638
|
-
|
|
1639
|
-
|
|
1636
|
+
style: C(`background:transparent;color:${B.value.color};font-size:${B.value.titleFontSize}px;font-weight:${B.value.titleBold ? "bold" : "normal"};text-align:${B.value.titleTextAlign}`)
|
|
1637
|
+
}, O(B.value.title), 5)) : v("", !0),
|
|
1638
|
+
b("div", { id: `legend-top-${F.value}` }, null, 8, Qe),
|
|
1639
|
+
b("div", $e, [K.value ? (w(), y("svg", {
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
ref_key: "svgRef",
|
|
1642
1642
|
ref: qn,
|
|
1643
|
-
xmlns:
|
|
1644
|
-
"aria-describedby": `chart-instructions-${
|
|
1643
|
+
xmlns: k(ae),
|
|
1644
|
+
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1645
1645
|
viewBox: fr.value,
|
|
1646
|
-
style:
|
|
1646
|
+
style: C(`max-width:100%;overflow:visible;background:transparent;color:${B.value.color}`),
|
|
1647
1647
|
tabindex: "0",
|
|
1648
1648
|
onFocus: ii,
|
|
1649
1649
|
onBlur: ai,
|
|
1650
1650
|
onKeydown: oi
|
|
1651
1651
|
}, [
|
|
1652
|
-
|
|
1653
|
-
e.$slots["chart-background"] && K.value ===
|
|
1652
|
+
Oe(k(He)),
|
|
1653
|
+
e.$slots["chart-background"] && K.value === j.BAR ? (w(), y("foreignObject", {
|
|
1654
1654
|
key: 0,
|
|
1655
1655
|
x: Q.value.drawingArea.left,
|
|
1656
1656
|
y: Q.value.drawingArea.top,
|
|
1657
1657
|
width: Q.value.drawingArea.width,
|
|
1658
1658
|
height: Q.value.drawingArea.height,
|
|
1659
1659
|
style: { pointerEvents: "none" }
|
|
1660
|
-
}, [
|
|
1661
|
-
e.$slots["chart-background"] && K.value ===
|
|
1660
|
+
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : v("", !0),
|
|
1661
|
+
e.$slots["chart-background"] && K.value === j.LINE ? (w(), y("foreignObject", {
|
|
1662
1662
|
key: 1,
|
|
1663
1663
|
x: Z.value.drawingArea.left,
|
|
1664
1664
|
y: Z.value.drawingArea.top,
|
|
1665
1665
|
width: Z.value.drawingArea.width,
|
|
1666
1666
|
height: Z.value.drawingArea.height,
|
|
1667
1667
|
style: { pointerEvents: "none" }
|
|
1668
|
-
}, [
|
|
1669
|
-
e.$slots["chart-background"] && K.value ===
|
|
1668
|
+
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : v("", !0),
|
|
1669
|
+
e.$slots["chart-background"] && K.value === j.DONUT ? (w(), y("foreignObject", {
|
|
1670
1670
|
key: 2,
|
|
1671
1671
|
x: 0,
|
|
1672
1672
|
y: 0,
|
|
1673
1673
|
width: q.value.width,
|
|
1674
1674
|
height: q.value.height,
|
|
1675
1675
|
style: { pointerEvents: "none" }
|
|
1676
|
-
}, [
|
|
1677
|
-
|
|
1678
|
-
id: `blur_${
|
|
1676
|
+
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : v("", !0),
|
|
1677
|
+
b("defs", null, [b("filter", {
|
|
1678
|
+
id: `blur_${F.value}`,
|
|
1679
1679
|
x: "-50%",
|
|
1680
1680
|
y: "-50%",
|
|
1681
1681
|
width: "200%",
|
|
1682
1682
|
height: "200%"
|
|
1683
|
-
}, [
|
|
1683
|
+
}, [b("feGaussianBlur", {
|
|
1684
1684
|
in: "SourceGraphic",
|
|
1685
1685
|
stdDeviation: 2,
|
|
1686
|
-
id: `blur_std_${
|
|
1687
|
-
}, null, 8,
|
|
1686
|
+
id: `blur_std_${F.value}`
|
|
1687
|
+
}, null, 8, at), t[4] ||= b("feColorMatrix", {
|
|
1688
1688
|
type: "saturate",
|
|
1689
1689
|
values: "0"
|
|
1690
|
-
}, null, -1)], 8,
|
|
1691
|
-
id: `shadow_${
|
|
1690
|
+
}, null, -1)], 8, it), b("filter", {
|
|
1691
|
+
id: `shadow_${F.value}`,
|
|
1692
1692
|
"color-interpolation-filters": "sRGB"
|
|
1693
|
-
}, [
|
|
1693
|
+
}, [b("feDropShadow", {
|
|
1694
1694
|
dx: "0",
|
|
1695
1695
|
dy: "0",
|
|
1696
1696
|
stdDeviation: "10",
|
|
1697
1697
|
"flood-opacity": "0.5",
|
|
1698
1698
|
"flood-color": B.value.donutShadowColor
|
|
1699
|
-
}, null, 8,
|
|
1700
|
-
K.value ===
|
|
1701
|
-
B.value.showDataLabels ? (
|
|
1699
|
+
}, null, 8, st)], 8, ot)]),
|
|
1700
|
+
K.value === j.DONUT ? (w(), y(g, { key: 3 }, [
|
|
1701
|
+
B.value.showDataLabels ? (w(), y("g", ct, [(w(!0), y(g, null, E(Y.value.chart, (e, t) => (w(), y(g, null, [Y.value.isArcBigEnough(e) ? (w(), y("path", {
|
|
1702
1702
|
key: 0,
|
|
1703
|
-
d:
|
|
1703
|
+
d: k(ie)(e, {
|
|
1704
1704
|
x: q.value.width / 2,
|
|
1705
1705
|
y: q.value.height / 2
|
|
1706
1706
|
}, 16, 16, !1, !1, q.value.height * Sr.value, 12, B.value.donutCurvedMarkers),
|
|
@@ -1710,21 +1710,21 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1710
1710
|
"stroke-linejoin": "round",
|
|
1711
1711
|
fill: "none",
|
|
1712
1712
|
filter: mr(e.id)
|
|
1713
|
-
}, null, 8,
|
|
1714
|
-
|
|
1713
|
+
}, null, 8, lt)) : v("", !0)], 64))), 256))])) : v("", !0),
|
|
1714
|
+
b("circle", {
|
|
1715
1715
|
cx: Y.value.cx,
|
|
1716
1716
|
cy: Y.value.cy,
|
|
1717
1717
|
r: Y.value.radius,
|
|
1718
1718
|
fill: B.value.backgroundColor,
|
|
1719
|
-
filter: B.value.donutUseShadow ? `url(#shadow_${
|
|
1720
|
-
}, null, 8,
|
|
1721
|
-
|
|
1719
|
+
filter: B.value.donutUseShadow ? `url(#shadow_${F.value})` : ""
|
|
1720
|
+
}, null, 8, ut),
|
|
1721
|
+
b("g", dt, [(w(!0), y(g, null, E(Y.value.chart, (e, t) => (w(), y("path", {
|
|
1722
1722
|
d: e.arcSlice,
|
|
1723
1723
|
fill: e.color,
|
|
1724
1724
|
stroke: B.value.donutStroke || B.value.backgroundColor,
|
|
1725
1725
|
"stroke-width": B.value.donutStrokeWidth,
|
|
1726
1726
|
filter: mr(e.id)
|
|
1727
|
-
}, null, 8,
|
|
1727
|
+
}, null, 8, ft))), 256)), (w(!0), y(g, null, E(Y.value.chart, (e, t) => (w(), y("path", {
|
|
1728
1728
|
d: e.arcSlice,
|
|
1729
1729
|
fill: "transparent",
|
|
1730
1730
|
onMouseenter: (n) => Y.value.useTooltip({
|
|
@@ -1740,27 +1740,27 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1740
1740
|
datapoint: e,
|
|
1741
1741
|
seriesIndex: t
|
|
1742
1742
|
})
|
|
1743
|
-
}, null, 40,
|
|
1744
|
-
B.value.showDataLabels ? (
|
|
1745
|
-
Y.value.isArcBigEnough(e) ? (
|
|
1743
|
+
}, null, 40, pt))), 256))]),
|
|
1744
|
+
B.value.showDataLabels ? (w(), y("g", mt, [(w(!0), y(g, null, E(Y.value.chart, (e, t) => (w(), y(g, null, [
|
|
1745
|
+
Y.value.isArcBigEnough(e) ? (w(), y("circle", {
|
|
1746
1746
|
key: 0,
|
|
1747
|
-
cx:
|
|
1748
|
-
cy:
|
|
1747
|
+
cx: k(oe)(e).x,
|
|
1748
|
+
cy: k(d)(e) - 3.7,
|
|
1749
1749
|
fill: e.color,
|
|
1750
1750
|
stroke: B.value.backgroundColor,
|
|
1751
1751
|
"stroke-width": 1,
|
|
1752
1752
|
r: 3,
|
|
1753
1753
|
filter: mr(e.id)
|
|
1754
|
-
}, null, 8,
|
|
1755
|
-
Y.value.isArcBigEnough(e) ? (
|
|
1754
|
+
}, null, 8, ht)) : v("", !0),
|
|
1755
|
+
Y.value.isArcBigEnough(e) ? (w(), y("text", {
|
|
1756
1756
|
key: 1,
|
|
1757
|
-
"text-anchor":
|
|
1758
|
-
x:
|
|
1759
|
-
y:
|
|
1757
|
+
"text-anchor": k(oe)(e, !0, 20).anchor,
|
|
1758
|
+
x: k(oe)(e, !0).x,
|
|
1759
|
+
y: k(d)(e),
|
|
1760
1760
|
fill: B.value.color,
|
|
1761
1761
|
"font-size": B.value.dataLabelFontSize,
|
|
1762
1762
|
filter: mr(e.id)
|
|
1763
|
-
},
|
|
1763
|
+
}, O(Y.value.displayArcPercentage(e, Y.value.chart)) + " (" + O(k(f)(B.value.formatter, e.value, k(m)({
|
|
1764
1764
|
p: B.value.valuePrefix,
|
|
1765
1765
|
v: e.value,
|
|
1766
1766
|
s: B.value.valueSuffix,
|
|
@@ -1768,38 +1768,38 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1768
1768
|
}), {
|
|
1769
1769
|
datapoint: e,
|
|
1770
1770
|
seriesIndex: t
|
|
1771
|
-
})) + ") ", 9,
|
|
1772
|
-
Y.value.isArcBigEnough(e, !0, 20) ? (
|
|
1771
|
+
})) + ") ", 9, gt)) : v("", !0),
|
|
1772
|
+
Y.value.isArcBigEnough(e, !0, 20) ? (w(), y("text", {
|
|
1773
1773
|
key: 2,
|
|
1774
|
-
"text-anchor":
|
|
1775
|
-
x:
|
|
1776
|
-
y:
|
|
1774
|
+
"text-anchor": k(oe)(e).anchor,
|
|
1775
|
+
x: k(oe)(e, !0).x,
|
|
1776
|
+
y: k(d)(e) + B.value.dataLabelFontSize,
|
|
1777
1777
|
fill: B.value.color,
|
|
1778
1778
|
"font-size": B.value.dataLabelFontSize,
|
|
1779
1779
|
filter: mr(e.id)
|
|
1780
|
-
},
|
|
1781
|
-
], 64))), 256))])) :
|
|
1782
|
-
B.value.donutShowTotal ? (
|
|
1780
|
+
}, O(e.name), 9, _t)) : v("", !0)
|
|
1781
|
+
], 64))), 256))])) : v("", !0),
|
|
1782
|
+
B.value.donutShowTotal ? (w(), y("g", vt, [b("text", {
|
|
1783
1783
|
"text-anchor": "middle",
|
|
1784
1784
|
x: Y.value.drawingArea.centerX,
|
|
1785
1785
|
y: Y.value.drawingArea.centerY - B.value.donutTotalLabelFontSize / 2,
|
|
1786
1786
|
"font-size": B.value.donutTotalLabelFontSize,
|
|
1787
1787
|
fill: B.value.color
|
|
1788
|
-
},
|
|
1788
|
+
}, O(B.value.donutTotalLabelText), 9, yt), b("text", {
|
|
1789
1789
|
"text-anchor": "middle",
|
|
1790
1790
|
x: Y.value.drawingArea.centerX,
|
|
1791
1791
|
y: Y.value.drawingArea.centerY + B.value.donutTotalLabelFontSize,
|
|
1792
1792
|
"font-size": B.value.donutTotalLabelFontSize,
|
|
1793
1793
|
fill: B.value.color
|
|
1794
|
-
}, k(
|
|
1794
|
+
}, O(k(m)({
|
|
1795
1795
|
p: B.value.valuePrefix,
|
|
1796
1796
|
v: Y.value.total,
|
|
1797
1797
|
s: B.value.valueSuffix,
|
|
1798
1798
|
r: B.value.dataLabelRoundingValue
|
|
1799
|
-
})), 9,
|
|
1800
|
-
], 64)) :
|
|
1801
|
-
K.value ===
|
|
1802
|
-
B.value.xyShowGrid ? (
|
|
1799
|
+
})), 9, bt)])) : v("", !0)
|
|
1800
|
+
], 64)) : v("", !0),
|
|
1801
|
+
K.value === j.LINE ? (w(), y(g, { key: 4 }, [
|
|
1802
|
+
B.value.xyShowGrid ? (w(), y("g", xt, [(w(!0), y(g, null, E(Z.value.yLabels, (e) => (w(), y(g, null, [e.y <= Z.value.drawingArea.bottom ? (w(), y("line", {
|
|
1803
1803
|
key: 0,
|
|
1804
1804
|
x1: Z.value.drawingArea.left,
|
|
1805
1805
|
x2: Z.value.drawingArea.right,
|
|
@@ -1808,7 +1808,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1808
1808
|
stroke: B.value.xyGridStroke,
|
|
1809
1809
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
1810
1810
|
"stroke-linecap": "round"
|
|
1811
|
-
}, null, 8,
|
|
1811
|
+
}, null, 8, St)) : v("", !0)], 64))), 256)), (w(!0), y(g, null, E(Z.value.extremes.maxSeries + 1, (e, t) => (w(), y("line", {
|
|
1812
1812
|
x1: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1813
1813
|
x2: Z.value.drawingArea.left + Z.value.slotSize * t,
|
|
1814
1814
|
y1: Z.value.drawingArea.top,
|
|
@@ -1816,8 +1816,8 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1816
1816
|
stroke: B.value.xyGridStroke,
|
|
1817
1817
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
1818
1818
|
"stroke-linecap": "round"
|
|
1819
|
-
}, null, 8,
|
|
1820
|
-
B.value.xyShowAxis ? (
|
|
1819
|
+
}, null, 8, Ct))), 256))])) : v("", !0),
|
|
1820
|
+
B.value.xyShowAxis ? (w(), y("g", wt, [b("line", {
|
|
1821
1821
|
x1: Z.value.drawingArea.left,
|
|
1822
1822
|
x2: Z.value.drawingArea.left,
|
|
1823
1823
|
y1: Z.value.drawingArea.top,
|
|
@@ -1825,7 +1825,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1825
1825
|
stroke: B.value.xyAxisStroke,
|
|
1826
1826
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1827
1827
|
"stroke-linecap": "round"
|
|
1828
|
-
}, null, 8,
|
|
1828
|
+
}, null, 8, Tt), b("line", {
|
|
1829
1829
|
x1: Z.value.drawingArea.left,
|
|
1830
1830
|
x2: Z.value.drawingArea.right,
|
|
1831
1831
|
y1: isNaN(Z.value.absoluteZero) ? Z.value.drawingArea.bottom : Z.value.absoluteZero,
|
|
@@ -1833,13 +1833,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1833
1833
|
stroke: B.value.xyAxisStroke,
|
|
1834
1834
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1835
1835
|
"stroke-linecap": "round"
|
|
1836
|
-
}, null, 8,
|
|
1837
|
-
B.value.xyShowScale ? (
|
|
1836
|
+
}, null, 8, Et)])) : v("", !0),
|
|
1837
|
+
B.value.xyShowScale ? (w(), y("g", {
|
|
1838
1838
|
key: 2,
|
|
1839
1839
|
class: "yLabels",
|
|
1840
1840
|
ref_key: "scaleLabels",
|
|
1841
1841
|
ref: Ln
|
|
1842
|
-
}, [(
|
|
1842
|
+
}, [(w(!0), y(g, null, E(Z.value.yLabels, (e, t) => (w(), y(g, null, [e.y <= Z.value.drawingArea.bottom ? (w(), y("line", {
|
|
1843
1843
|
key: 0,
|
|
1844
1844
|
x1: e.x + 4,
|
|
1845
1845
|
x2: Z.value.drawingArea.left,
|
|
@@ -1848,14 +1848,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1848
1848
|
stroke: B.value.xyAxisStroke,
|
|
1849
1849
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1850
1850
|
"stroke-linecap": "round"
|
|
1851
|
-
}, null, 8,
|
|
1851
|
+
}, null, 8, Dt)) : v("", !0), e.y <= Z.value.drawingArea.bottom ? (w(), y("text", {
|
|
1852
1852
|
key: 1,
|
|
1853
1853
|
x: e.x,
|
|
1854
1854
|
y: e.y + B.value.xyLabelsYFontSize / 3,
|
|
1855
1855
|
"text-anchor": "end",
|
|
1856
1856
|
"font-size": B.value.xyLabelsYFontSize,
|
|
1857
1857
|
fill: B.value.color
|
|
1858
|
-
}, k(
|
|
1858
|
+
}, O(k(f)(B.value.formatter, e.value, k(m)({
|
|
1859
1859
|
p: B.value.valuePrefix,
|
|
1860
1860
|
v: e.value,
|
|
1861
1861
|
s: B.value.valueSuffix,
|
|
@@ -1863,8 +1863,8 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1863
1863
|
}), {
|
|
1864
1864
|
datapoint: e,
|
|
1865
1865
|
seriesIndex: t
|
|
1866
|
-
})), 9,
|
|
1867
|
-
B.value.xyShowScale && B.value.xyPeriods.length ? (
|
|
1866
|
+
})), 9, Ot)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
1867
|
+
B.value.xyShowScale && B.value.xyPeriods.length ? (w(), y("g", kt, [(w(!0), y(g, null, E($.value.map((e) => e.text), (e, t) => (w(), y(g, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (w(), y("line", {
|
|
1868
1868
|
key: 0,
|
|
1869
1869
|
x1: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
1870
1870
|
x2: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
@@ -1873,134 +1873,134 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
1873
1873
|
stroke: B.value.xyAxisStroke,
|
|
1874
1874
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
1875
1875
|
"stroke-linecap": "round"
|
|
1876
|
-
}, null, 8,
|
|
1876
|
+
}, null, 8, At)) : v("", !0)], 64))), 256)), b("g", {
|
|
1877
1877
|
ref_key: "timeLabelsEls",
|
|
1878
|
-
ref:
|
|
1879
|
-
}, [(
|
|
1878
|
+
ref: z
|
|
1879
|
+
}, [(w(!0), y(g, null, E($.value.map((e) => e.text), (e, t) => (w(), y(g, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (w(), y("g", jt, [String(e).includes("\n") ? (w(), y("text", {
|
|
1880
1880
|
key: 1,
|
|
1881
1881
|
class: "vue-data-ui-time-label",
|
|
1882
1882
|
"font-size": B.value.xyLabelsXFontSize,
|
|
1883
1883
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1884
1884
|
fill: B.value.color,
|
|
1885
1885
|
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`,
|
|
1886
|
-
innerHTML:
|
|
1886
|
+
innerHTML: k(r)({
|
|
1887
1887
|
content: String(e),
|
|
1888
1888
|
fontSize: B.value.xyLabelsXFontSize,
|
|
1889
1889
|
fill: B.value.color,
|
|
1890
1890
|
x: 0,
|
|
1891
1891
|
y: 0
|
|
1892
1892
|
})
|
|
1893
|
-
}, null, 8,
|
|
1893
|
+
}, null, 8, Nt)) : (w(), y("text", {
|
|
1894
1894
|
key: 0,
|
|
1895
1895
|
class: "vue-data-ui-time-label",
|
|
1896
1896
|
"font-size": B.value.xyLabelsXFontSize,
|
|
1897
1897
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1898
1898
|
fill: B.value.color,
|
|
1899
1899
|
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`
|
|
1900
|
-
},
|
|
1901
|
-
|
|
1900
|
+
}, O(e), 9, Mt))])) : v("", !0)], 64))), 256))], 512)])) : v("", !0),
|
|
1901
|
+
b("g", Pt, [(w(!0), y(g, null, E(Z.value.dataset, (e, t) => (w(), y("g", Ft, [B.value.lineSmooth ? (w(), y(g, { key: 0 }, [b("path", {
|
|
1902
1902
|
ref_for: !0,
|
|
1903
1903
|
ref_key: "pathWrapper",
|
|
1904
|
-
ref:
|
|
1905
|
-
d: `M ${
|
|
1904
|
+
ref: Fn,
|
|
1905
|
+
d: `M ${k(p)(e.coordinates)}`,
|
|
1906
1906
|
stroke: B.value.backgroundColor,
|
|
1907
1907
|
"stroke-width": B.value.lineStrokeWidth + 1,
|
|
1908
1908
|
"stroke-linecap": "round",
|
|
1909
1909
|
fill: "none",
|
|
1910
|
-
class:
|
|
1911
|
-
"quick-animation": !
|
|
1912
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1910
|
+
class: Me({
|
|
1911
|
+
"quick-animation": !k(U),
|
|
1912
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1913
1913
|
}),
|
|
1914
|
-
style:
|
|
1915
|
-
}, null, 14,
|
|
1914
|
+
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1915
|
+
}, null, 14, It), b("path", {
|
|
1916
1916
|
ref_for: !0,
|
|
1917
1917
|
ref_key: "pathTop",
|
|
1918
|
-
ref:
|
|
1919
|
-
d: `M ${
|
|
1918
|
+
ref: In,
|
|
1919
|
+
d: `M ${k(p)(e.coordinates)}`,
|
|
1920
1920
|
stroke: e.color,
|
|
1921
1921
|
"stroke-width": B.value.lineStrokeWidth,
|
|
1922
1922
|
"stroke-linecap": "round",
|
|
1923
1923
|
fill: "none",
|
|
1924
|
-
class:
|
|
1925
|
-
"quick-animation": !
|
|
1926
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1924
|
+
class: Me({
|
|
1925
|
+
"quick-animation": !k(U),
|
|
1926
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1927
1927
|
}),
|
|
1928
|
-
style:
|
|
1929
|
-
}, null, 14,
|
|
1928
|
+
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1929
|
+
}, null, 14, Lt)], 64)) : (w(), y(g, { key: 1 }, [b("path", {
|
|
1930
1930
|
ref_for: !0,
|
|
1931
1931
|
ref_key: "pathWrapper",
|
|
1932
|
-
ref:
|
|
1932
|
+
ref: Fn,
|
|
1933
1933
|
d: `M ${e.linePath}`,
|
|
1934
1934
|
stroke: B.value.backgroundColor,
|
|
1935
1935
|
"stroke-width": B.value.lineStrokeWidth + 1,
|
|
1936
1936
|
"stroke-linecap": "round",
|
|
1937
1937
|
fill: "none",
|
|
1938
|
-
class:
|
|
1939
|
-
"quick-animation": !
|
|
1940
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1938
|
+
class: Me({
|
|
1939
|
+
"quick-animation": !k(U),
|
|
1940
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1941
1941
|
}),
|
|
1942
|
-
style:
|
|
1943
|
-
}, null, 14,
|
|
1942
|
+
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1943
|
+
}, null, 14, Rt), b("path", {
|
|
1944
1944
|
ref_for: !0,
|
|
1945
1945
|
ref_key: "pathTop",
|
|
1946
|
-
ref:
|
|
1946
|
+
ref: In,
|
|
1947
1947
|
d: `M ${e.linePath}`,
|
|
1948
1948
|
stroke: e.color,
|
|
1949
1949
|
"stroke-width": B.value.lineStrokeWidth,
|
|
1950
1950
|
"stroke-linecap": "round",
|
|
1951
1951
|
fill: "none",
|
|
1952
|
-
class:
|
|
1953
|
-
"quick-animation": !
|
|
1954
|
-
"vue-data-ui-line-animated": B.value.lineAnimated && !
|
|
1952
|
+
class: Me({
|
|
1953
|
+
"quick-animation": !k(U),
|
|
1954
|
+
"vue-data-ui-line-animated": B.value.lineAnimated && !k(U)
|
|
1955
1955
|
}),
|
|
1956
|
-
style:
|
|
1957
|
-
}, null, 14,
|
|
1956
|
+
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1957
|
+
}, null, 14, zt)], 64)), (w(!0), y(g, null, E(e.coordinates, (t, n) => (w(), y("circle", {
|
|
1958
1958
|
cx: t.x,
|
|
1959
|
-
cy:
|
|
1959
|
+
cy: k(h)(t.y),
|
|
1960
1960
|
r: 3,
|
|
1961
1961
|
fill: e.color,
|
|
1962
1962
|
stroke: B.value.backgroundColor,
|
|
1963
1963
|
"stroke-width": "0.5",
|
|
1964
|
-
class:
|
|
1964
|
+
class: Me({
|
|
1965
1965
|
"vue-ui-quick-chart-plot": !0,
|
|
1966
|
-
"quick-animation": !
|
|
1966
|
+
"quick-animation": !k(U)
|
|
1967
1967
|
}),
|
|
1968
|
-
style:
|
|
1969
|
-
}, null, 14,
|
|
1970
|
-
B.value.showDataLabels ? (
|
|
1968
|
+
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1969
|
+
}, null, 14, Bt))), 256))]))), 256))]),
|
|
1970
|
+
B.value.showDataLabels ? (w(), y("g", Vt, [(w(!0), y(g, null, E(Z.value.dataset, (e, t) => (w(), y(g, null, [(w(!0), y(g, null, E(e.coordinates, (t, n) => (w(), y("text", {
|
|
1971
1971
|
"text-anchor": "middle",
|
|
1972
1972
|
"font-size": B.value.dataLabelFontSize,
|
|
1973
1973
|
fill: e.color,
|
|
1974
1974
|
x: t.x,
|
|
1975
|
-
y:
|
|
1976
|
-
class:
|
|
1975
|
+
y: k(h)(t.y) - B.value.dataLabelFontSize / 2,
|
|
1976
|
+
class: Me({
|
|
1977
1977
|
"vue-ui-quick-chart-label": !0,
|
|
1978
|
-
"quick-animation": !
|
|
1978
|
+
"quick-animation": !k(U)
|
|
1979
1979
|
}),
|
|
1980
|
-
style:
|
|
1981
|
-
}, k(
|
|
1980
|
+
style: C({ transition: k(U) ? void 0 : "all 0.3s ease-in-out" })
|
|
1981
|
+
}, O(k(f)(B.value.formatter, k(h)(t.value), k(m)({
|
|
1982
1982
|
p: B.value.valuePrefix,
|
|
1983
|
-
v:
|
|
1983
|
+
v: k(h)(t.value),
|
|
1984
1984
|
s: B.value.valueSuffix,
|
|
1985
1985
|
r: B.value.dataLabelRoundingValue
|
|
1986
1986
|
}), {
|
|
1987
1987
|
datapoint: t,
|
|
1988
1988
|
seriesIndex: n
|
|
1989
|
-
})), 15,
|
|
1990
|
-
Zn.value ? (
|
|
1989
|
+
})), 15, Ht))), 256))], 64))), 256))])) : v("", !0),
|
|
1990
|
+
Zn.value ? (w(), y("g", Ut, [(w(!0), y(g, null, E(Z.value.extremes.maxSeries, (e, t) => (w(), y("rect", {
|
|
1991
1991
|
x: Z.value.drawingArea.left + t * Z.value.slotSize,
|
|
1992
1992
|
y: Z.value.drawingArea.top,
|
|
1993
1993
|
height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
|
|
1994
1994
|
width: Z.value.slotSize <= 0 ? 1e-5 : Z.value.slotSize,
|
|
1995
|
-
fill: [
|
|
1996
|
-
style:
|
|
1995
|
+
fill: [L.value, J.value].includes(t) ? B.value.xyHighlighterColor : "transparent",
|
|
1996
|
+
style: C(`opacity:${B.value.xyHighlighterOpacity}`),
|
|
1997
1997
|
onMouseenter: (e) => Z.value.useTooltip(t, "pointer"),
|
|
1998
1998
|
onMouseleave: (e) => Z.value.killTooltip(t),
|
|
1999
1999
|
onClick: (e) => Z.value.selectDatapoint(t)
|
|
2000
|
-
}, null, 44,
|
|
2001
|
-
], 64)) :
|
|
2002
|
-
K.value ===
|
|
2003
|
-
B.value.xyShowGrid ? (
|
|
2000
|
+
}, null, 44, Wt))), 256))])) : v("", !0)
|
|
2001
|
+
], 64)) : v("", !0),
|
|
2002
|
+
K.value === j.BAR ? (w(), y(g, { key: 5 }, [
|
|
2003
|
+
B.value.xyShowGrid ? (w(), y("g", Gt, [(w(!0), y(g, null, E(Q.value.yLabels, (e) => (w(), y(g, null, [e.y <= Q.value.drawingArea.bottom ? (w(), y("line", {
|
|
2004
2004
|
key: 0,
|
|
2005
2005
|
x1: Q.value.drawingArea.left,
|
|
2006
2006
|
x2: Q.value.drawingArea.right,
|
|
@@ -2009,7 +2009,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2009
2009
|
stroke: B.value.xyGridStroke,
|
|
2010
2010
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
2011
2011
|
"stroke-linecap": "round"
|
|
2012
|
-
}, null, 8,
|
|
2012
|
+
}, null, 8, Kt)) : v("", !0)], 64))), 256)), R.value.length < Q.value.legend.length ? (w(!0), y(g, { key: 0 }, E(Q.value.extremes.maxSeries + 1, (e, t) => (w(), y("line", {
|
|
2013
2013
|
x1: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
2014
2014
|
x2: Q.value.drawingArea.left + Q.value.slotSize * t,
|
|
2015
2015
|
y1: Q.value.drawingArea.top,
|
|
@@ -2017,8 +2017,8 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2017
2017
|
stroke: B.value.xyGridStroke,
|
|
2018
2018
|
"stroke-width": B.value.xyGridStrokeWidth,
|
|
2019
2019
|
"stroke-linecap": "round"
|
|
2020
|
-
}, null, 8,
|
|
2021
|
-
B.value.xyShowAxis ? (
|
|
2020
|
+
}, null, 8, qt))), 256)) : v("", !0)])) : v("", !0),
|
|
2021
|
+
B.value.xyShowAxis ? (w(), y("g", Jt, [b("line", {
|
|
2022
2022
|
x1: Q.value.drawingArea.left,
|
|
2023
2023
|
x2: Q.value.drawingArea.left,
|
|
2024
2024
|
y1: Q.value.drawingArea.top,
|
|
@@ -2026,7 +2026,7 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2026
2026
|
stroke: B.value.xyAxisStroke,
|
|
2027
2027
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2028
2028
|
"stroke-linecap": "round"
|
|
2029
|
-
}, null, 8,
|
|
2029
|
+
}, null, 8, Yt), b("line", {
|
|
2030
2030
|
x1: Q.value.drawingArea.left,
|
|
2031
2031
|
x2: Q.value.drawingArea.right,
|
|
2032
2032
|
y1: isNaN(Q.value.absoluteZero) ? Q.value.drawingArea.bottom : Q.value.absoluteZero,
|
|
@@ -2034,13 +2034,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2034
2034
|
stroke: B.value.xyAxisStroke,
|
|
2035
2035
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2036
2036
|
"stroke-linecap": "round"
|
|
2037
|
-
}, null, 8,
|
|
2038
|
-
B.value.xyShowScale ? (
|
|
2037
|
+
}, null, 8, Xt)])) : v("", !0),
|
|
2038
|
+
B.value.xyShowScale ? (w(), y("g", {
|
|
2039
2039
|
key: 2,
|
|
2040
2040
|
class: "yLabels",
|
|
2041
2041
|
ref_key: "scaleLabels",
|
|
2042
2042
|
ref: Ln
|
|
2043
|
-
}, [(
|
|
2043
|
+
}, [(w(!0), y(g, null, E(Q.value.yLabels, (e, t) => (w(), y(g, null, [e.y <= Q.value.drawingArea.bottom ? (w(), y("line", {
|
|
2044
2044
|
key: 0,
|
|
2045
2045
|
x1: e.x + 4,
|
|
2046
2046
|
x2: Q.value.drawingArea.left,
|
|
@@ -2049,14 +2049,14 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2049
2049
|
stroke: B.value.xyAxisStroke,
|
|
2050
2050
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2051
2051
|
"stroke-linecap": "round"
|
|
2052
|
-
}, null, 8,
|
|
2052
|
+
}, null, 8, Zt)) : v("", !0), e.y <= Q.value.drawingArea.bottom ? (w(), y("text", {
|
|
2053
2053
|
key: 1,
|
|
2054
2054
|
x: e.x,
|
|
2055
2055
|
y: e.y + B.value.xyLabelsYFontSize / 3,
|
|
2056
2056
|
"text-anchor": "end",
|
|
2057
2057
|
"font-size": B.value.xyLabelsYFontSize,
|
|
2058
2058
|
fill: B.value.color
|
|
2059
|
-
}, k(
|
|
2059
|
+
}, O(k(f)(B.value.formatter, e.value, k(m)({
|
|
2060
2060
|
p: B.value.valuePrefix,
|
|
2061
2061
|
v: e.value,
|
|
2062
2062
|
s: B.value.valueSuffix,
|
|
@@ -2064,8 +2064,8 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2064
2064
|
}), {
|
|
2065
2065
|
datapoint: e,
|
|
2066
2066
|
seriesIndex: t
|
|
2067
|
-
})), 9,
|
|
2068
|
-
B.value.xyShowScale && B.value.xyPeriods.length ? (
|
|
2067
|
+
})), 9, Qt)) : v("", !0)], 64))), 256))], 512)) : v("", !0),
|
|
2068
|
+
B.value.xyShowScale && B.value.xyPeriods.length ? (w(), y("g", $t, [(w(!0), y(g, null, E(B.value.xyPeriods.slice(X.value.start, X.value.end), (e, t) => (w(), y("line", {
|
|
2069
2069
|
x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2070
2070
|
x2: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2071
2071
|
y1: Q.value.drawingArea.bottom,
|
|
@@ -2073,139 +2073,139 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2073
2073
|
stroke: B.value.xyAxisStroke,
|
|
2074
2074
|
"stroke-width": B.value.xyAxisStrokeWidth,
|
|
2075
2075
|
"stroke-linecap": "round"
|
|
2076
|
-
}, null, 8,
|
|
2076
|
+
}, null, 8, en))), 256)), b("g", {
|
|
2077
2077
|
ref_key: "timeLabelsEls",
|
|
2078
|
-
ref:
|
|
2079
|
-
}, [(
|
|
2078
|
+
ref: z
|
|
2079
|
+
}, [(w(!0), y(g, null, E($.value.map((e) => e.text), (e, t) => (w(), y(g, null, [!B.value.xyPeriodsShowOnlyAtModulo || B.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((X.value.end - X.value.start) / Br.value) === 0 || X.value.end - X.value.start <= Br.value ? (w(), y("g", tn, [String(e).includes("\n") ? (w(), y("text", {
|
|
2080
2080
|
key: 1,
|
|
2081
2081
|
class: "vue-data-ui-time-label",
|
|
2082
2082
|
"font-size": B.value.xyLabelsXFontSize,
|
|
2083
2083
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2084
2084
|
fill: B.value.color,
|
|
2085
2085
|
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`,
|
|
2086
|
-
innerHTML:
|
|
2086
|
+
innerHTML: k(r)({
|
|
2087
2087
|
content: String(e),
|
|
2088
2088
|
fontSize: B.value.xyLabelsXFontSize,
|
|
2089
2089
|
fill: B.value.color,
|
|
2090
2090
|
x: 0,
|
|
2091
2091
|
y: 0
|
|
2092
2092
|
})
|
|
2093
|
-
}, null, 8,
|
|
2093
|
+
}, null, 8, rn)) : (w(), y("text", {
|
|
2094
2094
|
key: 0,
|
|
2095
2095
|
class: "vue-data-ui-time-label",
|
|
2096
2096
|
"font-size": B.value.xyLabelsXFontSize,
|
|
2097
2097
|
"text-anchor": B.value.xyPeriodLabelsRotation > 0 ? "start" : B.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2098
2098
|
fill: B.value.color,
|
|
2099
2099
|
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + B.value.xyLabelsXFontSize + 6}), rotate(${B.value.xyPeriodLabelsRotation})`
|
|
2100
|
-
},
|
|
2101
|
-
|
|
2100
|
+
}, O(e), 9, nn))])) : v("", !0)], 64))), 256))], 512)])) : v("", !0),
|
|
2101
|
+
b("g", an, [(w(!0), y(g, null, E(Q.value.dataset, (e, t) => (w(), y(g, null, [(w(!0), y(g, null, E(e.coordinates, (t, n) => (w(), y("rect", {
|
|
2102
2102
|
x: t.x,
|
|
2103
2103
|
width: t.width <= 0 ? 1e-5 : t.width,
|
|
2104
|
-
height:
|
|
2105
|
-
y:
|
|
2104
|
+
height: k(h)(t.height <= 0 ? 1e-5 : t.height),
|
|
2105
|
+
y: k(h)(t.y),
|
|
2106
2106
|
fill: e.color,
|
|
2107
2107
|
stroke: B.value.backgroundColor,
|
|
2108
2108
|
"stroke-width": B.value.barStrokeWidth,
|
|
2109
2109
|
"stroke-linecap": "round",
|
|
2110
|
-
class:
|
|
2111
|
-
}, [B.value.barAnimated && t.value > 0 && !
|
|
2110
|
+
class: Me({ "vue-data-ui-bar-animated": B.value.barAnimated && t.value < 0 && !k(U) })
|
|
2111
|
+
}, [B.value.barAnimated && t.value > 0 && !k(rr) && !k(ir) ? (w(), y("animate", {
|
|
2112
2112
|
key: 0,
|
|
2113
2113
|
attributeName: "height",
|
|
2114
2114
|
from: 0,
|
|
2115
2115
|
to: t.height,
|
|
2116
2116
|
dur: "0.5s"
|
|
2117
|
-
}, null, 8,
|
|
2117
|
+
}, null, 8, sn)) : v("", !0), B.value.barAnimated && t.value > 0 && !k(rr) && !k(ir) ? (w(), y("animate", {
|
|
2118
2118
|
key: 1,
|
|
2119
2119
|
attributeName: "y",
|
|
2120
2120
|
from: Q.value.absoluteZero,
|
|
2121
2121
|
to: Q.value.absoluteZero - t.height,
|
|
2122
2122
|
dur: "0.5s"
|
|
2123
|
-
}, null, 8,
|
|
2124
|
-
B.value.showDataLabels ? (
|
|
2123
|
+
}, null, 8, cn)) : v("", !0)], 10, on))), 256))], 64))), 256))]),
|
|
2124
|
+
B.value.showDataLabels ? (w(), y("g", ln, [(w(!0), y(g, null, E(Q.value.dataset, (e, t) => (w(), y(g, null, [(w(!0), y(g, null, E(e.coordinates, (t, n) => (w(), y("text", {
|
|
2125
2125
|
x: t.x + t.width / 2,
|
|
2126
|
-
y:
|
|
2126
|
+
y: k(h)(t.y) - B.value.dataLabelFontSize / 2,
|
|
2127
2127
|
"text-anchor": "middle",
|
|
2128
2128
|
"font-size": B.value.dataLabelFontSize,
|
|
2129
2129
|
fill: e.color,
|
|
2130
2130
|
class: "quick-animation"
|
|
2131
|
-
}, k(
|
|
2131
|
+
}, O(k(f)(B.value.formatter, k(h)(t.value), k(m)({
|
|
2132
2132
|
p: B.value.valuePrefix,
|
|
2133
|
-
v:
|
|
2133
|
+
v: k(h)(t.value),
|
|
2134
2134
|
s: B.value.valueSuffix,
|
|
2135
2135
|
r: B.value.dataLabelRoundingValue
|
|
2136
2136
|
}), {
|
|
2137
2137
|
datapoint: t,
|
|
2138
2138
|
seriesIndex: n
|
|
2139
|
-
})), 9,
|
|
2140
|
-
Zn.value &&
|
|
2139
|
+
})), 9, un))), 256))], 64))), 256))])) : v("", !0),
|
|
2140
|
+
Zn.value && R.value.length < Q.value.legend.length ? (w(), y("g", dn, [(w(!0), y(g, null, E(Q.value.extremes.maxSeries, (e, t) => (w(), y("rect", {
|
|
2141
2141
|
x: Q.value.drawingArea.left + t * Q.value.slotSize,
|
|
2142
2142
|
y: Q.value.drawingArea.top,
|
|
2143
2143
|
height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
|
|
2144
2144
|
width: Q.value.slotSize <= 0 ? 1e-5 : Q.value.slotSize,
|
|
2145
|
-
fill: [
|
|
2146
|
-
style:
|
|
2145
|
+
fill: [L.value, J.value].includes(t) ? B.value.xyHighlighterColor : "transparent",
|
|
2146
|
+
style: C(`opacity:${B.value.xyHighlighterOpacity}`),
|
|
2147
2147
|
onMouseenter: (e) => Q.value.useTooltip(t, "pointer"),
|
|
2148
2148
|
onMouseleave: (e) => Q.value.killTooltip(t),
|
|
2149
2149
|
onClick: (e) => Q.value.selectDatapoint(t)
|
|
2150
|
-
}, null, 44,
|
|
2151
|
-
], 64)) :
|
|
2152
|
-
[
|
|
2153
|
-
B.value.xAxisLabel && K.value ===
|
|
2150
|
+
}, null, 44, fn))), 256))])) : v("", !0)
|
|
2151
|
+
], 64)) : v("", !0),
|
|
2152
|
+
[j.LINE, j.BAR].includes(K.value) ? (w(), y("g", pn, [
|
|
2153
|
+
B.value.xAxisLabel && K.value === j.LINE ? (w(), y("g", {
|
|
2154
2154
|
key: 0,
|
|
2155
2155
|
ref_key: "xAxisLabel",
|
|
2156
2156
|
ref: Rn
|
|
2157
|
-
}, [
|
|
2157
|
+
}, [b("text", {
|
|
2158
2158
|
"font-size": B.value.axisLabelsFontSize,
|
|
2159
2159
|
fill: B.value.color,
|
|
2160
2160
|
"text-anchor": "middle",
|
|
2161
2161
|
x: Z.value.drawingArea.left + Z.value.drawingArea.width / 2,
|
|
2162
2162
|
y: q.value.height - B.value.axisLabelsFontSize / 3
|
|
2163
|
-
},
|
|
2164
|
-
B.value.xAxisLabel && K.value ===
|
|
2163
|
+
}, O(B.value.xAxisLabel), 9, mn)], 512)) : v("", !0),
|
|
2164
|
+
B.value.xAxisLabel && K.value === j.BAR ? (w(), y("g", {
|
|
2165
2165
|
key: 1,
|
|
2166
2166
|
ref_key: "xAxisLabel",
|
|
2167
2167
|
ref: Rn
|
|
2168
|
-
}, [
|
|
2168
|
+
}, [b("text", {
|
|
2169
2169
|
"font-size": B.value.axisLabelsFontSize,
|
|
2170
2170
|
fill: B.value.color,
|
|
2171
2171
|
"text-anchor": "middle",
|
|
2172
2172
|
x: Q.value.drawingArea.left + Q.value.drawingArea.width / 2,
|
|
2173
2173
|
y: q.value.height - B.value.axisLabelsFontSize / 3
|
|
2174
|
-
},
|
|
2175
|
-
B.value.yAxisLabel && K.value ===
|
|
2174
|
+
}, O(B.value.xAxisLabel), 9, hn)], 512)) : v("", !0),
|
|
2175
|
+
B.value.yAxisLabel && K.value === j.LINE ? (w(), y("g", {
|
|
2176
2176
|
key: 2,
|
|
2177
2177
|
ref_key: "yAxisLabel",
|
|
2178
2178
|
ref: zn
|
|
2179
|
-
}, [
|
|
2179
|
+
}, [b("text", {
|
|
2180
2180
|
"font-size": B.value.axisLabelsFontSize,
|
|
2181
2181
|
fill: B.value.color,
|
|
2182
2182
|
transform: `translate(${B.value.axisLabelsFontSize}, ${Z.value.drawingArea.top + Z.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2183
2183
|
"text-anchor": "middle"
|
|
2184
|
-
},
|
|
2185
|
-
B.value.yAxisLabel && K.value ===
|
|
2184
|
+
}, O(B.value.yAxisLabel), 9, gn)], 512)) : v("", !0),
|
|
2185
|
+
B.value.yAxisLabel && K.value === j.BAR ? (w(), y("g", {
|
|
2186
2186
|
key: 3,
|
|
2187
2187
|
ref_key: "yAxisLabel",
|
|
2188
2188
|
ref: zn
|
|
2189
|
-
}, [
|
|
2189
|
+
}, [b("text", {
|
|
2190
2190
|
"font-size": B.value.axisLabelsFontSize,
|
|
2191
2191
|
fill: B.value.color,
|
|
2192
2192
|
transform: `translate(${B.value.axisLabelsFontSize}, ${Q.value.drawingArea.top + Q.value.drawingArea.height / 2}) rotate(-90)`,
|
|
2193
2193
|
"text-anchor": "middle"
|
|
2194
|
-
},
|
|
2195
|
-
])) :
|
|
2196
|
-
], 44,
|
|
2194
|
+
}, O(B.value.yAxisLabel), 9, _n)], 512)) : v("", !0)
|
|
2195
|
+
])) : v("", !0)
|
|
2196
|
+
], 44, et)) : v("", !0), e.$slots.hint ? (w(), y("div", vn, [D(e.$slots, "hint", S(x({
|
|
2197
2197
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
2198
2198
|
isVisible: Un.value
|
|
2199
|
-
})), void 0, !0)])) :
|
|
2200
|
-
e.$slots.watermark ? (
|
|
2201
|
-
[
|
|
2202
|
-
key: `slicer_${
|
|
2199
|
+
})), void 0, !0)])) : v("", !0)]),
|
|
2200
|
+
e.$slots.watermark ? (w(), y("div", yn, [D(e.$slots, "watermark", S(x({ isPrinting: k(rr) || k(ir) })), void 0, !0)])) : v("", !0),
|
|
2201
|
+
[j.BAR, j.LINE].includes(K.value) && B.value.zoomXy && G.value.maxSeriesLength > 1 ? (w(), y("div", {
|
|
2202
|
+
key: `slicer_${Nn.value}`,
|
|
2203
2203
|
ref_key: "quickChartSlicer",
|
|
2204
|
-
ref:
|
|
2205
|
-
}, [(
|
|
2204
|
+
ref: Dn
|
|
2205
|
+
}, [(w(), Ee(Ce, {
|
|
2206
2206
|
ref_key: "slicerComponent",
|
|
2207
2207
|
ref: wr,
|
|
2208
|
-
key: `slicer_${
|
|
2208
|
+
key: `slicer_${Nn.value}`,
|
|
2209
2209
|
background: B.value.zoomColor,
|
|
2210
2210
|
borderColor: B.value.backgroundColor,
|
|
2211
2211
|
fontSize: B.value.zoomFontSize,
|
|
@@ -2253,26 +2253,26 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2253
2253
|
onReset: Cr,
|
|
2254
2254
|
onTrapMouse: xr
|
|
2255
2255
|
}, {
|
|
2256
|
-
"reset-action":
|
|
2256
|
+
"reset-action": A(({ reset: t }) => [D(e.$slots, "reset-action", S(x({ reset: t })), void 0, !0)]),
|
|
2257
2257
|
_: 3
|
|
2258
|
-
}, 8, /* @__PURE__ */ "background.borderColor.fontSize.useResetSlot.labelLeft.labelRight.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.start.end.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth".split(".")))])) :
|
|
2259
|
-
|
|
2260
|
-
|
|
2258
|
+
}, 8, /* @__PURE__ */ "background.borderColor.fontSize.useResetSlot.labelLeft.labelRight.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.start.end.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth".split(".")))])) : v("", !0),
|
|
2259
|
+
b("div", { id: `legend-bottom-${F.value}` }, null, 8, bn),
|
|
2260
|
+
Pn.value && B.value.showLegend ? (w(), Ee(Te, {
|
|
2261
2261
|
key: 7,
|
|
2262
|
-
to: B.value.legendPosition === "top" ? `#legend-top-${
|
|
2263
|
-
}, [B.value.showLegend ? (
|
|
2262
|
+
to: B.value.legendPosition === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2263
|
+
}, [B.value.showLegend ? (w(), y("div", {
|
|
2264
2264
|
key: 0,
|
|
2265
2265
|
ref_key: "quickChartLegend",
|
|
2266
|
-
ref:
|
|
2266
|
+
ref: En,
|
|
2267
2267
|
class: "vue-ui-quick-chart-legend",
|
|
2268
|
-
style:
|
|
2268
|
+
style: C(`background:transparent;color:${B.value.color}`)
|
|
2269
2269
|
}, [
|
|
2270
|
-
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && B.value.showLegendSelectAllToggle && !
|
|
2270
|
+
(Y.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && B.value.showLegendSelectAllToggle && !k(U) ? (w(), Ee(be, {
|
|
2271
2271
|
key: 0,
|
|
2272
2272
|
backgroundColor: B.value.legendSelectAllToggleBackgroundColor,
|
|
2273
2273
|
color: B.value.legendSelectAllToggleColor,
|
|
2274
2274
|
fontSize: B.value.legendFontSize,
|
|
2275
|
-
checked:
|
|
2275
|
+
checked: R.value.length > 0,
|
|
2276
2276
|
isCursorPointer: Vn.value,
|
|
2277
2277
|
onToggle: hr
|
|
2278
2278
|
}, null, 8, [
|
|
@@ -2281,11 +2281,11 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2281
2281
|
"fontSize",
|
|
2282
2282
|
"checked",
|
|
2283
2283
|
"isCursorPointer"
|
|
2284
|
-
])) :
|
|
2285
|
-
K.value ===
|
|
2284
|
+
])) : v("", !0),
|
|
2285
|
+
K.value === j.DONUT ? (w(!0), y(g, { key: 1 }, E(Y.value.legend, (t, n) => (w(), y("div", {
|
|
2286
2286
|
class: "vue-ui-quick-chart-legend-item",
|
|
2287
2287
|
onClick: (e) => br(t, Y.value.dataset),
|
|
2288
|
-
style:
|
|
2288
|
+
style: C(`cursor: ${Y.value.legend.length > 1 && Vn.value ? "pointer" : "default"}; opacity:${R.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2289
2289
|
role: "button",
|
|
2290
2290
|
tabindex: "0",
|
|
2291
2291
|
onKeydown: (e) => {
|
|
@@ -2293,17 +2293,17 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2293
2293
|
br(t, Y.value.dataset);
|
|
2294
2294
|
});
|
|
2295
2295
|
}
|
|
2296
|
-
}, [B.value.useCustomLegend ?
|
|
2296
|
+
}, [B.value.useCustomLegend ? D(e.$slots, "legend", Ae({
|
|
2297
2297
|
key: 0,
|
|
2298
2298
|
ref_for: !0
|
|
2299
2299
|
}, { legend: {
|
|
2300
2300
|
...t,
|
|
2301
|
-
isSegregated:
|
|
2301
|
+
isSegregated: R.value.includes(t.id),
|
|
2302
2302
|
segregate: () => {
|
|
2303
2303
|
br(t, Y.value.dataset);
|
|
2304
2304
|
}
|
|
2305
|
-
} }), void 0, !0) : (
|
|
2306
|
-
|
|
2305
|
+
} }), void 0, !0) : (w(), y(g, { key: 1 }, [
|
|
2306
|
+
Oe(k(Ve), {
|
|
2307
2307
|
name: B.value.legendIcon,
|
|
2308
2308
|
stroke: t.color,
|
|
2309
2309
|
size: B.value.legendIconSize
|
|
@@ -2312,8 +2312,8 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2312
2312
|
"stroke",
|
|
2313
2313
|
"size"
|
|
2314
2314
|
]),
|
|
2315
|
-
|
|
2316
|
-
|
|
2315
|
+
b("span", { style: C(`font-size:${B.value.legendFontSize}px`) }, O(t.name), 5),
|
|
2316
|
+
b("span", { style: C(`font-size:${B.value.legendFontSize}px;font-variant-numeric:tabular-nums`) }, O(R.value.includes(t.id) ? "-" : k(f)(B.value.formatter, t.absoluteValue, k(m)({
|
|
2317
2317
|
p: B.value.valuePrefix,
|
|
2318
2318
|
v: t.absoluteValue,
|
|
2319
2319
|
s: B.value.valueSuffix,
|
|
@@ -2322,27 +2322,27 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2322
2322
|
datapoint: t,
|
|
2323
2323
|
seriesIndex: n
|
|
2324
2324
|
})), 5),
|
|
2325
|
-
|
|
2325
|
+
R.value.includes(t.id) ? (w(), y("span", {
|
|
2326
2326
|
key: 0,
|
|
2327
|
-
style:
|
|
2328
|
-
}, " ( - % ) ", 4)) : yr.value ? (
|
|
2327
|
+
style: C(`font-size:${B.value.legendFontSize}px`)
|
|
2328
|
+
}, " ( - % ) ", 4)) : yr.value ? (w(), y("span", {
|
|
2329
2329
|
key: 1,
|
|
2330
|
-
style:
|
|
2331
|
-
}, " ( - % ) ", 4)) : (
|
|
2330
|
+
style: C(`font-size:${B.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2331
|
+
}, " ( - % ) ", 4)) : (w(), y("span", {
|
|
2332
2332
|
key: 2,
|
|
2333
|
-
style:
|
|
2334
|
-
}, " (" + k(
|
|
2333
|
+
style: C(`font-size:${B.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2334
|
+
}, " (" + O(k(m)({
|
|
2335
2335
|
v: t.value / Y.value.total * 100,
|
|
2336
2336
|
s: "%",
|
|
2337
2337
|
r: B.value.dataLabelRoundingPercentage
|
|
2338
2338
|
})) + ") ", 5))
|
|
2339
|
-
], 64))], 44,
|
|
2340
|
-
K.value ===
|
|
2339
|
+
], 64))], 44, xn))), 256)) : v("", !0),
|
|
2340
|
+
K.value === j.LINE ? (w(!0), y(g, { key: 2 }, E(Z.value.legend, (t, n) => (w(), y("div", {
|
|
2341
2341
|
class: "vue-ui-quick-chart-legend-item",
|
|
2342
2342
|
onClick: (e) => {
|
|
2343
2343
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2344
2344
|
},
|
|
2345
|
-
style:
|
|
2345
|
+
style: C(`cursor: ${Z.value.legend.length > 1 && Vn.value ? "pointer" : "default"}; opacity:${R.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2346
2346
|
role: "button",
|
|
2347
2347
|
tabindex: "0",
|
|
2348
2348
|
onKeydown: (e) => {
|
|
@@ -2350,16 +2350,16 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2350
2350
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2351
2351
|
});
|
|
2352
2352
|
}
|
|
2353
|
-
}, [B.value.useCustomLegend ?
|
|
2353
|
+
}, [B.value.useCustomLegend ? D(e.$slots, "legend", Ae({
|
|
2354
2354
|
key: 0,
|
|
2355
2355
|
ref_for: !0
|
|
2356
2356
|
}, { legend: {
|
|
2357
2357
|
...t,
|
|
2358
|
-
isSegregated:
|
|
2358
|
+
isSegregated: R.value.includes(t.id),
|
|
2359
2359
|
segregate: () => {
|
|
2360
2360
|
gr(t.id, Z.value.legend.length - 1), W("selectLegend", Z.value.dataset);
|
|
2361
2361
|
}
|
|
2362
|
-
} }), void 0, !0) : (
|
|
2362
|
+
} }), void 0, !0) : (w(), y(g, { key: 1 }, [Oe(k(Ve), {
|
|
2363
2363
|
name: B.value.legendIcon,
|
|
2364
2364
|
stroke: t.color,
|
|
2365
2365
|
size: B.value.legendIconSize
|
|
@@ -2367,13 +2367,13 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2367
2367
|
"name",
|
|
2368
2368
|
"stroke",
|
|
2369
2369
|
"size"
|
|
2370
|
-
]),
|
|
2371
|
-
K.value ===
|
|
2370
|
+
]), b("span", { style: C(`font-size:${B.value.legendFontSize}px`) }, O(t.name), 5)], 64))], 44, Sn))), 256)) : v("", !0),
|
|
2371
|
+
K.value === j.BAR ? (w(!0), y(g, { key: 3 }, E(Q.value.legend, (t, n) => (w(), y("div", {
|
|
2372
2372
|
class: "vue-ui-quick-chart-legend-item",
|
|
2373
2373
|
onClick: (e) => {
|
|
2374
2374
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2375
2375
|
},
|
|
2376
|
-
style:
|
|
2376
|
+
style: C(`cursor: ${Q.value.legend.length > 1 && Vn.value ? "pointer" : "default"}; opacity:${R.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2377
2377
|
role: "button",
|
|
2378
2378
|
tabindex: "0",
|
|
2379
2379
|
onKeydown: (e) => {
|
|
@@ -2381,16 +2381,16 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2381
2381
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2382
2382
|
});
|
|
2383
2383
|
}
|
|
2384
|
-
}, [B.value.useCustomLegend ?
|
|
2384
|
+
}, [B.value.useCustomLegend ? D(e.$slots, "legend", Ae({
|
|
2385
2385
|
key: 0,
|
|
2386
2386
|
ref_for: !0
|
|
2387
2387
|
}, { legend: {
|
|
2388
2388
|
...t,
|
|
2389
|
-
isSegregated:
|
|
2389
|
+
isSegregated: R.value.includes(t.id),
|
|
2390
2390
|
segregate: () => {
|
|
2391
2391
|
gr(t.id, Q.value.legend.length - 1), W("selectLegend", Q.value.dataset);
|
|
2392
2392
|
}
|
|
2393
|
-
} }), void 0, !0) : (
|
|
2393
|
+
} }), void 0, !0) : (w(), y(g, { key: 1 }, [Oe(k(Ve), {
|
|
2394
2394
|
name: B.value.legendIcon,
|
|
2395
2395
|
stroke: t.color,
|
|
2396
2396
|
size: B.value.legendIconSize
|
|
@@ -2398,17 +2398,17 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2398
2398
|
"name",
|
|
2399
2399
|
"stroke",
|
|
2400
2400
|
"size"
|
|
2401
|
-
]),
|
|
2402
|
-
], 4)) :
|
|
2403
|
-
e.$slots.source ? (
|
|
2401
|
+
]), b("span", { style: C(`font-size:${B.value.legendFontSize}px`) }, O(t.name), 5)], 64))], 44, Cn))), 256)) : v("", !0)
|
|
2402
|
+
], 4)) : v("", !0)], 8, ["to"])) : v("", !0),
|
|
2403
|
+
e.$slots.source ? (w(), y("div", {
|
|
2404
2404
|
key: 8,
|
|
2405
2405
|
ref_key: "source",
|
|
2406
|
-
ref:
|
|
2406
|
+
ref: An,
|
|
2407
2407
|
dir: "auto"
|
|
2408
|
-
}, [
|
|
2409
|
-
|
|
2408
|
+
}, [D(e.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
2409
|
+
Oe(k(Ge), {
|
|
2410
2410
|
teleportTo: B.value.tooltipTeleportTo,
|
|
2411
|
-
show: cr.value.showTooltip &&
|
|
2411
|
+
show: cr.value.showTooltip && I.value,
|
|
2412
2412
|
backgroundColor: B.value.backgroundColor,
|
|
2413
2413
|
color: B.value.color,
|
|
2414
2414
|
borderRadius: B.value.tooltipBorderRadius,
|
|
@@ -2419,10 +2419,10 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2419
2419
|
position: B.value.tooltipPosition,
|
|
2420
2420
|
offsetX: B.value.tooltipOffsetX,
|
|
2421
2421
|
offsetY: B.value.tooltipOffsetY,
|
|
2422
|
-
parent:
|
|
2423
|
-
content:
|
|
2422
|
+
parent: P.value,
|
|
2423
|
+
content: kn.value,
|
|
2424
2424
|
isFullscreen: Vr.value,
|
|
2425
|
-
isCustom:
|
|
2425
|
+
isCustom: k(te)(B.value.tooltipCustomFormat),
|
|
2426
2426
|
smooth: B.value.tooltipSmooth,
|
|
2427
2427
|
smoothForce: B.value.tooltipSmoothForce,
|
|
2428
2428
|
smoothSnapThreshold: B.value.tooltipSmoothSnapThreshold,
|
|
@@ -2430,9 +2430,9 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2430
2430
|
isA11yMode: H.value === "keyboard",
|
|
2431
2431
|
a11yPosition: Hn.value
|
|
2432
2432
|
}, {
|
|
2433
|
-
"tooltip-before":
|
|
2434
|
-
tooltip:
|
|
2435
|
-
"tooltip-after":
|
|
2433
|
+
"tooltip-before": A(() => [D(e.$slots, "tooltip-before", S(x({ ...On.value })), void 0, !0)]),
|
|
2434
|
+
tooltip: A(() => [D(e.$slots, "tooltip", S(x({ ...On.value })), void 0, !0)]),
|
|
2435
|
+
"tooltip-after": A(() => [D(e.$slots, "tooltip-after", S(x({ ...On.value })), void 0, !0)]),
|
|
2436
2436
|
_: 3
|
|
2437
2437
|
}, 8, [
|
|
2438
2438
|
"teleportTo",
|
|
@@ -2458,12 +2458,12 @@ var F = /* @__PURE__ */ e({ default: () => wn }), Ye = ["id"], Xe = ["id"], Ze =
|
|
|
2458
2458
|
"isA11yMode",
|
|
2459
2459
|
"a11yPosition"
|
|
2460
2460
|
]),
|
|
2461
|
-
|
|
2462
|
-
], 46,
|
|
2461
|
+
D(e.$slots, "skeleton", {}, () => [k(U) ? (w(), Ee(de, { key: 0 })) : v("", !0)], !0)
|
|
2462
|
+
], 46, Xe)) : (w(), y("div", wn, [Oe(k(Ve), {
|
|
2463
2463
|
name: "circleCancel",
|
|
2464
2464
|
stroke: "red"
|
|
2465
|
-
}), t[5] ||=
|
|
2465
|
+
}), t[5] ||= b("span", null, "Dataset is not processable", -1)]));
|
|
2466
2466
|
}
|
|
2467
2467
|
}, [["__scopeId", "data-v-a78997c2"]]);
|
|
2468
2468
|
//#endregion
|
|
2469
|
-
export {
|
|
2469
|
+
export { P as n, Tn as t };
|