vue-data-ui 3.22.6 → 3.22.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/{Arrow-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.js} +2 -2
- package/dist/components/arrow.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-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-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/{dom-to-png-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/exposedLib-Be0ifkti.js +19 -0
- package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
- package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
- 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/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
- package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
- package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
- package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
- package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
- package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
- package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
- package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
- package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
- package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
- package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
- package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
- package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
- package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
- package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
- package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
- package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
- package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
- package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
- package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
- package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
- package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
- package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Gt as t, Ot as n, Q as r, S as i, Ut as a, W as o, X as s, b as c, i as l, jt as u, n as d, q as f, r as p, t as m, v as h, vt as g, w as _ } from "./lib-EAmk-PgA.js";
|
|
3
3
|
import { t as ee } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as v } from "./usePrinter-
|
|
4
|
+
import { t as v } from "./usePrinter-DnGzpp6Q.js";
|
|
5
5
|
import { n as y, t as b } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as x } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as S } from "./useNestedProp-
|
|
7
|
+
import { t as S } from "./useNestedProp-D8XqxgOU.js";
|
|
8
8
|
import { t as te } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ne } from "./img-
|
|
10
|
-
import { n as C } from "./Title-
|
|
9
|
+
import { t as ne } from "./img-B_abIg0o.js";
|
|
10
|
+
import { n as C } from "./Title-PiTKr6sp.js";
|
|
11
11
|
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as ie } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
14
14
|
import { t as oe } from "./A11yDataTable-DdRsVULz.js";
|
|
15
15
|
import { t as se } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
16
|
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as le } from "./Legend-
|
|
17
|
+
import { t as le } from "./Legend-kAr7Vqqu.js";
|
|
18
18
|
import { t as ue } from "./vue_ui_flow-BewZjjKG.js";
|
|
19
19
|
import { Fragment as de, Teleport as fe, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as pe, createTextVNode as me, createVNode as he, defineAsyncComponent as k, guardReactiveProps as A, mergeProps as ge, nextTick as _e, normalizeClass as ve, normalizeProps as j, normalizeStyle as M, onMounted as ye, openBlock as N, ref as P, renderList as be, renderSlot as F, resolveDynamicComponent as xe, toDisplayString as Se, toRefs as Ce, unref as I, watch as we, withCtx as L } from "vue";
|
|
20
20
|
//#region src/components/vue-ui-flow.vue
|
|
@@ -87,7 +87,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["copyAlt"],
|
|
89
89
|
setup(e, { expose: re, emit: Te }) {
|
|
90
|
-
let Ke = k(() => import("./Tooltip-
|
|
90
|
+
let Ke = k(() => import("./Tooltip-B8yYfISA.js")), qe = k(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), Je = k(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), Ye = k(() => import("./DataTable-CVF7DoZn.js")), Xe = k(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Ze = k(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), Qe = k(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), $e = k(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_flow: et } = ee(), { isThemeValid: tt, warnInvalidTheme: nt } = te(), R = e, rt = Te, z = P(o()), B = P(null), it = P(0), at = P(0), ot = P(!1), st = P(""), ct = P(null), lt = P(null), ut = P(null), dt = P(null), ft = P(null), pt = P(!1), mt = P(null), ht = P(null), gt = P(null), _t = P(!1), vt = P(!1), yt = P(null), V = P(null), bt = P({
|
|
91
91
|
x: 0,
|
|
92
92
|
y: 0
|
|
93
93
|
}), xt = P("pointer"), St = P(!1), Ct = w(() => !!R.dataset && R.dataset.length);
|
|
@@ -98,7 +98,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
98
98
|
function wt(e) {
|
|
99
99
|
H.value = e, it.value += 1;
|
|
100
100
|
}
|
|
101
|
-
let U = P(Pt()), W = w(() => U.value.userOptions.useCursorPointer), Tt = w(() =>
|
|
101
|
+
let U = P(Pt()), W = w(() => U.value.userOptions.useCursorPointer), Tt = w(() => t({
|
|
102
102
|
defaultConfig: {
|
|
103
103
|
userOptions: { show: !1 },
|
|
104
104
|
nodeCategories: {
|
|
@@ -163,13 +163,13 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
163
163
|
"#AAAAAA"
|
|
164
164
|
]
|
|
165
165
|
],
|
|
166
|
-
skeletonConfig:
|
|
166
|
+
skeletonConfig: t({
|
|
167
167
|
defaultConfig: U.value,
|
|
168
168
|
userConfig: Tt.value
|
|
169
169
|
})
|
|
170
170
|
}), kt = w(() => !!U.value.debug);
|
|
171
171
|
function At() {
|
|
172
|
-
if (n(R.dataset) && (
|
|
172
|
+
if (n(R.dataset) && (r({
|
|
173
173
|
componentName: "VueUiFlow",
|
|
174
174
|
type: "dataset",
|
|
175
175
|
debug: kt.value
|
|
@@ -193,23 +193,23 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
193
193
|
let e = S({
|
|
194
194
|
userConfig: R.config,
|
|
195
195
|
defaultConfig: et
|
|
196
|
-
}),
|
|
197
|
-
if (
|
|
196
|
+
}), t = e, n = e.theme;
|
|
197
|
+
if (n) if (!tt.value(e)) nt(e), t = e;
|
|
198
198
|
else {
|
|
199
|
-
let
|
|
200
|
-
userConfig: ue[
|
|
199
|
+
let r = S({
|
|
200
|
+
userConfig: ue[n] || R.config,
|
|
201
201
|
defaultConfig: e
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
t = {
|
|
204
204
|
...S({
|
|
205
205
|
userConfig: R.config,
|
|
206
|
-
defaultConfig:
|
|
206
|
+
defaultConfig: r
|
|
207
207
|
}),
|
|
208
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
208
|
+
customPalette: e.customPalette.length ? e.customPalette : a[n] || u
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
else
|
|
212
|
-
return
|
|
211
|
+
else t = e;
|
|
212
|
+
return t.nodeCategories = R.config.nodeCategories || {}, t.nodeCategoryColors = R.config.nodeCategoryColors || {}, t;
|
|
213
213
|
}
|
|
214
214
|
let Ft = P(U.value.style.chart.width), It = P(U.value.style.chart.height);
|
|
215
215
|
we(() => R.config, (e) => {
|
|
@@ -221,7 +221,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
221
221
|
elementId: `flow_${z.value}`,
|
|
222
222
|
fileName: U.value.style.chart.title.text || "vue-ui-flow",
|
|
223
223
|
options: U.value.userOptions.print
|
|
224
|
-
}), Vt = w(() => U.value.userOptions.show && !U.value.style.chart.title.text), Ht = w(() =>
|
|
224
|
+
}), Vt = w(() => U.value.userOptions.show && !U.value.style.chart.title.text), Ht = w(() => i(U.value.customPalette)), Ut = w(() => U.value.style.chart.nodes.width), K = P({
|
|
225
225
|
showTable: U.value.table.show,
|
|
226
226
|
showTooltip: U.value.style.chart.tooltip.show
|
|
227
227
|
});
|
|
@@ -231,49 +231,49 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
231
231
|
showTooltip: U.value.style.chart.tooltip.show
|
|
232
232
|
};
|
|
233
233
|
}, { immediate: !0 });
|
|
234
|
-
let Wt = w(() => !Dt.value || !Dt.value.length ? [] : Dt.value.map((e,
|
|
234
|
+
let Wt = w(() => !Dt.value || !Dt.value.length ? [] : Dt.value.map((e, t) => [
|
|
235
235
|
e[0],
|
|
236
236
|
e[1],
|
|
237
|
-
|
|
238
|
-
e[3] ?
|
|
237
|
+
h(e[2]),
|
|
238
|
+
e[3] ? c(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || u[t] || u[t % u.length]
|
|
239
239
|
]));
|
|
240
240
|
function Gt(e) {
|
|
241
|
-
let
|
|
242
|
-
function
|
|
243
|
-
|
|
241
|
+
let t = {}, n = {};
|
|
242
|
+
function r(e, r) {
|
|
243
|
+
t[e] || (t[e] = {
|
|
244
244
|
level: null,
|
|
245
245
|
inflow: 0,
|
|
246
246
|
outflow: 0,
|
|
247
247
|
children: [],
|
|
248
248
|
color: null,
|
|
249
249
|
uid: o()
|
|
250
|
-
}),
|
|
250
|
+
}), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
|
|
251
251
|
}
|
|
252
|
-
e.forEach(([e,
|
|
253
|
-
let a =
|
|
254
|
-
|
|
255
|
-
target:
|
|
256
|
-
value:
|
|
257
|
-
}),
|
|
252
|
+
e.forEach(([e, n, i]) => {
|
|
253
|
+
let a = t[e]?.level ?? 0, o = a + 1;
|
|
254
|
+
r(e, a), r(n, o), t[e].children.push({
|
|
255
|
+
target: n,
|
|
256
|
+
value: i
|
|
257
|
+
}), t[e].outflow += i, t[n].inflow += i;
|
|
258
258
|
});
|
|
259
|
-
let
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
let i = new Set(e.map(([e]) => e)), a = new Set(e.map(([, e]) => e)), s = Array.from(i).filter((e) => !a.has(e)), c = {};
|
|
260
|
+
s.forEach((e, t) => {
|
|
261
|
+
c[e] = Ht.value[t] || u[t % u.length];
|
|
262
262
|
});
|
|
263
|
-
let
|
|
263
|
+
let l = {};
|
|
264
264
|
e.forEach(([e, t, n, r]) => {
|
|
265
|
-
r && (
|
|
266
|
-
}), Object.keys(
|
|
267
|
-
let
|
|
268
|
-
|
|
269
|
-
}), Object.keys(
|
|
270
|
-
|
|
265
|
+
r && (l[e] = r, l[t] = r);
|
|
266
|
+
}), Object.keys(t).forEach((e, n) => {
|
|
267
|
+
let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
268
|
+
t[e].color = l[e] || i || (s.includes(e) ? c[e] : null) || u[n % u.length];
|
|
269
|
+
}), Object.keys(t).forEach((e) => {
|
|
270
|
+
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
271
271
|
});
|
|
272
|
-
let d = Jt.value, f = Yt.value.width, p = Yt.value.height, m = Object.keys(
|
|
272
|
+
let d = Jt.value, f = Yt.value.width, p = Yt.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), g = m.length || 1, _ = g > 1 ? f / (g - 1) : 0, ee = Number(Ut.value), v = Number(U.value.style.chart.nodes.gapPx ?? U.value.style.chart.nodes.gap ?? 8), y = Number(U.value.style.chart.nodes.minHeight || 0);
|
|
273
273
|
function b(e) {
|
|
274
|
-
let
|
|
274
|
+
let r = n[e], i = r.length;
|
|
275
275
|
if (!i) return Infinity;
|
|
276
|
-
let a = Math.max(0, (i - 1) * v), o = Math.max(0, p - a), s = Math.min(y, i ? o / i : 0), c = 0, l =
|
|
276
|
+
let a = Math.max(0, (i - 1) * v), o = Math.max(0, p - a), s = Math.min(y, i ? o / i : 0), c = 0, l = r.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
|
|
277
277
|
for (let e = 0; e < 12; e += 1) {
|
|
278
278
|
let e = u > 0 ? (o - c) / u : 0, t = [];
|
|
279
279
|
for (let n = 0; n < l.length; n += 1) {
|
|
@@ -288,40 +288,40 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
288
288
|
}
|
|
289
289
|
let x = m.map(b), S = x.length ? Math.min(...x) : 0, te = {};
|
|
290
290
|
m.forEach((e) => {
|
|
291
|
-
let
|
|
292
|
-
|
|
291
|
+
let r = n[e], i = r.length, a = Math.max(0, (i - 1) * v), s = Math.max(0, p - a), c = Math.min(y, i ? s / i : 0), l = r.map((e) => Math.max(c, (t[e].value || 0) * S)), u = l.reduce((e, t) => e + t, 0) + a, f = Math.max(0, (p - u) / 2);
|
|
292
|
+
r.forEach((n, r) => {
|
|
293
293
|
let a = l[r], s = d.left + e * _, c = f;
|
|
294
|
-
te[
|
|
294
|
+
te[n] = {
|
|
295
295
|
x: s,
|
|
296
296
|
y: c,
|
|
297
297
|
absoluteY: c,
|
|
298
298
|
height: a,
|
|
299
299
|
i: r,
|
|
300
|
-
color: n
|
|
301
|
-
value: n
|
|
300
|
+
color: t[n].color,
|
|
301
|
+
value: t[n].value,
|
|
302
302
|
id: o()
|
|
303
303
|
}, f += a, r < i - 1 && (f += v);
|
|
304
304
|
});
|
|
305
305
|
});
|
|
306
306
|
let ne = [], C = d.top, re = {}, ie = {};
|
|
307
|
-
Object.keys(
|
|
307
|
+
Object.keys(t).forEach((e) => {
|
|
308
308
|
re[e] = te[e]?.y ?? 0, ie[e] = 0;
|
|
309
309
|
});
|
|
310
310
|
let ae = !!U.value.style.chart.links.smooth, oe = .5;
|
|
311
311
|
return m.forEach((e) => {
|
|
312
|
-
|
|
313
|
-
let
|
|
314
|
-
if (!
|
|
312
|
+
n[e].forEach((e) => {
|
|
313
|
+
let n = t[e], r = te[e];
|
|
314
|
+
if (!n.children || !n.children.length) return;
|
|
315
315
|
let i = r.y;
|
|
316
|
-
|
|
317
|
-
let c = te[a], l =
|
|
316
|
+
n.children.forEach(({ target: a, value: s }) => {
|
|
317
|
+
let c = te[a], l = t[a], u = n.outflow > 0 ? s / n.outflow : 0, d = l.inflow > 0 ? s / l.inflow : 0, f = h(i + C), p = h(i + u * r.height + C), m = re[a], g = m + d * c.height;
|
|
318
318
|
ie[a] += s;
|
|
319
319
|
let _ = l.inflow > 0 && ie[a] >= l.inflow - 1e-6, v = c.y + c.height;
|
|
320
|
-
(_ ||
|
|
321
|
-
let y =
|
|
320
|
+
(_ || g > v - .25) && (g = v);
|
|
321
|
+
let y = h(m + C), b = h(g + C), x = h(r.x + ee), S = h(c.x), se;
|
|
322
322
|
if (!ae || S <= x) se = `M ${x} ${f} L ${x} ${p} L ${S} ${b} L ${S} ${y} Z`;
|
|
323
323
|
else {
|
|
324
|
-
let e = S - x, t =
|
|
324
|
+
let e = S - x, t = h(x + e * oe), n = h(S - e * oe), r = f, i = y, a = p, o = b;
|
|
325
325
|
se = `M ${x} ${r} C ${t} ${r}, ${n} ${i}, ${S} ${i} L ${S} ${o} C ${n} ${o}, ${t} ${a}, ${x} ${a} Z`;
|
|
326
326
|
}
|
|
327
327
|
ne.push({
|
|
@@ -330,9 +330,9 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
330
330
|
target: a,
|
|
331
331
|
path: se,
|
|
332
332
|
value: s,
|
|
333
|
-
sourceColor:
|
|
334
|
-
targetColor:
|
|
335
|
-
}), i = p - C, re[a] =
|
|
333
|
+
sourceColor: n.color,
|
|
334
|
+
targetColor: t[a].color
|
|
335
|
+
}), i = p - C, re[a] = g;
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
338
|
}), {
|
|
@@ -378,7 +378,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
378
378
|
}
|
|
379
379
|
function nn(e, t, n = "pointer", r = null) {
|
|
380
380
|
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = n, yt.value = r, V.value = e.id;
|
|
381
|
-
let i = e.name, a = Wt.value, o = 0, s = 0, c = [], u = [],
|
|
381
|
+
let i = e.name, a = Wt.value, o = 0, s = 0, c = [], u = [], d = new Set(a.map(([e]) => e)), p = new Set(a.map(([, e]) => e)), m = Array.from(d).filter((e) => !p.has(e)), h = a.filter(([e]) => m.includes(e)).reduce((e, [t, n, r]) => e + r, 0), _ = {};
|
|
382
382
|
q.value.nodes.forEach((e) => {
|
|
383
383
|
_[e.name] = e.color;
|
|
384
384
|
}), a.forEach(([e, t, n]) => {
|
|
@@ -392,7 +392,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
392
392
|
color: _[t]
|
|
393
393
|
}));
|
|
394
394
|
});
|
|
395
|
-
let ee =
|
|
395
|
+
let ee = h > 0 ? Math.max(o, s) / h * 100 : 0, v = {
|
|
396
396
|
name: i,
|
|
397
397
|
inflow: o,
|
|
398
398
|
outflow: s,
|
|
@@ -411,7 +411,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
411
411
|
series: q.value
|
|
412
412
|
}, ot.value = !0;
|
|
413
413
|
let y = "", b = U.value.style.chart.tooltip.customFormat;
|
|
414
|
-
if (Qt.value = !1,
|
|
414
|
+
if (Qt.value = !1, g(b)) try {
|
|
415
415
|
let e = b({
|
|
416
416
|
datapoint: v,
|
|
417
417
|
series: q.value,
|
|
@@ -422,21 +422,21 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
422
422
|
console.warn("Custom format cannot be applied.");
|
|
423
423
|
}
|
|
424
424
|
if (!Qt.value) {
|
|
425
|
-
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${
|
|
425
|
+
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${f({
|
|
426
426
|
p: U.value.style.chart.tooltip.translations.percentOfTotal,
|
|
427
427
|
v: v.percentOfTotal,
|
|
428
428
|
s: "%",
|
|
429
429
|
r: U.value.style.chart.tooltip.roundingPercentage
|
|
430
430
|
})}</div>` : "";
|
|
431
431
|
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${U.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${v.color}">⏹</span>${v.name}${e}</div>`, v.from.length && (y += `<div>${U.value.style.chart.tooltip.translations.from}</div>`, v.from.forEach((e) => {
|
|
432
|
-
y += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${
|
|
432
|
+
y += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, f({
|
|
433
433
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
434
434
|
v: e.value,
|
|
435
435
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
436
436
|
r: U.value.style.chart.nodes.labels.rounding
|
|
437
437
|
}))}</div>`;
|
|
438
438
|
})), v.to.length && (y += `<div style="margin-top:6px;">${U.value.style.chart.tooltip.translations.to}</div>`, v.to.forEach((e) => {
|
|
439
|
-
y += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${
|
|
439
|
+
y += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, f({
|
|
440
440
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
441
441
|
v: e.value,
|
|
442
442
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -484,7 +484,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
484
484
|
[U.value.table.columnNames.value]
|
|
485
485
|
]
|
|
486
486
|
].concat(t));
|
|
487
|
-
e ? e(n) :
|
|
487
|
+
e ? e(n) : s({
|
|
488
488
|
csvContent: n,
|
|
489
489
|
title: U.value.style.chart.title.text || "vue-ui-flow"
|
|
490
490
|
});
|
|
@@ -506,7 +506,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
506
506
|
name: e.target,
|
|
507
507
|
shape: "square"
|
|
508
508
|
},
|
|
509
|
-
|
|
509
|
+
f({
|
|
510
510
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
511
511
|
v: e.value,
|
|
512
512
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -542,7 +542,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
542
542
|
...e,
|
|
543
543
|
index: t,
|
|
544
544
|
centerX: e.x + Ut.value / 2,
|
|
545
|
-
centerY:
|
|
545
|
+
centerY: h(e.absoluteY) + U.value.style.chart.padding.top + e.height / 2
|
|
546
546
|
})).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = w(() => {
|
|
547
547
|
let e = [];
|
|
548
548
|
return ln.value.forEach((t) => {
|
|
@@ -577,7 +577,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
577
577
|
let e = new Set(q.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
578
578
|
return Array.from(e).map((e) => ({
|
|
579
579
|
name: e,
|
|
580
|
-
color: U.value.nodeCategoryColors[e] ||
|
|
580
|
+
color: U.value.nodeCategoryColors[e] || u[0],
|
|
581
581
|
shape: "square",
|
|
582
582
|
count: q.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
583
583
|
})).map((e, t) => {
|
|
@@ -978,7 +978,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
978
978
|
O("div", Ae, [(N(), D("svg", {
|
|
979
979
|
ref_key: "svgRef",
|
|
980
980
|
ref: G,
|
|
981
|
-
xmlns: I(
|
|
981
|
+
xmlns: I(m),
|
|
982
982
|
"aria-describedby": `chart-instructions-${z.value}`,
|
|
983
983
|
viewBox: `0 0 ${Xt.value.width} ${Xt.value.height}`,
|
|
984
984
|
class: ve({
|
|
@@ -1034,8 +1034,8 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1034
1034
|
"data-a11y-node-id": e.id,
|
|
1035
1035
|
class: "vue-ui-flow-node",
|
|
1036
1036
|
x: e.x,
|
|
1037
|
-
y: I(
|
|
1038
|
-
height: I(
|
|
1037
|
+
y: I(h)(e.absoluteY) + U.value.style.chart.padding.top,
|
|
1038
|
+
height: I(h)(e.height),
|
|
1039
1039
|
width: Ut.value,
|
|
1040
1040
|
fill: e.color,
|
|
1041
1041
|
stroke: U.value.style.chart.nodes.stroke,
|
|
@@ -1045,7 +1045,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1045
1045
|
opacity: J.value ? J.value.includes(e.name) ? 1 : .3 : 1,
|
|
1046
1046
|
outline: $t.value !== null && $t.value === e.id ? "2px solid currentColor" : void 0
|
|
1047
1047
|
}),
|
|
1048
|
-
"aria-label": `${e.name}: ${I(
|
|
1048
|
+
"aria-label": `${e.name}: ${I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(f)({
|
|
1049
1049
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1050
1050
|
v: e.value,
|
|
1051
1051
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -1057,22 +1057,22 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1057
1057
|
}, null, 44, Le))), 256)),
|
|
1058
1058
|
U.value.style.chart.nodes.labels.show ? (N(), D("g", Re, [(N(!0), D(de, null, be(q.value.nodes, (e, t) => (N(), D("text", {
|
|
1059
1059
|
x: e.x + Ut.value / 2,
|
|
1060
|
-
y: (U.value.style.chart.nodes.labels.showValue ? I(
|
|
1060
|
+
y: (U.value.style.chart.nodes.labels.showValue ? I(h)(e.absoluteY + e.height / 2 - U.value.style.chart.nodes.labels.fontSize / 4) : e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 3) + U.value.style.chart.padding.top,
|
|
1061
1061
|
"font-size": U.value.style.chart.nodes.labels.fontSize,
|
|
1062
|
-
fill: I(
|
|
1062
|
+
fill: I(p)(e.color),
|
|
1063
1063
|
"text-anchor": "middle",
|
|
1064
1064
|
style: M(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1065
|
-
}, Se(U.value.style.chart.nodes.labels.abbreviation.use ? I(
|
|
1065
|
+
}, Se(U.value.style.chart.nodes.labels.abbreviation.use ? I(d)({
|
|
1066
1066
|
source: e.name,
|
|
1067
1067
|
length: U.value.style.chart.nodes.labels.abbreviation.length
|
|
1068
1068
|
}) : e.name), 13, ze))), 256)), U.value.style.chart.nodes.labels.showValue ? (N(!0), D(de, { key: 0 }, be(q.value.nodes, (e, t) => (N(), D("text", {
|
|
1069
1069
|
x: e.x + Ut.value / 2,
|
|
1070
|
-
y: I(
|
|
1070
|
+
y: I(h)(e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 1.3) + U.value.style.chart.padding.top,
|
|
1071
1071
|
"font-size": U.value.style.chart.nodes.labels.fontSize,
|
|
1072
|
-
fill: I(
|
|
1072
|
+
fill: I(p)(e.color),
|
|
1073
1073
|
"text-anchor": "middle",
|
|
1074
1074
|
style: M(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1075
|
-
}, Se(I(
|
|
1075
|
+
}, Se(I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(f)({
|
|
1076
1076
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1077
1077
|
v: e.value,
|
|
1078
1078
|
s: U.value.style.chart.nodes.labels.suffix,
|