vue-data-ui 3.1.0 → 3.1.2
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-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
1
|
+
import { useCssVars as Xe, computed as h, defineAsyncComponent as x, ref as c, shallowRef as we, onMounted as We, onBeforeUnmount as Ye, watch as $e, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as T, normalizeClass as N, createBlock as I, createCommentVNode as b, createSlots as xe, withCtx as m, renderSlot as g, normalizeProps as G, guardReactiveProps as j, createVNode as Le, createElementVNode as C, mergeProps as H, Fragment as X, renderList as W, toDisplayString as U, resolveDynamicComponent as qe, createTextVNode as _e, nextTick as Je } from "vue";
|
|
2
|
+
import { u as Ke, c as Qe, o as Ze, f as Te, g as et, e as tt, l as at, k as Y, i as q, X as lt, F as st, E as te, b as ot, v as nt, w as ut } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as rt, u as it } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ct } from "./usePrinter-DDIKRiOp.js";
|
|
5
|
+
import { u as Ae } from "./useNestedProp-BSZCnuGl.js";
|
|
6
|
+
import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as dt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ht from "./img-DvuphHeJ.js";
|
|
9
|
+
import ft from "./Title-AGmmsSi_.js";
|
|
10
|
+
import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["id"], kt = ["stop-color"], Ct = ["stop-color"], wt = ["stop-color"], $t = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["points", "fill"], Tt = ["stroke", "stroke-width", "rx"], At = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], St = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
14
|
+
}, Dt = ["innerHTML"], zt = {
|
|
15
15
|
__name: "vue-ui-funnel",
|
|
16
16
|
props: {
|
|
17
17
|
config: {
|
|
@@ -27,22 +27,22 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
31
|
-
|
|
32
|
-
"
|
|
30
|
+
setup(Oe, { expose: Se }) {
|
|
31
|
+
Xe((t) => ({
|
|
32
|
+
"1f851877": Ge.value
|
|
33
33
|
}));
|
|
34
|
-
const
|
|
35
|
-
|
|
34
|
+
const De = x(() => import("./BaseIcon-BLg8FaQ2.js")), ze = x(() => import("./vue-ui-skeleton-CeyaKpZd.js")), Ne = x(() => import("./vue-ui-accordion-Cv747Pg6.js")), Ie = x(() => import("./DataTable-BRN1-1ob.js")), Pe = x(() => import("./UserOptions-DEFwuQIo.js")), Fe = x(() => import("./PenAndPaper-TgGWddgD.js")), Re = x(() => import("./PackageVersion-Jz9FlNXl.js")), Be = x(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_funnel: Me } = Ke(), y = Oe, w = c(null), P = c(Qe()), ae = c(0), le = c(0), se = c(0), oe = c(null), ne = c(null), ue = c(null), $ = we(null), A = we(null), L = c(!1), F = c(null), J = c(null), O = h(() => !!y.dataset && y.dataset.length);
|
|
35
|
+
We(re);
|
|
36
36
|
function re() {
|
|
37
|
-
if (
|
|
37
|
+
if (Ze(y.dataset) ? Te({
|
|
38
38
|
componentName: "VueUiFunnel",
|
|
39
39
|
type: "dataset"
|
|
40
40
|
}) : y.dataset.forEach((t, l) => {
|
|
41
|
-
|
|
41
|
+
et({
|
|
42
42
|
datasetObject: t,
|
|
43
43
|
requiredAttributes: ["name", "value"]
|
|
44
44
|
}).forEach((a) => {
|
|
45
|
-
|
|
45
|
+
O.value = !1, Te({
|
|
46
46
|
componentName: "VueUiFunnel",
|
|
47
47
|
type: "datasetSerieAttribute",
|
|
48
48
|
property: a,
|
|
@@ -50,96 +50,96 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
}), e.value.responsive) {
|
|
53
|
-
const t =
|
|
54
|
-
const { width: l, height: a } =
|
|
53
|
+
const t = rt(() => {
|
|
54
|
+
const { width: l, height: a } = it({
|
|
55
55
|
chart: w.value,
|
|
56
|
-
title: e.value.style.chart.title.text ?
|
|
57
|
-
source:
|
|
58
|
-
noTitle:
|
|
56
|
+
title: e.value.style.chart.title.text ? ue.value : null,
|
|
57
|
+
source: ne.value,
|
|
58
|
+
noTitle: oe.value
|
|
59
59
|
});
|
|
60
60
|
requestAnimationFrame(() => {
|
|
61
|
-
|
|
61
|
+
d.value.height = a, d.value.width = l, k.value = ge(), e.value.responsiveProportionalSizing ? (v.value.circles = te({
|
|
62
62
|
relator: Math.min(l, a),
|
|
63
63
|
adjuster: 600,
|
|
64
64
|
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
65
65
|
threshold: 10,
|
|
66
66
|
fallback: 10
|
|
67
|
-
}),
|
|
67
|
+
}), v.value.names = te({
|
|
68
68
|
relator: Math.min(l, a),
|
|
69
69
|
adjuster: 600,
|
|
70
70
|
source: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
71
71
|
threshold: 10,
|
|
72
72
|
fallback: 10
|
|
73
|
-
}),
|
|
73
|
+
}), v.value.values = te({
|
|
74
74
|
relator: Math.min(l, a),
|
|
75
75
|
adjuster: 600,
|
|
76
76
|
source: e.value.style.chart.bars.dataLabels.value.fontSize,
|
|
77
77
|
threshold: 10,
|
|
78
78
|
fallback: 10
|
|
79
|
-
})) : (
|
|
79
|
+
})) : (v.value.circles = e.value.style.chart.circles.dataLabels.fontSize, v.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, v.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
-
$.value && (
|
|
82
|
+
$.value && (A.value && $.value.unobserve(A.value), $.value.disconnect()), $.value = new ResizeObserver(t), A.value = w.value.parentNode, $.value.observe(A.value);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
$.value && (
|
|
85
|
+
Ye(() => {
|
|
86
|
+
$.value && (A.value && $.value.unobserve(A.value), $.value.disconnect());
|
|
87
87
|
});
|
|
88
|
-
function
|
|
89
|
-
const t =
|
|
88
|
+
function ie() {
|
|
89
|
+
const t = Ae({
|
|
90
90
|
userConfig: y.config,
|
|
91
|
-
defaultConfig:
|
|
91
|
+
defaultConfig: Me
|
|
92
92
|
});
|
|
93
93
|
return t.theme ? {
|
|
94
|
-
...
|
|
95
|
-
userConfig:
|
|
94
|
+
...Ae({
|
|
95
|
+
userConfig: ot.vue_ui_funnel[t.theme] || y.config,
|
|
96
96
|
defaultConfig: t
|
|
97
97
|
})
|
|
98
98
|
} : t;
|
|
99
99
|
}
|
|
100
|
-
const e =
|
|
101
|
-
get: () =>
|
|
100
|
+
const e = h({
|
|
101
|
+
get: () => ie(),
|
|
102
102
|
set: (t) => t
|
|
103
|
-
}), { userOptionsVisible:
|
|
104
|
-
|
|
105
|
-
e.value =
|
|
103
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: ce, keepUserOptionState: ve } = vt({ config: e.value }), { svgRef: de } = dt({ config: e.value.style.chart.title });
|
|
104
|
+
$e(() => y.config, (t) => {
|
|
105
|
+
e.value = ie(), K.value = !e.value.userOptions.showOnChartHover, re(), le.value += 1, se.value += 1, v.value.circles = e.value.style.chart.circles.dataLabels.fontSize, v.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, v.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, S.value.showTable = e.value.table.show;
|
|
106
106
|
}, { deep: !0 });
|
|
107
|
-
const { isPrinting:
|
|
108
|
-
elementId: `funnel_${
|
|
107
|
+
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: me } = ct({
|
|
108
|
+
elementId: `funnel_${P.value}`,
|
|
109
109
|
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
110
110
|
options: e.value.userOptions.print
|
|
111
|
-
}),
|
|
111
|
+
}), Ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), S = c({
|
|
112
112
|
showTable: e.value.table.show
|
|
113
|
-
}),
|
|
113
|
+
}), v = c({
|
|
114
114
|
circles: e.value.style.chart.circles.dataLabels.fontSize,
|
|
115
115
|
names: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
116
116
|
values: e.value.style.chart.bars.dataLabels.value.fontSize
|
|
117
|
-
}),
|
|
117
|
+
}), d = h({
|
|
118
118
|
get: () => ({
|
|
119
119
|
height: e.value.style.chart.height,
|
|
120
120
|
width: e.value.style.chart.width
|
|
121
121
|
}),
|
|
122
122
|
set: (t) => t
|
|
123
|
-
}), p =
|
|
123
|
+
}), p = h(() => O.value ? y.dataset.map((t, l) => ({
|
|
124
124
|
...t,
|
|
125
|
-
color: t.color ?
|
|
125
|
+
color: t.color ? tt(t.color) : at(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
|
|
126
126
|
})) : []);
|
|
127
127
|
setTimeout(() => {
|
|
128
128
|
L.value = !0;
|
|
129
129
|
}, p.value.length * 150);
|
|
130
|
-
function
|
|
130
|
+
function ge() {
|
|
131
131
|
const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
|
|
132
132
|
return {
|
|
133
133
|
left: t,
|
|
134
134
|
top: l,
|
|
135
|
-
right:
|
|
136
|
-
bottom:
|
|
137
|
-
width:
|
|
138
|
-
height:
|
|
135
|
+
right: d.value.width - e.value.style.chart.padding.right,
|
|
136
|
+
bottom: d.value.height - e.value.style.chart.padding.bottom,
|
|
137
|
+
width: d.value.width - t - e.value.style.chart.padding.right,
|
|
138
|
+
height: d.value.height - l - e.value.style.chart.padding.bottom
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
const k =
|
|
142
|
-
const a =
|
|
141
|
+
const k = c(ge()), D = h(() => k.value.height / y.dataset.length), _ = h(() => D.value * e.value.style.chart.bars.gapRatio), ye = h(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), u = h(() => p.value.map((t, l) => {
|
|
142
|
+
const a = D.value - _.value, o = k.value.top + _.value / 2 * l + (D.value - _.value / 2) * l + _.value / 2, f = t.value / p.value[0].value, r = (k.value.width - a - ye.value) * (t.value / p.value[0].value);
|
|
143
143
|
return {
|
|
144
144
|
...t,
|
|
145
145
|
cx: k.value.left + a / 2,
|
|
@@ -149,65 +149,65 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
149
149
|
height: Math.max(a, 0),
|
|
150
150
|
proportion: f,
|
|
151
151
|
r: Math.max(a / 2, 0),
|
|
152
|
-
width: Math.max(
|
|
153
|
-
x: k.value.left + a +
|
|
152
|
+
width: Math.max(r, 0),
|
|
153
|
+
x: k.value.left + a + ye.value,
|
|
154
154
|
y: o
|
|
155
155
|
};
|
|
156
|
-
})),
|
|
157
|
-
const t =
|
|
158
|
-
return `${
|
|
159
|
-
}),
|
|
160
|
-
x1:
|
|
161
|
-
y1:
|
|
162
|
-
x2:
|
|
163
|
-
y2:
|
|
164
|
-
})),
|
|
165
|
-
function
|
|
166
|
-
|
|
156
|
+
})), Ee = h(() => {
|
|
157
|
+
const t = u.value.map((l) => `${l.x + l.width},${l.y + (D.value - _.value) / 2}`);
|
|
158
|
+
return `${u.value[0].x},${u.value[0].y + (D.value - _.value) / 2} ${t.toString()} ${u.value.at(-1).x},${u.value.at(-1).y + (D.value - _.value) / 2}`;
|
|
159
|
+
}), Ve = h(() => ({
|
|
160
|
+
x1: u.value[0].cx,
|
|
161
|
+
y1: u.value[0].cy,
|
|
162
|
+
x2: u.value.at(-1).cx,
|
|
163
|
+
y2: u.value.at(-1).cy
|
|
164
|
+
})), z = c(!1);
|
|
165
|
+
function pe(t) {
|
|
166
|
+
z.value = t, ae.value += 1;
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
function
|
|
168
|
+
const Ge = h(() => `${p.value.length * 150}ms`), E = c(!1);
|
|
169
|
+
function Q() {
|
|
170
170
|
E.value = !E.value;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
|
|
172
|
+
function ke() {
|
|
173
|
+
S.value.showTable = !S.value.showTable;
|
|
174
174
|
}
|
|
175
|
-
const
|
|
175
|
+
const R = h(() => {
|
|
176
176
|
const t = p.value.map((a) => ({
|
|
177
177
|
name: a.name,
|
|
178
178
|
color: a.color
|
|
179
179
|
})), l = p.value.map((a) => a.value);
|
|
180
180
|
return { head: t, body: l };
|
|
181
|
-
}), V =
|
|
181
|
+
}), V = h(() => {
|
|
182
182
|
const t = [
|
|
183
183
|
e.value.table.columnNames.series,
|
|
184
184
|
e.value.table.columnNames.value,
|
|
185
185
|
e.value.table.columnNames.percentage
|
|
186
|
-
], l =
|
|
186
|
+
], l = R.value.head.map((f, r) => {
|
|
187
187
|
const M = Y(
|
|
188
188
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
189
|
-
|
|
189
|
+
R.value.body[r],
|
|
190
190
|
q({
|
|
191
191
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
192
|
-
v:
|
|
192
|
+
v: R.value.body[r],
|
|
193
193
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
194
194
|
r: e.value.table.td.roundingValue
|
|
195
195
|
}),
|
|
196
|
-
{ datapoint:
|
|
197
|
-
),
|
|
196
|
+
{ datapoint: u.value[r] }
|
|
197
|
+
), ee = Y(
|
|
198
198
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
199
|
-
|
|
199
|
+
u.value[r].proportion * 100,
|
|
200
200
|
q({
|
|
201
|
-
v:
|
|
201
|
+
v: u.value[r].proportion * 100,
|
|
202
202
|
s: "%",
|
|
203
203
|
r: e.value.table.td.roundingPercentage
|
|
204
204
|
}),
|
|
205
|
-
{ datapoint:
|
|
205
|
+
{ datapoint: u.value[r] }
|
|
206
206
|
);
|
|
207
207
|
return [
|
|
208
208
|
{ color: f.color, name: f.name },
|
|
209
209
|
M,
|
|
210
|
-
|
|
210
|
+
ee
|
|
211
211
|
];
|
|
212
212
|
}), a = {
|
|
213
213
|
th: {
|
|
@@ -233,40 +233,40 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
233
233
|
config: a
|
|
234
234
|
};
|
|
235
235
|
});
|
|
236
|
-
function
|
|
237
|
-
|
|
238
|
-
const l =
|
|
236
|
+
function Z(t = null) {
|
|
237
|
+
Je(() => {
|
|
238
|
+
const l = R.value.head.map((f, r) => [[
|
|
239
239
|
f.name
|
|
240
|
-
], [
|
|
241
|
-
t ? t(o) :
|
|
240
|
+
], [R.value.body[r]], [u.value[r].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = nt(a);
|
|
241
|
+
t ? t(o) : ut({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function je() {
|
|
245
245
|
return p.value;
|
|
246
246
|
}
|
|
247
|
-
async function
|
|
247
|
+
async function He({ scale: t = 2 } = {}) {
|
|
248
248
|
if (!w.value) return;
|
|
249
|
-
const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64:
|
|
249
|
+
const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: r } = await ht({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
250
250
|
return {
|
|
251
251
|
imageUri: f,
|
|
252
|
-
base64:
|
|
252
|
+
base64: r,
|
|
253
253
|
title: e.value.style.chart.title.text,
|
|
254
254
|
width: l,
|
|
255
255
|
height: a,
|
|
256
256
|
aspectRatio: o
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
const
|
|
260
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
259
|
+
const B = h(() => {
|
|
260
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
|
|
261
261
|
return {
|
|
262
|
-
component: t ?
|
|
262
|
+
component: t ? Be : Ne,
|
|
263
263
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
264
264
|
props: t ? {
|
|
265
265
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
266
266
|
color: e.value.table.th.color,
|
|
267
267
|
headerColor: e.value.table.th.color,
|
|
268
268
|
headerBg: e.value.table.th.backgroundColor,
|
|
269
|
-
isFullscreen:
|
|
269
|
+
isFullscreen: z.value,
|
|
270
270
|
fullscreenParent: w.value,
|
|
271
271
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
272
272
|
} : {
|
|
@@ -286,49 +286,53 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
});
|
|
289
|
-
|
|
289
|
+
$e(() => S.value.showTable, (t) => {
|
|
290
290
|
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
291
|
-
})
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
291
|
+
});
|
|
292
|
+
function Ce() {
|
|
293
|
+
S.value.showTable = !1, J.value && J.value.setTableIconState(!1);
|
|
294
|
+
}
|
|
295
|
+
return Se({
|
|
296
|
+
getData: je,
|
|
297
|
+
getImage: He,
|
|
298
|
+
generatePdf: be,
|
|
299
|
+
generateCsv: Z,
|
|
300
|
+
generateImage: me,
|
|
301
|
+
toggleTable: ke,
|
|
302
|
+
toggleAnnotator: Q,
|
|
303
|
+
toggleFullscreen: pe
|
|
300
304
|
}), (t, l) => (n(), i("div", {
|
|
301
305
|
ref_key: "funnelChart",
|
|
302
306
|
ref: w,
|
|
303
|
-
class: N(`vue-ui-funnel ${
|
|
304
|
-
style:
|
|
305
|
-
id: `funnel_${
|
|
306
|
-
onMouseenter: l[
|
|
307
|
-
onMouseleave: l[
|
|
307
|
+
class: N(`vue-ui-funnel ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
308
|
+
style: T(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
309
|
+
id: `funnel_${P.value}`,
|
|
310
|
+
onMouseenter: l[1] || (l[1] = () => s(ce)(!0)),
|
|
311
|
+
onMouseleave: l[2] || (l[2] = () => s(ce)(!1))
|
|
308
312
|
}, [
|
|
309
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
313
|
+
e.value.userOptions.buttons.annotator ? (n(), I(s(Fe), {
|
|
310
314
|
key: 0,
|
|
311
|
-
svgRef: s(
|
|
315
|
+
svgRef: s(de),
|
|
312
316
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
313
317
|
color: e.value.style.chart.color,
|
|
314
318
|
active: E.value,
|
|
315
|
-
onClose:
|
|
319
|
+
onClose: Q
|
|
316
320
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
317
|
-
|
|
321
|
+
Ue.value ? (n(), i("div", {
|
|
318
322
|
key: 1,
|
|
319
323
|
ref_key: "noTitle",
|
|
320
|
-
ref:
|
|
324
|
+
ref: oe,
|
|
321
325
|
class: "vue-data-ui-no-title-space",
|
|
322
326
|
style: "height:36px; width: 100%;background:transparent"
|
|
323
327
|
}, null, 512)) : b("", !0),
|
|
324
328
|
e.value.style.chart.title.text ? (n(), i("div", {
|
|
325
329
|
key: 2,
|
|
326
330
|
ref_key: "chartTitle",
|
|
327
|
-
ref:
|
|
331
|
+
ref: ue,
|
|
328
332
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
329
333
|
}, [
|
|
330
|
-
(n(),
|
|
331
|
-
key: `title_${
|
|
334
|
+
(n(), I(ft, {
|
|
335
|
+
key: `title_${le.value}`,
|
|
332
336
|
config: {
|
|
333
337
|
title: {
|
|
334
338
|
cy: "funnel-div-title",
|
|
@@ -341,14 +345,15 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
341
345
|
}
|
|
342
346
|
}, null, 8, ["config"]))
|
|
343
347
|
], 512)) : b("", !0),
|
|
344
|
-
e.value.userOptions.show &&
|
|
345
|
-
|
|
346
|
-
|
|
348
|
+
e.value.userOptions.show && O.value && (s(ve) || s(K)) ? (n(), I(s(Pe), {
|
|
349
|
+
ref_key: "userOptionsRef",
|
|
350
|
+
ref: J,
|
|
351
|
+
key: `user_option_${ae.value}`,
|
|
347
352
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
348
353
|
color: e.value.style.chart.color,
|
|
349
|
-
isPrinting: s(
|
|
350
|
-
isImaging: s(
|
|
351
|
-
uid:
|
|
354
|
+
isPrinting: s(he),
|
|
355
|
+
isImaging: s(fe),
|
|
356
|
+
uid: P.value,
|
|
352
357
|
hasTooltip: !1,
|
|
353
358
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
354
359
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -356,7 +361,7 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
356
361
|
hasTable: e.value.userOptions.buttons.table,
|
|
357
362
|
hasLabel: !1,
|
|
358
363
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
359
|
-
isFullscreen:
|
|
364
|
+
isFullscreen: z.value,
|
|
360
365
|
chartElement: w.value,
|
|
361
366
|
position: e.value.userOptions.position,
|
|
362
367
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -364,16 +369,17 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
364
369
|
isAnnotation: E.value,
|
|
365
370
|
callbacks: e.value.userOptions.callbacks,
|
|
366
371
|
printScale: e.value.userOptions.print.scale,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
tableDialog: e.value.table.useDialog,
|
|
373
|
+
onToggleAnnotator: Q,
|
|
374
|
+
onToggleFullscreen: pe,
|
|
375
|
+
onGeneratePdf: s(be),
|
|
376
|
+
onGenerateImage: s(me),
|
|
377
|
+
onToggleTable: ke,
|
|
378
|
+
onGenerateCsv: Z,
|
|
379
|
+
style: T({
|
|
380
|
+
visibility: s(ve) ? s(K) ? "visible" : "hidden" : "visible"
|
|
375
381
|
})
|
|
376
|
-
},
|
|
382
|
+
}, xe({ _: 2 }, [
|
|
377
383
|
t.$slots.menuIcon ? {
|
|
378
384
|
name: "menuIcon",
|
|
379
385
|
fn: m(({ isOpen: a, color: o }) => [
|
|
@@ -423,32 +429,32 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
423
429
|
]),
|
|
424
430
|
key: "6"
|
|
425
431
|
} : void 0
|
|
426
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
427
|
-
|
|
432
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
433
|
+
O.value ? (n(), i("svg", {
|
|
428
434
|
key: 4,
|
|
429
435
|
ref_key: "svgRef",
|
|
430
|
-
ref:
|
|
431
|
-
xmlns: s(
|
|
432
|
-
class: N({ "vue-data-ui-fullscreen--on":
|
|
433
|
-
viewBox: `0 0 ${
|
|
434
|
-
style:
|
|
436
|
+
ref: de,
|
|
437
|
+
xmlns: s(lt),
|
|
438
|
+
class: N({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
439
|
+
viewBox: `0 0 ${d.value.width <= 0 ? 10 : d.value.width} ${d.value.height <= 0 ? 10 : d.value.height}`,
|
|
440
|
+
style: T(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
435
441
|
}, [
|
|
436
|
-
|
|
442
|
+
Le(s(Re)),
|
|
437
443
|
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
438
444
|
key: 0,
|
|
439
445
|
x: 0,
|
|
440
446
|
y: 0,
|
|
441
|
-
width:
|
|
442
|
-
height:
|
|
447
|
+
width: d.value.width <= 0 ? 10 : d.value.width,
|
|
448
|
+
height: d.value.height <= 0 ? 10 : d.value.height,
|
|
443
449
|
style: {
|
|
444
450
|
pointerEvents: "none"
|
|
445
451
|
}
|
|
446
452
|
}, [
|
|
447
453
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
448
|
-
], 8,
|
|
454
|
+
], 8, yt)) : b("", !0),
|
|
449
455
|
C("defs", null, [
|
|
450
456
|
C("linearGradient", {
|
|
451
|
-
id: `funnel_area_${
|
|
457
|
+
id: `funnel_area_${P.value}`,
|
|
452
458
|
x1: "0%",
|
|
453
459
|
x2: "100%",
|
|
454
460
|
y1: "0%",
|
|
@@ -458,18 +464,18 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
458
464
|
offset: "0%",
|
|
459
465
|
"stop-color": e.value.style.chart.backgroundColor,
|
|
460
466
|
"stop-opacity": 0
|
|
461
|
-
}, null, 8,
|
|
467
|
+
}, null, 8, kt),
|
|
462
468
|
C("stop", {
|
|
463
469
|
offset: "20%",
|
|
464
470
|
"stop-color": e.value.style.chart.area.color
|
|
465
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, Ct),
|
|
466
472
|
C("stop", {
|
|
467
473
|
offset: "100%",
|
|
468
474
|
"stop-color": e.value.style.chart.area.color
|
|
469
|
-
}, null, 8,
|
|
470
|
-
], 8,
|
|
475
|
+
}, null, 8, wt)
|
|
476
|
+
], 8, pt)
|
|
471
477
|
]),
|
|
472
|
-
e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 },
|
|
478
|
+
e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 }, Ve.value, {
|
|
473
479
|
stroke: e.value.style.chart.circleLinks.color,
|
|
474
480
|
"stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
|
|
475
481
|
"stroke-linecap": "round",
|
|
@@ -480,8 +486,8 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
480
486
|
strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
|
|
481
487
|
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
482
488
|
}
|
|
483
|
-
}), null, 16,
|
|
484
|
-
(n(!0), i(X, null, W(
|
|
489
|
+
}), null, 16, $t)) : b("", !0),
|
|
490
|
+
(n(!0), i(X, null, W(u.value, ({ cx: a, cy: o, r: f, fill: r }, M) => (n(), i("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: r }, {
|
|
485
491
|
stroke: e.value.style.chart.circles.stroke,
|
|
486
492
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
487
493
|
class: {
|
|
@@ -490,18 +496,18 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
490
496
|
style: {
|
|
491
497
|
animationDelay: `${150 * M}ms`
|
|
492
498
|
}
|
|
493
|
-
}), null, 16,
|
|
494
|
-
(n(!0), i(X, null, W(
|
|
499
|
+
}), null, 16, xt))), 256)),
|
|
500
|
+
(n(!0), i(X, null, W(u.value, (a, o) => (n(), i("text", {
|
|
495
501
|
x: a.cx,
|
|
496
|
-
y: a.cy +
|
|
502
|
+
y: a.cy + v.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
497
503
|
"text-anchor": "middle",
|
|
498
|
-
"font-size":
|
|
499
|
-
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(
|
|
504
|
+
"font-size": v.value.circles,
|
|
505
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(st)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
500
506
|
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
501
507
|
class: N({
|
|
502
508
|
animated: e.value.useCssAnimation && !L.value
|
|
503
509
|
}),
|
|
504
|
-
style:
|
|
510
|
+
style: T({
|
|
505
511
|
animationDelay: `${150 * o}ms`
|
|
506
512
|
})
|
|
507
513
|
}, U(s(Y)(
|
|
@@ -513,19 +519,19 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
513
519
|
r: e.value.style.chart.circles.dataLabels.rounding
|
|
514
520
|
}),
|
|
515
521
|
{ datapoint: a }
|
|
516
|
-
)), 15,
|
|
522
|
+
)), 15, Lt))), 256)),
|
|
517
523
|
e.value.style.chart.area.show ? (n(), i("polygon", {
|
|
518
524
|
key: 2,
|
|
519
|
-
points:
|
|
520
|
-
fill: `url(#funnel_area_${
|
|
525
|
+
points: Ee.value,
|
|
526
|
+
fill: `url(#funnel_area_${P.value})`,
|
|
521
527
|
class: N({
|
|
522
528
|
animated: e.value.useCssAnimation && !L.value
|
|
523
529
|
}),
|
|
524
|
-
style:
|
|
530
|
+
style: T({
|
|
525
531
|
transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
|
|
526
532
|
})
|
|
527
|
-
}, null, 14,
|
|
528
|
-
(n(!0), i(X, null, W(
|
|
533
|
+
}, null, 14, _t)) : b("", !0),
|
|
534
|
+
(n(!0), i(X, null, W(u.value, ({ x: a, y: o, height: f, width: r, fill: M }, ee) => (n(), i("rect", H({ ref_for: !0 }, { x: a, y: o, height: f, width: r, fill: M }, {
|
|
529
535
|
stroke: e.value.style.chart.bars.stroke,
|
|
530
536
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
531
537
|
rx: e.value.style.chart.bars.borderRadius,
|
|
@@ -533,35 +539,35 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
533
539
|
animated: e.value.useCssAnimation && !L.value
|
|
534
540
|
},
|
|
535
541
|
style: {
|
|
536
|
-
animationDelay: `${150 *
|
|
542
|
+
animationDelay: `${150 * ee}ms`
|
|
537
543
|
}
|
|
538
|
-
}), null, 16,
|
|
539
|
-
(n(!0), i(X, null, W(
|
|
544
|
+
}), null, 16, Tt))), 256)),
|
|
545
|
+
(n(!0), i(X, null, W(u.value, (a, o) => (n(), i("g", null, [
|
|
540
546
|
C("text", {
|
|
541
547
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
542
|
-
y: a.cy -
|
|
548
|
+
y: a.cy - v.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
543
549
|
"text-anchor": "start",
|
|
544
|
-
"font-size":
|
|
550
|
+
"font-size": v.value.names,
|
|
545
551
|
fill: e.value.style.chart.bars.dataLabels.name.color,
|
|
546
552
|
"font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
547
553
|
class: N({
|
|
548
554
|
animated: e.value.useCssAnimation && !L.value
|
|
549
555
|
}),
|
|
550
|
-
style:
|
|
556
|
+
style: T({
|
|
551
557
|
animationDelay: `${150 * o}ms`
|
|
552
558
|
})
|
|
553
|
-
}, U(a.name), 15,
|
|
559
|
+
}, U(a.name), 15, At),
|
|
554
560
|
C("text", {
|
|
555
561
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
556
|
-
y: a.cy +
|
|
562
|
+
y: a.cy + v.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
|
|
557
563
|
"text-anchor": "start",
|
|
558
|
-
"font-size":
|
|
564
|
+
"font-size": v.value.values,
|
|
559
565
|
fill: e.value.style.chart.bars.dataLabels.value.color,
|
|
560
566
|
"font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
561
567
|
class: N({
|
|
562
568
|
animated: e.value.useCssAnimation && !L.value
|
|
563
569
|
}),
|
|
564
|
-
style:
|
|
570
|
+
style: T({
|
|
565
571
|
animationDelay: `${150 * o}ms`
|
|
566
572
|
})
|
|
567
573
|
}, U(s(Y)(
|
|
@@ -574,14 +580,14 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
574
580
|
r: e.value.style.chart.bars.dataLabels.value.rounding
|
|
575
581
|
}),
|
|
576
582
|
{ datapoint: a }
|
|
577
|
-
)), 15,
|
|
583
|
+
)), 15, Ot)
|
|
578
584
|
]))), 256)),
|
|
579
|
-
g(t.$slots, "svg", { svg:
|
|
580
|
-
], 14,
|
|
581
|
-
t.$slots.watermark ? (n(), i("div",
|
|
582
|
-
g(t.$slots, "watermark", G(j({ isPrinting: s(
|
|
585
|
+
g(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
586
|
+
], 14, gt)) : b("", !0),
|
|
587
|
+
t.$slots.watermark ? (n(), i("div", St, [
|
|
588
|
+
g(t.$slots, "watermark", G(j({ isPrinting: s(he) || s(fe) })), void 0, !0)
|
|
583
589
|
])) : b("", !0),
|
|
584
|
-
|
|
590
|
+
O.value ? b("", !0) : (n(), I(s(ze), {
|
|
585
591
|
key: 6,
|
|
586
592
|
config: {
|
|
587
593
|
type: "verticalBar",
|
|
@@ -599,35 +605,35 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
599
605
|
t.$slots.source ? (n(), i("div", {
|
|
600
606
|
key: 7,
|
|
601
607
|
ref_key: "source",
|
|
602
|
-
ref:
|
|
608
|
+
ref: ne,
|
|
603
609
|
dir: "auto"
|
|
604
610
|
}, [
|
|
605
611
|
g(t.$slots, "source", {}, void 0, !0)
|
|
606
612
|
], 512)) : b("", !0),
|
|
607
|
-
|
|
613
|
+
O.value ? (n(), I(qe(B.value.component), H({ key: 8 }, B.value.props, {
|
|
608
614
|
ref_key: "tableUnit",
|
|
609
615
|
ref: F,
|
|
610
|
-
onClose:
|
|
611
|
-
}),
|
|
616
|
+
onClose: Ce
|
|
617
|
+
}), xe({
|
|
612
618
|
content: m(() => [
|
|
613
|
-
(n(),
|
|
614
|
-
key: `table_${
|
|
619
|
+
(n(), I(s(Ie), {
|
|
620
|
+
key: `table_${se.value}`,
|
|
615
621
|
colNames: V.value.colNames,
|
|
616
622
|
head: V.value.head,
|
|
617
623
|
body: V.value.body,
|
|
618
624
|
config: V.value.config,
|
|
619
|
-
title: e.value.table.useDialog ? "" :
|
|
625
|
+
title: e.value.table.useDialog ? "" : B.value.title,
|
|
620
626
|
withCloseButton: !e.value.table.useDialog,
|
|
621
|
-
onClose:
|
|
627
|
+
onClose: Ce
|
|
622
628
|
}, {
|
|
623
629
|
th: m(({ th: a }) => [
|
|
624
630
|
C("div", {
|
|
625
631
|
innerHTML: a,
|
|
626
632
|
style: { display: "flex", "align-items": "center" }
|
|
627
|
-
}, null, 8,
|
|
633
|
+
}, null, 8, Dt)
|
|
628
634
|
]),
|
|
629
635
|
td: m(({ td: a }) => [
|
|
630
|
-
|
|
636
|
+
_e(U(a.name ? a.name : a), 1)
|
|
631
637
|
]),
|
|
632
638
|
_: 1
|
|
633
639
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -637,7 +643,7 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
637
643
|
e.value.table.useDialog ? {
|
|
638
644
|
name: "title",
|
|
639
645
|
fn: m(() => [
|
|
640
|
-
|
|
646
|
+
_e(U(B.value.title), 1)
|
|
641
647
|
]),
|
|
642
648
|
key: "0"
|
|
643
649
|
} : void 0,
|
|
@@ -647,20 +653,20 @@ const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["i
|
|
|
647
653
|
C("button", {
|
|
648
654
|
tabindex: "0",
|
|
649
655
|
class: "vue-ui-user-options-button",
|
|
650
|
-
onClick: l[0] || (l[0] = (a) =>
|
|
656
|
+
onClick: l[0] || (l[0] = (a) => Z(e.value.userOptions.callbacks.csv))
|
|
651
657
|
}, [
|
|
652
|
-
|
|
658
|
+
Le(s(De), {
|
|
653
659
|
name: "excel",
|
|
654
|
-
stroke:
|
|
660
|
+
stroke: B.value.props.color
|
|
655
661
|
}, null, 8, ["stroke"])
|
|
656
662
|
])
|
|
657
663
|
]),
|
|
658
664
|
key: "1"
|
|
659
665
|
} : void 0
|
|
660
666
|
]), 1040)) : b("", !0)
|
|
661
|
-
], 46,
|
|
667
|
+
], 46, mt));
|
|
662
668
|
}
|
|
663
|
-
},
|
|
669
|
+
}, Gt = /* @__PURE__ */ bt(zt, [["__scopeId", "data-v-2f7f46c4"]]);
|
|
664
670
|
export {
|
|
665
|
-
|
|
671
|
+
Gt as default
|
|
666
672
|
};
|