vue-data-ui 3.0.0-next.30 → 3.0.0-next.32
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-gZkDqarC.js → Arrow-DiI9PrPS.js} +1 -1
- package/dist/{BaseDraggableDialog-Cx7MDUn7.js → BaseDraggableDialog-C0Kz_kZp.js} +2 -2
- package/dist/{BaseIcon-DEGIw8ne.js → BaseIcon-B_tGgA4H.js} +1 -1
- package/dist/{ColorPicker-dVo9qgIk.js → ColorPicker-CNsQt00F.js} +2 -2
- package/dist/{DataTable-DjL9vVfm.js → DataTable-Cm1oLidx.js} +2 -2
- package/dist/{Legend-DNs8ZSxL.js → Legend-DlUDcF1t.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bmu00306.js → NonSvgPenAndPaper-CLlxRJK1.js} +3 -3
- package/dist/{PackageVersion-SqC1iXfO.js → PackageVersion-DZMJZGOu.js} +1 -1
- package/dist/{PenAndPaper-C1bF0gIz.js → PenAndPaper-BDNLADWh.js} +3 -3
- package/dist/{Shape-CNmKltYG.js → Shape-Br_SZ_x0.js} +1 -1
- package/dist/Slicer-DMU3nifX.js +588 -0
- package/dist/{SparkTooltip-BuPeepCP.js → SparkTooltip-B6xp9zx_.js} +1 -1
- package/dist/{Title-B21jaJ0n.js → Title-B5lsq0cx.js} +1 -1
- package/dist/{Tooltip-C4HWh3fx.js → Tooltip-CrAURNKT.js} +23 -19
- package/dist/{UserOptions-DQDPN9YO.js → UserOptions-CksX2mn0.js} +2 -2
- package/dist/{dom-to-png-Z16yk8O6.js → dom-to-png-CIBDe8BB.js} +1 -1
- package/dist/{img-UQKhhbxb.js → img-CWXYkVMQ.js} +1 -1
- package/dist/{index-Bxh2efzz.js → index-DB4XIP_N.js} +16 -3
- package/dist/{pdf-D2K9GCDq.js → pdf-Dm-ieKMv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +13 -1
- package/dist/types/vue-data-ui.d.ts +13 -1
- package/dist/{useNestedProp-BGEUK51b.js → useNestedProp-iTa19l34.js} +1 -1
- package/dist/{usePrinter-CfB_poc_.js → usePrinter-id381vkp.js} +2 -2
- package/dist/{vue-data-ui-Em_nyncZ.js → vue-data-ui-WdvK3lBL.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-KFXQhCpk.js → vue-ui-3d-bar-CtiAXSRA.js} +6 -6
- package/dist/{vue-ui-accordion-CXj3OfMj.js → vue-ui-accordion-DAT3uTMD.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bygd_6Lj.js → vue-ui-age-pyramid-LuljyG04.js} +11 -9
- package/dist/{vue-ui-annotator-CaxhGvw9.js → vue-ui-annotator-CzHa2GlG.js} +2 -2
- package/dist/{vue-ui-bullet-xsVzeIGY.js → vue-ui-bullet-BEzXYrWC.js} +7 -7
- package/dist/{vue-ui-candlestick-DT3NblSj.js → vue-ui-candlestick-DSaFw3wl.js} +12 -10
- package/dist/{vue-ui-carousel-table-Bj6Blcps.js → vue-ui-carousel-table-D1CLPWmk.js} +4 -4
- package/dist/{vue-ui-chestnut-Bzi7pvOQ.js → vue-ui-chestnut-D3FNLdep.js} +5 -5
- package/dist/{vue-ui-chord-SN0lkfJI.js → vue-ui-chord-CFT-LcE4.js} +8 -8
- package/dist/{vue-ui-circle-pack-BwH7JGeH.js → vue-ui-circle-pack-Bl_cyLTg.js} +6 -6
- package/dist/{vue-ui-cursor-BLHqKKuQ.js → vue-ui-cursor-C2XYAY0n.js} +2 -2
- package/dist/{vue-ui-dashboard-C5ye3aO2.js → vue-ui-dashboard-4ZwAsn1N.js} +62 -62
- package/dist/{vue-ui-digits-fWW_yCiA.js → vue-ui-digits-Da5mTaOQ.js} +2 -2
- package/dist/{vue-ui-donut-VI_2cil0.js → vue-ui-donut-B6QlrBEH.js} +13 -11
- package/dist/{vue-ui-donut-evolution-BMDGbLPk.js → vue-ui-donut-evolution-Tv7oj7TE.js} +8 -8
- package/dist/{vue-ui-dumbbell-DYVwpQdP.js → vue-ui-dumbbell-LNnnDec4.js} +7 -7
- package/dist/{vue-ui-flow-BP3lwS2c.js → vue-ui-flow-B618L2Da.js} +12 -10
- package/dist/{vue-ui-funnel-C2gKEJrg.js → vue-ui-funnel-DS_tcSnW.js} +6 -6
- package/dist/{vue-ui-galaxy-CHu9EpUI.js → vue-ui-galaxy-C5qk-fEV.js} +51 -49
- package/dist/{vue-ui-gauge-DXoBEk4e.js → vue-ui-gauge-C33XPj6b.js} +6 -6
- package/dist/{vue-ui-gizmo-DpWaeVxb.js → vue-ui-gizmo-Cr6zUxnq.js} +3 -3
- package/dist/{vue-ui-heatmap-C6Xh5fmd.js → vue-ui-heatmap-ksiw1nTI.js} +32 -30
- package/dist/{vue-ui-history-plot-CH4RJSqN.js → vue-ui-history-plot-DM_vTyiY.js} +12 -10
- package/dist/{vue-ui-kpi-DJrypxm5.js → vue-ui-kpi-BgFQSUVT.js} +3 -3
- package/dist/{vue-ui-mini-loader-BMaEgYp1.js → vue-ui-mini-loader-BEpehl5X.js} +2 -2
- package/dist/{vue-ui-molecule-om_udncc.js → vue-ui-molecule-BIQFbPof.js} +35 -33
- package/dist/{vue-ui-mood-radar-BOd7BMa4.js → vue-ui-mood-radar-RShxk3Bz.js} +7 -7
- package/dist/{vue-ui-nested-donuts-B6krlgFx.js → vue-ui-nested-donuts-dMBxBBnZ.js} +62 -60
- package/dist/{vue-ui-onion-COQ1H7Ft.js → vue-ui-onion-ZVZ6wpNM.js} +46 -44
- package/dist/{vue-ui-parallel-coordinate-plot-CEKsfccd.js → vue-ui-parallel-coordinate-plot-1a3BGVsh.js} +69 -67
- package/dist/{vue-ui-quadrant-C88vkF8q.js → vue-ui-quadrant-XCnxKrJd.js} +59 -57
- package/dist/{vue-ui-quick-chart-CG2lY19C.js → vue-ui-quick-chart-BQJqdHxB.js} +11 -9
- package/dist/{vue-ui-radar-CUAYzxM4.js → vue-ui-radar-CeXlq2A-.js} +12 -10
- package/dist/{vue-ui-rating-DT0BLQ1G.js → vue-ui-rating-DTq-mZyU.js} +2 -2
- package/dist/{vue-ui-relation-circle-Ek_uAHpF.js → vue-ui-relation-circle-k8viefM-.js} +6 -6
- package/dist/{vue-ui-ridgeline-73OXSMcJ.js → vue-ui-ridgeline-B8oddwmZ.js} +8 -8
- package/dist/{vue-ui-rings-D1gK_JVs.js → vue-ui-rings-9XT1ePuY.js} +13 -11
- package/dist/{vue-ui-scatter-DCy4Vb84.js → vue-ui-scatter-oM-LVerf.js} +72 -70
- package/dist/{vue-ui-skeleton-DIb-2uan.js → vue-ui-skeleton-DDLBx4bb.js} +3 -3
- package/dist/{vue-ui-smiley-DiIu0kjQ.js → vue-ui-smiley-D5ybBkdY.js} +2 -2
- package/dist/{vue-ui-spark-trend-BPczzwfH.js → vue-ui-spark-trend-Tl-sOjqa.js} +3 -3
- package/dist/{vue-ui-sparkbar-B4LpToMU.js → vue-ui-sparkbar-Ce6dYcF4.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D9KwmalJ.js → vue-ui-sparkgauge-DRHrbpSl.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-h7qmzAe1.js → vue-ui-sparkhistogram-DBtPWFim.js} +4 -4
- package/dist/{vue-ui-sparkline-DYYy38Fu.js → vue-ui-sparkline-DcF2ugGh.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DIIyxzKM.js → vue-ui-sparkstackbar-C01iI0y3.js} +55 -53
- package/dist/{vue-ui-stackbar-BhPcAjIe.js → vue-ui-stackbar-BeCCgw_v.js} +196 -194
- package/dist/{vue-ui-strip-plot-9wxxXL3R.js → vue-ui-strip-plot-CsK2a1mH.js} +30 -28
- package/dist/{vue-ui-table-FAEiGW1W.js → vue-ui-table-COjBJDmq.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Cwbw5Rqy.js → vue-ui-table-heatmap-DfxMcAr9.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DnZ44NiP.js → vue-ui-table-sparkline-0BC6BxKt.js} +4 -4
- package/dist/{vue-ui-thermometer-CHFtR_VC.js → vue-ui-thermometer-Bf2_qGBi.js} +6 -6
- package/dist/{vue-ui-timer-DWzZTLxC.js → vue-ui-timer-BC9tH4qB.js} +5 -5
- package/dist/{vue-ui-tiremarks-DTS-ZQRp.js → vue-ui-tiremarks-ya8ABi9I.js} +6 -6
- package/dist/{vue-ui-treemap-B5OdGgS-.js → vue-ui-treemap-BSHptMc8.js} +13 -11
- package/dist/{vue-ui-vertical-bar-CcjDg9Bc.js → vue-ui-vertical-bar-B_Oa-v87.js} +41 -39
- package/dist/{vue-ui-waffle-C1XVqncx.js → vue-ui-waffle-DHB8v3nh.js} +13 -11
- package/dist/{vue-ui-wheel-DEIJPpR4.js → vue-ui-wheel-Bi28_KVB.js} +6 -6
- package/dist/{vue-ui-word-cloud-CUzU4JpO.js → vue-ui-word-cloud-BcQ2cfcu.js} +12 -10
- package/dist/{vue-ui-world-D0pONCg9.js → vue-ui-world-aLL9NUDQ.js} +11 -9
- package/dist/vue-ui-xy-BxonzF88.js +3710 -0
- package/dist/{vue-ui-xy-canvas-Do-IpmFr.js → vue-ui-xy-canvas-sUpmc7gl.js} +30 -28
- package/package.json +1 -1
- package/dist/Slicer-DYffOkSj.js +0 -577
- package/dist/vue-ui-xy-EoeoBLu2.js +0 -3027
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as te, useSlots as ga, computed as k, ref as b, onMounted as Lt, toRefs as ba, watch as
|
|
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, an as ze, ac 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-
|
|
3
|
-
import { u as Pt } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as te, useSlots as ga, computed as k, ref as b, onMounted as Lt, toRefs as ba, watch as Fe, shallowRef as zt, onBeforeUnmount as Ct, watchEffect as St, nextTick as _t, createElementBlock as o, openBlock as s, 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 De, 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, an as ze, ac 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-DB4XIP_N.js";
|
|
3
|
+
import { u as Pt } from "./useNestedProp-iTa19l34.js";
|
|
4
4
|
import { t as Ue, u as Na } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Ia } from "./usePrinter-
|
|
5
|
+
import { u as Ia } from "./usePrinter-id381vkp.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
|
|
12
|
-
import { _ as
|
|
9
|
+
import Va from "./Legend-DlUDcF1t.js";
|
|
10
|
+
import { S as Ea } from "./Slicer-DMU3nifX.js";
|
|
11
|
+
import Fa from "./Title-B5lsq0cx.js";
|
|
12
|
+
import { _ as Da } from "./Shape-Br_SZ_x0.js";
|
|
13
13
|
import { u as Ua } from "./useTimeLabels-DFkUfjfs.js";
|
|
14
|
-
import Ha from "./img-
|
|
14
|
+
import Ha from "./img-CWXYkVMQ.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"], rl = { key: 0 }, sl = ["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 = {
|
|
@@ -35,14 +35,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
37
|
setup(_e, { expose: Vt, emit: Et }) {
|
|
38
|
-
const
|
|
38
|
+
const Ft = te(() => import("./vue-ui-accordion-DAT3uTMD.js")), Dt = te(() => import("./DataTable-Cm1oLidx.js")), Ut = te(() => import("./PackageVersion-DZMJZGOu.js")), Ht = te(() => import("./PenAndPaper-BDNLADWh.js")), Bt = te(() => import("./Tooltip-CrAURNKT.js")), Wt = te(() => import("./UserOptions-CksX2mn0.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()), 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),
|
|
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), re = 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
46
|
Lt(() => {
|
|
47
47
|
Pe();
|
|
48
48
|
});
|
|
@@ -122,19 +122,19 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
122
122
|
userConfig: f.config,
|
|
123
123
|
defaultConfig: Yt
|
|
124
124
|
});
|
|
125
|
-
let
|
|
126
|
-
return a.theme ?
|
|
125
|
+
let r = {};
|
|
126
|
+
return a.theme ? r = {
|
|
127
127
|
...Pt({
|
|
128
128
|
userConfig: ka.vue_ui_stackbar[a.theme] || f.config,
|
|
129
129
|
defaultConfig: a
|
|
130
130
|
}),
|
|
131
131
|
customPalette: xa[a.theme] || Le
|
|
132
|
-
} :
|
|
132
|
+
} : r = a, f.config && le(f.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, f.config && le(f.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, f.config && le(f.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, f.config && le(f.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, f.config && le(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? r.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : r.style.chart.bars.dataLabels.hideUnderValue = null, f.config && le(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? r.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : r.style.chart.bars.dataLabels.hideUnderPercentage = null, r;
|
|
133
133
|
}
|
|
134
134
|
const et = k(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = k(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
135
|
-
|
|
135
|
+
Fe(() => f.config, (a) => {
|
|
136
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 }),
|
|
137
|
+
}, { deep: !0 }), Fe(() => f.dataset, (a) => {
|
|
138
138
|
Array.isArray(a) && a.length > 0 && (ve.value = !1), nt();
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const z = b({
|
|
@@ -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
|
+
Fe(e, () => {
|
|
148
148
|
z.value = {
|
|
149
149
|
dataLabels: {
|
|
150
150
|
show: e.value.style.chart.bars.dataLabels.show
|
|
@@ -153,7 +153,7 @@ 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: at, isImaging: lt, generatePdf:
|
|
156
|
+
const { isPrinting: at, isImaging: lt, generatePdf: rt, generateImage: st } = 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
|
|
@@ -176,7 +176,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
176
176
|
componentName: "VueUiStackbar",
|
|
177
177
|
type: "dataset",
|
|
178
178
|
debug: Oe.value
|
|
179
|
-
}), ve.value = !0) : f.dataset.forEach((a,
|
|
179
|
+
}), ve.value = !0) : f.dataset.forEach((a, r) => {
|
|
180
180
|
La({
|
|
181
181
|
datasetObject: a,
|
|
182
182
|
requiredAttributes: ["name", "series"]
|
|
@@ -185,7 +185,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
185
185
|
componentName: "VueUiStackbar",
|
|
186
186
|
type: "datasetSerieAttribute",
|
|
187
187
|
property: t,
|
|
188
|
-
index:
|
|
188
|
+
index: r,
|
|
189
189
|
debug: Oe.value
|
|
190
190
|
}), ve.value = !0;
|
|
191
191
|
});
|
|
@@ -194,15 +194,15 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
194
194
|
}, 10), e.value.responsive) {
|
|
195
195
|
const a = Ue(() => {
|
|
196
196
|
B.value = !1;
|
|
197
|
-
const { width:
|
|
197
|
+
const { width: r, height: t } = Na({
|
|
198
198
|
chart: P.value,
|
|
199
199
|
title: e.value.style.chart.title.text ? Be.value : null,
|
|
200
200
|
legend: e.value.style.chart.legend.show ? We.value : null,
|
|
201
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
201
|
+
slicer: e.value.style.chart.zoom.show && D.value > 1 ? Ye.value : null,
|
|
202
202
|
source: Xe.value
|
|
203
203
|
});
|
|
204
204
|
requestAnimationFrame(() => {
|
|
205
|
-
de.value.width =
|
|
205
|
+
de.value.width = r, de.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
|
|
206
206
|
B.value = !0;
|
|
207
207
|
}, 10);
|
|
208
208
|
});
|
|
@@ -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 r = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
|
|
227
|
+
return a + r + (r ? 24 : 0);
|
|
228
228
|
}
|
|
229
229
|
const ye = b(0), ge = b(0), Qt = Ue((a) => {
|
|
230
230
|
ye.value = a;
|
|
231
231
|
}, 100);
|
|
232
232
|
St((a) => {
|
|
233
|
-
const
|
|
234
|
-
if (!
|
|
233
|
+
const r = e.value.orientation === "vertical" ? Y.value : W.value;
|
|
234
|
+
if (!r) return;
|
|
235
235
|
const t = new ResizeObserver((l) => {
|
|
236
236
|
Qt(l[0].contentRect.height);
|
|
237
237
|
});
|
|
238
|
-
t.observe(
|
|
238
|
+
t.observe(r), a(() => t.disconnect());
|
|
239
239
|
});
|
|
240
240
|
const jt = Ue((a) => {
|
|
241
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 r = Ze.value;
|
|
246
|
+
if (!r) return;
|
|
247
247
|
const t = new ResizeObserver((l) => {
|
|
248
248
|
jt(l[0].contentRect.width);
|
|
249
249
|
});
|
|
250
|
-
t.observe(
|
|
250
|
+
t.observe(r), a(() => t.disconnect());
|
|
251
251
|
}), Ct(() => {
|
|
252
252
|
ye.value = 0, ge.value = 0;
|
|
253
253
|
});
|
|
254
254
|
const it = k(() => {
|
|
255
255
|
let a = 0;
|
|
256
256
|
Ae.value && (a = Ae.value.getBBox().height);
|
|
257
|
-
let
|
|
258
|
-
return e.value.orientation === "vertical" && Y.value && (
|
|
257
|
+
let r = 0;
|
|
258
|
+
return e.value.orientation === "vertical" && Y.value && (r = ye.value), e.value.orientation === "horizontal" && W.value && (r = ye.value), a + r;
|
|
259
259
|
}), n = k(() => {
|
|
260
|
-
const { height: a, width:
|
|
260
|
+
const { height: a, width: r } = 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 = r - r * t - ge.value, X = a - e.value.style.chart.padding.bottom - it.value - l, G = e.value.style.chart.padding.left + c, J = r - G - r * 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: r,
|
|
267
267
|
top: u,
|
|
268
268
|
right: S,
|
|
269
269
|
bottom: X,
|
|
@@ -271,19 +271,19 @@ 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
|
-
}),
|
|
275
|
-
const t = za(a.color) || Zt.value[
|
|
274
|
+
}), F = k(() => he.value.map((a, r) => {
|
|
275
|
+
const t = za(a.color) || Zt.value[r] || Le[r] || Le[r % 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: r,
|
|
283
283
|
id: Tt(),
|
|
284
284
|
color: t
|
|
285
285
|
};
|
|
286
|
-
})),
|
|
286
|
+
})), D = k(() => Math.max(...F.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), h = b({
|
|
287
287
|
start: 0,
|
|
288
288
|
end: Math.max(...he.value.map((a) => a.series.length))
|
|
289
289
|
});
|
|
@@ -292,33 +292,33 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
292
292
|
}
|
|
293
293
|
async function Ve() {
|
|
294
294
|
await _t(), await _t();
|
|
295
|
-
const { startIndex: a, endIndex:
|
|
296
|
-
(a != null ||
|
|
295
|
+
const { startIndex: a, endIndex: r } = e.value.style.chart.zoom, t = qe.value, l = Math.max(...he.value.map((c) => c.series.length));
|
|
296
|
+
(a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(ea(r + 1))) : (h.value = { start: 0, end: l }, Ge.value += 1);
|
|
297
297
|
}
|
|
298
298
|
function ea(a) {
|
|
299
|
-
const
|
|
300
|
-
return a >
|
|
299
|
+
const r = Math.max(...he.value.map((t) => t.series.length));
|
|
300
|
+
return a > r ? r : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
301
301
|
}
|
|
302
302
|
const d = k(() => {
|
|
303
303
|
let a;
|
|
304
304
|
return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
305
|
-
}),
|
|
305
|
+
}), se = k(() => ze(F.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), ta = k(() => ze(F.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
306
306
|
...a,
|
|
307
|
-
series: a.series.map((
|
|
307
|
+
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
308
308
|
}))).slice(h.value.start, h.value.end)), be = k(() => {
|
|
309
|
-
const a =
|
|
309
|
+
const a = F.value.filter((r) => !_.value.includes(r.id));
|
|
310
310
|
return {
|
|
311
|
-
positive: ze(a.map((
|
|
312
|
-
...
|
|
313
|
-
series:
|
|
311
|
+
positive: ze(a.map((r) => ({
|
|
312
|
+
...r,
|
|
313
|
+
series: r.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
314
314
|
}))),
|
|
315
|
-
negative: ze(a.map((
|
|
316
|
-
...
|
|
317
|
-
series:
|
|
315
|
+
negative: ze(a.map((r) => ({
|
|
316
|
+
...r,
|
|
317
|
+
series: r.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
318
318
|
})))
|
|
319
319
|
};
|
|
320
320
|
}), I = k(() => {
|
|
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),
|
|
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), r = 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(r) ? 0 : r, 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);
|
|
322
322
|
return l.ticks.map((c) => ({
|
|
323
323
|
zero: n.value.bottom - n.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
324
324
|
y: n.value.bottom - n.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -330,33 +330,33 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
330
330
|
}));
|
|
331
331
|
}), $ = k(() => Ua({
|
|
332
332
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
333
|
-
maxDatapoints:
|
|
333
|
+
maxDatapoints: D.value,
|
|
334
334
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
335
335
|
start: h.value.start,
|
|
336
336
|
end: h.value.end
|
|
337
337
|
})), w = k(() => {
|
|
338
338
|
if (!ie.value && !ce.value) return [];
|
|
339
|
-
let a = Array(
|
|
339
|
+
let a = Array(D.value).fill(0), r = Array(D.value).fill(0), t = Array(D.value).fill(0), l = Array(D.value).fill(0);
|
|
340
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
|
|
341
|
+
return F.value.filter((oe) => !_.value.includes(oe.id)).map((oe) => {
|
|
342
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) /
|
|
343
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / R;
|
|
344
344
|
let q, N;
|
|
345
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;
|
|
346
346
|
}), ha = O.map((p, x) => {
|
|
347
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
347
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / R;
|
|
348
348
|
let q, N;
|
|
349
|
-
return p > 0 ? (N = ke * A, q = wt +
|
|
349
|
+
return p > 0 ? (N = ke * A, q = wt + r[x], r[x] += N) : (N = ke * A, q = wt - Math.abs(N) - l[x], l[x] += Math.abs(N)), q;
|
|
350
350
|
}), va = O.map((p, x) => {
|
|
351
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
351
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / R;
|
|
352
352
|
return p > 0 ? T * A : T * Math.abs(A);
|
|
353
353
|
}), da = O.map((p, x) => {
|
|
354
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
354
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / R;
|
|
355
355
|
return p > 0 ? ke * A : ke * Math.abs(A);
|
|
356
356
|
}), ya = O.map((p) => Math.abs(p)).reduce((p, x) => p + x, 0);
|
|
357
357
|
return {
|
|
358
358
|
...oe,
|
|
359
|
-
proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) /
|
|
359
|
+
proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / ya),
|
|
360
360
|
series: O,
|
|
361
361
|
signedSeries: ia,
|
|
362
362
|
x: na,
|
|
@@ -367,11 +367,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
367
367
|
horizontal_x: ha
|
|
368
368
|
};
|
|
369
369
|
});
|
|
370
|
-
}), ut = k(() => ta.value.map((a,
|
|
370
|
+
}), ut = k(() => ta.value.map((a, r) => ({
|
|
371
371
|
value: a,
|
|
372
372
|
sign: a >= 0 ? 1 : -1
|
|
373
373
|
})));
|
|
374
|
-
function fe(a,
|
|
374
|
+
function fe(a, r, t, l, c) {
|
|
375
375
|
const u = c === -1 && a >= 0 ? -a : a;
|
|
376
376
|
return Se(
|
|
377
377
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
@@ -382,10 +382,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
382
382
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
383
383
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
384
384
|
}),
|
|
385
|
-
{ datapoint:
|
|
385
|
+
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
function ct(a,
|
|
388
|
+
function ct(a, r, t, l) {
|
|
389
389
|
return Se(
|
|
390
390
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
391
391
|
a,
|
|
@@ -394,22 +394,22 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
394
394
|
s: "%",
|
|
395
395
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
396
396
|
}),
|
|
397
|
-
{ datapoint:
|
|
397
|
+
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
400
|
function ht(a) {
|
|
401
|
-
const
|
|
401
|
+
const r = 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,
|
|
404
404
|
proportion: t.proportions[a] || null,
|
|
405
405
|
color: t.color,
|
|
406
406
|
id: t.id
|
|
407
407
|
}));
|
|
408
|
-
$e("selectDatapoint", { datapoint:
|
|
408
|
+
$e("selectDatapoint", { datapoint: r, period: $.value[a] });
|
|
409
409
|
}
|
|
410
410
|
function vt(a) {
|
|
411
|
-
|
|
412
|
-
const
|
|
411
|
+
re.value = a, ne.value = !0;
|
|
412
|
+
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
|
|
413
413
|
name: c.name,
|
|
414
414
|
absoluteIndex: c.absoluteIndex,
|
|
415
415
|
value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
|
|
@@ -424,13 +424,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
424
424
|
series: w.value
|
|
425
425
|
};
|
|
426
426
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
427
|
-
if (Ot(
|
|
427
|
+
if (Ot(r) && Aa(() => r({
|
|
428
428
|
seriesIndex: a,
|
|
429
429
|
datapoint: t,
|
|
430
430
|
series: w.value,
|
|
431
431
|
config: e.value
|
|
432
432
|
})))
|
|
433
|
-
Me.value =
|
|
433
|
+
Me.value = r({
|
|
434
434
|
seriesIndex: a,
|
|
435
435
|
datapoint: t,
|
|
436
436
|
series: w.value,
|
|
@@ -499,24 +499,24 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
499
499
|
const a = w.value.map(({ name: t, color: l }) => ({
|
|
500
500
|
label: t,
|
|
501
501
|
color: l
|
|
502
|
-
})),
|
|
502
|
+
})), r = [];
|
|
503
503
|
return $.value.forEach((t) => {
|
|
504
504
|
const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
505
|
-
|
|
505
|
+
F.value.forEach((c) => {
|
|
506
506
|
l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
507
|
-
}),
|
|
508
|
-
}), { head: a, body:
|
|
507
|
+
}), r.push(l);
|
|
508
|
+
}), { head: a, body: r };
|
|
509
509
|
});
|
|
510
510
|
function mt(a = null) {
|
|
511
|
-
const
|
|
511
|
+
const r = [[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 = r.concat([t]).concat(l), u = Ta(c);
|
|
512
512
|
a ? a(u) : Ma({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
513
513
|
}
|
|
514
514
|
const me = k(() => {
|
|
515
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>');
|
|
516
|
-
let
|
|
517
|
-
for (let c = 0; c <
|
|
516
|
+
let r = [];
|
|
517
|
+
for (let c = 0; c < D.value; c += 1) {
|
|
518
518
|
const u = w.value.map((S) => S.series[c] ?? 0).reduce((S, X) => S + X, 0);
|
|
519
|
-
|
|
519
|
+
r.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)));
|
|
520
520
|
}
|
|
521
521
|
const t = {
|
|
522
522
|
th: {
|
|
@@ -531,17 +531,17 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
531
531
|
},
|
|
532
532
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
533
533
|
}, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
534
|
-
return { head: a, body:
|
|
534
|
+
return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
|
|
535
535
|
});
|
|
536
|
-
function la(a,
|
|
537
|
-
if ($e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(
|
|
538
|
-
_.value = _.value.filter((t) => t !==
|
|
536
|
+
function la(a, r) {
|
|
537
|
+
if ($e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(r.id))
|
|
538
|
+
_.value = _.value.filter((t) => t !== r.id);
|
|
539
539
|
else {
|
|
540
|
-
if (_.value.length ===
|
|
541
|
-
_.value.push(
|
|
540
|
+
if (_.value.length === F.value.length - 1) return;
|
|
541
|
+
_.value.push(r.id);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
const pt = k(() =>
|
|
544
|
+
const pt = k(() => F.value.map((a, r) => ({
|
|
545
545
|
...a,
|
|
546
546
|
shape: "square"
|
|
547
547
|
})).map((a) => ({
|
|
@@ -549,7 +549,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
549
549
|
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
550
550
|
segregate: () => la(a.absoluteIndex, a),
|
|
551
551
|
isSegregated: _.value.includes(a.id)
|
|
552
|
-
}))),
|
|
552
|
+
}))), ra = k(() => ({
|
|
553
553
|
cy: "stackbar-legend",
|
|
554
554
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
555
555
|
color: e.value.style.chart.legend.color,
|
|
@@ -560,11 +560,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
560
560
|
function Ee() {
|
|
561
561
|
pe.value = !pe.value;
|
|
562
562
|
}
|
|
563
|
-
function xe(a,
|
|
563
|
+
function xe(a, r) {
|
|
564
564
|
const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
565
565
|
name: l.name,
|
|
566
|
-
value: l.series[
|
|
567
|
-
proportion: l.proportions[
|
|
566
|
+
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
567
|
+
proportion: l.proportions[r] || null,
|
|
568
568
|
color: l.color,
|
|
569
569
|
id: l.id
|
|
570
570
|
}));
|
|
@@ -574,18 +574,18 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
574
574
|
label: a.text
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
-
const
|
|
578
|
-
function xt(a,
|
|
579
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ?
|
|
577
|
+
const sa = k(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
578
|
+
function xt(a, r) {
|
|
579
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 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 > sa.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;
|
|
580
580
|
}
|
|
581
581
|
async function oa({ scale: a = 2 } = {}) {
|
|
582
582
|
if (!P.value) return;
|
|
583
|
-
const { width:
|
|
583
|
+
const { width: r, height: t } = P.value.getBoundingClientRect(), l = r / t, { imageUri: c, base64: u } = await Ha({ domElement: P.value, base64: !0, img: !0, scale: a });
|
|
584
584
|
return {
|
|
585
585
|
imageUri: c,
|
|
586
586
|
base64: u,
|
|
587
587
|
title: e.value.style.chart.title.text,
|
|
588
|
-
width:
|
|
588
|
+
width: r,
|
|
589
589
|
height: t,
|
|
590
590
|
aspectRatio: l
|
|
591
591
|
};
|
|
@@ -593,24 +593,24 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
593
593
|
return Vt({
|
|
594
594
|
getData: aa,
|
|
595
595
|
getImage: oa,
|
|
596
|
-
generatePdf:
|
|
596
|
+
generatePdf: rt,
|
|
597
597
|
generateCsv: mt,
|
|
598
|
-
generateImage:
|
|
598
|
+
generateImage: st,
|
|
599
599
|
toggleTable: yt,
|
|
600
600
|
toggleLabels: gt,
|
|
601
601
|
toggleTooltip: bt,
|
|
602
602
|
toggleAnnotator: Ee,
|
|
603
603
|
toggleFullscreen: dt
|
|
604
|
-
}), (a,
|
|
604
|
+
}), (a, r) => (s(), o("div", {
|
|
605
605
|
id: `stackbar_${V.value}`,
|
|
606
606
|
ref_key: "stackbarChart",
|
|
607
607
|
ref: P,
|
|
608
608
|
class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
|
|
609
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%" : ""}`),
|
|
610
|
-
onMouseenter:
|
|
611
|
-
onMouseleave:
|
|
610
|
+
onMouseenter: r[6] || (r[6] = () => v(Ke)(!0)),
|
|
611
|
+
onMouseleave: r[7] || (r[7] = () => v(Ke)(!1))
|
|
612
612
|
}, [
|
|
613
|
-
e.value.userOptions.buttons.annotator ? (
|
|
613
|
+
e.value.userOptions.buttons.annotator ? (s(), K(v(Ht), {
|
|
614
614
|
key: 0,
|
|
615
615
|
svgRef: v(je),
|
|
616
616
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -619,13 +619,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
619
619
|
onClose: Ee
|
|
620
620
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
621
621
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
622
|
-
e.value.style.chart.title.text ? (
|
|
622
|
+
e.value.style.chart.title.text ? (s(), o("div", {
|
|
623
623
|
key: 1,
|
|
624
624
|
ref_key: "chartTitle",
|
|
625
625
|
ref: Be,
|
|
626
626
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
627
627
|
}, [
|
|
628
|
-
(
|
|
628
|
+
(s(), K(Fa, {
|
|
629
629
|
key: `title_${Je.value}`,
|
|
630
630
|
config: {
|
|
631
631
|
title: {
|
|
@@ -639,7 +639,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
639
639
|
}
|
|
640
640
|
}, null, 8, ["config"]))
|
|
641
641
|
], 512)) : y("", !0),
|
|
642
|
-
e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (
|
|
642
|
+
e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (s(), K(v(Wt), {
|
|
643
643
|
ref: "details",
|
|
644
644
|
key: `user_option_${He.value}`,
|
|
645
645
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -664,9 +664,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
664
664
|
callbacks: e.value.userOptions.callbacks,
|
|
665
665
|
printScale: e.value.userOptions.print.scale,
|
|
666
666
|
onToggleFullscreen: dt,
|
|
667
|
-
onGeneratePdf: v(
|
|
667
|
+
onGeneratePdf: v(rt),
|
|
668
668
|
onGenerateCsv: mt,
|
|
669
|
-
onGenerateImage: v(
|
|
669
|
+
onGenerateImage: v(st),
|
|
670
670
|
onToggleTable: yt,
|
|
671
671
|
onToggleLabels: gt,
|
|
672
672
|
onToggleTooltip: bt,
|
|
@@ -739,7 +739,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
739
739
|
key: "8"
|
|
740
740
|
} : void 0
|
|
741
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),
|
|
742
|
-
(
|
|
742
|
+
(s(), o("svg", {
|
|
743
743
|
ref_key: "svgRef",
|
|
744
744
|
ref: je,
|
|
745
745
|
xmlns: v(Ca),
|
|
@@ -748,7 +748,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
748
748
|
style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
749
749
|
}, [
|
|
750
750
|
we(v(Ut)),
|
|
751
|
-
a.$slots["chart-background"] ? (
|
|
751
|
+
a.$slots["chart-background"] ? (s(), o("foreignObject", {
|
|
752
752
|
key: 0,
|
|
753
753
|
x: n.value.left,
|
|
754
754
|
y: n.value.top,
|
|
@@ -760,8 +760,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
760
760
|
}, [
|
|
761
761
|
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
762
762
|
], 8, Ja)) : y("", !0),
|
|
763
|
-
e.value.style.chart.bars.gradient.show ? (
|
|
764
|
-
(
|
|
763
|
+
e.value.style.chart.bars.gradient.show ? (s(), o("defs", qa, [
|
|
764
|
+
(s(!0), o(g, null, m(w.value, (t, l) => (s(), o("linearGradient", {
|
|
765
765
|
id: `gradient_${t.id}`,
|
|
766
766
|
x1: "0%",
|
|
767
767
|
y1: "0%",
|
|
@@ -782,7 +782,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
782
782
|
}, null, 8, ja)
|
|
783
783
|
], 8, Za))), 256))
|
|
784
784
|
])) : y("", !0),
|
|
785
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (
|
|
785
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), o(g, { key: 2 }, m(I.value, (t, l) => (s(), o("line", {
|
|
786
786
|
x1: n.value.left,
|
|
787
787
|
x2: n.value.right,
|
|
788
788
|
y1: t.y,
|
|
@@ -792,7 +792,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
792
792
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
793
793
|
"stroke-linecap": "round"
|
|
794
794
|
}, null, 8, el))), 256)) : y("", !0),
|
|
795
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (
|
|
795
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, l) => (s(), o("line", {
|
|
796
796
|
x1: n.value.left,
|
|
797
797
|
x2: n.value.right,
|
|
798
798
|
y1: n.value.top + d.value * l,
|
|
@@ -802,7 +802,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
802
802
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
803
803
|
"stroke-linecap": "round"
|
|
804
804
|
}, null, 8, tl))), 256)) : y("", !0),
|
|
805
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (
|
|
805
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, l) => (s(), o("line", {
|
|
806
806
|
x1: n.value.left + d.value * l,
|
|
807
807
|
x2: n.value.left + d.value * l,
|
|
808
808
|
y1: n.value.top,
|
|
@@ -812,7 +812,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
812
812
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
813
813
|
"stroke-linecap": "round"
|
|
814
814
|
}, null, 8, al))), 256)) : y("", !0),
|
|
815
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (
|
|
815
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), o(g, { key: 5 }, m(I.value, (t, l) => (s(), o("line", {
|
|
816
816
|
x1: t.horizontal_x,
|
|
817
817
|
x2: t.horizontal_x,
|
|
818
818
|
y1: n.value.top,
|
|
@@ -822,12 +822,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
822
822
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
823
823
|
"stroke-linecap": "round"
|
|
824
824
|
}, null, 8, ll))), 256)) : y("", !0),
|
|
825
|
-
(
|
|
826
|
-
a.$slots.pattern ? (
|
|
827
|
-
L(a.$slots, "pattern",
|
|
825
|
+
(s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
|
|
826
|
+
a.$slots.pattern ? (s(), o("defs", rl, [
|
|
827
|
+
L(a.$slots, "pattern", De({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
828
828
|
])) : y("", !0),
|
|
829
|
-
e.value.orientation === "vertical" ? (
|
|
830
|
-
(
|
|
829
|
+
e.value.orientation === "vertical" ? (s(), o(g, { key: 1 }, [
|
|
830
|
+
(s(!0), o(g, null, m(t.x, (c, u) => (s(), o("rect", {
|
|
831
831
|
x: c,
|
|
832
832
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
833
833
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
@@ -839,9 +839,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
839
839
|
"stroke-linecap": "round",
|
|
840
840
|
"stroke-linejoin": "round",
|
|
841
841
|
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
842
|
-
}, null, 10,
|
|
843
|
-
a.$slots.pattern ? (
|
|
844
|
-
(
|
|
842
|
+
}, null, 10, sl))), 256)),
|
|
843
|
+
a.$slots.pattern ? (s(), o("g", ol, [
|
|
844
|
+
(s(!0), o(g, null, m(t.x, (c, u) => (s(), o("rect", {
|
|
845
845
|
x: c,
|
|
846
846
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
847
847
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
@@ -855,8 +855,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
855
855
|
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
856
856
|
}, null, 10, il))), 256))
|
|
857
857
|
])) : y("", !0)
|
|
858
|
-
], 64)) : (
|
|
859
|
-
(
|
|
858
|
+
], 64)) : (s(), o(g, { key: 2 }, [
|
|
859
|
+
(s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o("rect", {
|
|
860
860
|
x: v(Ce)(c, n.value.left),
|
|
861
861
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
862
862
|
width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
@@ -869,8 +869,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
869
869
|
"stroke-linejoin": "round",
|
|
870
870
|
class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
871
871
|
}, null, 10, nl))), 256)),
|
|
872
|
-
a.$slots.pattern ? (
|
|
873
|
-
(
|
|
872
|
+
a.$slots.pattern ? (s(), o("g", ul, [
|
|
873
|
+
(s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o("rect", {
|
|
874
874
|
x: v(Ce)(c, n.value.left),
|
|
875
875
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
876
876
|
width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
@@ -886,7 +886,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
886
886
|
])) : y("", !0)
|
|
887
887
|
], 64))
|
|
888
888
|
]))), 256)),
|
|
889
|
-
e.value.style.chart.grid.x.showAxis ? (
|
|
889
|
+
e.value.style.chart.grid.x.showAxis ? (s(), o("line", {
|
|
890
890
|
key: 6,
|
|
891
891
|
x1: n.value.left,
|
|
892
892
|
x2: n.value.right,
|
|
@@ -897,7 +897,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
897
897
|
"stroke-linecap": "round",
|
|
898
898
|
"stroke-linejoin": "round"
|
|
899
899
|
}, null, 8, hl)) : y("", !0),
|
|
900
|
-
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 ? (s(), o("line", {
|
|
901
901
|
key: 7,
|
|
902
902
|
x1: n.value.left,
|
|
903
903
|
x2: n.value.left,
|
|
@@ -908,7 +908,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
908
908
|
"stroke-linecap": "round",
|
|
909
909
|
"stroke-linejoin": "round"
|
|
910
910
|
}, null, 8, vl)) : y("", !0),
|
|
911
|
-
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 ? (s(), o("text", {
|
|
912
912
|
key: 8,
|
|
913
913
|
ref_key: "xAxisLabel",
|
|
914
914
|
ref: Ae,
|
|
@@ -919,7 +919,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
919
919
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
920
920
|
"text-anchor": "middle"
|
|
921
921
|
}, M(e.value.style.chart.grid.x.axisName.text), 9, dl)) : y("", !0),
|
|
922
|
-
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 ? (s(), o("text", {
|
|
923
923
|
key: 9,
|
|
924
924
|
ref_key: "yAxisLabel",
|
|
925
925
|
ref: Ne,
|
|
@@ -929,10 +929,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
929
929
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
930
930
|
"text-anchor": "middle"
|
|
931
931
|
}, M(e.value.style.chart.grid.y.axisName.text), 9, yl)) : y("", !0),
|
|
932
|
-
z.value.dataLabels.show && e.value.orientation === "vertical" ? (
|
|
933
|
-
(
|
|
934
|
-
(
|
|
935
|
-
xt(t.series[u], t.proportions[u]) ? (
|
|
932
|
+
z.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), o(g, { key: 10 }, [
|
|
933
|
+
(s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
|
|
934
|
+
(s(!0), o(g, null, m(t.x, (c, u) => (s(), o(g, null, [
|
|
935
|
+
xt(t.series[u], t.proportions[u]) ? (s(), o("text", {
|
|
936
936
|
key: 0,
|
|
937
937
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
938
938
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -943,13 +943,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
943
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)
|
|
944
944
|
], 64))), 256))
|
|
945
945
|
]))), 256)),
|
|
946
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (
|
|
946
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
|
|
947
947
|
key: 0,
|
|
948
948
|
ref_key: "sumTop",
|
|
949
949
|
ref: qt
|
|
950
950
|
}, [
|
|
951
|
-
(
|
|
952
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
951
|
+
(s(!0), o(g, null, m(ut.value, (t, l) => (s(), o(g, null, [
|
|
952
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), o("text", {
|
|
953
953
|
key: 0,
|
|
954
954
|
x: n.value.left + d.value * l + d.value / 2,
|
|
955
955
|
y: e.value.style.chart.bars.totalValues.fontSize,
|
|
@@ -961,10 +961,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
961
961
|
], 64))), 256))
|
|
962
962
|
], 512)) : y("", !0)
|
|
963
963
|
], 64)) : y("", !0),
|
|
964
|
-
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (
|
|
965
|
-
(
|
|
966
|
-
(
|
|
967
|
-
xt(t.series[u], t.proportions[u]) ? (
|
|
964
|
+
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), o(g, { key: 11 }, [
|
|
965
|
+
(s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
|
|
966
|
+
(s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o(g, null, [
|
|
967
|
+
xt(t.series[u], t.proportions[u]) ? (s(), o("text", {
|
|
968
968
|
key: 0,
|
|
969
969
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
970
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,
|
|
@@ -975,13 +975,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
975
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)
|
|
976
976
|
], 64))), 256))
|
|
977
977
|
]))), 256)),
|
|
978
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (
|
|
978
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
|
|
979
979
|
key: 0,
|
|
980
980
|
ref_key: "sumRight",
|
|
981
981
|
ref: Ze
|
|
982
982
|
}, [
|
|
983
|
-
(
|
|
984
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
983
|
+
(s(!0), o(g, null, m(ut.value, (t, l) => (s(), o(g, null, [
|
|
984
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), o("text", {
|
|
985
985
|
key: 0,
|
|
986
986
|
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
987
987
|
y: n.value.top + d.value * l + d.value / 2,
|
|
@@ -993,12 +993,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
993
993
|
], 64))), 256))
|
|
994
994
|
], 512)) : y("", !0)
|
|
995
995
|
], 64)) : y("", !0),
|
|
996
|
-
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" ? (s(), o("g", {
|
|
997
997
|
key: 12,
|
|
998
998
|
ref_key: "scaleLabels",
|
|
999
999
|
ref: W
|
|
1000
1000
|
}, [
|
|
1001
|
-
(
|
|
1001
|
+
(s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
|
|
1002
1002
|
x1: n.value.left,
|
|
1003
1003
|
x2: n.value.left - 6,
|
|
1004
1004
|
y1: t.y,
|
|
@@ -1006,7 +1006,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1006
1006
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1007
1007
|
"stroke-width": 1
|
|
1008
1008
|
}, null, 8, pl))), 256)),
|
|
1009
|
-
(
|
|
1009
|
+
(s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
|
|
1010
1010
|
x: t.x,
|
|
1011
1011
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1012
1012
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1025,12 +1025,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1025
1025
|
{ datapoint: t }
|
|
1026
1026
|
)), 9, xl))), 256))
|
|
1027
1027
|
], 512)) : y("", !0),
|
|
1028
|
-
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" ? (s(), o("g", {
|
|
1029
1029
|
key: 13,
|
|
1030
1030
|
ref_key: "scaleLabels",
|
|
1031
1031
|
ref: W
|
|
1032
1032
|
}, [
|
|
1033
|
-
(
|
|
1033
|
+
(s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
|
|
1034
1034
|
x1: t.horizontal_x,
|
|
1035
1035
|
x2: t.horizontal_x,
|
|
1036
1036
|
y1: n.value.bottom,
|
|
@@ -1039,7 +1039,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1039
1039
|
"stroke-width": 1,
|
|
1040
1040
|
"stroke-linecap": "round"
|
|
1041
1041
|
}, null, 8, kl))), 256)),
|
|
1042
|
-
(
|
|
1042
|
+
(s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
|
|
1043
1043
|
class: "vue-data-ui-time-label",
|
|
1044
1044
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1045
1045
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -1058,14 +1058,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1058
1058
|
{ datapoint: t }
|
|
1059
1059
|
)), 9, wl))), 256))
|
|
1060
1060
|
], 512)) : y("", !0),
|
|
1061
|
-
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" ? (s(), o("g", {
|
|
1062
1062
|
key: 14,
|
|
1063
1063
|
ref_key: "timeLabelsEls",
|
|
1064
1064
|
ref: Y
|
|
1065
1065
|
}, [
|
|
1066
|
-
a.$slots["time-label"] ? (
|
|
1067
|
-
(
|
|
1068
|
-
L(a.$slots, "time-label",
|
|
1066
|
+
a.$slots["time-label"] ? (s(), o("g", Ll, [
|
|
1067
|
+
(s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
|
|
1068
|
+
L(a.$slots, "time-label", De({ ref_for: !0 }, {
|
|
1069
1069
|
x: n.value.left + d.value * l + d.value / 2,
|
|
1070
1070
|
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1071
1071
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1077,10 +1077,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1077
1077
|
show: !0
|
|
1078
1078
|
}), void 0, !0)
|
|
1079
1079
|
]))), 256))
|
|
1080
|
-
])) : (
|
|
1081
|
-
(
|
|
1080
|
+
])) : (s(), o("g", zl, [
|
|
1081
|
+
(s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
|
|
1082
1082
|
String(t.text).includes(`
|
|
1083
|
-
`) ? (
|
|
1083
|
+
`) ? (s(), o("text", {
|
|
1084
1084
|
key: l + "-multi",
|
|
1085
1085
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1086
1086
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1101,7 +1101,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1101
1101
|
y: 0
|
|
1102
1102
|
}),
|
|
1103
1103
|
onClick: () => xe(t, l)
|
|
1104
|
-
}, null, 8, Sl)) : (
|
|
1104
|
+
}, null, 8, Sl)) : (s(), o("text", {
|
|
1105
1105
|
class: "vue-data-ui-time-label",
|
|
1106
1106
|
key: l,
|
|
1107
1107
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1115,14 +1115,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1115
1115
|
]))), 256))
|
|
1116
1116
|
]))
|
|
1117
1117
|
], 512)) : y("", !0),
|
|
1118
|
-
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" ? (s(), o("g", {
|
|
1119
1119
|
key: 15,
|
|
1120
1120
|
ref_key: "timeLabelsEls",
|
|
1121
1121
|
ref: Y
|
|
1122
1122
|
}, [
|
|
1123
|
-
a.$slots["time-label"] ? (
|
|
1124
|
-
(
|
|
1125
|
-
L(a.$slots, "time-label",
|
|
1123
|
+
a.$slots["time-label"] ? (s(), o("g", _l, [
|
|
1124
|
+
(s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
|
|
1125
|
+
L(a.$slots, "time-label", De({ ref_for: !0 }, {
|
|
1126
1126
|
x: n.value.left - 8,
|
|
1127
1127
|
y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1128
1128
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1134,10 +1134,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1134
1134
|
show: !0
|
|
1135
1135
|
}), void 0, !0)
|
|
1136
1136
|
]))), 256))
|
|
1137
|
-
])) : (
|
|
1138
|
-
(
|
|
1137
|
+
])) : (s(), o("g", $l, [
|
|
1138
|
+
(s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
|
|
1139
1139
|
String(t.text).includes(`
|
|
1140
|
-
`) ? (
|
|
1140
|
+
`) ? (s(), o("text", {
|
|
1141
1141
|
key: 1,
|
|
1142
1142
|
"text-anchor": "end",
|
|
1143
1143
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1154,7 +1154,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1154
1154
|
x: n.value.left - 8,
|
|
1155
1155
|
y: 0
|
|
1156
1156
|
})
|
|
1157
|
-
}, null, 8, Ml)) : (
|
|
1157
|
+
}, null, 8, Ml)) : (s(), o("text", {
|
|
1158
1158
|
key: 0,
|
|
1159
1159
|
"text-anchor": "end",
|
|
1160
1160
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1170,35 +1170,35 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1170
1170
|
]))), 256))
|
|
1171
1171
|
]))
|
|
1172
1172
|
], 512)) : y("", !0),
|
|
1173
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (
|
|
1173
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, l) => (s(), o("rect", {
|
|
1174
1174
|
x: n.value.left + l * d.value,
|
|
1175
1175
|
y: n.value.top,
|
|
1176
1176
|
width: d.value,
|
|
1177
1177
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1178
1178
|
onClick: (c) => ht(l),
|
|
1179
1179
|
onMouseenter: (c) => vt(l),
|
|
1180
|
-
onMouseleave:
|
|
1181
|
-
|
|
1180
|
+
onMouseleave: r[0] || (r[0] = (c) => {
|
|
1181
|
+
re.value = null, ne.value = !1;
|
|
1182
1182
|
}),
|
|
1183
|
-
fill: l ===
|
|
1183
|
+
fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1184
1184
|
style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1185
1185
|
}, null, 44, Al))), 256)) : y("", !0),
|
|
1186
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (
|
|
1186
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, l) => (s(), o("rect", {
|
|
1187
1187
|
x: n.value.left,
|
|
1188
1188
|
y: n.value.top + l * d.value,
|
|
1189
1189
|
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1190
1190
|
height: d.value,
|
|
1191
1191
|
onClick: (c) => ht(l),
|
|
1192
1192
|
onMouseenter: (c) => vt(l),
|
|
1193
|
-
onMouseleave:
|
|
1194
|
-
|
|
1193
|
+
onMouseleave: r[1] || (r[1] = (c) => {
|
|
1194
|
+
re.value = null, ne.value = !1;
|
|
1195
1195
|
}),
|
|
1196
|
-
fill: l ===
|
|
1196
|
+
fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1197
1197
|
style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1198
1198
|
}, null, 44, Nl))), 256)) : y("", !0),
|
|
1199
1199
|
L(a.$slots, "svg", U(H({ ...n.value })), void 0, !0)
|
|
1200
1200
|
], 14, Ga)),
|
|
1201
|
-
a.$slots.watermark ? (
|
|
1201
|
+
a.$slots.watermark ? (s(), o("div", Il, [
|
|
1202
1202
|
L(a.$slots, "watermark", U(H({ isPrinting: v(at) || v(lt) })), void 0, !0)
|
|
1203
1203
|
])) : y("", !0),
|
|
1204
1204
|
Q("div", {
|
|
@@ -1207,7 +1207,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1207
1207
|
style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1208
1208
|
"data-dom-to-png-ignore": ""
|
|
1209
1209
|
}, [
|
|
1210
|
-
e.value.style.chart.zoom.show &&
|
|
1210
|
+
e.value.style.chart.zoom.show && D.value > 1 ? (s(), K(Ea, {
|
|
1211
1211
|
ref_key: "slicerComponent",
|
|
1212
1212
|
ref: qe,
|
|
1213
1213
|
key: `slicer_${Ge.value}`,
|
|
@@ -1225,9 +1225,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1225
1225
|
valueStart: h.value.start,
|
|
1226
1226
|
valueEnd: h.value.end,
|
|
1227
1227
|
start: h.value.start,
|
|
1228
|
-
"onUpdate:start":
|
|
1228
|
+
"onUpdate:start": r[2] || (r[2] = (t) => h.value.start = t),
|
|
1229
1229
|
end: h.value.end,
|
|
1230
|
-
"onUpdate:end":
|
|
1230
|
+
"onUpdate:end": r[3] || (r[3] = (t) => h.value.end = t),
|
|
1231
1231
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1232
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)),
|
|
1233
1233
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
@@ -1254,7 +1254,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1254
1254
|
parent: P.value,
|
|
1255
1255
|
content: Me.value,
|
|
1256
1256
|
isFullscreen: ue.value,
|
|
1257
|
-
isCustom: v(Ot)(e.value.style.chart.tooltip.customFormat)
|
|
1257
|
+
isCustom: v(Ot)(e.value.style.chart.tooltip.customFormat),
|
|
1258
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1259
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1258
1260
|
}, {
|
|
1259
1261
|
"tooltip-before": C(() => [
|
|
1260
1262
|
L(a.$slots, "tooltip-before", U(H({ ...Te.value })), void 0, !0)
|
|
@@ -1263,16 +1265,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1263
1265
|
L(a.$slots, "tooltip-after", U(H({ ...Te.value })), void 0, !0)
|
|
1264
1266
|
]),
|
|
1265
1267
|
_: 3
|
|
1266
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1268
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1267
1269
|
Q("div", {
|
|
1268
1270
|
ref_key: "chartLegend",
|
|
1269
1271
|
ref: We
|
|
1270
1272
|
}, [
|
|
1271
|
-
e.value.style.chart.legend.show && ie.value ? (
|
|
1273
|
+
e.value.style.chart.legend.show && ie.value ? (s(), K(Va, {
|
|
1272
1274
|
key: 0,
|
|
1273
1275
|
legendSet: pt.value,
|
|
1274
|
-
config:
|
|
1275
|
-
onClickMarker:
|
|
1276
|
+
config: ra.value,
|
|
1277
|
+
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1276
1278
|
}, $t({
|
|
1277
1279
|
item: C(({ legend: t }) => [
|
|
1278
1280
|
Q("div", {
|
|
@@ -1285,7 +1287,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1285
1287
|
a.$slots.pattern ? {
|
|
1286
1288
|
name: "legend-pattern",
|
|
1287
1289
|
fn: C(({ legend: t, index: l }) => [
|
|
1288
|
-
we(
|
|
1290
|
+
we(Da, {
|
|
1289
1291
|
shape: t.shape,
|
|
1290
1292
|
radius: 30,
|
|
1291
1293
|
stroke: "none",
|
|
@@ -1300,7 +1302,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1300
1302
|
legend: pt.value
|
|
1301
1303
|
}, void 0, !0)
|
|
1302
1304
|
], 512),
|
|
1303
|
-
a.$slots.source ? (
|
|
1305
|
+
a.$slots.source ? (s(), o("div", {
|
|
1304
1306
|
key: 4,
|
|
1305
1307
|
ref_key: "source",
|
|
1306
1308
|
ref: Xe,
|
|
@@ -1308,7 +1310,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1308
1310
|
}, [
|
|
1309
1311
|
L(a.$slots, "source", {}, void 0, !0)
|
|
1310
1312
|
], 512)) : y("", !0),
|
|
1311
|
-
h.value.end - h.value.start < 200 ? (
|
|
1313
|
+
h.value.end - h.value.start < 200 ? (s(), K(v(Ft), {
|
|
1312
1314
|
key: 5,
|
|
1313
1315
|
hideDetails: "",
|
|
1314
1316
|
config: {
|
|
@@ -1325,13 +1327,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1325
1327
|
}
|
|
1326
1328
|
}, {
|
|
1327
1329
|
content: C(() => [
|
|
1328
|
-
we(v(
|
|
1330
|
+
we(v(Dt), {
|
|
1329
1331
|
colNames: me.value.colNames,
|
|
1330
1332
|
head: me.value.head,
|
|
1331
1333
|
body: me.value.body,
|
|
1332
1334
|
config: me.value.config,
|
|
1333
1335
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1334
|
-
onClose:
|
|
1336
|
+
onClose: r[5] || (r[5] = (t) => z.value.showTable = !1)
|
|
1335
1337
|
}, {
|
|
1336
1338
|
th: C(({ th: t }) => [
|
|
1337
1339
|
Q("div", { innerHTML: t }, null, 8, Ol)
|
|
@@ -1349,10 +1351,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
|
|
|
1349
1351
|
]),
|
|
1350
1352
|
_: 1
|
|
1351
1353
|
}, 8, ["config"])) : y("", !0),
|
|
1352
|
-
v(ce) ? (
|
|
1354
|
+
v(ce) ? (s(), K(Wa, { key: 6 })) : y("", !0)
|
|
1353
1355
|
], 46, Xa));
|
|
1354
1356
|
}
|
|
1355
|
-
}, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-
|
|
1357
|
+
}, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-eeccc9b1"]]);
|
|
1356
1358
|
export {
|
|
1357
1359
|
jl as default
|
|
1358
1360
|
};
|