vue-data-ui 2.16.6 → 2.17.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/README.md +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, computed as p, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineAsyncComponent as E, computed as p, onMounted as it, ref as y, watch as ct, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as He, createBlock as B, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as dt, withCtx as w, renderSlot as b, normalizeProps as R, guardReactiveProps as U, Fragment as W, renderList as j, toDisplayString as X, createTextVNode as vt, nextTick as ft } from "vue";
|
|
2
|
+
import { u as ht, o as pt, e as gt, c as ve, t as mt, p as S, a as yt, b as bt, v as $, d as kt, f as q, X as Ct, F as Ye, L as wt, i as fe, q as $t, r as Tt, x as xt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as Be } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as _t } from "./usePrinter-DDHcrl0A.js";
|
|
5
|
+
import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import St from "./Legend-Bxlv67uY.js";
|
|
8
|
+
import Ft from "./Title-B-2bV0SW.js";
|
|
9
|
+
import Pt from "./img-Y_hYz-ZC.js";
|
|
10
|
+
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const It = ["id"], At = {
|
|
11
12
|
key: 1,
|
|
12
13
|
ref: "noTitle",
|
|
13
14
|
class: "vue-data-ui-no-title-space",
|
|
14
15
|
style: "height:36px; width: 100%;background:transparent"
|
|
15
|
-
},
|
|
16
|
+
}, Et = {
|
|
16
17
|
key: 2,
|
|
17
18
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
18
|
-
},
|
|
19
|
+
}, zt = ["xmlns", "viewBox"], Mt = ["width", "height"], Ht = ["id"], Yt = ["stop-color"], Bt = ["stop-color"], Dt = ["d", "fill", "stroke", "stroke-width"], Rt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Ut = ["x", "y", "font-size", "fill"], Vt = ["x", "y", "font-size", "fill"], Gt = {
|
|
19
20
|
key: 4,
|
|
20
21
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
22
|
+
}, Wt = ["onClick"], jt = {
|
|
22
23
|
key: 6,
|
|
23
24
|
ref: "source",
|
|
24
25
|
dir: "auto"
|
|
25
|
-
},
|
|
26
|
+
}, Xt = ["innerHTML"], qt = {
|
|
26
27
|
__name: "vue-ui-flow",
|
|
27
28
|
props: {
|
|
28
29
|
config: {
|
|
@@ -38,61 +39,61 @@ const Pt = ["id"], Lt = {
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
|
|
42
|
+
setup(De, { expose: Re }) {
|
|
43
|
+
const Ue = E(() => import("./vue-ui-accordion-CVnA550V.js")), Ve = E(() => import("./DataTable-D0VYDhfx.js")), Ge = E(() => import("./PackageVersion-5TR4ocqp.js")), We = E(() => import("./PenAndPaper-D6AqipIO.js")), je = E(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Xe = E(() => import("./Tooltip-CoQnTnr-.js")), qe = E(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_flow: Ze } = ht(), T = De, te = p(() => !!T.dataset && T.dataset.length);
|
|
44
|
+
it(() => {
|
|
44
45
|
he();
|
|
45
46
|
});
|
|
46
47
|
function he() {
|
|
47
|
-
|
|
48
|
+
pt(T.dataset) && gt({
|
|
48
49
|
componentName: "VueUiFlow",
|
|
49
50
|
type: "dataset"
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
53
|
+
const oe = y(ve()), V = y(null), pe = y(0), ge = y(0), le = y(!1), ae = y(""), Je = y(null), z = y(!1);
|
|
54
|
+
function me(t) {
|
|
54
55
|
z.value = t, pe.value += 1;
|
|
55
56
|
}
|
|
56
57
|
const e = p({
|
|
57
|
-
get: () =>
|
|
58
|
+
get: () => Ce(),
|
|
58
59
|
set: (t) => t
|
|
59
|
-
}), { userOptionsVisible: ne, setUserOptionsVisibility:
|
|
60
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: ye, keepUserOptionState: be } = Nt({ config: e.value }), { svgRef: ke } = Ot({
|
|
60
61
|
config: e.value.style.chart.title
|
|
61
62
|
});
|
|
62
|
-
function
|
|
63
|
-
const t =
|
|
63
|
+
function Ce() {
|
|
64
|
+
const t = Be({
|
|
64
65
|
userConfig: T.config,
|
|
65
|
-
defaultConfig:
|
|
66
|
+
defaultConfig: Ze
|
|
66
67
|
});
|
|
67
68
|
let l = t;
|
|
68
69
|
return t.theme ? l = {
|
|
69
|
-
...
|
|
70
|
-
userConfig:
|
|
70
|
+
...Be({
|
|
71
|
+
userConfig: yt.vue_ui_flow[t.theme] || T.config,
|
|
71
72
|
defaultConfig: t
|
|
72
73
|
}),
|
|
73
|
-
customPalette:
|
|
74
|
+
customPalette: mt[t.theme] || S
|
|
74
75
|
} : l = t, l.nodeCategories = T.config.nodeCategories || {}, l.nodeCategoryColors = T.config.nodeCategoryColors || {}, l;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
ct(
|
|
77
78
|
() => T.config,
|
|
78
79
|
(t) => {
|
|
79
|
-
e.value =
|
|
80
|
+
e.value = Ce(), ne.value = !e.value.userOptions.showOnChartHover, he(), ge.value += 1, N.value.showTable = e.value.table.show;
|
|
80
81
|
},
|
|
81
82
|
{ deep: !0 }
|
|
82
83
|
);
|
|
83
|
-
const { isPrinting:
|
|
84
|
-
elementId: `flow_${
|
|
84
|
+
const { isPrinting: we, isImaging: $e, generatePdf: Te, generateImage: xe } = _t({
|
|
85
|
+
elementId: `flow_${oe.value}`,
|
|
85
86
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
86
87
|
options: e.value.userOptions.print
|
|
87
|
-
}), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
88
|
+
}), Ke = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Z = p(() => bt(e.value.customPalette)), _e = p(() => e.value.style.chart.nodes.gap), M = p(() => e.value.style.chart.nodes.width), N = y({
|
|
88
89
|
showTable: e.value.table.show,
|
|
89
90
|
showTooltip: e.value.style.chart.tooltip.show
|
|
90
91
|
}), Qe = p(() => e.value.style.chart.links.width), se = p(() => !T.dataset || !T.dataset.length ? [] : T.dataset.map((t, l) => [
|
|
91
92
|
t[0],
|
|
92
93
|
t[1],
|
|
93
94
|
$(t[2]),
|
|
94
|
-
t[3] ?
|
|
95
|
-
])),
|
|
95
|
+
t[3] ? kt(t[3]) : Z.value[l] || Z.value[l % Z.value.length] || S[l] || S[l % S.length]
|
|
96
|
+
])), Ne = p(() => {
|
|
96
97
|
const t = {};
|
|
97
98
|
function l(a) {
|
|
98
99
|
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
@@ -108,11 +109,11 @@ const Pt = ["id"], Lt = {
|
|
|
108
109
|
return o;
|
|
109
110
|
});
|
|
110
111
|
function et(t) {
|
|
111
|
-
return t /
|
|
112
|
+
return t / Ne.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
112
113
|
}
|
|
113
114
|
function tt(t) {
|
|
114
115
|
const l = e.value.style.chart.nodes.minHeight;
|
|
115
|
-
return (t - l) / 100 *
|
|
116
|
+
return (t - l) / 100 * Ne.value;
|
|
116
117
|
}
|
|
117
118
|
function ot(t) {
|
|
118
119
|
const l = {}, o = {};
|
|
@@ -131,7 +132,7 @@ const Pt = ["id"], Lt = {
|
|
|
131
132
|
});
|
|
132
133
|
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 = {};
|
|
133
134
|
F.forEach((n, u) => {
|
|
134
|
-
Y[n] =
|
|
135
|
+
Y[n] = Z.value[u] || S[u % S.length];
|
|
135
136
|
});
|
|
136
137
|
const x = {};
|
|
137
138
|
t.forEach(([n, u, c, v]) => {
|
|
@@ -160,33 +161,33 @@ const Pt = ["id"], Lt = {
|
|
|
160
161
|
i: v,
|
|
161
162
|
color: C.color,
|
|
162
163
|
value: tt(C.height)
|
|
163
|
-
}, u += C.height +
|
|
164
|
+
}, u += C.height + _e.value;
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
|
-
const
|
|
167
|
+
const A = [];
|
|
167
168
|
for (const n of Object.keys(l)) {
|
|
168
169
|
let u = O[n].absoluteY + e.value.style.chart.padding.top;
|
|
169
170
|
const c = l[n], v = O[n];
|
|
170
171
|
c.children && c.children.forEach(({ target: C, value: i }) => {
|
|
171
|
-
const f = O[C], P = l[C],
|
|
172
|
+
const f = O[C], P = l[C], ee = $(u), ze = $(
|
|
172
173
|
u + i / c.outflow * v.height
|
|
173
174
|
), ce = $(
|
|
174
175
|
f.y + e.value.style.chart.padding.top
|
|
175
|
-
),
|
|
176
|
+
), Me = $(
|
|
176
177
|
ce + i / P.inflow * f.height
|
|
177
178
|
);
|
|
178
|
-
|
|
179
|
+
A.push({
|
|
179
180
|
id: ve(),
|
|
180
181
|
source: n,
|
|
181
182
|
target: C,
|
|
182
|
-
path: `M ${$(v.x + M.value)} ${
|
|
183
|
+
path: `M ${$(v.x + M.value)} ${ee} L ${$(v.x + M.value)} ${ze} L ${$(f.x)} ${Me} L ${$(f.x)} ${ce} Z`,
|
|
183
184
|
value: i,
|
|
184
185
|
sourceColor: c.color,
|
|
185
186
|
targetColor: P.color
|
|
186
|
-
}), u +=
|
|
187
|
+
}), u += ze - ee, O[C].y += Me - ce;
|
|
187
188
|
});
|
|
188
189
|
}
|
|
189
|
-
return { nodeCoordinates: O, links:
|
|
190
|
+
return { nodeCoordinates: O, links: A };
|
|
190
191
|
}
|
|
191
192
|
const m = p(() => {
|
|
192
193
|
const t = ot(T.dataset);
|
|
@@ -203,7 +204,7 @@ const Pt = ["id"], Lt = {
|
|
|
203
204
|
const l = {};
|
|
204
205
|
for (const a in t) {
|
|
205
206
|
const { x: s, height: h } = t[a];
|
|
206
|
-
l[s] || (l[s] = 0), l[s] += h +
|
|
207
|
+
l[s] || (l[s] = 0), l[s] += h + _e.value;
|
|
207
208
|
}
|
|
208
209
|
return Math.max(...Object.values(l));
|
|
209
210
|
}
|
|
@@ -219,16 +220,16 @@ const Pt = ["id"], Lt = {
|
|
|
219
220
|
l[s] || (l[s] = []), o[h] || (o[h] = []), l[s].push(h), o[h].push(s);
|
|
220
221
|
}), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
|
|
221
222
|
}
|
|
222
|
-
const k = y(null), H = y(null), re = y(null),
|
|
223
|
+
const k = y(null), H = y(null), re = y(null), J = y(!1);
|
|
223
224
|
function nt(t) {
|
|
224
|
-
|
|
225
|
+
I.value = [], k.value = at(t.name), H.value = t.name;
|
|
225
226
|
const l = t.name, o = se.value;
|
|
226
227
|
let a = 0, s = 0, h = [], F = [];
|
|
227
|
-
const Y = new Set(o.map(([i]) => i)), x = new Set(o.map(([, i]) => i)),
|
|
228
|
+
const Y = new Set(o.map(([i]) => i)), x = new Set(o.map(([, i]) => i)), Ee = Array.from(Y).filter((i) => !x.has(i)), O = o.filter(([i]) => Ee.includes(i)).reduce((i, [f, P, ee]) => i + ee, 0), A = {};
|
|
228
229
|
m.value.nodes.forEach((i) => {
|
|
229
|
-
|
|
230
|
+
A[i.name] = i.color;
|
|
230
231
|
}), o.forEach(([i, f, P]) => {
|
|
231
|
-
f === l && (a += P, h.push({ source: i, value: P, color:
|
|
232
|
+
f === l && (a += P, h.push({ source: i, value: P, color: A[i] })), i === l && (s += P, F.push({ target: f, value: P, color: A[f] }));
|
|
232
233
|
});
|
|
233
234
|
const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, c = {
|
|
234
235
|
name: l,
|
|
@@ -237,24 +238,24 @@ const Pt = ["id"], Lt = {
|
|
|
237
238
|
from: h,
|
|
238
239
|
to: F,
|
|
239
240
|
percentOfTotal: u,
|
|
240
|
-
color:
|
|
241
|
+
color: A[l] || "#000000"
|
|
241
242
|
};
|
|
242
243
|
re.value = { datapoint: c }, le.value = !0;
|
|
243
244
|
let v = "";
|
|
244
245
|
const C = e.value.style.chart.tooltip.customFormat;
|
|
245
|
-
if (
|
|
246
|
+
if (J.value = !1, xt(C))
|
|
246
247
|
try {
|
|
247
248
|
const i = C({
|
|
248
249
|
datapoint: c,
|
|
249
250
|
series: m.value,
|
|
250
251
|
config: e.value
|
|
251
252
|
});
|
|
252
|
-
typeof i == "string" && (ae.value = i,
|
|
253
|
+
typeof i == "string" && (ae.value = i, J.value = !0);
|
|
253
254
|
} catch {
|
|
254
255
|
console.warn("Custom format cannot be applied.");
|
|
255
256
|
}
|
|
256
|
-
if (!
|
|
257
|
-
const i = e.value.style.chart.tooltip.showPercentage ? `<div>${
|
|
257
|
+
if (!J.value) {
|
|
258
|
+
const i = e.value.style.chart.tooltip.showPercentage ? `<div>${q({
|
|
258
259
|
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
259
260
|
v: c.percentOfTotal,
|
|
260
261
|
s: "%",
|
|
@@ -264,7 +265,7 @@ const Pt = ["id"], Lt = {
|
|
|
264
265
|
v += `<div><span style="color:${f.color}">⏹←</span> ${f.source}: ${fe(
|
|
265
266
|
e.value.style.chart.nodes.labels.formatter,
|
|
266
267
|
f.value,
|
|
267
|
-
|
|
268
|
+
q({
|
|
268
269
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
269
270
|
v: f.value,
|
|
270
271
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -275,7 +276,7 @@ const Pt = ["id"], Lt = {
|
|
|
275
276
|
v += `<div><span style="color:${f.color}">⏹→</span> ${f.target}: ${fe(
|
|
276
277
|
e.value.style.chart.nodes.labels.formatter,
|
|
277
278
|
f.value,
|
|
278
|
-
|
|
279
|
+
q({
|
|
279
280
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
280
281
|
v: f.value,
|
|
281
282
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -285,10 +286,10 @@ const Pt = ["id"], Lt = {
|
|
|
285
286
|
})), ae.value = v;
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function Oe() {
|
|
289
290
|
k.value = null, H.value = null, le.value = !1;
|
|
290
291
|
}
|
|
291
|
-
const
|
|
292
|
+
const Se = p(() => m.value.links.map(
|
|
292
293
|
({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
|
|
293
294
|
source: t,
|
|
294
295
|
target: l,
|
|
@@ -297,9 +298,9 @@ const Pt = ["id"], Lt = {
|
|
|
297
298
|
value: s
|
|
298
299
|
})
|
|
299
300
|
));
|
|
300
|
-
function
|
|
301
|
-
|
|
302
|
-
const l =
|
|
301
|
+
function Fe(t = null) {
|
|
302
|
+
ft(() => {
|
|
303
|
+
const l = Se.value.map((s, h) => [[s.source], [s.target], [s.value]]), o = [
|
|
303
304
|
[e.value.style.chart.title.text],
|
|
304
305
|
[e.value.style.chart.title.subtitle.text],
|
|
305
306
|
[
|
|
@@ -307,19 +308,19 @@ const Pt = ["id"], Lt = {
|
|
|
307
308
|
[e.value.table.columnNames.target],
|
|
308
309
|
[e.value.table.columnNames.value]
|
|
309
310
|
]
|
|
310
|
-
].concat(l), a =
|
|
311
|
-
t ? t(a) :
|
|
311
|
+
].concat(l), a = $t(o);
|
|
312
|
+
t ? t(a) : Tt({
|
|
312
313
|
csvContent: a,
|
|
313
314
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
314
315
|
});
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
|
-
const
|
|
318
|
+
const K = p(() => {
|
|
318
319
|
const t = [
|
|
319
320
|
e.value.table.columnNames.source,
|
|
320
321
|
e.value.table.columnNames.target,
|
|
321
322
|
e.value.table.columnNames.value
|
|
322
|
-
], l =
|
|
323
|
+
], l = Se.value.map((s, h) => [
|
|
323
324
|
{
|
|
324
325
|
color: s.sourceColor,
|
|
325
326
|
name: s.source
|
|
@@ -328,7 +329,7 @@ const Pt = ["id"], Lt = {
|
|
|
328
329
|
color: s.targetColor,
|
|
329
330
|
name: s.target
|
|
330
331
|
},
|
|
331
|
-
|
|
332
|
+
q({
|
|
332
333
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
333
334
|
v: s.value,
|
|
334
335
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -361,17 +362,17 @@ const Pt = ["id"], Lt = {
|
|
|
361
362
|
function st() {
|
|
362
363
|
return m.value;
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
+
function Pe() {
|
|
365
366
|
N.value.showTable = !N.value.showTable;
|
|
366
367
|
}
|
|
367
|
-
const
|
|
368
|
+
const Q = y(!1);
|
|
368
369
|
function ue() {
|
|
369
|
-
|
|
370
|
+
Q.value = !Q.value;
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
+
function Le() {
|
|
372
373
|
N.value.showTooltip = !N.value.showTooltip;
|
|
373
374
|
}
|
|
374
|
-
const
|
|
375
|
+
const Ie = p(() => {
|
|
375
376
|
const t = new Set(
|
|
376
377
|
m.value.nodes.map(
|
|
377
378
|
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
@@ -387,20 +388,20 @@ const Pt = ["id"], Lt = {
|
|
|
387
388
|
})).map((l, o) => ({
|
|
388
389
|
...l,
|
|
389
390
|
segregate: () => ie({ legend: l, i: o }),
|
|
390
|
-
opacity:
|
|
391
|
+
opacity: I.value.length ? I.value.includes(o) ? 1 : 0.5 : 1
|
|
391
392
|
}));
|
|
392
393
|
}), Ae = p(
|
|
393
|
-
() =>
|
|
394
|
-
),
|
|
394
|
+
() => Ie.value.filter((t) => t.name !== "__uncategorized__")
|
|
395
|
+
), I = y([]);
|
|
395
396
|
function ie({ legend: t, i: l }) {
|
|
396
397
|
const o = t.name;
|
|
397
398
|
if (k.value?.every(
|
|
398
399
|
(a) => e.value.nodeCategories[a] === o
|
|
399
400
|
)) {
|
|
400
|
-
k.value = null, H.value = null,
|
|
401
|
+
k.value = null, H.value = null, I.value = [];
|
|
401
402
|
return;
|
|
402
403
|
}
|
|
403
|
-
|
|
404
|
+
I.value = [l], k.value = m.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), H.value = null;
|
|
404
405
|
}
|
|
405
406
|
const rt = p(() => ({
|
|
406
407
|
cy: "flow-legend",
|
|
@@ -410,36 +411,43 @@ const Pt = ["id"], Lt = {
|
|
|
410
411
|
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
411
412
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
412
413
|
}));
|
|
413
|
-
|
|
414
|
+
async function ut({ scale: t = 2 } = {}) {
|
|
415
|
+
if (!V.value) return;
|
|
416
|
+
const { imageUri: l, base64: o } = await Pt({ domElement: V.value, base64: !0, img: !0, scale: t });
|
|
417
|
+
return { imageUri: l, base64: o };
|
|
418
|
+
}
|
|
419
|
+
return Re({
|
|
414
420
|
getData: st,
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
421
|
+
getImage: ut,
|
|
422
|
+
generateCsv: Fe,
|
|
423
|
+
generateImage: xe,
|
|
424
|
+
generatePdf: Te,
|
|
425
|
+
toggleTable: Pe,
|
|
419
426
|
toggleAnnotator: ue,
|
|
420
|
-
toggleTooltip:
|
|
427
|
+
toggleTooltip: Le,
|
|
421
428
|
drillCategory: ie,
|
|
422
|
-
unselectNode:
|
|
429
|
+
unselectNode: Oe,
|
|
430
|
+
toggleFullscreen: me
|
|
423
431
|
}), (t, l) => (d(), g("div", {
|
|
424
432
|
ref_key: "flowChart",
|
|
425
|
-
ref:
|
|
426
|
-
class:
|
|
433
|
+
ref: V,
|
|
434
|
+
class: He(`vue-ui-flow ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
427
435
|
style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
428
|
-
id: `flow_${
|
|
429
|
-
onMouseenter: l[3] || (l[3] = () => r(
|
|
430
|
-
onMouseleave: l[4] || (l[4] = () => r(
|
|
436
|
+
id: `flow_${oe.value}`,
|
|
437
|
+
onMouseenter: l[3] || (l[3] = () => r(ye)(!0)),
|
|
438
|
+
onMouseleave: l[4] || (l[4] = () => r(ye)(!1))
|
|
431
439
|
}, [
|
|
432
|
-
e.value.userOptions.buttons.annotator ? (d(), B(r(
|
|
440
|
+
e.value.userOptions.buttons.annotator ? (d(), B(r(We), {
|
|
433
441
|
key: 0,
|
|
434
|
-
svgRef: r(
|
|
442
|
+
svgRef: r(ke),
|
|
435
443
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
436
444
|
color: e.value.style.chart.color,
|
|
437
|
-
active:
|
|
445
|
+
active: Q.value,
|
|
438
446
|
onClose: ue
|
|
439
447
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
440
|
-
Ke.value ? (d(), g("div",
|
|
441
|
-
e.value.style.chart.title.text ? (d(), g("div",
|
|
442
|
-
(d(), B(
|
|
448
|
+
Ke.value ? (d(), g("div", At, null, 512)) : _("", !0),
|
|
449
|
+
e.value.style.chart.title.text ? (d(), g("div", Et, [
|
|
450
|
+
(d(), B(Ft, {
|
|
443
451
|
key: `title_${ge.value}`,
|
|
444
452
|
config: {
|
|
445
453
|
title: {
|
|
@@ -453,14 +461,14 @@ const Pt = ["id"], Lt = {
|
|
|
453
461
|
}
|
|
454
462
|
}, null, 8, ["config"]))
|
|
455
463
|
])) : _("", !0),
|
|
456
|
-
e.value.userOptions.show &&
|
|
464
|
+
e.value.userOptions.show && te.value && (r(be) || r(ne)) ? (d(), B(r(qe), {
|
|
457
465
|
ref: "details",
|
|
458
466
|
key: `user_option_${pe.value}`,
|
|
459
467
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
460
468
|
color: e.value.style.chart.color,
|
|
461
|
-
isPrinting: r(
|
|
462
|
-
isImaging: r(
|
|
463
|
-
uid:
|
|
469
|
+
isPrinting: r(we),
|
|
470
|
+
isImaging: r($e),
|
|
471
|
+
uid: oe.value,
|
|
464
472
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
465
473
|
hasXls: e.value.userOptions.buttons.csv,
|
|
466
474
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -469,28 +477,28 @@ const Pt = ["id"], Lt = {
|
|
|
469
477
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
470
478
|
isFullscreen: z.value,
|
|
471
479
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
472
|
-
chartElement:
|
|
480
|
+
chartElement: V.value,
|
|
473
481
|
position: e.value.userOptions.position,
|
|
474
482
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
475
483
|
printScale: e.value.userOptions.print.scale,
|
|
476
|
-
isAnnotation:
|
|
484
|
+
isAnnotation: Q.value,
|
|
477
485
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
478
486
|
isTooltip: N.value.showTooltip,
|
|
479
|
-
onToggleTooltip:
|
|
480
|
-
onToggleFullscreen:
|
|
481
|
-
onGeneratePdf: r(
|
|
482
|
-
onGenerateCsv:
|
|
483
|
-
onGenerateImage: r(
|
|
484
|
-
onToggleTable:
|
|
487
|
+
onToggleTooltip: Le,
|
|
488
|
+
onToggleFullscreen: me,
|
|
489
|
+
onGeneratePdf: r(Te),
|
|
490
|
+
onGenerateCsv: Fe,
|
|
491
|
+
onGenerateImage: r(xe),
|
|
492
|
+
onToggleTable: Pe,
|
|
485
493
|
onToggleAnnotator: ue,
|
|
486
494
|
style: L({
|
|
487
|
-
visibility: r(
|
|
495
|
+
visibility: r(be) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
488
496
|
})
|
|
489
|
-
},
|
|
497
|
+
}, dt({ _: 2 }, [
|
|
490
498
|
t.$slots.menuIcon ? {
|
|
491
499
|
name: "menuIcon",
|
|
492
500
|
fn: w(({ isOpen: o, color: a }) => [
|
|
493
|
-
b(t.$slots, "menuIcon", R(
|
|
501
|
+
b(t.$slots, "menuIcon", R(U({ isOpen: o, color: a })), void 0, !0)
|
|
494
502
|
]),
|
|
495
503
|
key: "0"
|
|
496
504
|
} : void 0,
|
|
@@ -532,24 +540,24 @@ const Pt = ["id"], Lt = {
|
|
|
532
540
|
t.$slots.optionFullscreen ? {
|
|
533
541
|
name: "optionFullscreen",
|
|
534
542
|
fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
535
|
-
b(t.$slots, "optionFullscreen", R(
|
|
543
|
+
b(t.$slots, "optionFullscreen", R(U({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
536
544
|
]),
|
|
537
545
|
key: "6"
|
|
538
546
|
} : void 0,
|
|
539
547
|
t.$slots.optionAnnotator ? {
|
|
540
548
|
name: "optionAnnotator",
|
|
541
549
|
fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
542
|
-
b(t.$slots, "optionAnnotator", R(
|
|
550
|
+
b(t.$slots, "optionAnnotator", R(U({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
543
551
|
]),
|
|
544
552
|
key: "7"
|
|
545
553
|
} : void 0
|
|
546
554
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
547
555
|
(d(), g("svg", {
|
|
548
556
|
ref_key: "svgRef",
|
|
549
|
-
ref:
|
|
550
|
-
xmlns: r(
|
|
557
|
+
ref: ke,
|
|
558
|
+
xmlns: r(Ct),
|
|
551
559
|
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
552
|
-
class:
|
|
560
|
+
class: He({
|
|
553
561
|
"vue-data-ui-fullscreen--on": z.value,
|
|
554
562
|
"vue-data-ui-fulscreen--off": !z.value
|
|
555
563
|
}),
|
|
@@ -567,9 +575,9 @@ const Pt = ["id"], Lt = {
|
|
|
567
575
|
}
|
|
568
576
|
}, [
|
|
569
577
|
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
570
|
-
], 8,
|
|
578
|
+
], 8, Mt)) : _("", !0),
|
|
571
579
|
D("defs", null, [
|
|
572
|
-
(d(!0), g(
|
|
580
|
+
(d(!0), g(W, null, j(m.value.links, (o, a) => (d(), g("linearGradient", {
|
|
573
581
|
id: o.id,
|
|
574
582
|
x1: "0%",
|
|
575
583
|
y1: "0%",
|
|
@@ -579,14 +587,14 @@ const Pt = ["id"], Lt = {
|
|
|
579
587
|
D("stop", {
|
|
580
588
|
offset: "0%",
|
|
581
589
|
"stop-color": o.sourceColor
|
|
582
|
-
}, null, 8,
|
|
590
|
+
}, null, 8, Yt),
|
|
583
591
|
D("stop", {
|
|
584
592
|
offset: "100%",
|
|
585
593
|
"stop-color": o.targetColor
|
|
586
|
-
}, null, 8,
|
|
587
|
-
], 8,
|
|
594
|
+
}, null, 8, Bt)
|
|
595
|
+
], 8, Ht))), 256))
|
|
588
596
|
]),
|
|
589
|
-
(d(!0), g(
|
|
597
|
+
(d(!0), g(W, null, j(m.value.links, (o) => (d(), g("path", {
|
|
590
598
|
class: "vue-ui-flow-link",
|
|
591
599
|
d: o.path,
|
|
592
600
|
fill: `url(#${o.id})`,
|
|
@@ -595,8 +603,8 @@ const Pt = ["id"], Lt = {
|
|
|
595
603
|
style: L(`
|
|
596
604
|
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}
|
|
597
605
|
`)
|
|
598
|
-
}, null, 12,
|
|
599
|
-
(d(!0), g(
|
|
606
|
+
}, null, 12, Dt))), 256)),
|
|
607
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("rect", {
|
|
600
608
|
class: "vue-ui-flow-node",
|
|
601
609
|
x: o.x,
|
|
602
610
|
y: r($)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
@@ -606,48 +614,48 @@ const Pt = ["id"], Lt = {
|
|
|
606
614
|
stroke: e.value.style.chart.nodes.stroke,
|
|
607
615
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
608
616
|
onMouseenter: (s) => nt(o),
|
|
609
|
-
onMouseleave: l[0] || (l[0] = (s) =>
|
|
617
|
+
onMouseleave: l[0] || (l[0] = (s) => Oe()),
|
|
610
618
|
style: L(`opacity:${k.value ? k.value.includes(o.name) ? 1 : 0.3 : 1}`)
|
|
611
|
-
}, null, 44,
|
|
612
|
-
(d(!0), g(
|
|
619
|
+
}, null, 44, Rt))), 256)),
|
|
620
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
|
|
613
621
|
x: o.x + M.value / 2,
|
|
614
622
|
y: r($)(
|
|
615
623
|
o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
616
624
|
) + e.value.style.chart.padding.top,
|
|
617
625
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
618
|
-
fill: r(
|
|
626
|
+
fill: r(Ye)(o.color),
|
|
619
627
|
"text-anchor": "middle",
|
|
620
628
|
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
621
|
-
},
|
|
629
|
+
}, X(e.value.style.chart.nodes.labels.abbreviation.use ? r(wt)({
|
|
622
630
|
source: o.name,
|
|
623
631
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
624
|
-
}) : o.name), 13,
|
|
625
|
-
(d(!0), g(
|
|
632
|
+
}) : o.name), 13, Ut))), 256)),
|
|
633
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
|
|
626
634
|
x: o.x + M.value / 2,
|
|
627
635
|
y: r($)(
|
|
628
636
|
o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
629
637
|
) + e.value.style.chart.padding.top,
|
|
630
638
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
631
|
-
fill: r(
|
|
639
|
+
fill: r(Ye)(o.color),
|
|
632
640
|
"text-anchor": "middle",
|
|
633
641
|
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
634
|
-
},
|
|
642
|
+
}, X(r(fe)(
|
|
635
643
|
e.value.style.chart.nodes.labels.formatter,
|
|
636
644
|
o.value,
|
|
637
|
-
r(
|
|
645
|
+
r(q)({
|
|
638
646
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
639
647
|
v: o.value,
|
|
640
648
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
641
649
|
r: e.value.style.chart.nodes.labels.rounding
|
|
642
650
|
}),
|
|
643
651
|
{ datapoint: o, seriesIndex: a }
|
|
644
|
-
)), 13,
|
|
652
|
+
)), 13, Vt))), 256)),
|
|
645
653
|
b(t.$slots, "svg", { svg: G.value }, void 0, !0)
|
|
646
|
-
], 14,
|
|
647
|
-
t.$slots.watermark ? (d(), g("div",
|
|
648
|
-
b(t.$slots, "watermark", R(
|
|
654
|
+
], 14, zt)),
|
|
655
|
+
t.$slots.watermark ? (d(), g("div", Gt, [
|
|
656
|
+
b(t.$slots, "watermark", R(U({ isPrinting: r(we) || r($e) })), void 0, !0)
|
|
649
657
|
])) : _("", !0),
|
|
650
|
-
|
|
658
|
+
te.value ? _("", !0) : (d(), B(r(je), {
|
|
651
659
|
key: 5,
|
|
652
660
|
config: {
|
|
653
661
|
type: "flow",
|
|
@@ -658,9 +666,9 @@ const Pt = ["id"], Lt = {
|
|
|
658
666
|
}, null, 8, ["config"])),
|
|
659
667
|
D("div", {
|
|
660
668
|
ref_key: "chartLegend",
|
|
661
|
-
ref:
|
|
669
|
+
ref: Je
|
|
662
670
|
}, [
|
|
663
|
-
e.value.style.chart.legend.show && Ae.value.length ? (d(), B(
|
|
671
|
+
e.value.style.chart.legend.show && Ae.value.length ? (d(), B(St, {
|
|
664
672
|
key: 0,
|
|
665
673
|
legendSet: Ae.value,
|
|
666
674
|
config: rt.value,
|
|
@@ -669,17 +677,17 @@ const Pt = ["id"], Lt = {
|
|
|
669
677
|
item: w(({ legend: o, index: a }) => [
|
|
670
678
|
D("div", {
|
|
671
679
|
onClick: (s) => o.segregate(),
|
|
672
|
-
style: L(`opacity:${
|
|
673
|
-
},
|
|
680
|
+
style: L(`opacity:${I.value.length ? I.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
681
|
+
}, X(o.name) + " (" + X(o.count) + ") ", 13, Wt)
|
|
674
682
|
]),
|
|
675
683
|
_: 1
|
|
676
684
|
}, 8, ["legendSet", "config"])) : _("", !0),
|
|
677
|
-
b(t.$slots, "legend", { legend:
|
|
685
|
+
b(t.$slots, "legend", { legend: Ie.value }, void 0, !0)
|
|
678
686
|
], 512),
|
|
679
|
-
t.$slots.source ? (d(), g("div",
|
|
687
|
+
t.$slots.source ? (d(), g("div", jt, [
|
|
680
688
|
b(t.$slots, "source", {}, void 0, !0)
|
|
681
689
|
], 512)) : _("", !0),
|
|
682
|
-
de(r(
|
|
690
|
+
de(r(Xe), {
|
|
683
691
|
show: N.value.showTooltip && le.value,
|
|
684
692
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
685
693
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -690,20 +698,20 @@ const Pt = ["id"], Lt = {
|
|
|
690
698
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
691
699
|
position: e.value.style.chart.tooltip.position,
|
|
692
700
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
693
|
-
parent:
|
|
701
|
+
parent: V.value,
|
|
694
702
|
content: ae.value,
|
|
695
|
-
isCustom:
|
|
703
|
+
isCustom: J.value,
|
|
696
704
|
isFullscreen: z.value
|
|
697
705
|
}, {
|
|
698
706
|
"tooltip-before": w(() => [
|
|
699
|
-
b(t.$slots, "tooltip-before", R(
|
|
707
|
+
b(t.$slots, "tooltip-before", R(U({ ...re.value })), void 0, !0)
|
|
700
708
|
]),
|
|
701
709
|
"tooltip-after": w(() => [
|
|
702
|
-
b(t.$slots, "tooltip-after", R(
|
|
710
|
+
b(t.$slots, "tooltip-after", R(U({ ...re.value })), void 0, !0)
|
|
703
711
|
]),
|
|
704
712
|
_: 3
|
|
705
713
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
706
|
-
|
|
714
|
+
te.value ? (d(), B(r(Ue), {
|
|
707
715
|
key: 7,
|
|
708
716
|
hideDetails: "",
|
|
709
717
|
config: {
|
|
@@ -721,10 +729,10 @@ const Pt = ["id"], Lt = {
|
|
|
721
729
|
}, {
|
|
722
730
|
content: w(() => [
|
|
723
731
|
de(r(Ve), {
|
|
724
|
-
colNames:
|
|
725
|
-
head:
|
|
726
|
-
body:
|
|
727
|
-
config:
|
|
732
|
+
colNames: K.value.colNames,
|
|
733
|
+
head: K.value.head,
|
|
734
|
+
body: K.value.body,
|
|
735
|
+
config: K.value.config,
|
|
728
736
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
729
737
|
onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
|
|
730
738
|
}, {
|
|
@@ -732,19 +740,19 @@ const Pt = ["id"], Lt = {
|
|
|
732
740
|
D("div", {
|
|
733
741
|
innerHTML: o,
|
|
734
742
|
style: { display: "flex", "align-items": "center" }
|
|
735
|
-
}, null, 8,
|
|
743
|
+
}, null, 8, Xt)
|
|
736
744
|
]),
|
|
737
745
|
td: w(({ td: o }) => [
|
|
738
|
-
|
|
746
|
+
vt(X(o.name || o), 1)
|
|
739
747
|
]),
|
|
740
748
|
_: 1
|
|
741
749
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
742
750
|
]),
|
|
743
751
|
_: 1
|
|
744
752
|
}, 8, ["config"])) : _("", !0)
|
|
745
|
-
], 46,
|
|
753
|
+
], 46, It));
|
|
746
754
|
}
|
|
747
|
-
},
|
|
755
|
+
}, so = /* @__PURE__ */ Lt(qt, [["__scopeId", "data-v-5c035177"]]);
|
|
748
756
|
export {
|
|
749
|
-
|
|
757
|
+
so as default
|
|
750
758
|
};
|