vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- 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 +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, Gt as i, Jt as a, Kt as o, M as s, Ot as c, P as l, Pt as u, S as d, St as f, V as p, Wt as m, X as h, _ as g, b as _, c as ee, ct as te, dt as ne, i as v, jt as re, ot as ie, pt as ae, q as oe, t as se, tt as ce, v as le, w as ue, xt as de, z as fe } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, Gt as i, Jt as a, Kt as o, M as s, Ot as c, P as l, Pt as u, S as d, St as f, V as p, Wt as m, X as h, _ as g, b as _, c as ee, ct as te, dt as ne, i as v, jt as re, ot as ie, pt as ae, q as oe, t as se, tt as ce, v as le, w as ue, xt as de, z as fe } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { n as he, r as ge, t as _e } from "./useTimeLabels-
|
|
5
|
-
import { t as ve } from "./useConfig-
|
|
6
|
-
import { t as ye } from "./usePrinter-
|
|
4
|
+
import { n as he, r as ge, t as _e } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as ve } from "./useConfig-DlNpz6P8.js";
|
|
6
|
+
import { t as ye } from "./usePrinter-DN5bYhTG.js";
|
|
7
7
|
import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as Se } from "./
|
|
9
|
-
import { t as Ce } from "./
|
|
10
|
-
import { t as we } from "./
|
|
8
|
+
import { t as Se } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as we } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as Te } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as Ee } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as De } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as Oe } from "./img-
|
|
15
|
-
import { n as ke } from "./Title-
|
|
16
|
-
import { t as Ae } from "./Shape-
|
|
14
|
+
import { t as Oe } from "./img-Bnokohej.js";
|
|
15
|
+
import { n as ke } from "./Title-BE3qg9xl.js";
|
|
16
|
+
import { t as Ae } from "./Shape-C21CMlWS.js";
|
|
17
17
|
import { t as je } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
18
18
|
import { l as Me, t as Ne } from "./useResponsive-ZtArZtUf.js";
|
|
19
19
|
import { t as Pe } from "./DefGrad-DVBqDjhO.js";
|
|
20
|
-
import { t as Fe } from "./SlicerPreview-
|
|
21
|
-
import { t as Ie } from "./BaseLegendToggle-
|
|
20
|
+
import { t as Fe } from "./SlicerPreview-wUw1hFwe.js";
|
|
21
|
+
import { t as Ie } from "./BaseLegendToggle-DZVucLnv.js";
|
|
22
22
|
import { t as Le } from "./A11yDataTable-DdRsVULz.js";
|
|
23
23
|
import { t as Re } from "./useUserOptionState-DK-_1ddE.js";
|
|
24
24
|
import { t as ze } from "./useChartAccessibility-DYqac8yF.js";
|
|
25
|
-
import { t as Be } from "./Legend-
|
|
25
|
+
import { t as Be } from "./Legend-CQxUgOd-.js";
|
|
26
26
|
import { t as Ve } from "./vue_ui_stackline-DQqKPA9z.js";
|
|
27
|
-
import { Fragment as y, Teleport as He, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ue, createTextVNode as We, createVNode as Ge, defineAsyncComponent as Ke, guardReactiveProps as T, mergeProps as qe, nextTick as Je, normalizeClass as
|
|
27
|
+
import { Fragment as y, Teleport as He, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ue, createTextVNode as We, createVNode as Ge, defineAsyncComponent as Ke, guardReactiveProps as T, mergeProps as qe, nextTick as Je, normalizeClass as E, normalizeProps as D, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as M, toRefs as et, unref as N, useSlots as tt, watch as nt, watchEffect as rt, withCtx as P } from "vue";
|
|
28
28
|
//#region src/components/vue-ui-stackline.vue
|
|
29
|
-
var
|
|
29
|
+
var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st = ["id"], ct = { style: { position: "relative" } }, lt = [
|
|
30
30
|
"aria-describedby",
|
|
31
31
|
"xmlns",
|
|
32
32
|
"viewBox"
|
|
33
|
-
],
|
|
33
|
+
], ut = { key: 0 }, dt = [
|
|
34
34
|
"x",
|
|
35
35
|
"y",
|
|
36
36
|
"width",
|
|
37
37
|
"height"
|
|
38
|
-
],
|
|
38
|
+
], ft = { key: 1 }, pt = [
|
|
39
39
|
"x1",
|
|
40
40
|
"x2",
|
|
41
41
|
"y1",
|
|
@@ -43,7 +43,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
43
43
|
"stroke",
|
|
44
44
|
"stroke-width",
|
|
45
45
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
46
|
+
], mt = [
|
|
47
47
|
"x1",
|
|
48
48
|
"x2",
|
|
49
49
|
"y1",
|
|
@@ -51,32 +51,32 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
51
51
|
"stroke",
|
|
52
52
|
"stroke-width",
|
|
53
53
|
"stroke-dasharray"
|
|
54
|
-
],
|
|
54
|
+
], ht = [
|
|
55
55
|
"x1",
|
|
56
56
|
"x2",
|
|
57
57
|
"y1",
|
|
58
58
|
"y2",
|
|
59
59
|
"stroke",
|
|
60
60
|
"stroke-width"
|
|
61
|
-
],
|
|
61
|
+
], gt = [
|
|
62
62
|
"x1",
|
|
63
63
|
"x2",
|
|
64
64
|
"y1",
|
|
65
65
|
"y2",
|
|
66
66
|
"stroke",
|
|
67
67
|
"stroke-width"
|
|
68
|
-
],
|
|
68
|
+
], _t = [
|
|
69
69
|
"x",
|
|
70
70
|
"y",
|
|
71
71
|
"font-size",
|
|
72
72
|
"fill",
|
|
73
73
|
"font-weight"
|
|
74
|
-
],
|
|
74
|
+
], vt = [
|
|
75
75
|
"transform",
|
|
76
76
|
"font-size",
|
|
77
77
|
"fill",
|
|
78
78
|
"font-weight"
|
|
79
|
-
],
|
|
79
|
+
], yt = [
|
|
80
80
|
"x",
|
|
81
81
|
"y",
|
|
82
82
|
"width",
|
|
@@ -86,47 +86,47 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
86
86
|
"stroke-linecap",
|
|
87
87
|
"stroke-linejoin",
|
|
88
88
|
"stroke-dasharray"
|
|
89
|
-
],
|
|
89
|
+
], bt = [
|
|
90
90
|
"d",
|
|
91
91
|
"fill",
|
|
92
92
|
"opacity"
|
|
93
|
-
],
|
|
93
|
+
], xt = [
|
|
94
94
|
"d",
|
|
95
95
|
"stroke",
|
|
96
96
|
"stroke-width"
|
|
97
|
-
],
|
|
97
|
+
], St = [
|
|
98
98
|
"x1",
|
|
99
99
|
"x2",
|
|
100
100
|
"y1",
|
|
101
101
|
"y2",
|
|
102
102
|
"stroke"
|
|
103
|
-
],
|
|
103
|
+
], Ct = [
|
|
104
104
|
"transform",
|
|
105
105
|
"font-size",
|
|
106
106
|
"font-weight",
|
|
107
107
|
"fill",
|
|
108
108
|
"text-anchor"
|
|
109
|
-
],
|
|
109
|
+
], wt = { key: 0 }, Tt = { key: 1 }, Et = [
|
|
110
110
|
"text-anchor",
|
|
111
111
|
"font-size",
|
|
112
112
|
"font-weight",
|
|
113
113
|
"fill",
|
|
114
114
|
"transform",
|
|
115
115
|
"onClick"
|
|
116
|
-
],
|
|
116
|
+
], Dt = [
|
|
117
117
|
"text-anchor",
|
|
118
118
|
"font-size",
|
|
119
119
|
"fill",
|
|
120
120
|
"transform",
|
|
121
121
|
"innerHTML",
|
|
122
122
|
"onClick"
|
|
123
|
-
],
|
|
123
|
+
], Ot = [
|
|
124
124
|
"x",
|
|
125
125
|
"y",
|
|
126
126
|
"height",
|
|
127
127
|
"width",
|
|
128
128
|
"fill"
|
|
129
|
-
],
|
|
129
|
+
], kt = { key: 0 }, At = [
|
|
130
130
|
"x1",
|
|
131
131
|
"x2",
|
|
132
132
|
"y1",
|
|
@@ -134,17 +134,17 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
134
134
|
"stroke",
|
|
135
135
|
"stroke-width",
|
|
136
136
|
"stroke-dasharray"
|
|
137
|
-
],
|
|
137
|
+
], jt = { key: 0 }, Mt = [
|
|
138
138
|
"transform",
|
|
139
139
|
"font-size",
|
|
140
140
|
"fill",
|
|
141
141
|
"font-weight"
|
|
142
|
-
],
|
|
142
|
+
], Nt = [
|
|
143
143
|
"transform",
|
|
144
144
|
"font-size",
|
|
145
145
|
"font-weight",
|
|
146
146
|
"fill"
|
|
147
|
-
],
|
|
147
|
+
], Pt = ["data-start", "data-end"], Ft = {
|
|
148
148
|
key: 0,
|
|
149
149
|
style: {
|
|
150
150
|
position: "absolute",
|
|
@@ -154,10 +154,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
154
154
|
},
|
|
155
155
|
"data-dom-to-png-ignore": "",
|
|
156
156
|
"aria-hidden": "true"
|
|
157
|
-
},
|
|
157
|
+
}, It = {
|
|
158
158
|
key: 5,
|
|
159
159
|
class: "vue-data-ui-watermark"
|
|
160
|
-
},
|
|
160
|
+
}, Lt = ["onClick"], Rt = ["innerHTML"], zt = ["innerHTML"], Bt = ["id"], Vt = /*#__PURE__*/ je({
|
|
161
161
|
__name: "vue-ui-stackline",
|
|
162
162
|
props: {
|
|
163
163
|
config: {
|
|
@@ -184,52 +184,52 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
184
184
|
"selectX",
|
|
185
185
|
"copyAlt"
|
|
186
186
|
],
|
|
187
|
-
setup(e, { expose: je, emit:
|
|
188
|
-
let
|
|
187
|
+
setup(e, { expose: je, emit: it }) {
|
|
188
|
+
let Vt = Ke(() => import("./Tooltip-DhjyfHwz.js")), Ht = Ke(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Ut = Ke(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Wt = Ke(() => import("./DataTable-BbKgJ5UI.js")), Gt = Ke(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Kt = Ke(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), qt = Ke(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Jt = Ke(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_stackline: Yt } = ve(), { isThemeValid: Xt, warnInvalidTheme: Zt } = Ce(), Qt = tt(), F = e, $t = it, en = b({
|
|
189
189
|
get() {
|
|
190
|
-
return !!
|
|
190
|
+
return !!F.dataset && F.dataset.length;
|
|
191
191
|
},
|
|
192
192
|
set(e) {
|
|
193
193
|
return e;
|
|
194
194
|
}
|
|
195
|
-
}), tn =
|
|
195
|
+
}), tn = k(null), I = k(oe()), nn = k(!1), L = k([]), rn = k(0), an = k(null), on = k(null), sn = k(null), cn = k(null), ln = k(null), un = k(!1), dn = k(!1), fn = k(0), pn = k(0), mn = k(0), hn = k(!1), gn = k(null), _n = k(null), vn = k(!1), yn = k(null), bn = k(null), xn = k(null), Sn = k(null), Cn = k(null), wn = $e(null), Tn = k(!1), En = k(0), Dn = k(0), R = k(null), On = k({
|
|
196
196
|
x: 0,
|
|
197
197
|
y: 0
|
|
198
|
-
}),
|
|
199
|
-
elementRef:
|
|
198
|
+
}), kn = k("pointer"), An = Ee({
|
|
199
|
+
elementRef: wn,
|
|
200
200
|
minimumWidth: 2,
|
|
201
201
|
minimumHeight: 2,
|
|
202
202
|
stableFramesRequired: 2,
|
|
203
203
|
once: !1,
|
|
204
204
|
onSizeAccepted: () => {
|
|
205
|
-
|
|
205
|
+
Nn();
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
function
|
|
209
|
-
|
|
208
|
+
function jn() {
|
|
209
|
+
wn.value = tn.value?.parentNode ?? null;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Mn() {
|
|
212
212
|
return new Promise((e) => {
|
|
213
213
|
requestAnimationFrame(() => {
|
|
214
214
|
requestAnimationFrame(e);
|
|
215
215
|
});
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
async function
|
|
219
|
-
let e = ++
|
|
220
|
-
|
|
218
|
+
async function Nn() {
|
|
219
|
+
let e = ++Dn.value;
|
|
220
|
+
Tn.value = !1, await Je(), await Mn(), await Mn(), e === Dn.value && (En.value += 1, Tn.value = !0);
|
|
221
221
|
}
|
|
222
|
-
let
|
|
223
|
-
function
|
|
224
|
-
|
|
222
|
+
let Pn = k(null), Fn = k(!1);
|
|
223
|
+
function In() {
|
|
224
|
+
Fn.value = !Fn.value;
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
Ze(() => {
|
|
227
|
+
jn(), An.start(), hn.value = !0, or(), Nn();
|
|
228
228
|
});
|
|
229
|
-
let z =
|
|
229
|
+
let z = k(qn());
|
|
230
230
|
pe({
|
|
231
231
|
config: () => z.value,
|
|
232
|
-
dataset: () =>
|
|
232
|
+
dataset: () => F.dataset,
|
|
233
233
|
component: "VueUiStackline",
|
|
234
234
|
rules: [
|
|
235
235
|
me.emptyArray,
|
|
@@ -255,10 +255,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
255
255
|
}
|
|
256
256
|
]
|
|
257
257
|
});
|
|
258
|
-
let { transitionEnabled:
|
|
258
|
+
let { transitionEnabled: Ln } = Te({
|
|
259
259
|
config: () => z.value.transitions,
|
|
260
|
-
dataset: () =>
|
|
261
|
-
}), B = b(() => z.value.userOptions.useCursorPointer),
|
|
260
|
+
dataset: () => F.dataset
|
|
261
|
+
}), B = b(() => z.value.userOptions.useCursorPointer), Rn = b(() => a({
|
|
262
262
|
defaultConfig: {
|
|
263
263
|
userOptions: { show: !1 },
|
|
264
264
|
useCssAnimation: !1,
|
|
@@ -304,16 +304,16 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
304
304
|
} }
|
|
305
305
|
},
|
|
306
306
|
userConfig: z.value.skeletonConfig ?? {}
|
|
307
|
-
})), { loading:
|
|
308
|
-
...
|
|
307
|
+
})), { loading: zn, FINAL_DATASET: Bn, manualLoading: Vn } = be({
|
|
308
|
+
...et(F),
|
|
309
309
|
FINAL_CONFIG: z,
|
|
310
|
-
prepareConfig:
|
|
310
|
+
prepareConfig: qn,
|
|
311
311
|
callback: () => {
|
|
312
312
|
Promise.resolve().then(async () => {
|
|
313
|
-
(!z.value.style.chart.zoom.keepState || !
|
|
313
|
+
(!z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0) && await ei();
|
|
314
314
|
});
|
|
315
315
|
},
|
|
316
|
-
skeletonDataset:
|
|
316
|
+
skeletonDataset: F.config?.skeletonDataset ?? [{
|
|
317
317
|
name: "",
|
|
318
318
|
series: [
|
|
319
319
|
3,
|
|
@@ -346,33 +346,33 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
346
346
|
}],
|
|
347
347
|
skeletonConfig: a({
|
|
348
348
|
defaultConfig: z.value,
|
|
349
|
-
userConfig:
|
|
349
|
+
userConfig: Rn.value
|
|
350
350
|
})
|
|
351
|
-
}), { userOptionsVisible:
|
|
352
|
-
function
|
|
353
|
-
vn.value = !0,
|
|
351
|
+
}), { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } = Re({ config: z.value }), { svgRef: V } = ze({ config: z.value.style.chart.title });
|
|
352
|
+
function Gn() {
|
|
353
|
+
vn.value = !0, Un(!0);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
355
|
+
function Kn() {
|
|
356
|
+
Un(!1), vn.value = !1, R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
|
|
357
357
|
index: null,
|
|
358
358
|
indexLabel: null,
|
|
359
359
|
dataset: null
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
let e =
|
|
364
|
-
userConfig:
|
|
365
|
-
defaultConfig:
|
|
362
|
+
function qn() {
|
|
363
|
+
let e = Se({
|
|
364
|
+
userConfig: F.config,
|
|
365
|
+
defaultConfig: Yt
|
|
366
366
|
}), t = {}, n = e.theme;
|
|
367
|
-
if (n) if (!
|
|
367
|
+
if (n) if (!Xt.value(e)) Zt(e), t = e;
|
|
368
368
|
else {
|
|
369
|
-
let r =
|
|
370
|
-
userConfig: Ve[n] ||
|
|
369
|
+
let r = Se({
|
|
370
|
+
userConfig: Ve[n] || F.config,
|
|
371
371
|
defaultConfig: e
|
|
372
372
|
});
|
|
373
373
|
t = {
|
|
374
|
-
...
|
|
375
|
-
userConfig:
|
|
374
|
+
...Se({
|
|
375
|
+
userConfig: F.config,
|
|
376
376
|
defaultConfig: r
|
|
377
377
|
}),
|
|
378
378
|
customPalette: e.customPalette.length ? e.customPalette : o[n] || u
|
|
@@ -381,34 +381,34 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
381
381
|
else t = e;
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
|
-
let
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
let Jn = b(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Yn = b(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
|
|
385
|
+
nt(() => F.config, (e) => {
|
|
386
|
+
zn.value || (z.value = qn()), Hn.value = !z.value.userOptions.showOnChartHover, or({ resetSlicer: !z.value.style.chart.zoom.keepState }), fn.value += 1, pn.value += 1, mn.value += 1, H.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, U.value.width = z.value.style.chart.width, U.value.height = z.value.style.chart.height, U.value.paddingRatio = {
|
|
387
387
|
top: z.value.style.chart.padding.top / z.value.style.chart.height,
|
|
388
388
|
right: z.value.style.chart.padding.right / z.value.style.chart.width,
|
|
389
389
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
390
390
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
391
|
-
},
|
|
392
|
-
}, { deep: !0 }),
|
|
393
|
-
Array.isArray(e) && e.length > 0 && (
|
|
391
|
+
}, jn(), Nn(), !z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0 ? ei() : Sr();
|
|
392
|
+
}, { deep: !0 }), nt(() => F.dataset, (e) => {
|
|
393
|
+
Array.isArray(e) && e.length > 0 && (Vn.value = !1), z.value.style.chart.zoom.keepState ? Sr() : Tr(), jn(), Nn();
|
|
394
394
|
}, { deep: !0 });
|
|
395
|
-
let H =
|
|
395
|
+
let H = k({
|
|
396
396
|
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
397
397
|
showTable: z.value.table.show,
|
|
398
398
|
showTooltip: z.value.style.chart.tooltip.show
|
|
399
399
|
});
|
|
400
|
-
|
|
400
|
+
nt(z, () => {
|
|
401
401
|
H.value = {
|
|
402
402
|
dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
|
|
403
403
|
showTable: z.value.table.show,
|
|
404
404
|
showTooltip: z.value.style.chart.tooltip.show
|
|
405
405
|
};
|
|
406
406
|
}, { immediate: !0 });
|
|
407
|
-
let { isPrinting:
|
|
407
|
+
let { isPrinting: Xn, isImaging: Zn, generatePdf: Qn, generateImage: $n } = ye({
|
|
408
408
|
elementId: `stackline_${I.value}`,
|
|
409
409
|
fileName: z.value.style.chart.title.text || "vue-ui-stackline",
|
|
410
410
|
options: z.value.userOptions.print
|
|
411
|
-
}),
|
|
411
|
+
}), er = b(() => z.value.userOptions.show && !z.value.style.chart.title.text), U = k({
|
|
412
412
|
width: z.value.style.chart.width,
|
|
413
413
|
height: z.value.style.chart.height,
|
|
414
414
|
paddingRatio: {
|
|
@@ -417,13 +417,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
417
417
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
418
418
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
419
419
|
}
|
|
420
|
-
}),
|
|
421
|
-
function
|
|
422
|
-
if (re(
|
|
420
|
+
}), tr = b(() => ue(z.value.customPalette)), nr = $e(null), rr = $e(null), ir = k(null), ar = b(() => z.value.debug);
|
|
421
|
+
function or({ resetSlicer: e = !0 } = {}) {
|
|
422
|
+
if (re(F.dataset) ? (ce({
|
|
423
423
|
componentName: "VueUiStackline",
|
|
424
424
|
type: "dataset",
|
|
425
|
-
debug:
|
|
426
|
-
}),
|
|
425
|
+
debug: ar.value
|
|
426
|
+
}), Vn.value = !0) : F.dataset.forEach((e, t) => {
|
|
427
427
|
ae({
|
|
428
428
|
datasetObject: e,
|
|
429
429
|
requiredAttributes: ["name", "series"]
|
|
@@ -433,10 +433,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
433
433
|
type: "datasetSerieAttribute",
|
|
434
434
|
property: e,
|
|
435
435
|
index: t,
|
|
436
|
-
debug:
|
|
437
|
-
}),
|
|
436
|
+
debug: ar.value
|
|
437
|
+
}), Vn.value = !0;
|
|
438
438
|
});
|
|
439
|
-
}), re(
|
|
439
|
+
}), re(F.dataset) || (Vn.value = z.value.loading), setTimeout(() => {
|
|
440
440
|
dn.value = !0;
|
|
441
441
|
}, 10), z.value.responsive) {
|
|
442
442
|
let e = Me(() => {
|
|
@@ -450,74 +450,74 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
450
450
|
source: ln.value
|
|
451
451
|
});
|
|
452
452
|
requestAnimationFrame(() => {
|
|
453
|
-
U.value.width = e, U.value.height = t - 12, clearTimeout(
|
|
453
|
+
U.value.width = e, U.value.height = t - 12, clearTimeout(ir.value), ir.value = setTimeout(() => {
|
|
454
454
|
dn.value = !0;
|
|
455
455
|
}, 10);
|
|
456
456
|
});
|
|
457
457
|
});
|
|
458
|
-
|
|
458
|
+
nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect()), nr.value = new ResizeObserver(e), rr.value = tn.value.parentNode, nr.value.observe(rr.value);
|
|
459
459
|
}
|
|
460
|
-
e &&
|
|
460
|
+
e && ei();
|
|
461
461
|
}
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
Xe(() => {
|
|
463
|
+
An.stop(), nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect());
|
|
464
464
|
});
|
|
465
|
-
let
|
|
466
|
-
function
|
|
465
|
+
let sr = b(() => z.value.style.chart.grid.y.position === "right");
|
|
466
|
+
function cr() {
|
|
467
467
|
let e = 0;
|
|
468
|
-
|
|
468
|
+
xn.value && (e = Array.from(xn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
469
469
|
let n = t.getComputedTextLength();
|
|
470
470
|
return n > e ? n : e;
|
|
471
471
|
}, 0));
|
|
472
|
-
let t =
|
|
472
|
+
let t = bn.value ? bn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
473
473
|
return {
|
|
474
|
-
left:
|
|
475
|
-
right:
|
|
474
|
+
left: sr.value ? 0 : e + t,
|
|
475
|
+
right: sr.value ? e + t : 0,
|
|
476
476
|
scaleLabelsWidth: e,
|
|
477
477
|
yAxisLabelWidth: t
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
|
-
let
|
|
481
|
-
function
|
|
482
|
-
let e =
|
|
480
|
+
let lr = k(0), ur = k(0), dr = k(0);
|
|
481
|
+
function fr() {
|
|
482
|
+
let e = Sn.value;
|
|
483
483
|
if (!e) {
|
|
484
|
-
|
|
484
|
+
ur.value = 0;
|
|
485
485
|
return;
|
|
486
486
|
}
|
|
487
487
|
try {
|
|
488
488
|
let t = e.getBBox();
|
|
489
|
-
|
|
489
|
+
ur.value = Number.isFinite(t?.height) ? t.height : 0;
|
|
490
490
|
} catch {
|
|
491
|
-
|
|
491
|
+
ur.value = 0;
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
|
|
494
|
+
function pr() {
|
|
495
|
+
dr.value && cancelAnimationFrame(dr.value), dr.value = requestAnimationFrame(() => {
|
|
496
496
|
requestAnimationFrame(() => {
|
|
497
|
-
|
|
497
|
+
fr();
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
Xe(() => {
|
|
502
|
+
dr.value && cancelAnimationFrame(dr.value), ur.value = 0, lr.value = 0;
|
|
503
503
|
});
|
|
504
|
-
let
|
|
504
|
+
let mr = b(() => {
|
|
505
505
|
let e = 0;
|
|
506
|
-
if (
|
|
507
|
-
e =
|
|
506
|
+
if (yn.value) try {
|
|
507
|
+
e = yn.value.getBBox().height;
|
|
508
508
|
} catch {
|
|
509
509
|
e = 0;
|
|
510
510
|
}
|
|
511
|
-
let t = z.value.style.chart.grid.x.timeLabels.show ?
|
|
511
|
+
let t = z.value.style.chart.grid.x.timeLabels.show ? ur.value : 0;
|
|
512
512
|
return e + t;
|
|
513
513
|
}), W = b(() => {
|
|
514
|
-
|
|
515
|
-
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show &&
|
|
514
|
+
En.value;
|
|
515
|
+
let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && F.dataset && F.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
|
|
516
516
|
if (z.value.style.chart.grid.y.axisLabels.show) {
|
|
517
|
-
let e =
|
|
517
|
+
let e = cr();
|
|
518
518
|
i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
|
|
519
519
|
}
|
|
520
|
-
let c = z.value.style.chart.padding.top + r, l = t - t * n -
|
|
520
|
+
let c = z.value.style.chart.padding.top + r, l = t - t * n - lr.value - a, u = e - z.value.style.chart.padding.bottom - mr.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - lr.value - a, p = e - c - z.value.style.chart.padding.bottom - mr.value - r;
|
|
521
521
|
return {
|
|
522
522
|
chartHeight: Math.max(0, e),
|
|
523
523
|
chartWidth: Math.max(0, t),
|
|
@@ -532,7 +532,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
532
532
|
scaleLabelsWidth: o,
|
|
533
533
|
yAxisLabelWidth: s
|
|
534
534
|
};
|
|
535
|
-
}),
|
|
535
|
+
}), hr = b(() => {
|
|
536
536
|
let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
|
|
537
537
|
fill: z.value.style.chart.zoom.preview.fill,
|
|
538
538
|
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
@@ -553,8 +553,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
553
553
|
height: r,
|
|
554
554
|
...u
|
|
555
555
|
};
|
|
556
|
-
}), G = b(() =>
|
|
557
|
-
let n = oe(), r = d(e.color) ||
|
|
556
|
+
}), G = b(() => Bn.value.map((e, t) => {
|
|
557
|
+
let n = oe(), r = d(e.color) || tr.value[t] || u[t] || u[t % u.length];
|
|
558
558
|
return {
|
|
559
559
|
...e,
|
|
560
560
|
shape: e.shape || "circle",
|
|
@@ -566,66 +566,66 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
566
566
|
id: n,
|
|
567
567
|
color: r
|
|
568
568
|
};
|
|
569
|
-
})),
|
|
569
|
+
})), gr = b(() => G.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), _r = b(() => G.value.filter((e) => !L.value.includes(e.id) && e.standalone)), K = b(() => {
|
|
570
570
|
let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
|
|
571
571
|
return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
|
|
572
572
|
});
|
|
573
|
-
function
|
|
574
|
-
|
|
573
|
+
function vr(e) {
|
|
574
|
+
Pn.value = e;
|
|
575
575
|
}
|
|
576
|
-
let q =
|
|
576
|
+
let q = k({
|
|
577
577
|
start: 0,
|
|
578
|
-
end: Math.max(...
|
|
579
|
-
}), J =
|
|
578
|
+
end: Math.max(...Bn.value.map((e) => e.series.length))
|
|
579
|
+
}), J = k({
|
|
580
580
|
start: 0,
|
|
581
|
-
end: Math.max(...
|
|
581
|
+
end: Math.max(...Bn.value.map((e) => e.series.length))
|
|
582
582
|
});
|
|
583
|
-
function
|
|
583
|
+
function yr(e) {
|
|
584
584
|
return (q.value.start ?? 0) + (e ?? 0);
|
|
585
585
|
}
|
|
586
|
-
let
|
|
587
|
-
function
|
|
586
|
+
let br = b(() => z.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
|
|
587
|
+
function xr(e, t) {
|
|
588
588
|
J.value[e] = t;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Sr() {
|
|
591
591
|
let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
|
|
592
592
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, sn.value && (sn.value.setStartValue(t), sn.value.setEndValue(n));
|
|
593
593
|
}
|
|
594
|
-
let
|
|
595
|
-
function
|
|
594
|
+
let Cr = k(null);
|
|
595
|
+
function wr() {
|
|
596
596
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
597
597
|
}
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
Xe(() => {
|
|
599
|
+
Cr.value && cancelAnimationFrame(Cr.value);
|
|
600
600
|
});
|
|
601
|
-
async function
|
|
602
|
-
if (z.value.style.chart.zoom.keepState && !e &&
|
|
603
|
-
|
|
601
|
+
async function Tr({ force: e = !1 } = {}) {
|
|
602
|
+
if (z.value.style.chart.zoom.keepState && !e && Qr.value && (q.value.start !== 0 || q.value.end !== 0)) {
|
|
603
|
+
Sr();
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
|
|
607
|
-
await
|
|
606
|
+
ei(), await Je(), Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(async () => {
|
|
607
|
+
await wr(), ei();
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
let
|
|
610
|
+
let Er = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Dr = b(() => m(gr.value.map((e) => ({
|
|
611
611
|
...e,
|
|
612
612
|
series: e.series.map((e) => e ?? 0)
|
|
613
|
-
}))).slice(q.value.start, q.value.end)),
|
|
613
|
+
}))).slice(q.value.start, q.value.end)), Or = b(() => L.value.length === G.value.length), kr = b(() => {
|
|
614
614
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
615
|
-
let e = G.value.filter((e) =>
|
|
615
|
+
let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone);
|
|
616
616
|
if (e.length) return m(e.map((e) => ({
|
|
617
617
|
...e,
|
|
618
618
|
series: (e.series || []).map((e) => e ?? 0)
|
|
619
619
|
})));
|
|
620
|
-
let t =
|
|
620
|
+
let t = _r.value;
|
|
621
621
|
if (!t.length) return [];
|
|
622
622
|
let n = Math.max(...t.map((e) => e.series.length || 0));
|
|
623
623
|
return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
|
|
624
|
-
}),
|
|
624
|
+
}), Ar = b(() => {
|
|
625
625
|
if (!z.value.style.chart.zoom.minimap.show) return [];
|
|
626
|
-
let e = G.value.filter((e) =>
|
|
626
|
+
let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = _r.value, n = e.length ? [{
|
|
627
627
|
name: "",
|
|
628
|
-
series:
|
|
628
|
+
series: kr.value,
|
|
629
629
|
color: "#000000",
|
|
630
630
|
isVisible: !0
|
|
631
631
|
}] : [], r = t.map((e) => ({
|
|
@@ -635,14 +635,14 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
635
635
|
isVisible: !0
|
|
636
636
|
}));
|
|
637
637
|
return n.concat(r);
|
|
638
|
-
}),
|
|
638
|
+
}), jr = b(() => m(gr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
|
|
639
639
|
...e,
|
|
640
640
|
series: e.series.map((t, n) => {
|
|
641
641
|
let r = t ?? 0;
|
|
642
642
|
return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
|
|
643
643
|
})
|
|
644
|
-
}))).slice(q.value.start, q.value.end)),
|
|
645
|
-
let e =
|
|
644
|
+
}))).slice(q.value.start, q.value.end)), Mr = b(() => {
|
|
645
|
+
let e = gr.value.filter((e) => !L.value.includes(e.id));
|
|
646
646
|
return {
|
|
647
647
|
positive: m(e.map((e) => ({
|
|
648
648
|
...e,
|
|
@@ -653,9 +653,9 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
653
653
|
series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
|
|
654
654
|
})))
|
|
655
655
|
};
|
|
656
|
-
}),
|
|
656
|
+
}), Nr = b(() => {
|
|
657
657
|
let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
|
|
658
|
-
return
|
|
658
|
+
return _r.value.forEach((r) => {
|
|
659
659
|
for (let i = 0; i < e; i += 1) {
|
|
660
660
|
let e = r.series[q.value.start + i] ?? 0;
|
|
661
661
|
e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
|
|
@@ -664,23 +664,24 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
664
664
|
positive: t,
|
|
665
665
|
negative: n
|
|
666
666
|
};
|
|
667
|
-
}),
|
|
667
|
+
}), Pr = b(() => jr.value.map((e, t) => ({
|
|
668
668
|
value: e,
|
|
669
669
|
sign: e >= 0 ? 1 : -1
|
|
670
670
|
})));
|
|
671
|
-
function
|
|
672
|
-
return { y0:
|
|
671
|
+
function Fr() {
|
|
672
|
+
return { y0: Lr.value?.[0]?.zero ?? W.value.bottom };
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let { y0: t } =
|
|
676
|
-
if ((
|
|
674
|
+
function Ir(e) {
|
|
675
|
+
let { y0: t } = Fr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
|
|
676
|
+
if ((Pr.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
|
|
677
677
|
let n = Infinity;
|
|
678
678
|
for (let t of Y.value || []) {
|
|
679
679
|
let r = t?.series?.[e], i = t?.topY?.[e];
|
|
680
680
|
(r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
|
|
681
681
|
}
|
|
682
682
|
return i((Number.isFinite(n) ? n : t) - r - z.value.style.chart.lines.totalValues.offsetY);
|
|
683
|
-
}
|
|
683
|
+
}
|
|
684
|
+
{
|
|
684
685
|
let a = -Infinity;
|
|
685
686
|
for (let t of Y.value || []) {
|
|
686
687
|
let n = t?.series?.[e], r = t?.topY?.[e];
|
|
@@ -689,8 +690,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
689
690
|
return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + z.value.style.chart.lines.totalValues.offsetY);
|
|
690
691
|
}
|
|
691
692
|
}
|
|
692
|
-
let
|
|
693
|
-
let e = Math.max(...
|
|
693
|
+
let Lr = b(() => {
|
|
694
|
+
let e = Math.max(...Mr.value.positive, 0), t = Math.min(...Mr.value.negative, 0), n = Math.max(...Nr.value.positive, 0), r = Math.min(...Nr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
|
|
694
695
|
-Infinity,
|
|
695
696
|
Infinity,
|
|
696
697
|
NaN,
|
|
@@ -702,13 +703,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
702
703
|
return {
|
|
703
704
|
zero: ee,
|
|
704
705
|
y: n,
|
|
705
|
-
x:
|
|
706
|
+
x: sr.value ? X.value.right + 8 : X.value.left - 8,
|
|
706
707
|
value: t
|
|
707
708
|
};
|
|
708
709
|
});
|
|
709
|
-
}),
|
|
710
|
-
|
|
711
|
-
let e = ++
|
|
710
|
+
}), Rr = k([]), zr = k([]), Br = 0;
|
|
711
|
+
rt(() => {
|
|
712
|
+
let e = ++Br;
|
|
712
713
|
(async () => {
|
|
713
714
|
let t = await _e({
|
|
714
715
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -717,12 +718,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
717
718
|
start: q.value.start,
|
|
718
719
|
end: q.value.end
|
|
719
720
|
});
|
|
720
|
-
e ===
|
|
721
|
+
e === Br && (Rr.value = t);
|
|
721
722
|
})();
|
|
722
723
|
});
|
|
723
|
-
let
|
|
724
|
-
|
|
725
|
-
let e = ++
|
|
724
|
+
let Vr = 0;
|
|
725
|
+
rt(() => {
|
|
726
|
+
let e = ++Vr;
|
|
726
727
|
(async () => {
|
|
727
728
|
let t = await _e({
|
|
728
729
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -731,55 +732,55 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
731
732
|
start: 0,
|
|
732
733
|
end: K.value
|
|
733
734
|
});
|
|
734
|
-
e ===
|
|
735
|
+
e === Vr && (zr.value = t);
|
|
735
736
|
})();
|
|
736
737
|
});
|
|
737
|
-
let
|
|
738
|
+
let Hr = b(() => {
|
|
738
739
|
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
739
|
-
return
|
|
740
|
-
}),
|
|
741
|
-
let e = z.value.style.chart.grid.x.timeLabels, t =
|
|
742
|
-
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
740
|
+
return Rr.value.length ? Math.min(e, [...new Set(Rr.value.map((e) => e.text))].length) : e;
|
|
741
|
+
}), Ur = b(() => {
|
|
742
|
+
let e = z.value.style.chart.grid.x.timeLabels, t = Rr.value || [], n = zr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
743
|
+
return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), o, s, r, i, a);
|
|
743
744
|
});
|
|
744
|
-
|
|
745
|
-
z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (
|
|
745
|
+
rt(() => {
|
|
746
|
+
z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Ur.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Sn.value, yn.value, pr();
|
|
746
747
|
}, { flush: "post" });
|
|
747
|
-
let
|
|
748
|
+
let Wr = k({
|
|
748
749
|
months: [],
|
|
749
750
|
shortMonths: [],
|
|
750
751
|
days: [],
|
|
751
752
|
shortDays: []
|
|
752
|
-
}),
|
|
753
|
-
|
|
754
|
-
let e = ++
|
|
753
|
+
}), Gr = 0;
|
|
754
|
+
rt(() => {
|
|
755
|
+
let e = ++Gr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
755
756
|
(async () => {
|
|
756
757
|
let n = await ge(t.locale).catch(() => ge("en"));
|
|
757
|
-
e ===
|
|
758
|
+
e === Gr && (Wr.value = n.data);
|
|
758
759
|
})();
|
|
759
760
|
});
|
|
760
|
-
let
|
|
761
|
+
let Kr = b(() => {
|
|
761
762
|
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = he({
|
|
762
763
|
useUTC: e.useUTC,
|
|
763
|
-
locale:
|
|
764
|
+
locale: Wr.value,
|
|
764
765
|
januaryAsYear: e.januaryAsYear
|
|
765
766
|
});
|
|
766
767
|
return (e, n) => {
|
|
767
768
|
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
768
769
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
769
770
|
};
|
|
770
|
-
}),
|
|
771
|
-
text:
|
|
771
|
+
}), qr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
772
|
+
text: Kr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
772
773
|
absoluteIndex: t
|
|
773
|
-
}))),
|
|
774
|
-
text:
|
|
774
|
+
}))), Jr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
775
|
+
text: Kr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
775
776
|
absoluteIndex: t
|
|
776
|
-
}))),
|
|
777
|
-
if (!en.value && !
|
|
778
|
-
let e = W.value.height, t =
|
|
777
|
+
}))), Yr = b(() => {
|
|
778
|
+
if (!en.value && !zn.value) return [];
|
|
779
|
+
let e = W.value.height, t = Lr.value[0] ? Lr.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Mr.value.positive, 0), o = Math.min(...Mr.value.negative, 0), s = Math.max(...Nr.value.positive, 0), c = Math.min(...Nr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), _ = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
|
|
779
780
|
return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
|
|
780
781
|
let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
|
|
781
782
|
for (let u = 0; u < i; u += 1) {
|
|
782
|
-
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (
|
|
783
|
+
let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (Dr.value[u] || 1) : g / p;
|
|
783
784
|
if (g >= 0) {
|
|
784
785
|
let n = e * Math.abs(_);
|
|
785
786
|
if (r.standalone) c[u] = t, l[u] = t - n;
|
|
@@ -802,7 +803,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
802
803
|
y: l[e]
|
|
803
804
|
})), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), g = f === 0 ? 1 : f, ee = o.map((e, t) => {
|
|
804
805
|
if (z.value.style.chart.lines.distributed && !r.standalone) {
|
|
805
|
-
let n = a[t], r =
|
|
806
|
+
let n = a[t], r = Dr.value[n] || 1;
|
|
806
807
|
return (e || 0) / r;
|
|
807
808
|
}
|
|
808
809
|
return (e || 0) / g;
|
|
@@ -821,14 +822,14 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
821
822
|
};
|
|
822
823
|
});
|
|
823
824
|
}), Y = b(() => {
|
|
824
|
-
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...
|
|
825
|
+
let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Mr.value.positive, 0), n = Math.min(...Mr.value.negative, 0), r = Math.max(...Nr.value.positive, 0), i = Math.min(...Nr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), s = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), c = Number(s.min) || 0, u = Number(s.max) || 0, d = Math.abs(c), f = u + d || 1, m = (e) => {
|
|
825
826
|
if (z.value.style.chart.lines.distributed) {
|
|
826
827
|
let t = Math.max(0, Math.min(1, e));
|
|
827
828
|
return minimapH - minimapH * t;
|
|
828
829
|
}
|
|
829
830
|
return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
|
|
830
831
|
};
|
|
831
|
-
return
|
|
832
|
+
return Yr.value.map((t) => {
|
|
832
833
|
let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
|
|
833
834
|
let n = r.length;
|
|
834
835
|
return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
|
|
@@ -871,67 +872,67 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
871
872
|
yMinimapBase: o
|
|
872
873
|
};
|
|
873
874
|
});
|
|
874
|
-
}),
|
|
875
|
-
timeLabel:
|
|
875
|
+
}), Xr = b(() => $.value === null || $.value === void 0 ? null : {
|
|
876
|
+
timeLabel: _i($.value),
|
|
876
877
|
absoluteIndex: $.value + q.value.start,
|
|
877
878
|
seriesIndex: $.value,
|
|
878
|
-
datapoint:
|
|
879
|
+
datapoint: gi.value,
|
|
879
880
|
series: Y.value,
|
|
880
881
|
config: z.value
|
|
881
|
-
}),
|
|
882
|
-
function
|
|
882
|
+
}), Zr = k(!1), Qr = k(!1);
|
|
883
|
+
function $r(e) {
|
|
883
884
|
let t = K.value;
|
|
884
885
|
return e > t ? t : e < 0 || e < q.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
|
|
885
886
|
}
|
|
886
|
-
function
|
|
887
|
-
if (
|
|
888
|
-
|
|
887
|
+
function ei() {
|
|
888
|
+
if (!Zr.value) {
|
|
889
|
+
Zr.value = !0;
|
|
889
890
|
try {
|
|
890
891
|
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
|
|
891
892
|
if (n && r <= 0) return;
|
|
892
|
-
let i = e ?? 0, a = t == null ? r : Math.min(
|
|
893
|
-
|
|
893
|
+
let i = e ?? 0, a = t == null ? r : Math.min($r(t + 1), r);
|
|
894
|
+
ii.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Sr(), Qr.value = !0;
|
|
894
895
|
} finally {
|
|
895
896
|
queueMicrotask(() => {
|
|
896
|
-
|
|
897
|
-
}),
|
|
897
|
+
ii.value = !1;
|
|
898
|
+
}), Zr.value = !1;
|
|
898
899
|
}
|
|
899
900
|
}
|
|
900
901
|
}
|
|
901
|
-
function
|
|
902
|
-
|
|
902
|
+
function ti(e) {
|
|
903
|
+
Zr.value || ii.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Sr());
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
-
if (
|
|
906
|
-
let t =
|
|
907
|
-
t !== q.value.end && (q.value.end = t, J.value.end = t,
|
|
905
|
+
function ni(e) {
|
|
906
|
+
if (Zr.value || ii.value) return;
|
|
907
|
+
let t = $r(e);
|
|
908
|
+
t !== q.value.end && (q.value.end = t, J.value.end = t, Sr());
|
|
908
909
|
}
|
|
909
910
|
let X = b(() => ({
|
|
910
911
|
left: W.value.left,
|
|
911
912
|
right: W.value.right,
|
|
912
913
|
width: W.value.width
|
|
913
|
-
}))
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
914
|
+
})), ri = b(() => {
|
|
915
|
+
let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.lines.dataLabels;
|
|
916
|
+
return Lr.value.map((r) => String(v(e.formatter, r.value, h({
|
|
917
|
+
p: t,
|
|
918
|
+
v: r.value,
|
|
919
|
+
s: n,
|
|
920
|
+
r: e.rounding
|
|
921
|
+
}), { datapoint: r }) ?? "")).join("|");
|
|
922
|
+
});
|
|
923
|
+
nt([
|
|
924
|
+
ri,
|
|
924
925
|
() => z.value.style.chart.grid.y.axisLabels.show,
|
|
925
926
|
() => z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
926
927
|
() => z.value.style.chart.grid.y.axisLabels.bold,
|
|
927
928
|
() => z.value.style.chart.grid.y.position
|
|
928
929
|
], () => {
|
|
929
|
-
z.value.style.chart.grid.y.axisLabels.show &&
|
|
930
|
+
z.value.style.chart.grid.y.axisLabels.show && Nn();
|
|
930
931
|
}, { flush: "post" });
|
|
931
|
-
let
|
|
932
|
+
let ii = k(!1), ai = b(() => U.value.width), oi = b(() => U.value.height);
|
|
932
933
|
De({
|
|
933
|
-
timeLabelsEls:
|
|
934
|
-
timeLabels:
|
|
934
|
+
timeLabelsEls: Sn,
|
|
935
|
+
timeLabels: Rr,
|
|
935
936
|
slicer: q,
|
|
936
937
|
configRef: z,
|
|
937
938
|
rotationPath: [
|
|
@@ -952,12 +953,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
952
953
|
"enable"
|
|
953
954
|
],
|
|
954
955
|
isAutoSize: !1,
|
|
955
|
-
width:
|
|
956
|
-
height:
|
|
956
|
+
width: ai,
|
|
957
|
+
height: oi,
|
|
957
958
|
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
958
959
|
});
|
|
959
|
-
let
|
|
960
|
-
function
|
|
960
|
+
let si = k(null);
|
|
961
|
+
function ci(e) {
|
|
961
962
|
let t = V.value;
|
|
962
963
|
if (!t) return null;
|
|
963
964
|
if (t.createSVGPoint && t.getScreenCTM) {
|
|
@@ -985,11 +986,11 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
985
986
|
ok: !0
|
|
986
987
|
};
|
|
987
988
|
}
|
|
988
|
-
let
|
|
989
|
+
let li = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), ui = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
|
|
989
990
|
function Q(e) {
|
|
990
|
-
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e *
|
|
991
|
+
return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * ui.value;
|
|
991
992
|
}
|
|
992
|
-
function
|
|
993
|
+
function di(e) {
|
|
993
994
|
if (Z.value <= 1) return {
|
|
994
995
|
x: W.value.left,
|
|
995
996
|
width: W.value.width
|
|
@@ -1000,43 +1001,43 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1000
1001
|
width: Math.max(0, n - t)
|
|
1001
1002
|
};
|
|
1002
1003
|
}
|
|
1003
|
-
function
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
let t =
|
|
1004
|
+
function fi(e) {
|
|
1005
|
+
Fn.value || (li && cancelAnimationFrame(li), li = requestAnimationFrame(() => {
|
|
1006
|
+
li = 0;
|
|
1007
|
+
let t = ci(e);
|
|
1007
1008
|
if (!t || !V.value) {
|
|
1008
|
-
|
|
1009
|
+
hi();
|
|
1009
1010
|
return;
|
|
1010
1011
|
}
|
|
1011
1012
|
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
1012
1013
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1013
|
-
|
|
1014
|
+
hi();
|
|
1014
1015
|
return;
|
|
1015
1016
|
}
|
|
1016
1017
|
let o = 0;
|
|
1017
1018
|
if (Z.value > 1) {
|
|
1018
|
-
let e = (t.x - n) /
|
|
1019
|
+
let e = (t.x - n) / ui.value;
|
|
1019
1020
|
o = Math.round(e);
|
|
1020
1021
|
} else o = 0;
|
|
1021
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
1022
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), si.value !== o && (si.value = o, yi(!0, o));
|
|
1022
1023
|
}));
|
|
1023
1024
|
}
|
|
1024
|
-
function
|
|
1025
|
-
let t =
|
|
1025
|
+
function pi(e) {
|
|
1026
|
+
let t = ci(e);
|
|
1026
1027
|
if (!t || !V.value) return;
|
|
1027
1028
|
let { left: n, right: r, top: i, bottom: a } = W.value;
|
|
1028
1029
|
if (t.x < n || t.x > r || t.y < i || t.y > a) return;
|
|
1029
1030
|
let o = 0;
|
|
1030
1031
|
if (Z.value > 1) {
|
|
1031
|
-
let e = (t.x - n) /
|
|
1032
|
+
let e = (t.x - n) / ui.value;
|
|
1032
1033
|
o = Math.round(e);
|
|
1033
1034
|
} else o = 0;
|
|
1034
|
-
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1),
|
|
1035
|
+
o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ea({
|
|
1035
1036
|
seriesIndex: o,
|
|
1036
|
-
datapoint:
|
|
1037
|
-
}),
|
|
1037
|
+
datapoint: Ki(o)
|
|
1038
|
+
}), mi(o);
|
|
1038
1039
|
}
|
|
1039
|
-
function
|
|
1040
|
+
function mi(e) {
|
|
1040
1041
|
let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
|
|
1041
1042
|
name: t.name,
|
|
1042
1043
|
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
@@ -1047,12 +1048,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1047
1048
|
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
1048
1049
|
datapoint: t,
|
|
1049
1050
|
seriesIndex: e + q.value.start
|
|
1050
|
-
}),
|
|
1051
|
+
}), $t("selectDatapoint", {
|
|
1051
1052
|
datapoint: t,
|
|
1052
|
-
period:
|
|
1053
|
+
period: Rr.value[e]
|
|
1053
1054
|
});
|
|
1054
1055
|
}
|
|
1055
|
-
|
|
1056
|
+
nt(() => [
|
|
1056
1057
|
q.value.start,
|
|
1057
1058
|
q.value.end,
|
|
1058
1059
|
Y.value.length
|
|
@@ -1066,11 +1067,11 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1066
1067
|
$.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
|
|
1067
1068
|
}
|
|
1068
1069
|
});
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1070
|
+
function hi() {
|
|
1071
|
+
li &&= (cancelAnimationFrame(li), 0), si.value = null, yi(!1, null);
|
|
1071
1072
|
}
|
|
1072
|
-
let $ =
|
|
1073
|
-
let e = $.value, t = e == null ? null :
|
|
1073
|
+
let $ = k(null), gi = b(() => {
|
|
1074
|
+
let e = $.value, t = e == null ? null : yr(e);
|
|
1074
1075
|
return Y.value.map((n) => ({
|
|
1075
1076
|
slotAbsoluteIndex: n.absoluteIndex,
|
|
1076
1077
|
shape: n.shape || "circle",
|
|
@@ -1083,23 +1084,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1083
1084
|
standalone: !!n.standalone
|
|
1084
1085
|
}));
|
|
1085
1086
|
});
|
|
1086
|
-
function
|
|
1087
|
+
function _i(e) {
|
|
1087
1088
|
if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1088
|
-
let t =
|
|
1089
|
+
let t = Rr.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
|
|
1089
1090
|
return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1090
1091
|
}
|
|
1091
|
-
let
|
|
1092
|
-
let e = z.value.style.chart.tooltip.customFormat, t = [...
|
|
1092
|
+
let vi = b(() => {
|
|
1093
|
+
let e = z.value.style.chart.tooltip.customFormat, t = [...gi.value].reverse(), n = t.filter((e) => !e.standalone), r = t.filter((e) => e.standalone), i = n.map((e) => e.value).filter((e) => f(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
|
|
1093
1094
|
if (de(e) && te(() => e({
|
|
1094
1095
|
absoluteIndex: $.value + q.value.start,
|
|
1095
1096
|
seriesIndex: $.value,
|
|
1096
|
-
datapoint:
|
|
1097
|
+
datapoint: gi.value,
|
|
1097
1098
|
series: G.value,
|
|
1098
1099
|
config: z.value
|
|
1099
1100
|
}))) return e({
|
|
1100
1101
|
absoluteIndex: $.value + q.value.start,
|
|
1101
1102
|
seriesIndex: $.value,
|
|
1102
|
-
datapoint:
|
|
1103
|
+
datapoint: gi.value,
|
|
1103
1104
|
series: G.value,
|
|
1104
1105
|
config: z.value
|
|
1105
1106
|
});
|
|
@@ -1174,7 +1175,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1174
1175
|
}, { datapoint: e })) : ""} ${r}${n}${o}
|
|
1175
1176
|
</div>
|
|
1176
1177
|
`;
|
|
1177
|
-
}, _ = "", ee =
|
|
1178
|
+
}, _ = "", ee = _i($.value);
|
|
1178
1179
|
return ee && (_ += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), o && n.length > 1 && (_ += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1179
1180
|
<span>${c}:</span>
|
|
1180
1181
|
<span>${v(z.value.style.chart.lines.dataLabels.formatter, ie(i), h({
|
|
@@ -1188,13 +1189,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1188
1189
|
} })}</span>
|
|
1189
1190
|
</div>`), n.forEach((e) => {
|
|
1190
1191
|
_ += g(e, l);
|
|
1191
|
-
}), r.length && (_ += `<div style="border-top:1px solid ${
|
|
1192
|
+
}), r.length && (_ += `<div style="border-top:1px solid ${gr.value.length ? u : "transparent"}; margin:${gr.value.length ? "6px 0" : "0"};"></div>`, r.forEach((e) => {
|
|
1192
1193
|
_ += g(e, !1);
|
|
1193
1194
|
})), `<div>${_}</div>`;
|
|
1194
1195
|
});
|
|
1195
|
-
function
|
|
1196
|
-
if (
|
|
1197
|
-
|
|
1196
|
+
function yi(e, t = null, n = "pointer") {
|
|
1197
|
+
if (Or.value) return;
|
|
1198
|
+
kn.value = n, nn.value = e;
|
|
1198
1199
|
let r = Y.value.map((e) => ({
|
|
1199
1200
|
name: e.name,
|
|
1200
1201
|
value: [
|
|
@@ -1204,13 +1205,13 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1204
1205
|
].includes(e.series[t]) ? null : e.series[t],
|
|
1205
1206
|
color: e.color
|
|
1206
1207
|
}));
|
|
1207
|
-
e ? (R.value = t, $.value = t,
|
|
1208
|
+
e ? (R.value = t, $.value = t, ea({
|
|
1208
1209
|
seriesIndex: t,
|
|
1209
1210
|
datapoint: r
|
|
1210
1211
|
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1211
1212
|
datapoint: r,
|
|
1212
1213
|
seriesIndex: t + q.value.start
|
|
1213
|
-
})) : (R.value = null, $.value = null,
|
|
1214
|
+
})) : (R.value = null, $.value = null, $t("selectX", {
|
|
1214
1215
|
index: null,
|
|
1215
1216
|
indexLabel: null,
|
|
1216
1217
|
dataset: null
|
|
@@ -1219,7 +1220,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1219
1220
|
seriesIndex: t + q.value.start
|
|
1220
1221
|
}));
|
|
1221
1222
|
}
|
|
1222
|
-
function
|
|
1223
|
+
function bi(e, t) {
|
|
1223
1224
|
let n = JSON.parse(JSON.stringify(Y.value)).map((e) => ({
|
|
1224
1225
|
name: e.name,
|
|
1225
1226
|
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
@@ -1227,31 +1228,31 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1227
1228
|
color: e.color,
|
|
1228
1229
|
id: e.id
|
|
1229
1230
|
}));
|
|
1230
|
-
|
|
1231
|
+
$t("selectTimeLabel", {
|
|
1231
1232
|
datapoint: n,
|
|
1232
1233
|
absoluteIndex: e.absoluteIndex,
|
|
1233
1234
|
label: e.text
|
|
1234
1235
|
});
|
|
1235
1236
|
}
|
|
1236
|
-
function
|
|
1237
|
-
L.value.length ? L.value = [] :
|
|
1237
|
+
function xi() {
|
|
1238
|
+
L.value.length ? L.value = [] : Ci.value.forEach((e) => {
|
|
1238
1239
|
L.value.push(e.id);
|
|
1239
|
-
}),
|
|
1240
|
+
}), $t("selectLegend", Y.value);
|
|
1240
1241
|
}
|
|
1241
|
-
function
|
|
1242
|
+
function Si(e) {
|
|
1242
1243
|
if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
|
|
1243
1244
|
else {
|
|
1244
1245
|
if (L.value.length === G.value.length - 1) return;
|
|
1245
1246
|
L.value.push(e.id);
|
|
1246
1247
|
}
|
|
1247
|
-
|
|
1248
|
+
$t("selectLegend", Y.value);
|
|
1248
1249
|
}
|
|
1249
|
-
let
|
|
1250
|
+
let Ci = b(() => G.value.map((e) => ({
|
|
1250
1251
|
...e,
|
|
1251
1252
|
opacity: L.value.includes(e.id) ? .5 : 1,
|
|
1252
|
-
segregate: () =>
|
|
1253
|
+
segregate: () => Si(e),
|
|
1253
1254
|
isSegregated: L.value.includes(e.id)
|
|
1254
|
-
}))),
|
|
1255
|
+
}))), wi = b(() => ({
|
|
1255
1256
|
cy: "stackline-legend",
|
|
1256
1257
|
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1257
1258
|
color: z.value.style.chart.legend.color,
|
|
@@ -1259,18 +1260,18 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1259
1260
|
paddingBottom: 12,
|
|
1260
1261
|
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1261
1262
|
}));
|
|
1262
|
-
function wi(e) {
|
|
1263
|
-
return G.value.length ? G.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1264
|
-
}
|
|
1265
1263
|
function Ti(e) {
|
|
1266
|
-
|
|
1267
|
-
t !== null && L.value.includes(t.id) && xi({ id: t.id });
|
|
1264
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (ar.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (ar.value && console.warn("VueUiStackline - There are no series to show."), null);
|
|
1268
1265
|
}
|
|
1269
1266
|
function Ei(e) {
|
|
1270
|
-
let t =
|
|
1271
|
-
t !== null &&
|
|
1267
|
+
let t = Ti(e);
|
|
1268
|
+
t !== null && L.value.includes(t.id) && Si({ id: t.id });
|
|
1269
|
+
}
|
|
1270
|
+
function Di(e) {
|
|
1271
|
+
let t = Ti(e);
|
|
1272
|
+
t !== null && (L.value.includes(t.id) || Si({ id: t.id }));
|
|
1272
1273
|
}
|
|
1273
|
-
let
|
|
1274
|
+
let Oi = b(() => {
|
|
1274
1275
|
if (Y.value.length === 0) return {
|
|
1275
1276
|
head: [],
|
|
1276
1277
|
body: [],
|
|
@@ -1281,7 +1282,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1281
1282
|
label: e,
|
|
1282
1283
|
color: t
|
|
1283
1284
|
})), t = [];
|
|
1284
|
-
return
|
|
1285
|
+
return Ur.value.forEach((e) => {
|
|
1285
1286
|
let n = e.absoluteIndex, r = [z.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
|
|
1286
1287
|
G.value.forEach((e) => {
|
|
1287
1288
|
let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
|
|
@@ -1292,21 +1293,21 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1292
1293
|
body: t
|
|
1293
1294
|
};
|
|
1294
1295
|
});
|
|
1295
|
-
function
|
|
1296
|
+
function ki(e = null) {
|
|
1296
1297
|
let n = [
|
|
1297
1298
|
[z.value.style.chart.title.text],
|
|
1298
1299
|
[z.value.style.chart.title.subtitle.text],
|
|
1299
1300
|
[""]
|
|
1300
|
-
], i = ["", ...
|
|
1301
|
-
e ? e(
|
|
1302
|
-
csvContent:
|
|
1301
|
+
], i = ["", ...Oi.value.head.map((e) => e.label)], a = Oi.value.body, o = n.concat([i]).concat(a), s = r(o);
|
|
1302
|
+
e ? e(s) : t({
|
|
1303
|
+
csvContent: s,
|
|
1303
1304
|
title: z.value.style.chart.title.text || "vue-ui-stackline"
|
|
1304
1305
|
});
|
|
1305
1306
|
}
|
|
1306
|
-
let
|
|
1307
|
+
let Ai = b(() => {
|
|
1307
1308
|
let e = [""].concat(Y.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = Math.max(0, q.value.end - q.value.start);
|
|
1308
1309
|
for (let e = 0; e < n; e += 1) {
|
|
1309
|
-
let n =
|
|
1310
|
+
let n = yr(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? Rr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
|
|
1310
1311
|
let n = t.series?.[e] ?? 0;
|
|
1311
1312
|
return Number(n.toFixed(z.value.table.td.roundingValue));
|
|
1312
1313
|
}), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1330,30 +1331,16 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1330
1331
|
},
|
|
1331
1332
|
colNames: [z.value.table.columnNames.period].concat(Y.value.map((e) => e.name), z.value.table.columnNames.total)
|
|
1332
1333
|
};
|
|
1333
|
-
}),
|
|
1334
|
+
}), ji = b(() => z.value.style.chart.backgroundColor), Mi = b(() => z.value.style.chart.legend), Ni = b(() => z.value.style.chart.title), { isCallbackImaging: Pi, isCallbackSvg: Fi, generateSvg: Ii, onGenerateImage: Li } = we({
|
|
1334
1335
|
svg: V,
|
|
1335
|
-
title:
|
|
1336
|
-
legend:
|
|
1337
|
-
legendItems:
|
|
1338
|
-
backgroundColor:
|
|
1336
|
+
title: Ni,
|
|
1337
|
+
legend: Mi,
|
|
1338
|
+
legendItems: Ci,
|
|
1339
|
+
backgroundColor: ji,
|
|
1340
|
+
getSvgCallback: () => z.value.userOptions.callbacks.svg,
|
|
1341
|
+
generateImage: $n
|
|
1339
1342
|
});
|
|
1340
|
-
async function
|
|
1341
|
-
bn.value = !0, await Je();
|
|
1342
|
-
try {
|
|
1343
|
-
if (e) {
|
|
1344
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Ni();
|
|
1345
|
-
await Promise.resolve(z.value.userOptions.callbacks.svg({
|
|
1346
|
-
blob: e,
|
|
1347
|
-
url: t,
|
|
1348
|
-
text: n,
|
|
1349
|
-
dataUrl: r
|
|
1350
|
-
}));
|
|
1351
|
-
} else await Promise.resolve(Mi());
|
|
1352
|
-
} finally {
|
|
1353
|
-
bn.value = !1;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
async function Fi({ scale: e = 2 } = {}) {
|
|
1343
|
+
async function Ri({ scale: e = 2 } = {}) {
|
|
1357
1344
|
if (!tn.value) return;
|
|
1358
1345
|
let { imageUri: t, base64: n } = await Oe({
|
|
1359
1346
|
domElement: tn.value,
|
|
@@ -1372,10 +1359,10 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1372
1359
|
...a
|
|
1373
1360
|
};
|
|
1374
1361
|
}
|
|
1375
|
-
let
|
|
1362
|
+
let zi = b(() => {
|
|
1376
1363
|
let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
|
|
1377
1364
|
return {
|
|
1378
|
-
component: e ?
|
|
1365
|
+
component: e ? Jt : Ut,
|
|
1379
1366
|
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1380
1367
|
props: e ? {
|
|
1381
1368
|
backgroundColor: z.value.table.th.backgroundColor,
|
|
@@ -1403,29 +1390,29 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1403
1390
|
}
|
|
1404
1391
|
};
|
|
1405
1392
|
});
|
|
1406
|
-
|
|
1393
|
+
nt(() => H.value.showTable, (e) => {
|
|
1407
1394
|
z.value.table.show || (e && z.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
|
|
1408
1395
|
});
|
|
1409
|
-
function
|
|
1396
|
+
function Bi() {
|
|
1410
1397
|
H.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
|
|
1411
1398
|
}
|
|
1412
|
-
function
|
|
1399
|
+
function Vi(e) {
|
|
1413
1400
|
un.value = e, rn.value += 1;
|
|
1414
1401
|
}
|
|
1415
|
-
function
|
|
1402
|
+
function Hi() {
|
|
1416
1403
|
H.value.showTable = !H.value.showTable;
|
|
1417
1404
|
}
|
|
1418
|
-
function
|
|
1405
|
+
function Ui() {
|
|
1419
1406
|
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
1420
1407
|
}
|
|
1421
|
-
function
|
|
1408
|
+
function Wi() {
|
|
1422
1409
|
H.value.showTooltip = !H.value.showTooltip;
|
|
1423
1410
|
}
|
|
1424
|
-
function
|
|
1411
|
+
function Gi() {
|
|
1425
1412
|
return Y.value;
|
|
1426
1413
|
}
|
|
1427
|
-
function
|
|
1428
|
-
let t = e ?? 0, n =
|
|
1414
|
+
function Ki(e) {
|
|
1415
|
+
let t = e ?? 0, n = yr(t);
|
|
1429
1416
|
return JSON.parse(JSON.stringify(Y.value)).map((e) => {
|
|
1430
1417
|
let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
|
|
1431
1418
|
return {
|
|
@@ -1435,25 +1422,25 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1435
1422
|
proportion: e.proportions?.[t] || null,
|
|
1436
1423
|
color: e.color,
|
|
1437
1424
|
id: e.id,
|
|
1438
|
-
timeLabel:
|
|
1425
|
+
timeLabel: zr.value?.[n] || null
|
|
1439
1426
|
};
|
|
1440
1427
|
});
|
|
1441
1428
|
}
|
|
1442
|
-
let
|
|
1443
|
-
|
|
1444
|
-
if ([null, void 0].includes(
|
|
1429
|
+
let qi = b(() => Array(K.value).fill(0).map((e, t) => Ki(t)));
|
|
1430
|
+
nt(() => F.selectedXIndex, (e) => {
|
|
1431
|
+
if ([null, void 0].includes(F.selectedXIndex)) {
|
|
1445
1432
|
$.value = null;
|
|
1446
1433
|
return;
|
|
1447
1434
|
}
|
|
1448
1435
|
let t = e - q.value.start;
|
|
1449
1436
|
t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
|
|
1450
1437
|
}, { immediate: !0 });
|
|
1451
|
-
let
|
|
1438
|
+
let Ji = b(() => {
|
|
1452
1439
|
if (z.value.style.chart.lines.distributed) return {
|
|
1453
1440
|
min: -1,
|
|
1454
1441
|
max: 1
|
|
1455
1442
|
};
|
|
1456
|
-
let e =
|
|
1443
|
+
let e = gr.value, t = _r.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
|
|
1457
1444
|
e.forEach((e) => {
|
|
1458
1445
|
for (let t = 0; t < n; t += 1) {
|
|
1459
1446
|
let n = e.series[t] ?? 0;
|
|
@@ -1473,7 +1460,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1473
1460
|
max: Number(f.max) || 0
|
|
1474
1461
|
};
|
|
1475
1462
|
});
|
|
1476
|
-
function
|
|
1463
|
+
function Yi({ minimapH: e, unitW: t }) {
|
|
1477
1464
|
let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
|
|
1478
1465
|
if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
|
|
1479
1466
|
let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), a = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
|
|
@@ -1503,7 +1490,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1503
1490
|
if (z.value.style.chart.lines.useArea) {
|
|
1504
1491
|
let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${h[0].x},${h[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
|
|
1505
1492
|
c.push(`<path d="${t}"
|
|
1506
|
-
fill="${
|
|
1493
|
+
fill="${Qt.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
|
|
1507
1494
|
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1508
1495
|
stroke="none" />`);
|
|
1509
1496
|
}
|
|
@@ -1525,7 +1512,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1525
1512
|
stroke-linecap="round" />`);
|
|
1526
1513
|
}), c.join("");
|
|
1527
1514
|
}
|
|
1528
|
-
let s =
|
|
1515
|
+
let s = Ji.value.min, c = Ji.value.max, u = Math.abs(s), d = c + u || 1, f = (t) => Math.max(0, Math.min(e, t)), m = (t) => f(e - e * (((t ?? 0) + u) / d)), h = [];
|
|
1529
1516
|
if (r.length) {
|
|
1530
1517
|
let e = Array(a).fill(0), t = Array(a).fill(0);
|
|
1531
1518
|
r.forEach((r) => {
|
|
@@ -1544,7 +1531,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1544
1531
|
if (z.value.style.chart.lines.useArea) {
|
|
1545
1532
|
let e = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${f[0].x},${f[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
|
|
1546
1533
|
h.push(`<path d="${e}"
|
|
1547
|
-
fill="${
|
|
1534
|
+
fill="${Qt.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
|
|
1548
1535
|
opacity="${z.value.style.chart.lines.areaOpacity}"
|
|
1549
1536
|
stroke="none" />`);
|
|
1550
1537
|
}
|
|
@@ -1568,12 +1555,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1568
1555
|
stroke-linecap="round" />`);
|
|
1569
1556
|
}), h.join("");
|
|
1570
1557
|
}
|
|
1571
|
-
function
|
|
1558
|
+
function Xi(e, t) {
|
|
1572
1559
|
let n = z.value.style.chart.lines, r = n.dataLabels;
|
|
1573
|
-
return n.showDistributedPercentage && n.distributed ?
|
|
1560
|
+
return n.showDistributedPercentage && n.distributed ? Yn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Yn.value ? (Jn.value && ar.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > Zi.value * r.hideUnderPercentage / 100) : Jn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
|
|
1574
1561
|
}
|
|
1575
|
-
let
|
|
1576
|
-
function
|
|
1562
|
+
let Zi = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
|
|
1563
|
+
function Qi(e, t, n, r, i) {
|
|
1577
1564
|
let a = i === -1 && e >= 0 ? -e : e;
|
|
1578
1565
|
return v(z.value.style.chart.lines.dataLabels.formatter, a, h({
|
|
1579
1566
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
@@ -1586,7 +1573,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1586
1573
|
datapointIndex: r
|
|
1587
1574
|
});
|
|
1588
1575
|
}
|
|
1589
|
-
function
|
|
1576
|
+
function $i(e, t, n, r) {
|
|
1590
1577
|
return v(z.value.style.chart.lines.dataLabels.formatter, e, h({
|
|
1591
1578
|
v: isNaN(e) ? 0 : e,
|
|
1592
1579
|
s: "%",
|
|
@@ -1597,27 +1584,16 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1597
1584
|
datapointIndex: r
|
|
1598
1585
|
});
|
|
1599
1586
|
}
|
|
1600
|
-
function
|
|
1587
|
+
function ea({ seriesIndex: e, datapoint: t }) {
|
|
1601
1588
|
let n = q.value.start + e;
|
|
1602
|
-
|
|
1589
|
+
$t("selectX", {
|
|
1603
1590
|
dataset: t,
|
|
1604
1591
|
index: n,
|
|
1605
1592
|
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
1606
1593
|
});
|
|
1607
1594
|
}
|
|
1608
|
-
function
|
|
1609
|
-
if (
|
|
1610
|
-
yn.value = !0;
|
|
1611
|
-
return;
|
|
1612
|
-
}
|
|
1613
|
-
if (e?.stage === "end") {
|
|
1614
|
-
yn.value = !1;
|
|
1615
|
-
return;
|
|
1616
|
-
}
|
|
1617
|
-
tr();
|
|
1618
|
-
}
|
|
1619
|
-
async function $i() {
|
|
1620
|
-
if (F("copyAlt", {
|
|
1595
|
+
async function ta() {
|
|
1596
|
+
if ($t("copyAlt", {
|
|
1621
1597
|
config: z.value,
|
|
1622
1598
|
dataset: Y.value
|
|
1623
1599
|
}), !z.value.userOptions.callbacks.altCopy) {
|
|
@@ -1629,23 +1605,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1629
1605
|
dataset: Y.value
|
|
1630
1606
|
}));
|
|
1631
1607
|
}
|
|
1632
|
-
let
|
|
1633
|
-
function
|
|
1634
|
-
R.value = null,
|
|
1608
|
+
let na = k(!1);
|
|
1609
|
+
function ra() {
|
|
1610
|
+
R.value = null, na.value = !0;
|
|
1635
1611
|
}
|
|
1636
|
-
function
|
|
1637
|
-
R.value = null,
|
|
1612
|
+
function ia() {
|
|
1613
|
+
R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
|
|
1638
1614
|
index: null,
|
|
1639
1615
|
indexLabel: null,
|
|
1640
1616
|
dataset: null
|
|
1641
|
-
}),
|
|
1617
|
+
}), na.value = !1;
|
|
1642
1618
|
}
|
|
1643
|
-
function
|
|
1644
|
-
if (!V.value ||
|
|
1619
|
+
function aa(e) {
|
|
1620
|
+
if (!V.value || Fn.value || document.activeElement !== V.value || Or.value || !Z.value) return;
|
|
1645
1621
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1646
1622
|
if (!t && !n && !r && !i) return;
|
|
1647
1623
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1648
|
-
R.value = null,
|
|
1624
|
+
R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
|
|
1649
1625
|
index: null,
|
|
1650
1626
|
indexLabel: null,
|
|
1651
1627
|
dataset: null
|
|
@@ -1654,58 +1630,58 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1654
1630
|
}
|
|
1655
1631
|
if (r) {
|
|
1656
1632
|
if (R.value === null) return;
|
|
1657
|
-
|
|
1633
|
+
mi(R.value);
|
|
1658
1634
|
return;
|
|
1659
1635
|
}
|
|
1660
|
-
let a = R.value, o =
|
|
1661
|
-
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a,
|
|
1636
|
+
let a = R.value, o = si.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
|
|
1637
|
+
s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a, oa(a), yi(!0, a, "keyboard");
|
|
1662
1638
|
}
|
|
1663
|
-
function
|
|
1639
|
+
function oa(e) {
|
|
1664
1640
|
if (!Number.isFinite(e) || !V.value) return;
|
|
1665
|
-
let t =
|
|
1666
|
-
|
|
1641
|
+
let t = W.value.left + e * ui.value, n = W.value.top + W.value.height / 2, r = i(t, n, V.value);
|
|
1642
|
+
r && (On.value = r);
|
|
1667
1643
|
}
|
|
1668
|
-
let
|
|
1669
|
-
headers:
|
|
1670
|
-
rows:
|
|
1644
|
+
let sa = b(() => ({
|
|
1645
|
+
headers: Ai.value?.colNames ?? [],
|
|
1646
|
+
rows: Ai.value?.body ?? []
|
|
1671
1647
|
}));
|
|
1672
1648
|
return je({
|
|
1673
|
-
getData:
|
|
1674
|
-
getImage:
|
|
1675
|
-
generatePdf:
|
|
1676
|
-
generateCsv:
|
|
1677
|
-
generateImage:
|
|
1678
|
-
generateSvg:
|
|
1679
|
-
hideSeries:
|
|
1680
|
-
showSeries:
|
|
1681
|
-
toggleTable:
|
|
1682
|
-
toggleLabels:
|
|
1683
|
-
toggleTooltip:
|
|
1684
|
-
toggleAnnotator:
|
|
1685
|
-
toggleFullscreen:
|
|
1686
|
-
copyAlt:
|
|
1687
|
-
}), (t, r) => (
|
|
1649
|
+
getData: Gi,
|
|
1650
|
+
getImage: Ri,
|
|
1651
|
+
generatePdf: Qn,
|
|
1652
|
+
generateCsv: ki,
|
|
1653
|
+
generateImage: $n,
|
|
1654
|
+
generateSvg: Ii,
|
|
1655
|
+
hideSeries: Di,
|
|
1656
|
+
showSeries: Ei,
|
|
1657
|
+
toggleTable: Hi,
|
|
1658
|
+
toggleLabels: Ui,
|
|
1659
|
+
toggleTooltip: Wi,
|
|
1660
|
+
toggleAnnotator: In,
|
|
1661
|
+
toggleFullscreen: Vi,
|
|
1662
|
+
copyAlt: ta
|
|
1663
|
+
}), (t, r) => (O(), C("div", {
|
|
1688
1664
|
id: `stackline_${I.value}`,
|
|
1689
1665
|
ref_key: "stacklineChart",
|
|
1690
1666
|
ref: tn,
|
|
1691
|
-
class:
|
|
1667
|
+
class: E({
|
|
1692
1668
|
"vue-data-ui-component": !0,
|
|
1693
1669
|
"vue-ui-stackline": !0,
|
|
1694
1670
|
"vue-data-ui-wrapper-fullscreen": un.value
|
|
1695
1671
|
}),
|
|
1696
|
-
style:
|
|
1697
|
-
onMouseenter:
|
|
1698
|
-
onMouseleave:
|
|
1672
|
+
style: Ye(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1673
|
+
onMouseenter: Gn,
|
|
1674
|
+
onMouseleave: Kn
|
|
1699
1675
|
}, [
|
|
1700
1676
|
w("div", {
|
|
1701
1677
|
id: `chart-instructions-${I.value}`,
|
|
1702
1678
|
class: "sr-only"
|
|
1703
|
-
}, [w("p", null,
|
|
1704
|
-
|
|
1679
|
+
}, [w("p", null, M(z.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
|
|
1680
|
+
sa.value?.rows?.length ? (O(), x(Le, {
|
|
1705
1681
|
key: 0,
|
|
1706
1682
|
uid: I.value,
|
|
1707
|
-
head:
|
|
1708
|
-
body:
|
|
1683
|
+
head: sa.value.headers,
|
|
1684
|
+
body: sa.value.rows,
|
|
1709
1685
|
notice: z.value.a11y.translations.tableAvailable,
|
|
1710
1686
|
caption: z.value.a11y.translations.tableCaption
|
|
1711
1687
|
}, null, 8, [
|
|
@@ -1715,21 +1691,21 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1715
1691
|
"notice",
|
|
1716
1692
|
"caption"
|
|
1717
1693
|
])) : S("", !0),
|
|
1718
|
-
z.value.userOptions.buttons.annotator ? (
|
|
1694
|
+
z.value.userOptions.buttons.annotator ? (O(), x(N(Gt), {
|
|
1719
1695
|
key: 1,
|
|
1720
|
-
svgRef:
|
|
1696
|
+
svgRef: N(V),
|
|
1721
1697
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1722
1698
|
color: z.value.style.chart.color,
|
|
1723
|
-
active:
|
|
1699
|
+
active: Fn.value,
|
|
1724
1700
|
isCursorPointer: B.value,
|
|
1725
|
-
onClose:
|
|
1701
|
+
onClose: In
|
|
1726
1702
|
}, {
|
|
1727
|
-
"annotator-action-close":
|
|
1728
|
-
"annotator-action-color":
|
|
1729
|
-
"annotator-action-draw":
|
|
1730
|
-
"annotator-action-undo":
|
|
1731
|
-
"annotator-action-redo":
|
|
1732
|
-
"annotator-action-delete":
|
|
1703
|
+
"annotator-action-close": P(() => [j(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1704
|
+
"annotator-action-color": P(({ color: e }) => [j(t.$slots, "annotator-action-color", D(T({ color: e })), void 0, !0)]),
|
|
1705
|
+
"annotator-action-draw": P(({ mode: e }) => [j(t.$slots, "annotator-action-draw", D(T({ mode: e })), void 0, !0)]),
|
|
1706
|
+
"annotator-action-undo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-undo", D(T({ disabled: e })), void 0, !0)]),
|
|
1707
|
+
"annotator-action-redo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-redo", D(T({ disabled: e })), void 0, !0)]),
|
|
1708
|
+
"annotator-action-delete": P(({ disabled: e }) => [j(t.$slots, "annotator-action-delete", D(T({ disabled: e })), void 0, !0)]),
|
|
1733
1709
|
_: 3
|
|
1734
1710
|
}, 8, [
|
|
1735
1711
|
"svgRef",
|
|
@@ -1738,20 +1714,20 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1738
1714
|
"active",
|
|
1739
1715
|
"isCursorPointer"
|
|
1740
1716
|
])) : S("", !0),
|
|
1741
|
-
|
|
1742
|
-
|
|
1717
|
+
j(t.$slots, "userConfig", {}, void 0, !0),
|
|
1718
|
+
er.value ? (O(), C("div", {
|
|
1743
1719
|
key: 2,
|
|
1744
1720
|
ref_key: "noTitle",
|
|
1745
1721
|
ref: cn,
|
|
1746
1722
|
class: "vue-data-ui-no-title-space",
|
|
1747
1723
|
style: "height:36px; width: 100%;background:transparent"
|
|
1748
1724
|
}, null, 512)) : S("", !0),
|
|
1749
|
-
z.value.style.chart.title.text ? (
|
|
1725
|
+
z.value.style.chart.title.text ? (O(), C("div", {
|
|
1750
1726
|
key: 3,
|
|
1751
1727
|
ref_key: "chartTitle",
|
|
1752
1728
|
ref: an,
|
|
1753
1729
|
style: "width:100%;background:transparent;"
|
|
1754
|
-
}, [(
|
|
1730
|
+
}, [(O(), x(ke, {
|
|
1755
1731
|
key: `title_${fn.value}`,
|
|
1756
1732
|
config: {
|
|
1757
1733
|
title: {
|
|
@@ -1764,15 +1740,15 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1764
1740
|
}
|
|
1765
1741
|
}
|
|
1766
1742
|
}, null, 8, ["config"]))], 512)) : S("", !0),
|
|
1767
|
-
w("div", { id: `legend-top-${I.value}` }, null, 8,
|
|
1768
|
-
z.value.userOptions.show && en.value && (
|
|
1743
|
+
w("div", { id: `legend-top-${I.value}` }, null, 8, st),
|
|
1744
|
+
z.value.userOptions.show && en.value && (N(Wn) || N(Hn)) ? (O(), x(N(Kt), {
|
|
1769
1745
|
ref_key: "userOptionsRef",
|
|
1770
1746
|
ref: _n,
|
|
1771
1747
|
key: `user_option_${rn.value}`,
|
|
1772
1748
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1773
1749
|
color: z.value.style.chart.color,
|
|
1774
|
-
isPrinting:
|
|
1775
|
-
isImaging:
|
|
1750
|
+
isPrinting: N(Xn),
|
|
1751
|
+
isImaging: N(Zn),
|
|
1776
1752
|
uid: I.value,
|
|
1777
1753
|
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1778
1754
|
hasPdf: z.value.userOptions.buttons.pdf,
|
|
@@ -1789,26 +1765,26 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1789
1765
|
isTooltip: H.value.showTooltip,
|
|
1790
1766
|
titles: { ...z.value.userOptions.buttonTitles },
|
|
1791
1767
|
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1792
|
-
isAnnotation:
|
|
1768
|
+
isAnnotation: Fn.value,
|
|
1793
1769
|
callbacks: z.value.userOptions.callbacks,
|
|
1794
1770
|
printScale: z.value.userOptions.print.scale,
|
|
1795
1771
|
tableDialog: z.value.table.useDialog,
|
|
1796
1772
|
isCursorPointer: B.value,
|
|
1797
|
-
onToggleFullscreen:
|
|
1798
|
-
onGeneratePdf:
|
|
1799
|
-
onGenerateCsv:
|
|
1800
|
-
onGenerateImage:
|
|
1801
|
-
onGenerateSvg:
|
|
1802
|
-
onToggleTable:
|
|
1803
|
-
onToggleLabels:
|
|
1804
|
-
onToggleTooltip:
|
|
1805
|
-
onToggleAnnotator:
|
|
1806
|
-
onCopyAlt:
|
|
1807
|
-
style:
|
|
1773
|
+
onToggleFullscreen: Vi,
|
|
1774
|
+
onGeneratePdf: N(Qn),
|
|
1775
|
+
onGenerateCsv: ki,
|
|
1776
|
+
onGenerateImage: N(Li),
|
|
1777
|
+
onGenerateSvg: N(Ii),
|
|
1778
|
+
onToggleTable: Hi,
|
|
1779
|
+
onToggleLabels: Ui,
|
|
1780
|
+
onToggleTooltip: Wi,
|
|
1781
|
+
onToggleAnnotator: In,
|
|
1782
|
+
onCopyAlt: ta,
|
|
1783
|
+
style: Ye({ visibility: N(Wn) ? N(Hn) ? "visible" : "hidden" : "visible" })
|
|
1808
1784
|
}, Ue({ _: 2 }, [
|
|
1809
1785
|
t.$slots.menuIcon ? {
|
|
1810
1786
|
name: "menuIcon",
|
|
1811
|
-
fn:
|
|
1787
|
+
fn: P(({ isOpen: e, color: n }) => [j(t.$slots, "menuIcon", D(T({
|
|
1812
1788
|
isOpen: e,
|
|
1813
1789
|
color: n
|
|
1814
1790
|
})), void 0, !0)]),
|
|
@@ -1816,42 +1792,42 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1816
1792
|
} : void 0,
|
|
1817
1793
|
t.$slots.optionTooltip ? {
|
|
1818
1794
|
name: "optionTooltip",
|
|
1819
|
-
fn:
|
|
1795
|
+
fn: P(() => [j(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1820
1796
|
key: "1"
|
|
1821
1797
|
} : void 0,
|
|
1822
1798
|
t.$slots.optionPdf ? {
|
|
1823
1799
|
name: "optionPdf",
|
|
1824
|
-
fn:
|
|
1800
|
+
fn: P(() => [j(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1825
1801
|
key: "2"
|
|
1826
1802
|
} : void 0,
|
|
1827
1803
|
t.$slots.optionCsv ? {
|
|
1828
1804
|
name: "optionCsv",
|
|
1829
|
-
fn:
|
|
1805
|
+
fn: P(() => [j(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1830
1806
|
key: "3"
|
|
1831
1807
|
} : void 0,
|
|
1832
1808
|
t.$slots.optionImg ? {
|
|
1833
1809
|
name: "optionImg",
|
|
1834
|
-
fn:
|
|
1810
|
+
fn: P(() => [j(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1835
1811
|
key: "4"
|
|
1836
1812
|
} : void 0,
|
|
1837
1813
|
t.$slots.optionSvg ? {
|
|
1838
1814
|
name: "optionSvg",
|
|
1839
|
-
fn:
|
|
1815
|
+
fn: P(() => [j(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1840
1816
|
key: "5"
|
|
1841
1817
|
} : void 0,
|
|
1842
1818
|
t.$slots.optionTable ? {
|
|
1843
1819
|
name: "optionTable",
|
|
1844
|
-
fn:
|
|
1820
|
+
fn: P(() => [j(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1845
1821
|
key: "6"
|
|
1846
1822
|
} : void 0,
|
|
1847
1823
|
t.$slots.optionLabels ? {
|
|
1848
1824
|
name: "optionLabels",
|
|
1849
|
-
fn:
|
|
1825
|
+
fn: P(() => [j(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1850
1826
|
key: "7"
|
|
1851
1827
|
} : void 0,
|
|
1852
1828
|
t.$slots.optionFullscreen ? {
|
|
1853
1829
|
name: "optionFullscreen",
|
|
1854
|
-
fn:
|
|
1830
|
+
fn: P(({ toggleFullscreen: e, isFullscreen: n }) => [j(t.$slots, "optionFullscreen", D(T({
|
|
1855
1831
|
toggleFullscreen: e,
|
|
1856
1832
|
isFullscreen: n
|
|
1857
1833
|
})), void 0, !0)]),
|
|
@@ -1859,7 +1835,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1859
1835
|
} : void 0,
|
|
1860
1836
|
t.$slots.optionAnnotator ? {
|
|
1861
1837
|
name: "optionAnnotator",
|
|
1862
|
-
fn:
|
|
1838
|
+
fn: P(({ toggleAnnotator: e, isAnnotator: n }) => [j(t.$slots, "optionAnnotator", D(T({
|
|
1863
1839
|
toggleAnnotator: e,
|
|
1864
1840
|
isAnnotator: n
|
|
1865
1841
|
})), void 0, !0)]),
|
|
@@ -1867,58 +1843,58 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1867
1843
|
} : void 0,
|
|
1868
1844
|
t.$slots.optionAltCopy ? {
|
|
1869
1845
|
name: "optionAltCopy",
|
|
1870
|
-
fn:
|
|
1846
|
+
fn: P(({ altCopy: e }) => [j(t.$slots, "optionAltCopy", D(T({ altCopy: e })), void 0, !0)]),
|
|
1871
1847
|
key: "10"
|
|
1872
1848
|
} : void 0,
|
|
1873
1849
|
t.$slots["custom-menu-before"] ? {
|
|
1874
1850
|
name: "custom-menu-before",
|
|
1875
|
-
fn:
|
|
1851
|
+
fn: P(() => [j(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1876
1852
|
key: "11"
|
|
1877
1853
|
} : void 0,
|
|
1878
1854
|
t.$slots["custom-menu-after"] ? {
|
|
1879
1855
|
name: "custom-menu-after",
|
|
1880
|
-
fn:
|
|
1856
|
+
fn: P(() => [j(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1881
1857
|
key: "12"
|
|
1882
1858
|
} : void 0
|
|
1883
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
|
|
1884
|
-
w("div",
|
|
1859
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : S("", !0),
|
|
1860
|
+
w("div", ct, [(O(), C("svg", {
|
|
1885
1861
|
ref_key: "svgRef",
|
|
1886
1862
|
ref: V,
|
|
1887
1863
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1888
|
-
xmlns:
|
|
1864
|
+
xmlns: N(se),
|
|
1889
1865
|
viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
|
|
1890
|
-
class:
|
|
1891
|
-
"vue-data-ui-loading":
|
|
1866
|
+
class: E({
|
|
1867
|
+
"vue-data-ui-loading": N(zn),
|
|
1892
1868
|
"vue-data-ui-fullscreen--on": un.value,
|
|
1893
1869
|
"vue-data-ui-fulscreen--off": !un.value,
|
|
1894
|
-
"vue-data-ui-no-transition": !
|
|
1870
|
+
"vue-data-ui-no-transition": !N(Ln)
|
|
1895
1871
|
}),
|
|
1896
|
-
style:
|
|
1872
|
+
style: Ye(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1897
1873
|
role: "img",
|
|
1898
1874
|
"aria-live": "polite",
|
|
1899
1875
|
tabindex: "0",
|
|
1900
1876
|
preserveAspectRatio: "xMidYMid",
|
|
1901
|
-
onMousemove:
|
|
1902
|
-
onMouseleave:
|
|
1903
|
-
onClick:
|
|
1904
|
-
onFocus:
|
|
1905
|
-
onBlur:
|
|
1906
|
-
onKeydown:
|
|
1877
|
+
onMousemove: fi,
|
|
1878
|
+
onMouseleave: hi,
|
|
1879
|
+
onClick: pi,
|
|
1880
|
+
onFocus: ra,
|
|
1881
|
+
onBlur: ia,
|
|
1882
|
+
onKeydown: aa
|
|
1907
1883
|
}, [
|
|
1908
|
-
Ge(
|
|
1909
|
-
(
|
|
1884
|
+
Ge(N(qt)),
|
|
1885
|
+
(O(!0), C(y, null, A(gr.value, (e) => (O(), C(y, null, [t.$slots.pattern ? (O(), C("defs", ut, [j(t.$slots, "pattern", qe({ ref_for: !0 }, {
|
|
1910
1886
|
seriesIndex: e.absoluteIndex,
|
|
1911
1887
|
patternId: `pattern_${I.value}_${e.absoluteIndex}`
|
|
1912
1888
|
}), void 0, !0)])) : S("", !0)], 64))), 256)),
|
|
1913
|
-
t.$slots["chart-background"] ? (
|
|
1889
|
+
t.$slots["chart-background"] ? (O(), C("foreignObject", {
|
|
1914
1890
|
key: 0,
|
|
1915
1891
|
x: X.value.left,
|
|
1916
1892
|
y: W.value.top,
|
|
1917
1893
|
width: X.value.width,
|
|
1918
1894
|
height: W.value.height,
|
|
1919
1895
|
style: { pointerEvents: "none" }
|
|
1920
|
-
}, [
|
|
1921
|
-
z.value.style.chart.lines.gradient.show ? (
|
|
1896
|
+
}, [j(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : S("", !0),
|
|
1897
|
+
z.value.style.chart.lines.gradient.show ? (O(), C("defs", ft, [(O(!0), C(y, null, A(Y.value, (e, t) => (O(), x(Pe, {
|
|
1922
1898
|
t: "linear",
|
|
1923
1899
|
id: `gradient_${e.id}`,
|
|
1924
1900
|
key: `gradient_${e.id}_${t}`,
|
|
@@ -1932,11 +1908,11 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1932
1908
|
1
|
|
1933
1909
|
], [
|
|
1934
1910
|
"100%",
|
|
1935
|
-
|
|
1911
|
+
N(c)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
|
|
1936
1912
|
1
|
|
1937
1913
|
]]
|
|
1938
1914
|
}, null, 8, ["id", "stops"]))), 128))])) : S("", !0),
|
|
1939
|
-
z.value.style.chart.grid.x.showHorizontalLines ? (
|
|
1915
|
+
z.value.style.chart.grid.x.showHorizontalLines ? (O(!0), C(y, { key: 2 }, A(Lr.value, (e, t) => (O(), C("line", {
|
|
1940
1916
|
x1: X.value.left,
|
|
1941
1917
|
x2: X.value.right,
|
|
1942
1918
|
y1: e.y,
|
|
@@ -1945,8 +1921,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1945
1921
|
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1946
1922
|
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1947
1923
|
"stroke-linecap": "round"
|
|
1948
|
-
}, null, 8,
|
|
1949
|
-
z.value.style.chart.grid.y.showVerticalLines ? (
|
|
1924
|
+
}, null, 8, pt))), 256)) : S("", !0),
|
|
1925
|
+
z.value.style.chart.grid.y.showVerticalLines ? (O(!0), C(y, { key: 3 }, A(q.value.end - q.value.start, (e, t) => (O(), C("line", {
|
|
1950
1926
|
x1: Q(t),
|
|
1951
1927
|
x2: Q(t),
|
|
1952
1928
|
y1: W.value.top,
|
|
@@ -1955,8 +1931,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1955
1931
|
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1956
1932
|
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1957
1933
|
"stroke-linecap": "round"
|
|
1958
|
-
}, null, 8,
|
|
1959
|
-
z.value.style.chart.grid.x.showAxis ? (
|
|
1934
|
+
}, null, 8, mt))), 256)) : S("", !0),
|
|
1935
|
+
z.value.style.chart.grid.x.showAxis ? (O(), C("line", {
|
|
1960
1936
|
key: 4,
|
|
1961
1937
|
x1: X.value.left,
|
|
1962
1938
|
x2: X.value.right,
|
|
@@ -1966,40 +1942,40 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
1966
1942
|
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1967
1943
|
"stroke-linecap": "round",
|
|
1968
1944
|
"stroke-linejoin": "round"
|
|
1969
|
-
}, null, 8,
|
|
1970
|
-
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (
|
|
1945
|
+
}, null, 8, ht)) : S("", !0),
|
|
1946
|
+
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (O(), C("line", {
|
|
1971
1947
|
key: 5,
|
|
1972
|
-
x1:
|
|
1973
|
-
x2:
|
|
1948
|
+
x1: sr.value ? X.value.right : X.value.left,
|
|
1949
|
+
x2: sr.value ? X.value.right : X.value.left,
|
|
1974
1950
|
y1: W.value.top,
|
|
1975
1951
|
y2: W.value.bottom,
|
|
1976
1952
|
stroke: z.value.style.chart.grid.y.axisColor,
|
|
1977
1953
|
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1978
1954
|
"stroke-linecap": "round",
|
|
1979
1955
|
"stroke-linejoin": "round"
|
|
1980
|
-
}, null, 8,
|
|
1981
|
-
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (
|
|
1956
|
+
}, null, 8, gt)) : S("", !0),
|
|
1957
|
+
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (O(), C("text", {
|
|
1982
1958
|
key: 6,
|
|
1983
1959
|
ref_key: "xAxisLabel",
|
|
1984
|
-
ref:
|
|
1960
|
+
ref: yn,
|
|
1985
1961
|
x: W.value.left + W.value.width / 2,
|
|
1986
1962
|
y: W.value.chartHeight - 3,
|
|
1987
1963
|
"font-size": z.value.style.chart.grid.x.axisName.fontSize,
|
|
1988
1964
|
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1989
1965
|
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1990
1966
|
"text-anchor": "middle"
|
|
1991
|
-
},
|
|
1992
|
-
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (
|
|
1967
|
+
}, M(z.value.style.chart.grid.x.axisName.text), 9, _t)) : S("", !0),
|
|
1968
|
+
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (O(), C("text", {
|
|
1993
1969
|
key: 7,
|
|
1994
1970
|
ref_key: "yAxisLabel",
|
|
1995
|
-
ref:
|
|
1996
|
-
transform: `translate(${
|
|
1971
|
+
ref: bn,
|
|
1972
|
+
transform: `translate(${sr.value ? W.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1997
1973
|
"font-size": z.value.style.chart.grid.y.axisName.fontSize,
|
|
1998
1974
|
fill: z.value.style.chart.grid.y.axisName.color,
|
|
1999
1975
|
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
2000
1976
|
"text-anchor": "middle"
|
|
2001
|
-
},
|
|
2002
|
-
z.value.style.chart.grid.frame.show ? (
|
|
1977
|
+
}, M(z.value.style.chart.grid.y.axisName.text), 9, vt)) : S("", !0),
|
|
1978
|
+
z.value.style.chart.grid.frame.show ? (O(), C("rect", {
|
|
2003
1979
|
key: 8,
|
|
2004
1980
|
style: {
|
|
2005
1981
|
pointerEvents: "none",
|
|
@@ -2016,63 +1992,63 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2016
1992
|
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
2017
1993
|
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
2018
1994
|
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
2019
|
-
}, null, 8,
|
|
2020
|
-
(
|
|
1995
|
+
}, null, 8, yt)) : S("", !0),
|
|
1996
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, null, [z.value.style.chart.lines.useArea && !e.standalone ? (O(), C("path", {
|
|
2021
1997
|
key: 0,
|
|
2022
1998
|
d: z.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
|
|
2023
1999
|
fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : z.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
2024
2000
|
opacity: z.value.style.chart.lines.areaOpacity,
|
|
2025
|
-
class:
|
|
2026
|
-
}, null, 10,
|
|
2027
|
-
(
|
|
2001
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2002
|
+
}, null, 10, bt)) : S("", !0)], 64))), 256)),
|
|
2003
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C("path", {
|
|
2028
2004
|
d: z.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
|
|
2029
2005
|
stroke: z.value.style.chart.lines.path.useSerieColor ? e.color : z.value.style.chart.lines.path.stroke,
|
|
2030
2006
|
"stroke-width": z.value.style.chart.lines.strokeWidth,
|
|
2031
2007
|
fill: "none",
|
|
2032
2008
|
"stroke-linecap": "round",
|
|
2033
|
-
class:
|
|
2034
|
-
}, null, 10,
|
|
2035
|
-
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (
|
|
2009
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2010
|
+
}, null, 10, xt))), 256)),
|
|
2011
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (O(), C("g", {
|
|
2036
2012
|
key: 9,
|
|
2037
2013
|
ref_key: "scaleLabels",
|
|
2038
|
-
ref:
|
|
2039
|
-
}, [(
|
|
2014
|
+
ref: xn
|
|
2015
|
+
}, [(O(!0), C(y, null, A(Lr.value, (e, t) => (O(), C("line", {
|
|
2040
2016
|
key: `ytick_${t}`,
|
|
2041
|
-
class:
|
|
2042
|
-
x1:
|
|
2043
|
-
x2:
|
|
2017
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2018
|
+
x1: sr.value ? X.value.right : X.value.left,
|
|
2019
|
+
x2: sr.value ? X.value.right + 6 : X.value.left - 6,
|
|
2044
2020
|
y1: e.y,
|
|
2045
2021
|
y2: e.y,
|
|
2046
2022
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
2047
2023
|
"stroke-width": 1
|
|
2048
|
-
}, null, 10,
|
|
2049
|
-
class:
|
|
2024
|
+
}, null, 10, St))), 128)), (O(!0), C(y, null, A(Lr.value, (e, t) => (O(), C("text", {
|
|
2025
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2050
2026
|
transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
2051
2027
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2052
2028
|
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
2053
2029
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2054
|
-
"text-anchor":
|
|
2055
|
-
},
|
|
2030
|
+
"text-anchor": sr.value ? "start" : "end"
|
|
2031
|
+
}, M(N(v)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, N(h)({
|
|
2056
2032
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2057
2033
|
v: e.value,
|
|
2058
2034
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
2059
2035
|
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
2060
|
-
}), { datapoint: e })), 11,
|
|
2061
|
-
z.value.style.chart.grid.x.timeLabels.show ? (
|
|
2036
|
+
}), { datapoint: e })), 11, Ct))), 256))], 512)) : S("", !0),
|
|
2037
|
+
z.value.style.chart.grid.x.timeLabels.show ? (O(), C("g", {
|
|
2062
2038
|
key: 10,
|
|
2063
2039
|
ref_key: "timeLabelsEls",
|
|
2064
|
-
ref:
|
|
2065
|
-
}, [t.$slots["time-label"] ? (
|
|
2066
|
-
x: W.value.left +
|
|
2040
|
+
ref: Sn
|
|
2041
|
+
}, [t.$slots["time-label"] ? (O(), C("g", wt, [(O(!0), C(y, null, A(Ur.value, (e, n) => (O(), C("g", null, [j(t.$slots, "time-label", qe({ ref_for: !0 }, {
|
|
2042
|
+
x: W.value.left + Er.value * n + Er.value / 2,
|
|
2067
2043
|
y: W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
2068
2044
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
2069
2045
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2070
|
-
transform: `translate(${W.value.left +
|
|
2046
|
+
transform: `translate(${W.value.left + Er.value * n + Er.value / 2}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2071
2047
|
absoluteIndex: e.absoluteIndex,
|
|
2072
2048
|
content: e.text,
|
|
2073
2049
|
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2074
2050
|
show: !0
|
|
2075
|
-
}), void 0, !0)]))), 256))])) : (
|
|
2051
|
+
}), void 0, !0)]))), 256))])) : (O(), C("g", Tt, [(O(!0), C(y, null, A(Ur.value, (e, n) => (O(), C("g", null, [String(e.text).includes("\n") ? (O(), C("text", {
|
|
2076
2052
|
key: n + "-multi",
|
|
2077
2053
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
2078
2054
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2084,7 +2060,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2084
2060
|
),
|
|
2085
2061
|
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
2086
2062
|
`,
|
|
2087
|
-
style:
|
|
2063
|
+
style: Ye({ cursor: B.value ? "pointer" : "default" }),
|
|
2088
2064
|
innerHTML: t.createTSpansFromLineBreaksOnX({
|
|
2089
2065
|
content: String(e.text),
|
|
2090
2066
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2092,8 +2068,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2092
2068
|
x: 0,
|
|
2093
2069
|
y: 0
|
|
2094
2070
|
}),
|
|
2095
|
-
onClick: () =>
|
|
2096
|
-
}, null, 12,
|
|
2071
|
+
onClick: () => bi(e, n)
|
|
2072
|
+
}, null, 12, Dt)) : (O(), C("text", {
|
|
2097
2073
|
class: "vue-data-ui-time-label",
|
|
2098
2074
|
key: n,
|
|
2099
2075
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2101,25 +2077,25 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2101
2077
|
"font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
2102
2078
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
2103
2079
|
transform: `translate(${Q(n)}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2104
|
-
style:
|
|
2105
|
-
onClick: () =>
|
|
2106
|
-
},
|
|
2107
|
-
(vn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (
|
|
2108
|
-
x:
|
|
2080
|
+
style: Ye({ cursor: B.value ? "pointer" : "default" }),
|
|
2081
|
+
onClick: () => bi(e, n)
|
|
2082
|
+
}, M(e.text), 13, Et))]))), 256))]))], 512)) : S("", !0),
|
|
2083
|
+
(vn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (O(!0), C(y, { key: 11 }, A(q.value.end - q.value.start, (e, t) => (O(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
|
|
2084
|
+
x: di(t).x,
|
|
2109
2085
|
y: W.value.top,
|
|
2110
2086
|
height: W.value.height,
|
|
2111
|
-
width:
|
|
2112
|
-
fill: [
|
|
2087
|
+
width: di(t).width,
|
|
2088
|
+
fill: [Pn.value, $.value].includes(t) ? N(n)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
|
|
2113
2089
|
style: {
|
|
2114
2090
|
transition: "none !important",
|
|
2115
2091
|
animation: "none !important"
|
|
2116
2092
|
}
|
|
2117
|
-
}, null, 8,
|
|
2118
|
-
(vn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (
|
|
2119
|
-
x1: Q(($.value ??
|
|
2120
|
-
x2: Q(($.value ??
|
|
2121
|
-
y1:
|
|
2122
|
-
y2:
|
|
2093
|
+
}, null, 8, Ot)]))), 128)) : S("", !0),
|
|
2094
|
+
(vn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (O(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Pn.value) ? (O(), C("g", kt, [w("line", {
|
|
2095
|
+
x1: Q(($.value ?? Pn.value) || 0),
|
|
2096
|
+
x2: Q(($.value ?? Pn.value) || 0),
|
|
2097
|
+
y1: N(ie)(W.value.top),
|
|
2098
|
+
y2: N(ie)(W.value.bottom),
|
|
2123
2099
|
stroke: z.value.style.chart.highlighter.color,
|
|
2124
2100
|
"stroke-width": z.value.style.chart.highlighter.lineWidth,
|
|
2125
2101
|
"stroke-dasharray": z.value.style.chart.highlighter.lineDasharray,
|
|
@@ -2129,8 +2105,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2129
2105
|
animation: "none !important",
|
|
2130
2106
|
"pointer-events": "none"
|
|
2131
2107
|
}
|
|
2132
|
-
}, null, 8,
|
|
2133
|
-
(
|
|
2108
|
+
}, null, 8, At)])) : S("", !0)], 64)) : S("", !0),
|
|
2109
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, { key: `shp_sel_${e.id}` }, [vn.value && q.value.end - q.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(), C("g", jt, [$.value == null ? S("", !0) : (O(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (O(), x(Ae, {
|
|
2134
2110
|
key: 0,
|
|
2135
2111
|
shape: [
|
|
2136
2112
|
"triangle",
|
|
@@ -2142,14 +2118,14 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2142
2118
|
].includes(e.shape) ? e.shape : "circle",
|
|
2143
2119
|
color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
|
|
2144
2120
|
plot: {
|
|
2145
|
-
x:
|
|
2146
|
-
y:
|
|
2121
|
+
x: N(_)(e.points[e.rel.indexOf($.value)].x),
|
|
2122
|
+
y: N(_)(e.points[e.rel.indexOf($.value)].y)
|
|
2147
2123
|
},
|
|
2148
2124
|
radius: z.value.style.chart.lines.dot.radius * 1.3,
|
|
2149
2125
|
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2150
2126
|
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2151
|
-
still:
|
|
2152
|
-
class:
|
|
2127
|
+
still: N(zn),
|
|
2128
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2153
2129
|
}, null, 8, [
|
|
2154
2130
|
"shape",
|
|
2155
2131
|
"color",
|
|
@@ -2160,7 +2136,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2160
2136
|
"still",
|
|
2161
2137
|
"class"
|
|
2162
2138
|
])) : S("", !0)], 64))])) : S("", !0)], 64))), 128)),
|
|
2163
|
-
(
|
|
2139
|
+
(O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, { key: `shp_${e.id}` }, [q.value.end - q.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(!0), C(y, { key: 0 }, A(e.points, (t, n) => (O(), C("g", { key: `shp_${e.id}_${q.value.start + n}` }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (O(), x(Ae, {
|
|
2164
2140
|
key: 0,
|
|
2165
2141
|
shape: [
|
|
2166
2142
|
"triangle",
|
|
@@ -2178,8 +2154,8 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2178
2154
|
radius: vn.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
|
|
2179
2155
|
stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
|
|
2180
2156
|
strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
|
|
2181
|
-
still:
|
|
2182
|
-
class:
|
|
2157
|
+
still: N(zn),
|
|
2158
|
+
class: E({ "vue-data-ui-transition": N(Ln) })
|
|
2183
2159
|
}, null, 8, [
|
|
2184
2160
|
"shape",
|
|
2185
2161
|
"color",
|
|
@@ -2190,68 +2166,68 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2190
2166
|
"still",
|
|
2191
2167
|
"class"
|
|
2192
2168
|
])) : S("", !0)]))), 128)) : S("", !0)], 64))), 128)),
|
|
2193
|
-
H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (
|
|
2169
|
+
H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (O(), C(y, { key: 13 }, [(O(!0), C(y, null, A(Y.value, (e, t) => (O(), C("g", { key: `dl_${e.id}` }, [(O(!0), C(y, null, A(e.points, (n, r) => (O(), C(y, { key: `dp_${e.id}_${q.value.start + r}` }, [Xi(e.series[r], e.proportions[r]) ? (O(), C("text", {
|
|
2194
2170
|
key: 0,
|
|
2195
|
-
class:
|
|
2171
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2196
2172
|
transform: `translate(${n.x}, ${n.y + (e.series[r] >= 0 ? -z.value.style.chart.lines.dataLabels.fontSize / 2 + z.value.style.chart.lines.dataLabels.offsetY : z.value.style.chart.lines.dataLabels.fontSize * 1.2 - z.value.style.chart.lines.dataLabels.offsetY)})`,
|
|
2197
2173
|
"font-size": z.value.style.chart.lines.dataLabels.fontSize,
|
|
2198
2174
|
fill: z.value.style.chart.lines.dataLabels.color,
|
|
2199
2175
|
"font-weight": z.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
|
|
2200
2176
|
"text-anchor": "middle"
|
|
2201
|
-
},
|
|
2177
|
+
}, M(z.value.style.chart.lines.showDistributedPercentage && z.value.style.chart.lines.distributed ? $i(e.proportions[r] * 100, e, t, e.rel[r]) : Qi(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Mt)) : S("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (O(), C("g", {
|
|
2202
2178
|
key: 0,
|
|
2203
2179
|
ref_key: "sumTop",
|
|
2204
|
-
ref:
|
|
2205
|
-
}, [(
|
|
2180
|
+
ref: Cn
|
|
2181
|
+
}, [(O(!0), C(y, null, A(Pr.value, (e, t) => (O(), C(y, { key: `total_l_${t + q.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (O(), C("text", {
|
|
2206
2182
|
key: 0,
|
|
2207
|
-
class:
|
|
2208
|
-
transform: `translate(${Q(t)}, ${
|
|
2183
|
+
class: E({ "vue-data-ui-transition": N(Ln) }),
|
|
2184
|
+
transform: `translate(${Q(t)}, ${Ir(t)})`,
|
|
2209
2185
|
"text-anchor": "middle",
|
|
2210
2186
|
"font-size": z.value.style.chart.lines.totalValues.fontSize,
|
|
2211
2187
|
"font-weight": z.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
|
|
2212
2188
|
fill: z.value.style.chart.lines.totalValues.color
|
|
2213
|
-
},
|
|
2214
|
-
|
|
2189
|
+
}, M(Qi(e.value, e, t, t, e.sign)), 11, Nt)) : S("", !0)], 64))), 128))], 512)) : S("", !0)], 64)) : S("", !0),
|
|
2190
|
+
br.value ? (O(), C("rect", qe({ key: 14 }, hr.value, {
|
|
2215
2191
|
"data-start": q.value.start,
|
|
2216
2192
|
"data-end": q.value.end
|
|
2217
|
-
}), null, 16,
|
|
2218
|
-
|
|
2193
|
+
}), null, 16, Pt)) : S("", !0),
|
|
2194
|
+
j(t.$slots, "svg", { svg: {
|
|
2219
2195
|
drawingArea: W.value,
|
|
2220
2196
|
data: Y.value,
|
|
2221
|
-
isPrintingImg:
|
|
2222
|
-
isPrintingSvg:
|
|
2197
|
+
isPrintingImg: N(Xn) || N(Zn) || N(Pi),
|
|
2198
|
+
isPrintingSvg: N(Fi)
|
|
2223
2199
|
} }, void 0, !0)
|
|
2224
|
-
], 46,
|
|
2200
|
+
], 46, lt)), t.$slots.hint ? (O(), C("div", Ft, [j(t.$slots, "hint", D(T({
|
|
2225
2201
|
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2226
|
-
isVisible:
|
|
2202
|
+
isVisible: na.value
|
|
2227
2203
|
})), void 0, !0)])) : S("", !0)]),
|
|
2228
|
-
t.$slots.watermark ? (
|
|
2229
|
-
hn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (
|
|
2204
|
+
t.$slots.watermark ? (O(), C("div", It, [j(t.$slots, "watermark", D(T({ isPrinting: N(Xn) || N(Zn) || N(Pi) || N(Fi) })), void 0, !0)])) : S("", !0),
|
|
2205
|
+
hn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (O(), x(He, {
|
|
2230
2206
|
key: 6,
|
|
2231
2207
|
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
2232
2208
|
}, [w("div", {
|
|
2233
2209
|
ref_key: "chartLegend",
|
|
2234
2210
|
ref: on
|
|
2235
|
-
}, [
|
|
2211
|
+
}, [j(t.$slots, "legend", { legend: Ci.value }, () => [z.value.style.chart.legend.show ? (O(), x(Be, {
|
|
2236
2212
|
key: 0,
|
|
2237
|
-
legendSet:
|
|
2238
|
-
config:
|
|
2213
|
+
legendSet: Ci.value,
|
|
2214
|
+
config: wi.value,
|
|
2239
2215
|
isCursorPointer: B.value,
|
|
2240
2216
|
onClickMarker: r[0] ||= ({ legend: e }) => e.segregate()
|
|
2241
2217
|
}, Ue({
|
|
2242
|
-
item:
|
|
2218
|
+
item: P(({ legend: e }) => [N(zn) ? S("", !0) : (O(), C("div", {
|
|
2243
2219
|
key: 0,
|
|
2244
2220
|
onClick: (t) => e.segregate(),
|
|
2245
|
-
style:
|
|
2246
|
-
},
|
|
2247
|
-
legendToggle:
|
|
2221
|
+
style: Ye(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2222
|
+
}, M(e.name), 13, Lt))]),
|
|
2223
|
+
legendToggle: P(() => [Ci.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !N(zn) ? (O(), x(Ie, {
|
|
2248
2224
|
key: 0,
|
|
2249
2225
|
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2250
2226
|
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
2251
2227
|
fontSize: z.value.style.chart.legend.fontSize,
|
|
2252
2228
|
checked: L.value.length > 0,
|
|
2253
2229
|
isCursorPointer: B.value,
|
|
2254
|
-
onToggle:
|
|
2230
|
+
onToggle: xi
|
|
2255
2231
|
}, null, 8, [
|
|
2256
2232
|
"backgroundColor",
|
|
2257
2233
|
"color",
|
|
@@ -2262,7 +2238,7 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2262
2238
|
_: 2
|
|
2263
2239
|
}, [t.$slots.pattern ? {
|
|
2264
2240
|
name: "legend-pattern",
|
|
2265
|
-
fn:
|
|
2241
|
+
fn: P(({ legend: e, index: t }) => [Ge(Ae, {
|
|
2266
2242
|
shape: e.shape,
|
|
2267
2243
|
radius: 30,
|
|
2268
2244
|
stroke: "none",
|
|
@@ -2278,23 +2254,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2278
2254
|
"config",
|
|
2279
2255
|
"isCursorPointer"
|
|
2280
2256
|
])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
|
|
2281
|
-
en.value && z.value.userOptions.buttons.table ? (
|
|
2257
|
+
en.value && z.value.userOptions.buttons.table ? (O(), x(Qe(zi.value.component), qe({ key: 7 }, zi.value.props, {
|
|
2282
2258
|
ref_key: "tableUnit",
|
|
2283
2259
|
ref: gn,
|
|
2284
|
-
onClose:
|
|
2260
|
+
onClose: Bi
|
|
2285
2261
|
}), Ue({
|
|
2286
|
-
content:
|
|
2287
|
-
colNames:
|
|
2288
|
-
head:
|
|
2289
|
-
body:
|
|
2290
|
-
config:
|
|
2291
|
-
title: z.value.table.useDialog ? "" :
|
|
2262
|
+
content: P(() => [Ge(N(Wt), {
|
|
2263
|
+
colNames: Ai.value.colNames,
|
|
2264
|
+
head: Ai.value.head,
|
|
2265
|
+
body: Ai.value.body,
|
|
2266
|
+
config: Ai.value.config,
|
|
2267
|
+
title: z.value.table.useDialog ? "" : zi.value.title,
|
|
2292
2268
|
withCloseButton: !z.value.table.useDialog,
|
|
2293
2269
|
isCursorPointer: B.value,
|
|
2294
|
-
onClose:
|
|
2270
|
+
onClose: Bi
|
|
2295
2271
|
}, {
|
|
2296
|
-
th:
|
|
2297
|
-
td:
|
|
2272
|
+
th: P(({ th: e }) => [w("div", { innerHTML: e }, null, 8, Rt)]),
|
|
2273
|
+
td: P(({ td: e }) => [We(M(isNaN(Number(e)) ? e : N(h)({
|
|
2298
2274
|
p: z.value.style.chart.lines.dataLabels.prefix,
|
|
2299
2275
|
v: e,
|
|
2300
2276
|
s: z.value.style.chart.lines.dataLabels.suffix,
|
|
@@ -2313,27 +2289,27 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2313
2289
|
_: 2
|
|
2314
2290
|
}, [z.value.table.useDialog ? {
|
|
2315
2291
|
name: "title",
|
|
2316
|
-
fn:
|
|
2292
|
+
fn: P(() => [We(M(zi.value.title), 1)]),
|
|
2317
2293
|
key: "0"
|
|
2318
2294
|
} : void 0, z.value.table.useDialog ? {
|
|
2319
2295
|
name: "actions",
|
|
2320
|
-
fn:
|
|
2296
|
+
fn: P(() => [w("button", {
|
|
2321
2297
|
tabindex: "0",
|
|
2322
2298
|
class: "vue-ui-user-options-button",
|
|
2323
|
-
onClick: r[1] ||= (e) =>
|
|
2324
|
-
style:
|
|
2325
|
-
}, [Ge(
|
|
2299
|
+
onClick: r[1] ||= (e) => ki(z.value.userOptions.callbacks.csv),
|
|
2300
|
+
style: Ye({ cursor: B.value ? "pointer" : "default" })
|
|
2301
|
+
}, [Ge(N(Ht), {
|
|
2326
2302
|
name: "fileCsv",
|
|
2327
|
-
stroke:
|
|
2303
|
+
stroke: zi.value.props.color
|
|
2328
2304
|
}, null, 8, ["stroke"])], 4)]),
|
|
2329
2305
|
key: "1"
|
|
2330
2306
|
} : void 0]), 1040)) : S("", !0),
|
|
2331
|
-
z.value.style.chart.zoom.show && en.value &&
|
|
2307
|
+
z.value.style.chart.zoom.show && en.value && Qr.value && K.value > 6 ? (O(), x(Fe, {
|
|
2332
2308
|
key: 8,
|
|
2333
2309
|
ref_key: "chartSlicer",
|
|
2334
2310
|
ref: sn,
|
|
2335
2311
|
"data-dom-to-png-ignore-layout": "",
|
|
2336
|
-
allMinimaps:
|
|
2312
|
+
allMinimaps: Ar.value,
|
|
2337
2313
|
background: z.value.style.chart.zoom.color,
|
|
2338
2314
|
borderColor: z.value.style.chart.backgroundColor,
|
|
2339
2315
|
customFormat: z.value.style.chart.zoom.customFormat,
|
|
@@ -2346,12 +2322,12 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2346
2322
|
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2347
2323
|
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2348
2324
|
inputColor: z.value.style.chart.zoom.color,
|
|
2349
|
-
isPreview:
|
|
2350
|
-
labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ?
|
|
2351
|
-
labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ?
|
|
2325
|
+
isPreview: br.value,
|
|
2326
|
+
labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Rr.value?.[0]?.text ?? "" : "",
|
|
2327
|
+
labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Rr.value?.at(-1)?.text ?? "" : "",
|
|
2352
2328
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2353
2329
|
min: 0,
|
|
2354
|
-
minimap:
|
|
2330
|
+
minimap: kr.value,
|
|
2355
2331
|
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2356
2332
|
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2357
2333
|
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -2360,20 +2336,22 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2360
2336
|
minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2361
2337
|
minimapSelectedIndex: $.value,
|
|
2362
2338
|
minimapSelectionRadius: 1,
|
|
2363
|
-
preciseLabels:
|
|
2339
|
+
preciseLabels: qr.value.length ? qr.value : zr.value,
|
|
2364
2340
|
refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
|
|
2365
2341
|
refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
|
|
2366
2342
|
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2367
|
-
selectedSeries:
|
|
2343
|
+
selectedSeries: qi.value,
|
|
2368
2344
|
smoothMinimap: !1,
|
|
2369
2345
|
start: q.value.start,
|
|
2370
2346
|
textColor: z.value.style.chart.color,
|
|
2371
|
-
timeLabels:
|
|
2347
|
+
timeLabels: zr.value,
|
|
2372
2348
|
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2373
2349
|
valueEnd: q.value.end,
|
|
2374
2350
|
valueStart: q.value.start,
|
|
2375
2351
|
verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
|
|
2376
2352
|
maxWidth: z.value.style.chart.zoom.maxWidth,
|
|
2353
|
+
minimapLeftInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? W.value.left / W.value.chartWidth : null,
|
|
2354
|
+
minimapRightInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? (W.value.chartWidth - W.value.right) / W.value.chartWidth : null,
|
|
2377
2355
|
isCursorPointer: B.value,
|
|
2378
2356
|
additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
|
|
2379
2357
|
handleType: z.value.style.chart.zoom.minimap.handleType,
|
|
@@ -2382,23 +2360,23 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2382
2360
|
handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2383
2361
|
handleFill: z.value.style.chart.zoom.minimap.handleFill,
|
|
2384
2362
|
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2385
|
-
"onUpdate:end":
|
|
2386
|
-
"onUpdate:start":
|
|
2387
|
-
onTrapMouse:
|
|
2388
|
-
onReset: r[2] ||= () =>
|
|
2389
|
-
onFutureEnd: r[3] ||= (e) =>
|
|
2390
|
-
onFutureStart: r[4] ||= (e) =>
|
|
2363
|
+
"onUpdate:end": ni,
|
|
2364
|
+
"onUpdate:start": ti,
|
|
2365
|
+
onTrapMouse: vr,
|
|
2366
|
+
onReset: r[2] ||= () => Tr({ force: !0 }),
|
|
2367
|
+
onFutureEnd: r[3] ||= (e) => xr("end", e),
|
|
2368
|
+
onFutureStart: r[4] ||= (e) => xr("start", e)
|
|
2391
2369
|
}, {
|
|
2392
|
-
"reset-action":
|
|
2393
|
-
slotMap:
|
|
2370
|
+
"reset-action": P(({ reset: e }) => [j(t.$slots, "reset-action", D(T({ reset: e })), void 0, !0)]),
|
|
2371
|
+
slotMap: P(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Yi({
|
|
2394
2372
|
minimapW: e,
|
|
2395
2373
|
minimapH: t,
|
|
2396
2374
|
unitW: n
|
|
2397
|
-
}) }, null, 8,
|
|
2375
|
+
}) }, null, 8, zt)]),
|
|
2398
2376
|
_: 3
|
|
2399
|
-
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
|
|
2400
|
-
w("div", { id: `legend-bottom-${I.value}` }, null, 8,
|
|
2401
|
-
Ge(
|
|
2377
|
+
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
|
|
2378
|
+
w("div", { id: `legend-bottom-${I.value}` }, null, 8, Bt),
|
|
2379
|
+
Ge(N(Vt), {
|
|
2402
2380
|
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2403
2381
|
show: H.value.showTooltip && nn.value,
|
|
2404
2382
|
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
@@ -2412,19 +2390,19 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2412
2390
|
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2413
2391
|
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2414
2392
|
parent: tn.value,
|
|
2415
|
-
content:
|
|
2393
|
+
content: vi.value,
|
|
2416
2394
|
isFullscreen: un.value,
|
|
2417
2395
|
isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
|
|
2418
2396
|
smooth: z.value.style.chart.tooltip.smooth,
|
|
2419
2397
|
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2420
2398
|
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
2421
2399
|
smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2422
|
-
isA11yMode:
|
|
2423
|
-
a11yPosition:
|
|
2400
|
+
isA11yMode: kn.value === "keyboard",
|
|
2401
|
+
a11yPosition: On.value
|
|
2424
2402
|
}, {
|
|
2425
|
-
"tooltip-before":
|
|
2426
|
-
tooltip:
|
|
2427
|
-
"tooltip-after":
|
|
2403
|
+
"tooltip-before": P(() => [j(t.$slots, "tooltip-before", D(T({ ...Xr.value })), void 0, !0)]),
|
|
2404
|
+
tooltip: P(() => [j(t.$slots, "tooltip", D(T({ ...Xr.value })), void 0, !0)]),
|
|
2405
|
+
"tooltip-after": P(() => [j(t.$slots, "tooltip-after", D(T({ ...Xr.value })), void 0, !0)]),
|
|
2428
2406
|
_: 3
|
|
2429
2407
|
}, 8, [
|
|
2430
2408
|
"teleportTo",
|
|
@@ -2450,15 +2428,15 @@ var at = /* @__PURE__ */ e({ default: () => Ht }), ot = ["id"], st = ["id"], ct
|
|
|
2450
2428
|
"isA11yMode",
|
|
2451
2429
|
"a11yPosition"
|
|
2452
2430
|
]),
|
|
2453
|
-
t.$slots.source ? (
|
|
2431
|
+
t.$slots.source ? (O(), C("div", {
|
|
2454
2432
|
key: 9,
|
|
2455
2433
|
ref_key: "source",
|
|
2456
2434
|
ref: ln,
|
|
2457
2435
|
dir: "auto"
|
|
2458
|
-
}, [
|
|
2459
|
-
|
|
2460
|
-
], 46,
|
|
2436
|
+
}, [j(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
|
|
2437
|
+
j(t.$slots, "skeleton", {}, () => [N(zn) ? (O(), x(xe, { key: 0 })) : S("", !0)], !0)
|
|
2438
|
+
], 46, at));
|
|
2461
2439
|
}
|
|
2462
|
-
}, [["__scopeId", "data-v-
|
|
2440
|
+
}, [["__scopeId", "data-v-deca57cf"]]);
|
|
2463
2441
|
//#endregion
|
|
2464
|
-
export {
|
|
2442
|
+
export { it as n, Vt as t };
|