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