vue-data-ui 3.0.23 → 3.1.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-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
import { useCssVars as je, computed as d, defineAsyncComponent as x, ref as h, shallowRef as ke, onMounted as He, onBeforeUnmount as Xe, watch as Ce, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as A, normalizeClass as N, createBlock as P, createCommentVNode as b, createSlots as we, withCtx as m, renderSlot as g, normalizeProps as G, guardReactiveProps as j, createVNode as $e, createElementVNode as C, mergeProps as H, Fragment as X, renderList as W, toDisplayString as U, resolveDynamicComponent as We, createTextVNode as xe, nextTick as Ye } from "vue";
|
|
2
|
+
import { u as qe, c as Je, o as Ke, f as Le, g as Qe, e as Ze, l as et, k as Y, i as q, X as tt, F as at, E as ee, b as lt, v as st, w as ot } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as nt, u as rt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ut } from "./usePrinter-BzuXiubT.js";
|
|
5
|
+
import { u as _e } from "./useNestedProp-aBOhgs4U.js";
|
|
6
|
+
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import vt from "./img-gBDz7xQQ.js";
|
|
9
|
+
import dt from "./Title-Dz-j6ERs.js";
|
|
10
|
+
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const ft = ["id"], bt = ["xmlns", "viewBox"], mt = ["width", "height"], gt = ["id"], yt = ["stop-color"], pt = ["stop-color"], kt = ["stop-color"], Ct = ["stroke", "stroke-width"], wt = ["stroke", "stroke-width"], $t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["points", "fill"], Lt = ["stroke", "stroke-width", "rx"], _t = ["x", "y", "font-size", "fill", "font-weight"], Tt = ["x", "y", "font-size", "fill", "font-weight"], At = {
|
|
12
|
+
key: 5,
|
|
13
|
+
class: "vue-data-ui-watermark"
|
|
14
|
+
}, Ot = ["innerHTML"], St = {
|
|
15
|
+
__name: "vue-ui-funnel",
|
|
16
|
+
props: {
|
|
17
|
+
config: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default() {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
dataset: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default() {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(Te, { expose: Ae }) {
|
|
31
|
+
je((t) => ({
|
|
32
|
+
"37f515f8": Ee.value
|
|
33
|
+
}));
|
|
34
|
+
const Oe = x(() => import("./BaseIcon-DLesaZpW.js")), Se = x(() => import("./vue-ui-skeleton--twnjS2t.js")), ze = x(() => import("./vue-ui-accordion-B5QeV3BK.js")), De = x(() => import("./DataTable-BAf4Obr9.js")), Ne = x(() => import("./UserOptions-CsDlFB0L.js")), Pe = x(() => import("./PenAndPaper-B6OvfyHH.js")), Ie = x(() => import("./PackageVersion-Cv_ypT0N.js")), Fe = x(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_funnel: Be } = qe(), y = Te, w = h(null), I = h(Je()), te = h(0), ae = h(0), le = h(0), se = h(null), oe = h(null), ne = h(null), $ = ke(null), O = ke(null), L = h(!1), F = h(null), S = d(() => !!y.dataset && y.dataset.length);
|
|
35
|
+
He(re);
|
|
36
|
+
function re() {
|
|
37
|
+
if (Ke(y.dataset) ? Le({
|
|
38
|
+
componentName: "VueUiFunnel",
|
|
39
|
+
type: "dataset"
|
|
40
|
+
}) : y.dataset.forEach((t, l) => {
|
|
41
|
+
Qe({
|
|
42
|
+
datasetObject: t,
|
|
43
|
+
requiredAttributes: ["name", "value"]
|
|
44
|
+
}).forEach((a) => {
|
|
45
|
+
S.value = !1, Le({
|
|
46
|
+
componentName: "VueUiFunnel",
|
|
47
|
+
type: "datasetSerieAttribute",
|
|
48
|
+
property: a,
|
|
49
|
+
index: l
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
}), e.value.responsive) {
|
|
53
|
+
const t = nt(() => {
|
|
54
|
+
const { width: l, height: a } = rt({
|
|
55
|
+
chart: w.value,
|
|
56
|
+
title: e.value.style.chart.title.text ? ne.value : null,
|
|
57
|
+
source: oe.value,
|
|
58
|
+
noTitle: se.value
|
|
59
|
+
});
|
|
60
|
+
requestAnimationFrame(() => {
|
|
61
|
+
v.value.height = a, v.value.width = l, k.value = me(), e.value.responsiveProportionalSizing ? (c.value.circles = ee({
|
|
62
|
+
relator: Math.min(l, a),
|
|
63
|
+
adjuster: 600,
|
|
64
|
+
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
65
|
+
threshold: 10,
|
|
66
|
+
fallback: 10
|
|
67
|
+
}), c.value.names = ee({
|
|
68
|
+
relator: Math.min(l, a),
|
|
69
|
+
adjuster: 600,
|
|
70
|
+
source: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
71
|
+
threshold: 10,
|
|
72
|
+
fallback: 10
|
|
73
|
+
}), c.value.values = ee({
|
|
74
|
+
relator: Math.min(l, a),
|
|
75
|
+
adjuster: 600,
|
|
76
|
+
source: e.value.style.chart.bars.dataLabels.value.fontSize,
|
|
77
|
+
threshold: 10,
|
|
78
|
+
fallback: 10
|
|
79
|
+
})) : (c.value.circles = e.value.style.chart.circles.dataLabels.fontSize, c.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, c.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
$.value && (O.value && $.value.unobserve(O.value), $.value.disconnect()), $.value = new ResizeObserver(t), O.value = w.value.parentNode, $.value.observe(O.value);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
Xe(() => {
|
|
86
|
+
$.value && (O.value && $.value.unobserve(O.value), $.value.disconnect());
|
|
87
|
+
});
|
|
88
|
+
function ue() {
|
|
89
|
+
const t = _e({
|
|
90
|
+
userConfig: y.config,
|
|
91
|
+
defaultConfig: Be
|
|
92
|
+
});
|
|
93
|
+
return t.theme ? {
|
|
94
|
+
..._e({
|
|
95
|
+
userConfig: lt.vue_ui_funnel[t.theme] || y.config,
|
|
96
|
+
defaultConfig: t
|
|
97
|
+
})
|
|
98
|
+
} : t;
|
|
99
|
+
}
|
|
100
|
+
const e = d({
|
|
101
|
+
get: () => ue(),
|
|
102
|
+
set: (t) => t
|
|
103
|
+
}), { userOptionsVisible: J, setUserOptionsVisibility: ie, keepUserOptionState: ce } = it({ config: e.value }), { svgRef: ve } = ct({ config: e.value.style.chart.title });
|
|
104
|
+
Ce(() => y.config, (t) => {
|
|
105
|
+
e.value = ue(), J.value = !e.value.userOptions.showOnChartHover, re(), ae.value += 1, le.value += 1, c.value.circles = e.value.style.chart.circles.dataLabels.fontSize, c.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, c.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, _.value.showTable = e.value.table.show;
|
|
106
|
+
}, { deep: !0 });
|
|
107
|
+
const { isPrinting: de, isImaging: he, generatePdf: fe, generateImage: be } = ut({
|
|
108
|
+
elementId: `funnel_${I.value}`,
|
|
109
|
+
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
110
|
+
options: e.value.userOptions.print
|
|
111
|
+
}), Re = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), _ = h({
|
|
112
|
+
showTable: e.value.table.show
|
|
113
|
+
}), c = h({
|
|
114
|
+
circles: e.value.style.chart.circles.dataLabels.fontSize,
|
|
115
|
+
names: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
116
|
+
values: e.value.style.chart.bars.dataLabels.value.fontSize
|
|
117
|
+
}), v = d({
|
|
118
|
+
get: () => ({
|
|
119
|
+
height: e.value.style.chart.height,
|
|
120
|
+
width: e.value.style.chart.width
|
|
121
|
+
}),
|
|
122
|
+
set: (t) => t
|
|
123
|
+
}), p = d(() => S.value ? y.dataset.map((t, l) => ({
|
|
124
|
+
...t,
|
|
125
|
+
color: t.color ? Ze(t.color) : et(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
|
|
126
|
+
})) : []);
|
|
127
|
+
setTimeout(() => {
|
|
128
|
+
L.value = !0;
|
|
129
|
+
}, p.value.length * 150);
|
|
130
|
+
function me() {
|
|
131
|
+
const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
|
|
132
|
+
return {
|
|
133
|
+
left: t,
|
|
134
|
+
top: l,
|
|
135
|
+
right: v.value.width - e.value.style.chart.padding.right,
|
|
136
|
+
bottom: v.value.height - e.value.style.chart.padding.bottom,
|
|
137
|
+
width: v.value.width - t - e.value.style.chart.padding.right,
|
|
138
|
+
height: v.value.height - l - e.value.style.chart.padding.bottom
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
const k = h(me()), z = d(() => k.value.height / y.dataset.length), T = d(() => z.value * e.value.style.chart.bars.gapRatio), ge = d(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = d(() => p.value.map((t, l) => {
|
|
142
|
+
const a = z.value - T.value, o = k.value.top + T.value / 2 * l + (z.value - T.value / 2) * l + T.value / 2, f = t.value / p.value[0].value, u = (k.value.width - a - ge.value) * (t.value / p.value[0].value);
|
|
143
|
+
return {
|
|
144
|
+
...t,
|
|
145
|
+
cx: k.value.left + a / 2,
|
|
146
|
+
cy: o + a / 2,
|
|
147
|
+
datapointIndex: l,
|
|
148
|
+
fill: t.color,
|
|
149
|
+
height: Math.max(a, 0),
|
|
150
|
+
proportion: f,
|
|
151
|
+
r: Math.max(a / 2, 0),
|
|
152
|
+
width: Math.max(u, 0),
|
|
153
|
+
x: k.value.left + a + ge.value,
|
|
154
|
+
y: o
|
|
155
|
+
};
|
|
156
|
+
})), Me = d(() => {
|
|
157
|
+
const t = r.value.map((l) => `${l.x + l.width},${l.y + (z.value - T.value) / 2}`);
|
|
158
|
+
return `${r.value[0].x},${r.value[0].y + (z.value - T.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (z.value - T.value) / 2}`;
|
|
159
|
+
}), Ue = d(() => ({
|
|
160
|
+
x1: r.value[0].cx,
|
|
161
|
+
y1: r.value[0].cy,
|
|
162
|
+
x2: r.value.at(-1).cx,
|
|
163
|
+
y2: r.value.at(-1).cy
|
|
164
|
+
})), D = h(!1);
|
|
165
|
+
function ye(t) {
|
|
166
|
+
D.value = t, te.value += 1;
|
|
167
|
+
}
|
|
168
|
+
const Ee = d(() => `${p.value.length * 150}ms`), E = h(!1);
|
|
169
|
+
function K() {
|
|
170
|
+
E.value = !E.value;
|
|
171
|
+
}
|
|
172
|
+
function pe() {
|
|
173
|
+
_.value.showTable = !_.value.showTable;
|
|
174
|
+
}
|
|
175
|
+
const B = d(() => {
|
|
176
|
+
const t = p.value.map((a) => ({
|
|
177
|
+
name: a.name,
|
|
178
|
+
color: a.color
|
|
179
|
+
})), l = p.value.map((a) => a.value);
|
|
180
|
+
return { head: t, body: l };
|
|
181
|
+
}), V = d(() => {
|
|
182
|
+
const t = [
|
|
183
|
+
e.value.table.columnNames.series,
|
|
184
|
+
e.value.table.columnNames.value,
|
|
185
|
+
e.value.table.columnNames.percentage
|
|
186
|
+
], l = B.value.head.map((f, u) => {
|
|
187
|
+
const M = Y(
|
|
188
|
+
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
189
|
+
B.value.body[u],
|
|
190
|
+
q({
|
|
191
|
+
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
192
|
+
v: B.value.body[u],
|
|
193
|
+
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
194
|
+
r: e.value.table.td.roundingValue
|
|
195
|
+
}),
|
|
196
|
+
{ datapoint: r.value[u] }
|
|
197
|
+
), Z = Y(
|
|
198
|
+
e.value.style.chart.circles.dataLabels.formatter,
|
|
199
|
+
r.value[u].proportion * 100,
|
|
200
|
+
q({
|
|
201
|
+
v: r.value[u].proportion * 100,
|
|
202
|
+
s: "%",
|
|
203
|
+
r: e.value.table.td.roundingPercentage
|
|
204
|
+
}),
|
|
205
|
+
{ datapoint: r.value[u] }
|
|
206
|
+
);
|
|
207
|
+
return [
|
|
208
|
+
{ color: f.color, name: f.name },
|
|
209
|
+
M,
|
|
210
|
+
Z
|
|
211
|
+
];
|
|
212
|
+
}), a = {
|
|
213
|
+
th: {
|
|
214
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
215
|
+
color: e.value.table.th.color,
|
|
216
|
+
outline: e.value.table.th.outline
|
|
217
|
+
},
|
|
218
|
+
td: {
|
|
219
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
220
|
+
color: e.value.table.td.color,
|
|
221
|
+
outline: e.value.table.td.outline
|
|
222
|
+
},
|
|
223
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
224
|
+
};
|
|
225
|
+
return {
|
|
226
|
+
colNames: [
|
|
227
|
+
e.value.table.columnNames.series,
|
|
228
|
+
e.value.table.columnNames.value,
|
|
229
|
+
e.value.table.columnNames.percentage
|
|
230
|
+
],
|
|
231
|
+
head: t,
|
|
232
|
+
body: l,
|
|
233
|
+
config: a
|
|
234
|
+
};
|
|
235
|
+
});
|
|
236
|
+
function Q(t = null) {
|
|
237
|
+
Ye(() => {
|
|
238
|
+
const l = B.value.head.map((f, u) => [[
|
|
239
|
+
f.name
|
|
240
|
+
], [B.value.body[u]], [r.value[u].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 = st(a);
|
|
241
|
+
t ? t(o) : ot({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
function Ve() {
|
|
245
|
+
return p.value;
|
|
246
|
+
}
|
|
247
|
+
async function Ge({ scale: t = 2 } = {}) {
|
|
248
|
+
if (!w.value) return;
|
|
249
|
+
const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: u } = await vt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
250
|
+
return {
|
|
251
|
+
imageUri: f,
|
|
252
|
+
base64: u,
|
|
253
|
+
title: e.value.style.chart.title.text,
|
|
254
|
+
width: l,
|
|
255
|
+
height: a,
|
|
256
|
+
aspectRatio: o
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
const R = d(() => {
|
|
260
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
|
|
261
|
+
return {
|
|
262
|
+
component: t ? Fe : ze,
|
|
263
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
264
|
+
props: t ? {
|
|
265
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
266
|
+
color: e.value.table.th.color,
|
|
267
|
+
headerColor: e.value.table.th.color,
|
|
268
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
269
|
+
isFullscreen: D.value,
|
|
270
|
+
fullscreenParent: w.value,
|
|
271
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
272
|
+
} : {
|
|
273
|
+
hideDetails: !0,
|
|
274
|
+
config: {
|
|
275
|
+
open: l,
|
|
276
|
+
maxHeight: 1e4,
|
|
277
|
+
body: {
|
|
278
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
279
|
+
color: e.value.style.chart.color
|
|
280
|
+
},
|
|
281
|
+
head: {
|
|
282
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
283
|
+
color: e.value.style.chart.color
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
});
|
|
289
|
+
return Ce(() => _.value.showTable, (t) => {
|
|
290
|
+
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
291
|
+
}), Ae({
|
|
292
|
+
getData: Ve,
|
|
293
|
+
getImage: Ge,
|
|
294
|
+
generatePdf: fe,
|
|
295
|
+
generateCsv: Q,
|
|
296
|
+
generateImage: be,
|
|
297
|
+
toggleTable: pe,
|
|
298
|
+
toggleAnnotator: K,
|
|
299
|
+
toggleFullscreen: ye
|
|
300
|
+
}), (t, l) => (n(), i("div", {
|
|
301
|
+
ref_key: "funnelChart",
|
|
302
|
+
ref: w,
|
|
303
|
+
class: N(`vue-ui-funnel ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
304
|
+
style: A(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
305
|
+
id: `funnel_${I.value}`,
|
|
306
|
+
onMouseenter: l[3] || (l[3] = () => s(ie)(!0)),
|
|
307
|
+
onMouseleave: l[4] || (l[4] = () => s(ie)(!1))
|
|
308
|
+
}, [
|
|
309
|
+
e.value.userOptions.buttons.annotator ? (n(), P(s(Pe), {
|
|
310
|
+
key: 0,
|
|
311
|
+
svgRef: s(ve),
|
|
312
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
313
|
+
color: e.value.style.chart.color,
|
|
314
|
+
active: E.value,
|
|
315
|
+
onClose: K
|
|
316
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
317
|
+
Re.value ? (n(), i("div", {
|
|
318
|
+
key: 1,
|
|
319
|
+
ref_key: "noTitle",
|
|
320
|
+
ref: se,
|
|
321
|
+
class: "vue-data-ui-no-title-space",
|
|
322
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
323
|
+
}, null, 512)) : b("", !0),
|
|
324
|
+
e.value.style.chart.title.text ? (n(), i("div", {
|
|
325
|
+
key: 2,
|
|
326
|
+
ref_key: "chartTitle",
|
|
327
|
+
ref: ne,
|
|
328
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
329
|
+
}, [
|
|
330
|
+
(n(), P(dt, {
|
|
331
|
+
key: `title_${ae.value}`,
|
|
332
|
+
config: {
|
|
333
|
+
title: {
|
|
334
|
+
cy: "funnel-div-title",
|
|
335
|
+
...e.value.style.chart.title
|
|
336
|
+
},
|
|
337
|
+
subtitle: {
|
|
338
|
+
cy: "funnel-div-subtitle",
|
|
339
|
+
...e.value.style.chart.title.subtitle
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}, null, 8, ["config"]))
|
|
343
|
+
], 512)) : b("", !0),
|
|
344
|
+
e.value.userOptions.show && S.value && (s(ce) || s(J)) ? (n(), P(s(Ne), {
|
|
345
|
+
ref: "details",
|
|
346
|
+
key: `user_option_${te.value}`,
|
|
347
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
348
|
+
color: e.value.style.chart.color,
|
|
349
|
+
isPrinting: s(de),
|
|
350
|
+
isImaging: s(he),
|
|
351
|
+
uid: I.value,
|
|
352
|
+
hasTooltip: !1,
|
|
353
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
354
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
355
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
356
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
357
|
+
hasLabel: !1,
|
|
358
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
359
|
+
isFullscreen: D.value,
|
|
360
|
+
chartElement: w.value,
|
|
361
|
+
position: e.value.userOptions.position,
|
|
362
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
363
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
364
|
+
isAnnotation: E.value,
|
|
365
|
+
callbacks: e.value.userOptions.callbacks,
|
|
366
|
+
printScale: e.value.userOptions.print.scale,
|
|
367
|
+
onToggleAnnotator: K,
|
|
368
|
+
onToggleFullscreen: ye,
|
|
369
|
+
onGeneratePdf: s(fe),
|
|
370
|
+
onGenerateImage: s(be),
|
|
371
|
+
onToggleTable: pe,
|
|
372
|
+
onGenerateCsv: Q,
|
|
373
|
+
style: A({
|
|
374
|
+
visibility: s(ce) ? s(J) ? "visible" : "hidden" : "visible"
|
|
375
|
+
})
|
|
376
|
+
}, we({ _: 2 }, [
|
|
377
|
+
t.$slots.menuIcon ? {
|
|
378
|
+
name: "menuIcon",
|
|
379
|
+
fn: m(({ isOpen: a, color: o }) => [
|
|
380
|
+
g(t.$slots, "menuIcon", G(j({ isOpen: a, color: o })), void 0, !0)
|
|
381
|
+
]),
|
|
382
|
+
key: "0"
|
|
383
|
+
} : void 0,
|
|
384
|
+
t.$slots.optionPdf ? {
|
|
385
|
+
name: "optionPdf",
|
|
386
|
+
fn: m(() => [
|
|
387
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
388
|
+
]),
|
|
389
|
+
key: "1"
|
|
390
|
+
} : void 0,
|
|
391
|
+
t.$slots.optionCsv ? {
|
|
392
|
+
name: "optionCsv",
|
|
393
|
+
fn: m(() => [
|
|
394
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
395
|
+
]),
|
|
396
|
+
key: "2"
|
|
397
|
+
} : void 0,
|
|
398
|
+
t.$slots.optionImg ? {
|
|
399
|
+
name: "optionImg",
|
|
400
|
+
fn: m(() => [
|
|
401
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
402
|
+
]),
|
|
403
|
+
key: "3"
|
|
404
|
+
} : void 0,
|
|
405
|
+
t.$slots.optionTable ? {
|
|
406
|
+
name: "optionTable",
|
|
407
|
+
fn: m(() => [
|
|
408
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
409
|
+
]),
|
|
410
|
+
key: "4"
|
|
411
|
+
} : void 0,
|
|
412
|
+
t.$slots.optionFullscreen ? {
|
|
413
|
+
name: "optionFullscreen",
|
|
414
|
+
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
415
|
+
g(t.$slots, "optionFullscreen", G(j({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
416
|
+
]),
|
|
417
|
+
key: "5"
|
|
418
|
+
} : void 0,
|
|
419
|
+
t.$slots.optionAnnotator ? {
|
|
420
|
+
name: "optionAnnotator",
|
|
421
|
+
fn: m(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
422
|
+
g(t.$slots, "optionAnnotator", G(j({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
423
|
+
]),
|
|
424
|
+
key: "6"
|
|
425
|
+
} : 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
|
+
S.value ? (n(), i("svg", {
|
|
428
|
+
key: 4,
|
|
429
|
+
ref_key: "svgRef",
|
|
430
|
+
ref: ve,
|
|
431
|
+
xmlns: s(tt),
|
|
432
|
+
class: N({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
433
|
+
viewBox: `0 0 ${v.value.width <= 0 ? 10 : v.value.width} ${v.value.height <= 0 ? 10 : v.value.height}`,
|
|
434
|
+
style: A(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
435
|
+
}, [
|
|
436
|
+
$e(s(Ie)),
|
|
437
|
+
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
438
|
+
key: 0,
|
|
439
|
+
x: 0,
|
|
440
|
+
y: 0,
|
|
441
|
+
width: v.value.width <= 0 ? 10 : v.value.width,
|
|
442
|
+
height: v.value.height <= 0 ? 10 : v.value.height,
|
|
443
|
+
style: {
|
|
444
|
+
pointerEvents: "none"
|
|
445
|
+
}
|
|
446
|
+
}, [
|
|
447
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
448
|
+
], 8, mt)) : b("", !0),
|
|
449
|
+
C("defs", null, [
|
|
450
|
+
C("linearGradient", {
|
|
451
|
+
id: `funnel_area_${I.value}`,
|
|
452
|
+
x1: "0%",
|
|
453
|
+
x2: "100%",
|
|
454
|
+
y1: "0%",
|
|
455
|
+
y2: "0%"
|
|
456
|
+
}, [
|
|
457
|
+
C("stop", {
|
|
458
|
+
offset: "0%",
|
|
459
|
+
"stop-color": e.value.style.chart.backgroundColor,
|
|
460
|
+
"stop-opacity": 0
|
|
461
|
+
}, null, 8, yt),
|
|
462
|
+
C("stop", {
|
|
463
|
+
offset: "20%",
|
|
464
|
+
"stop-color": e.value.style.chart.area.color
|
|
465
|
+
}, null, 8, pt),
|
|
466
|
+
C("stop", {
|
|
467
|
+
offset: "100%",
|
|
468
|
+
"stop-color": e.value.style.chart.area.color
|
|
469
|
+
}, null, 8, kt)
|
|
470
|
+
], 8, gt)
|
|
471
|
+
]),
|
|
472
|
+
e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 }, Ue.value, {
|
|
473
|
+
stroke: e.value.style.chart.circleLinks.color,
|
|
474
|
+
"stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
|
|
475
|
+
"stroke-linecap": "round",
|
|
476
|
+
class: {
|
|
477
|
+
animated: e.value.useCssAnimation
|
|
478
|
+
},
|
|
479
|
+
style: {
|
|
480
|
+
strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
|
|
481
|
+
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
482
|
+
}
|
|
483
|
+
}), null, 16, Ct)) : b("", !0),
|
|
484
|
+
(n(!0), i(X, null, W(r.value, ({ cx: a, cy: o, r: f, fill: u }, M) => (n(), i("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: u }, {
|
|
485
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
486
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
487
|
+
class: {
|
|
488
|
+
animated: e.value.useCssAnimation && !L.value
|
|
489
|
+
},
|
|
490
|
+
style: {
|
|
491
|
+
animationDelay: `${150 * M}ms`
|
|
492
|
+
}
|
|
493
|
+
}), null, 16, wt))), 256)),
|
|
494
|
+
(n(!0), i(X, null, W(r.value, (a, o) => (n(), i("text", {
|
|
495
|
+
x: a.cx,
|
|
496
|
+
y: a.cy + c.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
497
|
+
"text-anchor": "middle",
|
|
498
|
+
"font-size": c.value.circles,
|
|
499
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(at)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
500
|
+
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
501
|
+
class: N({
|
|
502
|
+
animated: e.value.useCssAnimation && !L.value
|
|
503
|
+
}),
|
|
504
|
+
style: A({
|
|
505
|
+
animationDelay: `${150 * o}ms`
|
|
506
|
+
})
|
|
507
|
+
}, U(s(Y)(
|
|
508
|
+
e.value.style.chart.circles.dataLabels.formatter,
|
|
509
|
+
a.proportion * 100,
|
|
510
|
+
s(q)({
|
|
511
|
+
v: a.proportion * 100,
|
|
512
|
+
s: "%",
|
|
513
|
+
r: e.value.style.chart.circles.dataLabels.rounding
|
|
514
|
+
}),
|
|
515
|
+
{ datapoint: a }
|
|
516
|
+
)), 15, $t))), 256)),
|
|
517
|
+
e.value.style.chart.area.show ? (n(), i("polygon", {
|
|
518
|
+
key: 2,
|
|
519
|
+
points: Me.value,
|
|
520
|
+
fill: `url(#funnel_area_${I.value})`,
|
|
521
|
+
class: N({
|
|
522
|
+
animated: e.value.useCssAnimation && !L.value
|
|
523
|
+
}),
|
|
524
|
+
style: A({
|
|
525
|
+
transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
|
|
526
|
+
})
|
|
527
|
+
}, null, 14, xt)) : b("", !0),
|
|
528
|
+
(n(!0), i(X, null, W(r.value, ({ x: a, y: o, height: f, width: u, fill: M }, Z) => (n(), i("rect", H({ ref_for: !0 }, { x: a, y: o, height: f, width: u, fill: M }, {
|
|
529
|
+
stroke: e.value.style.chart.bars.stroke,
|
|
530
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
531
|
+
rx: e.value.style.chart.bars.borderRadius,
|
|
532
|
+
class: {
|
|
533
|
+
animated: e.value.useCssAnimation && !L.value
|
|
534
|
+
},
|
|
535
|
+
style: {
|
|
536
|
+
animationDelay: `${150 * Z}ms`
|
|
537
|
+
}
|
|
538
|
+
}), null, 16, Lt))), 256)),
|
|
539
|
+
(n(!0), i(X, null, W(r.value, (a, o) => (n(), i("g", null, [
|
|
540
|
+
C("text", {
|
|
541
|
+
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
542
|
+
y: a.cy - c.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
543
|
+
"text-anchor": "start",
|
|
544
|
+
"font-size": c.value.names,
|
|
545
|
+
fill: e.value.style.chart.bars.dataLabels.name.color,
|
|
546
|
+
"font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
547
|
+
class: N({
|
|
548
|
+
animated: e.value.useCssAnimation && !L.value
|
|
549
|
+
}),
|
|
550
|
+
style: A({
|
|
551
|
+
animationDelay: `${150 * o}ms`
|
|
552
|
+
})
|
|
553
|
+
}, U(a.name), 15, _t),
|
|
554
|
+
C("text", {
|
|
555
|
+
x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
556
|
+
y: a.cy + c.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
|
|
557
|
+
"text-anchor": "start",
|
|
558
|
+
"font-size": c.value.values,
|
|
559
|
+
fill: e.value.style.chart.bars.dataLabels.value.color,
|
|
560
|
+
"font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
561
|
+
class: N({
|
|
562
|
+
animated: e.value.useCssAnimation && !L.value
|
|
563
|
+
}),
|
|
564
|
+
style: A({
|
|
565
|
+
animationDelay: `${150 * o}ms`
|
|
566
|
+
})
|
|
567
|
+
}, U(s(Y)(
|
|
568
|
+
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
569
|
+
a.value,
|
|
570
|
+
s(q)({
|
|
571
|
+
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
572
|
+
v: a.value,
|
|
573
|
+
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
574
|
+
r: e.value.style.chart.bars.dataLabels.value.rounding
|
|
575
|
+
}),
|
|
576
|
+
{ datapoint: a }
|
|
577
|
+
)), 15, Tt)
|
|
578
|
+
]))), 256)),
|
|
579
|
+
g(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
580
|
+
], 14, bt)) : b("", !0),
|
|
581
|
+
t.$slots.watermark ? (n(), i("div", At, [
|
|
582
|
+
g(t.$slots, "watermark", G(j({ isPrinting: s(de) || s(he) })), void 0, !0)
|
|
583
|
+
])) : b("", !0),
|
|
584
|
+
S.value ? b("", !0) : (n(), P(s(Se), {
|
|
585
|
+
key: 6,
|
|
586
|
+
config: {
|
|
587
|
+
type: "verticalBar",
|
|
588
|
+
style: {
|
|
589
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
590
|
+
verticalBar: {
|
|
591
|
+
axis: {
|
|
592
|
+
color: "#CCCCCC"
|
|
593
|
+
},
|
|
594
|
+
color: "#CCCCCC"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}, null, 8, ["config"])),
|
|
599
|
+
t.$slots.source ? (n(), i("div", {
|
|
600
|
+
key: 7,
|
|
601
|
+
ref_key: "source",
|
|
602
|
+
ref: oe,
|
|
603
|
+
dir: "auto"
|
|
604
|
+
}, [
|
|
605
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
606
|
+
], 512)) : b("", !0),
|
|
607
|
+
S.value ? (n(), P(We(R.value.component), H({ key: 8 }, R.value.props, {
|
|
608
|
+
ref_key: "tableUnit",
|
|
609
|
+
ref: F,
|
|
610
|
+
onClose: l[2] || (l[2] = (a) => _.value.showTable = !1)
|
|
611
|
+
}), we({
|
|
612
|
+
content: m(() => [
|
|
613
|
+
(n(), P(s(De), {
|
|
614
|
+
key: `table_${le.value}`,
|
|
615
|
+
colNames: V.value.colNames,
|
|
616
|
+
head: V.value.head,
|
|
617
|
+
body: V.value.body,
|
|
618
|
+
config: V.value.config,
|
|
619
|
+
title: e.value.table.useDialog ? "" : R.value.title,
|
|
620
|
+
withCloseButton: !e.value.table.useDialog,
|
|
621
|
+
onClose: l[1] || (l[1] = (a) => _.value.showTable = !1)
|
|
622
|
+
}, {
|
|
623
|
+
th: m(({ th: a }) => [
|
|
624
|
+
C("div", {
|
|
625
|
+
innerHTML: a,
|
|
626
|
+
style: { display: "flex", "align-items": "center" }
|
|
627
|
+
}, null, 8, Ot)
|
|
628
|
+
]),
|
|
629
|
+
td: m(({ td: a }) => [
|
|
630
|
+
xe(U(a.name ? a.name : a), 1)
|
|
631
|
+
]),
|
|
632
|
+
_: 1
|
|
633
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
634
|
+
]),
|
|
635
|
+
_: 2
|
|
636
|
+
}, [
|
|
637
|
+
e.value.table.useDialog ? {
|
|
638
|
+
name: "title",
|
|
639
|
+
fn: m(() => [
|
|
640
|
+
xe(U(R.value.title), 1)
|
|
641
|
+
]),
|
|
642
|
+
key: "0"
|
|
643
|
+
} : void 0,
|
|
644
|
+
e.value.table.useDialog ? {
|
|
645
|
+
name: "actions",
|
|
646
|
+
fn: m(() => [
|
|
647
|
+
C("button", {
|
|
648
|
+
tabindex: "0",
|
|
649
|
+
class: "vue-ui-user-options-button",
|
|
650
|
+
onClick: l[0] || (l[0] = (a) => Q(e.value.userOptions.callbacks.csv))
|
|
651
|
+
}, [
|
|
652
|
+
$e(s(Oe), {
|
|
653
|
+
name: "excel",
|
|
654
|
+
stroke: R.value.props.color
|
|
655
|
+
}, null, 8, ["stroke"])
|
|
656
|
+
])
|
|
657
|
+
]),
|
|
658
|
+
key: "1"
|
|
659
|
+
} : void 0
|
|
660
|
+
]), 1040)) : b("", !0)
|
|
661
|
+
], 46, ft));
|
|
662
|
+
}
|
|
663
|
+
}, Et = /* @__PURE__ */ ht(St, [["__scopeId", "data-v-9bbf1be0"]]);
|
|
664
|
+
export {
|
|
665
|
+
Et as default
|
|
666
|
+
};
|