vue-data-ui 3.0.0-next.25 → 3.0.0-next.27
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-BTsjhHHh.js → Arrow-RGDVmFSH.js} +1 -1
- package/dist/{BaseDraggableDialog-7344fBM0.js → BaseDraggableDialog-2MH5hxMc.js} +2 -2
- package/dist/{BaseIcon-CDz2oozx.js → BaseIcon-DLJ5Lzvf.js} +1 -1
- package/dist/{ColorPicker-BxiEt6Tt.js → ColorPicker-uH4pBeoc.js} +2 -2
- package/dist/{DataTable-iAIT4SCP.js → DataTable-DWXGn13M.js} +2 -2
- package/dist/{Legend-CyOENTUo.js → Legend-XvLWu-U4.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CA6KMiGz.js → NonSvgPenAndPaper-DY6-8nWM.js} +3 -3
- package/dist/{PackageVersion-BYRaFDzL.js → PackageVersion-CcyOrmqr.js} +1 -1
- package/dist/{PenAndPaper-rr8902FN.js → PenAndPaper-S1h1sM_v.js} +3 -3
- package/dist/{Shape-CEqtl1VO.js → Shape-B2NNkVEU.js} +1 -1
- package/dist/{Slicer-DDzthK35.js → Slicer-C2128jWm.js} +2 -2
- package/dist/{SparkTooltip-CtRls3um.js → SparkTooltip-B0IgrAiC.js} +1 -1
- package/dist/{Title-B7M9e3sH.js → Title-BT7bS0eb.js} +1 -1
- package/dist/{Tooltip-COY92a5-.js → Tooltip-CbaafXw_.js} +1 -1
- package/dist/{UserOptions-DK3vsMFd.js → UserOptions-C9lB05jb.js} +2 -2
- package/dist/{dom-to-png-D3GALOZU.js → dom-to-png-B5f_cRVB.js} +1 -1
- package/dist/{img-CcchoCI6.js → img-BScthXJW.js} +1 -1
- package/dist/{index-fJBJ72OC.js → index-DTJkgcxh.js} +341 -337
- package/dist/{pdf-DYTZWUjw.js → pdf-DEfty6-G.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -2
- package/dist/types/vue-data-ui.d.ts +3 -2
- package/dist/{useNestedProp-BliM4SGD.js → useNestedProp-DvwKj8Zn.js} +1 -1
- package/dist/{usePrinter-DQuFkOC5.js → usePrinter-CbokYjoB.js} +2 -2
- package/dist/{vue-data-ui-C1lvBv6z.js → vue-data-ui-BubXK-EN.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C3eQe8U7.js → vue-ui-3d-bar-BgbiwMsJ.js} +6 -6
- package/dist/{vue-ui-accordion-CsrBV8sH.js → vue-ui-accordion-BDuLBbkX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-n7sNiWF2.js → vue-ui-age-pyramid-B8esFXAj.js} +6 -6
- package/dist/{vue-ui-annotator-DYst7GL2.js → vue-ui-annotator-BM2Fxwyn.js} +2 -2
- package/dist/{vue-ui-bullet-Cl2M41Ke.js → vue-ui-bullet-C5r2tlAw.js} +7 -7
- package/dist/{vue-ui-candlestick-6jYtO7Vh.js → vue-ui-candlestick-DEqKEVdy.js} +149 -150
- package/dist/{vue-ui-carousel-table--F9f6OWZ.js → vue-ui-carousel-table-CHABZSa7.js} +4 -4
- package/dist/{vue-ui-chestnut-nZz6MY0E.js → vue-ui-chestnut-CKmXKQ61.js} +5 -5
- package/dist/{vue-ui-chord-Dlj-3X51.js → vue-ui-chord-DW2ndivp.js} +8 -8
- package/dist/{vue-ui-circle-pack-DhUppMs-.js → vue-ui-circle-pack-BKlgiMRS.js} +6 -6
- package/dist/{vue-ui-cursor-D6sHbFHG.js → vue-ui-cursor-BpctNjDR.js} +2 -2
- package/dist/{vue-ui-dashboard-DaxbLtod.js → vue-ui-dashboard-C304-EeY.js} +62 -62
- package/dist/{vue-ui-digits-D-ujFZF8.js → vue-ui-digits-anpApSWe.js} +2 -2
- package/dist/{vue-ui-donut-DORQBhM_.js → vue-ui-donut-JzjQTiDx.js} +8 -8
- package/dist/vue-ui-donut-evolution-nQbgWXs5.js +1072 -0
- package/dist/{vue-ui-dumbbell-Biush2C5.js → vue-ui-dumbbell-BgnmrlkA.js} +7 -7
- package/dist/{vue-ui-flow-DpX0UCZi.js → vue-ui-flow-DEPrQA-w.js} +7 -7
- package/dist/{vue-ui-funnel-CP1GlNtS.js → vue-ui-funnel-ojf0srk6.js} +6 -6
- package/dist/{vue-ui-galaxy-DfKr6Mae.js → vue-ui-galaxy-CYP_NOuc.js} +5 -5
- package/dist/{vue-ui-gauge-BZmrsbJ9.js → vue-ui-gauge-PZkGA3xT.js} +6 -6
- package/dist/{vue-ui-gizmo-DU7dxEIZ.js → vue-ui-gizmo-BVEf1l02.js} +3 -3
- package/dist/{vue-ui-heatmap-DLeCwx6k.js → vue-ui-heatmap-C0QKWdB2.js} +7 -7
- package/dist/{vue-ui-history-plot-BrvUX4gK.js → vue-ui-history-plot-DL6znOA2.js} +7 -7
- package/dist/{vue-ui-kpi-s56r373O.js → vue-ui-kpi-k901VoIN.js} +3 -3
- package/dist/{vue-ui-mini-loader-jNRdHqeK.js → vue-ui-mini-loader-dO16jdj9.js} +2 -2
- package/dist/{vue-ui-molecule-DZUOPeeV.js → vue-ui-molecule-CgBLfrXa.js} +5 -5
- package/dist/{vue-ui-mood-radar-CySbOHJ9.js → vue-ui-mood-radar-BxwR2Ez7.js} +7 -7
- package/dist/{vue-ui-nested-donuts-zmWAssyd.js → vue-ui-nested-donuts-BIjRulQt.js} +9 -9
- package/dist/{vue-ui-onion-L_TXtgR4.js → vue-ui-onion-CkoPdA0-.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BjTfK64F.js → vue-ui-parallel-coordinate-plot-CHQ4Brih.js} +8 -8
- package/dist/{vue-ui-quadrant-DndNU61k.js → vue-ui-quadrant-CEQTH_Vf.js} +8 -8
- package/dist/{vue-ui-quick-chart-B1RCrld7.js → vue-ui-quick-chart-DIoqKBCM.js} +265 -263
- package/dist/{vue-ui-radar-OMddOqeu.js → vue-ui-radar-Cft9wyK8.js} +7 -7
- package/dist/{vue-ui-rating-BTFawXu8.js → vue-ui-rating-OARiI9ot.js} +2 -2
- package/dist/{vue-ui-relation-circle-CSZUUpA2.js → vue-ui-relation-circle-B-Zb1LQY.js} +6 -6
- package/dist/{vue-ui-ridgeline-Hq3omBeT.js → vue-ui-ridgeline-v7NEDfRs.js} +8 -8
- package/dist/{vue-ui-rings-CwPNpgCY.js → vue-ui-rings-BQwfTTzr.js} +8 -8
- package/dist/{vue-ui-scatter-CtiY2eO5.js → vue-ui-scatter-CHQCbV8M.js} +8 -8
- package/dist/{vue-ui-skeleton-Coyylsf1.js → vue-ui-skeleton-CHJxsFpK.js} +3 -3
- package/dist/{vue-ui-smiley-CtC16aE_.js → vue-ui-smiley-CsWC9IZ1.js} +2 -2
- package/dist/{vue-ui-spark-trend-D51qNzOE.js → vue-ui-spark-trend-BuamubwE.js} +3 -3
- package/dist/{vue-ui-sparkbar-BIV0QfYy.js → vue-ui-sparkbar-BHGRAUXV.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4ClXnGf.js → vue-ui-sparkgauge-DUnltuDi.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dr7IDQTa.js → vue-ui-sparkhistogram-BMedlapo.js} +4 -4
- package/dist/{vue-ui-sparkline-BOlHSO6v.js → vue-ui-sparkline-BHNwaMiS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-D4XwZcKR.js → vue-ui-sparkstackbar-vRQz_uQJ.js} +3 -3
- package/dist/{vue-ui-stackbar-4aaZsvIC.js → vue-ui-stackbar-CQ6dTUhn.js} +328 -329
- package/dist/{vue-ui-strip-plot-CjqnGufK.js → vue-ui-strip-plot-CO2CPtr7.js} +7 -7
- package/dist/{vue-ui-table-CmOvVren.js → vue-ui-table-BLsZesaa.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DBl2qszz.js → vue-ui-table-heatmap-CGDBekDd.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CocUmVJB.js → vue-ui-table-sparkline-DDBnNFfS.js} +4 -4
- package/dist/{vue-ui-thermometer-BrjOEzEz.js → vue-ui-thermometer-DCgjIlYn.js} +6 -6
- package/dist/{vue-ui-timer-B5AaNDZt.js → vue-ui-timer-BUTGgiXL.js} +5 -5
- package/dist/{vue-ui-tiremarks-CMhnPzcj.js → vue-ui-tiremarks-Dbwy0DLv.js} +6 -6
- package/dist/{vue-ui-treemap-wV1Brun_.js → vue-ui-treemap-fZnaJFLV.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DkdMEKrJ.js → vue-ui-vertical-bar-CC1RSDNH.js} +9 -9
- package/dist/{vue-ui-waffle-D7UqwRa-.js → vue-ui-waffle-yCHIWPVz.js} +8 -8
- package/dist/{vue-ui-wheel-G7G2XvoJ.js → vue-ui-wheel-BgCEnXux.js} +6 -6
- package/dist/{vue-ui-word-cloud-D04DJczJ.js → vue-ui-word-cloud-DdYN7hGc.js} +6 -6
- package/dist/{vue-ui-world-F3toaZ3V.js → vue-ui-world-Drt14jLg.js} +6 -6
- package/dist/{vue-ui-xy-DgUQf_Zh.js → vue-ui-xy-E2hScHc-.js} +348 -342
- package/dist/{vue-ui-xy-canvas-BEEg7Vs6.js → vue-ui-xy-canvas-DYaSIflg.js} +251 -252
- package/package.json +1 -1
- package/dist/vue-ui-donut-evolution-CIESyjfI.js +0 -1034
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as ma, c as Tt, A as pa, t as xa, p as
|
|
3
|
-
import { u as Pt } from "./useNestedProp-
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as Ia } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as te, useSlots as ga, computed as k, ref as b, onMounted as Lt, toRefs as ba, watch as De, shallowRef as zt, onBeforeUnmount as Ct, watchEffect as St, nextTick as _t, 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 Q, createVNode as we, createSlots as $t, withCtx as C, normalizeProps as U, guardReactiveProps as H, Fragment as g, renderList as m, mergeProps as Fe, toDisplayString as M, createTextVNode as fa } from "vue";
|
|
2
|
+
import { u as ma, c as Tt, A as pa, t as xa, p as Le, a as ka, C as le, b as wa, o as Mt, e as At, g as La, d as za, am as ze, ab as Nt, D as It, X as Ca, l as Sa, aa as Ce, F as Rt, i as Se, f as j, I as _a, a0 as $a, x as Ot, q as Ta, r as Ma, y as Aa } from "./index-DTJkgcxh.js";
|
|
3
|
+
import { u as Pt } from "./useNestedProp-DvwKj8Zn.js";
|
|
4
|
+
import { t as Ue, u as Na } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Ia } from "./usePrinter-CbokYjoB.js";
|
|
6
6
|
import { u as Ra } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Oa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { u as Pa } from "./useTimeLabelCollider-V7AOiPLB.js";
|
|
9
|
-
import Va from "./Legend-
|
|
10
|
-
import { S as Ea } from "./Slicer-
|
|
11
|
-
import Da from "./Title-
|
|
12
|
-
import { _ as Fa } from "./Shape-
|
|
9
|
+
import Va from "./Legend-XvLWu-U4.js";
|
|
10
|
+
import { S as Ea } from "./Slicer-C2128jWm.js";
|
|
11
|
+
import Da from "./Title-BT7bS0eb.js";
|
|
12
|
+
import { _ as Fa } from "./Shape-B2NNkVEU.js";
|
|
13
13
|
import { u as Ua } from "./useTimeLabels-DFkUfjfs.js";
|
|
14
|
-
import Ha from "./img-
|
|
14
|
+
import Ha from "./img-BScthXJW.js";
|
|
15
15
|
import { u as Ba, B as Wa } from "./BaseScanner-DIK2NTdp.js";
|
|
16
16
|
import { _ as Ya } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"], qa = { key: 1 }, Za = ["id"], Ka = ["stop-color"], Qa = ["stop-color"], ja = ["stop-color"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"],
|
|
17
|
+
const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"], qa = { key: 1 }, Za = ["id"], Ka = ["stop-color"], Qa = ["stop-color"], ja = ["stop-color"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], sl = { key: 0 }, rl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ol = { key: 0 }, il = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], nl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ul = { key: 0 }, cl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = ["x", "y", "font-size", "fill", "font-weight"], yl = ["transform", "font-size", "fill", "font-weight"], gl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["x", "y", "font-size", "font-weight", "fill"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["x", "y", "font-size", "font-weight", "fill"], pl = ["x1", "x2", "y1", "y2", "stroke"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x1", "x2", "y1", "y2", "stroke"], wl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ll = { key: 0 }, zl = { key: 1 }, Cl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Sl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], _l = { key: 0 }, $l = { key: 1 }, Tl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ml = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Al = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Nl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Il = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
20
|
}, Rl = ["onClick"], Ol = ["innerHTML"], Pl = {
|
|
@@ -34,25 +34,25 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
|
-
setup(
|
|
38
|
-
const Dt =
|
|
37
|
+
setup(_e, { expose: Vt, emit: Et }) {
|
|
38
|
+
const Dt = te(() => import("./vue-ui-accordion-BDuLBbkX.js")), Ft = te(() => import("./DataTable-DWXGn13M.js")), Ut = te(() => import("./PackageVersion-CcyOrmqr.js")), Ht = te(() => import("./PenAndPaper-S1h1sM_v.js")), Bt = te(() => import("./Tooltip-CbaafXw_.js")), Wt = te(() => import("./UserOptions-C9lB05jb.js")), { vue_ui_stackbar: Yt } = ma(), Xt = ga(), f = _e, $e = Et, ie = k({
|
|
39
39
|
get() {
|
|
40
40
|
return !!f.dataset && f.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(a) {
|
|
43
43
|
return a;
|
|
44
44
|
}
|
|
45
|
-
}), P = b(null), V = b(Tt()),
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
}), P = b(null), V = b(Tt()), ne = b(!1), Te = b(null), Me = b(""), _ = b([]), He = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ue = b(!1), se = b(null), B = b(!1), Je = b(0), Gt = b(0), Jt = b(0), qe = b(null), Ae = b(null), Ne = b(null), W = b(null), Y = b(null), qt = b(null), Ze = b(null);
|
|
46
|
+
Lt(() => {
|
|
47
|
+
Pe();
|
|
48
48
|
});
|
|
49
|
-
const e = b(
|
|
49
|
+
const e = b(Re()), { loading: ce, FINAL_DATASET: he, manualLoading: ve } = Ba({
|
|
50
50
|
...ba(f),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
|
-
prepareConfig:
|
|
52
|
+
prepareConfig: Re,
|
|
53
53
|
callback: () => {
|
|
54
54
|
Promise.resolve().then(async () => {
|
|
55
|
-
await
|
|
55
|
+
await Ve();
|
|
56
56
|
});
|
|
57
57
|
},
|
|
58
58
|
skeletonDataset: [
|
|
@@ -116,26 +116,26 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
119
|
-
}), { userOptionsVisible:
|
|
120
|
-
function
|
|
119
|
+
}), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ra({ config: e.value }), { svgRef: je } = Oa({ config: e.value.style.chart.title });
|
|
120
|
+
function Re() {
|
|
121
121
|
const a = Pt({
|
|
122
122
|
userConfig: f.config,
|
|
123
123
|
defaultConfig: Yt
|
|
124
124
|
});
|
|
125
|
-
let
|
|
126
|
-
return a.theme ?
|
|
125
|
+
let s = {};
|
|
126
|
+
return a.theme ? s = {
|
|
127
127
|
...Pt({
|
|
128
128
|
userConfig: ka.vue_ui_stackbar[a.theme] || f.config,
|
|
129
129
|
defaultConfig: a
|
|
130
130
|
}),
|
|
131
|
-
customPalette: xa[a.theme] ||
|
|
132
|
-
} :
|
|
131
|
+
customPalette: xa[a.theme] || Le
|
|
132
|
+
} : s = a, f.config && le(f.config, "style.chart.grid.scale.scaleMin") ? s.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : s.style.chart.grid.scale.scaleMin = null, f.config && le(f.config, "style.chart.grid.scale.scaleMax") ? s.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : s.style.chart.grid.scale.scaleMax = null, f.config && le(f.config, "style.chart.zoom.startIndex") ? s.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : s.style.chart.zoom.startIndex = null, f.config && le(f.config, "style.chart.zoom.endIndex") ? s.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : s.style.chart.zoom.endIndex = null, f.config && le(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? s.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : s.style.chart.bars.dataLabels.hideUnderValue = null, f.config && le(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? s.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : s.style.chart.bars.dataLabels.hideUnderPercentage = null, s;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, { deep: !0 }),
|
|
138
|
-
Array.isArray(a) && a.length > 0 && (
|
|
134
|
+
const et = k(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = k(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
135
|
+
De(() => f.config, (a) => {
|
|
136
|
+
ce.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, Gt.value += 1, Jt.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
|
+
}, { deep: !0 }), De(() => f.dataset, (a) => {
|
|
138
|
+
Array.isArray(a) && a.length > 0 && (ve.value = !1), nt();
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const z = b({
|
|
141
141
|
dataLabels: {
|
|
@@ -144,7 +144,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
144
144
|
showTable: e.value.table.show,
|
|
145
145
|
showTooltip: e.value.style.chart.tooltip.show
|
|
146
146
|
});
|
|
147
|
-
|
|
147
|
+
De(e, () => {
|
|
148
148
|
z.value = {
|
|
149
149
|
dataLabels: {
|
|
150
150
|
show: e.value.style.chart.bars.dataLabels.show
|
|
@@ -153,11 +153,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
153
153
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
154
|
};
|
|
155
155
|
}, { immediate: !0 });
|
|
156
|
-
const { isPrinting:
|
|
156
|
+
const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } = Ia({
|
|
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
|
+
}), de = b({
|
|
161
161
|
width: e.value.style.chart.width,
|
|
162
162
|
height: e.value.style.chart.height,
|
|
163
163
|
paddingRatio: {
|
|
@@ -166,53 +166,53 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["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
|
-
}), Zt = k(() => wa(e.value.customPalette)), E =
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
}), Zt = k(() => wa(e.value.customPalette)), E = zt(null), ee = zt(null), ot = b(null);
|
|
170
|
+
Lt(() => {
|
|
171
|
+
Pe();
|
|
172
172
|
});
|
|
173
|
-
const
|
|
174
|
-
function
|
|
173
|
+
const Oe = k(() => !!e.value.debug);
|
|
174
|
+
function Pe() {
|
|
175
175
|
if (Mt(f.dataset) ? (At({
|
|
176
176
|
componentName: "VueUiStackbar",
|
|
177
177
|
type: "dataset",
|
|
178
|
-
debug:
|
|
179
|
-
}),
|
|
178
|
+
debug: Oe.value
|
|
179
|
+
}), ve.value = !0) : f.dataset.forEach((a, s) => {
|
|
180
180
|
La({
|
|
181
181
|
datasetObject: a,
|
|
182
182
|
requiredAttributes: ["name", "series"]
|
|
183
183
|
}).forEach((t) => {
|
|
184
|
-
|
|
184
|
+
ie.value = !1, At({
|
|
185
185
|
componentName: "VueUiStackbar",
|
|
186
186
|
type: "datasetSerieAttribute",
|
|
187
187
|
property: t,
|
|
188
|
-
index:
|
|
189
|
-
debug:
|
|
190
|
-
}),
|
|
188
|
+
index: s,
|
|
189
|
+
debug: Oe.value
|
|
190
|
+
}), ve.value = !0;
|
|
191
191
|
});
|
|
192
|
-
}), Mt(f.dataset) || (
|
|
192
|
+
}), Mt(f.dataset) || (ve.value = e.value.loading), setTimeout(() => {
|
|
193
193
|
B.value = !0;
|
|
194
194
|
}, 10), e.value.responsive) {
|
|
195
|
-
const a =
|
|
195
|
+
const a = Ue(() => {
|
|
196
196
|
B.value = !1;
|
|
197
|
-
const { width:
|
|
197
|
+
const { width: s, height: t } = Na({
|
|
198
198
|
chart: P.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 && F.value > 1 ?
|
|
202
|
-
source:
|
|
199
|
+
title: e.value.style.chart.title.text ? Be.value : null,
|
|
200
|
+
legend: e.value.style.chart.legend.show ? We.value : null,
|
|
201
|
+
slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ye.value : null,
|
|
202
|
+
source: Xe.value
|
|
203
203
|
});
|
|
204
204
|
requestAnimationFrame(() => {
|
|
205
|
-
|
|
205
|
+
de.value.width = s, de.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
|
-
|
|
215
|
-
E.value && (
|
|
214
|
+
Ct(() => {
|
|
215
|
+
E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
|
|
216
216
|
});
|
|
217
217
|
function Kt() {
|
|
218
218
|
let a = 0;
|
|
@@ -223,47 +223,47 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
223
223
|
const u = c.getComputedTextLength();
|
|
224
224
|
return u > l ? u : l;
|
|
225
225
|
}, 0));
|
|
226
|
-
const
|
|
227
|
-
return a +
|
|
226
|
+
const s = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
|
|
227
|
+
return a + s + (s ? 24 : 0);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const ye = b(0), ge = b(0), Qt = Ue((a) => {
|
|
230
|
+
ye.value = a;
|
|
231
231
|
}, 100);
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
if (!
|
|
232
|
+
St((a) => {
|
|
233
|
+
const s = e.value.orientation === "vertical" ? Y.value : W.value;
|
|
234
|
+
if (!s) return;
|
|
235
235
|
const t = new ResizeObserver((l) => {
|
|
236
236
|
Qt(l[0].contentRect.height);
|
|
237
237
|
});
|
|
238
|
-
t.observe(
|
|
238
|
+
t.observe(s), a(() => t.disconnect());
|
|
239
239
|
});
|
|
240
|
-
const jt =
|
|
241
|
-
|
|
240
|
+
const jt = Ue((a) => {
|
|
241
|
+
ge.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
242
242
|
}, 100);
|
|
243
|
-
|
|
243
|
+
St((a) => {
|
|
244
244
|
if (e.value.orientation === "vertical") return;
|
|
245
|
-
const
|
|
246
|
-
if (!
|
|
245
|
+
const s = Ze.value;
|
|
246
|
+
if (!s) return;
|
|
247
247
|
const t = new ResizeObserver((l) => {
|
|
248
248
|
jt(l[0].contentRect.width);
|
|
249
249
|
});
|
|
250
|
-
t.observe(
|
|
251
|
-
}),
|
|
252
|
-
|
|
250
|
+
t.observe(s), a(() => t.disconnect());
|
|
251
|
+
}), Ct(() => {
|
|
252
|
+
ye.value = 0, ge.value = 0;
|
|
253
253
|
});
|
|
254
|
-
const
|
|
254
|
+
const it = k(() => {
|
|
255
255
|
let a = 0;
|
|
256
|
-
|
|
257
|
-
let
|
|
258
|
-
return e.value.orientation === "vertical" && Y.value && (
|
|
256
|
+
Ae.value && (a = Ae.value.getBBox().height);
|
|
257
|
+
let s = 0;
|
|
258
|
+
return e.value.orientation === "vertical" && Y.value && (s = ye.value), e.value.orientation === "horizontal" && W.value && (s = ye.value), a + s;
|
|
259
259
|
}), n = k(() => {
|
|
260
|
-
const { height: a, width:
|
|
260
|
+
const { height: a, width: s } = de.value, { right: t } = de.value.paddingRatio;
|
|
261
261
|
let l = 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 = Kt());
|
|
263
|
-
const u = e.value.style.chart.padding.top + l, S =
|
|
263
|
+
const u = e.value.style.chart.padding.top + l, S = s - s * t - ge.value, X = a - e.value.style.chart.padding.bottom - it.value - l, G = e.value.style.chart.padding.left + c, J = s - G - s * t - ge.value, R = a - u - e.value.style.chart.padding.bottom - it.value - l;
|
|
264
264
|
return {
|
|
265
265
|
chartHeight: a,
|
|
266
|
-
chartWidth:
|
|
266
|
+
chartWidth: s,
|
|
267
267
|
top: u,
|
|
268
268
|
right: S,
|
|
269
269
|
bottom: X,
|
|
@@ -271,55 +271,54 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
271
271
|
width: Math.max(0, J),
|
|
272
272
|
height: Math.max(0, R)
|
|
273
273
|
};
|
|
274
|
-
}), D = k(() =>
|
|
275
|
-
const t = za(a.color) || Zt.value[
|
|
274
|
+
}), D = k(() => he.value.map((a, s) => {
|
|
275
|
+
const t = za(a.color) || Zt.value[s] || Le[s] || Le[s % Le.length];
|
|
276
276
|
return {
|
|
277
277
|
...a,
|
|
278
278
|
// In distributed mode, all values are converted to positive
|
|
279
279
|
series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
|
|
280
280
|
// Store signs to manage display of neg values in distributed mode
|
|
281
281
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
282
|
-
absoluteIndex:
|
|
282
|
+
absoluteIndex: s,
|
|
283
283
|
id: Tt(),
|
|
284
284
|
color: t
|
|
285
285
|
};
|
|
286
286
|
})), F = k(() => Math.max(...D.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), h = b({
|
|
287
287
|
start: 0,
|
|
288
|
-
end: Math.max(...
|
|
288
|
+
end: Math.max(...he.value.map((a) => a.series.length))
|
|
289
289
|
});
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function nt() {
|
|
291
|
+
Ve();
|
|
292
292
|
}
|
|
293
|
-
async function
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}, qe.value += 1);
|
|
293
|
+
async function Ve() {
|
|
294
|
+
await _t(), await _t();
|
|
295
|
+
const { startIndex: a, endIndex: s } = e.value.style.chart.zoom, t = qe.value, l = Math.max(...he.value.map((c) => c.series.length));
|
|
296
|
+
(a != null || s != null) && t ? (a != null && t.setStartValue(a), s != null && t.setEndValue(ea(s + 1))) : (h.value = { start: 0, end: l }, Ge.value += 1);
|
|
298
297
|
}
|
|
299
298
|
function ea(a) {
|
|
300
|
-
const
|
|
301
|
-
return a >
|
|
299
|
+
const s = Math.max(...he.value.map((t) => t.series.length));
|
|
300
|
+
return a > s ? s : 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;
|
|
302
301
|
}
|
|
303
302
|
const d = k(() => {
|
|
304
303
|
let a;
|
|
305
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;
|
|
306
|
-
}),
|
|
305
|
+
}), re = k(() => ze(D.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), ta = k(() => ze(D.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
307
306
|
...a,
|
|
308
|
-
series: a.series.map((
|
|
309
|
-
}))).slice(h.value.start, h.value.end)),
|
|
310
|
-
const a = D.value.filter((
|
|
307
|
+
series: a.series.map((s, t) => a.signedSeries[t] === -1 && s >= 0 ? -s : s)
|
|
308
|
+
}))).slice(h.value.start, h.value.end)), be = k(() => {
|
|
309
|
+
const a = D.value.filter((s) => !_.value.includes(s.id));
|
|
311
310
|
return {
|
|
312
|
-
positive:
|
|
313
|
-
...
|
|
314
|
-
series:
|
|
311
|
+
positive: ze(a.map((s) => ({
|
|
312
|
+
...s,
|
|
313
|
+
series: s.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
315
314
|
}))),
|
|
316
|
-
negative:
|
|
317
|
-
...
|
|
318
|
-
series:
|
|
315
|
+
negative: ze(a.map((s) => ({
|
|
316
|
+
...s,
|
|
317
|
+
series: s.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
319
318
|
})))
|
|
320
319
|
};
|
|
321
320
|
}), I = k(() => {
|
|
322
|
-
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(...be.value.positive), s = Math.min(...be.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(s) ? 0 : s, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Nt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : It(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
323
322
|
return l.ticks.map((c) => ({
|
|
324
323
|
zero: n.value.bottom - n.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
325
324
|
y: n.value.bottom - n.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -336,28 +335,28 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
336
335
|
start: h.value.start,
|
|
337
336
|
end: h.value.end
|
|
338
337
|
})), w = k(() => {
|
|
339
|
-
if (!
|
|
340
|
-
let a = Array(F.value).fill(0),
|
|
341
|
-
const c = Math.max(...
|
|
342
|
-
return D.value.filter((
|
|
343
|
-
const O =
|
|
344
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
338
|
+
if (!ie.value && !ce.value) return [];
|
|
339
|
+
let a = Array(F.value).fill(0), s = Array(F.value).fill(0), t = Array(F.value).fill(0), l = Array(F.value).fill(0);
|
|
340
|
+
const c = Math.max(...be.value.positive) || 0, u = Math.min(...be.value.negative), S = [-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) ? Nt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, 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) : It(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, 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, ke = n.value.width, kt = I.value[0] ? I.value[0].zero : n.value.bottom, wt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
|
|
341
|
+
return D.value.filter((oe) => !_.value.includes(oe.id)).map((oe) => {
|
|
342
|
+
const O = oe.series.slice(h.value.start, h.value.end), ia = oe.signedSeries.slice(h.value.start, h.value.end), na = O.map((p, x) => n.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), ua = O.map((p, x) => n.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), ca = O.map((p, x) => {
|
|
343
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / R;
|
|
345
344
|
let q, N;
|
|
346
|
-
return p > 0 ? (N = T * A, q =
|
|
345
|
+
return p > 0 ? (N = T * A, q = kt - N - a[x], a[x] += N) : (N = T * A, q = kt + t[x], t[x] += Math.abs(N)), q;
|
|
347
346
|
}), ha = O.map((p, x) => {
|
|
348
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
347
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / R;
|
|
349
348
|
let q, N;
|
|
350
|
-
return p > 0 ? (N =
|
|
349
|
+
return p > 0 ? (N = ke * A, q = wt + s[x], s[x] += N) : (N = ke * A, q = wt - Math.abs(N) - l[x], l[x] += Math.abs(N)), q;
|
|
351
350
|
}), va = O.map((p, x) => {
|
|
352
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
351
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / R;
|
|
353
352
|
return p > 0 ? T * A : T * Math.abs(A);
|
|
354
353
|
}), da = O.map((p, x) => {
|
|
355
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
356
|
-
return p > 0 ?
|
|
354
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / R;
|
|
355
|
+
return p > 0 ? ke * A : ke * Math.abs(A);
|
|
357
356
|
}), ya = O.map((p) => Math.abs(p)).reduce((p, x) => p + x, 0);
|
|
358
357
|
return {
|
|
359
|
-
...
|
|
360
|
-
proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) /
|
|
358
|
+
...oe,
|
|
359
|
+
proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / ya),
|
|
361
360
|
series: O,
|
|
362
361
|
signedSeries: ia,
|
|
363
362
|
x: na,
|
|
@@ -368,13 +367,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
368
367
|
horizontal_x: ha
|
|
369
368
|
};
|
|
370
369
|
});
|
|
371
|
-
}),
|
|
370
|
+
}), ut = k(() => ta.value.map((a, s) => ({
|
|
372
371
|
value: a,
|
|
373
372
|
sign: a >= 0 ? 1 : -1
|
|
374
373
|
})));
|
|
375
|
-
function
|
|
374
|
+
function fe(a, s, t, l, c) {
|
|
376
375
|
const u = c === -1 && a >= 0 ? -a : a;
|
|
377
|
-
return
|
|
376
|
+
return Se(
|
|
378
377
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
379
378
|
u,
|
|
380
379
|
j({
|
|
@@ -383,11 +382,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
383
382
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
384
383
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
385
384
|
}),
|
|
386
|
-
{ datapoint:
|
|
385
|
+
{ datapoint: s, seriesIndex: t, datapointIndex: l }
|
|
387
386
|
);
|
|
388
387
|
}
|
|
389
|
-
function
|
|
390
|
-
return
|
|
388
|
+
function ct(a, s, t, l) {
|
|
389
|
+
return Se(
|
|
391
390
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
392
391
|
a,
|
|
393
392
|
j({
|
|
@@ -395,22 +394,22 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
395
394
|
s: "%",
|
|
396
395
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
397
396
|
}),
|
|
398
|
-
{ datapoint:
|
|
397
|
+
{ datapoint: s, seriesIndex: t, datapointIndex: l }
|
|
399
398
|
);
|
|
400
399
|
}
|
|
401
|
-
function
|
|
402
|
-
const
|
|
400
|
+
function ht(a) {
|
|
401
|
+
const s = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
403
402
|
name: t.name,
|
|
404
403
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
405
404
|
proportion: t.proportions[a] || null,
|
|
406
405
|
color: t.color,
|
|
407
406
|
id: t.id
|
|
408
407
|
}));
|
|
409
|
-
|
|
408
|
+
$e("selectDatapoint", { datapoint: s, period: $.value[a] });
|
|
410
409
|
}
|
|
411
|
-
function
|
|
412
|
-
se.value = a,
|
|
413
|
-
const
|
|
410
|
+
function vt(a) {
|
|
411
|
+
se.value = a, ne.value = !0;
|
|
412
|
+
const s = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
|
|
414
413
|
name: c.name,
|
|
415
414
|
absoluteIndex: c.absoluteIndex,
|
|
416
415
|
value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
|
|
@@ -418,20 +417,20 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
418
417
|
color: c.color,
|
|
419
418
|
id: c.id
|
|
420
419
|
}));
|
|
421
|
-
|
|
420
|
+
Te.value = {
|
|
422
421
|
datapoint: t,
|
|
423
422
|
seriesIndex: a,
|
|
424
423
|
config: e.value,
|
|
425
424
|
series: w.value
|
|
426
425
|
};
|
|
427
426
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
428
|
-
if (Ot(
|
|
427
|
+
if (Ot(s) && Aa(() => s({
|
|
429
428
|
seriesIndex: a,
|
|
430
429
|
datapoint: t,
|
|
431
430
|
series: w.value,
|
|
432
431
|
config: e.value
|
|
433
432
|
})))
|
|
434
|
-
|
|
433
|
+
Me.value = s({
|
|
435
434
|
seriesIndex: a,
|
|
436
435
|
datapoint: t,
|
|
437
436
|
series: w.value,
|
|
@@ -468,7 +467,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
468
467
|
}) : ""}${R[1]}
|
|
469
468
|
</div>
|
|
470
469
|
`;
|
|
471
|
-
}),
|
|
470
|
+
}), Me.value = `<div>${J}</div>`;
|
|
472
471
|
}
|
|
473
472
|
}
|
|
474
473
|
Pa({
|
|
@@ -480,44 +479,44 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
480
479
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate"],
|
|
481
480
|
isAutoSize: !1
|
|
482
481
|
});
|
|
483
|
-
function
|
|
484
|
-
|
|
482
|
+
function dt(a) {
|
|
483
|
+
ue.value = a, He.value += 1;
|
|
485
484
|
}
|
|
486
|
-
function
|
|
485
|
+
function yt() {
|
|
487
486
|
z.value.showTable = !z.value.showTable;
|
|
488
487
|
}
|
|
489
|
-
function
|
|
488
|
+
function gt() {
|
|
490
489
|
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
491
490
|
}
|
|
492
|
-
function
|
|
491
|
+
function bt() {
|
|
493
492
|
z.value.showTooltip = !z.value.showTooltip;
|
|
494
493
|
}
|
|
495
494
|
function aa() {
|
|
496
495
|
return w.value;
|
|
497
496
|
}
|
|
498
|
-
const
|
|
497
|
+
const ft = k(() => {
|
|
499
498
|
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
500
499
|
const a = w.value.map(({ name: t, color: l }) => ({
|
|
501
500
|
label: t,
|
|
502
501
|
color: l
|
|
503
|
-
})),
|
|
502
|
+
})), s = [];
|
|
504
503
|
return $.value.forEach((t) => {
|
|
505
504
|
const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
506
505
|
D.value.forEach((c) => {
|
|
507
506
|
l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
508
|
-
}),
|
|
509
|
-
}), { head: a, body:
|
|
507
|
+
}), s.push(l);
|
|
508
|
+
}), { head: a, body: s };
|
|
510
509
|
});
|
|
511
|
-
function
|
|
512
|
-
const
|
|
510
|
+
function mt(a = null) {
|
|
511
|
+
const s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...ft.value.head.map((S) => S.label)], l = ft.value.body, c = s.concat([t]).concat(l), u = Ta(c);
|
|
513
512
|
a ? a(u) : Ma({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
514
513
|
}
|
|
515
|
-
const
|
|
514
|
+
const me = k(() => {
|
|
516
515
|
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>');
|
|
517
|
-
let
|
|
516
|
+
let s = [];
|
|
518
517
|
for (let c = 0; c < F.value; c += 1) {
|
|
519
518
|
const u = w.value.map((S) => S.series[c] ?? 0).reduce((S, X) => S + X, 0);
|
|
520
|
-
|
|
519
|
+
s.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((S) => (S.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
521
520
|
}
|
|
522
521
|
const t = {
|
|
523
522
|
th: {
|
|
@@ -532,17 +531,17 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
532
531
|
},
|
|
533
532
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
534
533
|
}, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
535
|
-
return { head: a, body:
|
|
534
|
+
return { head: a, body: s.slice(0, h.value.end - h.value.start), config: t, colNames: l };
|
|
536
535
|
});
|
|
537
|
-
function la(a,
|
|
538
|
-
if (
|
|
539
|
-
_.value = _.value.filter((t) => t !==
|
|
536
|
+
function la(a, s) {
|
|
537
|
+
if ($e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(s.id))
|
|
538
|
+
_.value = _.value.filter((t) => t !== s.id);
|
|
540
539
|
else {
|
|
541
540
|
if (_.value.length === D.value.length - 1) return;
|
|
542
|
-
_.value.push(
|
|
541
|
+
_.value.push(s.id);
|
|
543
542
|
}
|
|
544
543
|
}
|
|
545
|
-
const
|
|
544
|
+
const pt = k(() => D.value.map((a, s) => ({
|
|
546
545
|
...a,
|
|
547
546
|
shape: "square"
|
|
548
547
|
})).map((a) => ({
|
|
@@ -550,43 +549,43 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
550
549
|
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
551
550
|
segregate: () => la(a.absoluteIndex, a),
|
|
552
551
|
isSegregated: _.value.includes(a.id)
|
|
553
|
-
}))),
|
|
552
|
+
}))), sa = k(() => ({
|
|
554
553
|
cy: "stackbar-legend",
|
|
555
554
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
556
555
|
color: e.value.style.chart.legend.color,
|
|
557
556
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
558
557
|
paddingBottom: 12,
|
|
559
558
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
560
|
-
})),
|
|
561
|
-
function
|
|
562
|
-
|
|
559
|
+
})), pe = b(!1);
|
|
560
|
+
function Ee() {
|
|
561
|
+
pe.value = !pe.value;
|
|
563
562
|
}
|
|
564
|
-
function
|
|
563
|
+
function xe(a, s) {
|
|
565
564
|
const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
566
565
|
name: l.name,
|
|
567
|
-
value: l.series[
|
|
568
|
-
proportion: l.proportions[
|
|
566
|
+
value: l.series[s] === 0 ? 0 : (l.signedSeries[s] === -1 && l.series[s] >= 0 ? -l.series[s] : l.series[s]) || null,
|
|
567
|
+
proportion: l.proportions[s] || null,
|
|
569
568
|
color: l.color,
|
|
570
569
|
id: l.id
|
|
571
570
|
}));
|
|
572
|
-
|
|
571
|
+
$e("selectTimeLabel", {
|
|
573
572
|
datapoint: t,
|
|
574
573
|
absoluteIndex: a.absoluteIndex,
|
|
575
574
|
label: a.text
|
|
576
575
|
});
|
|
577
576
|
}
|
|
578
|
-
const
|
|
579
|
-
function
|
|
580
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
577
|
+
const ra = k(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
578
|
+
function xt(a, s) {
|
|
579
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? s * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? s > 0 : !0 : tt.value ? (et.value && Oe.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 > ra.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : et.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
581
580
|
}
|
|
582
581
|
async function oa({ scale: a = 2 } = {}) {
|
|
583
582
|
if (!P.value) return;
|
|
584
|
-
const { width:
|
|
583
|
+
const { width: s, height: t } = P.value.getBoundingClientRect(), l = s / t, { imageUri: c, base64: u } = await Ha({ domElement: P.value, base64: !0, img: !0, scale: a });
|
|
585
584
|
return {
|
|
586
585
|
imageUri: c,
|
|
587
586
|
base64: u,
|
|
588
587
|
title: e.value.style.chart.title.text,
|
|
589
|
-
width:
|
|
588
|
+
width: s,
|
|
590
589
|
height: t,
|
|
591
590
|
aspectRatio: l
|
|
592
591
|
};
|
|
@@ -595,39 +594,39 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
595
594
|
getData: aa,
|
|
596
595
|
getImage: oa,
|
|
597
596
|
generatePdf: st,
|
|
598
|
-
generateCsv:
|
|
599
|
-
generateImage:
|
|
600
|
-
toggleTable:
|
|
601
|
-
toggleLabels:
|
|
602
|
-
toggleTooltip:
|
|
603
|
-
toggleAnnotator:
|
|
604
|
-
toggleFullscreen:
|
|
605
|
-
}), (a,
|
|
597
|
+
generateCsv: mt,
|
|
598
|
+
generateImage: rt,
|
|
599
|
+
toggleTable: yt,
|
|
600
|
+
toggleLabels: gt,
|
|
601
|
+
toggleTooltip: bt,
|
|
602
|
+
toggleAnnotator: Ee,
|
|
603
|
+
toggleFullscreen: dt
|
|
604
|
+
}), (a, s) => (r(), o("div", {
|
|
606
605
|
id: `stackbar_${V.value}`,
|
|
607
606
|
ref_key: "stackbarChart",
|
|
608
607
|
ref: P,
|
|
609
|
-
class:
|
|
608
|
+
class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
|
|
610
609
|
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%" : ""}`),
|
|
611
|
-
onMouseenter:
|
|
612
|
-
onMouseleave:
|
|
610
|
+
onMouseenter: s[6] || (s[6] = () => v(Ke)(!0)),
|
|
611
|
+
onMouseleave: s[7] || (s[7] = () => v(Ke)(!1))
|
|
613
612
|
}, [
|
|
614
|
-
e.value.userOptions.buttons.annotator ? (
|
|
613
|
+
e.value.userOptions.buttons.annotator ? (r(), K(v(Ht), {
|
|
615
614
|
key: 0,
|
|
616
|
-
svgRef: v(
|
|
615
|
+
svgRef: v(je),
|
|
617
616
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
618
617
|
color: e.value.style.chart.color,
|
|
619
|
-
active:
|
|
620
|
-
onClose:
|
|
618
|
+
active: pe.value,
|
|
619
|
+
onClose: Ee
|
|
621
620
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
622
621
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
623
|
-
e.value.style.chart.title.text ? (
|
|
622
|
+
e.value.style.chart.title.text ? (r(), o("div", {
|
|
624
623
|
key: 1,
|
|
625
624
|
ref_key: "chartTitle",
|
|
626
|
-
ref:
|
|
625
|
+
ref: Be,
|
|
627
626
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
628
627
|
}, [
|
|
629
|
-
(
|
|
630
|
-
key: `title_${
|
|
628
|
+
(r(), K(Da, {
|
|
629
|
+
key: `title_${Je.value}`,
|
|
631
630
|
config: {
|
|
632
631
|
title: {
|
|
633
632
|
cy: "stackbar-title",
|
|
@@ -640,13 +639,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
640
639
|
}
|
|
641
640
|
}, null, 8, ["config"]))
|
|
642
641
|
], 512)) : y("", !0),
|
|
643
|
-
e.value.userOptions.show &&
|
|
642
|
+
e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (r(), K(v(Wt), {
|
|
644
643
|
ref: "details",
|
|
645
|
-
key: `user_option_${
|
|
644
|
+
key: `user_option_${He.value}`,
|
|
646
645
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
647
646
|
color: e.value.style.chart.color,
|
|
648
|
-
isPrinting: v(
|
|
649
|
-
isImaging: v(
|
|
647
|
+
isPrinting: v(at),
|
|
648
|
+
isImaging: v(lt),
|
|
650
649
|
uid: V.value,
|
|
651
650
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
652
651
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -655,25 +654,25 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
655
654
|
hasTable: e.value.userOptions.buttons.table,
|
|
656
655
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
657
656
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
658
|
-
isFullscreen:
|
|
657
|
+
isFullscreen: ue.value,
|
|
659
658
|
chartElement: P.value,
|
|
660
659
|
position: e.value.userOptions.position,
|
|
661
660
|
isTooltip: z.value.showTooltip,
|
|
662
661
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
663
662
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
664
|
-
isAnnotation:
|
|
663
|
+
isAnnotation: pe.value,
|
|
665
664
|
callbacks: e.value.userOptions.callbacks,
|
|
666
665
|
printScale: e.value.userOptions.print.scale,
|
|
667
|
-
onToggleFullscreen:
|
|
666
|
+
onToggleFullscreen: dt,
|
|
668
667
|
onGeneratePdf: v(st),
|
|
669
|
-
onGenerateCsv:
|
|
670
|
-
onGenerateImage: v(
|
|
671
|
-
onToggleTable:
|
|
672
|
-
onToggleLabels:
|
|
673
|
-
onToggleTooltip:
|
|
674
|
-
onToggleAnnotator:
|
|
668
|
+
onGenerateCsv: mt,
|
|
669
|
+
onGenerateImage: v(rt),
|
|
670
|
+
onToggleTable: yt,
|
|
671
|
+
onToggleLabels: gt,
|
|
672
|
+
onToggleTooltip: bt,
|
|
673
|
+
onToggleAnnotator: Ee,
|
|
675
674
|
style: Z({
|
|
676
|
-
visibility: v(
|
|
675
|
+
visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
|
|
677
676
|
})
|
|
678
677
|
}, $t({ _: 2 }, [
|
|
679
678
|
a.$slots.menuIcon ? {
|
|
@@ -740,16 +739,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
740
739
|
key: "8"
|
|
741
740
|
} : void 0
|
|
742
741
|
]), 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"])) : y("", !0),
|
|
743
|
-
(
|
|
742
|
+
(r(), o("svg", {
|
|
744
743
|
ref_key: "svgRef",
|
|
745
|
-
ref:
|
|
744
|
+
ref: je,
|
|
746
745
|
xmlns: v(Ca),
|
|
747
746
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
748
|
-
class:
|
|
747
|
+
class: ae({ "vue-data-ui-loading": v(ce) }),
|
|
749
748
|
style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
750
749
|
}, [
|
|
751
|
-
|
|
752
|
-
a.$slots["chart-background"] ? (
|
|
750
|
+
we(v(Ut)),
|
|
751
|
+
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
753
752
|
key: 0,
|
|
754
753
|
x: n.value.left,
|
|
755
754
|
y: n.value.top,
|
|
@@ -761,8 +760,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
761
760
|
}, [
|
|
762
761
|
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
763
762
|
], 8, Ja)) : y("", !0),
|
|
764
|
-
e.value.style.chart.bars.gradient.show ? (
|
|
765
|
-
(
|
|
763
|
+
e.value.style.chart.bars.gradient.show ? (r(), o("defs", qa, [
|
|
764
|
+
(r(!0), o(g, null, m(w.value, (t, l) => (r(), o("linearGradient", {
|
|
766
765
|
id: `gradient_${t.id}`,
|
|
767
766
|
x1: "0%",
|
|
768
767
|
y1: "0%",
|
|
@@ -783,7 +782,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
783
782
|
}, null, 8, ja)
|
|
784
783
|
], 8, Za))), 256))
|
|
785
784
|
])) : y("", !0),
|
|
786
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (
|
|
785
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t, l) => (r(), o("line", {
|
|
787
786
|
x1: n.value.left,
|
|
788
787
|
x2: n.value.right,
|
|
789
788
|
y1: t.y,
|
|
@@ -793,7 +792,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
793
792
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
794
793
|
"stroke-linecap": "round"
|
|
795
794
|
}, null, 8, el))), 256)) : y("", !0),
|
|
796
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (
|
|
795
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, l) => (r(), o("line", {
|
|
797
796
|
x1: n.value.left,
|
|
798
797
|
x2: n.value.right,
|
|
799
798
|
y1: n.value.top + d.value * l,
|
|
@@ -803,7 +802,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
803
802
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
804
803
|
"stroke-linecap": "round"
|
|
805
804
|
}, null, 8, tl))), 256)) : y("", !0),
|
|
806
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (
|
|
805
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, l) => (r(), o("line", {
|
|
807
806
|
x1: n.value.left + d.value * l,
|
|
808
807
|
x2: n.value.left + d.value * l,
|
|
809
808
|
y1: n.value.top,
|
|
@@ -813,7 +812,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
813
812
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
814
813
|
"stroke-linecap": "round"
|
|
815
814
|
}, null, 8, al))), 256)) : y("", !0),
|
|
816
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (
|
|
815
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t, l) => (r(), o("line", {
|
|
817
816
|
x1: t.horizontal_x,
|
|
818
817
|
x2: t.horizontal_x,
|
|
819
818
|
y1: n.value.top,
|
|
@@ -823,12 +822,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
823
822
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
824
823
|
"stroke-linecap": "round"
|
|
825
824
|
}, null, 8, ll))), 256)) : y("", !0),
|
|
826
|
-
(
|
|
827
|
-
a.$slots.pattern ? (
|
|
828
|
-
L(a.$slots, "pattern",
|
|
825
|
+
(r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
|
|
826
|
+
a.$slots.pattern ? (r(), o("defs", sl, [
|
|
827
|
+
L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
829
828
|
])) : y("", !0),
|
|
830
|
-
e.value.orientation === "vertical" ? (
|
|
831
|
-
(
|
|
829
|
+
e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
|
|
830
|
+
(r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
832
831
|
x: c,
|
|
833
832
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
834
833
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
@@ -839,10 +838,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
839
838
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
840
839
|
"stroke-linecap": "round",
|
|
841
840
|
"stroke-linejoin": "round",
|
|
842
|
-
class:
|
|
843
|
-
}, null, 10,
|
|
844
|
-
a.$slots.pattern ? (
|
|
845
|
-
(
|
|
841
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
842
|
+
}, null, 10, rl))), 256)),
|
|
843
|
+
a.$slots.pattern ? (r(), o("g", ol, [
|
|
844
|
+
(r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
846
845
|
x: c,
|
|
847
846
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
848
847
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
@@ -853,14 +852,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
853
852
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
854
853
|
"stroke-linecap": "round",
|
|
855
854
|
"stroke-linejoin": "round",
|
|
856
|
-
class:
|
|
855
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
857
856
|
}, null, 10, il))), 256))
|
|
858
857
|
])) : y("", !0)
|
|
859
|
-
], 64)) : (
|
|
860
|
-
(
|
|
861
|
-
x: v(
|
|
858
|
+
], 64)) : (r(), o(g, { key: 2 }, [
|
|
859
|
+
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
860
|
+
x: v(Ce)(c, n.value.left),
|
|
862
861
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
863
|
-
width: v(
|
|
862
|
+
width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
864
863
|
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,
|
|
865
864
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
866
865
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
@@ -868,13 +867,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
868
867
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
869
868
|
"stroke-linecap": "round",
|
|
870
869
|
"stroke-linejoin": "round",
|
|
871
|
-
class:
|
|
870
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
872
871
|
}, null, 10, nl))), 256)),
|
|
873
|
-
a.$slots.pattern ? (
|
|
874
|
-
(
|
|
875
|
-
x: v(
|
|
872
|
+
a.$slots.pattern ? (r(), o("g", ul, [
|
|
873
|
+
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
874
|
+
x: v(Ce)(c, n.value.left),
|
|
876
875
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
877
|
-
width: v(
|
|
876
|
+
width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
878
877
|
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,
|
|
879
878
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
880
879
|
fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
|
|
@@ -882,12 +881,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
882
881
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
883
882
|
"stroke-linecap": "round",
|
|
884
883
|
"stroke-linejoin": "round",
|
|
885
|
-
class:
|
|
884
|
+
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
886
885
|
}, null, 10, cl))), 256))
|
|
887
886
|
])) : y("", !0)
|
|
888
887
|
], 64))
|
|
889
888
|
]))), 256)),
|
|
890
|
-
e.value.style.chart.grid.x.showAxis ? (
|
|
889
|
+
e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
|
|
891
890
|
key: 6,
|
|
892
891
|
x1: n.value.left,
|
|
893
892
|
x2: n.value.right,
|
|
@@ -898,7 +897,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
898
897
|
"stroke-linecap": "round",
|
|
899
898
|
"stroke-linejoin": "round"
|
|
900
899
|
}, null, 8, hl)) : y("", !0),
|
|
901
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (
|
|
900
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
|
|
902
901
|
key: 7,
|
|
903
902
|
x1: n.value.left,
|
|
904
903
|
x2: n.value.left,
|
|
@@ -909,10 +908,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
909
908
|
"stroke-linecap": "round",
|
|
910
909
|
"stroke-linejoin": "round"
|
|
911
910
|
}, null, 8, vl)) : y("", !0),
|
|
912
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (
|
|
911
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
|
|
913
912
|
key: 8,
|
|
914
913
|
ref_key: "xAxisLabel",
|
|
915
|
-
ref:
|
|
914
|
+
ref: Ae,
|
|
916
915
|
x: n.value.left + n.value.width / 2,
|
|
917
916
|
y: n.value.chartHeight - 3,
|
|
918
917
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
@@ -920,20 +919,20 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
920
919
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
921
920
|
"text-anchor": "middle"
|
|
922
921
|
}, M(e.value.style.chart.grid.x.axisName.text), 9, dl)) : y("", !0),
|
|
923
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (
|
|
922
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
|
|
924
923
|
key: 9,
|
|
925
924
|
ref_key: "yAxisLabel",
|
|
926
|
-
ref:
|
|
925
|
+
ref: Ne,
|
|
927
926
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
928
927
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
929
928
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
930
929
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
931
930
|
"text-anchor": "middle"
|
|
932
931
|
}, M(e.value.style.chart.grid.y.axisName.text), 9, yl)) : y("", !0),
|
|
933
|
-
z.value.dataLabels.show && e.value.orientation === "vertical" ? (
|
|
934
|
-
(
|
|
935
|
-
(
|
|
936
|
-
|
|
932
|
+
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
|
|
933
|
+
(r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
|
|
934
|
+
(r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
|
|
935
|
+
xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
937
936
|
key: 0,
|
|
938
937
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
939
938
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -941,16 +940,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
941
940
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
942
941
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
943
942
|
"text-anchor": "middle"
|
|
944
|
-
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
943
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, l, u) : fe(t.series[u], t, l, u, t.signedSeries[u])), 9, gl)) : y("", !0)
|
|
945
944
|
], 64))), 256))
|
|
946
945
|
]))), 256)),
|
|
947
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (
|
|
946
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
948
947
|
key: 0,
|
|
949
948
|
ref_key: "sumTop",
|
|
950
949
|
ref: qt
|
|
951
950
|
}, [
|
|
952
|
-
(
|
|
953
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
951
|
+
(r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
|
|
952
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
954
953
|
key: 0,
|
|
955
954
|
x: n.value.left + d.value * l + d.value / 2,
|
|
956
955
|
y: e.value.style.chart.bars.totalValues.fontSize,
|
|
@@ -958,14 +957,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
958
957
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
959
958
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
960
959
|
fill: e.value.style.chart.bars.totalValues.color
|
|
961
|
-
}, M(
|
|
960
|
+
}, M(fe(t.value, t, l, t.sign)), 9, bl)) : y("", !0)
|
|
962
961
|
], 64))), 256))
|
|
963
962
|
], 512)) : y("", !0)
|
|
964
963
|
], 64)) : y("", !0),
|
|
965
|
-
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (
|
|
966
|
-
(
|
|
967
|
-
(
|
|
968
|
-
|
|
964
|
+
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
|
|
965
|
+
(r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
|
|
966
|
+
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
|
|
967
|
+
xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
969
968
|
key: 0,
|
|
970
969
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
971
970
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -973,16 +972,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
973
972
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
974
973
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
975
974
|
"text-anchor": "middle"
|
|
976
|
-
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
975
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, l, u) : fe(t.series[u], t, l, u, t.signedSeries[u])), 9, fl)) : y("", !0)
|
|
977
976
|
], 64))), 256))
|
|
978
977
|
]))), 256)),
|
|
979
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (
|
|
978
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
980
979
|
key: 0,
|
|
981
980
|
ref_key: "sumRight",
|
|
982
|
-
ref:
|
|
981
|
+
ref: Ze
|
|
983
982
|
}, [
|
|
984
|
-
(
|
|
985
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
983
|
+
(r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
|
|
984
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
986
985
|
key: 0,
|
|
987
986
|
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
988
987
|
y: n.value.top + d.value * l + d.value / 2,
|
|
@@ -990,16 +989,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
990
989
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
991
990
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
992
991
|
fill: e.value.style.chart.bars.totalValues.color
|
|
993
|
-
}, M(
|
|
992
|
+
}, M(fe(t.value, t, l, t.sign)), 9, ml)) : y("", !0)
|
|
994
993
|
], 64))), 256))
|
|
995
994
|
], 512)) : y("", !0)
|
|
996
995
|
], 64)) : y("", !0),
|
|
997
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (
|
|
996
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
998
997
|
key: 12,
|
|
999
998
|
ref_key: "scaleLabels",
|
|
1000
999
|
ref: W
|
|
1001
1000
|
}, [
|
|
1002
|
-
(
|
|
1001
|
+
(r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
|
|
1003
1002
|
x1: n.value.left,
|
|
1004
1003
|
x2: n.value.left - 6,
|
|
1005
1004
|
y1: t.y,
|
|
@@ -1007,14 +1006,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1007
1006
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1008
1007
|
"stroke-width": 1
|
|
1009
1008
|
}, null, 8, pl))), 256)),
|
|
1010
|
-
(
|
|
1009
|
+
(r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
|
|
1011
1010
|
x: t.x,
|
|
1012
1011
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1013
1012
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1014
1013
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1015
1014
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1016
1015
|
"text-anchor": "end"
|
|
1017
|
-
}, M(v(
|
|
1016
|
+
}, M(v(Se)(
|
|
1018
1017
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1019
1018
|
t.value,
|
|
1020
1019
|
v(j)({
|
|
@@ -1026,12 +1025,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1026
1025
|
{ datapoint: t }
|
|
1027
1026
|
)), 9, xl))), 256))
|
|
1028
1027
|
], 512)) : y("", !0),
|
|
1029
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (
|
|
1028
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1030
1029
|
key: 13,
|
|
1031
1030
|
ref_key: "scaleLabels",
|
|
1032
1031
|
ref: W
|
|
1033
1032
|
}, [
|
|
1034
|
-
(
|
|
1033
|
+
(r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
|
|
1035
1034
|
x1: t.horizontal_x,
|
|
1036
1035
|
x2: t.horizontal_x,
|
|
1037
1036
|
y1: n.value.bottom,
|
|
@@ -1040,14 +1039,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1040
1039
|
"stroke-width": 1,
|
|
1041
1040
|
"stroke-linecap": "round"
|
|
1042
1041
|
}, null, 8, kl))), 256)),
|
|
1043
|
-
(
|
|
1042
|
+
(r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
|
|
1044
1043
|
class: "vue-data-ui-time-label",
|
|
1045
1044
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1046
1045
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1047
1046
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1048
1047
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1049
1048
|
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})`
|
|
1050
|
-
}, M(v(
|
|
1049
|
+
}, M(v(Se)(
|
|
1051
1050
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1052
1051
|
t.value,
|
|
1053
1052
|
v(j)({
|
|
@@ -1059,14 +1058,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1059
1058
|
{ datapoint: t }
|
|
1060
1059
|
)), 9, wl))), 256))
|
|
1061
1060
|
], 512)) : y("", !0),
|
|
1062
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (
|
|
1061
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1063
1062
|
key: 14,
|
|
1064
1063
|
ref_key: "timeLabelsEls",
|
|
1065
1064
|
ref: Y
|
|
1066
1065
|
}, [
|
|
1067
|
-
a.$slots["time-label"] ? (
|
|
1068
|
-
(
|
|
1069
|
-
L(a.$slots, "time-label",
|
|
1066
|
+
a.$slots["time-label"] ? (r(), o("g", Ll, [
|
|
1067
|
+
(r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
|
|
1068
|
+
L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
|
|
1070
1069
|
x: n.value.left + d.value * l + d.value / 2,
|
|
1071
1070
|
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1072
1071
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1078,10 +1077,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1078
1077
|
show: !0
|
|
1079
1078
|
}), void 0, !0)
|
|
1080
1079
|
]))), 256))
|
|
1081
|
-
])) : (
|
|
1082
|
-
(
|
|
1080
|
+
])) : (r(), o("g", zl, [
|
|
1081
|
+
(r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
|
|
1083
1082
|
String(t.text).includes(`
|
|
1084
|
-
`) ? (
|
|
1083
|
+
`) ? (r(), o("text", {
|
|
1085
1084
|
key: l + "-multi",
|
|
1086
1085
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1087
1086
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1101,8 +1100,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1101
1100
|
x: 0,
|
|
1102
1101
|
y: 0
|
|
1103
1102
|
}),
|
|
1104
|
-
onClick: () =>
|
|
1105
|
-
}, null, 8, Sl)) : (
|
|
1103
|
+
onClick: () => xe(t, l)
|
|
1104
|
+
}, null, 8, Sl)) : (r(), o("text", {
|
|
1106
1105
|
class: "vue-data-ui-time-label",
|
|
1107
1106
|
key: l,
|
|
1108
1107
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1111,19 +1110,19 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1111
1110
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1112
1111
|
transform: `translate(${n.value.left + d.value * l + 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})`,
|
|
1113
1112
|
style: { cursor: "pointer" },
|
|
1114
|
-
onClick: () =>
|
|
1113
|
+
onClick: () => xe(t, l)
|
|
1115
1114
|
}, M(t.text), 9, Cl))
|
|
1116
1115
|
]))), 256))
|
|
1117
1116
|
]))
|
|
1118
1117
|
], 512)) : y("", !0),
|
|
1119
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (
|
|
1118
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1120
1119
|
key: 15,
|
|
1121
1120
|
ref_key: "timeLabelsEls",
|
|
1122
1121
|
ref: Y
|
|
1123
1122
|
}, [
|
|
1124
|
-
a.$slots["time-label"] ? (
|
|
1125
|
-
(
|
|
1126
|
-
L(a.$slots, "time-label",
|
|
1123
|
+
a.$slots["time-label"] ? (r(), o("g", _l, [
|
|
1124
|
+
(r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
|
|
1125
|
+
L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
|
|
1127
1126
|
x: n.value.left - 8,
|
|
1128
1127
|
y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1129
1128
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1135,10 +1134,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1135
1134
|
show: !0
|
|
1136
1135
|
}), void 0, !0)
|
|
1137
1136
|
]))), 256))
|
|
1138
|
-
])) : (
|
|
1139
|
-
(
|
|
1137
|
+
])) : (r(), o("g", $l, [
|
|
1138
|
+
(r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
|
|
1140
1139
|
String(t.text).includes(`
|
|
1141
|
-
`) ? (
|
|
1140
|
+
`) ? (r(), o("text", {
|
|
1142
1141
|
key: 1,
|
|
1143
1142
|
"text-anchor": "end",
|
|
1144
1143
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1147,7 +1146,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1147
1146
|
x: n.value.left - 8,
|
|
1148
1147
|
y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1149
1148
|
style: { cursor: "pointer" },
|
|
1150
|
-
onClick: () =>
|
|
1149
|
+
onClick: () => xe(t, l),
|
|
1151
1150
|
innerHTML: v($a)({
|
|
1152
1151
|
content: String(t.text),
|
|
1153
1152
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1155,7 +1154,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1155
1154
|
x: n.value.left - 8,
|
|
1156
1155
|
y: 0
|
|
1157
1156
|
})
|
|
1158
|
-
}, null, 8, Ml)) : (
|
|
1157
|
+
}, null, 8, Ml)) : (r(), o("text", {
|
|
1159
1158
|
key: 0,
|
|
1160
1159
|
"text-anchor": "end",
|
|
1161
1160
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1166,52 +1165,52 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1166
1165
|
style: {
|
|
1167
1166
|
cursor: "pointer"
|
|
1168
1167
|
},
|
|
1169
|
-
onClick: () =>
|
|
1168
|
+
onClick: () => xe(t, l)
|
|
1170
1169
|
}, M(t.text), 9, Tl))
|
|
1171
1170
|
]))), 256))
|
|
1172
1171
|
]))
|
|
1173
1172
|
], 512)) : y("", !0),
|
|
1174
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (
|
|
1173
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, l) => (r(), o("rect", {
|
|
1175
1174
|
x: n.value.left + l * d.value,
|
|
1176
1175
|
y: n.value.top,
|
|
1177
1176
|
width: d.value,
|
|
1178
1177
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1179
|
-
onClick: (c) =>
|
|
1180
|
-
onMouseenter: (c) =>
|
|
1181
|
-
onMouseleave:
|
|
1182
|
-
se.value = null,
|
|
1178
|
+
onClick: (c) => ht(l),
|
|
1179
|
+
onMouseenter: (c) => vt(l),
|
|
1180
|
+
onMouseleave: s[0] || (s[0] = (c) => {
|
|
1181
|
+
se.value = null, ne.value = !1;
|
|
1183
1182
|
}),
|
|
1184
1183
|
fill: l === se.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1185
1184
|
style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1186
1185
|
}, null, 44, Al))), 256)) : y("", !0),
|
|
1187
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (
|
|
1186
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, l) => (r(), o("rect", {
|
|
1188
1187
|
x: n.value.left,
|
|
1189
1188
|
y: n.value.top + l * d.value,
|
|
1190
1189
|
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1191
1190
|
height: d.value,
|
|
1192
|
-
onClick: (c) =>
|
|
1193
|
-
onMouseenter: (c) =>
|
|
1194
|
-
onMouseleave:
|
|
1195
|
-
se.value = null,
|
|
1191
|
+
onClick: (c) => ht(l),
|
|
1192
|
+
onMouseenter: (c) => vt(l),
|
|
1193
|
+
onMouseleave: s[1] || (s[1] = (c) => {
|
|
1194
|
+
se.value = null, ne.value = !1;
|
|
1196
1195
|
}),
|
|
1197
1196
|
fill: l === se.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1198
1197
|
style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1199
1198
|
}, null, 44, Nl))), 256)) : y("", !0),
|
|
1200
1199
|
L(a.$slots, "svg", U(H({ ...n.value })), void 0, !0)
|
|
1201
1200
|
], 14, Ga)),
|
|
1202
|
-
a.$slots.watermark ? (
|
|
1203
|
-
L(a.$slots, "watermark", U(H({ isPrinting: v(
|
|
1201
|
+
a.$slots.watermark ? (r(), o("div", Il, [
|
|
1202
|
+
L(a.$slots, "watermark", U(H({ isPrinting: v(at) || v(lt) })), void 0, !0)
|
|
1204
1203
|
])) : y("", !0),
|
|
1205
1204
|
Q("div", {
|
|
1206
1205
|
ref_key: "chartSlicer",
|
|
1207
|
-
ref:
|
|
1206
|
+
ref: Ye,
|
|
1208
1207
|
style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1209
1208
|
"data-dom-to-png-ignore": ""
|
|
1210
1209
|
}, [
|
|
1211
|
-
e.value.style.chart.zoom.show && F.value > 1 ? (
|
|
1210
|
+
e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ea, {
|
|
1212
1211
|
ref_key: "slicerComponent",
|
|
1213
|
-
ref:
|
|
1214
|
-
key: `slicer_${
|
|
1212
|
+
ref: qe,
|
|
1213
|
+
key: `slicer_${Ge.value}`,
|
|
1215
1214
|
background: e.value.style.chart.zoom.color,
|
|
1216
1215
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1217
1216
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -1221,19 +1220,19 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1221
1220
|
textColor: e.value.style.chart.color,
|
|
1222
1221
|
inputColor: e.value.style.chart.zoom.color,
|
|
1223
1222
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1224
|
-
max: Math.max(...
|
|
1223
|
+
max: Math.max(..._e.dataset.map((t) => t.series.length)),
|
|
1225
1224
|
min: 0,
|
|
1226
1225
|
valueStart: h.value.start,
|
|
1227
1226
|
valueEnd: h.value.end,
|
|
1228
1227
|
start: h.value.start,
|
|
1229
|
-
"onUpdate:start":
|
|
1228
|
+
"onUpdate:start": s[2] || (s[2] = (t) => h.value.start = t),
|
|
1230
1229
|
end: h.value.end,
|
|
1231
|
-
"onUpdate:end":
|
|
1230
|
+
"onUpdate:end": s[3] || (s[3] = (t) => h.value.end = t),
|
|
1232
1231
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1233
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...
|
|
1232
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(..._e.dataset.map((t) => t.series.length)),
|
|
1234
1233
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1235
1234
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1236
|
-
onReset:
|
|
1235
|
+
onReset: nt
|
|
1237
1236
|
}, {
|
|
1238
1237
|
"reset-action": C(({ reset: t }) => [
|
|
1239
1238
|
L(a.$slots, "reset-action", U(H({ reset: t })), void 0, !0)
|
|
@@ -1241,8 +1240,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1241
1240
|
_: 3
|
|
1242
1241
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
|
|
1243
1242
|
], 4),
|
|
1244
|
-
|
|
1245
|
-
show: z.value.showTooltip &&
|
|
1243
|
+
we(v(Bt), {
|
|
1244
|
+
show: z.value.showTooltip && ne.value,
|
|
1246
1245
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1247
1246
|
color: e.value.style.chart.tooltip.color,
|
|
1248
1247
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1253,27 +1252,27 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1253
1252
|
position: e.value.style.chart.tooltip.position,
|
|
1254
1253
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1255
1254
|
parent: P.value,
|
|
1256
|
-
content:
|
|
1257
|
-
isFullscreen:
|
|
1255
|
+
content: Me.value,
|
|
1256
|
+
isFullscreen: ue.value,
|
|
1258
1257
|
isCustom: v(Ot)(e.value.style.chart.tooltip.customFormat)
|
|
1259
1258
|
}, {
|
|
1260
1259
|
"tooltip-before": C(() => [
|
|
1261
|
-
L(a.$slots, "tooltip-before", U(H({ ...
|
|
1260
|
+
L(a.$slots, "tooltip-before", U(H({ ...Te.value })), void 0, !0)
|
|
1262
1261
|
]),
|
|
1263
1262
|
"tooltip-after": C(() => [
|
|
1264
|
-
L(a.$slots, "tooltip-after", U(H({ ...
|
|
1263
|
+
L(a.$slots, "tooltip-after", U(H({ ...Te.value })), void 0, !0)
|
|
1265
1264
|
]),
|
|
1266
1265
|
_: 3
|
|
1267
1266
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1268
1267
|
Q("div", {
|
|
1269
1268
|
ref_key: "chartLegend",
|
|
1270
|
-
ref:
|
|
1269
|
+
ref: We
|
|
1271
1270
|
}, [
|
|
1272
|
-
e.value.style.chart.legend.show &&
|
|
1271
|
+
e.value.style.chart.legend.show && ie.value ? (r(), K(Va, {
|
|
1273
1272
|
key: 0,
|
|
1274
|
-
legendSet:
|
|
1275
|
-
config:
|
|
1276
|
-
onClickMarker:
|
|
1273
|
+
legendSet: pt.value,
|
|
1274
|
+
config: sa.value,
|
|
1275
|
+
onClickMarker: s[4] || (s[4] = ({ legend: t }) => t.segregate())
|
|
1277
1276
|
}, $t({
|
|
1278
1277
|
item: C(({ legend: t }) => [
|
|
1279
1278
|
Q("div", {
|
|
@@ -1286,7 +1285,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1286
1285
|
a.$slots.pattern ? {
|
|
1287
1286
|
name: "legend-pattern",
|
|
1288
1287
|
fn: C(({ legend: t, index: l }) => [
|
|
1289
|
-
|
|
1288
|
+
we(Fa, {
|
|
1290
1289
|
shape: t.shape,
|
|
1291
1290
|
radius: 30,
|
|
1292
1291
|
stroke: "none",
|
|
@@ -1298,18 +1297,18 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1298
1297
|
} : void 0
|
|
1299
1298
|
]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
|
|
1300
1299
|
key: 1,
|
|
1301
|
-
legend:
|
|
1300
|
+
legend: pt.value
|
|
1302
1301
|
}, void 0, !0)
|
|
1303
1302
|
], 512),
|
|
1304
|
-
a.$slots.source ? (
|
|
1303
|
+
a.$slots.source ? (r(), o("div", {
|
|
1305
1304
|
key: 4,
|
|
1306
1305
|
ref_key: "source",
|
|
1307
|
-
ref:
|
|
1306
|
+
ref: Xe,
|
|
1308
1307
|
dir: "auto"
|
|
1309
1308
|
}, [
|
|
1310
1309
|
L(a.$slots, "source", {}, void 0, !0)
|
|
1311
1310
|
], 512)) : y("", !0),
|
|
1312
|
-
h.value.end - h.value.start < 200 ? (
|
|
1311
|
+
h.value.end - h.value.start < 200 ? (r(), K(v(Dt), {
|
|
1313
1312
|
key: 5,
|
|
1314
1313
|
hideDetails: "",
|
|
1315
1314
|
config: {
|
|
@@ -1326,13 +1325,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1326
1325
|
}
|
|
1327
1326
|
}, {
|
|
1328
1327
|
content: C(() => [
|
|
1329
|
-
|
|
1330
|
-
colNames:
|
|
1331
|
-
head:
|
|
1332
|
-
body:
|
|
1333
|
-
config:
|
|
1328
|
+
we(v(Ft), {
|
|
1329
|
+
colNames: me.value.colNames,
|
|
1330
|
+
head: me.value.head,
|
|
1331
|
+
body: me.value.body,
|
|
1332
|
+
config: me.value.config,
|
|
1334
1333
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1335
|
-
onClose:
|
|
1334
|
+
onClose: s[5] || (s[5] = (t) => z.value.showTable = !1)
|
|
1336
1335
|
}, {
|
|
1337
1336
|
th: C(({ th: t }) => [
|
|
1338
1337
|
Q("div", { innerHTML: t }, null, 8, Ol)
|
|
@@ -1350,10 +1349,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1350
1349
|
]),
|
|
1351
1350
|
_: 1
|
|
1352
1351
|
}, 8, ["config"])) : y("", !0),
|
|
1353
|
-
v(
|
|
1352
|
+
v(ce) ? (r(), K(Wa, { key: 6 })) : y("", !0)
|
|
1354
1353
|
], 46, Xa));
|
|
1355
1354
|
}
|
|
1356
|
-
}, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-
|
|
1355
|
+
}, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-e76ba3f8"]]);
|
|
1357
1356
|
export {
|
|
1358
1357
|
jl as default
|
|
1359
1358
|
};
|