vue-data-ui 2.17.4 → 2.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Cr03AON-.js → Arrow-B5XMxiDI.js} +1 -1
- package/dist/{BaseDraggableDialog-D_TGhcK2.js → BaseDraggableDialog-B05teCuC.js} +2 -2
- package/dist/{BaseIcon-CyM92oim.js → BaseIcon-CbMrQkx9.js} +1 -1
- package/dist/{ColorPicker-DQQa1N1O.js → ColorPicker-KP19H18w.js} +2 -2
- package/dist/{DataTable-CoyBJeJB.js → DataTable-CZ_AURpz.js} +2 -2
- package/dist/{Legend-B44OtRfQ.js → Legend-BHey9BA_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DpwO3vYO.js → NonSvgPenAndPaper-C9niuQO5.js} +3 -3
- package/dist/{PackageVersion-drEOUlg2.js → PackageVersion-BuyTFzA_.js} +1 -1
- package/dist/{PenAndPaper-B7H1_uts.js → PenAndPaper-C6SI350S.js} +3 -3
- package/dist/{Shape-D18tEWq4.js → Shape-DeUTHS2H.js} +1 -1
- package/dist/{Slicer-oLrrkKHp.js → Slicer-fejiX9pa.js} +2 -2
- package/dist/{SparkTooltip-CVcLzqfq.js → SparkTooltip-Bh6sdk1R.js} +1 -1
- package/dist/{Title-CedjJEqz.js → Title-eafHHaEy.js} +1 -1
- package/dist/{Tooltip-BHzRX_iV.js → Tooltip-DqkPv4p5.js} +1 -1
- package/dist/{UserOptions-EKIA1_GD.js → UserOptions-Xu1YwU1i.js} +2 -2
- package/dist/{dom-to-png-60ykzqkP.js → dom-to-png-DttAWyyk.js} +1 -1
- package/dist/{img-BXq3W8b5.js → img-B7FQLrD7.js} +1 -1
- package/dist/{index-AQZj6e2N.js → index-CNt4Vhp9.js} +332 -322
- package/dist/{pdf-EAkMc133.js → pdf-MhTzuA1z.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +10 -0
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useNestedProp-BIWGxeSS.js → useNestedProp-BI2tFEgE.js} +1 -1
- package/dist/{usePrinter-CuWuVLtO.js → usePrinter-BGZOlDDN.js} +2 -2
- package/dist/{vue-data-ui-CML3eTbI.js → vue-data-ui-ClvOBukx.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Bm1MqS-x.js → vue-ui-3d-bar-DpD3ikuS.js} +6 -6
- package/dist/{vue-ui-accordion-DiRbM5Q1.js → vue-ui-accordion-BE-IMk5e.js} +3 -3
- package/dist/{vue-ui-age-pyramid-PLMkOCqQ.js → vue-ui-age-pyramid-iTZEunV8.js} +6 -6
- package/dist/{vue-ui-annotator-BDneVOiO.js → vue-ui-annotator-BzvdPz95.js} +2 -2
- package/dist/{vue-ui-bullet-DkSgDU6f.js → vue-ui-bullet-B-wUrrB3.js} +7 -7
- package/dist/{vue-ui-candlestick-CdpbG3Ab.js → vue-ui-candlestick-CCWOBvyK.js} +7 -7
- package/dist/{vue-ui-carousel-table-Dq3krKLE.js → vue-ui-carousel-table-Bui8kmRH.js} +4 -4
- package/dist/{vue-ui-chestnut-DwOBNaW8.js → vue-ui-chestnut-CWng5XOC.js} +5 -5
- package/dist/{vue-ui-chord-vUd9A0cK.js → vue-ui-chord-CcWakA3D.js} +8 -8
- package/dist/{vue-ui-circle-pack-CXqs1Gjv.js → vue-ui-circle-pack-BCaGnC6O.js} +6 -6
- package/dist/{vue-ui-cursor-Cr3JiUQT.js → vue-ui-cursor-CehblpQK.js} +2 -2
- package/dist/{vue-ui-dashboard-BKtuJnjA.js → vue-ui-dashboard-0GLoZUA2.js} +62 -62
- package/dist/{vue-ui-digits-BcUS_dXh.js → vue-ui-digits-DF1vHQ1D.js} +2 -2
- package/dist/vue-ui-donut-DRBk_HYh.js +1380 -0
- package/dist/{vue-ui-donut-evolution-DN8_n4GY.js → vue-ui-donut-evolution-CLHxXCuD.js} +8 -8
- package/dist/{vue-ui-dumbbell-BKTCQfoS.js → vue-ui-dumbbell-BRmCusY0.js} +7 -7
- package/dist/{vue-ui-flow-CHDTSMfE.js → vue-ui-flow-D7WGLuvV.js} +7 -7
- package/dist/{vue-ui-funnel-CBZX2VCo.js → vue-ui-funnel-DjNGxVxu.js} +6 -6
- package/dist/{vue-ui-galaxy-DxYqtdyu.js → vue-ui-galaxy-U8ejfLWO.js} +5 -5
- package/dist/{vue-ui-gauge-hcSR0dD4.js → vue-ui-gauge-DizxW2Xu.js} +6 -6
- package/dist/{vue-ui-gizmo-BSNhk3zT.js → vue-ui-gizmo-BjFeSL7X.js} +3 -3
- package/dist/{vue-ui-heatmap-ExnYpGTE.js → vue-ui-heatmap-Ccv1uJHg.js} +7 -7
- package/dist/{vue-ui-history-plot-2H5OZ766.js → vue-ui-history-plot-DZr3ZdGS.js} +7 -7
- package/dist/{vue-ui-kpi-OghOruOA.js → vue-ui-kpi-BAbus_Tt.js} +3 -3
- package/dist/{vue-ui-mini-loader-sLd2fgBF.js → vue-ui-mini-loader-jDIz8RyR.js} +2 -2
- package/dist/{vue-ui-molecule-D6DBVZzU.js → vue-ui-molecule-DXv62-LW.js} +5 -5
- package/dist/{vue-ui-mood-radar-DbTs_POL.js → vue-ui-mood-radar-B9oxs6M6.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DXpZHGho.js → vue-ui-nested-donuts-DdQ09CTY.js} +7 -7
- package/dist/{vue-ui-onion-QOM46fCR.js → vue-ui-onion-DOptmUuE.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-Bh1LysH2.js → vue-ui-parallel-coordinate-plot-CE05YF2g.js} +8 -8
- package/dist/{vue-ui-quadrant-CiIjOX1A.js → vue-ui-quadrant-DYz8y-m1.js} +8 -8
- package/dist/{vue-ui-quick-chart--JMjm27V.js → vue-ui-quick-chart-plvfC_DT.js} +6 -6
- package/dist/{vue-ui-radar-CYgHLKwi.js → vue-ui-radar-CJe7r_Ks.js} +7 -7
- package/dist/{vue-ui-rating-Rr-JEtXO.js → vue-ui-rating-D1jE5Ak_.js} +2 -2
- package/dist/{vue-ui-relation-circle-DdUqCEdR.js → vue-ui-relation-circle-B6X49uAY.js} +6 -6
- package/dist/{vue-ui-ridgeline-BsC4l5Cf.js → vue-ui-ridgeline-C7EZKTo6.js} +8 -8
- package/dist/{vue-ui-rings-D2zLJkWT.js → vue-ui-rings-C3RKJnZC.js} +8 -8
- package/dist/{vue-ui-scatter-DinQI45N.js → vue-ui-scatter-FCuwnAoV.js} +8 -8
- package/dist/{vue-ui-skeleton-DdA_7GYv.js → vue-ui-skeleton-Bpd3uMFT.js} +3 -3
- package/dist/{vue-ui-smiley-BC87HDgZ.js → vue-ui-smiley-DJAXb8r7.js} +2 -2
- package/dist/{vue-ui-spark-trend-DC59f_85.js → vue-ui-spark-trend-aQNa2scr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BaMzdG1G.js → vue-ui-sparkbar-DG1xT-2y.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BeAK_K1G.js → vue-ui-sparkgauge-B_P9WUij.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DoWKUeUs.js → vue-ui-sparkhistogram-CFeb1YdS.js} +4 -4
- package/dist/{vue-ui-sparkline-BAbURG77.js → vue-ui-sparkline-Du-laBid.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CK1RERzf.js → vue-ui-sparkstackbar-SZ5eU6gZ.js} +3 -3
- package/dist/{vue-ui-stackbar-DvACEasj.js → vue-ui-stackbar-BXFKobNU.js} +159 -158
- package/dist/{vue-ui-strip-plot-XN7_6LCe.js → vue-ui-strip-plot-BDo6l_l6.js} +7 -7
- package/dist/{vue-ui-table-C-O2v0N9.js → vue-ui-table-BpoXkgRA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bs6D0aoV.js → vue-ui-table-heatmap-BJFJ2K1F.js} +5 -5
- package/dist/{vue-ui-table-sparkline-5Xbz-k7Z.js → vue-ui-table-sparkline-Dxorwils.js} +4 -4
- package/dist/{vue-ui-thermometer-xm7p0IsR.js → vue-ui-thermometer-BJF-fB5p.js} +6 -6
- package/dist/{vue-ui-timer-DOTmAFNn.js → vue-ui-timer-DWmZKJij.js} +5 -5
- package/dist/{vue-ui-tiremarks-17IGDg94.js → vue-ui-tiremarks-BwL7Z4fj.js} +6 -6
- package/dist/{vue-ui-treemap-JXZ9Fc8t.js → vue-ui-treemap-DNgGFetB.js} +8 -8
- package/dist/{vue-ui-vertical-bar-UHjNE_tx.js → vue-ui-vertical-bar-CNr5Jrwd.js} +279 -273
- package/dist/{vue-ui-waffle-Cg68D_51.js → vue-ui-waffle-BeAxPtiv.js} +8 -8
- package/dist/{vue-ui-wheel-CLsDKzlB.js → vue-ui-wheel-BZ0pa_6W.js} +6 -6
- package/dist/{vue-ui-word-cloud-QXExzLAu.js → vue-ui-word-cloud-DIjaOMPZ.js} +6 -6
- package/dist/{vue-ui-world-BxU6IfEv.js → vue-ui-world-CvRfePfH.js} +6 -6
- package/dist/{vue-ui-xy-BgJBKQhc.js → vue-ui-xy-5gnkPQs4.js} +17 -17
- package/dist/{vue-ui-xy-canvas-X4MI-pf0.js → vue-ui-xy-canvas-BHKnaGNJ.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-donut-rQxbBoMB.js +0 -1338
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, useSlots as Zt, computed as w, ref as p, onMounted as
|
|
2
|
-
import { u as jt, c as
|
|
3
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as G, useSlots as Zt, computed as w, ref as p, onMounted as ct, watch as ht, shallowRef as vt, onBeforeUnmount as Kt, nextTick as be, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as J, normalizeClass as oe, createBlock as q, createCommentVNode as g, renderSlot as z, createElementVNode as Z, createVNode as fe, createSlots as dt, withCtx as _, normalizeProps as F, guardReactiveProps as E, Fragment as v, renderList as f, mergeProps as Me, toDisplayString as T, createTextVNode as Qt } from "vue";
|
|
2
|
+
import { u as jt, c as yt, t as ea, p as me, a as ta, C as te, b as aa, o as la, e as gt, g as ra, d as sa, al as pe, ai as bt, D as ft, X as oa, l as ia, a7 as xe, F as mt, i as ke, f as K, I as na, am as ua, x as pt, q as ca, r as ha, y as va } from "./index-CNt4Vhp9.js";
|
|
3
|
+
import { u as xt } from "./useNestedProp-BI2tFEgE.js";
|
|
4
4
|
import { t as da, u as ya } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as ga } from "./usePrinter-
|
|
5
|
+
import { u as ga } from "./usePrinter-BGZOlDDN.js";
|
|
6
6
|
import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ma from "./Legend-
|
|
9
|
-
import { S as pa } from "./Slicer-
|
|
10
|
-
import xa from "./Title-
|
|
11
|
-
import { _ as ka } from "./Shape-
|
|
8
|
+
import ma from "./Legend-BHey9BA_.js";
|
|
9
|
+
import { S as pa } from "./Slicer-fejiX9pa.js";
|
|
10
|
+
import xa from "./Title-eafHHaEy.js";
|
|
11
|
+
import { _ as ka } from "./Shape-DeUTHS2H.js";
|
|
12
12
|
import { u as wa } from "./useTimeLabels-Mrr0jrpL.js";
|
|
13
|
-
import za from "./img-
|
|
13
|
+
import za from "./img-B7FQLrD7.js";
|
|
14
14
|
import { _ as La } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
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"], Ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["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 = {
|
|
16
16
|
key: 4,
|
|
@@ -32,41 +32,41 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
35
|
-
setup(we, { expose:
|
|
36
|
-
const
|
|
35
|
+
setup(we, { expose: kt, emit: wt }) {
|
|
36
|
+
const zt = G(() => import("./vue-ui-accordion-BE-IMk5e.js")), Lt = G(() => import("./DataTable-CZ_AURpz.js")), Ct = G(() => import("./PackageVersion-BuyTFzA_.js")), _t = G(() => import("./PenAndPaper-C6SI350S.js")), St = G(() => import("./vue-ui-skeleton-Bpd3uMFT.js")), $t = G(() => import("./Tooltip-DqkPv4p5.js")), Mt = G(() => import("./UserOptions-Xu1YwU1i.js")), { vue_ui_stackbar: Tt } = jt(), Nt = Zt(), b = we, ze = wt, Q = w({
|
|
37
37
|
get() {
|
|
38
38
|
return !!b.dataset && b.dataset.length;
|
|
39
39
|
},
|
|
40
40
|
set(a) {
|
|
41
41
|
return a;
|
|
42
42
|
}
|
|
43
|
-
}), R = p(null), V = p(
|
|
44
|
-
|
|
43
|
+
}), R = p(null), V = p(yt()), ie = p(!1), Le = p(null), Ce = p(""), S = p([]), Te = p(0), Ne = p(null), Ie = p(null), Pe = p(null), Oe = p(null), Re = p(0), ne = p(!1), ae = p(null), H = p(!1), Ve = p(0), It = p(0), Pt = p(0), j = p(null);
|
|
44
|
+
ct(() => {
|
|
45
45
|
Se();
|
|
46
46
|
});
|
|
47
47
|
const e = w({
|
|
48
|
-
get: () =>
|
|
48
|
+
get: () => Fe(),
|
|
49
49
|
set: (a) => a
|
|
50
|
-
}), { userOptionsVisible: _e, setUserOptionsVisibility:
|
|
51
|
-
function
|
|
52
|
-
const a =
|
|
50
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: Ae, keepUserOptionState: Ue } = ba({ config: e.value }), { svgRef: De } = fa({ config: e.value.style.chart.title });
|
|
51
|
+
function Fe() {
|
|
52
|
+
const a = xt({
|
|
53
53
|
userConfig: b.config,
|
|
54
|
-
defaultConfig:
|
|
54
|
+
defaultConfig: Tt
|
|
55
55
|
});
|
|
56
56
|
let r = {};
|
|
57
57
|
return a.theme ? r = {
|
|
58
|
-
...
|
|
58
|
+
...xt({
|
|
59
59
|
userConfig: ta.vue_ui_stackbar[a.theme] || b.config,
|
|
60
60
|
defaultConfig: a
|
|
61
61
|
}),
|
|
62
62
|
customPalette: ea[a.theme] || me
|
|
63
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;
|
|
64
64
|
}
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
e.value =
|
|
68
|
-
}, { deep: !0 }),
|
|
69
|
-
|
|
65
|
+
const Ee = w(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), He = w(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
66
|
+
ht(() => b.config, (a) => {
|
|
67
|
+
e.value = Fe(), _e.value = !e.value.userOptions.showOnChartHover, Se(), Ve.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 }), ht(() => b.dataset, (a) => {
|
|
69
|
+
Je();
|
|
70
70
|
}, { deep: !0 });
|
|
71
71
|
const L = p({
|
|
72
72
|
dataLabels: {
|
|
@@ -74,11 +74,11 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
74
74
|
},
|
|
75
75
|
showTable: e.value.table.show,
|
|
76
76
|
showTooltip: e.value.style.chart.tooltip.show
|
|
77
|
-
}), { isPrinting:
|
|
77
|
+
}), { isPrinting: Be, isImaging: We, generatePdf: Ye, generateImage: Xe } = ga({
|
|
78
78
|
elementId: `stackbar_${V.value}`,
|
|
79
79
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
80
80
|
options: e.value.userOptions.print
|
|
81
|
-
}),
|
|
81
|
+
}), ue = p({
|
|
82
82
|
width: e.value.style.chart.width,
|
|
83
83
|
height: e.value.style.chart.height,
|
|
84
84
|
paddingRatio: {
|
|
@@ -87,12 +87,12 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
87
87
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
88
88
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
89
89
|
}
|
|
90
|
-
}), Ot = w(() => aa(e.value.customPalette)), A =
|
|
91
|
-
|
|
90
|
+
}), Ot = w(() => aa(e.value.customPalette)), A = vt(null), ee = vt(null), Ge = p(null);
|
|
91
|
+
ct(() => {
|
|
92
92
|
Se();
|
|
93
93
|
});
|
|
94
94
|
function Se() {
|
|
95
|
-
if (la(b.dataset) ?
|
|
95
|
+
if (la(b.dataset) ? gt({
|
|
96
96
|
componentName: "VueUiStackbar",
|
|
97
97
|
type: "dataset"
|
|
98
98
|
}) : b.dataset.forEach((a, r) => {
|
|
@@ -100,7 +100,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
100
100
|
datasetObject: a,
|
|
101
101
|
requiredAttributes: ["name", "series"]
|
|
102
102
|
}).forEach((t) => {
|
|
103
|
-
|
|
103
|
+
Q.value = !1, gt({
|
|
104
104
|
componentName: "VueUiStackbar",
|
|
105
105
|
type: "datasetSerieAttribute",
|
|
106
106
|
property: t,
|
|
@@ -120,20 +120,20 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
120
120
|
source: Oe.value
|
|
121
121
|
});
|
|
122
122
|
requestAnimationFrame(() => {
|
|
123
|
-
|
|
123
|
+
ue.value.width = r, ue.value.height = t, clearTimeout(Ge.value), Ge.value = setTimeout(() => {
|
|
124
124
|
H.value = !0;
|
|
125
125
|
}, 10);
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
|
-
A.value && (
|
|
128
|
+
A.value && (ee.value && A.value.unobserve(ee.value), A.value.disconnect()), A.value = new ResizeObserver(a), ee.value = R.value.parentNode, A.value.observe(ee.value);
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
qe();
|
|
131
131
|
}
|
|
132
132
|
Kt(() => {
|
|
133
|
-
A.value && (
|
|
133
|
+
A.value && (ee.value && A.value.unobserve(ee.value), A.value.disconnect());
|
|
134
134
|
});
|
|
135
135
|
const o = w(() => {
|
|
136
|
-
const { height: a, width: r } =
|
|
136
|
+
const { height: a, width: r } = ue.value, { right: t } = ue.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;
|
|
137
137
|
return {
|
|
138
138
|
chartHeight: a,
|
|
139
139
|
chartWidth: r,
|
|
@@ -153,18 +153,18 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
153
153
|
// Store signs to manage display of neg values in distributed mode
|
|
154
154
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
155
155
|
absoluteIndex: r,
|
|
156
|
-
id:
|
|
156
|
+
id: yt(),
|
|
157
157
|
color: t
|
|
158
158
|
};
|
|
159
159
|
})), D = w(() => Math.max(...U.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
|
|
160
160
|
start: 0,
|
|
161
161
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
162
162
|
});
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
function Je() {
|
|
164
|
+
qe();
|
|
165
165
|
}
|
|
166
|
-
async function
|
|
167
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) &&
|
|
166
|
+
async function qe() {
|
|
167
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && j.value ? (e.value.style.chart.zoom.startIndex !== null && (await be(), await be(), j.value && j.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await be(), await be(), j.value && j.value.setEndValue(Rt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
|
|
168
168
|
start: 0,
|
|
169
169
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
170
170
|
}, Re.value += 1);
|
|
@@ -179,7 +179,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
179
179
|
}), le = w(() => pe(U.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Vt = w(() => pe(U.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
180
180
|
...a,
|
|
181
181
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
182
|
-
}))).slice(h.value.start, h.value.end)),
|
|
182
|
+
}))).slice(h.value.start, h.value.end)), ce = w(() => {
|
|
183
183
|
const a = U.value.filter((r) => !S.value.includes(r.id));
|
|
184
184
|
return {
|
|
185
185
|
positive: pe(a.map((r) => ({
|
|
@@ -192,7 +192,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
192
192
|
})))
|
|
193
193
|
};
|
|
194
194
|
}), P = w(() => {
|
|
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(...
|
|
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(...ce.value.positive), r = Math.min(...ce.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) ? bt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : ft(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
196
196
|
return l.ticks.map((c) => ({
|
|
197
197
|
zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
198
198
|
y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -209,24 +209,24 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
209
209
|
start: h.value.start,
|
|
210
210
|
end: h.value.end
|
|
211
211
|
})), k = w(() => {
|
|
212
|
-
if (!
|
|
212
|
+
if (!Q.value) return [];
|
|
213
213
|
let a = Array(D.value).fill(0), r = Array(D.value).fill(0), t = Array(D.value).fill(0), l = Array(D.value).fill(0);
|
|
214
|
-
const c = Math.max(...
|
|
214
|
+
const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.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) ? 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) : ft(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, ge = o.value.width, nt = P.value[0] ? P.value[0].zero : o.value.bottom, ut = P.value[0] ? P.value[0].horizontal_zero : o.value.left;
|
|
215
215
|
return U.value.filter((se) => !S.value.includes(se.id)).map((se) => {
|
|
216
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
217
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
218
218
|
let X, I;
|
|
219
|
-
return m > 0 ? (I = M * N, X =
|
|
219
|
+
return m > 0 ? (I = M * N, X = nt - I - a[x], a[x] += I) : (I = M * N, X = nt + t[x], t[x] += Math.abs(I)), X;
|
|
220
220
|
}), Xt = O.map((m, x) => {
|
|
221
221
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
222
222
|
let X, I;
|
|
223
|
-
return m > 0 ? (I =
|
|
223
|
+
return m > 0 ? (I = ge * N, X = ut + r[x], r[x] += I) : (I = ge * N, X = ut - Math.abs(I) - l[x], l[x] += Math.abs(I)), X;
|
|
224
224
|
}), Gt = O.map((m, x) => {
|
|
225
225
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
226
226
|
return m > 0 ? M * N : M * Math.abs(N);
|
|
227
227
|
}), Jt = O.map((m, x) => {
|
|
228
228
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
229
|
-
return m > 0 ?
|
|
229
|
+
return m > 0 ? ge * N : ge * Math.abs(N);
|
|
230
230
|
}), qt = O.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
|
|
231
231
|
return {
|
|
232
232
|
...se,
|
|
@@ -241,16 +241,16 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
241
241
|
horizontal_x: Xt
|
|
242
242
|
};
|
|
243
243
|
});
|
|
244
|
-
}),
|
|
244
|
+
}), Ze = w(() => Vt.value.map((a, r) => ({
|
|
245
245
|
value: a,
|
|
246
246
|
sign: a >= 0 ? 1 : -1
|
|
247
247
|
})));
|
|
248
|
-
function
|
|
248
|
+
function he(a, r, t, l, c) {
|
|
249
249
|
const u = c === -1 && a >= 0 ? -a : a;
|
|
250
250
|
return ke(
|
|
251
251
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
252
252
|
u,
|
|
253
|
-
|
|
253
|
+
K({
|
|
254
254
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
255
255
|
v: u,
|
|
256
256
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -259,11 +259,11 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
259
259
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Ke(a, r, t, l) {
|
|
263
263
|
return ke(
|
|
264
264
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
265
265
|
a,
|
|
266
|
-
|
|
266
|
+
K({
|
|
267
267
|
v: isNaN(a) ? 0 : a,
|
|
268
268
|
s: "%",
|
|
269
269
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
@@ -271,7 +271,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
271
271
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Qe(a) {
|
|
275
275
|
const r = JSON.parse(JSON.stringify(k.value)).map((t) => ({
|
|
276
276
|
name: t.name,
|
|
277
277
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -281,8 +281,8 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
281
281
|
}));
|
|
282
282
|
ze("selectDatapoint", { datapoint: r, period: $.value[a] });
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
ae.value = a,
|
|
284
|
+
function je(a) {
|
|
285
|
+
ae.value = a, ie.value = !0;
|
|
286
286
|
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((c) => ({
|
|
287
287
|
name: c.name,
|
|
288
288
|
absoluteIndex: c.absoluteIndex,
|
|
@@ -298,7 +298,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
298
298
|
series: k.value
|
|
299
299
|
};
|
|
300
300
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
301
|
-
if (
|
|
301
|
+
if (pt(r) && va(() => r({
|
|
302
302
|
seriesIndex: a,
|
|
303
303
|
datapoint: t,
|
|
304
304
|
series: k.value,
|
|
@@ -327,13 +327,13 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
327
327
|
t.reverse().forEach((M) => {
|
|
328
328
|
re += `
|
|
329
329
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
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}"/>${
|
|
331
|
-
${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}"/>${Nt.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 ? K({
|
|
332
332
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
333
333
|
v: M.value,
|
|
334
334
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
335
335
|
r: B
|
|
336
|
-
}) : ""} ${Y[0]}${u ?
|
|
336
|
+
}) : ""} ${Y[0]}${u ? K({
|
|
337
337
|
v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
|
|
338
338
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
339
339
|
s: "%",
|
|
@@ -344,22 +344,22 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
344
344
|
}), Ce.value = `<div>${re}</div>`;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
|
|
347
|
+
function et(a) {
|
|
348
|
+
ne.value = a, Te.value += 1;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function tt() {
|
|
351
351
|
L.value.showTable = !L.value.showTable;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function at() {
|
|
354
354
|
L.value.dataLabels.show = !L.value.dataLabels.show;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function lt() {
|
|
357
357
|
L.value.showTooltip = !L.value.showTooltip;
|
|
358
358
|
}
|
|
359
359
|
function At() {
|
|
360
360
|
return k.value;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const rt = w(() => {
|
|
363
363
|
if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
364
364
|
const a = k.value.map(({ name: t, color: l }) => ({
|
|
365
365
|
label: t,
|
|
@@ -372,11 +372,11 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
372
372
|
}), r.push(l);
|
|
373
373
|
}), { head: a, body: r };
|
|
374
374
|
});
|
|
375
|
-
function
|
|
376
|
-
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
375
|
+
function st(a = null) {
|
|
376
|
+
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...rt.value.head.map((C) => C.label)], l = rt.value.body, c = r.concat([t]).concat(l), u = ca(c);
|
|
377
377
|
a ? a(u) : ha({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
378
378
|
}
|
|
379
|
-
const
|
|
379
|
+
const ve = w(() => {
|
|
380
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>');
|
|
381
381
|
let r = [];
|
|
382
382
|
for (let c = 0; c < D.value; c += 1) {
|
|
@@ -406,7 +406,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
406
406
|
S.value.push(r.id);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const ot = w(() => U.value.map((a, r) => ({
|
|
410
410
|
...a,
|
|
411
411
|
shape: "square"
|
|
412
412
|
})).map((a) => ({
|
|
@@ -421,11 +421,11 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
421
421
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
422
422
|
paddingBottom: 12,
|
|
423
423
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
424
|
-
})),
|
|
424
|
+
})), de = p(!1);
|
|
425
425
|
function $e() {
|
|
426
|
-
|
|
426
|
+
de.value = !de.value;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function ye(a, r) {
|
|
429
429
|
const t = JSON.parse(JSON.stringify(k.value)).map((l) => ({
|
|
430
430
|
name: l.name,
|
|
431
431
|
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
@@ -440,8 +440,8 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
const Ft = w(() => Math.max(...k.value.flatMap((a) => a.series)));
|
|
443
|
-
function
|
|
444
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
443
|
+
function it(a, r) {
|
|
444
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? He.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : He.value ? (Ee.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) : Ee.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
445
445
|
}
|
|
446
446
|
async function Et({ scale: a = 2 } = {}) {
|
|
447
447
|
if (!R.value) return;
|
|
@@ -455,32 +455,32 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
455
455
|
aspectRatio: l
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
return
|
|
458
|
+
return kt({
|
|
459
459
|
getData: At,
|
|
460
460
|
getImage: Et,
|
|
461
|
-
generatePdf:
|
|
462
|
-
generateCsv:
|
|
463
|
-
generateImage:
|
|
464
|
-
toggleTable:
|
|
465
|
-
toggleLabels:
|
|
466
|
-
toggleTooltip:
|
|
461
|
+
generatePdf: Ye,
|
|
462
|
+
generateCsv: st,
|
|
463
|
+
generateImage: Xe,
|
|
464
|
+
toggleTable: tt,
|
|
465
|
+
toggleLabels: at,
|
|
466
|
+
toggleTooltip: lt,
|
|
467
467
|
toggleAnnotator: $e,
|
|
468
|
-
toggleFullscreen:
|
|
468
|
+
toggleFullscreen: et
|
|
469
469
|
}), (a, r) => (s(), n("div", {
|
|
470
470
|
id: `stackbar_${V.value}`,
|
|
471
471
|
ref_key: "stackbarChart",
|
|
472
472
|
ref: R,
|
|
473
|
-
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen":
|
|
473
|
+
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
474
474
|
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%" : ""}`),
|
|
475
|
-
onMouseenter: r[6] || (r[6] = () => y(
|
|
476
|
-
onMouseleave: r[7] || (r[7] = () => y(
|
|
475
|
+
onMouseenter: r[6] || (r[6] = () => y(Ae)(!0)),
|
|
476
|
+
onMouseleave: r[7] || (r[7] = () => y(Ae)(!1))
|
|
477
477
|
}, [
|
|
478
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
478
|
+
e.value.userOptions.buttons.annotator ? (s(), q(y(_t), {
|
|
479
479
|
key: 0,
|
|
480
|
-
svgRef: y(
|
|
480
|
+
svgRef: y(De),
|
|
481
481
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
482
482
|
color: e.value.style.chart.color,
|
|
483
|
-
active:
|
|
483
|
+
active: de.value,
|
|
484
484
|
onClose: $e
|
|
485
485
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
486
486
|
z(a.$slots, "userConfig", {}, void 0, !0),
|
|
@@ -490,7 +490,8 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
490
490
|
ref: Ne,
|
|
491
491
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
492
492
|
}, [
|
|
493
|
-
|
|
493
|
+
(s(), q(xa, {
|
|
494
|
+
key: `title_${Ve.value}`,
|
|
494
495
|
config: {
|
|
495
496
|
title: {
|
|
496
497
|
cy: "stackbar-title",
|
|
@@ -501,15 +502,15 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
501
502
|
...e.value.style.chart.title.subtitle
|
|
502
503
|
}
|
|
503
504
|
}
|
|
504
|
-
}, null, 8, ["config"])
|
|
505
|
+
}, null, 8, ["config"]))
|
|
505
506
|
], 512)) : g("", !0),
|
|
506
|
-
e.value.userOptions.show &&
|
|
507
|
+
e.value.userOptions.show && Q.value && (y(Ue) || y(_e)) ? (s(), q(y(Mt), {
|
|
507
508
|
ref: "details",
|
|
508
509
|
key: `user_option_${Te.value}`,
|
|
509
510
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
510
511
|
color: e.value.style.chart.color,
|
|
511
|
-
isPrinting: y(
|
|
512
|
-
isImaging: y(
|
|
512
|
+
isPrinting: y(Be),
|
|
513
|
+
isImaging: y(We),
|
|
513
514
|
uid: V.value,
|
|
514
515
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
515
516
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -518,27 +519,27 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
518
519
|
hasTable: e.value.userOptions.buttons.table,
|
|
519
520
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
520
521
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
521
|
-
isFullscreen:
|
|
522
|
+
isFullscreen: ne.value,
|
|
522
523
|
chartElement: R.value,
|
|
523
524
|
position: e.value.userOptions.position,
|
|
524
525
|
isTooltip: L.value.showTooltip,
|
|
525
526
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
526
527
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
527
|
-
isAnnotation:
|
|
528
|
+
isAnnotation: de.value,
|
|
528
529
|
callbacks: e.value.userOptions.callbacks,
|
|
529
530
|
printScale: e.value.userOptions.print.scale,
|
|
530
|
-
onToggleFullscreen:
|
|
531
|
-
onGeneratePdf: y(
|
|
532
|
-
onGenerateCsv:
|
|
533
|
-
onGenerateImage: y(
|
|
534
|
-
onToggleTable:
|
|
535
|
-
onToggleLabels:
|
|
536
|
-
onToggleTooltip:
|
|
531
|
+
onToggleFullscreen: et,
|
|
532
|
+
onGeneratePdf: y(Ye),
|
|
533
|
+
onGenerateCsv: st,
|
|
534
|
+
onGenerateImage: y(Xe),
|
|
535
|
+
onToggleTable: tt,
|
|
536
|
+
onToggleLabels: at,
|
|
537
|
+
onToggleTooltip: lt,
|
|
537
538
|
onToggleAnnotator: $e,
|
|
538
539
|
style: J({
|
|
539
|
-
visibility: y(
|
|
540
|
+
visibility: y(Ue) ? y(_e) ? "visible" : "hidden" : "visible"
|
|
540
541
|
})
|
|
541
|
-
},
|
|
542
|
+
}, dt({ _: 2 }, [
|
|
542
543
|
a.$slots.menuIcon ? {
|
|
543
544
|
name: "menuIcon",
|
|
544
545
|
fn: _(({ isOpen: t, color: l }) => [
|
|
@@ -603,15 +604,15 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
603
604
|
key: "8"
|
|
604
605
|
} : void 0
|
|
605
606
|
]), 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),
|
|
606
|
-
|
|
607
|
+
Q.value ? (s(), n("svg", {
|
|
607
608
|
key: 3,
|
|
608
609
|
ref_key: "svgRef",
|
|
609
|
-
ref:
|
|
610
|
+
ref: De,
|
|
610
611
|
xmlns: y(oa),
|
|
611
612
|
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
612
613
|
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
613
614
|
}, [
|
|
614
|
-
|
|
615
|
+
fe(y(Ct)),
|
|
615
616
|
a.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
616
617
|
key: 0,
|
|
617
618
|
x: o.value.left,
|
|
@@ -632,15 +633,15 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
632
633
|
x2: "0%",
|
|
633
634
|
y2: "100%"
|
|
634
635
|
}, [
|
|
635
|
-
|
|
636
|
+
Z("stop", {
|
|
636
637
|
offset: "0%",
|
|
637
638
|
"stop-color": t.color
|
|
638
639
|
}, null, 8, Ta),
|
|
639
|
-
|
|
640
|
+
Z("stop", {
|
|
640
641
|
offset: "61.8%",
|
|
641
642
|
"stop-color": y(ia)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
642
643
|
}, null, 8, Na),
|
|
643
|
-
|
|
644
|
+
Z("stop", {
|
|
644
645
|
offset: "100%",
|
|
645
646
|
"stop-color": t.color
|
|
646
647
|
}, null, 8, Ia)
|
|
@@ -792,19 +793,19 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
792
793
|
L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
|
|
793
794
|
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
794
795
|
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
|
|
795
|
-
|
|
796
|
+
it(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
796
797
|
key: 0,
|
|
797
798
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
798
799
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
799
800
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
800
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
801
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(mt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
801
802
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
802
803
|
"text-anchor": "middle"
|
|
803
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
804
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ke(t.proportions[u] * 100, t, l, u) : he(t.series[u], t, l, u, t.signedSeries[u])), 9, Ja)) : g("", !0)
|
|
804
805
|
], 64))), 256))
|
|
805
806
|
]))), 256)),
|
|
806
807
|
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", qa, [
|
|
807
|
-
(s(!0), n(v, null, f(
|
|
808
|
+
(s(!0), n(v, null, f(Ze.value, (t, l) => (s(), n(v, null, [
|
|
808
809
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
809
810
|
key: 0,
|
|
810
811
|
x: o.value.left + d.value * l + d.value / 2,
|
|
@@ -813,26 +814,26 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
813
814
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
814
815
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
815
816
|
fill: e.value.style.chart.bars.totalValues.color
|
|
816
|
-
}, T(
|
|
817
|
+
}, T(he(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
|
|
817
818
|
], 64))), 256))
|
|
818
819
|
])) : g("", !0)
|
|
819
820
|
], 64)) : g("", !0),
|
|
820
821
|
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
|
|
821
822
|
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
822
823
|
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
|
|
823
|
-
|
|
824
|
+
it(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
824
825
|
key: 0,
|
|
825
826
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
826
827
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
827
828
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
828
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
829
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(mt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
829
830
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
830
831
|
"text-anchor": "middle"
|
|
831
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
832
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ke(t.proportions[u] * 100, t, l, u) : he(t.series[u], t, l, u, t.signedSeries[u])), 9, Ka)) : g("", !0)
|
|
832
833
|
], 64))), 256))
|
|
833
834
|
]))), 256)),
|
|
834
835
|
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Qa, [
|
|
835
|
-
(s(!0), n(v, null, f(
|
|
836
|
+
(s(!0), n(v, null, f(Ze.value, (t, l) => (s(), n(v, null, [
|
|
836
837
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
837
838
|
key: 0,
|
|
838
839
|
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
@@ -841,7 +842,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
841
842
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
842
843
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
843
844
|
fill: e.value.style.chart.bars.totalValues.color
|
|
844
|
-
}, T(
|
|
845
|
+
}, T(he(t.value, t, l, t.sign)), 9, ja)) : g("", !0)
|
|
845
846
|
], 64))), 256))
|
|
846
847
|
])) : g("", !0)
|
|
847
848
|
], 64)) : g("", !0),
|
|
@@ -864,7 +865,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
864
865
|
}, T(y(ke)(
|
|
865
866
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
866
867
|
t.value,
|
|
867
|
-
y(
|
|
868
|
+
y(K)({
|
|
868
869
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
869
870
|
v: t.value,
|
|
870
871
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -892,7 +893,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
892
893
|
}, T(y(ke)(
|
|
893
894
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
894
895
|
t.value,
|
|
895
|
-
y(
|
|
896
|
+
y(K)({
|
|
896
897
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
897
898
|
v: t.value,
|
|
898
899
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -939,7 +940,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
939
940
|
x: 0,
|
|
940
941
|
y: 0
|
|
941
942
|
}),
|
|
942
|
-
onClick: () =>
|
|
943
|
+
onClick: () => ye(t, l)
|
|
943
944
|
}, null, 8, il)) : (s(), n("text", {
|
|
944
945
|
key: l,
|
|
945
946
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -948,7 +949,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
948
949
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
949
950
|
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})`,
|
|
950
951
|
style: { cursor: "pointer" },
|
|
951
|
-
onClick: () =>
|
|
952
|
+
onClick: () => ye(t, l)
|
|
952
953
|
}, T(t.text), 9, ol))
|
|
953
954
|
]))), 256))
|
|
954
955
|
]))
|
|
@@ -980,7 +981,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
980
981
|
x: o.value.left - 8,
|
|
981
982
|
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
982
983
|
style: { cursor: "pointer" },
|
|
983
|
-
onClick: () =>
|
|
984
|
+
onClick: () => ye(t, l),
|
|
984
985
|
innerHTML: y(ua)({
|
|
985
986
|
content: String(t.text),
|
|
986
987
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -999,7 +1000,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
999
1000
|
style: {
|
|
1000
1001
|
cursor: "pointer"
|
|
1001
1002
|
},
|
|
1002
|
-
onClick: () =>
|
|
1003
|
+
onClick: () => ye(t, l)
|
|
1003
1004
|
}, T(t.text), 9, cl))
|
|
1004
1005
|
]))), 256))
|
|
1005
1006
|
]))
|
|
@@ -1009,10 +1010,10 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1009
1010
|
y: o.value.top,
|
|
1010
1011
|
width: d.value,
|
|
1011
1012
|
height: o.value.height < 0 ? 0 : o.value.height,
|
|
1012
|
-
onClick: (c) =>
|
|
1013
|
-
onMouseenter: (c) =>
|
|
1013
|
+
onClick: (c) => Qe(l),
|
|
1014
|
+
onMouseenter: (c) => je(l),
|
|
1014
1015
|
onMouseleave: r[0] || (r[0] = (c) => {
|
|
1015
|
-
ae.value = null,
|
|
1016
|
+
ae.value = null, ie.value = !1;
|
|
1016
1017
|
}),
|
|
1017
1018
|
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1018
1019
|
style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
@@ -1022,10 +1023,10 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1022
1023
|
y: o.value.top + l * d.value,
|
|
1023
1024
|
width: o.value.width < 0 ? 0 : o.value.width,
|
|
1024
1025
|
height: d.value,
|
|
1025
|
-
onClick: (c) =>
|
|
1026
|
-
onMouseenter: (c) =>
|
|
1026
|
+
onClick: (c) => Qe(l),
|
|
1027
|
+
onMouseenter: (c) => je(l),
|
|
1027
1028
|
onMouseleave: r[1] || (r[1] = (c) => {
|
|
1028
|
-
ae.value = null,
|
|
1029
|
+
ae.value = null, ie.value = !1;
|
|
1029
1030
|
}),
|
|
1030
1031
|
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1031
1032
|
style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
@@ -1033,9 +1034,9 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1033
1034
|
z(a.$slots, "svg", F(E({ ...o.value })), void 0, !0)
|
|
1034
1035
|
], 12, _a)) : g("", !0),
|
|
1035
1036
|
a.$slots.watermark ? (s(), n("div", yl, [
|
|
1036
|
-
z(a.$slots, "watermark", F(E({ isPrinting: y(
|
|
1037
|
+
z(a.$slots, "watermark", F(E({ isPrinting: y(Be) || y(We) })), void 0, !0)
|
|
1037
1038
|
])) : g("", !0),
|
|
1038
|
-
|
|
1039
|
+
Q.value ? g("", !0) : (s(), q(y(St), {
|
|
1039
1040
|
key: 5,
|
|
1040
1041
|
config: {
|
|
1041
1042
|
type: "bar",
|
|
@@ -1050,15 +1051,15 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1050
1051
|
}
|
|
1051
1052
|
}
|
|
1052
1053
|
}, null, 8, ["config"])),
|
|
1053
|
-
|
|
1054
|
+
Z("div", {
|
|
1054
1055
|
ref_key: "chartSlicer",
|
|
1055
1056
|
ref: Pe,
|
|
1056
1057
|
style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1057
1058
|
"data-dom-to-png-ignore": ""
|
|
1058
1059
|
}, [
|
|
1059
|
-
e.value.style.chart.zoom.show && D.value > 1 ? (s(),
|
|
1060
|
+
e.value.style.chart.zoom.show && D.value > 1 ? (s(), q(pa, {
|
|
1060
1061
|
ref_key: "slicerComponent",
|
|
1061
|
-
ref:
|
|
1062
|
+
ref: j,
|
|
1062
1063
|
key: `slicer_${Re.value}`,
|
|
1063
1064
|
background: e.value.style.chart.zoom.color,
|
|
1064
1065
|
borderColor: e.value.style.chart.backgroundColor,
|
|
@@ -1081,7 +1082,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1081
1082
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...we.dataset.map((t) => t.series.length)),
|
|
1082
1083
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1083
1084
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1084
|
-
onReset:
|
|
1085
|
+
onReset: Je
|
|
1085
1086
|
}, {
|
|
1086
1087
|
"reset-action": _(({ reset: t }) => [
|
|
1087
1088
|
z(a.$slots, "reset-action", F(E({ reset: t })), void 0, !0)
|
|
@@ -1089,8 +1090,8 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1089
1090
|
_: 3
|
|
1090
1091
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
|
|
1091
1092
|
], 4),
|
|
1092
|
-
|
|
1093
|
-
show: L.value.showTooltip &&
|
|
1093
|
+
fe(y($t), {
|
|
1094
|
+
show: L.value.showTooltip && ie.value,
|
|
1094
1095
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1095
1096
|
color: e.value.style.chart.tooltip.color,
|
|
1096
1097
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1102,8 +1103,8 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1102
1103
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1103
1104
|
parent: R.value,
|
|
1104
1105
|
content: Ce.value,
|
|
1105
|
-
isFullscreen:
|
|
1106
|
-
isCustom: y(
|
|
1106
|
+
isFullscreen: ne.value,
|
|
1107
|
+
isCustom: y(pt)(e.value.style.chart.tooltip.customFormat)
|
|
1107
1108
|
}, {
|
|
1108
1109
|
"tooltip-before": _(() => [
|
|
1109
1110
|
z(a.$slots, "tooltip-before", F(E({ ...Le.value })), void 0, !0)
|
|
@@ -1113,18 +1114,18 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1113
1114
|
]),
|
|
1114
1115
|
_: 3
|
|
1115
1116
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1116
|
-
|
|
1117
|
+
Z("div", {
|
|
1117
1118
|
ref_key: "chartLegend",
|
|
1118
1119
|
ref: Ie
|
|
1119
1120
|
}, [
|
|
1120
|
-
e.value.style.chart.legend.show &&
|
|
1121
|
+
e.value.style.chart.legend.show && Q.value ? (s(), q(ma, {
|
|
1121
1122
|
key: 0,
|
|
1122
|
-
legendSet:
|
|
1123
|
+
legendSet: ot.value,
|
|
1123
1124
|
config: Dt.value,
|
|
1124
1125
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1125
|
-
},
|
|
1126
|
+
}, dt({
|
|
1126
1127
|
item: _(({ legend: t }) => [
|
|
1127
|
-
|
|
1128
|
+
Z("div", {
|
|
1128
1129
|
onClick: (l) => t.segregate(),
|
|
1129
1130
|
style: J(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1130
1131
|
}, T(t.name), 13, gl)
|
|
@@ -1134,7 +1135,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1134
1135
|
a.$slots.pattern ? {
|
|
1135
1136
|
name: "legend-pattern",
|
|
1136
1137
|
fn: _(({ legend: t, index: l }) => [
|
|
1137
|
-
|
|
1138
|
+
fe(ka, {
|
|
1138
1139
|
shape: t.shape,
|
|
1139
1140
|
radius: 30,
|
|
1140
1141
|
stroke: "none",
|
|
@@ -1146,7 +1147,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1146
1147
|
} : void 0
|
|
1147
1148
|
]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
|
|
1148
1149
|
key: 1,
|
|
1149
|
-
legend:
|
|
1150
|
+
legend: ot.value
|
|
1150
1151
|
}, void 0, !0)
|
|
1151
1152
|
], 512),
|
|
1152
1153
|
a.$slots.source ? (s(), n("div", {
|
|
@@ -1157,7 +1158,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1157
1158
|
}, [
|
|
1158
1159
|
z(a.$slots, "source", {}, void 0, !0)
|
|
1159
1160
|
], 512)) : g("", !0),
|
|
1160
|
-
h.value.end - h.value.start < 200 ? (s(),
|
|
1161
|
+
h.value.end - h.value.start < 200 ? (s(), q(y(zt), {
|
|
1161
1162
|
key: 7,
|
|
1162
1163
|
hideDetails: "",
|
|
1163
1164
|
config: {
|
|
@@ -1174,19 +1175,19 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1174
1175
|
}
|
|
1175
1176
|
}, {
|
|
1176
1177
|
content: _(() => [
|
|
1177
|
-
|
|
1178
|
-
colNames:
|
|
1179
|
-
head:
|
|
1180
|
-
body:
|
|
1181
|
-
config:
|
|
1178
|
+
fe(y(Lt), {
|
|
1179
|
+
colNames: ve.value.colNames,
|
|
1180
|
+
head: ve.value.head,
|
|
1181
|
+
body: ve.value.body,
|
|
1182
|
+
config: ve.value.config,
|
|
1182
1183
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1183
1184
|
onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
|
|
1184
1185
|
}, {
|
|
1185
1186
|
th: _(({ th: t }) => [
|
|
1186
|
-
|
|
1187
|
+
Z("div", { innerHTML: t }, null, 8, bl)
|
|
1187
1188
|
]),
|
|
1188
1189
|
td: _(({ td: t }) => [
|
|
1189
|
-
Qt(T(isNaN(Number(t)) ? t : y(
|
|
1190
|
+
Qt(T(isNaN(Number(t)) ? t : y(K)({
|
|
1190
1191
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1191
1192
|
v: t,
|
|
1192
1193
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1200,7 +1201,7 @@ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"]
|
|
|
1200
1201
|
}, 8, ["config"])) : g("", !0)
|
|
1201
1202
|
], 46, Ca));
|
|
1202
1203
|
}
|
|
1203
|
-
}, Il = /* @__PURE__ */ La(fl, [["__scopeId", "data-v-
|
|
1204
|
+
}, Il = /* @__PURE__ */ La(fl, [["__scopeId", "data-v-95413bca"]]);
|
|
1204
1205
|
export {
|
|
1205
1206
|
Il as default
|
|
1206
1207
|
};
|