vue-data-ui 3.16.5 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-CvtT2-UH.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-XhJQD-ri.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BhzRmNak.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CZCn6OMX.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BRyBDt56.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-Dulq2vNg.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-BJD25FJV.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-DCHtRFDV.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-46054xSO.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-CSdFVJx2.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-CmPyW4rp.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-QZjpAemm.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-C051dx6c.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-zCwCXCfe.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-HPy7kRgm.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-DxOwX8nC.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-KD1WwwLS.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-0BJ1t72z.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-lPRZK-_Q.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-WJG6UU4c.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-Cnqgwc0G.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-BXFwr3H7.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-DeYdEiHT.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-C0-M2WoG.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DctMvoRr.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-sLaCn8jd.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-reisxCWX.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-z3S4DcoQ.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CQEaLq9E.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-BGIt_k-N.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-BxXAWrhM.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-CMKIYAuh.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-Tb8aJ91r.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-CLAqGLQH.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-BK2SOFv9.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-BY7vIWHL.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-BlUbhTZ5.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-Bsfw_4y_.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BaORhzZH.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-D8afRw4d.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BE5ADLxq.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-C2QdubPf.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BxP_TDR3.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CgHAoaeu.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-0m7QAV93.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DNt9nHQ9.js → vue-ui-sparkline-B-zOqzrC.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-RU8zQLfe.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-C3qGXmTQ.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-W24y7z12.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot--MWxAM0R.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DKbkhX_x.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BtkypjfT.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-qaGYZUMd.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-CpQYSD-K.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-CUiSLMlj.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-CMfWyA5N.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-H02mH3Rc.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-agcFNYTs.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B0fNWUVr.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-B8mANOO8.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-DgyEEqnJ.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineAsyncComponent as re, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { j as Na, t as
|
|
4
|
-
import { t as Ba, u as
|
|
1
|
+
import { defineAsyncComponent as re, useSlots as io, computed as g, ref as h, shallowRef as _t, onMounted as uo, toRefs as co, watch as Re, onBeforeUnmount as tt, watchEffect as Oe, nextTick as At, openBlock as s, createElementBlock as u, normalizeStyle as q, normalizeClass as ke, createElementVNode as Z, toDisplayString as V, createBlock as ee, createCommentVNode as f, unref as b, withCtx as C, renderSlot as L, normalizeProps as D, guardReactiveProps as E, createSlots as $t, createVNode as De, Fragment as w, renderList as S, mergeProps as Ee, Teleport as vo, resolveDynamicComponent as ho, createTextVNode as Pa } from "vue";
|
|
2
|
+
import { u as yo } from "./useConfig-ChRble71.js";
|
|
3
|
+
import { j as Na, t as Ia, m as fo, p as at, n as go, o as Fa, q as Ra, r as mo, s as bo, ar as Ve, E as Oa, D as Da, I as po, X as xo, x as ko, G as de, W as Ea, k as we, l as ne, Z as wo, as as Lo, T as Va, a0 as Co, a1 as So, U as zo, a3 as Mo } from "./lib-DBptbyyI.js";
|
|
4
|
+
import { t as Ba, u as To } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as Ua, a as Ha, b as _o } from "./useTimeLabels-C-A2uZKi.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
6
|
+
import { u as Ao } from "./usePrinter-CEpYU3r5.js";
|
|
7
|
+
import { u as $o, B as Po } from "./BaseScanner-BhhkKVoj.js";
|
|
8
|
+
import { u as No } from "./useSvgExport-ByUukOZt.js";
|
|
9
9
|
import { u as Pt } from "./useNestedProp-Bf5XFbs8.js";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as Io } from "./useThemeCheck-D1ZYXUwG.js";
|
|
11
11
|
import { u as Fo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { A as
|
|
21
|
-
import { S as
|
|
22
|
-
import { B as
|
|
23
|
-
import { _ as
|
|
24
|
-
const
|
|
12
|
+
import { u as Ro } from "./useStableElementSize-DCNs0Tx7.js";
|
|
13
|
+
import { u as Oo } from "./useChartAccessibility-9icAAmYg.js";
|
|
14
|
+
import { u as Do } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
15
|
+
import Eo from "./img-LXxMLmCg.js";
|
|
16
|
+
import Vo from "./Title-BeMKE1cj.js";
|
|
17
|
+
import { _ as Bo } from "./Shape-BKRUOeKk.js";
|
|
18
|
+
import Uo from "./vue_ui_stackbar-CuDC4O4b.js";
|
|
19
|
+
import Ho from "./Legend-CS7Xo5LK.js";
|
|
20
|
+
import { A as Wo } from "./A11yDataTable-KcVAX2cP.js";
|
|
21
|
+
import { S as Xo } from "./SlicerPreview-BIvxyb5W.js";
|
|
22
|
+
import { B as Yo } from "./BaseLegendToggle-BQVIawmA.js";
|
|
23
|
+
import { _ as qo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
24
|
+
const Go = ["id"], Jo = ["id"], Ko = ["id"], Zo = { style: { position: "relative" } }, Qo = ["xmlns", "aria-describedby", "viewBox"], jo = ["x", "y", "width", "height"], es = { key: 1 }, ts = ["id"], as = ["stop-color"], ls = ["stop-color"], os = ["stop-color"], ss = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], rs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ns = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], is = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cs = { key: 0 }, vs = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], hs = { key: 0 }, ds = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ys = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], fs = { key: 0 }, gs = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ms = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ps = ["x", "y", "font-size", "fill", "font-weight"], xs = ["transform", "font-size", "fill", "font-weight"], ks = ["x", "y", "font-size", "fill", "font-weight"], ws = ["x", "y", "font-size", "font-weight", "fill"], Ls = ["x", "y", "font-size", "fill", "font-weight"], Cs = ["x", "y", "font-size", "font-weight", "fill"], Ss = ["x1", "x2", "y1", "y2", "stroke"], zs = ["x", "y", "font-size", "font-weight", "fill"], Ms = ["x1", "x2", "y1", "y2", "stroke"], Ts = ["font-size", "font-weight", "fill", "text-anchor", "transform"], _s = { key: 0 }, As = { key: 1 }, $s = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ps = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Ns = { key: 0 }, Is = { key: 1 }, Fs = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Rs = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Os = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Ds = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Es = ["data-start", "data-end"], Vs = {
|
|
25
25
|
key: 0,
|
|
26
26
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
27
27
|
"data-dom-to-png-ignore": "",
|
|
28
28
|
"aria-hidden": "true"
|
|
29
|
-
},
|
|
29
|
+
}, Bs = {
|
|
30
30
|
key: 4,
|
|
31
31
|
class: "vue-data-ui-watermark"
|
|
32
|
-
},
|
|
32
|
+
}, Us = ["x", "y", "height", "width", "fill", "stroke"], Hs = ["id"], Ws = ["onClick"], Xs = ["innerHTML"], Ys = {
|
|
33
33
|
__name: "vue-ui-stackbar",
|
|
34
34
|
props: {
|
|
35
35
|
config: {
|
|
@@ -50,15 +50,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX", "copyAlt"],
|
|
53
|
-
setup(
|
|
54
|
-
const Ya = re(() => import("./Tooltip-
|
|
53
|
+
setup(lt, { expose: Wa, emit: Xa }) {
|
|
54
|
+
const Ya = re(() => import("./Tooltip-C8KGyqQk.js")), qa = re(() => import("./BaseIcon-Cb3zzG6s.js")), Ga = re(() => import("./vue-ui-accordion-CnDW2UQL.js")), Ja = re(() => import("./DataTable-DT2kIdQ6.js")), Ka = re(() => import("./PenAndPaper-Ct3qJ4lA.js")), Za = re(() => import("./UserOptions-rW2fRf3V.js")), Qa = re(() => import("./PackageVersion-B3kmPxTR.js")), ja = re(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackbar: el } = yo(), { isThemeValid: tl, warnInvalidTheme: al } = Io(), ll = io(), I = lt, ae = Xa, Le = g({
|
|
55
55
|
get() {
|
|
56
|
-
return !!
|
|
56
|
+
return !!I.dataset && I.dataset.length;
|
|
57
57
|
},
|
|
58
58
|
set(t) {
|
|
59
59
|
return t;
|
|
60
60
|
}
|
|
61
|
-
}), Q = h(null), R = h(Na()), ye = h(!1),
|
|
61
|
+
}), Q = h(null), R = h(Na()), ye = h(!1), Be = h(null), ot = h(""), A = h([]), Nt = h(0), It = h(null), Ft = h(null), Ce = h(null), Rt = h(null), Se = h(!1), B = h(null), ie = h(!1), Ot = h(0), ol = h(0), sl = h(0), Dt = h(!1), ze = h(null), st = h(null), Ue = h(!1), He = h(!1), We = h(null), rt = h(null), ue = h(null), ce = h(null), rl = h(null), nt = h(null), Et = _t(null), Vt = h(!1), Bt = h(0), Ut = h(0), G = h(null), Ht = h({ x: 0, y: 0 }), Wt = h("pointer"), Xt = Ro({
|
|
62
62
|
elementRef: Et,
|
|
63
63
|
minimumWidth: 2,
|
|
64
64
|
minimumHeight: 2,
|
|
@@ -68,7 +68,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
68
68
|
qt();
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
function
|
|
71
|
+
function it() {
|
|
72
72
|
Et.value = Q.value?.parentNode ?? null;
|
|
73
73
|
}
|
|
74
74
|
function Yt() {
|
|
@@ -82,11 +82,11 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
82
82
|
const t = ++Ut.value;
|
|
83
83
|
Vt.value = !1, await At(), await Yt(), await Yt(), t === Ut.value && (Bt.value += 1, Vt.value = !0);
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
Dt.value = !0,
|
|
85
|
+
const ut = h(null);
|
|
86
|
+
uo(() => {
|
|
87
|
+
Dt.value = !0, it(), Xt.start(), ta();
|
|
88
88
|
});
|
|
89
|
-
const e = h(
|
|
89
|
+
const e = h(ht()), X = g(() => e.value.userOptions.useCursorPointer), nl = g(() => Ia({
|
|
90
90
|
defaultConfig: {
|
|
91
91
|
userOptions: { show: !1 },
|
|
92
92
|
useCssAnimation: !1,
|
|
@@ -137,16 +137,16 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
userConfig: e.value.skeletonConfig ?? {}
|
|
140
|
-
})), { loading: fe, FINAL_DATASET:
|
|
141
|
-
...
|
|
140
|
+
})), { loading: fe, FINAL_DATASET: ct, manualLoading: Xe } = $o({
|
|
141
|
+
...co(I),
|
|
142
142
|
FINAL_CONFIG: e,
|
|
143
|
-
prepareConfig:
|
|
143
|
+
prepareConfig: ht,
|
|
144
144
|
callback: () => {
|
|
145
145
|
Promise.resolve().then(async () => {
|
|
146
|
-
await
|
|
146
|
+
await Qe();
|
|
147
147
|
});
|
|
148
148
|
},
|
|
149
|
-
skeletonDataset:
|
|
149
|
+
skeletonDataset: I.config?.skeletonDataset ?? [
|
|
150
150
|
{
|
|
151
151
|
name: "",
|
|
152
152
|
series: [2, 3, 5, 8, 13, 21],
|
|
@@ -158,20 +158,20 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
158
158
|
color: "#CACACA"
|
|
159
159
|
}
|
|
160
160
|
],
|
|
161
|
-
skeletonConfig:
|
|
161
|
+
skeletonConfig: Ia({
|
|
162
162
|
defaultConfig: e.value,
|
|
163
163
|
userConfig: nl.value
|
|
164
164
|
})
|
|
165
|
-
}), { userOptionsVisible:
|
|
165
|
+
}), { userOptionsVisible: vt, setUserOptionsVisibility: Gt, keepUserOptionState: Jt } = Fo({ config: e.value }), { svgRef: ge } = Oo({ config: e.value.style.chart.title });
|
|
166
166
|
function il() {
|
|
167
167
|
Gt(!0);
|
|
168
168
|
}
|
|
169
169
|
function ul() {
|
|
170
|
-
Gt(!1), ae("selectX", { seriesIndex: null, datapoint: null }),
|
|
170
|
+
Gt(!1), ae("selectX", { seriesIndex: null, datapoint: null }), B.value = null, G.value = null, ye.value = !1;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function ht() {
|
|
173
173
|
const t = Pt({
|
|
174
|
-
userConfig:
|
|
174
|
+
userConfig: I.config,
|
|
175
175
|
defaultConfig: el
|
|
176
176
|
});
|
|
177
177
|
let l = {};
|
|
@@ -181,15 +181,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
181
181
|
al(t), l = t;
|
|
182
182
|
else {
|
|
183
183
|
const o = Pt({
|
|
184
|
-
userConfig:
|
|
184
|
+
userConfig: Uo[a] || I.config,
|
|
185
185
|
defaultConfig: t
|
|
186
186
|
});
|
|
187
187
|
l = {
|
|
188
188
|
...Pt({
|
|
189
|
-
userConfig:
|
|
189
|
+
userConfig: I.config,
|
|
190
190
|
defaultConfig: o
|
|
191
191
|
}),
|
|
192
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
192
|
+
customPalette: t.customPalette.length ? t.customPalette : fo[a] || at
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
else
|
|
@@ -197,10 +197,10 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
197
197
|
return l;
|
|
198
198
|
}
|
|
199
199
|
const Kt = g(() => e.value.style.chart.bars.dataLabels.hideUnderValue != null), Zt = g(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
|
|
200
|
-
|
|
201
|
-
fe.value || (e.value =
|
|
202
|
-
}, { deep: !0 }),
|
|
203
|
-
Array.isArray(t) && t.length > 0 && (
|
|
200
|
+
Re(() => I.config, (t) => {
|
|
201
|
+
fe.value || (e.value = ht()), vt.value = !e.value.userOptions.showOnChartHover, ta(), Ot.value += 1, ol.value += 1, sl.value += 1, $.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, it(), Ge();
|
|
202
|
+
}, { deep: !0 }), Re(() => I.dataset, (t) => {
|
|
203
|
+
Array.isArray(t) && t.length > 0 && (Xe.value = !1), it(), sa();
|
|
204
204
|
}, { deep: !0 });
|
|
205
205
|
const $ = h({
|
|
206
206
|
dataLabels: {
|
|
@@ -209,7 +209,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
209
209
|
showTable: e.value.table.show,
|
|
210
210
|
showTooltip: e.value.style.chart.tooltip.show
|
|
211
211
|
});
|
|
212
|
-
|
|
212
|
+
Re(e, () => {
|
|
213
213
|
$.value = {
|
|
214
214
|
dataLabels: {
|
|
215
215
|
show: e.value.style.chart.bars.dataLabels.show
|
|
@@ -218,7 +218,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
218
218
|
showTooltip: e.value.style.chart.tooltip.show
|
|
219
219
|
};
|
|
220
220
|
}, { immediate: !0 });
|
|
221
|
-
const { isPrinting:
|
|
221
|
+
const { isPrinting: dt, isImaging: yt, generatePdf: Qt, generateImage: jt } = Ao({
|
|
222
222
|
elementId: `stackbar_${R.value}`,
|
|
223
223
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
224
224
|
options: e.value.userOptions.print
|
|
@@ -231,14 +231,14 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
231
231
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
232
232
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
233
233
|
}
|
|
234
|
-
}), cl = g(() =>
|
|
234
|
+
}), cl = g(() => go(e.value.customPalette)), oe = _t(null), me = _t(null), ea = h(null), ft = g(() => !!e.value.debug);
|
|
235
235
|
function ta() {
|
|
236
|
-
if (
|
|
236
|
+
if (Fa(I.dataset) ? (Ra({
|
|
237
237
|
componentName: "VueUiStackbar",
|
|
238
238
|
type: "dataset",
|
|
239
|
-
debug:
|
|
240
|
-
}),
|
|
241
|
-
|
|
239
|
+
debug: ft.value
|
|
240
|
+
}), Xe.value = !0) : I.dataset.forEach((t, l) => {
|
|
241
|
+
mo({
|
|
242
242
|
datasetObject: t,
|
|
243
243
|
requiredAttributes: ["name", "series"]
|
|
244
244
|
}).forEach((a) => {
|
|
@@ -247,19 +247,19 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
247
247
|
type: "datasetSerieAttribute",
|
|
248
248
|
property: a,
|
|
249
249
|
index: l,
|
|
250
|
-
debug:
|
|
251
|
-
}),
|
|
250
|
+
debug: ft.value
|
|
251
|
+
}), Xe.value = !0;
|
|
252
252
|
});
|
|
253
|
-
}),
|
|
253
|
+
}), Fa(I.dataset) || (Xe.value = e.value.loading), setTimeout(() => {
|
|
254
254
|
ie.value = !0;
|
|
255
255
|
}, 10), e.value.responsive) {
|
|
256
256
|
const t = Ba(() => {
|
|
257
257
|
ie.value = !1;
|
|
258
|
-
const { width: l, height: a } =
|
|
258
|
+
const { width: l, height: a } = To({
|
|
259
259
|
chart: Q.value,
|
|
260
|
-
title: e.value.style.chart.title.text ?
|
|
261
|
-
legend: e.value.style.chart.legend.show ?
|
|
262
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
260
|
+
title: e.value.style.chart.title.text ? It.value : null,
|
|
261
|
+
legend: e.value.style.chart.legend.show ? Ft.value : null,
|
|
262
|
+
slicer: e.value.style.chart.zoom.show && F.value > 6 ? Ce.value.$el : null,
|
|
263
263
|
source: Rt.value
|
|
264
264
|
});
|
|
265
265
|
requestAnimationFrame(() => {
|
|
@@ -270,9 +270,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
270
270
|
});
|
|
271
271
|
oe.value && (me.value && oe.value.unobserve(me.value), oe.value.disconnect()), oe.value = new ResizeObserver(t), me.value = Q.value.parentNode, oe.value.observe(me.value);
|
|
272
272
|
}
|
|
273
|
-
qt(),
|
|
273
|
+
qt(), Qe();
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
tt(() => {
|
|
276
276
|
Xt.stop(), oe.value && (me.value && oe.value.unobserve(me.value), oe.value.disconnect());
|
|
277
277
|
});
|
|
278
278
|
function vl() {
|
|
@@ -284,15 +284,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
284
284
|
const r = c.getComputedTextLength();
|
|
285
285
|
return r > o ? r : o;
|
|
286
286
|
}, 0));
|
|
287
|
-
const l =
|
|
287
|
+
const l = rt.value ? rt.value.getBoundingClientRect().width : 0;
|
|
288
288
|
return t + l + (l ? 24 : 0);
|
|
289
289
|
}
|
|
290
|
-
const hl = h(0),
|
|
291
|
-
|
|
290
|
+
const hl = h(0), Ye = h(0), dl = Ba((t) => {
|
|
291
|
+
Ye.value = t + e.value.style.chart.bars.totalValues.fontSize;
|
|
292
292
|
}, 100);
|
|
293
293
|
function yl() {
|
|
294
294
|
if (e.value.orientation !== "horizontal") return 0;
|
|
295
|
-
const t =
|
|
295
|
+
const t = nt.value;
|
|
296
296
|
if (!t) return 0;
|
|
297
297
|
const l = Array.from(t.querySelectorAll("text"));
|
|
298
298
|
if (!l.length) return 0;
|
|
@@ -305,9 +305,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
305
305
|
}
|
|
306
306
|
return Math.max(0, a - (n.value?.right ?? 0));
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
Oe((t) => {
|
|
309
309
|
if (e.value.orientation !== "horizontal") return;
|
|
310
|
-
const l =
|
|
310
|
+
const l = nt.value;
|
|
311
311
|
if (!l) return;
|
|
312
312
|
const a = () => {
|
|
313
313
|
const r = yl();
|
|
@@ -320,21 +320,21 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
320
320
|
c.observe(l, { childList: !0, subtree: !0, characterData: !0 }), t(() => {
|
|
321
321
|
o.disconnect(), c.disconnect();
|
|
322
322
|
});
|
|
323
|
-
}),
|
|
324
|
-
hl.value = 0,
|
|
323
|
+
}), tt(() => {
|
|
324
|
+
hl.value = 0, Ye.value = 0;
|
|
325
325
|
});
|
|
326
|
-
const
|
|
326
|
+
const qe = h(0), Me = h(0);
|
|
327
327
|
function fl() {
|
|
328
328
|
const t = e.value.orientation === "vertical" ? ce.value : ue.value;
|
|
329
329
|
if (!t) {
|
|
330
|
-
|
|
330
|
+
qe.value = 0;
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
try {
|
|
334
334
|
const l = t.getBBox();
|
|
335
|
-
|
|
335
|
+
qe.value = Number.isFinite(l?.height) ? l.height : 0;
|
|
336
336
|
} catch {
|
|
337
|
-
|
|
337
|
+
qe.value = 0;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function gl() {
|
|
@@ -344,25 +344,25 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
344
344
|
});
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
tt(() => {
|
|
348
348
|
Me.value && cancelAnimationFrame(Me.value);
|
|
349
349
|
});
|
|
350
350
|
const aa = g(() => {
|
|
351
351
|
let t = 0;
|
|
352
|
-
if (
|
|
352
|
+
if (We.value)
|
|
353
353
|
try {
|
|
354
|
-
t =
|
|
354
|
+
t = We.value.getBBox().height;
|
|
355
355
|
} catch {
|
|
356
356
|
t = 0;
|
|
357
357
|
}
|
|
358
|
-
const l = e.value.style.chart.grid.x.timeLabels.show ?
|
|
358
|
+
const l = e.value.style.chart.grid.x.timeLabels.show ? qe.value : 0;
|
|
359
359
|
return t + l;
|
|
360
360
|
}), n = g(() => {
|
|
361
361
|
Bt.value;
|
|
362
362
|
const { height: t, width: l } = le.value, { right: a } = le.value.paddingRatio;
|
|
363
|
-
let o = e.value.style.chart.bars.totalValues.show &&
|
|
363
|
+
let o = e.value.style.chart.bars.totalValues.show && I.dataset && I.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
364
364
|
e.value.style.chart.grid.y.axisLabels.show && (c = vl());
|
|
365
|
-
const r = e.value.style.chart.padding.top + o, d = l - l * a -
|
|
365
|
+
const r = e.value.style.chart.padding.top + o, d = l - l * a - Ye.value, x = t - e.value.style.chart.padding.bottom - aa.value - o, k = e.value.style.chart.padding.left + c, M = l - k - l * a - Ye.value, P = t - r - e.value.style.chart.padding.bottom - aa.value - o;
|
|
366
366
|
return {
|
|
367
367
|
chartHeight: t,
|
|
368
368
|
chartWidth: l,
|
|
@@ -374,7 +374,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
374
374
|
height: Math.max(0, P)
|
|
375
375
|
};
|
|
376
376
|
}), ml = g(() => {
|
|
377
|
-
const { left: t, top: l, width: a, height: o } = n.value, c = v.value.start, r = v.value.end, d = Math.max(1, r - c), x = Math.max(0, Math.min(d, (
|
|
377
|
+
const { left: t, top: l, width: a, height: o } = n.value, c = v.value.start, r = v.value.end, d = Math.max(1, r - c), x = Math.max(0, Math.min(d, (H.value.start ?? c) - c)), k = Math.max(0, Math.min(d, (H.value.end ?? r) - c)), M = Math.max(0, k - x), P = {
|
|
378
378
|
fill: e.value.style.chart.zoom.preview.fill,
|
|
379
379
|
stroke: e.value.style.chart.zoom.preview.stroke,
|
|
380
380
|
"stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
|
|
@@ -406,8 +406,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
406
406
|
...P
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
}),
|
|
410
|
-
const a =
|
|
409
|
+
}), U = g(() => ct.value.map((t, l) => {
|
|
410
|
+
const a = bo(t.color) || cl.value[l] || at[l] || at[l % at.length];
|
|
411
411
|
return {
|
|
412
412
|
...t,
|
|
413
413
|
// In distributed mode, all values are converted to positive
|
|
@@ -418,67 +418,67 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
418
418
|
id: Na(),
|
|
419
419
|
color: a
|
|
420
420
|
};
|
|
421
|
-
})),
|
|
422
|
-
const t = Math.max(...
|
|
423
|
-
return isFinite(t) ? t : Math.max(...
|
|
421
|
+
})), F = g(() => {
|
|
422
|
+
const t = Math.max(...U.value.filter((l) => !A.value.includes(l.id)).map((l) => l.series.length));
|
|
423
|
+
return isFinite(t) ? t : Math.max(...U.value.map((l) => l.series.length));
|
|
424
424
|
});
|
|
425
425
|
function bl(t) {
|
|
426
|
-
|
|
426
|
+
ut.value = t;
|
|
427
427
|
}
|
|
428
428
|
const v = h({
|
|
429
429
|
start: 0,
|
|
430
|
-
end: Math.max(...
|
|
431
|
-
}),
|
|
430
|
+
end: Math.max(...ct.value.map((t) => t.series.length))
|
|
431
|
+
}), H = h({ start: 0, end: Math.max(...ct.value.map((t) => t.series.length)) }), la = g(() => e.value.style.chart.zoom.preview.enable && (H.value.start !== v.value.start || H.value.end !== v.value.end));
|
|
432
432
|
function oa(t, l) {
|
|
433
|
-
|
|
433
|
+
H.value[t] = l;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
const t =
|
|
435
|
+
function Ge() {
|
|
436
|
+
const t = F.value;
|
|
437
437
|
let l = Math.max(0, Math.min(v.value.start ?? 0, t - 1)), a = Math.max(l + 1, Math.min(v.value.end ?? t, t));
|
|
438
|
-
(!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), v.value.start = l, v.value.end = a,
|
|
438
|
+
(!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), v.value.start = l, v.value.end = a, H.value.start = l, H.value.end = a, Ce.value && (Ce.value.setStartValue(l), Ce.value.setEndValue(a));
|
|
439
439
|
}
|
|
440
|
-
const
|
|
440
|
+
const Te = h(null);
|
|
441
441
|
function pl() {
|
|
442
442
|
return new Promise((t) => requestAnimationFrame(
|
|
443
443
|
() => requestAnimationFrame(() => t())
|
|
444
444
|
));
|
|
445
445
|
}
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
tt(() => {
|
|
447
|
+
Te.value && cancelAnimationFrame(Te.value);
|
|
448
448
|
});
|
|
449
449
|
async function sa() {
|
|
450
|
-
|
|
451
|
-
await pl(),
|
|
450
|
+
Qe(), await At(), Te.value && cancelAnimationFrame(Te.value), Te.value = requestAnimationFrame(async () => {
|
|
451
|
+
await pl(), Qe();
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
const m = g(() => {
|
|
455
455
|
let t;
|
|
456
456
|
return e.value.orientation === "vertical" ? t = n.value.width / (v.value.end - v.value.start) : t = n.value.height / (v.value.end - v.value.start), t <= 0 ? 0 : t;
|
|
457
|
-
}),
|
|
457
|
+
}), _e = g(() => Ve(U.value.filter((t) => !A.value.includes(t.id))).slice(v.value.start, v.value.end)), gt = g(() => A.value.length === U.value.length), ve = g(() => e.value.style.chart.zoom.minimap.show ? Ve(U.value.map((t) => ({
|
|
458
458
|
...t,
|
|
459
459
|
series: t.series.map((l) => l ?? 0)
|
|
460
|
-
})).filter((t) =>
|
|
460
|
+
})).filter((t) => gt.value ? !0 : !A.value.includes(t.id))) : []), xl = g(() => e.value.style.chart.zoom.minimap.show ? [{
|
|
461
461
|
name: "",
|
|
462
462
|
series: ve.value,
|
|
463
463
|
color: "#000000",
|
|
464
464
|
isVisible: !0
|
|
465
|
-
}] : []), kl = g(() =>
|
|
465
|
+
}] : []), kl = g(() => Ve(U.value.filter((t) => !A.value.includes(t.id)).map((t) => ({
|
|
466
466
|
...t,
|
|
467
467
|
series: t.series.map((l, a) => t.signedSeries[a] === -1 && l >= 0 ? -l : l)
|
|
468
|
-
}))).slice(v.value.start, v.value.end)),
|
|
469
|
-
const t =
|
|
468
|
+
}))).slice(v.value.start, v.value.end)), Je = g(() => {
|
|
469
|
+
const t = U.value.filter((l) => !A.value.includes(l.id));
|
|
470
470
|
return {
|
|
471
|
-
positive:
|
|
471
|
+
positive: Ve(t.map((l) => ({
|
|
472
472
|
...l,
|
|
473
473
|
series: l.series.slice(v.value.start, v.value.end).map((a) => a >= 0 ? a : 0)
|
|
474
474
|
}))),
|
|
475
|
-
negative:
|
|
475
|
+
negative: Ve(t.map((l) => ({
|
|
476
476
|
...l,
|
|
477
477
|
series: l.series.slice(v.value.start, v.value.end).map((a) => a < 0 ? a : 0)
|
|
478
478
|
})))
|
|
479
479
|
};
|
|
480
480
|
}), Y = g(() => {
|
|
481
|
-
const t = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...
|
|
481
|
+
const t = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...Je.value.positive), l = Math.min(...Je.value.negative), a = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, o = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Oa(a > 0 ? 0 : a, t < 0 ? 0 : t, e.value.style.chart.grid.scale.ticks) : Da(a > 0 ? 0 : a, t < 0 ? 0 : t, e.value.style.chart.grid.scale.ticks);
|
|
482
482
|
return o.ticks.map((c) => ({
|
|
483
483
|
zero: n.value.bottom - n.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
|
|
484
484
|
y: n.value.bottom - n.value.height * ((c + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
|
|
@@ -488,41 +488,41 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
488
488
|
horizontal_y: n.value.bottom - 8,
|
|
489
489
|
value: c
|
|
490
490
|
}));
|
|
491
|
-
}),
|
|
491
|
+
}), W = h([]), be = h([]);
|
|
492
492
|
let ra = 0;
|
|
493
|
-
|
|
493
|
+
Oe(() => {
|
|
494
494
|
const t = ++ra;
|
|
495
495
|
(async () => {
|
|
496
496
|
const l = await Ua({
|
|
497
497
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
498
|
-
maxDatapoints:
|
|
498
|
+
maxDatapoints: F.value,
|
|
499
499
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
500
500
|
start: v.value.start,
|
|
501
501
|
end: v.value.end
|
|
502
502
|
});
|
|
503
|
-
t === ra && (
|
|
503
|
+
t === ra && (W.value = l);
|
|
504
504
|
})();
|
|
505
505
|
});
|
|
506
506
|
let na = 0;
|
|
507
|
-
|
|
507
|
+
Oe(() => {
|
|
508
508
|
const t = ++na;
|
|
509
509
|
(async () => {
|
|
510
510
|
const l = await Ua({
|
|
511
511
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
512
|
-
maxDatapoints:
|
|
512
|
+
maxDatapoints: F.value,
|
|
513
513
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
514
514
|
start: 0,
|
|
515
|
-
end:
|
|
515
|
+
end: F.value
|
|
516
516
|
});
|
|
517
517
|
t === na && (be.value = l);
|
|
518
518
|
})();
|
|
519
519
|
});
|
|
520
520
|
const wl = g(() => {
|
|
521
521
|
const t = e.value.style.chart.grid.x.timeLabels.modulo;
|
|
522
|
-
return
|
|
523
|
-
}),
|
|
524
|
-
const t = e.value.style.chart.grid.x.timeLabels, l =
|
|
525
|
-
return
|
|
522
|
+
return W.value.length ? Math.min(t, [...new Set(W.value.map((l) => l.text))].length) : t;
|
|
523
|
+
}), mt = g(() => {
|
|
524
|
+
const t = e.value.style.chart.grid.x.timeLabels, l = W.value || [], a = be.value || [], o = v.value.start ?? 0, c = B.value, r = F.value, d = l.map((k) => k?.text ?? ""), x = a.map((k) => k?.text ?? "");
|
|
525
|
+
return po(
|
|
526
526
|
!!t.showOnlyFirstAndLast,
|
|
527
527
|
!!t.showOnlyAtModulo,
|
|
528
528
|
Math.max(1, wl.value || 1),
|
|
@@ -533,12 +533,12 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
533
533
|
r
|
|
534
534
|
);
|
|
535
535
|
});
|
|
536
|
-
|
|
537
|
-
e.value.orientation, e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
536
|
+
Oe(() => {
|
|
537
|
+
e.value.orientation, e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY, mt.value?.map((t) => t?.text ?? "").join("|"), Y.value?.map((t) => t?.value ?? "").join("|"), le.value.width, le.value.height, ce.value, ue.value, We.value, gl();
|
|
538
538
|
}, { flush: "post" });
|
|
539
539
|
const ia = h({ months: [], shortMonths: [], days: [], shortDays: [] });
|
|
540
540
|
let ua = 0;
|
|
541
|
-
|
|
541
|
+
Oe(() => {
|
|
542
542
|
const t = ++ua, l = e.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
543
543
|
(async () => {
|
|
544
544
|
const a = await Ha(l.locale).catch(() => Ha("en"));
|
|
@@ -558,100 +558,100 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
558
558
|
}), va = g(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
|
|
559
559
|
text: ca.value(a, e.value.style.chart.zoom.timeFormat),
|
|
560
560
|
absoluteIndex: a
|
|
561
|
-
}))),
|
|
561
|
+
}))), Ll = g(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
|
|
562
562
|
text: ca.value(a, e.value.style.chart.tooltip.timeFormat),
|
|
563
563
|
absoluteIndex: a
|
|
564
564
|
}))), z = g(() => {
|
|
565
565
|
if (!Le.value && !fe.value) return [];
|
|
566
|
-
let t = Array(
|
|
567
|
-
const c = Math.max(...
|
|
568
|
-
let
|
|
569
|
-
return
|
|
570
|
-
const se = xe.series.slice(),
|
|
566
|
+
let t = Array(F.value).fill(0), l = Array(F.value).fill(0), a = Array(F.value).fill(0), o = Array(F.value).fill(0);
|
|
567
|
+
const c = Math.max(...Je.value.positive) || 0, r = Math.min(...Je.value.negative), d = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, x = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Oa(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : d > 0 ? 0 : d, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Da(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : d > 0 ? 0 : d, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: k, max: M } = x, P = M + (k >= 0 ? 0 : Math.abs(k)) || 1, N = n.value.height, j = n.value.width, he = Y.value[0] ? Y.value[0].zero : n.value.bottom, Ie = Y.value[0] ? Y.value[0].horizontal_zero : n.value.left;
|
|
568
|
+
let Fe = Array(ve.value.length).fill(0), J = Array(ve.value.length).fill(0);
|
|
569
|
+
return U.value.filter((xe) => !A.value.includes(xe.id)).map((xe) => {
|
|
570
|
+
const se = xe.series.slice(), _a = se.map((y, p) => Fe[p]), Jl = se.map((y, p) => J[p]);
|
|
571
571
|
se.forEach((y, p) => {
|
|
572
|
-
(Number(y) || 0) >= 0 ?
|
|
572
|
+
(Number(y) || 0) >= 0 ? Fe[p] += Number(y) || 0 : J[p] += Math.abs(Number(y) || 0);
|
|
573
573
|
});
|
|
574
|
-
const te = xe.series.slice(v.value.start, v.value.end),
|
|
574
|
+
const te = xe.series.slice(v.value.start, v.value.end), Kl = xe.signedSeries.slice(v.value.start, v.value.end), Zl = te.map((y, p) => n.value.left + m.value * p + m.value * e.value.style.chart.bars.gapRatio / 4), et = (ve.value || []).filter(Number.isFinite), zt = et.length ? Math.max(...et) : 0, Mt = et.length ? Math.min(...et) : 0;
|
|
575
575
|
function Aa({ minimapH: y }) {
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
576
|
+
const T = zt > 0, O = Mt < 0;
|
|
577
|
+
if (T && O) {
|
|
578
578
|
const K = Math.max(zt, Math.abs(Mt)) || 1e-9;
|
|
579
579
|
return {
|
|
580
580
|
pxPerUnit: y / 2 / K,
|
|
581
581
|
zero: y / 2
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
if (
|
|
584
|
+
if (T) {
|
|
585
585
|
const K = Math.max(1e-9, zt);
|
|
586
586
|
return {
|
|
587
587
|
pxPerUnit: y / K,
|
|
588
588
|
zero: y
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
const
|
|
591
|
+
const _ = Math.max(1e-9, Math.abs(Mt));
|
|
592
592
|
return {
|
|
593
|
-
pxPerUnit: y /
|
|
593
|
+
pxPerUnit: y / _,
|
|
594
594
|
zero: 0
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
const
|
|
598
|
-
const
|
|
599
|
-
return se.map((
|
|
600
|
-
},
|
|
601
|
-
const
|
|
602
|
-
let
|
|
603
|
-
return y > 0 ? (
|
|
604
|
-
}),
|
|
597
|
+
const Ql = ({ left: y, unitW: p }) => {
|
|
598
|
+
const T = p * (e.value.style.chart.bars.gapRatio / 4);
|
|
599
|
+
return se.map((O, _) => y + p * _ + T);
|
|
600
|
+
}, jl = te.map((y, p) => n.value.top + m.value * p + m.value * e.value.style.chart.bars.gapRatio / 4), eo = te.map((y, p) => {
|
|
601
|
+
const T = e.value.style.chart.bars.distributed ? (y || 0) / _e.value[p] : (y || 0) / P;
|
|
602
|
+
let O, _;
|
|
603
|
+
return y > 0 ? (_ = N * T, O = he - _ - t[p], t[p] += _) : (_ = N * T, O = he + a[p], a[p] += Math.abs(_)), O;
|
|
604
|
+
}), to = ({ minimapH: y }) => {
|
|
605
605
|
if (e.value.style.chart.bars.distributed)
|
|
606
|
-
return se.map((
|
|
607
|
-
const
|
|
608
|
-
return y -
|
|
606
|
+
return se.map((_, K) => {
|
|
607
|
+
const Tt = Math.abs(Number(_) || 0), $a = Math.abs(ve.value?.[K] || 0) || 1e-9, no = (_a[K] + Tt) / $a;
|
|
608
|
+
return y - no * y;
|
|
609
609
|
});
|
|
610
|
-
const { pxPerUnit: p, zero:
|
|
611
|
-
return se.map((
|
|
612
|
-
const K = Number(
|
|
613
|
-
return K >= 0 ?
|
|
610
|
+
const { pxPerUnit: p, zero: T } = Aa({ minimapH: y });
|
|
611
|
+
return se.map((O, _) => {
|
|
612
|
+
const K = Number(O) || 0;
|
|
613
|
+
return K >= 0 ? T - (_a[_] + K) * p : T + Jl[_] * p;
|
|
614
614
|
});
|
|
615
|
-
},
|
|
616
|
-
const
|
|
617
|
-
let
|
|
618
|
-
return y > 0 ? (
|
|
619
|
-
}),
|
|
620
|
-
const
|
|
621
|
-
return y > 0 ? N *
|
|
622
|
-
}),
|
|
615
|
+
}, ao = te.map((y, p) => {
|
|
616
|
+
const T = e.value.style.chart.bars.distributed ? (y || 0) / _e.value[p] : (y || 0) / P;
|
|
617
|
+
let O, _;
|
|
618
|
+
return y > 0 ? (_ = j * T, O = Ie + l[p], l[p] += _) : (_ = j * T, O = Ie - Math.abs(_) - o[p], o[p] += Math.abs(_)), O;
|
|
619
|
+
}), lo = te.map((y, p) => {
|
|
620
|
+
const T = e.value.style.chart.bars.distributed ? (y || 0) / _e.value[p] : (y || 0) / P;
|
|
621
|
+
return y > 0 ? N * T : N * Math.abs(T);
|
|
622
|
+
}), oo = ({ minimapH: y }) => {
|
|
623
623
|
if (e.value.style.chart.bars.distributed)
|
|
624
|
-
return se.map((
|
|
625
|
-
const K = Math.abs(Number(
|
|
626
|
-
return K /
|
|
624
|
+
return se.map((O, _) => {
|
|
625
|
+
const K = Math.abs(Number(O) || 0), Tt = Math.abs(ve.value?.[_] || 0) || 1e-9;
|
|
626
|
+
return K / Tt * y;
|
|
627
627
|
});
|
|
628
628
|
const { pxPerUnit: p } = Aa({ minimapH: y });
|
|
629
|
-
return se.map((
|
|
630
|
-
},
|
|
631
|
-
const
|
|
632
|
-
return y > 0 ? j *
|
|
633
|
-
}),
|
|
629
|
+
return se.map((T) => Math.abs(Number(T) || 0) * p);
|
|
630
|
+
}, so = te.map((y, p) => {
|
|
631
|
+
const T = e.value.style.chart.bars.distributed ? (y || 0) / _e.value[p] : (y || 0) / P;
|
|
632
|
+
return y > 0 ? j * T : j * Math.abs(T);
|
|
633
|
+
}), ro = te.map((y) => Math.abs(y)).reduce((y, p) => y + p, 0);
|
|
634
634
|
return {
|
|
635
635
|
...xe,
|
|
636
|
-
proportions: te.map((y, p) => e.value.style.chart.bars.distributed ? (y || 0) /
|
|
636
|
+
proportions: te.map((y, p) => e.value.style.chart.bars.distributed ? (y || 0) / _e.value[p] : (y || 0) / ro),
|
|
637
637
|
series: te,
|
|
638
|
-
signedSeries:
|
|
639
|
-
x:
|
|
640
|
-
y:
|
|
641
|
-
height:
|
|
642
|
-
horizontal_width:
|
|
643
|
-
horizontal_y:
|
|
644
|
-
horizontal_x:
|
|
645
|
-
xMinimap:
|
|
646
|
-
yMinimap:
|
|
647
|
-
heightMinimap:
|
|
638
|
+
signedSeries: Kl,
|
|
639
|
+
x: Zl,
|
|
640
|
+
y: eo,
|
|
641
|
+
height: lo,
|
|
642
|
+
horizontal_width: so,
|
|
643
|
+
horizontal_y: jl,
|
|
644
|
+
horizontal_x: ao,
|
|
645
|
+
xMinimap: Ql,
|
|
646
|
+
yMinimap: to,
|
|
647
|
+
heightMinimap: oo
|
|
648
648
|
};
|
|
649
649
|
});
|
|
650
650
|
}), ha = g(() => kl.value.map((t, l) => ({
|
|
651
651
|
value: t,
|
|
652
652
|
sign: t >= 0 ? 1 : -1
|
|
653
653
|
})));
|
|
654
|
-
function
|
|
654
|
+
function Ke(t, l, a, o, c) {
|
|
655
655
|
const r = c === -1 && t >= 0 ? -t : t;
|
|
656
656
|
return we(
|
|
657
657
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
@@ -685,7 +685,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
685
685
|
color: a.color,
|
|
686
686
|
id: a.id
|
|
687
687
|
}));
|
|
688
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t + v.value.start }), ae("selectDatapoint", { datapoint: l, period:
|
|
688
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t + v.value.start }), ae("selectDatapoint", { datapoint: l, period: W.value[t] });
|
|
689
689
|
}
|
|
690
690
|
function pt(t) {
|
|
691
691
|
return JSON.parse(JSON.stringify(z.value)).map((l) => ({
|
|
@@ -703,35 +703,42 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
703
703
|
const l = pt(t);
|
|
704
704
|
e.value.events.datapointLeave({ datapoint: l, seriesIndex: t + v.value.start });
|
|
705
705
|
}
|
|
706
|
-
ye.value = !1,
|
|
706
|
+
ye.value = !1, B.value = null, G.value === t && (G.value = null);
|
|
707
707
|
}
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
if ([null, void 0].includes(
|
|
711
|
-
|
|
708
|
+
const Cl = g(() => Array(F.value).fill(0).map((t, l) => pt(l)));
|
|
709
|
+
Re(() => I.selectedXIndex, (t) => {
|
|
710
|
+
if ([null, void 0].includes(I.selectedXIndex)) {
|
|
711
|
+
B.value = null;
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
714
|
const l = t - v.value.start;
|
|
715
|
-
l < 0 || t >= v.value.end ?
|
|
715
|
+
l < 0 || t >= v.value.end ? B.value = null : B.value = l ?? null;
|
|
716
716
|
}, { immediate: !0 });
|
|
717
|
+
function fa(t) {
|
|
718
|
+
if (!e.value.style.chart.tooltip.showTimeLabel)
|
|
719
|
+
return null;
|
|
720
|
+
const l = W.value?.[t]?.text || null, a = Ll.value?.[t]?.text || null, o = be.value?.[t]?.text || null;
|
|
721
|
+
return e.value.style.chart.tooltip.useDefaultTimeFormat ? l : a || o;
|
|
722
|
+
}
|
|
717
723
|
function xt(t, l = "pointer") {
|
|
718
|
-
if (
|
|
719
|
-
Wt.value = l, G.value = t,
|
|
724
|
+
if (gt.value) return;
|
|
725
|
+
Wt.value = l, G.value = t, B.value = t, ye.value = !0;
|
|
720
726
|
const a = e.value.style.chart.tooltip.customFormat, o = pt(t);
|
|
721
|
-
|
|
727
|
+
Ul({ seriesIndex: t, datapoint: o }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t + v.value.start }), Be.value = {
|
|
728
|
+
timeLabel: fa(t),
|
|
722
729
|
datapoint: o,
|
|
723
730
|
seriesIndex: t,
|
|
724
731
|
config: e.value,
|
|
725
732
|
series: z.value
|
|
726
733
|
};
|
|
727
734
|
const c = o.map((d) => Math.abs(d.value)).reduce((d, x) => d + x, 0), r = o.map((d) => de(d.value)).reduce((d, x) => d + x, 0);
|
|
728
|
-
if (Va(a) &&
|
|
735
|
+
if (Va(a) && zo(() => a({
|
|
729
736
|
seriesIndex: t,
|
|
730
737
|
datapoint: o,
|
|
731
738
|
series: z.value,
|
|
732
739
|
config: e.value
|
|
733
740
|
})))
|
|
734
|
-
|
|
741
|
+
ot.value = a({
|
|
735
742
|
seriesIndex: t,
|
|
736
743
|
datapoint: o,
|
|
737
744
|
series: z.value,
|
|
@@ -748,7 +755,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
748
755
|
roundingPercentage: j
|
|
749
756
|
} = e.value.style.chart.tooltip;
|
|
750
757
|
let he = "";
|
|
751
|
-
|
|
758
|
+
const Ie = fa(t);
|
|
759
|
+
Ie && (he += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P};padding-bottom:6px;margin-bottom:3px;">${Ie}</div>`), x && (he += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
752
760
|
<span>${k}:</span>
|
|
753
761
|
<span>
|
|
754
762
|
${we(
|
|
@@ -789,60 +797,60 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
789
797
|
}) : ""}${Fe[1]}
|
|
790
798
|
</div>
|
|
791
799
|
`;
|
|
792
|
-
}),
|
|
800
|
+
}), ot.value = `<div>${he}</div>`;
|
|
793
801
|
}
|
|
794
802
|
}
|
|
795
|
-
const
|
|
796
|
-
|
|
803
|
+
const Sl = g(() => le.value.width), zl = g(() => le.value.height);
|
|
804
|
+
Do({
|
|
797
805
|
timeLabelsEls: e.value.orientation === "vertical" ? ce : ue,
|
|
798
|
-
timeLabels:
|
|
806
|
+
timeLabels: W,
|
|
799
807
|
slicer: v,
|
|
800
808
|
configRef: e,
|
|
801
809
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
802
810
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
803
811
|
isAutoSize: !1,
|
|
804
|
-
width:
|
|
805
|
-
height:
|
|
812
|
+
width: Sl,
|
|
813
|
+
height: zl,
|
|
806
814
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
807
815
|
});
|
|
808
|
-
function
|
|
816
|
+
function ga(t) {
|
|
809
817
|
Se.value = t, Nt.value += 1;
|
|
810
818
|
}
|
|
811
|
-
function
|
|
819
|
+
function ma() {
|
|
812
820
|
$.value.showTable = !$.value.showTable;
|
|
813
821
|
}
|
|
814
|
-
function
|
|
822
|
+
function ba() {
|
|
815
823
|
$.value.dataLabels.show = !$.value.dataLabels.show;
|
|
816
824
|
}
|
|
817
|
-
function
|
|
825
|
+
function pa() {
|
|
818
826
|
$.value.showTooltip = !$.value.showTooltip;
|
|
819
827
|
}
|
|
820
|
-
function
|
|
828
|
+
function Ml() {
|
|
821
829
|
return z.value;
|
|
822
830
|
}
|
|
823
|
-
const
|
|
831
|
+
const xa = g(() => {
|
|
824
832
|
if (z.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
825
833
|
const t = z.value.map(({ name: a, color: o }) => ({
|
|
826
834
|
label: a,
|
|
827
835
|
color: o
|
|
828
836
|
})), l = [];
|
|
829
|
-
return
|
|
837
|
+
return W.value.forEach((a) => {
|
|
830
838
|
const o = [e.value.style.chart.grid.x.timeLabels.values[a.absoluteIndex] ? a.text : i + 1];
|
|
831
|
-
|
|
839
|
+
U.value.forEach((c) => {
|
|
832
840
|
o.push(Number((c.series[a.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
833
841
|
}), l.push(o);
|
|
834
842
|
}), { head: t, body: l };
|
|
835
843
|
});
|
|
836
844
|
function kt(t = null) {
|
|
837
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...
|
|
838
|
-
t ? t(r) :
|
|
845
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...xa.value.head.map((d) => d.label)], o = xa.value.body, c = l.concat([a]).concat(o), r = Co(c);
|
|
846
|
+
t ? t(r) : So({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
839
847
|
}
|
|
840
848
|
const pe = g(() => {
|
|
841
849
|
const t = [""].concat(z.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
842
850
|
let l = [];
|
|
843
|
-
for (let c = 0; c <
|
|
851
|
+
for (let c = 0; c < F.value; c += 1) {
|
|
844
852
|
const r = z.value.map((d) => d.series[c] ?? 0).reduce((d, x) => d + x, 0);
|
|
845
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ?
|
|
853
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? W.value[c]?.text : c + 1].concat(z.value.map((d) => (d.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((r ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
846
854
|
}
|
|
847
855
|
const a = {
|
|
848
856
|
th: {
|
|
@@ -859,7 +867,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
859
867
|
}, o = [e.value.table.columnNames.period].concat(z.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
860
868
|
return { head: t, body: l.slice(0, v.value.end - v.value.start), config: a, colNames: o };
|
|
861
869
|
});
|
|
862
|
-
function
|
|
870
|
+
function Tl() {
|
|
863
871
|
A.value.length ? A.value = [] : Ae.value.forEach((t) => {
|
|
864
872
|
A.value.push(t.id);
|
|
865
873
|
});
|
|
@@ -868,26 +876,26 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
868
876
|
if (A.value.includes(t.id))
|
|
869
877
|
A.value = A.value.filter((l) => l !== t.id);
|
|
870
878
|
else {
|
|
871
|
-
if (A.value.length ===
|
|
879
|
+
if (A.value.length === U.value.length - 1) return;
|
|
872
880
|
A.value.push(t.id);
|
|
873
881
|
}
|
|
874
882
|
ae("selectLegend", z.value);
|
|
875
883
|
}
|
|
876
|
-
function
|
|
877
|
-
if (!
|
|
884
|
+
function ka(t) {
|
|
885
|
+
if (!U.value.length)
|
|
878
886
|
return e.value.debug && console.warn("VueUiStackbar - There are no series to show."), null;
|
|
879
|
-
const l =
|
|
887
|
+
const l = U.value.find((a) => a.name === t);
|
|
880
888
|
return l || (e.value.debug && console.warn(`VueUiStackbar - Series name not found "${t}"`), null);
|
|
881
889
|
}
|
|
882
890
|
function _l(t) {
|
|
883
|
-
const l =
|
|
891
|
+
const l = ka(t);
|
|
884
892
|
l !== null && A.value.includes(l.id) && wt({ id: l.id });
|
|
885
893
|
}
|
|
886
|
-
function
|
|
887
|
-
const l =
|
|
894
|
+
function Al(t) {
|
|
895
|
+
const l = ka(t);
|
|
888
896
|
l !== null && (A.value.includes(l.id) || wt({ id: l.id }));
|
|
889
897
|
}
|
|
890
|
-
const Ae = g(() =>
|
|
898
|
+
const Ae = g(() => U.value.map((t, l) => ({
|
|
891
899
|
...t,
|
|
892
900
|
shape: "square"
|
|
893
901
|
})).map((t) => ({
|
|
@@ -895,7 +903,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
895
903
|
opacity: A.value.includes(t.id) ? 0.5 : 1,
|
|
896
904
|
segregate: () => wt(t),
|
|
897
905
|
isSegregated: A.value.includes(t.id)
|
|
898
|
-
}))),
|
|
906
|
+
}))), $l = g(() => ({
|
|
899
907
|
cy: "stackbar-legend",
|
|
900
908
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
901
909
|
color: e.value.style.chart.legend.color,
|
|
@@ -906,7 +914,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
906
914
|
function Lt() {
|
|
907
915
|
$e.value = !$e.value;
|
|
908
916
|
}
|
|
909
|
-
function
|
|
917
|
+
function Ze(t, l) {
|
|
910
918
|
const a = JSON.parse(JSON.stringify(z.value)).map((o) => ({
|
|
911
919
|
name: o.name,
|
|
912
920
|
value: o.series[l] === 0 ? 0 : (o.signedSeries[l] === -1 && o.series[l] >= 0 ? -o.series[l] : o.series[l]) || null,
|
|
@@ -920,13 +928,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
920
928
|
label: t.text
|
|
921
929
|
});
|
|
922
930
|
}
|
|
923
|
-
const
|
|
924
|
-
function
|
|
925
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Zt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : Zt.value ? (Kt.value &&
|
|
931
|
+
const Pl = g(() => Math.max(...z.value.flatMap((t) => t.series)));
|
|
932
|
+
function wa(t, l) {
|
|
933
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Zt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : Zt.value ? (Kt.value && ft.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."), t > Pl.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : Kt.value ? Math.abs(t) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? t !== 0 : !0;
|
|
926
934
|
}
|
|
927
|
-
async function
|
|
935
|
+
async function Nl({ scale: t = 2 } = {}) {
|
|
928
936
|
if (!Q.value) return;
|
|
929
|
-
const { width: l, height: a } = Q.value.getBoundingClientRect(), o = l / a, { imageUri: c, base64: r } = await
|
|
937
|
+
const { width: l, height: a } = Q.value.getBoundingClientRect(), o = l / a, { imageUri: c, base64: r } = await Eo({ domElement: Q.value, base64: !0, img: !0, scale: t });
|
|
930
938
|
return {
|
|
931
939
|
imageUri: c,
|
|
932
940
|
base64: r,
|
|
@@ -967,70 +975,70 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
967
975
|
}
|
|
968
976
|
};
|
|
969
977
|
});
|
|
970
|
-
|
|
978
|
+
Re(() => $.value.showTable, (t) => {
|
|
971
979
|
e.value.table.show || (t && e.value.table.useDialog && ze.value ? ze.value.open() : "close" in ze.value && ze.value.close());
|
|
972
980
|
});
|
|
973
|
-
function
|
|
974
|
-
$.value.showTable = !1,
|
|
981
|
+
function La() {
|
|
982
|
+
$.value.showTable = !1, st.value && st.value.setTableIconState(!1);
|
|
975
983
|
}
|
|
976
|
-
const
|
|
984
|
+
const Il = g(() => e.value.style.chart.backgroundColor), Fl = g(() => e.value.style.chart.legend), Rl = g(() => e.value.style.chart.title), { exportSvg: Ol, getSvg: Dl } = No({
|
|
977
985
|
svg: ge,
|
|
978
|
-
title:
|
|
986
|
+
title: Rl,
|
|
979
987
|
legend: Fl,
|
|
980
988
|
legendItems: Ae,
|
|
981
|
-
backgroundColor:
|
|
989
|
+
backgroundColor: Il
|
|
982
990
|
});
|
|
983
|
-
async function
|
|
984
|
-
|
|
991
|
+
async function Ca({ isCb: t }) {
|
|
992
|
+
He.value = !0, await At();
|
|
985
993
|
try {
|
|
986
994
|
if (t) {
|
|
987
|
-
const { blob: l, url: a, text: o, dataUrl: c } = await
|
|
995
|
+
const { blob: l, url: a, text: o, dataUrl: c } = await Dl();
|
|
988
996
|
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: c }));
|
|
989
997
|
} else
|
|
990
|
-
await Promise.resolve(
|
|
998
|
+
await Promise.resolve(Ol());
|
|
991
999
|
} finally {
|
|
992
|
-
|
|
1000
|
+
He.value = !1;
|
|
993
1001
|
}
|
|
994
1002
|
}
|
|
995
|
-
function
|
|
1003
|
+
function El(t) {
|
|
996
1004
|
if (t?.stage === "start") {
|
|
997
|
-
|
|
1005
|
+
Ue.value = !0;
|
|
998
1006
|
return;
|
|
999
1007
|
}
|
|
1000
1008
|
if (t?.stage === "end") {
|
|
1001
|
-
|
|
1009
|
+
Ue.value = !1;
|
|
1002
1010
|
return;
|
|
1003
1011
|
}
|
|
1004
1012
|
jt();
|
|
1005
1013
|
}
|
|
1006
|
-
function
|
|
1007
|
-
const l =
|
|
1014
|
+
function Sa(t) {
|
|
1015
|
+
const l = F.value;
|
|
1008
1016
|
return t > l ? l : t < 0 || t < v.value.start ? e.value.style.chart.zoom.startIndex !== null ? v.value.start + 1 : 1 : t;
|
|
1009
1017
|
}
|
|
1010
|
-
const Ne = h(!1),
|
|
1011
|
-
function
|
|
1018
|
+
const Ne = h(!1), za = h(!1);
|
|
1019
|
+
function Qe() {
|
|
1012
1020
|
if (!Ne.value) {
|
|
1013
1021
|
Ne.value = !0;
|
|
1014
1022
|
try {
|
|
1015
|
-
const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a =
|
|
1016
|
-
|
|
1023
|
+
const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a = F.value, o = t ?? 0, c = l != null ? Math.min(Sa(l + 1), a) : a;
|
|
1024
|
+
je.value = !0, v.value.start = o, v.value.end = c, H.value.start = o, H.value.end = c, Ge(), za.value = !0;
|
|
1017
1025
|
} finally {
|
|
1018
1026
|
queueMicrotask(() => {
|
|
1019
|
-
|
|
1027
|
+
je.value = !1;
|
|
1020
1028
|
}), Ne.value = !1;
|
|
1021
1029
|
}
|
|
1022
1030
|
}
|
|
1023
1031
|
}
|
|
1024
|
-
const
|
|
1025
|
-
function El(t) {
|
|
1026
|
-
Ne.value || Ze.value || t !== v.value.start && (v.value.start = t, W.value.start = t, Ye());
|
|
1027
|
-
}
|
|
1032
|
+
const je = h(!1);
|
|
1028
1033
|
function Vl(t) {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1034
|
+
Ne.value || je.value || t !== v.value.start && (v.value.start = t, H.value.start = t, Ge());
|
|
1035
|
+
}
|
|
1036
|
+
function Bl(t) {
|
|
1037
|
+
if (Ne.value || je.value) return;
|
|
1038
|
+
const l = Sa(t);
|
|
1039
|
+
l !== v.value.end && (v.value.end = l, H.value.end = l, Ge());
|
|
1032
1040
|
}
|
|
1033
|
-
function
|
|
1041
|
+
function Ul({ seriesIndex: t, datapoint: l }) {
|
|
1034
1042
|
const a = v.value.start + t;
|
|
1035
1043
|
ae("selectX", {
|
|
1036
1044
|
dataset: l,
|
|
@@ -1038,11 +1046,11 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1038
1046
|
indexLabel: e.value.style.chart.grid.x.timeLabels.values[a]
|
|
1039
1047
|
});
|
|
1040
1048
|
}
|
|
1041
|
-
function
|
|
1049
|
+
function Ma() {
|
|
1042
1050
|
return { y0: Y.value?.[0]?.zero ?? n.value.bottom };
|
|
1043
1051
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const { y0: l } =
|
|
1052
|
+
function Hl(t) {
|
|
1053
|
+
const { y0: l } = Ma(), a = e.value.style.chart.bars.totalValues, o = Math.max(2, a.fontSize * 0.3 + a.offsetY);
|
|
1046
1054
|
let c = 1 / 0, r = !1;
|
|
1047
1055
|
for (const M of z.value || []) {
|
|
1048
1056
|
const P = M?.series?.[t] ?? 0, N = M?.height?.[t] ?? 0, j = M?.y?.[t];
|
|
@@ -1054,8 +1062,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1054
1062
|
n.value.bottom
|
|
1055
1063
|
);
|
|
1056
1064
|
}
|
|
1057
|
-
function
|
|
1058
|
-
const { x0: l } =
|
|
1065
|
+
function Wl(t) {
|
|
1066
|
+
const { x0: l } = Ma(), a = Math.max(2, e.value.style.chart.bars.totalValues.fontSize * 0.3 + e.value.style.chart.bars.totalValues.offsetX);
|
|
1059
1067
|
let o = -1 / 0, c = !1;
|
|
1060
1068
|
for (const d of z.value || []) {
|
|
1061
1069
|
const x = d?.series?.[t] ?? 0, k = d?.horizontal_x?.[t], M = d?.horizontal_width?.[t], P = Number.isFinite(M) ? Math.max(0, M) : 0;
|
|
@@ -1063,7 +1071,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1063
1071
|
}
|
|
1064
1072
|
return (c && Number.isFinite(o) ? o : l) + a;
|
|
1065
1073
|
}
|
|
1066
|
-
async function
|
|
1074
|
+
async function Ta() {
|
|
1067
1075
|
if (ae("copyAlt", {
|
|
1068
1076
|
config: e.value,
|
|
1069
1077
|
dataset: z.value
|
|
@@ -1077,20 +1085,20 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1077
1085
|
}));
|
|
1078
1086
|
}
|
|
1079
1087
|
const Ct = h(!1);
|
|
1080
|
-
function
|
|
1088
|
+
function Xl() {
|
|
1081
1089
|
G.value = null, Ct.value = !0;
|
|
1082
1090
|
}
|
|
1083
|
-
function
|
|
1084
|
-
G.value = null, ye.value = !1,
|
|
1091
|
+
function Yl() {
|
|
1092
|
+
G.value = null, ye.value = !1, B.value = null, ae("selectX", { seriesIndex: null, datapoint: null }), Ct.value = !1;
|
|
1085
1093
|
}
|
|
1086
|
-
function
|
|
1087
|
-
if (!ge.value || $e.value || document.activeElement !== ge.value ||
|
|
1094
|
+
function ql(t) {
|
|
1095
|
+
if (!ge.value || $e.value || document.activeElement !== ge.value || gt.value || !v.value.end && v.value.end !== 0) return;
|
|
1088
1096
|
const l = e.value.orientation === "vertical", a = e.value.orientation === "horizontal", o = l && t.key === "ArrowLeft" || a && t.key === "ArrowUp", c = l && t.key === "ArrowRight" || a && t.key === "ArrowDown", r = t.key === "Enter" || t.key === " ", d = t.key === "Escape";
|
|
1089
1097
|
if (!o && !c && !r && !d) return;
|
|
1090
1098
|
const x = v.value.end - v.value.start;
|
|
1091
1099
|
if (x <= 0) return;
|
|
1092
1100
|
if (t.preventDefault(), t.stopPropagation(), d) {
|
|
1093
|
-
G.value = null, ye.value = !1,
|
|
1101
|
+
G.value = null, ye.value = !1, B.value = null, ae("selectX", { seriesIndex: null, datapoint: null });
|
|
1094
1102
|
return;
|
|
1095
1103
|
}
|
|
1096
1104
|
if (r) {
|
|
@@ -1099,14 +1107,14 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1099
1107
|
return;
|
|
1100
1108
|
}
|
|
1101
1109
|
let k = G.value;
|
|
1102
|
-
const M =
|
|
1103
|
-
P ? c ? (k += 1, k >= x && (k = 0)) : o && (k -= 1, k < 0 && (k = x - 1)) : N ? (k = c ? M + 1 : M - 1, k >= x && (k = 0), k < 0 && (k = x - 1)) : c ? k = 0 : k = x - 1, G.value = k,
|
|
1110
|
+
const M = B.value, P = k !== null && k >= 0 && k < x, N = M !== null && M >= 0 && M < x;
|
|
1111
|
+
P ? c ? (k += 1, k >= x && (k = 0)) : o && (k -= 1, k < 0 && (k = x - 1)) : N ? (k = c ? M + 1 : M - 1, k >= x && (k = 0), k < 0 && (k = x - 1)) : c ? k = 0 : k = x - 1, G.value = k, Gl(k), xt(k, "keyboard");
|
|
1104
1112
|
}
|
|
1105
|
-
function
|
|
1113
|
+
function Gl(t) {
|
|
1106
1114
|
if (!Number.isFinite(t)) return;
|
|
1107
1115
|
let l, a;
|
|
1108
1116
|
e.value.orientation === "vertical" ? (l = n.value.left + t * m.value + m.value / 2, a = n.value.top + n.value.height / 2) : (l = n.value.left + n.value.width / 2, a = n.value.top + t * m.value + m.value / 2);
|
|
1109
|
-
const o =
|
|
1117
|
+
const o = Mo(l, a, ge.value);
|
|
1110
1118
|
o && (Ht.value = o);
|
|
1111
1119
|
}
|
|
1112
1120
|
const St = g(() => {
|
|
@@ -1114,20 +1122,20 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1114
1122
|
return { headers: t, rows: l };
|
|
1115
1123
|
});
|
|
1116
1124
|
return Wa({
|
|
1117
|
-
getData:
|
|
1118
|
-
getImage:
|
|
1125
|
+
getData: Ml,
|
|
1126
|
+
getImage: Nl,
|
|
1119
1127
|
generatePdf: Qt,
|
|
1120
1128
|
generateCsv: kt,
|
|
1121
1129
|
generateImage: jt,
|
|
1122
|
-
generateSvg:
|
|
1123
|
-
hideSeries:
|
|
1130
|
+
generateSvg: Ca,
|
|
1131
|
+
hideSeries: Al,
|
|
1124
1132
|
showSeries: _l,
|
|
1125
|
-
toggleTable:
|
|
1126
|
-
toggleLabels:
|
|
1127
|
-
toggleTooltip:
|
|
1133
|
+
toggleTable: ma,
|
|
1134
|
+
toggleLabels: ba,
|
|
1135
|
+
toggleTooltip: pa,
|
|
1128
1136
|
toggleAnnotator: Lt,
|
|
1129
|
-
toggleFullscreen:
|
|
1130
|
-
copyAlt:
|
|
1137
|
+
toggleFullscreen: ga,
|
|
1138
|
+
copyAlt: Ta
|
|
1131
1139
|
}), (t, l) => (s(), u("div", {
|
|
1132
1140
|
id: `stackbar_${R.value}`,
|
|
1133
1141
|
ref_key: "stackbarChart",
|
|
@@ -1141,9 +1149,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1141
1149
|
id: `chart-instructions-${R.value}`,
|
|
1142
1150
|
class: "sr-only"
|
|
1143
1151
|
}, [
|
|
1144
|
-
Z("p", null,
|
|
1145
|
-
], 8,
|
|
1146
|
-
St.value?.rows?.length ? (s(), ee(
|
|
1152
|
+
Z("p", null, V(e.value.a11y.translations.keyboardNavigation), 1)
|
|
1153
|
+
], 8, Jo),
|
|
1154
|
+
St.value?.rows?.length ? (s(), ee(Wo, {
|
|
1147
1155
|
key: 0,
|
|
1148
1156
|
uid: R.value,
|
|
1149
1157
|
head: St.value.headers,
|
|
@@ -1164,19 +1172,19 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1164
1172
|
L(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1165
1173
|
]),
|
|
1166
1174
|
"annotator-action-color": C(({ color: a }) => [
|
|
1167
|
-
L(t.$slots, "annotator-action-color",
|
|
1175
|
+
L(t.$slots, "annotator-action-color", D(E({ color: a })), void 0, !0)
|
|
1168
1176
|
]),
|
|
1169
1177
|
"annotator-action-draw": C(({ mode: a }) => [
|
|
1170
|
-
L(t.$slots, "annotator-action-draw",
|
|
1178
|
+
L(t.$slots, "annotator-action-draw", D(E({ mode: a })), void 0, !0)
|
|
1171
1179
|
]),
|
|
1172
1180
|
"annotator-action-undo": C(({ disabled: a }) => [
|
|
1173
|
-
L(t.$slots, "annotator-action-undo",
|
|
1181
|
+
L(t.$slots, "annotator-action-undo", D(E({ disabled: a })), void 0, !0)
|
|
1174
1182
|
]),
|
|
1175
1183
|
"annotator-action-redo": C(({ disabled: a }) => [
|
|
1176
|
-
L(t.$slots, "annotator-action-redo",
|
|
1184
|
+
L(t.$slots, "annotator-action-redo", D(E({ disabled: a })), void 0, !0)
|
|
1177
1185
|
]),
|
|
1178
1186
|
"annotator-action-delete": C(({ disabled: a }) => [
|
|
1179
|
-
L(t.$slots, "annotator-action-delete",
|
|
1187
|
+
L(t.$slots, "annotator-action-delete", D(E({ disabled: a })), void 0, !0)
|
|
1180
1188
|
]),
|
|
1181
1189
|
_: 3
|
|
1182
1190
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : f("", !0),
|
|
@@ -1184,10 +1192,10 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1184
1192
|
e.value.style.chart.title.text ? (s(), u("div", {
|
|
1185
1193
|
key: 2,
|
|
1186
1194
|
ref_key: "chartTitle",
|
|
1187
|
-
ref:
|
|
1195
|
+
ref: It,
|
|
1188
1196
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1189
1197
|
}, [
|
|
1190
|
-
(s(), ee(
|
|
1198
|
+
(s(), ee(Vo, {
|
|
1191
1199
|
key: `title_${Ot.value}`,
|
|
1192
1200
|
config: {
|
|
1193
1201
|
title: {
|
|
@@ -1203,15 +1211,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1203
1211
|
], 512)) : f("", !0),
|
|
1204
1212
|
Z("div", {
|
|
1205
1213
|
id: `legend-top-${R.value}`
|
|
1206
|
-
}, null, 8,
|
|
1207
|
-
e.value.userOptions.show && Le.value && (b(Jt) || b(
|
|
1214
|
+
}, null, 8, Ko),
|
|
1215
|
+
e.value.userOptions.show && Le.value && (b(Jt) || b(vt)) ? (s(), ee(b(Za), {
|
|
1208
1216
|
ref_key: "userOptionsRef",
|
|
1209
|
-
ref:
|
|
1217
|
+
ref: st,
|
|
1210
1218
|
key: `user_option_${Nt.value}`,
|
|
1211
1219
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1212
1220
|
color: e.value.style.chart.color,
|
|
1213
|
-
isPrinting: b(
|
|
1214
|
-
isImaging: b(
|
|
1221
|
+
isPrinting: b(dt),
|
|
1222
|
+
isImaging: b(yt),
|
|
1215
1223
|
uid: R.value,
|
|
1216
1224
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
1217
1225
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -1233,24 +1241,24 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1233
1241
|
printScale: e.value.userOptions.print.scale,
|
|
1234
1242
|
tableDialog: e.value.table.useDialog,
|
|
1235
1243
|
isCursorPointer: X.value,
|
|
1236
|
-
onToggleFullscreen:
|
|
1244
|
+
onToggleFullscreen: ga,
|
|
1237
1245
|
onGeneratePdf: b(Qt),
|
|
1238
1246
|
onGenerateCsv: kt,
|
|
1239
|
-
onGenerateImage:
|
|
1240
|
-
onGenerateSvg:
|
|
1241
|
-
onToggleTable:
|
|
1242
|
-
onToggleLabels:
|
|
1243
|
-
onToggleTooltip:
|
|
1247
|
+
onGenerateImage: El,
|
|
1248
|
+
onGenerateSvg: Ca,
|
|
1249
|
+
onToggleTable: ma,
|
|
1250
|
+
onToggleLabels: ba,
|
|
1251
|
+
onToggleTooltip: pa,
|
|
1244
1252
|
onToggleAnnotator: Lt,
|
|
1245
|
-
onCopyAlt:
|
|
1253
|
+
onCopyAlt: Ta,
|
|
1246
1254
|
style: q({
|
|
1247
|
-
visibility: b(Jt) ? b(
|
|
1255
|
+
visibility: b(Jt) ? b(vt) ? "visible" : "hidden" : "visible"
|
|
1248
1256
|
})
|
|
1249
1257
|
}, $t({ _: 2 }, [
|
|
1250
1258
|
t.$slots.menuIcon ? {
|
|
1251
1259
|
name: "menuIcon",
|
|
1252
1260
|
fn: C(({ isOpen: a, color: o }) => [
|
|
1253
|
-
L(t.$slots, "menuIcon",
|
|
1261
|
+
L(t.$slots, "menuIcon", D(E({ isOpen: a, color: o })), void 0, !0)
|
|
1254
1262
|
]),
|
|
1255
1263
|
key: "0"
|
|
1256
1264
|
} : void 0,
|
|
@@ -1306,40 +1314,40 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1306
1314
|
t.$slots.optionFullscreen ? {
|
|
1307
1315
|
name: "optionFullscreen",
|
|
1308
1316
|
fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
1309
|
-
L(t.$slots, "optionFullscreen",
|
|
1317
|
+
L(t.$slots, "optionFullscreen", D(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
1310
1318
|
]),
|
|
1311
1319
|
key: "8"
|
|
1312
1320
|
} : void 0,
|
|
1313
1321
|
t.$slots.optionAnnotator ? {
|
|
1314
1322
|
name: "optionAnnotator",
|
|
1315
1323
|
fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
1316
|
-
L(t.$slots, "optionAnnotator",
|
|
1324
|
+
L(t.$slots, "optionAnnotator", D(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
1317
1325
|
]),
|
|
1318
1326
|
key: "9"
|
|
1319
1327
|
} : void 0,
|
|
1320
1328
|
t.$slots.optionAltCopy ? {
|
|
1321
1329
|
name: "optionAltCopy",
|
|
1322
1330
|
fn: C(({ altCopy: a }) => [
|
|
1323
|
-
L(t.$slots, "optionAltCopy",
|
|
1331
|
+
L(t.$slots, "optionAltCopy", D(E({ altCopy: a })), void 0, !0)
|
|
1324
1332
|
]),
|
|
1325
1333
|
key: "10"
|
|
1326
1334
|
} : void 0
|
|
1327
1335
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : f("", !0),
|
|
1328
|
-
Z("div",
|
|
1336
|
+
Z("div", Zo, [
|
|
1329
1337
|
(s(), u("svg", {
|
|
1330
1338
|
ref_key: "svgRef",
|
|
1331
1339
|
ref: ge,
|
|
1332
|
-
xmlns: b(
|
|
1340
|
+
xmlns: b(xo),
|
|
1333
1341
|
"aria-describedby": `chart-instructions-${R.value}`,
|
|
1334
1342
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
1335
1343
|
class: ke({ "vue-data-ui-loading": b(fe) }),
|
|
1336
1344
|
style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
1337
1345
|
tabindex: "0",
|
|
1338
|
-
onFocus:
|
|
1339
|
-
onBlur:
|
|
1340
|
-
onKeydown:
|
|
1346
|
+
onFocus: Xl,
|
|
1347
|
+
onBlur: Yl,
|
|
1348
|
+
onKeydown: ql
|
|
1341
1349
|
}, [
|
|
1342
|
-
|
|
1350
|
+
De(b(Qa)),
|
|
1343
1351
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
1344
1352
|
key: 0,
|
|
1345
1353
|
x: n.value.left,
|
|
@@ -1351,8 +1359,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1351
1359
|
}
|
|
1352
1360
|
}, [
|
|
1353
1361
|
L(t.$slots, "chart-background", {}, void 0, !0)
|
|
1354
|
-
], 8,
|
|
1355
|
-
e.value.style.chart.bars.gradient.show ? (s(), u("defs",
|
|
1362
|
+
], 8, jo)) : f("", !0),
|
|
1363
|
+
e.value.style.chart.bars.gradient.show ? (s(), u("defs", es, [
|
|
1356
1364
|
(s(!0), u(w, null, S(z.value, (a, o) => (s(), u("linearGradient", {
|
|
1357
1365
|
id: `gradient_${a.id}`,
|
|
1358
1366
|
x1: "0%",
|
|
@@ -1363,16 +1371,16 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1363
1371
|
Z("stop", {
|
|
1364
1372
|
offset: "0%",
|
|
1365
1373
|
"stop-color": a.color
|
|
1366
|
-
}, null, 8,
|
|
1374
|
+
}, null, 8, as),
|
|
1367
1375
|
Z("stop", {
|
|
1368
1376
|
offset: "61.8%",
|
|
1369
|
-
"stop-color": b(
|
|
1370
|
-
}, null, 8,
|
|
1377
|
+
"stop-color": b(ko)(a.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
1378
|
+
}, null, 8, ls),
|
|
1371
1379
|
Z("stop", {
|
|
1372
1380
|
offset: "100%",
|
|
1373
1381
|
"stop-color": a.color
|
|
1374
|
-
}, null, 8,
|
|
1375
|
-
], 8,
|
|
1382
|
+
}, null, 8, os)
|
|
1383
|
+
], 8, ts))), 256))
|
|
1376
1384
|
])) : f("", !0),
|
|
1377
1385
|
e.value.style.chart.grid.frame.show ? (s(), u("rect", {
|
|
1378
1386
|
key: 2,
|
|
@@ -1387,7 +1395,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1387
1395
|
"stroke-linecap": e.value.style.chart.grid.frame.strokeLinecap,
|
|
1388
1396
|
"stroke-linejoin": e.value.style.chart.grid.frame.strokeLinejoin,
|
|
1389
1397
|
"stroke-dasharray": e.value.style.chart.grid.frame.strokeDasharray
|
|
1390
|
-
}, null, 8,
|
|
1398
|
+
}, null, 8, ss)) : f("", !0),
|
|
1391
1399
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(w, { key: 3 }, S(Y.value, (a, o) => (s(), u("line", {
|
|
1392
1400
|
x1: n.value.left,
|
|
1393
1401
|
x2: n.value.right,
|
|
@@ -1397,7 +1405,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1397
1405
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1398
1406
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1399
1407
|
"stroke-linecap": "round"
|
|
1400
|
-
}, null, 8,
|
|
1408
|
+
}, null, 8, rs))), 256)) : f("", !0),
|
|
1401
1409
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(w, { key: 4 }, S(v.value.end - v.value.start + 1, (a, o) => (s(), u("line", {
|
|
1402
1410
|
x1: n.value.left,
|
|
1403
1411
|
x2: n.value.right,
|
|
@@ -1407,7 +1415,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1407
1415
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1408
1416
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1409
1417
|
"stroke-linecap": "round"
|
|
1410
|
-
}, null, 8,
|
|
1418
|
+
}, null, 8, ns))), 256)) : f("", !0),
|
|
1411
1419
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(w, { key: 5 }, S(v.value.end - v.value.start + 1, (a, o) => (s(), u("line", {
|
|
1412
1420
|
x1: n.value.left + m.value * o,
|
|
1413
1421
|
x2: n.value.left + m.value * o,
|
|
@@ -1417,7 +1425,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1417
1425
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1418
1426
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1419
1427
|
"stroke-linecap": "round"
|
|
1420
|
-
}, null, 8,
|
|
1428
|
+
}, null, 8, is))), 256)) : f("", !0),
|
|
1421
1429
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), u(w, { key: 6 }, S(Y.value, (a, o) => (s(), u("line", {
|
|
1422
1430
|
x1: a.horizontal_x,
|
|
1423
1431
|
x2: a.horizontal_x,
|
|
@@ -1427,10 +1435,10 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1427
1435
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1428
1436
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1429
1437
|
"stroke-linecap": "round"
|
|
1430
|
-
}, null, 8,
|
|
1438
|
+
}, null, 8, us))), 256)) : f("", !0),
|
|
1431
1439
|
(s(!0), u(w, null, S(z.value, (a, o) => (s(), u("g", null, [
|
|
1432
|
-
t.$slots.pattern ? (s(), u("defs",
|
|
1433
|
-
L(t.$slots, "pattern",
|
|
1440
|
+
t.$slots.pattern ? (s(), u("defs", cs, [
|
|
1441
|
+
L(t.$slots, "pattern", Ee({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${R.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
1434
1442
|
])) : f("", !0),
|
|
1435
1443
|
e.value.orientation === "vertical" ? (s(), u(w, { key: 1 }, [
|
|
1436
1444
|
(s(!0), u(w, null, S(a.x, (c, r) => (s(), u("rect", {
|
|
@@ -1445,8 +1453,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1445
1453
|
"stroke-linecap": "round",
|
|
1446
1454
|
"stroke-linejoin": "round",
|
|
1447
1455
|
class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": ie.value })
|
|
1448
|
-
}, null, 10,
|
|
1449
|
-
t.$slots.pattern ? (s(), u("g",
|
|
1456
|
+
}, null, 10, vs))), 256)),
|
|
1457
|
+
t.$slots.pattern ? (s(), u("g", hs, [
|
|
1450
1458
|
(s(!0), u(w, null, S(a.x, (c, r) => (s(), u("rect", {
|
|
1451
1459
|
x: c,
|
|
1452
1460
|
y: b(de)(a.y[r]),
|
|
@@ -1459,7 +1467,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1459
1467
|
"stroke-linecap": "round",
|
|
1460
1468
|
"stroke-linejoin": "round",
|
|
1461
1469
|
class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": ie.value })
|
|
1462
|
-
}, null, 10,
|
|
1470
|
+
}, null, 10, ds))), 256))
|
|
1463
1471
|
])) : f("", !0)
|
|
1464
1472
|
], 64)) : (s(), u(w, { key: 2 }, [
|
|
1465
1473
|
(s(!0), u(w, null, S(a.horizontal_x, (c, r) => (s(), u("rect", {
|
|
@@ -1474,8 +1482,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1474
1482
|
"stroke-linecap": "round",
|
|
1475
1483
|
"stroke-linejoin": "round",
|
|
1476
1484
|
class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": ie.value })
|
|
1477
|
-
}, null, 10,
|
|
1478
|
-
t.$slots.pattern ? (s(), u("g",
|
|
1485
|
+
}, null, 10, ys))), 256)),
|
|
1486
|
+
t.$slots.pattern ? (s(), u("g", fs, [
|
|
1479
1487
|
(s(!0), u(w, null, S(a.horizontal_x, (c, r) => (s(), u("rect", {
|
|
1480
1488
|
x: b(de)(c, n.value.left),
|
|
1481
1489
|
y: a.horizontal_y[r] < 0 ? 0 : a.horizontal_y[r],
|
|
@@ -1488,7 +1496,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1488
1496
|
"stroke-linecap": "round",
|
|
1489
1497
|
"stroke-linejoin": "round",
|
|
1490
1498
|
class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": ie.value })
|
|
1491
|
-
}, null, 10,
|
|
1499
|
+
}, null, 10, gs))), 256))
|
|
1492
1500
|
])) : f("", !0)
|
|
1493
1501
|
], 64))
|
|
1494
1502
|
]))), 256)),
|
|
@@ -1502,7 +1510,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1502
1510
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
1503
1511
|
"stroke-linecap": "round",
|
|
1504
1512
|
"stroke-linejoin": "round"
|
|
1505
|
-
}, null, 8,
|
|
1513
|
+
}, null, 8, ms)) : f("", !0),
|
|
1506
1514
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), u("line", {
|
|
1507
1515
|
key: 8,
|
|
1508
1516
|
x1: n.value.left,
|
|
@@ -1513,32 +1521,32 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1513
1521
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
1514
1522
|
"stroke-linecap": "round",
|
|
1515
1523
|
"stroke-linejoin": "round"
|
|
1516
|
-
}, null, 8,
|
|
1524
|
+
}, null, 8, bs)) : f("", !0),
|
|
1517
1525
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), u("text", {
|
|
1518
1526
|
key: 9,
|
|
1519
1527
|
ref_key: "xAxisLabel",
|
|
1520
|
-
ref:
|
|
1528
|
+
ref: We,
|
|
1521
1529
|
x: n.value.left + n.value.width / 2,
|
|
1522
1530
|
y: n.value.chartHeight - 3,
|
|
1523
1531
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
1524
1532
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
1525
1533
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1526
1534
|
"text-anchor": "middle"
|
|
1527
|
-
},
|
|
1535
|
+
}, V(e.value.style.chart.grid.x.axisName.text), 9, ps)) : f("", !0),
|
|
1528
1536
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), u("text", {
|
|
1529
1537
|
key: 10,
|
|
1530
1538
|
ref_key: "yAxisLabel",
|
|
1531
|
-
ref:
|
|
1539
|
+
ref: rt,
|
|
1532
1540
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
1533
1541
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
1534
1542
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
1535
1543
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1536
1544
|
"text-anchor": "middle"
|
|
1537
|
-
},
|
|
1545
|
+
}, V(e.value.style.chart.grid.y.axisName.text), 9, xs)) : f("", !0),
|
|
1538
1546
|
$.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(w, { key: 11 }, [
|
|
1539
1547
|
(s(!0), u(w, null, S(z.value, (a, o) => (s(), u("g", null, [
|
|
1540
1548
|
(s(!0), u(w, null, S(a.x, (c, r) => (s(), u(w, null, [
|
|
1541
|
-
|
|
1549
|
+
wa(a.series[r], a.proportions[r]) ? (s(), u("text", {
|
|
1542
1550
|
key: 0,
|
|
1543
1551
|
x: c + m.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
1544
1552
|
y: a.y[r] + a.height[r] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -1546,7 +1554,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1546
1554
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? b(Ea)(a.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1547
1555
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1548
1556
|
"text-anchor": "middle"
|
|
1549
|
-
},
|
|
1557
|
+
}, V(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? da(a.proportions[r] * 100, a, o, r) : Ke(a.series[r], a, o, r, a.signedSeries[r])), 9, ks)) : f("", !0)
|
|
1550
1558
|
], 64))), 256))
|
|
1551
1559
|
]))), 256)),
|
|
1552
1560
|
e.value.style.chart.bars.totalValues.show && z.value.length > 1 ? (s(), u("g", {
|
|
@@ -1558,19 +1566,19 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1558
1566
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || a.value !== 0 ? (s(), u("text", {
|
|
1559
1567
|
key: 0,
|
|
1560
1568
|
x: n.value.left + m.value * o + m.value / 2,
|
|
1561
|
-
y:
|
|
1569
|
+
y: Hl(o),
|
|
1562
1570
|
"text-anchor": "middle",
|
|
1563
1571
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1564
1572
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1565
1573
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1566
|
-
},
|
|
1574
|
+
}, V(Ke(a.value, a, o, a.sign)), 9, ws)) : f("", !0)
|
|
1567
1575
|
], 64))), 256))
|
|
1568
1576
|
], 512)) : f("", !0)
|
|
1569
1577
|
], 64)) : f("", !0),
|
|
1570
1578
|
$.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(w, { key: 12 }, [
|
|
1571
1579
|
(s(!0), u(w, null, S(z.value, (a, o) => (s(), u("g", null, [
|
|
1572
1580
|
(s(!0), u(w, null, S(a.horizontal_x, (c, r) => (s(), u(w, null, [
|
|
1573
|
-
|
|
1581
|
+
wa(a.series[r], a.proportions[r]) ? (s(), u("text", {
|
|
1574
1582
|
key: 0,
|
|
1575
1583
|
x: c + (a.horizontal_width[r] < 0 ? 1e-4 : a.horizontal_width[r]) / 2,
|
|
1576
1584
|
y: a.horizontal_y[r] + m.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -1578,24 +1586,24 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1578
1586
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? b(Ea)(a.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1579
1587
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1580
1588
|
"text-anchor": "middle"
|
|
1581
|
-
},
|
|
1589
|
+
}, V(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? da(a.proportions[r] * 100, a, o, r) : Ke(a.series[r], a, o, r, a.signedSeries[r])), 9, Ls)) : f("", !0)
|
|
1582
1590
|
], 64))), 256))
|
|
1583
1591
|
]))), 256)),
|
|
1584
1592
|
e.value.style.chart.bars.totalValues.show && z.value.length > 1 ? (s(), u("g", {
|
|
1585
1593
|
key: 0,
|
|
1586
1594
|
ref_key: "sumRight",
|
|
1587
|
-
ref:
|
|
1595
|
+
ref: nt
|
|
1588
1596
|
}, [
|
|
1589
1597
|
(s(!0), u(w, null, S(ha.value, (a, o) => (s(), u(w, null, [
|
|
1590
1598
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || a.value !== 0 ? (s(), u("text", {
|
|
1591
1599
|
key: 0,
|
|
1592
|
-
x:
|
|
1600
|
+
x: Wl(o),
|
|
1593
1601
|
y: n.value.top + m.value * o + m.value / 2 + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1594
1602
|
"text-anchor": "start",
|
|
1595
1603
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1596
1604
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1597
1605
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1598
|
-
},
|
|
1606
|
+
}, V(Ke(a.value, a, o, a.sign)), 9, Cs)) : f("", !0)
|
|
1599
1607
|
], 64))), 256))
|
|
1600
1608
|
], 512)) : f("", !0)
|
|
1601
1609
|
], 64)) : f("", !0),
|
|
@@ -1611,7 +1619,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1611
1619
|
y2: a.y,
|
|
1612
1620
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1613
1621
|
"stroke-width": 1
|
|
1614
|
-
}, null, 8,
|
|
1622
|
+
}, null, 8, Ss))), 256)),
|
|
1615
1623
|
(s(!0), u(w, null, S(Y.value, (a, o) => (s(), u("text", {
|
|
1616
1624
|
x: a.x,
|
|
1617
1625
|
y: a.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -1619,7 +1627,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1619
1627
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1620
1628
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1621
1629
|
"text-anchor": "end"
|
|
1622
|
-
},
|
|
1630
|
+
}, V(b(we)(
|
|
1623
1631
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1624
1632
|
a.value,
|
|
1625
1633
|
b(ne)({
|
|
@@ -1629,7 +1637,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1629
1637
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1630
1638
|
}),
|
|
1631
1639
|
{ datapoint: a }
|
|
1632
|
-
)), 9,
|
|
1640
|
+
)), 9, zs))), 256))
|
|
1633
1641
|
], 512)) : f("", !0),
|
|
1634
1642
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), u("g", {
|
|
1635
1643
|
key: 14,
|
|
@@ -1644,7 +1652,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1644
1652
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1645
1653
|
"stroke-width": 1,
|
|
1646
1654
|
"stroke-linecap": "round"
|
|
1647
|
-
}, null, 8,
|
|
1655
|
+
}, null, 8, Ms))), 256)),
|
|
1648
1656
|
(s(!0), u(w, null, S(Y.value, (a, o) => (s(), u("text", {
|
|
1649
1657
|
class: "vue-data-ui-time-label",
|
|
1650
1658
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1652,7 +1660,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1652
1660
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1653
1661
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1654
1662
|
transform: `translate(${a.horizontal_x}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
1655
|
-
},
|
|
1663
|
+
}, V(b(we)(
|
|
1656
1664
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1657
1665
|
a.value,
|
|
1658
1666
|
b(ne)({
|
|
@@ -1662,7 +1670,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1662
1670
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1663
1671
|
}),
|
|
1664
1672
|
{ datapoint: a }
|
|
1665
|
-
)), 9,
|
|
1673
|
+
)), 9, Ts))), 256))
|
|
1666
1674
|
], 512)) : f("", !0),
|
|
1667
1675
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), u("g", {
|
|
1668
1676
|
key: 15,
|
|
@@ -1670,8 +1678,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1670
1678
|
ref: ce
|
|
1671
1679
|
}, [
|
|
1672
1680
|
t.$slots["time-label"] ? (s(), u("g", _s, [
|
|
1673
|
-
(s(!0), u(w, null, S(
|
|
1674
|
-
L(t.$slots, "time-label",
|
|
1681
|
+
(s(!0), u(w, null, S(mt.value, (a, o) => (s(), u("g", null, [
|
|
1682
|
+
L(t.$slots, "time-label", Ee({ ref_for: !0 }, {
|
|
1675
1683
|
x: n.value.left + m.value * o + m.value / 2,
|
|
1676
1684
|
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1677
1685
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1683,8 +1691,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1683
1691
|
show: !0
|
|
1684
1692
|
}), void 0, !0)
|
|
1685
1693
|
]))), 256))
|
|
1686
|
-
])) : (s(), u("g",
|
|
1687
|
-
(s(!0), u(w, null, S(
|
|
1694
|
+
])) : (s(), u("g", As, [
|
|
1695
|
+
(s(!0), u(w, null, S(mt.value, (a, o) => (s(), u("g", null, [
|
|
1688
1696
|
String(a.text).includes(`
|
|
1689
1697
|
`) ? (s(), u("text", {
|
|
1690
1698
|
key: o + "-multi",
|
|
@@ -1699,15 +1707,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1699
1707
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1700
1708
|
`,
|
|
1701
1709
|
style: q({ cursor: X.value ? "pointer" : "default" }),
|
|
1702
|
-
innerHTML: b(
|
|
1710
|
+
innerHTML: b(wo)({
|
|
1703
1711
|
content: String(a.text),
|
|
1704
1712
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1705
1713
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1706
1714
|
x: 0,
|
|
1707
1715
|
y: 0
|
|
1708
1716
|
}),
|
|
1709
|
-
onClick: () =>
|
|
1710
|
-
}, null, 12,
|
|
1717
|
+
onClick: () => Ze(a, o)
|
|
1718
|
+
}, null, 12, Ps)) : (s(), u("text", {
|
|
1711
1719
|
class: "vue-data-ui-time-label",
|
|
1712
1720
|
key: o,
|
|
1713
1721
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1716,8 +1724,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1716
1724
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1717
1725
|
transform: `translate(${n.value.left + m.value * o + m.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1718
1726
|
style: q({ cursor: X.value ? "pointer" : "default" }),
|
|
1719
|
-
onClick: () =>
|
|
1720
|
-
},
|
|
1727
|
+
onClick: () => Ze(a, o)
|
|
1728
|
+
}, V(a.text), 13, $s))
|
|
1721
1729
|
]))), 256))
|
|
1722
1730
|
]))
|
|
1723
1731
|
], 512)) : f("", !0),
|
|
@@ -1726,9 +1734,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1726
1734
|
ref_key: "timeLabelsEls",
|
|
1727
1735
|
ref: ce
|
|
1728
1736
|
}, [
|
|
1729
|
-
t.$slots["time-label"] ? (s(), u("g",
|
|
1730
|
-
(s(!0), u(w, null, S(
|
|
1731
|
-
L(t.$slots, "time-label",
|
|
1737
|
+
t.$slots["time-label"] ? (s(), u("g", Ns, [
|
|
1738
|
+
(s(!0), u(w, null, S(W.value, (a, o) => (s(), u("g", null, [
|
|
1739
|
+
L(t.$slots, "time-label", Ee({ ref_for: !0 }, {
|
|
1732
1740
|
x: n.value.left - 8,
|
|
1733
1741
|
y: n.value.top + m.value * o + m.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1734
1742
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1740,8 +1748,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1740
1748
|
show: !0
|
|
1741
1749
|
}), void 0, !0)
|
|
1742
1750
|
]))), 256))
|
|
1743
|
-
])) : (s(), u("g",
|
|
1744
|
-
(s(!0), u(w, null, S(
|
|
1751
|
+
])) : (s(), u("g", Is, [
|
|
1752
|
+
(s(!0), u(w, null, S(W.value, (a, o) => (s(), u("g", null, [
|
|
1745
1753
|
String(a.text).includes(`
|
|
1746
1754
|
`) ? (s(), u("text", {
|
|
1747
1755
|
key: 1,
|
|
@@ -1752,15 +1760,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1752
1760
|
x: n.value.left - 8,
|
|
1753
1761
|
y: n.value.top + m.value * o + m.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1754
1762
|
style: q({ cursor: X.value ? "pointer" : "default" }),
|
|
1755
|
-
onClick: () =>
|
|
1756
|
-
innerHTML: b(
|
|
1763
|
+
onClick: () => Ze(a, o),
|
|
1764
|
+
innerHTML: b(Lo)({
|
|
1757
1765
|
content: String(a.text),
|
|
1758
1766
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1759
1767
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1760
1768
|
x: n.value.left - 8,
|
|
1761
1769
|
y: 0
|
|
1762
1770
|
})
|
|
1763
|
-
}, null, 12,
|
|
1771
|
+
}, null, 12, Rs)) : (s(), u("text", {
|
|
1764
1772
|
key: 0,
|
|
1765
1773
|
"text-anchor": "end",
|
|
1766
1774
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1771,8 +1779,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1771
1779
|
style: q({
|
|
1772
1780
|
cursor: X.value ? "pointer" : "default"
|
|
1773
1781
|
}),
|
|
1774
|
-
onClick: () =>
|
|
1775
|
-
},
|
|
1782
|
+
onClick: () => Ze(a, o)
|
|
1783
|
+
}, V(a.text), 13, Fs))
|
|
1776
1784
|
]))), 256))
|
|
1777
1785
|
]))
|
|
1778
1786
|
], 512)) : f("", !0),
|
|
@@ -1784,9 +1792,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1784
1792
|
onClick: () => bt(o),
|
|
1785
1793
|
onMouseenter: () => xt(o, "pointer"),
|
|
1786
1794
|
onMouseleave: () => ya(o),
|
|
1787
|
-
fill: o ===
|
|
1795
|
+
fill: o === B.value || o === ut.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1788
1796
|
style: q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1789
|
-
}, null, 44,
|
|
1797
|
+
}, null, 44, Os))), 256)) : f("", !0),
|
|
1790
1798
|
$.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(w, { key: 18 }, S(v.value.end - v.value.start, (a, o) => (s(), u("rect", {
|
|
1791
1799
|
x: n.value.left,
|
|
1792
1800
|
y: n.value.top + o * m.value,
|
|
@@ -1795,30 +1803,30 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1795
1803
|
onClick: () => bt(o),
|
|
1796
1804
|
onMouseenter: () => xt(o, "pointer"),
|
|
1797
1805
|
onMouseleave: () => ya(o),
|
|
1798
|
-
fill: o ===
|
|
1806
|
+
fill: o === B.value || o === ut.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1799
1807
|
style: q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1800
|
-
}, null, 44,
|
|
1801
|
-
la.value ? (s(), u("rect",
|
|
1808
|
+
}, null, 44, Ds))), 256)) : f("", !0),
|
|
1809
|
+
la.value ? (s(), u("rect", Ee({ key: 19 }, ml.value, {
|
|
1802
1810
|
"data-start": v.value.start,
|
|
1803
1811
|
"data-end": v.value.end
|
|
1804
|
-
}), null, 16,
|
|
1812
|
+
}), null, 16, Es)) : f("", !0),
|
|
1805
1813
|
L(t.$slots, "svg", {
|
|
1806
1814
|
svg: {
|
|
1807
1815
|
drawingArea: n.value,
|
|
1808
1816
|
data: z.value,
|
|
1809
|
-
isPrintingImg: b(
|
|
1810
|
-
isPrintingSvg:
|
|
1817
|
+
isPrintingImg: b(dt) | b(yt) | Ue.value,
|
|
1818
|
+
isPrintingSvg: He.value
|
|
1811
1819
|
}
|
|
1812
1820
|
}, void 0, !0)
|
|
1813
|
-
], 46,
|
|
1814
|
-
t.$slots.hint ? (s(), u("div",
|
|
1815
|
-
L(t.$slots, "hint",
|
|
1821
|
+
], 46, Qo)),
|
|
1822
|
+
t.$slots.hint ? (s(), u("div", Vs, [
|
|
1823
|
+
L(t.$slots, "hint", D(E({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Ct.value })), void 0, !0)
|
|
1816
1824
|
])) : f("", !0)
|
|
1817
1825
|
]),
|
|
1818
|
-
t.$slots.watermark ? (s(), u("div",
|
|
1819
|
-
L(t.$slots, "watermark",
|
|
1826
|
+
t.$slots.watermark ? (s(), u("div", Bs, [
|
|
1827
|
+
L(t.$slots, "watermark", D(E({ isPrinting: b(dt) || b(yt) || Ue.value || He.value })), void 0, !0)
|
|
1820
1828
|
])) : f("", !0),
|
|
1821
|
-
e.value.style.chart.zoom.show && Le.value &&
|
|
1829
|
+
e.value.style.chart.zoom.show && Le.value && za.value && F.value > 6 ? (s(), ee(Xo, {
|
|
1822
1830
|
key: 5,
|
|
1823
1831
|
ref_key: "chartSlicer",
|
|
1824
1832
|
ref: Ce,
|
|
@@ -1837,9 +1845,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1837
1845
|
immediate: !e.value.style.chart.zoom.preview.enable,
|
|
1838
1846
|
inputColor: e.value.style.chart.zoom.color,
|
|
1839
1847
|
isPreview: la.value,
|
|
1840
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ?
|
|
1841
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ?
|
|
1842
|
-
max: Math.max(...
|
|
1848
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? W.value?.[0]?.text ?? "" : "",
|
|
1849
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? W.value?.at(-1)?.text ?? "" : "",
|
|
1850
|
+
max: Math.max(...lt.dataset.map((a) => a.series.length)),
|
|
1843
1851
|
min: 0,
|
|
1844
1852
|
minimap: ve.value,
|
|
1845
1853
|
minimapCompact: e.value.style.chart.zoom.minimap.compact,
|
|
@@ -1848,13 +1856,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1848
1856
|
minimapMerged: !1,
|
|
1849
1857
|
minimapSelectedColor: e.value.style.chart.zoom.minimap.selectedColor,
|
|
1850
1858
|
minimapSelectedColorOpacity: e.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1851
|
-
minimapSelectedIndex:
|
|
1859
|
+
minimapSelectedIndex: B.value,
|
|
1852
1860
|
minimapSelectionRadius: 1,
|
|
1853
1861
|
preciseLabels: va.value.length ? va.value : be.value,
|
|
1854
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...
|
|
1862
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...lt.dataset.map((a) => a.series.length)),
|
|
1855
1863
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1856
1864
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1857
|
-
selectedSeries:
|
|
1865
|
+
selectedSeries: Cl.value,
|
|
1858
1866
|
smoothMinimap: !1,
|
|
1859
1867
|
start: v.value.start,
|
|
1860
1868
|
textColor: e.value.style.chart.color,
|
|
@@ -1872,15 +1880,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1872
1880
|
handleBorderColor: e.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1873
1881
|
handleFill: e.value.style.chart.zoom.minimap.handleFill,
|
|
1874
1882
|
handleWidth: e.value.style.chart.zoom.minimap.handleWidth,
|
|
1875
|
-
"onUpdate:end":
|
|
1876
|
-
"onUpdate:start":
|
|
1883
|
+
"onUpdate:end": Bl,
|
|
1884
|
+
"onUpdate:start": Vl,
|
|
1877
1885
|
onTrapMouse: bl,
|
|
1878
1886
|
onReset: sa,
|
|
1879
1887
|
onFutureEnd: l[0] || (l[0] = (a) => oa("end", a)),
|
|
1880
1888
|
onFutureStart: l[1] || (l[1] = (a) => oa("start", a))
|
|
1881
1889
|
}, {
|
|
1882
1890
|
"reset-action": C(({ reset: a }) => [
|
|
1883
|
-
L(t.$slots, "reset-action",
|
|
1891
|
+
L(t.$slots, "reset-action", D(E({ reset: a })), void 0, !0)
|
|
1884
1892
|
]),
|
|
1885
1893
|
slotMap: C(({ width: a, height: o, unitW: c }) => [
|
|
1886
1894
|
(s(!0), u(w, null, S(z.value, (r) => (s(), u("g", {
|
|
@@ -1891,7 +1899,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1891
1899
|
x: x === 0 ? d - c * (e.value.style.chart.bars.gapRatio / 4) : d - c / 2,
|
|
1892
1900
|
y: Math.max(0, Math.min(o, r.yMinimap({ minimapH: o })[x])),
|
|
1893
1901
|
height: r.heightMinimap({ minimapH: o })[x],
|
|
1894
|
-
width: [0,
|
|
1902
|
+
width: [0, F.value - 1].includes(x) ? c * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 : c * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
1895
1903
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${r.id})` : r.color,
|
|
1896
1904
|
stroke: e.value.style.chart.backgroundColor,
|
|
1897
1905
|
"stroke-width": 0.5,
|
|
@@ -1899,14 +1907,14 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1899
1907
|
"stroke-linecap": "round",
|
|
1900
1908
|
"stroke-linejoin": "round",
|
|
1901
1909
|
style: q({
|
|
1902
|
-
opacity: x >=
|
|
1910
|
+
opacity: x >= H.value.start && x <= H.value.end ? 1 : 0.62
|
|
1903
1911
|
})
|
|
1904
|
-
}, null, 12,
|
|
1912
|
+
}, null, 12, Us))), 128))
|
|
1905
1913
|
]))), 128))
|
|
1906
1914
|
]),
|
|
1907
1915
|
_: 3
|
|
1908
1916
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "maxWidth", "isCursorPointer", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : f("", !0),
|
|
1909
|
-
|
|
1917
|
+
De(b(Ya), {
|
|
1910
1918
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1911
1919
|
show: $.value.showTooltip && ye.value,
|
|
1912
1920
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1919,7 +1927,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1919
1927
|
position: e.value.style.chart.tooltip.position,
|
|
1920
1928
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1921
1929
|
parent: Q.value,
|
|
1922
|
-
content:
|
|
1930
|
+
content: ot.value,
|
|
1923
1931
|
isFullscreen: Se.value,
|
|
1924
1932
|
isCustom: b(Va)(e.value.style.chart.tooltip.customFormat),
|
|
1925
1933
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1930,28 +1938,31 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1930
1938
|
a11yPosition: Ht.value
|
|
1931
1939
|
}, {
|
|
1932
1940
|
"tooltip-before": C(() => [
|
|
1933
|
-
L(t.$slots, "tooltip-before",
|
|
1941
|
+
L(t.$slots, "tooltip-before", D(E({ ...Be.value })), void 0, !0)
|
|
1942
|
+
]),
|
|
1943
|
+
tooltip: C(() => [
|
|
1944
|
+
L(t.$slots, "tooltip", D(E({ ...Be.value })), void 0, !0)
|
|
1934
1945
|
]),
|
|
1935
1946
|
"tooltip-after": C(() => [
|
|
1936
|
-
L(t.$slots, "tooltip-after",
|
|
1947
|
+
L(t.$slots, "tooltip-after", D(E({ ...Be.value })), void 0, !0)
|
|
1937
1948
|
]),
|
|
1938
1949
|
_: 3
|
|
1939
1950
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1940
1951
|
Z("div", {
|
|
1941
1952
|
id: `legend-bottom-${R.value}`
|
|
1942
|
-
}, null, 8,
|
|
1943
|
-
Dt.value ? (s(), ee(
|
|
1953
|
+
}, null, 8, Hs),
|
|
1954
|
+
Dt.value ? (s(), ee(vo, {
|
|
1944
1955
|
key: 6,
|
|
1945
1956
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${R.value}` : `#legend-bottom-${R.value}`
|
|
1946
1957
|
}, [
|
|
1947
1958
|
Z("div", {
|
|
1948
1959
|
ref_key: "chartLegend",
|
|
1949
|
-
ref:
|
|
1960
|
+
ref: Ft
|
|
1950
1961
|
}, [
|
|
1951
|
-
e.value.style.chart.legend.show ? (s(), ee(
|
|
1962
|
+
e.value.style.chart.legend.show ? (s(), ee(Ho, {
|
|
1952
1963
|
key: 0,
|
|
1953
1964
|
legendSet: Ae.value,
|
|
1954
|
-
config:
|
|
1965
|
+
config: $l.value,
|
|
1955
1966
|
isCursorPointer: X.value,
|
|
1956
1967
|
onClickMarker: l[2] || (l[2] = ({ legend: a }) => a.segregate())
|
|
1957
1968
|
}, $t({
|
|
@@ -1960,17 +1971,17 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1960
1971
|
key: 0,
|
|
1961
1972
|
onClick: (o) => a.segregate(),
|
|
1962
1973
|
style: q(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
1963
|
-
},
|
|
1974
|
+
}, V(a.name), 13, Ws))
|
|
1964
1975
|
]),
|
|
1965
1976
|
legendToggle: C(() => [
|
|
1966
|
-
Ae.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !b(fe) ? (s(), ee(
|
|
1977
|
+
Ae.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !b(fe) ? (s(), ee(Yo, {
|
|
1967
1978
|
key: 0,
|
|
1968
1979
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1969
1980
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1970
1981
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
1971
1982
|
checked: A.value.length > 0,
|
|
1972
1983
|
isCursorPointer: X.value,
|
|
1973
|
-
onToggle:
|
|
1984
|
+
onToggle: Tl
|
|
1974
1985
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : f("", !0)
|
|
1975
1986
|
]),
|
|
1976
1987
|
_: 2
|
|
@@ -1978,7 +1989,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
1978
1989
|
t.$slots.pattern ? {
|
|
1979
1990
|
name: "legend-pattern",
|
|
1980
1991
|
fn: C(({ legend: a, index: o }) => [
|
|
1981
|
-
|
|
1992
|
+
De(Bo, {
|
|
1982
1993
|
shape: a.shape,
|
|
1983
1994
|
radius: 30,
|
|
1984
1995
|
stroke: "none",
|
|
@@ -2002,13 +2013,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
2002
2013
|
}, [
|
|
2003
2014
|
L(t.$slots, "source", {}, void 0, !0)
|
|
2004
2015
|
], 512)) : f("", !0),
|
|
2005
|
-
Le.value && e.value.userOptions.buttons.table ? (s(), ee(
|
|
2016
|
+
Le.value && e.value.userOptions.buttons.table ? (s(), ee(ho(Pe.value.component), Ee({ key: 8 }, Pe.value.props, {
|
|
2006
2017
|
ref_key: "tableUnit",
|
|
2007
2018
|
ref: ze,
|
|
2008
|
-
onClose:
|
|
2019
|
+
onClose: La
|
|
2009
2020
|
}), $t({
|
|
2010
2021
|
content: C(() => [
|
|
2011
|
-
|
|
2022
|
+
De(b(Ja), {
|
|
2012
2023
|
colNames: pe.value.colNames,
|
|
2013
2024
|
head: pe.value.head,
|
|
2014
2025
|
body: pe.value.body,
|
|
@@ -2016,13 +2027,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
2016
2027
|
title: e.value.table.useDialog ? "" : Pe.value.title,
|
|
2017
2028
|
withCloseButton: !e.value.table.useDialog,
|
|
2018
2029
|
isCursorPointer: X.value,
|
|
2019
|
-
onClose:
|
|
2030
|
+
onClose: La
|
|
2020
2031
|
}, {
|
|
2021
2032
|
th: C(({ th: a }) => [
|
|
2022
|
-
Z("div", { innerHTML: a }, null, 8,
|
|
2033
|
+
Z("div", { innerHTML: a }, null, 8, Xs)
|
|
2023
2034
|
]),
|
|
2024
2035
|
td: C(({ td: a }) => [
|
|
2025
|
-
Pa(
|
|
2036
|
+
Pa(V(isNaN(Number(a)) ? a : b(ne)({
|
|
2026
2037
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
2027
2038
|
v: a,
|
|
2028
2039
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -2037,7 +2048,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
2037
2048
|
e.value.table.useDialog ? {
|
|
2038
2049
|
name: "title",
|
|
2039
2050
|
fn: C(() => [
|
|
2040
|
-
Pa(
|
|
2051
|
+
Pa(V(Pe.value.title), 1)
|
|
2041
2052
|
]),
|
|
2042
2053
|
key: "0"
|
|
2043
2054
|
} : void 0,
|
|
@@ -2050,7 +2061,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
2050
2061
|
onClick: l[3] || (l[3] = (a) => kt(e.value.userOptions.callbacks.csv)),
|
|
2051
2062
|
style: q({ cursor: X.value ? "pointer" : "default" })
|
|
2052
2063
|
}, [
|
|
2053
|
-
|
|
2064
|
+
De(b(qa), {
|
|
2054
2065
|
name: "fileCsv",
|
|
2055
2066
|
stroke: Pe.value.props.color
|
|
2056
2067
|
}, null, 8, ["stroke"])
|
|
@@ -2060,11 +2071,11 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
|
|
|
2060
2071
|
} : void 0
|
|
2061
2072
|
]), 1040)) : f("", !0),
|
|
2062
2073
|
L(t.$slots, "skeleton", {}, () => [
|
|
2063
|
-
b(fe) ? (s(), ee(
|
|
2074
|
+
b(fe) ? (s(), ee(Po, { key: 0 })) : f("", !0)
|
|
2064
2075
|
], !0)
|
|
2065
|
-
], 46,
|
|
2076
|
+
], 46, Go));
|
|
2066
2077
|
}
|
|
2067
|
-
},
|
|
2078
|
+
}, mr = /* @__PURE__ */ qo(Ys, [["__scopeId", "data-v-fbb9ff68"]]);
|
|
2068
2079
|
export {
|
|
2069
|
-
|
|
2080
|
+
mr as default
|
|
2070
2081
|
};
|