vue-data-ui 2.12.6 → 2.12.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.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-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.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-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.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,34 +1,28 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { _ as
|
|
10
|
-
|
|
11
|
-
import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { u as Tt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
-
import { _ as Nt } from "./Tooltip-CWmRmhJr.js";
|
|
14
|
-
import { L as Ot } from "./Legend-BxtDQCIv.js";
|
|
15
|
-
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const Ft = ["id"], Lt = {
|
|
1
|
+
import { defineAsyncComponent as E, computed as p, onMounted as ut, ref as y, watch as it, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as Me, createBlock as B, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as ct, withCtx as w, renderSlot as b, normalizeProps as R, guardReactiveProps as G, Fragment as U, renderList as W, toDisplayString as j, createTextVNode as dt, nextTick as vt } from "vue";
|
|
2
|
+
import { u as ft, o as ht, e as pt, c as ve, t as gt, p as S, a as mt, b as yt, v as $, d as bt, f as X, X as kt, G as He, K as Ct, i as fe, q as wt, r as $t, x as Tt } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as Ye } from "./useNestedProp-tRqS0ZAM.js";
|
|
4
|
+
import { u as xt } from "./usePrinter-CRCbl1WG.js";
|
|
5
|
+
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import Ot from "./Legend-DFunFf8i.js";
|
|
8
|
+
import St from "./Title-B5qqUI3M.js";
|
|
9
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const Pt = ["id"], Lt = {
|
|
17
11
|
key: 1,
|
|
18
12
|
ref: "noTitle",
|
|
19
13
|
class: "vue-data-ui-no-title-space",
|
|
20
14
|
style: "height:36px; width: 100%;background:transparent"
|
|
21
|
-
},
|
|
15
|
+
}, At = {
|
|
22
16
|
key: 2,
|
|
23
17
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
24
|
-
}, It = ["xmlns", "viewBox"], Et = ["width", "height"], zt = ["id"],
|
|
18
|
+
}, It = ["xmlns", "viewBox"], Et = ["width", "height"], zt = ["id"], Mt = ["stop-color"], Ht = ["stop-color"], Yt = ["d", "fill", "stroke", "stroke-width"], Bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Dt = ["x", "y", "font-size", "fill"], Rt = ["x", "y", "font-size", "fill"], Gt = {
|
|
25
19
|
key: 4,
|
|
26
20
|
class: "vue-data-ui-watermark"
|
|
27
|
-
},
|
|
21
|
+
}, Vt = ["onClick"], Ut = {
|
|
28
22
|
key: 6,
|
|
29
23
|
ref: "source",
|
|
30
24
|
dir: "auto"
|
|
31
|
-
},
|
|
25
|
+
}, Wt = ["innerHTML"], jt = {
|
|
32
26
|
__name: "vue-ui-flow",
|
|
33
27
|
props: {
|
|
34
28
|
config: {
|
|
@@ -44,66 +38,66 @@ const Ft = ["id"], Lt = {
|
|
|
44
38
|
}
|
|
45
39
|
}
|
|
46
40
|
},
|
|
47
|
-
setup(
|
|
48
|
-
const { vue_ui_flow:
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
setup(Be, { expose: De }) {
|
|
42
|
+
const Re = E(() => import("./vue-ui-accordion-CmCs2yR2.js")), Ge = E(() => import("./DataTable-Cv9CIz-a.js")), Ve = E(() => import("./PackageVersion-CLY-udAA.js")), Ue = E(() => import("./PenAndPaper-B9na2mbr.js")), We = E(() => import("./vue-ui-skeleton-CbYQYRvD.js")), je = E(() => import("./Tooltip-C9rxJ-Ru.js")), Xe = E(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_flow: qe } = ft(), T = Be, ee = p(() => !!T.dataset && T.dataset.length);
|
|
43
|
+
ut(() => {
|
|
44
|
+
he();
|
|
51
45
|
});
|
|
52
|
-
function
|
|
53
|
-
|
|
46
|
+
function he() {
|
|
47
|
+
ht(T.dataset) && pt({
|
|
54
48
|
componentName: "VueUiFlow",
|
|
55
49
|
type: "dataset"
|
|
56
50
|
});
|
|
57
51
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
z.value = t,
|
|
52
|
+
const te = y(ve()), oe = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Ke = y(null), z = y(!1);
|
|
53
|
+
function Ze(t) {
|
|
54
|
+
z.value = t, pe.value += 1;
|
|
61
55
|
}
|
|
62
|
-
const e =
|
|
63
|
-
get: () =>
|
|
56
|
+
const e = p({
|
|
57
|
+
get: () => ke(),
|
|
64
58
|
set: (t) => t
|
|
65
|
-
}), { userOptionsVisible:
|
|
59
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: me, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: be } = Nt({
|
|
66
60
|
config: e.value.style.chart.title
|
|
67
61
|
});
|
|
68
|
-
function
|
|
69
|
-
const t =
|
|
70
|
-
userConfig:
|
|
71
|
-
defaultConfig:
|
|
62
|
+
function ke() {
|
|
63
|
+
const t = Ye({
|
|
64
|
+
userConfig: T.config,
|
|
65
|
+
defaultConfig: qe
|
|
72
66
|
});
|
|
73
67
|
let l = t;
|
|
74
68
|
return t.theme ? l = {
|
|
75
|
-
...
|
|
76
|
-
userConfig:
|
|
69
|
+
...Ye({
|
|
70
|
+
userConfig: mt.vue_ui_flow[t.theme] || T.config,
|
|
77
71
|
defaultConfig: t
|
|
78
72
|
}),
|
|
79
|
-
customPalette:
|
|
80
|
-
} : l = t, l.nodeCategories =
|
|
73
|
+
customPalette: gt[t.theme] || S
|
|
74
|
+
} : l = t, l.nodeCategories = T.config.nodeCategories || {}, l.nodeCategoryColors = T.config.nodeCategoryColors || {}, l;
|
|
81
75
|
}
|
|
82
|
-
|
|
83
|
-
() =>
|
|
76
|
+
it(
|
|
77
|
+
() => T.config,
|
|
84
78
|
(t) => {
|
|
85
|
-
e.value =
|
|
79
|
+
e.value = ke(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
|
|
86
80
|
},
|
|
87
81
|
{ deep: !0 }
|
|
88
82
|
);
|
|
89
|
-
const { isPrinting:
|
|
90
|
-
elementId: `flow_${
|
|
83
|
+
const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: Te } = xt({
|
|
84
|
+
elementId: `flow_${te.value}`,
|
|
91
85
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
92
86
|
options: e.value.userOptions.print
|
|
93
|
-
}),
|
|
87
|
+
}), Je = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), q = p(() => yt(e.value.customPalette)), xe = p(() => e.value.style.chart.nodes.gap), M = p(() => e.value.style.chart.nodes.width), N = y({
|
|
94
88
|
showTable: e.value.table.show,
|
|
95
89
|
showTooltip: e.value.style.chart.tooltip.show
|
|
96
|
-
}),
|
|
90
|
+
}), Qe = p(() => e.value.style.chart.links.width), se = p(() => !T.dataset || !T.dataset.length ? [] : T.dataset.map((t, l) => [
|
|
97
91
|
t[0],
|
|
98
92
|
t[1],
|
|
99
93
|
$(t[2]),
|
|
100
|
-
t[3] ?
|
|
101
|
-
])),
|
|
94
|
+
t[3] ? bt(t[3]) : q.value[l] || q.value[l % q.value.length] || S[l] || S[l % S.length]
|
|
95
|
+
])), _e = p(() => {
|
|
102
96
|
const t = {};
|
|
103
97
|
function l(a) {
|
|
104
98
|
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
105
99
|
}
|
|
106
|
-
|
|
100
|
+
se.value.forEach(([a, s, h]) => {
|
|
107
101
|
l(a), l(s), t[a].outflow += h, t[s].inflow += h;
|
|
108
102
|
});
|
|
109
103
|
let o = 0;
|
|
@@ -113,14 +107,14 @@ const Ft = ["id"], Lt = {
|
|
|
113
107
|
}
|
|
114
108
|
return o;
|
|
115
109
|
});
|
|
116
|
-
function
|
|
117
|
-
return t /
|
|
110
|
+
function et(t) {
|
|
111
|
+
return t / _e.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
118
112
|
}
|
|
119
|
-
function
|
|
113
|
+
function tt(t) {
|
|
120
114
|
const l = e.value.style.chart.nodes.minHeight;
|
|
121
|
-
return (t - l) / 100 *
|
|
115
|
+
return (t - l) / 100 * _e.value;
|
|
122
116
|
}
|
|
123
|
-
function
|
|
117
|
+
function ot(t) {
|
|
124
118
|
const l = {}, o = {};
|
|
125
119
|
function a(n, u) {
|
|
126
120
|
l[n] || (l[n] = {
|
|
@@ -128,76 +122,74 @@ const Ft = ["id"], Lt = {
|
|
|
128
122
|
level: null,
|
|
129
123
|
inflow: 0,
|
|
130
124
|
outflow: 0,
|
|
131
|
-
uid:
|
|
125
|
+
uid: ve()
|
|
132
126
|
}), l[n].level === null && (l[n].level = u), o[u] || (o[u] = []), o[u].includes(n) || o[u].push(n);
|
|
133
127
|
}
|
|
134
|
-
t.forEach(([n, u,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
a(n, v), a(u, p), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: i }), l[n].outflow += i, l[u].inflow += i;
|
|
128
|
+
t.forEach(([n, u, c]) => {
|
|
129
|
+
const v = l[n]?.level ?? 0, C = v + 1;
|
|
130
|
+
a(n, v), a(u, C), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: c }), l[n].outflow += c, l[u].inflow += c;
|
|
138
131
|
});
|
|
139
|
-
const s = new Set(t.map(([n]) => n)), h = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !h.has(n)),
|
|
132
|
+
const s = new Set(t.map(([n]) => n)), h = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !h.has(n)), Y = {};
|
|
140
133
|
F.forEach((n, u) => {
|
|
141
|
-
|
|
134
|
+
Y[n] = q.value[u] || S[u % S.length];
|
|
142
135
|
});
|
|
143
136
|
const x = {};
|
|
144
|
-
t.forEach(([n, u,
|
|
137
|
+
t.forEach(([n, u, c, v]) => {
|
|
145
138
|
v && (x[n] = v, x[u] = v);
|
|
146
139
|
}), Object.keys(l).forEach((n, u) => {
|
|
147
|
-
|
|
148
|
-
const i = (p = e.value.nodeCategories) == null ? void 0 : p[n], v = i ? (r = e.value.nodeCategoryColors) == null ? void 0 : r[i] : null;
|
|
140
|
+
const c = e.value.nodeCategories?.[n], v = c ? e.value.nodeCategoryColors?.[c] : null;
|
|
149
141
|
l[n].color = x[n] || // 1) explicit
|
|
150
142
|
v || // 2) category
|
|
151
|
-
(F.includes(n) ?
|
|
143
|
+
(F.includes(n) ? Y[n] : null) || // 3) root
|
|
152
144
|
S[u % S.length];
|
|
153
145
|
});
|
|
154
146
|
for (const n in l)
|
|
155
|
-
l[n].height =
|
|
147
|
+
l[n].height = et(
|
|
156
148
|
Math.max(l[n].inflow, l[n].outflow)
|
|
157
149
|
), l[n].name = n;
|
|
158
150
|
const O = {};
|
|
159
151
|
for (const n in o) {
|
|
160
152
|
let u = 0;
|
|
161
|
-
o[n].forEach((
|
|
162
|
-
const
|
|
163
|
-
O[
|
|
164
|
-
x: parseInt(n, 10) *
|
|
153
|
+
o[n].forEach((c, v) => {
|
|
154
|
+
const C = l[c];
|
|
155
|
+
O[c] = {
|
|
156
|
+
x: parseInt(n, 10) * Qe.value + e.value.style.chart.padding.left,
|
|
165
157
|
y: u,
|
|
166
158
|
absoluteY: u,
|
|
167
|
-
height:
|
|
159
|
+
height: C.height,
|
|
168
160
|
i: v,
|
|
169
|
-
color:
|
|
170
|
-
value:
|
|
171
|
-
}, u +=
|
|
161
|
+
color: C.color,
|
|
162
|
+
value: tt(C.height)
|
|
163
|
+
}, u += C.height + xe.value;
|
|
172
164
|
});
|
|
173
165
|
}
|
|
174
|
-
const
|
|
166
|
+
const I = [];
|
|
175
167
|
for (const n of Object.keys(l)) {
|
|
176
168
|
let u = O[n].absoluteY + e.value.style.chart.padding.top;
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
const f = O[
|
|
180
|
-
u +
|
|
181
|
-
),
|
|
169
|
+
const c = l[n], v = O[n];
|
|
170
|
+
c.children && c.children.forEach(({ target: C, value: i }) => {
|
|
171
|
+
const f = O[C], P = l[C], Q = $(u), Ee = $(
|
|
172
|
+
u + i / c.outflow * v.height
|
|
173
|
+
), ce = $(
|
|
182
174
|
f.y + e.value.style.chart.padding.top
|
|
183
175
|
), ze = $(
|
|
184
|
-
|
|
176
|
+
ce + i / P.inflow * f.height
|
|
185
177
|
);
|
|
186
|
-
|
|
187
|
-
id:
|
|
178
|
+
I.push({
|
|
179
|
+
id: ve(),
|
|
188
180
|
source: n,
|
|
189
|
-
target:
|
|
190
|
-
path: `M ${$(v.x +
|
|
191
|
-
value:
|
|
192
|
-
sourceColor:
|
|
193
|
-
targetColor:
|
|
194
|
-
}), u += Ee -
|
|
181
|
+
target: C,
|
|
182
|
+
path: `M ${$(v.x + M.value)} ${Q} L ${$(v.x + M.value)} ${Ee} L ${$(f.x)} ${ze} L ${$(f.x)} ${ce} Z`,
|
|
183
|
+
value: i,
|
|
184
|
+
sourceColor: c.color,
|
|
185
|
+
targetColor: P.color
|
|
186
|
+
}), u += Ee - Q, O[C].y += ze - ce;
|
|
195
187
|
});
|
|
196
188
|
}
|
|
197
|
-
return { nodeCoordinates: O, links:
|
|
189
|
+
return { nodeCoordinates: O, links: I };
|
|
198
190
|
}
|
|
199
|
-
const
|
|
200
|
-
const t =
|
|
191
|
+
const m = p(() => {
|
|
192
|
+
const t = ot(T.dataset);
|
|
201
193
|
return {
|
|
202
194
|
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
203
195
|
...t.nodeCoordinates[l],
|
|
@@ -206,97 +198,97 @@ const Ft = ["id"], Lt = {
|
|
|
206
198
|
links: t.links
|
|
207
199
|
};
|
|
208
200
|
});
|
|
209
|
-
|
|
210
|
-
function
|
|
201
|
+
p(() => lt(m.value.nodes));
|
|
202
|
+
function lt(t) {
|
|
211
203
|
const l = {};
|
|
212
204
|
for (const a in t) {
|
|
213
205
|
const { x: s, height: h } = t[a];
|
|
214
|
-
l[s] || (l[s] = 0), l[s] += h +
|
|
206
|
+
l[s] || (l[s] = 0), l[s] += h + xe.value;
|
|
215
207
|
}
|
|
216
208
|
return Math.max(...Object.values(l));
|
|
217
209
|
}
|
|
218
|
-
const
|
|
219
|
-
const { top: t, right: l, bottom: o, left: a } = e.value.style.chart.padding, s = Math.max(...
|
|
220
|
-
...
|
|
221
|
-
),
|
|
222
|
-
return { width: h, height:
|
|
210
|
+
const V = p(() => {
|
|
211
|
+
const { top: t, right: l, bottom: o, left: a } = e.value.style.chart.padding, s = Math.max(...m.value.nodes.map((x) => x.x)), h = a + s + M.value + l, F = Math.max(
|
|
212
|
+
...m.value.nodes.map((x) => x.absoluteY + x.height)
|
|
213
|
+
), Y = t + F + o;
|
|
214
|
+
return { width: h, height: Y };
|
|
223
215
|
});
|
|
224
|
-
function
|
|
216
|
+
function at(t) {
|
|
225
217
|
const l = {}, o = {}, a = /* @__PURE__ */ new Set();
|
|
226
|
-
return
|
|
218
|
+
return se.value.forEach(([s, h, F]) => {
|
|
227
219
|
l[s] || (l[s] = []), o[h] || (o[h] = []), l[s].push(h), o[h].push(s);
|
|
228
220
|
}), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
|
|
229
221
|
}
|
|
230
|
-
const
|
|
231
|
-
function
|
|
232
|
-
|
|
233
|
-
const l = t.name, o =
|
|
222
|
+
const k = y(null), H = y(null), re = y(null), K = y(!1);
|
|
223
|
+
function nt(t) {
|
|
224
|
+
A.value = [], k.value = at(t.name), H.value = t.name;
|
|
225
|
+
const l = t.name, o = se.value;
|
|
234
226
|
let a = 0, s = 0, h = [], F = [];
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}), o.forEach(([
|
|
239
|
-
f === l && (a +=
|
|
227
|
+
const Y = new Set(o.map(([i]) => i)), x = new Set(o.map(([, i]) => i)), Ie = Array.from(Y).filter((i) => !x.has(i)), O = o.filter(([i]) => Ie.includes(i)).reduce((i, [f, P, Q]) => i + Q, 0), I = {};
|
|
228
|
+
m.value.nodes.forEach((i) => {
|
|
229
|
+
I[i.name] = i.color;
|
|
230
|
+
}), o.forEach(([i, f, P]) => {
|
|
231
|
+
f === l && (a += P, h.push({ source: i, value: P, color: I[i] })), i === l && (s += P, F.push({ target: f, value: P, color: I[f] }));
|
|
240
232
|
});
|
|
241
|
-
const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0,
|
|
233
|
+
const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, c = {
|
|
242
234
|
name: l,
|
|
243
235
|
inflow: a,
|
|
244
236
|
outflow: s,
|
|
245
237
|
from: h,
|
|
246
238
|
to: F,
|
|
247
239
|
percentOfTotal: u,
|
|
248
|
-
color:
|
|
240
|
+
color: I[l] || "#000000"
|
|
249
241
|
};
|
|
250
|
-
|
|
242
|
+
re.value = { datapoint: c }, le.value = !0;
|
|
251
243
|
let v = "";
|
|
252
|
-
const
|
|
253
|
-
if (
|
|
244
|
+
const C = e.value.style.chart.tooltip.customFormat;
|
|
245
|
+
if (K.value = !1, Tt(C))
|
|
254
246
|
try {
|
|
255
|
-
const
|
|
256
|
-
datapoint:
|
|
257
|
-
series:
|
|
247
|
+
const i = C({
|
|
248
|
+
datapoint: c,
|
|
249
|
+
series: m.value,
|
|
258
250
|
config: e.value
|
|
259
251
|
});
|
|
260
|
-
typeof
|
|
252
|
+
typeof i == "string" && (ae.value = i, K.value = !0);
|
|
261
253
|
} catch {
|
|
262
254
|
console.warn("Custom format cannot be applied.");
|
|
263
255
|
}
|
|
264
|
-
if (!
|
|
265
|
-
const
|
|
256
|
+
if (!K.value) {
|
|
257
|
+
const i = e.value.style.chart.tooltip.showPercentage ? `<div>${X({
|
|
266
258
|
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
267
|
-
v:
|
|
259
|
+
v: c.percentOfTotal,
|
|
268
260
|
s: "%",
|
|
269
261
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
270
262
|
})}</div>` : "";
|
|
271
|
-
v += `<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:${
|
|
272
|
-
v += `<div><span style="color:${f.color}">⏹←</span> ${f.source}: ${
|
|
263
|
+
v += `<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:${c.color}">⏹</span>${c.name}${i}</div>`, c.from.length && (v += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, c.from.forEach((f) => {
|
|
264
|
+
v += `<div><span style="color:${f.color}">⏹←</span> ${f.source}: ${fe(
|
|
273
265
|
e.value.style.chart.nodes.labels.formatter,
|
|
274
266
|
f.value,
|
|
275
|
-
|
|
267
|
+
X({
|
|
276
268
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
277
269
|
v: f.value,
|
|
278
270
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
279
271
|
r: e.value.style.chart.nodes.labels.rounding
|
|
280
272
|
})
|
|
281
273
|
)}</div>`;
|
|
282
|
-
})),
|
|
283
|
-
v += `<div><span style="color:${f.color}">⏹→</span> ${f.target}: ${
|
|
274
|
+
})), c.to.length && (v += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, c.to.forEach((f) => {
|
|
275
|
+
v += `<div><span style="color:${f.color}">⏹→</span> ${f.target}: ${fe(
|
|
284
276
|
e.value.style.chart.nodes.labels.formatter,
|
|
285
277
|
f.value,
|
|
286
|
-
|
|
278
|
+
X({
|
|
287
279
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
288
280
|
v: f.value,
|
|
289
281
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
290
282
|
r: e.value.style.chart.nodes.labels.rounding
|
|
291
283
|
})
|
|
292
284
|
)}</div>`;
|
|
293
|
-
})),
|
|
285
|
+
})), ae.value = v;
|
|
294
286
|
}
|
|
295
287
|
}
|
|
296
|
-
function
|
|
297
|
-
|
|
288
|
+
function Ne() {
|
|
289
|
+
k.value = null, H.value = null, le.value = !1;
|
|
298
290
|
}
|
|
299
|
-
const
|
|
291
|
+
const Oe = p(() => m.value.links.map(
|
|
300
292
|
({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
|
|
301
293
|
source: t,
|
|
302
294
|
target: l,
|
|
@@ -305,9 +297,9 @@ const Ft = ["id"], Lt = {
|
|
|
305
297
|
value: s
|
|
306
298
|
})
|
|
307
299
|
));
|
|
308
|
-
function
|
|
309
|
-
|
|
310
|
-
const t =
|
|
300
|
+
function Se() {
|
|
301
|
+
vt(() => {
|
|
302
|
+
const t = Oe.value.map((a, s) => [[a.source], [a.target], [a.value]]), l = [
|
|
311
303
|
[e.value.style.chart.title.text],
|
|
312
304
|
[e.value.style.chart.title.subtitle.text],
|
|
313
305
|
[
|
|
@@ -315,19 +307,19 @@ const Ft = ["id"], Lt = {
|
|
|
315
307
|
[e.value.table.columnNames.target],
|
|
316
308
|
[e.value.table.columnNames.value]
|
|
317
309
|
]
|
|
318
|
-
].concat(t), o =
|
|
319
|
-
|
|
310
|
+
].concat(t), o = wt(l);
|
|
311
|
+
$t({
|
|
320
312
|
csvContent: o,
|
|
321
313
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
322
314
|
});
|
|
323
315
|
});
|
|
324
316
|
}
|
|
325
|
-
const
|
|
317
|
+
const Z = p(() => {
|
|
326
318
|
const t = [
|
|
327
319
|
e.value.table.columnNames.source,
|
|
328
320
|
e.value.table.columnNames.target,
|
|
329
321
|
e.value.table.columnNames.value
|
|
330
|
-
], l =
|
|
322
|
+
], l = Oe.value.map((s, h) => [
|
|
331
323
|
{
|
|
332
324
|
color: s.sourceColor,
|
|
333
325
|
name: s.source
|
|
@@ -336,7 +328,7 @@ const Ft = ["id"], Lt = {
|
|
|
336
328
|
color: s.targetColor,
|
|
337
329
|
name: s.target
|
|
338
330
|
},
|
|
339
|
-
|
|
331
|
+
X({
|
|
340
332
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
341
333
|
v: s.value,
|
|
342
334
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -366,22 +358,22 @@ const Ft = ["id"], Lt = {
|
|
|
366
358
|
config: o
|
|
367
359
|
};
|
|
368
360
|
});
|
|
369
|
-
function
|
|
370
|
-
return
|
|
361
|
+
function st() {
|
|
362
|
+
return m.value;
|
|
371
363
|
}
|
|
372
|
-
function
|
|
364
|
+
function Fe() {
|
|
373
365
|
N.value.showTable = !N.value.showTable;
|
|
374
366
|
}
|
|
375
|
-
const
|
|
376
|
-
function
|
|
377
|
-
|
|
367
|
+
const J = y(!1);
|
|
368
|
+
function ue() {
|
|
369
|
+
J.value = !J.value;
|
|
378
370
|
}
|
|
379
|
-
function
|
|
371
|
+
function Pe() {
|
|
380
372
|
N.value.showTooltip = !N.value.showTooltip;
|
|
381
373
|
}
|
|
382
|
-
const Le =
|
|
374
|
+
const Le = p(() => {
|
|
383
375
|
const t = new Set(
|
|
384
|
-
|
|
376
|
+
m.value.nodes.map(
|
|
385
377
|
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
386
378
|
)
|
|
387
379
|
);
|
|
@@ -389,29 +381,28 @@ const Ft = ["id"], Lt = {
|
|
|
389
381
|
name: l,
|
|
390
382
|
color: e.value.nodeCategoryColors[l] || S[0],
|
|
391
383
|
shape: "square",
|
|
392
|
-
count:
|
|
384
|
+
count: m.value.nodes.filter(
|
|
393
385
|
(o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
|
|
394
386
|
).length
|
|
395
387
|
})).map((l, o) => ({
|
|
396
388
|
...l,
|
|
397
|
-
segregate: () =>
|
|
398
|
-
opacity:
|
|
389
|
+
segregate: () => ie({ legend: l, i: o }),
|
|
390
|
+
opacity: A.value.length ? A.value.includes(o) ? 1 : 0.5 : 1
|
|
399
391
|
}));
|
|
400
|
-
}),
|
|
392
|
+
}), Ae = p(
|
|
401
393
|
() => Le.value.filter((t) => t.name !== "__uncategorized__")
|
|
402
|
-
),
|
|
403
|
-
function
|
|
404
|
-
var a;
|
|
394
|
+
), A = y([]);
|
|
395
|
+
function ie({ legend: t, i: l }) {
|
|
405
396
|
const o = t.name;
|
|
406
|
-
if (
|
|
407
|
-
(
|
|
397
|
+
if (k.value?.every(
|
|
398
|
+
(a) => e.value.nodeCategories[a] === o
|
|
408
399
|
)) {
|
|
409
|
-
|
|
400
|
+
k.value = null, H.value = null, A.value = [];
|
|
410
401
|
return;
|
|
411
402
|
}
|
|
412
|
-
|
|
403
|
+
A.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), H.value = null;
|
|
413
404
|
}
|
|
414
|
-
const
|
|
405
|
+
const rt = p(() => ({
|
|
415
406
|
cy: "flow-legend",
|
|
416
407
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
417
408
|
color: e.value.style.chart.legend.color,
|
|
@@ -419,37 +410,37 @@ const Ft = ["id"], Lt = {
|
|
|
419
410
|
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
420
411
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
421
412
|
}));
|
|
422
|
-
return
|
|
423
|
-
getData:
|
|
424
|
-
generateCsv:
|
|
425
|
-
generateImage:
|
|
426
|
-
generatePdf:
|
|
427
|
-
toggleTable:
|
|
428
|
-
toggleAnnotator:
|
|
429
|
-
toggleTooltip:
|
|
430
|
-
drillCategory:
|
|
431
|
-
unselectNode:
|
|
432
|
-
}), (t, l) => (
|
|
413
|
+
return De({
|
|
414
|
+
getData: st,
|
|
415
|
+
generateCsv: Se,
|
|
416
|
+
generateImage: Te,
|
|
417
|
+
generatePdf: $e,
|
|
418
|
+
toggleTable: Fe,
|
|
419
|
+
toggleAnnotator: ue,
|
|
420
|
+
toggleTooltip: Pe,
|
|
421
|
+
drillCategory: ie,
|
|
422
|
+
unselectNode: Ne
|
|
423
|
+
}), (t, l) => (d(), g("div", {
|
|
433
424
|
ref_key: "flowChart",
|
|
434
|
-
ref:
|
|
435
|
-
class:
|
|
436
|
-
style:
|
|
437
|
-
id: `flow_${
|
|
438
|
-
onMouseenter: l[3] || (l[3] = () =>
|
|
439
|
-
onMouseleave: l[4] || (l[4] = () =>
|
|
425
|
+
ref: oe,
|
|
426
|
+
class: Me(`vue-ui-flow ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
427
|
+
style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
428
|
+
id: `flow_${te.value}`,
|
|
429
|
+
onMouseenter: l[3] || (l[3] = () => r(me)(!0)),
|
|
430
|
+
onMouseleave: l[4] || (l[4] = () => r(me)(!1))
|
|
440
431
|
}, [
|
|
441
|
-
e.value.userOptions.buttons.annotator ? (
|
|
432
|
+
e.value.userOptions.buttons.annotator ? (d(), B(r(Ue), {
|
|
442
433
|
key: 0,
|
|
443
|
-
svgRef:
|
|
434
|
+
svgRef: r(be),
|
|
444
435
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
445
436
|
color: e.value.style.chart.color,
|
|
446
|
-
active:
|
|
447
|
-
onClose:
|
|
448
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
449
|
-
|
|
450
|
-
e.value.style.chart.title.text ? (
|
|
451
|
-
(
|
|
452
|
-
key: `title_${
|
|
437
|
+
active: J.value,
|
|
438
|
+
onClose: ue
|
|
439
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
440
|
+
Je.value ? (d(), g("div", Lt, null, 512)) : _("", !0),
|
|
441
|
+
e.value.style.chart.title.text ? (d(), g("div", At, [
|
|
442
|
+
(d(), B(St, {
|
|
443
|
+
key: `title_${ge.value}`,
|
|
453
444
|
config: {
|
|
454
445
|
title: {
|
|
455
446
|
cy: "flow-title",
|
|
@@ -461,15 +452,15 @@ const Ft = ["id"], Lt = {
|
|
|
461
452
|
}
|
|
462
453
|
}
|
|
463
454
|
}, null, 8, ["config"]))
|
|
464
|
-
])) :
|
|
465
|
-
e.value.userOptions.show &&
|
|
455
|
+
])) : _("", !0),
|
|
456
|
+
e.value.userOptions.show && ee.value && (r(ye) || r(ne)) ? (d(), B(r(Xe), {
|
|
466
457
|
ref: "details",
|
|
467
|
-
key: `user_option_${
|
|
458
|
+
key: `user_option_${pe.value}`,
|
|
468
459
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
469
460
|
color: e.value.style.chart.color,
|
|
470
|
-
isPrinting:
|
|
471
|
-
isImaging:
|
|
472
|
-
uid:
|
|
461
|
+
isPrinting: r(Ce),
|
|
462
|
+
isImaging: r(we),
|
|
463
|
+
uid: te.value,
|
|
473
464
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
474
465
|
hasXls: e.value.userOptions.buttons.csv,
|
|
475
466
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -477,184 +468,184 @@ const Ft = ["id"], Lt = {
|
|
|
477
468
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
478
469
|
isFullscreen: z.value,
|
|
479
470
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
480
|
-
chartElement:
|
|
471
|
+
chartElement: oe.value,
|
|
481
472
|
position: e.value.userOptions.position,
|
|
482
473
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
483
|
-
isAnnotation:
|
|
474
|
+
isAnnotation: J.value,
|
|
484
475
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
485
476
|
isTooltip: N.value.showTooltip,
|
|
486
|
-
onToggleTooltip:
|
|
487
|
-
onToggleFullscreen:
|
|
488
|
-
onGeneratePdf:
|
|
489
|
-
onGenerateCsv:
|
|
490
|
-
onGenerateImage:
|
|
491
|
-
onToggleTable:
|
|
492
|
-
onToggleAnnotator:
|
|
493
|
-
style:
|
|
494
|
-
visibility:
|
|
477
|
+
onToggleTooltip: Pe,
|
|
478
|
+
onToggleFullscreen: Ze,
|
|
479
|
+
onGeneratePdf: r($e),
|
|
480
|
+
onGenerateCsv: Se,
|
|
481
|
+
onGenerateImage: r(Te),
|
|
482
|
+
onToggleTable: Fe,
|
|
483
|
+
onToggleAnnotator: ue,
|
|
484
|
+
style: L({
|
|
485
|
+
visibility: r(ye) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
495
486
|
})
|
|
496
|
-
},
|
|
487
|
+
}, ct({ _: 2 }, [
|
|
497
488
|
t.$slots.menuIcon ? {
|
|
498
489
|
name: "menuIcon",
|
|
499
490
|
fn: w(({ isOpen: o, color: a }) => [
|
|
500
|
-
|
|
491
|
+
b(t.$slots, "menuIcon", R(G({ isOpen: o, color: a })), void 0, !0)
|
|
501
492
|
]),
|
|
502
493
|
key: "0"
|
|
503
494
|
} : void 0,
|
|
504
495
|
t.$slots.optionTooltip ? {
|
|
505
496
|
name: "optionTooltip",
|
|
506
497
|
fn: w(() => [
|
|
507
|
-
|
|
498
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
508
499
|
]),
|
|
509
500
|
key: "1"
|
|
510
501
|
} : void 0,
|
|
511
502
|
t.$slots.optionPdf ? {
|
|
512
503
|
name: "optionPdf",
|
|
513
504
|
fn: w(() => [
|
|
514
|
-
|
|
505
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
515
506
|
]),
|
|
516
507
|
key: "2"
|
|
517
508
|
} : void 0,
|
|
518
509
|
t.$slots.optionCsv ? {
|
|
519
510
|
name: "optionCsv",
|
|
520
511
|
fn: w(() => [
|
|
521
|
-
|
|
512
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
522
513
|
]),
|
|
523
514
|
key: "3"
|
|
524
515
|
} : void 0,
|
|
525
516
|
t.$slots.optionImg ? {
|
|
526
517
|
name: "optionImg",
|
|
527
518
|
fn: w(() => [
|
|
528
|
-
|
|
519
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
529
520
|
]),
|
|
530
521
|
key: "4"
|
|
531
522
|
} : void 0,
|
|
532
523
|
t.$slots.optionTable ? {
|
|
533
524
|
name: "optionTable",
|
|
534
525
|
fn: w(() => [
|
|
535
|
-
|
|
526
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
536
527
|
]),
|
|
537
528
|
key: "5"
|
|
538
529
|
} : void 0,
|
|
539
530
|
t.$slots.optionFullscreen ? {
|
|
540
531
|
name: "optionFullscreen",
|
|
541
532
|
fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
542
|
-
|
|
533
|
+
b(t.$slots, "optionFullscreen", R(G({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
543
534
|
]),
|
|
544
535
|
key: "6"
|
|
545
536
|
} : void 0,
|
|
546
537
|
t.$slots.optionAnnotator ? {
|
|
547
538
|
name: "optionAnnotator",
|
|
548
539
|
fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
549
|
-
|
|
540
|
+
b(t.$slots, "optionAnnotator", R(G({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
550
541
|
]),
|
|
551
542
|
key: "7"
|
|
552
543
|
} : void 0
|
|
553
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
554
|
-
(
|
|
544
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
545
|
+
(d(), g("svg", {
|
|
555
546
|
ref_key: "svgRef",
|
|
556
|
-
ref:
|
|
557
|
-
xmlns:
|
|
558
|
-
viewBox: `0 0 ${
|
|
559
|
-
class:
|
|
547
|
+
ref: be,
|
|
548
|
+
xmlns: r(kt),
|
|
549
|
+
viewBox: `0 0 ${V.value.width} ${V.value.height}`,
|
|
550
|
+
class: Me({
|
|
560
551
|
"vue-data-ui-fullscreen--on": z.value,
|
|
561
552
|
"vue-data-ui-fulscreen--off": !z.value
|
|
562
553
|
}),
|
|
563
|
-
style:
|
|
554
|
+
style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
564
555
|
}, [
|
|
565
|
-
|
|
566
|
-
t.$slots["chart-background"] ? (
|
|
556
|
+
de(r(Ve)),
|
|
557
|
+
t.$slots["chart-background"] ? (d(), g("foreignObject", {
|
|
567
558
|
key: 0,
|
|
568
559
|
x: 0,
|
|
569
560
|
y: 0,
|
|
570
|
-
width:
|
|
571
|
-
height:
|
|
561
|
+
width: V.value.width,
|
|
562
|
+
height: V.value.height,
|
|
572
563
|
style: {
|
|
573
564
|
pointerEvents: "none"
|
|
574
565
|
}
|
|
575
566
|
}, [
|
|
576
|
-
|
|
577
|
-
], 8, Et)) :
|
|
578
|
-
|
|
579
|
-
(
|
|
567
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
568
|
+
], 8, Et)) : _("", !0),
|
|
569
|
+
D("defs", null, [
|
|
570
|
+
(d(!0), g(U, null, W(m.value.links, (o, a) => (d(), g("linearGradient", {
|
|
580
571
|
id: o.id,
|
|
581
572
|
x1: "0%",
|
|
582
573
|
y1: "0%",
|
|
583
574
|
x2: "100%",
|
|
584
575
|
y2: "0%"
|
|
585
576
|
}, [
|
|
586
|
-
|
|
577
|
+
D("stop", {
|
|
587
578
|
offset: "0%",
|
|
588
579
|
"stop-color": o.sourceColor
|
|
589
|
-
}, null, 8,
|
|
590
|
-
|
|
580
|
+
}, null, 8, Mt),
|
|
581
|
+
D("stop", {
|
|
591
582
|
offset: "100%",
|
|
592
583
|
"stop-color": o.targetColor
|
|
593
|
-
}, null, 8,
|
|
584
|
+
}, null, 8, Ht)
|
|
594
585
|
], 8, zt))), 256))
|
|
595
586
|
]),
|
|
596
|
-
(
|
|
587
|
+
(d(!0), g(U, null, W(m.value.links, (o) => (d(), g("path", {
|
|
597
588
|
class: "vue-ui-flow-link",
|
|
598
589
|
d: o.path,
|
|
599
590
|
fill: `url(#${o.id})`,
|
|
600
591
|
stroke: e.value.style.chart.links.stroke,
|
|
601
592
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
602
|
-
style:
|
|
603
|
-
opacity:${
|
|
593
|
+
style: L(`
|
|
594
|
+
opacity:${k.value ? k.value.includes(o.source) && k.value.includes(o.target) ? 1 : 0.3 : H.value ? [o.target, o.source].includes(H.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
604
595
|
`)
|
|
605
|
-
}, null, 12,
|
|
606
|
-
(
|
|
596
|
+
}, null, 12, Yt))), 256)),
|
|
597
|
+
(d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("rect", {
|
|
607
598
|
class: "vue-ui-flow-node",
|
|
608
599
|
x: o.x,
|
|
609
|
-
y:
|
|
610
|
-
height:
|
|
611
|
-
width:
|
|
600
|
+
y: r($)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
601
|
+
height: r($)(o.height),
|
|
602
|
+
width: M.value,
|
|
612
603
|
fill: o.color,
|
|
613
604
|
stroke: e.value.style.chart.nodes.stroke,
|
|
614
605
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
615
|
-
onMouseenter: (s) =>
|
|
616
|
-
onMouseleave: l[0] || (l[0] = (s) =>
|
|
617
|
-
style:
|
|
618
|
-
}, null, 44,
|
|
619
|
-
(
|
|
620
|
-
x: o.x +
|
|
621
|
-
y:
|
|
606
|
+
onMouseenter: (s) => nt(o),
|
|
607
|
+
onMouseleave: l[0] || (l[0] = (s) => Ne()),
|
|
608
|
+
style: L(`opacity:${k.value ? k.value.includes(o.name) ? 1 : 0.3 : 1}`)
|
|
609
|
+
}, null, 44, Bt))), 256)),
|
|
610
|
+
(d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
|
|
611
|
+
x: o.x + M.value / 2,
|
|
612
|
+
y: r($)(
|
|
622
613
|
o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
623
614
|
) + e.value.style.chart.padding.top,
|
|
624
615
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
625
|
-
fill:
|
|
616
|
+
fill: r(He)(o.color),
|
|
626
617
|
"text-anchor": "middle",
|
|
627
|
-
style:
|
|
628
|
-
},
|
|
618
|
+
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
619
|
+
}, j(e.value.style.chart.nodes.labels.abbreviation.use ? r(Ct)({
|
|
629
620
|
source: o.name,
|
|
630
621
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
631
|
-
}) : o.name), 13,
|
|
632
|
-
(
|
|
633
|
-
x: o.x +
|
|
634
|
-
y:
|
|
622
|
+
}) : o.name), 13, Dt))), 256)),
|
|
623
|
+
(d(!0), g(U, null, W(m.value.nodes, (o, a) => (d(), g("text", {
|
|
624
|
+
x: o.x + M.value / 2,
|
|
625
|
+
y: r($)(
|
|
635
626
|
o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
636
627
|
) + e.value.style.chart.padding.top,
|
|
637
628
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
638
|
-
fill:
|
|
629
|
+
fill: r(He)(o.color),
|
|
639
630
|
"text-anchor": "middle",
|
|
640
|
-
style:
|
|
641
|
-
},
|
|
631
|
+
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
632
|
+
}, j(r(fe)(
|
|
642
633
|
e.value.style.chart.nodes.labels.formatter,
|
|
643
634
|
o.value,
|
|
644
|
-
|
|
635
|
+
r(X)({
|
|
645
636
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
646
637
|
v: o.value,
|
|
647
638
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
648
639
|
r: e.value.style.chart.nodes.labels.rounding
|
|
649
640
|
}),
|
|
650
641
|
{ datapoint: o, seriesIndex: a }
|
|
651
|
-
)), 13,
|
|
652
|
-
|
|
642
|
+
)), 13, Rt))), 256)),
|
|
643
|
+
b(t.$slots, "svg", { svg: V.value }, void 0, !0)
|
|
653
644
|
], 14, It)),
|
|
654
|
-
t.$slots.watermark ? (
|
|
655
|
-
|
|
656
|
-
])) :
|
|
657
|
-
|
|
645
|
+
t.$slots.watermark ? (d(), g("div", Gt, [
|
|
646
|
+
b(t.$slots, "watermark", R(G({ isPrinting: r(Ce) || r(we) })), void 0, !0)
|
|
647
|
+
])) : _("", !0),
|
|
648
|
+
ee.value ? _("", !0) : (d(), B(r(We), {
|
|
658
649
|
key: 5,
|
|
659
650
|
config: {
|
|
660
651
|
type: "flow",
|
|
@@ -663,31 +654,31 @@ const Ft = ["id"], Lt = {
|
|
|
663
654
|
}
|
|
664
655
|
}
|
|
665
656
|
}, null, 8, ["config"])),
|
|
666
|
-
|
|
657
|
+
D("div", {
|
|
667
658
|
ref_key: "chartLegend",
|
|
668
|
-
ref:
|
|
659
|
+
ref: Ke
|
|
669
660
|
}, [
|
|
670
|
-
e.value.style.chart.legend.show &&
|
|
661
|
+
e.value.style.chart.legend.show && Ae.value.length ? (d(), B(Ot, {
|
|
671
662
|
key: 0,
|
|
672
|
-
legendSet:
|
|
673
|
-
config:
|
|
674
|
-
onClickMarker: l[1] || (l[1] = (o) =>
|
|
663
|
+
legendSet: Ae.value,
|
|
664
|
+
config: rt.value,
|
|
665
|
+
onClickMarker: l[1] || (l[1] = (o) => ie(o))
|
|
675
666
|
}, {
|
|
676
667
|
item: w(({ legend: o, index: a }) => [
|
|
677
|
-
|
|
668
|
+
D("div", {
|
|
678
669
|
onClick: (s) => o.segregate(),
|
|
679
|
-
style:
|
|
680
|
-
},
|
|
670
|
+
style: L(`opacity:${A.value.length ? A.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
671
|
+
}, j(o.name) + " (" + j(o.count) + ") ", 13, Vt)
|
|
681
672
|
]),
|
|
682
673
|
_: 1
|
|
683
|
-
}, 8, ["legendSet", "config"])) :
|
|
684
|
-
|
|
674
|
+
}, 8, ["legendSet", "config"])) : _("", !0),
|
|
675
|
+
b(t.$slots, "legend", { legend: Le.value }, void 0, !0)
|
|
685
676
|
], 512),
|
|
686
|
-
t.$slots.source ? (
|
|
687
|
-
|
|
688
|
-
], 512)) :
|
|
689
|
-
|
|
690
|
-
show: N.value.showTooltip &&
|
|
677
|
+
t.$slots.source ? (d(), g("div", Ut, [
|
|
678
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
679
|
+
], 512)) : _("", !0),
|
|
680
|
+
de(r(je), {
|
|
681
|
+
show: N.value.showTooltip && le.value,
|
|
691
682
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
692
683
|
color: e.value.style.chart.tooltip.color,
|
|
693
684
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -697,20 +688,20 @@ const Ft = ["id"], Lt = {
|
|
|
697
688
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
698
689
|
position: e.value.style.chart.tooltip.position,
|
|
699
690
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
700
|
-
parent:
|
|
701
|
-
content:
|
|
702
|
-
isCustom:
|
|
691
|
+
parent: oe.value,
|
|
692
|
+
content: ae.value,
|
|
693
|
+
isCustom: K.value,
|
|
703
694
|
isFullscreen: z.value
|
|
704
695
|
}, {
|
|
705
696
|
"tooltip-before": w(() => [
|
|
706
|
-
|
|
697
|
+
b(t.$slots, "tooltip-before", R(G({ ...re.value })), void 0, !0)
|
|
707
698
|
]),
|
|
708
699
|
"tooltip-after": w(() => [
|
|
709
|
-
|
|
700
|
+
b(t.$slots, "tooltip-after", R(G({ ...re.value })), void 0, !0)
|
|
710
701
|
]),
|
|
711
702
|
_: 3
|
|
712
703
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
713
|
-
|
|
704
|
+
ee.value ? (d(), B(r(Re), {
|
|
714
705
|
key: 7,
|
|
715
706
|
hideDetails: "",
|
|
716
707
|
config: {
|
|
@@ -727,31 +718,31 @@ const Ft = ["id"], Lt = {
|
|
|
727
718
|
}
|
|
728
719
|
}, {
|
|
729
720
|
content: w(() => [
|
|
730
|
-
|
|
731
|
-
colNames:
|
|
732
|
-
head:
|
|
733
|
-
body:
|
|
734
|
-
config:
|
|
721
|
+
de(r(Ge), {
|
|
722
|
+
colNames: Z.value.colNames,
|
|
723
|
+
head: Z.value.head,
|
|
724
|
+
body: Z.value.body,
|
|
725
|
+
config: Z.value.config,
|
|
735
726
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
736
727
|
onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
|
|
737
728
|
}, {
|
|
738
729
|
th: w(({ th: o }) => [
|
|
739
|
-
|
|
730
|
+
D("div", {
|
|
740
731
|
innerHTML: o,
|
|
741
732
|
style: { display: "flex", "align-items": "center" }
|
|
742
|
-
}, null, 8,
|
|
733
|
+
}, null, 8, Wt)
|
|
743
734
|
]),
|
|
744
735
|
td: w(({ td: o }) => [
|
|
745
|
-
|
|
736
|
+
dt(j(o.name || o), 1)
|
|
746
737
|
]),
|
|
747
738
|
_: 1
|
|
748
739
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
749
740
|
]),
|
|
750
741
|
_: 1
|
|
751
|
-
}, 8, ["config"])) :
|
|
752
|
-
], 46,
|
|
742
|
+
}, 8, ["config"])) : _("", !0)
|
|
743
|
+
], 46, Pt));
|
|
753
744
|
}
|
|
754
|
-
},
|
|
745
|
+
}, lo = /* @__PURE__ */ Ft(jt, [["__scopeId", "data-v-0ce1d104"]]);
|
|
755
746
|
export {
|
|
756
|
-
|
|
747
|
+
lo as default
|
|
757
748
|
};
|