vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, Et as n, G as r, Ht as a, J as o, Kt as s, Mt as c, S as l, T as u, U as d, Ut as f, W as p, Wt as ee, Z as te, b as ne, dt as re, g as ie, h as ae, i as m, it as h, kt as oe, lt as se, ot as ce, r as le, s as ue, t as de, yt as fe } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { n as pe, r as me, t as he } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
4
|
import { t as ge } from "./useConfig-DYM3f6EI.js";
|
|
5
|
-
import { t as _e } from "./usePrinter-
|
|
5
|
+
import { t as _e } from "./usePrinter-CqqHmnBI.js";
|
|
6
6
|
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as be } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
-
import { t as xe } from "./useNestedProp-
|
|
8
|
+
import { t as xe } from "./useNestedProp-DIuuzG1r.js";
|
|
9
9
|
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as Ce } from "./useStableElementSize-C7KADDKj.js";
|
|
11
11
|
import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
-
import { t as Te } from "./img-
|
|
13
|
-
import { n as Ee } from "./Title-
|
|
14
|
-
import { t as De } from "./Shape-
|
|
12
|
+
import { t as Te } from "./img-DnP3eXuv.js";
|
|
13
|
+
import { n as Ee } from "./Title-CcNiYzEo.js";
|
|
14
|
+
import { t as De } from "./Shape-UpH0a4Ur.js";
|
|
15
15
|
import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { c as ke } from "./canvas-lib-BOP_HS11.js";
|
|
17
17
|
import { t as Ae } from "./useResponsive-BfnK0KxU.js";
|
|
18
|
-
import { t as je } from "./
|
|
19
|
-
import { t as Me } from "./
|
|
20
|
-
import { t as Ne } from "./
|
|
21
|
-
import { t as Pe } from "./
|
|
22
|
-
import { t as Fe } from "./
|
|
23
|
-
import { t as Ie } from "./
|
|
24
|
-
import { t as Le } from "./
|
|
25
|
-
import {
|
|
18
|
+
import { t as je } from "./DefGrad-DVBqDjhO.js";
|
|
19
|
+
import { t as Me } from "./SlicerPreview-CTz41lOu.js";
|
|
20
|
+
import { t as Ne } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
21
|
+
import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
|
|
22
|
+
import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
|
|
23
|
+
import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
|
|
24
|
+
import { t as Le } from "./Legend-ROt6ugzW.js";
|
|
25
|
+
import { t as Re } from "./vue_ui_stackbar-COOrQQdK.js";
|
|
26
|
+
import { Fragment as g, Teleport as ze, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as Ue, guardReactiveProps as S, mergeProps as We, nextTick as Ge, normalizeClass as Ke, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as qe, onMounted as Je, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as k, toRefs as Ze, unref as A, useSlots as Qe, watch as $e, watchEffect as et, withCtx as j } from "vue";
|
|
26
27
|
//#region src/components/vue-ui-stackbar.vue
|
|
27
|
-
var
|
|
28
|
+
var tt = /* @__PURE__ */ e({ default: () => Xt }), nt = ["id"], rt = ["id"], it = ["id"], at = { style: { position: "relative" } }, ot = [
|
|
28
29
|
"xmlns",
|
|
29
30
|
"aria-describedby",
|
|
30
31
|
"viewBox"
|
|
31
|
-
],
|
|
32
|
+
], st = [
|
|
32
33
|
"x",
|
|
33
34
|
"y",
|
|
34
35
|
"width",
|
|
35
36
|
"height"
|
|
36
|
-
],
|
|
37
|
+
], ct = { key: 1 }, lt = [
|
|
37
38
|
"x",
|
|
38
39
|
"y",
|
|
39
40
|
"width",
|
|
@@ -43,7 +44,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
43
44
|
"stroke-linecap",
|
|
44
45
|
"stroke-linejoin",
|
|
45
46
|
"stroke-dasharray"
|
|
46
|
-
],
|
|
47
|
+
], ut = [
|
|
47
48
|
"x1",
|
|
48
49
|
"x2",
|
|
49
50
|
"y1",
|
|
@@ -51,7 +52,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
51
52
|
"stroke",
|
|
52
53
|
"stroke-width",
|
|
53
54
|
"stroke-dasharray"
|
|
54
|
-
],
|
|
55
|
+
], dt = [
|
|
55
56
|
"x1",
|
|
56
57
|
"x2",
|
|
57
58
|
"y1",
|
|
@@ -59,7 +60,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
59
60
|
"stroke",
|
|
60
61
|
"stroke-width",
|
|
61
62
|
"stroke-dasharray"
|
|
62
|
-
],
|
|
63
|
+
], ft = [
|
|
63
64
|
"x1",
|
|
64
65
|
"x2",
|
|
65
66
|
"y1",
|
|
@@ -67,7 +68,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
67
68
|
"stroke",
|
|
68
69
|
"stroke-width",
|
|
69
70
|
"stroke-dasharray"
|
|
70
|
-
],
|
|
71
|
+
], pt = [
|
|
71
72
|
"x1",
|
|
72
73
|
"x2",
|
|
73
74
|
"y1",
|
|
@@ -75,7 +76,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
75
76
|
"stroke",
|
|
76
77
|
"stroke-width",
|
|
77
78
|
"stroke-dasharray"
|
|
78
|
-
],
|
|
79
|
+
], mt = { key: 0 }, ht = [
|
|
79
80
|
"x",
|
|
80
81
|
"y",
|
|
81
82
|
"height",
|
|
@@ -84,7 +85,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
84
85
|
"fill",
|
|
85
86
|
"stroke",
|
|
86
87
|
"stroke-width"
|
|
87
|
-
],
|
|
88
|
+
], gt = { key: 0 }, _t = [
|
|
88
89
|
"x",
|
|
89
90
|
"y",
|
|
90
91
|
"height",
|
|
@@ -93,7 +94,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
93
94
|
"fill",
|
|
94
95
|
"stroke",
|
|
95
96
|
"stroke-width"
|
|
96
|
-
],
|
|
97
|
+
], vt = [
|
|
97
98
|
"x",
|
|
98
99
|
"y",
|
|
99
100
|
"width",
|
|
@@ -102,7 +103,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
102
103
|
"fill",
|
|
103
104
|
"stroke",
|
|
104
105
|
"stroke-width"
|
|
105
|
-
],
|
|
106
|
+
], yt = { key: 0 }, bt = [
|
|
106
107
|
"x",
|
|
107
108
|
"y",
|
|
108
109
|
"width",
|
|
@@ -111,102 +112,102 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
111
112
|
"fill",
|
|
112
113
|
"stroke",
|
|
113
114
|
"stroke-width"
|
|
114
|
-
],
|
|
115
|
+
], xt = [
|
|
115
116
|
"x1",
|
|
116
117
|
"x2",
|
|
117
118
|
"y1",
|
|
118
119
|
"y2",
|
|
119
120
|
"stroke",
|
|
120
121
|
"stroke-width"
|
|
121
|
-
],
|
|
122
|
+
], St = [
|
|
122
123
|
"x1",
|
|
123
124
|
"x2",
|
|
124
125
|
"y1",
|
|
125
126
|
"y2",
|
|
126
127
|
"stroke",
|
|
127
128
|
"stroke-width"
|
|
128
|
-
],
|
|
129
|
+
], Ct = [
|
|
129
130
|
"x",
|
|
130
131
|
"y",
|
|
131
132
|
"font-size",
|
|
132
133
|
"fill",
|
|
133
134
|
"font-weight"
|
|
134
|
-
],
|
|
135
|
+
], wt = [
|
|
135
136
|
"transform",
|
|
136
137
|
"font-size",
|
|
137
138
|
"fill",
|
|
138
139
|
"font-weight"
|
|
139
|
-
],
|
|
140
|
+
], Tt = [
|
|
140
141
|
"x",
|
|
141
142
|
"y",
|
|
142
143
|
"font-size",
|
|
143
144
|
"fill",
|
|
144
145
|
"font-weight"
|
|
145
|
-
],
|
|
146
|
+
], Et = [
|
|
146
147
|
"x",
|
|
147
148
|
"y",
|
|
148
149
|
"font-size",
|
|
149
150
|
"font-weight",
|
|
150
151
|
"fill"
|
|
151
|
-
],
|
|
152
|
+
], Dt = [
|
|
152
153
|
"x",
|
|
153
154
|
"y",
|
|
154
155
|
"font-size",
|
|
155
156
|
"fill",
|
|
156
157
|
"font-weight"
|
|
157
|
-
],
|
|
158
|
+
], Ot = [
|
|
158
159
|
"x",
|
|
159
160
|
"y",
|
|
160
161
|
"font-size",
|
|
161
162
|
"font-weight",
|
|
162
163
|
"fill"
|
|
163
|
-
],
|
|
164
|
+
], kt = [
|
|
164
165
|
"x1",
|
|
165
166
|
"x2",
|
|
166
167
|
"y1",
|
|
167
168
|
"y2",
|
|
168
169
|
"stroke"
|
|
169
|
-
],
|
|
170
|
+
], At = [
|
|
170
171
|
"x",
|
|
171
172
|
"y",
|
|
172
173
|
"font-size",
|
|
173
174
|
"font-weight",
|
|
174
175
|
"fill",
|
|
175
176
|
"text-anchor"
|
|
176
|
-
],
|
|
177
|
+
], jt = [
|
|
177
178
|
"x1",
|
|
178
179
|
"x2",
|
|
179
180
|
"y1",
|
|
180
181
|
"y2",
|
|
181
182
|
"stroke"
|
|
182
|
-
],
|
|
183
|
+
], Mt = [
|
|
183
184
|
"font-size",
|
|
184
185
|
"font-weight",
|
|
185
186
|
"fill",
|
|
186
187
|
"text-anchor",
|
|
187
188
|
"transform"
|
|
188
|
-
],
|
|
189
|
+
], Nt = { key: 0 }, Pt = { key: 1 }, Ft = [
|
|
189
190
|
"text-anchor",
|
|
190
191
|
"font-size",
|
|
191
192
|
"font-weight",
|
|
192
193
|
"fill",
|
|
193
194
|
"transform",
|
|
194
195
|
"onClick"
|
|
195
|
-
],
|
|
196
|
+
], It = [
|
|
196
197
|
"text-anchor",
|
|
197
198
|
"font-size",
|
|
198
199
|
"fill",
|
|
199
200
|
"transform",
|
|
200
201
|
"innerHTML",
|
|
201
202
|
"onClick"
|
|
202
|
-
],
|
|
203
|
+
], Lt = { key: 0 }, Rt = { key: 1 }, zt = [
|
|
203
204
|
"font-size",
|
|
204
205
|
"font-weight",
|
|
205
206
|
"fill",
|
|
206
207
|
"x",
|
|
207
208
|
"y",
|
|
208
209
|
"onClick"
|
|
209
|
-
],
|
|
210
|
+
], Bt = [
|
|
210
211
|
"font-size",
|
|
211
212
|
"font-weight",
|
|
212
213
|
"fill",
|
|
@@ -214,7 +215,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
214
215
|
"y",
|
|
215
216
|
"onClick",
|
|
216
217
|
"innerHTML"
|
|
217
|
-
],
|
|
218
|
+
], Vt = [
|
|
218
219
|
"x",
|
|
219
220
|
"y",
|
|
220
221
|
"width",
|
|
@@ -223,7 +224,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
223
224
|
"onMouseenter",
|
|
224
225
|
"onMouseleave",
|
|
225
226
|
"fill"
|
|
226
|
-
],
|
|
227
|
+
], Ht = [
|
|
227
228
|
"x",
|
|
228
229
|
"y",
|
|
229
230
|
"width",
|
|
@@ -232,7 +233,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
232
233
|
"onMouseenter",
|
|
233
234
|
"onMouseleave",
|
|
234
235
|
"fill"
|
|
235
|
-
],
|
|
236
|
+
], Ut = ["data-start", "data-end"], Wt = {
|
|
236
237
|
key: 0,
|
|
237
238
|
style: {
|
|
238
239
|
position: "absolute",
|
|
@@ -242,17 +243,17 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
242
243
|
},
|
|
243
244
|
"data-dom-to-png-ignore": "",
|
|
244
245
|
"aria-hidden": "true"
|
|
245
|
-
},
|
|
246
|
+
}, Gt = {
|
|
246
247
|
key: 4,
|
|
247
248
|
class: "vue-data-ui-watermark"
|
|
248
|
-
},
|
|
249
|
+
}, Kt = [
|
|
249
250
|
"x",
|
|
250
251
|
"y",
|
|
251
252
|
"height",
|
|
252
253
|
"width",
|
|
253
254
|
"fill",
|
|
254
255
|
"stroke"
|
|
255
|
-
],
|
|
256
|
+
], qt = ["id"], Jt = ["onClick"], Yt = ["innerHTML"], Xt = /*#__PURE__*/ Oe({
|
|
256
257
|
__name: "vue-ui-stackbar",
|
|
257
258
|
props: {
|
|
258
259
|
config: {
|
|
@@ -279,46 +280,46 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
279
280
|
"selectX",
|
|
280
281
|
"copyAlt"
|
|
281
282
|
],
|
|
282
|
-
setup(e, { expose: Oe, emit:
|
|
283
|
-
let
|
|
283
|
+
setup(e, { expose: Oe, emit: tt }) {
|
|
284
|
+
let Xt = Ue(() => import("./Tooltip-CxOrWlFy.js")), Zt = Ue(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Qt = Ue(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), $t = Ue(() => import("./DataTable-BxpTMgfK.js")), en = Ue(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), tn = Ue(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), nn = Ue(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), rn = Ue(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_stackbar: an } = ge(), { isThemeValid: on, warnInvalidTheme: sn } = Se(), cn = Qe(), M = e, N = tt, ln = _({
|
|
284
285
|
get() {
|
|
285
286
|
return !!M.dataset && M.dataset.length;
|
|
286
287
|
},
|
|
287
288
|
set(e) {
|
|
288
289
|
return e;
|
|
289
290
|
}
|
|
290
|
-
}), P = E(null), F = E(
|
|
291
|
+
}), P = E(null), F = E(r()), un = E(!1), dn = E(null), fn = E(""), I = E([]), pn = E(0), mn = E(null), hn = E(null), gn = E(null), _n = E(null), vn = E(!1), L = E(null), yn = E(!1), bn = E(0), xn = E(0), Sn = E(0), Cn = E(!1), wn = E(null), Tn = E(null), En = E(!1), Dn = E(!1), On = E(null), kn = E(null), An = E(null), jn = E(null), Mn = E(null), Nn = E(null), Pn = Xe(null), Fn = E(!1), In = E(0), Ln = E(0), R = E(null), Rn = E({
|
|
291
292
|
x: 0,
|
|
292
293
|
y: 0
|
|
293
|
-
}),
|
|
294
|
-
elementRef:
|
|
294
|
+
}), zn = E("pointer"), Bn = Ce({
|
|
295
|
+
elementRef: Pn,
|
|
295
296
|
minimumWidth: 2,
|
|
296
297
|
minimumHeight: 2,
|
|
297
298
|
stableFramesRequired: 2,
|
|
298
299
|
once: !1,
|
|
299
300
|
onSizeAccepted: () => {
|
|
300
|
-
|
|
301
|
+
Un();
|
|
301
302
|
}
|
|
302
303
|
});
|
|
303
|
-
function
|
|
304
|
-
|
|
304
|
+
function Vn() {
|
|
305
|
+
Pn.value = P.value?.parentNode ?? null;
|
|
305
306
|
}
|
|
306
|
-
function
|
|
307
|
+
function Hn() {
|
|
307
308
|
return new Promise((e) => {
|
|
308
309
|
requestAnimationFrame(() => {
|
|
309
310
|
requestAnimationFrame(e);
|
|
310
311
|
});
|
|
311
312
|
});
|
|
312
313
|
}
|
|
313
|
-
async function
|
|
314
|
-
let e = ++
|
|
315
|
-
|
|
314
|
+
async function Un() {
|
|
315
|
+
let e = ++Ln.value;
|
|
316
|
+
Fn.value = !1, await Ge(), await Hn(), await Hn(), e === Ln.value && (In.value += 1, Fn.value = !0);
|
|
316
317
|
}
|
|
317
|
-
let
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
let Wn = E(null);
|
|
319
|
+
Je(() => {
|
|
320
|
+
Cn.value = !0, Vn(), Bn.start(), fr();
|
|
320
321
|
});
|
|
321
|
-
let z = E(
|
|
322
|
+
let z = E(tr()), B = _(() => z.value.userOptions.useCursorPointer), Gn = _(() => s({
|
|
322
323
|
defaultConfig: {
|
|
323
324
|
userOptions: { show: !1 },
|
|
324
325
|
useCssAnimation: !1,
|
|
@@ -363,13 +364,13 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
363
364
|
} }
|
|
364
365
|
},
|
|
365
366
|
userConfig: z.value.skeletonConfig ?? {}
|
|
366
|
-
})), { loading:
|
|
367
|
-
...
|
|
367
|
+
})), { loading: Kn, FINAL_DATASET: qn, manualLoading: Jn } = ve({
|
|
368
|
+
...Ze(M),
|
|
368
369
|
FINAL_CONFIG: z,
|
|
369
|
-
prepareConfig:
|
|
370
|
+
prepareConfig: tr,
|
|
370
371
|
callback: () => {
|
|
371
372
|
Promise.resolve().then(async () => {
|
|
372
|
-
(!z.value.style.chart.zoom.keepState || !
|
|
373
|
+
(!z.value.style.chart.zoom.keepState || !Hi.value || J.value.start === 0 && J.value.end === 0) && await Ui();
|
|
373
374
|
});
|
|
374
375
|
},
|
|
375
376
|
skeletonDataset: M.config?.skeletonDataset ?? [{
|
|
@@ -395,30 +396,30 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
395
396
|
],
|
|
396
397
|
color: "#CACACA"
|
|
397
398
|
}],
|
|
398
|
-
skeletonConfig:
|
|
399
|
+
skeletonConfig: s({
|
|
399
400
|
defaultConfig: z.value,
|
|
400
|
-
userConfig:
|
|
401
|
+
userConfig: Gn.value
|
|
401
402
|
})
|
|
402
|
-
}), { userOptionsVisible:
|
|
403
|
-
function
|
|
404
|
-
|
|
403
|
+
}), { userOptionsVisible: Yn, setUserOptionsVisibility: Xn, keepUserOptionState: Zn } = Fe({ config: z.value }), { svgRef: Qn } = Ie({ config: z.value.style.chart.title });
|
|
404
|
+
function $n() {
|
|
405
|
+
Xn(!0);
|
|
405
406
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
407
|
+
function er() {
|
|
408
|
+
Xn(!1), N("selectX", {
|
|
408
409
|
index: null,
|
|
409
410
|
indexLabel: null,
|
|
410
411
|
dataset: null
|
|
411
|
-
}), L.value = null, R.value = null,
|
|
412
|
+
}), L.value = null, R.value = null, un.value = !1;
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
+
function tr() {
|
|
414
415
|
let e = xe({
|
|
415
416
|
userConfig: M.config,
|
|
416
|
-
defaultConfig:
|
|
417
|
+
defaultConfig: an
|
|
417
418
|
}), t = {}, n = e.theme;
|
|
418
|
-
if (n) if (!
|
|
419
|
+
if (n) if (!on.value(e)) sn(e), t = e;
|
|
419
420
|
else {
|
|
420
421
|
let r = xe({
|
|
421
|
-
userConfig:
|
|
422
|
+
userConfig: Re[n] || M.config,
|
|
422
423
|
defaultConfig: e
|
|
423
424
|
});
|
|
424
425
|
t = {
|
|
@@ -426,31 +427,31 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
426
427
|
userConfig: M.config,
|
|
427
428
|
defaultConfig: r
|
|
428
429
|
}),
|
|
429
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
430
|
+
customPalette: e.customPalette.length ? e.customPalette : ee[n] || c
|
|
430
431
|
};
|
|
431
432
|
}
|
|
432
433
|
else t = e;
|
|
433
434
|
return t;
|
|
434
435
|
}
|
|
435
|
-
let
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}, { deep: !0 }),
|
|
439
|
-
Array.isArray(e) && e.length > 0 && (
|
|
436
|
+
let nr = _(() => z.value.style.chart.bars.dataLabels.hideUnderValue != null), rr = _(() => z.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
|
|
437
|
+
$e(() => M.config, (e) => {
|
|
438
|
+
Kn.value || (z.value = tr()), Yn.value = !z.value.userOptions.showOnChartHover, fr({ resetSlicer: !z.value.style.chart.zoom.keepState }), bn.value += 1, xn.value += 1, Sn.value += 1, V.value.dataLabels.show = z.value.style.chart.bars.dataLabels.show, V.value.showTable = z.value.table.show, V.value.showTooltip = z.value.style.chart.tooltip.show, Vn(), !z.value.style.chart.zoom.keepState || !Hi.value || J.value.start === 0 && J.value.end === 0 ? Ui() : Or();
|
|
439
|
+
}, { deep: !0 }), $e(() => M.dataset, (e) => {
|
|
440
|
+
Array.isArray(e) && e.length > 0 && (Jn.value = !1), Vn(), z.value.style.chart.zoom.keepState ? Or() : jr();
|
|
440
441
|
}, { deep: !0 });
|
|
441
442
|
let V = E({
|
|
442
443
|
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
443
444
|
showTable: z.value.table.show,
|
|
444
445
|
showTooltip: z.value.style.chart.tooltip.show
|
|
445
446
|
});
|
|
446
|
-
|
|
447
|
+
$e(z, () => {
|
|
447
448
|
V.value = {
|
|
448
449
|
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
449
450
|
showTable: z.value.table.show,
|
|
450
451
|
showTooltip: z.value.style.chart.tooltip.show
|
|
451
452
|
};
|
|
452
453
|
}, { immediate: !0 });
|
|
453
|
-
let { isPrinting:
|
|
454
|
+
let { isPrinting: ir, isImaging: ar, generatePdf: or, generateImage: sr } = _e({
|
|
454
455
|
elementId: `stackbar_${F.value}`,
|
|
455
456
|
fileName: z.value.style.chart.title.text || "vue-ui-stackbar",
|
|
456
457
|
options: z.value.userOptions.print
|
|
@@ -463,61 +464,61 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
463
464
|
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
464
465
|
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
465
466
|
}
|
|
466
|
-
}),
|
|
467
|
-
function
|
|
468
|
-
if (
|
|
467
|
+
}), cr = _(() => l(z.value.customPalette)), U = Xe(null), lr = Xe(null), ur = E(null), dr = _(() => !!z.value.debug);
|
|
468
|
+
function fr({ resetSlicer: e = !0 } = {}) {
|
|
469
|
+
if (oe(M.dataset) ? (t({
|
|
469
470
|
componentName: "VueUiStackbar",
|
|
470
471
|
type: "dataset",
|
|
471
|
-
debug:
|
|
472
|
-
}),
|
|
473
|
-
|
|
472
|
+
debug: dr.value
|
|
473
|
+
}), Jn.value = !0) : M.dataset.forEach((e, n) => {
|
|
474
|
+
re({
|
|
474
475
|
datasetObject: e,
|
|
475
476
|
requiredAttributes: ["name", "series"]
|
|
476
477
|
}).forEach((e) => {
|
|
477
|
-
|
|
478
|
+
ln.value = !1, t({
|
|
478
479
|
componentName: "VueUiStackbar",
|
|
479
480
|
type: "datasetSerieAttribute",
|
|
480
481
|
property: e,
|
|
481
|
-
index:
|
|
482
|
-
debug:
|
|
483
|
-
}),
|
|
482
|
+
index: n,
|
|
483
|
+
debug: dr.value
|
|
484
|
+
}), Jn.value = !0;
|
|
484
485
|
});
|
|
485
|
-
}),
|
|
486
|
-
|
|
486
|
+
}), oe(M.dataset) || (Jn.value = z.value.loading), setTimeout(() => {
|
|
487
|
+
yn.value = !0;
|
|
487
488
|
}, 10), z.value.responsive) {
|
|
488
489
|
let e = ke(() => {
|
|
489
|
-
|
|
490
|
+
yn.value = !1;
|
|
490
491
|
let { width: e, height: t } = Ae({
|
|
491
492
|
chart: P.value,
|
|
492
|
-
title: z.value.style.chart.title.text ?
|
|
493
|
-
legend: z.value.style.chart.legend.show ?
|
|
494
|
-
slicer: z.value.style.chart.zoom.show && q.value > 6 ?
|
|
495
|
-
source:
|
|
493
|
+
title: z.value.style.chart.title.text ? mn.value : null,
|
|
494
|
+
legend: z.value.style.chart.legend.show ? hn.value : null,
|
|
495
|
+
slicer: z.value.style.chart.zoom.show && q.value > 6 ? gn.value.$el : null,
|
|
496
|
+
source: _n.value
|
|
496
497
|
});
|
|
497
498
|
requestAnimationFrame(() => {
|
|
498
|
-
H.value.width = e, H.value.height = t - 12, clearTimeout(
|
|
499
|
-
|
|
499
|
+
H.value.width = e, H.value.height = t - 12, clearTimeout(ur.value), ur.value = setTimeout(() => {
|
|
500
|
+
yn.value = !0;
|
|
500
501
|
}, 10);
|
|
501
502
|
});
|
|
502
503
|
});
|
|
503
|
-
U.value && (
|
|
504
|
+
U.value && (lr.value && U.value.unobserve(lr.value), U.value.disconnect()), U.value = new ResizeObserver(e), lr.value = P.value.parentNode, U.value.observe(lr.value);
|
|
504
505
|
}
|
|
505
|
-
|
|
506
|
+
Un(), e && Ui();
|
|
506
507
|
}
|
|
507
|
-
|
|
508
|
-
|
|
508
|
+
qe(() => {
|
|
509
|
+
Bn.stop(), U.value && (lr.value && U.value.unobserve(lr.value), U.value.disconnect());
|
|
509
510
|
});
|
|
510
511
|
let W = _(() => z.value.style.chart.grid.y.position === "right");
|
|
511
|
-
function
|
|
512
|
+
function pr() {
|
|
512
513
|
let e = 0;
|
|
513
|
-
z.value.orientation === "vertical" &&
|
|
514
|
+
z.value.orientation === "vertical" && An.value && (e = Array.from(An.value.querySelectorAll("text")).reduce((e, t) => {
|
|
514
515
|
let n = t.getComputedTextLength();
|
|
515
516
|
return n > e ? n : e;
|
|
516
|
-
}, 0)), z.value.orientation === "horizontal" &&
|
|
517
|
+
}, 0)), z.value.orientation === "horizontal" && jn.value && (e = Array.from(jn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
517
518
|
let n = t.getComputedTextLength();
|
|
518
519
|
return n > e ? n : e;
|
|
519
520
|
}, 0));
|
|
520
|
-
let t =
|
|
521
|
+
let t = kn.value ? kn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
521
522
|
return {
|
|
522
523
|
left: W.value ? 0 : e + t,
|
|
523
524
|
right: W.value ? e + t : 0,
|
|
@@ -525,12 +526,12 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
525
526
|
yAxisLabelWidth: t
|
|
526
527
|
};
|
|
527
528
|
}
|
|
528
|
-
let
|
|
529
|
-
|
|
529
|
+
let mr = E(0), hr = E(0), gr = ke((e) => {
|
|
530
|
+
hr.value = e + z.value.style.chart.bars.totalValues.fontSize;
|
|
530
531
|
}, 100);
|
|
531
|
-
function
|
|
532
|
+
function _r() {
|
|
532
533
|
if (z.value.orientation !== "horizontal") return 0;
|
|
533
|
-
let e =
|
|
534
|
+
let e = Nn.value;
|
|
534
535
|
if (!e) return 0;
|
|
535
536
|
let t = Array.from(e.querySelectorAll("text"));
|
|
536
537
|
if (!t.length) return 0;
|
|
@@ -541,12 +542,12 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
541
542
|
} catch {}
|
|
542
543
|
return Math.max(0, n - (G.value?.right ?? 0));
|
|
543
544
|
}
|
|
544
|
-
|
|
545
|
+
et((e) => {
|
|
545
546
|
if (z.value.orientation !== "horizontal") return;
|
|
546
|
-
let t =
|
|
547
|
+
let t = Nn.value;
|
|
547
548
|
if (!t) return;
|
|
548
549
|
let n = () => {
|
|
549
|
-
|
|
550
|
+
gr(_r());
|
|
550
551
|
};
|
|
551
552
|
n();
|
|
552
553
|
let r = new ResizeObserver(n);
|
|
@@ -559,53 +560,53 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
559
560
|
}), e(() => {
|
|
560
561
|
r.disconnect(), a.disconnect();
|
|
561
562
|
});
|
|
562
|
-
}),
|
|
563
|
-
|
|
563
|
+
}), qe(() => {
|
|
564
|
+
mr.value = 0, hr.value = 0;
|
|
564
565
|
});
|
|
565
|
-
let
|
|
566
|
-
function
|
|
566
|
+
let vr = E(0), yr = E(0);
|
|
567
|
+
function br(e) {
|
|
567
568
|
let t = Number.isFinite(e) ? e : 0;
|
|
568
|
-
|
|
569
|
+
vr.value !== t && (vr.value = t);
|
|
569
570
|
}
|
|
570
|
-
function
|
|
571
|
-
let e = z.value.orientation === "vertical" ?
|
|
571
|
+
function xr() {
|
|
572
|
+
let e = z.value.orientation === "vertical" ? jn.value : An.value;
|
|
572
573
|
if (!e) {
|
|
573
|
-
|
|
574
|
+
br(0);
|
|
574
575
|
return;
|
|
575
576
|
}
|
|
576
577
|
try {
|
|
577
|
-
|
|
578
|
+
br(e.getBBox()?.height);
|
|
578
579
|
} catch {
|
|
579
|
-
|
|
580
|
+
br(0);
|
|
580
581
|
}
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
-
|
|
583
|
+
function Sr() {
|
|
584
|
+
yr.value && cancelAnimationFrame(yr.value), yr.value = requestAnimationFrame(() => {
|
|
584
585
|
requestAnimationFrame(() => {
|
|
585
|
-
|
|
586
|
+
xr();
|
|
586
587
|
});
|
|
587
588
|
});
|
|
588
589
|
}
|
|
589
|
-
|
|
590
|
-
|
|
590
|
+
qe(() => {
|
|
591
|
+
yr.value && cancelAnimationFrame(yr.value);
|
|
591
592
|
});
|
|
592
|
-
let
|
|
593
|
+
let Cr = _(() => {
|
|
593
594
|
let e = 0;
|
|
594
|
-
if (
|
|
595
|
-
e =
|
|
595
|
+
if (On.value) try {
|
|
596
|
+
e = On.value.getBBox().height;
|
|
596
597
|
} catch {
|
|
597
598
|
e = 0;
|
|
598
599
|
}
|
|
599
|
-
let t = z.value.style.chart.grid.x.timeLabels.show ?
|
|
600
|
+
let t = z.value.style.chart.grid.x.timeLabels.show ? vr.value : 0;
|
|
600
601
|
return e + t;
|
|
601
602
|
}), G = _(() => {
|
|
602
|
-
|
|
603
|
+
In.value;
|
|
603
604
|
let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = z.value.style.chart.bars.totalValues.show && M.dataset && M.dataset.length > 1 ? z.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
|
|
604
605
|
if (z.value.style.chart.grid.y.axisLabels.show) {
|
|
605
|
-
let e =
|
|
606
|
+
let e = pr();
|
|
606
607
|
a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
|
|
607
608
|
}
|
|
608
|
-
let l = z.value.style.chart.padding.top + r, u = t - t * n -
|
|
609
|
+
let l = z.value.style.chart.padding.top + r, u = t - t * n - hr.value - o, d = e - z.value.style.chart.padding.bottom - Cr.value - r, f = z.value.style.chart.padding.left + a, p = t - f - t * n - hr.value - o, ee = e - l - z.value.style.chart.padding.bottom - Cr.value - r;
|
|
609
610
|
return {
|
|
610
611
|
chartHeight: e,
|
|
611
612
|
chartWidth: t,
|
|
@@ -613,14 +614,14 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
613
614
|
right: u,
|
|
614
615
|
bottom: d,
|
|
615
616
|
left: f,
|
|
616
|
-
width: Math.max(0,
|
|
617
|
-
height: Math.max(0,
|
|
617
|
+
width: Math.max(0, p),
|
|
618
|
+
height: Math.max(0, ee),
|
|
618
619
|
offsetLeft: a,
|
|
619
620
|
offsetRightAxis: o,
|
|
620
621
|
scaleLabelsWidth: s,
|
|
621
622
|
yAxisLabelWidth: c
|
|
622
623
|
};
|
|
623
|
-
}),
|
|
624
|
+
}), wr = _(() => {
|
|
624
625
|
let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
|
|
625
626
|
fill: z.value.style.chart.zoom.preview.fill,
|
|
626
627
|
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
@@ -653,8 +654,8 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
653
654
|
...d
|
|
654
655
|
};
|
|
655
656
|
}
|
|
656
|
-
}), K = _(() =>
|
|
657
|
-
let n = `stackbar_serie_${t}`, r = String(e.key ?? e.id ?? e.name ?? n), a = ne(e.color) ||
|
|
657
|
+
}), K = _(() => qn.value.map((e, t) => {
|
|
658
|
+
let n = `stackbar_serie_${t}`, r = String(e.key ?? e.id ?? e.name ?? n), a = ne(e.color) || cr.value[t] || c[t] || c[t % c.length];
|
|
658
659
|
return {
|
|
659
660
|
...e,
|
|
660
661
|
datasetKey: r,
|
|
@@ -668,67 +669,67 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
668
669
|
let e = Math.max(...K.value.filter((e) => !I.value.includes(e.id)).map((e) => e.series.length));
|
|
669
670
|
return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
|
|
670
671
|
});
|
|
671
|
-
function
|
|
672
|
-
|
|
672
|
+
function Tr(e) {
|
|
673
|
+
Wn.value = e;
|
|
673
674
|
}
|
|
674
675
|
let J = E({
|
|
675
676
|
start: 0,
|
|
676
|
-
end: Math.max(...
|
|
677
|
+
end: Math.max(...qn.value.map((e) => e.series.length))
|
|
677
678
|
}), Y = E({
|
|
678
679
|
start: 0,
|
|
679
|
-
end: Math.max(...
|
|
680
|
-
}),
|
|
681
|
-
function
|
|
680
|
+
end: Math.max(...qn.value.map((e) => e.series.length))
|
|
681
|
+
}), Er = _(() => z.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
682
|
+
function Dr(e, t) {
|
|
682
683
|
Y.value[e] = t;
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function Or() {
|
|
685
686
|
let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
686
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n,
|
|
687
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, gn.value && (gn.value.setStartValue(t), gn.value.setEndValue(n));
|
|
687
688
|
}
|
|
688
|
-
let
|
|
689
|
-
function
|
|
689
|
+
let kr = E(null);
|
|
690
|
+
function Ar() {
|
|
690
691
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
691
692
|
}
|
|
692
|
-
|
|
693
|
-
|
|
693
|
+
qe(() => {
|
|
694
|
+
kr.value && cancelAnimationFrame(kr.value);
|
|
694
695
|
});
|
|
695
|
-
async function
|
|
696
|
-
if (z.value.style.chart.zoom.keepState && !e &&
|
|
697
|
-
|
|
696
|
+
async function jr({ force: e = !1 } = {}) {
|
|
697
|
+
if (z.value.style.chart.zoom.keepState && !e && Hi.value && !(J.value.start === 0 && J.value.end === 0)) {
|
|
698
|
+
Or();
|
|
698
699
|
return;
|
|
699
700
|
}
|
|
700
|
-
|
|
701
|
-
await
|
|
701
|
+
Ui(), await Ge(), kr.value && cancelAnimationFrame(kr.value), kr.value = requestAnimationFrame(async () => {
|
|
702
|
+
await Ar(), Ui();
|
|
702
703
|
});
|
|
703
704
|
}
|
|
704
705
|
let X = _(() => {
|
|
705
706
|
let e;
|
|
706
707
|
return e = z.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
|
|
707
|
-
}),
|
|
708
|
+
}), Mr = _(() => a(K.value.filter((e) => !I.value.includes(e.id))).slice(J.value.start, J.value.end)), Nr = _(() => I.value.length === K.value.length), Pr = _(() => z.value.style.chart.zoom.minimap.show ? a(K.value.map((e) => ({
|
|
708
709
|
...e,
|
|
709
710
|
series: e.series.map((e) => e ?? 0)
|
|
710
|
-
})).filter((e) =>
|
|
711
|
+
})).filter((e) => Nr.value ? !0 : !I.value.includes(e.id))) : []), Fr = _(() => z.value.style.chart.zoom.minimap.show ? [{
|
|
711
712
|
name: "",
|
|
712
|
-
series:
|
|
713
|
+
series: Pr.value,
|
|
713
714
|
color: "#000000",
|
|
714
715
|
isVisible: !0
|
|
715
|
-
}] : []),
|
|
716
|
+
}] : []), Ir = _(() => a(K.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
|
|
716
717
|
...e,
|
|
717
718
|
series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
|
|
718
|
-
}))).slice(J.value.start, J.value.end)),
|
|
719
|
+
}))).slice(J.value.start, J.value.end)), Lr = _(() => {
|
|
719
720
|
let e = K.value.filter((e) => !I.value.includes(e.id));
|
|
720
721
|
return {
|
|
721
|
-
positive:
|
|
722
|
+
positive: a(e.map((e) => ({
|
|
722
723
|
...e,
|
|
723
724
|
series: e.series.slice(J.value.start, J.value.end).map((e) => e >= 0 ? e : 0)
|
|
724
725
|
}))),
|
|
725
|
-
negative:
|
|
726
|
+
negative: a(e.map((e) => ({
|
|
726
727
|
...e,
|
|
727
728
|
series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
|
|
728
729
|
})))
|
|
729
730
|
};
|
|
730
|
-
}),
|
|
731
|
-
let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...
|
|
731
|
+
}), Rr = _(() => {
|
|
732
|
+
let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...Lr.value.positive), t = Math.min(...Lr.value.negative), n = z.value.style.chart.grid.scale.scaleMin !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMin : [
|
|
732
733
|
-Infinity,
|
|
733
734
|
Infinity,
|
|
734
735
|
NaN,
|
|
@@ -736,9 +737,9 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
736
737
|
null
|
|
737
738
|
].includes(t) ? 0 : t;
|
|
738
739
|
return !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? ie(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks) : ae(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks);
|
|
739
|
-
}),
|
|
740
|
-
let e =
|
|
741
|
-
return
|
|
740
|
+
}), zr = _(() => Rr.value.ticks), Z = _(() => {
|
|
741
|
+
let e = Rr.value, t = e.max + Math.abs(e.min);
|
|
742
|
+
return zr.value.map((n) => ({
|
|
742
743
|
zero: G.value.bottom - G.value.height * (Math.abs(e.min) / t),
|
|
743
744
|
y: G.value.bottom - G.value.height * ((n + Math.abs(e.min)) / t),
|
|
744
745
|
x: W.value ? G.value.right + 8 : G.value.left - 8,
|
|
@@ -747,28 +748,28 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
747
748
|
horizontal_y: G.value.bottom - 8,
|
|
748
749
|
value: n
|
|
749
750
|
}));
|
|
750
|
-
}),
|
|
751
|
+
}), Br = _(() => {
|
|
751
752
|
let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.bars.dataLabels;
|
|
752
|
-
return
|
|
753
|
+
return zr.value.map((r) => String(m(e.formatter, r, o({
|
|
753
754
|
p: t,
|
|
754
755
|
v: r,
|
|
755
756
|
s: n,
|
|
756
757
|
r: e.rounding
|
|
757
758
|
}), { datapoint: { value: r } }) ?? "")).join("|");
|
|
758
759
|
});
|
|
759
|
-
|
|
760
|
-
|
|
760
|
+
$e(() => [
|
|
761
|
+
Br.value,
|
|
761
762
|
z.value.orientation,
|
|
762
763
|
z.value.style.chart.grid.y.axisLabels.show,
|
|
763
764
|
z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
764
765
|
z.value.style.chart.grid.y.axisLabels.bold,
|
|
765
766
|
z.value.style.chart.grid.y.position
|
|
766
767
|
], () => {
|
|
767
|
-
z.value.style.chart.grid.y.axisLabels.show &&
|
|
768
|
+
z.value.style.chart.grid.y.axisLabels.show && Un();
|
|
768
769
|
}, { flush: "post" });
|
|
769
|
-
let Q = E([]),
|
|
770
|
-
|
|
771
|
-
let e = ++
|
|
770
|
+
let Q = E([]), Vr = E([]), Hr = 0;
|
|
771
|
+
et(() => {
|
|
772
|
+
let e = ++Hr;
|
|
772
773
|
(async () => {
|
|
773
774
|
let t = await he({
|
|
774
775
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -777,12 +778,12 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
777
778
|
start: J.value.start,
|
|
778
779
|
end: J.value.end
|
|
779
780
|
});
|
|
780
|
-
e ===
|
|
781
|
+
e === Hr && (Q.value = t);
|
|
781
782
|
})();
|
|
782
783
|
});
|
|
783
|
-
let
|
|
784
|
-
|
|
785
|
-
let e = ++
|
|
784
|
+
let Ur = 0;
|
|
785
|
+
et(() => {
|
|
786
|
+
let e = ++Ur;
|
|
786
787
|
(async () => {
|
|
787
788
|
let t = await he({
|
|
788
789
|
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -791,49 +792,49 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
791
792
|
start: 0,
|
|
792
793
|
end: q.value
|
|
793
794
|
});
|
|
794
|
-
e ===
|
|
795
|
+
e === Ur && (Vr.value = t);
|
|
795
796
|
})();
|
|
796
797
|
});
|
|
797
|
-
let
|
|
798
|
+
let Wr = _(() => {
|
|
798
799
|
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
799
800
|
return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
|
|
800
|
-
}),
|
|
801
|
-
let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n =
|
|
802
|
-
return
|
|
801
|
+
}), Gr = _(() => {
|
|
802
|
+
let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = Vr.value || [], r = J.value.start ?? 0, a = L.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? "");
|
|
803
|
+
return ue(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Wr.value || 1), s, c, r, a, o);
|
|
803
804
|
});
|
|
804
|
-
|
|
805
|
-
z.value.orientation, z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
805
|
+
et(() => {
|
|
806
|
+
z.value.orientation, z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, Gr.value?.map((e) => e?.text ?? "").join("|"), Br.value, H.value.width, H.value.height, jn.value, An.value, On.value, Sr();
|
|
806
807
|
}, { flush: "post" });
|
|
807
|
-
let
|
|
808
|
+
let Kr = E({
|
|
808
809
|
months: [],
|
|
809
810
|
shortMonths: [],
|
|
810
811
|
days: [],
|
|
811
812
|
shortDays: []
|
|
812
|
-
}),
|
|
813
|
-
|
|
814
|
-
let e = ++
|
|
813
|
+
}), qr = 0;
|
|
814
|
+
et(() => {
|
|
815
|
+
let e = ++qr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
815
816
|
(async () => {
|
|
816
817
|
let n = await me(t.locale).catch(() => me("en"));
|
|
817
|
-
e ===
|
|
818
|
+
e === qr && (Kr.value = n.data);
|
|
818
819
|
})();
|
|
819
820
|
});
|
|
820
|
-
let
|
|
821
|
+
let Jr = _(() => {
|
|
821
822
|
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
|
|
822
823
|
useUTC: e.useUTC,
|
|
823
|
-
locale:
|
|
824
|
+
locale: Kr.value,
|
|
824
825
|
januaryAsYear: e.januaryAsYear
|
|
825
826
|
});
|
|
826
827
|
return (e, n) => {
|
|
827
828
|
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
828
829
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
829
830
|
};
|
|
830
|
-
}),
|
|
831
|
-
text:
|
|
831
|
+
}), Yr = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
832
|
+
text: Jr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
832
833
|
absoluteIndex: t
|
|
833
|
-
}))),
|
|
834
|
-
text:
|
|
834
|
+
}))), Xr = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
835
|
+
text: Jr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
835
836
|
absoluteIndex: t
|
|
836
|
-
}))),
|
|
837
|
+
}))), Zr = _(() => {
|
|
837
838
|
let e = /* @__PURE__ */ new Map();
|
|
838
839
|
return (z.value.style.chart.grid.x.timeLabels.values || []).forEach((t) => {
|
|
839
840
|
if ([
|
|
@@ -845,7 +846,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
845
846
|
e.set(n, (e.get(n) || 0) + 1);
|
|
846
847
|
}), e;
|
|
847
848
|
});
|
|
848
|
-
function
|
|
849
|
+
function Qr(e) {
|
|
849
850
|
let t = (z.value.style.chart.grid.x.timeLabels.values || [])[e];
|
|
850
851
|
if ([
|
|
851
852
|
null,
|
|
@@ -853,40 +854,40 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
853
854
|
""
|
|
854
855
|
].includes(t)) return `fallback-${e}`;
|
|
855
856
|
let n = String(t);
|
|
856
|
-
return (
|
|
857
|
+
return (Zr.value.get(n) || 0) > 1 ? `${n}-${e}` : n;
|
|
857
858
|
}
|
|
858
|
-
function
|
|
859
|
-
return `${e.datasetKey}:${
|
|
859
|
+
function $r(e, t) {
|
|
860
|
+
return `${e.datasetKey}:${Qr(t)}`;
|
|
860
861
|
}
|
|
861
862
|
let $ = _(() => {
|
|
862
|
-
if (!
|
|
863
|
-
let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...
|
|
863
|
+
if (!ln.value && !Kn.value) return [];
|
|
864
|
+
let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Lr.value.positive) || 0, o = Math.min(...Lr.value.negative), s = [
|
|
864
865
|
-Infinity,
|
|
865
866
|
Infinity,
|
|
866
867
|
NaN,
|
|
867
868
|
void 0,
|
|
868
869
|
null
|
|
869
|
-
].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? ie(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : ae(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width,
|
|
870
|
+
].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? ie(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : ae(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width, p = Z.value[0] ? Z.value[0].zero : G.value.bottom, ee = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, te = Array(Pr.value.length).fill(0), ne = Array(Pr.value.length).fill(0);
|
|
870
871
|
return K.value.filter((e) => !I.value.includes(e.id)).map((a) => {
|
|
871
|
-
let o = a.series.slice(), s = o.map((e, t) =>
|
|
872
|
+
let o = a.series.slice(), s = o.map((e, t) => te[t]), c = o.map((e, t) => ne[t]);
|
|
872
873
|
o.forEach((e, t) => {
|
|
873
|
-
(Number(e) || 0) >= 0 ?
|
|
874
|
+
(Number(e) || 0) >= 0 ? te[t] += Number(e) || 0 : ne[t] += Math.abs(Number(e) || 0);
|
|
874
875
|
});
|
|
875
|
-
let l = a.series.slice(J.value.start, J.value.end),
|
|
876
|
+
let l = a.series.slice(J.value.start, J.value.end), re = a.signedSeries.slice(J.value.start, J.value.end), ie = l.map((e, t) => $r(a, J.value.start + t)), ae = o.map((e, t) => $r(a, t)), m = l.map((e, t) => G.value.left + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), h = (Pr.value || []).filter(Number.isFinite), oe = h.length ? Math.max(...h) : 0, se = h.length ? Math.min(...h) : 0;
|
|
876
877
|
function ce({ minimapH: e }) {
|
|
877
|
-
let t = 1e-9, n =
|
|
878
|
-
if (n &&
|
|
879
|
-
let n = Math.max(
|
|
878
|
+
let t = 1e-9, n = oe > 0;
|
|
879
|
+
if (n && se < 0) {
|
|
880
|
+
let n = Math.max(oe, Math.abs(se)) || t;
|
|
880
881
|
return {
|
|
881
882
|
pxPerUnit: e / 2 / n,
|
|
882
883
|
zero: e / 2
|
|
883
884
|
};
|
|
884
885
|
}
|
|
885
886
|
return n ? {
|
|
886
|
-
pxPerUnit: e / Math.max(t,
|
|
887
|
+
pxPerUnit: e / Math.max(t, oe),
|
|
887
888
|
zero: e
|
|
888
889
|
} : {
|
|
889
|
-
pxPerUnit: e / Math.max(t, Math.abs(
|
|
890
|
+
pxPerUnit: e / Math.max(t, Math.abs(se)),
|
|
890
891
|
zero: 0
|
|
891
892
|
};
|
|
892
893
|
}
|
|
@@ -894,11 +895,11 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
894
895
|
let n = t * (z.value.style.chart.bars.gapRatio / 4);
|
|
895
896
|
return o.map((r, a) => e + t * a + n);
|
|
896
897
|
}, ue = l.map((e, t) => G.value.top + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), de = l.map((t, r) => {
|
|
897
|
-
let a = z.value.style.chart.bars.distributed ? (t || 0) /
|
|
898
|
-
return t > 0 ? (s = d * a, o =
|
|
898
|
+
let a = z.value.style.chart.bars.distributed ? (t || 0) / Mr.value[r] : (t || 0) / u, o, s;
|
|
899
|
+
return t > 0 ? (s = d * a, o = p - s - e[r], e[r] += s) : (s = d * a, o = p + n[r], n[r] += Math.abs(s)), o;
|
|
899
900
|
}), fe = ({ minimapH: e }) => {
|
|
900
901
|
if (z.value.style.chart.bars.distributed) return o.map((t, n) => {
|
|
901
|
-
let r = Math.abs(Number(t) || 0), a = Math.abs(
|
|
902
|
+
let r = Math.abs(Number(t) || 0), a = Math.abs(Pr.value?.[n] || 0) || 1e-9;
|
|
902
903
|
return e - (s[n] + r) / a * e;
|
|
903
904
|
});
|
|
904
905
|
let { pxPerUnit: t, zero: n } = ce({ minimapH: e });
|
|
@@ -907,27 +908,27 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
907
908
|
return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
|
|
908
909
|
});
|
|
909
910
|
}, pe = l.map((e, n) => {
|
|
910
|
-
let a = z.value.style.chart.bars.distributed ? (e || 0) /
|
|
911
|
-
return e > 0 ? (s = f * a, o =
|
|
911
|
+
let a = z.value.style.chart.bars.distributed ? (e || 0) / Mr.value[n] : (e || 0) / u, o, s;
|
|
912
|
+
return e > 0 ? (s = f * a, o = ee + t[n], t[n] += s) : (s = f * a, o = ee - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
|
|
912
913
|
}), me = l.map((e, t) => {
|
|
913
|
-
let n = z.value.style.chart.bars.distributed ? (e || 0) /
|
|
914
|
+
let n = z.value.style.chart.bars.distributed ? (e || 0) / Mr.value[t] : (e || 0) / u;
|
|
914
915
|
return e > 0 ? d * n : d * Math.abs(n);
|
|
915
916
|
}), he = ({ minimapH: e }) => {
|
|
916
|
-
if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(
|
|
917
|
+
if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Pr.value?.[n] || 0) || 1e-9) * e);
|
|
917
918
|
let { pxPerUnit: t } = ce({ minimapH: e });
|
|
918
919
|
return o.map((e) => Math.abs(Number(e) || 0) * t);
|
|
919
920
|
}, ge = l.map((e, t) => {
|
|
920
|
-
let n = z.value.style.chart.bars.distributed ? (e || 0) /
|
|
921
|
+
let n = z.value.style.chart.bars.distributed ? (e || 0) / Mr.value[t] : (e || 0) / u;
|
|
921
922
|
return e > 0 ? f * n : f * Math.abs(n);
|
|
922
923
|
}), _e = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
|
|
923
924
|
return {
|
|
924
925
|
...a,
|
|
925
|
-
proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) /
|
|
926
|
+
proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Mr.value[t] : (e || 0) / _e),
|
|
926
927
|
series: l,
|
|
927
|
-
signedSeries:
|
|
928
|
-
rectKeys:
|
|
929
|
-
minimapRectKeys:
|
|
930
|
-
x:
|
|
928
|
+
signedSeries: re,
|
|
929
|
+
rectKeys: ie,
|
|
930
|
+
minimapRectKeys: ae,
|
|
931
|
+
x: m,
|
|
931
932
|
y: de,
|
|
932
933
|
height: me,
|
|
933
934
|
horizontal_width: ge,
|
|
@@ -938,15 +939,15 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
938
939
|
heightMinimap: he
|
|
939
940
|
};
|
|
940
941
|
});
|
|
941
|
-
}),
|
|
942
|
+
}), ei = _(() => Ir.value.map((e, t) => ({
|
|
942
943
|
value: e,
|
|
943
944
|
sign: e >= 0 ? 1 : -1
|
|
944
945
|
})));
|
|
945
|
-
function
|
|
946
|
-
let
|
|
947
|
-
return
|
|
946
|
+
function ti(e, t, n, r, a) {
|
|
947
|
+
let s = a === -1 && e >= 0 ? -e : e;
|
|
948
|
+
return m(z.value.style.chart.bars.dataLabels.formatter, s, o({
|
|
948
949
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
949
|
-
v:
|
|
950
|
+
v: s,
|
|
950
951
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
951
952
|
r: z.value.style.chart.bars.dataLabels.rounding
|
|
952
953
|
}), {
|
|
@@ -955,8 +956,8 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
955
956
|
datapointIndex: r
|
|
956
957
|
});
|
|
957
958
|
}
|
|
958
|
-
function
|
|
959
|
-
return
|
|
959
|
+
function ni(e, t, n, r) {
|
|
960
|
+
return m(z.value.style.chart.bars.dataLabels.formatter, e, o({
|
|
960
961
|
v: isNaN(e) ? 0 : e,
|
|
961
962
|
s: "%",
|
|
962
963
|
r: z.value.style.chart.bars.dataLabels.rounding
|
|
@@ -966,7 +967,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
966
967
|
datapointIndex: r
|
|
967
968
|
});
|
|
968
969
|
}
|
|
969
|
-
function
|
|
970
|
+
function ri(e) {
|
|
970
971
|
let t = JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
971
972
|
name: t.name,
|
|
972
973
|
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
@@ -982,7 +983,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
982
983
|
period: Q.value[e]
|
|
983
984
|
});
|
|
984
985
|
}
|
|
985
|
-
function
|
|
986
|
+
function ii(e) {
|
|
986
987
|
return JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
987
988
|
name: t.name,
|
|
988
989
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -990,21 +991,21 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
990
991
|
proportion: t.proportions[e] || null,
|
|
991
992
|
color: t.color,
|
|
992
993
|
id: t.id,
|
|
993
|
-
timeLabel:
|
|
994
|
+
timeLabel: Vr.value[e]
|
|
994
995
|
}));
|
|
995
996
|
}
|
|
996
|
-
function
|
|
997
|
+
function ai(e) {
|
|
997
998
|
if (z.value.events.datapointLeave) {
|
|
998
|
-
let t =
|
|
999
|
+
let t = ii(e);
|
|
999
1000
|
z.value.events.datapointLeave({
|
|
1000
1001
|
datapoint: t,
|
|
1001
1002
|
seriesIndex: e + J.value.start
|
|
1002
1003
|
});
|
|
1003
1004
|
}
|
|
1004
|
-
|
|
1005
|
+
un.value = !1, L.value = null, R.value === e && (R.value = null);
|
|
1005
1006
|
}
|
|
1006
|
-
let
|
|
1007
|
-
|
|
1007
|
+
let oi = _(() => Array(q.value).fill(0).map((e, t) => ii(t)));
|
|
1008
|
+
$e(() => M.selectedXIndex, (e) => {
|
|
1008
1009
|
if ([null, void 0].includes(M.selectedXIndex)) {
|
|
1009
1010
|
L.value = null;
|
|
1010
1011
|
return;
|
|
@@ -1012,79 +1013,79 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1012
1013
|
let t = e - J.value.start;
|
|
1013
1014
|
t < 0 || e >= J.value.end ? L.value = null : L.value = t ?? null;
|
|
1014
1015
|
}, { immediate: !0 });
|
|
1015
|
-
function
|
|
1016
|
+
function si(e) {
|
|
1016
1017
|
if (!z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
1017
|
-
let t = Q.value?.[e]?.text || null, n =
|
|
1018
|
+
let t = Q.value?.[e]?.text || null, n = Xr.value?.[e]?.text || null, r = Vr.value?.[e]?.text || null;
|
|
1018
1019
|
return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
1019
1020
|
}
|
|
1020
|
-
function
|
|
1021
|
-
if (
|
|
1022
|
-
|
|
1023
|
-
let n = z.value.style.chart.tooltip.customFormat, r =
|
|
1024
|
-
|
|
1021
|
+
function ci(e, t = "pointer") {
|
|
1022
|
+
if (Nr.value) return;
|
|
1023
|
+
zn.value = t, R.value = e, L.value = e, un.value = !0;
|
|
1024
|
+
let n = z.value.style.chart.tooltip.customFormat, r = ii(e);
|
|
1025
|
+
qi({
|
|
1025
1026
|
seriesIndex: e,
|
|
1026
1027
|
datapoint: r
|
|
1027
1028
|
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
1028
1029
|
datapoint: r,
|
|
1029
1030
|
seriesIndex: e + J.value.start
|
|
1030
|
-
}),
|
|
1031
|
-
timeLabel:
|
|
1031
|
+
}), dn.value = {
|
|
1032
|
+
timeLabel: si(e),
|
|
1032
1033
|
datapoint: r,
|
|
1033
1034
|
seriesIndex: e,
|
|
1034
1035
|
config: z.value,
|
|
1035
1036
|
series: $.value
|
|
1036
1037
|
};
|
|
1037
|
-
let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0),
|
|
1038
|
-
if (
|
|
1038
|
+
let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), s = r.map((e) => h(e.value)).reduce((e, t) => e + t, 0);
|
|
1039
|
+
if (fe(n) && ce(() => n({
|
|
1039
1040
|
seriesIndex: e,
|
|
1040
1041
|
datapoint: r,
|
|
1041
1042
|
series: $.value,
|
|
1042
1043
|
config: z.value
|
|
1043
|
-
})))
|
|
1044
|
+
}))) fn.value = n({
|
|
1044
1045
|
seriesIndex: e,
|
|
1045
1046
|
datapoint: r,
|
|
1046
1047
|
series: $.value,
|
|
1047
1048
|
config: z.value
|
|
1048
1049
|
});
|
|
1049
1050
|
else {
|
|
1050
|
-
let { showValue: t, showTotal: n, totalTranslation:
|
|
1051
|
-
ee && (
|
|
1052
|
-
<span>${
|
|
1051
|
+
let { showValue: t, showTotal: n, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage: f } = z.value.style.chart.tooltip, p = "", ee = si(e);
|
|
1052
|
+
ee && (p += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), n && (p += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1053
|
+
<span>${c}:</span>
|
|
1053
1054
|
<span>
|
|
1054
|
-
${
|
|
1055
|
+
${m(z.value.style.chart.bars.dataLabels.formatter, s, o({
|
|
1055
1056
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1056
|
-
v:
|
|
1057
|
+
v: s,
|
|
1057
1058
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1058
|
-
r:
|
|
1059
|
+
r: d
|
|
1059
1060
|
}), { datapoint: {
|
|
1060
|
-
name:
|
|
1061
|
-
value:
|
|
1061
|
+
name: c,
|
|
1062
|
+
value: s
|
|
1062
1063
|
} })}
|
|
1063
1064
|
</span>
|
|
1064
1065
|
</div>`);
|
|
1065
|
-
let te = [t &&
|
|
1066
|
+
let te = [t && l ? "(" : "", t && l ? ")" : ""];
|
|
1066
1067
|
r.reverse().forEach((e) => {
|
|
1067
|
-
|
|
1068
|
+
p += `
|
|
1068
1069
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1069
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${
|
|
1070
|
-
${e.name}${t ||
|
|
1070
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${cn.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${F.value}_${e.absoluteIndex})"/>` : ""}</svg>
|
|
1071
|
+
${e.name}${t || l ? ":" : ""} ${t ? m(z.value.style.chart.bars.dataLabels.formatter, e.value, o({
|
|
1071
1072
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1072
1073
|
v: e.value,
|
|
1073
1074
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1074
|
-
r:
|
|
1075
|
-
}, { datapoint: e })) : ""} ${te[0]}${
|
|
1075
|
+
r: d
|
|
1076
|
+
}, { datapoint: e })) : ""} ${te[0]}${l ? o({
|
|
1076
1077
|
v: isNaN(e.value / a) ? 0 : Math.abs(e.value) / a * 100,
|
|
1077
1078
|
s: "%",
|
|
1078
|
-
r:
|
|
1079
|
+
r: f
|
|
1079
1080
|
}) : ""}${te[1]}
|
|
1080
1081
|
</div>
|
|
1081
1082
|
`;
|
|
1082
|
-
}),
|
|
1083
|
+
}), fn.value = `<div>${p}</div>`;
|
|
1083
1084
|
}
|
|
1084
1085
|
}
|
|
1085
|
-
let
|
|
1086
|
+
let li = _(() => H.value.width), ui = _(() => H.value.height);
|
|
1086
1087
|
we({
|
|
1087
|
-
timeLabelsEls: z.value.orientation === "vertical" ?
|
|
1088
|
+
timeLabelsEls: z.value.orientation === "vertical" ? jn : An,
|
|
1088
1089
|
timeLabels: Q,
|
|
1089
1090
|
slicer: J,
|
|
1090
1091
|
configRef: z,
|
|
@@ -1106,26 +1107,26 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1106
1107
|
"enable"
|
|
1107
1108
|
],
|
|
1108
1109
|
isAutoSize: !1,
|
|
1109
|
-
width:
|
|
1110
|
-
height:
|
|
1110
|
+
width: li,
|
|
1111
|
+
height: ui,
|
|
1111
1112
|
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
1112
1113
|
});
|
|
1113
|
-
function
|
|
1114
|
-
|
|
1114
|
+
function di(e) {
|
|
1115
|
+
vn.value = e, pn.value += 1;
|
|
1115
1116
|
}
|
|
1116
|
-
function
|
|
1117
|
+
function fi() {
|
|
1117
1118
|
V.value.showTable = !V.value.showTable;
|
|
1118
1119
|
}
|
|
1119
|
-
function
|
|
1120
|
+
function pi() {
|
|
1120
1121
|
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
1121
1122
|
}
|
|
1122
|
-
function
|
|
1123
|
+
function mi() {
|
|
1123
1124
|
V.value.showTooltip = !V.value.showTooltip;
|
|
1124
1125
|
}
|
|
1125
|
-
function
|
|
1126
|
+
function hi() {
|
|
1126
1127
|
return $.value;
|
|
1127
1128
|
}
|
|
1128
|
-
let
|
|
1129
|
+
let gi = _(() => {
|
|
1129
1130
|
if ($.value.length === 0) return {
|
|
1130
1131
|
head: [],
|
|
1131
1132
|
body: [],
|
|
@@ -1146,18 +1147,18 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1146
1147
|
body: t
|
|
1147
1148
|
};
|
|
1148
1149
|
});
|
|
1149
|
-
function
|
|
1150
|
+
function _i(e = null) {
|
|
1150
1151
|
let t = [
|
|
1151
1152
|
[z.value.style.chart.title.text],
|
|
1152
1153
|
[z.value.style.chart.title.subtitle.text],
|
|
1153
1154
|
[""]
|
|
1154
|
-
], n = ["", ...
|
|
1155
|
-
e ? e(a) :
|
|
1155
|
+
], n = ["", ...gi.value.head.map((e) => e.label)], r = gi.value.body, a = u(t.concat([n]).concat(r));
|
|
1156
|
+
e ? e(a) : te({
|
|
1156
1157
|
csvContent: a,
|
|
1157
1158
|
title: z.value.style.chart.title.text || "vue-ui-stackbar"
|
|
1158
1159
|
});
|
|
1159
1160
|
}
|
|
1160
|
-
let
|
|
1161
|
+
let vi = _(() => {
|
|
1161
1162
|
let e = [""].concat($.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = J.value.end - J.value.start;
|
|
1162
1163
|
for (let e = 0; e < n; e += 1) {
|
|
1163
1164
|
let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1183,12 +1184,12 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1183
1184
|
colNames: a
|
|
1184
1185
|
};
|
|
1185
1186
|
});
|
|
1186
|
-
function
|
|
1187
|
-
I.value.length ? I.value = [] :
|
|
1187
|
+
function yi() {
|
|
1188
|
+
I.value.length ? I.value = [] : wi.value.forEach((e) => {
|
|
1188
1189
|
I.value.push(e.id);
|
|
1189
1190
|
}), N("selectLegend", $.value);
|
|
1190
1191
|
}
|
|
1191
|
-
function
|
|
1192
|
+
function bi(e) {
|
|
1192
1193
|
if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
|
|
1193
1194
|
else {
|
|
1194
1195
|
if (I.value.length === K.value.length - 1) return;
|
|
@@ -1196,37 +1197,37 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1196
1197
|
}
|
|
1197
1198
|
N("selectLegend", $.value);
|
|
1198
1199
|
}
|
|
1199
|
-
function
|
|
1200
|
+
function xi(e) {
|
|
1200
1201
|
return K.value.length ? K.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiStackbar - There are no series to show."), null);
|
|
1201
1202
|
}
|
|
1202
|
-
function
|
|
1203
|
-
let t =
|
|
1204
|
-
t !== null && I.value.includes(t.id) &&
|
|
1203
|
+
function Si(e) {
|
|
1204
|
+
let t = xi(e);
|
|
1205
|
+
t !== null && I.value.includes(t.id) && bi({ id: t.id });
|
|
1205
1206
|
}
|
|
1206
|
-
function
|
|
1207
|
-
let t =
|
|
1208
|
-
t !== null && (I.value.includes(t.id) ||
|
|
1207
|
+
function Ci(e) {
|
|
1208
|
+
let t = xi(e);
|
|
1209
|
+
t !== null && (I.value.includes(t.id) || bi({ id: t.id }));
|
|
1209
1210
|
}
|
|
1210
|
-
let
|
|
1211
|
+
let wi = _(() => K.value.map((e, t) => ({
|
|
1211
1212
|
...e,
|
|
1212
1213
|
shape: "square"
|
|
1213
1214
|
})).map((e) => ({
|
|
1214
1215
|
...e,
|
|
1215
1216
|
opacity: I.value.includes(e.id) ? .5 : 1,
|
|
1216
|
-
segregate: () =>
|
|
1217
|
+
segregate: () => bi(e),
|
|
1217
1218
|
isSegregated: I.value.includes(e.id)
|
|
1218
|
-
}))),
|
|
1219
|
+
}))), Ti = _(() => ({
|
|
1219
1220
|
cy: "stackbar-legend",
|
|
1220
1221
|
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1221
1222
|
color: z.value.style.chart.legend.color,
|
|
1222
1223
|
fontSize: z.value.style.chart.legend.fontSize,
|
|
1223
1224
|
paddingBottom: 12,
|
|
1224
1225
|
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1225
|
-
})),
|
|
1226
|
-
function
|
|
1227
|
-
|
|
1226
|
+
})), Ei = E(!1);
|
|
1227
|
+
function Di() {
|
|
1228
|
+
Ei.value = !Ei.value;
|
|
1228
1229
|
}
|
|
1229
|
-
function
|
|
1230
|
+
function Oi(e, t) {
|
|
1230
1231
|
N("selectTimeLabel", {
|
|
1231
1232
|
datapoint: JSON.parse(JSON.stringify($.value)).map((e) => ({
|
|
1232
1233
|
name: e.name,
|
|
@@ -1239,11 +1240,11 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1239
1240
|
label: e.text
|
|
1240
1241
|
});
|
|
1241
1242
|
}
|
|
1242
|
-
let
|
|
1243
|
-
function
|
|
1244
|
-
return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ?
|
|
1243
|
+
let ki = _(() => Math.max(...$.value.flatMap((e) => e.series)));
|
|
1244
|
+
function Ai(e, t) {
|
|
1245
|
+
return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? rr.value ? t * 100 >= z.value.style.chart.bars.dataLabels.hideUnderPercentage : z.value.style.chart.bars.dataLabels.hideEmptyPercentages ? t > 0 : !0 : rr.value ? (nr.value && dr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > ki.value * z.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : nr.value ? Math.abs(e) >= z.value.style.chart.bars.dataLabels.hideUnderValue : z.value.style.chart.bars.dataLabels.hideEmptyValues ? e !== 0 : !0;
|
|
1245
1246
|
}
|
|
1246
|
-
async function
|
|
1247
|
+
async function ji({ scale: e = 2 } = {}) {
|
|
1247
1248
|
if (!P.value) return;
|
|
1248
1249
|
let { imageUri: t, base64: n } = await Te({
|
|
1249
1250
|
domElement: P.value,
|
|
@@ -1254,7 +1255,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1254
1255
|
width: r.width,
|
|
1255
1256
|
height: r.height,
|
|
1256
1257
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1257
|
-
}, o = await
|
|
1258
|
+
}, o = await se(t, e) ?? a;
|
|
1258
1259
|
return {
|
|
1259
1260
|
imageUri: t,
|
|
1260
1261
|
base64: n,
|
|
@@ -1262,17 +1263,17 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1262
1263
|
...o
|
|
1263
1264
|
};
|
|
1264
1265
|
}
|
|
1265
|
-
let
|
|
1266
|
+
let Mi = _(() => {
|
|
1266
1267
|
let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
|
|
1267
1268
|
return {
|
|
1268
|
-
component: e ?
|
|
1269
|
+
component: e ? rn : Qt,
|
|
1269
1270
|
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1270
1271
|
props: e ? {
|
|
1271
1272
|
backgroundColor: z.value.table.th.backgroundColor,
|
|
1272
1273
|
color: z.value.table.th.color,
|
|
1273
1274
|
headerColor: z.value.table.th.color,
|
|
1274
1275
|
headerBg: z.value.table.th.backgroundColor,
|
|
1275
|
-
isFullscreen:
|
|
1276
|
+
isFullscreen: vn.value,
|
|
1276
1277
|
fullscreenParent: P.value,
|
|
1277
1278
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1278
1279
|
isCursorPointer: B.value
|
|
@@ -1293,76 +1294,76 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1293
1294
|
}
|
|
1294
1295
|
};
|
|
1295
1296
|
});
|
|
1296
|
-
|
|
1297
|
-
z.value.table.show || (e && z.value.table.useDialog &&
|
|
1297
|
+
$e(() => V.value.showTable, (e) => {
|
|
1298
|
+
z.value.table.show || (e && z.value.table.useDialog && wn.value ? wn.value.open() : "close" in wn.value && wn.value.close());
|
|
1298
1299
|
});
|
|
1299
|
-
function
|
|
1300
|
-
V.value.showTable = !1,
|
|
1300
|
+
function Ni() {
|
|
1301
|
+
V.value.showTable = !1, Tn.value && Tn.value.setTableIconState(!1);
|
|
1301
1302
|
}
|
|
1302
|
-
let
|
|
1303
|
-
svg:
|
|
1303
|
+
let Pi = _(() => z.value.style.chart.backgroundColor), Fi = _(() => z.value.style.chart.legend), { exportSvg: Ii, getSvg: Li } = be({
|
|
1304
|
+
svg: Qn,
|
|
1304
1305
|
title: _(() => z.value.style.chart.title),
|
|
1305
|
-
legend:
|
|
1306
|
-
legendItems:
|
|
1307
|
-
backgroundColor:
|
|
1306
|
+
legend: Fi,
|
|
1307
|
+
legendItems: wi,
|
|
1308
|
+
backgroundColor: Pi
|
|
1308
1309
|
});
|
|
1309
|
-
async function
|
|
1310
|
-
|
|
1310
|
+
async function Ri({ isCb: e }) {
|
|
1311
|
+
Dn.value = !0, await Ge();
|
|
1311
1312
|
try {
|
|
1312
1313
|
if (e) {
|
|
1313
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1314
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Li();
|
|
1314
1315
|
await Promise.resolve(z.value.userOptions.callbacks.svg({
|
|
1315
1316
|
blob: e,
|
|
1316
1317
|
url: t,
|
|
1317
1318
|
text: n,
|
|
1318
1319
|
dataUrl: r
|
|
1319
1320
|
}));
|
|
1320
|
-
} else await Promise.resolve(
|
|
1321
|
+
} else await Promise.resolve(Ii());
|
|
1321
1322
|
} finally {
|
|
1322
|
-
|
|
1323
|
+
Dn.value = !1;
|
|
1323
1324
|
}
|
|
1324
1325
|
}
|
|
1325
|
-
function
|
|
1326
|
+
function zi(e) {
|
|
1326
1327
|
if (e?.stage === "start") {
|
|
1327
|
-
|
|
1328
|
+
En.value = !0;
|
|
1328
1329
|
return;
|
|
1329
1330
|
}
|
|
1330
1331
|
if (e?.stage === "end") {
|
|
1331
|
-
|
|
1332
|
+
En.value = !1;
|
|
1332
1333
|
return;
|
|
1333
1334
|
}
|
|
1334
|
-
|
|
1335
|
+
sr();
|
|
1335
1336
|
}
|
|
1336
|
-
function
|
|
1337
|
+
function Bi(e) {
|
|
1337
1338
|
let t = q.value;
|
|
1338
1339
|
return e > t ? t : e < 0 || e < J.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
|
|
1339
1340
|
}
|
|
1340
|
-
let
|
|
1341
|
-
function
|
|
1342
|
-
if (!
|
|
1343
|
-
|
|
1341
|
+
let Vi = E(!1), Hi = E(!1);
|
|
1342
|
+
function Ui() {
|
|
1343
|
+
if (!Vi.value) {
|
|
1344
|
+
Vi.value = !0;
|
|
1344
1345
|
try {
|
|
1345
1346
|
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, q.value) : q.value;
|
|
1346
1347
|
if (n && r <= 0) return;
|
|
1347
|
-
let a = e ?? 0, o = t == null ? r : Math.min(
|
|
1348
|
-
|
|
1348
|
+
let a = e ?? 0, o = t == null ? r : Math.min(Bi(t + 1), r);
|
|
1349
|
+
Wi.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, Or(), Hi.value = !0;
|
|
1349
1350
|
} finally {
|
|
1350
1351
|
queueMicrotask(() => {
|
|
1351
|
-
|
|
1352
|
-
}),
|
|
1352
|
+
Wi.value = !1;
|
|
1353
|
+
}), Vi.value = !1;
|
|
1353
1354
|
}
|
|
1354
1355
|
}
|
|
1355
1356
|
}
|
|
1356
|
-
let
|
|
1357
|
-
function
|
|
1358
|
-
|
|
1357
|
+
let Wi = E(!1);
|
|
1358
|
+
function Gi(e) {
|
|
1359
|
+
Vi.value || Wi.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, Or());
|
|
1359
1360
|
}
|
|
1360
|
-
function
|
|
1361
|
-
if (
|
|
1362
|
-
let t =
|
|
1363
|
-
t !== J.value.end && (J.value.end = t, Y.value.end = t,
|
|
1361
|
+
function Ki(e) {
|
|
1362
|
+
if (Vi.value || Wi.value) return;
|
|
1363
|
+
let t = Bi(e);
|
|
1364
|
+
t !== J.value.end && (J.value.end = t, Y.value.end = t, Or());
|
|
1364
1365
|
}
|
|
1365
|
-
function
|
|
1366
|
+
function qi({ seriesIndex: e, datapoint: t }) {
|
|
1366
1367
|
let n = J.value.start + e;
|
|
1367
1368
|
N("selectX", {
|
|
1368
1369
|
dataset: t,
|
|
@@ -1370,11 +1371,11 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1370
1371
|
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
1371
1372
|
});
|
|
1372
1373
|
}
|
|
1373
|
-
function
|
|
1374
|
+
function Ji() {
|
|
1374
1375
|
return { y0: Z.value?.[0]?.zero ?? G.value.bottom };
|
|
1375
1376
|
}
|
|
1376
|
-
function
|
|
1377
|
-
let { y0: t } =
|
|
1377
|
+
function Yi(e) {
|
|
1378
|
+
let { y0: t } = Ji(), n = z.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
|
|
1378
1379
|
for (let t of $.value || []) {
|
|
1379
1380
|
let n = t?.series?.[e] ?? 0, r = t?.height?.[e] ?? 0, s = t?.y?.[e];
|
|
1380
1381
|
n > 0 && r > 0 && Number.isFinite(s) && (o = !0, s < a && (a = s));
|
|
@@ -1382,15 +1383,15 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1382
1383
|
let s = (o && Number.isFinite(a) ? a : t) - r;
|
|
1383
1384
|
return Math.min(Math.max(s, 0), G.value.bottom);
|
|
1384
1385
|
}
|
|
1385
|
-
function
|
|
1386
|
-
let { x0: t } =
|
|
1386
|
+
function Xi(e) {
|
|
1387
|
+
let { x0: t } = Ji(), n = Math.max(2, z.value.style.chart.bars.totalValues.fontSize * .3 + z.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
|
|
1387
1388
|
for (let t of $.value || []) {
|
|
1388
1389
|
let n = t?.series?.[e] ?? 0, o = t?.horizontal_x?.[e], s = t?.horizontal_width?.[e], c = Number.isFinite(s) ? Math.max(0, s) : 0;
|
|
1389
1390
|
Number.isFinite(o) && n > 0 && c > 0 && (a = !0, r = Math.max(r, o + c));
|
|
1390
1391
|
}
|
|
1391
1392
|
return (a && Number.isFinite(r) ? r : t) + n;
|
|
1392
1393
|
}
|
|
1393
|
-
async function
|
|
1394
|
+
async function Zi() {
|
|
1394
1395
|
if (N("copyAlt", {
|
|
1395
1396
|
config: z.value,
|
|
1396
1397
|
dataset: $.value
|
|
@@ -1403,25 +1404,25 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1403
1404
|
dataset: $.value
|
|
1404
1405
|
}));
|
|
1405
1406
|
}
|
|
1406
|
-
let
|
|
1407
|
-
function
|
|
1408
|
-
R.value = null,
|
|
1407
|
+
let Qi = E(!1);
|
|
1408
|
+
function $i() {
|
|
1409
|
+
R.value = null, Qi.value = !0;
|
|
1409
1410
|
}
|
|
1410
|
-
function
|
|
1411
|
-
R.value = null,
|
|
1411
|
+
function ea() {
|
|
1412
|
+
R.value = null, un.value = !1, L.value = null, N("selectX", {
|
|
1412
1413
|
index: null,
|
|
1413
1414
|
indexLabel: null,
|
|
1414
1415
|
dataset: null
|
|
1415
|
-
}),
|
|
1416
|
+
}), Qi.value = !1;
|
|
1416
1417
|
}
|
|
1417
|
-
function
|
|
1418
|
-
if (!
|
|
1418
|
+
function ta(e) {
|
|
1419
|
+
if (!Qn.value || Ei.value || document.activeElement !== Qn.value || Nr.value || !J.value.end && J.value.end !== 0) return;
|
|
1419
1420
|
let t = z.value.orientation === "vertical", n = z.value.orientation === "horizontal", r = t && e.key === "ArrowLeft" || n && e.key === "ArrowUp", a = t && e.key === "ArrowRight" || n && e.key === "ArrowDown", o = e.key === "Enter" || e.key === " ", s = e.key === "Escape";
|
|
1420
1421
|
if (!r && !a && !o && !s) return;
|
|
1421
1422
|
let c = J.value.end - J.value.start;
|
|
1422
1423
|
if (c <= 0) return;
|
|
1423
1424
|
if (e.preventDefault(), e.stopPropagation(), s) {
|
|
1424
|
-
R.value = null,
|
|
1425
|
+
R.value = null, un.value = !1, L.value = null, N("selectX", {
|
|
1425
1426
|
index: null,
|
|
1426
1427
|
indexLabel: null,
|
|
1427
1428
|
dataset: null
|
|
@@ -1430,60 +1431,60 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1430
1431
|
}
|
|
1431
1432
|
if (o) {
|
|
1432
1433
|
if (R.value === null) return;
|
|
1433
|
-
|
|
1434
|
+
ri(R.value);
|
|
1434
1435
|
return;
|
|
1435
1436
|
}
|
|
1436
1437
|
let l = R.value, u = L.value;
|
|
1437
|
-
l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, R.value = l,
|
|
1438
|
+
l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, R.value = l, na(l), ci(l, "keyboard");
|
|
1438
1439
|
}
|
|
1439
|
-
function
|
|
1440
|
+
function na(e) {
|
|
1440
1441
|
if (!Number.isFinite(e)) return;
|
|
1441
1442
|
let t, n;
|
|
1442
1443
|
z.value.orientation === "vertical" ? (t = G.value.left + e * X.value + X.value / 2, n = G.value.top + G.value.height / 2) : (t = G.value.left + G.value.width / 2, n = G.value.top + e * X.value + X.value / 2);
|
|
1443
|
-
let
|
|
1444
|
-
|
|
1444
|
+
let r = f(t, n, Qn.value);
|
|
1445
|
+
r && (Rn.value = r);
|
|
1445
1446
|
}
|
|
1446
|
-
let
|
|
1447
|
-
headers:
|
|
1448
|
-
rows:
|
|
1447
|
+
let ra = _(() => ({
|
|
1448
|
+
headers: vi.value?.colNames ?? [],
|
|
1449
|
+
rows: vi.value?.body ?? []
|
|
1449
1450
|
}));
|
|
1450
1451
|
return Oe({
|
|
1451
|
-
getData:
|
|
1452
|
-
getImage:
|
|
1453
|
-
generatePdf:
|
|
1454
|
-
generateCsv:
|
|
1455
|
-
generateImage:
|
|
1456
|
-
generateSvg:
|
|
1457
|
-
hideSeries:
|
|
1458
|
-
showSeries:
|
|
1459
|
-
toggleTable:
|
|
1460
|
-
toggleLabels:
|
|
1461
|
-
toggleTooltip:
|
|
1462
|
-
toggleAnnotator:
|
|
1463
|
-
toggleFullscreen:
|
|
1464
|
-
copyAlt:
|
|
1452
|
+
getData: hi,
|
|
1453
|
+
getImage: ji,
|
|
1454
|
+
generatePdf: or,
|
|
1455
|
+
generateCsv: _i,
|
|
1456
|
+
generateImage: sr,
|
|
1457
|
+
generateSvg: Ri,
|
|
1458
|
+
hideSeries: Ci,
|
|
1459
|
+
showSeries: Si,
|
|
1460
|
+
toggleTable: fi,
|
|
1461
|
+
toggleLabels: pi,
|
|
1462
|
+
toggleTooltip: mi,
|
|
1463
|
+
toggleAnnotator: Di,
|
|
1464
|
+
toggleFullscreen: di,
|
|
1465
|
+
copyAlt: Zi
|
|
1465
1466
|
}), (t, r) => (T(), b("div", {
|
|
1466
1467
|
id: `stackbar_${F.value}`,
|
|
1467
1468
|
ref_key: "stackbarChart",
|
|
1468
1469
|
ref: P,
|
|
1469
|
-
class:
|
|
1470
|
+
class: Ke({
|
|
1470
1471
|
"vue-data-ui-component": !0,
|
|
1471
1472
|
"vue-ui-stackbar": !0,
|
|
1472
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
1473
|
+
"vue-data-ui-wrapper-fullscreen": vn.value
|
|
1473
1474
|
}),
|
|
1474
1475
|
style: w(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1475
|
-
onMouseenter:
|
|
1476
|
-
onMouseleave:
|
|
1476
|
+
onMouseenter: $n,
|
|
1477
|
+
onMouseleave: er
|
|
1477
1478
|
}, [
|
|
1478
1479
|
x("div", {
|
|
1479
1480
|
id: `chart-instructions-${F.value}`,
|
|
1480
1481
|
class: "sr-only"
|
|
1481
|
-
}, [x("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1482
|
-
|
|
1482
|
+
}, [x("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8, rt),
|
|
1483
|
+
ra.value?.rows?.length ? (T(), v(Pe, {
|
|
1483
1484
|
key: 0,
|
|
1484
1485
|
uid: F.value,
|
|
1485
|
-
head:
|
|
1486
|
-
body:
|
|
1486
|
+
head: ra.value.headers,
|
|
1487
|
+
body: ra.value.rows,
|
|
1487
1488
|
notice: z.value.a11y.translations.tableAvailable,
|
|
1488
1489
|
caption: z.value.a11y.translations.tableCaption
|
|
1489
1490
|
}, null, 8, [
|
|
@@ -1493,14 +1494,14 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1493
1494
|
"notice",
|
|
1494
1495
|
"caption"
|
|
1495
1496
|
])) : y("", !0),
|
|
1496
|
-
z.value.userOptions.buttons.annotator ? (T(), v(A(
|
|
1497
|
+
z.value.userOptions.buttons.annotator ? (T(), v(A(en), {
|
|
1497
1498
|
key: 1,
|
|
1498
|
-
svgRef: A(
|
|
1499
|
+
svgRef: A(Qn),
|
|
1499
1500
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1500
1501
|
color: z.value.style.chart.color,
|
|
1501
|
-
active:
|
|
1502
|
+
active: Ei.value,
|
|
1502
1503
|
isCursorPointer: B.value,
|
|
1503
|
-
onClose:
|
|
1504
|
+
onClose: Di
|
|
1504
1505
|
}, {
|
|
1505
1506
|
"annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1506
1507
|
"annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
|
|
@@ -1520,10 +1521,10 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1520
1521
|
z.value.style.chart.title.text ? (T(), b("div", {
|
|
1521
1522
|
key: 2,
|
|
1522
1523
|
ref_key: "chartTitle",
|
|
1523
|
-
ref:
|
|
1524
|
+
ref: mn,
|
|
1524
1525
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1525
1526
|
}, [(T(), v(Ee, {
|
|
1526
|
-
key: `title_${
|
|
1527
|
+
key: `title_${bn.value}`,
|
|
1527
1528
|
config: {
|
|
1528
1529
|
title: {
|
|
1529
1530
|
cy: "stackbar-title",
|
|
@@ -1535,15 +1536,15 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1535
1536
|
}
|
|
1536
1537
|
}
|
|
1537
1538
|
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1538
|
-
x("div", { id: `legend-top-${F.value}` }, null, 8,
|
|
1539
|
-
z.value.userOptions.show &&
|
|
1539
|
+
x("div", { id: `legend-top-${F.value}` }, null, 8, it),
|
|
1540
|
+
z.value.userOptions.show && ln.value && (A(Zn) || A(Yn)) ? (T(), v(A(tn), {
|
|
1540
1541
|
ref_key: "userOptionsRef",
|
|
1541
|
-
ref:
|
|
1542
|
-
key: `user_option_${
|
|
1542
|
+
ref: Tn,
|
|
1543
|
+
key: `user_option_${pn.value}`,
|
|
1543
1544
|
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1544
1545
|
color: z.value.style.chart.color,
|
|
1545
|
-
isPrinting: A(
|
|
1546
|
-
isImaging: A(
|
|
1546
|
+
isPrinting: A(ir),
|
|
1547
|
+
isImaging: A(ar),
|
|
1547
1548
|
uid: F.value,
|
|
1548
1549
|
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1549
1550
|
hasPdf: z.value.userOptions.buttons.pdf,
|
|
@@ -1554,29 +1555,29 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1554
1555
|
hasLabel: z.value.userOptions.buttons.labels,
|
|
1555
1556
|
hasFullscreen: z.value.userOptions.buttons.fullscreen,
|
|
1556
1557
|
hasAltCopy: z.value.userOptions.buttons.altCopy,
|
|
1557
|
-
isFullscreen:
|
|
1558
|
+
isFullscreen: vn.value,
|
|
1558
1559
|
chartElement: P.value,
|
|
1559
1560
|
position: z.value.userOptions.position,
|
|
1560
1561
|
isTooltip: V.value.showTooltip,
|
|
1561
1562
|
titles: { ...z.value.userOptions.buttonTitles },
|
|
1562
1563
|
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1563
|
-
isAnnotation:
|
|
1564
|
+
isAnnotation: Ei.value,
|
|
1564
1565
|
callbacks: z.value.userOptions.callbacks,
|
|
1565
1566
|
printScale: z.value.userOptions.print.scale,
|
|
1566
1567
|
tableDialog: z.value.table.useDialog,
|
|
1567
1568
|
isCursorPointer: B.value,
|
|
1568
|
-
onToggleFullscreen:
|
|
1569
|
-
onGeneratePdf: A(
|
|
1570
|
-
onGenerateCsv:
|
|
1571
|
-
onGenerateImage:
|
|
1572
|
-
onGenerateSvg:
|
|
1573
|
-
onToggleTable:
|
|
1574
|
-
onToggleLabels:
|
|
1575
|
-
onToggleTooltip:
|
|
1576
|
-
onToggleAnnotator:
|
|
1577
|
-
onCopyAlt:
|
|
1578
|
-
style: w({ visibility: A(
|
|
1579
|
-
},
|
|
1569
|
+
onToggleFullscreen: di,
|
|
1570
|
+
onGeneratePdf: A(or),
|
|
1571
|
+
onGenerateCsv: _i,
|
|
1572
|
+
onGenerateImage: zi,
|
|
1573
|
+
onGenerateSvg: Ri,
|
|
1574
|
+
onToggleTable: fi,
|
|
1575
|
+
onToggleLabels: pi,
|
|
1576
|
+
onToggleTooltip: mi,
|
|
1577
|
+
onToggleAnnotator: Di,
|
|
1578
|
+
onCopyAlt: Zi,
|
|
1579
|
+
style: w({ visibility: A(Zn) ? A(Yn) ? "visible" : "hidden" : "visible" })
|
|
1580
|
+
}, Be({ _: 2 }, [
|
|
1580
1581
|
t.$slots.menuIcon ? {
|
|
1581
1582
|
name: "menuIcon",
|
|
1582
1583
|
fn: j(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(S({
|
|
@@ -1652,20 +1653,20 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1652
1653
|
key: "12"
|
|
1653
1654
|
} : void 0
|
|
1654
1655
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : y("", !0),
|
|
1655
|
-
x("div",
|
|
1656
|
+
x("div", at, [(T(), b("svg", {
|
|
1656
1657
|
ref_key: "svgRef",
|
|
1657
|
-
ref:
|
|
1658
|
-
xmlns: A(
|
|
1658
|
+
ref: Qn,
|
|
1659
|
+
xmlns: A(de),
|
|
1659
1660
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1660
1661
|
viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
|
|
1661
|
-
class:
|
|
1662
|
+
class: Ke({ "vue-data-ui-loading": A(Kn) }),
|
|
1662
1663
|
style: w(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1663
1664
|
tabindex: "0",
|
|
1664
|
-
onFocus:
|
|
1665
|
-
onBlur:
|
|
1666
|
-
onKeydown:
|
|
1665
|
+
onFocus: $i,
|
|
1666
|
+
onBlur: ea,
|
|
1667
|
+
onKeydown: ta
|
|
1667
1668
|
}, [
|
|
1668
|
-
|
|
1669
|
+
He(A(nn)),
|
|
1669
1670
|
t.$slots["chart-background"] ? (T(), b("foreignObject", {
|
|
1670
1671
|
key: 0,
|
|
1671
1672
|
x: G.value.left,
|
|
@@ -1673,27 +1674,33 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1673
1674
|
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1674
1675
|
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1675
1676
|
style: { pointerEvents: "none" }
|
|
1676
|
-
}, [O(t.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1677
|
-
z.value.style.chart.bars.gradient.show ? (T(), b("defs",
|
|
1677
|
+
}, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, st)) : y("", !0),
|
|
1678
|
+
z.value.style.chart.bars.gradient.show ? (T(), b("defs", ct, [(T(!0), b(g, null, D($.value, (e, t) => (T(), v(je, {
|
|
1679
|
+
t: "linear",
|
|
1678
1680
|
id: `gradient_${e.id}`,
|
|
1681
|
+
key: `gradient_${e.id}_${t}`,
|
|
1679
1682
|
x1: "0%",
|
|
1680
1683
|
y1: "0%",
|
|
1681
1684
|
x2: "0%",
|
|
1682
|
-
y2: "100%"
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1685
|
+
y2: "100%",
|
|
1686
|
+
stops: [
|
|
1687
|
+
[
|
|
1688
|
+
"0%",
|
|
1689
|
+
e.color,
|
|
1690
|
+
1
|
|
1691
|
+
],
|
|
1692
|
+
[
|
|
1693
|
+
"61.8%",
|
|
1694
|
+
A(n)(e.color, z.value.style.chart.bars.gradient.intensity / 100),
|
|
1695
|
+
1
|
|
1696
|
+
],
|
|
1697
|
+
[
|
|
1698
|
+
"100%",
|
|
1699
|
+
e.color,
|
|
1700
|
+
1
|
|
1701
|
+
]
|
|
1702
|
+
]
|
|
1703
|
+
}, null, 8, ["id", "stops"]))), 128))])) : y("", !0),
|
|
1697
1704
|
z.value.style.chart.grid.frame.show ? (T(), b("rect", {
|
|
1698
1705
|
key: 2,
|
|
1699
1706
|
style: {
|
|
@@ -1711,7 +1718,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1711
1718
|
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
1712
1719
|
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
1713
1720
|
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
1714
|
-
}, null, 8,
|
|
1721
|
+
}, null, 8, lt)) : y("", !0),
|
|
1715
1722
|
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 3 }, D(Z.value, (e, t) => (T(), b("line", {
|
|
1716
1723
|
x1: G.value.left,
|
|
1717
1724
|
x2: G.value.right,
|
|
@@ -1721,7 +1728,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1721
1728
|
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1722
1729
|
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1723
1730
|
"stroke-linecap": "round"
|
|
1724
|
-
}, null, 8,
|
|
1731
|
+
}, null, 8, ut))), 256)) : y("", !0),
|
|
1725
1732
|
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 4 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
|
|
1726
1733
|
x1: G.value.left,
|
|
1727
1734
|
x2: G.value.right,
|
|
@@ -1731,7 +1738,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1731
1738
|
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1732
1739
|
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1733
1740
|
"stroke-linecap": "round"
|
|
1734
|
-
}, null, 8,
|
|
1741
|
+
}, null, 8, dt))), 256)) : y("", !0),
|
|
1735
1742
|
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 5 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
|
|
1736
1743
|
x1: G.value.left + X.value * t,
|
|
1737
1744
|
x2: G.value.left + X.value * t,
|
|
@@ -1741,7 +1748,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1741
1748
|
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1742
1749
|
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1743
1750
|
"stroke-linecap": "round"
|
|
1744
|
-
}, null, 8,
|
|
1751
|
+
}, null, 8, ft))), 256)) : y("", !0),
|
|
1745
1752
|
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 6 }, D(Z.value, (e, t) => (T(), b("line", {
|
|
1746
1753
|
x1: e.horizontal_x,
|
|
1747
1754
|
x2: e.horizontal_x,
|
|
@@ -1751,8 +1758,8 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1751
1758
|
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1752
1759
|
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1753
1760
|
"stroke-linecap": "round"
|
|
1754
|
-
}, null, 8,
|
|
1755
|
-
(T(!0), b(g, null, D($.value, (e, n) => (T(), b("g", { key: `stackbar-group-${e.datasetKey}` }, [t.$slots.pattern ? (T(), b("defs",
|
|
1761
|
+
}, null, 8, pt))), 256)) : y("", !0),
|
|
1762
|
+
(T(!0), b(g, null, D($.value, (e, n) => (T(), b("g", { key: `stackbar-group-${e.datasetKey}` }, [t.$slots.pattern ? (T(), b("defs", mt, [O(t.$slots, "pattern", We({ ref_for: !0 }, {
|
|
1756
1763
|
seriesIndex: e.absoluteIndex,
|
|
1757
1764
|
patternId: `pattern_${F.value}_${e.absoluteIndex}`
|
|
1758
1765
|
}), void 0, !0)])) : y("", !0), z.value.orientation === "vertical" ? (T(), b(g, { key: 1 }, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
|
|
@@ -1767,11 +1774,11 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1767
1774
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1768
1775
|
"stroke-linecap": "round",
|
|
1769
1776
|
"stroke-linejoin": "round",
|
|
1770
|
-
class:
|
|
1777
|
+
class: Ke({
|
|
1771
1778
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1772
|
-
"vue-data-ui-bar-transition":
|
|
1779
|
+
"vue-data-ui-bar-transition": yn.value
|
|
1773
1780
|
})
|
|
1774
|
-
}, null, 10,
|
|
1781
|
+
}, null, 10, ht))), 128)), t.$slots.pattern ? (T(), b("g", gt, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
|
|
1775
1782
|
key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
|
|
1776
1783
|
x: t,
|
|
1777
1784
|
y: A(h)(e.y[n]),
|
|
@@ -1783,11 +1790,11 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1783
1790
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1784
1791
|
"stroke-linecap": "round",
|
|
1785
1792
|
"stroke-linejoin": "round",
|
|
1786
|
-
class:
|
|
1793
|
+
class: Ke({
|
|
1787
1794
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1788
|
-
"vue-data-ui-bar-transition":
|
|
1795
|
+
"vue-data-ui-bar-transition": yn.value
|
|
1789
1796
|
})
|
|
1790
|
-
}, null, 10,
|
|
1797
|
+
}, null, 10, _t))), 128))])) : y("", !0)], 64)) : (T(), b(g, { key: 2 }, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
|
|
1791
1798
|
key: `stackbar-rect-${e.rectKeys[n]}`,
|
|
1792
1799
|
x: A(h)(t, G.value.left),
|
|
1793
1800
|
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
@@ -1799,11 +1806,11 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1799
1806
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1800
1807
|
"stroke-linecap": "round",
|
|
1801
1808
|
"stroke-linejoin": "round",
|
|
1802
|
-
class:
|
|
1809
|
+
class: Ke({
|
|
1803
1810
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1804
|
-
"vue-data-ui-bar-transition":
|
|
1811
|
+
"vue-data-ui-bar-transition": yn.value
|
|
1805
1812
|
})
|
|
1806
|
-
}, null, 10,
|
|
1813
|
+
}, null, 10, vt))), 128)), t.$slots.pattern ? (T(), b("g", yt, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
|
|
1807
1814
|
key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
|
|
1808
1815
|
x: A(h)(t, G.value.left),
|
|
1809
1816
|
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
@@ -1815,11 +1822,11 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1815
1822
|
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1816
1823
|
"stroke-linecap": "round",
|
|
1817
1824
|
"stroke-linejoin": "round",
|
|
1818
|
-
class:
|
|
1825
|
+
class: Ke({
|
|
1819
1826
|
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1820
|
-
"vue-data-ui-bar-transition":
|
|
1827
|
+
"vue-data-ui-bar-transition": yn.value
|
|
1821
1828
|
})
|
|
1822
|
-
}, null, 10,
|
|
1829
|
+
}, null, 10, bt))), 128))])) : y("", !0)], 64))]))), 128)),
|
|
1823
1830
|
z.value.style.chart.grid.x.showAxis ? (T(), b("line", {
|
|
1824
1831
|
key: 7,
|
|
1825
1832
|
x1: G.value.left,
|
|
@@ -1830,7 +1837,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1830
1837
|
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1831
1838
|
"stroke-linecap": "round",
|
|
1832
1839
|
"stroke-linejoin": "round"
|
|
1833
|
-
}, null, 8,
|
|
1840
|
+
}, null, 8, xt)) : y("", !0),
|
|
1834
1841
|
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (T(), b("line", {
|
|
1835
1842
|
key: 8,
|
|
1836
1843
|
x1: W.value ? G.value.right : G.value.left,
|
|
@@ -1841,74 +1848,74 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1841
1848
|
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1842
1849
|
"stroke-linecap": "round",
|
|
1843
1850
|
"stroke-linejoin": "round"
|
|
1844
|
-
}, null, 8,
|
|
1851
|
+
}, null, 8, St)) : y("", !0),
|
|
1845
1852
|
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (T(), b("text", {
|
|
1846
1853
|
key: 9,
|
|
1847
1854
|
ref_key: "xAxisLabel",
|
|
1848
|
-
ref:
|
|
1855
|
+
ref: On,
|
|
1849
1856
|
x: G.value.left + G.value.width / 2,
|
|
1850
1857
|
y: G.value.chartHeight - 3,
|
|
1851
1858
|
"font-size": z.value.style.chart.grid.x.axisName.fontSize,
|
|
1852
1859
|
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1853
1860
|
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1854
1861
|
"text-anchor": "middle"
|
|
1855
|
-
}, k(z.value.style.chart.grid.x.axisName.text), 9,
|
|
1862
|
+
}, k(z.value.style.chart.grid.x.axisName.text), 9, Ct)) : y("", !0),
|
|
1856
1863
|
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (T(), b("text", {
|
|
1857
1864
|
key: 10,
|
|
1858
1865
|
ref_key: "yAxisLabel",
|
|
1859
|
-
ref:
|
|
1866
|
+
ref: kn,
|
|
1860
1867
|
transform: `translate(${W.value ? H.value.width - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1861
1868
|
"font-size": z.value.style.chart.grid.y.axisName.fontSize,
|
|
1862
1869
|
fill: z.value.style.chart.grid.y.axisName.color,
|
|
1863
1870
|
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1864
1871
|
"text-anchor": "middle"
|
|
1865
|
-
}, k(z.value.style.chart.grid.y.axisName.text), 9,
|
|
1866
|
-
V.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), b(g, { key: 11 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.x, (n, r) => (T(), b(g, null, [
|
|
1872
|
+
}, k(z.value.style.chart.grid.y.axisName.text), 9, wt)) : y("", !0),
|
|
1873
|
+
V.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), b(g, { key: 11 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.x, (n, r) => (T(), b(g, null, [Ai(e.series[r], e.proportions[r]) ? (T(), b("text", {
|
|
1867
1874
|
key: 0,
|
|
1868
1875
|
x: n + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2,
|
|
1869
1876
|
y: e.y[r] + e.height[r] / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1870
1877
|
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1871
|
-
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(
|
|
1878
|
+
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(le)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1872
1879
|
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1873
1880
|
"text-anchor": "middle"
|
|
1874
|
-
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ?
|
|
1881
|
+
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ni(e.proportions[r] * 100, e, t, r) : ti(e.series[r], e, t, r, e.signedSeries[r])), 9, Tt)) : y("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
|
|
1875
1882
|
key: 0,
|
|
1876
1883
|
ref_key: "sumTop",
|
|
1877
|
-
ref:
|
|
1878
|
-
}, [(T(!0), b(g, null, D(
|
|
1884
|
+
ref: Mn
|
|
1885
|
+
}, [(T(!0), b(g, null, D(ei.value, (e, t) => (T(), b(g, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
|
|
1879
1886
|
key: 0,
|
|
1880
1887
|
x: G.value.left + X.value * t + X.value / 2,
|
|
1881
|
-
y:
|
|
1888
|
+
y: Yi(t),
|
|
1882
1889
|
"text-anchor": "middle",
|
|
1883
1890
|
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1884
1891
|
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1885
1892
|
fill: z.value.style.chart.bars.totalValues.color
|
|
1886
|
-
}, k(
|
|
1887
|
-
V.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), b(g, { key: 12 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.horizontal_x, (n, r) => (T(), b(g, null, [
|
|
1893
|
+
}, k(ti(e.value, e, t, e.sign)), 9, Et)) : y("", !0)], 64))), 256))], 512)) : y("", !0)], 64)) : y("", !0),
|
|
1894
|
+
V.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), b(g, { key: 12 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.horizontal_x, (n, r) => (T(), b(g, null, [Ai(e.series[r], e.proportions[r]) ? (T(), b("text", {
|
|
1888
1895
|
key: 0,
|
|
1889
1896
|
x: n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2,
|
|
1890
1897
|
y: e.horizontal_y[r] + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1891
1898
|
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1892
|
-
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(
|
|
1899
|
+
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(le)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1893
1900
|
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1894
1901
|
"text-anchor": "middle"
|
|
1895
|
-
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ?
|
|
1902
|
+
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ni(e.proportions[r] * 100, e, t, r) : ti(e.series[r], e, t, r, e.signedSeries[r])), 9, Dt)) : y("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
|
|
1896
1903
|
key: 0,
|
|
1897
1904
|
ref_key: "sumRight",
|
|
1898
|
-
ref:
|
|
1899
|
-
}, [(T(!0), b(g, null, D(
|
|
1905
|
+
ref: Nn
|
|
1906
|
+
}, [(T(!0), b(g, null, D(ei.value, (e, t) => (T(), b(g, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
|
|
1900
1907
|
key: 0,
|
|
1901
|
-
x:
|
|
1908
|
+
x: Xi(t),
|
|
1902
1909
|
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1903
1910
|
"text-anchor": "start",
|
|
1904
1911
|
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1905
1912
|
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1906
1913
|
fill: z.value.style.chart.bars.totalValues.color
|
|
1907
|
-
}, k(
|
|
1914
|
+
}, k(ti(e.value, e, t, e.sign)), 9, Ot)) : y("", !0)], 64))), 256))], 512)) : y("", !0)], 64)) : y("", !0),
|
|
1908
1915
|
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (T(), b("g", {
|
|
1909
1916
|
key: 13,
|
|
1910
1917
|
ref_key: "scaleLabels",
|
|
1911
|
-
ref:
|
|
1918
|
+
ref: An
|
|
1912
1919
|
}, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("line", {
|
|
1913
1920
|
x1: W.value ? G.value.right : G.value.left,
|
|
1914
1921
|
x2: W.value ? G.value.right + 6 : G.value.left - 6,
|
|
@@ -1916,23 +1923,23 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1916
1923
|
y2: e.y,
|
|
1917
1924
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1918
1925
|
"stroke-width": 1
|
|
1919
|
-
}, null, 8,
|
|
1926
|
+
}, null, 8, kt))), 256)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
|
|
1920
1927
|
x: e.x,
|
|
1921
1928
|
y: e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1922
1929
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1923
1930
|
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1924
1931
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1925
1932
|
"text-anchor": W.value ? "start" : "end"
|
|
1926
|
-
}, k(A(
|
|
1933
|
+
}, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(o)({
|
|
1927
1934
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1928
1935
|
v: e.value,
|
|
1929
1936
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1930
1937
|
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1931
|
-
}), { datapoint: e })), 9,
|
|
1938
|
+
}), { datapoint: e })), 9, At))), 256))], 512)) : y("", !0),
|
|
1932
1939
|
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (T(), b("g", {
|
|
1933
1940
|
key: 14,
|
|
1934
1941
|
ref_key: "scaleLabels",
|
|
1935
|
-
ref:
|
|
1942
|
+
ref: An
|
|
1936
1943
|
}, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("line", {
|
|
1937
1944
|
x1: e.horizontal_x,
|
|
1938
1945
|
x2: e.horizontal_x,
|
|
@@ -1941,24 +1948,24 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1941
1948
|
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1942
1949
|
"stroke-width": 1,
|
|
1943
1950
|
"stroke-linecap": "round"
|
|
1944
|
-
}, null, 8,
|
|
1951
|
+
}, null, 8, jt))), 256)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
|
|
1945
1952
|
class: "vue-data-ui-time-label",
|
|
1946
1953
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1947
1954
|
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1948
1955
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1949
1956
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1950
1957
|
transform: `translate(${e.horizontal_x}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`
|
|
1951
|
-
}, k(A(
|
|
1958
|
+
}, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(o)({
|
|
1952
1959
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1953
1960
|
v: e.value,
|
|
1954
1961
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1955
1962
|
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1956
|
-
}), { datapoint: e })), 9,
|
|
1963
|
+
}), { datapoint: e })), 9, Mt))), 256))], 512)) : y("", !0),
|
|
1957
1964
|
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (T(), b("g", {
|
|
1958
1965
|
key: 15,
|
|
1959
1966
|
ref_key: "timeLabelsEls",
|
|
1960
|
-
ref:
|
|
1961
|
-
}, [t.$slots["time-label"] ? (T(), b("g",
|
|
1967
|
+
ref: jn
|
|
1968
|
+
}, [t.$slots["time-label"] ? (T(), b("g", Nt, [(T(!0), b(g, null, D(Gr.value, (e, n) => (T(), b("g", null, [O(t.$slots, "time-label", We({ ref_for: !0 }, {
|
|
1962
1969
|
x: G.value.left + X.value * n + X.value / 2,
|
|
1963
1970
|
y: G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1964
1971
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1968,7 +1975,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1968
1975
|
content: e.text,
|
|
1969
1976
|
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1970
1977
|
show: !0
|
|
1971
|
-
}), void 0, !0)]))), 256))])) : (T(), b("g",
|
|
1978
|
+
}), void 0, !0)]))), 256))])) : (T(), b("g", Pt, [(T(!0), b(g, null, D(Gr.value, (e, t) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
|
|
1972
1979
|
key: t + "-multi",
|
|
1973
1980
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1974
1981
|
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1981,15 +1988,15 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1981
1988
|
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
1982
1989
|
`,
|
|
1983
1990
|
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1984
|
-
innerHTML: A(
|
|
1991
|
+
innerHTML: A(d)({
|
|
1985
1992
|
content: String(e.text),
|
|
1986
1993
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1987
1994
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1988
1995
|
x: 0,
|
|
1989
1996
|
y: 0
|
|
1990
1997
|
}),
|
|
1991
|
-
onClick: () =>
|
|
1992
|
-
}, null, 12,
|
|
1998
|
+
onClick: () => Oi(e, t)
|
|
1999
|
+
}, null, 12, It)) : (T(), b("text", {
|
|
1993
2000
|
class: "vue-data-ui-time-label",
|
|
1994
2001
|
key: t,
|
|
1995
2002
|
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1998,13 +2005,13 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
1998
2005
|
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1999
2006
|
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
2000
2007
|
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
2001
|
-
onClick: () =>
|
|
2002
|
-
}, k(e.text), 13,
|
|
2008
|
+
onClick: () => Oi(e, t)
|
|
2009
|
+
}, k(e.text), 13, Ft))]))), 256))]))], 512)) : y("", !0),
|
|
2003
2010
|
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (T(), b("g", {
|
|
2004
2011
|
key: 16,
|
|
2005
2012
|
ref_key: "timeLabelsEls",
|
|
2006
|
-
ref:
|
|
2007
|
-
}, [t.$slots["time-label"] ? (T(), b("g",
|
|
2013
|
+
ref: jn
|
|
2014
|
+
}, [t.$slots["time-label"] ? (T(), b("g", Lt, [(T(!0), b(g, null, D(Q.value, (e, n) => (T(), b("g", null, [O(t.$slots, "time-label", We({ ref_for: !0 }, {
|
|
2008
2015
|
x: G.value.left - 8,
|
|
2009
2016
|
y: G.value.top + X.value * n + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
2010
2017
|
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -2014,7 +2021,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2014
2021
|
content: e.text,
|
|
2015
2022
|
textAnchor: "end",
|
|
2016
2023
|
show: !0
|
|
2017
|
-
}), void 0, !0)]))), 256))])) : (T(), b("g",
|
|
2024
|
+
}), void 0, !0)]))), 256))])) : (T(), b("g", Rt, [(T(!0), b(g, null, D(Q.value, (e, t) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
|
|
2018
2025
|
key: 1,
|
|
2019
2026
|
"text-anchor": "end",
|
|
2020
2027
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -2023,15 +2030,15 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2023
2030
|
x: G.value.left - 8,
|
|
2024
2031
|
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
2025
2032
|
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
2026
|
-
onClick: () =>
|
|
2027
|
-
innerHTML: A(
|
|
2033
|
+
onClick: () => Oi(e, t),
|
|
2034
|
+
innerHTML: A(p)({
|
|
2028
2035
|
content: String(e.text),
|
|
2029
2036
|
fontSize: z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
2030
2037
|
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
2031
2038
|
x: G.value.left - 8,
|
|
2032
2039
|
y: 0
|
|
2033
2040
|
})
|
|
2034
|
-
}, null, 12,
|
|
2041
|
+
}, null, 12, Bt)) : (T(), b("text", {
|
|
2035
2042
|
key: 0,
|
|
2036
2043
|
"text-anchor": "end",
|
|
2037
2044
|
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -2040,53 +2047,53 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2040
2047
|
x: G.value.left - 8,
|
|
2041
2048
|
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
2042
2049
|
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
2043
|
-
onClick: () =>
|
|
2044
|
-
}, k(e.text), 13,
|
|
2050
|
+
onClick: () => Oi(e, t)
|
|
2051
|
+
}, k(e.text), 13, zt))]))), 256))]))], 512)) : y("", !0),
|
|
2045
2052
|
V.value.showTooltip && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 17 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
|
|
2046
2053
|
x: G.value.left + t * X.value,
|
|
2047
2054
|
y: G.value.top,
|
|
2048
2055
|
width: X.value,
|
|
2049
2056
|
height: G.value.height < 0 ? 0 : G.value.height,
|
|
2050
|
-
onClick: () =>
|
|
2051
|
-
onMouseenter: () =>
|
|
2052
|
-
onMouseleave: () =>
|
|
2053
|
-
fill: t === L.value || t ===
|
|
2057
|
+
onClick: () => ri(t),
|
|
2058
|
+
onMouseenter: () => ci(t, "pointer"),
|
|
2059
|
+
onMouseleave: () => ai(t),
|
|
2060
|
+
fill: t === L.value || t === Wn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
2054
2061
|
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
2055
|
-
}, null, 44,
|
|
2062
|
+
}, null, 44, Vt))), 256)) : y("", !0),
|
|
2056
2063
|
V.value.showTooltip && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 18 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
|
|
2057
2064
|
x: G.value.left,
|
|
2058
2065
|
y: G.value.top + t * X.value,
|
|
2059
2066
|
width: G.value.width < 0 ? 0 : G.value.width,
|
|
2060
2067
|
height: X.value,
|
|
2061
|
-
onClick: () =>
|
|
2062
|
-
onMouseenter: () =>
|
|
2063
|
-
onMouseleave: () =>
|
|
2064
|
-
fill: t === L.value || t ===
|
|
2068
|
+
onClick: () => ri(t),
|
|
2069
|
+
onMouseenter: () => ci(t, "pointer"),
|
|
2070
|
+
onMouseleave: () => ai(t),
|
|
2071
|
+
fill: t === L.value || t === Wn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
2065
2072
|
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
2066
|
-
}, null, 44,
|
|
2067
|
-
|
|
2073
|
+
}, null, 44, Ht))), 256)) : y("", !0),
|
|
2074
|
+
Er.value ? (T(), b("rect", We({ key: 19 }, wr.value, {
|
|
2068
2075
|
"data-start": J.value.start,
|
|
2069
2076
|
"data-end": J.value.end
|
|
2070
|
-
}), null, 16,
|
|
2077
|
+
}), null, 16, Ut)) : y("", !0),
|
|
2071
2078
|
O(t.$slots, "svg", { svg: {
|
|
2072
2079
|
drawingArea: G.value,
|
|
2073
2080
|
slicer: J.value,
|
|
2074
2081
|
data: $.value,
|
|
2075
|
-
isPrintingImg: A(
|
|
2076
|
-
isPrintingSvg:
|
|
2082
|
+
isPrintingImg: A(ir) || A(ar) || En.value,
|
|
2083
|
+
isPrintingSvg: Dn.value,
|
|
2077
2084
|
barWidth: X.value
|
|
2078
2085
|
} }, void 0, !0)
|
|
2079
|
-
], 46,
|
|
2086
|
+
], 46, ot)), t.$slots.hint ? (T(), b("div", Wt, [O(t.$slots, "hint", C(S({
|
|
2080
2087
|
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2081
|
-
isVisible:
|
|
2088
|
+
isVisible: Qi.value
|
|
2082
2089
|
})), void 0, !0)])) : y("", !0)]),
|
|
2083
|
-
t.$slots.watermark ? (T(), b("div",
|
|
2084
|
-
z.value.style.chart.zoom.show &&
|
|
2090
|
+
t.$slots.watermark ? (T(), b("div", Gt, [O(t.$slots, "watermark", C(S({ isPrinting: A(ir) || A(ar) || En.value || Dn.value })), void 0, !0)])) : y("", !0),
|
|
2091
|
+
z.value.style.chart.zoom.show && ln.value && Hi.value && q.value > 6 ? (T(), v(Me, {
|
|
2085
2092
|
key: 5,
|
|
2086
2093
|
ref_key: "chartSlicer",
|
|
2087
|
-
ref:
|
|
2094
|
+
ref: gn,
|
|
2088
2095
|
"data-dom-to-png-ignore-layout": "",
|
|
2089
|
-
allMinimaps:
|
|
2096
|
+
allMinimaps: Fr.value,
|
|
2090
2097
|
background: z.value.style.chart.zoom.color,
|
|
2091
2098
|
borderColor: z.value.style.chart.backgroundColor,
|
|
2092
2099
|
customFormat: z.value.style.chart.zoom.customFormat,
|
|
@@ -2100,12 +2107,12 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2100
2107
|
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2101
2108
|
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2102
2109
|
inputColor: z.value.style.chart.zoom.color,
|
|
2103
|
-
isPreview:
|
|
2110
|
+
isPreview: Er.value,
|
|
2104
2111
|
labelLeft: z.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Q.value?.[0]?.text ?? "" : "",
|
|
2105
2112
|
labelRight: z.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Q.value?.at(-1)?.text ?? "" : "",
|
|
2106
2113
|
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2107
2114
|
min: 0,
|
|
2108
|
-
minimap:
|
|
2115
|
+
minimap: Pr.value,
|
|
2109
2116
|
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2110
2117
|
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2111
2118
|
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -2114,15 +2121,15 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2114
2121
|
minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2115
2122
|
minimapSelectedIndex: L.value,
|
|
2116
2123
|
minimapSelectionRadius: 1,
|
|
2117
|
-
preciseLabels:
|
|
2124
|
+
preciseLabels: Yr.value.length ? Yr.value : Vr.value,
|
|
2118
2125
|
refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
|
|
2119
2126
|
refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
|
|
2120
2127
|
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2121
|
-
selectedSeries:
|
|
2128
|
+
selectedSeries: oi.value,
|
|
2122
2129
|
smoothMinimap: !1,
|
|
2123
2130
|
start: J.value.start,
|
|
2124
2131
|
textColor: z.value.style.chart.color,
|
|
2125
|
-
timeLabels:
|
|
2132
|
+
timeLabels: Vr.value,
|
|
2126
2133
|
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2127
2134
|
valueEnd: J.value.end,
|
|
2128
2135
|
valueStart: J.value.start,
|
|
@@ -2136,12 +2143,12 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2136
2143
|
handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2137
2144
|
handleFill: z.value.style.chart.zoom.minimap.handleFill,
|
|
2138
2145
|
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2139
|
-
"onUpdate:end":
|
|
2140
|
-
"onUpdate:start":
|
|
2141
|
-
onTrapMouse:
|
|
2142
|
-
onReset: r[0] ||= () =>
|
|
2143
|
-
onFutureEnd: r[1] ||= (e) =>
|
|
2144
|
-
onFutureStart: r[2] ||= (e) =>
|
|
2146
|
+
"onUpdate:end": Ki,
|
|
2147
|
+
"onUpdate:start": Gi,
|
|
2148
|
+
onTrapMouse: Tr,
|
|
2149
|
+
onReset: r[0] ||= () => jr({ force: !0 }),
|
|
2150
|
+
onFutureEnd: r[1] ||= (e) => Dr("end", e),
|
|
2151
|
+
onFutureStart: r[2] ||= (e) => Dr("start", e)
|
|
2145
2152
|
}, {
|
|
2146
2153
|
"reset-action": j(({ reset: e }) => [O(t.$slots, "reset-action", C(S({ reset: e })), void 0, !0)]),
|
|
2147
2154
|
slotMap: j(({ width: e, height: t, unitW: n }) => [(T(!0), b(g, null, D($.value, (e) => (T(), b("g", { key: e.id }, [(T(!0), b(g, null, D(e.xMinimap({
|
|
@@ -2160,12 +2167,12 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2160
2167
|
"stroke-linecap": "round",
|
|
2161
2168
|
"stroke-linejoin": "round",
|
|
2162
2169
|
style: w({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
|
|
2163
|
-
}, null, 12,
|
|
2170
|
+
}, null, 12, Kt))), 128))]))), 128))]),
|
|
2164
2171
|
_: 3
|
|
2165
2172
|
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : y("", !0),
|
|
2166
|
-
|
|
2173
|
+
He(A(Xt), {
|
|
2167
2174
|
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2168
|
-
show: V.value.showTooltip &&
|
|
2175
|
+
show: V.value.showTooltip && un.value,
|
|
2169
2176
|
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
2170
2177
|
color: z.value.style.chart.tooltip.color,
|
|
2171
2178
|
fontSize: z.value.style.chart.tooltip.fontSize,
|
|
@@ -2177,19 +2184,19 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2177
2184
|
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2178
2185
|
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2179
2186
|
parent: P.value,
|
|
2180
|
-
content:
|
|
2181
|
-
isFullscreen:
|
|
2182
|
-
isCustom: A(
|
|
2187
|
+
content: fn.value,
|
|
2188
|
+
isFullscreen: vn.value,
|
|
2189
|
+
isCustom: A(fe)(z.value.style.chart.tooltip.customFormat),
|
|
2183
2190
|
smooth: z.value.style.chart.tooltip.smooth,
|
|
2184
2191
|
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2185
2192
|
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
2186
2193
|
smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2187
|
-
isA11yMode:
|
|
2188
|
-
a11yPosition:
|
|
2194
|
+
isA11yMode: zn.value === "keyboard",
|
|
2195
|
+
a11yPosition: Rn.value
|
|
2189
2196
|
}, {
|
|
2190
|
-
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(S({ ...
|
|
2191
|
-
tooltip: j(() => [O(t.$slots, "tooltip", C(S({ ...
|
|
2192
|
-
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(S({ ...
|
|
2197
|
+
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(S({ ...dn.value })), void 0, !0)]),
|
|
2198
|
+
tooltip: j(() => [O(t.$slots, "tooltip", C(S({ ...dn.value })), void 0, !0)]),
|
|
2199
|
+
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(S({ ...dn.value })), void 0, !0)]),
|
|
2193
2200
|
_: 3
|
|
2194
2201
|
}, 8, [
|
|
2195
2202
|
"teleportTo",
|
|
@@ -2215,33 +2222,33 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2215
2222
|
"isA11yMode",
|
|
2216
2223
|
"a11yPosition"
|
|
2217
2224
|
]),
|
|
2218
|
-
x("div", { id: `legend-bottom-${F.value}` }, null, 8,
|
|
2219
|
-
|
|
2225
|
+
x("div", { id: `legend-bottom-${F.value}` }, null, 8, qt),
|
|
2226
|
+
Cn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (T(), v(ze, {
|
|
2220
2227
|
key: 6,
|
|
2221
2228
|
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2222
2229
|
}, [x("div", {
|
|
2223
2230
|
ref_key: "chartLegend",
|
|
2224
|
-
ref:
|
|
2225
|
-
}, [O(t.$slots, "legend", { legend:
|
|
2231
|
+
ref: hn
|
|
2232
|
+
}, [O(t.$slots, "legend", { legend: wi.value }, () => [z.value.style.chart.legend.show ? (T(), v(Le, {
|
|
2226
2233
|
key: 0,
|
|
2227
|
-
legendSet:
|
|
2228
|
-
config:
|
|
2234
|
+
legendSet: wi.value,
|
|
2235
|
+
config: Ti.value,
|
|
2229
2236
|
isCursorPointer: B.value,
|
|
2230
2237
|
onClickMarker: r[3] ||= ({ legend: e }) => e.segregate()
|
|
2231
|
-
},
|
|
2232
|
-
item: j(({ legend: e }) => [A(
|
|
2238
|
+
}, Be({
|
|
2239
|
+
item: j(({ legend: e }) => [A(Kn) ? y("", !0) : (T(), b("div", {
|
|
2233
2240
|
key: 0,
|
|
2234
2241
|
onClick: (t) => e.segregate(),
|
|
2235
2242
|
style: w(`opacity:${I.value.includes(e.id) ? .5 : 1}`)
|
|
2236
|
-
}, k(e.name), 13,
|
|
2237
|
-
legendToggle: j(() => [
|
|
2243
|
+
}, k(e.name), 13, Jt))]),
|
|
2244
|
+
legendToggle: j(() => [wi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !A(Kn) ? (T(), v(Ne, {
|
|
2238
2245
|
key: 0,
|
|
2239
2246
|
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2240
2247
|
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
2241
2248
|
fontSize: z.value.style.chart.legend.fontSize,
|
|
2242
2249
|
checked: I.value.length > 0,
|
|
2243
2250
|
isCursorPointer: B.value,
|
|
2244
|
-
onToggle:
|
|
2251
|
+
onToggle: yi
|
|
2245
2252
|
}, null, 8, [
|
|
2246
2253
|
"backgroundColor",
|
|
2247
2254
|
"color",
|
|
@@ -2252,7 +2259,7 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2252
2259
|
_: 2
|
|
2253
2260
|
}, [t.$slots.pattern ? {
|
|
2254
2261
|
name: "legend-pattern",
|
|
2255
|
-
fn: j(({ legend: e, index: t }) => [
|
|
2262
|
+
fn: j(({ legend: e, index: t }) => [He(De, {
|
|
2256
2263
|
shape: e.shape,
|
|
2257
2264
|
radius: 30,
|
|
2258
2265
|
stroke: "none",
|
|
@@ -2271,26 +2278,26 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2271
2278
|
t.$slots.source ? (T(), b("div", {
|
|
2272
2279
|
key: 7,
|
|
2273
2280
|
ref_key: "source",
|
|
2274
|
-
ref:
|
|
2281
|
+
ref: _n,
|
|
2275
2282
|
dir: "auto"
|
|
2276
2283
|
}, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2277
|
-
|
|
2284
|
+
ln.value && z.value.userOptions.buttons.table ? (T(), v(Ye(Mi.value.component), We({ key: 8 }, Mi.value.props, {
|
|
2278
2285
|
ref_key: "tableUnit",
|
|
2279
|
-
ref:
|
|
2280
|
-
onClose:
|
|
2281
|
-
}),
|
|
2282
|
-
content: j(() => [
|
|
2283
|
-
colNames:
|
|
2284
|
-
head:
|
|
2285
|
-
body:
|
|
2286
|
-
config:
|
|
2287
|
-
title: z.value.table.useDialog ? "" :
|
|
2286
|
+
ref: wn,
|
|
2287
|
+
onClose: Ni
|
|
2288
|
+
}), Be({
|
|
2289
|
+
content: j(() => [He(A($t), {
|
|
2290
|
+
colNames: vi.value.colNames,
|
|
2291
|
+
head: vi.value.head,
|
|
2292
|
+
body: vi.value.body,
|
|
2293
|
+
config: vi.value.config,
|
|
2294
|
+
title: z.value.table.useDialog ? "" : Mi.value.title,
|
|
2288
2295
|
withCloseButton: !z.value.table.useDialog,
|
|
2289
2296
|
isCursorPointer: B.value,
|
|
2290
|
-
onClose:
|
|
2297
|
+
onClose: Ni
|
|
2291
2298
|
}, {
|
|
2292
|
-
th: j(({ th: e }) => [x("div", { innerHTML: e }, null, 8,
|
|
2293
|
-
td: j(({ td: e }) => [
|
|
2299
|
+
th: j(({ th: e }) => [x("div", { innerHTML: e }, null, 8, Yt)]),
|
|
2300
|
+
td: j(({ td: e }) => [Ve(k(isNaN(Number(e)) ? e : A(o)({
|
|
2294
2301
|
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
2295
2302
|
v: e,
|
|
2296
2303
|
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -2309,24 +2316,24 @@ var et = /* @__PURE__ */ e({ default: () => $t }), tt = ["id"], nt = ["id"], rt
|
|
|
2309
2316
|
_: 2
|
|
2310
2317
|
}, [z.value.table.useDialog ? {
|
|
2311
2318
|
name: "title",
|
|
2312
|
-
fn: j(() => [
|
|
2319
|
+
fn: j(() => [Ve(k(Mi.value.title), 1)]),
|
|
2313
2320
|
key: "0"
|
|
2314
2321
|
} : void 0, z.value.table.useDialog ? {
|
|
2315
2322
|
name: "actions",
|
|
2316
2323
|
fn: j(() => [x("button", {
|
|
2317
2324
|
tabindex: "0",
|
|
2318
2325
|
class: "vue-ui-user-options-button",
|
|
2319
|
-
onClick: r[4] ||= (e) =>
|
|
2326
|
+
onClick: r[4] ||= (e) => _i(z.value.userOptions.callbacks.csv),
|
|
2320
2327
|
style: w({ cursor: B.value ? "pointer" : "default" })
|
|
2321
|
-
}, [
|
|
2328
|
+
}, [He(A(Zt), {
|
|
2322
2329
|
name: "fileCsv",
|
|
2323
|
-
stroke:
|
|
2330
|
+
stroke: Mi.value.props.color
|
|
2324
2331
|
}, null, 8, ["stroke"])], 4)]),
|
|
2325
2332
|
key: "1"
|
|
2326
2333
|
} : void 0]), 1040)) : y("", !0),
|
|
2327
|
-
O(t.$slots, "skeleton", {}, () => [A(
|
|
2328
|
-
], 46,
|
|
2334
|
+
O(t.$slots, "skeleton", {}, () => [A(Kn) ? (T(), v(ye, { key: 0 })) : y("", !0)], !0)
|
|
2335
|
+
], 46, nt));
|
|
2329
2336
|
}
|
|
2330
|
-
}, [["__scopeId", "data-v-
|
|
2337
|
+
}, [["__scopeId", "data-v-67f869a9"]]);
|
|
2331
2338
|
//#endregion
|
|
2332
|
-
export {
|
|
2339
|
+
export { tt as n, Xt as t };
|