vue-data-ui 3.0.0-next.0 → 3.0.0-next.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/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { t as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { useCssVars as De, computed as d, defineAsyncComponent as O, ref as h, shallowRef as ge, onMounted as Re, onBeforeUnmount as Me, watch as Be, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as _, normalizeClass as z, createBlock as N, createCommentVNode as b, createSlots as Ee, withCtx as g, renderSlot as m, normalizeProps as E, guardReactiveProps as V, createVNode as Ve, createElementVNode as w, mergeProps as J, Fragment as U, renderList as G, toDisplayString as j, createTextVNode as Ue, nextTick as Ge } from "vue";
|
|
2
|
+
import { u as je, c as He, o as Xe, e as pe, g as qe, d as Ye, l as We, i as H, f as X, X as Je, F as Ke, E as K, a as Qe, q as Ze, r as et } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { u as ke } from "./useNestedProp-DorElw91.js";
|
|
4
|
+
import { u as tt } from "./usePrinter-C9qkgv0r.js";
|
|
5
|
+
import { t as at, u as lt } from "./useResponsive-DfdjqQps.js";
|
|
6
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import nt from "./Title-pVYRzQXY.js";
|
|
9
|
+
import rt from "./img-ku4zevVD.js";
|
|
10
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const it = ["id"], ct = ["xmlns", "viewBox"], vt = ["width", "height"], dt = ["id"], ht = ["stop-color"], ft = ["stop-color"], bt = ["stop-color"], mt = ["stroke", "stroke-width"], yt = ["stroke", "stroke-width"], gt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["points", "fill"], kt = ["stroke", "stroke-width", "rx"], Ct = ["x", "y", "font-size", "fill", "font-weight"], wt = ["x", "y", "font-size", "fill", "font-weight"], $t = {
|
|
11
12
|
key: 5,
|
|
12
13
|
class: "vue-data-ui-watermark"
|
|
13
|
-
},
|
|
14
|
+
}, xt = ["innerHTML"], Lt = {
|
|
14
15
|
__name: "vue-ui-funnel",
|
|
15
16
|
props: {
|
|
16
17
|
config: {
|
|
@@ -26,22 +27,22 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
|
-
setup(
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
setup(Ce, { expose: we }) {
|
|
31
|
+
De((t) => ({
|
|
32
|
+
83613044: Pe.value
|
|
32
33
|
}));
|
|
33
|
-
const
|
|
34
|
-
|
|
34
|
+
const $e = O(() => import("./vue-ui-accordion-DgZK-qDz.js")), xe = O(() => import("./DataTable-CgL0Rz0x.js")), Le = O(() => import("./PackageVersion-CAkNkiIG.js")), _e = O(() => import("./PenAndPaper-Cx1-5zdD.js")), Ae = O(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), Te = O(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_funnel: Se } = je(), y = Ce, $ = h(null), P = h(He()), Q = h(0), Z = h(0), ee = h(0), te = h(null), ae = h(null), le = h(null), C = ge(null), A = ge(null), x = h(!1), T = d(() => !!y.dataset && y.dataset.length);
|
|
35
|
+
Re(se);
|
|
35
36
|
function se() {
|
|
36
|
-
if (
|
|
37
|
+
if (Xe(y.dataset) ? pe({
|
|
37
38
|
componentName: "VueUiFunnel",
|
|
38
39
|
type: "dataset"
|
|
39
|
-
}) :
|
|
40
|
-
|
|
40
|
+
}) : y.dataset.forEach((t, l) => {
|
|
41
|
+
qe({
|
|
41
42
|
datasetObject: t,
|
|
42
43
|
requiredAttributes: ["name", "value"]
|
|
43
44
|
}).forEach((a) => {
|
|
44
|
-
|
|
45
|
+
T.value = !1, pe({
|
|
45
46
|
componentName: "VueUiFunnel",
|
|
46
47
|
type: "datasetSerieAttribute",
|
|
47
48
|
property: a,
|
|
@@ -49,49 +50,49 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
49
50
|
});
|
|
50
51
|
});
|
|
51
52
|
}), e.value.responsive) {
|
|
52
|
-
const t =
|
|
53
|
-
const { width: l, height: a } =
|
|
54
|
-
chart:
|
|
53
|
+
const t = at(() => {
|
|
54
|
+
const { width: l, height: a } = lt({
|
|
55
|
+
chart: $.value,
|
|
55
56
|
title: e.value.style.chart.title.text ? le.value : null,
|
|
56
57
|
source: ae.value,
|
|
57
58
|
noTitle: te.value
|
|
58
59
|
});
|
|
59
60
|
requestAnimationFrame(() => {
|
|
60
|
-
|
|
61
|
+
v.value.height = a, v.value.width = l, k.value = he(), e.value.responsiveProportionalSizing ? (c.value.circles = K({
|
|
61
62
|
relator: Math.min(l, a),
|
|
62
63
|
adjuster: 600,
|
|
63
64
|
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
64
65
|
threshold: 10,
|
|
65
66
|
fallback: 10
|
|
66
|
-
}),
|
|
67
|
+
}), c.value.names = K({
|
|
67
68
|
relator: Math.min(l, a),
|
|
68
69
|
adjuster: 600,
|
|
69
70
|
source: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
70
71
|
threshold: 10,
|
|
71
72
|
fallback: 10
|
|
72
|
-
}),
|
|
73
|
+
}), c.value.values = K({
|
|
73
74
|
relator: Math.min(l, a),
|
|
74
75
|
adjuster: 600,
|
|
75
76
|
source: e.value.style.chart.bars.dataLabels.value.fontSize,
|
|
76
77
|
threshold: 10,
|
|
77
78
|
fallback: 10
|
|
78
|
-
})) : (
|
|
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);
|
|
79
80
|
});
|
|
80
81
|
});
|
|
81
|
-
C.value && (
|
|
82
|
+
C.value && (A.value && C.value.unobserve(A.value), C.value.disconnect()), C.value = new ResizeObserver(t), A.value = $.value.parentNode, C.value.observe(A.value);
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
-
C.value && (
|
|
85
|
+
Me(() => {
|
|
86
|
+
C.value && (A.value && C.value.unobserve(A.value), C.value.disconnect());
|
|
86
87
|
});
|
|
87
88
|
function oe() {
|
|
88
|
-
const t =
|
|
89
|
-
userConfig:
|
|
90
|
-
defaultConfig:
|
|
89
|
+
const t = ke({
|
|
90
|
+
userConfig: y.config,
|
|
91
|
+
defaultConfig: Se
|
|
91
92
|
});
|
|
92
93
|
return t.theme ? {
|
|
93
|
-
...
|
|
94
|
-
userConfig:
|
|
94
|
+
...ke({
|
|
95
|
+
userConfig: Qe.vue_ui_funnel[t.theme] || y.config,
|
|
95
96
|
defaultConfig: t
|
|
96
97
|
})
|
|
97
98
|
} : t;
|
|
@@ -99,113 +100,113 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
99
100
|
const e = d({
|
|
100
101
|
get: () => oe(),
|
|
101
102
|
set: (t) => t
|
|
102
|
-
}), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } =
|
|
103
|
-
|
|
104
|
-
e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1,
|
|
103
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = st({ config: e.value }), { svgRef: ue } = ot({ config: e.value.style.chart.title });
|
|
104
|
+
Be(() => y.config, (t) => {
|
|
105
|
+
e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.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, I.value.showTable = e.value.table.show;
|
|
105
106
|
}, { deep: !0 });
|
|
106
|
-
const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } =
|
|
107
|
-
elementId: `funnel_${
|
|
107
|
+
const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = tt({
|
|
108
|
+
elementId: `funnel_${P.value}`,
|
|
108
109
|
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
109
110
|
options: e.value.userOptions.print
|
|
110
|
-
}),
|
|
111
|
+
}), Oe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), I = h({
|
|
111
112
|
showTable: e.value.table.show
|
|
112
|
-
}),
|
|
113
|
+
}), c = h({
|
|
113
114
|
circles: e.value.style.chart.circles.dataLabels.fontSize,
|
|
114
115
|
names: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
115
116
|
values: e.value.style.chart.bars.dataLabels.value.fontSize
|
|
116
|
-
}),
|
|
117
|
+
}), v = d({
|
|
117
118
|
get: () => ({
|
|
118
119
|
height: e.value.style.chart.height,
|
|
119
120
|
width: e.value.style.chart.width
|
|
120
121
|
}),
|
|
121
122
|
set: (t) => t
|
|
122
|
-
}), p = d(() =>
|
|
123
|
+
}), p = d(() => T.value ? y.dataset.map((t, l) => ({
|
|
123
124
|
...t,
|
|
124
|
-
color: t.color ?
|
|
125
|
+
color: t.color ? Ye(t.color) : We(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
|
|
125
126
|
})) : []);
|
|
126
127
|
setTimeout(() => {
|
|
127
|
-
|
|
128
|
+
x.value = !0;
|
|
128
129
|
}, p.value.length * 150);
|
|
129
130
|
function he() {
|
|
130
131
|
const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
|
|
131
132
|
return {
|
|
132
133
|
left: t,
|
|
133
134
|
top: l,
|
|
134
|
-
right:
|
|
135
|
-
bottom:
|
|
136
|
-
width:
|
|
137
|
-
height:
|
|
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
|
|
138
139
|
};
|
|
139
140
|
}
|
|
140
|
-
const k = h(he()),
|
|
141
|
-
const a =
|
|
141
|
+
const k = h(he()), S = d(() => k.value.height / y.dataset.length), L = d(() => S.value * e.value.style.chart.bars.gapRatio), fe = d(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = d(() => p.value.map((t, l) => {
|
|
142
|
+
const a = S.value - L.value, o = k.value.top + L.value / 2 * l + (S.value - L.value / 2) * l + L.value / 2, f = t.value / p.value[0].value, u = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
|
|
142
143
|
return {
|
|
143
144
|
...t,
|
|
144
145
|
cx: k.value.left + a / 2,
|
|
145
|
-
cy:
|
|
146
|
+
cy: o + a / 2,
|
|
146
147
|
datapointIndex: l,
|
|
147
148
|
fill: t.color,
|
|
148
149
|
height: Math.max(a, 0),
|
|
149
|
-
proportion:
|
|
150
|
+
proportion: f,
|
|
150
151
|
r: Math.max(a / 2, 0),
|
|
151
|
-
width: Math.max(
|
|
152
|
+
width: Math.max(u, 0),
|
|
152
153
|
x: k.value.left + a + fe.value,
|
|
153
|
-
y:
|
|
154
|
+
y: o
|
|
154
155
|
};
|
|
155
|
-
})),
|
|
156
|
-
const t = r.value.map((l) => `${l.x + l.width},${l.y + (
|
|
157
|
-
return `${r.value[0].x},${r.value[0].y + (
|
|
158
|
-
}),
|
|
156
|
+
})), ze = d(() => {
|
|
157
|
+
const t = r.value.map((l) => `${l.x + l.width},${l.y + (S.value - L.value) / 2}`);
|
|
158
|
+
return `${r.value[0].x},${r.value[0].y + (S.value - L.value) / 2} ${t.toString()} ${r.value.at(-1).x},${r.value.at(-1).y + (S.value - L.value) / 2}`;
|
|
159
|
+
}), Ne = d(() => ({
|
|
159
160
|
x1: r.value[0].cx,
|
|
160
161
|
y1: r.value[0].cy,
|
|
161
162
|
x2: r.value.at(-1).cx,
|
|
162
163
|
y2: r.value.at(-1).cy
|
|
163
164
|
})), F = h(!1);
|
|
164
|
-
function
|
|
165
|
+
function be(t) {
|
|
165
166
|
F.value = t, Q.value += 1;
|
|
166
167
|
}
|
|
167
168
|
const Pe = d(() => `${p.value.length * 150}ms`), M = h(!1);
|
|
168
169
|
function Y() {
|
|
169
170
|
M.value = !M.value;
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
172
|
+
function me() {
|
|
173
|
+
I.value.showTable = !I.value.showTable;
|
|
173
174
|
}
|
|
174
|
-
const
|
|
175
|
+
const D = d(() => {
|
|
175
176
|
const t = p.value.map((a) => ({
|
|
176
177
|
name: a.name,
|
|
177
178
|
color: a.color
|
|
178
179
|
})), l = p.value.map((a) => a.value);
|
|
179
180
|
return { head: t, body: l };
|
|
180
|
-
}),
|
|
181
|
+
}), B = d(() => {
|
|
181
182
|
const t = [
|
|
182
183
|
e.value.table.columnNames.series,
|
|
183
184
|
e.value.table.columnNames.value,
|
|
184
185
|
e.value.table.columnNames.percentage
|
|
185
|
-
], l =
|
|
186
|
-
const
|
|
186
|
+
], l = D.value.head.map((f, u) => {
|
|
187
|
+
const R = H(
|
|
187
188
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
188
|
-
|
|
189
|
+
D.value.body[u],
|
|
189
190
|
X({
|
|
190
191
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
191
|
-
v:
|
|
192
|
+
v: D.value.body[u],
|
|
192
193
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
193
194
|
r: e.value.table.td.roundingValue
|
|
194
195
|
}),
|
|
195
|
-
{ datapoint: r.value[
|
|
196
|
+
{ datapoint: r.value[u] }
|
|
196
197
|
), W = H(
|
|
197
198
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
198
|
-
r.value[
|
|
199
|
+
r.value[u].proportion * 100,
|
|
199
200
|
X({
|
|
200
|
-
v: r.value[
|
|
201
|
+
v: r.value[u].proportion * 100,
|
|
201
202
|
s: "%",
|
|
202
203
|
r: e.value.table.td.roundingPercentage
|
|
203
204
|
}),
|
|
204
|
-
{ datapoint: r.value[
|
|
205
|
+
{ datapoint: r.value[u] }
|
|
205
206
|
);
|
|
206
207
|
return [
|
|
207
|
-
{ color:
|
|
208
|
-
|
|
208
|
+
{ color: f.color, name: f.name },
|
|
209
|
+
R,
|
|
209
210
|
W
|
|
210
211
|
];
|
|
211
212
|
}), a = {
|
|
@@ -232,55 +233,69 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
232
233
|
config: a
|
|
233
234
|
};
|
|
234
235
|
});
|
|
235
|
-
function
|
|
236
|
-
|
|
237
|
-
const l =
|
|
238
|
-
|
|
239
|
-
], [
|
|
240
|
-
t ? t(
|
|
236
|
+
function ye(t = null) {
|
|
237
|
+
Ge(() => {
|
|
238
|
+
const l = D.value.head.map((f, u) => [[
|
|
239
|
+
f.name
|
|
240
|
+
], [D.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 = Ze(a);
|
|
241
|
+
t ? t(o) : et({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
241
242
|
});
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function Ie() {
|
|
244
245
|
return p.value;
|
|
245
246
|
}
|
|
246
|
-
|
|
247
|
-
|
|
247
|
+
async function Fe({ scale: t = 2 } = {}) {
|
|
248
|
+
if (!$.value) return;
|
|
249
|
+
const { width: l, height: a } = $.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: u } = await rt({ domElement: $.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
|
+
return we({
|
|
260
|
+
getData: Ie,
|
|
261
|
+
getImage: Fe,
|
|
248
262
|
generatePdf: ve,
|
|
249
|
-
generateCsv:
|
|
263
|
+
generateCsv: ye,
|
|
250
264
|
generateImage: de,
|
|
251
|
-
toggleTable:
|
|
252
|
-
toggleAnnotator: Y
|
|
253
|
-
|
|
265
|
+
toggleTable: me,
|
|
266
|
+
toggleAnnotator: Y,
|
|
267
|
+
toggleFullscreen: be
|
|
268
|
+
}), (t, l) => (n(), i("div", {
|
|
254
269
|
ref_key: "funnelChart",
|
|
255
|
-
ref:
|
|
256
|
-
class:
|
|
257
|
-
style:
|
|
258
|
-
id: `funnel_${
|
|
270
|
+
ref: $,
|
|
271
|
+
class: z(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
272
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
273
|
+
id: `funnel_${P.value}`,
|
|
259
274
|
onMouseenter: l[1] || (l[1] = () => s(ne)(!0)),
|
|
260
275
|
onMouseleave: l[2] || (l[2] = () => s(ne)(!1))
|
|
261
276
|
}, [
|
|
262
|
-
e.value.userOptions.buttons.annotator ? (
|
|
277
|
+
e.value.userOptions.buttons.annotator ? (n(), N(s(_e), {
|
|
263
278
|
key: 0,
|
|
264
279
|
svgRef: s(ue),
|
|
265
280
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
266
281
|
color: e.value.style.chart.color,
|
|
267
282
|
active: M.value,
|
|
268
283
|
onClose: Y
|
|
269
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
270
|
-
|
|
284
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
285
|
+
Oe.value ? (n(), i("div", {
|
|
271
286
|
key: 1,
|
|
272
287
|
ref_key: "noTitle",
|
|
273
288
|
ref: te,
|
|
274
289
|
class: "vue-data-ui-no-title-space",
|
|
275
290
|
style: "height:36px; width: 100%;background:transparent"
|
|
276
|
-
}, null, 512)) :
|
|
277
|
-
e.value.style.chart.title.text ? (
|
|
291
|
+
}, null, 512)) : b("", !0),
|
|
292
|
+
e.value.style.chart.title.text ? (n(), i("div", {
|
|
278
293
|
key: 2,
|
|
279
294
|
ref_key: "chartTitle",
|
|
280
295
|
ref: le,
|
|
281
296
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
282
297
|
}, [
|
|
283
|
-
(
|
|
298
|
+
(n(), N(nt, {
|
|
284
299
|
key: `title_${Z.value}`,
|
|
285
300
|
config: {
|
|
286
301
|
title: {
|
|
@@ -293,15 +308,15 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
293
308
|
}
|
|
294
309
|
}
|
|
295
310
|
}, null, 8, ["config"]))
|
|
296
|
-
], 512)) :
|
|
297
|
-
e.value.userOptions.show &&
|
|
311
|
+
], 512)) : b("", !0),
|
|
312
|
+
e.value.userOptions.show && T.value && (s(re) || s(q)) ? (n(), N(s(Te), {
|
|
298
313
|
ref: "details",
|
|
299
314
|
key: `user_option_${Q.value}`,
|
|
300
315
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
301
316
|
color: e.value.style.chart.color,
|
|
302
317
|
isPrinting: s(ie),
|
|
303
318
|
isImaging: s(ce),
|
|
304
|
-
uid:
|
|
319
|
+
uid: P.value,
|
|
305
320
|
hasTooltip: !1,
|
|
306
321
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
307
322
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -310,97 +325,98 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
310
325
|
hasLabel: !1,
|
|
311
326
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
312
327
|
isFullscreen: F.value,
|
|
313
|
-
chartElement:
|
|
328
|
+
chartElement: $.value,
|
|
314
329
|
position: e.value.userOptions.position,
|
|
315
330
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
316
331
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
317
332
|
isAnnotation: M.value,
|
|
318
333
|
callbacks: e.value.userOptions.callbacks,
|
|
334
|
+
printScale: e.value.userOptions.print.scale,
|
|
319
335
|
onToggleAnnotator: Y,
|
|
320
|
-
onToggleFullscreen:
|
|
336
|
+
onToggleFullscreen: be,
|
|
321
337
|
onGeneratePdf: s(ve),
|
|
322
338
|
onGenerateImage: s(de),
|
|
323
|
-
onToggleTable:
|
|
324
|
-
onGenerateCsv:
|
|
325
|
-
style:
|
|
339
|
+
onToggleTable: me,
|
|
340
|
+
onGenerateCsv: ye,
|
|
341
|
+
style: _({
|
|
326
342
|
visibility: s(re) ? s(q) ? "visible" : "hidden" : "visible"
|
|
327
343
|
})
|
|
328
|
-
},
|
|
344
|
+
}, Ee({ _: 2 }, [
|
|
329
345
|
t.$slots.menuIcon ? {
|
|
330
346
|
name: "menuIcon",
|
|
331
|
-
fn: g(({ isOpen: a, color:
|
|
332
|
-
|
|
347
|
+
fn: g(({ isOpen: a, color: o }) => [
|
|
348
|
+
m(t.$slots, "menuIcon", E(V({ isOpen: a, color: o })), void 0, !0)
|
|
333
349
|
]),
|
|
334
350
|
key: "0"
|
|
335
351
|
} : void 0,
|
|
336
352
|
t.$slots.optionPdf ? {
|
|
337
353
|
name: "optionPdf",
|
|
338
354
|
fn: g(() => [
|
|
339
|
-
|
|
355
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
340
356
|
]),
|
|
341
357
|
key: "1"
|
|
342
358
|
} : void 0,
|
|
343
359
|
t.$slots.optionCsv ? {
|
|
344
360
|
name: "optionCsv",
|
|
345
361
|
fn: g(() => [
|
|
346
|
-
|
|
362
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
347
363
|
]),
|
|
348
364
|
key: "2"
|
|
349
365
|
} : void 0,
|
|
350
366
|
t.$slots.optionImg ? {
|
|
351
367
|
name: "optionImg",
|
|
352
368
|
fn: g(() => [
|
|
353
|
-
|
|
369
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
354
370
|
]),
|
|
355
371
|
key: "3"
|
|
356
372
|
} : void 0,
|
|
357
373
|
t.$slots.optionTable ? {
|
|
358
374
|
name: "optionTable",
|
|
359
375
|
fn: g(() => [
|
|
360
|
-
|
|
376
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
361
377
|
]),
|
|
362
378
|
key: "4"
|
|
363
379
|
} : void 0,
|
|
364
380
|
t.$slots.optionFullscreen ? {
|
|
365
381
|
name: "optionFullscreen",
|
|
366
|
-
fn: g(({ toggleFullscreen: a, isFullscreen:
|
|
367
|
-
|
|
382
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
383
|
+
m(t.$slots, "optionFullscreen", E(V({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
368
384
|
]),
|
|
369
385
|
key: "5"
|
|
370
386
|
} : void 0,
|
|
371
387
|
t.$slots.optionAnnotator ? {
|
|
372
388
|
name: "optionAnnotator",
|
|
373
|
-
fn: g(({ toggleAnnotator: a, isAnnotator:
|
|
374
|
-
|
|
389
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
390
|
+
m(t.$slots, "optionAnnotator", E(V({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
375
391
|
]),
|
|
376
392
|
key: "6"
|
|
377
393
|
} : void 0
|
|
378
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
379
|
-
|
|
394
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
395
|
+
T.value ? (n(), i("svg", {
|
|
380
396
|
key: 4,
|
|
381
397
|
ref_key: "svgRef",
|
|
382
398
|
ref: ue,
|
|
383
|
-
xmlns: s(
|
|
384
|
-
class:
|
|
385
|
-
viewBox: `0 0 ${
|
|
386
|
-
style:
|
|
399
|
+
xmlns: s(Je),
|
|
400
|
+
class: z({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
401
|
+
viewBox: `0 0 ${v.value.width <= 0 ? 10 : v.value.width} ${v.value.height <= 0 ? 10 : v.value.height}`,
|
|
402
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
387
403
|
}, [
|
|
388
|
-
|
|
389
|
-
t.$slots["chart-background"] ? (
|
|
404
|
+
Ve(s(Le)),
|
|
405
|
+
t.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
390
406
|
key: 0,
|
|
391
407
|
x: 0,
|
|
392
408
|
y: 0,
|
|
393
|
-
width:
|
|
394
|
-
height:
|
|
409
|
+
width: v.value.width <= 0 ? 10 : v.value.width,
|
|
410
|
+
height: v.value.height <= 0 ? 10 : v.value.height,
|
|
395
411
|
style: {
|
|
396
412
|
pointerEvents: "none"
|
|
397
413
|
}
|
|
398
414
|
}, [
|
|
399
|
-
|
|
400
|
-
], 8,
|
|
415
|
+
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
416
|
+
], 8, vt)) : b("", !0),
|
|
401
417
|
w("defs", null, [
|
|
402
418
|
w("linearGradient", {
|
|
403
|
-
id: `funnel_area_${
|
|
419
|
+
id: `funnel_area_${P.value}`,
|
|
404
420
|
x1: "0%",
|
|
405
421
|
x2: "100%",
|
|
406
422
|
y1: "0%",
|
|
@@ -410,18 +426,18 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
410
426
|
offset: "0%",
|
|
411
427
|
"stop-color": e.value.style.chart.backgroundColor,
|
|
412
428
|
"stop-opacity": 0
|
|
413
|
-
}, null, 8,
|
|
429
|
+
}, null, 8, ht),
|
|
414
430
|
w("stop", {
|
|
415
431
|
offset: "20%",
|
|
416
432
|
"stop-color": e.value.style.chart.area.color
|
|
417
|
-
}, null, 8,
|
|
433
|
+
}, null, 8, ft),
|
|
418
434
|
w("stop", {
|
|
419
435
|
offset: "100%",
|
|
420
436
|
"stop-color": e.value.style.chart.area.color
|
|
421
|
-
}, null, 8,
|
|
422
|
-
], 8,
|
|
437
|
+
}, null, 8, bt)
|
|
438
|
+
], 8, dt)
|
|
423
439
|
]),
|
|
424
|
-
e.value.style.chart.circleLinks.show ? (
|
|
440
|
+
e.value.style.chart.circleLinks.show ? (n(), i("line", J({ key: 1 }, Ne.value, {
|
|
425
441
|
stroke: e.value.style.chart.circleLinks.color,
|
|
426
442
|
"stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
|
|
427
443
|
"stroke-linecap": "round",
|
|
@@ -432,29 +448,29 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
432
448
|
strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
|
|
433
449
|
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
434
450
|
}
|
|
435
|
-
}), null, 16,
|
|
436
|
-
(
|
|
451
|
+
}), null, 16, mt)) : b("", !0),
|
|
452
|
+
(n(!0), i(U, null, G(r.value, ({ cx: a, cy: o, r: f, fill: u }, R) => (n(), i("circle", J({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: u }, {
|
|
437
453
|
stroke: e.value.style.chart.circles.stroke,
|
|
438
454
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
439
455
|
class: {
|
|
440
|
-
animated: e.value.useCssAnimation &&
|
|
456
|
+
animated: e.value.useCssAnimation && !x.value
|
|
441
457
|
},
|
|
442
458
|
style: {
|
|
443
|
-
animationDelay: `${150 *
|
|
459
|
+
animationDelay: `${150 * R}ms`
|
|
444
460
|
}
|
|
445
|
-
}), null, 16,
|
|
446
|
-
(
|
|
461
|
+
}), null, 16, yt))), 256)),
|
|
462
|
+
(n(!0), i(U, null, G(r.value, (a, o) => (n(), i("text", {
|
|
447
463
|
x: a.cx,
|
|
448
|
-
y: a.cy +
|
|
464
|
+
y: a.cy + c.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
449
465
|
"text-anchor": "middle",
|
|
450
|
-
"font-size":
|
|
451
|
-
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(
|
|
466
|
+
"font-size": c.value.circles,
|
|
467
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Ke)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
452
468
|
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
453
|
-
class:
|
|
454
|
-
animated: e.value.useCssAnimation &&
|
|
469
|
+
class: z({
|
|
470
|
+
animated: e.value.useCssAnimation && !x.value
|
|
455
471
|
}),
|
|
456
|
-
style:
|
|
457
|
-
animationDelay: `${150 *
|
|
472
|
+
style: _({
|
|
473
|
+
animationDelay: `${150 * o}ms`
|
|
458
474
|
})
|
|
459
475
|
}, j(s(H)(
|
|
460
476
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
@@ -465,56 +481,56 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
465
481
|
r: e.value.style.chart.circles.dataLabels.rounding
|
|
466
482
|
}),
|
|
467
483
|
{ datapoint: a }
|
|
468
|
-
)), 15,
|
|
469
|
-
e.value.style.chart.area.show ? (
|
|
484
|
+
)), 15, gt))), 256)),
|
|
485
|
+
e.value.style.chart.area.show ? (n(), i("polygon", {
|
|
470
486
|
key: 2,
|
|
471
|
-
points:
|
|
472
|
-
fill: `url(#funnel_area_${
|
|
473
|
-
class:
|
|
474
|
-
animated: e.value.useCssAnimation &&
|
|
487
|
+
points: ze.value,
|
|
488
|
+
fill: `url(#funnel_area_${P.value})`,
|
|
489
|
+
class: z({
|
|
490
|
+
animated: e.value.useCssAnimation && !x.value
|
|
475
491
|
}),
|
|
476
|
-
style:
|
|
492
|
+
style: _({
|
|
477
493
|
transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
|
|
478
494
|
})
|
|
479
|
-
}, null, 14,
|
|
480
|
-
(
|
|
495
|
+
}, null, 14, pt)) : b("", !0),
|
|
496
|
+
(n(!0), i(U, null, G(r.value, ({ x: a, y: o, height: f, width: u, fill: R }, W) => (n(), i("rect", J({ ref_for: !0 }, { x: a, y: o, height: f, width: u, fill: R }, {
|
|
481
497
|
stroke: e.value.style.chart.bars.stroke,
|
|
482
498
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
483
499
|
rx: e.value.style.chart.bars.borderRadius,
|
|
484
500
|
class: {
|
|
485
|
-
animated: e.value.useCssAnimation &&
|
|
501
|
+
animated: e.value.useCssAnimation && !x.value
|
|
486
502
|
},
|
|
487
503
|
style: {
|
|
488
504
|
animationDelay: `${150 * W}ms`
|
|
489
505
|
}
|
|
490
|
-
}), null, 16,
|
|
491
|
-
(
|
|
506
|
+
}), null, 16, kt))), 256)),
|
|
507
|
+
(n(!0), i(U, null, G(r.value, (a, o) => (n(), i("g", null, [
|
|
492
508
|
w("text", {
|
|
493
509
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
494
|
-
y: a.cy -
|
|
510
|
+
y: a.cy - c.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
495
511
|
"text-anchor": "start",
|
|
496
|
-
"font-size":
|
|
512
|
+
"font-size": c.value.names,
|
|
497
513
|
fill: e.value.style.chart.bars.dataLabels.name.color,
|
|
498
514
|
"font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
499
|
-
class:
|
|
500
|
-
animated: e.value.useCssAnimation &&
|
|
515
|
+
class: z({
|
|
516
|
+
animated: e.value.useCssAnimation && !x.value
|
|
501
517
|
}),
|
|
502
|
-
style:
|
|
503
|
-
animationDelay: `${150 *
|
|
518
|
+
style: _({
|
|
519
|
+
animationDelay: `${150 * o}ms`
|
|
504
520
|
})
|
|
505
|
-
}, j(a.name), 15,
|
|
521
|
+
}, j(a.name), 15, Ct),
|
|
506
522
|
w("text", {
|
|
507
523
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
508
|
-
y: a.cy +
|
|
524
|
+
y: a.cy + c.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
|
|
509
525
|
"text-anchor": "start",
|
|
510
|
-
"font-size":
|
|
526
|
+
"font-size": c.value.values,
|
|
511
527
|
fill: e.value.style.chart.bars.dataLabels.value.color,
|
|
512
528
|
"font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
513
|
-
class:
|
|
514
|
-
animated: e.value.useCssAnimation &&
|
|
529
|
+
class: z({
|
|
530
|
+
animated: e.value.useCssAnimation && !x.value
|
|
515
531
|
}),
|
|
516
|
-
style:
|
|
517
|
-
animationDelay: `${150 *
|
|
532
|
+
style: _({
|
|
533
|
+
animationDelay: `${150 * o}ms`
|
|
518
534
|
})
|
|
519
535
|
}, j(s(H)(
|
|
520
536
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
@@ -526,14 +542,14 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
526
542
|
r: e.value.style.chart.bars.dataLabels.value.rounding
|
|
527
543
|
}),
|
|
528
544
|
{ datapoint: a }
|
|
529
|
-
)), 15,
|
|
545
|
+
)), 15, wt)
|
|
530
546
|
]))), 256)),
|
|
531
|
-
|
|
532
|
-
], 14,
|
|
533
|
-
t.$slots.watermark ? (
|
|
534
|
-
|
|
535
|
-
])) :
|
|
536
|
-
|
|
547
|
+
m(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
548
|
+
], 14, ct)) : b("", !0),
|
|
549
|
+
t.$slots.watermark ? (n(), i("div", $t, [
|
|
550
|
+
m(t.$slots, "watermark", E(V({ isPrinting: s(ie) || s(ce) })), void 0, !0)
|
|
551
|
+
])) : b("", !0),
|
|
552
|
+
T.value ? b("", !0) : (n(), N(s(Ae), {
|
|
537
553
|
key: 6,
|
|
538
554
|
config: {
|
|
539
555
|
type: "verticalBar",
|
|
@@ -548,19 +564,19 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
548
564
|
}
|
|
549
565
|
}
|
|
550
566
|
}, null, 8, ["config"])),
|
|
551
|
-
t.$slots.source ? (
|
|
567
|
+
t.$slots.source ? (n(), i("div", {
|
|
552
568
|
key: 7,
|
|
553
569
|
ref_key: "source",
|
|
554
570
|
ref: ae,
|
|
555
571
|
dir: "auto"
|
|
556
572
|
}, [
|
|
557
|
-
|
|
558
|
-
], 512)) :
|
|
559
|
-
|
|
573
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
574
|
+
], 512)) : b("", !0),
|
|
575
|
+
T.value ? (n(), N(s($e), {
|
|
560
576
|
key: 8,
|
|
561
577
|
hideDetails: "",
|
|
562
578
|
config: {
|
|
563
|
-
open:
|
|
579
|
+
open: I.value.showTable,
|
|
564
580
|
maxHeight: 1e4,
|
|
565
581
|
body: {
|
|
566
582
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -573,32 +589,32 @@ const rt = ["id"], ut = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["i
|
|
|
573
589
|
}
|
|
574
590
|
}, {
|
|
575
591
|
content: g(() => [
|
|
576
|
-
(
|
|
592
|
+
(n(), N(s(xe), {
|
|
577
593
|
key: `table_${ee.value}`,
|
|
578
|
-
colNames:
|
|
579
|
-
head:
|
|
580
|
-
body:
|
|
581
|
-
config:
|
|
594
|
+
colNames: B.value.colNames,
|
|
595
|
+
head: B.value.head,
|
|
596
|
+
body: B.value.body,
|
|
597
|
+
config: B.value.config,
|
|
582
598
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
583
|
-
onClose: l[0] || (l[0] = (a) =>
|
|
599
|
+
onClose: l[0] || (l[0] = (a) => I.value.showTable = !1)
|
|
584
600
|
}, {
|
|
585
601
|
th: g(({ th: a }) => [
|
|
586
602
|
w("div", {
|
|
587
603
|
innerHTML: a,
|
|
588
604
|
style: { display: "flex", "align-items": "center" }
|
|
589
|
-
}, null, 8,
|
|
605
|
+
}, null, 8, xt)
|
|
590
606
|
]),
|
|
591
607
|
td: g(({ td: a }) => [
|
|
592
|
-
|
|
608
|
+
Ue(j(a.name ? a.name : a), 1)
|
|
593
609
|
]),
|
|
594
610
|
_: 1
|
|
595
611
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
596
612
|
]),
|
|
597
613
|
_: 1
|
|
598
|
-
}, 8, ["config"])) :
|
|
599
|
-
], 46,
|
|
614
|
+
}, 8, ["config"])) : b("", !0)
|
|
615
|
+
], 46, it));
|
|
600
616
|
}
|
|
601
|
-
},
|
|
617
|
+
}, Dt = /* @__PURE__ */ ut(Lt, [["__scopeId", "data-v-08e58142"]]);
|
|
602
618
|
export {
|
|
603
|
-
|
|
619
|
+
Dt as default
|
|
604
620
|
};
|