vue-data-ui 2.16.5 → 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 +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.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-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -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,27 +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,
|
|
484
|
+
isAnnotation: Q.value,
|
|
476
485
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
477
486
|
isTooltip: N.value.showTooltip,
|
|
478
|
-
onToggleTooltip:
|
|
479
|
-
onToggleFullscreen:
|
|
480
|
-
onGeneratePdf: r(
|
|
481
|
-
onGenerateCsv:
|
|
482
|
-
onGenerateImage: r(
|
|
483
|
-
onToggleTable:
|
|
487
|
+
onToggleTooltip: Le,
|
|
488
|
+
onToggleFullscreen: me,
|
|
489
|
+
onGeneratePdf: r(Te),
|
|
490
|
+
onGenerateCsv: Fe,
|
|
491
|
+
onGenerateImage: r(xe),
|
|
492
|
+
onToggleTable: Pe,
|
|
484
493
|
onToggleAnnotator: ue,
|
|
485
494
|
style: L({
|
|
486
|
-
visibility: r(
|
|
495
|
+
visibility: r(be) ? r(ne) ? "visible" : "hidden" : "visible"
|
|
487
496
|
})
|
|
488
|
-
},
|
|
497
|
+
}, dt({ _: 2 }, [
|
|
489
498
|
t.$slots.menuIcon ? {
|
|
490
499
|
name: "menuIcon",
|
|
491
500
|
fn: w(({ isOpen: o, color: a }) => [
|
|
492
|
-
b(t.$slots, "menuIcon", R(
|
|
501
|
+
b(t.$slots, "menuIcon", R(U({ isOpen: o, color: a })), void 0, !0)
|
|
493
502
|
]),
|
|
494
503
|
key: "0"
|
|
495
504
|
} : void 0,
|
|
@@ -531,24 +540,24 @@ const Pt = ["id"], Lt = {
|
|
|
531
540
|
t.$slots.optionFullscreen ? {
|
|
532
541
|
name: "optionFullscreen",
|
|
533
542
|
fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
534
|
-
b(t.$slots, "optionFullscreen", R(
|
|
543
|
+
b(t.$slots, "optionFullscreen", R(U({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
535
544
|
]),
|
|
536
545
|
key: "6"
|
|
537
546
|
} : void 0,
|
|
538
547
|
t.$slots.optionAnnotator ? {
|
|
539
548
|
name: "optionAnnotator",
|
|
540
549
|
fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
541
|
-
b(t.$slots, "optionAnnotator", R(
|
|
550
|
+
b(t.$slots, "optionAnnotator", R(U({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
542
551
|
]),
|
|
543
552
|
key: "7"
|
|
544
553
|
} : void 0
|
|
545
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
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),
|
|
546
555
|
(d(), g("svg", {
|
|
547
556
|
ref_key: "svgRef",
|
|
548
|
-
ref:
|
|
549
|
-
xmlns: r(
|
|
557
|
+
ref: ke,
|
|
558
|
+
xmlns: r(Ct),
|
|
550
559
|
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
551
|
-
class:
|
|
560
|
+
class: He({
|
|
552
561
|
"vue-data-ui-fullscreen--on": z.value,
|
|
553
562
|
"vue-data-ui-fulscreen--off": !z.value
|
|
554
563
|
}),
|
|
@@ -566,9 +575,9 @@ const Pt = ["id"], Lt = {
|
|
|
566
575
|
}
|
|
567
576
|
}, [
|
|
568
577
|
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
569
|
-
], 8,
|
|
578
|
+
], 8, Mt)) : _("", !0),
|
|
570
579
|
D("defs", null, [
|
|
571
|
-
(d(!0), g(
|
|
580
|
+
(d(!0), g(W, null, j(m.value.links, (o, a) => (d(), g("linearGradient", {
|
|
572
581
|
id: o.id,
|
|
573
582
|
x1: "0%",
|
|
574
583
|
y1: "0%",
|
|
@@ -578,14 +587,14 @@ const Pt = ["id"], Lt = {
|
|
|
578
587
|
D("stop", {
|
|
579
588
|
offset: "0%",
|
|
580
589
|
"stop-color": o.sourceColor
|
|
581
|
-
}, null, 8,
|
|
590
|
+
}, null, 8, Yt),
|
|
582
591
|
D("stop", {
|
|
583
592
|
offset: "100%",
|
|
584
593
|
"stop-color": o.targetColor
|
|
585
|
-
}, null, 8,
|
|
586
|
-
], 8,
|
|
594
|
+
}, null, 8, Bt)
|
|
595
|
+
], 8, Ht))), 256))
|
|
587
596
|
]),
|
|
588
|
-
(d(!0), g(
|
|
597
|
+
(d(!0), g(W, null, j(m.value.links, (o) => (d(), g("path", {
|
|
589
598
|
class: "vue-ui-flow-link",
|
|
590
599
|
d: o.path,
|
|
591
600
|
fill: `url(#${o.id})`,
|
|
@@ -594,8 +603,8 @@ const Pt = ["id"], Lt = {
|
|
|
594
603
|
style: L(`
|
|
595
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}
|
|
596
605
|
`)
|
|
597
|
-
}, null, 12,
|
|
598
|
-
(d(!0), g(
|
|
606
|
+
}, null, 12, Dt))), 256)),
|
|
607
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("rect", {
|
|
599
608
|
class: "vue-ui-flow-node",
|
|
600
609
|
x: o.x,
|
|
601
610
|
y: r($)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
@@ -605,48 +614,48 @@ const Pt = ["id"], Lt = {
|
|
|
605
614
|
stroke: e.value.style.chart.nodes.stroke,
|
|
606
615
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
607
616
|
onMouseenter: (s) => nt(o),
|
|
608
|
-
onMouseleave: l[0] || (l[0] = (s) =>
|
|
617
|
+
onMouseleave: l[0] || (l[0] = (s) => Oe()),
|
|
609
618
|
style: L(`opacity:${k.value ? k.value.includes(o.name) ? 1 : 0.3 : 1}`)
|
|
610
|
-
}, null, 44,
|
|
611
|
-
(d(!0), g(
|
|
619
|
+
}, null, 44, Rt))), 256)),
|
|
620
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
|
|
612
621
|
x: o.x + M.value / 2,
|
|
613
622
|
y: r($)(
|
|
614
623
|
o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
615
624
|
) + e.value.style.chart.padding.top,
|
|
616
625
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
617
|
-
fill: r(
|
|
626
|
+
fill: r(Ye)(o.color),
|
|
618
627
|
"text-anchor": "middle",
|
|
619
628
|
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
620
|
-
},
|
|
629
|
+
}, X(e.value.style.chart.nodes.labels.abbreviation.use ? r(wt)({
|
|
621
630
|
source: o.name,
|
|
622
631
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
623
|
-
}) : o.name), 13,
|
|
624
|
-
(d(!0), g(
|
|
632
|
+
}) : o.name), 13, Ut))), 256)),
|
|
633
|
+
(d(!0), g(W, null, j(m.value.nodes, (o, a) => (d(), g("text", {
|
|
625
634
|
x: o.x + M.value / 2,
|
|
626
635
|
y: r($)(
|
|
627
636
|
o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
628
637
|
) + e.value.style.chart.padding.top,
|
|
629
638
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
630
|
-
fill: r(
|
|
639
|
+
fill: r(Ye)(o.color),
|
|
631
640
|
"text-anchor": "middle",
|
|
632
641
|
style: L(`pointer-events: none; opacity:${k.value ? k.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
633
|
-
},
|
|
642
|
+
}, X(r(fe)(
|
|
634
643
|
e.value.style.chart.nodes.labels.formatter,
|
|
635
644
|
o.value,
|
|
636
|
-
r(
|
|
645
|
+
r(q)({
|
|
637
646
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
638
647
|
v: o.value,
|
|
639
648
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
640
649
|
r: e.value.style.chart.nodes.labels.rounding
|
|
641
650
|
}),
|
|
642
651
|
{ datapoint: o, seriesIndex: a }
|
|
643
|
-
)), 13,
|
|
652
|
+
)), 13, Vt))), 256)),
|
|
644
653
|
b(t.$slots, "svg", { svg: G.value }, void 0, !0)
|
|
645
|
-
], 14,
|
|
646
|
-
t.$slots.watermark ? (d(), g("div",
|
|
647
|
-
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)
|
|
648
657
|
])) : _("", !0),
|
|
649
|
-
|
|
658
|
+
te.value ? _("", !0) : (d(), B(r(je), {
|
|
650
659
|
key: 5,
|
|
651
660
|
config: {
|
|
652
661
|
type: "flow",
|
|
@@ -657,9 +666,9 @@ const Pt = ["id"], Lt = {
|
|
|
657
666
|
}, null, 8, ["config"])),
|
|
658
667
|
D("div", {
|
|
659
668
|
ref_key: "chartLegend",
|
|
660
|
-
ref:
|
|
669
|
+
ref: Je
|
|
661
670
|
}, [
|
|
662
|
-
e.value.style.chart.legend.show && Ae.value.length ? (d(), B(
|
|
671
|
+
e.value.style.chart.legend.show && Ae.value.length ? (d(), B(St, {
|
|
663
672
|
key: 0,
|
|
664
673
|
legendSet: Ae.value,
|
|
665
674
|
config: rt.value,
|
|
@@ -668,17 +677,17 @@ const Pt = ["id"], Lt = {
|
|
|
668
677
|
item: w(({ legend: o, index: a }) => [
|
|
669
678
|
D("div", {
|
|
670
679
|
onClick: (s) => o.segregate(),
|
|
671
|
-
style: L(`opacity:${
|
|
672
|
-
},
|
|
680
|
+
style: L(`opacity:${I.value.length ? I.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
681
|
+
}, X(o.name) + " (" + X(o.count) + ") ", 13, Wt)
|
|
673
682
|
]),
|
|
674
683
|
_: 1
|
|
675
684
|
}, 8, ["legendSet", "config"])) : _("", !0),
|
|
676
|
-
b(t.$slots, "legend", { legend:
|
|
685
|
+
b(t.$slots, "legend", { legend: Ie.value }, void 0, !0)
|
|
677
686
|
], 512),
|
|
678
|
-
t.$slots.source ? (d(), g("div",
|
|
687
|
+
t.$slots.source ? (d(), g("div", jt, [
|
|
679
688
|
b(t.$slots, "source", {}, void 0, !0)
|
|
680
689
|
], 512)) : _("", !0),
|
|
681
|
-
de(r(
|
|
690
|
+
de(r(Xe), {
|
|
682
691
|
show: N.value.showTooltip && le.value,
|
|
683
692
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
684
693
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -689,20 +698,20 @@ const Pt = ["id"], Lt = {
|
|
|
689
698
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
690
699
|
position: e.value.style.chart.tooltip.position,
|
|
691
700
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
692
|
-
parent:
|
|
701
|
+
parent: V.value,
|
|
693
702
|
content: ae.value,
|
|
694
|
-
isCustom:
|
|
703
|
+
isCustom: J.value,
|
|
695
704
|
isFullscreen: z.value
|
|
696
705
|
}, {
|
|
697
706
|
"tooltip-before": w(() => [
|
|
698
|
-
b(t.$slots, "tooltip-before", R(
|
|
707
|
+
b(t.$slots, "tooltip-before", R(U({ ...re.value })), void 0, !0)
|
|
699
708
|
]),
|
|
700
709
|
"tooltip-after": w(() => [
|
|
701
|
-
b(t.$slots, "tooltip-after", R(
|
|
710
|
+
b(t.$slots, "tooltip-after", R(U({ ...re.value })), void 0, !0)
|
|
702
711
|
]),
|
|
703
712
|
_: 3
|
|
704
713
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
705
|
-
|
|
714
|
+
te.value ? (d(), B(r(Ue), {
|
|
706
715
|
key: 7,
|
|
707
716
|
hideDetails: "",
|
|
708
717
|
config: {
|
|
@@ -720,10 +729,10 @@ const Pt = ["id"], Lt = {
|
|
|
720
729
|
}, {
|
|
721
730
|
content: w(() => [
|
|
722
731
|
de(r(Ve), {
|
|
723
|
-
colNames:
|
|
724
|
-
head:
|
|
725
|
-
body:
|
|
726
|
-
config:
|
|
732
|
+
colNames: K.value.colNames,
|
|
733
|
+
head: K.value.head,
|
|
734
|
+
body: K.value.body,
|
|
735
|
+
config: K.value.config,
|
|
727
736
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
728
737
|
onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
|
|
729
738
|
}, {
|
|
@@ -731,19 +740,19 @@ const Pt = ["id"], Lt = {
|
|
|
731
740
|
D("div", {
|
|
732
741
|
innerHTML: o,
|
|
733
742
|
style: { display: "flex", "align-items": "center" }
|
|
734
|
-
}, null, 8,
|
|
743
|
+
}, null, 8, Xt)
|
|
735
744
|
]),
|
|
736
745
|
td: w(({ td: o }) => [
|
|
737
|
-
|
|
746
|
+
vt(X(o.name || o), 1)
|
|
738
747
|
]),
|
|
739
748
|
_: 1
|
|
740
749
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
741
750
|
]),
|
|
742
751
|
_: 1
|
|
743
752
|
}, 8, ["config"])) : _("", !0)
|
|
744
|
-
], 46,
|
|
753
|
+
], 46, It));
|
|
745
754
|
}
|
|
746
|
-
},
|
|
755
|
+
}, so = /* @__PURE__ */ Lt(qt, [["__scopeId", "data-v-5c035177"]]);
|
|
747
756
|
export {
|
|
748
|
-
|
|
757
|
+
so as default
|
|
749
758
|
};
|