vue-data-ui 3.4.9 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineAsyncComponent as J, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
import { t as
|
|
16
|
-
import
|
|
17
|
-
import { S as
|
|
18
|
-
import { _ as
|
|
19
|
-
const
|
|
1
|
+
import { defineAsyncComponent as J, useSlots as wl, computed as g, ref as d, onMounted as oa, toRefs as Ll, watch as we, shallowRef as na, onBeforeUnmount as vt, watchEffect as ia, nextTick as Sl, createElementBlock as n, openBlock as r, normalizeStyle as ae, normalizeClass as ue, createBlock as Z, createCommentVNode as b, renderSlot as C, createElementVNode as Q, createVNode as Le, unref as m, createSlots as ht, withCtx as M, normalizeProps as le, guardReactiveProps as se, Fragment as p, renderList as k, mergeProps as Se, toDisplayString as F, Teleport as zl, resolveDynamicComponent as Cl, createTextVNode as ua } from "vue";
|
|
2
|
+
import { u as _l, a as ca } from "./useNestedProp-BjZe1Y85.js";
|
|
3
|
+
import { c as va, t as Ml, b as Tl, p as Ve, O as ce, e as $l, o as ha, f as da, g as Al, h as Pl, aj as ze, n as ya, m as ga, v as Nl, X as Rl, S as Ol, r as Ee, J as ba, a as Ue, d as re, M as Il, $ as Fl, G as fa, P as Dl, Q as Vl, H as El } from "./lib-C_mNZmhD.js";
|
|
4
|
+
import { t as dt, u as Ul } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Bl } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
+
import { u as Hl, B as Xl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as ma, a as Wl, l as Yl } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as Gl } from "./useSvgExport-DrjCWun4.js";
|
|
9
|
+
import { u as ql } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Jl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Zl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import Ql from "./img-BecE5qXd.js";
|
|
13
|
+
import Kl from "./Title-l36lOBMx.js";
|
|
14
|
+
import { _ as jl } from "./Shape-CNXKB8O0.js";
|
|
15
|
+
import { t as es } from "./themes-AUNCOb2G.js";
|
|
16
|
+
import ts from "./Legend-G6GMcdAc.js";
|
|
17
|
+
import { S as as } from "./SlicerPreview-ij72TAs6.js";
|
|
18
|
+
import { _ as ls } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
+
const ss = ["id"], rs = ["id"], os = ["xmlns", "viewBox"], ns = ["x", "y", "width", "height"], is = { key: 1 }, us = ["id"], cs = ["stop-color"], vs = ["stop-color"], hs = ["stop-color"], ds = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ys = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fs = { key: 0 }, ms = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ps = { key: 0 }, xs = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ks = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ws = { key: 0 }, Ls = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ss = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cs = ["x", "y", "font-size", "fill", "font-weight"], _s = ["transform", "font-size", "fill", "font-weight"], Ms = ["x", "y", "font-size", "fill", "font-weight"], Ts = ["x", "y", "font-size", "font-weight", "fill"], $s = ["x", "y", "font-size", "fill", "font-weight"], As = ["x", "y", "font-size", "font-weight", "fill"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Ns = ["x", "y", "font-size", "font-weight", "fill"], Rs = ["x1", "x2", "y1", "y2", "stroke"], Os = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Is = { key: 0 }, Fs = { key: 1 }, Ds = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Vs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Es = { key: 0 }, Us = { key: 1 }, Bs = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Hs = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Xs = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Ws = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Ys = ["data-start", "data-end"], Gs = {
|
|
20
20
|
key: 3,
|
|
21
21
|
class: "vue-data-ui-watermark"
|
|
22
|
-
},
|
|
22
|
+
}, qs = ["x", "y", "height", "width", "fill", "stroke"], Js = ["id"], Zs = ["onClick"], Qs = ["innerHTML"], Ks = {
|
|
23
23
|
__name: "vue-ui-stackbar",
|
|
24
24
|
props: {
|
|
25
25
|
config: {
|
|
@@ -40,20 +40,20 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX"],
|
|
43
|
-
setup(Be, { expose:
|
|
44
|
-
const
|
|
43
|
+
setup(Be, { expose: pa, emit: xa }) {
|
|
44
|
+
const ka = J(() => import("./Tooltip-oWCO1HKy.js")), wa = J(() => import("./BaseIcon-BmMbm4d0.js")), La = J(() => import("./vue-ui-accordion-CZ0thhxa.js")), Sa = J(() => import("./DataTable-BT7VF2ua.js")), za = J(() => import("./PenAndPaper-DSvu9dwa.js")), Ca = J(() => import("./UserOptions-CGnQt6Fd.js")), _a = J(() => import("./PackageVersion-Cyx_s25h.js")), Ma = J(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_stackbar: Ta } = _l(), $a = wl(), x = Be, ve = xa, he = g({
|
|
45
45
|
get() {
|
|
46
46
|
return !!x.dataset && x.dataset.length;
|
|
47
47
|
},
|
|
48
48
|
set(a) {
|
|
49
49
|
return a;
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
}), W = d(null), D = d(va()), He = d(!1), Xe = d(null), We = d(""), A = d([]), yt = d(0), gt = d(null), bt = d(null), de = d(null), ft = d(null), ye = d(!1), B = d(null), K = d(!1), mt = d(0), Aa = d(0), Pa = d(0), pt = d(!1), ge = d(null), Ye = d(null), Ge = d(null), qe = d(null), j = d(null), ee = d(null), Na = d(null), xt = d(null), Je = d(null);
|
|
52
|
+
oa(() => {
|
|
53
|
+
pt.value = !0, tt();
|
|
54
54
|
});
|
|
55
|
-
const e = d(je()), { loading: be, FINAL_DATASET: Ze, manualLoading: Ce } =
|
|
56
|
-
...
|
|
55
|
+
const e = d(je()), { loading: be, FINAL_DATASET: Ze, manualLoading: Ce } = Hl({
|
|
56
|
+
...Ll(x),
|
|
57
57
|
FINAL_CONFIG: e,
|
|
58
58
|
prepareConfig: je,
|
|
59
59
|
callback: () => {
|
|
@@ -73,7 +73,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
73
73
|
color: "#CACACA"
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
|
-
skeletonConfig:
|
|
76
|
+
skeletonConfig: Ml({
|
|
77
77
|
defaultConfig: e.value,
|
|
78
78
|
userConfig: {
|
|
79
79
|
userOptions: { show: !1 },
|
|
@@ -122,32 +122,32 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
})
|
|
125
|
-
}), { userOptionsVisible: Qe, setUserOptionsVisibility:
|
|
126
|
-
function
|
|
127
|
-
|
|
125
|
+
}), { userOptionsVisible: Qe, setUserOptionsVisibility: kt, keepUserOptionState: wt } = ql({ config: e.value }), { svgRef: Ke } = Jl({ config: e.value.style.chart.title });
|
|
126
|
+
function Ra() {
|
|
127
|
+
kt(!0);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Oa() {
|
|
130
|
+
kt(!1), ve("selectX", { seriesIndex: null, datapoint: null }), B.value = null;
|
|
131
131
|
}
|
|
132
132
|
function je() {
|
|
133
|
-
const a =
|
|
133
|
+
const a = ca({
|
|
134
134
|
userConfig: x.config,
|
|
135
|
-
defaultConfig:
|
|
135
|
+
defaultConfig: Ta
|
|
136
136
|
});
|
|
137
137
|
let l = {};
|
|
138
138
|
return a.theme ? l = {
|
|
139
|
-
...
|
|
140
|
-
userConfig:
|
|
139
|
+
...ca({
|
|
140
|
+
userConfig: es.vue_ui_stackbar[a.theme] || x.config,
|
|
141
141
|
defaultConfig: a
|
|
142
142
|
}),
|
|
143
|
-
customPalette:
|
|
143
|
+
customPalette: Tl[a.theme] || Ve
|
|
144
144
|
} : l = a, x.config && ce(x.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = x.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, x.config && ce(x.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = x.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, x.config && ce(x.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, x.config && ce(x.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, x.config && ce(x.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = x.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, x.config && ce(x.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = x.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
145
145
|
}
|
|
146
|
-
const
|
|
146
|
+
const Lt = g(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), St = g(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
147
147
|
we(() => x.config, (a) => {
|
|
148
|
-
be.value || (e.value = je()), Qe.value = !e.value.userOptions.showOnChartHover, tt(), mt.value += 1,
|
|
148
|
+
be.value || (e.value = je()), Qe.value = !e.value.userOptions.showOnChartHover, tt(), mt.value += 1, Aa.value += 1, Pa.value += 1, T.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, T.value.showTable = e.value.table.show, T.value.showTooltip = e.value.style.chart.tooltip.show, Te();
|
|
149
149
|
}, { deep: !0 }), we(() => x.dataset, (a) => {
|
|
150
|
-
Array.isArray(a) && a.length > 0 && (Ce.value = !1),
|
|
150
|
+
Array.isArray(a) && a.length > 0 && (Ce.value = !1), Nt();
|
|
151
151
|
}, { deep: !0 });
|
|
152
152
|
const T = d({
|
|
153
153
|
dataLabels: {
|
|
@@ -165,7 +165,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
165
165
|
showTooltip: e.value.style.chart.tooltip.show
|
|
166
166
|
};
|
|
167
167
|
}, { immediate: !0 });
|
|
168
|
-
const { isPrinting:
|
|
168
|
+
const { isPrinting: zt, isImaging: Ct, generatePdf: _t, generateImage: Mt } = Bl({
|
|
169
169
|
elementId: `stackbar_${D.value}`,
|
|
170
170
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
171
171
|
options: e.value.userOptions.print
|
|
@@ -178,22 +178,22 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
178
178
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
179
179
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
182
|
-
|
|
181
|
+
}), Ia = g(() => $l(e.value.customPalette)), G = na(null), ne = na(null), Tt = d(null);
|
|
182
|
+
oa(() => {
|
|
183
183
|
tt();
|
|
184
184
|
});
|
|
185
185
|
const et = g(() => !!e.value.debug);
|
|
186
186
|
function tt() {
|
|
187
|
-
if (
|
|
187
|
+
if (ha(x.dataset) ? (da({
|
|
188
188
|
componentName: "VueUiStackbar",
|
|
189
189
|
type: "dataset",
|
|
190
190
|
debug: et.value
|
|
191
191
|
}), Ce.value = !0) : x.dataset.forEach((a, l) => {
|
|
192
|
-
|
|
192
|
+
Al({
|
|
193
193
|
datasetObject: a,
|
|
194
194
|
requiredAttributes: ["name", "series"]
|
|
195
195
|
}).forEach((t) => {
|
|
196
|
-
he.value = !1,
|
|
196
|
+
he.value = !1, da({
|
|
197
197
|
componentName: "VueUiStackbar",
|
|
198
198
|
type: "datasetSerieAttribute",
|
|
199
199
|
property: t,
|
|
@@ -201,32 +201,32 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
201
201
|
debug: et.value
|
|
202
202
|
}), Ce.value = !0;
|
|
203
203
|
});
|
|
204
|
-
}),
|
|
204
|
+
}), ha(x.dataset) || (Ce.value = e.value.loading), setTimeout(() => {
|
|
205
205
|
K.value = !0;
|
|
206
206
|
}, 10), e.value.responsive) {
|
|
207
|
-
const a =
|
|
207
|
+
const a = dt(() => {
|
|
208
208
|
K.value = !1;
|
|
209
|
-
const { width: l, height: t } =
|
|
210
|
-
chart:
|
|
211
|
-
title: e.value.style.chart.title.text ?
|
|
212
|
-
legend: e.value.style.chart.legend.show ?
|
|
213
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
214
|
-
source:
|
|
209
|
+
const { width: l, height: t } = Ul({
|
|
210
|
+
chart: W.value,
|
|
211
|
+
title: e.value.style.chart.title.text ? gt.value : null,
|
|
212
|
+
legend: e.value.style.chart.legend.show ? bt.value : null,
|
|
213
|
+
slicer: e.value.style.chart.zoom.show && P.value > 6 ? de.value.$el : null,
|
|
214
|
+
source: ft.value
|
|
215
215
|
});
|
|
216
216
|
requestAnimationFrame(() => {
|
|
217
|
-
oe.value.width = l, oe.value.height = t - 12, clearTimeout(
|
|
217
|
+
oe.value.width = l, oe.value.height = t - 12, clearTimeout(Tt.value), Tt.value = setTimeout(() => {
|
|
218
218
|
K.value = !0;
|
|
219
219
|
}, 10);
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
|
-
G.value && (ne.value && G.value.unobserve(ne.value), G.value.disconnect()), G.value = new ResizeObserver(a), ne.value =
|
|
222
|
+
G.value && (ne.value && G.value.unobserve(ne.value), G.value.disconnect()), G.value = new ResizeObserver(a), ne.value = W.value.parentNode, G.value.observe(ne.value);
|
|
223
223
|
}
|
|
224
224
|
Oe();
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
vt(() => {
|
|
227
227
|
G.value && (ne.value && G.value.unobserve(ne.value), G.value.disconnect());
|
|
228
228
|
});
|
|
229
|
-
function
|
|
229
|
+
function Fa() {
|
|
230
230
|
let a = 0;
|
|
231
231
|
e.value.orientation === "vertical" && j.value && (a = Array.from(j.value.querySelectorAll("text")).reduce((s, c) => {
|
|
232
232
|
const o = c.getComputedTextLength();
|
|
@@ -238,32 +238,32 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
238
238
|
const l = qe.value ? qe.value.getBoundingClientRect().width : 0;
|
|
239
239
|
return a + l + (l ? 24 : 0);
|
|
240
240
|
}
|
|
241
|
-
const _e = d(0), Me = d(0),
|
|
241
|
+
const _e = d(0), Me = d(0), Da = dt((a) => {
|
|
242
242
|
_e.value = a;
|
|
243
243
|
}, 100);
|
|
244
|
-
|
|
244
|
+
ia((a) => {
|
|
245
245
|
const l = e.value.orientation === "vertical" ? ee.value : j.value;
|
|
246
246
|
if (!l) return;
|
|
247
247
|
const t = new ResizeObserver((s) => {
|
|
248
|
-
|
|
248
|
+
Da(s[0].contentRect.height);
|
|
249
249
|
});
|
|
250
250
|
t.observe(l), a(() => t.disconnect());
|
|
251
251
|
});
|
|
252
|
-
const
|
|
252
|
+
const Va = dt((a) => {
|
|
253
253
|
Me.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
254
254
|
}, 100);
|
|
255
|
-
|
|
255
|
+
ia((a) => {
|
|
256
256
|
if (e.value.orientation === "vertical") return;
|
|
257
|
-
const l =
|
|
257
|
+
const l = xt.value;
|
|
258
258
|
if (!l) return;
|
|
259
259
|
const t = new ResizeObserver((s) => {
|
|
260
|
-
|
|
260
|
+
Va(s[0].contentRect.width);
|
|
261
261
|
});
|
|
262
262
|
t.observe(l), a(() => t.disconnect());
|
|
263
|
-
}),
|
|
263
|
+
}), vt(() => {
|
|
264
264
|
_e.value = 0, Me.value = 0;
|
|
265
265
|
});
|
|
266
|
-
const
|
|
266
|
+
const $t = g(() => {
|
|
267
267
|
let a = 0;
|
|
268
268
|
Ge.value && (a = Ge.value.getBBox().height);
|
|
269
269
|
let l = 0;
|
|
@@ -271,8 +271,8 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
271
271
|
}), u = g(() => {
|
|
272
272
|
const { height: a, width: l } = oe.value, { right: t } = oe.value.paddingRatio;
|
|
273
273
|
let s = e.value.style.chart.bars.totalValues.show && x.dataset && x.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
274
|
-
e.value.style.chart.grid.y.axisLabels.show && (c =
|
|
275
|
-
const o = e.value.style.chart.padding.top + s, w = l - l * t - Me.value, _ = a - e.value.style.chart.padding.bottom -
|
|
274
|
+
e.value.style.chart.grid.y.axisLabels.show && (c = Fa());
|
|
275
|
+
const o = e.value.style.chart.padding.top + s, w = l - l * t - Me.value, _ = a - e.value.style.chart.padding.bottom - $t.value - s, I = e.value.style.chart.padding.left + c, X = l - I - l * t - Me.value, V = a - o - e.value.style.chart.padding.bottom - $t.value - s;
|
|
276
276
|
return {
|
|
277
277
|
chartHeight: a,
|
|
278
278
|
chartWidth: l,
|
|
@@ -280,11 +280,11 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
280
280
|
right: w,
|
|
281
281
|
bottom: _,
|
|
282
282
|
left: I,
|
|
283
|
-
width: Math.max(0,
|
|
284
|
-
height: Math.max(0,
|
|
283
|
+
width: Math.max(0, X),
|
|
284
|
+
height: Math.max(0, V)
|
|
285
285
|
};
|
|
286
|
-
}),
|
|
287
|
-
const { left: a, top: l, width: t, height: s } = u.value, c = v.value.start, o = v.value.end, w = Math.max(1, o - c), _ = Math.max(0, Math.min(w, (O.value.start ?? c) - c)), I = Math.max(0, Math.min(w, (O.value.end ?? o) - c)),
|
|
286
|
+
}), Ea = g(() => {
|
|
287
|
+
const { left: a, top: l, width: t, height: s } = u.value, c = v.value.start, o = v.value.end, w = Math.max(1, o - c), _ = Math.max(0, Math.min(w, (O.value.start ?? c) - c)), I = Math.max(0, Math.min(w, (O.value.end ?? o) - c)), X = Math.max(0, I - _), V = {
|
|
288
288
|
fill: e.value.style.chart.zoom.preview.fill,
|
|
289
289
|
stroke: e.value.style.chart.zoom.preview.stroke,
|
|
290
290
|
"stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
|
|
@@ -303,21 +303,21 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
303
303
|
x: a,
|
|
304
304
|
y: l + _ * $,
|
|
305
305
|
width: t,
|
|
306
|
-
height:
|
|
307
|
-
...
|
|
306
|
+
height: X * $,
|
|
307
|
+
...V
|
|
308
308
|
};
|
|
309
309
|
} else {
|
|
310
310
|
const $ = t / w;
|
|
311
311
|
return {
|
|
312
312
|
x: a + _ * $,
|
|
313
313
|
y: l,
|
|
314
|
-
width:
|
|
314
|
+
width: X * $,
|
|
315
315
|
height: s,
|
|
316
|
-
...
|
|
316
|
+
...V
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
}),
|
|
320
|
-
const t =
|
|
319
|
+
}), E = g(() => Ze.value.map((a, l) => {
|
|
320
|
+
const t = Pl(a.color) || Ia.value[l] || Ve[l] || Ve[l % Ve.length];
|
|
321
321
|
return {
|
|
322
322
|
...a,
|
|
323
323
|
// In distributed mode, all values are converted to positive
|
|
@@ -325,52 +325,52 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
325
325
|
// Store signs to manage display of neg values in distributed mode
|
|
326
326
|
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
327
327
|
absoluteIndex: l,
|
|
328
|
-
id:
|
|
328
|
+
id: va(),
|
|
329
329
|
color: t
|
|
330
330
|
};
|
|
331
|
-
})),
|
|
332
|
-
function
|
|
331
|
+
})), P = g(() => Math.max(...E.value.filter((a) => !A.value.includes(a.id)).map((a) => a.series.length)));
|
|
332
|
+
function Ua(a) {
|
|
333
333
|
Je.value = a;
|
|
334
334
|
}
|
|
335
335
|
const v = d({
|
|
336
336
|
start: 0,
|
|
337
337
|
end: Math.max(...Ze.value.map((a) => a.series.length))
|
|
338
|
-
}), O = d({ start: 0, end: Math.max(...Ze.value.map((a) => a.series.length)) }),
|
|
339
|
-
function
|
|
338
|
+
}), O = d({ start: 0, end: Math.max(...Ze.value.map((a) => a.series.length)) }), At = g(() => e.value.style.chart.zoom.preview.enable && (O.value.start !== v.value.start || O.value.end !== v.value.end));
|
|
339
|
+
function Pt(a, l) {
|
|
340
340
|
O.value[a] = l;
|
|
341
341
|
}
|
|
342
342
|
function Te() {
|
|
343
|
-
const a =
|
|
343
|
+
const a = P.value;
|
|
344
344
|
let l = Math.max(0, Math.min(v.value.start ?? 0, a - 1)), t = Math.max(l + 1, Math.min(v.value.end ?? a, a));
|
|
345
345
|
(!Number.isFinite(l) || !Number.isFinite(t) || t <= l) && (l = 0, t = a), v.value.start = l, v.value.end = t, O.value.start = l, O.value.end = t, de.value && (de.value.setStartValue(l), de.value.setEndValue(t));
|
|
346
346
|
}
|
|
347
|
-
const
|
|
348
|
-
function
|
|
347
|
+
const fe = d(null);
|
|
348
|
+
function Ba() {
|
|
349
349
|
return new Promise((a) => requestAnimationFrame(
|
|
350
350
|
() => requestAnimationFrame(() => a())
|
|
351
351
|
));
|
|
352
352
|
}
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
vt(() => {
|
|
354
|
+
fe.value && cancelAnimationFrame(fe.value);
|
|
355
355
|
});
|
|
356
|
-
async function
|
|
357
|
-
Oe(), await
|
|
358
|
-
await
|
|
356
|
+
async function Nt() {
|
|
357
|
+
Oe(), await Sl(), fe.value && cancelAnimationFrame(fe.value), fe.value = requestAnimationFrame(async () => {
|
|
358
|
+
await Ba(), Oe();
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
|
-
const
|
|
361
|
+
const f = g(() => {
|
|
362
362
|
let a;
|
|
363
363
|
return e.value.orientation === "vertical" ? a = u.value.width / (v.value.end - v.value.start) : a = u.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
|
|
364
|
-
}),
|
|
364
|
+
}), me = g(() => ze(E.value.filter((a) => !A.value.includes(a.id))).slice(v.value.start, v.value.end)), te = g(() => e.value.style.chart.zoom.minimap.show ? ze(E.value.filter((a) => !A.value.includes(a.id))) : []), Ha = g(() => e.value.style.chart.zoom.minimap.show ? [{
|
|
365
365
|
name: "",
|
|
366
366
|
series: te.value,
|
|
367
367
|
color: "#000000",
|
|
368
368
|
isVisible: !0
|
|
369
|
-
}] : []),
|
|
369
|
+
}] : []), Xa = g(() => ze(E.value.filter((a) => !A.value.includes(a.id)).map((a) => ({
|
|
370
370
|
...a,
|
|
371
371
|
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
372
372
|
}))).slice(v.value.start, v.value.end)), $e = g(() => {
|
|
373
|
-
const a =
|
|
373
|
+
const a = E.value.filter((l) => !A.value.includes(l.id));
|
|
374
374
|
return {
|
|
375
375
|
positive: ze(a.map((l) => ({
|
|
376
376
|
...l,
|
|
@@ -381,8 +381,8 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
381
381
|
series: l.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
|
|
382
382
|
})))
|
|
383
383
|
};
|
|
384
|
-
}),
|
|
385
|
-
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(...$e.value.positive), l = Math.min(...$e.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(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
384
|
+
}), H = g(() => {
|
|
385
|
+
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(...$e.value.positive), l = Math.min(...$e.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(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ya(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : ga(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
386
386
|
return s.ticks.map((c) => ({
|
|
387
387
|
zero: u.value.bottom - u.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
388
388
|
y: u.value.bottom - u.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
@@ -392,136 +392,136 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
392
392
|
horizontal_y: u.value.bottom - 8,
|
|
393
393
|
value: c
|
|
394
394
|
}));
|
|
395
|
-
}), R = g(() =>
|
|
395
|
+
}), R = g(() => ma({
|
|
396
396
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
397
|
-
maxDatapoints:
|
|
397
|
+
maxDatapoints: P.value,
|
|
398
398
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
399
399
|
start: v.value.start,
|
|
400
400
|
end: v.value.end
|
|
401
|
-
})), pe = g(() =>
|
|
401
|
+
})), pe = g(() => ma({
|
|
402
402
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
403
|
-
maxDatapoints:
|
|
403
|
+
maxDatapoints: P.value,
|
|
404
404
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
405
405
|
start: 0,
|
|
406
|
-
end:
|
|
407
|
-
})),
|
|
406
|
+
end: P.value
|
|
407
|
+
})), Wa = g(() => {
|
|
408
408
|
const a = e.value.style.chart.grid.x.timeLabels.modulo;
|
|
409
409
|
return R.value.length ? Math.min(a, [...new Set(R.value.map((l) => l.text))].length) : a;
|
|
410
|
-
}),
|
|
411
|
-
const a = e.value.style.chart.grid.x.timeLabels, l = R.value || [], t = pe.value || [], s = v.value.start ?? 0, c =
|
|
412
|
-
return
|
|
410
|
+
}), Rt = g(() => {
|
|
411
|
+
const a = e.value.style.chart.grid.x.timeLabels, l = R.value || [], t = pe.value || [], s = v.value.start ?? 0, c = B.value, o = P.value, w = l.map((I) => I?.text ?? ""), _ = t.map((I) => I?.text ?? "");
|
|
412
|
+
return Nl(
|
|
413
413
|
!!a.showOnlyFirstAndLast,
|
|
414
414
|
!!a.showOnlyAtModulo,
|
|
415
|
-
Math.max(1,
|
|
415
|
+
Math.max(1, Wa.value || 1),
|
|
416
416
|
w,
|
|
417
417
|
_,
|
|
418
418
|
s,
|
|
419
419
|
c,
|
|
420
420
|
o
|
|
421
421
|
);
|
|
422
|
-
}),
|
|
423
|
-
const a = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l =
|
|
422
|
+
}), Ot = g(() => {
|
|
423
|
+
const a = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = Wl({
|
|
424
424
|
useUTC: a.useUTC,
|
|
425
|
-
locale:
|
|
425
|
+
locale: Yl[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
426
426
|
januaryAsYear: a.januaryAsYear
|
|
427
427
|
});
|
|
428
428
|
return (t, s) => {
|
|
429
429
|
const o = e.value.style.chart.grid.x.timeLabels.values?.[t];
|
|
430
430
|
return o == null ? "" : (l.formatDate(new Date(o), s), l.formatDate(new Date(o), s));
|
|
431
431
|
};
|
|
432
|
-
}),
|
|
433
|
-
text:
|
|
432
|
+
}), It = g(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
|
|
433
|
+
text: Ot.value(t, e.value.style.chart.zoom.timeFormat),
|
|
434
434
|
absoluteIndex: t
|
|
435
435
|
}))), at = g(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
|
|
436
|
-
text:
|
|
436
|
+
text: Ot.value(t, e.value.style.chart.tooltip.timeFormat),
|
|
437
437
|
absoluteIndex: t
|
|
438
438
|
}))), L = g(() => {
|
|
439
439
|
if (!he.value && !be.value) return [];
|
|
440
|
-
let a = Array(
|
|
441
|
-
const c = Math.max(...$e.value.positive) || 0, o = Math.min(...$e.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, _ = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
442
|
-
let
|
|
443
|
-
return
|
|
444
|
-
const q = ie.series.slice(),
|
|
440
|
+
let a = Array(P.value).fill(0), l = Array(P.value).fill(0), t = Array(P.value).fill(0), s = Array(P.value).fill(0);
|
|
441
|
+
const c = Math.max(...$e.value.positive) || 0, o = Math.min(...$e.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, _ = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ya(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, 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) : ga(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, 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: I, max: X } = _, V = X + (I >= 0 ? 0 : Math.abs(I)) || 1, $ = u.value.height, Fe = u.value.width, jt = H.value[0] ? H.value[0].zero : u.value.bottom, ea = H.value[0] ? H.value[0].horizontal_zero : u.value.left;
|
|
442
|
+
let ta = Array(te.value.length).fill(0), aa = Array(te.value.length).fill(0);
|
|
443
|
+
return E.value.filter((ie) => !A.value.includes(ie.id)).map((ie) => {
|
|
444
|
+
const q = ie.series.slice(), la = q.map((h, y) => ta[y]), ul = q.map((h, y) => aa[y]);
|
|
445
445
|
q.forEach((h, y) => {
|
|
446
|
-
(Number(h) || 0) >= 0 ?
|
|
446
|
+
(Number(h) || 0) >= 0 ? ta[y] += Number(h) || 0 : aa[y] += Math.abs(Number(h) || 0);
|
|
447
447
|
});
|
|
448
|
-
const Y = ie.series.slice(v.value.start, v.value.end),
|
|
449
|
-
function
|
|
450
|
-
const S =
|
|
451
|
-
if (S &&
|
|
452
|
-
const
|
|
448
|
+
const Y = ie.series.slice(v.value.start, v.value.end), cl = ie.signedSeries.slice(v.value.start, v.value.end), vl = Y.map((h, y) => u.value.left + f.value * y + f.value * e.value.style.chart.bars.gapRatio / 4), De = (te.value || []).filter(Number.isFinite), it = De.length ? Math.max(...De) : 0, ut = De.length ? Math.min(...De) : 0;
|
|
449
|
+
function sa({ minimapH: h }) {
|
|
450
|
+
const S = it > 0, N = ut < 0;
|
|
451
|
+
if (S && N) {
|
|
452
|
+
const U = Math.max(it, Math.abs(ut)) || 1e-9;
|
|
453
453
|
return {
|
|
454
|
-
pxPerUnit: h / 2 /
|
|
454
|
+
pxPerUnit: h / 2 / U,
|
|
455
455
|
zero: h / 2
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
if (S) {
|
|
459
|
-
const
|
|
459
|
+
const U = Math.max(1e-9, it);
|
|
460
460
|
return {
|
|
461
|
-
pxPerUnit: h /
|
|
461
|
+
pxPerUnit: h / U,
|
|
462
462
|
zero: h
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
const z = Math.max(1e-9, Math.abs(
|
|
465
|
+
const z = Math.max(1e-9, Math.abs(ut));
|
|
466
466
|
return {
|
|
467
467
|
pxPerUnit: h / z,
|
|
468
468
|
zero: 0
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
const
|
|
471
|
+
const hl = ({ left: h, unitW: y }) => {
|
|
472
472
|
const S = y * (e.value.style.chart.bars.gapRatio / 4);
|
|
473
|
-
return q.map((
|
|
474
|
-
},
|
|
475
|
-
const S = e.value.style.chart.bars.distributed ? (h || 0) /
|
|
476
|
-
let
|
|
477
|
-
return h > 0 ? (z = $ * S,
|
|
478
|
-
}),
|
|
473
|
+
return q.map((N, z) => h + y * z + S);
|
|
474
|
+
}, dl = Y.map((h, y) => u.value.top + f.value * y + f.value * e.value.style.chart.bars.gapRatio / 4), yl = Y.map((h, y) => {
|
|
475
|
+
const S = e.value.style.chart.bars.distributed ? (h || 0) / me.value[y] : (h || 0) / V;
|
|
476
|
+
let N, z;
|
|
477
|
+
return h > 0 ? (z = $ * S, N = jt - z - a[y], a[y] += z) : (z = $ * S, N = jt + t[y], t[y] += Math.abs(z)), N;
|
|
478
|
+
}), gl = ({ minimapH: h }) => {
|
|
479
479
|
if (e.value.style.chart.bars.distributed)
|
|
480
|
-
return q.map((z,
|
|
481
|
-
const
|
|
482
|
-
return h -
|
|
480
|
+
return q.map((z, U) => {
|
|
481
|
+
const ct = Math.abs(Number(z) || 0), ra = Math.abs(te.value?.[U] || 0) || 1e-9, kl = (la[U] + ct) / ra;
|
|
482
|
+
return h - kl * h;
|
|
483
483
|
});
|
|
484
|
-
const { pxPerUnit: y, zero: S } =
|
|
485
|
-
return q.map((
|
|
486
|
-
const
|
|
487
|
-
return
|
|
484
|
+
const { pxPerUnit: y, zero: S } = sa({ minimapH: h });
|
|
485
|
+
return q.map((N, z) => {
|
|
486
|
+
const U = Number(N) || 0;
|
|
487
|
+
return U >= 0 ? S - (la[z] + U) * y : S + ul[z] * y;
|
|
488
488
|
});
|
|
489
|
-
},
|
|
490
|
-
const S = e.value.style.chart.bars.distributed ? (h || 0) /
|
|
491
|
-
let
|
|
492
|
-
return h > 0 ? (z = Fe * S,
|
|
493
|
-
}),
|
|
494
|
-
const S = e.value.style.chart.bars.distributed ? (h || 0) /
|
|
489
|
+
}, bl = Y.map((h, y) => {
|
|
490
|
+
const S = e.value.style.chart.bars.distributed ? (h || 0) / me.value[y] : (h || 0) / V;
|
|
491
|
+
let N, z;
|
|
492
|
+
return h > 0 ? (z = Fe * S, N = ea + l[y], l[y] += z) : (z = Fe * S, N = ea - Math.abs(z) - s[y], s[y] += Math.abs(z)), N;
|
|
493
|
+
}), fl = Y.map((h, y) => {
|
|
494
|
+
const S = e.value.style.chart.bars.distributed ? (h || 0) / me.value[y] : (h || 0) / V;
|
|
495
495
|
return h > 0 ? $ * S : $ * Math.abs(S);
|
|
496
|
-
}),
|
|
496
|
+
}), ml = ({ minimapH: h }) => {
|
|
497
497
|
if (e.value.style.chart.bars.distributed)
|
|
498
|
-
return q.map((
|
|
499
|
-
const
|
|
500
|
-
return
|
|
498
|
+
return q.map((N, z) => {
|
|
499
|
+
const U = Math.abs(Number(N) || 0), ct = Math.abs(te.value?.[z] || 0) || 1e-9;
|
|
500
|
+
return U / ct * h;
|
|
501
501
|
});
|
|
502
|
-
const { pxPerUnit: y } =
|
|
502
|
+
const { pxPerUnit: y } = sa({ minimapH: h });
|
|
503
503
|
return q.map((S) => Math.abs(Number(S) || 0) * y);
|
|
504
|
-
},
|
|
505
|
-
const S = e.value.style.chart.bars.distributed ? (h || 0) /
|
|
504
|
+
}, pl = Y.map((h, y) => {
|
|
505
|
+
const S = e.value.style.chart.bars.distributed ? (h || 0) / me.value[y] : (h || 0) / V;
|
|
506
506
|
return h > 0 ? Fe * S : Fe * Math.abs(S);
|
|
507
|
-
}),
|
|
507
|
+
}), xl = Y.map((h) => Math.abs(h)).reduce((h, y) => h + y, 0);
|
|
508
508
|
return {
|
|
509
509
|
...ie,
|
|
510
|
-
proportions: Y.map((h, y) => e.value.style.chart.bars.distributed ? (h || 0) /
|
|
510
|
+
proportions: Y.map((h, y) => e.value.style.chart.bars.distributed ? (h || 0) / me.value[y] : (h || 0) / xl),
|
|
511
511
|
series: Y,
|
|
512
|
-
signedSeries:
|
|
513
|
-
x:
|
|
514
|
-
y:
|
|
515
|
-
height:
|
|
516
|
-
horizontal_width:
|
|
517
|
-
horizontal_y:
|
|
518
|
-
horizontal_x:
|
|
519
|
-
xMinimap:
|
|
520
|
-
yMinimap:
|
|
521
|
-
heightMinimap:
|
|
512
|
+
signedSeries: cl,
|
|
513
|
+
x: vl,
|
|
514
|
+
y: yl,
|
|
515
|
+
height: fl,
|
|
516
|
+
horizontal_width: pl,
|
|
517
|
+
horizontal_y: dl,
|
|
518
|
+
horizontal_x: bl,
|
|
519
|
+
xMinimap: hl,
|
|
520
|
+
yMinimap: gl,
|
|
521
|
+
heightMinimap: ml
|
|
522
522
|
};
|
|
523
523
|
});
|
|
524
|
-
}),
|
|
524
|
+
}), Ft = g(() => Xa.value.map((a, l) => ({
|
|
525
525
|
value: a,
|
|
526
526
|
sign: a >= 0 ? 1 : -1
|
|
527
527
|
})));
|
|
@@ -539,7 +539,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
539
539
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
540
540
|
);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Dt(a, l, t, s) {
|
|
543
543
|
return Ue(
|
|
544
544
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
545
545
|
a,
|
|
@@ -551,7 +551,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
551
551
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
552
552
|
);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Vt(a) {
|
|
555
555
|
const l = JSON.parse(JSON.stringify(L.value)).map((t) => ({
|
|
556
556
|
name: t.name,
|
|
557
557
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -577,28 +577,28 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
577
577
|
const l = lt(a);
|
|
578
578
|
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + v.value.start });
|
|
579
579
|
}
|
|
580
|
-
He.value = null,
|
|
580
|
+
He.value = null, B.value = null;
|
|
581
581
|
}
|
|
582
|
-
const
|
|
582
|
+
const Ya = g(() => Array(P.value).fill(0).map((a, l) => lt(l)));
|
|
583
583
|
we(() => x.selectedXIndex, (a) => {
|
|
584
584
|
if ([null, void 0].includes(x.selectedXIndex)) {
|
|
585
|
-
|
|
585
|
+
B.value = null;
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
588
|
const l = a - v.value.start;
|
|
589
|
-
l < 0 || a >= v.value.end ?
|
|
589
|
+
l < 0 || a >= v.value.end ? B.value = null : B.value = l ?? null;
|
|
590
590
|
}, { immediate: !0 });
|
|
591
|
-
function
|
|
592
|
-
|
|
591
|
+
function Ut(a) {
|
|
592
|
+
B.value = a, He.value = !0;
|
|
593
593
|
const l = e.value.style.chart.tooltip.customFormat, t = lt(a);
|
|
594
|
-
|
|
594
|
+
il({ seriesIndex: a, datapoint: t }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + v.value.start }), Xe.value = {
|
|
595
595
|
datapoint: t,
|
|
596
596
|
seriesIndex: a,
|
|
597
597
|
config: e.value,
|
|
598
598
|
series: L.value
|
|
599
599
|
};
|
|
600
600
|
const s = t.map((c) => Math.abs(c.value)).reduce((c, o) => c + o, 0);
|
|
601
|
-
if (
|
|
601
|
+
if (fa(l) && El(() => l({
|
|
602
602
|
seriesIndex: a,
|
|
603
603
|
datapoint: t,
|
|
604
604
|
series: L.value,
|
|
@@ -618,34 +618,34 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
618
618
|
roundingValue: _,
|
|
619
619
|
roundingPercentage: I
|
|
620
620
|
} = e.value.style.chart.tooltip;
|
|
621
|
-
let
|
|
622
|
-
(R.value[a] && R.value[a].text || at.value[a] && at.value[a].text && e.value.style.chart.tooltip.showTimeLabel) && (
|
|
623
|
-
const
|
|
621
|
+
let X = "";
|
|
622
|
+
(R.value[a] && R.value[a].text || at.value[a] && at.value[a].text && e.value.style.chart.tooltip.showTimeLabel) && (X += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? R.value[a]?.text : at.value[a]?.text || pe.value[a]?.text || ""}</div>`);
|
|
623
|
+
const V = [
|
|
624
624
|
c && o ? "(" : "",
|
|
625
625
|
c && o ? ")" : ""
|
|
626
626
|
];
|
|
627
627
|
t.reverse().forEach(($) => {
|
|
628
|
-
|
|
628
|
+
X += `
|
|
629
629
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
630
|
-
<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_${$.id})` : $.color}"/>${
|
|
630
|
+
<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_${$.id})` : $.color}"/>${$a.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${D.value}_${$.absoluteIndex})"/>` : ""}</svg>
|
|
631
631
|
${$.name}${c || o ? ":" : ""} ${c ? re({
|
|
632
632
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
633
633
|
v: $.value,
|
|
634
634
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
635
635
|
r: _
|
|
636
|
-
}) : ""} ${
|
|
636
|
+
}) : ""} ${V[0]}${o ? re({
|
|
637
637
|
v: isNaN($.value / s) ? 0 : Math.abs($.value) / s * 100,
|
|
638
638
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
639
639
|
s: "%",
|
|
640
640
|
r: I
|
|
641
|
-
}) : ""}${
|
|
641
|
+
}) : ""}${V[1]}
|
|
642
642
|
</div>
|
|
643
643
|
`;
|
|
644
|
-
}), We.value = `<div>${
|
|
644
|
+
}), We.value = `<div>${X}</div>`;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
const
|
|
648
|
-
|
|
647
|
+
const Ga = g(() => oe.value.width), qa = g(() => oe.value.height);
|
|
648
|
+
Zl({
|
|
649
649
|
timeLabelsEls: e.value.orientation === "vertical" ? ee : j,
|
|
650
650
|
timeLabels: R,
|
|
651
651
|
slicer: v,
|
|
@@ -653,26 +653,26 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
653
653
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
654
654
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
655
655
|
isAutoSize: !1,
|
|
656
|
-
width:
|
|
657
|
-
height:
|
|
656
|
+
width: Ga,
|
|
657
|
+
height: qa,
|
|
658
658
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
659
659
|
});
|
|
660
|
-
function
|
|
661
|
-
ye.value = a,
|
|
660
|
+
function Bt(a) {
|
|
661
|
+
ye.value = a, yt.value += 1;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Ht() {
|
|
664
664
|
T.value.showTable = !T.value.showTable;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function Xt() {
|
|
667
667
|
T.value.dataLabels.show = !T.value.dataLabels.show;
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Wt() {
|
|
670
670
|
T.value.showTooltip = !T.value.showTooltip;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Ja() {
|
|
673
673
|
return L.value;
|
|
674
674
|
}
|
|
675
|
-
const
|
|
675
|
+
const Yt = g(() => {
|
|
676
676
|
if (L.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
677
677
|
const a = L.value.map(({ name: t, color: s }) => ({
|
|
678
678
|
label: t,
|
|
@@ -680,19 +680,19 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
680
680
|
})), l = [];
|
|
681
681
|
return R.value.forEach((t) => {
|
|
682
682
|
const s = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
683
|
-
|
|
683
|
+
E.value.forEach((c) => {
|
|
684
684
|
s.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
685
685
|
}), l.push(s);
|
|
686
686
|
}), { head: a, body: l };
|
|
687
687
|
});
|
|
688
688
|
function st(a = null) {
|
|
689
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
690
|
-
a ? a(o) :
|
|
689
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Yt.value.head.map((w) => w.label)], s = Yt.value.body, c = l.concat([t]).concat(s), o = Dl(c);
|
|
690
|
+
a ? a(o) : Vl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
691
691
|
}
|
|
692
692
|
const Pe = g(() => {
|
|
693
693
|
const a = [""].concat(L.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>');
|
|
694
694
|
let l = [];
|
|
695
|
-
for (let c = 0; c <
|
|
695
|
+
for (let c = 0; c < P.value; c += 1) {
|
|
696
696
|
const o = L.value.map((w) => w.series[c] ?? 0).reduce((w, _) => w + _, 0);
|
|
697
697
|
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? R.value[c].text : c + 1].concat(L.value.map((w) => (w.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((o ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
698
698
|
}
|
|
@@ -711,24 +711,38 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
711
711
|
}, s = [e.value.table.columnNames.period].concat(L.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
712
712
|
return { head: a, body: l.slice(0, v.value.end - v.value.start), config: t, colNames: s };
|
|
713
713
|
});
|
|
714
|
-
function
|
|
715
|
-
if (
|
|
716
|
-
|
|
714
|
+
function rt(a) {
|
|
715
|
+
if (A.value.includes(a.id))
|
|
716
|
+
A.value = A.value.filter((l) => l !== a.id);
|
|
717
717
|
else {
|
|
718
|
-
if (
|
|
719
|
-
|
|
718
|
+
if (A.value.length === E.value.length - 1) return;
|
|
719
|
+
A.value.push(a.id);
|
|
720
720
|
}
|
|
721
721
|
ve("selectLegend", L.value);
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
function Gt(a) {
|
|
724
|
+
if (!E.value.length)
|
|
725
|
+
return e.value.debug && console.warn("VueUiStackbar - There are no series to show."), null;
|
|
726
|
+
const l = E.value.find((t) => t.name === a);
|
|
727
|
+
return l || (e.value.debug && console.warn(`VueUiStackbar - Series name not found "${a}"`), null);
|
|
728
|
+
}
|
|
729
|
+
function Za(a) {
|
|
730
|
+
const l = Gt(a);
|
|
731
|
+
l !== null && A.value.includes(l.id) && rt({ id: l.id });
|
|
732
|
+
}
|
|
733
|
+
function Qa(a) {
|
|
734
|
+
const l = Gt(a);
|
|
735
|
+
l !== null && (A.value.includes(l.id) || rt({ id: l.id }));
|
|
736
|
+
}
|
|
737
|
+
const ot = g(() => E.value.map((a, l) => ({
|
|
724
738
|
...a,
|
|
725
739
|
shape: "square"
|
|
726
740
|
})).map((a) => ({
|
|
727
741
|
...a,
|
|
728
|
-
opacity:
|
|
729
|
-
segregate: () =>
|
|
730
|
-
isSegregated:
|
|
731
|
-
}))),
|
|
742
|
+
opacity: A.value.includes(a.id) ? 0.5 : 1,
|
|
743
|
+
segregate: () => rt(a),
|
|
744
|
+
isSegregated: A.value.includes(a.id)
|
|
745
|
+
}))), Ka = g(() => ({
|
|
732
746
|
cy: "stackbar-legend",
|
|
733
747
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
734
748
|
color: e.value.style.chart.legend.color,
|
|
@@ -736,7 +750,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
736
750
|
paddingBottom: 12,
|
|
737
751
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
738
752
|
})), Ne = d(!1);
|
|
739
|
-
function
|
|
753
|
+
function nt() {
|
|
740
754
|
Ne.value = !Ne.value;
|
|
741
755
|
}
|
|
742
756
|
function Re(a, l) {
|
|
@@ -753,13 +767,13 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
753
767
|
label: a.text
|
|
754
768
|
});
|
|
755
769
|
}
|
|
756
|
-
const
|
|
757
|
-
function
|
|
758
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
770
|
+
const ja = g(() => Math.max(...L.value.flatMap((a) => a.series)));
|
|
771
|
+
function qt(a, l) {
|
|
772
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? St.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : St.value ? (Lt.value && et.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 > ja.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : Lt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
759
773
|
}
|
|
760
|
-
async function
|
|
761
|
-
if (!
|
|
762
|
-
const { width: l, height: t } =
|
|
774
|
+
async function el({ scale: a = 2 } = {}) {
|
|
775
|
+
if (!W.value) return;
|
|
776
|
+
const { width: l, height: t } = W.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: o } = await Ql({ domElement: W.value, base64: !0, img: !0, scale: a });
|
|
763
777
|
return {
|
|
764
778
|
imageUri: c,
|
|
765
779
|
base64: o,
|
|
@@ -772,7 +786,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
772
786
|
const xe = g(() => {
|
|
773
787
|
const a = e.value.table.useDialog && !e.value.table.show, l = T.value.showTable;
|
|
774
788
|
return {
|
|
775
|
-
component: a ?
|
|
789
|
+
component: a ? Ma : La,
|
|
776
790
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
777
791
|
props: a ? {
|
|
778
792
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -780,7 +794,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
780
794
|
headerColor: e.value.table.th.color,
|
|
781
795
|
headerBg: e.value.table.th.backgroundColor,
|
|
782
796
|
isFullscreen: ye.value,
|
|
783
|
-
fullscreenParent:
|
|
797
|
+
fullscreenParent: W.value,
|
|
784
798
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
785
799
|
} : {
|
|
786
800
|
hideDetails: !0,
|
|
@@ -802,34 +816,34 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
802
816
|
we(() => T.value.showTable, (a) => {
|
|
803
817
|
e.value.table.show || (a && e.value.table.useDialog && ge.value ? ge.value.open() : "close" in ge.value && ge.value.close());
|
|
804
818
|
});
|
|
805
|
-
function
|
|
819
|
+
function Jt() {
|
|
806
820
|
T.value.showTable = !1, Ye.value && Ye.value.setTableIconState(!1);
|
|
807
821
|
}
|
|
808
|
-
const
|
|
822
|
+
const tl = g(() => e.value.style.chart.backgroundColor), al = g(() => e.value.style.chart.legend), ll = g(() => e.value.style.chart.title), { exportSvg: sl, getSvg: rl } = Gl({
|
|
809
823
|
svg: Ke,
|
|
810
|
-
title:
|
|
811
|
-
legend:
|
|
812
|
-
legendItems:
|
|
813
|
-
backgroundColor:
|
|
824
|
+
title: ll,
|
|
825
|
+
legend: al,
|
|
826
|
+
legendItems: ot,
|
|
827
|
+
backgroundColor: tl
|
|
814
828
|
});
|
|
815
|
-
async function
|
|
829
|
+
async function Zt({ isCb: a }) {
|
|
816
830
|
if (a) {
|
|
817
|
-
const { blob: l, url: t, text: s, dataUrl: c } = await
|
|
831
|
+
const { blob: l, url: t, text: s, dataUrl: c } = await rl();
|
|
818
832
|
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: s, dataUrl: c });
|
|
819
833
|
} else
|
|
820
|
-
|
|
834
|
+
sl();
|
|
821
835
|
}
|
|
822
|
-
function
|
|
823
|
-
const l =
|
|
836
|
+
function Qt(a) {
|
|
837
|
+
const l = P.value;
|
|
824
838
|
return a > l ? l : a < 0 || a < v.value.start ? e.value.style.chart.zoom.startIndex !== null ? v.value.start + 1 : 1 : a;
|
|
825
839
|
}
|
|
826
|
-
const ke = d(!1),
|
|
840
|
+
const ke = d(!1), Kt = d(!1);
|
|
827
841
|
function Oe() {
|
|
828
842
|
if (!ke.value) {
|
|
829
843
|
ke.value = !0;
|
|
830
844
|
try {
|
|
831
|
-
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t =
|
|
832
|
-
Ie.value = !0, v.value.start = s, v.value.end = c, O.value.start = s, O.value.end = c, Te(),
|
|
845
|
+
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = P.value, s = a ?? 0, c = l != null ? Math.min(Qt(l + 1), t) : t;
|
|
846
|
+
Ie.value = !0, v.value.start = s, v.value.end = c, O.value.start = s, O.value.end = c, Te(), Kt.value = !0;
|
|
833
847
|
} finally {
|
|
834
848
|
queueMicrotask(() => {
|
|
835
849
|
Ie.value = !1;
|
|
@@ -838,15 +852,15 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
838
852
|
}
|
|
839
853
|
}
|
|
840
854
|
const Ie = d(!1);
|
|
841
|
-
function
|
|
855
|
+
function ol(a) {
|
|
842
856
|
ke.value || Ie.value || a !== v.value.start && (v.value.start = a, O.value.start = a, Te());
|
|
843
857
|
}
|
|
844
|
-
function
|
|
858
|
+
function nl(a) {
|
|
845
859
|
if (ke.value || Ie.value) return;
|
|
846
|
-
const l =
|
|
860
|
+
const l = Qt(a);
|
|
847
861
|
l !== v.value.end && (v.value.end = l, O.value.end = l, Te());
|
|
848
862
|
}
|
|
849
|
-
function
|
|
863
|
+
function il({ seriesIndex: a, datapoint: l }) {
|
|
850
864
|
const t = v.value.start + a;
|
|
851
865
|
ve("selectX", {
|
|
852
866
|
dataset: l,
|
|
@@ -854,43 +868,45 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
854
868
|
indexLabel: e.value.style.chart.grid.x.timeLabels.values[t]
|
|
855
869
|
});
|
|
856
870
|
}
|
|
857
|
-
return
|
|
858
|
-
getData:
|
|
859
|
-
getImage:
|
|
860
|
-
generatePdf:
|
|
871
|
+
return pa({
|
|
872
|
+
getData: Ja,
|
|
873
|
+
getImage: el,
|
|
874
|
+
generatePdf: _t,
|
|
861
875
|
generateCsv: st,
|
|
862
|
-
generateImage:
|
|
863
|
-
generateSvg:
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
876
|
+
generateImage: Mt,
|
|
877
|
+
generateSvg: Zt,
|
|
878
|
+
hideSeries: Qa,
|
|
879
|
+
showSeries: Za,
|
|
880
|
+
toggleTable: Ht,
|
|
881
|
+
toggleLabels: Xt,
|
|
882
|
+
toggleTooltip: Wt,
|
|
883
|
+
toggleAnnotator: nt,
|
|
884
|
+
toggleFullscreen: Bt
|
|
869
885
|
}), (a, l) => (r(), n("div", {
|
|
870
886
|
id: `stackbar_${D.value}`,
|
|
871
887
|
ref_key: "stackbarChart",
|
|
872
|
-
ref:
|
|
888
|
+
ref: W,
|
|
873
889
|
class: ue({ "vue-data-ui-component": !0, "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ye.value }),
|
|
874
890
|
style: ae(`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%" : ""}`),
|
|
875
|
-
onMouseenter:
|
|
876
|
-
onMouseleave:
|
|
891
|
+
onMouseenter: Ra,
|
|
892
|
+
onMouseleave: Oa
|
|
877
893
|
}, [
|
|
878
|
-
e.value.userOptions.buttons.annotator ? (r(), Z(
|
|
894
|
+
e.value.userOptions.buttons.annotator ? (r(), Z(m(za), {
|
|
879
895
|
key: 0,
|
|
880
|
-
svgRef:
|
|
896
|
+
svgRef: m(Ke),
|
|
881
897
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
882
898
|
color: e.value.style.chart.color,
|
|
883
899
|
active: Ne.value,
|
|
884
|
-
onClose:
|
|
900
|
+
onClose: nt
|
|
885
901
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
886
902
|
C(a.$slots, "userConfig", {}, void 0, !0),
|
|
887
903
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
888
904
|
key: 1,
|
|
889
905
|
ref_key: "chartTitle",
|
|
890
|
-
ref:
|
|
906
|
+
ref: gt,
|
|
891
907
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
892
908
|
}, [
|
|
893
|
-
(r(), Z(
|
|
909
|
+
(r(), Z(Kl, {
|
|
894
910
|
key: `title_${mt.value}`,
|
|
895
911
|
config: {
|
|
896
912
|
title: {
|
|
@@ -906,15 +922,15 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
906
922
|
], 512)) : b("", !0),
|
|
907
923
|
Q("div", {
|
|
908
924
|
id: `legend-top-${D.value}`
|
|
909
|
-
}, null, 8,
|
|
910
|
-
e.value.userOptions.show && he.value && (
|
|
925
|
+
}, null, 8, rs),
|
|
926
|
+
e.value.userOptions.show && he.value && (m(wt) || m(Qe)) ? (r(), Z(m(Ca), {
|
|
911
927
|
ref_key: "userOptionsRef",
|
|
912
928
|
ref: Ye,
|
|
913
|
-
key: `user_option_${
|
|
929
|
+
key: `user_option_${yt.value}`,
|
|
914
930
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
915
931
|
color: e.value.style.chart.color,
|
|
916
|
-
isPrinting:
|
|
917
|
-
isImaging:
|
|
932
|
+
isPrinting: m(zt),
|
|
933
|
+
isImaging: m(Ct),
|
|
918
934
|
uid: D.value,
|
|
919
935
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
920
936
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -925,7 +941,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
925
941
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
926
942
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
927
943
|
isFullscreen: ye.value,
|
|
928
|
-
chartElement:
|
|
944
|
+
chartElement: W.value,
|
|
929
945
|
position: e.value.userOptions.position,
|
|
930
946
|
isTooltip: T.value.showTooltip,
|
|
931
947
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -934,19 +950,19 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
934
950
|
callbacks: e.value.userOptions.callbacks,
|
|
935
951
|
printScale: e.value.userOptions.print.scale,
|
|
936
952
|
tableDialog: e.value.table.useDialog,
|
|
937
|
-
onToggleFullscreen:
|
|
938
|
-
onGeneratePdf:
|
|
953
|
+
onToggleFullscreen: Bt,
|
|
954
|
+
onGeneratePdf: m(_t),
|
|
939
955
|
onGenerateCsv: st,
|
|
940
|
-
onGenerateImage:
|
|
941
|
-
onGenerateSvg:
|
|
942
|
-
onToggleTable:
|
|
943
|
-
onToggleLabels:
|
|
944
|
-
onToggleTooltip:
|
|
945
|
-
onToggleAnnotator:
|
|
956
|
+
onGenerateImage: m(Mt),
|
|
957
|
+
onGenerateSvg: Zt,
|
|
958
|
+
onToggleTable: Ht,
|
|
959
|
+
onToggleLabels: Xt,
|
|
960
|
+
onToggleTooltip: Wt,
|
|
961
|
+
onToggleAnnotator: nt,
|
|
946
962
|
style: ae({
|
|
947
|
-
visibility:
|
|
963
|
+
visibility: m(wt) ? m(Qe) ? "visible" : "hidden" : "visible"
|
|
948
964
|
})
|
|
949
|
-
},
|
|
965
|
+
}, ht({ _: 2 }, [
|
|
950
966
|
a.$slots.menuIcon ? {
|
|
951
967
|
name: "menuIcon",
|
|
952
968
|
fn: M(({ isOpen: t, color: s }) => [
|
|
@@ -1021,12 +1037,12 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1021
1037
|
(r(), n("svg", {
|
|
1022
1038
|
ref_key: "svgRef",
|
|
1023
1039
|
ref: Ke,
|
|
1024
|
-
xmlns:
|
|
1040
|
+
xmlns: m(Rl),
|
|
1025
1041
|
viewBox: `0 0 ${u.value.chartWidth <= 0 ? 10 : u.value.chartWidth} ${u.value.chartHeight <= 0 ? 10 : u.value.chartHeight}`,
|
|
1026
|
-
class: ue({ "vue-data-ui-loading":
|
|
1042
|
+
class: ue({ "vue-data-ui-loading": m(be) }),
|
|
1027
1043
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
1028
1044
|
}, [
|
|
1029
|
-
Le(
|
|
1045
|
+
Le(m(_a)),
|
|
1030
1046
|
a.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
1031
1047
|
key: 0,
|
|
1032
1048
|
x: u.value.left,
|
|
@@ -1038,8 +1054,8 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1038
1054
|
}
|
|
1039
1055
|
}, [
|
|
1040
1056
|
C(a.$slots, "chart-background", {}, void 0, !0)
|
|
1041
|
-
], 8,
|
|
1042
|
-
e.value.style.chart.bars.gradient.show ? (r(), n("defs",
|
|
1057
|
+
], 8, ns)) : b("", !0),
|
|
1058
|
+
e.value.style.chart.bars.gradient.show ? (r(), n("defs", is, [
|
|
1043
1059
|
(r(!0), n(p, null, k(L.value, (t, s) => (r(), n("linearGradient", {
|
|
1044
1060
|
id: `gradient_${t.id}`,
|
|
1045
1061
|
x1: "0%",
|
|
@@ -1050,18 +1066,18 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1050
1066
|
Q("stop", {
|
|
1051
1067
|
offset: "0%",
|
|
1052
1068
|
"stop-color": t.color
|
|
1053
|
-
}, null, 8,
|
|
1069
|
+
}, null, 8, cs),
|
|
1054
1070
|
Q("stop", {
|
|
1055
1071
|
offset: "61.8%",
|
|
1056
|
-
"stop-color":
|
|
1057
|
-
}, null, 8,
|
|
1072
|
+
"stop-color": m(Ol)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
1073
|
+
}, null, 8, vs),
|
|
1058
1074
|
Q("stop", {
|
|
1059
1075
|
offset: "100%",
|
|
1060
1076
|
"stop-color": t.color
|
|
1061
|
-
}, null, 8,
|
|
1062
|
-
], 8,
|
|
1077
|
+
}, null, 8, hs)
|
|
1078
|
+
], 8, us))), 256))
|
|
1063
1079
|
])) : b("", !0),
|
|
1064
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), n(p, { key: 2 }, k(
|
|
1080
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), n(p, { key: 2 }, k(H.value, (t, s) => (r(), n("line", {
|
|
1065
1081
|
x1: u.value.left,
|
|
1066
1082
|
x2: u.value.right,
|
|
1067
1083
|
y1: t.y,
|
|
@@ -1070,28 +1086,28 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1070
1086
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1071
1087
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1072
1088
|
"stroke-linecap": "round"
|
|
1073
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, ds))), 256)) : b("", !0),
|
|
1074
1090
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), n(p, { key: 3 }, k(v.value.end - v.value.start + 1, (t, s) => (r(), n("line", {
|
|
1075
1091
|
x1: u.value.left,
|
|
1076
1092
|
x2: u.value.right,
|
|
1077
|
-
y1: u.value.top +
|
|
1078
|
-
y2: u.value.top +
|
|
1093
|
+
y1: u.value.top + f.value * s,
|
|
1094
|
+
y2: u.value.top + f.value * s,
|
|
1079
1095
|
stroke: e.value.style.chart.grid.x.linesColor,
|
|
1080
1096
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1081
1097
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1082
1098
|
"stroke-linecap": "round"
|
|
1083
|
-
}, null, 8,
|
|
1099
|
+
}, null, 8, ys))), 256)) : b("", !0),
|
|
1084
1100
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), n(p, { key: 4 }, k(v.value.end - v.value.start + 1, (t, s) => (r(), n("line", {
|
|
1085
|
-
x1: u.value.left +
|
|
1086
|
-
x2: u.value.left +
|
|
1101
|
+
x1: u.value.left + f.value * s,
|
|
1102
|
+
x2: u.value.left + f.value * s,
|
|
1087
1103
|
y1: u.value.top,
|
|
1088
1104
|
y2: u.value.bottom,
|
|
1089
1105
|
stroke: e.value.style.chart.grid.y.linesColor,
|
|
1090
1106
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1091
1107
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1092
1108
|
"stroke-linecap": "round"
|
|
1093
|
-
}, null, 8,
|
|
1094
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), n(p, { key: 5 }, k(
|
|
1109
|
+
}, null, 8, gs))), 256)) : b("", !0),
|
|
1110
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), n(p, { key: 5 }, k(H.value, (t, s) => (r(), n("line", {
|
|
1095
1111
|
x1: t.horizontal_x,
|
|
1096
1112
|
x2: t.horizontal_x,
|
|
1097
1113
|
y1: u.value.top,
|
|
@@ -1100,9 +1116,9 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1100
1116
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1101
1117
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1102
1118
|
"stroke-linecap": "round"
|
|
1103
|
-
}, null, 8,
|
|
1119
|
+
}, null, 8, bs))), 256)) : b("", !0),
|
|
1104
1120
|
(r(!0), n(p, null, k(L.value, (t, s) => (r(), n("g", null, [
|
|
1105
|
-
a.$slots.pattern ? (r(), n("defs",
|
|
1121
|
+
a.$slots.pattern ? (r(), n("defs", fs, [
|
|
1106
1122
|
C(a.$slots, "pattern", Se({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${D.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
1107
1123
|
])) : b("", !0),
|
|
1108
1124
|
e.value.orientation === "vertical" ? (r(), n(p, { key: 1 }, [
|
|
@@ -1111,57 +1127,57 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1111
1127
|
y: t.y[o] < 0 ? 0 : t.y[o],
|
|
1112
1128
|
height: t.height[o] < 0 ? 1e-4 : t.height[o] || 0,
|
|
1113
1129
|
rx: e.value.style.chart.bars.borderRadius > t.height[o] / 2 ? (t.height[o] < 0 ? 0 : t.height[o]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
1114
|
-
width:
|
|
1130
|
+
width: f.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
1115
1131
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
1116
1132
|
stroke: e.value.style.chart.backgroundColor,
|
|
1117
1133
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
1118
1134
|
"stroke-linecap": "round",
|
|
1119
1135
|
"stroke-linejoin": "round",
|
|
1120
1136
|
class: ue({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": K.value })
|
|
1121
|
-
}, null, 10,
|
|
1122
|
-
a.$slots.pattern ? (r(), n("g",
|
|
1137
|
+
}, null, 10, ms))), 256)),
|
|
1138
|
+
a.$slots.pattern ? (r(), n("g", ps, [
|
|
1123
1139
|
(r(!0), n(p, null, k(t.x, (c, o) => (r(), n("rect", {
|
|
1124
1140
|
x: c,
|
|
1125
1141
|
y: t.y[o] < 0 ? 0 : t.y[o],
|
|
1126
1142
|
height: t.height[o] < 0 ? 1e-4 : t.height[o] || 0,
|
|
1127
1143
|
rx: e.value.style.chart.bars.borderRadius > t.height[o] / 2 ? (t.height[o] < 0 ? 0 : t.height[o]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
1128
|
-
width:
|
|
1144
|
+
width: f.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
1129
1145
|
fill: `url(#pattern_${D.value}_${t.absoluteIndex})`,
|
|
1130
1146
|
stroke: e.value.style.chart.backgroundColor,
|
|
1131
1147
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
1132
1148
|
"stroke-linecap": "round",
|
|
1133
1149
|
"stroke-linejoin": "round",
|
|
1134
1150
|
class: ue({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": K.value })
|
|
1135
|
-
}, null, 10,
|
|
1151
|
+
}, null, 10, xs))), 256))
|
|
1136
1152
|
])) : b("", !0)
|
|
1137
1153
|
], 64)) : (r(), n(p, { key: 2 }, [
|
|
1138
1154
|
(r(!0), n(p, null, k(t.horizontal_x, (c, o) => (r(), n("rect", {
|
|
1139
|
-
x:
|
|
1155
|
+
x: m(Ee)(c, u.value.left),
|
|
1140
1156
|
y: t.horizontal_y[o] < 0 ? 0 : t.horizontal_y[o],
|
|
1141
|
-
width:
|
|
1157
|
+
width: m(Ee)(t.horizontal_width[o] < 0 ? 1e-4 : t.horizontal_width[o]),
|
|
1142
1158
|
rx: e.value.style.chart.bars.borderRadius > t.height[o] / 2 ? (t.height[o] < 0 ? 0 : t.height[o]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
1143
|
-
height:
|
|
1159
|
+
height: f.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
1144
1160
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
1145
1161
|
stroke: e.value.style.chart.backgroundColor,
|
|
1146
1162
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
1147
1163
|
"stroke-linecap": "round",
|
|
1148
1164
|
"stroke-linejoin": "round",
|
|
1149
1165
|
class: ue({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": K.value })
|
|
1150
|
-
}, null, 10,
|
|
1151
|
-
a.$slots.pattern ? (r(), n("g",
|
|
1166
|
+
}, null, 10, ks))), 256)),
|
|
1167
|
+
a.$slots.pattern ? (r(), n("g", ws, [
|
|
1152
1168
|
(r(!0), n(p, null, k(t.horizontal_x, (c, o) => (r(), n("rect", {
|
|
1153
|
-
x:
|
|
1169
|
+
x: m(Ee)(c, u.value.left),
|
|
1154
1170
|
y: t.horizontal_y[o] < 0 ? 0 : t.horizontal_y[o],
|
|
1155
|
-
width:
|
|
1171
|
+
width: m(Ee)(t.horizontal_width[o] < 0 ? 1e-4 : t.horizontal_width[o]),
|
|
1156
1172
|
rx: e.value.style.chart.bars.borderRadius > t.height[o] / 2 ? (t.height[o] < 0 ? 0 : t.height[o]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
1157
|
-
height:
|
|
1173
|
+
height: f.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
1158
1174
|
fill: `url(#pattern_${D.value}_${t.absoluteIndex})`,
|
|
1159
1175
|
stroke: e.value.style.chart.backgroundColor,
|
|
1160
1176
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
1161
1177
|
"stroke-linecap": "round",
|
|
1162
1178
|
"stroke-linejoin": "round",
|
|
1163
1179
|
class: ue({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": K.value })
|
|
1164
|
-
}, null, 10,
|
|
1180
|
+
}, null, 10, Ls))), 256))
|
|
1165
1181
|
])) : b("", !0)
|
|
1166
1182
|
], 64))
|
|
1167
1183
|
]))), 256)),
|
|
@@ -1175,7 +1191,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1175
1191
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
1176
1192
|
"stroke-linecap": "round",
|
|
1177
1193
|
"stroke-linejoin": "round"
|
|
1178
|
-
}, null, 8,
|
|
1194
|
+
}, null, 8, Ss)) : b("", !0),
|
|
1179
1195
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), n("line", {
|
|
1180
1196
|
key: 7,
|
|
1181
1197
|
x1: u.value.left,
|
|
@@ -1186,7 +1202,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1186
1202
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
1187
1203
|
"stroke-linecap": "round",
|
|
1188
1204
|
"stroke-linejoin": "round"
|
|
1189
|
-
}, null, 8,
|
|
1205
|
+
}, null, 8, zs)) : b("", !0),
|
|
1190
1206
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), n("text", {
|
|
1191
1207
|
key: 8,
|
|
1192
1208
|
ref_key: "xAxisLabel",
|
|
@@ -1197,7 +1213,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1197
1213
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
1198
1214
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1199
1215
|
"text-anchor": "middle"
|
|
1200
|
-
}, F(e.value.style.chart.grid.x.axisName.text), 9,
|
|
1216
|
+
}, F(e.value.style.chart.grid.x.axisName.text), 9, Cs)) : b("", !0),
|
|
1201
1217
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), n("text", {
|
|
1202
1218
|
key: 9,
|
|
1203
1219
|
ref_key: "yAxisLabel",
|
|
@@ -1207,68 +1223,68 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1207
1223
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
1208
1224
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1209
1225
|
"text-anchor": "middle"
|
|
1210
|
-
}, F(e.value.style.chart.grid.y.axisName.text), 9,
|
|
1226
|
+
}, F(e.value.style.chart.grid.y.axisName.text), 9, _s)) : b("", !0),
|
|
1211
1227
|
T.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), n(p, { key: 10 }, [
|
|
1212
1228
|
(r(!0), n(p, null, k(L.value, (t, s) => (r(), n("g", null, [
|
|
1213
1229
|
(r(!0), n(p, null, k(t.x, (c, o) => (r(), n(p, null, [
|
|
1214
|
-
|
|
1230
|
+
qt(t.series[o], t.proportions[o]) ? (r(), n("text", {
|
|
1215
1231
|
key: 0,
|
|
1216
|
-
x: c +
|
|
1232
|
+
x: c + f.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
1217
1233
|
y: t.y[o] + t.height[o] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1218
1234
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1219
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
1235
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(ba)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1220
1236
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1221
1237
|
"text-anchor": "middle"
|
|
1222
|
-
}, F(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
1238
|
+
}, F(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Dt(t.proportions[o] * 100, t, s, o) : Ae(t.series[o], t, s, o, t.signedSeries[o])), 9, Ms)) : b("", !0)
|
|
1223
1239
|
], 64))), 256))
|
|
1224
1240
|
]))), 256)),
|
|
1225
1241
|
e.value.style.chart.bars.totalValues.show && L.value.length > 1 ? (r(), n("g", {
|
|
1226
1242
|
key: 0,
|
|
1227
1243
|
ref_key: "sumTop",
|
|
1228
|
-
ref:
|
|
1244
|
+
ref: Na
|
|
1229
1245
|
}, [
|
|
1230
|
-
(r(!0), n(p, null, k(
|
|
1246
|
+
(r(!0), n(p, null, k(Ft.value, (t, s) => (r(), n(p, null, [
|
|
1231
1247
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), n("text", {
|
|
1232
1248
|
key: 0,
|
|
1233
|
-
x: u.value.left +
|
|
1249
|
+
x: u.value.left + f.value * s + f.value / 2,
|
|
1234
1250
|
y: e.value.style.chart.bars.totalValues.fontSize,
|
|
1235
1251
|
"text-anchor": "middle",
|
|
1236
1252
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1237
1253
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1238
1254
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1239
|
-
}, F(Ae(t.value, t, s, t.sign)), 9,
|
|
1255
|
+
}, F(Ae(t.value, t, s, t.sign)), 9, Ts)) : b("", !0)
|
|
1240
1256
|
], 64))), 256))
|
|
1241
1257
|
], 512)) : b("", !0)
|
|
1242
1258
|
], 64)) : b("", !0),
|
|
1243
1259
|
T.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), n(p, { key: 11 }, [
|
|
1244
1260
|
(r(!0), n(p, null, k(L.value, (t, s) => (r(), n("g", null, [
|
|
1245
1261
|
(r(!0), n(p, null, k(t.horizontal_x, (c, o) => (r(), n(p, null, [
|
|
1246
|
-
|
|
1262
|
+
qt(t.series[o], t.proportions[o]) ? (r(), n("text", {
|
|
1247
1263
|
key: 0,
|
|
1248
1264
|
x: c + (t.horizontal_width[o] < 0 ? 1e-4 : t.horizontal_width[o]) / 2,
|
|
1249
|
-
y: t.horizontal_y[o] +
|
|
1265
|
+
y: t.horizontal_y[o] + f.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1250
1266
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1251
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
1267
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(ba)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1252
1268
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1253
1269
|
"text-anchor": "middle"
|
|
1254
|
-
}, F(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
1270
|
+
}, F(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Dt(t.proportions[o] * 100, t, s, o) : Ae(t.series[o], t, s, o, t.signedSeries[o])), 9, $s)) : b("", !0)
|
|
1255
1271
|
], 64))), 256))
|
|
1256
1272
|
]))), 256)),
|
|
1257
1273
|
e.value.style.chart.bars.totalValues.show && L.value.length > 1 ? (r(), n("g", {
|
|
1258
1274
|
key: 0,
|
|
1259
1275
|
ref_key: "sumRight",
|
|
1260
|
-
ref:
|
|
1276
|
+
ref: xt
|
|
1261
1277
|
}, [
|
|
1262
|
-
(r(!0), n(p, null, k(
|
|
1278
|
+
(r(!0), n(p, null, k(Ft.value, (t, s) => (r(), n(p, null, [
|
|
1263
1279
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), n("text", {
|
|
1264
1280
|
key: 0,
|
|
1265
1281
|
x: u.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1266
|
-
y: u.value.top +
|
|
1282
|
+
y: u.value.top + f.value * s + f.value / 2,
|
|
1267
1283
|
"text-anchor": "start",
|
|
1268
1284
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1269
1285
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1270
1286
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1271
|
-
}, F(Ae(t.value, t, s, t.sign)), 9,
|
|
1287
|
+
}, F(Ae(t.value, t, s, t.sign)), 9, As)) : b("", !0)
|
|
1272
1288
|
], 64))), 256))
|
|
1273
1289
|
], 512)) : b("", !0)
|
|
1274
1290
|
], 64)) : b("", !0),
|
|
@@ -1277,39 +1293,39 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1277
1293
|
ref_key: "scaleLabels",
|
|
1278
1294
|
ref: j
|
|
1279
1295
|
}, [
|
|
1280
|
-
(r(!0), n(p, null, k(
|
|
1296
|
+
(r(!0), n(p, null, k(H.value, (t, s) => (r(), n("line", {
|
|
1281
1297
|
x1: u.value.left,
|
|
1282
1298
|
x2: u.value.left - 6,
|
|
1283
1299
|
y1: t.y,
|
|
1284
1300
|
y2: t.y,
|
|
1285
1301
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1286
1302
|
"stroke-width": 1
|
|
1287
|
-
}, null, 8,
|
|
1288
|
-
(r(!0), n(p, null, k(
|
|
1303
|
+
}, null, 8, Ps))), 256)),
|
|
1304
|
+
(r(!0), n(p, null, k(H.value, (t, s) => (r(), n("text", {
|
|
1289
1305
|
x: t.x,
|
|
1290
1306
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1291
1307
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1292
1308
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1293
1309
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1294
1310
|
"text-anchor": "end"
|
|
1295
|
-
}, F(
|
|
1311
|
+
}, F(m(Ue)(
|
|
1296
1312
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1297
1313
|
t.value,
|
|
1298
|
-
|
|
1314
|
+
m(re)({
|
|
1299
1315
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1300
1316
|
v: t.value,
|
|
1301
1317
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1302
1318
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1303
1319
|
}),
|
|
1304
1320
|
{ datapoint: t }
|
|
1305
|
-
)), 9,
|
|
1321
|
+
)), 9, Ns))), 256))
|
|
1306
1322
|
], 512)) : b("", !0),
|
|
1307
1323
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), n("g", {
|
|
1308
1324
|
key: 13,
|
|
1309
1325
|
ref_key: "scaleLabels",
|
|
1310
1326
|
ref: j
|
|
1311
1327
|
}, [
|
|
1312
|
-
(r(!0), n(p, null, k(
|
|
1328
|
+
(r(!0), n(p, null, k(H.value, (t, s) => (r(), n("line", {
|
|
1313
1329
|
x1: t.horizontal_x,
|
|
1314
1330
|
x2: t.horizontal_x,
|
|
1315
1331
|
y1: u.value.bottom,
|
|
@@ -1317,47 +1333,47 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1317
1333
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1318
1334
|
"stroke-width": 1,
|
|
1319
1335
|
"stroke-linecap": "round"
|
|
1320
|
-
}, null, 8,
|
|
1321
|
-
(r(!0), n(p, null, k(
|
|
1336
|
+
}, null, 8, Rs))), 256)),
|
|
1337
|
+
(r(!0), n(p, null, k(H.value, (t, s) => (r(), n("text", {
|
|
1322
1338
|
class: "vue-data-ui-time-label",
|
|
1323
1339
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1324
1340
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1325
1341
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1326
1342
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1327
1343
|
transform: `translate(${t.horizontal_x}, ${u.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})`
|
|
1328
|
-
}, F(
|
|
1344
|
+
}, F(m(Ue)(
|
|
1329
1345
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1330
1346
|
t.value,
|
|
1331
|
-
|
|
1347
|
+
m(re)({
|
|
1332
1348
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1333
1349
|
v: t.value,
|
|
1334
1350
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1335
1351
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1336
1352
|
}),
|
|
1337
1353
|
{ datapoint: t }
|
|
1338
|
-
)), 9,
|
|
1354
|
+
)), 9, Os))), 256))
|
|
1339
1355
|
], 512)) : b("", !0),
|
|
1340
1356
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), n("g", {
|
|
1341
1357
|
key: 14,
|
|
1342
1358
|
ref_key: "timeLabelsEls",
|
|
1343
1359
|
ref: ee
|
|
1344
1360
|
}, [
|
|
1345
|
-
a.$slots["time-label"] ? (r(), n("g",
|
|
1346
|
-
(r(!0), n(p, null, k(
|
|
1361
|
+
a.$slots["time-label"] ? (r(), n("g", Is, [
|
|
1362
|
+
(r(!0), n(p, null, k(Rt.value, (t, s) => (r(), n("g", null, [
|
|
1347
1363
|
C(a.$slots, "time-label", Se({ ref_for: !0 }, {
|
|
1348
|
-
x: u.value.left +
|
|
1364
|
+
x: u.value.left + f.value * s + f.value / 2,
|
|
1349
1365
|
y: u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1350
1366
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1351
1367
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1352
|
-
transform: `translate(${u.value.left +
|
|
1368
|
+
transform: `translate(${u.value.left + f.value * s + f.value / 2}, ${u.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})`,
|
|
1353
1369
|
absoluteIndex: t.absoluteIndex,
|
|
1354
1370
|
content: t.text,
|
|
1355
1371
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1356
1372
|
show: !0
|
|
1357
1373
|
}), void 0, !0)
|
|
1358
1374
|
]))), 256))
|
|
1359
|
-
])) : (r(), n("g",
|
|
1360
|
-
(r(!0), n(p, null, k(
|
|
1375
|
+
])) : (r(), n("g", Fs, [
|
|
1376
|
+
(r(!0), n(p, null, k(Rt.value, (t, s) => (r(), n("g", null, [
|
|
1361
1377
|
String(t.text).includes(`
|
|
1362
1378
|
`) ? (r(), n("text", {
|
|
1363
1379
|
key: s + "-multi",
|
|
@@ -1366,13 +1382,13 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1366
1382
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1367
1383
|
transform: `
|
|
1368
1384
|
translate(
|
|
1369
|
-
${u.value.left +
|
|
1385
|
+
${u.value.left + f.value * s + f.value / 2},
|
|
1370
1386
|
${u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1371
1387
|
),
|
|
1372
1388
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1373
1389
|
`,
|
|
1374
1390
|
style: { cursor: "pointer" },
|
|
1375
|
-
innerHTML:
|
|
1391
|
+
innerHTML: m(Il)({
|
|
1376
1392
|
content: String(t.text),
|
|
1377
1393
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1378
1394
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -1380,17 +1396,17 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1380
1396
|
y: 0
|
|
1381
1397
|
}),
|
|
1382
1398
|
onClick: () => Re(t, s)
|
|
1383
|
-
}, null, 8,
|
|
1399
|
+
}, null, 8, Vs)) : (r(), n("text", {
|
|
1384
1400
|
class: "vue-data-ui-time-label",
|
|
1385
1401
|
key: s,
|
|
1386
1402
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1387
1403
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1388
1404
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1389
1405
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1390
|
-
transform: `translate(${u.value.left +
|
|
1406
|
+
transform: `translate(${u.value.left + f.value * s + f.value / 2}, ${u.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})`,
|
|
1391
1407
|
style: { cursor: "pointer" },
|
|
1392
1408
|
onClick: () => Re(t, s)
|
|
1393
|
-
}, F(t.text), 9,
|
|
1409
|
+
}, F(t.text), 9, Ds))
|
|
1394
1410
|
]))), 256))
|
|
1395
1411
|
]))
|
|
1396
1412
|
], 512)) : b("", !0),
|
|
@@ -1399,11 +1415,11 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1399
1415
|
ref_key: "timeLabelsEls",
|
|
1400
1416
|
ref: ee
|
|
1401
1417
|
}, [
|
|
1402
|
-
a.$slots["time-label"] ? (r(), n("g",
|
|
1418
|
+
a.$slots["time-label"] ? (r(), n("g", Es, [
|
|
1403
1419
|
(r(!0), n(p, null, k(R.value, (t, s) => (r(), n("g", null, [
|
|
1404
1420
|
C(a.$slots, "time-label", Se({ ref_for: !0 }, {
|
|
1405
1421
|
x: u.value.left - 8,
|
|
1406
|
-
y: u.value.top +
|
|
1422
|
+
y: u.value.top + f.value * s + f.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1407
1423
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1408
1424
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1409
1425
|
transform: null,
|
|
@@ -1413,7 +1429,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1413
1429
|
show: !0
|
|
1414
1430
|
}), void 0, !0)
|
|
1415
1431
|
]))), 256))
|
|
1416
|
-
])) : (r(), n("g",
|
|
1432
|
+
])) : (r(), n("g", Us, [
|
|
1417
1433
|
(r(!0), n(p, null, k(R.value, (t, s) => (r(), n("g", null, [
|
|
1418
1434
|
String(t.text).includes(`
|
|
1419
1435
|
`) ? (r(), n("text", {
|
|
@@ -1423,73 +1439,73 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1423
1439
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1424
1440
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1425
1441
|
x: u.value.left - 8,
|
|
1426
|
-
y: u.value.top +
|
|
1442
|
+
y: u.value.top + f.value * s + f.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1427
1443
|
style: { cursor: "pointer" },
|
|
1428
1444
|
onClick: () => Re(t, s),
|
|
1429
|
-
innerHTML:
|
|
1445
|
+
innerHTML: m(Fl)({
|
|
1430
1446
|
content: String(t.text),
|
|
1431
1447
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1432
1448
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1433
1449
|
x: u.value.left - 8,
|
|
1434
1450
|
y: 0
|
|
1435
1451
|
})
|
|
1436
|
-
}, null, 8,
|
|
1452
|
+
}, null, 8, Hs)) : (r(), n("text", {
|
|
1437
1453
|
key: 0,
|
|
1438
1454
|
"text-anchor": "end",
|
|
1439
1455
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1440
1456
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1441
1457
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1442
1458
|
x: u.value.left - 8,
|
|
1443
|
-
y: u.value.top +
|
|
1459
|
+
y: u.value.top + f.value * s + f.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1444
1460
|
style: {
|
|
1445
1461
|
cursor: "pointer"
|
|
1446
1462
|
},
|
|
1447
1463
|
onClick: () => Re(t, s)
|
|
1448
|
-
}, F(t.text), 9,
|
|
1464
|
+
}, F(t.text), 9, Bs))
|
|
1449
1465
|
]))), 256))
|
|
1450
1466
|
]))
|
|
1451
1467
|
], 512)) : b("", !0),
|
|
1452
1468
|
T.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), n(p, { key: 16 }, k(v.value.end - v.value.start, (t, s) => (r(), n("rect", {
|
|
1453
|
-
x: u.value.left + s *
|
|
1469
|
+
x: u.value.left + s * f.value,
|
|
1454
1470
|
y: u.value.top,
|
|
1455
|
-
width:
|
|
1471
|
+
width: f.value,
|
|
1456
1472
|
height: u.value.height < 0 ? 0 : u.value.height,
|
|
1457
|
-
onClick: () =>
|
|
1458
|
-
onMouseenter: () =>
|
|
1473
|
+
onClick: () => Vt(s),
|
|
1474
|
+
onMouseenter: () => Ut(s),
|
|
1459
1475
|
onMouseleave: () => Et(s),
|
|
1460
|
-
fill: s ===
|
|
1476
|
+
fill: s === B.value || s === Je.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1461
1477
|
style: ae({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1462
|
-
}, null, 44,
|
|
1478
|
+
}, null, 44, Xs))), 256)) : b("", !0),
|
|
1463
1479
|
T.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), n(p, { key: 17 }, k(v.value.end - v.value.start, (t, s) => (r(), n("rect", {
|
|
1464
1480
|
x: u.value.left,
|
|
1465
|
-
y: u.value.top + s *
|
|
1481
|
+
y: u.value.top + s * f.value,
|
|
1466
1482
|
width: u.value.width < 0 ? 0 : u.value.width,
|
|
1467
|
-
height:
|
|
1468
|
-
onClick: () =>
|
|
1469
|
-
onMouseenter: () =>
|
|
1483
|
+
height: f.value,
|
|
1484
|
+
onClick: () => Vt(s),
|
|
1485
|
+
onMouseenter: () => Ut(s),
|
|
1470
1486
|
onMouseleave: () => Et(s),
|
|
1471
|
-
fill: s ===
|
|
1487
|
+
fill: s === B.value || s === Je.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1472
1488
|
style: ae({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1473
|
-
}, null, 44,
|
|
1474
|
-
|
|
1489
|
+
}, null, 44, Ws))), 256)) : b("", !0),
|
|
1490
|
+
At.value ? (r(), n("rect", Se({ key: 18 }, Ea.value, {
|
|
1475
1491
|
"data-start": v.value.start,
|
|
1476
1492
|
"data-end": v.value.end
|
|
1477
|
-
}), null, 16,
|
|
1493
|
+
}), null, 16, Ys)) : b("", !0),
|
|
1478
1494
|
C(a.$slots, "svg", {
|
|
1479
1495
|
svg: {
|
|
1480
1496
|
drawingArea: u.value,
|
|
1481
1497
|
data: L.value
|
|
1482
1498
|
}
|
|
1483
1499
|
}, void 0, !0)
|
|
1484
|
-
], 14,
|
|
1485
|
-
a.$slots.watermark ? (r(), n("div",
|
|
1486
|
-
C(a.$slots, "watermark", le(se({ isPrinting:
|
|
1500
|
+
], 14, os)),
|
|
1501
|
+
a.$slots.watermark ? (r(), n("div", Gs, [
|
|
1502
|
+
C(a.$slots, "watermark", le(se({ isPrinting: m(zt) || m(Ct) })), void 0, !0)
|
|
1487
1503
|
])) : b("", !0),
|
|
1488
|
-
e.value.style.chart.zoom.show &&
|
|
1504
|
+
e.value.style.chart.zoom.show && P.value > 6 && he.value && Kt.value ? (r(), Z(as, {
|
|
1489
1505
|
key: 4,
|
|
1490
1506
|
ref_key: "chartSlicer",
|
|
1491
1507
|
ref: de,
|
|
1492
|
-
allMinimaps:
|
|
1508
|
+
allMinimaps: Ha.value,
|
|
1493
1509
|
background: e.value.style.chart.zoom.color,
|
|
1494
1510
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1495
1511
|
customFormat: e.value.style.chart.zoom.customFormat,
|
|
@@ -1502,7 +1518,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1502
1518
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
1503
1519
|
immediate: !e.value.style.chart.zoom.preview.enable,
|
|
1504
1520
|
inputColor: e.value.style.chart.zoom.color,
|
|
1505
|
-
isPreview:
|
|
1521
|
+
isPreview: At.value,
|
|
1506
1522
|
labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? R.value[0].text : "",
|
|
1507
1523
|
labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? R.value.at(-1).text : "",
|
|
1508
1524
|
max: Math.max(...Be.dataset.map((t) => t.series.length)),
|
|
@@ -1514,13 +1530,13 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1514
1530
|
minimapMerged: !1,
|
|
1515
1531
|
minimapSelectedColor: e.value.style.chart.zoom.minimap.selectedColor,
|
|
1516
1532
|
minimapSelectedColorOpacity: e.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1517
|
-
minimapSelectedIndex:
|
|
1533
|
+
minimapSelectedIndex: B.value,
|
|
1518
1534
|
minimapSelectionRadius: 1,
|
|
1519
|
-
preciseLabels:
|
|
1535
|
+
preciseLabels: It.value.length ? It.value : pe.value,
|
|
1520
1536
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Be.dataset.map((t) => t.series.length)),
|
|
1521
1537
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1522
1538
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1523
|
-
selectedSeries:
|
|
1539
|
+
selectedSeries: Ya.value,
|
|
1524
1540
|
smoothMinimap: !1,
|
|
1525
1541
|
start: v.value.start,
|
|
1526
1542
|
textColor: e.value.style.chart.color,
|
|
@@ -1529,12 +1545,12 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1529
1545
|
valueEnd: v.value.end,
|
|
1530
1546
|
valueStart: v.value.start,
|
|
1531
1547
|
verticalHandles: e.value.style.chart.zoom.minimap.verticalHandles,
|
|
1532
|
-
"onUpdate:end":
|
|
1533
|
-
"onUpdate:start":
|
|
1534
|
-
onTrapMouse:
|
|
1535
|
-
onReset:
|
|
1536
|
-
onFutureEnd: l[0] || (l[0] = (t) =>
|
|
1537
|
-
onFutureStart: l[1] || (l[1] = (t) =>
|
|
1548
|
+
"onUpdate:end": nl,
|
|
1549
|
+
"onUpdate:start": ol,
|
|
1550
|
+
onTrapMouse: Ua,
|
|
1551
|
+
onReset: Nt,
|
|
1552
|
+
onFutureEnd: l[0] || (l[0] = (t) => Pt("end", t)),
|
|
1553
|
+
onFutureStart: l[1] || (l[1] = (t) => Pt("start", t))
|
|
1538
1554
|
}, {
|
|
1539
1555
|
"reset-action": M(({ reset: t }) => [
|
|
1540
1556
|
C(a.$slots, "reset-action", le(se({ reset: t })), void 0, !0)
|
|
@@ -1548,7 +1564,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1548
1564
|
x: _ === 0 ? w - c * (e.value.style.chart.bars.gapRatio / 4) : w - c / 2,
|
|
1549
1565
|
y: Math.max(0, Math.min(s, o.yMinimap({ minimapH: s })[_])),
|
|
1550
1566
|
height: o.heightMinimap({ minimapH: s })[_],
|
|
1551
|
-
width: [0,
|
|
1567
|
+
width: [0, P.value - 1].includes(_) ? c * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 : c * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
1552
1568
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${o.id})` : o.color,
|
|
1553
1569
|
stroke: e.value.style.chart.backgroundColor,
|
|
1554
1570
|
"stroke-width": 0.5,
|
|
@@ -1558,12 +1574,12 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1558
1574
|
style: ae({
|
|
1559
1575
|
opacity: _ >= O.value.start && _ <= O.value.end ? 1 : 0.62
|
|
1560
1576
|
})
|
|
1561
|
-
}, null, 12,
|
|
1577
|
+
}, null, 12, qs))), 128))
|
|
1562
1578
|
]))), 128))
|
|
1563
1579
|
]),
|
|
1564
1580
|
_: 3
|
|
1565
1581
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : b("", !0),
|
|
1566
|
-
Le(
|
|
1582
|
+
Le(m(ka), {
|
|
1567
1583
|
show: T.value.showTooltip && He.value,
|
|
1568
1584
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1569
1585
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1574,10 +1590,10 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1574
1590
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1575
1591
|
position: e.value.style.chart.tooltip.position,
|
|
1576
1592
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1577
|
-
parent:
|
|
1593
|
+
parent: W.value,
|
|
1578
1594
|
content: We.value,
|
|
1579
1595
|
isFullscreen: ye.value,
|
|
1580
|
-
isCustom:
|
|
1596
|
+
isCustom: m(fa)(e.value.style.chart.tooltip.customFormat),
|
|
1581
1597
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1582
1598
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1583
1599
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
@@ -1593,34 +1609,34 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1593
1609
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1594
1610
|
Q("div", {
|
|
1595
1611
|
id: `legend-bottom-${D.value}`
|
|
1596
|
-
}, null, 8,
|
|
1597
|
-
|
|
1612
|
+
}, null, 8, Js),
|
|
1613
|
+
pt.value ? (r(), Z(zl, {
|
|
1598
1614
|
key: 5,
|
|
1599
1615
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
1600
1616
|
}, [
|
|
1601
1617
|
Q("div", {
|
|
1602
1618
|
ref_key: "chartLegend",
|
|
1603
|
-
ref:
|
|
1619
|
+
ref: bt
|
|
1604
1620
|
}, [
|
|
1605
|
-
e.value.style.chart.legend.show ? (r(), Z(
|
|
1621
|
+
e.value.style.chart.legend.show ? (r(), Z(ts, {
|
|
1606
1622
|
key: 0,
|
|
1607
|
-
legendSet:
|
|
1608
|
-
config:
|
|
1623
|
+
legendSet: ot.value,
|
|
1624
|
+
config: Ka.value,
|
|
1609
1625
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1610
|
-
},
|
|
1626
|
+
}, ht({
|
|
1611
1627
|
item: M(({ legend: t }) => [
|
|
1612
|
-
|
|
1628
|
+
m(be) ? b("", !0) : (r(), n("div", {
|
|
1613
1629
|
key: 0,
|
|
1614
1630
|
onClick: (s) => t.segregate(),
|
|
1615
|
-
style: ae(`opacity:${
|
|
1616
|
-
}, F(t.name), 13,
|
|
1631
|
+
style: ae(`opacity:${A.value.includes(t.id) ? 0.5 : 1}`)
|
|
1632
|
+
}, F(t.name), 13, Zs))
|
|
1617
1633
|
]),
|
|
1618
1634
|
_: 2
|
|
1619
1635
|
}, [
|
|
1620
1636
|
a.$slots.pattern ? {
|
|
1621
1637
|
name: "legend-pattern",
|
|
1622
1638
|
fn: M(({ legend: t, index: s }) => [
|
|
1623
|
-
Le(
|
|
1639
|
+
Le(jl, {
|
|
1624
1640
|
shape: t.shape,
|
|
1625
1641
|
radius: 30,
|
|
1626
1642
|
stroke: "none",
|
|
@@ -1632,38 +1648,38 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1632
1648
|
} : void 0
|
|
1633
1649
|
]), 1032, ["legendSet", "config"])) : C(a.$slots, "legend", {
|
|
1634
1650
|
key: 1,
|
|
1635
|
-
legend:
|
|
1651
|
+
legend: ot.value
|
|
1636
1652
|
}, void 0, !0)
|
|
1637
1653
|
], 512)
|
|
1638
1654
|
], 8, ["to"])) : b("", !0),
|
|
1639
1655
|
a.$slots.source ? (r(), n("div", {
|
|
1640
1656
|
key: 6,
|
|
1641
1657
|
ref_key: "source",
|
|
1642
|
-
ref:
|
|
1658
|
+
ref: ft,
|
|
1643
1659
|
dir: "auto"
|
|
1644
1660
|
}, [
|
|
1645
1661
|
C(a.$slots, "source", {}, void 0, !0)
|
|
1646
1662
|
], 512)) : b("", !0),
|
|
1647
|
-
he.value && e.value.userOptions.buttons.table ? (r(), Z(
|
|
1663
|
+
he.value && e.value.userOptions.buttons.table ? (r(), Z(Cl(xe.value.component), Se({ key: 7 }, xe.value.props, {
|
|
1648
1664
|
ref_key: "tableUnit",
|
|
1649
1665
|
ref: ge,
|
|
1650
|
-
onClose:
|
|
1651
|
-
}),
|
|
1666
|
+
onClose: Jt
|
|
1667
|
+
}), ht({
|
|
1652
1668
|
content: M(() => [
|
|
1653
|
-
Le(
|
|
1669
|
+
Le(m(Sa), {
|
|
1654
1670
|
colNames: Pe.value.colNames,
|
|
1655
1671
|
head: Pe.value.head,
|
|
1656
1672
|
body: Pe.value.body,
|
|
1657
1673
|
config: Pe.value.config,
|
|
1658
1674
|
title: e.value.table.useDialog ? "" : xe.value.title,
|
|
1659
1675
|
withCloseButton: !e.value.table.useDialog,
|
|
1660
|
-
onClose:
|
|
1676
|
+
onClose: Jt
|
|
1661
1677
|
}, {
|
|
1662
1678
|
th: M(({ th: t }) => [
|
|
1663
|
-
Q("div", { innerHTML: t }, null, 8,
|
|
1679
|
+
Q("div", { innerHTML: t }, null, 8, Qs)
|
|
1664
1680
|
]),
|
|
1665
1681
|
td: M(({ td: t }) => [
|
|
1666
|
-
|
|
1682
|
+
ua(F(isNaN(Number(t)) ? t : m(re)({
|
|
1667
1683
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1668
1684
|
v: t,
|
|
1669
1685
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1678,7 +1694,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1678
1694
|
e.value.table.useDialog ? {
|
|
1679
1695
|
name: "title",
|
|
1680
1696
|
fn: M(() => [
|
|
1681
|
-
|
|
1697
|
+
ua(F(xe.value.title), 1)
|
|
1682
1698
|
]),
|
|
1683
1699
|
key: "0"
|
|
1684
1700
|
} : void 0,
|
|
@@ -1690,7 +1706,7 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1690
1706
|
class: "vue-ui-user-options-button",
|
|
1691
1707
|
onClick: l[3] || (l[3] = (t) => st(e.value.userOptions.callbacks.csv))
|
|
1692
1708
|
}, [
|
|
1693
|
-
Le(
|
|
1709
|
+
Le(m(wa), {
|
|
1694
1710
|
name: "excel",
|
|
1695
1711
|
stroke: xe.value.props.color
|
|
1696
1712
|
}, null, 8, ["stroke"])
|
|
@@ -1699,10 +1715,10 @@ const ts = ["id"], as = ["id"], ls = ["xmlns", "viewBox"], ss = ["x", "y", "widt
|
|
|
1699
1715
|
key: "1"
|
|
1700
1716
|
} : void 0
|
|
1701
1717
|
]), 1040)) : b("", !0),
|
|
1702
|
-
|
|
1703
|
-
], 46,
|
|
1718
|
+
m(be) ? (r(), Z(Xl, { key: 8 })) : b("", !0)
|
|
1719
|
+
], 46, ss));
|
|
1704
1720
|
}
|
|
1705
|
-
},
|
|
1721
|
+
}, mr = /* @__PURE__ */ ls(Ks, [["__scopeId", "data-v-752f06ac"]]);
|
|
1706
1722
|
export {
|
|
1707
|
-
|
|
1723
|
+
mr as default
|
|
1708
1724
|
};
|