vue-data-ui 2.12.8-beta.3 → 2.13.0
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/README.md +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useCssVars as Ie, computed as
|
|
2
|
-
import { u as Ge, c as je, o as He, e as ge, g as Xe, d as qe, l as Ye, i as H, f as X, X as We, G as Je, F as K, a as Ke, q as Qe, r as Ze } from "./index-
|
|
3
|
-
import { u as pe } from "./useNestedProp-
|
|
4
|
-
import { u as et } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Ie, computed as v, defineAsyncComponent as O, ref as d, shallowRef as ye, onMounted as De, onBeforeUnmount as Re, watch as Me, createElementBlock as u, openBlock as o, unref as s, normalizeStyle as _, normalizeClass as N, createBlock as z, createCommentVNode as f, createSlots as Ve, withCtx as g, renderSlot as b, normalizeProps as B, guardReactiveProps as E, createVNode as Be, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ee, nextTick as Ue } from "vue";
|
|
2
|
+
import { u as Ge, c as je, o as He, e as ge, g as Xe, d as qe, l as Ye, i as H, f as X, X as We, G as Je, F as K, a as Ke, q as Qe, r as Ze } from "./index-BXbyT0Qn.js";
|
|
3
|
+
import { u as pe } from "./useNestedProp-DVZpeH84.js";
|
|
4
|
+
import { u as et } from "./usePrinter-aKh5-HcK.js";
|
|
5
5
|
import { t as tt, u as at } from "./useResponsive-JZ9xq-JV.js";
|
|
6
6
|
import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as st } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ot from "./Title-
|
|
8
|
+
import ot from "./Title-DoWqzga-.js";
|
|
9
9
|
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], dt = ["stop-color"], ht = ["stop-color"], ft = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], mt = ["x", "y", "font-size", "fill", "font-weight"], yt = ["points", "fill"], gt = ["stroke", "stroke-width", "rx"], pt = ["x", "y", "font-size", "fill", "font-weight"], kt = ["x", "y", "font-size", "fill", "font-weight"], Ct = {
|
|
11
11
|
key: 5,
|
|
@@ -28,15 +28,15 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
28
28
|
},
|
|
29
29
|
setup(ke, { expose: Ce }) {
|
|
30
30
|
Ie((t) => ({
|
|
31
|
-
"
|
|
31
|
+
"0918d580": Pe.value
|
|
32
32
|
}));
|
|
33
|
-
const we = O(() => import("./vue-ui-accordion-
|
|
33
|
+
const we = O(() => import("./vue-ui-accordion-CXsjHe1y.js")), $e = O(() => import("./DataTable-DBkfb6pd.js")), xe = O(() => import("./PackageVersion-C5fpg4GN.js")), _e = O(() => import("./PenAndPaper-BRkuVFb4.js")), Le = O(() => import("./vue-ui-skeleton-Fxr752Oi.js")), Ae = O(() => import("./UserOptions-B3q-xfQV.js")), { vue_ui_funnel: Te } = Ge(), m = ke, R = d(null), S = d(je()), Q = d(0), Z = d(0), ee = d(0), te = d(null), ae = d(null), le = d(null), C = ye(null), L = ye(null), $ = d(!1), A = v(() => !!m.dataset && m.dataset.length);
|
|
34
34
|
De(se);
|
|
35
35
|
function se() {
|
|
36
|
-
if (He(
|
|
36
|
+
if (He(m.dataset) ? ge({
|
|
37
37
|
componentName: "VueUiFunnel",
|
|
38
38
|
type: "dataset"
|
|
39
|
-
}) :
|
|
39
|
+
}) : m.dataset.forEach((t, l) => {
|
|
40
40
|
Xe({
|
|
41
41
|
datasetObject: t,
|
|
42
42
|
requiredAttributes: ["name", "value"]
|
|
@@ -57,19 +57,19 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
57
57
|
noTitle: te.value
|
|
58
58
|
});
|
|
59
59
|
requestAnimationFrame(() => {
|
|
60
|
-
i.value.height = a, i.value.width = l, k.value = he(), e.value.responsiveProportionalSizing && (
|
|
60
|
+
i.value.height = a, i.value.width = l, k.value = he(), e.value.responsiveProportionalSizing && (h.value.circles = K({
|
|
61
61
|
relator: Math.min(l, a),
|
|
62
62
|
adjuster: 600,
|
|
63
63
|
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
64
64
|
threshold: 10,
|
|
65
65
|
fallback: 10
|
|
66
|
-
}),
|
|
66
|
+
}), h.value.names = K({
|
|
67
67
|
relator: Math.min(l, a),
|
|
68
68
|
adjuster: 600,
|
|
69
69
|
source: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
70
70
|
threshold: 10,
|
|
71
71
|
fallback: 10
|
|
72
|
-
}),
|
|
72
|
+
}), h.value.values = K({
|
|
73
73
|
relator: Math.min(l, a),
|
|
74
74
|
adjuster: 600,
|
|
75
75
|
source: e.value.style.chart.bars.dataLabels.value.fontSize,
|
|
@@ -86,42 +86,42 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
86
86
|
});
|
|
87
87
|
function oe() {
|
|
88
88
|
const t = pe({
|
|
89
|
-
userConfig:
|
|
89
|
+
userConfig: m.config,
|
|
90
90
|
defaultConfig: Te
|
|
91
91
|
});
|
|
92
92
|
return t.theme ? {
|
|
93
93
|
...pe({
|
|
94
|
-
userConfig: Ke.vue_ui_funnel[t.theme] ||
|
|
94
|
+
userConfig: Ke.vue_ui_funnel[t.theme] || m.config,
|
|
95
95
|
defaultConfig: t
|
|
96
96
|
})
|
|
97
97
|
} : t;
|
|
98
98
|
}
|
|
99
|
-
const e =
|
|
99
|
+
const e = v({
|
|
100
100
|
get: () => oe(),
|
|
101
101
|
set: (t) => t
|
|
102
102
|
}), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = lt({ config: e.value }), { svgRef: ue } = st({ config: e.value.style.chart.title });
|
|
103
|
-
Me(() =>
|
|
104
|
-
e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1,
|
|
103
|
+
Me(() => m.config, (t) => {
|
|
104
|
+
e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1, h.value.circles = e.value.style.chart.circles.dataLabels.fontSize, h.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, h.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, P.value.showTable = e.value.table.show;
|
|
105
105
|
}, { deep: !0 });
|
|
106
106
|
const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = et({
|
|
107
107
|
elementId: `funnel_${S.value}`,
|
|
108
108
|
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
109
109
|
options: e.value.userOptions.print
|
|
110
|
-
}), Oe =
|
|
110
|
+
}), Oe = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = d({
|
|
111
111
|
showTable: e.value.table.show
|
|
112
|
-
}),
|
|
112
|
+
}), h = d({
|
|
113
113
|
circles: e.value.style.chart.circles.dataLabels.fontSize,
|
|
114
114
|
names: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
115
115
|
values: e.value.style.chart.bars.dataLabels.value.fontSize
|
|
116
|
-
}), i =
|
|
116
|
+
}), i = v({
|
|
117
117
|
get: () => ({
|
|
118
118
|
height: e.value.style.chart.height,
|
|
119
119
|
width: e.value.style.chart.width
|
|
120
120
|
}),
|
|
121
121
|
set: (t) => t
|
|
122
|
-
}), p =
|
|
122
|
+
}), p = v(() => A.value ? m.dataset.map((t, l) => ({
|
|
123
123
|
...t,
|
|
124
|
-
color: t.color ? qe(t.color) : Ye(e.value.style.chart.bars.defaultColor, l /
|
|
124
|
+
color: t.color ? qe(t.color) : Ye(e.value.style.chart.bars.defaultColor, l / m.dataset.length)
|
|
125
125
|
})) : []);
|
|
126
126
|
setTimeout(() => {
|
|
127
127
|
$.value = !0;
|
|
@@ -137,8 +137,8 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
137
137
|
height: i.value.height - l - e.value.style.chart.padding.bottom
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const k =
|
|
141
|
-
const a = T.value - x.value, n = k.value.top + x.value / 2 * l + (T.value - x.value / 2) * l + x.value / 2,
|
|
140
|
+
const k = d(he()), T = v(() => k.value.height / m.dataset.length), x = v(() => T.value * e.value.style.chart.bars.gapRatio), fe = v(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = v(() => p.value.map((t, l) => {
|
|
141
|
+
const a = T.value - x.value, n = k.value.top + x.value / 2 * l + (T.value - x.value / 2) * l + x.value / 2, y = t.value / p.value[0].value, c = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
|
|
142
142
|
return {
|
|
143
143
|
...t,
|
|
144
144
|
cx: k.value.left + a / 2,
|
|
@@ -146,65 +146,65 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
146
146
|
datapointIndex: l,
|
|
147
147
|
fill: t.color,
|
|
148
148
|
height: Math.max(a, 0),
|
|
149
|
-
proportion:
|
|
149
|
+
proportion: y,
|
|
150
150
|
r: Math.max(a / 2, 0),
|
|
151
|
-
width: Math.max(
|
|
151
|
+
width: Math.max(c, 0),
|
|
152
152
|
x: k.value.left + a + fe.value,
|
|
153
153
|
y: n
|
|
154
154
|
};
|
|
155
|
-
})), Ne =
|
|
155
|
+
})), Ne = v(() => {
|
|
156
156
|
const t = r.value.map((l) => `${l.x + l.width},${l.y + (T.value - x.value) / 2}`);
|
|
157
157
|
return `${r.value[0].x},${r.value[0].y + (T.value - x.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (T.value - x.value) / 2}`;
|
|
158
|
-
}), ze =
|
|
158
|
+
}), ze = v(() => ({
|
|
159
159
|
x1: r.value[0].cx,
|
|
160
160
|
y1: r.value[0].cy,
|
|
161
161
|
x2: r.value.at(-1).cx,
|
|
162
162
|
y2: r.value.at(-1).cy
|
|
163
|
-
})), F =
|
|
163
|
+
})), F = d(!1);
|
|
164
164
|
function Se(t) {
|
|
165
165
|
F.value = t, Q.value += 1;
|
|
166
166
|
}
|
|
167
|
-
const Pe =
|
|
167
|
+
const Pe = v(() => `${p.value.length * 150}ms`), M = d(!1);
|
|
168
168
|
function Y() {
|
|
169
169
|
M.value = !M.value;
|
|
170
170
|
}
|
|
171
171
|
function be() {
|
|
172
172
|
P.value.showTable = !P.value.showTable;
|
|
173
173
|
}
|
|
174
|
-
const I =
|
|
174
|
+
const I = v(() => {
|
|
175
175
|
const t = p.value.map((a) => ({
|
|
176
176
|
name: a.name,
|
|
177
177
|
color: a.color
|
|
178
178
|
})), l = p.value.map((a) => a.value);
|
|
179
179
|
return { head: t, body: l };
|
|
180
|
-
}), V =
|
|
180
|
+
}), V = v(() => {
|
|
181
181
|
const t = [
|
|
182
182
|
e.value.table.columnNames.series,
|
|
183
183
|
e.value.table.columnNames.value,
|
|
184
184
|
e.value.table.columnNames.percentage
|
|
185
|
-
], l = I.value.head.map((
|
|
185
|
+
], l = I.value.head.map((y, c) => {
|
|
186
186
|
const D = H(
|
|
187
187
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
188
|
-
I.value.body[
|
|
188
|
+
I.value.body[c],
|
|
189
189
|
X({
|
|
190
190
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
191
|
-
v: I.value.body[
|
|
191
|
+
v: I.value.body[c],
|
|
192
192
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
193
193
|
r: e.value.table.td.roundingValue
|
|
194
194
|
}),
|
|
195
|
-
{ datapoint: r.value[
|
|
195
|
+
{ datapoint: r.value[c] }
|
|
196
196
|
), W = H(
|
|
197
197
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
198
|
-
r.value[
|
|
198
|
+
r.value[c].proportion * 100,
|
|
199
199
|
X({
|
|
200
|
-
v: r.value[
|
|
200
|
+
v: r.value[c].proportion * 100,
|
|
201
201
|
s: "%",
|
|
202
202
|
r: e.value.table.td.roundingPercentage
|
|
203
203
|
}),
|
|
204
|
-
{ datapoint: r.value[
|
|
204
|
+
{ datapoint: r.value[c] }
|
|
205
205
|
);
|
|
206
206
|
return [
|
|
207
|
-
{ color:
|
|
207
|
+
{ color: y.color, name: y.name },
|
|
208
208
|
D,
|
|
209
209
|
W
|
|
210
210
|
];
|
|
@@ -232,12 +232,12 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
232
232
|
config: a
|
|
233
233
|
};
|
|
234
234
|
});
|
|
235
|
-
function me() {
|
|
235
|
+
function me(t = null) {
|
|
236
236
|
Ue(() => {
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
], [I.value.body[
|
|
240
|
-
Ze({ csvContent:
|
|
237
|
+
const l = I.value.head.map((y, c) => [[
|
|
238
|
+
y.name
|
|
239
|
+
], [I.value.body[c]], [r.value[c].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), n = Qe(a);
|
|
240
|
+
t ? t(n) : Ze({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
function Fe() {
|
|
@@ -329,49 +329,49 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
329
329
|
t.$slots.menuIcon ? {
|
|
330
330
|
name: "menuIcon",
|
|
331
331
|
fn: g(({ isOpen: a, color: n }) => [
|
|
332
|
-
|
|
332
|
+
b(t.$slots, "menuIcon", B(E({ isOpen: a, color: n })), void 0, !0)
|
|
333
333
|
]),
|
|
334
334
|
key: "0"
|
|
335
335
|
} : void 0,
|
|
336
336
|
t.$slots.optionPdf ? {
|
|
337
337
|
name: "optionPdf",
|
|
338
338
|
fn: g(() => [
|
|
339
|
-
|
|
339
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
340
340
|
]),
|
|
341
341
|
key: "1"
|
|
342
342
|
} : void 0,
|
|
343
343
|
t.$slots.optionCsv ? {
|
|
344
344
|
name: "optionCsv",
|
|
345
345
|
fn: g(() => [
|
|
346
|
-
|
|
346
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
347
347
|
]),
|
|
348
348
|
key: "2"
|
|
349
349
|
} : void 0,
|
|
350
350
|
t.$slots.optionImg ? {
|
|
351
351
|
name: "optionImg",
|
|
352
352
|
fn: g(() => [
|
|
353
|
-
|
|
353
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
354
354
|
]),
|
|
355
355
|
key: "3"
|
|
356
356
|
} : void 0,
|
|
357
357
|
t.$slots.optionTable ? {
|
|
358
358
|
name: "optionTable",
|
|
359
359
|
fn: g(() => [
|
|
360
|
-
|
|
360
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
361
361
|
]),
|
|
362
362
|
key: "4"
|
|
363
363
|
} : void 0,
|
|
364
364
|
t.$slots.optionFullscreen ? {
|
|
365
365
|
name: "optionFullscreen",
|
|
366
366
|
fn: g(({ toggleFullscreen: a, isFullscreen: n }) => [
|
|
367
|
-
|
|
367
|
+
b(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
|
|
368
368
|
]),
|
|
369
369
|
key: "5"
|
|
370
370
|
} : void 0,
|
|
371
371
|
t.$slots.optionAnnotator ? {
|
|
372
372
|
name: "optionAnnotator",
|
|
373
373
|
fn: g(({ toggleAnnotator: a, isAnnotator: n }) => [
|
|
374
|
-
|
|
374
|
+
b(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: a, isAnnotator: n })), void 0, !0)
|
|
375
375
|
]),
|
|
376
376
|
key: "6"
|
|
377
377
|
} : void 0
|
|
@@ -396,7 +396,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
396
396
|
pointerEvents: "none"
|
|
397
397
|
}
|
|
398
398
|
}, [
|
|
399
|
-
|
|
399
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
400
400
|
], 8, it)) : f("", !0),
|
|
401
401
|
w("defs", null, [
|
|
402
402
|
w("linearGradient", {
|
|
@@ -433,7 +433,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
433
433
|
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
434
434
|
}
|
|
435
435
|
}), null, 16, ft)) : f("", !0),
|
|
436
|
-
(o(!0), u(U, null, G(r.value, ({ cx: a, cy: n, r:
|
|
436
|
+
(o(!0), u(U, null, G(r.value, ({ cx: a, cy: n, r: y, fill: c }, D) => (o(), u("circle", J({ ref_for: !0 }, { cx: a, cy: n, r: y, fill: c }, {
|
|
437
437
|
stroke: e.value.style.chart.circles.stroke,
|
|
438
438
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
439
439
|
class: {
|
|
@@ -445,9 +445,9 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
445
445
|
}), null, 16, bt))), 256)),
|
|
446
446
|
(o(!0), u(U, null, G(r.value, (a, n) => (o(), u("text", {
|
|
447
447
|
x: a.cx,
|
|
448
|
-
y: a.cy +
|
|
448
|
+
y: a.cy + h.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
449
449
|
"text-anchor": "middle",
|
|
450
|
-
"font-size":
|
|
450
|
+
"font-size": h.value.circles,
|
|
451
451
|
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Je)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
452
452
|
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
453
453
|
class: N({
|
|
@@ -477,7 +477,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
477
477
|
transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
|
|
478
478
|
})
|
|
479
479
|
}, null, 14, yt)) : f("", !0),
|
|
480
|
-
(o(!0), u(U, null, G(r.value, ({ x: a, y: n, height:
|
|
480
|
+
(o(!0), u(U, null, G(r.value, ({ x: a, y: n, height: y, width: c, fill: D }, W) => (o(), u("rect", J({ ref_for: !0 }, { x: a, y: n, height: y, width: c, fill: D }, {
|
|
481
481
|
stroke: e.value.style.chart.bars.stroke,
|
|
482
482
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
483
483
|
rx: e.value.style.chart.bars.borderRadius,
|
|
@@ -491,9 +491,9 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
491
491
|
(o(!0), u(U, null, G(r.value, (a, n) => (o(), u("g", null, [
|
|
492
492
|
w("text", {
|
|
493
493
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
494
|
-
y: a.cy -
|
|
494
|
+
y: a.cy - h.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
495
495
|
"text-anchor": "start",
|
|
496
|
-
"font-size":
|
|
496
|
+
"font-size": h.value.names,
|
|
497
497
|
fill: e.value.style.chart.bars.dataLabels.name.color,
|
|
498
498
|
"font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
499
499
|
class: N({
|
|
@@ -505,9 +505,9 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
505
505
|
}, j(a.name), 15, pt),
|
|
506
506
|
w("text", {
|
|
507
507
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
508
|
-
y: a.cy +
|
|
508
|
+
y: a.cy + h.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
|
|
509
509
|
"text-anchor": "start",
|
|
510
|
-
"font-size":
|
|
510
|
+
"font-size": h.value.values,
|
|
511
511
|
fill: e.value.style.chart.bars.dataLabels.value.color,
|
|
512
512
|
"font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
513
513
|
class: N({
|
|
@@ -528,10 +528,10 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
528
528
|
{ datapoint: a }
|
|
529
529
|
)), 15, kt)
|
|
530
530
|
]))), 256)),
|
|
531
|
-
|
|
531
|
+
b(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
532
532
|
], 14, ut)) : f("", !0),
|
|
533
533
|
t.$slots.watermark ? (o(), u("div", Ct, [
|
|
534
|
-
|
|
534
|
+
b(t.$slots, "watermark", B(E({ isPrinting: s(ie) || s(ce) })), void 0, !0)
|
|
535
535
|
])) : f("", !0),
|
|
536
536
|
A.value ? f("", !0) : (o(), z(s(Le), {
|
|
537
537
|
key: 6,
|
|
@@ -554,7 +554,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
554
554
|
ref: ae,
|
|
555
555
|
dir: "auto"
|
|
556
556
|
}, [
|
|
557
|
-
|
|
557
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
558
558
|
], 512)) : f("", !0),
|
|
559
559
|
A.value ? (o(), z(s(we), {
|
|
560
560
|
key: 8,
|
|
@@ -598,7 +598,7 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
598
598
|
}, 8, ["config"])) : f("", !0)
|
|
599
599
|
], 46, rt));
|
|
600
600
|
}
|
|
601
|
-
}, Pt = /* @__PURE__ */ nt($t, [["__scopeId", "data-v-
|
|
601
|
+
}, Pt = /* @__PURE__ */ nt($t, [["__scopeId", "data-v-f6eb5104"]]);
|
|
602
602
|
export {
|
|
603
603
|
Pt as default
|
|
604
604
|
};
|