vue-data-ui 2.12.7-beta.0 → 2.12.7-beta.1
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-CmqjRRUl.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-CKbomZCX.js} +2 -2
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-F4TctKaQ.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-Y5HbiUZU.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-DtTYopxf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-PC9Yu1K_.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-DaWGaZxE.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-C-CpE0NC.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-B6kIkp2s.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-DcdMxgqn.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-Bc66VstS.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B07vY6jm.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-C8X2STEg.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-BHEd2dgu.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-C8URL2IU.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-CriyJ0Da.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BwgozppD.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-C20X1YRt.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-B264jwvu.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-ECSEPy9m.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-BxjeL4B6.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-CJNnQbPC.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-0RLVrL7y.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-BIFf4SLq.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-mc_-1JSs.js} +7 -7
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-D50S44wU.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-CxDTjjYn.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-DeC0U017.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-n0MW2u-q.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-AYMCSEtU.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-Ckz1h7XW.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-m0SgFsTu.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-BrcF_YLL.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-DiVxDYiV.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-BCUC8QED.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-DrrjD9S1.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-8RTss1yH.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-CmPLnisN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-CdM3bVZs.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-C-lgCI6O.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-Dq94lb99.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-DsKddA_I.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-CVR7NvJ_.js} +116 -115
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-B0soMLZ5.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-Bq4_NUfW.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-CG3Pn3Zg.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend--6lA4742.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-BXx7Vglf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-zM4_Tgqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BDNrZbWN.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-CzzyDmYJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-tBSUQ_09.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-BriZOfj6.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-DzYyFp3o.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-COKfg2KT.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D7C5AiCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-CDG6vSMm.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-DOoO0CVB.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-BSPIy1A3.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DsMmxgin.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-B2_ZHuyv.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-YhkwHcUX.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-CWHJwyyL.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BLgEqHRF.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-BQelvSLD.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-D1luVUXJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-C7Pu9RFN.js} +7 -7
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { useCssVars as _t, defineAsyncComponent as
|
|
2
|
-
import { u as Lt, c as Nt, t as Pt, p as
|
|
1
|
+
import { useCssVars as _t, defineAsyncComponent as H, useSlots as $t, computed as m, ref as d, watch as Xe, shallowRef as He, onMounted as We, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as B, createBlock as R, createCommentVNode as p, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
|
|
2
|
+
import { u as Lt, c as Nt, t as Pt, p as D, a as St, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-BHEd2dgu.js";
|
|
3
3
|
import { t as Bt, u as Rt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Dt } from "./usePrinter-
|
|
4
|
+
import { u as je } from "./useNestedProp-CZztHZIm.js";
|
|
5
|
+
import { u as Dt } from "./usePrinter-C8URL2IU.js";
|
|
6
6
|
import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xt from "./vue-ui-accordion-
|
|
9
|
-
import
|
|
10
|
-
import Ht from "./Title-
|
|
8
|
+
import Xt from "./vue-ui-accordion-DntThSTF.js";
|
|
9
|
+
import qe from "./Legend-DtTYopxf.js";
|
|
10
|
+
import Ht from "./Title-Bc66VstS.js";
|
|
11
|
+
import Ye from "./Shape-B6kIkp2s.js";
|
|
11
12
|
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
13
|
const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], Zt = { key: 1 }, el = ["x", "y", "width", "height", "fill", "rx"], tl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], al = ["x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["y", "width", "height", "fill", "onMouseenter"], dl = {
|
|
13
14
|
key: 6,
|
|
@@ -31,76 +32,76 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
31
32
|
emits: ["selectLegend"],
|
|
32
33
|
setup(Ke, { expose: Je, emit: Qe }) {
|
|
33
34
|
_t((l) => ({
|
|
34
|
-
|
|
35
|
+
91644906: l.tdo
|
|
35
36
|
}));
|
|
36
|
-
const Ze =
|
|
37
|
-
get: () =>
|
|
37
|
+
const Ze = H(() => import("./BaseIcon-DhWmrDAn.js")), et = H(() => import("./PackageVersion-DaWGaZxE.js")), tt = H(() => import("./PenAndPaper-C-CpE0NC.js")), lt = H(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), at = H(() => import("./Tooltip-B07vY6jm.js")), ot = H(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), fe = d(0), Y = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), it = Qe, e = m({
|
|
38
|
+
get: () => Ce(),
|
|
38
39
|
set: (l) => l
|
|
39
|
-
}), { userOptionsVisible: de, setUserOptionsVisibility:
|
|
40
|
-
function
|
|
41
|
-
const l =
|
|
40
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: e.value }), { svgRef: xe } = Ut({ config: e.value.style.chart.title });
|
|
41
|
+
function Ce() {
|
|
42
|
+
const l = je({
|
|
42
43
|
userConfig: T.config,
|
|
43
44
|
defaultConfig: nt
|
|
44
45
|
});
|
|
45
46
|
return l.theme ? {
|
|
46
|
-
...
|
|
47
|
+
...je({
|
|
47
48
|
userConfig: St.vue_ui_vertical_bar[l.theme] || T.config,
|
|
48
49
|
defaultConfig: l
|
|
49
50
|
}),
|
|
50
|
-
customPalette: Pt[l.theme] ||
|
|
51
|
+
customPalette: Pt[l.theme] || D
|
|
51
52
|
} : l;
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
-
e.value =
|
|
55
|
-
}, { deep: !0 }),
|
|
56
|
-
const { isPrinting:
|
|
54
|
+
Xe(() => T.config, (l) => {
|
|
55
|
+
e.value = Ce(), de.value = !e.value.userOptions.showOnChartHover, Oe(), _e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
56
|
+
}, { deep: !0 }), Xe(() => T.dataset, le, { deep: !0 });
|
|
57
|
+
const { isPrinting: Te, isImaging: Le, generatePdf: Ne, generateImage: Pe } = Dt({
|
|
57
58
|
elementId: `vue-ui-vertical-bar_${C.value}`,
|
|
58
59
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
59
60
|
options: e.value.userOptions.print
|
|
60
|
-
}), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
}), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = m(() => Vt(e.value.customPalette)), Ve = d(null), Ie = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = He(null), U = He(null);
|
|
62
|
+
We(() => {
|
|
63
|
+
Oe();
|
|
63
64
|
});
|
|
64
|
-
function
|
|
65
|
-
if (
|
|
65
|
+
function Oe() {
|
|
66
|
+
if (Ge(T.dataset) && Z({
|
|
66
67
|
componentName: "VueUiVerticalBar",
|
|
67
68
|
type: "dataset"
|
|
68
69
|
}), te.value = T.dataset.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0), ct(), e.value.responsive) {
|
|
69
70
|
const l = Bt(() => {
|
|
70
71
|
const { width: a, height: t } = Rt({
|
|
71
72
|
chart: Y.value,
|
|
72
|
-
title: e.value.style.chart.title.text ?
|
|
73
|
+
title: e.value.style.chart.title.text ? be.value : null,
|
|
73
74
|
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
74
|
-
source:
|
|
75
|
-
noTitle:
|
|
75
|
+
source: me.value,
|
|
76
|
+
noTitle: ke.value
|
|
76
77
|
});
|
|
77
78
|
requestAnimationFrame(() => {
|
|
78
|
-
|
|
79
|
+
ze.value = a, v.value = t / te.value - g.value * 2;
|
|
79
80
|
});
|
|
80
81
|
});
|
|
81
|
-
I.value && (
|
|
82
|
+
I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect()), I.value = new ResizeObserver(l), U.value = Y.value.parentNode, I.value.observe(U.value);
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
wt(() => {
|
|
85
|
-
I.value && (
|
|
86
|
+
I.value && (U.value && I.value.unobserve(U.value), I.value.disconnect());
|
|
86
87
|
});
|
|
87
88
|
function ct() {
|
|
88
89
|
new ResizeObserver((a) => {
|
|
89
90
|
a.forEach((t) => {
|
|
90
|
-
|
|
91
|
+
Ie.value = t.contentRect.width < vt.value;
|
|
91
92
|
});
|
|
92
|
-
}).observe(
|
|
93
|
+
}).observe(Ve.value);
|
|
93
94
|
}
|
|
94
95
|
const $ = d({
|
|
95
96
|
showTable: e.value.table.show,
|
|
96
97
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
97
98
|
showTooltip: e.value.style.chart.tooltip.show
|
|
98
|
-
}),
|
|
99
|
+
}), Fe = m(() => $.value.sortDesc), F = m(() => (T.dataset.forEach((l, a) => {
|
|
99
100
|
!l.value && !l.children && Z({
|
|
100
101
|
componentName: "VueUiVerticalBar",
|
|
101
102
|
type: "datasetAttributeEmpty",
|
|
102
103
|
property: `value (index ${a})`
|
|
103
|
-
}), l.children && (
|
|
104
|
+
}), l.children && (Ge(l.children) ? Z({
|
|
104
105
|
componentName: "VueUiVerticalBar",
|
|
105
106
|
type: "datasetAttributeEmpty",
|
|
106
107
|
property: `children (index ${a})`
|
|
@@ -127,8 +128,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
127
128
|
isChild: !1,
|
|
128
129
|
segregate: () => K(t),
|
|
129
130
|
isSegregated: P.value.includes(t),
|
|
130
|
-
color: ye(l.color) ||
|
|
131
|
-
children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (x, V) =>
|
|
131
|
+
color: ye(l.color) || Se.value[a] || D[a] || D[a % D.length],
|
|
132
|
+
children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (x, V) => Fe.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
|
|
132
133
|
...x,
|
|
133
134
|
value: N(Math.abs(x.value)),
|
|
134
135
|
absoluteIndex: a,
|
|
@@ -140,22 +141,22 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
140
141
|
parentSign: f,
|
|
141
142
|
id: `vertical_child_${a}_${V}_${C.value}`,
|
|
142
143
|
childIndex: V,
|
|
143
|
-
color: ye(x.color) || ye(l.color) ||
|
|
144
|
+
color: ye(x.color) || ye(l.color) || Se.value[a] || D[a] || D[a % D.length]
|
|
144
145
|
})).map((x, V) => ({
|
|
145
146
|
...x,
|
|
146
147
|
isFirstChild: V === 0,
|
|
147
148
|
isLastChild: V === l.children.length - 1
|
|
148
149
|
}))
|
|
149
150
|
};
|
|
150
|
-
}).toSorted(ae.value ? () => 0 : (l, a) =>
|
|
151
|
+
}).toSorted(ae.value ? () => 0 : (l, a) => Fe.value ? a.value - l.value : l.value - a.value))), Me = m(() => ({
|
|
151
152
|
cy: "vertical-bar-div-legend",
|
|
152
153
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
153
154
|
color: e.value.style.chart.legend.color,
|
|
154
155
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
155
156
|
paddingBottom: 12,
|
|
156
157
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
157
|
-
})), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), ht = m(() => (v.value + g.value) * te.value),
|
|
158
|
-
width:
|
|
158
|
+
})), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), ht = m(() => (v.value + g.value) * te.value), ze = d(512), y = m(() => ({
|
|
159
|
+
width: ze.value,
|
|
159
160
|
height: ht.value,
|
|
160
161
|
padding: {
|
|
161
162
|
top: 12,
|
|
@@ -163,7 +164,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
163
164
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
164
165
|
bottom: 12
|
|
165
166
|
}
|
|
166
|
-
})),
|
|
167
|
+
})), s = m(() => ({
|
|
167
168
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
168
169
|
top: y.value.padding.top,
|
|
169
170
|
left: y.value.padding.left,
|
|
@@ -179,8 +180,8 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
179
180
|
P.value.includes(l) ? P.value = P.value.filter((a) => a !== l) : P.value.push(l), le(), it("selectLegend", M.value);
|
|
180
181
|
}
|
|
181
182
|
const M = m(() => F.value.filter((l) => !P.value.includes(l.id))), S = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
|
|
182
|
-
function
|
|
183
|
-
return a ?
|
|
183
|
+
function Ae(l, a = !1, t = 0) {
|
|
184
|
+
return a ? E({
|
|
184
185
|
v: N(Math.abs(l) / S.value * 100),
|
|
185
186
|
s: "%",
|
|
186
187
|
r: t
|
|
@@ -189,18 +190,18 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
189
190
|
const z = m(() => M.value.flatMap((l) => l.hasChildren ? l.children : l)), A = m(() => z.value.map((l) => l.sign).includes(-1)), pt = m(() => Math.max(...M.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
|
|
190
191
|
function w(l) {
|
|
191
192
|
const a = l / pt.value;
|
|
192
|
-
return
|
|
193
|
+
return s.value.width / (A.value ? 2 : 1) * a;
|
|
193
194
|
}
|
|
194
195
|
function yt(l) {
|
|
195
|
-
return w(l) +
|
|
196
|
+
return w(l) + s.value.left;
|
|
196
197
|
}
|
|
197
198
|
function J(l, a) {
|
|
198
|
-
const t = M.value.find((f) => f.id === l.parentId), o =
|
|
199
|
+
const t = M.value.find((f) => f.id === l.parentId), o = s.value.top + (g.value + v.value) * a, _ = t.children.length * (g.value + v.value);
|
|
199
200
|
return {
|
|
200
201
|
y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
201
202
|
name: t.name,
|
|
202
203
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
203
|
-
percentageToTotal: isNaN(t.value / S.value) ? "" :
|
|
204
|
+
percentageToTotal: isNaN(t.value / S.value) ? "" : Ae(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
204
205
|
sign: t.sign
|
|
205
206
|
};
|
|
206
207
|
}
|
|
@@ -233,37 +234,37 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
233
234
|
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
|
|
234
235
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
235
236
|
l.sign === 1 ? l.value : -l.value,
|
|
236
|
-
|
|
237
|
+
E({
|
|
237
238
|
p: e.value.style.chart.tooltip.prefix,
|
|
238
239
|
v: l.sign === 1 ? l.value : -l.value,
|
|
239
240
|
s: e.value.style.chart.tooltip.suffix,
|
|
240
241
|
r: e.value.style.chart.tooltip.roundingValue
|
|
241
242
|
}),
|
|
242
243
|
{ datapoint: l, seriesIndex: a }
|
|
243
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
244
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${E({
|
|
244
245
|
v: Math.abs(l.value) / S.value * 100,
|
|
245
246
|
s: "%",
|
|
246
247
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
247
|
-
})}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
248
|
+
})}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${E({
|
|
248
249
|
v: Math.abs(l.value) / Math.abs(l.parentValue) * 100,
|
|
249
250
|
s: "%",
|
|
250
251
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
251
252
|
})}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function Be(l, a, t, o) {
|
|
254
255
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
255
256
|
return "";
|
|
256
257
|
const _ = ne(
|
|
257
258
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
258
259
|
N(o === -1 && l >= 0 ? -l : l),
|
|
259
|
-
|
|
260
|
+
E({
|
|
260
261
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
261
262
|
v: N(o === -1 && l >= 0 ? -l : l),
|
|
262
263
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
263
264
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
264
265
|
}),
|
|
265
266
|
{ datapoint: a, seriesIndex: t }
|
|
266
|
-
), f = `(${
|
|
267
|
+
), f = `(${Ae(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
267
268
|
return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
|
|
268
269
|
}
|
|
269
270
|
const L = m(() => {
|
|
@@ -305,7 +306,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
305
306
|
});
|
|
306
307
|
return { head: l, body: a };
|
|
307
308
|
});
|
|
308
|
-
function
|
|
309
|
+
function Re() {
|
|
309
310
|
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = L.value.head, t = L.value.body.map((f) => [
|
|
310
311
|
f.parentName,
|
|
311
312
|
f.parentValue,
|
|
@@ -317,11 +318,11 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
317
318
|
]), o = l.concat([a]).concat(t), _ = Ft(o);
|
|
318
319
|
Mt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
319
320
|
}
|
|
320
|
-
const
|
|
321
|
+
const X = d(!1);
|
|
321
322
|
function bt(l) {
|
|
322
|
-
|
|
323
|
+
X.value = l, fe.value += 1;
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function De() {
|
|
325
326
|
$.value.showTable = !$.value.showTable;
|
|
326
327
|
}
|
|
327
328
|
const mt = d({
|
|
@@ -329,7 +330,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
329
330
|
asc: 1,
|
|
330
331
|
desc: 2
|
|
331
332
|
}), O = d(0), ae = d(!1);
|
|
332
|
-
|
|
333
|
+
We(() => {
|
|
333
334
|
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
|
|
334
335
|
componentName: "VueUiVerticalBar",
|
|
335
336
|
type: "attributeWrongValue",
|
|
@@ -340,10 +341,10 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
340
341
|
function kt() {
|
|
341
342
|
O.value += 1, O.value > 2 && (O.value = 0);
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
+
function Ee() {
|
|
344
345
|
kt(), $.value.sortDesc = O.value === 2, ae.value = O.value === 0, le();
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function Ue() {
|
|
347
348
|
$.value.showTooltip = !$.value.showTooltip;
|
|
348
349
|
}
|
|
349
350
|
const oe = d(!1);
|
|
@@ -353,25 +354,25 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
353
354
|
return Je({
|
|
354
355
|
getData: gt,
|
|
355
356
|
recalculateHeight: le,
|
|
356
|
-
generatePdf:
|
|
357
|
-
generateCsv:
|
|
358
|
-
generateImage:
|
|
359
|
-
toggleTable:
|
|
360
|
-
toggleSort:
|
|
361
|
-
toggleTooltip:
|
|
357
|
+
generatePdf: Ne,
|
|
358
|
+
generateCsv: Re,
|
|
359
|
+
generateImage: Pe,
|
|
360
|
+
toggleTable: De,
|
|
361
|
+
toggleSort: Ee,
|
|
362
|
+
toggleTooltip: Ue,
|
|
362
363
|
toggleAnnotator: he
|
|
363
364
|
}), (l, a) => (u(), i("div", {
|
|
364
|
-
class:
|
|
365
|
+
class: B(`vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
365
366
|
ref_key: "verticalBarChart",
|
|
366
367
|
ref: Y,
|
|
367
368
|
id: `vue-ui-vertical-bar_${C.value}`,
|
|
368
369
|
style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
369
|
-
onMouseenter: a[5] || (a[5] = () =>
|
|
370
|
-
onMouseleave: a[6] || (a[6] = () =>
|
|
370
|
+
onMouseenter: a[5] || (a[5] = () => r($e)(!0)),
|
|
371
|
+
onMouseleave: a[6] || (a[6] = () => r($e)(!1))
|
|
371
372
|
}, [
|
|
372
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
373
|
+
e.value.userOptions.buttons.annotator ? (u(), R(r(tt), {
|
|
373
374
|
key: 0,
|
|
374
|
-
svgRef:
|
|
375
|
+
svgRef: r(xe),
|
|
375
376
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
376
377
|
color: e.value.style.chart.color,
|
|
377
378
|
active: oe.value,
|
|
@@ -380,18 +381,18 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
380
381
|
dt.value ? (u(), i("div", {
|
|
381
382
|
key: 1,
|
|
382
383
|
ref_key: "noTitle",
|
|
383
|
-
ref:
|
|
384
|
+
ref: ke,
|
|
384
385
|
class: "vue-data-ui-no-title-space",
|
|
385
386
|
style: "height:36px; width: 100%;background:transparent"
|
|
386
387
|
}, null, 512)) : p("", !0),
|
|
387
388
|
e.value.style.chart.title.text ? (u(), i("div", {
|
|
388
389
|
key: 2,
|
|
389
390
|
ref_key: "chartTitle",
|
|
390
|
-
ref:
|
|
391
|
+
ref: be,
|
|
391
392
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
392
393
|
}, [
|
|
393
|
-
(u(),
|
|
394
|
-
key: `title_${
|
|
394
|
+
(u(), R(Ht, {
|
|
395
|
+
key: `title_${_e.value}`,
|
|
395
396
|
config: {
|
|
396
397
|
title: {
|
|
397
398
|
cy: "vertical-bar-div-title",
|
|
@@ -404,14 +405,14 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
404
405
|
}
|
|
405
406
|
}, null, 8, ["config"]))
|
|
406
407
|
], 512)) : p("", !0),
|
|
407
|
-
e.value.userOptions.show && ee.value && (
|
|
408
|
+
e.value.userOptions.show && ee.value && (r(we) || r(de)) ? (u(), R(r(ot), {
|
|
408
409
|
ref_key: "details",
|
|
409
410
|
ref: st,
|
|
410
|
-
key: `user_options_${
|
|
411
|
+
key: `user_options_${fe.value}`,
|
|
411
412
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
412
413
|
color: e.value.style.chart.color,
|
|
413
|
-
isImaging:
|
|
414
|
-
isPrinting:
|
|
414
|
+
isImaging: r(Le),
|
|
415
|
+
isPrinting: r(Te),
|
|
415
416
|
uid: C.value,
|
|
416
417
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
417
418
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -420,7 +421,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
420
421
|
hasTable: e.value.userOptions.buttons.table,
|
|
421
422
|
hasSort: e.value.userOptions.buttons.sort,
|
|
422
423
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
423
|
-
isFullscreen:
|
|
424
|
+
isFullscreen: X.value,
|
|
424
425
|
isTooltip: $.value.showTooltip,
|
|
425
426
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
426
427
|
chartElement: Y.value,
|
|
@@ -428,15 +429,15 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
428
429
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
429
430
|
isAnnotation: oe.value,
|
|
430
431
|
onToggleFullscreen: bt,
|
|
431
|
-
onGeneratePdf:
|
|
432
|
-
onGenerateCsv:
|
|
433
|
-
onGenerateImage:
|
|
434
|
-
onToggleTable:
|
|
435
|
-
onToggleSort:
|
|
436
|
-
onToggleTooltip:
|
|
432
|
+
onGeneratePdf: r(Ne),
|
|
433
|
+
onGenerateCsv: Re,
|
|
434
|
+
onGenerateImage: r(Pe),
|
|
435
|
+
onToggleTable: De,
|
|
436
|
+
onToggleSort: Ee,
|
|
437
|
+
onToggleTooltip: Ue,
|
|
437
438
|
onToggleAnnotator: he,
|
|
438
439
|
style: c({
|
|
439
|
-
visibility:
|
|
440
|
+
visibility: r(we) ? r(de) ? "visible" : "hidden" : "visible"
|
|
440
441
|
})
|
|
441
442
|
}, pe({ _: 2 }, [
|
|
442
443
|
l.$slots.menuIcon ? {
|
|
@@ -515,20 +516,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
515
516
|
ref_key: "chartLegend",
|
|
516
517
|
ref: re
|
|
517
518
|
}, [
|
|
518
|
-
(u(),
|
|
519
|
+
(u(), R(qe, {
|
|
519
520
|
key: `legend_top_${ie.value}`,
|
|
520
521
|
legendSet: F.value,
|
|
521
|
-
config:
|
|
522
|
+
config: Me.value,
|
|
522
523
|
onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
|
|
523
524
|
}, pe({
|
|
524
525
|
item: k(({ legend: t, index: o }) => [
|
|
525
526
|
n("div", {
|
|
526
527
|
onClick: (_) => K(t.id),
|
|
527
528
|
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
528
|
-
}, h(t.name) + ": " + h(
|
|
529
|
+
}, h(t.name) + ": " + h(r(ne)(
|
|
529
530
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
530
531
|
t.value,
|
|
531
|
-
|
|
532
|
+
r(E)({
|
|
532
533
|
p: e.value.style.chart.legend.prefix,
|
|
533
534
|
v: t.value,
|
|
534
535
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -542,7 +543,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
542
543
|
l.$slots.pattern ? {
|
|
543
544
|
name: "legend-pattern",
|
|
544
545
|
fn: k(({ legend: t, index: o }) => [
|
|
545
|
-
Q(
|
|
546
|
+
Q(Ye, {
|
|
546
547
|
shape: t.shape,
|
|
547
548
|
radius: 30,
|
|
548
549
|
stroke: "none",
|
|
@@ -557,19 +558,19 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
557
558
|
ee.value ? (u(), i("svg", {
|
|
558
559
|
key: 5,
|
|
559
560
|
ref_key: "svgRef",
|
|
560
|
-
ref:
|
|
561
|
-
xmlns:
|
|
562
|
-
class:
|
|
563
|
-
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${
|
|
561
|
+
ref: xe,
|
|
562
|
+
xmlns: r(It),
|
|
563
|
+
class: B({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
564
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
564
565
|
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
565
566
|
}, [
|
|
566
|
-
Q(
|
|
567
|
+
Q(r(et)),
|
|
567
568
|
l.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
568
569
|
key: 0,
|
|
569
570
|
x: 0,
|
|
570
571
|
y: 0,
|
|
571
572
|
width: y.value.width <= 0 ? 10 : y.value.width,
|
|
572
|
-
height:
|
|
573
|
+
height: s.value.fullHeight <= 0 ? 10 : s.value.fullHeight,
|
|
573
574
|
style: {
|
|
574
575
|
pointerEvents: "none"
|
|
575
576
|
}
|
|
@@ -589,7 +590,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
589
590
|
}, null, 8, Jt),
|
|
590
591
|
n("stop", {
|
|
591
592
|
offset: "100%",
|
|
592
|
-
"stop-color":
|
|
593
|
+
"stop-color": r(ge)(r(Ot)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
593
594
|
}, null, 8, Qt)
|
|
594
595
|
], 8, Kt))), 256)),
|
|
595
596
|
l.$slots.pattern ? (u(), i("g", Zt, [
|
|
@@ -599,72 +600,72 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
599
600
|
])) : p("", !0),
|
|
600
601
|
(u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
|
|
601
602
|
n("rect", {
|
|
602
|
-
x:
|
|
603
|
-
y:
|
|
604
|
-
width:
|
|
603
|
+
x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
|
|
604
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
605
|
+
width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
|
|
605
606
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
606
607
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
607
608
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
608
|
-
class:
|
|
609
|
+
class: B({ animated: e.value.useCssAnimation })
|
|
609
610
|
}, null, 10, el)
|
|
610
611
|
]))), 256)),
|
|
611
612
|
(u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
|
|
612
613
|
n("rect", {
|
|
613
|
-
x:
|
|
614
|
-
y:
|
|
615
|
-
width:
|
|
614
|
+
x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
|
|
615
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
616
|
+
width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
|
|
616
617
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
617
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` :
|
|
618
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : r(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
618
619
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
619
620
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
620
621
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
621
|
-
class:
|
|
622
|
+
class: B({ animated: e.value.useCssAnimation })
|
|
622
623
|
}, null, 10, tl),
|
|
623
624
|
l.$slots.pattern ? (u(), i("rect", {
|
|
624
625
|
key: 0,
|
|
625
|
-
x:
|
|
626
|
-
y:
|
|
627
|
-
width:
|
|
626
|
+
x: r(N)(A.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : s.value.left),
|
|
627
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
628
|
+
width: r(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
|
|
628
629
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
629
630
|
fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
|
|
630
631
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
631
632
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
632
633
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
633
|
-
class:
|
|
634
|
+
class: B({ animated: e.value.useCssAnimation })
|
|
634
635
|
}, null, 10, ll)) : p("", !0),
|
|
635
636
|
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
|
|
636
637
|
key: 1,
|
|
637
638
|
x1: 0,
|
|
638
|
-
x2:
|
|
639
|
-
y1: v.value + g.value / 2 +
|
|
640
|
-
y2: v.value + g.value / 2 +
|
|
639
|
+
x2: s.value.left,
|
|
640
|
+
y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
641
|
+
y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
641
642
|
stroke: e.value.style.chart.layout.separators.color,
|
|
642
643
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
643
644
|
"stroke-linecap": "round"
|
|
644
645
|
}, null, 8, al)) : p("", !0),
|
|
645
646
|
A.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
|
|
646
647
|
key: 2,
|
|
647
|
-
x1:
|
|
648
|
-
x2:
|
|
649
|
-
y1:
|
|
650
|
-
y2:
|
|
648
|
+
x1: s.value.left + s.value.width / 2,
|
|
649
|
+
x2: s.value.left + s.value.width / 2,
|
|
650
|
+
y1: s.value.top,
|
|
651
|
+
y2: s.value.bottom,
|
|
651
652
|
stroke: e.value.style.chart.layout.separators.color,
|
|
652
653
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
653
654
|
"stroke-linecap": "round"
|
|
654
655
|
}, null, 8, ol)) : p("", !0),
|
|
655
656
|
n("text", {
|
|
656
|
-
x: A.value ?
|
|
657
|
-
y:
|
|
657
|
+
x: A.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : yt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
658
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
658
659
|
"text-anchor": !A.value || t.sign === -1 ? "start" : "end",
|
|
659
660
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
660
661
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
661
662
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
662
|
-
}, h(
|
|
663
|
+
}, h(Be(t.value, t, o, t.sign)), 9, nl),
|
|
663
664
|
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
|
|
664
665
|
key: 3,
|
|
665
666
|
"text-anchor": "end",
|
|
666
|
-
x:
|
|
667
|
-
y:
|
|
667
|
+
x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
668
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
668
669
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
669
670
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
670
671
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
@@ -686,13 +687,13 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
686
687
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
687
688
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
688
689
|
"text-anchor": "start"
|
|
689
|
-
}, h(
|
|
690
|
+
}, h(Be(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : p("", !0),
|
|
690
691
|
n("rect", {
|
|
691
692
|
x: 0,
|
|
692
|
-
y:
|
|
693
|
+
y: s.value.top + (g.value + v.value) * o - g.value / 2,
|
|
693
694
|
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
694
695
|
height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
|
|
695
|
-
fill: ve.value === t.id ?
|
|
696
|
+
fill: ve.value === t.id ? r(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
696
697
|
onMouseenter: (_) => ft(t, o),
|
|
697
698
|
onMouseleave: a[1] || (a[1] = (_) => {
|
|
698
699
|
rt.value = null, ue.value = !1, ve.value = null;
|
|
@@ -702,9 +703,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
702
703
|
b(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
703
704
|
], 14, qt)) : p("", !0),
|
|
704
705
|
l.$slots.watermark ? (u(), i("div", dl, [
|
|
705
|
-
b(l.$slots, "watermark", W(G({ isPrinting:
|
|
706
|
+
b(l.$slots, "watermark", W(G({ isPrinting: r(Te) || r(Le) })), void 0, !0)
|
|
706
707
|
])) : p("", !0),
|
|
707
|
-
ee.value ? p("", !0) : (u(),
|
|
708
|
+
ee.value ? p("", !0) : (u(), R(r(lt), {
|
|
708
709
|
key: 7,
|
|
709
710
|
config: {
|
|
710
711
|
type: "verticalBar",
|
|
@@ -724,20 +725,20 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
724
725
|
ref_key: "chartLegend",
|
|
725
726
|
ref: re
|
|
726
727
|
}, [
|
|
727
|
-
(u(),
|
|
728
|
+
(u(), R(qe, {
|
|
728
729
|
key: `legend_bottom_${ie.value}`,
|
|
729
730
|
legendSet: F.value,
|
|
730
|
-
config:
|
|
731
|
+
config: Me.value,
|
|
731
732
|
onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
|
|
732
733
|
}, pe({
|
|
733
734
|
item: k(({ legend: t, index: o }) => [
|
|
734
735
|
n("div", {
|
|
735
736
|
onClick: (_) => K(t.id),
|
|
736
737
|
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
737
|
-
}, h(t.name) + ": " + h(
|
|
738
|
+
}, h(t.name) + ": " + h(r(ne)(
|
|
738
739
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
739
740
|
t.value,
|
|
740
|
-
|
|
741
|
+
r(E)({
|
|
741
742
|
p: e.value.style.chart.legend.prefix,
|
|
742
743
|
v: t.value,
|
|
743
744
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -751,7 +752,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
751
752
|
l.$slots.pattern ? {
|
|
752
753
|
name: "legend-pattern",
|
|
753
754
|
fn: k(({ legend: t, index: o }) => [
|
|
754
|
-
Q(
|
|
755
|
+
Q(Ye, {
|
|
755
756
|
shape: t.shape,
|
|
756
757
|
radius: 30,
|
|
757
758
|
stroke: "none",
|
|
@@ -767,12 +768,12 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
767
768
|
l.$slots.source ? (u(), i("div", {
|
|
768
769
|
key: 9,
|
|
769
770
|
ref_key: "source",
|
|
770
|
-
ref:
|
|
771
|
+
ref: me,
|
|
771
772
|
dir: "auto"
|
|
772
773
|
}, [
|
|
773
774
|
b(l.$slots, "source", {}, void 0, !0)
|
|
774
775
|
], 512)) : p("", !0),
|
|
775
|
-
Q(
|
|
776
|
+
Q(r(at), {
|
|
776
777
|
show: $.value.showTooltip && ue.value && P.value.length < T.dataset.length,
|
|
777
778
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
778
779
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -785,7 +786,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
785
786
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
786
787
|
parent: Y.value,
|
|
787
788
|
content: se.value,
|
|
788
|
-
isFullscreen:
|
|
789
|
+
isFullscreen: X.value,
|
|
789
790
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
790
791
|
}, {
|
|
791
792
|
"tooltip-before": k(() => [
|
|
@@ -796,7 +797,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
796
797
|
]),
|
|
797
798
|
_: 3
|
|
798
799
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
799
|
-
ee.value ? (u(),
|
|
800
|
+
ee.value ? (u(), R(Xt, {
|
|
800
801
|
key: 10,
|
|
801
802
|
hideDetails: "",
|
|
802
803
|
config: {
|
|
@@ -815,7 +816,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
815
816
|
content: k(() => [
|
|
816
817
|
n("div", {
|
|
817
818
|
ref_key: "tableContainer",
|
|
818
|
-
ref:
|
|
819
|
+
ref: Ve,
|
|
819
820
|
class: "vue-ui-vertical-bar-table atom-data-table"
|
|
820
821
|
}, [
|
|
821
822
|
n("div", cl, [
|
|
@@ -826,7 +827,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
826
827
|
onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
|
|
827
828
|
onKeypress: a[4] || (a[4] = Ct((t) => $.value.showTable = !1, ["enter"]))
|
|
828
829
|
}, [
|
|
829
|
-
Q(
|
|
830
|
+
Q(r(Ze), {
|
|
830
831
|
name: "close",
|
|
831
832
|
stroke: e.value.table.th.color,
|
|
832
833
|
"stroke-width": 2
|
|
@@ -834,7 +835,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
834
835
|
], 36),
|
|
835
836
|
n("div", {
|
|
836
837
|
style: { width: "100%", "container-type": "inline-size" },
|
|
837
|
-
class:
|
|
838
|
+
class: B({ "vue-ui-responsive": Ie.value })
|
|
838
839
|
}, [
|
|
839
840
|
n("table", hl, [
|
|
840
841
|
n("caption", {
|
|
@@ -881,7 +882,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
881
882
|
]),
|
|
882
883
|
n("tbody", null, [
|
|
883
884
|
(u(!0), i(j, null, q(L.value.body, (t, o) => (u(), i("tr", {
|
|
884
|
-
class:
|
|
885
|
+
class: B({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
885
886
|
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
886
887
|
}, [
|
|
887
888
|
n("td", {
|
|
@@ -950,7 +951,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
950
951
|
}, 8, ["config"])) : p("", !0)
|
|
951
952
|
], 46, Gt));
|
|
952
953
|
}
|
|
953
|
-
},
|
|
954
|
+
}, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-b09dc7fe"]]);
|
|
954
955
|
export {
|
|
955
|
-
|
|
956
|
+
Xl as default
|
|
956
957
|
};
|