vue-data-ui 3.22.0 → 3.22.1
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.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/types/vue-data-ui.d.ts +3 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
- package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
- package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
- package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
- package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
- package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
- package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
- package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
- package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
- package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
- package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
- package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
- package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
- package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
- package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
- package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
- package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
- package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
- package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
- package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
- package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ee } from "./useConfig-
|
|
4
|
-
import { t as v } from "./usePrinter-
|
|
2
|
+
import { Et as t, G as n, H as r, J as i, S as a, Ut as o, Vt as s, X as c, gt as l, i as u, kt as d, n as f, r as p, t as m, v as h, x as g, y as _ } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as ee } from "./useConfig-C10cdg45.js";
|
|
4
|
+
import { t as v } from "./usePrinter-Dng0UK-G.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-APyFoLCQ.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-BCAOkqfM.js";
|
|
10
|
+
import { n as C } from "./Title-CVYf1f8m.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-BVDhEEsC.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-BmGCBJuU.js")), qe = k(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), Je = k(() => import("./vue-ui-accordion-Ck_u5Nro.js").then((e) => e.n)), Ye = k(() => import("./DataTable-DJZgdnIn.js")), Xe = k(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), Ze = k(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Qe = k(() => import("./PackageVersion-_Dwp4NUr.js").then((e) => e.t)), $e = k(() => import("./BaseDraggableDialog-a9xCKjW-.js").then((e) => e.n)), { vue_ui_flow: et } = ee(), { isThemeValid: tt, warnInvalidTheme: nt } = te(), R = e, rt = Te, z = P(r()), 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(() => o({
|
|
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: o({
|
|
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) && (c({
|
|
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,
|
|
@@ -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 : s[n] || d
|
|
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) => {
|
|
@@ -235,7 +235,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
235
235
|
e[0],
|
|
236
236
|
e[1],
|
|
237
237
|
h(e[2]),
|
|
238
|
-
e[3] ? _(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] ||
|
|
238
|
+
e[3] ? _(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || d[t] || d[t % d.length]
|
|
239
239
|
]));
|
|
240
240
|
function Gt(e) {
|
|
241
241
|
let t = {}, n = {};
|
|
@@ -256,20 +256,20 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
256
256
|
value: r
|
|
257
257
|
}), t[e].outflow += r, t[n].inflow += r;
|
|
258
258
|
});
|
|
259
|
-
let a = new Set(e.map(([e]) => e)),
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
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 = {};
|
|
260
|
+
s.forEach((e, t) => {
|
|
261
|
+
c[e] = Ht.value[t] || d[t % d.length];
|
|
262
262
|
});
|
|
263
|
-
let
|
|
263
|
+
let l = {};
|
|
264
264
|
e.forEach(([e, t, n, r]) => {
|
|
265
|
-
r && (
|
|
265
|
+
r && (l[e] = r, l[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 =
|
|
268
|
+
t[e].color = l[e] || i || (s.includes(e) ? c[e] : null) || d[n % d.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
|
|
272
|
+
let u = 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
274
|
let r = n[e], i = r.length;
|
|
275
275
|
if (!i) return Infinity;
|
|
@@ -288,9 +288,9 @@ 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 i = n[e], a = i.length, o = Math.max(0, (a - 1) * v), s = Math.max(0, p - o), c = Math.min(y, a ? s / a : 0), l = i.map((e) => Math.max(c, (t[e].value || 0) * S)),
|
|
291
|
+
let i = n[e], a = i.length, o = Math.max(0, (a - 1) * v), s = Math.max(0, p - o), c = Math.min(y, a ? s / a : 0), l = i.map((e) => Math.max(c, (t[e].value || 0) * S)), d = l.reduce((e, t) => e + t, 0) + o, f = Math.max(0, (p - d) / 2);
|
|
292
292
|
i.forEach((n, i) => {
|
|
293
|
-
let o = l[i], s =
|
|
293
|
+
let o = l[i], s = u.left + e * _, c = f;
|
|
294
294
|
te[n] = {
|
|
295
295
|
x: s,
|
|
296
296
|
y: c,
|
|
@@ -303,7 +303,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
303
303
|
}, f += o, i < a - 1 && (f += v);
|
|
304
304
|
});
|
|
305
305
|
});
|
|
306
|
-
let ne = [], C =
|
|
306
|
+
let ne = [], C = u.top, re = {}, ie = {};
|
|
307
307
|
Object.keys(t).forEach((e) => {
|
|
308
308
|
re[e] = te[e]?.y ?? 0, ie[e] = 0;
|
|
309
309
|
});
|
|
@@ -378,11 +378,11 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
378
378
|
}
|
|
379
379
|
function nn(e, t, r = "pointer", i = null) {
|
|
380
380
|
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = r, yt.value = i, V.value = e.id;
|
|
381
|
-
let a = e.name, o = Wt.value, s = 0, c = 0,
|
|
381
|
+
let a = e.name, o = Wt.value, s = 0, c = 0, d = [], f = [], p = new Set(o.map(([e]) => e)), m = new Set(o.map(([, e]) => e)), h = Array.from(p).filter((e) => !m.has(e)), g = o.filter(([e]) => h.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
|
}), o.forEach(([e, t, n]) => {
|
|
385
|
-
t === a && (s += n,
|
|
385
|
+
t === a && (s += n, d.push({
|
|
386
386
|
source: e,
|
|
387
387
|
value: n,
|
|
388
388
|
color: _[e]
|
|
@@ -396,7 +396,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
396
396
|
name: a,
|
|
397
397
|
inflow: s,
|
|
398
398
|
outflow: c,
|
|
399
|
-
from:
|
|
399
|
+
from: d,
|
|
400
400
|
to: f,
|
|
401
401
|
percentOfTotal: ee,
|
|
402
402
|
color: _[a] || "#000000"
|
|
@@ -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, l(b)) try {
|
|
415
415
|
let e = b({
|
|
416
416
|
datapoint: v,
|
|
417
417
|
series: q.value,
|
|
@@ -429,14 +429,14 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
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}: ${u(U.value.style.chart.nodes.labels.formatter, e.value, n({
|
|
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}: ${u(U.value.style.chart.nodes.labels.formatter, e.value, n({
|
|
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 = a([
|
|
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) : i({
|
|
488
488
|
csvContent: n,
|
|
489
489
|
title: U.value.style.chart.title.text || "vue-ui-flow"
|
|
490
490
|
});
|
|
@@ -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] || d[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(
|
|
1048
|
+
"aria-label": `${e.name}: ${I(u)(U.value.style.chart.nodes.labels.formatter, e.value, I(n)({
|
|
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,
|
|
@@ -1072,7 +1072,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1072
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(u)(U.value.style.chart.nodes.labels.formatter, e.value, I(n)({
|
|
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,
|