vue-data-ui 2.12.7-beta.0 → 2.12.7-beta.1
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-CmqjRRUl.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-CKbomZCX.js} +2 -2
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-F4TctKaQ.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-Y5HbiUZU.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-DtTYopxf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-PC9Yu1K_.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-DaWGaZxE.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-C-CpE0NC.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-B6kIkp2s.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-DcdMxgqn.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-Bc66VstS.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B07vY6jm.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-C8X2STEg.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-BHEd2dgu.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-C8URL2IU.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-CriyJ0Da.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BwgozppD.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-C20X1YRt.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-B264jwvu.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-ECSEPy9m.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-BxjeL4B6.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-CJNnQbPC.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-0RLVrL7y.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-BIFf4SLq.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-mc_-1JSs.js} +7 -7
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-D50S44wU.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-CxDTjjYn.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-DeC0U017.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-n0MW2u-q.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-AYMCSEtU.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-Ckz1h7XW.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-m0SgFsTu.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-BrcF_YLL.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-DiVxDYiV.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-BCUC8QED.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-DrrjD9S1.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-8RTss1yH.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-CmPLnisN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-CdM3bVZs.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-C-lgCI6O.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-Dq94lb99.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-DsKddA_I.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-CVR7NvJ_.js} +116 -115
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-B0soMLZ5.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-Bq4_NUfW.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-CG3Pn3Zg.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend--6lA4742.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-BXx7Vglf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-zM4_Tgqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BDNrZbWN.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-CzzyDmYJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-tBSUQ_09.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-BriZOfj6.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-DzYyFp3o.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-COKfg2KT.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D7C5AiCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-CDG6vSMm.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-DOoO0CVB.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-BSPIy1A3.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DsMmxgin.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-B2_ZHuyv.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-YhkwHcUX.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-CWHJwyyL.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BLgEqHRF.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-BQelvSLD.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-D1luVUXJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-C7Pu9RFN.js} +7 -7
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as gt } from "./useNestedProp-
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
1
|
+
import { defineAsyncComponent as Y, useSlots as Yt, computed as w, ref as m, onMounted as rt, watch as ot, shallowRef as st, onBeforeUnmount as Xt, nextTick as ye, createElementBlock as s, openBlock as o, unref as y, normalizeStyle as X, normalizeClass as re, createBlock as Q, createCommentVNode as h, renderSlot as x, createElementVNode as G, createVNode as oe, createSlots as it, withCtx as C, normalizeProps as E, guardReactiveProps as F, Fragment as v, renderList as g, mergeProps as Le, toDisplayString as $, createTextVNode as Gt } from "vue";
|
|
2
|
+
import { u as Jt, c as nt, t as qt, p as ge, a as Zt, C as be, b as Kt, o as Qt, e as ut, g as jt, d as ea, ak as fe, ah as ct, D as vt, X as ta, l as aa, a6 as me, G as ht, f as J, x as dt, q as la, r as ra, i as yt, y as oa } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { u as gt } from "./useNestedProp-CZztHZIm.js";
|
|
4
|
+
import { t as sa, u as ia } from "./useResponsive-JZ9xq-JV.js";
|
|
5
|
+
import { u as na } from "./usePrinter-C8URL2IU.js";
|
|
6
|
+
import { u as ua } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ca } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import va from "./Legend-DtTYopxf.js";
|
|
9
|
+
import { S as ha } from "./Slicer-DXpA-pZk.js";
|
|
10
|
+
import da from "./Title-Bc66VstS.js";
|
|
11
|
+
import ya from "./Shape-B6kIkp2s.js";
|
|
11
12
|
import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
13
|
const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"], pa = { key: 1 }, xa = ["id"], ka = ["stop-color"], wa = ["stop-color"], za = ["stop-color"], Ca = ["x1", "x2", "y1", "y2", "stroke"], _a = ["x1", "x2", "y1", "y2", "stroke"], La = ["x1", "x2", "y1", "y2", "stroke"], Sa = ["x1", "x2", "y1", "y2", "stroke"], $a = { key: 0 }, Ma = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ta = { key: 0 }, Na = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ia = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Oa = { key: 0 }, Ra = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Va = ["x", "y", "font-size", "fill", "font-weight"], Ea = ["transform", "font-size", "fill", "font-weight"], Fa = ["x", "y", "font-size", "fill", "font-weight"], Da = { key: 0 }, Ha = ["x", "y", "font-size", "font-weight", "fill"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ba = { key: 0 }, Ua = ["x", "y", "font-size", "font-weight", "fill"], Ya = ["x1", "x2", "y1", "y2", "stroke"], Xa = ["x", "y", "font-size", "font-weight", "fill"], Ga = ["x1", "x2", "y1", "y2", "stroke"], Ja = ["font-size", "font-weight", "fill", "text-anchor", "transform"], qa = { key: 0 }, Za = { key: 1 }, Ka = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Qa = { key: 0 }, ja = { key: 1 }, el = ["font-size", "font-weight", "fill", "x", "y", "onClick"], tl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], al = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ll = {
|
|
13
14
|
key: 4,
|
|
@@ -30,37 +31,37 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
30
31
|
},
|
|
31
32
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
32
33
|
setup(pe, { expose: bt, emit: ft }) {
|
|
33
|
-
const mt =
|
|
34
|
+
const mt = Y(() => import("./vue-ui-accordion-DntThSTF.js")), pt = Y(() => import("./DataTable-Y5HbiUZU.js")), xt = Y(() => import("./PackageVersion-DaWGaZxE.js")), kt = Y(() => import("./PenAndPaper-C-CpE0NC.js")), wt = Y(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), zt = Y(() => import("./Tooltip-B07vY6jm.js")), Ct = Y(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_stackbar: _t } = Jt(), Lt = Yt(), b = pe, xe = ft, q = w({
|
|
34
35
|
get() {
|
|
35
36
|
return !!b.dataset && b.dataset.length;
|
|
36
37
|
},
|
|
37
38
|
set(a) {
|
|
38
39
|
return a;
|
|
39
40
|
}
|
|
40
|
-
}), j = m(null), O = m(nt()), se = m(!1), ke = m(null), we = m(""), L = m([]), Se = m(0), $e = m(null), Me = m(null), Te = m(null), Ne = m(null), Ie = m(0), ie = m(!1), ee = m(null),
|
|
41
|
+
}), j = m(null), O = m(nt()), se = m(!1), ke = m(null), we = m(""), L = m([]), Se = m(0), $e = m(null), Me = m(null), Te = m(null), Ne = m(null), Ie = m(0), ie = m(!1), ee = m(null), D = m(!1), St = m(0), $t = m(0), Mt = m(0), Z = m(null);
|
|
41
42
|
rt(() => {
|
|
42
43
|
Ce();
|
|
43
44
|
});
|
|
44
45
|
const e = w({
|
|
45
46
|
get: () => Ae(),
|
|
46
47
|
set: (a) => a
|
|
47
|
-
}), { userOptionsVisible: ze, setUserOptionsVisibility: Oe, keepUserOptionState: Re } =
|
|
48
|
+
}), { userOptionsVisible: ze, setUserOptionsVisibility: Oe, keepUserOptionState: Re } = ua({ config: e.value }), { svgRef: Pe } = ca({ config: e.value.style.chart.title });
|
|
48
49
|
function Ae() {
|
|
49
50
|
const a = gt({
|
|
50
51
|
userConfig: b.config,
|
|
51
|
-
defaultConfig:
|
|
52
|
+
defaultConfig: _t
|
|
52
53
|
});
|
|
53
54
|
let r = {};
|
|
54
55
|
return a.theme ? r = {
|
|
55
56
|
...gt({
|
|
56
|
-
userConfig:
|
|
57
|
+
userConfig: Zt.vue_ui_stackbar[a.theme] || b.config,
|
|
57
58
|
defaultConfig: a
|
|
58
59
|
}),
|
|
59
|
-
customPalette:
|
|
60
|
+
customPalette: qt[a.theme] || ge
|
|
60
61
|
} : r = a, b.config && be(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 && be(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 && be(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 && be(b.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
|
|
61
62
|
}
|
|
62
63
|
ot(() => b.config, (a) => {
|
|
63
|
-
e.value = Ae(), ze.value = !e.value.userOptions.showOnChartHover, Ce(),
|
|
64
|
+
e.value = Ae(), ze.value = !e.value.userOptions.showOnChartHover, Ce(), St.value += 1, $t.value += 1, Mt.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
64
65
|
}, { deep: !0 }), ot(() => b.dataset, (a) => {
|
|
65
66
|
We();
|
|
66
67
|
}, { deep: !0 });
|
|
@@ -70,7 +71,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
70
71
|
},
|
|
71
72
|
showTable: e.value.table.show,
|
|
72
73
|
showTooltip: e.value.style.chart.tooltip.show
|
|
73
|
-
}), { isPrinting: Ve, isImaging: Ee, generatePdf: Fe, generateImage: De } =
|
|
74
|
+
}), { isPrinting: Ve, isImaging: Ee, generatePdf: Fe, generateImage: De } = na({
|
|
74
75
|
elementId: `stackbar_${O.value}`,
|
|
75
76
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
76
77
|
options: e.value.userOptions.print
|
|
@@ -83,16 +84,16 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
83
84
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
84
85
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
85
86
|
}
|
|
86
|
-
}),
|
|
87
|
+
}), Tt = w(() => Kt(e.value.customPalette)), R = st(null), K = st(null), He = m(null);
|
|
87
88
|
rt(() => {
|
|
88
89
|
Ce();
|
|
89
90
|
});
|
|
90
91
|
function Ce() {
|
|
91
|
-
if (
|
|
92
|
+
if (Qt(b.dataset) ? ut({
|
|
92
93
|
componentName: "VueUiStackbar",
|
|
93
94
|
type: "dataset"
|
|
94
95
|
}) : b.dataset.forEach((a, r) => {
|
|
95
|
-
|
|
96
|
+
jt({
|
|
96
97
|
datasetObject: a,
|
|
97
98
|
requiredAttributes: ["name", "series"]
|
|
98
99
|
}).forEach((t) => {
|
|
@@ -104,11 +105,11 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
104
105
|
});
|
|
105
106
|
});
|
|
106
107
|
}), setTimeout(() => {
|
|
107
|
-
|
|
108
|
+
D.value = !0;
|
|
108
109
|
}, 10), e.value.responsive) {
|
|
109
|
-
const a =
|
|
110
|
-
|
|
111
|
-
const { width: r, height: t } =
|
|
110
|
+
const a = sa(() => {
|
|
111
|
+
D.value = !1;
|
|
112
|
+
const { width: r, height: t } = ia({
|
|
112
113
|
chart: j.value,
|
|
113
114
|
title: e.value.style.chart.title.text ? $e.value : null,
|
|
114
115
|
legend: e.value.style.chart.legend.show ? Me.value : null,
|
|
@@ -117,7 +118,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
117
118
|
});
|
|
118
119
|
requestAnimationFrame(() => {
|
|
119
120
|
ne.value.width = r, ne.value.height = t, clearTimeout(He.value), He.value = setTimeout(() => {
|
|
120
|
-
|
|
121
|
+
D.value = !0;
|
|
121
122
|
}, 10);
|
|
122
123
|
});
|
|
123
124
|
});
|
|
@@ -125,11 +126,11 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
125
126
|
}
|
|
126
127
|
Be();
|
|
127
128
|
}
|
|
128
|
-
|
|
129
|
+
Xt(() => {
|
|
129
130
|
R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect());
|
|
130
131
|
});
|
|
131
132
|
const i = w(() => {
|
|
132
|
-
const { height: a, width: r } = ne.value, { right: t } = ne.value.paddingRatio, l = e.value.style.chart.padding.top, u = r - r * t, n = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left,
|
|
133
|
+
const { height: a, width: r } = ne.value, { right: t } = ne.value.paddingRatio, l = e.value.style.chart.padding.top, u = r - r * t, n = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, H = r - _ - r * t, W = a - l - e.value.style.chart.padding.bottom;
|
|
133
134
|
return {
|
|
134
135
|
chartHeight: a,
|
|
135
136
|
chartWidth: r,
|
|
@@ -137,11 +138,11 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
137
138
|
right: u,
|
|
138
139
|
bottom: n,
|
|
139
140
|
left: _,
|
|
140
|
-
width:
|
|
141
|
-
height:
|
|
141
|
+
width: H,
|
|
142
|
+
height: W < 0 ? 0 : W
|
|
142
143
|
};
|
|
143
144
|
}), P = w(() => b.dataset.map((a, r) => {
|
|
144
|
-
const t =
|
|
145
|
+
const t = ea(a.color) || Tt.value[r] || ge[r] || ge[r % ge.length];
|
|
145
146
|
return {
|
|
146
147
|
...a,
|
|
147
148
|
// In distributed mode, all values are converted to positive
|
|
@@ -160,19 +161,19 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
160
161
|
Be();
|
|
161
162
|
}
|
|
162
163
|
async function Be() {
|
|
163
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && Z.value ? (e.value.style.chart.zoom.startIndex !== null && (await ye(), await ye(), Z.value && Z.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ye(), await ye(), Z.value && Z.value.setEndValue(
|
|
164
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && Z.value ? (e.value.style.chart.zoom.startIndex !== null && (await ye(), await ye(), Z.value && Z.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ye(), await ye(), Z.value && Z.value.setEndValue(Nt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
|
|
164
165
|
start: 0,
|
|
165
166
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
166
167
|
}, Ie.value += 1);
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
+
function Nt(a) {
|
|
169
170
|
const r = Math.max(...b.dataset.map((t) => t.series.length));
|
|
170
171
|
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;
|
|
171
172
|
}
|
|
172
|
-
const
|
|
173
|
+
const d = w(() => {
|
|
173
174
|
let a;
|
|
174
175
|
return e.value.orientation === "vertical" ? a = i.value.width / (c.value.end - c.value.start) : a = i.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
175
|
-
}), te = w(() => fe(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)),
|
|
176
|
+
}), te = w(() => fe(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), It = w(() => fe(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
|
|
176
177
|
...a,
|
|
177
178
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
178
179
|
}))).slice(c.value.start, c.value.end)), ue = w(() => {
|
|
@@ -209,37 +210,37 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
209
210
|
}), k = w(() => {
|
|
210
211
|
if (!q.value) return [];
|
|
211
212
|
let a = Array(A.value).fill(0), r = Array(A.value).fill(0), t = Array(A.value).fill(0), l = Array(A.value).fill(0);
|
|
212
|
-
const u = Math.max(...ue.value.positive) || 0, n = Math.min(...ue.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n,
|
|
213
|
+
const u = Math.max(...ue.value.positive) || 0, n = Math.min(...ue.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, H = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ct(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks) : vt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks), { min: W, max: ae } = H, B = ae + (W >= 0 ? 0 : Math.abs(W)) || 1, S = i.value.height, de = i.value.width, at = N.value[0] ? N.value[0].zero : i.value.bottom, lt = N.value[0] ? N.value[0].horizontal_zero : i.value.left;
|
|
213
214
|
return P.value.filter((le) => !L.value.includes(le.id)).map((le) => {
|
|
214
|
-
const I = le.series.slice(c.value.start, c.value.end),
|
|
215
|
-
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) /
|
|
216
|
-
let
|
|
217
|
-
return f > 0 ? (T = S * M,
|
|
215
|
+
const I = le.series.slice(c.value.start, c.value.end), Vt = le.signedSeries.slice(c.value.start, c.value.end), Et = I.map((f, p) => i.value.left + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Ft = I.map((f, p) => i.value.top + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Dt = I.map((f, p) => {
|
|
216
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
|
|
217
|
+
let U, T;
|
|
218
|
+
return f > 0 ? (T = S * M, U = at - T - a[p], a[p] += T) : (T = S * M, U = at + t[p], t[p] += Math.abs(T)), U;
|
|
219
|
+
}), Ht = I.map((f, p) => {
|
|
220
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
|
|
221
|
+
let U, T;
|
|
222
|
+
return f > 0 ? (T = de * M, U = lt + r[p], r[p] += T) : (T = de * M, U = lt - Math.abs(T) - l[p], l[p] += Math.abs(T)), U;
|
|
218
223
|
}), Wt = I.map((f, p) => {
|
|
219
|
-
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) /
|
|
220
|
-
let Y, T;
|
|
221
|
-
return f > 0 ? (T = de * M, Y = lt + r[p], r[p] += T) : (T = de * M, Y = lt - Math.abs(T) - l[p], l[p] += Math.abs(T)), Y;
|
|
222
|
-
}), Bt = I.map((f, p) => {
|
|
223
|
-
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / U;
|
|
224
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
|
|
224
225
|
return f > 0 ? S * M : S * Math.abs(M);
|
|
225
|
-
}),
|
|
226
|
-
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) /
|
|
226
|
+
}), Bt = I.map((f, p) => {
|
|
227
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
|
|
227
228
|
return f > 0 ? de * M : de * Math.abs(M);
|
|
228
|
-
}),
|
|
229
|
+
}), Ut = I.map((f) => Math.abs(f)).reduce((f, p) => f + p, 0);
|
|
229
230
|
return {
|
|
230
231
|
...le,
|
|
231
|
-
proportions: I.map((f, p) => e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) /
|
|
232
|
+
proportions: I.map((f, p) => e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / Ut),
|
|
232
233
|
series: I,
|
|
233
|
-
signedSeries:
|
|
234
|
-
x:
|
|
235
|
-
y:
|
|
236
|
-
height:
|
|
237
|
-
horizontal_width:
|
|
238
|
-
horizontal_y:
|
|
239
|
-
horizontal_x:
|
|
234
|
+
signedSeries: Vt,
|
|
235
|
+
x: Et,
|
|
236
|
+
y: Dt,
|
|
237
|
+
height: Wt,
|
|
238
|
+
horizontal_width: Bt,
|
|
239
|
+
horizontal_y: Ft,
|
|
240
|
+
horizontal_x: Ht
|
|
240
241
|
};
|
|
241
242
|
});
|
|
242
|
-
}), Ue = w(() =>
|
|
243
|
+
}), Ue = w(() => It.value.map((a, r) => ({
|
|
243
244
|
value: a,
|
|
244
245
|
sign: a >= 0 ? 1 : -1
|
|
245
246
|
})));
|
|
@@ -296,7 +297,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
296
297
|
series: k.value
|
|
297
298
|
};
|
|
298
299
|
const l = t.map((u) => Math.abs(u.value)).reduce((u, n) => u + n, 0);
|
|
299
|
-
if (dt(r) &&
|
|
300
|
+
if (dt(r) && oa(() => r({
|
|
300
301
|
seriesIndex: a,
|
|
301
302
|
datapoint: t,
|
|
302
303
|
series: k.value,
|
|
@@ -313,36 +314,36 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
313
314
|
showValue: u,
|
|
314
315
|
showPercentage: n,
|
|
315
316
|
borderColor: _,
|
|
316
|
-
roundingValue:
|
|
317
|
-
roundingPercentage:
|
|
317
|
+
roundingValue: H,
|
|
318
|
+
roundingPercentage: W
|
|
318
319
|
} = e.value.style.chart.tooltip;
|
|
319
320
|
let ae = "";
|
|
320
321
|
V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (ae += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${V.value[a].text}</div>`);
|
|
321
|
-
const
|
|
322
|
+
const B = [
|
|
322
323
|
u && n ? "(" : "",
|
|
323
324
|
u && n ? ")" : ""
|
|
324
325
|
];
|
|
325
326
|
t.reverse().forEach((S) => {
|
|
326
327
|
ae += `
|
|
327
328
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
328
|
-
<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_${S.id})` : S.color}"/>${
|
|
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_${S.id})` : S.color}"/>${Lt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${O.value}_${S.absoluteIndex})"/>` : ""}</svg>
|
|
329
330
|
${S.name}${u || n ? ":" : ""} ${u ? J({
|
|
330
331
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
331
332
|
v: S.value,
|
|
332
333
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
333
|
-
r:
|
|
334
|
-
}) : ""} ${
|
|
334
|
+
r: H
|
|
335
|
+
}) : ""} ${B[0]}${n ? J({
|
|
335
336
|
v: isNaN(S.value / l) ? 0 : Math.abs(S.value) / l * 100,
|
|
336
337
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
337
338
|
s: "%",
|
|
338
|
-
r:
|
|
339
|
-
}) : ""}${
|
|
339
|
+
r: W
|
|
340
|
+
}) : ""}${B[1]}
|
|
340
341
|
</div>
|
|
341
342
|
`;
|
|
342
343
|
}), we.value = `<div>${ae}</div>`;
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
+
function Ot(a) {
|
|
346
347
|
ie.value = a, Se.value += 1;
|
|
347
348
|
}
|
|
348
349
|
function Je() {
|
|
@@ -354,7 +355,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
354
355
|
function Ze() {
|
|
355
356
|
z.value.showTooltip = !z.value.showTooltip;
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function Rt() {
|
|
358
359
|
return k.value;
|
|
359
360
|
}
|
|
360
361
|
const Ke = w(() => {
|
|
@@ -372,14 +373,14 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
372
373
|
return { head: a, body: r };
|
|
373
374
|
});
|
|
374
375
|
function Qe() {
|
|
375
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Ke.value.head.map((n) => n.label)], t = Ke.value.body, l = a.concat([r]).concat(t), u =
|
|
376
|
-
|
|
376
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Ke.value.head.map((n) => n.label)], t = Ke.value.body, l = a.concat([r]).concat(t), u = la(l);
|
|
377
|
+
ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
377
378
|
}
|
|
378
379
|
const ve = w(() => {
|
|
379
380
|
const a = [""].concat(k.value.map((u) => u.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
382
|
for (let u = 0; u < A.value; u += 1) {
|
|
382
|
-
const n = k.value.map((_) => _.series[u] ?? 0).reduce((_,
|
|
383
|
+
const n = k.value.map((_) => _.series[u] ?? 0).reduce((_, H) => _ + H, 0);
|
|
383
384
|
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[u] ?? u + 1].concat(k.value.map((_) => (_.series[u] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
384
385
|
}
|
|
385
386
|
const t = {
|
|
@@ -397,7 +398,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
397
398
|
}, l = [e.value.table.columnNames.period].concat(k.value.map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
398
399
|
return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
|
|
399
400
|
});
|
|
400
|
-
function
|
|
401
|
+
function Pt(a, r) {
|
|
401
402
|
if (xe("selectLegend", k.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
|
|
402
403
|
L.value = L.value.filter((t) => t !== r.id);
|
|
403
404
|
else {
|
|
@@ -411,9 +412,9 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
411
412
|
})).map((a) => ({
|
|
412
413
|
...a,
|
|
413
414
|
opacity: L.value.includes(a.id) ? 0.5 : 1,
|
|
414
|
-
segregate: () =>
|
|
415
|
+
segregate: () => Pt(a.absoluteIndex, a),
|
|
415
416
|
isSegregated: L.value.includes(a.id)
|
|
416
|
-
}))),
|
|
417
|
+
}))), At = w(() => ({
|
|
417
418
|
cy: "stackbar-legend",
|
|
418
419
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
419
420
|
color: e.value.style.chart.legend.color,
|
|
@@ -442,7 +443,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
442
443
|
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
443
444
|
}
|
|
444
445
|
return bt({
|
|
445
|
-
getData:
|
|
446
|
+
getData: Rt,
|
|
446
447
|
generatePdf: Fe,
|
|
447
448
|
generateCsv: Qe,
|
|
448
449
|
generateImage: De,
|
|
@@ -456,12 +457,12 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
456
457
|
ref: j,
|
|
457
458
|
class: re({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ie.value }),
|
|
458
459
|
style: X(`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%" : ""}`),
|
|
459
|
-
onMouseenter: r[6] || (r[6] = () =>
|
|
460
|
-
onMouseleave: r[7] || (r[7] = () =>
|
|
460
|
+
onMouseenter: r[6] || (r[6] = () => y(Oe)(!0)),
|
|
461
|
+
onMouseleave: r[7] || (r[7] = () => y(Oe)(!1))
|
|
461
462
|
}, [
|
|
462
|
-
e.value.userOptions.buttons.annotator ? (o(), Q(
|
|
463
|
+
e.value.userOptions.buttons.annotator ? (o(), Q(y(kt), {
|
|
463
464
|
key: 0,
|
|
464
|
-
svgRef:
|
|
465
|
+
svgRef: y(Pe),
|
|
465
466
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
466
467
|
color: e.value.style.chart.color,
|
|
467
468
|
active: he.value,
|
|
@@ -474,7 +475,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
474
475
|
ref: $e,
|
|
475
476
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
476
477
|
}, [
|
|
477
|
-
oe(
|
|
478
|
+
oe(da, {
|
|
478
479
|
config: {
|
|
479
480
|
title: {
|
|
480
481
|
cy: "stackbar-title",
|
|
@@ -487,13 +488,13 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
487
488
|
}
|
|
488
489
|
}, null, 8, ["config"])
|
|
489
490
|
], 512)) : h("", !0),
|
|
490
|
-
e.value.userOptions.show && q.value && (
|
|
491
|
+
e.value.userOptions.show && q.value && (y(Re) || y(ze)) ? (o(), Q(y(Ct), {
|
|
491
492
|
ref: "details",
|
|
492
493
|
key: `user_option_${Se.value}`,
|
|
493
494
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
494
495
|
color: e.value.style.chart.color,
|
|
495
|
-
isPrinting:
|
|
496
|
-
isImaging:
|
|
496
|
+
isPrinting: y(Ve),
|
|
497
|
+
isImaging: y(Ee),
|
|
497
498
|
uid: O.value,
|
|
498
499
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
499
500
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -509,22 +510,22 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
509
510
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
510
511
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
511
512
|
isAnnotation: he.value,
|
|
512
|
-
onToggleFullscreen:
|
|
513
|
-
onGeneratePdf:
|
|
513
|
+
onToggleFullscreen: Ot,
|
|
514
|
+
onGeneratePdf: y(Fe),
|
|
514
515
|
onGenerateCsv: Qe,
|
|
515
|
-
onGenerateImage:
|
|
516
|
+
onGenerateImage: y(De),
|
|
516
517
|
onToggleTable: Je,
|
|
517
518
|
onToggleLabels: qe,
|
|
518
519
|
onToggleTooltip: Ze,
|
|
519
520
|
onToggleAnnotator: _e,
|
|
520
521
|
style: X({
|
|
521
|
-
visibility:
|
|
522
|
+
visibility: y(Re) ? y(ze) ? "visible" : "hidden" : "visible"
|
|
522
523
|
})
|
|
523
524
|
}, it({ _: 2 }, [
|
|
524
525
|
a.$slots.menuIcon ? {
|
|
525
526
|
name: "menuIcon",
|
|
526
527
|
fn: C(({ isOpen: t, color: l }) => [
|
|
527
|
-
x(a.$slots, "menuIcon", F(
|
|
528
|
+
x(a.$slots, "menuIcon", E(F({ isOpen: t, color: l })), void 0, !0)
|
|
528
529
|
]),
|
|
529
530
|
key: "0"
|
|
530
531
|
} : void 0,
|
|
@@ -573,14 +574,14 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
573
574
|
a.$slots.optionFullscreen ? {
|
|
574
575
|
name: "optionFullscreen",
|
|
575
576
|
fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
576
|
-
x(a.$slots, "optionFullscreen", F(
|
|
577
|
+
x(a.$slots, "optionFullscreen", E(F({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
577
578
|
]),
|
|
578
579
|
key: "7"
|
|
579
580
|
} : void 0,
|
|
580
581
|
a.$slots.optionAnnotator ? {
|
|
581
582
|
name: "optionAnnotator",
|
|
582
583
|
fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
583
|
-
x(a.$slots, "optionAnnotator", F(
|
|
584
|
+
x(a.$slots, "optionAnnotator", E(F({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
584
585
|
]),
|
|
585
586
|
key: "8"
|
|
586
587
|
} : void 0
|
|
@@ -589,11 +590,11 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
589
590
|
key: 3,
|
|
590
591
|
ref_key: "svgRef",
|
|
591
592
|
ref: Pe,
|
|
592
|
-
xmlns:
|
|
593
|
+
xmlns: y(ta),
|
|
593
594
|
viewBox: `0 0 ${i.value.chartWidth <= 0 ? 10 : i.value.chartWidth} ${i.value.chartHeight <= 0 ? 10 : i.value.chartHeight}`,
|
|
594
595
|
style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
595
596
|
}, [
|
|
596
|
-
oe(
|
|
597
|
+
oe(y(xt)),
|
|
597
598
|
a.$slots["chart-background"] ? (o(), s("foreignObject", {
|
|
598
599
|
key: 0,
|
|
599
600
|
x: i.value.left,
|
|
@@ -620,7 +621,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
620
621
|
}, null, 8, ka),
|
|
621
622
|
G("stop", {
|
|
622
623
|
offset: "61.8%",
|
|
623
|
-
"stop-color":
|
|
624
|
+
"stop-color": y(aa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
624
625
|
}, null, 8, wa),
|
|
625
626
|
G("stop", {
|
|
626
627
|
offset: "100%",
|
|
@@ -640,15 +641,15 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
640
641
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 3 }, g(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
|
|
641
642
|
x1: i.value.left,
|
|
642
643
|
x2: i.value.right,
|
|
643
|
-
y1: i.value.top +
|
|
644
|
-
y2: i.value.top +
|
|
644
|
+
y1: i.value.top + d.value * l,
|
|
645
|
+
y2: i.value.top + d.value * l,
|
|
645
646
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
646
647
|
"stroke-width": 1,
|
|
647
648
|
"stroke-linecap": "round"
|
|
648
649
|
}, null, 8, _a))), 256)) : h("", !0),
|
|
649
650
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 4 }, g(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
|
|
650
|
-
x1: i.value.left +
|
|
651
|
-
x2: i.value.left +
|
|
651
|
+
x1: i.value.left + d.value * l,
|
|
652
|
+
x2: i.value.left + d.value * l,
|
|
652
653
|
y1: i.value.top,
|
|
653
654
|
y2: i.value.bottom,
|
|
654
655
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
@@ -674,13 +675,13 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
674
675
|
y: t.y[n] < 0 ? 0 : t.y[n],
|
|
675
676
|
height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
|
|
676
677
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
677
|
-
width:
|
|
678
|
+
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
678
679
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
679
680
|
stroke: e.value.style.chart.backgroundColor,
|
|
680
681
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
681
682
|
"stroke-linecap": "round",
|
|
682
683
|
"stroke-linejoin": "round",
|
|
683
|
-
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
684
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
684
685
|
}, null, 10, Ma))), 256)),
|
|
685
686
|
a.$slots.pattern ? (o(), s("g", Ta, [
|
|
686
687
|
(o(!0), s(v, null, g(t.x, (u, n) => (o(), s("rect", {
|
|
@@ -688,42 +689,42 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
688
689
|
y: t.y[n] < 0 ? 0 : t.y[n],
|
|
689
690
|
height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
|
|
690
691
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
691
|
-
width:
|
|
692
|
+
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
692
693
|
fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
|
|
693
694
|
stroke: e.value.style.chart.backgroundColor,
|
|
694
695
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
695
696
|
"stroke-linecap": "round",
|
|
696
697
|
"stroke-linejoin": "round",
|
|
697
|
-
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
698
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
698
699
|
}, null, 10, Na))), 256))
|
|
699
700
|
])) : h("", !0)
|
|
700
701
|
], 64)) : (o(), s(v, { key: 2 }, [
|
|
701
702
|
(o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s("rect", {
|
|
702
|
-
x:
|
|
703
|
+
x: y(me)(u, i.value.left),
|
|
703
704
|
y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
|
|
704
|
-
width:
|
|
705
|
+
width: y(me)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
|
|
705
706
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
706
|
-
height:
|
|
707
|
+
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
707
708
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
708
709
|
stroke: e.value.style.chart.backgroundColor,
|
|
709
710
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
710
711
|
"stroke-linecap": "round",
|
|
711
712
|
"stroke-linejoin": "round",
|
|
712
|
-
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
713
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
713
714
|
}, null, 10, Ia))), 256)),
|
|
714
715
|
a.$slots.pattern ? (o(), s("g", Oa, [
|
|
715
716
|
(o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s("rect", {
|
|
716
|
-
x:
|
|
717
|
+
x: y(me)(u, i.value.left),
|
|
717
718
|
y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
|
|
718
|
-
width:
|
|
719
|
+
width: y(me)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
|
|
719
720
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
720
|
-
height:
|
|
721
|
+
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
721
722
|
fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
|
|
722
723
|
stroke: e.value.style.chart.backgroundColor,
|
|
723
724
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
724
725
|
"stroke-linecap": "round",
|
|
725
726
|
"stroke-linejoin": "round",
|
|
726
|
-
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
727
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
727
728
|
}, null, 10, Ra))), 256))
|
|
728
729
|
])) : h("", !0)
|
|
729
730
|
], 64))
|
|
@@ -772,10 +773,10 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
772
773
|
(o(!0), s(v, null, g(t.x, (u, n) => (o(), s(v, null, [
|
|
773
774
|
tt(t.series[n], t.proportions[n]) ? (o(), s("text", {
|
|
774
775
|
key: 0,
|
|
775
|
-
x: u +
|
|
776
|
+
x: u + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
776
777
|
y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
777
778
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
778
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
779
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
779
780
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
780
781
|
"text-anchor": "middle"
|
|
781
782
|
}, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ye(t.proportions[n] * 100, t, l, n) : ce(t.series[n], t, l, n, t.signedSeries[n])), 9, Fa)) : h("", !0)
|
|
@@ -785,7 +786,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
785
786
|
(o(!0), s(v, null, g(Ue.value, (t, l) => (o(), s(v, null, [
|
|
786
787
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
787
788
|
key: 0,
|
|
788
|
-
x: i.value.left +
|
|
789
|
+
x: i.value.left + d.value * l + d.value / 2,
|
|
789
790
|
y: i.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
790
791
|
"text-anchor": "middle",
|
|
791
792
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
@@ -801,9 +802,9 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
801
802
|
tt(t.series[n], t.proportions[n]) ? (o(), s("text", {
|
|
802
803
|
key: 0,
|
|
803
804
|
x: u + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
|
|
804
|
-
y: t.horizontal_y[n] +
|
|
805
|
+
y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
805
806
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
806
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
807
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
807
808
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
808
809
|
"text-anchor": "middle"
|
|
809
810
|
}, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ye(t.proportions[n] * 100, t, l, n) : ce(t.series[n], t, l, n, t.signedSeries[n])), 9, Wa)) : h("", !0)
|
|
@@ -814,7 +815,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
814
815
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
815
816
|
key: 0,
|
|
816
817
|
x: i.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
817
|
-
y: i.value.top +
|
|
818
|
+
y: i.value.top + d.value * l + d.value / 2,
|
|
818
819
|
"text-anchor": "start",
|
|
819
820
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
820
821
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
@@ -839,7 +840,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
839
840
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
840
841
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
841
842
|
"text-anchor": "end"
|
|
842
|
-
}, $(
|
|
843
|
+
}, $(y(J)({
|
|
843
844
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
844
845
|
v: t.value,
|
|
845
846
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -862,7 +863,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
862
863
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
863
864
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
864
865
|
transform: `translate(${t.horizontal_x}, ${i.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})`
|
|
865
|
-
}, $(
|
|
866
|
+
}, $(y(J)({
|
|
866
867
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
867
868
|
v: t.value,
|
|
868
869
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -873,11 +874,11 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
873
874
|
a.$slots["time-label"] ? (o(), s("g", qa, [
|
|
874
875
|
(o(!0), s(v, null, g(V.value, (t, l) => (o(), s("g", null, [
|
|
875
876
|
x(a.$slots, "time-label", Le({ ref_for: !0 }, {
|
|
876
|
-
x: i.value.left +
|
|
877
|
+
x: i.value.left + d.value * l + d.value / 2,
|
|
877
878
|
y: i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
878
879
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
879
880
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
880
|
-
transform: `translate(${i.value.left +
|
|
881
|
+
transform: `translate(${i.value.left + d.value * l + d.value / 2}, ${i.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})`,
|
|
881
882
|
absoluteIndex: t.absoluteIndex,
|
|
882
883
|
content: t.text,
|
|
883
884
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -890,7 +891,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
890
891
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
891
892
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
892
893
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
893
|
-
transform: `translate(${i.value.left +
|
|
894
|
+
transform: `translate(${i.value.left + d.value * l + d.value / 2}, ${i.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})`,
|
|
894
895
|
style: {
|
|
895
896
|
cursor: "pointer"
|
|
896
897
|
},
|
|
@@ -903,7 +904,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
903
904
|
(o(!0), s(v, null, g(V.value, (t, l) => (o(), s("g", null, [
|
|
904
905
|
x(a.$slots, "time-label", Le({ ref_for: !0 }, {
|
|
905
906
|
x: i.value.left - 8,
|
|
906
|
-
y: i.value.top +
|
|
907
|
+
y: i.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
907
908
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
908
909
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
909
910
|
transform: null,
|
|
@@ -920,7 +921,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
920
921
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
921
922
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
922
923
|
x: i.value.left - 8,
|
|
923
|
-
y: i.value.top +
|
|
924
|
+
y: i.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
924
925
|
style: {
|
|
925
926
|
cursor: "pointer"
|
|
926
927
|
},
|
|
@@ -929,9 +930,9 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
929
930
|
]))
|
|
930
931
|
], 64)) : h("", !0),
|
|
931
932
|
z.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 16 }, g(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
|
|
932
|
-
x: i.value.left + l *
|
|
933
|
+
x: i.value.left + l * d.value,
|
|
933
934
|
y: i.value.top,
|
|
934
|
-
width:
|
|
935
|
+
width: d.value,
|
|
935
936
|
height: i.value.height < 0 ? 0 : i.value.height,
|
|
936
937
|
onClick: (u) => Xe(l),
|
|
937
938
|
onMouseenter: (u) => Ge(l),
|
|
@@ -943,9 +944,9 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
943
944
|
}, null, 44, tl))), 256)) : h("", !0),
|
|
944
945
|
z.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 17 }, g(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
|
|
945
946
|
x: i.value.left,
|
|
946
|
-
y: i.value.top + l *
|
|
947
|
+
y: i.value.top + l * d.value,
|
|
947
948
|
width: i.value.width < 0 ? 0 : i.value.width,
|
|
948
|
-
height:
|
|
949
|
+
height: d.value,
|
|
949
950
|
onClick: (u) => Xe(l),
|
|
950
951
|
onMouseenter: (u) => Ge(l),
|
|
951
952
|
onMouseleave: r[1] || (r[1] = (u) => {
|
|
@@ -954,12 +955,12 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
954
955
|
fill: l === ee.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
955
956
|
style: X({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
956
957
|
}, null, 44, al))), 256)) : h("", !0),
|
|
957
|
-
x(a.$slots, "svg", F(
|
|
958
|
+
x(a.$slots, "svg", E(F({ ...i.value })), void 0, !0)
|
|
958
959
|
], 12, fa)) : h("", !0),
|
|
959
960
|
a.$slots.watermark ? (o(), s("div", ll, [
|
|
960
|
-
x(a.$slots, "watermark", F(
|
|
961
|
+
x(a.$slots, "watermark", E(F({ isPrinting: y(Ve) || y(Ee) })), void 0, !0)
|
|
961
962
|
])) : h("", !0),
|
|
962
|
-
q.value ? h("", !0) : (o(), Q(
|
|
963
|
+
q.value ? h("", !0) : (o(), Q(y(wt), {
|
|
963
964
|
key: 5,
|
|
964
965
|
config: {
|
|
965
966
|
type: "bar",
|
|
@@ -980,7 +981,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
980
981
|
style: X(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
981
982
|
"data-dom-to-png-ignore": ""
|
|
982
983
|
}, [
|
|
983
|
-
e.value.style.chart.zoom.show && A.value > 1 ? (o(), Q(
|
|
984
|
+
e.value.style.chart.zoom.show && A.value > 1 ? (o(), Q(ha, {
|
|
984
985
|
ref_key: "slicerComponent",
|
|
985
986
|
ref: Z,
|
|
986
987
|
key: `slicer_${Ie.value}`,
|
|
@@ -1008,12 +1009,12 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1008
1009
|
onReset: We
|
|
1009
1010
|
}, {
|
|
1010
1011
|
"reset-action": C(({ reset: t }) => [
|
|
1011
|
-
x(a.$slots, "reset-action", F(
|
|
1012
|
+
x(a.$slots, "reset-action", E(F({ reset: t })), void 0, !0)
|
|
1012
1013
|
]),
|
|
1013
1014
|
_: 3
|
|
1014
1015
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : h("", !0)
|
|
1015
1016
|
], 4),
|
|
1016
|
-
oe(
|
|
1017
|
+
oe(y(zt), {
|
|
1017
1018
|
show: z.value.showTooltip && se.value,
|
|
1018
1019
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1019
1020
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1027,13 +1028,13 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1027
1028
|
parent: j.value,
|
|
1028
1029
|
content: we.value,
|
|
1029
1030
|
isFullscreen: ie.value,
|
|
1030
|
-
isCustom:
|
|
1031
|
+
isCustom: y(dt)(e.value.style.chart.tooltip.customFormat)
|
|
1031
1032
|
}, {
|
|
1032
1033
|
"tooltip-before": C(() => [
|
|
1033
|
-
x(a.$slots, "tooltip-before", F(
|
|
1034
|
+
x(a.$slots, "tooltip-before", E(F({ ...ke.value })), void 0, !0)
|
|
1034
1035
|
]),
|
|
1035
1036
|
"tooltip-after": C(() => [
|
|
1036
|
-
x(a.$slots, "tooltip-after", F(
|
|
1037
|
+
x(a.$slots, "tooltip-after", E(F({ ...ke.value })), void 0, !0)
|
|
1037
1038
|
]),
|
|
1038
1039
|
_: 3
|
|
1039
1040
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1041,10 +1042,10 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1041
1042
|
ref_key: "chartLegend",
|
|
1042
1043
|
ref: Me
|
|
1043
1044
|
}, [
|
|
1044
|
-
e.value.style.chart.legend.show && q.value ? (o(), Q(
|
|
1045
|
+
e.value.style.chart.legend.show && q.value ? (o(), Q(va, {
|
|
1045
1046
|
key: 0,
|
|
1046
1047
|
legendSet: je.value,
|
|
1047
|
-
config:
|
|
1048
|
+
config: At.value,
|
|
1048
1049
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1049
1050
|
}, it({
|
|
1050
1051
|
item: C(({ legend: t }) => [
|
|
@@ -1058,7 +1059,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1058
1059
|
a.$slots.pattern ? {
|
|
1059
1060
|
name: "legend-pattern",
|
|
1060
1061
|
fn: C(({ legend: t, index: l }) => [
|
|
1061
|
-
oe(
|
|
1062
|
+
oe(ya, {
|
|
1062
1063
|
shape: t.shape,
|
|
1063
1064
|
radius: 30,
|
|
1064
1065
|
stroke: "none",
|
|
@@ -1081,7 +1082,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1081
1082
|
}, [
|
|
1082
1083
|
x(a.$slots, "source", {}, void 0, !0)
|
|
1083
1084
|
], 512)) : h("", !0),
|
|
1084
|
-
c.value.end - c.value.start < 200 ? (o(), Q(
|
|
1085
|
+
c.value.end - c.value.start < 200 ? (o(), Q(y(mt), {
|
|
1085
1086
|
key: 7,
|
|
1086
1087
|
hideDetails: "",
|
|
1087
1088
|
config: {
|
|
@@ -1098,7 +1099,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1098
1099
|
}
|
|
1099
1100
|
}, {
|
|
1100
1101
|
content: C(() => [
|
|
1101
|
-
oe(
|
|
1102
|
+
oe(y(pt), {
|
|
1102
1103
|
colNames: ve.value.colNames,
|
|
1103
1104
|
head: ve.value.head,
|
|
1104
1105
|
body: ve.value.body,
|
|
@@ -1110,7 +1111,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1110
1111
|
G("div", { innerHTML: t }, null, 8, ol)
|
|
1111
1112
|
]),
|
|
1112
1113
|
td: C(({ td: t }) => [
|
|
1113
|
-
|
|
1114
|
+
Gt($(isNaN(Number(t)) ? t : y(J)({
|
|
1114
1115
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1115
1116
|
v: t,
|
|
1116
1117
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1124,7 +1125,7 @@ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"]
|
|
|
1124
1125
|
}, 8, ["config"])) : h("", !0)
|
|
1125
1126
|
], 46, ba));
|
|
1126
1127
|
}
|
|
1127
|
-
},
|
|
1128
|
+
}, pl = /* @__PURE__ */ ga(sl, [["__scopeId", "data-v-ec3e4633"]]);
|
|
1128
1129
|
export {
|
|
1129
|
-
|
|
1130
|
+
pl as default
|
|
1130
1131
|
};
|