vue-data-ui 3.0.0-next.38 → 3.0.0-next.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Cxfs_jDk.js → Arrow-P0THv9hJ.js} +1 -1
- package/dist/{BaseDraggableDialog-D8bUhwCR.js → BaseDraggableDialog-C60bWiXw.js} +2 -2
- package/dist/{BaseIcon-B5hDik6M.js → BaseIcon-DF8PG757.js} +1 -1
- package/dist/{ColorPicker-X30bIjOM.js → ColorPicker-DzPsPvtV.js} +2 -2
- package/dist/{DataTable-BrP5zT2y.js → DataTable-C_Oatkz8.js} +2 -2
- package/dist/{Legend-Bok1w9PE.js → Legend-GkKew4y4.js} +2 -2
- package/dist/{NonSvgPenAndPaper-mFU4kkja.js → NonSvgPenAndPaper-D-6dafCc.js} +3 -3
- package/dist/{PackageVersion-DoJRJ_yZ.js → PackageVersion-BjHEQOVp.js} +1 -1
- package/dist/{PenAndPaper-BKLSbUJJ.js → PenAndPaper-1_ql5aDz.js} +3 -3
- package/dist/{Shape-Bp0uUbyi.js → Shape-D3jjCVOm.js} +1 -1
- package/dist/{Slicer-BIL4fQe9.js → Slicer-PF3j6nF0.js} +2 -2
- package/dist/{SparkTooltip-BrA3pWY1.js → SparkTooltip-CDDM_MvG.js} +1 -1
- package/dist/{Title-C4mHBlGm.js → Title-BjHTZ-Df.js} +1 -1
- package/dist/{Tooltip-CIAaZqi-.js → Tooltip-B-O7xDu-.js} +1 -1
- package/dist/{UserOptions-CtdmjrzM.js → UserOptions-C7G3m5Ki.js} +2 -2
- package/dist/{dom-to-png-D7urYnQL.js → dom-to-png-DTayWe5h.js} +1 -1
- package/dist/{img-u92jJi7s.js → img-C6WSPNAq.js} +1 -1
- package/dist/{index-Do8Yy3T8.js → index-DUUxs_qS.js} +18 -1
- package/dist/{pdf-Da78hVzB.js → pdf-DwnbNdbu.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +32 -0
- package/dist/types/vue-data-ui.d.ts +32 -0
- package/dist/{useNestedProp-C7A9vyBD.js → useNestedProp-C6f5ZZK8.js} +1 -1
- package/dist/{usePrinter-BvP9oj3O.js → usePrinter-DxTbSIjd.js} +2 -2
- package/dist/{vue-data-ui-BVss51hf.js → vue-data-ui-hQ3TZvNt.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CsijfJeX.js → vue-ui-3d-bar-C_4aSilZ.js} +6 -6
- package/dist/{vue-ui-accordion-DqXZmmXi.js → vue-ui-accordion-BeFObvav.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CLr8-9V2.js → vue-ui-age-pyramid-BOk16WzC.js} +6 -6
- package/dist/{vue-ui-annotator-BKH5uBbZ.js → vue-ui-annotator-DahkRQKA.js} +2 -2
- package/dist/{vue-ui-bullet-Bv-AKTw8.js → vue-ui-bullet-BEFug7s4.js} +7 -7
- package/dist/{vue-ui-candlestick-2MCzyUcz.js → vue-ui-candlestick-DvkUj2A0.js} +7 -7
- package/dist/{vue-ui-carousel-table-cw5HlSnS.js → vue-ui-carousel-table-D0rAZGc4.js} +4 -4
- package/dist/{vue-ui-chestnut-BgsrweZJ.js → vue-ui-chestnut-BO2Cvdrt.js} +5 -5
- package/dist/{vue-ui-chord-M_mjkpTk.js → vue-ui-chord-BlafphQh.js} +8 -8
- package/dist/{vue-ui-circle-pack-Mpyhugsj.js → vue-ui-circle-pack-BNSXd2rt.js} +6 -6
- package/dist/{vue-ui-cursor-DSM1Yx0w.js → vue-ui-cursor-Cuk4Qe_A.js} +2 -2
- package/dist/{vue-ui-dashboard-DRzgS8bH.js → vue-ui-dashboard-CcHv80pD.js} +62 -62
- package/dist/{vue-ui-digits-Cc0q_XUJ.js → vue-ui-digits-C7bNX2N2.js} +2 -2
- package/dist/{vue-ui-donut-BcWb6mkK.js → vue-ui-donut-D0L4SwIj.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DwGNKYA1.js → vue-ui-donut-evolution-BO9ZRmql.js} +8 -8
- package/dist/{vue-ui-dumbbell-ZyS0CtQ-.js → vue-ui-dumbbell-BPmqlrXZ.js} +7 -7
- package/dist/{vue-ui-flow-DcjaQvd5.js → vue-ui-flow-Beo6bOni.js} +7 -7
- package/dist/{vue-ui-funnel-DnPwnTbH.js → vue-ui-funnel-DjSUKsQe.js} +6 -6
- package/dist/{vue-ui-galaxy-BUf27AcC.js → vue-ui-galaxy-un1dMnto.js} +5 -5
- package/dist/{vue-ui-gauge-y52sZ03m.js → vue-ui-gauge-MWArzmaR.js} +6 -6
- package/dist/{vue-ui-gizmo-CbOvKh62.js → vue-ui-gizmo-DBUr0fmS.js} +3 -3
- package/dist/{vue-ui-heatmap-DFcG0beX.js → vue-ui-heatmap-Dox6c8hW.js} +7 -7
- package/dist/{vue-ui-history-plot-CrEafJoS.js → vue-ui-history-plot-D-ikzE9X.js} +7 -7
- package/dist/{vue-ui-kpi-B7xxS9iY.js → vue-ui-kpi-8N-W0tsa.js} +3 -3
- package/dist/{vue-ui-mini-loader-BOoPc7za.js → vue-ui-mini-loader-aQW-Fsx5.js} +2 -2
- package/dist/{vue-ui-molecule-DjLDHkE4.js → vue-ui-molecule-Djc42gxe.js} +5 -5
- package/dist/{vue-ui-mood-radar-CDpRBAeI.js → vue-ui-mood-radar-sgtmFo72.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BB07uN8o.js → vue-ui-nested-donuts-Bk-8u_uy.js} +9 -9
- package/dist/{vue-ui-onion-QtmsKAXa.js → vue-ui-onion-OOtadQSH.js} +7 -7
- package/dist/vue-ui-parallel-coordinate-plot-CwTpPMrF.js +915 -0
- package/dist/{vue-ui-quadrant-Bbyn8jqM.js → vue-ui-quadrant-DjS6530h.js} +8 -8
- package/dist/{vue-ui-quick-chart-DpgVYsO_.js → vue-ui-quick-chart-BK5He4AJ.js} +6 -6
- package/dist/{vue-ui-radar-BQtoJTN1.js → vue-ui-radar-DLgj2nmG.js} +7 -7
- package/dist/{vue-ui-rating-CayItUX5.js → vue-ui-rating-DrZEwXtX.js} +2 -2
- package/dist/{vue-ui-relation-circle-BQPvHFqF.js → vue-ui-relation-circle-BlqJ2pti.js} +6 -6
- package/dist/{vue-ui-ridgeline-Djw8uzUc.js → vue-ui-ridgeline-D9NkO_Fj.js} +8 -8
- package/dist/{vue-ui-rings-DdW9icm5.js → vue-ui-rings-D6hf8f9b.js} +8 -8
- package/dist/{vue-ui-scatter-ko0ev9Hy.js → vue-ui-scatter-CAXX5I90.js} +8 -8
- package/dist/{vue-ui-skeleton-Btfrm6Mb.js → vue-ui-skeleton-DGkjqO1t.js} +3 -3
- package/dist/{vue-ui-smiley-CscAe46K.js → vue-ui-smiley-Dw9Y9VUo.js} +2 -2
- package/dist/{vue-ui-spark-trend-DPo61M0c.js → vue-ui-spark-trend-BAFRC_5O.js} +3 -3
- package/dist/{vue-ui-sparkbar-C3PmYQCw.js → vue-ui-sparkbar-BkwVA6Mt.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BVeKIvzV.js → vue-ui-sparkgauge-_PZctUgR.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-qQFd_Ahm.js → vue-ui-sparkhistogram-Ch81oThh.js} +4 -4
- package/dist/{vue-ui-sparkline-CS9mKrwW.js → vue-ui-sparkline-BKslg7N-.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CgQkP8A3.js → vue-ui-sparkstackbar-lZps6kNF.js} +3 -3
- package/dist/{vue-ui-stackbar-emX2SvlM.js → vue-ui-stackbar-C4fWAq5s.js} +127 -126
- package/dist/{vue-ui-strip-plot-BUBtGmhH.js → vue-ui-strip-plot-wt6lkXxk.js} +7 -7
- package/dist/{vue-ui-table-DHJ5c0TM.js → vue-ui-table-BEoHNjpQ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-YXVD2ajW.js → vue-ui-table-heatmap-CCG7ZeqB.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DehiyqPe.js → vue-ui-table-sparkline-JMGh9age.js} +4 -4
- package/dist/{vue-ui-thermometer-COQFOTU7.js → vue-ui-thermometer-DmunI8En.js} +6 -6
- package/dist/{vue-ui-timer-DG3qPM0B.js → vue-ui-timer-Dq1wbbD_.js} +5 -5
- package/dist/{vue-ui-tiremarks-BSUFcLke.js → vue-ui-tiremarks-BF0uVV_H.js} +6 -6
- package/dist/{vue-ui-treemap-BDLQFlzo.js → vue-ui-treemap-Bqw0p-oX.js} +8 -8
- package/dist/{vue-ui-vertical-bar-D37Bl2x2.js → vue-ui-vertical-bar-DBUUZIhi.js} +9 -9
- package/dist/{vue-ui-waffle-CysJSES6.js → vue-ui-waffle-D_U0Pb0j.js} +8 -8
- package/dist/{vue-ui-wheel-Cm5g4KdO.js → vue-ui-wheel-B6pXlgVh.js} +6 -6
- package/dist/{vue-ui-word-cloud-FEIoDTjf.js → vue-ui-word-cloud-2PhdAyVU.js} +6 -6
- package/dist/{vue-ui-world-CQxuqljX.js → vue-ui-world-Dn230Amg.js} +6 -6
- package/dist/{vue-ui-xy-TBO42wxL.js → vue-ui-xy-DL5mWAcS.js} +21 -21
- package/dist/{vue-ui-xy-canvas-DyPds5xu.js → vue-ui-xy-canvas-CwG_qClQ.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-parallel-coordinate-plot-C9igDR3-.js +0 -809
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as wa, c as At, A as La, t as za, p as
|
|
3
|
-
import { u as Et } from "./useNestedProp-C7A9vyBD.js";
|
|
1
|
+
import { defineAsyncComponent as te, useSlots as pa, computed as x, ref as b, onMounted as Ct, toRefs as xa, watch as De, shallowRef as _t, onBeforeUnmount as St, watchEffect as $t, nextTick as Tt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Z, normalizeClass as ae, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as le, createVNode as xe, createSlots as Mt, withCtx as C, normalizeProps as H, guardReactiveProps as U, Fragment as g, renderList as m, mergeProps as Fe, toDisplayString as M, createTextVNode as ka } from "vue";
|
|
2
|
+
import { u as wa, c as At, A as La, t as za, p as ke, a as Ca, C as se, b as _a, o as Nt, e as It, g as Sa, d as $a, an as we, ac as Rt, D as Ot, X as Ta, l as Ma, aa as Le, F as Pt, i as ze, f as Q, I as Aa, a0 as Na, x as Vt, q as Ia, r as Ra, y as Oa } from "./index-DUUxs_qS.js";
|
|
4
3
|
import { t as He, u as Pa } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Va } from "./usePrinter-
|
|
6
|
-
import { u as Ea } from "./
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as Fa } from "./
|
|
9
|
-
import Ha from "./
|
|
10
|
-
import {
|
|
11
|
-
import Ba from "./
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import Xa from "./
|
|
15
|
-
import {
|
|
4
|
+
import { u as Va } from "./usePrinter-DxTbSIjd.js";
|
|
5
|
+
import { u as Ea, B as Da } from "./BaseScanner-DIK2NTdp.js";
|
|
6
|
+
import { u as Et } from "./useNestedProp-C6f5ZZK8.js";
|
|
7
|
+
import { u as Fa } from "./useTimeLabels-DkzmKfZn.js";
|
|
8
|
+
import { u as Ha } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Ua } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Ba } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Wa from "./Legend-GkKew4y4.js";
|
|
12
|
+
import { S as Ya } from "./Slicer-PF3j6nF0.js";
|
|
13
|
+
import Xa from "./Title-BjHTZ-Df.js";
|
|
14
|
+
import { _ as Ga } from "./Shape-D3jjCVOm.js";
|
|
15
|
+
import Ja from "./img-C6WSPNAq.js";
|
|
16
16
|
import { _ as qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"], ja = { key: 1 }, el = ["id"], tl = ["stop-color"], al = ["stop-color"], ll = ["stop-color"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = { key: 0 }, ul = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], cl = { key: 0 }, hl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], vl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], dl = { key: 0 }, yl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["transform", "font-size", "fill", "font-weight"], pl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x", "y", "font-size", "fill", "font-weight"], wl = ["x", "y", "font-size", "font-weight", "fill"], Ll = ["x1", "x2", "y1", "y2", "stroke"], zl = ["x", "y", "font-size", "font-weight", "fill"], Cl = ["x1", "x2", "y1", "y2", "stroke"], _l = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Sl = { key: 0 }, $l = { key: 1 }, Tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ml = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Al = { key: 0 }, Nl = { key: 1 }, Il = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Rl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Ol = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Pl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Vl = {
|
|
18
18
|
key: 3,
|
|
@@ -34,8 +34,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
|
-
setup(
|
|
38
|
-
const Ht =
|
|
37
|
+
setup(Ce, { expose: Dt, emit: Ft }) {
|
|
38
|
+
const Ht = te(() => import("./vue-ui-accordion-BeFObvav.js")), Ut = te(() => import("./DataTable-C_Oatkz8.js")), Bt = te(() => import("./PackageVersion-BjHEQOVp.js")), Wt = te(() => import("./PenAndPaper-1_ql5aDz.js")), Yt = te(() => import("./Tooltip-B-O7xDu-.js")), Xt = te(() => import("./UserOptions-C7G3m5Ki.js")), { vue_ui_stackbar: Gt } = wa(), Jt = pa(), f = Ce, _e = Ft, Se = x({
|
|
39
39
|
get() {
|
|
40
40
|
return !!f.dataset && f.dataset.length;
|
|
41
41
|
},
|
|
@@ -46,7 +46,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
46
46
|
Ct(() => {
|
|
47
47
|
Pe();
|
|
48
48
|
});
|
|
49
|
-
const e = b(Re()), { loading:
|
|
49
|
+
const e = b(Re()), { loading: re, FINAL_DATASET: ce, manualLoading: he } = Ea({
|
|
50
50
|
...xa(f),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
52
|
prepareConfig: Re,
|
|
@@ -116,7 +116,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
119
|
-
}), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } =
|
|
119
|
+
}), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ha({ config: e.value }), { svgRef: je } = Ua({ config: e.value.style.chart.title });
|
|
120
120
|
function Re() {
|
|
121
121
|
const a = Et({
|
|
122
122
|
userConfig: f.config,
|
|
@@ -128,14 +128,14 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
128
128
|
userConfig: Ca.vue_ui_stackbar[a.theme] || f.config,
|
|
129
129
|
defaultConfig: a
|
|
130
130
|
}),
|
|
131
|
-
customPalette: za[a.theme] ||
|
|
131
|
+
customPalette: za[a.theme] || ke
|
|
132
132
|
} : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
133
133
|
}
|
|
134
134
|
const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
135
135
|
De(() => f.config, (a) => {
|
|
136
|
-
|
|
136
|
+
re.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, qt.value += 1, Zt.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
137
137
|
}, { deep: !0 }), De(() => f.dataset, (a) => {
|
|
138
|
-
Array.isArray(a) && a.length > 0 && (
|
|
138
|
+
Array.isArray(a) && a.length > 0 && (he.value = !1), nt();
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const z = b({
|
|
141
141
|
dataLabels: {
|
|
@@ -157,7 +157,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
157
157
|
elementId: `stackbar_${V.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
159
159
|
options: e.value.userOptions.print
|
|
160
|
-
}),
|
|
160
|
+
}), j = b({
|
|
161
161
|
width: e.value.style.chart.width,
|
|
162
162
|
height: e.value.style.chart.height,
|
|
163
163
|
paddingRatio: {
|
|
@@ -166,7 +166,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
166
166
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
167
167
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
168
168
|
}
|
|
169
|
-
}), Qt = x(() => _a(e.value.customPalette)), E = _t(null),
|
|
169
|
+
}), Qt = x(() => _a(e.value.customPalette)), E = _t(null), ee = _t(null), ot = b(null);
|
|
170
170
|
Ct(() => {
|
|
171
171
|
Pe();
|
|
172
172
|
});
|
|
@@ -176,20 +176,20 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
176
176
|
componentName: "VueUiStackbar",
|
|
177
177
|
type: "dataset",
|
|
178
178
|
debug: Oe.value
|
|
179
|
-
}),
|
|
179
|
+
}), he.value = !0) : f.dataset.forEach((a, l) => {
|
|
180
180
|
Sa({
|
|
181
181
|
datasetObject: a,
|
|
182
182
|
requiredAttributes: ["name", "series"]
|
|
183
183
|
}).forEach((t) => {
|
|
184
|
-
|
|
184
|
+
Se.value = !1, It({
|
|
185
185
|
componentName: "VueUiStackbar",
|
|
186
186
|
type: "datasetSerieAttribute",
|
|
187
187
|
property: t,
|
|
188
188
|
index: l,
|
|
189
189
|
debug: Oe.value
|
|
190
|
-
}),
|
|
190
|
+
}), he.value = !0;
|
|
191
191
|
});
|
|
192
|
-
}), Nt(f.dataset) || (
|
|
192
|
+
}), Nt(f.dataset) || (he.value = e.value.loading), setTimeout(() => {
|
|
193
193
|
B.value = !0;
|
|
194
194
|
}, 10), e.value.responsive) {
|
|
195
195
|
const a = He(() => {
|
|
@@ -202,17 +202,17 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
202
202
|
source: Xe.value
|
|
203
203
|
});
|
|
204
204
|
requestAnimationFrame(() => {
|
|
205
|
-
|
|
205
|
+
j.value.width = l, j.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
|
|
206
206
|
B.value = !0;
|
|
207
207
|
}, 10);
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
|
-
E.value && (
|
|
210
|
+
E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect()), E.value = new ResizeObserver(a), ee.value = P.value.parentNode, E.value.observe(ee.value);
|
|
211
211
|
}
|
|
212
212
|
Ve();
|
|
213
213
|
}
|
|
214
214
|
St(() => {
|
|
215
|
-
E.value && (
|
|
215
|
+
E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
|
|
216
216
|
});
|
|
217
217
|
function jt() {
|
|
218
218
|
let a = 0;
|
|
@@ -226,8 +226,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
226
226
|
const l = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
|
|
227
227
|
return a + l + (l ? 24 : 0);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const ve = b(0), de = b(0), ea = He((a) => {
|
|
230
|
+
ve.value = a;
|
|
231
231
|
}, 100);
|
|
232
232
|
$t((a) => {
|
|
233
233
|
const l = e.value.orientation === "vertical" ? Y.value : W.value;
|
|
@@ -238,7 +238,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
238
238
|
t.observe(l), a(() => t.disconnect());
|
|
239
239
|
});
|
|
240
240
|
const ta = He((a) => {
|
|
241
|
-
|
|
241
|
+
de.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
242
242
|
}, 100);
|
|
243
243
|
$t((a) => {
|
|
244
244
|
if (e.value.orientation === "vertical") return;
|
|
@@ -249,18 +249,18 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
249
249
|
});
|
|
250
250
|
t.observe(l), a(() => t.disconnect());
|
|
251
251
|
}), St(() => {
|
|
252
|
-
|
|
252
|
+
ve.value = 0, de.value = 0;
|
|
253
253
|
});
|
|
254
254
|
const it = x(() => {
|
|
255
255
|
let a = 0;
|
|
256
256
|
Ae.value && (a = Ae.value.getBBox().height);
|
|
257
257
|
let l = 0;
|
|
258
|
-
return e.value.orientation === "vertical" && Y.value && (l =
|
|
258
|
+
return e.value.orientation === "vertical" && Y.value && (l = ve.value), e.value.orientation === "horizontal" && W.value && (l = ve.value), a + l;
|
|
259
259
|
}), n = x(() => {
|
|
260
|
-
const { height: a, width: l } =
|
|
260
|
+
const { height: a, width: l } = j.value, { right: t } = j.value.paddingRatio;
|
|
261
261
|
let s = e.value.style.chart.bars.totalValues.show && f.dataset && f.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
262
262
|
e.value.style.chart.grid.y.axisLabels.show && (c = jt());
|
|
263
|
-
const u = e.value.style.chart.padding.top + s, _ = l - l * t -
|
|
263
|
+
const u = e.value.style.chart.padding.top + s, _ = l - l * t - de.value, X = a - e.value.style.chart.padding.bottom - it.value - s, G = e.value.style.chart.padding.left + c, J = l - G - l * t - de.value, R = a - u - e.value.style.chart.padding.bottom - it.value - s;
|
|
264
264
|
return {
|
|
265
265
|
chartHeight: a,
|
|
266
266
|
chartWidth: l,
|
|
@@ -271,8 +271,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
271
271
|
width: Math.max(0, J),
|
|
272
272
|
height: Math.max(0, R)
|
|
273
273
|
};
|
|
274
|
-
}), D = x(() =>
|
|
275
|
-
const t = $a(a.color) || Qt.value[l] ||
|
|
274
|
+
}), D = x(() => ce.value.map((a, l) => {
|
|
275
|
+
const t = $a(a.color) || Qt.value[l] || ke[l] || ke[l % ke.length];
|
|
276
276
|
return {
|
|
277
277
|
...a,
|
|
278
278
|
// In distributed mode, all values are converted to positive
|
|
@@ -285,40 +285,40 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
285
285
|
};
|
|
286
286
|
})), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = b({
|
|
287
287
|
start: 0,
|
|
288
|
-
end: Math.max(...
|
|
288
|
+
end: Math.max(...ce.value.map((a) => a.series.length))
|
|
289
289
|
});
|
|
290
290
|
function nt() {
|
|
291
291
|
Ve();
|
|
292
292
|
}
|
|
293
293
|
async function Ve() {
|
|
294
294
|
await Tt(), await Tt();
|
|
295
|
-
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...
|
|
295
|
+
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...ce.value.map((c) => c.series.length));
|
|
296
296
|
(a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(aa(l + 1))) : (h.value = { start: 0, end: s }, Ge.value += 1);
|
|
297
297
|
}
|
|
298
298
|
function aa(a) {
|
|
299
|
-
const l = Math.max(...
|
|
299
|
+
const l = Math.max(...ce.value.map((t) => t.series.length));
|
|
300
300
|
return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
301
301
|
}
|
|
302
302
|
const d = x(() => {
|
|
303
303
|
let a;
|
|
304
304
|
return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
305
|
-
}),
|
|
305
|
+
}), oe = x(() => we(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), la = x(() => we(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
306
306
|
...a,
|
|
307
307
|
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
308
|
-
}))).slice(h.value.start, h.value.end)),
|
|
308
|
+
}))).slice(h.value.start, h.value.end)), ye = x(() => {
|
|
309
309
|
const a = D.value.filter((l) => !S.value.includes(l.id));
|
|
310
310
|
return {
|
|
311
|
-
positive:
|
|
311
|
+
positive: we(a.map((l) => ({
|
|
312
312
|
...l,
|
|
313
313
|
series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
314
314
|
}))),
|
|
315
|
-
negative:
|
|
315
|
+
negative: we(a.map((l) => ({
|
|
316
316
|
...l,
|
|
317
317
|
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
318
318
|
})))
|
|
319
319
|
};
|
|
320
320
|
}), I = x(() => {
|
|
321
|
-
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(...
|
|
321
|
+
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(...ye.value.positive), l = Math.min(...ye.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) ? Rt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
322
322
|
return s.ticks.map((c) => ({
|
|
323
323
|
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
324
324
|
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
@@ -328,35 +328,35 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
328
328
|
horizontal_y: n.value.bottom - 8,
|
|
329
329
|
value: c
|
|
330
330
|
}));
|
|
331
|
-
}), $ = x(() =>
|
|
331
|
+
}), $ = x(() => Fa({
|
|
332
332
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
333
333
|
maxDatapoints: F.value,
|
|
334
334
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
335
335
|
start: h.value.start,
|
|
336
336
|
end: h.value.end
|
|
337
337
|
})), w = x(() => {
|
|
338
|
-
if (!
|
|
338
|
+
if (!Se.value && !re.value) return [];
|
|
339
339
|
let a = Array(F.value).fill(0), l = Array(F.value).fill(0), t = Array(F.value).fill(0), s = Array(F.value).fill(0);
|
|
340
|
-
const c = Math.max(...
|
|
341
|
-
return D.value.filter((
|
|
342
|
-
const O =
|
|
343
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
340
|
+
const c = Math.max(...ye.value.positive) || 0, u = Math.min(...ye.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, X = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: G, max: J } = X, R = J + (G >= 0 ? 0 : Math.abs(G)) || 1, T = n.value.height, pe = n.value.width, Lt = I.value[0] ? I.value[0].zero : n.value.bottom, zt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
|
|
341
|
+
return D.value.filter((ie) => !S.value.includes(ie.id)).map((ie) => {
|
|
342
|
+
const O = ie.series.slice(h.value.start, h.value.end), ha = ie.signedSeries.slice(h.value.start, h.value.end), va = O.map((p, k) => n.value.left + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), da = O.map((p, k) => n.value.top + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), ya = O.map((p, k) => {
|
|
343
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
|
|
344
344
|
let q, N;
|
|
345
345
|
return p > 0 ? (N = T * A, q = Lt - N - a[k], a[k] += N) : (N = T * A, q = Lt + t[k], t[k] += Math.abs(N)), q;
|
|
346
346
|
}), ga = O.map((p, k) => {
|
|
347
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
347
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
|
|
348
348
|
let q, N;
|
|
349
|
-
return p > 0 ? (N =
|
|
349
|
+
return p > 0 ? (N = pe * A, q = zt + l[k], l[k] += N) : (N = pe * A, q = zt - Math.abs(N) - s[k], s[k] += Math.abs(N)), q;
|
|
350
350
|
}), ba = O.map((p, k) => {
|
|
351
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
351
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
|
|
352
352
|
return p > 0 ? T * A : T * Math.abs(A);
|
|
353
353
|
}), fa = O.map((p, k) => {
|
|
354
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
355
|
-
return p > 0 ?
|
|
354
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
|
|
355
|
+
return p > 0 ? pe * A : pe * Math.abs(A);
|
|
356
356
|
}), ma = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
|
|
357
357
|
return {
|
|
358
|
-
...
|
|
359
|
-
proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) /
|
|
358
|
+
...ie,
|
|
359
|
+
proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / ma),
|
|
360
360
|
series: O,
|
|
361
361
|
signedSeries: ha,
|
|
362
362
|
x: va,
|
|
@@ -371,12 +371,12 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
371
371
|
value: a,
|
|
372
372
|
sign: a >= 0 ? 1 : -1
|
|
373
373
|
})));
|
|
374
|
-
function
|
|
374
|
+
function ge(a, l, t, s, c) {
|
|
375
375
|
const u = c === -1 && a >= 0 ? -a : a;
|
|
376
|
-
return
|
|
376
|
+
return ze(
|
|
377
377
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
378
378
|
u,
|
|
379
|
-
|
|
379
|
+
Q({
|
|
380
380
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
381
381
|
v: u,
|
|
382
382
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -386,10 +386,10 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
388
|
function ct(a, l, t, s) {
|
|
389
|
-
return
|
|
389
|
+
return ze(
|
|
390
390
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
391
391
|
a,
|
|
392
|
-
|
|
392
|
+
Q({
|
|
393
393
|
v: isNaN(a) ? 0 : a,
|
|
394
394
|
s: "%",
|
|
395
395
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
@@ -405,7 +405,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
405
405
|
color: t.color,
|
|
406
406
|
id: t.id
|
|
407
407
|
}));
|
|
408
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }),
|
|
408
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), _e("selectDatapoint", { datapoint: l, period: $.value[a] });
|
|
409
409
|
}
|
|
410
410
|
function vt(a) {
|
|
411
411
|
return JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
@@ -464,12 +464,12 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
464
464
|
J += `
|
|
465
465
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
466
466
|
<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_${T.id})` : T.color}"/>${Jt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${T.absoluteIndex})"/>` : ""}</svg>
|
|
467
|
-
${T.name}${c || u ? ":" : ""} ${c ?
|
|
467
|
+
${T.name}${c || u ? ":" : ""} ${c ? Q({
|
|
468
468
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
469
469
|
v: T.value,
|
|
470
470
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
471
471
|
r: X
|
|
472
|
-
}) : ""} ${R[0]}${u ?
|
|
472
|
+
}) : ""} ${R[0]}${u ? Q({
|
|
473
473
|
v: isNaN(T.value / s) ? 0 : Math.abs(T.value) / s * 100,
|
|
474
474
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
475
475
|
s: "%",
|
|
@@ -480,8 +480,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
480
480
|
}), Me.value = `<div>${J}</div>`;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const sa = x(() =>
|
|
484
|
-
|
|
483
|
+
const sa = x(() => j.value.width), ra = x(() => j.value.height);
|
|
484
|
+
Ba({
|
|
485
485
|
timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
|
|
486
486
|
timeLabels: $,
|
|
487
487
|
slicer: h,
|
|
@@ -524,7 +524,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
524
524
|
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...pt.value.head.map((_) => _.label)], s = pt.value.body, c = l.concat([t]).concat(s), u = Ia(c);
|
|
525
525
|
a ? a(u) : Ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
526
526
|
}
|
|
527
|
-
const
|
|
527
|
+
const be = x(() => {
|
|
528
528
|
const a = [""].concat(w.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>');
|
|
529
529
|
let l = [];
|
|
530
530
|
for (let c = 0; c < F.value; c += 1) {
|
|
@@ -547,7 +547,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
547
547
|
return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
|
|
548
548
|
});
|
|
549
549
|
function ia(a, l) {
|
|
550
|
-
if (
|
|
550
|
+
if (_e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
|
|
551
551
|
S.value = S.value.filter((t) => t !== l.id);
|
|
552
552
|
else {
|
|
553
553
|
if (S.value.length === D.value.length - 1) return;
|
|
@@ -569,11 +569,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
569
569
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
570
570
|
paddingBottom: 12,
|
|
571
571
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
572
|
-
})),
|
|
572
|
+
})), fe = b(!1);
|
|
573
573
|
function Ee() {
|
|
574
|
-
|
|
574
|
+
fe.value = !fe.value;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function me(a, l) {
|
|
577
577
|
const t = JSON.parse(JSON.stringify(w.value)).map((s) => ({
|
|
578
578
|
name: s.name,
|
|
579
579
|
value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
|
|
@@ -581,7 +581,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
581
581
|
color: s.color,
|
|
582
582
|
id: s.id
|
|
583
583
|
}));
|
|
584
|
-
|
|
584
|
+
_e("selectTimeLabel", {
|
|
585
585
|
datapoint: t,
|
|
586
586
|
absoluteIndex: a.absoluteIndex,
|
|
587
587
|
label: a.text
|
|
@@ -593,7 +593,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
593
593
|
}
|
|
594
594
|
async function ca({ scale: a = 2 } = {}) {
|
|
595
595
|
if (!P.value) return;
|
|
596
|
-
const { width: l, height: t } = P.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await
|
|
596
|
+
const { width: l, height: t } = P.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Ja({ domElement: P.value, base64: !0, img: !0, scale: a });
|
|
597
597
|
return {
|
|
598
598
|
imageUri: c,
|
|
599
599
|
base64: u,
|
|
@@ -618,7 +618,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
618
618
|
id: `stackbar_${V.value}`,
|
|
619
619
|
ref_key: "stackbarChart",
|
|
620
620
|
ref: P,
|
|
621
|
-
class:
|
|
621
|
+
class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
622
622
|
style: Z(`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%" : ""}`),
|
|
623
623
|
onMouseenter: l[4] || (l[4] = () => v(Ke)(!0)),
|
|
624
624
|
onMouseleave: l[5] || (l[5] = () => v(Ke)(!1))
|
|
@@ -628,7 +628,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
628
628
|
svgRef: v(je),
|
|
629
629
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
630
630
|
color: e.value.style.chart.color,
|
|
631
|
-
active:
|
|
631
|
+
active: fe.value,
|
|
632
632
|
onClose: Ee
|
|
633
633
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
634
634
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
@@ -638,7 +638,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
638
638
|
ref: Be,
|
|
639
639
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
640
640
|
}, [
|
|
641
|
-
(r(), K(
|
|
641
|
+
(r(), K(Xa, {
|
|
642
642
|
key: `title_${Je.value}`,
|
|
643
643
|
config: {
|
|
644
644
|
title: {
|
|
@@ -652,7 +652,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
652
652
|
}
|
|
653
653
|
}, null, 8, ["config"]))
|
|
654
654
|
], 512)) : y("", !0),
|
|
655
|
-
e.value.userOptions.show &&
|
|
655
|
+
e.value.userOptions.show && Se.value && (v(Qe) || v(Ie)) ? (r(), K(v(Xt), {
|
|
656
656
|
ref: "details",
|
|
657
657
|
key: `user_option_${Ue.value}`,
|
|
658
658
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -673,7 +673,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
673
673
|
isTooltip: z.value.showTooltip,
|
|
674
674
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
675
675
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
676
|
-
isAnnotation:
|
|
676
|
+
isAnnotation: fe.value,
|
|
677
677
|
callbacks: e.value.userOptions.callbacks,
|
|
678
678
|
printScale: e.value.userOptions.print.scale,
|
|
679
679
|
onToggleFullscreen: gt,
|
|
@@ -757,10 +757,10 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
757
757
|
ref: je,
|
|
758
758
|
xmlns: v(Ta),
|
|
759
759
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
760
|
-
class:
|
|
760
|
+
class: ae({ "vue-data-ui-loading": v(re) }),
|
|
761
761
|
style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
762
762
|
}, [
|
|
763
|
-
|
|
763
|
+
xe(v(Bt)),
|
|
764
764
|
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
765
765
|
key: 0,
|
|
766
766
|
x: n.value.left,
|
|
@@ -781,15 +781,15 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
781
781
|
x2: "0%",
|
|
782
782
|
y2: "100%"
|
|
783
783
|
}, [
|
|
784
|
-
|
|
784
|
+
le("stop", {
|
|
785
785
|
offset: "0%",
|
|
786
786
|
"stop-color": t.color
|
|
787
787
|
}, null, 8, tl),
|
|
788
|
-
|
|
788
|
+
le("stop", {
|
|
789
789
|
offset: "61.8%",
|
|
790
790
|
"stop-color": v(Ma)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
791
791
|
}, null, 8, al),
|
|
792
|
-
|
|
792
|
+
le("stop", {
|
|
793
793
|
offset: "100%",
|
|
794
794
|
"stop-color": t.color
|
|
795
795
|
}, null, 8, ll)
|
|
@@ -851,7 +851,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
851
851
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
852
852
|
"stroke-linecap": "round",
|
|
853
853
|
"stroke-linejoin": "round",
|
|
854
|
-
class:
|
|
854
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
855
855
|
}, null, 10, ul))), 256)),
|
|
856
856
|
a.$slots.pattern ? (r(), o("g", cl, [
|
|
857
857
|
(r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
@@ -865,14 +865,14 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
865
865
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
866
866
|
"stroke-linecap": "round",
|
|
867
867
|
"stroke-linejoin": "round",
|
|
868
|
-
class:
|
|
868
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
869
869
|
}, null, 10, hl))), 256))
|
|
870
870
|
])) : y("", !0)
|
|
871
871
|
], 64)) : (r(), o(g, { key: 2 }, [
|
|
872
872
|
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
873
|
-
x: v(
|
|
873
|
+
x: v(Le)(c, n.value.left),
|
|
874
874
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
875
|
-
width: v(
|
|
875
|
+
width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
876
876
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
877
877
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
878
878
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
@@ -880,13 +880,13 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
880
880
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
881
881
|
"stroke-linecap": "round",
|
|
882
882
|
"stroke-linejoin": "round",
|
|
883
|
-
class:
|
|
883
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
884
884
|
}, null, 10, vl))), 256)),
|
|
885
885
|
a.$slots.pattern ? (r(), o("g", dl, [
|
|
886
886
|
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
887
|
-
x: v(
|
|
887
|
+
x: v(Le)(c, n.value.left),
|
|
888
888
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
889
|
-
width: v(
|
|
889
|
+
width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
890
890
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
891
891
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
892
892
|
fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
|
|
@@ -894,7 +894,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
894
894
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
895
895
|
"stroke-linecap": "round",
|
|
896
896
|
"stroke-linejoin": "round",
|
|
897
|
-
class:
|
|
897
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
898
898
|
}, null, 10, yl))), 256))
|
|
899
899
|
])) : y("", !0)
|
|
900
900
|
], 64))
|
|
@@ -953,7 +953,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
953
953
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
954
954
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
955
955
|
"text-anchor": "middle"
|
|
956
|
-
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) :
|
|
956
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, pl)) : y("", !0)
|
|
957
957
|
], 64))), 256))
|
|
958
958
|
]))), 256)),
|
|
959
959
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
@@ -970,7 +970,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
970
970
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
971
971
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
972
972
|
fill: e.value.style.chart.bars.totalValues.color
|
|
973
|
-
}, M(
|
|
973
|
+
}, M(ge(t.value, t, s, t.sign)), 9, xl)) : y("", !0)
|
|
974
974
|
], 64))), 256))
|
|
975
975
|
], 512)) : y("", !0)
|
|
976
976
|
], 64)) : y("", !0),
|
|
@@ -985,7 +985,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
985
985
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
986
986
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
987
987
|
"text-anchor": "middle"
|
|
988
|
-
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) :
|
|
988
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, kl)) : y("", !0)
|
|
989
989
|
], 64))), 256))
|
|
990
990
|
]))), 256)),
|
|
991
991
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
@@ -1002,7 +1002,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1002
1002
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1003
1003
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1004
1004
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1005
|
-
}, M(
|
|
1005
|
+
}, M(ge(t.value, t, s, t.sign)), 9, wl)) : y("", !0)
|
|
1006
1006
|
], 64))), 256))
|
|
1007
1007
|
], 512)) : y("", !0)
|
|
1008
1008
|
], 64)) : y("", !0),
|
|
@@ -1026,10 +1026,10 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1026
1026
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1027
1027
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1028
1028
|
"text-anchor": "end"
|
|
1029
|
-
}, M(v(
|
|
1029
|
+
}, M(v(ze)(
|
|
1030
1030
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1031
1031
|
t.value,
|
|
1032
|
-
v(
|
|
1032
|
+
v(Q)({
|
|
1033
1033
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1034
1034
|
v: t.value,
|
|
1035
1035
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1059,10 +1059,10 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1059
1059
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1060
1060
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1061
1061
|
transform: `translate(${t.horizontal_x}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
1062
|
-
}, M(v(
|
|
1062
|
+
}, M(v(ze)(
|
|
1063
1063
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1064
1064
|
t.value,
|
|
1065
|
-
v(
|
|
1065
|
+
v(Q)({
|
|
1066
1066
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1067
1067
|
v: t.value,
|
|
1068
1068
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1113,7 +1113,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1113
1113
|
x: 0,
|
|
1114
1114
|
y: 0
|
|
1115
1115
|
}),
|
|
1116
|
-
onClick: () =>
|
|
1116
|
+
onClick: () => me(t, s)
|
|
1117
1117
|
}, null, 8, Ml)) : (r(), o("text", {
|
|
1118
1118
|
class: "vue-data-ui-time-label",
|
|
1119
1119
|
key: s,
|
|
@@ -1123,7 +1123,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1123
1123
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1124
1124
|
transform: `translate(${n.value.left + d.value * s + d.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1125
1125
|
style: { cursor: "pointer" },
|
|
1126
|
-
onClick: () =>
|
|
1126
|
+
onClick: () => me(t, s)
|
|
1127
1127
|
}, M(t.text), 9, Tl))
|
|
1128
1128
|
]))), 256))
|
|
1129
1129
|
]))
|
|
@@ -1159,7 +1159,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1159
1159
|
x: n.value.left - 8,
|
|
1160
1160
|
y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1161
1161
|
style: { cursor: "pointer" },
|
|
1162
|
-
onClick: () =>
|
|
1162
|
+
onClick: () => me(t, s),
|
|
1163
1163
|
innerHTML: v(Na)({
|
|
1164
1164
|
content: String(t.text),
|
|
1165
1165
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1178,7 +1178,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1178
1178
|
style: {
|
|
1179
1179
|
cursor: "pointer"
|
|
1180
1180
|
},
|
|
1181
|
-
onClick: () =>
|
|
1181
|
+
onClick: () => me(t, s)
|
|
1182
1182
|
}, M(t.text), 9, Il))
|
|
1183
1183
|
]))), 256))
|
|
1184
1184
|
]))
|
|
@@ -1210,13 +1210,13 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1210
1210
|
a.$slots.watermark ? (r(), o("div", Vl, [
|
|
1211
1211
|
L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
|
|
1212
1212
|
])) : y("", !0),
|
|
1213
|
-
|
|
1213
|
+
le("div", {
|
|
1214
1214
|
ref_key: "chartSlicer",
|
|
1215
1215
|
ref: Ye,
|
|
1216
1216
|
style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1217
1217
|
"data-dom-to-png-ignore": ""
|
|
1218
1218
|
}, [
|
|
1219
|
-
e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(
|
|
1219
|
+
e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ya, {
|
|
1220
1220
|
ref_key: "slicerComponent",
|
|
1221
1221
|
ref: qe,
|
|
1222
1222
|
key: `slicer_${Ge.value}`,
|
|
@@ -1229,7 +1229,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1229
1229
|
textColor: e.value.style.chart.color,
|
|
1230
1230
|
inputColor: e.value.style.chart.zoom.color,
|
|
1231
1231
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1232
|
-
max: Math.max(...
|
|
1232
|
+
max: Math.max(...Ce.dataset.map((t) => t.series.length)),
|
|
1233
1233
|
min: 0,
|
|
1234
1234
|
valueStart: h.value.start,
|
|
1235
1235
|
valueEnd: h.value.end,
|
|
@@ -1238,7 +1238,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1238
1238
|
end: h.value.end,
|
|
1239
1239
|
"onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
|
|
1240
1240
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1241
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...
|
|
1241
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Ce.dataset.map((t) => t.series.length)),
|
|
1242
1242
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1243
1243
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1244
1244
|
onReset: nt
|
|
@@ -1249,7 +1249,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1249
1249
|
_: 3
|
|
1250
1250
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
|
|
1251
1251
|
], 4),
|
|
1252
|
-
|
|
1252
|
+
xe(v(Yt), {
|
|
1253
1253
|
show: z.value.showTooltip && $e.value,
|
|
1254
1254
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1255
1255
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1275,28 +1275,29 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1275
1275
|
]),
|
|
1276
1276
|
_: 3
|
|
1277
1277
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1278
|
-
|
|
1278
|
+
le("div", {
|
|
1279
1279
|
ref_key: "chartLegend",
|
|
1280
1280
|
ref: We
|
|
1281
1281
|
}, [
|
|
1282
|
-
e.value.style.chart.legend.show
|
|
1282
|
+
e.value.style.chart.legend.show ? (r(), K(Wa, {
|
|
1283
1283
|
key: 0,
|
|
1284
1284
|
legendSet: kt.value,
|
|
1285
1285
|
config: na.value,
|
|
1286
1286
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1287
1287
|
}, Mt({
|
|
1288
1288
|
item: C(({ legend: t }) => [
|
|
1289
|
-
|
|
1289
|
+
v(re) ? y("", !0) : (r(), o("div", {
|
|
1290
|
+
key: 0,
|
|
1290
1291
|
onClick: (s) => t.segregate(),
|
|
1291
1292
|
style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1292
|
-
}, M(t.name), 13, El)
|
|
1293
|
+
}, M(t.name), 13, El))
|
|
1293
1294
|
]),
|
|
1294
1295
|
_: 2
|
|
1295
1296
|
}, [
|
|
1296
1297
|
a.$slots.pattern ? {
|
|
1297
1298
|
name: "legend-pattern",
|
|
1298
1299
|
fn: C(({ legend: t, index: s }) => [
|
|
1299
|
-
|
|
1300
|
+
xe(Ga, {
|
|
1300
1301
|
shape: t.shape,
|
|
1301
1302
|
radius: 30,
|
|
1302
1303
|
stroke: "none",
|
|
@@ -1336,19 +1337,19 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1336
1337
|
}
|
|
1337
1338
|
}, {
|
|
1338
1339
|
content: C(() => [
|
|
1339
|
-
|
|
1340
|
-
colNames:
|
|
1341
|
-
head:
|
|
1342
|
-
body:
|
|
1343
|
-
config:
|
|
1340
|
+
xe(v(Ut), {
|
|
1341
|
+
colNames: be.value.colNames,
|
|
1342
|
+
head: be.value.head,
|
|
1343
|
+
body: be.value.body,
|
|
1344
|
+
config: be.value.config,
|
|
1344
1345
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1345
1346
|
onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
|
|
1346
1347
|
}, {
|
|
1347
1348
|
th: C(({ th: t }) => [
|
|
1348
|
-
|
|
1349
|
+
le("div", { innerHTML: t }, null, 8, Dl)
|
|
1349
1350
|
]),
|
|
1350
1351
|
td: C(({ td: t }) => [
|
|
1351
|
-
ka(M(isNaN(Number(t)) ? t : v(
|
|
1352
|
+
ka(M(isNaN(Number(t)) ? t : v(Q)({
|
|
1352
1353
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1353
1354
|
v: t,
|
|
1354
1355
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1360,10 +1361,10 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1360
1361
|
]),
|
|
1361
1362
|
_: 1
|
|
1362
1363
|
}, 8, ["config"])) : y("", !0),
|
|
1363
|
-
v(
|
|
1364
|
+
v(re) ? (r(), K(Da, { key: 6 })) : y("", !0)
|
|
1364
1365
|
], 46, Za));
|
|
1365
1366
|
}
|
|
1366
|
-
}, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-
|
|
1367
|
+
}, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-c6461a61"]]);
|
|
1367
1368
|
export {
|
|
1368
1369
|
ls as default
|
|
1369
1370
|
};
|