vue-data-ui 3.1.4 → 3.1.6
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-COJRk3pc.js → Arrow-DtlAIKPQ.js} +1 -1
- package/dist/{BaseDraggableDialog-BdAp3qr9.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
- package/dist/{BaseIcon-B5nQNkmd.js → BaseIcon-D_BjQBAR.js} +1 -1
- package/dist/{ColorPicker-CPqHwp1V.js → ColorPicker-BeJGNqJl.js} +2 -2
- package/dist/{DataTable-CzO3oHys.js → DataTable-IycMkaTU.js} +2 -2
- package/dist/{Legend-BQqnf4BN.js → Legend-D7l8BJ7z.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D_g27Foy.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
- package/dist/{PackageVersion-7CxQB-mx.js → PackageVersion-BtfT0hV9.js} +1 -1
- package/dist/{PenAndPaper-C8hICPzL.js → PenAndPaper-BdzDJYnr.js} +3 -3
- package/dist/{Shape-BEVQVI0z.js → Shape-DD3SLpa4.js} +1 -1
- package/dist/Slicer-DoGlWyq_.js +596 -0
- package/dist/{SparkTooltip-BSgzljwP.js → SparkTooltip-DAfofSes.js} +1 -1
- package/dist/{Title-nHtPyPd9.js → Title-DbQthJAs.js} +1 -1
- package/dist/Tooltip-DvtYLrX2.js +200 -0
- package/dist/{UserOptions-D3pVnvAB.js → UserOptions-Dd5XOrwq.js} +2 -2
- package/dist/{dom-to-png-CcijTM69.js → dom-to-png-j6qE-sAL.js} +1 -1
- package/dist/{img-Bl0o2UAr.js → img-DLgjML7h.js} +1 -1
- package/dist/{index-INqbM37s.js → index-C0wrF8hm.js} +6 -2
- package/dist/{pdf-BeeAdG2m.js → pdf-Csglybwj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DXkvjSDn.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
- package/dist/{useNestedProp-BKprMEaB.js → useNestedProp-Bg2FlIgI.js} +1 -1
- package/dist/{usePrinter-9WO5mDzj.js → usePrinter-C2jvouU0.js} +2 -2
- package/dist/{vue-data-ui-IMHc9Ta4.js → vue-data-ui-DaOijb0V.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-1TVi2s.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
- package/dist/{vue-ui-accordion-CQZjxT5U.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B31NbBxS.js → vue-ui-age-pyramid-D94C1TOK.js} +44 -42
- package/dist/{vue-ui-annotator-BmFYtzWW.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
- package/dist/{vue-ui-bullet-BvMlcux3.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
- package/dist/{vue-ui-candlestick-CCrNcgjy.js → vue-ui-candlestick-vMGbmNWA.js} +87 -85
- package/dist/{vue-ui-carousel-table-DrGj7_CL.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
- package/dist/{vue-ui-chestnut-Dz0E-AxZ.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
- package/dist/{vue-ui-chord-BxOzgPka.js → vue-ui-chord-Du8GJXPN.js} +11 -11
- package/dist/{vue-ui-circle-pack-CaWwzEF0.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
- package/dist/{vue-ui-cursor-CG-oJITu.js → vue-ui-cursor-B70FlDqP.js} +2 -2
- package/dist/{vue-ui-dashboard-BFLQYXuo.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
- package/dist/{vue-ui-digits-BlZsS_qz.js → vue-ui-digits-CQy-vOC2.js} +2 -2
- package/dist/{vue-ui-donut-COXIRkz4.js → vue-ui-donut-D0RdN18d.js} +53 -51
- package/dist/{vue-ui-donut-evolution-DSGLD4z5.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
- package/dist/{vue-ui-dumbbell-DgUPMy2W.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
- package/dist/{vue-ui-flow-E8_jp5Qc.js → vue-ui-flow-Dh8_ii-s.js} +82 -80
- package/dist/{vue-ui-funnel-NMcBpYTQ.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
- package/dist/{vue-ui-galaxy-Cay4NZ6o.js → vue-ui-galaxy-Dqklv14X.js} +49 -47
- package/dist/{vue-ui-gauge-DWOH8_Z2.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
- package/dist/{vue-ui-gizmo-DtZu2tcU.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
- package/dist/{vue-ui-heatmap-Dk5515tQ.js → vue-ui-heatmap-BpcoDwpi.js} +69 -67
- package/dist/{vue-ui-history-plot-X_jPheWu.js → vue-ui-history-plot-D8tmNUHo.js} +148 -146
- package/dist/{vue-ui-kpi-DwNsapLR.js → vue-ui-kpi-88Bguk6S.js} +3 -3
- package/dist/{vue-ui-mini-loader-uyATuTz5.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
- package/dist/{vue-ui-molecule-BOeCt8b2.js → vue-ui-molecule-Cn8yeJLZ.js} +63 -61
- package/dist/{vue-ui-mood-radar-BeHjc5Ty.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CPoaD2py.js → vue-ui-nested-donuts-D1EZ91Wm.js} +71 -69
- package/dist/{vue-ui-onion-C8H8i77u.js → vue-ui-onion-B_mir5Ax.js} +40 -37
- package/dist/{vue-ui-parallel-coordinate-plot-Cblzs6mf.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +54 -52
- package/dist/{vue-ui-quadrant-BLYsMAey.js → vue-ui-quadrant-D7ihdCkd.js} +204 -202
- package/dist/{vue-ui-quick-chart-D-7cooqG.js → vue-ui-quick-chart-Dwc1xJtX.js} +63 -61
- package/dist/{vue-ui-radar-BBR8cYGx.js → vue-ui-radar-DhsgkGwF.js} +121 -119
- package/dist/{vue-ui-rating-Ccn8aUMA.js → vue-ui-rating-D_sWv7fR.js} +2 -2
- package/dist/{vue-ui-relation-circle-SKeIJXHs.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
- package/dist/{vue-ui-ridgeline-CuHSBPB8.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
- package/dist/{vue-ui-rings-SusI7pff.js → vue-ui-rings-BrBkOGZk.js} +162 -160
- package/dist/{vue-ui-scatter-Do8NoLng.js → vue-ui-scatter--kNBhPeG.js} +158 -156
- package/dist/{vue-ui-skeleton-FONviv9G.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
- package/dist/{vue-ui-smiley-Bbt8bZxB.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
- package/dist/{vue-ui-spark-trend-DB7RPBwQ.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
- package/dist/{vue-ui-sparkbar-B8inUR_m.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4_YoY5M.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DXSLenC7.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
- package/dist/{vue-ui-sparkline-BQ6Voxky.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BgFJQKhq.js → vue-ui-sparkstackbar-Bzmq9peq.js} +36 -34
- package/dist/{vue-ui-stackbar-CBB-kH1C.js → vue-ui-stackbar-C0cn-5Sz.js} +15 -13
- package/dist/{vue-ui-strip-plot-3gWivNhR.js → vue-ui-strip-plot-D3StIxYT.js} +59 -57
- package/dist/{vue-ui-table-NJNp95Us.js → vue-ui-table-B-wP544v.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CRzHSurU.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxGr1WNr.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
- package/dist/{vue-ui-thermometer-B6NudPzq.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
- package/dist/{vue-ui-timer-DO3oJlhi.js → vue-ui-timer-XeLnI_ia.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dv39xDlL.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
- package/dist/{vue-ui-treemap-D9jbccaW.js → vue-ui-treemap-Nd27H4H5.js} +41 -39
- package/dist/{vue-ui-vertical-bar-CxJNWczK.js → vue-ui-vertical-bar-Dd1XUvnp.js} +54 -52
- package/dist/{vue-ui-waffle-BMjk9LhH.js → vue-ui-waffle-Czg-z9KF.js} +56 -54
- package/dist/{vue-ui-wheel-CMACWJLJ.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
- package/dist/{vue-ui-word-cloud-BbwSabN0.js → vue-ui-word-cloud-CB9_bPjO.js} +107 -104
- package/dist/{vue-ui-world-DCp2i-uy.js → vue-ui-world-Bo_NzzhJ.js} +12 -10
- package/dist/{vue-ui-xy-CRQHfrGQ.js → vue-ui-xy-Dc-o6Q3R.js} +1234 -1231
- package/dist/{vue-ui-xy-canvas-D-iziyn0.js → vue-ui-xy-canvas-D1Do33ar.js} +46 -44
- package/package.json +4 -2
- package/dist/Slicer-Cmc94zkG.js +0 -604
- package/dist/Tooltip-RCWHeRDV.js +0 -161
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, ref as c, computed as g, onMounted as Jt, toRefs as Qt, watch as Te, createElementBlock as p, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as kt, createBlock as q, createCommentVNode as T, createElementVNode as Y, createVNode as xe, createSlots as wt, withCtx as
|
|
2
|
-
import { u as ao, c as He, t as no, o as At, f as so, a as ro, p as L, b as uo, d as io, h as x, e as co, i as fe, X as vo, F as Tt, L as ho, k as We, v as fo, w as po, y as go } from "./index-
|
|
3
|
-
import { t as mo, u as
|
|
4
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as H, ref as c, computed as g, onMounted as Jt, toRefs as Qt, watch as Te, createElementBlock as p, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as kt, createBlock as q, createCommentVNode as T, createElementVNode as Y, createVNode as xe, createSlots as wt, withCtx as y, renderSlot as k, normalizeProps as Q, guardReactiveProps as ee, Fragment as de, renderList as he, toDisplayString as te, Teleport as eo, resolveDynamicComponent as to, mergeProps as oo, createTextVNode as $t, nextTick as lo } from "vue";
|
|
2
|
+
import { u as ao, c as He, t as no, o as At, f as so, a as ro, p as L, b as uo, d as io, h as x, e as co, i as fe, X as vo, F as Tt, L as ho, k as We, v as fo, w as po, y as go } from "./index-C0wrF8hm.js";
|
|
3
|
+
import { t as mo, u as bo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as yo } from "./usePrinter-C2jvouU0.js";
|
|
5
5
|
import { u as Co, B as ko } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as xt } from "./useNestedProp-
|
|
6
|
+
import { u as xt } from "./useNestedProp-Bg2FlIgI.js";
|
|
7
7
|
import { u as wo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as $o } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Ao from "./Legend-
|
|
10
|
-
import To from "./Title-
|
|
11
|
-
import xo from "./img-
|
|
9
|
+
import Ao from "./Legend-D7l8BJ7z.js";
|
|
10
|
+
import To from "./Title-DbQthJAs.js";
|
|
11
|
+
import xo from "./img-DLgjML7h.js";
|
|
12
12
|
import { _ as _o } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const So = ["id"], Oo = {
|
|
14
14
|
key: 1,
|
|
15
15
|
ref: "noTitle",
|
|
16
16
|
class: "vue-data-ui-no-title-space",
|
|
17
17
|
style: "height:36px; width: 100%;background:transparent"
|
|
18
|
-
},
|
|
18
|
+
}, Fo = ["id"], No = ["xmlns", "viewBox"], Eo = ["width", "height"], Po = ["id"], Io = ["stop-color"], Mo = ["stop-color"], Do = ["d", "fill", "stroke", "stroke-width"], Lo = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], zo = { key: 1 }, Bo = ["x", "y", "font-size", "fill"], Ro = ["x", "y", "font-size", "fill"], Ho = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, Wo = ["id"], Yo = ["onClick"], Go = ["innerHTML"], Uo = {
|
|
@@ -35,7 +35,7 @@ const So = ["id"], Oo = {
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
setup(_t, { expose: St }) {
|
|
38
|
-
const Ot = H(() => import("./Tooltip-
|
|
38
|
+
const Ot = H(() => import("./Tooltip-DvtYLrX2.js")), Ft = H(() => import("./BaseIcon-D_BjQBAR.js")), Nt = H(() => import("./vue-ui-accordion-3JuSLBjV.js")), Et = H(() => import("./DataTable-IycMkaTU.js")), Pt = H(() => import("./PenAndPaper-BdzDJYnr.js")), It = H(() => import("./UserOptions-Dd5XOrwq.js")), Mt = H(() => import("./PackageVersion-BtfT0hV9.js")), Dt = H(() => import("./BaseDraggableDialog-BVZPPMT9.js")), { vue_ui_flow: Lt } = ao(), N = _t, G = c(He()), M = c(null), Ye = c(0), Ge = c(0), _e = c(!1), Se = c(""), Ue = c(null), je = c(null), Ve = c(null), oe = c(null), pe = c(null), Xe = c(!1), le = c(null), Oe = c(null), qe = g(() => !!N.dataset && N.dataset.length);
|
|
39
39
|
Jt(() => {
|
|
40
40
|
Xe.value = !0, Ze();
|
|
41
41
|
});
|
|
@@ -43,8 +43,8 @@ const So = ["id"], Oo = {
|
|
|
43
43
|
function Ke(o) {
|
|
44
44
|
U.value = o, Ye.value += 1;
|
|
45
45
|
}
|
|
46
|
-
const e = c(Pe()), { loading:
|
|
47
|
-
...Qt(
|
|
46
|
+
const e = c(Pe()), { loading: Fe, FINAL_DATASET: ge, manualLoading: Ne } = Co({
|
|
47
|
+
...Qt(N),
|
|
48
48
|
FINAL_CONFIG: e,
|
|
49
49
|
prepareConfig: Pe,
|
|
50
50
|
skeletonDataset: [
|
|
@@ -89,13 +89,13 @@ const So = ["id"], Oo = {
|
|
|
89
89
|
})
|
|
90
90
|
}), zt = g(() => !!e.value.debug);
|
|
91
91
|
function Ze() {
|
|
92
|
-
if (At(
|
|
92
|
+
if (At(N.dataset) && (so({
|
|
93
93
|
componentName: "VueUiFlow",
|
|
94
94
|
type: "dataset",
|
|
95
95
|
debug: zt.value
|
|
96
|
-
}),
|
|
96
|
+
}), Ne.value = !0), At(N.dataset) || (Ne.value = e.value.loading), e.value.responsive) {
|
|
97
97
|
const o = mo(() => {
|
|
98
|
-
const { width: l, height: t } =
|
|
98
|
+
const { width: l, height: t } = bo({
|
|
99
99
|
chart: M.value,
|
|
100
100
|
title: e.value.style.chart.title.text ? je.value : null,
|
|
101
101
|
legend: e.value.style.chart.legend.show ? Ue.value : null,
|
|
@@ -113,33 +113,33 @@ const So = ["id"], Oo = {
|
|
|
113
113
|
});
|
|
114
114
|
function Pe() {
|
|
115
115
|
const o = xt({
|
|
116
|
-
userConfig:
|
|
116
|
+
userConfig: N.config,
|
|
117
117
|
defaultConfig: Lt
|
|
118
118
|
});
|
|
119
119
|
let l = o;
|
|
120
120
|
return o.theme ? l = {
|
|
121
121
|
...xt({
|
|
122
|
-
userConfig: uo.vue_ui_flow[o.theme] ||
|
|
122
|
+
userConfig: uo.vue_ui_flow[o.theme] || N.config,
|
|
123
123
|
defaultConfig: o
|
|
124
124
|
}),
|
|
125
125
|
customPalette: ro[o.theme] || L
|
|
126
|
-
} : l = o, l.nodeCategories =
|
|
126
|
+
} : l = o, l.nodeCategories = N.config.nodeCategories || {}, l.nodeCategoryColors = N.config.nodeCategoryColors || {}, l;
|
|
127
127
|
}
|
|
128
128
|
const tt = c(e.value.style.chart.width), ot = c(e.value.style.chart.height);
|
|
129
129
|
Te(
|
|
130
|
-
() =>
|
|
130
|
+
() => N.config,
|
|
131
131
|
(o) => {
|
|
132
|
-
|
|
132
|
+
Fe.value || (e.value = Pe()), Ee.value = !e.value.userOptions.showOnChartHover, Ze(), Ge.value += 1, E.value.showTable = e.value.table.show;
|
|
133
133
|
},
|
|
134
134
|
{ deep: !0 }
|
|
135
|
-
), Te(() =>
|
|
136
|
-
Array.isArray(o) && o.length > 0 && (
|
|
135
|
+
), Te(() => N.dataset, (o) => {
|
|
136
|
+
Array.isArray(o) && o.length > 0 && (Ne.value = !1);
|
|
137
137
|
}, { deep: !0 });
|
|
138
|
-
const { isPrinting: lt, isImaging: at, generatePdf: nt, generateImage: st } =
|
|
138
|
+
const { isPrinting: lt, isImaging: at, generatePdf: nt, generateImage: st } = yo({
|
|
139
139
|
elementId: `flow_${G.value}`,
|
|
140
140
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
141
141
|
options: e.value.userOptions.print
|
|
142
|
-
}), Bt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = g(() => io(e.value.customPalette)),
|
|
142
|
+
}), Bt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = g(() => io(e.value.customPalette)), be = g(() => e.value.style.chart.nodes.width), E = c({
|
|
143
143
|
showTable: e.value.table.show,
|
|
144
144
|
showTooltip: e.value.style.chart.tooltip.show
|
|
145
145
|
});
|
|
@@ -184,47 +184,47 @@ const So = ["id"], Oo = {
|
|
|
184
184
|
}), Object.keys(l).forEach((a) => {
|
|
185
185
|
l[a].value = Math.max(l[a].inflow, l[a].outflow);
|
|
186
186
|
});
|
|
187
|
-
const we = ae.value, Le = ct.value.width, J = ct.value.height, D = Object.keys(t).map(Number).sort((a, u) => a - u), $e = D.length || 1, ze = $e > 1 ? Le / ($e - 1) : 0, A = Number(
|
|
187
|
+
const we = ae.value, Le = ct.value.width, J = ct.value.height, D = Object.keys(t).map(Number).sort((a, u) => a - u), $e = D.length || 1, ze = $e > 1 ? Le / ($e - 1) : 0, A = Number(be.value), I = Number(
|
|
188
188
|
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
189
189
|
), ce = Number(e.value.style.chart.nodes.minHeight || 0);
|
|
190
190
|
function v(a) {
|
|
191
191
|
const u = t[a], d = u.length;
|
|
192
192
|
if (!d) return 1 / 0;
|
|
193
193
|
const h = Math.max(0, (d - 1) * I), S = Math.max(0, J - h), z = Math.min(ce, d ? S / d : 0);
|
|
194
|
-
let C = 0, O = u.map((f) => l[f].value || 0),
|
|
194
|
+
let C = 0, O = u.map((f) => l[f].value || 0), b = O.reduce((f, F) => f + F, 0);
|
|
195
195
|
for (let f = 0; f < 12; f += 1) {
|
|
196
|
-
const
|
|
196
|
+
const F = b > 0 ? (S - C) / b : 0, B = [];
|
|
197
197
|
for (let P = 0; P < O.length; P += 1) {
|
|
198
198
|
const R = O[P];
|
|
199
|
-
R < 0 || R *
|
|
199
|
+
R < 0 || R * F < z && B.push(P);
|
|
200
200
|
}
|
|
201
|
-
if (!B.length) return Math.max(0,
|
|
201
|
+
if (!B.length) return Math.max(0, F);
|
|
202
202
|
for (const P of B)
|
|
203
|
-
C += z,
|
|
204
|
-
if (
|
|
203
|
+
C += z, b -= O[P], O[P] = -1;
|
|
204
|
+
if (b <= 0) return 0;
|
|
205
205
|
}
|
|
206
|
-
return
|
|
206
|
+
return b > 0 ? Math.max(0, (S - C) / b) : 0;
|
|
207
207
|
}
|
|
208
208
|
const m = D.map(v), V = m.length ? Math.min(...m) : 0, X = {};
|
|
209
209
|
D.forEach((a) => {
|
|
210
210
|
const u = t[a], d = u.length, h = Math.max(0, (d - 1) * I), S = Math.max(0, J - h), z = Math.min(ce, d ? S / d : 0), C = u.map(
|
|
211
211
|
(f) => Math.max(z, (l[f].value || 0) * V)
|
|
212
|
-
), O = C.reduce((f,
|
|
213
|
-
let
|
|
214
|
-
u.forEach((f,
|
|
215
|
-
const B = C[
|
|
212
|
+
), O = C.reduce((f, F) => f + F, 0) + h;
|
|
213
|
+
let b = Math.max(0, (J - O) / 2);
|
|
214
|
+
u.forEach((f, F) => {
|
|
215
|
+
const B = C[F], P = we.left + a * ze, R = b;
|
|
216
216
|
X[f] = {
|
|
217
217
|
x: P,
|
|
218
218
|
y: R,
|
|
219
219
|
absoluteY: R,
|
|
220
220
|
height: B,
|
|
221
|
-
i:
|
|
221
|
+
i: F,
|
|
222
222
|
color: l[f].color,
|
|
223
223
|
value: l[f].value
|
|
224
|
-
},
|
|
224
|
+
}, b += B, F < d - 1 && (b += I);
|
|
225
225
|
});
|
|
226
226
|
});
|
|
227
|
-
const
|
|
227
|
+
const bt = [], ve = we.top, Be = {}, Re = {};
|
|
228
228
|
Object.keys(l).forEach((a) => {
|
|
229
229
|
Be[a] = X[a]?.y ?? 0, Re[a] = 0;
|
|
230
230
|
});
|
|
@@ -235,24 +235,24 @@ const So = ["id"], Oo = {
|
|
|
235
235
|
if (!h.children || !h.children.length) return;
|
|
236
236
|
let z = S.y;
|
|
237
237
|
h.children.forEach(({ target: C, value: O }) => {
|
|
238
|
-
const
|
|
239
|
-
let Ae =
|
|
238
|
+
const b = X[C], f = l[C], F = h.outflow > 0 ? O / h.outflow : 0, B = f.inflow > 0 ? O / f.inflow : 0, P = x(z + ve), R = x(z + F * S.height + ve), yt = Be[C];
|
|
239
|
+
let Ae = yt + B * b.height;
|
|
240
240
|
Re[C] += O;
|
|
241
|
-
const qt = f.inflow > 0 && Re[C] >= f.inflow - Vt, Ct =
|
|
241
|
+
const qt = f.inflow > 0 && Re[C] >= f.inflow - Vt, Ct = b.y + b.height;
|
|
242
242
|
(qt || Ae > Ct - Xt) && (Ae = Ct);
|
|
243
|
-
const Kt = x(
|
|
244
|
-
|
|
243
|
+
const Kt = x(yt + ve), Zt = x(Ae + ve);
|
|
244
|
+
bt.push({
|
|
245
245
|
id: He(),
|
|
246
246
|
source: d,
|
|
247
247
|
target: C,
|
|
248
|
-
path: `M ${x(S.x + A)} ${P} L ${x(S.x + A)} ${R} L ${x(
|
|
248
|
+
path: `M ${x(S.x + A)} ${P} L ${x(S.x + A)} ${R} L ${x(b.x)} ${Zt} L ${x(b.x)} ${Kt} Z`,
|
|
249
249
|
value: O,
|
|
250
250
|
sourceColor: h.color,
|
|
251
251
|
targetColor: l[C].color
|
|
252
252
|
}), z = R - ve, Be[C] = Ae;
|
|
253
253
|
});
|
|
254
254
|
});
|
|
255
|
-
}), { nodeCoordinates: X, links:
|
|
255
|
+
}), { nodeCoordinates: X, links: bt };
|
|
256
256
|
}
|
|
257
257
|
const _ = g(() => {
|
|
258
258
|
const o = Rt(ge.value);
|
|
@@ -276,7 +276,7 @@ const So = ["id"], Oo = {
|
|
|
276
276
|
l[s] || (l[s] = []), t[$] || (t[$] = []), l[s].push($), t[$].push(s);
|
|
277
277
|
}), l[o] && l[o].forEach((s) => n.add(s)), t[o] && t[o].forEach((s) => n.add(s)), Array.from(n).concat(o);
|
|
278
278
|
}
|
|
279
|
-
const w = c(null), K = c(null), se = c(null),
|
|
279
|
+
const w = c(null), K = c(null), se = c(null), ye = c(!1);
|
|
280
280
|
function Wt(o, l) {
|
|
281
281
|
j.value = [], w.value = Ht(o.name), K.value = o.name;
|
|
282
282
|
const t = o.name, n = rt.value;
|
|
@@ -299,18 +299,18 @@ const So = ["id"], Oo = {
|
|
|
299
299
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, _e.value = !0;
|
|
300
300
|
let I = "";
|
|
301
301
|
const ce = e.value.style.chart.tooltip.customFormat;
|
|
302
|
-
if (
|
|
302
|
+
if (ye.value = !1, go(ce))
|
|
303
303
|
try {
|
|
304
304
|
const v = ce({
|
|
305
305
|
datapoint: A,
|
|
306
306
|
series: _.value,
|
|
307
307
|
config: e.value
|
|
308
308
|
});
|
|
309
|
-
typeof v == "string" && (Se.value = v,
|
|
309
|
+
typeof v == "string" && (Se.value = v, ye.value = !0);
|
|
310
310
|
} catch {
|
|
311
311
|
console.warn("Custom format cannot be applied.");
|
|
312
312
|
}
|
|
313
|
-
if (!
|
|
313
|
+
if (!ye.value) {
|
|
314
314
|
const v = e.value.style.chart.tooltip.showPercentage ? `<div>${fe({
|
|
315
315
|
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
316
316
|
v: A.percentOfTotal,
|
|
@@ -489,7 +489,7 @@ const So = ["id"], Oo = {
|
|
|
489
489
|
const re = g(() => {
|
|
490
490
|
const o = e.value.table.useDialog && !e.value.table.show, l = E.value.showTable;
|
|
491
491
|
return {
|
|
492
|
-
component: o ? Dt :
|
|
492
|
+
component: o ? Dt : Nt,
|
|
493
493
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
494
494
|
props: o ? {
|
|
495
495
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -574,7 +574,7 @@ const So = ["id"], Oo = {
|
|
|
574
574
|
], 512)) : T("", !0),
|
|
575
575
|
Y("div", {
|
|
576
576
|
id: `legend-top-${G.value}`
|
|
577
|
-
}, null, 8,
|
|
577
|
+
}, null, 8, Fo),
|
|
578
578
|
e.value.userOptions.show && qe.value && (r(Qe) || r(Ee)) ? (i(), q(r(It), {
|
|
579
579
|
ref_key: "userOptionsRef",
|
|
580
580
|
ref: Oe,
|
|
@@ -613,56 +613,56 @@ const So = ["id"], Oo = {
|
|
|
613
613
|
}, wt({ _: 2 }, [
|
|
614
614
|
o.$slots.menuIcon ? {
|
|
615
615
|
name: "menuIcon",
|
|
616
|
-
fn:
|
|
616
|
+
fn: y(({ isOpen: t, color: n }) => [
|
|
617
617
|
k(o.$slots, "menuIcon", Q(ee({ isOpen: t, color: n })), void 0, !0)
|
|
618
618
|
]),
|
|
619
619
|
key: "0"
|
|
620
620
|
} : void 0,
|
|
621
621
|
o.$slots.optionTooltip ? {
|
|
622
622
|
name: "optionTooltip",
|
|
623
|
-
fn:
|
|
623
|
+
fn: y(() => [
|
|
624
624
|
k(o.$slots, "optionTooltip", {}, void 0, !0)
|
|
625
625
|
]),
|
|
626
626
|
key: "1"
|
|
627
627
|
} : void 0,
|
|
628
628
|
o.$slots.optionPdf ? {
|
|
629
629
|
name: "optionPdf",
|
|
630
|
-
fn:
|
|
630
|
+
fn: y(() => [
|
|
631
631
|
k(o.$slots, "optionPdf", {}, void 0, !0)
|
|
632
632
|
]),
|
|
633
633
|
key: "2"
|
|
634
634
|
} : void 0,
|
|
635
635
|
o.$slots.optionCsv ? {
|
|
636
636
|
name: "optionCsv",
|
|
637
|
-
fn:
|
|
637
|
+
fn: y(() => [
|
|
638
638
|
k(o.$slots, "optionCsv", {}, void 0, !0)
|
|
639
639
|
]),
|
|
640
640
|
key: "3"
|
|
641
641
|
} : void 0,
|
|
642
642
|
o.$slots.optionImg ? {
|
|
643
643
|
name: "optionImg",
|
|
644
|
-
fn:
|
|
644
|
+
fn: y(() => [
|
|
645
645
|
k(o.$slots, "optionImg", {}, void 0, !0)
|
|
646
646
|
]),
|
|
647
647
|
key: "4"
|
|
648
648
|
} : void 0,
|
|
649
649
|
o.$slots.optionTable ? {
|
|
650
650
|
name: "optionTable",
|
|
651
|
-
fn:
|
|
651
|
+
fn: y(() => [
|
|
652
652
|
k(o.$slots, "optionTable", {}, void 0, !0)
|
|
653
653
|
]),
|
|
654
654
|
key: "5"
|
|
655
655
|
} : void 0,
|
|
656
656
|
o.$slots.optionFullscreen ? {
|
|
657
657
|
name: "optionFullscreen",
|
|
658
|
-
fn:
|
|
658
|
+
fn: y(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
659
659
|
k(o.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
660
660
|
]),
|
|
661
661
|
key: "6"
|
|
662
662
|
} : void 0,
|
|
663
663
|
o.$slots.optionAnnotator ? {
|
|
664
664
|
name: "optionAnnotator",
|
|
665
|
-
fn:
|
|
665
|
+
fn: y(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
666
666
|
k(o.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
667
667
|
]),
|
|
668
668
|
key: "7"
|
|
@@ -732,7 +732,7 @@ const So = ["id"], Oo = {
|
|
|
732
732
|
x: t.x,
|
|
733
733
|
y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
|
|
734
734
|
height: r(x)(t.height),
|
|
735
|
-
width:
|
|
735
|
+
width: be.value,
|
|
736
736
|
fill: t.color,
|
|
737
737
|
stroke: e.value.style.chart.nodes.stroke,
|
|
738
738
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
@@ -743,7 +743,7 @@ const So = ["id"], Oo = {
|
|
|
743
743
|
}, null, 44, Lo))), 256)),
|
|
744
744
|
e.value.style.chart.nodes.labels.show ? (i(), p("g", zo, [
|
|
745
745
|
(i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
|
|
746
|
-
x: t.x +
|
|
746
|
+
x: t.x + be.value / 2,
|
|
747
747
|
y: r(x)(
|
|
748
748
|
t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
749
749
|
) + e.value.style.chart.padding.top,
|
|
@@ -756,7 +756,7 @@ const So = ["id"], Oo = {
|
|
|
756
756
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
757
757
|
}) : t.name), 13, Bo))), 256)),
|
|
758
758
|
(i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
|
|
759
|
-
x: t.x +
|
|
759
|
+
x: t.x + be.value / 2,
|
|
760
760
|
y: r(x)(
|
|
761
761
|
t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
762
762
|
) + e.value.style.chart.padding.top,
|
|
@@ -777,7 +777,7 @@ const So = ["id"], Oo = {
|
|
|
777
777
|
)), 13, Ro))), 256))
|
|
778
778
|
])) : T("", !0),
|
|
779
779
|
k(o.$slots, "svg", { svg: ne.value }, void 0, !0)
|
|
780
|
-
], 14,
|
|
780
|
+
], 14, No)),
|
|
781
781
|
o.$slots.watermark ? (i(), p("div", Ho, [
|
|
782
782
|
k(o.$slots, "watermark", Q(ee({ isPrinting: r(lt) || r(at) })), void 0, !0)
|
|
783
783
|
])) : T("", !0),
|
|
@@ -798,8 +798,8 @@ const So = ["id"], Oo = {
|
|
|
798
798
|
config: Ut.value,
|
|
799
799
|
onClickMarker: l[0] || (l[0] = (t) => De(t))
|
|
800
800
|
}, {
|
|
801
|
-
item:
|
|
802
|
-
r(
|
|
801
|
+
item: y(({ legend: t, index: n }) => [
|
|
802
|
+
r(Fe) ? T("", !0) : (i(), p("div", {
|
|
803
803
|
key: 0,
|
|
804
804
|
onClick: (s) => t.segregate(),
|
|
805
805
|
style: W(`opacity:${j.value.length ? j.value.includes(n) ? 1 : 0.5 : 1}`)
|
|
@@ -831,25 +831,27 @@ const So = ["id"], Oo = {
|
|
|
831
831
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
832
832
|
parent: M.value,
|
|
833
833
|
content: Se.value,
|
|
834
|
-
isCustom:
|
|
834
|
+
isCustom: ye.value,
|
|
835
835
|
isFullscreen: U.value,
|
|
836
836
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
837
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
837
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
838
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
839
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
838
840
|
}, {
|
|
839
|
-
"tooltip-before":
|
|
841
|
+
"tooltip-before": y(() => [
|
|
840
842
|
k(o.$slots, "tooltip-before", Q(ee({ ...se.value })), void 0, !0)
|
|
841
843
|
]),
|
|
842
|
-
"tooltip-after":
|
|
844
|
+
"tooltip-after": y(() => [
|
|
843
845
|
k(o.$slots, "tooltip-after", Q(ee({ ...se.value })), void 0, !0)
|
|
844
846
|
]),
|
|
845
847
|
_: 3
|
|
846
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
847
|
-
qe.value ? (i(), q(to(re.value.component), oo({ key: 7 }, re.value.props, {
|
|
848
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
849
|
+
qe.value && e.value.userOptions.buttons.table ? (i(), q(to(re.value.component), oo({ key: 7 }, re.value.props, {
|
|
848
850
|
ref_key: "tableUnit",
|
|
849
851
|
ref: le,
|
|
850
852
|
onClose: mt
|
|
851
853
|
}), wt({
|
|
852
|
-
content:
|
|
854
|
+
content: y(() => [
|
|
853
855
|
xe(r(Et), {
|
|
854
856
|
colNames: Ce.value.colNames,
|
|
855
857
|
head: Ce.value.head,
|
|
@@ -859,13 +861,13 @@ const So = ["id"], Oo = {
|
|
|
859
861
|
withCloseButton: !e.value.table.useDialog,
|
|
860
862
|
onClose: mt
|
|
861
863
|
}, {
|
|
862
|
-
th:
|
|
864
|
+
th: y(({ th: t }) => [
|
|
863
865
|
Y("div", {
|
|
864
866
|
innerHTML: t,
|
|
865
867
|
style: { display: "flex", "align-items": "center" }
|
|
866
868
|
}, null, 8, Go)
|
|
867
869
|
]),
|
|
868
|
-
td:
|
|
870
|
+
td: y(({ td: t }) => [
|
|
869
871
|
$t(te(t.name || t), 1)
|
|
870
872
|
]),
|
|
871
873
|
_: 1
|
|
@@ -875,20 +877,20 @@ const So = ["id"], Oo = {
|
|
|
875
877
|
}, [
|
|
876
878
|
e.value.table.useDialog ? {
|
|
877
879
|
name: "title",
|
|
878
|
-
fn:
|
|
880
|
+
fn: y(() => [
|
|
879
881
|
$t(te(re.value.title), 1)
|
|
880
882
|
]),
|
|
881
883
|
key: "0"
|
|
882
884
|
} : void 0,
|
|
883
885
|
e.value.table.useDialog ? {
|
|
884
886
|
name: "actions",
|
|
885
|
-
fn:
|
|
887
|
+
fn: y(() => [
|
|
886
888
|
Y("button", {
|
|
887
889
|
tabindex: "0",
|
|
888
890
|
class: "vue-ui-user-options-button",
|
|
889
891
|
onClick: l[1] || (l[1] = (t) => Ie(e.value.userOptions.callbacks.csv))
|
|
890
892
|
}, [
|
|
891
|
-
xe(r(
|
|
893
|
+
xe(r(Ft), {
|
|
892
894
|
name: "excel",
|
|
893
895
|
stroke: re.value.props.color
|
|
894
896
|
}, null, 8, ["stroke"])
|
|
@@ -897,10 +899,10 @@ const So = ["id"], Oo = {
|
|
|
897
899
|
key: "1"
|
|
898
900
|
} : void 0
|
|
899
901
|
]), 1040)) : T("", !0),
|
|
900
|
-
r(
|
|
902
|
+
r(Fe) ? (i(), q(ko, { key: 8 })) : T("", !0)
|
|
901
903
|
], 46, So));
|
|
902
904
|
}
|
|
903
|
-
}, al = /* @__PURE__ */ _o(Uo, [["__scopeId", "data-v-
|
|
905
|
+
}, al = /* @__PURE__ */ _o(Uo, [["__scopeId", "data-v-4bb3bdeb"]]);
|
|
904
906
|
export {
|
|
905
907
|
al as default
|
|
906
908
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useCssVars as Xe, computed as h, defineAsyncComponent as x, ref as c, shallowRef as we, onMounted as We, onBeforeUnmount as Ye, watch as $e, createElementBlock as i, openBlock as n, unref as s, normalizeStyle as T, normalizeClass as N, createBlock as I, createCommentVNode as b, createSlots as xe, withCtx as m, renderSlot as g, normalizeProps as G, guardReactiveProps as j, createVNode as Le, createElementVNode as C, mergeProps as H, Fragment as X, renderList as W, toDisplayString as U, resolveDynamicComponent as qe, createTextVNode as _e, nextTick as Je } from "vue";
|
|
2
|
-
import { u as Ke, c as Qe, o as Ze, f as Te, g as et, e as tt, l as at, k as Y, i as q, X as lt, F as st, E as te, b as ot, v as nt, w as ut } from "./index-
|
|
2
|
+
import { u as Ke, c as Qe, o as Ze, f as Te, g as et, e as tt, l as at, k as Y, i as q, X as lt, F as st, E as te, b as ot, v as nt, w as ut } from "./index-C0wrF8hm.js";
|
|
3
3
|
import { t as rt, u as it } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ct } from "./usePrinter-
|
|
5
|
-
import { u as Ae } from "./useNestedProp-
|
|
4
|
+
import { u as ct } from "./usePrinter-C2jvouU0.js";
|
|
5
|
+
import { u as Ae } from "./useNestedProp-Bg2FlIgI.js";
|
|
6
6
|
import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as dt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ht from "./img-
|
|
9
|
-
import ft from "./Title-
|
|
8
|
+
import ht from "./img-DLgjML7h.js";
|
|
9
|
+
import ft from "./Title-DbQthJAs.js";
|
|
10
10
|
import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const mt = ["id"], gt = ["xmlns", "viewBox"],
|
|
11
|
+
const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["id"], kt = ["stop-color"], Ct = ["stop-color"], wt = ["stop-color"], $t = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], _t = ["points", "fill"], Tt = ["stroke", "stroke-width", "rx"], At = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], St = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, Dt = ["innerHTML"], zt = {
|
|
@@ -29,15 +29,15 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
29
29
|
},
|
|
30
30
|
setup(Oe, { expose: Se }) {
|
|
31
31
|
Xe((t) => ({
|
|
32
|
-
"
|
|
32
|
+
"9ac925c6": Ge.value
|
|
33
33
|
}));
|
|
34
|
-
const De = x(() => import("./BaseIcon-
|
|
34
|
+
const De = x(() => import("./BaseIcon-D_BjQBAR.js")), ze = x(() => import("./vue-ui-skeleton-B6Y0yxOn.js")), Ne = x(() => import("./vue-ui-accordion-3JuSLBjV.js")), Ie = x(() => import("./DataTable-IycMkaTU.js")), Pe = x(() => import("./UserOptions-Dd5XOrwq.js")), Fe = x(() => import("./PenAndPaper-BdzDJYnr.js")), Re = x(() => import("./PackageVersion-BtfT0hV9.js")), Be = x(() => import("./BaseDraggableDialog-BVZPPMT9.js")), { vue_ui_funnel: Me } = Ke(), p = Oe, w = c(null), P = c(Qe()), ae = c(0), le = c(0), se = c(0), oe = c(null), ne = c(null), ue = c(null), $ = we(null), A = we(null), L = c(!1), F = c(null), J = c(null), O = h(() => !!p.dataset && p.dataset.length);
|
|
35
35
|
We(re);
|
|
36
36
|
function re() {
|
|
37
|
-
if (Ze(
|
|
37
|
+
if (Ze(p.dataset) ? Te({
|
|
38
38
|
componentName: "VueUiFunnel",
|
|
39
39
|
type: "dataset"
|
|
40
|
-
}) :
|
|
40
|
+
}) : p.dataset.forEach((t, l) => {
|
|
41
41
|
et({
|
|
42
42
|
datasetObject: t,
|
|
43
43
|
requiredAttributes: ["name", "value"]
|
|
@@ -87,12 +87,12 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
87
87
|
});
|
|
88
88
|
function ie() {
|
|
89
89
|
const t = Ae({
|
|
90
|
-
userConfig:
|
|
90
|
+
userConfig: p.config,
|
|
91
91
|
defaultConfig: Me
|
|
92
92
|
});
|
|
93
93
|
return t.theme ? {
|
|
94
94
|
...Ae({
|
|
95
|
-
userConfig: ot.vue_ui_funnel[t.theme] ||
|
|
95
|
+
userConfig: ot.vue_ui_funnel[t.theme] || p.config,
|
|
96
96
|
defaultConfig: t
|
|
97
97
|
})
|
|
98
98
|
} : t;
|
|
@@ -101,7 +101,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
101
101
|
get: () => ie(),
|
|
102
102
|
set: (t) => t
|
|
103
103
|
}), { userOptionsVisible: K, setUserOptionsVisibility: ce, keepUserOptionState: ve } = vt({ config: e.value }), { svgRef: de } = dt({ config: e.value.style.chart.title });
|
|
104
|
-
$e(() =>
|
|
104
|
+
$e(() => p.config, (t) => {
|
|
105
105
|
e.value = ie(), K.value = !e.value.userOptions.showOnChartHover, re(), le.value += 1, se.value += 1, v.value.circles = e.value.style.chart.circles.dataLabels.fontSize, v.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, v.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, S.value.showTable = e.value.table.show;
|
|
106
106
|
}, { deep: !0 });
|
|
107
107
|
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: me } = ct({
|
|
@@ -120,13 +120,13 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
120
120
|
width: e.value.style.chart.width
|
|
121
121
|
}),
|
|
122
122
|
set: (t) => t
|
|
123
|
-
}),
|
|
123
|
+
}), y = h(() => O.value ? p.dataset.map((t, l) => ({
|
|
124
124
|
...t,
|
|
125
|
-
color: t.color ? tt(t.color) : at(e.value.style.chart.bars.defaultColor, l /
|
|
125
|
+
color: t.color ? tt(t.color) : at(e.value.style.chart.bars.defaultColor, l / p.dataset.length)
|
|
126
126
|
})) : []);
|
|
127
127
|
setTimeout(() => {
|
|
128
128
|
L.value = !0;
|
|
129
|
-
},
|
|
129
|
+
}, y.value.length * 150);
|
|
130
130
|
function ge() {
|
|
131
131
|
const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
|
|
132
132
|
return {
|
|
@@ -138,8 +138,8 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
138
138
|
height: d.value.height - l - e.value.style.chart.padding.bottom
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
const k = c(ge()), D = h(() => k.value.height /
|
|
142
|
-
const a = D.value - _.value, o = k.value.top + _.value / 2 * l + (D.value - _.value / 2) * l + _.value / 2, f = t.value /
|
|
141
|
+
const k = c(ge()), D = h(() => k.value.height / p.dataset.length), _ = h(() => D.value * e.value.style.chart.bars.gapRatio), pe = h(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), u = h(() => y.value.map((t, l) => {
|
|
142
|
+
const a = D.value - _.value, o = k.value.top + _.value / 2 * l + (D.value - _.value / 2) * l + _.value / 2, f = t.value / y.value[0].value, r = (k.value.width - a - pe.value) * (t.value / y.value[0].value);
|
|
143
143
|
return {
|
|
144
144
|
...t,
|
|
145
145
|
cx: k.value.left + a / 2,
|
|
@@ -150,7 +150,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
150
150
|
proportion: f,
|
|
151
151
|
r: Math.max(a / 2, 0),
|
|
152
152
|
width: Math.max(r, 0),
|
|
153
|
-
x: k.value.left + a +
|
|
153
|
+
x: k.value.left + a + pe.value,
|
|
154
154
|
y: o
|
|
155
155
|
};
|
|
156
156
|
})), Ee = h(() => {
|
|
@@ -162,10 +162,10 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
162
162
|
x2: u.value.at(-1).cx,
|
|
163
163
|
y2: u.value.at(-1).cy
|
|
164
164
|
})), z = c(!1);
|
|
165
|
-
function
|
|
165
|
+
function ye(t) {
|
|
166
166
|
z.value = t, ae.value += 1;
|
|
167
167
|
}
|
|
168
|
-
const Ge = h(() => `${
|
|
168
|
+
const Ge = h(() => `${y.value.length * 150}ms`), E = c(!1);
|
|
169
169
|
function Q() {
|
|
170
170
|
E.value = !E.value;
|
|
171
171
|
}
|
|
@@ -173,10 +173,10 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
173
173
|
S.value.showTable = !S.value.showTable;
|
|
174
174
|
}
|
|
175
175
|
const R = h(() => {
|
|
176
|
-
const t =
|
|
176
|
+
const t = y.value.map((a) => ({
|
|
177
177
|
name: a.name,
|
|
178
178
|
color: a.color
|
|
179
|
-
})), l =
|
|
179
|
+
})), l = y.value.map((a) => a.value);
|
|
180
180
|
return { head: t, body: l };
|
|
181
181
|
}), V = h(() => {
|
|
182
182
|
const t = [
|
|
@@ -242,7 +242,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
function je() {
|
|
245
|
-
return
|
|
245
|
+
return y.value;
|
|
246
246
|
}
|
|
247
247
|
async function He({ scale: t = 2 } = {}) {
|
|
248
248
|
if (!w.value) return;
|
|
@@ -300,7 +300,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
300
300
|
generateImage: me,
|
|
301
301
|
toggleTable: ke,
|
|
302
302
|
toggleAnnotator: Q,
|
|
303
|
-
toggleFullscreen:
|
|
303
|
+
toggleFullscreen: ye
|
|
304
304
|
}), (t, l) => (n(), i("div", {
|
|
305
305
|
ref_key: "funnelChart",
|
|
306
306
|
ref: w,
|
|
@@ -371,7 +371,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
371
371
|
printScale: e.value.userOptions.print.scale,
|
|
372
372
|
tableDialog: e.value.table.useDialog,
|
|
373
373
|
onToggleAnnotator: Q,
|
|
374
|
-
onToggleFullscreen:
|
|
374
|
+
onToggleFullscreen: ye,
|
|
375
375
|
onGeneratePdf: s(be),
|
|
376
376
|
onGenerateImage: s(me),
|
|
377
377
|
onToggleTable: ke,
|
|
@@ -451,7 +451,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
451
451
|
}
|
|
452
452
|
}, [
|
|
453
453
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
454
|
-
], 8,
|
|
454
|
+
], 8, pt)) : b("", !0),
|
|
455
455
|
C("defs", null, [
|
|
456
456
|
C("linearGradient", {
|
|
457
457
|
id: `funnel_area_${P.value}`,
|
|
@@ -473,7 +473,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
473
473
|
offset: "100%",
|
|
474
474
|
"stop-color": e.value.style.chart.area.color
|
|
475
475
|
}, null, 8, wt)
|
|
476
|
-
], 8,
|
|
476
|
+
], 8, yt)
|
|
477
477
|
]),
|
|
478
478
|
e.value.style.chart.circleLinks.show ? (n(), i("line", H({ key: 1 }, Ve.value, {
|
|
479
479
|
stroke: e.value.style.chart.circleLinks.color,
|
|
@@ -528,7 +528,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
528
528
|
animated: e.value.useCssAnimation && !L.value
|
|
529
529
|
}),
|
|
530
530
|
style: T({
|
|
531
|
-
transition: e.value.useCssAnimation ? `all ${150 *
|
|
531
|
+
transition: e.value.useCssAnimation ? `all ${150 * y.value.length}ms ease-in` : "none"
|
|
532
532
|
})
|
|
533
533
|
}, null, 14, _t)) : b("", !0),
|
|
534
534
|
(n(!0), i(X, null, W(u.value, ({ x: a, y: o, height: f, width: r, fill: M }, ee) => (n(), i("rect", H({ ref_for: !0 }, { x: a, y: o, height: f, width: r, fill: M }, {
|
|
@@ -610,7 +610,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
610
610
|
}, [
|
|
611
611
|
g(t.$slots, "source", {}, void 0, !0)
|
|
612
612
|
], 512)) : b("", !0),
|
|
613
|
-
O.value ? (n(), I(qe(B.value.component), H({ key: 8 }, B.value.props, {
|
|
613
|
+
O.value && e.value.userOptions.buttons.table ? (n(), I(qe(B.value.component), H({ key: 8 }, B.value.props, {
|
|
614
614
|
ref_key: "tableUnit",
|
|
615
615
|
ref: F,
|
|
616
616
|
onClose: Ce
|
|
@@ -666,7 +666,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], pt = ["i
|
|
|
666
666
|
]), 1040)) : b("", !0)
|
|
667
667
|
], 46, mt));
|
|
668
668
|
}
|
|
669
|
-
}, Gt = /* @__PURE__ */ bt(zt, [["__scopeId", "data-v-
|
|
669
|
+
}, Gt = /* @__PURE__ */ bt(zt, [["__scopeId", "data-v-6fb80307"]]);
|
|
670
670
|
export {
|
|
671
671
|
Gt as default
|
|
672
672
|
};
|