vue-data-ui 3.1.1 → 3.1.3
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-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
- package/dist/Legend-5qvgVkrY.js +85 -0
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
- package/dist/Title-CqYBs02Y.js +88 -0
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
- package/dist/pdf-BG8PiGFH.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +28 -3
- package/dist/types/vue-data-ui.d.ts +28 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
- package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
- package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
- package/package.json +1 -1
- package/dist/Legend-8_V5egWW.js +0 -72
- package/dist/Title-Dz-j6ERs.js +0 -61
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
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 b, 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-CaxArMHL.js";
|
|
3
|
+
import { t as mo, u as yo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as bo } from "./usePrinter-BYtPmEo8.js";
|
|
5
|
+
import { u as Co, B as ko } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as xt } from "./useNestedProp-tWT02_6S.js";
|
|
7
|
+
import { u as wo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as $o } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Ao from "./Legend-5qvgVkrY.js";
|
|
10
|
+
import To from "./Title-CqYBs02Y.js";
|
|
11
|
+
import xo from "./img-DSrvx9J6.js";
|
|
12
|
+
import { _ as _o } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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
|
+
}, No = ["id"], Fo = ["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 = {
|
|
22
22
|
__name: "vue-ui-flow",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -34,19 +34,19 @@ const xo = ["id"], _o = {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
setup(_t, { expose: St }) {
|
|
38
|
+
const Ot = H(() => import("./Tooltip-CP0tVHAf.js")), Nt = H(() => import("./BaseIcon-BcOSijbz.js")), Ft = H(() => import("./vue-ui-accordion-DUlNpLir.js")), Et = H(() => import("./DataTable-Cm8Tt9PQ.js")), Pt = H(() => import("./PenAndPaper-CyH7Ip2i.js")), It = H(() => import("./UserOptions-ZmwlARCV.js")), Mt = H(() => import("./PackageVersion-0XlRFsI_.js")), Dt = H(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_flow: Lt } = ao(), F = _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(() => !!F.dataset && F.dataset.length);
|
|
39
|
+
Jt(() => {
|
|
40
|
+
Xe.value = !0, Ze();
|
|
41
41
|
});
|
|
42
|
-
const U =
|
|
43
|
-
function
|
|
44
|
-
U.value = o,
|
|
42
|
+
const U = c(!1);
|
|
43
|
+
function Ke(o) {
|
|
44
|
+
U.value = o, Ye.value += 1;
|
|
45
45
|
}
|
|
46
|
-
const e =
|
|
47
|
-
...
|
|
46
|
+
const e = c(Pe()), { loading: Ne, FINAL_DATASET: ge, manualLoading: Fe } = Co({
|
|
47
|
+
...Qt(F),
|
|
48
48
|
FINAL_CONFIG: e,
|
|
49
|
-
prepareConfig:
|
|
49
|
+
prepareConfig: Pe,
|
|
50
50
|
skeletonDataset: [
|
|
51
51
|
["A", "B", 2, "#CACACA"],
|
|
52
52
|
["B", "C", 1, "#CACACA"],
|
|
@@ -55,7 +55,7 @@ const xo = ["id"], _o = {
|
|
|
55
55
|
["F", "G", 0.5, "#AAAAAA"],
|
|
56
56
|
["G", "H", 0.25, "#AAAAAA"]
|
|
57
57
|
],
|
|
58
|
-
skeletonConfig:
|
|
58
|
+
skeletonConfig: no({
|
|
59
59
|
defaultConfig: e.value,
|
|
60
60
|
userConfig: {
|
|
61
61
|
userOptions: { show: !1 },
|
|
@@ -87,75 +87,75 @@ const xo = ["id"], _o = {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
})
|
|
90
|
-
}),
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
90
|
+
}), zt = g(() => !!e.value.debug);
|
|
91
|
+
function Ze() {
|
|
92
|
+
if (At(F.dataset) && (so({
|
|
93
93
|
componentName: "VueUiFlow",
|
|
94
94
|
type: "dataset",
|
|
95
|
-
debug:
|
|
96
|
-
}),
|
|
97
|
-
const o =
|
|
98
|
-
const { width: l, height: t } =
|
|
99
|
-
chart:
|
|
100
|
-
title: e.value.style.chart.title.text ?
|
|
101
|
-
legend: e.value.style.chart.legend.show ?
|
|
102
|
-
source:
|
|
95
|
+
debug: zt.value
|
|
96
|
+
}), Fe.value = !0), At(F.dataset) || (Fe.value = e.value.loading), e.value.responsive) {
|
|
97
|
+
const o = mo(() => {
|
|
98
|
+
const { width: l, height: t } = yo({
|
|
99
|
+
chart: M.value,
|
|
100
|
+
title: e.value.style.chart.title.text ? je.value : null,
|
|
101
|
+
legend: e.value.style.chart.legend.show ? Ue.value : null,
|
|
102
|
+
source: Ve.value
|
|
103
103
|
});
|
|
104
104
|
requestAnimationFrame(() => {
|
|
105
|
-
|
|
105
|
+
tt.value = l, ot.value = t;
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(o), pe.value =
|
|
108
|
+
oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(o), pe.value = M.value.parentNode, oe.value.observe(pe.value);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
const { userOptionsVisible:
|
|
111
|
+
const { userOptionsVisible: Ee, setUserOptionsVisibility: Je, keepUserOptionState: Qe } = wo({ config: e.value }), { svgRef: et } = $o({
|
|
112
112
|
config: e.value.style.chart.title
|
|
113
113
|
});
|
|
114
|
-
function
|
|
115
|
-
const o =
|
|
116
|
-
userConfig:
|
|
117
|
-
defaultConfig:
|
|
114
|
+
function Pe() {
|
|
115
|
+
const o = xt({
|
|
116
|
+
userConfig: F.config,
|
|
117
|
+
defaultConfig: Lt
|
|
118
118
|
});
|
|
119
119
|
let l = o;
|
|
120
120
|
return o.theme ? l = {
|
|
121
|
-
...
|
|
122
|
-
userConfig:
|
|
121
|
+
...xt({
|
|
122
|
+
userConfig: uo.vue_ui_flow[o.theme] || F.config,
|
|
123
123
|
defaultConfig: o
|
|
124
124
|
}),
|
|
125
|
-
customPalette:
|
|
126
|
-
} : l = o, l.nodeCategories =
|
|
125
|
+
customPalette: ro[o.theme] || L
|
|
126
|
+
} : l = o, l.nodeCategories = F.config.nodeCategories || {}, l.nodeCategoryColors = F.config.nodeCategoryColors || {}, l;
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const tt = c(e.value.style.chart.width), ot = c(e.value.style.chart.height);
|
|
129
129
|
Te(
|
|
130
|
-
() =>
|
|
130
|
+
() => F.config,
|
|
131
131
|
(o) => {
|
|
132
|
-
|
|
132
|
+
Ne.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(() => F.dataset, (o) => {
|
|
136
|
+
Array.isArray(o) && o.length > 0 && (Fe.value = !1);
|
|
137
137
|
}, { deep: !0 });
|
|
138
|
-
const { isPrinting:
|
|
138
|
+
const { isPrinting: lt, isImaging: at, generatePdf: nt, generateImage: st } = bo({
|
|
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
|
-
}),
|
|
142
|
+
}), Bt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = g(() => io(e.value.customPalette)), ye = 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
|
});
|
|
146
146
|
Te(e, () => {
|
|
147
|
-
|
|
147
|
+
E.value = {
|
|
148
148
|
showTable: e.value.table.show,
|
|
149
149
|
showTooltip: e.value.style.chart.tooltip.show
|
|
150
150
|
};
|
|
151
151
|
}, { immediate: !0 });
|
|
152
|
-
const
|
|
152
|
+
const rt = g(() => !ge.value || !ge.value.length ? [] : ge.value.map((o, l) => [
|
|
153
153
|
o[0],
|
|
154
154
|
o[1],
|
|
155
155
|
x(o[2]),
|
|
156
|
-
o[3] ?
|
|
156
|
+
o[3] ? co(o[3]) : me.value[l] || me.value[l % me.value.length] || L[l] || L[l % L.length]
|
|
157
157
|
]));
|
|
158
|
-
function
|
|
158
|
+
function Rt(o) {
|
|
159
159
|
const l = {}, t = {};
|
|
160
160
|
function n(a, u) {
|
|
161
161
|
l[a] || (l[a] = {
|
|
@@ -168,8 +168,8 @@ const xo = ["id"], _o = {
|
|
|
168
168
|
}), l[a].level === null && (l[a].level = u), t[u] || (t[u] = []), t[u].includes(a) || t[u].push(a);
|
|
169
169
|
}
|
|
170
170
|
o.forEach(([a, u, d]) => {
|
|
171
|
-
const h = l[a]?.level ?? 0,
|
|
172
|
-
n(a, h), n(u,
|
|
171
|
+
const h = l[a]?.level ?? 0, S = h + 1;
|
|
172
|
+
n(a, h), n(u, S), l[a].children.push({ target: u, value: d }), l[a].outflow += d, l[u].inflow += d;
|
|
173
173
|
});
|
|
174
174
|
const s = new Set(o.map(([a]) => a)), $ = new Set(o.map(([, a]) => a)), Z = Array.from(s).filter((a) => !$.has(a)), ue = {};
|
|
175
175
|
Z.forEach((a, u) => {
|
|
@@ -184,78 +184,78 @@ const xo = ["id"], _o = {
|
|
|
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,
|
|
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(ye.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
|
-
function
|
|
190
|
+
function v(a) {
|
|
191
191
|
const u = t[a], d = u.length;
|
|
192
192
|
if (!d) return 1 / 0;
|
|
193
|
-
const h = Math.max(0, (d - 1) *
|
|
194
|
-
let C = 0,
|
|
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), y = O.reduce((f, N) => f + N, 0);
|
|
195
195
|
for (let f = 0; f < 12; f += 1) {
|
|
196
|
-
const
|
|
197
|
-
for (let P = 0; P <
|
|
198
|
-
const
|
|
199
|
-
|
|
196
|
+
const N = y > 0 ? (S - C) / y : 0, B = [];
|
|
197
|
+
for (let P = 0; P < O.length; P += 1) {
|
|
198
|
+
const R = O[P];
|
|
199
|
+
R < 0 || R * N < z && B.push(P);
|
|
200
200
|
}
|
|
201
|
-
if (!B.length) return Math.max(0,
|
|
201
|
+
if (!B.length) return Math.max(0, N);
|
|
202
202
|
for (const P of B)
|
|
203
|
-
C += z, y -=
|
|
203
|
+
C += z, y -= O[P], O[P] = -1;
|
|
204
204
|
if (y <= 0) return 0;
|
|
205
205
|
}
|
|
206
|
-
return y > 0 ? Math.max(0, (
|
|
206
|
+
return y > 0 ? Math.max(0, (S - C) / y) : 0;
|
|
207
207
|
}
|
|
208
|
-
const m = D.map(
|
|
208
|
+
const m = D.map(v), V = m.length ? Math.min(...m) : 0, X = {};
|
|
209
209
|
D.forEach((a) => {
|
|
210
|
-
const u = t[a], d = u.length, h = Math.max(0, (d - 1) *
|
|
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
|
-
),
|
|
213
|
-
let y = Math.max(0, (J -
|
|
214
|
-
u.forEach((f,
|
|
215
|
-
const B = C[
|
|
212
|
+
), O = C.reduce((f, N) => f + N, 0) + h;
|
|
213
|
+
let y = Math.max(0, (J - O) / 2);
|
|
214
|
+
u.forEach((f, N) => {
|
|
215
|
+
const B = C[N], P = we.left + a * ze, R = y;
|
|
216
216
|
X[f] = {
|
|
217
217
|
x: P,
|
|
218
|
-
y:
|
|
219
|
-
absoluteY:
|
|
218
|
+
y: R,
|
|
219
|
+
absoluteY: R,
|
|
220
220
|
height: B,
|
|
221
|
-
i:
|
|
221
|
+
i: N,
|
|
222
222
|
color: l[f].color,
|
|
223
223
|
value: l[f].value
|
|
224
|
-
}, y += B,
|
|
224
|
+
}, y += B, N < d - 1 && (y += I);
|
|
225
225
|
});
|
|
226
226
|
});
|
|
227
|
-
const
|
|
227
|
+
const yt = [], 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
|
});
|
|
231
|
-
const
|
|
231
|
+
const Vt = 1e-6, Xt = 0.25;
|
|
232
232
|
return D.forEach((a) => {
|
|
233
233
|
t[a].forEach((d) => {
|
|
234
|
-
const h = l[d],
|
|
234
|
+
const h = l[d], S = X[d];
|
|
235
235
|
if (!h.children || !h.children.length) return;
|
|
236
|
-
let z =
|
|
237
|
-
h.children.forEach(({ target: C, value:
|
|
238
|
-
const y = X[C], f = l[C],
|
|
239
|
-
let Ae =
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
(
|
|
243
|
-
const
|
|
244
|
-
|
|
236
|
+
let z = S.y;
|
|
237
|
+
h.children.forEach(({ target: C, value: O }) => {
|
|
238
|
+
const y = X[C], f = l[C], N = h.outflow > 0 ? O / h.outflow : 0, B = f.inflow > 0 ? O / f.inflow : 0, P = x(z + ve), R = x(z + N * S.height + ve), bt = Be[C];
|
|
239
|
+
let Ae = bt + B * y.height;
|
|
240
|
+
Re[C] += O;
|
|
241
|
+
const qt = f.inflow > 0 && Re[C] >= f.inflow - Vt, Ct = y.y + y.height;
|
|
242
|
+
(qt || Ae > Ct - Xt) && (Ae = Ct);
|
|
243
|
+
const Kt = x(bt + ve), Zt = x(Ae + ve);
|
|
244
|
+
yt.push({
|
|
245
245
|
id: He(),
|
|
246
246
|
source: d,
|
|
247
247
|
target: C,
|
|
248
|
-
path: `M ${x(
|
|
249
|
-
value:
|
|
248
|
+
path: `M ${x(S.x + A)} ${P} L ${x(S.x + A)} ${R} L ${x(y.x)} ${Zt} L ${x(y.x)} ${Kt} Z`,
|
|
249
|
+
value: O,
|
|
250
250
|
sourceColor: h.color,
|
|
251
251
|
targetColor: l[C].color
|
|
252
|
-
}), z =
|
|
252
|
+
}), z = R - ve, Be[C] = Ae;
|
|
253
253
|
});
|
|
254
254
|
});
|
|
255
|
-
}), { nodeCoordinates: X, links:
|
|
255
|
+
}), { nodeCoordinates: X, links: yt };
|
|
256
256
|
}
|
|
257
|
-
const
|
|
258
|
-
const o =
|
|
257
|
+
const _ = g(() => {
|
|
258
|
+
const o = Rt(ge.value);
|
|
259
259
|
return {
|
|
260
260
|
nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
|
|
261
261
|
...o.nodeCoordinates[l],
|
|
@@ -263,62 +263,62 @@ const xo = ["id"], _o = {
|
|
|
263
263
|
})),
|
|
264
264
|
links: o.links
|
|
265
265
|
};
|
|
266
|
-
}),
|
|
267
|
-
width: Math.max(0,
|
|
268
|
-
height: Math.max(0,
|
|
266
|
+
}), ut = g(() => tt.value), it = g(() => ot.value), ae = g(() => e.value.style.chart.padding), ct = g(() => ({
|
|
267
|
+
width: Math.max(0, ut.value - 40 - ae.value.right - ae.value.left),
|
|
268
|
+
height: Math.max(0, it.value - ae.value.top - ae.value.bottom)
|
|
269
269
|
})), ne = g(() => ({
|
|
270
|
-
width:
|
|
271
|
-
height:
|
|
270
|
+
width: ut.value,
|
|
271
|
+
height: it.value
|
|
272
272
|
}));
|
|
273
|
-
function
|
|
273
|
+
function Ht(o) {
|
|
274
274
|
const l = {}, t = {}, n = /* @__PURE__ */ new Set();
|
|
275
|
-
return
|
|
275
|
+
return rt.value.forEach(([s, $, Z]) => {
|
|
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 =
|
|
280
|
-
function
|
|
281
|
-
j.value = [], w.value =
|
|
282
|
-
const t = o.name, n =
|
|
279
|
+
const w = c(null), K = c(null), se = c(null), be = c(!1);
|
|
280
|
+
function Wt(o, l) {
|
|
281
|
+
j.value = [], w.value = Ht(o.name), K.value = o.name;
|
|
282
|
+
const t = o.name, n = rt.value;
|
|
283
283
|
let s = 0, $ = 0, Z = [], ue = [];
|
|
284
|
-
const ie = new Set(n.map(([
|
|
285
|
-
|
|
286
|
-
D[
|
|
287
|
-
}), n.forEach(([
|
|
288
|
-
m === t && (s += V, Z.push({ source:
|
|
284
|
+
const ie = new Set(n.map(([v]) => v)), we = new Set(n.map(([, v]) => v)), Le = Array.from(ie).filter((v) => !we.has(v)), J = n.filter(([v]) => Le.includes(v)).reduce((v, [m, V, X]) => v + X, 0), D = {};
|
|
285
|
+
_.value.nodes.forEach((v) => {
|
|
286
|
+
D[v.name] = v.color;
|
|
287
|
+
}), n.forEach(([v, m, V]) => {
|
|
288
|
+
m === t && (s += V, Z.push({ source: v, value: V, color: D[v] })), v === t && ($ += V, ue.push({ target: m, value: V, color: D[m] }));
|
|
289
289
|
});
|
|
290
|
-
const $e = Math.max(s, $),
|
|
290
|
+
const $e = Math.max(s, $), ze = J > 0 ? $e / J * 100 : 0, A = {
|
|
291
291
|
name: t,
|
|
292
292
|
inflow: s,
|
|
293
293
|
outflow: $,
|
|
294
294
|
from: Z,
|
|
295
295
|
to: ue,
|
|
296
|
-
percentOfTotal:
|
|
296
|
+
percentOfTotal: ze,
|
|
297
297
|
color: D[t] || "#000000"
|
|
298
298
|
};
|
|
299
299
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, _e.value = !0;
|
|
300
|
-
let
|
|
300
|
+
let I = "";
|
|
301
301
|
const ce = e.value.style.chart.tooltip.customFormat;
|
|
302
|
-
if (be.value = !1,
|
|
302
|
+
if (be.value = !1, go(ce))
|
|
303
303
|
try {
|
|
304
|
-
const
|
|
304
|
+
const v = ce({
|
|
305
305
|
datapoint: A,
|
|
306
|
-
series:
|
|
306
|
+
series: _.value,
|
|
307
307
|
config: e.value
|
|
308
308
|
});
|
|
309
|
-
typeof
|
|
309
|
+
typeof v == "string" && (Se.value = v, be.value = !0);
|
|
310
310
|
} catch {
|
|
311
311
|
console.warn("Custom format cannot be applied.");
|
|
312
312
|
}
|
|
313
313
|
if (!be.value) {
|
|
314
|
-
const
|
|
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,
|
|
317
317
|
s: "%",
|
|
318
318
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
319
319
|
})}</div>` : "";
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
I += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${A.color}">⏹</span>${A.name}${v}</div>`, A.from.length && (I += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, A.from.forEach((m) => {
|
|
321
|
+
I += `<div><span style="color:${m.color}">⏹←</span> ${m.source}: ${We(
|
|
322
322
|
e.value.style.chart.nodes.labels.formatter,
|
|
323
323
|
m.value,
|
|
324
324
|
fe({
|
|
@@ -328,8 +328,8 @@ const xo = ["id"], _o = {
|
|
|
328
328
|
r: e.value.style.chart.nodes.labels.rounding
|
|
329
329
|
})
|
|
330
330
|
)}</div>`;
|
|
331
|
-
})), A.to.length && (
|
|
332
|
-
|
|
331
|
+
})), A.to.length && (I += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, A.to.forEach((m) => {
|
|
332
|
+
I += `<div><span style="color:${m.color}">⏹→</span> ${m.target}: ${We(
|
|
333
333
|
e.value.style.chart.nodes.labels.formatter,
|
|
334
334
|
m.value,
|
|
335
335
|
fe({
|
|
@@ -339,18 +339,18 @@ const xo = ["id"], _o = {
|
|
|
339
339
|
r: e.value.style.chart.nodes.labels.rounding
|
|
340
340
|
})
|
|
341
341
|
)}</div>`;
|
|
342
|
-
})), Se.value =
|
|
342
|
+
})), Se.value = I;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function vt(o) {
|
|
346
346
|
const l = se.value;
|
|
347
347
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), w.value = null, K.value = null, _e.value = !1;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Yt(o) {
|
|
350
350
|
const l = se.value;
|
|
351
351
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
|
|
352
352
|
}
|
|
353
|
-
const
|
|
353
|
+
const dt = g(() => _.value.links.map(
|
|
354
354
|
({ source: o, target: l, sourceColor: t, targetColor: n, value: s }) => ({
|
|
355
355
|
source: o,
|
|
356
356
|
target: l,
|
|
@@ -359,9 +359,9 @@ const xo = ["id"], _o = {
|
|
|
359
359
|
value: s
|
|
360
360
|
})
|
|
361
361
|
));
|
|
362
|
-
function
|
|
363
|
-
|
|
364
|
-
const l =
|
|
362
|
+
function Ie(o = null) {
|
|
363
|
+
lo(() => {
|
|
364
|
+
const l = dt.value.map((s, $) => [[s.source], [s.target], [s.value]]), t = [
|
|
365
365
|
[e.value.style.chart.title.text],
|
|
366
366
|
[e.value.style.chart.title.subtitle.text],
|
|
367
367
|
[
|
|
@@ -369,8 +369,8 @@ const xo = ["id"], _o = {
|
|
|
369
369
|
[e.value.table.columnNames.target],
|
|
370
370
|
[e.value.table.columnNames.value]
|
|
371
371
|
]
|
|
372
|
-
].concat(l), n =
|
|
373
|
-
o ? o(n) :
|
|
372
|
+
].concat(l), n = fo(t);
|
|
373
|
+
o ? o(n) : po({
|
|
374
374
|
csvContent: n,
|
|
375
375
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
376
376
|
});
|
|
@@ -381,7 +381,7 @@ const xo = ["id"], _o = {
|
|
|
381
381
|
e.value.table.columnNames.source,
|
|
382
382
|
e.value.table.columnNames.target,
|
|
383
383
|
e.value.table.columnNames.value
|
|
384
|
-
], l =
|
|
384
|
+
], l = dt.value.map((s, $) => [
|
|
385
385
|
{
|
|
386
386
|
color: s.sourceColor,
|
|
387
387
|
name: s.source,
|
|
@@ -422,22 +422,22 @@ const xo = ["id"], _o = {
|
|
|
422
422
|
config: t
|
|
423
423
|
};
|
|
424
424
|
});
|
|
425
|
-
function
|
|
426
|
-
return
|
|
425
|
+
function Gt() {
|
|
426
|
+
return _.value;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
|
|
428
|
+
function ht() {
|
|
429
|
+
E.value.showTable = !E.value.showTable;
|
|
430
430
|
}
|
|
431
|
-
const ke =
|
|
431
|
+
const ke = c(!1);
|
|
432
432
|
function Me() {
|
|
433
433
|
ke.value = !ke.value;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
|
|
435
|
+
function ft() {
|
|
436
|
+
E.value.showTooltip = !E.value.showTooltip;
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const pt = g(() => {
|
|
439
439
|
const o = new Set(
|
|
440
|
-
|
|
440
|
+
_.value.nodes.map(
|
|
441
441
|
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
442
442
|
)
|
|
443
443
|
);
|
|
@@ -445,18 +445,18 @@ const xo = ["id"], _o = {
|
|
|
445
445
|
name: l,
|
|
446
446
|
color: e.value.nodeCategoryColors[l] || L[0],
|
|
447
447
|
shape: "square",
|
|
448
|
-
count:
|
|
448
|
+
count: _.value.nodes.filter(
|
|
449
449
|
(t) => (e.value.nodeCategories[t.name] || "__uncategorized__") === l
|
|
450
450
|
).length
|
|
451
451
|
})).map((l, t) => ({
|
|
452
452
|
...l,
|
|
453
|
-
segregate: () =>
|
|
453
|
+
segregate: () => De({ legend: l, i: t }),
|
|
454
454
|
opacity: j.value.length ? j.value.includes(t) ? 1 : 0.5 : 1
|
|
455
455
|
}));
|
|
456
|
-
}),
|
|
457
|
-
() =>
|
|
458
|
-
), j =
|
|
459
|
-
function
|
|
456
|
+
}), gt = g(
|
|
457
|
+
() => pt.value.filter((o) => o.name !== "__uncategorized__")
|
|
458
|
+
), j = c([]);
|
|
459
|
+
function De({ legend: o, i: l }) {
|
|
460
460
|
const t = o.name;
|
|
461
461
|
if (w.value?.every(
|
|
462
462
|
(n) => e.value.nodeCategories[n] === t
|
|
@@ -464,9 +464,9 @@ const xo = ["id"], _o = {
|
|
|
464
464
|
w.value = null, K.value = null, j.value = [];
|
|
465
465
|
return;
|
|
466
466
|
}
|
|
467
|
-
j.value = [l], w.value =
|
|
467
|
+
j.value = [l], w.value = _.value.nodes.filter((n) => e.value.nodeCategories[n.name] === t).map((n) => n.name), K.value = null;
|
|
468
468
|
}
|
|
469
|
-
const
|
|
469
|
+
const Ut = g(() => ({
|
|
470
470
|
cy: "flow-legend",
|
|
471
471
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
472
472
|
color: e.value.style.chart.legend.color,
|
|
@@ -474,9 +474,9 @@ const xo = ["id"], _o = {
|
|
|
474
474
|
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
475
475
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
476
476
|
}));
|
|
477
|
-
async function
|
|
478
|
-
if (!
|
|
479
|
-
const { width: l, height: t } =
|
|
477
|
+
async function jt({ scale: o = 2 } = {}) {
|
|
478
|
+
if (!M.value) return;
|
|
479
|
+
const { width: l, height: t } = M.value.getBoundingClientRect(), n = l / t, { imageUri: s, base64: $ } = await xo({ domElement: M.value, base64: !0, img: !0, scale: o });
|
|
480
480
|
return {
|
|
481
481
|
imageUri: s,
|
|
482
482
|
base64: $,
|
|
@@ -487,9 +487,9 @@ const xo = ["id"], _o = {
|
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
const re = g(() => {
|
|
490
|
-
const o = e.value.table.useDialog && !e.value.table.show, l =
|
|
490
|
+
const o = e.value.table.useDialog && !e.value.table.show, l = E.value.showTable;
|
|
491
491
|
return {
|
|
492
|
-
component: o ?
|
|
492
|
+
component: o ? Dt : Ft,
|
|
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,
|
|
@@ -497,7 +497,7 @@ const xo = ["id"], _o = {
|
|
|
497
497
|
headerColor: e.value.table.th.color,
|
|
498
498
|
headerBg: e.value.table.th.backgroundColor,
|
|
499
499
|
isFullscreen: U.value,
|
|
500
|
-
fullscreenParent:
|
|
500
|
+
fullscreenParent: M.value,
|
|
501
501
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
502
502
|
} : {
|
|
503
503
|
hideDetails: !0,
|
|
@@ -516,46 +516,50 @@ const xo = ["id"], _o = {
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
Te(() => E.value.showTable, (o) => {
|
|
520
520
|
e.value.table.show || (o && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
521
|
-
})
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
521
|
+
});
|
|
522
|
+
function mt() {
|
|
523
|
+
E.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
|
|
524
|
+
}
|
|
525
|
+
return St({
|
|
526
|
+
getData: Gt,
|
|
527
|
+
getImage: jt,
|
|
528
|
+
generateCsv: Ie,
|
|
529
|
+
generateImage: st,
|
|
530
|
+
generatePdf: nt,
|
|
531
|
+
toggleTable: ht,
|
|
528
532
|
toggleAnnotator: Me,
|
|
529
|
-
toggleTooltip:
|
|
530
|
-
drillCategory:
|
|
531
|
-
unselectNode:
|
|
532
|
-
toggleFullscreen:
|
|
533
|
+
toggleTooltip: ft,
|
|
534
|
+
drillCategory: De,
|
|
535
|
+
unselectNode: vt,
|
|
536
|
+
toggleFullscreen: Ke
|
|
533
537
|
}), (o, l) => (i(), p("div", {
|
|
534
538
|
ref_key: "flowChart",
|
|
535
|
-
ref:
|
|
536
|
-
class:
|
|
539
|
+
ref: M,
|
|
540
|
+
class: kt(`vue-ui-flow ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
537
541
|
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
538
542
|
id: `flow_${G.value}`,
|
|
539
|
-
onMouseenter: l[
|
|
540
|
-
onMouseleave: l[
|
|
543
|
+
onMouseenter: l[2] || (l[2] = () => r(Je)(!0)),
|
|
544
|
+
onMouseleave: l[3] || (l[3] = () => r(Je)(!1))
|
|
541
545
|
}, [
|
|
542
|
-
e.value.userOptions.buttons.annotator ? (i(), q(r(
|
|
546
|
+
e.value.userOptions.buttons.annotator ? (i(), q(r(Pt), {
|
|
543
547
|
key: 0,
|
|
544
|
-
svgRef: r(
|
|
548
|
+
svgRef: r(et),
|
|
545
549
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
546
550
|
color: e.value.style.chart.color,
|
|
547
551
|
active: ke.value,
|
|
548
552
|
onClose: Me
|
|
549
553
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
|
|
550
|
-
|
|
554
|
+
Bt.value ? (i(), p("div", Oo, null, 512)) : T("", !0),
|
|
551
555
|
e.value.style.chart.title.text ? (i(), p("div", {
|
|
552
556
|
key: 2,
|
|
553
557
|
ref_key: "chartTitle",
|
|
554
|
-
ref:
|
|
558
|
+
ref: je,
|
|
555
559
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
556
560
|
}, [
|
|
557
|
-
(i(), q(
|
|
558
|
-
key: `title_${
|
|
561
|
+
(i(), q(To, {
|
|
562
|
+
key: `title_${Ge.value}`,
|
|
559
563
|
config: {
|
|
560
564
|
title: {
|
|
561
565
|
cy: "flow-title",
|
|
@@ -570,14 +574,15 @@ const xo = ["id"], _o = {
|
|
|
570
574
|
], 512)) : T("", !0),
|
|
571
575
|
Y("div", {
|
|
572
576
|
id: `legend-top-${G.value}`
|
|
573
|
-
}, null, 8,
|
|
574
|
-
e.value.userOptions.show &&
|
|
575
|
-
|
|
576
|
-
|
|
577
|
+
}, null, 8, No),
|
|
578
|
+
e.value.userOptions.show && qe.value && (r(Qe) || r(Ee)) ? (i(), q(r(It), {
|
|
579
|
+
ref_key: "userOptionsRef",
|
|
580
|
+
ref: Oe,
|
|
581
|
+
key: `user_option_${Ye.value}`,
|
|
577
582
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
578
583
|
color: e.value.style.chart.color,
|
|
579
|
-
isPrinting: r(
|
|
580
|
-
isImaging: r(
|
|
584
|
+
isPrinting: r(lt),
|
|
585
|
+
isImaging: r(at),
|
|
581
586
|
uid: G.value,
|
|
582
587
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
583
588
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -587,24 +592,25 @@ const xo = ["id"], _o = {
|
|
|
587
592
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
588
593
|
isFullscreen: U.value,
|
|
589
594
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
590
|
-
chartElement:
|
|
595
|
+
chartElement: M.value,
|
|
591
596
|
position: e.value.userOptions.position,
|
|
592
597
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
593
598
|
printScale: e.value.userOptions.print.scale,
|
|
594
599
|
isAnnotation: ke.value,
|
|
595
600
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
596
|
-
isTooltip:
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
601
|
+
isTooltip: E.value.showTooltip,
|
|
602
|
+
tableDialog: e.value.table.useDialog,
|
|
603
|
+
onToggleTooltip: ft,
|
|
604
|
+
onToggleFullscreen: Ke,
|
|
605
|
+
onGeneratePdf: r(nt),
|
|
606
|
+
onGenerateCsv: Ie,
|
|
607
|
+
onGenerateImage: r(st),
|
|
608
|
+
onToggleTable: ht,
|
|
603
609
|
onToggleAnnotator: Me,
|
|
604
610
|
style: W({
|
|
605
|
-
visibility: r(
|
|
611
|
+
visibility: r(Qe) ? r(Ee) ? "visible" : "hidden" : "visible"
|
|
606
612
|
})
|
|
607
|
-
},
|
|
613
|
+
}, wt({ _: 2 }, [
|
|
608
614
|
o.$slots.menuIcon ? {
|
|
609
615
|
name: "menuIcon",
|
|
610
616
|
fn: b(({ isOpen: t, color: n }) => [
|
|
@@ -661,13 +667,13 @@ const xo = ["id"], _o = {
|
|
|
661
667
|
]),
|
|
662
668
|
key: "7"
|
|
663
669
|
} : void 0
|
|
664
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
|
|
670
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
|
|
665
671
|
(i(), p("svg", {
|
|
666
672
|
ref_key: "svgRef",
|
|
667
|
-
ref:
|
|
668
|
-
xmlns: r(
|
|
673
|
+
ref: et,
|
|
674
|
+
xmlns: r(vo),
|
|
669
675
|
viewBox: `0 0 ${ne.value.width} ${ne.value.height}`,
|
|
670
|
-
class:
|
|
676
|
+
class: kt({
|
|
671
677
|
"vue-data-ui-fullscreen--on": U.value,
|
|
672
678
|
"vue-data-ui-fulscreen--off": !U.value
|
|
673
679
|
}),
|
|
@@ -678,7 +684,7 @@ const xo = ["id"], _o = {
|
|
|
678
684
|
color: e.value.style.chart.color
|
|
679
685
|
})
|
|
680
686
|
}, [
|
|
681
|
-
xe(r(
|
|
687
|
+
xe(r(Mt)),
|
|
682
688
|
o.$slots["chart-background"] ? (i(), p("foreignObject", {
|
|
683
689
|
key: 0,
|
|
684
690
|
x: 0,
|
|
@@ -690,9 +696,9 @@ const xo = ["id"], _o = {
|
|
|
690
696
|
}
|
|
691
697
|
}, [
|
|
692
698
|
k(o.$slots, "chart-background", {}, void 0, !0)
|
|
693
|
-
], 8,
|
|
699
|
+
], 8, Eo)) : T("", !0),
|
|
694
700
|
Y("defs", null, [
|
|
695
|
-
(i(!0), p(de, null, he(
|
|
701
|
+
(i(!0), p(de, null, he(_.value.links, (t, n) => (i(), p("linearGradient", {
|
|
696
702
|
id: t.id,
|
|
697
703
|
x1: "0%",
|
|
698
704
|
y1: "0%",
|
|
@@ -702,14 +708,14 @@ const xo = ["id"], _o = {
|
|
|
702
708
|
Y("stop", {
|
|
703
709
|
offset: "0%",
|
|
704
710
|
"stop-color": t.sourceColor
|
|
705
|
-
}, null, 8,
|
|
711
|
+
}, null, 8, Io),
|
|
706
712
|
Y("stop", {
|
|
707
713
|
offset: "100%",
|
|
708
714
|
"stop-color": t.targetColor
|
|
709
|
-
}, null, 8,
|
|
710
|
-
], 8,
|
|
715
|
+
}, null, 8, Mo)
|
|
716
|
+
], 8, Po))), 256))
|
|
711
717
|
]),
|
|
712
|
-
(i(!0), p(de, null, he(
|
|
718
|
+
(i(!0), p(de, null, he(_.value.links, (t) => (i(), p("path", {
|
|
713
719
|
class: "vue-ui-flow-link",
|
|
714
720
|
d: t.path,
|
|
715
721
|
"stroke-linejoin": "round",
|
|
@@ -720,8 +726,8 @@ const xo = ["id"], _o = {
|
|
|
720
726
|
style: W(`
|
|
721
727
|
opacity:${w.value ? w.value.includes(t.source) && w.value.includes(t.target) ? 1 : 0.3 : K.value ? [t.target, t.source].includes(K.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
722
728
|
`)
|
|
723
|
-
}, null, 12,
|
|
724
|
-
(i(!0), p(de, null, he(
|
|
729
|
+
}, null, 12, Do))), 256)),
|
|
730
|
+
(i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("rect", {
|
|
725
731
|
class: "vue-ui-flow-node",
|
|
726
732
|
x: t.x,
|
|
727
733
|
y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
|
|
@@ -730,35 +736,35 @@ const xo = ["id"], _o = {
|
|
|
730
736
|
fill: t.color,
|
|
731
737
|
stroke: e.value.style.chart.nodes.stroke,
|
|
732
738
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
733
|
-
onMouseenter: (s) =>
|
|
734
|
-
onMouseleave: (s) =>
|
|
739
|
+
onMouseenter: (s) => Wt(t, n),
|
|
740
|
+
onMouseleave: (s) => vt(n),
|
|
735
741
|
style: W(`opacity:${w.value ? w.value.includes(t.name) ? 1 : 0.3 : 1}`),
|
|
736
|
-
onClick: (s) =>
|
|
737
|
-
}, null, 44,
|
|
738
|
-
e.value.style.chart.nodes.labels.show ? (i(), p("g",
|
|
739
|
-
(i(!0), p(de, null, he(
|
|
742
|
+
onClick: (s) => Yt(n)
|
|
743
|
+
}, null, 44, Lo))), 256)),
|
|
744
|
+
e.value.style.chart.nodes.labels.show ? (i(), p("g", zo, [
|
|
745
|
+
(i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
|
|
740
746
|
x: t.x + ye.value / 2,
|
|
741
747
|
y: r(x)(
|
|
742
748
|
t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
743
749
|
) + e.value.style.chart.padding.top,
|
|
744
750
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
745
|
-
fill: r(
|
|
751
|
+
fill: r(Tt)(t.color),
|
|
746
752
|
"text-anchor": "middle",
|
|
747
753
|
style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
748
|
-
}, te(e.value.style.chart.nodes.labels.abbreviation.use ? r(
|
|
754
|
+
}, te(e.value.style.chart.nodes.labels.abbreviation.use ? r(ho)({
|
|
749
755
|
source: t.name,
|
|
750
756
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
751
|
-
}) : t.name), 13,
|
|
752
|
-
(i(!0), p(de, null, he(
|
|
757
|
+
}) : t.name), 13, Bo))), 256)),
|
|
758
|
+
(i(!0), p(de, null, he(_.value.nodes, (t, n) => (i(), p("text", {
|
|
753
759
|
x: t.x + ye.value / 2,
|
|
754
760
|
y: r(x)(
|
|
755
761
|
t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
756
762
|
) + e.value.style.chart.padding.top,
|
|
757
763
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
758
|
-
fill: r(
|
|
764
|
+
fill: r(Tt)(t.color),
|
|
759
765
|
"text-anchor": "middle",
|
|
760
766
|
style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
761
|
-
}, te(r(
|
|
767
|
+
}, te(r(We)(
|
|
762
768
|
e.value.style.chart.nodes.labels.formatter,
|
|
763
769
|
t.value,
|
|
764
770
|
r(fe)({
|
|
@@ -768,52 +774,52 @@ const xo = ["id"], _o = {
|
|
|
768
774
|
r: e.value.style.chart.nodes.labels.rounding
|
|
769
775
|
}),
|
|
770
776
|
{ datapoint: t, seriesIndex: n }
|
|
771
|
-
)), 13,
|
|
777
|
+
)), 13, Ro))), 256))
|
|
772
778
|
])) : T("", !0),
|
|
773
779
|
k(o.$slots, "svg", { svg: ne.value }, void 0, !0)
|
|
774
|
-
], 14,
|
|
775
|
-
o.$slots.watermark ? (i(), p("div",
|
|
776
|
-
k(o.$slots, "watermark", Q(ee({ isPrinting: r(
|
|
780
|
+
], 14, Fo)),
|
|
781
|
+
o.$slots.watermark ? (i(), p("div", Ho, [
|
|
782
|
+
k(o.$slots, "watermark", Q(ee({ isPrinting: r(lt) || r(at) })), void 0, !0)
|
|
777
783
|
])) : T("", !0),
|
|
778
784
|
Y("div", {
|
|
779
785
|
id: `legend-bottom-${G.value}`
|
|
780
|
-
}, null, 8,
|
|
781
|
-
|
|
786
|
+
}, null, 8, Wo),
|
|
787
|
+
Xe.value ? (i(), q(eo, {
|
|
782
788
|
key: 5,
|
|
783
789
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${G.value}` : `#legend-bottom-${G.value}`
|
|
784
790
|
}, [
|
|
785
791
|
Y("div", {
|
|
786
792
|
ref_key: "chartLegend",
|
|
787
|
-
ref:
|
|
793
|
+
ref: Ue
|
|
788
794
|
}, [
|
|
789
|
-
e.value.style.chart.legend.show &&
|
|
795
|
+
e.value.style.chart.legend.show && gt.value.length ? (i(), q(Ao, {
|
|
790
796
|
key: 0,
|
|
791
|
-
legendSet:
|
|
792
|
-
config:
|
|
793
|
-
onClickMarker: l[0] || (l[0] = (t) =>
|
|
797
|
+
legendSet: gt.value,
|
|
798
|
+
config: Ut.value,
|
|
799
|
+
onClickMarker: l[0] || (l[0] = (t) => De(t))
|
|
794
800
|
}, {
|
|
795
801
|
item: b(({ legend: t, index: n }) => [
|
|
796
|
-
r(
|
|
802
|
+
r(Ne) ? T("", !0) : (i(), p("div", {
|
|
797
803
|
key: 0,
|
|
798
804
|
onClick: (s) => t.segregate(),
|
|
799
805
|
style: W(`opacity:${j.value.length ? j.value.includes(n) ? 1 : 0.5 : 1}`)
|
|
800
|
-
}, te(t.name) + " (" + te(t.count) + ") ", 13,
|
|
806
|
+
}, te(t.name) + " (" + te(t.count) + ") ", 13, Yo))
|
|
801
807
|
]),
|
|
802
808
|
_: 1
|
|
803
809
|
}, 8, ["legendSet", "config"])) : T("", !0),
|
|
804
|
-
k(o.$slots, "legend", { legend:
|
|
810
|
+
k(o.$slots, "legend", { legend: pt.value }, void 0, !0)
|
|
805
811
|
], 512)
|
|
806
812
|
], 8, ["to"])) : T("", !0),
|
|
807
813
|
o.$slots.source ? (i(), p("div", {
|
|
808
814
|
key: 6,
|
|
809
815
|
ref_key: "source",
|
|
810
|
-
ref:
|
|
816
|
+
ref: Ve,
|
|
811
817
|
dir: "auto"
|
|
812
818
|
}, [
|
|
813
819
|
k(o.$slots, "source", {}, void 0, !0)
|
|
814
820
|
], 512)) : T("", !0),
|
|
815
|
-
xe(r(
|
|
816
|
-
show:
|
|
821
|
+
xe(r(Ot), {
|
|
822
|
+
show: E.value.showTooltip && _e.value,
|
|
817
823
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
818
824
|
color: e.value.style.chart.tooltip.color,
|
|
819
825
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -823,7 +829,7 @@ const xo = ["id"], _o = {
|
|
|
823
829
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
824
830
|
position: e.value.style.chart.tooltip.position,
|
|
825
831
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
826
|
-
parent:
|
|
832
|
+
parent: M.value,
|
|
827
833
|
content: Se.value,
|
|
828
834
|
isCustom: be.value,
|
|
829
835
|
isFullscreen: U.value,
|
|
@@ -838,29 +844,29 @@ const xo = ["id"], _o = {
|
|
|
838
844
|
]),
|
|
839
845
|
_: 3
|
|
840
846
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
841
|
-
|
|
847
|
+
qe.value ? (i(), q(to(re.value.component), oo({ key: 7 }, re.value.props, {
|
|
842
848
|
ref_key: "tableUnit",
|
|
843
849
|
ref: le,
|
|
844
|
-
onClose:
|
|
845
|
-
}),
|
|
850
|
+
onClose: mt
|
|
851
|
+
}), wt({
|
|
846
852
|
content: b(() => [
|
|
847
|
-
xe(r(
|
|
853
|
+
xe(r(Et), {
|
|
848
854
|
colNames: Ce.value.colNames,
|
|
849
855
|
head: Ce.value.head,
|
|
850
856
|
body: Ce.value.body,
|
|
851
857
|
config: Ce.value.config,
|
|
852
858
|
title: e.value.table.useDialog ? "" : re.value.title,
|
|
853
859
|
withCloseButton: !e.value.table.useDialog,
|
|
854
|
-
onClose:
|
|
860
|
+
onClose: mt
|
|
855
861
|
}, {
|
|
856
862
|
th: b(({ th: t }) => [
|
|
857
863
|
Y("div", {
|
|
858
864
|
innerHTML: t,
|
|
859
865
|
style: { display: "flex", "align-items": "center" }
|
|
860
|
-
}, null, 8,
|
|
866
|
+
}, null, 8, Go)
|
|
861
867
|
]),
|
|
862
868
|
td: b(({ td: t }) => [
|
|
863
|
-
|
|
869
|
+
$t(te(t.name || t), 1)
|
|
864
870
|
]),
|
|
865
871
|
_: 1
|
|
866
872
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
@@ -870,7 +876,7 @@ const xo = ["id"], _o = {
|
|
|
870
876
|
e.value.table.useDialog ? {
|
|
871
877
|
name: "title",
|
|
872
878
|
fn: b(() => [
|
|
873
|
-
|
|
879
|
+
$t(te(re.value.title), 1)
|
|
874
880
|
]),
|
|
875
881
|
key: "0"
|
|
876
882
|
} : void 0,
|
|
@@ -880,9 +886,9 @@ const xo = ["id"], _o = {
|
|
|
880
886
|
Y("button", {
|
|
881
887
|
tabindex: "0",
|
|
882
888
|
class: "vue-ui-user-options-button",
|
|
883
|
-
onClick: l[1] || (l[1] = (t) =>
|
|
889
|
+
onClick: l[1] || (l[1] = (t) => Ie(e.value.userOptions.callbacks.csv))
|
|
884
890
|
}, [
|
|
885
|
-
xe(r(
|
|
891
|
+
xe(r(Nt), {
|
|
886
892
|
name: "excel",
|
|
887
893
|
stroke: re.value.props.color
|
|
888
894
|
}, null, 8, ["stroke"])
|
|
@@ -891,10 +897,10 @@ const xo = ["id"], _o = {
|
|
|
891
897
|
key: "1"
|
|
892
898
|
} : void 0
|
|
893
899
|
]), 1040)) : T("", !0),
|
|
894
|
-
r(
|
|
895
|
-
], 46,
|
|
900
|
+
r(Ne) ? (i(), q(ko, { key: 8 })) : T("", !0)
|
|
901
|
+
], 46, So));
|
|
896
902
|
}
|
|
897
|
-
},
|
|
903
|
+
}, al = /* @__PURE__ */ _o(Uo, [["__scopeId", "data-v-f6c24537"]]);
|
|
898
904
|
export {
|
|
899
|
-
|
|
905
|
+
al as default
|
|
900
906
|
};
|