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,30 +1,30 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, G as r, Gt as a, Jt as o, K as s, Kt as c, Ot as l, Pt as u, S as d, Wt as f, X as p, _ as ee, c as te, ct as ne, dt as re, i as
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as we } from "./useNestedProp--NSEmhOH.js";
|
|
2
|
+
import { $ as t, D as n, G as r, Gt as a, Jt as o, K as s, Kt as c, Ot as l, Pt as u, S as d, Wt as f, X as p, _ as ee, c as te, ct as ne, dt as re, i as ie, jt as ae, ot as oe, pt as se, q as ce, r as le, t as ue, tt as de, v as fe, w as pe, xt as me } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { n as _e, r as ve, t as ye } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as be } from "./useConfig-DlNpz6P8.js";
|
|
6
|
+
import { t as xe } from "./usePrinter-DN5bYhTG.js";
|
|
7
|
+
import { n as Se, t as Ce } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
+
import { t as we } from "./useNestedProp-vPNvh7rV.js";
|
|
10
9
|
import { t as Te } from "./useThemeCheck-C43Tcqmk.js";
|
|
11
|
-
import { t as Ee } from "./
|
|
12
|
-
import { t as De } from "./
|
|
13
|
-
import { t as Oe } from "./
|
|
14
|
-
import { t as ke } from "./
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as Me } from "./
|
|
18
|
-
import {
|
|
19
|
-
import { t as Fe } from "./
|
|
20
|
-
import { t as Ie } from "./
|
|
21
|
-
import { t as Le } from "./
|
|
22
|
-
import { t as Re } from "./
|
|
23
|
-
import { t as ze } from "./
|
|
24
|
-
import { t as Be } from "./
|
|
25
|
-
import { t as Ve } from "./
|
|
26
|
-
import { t as He } from "./
|
|
27
|
-
import {
|
|
10
|
+
import { t as Ee } from "./useChartExport-DNiwdPmb.js";
|
|
11
|
+
import { t as De } from "./useTransitions-g_zBREk2.js";
|
|
12
|
+
import { t as Oe } from "./useStableElementSize-C7KADDKj.js";
|
|
13
|
+
import { t as ke } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
+
import { t as Ae } from "./img-Bnokohej.js";
|
|
15
|
+
import { n as je } from "./Title-BE3qg9xl.js";
|
|
16
|
+
import { t as Me } from "./Shape-C21CMlWS.js";
|
|
17
|
+
import { t as Ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
18
|
+
import { l as Pe, t as Fe } from "./useResponsive-ZtArZtUf.js";
|
|
19
|
+
import { t as Ie } from "./DefGrad-DVBqDjhO.js";
|
|
20
|
+
import { t as Le } from "./SlicerPreview-wUw1hFwe.js";
|
|
21
|
+
import { t as Re } from "./BaseLegendToggle-DZVucLnv.js";
|
|
22
|
+
import { t as ze } from "./A11yDataTable-DdRsVULz.js";
|
|
23
|
+
import { t as Be } from "./useUserOptionState-DK-_1ddE.js";
|
|
24
|
+
import { t as Ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
25
|
+
import { t as He } from "./Legend-CQxUgOd-.js";
|
|
26
|
+
import { t as Ue } from "./vue_ui_stackbar-COOrQQdK.js";
|
|
27
|
+
import { Fragment as m, Teleport as We, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as b, mergeProps as Ye, nextTick as Xe, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as Ze, onMounted as Qe, openBlock as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as $e, shallowRef as et, toDisplayString as O, toRefs as tt, unref as k, useSlots as nt, watch as rt, watchEffect as it, withCtx as A } from "vue";
|
|
28
28
|
//#region src/components/vue-ui-stackbar.vue
|
|
29
29
|
var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct = ["id"], lt = { style: { position: "relative" } }, ut = [
|
|
30
30
|
"xmlns",
|
|
@@ -235,7 +235,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
235
235
|
"width",
|
|
236
236
|
"fill",
|
|
237
237
|
"stroke"
|
|
238
|
-
], Zt = ["id"], Qt = ["onClick"], $t = ["innerHTML"], en = /*#__PURE__*/
|
|
238
|
+
], Zt = ["id"], Qt = ["onClick"], $t = ["innerHTML"], en = /*#__PURE__*/ Ne({
|
|
239
239
|
__name: "vue-ui-stackbar",
|
|
240
240
|
props: {
|
|
241
241
|
config: {
|
|
@@ -262,52 +262,52 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
262
262
|
"selectX",
|
|
263
263
|
"copyAlt"
|
|
264
264
|
],
|
|
265
|
-
setup(e, { expose:
|
|
266
|
-
let en = Je(() => import("./Tooltip-
|
|
265
|
+
setup(e, { expose: Ne, emit: at }) {
|
|
266
|
+
let en = Je(() => import("./Tooltip-DhjyfHwz.js")), tn = Je(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), nn = Je(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), rn = Je(() => import("./DataTable-BbKgJ5UI.js")), an = Je(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), on = Je(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), sn = Je(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), cn = Je(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_stackbar: ln } = be(), { isThemeValid: un, warnInvalidTheme: dn } = Te(), fn = nt(), j = e, M = at, pn = h({
|
|
267
267
|
get() {
|
|
268
268
|
return !!j.dataset && j.dataset.length;
|
|
269
269
|
},
|
|
270
270
|
set(e) {
|
|
271
271
|
return e;
|
|
272
272
|
}
|
|
273
|
-
}), N = T(null), P = T(
|
|
273
|
+
}), N = T(null), P = T(ce()), mn = T(!1), hn = T(null), gn = T(""), F = T([]), _n = T(0), vn = T(null), yn = T(null), bn = T(null), xn = T(null), Sn = T(!1), I = T(null), Cn = T(!1), wn = T(0), Tn = T(0), En = T(0), Dn = T(!1), On = T(null), kn = T(null), An = T(null), jn = T(null), Mn = T(null), Nn = T(null), Pn = T(null), Fn = T(null), In = et(null), Ln = T(!1), Rn = T(0), zn = T(0), L = T(null), Bn = T({
|
|
274
274
|
x: 0,
|
|
275
275
|
y: 0
|
|
276
|
-
}),
|
|
277
|
-
elementRef:
|
|
276
|
+
}), Vn = T("pointer"), Hn = Oe({
|
|
277
|
+
elementRef: In,
|
|
278
278
|
minimumWidth: 2,
|
|
279
279
|
minimumHeight: 2,
|
|
280
280
|
stableFramesRequired: 2,
|
|
281
281
|
once: !1,
|
|
282
282
|
onSizeAccepted: () => {
|
|
283
|
-
|
|
283
|
+
Gn();
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
|
-
function
|
|
287
|
-
|
|
286
|
+
function Un() {
|
|
287
|
+
In.value = N.value?.parentNode ?? null;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function Wn() {
|
|
290
290
|
return new Promise((e) => {
|
|
291
291
|
requestAnimationFrame(() => {
|
|
292
292
|
requestAnimationFrame(e);
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
async function
|
|
297
|
-
let e = ++
|
|
298
|
-
|
|
296
|
+
async function Gn() {
|
|
297
|
+
let e = ++zn.value;
|
|
298
|
+
Ln.value = !1, await Xe(), await Wn(), await Wn(), e === zn.value && (Rn.value += 1, Ln.value = !0);
|
|
299
299
|
}
|
|
300
|
-
let
|
|
300
|
+
let Kn = T(null);
|
|
301
301
|
Qe(() => {
|
|
302
|
-
Dn.value = !0,
|
|
302
|
+
Dn.value = !0, Un(), Hn.start(), mr();
|
|
303
303
|
});
|
|
304
|
-
let R = T(
|
|
305
|
-
|
|
304
|
+
let R = T(rr());
|
|
305
|
+
he({
|
|
306
306
|
config: () => R.value,
|
|
307
307
|
dataset: () => j.dataset,
|
|
308
308
|
component: "VueUiStackbar",
|
|
309
309
|
rules: [
|
|
310
|
-
|
|
310
|
+
ge.emptyArray,
|
|
311
311
|
{
|
|
312
312
|
test: (e) => e.some((e) => e.series.length > 60),
|
|
313
313
|
message: [
|
|
@@ -332,10 +332,10 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
332
332
|
}
|
|
333
333
|
]
|
|
334
334
|
});
|
|
335
|
-
let { transitionEnabled: z } =
|
|
335
|
+
let { transitionEnabled: z } = De({
|
|
336
336
|
config: () => R.value.transitions,
|
|
337
337
|
dataset: () => j.dataset
|
|
338
|
-
}), B =
|
|
338
|
+
}), B = h(() => R.value.userOptions.useCursorPointer), qn = h(() => o({
|
|
339
339
|
defaultConfig: {
|
|
340
340
|
userOptions: { show: !1 },
|
|
341
341
|
useCssAnimation: !1,
|
|
@@ -380,13 +380,13 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
380
380
|
} }
|
|
381
381
|
},
|
|
382
382
|
userConfig: R.value.skeletonConfig ?? {}
|
|
383
|
-
})), { loading:
|
|
383
|
+
})), { loading: Jn, FINAL_DATASET: Yn, manualLoading: Xn } = Se({
|
|
384
384
|
...tt(j),
|
|
385
385
|
FINAL_CONFIG: R,
|
|
386
|
-
prepareConfig:
|
|
386
|
+
prepareConfig: rr,
|
|
387
387
|
callback: () => {
|
|
388
388
|
Promise.resolve().then(async () => {
|
|
389
|
-
(!R.value.style.chart.zoom.keepState || !
|
|
389
|
+
(!R.value.style.chart.zoom.keepState || !Gi.value || J.value.start === 0 && J.value.end === 0) && await Ki();
|
|
390
390
|
});
|
|
391
391
|
},
|
|
392
392
|
skeletonDataset: j.config?.skeletonDataset ?? [{
|
|
@@ -414,20 +414,20 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
414
414
|
}],
|
|
415
415
|
skeletonConfig: o({
|
|
416
416
|
defaultConfig: R.value,
|
|
417
|
-
userConfig:
|
|
417
|
+
userConfig: qn.value
|
|
418
418
|
})
|
|
419
|
-
}), { userOptionsVisible:
|
|
420
|
-
function
|
|
421
|
-
|
|
419
|
+
}), { userOptionsVisible: Zn, setUserOptionsVisibility: Qn, keepUserOptionState: $n } = Be({ config: R.value }), { svgRef: er } = Ve({ config: R.value.style.chart.title });
|
|
420
|
+
function tr() {
|
|
421
|
+
Qn(!0);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
|
|
423
|
+
function nr() {
|
|
424
|
+
Qn(!1), M("selectX", {
|
|
425
425
|
index: null,
|
|
426
426
|
indexLabel: null,
|
|
427
427
|
dataset: null
|
|
428
428
|
}), I.value = null, L.value = null, mn.value = !1;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function rr() {
|
|
431
431
|
let e = we({
|
|
432
432
|
userConfig: j.config,
|
|
433
433
|
defaultConfig: ln
|
|
@@ -435,7 +435,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
435
435
|
if (n) if (!un.value(e)) dn(e), t = e;
|
|
436
436
|
else {
|
|
437
437
|
let r = we({
|
|
438
|
-
userConfig:
|
|
438
|
+
userConfig: Ue[n] || j.config,
|
|
439
439
|
defaultConfig: e
|
|
440
440
|
});
|
|
441
441
|
t = {
|
|
@@ -449,11 +449,11 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
449
449
|
else t = e;
|
|
450
450
|
return t;
|
|
451
451
|
}
|
|
452
|
-
let
|
|
452
|
+
let ir = h(() => R.value.style.chart.bars.dataLabels.hideUnderValue != null), ar = h(() => R.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
|
|
453
453
|
rt(() => j.config, (e) => {
|
|
454
|
-
|
|
454
|
+
Jn.value || (R.value = rr()), Zn.value = !R.value.userOptions.showOnChartHover, mr({ resetSlicer: !R.value.style.chart.zoom.keepState }), wn.value += 1, Tn.value += 1, En.value += 1, V.value.dataLabels.show = R.value.style.chart.bars.dataLabels.show, V.value.showTable = R.value.table.show, V.value.showTooltip = R.value.style.chart.tooltip.show, Un(), !R.value.style.chart.zoom.keepState || !Gi.value || J.value.start === 0 && J.value.end === 0 ? Ki() : Ar();
|
|
455
455
|
}, { deep: !0 }), rt(() => j.dataset, (e) => {
|
|
456
|
-
Array.isArray(e) && e.length > 0 && (
|
|
456
|
+
Array.isArray(e) && e.length > 0 && (Xn.value = !1), Un(), R.value.style.chart.zoom.keepState ? Ar() : Nr();
|
|
457
457
|
}, { deep: !0 });
|
|
458
458
|
let V = T({
|
|
459
459
|
dataLabels: { show: R.value.style.chart.bars.dataLabels.show },
|
|
@@ -467,7 +467,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
467
467
|
showTooltip: R.value.style.chart.tooltip.show
|
|
468
468
|
};
|
|
469
469
|
}, { immediate: !0 });
|
|
470
|
-
let { isPrinting:
|
|
470
|
+
let { isPrinting: or, isImaging: sr, generatePdf: cr, generateImage: lr } = xe({
|
|
471
471
|
elementId: `stackbar_${P.value}`,
|
|
472
472
|
fileName: R.value.style.chart.title.text || "vue-ui-stackbar",
|
|
473
473
|
options: R.value.userOptions.print
|
|
@@ -480,31 +480,31 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
480
480
|
bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
|
|
481
481
|
left: R.value.style.chart.padding.left / R.value.style.chart.width
|
|
482
482
|
}
|
|
483
|
-
}),
|
|
484
|
-
function
|
|
485
|
-
if (
|
|
483
|
+
}), ur = h(() => pe(R.value.customPalette)), U = et(null), dr = et(null), fr = T(null), pr = h(() => R.value.debug);
|
|
484
|
+
function mr({ resetSlicer: e = !0 } = {}) {
|
|
485
|
+
if (ae(j.dataset) ? (de({
|
|
486
486
|
componentName: "VueUiStackbar",
|
|
487
487
|
type: "dataset",
|
|
488
|
-
debug:
|
|
489
|
-
}),
|
|
490
|
-
|
|
488
|
+
debug: pr.value
|
|
489
|
+
}), Xn.value = !0) : j.dataset.forEach((e, t) => {
|
|
490
|
+
se({
|
|
491
491
|
datasetObject: e,
|
|
492
492
|
requiredAttributes: ["name", "series"]
|
|
493
493
|
}).forEach((e) => {
|
|
494
|
-
pn.value = !1,
|
|
494
|
+
pn.value = !1, de({
|
|
495
495
|
componentName: "VueUiStackbar",
|
|
496
496
|
type: "datasetSerieAttribute",
|
|
497
497
|
property: e,
|
|
498
498
|
index: t,
|
|
499
|
-
debug:
|
|
500
|
-
}),
|
|
499
|
+
debug: pr.value
|
|
500
|
+
}), Xn.value = !0;
|
|
501
501
|
});
|
|
502
|
-
}),
|
|
502
|
+
}), ae(j.dataset) || (Xn.value = R.value.loading), setTimeout(() => {
|
|
503
503
|
Cn.value = !0;
|
|
504
504
|
}, 10), R.value.responsive) {
|
|
505
|
-
let e =
|
|
505
|
+
let e = Pe(() => {
|
|
506
506
|
Cn.value = !1;
|
|
507
|
-
let { width: e, height: t } =
|
|
507
|
+
let { width: e, height: t } = Fe({
|
|
508
508
|
chart: N.value,
|
|
509
509
|
title: R.value.style.chart.title.text ? vn.value : null,
|
|
510
510
|
legend: R.value.style.chart.legend.show ? yn.value : null,
|
|
@@ -512,29 +512,29 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
512
512
|
source: xn.value
|
|
513
513
|
});
|
|
514
514
|
requestAnimationFrame(() => {
|
|
515
|
-
H.value.width = e, H.value.height = t - 12, clearTimeout(
|
|
515
|
+
H.value.width = e, H.value.height = t - 12, clearTimeout(fr.value), fr.value = setTimeout(() => {
|
|
516
516
|
Cn.value = !0;
|
|
517
517
|
}, 10);
|
|
518
518
|
});
|
|
519
519
|
});
|
|
520
|
-
U.value && (
|
|
520
|
+
U.value && (dr.value && U.value.unobserve(dr.value), U.value.disconnect()), U.value = new ResizeObserver(e), dr.value = N.value.parentNode, U.value.observe(dr.value);
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
Gn(), e && Ki();
|
|
523
523
|
}
|
|
524
524
|
Ze(() => {
|
|
525
|
-
|
|
525
|
+
Hn.stop(), U.value && (dr.value && U.value.unobserve(dr.value), U.value.disconnect());
|
|
526
526
|
});
|
|
527
|
-
let W =
|
|
528
|
-
function
|
|
527
|
+
let W = h(() => R.value.style.chart.grid.y.position === "right");
|
|
528
|
+
function hr() {
|
|
529
529
|
let e = 0;
|
|
530
|
-
R.value.orientation === "vertical" &&
|
|
530
|
+
R.value.orientation === "vertical" && Mn.value && (e = Array.from(Mn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
531
531
|
let n = t.getComputedTextLength();
|
|
532
532
|
return n > e ? n : e;
|
|
533
|
-
}, 0)), R.value.orientation === "horizontal" &&
|
|
533
|
+
}, 0)), R.value.orientation === "horizontal" && Nn.value && (e = Array.from(Nn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
534
534
|
let n = t.getComputedTextLength();
|
|
535
535
|
return n > e ? n : e;
|
|
536
536
|
}, 0));
|
|
537
|
-
let t =
|
|
537
|
+
let t = jn.value ? jn.value.getBoundingClientRect().width + R.value.style.chart.grid.y.axisName.fontSize + R.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
538
538
|
return {
|
|
539
539
|
left: W.value ? 0 : e + t,
|
|
540
540
|
right: W.value ? e + t : 0,
|
|
@@ -542,12 +542,12 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
542
542
|
yAxisLabelWidth: t
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
let
|
|
546
|
-
|
|
545
|
+
let gr = T(0), _r = T(0), vr = Pe((e) => {
|
|
546
|
+
_r.value = e + R.value.style.chart.bars.totalValues.fontSize;
|
|
547
547
|
}, 100);
|
|
548
|
-
function
|
|
548
|
+
function yr() {
|
|
549
549
|
if (R.value.orientation !== "horizontal") return 0;
|
|
550
|
-
let e =
|
|
550
|
+
let e = Fn.value;
|
|
551
551
|
if (!e) return 0;
|
|
552
552
|
let t = Array.from(e.querySelectorAll("text"));
|
|
553
553
|
if (!t.length) return 0;
|
|
@@ -560,11 +560,11 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
560
560
|
}
|
|
561
561
|
it((e) => {
|
|
562
562
|
if (R.value.orientation !== "horizontal") return;
|
|
563
|
-
let t =
|
|
563
|
+
let t = Fn.value;
|
|
564
564
|
if (!t) return;
|
|
565
565
|
let n = () => {
|
|
566
|
-
let e =
|
|
567
|
-
|
|
566
|
+
let e = yr();
|
|
567
|
+
vr(e);
|
|
568
568
|
};
|
|
569
569
|
n();
|
|
570
570
|
let r = new ResizeObserver(n);
|
|
@@ -578,52 +578,52 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
578
578
|
r.disconnect(), a.disconnect();
|
|
579
579
|
});
|
|
580
580
|
}), Ze(() => {
|
|
581
|
-
|
|
581
|
+
gr.value = 0, _r.value = 0;
|
|
582
582
|
});
|
|
583
|
-
let
|
|
584
|
-
function
|
|
583
|
+
let br = T(0), xr = T(0);
|
|
584
|
+
function Sr(e) {
|
|
585
585
|
let t = Number.isFinite(e) ? e : 0;
|
|
586
|
-
|
|
586
|
+
br.value !== t && (br.value = t);
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
let e = R.value.orientation === "vertical" ?
|
|
588
|
+
function Cr() {
|
|
589
|
+
let e = R.value.orientation === "vertical" ? Nn.value : Mn.value;
|
|
590
590
|
if (!e) {
|
|
591
|
-
|
|
591
|
+
Sr(0);
|
|
592
592
|
return;
|
|
593
593
|
}
|
|
594
594
|
try {
|
|
595
|
-
|
|
595
|
+
Sr(e.getBBox()?.height);
|
|
596
596
|
} catch {
|
|
597
|
-
|
|
597
|
+
Sr(0);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
|
|
600
|
+
function wr() {
|
|
601
|
+
xr.value && cancelAnimationFrame(xr.value), xr.value = requestAnimationFrame(() => {
|
|
602
602
|
requestAnimationFrame(() => {
|
|
603
|
-
|
|
603
|
+
Cr();
|
|
604
604
|
});
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
Ze(() => {
|
|
608
|
-
|
|
608
|
+
xr.value && cancelAnimationFrame(xr.value);
|
|
609
609
|
});
|
|
610
|
-
let
|
|
610
|
+
let Tr = h(() => {
|
|
611
611
|
let e = 0;
|
|
612
|
-
if (
|
|
613
|
-
e =
|
|
612
|
+
if (An.value) try {
|
|
613
|
+
e = An.value.getBBox().height;
|
|
614
614
|
} catch {
|
|
615
615
|
e = 0;
|
|
616
616
|
}
|
|
617
|
-
let t = R.value.style.chart.grid.x.timeLabels.show ?
|
|
617
|
+
let t = R.value.style.chart.grid.x.timeLabels.show ? br.value : 0;
|
|
618
618
|
return e + t;
|
|
619
|
-
}), G =
|
|
620
|
-
|
|
619
|
+
}), G = h(() => {
|
|
620
|
+
Rn.value;
|
|
621
621
|
let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = R.value.style.chart.bars.totalValues.show && j.dataset && j.dataset.length > 1 ? R.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
|
|
622
622
|
if (R.value.style.chart.grid.y.axisLabels.show) {
|
|
623
|
-
let e =
|
|
623
|
+
let e = hr();
|
|
624
624
|
a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
|
|
625
625
|
}
|
|
626
|
-
let l = R.value.style.chart.padding.top + r, u = t - t * n -
|
|
626
|
+
let l = R.value.style.chart.padding.top + r, u = t - t * n - _r.value - o, d = e - R.value.style.chart.padding.bottom - Tr.value - r, f = R.value.style.chart.padding.left + a, p = t - f - t * n - _r.value - o, ee = e - l - R.value.style.chart.padding.bottom - Tr.value - r;
|
|
627
627
|
return {
|
|
628
628
|
chartHeight: e,
|
|
629
629
|
chartWidth: t,
|
|
@@ -638,7 +638,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
638
638
|
scaleLabelsWidth: s,
|
|
639
639
|
yAxisLabelWidth: c
|
|
640
640
|
};
|
|
641
|
-
}),
|
|
641
|
+
}), Er = h(() => {
|
|
642
642
|
let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
|
|
643
643
|
fill: R.value.style.chart.zoom.preview.fill,
|
|
644
644
|
stroke: R.value.style.chart.zoom.preview.stroke,
|
|
@@ -661,7 +661,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
661
661
|
height: u * a,
|
|
662
662
|
...d
|
|
663
663
|
};
|
|
664
|
-
}
|
|
664
|
+
}
|
|
665
|
+
{
|
|
665
666
|
let a = n / s;
|
|
666
667
|
return {
|
|
667
668
|
x: e + c * a,
|
|
@@ -671,8 +672,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
671
672
|
...d
|
|
672
673
|
};
|
|
673
674
|
}
|
|
674
|
-
}), K =
|
|
675
|
-
let n =
|
|
675
|
+
}), K = h(() => Yn.value.map((e, t) => {
|
|
676
|
+
let n = ce(), r = String(e.key ?? e.id ?? e.name ?? n), a = d(e.color) || ur.value[t] || u[t] || u[t % u.length];
|
|
676
677
|
return {
|
|
677
678
|
...e,
|
|
678
679
|
datasetKey: r,
|
|
@@ -682,58 +683,58 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
682
683
|
id: n,
|
|
683
684
|
color: a
|
|
684
685
|
};
|
|
685
|
-
})), q =
|
|
686
|
+
})), q = h(() => {
|
|
686
687
|
let e = Math.max(...K.value.filter((e) => !F.value.includes(e.id)).map((e) => e.series.length));
|
|
687
688
|
return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
|
|
688
689
|
});
|
|
689
|
-
function
|
|
690
|
-
|
|
690
|
+
function Dr(e) {
|
|
691
|
+
Kn.value = e;
|
|
691
692
|
}
|
|
692
693
|
let J = T({
|
|
693
694
|
start: 0,
|
|
694
|
-
end: Math.max(...
|
|
695
|
+
end: Math.max(...Yn.value.map((e) => e.series.length))
|
|
695
696
|
}), Y = T({
|
|
696
697
|
start: 0,
|
|
697
|
-
end: Math.max(...
|
|
698
|
-
}),
|
|
699
|
-
function
|
|
698
|
+
end: Math.max(...Yn.value.map((e) => e.series.length))
|
|
699
|
+
}), Or = h(() => R.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
700
|
+
function kr(e, t) {
|
|
700
701
|
Y.value[e] = t;
|
|
701
702
|
}
|
|
702
|
-
function
|
|
703
|
+
function Ar() {
|
|
703
704
|
let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
704
705
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, bn.value && (bn.value.setStartValue(t), bn.value.setEndValue(n));
|
|
705
706
|
}
|
|
706
|
-
let
|
|
707
|
-
function
|
|
707
|
+
let jr = T(null);
|
|
708
|
+
function Mr() {
|
|
708
709
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
709
710
|
}
|
|
710
711
|
Ze(() => {
|
|
711
|
-
|
|
712
|
+
jr.value && cancelAnimationFrame(jr.value);
|
|
712
713
|
});
|
|
713
|
-
async function
|
|
714
|
-
if (R.value.style.chart.zoom.keepState && !e &&
|
|
715
|
-
|
|
714
|
+
async function Nr({ force: e = !1 } = {}) {
|
|
715
|
+
if (R.value.style.chart.zoom.keepState && !e && Gi.value && (J.value.start !== 0 || J.value.end !== 0)) {
|
|
716
|
+
Ar();
|
|
716
717
|
return;
|
|
717
718
|
}
|
|
718
|
-
|
|
719
|
-
await
|
|
719
|
+
Ki(), await Xe(), jr.value && cancelAnimationFrame(jr.value), jr.value = requestAnimationFrame(async () => {
|
|
720
|
+
await Mr(), Ki();
|
|
720
721
|
});
|
|
721
722
|
}
|
|
722
|
-
let X =
|
|
723
|
+
let X = h(() => {
|
|
723
724
|
let e;
|
|
724
725
|
return e = R.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
|
|
725
|
-
}),
|
|
726
|
+
}), Pr = h(() => f(K.value.filter((e) => !F.value.includes(e.id))).slice(J.value.start, J.value.end)), Fr = h(() => F.value.length === K.value.length), Ir = h(() => R.value.style.chart.zoom.minimap.show ? f(K.value.map((e) => ({
|
|
726
727
|
...e,
|
|
727
728
|
series: e.series.map((e) => e ?? 0)
|
|
728
|
-
})).filter((e) =>
|
|
729
|
+
})).filter((e) => Fr.value ? !0 : !F.value.includes(e.id))) : []), Lr = h(() => R.value.style.chart.zoom.minimap.show ? [{
|
|
729
730
|
name: "",
|
|
730
|
-
series:
|
|
731
|
+
series: Ir.value,
|
|
731
732
|
color: "#000000",
|
|
732
733
|
isVisible: !0
|
|
733
|
-
}] : []),
|
|
734
|
+
}] : []), Rr = h(() => f(K.value.filter((e) => !F.value.includes(e.id)).map((e) => ({
|
|
734
735
|
...e,
|
|
735
736
|
series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
|
|
736
|
-
}))).slice(J.value.start, J.value.end)),
|
|
737
|
+
}))).slice(J.value.start, J.value.end)), zr = h(() => {
|
|
737
738
|
let e = K.value.filter((e) => !F.value.includes(e.id));
|
|
738
739
|
return {
|
|
739
740
|
positive: f(e.map((e) => ({
|
|
@@ -745,18 +746,18 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
745
746
|
series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
|
|
746
747
|
})))
|
|
747
748
|
};
|
|
748
|
-
}),
|
|
749
|
-
let e = R.value.style.chart.grid.scale.scaleMax !== null && !R.value.style.chart.bars.distributed ? R.value.style.chart.grid.scale.scaleMax : Math.max(...
|
|
749
|
+
}), Br = h(() => {
|
|
750
|
+
let e = R.value.style.chart.grid.scale.scaleMax !== null && !R.value.style.chart.bars.distributed ? R.value.style.chart.grid.scale.scaleMax : Math.max(...zr.value.positive), t = Math.min(...zr.value.negative), n = R.value.style.chart.grid.scale.scaleMin !== null && !R.value.style.chart.bars.distributed ? R.value.style.chart.grid.scale.scaleMin : [
|
|
750
751
|
-Infinity,
|
|
751
752
|
Infinity,
|
|
752
753
|
NaN,
|
|
753
754
|
void 0,
|
|
754
755
|
null
|
|
755
756
|
].includes(t) ? 0 : t;
|
|
756
|
-
return !R.value.style.chart.bars.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
757
|
-
}),
|
|
758
|
-
let e =
|
|
759
|
-
return
|
|
757
|
+
return !R.value.style.chart.bars.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? fe(n > 0 ? 0 : n, e < 0 ? 0 : e, R.value.style.chart.grid.scale.ticks) : ee(n > 0 ? 0 : n, e < 0 ? 0 : e, R.value.style.chart.grid.scale.ticks);
|
|
758
|
+
}), Vr = h(() => Br.value.ticks), Z = h(() => {
|
|
759
|
+
let e = Br.value, t = e.max + Math.abs(e.min);
|
|
760
|
+
return Vr.value.map((n) => ({
|
|
760
761
|
zero: G.value.bottom - G.value.height * (Math.abs(e.min) / t),
|
|
761
762
|
y: G.value.bottom - G.value.height * ((n + Math.abs(e.min)) / t),
|
|
762
763
|
x: W.value ? G.value.right + 8 : G.value.left - 8,
|
|
@@ -765,9 +766,9 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
765
766
|
horizontal_y: G.value.bottom - 8,
|
|
766
767
|
value: n
|
|
767
768
|
}));
|
|
768
|
-
}),
|
|
769
|
+
}), Hr = h(() => {
|
|
769
770
|
let e = R.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = R.value.style.chart.bars.dataLabels;
|
|
770
|
-
return
|
|
771
|
+
return Vr.value.map((r) => String(ie(e.formatter, r, p({
|
|
771
772
|
p: t,
|
|
772
773
|
v: r,
|
|
773
774
|
s: n,
|
|
@@ -775,83 +776,83 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
775
776
|
}), { datapoint: { value: r } }) ?? "")).join("|");
|
|
776
777
|
});
|
|
777
778
|
rt(() => [
|
|
778
|
-
|
|
779
|
+
Hr.value,
|
|
779
780
|
R.value.orientation,
|
|
780
781
|
R.value.style.chart.grid.y.axisLabels.show,
|
|
781
782
|
R.value.style.chart.grid.y.axisLabels.fontSize,
|
|
782
783
|
R.value.style.chart.grid.y.axisLabels.bold,
|
|
783
784
|
R.value.style.chart.grid.y.position
|
|
784
785
|
], () => {
|
|
785
|
-
R.value.style.chart.grid.y.axisLabels.show &&
|
|
786
|
+
R.value.style.chart.grid.y.axisLabels.show && Gn();
|
|
786
787
|
}, { flush: "post" });
|
|
787
|
-
let Q = T([]),
|
|
788
|
+
let Q = T([]), Ur = T([]), Wr = 0;
|
|
788
789
|
it(() => {
|
|
789
|
-
let e = ++
|
|
790
|
+
let e = ++Wr;
|
|
790
791
|
(async () => {
|
|
791
|
-
let t = await
|
|
792
|
+
let t = await ye({
|
|
792
793
|
values: R.value.style.chart.grid.x.timeLabels.values,
|
|
793
794
|
maxDatapoints: q.value,
|
|
794
795
|
formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
795
796
|
start: J.value.start,
|
|
796
797
|
end: J.value.end
|
|
797
798
|
});
|
|
798
|
-
e ===
|
|
799
|
+
e === Wr && (Q.value = t);
|
|
799
800
|
})();
|
|
800
801
|
});
|
|
801
|
-
let
|
|
802
|
+
let Gr = 0;
|
|
802
803
|
it(() => {
|
|
803
|
-
let e = ++
|
|
804
|
+
let e = ++Gr;
|
|
804
805
|
(async () => {
|
|
805
|
-
let t = await
|
|
806
|
+
let t = await ye({
|
|
806
807
|
values: R.value.style.chart.grid.x.timeLabels.values,
|
|
807
808
|
maxDatapoints: q.value,
|
|
808
809
|
formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
809
810
|
start: 0,
|
|
810
811
|
end: q.value
|
|
811
812
|
});
|
|
812
|
-
e ===
|
|
813
|
+
e === Gr && (Ur.value = t);
|
|
813
814
|
})();
|
|
814
815
|
});
|
|
815
|
-
let
|
|
816
|
+
let Kr = h(() => {
|
|
816
817
|
let e = R.value.style.chart.grid.x.timeLabels.modulo;
|
|
817
818
|
return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
|
|
818
|
-
}),
|
|
819
|
-
let e = R.value.style.chart.grid.x.timeLabels, t = Q.value || [], n =
|
|
820
|
-
return te(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
819
|
+
}), qr = h(() => {
|
|
820
|
+
let e = R.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = Ur.value || [], r = J.value.start ?? 0, a = I.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? "");
|
|
821
|
+
return te(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Kr.value || 1), s, c, r, a, o);
|
|
821
822
|
});
|
|
822
823
|
it(() => {
|
|
823
|
-
R.value.orientation, R.value.style.chart.grid.x.timeLabels.show, R.value.style.chart.grid.x.timeLabels.fontSize, R.value.style.chart.grid.x.timeLabels.rotation, R.value.style.chart.grid.x.timeLabels.offsetY,
|
|
824
|
+
R.value.orientation, R.value.style.chart.grid.x.timeLabels.show, R.value.style.chart.grid.x.timeLabels.fontSize, R.value.style.chart.grid.x.timeLabels.rotation, R.value.style.chart.grid.x.timeLabels.offsetY, qr.value?.map((e) => e?.text ?? "").join("|"), Hr.value, H.value.width, H.value.height, Nn.value, Mn.value, An.value, wr();
|
|
824
825
|
}, { flush: "post" });
|
|
825
|
-
let
|
|
826
|
+
let Jr = T({
|
|
826
827
|
months: [],
|
|
827
828
|
shortMonths: [],
|
|
828
829
|
days: [],
|
|
829
830
|
shortDays: []
|
|
830
|
-
}),
|
|
831
|
+
}), Yr = 0;
|
|
831
832
|
it(() => {
|
|
832
|
-
let e = ++
|
|
833
|
+
let e = ++Yr, t = R.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
833
834
|
(async () => {
|
|
834
|
-
let n = await
|
|
835
|
-
e ===
|
|
835
|
+
let n = await ve(t.locale).catch(() => ve("en"));
|
|
836
|
+
e === Yr && (Jr.value = n.data);
|
|
836
837
|
})();
|
|
837
838
|
});
|
|
838
|
-
let
|
|
839
|
-
let e = R.value.style.chart.grid.x.timeLabels.datetimeFormatter, t =
|
|
839
|
+
let Xr = h(() => {
|
|
840
|
+
let e = R.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = _e({
|
|
840
841
|
useUTC: e.useUTC,
|
|
841
|
-
locale:
|
|
842
|
+
locale: Jr.value,
|
|
842
843
|
januaryAsYear: e.januaryAsYear
|
|
843
844
|
});
|
|
844
845
|
return (e, n) => {
|
|
845
846
|
let r = R.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
846
847
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
847
848
|
};
|
|
848
|
-
}),
|
|
849
|
-
text:
|
|
849
|
+
}), Zr = h(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
850
|
+
text: Xr.value(t, R.value.style.chart.zoom.timeFormat),
|
|
850
851
|
absoluteIndex: t
|
|
851
|
-
}))),
|
|
852
|
-
text:
|
|
852
|
+
}))), Qr = h(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
853
|
+
text: Xr.value(t, R.value.style.chart.tooltip.timeFormat),
|
|
853
854
|
absoluteIndex: t
|
|
854
|
-
}))),
|
|
855
|
+
}))), $r = h(() => {
|
|
855
856
|
let e = /* @__PURE__ */ new Map();
|
|
856
857
|
return (R.value.style.chart.grid.x.timeLabels.values || []).forEach((t) => {
|
|
857
858
|
if ([
|
|
@@ -863,7 +864,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
863
864
|
e.set(n, (e.get(n) || 0) + 1);
|
|
864
865
|
}), e;
|
|
865
866
|
});
|
|
866
|
-
function
|
|
867
|
+
function ei(e) {
|
|
867
868
|
let t = (R.value.style.chart.grid.x.timeLabels.values || [])[e];
|
|
868
869
|
if ([
|
|
869
870
|
null,
|
|
@@ -871,98 +872,98 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
871
872
|
""
|
|
872
873
|
].includes(t)) return `fallback-${e}`;
|
|
873
874
|
let n = String(t);
|
|
874
|
-
return (
|
|
875
|
+
return ($r.value.get(n) || 0) > 1 ? `${n}-${e}` : n;
|
|
875
876
|
}
|
|
876
|
-
function
|
|
877
|
-
return `${e.datasetKey}:${
|
|
877
|
+
function ti(e, t) {
|
|
878
|
+
return `${e.datasetKey}:${ei(t)}`;
|
|
878
879
|
}
|
|
879
|
-
let $ =
|
|
880
|
-
if (!pn.value && !
|
|
881
|
-
let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...
|
|
880
|
+
let $ = h(() => {
|
|
881
|
+
if (!pn.value && !Jn.value) return [];
|
|
882
|
+
let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...zr.value.positive) || 0, o = Math.min(...zr.value.negative), s = [
|
|
882
883
|
-Infinity,
|
|
883
884
|
Infinity,
|
|
884
885
|
NaN,
|
|
885
886
|
void 0,
|
|
886
887
|
null
|
|
887
|
-
].includes(o) ? 0 : o, { min: c, max: l } = !R.value.style.chart.bars.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
888
|
+
].includes(o) ? 0 : o, { min: c, max: l } = !R.value.style.chart.bars.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? fe(R.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : ee(R.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width, p = Z.value[0] ? Z.value[0].zero : G.value.bottom, te = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, ne = Array(Ir.value.length).fill(0), re = Array(Ir.value.length).fill(0);
|
|
888
889
|
return K.value.filter((e) => !F.value.includes(e.id)).map((a) => {
|
|
889
890
|
let o = a.series.slice(), s = o.map((e, t) => ne[t]), c = o.map((e, t) => re[t]);
|
|
890
891
|
o.forEach((e, t) => {
|
|
891
892
|
(Number(e) || 0) >= 0 ? ne[t] += Number(e) || 0 : re[t] += Math.abs(Number(e) || 0);
|
|
892
893
|
});
|
|
893
|
-
let l = a.series.slice(J.value.start, J.value.end), ee = a.signedSeries.slice(J.value.start, J.value.end),
|
|
894
|
-
function
|
|
895
|
-
let t = 1e-9, n =
|
|
896
|
-
if (n &&
|
|
897
|
-
let n = Math.max(
|
|
894
|
+
let l = a.series.slice(J.value.start, J.value.end), ee = a.signedSeries.slice(J.value.start, J.value.end), ie = l.map((e, t) => ti(a, J.value.start + t)), ae = o.map((e, t) => ti(a, t)), oe = l.map((e, t) => G.value.left + X.value * t + X.value * R.value.style.chart.bars.gapRatio / 4), se = (Ir.value || []).filter(Number.isFinite), ce = se.length ? Math.max(...se) : 0, le = se.length ? Math.min(...se) : 0;
|
|
895
|
+
function ue({ minimapH: e }) {
|
|
896
|
+
let t = 1e-9, n = ce > 0;
|
|
897
|
+
if (n && le < 0) {
|
|
898
|
+
let n = Math.max(ce, Math.abs(le)) || t;
|
|
898
899
|
return {
|
|
899
900
|
pxPerUnit: e / 2 / n,
|
|
900
901
|
zero: e / 2
|
|
901
902
|
};
|
|
902
903
|
}
|
|
903
904
|
return n ? {
|
|
904
|
-
pxPerUnit: e / Math.max(t,
|
|
905
|
+
pxPerUnit: e / Math.max(t, ce),
|
|
905
906
|
zero: e
|
|
906
907
|
} : {
|
|
907
|
-
pxPerUnit: e / Math.max(t, Math.abs(
|
|
908
|
+
pxPerUnit: e / Math.max(t, Math.abs(le)),
|
|
908
909
|
zero: 0
|
|
909
910
|
};
|
|
910
911
|
}
|
|
911
|
-
let
|
|
912
|
+
let de = ({ left: e, unitW: t }) => {
|
|
912
913
|
let n = t * (R.value.style.chart.bars.gapRatio / 4);
|
|
913
914
|
return o.map((r, a) => e + t * a + n);
|
|
914
|
-
},
|
|
915
|
-
let a = R.value.style.chart.bars.distributed ? (t || 0) /
|
|
915
|
+
}, fe = l.map((e, t) => G.value.top + X.value * t + X.value * R.value.style.chart.bars.gapRatio / 4), pe = l.map((t, r) => {
|
|
916
|
+
let a = R.value.style.chart.bars.distributed ? (t || 0) / Pr.value[r] : (t || 0) / u, o, s;
|
|
916
917
|
return t > 0 ? (s = d * a, o = p - s - e[r], e[r] += s) : (s = d * a, o = p + n[r], n[r] += Math.abs(s)), o;
|
|
917
|
-
}),
|
|
918
|
+
}), me = ({ minimapH: e }) => {
|
|
918
919
|
if (R.value.style.chart.bars.distributed) return o.map((t, n) => {
|
|
919
|
-
let r = Math.abs(Number(t) || 0), a = Math.abs(
|
|
920
|
+
let r = Math.abs(Number(t) || 0), a = Math.abs(Ir.value?.[n] || 0) || 1e-9;
|
|
920
921
|
return e - (s[n] + r) / a * e;
|
|
921
922
|
});
|
|
922
|
-
let { pxPerUnit: t, zero: n } =
|
|
923
|
+
let { pxPerUnit: t, zero: n } = ue({ minimapH: e });
|
|
923
924
|
return o.map((e, r) => {
|
|
924
925
|
let a = Number(e) || 0;
|
|
925
926
|
return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
|
|
926
927
|
});
|
|
927
|
-
},
|
|
928
|
-
let a = R.value.style.chart.bars.distributed ? (e || 0) /
|
|
928
|
+
}, he = l.map((e, n) => {
|
|
929
|
+
let a = R.value.style.chart.bars.distributed ? (e || 0) / Pr.value[n] : (e || 0) / u, o, s;
|
|
929
930
|
return e > 0 ? (s = f * a, o = te + t[n], t[n] += s) : (s = f * a, o = te - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
|
|
930
|
-
}),
|
|
931
|
-
let n = R.value.style.chart.bars.distributed ? (e || 0) /
|
|
931
|
+
}), ge = l.map((e, t) => {
|
|
932
|
+
let n = R.value.style.chart.bars.distributed ? (e || 0) / Pr.value[t] : (e || 0) / u;
|
|
932
933
|
return e > 0 ? d * n : d * Math.abs(n);
|
|
933
|
-
}),
|
|
934
|
-
if (R.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(
|
|
935
|
-
let { pxPerUnit: t } =
|
|
934
|
+
}), _e = ({ minimapH: e }) => {
|
|
935
|
+
if (R.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Ir.value?.[n] || 0) || 1e-9) * e);
|
|
936
|
+
let { pxPerUnit: t } = ue({ minimapH: e });
|
|
936
937
|
return o.map((e) => Math.abs(Number(e) || 0) * t);
|
|
937
|
-
},
|
|
938
|
-
let n = R.value.style.chart.bars.distributed ? (e || 0) /
|
|
938
|
+
}, ve = l.map((e, t) => {
|
|
939
|
+
let n = R.value.style.chart.bars.distributed ? (e || 0) / Pr.value[t] : (e || 0) / u;
|
|
939
940
|
return e > 0 ? f * n : f * Math.abs(n);
|
|
940
|
-
}),
|
|
941
|
+
}), ye = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
|
|
941
942
|
return {
|
|
942
943
|
...a,
|
|
943
|
-
proportions: l.map((e, t) => R.value.style.chart.bars.distributed ? (e || 0) /
|
|
944
|
+
proportions: l.map((e, t) => R.value.style.chart.bars.distributed ? (e || 0) / Pr.value[t] : (e || 0) / ye),
|
|
944
945
|
series: l,
|
|
945
946
|
signedSeries: ee,
|
|
946
|
-
rectKeys:
|
|
947
|
-
minimapRectKeys:
|
|
948
|
-
x:
|
|
949
|
-
y:
|
|
950
|
-
height:
|
|
951
|
-
horizontal_width:
|
|
952
|
-
horizontal_y:
|
|
953
|
-
horizontal_x:
|
|
954
|
-
xMinimap:
|
|
955
|
-
yMinimap:
|
|
956
|
-
heightMinimap:
|
|
947
|
+
rectKeys: ie,
|
|
948
|
+
minimapRectKeys: ae,
|
|
949
|
+
x: oe,
|
|
950
|
+
y: pe,
|
|
951
|
+
height: ge,
|
|
952
|
+
horizontal_width: ve,
|
|
953
|
+
horizontal_y: fe,
|
|
954
|
+
horizontal_x: he,
|
|
955
|
+
xMinimap: de,
|
|
956
|
+
yMinimap: me,
|
|
957
|
+
heightMinimap: _e
|
|
957
958
|
};
|
|
958
959
|
});
|
|
959
|
-
}),
|
|
960
|
+
}), ni = h(() => Rr.value.map((e, t) => ({
|
|
960
961
|
value: e,
|
|
961
962
|
sign: e >= 0 ? 1 : -1
|
|
962
963
|
})));
|
|
963
|
-
function
|
|
964
|
+
function ri(e, t, n, r, a) {
|
|
964
965
|
let o = a === -1 && e >= 0 ? -e : e;
|
|
965
|
-
return
|
|
966
|
+
return ie(R.value.style.chart.bars.dataLabels.formatter, o, p({
|
|
966
967
|
p: R.value.style.chart.bars.dataLabels.prefix,
|
|
967
968
|
v: o,
|
|
968
969
|
s: R.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -973,8 +974,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
973
974
|
datapointIndex: r
|
|
974
975
|
});
|
|
975
976
|
}
|
|
976
|
-
function
|
|
977
|
-
return
|
|
977
|
+
function ii(e, t, n, r) {
|
|
978
|
+
return ie(R.value.style.chart.bars.dataLabels.formatter, e, p({
|
|
978
979
|
v: isNaN(e) ? 0 : e,
|
|
979
980
|
s: "%",
|
|
980
981
|
r: R.value.style.chart.bars.dataLabels.rounding
|
|
@@ -984,7 +985,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
984
985
|
datapointIndex: r
|
|
985
986
|
});
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
+
function ai(e) {
|
|
988
989
|
let t = JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
989
990
|
name: t.name,
|
|
990
991
|
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
@@ -1000,7 +1001,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1000
1001
|
period: Q.value[e]
|
|
1001
1002
|
});
|
|
1002
1003
|
}
|
|
1003
|
-
function
|
|
1004
|
+
function oi(e) {
|
|
1004
1005
|
return JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
1005
1006
|
name: t.name,
|
|
1006
1007
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -1008,12 +1009,12 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1008
1009
|
proportion: t.proportions[e] || null,
|
|
1009
1010
|
color: t.color,
|
|
1010
1011
|
id: t.id,
|
|
1011
|
-
timeLabel:
|
|
1012
|
+
timeLabel: Ur.value[e]
|
|
1012
1013
|
}));
|
|
1013
1014
|
}
|
|
1014
|
-
function
|
|
1015
|
+
function si(e) {
|
|
1015
1016
|
if (R.value.events.datapointLeave) {
|
|
1016
|
-
let t =
|
|
1017
|
+
let t = oi(e);
|
|
1017
1018
|
R.value.events.datapointLeave({
|
|
1018
1019
|
datapoint: t,
|
|
1019
1020
|
seriesIndex: e + J.value.start
|
|
@@ -1021,7 +1022,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1021
1022
|
}
|
|
1022
1023
|
mn.value = !1, I.value = null, L.value === e && (L.value = null);
|
|
1023
1024
|
}
|
|
1024
|
-
let
|
|
1025
|
+
let ci = h(() => Array(q.value).fill(0).map((e, t) => oi(t)));
|
|
1025
1026
|
rt(() => j.selectedXIndex, (e) => {
|
|
1026
1027
|
if ([null, void 0].includes(j.selectedXIndex)) {
|
|
1027
1028
|
I.value = null;
|
|
@@ -1030,30 +1031,30 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1030
1031
|
let t = e - J.value.start;
|
|
1031
1032
|
t < 0 || e >= J.value.end ? I.value = null : I.value = t ?? null;
|
|
1032
1033
|
}, { immediate: !0 });
|
|
1033
|
-
function
|
|
1034
|
+
function li(e) {
|
|
1034
1035
|
if (!R.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1035
|
-
let t = Q.value?.[e]?.text || null, n =
|
|
1036
|
+
let t = Q.value?.[e]?.text || null, n = Qr.value?.[e]?.text || null, r = Ur.value?.[e]?.text || null;
|
|
1036
1037
|
return R.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1037
1038
|
}
|
|
1038
|
-
function
|
|
1039
|
-
if (
|
|
1040
|
-
|
|
1041
|
-
let n = R.value.style.chart.tooltip.customFormat, r =
|
|
1042
|
-
|
|
1039
|
+
function ui(e, t = "pointer") {
|
|
1040
|
+
if (Fr.value) return;
|
|
1041
|
+
Vn.value = t, L.value = e, I.value = e, mn.value = !0;
|
|
1042
|
+
let n = R.value.style.chart.tooltip.customFormat, r = oi(e);
|
|
1043
|
+
Xi({
|
|
1043
1044
|
seriesIndex: e,
|
|
1044
1045
|
datapoint: r
|
|
1045
1046
|
}), R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
1046
1047
|
datapoint: r,
|
|
1047
1048
|
seriesIndex: e + J.value.start
|
|
1048
1049
|
}), hn.value = {
|
|
1049
|
-
timeLabel:
|
|
1050
|
+
timeLabel: li(e),
|
|
1050
1051
|
datapoint: r,
|
|
1051
1052
|
seriesIndex: e,
|
|
1052
1053
|
config: R.value,
|
|
1053
1054
|
series: $.value
|
|
1054
1055
|
};
|
|
1055
|
-
let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), o = r.map((e) =>
|
|
1056
|
-
if (
|
|
1056
|
+
let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), o = r.map((e) => oe(e.value)).reduce((e, t) => e + t, 0);
|
|
1057
|
+
if (me(n) && ne(() => n({
|
|
1057
1058
|
seriesIndex: e,
|
|
1058
1059
|
datapoint: r,
|
|
1059
1060
|
series: $.value,
|
|
@@ -1065,11 +1066,11 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1065
1066
|
config: R.value
|
|
1066
1067
|
});
|
|
1067
1068
|
else {
|
|
1068
|
-
let { showValue: t, showTotal: n, totalTranslation: s, showPercentage: c, borderColor: l, roundingValue: u, roundingPercentage: d } = R.value.style.chart.tooltip, f = "", ee =
|
|
1069
|
+
let { showValue: t, showTotal: n, totalTranslation: s, showPercentage: c, borderColor: l, roundingValue: u, roundingPercentage: d } = R.value.style.chart.tooltip, f = "", ee = li(e);
|
|
1069
1070
|
ee && (f += `<div style="width:100%;text-align:center;border-bottom:1px solid ${l};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), n && (f += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1070
1071
|
<span>${s}:</span>
|
|
1071
1072
|
<span>
|
|
1072
|
-
${
|
|
1073
|
+
${ie(R.value.style.chart.bars.dataLabels.formatter, o, p({
|
|
1073
1074
|
p: R.value.style.chart.bars.dataLabels.prefix,
|
|
1074
1075
|
v: o,
|
|
1075
1076
|
s: R.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1085,7 +1086,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1085
1086
|
f += `
|
|
1086
1087
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1087
1088
|
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${R.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${fn.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${P.value}_${e.absoluteIndex})"/>` : ""}</svg>
|
|
1088
|
-
${e.name}${t || c ? ":" : ""} ${t ?
|
|
1089
|
+
${e.name}${t || c ? ":" : ""} ${t ? ie(R.value.style.chart.bars.dataLabels.formatter, e.value, p({
|
|
1089
1090
|
p: R.value.style.chart.bars.dataLabels.prefix,
|
|
1090
1091
|
v: e.value,
|
|
1091
1092
|
s: R.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1100,9 +1101,9 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1100
1101
|
}), gn.value = `<div>${f}</div>`;
|
|
1101
1102
|
}
|
|
1102
1103
|
}
|
|
1103
|
-
let
|
|
1104
|
-
|
|
1105
|
-
timeLabelsEls: R.value.orientation === "vertical" ?
|
|
1104
|
+
let di = h(() => H.value.width), fi = h(() => H.value.height);
|
|
1105
|
+
ke({
|
|
1106
|
+
timeLabelsEls: R.value.orientation === "vertical" ? Nn : Mn,
|
|
1106
1107
|
timeLabels: Q,
|
|
1107
1108
|
slicer: J,
|
|
1108
1109
|
configRef: R,
|
|
@@ -1124,26 +1125,26 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1124
1125
|
"enable"
|
|
1125
1126
|
],
|
|
1126
1127
|
isAutoSize: !1,
|
|
1127
|
-
width:
|
|
1128
|
-
height:
|
|
1128
|
+
width: di,
|
|
1129
|
+
height: fi,
|
|
1129
1130
|
rotation: R.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
1130
1131
|
});
|
|
1131
|
-
function
|
|
1132
|
+
function pi(e) {
|
|
1132
1133
|
Sn.value = e, _n.value += 1;
|
|
1133
1134
|
}
|
|
1134
|
-
function
|
|
1135
|
+
function mi() {
|
|
1135
1136
|
V.value.showTable = !V.value.showTable;
|
|
1136
1137
|
}
|
|
1137
|
-
function
|
|
1138
|
+
function hi() {
|
|
1138
1139
|
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
1139
1140
|
}
|
|
1140
|
-
function
|
|
1141
|
+
function gi() {
|
|
1141
1142
|
V.value.showTooltip = !V.value.showTooltip;
|
|
1142
1143
|
}
|
|
1143
|
-
function
|
|
1144
|
+
function _i() {
|
|
1144
1145
|
return $.value;
|
|
1145
1146
|
}
|
|
1146
|
-
let
|
|
1147
|
+
let vi = h(() => {
|
|
1147
1148
|
if ($.value.length === 0) return {
|
|
1148
1149
|
head: [],
|
|
1149
1150
|
body: [],
|
|
@@ -1164,18 +1165,18 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1164
1165
|
body: t
|
|
1165
1166
|
};
|
|
1166
1167
|
});
|
|
1167
|
-
function
|
|
1168
|
+
function yi(e = null) {
|
|
1168
1169
|
let r = [
|
|
1169
1170
|
[R.value.style.chart.title.text],
|
|
1170
1171
|
[R.value.style.chart.title.subtitle.text],
|
|
1171
1172
|
[""]
|
|
1172
|
-
], a = ["", ...
|
|
1173
|
-
e ? e(
|
|
1174
|
-
csvContent:
|
|
1173
|
+
], a = ["", ...vi.value.head.map((e) => e.label)], o = vi.value.body, s = r.concat([a]).concat(o), c = n(s);
|
|
1174
|
+
e ? e(c) : t({
|
|
1175
|
+
csvContent: c,
|
|
1175
1176
|
title: R.value.style.chart.title.text || "vue-ui-stackbar"
|
|
1176
1177
|
});
|
|
1177
1178
|
}
|
|
1178
|
-
let
|
|
1179
|
+
let bi = h(() => {
|
|
1179
1180
|
let e = [""].concat($.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 = J.value.end - J.value.start;
|
|
1180
1181
|
for (let e = 0; e < n; e += 1) {
|
|
1181
1182
|
let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1201,12 +1202,12 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1201
1202
|
colNames: a
|
|
1202
1203
|
};
|
|
1203
1204
|
});
|
|
1204
|
-
function
|
|
1205
|
-
F.value.length ? F.value = [] :
|
|
1205
|
+
function xi() {
|
|
1206
|
+
F.value.length ? F.value = [] : Ei.value.forEach((e) => {
|
|
1206
1207
|
F.value.push(e.id);
|
|
1207
1208
|
}), M("selectLegend", $.value);
|
|
1208
1209
|
}
|
|
1209
|
-
function
|
|
1210
|
+
function Si(e) {
|
|
1210
1211
|
if (F.value.includes(e.id)) F.value = F.value.filter((t) => t !== e.id);
|
|
1211
1212
|
else {
|
|
1212
1213
|
if (F.value.length === K.value.length - 1) return;
|
|
@@ -1214,37 +1215,37 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1214
1215
|
}
|
|
1215
1216
|
M("selectLegend", $.value);
|
|
1216
1217
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return K.value.length ? K.value.find((t) => t.name === e) || (
|
|
1218
|
+
function Ci(e) {
|
|
1219
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (pr.value && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (pr.value && console.warn("VueUiStackbar - There are no series to show."), null);
|
|
1219
1220
|
}
|
|
1220
|
-
function
|
|
1221
|
-
let t =
|
|
1222
|
-
t !== null && F.value.includes(t.id) &&
|
|
1221
|
+
function wi(e) {
|
|
1222
|
+
let t = Ci(e);
|
|
1223
|
+
t !== null && F.value.includes(t.id) && Si({ id: t.id });
|
|
1223
1224
|
}
|
|
1224
|
-
function
|
|
1225
|
-
let t =
|
|
1226
|
-
t !== null && (F.value.includes(t.id) ||
|
|
1225
|
+
function Ti(e) {
|
|
1226
|
+
let t = Ci(e);
|
|
1227
|
+
t !== null && (F.value.includes(t.id) || Si({ id: t.id }));
|
|
1227
1228
|
}
|
|
1228
|
-
let
|
|
1229
|
+
let Ei = h(() => K.value.map((e, t) => ({
|
|
1229
1230
|
...e,
|
|
1230
1231
|
shape: "square"
|
|
1231
1232
|
})).map((e) => ({
|
|
1232
1233
|
...e,
|
|
1233
1234
|
opacity: F.value.includes(e.id) ? .5 : 1,
|
|
1234
|
-
segregate: () =>
|
|
1235
|
+
segregate: () => Si(e),
|
|
1235
1236
|
isSegregated: F.value.includes(e.id)
|
|
1236
|
-
}))),
|
|
1237
|
+
}))), Di = h(() => ({
|
|
1237
1238
|
cy: "stackbar-legend",
|
|
1238
1239
|
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
1239
1240
|
color: R.value.style.chart.legend.color,
|
|
1240
1241
|
fontSize: R.value.style.chart.legend.fontSize,
|
|
1241
1242
|
paddingBottom: 12,
|
|
1242
1243
|
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
1243
|
-
})),
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1244
|
+
})), Oi = T(!1);
|
|
1245
|
+
function ki() {
|
|
1246
|
+
Oi.value = !Oi.value;
|
|
1246
1247
|
}
|
|
1247
|
-
function
|
|
1248
|
+
function Ai(e, t) {
|
|
1248
1249
|
let n = JSON.parse(JSON.stringify($.value)).map((e) => ({
|
|
1249
1250
|
name: e.name,
|
|
1250
1251
|
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
@@ -1258,13 +1259,13 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1258
1259
|
label: e.text
|
|
1259
1260
|
});
|
|
1260
1261
|
}
|
|
1261
|
-
let
|
|
1262
|
-
function
|
|
1263
|
-
return R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ?
|
|
1262
|
+
let ji = h(() => Math.max(...$.value.flatMap((e) => e.series)));
|
|
1263
|
+
function Mi(e, t) {
|
|
1264
|
+
return R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ? ar.value ? t * 100 >= R.value.style.chart.bars.dataLabels.hideUnderPercentage : !R.value.style.chart.bars.dataLabels.hideEmptyPercentages || t > 0 : ar.value ? (ir.value && pr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > ji.value * R.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ir.value ? Math.abs(e) >= R.value.style.chart.bars.dataLabels.hideUnderValue : !R.value.style.chart.bars.dataLabels.hideEmptyValues || e !== 0;
|
|
1264
1265
|
}
|
|
1265
|
-
async function
|
|
1266
|
+
async function Ni({ scale: e = 2 } = {}) {
|
|
1266
1267
|
if (!N.value) return;
|
|
1267
|
-
let { imageUri: t, base64: n } = await
|
|
1268
|
+
let { imageUri: t, base64: n } = await Ae({
|
|
1268
1269
|
domElement: N.value,
|
|
1269
1270
|
base64: !0,
|
|
1270
1271
|
img: !0,
|
|
@@ -1281,7 +1282,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1281
1282
|
...o
|
|
1282
1283
|
};
|
|
1283
1284
|
}
|
|
1284
|
-
let
|
|
1285
|
+
let Pi = h(() => {
|
|
1285
1286
|
let e = R.value.table.useDialog && !R.value.table.show, t = V.value.showTable;
|
|
1286
1287
|
return {
|
|
1287
1288
|
component: e ? cn : nn,
|
|
@@ -1315,73 +1316,48 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1315
1316
|
rt(() => V.value.showTable, (e) => {
|
|
1316
1317
|
R.value.table.show || (e && R.value.table.useDialog && On.value ? On.value.open() : "close" in On.value && On.value.close());
|
|
1317
1318
|
});
|
|
1318
|
-
function
|
|
1319
|
+
function Fi() {
|
|
1319
1320
|
V.value.showTable = !1, kn.value && kn.value.setTableIconState(!1);
|
|
1320
1321
|
}
|
|
1321
|
-
let
|
|
1322
|
-
svg:
|
|
1323
|
-
title:
|
|
1324
|
-
legend:
|
|
1325
|
-
legendItems:
|
|
1326
|
-
backgroundColor:
|
|
1322
|
+
let Ii = h(() => R.value.style.chart.backgroundColor), Li = h(() => R.value.style.chart.legend), Ri = h(() => R.value.style.chart.title), { isCallbackImaging: zi, isCallbackSvg: Bi, generateSvg: Vi, onGenerateImage: Hi } = Ee({
|
|
1323
|
+
svg: er,
|
|
1324
|
+
title: Ri,
|
|
1325
|
+
legend: Li,
|
|
1326
|
+
legendItems: Ei,
|
|
1327
|
+
backgroundColor: Ii,
|
|
1328
|
+
getSvgCallback: () => R.value.userOptions.callbacks.svg,
|
|
1329
|
+
generateImage: lr
|
|
1327
1330
|
});
|
|
1328
|
-
async function Hi({ isCb: e }) {
|
|
1329
|
-
jn.value = !0, await Xe();
|
|
1330
|
-
try {
|
|
1331
|
-
if (e) {
|
|
1332
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Vi();
|
|
1333
|
-
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
1334
|
-
blob: e,
|
|
1335
|
-
url: t,
|
|
1336
|
-
text: n,
|
|
1337
|
-
dataUrl: r
|
|
1338
|
-
}));
|
|
1339
|
-
} else await Promise.resolve(Bi());
|
|
1340
|
-
} finally {
|
|
1341
|
-
jn.value = !1;
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
1331
|
function Ui(e) {
|
|
1345
|
-
if (e?.stage === "start") {
|
|
1346
|
-
An.value = !0;
|
|
1347
|
-
return;
|
|
1348
|
-
}
|
|
1349
|
-
if (e?.stage === "end") {
|
|
1350
|
-
An.value = !1;
|
|
1351
|
-
return;
|
|
1352
|
-
}
|
|
1353
|
-
dr();
|
|
1354
|
-
}
|
|
1355
|
-
function Wi(e) {
|
|
1356
1332
|
let t = q.value;
|
|
1357
1333
|
return e > t ? t : e < 0 || e < J.value.start ? R.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
|
|
1358
1334
|
}
|
|
1359
|
-
let
|
|
1360
|
-
function
|
|
1361
|
-
if (!
|
|
1362
|
-
|
|
1335
|
+
let Wi = T(!1), Gi = T(!1);
|
|
1336
|
+
function Ki() {
|
|
1337
|
+
if (!Wi.value) {
|
|
1338
|
+
Wi.value = !0;
|
|
1363
1339
|
try {
|
|
1364
1340
|
let { startIndex: e, endIndex: t, keepState: n } = R.value.style.chart.zoom, r = n ? Math.max(0, q.value) : q.value;
|
|
1365
1341
|
if (n && r <= 0) return;
|
|
1366
|
-
let a = e ?? 0, o = t == null ? r : Math.min(
|
|
1367
|
-
|
|
1342
|
+
let a = e ?? 0, o = t == null ? r : Math.min(Ui(t + 1), r);
|
|
1343
|
+
qi.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, Ar(), Gi.value = !0;
|
|
1368
1344
|
} finally {
|
|
1369
1345
|
queueMicrotask(() => {
|
|
1370
|
-
|
|
1371
|
-
}),
|
|
1346
|
+
qi.value = !1;
|
|
1347
|
+
}), Wi.value = !1;
|
|
1372
1348
|
}
|
|
1373
1349
|
}
|
|
1374
1350
|
}
|
|
1375
|
-
let
|
|
1376
|
-
function
|
|
1377
|
-
|
|
1351
|
+
let qi = T(!1);
|
|
1352
|
+
function Ji(e) {
|
|
1353
|
+
Wi.value || qi.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, Ar());
|
|
1378
1354
|
}
|
|
1379
|
-
function
|
|
1380
|
-
if (
|
|
1381
|
-
let t =
|
|
1382
|
-
t !== J.value.end && (J.value.end = t, Y.value.end = t,
|
|
1355
|
+
function Yi(e) {
|
|
1356
|
+
if (Wi.value || qi.value) return;
|
|
1357
|
+
let t = Ui(e);
|
|
1358
|
+
t !== J.value.end && (J.value.end = t, Y.value.end = t, Ar());
|
|
1383
1359
|
}
|
|
1384
|
-
function
|
|
1360
|
+
function Xi({ seriesIndex: e, datapoint: t }) {
|
|
1385
1361
|
let n = J.value.start + e;
|
|
1386
1362
|
M("selectX", {
|
|
1387
1363
|
dataset: t,
|
|
@@ -1389,11 +1365,11 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1389
1365
|
indexLabel: R.value.style.chart.grid.x.timeLabels.values[n]
|
|
1390
1366
|
});
|
|
1391
1367
|
}
|
|
1392
|
-
function
|
|
1368
|
+
function Zi() {
|
|
1393
1369
|
return { y0: Z.value?.[0]?.zero ?? G.value.bottom };
|
|
1394
1370
|
}
|
|
1395
|
-
function
|
|
1396
|
-
let { y0: t } =
|
|
1371
|
+
function Qi(e) {
|
|
1372
|
+
let { y0: t } = Zi(), n = R.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
|
|
1397
1373
|
for (let t of $.value || []) {
|
|
1398
1374
|
let n = t?.series?.[e] ?? 0, r = t?.height?.[e] ?? 0, s = t?.y?.[e];
|
|
1399
1375
|
n > 0 && r > 0 && Number.isFinite(s) && (o = !0, s < a && (a = s));
|
|
@@ -1401,15 +1377,15 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1401
1377
|
let s = (o && Number.isFinite(a) ? a : t) - r;
|
|
1402
1378
|
return Math.min(Math.max(s, 0), G.value.bottom);
|
|
1403
1379
|
}
|
|
1404
|
-
function
|
|
1405
|
-
let { x0: t } =
|
|
1380
|
+
function $i(e) {
|
|
1381
|
+
let { x0: t } = Zi(), n = Math.max(2, R.value.style.chart.bars.totalValues.fontSize * .3 + R.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
|
|
1406
1382
|
for (let t of $.value || []) {
|
|
1407
1383
|
let n = t?.series?.[e] ?? 0, o = t?.horizontal_x?.[e], s = t?.horizontal_width?.[e], c = Number.isFinite(s) ? Math.max(0, s) : 0;
|
|
1408
1384
|
Number.isFinite(o) && n > 0 && c > 0 && (a = !0, r = Math.max(r, o + c));
|
|
1409
1385
|
}
|
|
1410
1386
|
return (a && Number.isFinite(r) ? r : t) + n;
|
|
1411
1387
|
}
|
|
1412
|
-
async function
|
|
1388
|
+
async function ea() {
|
|
1413
1389
|
if (M("copyAlt", {
|
|
1414
1390
|
config: R.value,
|
|
1415
1391
|
dataset: $.value
|
|
@@ -1422,19 +1398,19 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1422
1398
|
dataset: $.value
|
|
1423
1399
|
}));
|
|
1424
1400
|
}
|
|
1425
|
-
let
|
|
1426
|
-
function
|
|
1427
|
-
L.value = null,
|
|
1401
|
+
let ta = T(!1);
|
|
1402
|
+
function na() {
|
|
1403
|
+
L.value = null, ta.value = !0;
|
|
1428
1404
|
}
|
|
1429
|
-
function
|
|
1405
|
+
function ra() {
|
|
1430
1406
|
L.value = null, mn.value = !1, I.value = null, M("selectX", {
|
|
1431
1407
|
index: null,
|
|
1432
1408
|
indexLabel: null,
|
|
1433
1409
|
dataset: null
|
|
1434
|
-
}),
|
|
1410
|
+
}), ta.value = !1;
|
|
1435
1411
|
}
|
|
1436
|
-
function
|
|
1437
|
-
if (!
|
|
1412
|
+
function ia(e) {
|
|
1413
|
+
if (!er.value || Oi.value || document.activeElement !== er.value || Fr.value || !J.value.end && J.value.end !== 0) return;
|
|
1438
1414
|
let t = R.value.orientation === "vertical", n = R.value.orientation === "horizontal", r = t && e.key === "ArrowLeft" || n && e.key === "ArrowUp", a = t && e.key === "ArrowRight" || n && e.key === "ArrowDown", o = e.key === "Enter" || e.key === " ", s = e.key === "Escape";
|
|
1439
1415
|
if (!r && !a && !o && !s) return;
|
|
1440
1416
|
let c = J.value.end - J.value.start;
|
|
@@ -1449,39 +1425,39 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1449
1425
|
}
|
|
1450
1426
|
if (o) {
|
|
1451
1427
|
if (L.value === null) return;
|
|
1452
|
-
|
|
1428
|
+
ai(L.value);
|
|
1453
1429
|
return;
|
|
1454
1430
|
}
|
|
1455
1431
|
let l = L.value, u = I.value;
|
|
1456
|
-
l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, L.value = l,
|
|
1432
|
+
l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, L.value = l, aa(l), ui(l, "keyboard");
|
|
1457
1433
|
}
|
|
1458
|
-
function
|
|
1434
|
+
function aa(e) {
|
|
1459
1435
|
if (!Number.isFinite(e)) return;
|
|
1460
1436
|
let t, n;
|
|
1461
1437
|
R.value.orientation === "vertical" ? (t = G.value.left + e * X.value + X.value / 2, n = G.value.top + G.value.height / 2) : (t = G.value.left + G.value.width / 2, n = G.value.top + e * X.value + X.value / 2);
|
|
1462
|
-
let r = a(t, n,
|
|
1463
|
-
r && (
|
|
1438
|
+
let r = a(t, n, er.value);
|
|
1439
|
+
r && (Bn.value = r);
|
|
1464
1440
|
}
|
|
1465
|
-
let
|
|
1466
|
-
headers:
|
|
1467
|
-
rows:
|
|
1441
|
+
let oa = h(() => ({
|
|
1442
|
+
headers: bi.value?.colNames ?? [],
|
|
1443
|
+
rows: bi.value?.body ?? []
|
|
1468
1444
|
}));
|
|
1469
|
-
return
|
|
1470
|
-
getData:
|
|
1471
|
-
getImage:
|
|
1472
|
-
generatePdf:
|
|
1473
|
-
generateCsv:
|
|
1474
|
-
generateImage:
|
|
1475
|
-
generateSvg:
|
|
1476
|
-
hideSeries:
|
|
1477
|
-
showSeries:
|
|
1478
|
-
toggleTable:
|
|
1479
|
-
toggleLabels:
|
|
1480
|
-
toggleTooltip:
|
|
1481
|
-
toggleAnnotator:
|
|
1482
|
-
toggleFullscreen:
|
|
1483
|
-
copyAlt:
|
|
1484
|
-
}), (t, n) => (w(),
|
|
1445
|
+
return Ne({
|
|
1446
|
+
getData: _i,
|
|
1447
|
+
getImage: Ni,
|
|
1448
|
+
generatePdf: cr,
|
|
1449
|
+
generateCsv: yi,
|
|
1450
|
+
generateImage: lr,
|
|
1451
|
+
generateSvg: Vi,
|
|
1452
|
+
hideSeries: Ti,
|
|
1453
|
+
showSeries: wi,
|
|
1454
|
+
toggleTable: mi,
|
|
1455
|
+
toggleLabels: hi,
|
|
1456
|
+
toggleTooltip: gi,
|
|
1457
|
+
toggleAnnotator: ki,
|
|
1458
|
+
toggleFullscreen: pi,
|
|
1459
|
+
copyAlt: ea
|
|
1460
|
+
}), (t, n) => (w(), v("div", {
|
|
1485
1461
|
id: `stackbar_${P.value}`,
|
|
1486
1462
|
ref_key: "stackbarChart",
|
|
1487
1463
|
ref: N,
|
|
@@ -1491,18 +1467,18 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1491
1467
|
"vue-data-ui-wrapper-fullscreen": Sn.value
|
|
1492
1468
|
}),
|
|
1493
1469
|
style: C(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
|
|
1494
|
-
onMouseenter:
|
|
1495
|
-
onMouseleave:
|
|
1470
|
+
onMouseenter: tr,
|
|
1471
|
+
onMouseleave: nr
|
|
1496
1472
|
}, [
|
|
1497
|
-
|
|
1473
|
+
y("div", {
|
|
1498
1474
|
id: `chart-instructions-${P.value}`,
|
|
1499
1475
|
class: "sr-only"
|
|
1500
|
-
}, [
|
|
1501
|
-
|
|
1476
|
+
}, [y("p", null, O(R.value.a11y.translations.keyboardNavigation), 1)], 8, st),
|
|
1477
|
+
oa.value?.rows?.length ? (w(), g(ze, {
|
|
1502
1478
|
key: 0,
|
|
1503
1479
|
uid: P.value,
|
|
1504
|
-
head:
|
|
1505
|
-
body:
|
|
1480
|
+
head: oa.value.headers,
|
|
1481
|
+
body: oa.value.rows,
|
|
1506
1482
|
notice: R.value.a11y.translations.tableAvailable,
|
|
1507
1483
|
caption: R.value.a11y.translations.tableCaption
|
|
1508
1484
|
}, null, 8, [
|
|
@@ -1511,15 +1487,15 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1511
1487
|
"body",
|
|
1512
1488
|
"notice",
|
|
1513
1489
|
"caption"
|
|
1514
|
-
])) :
|
|
1515
|
-
R.value.userOptions.buttons.annotator ? (w(),
|
|
1490
|
+
])) : _("", !0),
|
|
1491
|
+
R.value.userOptions.buttons.annotator ? (w(), g(k(an), {
|
|
1516
1492
|
key: 1,
|
|
1517
|
-
svgRef: k(
|
|
1493
|
+
svgRef: k(er),
|
|
1518
1494
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1519
1495
|
color: R.value.style.chart.color,
|
|
1520
|
-
active:
|
|
1496
|
+
active: Oi.value,
|
|
1521
1497
|
isCursorPointer: B.value,
|
|
1522
|
-
onClose:
|
|
1498
|
+
onClose: ki
|
|
1523
1499
|
}, {
|
|
1524
1500
|
"annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1525
1501
|
"annotator-action-color": A(({ color: e }) => [D(t.$slots, "annotator-action-color", S(b({ color: e })), void 0, !0)]),
|
|
@@ -1534,14 +1510,14 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1534
1510
|
"color",
|
|
1535
1511
|
"active",
|
|
1536
1512
|
"isCursorPointer"
|
|
1537
|
-
])) :
|
|
1513
|
+
])) : _("", !0),
|
|
1538
1514
|
D(t.$slots, "userConfig", {}, void 0, !0),
|
|
1539
|
-
R.value.style.chart.title.text ? (w(),
|
|
1515
|
+
R.value.style.chart.title.text ? (w(), v("div", {
|
|
1540
1516
|
key: 2,
|
|
1541
1517
|
ref_key: "chartTitle",
|
|
1542
1518
|
ref: vn,
|
|
1543
1519
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1544
|
-
}, [(w(),
|
|
1520
|
+
}, [(w(), g(je, {
|
|
1545
1521
|
key: `title_${wn.value}`,
|
|
1546
1522
|
config: {
|
|
1547
1523
|
title: {
|
|
@@ -1553,16 +1529,16 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1553
1529
|
...R.value.style.chart.title.subtitle
|
|
1554
1530
|
}
|
|
1555
1531
|
}
|
|
1556
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1557
|
-
|
|
1558
|
-
R.value.userOptions.show && pn.value && (k(
|
|
1532
|
+
}, null, 8, ["config"]))], 512)) : _("", !0),
|
|
1533
|
+
y("div", { id: `legend-top-${P.value}` }, null, 8, ct),
|
|
1534
|
+
R.value.userOptions.show && pn.value && (k($n) || k(Zn)) ? (w(), g(k(on), {
|
|
1559
1535
|
ref_key: "userOptionsRef",
|
|
1560
1536
|
ref: kn,
|
|
1561
1537
|
key: `user_option_${_n.value}`,
|
|
1562
1538
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1563
1539
|
color: R.value.style.chart.color,
|
|
1564
|
-
isPrinting: k(
|
|
1565
|
-
isImaging: k(
|
|
1540
|
+
isPrinting: k(or),
|
|
1541
|
+
isImaging: k(sr),
|
|
1566
1542
|
uid: P.value,
|
|
1567
1543
|
hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
|
|
1568
1544
|
hasPdf: R.value.userOptions.buttons.pdf,
|
|
@@ -1579,22 +1555,22 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1579
1555
|
isTooltip: V.value.showTooltip,
|
|
1580
1556
|
titles: { ...R.value.userOptions.buttonTitles },
|
|
1581
1557
|
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
1582
|
-
isAnnotation:
|
|
1558
|
+
isAnnotation: Oi.value,
|
|
1583
1559
|
callbacks: R.value.userOptions.callbacks,
|
|
1584
1560
|
printScale: R.value.userOptions.print.scale,
|
|
1585
1561
|
tableDialog: R.value.table.useDialog,
|
|
1586
1562
|
isCursorPointer: B.value,
|
|
1587
|
-
onToggleFullscreen:
|
|
1588
|
-
onGeneratePdf: k(
|
|
1589
|
-
onGenerateCsv:
|
|
1590
|
-
onGenerateImage:
|
|
1591
|
-
onGenerateSvg:
|
|
1592
|
-
onToggleTable:
|
|
1593
|
-
onToggleLabels:
|
|
1594
|
-
onToggleTooltip:
|
|
1595
|
-
onToggleAnnotator:
|
|
1596
|
-
onCopyAlt:
|
|
1597
|
-
style: C({ visibility: k(
|
|
1563
|
+
onToggleFullscreen: pi,
|
|
1564
|
+
onGeneratePdf: k(cr),
|
|
1565
|
+
onGenerateCsv: yi,
|
|
1566
|
+
onGenerateImage: k(Hi),
|
|
1567
|
+
onGenerateSvg: k(Vi),
|
|
1568
|
+
onToggleTable: mi,
|
|
1569
|
+
onToggleLabels: hi,
|
|
1570
|
+
onToggleTooltip: gi,
|
|
1571
|
+
onToggleAnnotator: ki,
|
|
1572
|
+
onCopyAlt: ea,
|
|
1573
|
+
style: C({ visibility: k($n) ? k(Zn) ? "visible" : "hidden" : "visible" })
|
|
1598
1574
|
}, Ge({ _: 2 }, [
|
|
1599
1575
|
t.$slots.menuIcon ? {
|
|
1600
1576
|
name: "menuIcon",
|
|
@@ -1670,35 +1646,35 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1670
1646
|
fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1671
1647
|
key: "12"
|
|
1672
1648
|
} : void 0
|
|
1673
|
-
]), 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("."))) :
|
|
1674
|
-
|
|
1649
|
+
]), 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("."))) : _("", !0),
|
|
1650
|
+
y("div", lt, [(w(), v("svg", {
|
|
1675
1651
|
ref_key: "svgRef",
|
|
1676
|
-
ref:
|
|
1677
|
-
xmlns: k(
|
|
1652
|
+
ref: er,
|
|
1653
|
+
xmlns: k(ue),
|
|
1678
1654
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1679
1655
|
viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
|
|
1680
1656
|
class: x({
|
|
1681
|
-
"vue-data-ui-loading": k(
|
|
1657
|
+
"vue-data-ui-loading": k(Jn),
|
|
1682
1658
|
"vue-data-ui-fullscreen--on": Sn.value,
|
|
1683
1659
|
"vue-data-ui-fulscreen--off": !Sn.value,
|
|
1684
1660
|
"vue-data-ui-no-transition": !k(z)
|
|
1685
1661
|
}),
|
|
1686
1662
|
style: C(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
|
|
1687
1663
|
tabindex: "0",
|
|
1688
|
-
onFocus:
|
|
1689
|
-
onBlur:
|
|
1690
|
-
onKeydown:
|
|
1664
|
+
onFocus: na,
|
|
1665
|
+
onBlur: ra,
|
|
1666
|
+
onKeydown: ia
|
|
1691
1667
|
}, [
|
|
1692
1668
|
qe(k(sn)),
|
|
1693
|
-
t.$slots["chart-background"] ? (w(),
|
|
1669
|
+
t.$slots["chart-background"] ? (w(), v("foreignObject", {
|
|
1694
1670
|
key: 0,
|
|
1695
1671
|
x: G.value.left,
|
|
1696
1672
|
y: G.value.top,
|
|
1697
1673
|
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1698
1674
|
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1699
1675
|
style: { pointerEvents: "none" }
|
|
1700
|
-
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) :
|
|
1701
|
-
R.value.style.chart.bars.gradient.show ? (w(),
|
|
1676
|
+
}, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : _("", !0),
|
|
1677
|
+
R.value.style.chart.bars.gradient.show ? (w(), v("defs", ft, [(w(!0), v(m, null, E($.value, (e, t) => (w(), g(Ie, {
|
|
1702
1678
|
t: "linear",
|
|
1703
1679
|
id: `gradient_${e.id}`,
|
|
1704
1680
|
key: `gradient_${e.id}_${t}`,
|
|
@@ -1723,8 +1699,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1723
1699
|
1
|
|
1724
1700
|
]
|
|
1725
1701
|
]
|
|
1726
|
-
}, null, 8, ["id", "stops"]))), 128))])) :
|
|
1727
|
-
R.value.style.chart.grid.frame.show ? (w(),
|
|
1702
|
+
}, null, 8, ["id", "stops"]))), 128))])) : _("", !0),
|
|
1703
|
+
R.value.style.chart.grid.frame.show ? (w(), v("rect", {
|
|
1728
1704
|
key: 2,
|
|
1729
1705
|
style: {
|
|
1730
1706
|
pointerEvents: "none",
|
|
@@ -1741,8 +1717,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1741
1717
|
"stroke-linecap": R.value.style.chart.grid.frame.strokeLinecap,
|
|
1742
1718
|
"stroke-linejoin": R.value.style.chart.grid.frame.strokeLinejoin,
|
|
1743
1719
|
"stroke-dasharray": R.value.style.chart.grid.frame.strokeDasharray
|
|
1744
|
-
}, null, 8, pt)) :
|
|
1745
|
-
R.value.style.chart.grid.x.showHorizontalLines && R.value.orientation === "vertical" ? (w(!0),
|
|
1720
|
+
}, null, 8, pt)) : _("", !0),
|
|
1721
|
+
R.value.style.chart.grid.x.showHorizontalLines && R.value.orientation === "vertical" ? (w(!0), v(m, { key: 3 }, E(Z.value, (e, t) => (w(), v("line", {
|
|
1746
1722
|
x1: G.value.left,
|
|
1747
1723
|
x2: G.value.right,
|
|
1748
1724
|
y1: e.y,
|
|
@@ -1751,8 +1727,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1751
1727
|
"stroke-width": R.value.style.chart.grid.x.linesThickness,
|
|
1752
1728
|
"stroke-dasharray": R.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1753
1729
|
"stroke-linecap": "round"
|
|
1754
|
-
}, null, 8, mt))), 256)) :
|
|
1755
|
-
R.value.style.chart.grid.x.showHorizontalLines && R.value.orientation === "horizontal" ? (w(!0),
|
|
1730
|
+
}, null, 8, mt))), 256)) : _("", !0),
|
|
1731
|
+
R.value.style.chart.grid.x.showHorizontalLines && R.value.orientation === "horizontal" ? (w(!0), v(m, { key: 4 }, E(J.value.end - J.value.start + 1, (e, t) => (w(), v("line", {
|
|
1756
1732
|
x1: G.value.left,
|
|
1757
1733
|
x2: G.value.right,
|
|
1758
1734
|
y1: G.value.top + X.value * t,
|
|
@@ -1761,8 +1737,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1761
1737
|
"stroke-width": R.value.style.chart.grid.x.linesThickness,
|
|
1762
1738
|
"stroke-dasharray": R.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1763
1739
|
"stroke-linecap": "round"
|
|
1764
|
-
}, null, 8, ht))), 256)) :
|
|
1765
|
-
R.value.style.chart.grid.y.showVerticalLines && R.value.orientation === "vertical" ? (w(!0),
|
|
1740
|
+
}, null, 8, ht))), 256)) : _("", !0),
|
|
1741
|
+
R.value.style.chart.grid.y.showVerticalLines && R.value.orientation === "vertical" ? (w(!0), v(m, { key: 5 }, E(J.value.end - J.value.start + 1, (e, t) => (w(), v("line", {
|
|
1766
1742
|
x1: G.value.left + X.value * t,
|
|
1767
1743
|
x2: G.value.left + X.value * t,
|
|
1768
1744
|
y1: G.value.top,
|
|
@@ -1771,8 +1747,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1771
1747
|
"stroke-width": R.value.style.chart.grid.y.linesThickness,
|
|
1772
1748
|
"stroke-dasharray": R.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1773
1749
|
"stroke-linecap": "round"
|
|
1774
|
-
}, null, 8, gt))), 256)) :
|
|
1775
|
-
R.value.style.chart.grid.y.showVerticalLines && R.value.orientation === "horizontal" ? (w(!0),
|
|
1750
|
+
}, null, 8, gt))), 256)) : _("", !0),
|
|
1751
|
+
R.value.style.chart.grid.y.showVerticalLines && R.value.orientation === "horizontal" ? (w(!0), v(m, { key: 6 }, E(Z.value, (e, t) => (w(), v("line", {
|
|
1776
1752
|
x1: e.horizontal_x,
|
|
1777
1753
|
x2: e.horizontal_x,
|
|
1778
1754
|
y1: G.value.top,
|
|
@@ -1781,14 +1757,14 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1781
1757
|
"stroke-width": R.value.style.chart.grid.y.linesThickness,
|
|
1782
1758
|
"stroke-dasharray": R.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1783
1759
|
"stroke-linecap": "round"
|
|
1784
|
-
}, null, 8, _t))), 256)) :
|
|
1785
|
-
(w(!0),
|
|
1760
|
+
}, null, 8, _t))), 256)) : _("", !0),
|
|
1761
|
+
(w(!0), v(m, null, E($.value, (e, n) => (w(), v("g", { key: `stackbar-group-${e.datasetKey}-${n}-${P.value}` }, [t.$slots.pattern ? (w(), v("defs", vt, [D(t.$slots, "pattern", Ye({ ref_for: !0 }, {
|
|
1786
1762
|
seriesIndex: e.absoluteIndex,
|
|
1787
1763
|
patternId: `pattern_${P.value}_${e.absoluteIndex}`
|
|
1788
|
-
}), void 0, !0)])) :
|
|
1764
|
+
}), void 0, !0)])) : _("", !0), R.value.orientation === "vertical" ? (w(), v(m, { key: 1 }, [(w(!0), v(m, null, E(e.x, (t, n) => (w(), v("rect", {
|
|
1789
1765
|
key: `stackbar-rect-${e.rectKeys[n]}`,
|
|
1790
1766
|
x: t,
|
|
1791
|
-
y: k(
|
|
1767
|
+
y: k(oe)(e.y[n]),
|
|
1792
1768
|
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1793
1769
|
rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
|
|
1794
1770
|
width: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
|
|
@@ -1798,10 +1774,10 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1798
1774
|
"stroke-linecap": "round",
|
|
1799
1775
|
"stroke-linejoin": "round",
|
|
1800
1776
|
class: x({ "vue-data-ui-bar-transition": Cn.value })
|
|
1801
|
-
}, null, 10, yt))), 128)), t.$slots.pattern ? (w(),
|
|
1777
|
+
}, null, 10, yt))), 128)), t.$slots.pattern ? (w(), v("g", bt, [(w(!0), v(m, null, E(e.x, (t, n) => (w(), v("rect", {
|
|
1802
1778
|
key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
|
|
1803
1779
|
x: t,
|
|
1804
|
-
y: k(
|
|
1780
|
+
y: k(oe)(e.y[n]),
|
|
1805
1781
|
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1806
1782
|
rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
|
|
1807
1783
|
width: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
|
|
@@ -1811,11 +1787,11 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1811
1787
|
"stroke-linecap": "round",
|
|
1812
1788
|
"stroke-linejoin": "round",
|
|
1813
1789
|
class: x({ "vue-data-ui-bar-transition": Cn.value })
|
|
1814
|
-
}, null, 10, xt))), 128))])) :
|
|
1790
|
+
}, null, 10, xt))), 128))])) : _("", !0)], 64)) : (w(), v(m, { key: 2 }, [(w(!0), v(m, null, E(e.horizontal_x, (t, n) => (w(), v("rect", {
|
|
1815
1791
|
key: `stackbar-rect-${e.rectKeys[n]}`,
|
|
1816
|
-
x: k(
|
|
1792
|
+
x: k(oe)(t, G.value.left),
|
|
1817
1793
|
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1818
|
-
width: k(
|
|
1794
|
+
width: k(oe)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1819
1795
|
rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
|
|
1820
1796
|
height: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
|
|
1821
1797
|
fill: R.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
@@ -1824,11 +1800,11 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1824
1800
|
"stroke-linecap": "round",
|
|
1825
1801
|
"stroke-linejoin": "round",
|
|
1826
1802
|
class: x({ "vue-data-ui-bar-transition": Cn.value })
|
|
1827
|
-
}, null, 10, St))), 128)), t.$slots.pattern ? (w(),
|
|
1803
|
+
}, null, 10, St))), 128)), t.$slots.pattern ? (w(), v("g", Ct, [(w(!0), v(m, null, E(e.horizontal_x, (t, n) => (w(), v("rect", {
|
|
1828
1804
|
key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
|
|
1829
|
-
x: k(
|
|
1805
|
+
x: k(oe)(t, G.value.left),
|
|
1830
1806
|
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1831
|
-
width: k(
|
|
1807
|
+
width: k(oe)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1832
1808
|
rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
|
|
1833
1809
|
height: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
|
|
1834
1810
|
fill: `url(#pattern_${P.value}_${e.absoluteIndex})`,
|
|
@@ -1837,8 +1813,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1837
1813
|
"stroke-linecap": "round",
|
|
1838
1814
|
"stroke-linejoin": "round",
|
|
1839
1815
|
class: x({ "vue-data-ui-bar-transition": Cn.value })
|
|
1840
|
-
}, null, 10, wt))), 128))])) :
|
|
1841
|
-
R.value.style.chart.grid.x.showAxis ? (w(),
|
|
1816
|
+
}, null, 10, wt))), 128))])) : _("", !0)], 64))]))), 128)),
|
|
1817
|
+
R.value.style.chart.grid.x.showAxis ? (w(), v("line", {
|
|
1842
1818
|
key: 7,
|
|
1843
1819
|
x1: G.value.left,
|
|
1844
1820
|
x2: G.value.right,
|
|
@@ -1848,8 +1824,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1848
1824
|
"stroke-width": R.value.style.chart.grid.x.axisThickness,
|
|
1849
1825
|
"stroke-linecap": "round",
|
|
1850
1826
|
"stroke-linejoin": "round"
|
|
1851
|
-
}, null, 8, Tt)) :
|
|
1852
|
-
R.value.style.chart.grid.y.showAxis && !R.value.style.chart.bars.distributed ? (w(),
|
|
1827
|
+
}, null, 8, Tt)) : _("", !0),
|
|
1828
|
+
R.value.style.chart.grid.y.showAxis && !R.value.style.chart.bars.distributed ? (w(), v("line", {
|
|
1853
1829
|
key: 8,
|
|
1854
1830
|
x1: W.value ? G.value.right : G.value.left,
|
|
1855
1831
|
x2: W.value ? G.value.right : G.value.left,
|
|
@@ -1859,82 +1835,82 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1859
1835
|
"stroke-width": R.value.style.chart.grid.y.axisThickness,
|
|
1860
1836
|
"stroke-linecap": "round",
|
|
1861
1837
|
"stroke-linejoin": "round"
|
|
1862
|
-
}, null, 8, Et)) :
|
|
1863
|
-
R.value.style.chart.grid.x.axisName.show && R.value.style.chart.grid.x.axisName.text ? (w(),
|
|
1838
|
+
}, null, 8, Et)) : _("", !0),
|
|
1839
|
+
R.value.style.chart.grid.x.axisName.show && R.value.style.chart.grid.x.axisName.text ? (w(), v("text", {
|
|
1864
1840
|
key: 9,
|
|
1865
1841
|
ref_key: "xAxisLabel",
|
|
1866
|
-
ref:
|
|
1842
|
+
ref: An,
|
|
1867
1843
|
x: G.value.left + G.value.width / 2,
|
|
1868
1844
|
y: G.value.chartHeight - 3,
|
|
1869
1845
|
"font-size": R.value.style.chart.grid.x.axisName.fontSize,
|
|
1870
1846
|
fill: R.value.style.chart.grid.x.axisName.color,
|
|
1871
1847
|
"font-weight": R.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1872
1848
|
"text-anchor": "middle"
|
|
1873
|
-
}, O(R.value.style.chart.grid.x.axisName.text), 9, Dt)) :
|
|
1874
|
-
R.value.style.chart.grid.y.axisName.show && R.value.style.chart.grid.y.axisName.text ? (w(),
|
|
1849
|
+
}, O(R.value.style.chart.grid.x.axisName.text), 9, Dt)) : _("", !0),
|
|
1850
|
+
R.value.style.chart.grid.y.axisName.show && R.value.style.chart.grid.y.axisName.text ? (w(), v("text", {
|
|
1875
1851
|
key: 10,
|
|
1876
1852
|
ref_key: "yAxisLabel",
|
|
1877
|
-
ref:
|
|
1853
|
+
ref: jn,
|
|
1878
1854
|
transform: `translate(${W.value ? H.value.width - R.value.style.chart.grid.y.axisName.fontSize / 2 - R.value.style.chart.grid.y.axisName.offsetX : R.value.style.chart.grid.y.axisName.fontSize + R.value.style.chart.grid.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1879
1855
|
"font-size": R.value.style.chart.grid.y.axisName.fontSize,
|
|
1880
1856
|
fill: R.value.style.chart.grid.y.axisName.color,
|
|
1881
1857
|
"font-weight": R.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1882
1858
|
"text-anchor": "middle"
|
|
1883
|
-
}, O(R.value.style.chart.grid.y.axisName.text), 9, Ot)) :
|
|
1884
|
-
V.value.dataLabels.show && R.value.orientation === "vertical" ? (w(),
|
|
1859
|
+
}, O(R.value.style.chart.grid.y.axisName.text), 9, Ot)) : _("", !0),
|
|
1860
|
+
V.value.dataLabels.show && R.value.orientation === "vertical" ? (w(), v(m, { key: 11 }, [(w(!0), v(m, null, E($.value, (e, t) => (w(), v("g", { key: `dp_${e.id}` }, [(w(!0), v(m, null, E(e.x, (n, r) => (w(), v(m, { key: `rect_${e.id}_${J.value.start + r}` }, [Mi(e.series[r], e.proportions[r]) ? (w(), v("text", {
|
|
1885
1861
|
key: 0,
|
|
1886
1862
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1887
1863
|
transform: `translate(${n + X.value * (1 - R.value.style.chart.bars.gapRatio / 2) / 2}, ${e.y[r] + e.height[r] / 2 + R.value.style.chart.bars.dataLabels.fontSize / 3})`,
|
|
1888
1864
|
"font-size": R.value.style.chart.bars.dataLabels.fontSize,
|
|
1889
|
-
fill: R.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(
|
|
1865
|
+
fill: R.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(le)(e.color) : R.value.style.chart.bars.dataLabels.color,
|
|
1890
1866
|
"font-weight": R.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1891
1867
|
"text-anchor": "middle"
|
|
1892
|
-
}, O(R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ?
|
|
1868
|
+
}, O(R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ? ii(e.proportions[r] * 100, e, t, r) : ri(e.series[r], e, t, r, e.signedSeries[r])), 11, kt)) : _("", !0)], 64))), 128))]))), 128)), R.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (w(), v("g", {
|
|
1893
1869
|
key: 0,
|
|
1894
1870
|
ref_key: "sumTop",
|
|
1895
|
-
ref:
|
|
1896
|
-
}, [(w(!0),
|
|
1871
|
+
ref: Pn
|
|
1872
|
+
}, [(w(!0), v(m, null, E(ni.value, (e, t) => (w(), v(m, { key: `tl_${t + J.value.start}` }, [!R.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (w(), v("text", {
|
|
1897
1873
|
key: 0,
|
|
1898
1874
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1899
|
-
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${
|
|
1875
|
+
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${Qi(t)})`,
|
|
1900
1876
|
"text-anchor": "middle",
|
|
1901
1877
|
"font-size": R.value.style.chart.bars.totalValues.fontSize,
|
|
1902
1878
|
"font-weight": R.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1903
1879
|
fill: R.value.style.chart.bars.totalValues.color
|
|
1904
|
-
}, O(
|
|
1905
|
-
V.value.dataLabels.show && R.value.orientation === "horizontal" ? (w(),
|
|
1880
|
+
}, O(ri(e.value, e, t, e.sign)), 11, At)) : _("", !0)], 64))), 128))], 512)) : _("", !0)], 64)) : _("", !0),
|
|
1881
|
+
V.value.dataLabels.show && R.value.orientation === "horizontal" ? (w(), v(m, { key: 12 }, [(w(!0), v(m, null, E($.value, (e, t) => (w(), v("g", null, [(w(!0), v(m, null, E(e.horizontal_x, (n, r) => (w(), v(m, null, [Mi(e.series[r], e.proportions[r]) ? (w(), v("text", {
|
|
1906
1882
|
key: 0,
|
|
1907
1883
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1908
1884
|
transform: `translate(${n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2}, ${e.horizontal_y[r] + X.value * (1 - R.value.style.chart.bars.gapRatio / 2) / 2 + R.value.style.chart.bars.dataLabels.fontSize / 3})`,
|
|
1909
1885
|
"font-size": R.value.style.chart.bars.dataLabels.fontSize,
|
|
1910
|
-
fill: R.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(
|
|
1886
|
+
fill: R.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(le)(e.color) : R.value.style.chart.bars.dataLabels.color,
|
|
1911
1887
|
"font-weight": R.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1912
1888
|
"text-anchor": "middle"
|
|
1913
|
-
}, O(R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ?
|
|
1889
|
+
}, O(R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ? ii(e.proportions[r] * 100, e, t, r) : ri(e.series[r], e, t, r, e.signedSeries[r])), 11, jt)) : _("", !0)], 64))), 256))]))), 256)), R.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (w(), v("g", {
|
|
1914
1890
|
key: 0,
|
|
1915
1891
|
ref_key: "sumRight",
|
|
1916
|
-
ref:
|
|
1917
|
-
}, [(w(!0),
|
|
1892
|
+
ref: Fn
|
|
1893
|
+
}, [(w(!0), v(m, null, E(ni.value, (e, t) => (w(), v(m, null, [!R.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (w(), v("text", {
|
|
1918
1894
|
key: 0,
|
|
1919
1895
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1920
|
-
transform: `translate(${
|
|
1896
|
+
transform: `translate(${$i(t)}, ${G.value.top + X.value * t + X.value / 2 + R.value.style.chart.bars.totalValues.fontSize / 3})`,
|
|
1921
1897
|
"text-anchor": "start",
|
|
1922
1898
|
"font-size": R.value.style.chart.bars.totalValues.fontSize,
|
|
1923
1899
|
"font-weight": R.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1924
1900
|
fill: R.value.style.chart.bars.totalValues.color
|
|
1925
|
-
}, O(
|
|
1926
|
-
R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.bars.distributed && R.value.orientation === "vertical" ? (w(),
|
|
1901
|
+
}, O(ri(e.value, e, t, e.sign)), 11, Mt)) : _("", !0)], 64))), 256))], 512)) : _("", !0)], 64)) : _("", !0),
|
|
1902
|
+
R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.bars.distributed && R.value.orientation === "vertical" ? (w(), v("g", {
|
|
1927
1903
|
key: 13,
|
|
1928
1904
|
ref_key: "scaleLabels",
|
|
1929
|
-
ref:
|
|
1930
|
-
}, [(w(!0),
|
|
1905
|
+
ref: Mn
|
|
1906
|
+
}, [(w(!0), v(m, null, E(Z.value, (e, t) => (w(), v("path", {
|
|
1931
1907
|
key: `ty_${t}`,
|
|
1932
1908
|
stroke: R.value.style.chart.grid.x.axisColor,
|
|
1933
1909
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1934
1910
|
d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 6 : G.value.left - 6},${e.y}`,
|
|
1935
1911
|
"stroke-width": 1,
|
|
1936
1912
|
"stroke-linecap": "round"
|
|
1937
|
-
}, null, 10, Nt))), 128)), (w(!0),
|
|
1913
|
+
}, null, 10, Nt))), 128)), (w(!0), v(m, null, E(Z.value, (e, t) => (w(), v("text", {
|
|
1938
1914
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1939
1915
|
key: `tl_${t}`,
|
|
1940
1916
|
transform: `translate(${e.x}, ${e.y + R.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
@@ -1942,24 +1918,24 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1942
1918
|
"font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1943
1919
|
fill: R.value.style.chart.grid.y.axisLabels.color,
|
|
1944
1920
|
"text-anchor": W.value ? "start" : "end"
|
|
1945
|
-
}, O(k(
|
|
1921
|
+
}, O(k(ie)(R.value.style.chart.grid.y.axisLabels.formatter, e.value, k(p)({
|
|
1946
1922
|
p: R.value.style.chart.bars.dataLabels.prefix,
|
|
1947
1923
|
v: e.value,
|
|
1948
1924
|
s: R.value.style.chart.bars.dataLabels.suffix,
|
|
1949
1925
|
r: R.value.style.chart.grid.y.axisLabels.rounding
|
|
1950
|
-
}), { datapoint: e })), 11, Pt))), 128))], 512)) :
|
|
1951
|
-
R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.bars.distributed && R.value.orientation === "horizontal" ? (w(),
|
|
1926
|
+
}), { datapoint: e })), 11, Pt))), 128))], 512)) : _("", !0),
|
|
1927
|
+
R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.bars.distributed && R.value.orientation === "horizontal" ? (w(), v("g", {
|
|
1952
1928
|
key: 14,
|
|
1953
1929
|
ref_key: "scaleLabels",
|
|
1954
|
-
ref:
|
|
1955
|
-
}, [(w(!0),
|
|
1930
|
+
ref: Mn
|
|
1931
|
+
}, [(w(!0), v(m, null, E(Z.value, (e, t) => (w(), v("path", {
|
|
1956
1932
|
key: `scy_${t}`,
|
|
1957
1933
|
d: `M${e.horizontal_x},${G.value.bottom} ${e.horizontal_x},${G.value.bottom + 6}`,
|
|
1958
1934
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1959
1935
|
stroke: R.value.style.chart.grid.x.axisColor,
|
|
1960
1936
|
"stroke-width": 1,
|
|
1961
1937
|
"stroke-linecap": "round"
|
|
1962
|
-
}, null, 10, Ft))), 128)), (w(!0),
|
|
1938
|
+
}, null, 10, Ft))), 128)), (w(!0), v(m, null, E(Z.value, (e, t) => (w(), v("text", {
|
|
1963
1939
|
class: x(["vue-data-ui-time-label", { "vue-data-ui-transition": k(z) }]),
|
|
1964
1940
|
key: `tly_${t}`,
|
|
1965
1941
|
"font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1967,17 +1943,17 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1967
1943
|
fill: R.value.style.chart.grid.y.axisLabels.color,
|
|
1968
1944
|
"text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1969
1945
|
transform: `translate(${e.horizontal_x}, ${G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`
|
|
1970
|
-
}, O(k(
|
|
1946
|
+
}, O(k(ie)(R.value.style.chart.grid.y.axisLabels.formatter, e.value, k(p)({
|
|
1971
1947
|
p: R.value.style.chart.bars.dataLabels.prefix,
|
|
1972
1948
|
v: e.value,
|
|
1973
1949
|
s: R.value.style.chart.bars.dataLabels.suffix,
|
|
1974
1950
|
r: R.value.style.chart.grid.y.axisLabels.rounding
|
|
1975
|
-
}), { datapoint: e })), 11, It))), 128))], 512)) :
|
|
1976
|
-
R.value.style.chart.grid.x.timeLabels.show && R.value.orientation === "vertical" ? (w(),
|
|
1951
|
+
}), { datapoint: e })), 11, It))), 128))], 512)) : _("", !0),
|
|
1952
|
+
R.value.style.chart.grid.x.timeLabels.show && R.value.orientation === "vertical" ? (w(), v("g", {
|
|
1977
1953
|
key: 15,
|
|
1978
1954
|
ref_key: "timeLabelsEls",
|
|
1979
|
-
ref:
|
|
1980
|
-
}, [t.$slots["time-label"] ? (w(),
|
|
1955
|
+
ref: Nn
|
|
1956
|
+
}, [t.$slots["time-label"] ? (w(), v("g", Lt, [(w(!0), v(m, null, E(qr.value, (e, n) => (w(), v("g", null, [D(t.$slots, "time-label", Ye({ ref_for: !0 }, {
|
|
1981
1957
|
x: G.value.left + X.value * n + X.value / 2,
|
|
1982
1958
|
y: G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1983
1959
|
fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1987,7 +1963,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
1987
1963
|
content: e.text,
|
|
1988
1964
|
textAnchor: R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1989
1965
|
show: !0
|
|
1990
|
-
}), void 0, !0)]))), 256))])) : (w(),
|
|
1966
|
+
}), void 0, !0)]))), 256))])) : (w(), v("g", Rt, [(w(!0), v(m, null, E(qr.value, (e, t) => (w(), v("g", null, [String(e.text).includes("\n") ? (w(), v("text", {
|
|
1991
1967
|
class: x({ "vue-data-ui-transition": k(z) }),
|
|
1992
1968
|
key: t + "-multi",
|
|
1993
1969
|
"text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2008,8 +1984,8 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2008
1984
|
x: 0,
|
|
2009
1985
|
y: 0
|
|
2010
1986
|
}),
|
|
2011
|
-
onClick: () =>
|
|
2012
|
-
}, null, 14, Bt)) : (w(),
|
|
1987
|
+
onClick: () => Ai(e, t)
|
|
1988
|
+
}, null, 14, Bt)) : (w(), v("text", {
|
|
2013
1989
|
class: "vue-data-ui-time-label",
|
|
2014
1990
|
key: t,
|
|
2015
1991
|
"text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -2018,13 +1994,13 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2018
1994
|
fill: R.value.style.chart.grid.x.timeLabels.color,
|
|
2019
1995
|
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2020
1996
|
style: C({ cursor: B.value ? "pointer" : "default" }),
|
|
2021
|
-
onClick: () =>
|
|
2022
|
-
}, O(e.text), 13, zt))]))), 256))]))], 512)) :
|
|
2023
|
-
R.value.style.chart.grid.x.timeLabels.show && R.value.orientation === "horizontal" ? (w(),
|
|
1997
|
+
onClick: () => Ai(e, t)
|
|
1998
|
+
}, O(e.text), 13, zt))]))), 256))]))], 512)) : _("", !0),
|
|
1999
|
+
R.value.style.chart.grid.x.timeLabels.show && R.value.orientation === "horizontal" ? (w(), v("g", {
|
|
2024
2000
|
key: 16,
|
|
2025
2001
|
ref_key: "timeLabelsEls",
|
|
2026
|
-
ref:
|
|
2027
|
-
}, [t.$slots["time-label"] ? (w(),
|
|
2002
|
+
ref: Nn
|
|
2003
|
+
}, [t.$slots["time-label"] ? (w(), v("g", Vt, [(w(!0), v(m, null, E(Q.value, (e, n) => (w(), v("g", null, [D(t.$slots, "time-label", Ye({ ref_for: !0 }, {
|
|
2028
2004
|
x: G.value.left - 8,
|
|
2029
2005
|
y: G.value.top + X.value * n + X.value / 2 + R.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
2030
2006
|
fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2034,7 +2010,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2034
2010
|
content: e.text,
|
|
2035
2011
|
textAnchor: "end",
|
|
2036
2012
|
show: !0
|
|
2037
|
-
}), void 0, !0)]))), 256))])) : (w(),
|
|
2013
|
+
}), void 0, !0)]))), 256))])) : (w(), v("g", Ht, [(w(!0), v(m, null, E(Q.value, (e, t) => (w(), v("g", null, [String(e.text).includes("\n") ? (w(), v("text", {
|
|
2038
2014
|
key: 1,
|
|
2039
2015
|
"text-anchor": "end",
|
|
2040
2016
|
"font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -2042,7 +2018,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2042
2018
|
fill: R.value.style.chart.grid.y.axisLabels.color,
|
|
2043
2019
|
transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + R.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
2044
2020
|
style: C({ cursor: B.value ? "pointer" : "default" }),
|
|
2045
|
-
onClick: () =>
|
|
2021
|
+
onClick: () => Ai(e, t),
|
|
2046
2022
|
innerHTML: k(s)({
|
|
2047
2023
|
content: String(e.text),
|
|
2048
2024
|
fontSize: R.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -2050,7 +2026,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2050
2026
|
x: G.value.left - 8,
|
|
2051
2027
|
y: 0
|
|
2052
2028
|
})
|
|
2053
|
-
}, null, 12, Wt)) : (w(),
|
|
2029
|
+
}, null, 12, Wt)) : (w(), v("text", {
|
|
2054
2030
|
key: 0,
|
|
2055
2031
|
"text-anchor": "end",
|
|
2056
2032
|
"font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -2058,53 +2034,53 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2058
2034
|
fill: R.value.style.chart.grid.y.axisLabels.color,
|
|
2059
2035
|
transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + R.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
|
|
2060
2036
|
style: C({ cursor: B.value ? "pointer" : "default" }),
|
|
2061
|
-
onClick: () =>
|
|
2062
|
-
}, O(e.text), 13, Ut))]))), 256))]))], 512)) :
|
|
2063
|
-
V.value.showTooltip && R.value.orientation === "vertical" ? (w(!0),
|
|
2037
|
+
onClick: () => Ai(e, t)
|
|
2038
|
+
}, O(e.text), 13, Ut))]))), 256))]))], 512)) : _("", !0),
|
|
2039
|
+
V.value.showTooltip && R.value.orientation === "vertical" ? (w(!0), v(m, { key: 17 }, E(J.value.end - J.value.start, (e, t) => (w(), v("rect", {
|
|
2064
2040
|
x: G.value.left + t * X.value,
|
|
2065
2041
|
y: G.value.top,
|
|
2066
2042
|
width: X.value,
|
|
2067
2043
|
height: G.value.height < 0 ? 0 : G.value.height,
|
|
2068
|
-
onClick: () =>
|
|
2069
|
-
onMouseenter: () =>
|
|
2070
|
-
onMouseleave: () =>
|
|
2071
|
-
fill: t === I.value || t ===
|
|
2044
|
+
onClick: () => ai(t),
|
|
2045
|
+
onMouseenter: () => ui(t, "pointer"),
|
|
2046
|
+
onMouseleave: () => si(t),
|
|
2047
|
+
fill: t === I.value || t === Kn.value ? R.value.style.chart.highlighter.color : "transparent",
|
|
2072
2048
|
style: C({ opacity: R.value.style.chart.highlighter.opacity / 100 })
|
|
2073
|
-
}, null, 44, Gt))), 256)) :
|
|
2074
|
-
V.value.showTooltip && R.value.orientation === "horizontal" ? (w(!0),
|
|
2049
|
+
}, null, 44, Gt))), 256)) : _("", !0),
|
|
2050
|
+
V.value.showTooltip && R.value.orientation === "horizontal" ? (w(!0), v(m, { key: 18 }, E(J.value.end - J.value.start, (e, t) => (w(), v("rect", {
|
|
2075
2051
|
x: G.value.left,
|
|
2076
2052
|
y: G.value.top + t * X.value,
|
|
2077
2053
|
width: G.value.width < 0 ? 0 : G.value.width,
|
|
2078
2054
|
height: X.value,
|
|
2079
|
-
onClick: () =>
|
|
2080
|
-
onMouseenter: () =>
|
|
2081
|
-
onMouseleave: () =>
|
|
2082
|
-
fill: t === I.value || t ===
|
|
2055
|
+
onClick: () => ai(t),
|
|
2056
|
+
onMouseenter: () => ui(t, "pointer"),
|
|
2057
|
+
onMouseleave: () => si(t),
|
|
2058
|
+
fill: t === I.value || t === Kn.value ? R.value.style.chart.highlighter.color : "transparent",
|
|
2083
2059
|
style: C({ opacity: R.value.style.chart.highlighter.opacity / 100 })
|
|
2084
|
-
}, null, 44, Kt))), 256)) :
|
|
2085
|
-
|
|
2060
|
+
}, null, 44, Kt))), 256)) : _("", !0),
|
|
2061
|
+
Or.value ? (w(), v("rect", Ye({ key: 19 }, Er.value, {
|
|
2086
2062
|
"data-start": J.value.start,
|
|
2087
2063
|
"data-end": J.value.end
|
|
2088
|
-
}), null, 16, qt)) :
|
|
2064
|
+
}), null, 16, qt)) : _("", !0),
|
|
2089
2065
|
D(t.$slots, "svg", { svg: {
|
|
2090
2066
|
drawingArea: G.value,
|
|
2091
2067
|
slicer: J.value,
|
|
2092
2068
|
data: $.value,
|
|
2093
|
-
isPrintingImg: k(
|
|
2094
|
-
isPrintingSvg:
|
|
2069
|
+
isPrintingImg: k(or) || k(sr) || k(zi),
|
|
2070
|
+
isPrintingSvg: k(Bi),
|
|
2095
2071
|
barWidth: X.value
|
|
2096
2072
|
} }, void 0, !0)
|
|
2097
|
-
], 46, ut)), t.$slots.hint ? (w(),
|
|
2073
|
+
], 46, ut)), t.$slots.hint ? (w(), v("div", Jt, [D(t.$slots, "hint", S(b({
|
|
2098
2074
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
2099
|
-
isVisible:
|
|
2100
|
-
})), void 0, !0)])) :
|
|
2101
|
-
t.$slots.watermark ? (w(),
|
|
2102
|
-
R.value.style.chart.zoom.show && pn.value &&
|
|
2075
|
+
isVisible: ta.value
|
|
2076
|
+
})), void 0, !0)])) : _("", !0)]),
|
|
2077
|
+
t.$slots.watermark ? (w(), v("div", Yt, [D(t.$slots, "watermark", S(b({ isPrinting: k(or) || k(sr) || k(zi) || k(Bi) })), void 0, !0)])) : _("", !0),
|
|
2078
|
+
R.value.style.chart.zoom.show && pn.value && Gi.value && q.value > 6 ? (w(), g(Le, {
|
|
2103
2079
|
key: 5,
|
|
2104
2080
|
ref_key: "chartSlicer",
|
|
2105
2081
|
ref: bn,
|
|
2106
2082
|
"data-dom-to-png-ignore-layout": "",
|
|
2107
|
-
allMinimaps:
|
|
2083
|
+
allMinimaps: Lr.value,
|
|
2108
2084
|
background: R.value.style.chart.zoom.color,
|
|
2109
2085
|
borderColor: R.value.style.chart.backgroundColor,
|
|
2110
2086
|
customFormat: R.value.style.chart.zoom.customFormat,
|
|
@@ -2118,12 +2094,12 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2118
2094
|
fontSize: R.value.style.chart.zoom.fontSize,
|
|
2119
2095
|
immediate: !R.value.style.chart.zoom.preview.enable,
|
|
2120
2096
|
inputColor: R.value.style.chart.zoom.color,
|
|
2121
|
-
isPreview:
|
|
2097
|
+
isPreview: Or.value,
|
|
2122
2098
|
labelLeft: R.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Q.value?.[0]?.text ?? "" : "",
|
|
2123
2099
|
labelRight: R.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Q.value?.at(-1)?.text ?? "" : "",
|
|
2124
2100
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2125
2101
|
min: 0,
|
|
2126
|
-
minimap:
|
|
2102
|
+
minimap: Ir.value,
|
|
2127
2103
|
minimapCompact: R.value.style.chart.zoom.minimap.compact,
|
|
2128
2104
|
minimapFrameColor: R.value.style.chart.zoom.minimap.frameColor,
|
|
2129
2105
|
minimapIndicatorColor: R.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -2132,20 +2108,22 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2132
2108
|
minimapSelectedColorOpacity: R.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2133
2109
|
minimapSelectedIndex: I.value,
|
|
2134
2110
|
minimapSelectionRadius: 1,
|
|
2135
|
-
preciseLabels:
|
|
2111
|
+
preciseLabels: Zr.value.length ? Zr.value : Ur.value,
|
|
2136
2112
|
refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : R.value.style.chart.zoom.endIndex + 1,
|
|
2137
2113
|
refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
|
|
2138
2114
|
selectColor: R.value.style.chart.zoom.highlightColor,
|
|
2139
|
-
selectedSeries:
|
|
2115
|
+
selectedSeries: ci.value,
|
|
2140
2116
|
smoothMinimap: !1,
|
|
2141
2117
|
start: J.value.start,
|
|
2142
2118
|
textColor: R.value.style.chart.color,
|
|
2143
|
-
timeLabels:
|
|
2119
|
+
timeLabels: Ur.value,
|
|
2144
2120
|
usePreciseLabels: R.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !R.value.style.chart.zoom.useDefaultFormat,
|
|
2145
2121
|
valueEnd: J.value.end,
|
|
2146
2122
|
valueStart: J.value.start,
|
|
2147
2123
|
verticalHandles: R.value.style.chart.zoom.minimap.verticalHandles,
|
|
2148
2124
|
maxWidth: R.value.style.chart.zoom.maxWidth,
|
|
2125
|
+
minimapLeftInsetRatio: G.value.chartWidth > 0 && R.value.style.chart.zoom.autoFit ? G.value.left / G.value.chartWidth : null,
|
|
2126
|
+
minimapRightInsetRatio: G.value.chartWidth > 0 && R.value.style.chart.zoom.autoFit ? (G.value.chartWidth - G.value.right) / G.value.chartWidth : null,
|
|
2149
2127
|
isCursorPointer: B.value,
|
|
2150
2128
|
additionalMinimapHeight: R.value.style.chart.zoom.minimap.additionalHeight,
|
|
2151
2129
|
handleType: R.value.style.chart.zoom.minimap.handleType,
|
|
@@ -2154,18 +2132,18 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2154
2132
|
handleBorderColor: R.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2155
2133
|
handleFill: R.value.style.chart.zoom.minimap.handleFill,
|
|
2156
2134
|
handleWidth: R.value.style.chart.zoom.minimap.handleWidth,
|
|
2157
|
-
"onUpdate:end":
|
|
2158
|
-
"onUpdate:start":
|
|
2159
|
-
onTrapMouse:
|
|
2160
|
-
onReset: n[0] ||= () =>
|
|
2161
|
-
onFutureEnd: n[1] ||= (e) =>
|
|
2162
|
-
onFutureStart: n[2] ||= (e) =>
|
|
2135
|
+
"onUpdate:end": Yi,
|
|
2136
|
+
"onUpdate:start": Ji,
|
|
2137
|
+
onTrapMouse: Dr,
|
|
2138
|
+
onReset: n[0] ||= () => Nr({ force: !0 }),
|
|
2139
|
+
onFutureEnd: n[1] ||= (e) => kr("end", e),
|
|
2140
|
+
onFutureStart: n[2] ||= (e) => kr("start", e)
|
|
2163
2141
|
}, {
|
|
2164
2142
|
"reset-action": A(({ reset: e }) => [D(t.$slots, "reset-action", S(b({ reset: e })), void 0, !0)]),
|
|
2165
|
-
slotMap: A(({ width: e, height: t, unitW: n }) => [(w(!0),
|
|
2143
|
+
slotMap: A(({ width: e, height: t, unitW: n }) => [(w(!0), v(m, null, E($.value, (e) => (w(), v("g", { key: e.id }, [(w(!0), v(m, null, E(e.xMinimap({
|
|
2166
2144
|
left: 0,
|
|
2167
2145
|
unitW: n
|
|
2168
|
-
}), (r, a) => (w(),
|
|
2146
|
+
}), (r, a) => (w(), v("rect", {
|
|
2169
2147
|
key: `minimap-rect-${e.minimapRectKeys[a]}`,
|
|
2170
2148
|
x: a === 0 ? r - n * (R.value.style.chart.bars.gapRatio / 4) : r - n / 2,
|
|
2171
2149
|
y: Math.max(0, Math.min(t, e.yMinimap({ minimapH: t })[a])),
|
|
@@ -2180,7 +2158,7 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2180
2158
|
style: C({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
|
|
2181
2159
|
}, null, 12, Xt))), 128))]))), 128))]),
|
|
2182
2160
|
_: 3
|
|
2183
|
-
}, 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("."))) :
|
|
2161
|
+
}, 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("."))) : _("", !0),
|
|
2184
2162
|
qe(k(en), {
|
|
2185
2163
|
teleportTo: R.value.style.chart.tooltip.teleportTo,
|
|
2186
2164
|
show: V.value.showTooltip && mn.value,
|
|
@@ -2197,13 +2175,13 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2197
2175
|
parent: N.value,
|
|
2198
2176
|
content: gn.value,
|
|
2199
2177
|
isFullscreen: Sn.value,
|
|
2200
|
-
isCustom: k(
|
|
2178
|
+
isCustom: k(me)(R.value.style.chart.tooltip.customFormat),
|
|
2201
2179
|
smooth: R.value.style.chart.tooltip.smooth,
|
|
2202
2180
|
backdropFilter: R.value.style.chart.tooltip.backdropFilter,
|
|
2203
2181
|
smoothForce: R.value.style.chart.tooltip.smoothForce,
|
|
2204
2182
|
smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2205
|
-
isA11yMode:
|
|
2206
|
-
a11yPosition:
|
|
2183
|
+
isA11yMode: Vn.value === "keyboard",
|
|
2184
|
+
a11yPosition: Bn.value
|
|
2207
2185
|
}, {
|
|
2208
2186
|
"tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(b({ ...hn.value })), void 0, !0)]),
|
|
2209
2187
|
tooltip: A(() => [D(t.$slots, "tooltip", S(b({ ...hn.value })), void 0, !0)]),
|
|
@@ -2233,44 +2211,44 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2233
2211
|
"isA11yMode",
|
|
2234
2212
|
"a11yPosition"
|
|
2235
2213
|
]),
|
|
2236
|
-
|
|
2237
|
-
Dn.value && (R.value.style.chart.legend.show || t.$slots.legend) ? (w(),
|
|
2214
|
+
y("div", { id: `legend-bottom-${P.value}` }, null, 8, Zt),
|
|
2215
|
+
Dn.value && (R.value.style.chart.legend.show || t.$slots.legend) ? (w(), g(We, {
|
|
2238
2216
|
key: 6,
|
|
2239
2217
|
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
2240
|
-
}, [
|
|
2218
|
+
}, [y("div", {
|
|
2241
2219
|
ref_key: "chartLegend",
|
|
2242
2220
|
ref: yn
|
|
2243
|
-
}, [D(t.$slots, "legend", { legend:
|
|
2221
|
+
}, [D(t.$slots, "legend", { legend: Ei.value }, () => [R.value.style.chart.legend.show ? (w(), g(He, {
|
|
2244
2222
|
key: 0,
|
|
2245
|
-
legendSet:
|
|
2246
|
-
config:
|
|
2223
|
+
legendSet: Ei.value,
|
|
2224
|
+
config: Di.value,
|
|
2247
2225
|
isCursorPointer: B.value,
|
|
2248
2226
|
onClickMarker: n[3] ||= ({ legend: e }) => e.segregate()
|
|
2249
2227
|
}, Ge({
|
|
2250
|
-
item: A(({ legend: e }) => [k(
|
|
2228
|
+
item: A(({ legend: e }) => [k(Jn) ? _("", !0) : (w(), v("div", {
|
|
2251
2229
|
key: 0,
|
|
2252
2230
|
onClick: (t) => e.segregate(),
|
|
2253
2231
|
style: C(`opacity:${F.value.includes(e.id) ? .5 : 1}`)
|
|
2254
2232
|
}, O(e.name), 13, Qt))]),
|
|
2255
|
-
legendToggle: A(() => [
|
|
2233
|
+
legendToggle: A(() => [Ei.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !k(Jn) ? (w(), g(Re, {
|
|
2256
2234
|
key: 0,
|
|
2257
2235
|
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2258
2236
|
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
2259
2237
|
fontSize: R.value.style.chart.legend.fontSize,
|
|
2260
2238
|
checked: F.value.length > 0,
|
|
2261
2239
|
isCursorPointer: B.value,
|
|
2262
|
-
onToggle:
|
|
2240
|
+
onToggle: xi
|
|
2263
2241
|
}, null, 8, [
|
|
2264
2242
|
"backgroundColor",
|
|
2265
2243
|
"color",
|
|
2266
2244
|
"fontSize",
|
|
2267
2245
|
"checked",
|
|
2268
2246
|
"isCursorPointer"
|
|
2269
|
-
])) :
|
|
2247
|
+
])) : _("", !0)]),
|
|
2270
2248
|
_: 2
|
|
2271
2249
|
}, [t.$slots.pattern ? {
|
|
2272
2250
|
name: "legend-pattern",
|
|
2273
|
-
fn: A(({ legend: e, index: t }) => [qe(
|
|
2251
|
+
fn: A(({ legend: e, index: t }) => [qe(Me, {
|
|
2274
2252
|
shape: e.shape,
|
|
2275
2253
|
radius: 30,
|
|
2276
2254
|
stroke: "none",
|
|
@@ -2285,29 +2263,29 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2285
2263
|
"legendSet",
|
|
2286
2264
|
"config",
|
|
2287
2265
|
"isCursorPointer"
|
|
2288
|
-
])) :
|
|
2289
|
-
t.$slots.source ? (w(),
|
|
2266
|
+
])) : _("", !0)], !0)], 512)], 8, ["to"])) : _("", !0),
|
|
2267
|
+
t.$slots.source ? (w(), v("div", {
|
|
2290
2268
|
key: 7,
|
|
2291
2269
|
ref_key: "source",
|
|
2292
2270
|
ref: xn,
|
|
2293
2271
|
dir: "auto"
|
|
2294
|
-
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) :
|
|
2295
|
-
pn.value && R.value.userOptions.buttons.table ? (w(),
|
|
2272
|
+
}, [D(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
2273
|
+
pn.value && R.value.userOptions.buttons.table ? (w(), g($e(Pi.value.component), Ye({ key: 8 }, Pi.value.props, {
|
|
2296
2274
|
ref_key: "tableUnit",
|
|
2297
2275
|
ref: On,
|
|
2298
|
-
onClose:
|
|
2276
|
+
onClose: Fi
|
|
2299
2277
|
}), Ge({
|
|
2300
2278
|
content: A(() => [qe(k(rn), {
|
|
2301
|
-
colNames:
|
|
2302
|
-
head:
|
|
2303
|
-
body:
|
|
2304
|
-
config:
|
|
2305
|
-
title: R.value.table.useDialog ? "" :
|
|
2279
|
+
colNames: bi.value.colNames,
|
|
2280
|
+
head: bi.value.head,
|
|
2281
|
+
body: bi.value.body,
|
|
2282
|
+
config: bi.value.config,
|
|
2283
|
+
title: R.value.table.useDialog ? "" : Pi.value.title,
|
|
2306
2284
|
withCloseButton: !R.value.table.useDialog,
|
|
2307
2285
|
isCursorPointer: B.value,
|
|
2308
|
-
onClose:
|
|
2286
|
+
onClose: Fi
|
|
2309
2287
|
}, {
|
|
2310
|
-
th: A(({ th: e }) => [
|
|
2288
|
+
th: A(({ th: e }) => [y("div", { innerHTML: e }, null, 8, $t)]),
|
|
2311
2289
|
td: A(({ td: e }) => [Ke(O(isNaN(Number(e)) ? e : k(p)({
|
|
2312
2290
|
p: R.value.style.chart.bars.dataLabels.prefix,
|
|
2313
2291
|
v: e,
|
|
@@ -2327,24 +2305,24 @@ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct
|
|
|
2327
2305
|
_: 2
|
|
2328
2306
|
}, [R.value.table.useDialog ? {
|
|
2329
2307
|
name: "title",
|
|
2330
|
-
fn: A(() => [Ke(O(
|
|
2308
|
+
fn: A(() => [Ke(O(Pi.value.title), 1)]),
|
|
2331
2309
|
key: "0"
|
|
2332
2310
|
} : void 0, R.value.table.useDialog ? {
|
|
2333
2311
|
name: "actions",
|
|
2334
|
-
fn: A(() => [
|
|
2312
|
+
fn: A(() => [y("button", {
|
|
2335
2313
|
tabindex: "0",
|
|
2336
2314
|
class: "vue-ui-user-options-button",
|
|
2337
|
-
onClick: n[4] ||= (e) =>
|
|
2315
|
+
onClick: n[4] ||= (e) => yi(R.value.userOptions.callbacks.csv),
|
|
2338
2316
|
style: C({ cursor: B.value ? "pointer" : "default" })
|
|
2339
2317
|
}, [qe(k(tn), {
|
|
2340
2318
|
name: "fileCsv",
|
|
2341
|
-
stroke:
|
|
2319
|
+
stroke: Pi.value.props.color
|
|
2342
2320
|
}, null, 8, ["stroke"])], 4)]),
|
|
2343
2321
|
key: "1"
|
|
2344
|
-
} : void 0]), 1040)) :
|
|
2345
|
-
D(t.$slots, "skeleton", {}, () => [k(
|
|
2322
|
+
} : void 0]), 1040)) : _("", !0),
|
|
2323
|
+
D(t.$slots, "skeleton", {}, () => [k(Jn) ? (w(), g(Ce, { key: 0 })) : _("", !0)], !0)
|
|
2346
2324
|
], 46, ot));
|
|
2347
2325
|
}
|
|
2348
|
-
}, [["__scopeId", "data-v-
|
|
2326
|
+
}, [["__scopeId", "data-v-342b4392"]]);
|
|
2349
2327
|
//#endregion
|
|
2350
2328
|
export { at as n, en as t };
|