vue-data-ui 3.26.4 → 3.27.0
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-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.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-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
- package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
- 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 +212 -60
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
- package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
- package/dist/vue-ui-funnel-eVH871L3.js +0 -749
- package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
- package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
- package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
- package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
- package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
- package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
- package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
- package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
- package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
- package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
- package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
- package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
- package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
- package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, Dt as n, Ht as r, It as i, J as a, Kt as o, P as s, S as ee, X as c, _ as te, at as l, b as u, en as d, et as ne, f, h as re, i as p, nn as ie, p as ae, pt as oe, t as se, w as ce, zt as le } from "./lib-D4wK6ljP.js";
|
|
3
3
|
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as fe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as pe } from "./useConfig-
|
|
6
|
-
import { t as me } from "./usePrinter-
|
|
5
|
+
import { t as pe } from "./useConfig-D_6ZrPMD.js";
|
|
6
|
+
import { t as me } from "./usePrinter-DdW2GSm0.js";
|
|
7
7
|
import { n as he, t as ge } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
-
import { t as _e } from "./useNestedProp-
|
|
8
|
+
import { t as _e } from "./useNestedProp-DR_8JPol.js";
|
|
9
9
|
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as ye } from "./useChartExport-iwOqiIWX.js";
|
|
11
11
|
import { t as be } from "./useTransitions-g_zBREk2.js";
|
|
12
12
|
import { t as xe } from "./useStableElementSize-C7KADDKj.js";
|
|
13
13
|
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as Ce } from "./img
|
|
14
|
+
import { t as Ce } from "./img-Bb5rHcpO.js";
|
|
15
15
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
-
import { t as De } from "./SlicerPreview-
|
|
18
|
-
import { t as Oe } from "./BaseLegendToggle-
|
|
17
|
+
import { t as De } from "./SlicerPreview-k5YerMA9.js";
|
|
18
|
+
import { t as Oe } from "./BaseLegendToggle-CP3sddwv.js";
|
|
19
19
|
import { t as ke } from "./A11yDataTable-DdRsVULz.js";
|
|
20
20
|
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
21
|
import { t as je } from "./vue_ui_quick_chart-DByCqSYE.js";
|
|
@@ -451,7 +451,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
451
451
|
"copyAlt"
|
|
452
452
|
],
|
|
453
453
|
setup(e, { expose: we, emit: Ge }) {
|
|
454
|
-
let qe = Ie(() => import("./BaseIcon-
|
|
454
|
+
let qe = Ie(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Je = Ie(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Xe = Ie(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Ze = Ie(() => import("./Tooltip-C4ZTwkLF.js")), Qe = Ie(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), { vue_ui_quick_chart: $e } = pe(), { isThemeValid: et, warnInvalidTheme: tt } = ve(), M = e, N = w(null), kn = w(null), An = w(null), jn = w(null), P = w(c()), F = w(!1), Mn = w(null), Nn = w(""), I = w(null), Pn = w(null), Fn = w(null), L = w([]), In = w(0), Ln = w(0), Rn = w(!1), zn = w(null), Bn = w(null), Vn = w(null), Hn = w(null), Un = w(null), Wn = w(null), Gn = Ve(null), Kn = w(!1), qn = w(0), Jn = w(0), Yn = w(!1);
|
|
455
455
|
function Xn() {
|
|
456
456
|
Gn.value = N.value?.parentNode ?? null;
|
|
457
457
|
}
|
|
@@ -504,7 +504,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
504
504
|
}), tr = h(() => R.value.debug), nr = h(() => R.value.useCursorPointer), B = w(null), rr = w({
|
|
505
505
|
x: 0,
|
|
506
506
|
y: 0
|
|
507
|
-
}), V = w("pointer"), ir = w(!1), ar = h(() =>
|
|
507
|
+
}), V = w("pointer"), ir = w(!1), ar = h(() => ie({
|
|
508
508
|
dafaultConfig: {
|
|
509
509
|
backgroundColor: "#99999930",
|
|
510
510
|
customPalette: ["#BABABA"],
|
|
@@ -541,7 +541,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
541
541
|
55,
|
|
542
542
|
89
|
|
543
543
|
],
|
|
544
|
-
skeletonConfig:
|
|
544
|
+
skeletonConfig: ie({
|
|
545
545
|
defaultConfig: R.value,
|
|
546
546
|
userConfig: ar.value
|
|
547
547
|
})
|
|
@@ -553,12 +553,12 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
553
553
|
let e = _e({
|
|
554
554
|
userConfig: M.config,
|
|
555
555
|
defaultConfig: $e
|
|
556
|
-
}), t = {},
|
|
557
|
-
if (
|
|
556
|
+
}), t = {}, n = e.theme;
|
|
557
|
+
if (n) {
|
|
558
558
|
if (!et.value(e)) tt(e), t = e;
|
|
559
559
|
else {
|
|
560
560
|
let i = _e({
|
|
561
|
-
userConfig: je[
|
|
561
|
+
userConfig: je[n] || M.config,
|
|
562
562
|
defaultConfig: e
|
|
563
563
|
});
|
|
564
564
|
t = {
|
|
@@ -566,14 +566,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
566
566
|
userConfig: M.config,
|
|
567
567
|
defaultConfig: i
|
|
568
568
|
}),
|
|
569
|
-
customPalette: e.customPalette.length ? e.customPalette : n
|
|
569
|
+
customPalette: e.customPalette.length ? e.customPalette : d[n] || r
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
572
|
} else t = e;
|
|
573
573
|
return t;
|
|
574
574
|
}
|
|
575
575
|
function hr(e) {
|
|
576
|
-
let t =
|
|
576
|
+
let t = ne(e);
|
|
577
577
|
return t?.tooltipPosition && delete t.tooltipPosition, JSON.stringify(t);
|
|
578
578
|
}
|
|
579
579
|
let gr = hr(M.config);
|
|
@@ -585,14 +585,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
585
585
|
R.value.tooltipPosition = i.tooltipPosition, Dr.value.showTooltip = R.value.showTooltip;
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
|
-
or.value || (R.value = i), K.value.width = R.value.width, K.value.height = R.value.height, dr.value = !R.value.showUserOptionsOnChartHover,
|
|
588
|
+
or.value || (R.value = i), K.value.width = R.value.width, K.value.height = R.value.height, dr.value = !R.value.showUserOptionsOnChartHover, Ar(), Dr.value.showTooltip = R.value.showTooltip;
|
|
589
589
|
}, { deep: !0 }), Ue(() => M.dataset, (e) => {
|
|
590
590
|
Array.isArray(e) && e.length > 0 && (cr.value = !1);
|
|
591
591
|
}, { immediate: !0 });
|
|
592
|
-
let _r = h(() =>
|
|
592
|
+
let _r = h(() => ce(R.value.customPalette)), U = Ge, vr = h(() => {
|
|
593
593
|
let e = Ke({
|
|
594
594
|
debug: tr.value,
|
|
595
|
-
dataset:
|
|
595
|
+
dataset: o(sr.value, [
|
|
596
596
|
"serie",
|
|
597
597
|
"series",
|
|
598
598
|
"data",
|
|
@@ -605,7 +605,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
605
605
|
return !e && tr.value && console.error("VueUiQuickChart : Dataset is not processable"), e;
|
|
606
606
|
}), W = w(vr.value), yr = h(() => !!W.value), G = h(() => W.value ? W.value.type : null), br = h(() => [A.BAR, A.LINE].includes(G.value)), xr = h(() => br.value && R.value.zoomXy && Number(W.value?.maxSeriesLength ?? 0) > 1);
|
|
607
607
|
Ue(() => G.value, (e) => {
|
|
608
|
-
e ||
|
|
608
|
+
e || l({
|
|
609
609
|
componentName: "VueUiQuickChart",
|
|
610
610
|
type: "dataset",
|
|
611
611
|
debug: tr.value
|
|
@@ -622,12 +622,12 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
622
622
|
Ue(R, () => {
|
|
623
623
|
Dr.value = { showTooltip: R.value.showTooltip };
|
|
624
624
|
}, { immediate: !0 });
|
|
625
|
-
let
|
|
625
|
+
let Or = Ve(null), kr = Ve(null);
|
|
626
626
|
Be(() => {
|
|
627
|
-
Rn.value = !0, Xn(), er.start(),
|
|
627
|
+
Rn.value = !0, Xn(), er.start(), Ar(), Qn();
|
|
628
628
|
});
|
|
629
|
-
function
|
|
630
|
-
if (
|
|
629
|
+
function Ar() {
|
|
630
|
+
if (le(M.dataset) || (cr.value = R.value.loading), R.value.responsive) {
|
|
631
631
|
let e = Te(() => {
|
|
632
632
|
let { width: e, height: t } = Ee({
|
|
633
633
|
chart: N.value,
|
|
@@ -641,14 +641,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
641
641
|
K.value.width = e, K.value.height = t, $n();
|
|
642
642
|
});
|
|
643
643
|
});
|
|
644
|
-
|
|
644
|
+
Or.value && (kr.value && Or.value.unobserve(kr.value), Or.value.disconnect()), Or.value = new ResizeObserver(e), kr.value = N.value.parentNode, Or.value.observe(kr.value);
|
|
645
645
|
}
|
|
646
646
|
fi(), $n();
|
|
647
647
|
}
|
|
648
648
|
ze(() => {
|
|
649
|
-
er.stop(), oi(), Ai(),
|
|
649
|
+
er.stop(), oi(), Ai(), Or.value && (kr.value && Or.value.unobserve(kr.value), Or.value.disconnect(), Or.value = null, kr.value = null);
|
|
650
650
|
});
|
|
651
|
-
let
|
|
651
|
+
let jr = h(() => {
|
|
652
652
|
switch (G.value) {
|
|
653
653
|
case A.LINE: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
654
654
|
case A.BAR: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
@@ -656,74 +656,74 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
656
656
|
default: return `0 0 ${K.value.width <= 0 ? 10 : K.value.width} ${K.value.height <= 0 ? 10 : K.value.height}`;
|
|
657
657
|
}
|
|
658
658
|
});
|
|
659
|
-
function
|
|
659
|
+
function Mr(e) {
|
|
660
660
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Nr(e) {
|
|
663
663
|
return R.value.blurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${P.value})` : "";
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
L.value.length ? L.value = [] : G.value === A.DONUT ?
|
|
665
|
+
function Pr() {
|
|
666
|
+
L.value.length ? L.value = [] : G.value === A.DONUT ? J.value.legend.forEach((e) => {
|
|
667
667
|
L.value.push(e.id);
|
|
668
668
|
}) : G.value === A.LINE ? Z.value.legend.forEach((e) => {
|
|
669
669
|
L.value.push(e.id);
|
|
670
670
|
}) : G.value === A.BAR && Q.value.legend.forEach((e) => {
|
|
671
671
|
L.value.push(e.id);
|
|
672
|
-
}), G.value === A.DONUT ? U("selectLegend",
|
|
672
|
+
}), G.value === A.DONUT ? U("selectLegend", J.value.dataset) : G.value === A.LINE ? U("selectLegend", Z.value.dataset) : G.value === A.BAR && U("selectLegend", Q.value.dataset);
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Fr(e, t) {
|
|
675
675
|
L.value.includes(e) ? L.value = L.value.filter((t) => t !== e) : L.value.length < t && L.value.push(e);
|
|
676
676
|
}
|
|
677
|
-
let
|
|
678
|
-
function
|
|
679
|
-
|
|
677
|
+
let Ir = w(null), Lr = w(null), Rr = w(!1);
|
|
678
|
+
function zr(e, t) {
|
|
679
|
+
Rr.value = !0;
|
|
680
680
|
let n = e.value, r = vr.value.dataset.find((t, n) => e.id === `donut_${n}`).VALUE;
|
|
681
681
|
if (L.value.includes(e.id)) {
|
|
682
682
|
L.value = L.value.filter((t) => t !== e.id);
|
|
683
683
|
function t() {
|
|
684
|
-
n > r ? (
|
|
684
|
+
n > r ? (Rr.value = !1, cancelAnimationFrame(Lr.value), W.value = {
|
|
685
685
|
...W.value,
|
|
686
686
|
dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
687
687
|
...t,
|
|
688
688
|
value: r,
|
|
689
689
|
VALUE: r
|
|
690
690
|
} : t)
|
|
691
|
-
}, U("selectLegend",
|
|
691
|
+
}, U("selectLegend", J.value.dataset)) : (n += r * .025, W.value = {
|
|
692
692
|
...W.value,
|
|
693
693
|
dataset: W.value.dataset.map((t, r) => e.id === `donut_${r}` ? {
|
|
694
694
|
...t,
|
|
695
695
|
value: n,
|
|
696
696
|
VALUE: n
|
|
697
697
|
} : t)
|
|
698
|
-
},
|
|
698
|
+
}, Lr.value = requestAnimationFrame(t));
|
|
699
699
|
}
|
|
700
700
|
t();
|
|
701
701
|
} else if (t.length > 1) {
|
|
702
702
|
function t() {
|
|
703
|
-
n < r / 100 ? (
|
|
703
|
+
n < r / 100 ? (Rr.value = !1, cancelAnimationFrame(Ir.value), L.value.push(e.id), W.value = {
|
|
704
704
|
...W.value,
|
|
705
705
|
dataset: W.value.dataset.map((t, n) => e.id === `donut_${n}` ? {
|
|
706
706
|
...t,
|
|
707
707
|
value: 0,
|
|
708
708
|
VALUE: 0
|
|
709
709
|
} : t)
|
|
710
|
-
}, U("selectLegend",
|
|
710
|
+
}, U("selectLegend", J.value.dataset)) : (n /= 1.1, W.value = {
|
|
711
711
|
...W.value,
|
|
712
712
|
dataset: W.value.dataset.map((t, r) => e.id === `donut_${r}` ? {
|
|
713
713
|
...t,
|
|
714
714
|
value: n,
|
|
715
715
|
VALUE: n
|
|
716
716
|
} : t)
|
|
717
|
-
},
|
|
717
|
+
}, Ir.value = requestAnimationFrame(t));
|
|
718
718
|
}
|
|
719
719
|
t();
|
|
720
|
-
} else U("selectLegend",
|
|
720
|
+
} else U("selectLegend", J.value.dataset);
|
|
721
721
|
}
|
|
722
|
-
let
|
|
723
|
-
function
|
|
724
|
-
|
|
722
|
+
let q = w(null);
|
|
723
|
+
function Br(e) {
|
|
724
|
+
q.value = e;
|
|
725
725
|
}
|
|
726
|
-
let
|
|
726
|
+
let Vr = h(() => R.value.donutThicknessRatio < .01 ? .01 : R.value.donutThicknessRatio > .4 ? .4 : R.value.donutThicknessRatio), J = h(() => {
|
|
727
727
|
if (G.value !== A.DONUT) return null;
|
|
728
728
|
let e = W.value.dataset.map((e, t) => ({
|
|
729
729
|
...e,
|
|
@@ -732,110 +732,110 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
732
732
|
id: `donut_${t}`
|
|
733
733
|
})).map((e, t) => ({
|
|
734
734
|
...e,
|
|
735
|
-
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] ||
|
|
735
|
+
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || r[t + R.value.paletteStartIndex] || r[(t + R.value.paletteStartIndex) % r.length],
|
|
736
736
|
immutableValue: e.value
|
|
737
737
|
}));
|
|
738
|
-
function
|
|
738
|
+
function a(e, n) {
|
|
739
739
|
return t({
|
|
740
|
-
v: isNaN(e.value /
|
|
740
|
+
v: isNaN(e.value / Mr(n)) ? 0 : e.value / Mr(n) * 100,
|
|
741
741
|
s: "%",
|
|
742
742
|
r: R.value.dataLabelRoundingPercentage
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function o(e) {
|
|
746
746
|
return e.proportion * 100 > R.value.donutHideLabelUnderPercentage;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function s(e, t) {
|
|
749
749
|
let n = vr.value.dataset.find((t, n) => `donut_${n}` === e).VALUE;
|
|
750
750
|
return Math.abs(String(Number(n.toFixed(0))).length - String(Number(t.toFixed(0))).length);
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function c({ datapoint: r, seriesIndex: i, triggerMode: a = "pointer" }) {
|
|
753
753
|
Mn.value = {
|
|
754
|
-
datapoint:
|
|
754
|
+
datapoint: r,
|
|
755
755
|
seriesIndex: i,
|
|
756
756
|
config: R.value,
|
|
757
757
|
dataset: e
|
|
758
|
-
}, I.value =
|
|
758
|
+
}, I.value = r.id, B.value = i, V.value = a;
|
|
759
759
|
let o = R.value.tooltipCustomFormat;
|
|
760
760
|
if (R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
761
|
-
datapoint:
|
|
761
|
+
datapoint: r,
|
|
762
762
|
seriesIndex: i
|
|
763
|
-
}),
|
|
764
|
-
datapoint:
|
|
763
|
+
}), n(o) && oe(() => o({
|
|
764
|
+
datapoint: r,
|
|
765
765
|
seriesIndex: i,
|
|
766
766
|
series: e,
|
|
767
767
|
config: R.value
|
|
768
768
|
}))) Nn.value = o({
|
|
769
|
-
datapoint:
|
|
769
|
+
datapoint: r,
|
|
770
770
|
seriesIndex: i,
|
|
771
771
|
series: e,
|
|
772
772
|
config: R.value
|
|
773
773
|
});
|
|
774
774
|
else {
|
|
775
775
|
let e = "";
|
|
776
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${
|
|
776
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${r.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${r.color}"/></svg>`, e += `<b>${p(R.value.formatter, r.value, t({
|
|
777
777
|
p: R.value.valuePrefix,
|
|
778
|
-
v:
|
|
778
|
+
v: r.value,
|
|
779
779
|
s: R.value.valueSuffix,
|
|
780
780
|
r: R.value.dataLabelRoundingValue
|
|
781
781
|
}), {
|
|
782
|
-
datapoint:
|
|
782
|
+
datapoint: r,
|
|
783
783
|
seriesIndex: i
|
|
784
784
|
})}</b>`, e += `<span>(${t({
|
|
785
|
-
v:
|
|
785
|
+
v: r.proportion * 100,
|
|
786
786
|
s: "%",
|
|
787
787
|
r: R.value.dataLabelRoundingPercentage
|
|
788
788
|
})})</span></div>`, Nn.value = `<div>${e}</div>`;
|
|
789
789
|
}
|
|
790
790
|
F.value = !0;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function te({ datapoint: e, seriesIndex: t }) {
|
|
793
793
|
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
794
794
|
datapoint: e,
|
|
795
795
|
seriesIndex: t
|
|
796
|
-
}), F.value = !1, I.value = null,
|
|
796
|
+
}), F.value = !1, I.value = null, q.value = null, B.value = null, V.value = "pointer";
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function l({ datapoint: e, seriesIndex: t }) {
|
|
799
799
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
800
800
|
datapoint: e,
|
|
801
801
|
seriesIndex: t
|
|
802
802
|
}), U("selectDatapoint", e);
|
|
803
803
|
}
|
|
804
|
-
let
|
|
804
|
+
let u = {
|
|
805
805
|
centerX: K.value.width / 2,
|
|
806
806
|
centerY: K.value.height / 2
|
|
807
|
-
},
|
|
807
|
+
}, d = e.filter((e) => !L.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0), ne = e.map((e, t) => ({
|
|
808
808
|
...e,
|
|
809
|
-
proportion: (e.value || 0) /
|
|
809
|
+
proportion: (e.value || 0) / d,
|
|
810
810
|
value: e.value || 0,
|
|
811
811
|
absoluteValue: vr.value.dataset.find((t, n) => `donut_${n}` === e.id).VALUE,
|
|
812
812
|
shape: "circle"
|
|
813
|
-
})),
|
|
813
|
+
})), f = K.value.width / 2, re = K.value.height / 2, ie = K.value.height * R.value.donutRadiusRatio;
|
|
814
814
|
return {
|
|
815
|
-
dataset:
|
|
816
|
-
legend:
|
|
817
|
-
drawingArea:
|
|
818
|
-
displayArcPercentage:
|
|
819
|
-
isArcBigEnough:
|
|
820
|
-
useTooltip:
|
|
821
|
-
killTooltip:
|
|
822
|
-
selectDatapoint:
|
|
823
|
-
getSpaces:
|
|
824
|
-
total:
|
|
825
|
-
cx:
|
|
826
|
-
cy:
|
|
827
|
-
radius:
|
|
828
|
-
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) },
|
|
815
|
+
dataset: ne.filter((e) => !L.value.includes(e.id)),
|
|
816
|
+
legend: ne,
|
|
817
|
+
drawingArea: u,
|
|
818
|
+
displayArcPercentage: a,
|
|
819
|
+
isArcBigEnough: o,
|
|
820
|
+
useTooltip: c,
|
|
821
|
+
killTooltip: te,
|
|
822
|
+
selectDatapoint: l,
|
|
823
|
+
getSpaces: s,
|
|
824
|
+
total: d,
|
|
825
|
+
cx: f,
|
|
826
|
+
cy: re,
|
|
827
|
+
radius: ie,
|
|
828
|
+
chart: i({ series: e.filter((e) => !L.value.includes(e.id)) }, f, re, ie, ie, 1.99999, 2, 1, 360, 105.25, K.value.height * Vr.value)
|
|
829
829
|
};
|
|
830
|
-
}),
|
|
830
|
+
}), Y = w({
|
|
831
831
|
start: 0,
|
|
832
832
|
end: W.value.maxSeriesLength
|
|
833
|
-
}),
|
|
833
|
+
}), Hr = w({ ...Y.value }), Ur = w(null), Wr = w(!1), Gr = w(!1), Kr = w(!1), qr = w(!1), Jr = w(!1), Yr = w(null), Xr = w(null), Zr = w(null), Qr = w(!1), $r = w({
|
|
834
834
|
time: 0,
|
|
835
835
|
x: 0,
|
|
836
836
|
y: 0,
|
|
837
837
|
pointerType: null
|
|
838
|
-
}),
|
|
838
|
+
}), ei = {
|
|
839
839
|
show: !1,
|
|
840
840
|
selection: {
|
|
841
841
|
fill: "#2D353C",
|
|
@@ -845,18 +845,18 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
845
845
|
strokeWidth: 1,
|
|
846
846
|
strokeDasharray: 0
|
|
847
847
|
}
|
|
848
|
-
},
|
|
848
|
+
}, ti = h(() => {
|
|
849
849
|
let e = R.value.dragToZoom ?? {};
|
|
850
850
|
return {
|
|
851
|
-
|
|
851
|
+
...ei,
|
|
852
852
|
...e,
|
|
853
853
|
selection: {
|
|
854
|
-
|
|
854
|
+
...ei.selection,
|
|
855
855
|
...e.selection ?? {}
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
|
-
}),
|
|
859
|
-
function ii(e, t =
|
|
858
|
+
}), X = h(() => br.value && ti.value.show && Wr.value && si() > 1 && !or.value), ni = null, ri = {};
|
|
859
|
+
function ii(e, t = Y.value) {
|
|
860
860
|
if (!e || typeof e != "object") return null;
|
|
861
861
|
let n = e.start !== void 0 && e.start !== null, r = e.end !== void 0 && e.end !== null;
|
|
862
862
|
if (!n && !r) return null;
|
|
@@ -877,7 +877,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
877
877
|
let e = Number(W.value?.maxSeriesLength);
|
|
878
878
|
return Number.isFinite(e) ? Math.max(0, e) : 0;
|
|
879
879
|
}
|
|
880
|
-
function ci(e, t =
|
|
880
|
+
function ci(e, t = Y.value.start) {
|
|
881
881
|
let n = si();
|
|
882
882
|
if (n <= 0) return 0;
|
|
883
883
|
let r = Math.max(0, Math.min(Number(t) || 0, n - 1)), i = Number(e);
|
|
@@ -886,30 +886,30 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
886
886
|
function li() {
|
|
887
887
|
let e = si();
|
|
888
888
|
if (e <= 0) {
|
|
889
|
-
|
|
889
|
+
Y.value = {
|
|
890
890
|
start: 0,
|
|
891
891
|
end: 0
|
|
892
|
-
},
|
|
892
|
+
}, Hr.value = { ...Y.value }, Ur.value && Ur.value.setRangeValues(0, 0);
|
|
893
893
|
return;
|
|
894
894
|
}
|
|
895
|
-
let t = Number(
|
|
896
|
-
Number.isFinite(t) || (t = 0), Number.isFinite(n) || (n = e), t = Math.max(0, Math.min(t, e - 1)), n = Math.max(t + 1, Math.min(n, e)),
|
|
895
|
+
let t = Number(Y.value.start), n = Number(Y.value.end);
|
|
896
|
+
Number.isFinite(t) || (t = 0), Number.isFinite(n) || (n = e), t = Math.max(0, Math.min(t, e - 1)), n = Math.max(t + 1, Math.min(n, e)), Y.value = {
|
|
897
897
|
start: t,
|
|
898
898
|
end: n
|
|
899
|
-
},
|
|
899
|
+
}, Hr.value = {
|
|
900
900
|
start: t,
|
|
901
901
|
end: n
|
|
902
|
-
},
|
|
902
|
+
}, Ur.value && Ur.value.setRangeValues(t, n);
|
|
903
903
|
}
|
|
904
904
|
function ui(e) {
|
|
905
905
|
if (!br.value) return null;
|
|
906
906
|
let t = ii(e);
|
|
907
|
-
return t ? ((t.start !== Number(
|
|
907
|
+
return t ? ((t.start !== Number(Y.value.start) || t.end !== Number(Y.value.end)) && (oi(), Y.value = {
|
|
908
908
|
start: t.start,
|
|
909
909
|
end: t.end
|
|
910
|
-
},
|
|
911
|
-
start: Number(
|
|
912
|
-
end: Number(
|
|
910
|
+
}, Hr.value = { ...Y.value }, li(), $n()), {
|
|
911
|
+
start: Number(Y.value.start),
|
|
912
|
+
end: Number(Y.value.end)
|
|
913
913
|
}) : null;
|
|
914
914
|
}
|
|
915
915
|
function di(e) {
|
|
@@ -917,20 +917,20 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
917
917
|
return t ? (ai(t), t) : null;
|
|
918
918
|
}
|
|
919
919
|
async function fi({ applyControlledZoom: e = !0 } = {}) {
|
|
920
|
-
if (!
|
|
920
|
+
if (!Gr.value) {
|
|
921
921
|
if (!br.value) {
|
|
922
|
-
|
|
922
|
+
Wr.value = !1;
|
|
923
923
|
return;
|
|
924
924
|
}
|
|
925
|
-
|
|
925
|
+
Gr.value = !0;
|
|
926
926
|
try {
|
|
927
927
|
await Re(), await Re();
|
|
928
928
|
let { zoomStartIndex: t, zoomEndIndex: n } = R.value, r = si();
|
|
929
929
|
if (r <= 0) {
|
|
930
|
-
|
|
930
|
+
Y.value = {
|
|
931
931
|
start: 0,
|
|
932
932
|
end: 0
|
|
933
|
-
},
|
|
933
|
+
}, Hr.value = { ...Y.value }, Wr.value = !1;
|
|
934
934
|
return;
|
|
935
935
|
}
|
|
936
936
|
let i = t == null ? 0 : Number(t), a = n == null ? r : ci(Number(n) + 1, i);
|
|
@@ -938,24 +938,24 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
938
938
|
let e = ii(M.zoomState);
|
|
939
939
|
i = e.start, a = e.end;
|
|
940
940
|
}
|
|
941
|
-
|
|
941
|
+
Kr.value = !0, Y.value = {
|
|
942
942
|
start: i,
|
|
943
943
|
end: a
|
|
944
|
-
},
|
|
944
|
+
}, Hr.value = {
|
|
945
945
|
start: i,
|
|
946
946
|
end: a
|
|
947
|
-
}, li(),
|
|
947
|
+
}, li(), Wr.value = !0, await Re(), Ur.value && Ur.value.setRangeValues(Y.value.start, Y.value.end);
|
|
948
948
|
} finally {
|
|
949
949
|
queueMicrotask(() => {
|
|
950
|
-
|
|
951
|
-
}),
|
|
950
|
+
Kr.value = !1;
|
|
951
|
+
}), Gr.value = !1, $n();
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
async function pi({ applyControlledZoom: e = !1, publish: t = !1 } = {}) {
|
|
956
956
|
oi(), await fi({ applyControlledZoom: e }), t && (ai({
|
|
957
|
-
start: Number(
|
|
958
|
-
end: Number(
|
|
957
|
+
start: Number(Y.value.start),
|
|
958
|
+
end: Number(Y.value.end)
|
|
959
959
|
}), U("zoomReset"));
|
|
960
960
|
}
|
|
961
961
|
function mi(e) {
|
|
@@ -964,30 +964,30 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
964
964
|
...e
|
|
965
965
|
}, ni && cancelAnimationFrame(ni), ni = requestAnimationFrame(() => {
|
|
966
966
|
let e = {
|
|
967
|
-
...
|
|
967
|
+
...Y.value,
|
|
968
968
|
...ri
|
|
969
969
|
};
|
|
970
|
-
ri = {}, ni = null,
|
|
971
|
-
start: Number(
|
|
972
|
-
end: Number(
|
|
970
|
+
ri = {}, ni = null, Y.value = e, Hr.value = { ...e }, li(), ai({
|
|
971
|
+
start: Number(Y.value.start),
|
|
972
|
+
end: Number(Y.value.end)
|
|
973
973
|
}), $n();
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
976
|
function hi(e) {
|
|
977
|
-
if (
|
|
977
|
+
if (Gr.value || Kr.value) return;
|
|
978
978
|
let t = Number(e);
|
|
979
979
|
Number.isFinite(t) && (U("zoomStart", {
|
|
980
980
|
index: t,
|
|
981
981
|
isZoom: t !== 0
|
|
982
|
-
}), (t !==
|
|
982
|
+
}), (t !== Y.value.start || ri.end !== void 0) && mi({ start: t }));
|
|
983
983
|
}
|
|
984
984
|
function gi(e) {
|
|
985
|
-
if (
|
|
986
|
-
let t = ri.start === void 0 ?
|
|
985
|
+
if (Gr.value || Kr.value) return;
|
|
986
|
+
let t = ri.start === void 0 ? Y.value.start : ri.start, n = ci(Number(e), t);
|
|
987
987
|
U("zoomEnd", {
|
|
988
988
|
index: n,
|
|
989
989
|
isZoom: n !== si()
|
|
990
|
-
}), (n !==
|
|
990
|
+
}), (n !== Y.value.end || ri.start !== void 0) && mi({ end: n });
|
|
991
991
|
}
|
|
992
992
|
Ue([
|
|
993
993
|
() => M.zoomState,
|
|
@@ -995,7 +995,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
995
995
|
() => Number(W.value?.maxSeriesLength ?? 0)
|
|
996
996
|
], async ([e, t, n]) => {
|
|
997
997
|
if (!(!t || n <= 0 || !e)) {
|
|
998
|
-
if (!
|
|
998
|
+
if (!Wr.value) {
|
|
999
999
|
await fi({ applyControlledZoom: !0 });
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
@@ -1006,20 +1006,20 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1006
1006
|
immediate: !0
|
|
1007
1007
|
}), Ue(vr, async (e) => {
|
|
1008
1008
|
if (!e) {
|
|
1009
|
-
|
|
1009
|
+
Wr.value = !1;
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
1012
|
let t = W.value?.type, n = Number(W.value?.maxSeriesLength ?? 0);
|
|
1013
1013
|
W.value = e;
|
|
1014
1014
|
let r = e.type, i = Number(e.maxSeriesLength ?? 0);
|
|
1015
1015
|
if (![A.BAR, A.LINE].includes(r)) {
|
|
1016
|
-
oi(),
|
|
1016
|
+
oi(), Wr.value = !1, $n();
|
|
1017
1017
|
return;
|
|
1018
1018
|
}
|
|
1019
|
-
t !== r || n !== i ? (oi(),
|
|
1019
|
+
t !== r || n !== i ? (oi(), Wr.value = !1, Y.value = {
|
|
1020
1020
|
start: 0,
|
|
1021
1021
|
end: i
|
|
1022
|
-
},
|
|
1022
|
+
}, Hr.value = { ...Y.value }, Ln.value += 1, await Re(), await fi({ applyControlledZoom: !0 })) : M.zoomState && ui(M.zoomState), $n();
|
|
1023
1023
|
}, { deep: !0 });
|
|
1024
1024
|
let _i = h(() => {
|
|
1025
1025
|
if (!R.value.zoomMinimap.show || G.value === A.DONUT) return [];
|
|
@@ -1063,52 +1063,52 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1063
1063
|
let e = {
|
|
1064
1064
|
height: K.value.height,
|
|
1065
1065
|
width: K.value.width
|
|
1066
|
-
},
|
|
1066
|
+
}, i = vi();
|
|
1067
1067
|
if (Vn.value) {
|
|
1068
1068
|
let e = Vn.value.getBBox().x;
|
|
1069
|
-
e < 0 && (
|
|
1069
|
+
e < 0 && (i += Math.abs(e));
|
|
1070
1070
|
}
|
|
1071
|
-
let
|
|
1072
|
-
left:
|
|
1071
|
+
let a = {
|
|
1072
|
+
left: i + R.value.xyPaddingLeft,
|
|
1073
1073
|
top: R.value.xyPaddingTop,
|
|
1074
1074
|
right: e.width - R.value.xyPaddingRight,
|
|
1075
1075
|
bottom: e.height - R.value.xyPaddingBottom - xi.value,
|
|
1076
|
-
width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight -
|
|
1076
|
+
width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight - i),
|
|
1077
1077
|
height: Math.max(10, e.height - R.value.xyPaddingTop - R.value.xyPaddingBottom - xi.value)
|
|
1078
|
-
},
|
|
1079
|
-
j(W.value.dataset) && (
|
|
1080
|
-
values: W.value.dataset.slice(
|
|
1078
|
+
}, o = [];
|
|
1079
|
+
j(W.value.dataset) && (o = [{
|
|
1080
|
+
values: W.value.dataset.slice(Y.value.start, Y.value.end),
|
|
1081
1081
|
absoluteValues: W.value.dataset,
|
|
1082
|
-
absoluteIndices: W.value.dataset.map((e, t) => t).slice(
|
|
1082
|
+
absoluteIndices: W.value.dataset.map((e, t) => t).slice(Y.value.start, Y.value.end),
|
|
1083
1083
|
name: R.value.title,
|
|
1084
|
-
color: _r.value[R.value.paletteStartIndex] ||
|
|
1084
|
+
color: _r.value[R.value.paletteStartIndex] || r[R.value.paletteStartIndex],
|
|
1085
1085
|
id: "line_0"
|
|
1086
|
-
}]), Ye(W.value.dataset) && (
|
|
1086
|
+
}]), Ye(W.value.dataset) && (o = W.value.dataset.map((e, t) => ({
|
|
1087
1087
|
...e,
|
|
1088
1088
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
1089
1089
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
1090
1090
|
id: `line_${t}`
|
|
1091
1091
|
})).map((e, t) => ({
|
|
1092
1092
|
...e,
|
|
1093
|
-
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] ||
|
|
1094
|
-
values: e.values.slice(
|
|
1093
|
+
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || r[t + R.value.paletteStartIndex] || r[(t + R.value.paletteStartIndex) % r.length],
|
|
1094
|
+
values: e.values.slice(Y.value.start, Y.value.end),
|
|
1095
1095
|
absoluteValues: e.values,
|
|
1096
|
-
absoluteIndices: e.values.map((e, t) => t).slice(
|
|
1096
|
+
absoluteIndices: e.values.map((e, t) => t).slice(Y.value.start, Y.value.end)
|
|
1097
1097
|
})));
|
|
1098
|
-
let
|
|
1099
|
-
max: Math.max(...
|
|
1100
|
-
min: Math.min(...
|
|
1101
|
-
maxSeries: Math.max(...
|
|
1102
|
-
},
|
|
1103
|
-
y:
|
|
1104
|
-
x:
|
|
1098
|
+
let s = {
|
|
1099
|
+
max: Math.max(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
|
|
1100
|
+
min: Math.min(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)),
|
|
1101
|
+
maxSeries: Math.max(...o.map((e) => e.values.length))
|
|
1102
|
+
}, c = s.max === s.min ? te(Math.min(s.min, 0), s.min === 0 ? 1 : Math.max(s.min, 0), R.value.xyScaleSegments) : te(s.min < 0 ? s.min : 0, s.max < 0 ? 0 : s.max, R.value.xyScaleSegments), l = s.min < 0 ? Math.abs(s.min) : 0, u = s.max < 0 ? a.top : a.bottom - l / (c.max + l) * a.height, d = a.width / s.maxSeries, ne = c.ticks.map((e) => ({
|
|
1103
|
+
y: a.bottom - a.height * ((e + l) / (c.max + l)),
|
|
1104
|
+
x: a.left - 8,
|
|
1105
1105
|
value: e
|
|
1106
|
-
})),
|
|
1106
|
+
})), f = o.map((e, t) => ({
|
|
1107
1107
|
...e,
|
|
1108
1108
|
shape: "circle",
|
|
1109
1109
|
coordinates: e.values.map((e, t) => ({
|
|
1110
|
-
x:
|
|
1111
|
-
y:
|
|
1110
|
+
x: a.left + d * (t + 1) - d / 2,
|
|
1111
|
+
y: a.bottom - (e + l) / (c.max + l) * a.height,
|
|
1112
1112
|
value: e
|
|
1113
1113
|
}))
|
|
1114
1114
|
})).map((e) => {
|
|
@@ -1120,36 +1120,36 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1120
1120
|
linePath: t.join(" ")
|
|
1121
1121
|
};
|
|
1122
1122
|
});
|
|
1123
|
-
function
|
|
1124
|
-
return
|
|
1123
|
+
function re(e) {
|
|
1124
|
+
return o.map((t) => ({
|
|
1125
1125
|
...t,
|
|
1126
1126
|
value: t.values[e],
|
|
1127
1127
|
absoluteIndex: t.absoluteIndices[e]
|
|
1128
1128
|
})).filter((e) => !L.value.includes(e.id));
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
if (
|
|
1132
|
-
I.value = e,
|
|
1133
|
-
let i =
|
|
1130
|
+
function ie(e, r = "pointer") {
|
|
1131
|
+
if (qr.value && r === "pointer") return;
|
|
1132
|
+
I.value = e, q.value = e, B.value = e, V.value = r;
|
|
1133
|
+
let i = re(e);
|
|
1134
1134
|
Mn.value = {
|
|
1135
1135
|
datapoint: i,
|
|
1136
1136
|
seriesIndex: e,
|
|
1137
1137
|
config: R.value,
|
|
1138
|
-
dataset:
|
|
1138
|
+
dataset: o
|
|
1139
1139
|
};
|
|
1140
|
-
let
|
|
1140
|
+
let a = R.value.tooltipCustomFormat;
|
|
1141
1141
|
if (R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
1142
1142
|
datapoint: i,
|
|
1143
|
-
seriesIndex: e +
|
|
1144
|
-
}),
|
|
1143
|
+
seriesIndex: e + Y.value.start
|
|
1144
|
+
}), n(a) && oe(() => a({
|
|
1145
1145
|
datapoint: i,
|
|
1146
1146
|
seriesIndex: e,
|
|
1147
|
-
series:
|
|
1147
|
+
series: o,
|
|
1148
1148
|
config: R.value
|
|
1149
|
-
}))) Nn.value =
|
|
1149
|
+
}))) Nn.value = a({
|
|
1150
1150
|
datapoint: i,
|
|
1151
1151
|
seriesIndex: e,
|
|
1152
|
-
series:
|
|
1152
|
+
series: o,
|
|
1153
1153
|
config: R.value
|
|
1154
1154
|
});
|
|
1155
1155
|
else {
|
|
@@ -1175,30 +1175,30 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1175
1175
|
}
|
|
1176
1176
|
F.value = !0;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
let t =
|
|
1178
|
+
function ae(e) {
|
|
1179
|
+
let t = re(e);
|
|
1180
1180
|
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
1181
1181
|
datapoint: t,
|
|
1182
|
-
seriesIndex: e +
|
|
1183
|
-
}), I.value = null,
|
|
1182
|
+
seriesIndex: e + Y.value.start
|
|
1183
|
+
}), I.value = null, q.value = null, F.value = !1, B.value = null, V.value = "pointer";
|
|
1184
1184
|
}
|
|
1185
1185
|
function se(e) {
|
|
1186
|
-
let t =
|
|
1186
|
+
let t = re(e);
|
|
1187
1187
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
1188
1188
|
datapoint: t,
|
|
1189
|
-
seriesIndex: e +
|
|
1189
|
+
seriesIndex: e + Y.value.start
|
|
1190
1190
|
}), U("selectDatapoint", t);
|
|
1191
1191
|
}
|
|
1192
1192
|
return {
|
|
1193
|
-
absoluteZero:
|
|
1194
|
-
dataset:
|
|
1195
|
-
legend:
|
|
1196
|
-
drawingArea:
|
|
1197
|
-
extremes:
|
|
1198
|
-
slotSize:
|
|
1199
|
-
yLabels:
|
|
1200
|
-
useTooltip:
|
|
1201
|
-
killTooltip:
|
|
1193
|
+
absoluteZero: u,
|
|
1194
|
+
dataset: f.filter((e) => !L.value.includes(e.id)),
|
|
1195
|
+
legend: f,
|
|
1196
|
+
drawingArea: a,
|
|
1197
|
+
extremes: s,
|
|
1198
|
+
slotSize: d,
|
|
1199
|
+
yLabels: ne,
|
|
1200
|
+
useTooltip: ie,
|
|
1201
|
+
killTooltip: ae,
|
|
1202
1202
|
selectDatapoint: se
|
|
1203
1203
|
};
|
|
1204
1204
|
}), Q = h(() => {
|
|
@@ -1207,102 +1207,102 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1207
1207
|
let e = {
|
|
1208
1208
|
height: K.value.height,
|
|
1209
1209
|
width: K.value.width
|
|
1210
|
-
},
|
|
1210
|
+
}, i = vi();
|
|
1211
1211
|
if (Vn.value) {
|
|
1212
1212
|
let e = Vn.value.getBBox().x;
|
|
1213
|
-
e < 0 && (
|
|
1213
|
+
e < 0 && (i += Math.abs(e));
|
|
1214
1214
|
}
|
|
1215
|
-
let
|
|
1216
|
-
left:
|
|
1215
|
+
let a = {
|
|
1216
|
+
left: i + R.value.xyPaddingLeft,
|
|
1217
1217
|
top: R.value.xyPaddingTop,
|
|
1218
1218
|
right: e.width - R.value.xyPaddingRight,
|
|
1219
1219
|
bottom: e.height - R.value.xyPaddingBottom - xi.value,
|
|
1220
|
-
width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight -
|
|
1220
|
+
width: Math.max(10, e.width - R.value.xyPaddingLeft - R.value.xyPaddingRight - i),
|
|
1221
1221
|
height: Math.max(10, e.height - R.value.xyPaddingTop - R.value.xyPaddingBottom - xi.value)
|
|
1222
|
-
},
|
|
1223
|
-
j(W.value.dataset) && (
|
|
1224
|
-
values: W.value.dataset.slice(
|
|
1222
|
+
}, o = [];
|
|
1223
|
+
j(W.value.dataset) && (o = [{
|
|
1224
|
+
values: W.value.dataset.slice(Y.value.start, Y.value.end),
|
|
1225
1225
|
absoluteValues: W.value.dataset,
|
|
1226
|
-
absoluteIndices: W.value.dataset.map((e, t) => t).slice(
|
|
1226
|
+
absoluteIndices: W.value.dataset.map((e, t) => t).slice(Y.value.start, Y.value.end),
|
|
1227
1227
|
name: R.value.title,
|
|
1228
|
-
color: _r.value[R.value.paletteStartIndex] ||
|
|
1228
|
+
color: _r.value[R.value.paletteStartIndex] || r[R.value.paletteStartIndex],
|
|
1229
1229
|
id: "bar_0"
|
|
1230
|
-
}]), Ye(W.value.dataset) && (
|
|
1230
|
+
}]), Ye(W.value.dataset) && (o = W.value.dataset.map((e, t) => ({
|
|
1231
1231
|
...e,
|
|
1232
1232
|
values: e.VALUE || e.DATA || e.SERIE || e.SERIES || e.VALUES || e.NUM || 0,
|
|
1233
1233
|
name: e.NAME || e.DESCRIPTION || e.TITLE || e.LABEL || `Serie ${t}`,
|
|
1234
1234
|
id: `bar_${t}`
|
|
1235
1235
|
})).map((e, t) => ({
|
|
1236
1236
|
...e,
|
|
1237
|
-
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] ||
|
|
1238
|
-
values: e.values.slice(
|
|
1237
|
+
color: e.COLOR ? ee(e.COLOR) : _r.value[t + R.value.paletteStartIndex] || r[t + R.value.paletteStartIndex] || r[(t + R.value.paletteStartIndex) % r.length],
|
|
1238
|
+
values: e.values.slice(Y.value.start, Y.value.end),
|
|
1239
1239
|
absoluteValues: e.values,
|
|
1240
|
-
absoluteIndices: e.values.map((e, t) => t).slice(
|
|
1240
|
+
absoluteIndices: e.values.map((e, t) => t).slice(Y.value.start, Y.value.end)
|
|
1241
1241
|
})));
|
|
1242
|
-
let
|
|
1243
|
-
max: Math.max(...
|
|
1244
|
-
min: Math.min(...
|
|
1245
|
-
maxSeries: Math.max(...
|
|
1246
|
-
},
|
|
1247
|
-
y:
|
|
1248
|
-
x:
|
|
1242
|
+
let s = {
|
|
1243
|
+
max: Math.max(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) < 0 ? 0 : Math.max(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 1,
|
|
1244
|
+
min: Math.min(...o.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values)) ?? 0,
|
|
1245
|
+
maxSeries: Math.max(...o.filter((e) => !L.value.includes(e.id)).map((e) => e.values.length)) ?? 0
|
|
1246
|
+
}, c = s.min === s.max ? te(Math.min(s.min, 0), s.min === 0 ? 1 : Math.max(s.min, 0), R.value.xyScaleSegments) : te(s.min < 0 ? s.min : 0, s.max, R.value.xyScaleSegments), l = c.min < 0 ? Math.abs(c.min) : 0, u = a.bottom - l / (c.max + l) * a.height, d = a.width / s.maxSeries, ne = c.ticks.map((e) => ({
|
|
1247
|
+
y: a.bottom - a.height * ((e + l) / (c.max + l)),
|
|
1248
|
+
x: a.left - 8,
|
|
1249
1249
|
value: e
|
|
1250
|
-
})),
|
|
1250
|
+
})), f = o.map((e, t) => ({
|
|
1251
1251
|
...e,
|
|
1252
1252
|
shape: "square",
|
|
1253
1253
|
coordinates: e.values.map((e, n) => {
|
|
1254
|
-
let r = (e +
|
|
1254
|
+
let r = (e + l) / (s.max + l) * a.height, i = Math.abs(e) / Math.abs(s.min) * (a.height - u), ee = l / (s.max + l) * a.height, c = d / o.filter((e) => !L.value.includes(e.id)).length - R.value.barGap / o.filter((e) => !L.value.includes(e.id)).length;
|
|
1255
1255
|
return {
|
|
1256
|
-
x:
|
|
1257
|
-
y: e > 0 ?
|
|
1258
|
-
height: e > 0 ? r - ee :
|
|
1256
|
+
x: a.left + d * n + c * t + R.value.barGap / 2,
|
|
1257
|
+
y: e > 0 ? a.bottom - r : u,
|
|
1258
|
+
height: e > 0 ? r - ee : i,
|
|
1259
1259
|
value: e,
|
|
1260
|
-
width:
|
|
1260
|
+
width: c
|
|
1261
1261
|
};
|
|
1262
1262
|
})
|
|
1263
|
-
})),
|
|
1263
|
+
})), re = o.filter((e) => !L.value.includes(e.id)).map((e, t) => ({
|
|
1264
1264
|
...e,
|
|
1265
1265
|
coordinates: e.values.map((e, n) => {
|
|
1266
|
-
let r = (e +
|
|
1266
|
+
let r = (e + l) / (s.max + l) * a.height, i = Math.abs(e) / (s.max + l) * a.height, ee = l / (s.max + l) * a.height, c = d / o.filter((e) => !L.value.includes(e.id)).length - R.value.barGap / o.filter((e) => !L.value.includes(e.id)).length;
|
|
1267
1267
|
return {
|
|
1268
|
-
x:
|
|
1269
|
-
y: e > 0 ?
|
|
1270
|
-
height: e > 0 ? r - ee :
|
|
1268
|
+
x: a.left + d * n + c * t + R.value.barGap / 2,
|
|
1269
|
+
y: e > 0 ? a.bottom - r : u,
|
|
1270
|
+
height: e > 0 ? r - ee : i,
|
|
1271
1271
|
value: e,
|
|
1272
|
-
width:
|
|
1272
|
+
width: c
|
|
1273
1273
|
};
|
|
1274
1274
|
})
|
|
1275
1275
|
}));
|
|
1276
|
-
function
|
|
1277
|
-
return
|
|
1276
|
+
function ie(e) {
|
|
1277
|
+
return o.map((t) => ({
|
|
1278
1278
|
...t,
|
|
1279
1279
|
value: t.values[e],
|
|
1280
1280
|
absoluteIndex: t.absoluteIndices[e]
|
|
1281
1281
|
})).filter((e) => !L.value.includes(e.id));
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
if (
|
|
1285
|
-
I.value = e,
|
|
1286
|
-
let i =
|
|
1283
|
+
function ae(e, r = "pointer") {
|
|
1284
|
+
if (qr.value && r === "pointer") return;
|
|
1285
|
+
I.value = e, q.value = e, B.value = e, V.value = r;
|
|
1286
|
+
let i = ie(e);
|
|
1287
1287
|
Mn.value = {
|
|
1288
1288
|
datapoint: i,
|
|
1289
1289
|
seriesIndex: e,
|
|
1290
1290
|
config: R.value,
|
|
1291
|
-
dataset:
|
|
1291
|
+
dataset: o
|
|
1292
1292
|
};
|
|
1293
|
-
let
|
|
1293
|
+
let a = R.value.tooltipCustomFormat;
|
|
1294
1294
|
if (R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
1295
1295
|
datapoint: i,
|
|
1296
|
-
seriesIndex: e +
|
|
1297
|
-
}),
|
|
1296
|
+
seriesIndex: e + Y.value.start
|
|
1297
|
+
}), n(a) && oe(() => a({
|
|
1298
1298
|
datapoint: i,
|
|
1299
1299
|
seriesIndex: e,
|
|
1300
|
-
series:
|
|
1300
|
+
series: o,
|
|
1301
1301
|
config: R.value
|
|
1302
|
-
}))) Nn.value =
|
|
1302
|
+
}))) Nn.value = a({
|
|
1303
1303
|
point: i,
|
|
1304
1304
|
seriesIndex: e,
|
|
1305
|
-
series:
|
|
1305
|
+
series: o,
|
|
1306
1306
|
config: R.value
|
|
1307
1307
|
});
|
|
1308
1308
|
else {
|
|
@@ -1329,41 +1329,41 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1329
1329
|
F.value = !0;
|
|
1330
1330
|
}
|
|
1331
1331
|
function se(e) {
|
|
1332
|
-
let t =
|
|
1332
|
+
let t = ie(e);
|
|
1333
1333
|
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
1334
1334
|
datapoint: t,
|
|
1335
|
-
seriesIndex: e +
|
|
1336
|
-
}), F.value = !1, I.value = null,
|
|
1335
|
+
seriesIndex: e + Y.value.start
|
|
1336
|
+
}), F.value = !1, I.value = null, q.value = null, B.value = null, V.value = "pointer";
|
|
1337
1337
|
}
|
|
1338
1338
|
function ce(e) {
|
|
1339
|
-
let t =
|
|
1339
|
+
let t = ie(e);
|
|
1340
1340
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
1341
1341
|
datapoint: t,
|
|
1342
|
-
seriesIndex: e +
|
|
1342
|
+
seriesIndex: e + Y.value.start
|
|
1343
1343
|
}), U("selectDatapoint", t);
|
|
1344
1344
|
}
|
|
1345
1345
|
return {
|
|
1346
|
-
absoluteZero:
|
|
1347
|
-
dataset:
|
|
1348
|
-
absoluteDataset:
|
|
1349
|
-
legend:
|
|
1350
|
-
drawingArea:
|
|
1351
|
-
extremes:
|
|
1352
|
-
slotSize:
|
|
1353
|
-
yLabels:
|
|
1354
|
-
useTooltip:
|
|
1346
|
+
absoluteZero: u,
|
|
1347
|
+
dataset: re.filter((e) => !L.value.includes(e.id)),
|
|
1348
|
+
absoluteDataset: re,
|
|
1349
|
+
legend: f,
|
|
1350
|
+
drawingArea: a,
|
|
1351
|
+
extremes: s,
|
|
1352
|
+
slotSize: d,
|
|
1353
|
+
yLabels: ne,
|
|
1354
|
+
useTooltip: ae,
|
|
1355
1355
|
killTooltip: se,
|
|
1356
1356
|
selectDatapoint: ce
|
|
1357
1357
|
};
|
|
1358
1358
|
}), Si = h(() => G.value === A.LINE ? Z.value?.drawingArea ?? null : G.value === A.BAR ? Q.value?.drawingArea ?? null : null), Ci = h(() => G.value === A.LINE ? Number(Z.value?.slotSize ?? 0) : G.value === A.BAR ? Number(Q.value?.slotSize ?? 0) : 0), wi = h(() => G.value === A.LINE ? Number(Z.value?.extremes?.maxSeries ?? 0) : G.value === A.BAR ? Number(Q.value?.extremes?.maxSeries ?? 0) : 0), Ti = h(() => {
|
|
1359
1359
|
let e = Si.value;
|
|
1360
|
-
return !e || !
|
|
1361
|
-
x: Math.min(
|
|
1360
|
+
return !e || !qr.value || Yr.value == null || Xr.value == null ? null : {
|
|
1361
|
+
x: Math.min(Yr.value, Xr.value),
|
|
1362
1362
|
y: e.top,
|
|
1363
|
-
width: Math.abs(
|
|
1363
|
+
width: Math.abs(Xr.value - Yr.value),
|
|
1364
1364
|
height: e.height
|
|
1365
1365
|
};
|
|
1366
|
-
}), Ei = h(() => !
|
|
1366
|
+
}), Ei = h(() => !Wr.value || !br.value ? !1 : Number(Y.value.start) !== 0 || Number(Y.value.end) !== Number(si()));
|
|
1367
1367
|
function Di(e) {
|
|
1368
1368
|
let t = H.value;
|
|
1369
1369
|
if (!t) return null;
|
|
@@ -1386,10 +1386,10 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1386
1386
|
height: n.height
|
|
1387
1387
|
}, i = Math.min(n.width / r.width, n.height / r.height);
|
|
1388
1388
|
if (!Number.isFinite(i) || i <= 0) return null;
|
|
1389
|
-
let a = r.width * i, o = r.height * i, s = (n.width - a) / 2,
|
|
1389
|
+
let a = r.width * i, o = r.height * i, s = (n.width - a) / 2, ee = (n.height - o) / 2;
|
|
1390
1390
|
return {
|
|
1391
1391
|
x: (e.clientX - n.left - s) / i + r.x,
|
|
1392
|
-
y: (e.clientY - n.top -
|
|
1392
|
+
y: (e.clientY - n.top - ee) / i + r.y
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
1395
|
function Oi(e) {
|
|
@@ -1397,24 +1397,24 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1397
1397
|
return t ? Math.min(Math.max(e, t.left), t.right) : e;
|
|
1398
1398
|
}
|
|
1399
1399
|
function ki() {
|
|
1400
|
-
B.value = null, V.value = "pointer", F.value = !1, I.value = null,
|
|
1400
|
+
B.value = null, V.value = "pointer", F.value = !1, I.value = null, q.value = null;
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ai(e) {
|
|
1403
|
-
let t = e?.pointerId == null ?
|
|
1404
|
-
t != null && H.value?.hasPointerCapture?.(t) && H.value.releasePointerCapture(t),
|
|
1403
|
+
let t = e?.pointerId == null ? Zr.value : e.pointerId;
|
|
1404
|
+
t != null && H.value?.hasPointerCapture?.(t) && H.value.releasePointerCapture(t), qr.value = !1, Yr.value = null, Xr.value = null, Zr.value = null;
|
|
1405
1405
|
}
|
|
1406
1406
|
function ji() {
|
|
1407
|
-
|
|
1408
|
-
|
|
1407
|
+
Qr.value = !0, setTimeout(() => {
|
|
1408
|
+
Qr.value = !1;
|
|
1409
1409
|
}, 0);
|
|
1410
1410
|
}
|
|
1411
1411
|
function Mi(e) {
|
|
1412
|
-
|
|
1412
|
+
Qr.value && (Qr.value = !1, e.preventDefault(), e.stopPropagation());
|
|
1413
1413
|
}
|
|
1414
1414
|
function Ni(e) {
|
|
1415
|
-
if (!
|
|
1416
|
-
let t = Date.now(), n = e.pointerType || "mouse", r =
|
|
1417
|
-
return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? (
|
|
1415
|
+
if (!X.value || !Ei.value || !e) return !1;
|
|
1416
|
+
let t = Date.now(), n = e.pointerType || "mouse", r = $r.value, i = n === "touch" ? 450 : 350, a = n === "touch" ? 28 : 10, o = Math.hypot(e.clientX - r.x, e.clientY - r.y);
|
|
1417
|
+
return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? ($r.value = {
|
|
1418
1418
|
time: 0,
|
|
1419
1419
|
x: 0,
|
|
1420
1420
|
y: 0,
|
|
@@ -1422,7 +1422,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1422
1422
|
}, ji(), Ai(e), ki(), pi({
|
|
1423
1423
|
applyControlledZoom: !1,
|
|
1424
1424
|
publish: !0
|
|
1425
|
-
}), !0) : (
|
|
1425
|
+
}), !0) : ($r.value = {
|
|
1426
1426
|
time: t,
|
|
1427
1427
|
x: e.clientX,
|
|
1428
1428
|
y: e.clientY,
|
|
@@ -1440,8 +1440,8 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1440
1440
|
if (n == null || r == null) return null;
|
|
1441
1441
|
let i = Math.min(n, r), a = Math.max(n, r);
|
|
1442
1442
|
return a <= i ? null : {
|
|
1443
|
-
start: Number(
|
|
1444
|
-
end: Number(
|
|
1443
|
+
start: Number(Y.value.start) + i,
|
|
1444
|
+
end: Number(Y.value.start) + a + 1
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
1447
|
function Ii(e) {
|
|
@@ -1455,23 +1455,23 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1455
1455
|
}), t) : null;
|
|
1456
1456
|
}
|
|
1457
1457
|
function Li(e) {
|
|
1458
|
-
if (!
|
|
1458
|
+
if (!X.value || Ji.value || e.button !== void 0 && e.button !== 0 || Zr.value != null && e.pointerId !== Zr.value) return;
|
|
1459
1459
|
let t = Si.value, n = Di(e);
|
|
1460
1460
|
if (!t || !n || n.x < t.left || n.x > t.right || n.y < t.top || n.y > t.bottom || wi.value <= 1) return;
|
|
1461
|
-
|
|
1461
|
+
Jr.value = !0, H.value?.focus?.({ preventScroll: !0 }), ki();
|
|
1462
1462
|
let r = Oi(n.x);
|
|
1463
|
-
|
|
1463
|
+
Zr.value = e.pointerId, qr.value = !0, Yr.value = r, Xr.value = r;
|
|
1464
1464
|
}
|
|
1465
1465
|
function Ri(e) {
|
|
1466
|
-
if (!
|
|
1466
|
+
if (!X.value || !qr.value || Zr.value != null && e.pointerId !== Zr.value) return;
|
|
1467
1467
|
let t = Di(e);
|
|
1468
|
-
t && (
|
|
1468
|
+
t && (Xr.value = Oi(t.x), ki(), Yr.value != null && Math.abs(Xr.value - Yr.value) >= 2 && !H.value?.hasPointerCapture?.(e.pointerId) && H.value?.setPointerCapture?.(e.pointerId));
|
|
1469
1469
|
}
|
|
1470
1470
|
function zi(e) {
|
|
1471
|
-
if (!
|
|
1471
|
+
if (!X.value || !qr.value || Zr.value != null && e.pointerId !== Zr.value) return;
|
|
1472
1472
|
let t = Di(e);
|
|
1473
|
-
t && (
|
|
1474
|
-
let n =
|
|
1473
|
+
t && (Xr.value = Oi(t.x));
|
|
1474
|
+
let n = Yr.value, r = Xr.value, i = Si.value;
|
|
1475
1475
|
if ((n == null || r == null ? 0 : Math.abs(r - n)) < Math.max(4, Number(i?.width ?? 0) * .01)) {
|
|
1476
1476
|
if (Ni(e)) return;
|
|
1477
1477
|
Ai(e);
|
|
@@ -1482,7 +1482,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1482
1482
|
Ai(e);
|
|
1483
1483
|
return;
|
|
1484
1484
|
}
|
|
1485
|
-
Ai(e), Ii(a) && (
|
|
1485
|
+
Ai(e), Ii(a) && ($r.value = {
|
|
1486
1486
|
time: 0,
|
|
1487
1487
|
x: 0,
|
|
1488
1488
|
y: 0,
|
|
@@ -1516,8 +1516,8 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1516
1516
|
values: R.value.xyPeriods,
|
|
1517
1517
|
maxDatapoints: W.value.maxSeriesLength,
|
|
1518
1518
|
formatter: R.value.datetimeFormatter,
|
|
1519
|
-
start:
|
|
1520
|
-
end:
|
|
1519
|
+
start: Y.value.start,
|
|
1520
|
+
end: Y.value.end
|
|
1521
1521
|
});
|
|
1522
1522
|
e === Ui && ($.value = t);
|
|
1523
1523
|
})();
|
|
@@ -1557,7 +1557,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1557
1557
|
Se({
|
|
1558
1558
|
timeLabelsEls: Vn,
|
|
1559
1559
|
timeLabels: $,
|
|
1560
|
-
slicer:
|
|
1560
|
+
slicer: Y,
|
|
1561
1561
|
configRef: R,
|
|
1562
1562
|
rotationPath: ["xyPeriodLabelsRotation"],
|
|
1563
1563
|
autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
|
|
@@ -1566,7 +1566,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1566
1566
|
height: Qi.value,
|
|
1567
1567
|
width: Zi.value
|
|
1568
1568
|
});
|
|
1569
|
-
let $i = h(() => R.value.backgroundColor), ea = h(() => G.value === A.DONUT ?
|
|
1569
|
+
let $i = h(() => R.value.backgroundColor), ea = h(() => G.value === A.DONUT ? J.value.legend : G.value === A.LINE ? Z.value.legend : Q.value.legend), ta = h(() => ({
|
|
1570
1570
|
show: R.value.showLegend,
|
|
1571
1571
|
bold: !1,
|
|
1572
1572
|
backgroundColor: R.value.backgroundColor,
|
|
@@ -1595,7 +1595,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1595
1595
|
dataset: {
|
|
1596
1596
|
line: Z.value,
|
|
1597
1597
|
bar: Q.value,
|
|
1598
|
-
donut:
|
|
1598
|
+
donut: J.value
|
|
1599
1599
|
}
|
|
1600
1600
|
}), !R.value.userOptionsCallbacks.altCopy) {
|
|
1601
1601
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
@@ -1606,41 +1606,41 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1606
1606
|
dataset: {
|
|
1607
1607
|
line: Z.value,
|
|
1608
1608
|
bar: Q.value,
|
|
1609
|
-
donut:
|
|
1609
|
+
donut: J.value
|
|
1610
1610
|
}
|
|
1611
1611
|
}));
|
|
1612
1612
|
}
|
|
1613
1613
|
function oa(e, t) {
|
|
1614
1614
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
|
|
1615
1615
|
}
|
|
1616
|
-
let sa = h(() => G.value === A.DONUT ?
|
|
1616
|
+
let sa = h(() => G.value === A.DONUT ? J.value?.chart?.length ?? 0 : G.value === A.LINE ? Z.value?.extremes?.maxSeries ?? 0 : G.value === A.BAR ? Q.value?.extremes?.maxSeries ?? 0 : 0);
|
|
1617
1617
|
function ca() {
|
|
1618
1618
|
B.value = null, ir.value = !0;
|
|
1619
1619
|
}
|
|
1620
1620
|
function la() {
|
|
1621
|
-
|
|
1621
|
+
Jr.value = !1, B.value = null, V.value = "pointer", F.value = !1, I.value = null, q.value = null, ir.value = !1;
|
|
1622
1622
|
}
|
|
1623
1623
|
function ua(e) {
|
|
1624
|
-
if (!H.value || Ji.value || document.activeElement !== H.value || (
|
|
1624
|
+
if (!H.value || Ji.value || document.activeElement !== H.value || (Jr.value = !1, !sa.value)) return;
|
|
1625
1625
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1626
1626
|
if (!t && !n && !r && !i) return;
|
|
1627
1627
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1628
|
-
if (
|
|
1628
|
+
if (X.value && (Ei.value || qr.value)) {
|
|
1629
1629
|
Ai(), ki(), pi({
|
|
1630
1630
|
applyControlledZoom: !1,
|
|
1631
1631
|
publish: !0
|
|
1632
1632
|
});
|
|
1633
1633
|
return;
|
|
1634
1634
|
}
|
|
1635
|
-
B.value = null, V.value = "pointer", F.value = !1, I.value = null,
|
|
1635
|
+
B.value = null, V.value = "pointer", F.value = !1, I.value = null, q.value = null;
|
|
1636
1636
|
return;
|
|
1637
1637
|
}
|
|
1638
1638
|
if (r) {
|
|
1639
1639
|
if (B.value === null) return;
|
|
1640
1640
|
if (G.value === A.DONUT) {
|
|
1641
|
-
let e =
|
|
1641
|
+
let e = J.value?.chart?.[B.value];
|
|
1642
1642
|
if (!e) return;
|
|
1643
|
-
|
|
1643
|
+
J.value.selectDatapoint({
|
|
1644
1644
|
datapoint: e,
|
|
1645
1645
|
seriesIndex: B.value
|
|
1646
1646
|
});
|
|
@@ -1656,11 +1656,11 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1656
1656
|
}
|
|
1657
1657
|
return;
|
|
1658
1658
|
}
|
|
1659
|
-
let a = B.value, o =
|
|
1660
|
-
if (s ? n ? (a += 1, a >= sa.value && (a = 0)) : t && (--a, a < 0 && (a = sa.value - 1)) :
|
|
1661
|
-
let e =
|
|
1659
|
+
let a = B.value, o = q.value, s = a !== null && a >= 0 && a < sa.value, ee = o !== null && o >= 0 && o < sa.value;
|
|
1660
|
+
if (s ? n ? (a += 1, a >= sa.value && (a = 0)) : t && (--a, a < 0 && (a = sa.value - 1)) : ee ? (a = n ? o + 1 : o - 1, a >= sa.value && (a = 0), a < 0 && (a = sa.value - 1)) : a = n ? 0 : sa.value - 1, G.value === A.DONUT) {
|
|
1661
|
+
let e = J.value?.chart?.[a];
|
|
1662
1662
|
if (!e) return;
|
|
1663
|
-
da(a),
|
|
1663
|
+
da(a), J.value.useTooltip({
|
|
1664
1664
|
datapoint: e,
|
|
1665
1665
|
seriesIndex: a,
|
|
1666
1666
|
triggerMode: "keyboard"
|
|
@@ -1677,9 +1677,9 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1677
1677
|
if (!Number.isFinite(e) || !H.value) return;
|
|
1678
1678
|
let t = 0, n = 0;
|
|
1679
1679
|
if (G.value === A.DONUT) {
|
|
1680
|
-
let r =
|
|
1680
|
+
let r = J.value?.chart?.[e];
|
|
1681
1681
|
if (!r) return;
|
|
1682
|
-
t = f(r, !0).x, n =
|
|
1682
|
+
t = f(r, !0).x, n = ae(r);
|
|
1683
1683
|
}
|
|
1684
1684
|
if (G.value === A.LINE) {
|
|
1685
1685
|
let r = Z.value?.drawingArea, i = Z.value?.slotSize;
|
|
@@ -1704,9 +1704,9 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1704
1704
|
"Value",
|
|
1705
1705
|
"Percentage"
|
|
1706
1706
|
],
|
|
1707
|
-
rows: (
|
|
1708
|
-
let n =
|
|
1709
|
-
v: e.value /
|
|
1707
|
+
rows: (J.value?.dataset ?? []).map((e) => {
|
|
1708
|
+
let n = J.value?.total ? t({
|
|
1709
|
+
v: e.value / J.value.total * 100,
|
|
1710
1710
|
s: "%",
|
|
1711
1711
|
r: R.value.dataLabelRoundingPercentage
|
|
1712
1712
|
}) : "0%";
|
|
@@ -1726,7 +1726,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1726
1726
|
let e = G.value === A.LINE ? Z.value?.dataset ?? [] : Q.value?.dataset ?? [], n = G.value === A.LINE ? Z.value?.extremes?.maxSeries ?? 0 : Q.value?.extremes?.maxSeries ?? 0;
|
|
1727
1727
|
return {
|
|
1728
1728
|
headers: ["Index", ...e.map((e) => e.name)],
|
|
1729
|
-
rows: Array.from({ length: n }, (n, r) => [$.value?.[r +
|
|
1729
|
+
rows: Array.from({ length: n }, (n, r) => [$.value?.[r + Y.value.start]?.text ?? String(r + Y.value.start), ...e.map((e) => {
|
|
1730
1730
|
let n = e.values?.[r];
|
|
1731
1731
|
return p(R.value.formatter, n, t({
|
|
1732
1732
|
p: R.value.valuePrefix,
|
|
@@ -1756,7 +1756,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1756
1756
|
publish: !0
|
|
1757
1757
|
}),
|
|
1758
1758
|
setZoomState: di
|
|
1759
|
-
}), (e,
|
|
1759
|
+
}), (e, r) => yr.value ? (C(), _("div", {
|
|
1760
1760
|
key: 0,
|
|
1761
1761
|
id: `${G.value}_${P.value}`,
|
|
1762
1762
|
ref_key: "quickChart",
|
|
@@ -1767,8 +1767,8 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1767
1767
|
"vue-data-ui-wrapper-fullscreen": Gi.value
|
|
1768
1768
|
}),
|
|
1769
1769
|
style: S(`background:${R.value.backgroundColor};color:${R.value.color};font-family:${R.value.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
|
|
1770
|
-
onMouseenter:
|
|
1771
|
-
onMouseleave:
|
|
1770
|
+
onMouseenter: r[1] ||= () => pr(!0),
|
|
1771
|
+
onMouseleave: r[2] ||= () => pr(!1)
|
|
1772
1772
|
}, [
|
|
1773
1773
|
v("div", {
|
|
1774
1774
|
id: `chart-instructions-${P.value}`,
|
|
@@ -1954,19 +1954,19 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
1954
1954
|
ref: H,
|
|
1955
1955
|
xmlns: O(se),
|
|
1956
1956
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1957
|
-
viewBox:
|
|
1957
|
+
viewBox: jr.value,
|
|
1958
1958
|
style: S({
|
|
1959
1959
|
maxWidth: "100%",
|
|
1960
1960
|
overflow: "visible",
|
|
1961
1961
|
background: "transparent",
|
|
1962
1962
|
color: R.value.color,
|
|
1963
|
-
cursor:
|
|
1964
|
-
touchAction:
|
|
1965
|
-
userSelect:
|
|
1963
|
+
cursor: X.value ? qr.value ? "col-resize" : "crosshair" : void 0,
|
|
1964
|
+
touchAction: X.value ? "pan-y" : void 0,
|
|
1965
|
+
userSelect: X.value ? "none" : void 0
|
|
1966
1966
|
}),
|
|
1967
1967
|
class: b({
|
|
1968
1968
|
"vue-data-ui-no-transition": !O(z),
|
|
1969
|
-
"vue-ui-quick-chart-zoom-pointer-focus":
|
|
1969
|
+
"vue-ui-quick-chart-zoom-pointer-focus": X.value && Jr.value
|
|
1970
1970
|
}),
|
|
1971
1971
|
tabindex: "0",
|
|
1972
1972
|
onFocus: ca,
|
|
@@ -2013,7 +2013,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2013
2013
|
in: "SourceGraphic",
|
|
2014
2014
|
stdDeviation: 2,
|
|
2015
2015
|
id: `blur_std_${P.value}`
|
|
2016
|
-
}, null, 8, dt),
|
|
2016
|
+
}, null, 8, dt), r[3] ||= v("feColorMatrix", {
|
|
2017
2017
|
type: "saturate",
|
|
2018
2018
|
values: "0"
|
|
2019
2019
|
}, null, -1)], 8, ut), v("filter", {
|
|
@@ -2027,69 +2027,69 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2027
2027
|
"flood-color": R.value.donutShadowColor
|
|
2028
2028
|
}, null, 8, pt)], 8, ft)]),
|
|
2029
2029
|
G.value === A.DONUT ? (C(), _(m, { key: 3 }, [
|
|
2030
|
-
R.value.showDataLabels ? (C(), _("g", mt, [(C(!0), _(m, null, T(
|
|
2030
|
+
R.value.showDataLabels ? (C(), _("g", mt, [(C(!0), _(m, null, T(J.value.chart, (e, t) => (C(), _(m, null, [J.value.isArcBigEnough(e) ? (C(), _("path", {
|
|
2031
2031
|
key: 0,
|
|
2032
|
-
d: O(
|
|
2032
|
+
d: O(re)(e, {
|
|
2033
2033
|
x: K.value.width / 2,
|
|
2034
2034
|
y: K.value.height / 2
|
|
2035
|
-
}, 16, 16, !1, !1, K.value.height *
|
|
2035
|
+
}, 16, 16, !1, !1, K.value.height * Vr.value, 12, R.value.donutCurvedMarkers),
|
|
2036
2036
|
stroke: e.color,
|
|
2037
2037
|
"stroke-width": R.value.donutLabelMarkerStrokeWidth,
|
|
2038
2038
|
"stroke-linecap": "round",
|
|
2039
2039
|
"stroke-linejoin": "round",
|
|
2040
2040
|
fill: "none",
|
|
2041
|
-
filter:
|
|
2041
|
+
filter: Nr(e.id)
|
|
2042
2042
|
}, null, 8, ht)) : g("", !0)], 64))), 256))])) : g("", !0),
|
|
2043
2043
|
v("circle", {
|
|
2044
|
-
cx:
|
|
2045
|
-
cy:
|
|
2046
|
-
r:
|
|
2044
|
+
cx: J.value.cx,
|
|
2045
|
+
cy: J.value.cy,
|
|
2046
|
+
r: J.value.radius,
|
|
2047
2047
|
fill: R.value.backgroundColor,
|
|
2048
2048
|
filter: R.value.donutUseShadow ? `url(#shadow_${P.value})` : ""
|
|
2049
2049
|
}, null, 8, gt),
|
|
2050
|
-
v("g", _t, [(C(!0), _(m, null, T(
|
|
2050
|
+
v("g", _t, [(C(!0), _(m, null, T(J.value.chart, (e, t) => (C(), _("path", {
|
|
2051
2051
|
d: e.arcSlice,
|
|
2052
2052
|
fill: e.color,
|
|
2053
2053
|
stroke: R.value.donutStroke || R.value.backgroundColor,
|
|
2054
2054
|
"stroke-width": R.value.donutStrokeWidth,
|
|
2055
|
-
filter:
|
|
2056
|
-
}, null, 8, vt))), 256)), (C(!0), _(m, null, T(
|
|
2055
|
+
filter: Nr(e.id)
|
|
2056
|
+
}, null, 8, vt))), 256)), (C(!0), _(m, null, T(J.value.chart, (e, t) => (C(), _("path", {
|
|
2057
2057
|
d: e.arcSlice,
|
|
2058
2058
|
fill: "transparent",
|
|
2059
|
-
onMouseenter: (n) =>
|
|
2059
|
+
onMouseenter: (n) => J.value.useTooltip({
|
|
2060
2060
|
datapoint: e,
|
|
2061
2061
|
seriesIndex: t,
|
|
2062
2062
|
triggerMode: "pointer"
|
|
2063
2063
|
}),
|
|
2064
|
-
onMouseout: (n) =>
|
|
2064
|
+
onMouseout: (n) => J.value.killTooltip({
|
|
2065
2065
|
datapoint: e,
|
|
2066
2066
|
seriesIndex: t
|
|
2067
2067
|
}),
|
|
2068
|
-
onClick: (n) =>
|
|
2068
|
+
onClick: (n) => J.value.selectDatapoint({
|
|
2069
2069
|
datapoint: e,
|
|
2070
2070
|
seriesIndex: t
|
|
2071
2071
|
})
|
|
2072
2072
|
}, null, 40, yt))), 256))]),
|
|
2073
|
-
R.value.showDataLabels ? (C(), _("g", bt, [(C(!0), _(m, null, T(
|
|
2074
|
-
|
|
2073
|
+
R.value.showDataLabels ? (C(), _("g", bt, [(C(!0), _(m, null, T(J.value.chart, (e, n) => (C(), _(m, null, [
|
|
2074
|
+
J.value.isArcBigEnough(e) ? (C(), _("circle", {
|
|
2075
2075
|
key: 0,
|
|
2076
2076
|
cx: O(f)(e).x,
|
|
2077
|
-
cy: O(
|
|
2077
|
+
cy: O(ae)(e) - 3.7,
|
|
2078
2078
|
fill: e.color,
|
|
2079
2079
|
stroke: R.value.backgroundColor,
|
|
2080
2080
|
"stroke-width": 1,
|
|
2081
2081
|
r: 3,
|
|
2082
|
-
filter:
|
|
2082
|
+
filter: Nr(e.id)
|
|
2083
2083
|
}, null, 8, xt)) : g("", !0),
|
|
2084
|
-
|
|
2084
|
+
J.value.isArcBigEnough(e) ? (C(), _("text", {
|
|
2085
2085
|
key: 1,
|
|
2086
2086
|
"text-anchor": O(f)(e, !0, 20).anchor,
|
|
2087
2087
|
x: O(f)(e, !0).x,
|
|
2088
|
-
y: O(
|
|
2088
|
+
y: O(ae)(e),
|
|
2089
2089
|
fill: R.value.color,
|
|
2090
2090
|
"font-size": R.value.dataLabelFontSize,
|
|
2091
|
-
filter:
|
|
2092
|
-
}, D(
|
|
2091
|
+
filter: Nr(e.id)
|
|
2092
|
+
}, D(J.value.displayArcPercentage(e, J.value.chart)) + " (" + D(O(p)(R.value.formatter, e.value, O(t)({
|
|
2093
2093
|
p: R.value.valuePrefix,
|
|
2094
2094
|
v: e.value,
|
|
2095
2095
|
s: R.value.valueSuffix,
|
|
@@ -2098,31 +2098,31 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2098
2098
|
datapoint: e,
|
|
2099
2099
|
seriesIndex: n
|
|
2100
2100
|
})) + ") ", 9, St)) : g("", !0),
|
|
2101
|
-
|
|
2101
|
+
J.value.isArcBigEnough(e, !0, 20) ? (C(), _("text", {
|
|
2102
2102
|
key: 2,
|
|
2103
2103
|
"text-anchor": O(f)(e).anchor,
|
|
2104
2104
|
x: O(f)(e, !0).x,
|
|
2105
|
-
y: O(
|
|
2105
|
+
y: O(ae)(e) + R.value.dataLabelFontSize,
|
|
2106
2106
|
fill: R.value.color,
|
|
2107
2107
|
"font-size": R.value.dataLabelFontSize,
|
|
2108
|
-
filter:
|
|
2108
|
+
filter: Nr(e.id)
|
|
2109
2109
|
}, D(e.name), 9, Ct)) : g("", !0)
|
|
2110
2110
|
], 64))), 256))])) : g("", !0),
|
|
2111
2111
|
R.value.donutShowTotal ? (C(), _("g", wt, [v("text", {
|
|
2112
2112
|
"text-anchor": "middle",
|
|
2113
|
-
x:
|
|
2114
|
-
y:
|
|
2113
|
+
x: J.value.drawingArea.centerX,
|
|
2114
|
+
y: J.value.drawingArea.centerY - R.value.donutTotalLabelFontSize / 2,
|
|
2115
2115
|
"font-size": R.value.donutTotalLabelFontSize,
|
|
2116
2116
|
fill: R.value.color
|
|
2117
2117
|
}, D(R.value.donutTotalLabelText), 9, Tt), v("text", {
|
|
2118
2118
|
"text-anchor": "middle",
|
|
2119
|
-
x:
|
|
2120
|
-
y:
|
|
2119
|
+
x: J.value.drawingArea.centerX,
|
|
2120
|
+
y: J.value.drawingArea.centerY + R.value.donutTotalLabelFontSize,
|
|
2121
2121
|
"font-size": R.value.donutTotalLabelFontSize,
|
|
2122
2122
|
fill: R.value.color
|
|
2123
2123
|
}, D(O(t)({
|
|
2124
2124
|
p: R.value.valuePrefix,
|
|
2125
|
-
v:
|
|
2125
|
+
v: J.value.total,
|
|
2126
2126
|
s: R.value.valueSuffix,
|
|
2127
2127
|
r: R.value.dataLabelRoundingValue
|
|
2128
2128
|
})), 9, Et)])) : g("", !0)
|
|
@@ -2191,7 +2191,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2191
2191
|
datapoint: e,
|
|
2192
2192
|
seriesIndex: n
|
|
2193
2193
|
})), 11, Pt)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
2194
|
-
R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", Ft, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((
|
|
2194
|
+
R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", Ft, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((Y.value.end - Y.value.start) / Wi.value) === 0 || Y.value.end - Y.value.start <= Wi.value ? (C(), _("line", {
|
|
2195
2195
|
key: 0,
|
|
2196
2196
|
x1: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
2197
2197
|
x2: Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2,
|
|
@@ -2203,14 +2203,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2203
2203
|
}, null, 8, It)) : g("", !0)], 64))), 256)), v("g", {
|
|
2204
2204
|
ref_key: "timeLabelsEls",
|
|
2205
2205
|
ref: Vn
|
|
2206
|
-
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((
|
|
2206
|
+
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((Y.value.end - Y.value.start) / Wi.value) === 0 || Y.value.end - Y.value.start <= Wi.value ? (C(), _("g", Lt, [String(e).includes("\n") ? (C(), _("text", {
|
|
2207
2207
|
key: 1,
|
|
2208
2208
|
class: "vue-data-ui-time-label",
|
|
2209
2209
|
"font-size": R.value.xyLabelsXFontSize,
|
|
2210
2210
|
"text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2211
2211
|
fill: R.value.color,
|
|
2212
2212
|
transform: `translate(${Z.value.drawingArea.left + Z.value.slotSize * (t + 1) - Z.value.slotSize / 2}, ${Z.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`,
|
|
2213
|
-
innerHTML: O(
|
|
2213
|
+
innerHTML: O(a)({
|
|
2214
2214
|
content: String(e),
|
|
2215
2215
|
fontSize: R.value.xyLabelsXFontSize,
|
|
2216
2216
|
fill: R.value.color,
|
|
@@ -2270,9 +2270,9 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2270
2270
|
fill: "none",
|
|
2271
2271
|
class: b({ "vue-data-ui-transition": O(z) })
|
|
2272
2272
|
}, null, 10, Wt)], 64)), (C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("circle", {
|
|
2273
|
-
key: `dp_${e.id}_${n +
|
|
2273
|
+
key: `dp_${e.id}_${n + Y.value.start}`,
|
|
2274
2274
|
cx: t.x,
|
|
2275
|
-
cy: O(
|
|
2275
|
+
cy: O(u)(t.y),
|
|
2276
2276
|
r: 3,
|
|
2277
2277
|
fill: e.color,
|
|
2278
2278
|
stroke: R.value.backgroundColor,
|
|
@@ -2284,14 +2284,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2284
2284
|
}, null, 10, Gt))), 128))]))), 128))]),
|
|
2285
2285
|
R.value.showDataLabels ? (C(), _("g", Kt, [(C(!0), _(m, null, T(Z.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
|
|
2286
2286
|
class: b(["vue-ui-quick-chart-label", { "vue-data-ui-transition": O(z) }]),
|
|
2287
|
-
key: `plot_${e.id}_${r +
|
|
2287
|
+
key: `plot_${e.id}_${r + Y.value.start}`,
|
|
2288
2288
|
"text-anchor": "middle",
|
|
2289
2289
|
"font-size": R.value.dataLabelFontSize,
|
|
2290
2290
|
fill: e.color,
|
|
2291
|
-
transform: `translate(${n.x}, ${O(
|
|
2292
|
-
}, D(O(p)(R.value.formatter, O(
|
|
2291
|
+
transform: `translate(${n.x}, ${O(u)(n.y) - R.value.dataLabelFontSize / 2})`
|
|
2292
|
+
}, D(O(p)(R.value.formatter, O(u)(n.value), O(t)({
|
|
2293
2293
|
p: R.value.valuePrefix,
|
|
2294
|
-
v: O(
|
|
2294
|
+
v: O(u)(n.value),
|
|
2295
2295
|
s: R.value.valueSuffix,
|
|
2296
2296
|
r: R.value.dataLabelRoundingValue
|
|
2297
2297
|
}), {
|
|
@@ -2303,7 +2303,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2303
2303
|
y: Z.value.drawingArea.top,
|
|
2304
2304
|
height: Z.value.drawingArea.height <= 0 ? 1e-5 : Z.value.drawingArea.height,
|
|
2305
2305
|
width: Z.value.slotSize <= 0 ? 1e-5 : Z.value.slotSize,
|
|
2306
|
-
fill: [I.value,
|
|
2306
|
+
fill: [I.value, q.value].includes(t) ? R.value.xyHighlighterColor : "transparent",
|
|
2307
2307
|
style: S(`opacity:${R.value.xyHighlighterOpacity}`),
|
|
2308
2308
|
onMouseenter: (e) => Z.value.useTooltip(t, "pointer"),
|
|
2309
2309
|
onMouseleave: (e) => Z.value.killTooltip(t),
|
|
@@ -2374,7 +2374,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2374
2374
|
datapoint: e,
|
|
2375
2375
|
seriesIndex: n
|
|
2376
2376
|
})), 11, rn)) : g("", !0)], 64))), 128))], 512)) : g("", !0),
|
|
2377
|
-
R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", an, [(C(!0), _(m, null, T(R.value.xyPeriods.slice(
|
|
2377
|
+
R.value.xyShowScale && R.value.xyPeriods.length ? (C(), _("g", an, [(C(!0), _(m, null, T(R.value.xyPeriods.slice(Y.value.start, Y.value.end), (e, t) => (C(), _("line", {
|
|
2378
2378
|
x1: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2379
2379
|
x2: Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2,
|
|
2380
2380
|
y1: Q.value.drawingArea.bottom,
|
|
@@ -2385,14 +2385,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2385
2385
|
}, null, 8, on))), 256)), v("g", {
|
|
2386
2386
|
ref_key: "timeLabelsEls",
|
|
2387
2387
|
ref: Vn
|
|
2388
|
-
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((
|
|
2388
|
+
}, [(C(!0), _(m, null, T($.value.map((e) => e.text), (e, t) => (C(), _(m, null, [!R.value.xyPeriodsShowOnlyAtModulo || R.value.xyPeriodsShowOnlyAtModulo && t % Math.floor((Y.value.end - Y.value.start) / Wi.value) === 0 || Y.value.end - Y.value.start <= Wi.value ? (C(), _("g", sn, [String(e).includes("\n") ? (C(), _("text", {
|
|
2389
2389
|
key: 1,
|
|
2390
2390
|
class: "vue-data-ui-time-label",
|
|
2391
2391
|
"font-size": R.value.xyLabelsXFontSize,
|
|
2392
2392
|
"text-anchor": R.value.xyPeriodLabelsRotation > 0 ? "start" : R.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
2393
2393
|
fill: R.value.color,
|
|
2394
2394
|
transform: `translate(${Q.value.drawingArea.left + Q.value.slotSize * (t + 1) - Q.value.slotSize / 2}, ${Q.value.drawingArea.bottom + R.value.xyLabelsXFontSize + 6}), rotate(${R.value.xyPeriodLabelsRotation})`,
|
|
2395
|
-
innerHTML: O(
|
|
2395
|
+
innerHTML: O(a)({
|
|
2396
2396
|
content: String(e),
|
|
2397
2397
|
fontSize: R.value.xyLabelsXFontSize,
|
|
2398
2398
|
fill: R.value.color,
|
|
@@ -2410,8 +2410,8 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2410
2410
|
v("g", un, [(C(!0), _(m, null, T(Q.value.dataset, (e, t) => (C(), _(m, null, [(C(!0), _(m, null, T(e.coordinates, (t, n) => (C(), _("rect", {
|
|
2411
2411
|
x: t.x,
|
|
2412
2412
|
width: t.width <= 0 ? 1e-5 : t.width,
|
|
2413
|
-
height: O(
|
|
2414
|
-
y: O(
|
|
2413
|
+
height: O(u)(t.height <= 0 ? 1e-5 : t.height),
|
|
2414
|
+
y: O(u)(t.y),
|
|
2415
2415
|
fill: e.color,
|
|
2416
2416
|
stroke: R.value.backgroundColor,
|
|
2417
2417
|
"stroke-width": R.value.barStrokeWidth,
|
|
@@ -2420,14 +2420,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2420
2420
|
}, null, 10, dn))), 256))], 64))), 256))]),
|
|
2421
2421
|
R.value.showDataLabels ? (C(), _("g", fn, [(C(!0), _(m, null, T(Q.value.dataset, (e, n) => (C(), _(m, { key: `ds_${e.id}` }, [(C(!0), _(m, null, T(e.coordinates, (n, r) => (C(), _("text", {
|
|
2422
2422
|
class: b({ "vue-data-ui-transition": O(z) }),
|
|
2423
|
-
key: `plot_${r +
|
|
2424
|
-
transform: `translate(${n.x + n.width / 2}, ${O(
|
|
2423
|
+
key: `plot_${r + Y.value.start}`,
|
|
2424
|
+
transform: `translate(${n.x + n.width / 2}, ${O(u)(n.y) - R.value.dataLabelFontSize / 2})`,
|
|
2425
2425
|
"text-anchor": "middle",
|
|
2426
2426
|
"font-size": R.value.dataLabelFontSize,
|
|
2427
2427
|
fill: e.color
|
|
2428
|
-
}, D(O(p)(R.value.formatter, O(
|
|
2428
|
+
}, D(O(p)(R.value.formatter, O(u)(n.value), O(t)({
|
|
2429
2429
|
p: R.value.valuePrefix,
|
|
2430
|
-
v: O(
|
|
2430
|
+
v: O(u)(n.value),
|
|
2431
2431
|
s: R.value.valueSuffix,
|
|
2432
2432
|
r: R.value.dataLabelRoundingValue
|
|
2433
2433
|
}), {
|
|
@@ -2439,7 +2439,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2439
2439
|
y: Q.value.drawingArea.top,
|
|
2440
2440
|
height: Q.value.drawingArea.height <= 0 ? 1e-5 : Q.value.drawingArea.height,
|
|
2441
2441
|
width: Q.value.slotSize <= 0 ? 1e-5 : Q.value.slotSize,
|
|
2442
|
-
fill: [I.value,
|
|
2442
|
+
fill: [I.value, q.value].includes(t) ? R.value.xyHighlighterColor : "transparent",
|
|
2443
2443
|
style: S(`opacity:${R.value.xyHighlighterOpacity}`),
|
|
2444
2444
|
onMouseenter: (e) => Q.value.useTooltip(t, "pointer"),
|
|
2445
2445
|
onMouseleave: (e) => Q.value.killTooltip(t),
|
|
@@ -2496,12 +2496,12 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2496
2496
|
y: Ti.value.y,
|
|
2497
2497
|
width: Ti.value.width,
|
|
2498
2498
|
height: Ti.value.height,
|
|
2499
|
-
fill:
|
|
2500
|
-
"fill-opacity":
|
|
2501
|
-
stroke:
|
|
2502
|
-
"stroke-opacity":
|
|
2503
|
-
"stroke-width":
|
|
2504
|
-
"stroke-dasharray":
|
|
2499
|
+
fill: ti.value.selection.fill,
|
|
2500
|
+
"fill-opacity": ti.value.selection.fillOpacity,
|
|
2501
|
+
stroke: ti.value.selection.stroke,
|
|
2502
|
+
"stroke-opacity": ti.value.selection.strokeOpacity,
|
|
2503
|
+
"stroke-width": ti.value.selection.strokeWidth,
|
|
2504
|
+
"stroke-dasharray": ti.value.selection.strokeDasharray,
|
|
2505
2505
|
"stroke-linecap": "round",
|
|
2506
2506
|
"stroke-linejoin": "round",
|
|
2507
2507
|
"pointer-events": "none"
|
|
@@ -2517,7 +2517,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2517
2517
|
ref: jn
|
|
2518
2518
|
}, [(C(), Ne(De, {
|
|
2519
2519
|
ref_key: "slicerComponent",
|
|
2520
|
-
ref:
|
|
2520
|
+
ref: Ur,
|
|
2521
2521
|
key: `slicer_${Ln.value}`,
|
|
2522
2522
|
timeLabels: $.value,
|
|
2523
2523
|
background: R.value.zoomColor,
|
|
@@ -2529,8 +2529,8 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2529
2529
|
selectColor: R.value.zoomHighlightColor,
|
|
2530
2530
|
max: W.value.maxSeriesLength,
|
|
2531
2531
|
min: 0,
|
|
2532
|
-
valueStart:
|
|
2533
|
-
valueEnd:
|
|
2532
|
+
valueStart: Y.value.start,
|
|
2533
|
+
valueEnd: Y.value.end,
|
|
2534
2534
|
smoothMinimap: R.value.zoomMinimap.smooth,
|
|
2535
2535
|
minimapSelectedColor: R.value.zoomMinimap.selectedColor,
|
|
2536
2536
|
minimapSelectedColorOpacity: R.value.zoomMinimap.selectedColorOpacity,
|
|
@@ -2539,7 +2539,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2539
2539
|
minimap: _i.value,
|
|
2540
2540
|
minimapIndicatorColor: R.value.zoomMinimap.indicatorColor,
|
|
2541
2541
|
verticalHandles: R.value.zoomMinimap.verticalHandles,
|
|
2542
|
-
minimapSelectedIndex:
|
|
2542
|
+
minimapSelectedIndex: q.value,
|
|
2543
2543
|
"onUpdate:start": hi,
|
|
2544
2544
|
"onUpdate:end": gi,
|
|
2545
2545
|
refreshStartPoint: R.value.zoomStartIndex === null ? 0 : R.value.zoomStartIndex,
|
|
@@ -2562,11 +2562,11 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2562
2562
|
maxWidth: R.value.zoomMaxWidth,
|
|
2563
2563
|
minimapLeftInsetRatio: Bi.value,
|
|
2564
2564
|
minimapRightInsetRatio: Vi.value,
|
|
2565
|
-
onReset:
|
|
2565
|
+
onReset: r[0] ||= () => pi({
|
|
2566
2566
|
applyControlledZoom: !1,
|
|
2567
2567
|
publish: !0
|
|
2568
2568
|
}),
|
|
2569
|
-
onTrapMouse:
|
|
2569
|
+
onTrapMouse: Br
|
|
2570
2570
|
}, {
|
|
2571
2571
|
"reset-action": k(({ reset: t }) => [E(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
|
|
2572
2572
|
_: 3
|
|
@@ -2582,14 +2582,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2582
2582
|
class: "vue-ui-quick-chart-legend",
|
|
2583
2583
|
style: S(`background:transparent;color:${R.value.color}`)
|
|
2584
2584
|
}, [
|
|
2585
|
-
(
|
|
2585
|
+
(J.value?.legend?.length > 2 || Z.value?.legend?.length > 2 || Q.value?.legend?.length > 2) && R.value.showLegendSelectAllToggle && !O(or) ? (C(), Ne(Oe, {
|
|
2586
2586
|
key: 0,
|
|
2587
2587
|
backgroundColor: R.value.legendSelectAllToggleBackgroundColor,
|
|
2588
2588
|
color: R.value.legendSelectAllToggleColor,
|
|
2589
2589
|
fontSize: R.value.legendFontSize,
|
|
2590
2590
|
checked: L.value.length > 0,
|
|
2591
2591
|
isCursorPointer: nr.value,
|
|
2592
|
-
onToggle:
|
|
2592
|
+
onToggle: Pr
|
|
2593
2593
|
}, null, 8, [
|
|
2594
2594
|
"backgroundColor",
|
|
2595
2595
|
"color",
|
|
@@ -2597,22 +2597,22 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2597
2597
|
"checked",
|
|
2598
2598
|
"isCursorPointer"
|
|
2599
2599
|
])) : g("", !0),
|
|
2600
|
-
G.value === A.DONUT ? (C(!0), _(m, { key: 1 }, T(
|
|
2600
|
+
G.value === A.DONUT ? (C(!0), _(m, { key: 1 }, T(J.value.legend, (n, r) => (C(), _("div", {
|
|
2601
2601
|
class: "vue-ui-quick-chart-legend-item",
|
|
2602
|
-
onClick: (e) =>
|
|
2603
|
-
style: S(`cursor: ${
|
|
2602
|
+
onClick: (e) => zr(n, J.value.dataset),
|
|
2603
|
+
style: S(`cursor: ${J.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(n.id) ? "0.5" : "1"}`),
|
|
2604
2604
|
role: "button",
|
|
2605
2605
|
tabindex: "0",
|
|
2606
2606
|
onKeydown: (e) => {
|
|
2607
2607
|
oa(e, () => {
|
|
2608
|
-
|
|
2608
|
+
zr(n, J.value.dataset);
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
2611
|
}, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2612
2612
|
...n,
|
|
2613
2613
|
isSegregated: L.value.includes(n.id),
|
|
2614
2614
|
segregate: () => {
|
|
2615
|
-
|
|
2615
|
+
zr(n, J.value.dataset);
|
|
2616
2616
|
}
|
|
2617
2617
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [
|
|
2618
2618
|
Fe(O(qe), {
|
|
@@ -2637,14 +2637,14 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2637
2637
|
L.value.includes(n.id) ? (C(), _("span", {
|
|
2638
2638
|
key: 0,
|
|
2639
2639
|
style: S(`font-size:${R.value.legendFontSize}px`)
|
|
2640
|
-
}, " ( - % ) ", 4)) :
|
|
2640
|
+
}, " ( - % ) ", 4)) : Rr.value ? (C(), _("span", {
|
|
2641
2641
|
key: 1,
|
|
2642
2642
|
style: S(`font-size:${R.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2643
2643
|
}, " ( - % ) ", 4)) : (C(), _("span", {
|
|
2644
2644
|
key: 2,
|
|
2645
2645
|
style: S(`font-size:${R.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
2646
2646
|
}, " (" + D(O(t)({
|
|
2647
|
-
v: n.value /
|
|
2647
|
+
v: n.value / J.value.total * 100,
|
|
2648
2648
|
s: "%",
|
|
2649
2649
|
r: R.value.dataLabelRoundingPercentage
|
|
2650
2650
|
})) + ") ", 5))
|
|
@@ -2652,21 +2652,21 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2652
2652
|
G.value === A.LINE ? (C(!0), _(m, { key: 2 }, T(Z.value.legend, (t, n) => (C(), _("div", {
|
|
2653
2653
|
class: "vue-ui-quick-chart-legend-item",
|
|
2654
2654
|
onClick: (e) => {
|
|
2655
|
-
|
|
2655
|
+
Fr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2656
2656
|
},
|
|
2657
2657
|
style: S(`cursor: ${Z.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2658
2658
|
role: "button",
|
|
2659
2659
|
tabindex: "0",
|
|
2660
2660
|
onKeydown: (e) => {
|
|
2661
2661
|
oa(e, () => {
|
|
2662
|
-
|
|
2662
|
+
Fr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2663
2663
|
});
|
|
2664
2664
|
}
|
|
2665
2665
|
}, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2666
2666
|
...t,
|
|
2667
2667
|
isSegregated: L.value.includes(t.id),
|
|
2668
2668
|
segregate: () => {
|
|
2669
|
-
|
|
2669
|
+
Fr(t.id, Z.value.legend.length - 1), U("selectLegend", Z.value.dataset);
|
|
2670
2670
|
}
|
|
2671
2671
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
|
|
2672
2672
|
name: R.value.legendIcon,
|
|
@@ -2680,21 +2680,21 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2680
2680
|
G.value === A.BAR ? (C(!0), _(m, { key: 3 }, T(Q.value.legend, (t, n) => (C(), _("div", {
|
|
2681
2681
|
class: "vue-ui-quick-chart-legend-item",
|
|
2682
2682
|
onClick: (e) => {
|
|
2683
|
-
|
|
2683
|
+
Fr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2684
2684
|
},
|
|
2685
2685
|
style: S(`cursor: ${Q.value.legend.length > 1 && nr.value ? "pointer" : "default"}; opacity:${L.value.includes(t.id) ? "0.5" : "1"}`),
|
|
2686
2686
|
role: "button",
|
|
2687
2687
|
tabindex: "0",
|
|
2688
2688
|
onKeydown: (e) => {
|
|
2689
2689
|
oa(e, () => {
|
|
2690
|
-
|
|
2690
|
+
Fr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2691
2691
|
});
|
|
2692
2692
|
}
|
|
2693
2693
|
}, [R.value.useCustomLegend ? E(e.$slots, "legend", Le({ ref_for: !0 }, { legend: {
|
|
2694
2694
|
...t,
|
|
2695
2695
|
isSegregated: L.value.includes(t.id),
|
|
2696
2696
|
segregate: () => {
|
|
2697
|
-
|
|
2697
|
+
Fr(t.id, Q.value.legend.length - 1), U("selectLegend", Q.value.dataset);
|
|
2698
2698
|
}
|
|
2699
2699
|
} }), void 0, !0, 0) : (C(), _(m, { key: 1 }, [Fe(O(qe), {
|
|
2700
2700
|
name: R.value.legendIcon,
|
|
@@ -2728,7 +2728,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2728
2728
|
parent: N.value,
|
|
2729
2729
|
content: Nn.value,
|
|
2730
2730
|
isFullscreen: Gi.value,
|
|
2731
|
-
isCustom: O(
|
|
2731
|
+
isCustom: O(n)(R.value.tooltipCustomFormat),
|
|
2732
2732
|
smooth: R.value.tooltipSmooth,
|
|
2733
2733
|
smoothForce: R.value.tooltipSmoothForce,
|
|
2734
2734
|
smoothSnapThreshold: R.value.tooltipSmoothSnapThreshold,
|
|
@@ -2768,7 +2768,7 @@ var N = /* @__PURE__ */ e({ default: () => kn }), nt = ["id"], rt = ["id"], it =
|
|
|
2768
2768
|
], 46, nt)) : (C(), _("div", On, [Fe(O(qe), {
|
|
2769
2769
|
name: "circleCancel",
|
|
2770
2770
|
stroke: "red"
|
|
2771
|
-
}),
|
|
2771
|
+
}), r[4] ||= v("span", null, "Dataset is not processable", -1)]));
|
|
2772
2772
|
}
|
|
2773
2773
|
}, [["__scopeId", "data-v-6e6dae1f"]]);
|
|
2774
2774
|
//#endregion
|