vue-data-ui 2.12.6 → 2.12.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
import { u as Ze } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { _ as et } from "./PackageVersion-BjrblLPQ.js";
|
|
13
|
-
import { u as tt } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
-
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["id"], rt = ["stop-color"], ut = ["stop-color"], it = ["stop-color"], ct = ["stroke", "stroke-width"], vt = ["stroke", "stroke-width"], dt = ["x", "y", "font-size", "fill", "font-weight"], ht = ["points", "fill"], ft = ["stroke", "stroke-width", "rx"], mt = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill", "font-weight"], yt = {
|
|
1
|
+
import { useCssVars as Ie, computed as c, defineAsyncComponent as N, ref as v, 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 O, createBlock as z, createCommentVNode as f, createSlots as Ve, withCtx as g, renderSlot as m, 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-BHEd2dgu.js";
|
|
3
|
+
import { u as pe } from "./useNestedProp-CZztHZIm.js";
|
|
4
|
+
import { u as et } from "./usePrinter-C8URL2IU.js";
|
|
5
|
+
import { t as tt, u as at } from "./useResponsive-JZ9xq-JV.js";
|
|
6
|
+
import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as st } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ot from "./Title-Bc66VstS.js";
|
|
9
|
+
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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 = {
|
|
16
11
|
key: 5,
|
|
17
12
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
13
|
+
}, wt = ["innerHTML"], $t = {
|
|
19
14
|
__name: "vue-ui-funnel",
|
|
20
15
|
props: {
|
|
21
16
|
config: {
|
|
@@ -31,22 +26,22 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
31
26
|
}
|
|
32
27
|
}
|
|
33
28
|
},
|
|
34
|
-
setup(
|
|
35
|
-
|
|
36
|
-
"
|
|
29
|
+
setup(ke, { expose: Ce }) {
|
|
30
|
+
Ie((t) => ({
|
|
31
|
+
"4791aede": Pe.value
|
|
37
32
|
}));
|
|
38
|
-
const { vue_ui_funnel:
|
|
39
|
-
|
|
40
|
-
function
|
|
41
|
-
if (
|
|
33
|
+
const we = N(() => import("./vue-ui-accordion-DntThSTF.js")), $e = N(() => import("./DataTable-Y5HbiUZU.js")), xe = N(() => import("./PackageVersion-DaWGaZxE.js")), _e = N(() => import("./PenAndPaper-C-CpE0NC.js")), Le = N(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), Ae = N(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_funnel: Te } = Ge(), y = ke, R = v(null), S = v(je()), Q = v(0), Z = v(0), ee = v(0), te = v(null), ae = v(null), le = v(null), C = ye(null), L = ye(null), $ = v(!1), A = c(() => !!y.dataset && y.dataset.length);
|
|
34
|
+
De(se);
|
|
35
|
+
function se() {
|
|
36
|
+
if (He(y.dataset) ? ge({
|
|
42
37
|
componentName: "VueUiFunnel",
|
|
43
38
|
type: "dataset"
|
|
44
39
|
}) : y.dataset.forEach((t, l) => {
|
|
45
|
-
|
|
40
|
+
Xe({
|
|
46
41
|
datasetObject: t,
|
|
47
42
|
requiredAttributes: ["name", "value"]
|
|
48
43
|
}).forEach((a) => {
|
|
49
|
-
|
|
44
|
+
A.value = !1, ge({
|
|
50
45
|
componentName: "VueUiFunnel",
|
|
51
46
|
type: "datasetSerieAttribute",
|
|
52
47
|
property: a,
|
|
@@ -54,27 +49,27 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
54
49
|
});
|
|
55
50
|
});
|
|
56
51
|
}), e.value.responsive) {
|
|
57
|
-
const t =
|
|
58
|
-
const { width: l, height: a } =
|
|
59
|
-
chart:
|
|
60
|
-
title: e.value.style.chart.title.text ?
|
|
61
|
-
source:
|
|
62
|
-
noTitle:
|
|
52
|
+
const t = tt(() => {
|
|
53
|
+
const { width: l, height: a } = at({
|
|
54
|
+
chart: R.value,
|
|
55
|
+
title: e.value.style.chart.title.text ? le.value : null,
|
|
56
|
+
source: ae.value,
|
|
57
|
+
noTitle: te.value
|
|
63
58
|
});
|
|
64
59
|
requestAnimationFrame(() => {
|
|
65
|
-
i.value.height = a, i.value.width = l, k.value =
|
|
60
|
+
i.value.height = a, i.value.width = l, k.value = he(), d.value.circles = K({
|
|
66
61
|
relator: Math.min(l, a),
|
|
67
62
|
adjuster: 600,
|
|
68
63
|
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
69
64
|
threshold: 10,
|
|
70
65
|
fallback: 10
|
|
71
|
-
}), d.value.names =
|
|
66
|
+
}), d.value.names = K({
|
|
72
67
|
relator: Math.min(l, a),
|
|
73
68
|
adjuster: 600,
|
|
74
69
|
source: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
75
70
|
threshold: 10,
|
|
76
71
|
fallback: 10
|
|
77
|
-
}), d.value.values =
|
|
72
|
+
}), d.value.values = K({
|
|
78
73
|
relator: Math.min(l, a),
|
|
79
74
|
adjuster: 600,
|
|
80
75
|
source: e.value.style.chart.bars.dataLabels.value.fontSize,
|
|
@@ -83,53 +78,55 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
83
78
|
});
|
|
84
79
|
});
|
|
85
80
|
});
|
|
86
|
-
|
|
81
|
+
C.value && (L.value && C.value.unobserve(L.value), C.value.disconnect()), C.value = new ResizeObserver(t), L.value = R.value.parentNode, C.value.observe(L.value);
|
|
87
82
|
}
|
|
88
83
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
Re(() => {
|
|
85
|
+
C.value && (L.value && C.value.unobserve(L.value), C.value.disconnect());
|
|
86
|
+
});
|
|
87
|
+
function oe() {
|
|
88
|
+
const t = pe({
|
|
92
89
|
userConfig: y.config,
|
|
93
|
-
defaultConfig:
|
|
90
|
+
defaultConfig: Te
|
|
94
91
|
});
|
|
95
92
|
return t.theme ? {
|
|
96
|
-
...
|
|
97
|
-
userConfig:
|
|
93
|
+
...pe({
|
|
94
|
+
userConfig: Ke.vue_ui_funnel[t.theme] || y.config,
|
|
98
95
|
defaultConfig: t
|
|
99
96
|
})
|
|
100
97
|
} : t;
|
|
101
98
|
}
|
|
102
|
-
const e =
|
|
103
|
-
get: () =>
|
|
99
|
+
const e = c({
|
|
100
|
+
get: () => oe(),
|
|
104
101
|
set: (t) => t
|
|
105
|
-
}), { userOptionsVisible:
|
|
106
|
-
|
|
107
|
-
e.value =
|
|
102
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = lt({ config: e.value }), { svgRef: ue } = st({ config: e.value.style.chart.title });
|
|
103
|
+
Me(() => y.config, (t) => {
|
|
104
|
+
e.value = oe(), q.value = !e.value.userOptions.showOnChartHover, se(), Z.value += 1, ee.value += 1, d.value.circles = e.value.style.chart.circles.dataLabels.fontSize, d.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, d.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, P.value.showTable = e.value.table.show;
|
|
108
105
|
}, { deep: !0 });
|
|
109
|
-
const { isPrinting:
|
|
110
|
-
elementId: `funnel_${
|
|
106
|
+
const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = et({
|
|
107
|
+
elementId: `funnel_${S.value}`,
|
|
111
108
|
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
112
109
|
options: e.value.userOptions.print
|
|
113
|
-
}),
|
|
110
|
+
}), Ne = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), P = v({
|
|
114
111
|
showTable: e.value.table.show
|
|
115
|
-
}), d =
|
|
112
|
+
}), d = v({
|
|
116
113
|
circles: e.value.style.chart.circles.dataLabels.fontSize,
|
|
117
114
|
names: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
118
115
|
values: e.value.style.chart.bars.dataLabels.value.fontSize
|
|
119
|
-
}), i =
|
|
116
|
+
}), i = c({
|
|
120
117
|
get: () => ({
|
|
121
118
|
height: e.value.style.chart.height,
|
|
122
119
|
width: e.value.style.chart.width
|
|
123
120
|
}),
|
|
124
121
|
set: (t) => t
|
|
125
|
-
}), p =
|
|
122
|
+
}), p = c(() => A.value ? y.dataset.map((t, l) => ({
|
|
126
123
|
...t,
|
|
127
|
-
color: t.color ?
|
|
124
|
+
color: t.color ? qe(t.color) : Ye(e.value.style.chart.bars.defaultColor, l / y.dataset.length)
|
|
128
125
|
})) : []);
|
|
129
126
|
setTimeout(() => {
|
|
130
|
-
|
|
127
|
+
$.value = !0;
|
|
131
128
|
}, p.value.length * 150);
|
|
132
|
-
function
|
|
129
|
+
function he() {
|
|
133
130
|
const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
|
|
134
131
|
return {
|
|
135
132
|
left: t,
|
|
@@ -140,66 +137,66 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
140
137
|
height: i.value.height - l - e.value.style.chart.padding.bottom
|
|
141
138
|
};
|
|
142
139
|
}
|
|
143
|
-
const k =
|
|
144
|
-
const a =
|
|
140
|
+
const k = v(he()), T = c(() => k.value.height / y.dataset.length), x = c(() => T.value * e.value.style.chart.bars.gapRatio), fe = c(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), r = c(() => 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, b = t.value / p.value[0].value, h = (k.value.width - a - fe.value) * (t.value / p.value[0].value);
|
|
145
142
|
return {
|
|
146
143
|
...t,
|
|
147
144
|
cx: k.value.left + a / 2,
|
|
148
|
-
cy:
|
|
145
|
+
cy: n + a / 2,
|
|
149
146
|
datapointIndex: l,
|
|
150
147
|
fill: t.color,
|
|
151
148
|
height: Math.max(a, 0),
|
|
152
|
-
proportion:
|
|
149
|
+
proportion: b,
|
|
153
150
|
r: Math.max(a / 2, 0),
|
|
154
151
|
width: Math.max(h, 0),
|
|
155
|
-
x: k.value.left + a +
|
|
156
|
-
y:
|
|
152
|
+
x: k.value.left + a + fe.value,
|
|
153
|
+
y: n
|
|
157
154
|
};
|
|
158
|
-
})),
|
|
159
|
-
const t = r.value.map((l) => `${l.x + l.width},${l.y + (
|
|
160
|
-
return `${r.value[0].x},${r.value[0].y + (
|
|
161
|
-
}),
|
|
155
|
+
})), Oe = c(() => {
|
|
156
|
+
const t = r.value.map((l) => `${l.x + l.width},${l.y + (T.value - x.value) / 2}`);
|
|
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 = c(() => ({
|
|
162
159
|
x1: r.value[0].cx,
|
|
163
160
|
y1: r.value[0].cy,
|
|
164
161
|
x2: r.value.at(-1).cx,
|
|
165
162
|
y2: r.value.at(-1).cy
|
|
166
|
-
})),
|
|
167
|
-
function
|
|
168
|
-
|
|
163
|
+
})), F = v(!1);
|
|
164
|
+
function Se(t) {
|
|
165
|
+
F.value = t, Q.value += 1;
|
|
169
166
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
|
|
167
|
+
const Pe = c(() => `${p.value.length * 150}ms`), M = v(!1);
|
|
168
|
+
function Y() {
|
|
169
|
+
M.value = !M.value;
|
|
173
170
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
171
|
+
function be() {
|
|
172
|
+
P.value.showTable = !P.value.showTable;
|
|
176
173
|
}
|
|
177
|
-
const
|
|
174
|
+
const I = c(() => {
|
|
178
175
|
const t = p.value.map((a) => ({
|
|
179
176
|
name: a.name,
|
|
180
177
|
color: a.color
|
|
181
178
|
})), l = p.value.map((a) => a.value);
|
|
182
179
|
return { head: t, body: l };
|
|
183
|
-
}),
|
|
180
|
+
}), V = c(() => {
|
|
184
181
|
const t = [
|
|
185
182
|
e.value.table.columnNames.series,
|
|
186
183
|
e.value.table.columnNames.value,
|
|
187
184
|
e.value.table.columnNames.percentage
|
|
188
|
-
], l =
|
|
189
|
-
const
|
|
185
|
+
], l = I.value.head.map((b, h) => {
|
|
186
|
+
const D = H(
|
|
190
187
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
I.value.body[h],
|
|
189
|
+
X({
|
|
193
190
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
194
|
-
v:
|
|
191
|
+
v: I.value.body[h],
|
|
195
192
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
196
193
|
r: e.value.table.td.roundingValue
|
|
197
194
|
}),
|
|
198
195
|
{ datapoint: r.value[h] }
|
|
199
|
-
),
|
|
196
|
+
), W = H(
|
|
200
197
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
201
198
|
r.value[h].proportion * 100,
|
|
202
|
-
|
|
199
|
+
X({
|
|
203
200
|
v: r.value[h].proportion * 100,
|
|
204
201
|
s: "%",
|
|
205
202
|
r: e.value.table.td.roundingPercentage
|
|
@@ -207,9 +204,9 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
207
204
|
{ datapoint: r.value[h] }
|
|
208
205
|
);
|
|
209
206
|
return [
|
|
210
|
-
{ color:
|
|
211
|
-
|
|
212
|
-
|
|
207
|
+
{ color: b.color, name: b.name },
|
|
208
|
+
D,
|
|
209
|
+
W
|
|
213
210
|
];
|
|
214
211
|
}), a = {
|
|
215
212
|
th: {
|
|
@@ -235,56 +232,56 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
235
232
|
config: a
|
|
236
233
|
};
|
|
237
234
|
});
|
|
238
|
-
function
|
|
239
|
-
|
|
240
|
-
const t =
|
|
241
|
-
|
|
242
|
-
], [
|
|
243
|
-
|
|
235
|
+
function me() {
|
|
236
|
+
Ue(() => {
|
|
237
|
+
const t = I.value.head.map((n, b) => [[
|
|
238
|
+
n.name
|
|
239
|
+
], [I.value.body[b]], [r.value[b].proportion * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(t), a = Qe(l);
|
|
240
|
+
Ze({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
244
241
|
});
|
|
245
242
|
}
|
|
246
|
-
function
|
|
243
|
+
function Fe() {
|
|
247
244
|
return p.value;
|
|
248
245
|
}
|
|
249
|
-
return
|
|
250
|
-
getData:
|
|
251
|
-
generatePdf:
|
|
252
|
-
generateCsv:
|
|
253
|
-
generateImage:
|
|
254
|
-
toggleTable:
|
|
255
|
-
toggleAnnotator:
|
|
256
|
-
}), (t, l) => (
|
|
246
|
+
return Ce({
|
|
247
|
+
getData: Fe,
|
|
248
|
+
generatePdf: ve,
|
|
249
|
+
generateCsv: me,
|
|
250
|
+
generateImage: de,
|
|
251
|
+
toggleTable: be,
|
|
252
|
+
toggleAnnotator: Y
|
|
253
|
+
}), (t, l) => (o(), u("div", {
|
|
257
254
|
ref_key: "funnelChart",
|
|
258
|
-
ref:
|
|
259
|
-
class:
|
|
255
|
+
ref: R,
|
|
256
|
+
class: O(`vue-ui-funnel ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
260
257
|
style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
261
|
-
id: `funnel_${
|
|
262
|
-
onMouseenter: l[1] || (l[1] = () =>
|
|
263
|
-
onMouseleave: l[2] || (l[2] = () =>
|
|
258
|
+
id: `funnel_${S.value}`,
|
|
259
|
+
onMouseenter: l[1] || (l[1] = () => s(ne)(!0)),
|
|
260
|
+
onMouseleave: l[2] || (l[2] = () => s(ne)(!1))
|
|
264
261
|
}, [
|
|
265
|
-
e.value.userOptions.buttons.annotator ? (
|
|
262
|
+
e.value.userOptions.buttons.annotator ? (o(), z(s(_e), {
|
|
266
263
|
key: 0,
|
|
267
|
-
svgRef:
|
|
264
|
+
svgRef: s(ue),
|
|
268
265
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
269
266
|
color: e.value.style.chart.color,
|
|
270
|
-
active:
|
|
271
|
-
onClose:
|
|
267
|
+
active: M.value,
|
|
268
|
+
onClose: Y
|
|
272
269
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
273
|
-
|
|
270
|
+
Ne.value ? (o(), u("div", {
|
|
274
271
|
key: 1,
|
|
275
272
|
ref_key: "noTitle",
|
|
276
|
-
ref:
|
|
273
|
+
ref: te,
|
|
277
274
|
class: "vue-data-ui-no-title-space",
|
|
278
275
|
style: "height:36px; width: 100%;background:transparent"
|
|
279
276
|
}, null, 512)) : f("", !0),
|
|
280
|
-
e.value.style.chart.title.text ? (
|
|
277
|
+
e.value.style.chart.title.text ? (o(), u("div", {
|
|
281
278
|
key: 2,
|
|
282
279
|
ref_key: "chartTitle",
|
|
283
|
-
ref:
|
|
280
|
+
ref: le,
|
|
284
281
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
285
282
|
}, [
|
|
286
|
-
(
|
|
287
|
-
key: `title_${
|
|
283
|
+
(o(), z(ot, {
|
|
284
|
+
key: `title_${Z.value}`,
|
|
288
285
|
config: {
|
|
289
286
|
title: {
|
|
290
287
|
cy: "funnel-div-title",
|
|
@@ -297,14 +294,14 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
297
294
|
}
|
|
298
295
|
}, null, 8, ["config"]))
|
|
299
296
|
], 512)) : f("", !0),
|
|
300
|
-
e.value.userOptions.show &&
|
|
297
|
+
e.value.userOptions.show && A.value && (s(re) || s(q)) ? (o(), z(s(Ae), {
|
|
301
298
|
ref: "details",
|
|
302
|
-
key: `user_option_${
|
|
299
|
+
key: `user_option_${Q.value}`,
|
|
303
300
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
304
301
|
color: e.value.style.chart.color,
|
|
305
|
-
isPrinting:
|
|
306
|
-
isImaging:
|
|
307
|
-
uid:
|
|
302
|
+
isPrinting: s(ie),
|
|
303
|
+
isImaging: s(ce),
|
|
304
|
+
uid: S.value,
|
|
308
305
|
hasTooltip: !1,
|
|
309
306
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
310
307
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -312,83 +309,83 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
312
309
|
hasTable: e.value.userOptions.buttons.table,
|
|
313
310
|
hasLabel: !1,
|
|
314
311
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
315
|
-
isFullscreen:
|
|
316
|
-
chartElement:
|
|
312
|
+
isFullscreen: F.value,
|
|
313
|
+
chartElement: R.value,
|
|
317
314
|
position: e.value.userOptions.position,
|
|
318
315
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
319
316
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
320
|
-
isAnnotation:
|
|
321
|
-
onToggleAnnotator:
|
|
322
|
-
onToggleFullscreen:
|
|
323
|
-
onGeneratePdf:
|
|
324
|
-
onGenerateImage:
|
|
325
|
-
onToggleTable:
|
|
326
|
-
onGenerateCsv:
|
|
317
|
+
isAnnotation: M.value,
|
|
318
|
+
onToggleAnnotator: Y,
|
|
319
|
+
onToggleFullscreen: Se,
|
|
320
|
+
onGeneratePdf: s(ve),
|
|
321
|
+
onGenerateImage: s(de),
|
|
322
|
+
onToggleTable: be,
|
|
323
|
+
onGenerateCsv: me,
|
|
327
324
|
style: _({
|
|
328
|
-
visibility:
|
|
325
|
+
visibility: s(re) ? s(q) ? "visible" : "hidden" : "visible"
|
|
329
326
|
})
|
|
330
|
-
},
|
|
327
|
+
}, Ve({ _: 2 }, [
|
|
331
328
|
t.$slots.menuIcon ? {
|
|
332
329
|
name: "menuIcon",
|
|
333
|
-
fn: g(({ isOpen: a, color:
|
|
334
|
-
|
|
330
|
+
fn: g(({ isOpen: a, color: n }) => [
|
|
331
|
+
m(t.$slots, "menuIcon", B(E({ isOpen: a, color: n })), void 0, !0)
|
|
335
332
|
]),
|
|
336
333
|
key: "0"
|
|
337
334
|
} : void 0,
|
|
338
335
|
t.$slots.optionPdf ? {
|
|
339
336
|
name: "optionPdf",
|
|
340
337
|
fn: g(() => [
|
|
341
|
-
|
|
338
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
342
339
|
]),
|
|
343
340
|
key: "1"
|
|
344
341
|
} : void 0,
|
|
345
342
|
t.$slots.optionCsv ? {
|
|
346
343
|
name: "optionCsv",
|
|
347
344
|
fn: g(() => [
|
|
348
|
-
|
|
345
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
349
346
|
]),
|
|
350
347
|
key: "2"
|
|
351
348
|
} : void 0,
|
|
352
349
|
t.$slots.optionImg ? {
|
|
353
350
|
name: "optionImg",
|
|
354
351
|
fn: g(() => [
|
|
355
|
-
|
|
352
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
356
353
|
]),
|
|
357
354
|
key: "3"
|
|
358
355
|
} : void 0,
|
|
359
356
|
t.$slots.optionTable ? {
|
|
360
357
|
name: "optionTable",
|
|
361
358
|
fn: g(() => [
|
|
362
|
-
|
|
359
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
363
360
|
]),
|
|
364
361
|
key: "4"
|
|
365
362
|
} : void 0,
|
|
366
363
|
t.$slots.optionFullscreen ? {
|
|
367
364
|
name: "optionFullscreen",
|
|
368
|
-
fn: g(({ toggleFullscreen: a, isFullscreen:
|
|
369
|
-
|
|
365
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: n }) => [
|
|
366
|
+
m(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
|
|
370
367
|
]),
|
|
371
368
|
key: "5"
|
|
372
369
|
} : void 0,
|
|
373
370
|
t.$slots.optionAnnotator ? {
|
|
374
371
|
name: "optionAnnotator",
|
|
375
|
-
fn: g(({ toggleAnnotator: a, isAnnotator:
|
|
376
|
-
|
|
372
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: n }) => [
|
|
373
|
+
m(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: a, isAnnotator: n })), void 0, !0)
|
|
377
374
|
]),
|
|
378
375
|
key: "6"
|
|
379
376
|
} : void 0
|
|
380
377
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
381
|
-
|
|
378
|
+
A.value ? (o(), u("svg", {
|
|
382
379
|
key: 4,
|
|
383
380
|
ref_key: "svgRef",
|
|
384
|
-
ref:
|
|
385
|
-
xmlns:
|
|
386
|
-
class:
|
|
381
|
+
ref: ue,
|
|
382
|
+
xmlns: s(We),
|
|
383
|
+
class: O({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
387
384
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
388
385
|
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
389
386
|
}, [
|
|
390
|
-
|
|
391
|
-
t.$slots["chart-background"] ? (
|
|
387
|
+
Be(s(xe)),
|
|
388
|
+
t.$slots["chart-background"] ? (o(), u("foreignObject", {
|
|
392
389
|
key: 0,
|
|
393
390
|
x: 0,
|
|
394
391
|
y: 0,
|
|
@@ -398,32 +395,32 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
398
395
|
pointerEvents: "none"
|
|
399
396
|
}
|
|
400
397
|
}, [
|
|
401
|
-
|
|
402
|
-
], 8,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
id: `funnel_area_${
|
|
398
|
+
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
399
|
+
], 8, it)) : f("", !0),
|
|
400
|
+
w("defs", null, [
|
|
401
|
+
w("linearGradient", {
|
|
402
|
+
id: `funnel_area_${S.value}`,
|
|
406
403
|
x1: "0%",
|
|
407
404
|
x2: "100%",
|
|
408
405
|
y1: "0%",
|
|
409
406
|
y2: "0%"
|
|
410
407
|
}, [
|
|
411
|
-
|
|
408
|
+
w("stop", {
|
|
412
409
|
offset: "0%",
|
|
413
410
|
"stop-color": e.value.style.chart.backgroundColor,
|
|
414
411
|
"stop-opacity": 0
|
|
415
|
-
}, null, 8,
|
|
416
|
-
|
|
412
|
+
}, null, 8, vt),
|
|
413
|
+
w("stop", {
|
|
417
414
|
offset: "20%",
|
|
418
415
|
"stop-color": e.value.style.chart.area.color
|
|
419
|
-
}, null, 8,
|
|
420
|
-
|
|
416
|
+
}, null, 8, dt),
|
|
417
|
+
w("stop", {
|
|
421
418
|
offset: "100%",
|
|
422
419
|
"stop-color": e.value.style.chart.area.color
|
|
423
|
-
}, null, 8,
|
|
424
|
-
], 8,
|
|
420
|
+
}, null, 8, ht)
|
|
421
|
+
], 8, ct)
|
|
425
422
|
]),
|
|
426
|
-
e.value.style.chart.circleLinks.show ? (
|
|
423
|
+
e.value.style.chart.circleLinks.show ? (o(), u("line", J({ key: 1 }, ze.value, {
|
|
427
424
|
stroke: e.value.style.chart.circleLinks.color,
|
|
428
425
|
"stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
|
|
429
426
|
"stroke-linecap": "round",
|
|
@@ -434,108 +431,108 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
434
431
|
strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
|
|
435
432
|
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
436
433
|
}
|
|
437
|
-
}), null, 16,
|
|
438
|
-
(
|
|
434
|
+
}), null, 16, ft)) : f("", !0),
|
|
435
|
+
(o(!0), u(U, null, G(r.value, ({ cx: a, cy: n, r: b, fill: h }, D) => (o(), u("circle", J({ ref_for: !0 }, { cx: a, cy: n, r: b, fill: h }, {
|
|
439
436
|
stroke: e.value.style.chart.circles.stroke,
|
|
440
437
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
441
438
|
class: {
|
|
442
|
-
animated: e.value.useCssAnimation &&
|
|
439
|
+
animated: e.value.useCssAnimation && !$.value
|
|
443
440
|
},
|
|
444
441
|
style: {
|
|
445
|
-
animationDelay: `${150 *
|
|
442
|
+
animationDelay: `${150 * D}ms`
|
|
446
443
|
}
|
|
447
|
-
}), null, 16,
|
|
448
|
-
(
|
|
444
|
+
}), null, 16, bt))), 256)),
|
|
445
|
+
(o(!0), u(U, null, G(r.value, (a, n) => (o(), u("text", {
|
|
449
446
|
x: a.cx,
|
|
450
447
|
y: a.cy + d.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
451
448
|
"text-anchor": "middle",
|
|
452
449
|
"font-size": d.value.circles,
|
|
453
|
-
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ?
|
|
450
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(Je)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
454
451
|
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
455
|
-
class:
|
|
456
|
-
animated: e.value.useCssAnimation &&
|
|
452
|
+
class: O({
|
|
453
|
+
animated: e.value.useCssAnimation && !$.value
|
|
457
454
|
}),
|
|
458
455
|
style: _({
|
|
459
|
-
animationDelay: `${150 *
|
|
456
|
+
animationDelay: `${150 * n}ms`
|
|
460
457
|
})
|
|
461
|
-
},
|
|
458
|
+
}, j(s(H)(
|
|
462
459
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
463
460
|
a.proportion * 100,
|
|
464
|
-
|
|
461
|
+
s(X)({
|
|
465
462
|
v: a.proportion * 100,
|
|
466
463
|
s: "%",
|
|
467
464
|
r: e.value.style.chart.circles.dataLabels.rounding
|
|
468
465
|
}),
|
|
469
466
|
{ datapoint: a }
|
|
470
|
-
)), 15,
|
|
471
|
-
e.value.style.chart.area.show ? (
|
|
467
|
+
)), 15, mt))), 256)),
|
|
468
|
+
e.value.style.chart.area.show ? (o(), u("polygon", {
|
|
472
469
|
key: 2,
|
|
473
|
-
points:
|
|
474
|
-
fill: `url(#funnel_area_${
|
|
475
|
-
class:
|
|
476
|
-
animated: e.value.useCssAnimation &&
|
|
470
|
+
points: Oe.value,
|
|
471
|
+
fill: `url(#funnel_area_${S.value})`,
|
|
472
|
+
class: O({
|
|
473
|
+
animated: e.value.useCssAnimation && !$.value
|
|
477
474
|
}),
|
|
478
475
|
style: _({
|
|
479
476
|
transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
|
|
480
477
|
})
|
|
481
|
-
}, null, 14,
|
|
482
|
-
(
|
|
478
|
+
}, null, 14, yt)) : f("", !0),
|
|
479
|
+
(o(!0), u(U, null, G(r.value, ({ x: a, y: n, height: b, width: h, fill: D }, W) => (o(), u("rect", J({ ref_for: !0 }, { x: a, y: n, height: b, width: h, fill: D }, {
|
|
483
480
|
stroke: e.value.style.chart.bars.stroke,
|
|
484
481
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
485
482
|
rx: e.value.style.chart.bars.borderRadius,
|
|
486
483
|
class: {
|
|
487
|
-
animated: e.value.useCssAnimation &&
|
|
484
|
+
animated: e.value.useCssAnimation && !$.value
|
|
488
485
|
},
|
|
489
486
|
style: {
|
|
490
|
-
animationDelay: `${150 *
|
|
487
|
+
animationDelay: `${150 * W}ms`
|
|
491
488
|
}
|
|
492
|
-
}), null, 16,
|
|
493
|
-
(
|
|
494
|
-
|
|
489
|
+
}), null, 16, gt))), 256)),
|
|
490
|
+
(o(!0), u(U, null, G(r.value, (a, n) => (o(), u("g", null, [
|
|
491
|
+
w("text", {
|
|
495
492
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
496
493
|
y: a.cy - d.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
497
494
|
"text-anchor": "start",
|
|
498
495
|
"font-size": d.value.names,
|
|
499
496
|
fill: e.value.style.chart.bars.dataLabels.name.color,
|
|
500
497
|
"font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
501
|
-
class:
|
|
502
|
-
animated: e.value.useCssAnimation &&
|
|
498
|
+
class: O({
|
|
499
|
+
animated: e.value.useCssAnimation && !$.value
|
|
503
500
|
}),
|
|
504
501
|
style: _({
|
|
505
|
-
animationDelay: `${150 *
|
|
502
|
+
animationDelay: `${150 * n}ms`
|
|
506
503
|
})
|
|
507
|
-
},
|
|
508
|
-
|
|
504
|
+
}, j(a.name), 15, pt),
|
|
505
|
+
w("text", {
|
|
509
506
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
510
507
|
y: a.cy + d.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
|
|
511
508
|
"text-anchor": "start",
|
|
512
509
|
"font-size": d.value.values,
|
|
513
510
|
fill: e.value.style.chart.bars.dataLabels.value.color,
|
|
514
511
|
"font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
515
|
-
class:
|
|
516
|
-
animated: e.value.useCssAnimation &&
|
|
512
|
+
class: O({
|
|
513
|
+
animated: e.value.useCssAnimation && !$.value
|
|
517
514
|
}),
|
|
518
515
|
style: _({
|
|
519
|
-
animationDelay: `${150 *
|
|
516
|
+
animationDelay: `${150 * n}ms`
|
|
520
517
|
})
|
|
521
|
-
},
|
|
518
|
+
}, j(s(H)(
|
|
522
519
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
523
520
|
a.value,
|
|
524
|
-
|
|
521
|
+
s(X)({
|
|
525
522
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
526
523
|
v: a.value,
|
|
527
524
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
528
525
|
r: e.value.style.chart.bars.dataLabels.value.rounding
|
|
529
526
|
}),
|
|
530
527
|
{ datapoint: a }
|
|
531
|
-
)), 15,
|
|
528
|
+
)), 15, kt)
|
|
532
529
|
]))), 256)),
|
|
533
|
-
|
|
534
|
-
], 14,
|
|
535
|
-
t.$slots.watermark ? (
|
|
536
|
-
|
|
530
|
+
m(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
531
|
+
], 14, ut)) : f("", !0),
|
|
532
|
+
t.$slots.watermark ? (o(), u("div", Ct, [
|
|
533
|
+
m(t.$slots, "watermark", B(E({ isPrinting: s(ie) || s(ce) })), void 0, !0)
|
|
537
534
|
])) : f("", !0),
|
|
538
|
-
|
|
535
|
+
A.value ? f("", !0) : (o(), z(s(Le), {
|
|
539
536
|
key: 6,
|
|
540
537
|
config: {
|
|
541
538
|
type: "verticalBar",
|
|
@@ -550,19 +547,19 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
550
547
|
}
|
|
551
548
|
}
|
|
552
549
|
}, null, 8, ["config"])),
|
|
553
|
-
t.$slots.source ? (
|
|
550
|
+
t.$slots.source ? (o(), u("div", {
|
|
554
551
|
key: 7,
|
|
555
552
|
ref_key: "source",
|
|
556
|
-
ref:
|
|
553
|
+
ref: ae,
|
|
557
554
|
dir: "auto"
|
|
558
555
|
}, [
|
|
559
|
-
|
|
556
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
560
557
|
], 512)) : f("", !0),
|
|
561
|
-
|
|
558
|
+
A.value ? (o(), z(s(we), {
|
|
562
559
|
key: 8,
|
|
563
560
|
hideDetails: "",
|
|
564
561
|
config: {
|
|
565
|
-
open:
|
|
562
|
+
open: P.value.showTable,
|
|
566
563
|
maxHeight: 1e4,
|
|
567
564
|
body: {
|
|
568
565
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -575,32 +572,32 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
575
572
|
}
|
|
576
573
|
}, {
|
|
577
574
|
content: g(() => [
|
|
578
|
-
(
|
|
579
|
-
key: `table_${
|
|
580
|
-
colNames:
|
|
581
|
-
head:
|
|
582
|
-
body:
|
|
583
|
-
config:
|
|
575
|
+
(o(), z(s($e), {
|
|
576
|
+
key: `table_${ee.value}`,
|
|
577
|
+
colNames: V.value.colNames,
|
|
578
|
+
head: V.value.head,
|
|
579
|
+
body: V.value.body,
|
|
580
|
+
config: V.value.config,
|
|
584
581
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
585
|
-
onClose: l[0] || (l[0] = (a) =>
|
|
582
|
+
onClose: l[0] || (l[0] = (a) => P.value.showTable = !1)
|
|
586
583
|
}, {
|
|
587
584
|
th: g(({ th: a }) => [
|
|
588
|
-
|
|
585
|
+
w("div", {
|
|
589
586
|
innerHTML: a,
|
|
590
587
|
style: { display: "flex", "align-items": "center" }
|
|
591
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, wt)
|
|
592
589
|
]),
|
|
593
590
|
td: g(({ td: a }) => [
|
|
594
|
-
|
|
591
|
+
Ee(j(a.name ? a.name : a), 1)
|
|
595
592
|
]),
|
|
596
593
|
_: 1
|
|
597
594
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
598
595
|
]),
|
|
599
596
|
_: 1
|
|
600
597
|
}, 8, ["config"])) : f("", !0)
|
|
601
|
-
], 46,
|
|
598
|
+
], 46, rt));
|
|
602
599
|
}
|
|
603
|
-
},
|
|
600
|
+
}, Pt = /* @__PURE__ */ nt($t, [["__scopeId", "data-v-0278272f"]]);
|
|
604
601
|
export {
|
|
605
|
-
|
|
602
|
+
Pt as default
|
|
606
603
|
};
|