vue-data-ui 3.1.1 → 3.1.3
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-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
- package/dist/Legend-5qvgVkrY.js +85 -0
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
- package/dist/Title-CqYBs02Y.js +88 -0
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
- package/dist/pdf-BG8PiGFH.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +28 -3
- package/dist/types/vue-data-ui.d.ts +28 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
- package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
- package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
- package/package.json +1 -1
- package/dist/Legend-8_V5egWW.js +0 -72
- package/dist/Title-Dz-j6ERs.js +0 -61
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u 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
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import { S as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { defineAsyncComponent as H, useSlots as Sa, computed as p, ref as g, onMounted as At, toRefs as $a, watch as ze, shallowRef as It, onBeforeUnmount as Nt, watchEffect as Rt, nextTick as Ot, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as he, createSlots as Ye, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as m, mergeProps as Ce, toDisplayString as T, Teleport as Ta, resolveDynamicComponent as Ma, createTextVNode as Pt } from "vue";
|
|
2
|
+
import { u as Aa, c as Vt, t as Ia, a as Na, p as _e, b as Ra, C as se, d as Oa, o as Dt, f as Et, g as Pa, e as Va, ao as Se, ac as Ft, D as Ut, X as Da, l as Ea, a9 as $e, F as Ht, k as Te, i as ee, I as Fa, a0 as Ua, y as Bt, v as Ha, w as Ba, z as Wa } from "./index-CaxArMHL.js";
|
|
3
|
+
import { t as Xe, u as Ya } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Xa } from "./usePrinter-BYtPmEo8.js";
|
|
5
|
+
import { u as Ga, B as Ja } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Wt } from "./useNestedProp-tWT02_6S.js";
|
|
7
|
+
import { u as qa } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as Za } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Ka } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Qa } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import ja from "./img-DSrvx9J6.js";
|
|
12
|
+
import el from "./Title-CqYBs02Y.js";
|
|
13
|
+
import { _ as tl } from "./Shape-DiplSMFy.js";
|
|
14
|
+
import al from "./Legend-5qvgVkrY.js";
|
|
15
|
+
import { S as ll } from "./Slicer-DG99wPTy.js";
|
|
16
|
+
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "width", "height"], ul = { key: 1 }, cl = ["id"], hl = ["stop-color"], vl = ["stop-color"], dl = ["stop-color"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = { key: 0 }, kl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = { key: 0 }, zl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["transform", "font-size", "fill", "font-weight"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Il = ["x", "y", "font-size", "font-weight", "fill"], Nl = ["x1", "x2", "y1", "y2", "stroke"], Rl = ["x", "y", "font-size", "font-weight", "fill"], Ol = ["x1", "x2", "y1", "y2", "stroke"], Pl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Vl = { key: 0 }, Dl = { key: 1 }, El = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Fl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Ul = { key: 0 }, Hl = { key: 1 }, Bl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Wl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Yl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Xl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Gl = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Jl = ["id"], ql = ["onClick"], Zl = ["innerHTML"], Kl = {
|
|
21
21
|
__name: "vue-ui-stackbar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,25 +34,25 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
|
-
setup(Me, { expose:
|
|
38
|
-
const
|
|
37
|
+
setup(Me, { expose: Yt, emit: Xt }) {
|
|
38
|
+
const Gt = H(() => import("./Tooltip-CP0tVHAf.js")), Jt = H(() => import("./BaseIcon-BcOSijbz.js")), qt = H(() => import("./vue-ui-accordion-DUlNpLir.js")), Zt = H(() => import("./DataTable-Cm8Tt9PQ.js")), Kt = H(() => import("./PenAndPaper-CyH7Ip2i.js")), Qt = H(() => import("./UserOptions-ZmwlARCV.js")), jt = H(() => import("./PackageVersion-0XlRFsI_.js")), ea = H(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_stackbar: ta } = Aa(), aa = Sa(), f = Me, Ae = Xt, ve = p({
|
|
39
39
|
get() {
|
|
40
40
|
return !!f.dataset && f.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(a) {
|
|
43
43
|
return a;
|
|
44
44
|
}
|
|
45
|
-
}), O = g(null), M = g(
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
}), O = g(null), M = g(Vt()), Ie = g(!1), Ne = g(null), Re = g(""), S = g([]), Ge = g(0), Je = g(null), qe = g(null), Ze = g(null), Ke = g(null), Qe = g(0), re = g(!1), de = g(null), X = g(!1), je = g(0), la = g(0), sa = g(0), et = g(null), tt = g(!1), oe = g(null), Oe = g(null), Pe = g(null), Ve = g(null), G = g(null), J = g(null), ra = g(null), at = g(null);
|
|
46
|
+
At(() => {
|
|
47
|
+
tt.value = !0, Ue();
|
|
48
48
|
});
|
|
49
|
-
const e = g(
|
|
50
|
-
|
|
49
|
+
const e = g(Ee()), { loading: ne, FINAL_DATASET: ye, manualLoading: ge } = Ga({
|
|
50
|
+
...$a(f),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
|
-
prepareConfig:
|
|
52
|
+
prepareConfig: Ee,
|
|
53
53
|
callback: () => {
|
|
54
54
|
Promise.resolve().then(async () => {
|
|
55
|
-
await
|
|
55
|
+
await He();
|
|
56
56
|
});
|
|
57
57
|
},
|
|
58
58
|
skeletonDataset: [
|
|
@@ -67,7 +67,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
67
67
|
color: "#CACACA"
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: Ia({
|
|
71
71
|
defaultConfig: e.value,
|
|
72
72
|
userConfig: {
|
|
73
73
|
userOptions: { show: !1 },
|
|
@@ -116,26 +116,26 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
119
|
-
}), { userOptionsVisible:
|
|
120
|
-
function
|
|
121
|
-
const a =
|
|
119
|
+
}), { userOptionsVisible: De, setUserOptionsVisibility: lt, keepUserOptionState: st } = Za({ config: e.value }), { svgRef: rt } = Ka({ config: e.value.style.chart.title });
|
|
120
|
+
function Ee() {
|
|
121
|
+
const a = Wt({
|
|
122
122
|
userConfig: f.config,
|
|
123
|
-
defaultConfig:
|
|
123
|
+
defaultConfig: ta
|
|
124
124
|
});
|
|
125
125
|
let l = {};
|
|
126
126
|
return a.theme ? l = {
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
127
|
+
...Wt({
|
|
128
|
+
userConfig: Ra.vue_ui_stackbar[a.theme] || f.config,
|
|
129
129
|
defaultConfig: a
|
|
130
130
|
}),
|
|
131
|
-
customPalette:
|
|
131
|
+
customPalette: Na[a.theme] || _e
|
|
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
|
-
const
|
|
134
|
+
const ot = p(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), nt = p(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
135
135
|
ze(() => f.config, (a) => {
|
|
136
|
-
ne.value || (e.value =
|
|
136
|
+
ne.value || (e.value = Ee()), De.value = !e.value.userOptions.showOnChartHover, Ue(), je.value += 1, la.value += 1, sa.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 }), ze(() => f.dataset, (a) => {
|
|
138
|
-
Array.isArray(a) && a.length > 0 && (ge.value = !1),
|
|
138
|
+
Array.isArray(a) && a.length > 0 && (ge.value = !1), yt();
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const z = g({
|
|
141
141
|
dataLabels: {
|
|
@@ -153,7 +153,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
153
153
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
154
|
};
|
|
155
155
|
}, { immediate: !0 });
|
|
156
|
-
const { isPrinting:
|
|
156
|
+
const { isPrinting: it, isImaging: ut, generatePdf: ct, generateImage: ht } = Xa({
|
|
157
157
|
elementId: `stackbar_${M.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
159
159
|
options: e.value.userOptions.print
|
|
@@ -166,40 +166,40 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
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
|
-
}),
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
}), oa = p(() => Oa(e.value.customPalette)), E = It(null), ae = It(null), vt = g(null);
|
|
170
|
+
At(() => {
|
|
171
|
+
Ue();
|
|
172
172
|
});
|
|
173
|
-
const
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
173
|
+
const Fe = p(() => !!e.value.debug);
|
|
174
|
+
function Ue() {
|
|
175
|
+
if (Dt(f.dataset) ? (Et({
|
|
176
176
|
componentName: "VueUiStackbar",
|
|
177
177
|
type: "dataset",
|
|
178
|
-
debug:
|
|
178
|
+
debug: Fe.value
|
|
179
179
|
}), ge.value = !0) : f.dataset.forEach((a, l) => {
|
|
180
|
-
|
|
180
|
+
Pa({
|
|
181
181
|
datasetObject: a,
|
|
182
182
|
requiredAttributes: ["name", "series"]
|
|
183
183
|
}).forEach((t) => {
|
|
184
|
-
|
|
184
|
+
ve.value = !1, Et({
|
|
185
185
|
componentName: "VueUiStackbar",
|
|
186
186
|
type: "datasetSerieAttribute",
|
|
187
187
|
property: t,
|
|
188
188
|
index: l,
|
|
189
|
-
debug:
|
|
189
|
+
debug: Fe.value
|
|
190
190
|
}), ge.value = !0;
|
|
191
191
|
});
|
|
192
|
-
}),
|
|
192
|
+
}), Dt(f.dataset) || (ge.value = e.value.loading), setTimeout(() => {
|
|
193
193
|
X.value = !0;
|
|
194
194
|
}, 10), e.value.responsive) {
|
|
195
|
-
const a =
|
|
195
|
+
const a = Xe(() => {
|
|
196
196
|
X.value = !1;
|
|
197
|
-
const { width: l, height: t } =
|
|
197
|
+
const { width: l, height: t } = Ya({
|
|
198
198
|
chart: O.value,
|
|
199
|
-
title: e.value.style.chart.title.text ?
|
|
200
|
-
legend: e.value.style.chart.legend.show ?
|
|
201
|
-
slicer: e.value.style.chart.zoom.show && U.value > 1 ?
|
|
202
|
-
source:
|
|
199
|
+
title: e.value.style.chart.title.text ? Je.value : null,
|
|
200
|
+
legend: e.value.style.chart.legend.show ? qe.value : null,
|
|
201
|
+
slicer: e.value.style.chart.zoom.show && U.value > 1 ? Ze.value : null,
|
|
202
|
+
source: Ke.value
|
|
203
203
|
});
|
|
204
204
|
requestAnimationFrame(() => {
|
|
205
205
|
te.value.width = l, te.value.height = t - 12, clearTimeout(vt.value), vt.value = setTimeout(() => {
|
|
@@ -209,12 +209,12 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
209
209
|
});
|
|
210
210
|
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect()), E.value = new ResizeObserver(a), ae.value = O.value.parentNode, E.value.observe(ae.value);
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
He();
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
Nt(() => {
|
|
215
215
|
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect());
|
|
216
216
|
});
|
|
217
|
-
function
|
|
217
|
+
function na() {
|
|
218
218
|
let a = 0;
|
|
219
219
|
e.value.orientation === "vertical" && G.value && (a = Array.from(G.value.querySelectorAll("text")).reduce((s, c) => {
|
|
220
220
|
const u = c.getComputedTextLength();
|
|
@@ -223,44 +223,44 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
223
223
|
const u = c.getComputedTextLength();
|
|
224
224
|
return u > s ? u : s;
|
|
225
225
|
}, 0));
|
|
226
|
-
const l =
|
|
226
|
+
const l = Ve.value ? Ve.value.getBoundingClientRect().width : 0;
|
|
227
227
|
return a + l + (l ? 24 : 0);
|
|
228
228
|
}
|
|
229
|
-
const be = g(0), fe = g(0),
|
|
229
|
+
const be = g(0), fe = g(0), ia = Xe((a) => {
|
|
230
230
|
be.value = a;
|
|
231
231
|
}, 100);
|
|
232
|
-
|
|
232
|
+
Rt((a) => {
|
|
233
233
|
const l = e.value.orientation === "vertical" ? J.value : G.value;
|
|
234
234
|
if (!l) return;
|
|
235
235
|
const t = new ResizeObserver((s) => {
|
|
236
|
-
|
|
236
|
+
ia(s[0].contentRect.height);
|
|
237
237
|
});
|
|
238
238
|
t.observe(l), a(() => t.disconnect());
|
|
239
239
|
});
|
|
240
|
-
const
|
|
240
|
+
const ua = Xe((a) => {
|
|
241
241
|
fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
242
242
|
}, 100);
|
|
243
|
-
|
|
243
|
+
Rt((a) => {
|
|
244
244
|
if (e.value.orientation === "vertical") return;
|
|
245
|
-
const l =
|
|
245
|
+
const l = at.value;
|
|
246
246
|
if (!l) return;
|
|
247
247
|
const t = new ResizeObserver((s) => {
|
|
248
|
-
|
|
248
|
+
ua(s[0].contentRect.width);
|
|
249
249
|
});
|
|
250
250
|
t.observe(l), a(() => t.disconnect());
|
|
251
|
-
}),
|
|
251
|
+
}), Nt(() => {
|
|
252
252
|
be.value = 0, fe.value = 0;
|
|
253
253
|
});
|
|
254
|
-
const
|
|
254
|
+
const dt = p(() => {
|
|
255
255
|
let a = 0;
|
|
256
|
-
|
|
256
|
+
Pe.value && (a = Pe.value.getBBox().height);
|
|
257
257
|
let l = 0;
|
|
258
258
|
return e.value.orientation === "vertical" && J.value && (l = be.value), e.value.orientation === "horizontal" && G.value && (l = be.value), a + l;
|
|
259
259
|
}), n = p(() => {
|
|
260
260
|
const { height: a, width: l } = te.value, { right: t } = te.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
|
-
e.value.style.chart.grid.y.axisLabels.show && (c =
|
|
263
|
-
const u = e.value.style.chart.padding.top + s, _ = l - l * t - fe.value, q = a - e.value.style.chart.padding.bottom -
|
|
262
|
+
e.value.style.chart.grid.y.axisLabels.show && (c = na());
|
|
263
|
+
const u = e.value.style.chart.padding.top + s, _ = l - l * t - fe.value, q = a - e.value.style.chart.padding.bottom - dt.value - s, Z = e.value.style.chart.padding.left + c, K = l - Z - l * t - fe.value, P = a - u - e.value.style.chart.padding.bottom - dt.value - s;
|
|
264
264
|
return {
|
|
265
265
|
chartHeight: a,
|
|
266
266
|
chartWidth: l,
|
|
@@ -272,7 +272,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
272
272
|
height: Math.max(0, P)
|
|
273
273
|
};
|
|
274
274
|
}), F = p(() => ye.value.map((a, l) => {
|
|
275
|
-
const t =
|
|
275
|
+
const t = Va(a.color) || oa.value[l] || _e[l] || _e[l % _e.length];
|
|
276
276
|
return {
|
|
277
277
|
...a,
|
|
278
278
|
// In distributed mode, all values are converted to positive
|
|
@@ -280,45 +280,45 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
280
280
|
// Store signs to manage display of neg values in distributed mode
|
|
281
281
|
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
282
282
|
absoluteIndex: l,
|
|
283
|
-
id:
|
|
283
|
+
id: Vt(),
|
|
284
284
|
color: t
|
|
285
285
|
};
|
|
286
|
-
})), U = p(() => Math.max(...F.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))),
|
|
286
|
+
})), U = p(() => Math.max(...F.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = g({
|
|
287
287
|
start: 0,
|
|
288
288
|
end: Math.max(...ye.value.map((a) => a.series.length))
|
|
289
289
|
});
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function yt() {
|
|
291
|
+
He();
|
|
292
292
|
}
|
|
293
|
-
async function
|
|
294
|
-
await
|
|
295
|
-
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t =
|
|
296
|
-
|
|
293
|
+
async function He() {
|
|
294
|
+
await Ot(), await Ot();
|
|
295
|
+
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = et.value, s = Math.max(...ye.value.map((c) => c.series.length));
|
|
296
|
+
h.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (h.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(ca(l + 1)) : (h.value.end = s, t.setEndValue(s))) : (h.value = { start: 0, end: s }, Qe.value += 1);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function ca(a) {
|
|
299
299
|
const l = Math.max(...ye.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 y = p(() => {
|
|
303
303
|
let a;
|
|
304
|
-
return e.value.orientation === "vertical" ? a = n.value.width / (
|
|
305
|
-
}), ie = p(() => Se(F.value.filter((a) => !S.value.includes(a.id))).slice(
|
|
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
|
+
}), ie = p(() => Se(F.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), ha = p(() => Se(F.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(
|
|
308
|
+
}))).slice(h.value.start, h.value.end)), me = p(() => {
|
|
309
309
|
const a = F.value.filter((l) => !S.value.includes(l.id));
|
|
310
310
|
return {
|
|
311
311
|
positive: Se(a.map((l) => ({
|
|
312
312
|
...l,
|
|
313
|
-
series: l.series.slice(
|
|
313
|
+
series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
314
314
|
}))),
|
|
315
315
|
negative: Se(a.map((l) => ({
|
|
316
316
|
...l,
|
|
317
|
-
series: l.series.slice(
|
|
317
|
+
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
318
318
|
})))
|
|
319
319
|
};
|
|
320
320
|
}), R = p(() => {
|
|
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(...me.value.positive), l = Math.min(...me.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) ?
|
|
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(...me.value.positive), l = Math.min(...me.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) ? Ft(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ut(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,46 +328,46 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
328
328
|
horizontal_y: n.value.bottom - 8,
|
|
329
329
|
value: c
|
|
330
330
|
}));
|
|
331
|
-
}), $ = p(() =>
|
|
331
|
+
}), $ = p(() => qa({
|
|
332
332
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
333
333
|
maxDatapoints: U.value,
|
|
334
334
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
335
|
-
start:
|
|
336
|
-
end:
|
|
335
|
+
start: h.value.start,
|
|
336
|
+
end: h.value.end
|
|
337
337
|
})), w = p(() => {
|
|
338
|
-
if (!
|
|
338
|
+
if (!ve.value && !ne.value) return [];
|
|
339
339
|
let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
|
|
340
|
-
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
340
|
+
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ft(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) : Ut(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: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Tt = R.value[0] ? R.value[0].zero : n.value.bottom, Mt = R.value[0] ? R.value[0].horizontal_zero : n.value.left;
|
|
341
341
|
return F.value.filter((ce) => !S.value.includes(ce.id)).map((ce) => {
|
|
342
|
-
const V = ce.series.slice(
|
|
342
|
+
const V = ce.series.slice(h.value.start, h.value.end), pa = ce.signedSeries.slice(h.value.start, h.value.end), xa = V.map((x, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ka = V.map((x, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), wa = V.map((x, k) => {
|
|
343
343
|
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
344
344
|
let Q, N;
|
|
345
|
-
return x > 0 ? (N = A * I, Q =
|
|
346
|
-
}),
|
|
345
|
+
return x > 0 ? (N = A * I, Q = Tt - N - a[k], a[k] += N) : (N = A * I, Q = Tt + t[k], t[k] += Math.abs(N)), Q;
|
|
346
|
+
}), La = V.map((x, k) => {
|
|
347
347
|
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
348
348
|
let Q, N;
|
|
349
|
-
return x > 0 ? (N = Le * I, Q =
|
|
350
|
-
}),
|
|
349
|
+
return x > 0 ? (N = Le * I, Q = Mt + l[k], l[k] += N) : (N = Le * I, Q = Mt - Math.abs(N) - s[k], s[k] += Math.abs(N)), Q;
|
|
350
|
+
}), za = V.map((x, k) => {
|
|
351
351
|
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
352
352
|
return x > 0 ? A * I : A * Math.abs(I);
|
|
353
|
-
}),
|
|
353
|
+
}), Ca = V.map((x, k) => {
|
|
354
354
|
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
355
355
|
return x > 0 ? Le * I : Le * Math.abs(I);
|
|
356
|
-
}),
|
|
356
|
+
}), _a = V.map((x) => Math.abs(x)).reduce((x, k) => x + k, 0);
|
|
357
357
|
return {
|
|
358
358
|
...ce,
|
|
359
|
-
proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) /
|
|
359
|
+
proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / _a),
|
|
360
360
|
series: V,
|
|
361
|
-
signedSeries:
|
|
362
|
-
x:
|
|
363
|
-
y:
|
|
364
|
-
height:
|
|
365
|
-
horizontal_width:
|
|
366
|
-
horizontal_y:
|
|
367
|
-
horizontal_x:
|
|
361
|
+
signedSeries: pa,
|
|
362
|
+
x: xa,
|
|
363
|
+
y: wa,
|
|
364
|
+
height: za,
|
|
365
|
+
horizontal_width: Ca,
|
|
366
|
+
horizontal_y: ka,
|
|
367
|
+
horizontal_x: La
|
|
368
368
|
};
|
|
369
369
|
});
|
|
370
|
-
}),
|
|
370
|
+
}), gt = p(() => ha.value.map((a, l) => ({
|
|
371
371
|
value: a,
|
|
372
372
|
sign: a >= 0 ? 1 : -1
|
|
373
373
|
})));
|
|
@@ -385,7 +385,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
385
385
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function bt(a, l, t, s) {
|
|
389
389
|
return Te(
|
|
390
390
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
391
391
|
a,
|
|
@@ -397,7 +397,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
397
397
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function ft(a) {
|
|
401
401
|
const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
402
402
|
name: t.name,
|
|
403
403
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -405,9 +405,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
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 +
|
|
408
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Ae("selectDatapoint", { datapoint: l, period: $.value[a] });
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function mt(a) {
|
|
411
411
|
return JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
412
412
|
name: l.name,
|
|
413
413
|
absoluteIndex: l.absoluteIndex,
|
|
@@ -417,24 +417,24 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
417
417
|
id: l.id
|
|
418
418
|
}));
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function pt(a) {
|
|
421
421
|
if (e.value.events.datapointLeave) {
|
|
422
|
-
const l =
|
|
423
|
-
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a +
|
|
422
|
+
const l = mt(a);
|
|
423
|
+
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
|
|
424
424
|
}
|
|
425
425
|
Ie.value = null, de.value = null;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function xt(a) {
|
|
428
428
|
de.value = a, Ie.value = !0;
|
|
429
|
-
const l = e.value.style.chart.tooltip.customFormat, t =
|
|
430
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a +
|
|
429
|
+
const l = e.value.style.chart.tooltip.customFormat, t = mt(a);
|
|
430
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Ne.value = {
|
|
431
431
|
datapoint: t,
|
|
432
432
|
seriesIndex: a,
|
|
433
433
|
config: e.value,
|
|
434
434
|
series: w.value
|
|
435
435
|
};
|
|
436
436
|
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
437
|
-
if (
|
|
437
|
+
if (Bt(l) && Wa(() => l({
|
|
438
438
|
seriesIndex: a,
|
|
439
439
|
datapoint: t,
|
|
440
440
|
series: w.value,
|
|
@@ -463,7 +463,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
463
463
|
t.reverse().forEach((A) => {
|
|
464
464
|
K += `
|
|
465
465
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
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_${A.id})` : A.color}"/>${
|
|
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_${A.id})` : A.color}"/>${aa.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${M.value}_${A.absoluteIndex})"/>` : ""}</svg>
|
|
467
467
|
${A.name}${c || u ? ":" : ""} ${c ? ee({
|
|
468
468
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
469
469
|
v: A.value,
|
|
@@ -480,35 +480,35 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
480
480
|
}), Re.value = `<div>${K}</div>`;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const
|
|
484
|
-
|
|
483
|
+
const va = p(() => te.value.width), da = p(() => te.value.height);
|
|
484
|
+
Qa({
|
|
485
485
|
timeLabelsEls: e.value.orientation === "vertical" ? J : G,
|
|
486
486
|
timeLabels: $,
|
|
487
|
-
slicer:
|
|
487
|
+
slicer: h,
|
|
488
488
|
configRef: e,
|
|
489
489
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
490
490
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
491
491
|
isAutoSize: !1,
|
|
492
|
-
width:
|
|
493
|
-
height:
|
|
492
|
+
width: va,
|
|
493
|
+
height: da,
|
|
494
494
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
495
495
|
});
|
|
496
|
-
function
|
|
497
|
-
re.value = a,
|
|
496
|
+
function kt(a) {
|
|
497
|
+
re.value = a, Ge.value += 1;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function wt() {
|
|
500
500
|
z.value.showTable = !z.value.showTable;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Lt() {
|
|
503
503
|
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function zt() {
|
|
506
506
|
z.value.showTooltip = !z.value.showTooltip;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function ya() {
|
|
509
509
|
return w.value;
|
|
510
510
|
}
|
|
511
|
-
const
|
|
511
|
+
const Ct = p(() => {
|
|
512
512
|
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
513
513
|
const a = w.value.map(({ name: t, color: s }) => ({
|
|
514
514
|
label: t,
|
|
@@ -521,16 +521,16 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
521
521
|
}), l.push(s);
|
|
522
522
|
}), { head: a, body: l };
|
|
523
523
|
});
|
|
524
|
-
function
|
|
525
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
526
|
-
a ? a(u) :
|
|
524
|
+
function Be(a = null) {
|
|
525
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Ct.value.head.map((_) => _.label)], s = Ct.value.body, c = l.concat([t]).concat(s), u = Ha(c);
|
|
526
|
+
a ? a(u) : Ba({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
527
527
|
}
|
|
528
528
|
const xe = p(() => {
|
|
529
529
|
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>');
|
|
530
530
|
let l = [];
|
|
531
531
|
for (let c = 0; c < U.value; c += 1) {
|
|
532
532
|
const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, q) => _ + q, 0);
|
|
533
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(
|
|
533
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
534
534
|
}
|
|
535
535
|
const t = {
|
|
536
536
|
th: {
|
|
@@ -545,9 +545,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
545
545
|
},
|
|
546
546
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
547
547
|
}, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
548
|
-
return { head: a, body: l.slice(0,
|
|
548
|
+
return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
|
|
549
549
|
});
|
|
550
|
-
function
|
|
550
|
+
function ga(a, l) {
|
|
551
551
|
if (Ae("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
|
|
552
552
|
S.value = S.value.filter((t) => t !== l.id);
|
|
553
553
|
else {
|
|
@@ -555,15 +555,15 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
555
555
|
S.value.push(l.id);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const
|
|
558
|
+
const _t = p(() => F.value.map((a, l) => ({
|
|
559
559
|
...a,
|
|
560
560
|
shape: "square"
|
|
561
561
|
})).map((a) => ({
|
|
562
562
|
...a,
|
|
563
563
|
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
564
|
-
segregate: () =>
|
|
564
|
+
segregate: () => ga(a.absoluteIndex, a),
|
|
565
565
|
isSegregated: S.value.includes(a.id)
|
|
566
|
-
}))),
|
|
566
|
+
}))), ba = p(() => ({
|
|
567
567
|
cy: "stackbar-legend",
|
|
568
568
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
569
569
|
color: e.value.style.chart.legend.color,
|
|
@@ -571,7 +571,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
571
571
|
paddingBottom: 12,
|
|
572
572
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
573
573
|
})), ke = g(!1);
|
|
574
|
-
function
|
|
574
|
+
function We() {
|
|
575
575
|
ke.value = !ke.value;
|
|
576
576
|
}
|
|
577
577
|
function we(a, l) {
|
|
@@ -588,13 +588,13 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
588
588
|
label: a.text
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
const
|
|
592
|
-
function
|
|
593
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
591
|
+
const fa = p(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
592
|
+
function St(a, l) {
|
|
593
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? nt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : nt.value ? (ot.value && Fe.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > fa.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ot.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
594
594
|
}
|
|
595
|
-
async function
|
|
595
|
+
async function ma({ scale: a = 2 } = {}) {
|
|
596
596
|
if (!O.value) return;
|
|
597
|
-
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await
|
|
597
|
+
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await ja({ domElement: O.value, base64: !0, img: !0, scale: a });
|
|
598
598
|
return {
|
|
599
599
|
imageUri: c,
|
|
600
600
|
base64: u,
|
|
@@ -607,7 +607,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
607
607
|
const ue = p(() => {
|
|
608
608
|
const a = e.value.table.useDialog && !e.value.table.show, l = z.value.showTable;
|
|
609
609
|
return {
|
|
610
|
-
component: a ?
|
|
610
|
+
component: a ? ea : qt,
|
|
611
611
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
612
612
|
props: a ? {
|
|
613
613
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -634,45 +634,49 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
636
|
});
|
|
637
|
-
|
|
637
|
+
ze(() => z.value.showTable, (a) => {
|
|
638
638
|
e.value.table.show || (a && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
|
|
639
|
-
})
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
639
|
+
});
|
|
640
|
+
function $t() {
|
|
641
|
+
z.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
|
|
642
|
+
}
|
|
643
|
+
return Yt({
|
|
644
|
+
getData: ya,
|
|
645
|
+
getImage: ma,
|
|
646
|
+
generatePdf: ct,
|
|
647
|
+
generateCsv: Be,
|
|
648
|
+
generateImage: ht,
|
|
649
|
+
toggleTable: wt,
|
|
650
|
+
toggleLabels: Lt,
|
|
651
|
+
toggleTooltip: zt,
|
|
652
|
+
toggleAnnotator: We,
|
|
653
|
+
toggleFullscreen: kt
|
|
650
654
|
}), (a, l) => (r(), o("div", {
|
|
651
655
|
id: `stackbar_${M.value}`,
|
|
652
656
|
ref_key: "stackbarChart",
|
|
653
657
|
ref: O,
|
|
654
658
|
class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
|
|
655
659
|
style: j(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
656
|
-
onMouseenter: l[
|
|
657
|
-
onMouseleave: l[
|
|
660
|
+
onMouseenter: l[4] || (l[4] = () => v(lt)(!0)),
|
|
661
|
+
onMouseleave: l[5] || (l[5] = () => v(lt)(!1))
|
|
658
662
|
}, [
|
|
659
|
-
e.value.userOptions.buttons.annotator ? (r(), B(
|
|
663
|
+
e.value.userOptions.buttons.annotator ? (r(), B(v(Kt), {
|
|
660
664
|
key: 0,
|
|
661
|
-
svgRef:
|
|
665
|
+
svgRef: v(rt),
|
|
662
666
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
663
667
|
color: e.value.style.chart.color,
|
|
664
668
|
active: ke.value,
|
|
665
|
-
onClose:
|
|
669
|
+
onClose: We
|
|
666
670
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
667
671
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
668
672
|
e.value.style.chart.title.text ? (r(), o("div", {
|
|
669
673
|
key: 1,
|
|
670
674
|
ref_key: "chartTitle",
|
|
671
|
-
ref:
|
|
675
|
+
ref: Je,
|
|
672
676
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
673
677
|
}, [
|
|
674
|
-
(r(), B(
|
|
675
|
-
key: `title_${
|
|
678
|
+
(r(), B(el, {
|
|
679
|
+
key: `title_${je.value}`,
|
|
676
680
|
config: {
|
|
677
681
|
title: {
|
|
678
682
|
cy: "stackbar-title",
|
|
@@ -687,14 +691,15 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
687
691
|
], 512)) : d("", !0),
|
|
688
692
|
D("div", {
|
|
689
693
|
id: `legend-top-${M.value}`
|
|
690
|
-
}, null, 8,
|
|
691
|
-
e.value.userOptions.show &&
|
|
692
|
-
|
|
693
|
-
|
|
694
|
+
}, null, 8, ol),
|
|
695
|
+
e.value.userOptions.show && ve.value && (v(st) || v(De)) ? (r(), B(v(Qt), {
|
|
696
|
+
ref_key: "userOptionsRef",
|
|
697
|
+
ref: Oe,
|
|
698
|
+
key: `user_option_${Ge.value}`,
|
|
694
699
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
695
700
|
color: e.value.style.chart.color,
|
|
696
|
-
isPrinting:
|
|
697
|
-
isImaging:
|
|
701
|
+
isPrinting: v(it),
|
|
702
|
+
isImaging: v(ut),
|
|
698
703
|
uid: M.value,
|
|
699
704
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
700
705
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -712,18 +717,19 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
712
717
|
isAnnotation: ke.value,
|
|
713
718
|
callbacks: e.value.userOptions.callbacks,
|
|
714
719
|
printScale: e.value.userOptions.print.scale,
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
720
|
+
tableDialog: e.value.table.useDialog,
|
|
721
|
+
onToggleFullscreen: kt,
|
|
722
|
+
onGeneratePdf: v(ct),
|
|
723
|
+
onGenerateCsv: Be,
|
|
724
|
+
onGenerateImage: v(ht),
|
|
725
|
+
onToggleTable: wt,
|
|
726
|
+
onToggleLabels: Lt,
|
|
727
|
+
onToggleTooltip: zt,
|
|
728
|
+
onToggleAnnotator: We,
|
|
723
729
|
style: j({
|
|
724
|
-
visibility:
|
|
730
|
+
visibility: v(st) ? v(De) ? "visible" : "hidden" : "visible"
|
|
725
731
|
})
|
|
726
|
-
},
|
|
732
|
+
}, Ye({ _: 2 }, [
|
|
727
733
|
a.$slots.menuIcon ? {
|
|
728
734
|
name: "menuIcon",
|
|
729
735
|
fn: C(({ isOpen: t, color: s }) => [
|
|
@@ -787,16 +793,16 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
787
793
|
]),
|
|
788
794
|
key: "8"
|
|
789
795
|
} : void 0
|
|
790
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
796
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
791
797
|
(r(), o("svg", {
|
|
792
798
|
ref_key: "svgRef",
|
|
793
|
-
ref:
|
|
794
|
-
xmlns:
|
|
799
|
+
ref: rt,
|
|
800
|
+
xmlns: v(Da),
|
|
795
801
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
796
|
-
class: le({ "vue-data-ui-loading":
|
|
802
|
+
class: le({ "vue-data-ui-loading": v(ne) }),
|
|
797
803
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
798
804
|
}, [
|
|
799
|
-
|
|
805
|
+
he(v(jt)),
|
|
800
806
|
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
801
807
|
key: 0,
|
|
802
808
|
x: n.value.left,
|
|
@@ -808,8 +814,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
808
814
|
}
|
|
809
815
|
}, [
|
|
810
816
|
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
811
|
-
], 8,
|
|
812
|
-
e.value.style.chart.bars.gradient.show ? (r(), o("defs",
|
|
817
|
+
], 8, il)) : d("", !0),
|
|
818
|
+
e.value.style.chart.bars.gradient.show ? (r(), o("defs", ul, [
|
|
813
819
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("linearGradient", {
|
|
814
820
|
id: `gradient_${t.id}`,
|
|
815
821
|
x1: "0%",
|
|
@@ -820,16 +826,16 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
820
826
|
D("stop", {
|
|
821
827
|
offset: "0%",
|
|
822
828
|
"stop-color": t.color
|
|
823
|
-
}, null, 8,
|
|
829
|
+
}, null, 8, hl),
|
|
824
830
|
D("stop", {
|
|
825
831
|
offset: "61.8%",
|
|
826
|
-
"stop-color":
|
|
827
|
-
}, null, 8,
|
|
832
|
+
"stop-color": v(Ea)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
833
|
+
}, null, 8, vl),
|
|
828
834
|
D("stop", {
|
|
829
835
|
offset: "100%",
|
|
830
836
|
"stop-color": t.color
|
|
831
|
-
}, null, 8,
|
|
832
|
-
], 8,
|
|
837
|
+
}, null, 8, dl)
|
|
838
|
+
], 8, cl))), 256))
|
|
833
839
|
])) : d("", !0),
|
|
834
840
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(R.value, (t, s) => (r(), o("line", {
|
|
835
841
|
x1: n.value.left,
|
|
@@ -840,8 +846,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
840
846
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
841
847
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
842
848
|
"stroke-linecap": "round"
|
|
843
|
-
}, null, 8,
|
|
844
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(
|
|
849
|
+
}, null, 8, yl))), 256)) : d("", !0),
|
|
850
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
845
851
|
x1: n.value.left,
|
|
846
852
|
x2: n.value.right,
|
|
847
853
|
y1: n.value.top + y.value * s,
|
|
@@ -850,8 +856,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
850
856
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
851
857
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
852
858
|
"stroke-linecap": "round"
|
|
853
|
-
}, null, 8,
|
|
854
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(
|
|
859
|
+
}, null, 8, gl))), 256)) : d("", !0),
|
|
860
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
855
861
|
x1: n.value.left + y.value * s,
|
|
856
862
|
x2: n.value.left + y.value * s,
|
|
857
863
|
y1: n.value.top,
|
|
@@ -860,7 +866,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
860
866
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
861
867
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
862
868
|
"stroke-linecap": "round"
|
|
863
|
-
}, null, 8,
|
|
869
|
+
}, null, 8, bl))), 256)) : d("", !0),
|
|
864
870
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(R.value, (t, s) => (r(), o("line", {
|
|
865
871
|
x1: t.horizontal_x,
|
|
866
872
|
x2: t.horizontal_x,
|
|
@@ -870,9 +876,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
870
876
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
871
877
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
872
878
|
"stroke-linecap": "round"
|
|
873
|
-
}, null, 8,
|
|
879
|
+
}, null, 8, fl))), 256)) : d("", !0),
|
|
874
880
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
875
|
-
a.$slots.pattern ? (r(), o("defs",
|
|
881
|
+
a.$slots.pattern ? (r(), o("defs", ml, [
|
|
876
882
|
L(a.$slots, "pattern", Ce({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${M.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
877
883
|
])) : d("", !0),
|
|
878
884
|
e.value.orientation === "vertical" ? (r(), o(b, { key: 1 }, [
|
|
@@ -888,8 +894,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
888
894
|
"stroke-linecap": "round",
|
|
889
895
|
"stroke-linejoin": "round",
|
|
890
896
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
891
|
-
}, null, 10,
|
|
892
|
-
a.$slots.pattern ? (r(), o("g",
|
|
897
|
+
}, null, 10, pl))), 256)),
|
|
898
|
+
a.$slots.pattern ? (r(), o("g", xl, [
|
|
893
899
|
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
894
900
|
x: c,
|
|
895
901
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
@@ -902,13 +908,13 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
902
908
|
"stroke-linecap": "round",
|
|
903
909
|
"stroke-linejoin": "round",
|
|
904
910
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
905
|
-
}, null, 10,
|
|
911
|
+
}, null, 10, kl))), 256))
|
|
906
912
|
])) : d("", !0)
|
|
907
913
|
], 64)) : (r(), o(b, { key: 2 }, [
|
|
908
914
|
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
909
|
-
x:
|
|
915
|
+
x: v($e)(c, n.value.left),
|
|
910
916
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
911
|
-
width:
|
|
917
|
+
width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
912
918
|
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,
|
|
913
919
|
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
914
920
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
@@ -917,12 +923,12 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
917
923
|
"stroke-linecap": "round",
|
|
918
924
|
"stroke-linejoin": "round",
|
|
919
925
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
920
|
-
}, null, 10,
|
|
921
|
-
a.$slots.pattern ? (r(), o("g",
|
|
926
|
+
}, null, 10, wl))), 256)),
|
|
927
|
+
a.$slots.pattern ? (r(), o("g", Ll, [
|
|
922
928
|
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
923
|
-
x:
|
|
929
|
+
x: v($e)(c, n.value.left),
|
|
924
930
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
925
|
-
width:
|
|
931
|
+
width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
926
932
|
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,
|
|
927
933
|
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
928
934
|
fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
|
|
@@ -931,7 +937,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
931
937
|
"stroke-linecap": "round",
|
|
932
938
|
"stroke-linejoin": "round",
|
|
933
939
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
934
|
-
}, null, 10,
|
|
940
|
+
}, null, 10, zl))), 256))
|
|
935
941
|
])) : d("", !0)
|
|
936
942
|
], 64))
|
|
937
943
|
]))), 256)),
|
|
@@ -945,7 +951,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
945
951
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
946
952
|
"stroke-linecap": "round",
|
|
947
953
|
"stroke-linejoin": "round"
|
|
948
|
-
}, null, 8,
|
|
954
|
+
}, null, 8, Cl)) : d("", !0),
|
|
949
955
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
|
|
950
956
|
key: 7,
|
|
951
957
|
x1: n.value.left,
|
|
@@ -956,48 +962,48 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
956
962
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
957
963
|
"stroke-linecap": "round",
|
|
958
964
|
"stroke-linejoin": "round"
|
|
959
|
-
}, null, 8,
|
|
965
|
+
}, null, 8, _l)) : d("", !0),
|
|
960
966
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
|
|
961
967
|
key: 8,
|
|
962
968
|
ref_key: "xAxisLabel",
|
|
963
|
-
ref:
|
|
969
|
+
ref: Pe,
|
|
964
970
|
x: n.value.left + n.value.width / 2,
|
|
965
971
|
y: n.value.chartHeight - 3,
|
|
966
972
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
967
973
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
968
974
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
969
975
|
"text-anchor": "middle"
|
|
970
|
-
}, T(e.value.style.chart.grid.x.axisName.text), 9,
|
|
976
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Sl)) : d("", !0),
|
|
971
977
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
|
|
972
978
|
key: 9,
|
|
973
979
|
ref_key: "yAxisLabel",
|
|
974
|
-
ref:
|
|
980
|
+
ref: Ve,
|
|
975
981
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
976
982
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
977
983
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
978
984
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
979
985
|
"text-anchor": "middle"
|
|
980
|
-
}, T(e.value.style.chart.grid.y.axisName.text), 9,
|
|
986
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, $l)) : d("", !0),
|
|
981
987
|
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(b, { key: 10 }, [
|
|
982
988
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
983
989
|
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o(b, null, [
|
|
984
|
-
|
|
990
|
+
St(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
985
991
|
key: 0,
|
|
986
992
|
x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
987
993
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
988
994
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
989
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
995
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
990
996
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
991
997
|
"text-anchor": "middle"
|
|
992
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
998
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? bt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Tl)) : d("", !0)
|
|
993
999
|
], 64))), 256))
|
|
994
1000
|
]))), 256)),
|
|
995
1001
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
996
1002
|
key: 0,
|
|
997
1003
|
ref_key: "sumTop",
|
|
998
|
-
ref:
|
|
1004
|
+
ref: ra
|
|
999
1005
|
}, [
|
|
1000
|
-
(r(!0), o(b, null, m(
|
|
1006
|
+
(r(!0), o(b, null, m(gt.value, (t, s) => (r(), o(b, null, [
|
|
1001
1007
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
1002
1008
|
key: 0,
|
|
1003
1009
|
x: n.value.left + y.value * s + y.value / 2,
|
|
@@ -1006,30 +1012,30 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1006
1012
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1007
1013
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1008
1014
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1009
|
-
}, T(pe(t.value, t, s, t.sign)), 9,
|
|
1015
|
+
}, T(pe(t.value, t, s, t.sign)), 9, Ml)) : d("", !0)
|
|
1010
1016
|
], 64))), 256))
|
|
1011
1017
|
], 512)) : d("", !0)
|
|
1012
1018
|
], 64)) : d("", !0),
|
|
1013
1019
|
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(b, { key: 11 }, [
|
|
1014
1020
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
1015
1021
|
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o(b, null, [
|
|
1016
|
-
|
|
1022
|
+
St(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
1017
1023
|
key: 0,
|
|
1018
1024
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
1019
1025
|
y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1020
1026
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1021
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
1027
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1022
1028
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1023
1029
|
"text-anchor": "middle"
|
|
1024
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
1030
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? bt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Al)) : d("", !0)
|
|
1025
1031
|
], 64))), 256))
|
|
1026
1032
|
]))), 256)),
|
|
1027
1033
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
1028
1034
|
key: 0,
|
|
1029
1035
|
ref_key: "sumRight",
|
|
1030
|
-
ref:
|
|
1036
|
+
ref: at
|
|
1031
1037
|
}, [
|
|
1032
|
-
(r(!0), o(b, null, m(
|
|
1038
|
+
(r(!0), o(b, null, m(gt.value, (t, s) => (r(), o(b, null, [
|
|
1033
1039
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
1034
1040
|
key: 0,
|
|
1035
1041
|
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
@@ -1038,7 +1044,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1038
1044
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1039
1045
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1040
1046
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1041
|
-
}, T(pe(t.value, t, s, t.sign)), 9,
|
|
1047
|
+
}, T(pe(t.value, t, s, t.sign)), 9, Il)) : d("", !0)
|
|
1042
1048
|
], 64))), 256))
|
|
1043
1049
|
], 512)) : d("", !0)
|
|
1044
1050
|
], 64)) : d("", !0),
|
|
@@ -1054,7 +1060,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1054
1060
|
y2: t.y,
|
|
1055
1061
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1056
1062
|
"stroke-width": 1
|
|
1057
|
-
}, null, 8,
|
|
1063
|
+
}, null, 8, Nl))), 256)),
|
|
1058
1064
|
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
|
|
1059
1065
|
x: t.x,
|
|
1060
1066
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -1062,17 +1068,17 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1062
1068
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1063
1069
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1064
1070
|
"text-anchor": "end"
|
|
1065
|
-
}, T(
|
|
1071
|
+
}, T(v(Te)(
|
|
1066
1072
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1067
1073
|
t.value,
|
|
1068
|
-
|
|
1074
|
+
v(ee)({
|
|
1069
1075
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1070
1076
|
v: t.value,
|
|
1071
1077
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1072
1078
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1073
1079
|
}),
|
|
1074
1080
|
{ datapoint: t }
|
|
1075
|
-
)), 9,
|
|
1081
|
+
)), 9, Rl))), 256))
|
|
1076
1082
|
], 512)) : d("", !0),
|
|
1077
1083
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1078
1084
|
key: 13,
|
|
@@ -1087,7 +1093,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1087
1093
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1088
1094
|
"stroke-width": 1,
|
|
1089
1095
|
"stroke-linecap": "round"
|
|
1090
|
-
}, null, 8,
|
|
1096
|
+
}, null, 8, Ol))), 256)),
|
|
1091
1097
|
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
|
|
1092
1098
|
class: "vue-data-ui-time-label",
|
|
1093
1099
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1095,24 +1101,24 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1095
1101
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1096
1102
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1097
1103
|
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})`
|
|
1098
|
-
}, T(
|
|
1104
|
+
}, T(v(Te)(
|
|
1099
1105
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1100
1106
|
t.value,
|
|
1101
|
-
|
|
1107
|
+
v(ee)({
|
|
1102
1108
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1103
1109
|
v: t.value,
|
|
1104
1110
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1105
1111
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1106
1112
|
}),
|
|
1107
1113
|
{ datapoint: t }
|
|
1108
|
-
)), 9,
|
|
1114
|
+
)), 9, Pl))), 256))
|
|
1109
1115
|
], 512)) : d("", !0),
|
|
1110
1116
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1111
1117
|
key: 14,
|
|
1112
1118
|
ref_key: "timeLabelsEls",
|
|
1113
1119
|
ref: J
|
|
1114
1120
|
}, [
|
|
1115
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1121
|
+
a.$slots["time-label"] ? (r(), o("g", Vl, [
|
|
1116
1122
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1117
1123
|
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1118
1124
|
x: n.value.left + y.value * s + y.value / 2,
|
|
@@ -1126,7 +1132,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1126
1132
|
show: !0
|
|
1127
1133
|
}), void 0, !0)
|
|
1128
1134
|
]))), 256))
|
|
1129
|
-
])) : (r(), o("g",
|
|
1135
|
+
])) : (r(), o("g", Dl, [
|
|
1130
1136
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1131
1137
|
String(t.text).includes(`
|
|
1132
1138
|
`) ? (r(), o("text", {
|
|
@@ -1142,7 +1148,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1142
1148
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1143
1149
|
`,
|
|
1144
1150
|
style: { cursor: "pointer" },
|
|
1145
|
-
innerHTML:
|
|
1151
|
+
innerHTML: v(Fa)({
|
|
1146
1152
|
content: String(t.text),
|
|
1147
1153
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1148
1154
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -1150,7 +1156,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1150
1156
|
y: 0
|
|
1151
1157
|
}),
|
|
1152
1158
|
onClick: () => we(t, s)
|
|
1153
|
-
}, null, 8,
|
|
1159
|
+
}, null, 8, Fl)) : (r(), o("text", {
|
|
1154
1160
|
class: "vue-data-ui-time-label",
|
|
1155
1161
|
key: s,
|
|
1156
1162
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1160,7 +1166,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1160
1166
|
transform: `translate(${n.value.left + y.value * s + y.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})`,
|
|
1161
1167
|
style: { cursor: "pointer" },
|
|
1162
1168
|
onClick: () => we(t, s)
|
|
1163
|
-
}, T(t.text), 9,
|
|
1169
|
+
}, T(t.text), 9, El))
|
|
1164
1170
|
]))), 256))
|
|
1165
1171
|
]))
|
|
1166
1172
|
], 512)) : d("", !0),
|
|
@@ -1169,7 +1175,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1169
1175
|
ref_key: "timeLabelsEls",
|
|
1170
1176
|
ref: J
|
|
1171
1177
|
}, [
|
|
1172
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1178
|
+
a.$slots["time-label"] ? (r(), o("g", Ul, [
|
|
1173
1179
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1174
1180
|
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1175
1181
|
x: n.value.left - 8,
|
|
@@ -1183,7 +1189,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1183
1189
|
show: !0
|
|
1184
1190
|
}), void 0, !0)
|
|
1185
1191
|
]))), 256))
|
|
1186
|
-
])) : (r(), o("g",
|
|
1192
|
+
])) : (r(), o("g", Hl, [
|
|
1187
1193
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1188
1194
|
String(t.text).includes(`
|
|
1189
1195
|
`) ? (r(), o("text", {
|
|
@@ -1196,14 +1202,14 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1196
1202
|
y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1197
1203
|
style: { cursor: "pointer" },
|
|
1198
1204
|
onClick: () => we(t, s),
|
|
1199
|
-
innerHTML:
|
|
1205
|
+
innerHTML: v(Ua)({
|
|
1200
1206
|
content: String(t.text),
|
|
1201
1207
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1202
1208
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1203
1209
|
x: n.value.left - 8,
|
|
1204
1210
|
y: 0
|
|
1205
1211
|
})
|
|
1206
|
-
}, null, 8,
|
|
1212
|
+
}, null, 8, Wl)) : (r(), o("text", {
|
|
1207
1213
|
key: 0,
|
|
1208
1214
|
"text-anchor": "end",
|
|
1209
1215
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1215,69 +1221,69 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1215
1221
|
cursor: "pointer"
|
|
1216
1222
|
},
|
|
1217
1223
|
onClick: () => we(t, s)
|
|
1218
|
-
}, T(t.text), 9,
|
|
1224
|
+
}, T(t.text), 9, Bl))
|
|
1219
1225
|
]))), 256))
|
|
1220
1226
|
]))
|
|
1221
1227
|
], 512)) : d("", !0),
|
|
1222
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(
|
|
1228
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1223
1229
|
x: n.value.left + s * y.value,
|
|
1224
1230
|
y: n.value.top,
|
|
1225
1231
|
width: y.value,
|
|
1226
1232
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1227
|
-
onClick: () =>
|
|
1228
|
-
onMouseenter: () =>
|
|
1229
|
-
onMouseleave: () =>
|
|
1233
|
+
onClick: () => ft(s),
|
|
1234
|
+
onMouseenter: () => xt(s),
|
|
1235
|
+
onMouseleave: () => pt(s),
|
|
1230
1236
|
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1231
1237
|
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1232
|
-
}, null, 44,
|
|
1233
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(
|
|
1238
|
+
}, null, 44, Yl))), 256)) : d("", !0),
|
|
1239
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1234
1240
|
x: n.value.left,
|
|
1235
1241
|
y: n.value.top + s * y.value,
|
|
1236
1242
|
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1237
1243
|
height: y.value,
|
|
1238
|
-
onClick: () =>
|
|
1239
|
-
onMouseenter: () =>
|
|
1240
|
-
onMouseleave: () =>
|
|
1244
|
+
onClick: () => ft(s),
|
|
1245
|
+
onMouseenter: () => xt(s),
|
|
1246
|
+
onMouseleave: () => pt(s),
|
|
1241
1247
|
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1242
1248
|
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1243
|
-
}, null, 44,
|
|
1249
|
+
}, null, 44, Xl))), 256)) : d("", !0),
|
|
1244
1250
|
L(a.$slots, "svg", W(Y({ ...n.value })), void 0, !0)
|
|
1245
|
-
], 14,
|
|
1246
|
-
a.$slots.watermark ? (r(), o("div",
|
|
1247
|
-
L(a.$slots, "watermark", W(Y({ isPrinting:
|
|
1251
|
+
], 14, nl)),
|
|
1252
|
+
a.$slots.watermark ? (r(), o("div", Gl, [
|
|
1253
|
+
L(a.$slots, "watermark", W(Y({ isPrinting: v(it) || v(ut) })), void 0, !0)
|
|
1248
1254
|
])) : d("", !0),
|
|
1249
1255
|
D("div", {
|
|
1250
1256
|
ref_key: "chartSlicer",
|
|
1251
|
-
ref:
|
|
1257
|
+
ref: Ze,
|
|
1252
1258
|
style: j(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1253
1259
|
"data-dom-to-png-ignore": ""
|
|
1254
1260
|
}, [
|
|
1255
|
-
e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(
|
|
1261
|
+
e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(ll, {
|
|
1256
1262
|
ref_key: "slicerComponent",
|
|
1257
|
-
ref:
|
|
1258
|
-
key: `slicer_${
|
|
1263
|
+
ref: et,
|
|
1264
|
+
key: `slicer_${Qe.value}`,
|
|
1259
1265
|
background: e.value.style.chart.zoom.color,
|
|
1260
1266
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1261
1267
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
1262
1268
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
1263
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[
|
|
1264
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[
|
|
1269
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
|
|
1270
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
|
|
1265
1271
|
textColor: e.value.style.chart.color,
|
|
1266
1272
|
inputColor: e.value.style.chart.zoom.color,
|
|
1267
1273
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1268
1274
|
max: Math.max(...Me.dataset.map((t) => t.series.length)),
|
|
1269
1275
|
min: 0,
|
|
1270
|
-
valueStart:
|
|
1271
|
-
valueEnd:
|
|
1272
|
-
start:
|
|
1273
|
-
"onUpdate:start": l[0] || (l[0] = (t) =>
|
|
1274
|
-
end:
|
|
1275
|
-
"onUpdate:end": l[1] || (l[1] = (t) =>
|
|
1276
|
+
valueStart: h.value.start,
|
|
1277
|
+
valueEnd: h.value.end,
|
|
1278
|
+
start: h.value.start,
|
|
1279
|
+
"onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
|
|
1280
|
+
end: h.value.end,
|
|
1281
|
+
"onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
|
|
1276
1282
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1277
1283
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Me.dataset.map((t) => t.series.length)),
|
|
1278
1284
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1279
1285
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1280
|
-
onReset:
|
|
1286
|
+
onReset: yt
|
|
1281
1287
|
}, {
|
|
1282
1288
|
"reset-action": C(({ reset: t }) => [
|
|
1283
1289
|
L(a.$slots, "reset-action", W(Y({ reset: t })), void 0, !0)
|
|
@@ -1285,7 +1291,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1285
1291
|
_: 3
|
|
1286
1292
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0)
|
|
1287
1293
|
], 4),
|
|
1288
|
-
|
|
1294
|
+
he(v(Gt), {
|
|
1289
1295
|
show: z.value.showTooltip && Ie.value,
|
|
1290
1296
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1291
1297
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1299,7 +1305,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1299
1305
|
parent: O.value,
|
|
1300
1306
|
content: Re.value,
|
|
1301
1307
|
isFullscreen: re.value,
|
|
1302
|
-
isCustom:
|
|
1308
|
+
isCustom: v(Bt)(e.value.style.chart.tooltip.customFormat),
|
|
1303
1309
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1304
1310
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1305
1311
|
}, {
|
|
@@ -1313,34 +1319,34 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1313
1319
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1314
1320
|
D("div", {
|
|
1315
1321
|
id: `legend-bottom-${M.value}`
|
|
1316
|
-
}, null, 8,
|
|
1317
|
-
|
|
1322
|
+
}, null, 8, Jl),
|
|
1323
|
+
tt.value ? (r(), B(Ta, {
|
|
1318
1324
|
key: 4,
|
|
1319
1325
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
1320
1326
|
}, [
|
|
1321
1327
|
D("div", {
|
|
1322
1328
|
ref_key: "chartLegend",
|
|
1323
|
-
ref:
|
|
1329
|
+
ref: qe
|
|
1324
1330
|
}, [
|
|
1325
|
-
e.value.style.chart.legend.show ? (r(), B(
|
|
1331
|
+
e.value.style.chart.legend.show ? (r(), B(al, {
|
|
1326
1332
|
key: 0,
|
|
1327
|
-
legendSet:
|
|
1328
|
-
config:
|
|
1333
|
+
legendSet: _t.value,
|
|
1334
|
+
config: ba.value,
|
|
1329
1335
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1330
|
-
},
|
|
1336
|
+
}, Ye({
|
|
1331
1337
|
item: C(({ legend: t }) => [
|
|
1332
|
-
|
|
1338
|
+
v(ne) ? d("", !0) : (r(), o("div", {
|
|
1333
1339
|
key: 0,
|
|
1334
1340
|
onClick: (s) => t.segregate(),
|
|
1335
1341
|
style: j(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1336
|
-
}, T(t.name), 13,
|
|
1342
|
+
}, T(t.name), 13, ql))
|
|
1337
1343
|
]),
|
|
1338
1344
|
_: 2
|
|
1339
1345
|
}, [
|
|
1340
1346
|
a.$slots.pattern ? {
|
|
1341
1347
|
name: "legend-pattern",
|
|
1342
1348
|
fn: C(({ legend: t, index: s }) => [
|
|
1343
|
-
|
|
1349
|
+
he(tl, {
|
|
1344
1350
|
shape: t.shape,
|
|
1345
1351
|
radius: 30,
|
|
1346
1352
|
stroke: "none",
|
|
@@ -1352,38 +1358,38 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1352
1358
|
} : void 0
|
|
1353
1359
|
]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
|
|
1354
1360
|
key: 1,
|
|
1355
|
-
legend:
|
|
1361
|
+
legend: _t.value
|
|
1356
1362
|
}, void 0, !0)
|
|
1357
1363
|
], 512)
|
|
1358
1364
|
], 8, ["to"])) : d("", !0),
|
|
1359
1365
|
a.$slots.source ? (r(), o("div", {
|
|
1360
1366
|
key: 5,
|
|
1361
1367
|
ref_key: "source",
|
|
1362
|
-
ref:
|
|
1368
|
+
ref: Ke,
|
|
1363
1369
|
dir: "auto"
|
|
1364
1370
|
}, [
|
|
1365
1371
|
L(a.$slots, "source", {}, void 0, !0)
|
|
1366
1372
|
], 512)) : d("", !0),
|
|
1367
|
-
|
|
1373
|
+
ve.value ? (r(), B(Ma(ue.value.component), Ce({ key: 6 }, ue.value.props, {
|
|
1368
1374
|
ref_key: "tableUnit",
|
|
1369
1375
|
ref: oe,
|
|
1370
|
-
onClose:
|
|
1371
|
-
}),
|
|
1376
|
+
onClose: $t
|
|
1377
|
+
}), Ye({
|
|
1372
1378
|
content: C(() => [
|
|
1373
|
-
|
|
1379
|
+
he(v(Zt), {
|
|
1374
1380
|
colNames: xe.value.colNames,
|
|
1375
1381
|
head: xe.value.head,
|
|
1376
1382
|
body: xe.value.body,
|
|
1377
1383
|
config: xe.value.config,
|
|
1378
1384
|
title: e.value.table.useDialog ? "" : ue.value.title,
|
|
1379
1385
|
withCloseButton: !e.value.table.useDialog,
|
|
1380
|
-
onClose:
|
|
1386
|
+
onClose: $t
|
|
1381
1387
|
}, {
|
|
1382
1388
|
th: C(({ th: t }) => [
|
|
1383
|
-
D("div", { innerHTML: t }, null, 8,
|
|
1389
|
+
D("div", { innerHTML: t }, null, 8, Zl)
|
|
1384
1390
|
]),
|
|
1385
1391
|
td: C(({ td: t }) => [
|
|
1386
|
-
|
|
1392
|
+
Pt(T(isNaN(Number(t)) ? t : v(ee)({
|
|
1387
1393
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1388
1394
|
v: t,
|
|
1389
1395
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1398,7 +1404,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1398
1404
|
e.value.table.useDialog ? {
|
|
1399
1405
|
name: "title",
|
|
1400
1406
|
fn: C(() => [
|
|
1401
|
-
|
|
1407
|
+
Pt(T(ue.value.title), 1)
|
|
1402
1408
|
]),
|
|
1403
1409
|
key: "0"
|
|
1404
1410
|
} : void 0,
|
|
@@ -1408,9 +1414,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1408
1414
|
D("button", {
|
|
1409
1415
|
tabindex: "0",
|
|
1410
1416
|
class: "vue-ui-user-options-button",
|
|
1411
|
-
onClick: l[3] || (l[3] = (t) =>
|
|
1417
|
+
onClick: l[3] || (l[3] = (t) => Be(e.value.userOptions.callbacks.csv))
|
|
1412
1418
|
}, [
|
|
1413
|
-
|
|
1419
|
+
he(v(Jt), {
|
|
1414
1420
|
name: "excel",
|
|
1415
1421
|
stroke: ue.value.props.color
|
|
1416
1422
|
}, null, 8, ["stroke"])
|
|
@@ -1419,10 +1425,10 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
|
|
|
1419
1425
|
key: "1"
|
|
1420
1426
|
} : void 0
|
|
1421
1427
|
]), 1040)) : d("", !0),
|
|
1422
|
-
|
|
1423
|
-
], 46,
|
|
1428
|
+
v(ne) ? (r(), B(Ja, { key: 7 })) : d("", !0)
|
|
1429
|
+
], 46, rl));
|
|
1424
1430
|
}
|
|
1425
|
-
},
|
|
1431
|
+
}, ys = /* @__PURE__ */ sl(Kl, [["__scopeId", "data-v-e40199a5"]]);
|
|
1426
1432
|
export {
|
|
1427
|
-
|
|
1433
|
+
ys as default
|
|
1428
1434
|
};
|