vue-data-ui 2.16.6 → 2.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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import { defineAsyncComponent as G, useSlots as Zt, computed as w, ref as p, onMounted as ut, watch as ct, shallowRef as ht, onBeforeUnmount as Kt, nextTick as fe, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as J, normalizeClass as oe, createBlock as ee, createCommentVNode as g, renderSlot as z, createElementVNode as q, createVNode as ie, createSlots as vt, withCtx as _, normalizeProps as D, guardReactiveProps as F, Fragment as v, renderList as f, mergeProps as Me, toDisplayString as T, createTextVNode as Qt } from "vue";
|
|
2
|
+
import { u as jt, c as dt, t as ea, p as me, a as ta, C as te, b as aa, o as la, e as yt, g as ra, d as sa, al as pe, ai as gt, D as bt, X as oa, l as ia, a7 as xe, F as ft, i as ke, f as Z, I as na, am as ua, x as mt, q as ca, r as ha, y as va } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as pt } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { t as da, u as ya } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as ga } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ma from "./Legend-Bxlv67uY.js";
|
|
9
|
+
import { S as pa } from "./Slicer-CL6-MRI6.js";
|
|
10
|
+
import xa from "./Title-B-2bV0SW.js";
|
|
11
|
+
import { _ as ka } from "./Shape-DtFT5EJa.js";
|
|
12
|
+
import { u as wa } from "./useTimeLabels-Mrr0jrpL.js";
|
|
13
|
+
import za from "./img-Y_hYz-ZC.js";
|
|
14
|
+
import { _ as La } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"], $a = { key: 1 }, Ma = ["id"], Ta = ["stop-color"], Na = ["stop-color"], Ia = ["stop-color"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Aa = { key: 0 }, Ua = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Da = { key: 0 }, Fa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ea = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ha = { key: 0 }, Ba = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = ["transform", "font-size", "fill", "font-weight"], Ja = ["x", "y", "font-size", "fill", "font-weight"], qa = { key: 0 }, Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x", "y", "font-size", "fill", "font-weight"], Qa = { key: 0 }, ja = ["x", "y", "font-size", "font-weight", "fill"], el = ["x1", "x2", "y1", "y2", "stroke"], tl = ["x", "y", "font-size", "font-weight", "fill"], al = ["x1", "x2", "y1", "y2", "stroke"], ll = ["font-size", "font-weight", "fill", "text-anchor", "transform"], rl = { key: 0 }, sl = { key: 1 }, ol = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], il = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], nl = { key: 0 }, ul = { key: 1 }, cl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], hl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], vl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], dl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], yl = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, gl = ["onClick"], bl = ["innerHTML"], fl = {
|
|
18
19
|
__name: "vue-ui-stackbar",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -31,40 +32,40 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
34
|
-
setup(we, { expose:
|
|
35
|
-
const
|
|
35
|
+
setup(we, { expose: xt, emit: kt }) {
|
|
36
|
+
const wt = G(() => import("./vue-ui-accordion-CVnA550V.js")), zt = G(() => import("./DataTable-D0VYDhfx.js")), Lt = G(() => import("./PackageVersion-5TR4ocqp.js")), Ct = G(() => import("./PenAndPaper-D6AqipIO.js")), _t = G(() => import("./vue-ui-skeleton-DJPjyNYn.js")), St = G(() => import("./Tooltip-CoQnTnr-.js")), $t = G(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_stackbar: Mt } = jt(), Tt = Zt(), b = we, ze = kt, K = w({
|
|
36
37
|
get() {
|
|
37
38
|
return !!b.dataset && b.dataset.length;
|
|
38
39
|
},
|
|
39
40
|
set(a) {
|
|
40
41
|
return a;
|
|
41
42
|
}
|
|
42
|
-
}),
|
|
43
|
-
|
|
43
|
+
}), E = p(null), V = p(dt()), ne = p(!1), Le = p(null), Ce = p(""), S = p([]), Te = p(0), Ne = p(null), Ie = p(null), Pe = p(null), Oe = p(null), Ve = p(0), ue = p(!1), ae = p(null), H = p(!1), Nt = p(0), It = p(0), Pt = p(0), Q = p(null);
|
|
44
|
+
ut(() => {
|
|
44
45
|
Se();
|
|
45
46
|
});
|
|
46
47
|
const e = w({
|
|
47
|
-
get: () =>
|
|
48
|
+
get: () => De(),
|
|
48
49
|
set: (a) => a
|
|
49
|
-
}), { userOptionsVisible: _e, setUserOptionsVisibility: Re, keepUserOptionState: Ae } =
|
|
50
|
-
function
|
|
51
|
-
const a =
|
|
50
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: Re, keepUserOptionState: Ae } = ba({ config: e.value }), { svgRef: Ue } = fa({ config: e.value.style.chart.title });
|
|
51
|
+
function De() {
|
|
52
|
+
const a = pt({
|
|
52
53
|
userConfig: b.config,
|
|
53
|
-
defaultConfig:
|
|
54
|
+
defaultConfig: Mt
|
|
54
55
|
});
|
|
55
56
|
let r = {};
|
|
56
57
|
return a.theme ? r = {
|
|
57
|
-
...
|
|
58
|
-
userConfig:
|
|
58
|
+
...pt({
|
|
59
|
+
userConfig: ta.vue_ui_stackbar[a.theme] || b.config,
|
|
59
60
|
defaultConfig: a
|
|
60
61
|
}),
|
|
61
|
-
customPalette:
|
|
62
|
-
} : r = a, b.config &&
|
|
62
|
+
customPalette: ea[a.theme] || me
|
|
63
|
+
} : r = a, b.config && te(b.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = b.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, b.config && te(b.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = b.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, b.config && te(b.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, b.config && te(b.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, b.config && te(b.config, "style.chart.bars.dataLabels.hideUnderValue") ? r.style.chart.bars.dataLabels.hideUnderValue = b.config.style.chart.bars.dataLabels.hideUnderValue : r.style.chart.bars.dataLabels.hideUnderValue = null, b.config && te(b.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? r.style.chart.bars.dataLabels.hideUnderPercentage = b.config.style.chart.bars.dataLabels.hideUnderPercentage : r.style.chart.bars.dataLabels.hideUnderPercentage = null, r;
|
|
63
64
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
e.value =
|
|
67
|
-
}, { deep: !0 }),
|
|
65
|
+
const Fe = w(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), Ee = w(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
66
|
+
ct(() => b.config, (a) => {
|
|
67
|
+
e.value = De(), _e.value = !e.value.userOptions.showOnChartHover, Se(), Nt.value += 1, It.value += 1, Pt.value += 1, L.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
68
|
+
}, { deep: !0 }), ct(() => b.dataset, (a) => {
|
|
68
69
|
Ge();
|
|
69
70
|
}, { deep: !0 });
|
|
70
71
|
const L = p({
|
|
@@ -73,7 +74,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
73
74
|
},
|
|
74
75
|
showTable: e.value.table.show,
|
|
75
76
|
showTooltip: e.value.style.chart.tooltip.show
|
|
76
|
-
}), { isPrinting: He, isImaging: Be, generatePdf: We, generateImage: Ye } =
|
|
77
|
+
}), { isPrinting: He, isImaging: Be, generatePdf: We, generateImage: Ye } = ga({
|
|
77
78
|
elementId: `stackbar_${V.value}`,
|
|
78
79
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
79
80
|
options: e.value.userOptions.print
|
|
@@ -86,20 +87,20 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
86
87
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
87
88
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
88
89
|
}
|
|
89
|
-
}),
|
|
90
|
-
|
|
90
|
+
}), Ot = w(() => aa(e.value.customPalette)), R = ht(null), j = ht(null), Xe = p(null);
|
|
91
|
+
ut(() => {
|
|
91
92
|
Se();
|
|
92
93
|
});
|
|
93
94
|
function Se() {
|
|
94
|
-
if (
|
|
95
|
+
if (la(b.dataset) ? yt({
|
|
95
96
|
componentName: "VueUiStackbar",
|
|
96
97
|
type: "dataset"
|
|
97
98
|
}) : b.dataset.forEach((a, r) => {
|
|
98
|
-
|
|
99
|
+
ra({
|
|
99
100
|
datasetObject: a,
|
|
100
101
|
requiredAttributes: ["name", "series"]
|
|
101
102
|
}).forEach((t) => {
|
|
102
|
-
|
|
103
|
+
K.value = !1, yt({
|
|
103
104
|
componentName: "VueUiStackbar",
|
|
104
105
|
type: "datasetSerieAttribute",
|
|
105
106
|
property: t,
|
|
@@ -107,32 +108,32 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
107
108
|
});
|
|
108
109
|
});
|
|
109
110
|
}), setTimeout(() => {
|
|
110
|
-
|
|
111
|
+
H.value = !0;
|
|
111
112
|
}, 10), e.value.responsive) {
|
|
112
|
-
const a =
|
|
113
|
-
|
|
114
|
-
const { width: r, height: t } =
|
|
115
|
-
chart:
|
|
113
|
+
const a = da(() => {
|
|
114
|
+
H.value = !1;
|
|
115
|
+
const { width: r, height: t } = ya({
|
|
116
|
+
chart: E.value,
|
|
116
117
|
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
117
118
|
legend: e.value.style.chart.legend.show ? Ie.value : null,
|
|
118
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
119
|
+
slicer: e.value.style.chart.zoom.show && U.value > 1 ? Pe.value : null,
|
|
119
120
|
source: Oe.value
|
|
120
121
|
});
|
|
121
122
|
requestAnimationFrame(() => {
|
|
122
123
|
ce.value.width = r, ce.value.height = t, clearTimeout(Xe.value), Xe.value = setTimeout(() => {
|
|
123
|
-
|
|
124
|
+
H.value = !0;
|
|
124
125
|
}, 10);
|
|
125
126
|
});
|
|
126
127
|
});
|
|
127
|
-
R.value && (
|
|
128
|
+
R.value && (j.value && R.value.unobserve(j.value), R.value.disconnect()), R.value = new ResizeObserver(a), j.value = E.value.parentNode, R.value.observe(j.value);
|
|
128
129
|
}
|
|
129
130
|
Je();
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
-
R.value && (
|
|
132
|
+
Kt(() => {
|
|
133
|
+
R.value && (j.value && R.value.unobserve(j.value), R.value.disconnect());
|
|
133
134
|
});
|
|
134
135
|
const o = w(() => {
|
|
135
|
-
const { height: a, width: r } = ce.value, { right: t } = ce.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left,
|
|
136
|
+
const { height: a, width: r } = ce.value, { right: t } = ce.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left, B = r - C - r * t, W = a - l - e.value.style.chart.padding.bottom;
|
|
136
137
|
return {
|
|
137
138
|
chartHeight: a,
|
|
138
139
|
chartWidth: r,
|
|
@@ -140,11 +141,11 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
140
141
|
right: c,
|
|
141
142
|
bottom: u,
|
|
142
143
|
left: C,
|
|
143
|
-
width:
|
|
144
|
-
height:
|
|
144
|
+
width: B,
|
|
145
|
+
height: W < 0 ? 0 : W
|
|
145
146
|
};
|
|
146
147
|
}), A = w(() => b.dataset.map((a, r) => {
|
|
147
|
-
const t =
|
|
148
|
+
const t = sa(a.color) || Ot.value[r] || me[r] || me[r % me.length];
|
|
148
149
|
return {
|
|
149
150
|
...a,
|
|
150
151
|
// In distributed mode, all values are converted to positive
|
|
@@ -152,10 +153,10 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
152
153
|
// Store signs to manage display of neg values in distributed mode
|
|
153
154
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
154
155
|
absoluteIndex: r,
|
|
155
|
-
id:
|
|
156
|
+
id: dt(),
|
|
156
157
|
color: t
|
|
157
158
|
};
|
|
158
|
-
})),
|
|
159
|
+
})), U = w(() => Math.max(...A.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
|
|
159
160
|
start: 0,
|
|
160
161
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
161
162
|
});
|
|
@@ -163,19 +164,19 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
163
164
|
Je();
|
|
164
165
|
}
|
|
165
166
|
async function Je() {
|
|
166
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) &&
|
|
167
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && Q.value ? (e.value.style.chart.zoom.startIndex !== null && (await fe(), await fe(), Q.value && Q.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await fe(), await fe(), Q.value && Q.value.setEndValue(Vt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
|
|
167
168
|
start: 0,
|
|
168
169
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
169
170
|
}, Ve.value += 1);
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function Vt(a) {
|
|
172
173
|
const r = Math.max(...b.dataset.map((t) => t.series.length));
|
|
173
174
|
return a > r ? r : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
174
175
|
}
|
|
175
176
|
const d = w(() => {
|
|
176
177
|
let a;
|
|
177
178
|
return e.value.orientation === "vertical" ? a = o.value.width / (h.value.end - h.value.start) : a = o.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
178
|
-
}), le = w(() => pe(A.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)),
|
|
179
|
+
}), le = w(() => pe(A.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Rt = w(() => pe(A.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
179
180
|
...a,
|
|
180
181
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
181
182
|
}))).slice(h.value.start, h.value.end)), he = w(() => {
|
|
@@ -191,7 +192,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
191
192
|
})))
|
|
192
193
|
};
|
|
193
194
|
}), P = w(() => {
|
|
194
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...he.value.positive), r = Math.min(...he.value.negative), t = 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(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
195
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...he.value.positive), r = Math.min(...he.value.negative), t = 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(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? gt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : bt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
195
196
|
return l.ticks.map((c) => ({
|
|
196
197
|
zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
197
198
|
y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -201,46 +202,46 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
201
202
|
horizontal_y: o.value.bottom - 8,
|
|
202
203
|
value: c
|
|
203
204
|
}));
|
|
204
|
-
}), $ = w(() =>
|
|
205
|
+
}), $ = w(() => wa({
|
|
205
206
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
206
|
-
maxDatapoints:
|
|
207
|
+
maxDatapoints: U.value,
|
|
207
208
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
208
209
|
start: h.value.start,
|
|
209
210
|
end: h.value.end
|
|
210
211
|
})), k = w(() => {
|
|
211
|
-
if (!
|
|
212
|
-
let a = Array(
|
|
213
|
-
const c = Math.max(...he.value.positive) || 0, u = Math.min(...he.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u,
|
|
212
|
+
if (!K.value) return [];
|
|
213
|
+
let a = Array(U.value).fill(0), r = Array(U.value).fill(0), t = Array(U.value).fill(0), l = Array(U.value).fill(0);
|
|
214
|
+
const c = Math.max(...he.value.positive) || 0, u = Math.min(...he.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, B = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? gt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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) : bt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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: W, max: re } = B, Y = re + (W >= 0 ? 0 : Math.abs(W)) || 1, M = o.value.height, be = o.value.width, it = P.value[0] ? P.value[0].zero : o.value.bottom, nt = P.value[0] ? P.value[0].horizontal_zero : o.value.left;
|
|
214
215
|
return A.value.filter((se) => !S.value.includes(se.id)).map((se) => {
|
|
215
|
-
const O = se.series.slice(h.value.start, h.value.end),
|
|
216
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) /
|
|
217
|
-
let
|
|
218
|
-
return m > 0 ? (I = M * N,
|
|
219
|
-
}), Yt = O.map((m, x) => {
|
|
220
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
221
|
-
let Y, I;
|
|
222
|
-
return m > 0 ? (I = be * N, Y = it + r[x], r[x] += I) : (I = be * N, Y = it - Math.abs(I) - l[x], l[x] += Math.abs(I)), Y;
|
|
216
|
+
const O = se.series.slice(h.value.start, h.value.end), Ht = se.signedSeries.slice(h.value.start, h.value.end), Bt = O.map((m, x) => o.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Wt = O.map((m, x) => o.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Yt = O.map((m, x) => {
|
|
217
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
218
|
+
let X, I;
|
|
219
|
+
return m > 0 ? (I = M * N, X = it - I - a[x], a[x] += I) : (I = M * N, X = it + t[x], t[x] += Math.abs(I)), X;
|
|
223
220
|
}), Xt = O.map((m, x) => {
|
|
224
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) /
|
|
225
|
-
|
|
221
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
222
|
+
let X, I;
|
|
223
|
+
return m > 0 ? (I = be * N, X = nt + r[x], r[x] += I) : (I = be * N, X = nt - Math.abs(I) - l[x], l[x] += Math.abs(I)), X;
|
|
226
224
|
}), Gt = O.map((m, x) => {
|
|
227
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) /
|
|
225
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
226
|
+
return m > 0 ? M * N : M * Math.abs(N);
|
|
227
|
+
}), Jt = O.map((m, x) => {
|
|
228
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
228
229
|
return m > 0 ? be * N : be * Math.abs(N);
|
|
229
|
-
}),
|
|
230
|
+
}), qt = O.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
|
|
230
231
|
return {
|
|
231
232
|
...se,
|
|
232
|
-
proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) /
|
|
233
|
+
proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / qt),
|
|
233
234
|
series: O,
|
|
234
|
-
signedSeries:
|
|
235
|
-
x:
|
|
236
|
-
y:
|
|
237
|
-
height:
|
|
238
|
-
horizontal_width:
|
|
239
|
-
horizontal_y:
|
|
240
|
-
horizontal_x:
|
|
235
|
+
signedSeries: Ht,
|
|
236
|
+
x: Bt,
|
|
237
|
+
y: Yt,
|
|
238
|
+
height: Gt,
|
|
239
|
+
horizontal_width: Jt,
|
|
240
|
+
horizontal_y: Wt,
|
|
241
|
+
horizontal_x: Xt
|
|
241
242
|
};
|
|
242
243
|
});
|
|
243
|
-
}), qe = w(() =>
|
|
244
|
+
}), qe = w(() => Rt.value.map((a, r) => ({
|
|
244
245
|
value: a,
|
|
245
246
|
sign: a >= 0 ? 1 : -1
|
|
246
247
|
})));
|
|
@@ -249,7 +250,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
249
250
|
return ke(
|
|
250
251
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
251
252
|
u,
|
|
252
|
-
|
|
253
|
+
Z({
|
|
253
254
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
254
255
|
v: u,
|
|
255
256
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -262,7 +263,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
262
263
|
return ke(
|
|
263
264
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
264
265
|
a,
|
|
265
|
-
|
|
266
|
+
Z({
|
|
266
267
|
v: isNaN(a) ? 0 : a,
|
|
267
268
|
s: "%",
|
|
268
269
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
@@ -297,7 +298,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
297
298
|
series: k.value
|
|
298
299
|
};
|
|
299
300
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
300
|
-
if (
|
|
301
|
+
if (mt(r) && va(() => r({
|
|
301
302
|
seriesIndex: a,
|
|
302
303
|
datapoint: t,
|
|
303
304
|
series: k.value,
|
|
@@ -314,51 +315,51 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
314
315
|
showValue: c,
|
|
315
316
|
showPercentage: u,
|
|
316
317
|
borderColor: C,
|
|
317
|
-
roundingValue:
|
|
318
|
-
roundingPercentage:
|
|
318
|
+
roundingValue: B,
|
|
319
|
+
roundingPercentage: W
|
|
319
320
|
} = e.value.style.chart.tooltip;
|
|
320
321
|
let re = "";
|
|
321
322
|
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (re += `<div style="width:100%;text-align:center;border-bottom:1px solid ${C};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
322
|
-
const
|
|
323
|
+
const Y = [
|
|
323
324
|
c && u ? "(" : "",
|
|
324
325
|
c && u ? ")" : ""
|
|
325
326
|
];
|
|
326
327
|
t.reverse().forEach((M) => {
|
|
327
328
|
re += `
|
|
328
329
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
329
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${M.id})` : M.color}"/>${
|
|
330
|
-
${M.name}${c || u ? ":" : ""} ${c ?
|
|
330
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${M.id})` : M.color}"/>${Tt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${M.absoluteIndex})"/>` : ""}</svg>
|
|
331
|
+
${M.name}${c || u ? ":" : ""} ${c ? Z({
|
|
331
332
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
332
333
|
v: M.value,
|
|
333
334
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
334
|
-
r:
|
|
335
|
-
}) : ""} ${
|
|
335
|
+
r: B
|
|
336
|
+
}) : ""} ${Y[0]}${u ? Z({
|
|
336
337
|
v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
|
|
337
338
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
338
339
|
s: "%",
|
|
339
|
-
r:
|
|
340
|
-
}) : ""}${
|
|
340
|
+
r: W
|
|
341
|
+
}) : ""}${Y[1]}
|
|
341
342
|
</div>
|
|
342
343
|
`;
|
|
343
344
|
}), Ce.value = `<div>${re}</div>`;
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function je(a) {
|
|
347
348
|
ue.value = a, Te.value += 1;
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
+
function et() {
|
|
350
351
|
L.value.showTable = !L.value.showTable;
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function tt() {
|
|
353
354
|
L.value.dataLabels.show = !L.value.dataLabels.show;
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function at() {
|
|
356
357
|
L.value.showTooltip = !L.value.showTooltip;
|
|
357
358
|
}
|
|
358
359
|
function At() {
|
|
359
360
|
return k.value;
|
|
360
361
|
}
|
|
361
|
-
const
|
|
362
|
+
const lt = w(() => {
|
|
362
363
|
if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
363
364
|
const a = k.value.map(({ name: t, color: l }) => ({
|
|
364
365
|
label: t,
|
|
@@ -371,15 +372,15 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
371
372
|
}), r.push(l);
|
|
372
373
|
}), { head: a, body: r };
|
|
373
374
|
});
|
|
374
|
-
function
|
|
375
|
-
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
376
|
-
a ? a(u) :
|
|
375
|
+
function rt(a = null) {
|
|
376
|
+
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...lt.value.head.map((C) => C.label)], l = lt.value.body, c = r.concat([t]).concat(l), u = ca(c);
|
|
377
|
+
a ? a(u) : ha({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
377
378
|
}
|
|
378
379
|
const de = w(() => {
|
|
379
380
|
const a = [""].concat(k.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>');
|
|
380
381
|
let r = [];
|
|
381
|
-
for (let c = 0; c <
|
|
382
|
-
const u = k.value.map((C) => C.series[c] ?? 0).reduce((C,
|
|
382
|
+
for (let c = 0; c < U.value; c += 1) {
|
|
383
|
+
const u = k.value.map((C) => C.series[c] ?? 0).reduce((C, B) => C + B, 0);
|
|
383
384
|
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(k.value.map((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
384
385
|
}
|
|
385
386
|
const t = {
|
|
@@ -397,7 +398,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
397
398
|
}, l = [e.value.table.columnNames.period].concat(k.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
398
399
|
return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
|
|
399
400
|
});
|
|
400
|
-
function
|
|
401
|
+
function Ut(a, r) {
|
|
401
402
|
if (ze("selectLegend", k.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
|
|
402
403
|
S.value = S.value.filter((t) => t !== r.id);
|
|
403
404
|
else {
|
|
@@ -405,15 +406,15 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
405
406
|
S.value.push(r.id);
|
|
406
407
|
}
|
|
407
408
|
}
|
|
408
|
-
const
|
|
409
|
+
const st = w(() => A.value.map((a, r) => ({
|
|
409
410
|
...a,
|
|
410
411
|
shape: "square"
|
|
411
412
|
})).map((a) => ({
|
|
412
413
|
...a,
|
|
413
414
|
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
414
|
-
segregate: () =>
|
|
415
|
+
segregate: () => Ut(a.absoluteIndex, a),
|
|
415
416
|
isSegregated: S.value.includes(a.id)
|
|
416
|
-
}))),
|
|
417
|
+
}))), Dt = w(() => ({
|
|
417
418
|
cy: "stackbar-legend",
|
|
418
419
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
419
420
|
color: e.value.style.chart.legend.color,
|
|
@@ -438,31 +439,38 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
438
439
|
label: a.text
|
|
439
440
|
});
|
|
440
441
|
}
|
|
441
|
-
const
|
|
442
|
-
function
|
|
443
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : Ee.value ? (
|
|
442
|
+
const Ft = w(() => Math.max(...k.value.flatMap((a) => a.series)));
|
|
443
|
+
function ot(a, r) {
|
|
444
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : Ee.value ? (Fe.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."), a > Ft.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : Fe.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
444
445
|
}
|
|
445
|
-
|
|
446
|
+
async function Et({ scale: a = 2 } = {}) {
|
|
447
|
+
if (!E.value) return;
|
|
448
|
+
const { imageUri: r, base64: t } = await za({ domElement: E.value, base64: !0, img: !0, scale: a });
|
|
449
|
+
return { imageUri: r, base64: t };
|
|
450
|
+
}
|
|
451
|
+
return xt({
|
|
446
452
|
getData: At,
|
|
453
|
+
getImage: Et,
|
|
447
454
|
generatePdf: We,
|
|
448
|
-
generateCsv:
|
|
455
|
+
generateCsv: rt,
|
|
449
456
|
generateImage: Ye,
|
|
450
|
-
toggleTable:
|
|
451
|
-
toggleLabels:
|
|
452
|
-
toggleTooltip:
|
|
453
|
-
toggleAnnotator: $e
|
|
457
|
+
toggleTable: et,
|
|
458
|
+
toggleLabels: tt,
|
|
459
|
+
toggleTooltip: at,
|
|
460
|
+
toggleAnnotator: $e,
|
|
461
|
+
toggleFullscreen: je
|
|
454
462
|
}), (a, r) => (s(), n("div", {
|
|
455
463
|
id: `stackbar_${V.value}`,
|
|
456
464
|
ref_key: "stackbarChart",
|
|
457
|
-
ref:
|
|
465
|
+
ref: E,
|
|
458
466
|
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
|
|
459
|
-
style:
|
|
467
|
+
style: J(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
460
468
|
onMouseenter: r[6] || (r[6] = () => y(Re)(!0)),
|
|
461
469
|
onMouseleave: r[7] || (r[7] = () => y(Re)(!1))
|
|
462
470
|
}, [
|
|
463
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
471
|
+
e.value.userOptions.buttons.annotator ? (s(), ee(y(Ct), {
|
|
464
472
|
key: 0,
|
|
465
|
-
svgRef: y(
|
|
473
|
+
svgRef: y(Ue),
|
|
466
474
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
467
475
|
color: e.value.style.chart.color,
|
|
468
476
|
active: ye.value,
|
|
@@ -475,7 +483,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
475
483
|
ref: Ne,
|
|
476
484
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
477
485
|
}, [
|
|
478
|
-
ie(
|
|
486
|
+
ie(xa, {
|
|
479
487
|
config: {
|
|
480
488
|
title: {
|
|
481
489
|
cy: "stackbar-title",
|
|
@@ -488,7 +496,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
488
496
|
}
|
|
489
497
|
}, null, 8, ["config"])
|
|
490
498
|
], 512)) : g("", !0),
|
|
491
|
-
e.value.userOptions.show &&
|
|
499
|
+
e.value.userOptions.show && K.value && (y(Ae) || y(_e)) ? (s(), ee(y($t), {
|
|
492
500
|
ref: "details",
|
|
493
501
|
key: `user_option_${Te.value}`,
|
|
494
502
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -504,7 +512,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
504
512
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
505
513
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
506
514
|
isFullscreen: ue.value,
|
|
507
|
-
chartElement:
|
|
515
|
+
chartElement: E.value,
|
|
508
516
|
position: e.value.userOptions.position,
|
|
509
517
|
isTooltip: L.value.showTooltip,
|
|
510
518
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -512,22 +520,22 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
512
520
|
isAnnotation: ye.value,
|
|
513
521
|
callbacks: e.value.userOptions.callbacks,
|
|
514
522
|
printScale: e.value.userOptions.print.scale,
|
|
515
|
-
onToggleFullscreen:
|
|
523
|
+
onToggleFullscreen: je,
|
|
516
524
|
onGeneratePdf: y(We),
|
|
517
|
-
onGenerateCsv:
|
|
525
|
+
onGenerateCsv: rt,
|
|
518
526
|
onGenerateImage: y(Ye),
|
|
519
|
-
onToggleTable:
|
|
520
|
-
onToggleLabels:
|
|
521
|
-
onToggleTooltip:
|
|
527
|
+
onToggleTable: et,
|
|
528
|
+
onToggleLabels: tt,
|
|
529
|
+
onToggleTooltip: at,
|
|
522
530
|
onToggleAnnotator: $e,
|
|
523
|
-
style:
|
|
531
|
+
style: J({
|
|
524
532
|
visibility: y(Ae) ? y(_e) ? "visible" : "hidden" : "visible"
|
|
525
533
|
})
|
|
526
|
-
},
|
|
534
|
+
}, vt({ _: 2 }, [
|
|
527
535
|
a.$slots.menuIcon ? {
|
|
528
536
|
name: "menuIcon",
|
|
529
537
|
fn: _(({ isOpen: t, color: l }) => [
|
|
530
|
-
z(a.$slots, "menuIcon", F(
|
|
538
|
+
z(a.$slots, "menuIcon", D(F({ isOpen: t, color: l })), void 0, !0)
|
|
531
539
|
]),
|
|
532
540
|
key: "0"
|
|
533
541
|
} : void 0,
|
|
@@ -576,27 +584,27 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
576
584
|
a.$slots.optionFullscreen ? {
|
|
577
585
|
name: "optionFullscreen",
|
|
578
586
|
fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
579
|
-
z(a.$slots, "optionFullscreen", F(
|
|
587
|
+
z(a.$slots, "optionFullscreen", D(F({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
580
588
|
]),
|
|
581
589
|
key: "7"
|
|
582
590
|
} : void 0,
|
|
583
591
|
a.$slots.optionAnnotator ? {
|
|
584
592
|
name: "optionAnnotator",
|
|
585
593
|
fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
586
|
-
z(a.$slots, "optionAnnotator", F(
|
|
594
|
+
z(a.$slots, "optionAnnotator", D(F({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
587
595
|
]),
|
|
588
596
|
key: "8"
|
|
589
597
|
} : void 0
|
|
590
598
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
591
|
-
|
|
599
|
+
K.value ? (s(), n("svg", {
|
|
592
600
|
key: 3,
|
|
593
601
|
ref_key: "svgRef",
|
|
594
|
-
ref:
|
|
595
|
-
xmlns: y(
|
|
602
|
+
ref: Ue,
|
|
603
|
+
xmlns: y(oa),
|
|
596
604
|
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
597
|
-
style:
|
|
605
|
+
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
598
606
|
}, [
|
|
599
|
-
ie(y(
|
|
607
|
+
ie(y(Lt)),
|
|
600
608
|
a.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
601
609
|
key: 0,
|
|
602
610
|
x: o.value.left,
|
|
@@ -608,8 +616,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
608
616
|
}
|
|
609
617
|
}, [
|
|
610
618
|
z(a.$slots, "chart-background", {}, void 0, !0)
|
|
611
|
-
], 8,
|
|
612
|
-
e.value.style.chart.bars.gradient.show ? (s(), n("defs",
|
|
619
|
+
], 8, Sa)) : g("", !0),
|
|
620
|
+
e.value.style.chart.bars.gradient.show ? (s(), n("defs", $a, [
|
|
613
621
|
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("linearGradient", {
|
|
614
622
|
id: `gradient_${t.id}`,
|
|
615
623
|
x1: "0%",
|
|
@@ -617,19 +625,19 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
617
625
|
x2: "0%",
|
|
618
626
|
y2: "100%"
|
|
619
627
|
}, [
|
|
620
|
-
|
|
628
|
+
q("stop", {
|
|
621
629
|
offset: "0%",
|
|
622
630
|
"stop-color": t.color
|
|
623
|
-
}, null, 8,
|
|
624
|
-
|
|
631
|
+
}, null, 8, Ta),
|
|
632
|
+
q("stop", {
|
|
625
633
|
offset: "61.8%",
|
|
626
|
-
"stop-color": y(
|
|
627
|
-
}, null, 8,
|
|
628
|
-
|
|
634
|
+
"stop-color": y(ia)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
635
|
+
}, null, 8, Na),
|
|
636
|
+
q("stop", {
|
|
629
637
|
offset: "100%",
|
|
630
638
|
"stop-color": t.color
|
|
631
|
-
}, null, 8,
|
|
632
|
-
], 8,
|
|
639
|
+
}, null, 8, Ia)
|
|
640
|
+
], 8, Ma))), 256))
|
|
633
641
|
])) : g("", !0),
|
|
634
642
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 2 }, f(P.value, (t, l) => (s(), n("line", {
|
|
635
643
|
x1: o.value.left,
|
|
@@ -640,7 +648,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
640
648
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
641
649
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
642
650
|
"stroke-linecap": "round"
|
|
643
|
-
}, null, 8,
|
|
651
|
+
}, null, 8, Pa))), 256)) : g("", !0),
|
|
644
652
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 3 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
|
|
645
653
|
x1: o.value.left,
|
|
646
654
|
x2: o.value.right,
|
|
@@ -650,7 +658,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
650
658
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
651
659
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
652
660
|
"stroke-linecap": "round"
|
|
653
|
-
}, null, 8,
|
|
661
|
+
}, null, 8, Oa))), 256)) : g("", !0),
|
|
654
662
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 4 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
|
|
655
663
|
x1: o.value.left + d.value * l,
|
|
656
664
|
x2: o.value.left + d.value * l,
|
|
@@ -660,7 +668,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
660
668
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
661
669
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
662
670
|
"stroke-linecap": "round"
|
|
663
|
-
}, null, 8,
|
|
671
|
+
}, null, 8, Va))), 256)) : g("", !0),
|
|
664
672
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 5 }, f(P.value, (t, l) => (s(), n("line", {
|
|
665
673
|
x1: t.horizontal_x,
|
|
666
674
|
x2: t.horizontal_x,
|
|
@@ -670,9 +678,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
670
678
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
671
679
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
672
680
|
"stroke-linecap": "round"
|
|
673
|
-
}, null, 8,
|
|
681
|
+
}, null, 8, Ra))), 256)) : g("", !0),
|
|
674
682
|
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
675
|
-
a.$slots.pattern ? (s(), n("defs",
|
|
683
|
+
a.$slots.pattern ? (s(), n("defs", Aa, [
|
|
676
684
|
z(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
677
685
|
])) : g("", !0),
|
|
678
686
|
e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
|
|
@@ -687,9 +695,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
687
695
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
688
696
|
"stroke-linecap": "round",
|
|
689
697
|
"stroke-linejoin": "round",
|
|
690
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
691
|
-
}, null, 10,
|
|
692
|
-
a.$slots.pattern ? (s(), n("g",
|
|
698
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
699
|
+
}, null, 10, Ua))), 256)),
|
|
700
|
+
a.$slots.pattern ? (s(), n("g", Da, [
|
|
693
701
|
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
|
|
694
702
|
x: c,
|
|
695
703
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
@@ -701,8 +709,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
701
709
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
702
710
|
"stroke-linecap": "round",
|
|
703
711
|
"stroke-linejoin": "round",
|
|
704
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
705
|
-
}, null, 10,
|
|
712
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
713
|
+
}, null, 10, Fa))), 256))
|
|
706
714
|
])) : g("", !0)
|
|
707
715
|
], 64)) : (s(), n(v, { key: 2 }, [
|
|
708
716
|
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
@@ -716,9 +724,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
716
724
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
717
725
|
"stroke-linecap": "round",
|
|
718
726
|
"stroke-linejoin": "round",
|
|
719
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
720
|
-
}, null, 10,
|
|
721
|
-
a.$slots.pattern ? (s(), n("g",
|
|
727
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
728
|
+
}, null, 10, Ea))), 256)),
|
|
729
|
+
a.$slots.pattern ? (s(), n("g", Ha, [
|
|
722
730
|
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
723
731
|
x: y(xe)(c, o.value.left),
|
|
724
732
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
@@ -730,8 +738,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
730
738
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
731
739
|
"stroke-linecap": "round",
|
|
732
740
|
"stroke-linejoin": "round",
|
|
733
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
734
|
-
}, null, 10,
|
|
741
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
742
|
+
}, null, 10, Ba))), 256))
|
|
735
743
|
])) : g("", !0)
|
|
736
744
|
], 64))
|
|
737
745
|
]))), 256)),
|
|
@@ -745,7 +753,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
745
753
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
746
754
|
"stroke-linecap": "round",
|
|
747
755
|
"stroke-linejoin": "round"
|
|
748
|
-
}, null, 8,
|
|
756
|
+
}, null, 8, Wa)) : g("", !0),
|
|
749
757
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
|
|
750
758
|
key: 7,
|
|
751
759
|
x1: o.value.left,
|
|
@@ -756,7 +764,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
756
764
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
757
765
|
"stroke-linecap": "round",
|
|
758
766
|
"stroke-linejoin": "round"
|
|
759
|
-
}, null, 8,
|
|
767
|
+
}, null, 8, Ya)) : g("", !0),
|
|
760
768
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
|
|
761
769
|
key: 8,
|
|
762
770
|
x: o.value.left + o.value.width / 2,
|
|
@@ -765,7 +773,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
765
773
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
766
774
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
767
775
|
"text-anchor": "middle"
|
|
768
|
-
}, T(e.value.style.chart.grid.x.axisName.text), 9,
|
|
776
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Xa)) : g("", !0),
|
|
769
777
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
|
|
770
778
|
key: 9,
|
|
771
779
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
@@ -773,22 +781,22 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
773
781
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
774
782
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
775
783
|
"text-anchor": "middle"
|
|
776
|
-
}, T(e.value.style.chart.grid.y.axisName.text), 9,
|
|
784
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, Ga)) : g("", !0),
|
|
777
785
|
L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
|
|
778
786
|
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
779
787
|
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
|
|
780
|
-
|
|
788
|
+
ot(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
781
789
|
key: 0,
|
|
782
790
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
783
791
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
784
792
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
785
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
793
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
786
794
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
787
795
|
"text-anchor": "middle"
|
|
788
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9,
|
|
796
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ja)) : g("", !0)
|
|
789
797
|
], 64))), 256))
|
|
790
798
|
]))), 256)),
|
|
791
|
-
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g",
|
|
799
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", qa, [
|
|
792
800
|
(s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
|
|
793
801
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
794
802
|
key: 0,
|
|
@@ -798,25 +806,25 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
798
806
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
799
807
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
800
808
|
fill: e.value.style.chart.bars.totalValues.color
|
|
801
|
-
}, T(ve(t.value, t, l, t.sign)), 9,
|
|
809
|
+
}, T(ve(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
|
|
802
810
|
], 64))), 256))
|
|
803
811
|
])) : g("", !0)
|
|
804
812
|
], 64)) : g("", !0),
|
|
805
813
|
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
|
|
806
814
|
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
807
815
|
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
|
|
808
|
-
|
|
816
|
+
ot(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
809
817
|
key: 0,
|
|
810
818
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
811
819
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
812
820
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
813
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
821
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
814
822
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
815
823
|
"text-anchor": "middle"
|
|
816
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9,
|
|
824
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ka)) : g("", !0)
|
|
817
825
|
], 64))), 256))
|
|
818
826
|
]))), 256)),
|
|
819
|
-
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g",
|
|
827
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Qa, [
|
|
820
828
|
(s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
|
|
821
829
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
822
830
|
key: 0,
|
|
@@ -826,7 +834,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
826
834
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
827
835
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
828
836
|
fill: e.value.style.chart.bars.totalValues.color
|
|
829
|
-
}, T(ve(t.value, t, l, t.sign)), 9,
|
|
837
|
+
}, T(ve(t.value, t, l, t.sign)), 9, ja)) : g("", !0)
|
|
830
838
|
], 64))), 256))
|
|
831
839
|
])) : g("", !0)
|
|
832
840
|
], 64)) : g("", !0),
|
|
@@ -838,7 +846,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
838
846
|
y2: t.y,
|
|
839
847
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
840
848
|
"stroke-width": 1
|
|
841
|
-
}, null, 8,
|
|
849
|
+
}, null, 8, el))), 256)),
|
|
842
850
|
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
|
|
843
851
|
x: t.x,
|
|
844
852
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -849,14 +857,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
849
857
|
}, T(y(ke)(
|
|
850
858
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
851
859
|
t.value,
|
|
852
|
-
y(
|
|
860
|
+
y(Z)({
|
|
853
861
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
854
862
|
v: t.value,
|
|
855
863
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
856
864
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
857
865
|
}),
|
|
858
866
|
{ datapoint: t }
|
|
859
|
-
)), 9,
|
|
867
|
+
)), 9, tl))), 256))
|
|
860
868
|
], 64)) : g("", !0),
|
|
861
869
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(v, { key: 13 }, [
|
|
862
870
|
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
|
|
@@ -867,7 +875,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
867
875
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
868
876
|
"stroke-width": 1,
|
|
869
877
|
"stroke-linecap": "round"
|
|
870
|
-
}, null, 8,
|
|
878
|
+
}, null, 8, al))), 256)),
|
|
871
879
|
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
|
|
872
880
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
873
881
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -877,17 +885,17 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
877
885
|
}, T(y(ke)(
|
|
878
886
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
879
887
|
t.value,
|
|
880
|
-
y(
|
|
888
|
+
y(Z)({
|
|
881
889
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
882
890
|
v: t.value,
|
|
883
891
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
884
892
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
885
893
|
}),
|
|
886
894
|
{ datapoint: t }
|
|
887
|
-
)), 9,
|
|
895
|
+
)), 9, ll))), 256))
|
|
888
896
|
], 64)) : g("", !0),
|
|
889
897
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 14 }, [
|
|
890
|
-
a.$slots["time-label"] ? (s(), n("g",
|
|
898
|
+
a.$slots["time-label"] ? (s(), n("g", rl, [
|
|
891
899
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
892
900
|
z(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
893
901
|
x: o.value.left + d.value * l + d.value / 2,
|
|
@@ -901,7 +909,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
901
909
|
show: !0
|
|
902
910
|
}), void 0, !0)
|
|
903
911
|
]))), 256))
|
|
904
|
-
])) : (s(), n("g",
|
|
912
|
+
])) : (s(), n("g", sl, [
|
|
905
913
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
906
914
|
String(t.text).includes(`
|
|
907
915
|
`) ? (s(), n("text", {
|
|
@@ -917,7 +925,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
917
925
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
918
926
|
`,
|
|
919
927
|
style: { cursor: "pointer" },
|
|
920
|
-
innerHTML: y(
|
|
928
|
+
innerHTML: y(na)({
|
|
921
929
|
content: String(t.text),
|
|
922
930
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
923
931
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -925,7 +933,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
925
933
|
y: 0
|
|
926
934
|
}),
|
|
927
935
|
onClick: () => ge(t, l)
|
|
928
|
-
}, null, 8,
|
|
936
|
+
}, null, 8, il)) : (s(), n("text", {
|
|
929
937
|
key: l,
|
|
930
938
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
931
939
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -934,12 +942,12 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
934
942
|
transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.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})`,
|
|
935
943
|
style: { cursor: "pointer" },
|
|
936
944
|
onClick: () => ge(t, l)
|
|
937
|
-
}, T(t.text), 9,
|
|
945
|
+
}, T(t.text), 9, ol))
|
|
938
946
|
]))), 256))
|
|
939
947
|
]))
|
|
940
948
|
], 64)) : g("", !0),
|
|
941
949
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 15 }, [
|
|
942
|
-
a.$slots["time-label"] ? (s(), n("g",
|
|
950
|
+
a.$slots["time-label"] ? (s(), n("g", nl, [
|
|
943
951
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
944
952
|
z(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
945
953
|
x: o.value.left - 8,
|
|
@@ -953,7 +961,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
953
961
|
show: !0
|
|
954
962
|
}), void 0, !0)
|
|
955
963
|
]))), 256))
|
|
956
|
-
])) : (s(), n("g",
|
|
964
|
+
])) : (s(), n("g", ul, [
|
|
957
965
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
958
966
|
String(t.text).includes(`
|
|
959
967
|
`) ? (s(), n("text", {
|
|
@@ -966,14 +974,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
966
974
|
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
967
975
|
style: { cursor: "pointer" },
|
|
968
976
|
onClick: () => ge(t, l),
|
|
969
|
-
innerHTML: y(
|
|
977
|
+
innerHTML: y(ua)({
|
|
970
978
|
content: String(t.text),
|
|
971
979
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
972
980
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
973
981
|
x: o.value.left - 8,
|
|
974
982
|
y: 0
|
|
975
983
|
})
|
|
976
|
-
}, null, 8,
|
|
984
|
+
}, null, 8, hl)) : (s(), n("text", {
|
|
977
985
|
key: 0,
|
|
978
986
|
"text-anchor": "end",
|
|
979
987
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -985,7 +993,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
985
993
|
cursor: "pointer"
|
|
986
994
|
},
|
|
987
995
|
onClick: () => ge(t, l)
|
|
988
|
-
}, T(t.text), 9,
|
|
996
|
+
}, T(t.text), 9, cl))
|
|
989
997
|
]))), 256))
|
|
990
998
|
]))
|
|
991
999
|
], 64)) : g("", !0),
|
|
@@ -1000,8 +1008,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1000
1008
|
ae.value = null, ne.value = !1;
|
|
1001
1009
|
}),
|
|
1002
1010
|
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1003
|
-
style:
|
|
1004
|
-
}, null, 44,
|
|
1011
|
+
style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1012
|
+
}, null, 44, vl))), 256)) : g("", !0),
|
|
1005
1013
|
L.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 17 }, f(h.value.end - h.value.start, (t, l) => (s(), n("rect", {
|
|
1006
1014
|
x: o.value.left,
|
|
1007
1015
|
y: o.value.top + l * d.value,
|
|
@@ -1013,14 +1021,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1013
1021
|
ae.value = null, ne.value = !1;
|
|
1014
1022
|
}),
|
|
1015
1023
|
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1016
|
-
style:
|
|
1017
|
-
}, null, 44,
|
|
1018
|
-
z(a.$slots, "svg", F(
|
|
1019
|
-
], 12,
|
|
1020
|
-
a.$slots.watermark ? (s(), n("div",
|
|
1021
|
-
z(a.$slots, "watermark", F(
|
|
1024
|
+
style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1025
|
+
}, null, 44, dl))), 256)) : g("", !0),
|
|
1026
|
+
z(a.$slots, "svg", D(F({ ...o.value })), void 0, !0)
|
|
1027
|
+
], 12, _a)) : g("", !0),
|
|
1028
|
+
a.$slots.watermark ? (s(), n("div", yl, [
|
|
1029
|
+
z(a.$slots, "watermark", D(F({ isPrinting: y(He) || y(Be) })), void 0, !0)
|
|
1022
1030
|
])) : g("", !0),
|
|
1023
|
-
|
|
1031
|
+
K.value ? g("", !0) : (s(), ee(y(_t), {
|
|
1024
1032
|
key: 5,
|
|
1025
1033
|
config: {
|
|
1026
1034
|
type: "bar",
|
|
@@ -1035,15 +1043,15 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1035
1043
|
}
|
|
1036
1044
|
}
|
|
1037
1045
|
}, null, 8, ["config"])),
|
|
1038
|
-
|
|
1046
|
+
q("div", {
|
|
1039
1047
|
ref_key: "chartSlicer",
|
|
1040
1048
|
ref: Pe,
|
|
1041
|
-
style:
|
|
1049
|
+
style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1042
1050
|
"data-dom-to-png-ignore": ""
|
|
1043
1051
|
}, [
|
|
1044
|
-
e.value.style.chart.zoom.show &&
|
|
1052
|
+
e.value.style.chart.zoom.show && U.value > 1 ? (s(), ee(pa, {
|
|
1045
1053
|
ref_key: "slicerComponent",
|
|
1046
|
-
ref:
|
|
1054
|
+
ref: Q,
|
|
1047
1055
|
key: `slicer_${Ve.value}`,
|
|
1048
1056
|
background: e.value.style.chart.zoom.color,
|
|
1049
1057
|
borderColor: e.value.style.chart.backgroundColor,
|
|
@@ -1069,12 +1077,12 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1069
1077
|
onReset: Ge
|
|
1070
1078
|
}, {
|
|
1071
1079
|
"reset-action": _(({ reset: t }) => [
|
|
1072
|
-
z(a.$slots, "reset-action", F(
|
|
1080
|
+
z(a.$slots, "reset-action", D(F({ reset: t })), void 0, !0)
|
|
1073
1081
|
]),
|
|
1074
1082
|
_: 3
|
|
1075
1083
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
|
|
1076
1084
|
], 4),
|
|
1077
|
-
ie(y(
|
|
1085
|
+
ie(y(St), {
|
|
1078
1086
|
show: L.value.showTooltip && ne.value,
|
|
1079
1087
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1080
1088
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1085,41 +1093,41 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1085
1093
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1086
1094
|
position: e.value.style.chart.tooltip.position,
|
|
1087
1095
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1088
|
-
parent:
|
|
1096
|
+
parent: E.value,
|
|
1089
1097
|
content: Ce.value,
|
|
1090
1098
|
isFullscreen: ue.value,
|
|
1091
|
-
isCustom: y(
|
|
1099
|
+
isCustom: y(mt)(e.value.style.chart.tooltip.customFormat)
|
|
1092
1100
|
}, {
|
|
1093
1101
|
"tooltip-before": _(() => [
|
|
1094
|
-
z(a.$slots, "tooltip-before", F(
|
|
1102
|
+
z(a.$slots, "tooltip-before", D(F({ ...Le.value })), void 0, !0)
|
|
1095
1103
|
]),
|
|
1096
1104
|
"tooltip-after": _(() => [
|
|
1097
|
-
z(a.$slots, "tooltip-after", F(
|
|
1105
|
+
z(a.$slots, "tooltip-after", D(F({ ...Le.value })), void 0, !0)
|
|
1098
1106
|
]),
|
|
1099
1107
|
_: 3
|
|
1100
1108
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1101
|
-
|
|
1109
|
+
q("div", {
|
|
1102
1110
|
ref_key: "chartLegend",
|
|
1103
1111
|
ref: Ie
|
|
1104
1112
|
}, [
|
|
1105
|
-
e.value.style.chart.legend.show &&
|
|
1113
|
+
e.value.style.chart.legend.show && K.value ? (s(), ee(ma, {
|
|
1106
1114
|
key: 0,
|
|
1107
|
-
legendSet:
|
|
1108
|
-
config:
|
|
1115
|
+
legendSet: st.value,
|
|
1116
|
+
config: Dt.value,
|
|
1109
1117
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1110
|
-
},
|
|
1118
|
+
}, vt({
|
|
1111
1119
|
item: _(({ legend: t }) => [
|
|
1112
|
-
|
|
1120
|
+
q("div", {
|
|
1113
1121
|
onClick: (l) => t.segregate(),
|
|
1114
|
-
style:
|
|
1115
|
-
}, T(t.name), 13,
|
|
1122
|
+
style: J(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1123
|
+
}, T(t.name), 13, gl)
|
|
1116
1124
|
]),
|
|
1117
1125
|
_: 2
|
|
1118
1126
|
}, [
|
|
1119
1127
|
a.$slots.pattern ? {
|
|
1120
1128
|
name: "legend-pattern",
|
|
1121
1129
|
fn: _(({ legend: t, index: l }) => [
|
|
1122
|
-
ie(
|
|
1130
|
+
ie(ka, {
|
|
1123
1131
|
shape: t.shape,
|
|
1124
1132
|
radius: 30,
|
|
1125
1133
|
stroke: "none",
|
|
@@ -1131,7 +1139,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1131
1139
|
} : void 0
|
|
1132
1140
|
]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
|
|
1133
1141
|
key: 1,
|
|
1134
|
-
legend:
|
|
1142
|
+
legend: st.value
|
|
1135
1143
|
}, void 0, !0)
|
|
1136
1144
|
], 512),
|
|
1137
1145
|
a.$slots.source ? (s(), n("div", {
|
|
@@ -1142,7 +1150,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1142
1150
|
}, [
|
|
1143
1151
|
z(a.$slots, "source", {}, void 0, !0)
|
|
1144
1152
|
], 512)) : g("", !0),
|
|
1145
|
-
h.value.end - h.value.start < 200 ? (s(),
|
|
1153
|
+
h.value.end - h.value.start < 200 ? (s(), ee(y(wt), {
|
|
1146
1154
|
key: 7,
|
|
1147
1155
|
hideDetails: "",
|
|
1148
1156
|
config: {
|
|
@@ -1159,7 +1167,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1159
1167
|
}
|
|
1160
1168
|
}, {
|
|
1161
1169
|
content: _(() => [
|
|
1162
|
-
ie(y(
|
|
1170
|
+
ie(y(zt), {
|
|
1163
1171
|
colNames: de.value.colNames,
|
|
1164
1172
|
head: de.value.head,
|
|
1165
1173
|
body: de.value.body,
|
|
@@ -1168,10 +1176,10 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1168
1176
|
onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
|
|
1169
1177
|
}, {
|
|
1170
1178
|
th: _(({ th: t }) => [
|
|
1171
|
-
|
|
1179
|
+
q("div", { innerHTML: t }, null, 8, bl)
|
|
1172
1180
|
]),
|
|
1173
1181
|
td: _(({ td: t }) => [
|
|
1174
|
-
|
|
1182
|
+
Qt(T(isNaN(Number(t)) ? t : y(Z)({
|
|
1175
1183
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1176
1184
|
v: t,
|
|
1177
1185
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1183,9 +1191,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
|
|
|
1183
1191
|
]),
|
|
1184
1192
|
_: 1
|
|
1185
1193
|
}, 8, ["config"])) : g("", !0)
|
|
1186
|
-
], 46,
|
|
1194
|
+
], 46, Ca));
|
|
1187
1195
|
}
|
|
1188
|
-
},
|
|
1196
|
+
}, Il = /* @__PURE__ */ La(fl, [["__scopeId", "data-v-b9780259"]]);
|
|
1189
1197
|
export {
|
|
1190
|
-
|
|
1198
|
+
Il as default
|
|
1191
1199
|
};
|