vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- 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/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { At as t, C as n, E as r, Gt as i, K as a, Nt as o, Q as s, Y as c, bt as l, et as u, i as d, n as f, qt as p, r as m, t as h, x as ee, y as g } from "./lib-CnHx5WfV.js";
|
|
3
3
|
import { t as te } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as _ } from "./usePrinter-
|
|
4
|
+
import { t as _ } from "./usePrinter-B-X_Pub0.js";
|
|
5
5
|
import { n as v, t as y } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as b } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as x } from "./useNestedProp-
|
|
7
|
+
import { t as x } from "./useNestedProp-D8NuRneO.js";
|
|
8
8
|
import { t as S } 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-CNdXiUfZ.js";
|
|
10
|
+
import { n as C } from "./Title-Cr3jP7Qd.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-5VQGLnmx.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-CDbLl3TD.js")), qe = k(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), Je = k(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), Ye = k(() => import("./DataTable-ByZy5gt1.js")), Xe = k(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Ze = k(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Qe = k(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), $e = k(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_flow: et } = te(), { isThemeValid: tt, warnInvalidTheme: nt } = S(), R = e, rt = Te, z = P(a()), 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(() => p({
|
|
102
102
|
defaultConfig: {
|
|
103
103
|
userOptions: { show: !1 },
|
|
104
104
|
nodeCategories: {
|
|
@@ -163,17 +163,17 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
163
163
|
"#AAAAAA"
|
|
164
164
|
]
|
|
165
165
|
],
|
|
166
|
-
skeletonConfig:
|
|
166
|
+
skeletonConfig: p({
|
|
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 (
|
|
172
|
+
if (t(R.dataset) && (u({
|
|
173
173
|
componentName: "VueUiFlow",
|
|
174
174
|
type: "dataset",
|
|
175
175
|
debug: kt.value
|
|
176
|
-
}), Ot.value = !0),
|
|
176
|
+
}), Ot.value = !0), t(R.dataset) || (Ot.value = U.value.loading), U.value.responsive) {
|
|
177
177
|
let e = ie(() => {
|
|
178
178
|
let { width: e, height: t } = ae({
|
|
179
179
|
chart: B.value,
|
|
@@ -205,7 +205,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
205
205
|
userConfig: R.config,
|
|
206
206
|
defaultConfig: r
|
|
207
207
|
}),
|
|
208
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
208
|
+
customPalette: e.customPalette.length ? e.customPalette : i[n] || o
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
else t = 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(() => n(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
|
});
|
|
@@ -235,45 +235,45 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
235
235
|
e[0],
|
|
236
236
|
e[1],
|
|
237
237
|
g(e[2]),
|
|
238
|
-
e[3] ?
|
|
238
|
+
e[3] ? ee(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || o[t] || o[t % o.length]
|
|
239
239
|
]));
|
|
240
240
|
function Gt(e) {
|
|
241
|
-
let t = {},
|
|
242
|
-
function
|
|
241
|
+
let t = {}, n = {};
|
|
242
|
+
function r(e, r) {
|
|
243
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
|
-
uid:
|
|
250
|
-
}), t[e].level === null && (t[e].level =
|
|
249
|
+
uid: a()
|
|
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, n,
|
|
252
|
+
e.forEach(([e, n, i]) => {
|
|
253
253
|
let a = t[e]?.level ?? 0, o = a + 1;
|
|
254
|
-
|
|
254
|
+
r(e, a), r(n, o), t[e].children.push({
|
|
255
255
|
target: n,
|
|
256
|
-
value:
|
|
257
|
-
}), t[e].outflow +=
|
|
256
|
+
value: i
|
|
257
|
+
}), t[e].outflow += i, t[n].inflow += i;
|
|
258
258
|
});
|
|
259
|
-
let
|
|
259
|
+
let i = new Set(e.map(([e]) => e)), s = new Set(e.map(([, e]) => e)), c = Array.from(i).filter((e) => !s.has(e)), l = {};
|
|
260
260
|
c.forEach((e, t) => {
|
|
261
|
-
l[e] = Ht.value[t] ||
|
|
261
|
+
l[e] = Ht.value[t] || o[t % o.length];
|
|
262
262
|
});
|
|
263
263
|
let u = {};
|
|
264
264
|
e.forEach(([e, t, n, r]) => {
|
|
265
265
|
r && (u[e] = r, u[t] = r);
|
|
266
266
|
}), Object.keys(t).forEach((e, n) => {
|
|
267
267
|
let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
268
|
-
t[e].color = u[e] || i || (c.includes(e) ? l[e] : null) ||
|
|
268
|
+
t[e].color = u[e] || i || (c.includes(e) ? l[e] : null) || o[n % o.length];
|
|
269
269
|
}), Object.keys(t).forEach((e) => {
|
|
270
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), h = m.length || 1, ee = h > 1 ? f / (h - 1) : 0, te = Number(Ut.value), _ = Number(U.value.style.chart.nodes.gapPx ?? U.value.style.chart.nodes.gap ?? 8), v = Number(U.value.style.chart.nodes.minHeight || 0);
|
|
273
273
|
function y(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) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), c = 0, l =
|
|
276
|
+
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);
|
|
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,19 +288,19 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
288
288
|
}
|
|
289
289
|
let b = m.map(y), x = b.length ? Math.min(...b) : 0, S = {};
|
|
290
290
|
m.forEach((e) => {
|
|
291
|
-
let
|
|
292
|
-
|
|
293
|
-
let o = l[
|
|
294
|
-
S[
|
|
291
|
+
let r = n[e], i = r.length, o = Math.max(0, (i - 1) * _), s = Math.max(0, p - o), c = Math.min(v, i ? s / i : 0), l = r.map((e) => Math.max(c, (t[e].value || 0) * x)), u = l.reduce((e, t) => e + t, 0) + o, f = Math.max(0, (p - u) / 2);
|
|
292
|
+
r.forEach((n, r) => {
|
|
293
|
+
let o = l[r], s = d.left + e * ee, c = f;
|
|
294
|
+
S[n] = {
|
|
295
295
|
x: s,
|
|
296
296
|
y: c,
|
|
297
297
|
absoluteY: c,
|
|
298
298
|
height: o,
|
|
299
|
-
i,
|
|
300
|
-
color: t[
|
|
301
|
-
value: t[
|
|
302
|
-
id:
|
|
303
|
-
}, f += o,
|
|
299
|
+
i: r,
|
|
300
|
+
color: t[n].color,
|
|
301
|
+
value: t[n].value,
|
|
302
|
+
id: a()
|
|
303
|
+
}, f += o, r < i - 1 && (f += _);
|
|
304
304
|
});
|
|
305
305
|
});
|
|
306
306
|
let ne = [], C = d.top, re = {}, ie = {};
|
|
@@ -309,30 +309,30 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
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 (!
|
|
315
|
-
let
|
|
316
|
-
|
|
317
|
-
let c = S[o], l = t[o], u =
|
|
312
|
+
n[e].forEach((e) => {
|
|
313
|
+
let n = t[e], r = S[e];
|
|
314
|
+
if (!n.children || !n.children.length) return;
|
|
315
|
+
let i = r.y;
|
|
316
|
+
n.children.forEach(({ target: o, value: s }) => {
|
|
317
|
+
let c = S[o], l = t[o], u = n.outflow > 0 ? s / n.outflow : 0, d = l.inflow > 0 ? s / l.inflow : 0, f = g(i + C), p = g(i + u * r.height + C), m = re[o], h = m + d * c.height;
|
|
318
318
|
ie[o] += s;
|
|
319
319
|
let ee = l.inflow > 0 && ie[o] >= l.inflow - 1e-6, _ = c.y + c.height;
|
|
320
320
|
(ee || h > _ - .25) && (h = _);
|
|
321
|
-
let v = g(m + C), y = g(h + C), b = g(
|
|
321
|
+
let v = g(m + C), y = g(h + C), b = g(r.x + te), x = g(c.x), se;
|
|
322
322
|
if (!ae || x <= b) se = `M ${b} ${f} L ${b} ${p} L ${x} ${y} L ${x} ${v} Z`;
|
|
323
323
|
else {
|
|
324
324
|
let e = x - b, t = g(b + e * oe), n = g(x - e * oe), r = f, i = v, a = p, o = y;
|
|
325
325
|
se = `M ${b} ${r} C ${t} ${r}, ${n} ${i}, ${x} ${i} L ${x} ${o} C ${n} ${o}, ${t} ${a}, ${b} ${a} Z`;
|
|
326
326
|
}
|
|
327
327
|
ne.push({
|
|
328
|
-
id:
|
|
328
|
+
id: a(),
|
|
329
329
|
source: e,
|
|
330
330
|
target: o,
|
|
331
331
|
path: se,
|
|
332
332
|
value: s,
|
|
333
|
-
sourceColor:
|
|
333
|
+
sourceColor: n.color,
|
|
334
334
|
targetColor: t[o].color
|
|
335
|
-
}),
|
|
335
|
+
}), i = p - C, re[o] = h;
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
338
|
}), {
|
|
@@ -376,30 +376,30 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
376
376
|
y: n.top + n.height / 2
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function nn(e, t, n = "pointer",
|
|
380
|
-
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = n, yt.value =
|
|
381
|
-
let
|
|
379
|
+
function nn(e, t, n = "pointer", r = null) {
|
|
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, u = [], f = [], p = new Set(a.map(([e]) => e)), m = new Set(a.map(([, e]) => e)), h = Array.from(p).filter((e) => !m.has(e)), ee = a.filter(([e]) => h.includes(e)).reduce((e, [t, n, r]) => e + r, 0), g = {};
|
|
382
382
|
q.value.nodes.forEach((e) => {
|
|
383
383
|
g[e.name] = e.color;
|
|
384
|
-
}),
|
|
385
|
-
t ===
|
|
384
|
+
}), a.forEach(([e, t, n]) => {
|
|
385
|
+
t === i && (o += n, u.push({
|
|
386
386
|
source: e,
|
|
387
387
|
value: n,
|
|
388
388
|
color: g[e]
|
|
389
|
-
})), e ===
|
|
389
|
+
})), e === i && (s += n, f.push({
|
|
390
390
|
target: t,
|
|
391
391
|
value: n,
|
|
392
392
|
color: g[t]
|
|
393
393
|
}));
|
|
394
394
|
});
|
|
395
|
-
let te =
|
|
396
|
-
name:
|
|
397
|
-
inflow:
|
|
398
|
-
outflow:
|
|
399
|
-
from:
|
|
400
|
-
to:
|
|
395
|
+
let te = ee > 0 ? Math.max(o, s) / ee * 100 : 0, _ = {
|
|
396
|
+
name: i,
|
|
397
|
+
inflow: o,
|
|
398
|
+
outflow: s,
|
|
399
|
+
from: u,
|
|
400
|
+
to: f,
|
|
401
401
|
percentOfTotal: te,
|
|
402
|
-
color: g[
|
|
402
|
+
color: g[i] || "#000000"
|
|
403
403
|
};
|
|
404
404
|
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
405
405
|
datapoint: _,
|
|
@@ -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 v = "", y = U.value.style.chart.tooltip.customFormat;
|
|
414
|
-
if (Qt.value = !1,
|
|
414
|
+
if (Qt.value = !1, l(y)) try {
|
|
415
415
|
let e = y({
|
|
416
416
|
datapoint: _,
|
|
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>${c({
|
|
426
426
|
p: U.value.style.chart.tooltip.translations.percentOfTotal,
|
|
427
427
|
v: _.percentOfTotal,
|
|
428
428
|
s: "%",
|
|
429
429
|
r: U.value.style.chart.tooltip.roundingPercentage
|
|
430
430
|
})}</div>` : "";
|
|
431
431
|
v += `<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:${_.color}">⏹</span>${_.name}${e}</div>`, _.from.length && (v += `<div>${U.value.style.chart.tooltip.translations.from}</div>`, _.from.forEach((e) => {
|
|
432
|
-
v += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(U.value.style.chart.nodes.labels.formatter, e.value,
|
|
432
|
+
v += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(U.value.style.chart.nodes.labels.formatter, e.value, c({
|
|
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
|
})), _.to.length && (v += `<div style="margin-top:6px;">${U.value.style.chart.tooltip.translations.to}</div>`, _.to.forEach((e) => {
|
|
439
|
-
v += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(U.value.style.chart.nodes.labels.formatter, e.value,
|
|
439
|
+
v += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(U.value.style.chart.nodes.labels.formatter, e.value, c({
|
|
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,
|
|
@@ -475,7 +475,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
475
475
|
[e.source],
|
|
476
476
|
[e.target],
|
|
477
477
|
[e.value]
|
|
478
|
-
]), n =
|
|
478
|
+
]), n = r([
|
|
479
479
|
[U.value.style.chart.title.text],
|
|
480
480
|
[U.value.style.chart.title.subtitle.text],
|
|
481
481
|
[
|
|
@@ -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
|
+
c({
|
|
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,
|
|
@@ -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] || o[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) => {
|
|
@@ -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(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(
|
|
1048
|
+
"aria-label": `${e.name}: ${I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(c)({
|
|
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,
|
|
@@ -1062,7 +1062,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1062
1062
|
fill: I(m)(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(f)({
|
|
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", {
|
|
@@ -1072,7 +1072,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1072
1072
|
fill: I(m)(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(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(
|
|
1075
|
+
}, Se(I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(c)({
|
|
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,
|