vue-data-ui 3.25.5 → 3.25.7
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
- package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
- package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
- package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
- package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
- package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
- package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
- package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
- package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
- package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
- package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
- package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
- package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
- package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
- package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
- package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
- package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
- package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
- package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
- package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
- package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
- package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
- package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
- package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
- package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
- package/dist/vue-ui-table-CiccGbRB.js +1352 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
- package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
- package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
- package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
- package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
- package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
- package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,1217 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, Pt as a, S as o, X as s, Yt as c, Zt as l, b as u, i as d, n as f, nt as p, q as ee, r as m, t as h, w as g } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as te, t as _ } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as v } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
-
import { t as y } from "./usePrinter-DISD7q5m.js";
|
|
6
|
-
import { n as b, t as x } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as S } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
-
import { t as ne } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as C } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as re } from "./img-DhGApYG0.js";
|
|
11
|
-
import { n as ie } from "./Title-CPHi-evi.js";
|
|
12
|
-
import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as oe, t as se } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as ce } from "./A11yDataTable-DdRsVULz.js";
|
|
15
|
-
import { t as le } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
-
import { t as ue } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as de } from "./Legend-X4kF4PvW.js";
|
|
18
|
-
import { t as fe } from "./vue_ui_flow-BewZjjKG.js";
|
|
19
|
-
import { Fragment as pe, Teleport as me, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as he, createTextVNode as ge, createVNode as _e, defineAsyncComponent as k, guardReactiveProps as A, mergeProps as ve, nextTick as ye, normalizeClass as be, normalizeProps as j, normalizeStyle as M, onMounted as xe, openBlock as N, ref as P, renderList as Se, renderSlot as F, resolveDynamicComponent as Ce, toDisplayString as I, toRefs as we, unref as L, watch as Te, withCtx as R } from "vue";
|
|
20
|
-
//#region src/components/vue-ui-flow.vue
|
|
21
|
-
var Ee = /* @__PURE__ */ e({ default: () => qe }), De = ["id"], Oe = ["id"], ke = {
|
|
22
|
-
key: 2,
|
|
23
|
-
ref: "noTitle",
|
|
24
|
-
class: "vue-data-ui-no-title-space",
|
|
25
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
26
|
-
}, Ae = ["id"], je = { style: { position: "relative" } }, Me = [
|
|
27
|
-
"xmlns",
|
|
28
|
-
"aria-describedby",
|
|
29
|
-
"viewBox"
|
|
30
|
-
], Ne = ["width", "height"], Pe = ["id"], Fe = ["stop-color"], Ie = ["stop-color"], Le = [
|
|
31
|
-
"d",
|
|
32
|
-
"fill",
|
|
33
|
-
"stroke",
|
|
34
|
-
"stroke-width"
|
|
35
|
-
], Re = [
|
|
36
|
-
"data-a11y-node-id",
|
|
37
|
-
"x",
|
|
38
|
-
"y",
|
|
39
|
-
"height",
|
|
40
|
-
"width",
|
|
41
|
-
"fill",
|
|
42
|
-
"stroke",
|
|
43
|
-
"stroke-width",
|
|
44
|
-
"rx",
|
|
45
|
-
"aria-label",
|
|
46
|
-
"onMouseenter",
|
|
47
|
-
"onMouseleave",
|
|
48
|
-
"onClick"
|
|
49
|
-
], ze = { key: 1 }, Be = [
|
|
50
|
-
"x",
|
|
51
|
-
"y",
|
|
52
|
-
"font-size",
|
|
53
|
-
"fill"
|
|
54
|
-
], Ve = [
|
|
55
|
-
"x",
|
|
56
|
-
"y",
|
|
57
|
-
"font-size",
|
|
58
|
-
"fill"
|
|
59
|
-
], He = {
|
|
60
|
-
key: 0,
|
|
61
|
-
style: {
|
|
62
|
-
position: "absolute",
|
|
63
|
-
top: "100%",
|
|
64
|
-
left: "0",
|
|
65
|
-
width: "100%"
|
|
66
|
-
},
|
|
67
|
-
"data-dom-to-png-ignore": "",
|
|
68
|
-
"aria-hidden": "true"
|
|
69
|
-
}, Ue = {
|
|
70
|
-
key: 5,
|
|
71
|
-
class: "vue-data-ui-watermark"
|
|
72
|
-
}, We = ["id"], Ge = ["onClick"], Ke = { style: {
|
|
73
|
-
display: "flex",
|
|
74
|
-
"align-items": "center"
|
|
75
|
-
} }, qe = /*#__PURE__*/ ae({
|
|
76
|
-
__name: "vue-ui-flow",
|
|
77
|
-
props: {
|
|
78
|
-
config: {
|
|
79
|
-
type: Object,
|
|
80
|
-
default() {
|
|
81
|
-
return {};
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
dataset: {
|
|
85
|
-
type: Array,
|
|
86
|
-
default() {
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
emits: ["copyAlt"],
|
|
92
|
-
setup(e, { expose: ae, emit: Ee }) {
|
|
93
|
-
let qe = k(() => import("./Tooltip-hhrkQ3Lk.js")), Je = k(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Ye = k(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), Xe = k(() => import("./DataTable-COIO9gi4.js")), Ze = k(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Qe = k(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), $e = k(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), et = k(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_flow: tt } = v(), { isThemeValid: nt, warnInvalidTheme: rt } = ne(), z = e, it = Ee, B = P(ee()), V = P(null), at = P(0), ot = P(0), st = P(!1), ct = P(""), lt = P(null), ut = P(null), dt = P(null), ft = P(null), pt = P(null), mt = P(!1), ht = P(null), gt = P(null), _t = P(null), vt = P(null), H = P(null), yt = P({
|
|
94
|
-
x: 0,
|
|
95
|
-
y: 0
|
|
96
|
-
}), bt = P("pointer"), xt = P(!1), St = w(() => !!z.dataset && z.dataset.length);
|
|
97
|
-
xe(() => {
|
|
98
|
-
mt.value = !0, kt();
|
|
99
|
-
});
|
|
100
|
-
let U = P(!1);
|
|
101
|
-
function Ct(e) {
|
|
102
|
-
U.value = e, at.value += 1;
|
|
103
|
-
}
|
|
104
|
-
let W = P(Nt());
|
|
105
|
-
te({
|
|
106
|
-
config: () => W.value,
|
|
107
|
-
dataset: () => z.dataset,
|
|
108
|
-
component: "VueUiFlow",
|
|
109
|
-
rules: [_.emptyArray, _.noHint]
|
|
110
|
-
});
|
|
111
|
-
let G = w(() => W.value.userOptions.useCursorPointer), wt = w(() => l({
|
|
112
|
-
defaultConfig: {
|
|
113
|
-
userOptions: { show: !1 },
|
|
114
|
-
nodeCategories: {
|
|
115
|
-
B: "A",
|
|
116
|
-
C: "B"
|
|
117
|
-
},
|
|
118
|
-
nodeCategoryColors: {
|
|
119
|
-
A: "#CACACA",
|
|
120
|
-
B: "#AAAAAA"
|
|
121
|
-
},
|
|
122
|
-
table: { show: !1 },
|
|
123
|
-
style: { chart: {
|
|
124
|
-
backgroundColor: "#99999930",
|
|
125
|
-
legend: { backgroundColor: "transparent" },
|
|
126
|
-
nodes: {
|
|
127
|
-
labels: { show: !1 },
|
|
128
|
-
stroke: "#666666"
|
|
129
|
-
},
|
|
130
|
-
links: { stroke: "#666666" }
|
|
131
|
-
} }
|
|
132
|
-
},
|
|
133
|
-
userConfig: W.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading: Tt, FINAL_DATASET: Et, manualLoading: Dt } = b({
|
|
135
|
-
...we(z),
|
|
136
|
-
FINAL_CONFIG: W,
|
|
137
|
-
prepareConfig: Nt,
|
|
138
|
-
skeletonDataset: z.config?.skeletonDataset ?? [
|
|
139
|
-
[
|
|
140
|
-
"A",
|
|
141
|
-
"B",
|
|
142
|
-
2,
|
|
143
|
-
"#CACACA"
|
|
144
|
-
],
|
|
145
|
-
[
|
|
146
|
-
"B",
|
|
147
|
-
"C",
|
|
148
|
-
1,
|
|
149
|
-
"#CACACA"
|
|
150
|
-
],
|
|
151
|
-
[
|
|
152
|
-
"C",
|
|
153
|
-
"D",
|
|
154
|
-
.5,
|
|
155
|
-
"#CACACA"
|
|
156
|
-
],
|
|
157
|
-
[
|
|
158
|
-
"E",
|
|
159
|
-
"F",
|
|
160
|
-
1,
|
|
161
|
-
"#AAAAAA"
|
|
162
|
-
],
|
|
163
|
-
[
|
|
164
|
-
"F",
|
|
165
|
-
"G",
|
|
166
|
-
.5,
|
|
167
|
-
"#AAAAAA"
|
|
168
|
-
],
|
|
169
|
-
[
|
|
170
|
-
"G",
|
|
171
|
-
"H",
|
|
172
|
-
.25,
|
|
173
|
-
"#AAAAAA"
|
|
174
|
-
]
|
|
175
|
-
],
|
|
176
|
-
skeletonConfig: l({
|
|
177
|
-
defaultConfig: W.value,
|
|
178
|
-
userConfig: wt.value
|
|
179
|
-
})
|
|
180
|
-
}), Ot = w(() => W.value.debug);
|
|
181
|
-
function kt() {
|
|
182
|
-
if (a(z.dataset) && (p({
|
|
183
|
-
componentName: "VueUiFlow",
|
|
184
|
-
type: "dataset",
|
|
185
|
-
debug: Ot.value
|
|
186
|
-
}), Dt.value = !0), a(z.dataset) || (Dt.value = W.value.loading), W.value.responsive) {
|
|
187
|
-
let e = oe(() => {
|
|
188
|
-
let { width: e, height: t } = se({
|
|
189
|
-
chart: V.value,
|
|
190
|
-
title: W.value.style.chart.title.text ? ut.value : null,
|
|
191
|
-
legend: W.value.style.chart.legend.show ? lt.value : null,
|
|
192
|
-
source: dt.value
|
|
193
|
-
});
|
|
194
|
-
requestAnimationFrame(() => {
|
|
195
|
-
Pt.value = e, Ft.value = t;
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
ft.value && (pt.value && ft.value.unobserve(pt.value), ft.value.disconnect()), ft.value = new ResizeObserver(e), pt.value = V.value.parentNode, ft.value.observe(pt.value);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
let { userOptionsVisible: At, setUserOptionsVisibility: jt, keepUserOptionState: Mt } = le({ config: W.value }), { svgRef: K } = ue({ config: W.value.style.chart.title });
|
|
202
|
-
function Nt() {
|
|
203
|
-
let e = S({
|
|
204
|
-
userConfig: z.config,
|
|
205
|
-
defaultConfig: tt
|
|
206
|
-
}), t = e, n = e.theme;
|
|
207
|
-
if (n) {
|
|
208
|
-
if (!nt.value(e)) rt(e), t = e;
|
|
209
|
-
else {
|
|
210
|
-
let r = S({
|
|
211
|
-
userConfig: fe[n] || z.config,
|
|
212
|
-
defaultConfig: e
|
|
213
|
-
});
|
|
214
|
-
t = {
|
|
215
|
-
...S({
|
|
216
|
-
userConfig: z.config,
|
|
217
|
-
defaultConfig: r
|
|
218
|
-
}),
|
|
219
|
-
customPalette: e.customPalette.length ? e.customPalette : c[n] || i
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
} else t = e;
|
|
223
|
-
return t.nodeCategories = z.config.nodeCategories || {}, t.nodeCategoryColors = z.config.nodeCategoryColors || {}, t;
|
|
224
|
-
}
|
|
225
|
-
let Pt = P(W.value.style.chart.width), Ft = P(W.value.style.chart.height);
|
|
226
|
-
Te(() => z.config, (e) => {
|
|
227
|
-
Tt.value || (W.value = Nt()), At.value = !W.value.userOptions.showOnChartHover, kt(), ot.value += 1, q.value.showTable = W.value.table.show;
|
|
228
|
-
}, { deep: !0 }), Te(() => z.dataset, (e) => {
|
|
229
|
-
Array.isArray(e) && e.length > 0 && (Dt.value = !1);
|
|
230
|
-
}, { deep: !0 });
|
|
231
|
-
let { isPrinting: It, isImaging: Lt, generatePdf: Rt, generateImage: zt } = y({
|
|
232
|
-
elementId: `flow_${B.value}`,
|
|
233
|
-
fileName: W.value.style.chart.title.text || "vue-ui-flow",
|
|
234
|
-
options: W.value.userOptions.print
|
|
235
|
-
}), Bt = w(() => W.value.userOptions.show && !W.value.style.chart.title.text), Vt = w(() => g(W.value.customPalette)), Ht = w(() => W.value.style.chart.nodes.width), q = P({
|
|
236
|
-
showTable: W.value.table.show,
|
|
237
|
-
showTooltip: W.value.style.chart.tooltip.show
|
|
238
|
-
});
|
|
239
|
-
Te(W, () => {
|
|
240
|
-
q.value = {
|
|
241
|
-
showTable: W.value.table.show,
|
|
242
|
-
showTooltip: W.value.style.chart.tooltip.show
|
|
243
|
-
};
|
|
244
|
-
}, { immediate: !0 });
|
|
245
|
-
let Ut = w(() => !Et.value || !Et.value.length ? [] : Et.value.map((e, t) => [
|
|
246
|
-
e[0],
|
|
247
|
-
e[1],
|
|
248
|
-
u(e[2]),
|
|
249
|
-
e[3] ? o(e[3]) : Vt.value[t] || Vt.value[t % Vt.value.length] || i[t] || i[t % i.length]
|
|
250
|
-
]));
|
|
251
|
-
function Wt(e) {
|
|
252
|
-
let t = {}, n = {};
|
|
253
|
-
function r(e, r) {
|
|
254
|
-
t[e] || (t[e] = {
|
|
255
|
-
level: null,
|
|
256
|
-
inflow: 0,
|
|
257
|
-
outflow: 0,
|
|
258
|
-
children: [],
|
|
259
|
-
color: null,
|
|
260
|
-
uid: ee()
|
|
261
|
-
}), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
|
|
262
|
-
}
|
|
263
|
-
e.forEach(([e, n, i]) => {
|
|
264
|
-
let a = t[e]?.level ?? 0, o = a + 1;
|
|
265
|
-
r(e, a), r(n, o), t[e].children.push({
|
|
266
|
-
target: n,
|
|
267
|
-
value: i
|
|
268
|
-
}), t[e].outflow += i, t[n].inflow += i;
|
|
269
|
-
});
|
|
270
|
-
let a = new Set(e.map(([e]) => e)), o = new Set(e.map(([, e]) => e)), s = Array.from(a).filter((e) => !o.has(e)), c = {};
|
|
271
|
-
s.forEach((e, t) => {
|
|
272
|
-
c[e] = Vt.value[t] || i[t % i.length];
|
|
273
|
-
});
|
|
274
|
-
let l = {};
|
|
275
|
-
e.forEach(([e, t, n, r]) => {
|
|
276
|
-
r && (l[e] = r, l[t] = r);
|
|
277
|
-
}), Object.keys(t).forEach((e, n) => {
|
|
278
|
-
let r = W.value.nodeCategories?.[e], a = r ? W.value.nodeCategoryColors?.[r] : null;
|
|
279
|
-
t[e].color = l[e] || a || (s.includes(e) ? c[e] : null) || i[n % i.length];
|
|
280
|
-
}), Object.keys(t).forEach((e) => {
|
|
281
|
-
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
282
|
-
});
|
|
283
|
-
let d = qt.value, f = Jt.value.width, p = Jt.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), h = m.length || 1, g = h > 1 ? f / (h - 1) : 0, te = Number(Ht.value), _ = Number(W.value.style.chart.nodes.gapPx ?? W.value.style.chart.nodes.gap ?? 8), v = Number(W.value.style.chart.nodes.minHeight || 0);
|
|
284
|
-
function y(e) {
|
|
285
|
-
let r = n[e], i = r.length;
|
|
286
|
-
if (!i) return Infinity;
|
|
287
|
-
let a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), c = 0, l = r.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
|
|
288
|
-
for (let e = 0; e < 12; e += 1) {
|
|
289
|
-
let e = u > 0 ? (o - c) / u : 0, t = [];
|
|
290
|
-
for (let n = 0; n < l.length; n += 1) {
|
|
291
|
-
let r = l[n];
|
|
292
|
-
r < 0 || r * e < s && t.push(n);
|
|
293
|
-
}
|
|
294
|
-
if (!t.length) return Math.max(0, e);
|
|
295
|
-
for (let e of t) c += s, u -= l[e], l[e] = -1;
|
|
296
|
-
if (u <= 0) return 0;
|
|
297
|
-
}
|
|
298
|
-
return u > 0 ? Math.max(0, (o - c) / u) : 0;
|
|
299
|
-
}
|
|
300
|
-
let b = m.map(y), x = b.length ? Math.min(...b) : 0, S = {};
|
|
301
|
-
m.forEach((e) => {
|
|
302
|
-
let r = n[e], i = r.length, a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), c = r.map((e) => Math.max(s, (t[e].value || 0) * x)), l = c.reduce((e, t) => e + t, 0) + a, u = Math.max(0, (p - l) / 2);
|
|
303
|
-
r.forEach((n, r) => {
|
|
304
|
-
let a = c[r], o = d.left + e * g, s = u;
|
|
305
|
-
S[n] = {
|
|
306
|
-
x: o,
|
|
307
|
-
y: s,
|
|
308
|
-
absoluteY: s,
|
|
309
|
-
height: a,
|
|
310
|
-
i: r,
|
|
311
|
-
color: t[n].color,
|
|
312
|
-
value: t[n].value,
|
|
313
|
-
id: ee()
|
|
314
|
-
}, u += a, r < i - 1 && (u += _);
|
|
315
|
-
});
|
|
316
|
-
});
|
|
317
|
-
let ne = [], C = d.top, re = {}, ie = {};
|
|
318
|
-
Object.keys(t).forEach((e) => {
|
|
319
|
-
re[e] = S[e]?.y ?? 0, ie[e] = 0;
|
|
320
|
-
});
|
|
321
|
-
let ae = !!W.value.style.chart.links.smooth, oe = .5;
|
|
322
|
-
return m.forEach((e) => {
|
|
323
|
-
n[e].forEach((e) => {
|
|
324
|
-
let n = t[e], r = S[e];
|
|
325
|
-
if (!n.children || !n.children.length) return;
|
|
326
|
-
let i = r.y;
|
|
327
|
-
n.children.forEach(({ target: a, value: o }) => {
|
|
328
|
-
let s = S[a], c = t[a], l = n.outflow > 0 ? o / n.outflow : 0, d = c.inflow > 0 ? o / c.inflow : 0, f = u(i + C), p = u(i + l * r.height + C), m = re[a], h = m + d * s.height;
|
|
329
|
-
ie[a] += o;
|
|
330
|
-
let g = c.inflow > 0 && ie[a] >= c.inflow - 1e-6, _ = s.y + s.height;
|
|
331
|
-
(g || h > _ - .25) && (h = _);
|
|
332
|
-
let v = u(m + C), y = u(h + C), b = u(r.x + te), x = u(s.x), se;
|
|
333
|
-
if (!ae || x <= b) se = `M ${b} ${f} L ${b} ${p} L ${x} ${y} L ${x} ${v} Z`;
|
|
334
|
-
else {
|
|
335
|
-
let e = x - b, t = u(b + e * oe), n = u(x - e * oe), r = f, i = v, a = p, o = y;
|
|
336
|
-
se = `M ${b} ${r} C ${t} ${r}, ${n} ${i}, ${x} ${i} L ${x} ${o} C ${n} ${o}, ${t} ${a}, ${b} ${a} Z`;
|
|
337
|
-
}
|
|
338
|
-
ne.push({
|
|
339
|
-
id: ee(),
|
|
340
|
-
source: e,
|
|
341
|
-
target: a,
|
|
342
|
-
path: se,
|
|
343
|
-
value: o,
|
|
344
|
-
sourceColor: n.color,
|
|
345
|
-
targetColor: t[a].color
|
|
346
|
-
}), i = p - C, re[a] = h;
|
|
347
|
-
});
|
|
348
|
-
});
|
|
349
|
-
}), {
|
|
350
|
-
nodeCoordinates: S,
|
|
351
|
-
links: ne
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
let J = w(() => {
|
|
355
|
-
let e = Wt(Et.value);
|
|
356
|
-
return {
|
|
357
|
-
nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
|
|
358
|
-
...e.nodeCoordinates[t],
|
|
359
|
-
name: t
|
|
360
|
-
})),
|
|
361
|
-
links: e.links
|
|
362
|
-
};
|
|
363
|
-
}), Gt = w(() => Pt.value), Kt = w(() => Ft.value), qt = w(() => W.value.style.chart.padding), Jt = w(() => ({
|
|
364
|
-
width: Math.max(0, Gt.value - 40 - qt.value.right - qt.value.left),
|
|
365
|
-
height: Math.max(0, Kt.value - qt.value.top - qt.value.bottom)
|
|
366
|
-
})), Yt = w(() => ({
|
|
367
|
-
width: Gt.value,
|
|
368
|
-
height: Kt.value
|
|
369
|
-
}));
|
|
370
|
-
function Xt(e) {
|
|
371
|
-
let t = {}, n = {}, r = /* @__PURE__ */ new Set();
|
|
372
|
-
return Ut.value.forEach(([e, r, i]) => {
|
|
373
|
-
t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
|
|
374
|
-
}), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
|
|
375
|
-
}
|
|
376
|
-
let Y = P(null), X = P(null), Z = P(null), Zt = P(!1), Qt = P(null);
|
|
377
|
-
function $t() {
|
|
378
|
-
Qt.value = null, Y.value = null, X.value = null, st.value = !1, vt.value = null, H.value = null;
|
|
379
|
-
}
|
|
380
|
-
function en(e) {
|
|
381
|
-
if (!K.value || !e) return;
|
|
382
|
-
let t = K.value.querySelector(`[data-a11y-node-id="${e}"]`);
|
|
383
|
-
if (!t) return;
|
|
384
|
-
let n = t.getBoundingClientRect();
|
|
385
|
-
yt.value = {
|
|
386
|
-
x: n.left + n.width / 2,
|
|
387
|
-
y: n.top + n.height / 2
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
function tn(e, t, r = "pointer", i = null) {
|
|
391
|
-
$.value = [], Y.value = Xt(e.name), X.value = e.name, Qt.value = e.id, bt.value = r, vt.value = i, H.value = e.id;
|
|
392
|
-
let a = e.name, o = Ut.value, c = 0, l = 0, u = [], f = [], p = new Set(o.map(([e]) => e)), ee = new Set(o.map(([, e]) => e)), m = Array.from(p).filter((e) => !ee.has(e)), h = o.filter(([e]) => m.includes(e)).reduce((e, [t, n, r]) => e + r, 0), g = {};
|
|
393
|
-
J.value.nodes.forEach((e) => {
|
|
394
|
-
g[e.name] = e.color;
|
|
395
|
-
}), o.forEach(([e, t, n]) => {
|
|
396
|
-
t === a && (c += n, u.push({
|
|
397
|
-
source: e,
|
|
398
|
-
value: n,
|
|
399
|
-
color: g[e]
|
|
400
|
-
})), e === a && (l += n, f.push({
|
|
401
|
-
target: t,
|
|
402
|
-
value: n,
|
|
403
|
-
color: g[t]
|
|
404
|
-
}));
|
|
405
|
-
});
|
|
406
|
-
let te = h > 0 ? Math.max(c, l) / h * 100 : 0, _ = {
|
|
407
|
-
name: a,
|
|
408
|
-
inflow: c,
|
|
409
|
-
outflow: l,
|
|
410
|
-
from: u,
|
|
411
|
-
to: f,
|
|
412
|
-
percentOfTotal: te,
|
|
413
|
-
color: g[a] || "#000000"
|
|
414
|
-
};
|
|
415
|
-
W.value.events.datapointEnter && W.value.events.datapointEnter({
|
|
416
|
-
datapoint: _,
|
|
417
|
-
seriesIndex: t
|
|
418
|
-
}), Z.value = {
|
|
419
|
-
datapoint: _,
|
|
420
|
-
config: W.value,
|
|
421
|
-
seriesIndex: t,
|
|
422
|
-
series: J.value
|
|
423
|
-
}, st.value = !0;
|
|
424
|
-
let v = "", y = W.value.style.chart.tooltip.customFormat;
|
|
425
|
-
if (Zt.value = !1, n(y)) try {
|
|
426
|
-
let e = y({
|
|
427
|
-
datapoint: _,
|
|
428
|
-
series: J.value,
|
|
429
|
-
config: W.value
|
|
430
|
-
});
|
|
431
|
-
typeof e == "string" && (ct.value = e, Zt.value = !0);
|
|
432
|
-
} catch {
|
|
433
|
-
console.warn("Custom format cannot be applied.");
|
|
434
|
-
}
|
|
435
|
-
if (!Zt.value) {
|
|
436
|
-
let e = W.value.style.chart.tooltip.showPercentage ? `<div>${s({
|
|
437
|
-
p: W.value.style.chart.tooltip.translations.percentOfTotal,
|
|
438
|
-
v: _.percentOfTotal,
|
|
439
|
-
s: "%",
|
|
440
|
-
r: W.value.style.chart.tooltip.roundingPercentage
|
|
441
|
-
})}</div>` : "";
|
|
442
|
-
v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${W.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${_.color}">⏹</span>${_.name}${e}</div>`, _.from.length && (v += `<div>${W.value.style.chart.tooltip.translations.from}</div>`, _.from.forEach((e) => {
|
|
443
|
-
v += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(W.value.style.chart.nodes.labels.formatter, e.value, s({
|
|
444
|
-
p: W.value.style.chart.nodes.labels.prefix,
|
|
445
|
-
v: e.value,
|
|
446
|
-
s: W.value.style.chart.nodes.labels.suffix,
|
|
447
|
-
r: W.value.style.chart.nodes.labels.rounding
|
|
448
|
-
}))}</div>`;
|
|
449
|
-
})), _.to.length && (v += `<div style="margin-top:6px;">${W.value.style.chart.tooltip.translations.to}</div>`, _.to.forEach((e) => {
|
|
450
|
-
v += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(W.value.style.chart.nodes.labels.formatter, e.value, s({
|
|
451
|
-
p: W.value.style.chart.nodes.labels.prefix,
|
|
452
|
-
v: e.value,
|
|
453
|
-
s: W.value.style.chart.nodes.labels.suffix,
|
|
454
|
-
r: W.value.style.chart.nodes.labels.rounding
|
|
455
|
-
}))}</div>`;
|
|
456
|
-
})), ct.value = v;
|
|
457
|
-
}
|
|
458
|
-
r === "keyboard" && ye(() => {
|
|
459
|
-
en(e.id);
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
function nn(e) {
|
|
463
|
-
let t = Z.value;
|
|
464
|
-
W.value.events.datapointLeave && W.value.events.datapointLeave({
|
|
465
|
-
datapoint: t,
|
|
466
|
-
seriesIndex: e
|
|
467
|
-
}), !(bt.value === "keyboard" && H.value) && (Qt.value = null, Y.value = null, X.value = null, st.value = !1);
|
|
468
|
-
}
|
|
469
|
-
function rn(e) {
|
|
470
|
-
let t = Z.value;
|
|
471
|
-
W.value.events.datapointClick && W.value.events.datapointClick({
|
|
472
|
-
datapoint: t,
|
|
473
|
-
seriesIndex: e
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
let an = w(() => J.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
|
|
477
|
-
source: e,
|
|
478
|
-
target: t,
|
|
479
|
-
sourceColor: n,
|
|
480
|
-
targetColor: r,
|
|
481
|
-
value: i
|
|
482
|
-
})));
|
|
483
|
-
function on(e = null) {
|
|
484
|
-
ye(() => {
|
|
485
|
-
let n = an.value.map((e, t) => [
|
|
486
|
-
[e.source],
|
|
487
|
-
[e.target],
|
|
488
|
-
[e.value]
|
|
489
|
-
]), i = [
|
|
490
|
-
[W.value.style.chart.title.text],
|
|
491
|
-
[W.value.style.chart.title.subtitle.text],
|
|
492
|
-
[
|
|
493
|
-
[W.value.table.columnNames.source],
|
|
494
|
-
[W.value.table.columnNames.target],
|
|
495
|
-
[W.value.table.columnNames.value]
|
|
496
|
-
]
|
|
497
|
-
].concat(n), a = r(i);
|
|
498
|
-
e ? e(a) : t({
|
|
499
|
-
csvContent: a,
|
|
500
|
-
title: W.value.style.chart.title.text || "vue-ui-flow"
|
|
501
|
-
});
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
let sn = w(() => {
|
|
505
|
-
let e = [
|
|
506
|
-
W.value.table.columnNames.source,
|
|
507
|
-
W.value.table.columnNames.target,
|
|
508
|
-
W.value.table.columnNames.value
|
|
509
|
-
], t = an.value.map((e, t) => [
|
|
510
|
-
{
|
|
511
|
-
color: e.sourceColor,
|
|
512
|
-
name: e.source,
|
|
513
|
-
shape: "square"
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
color: e.targetColor,
|
|
517
|
-
name: e.target,
|
|
518
|
-
shape: "square"
|
|
519
|
-
},
|
|
520
|
-
s({
|
|
521
|
-
p: W.value.style.chart.nodes.labels.prefix,
|
|
522
|
-
v: e.value,
|
|
523
|
-
s: W.value.style.chart.nodes.labels.suffix,
|
|
524
|
-
r: W.value.style.chart.nodes.labels.rounding
|
|
525
|
-
})
|
|
526
|
-
]), n = {
|
|
527
|
-
th: {
|
|
528
|
-
backgroundColor: W.value.table.th.backgroundColor,
|
|
529
|
-
color: W.value.table.th.color,
|
|
530
|
-
outline: W.value.table.th.outline
|
|
531
|
-
},
|
|
532
|
-
td: {
|
|
533
|
-
backgroundColor: W.value.table.td.backgroundColor,
|
|
534
|
-
color: W.value.table.td.color,
|
|
535
|
-
outline: W.value.table.td.outline
|
|
536
|
-
},
|
|
537
|
-
breakpoint: W.value.table.responsiveBreakpoint
|
|
538
|
-
};
|
|
539
|
-
return {
|
|
540
|
-
colNames: [
|
|
541
|
-
W.value.table.columnNames.source,
|
|
542
|
-
W.value.table.columnNames.target,
|
|
543
|
-
W.value.table.columnNames.value
|
|
544
|
-
],
|
|
545
|
-
head: e,
|
|
546
|
-
body: t,
|
|
547
|
-
config: n
|
|
548
|
-
};
|
|
549
|
-
}), cn = w(() => ({
|
|
550
|
-
headers: sn.value?.colNames ?? [],
|
|
551
|
-
rows: sn.value?.body ?? []
|
|
552
|
-
})), ln = w(() => [...J.value.nodes].map((e, t) => ({
|
|
553
|
-
...e,
|
|
554
|
-
index: t,
|
|
555
|
-
centerX: e.x + Ht.value / 2,
|
|
556
|
-
centerY: u(e.absoluteY) + W.value.style.chart.padding.top + e.height / 2
|
|
557
|
-
})).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = w(() => {
|
|
558
|
-
let e = [];
|
|
559
|
-
return ln.value.forEach((t) => {
|
|
560
|
-
let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
|
|
561
|
-
n ? n.nodes.push(t) : e.push({
|
|
562
|
-
x: t.x,
|
|
563
|
-
nodes: [t]
|
|
564
|
-
});
|
|
565
|
-
}), e.forEach((e) => {
|
|
566
|
-
e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
|
|
567
|
-
}), e.sort((e, t) => e.x - t.x);
|
|
568
|
-
}), un = w(() => {
|
|
569
|
-
let e = /* @__PURE__ */ new Map();
|
|
570
|
-
return ln.value.forEach((t, n) => {
|
|
571
|
-
e.set(t.id, n);
|
|
572
|
-
}), e;
|
|
573
|
-
});
|
|
574
|
-
function dn() {
|
|
575
|
-
return J.value;
|
|
576
|
-
}
|
|
577
|
-
function fn() {
|
|
578
|
-
q.value.showTable = !q.value.showTable;
|
|
579
|
-
}
|
|
580
|
-
let pn = P(!1);
|
|
581
|
-
function mn() {
|
|
582
|
-
pn.value = !pn.value;
|
|
583
|
-
}
|
|
584
|
-
function hn() {
|
|
585
|
-
q.value.showTooltip = !q.value.showTooltip;
|
|
586
|
-
}
|
|
587
|
-
let gn = w(() => {
|
|
588
|
-
let e = new Set(J.value.nodes.map((e) => W.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
589
|
-
return Array.from(e).map((e) => ({
|
|
590
|
-
name: e,
|
|
591
|
-
color: W.value.nodeCategoryColors[e] || i[0],
|
|
592
|
-
shape: "square",
|
|
593
|
-
count: J.value.nodes.filter((t) => (W.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
594
|
-
})).map((e, t) => {
|
|
595
|
-
let n = $.value.includes(t);
|
|
596
|
-
return {
|
|
597
|
-
...e,
|
|
598
|
-
segregate: () => vn({
|
|
599
|
-
legend: e,
|
|
600
|
-
i: t
|
|
601
|
-
}),
|
|
602
|
-
isSegregated: n,
|
|
603
|
-
opacity: $.value.length ? n ? 1 : .5 : 1,
|
|
604
|
-
display: `${e.name} (${e.count})`
|
|
605
|
-
};
|
|
606
|
-
});
|
|
607
|
-
}), _n = w(() => gn.value.filter((e) => e.name !== "__uncategorized__")), $ = P([]);
|
|
608
|
-
function vn({ legend: e, i: t }) {
|
|
609
|
-
let n = e.name;
|
|
610
|
-
if (Y.value?.every((e) => W.value.nodeCategories[e] === n)) {
|
|
611
|
-
Y.value = null, X.value = null, $.value = [];
|
|
612
|
-
return;
|
|
613
|
-
}
|
|
614
|
-
$.value = [t], Y.value = J.value.nodes.filter((e) => W.value.nodeCategories[e.name] === n).map((e) => e.name), X.value = null;
|
|
615
|
-
}
|
|
616
|
-
let yn = w(() => ({
|
|
617
|
-
cy: "flow-legend",
|
|
618
|
-
backgroundColor: W.value.style.chart.legend.backgroundColor,
|
|
619
|
-
color: W.value.style.chart.legend.color,
|
|
620
|
-
fontSize: W.value.style.chart.legend.fontSize,
|
|
621
|
-
paddingBottom: W.value.style.chart.legend.paddingBottom,
|
|
622
|
-
fontWeight: W.value.style.chart.legend.bold ? "bold" : "normal"
|
|
623
|
-
}));
|
|
624
|
-
async function bn({ scale: e = 2 } = {}) {
|
|
625
|
-
if (!V.value) return;
|
|
626
|
-
let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await re({
|
|
627
|
-
domElement: V.value,
|
|
628
|
-
base64: !0,
|
|
629
|
-
img: !0,
|
|
630
|
-
scale: e
|
|
631
|
-
});
|
|
632
|
-
return {
|
|
633
|
-
imageUri: i,
|
|
634
|
-
base64: a,
|
|
635
|
-
title: W.value.style.chart.title.text,
|
|
636
|
-
width: t,
|
|
637
|
-
height: n,
|
|
638
|
-
aspectRatio: r
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
let xn = w(() => {
|
|
642
|
-
let e = W.value.table.useDialog && !W.value.table.show, t = q.value.showTable;
|
|
643
|
-
return {
|
|
644
|
-
component: e ? et : Ye,
|
|
645
|
-
title: `${W.value.style.chart.title.text}${W.value.style.chart.title.subtitle.text ? `: ${W.value.style.chart.title.subtitle.text}` : ""}`,
|
|
646
|
-
props: e ? {
|
|
647
|
-
backgroundColor: W.value.table.th.backgroundColor,
|
|
648
|
-
color: W.value.table.th.color,
|
|
649
|
-
headerColor: W.value.table.th.color,
|
|
650
|
-
headerBg: W.value.table.th.backgroundColor,
|
|
651
|
-
isFullscreen: U.value,
|
|
652
|
-
fullscreenParent: V.value,
|
|
653
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
654
|
-
isCursorPointer: G.value
|
|
655
|
-
} : {
|
|
656
|
-
hideDetails: !0,
|
|
657
|
-
config: {
|
|
658
|
-
open: t,
|
|
659
|
-
maxHeight: 1e4,
|
|
660
|
-
body: {
|
|
661
|
-
backgroundColor: W.value.style.chart.backgroundColor,
|
|
662
|
-
color: W.value.style.chart.color
|
|
663
|
-
},
|
|
664
|
-
head: {
|
|
665
|
-
backgroundColor: W.value.style.chart.backgroundColor,
|
|
666
|
-
color: W.value.style.chart.color
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
});
|
|
672
|
-
Te(() => q.value.showTable, (e) => {
|
|
673
|
-
W.value.table.show || (e && W.value.table.useDialog && ht.value ? ht.value.open() : "close" in ht.value && ht.value.close());
|
|
674
|
-
});
|
|
675
|
-
function Sn() {
|
|
676
|
-
q.value.showTable = !1, gt.value && gt.value.setTableIconState(!1);
|
|
677
|
-
}
|
|
678
|
-
let Cn = w(() => _n.value.map((e) => ({
|
|
679
|
-
...e,
|
|
680
|
-
name: e.display
|
|
681
|
-
}))), wn = w(() => W.value.style.chart.backgroundColor), Tn = w(() => W.value.style.chart.legend), En = w(() => W.value.style.chart.title), { isCallbackImaging: Dn, isCallbackSvg: On, generateSvg: kn, onGenerateImage: An } = C({
|
|
682
|
-
svg: K,
|
|
683
|
-
title: En,
|
|
684
|
-
legend: Tn,
|
|
685
|
-
legendItems: Cn,
|
|
686
|
-
backgroundColor: wn,
|
|
687
|
-
getSvgCallback: () => W.value.userOptions.callbacks.svg,
|
|
688
|
-
generateImage: zt
|
|
689
|
-
});
|
|
690
|
-
async function jn() {
|
|
691
|
-
if (it("copyAlt", {
|
|
692
|
-
config: W.value,
|
|
693
|
-
dataset: J.value
|
|
694
|
-
}), !W.value.userOptions.callbacks.altCopy) {
|
|
695
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
696
|
-
return;
|
|
697
|
-
}
|
|
698
|
-
await Promise.resolve(W.value.userOptions.callbacks.altCopy({
|
|
699
|
-
config: W.value,
|
|
700
|
-
dataset: J.value
|
|
701
|
-
}));
|
|
702
|
-
}
|
|
703
|
-
function Mn(e) {
|
|
704
|
-
return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
|
|
705
|
-
}
|
|
706
|
-
function Nn(e, t) {
|
|
707
|
-
let n = Q.value[e];
|
|
708
|
-
return n ? n.nodes.findIndex((e) => e.id === t) : -1;
|
|
709
|
-
}
|
|
710
|
-
function Pn(e, t) {
|
|
711
|
-
let n = Q.value[e];
|
|
712
|
-
if (!n || !n.nodes.length) return null;
|
|
713
|
-
let r = n.nodes[0], i = Math.abs(r.centerY - t);
|
|
714
|
-
for (let e = 1; e < n.nodes.length; e += 1) {
|
|
715
|
-
let a = n.nodes[e], o = Math.abs(a.centerY - t);
|
|
716
|
-
o < i && (r = a, i = o);
|
|
717
|
-
}
|
|
718
|
-
return r;
|
|
719
|
-
}
|
|
720
|
-
function Fn() {
|
|
721
|
-
vt.value = null, H.value = null, xt.value = !0;
|
|
722
|
-
}
|
|
723
|
-
function In() {
|
|
724
|
-
$t(), xt.value = !1;
|
|
725
|
-
}
|
|
726
|
-
function Ln(e) {
|
|
727
|
-
if (!K.value || pn.value || document.activeElement !== K.value || !ln.value.length) return;
|
|
728
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
729
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
730
|
-
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
731
|
-
$t();
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
if (a) {
|
|
735
|
-
if (vt.value === null) return;
|
|
736
|
-
rn(vt.value);
|
|
737
|
-
return;
|
|
738
|
-
}
|
|
739
|
-
if (H.value === null) {
|
|
740
|
-
let e = Q.value[0]?.nodes?.[0];
|
|
741
|
-
if (!e) return;
|
|
742
|
-
let t = un.value.get(e.id) ?? 0;
|
|
743
|
-
tn(e, t, "keyboard", t);
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
let s = un.value.get(H.value);
|
|
747
|
-
if (s === void 0) return;
|
|
748
|
-
let c = ln.value[s];
|
|
749
|
-
if (!c) return;
|
|
750
|
-
let l = Mn(c.id);
|
|
751
|
-
if (l < 0) return;
|
|
752
|
-
let u = null;
|
|
753
|
-
if (r || i) {
|
|
754
|
-
let e = Nn(l, c.id);
|
|
755
|
-
if (e < 0) return;
|
|
756
|
-
let t = Q.value[l];
|
|
757
|
-
if (!t?.nodes?.length) return;
|
|
758
|
-
let n = e + (i ? 1 : -1);
|
|
759
|
-
n < 0 && (n = t.nodes.length - 1), n >= t.nodes.length && (n = 0), u = t.nodes[n];
|
|
760
|
-
}
|
|
761
|
-
if (t || n) {
|
|
762
|
-
let e = l + (n ? 1 : -1);
|
|
763
|
-
e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Pn(e, c.centerY);
|
|
764
|
-
}
|
|
765
|
-
if (!u) return;
|
|
766
|
-
let d = un.value.get(u.id);
|
|
767
|
-
d !== void 0 && tn(u, d, "keyboard", d);
|
|
768
|
-
}
|
|
769
|
-
return ae({
|
|
770
|
-
getData: dn,
|
|
771
|
-
getImage: bn,
|
|
772
|
-
generateCsv: on,
|
|
773
|
-
generateImage: zt,
|
|
774
|
-
generateSvg: kn,
|
|
775
|
-
generatePdf: Rt,
|
|
776
|
-
toggleTable: fn,
|
|
777
|
-
toggleAnnotator: mn,
|
|
778
|
-
toggleTooltip: hn,
|
|
779
|
-
drillCategory: vn,
|
|
780
|
-
unselectNode: nn,
|
|
781
|
-
toggleFullscreen: Ct,
|
|
782
|
-
copyAlt: jn
|
|
783
|
-
}), (e, t) => (N(), D("div", {
|
|
784
|
-
ref_key: "flowChart",
|
|
785
|
-
ref: V,
|
|
786
|
-
class: be(`vue-data-ui-component vue-ui-flow ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
787
|
-
style: M(`font-family:${W.value.style.fontFamily};width:100%; text-align:center;background:${W.value.style.chart.backgroundColor}`),
|
|
788
|
-
id: `flow_${B.value}`,
|
|
789
|
-
onMouseenter: t[2] ||= () => L(jt)(!0),
|
|
790
|
-
onMouseleave: t[3] ||= () => {
|
|
791
|
-
L(jt)(!1), xt.value || $t();
|
|
792
|
-
}
|
|
793
|
-
}, [
|
|
794
|
-
O("div", {
|
|
795
|
-
id: `chart-instructions-${B.value}`,
|
|
796
|
-
class: "sr-only"
|
|
797
|
-
}, [O("p", null, I(W.value.a11y.translations.keyboardNavigation), 1)], 8, Oe),
|
|
798
|
-
cn.value?.rows?.length ? (N(), T(ce, {
|
|
799
|
-
key: 0,
|
|
800
|
-
uid: B.value,
|
|
801
|
-
head: cn.value.headers,
|
|
802
|
-
body: cn.value.rows,
|
|
803
|
-
notice: W.value.a11y.translations.tableAvailable,
|
|
804
|
-
caption: W.value.a11y.translations.tableCaption
|
|
805
|
-
}, null, 8, [
|
|
806
|
-
"uid",
|
|
807
|
-
"head",
|
|
808
|
-
"body",
|
|
809
|
-
"notice",
|
|
810
|
-
"caption"
|
|
811
|
-
])) : E("", !0),
|
|
812
|
-
W.value.userOptions.buttons.annotator ? (N(), T(L(Ze), {
|
|
813
|
-
key: 1,
|
|
814
|
-
svgRef: L(K),
|
|
815
|
-
backgroundColor: W.value.style.chart.backgroundColor,
|
|
816
|
-
color: W.value.style.chart.color,
|
|
817
|
-
active: pn.value,
|
|
818
|
-
palette: W.value.userOptions.annotatorPalette,
|
|
819
|
-
isCursorPointer: G.value,
|
|
820
|
-
onClose: mn
|
|
821
|
-
}, {
|
|
822
|
-
"annotator-action-close": R(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
823
|
-
"annotator-action-color": R(({ color: t }) => [F(e.$slots, "annotator-action-color", j(A({ color: t })), void 0, !0)]),
|
|
824
|
-
"annotator-action-draw": R(({ mode: t }) => [F(e.$slots, "annotator-action-draw", j(A({ mode: t })), void 0, !0)]),
|
|
825
|
-
"annotator-action-undo": R(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", j(A({ disabled: t })), void 0, !0)]),
|
|
826
|
-
"annotator-action-redo": R(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", j(A({ disabled: t })), void 0, !0)]),
|
|
827
|
-
"annotator-action-delete": R(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", j(A({ disabled: t })), void 0, !0)]),
|
|
828
|
-
_: 3
|
|
829
|
-
}, 8, [
|
|
830
|
-
"svgRef",
|
|
831
|
-
"backgroundColor",
|
|
832
|
-
"color",
|
|
833
|
-
"active",
|
|
834
|
-
"palette",
|
|
835
|
-
"isCursorPointer"
|
|
836
|
-
])) : E("", !0),
|
|
837
|
-
Bt.value ? (N(), D("div", ke, null, 512)) : E("", !0),
|
|
838
|
-
W.value.style.chart.title.text ? (N(), D("div", {
|
|
839
|
-
key: 3,
|
|
840
|
-
ref_key: "chartTitle",
|
|
841
|
-
ref: ut,
|
|
842
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
843
|
-
}, [(N(), T(ie, {
|
|
844
|
-
key: `title_${ot.value}`,
|
|
845
|
-
config: {
|
|
846
|
-
title: {
|
|
847
|
-
cy: "flow-title",
|
|
848
|
-
...W.value.style.chart.title
|
|
849
|
-
},
|
|
850
|
-
subtitle: {
|
|
851
|
-
cy: "flow-subtitle",
|
|
852
|
-
...W.value.style.chart.title.subtitle
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}, null, 8, ["config"]))], 512)) : E("", !0),
|
|
856
|
-
O("div", { id: `legend-top-${B.value}` }, null, 8, Ae),
|
|
857
|
-
W.value.userOptions.show && St.value && (L(Mt) || L(At)) ? (N(), T(L(Qe), {
|
|
858
|
-
ref_key: "userOptionsRef",
|
|
859
|
-
ref: gt,
|
|
860
|
-
key: `user_option_${at.value}`,
|
|
861
|
-
backgroundColor: W.value.style.chart.backgroundColor,
|
|
862
|
-
color: W.value.style.chart.color,
|
|
863
|
-
isPrinting: L(It),
|
|
864
|
-
isImaging: L(Lt),
|
|
865
|
-
uid: B.value,
|
|
866
|
-
hasPdf: W.value.userOptions.buttons.pdf,
|
|
867
|
-
hasXls: W.value.userOptions.buttons.csv,
|
|
868
|
-
hasImg: W.value.userOptions.buttons.img,
|
|
869
|
-
hasSvg: W.value.userOptions.buttons.svg,
|
|
870
|
-
hasTable: W.value.userOptions.buttons.table,
|
|
871
|
-
callbacks: W.value.userOptions.callbacks,
|
|
872
|
-
hasFullscreen: W.value.userOptions.buttons.fullscreen,
|
|
873
|
-
hasAltCopy: W.value.userOptions.buttons.altCopy,
|
|
874
|
-
isFullscreen: U.value,
|
|
875
|
-
titles: { ...W.value.userOptions.buttonTitles },
|
|
876
|
-
chartElement: V.value,
|
|
877
|
-
position: W.value.userOptions.position,
|
|
878
|
-
hasAnnotator: W.value.userOptions.buttons.annotator,
|
|
879
|
-
printScale: W.value.userOptions.print.scale,
|
|
880
|
-
isAnnotation: pn.value,
|
|
881
|
-
hasTooltip: W.value.style.chart.tooltip.show && W.value.userOptions.buttons.tooltip,
|
|
882
|
-
isTooltip: q.value.showTooltip,
|
|
883
|
-
tableDialog: W.value.table.useDialog,
|
|
884
|
-
isCursorPointer: G.value,
|
|
885
|
-
onToggleTooltip: hn,
|
|
886
|
-
onToggleFullscreen: Ct,
|
|
887
|
-
onGeneratePdf: L(Rt),
|
|
888
|
-
onGenerateCsv: on,
|
|
889
|
-
onGenerateImage: L(An),
|
|
890
|
-
onGenerateSvg: L(kn),
|
|
891
|
-
onToggleTable: fn,
|
|
892
|
-
onToggleAnnotator: mn,
|
|
893
|
-
onCopyAlt: jn,
|
|
894
|
-
style: M({ visibility: L(Mt) ? L(At) ? "visible" : "hidden" : "visible" })
|
|
895
|
-
}, he({ _: 2 }, [
|
|
896
|
-
e.$slots.menuIcon ? {
|
|
897
|
-
name: "menuIcon",
|
|
898
|
-
fn: R(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(A({
|
|
899
|
-
isOpen: t,
|
|
900
|
-
color: n
|
|
901
|
-
})), void 0, !0)]),
|
|
902
|
-
key: "0"
|
|
903
|
-
} : void 0,
|
|
904
|
-
e.$slots.optionTooltip ? {
|
|
905
|
-
name: "optionTooltip",
|
|
906
|
-
fn: R(() => [F(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
907
|
-
key: "1"
|
|
908
|
-
} : void 0,
|
|
909
|
-
e.$slots.optionPdf ? {
|
|
910
|
-
name: "optionPdf",
|
|
911
|
-
fn: R(() => [F(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
912
|
-
key: "2"
|
|
913
|
-
} : void 0,
|
|
914
|
-
e.$slots.optionCsv ? {
|
|
915
|
-
name: "optionCsv",
|
|
916
|
-
fn: R(() => [F(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
917
|
-
key: "3"
|
|
918
|
-
} : void 0,
|
|
919
|
-
e.$slots.optionImg ? {
|
|
920
|
-
name: "optionImg",
|
|
921
|
-
fn: R(() => [F(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
922
|
-
key: "4"
|
|
923
|
-
} : void 0,
|
|
924
|
-
e.$slots.optionSvg ? {
|
|
925
|
-
name: "optionSvg",
|
|
926
|
-
fn: R(() => [F(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
927
|
-
key: "5"
|
|
928
|
-
} : void 0,
|
|
929
|
-
e.$slots.optionTable ? {
|
|
930
|
-
name: "optionTable",
|
|
931
|
-
fn: R(() => [F(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
932
|
-
key: "6"
|
|
933
|
-
} : void 0,
|
|
934
|
-
e.$slots.optionFullscreen ? {
|
|
935
|
-
name: "optionFullscreen",
|
|
936
|
-
fn: R(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", j(A({
|
|
937
|
-
toggleFullscreen: t,
|
|
938
|
-
isFullscreen: n
|
|
939
|
-
})), void 0, !0)]),
|
|
940
|
-
key: "7"
|
|
941
|
-
} : void 0,
|
|
942
|
-
e.$slots.optionAnnotator ? {
|
|
943
|
-
name: "optionAnnotator",
|
|
944
|
-
fn: R(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", j(A({
|
|
945
|
-
toggleAnnotator: t,
|
|
946
|
-
isAnnotator: n
|
|
947
|
-
})), void 0, !0)]),
|
|
948
|
-
key: "8"
|
|
949
|
-
} : void 0,
|
|
950
|
-
e.$slots.optionAltCopy ? {
|
|
951
|
-
name: "optionAltCopy",
|
|
952
|
-
fn: R(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", j(A({ altCopy: t })), void 0, !0)]),
|
|
953
|
-
key: "9"
|
|
954
|
-
} : void 0,
|
|
955
|
-
e.$slots["custom-menu-before"] ? {
|
|
956
|
-
name: "custom-menu-before",
|
|
957
|
-
fn: R(() => [F(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
958
|
-
key: "10"
|
|
959
|
-
} : void 0,
|
|
960
|
-
e.$slots["custom-menu-after"] ? {
|
|
961
|
-
name: "custom-menu-after",
|
|
962
|
-
fn: R(() => [F(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
963
|
-
key: "11"
|
|
964
|
-
} : void 0
|
|
965
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.callbacks.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.printScale.isAnnotation.hasTooltip.isTooltip.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : E("", !0),
|
|
966
|
-
O("div", je, [(N(), D("svg", {
|
|
967
|
-
ref_key: "svgRef",
|
|
968
|
-
ref: K,
|
|
969
|
-
xmlns: L(h),
|
|
970
|
-
"aria-describedby": `chart-instructions-${B.value}`,
|
|
971
|
-
viewBox: `0 0 ${Yt.value.width} ${Yt.value.height}`,
|
|
972
|
-
class: be({
|
|
973
|
-
"vue-data-ui-fullscreen--on": U.value,
|
|
974
|
-
"vue-data-ui-fulscreen--off": !U.value
|
|
975
|
-
}),
|
|
976
|
-
style: M({
|
|
977
|
-
maxWidth: "100%",
|
|
978
|
-
overflow: "visible",
|
|
979
|
-
background: "transparent",
|
|
980
|
-
color: W.value.style.chart.color
|
|
981
|
-
}),
|
|
982
|
-
tabindex: "0",
|
|
983
|
-
onFocus: Fn,
|
|
984
|
-
onBlur: In,
|
|
985
|
-
onKeydown: Ln
|
|
986
|
-
}, [
|
|
987
|
-
_e(L($e)),
|
|
988
|
-
e.$slots["chart-background"] ? (N(), D("foreignObject", {
|
|
989
|
-
key: 0,
|
|
990
|
-
x: 0,
|
|
991
|
-
y: 0,
|
|
992
|
-
width: Yt.value.width,
|
|
993
|
-
height: Yt.value.height,
|
|
994
|
-
style: { pointerEvents: "none" }
|
|
995
|
-
}, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Ne)) : E("", !0),
|
|
996
|
-
O("defs", null, [(N(!0), D(pe, null, Se(J.value.links, (e, t) => (N(), D("linearGradient", {
|
|
997
|
-
id: e.id,
|
|
998
|
-
x1: "0%",
|
|
999
|
-
y1: "0%",
|
|
1000
|
-
x2: "100%",
|
|
1001
|
-
y2: "0%"
|
|
1002
|
-
}, [O("stop", {
|
|
1003
|
-
offset: "0%",
|
|
1004
|
-
"stop-color": e.sourceColor
|
|
1005
|
-
}, null, 8, Fe), O("stop", {
|
|
1006
|
-
offset: "100%",
|
|
1007
|
-
"stop-color": e.targetColor
|
|
1008
|
-
}, null, 8, Ie)], 8, Pe))), 256))]),
|
|
1009
|
-
(N(!0), D(pe, null, Se(J.value.links, (e) => (N(), D("path", {
|
|
1010
|
-
class: "vue-ui-flow-link",
|
|
1011
|
-
d: e.path,
|
|
1012
|
-
"stroke-linejoin": "round",
|
|
1013
|
-
"stroke-miterlimit": "1",
|
|
1014
|
-
fill: `url(#${e.id})`,
|
|
1015
|
-
stroke: W.value.style.chart.links.stroke,
|
|
1016
|
-
"stroke-width": W.value.style.chart.links.strokeWidth,
|
|
1017
|
-
style: M(`
|
|
1018
|
-
opacity:${Y.value ? Y.value.includes(e.source) && Y.value.includes(e.target) ? 1 : .3 : X.value ? [e.target, e.source].includes(X.value) ? 1 : .3 : W.value.style.chart.links.opacity}
|
|
1019
|
-
`)
|
|
1020
|
-
}, null, 12, Le))), 256)),
|
|
1021
|
-
(N(!0), D(pe, null, Se(J.value.nodes, (e, t) => (N(), D("rect", {
|
|
1022
|
-
"data-a11y-node-id": e.id,
|
|
1023
|
-
class: "vue-ui-flow-node",
|
|
1024
|
-
x: e.x,
|
|
1025
|
-
y: L(u)(e.absoluteY) + W.value.style.chart.padding.top,
|
|
1026
|
-
height: L(u)(e.height),
|
|
1027
|
-
width: Ht.value,
|
|
1028
|
-
fill: e.color,
|
|
1029
|
-
stroke: W.value.style.chart.nodes.stroke,
|
|
1030
|
-
"stroke-width": W.value.style.chart.nodes.strokeWidth,
|
|
1031
|
-
rx: W.value.style.chart.nodes.borderRadius,
|
|
1032
|
-
style: M({
|
|
1033
|
-
opacity: Y.value ? Y.value.includes(e.name) ? 1 : .3 : 1,
|
|
1034
|
-
outline: Qt.value !== null && Qt.value === e.id ? "2px solid currentColor" : void 0
|
|
1035
|
-
}),
|
|
1036
|
-
"aria-label": `${e.name}: ${L(d)(W.value.style.chart.nodes.labels.formatter, e.value, L(s)({
|
|
1037
|
-
p: W.value.style.chart.nodes.labels.prefix,
|
|
1038
|
-
v: e.value,
|
|
1039
|
-
s: W.value.style.chart.nodes.labels.suffix,
|
|
1040
|
-
r: W.value.style.chart.nodes.labels.rounding
|
|
1041
|
-
}))}`,
|
|
1042
|
-
onMouseenter: (n) => tn(e, t, "pointer", un.value.get(e.id)),
|
|
1043
|
-
onMouseleave: (e) => nn(t),
|
|
1044
|
-
onClick: (e) => rn(t)
|
|
1045
|
-
}, null, 44, Re))), 256)),
|
|
1046
|
-
W.value.style.chart.nodes.labels.show ? (N(), D("g", ze, [(N(!0), D(pe, null, Se(J.value.nodes, (e, t) => (N(), D("text", {
|
|
1047
|
-
x: e.x + Ht.value / 2,
|
|
1048
|
-
y: (W.value.style.chart.nodes.labels.showValue ? L(u)(e.absoluteY + e.height / 2 - W.value.style.chart.nodes.labels.fontSize / 4) : e.absoluteY + e.height / 2 + W.value.style.chart.nodes.labels.fontSize / 3) + W.value.style.chart.padding.top,
|
|
1049
|
-
"font-size": W.value.style.chart.nodes.labels.fontSize,
|
|
1050
|
-
fill: L(m)(e.color),
|
|
1051
|
-
"text-anchor": "middle",
|
|
1052
|
-
style: M(`pointer-events: none; opacity:${Y.value ? +!!Y.value.includes(e.name) : 1}`)
|
|
1053
|
-
}, I(W.value.style.chart.nodes.labels.abbreviation.use ? L(f)({
|
|
1054
|
-
source: e.name,
|
|
1055
|
-
length: W.value.style.chart.nodes.labels.abbreviation.length
|
|
1056
|
-
}) : e.name), 13, Be))), 256)), W.value.style.chart.nodes.labels.showValue ? (N(!0), D(pe, { key: 0 }, Se(J.value.nodes, (e, t) => (N(), D("text", {
|
|
1057
|
-
x: e.x + Ht.value / 2,
|
|
1058
|
-
y: L(u)(e.absoluteY + e.height / 2 + W.value.style.chart.nodes.labels.fontSize / 1.3) + W.value.style.chart.padding.top,
|
|
1059
|
-
"font-size": W.value.style.chart.nodes.labels.fontSize,
|
|
1060
|
-
fill: L(m)(e.color),
|
|
1061
|
-
"text-anchor": "middle",
|
|
1062
|
-
style: M(`pointer-events: none; opacity:${Y.value ? +!!Y.value.includes(e.name) : 1}`)
|
|
1063
|
-
}, I(L(d)(W.value.style.chart.nodes.labels.formatter, e.value, L(s)({
|
|
1064
|
-
p: W.value.style.chart.nodes.labels.prefix,
|
|
1065
|
-
v: e.value,
|
|
1066
|
-
s: W.value.style.chart.nodes.labels.suffix,
|
|
1067
|
-
r: W.value.style.chart.nodes.labels.rounding
|
|
1068
|
-
}), {
|
|
1069
|
-
datapoint: e,
|
|
1070
|
-
seriesIndex: t
|
|
1071
|
-
})), 13, Ve))), 256)) : E("", !0)])) : E("", !0),
|
|
1072
|
-
F(e.$slots, "svg", { svg: {
|
|
1073
|
-
...Yt.value,
|
|
1074
|
-
isPrintingImg: L(It) || L(Lt) || L(Dn),
|
|
1075
|
-
isPrintingSvg: L(On)
|
|
1076
|
-
} }, void 0, !0)
|
|
1077
|
-
], 46, Me)), e.$slots.hint ? (N(), D("div", He, [F(e.$slots, "hint", j(A({
|
|
1078
|
-
hint: W.value.a11y.translations.keyboardNavigation,
|
|
1079
|
-
isVisible: xt.value
|
|
1080
|
-
})), void 0, !0)])) : E("", !0)]),
|
|
1081
|
-
e.$slots.watermark ? (N(), D("div", Ue, [F(e.$slots, "watermark", j(A({ isPrinting: L(It) || L(Lt) || L(Dn) || L(On) })), void 0, !0)])) : E("", !0),
|
|
1082
|
-
O("div", { id: `legend-bottom-${B.value}` }, null, 8, We),
|
|
1083
|
-
mt.value && (W.value.style.chart.legend.show || e.$slots.legend) ? (N(), T(me, {
|
|
1084
|
-
key: 6,
|
|
1085
|
-
to: W.value.style.chart.legend.position === "top" ? `#legend-top-${B.value}` : `#legend-bottom-${B.value}`
|
|
1086
|
-
}, [O("div", {
|
|
1087
|
-
ref_key: "chartLegend",
|
|
1088
|
-
ref: lt
|
|
1089
|
-
}, [F(e.$slots, "legend", { legend: gn.value }, () => [W.value.style.chart.legend.show && _n.value.length ? (N(), T(de, {
|
|
1090
|
-
key: 0,
|
|
1091
|
-
legendSet: _n.value,
|
|
1092
|
-
config: yn.value,
|
|
1093
|
-
isCursorPointer: G.value,
|
|
1094
|
-
onClickMarker: t[0] ||= (e) => vn(e)
|
|
1095
|
-
}, {
|
|
1096
|
-
item: R(({ legend: e, index: t }) => [L(Tt) ? E("", !0) : (N(), D("div", {
|
|
1097
|
-
key: 0,
|
|
1098
|
-
onClick: (t) => e.segregate(),
|
|
1099
|
-
style: M(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
|
|
1100
|
-
}, I(e.display), 13, Ge))]),
|
|
1101
|
-
_: 1
|
|
1102
|
-
}, 8, [
|
|
1103
|
-
"legendSet",
|
|
1104
|
-
"config",
|
|
1105
|
-
"isCursorPointer"
|
|
1106
|
-
])) : E("", !0)], !0)], 512)], 8, ["to"])) : E("", !0),
|
|
1107
|
-
e.$slots.source ? (N(), D("div", {
|
|
1108
|
-
key: 7,
|
|
1109
|
-
ref_key: "source",
|
|
1110
|
-
ref: dt,
|
|
1111
|
-
dir: "auto"
|
|
1112
|
-
}, [F(e.$slots, "source", {}, void 0, !0)], 512)) : E("", !0),
|
|
1113
|
-
_e(L(qe), {
|
|
1114
|
-
ref_key: "tooltip",
|
|
1115
|
-
ref: _t,
|
|
1116
|
-
teleportTo: W.value.style.chart.tooltip.teleportTo,
|
|
1117
|
-
show: q.value.showTooltip && st.value,
|
|
1118
|
-
backgroundColor: W.value.style.chart.tooltip.backgroundColor,
|
|
1119
|
-
color: W.value.style.chart.tooltip.color,
|
|
1120
|
-
fontSize: W.value.style.chart.tooltip.fontSize,
|
|
1121
|
-
borderRadius: W.value.style.chart.tooltip.borderRadius,
|
|
1122
|
-
borderColor: W.value.style.chart.tooltip.borderColor,
|
|
1123
|
-
borderWidth: W.value.style.chart.tooltip.borderWidth,
|
|
1124
|
-
backgroundOpacity: W.value.style.chart.tooltip.backgroundOpacity,
|
|
1125
|
-
position: W.value.style.chart.tooltip.position,
|
|
1126
|
-
offsetX: W.value.style.chart.tooltip.offsetX,
|
|
1127
|
-
offsetY: W.value.style.chart.tooltip.offsetY,
|
|
1128
|
-
parent: V.value,
|
|
1129
|
-
content: ct.value,
|
|
1130
|
-
isCustom: Zt.value,
|
|
1131
|
-
isFullscreen: U.value,
|
|
1132
|
-
smooth: W.value.style.chart.tooltip.smooth,
|
|
1133
|
-
backdropFilter: W.value.style.chart.tooltip.backdropFilter,
|
|
1134
|
-
smoothForce: W.value.style.chart.tooltip.smoothForce,
|
|
1135
|
-
smoothSnapThreshold: W.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1136
|
-
isA11yMode: bt.value === "keyboard",
|
|
1137
|
-
a11yPosition: yt.value
|
|
1138
|
-
}, {
|
|
1139
|
-
"tooltip-before": R(() => [F(e.$slots, "tooltip-before", j(A({ ...Z.value })), void 0, !0)]),
|
|
1140
|
-
tooltip: R(() => [F(e.$slots, "tooltip", j(A({ ...Z.value })), void 0, !0)]),
|
|
1141
|
-
"tooltip-after": R(() => [F(e.$slots, "tooltip-after", j(A({ ...Z.value })), void 0, !0)]),
|
|
1142
|
-
_: 3
|
|
1143
|
-
}, 8, [
|
|
1144
|
-
"teleportTo",
|
|
1145
|
-
"show",
|
|
1146
|
-
"backgroundColor",
|
|
1147
|
-
"color",
|
|
1148
|
-
"fontSize",
|
|
1149
|
-
"borderRadius",
|
|
1150
|
-
"borderColor",
|
|
1151
|
-
"borderWidth",
|
|
1152
|
-
"backgroundOpacity",
|
|
1153
|
-
"position",
|
|
1154
|
-
"offsetX",
|
|
1155
|
-
"offsetY",
|
|
1156
|
-
"parent",
|
|
1157
|
-
"content",
|
|
1158
|
-
"isCustom",
|
|
1159
|
-
"isFullscreen",
|
|
1160
|
-
"smooth",
|
|
1161
|
-
"backdropFilter",
|
|
1162
|
-
"smoothForce",
|
|
1163
|
-
"smoothSnapThreshold",
|
|
1164
|
-
"isA11yMode",
|
|
1165
|
-
"a11yPosition"
|
|
1166
|
-
]),
|
|
1167
|
-
St.value && W.value.userOptions.buttons.table ? (N(), T(Ce(xn.value.component), ve({ key: 8 }, xn.value.props, {
|
|
1168
|
-
ref_key: "tableUnit",
|
|
1169
|
-
ref: ht,
|
|
1170
|
-
onClose: Sn
|
|
1171
|
-
}), he({
|
|
1172
|
-
content: R(() => [_e(L(Xe), {
|
|
1173
|
-
colNames: sn.value.colNames,
|
|
1174
|
-
head: sn.value.head,
|
|
1175
|
-
body: sn.value.body,
|
|
1176
|
-
config: sn.value.config,
|
|
1177
|
-
title: W.value.table.useDialog ? "" : xn.value.title,
|
|
1178
|
-
withCloseButton: !W.value.table.useDialog,
|
|
1179
|
-
isCursorPointer: G.value,
|
|
1180
|
-
onClose: Sn
|
|
1181
|
-
}, {
|
|
1182
|
-
th: R(({ th: e }) => [O("div", Ke, I(e), 1)]),
|
|
1183
|
-
td: R(({ td: e }) => [ge(I(e.name || e), 1)]),
|
|
1184
|
-
_: 1
|
|
1185
|
-
}, 8, [
|
|
1186
|
-
"colNames",
|
|
1187
|
-
"head",
|
|
1188
|
-
"body",
|
|
1189
|
-
"config",
|
|
1190
|
-
"title",
|
|
1191
|
-
"withCloseButton",
|
|
1192
|
-
"isCursorPointer"
|
|
1193
|
-
])]),
|
|
1194
|
-
_: 2
|
|
1195
|
-
}, [W.value.table.useDialog ? {
|
|
1196
|
-
name: "title",
|
|
1197
|
-
fn: R(() => [ge(I(xn.value.title), 1)]),
|
|
1198
|
-
key: "0"
|
|
1199
|
-
} : void 0, W.value.table.useDialog ? {
|
|
1200
|
-
name: "actions",
|
|
1201
|
-
fn: R(() => [O("button", {
|
|
1202
|
-
tabindex: "0",
|
|
1203
|
-
class: "vue-ui-user-options-button",
|
|
1204
|
-
onClick: t[1] ||= (e) => on(W.value.userOptions.callbacks.csv),
|
|
1205
|
-
style: M({ cursor: G.value ? "pointer" : "default" })
|
|
1206
|
-
}, [_e(L(Je), {
|
|
1207
|
-
name: "fileCsv",
|
|
1208
|
-
stroke: xn.value.props.color
|
|
1209
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1210
|
-
key: "1"
|
|
1211
|
-
} : void 0]), 1040)) : E("", !0),
|
|
1212
|
-
F(e.$slots, "skeleton", {}, () => [L(Tt) ? (N(), T(x, { key: 0 })) : E("", !0)], !0)
|
|
1213
|
-
], 46, De));
|
|
1214
|
-
}
|
|
1215
|
-
}, [["__scopeId", "data-v-0f4129f7"]]);
|
|
1216
|
-
//#endregion
|
|
1217
|
-
export { Ee as n, qe as t };
|