vue-data-ui 3.22.7 → 3.22.8
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- 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 +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as ne } from "./img-
|
|
10
|
-
import { n as C } from "./Title-
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Mt as a, S as o, T as s, Wt as c, Z as l, b as u, i as d, kt as f, n as p, r as m, t as h, v as g, yt as ee } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as te } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as _ } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { n as v, t as y } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as b } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as x } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as S } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ne } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as C } from "./Title-CcNiYzEo.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-ROt6ugzW.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-CxOrWlFy.js")), qe = k(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), Je = k(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), Ye = k(() => import("./DataTable-D9NvewTT.js")), Xe = k(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Ze = k(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Qe = k(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), $e = k(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_flow: et } = te(), { isThemeValid: tt, warnInvalidTheme: nt } = S(), R = e, rt = Te, z = P(n()), 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(() => i({
|
|
102
102
|
defaultConfig: {
|
|
103
103
|
userOptions: { show: !1 },
|
|
104
104
|
nodeCategories: {
|
|
@@ -121,7 +121,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
121
121
|
} }
|
|
122
122
|
},
|
|
123
123
|
userConfig: U.value.skeletonConfig ?? {}
|
|
124
|
-
})), { loading: Et, FINAL_DATASET: Dt, manualLoading: Ot } =
|
|
124
|
+
})), { loading: Et, FINAL_DATASET: Dt, manualLoading: Ot } = v({
|
|
125
125
|
...Ce(R),
|
|
126
126
|
FINAL_CONFIG: U,
|
|
127
127
|
prepareConfig: Pt,
|
|
@@ -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: i({
|
|
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 (f(R.dataset) && (t({
|
|
173
173
|
componentName: "VueUiFlow",
|
|
174
174
|
type: "dataset",
|
|
175
175
|
debug: kt.value
|
|
176
|
-
}), Ot.value = !0),
|
|
176
|
+
}), Ot.value = !0), f(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,
|
|
@@ -190,22 +190,22 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
190
190
|
}
|
|
191
191
|
let { userOptionsVisible: jt, setUserOptionsVisibility: Mt, keepUserOptionState: Nt } = se({ config: U.value }), { svgRef: G } = ce({ config: U.value.style.chart.title });
|
|
192
192
|
function Pt() {
|
|
193
|
-
let e =
|
|
193
|
+
let e = x({
|
|
194
194
|
userConfig: R.config,
|
|
195
195
|
defaultConfig: et
|
|
196
196
|
}), t = e, n = e.theme;
|
|
197
197
|
if (n) if (!tt.value(e)) nt(e), t = e;
|
|
198
198
|
else {
|
|
199
|
-
let r =
|
|
199
|
+
let r = x({
|
|
200
200
|
userConfig: ue[n] || R.config,
|
|
201
201
|
defaultConfig: e
|
|
202
202
|
});
|
|
203
203
|
t = {
|
|
204
|
-
...
|
|
204
|
+
...x({
|
|
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 : c[n] || a
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
else t = e;
|
|
@@ -217,11 +217,11 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
217
217
|
}, { deep: !0 }), we(() => R.dataset, (e) => {
|
|
218
218
|
Array.isArray(e) && e.length > 0 && (Ot.value = !1);
|
|
219
219
|
}, { deep: !0 });
|
|
220
|
-
let { isPrinting: Lt, isImaging: Rt, generatePdf: zt, generateImage: Bt } =
|
|
220
|
+
let { isPrinting: Lt, isImaging: Rt, generatePdf: zt, generateImage: Bt } = _({
|
|
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(() => o(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
|
});
|
|
@@ -234,46 +234,46 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
234
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
|
+
g(e[2]),
|
|
238
|
+
e[3] ? u(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || a[t] || a[t % a.length]
|
|
239
239
|
]));
|
|
240
240
|
function Gt(e) {
|
|
241
|
-
let t = {},
|
|
242
|
-
function
|
|
241
|
+
let t = {}, r = {};
|
|
242
|
+
function i(e, i) {
|
|
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: n()
|
|
250
|
+
}), t[e].level === null && (t[e].level = i), r[i] || (r[i] = []), r[i].includes(e) || r[i].push(e);
|
|
251
251
|
}
|
|
252
|
-
e.forEach(([e, n,
|
|
252
|
+
e.forEach(([e, n, r]) => {
|
|
253
253
|
let a = t[e]?.level ?? 0, o = a + 1;
|
|
254
|
-
|
|
254
|
+
i(e, a), i(n, o), t[e].children.push({
|
|
255
255
|
target: n,
|
|
256
|
-
value:
|
|
257
|
-
}), t[e].outflow +=
|
|
256
|
+
value: r
|
|
257
|
+
}), t[e].outflow += r, t[n].inflow += r;
|
|
258
258
|
});
|
|
259
|
-
let
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
let o = new Set(e.map(([e]) => e)), s = new Set(e.map(([, e]) => e)), c = Array.from(o).filter((e) => !s.has(e)), l = {};
|
|
260
|
+
c.forEach((e, t) => {
|
|
261
|
+
l[e] = Ht.value[t] || a[t % a.length];
|
|
262
262
|
});
|
|
263
|
-
let
|
|
263
|
+
let u = {};
|
|
264
264
|
e.forEach(([e, t, n, r]) => {
|
|
265
|
-
r && (
|
|
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 =
|
|
268
|
+
t[e].color = u[e] || i || (c.includes(e) ? l[e] : null) || a[n % a.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(
|
|
273
|
-
function
|
|
274
|
-
let
|
|
272
|
+
let d = Jt.value, f = Yt.value.width, p = Yt.value.height, m = Object.keys(r).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
|
+
function y(e) {
|
|
274
|
+
let n = r[e], i = n.length;
|
|
275
275
|
if (!i) return Infinity;
|
|
276
|
-
let a = Math.max(0, (i - 1) *
|
|
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 = n.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) {
|
|
@@ -286,57 +286,57 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
286
286
|
}
|
|
287
287
|
return u > 0 ? Math.max(0, (o - c) / u) : 0;
|
|
288
288
|
}
|
|
289
|
-
let
|
|
289
|
+
let b = m.map(y), x = b.length ? Math.min(...b) : 0, S = {};
|
|
290
290
|
m.forEach((e) => {
|
|
291
|
-
let
|
|
292
|
-
|
|
293
|
-
let
|
|
294
|
-
|
|
291
|
+
let i = r[e], a = i.length, o = Math.max(0, (a - 1) * _), s = Math.max(0, p - o), c = Math.min(v, a ? s / a : 0), l = i.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
|
+
i.forEach((r, i) => {
|
|
293
|
+
let o = l[i], s = d.left + e * ee, c = f;
|
|
294
|
+
S[r] = {
|
|
295
295
|
x: s,
|
|
296
296
|
y: c,
|
|
297
297
|
absoluteY: c,
|
|
298
|
-
height:
|
|
299
|
-
i
|
|
300
|
-
color: t[
|
|
301
|
-
value: t[
|
|
302
|
-
id:
|
|
303
|
-
}, f +=
|
|
298
|
+
height: o,
|
|
299
|
+
i,
|
|
300
|
+
color: t[r].color,
|
|
301
|
+
value: t[r].value,
|
|
302
|
+
id: n()
|
|
303
|
+
}, f += o, i < a - 1 && (f += _);
|
|
304
304
|
});
|
|
305
305
|
});
|
|
306
306
|
let ne = [], C = d.top, re = {}, ie = {};
|
|
307
307
|
Object.keys(t).forEach((e) => {
|
|
308
|
-
re[e] =
|
|
308
|
+
re[e] = S[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 (!
|
|
315
|
-
let
|
|
316
|
-
|
|
317
|
-
let c =
|
|
318
|
-
ie[
|
|
319
|
-
let
|
|
320
|
-
(
|
|
321
|
-
let
|
|
322
|
-
if (!ae ||
|
|
312
|
+
r[e].forEach((e) => {
|
|
313
|
+
let r = t[e], i = S[e];
|
|
314
|
+
if (!r.children || !r.children.length) return;
|
|
315
|
+
let a = i.y;
|
|
316
|
+
r.children.forEach(({ target: o, value: s }) => {
|
|
317
|
+
let c = S[o], l = t[o], u = r.outflow > 0 ? s / r.outflow : 0, d = l.inflow > 0 ? s / l.inflow : 0, f = g(a + C), p = g(a + u * i.height + C), m = re[o], h = m + d * c.height;
|
|
318
|
+
ie[o] += s;
|
|
319
|
+
let ee = l.inflow > 0 && ie[o] >= l.inflow - 1e-6, _ = c.y + c.height;
|
|
320
|
+
(ee || h > _ - .25) && (h = _);
|
|
321
|
+
let v = g(m + C), y = g(h + C), b = g(i.x + te), x = g(c.x), se;
|
|
322
|
+
if (!ae || x <= b) se = `M ${b} ${f} L ${b} ${p} L ${x} ${y} L ${x} ${v} Z`;
|
|
323
323
|
else {
|
|
324
|
-
let e =
|
|
325
|
-
se = `M ${
|
|
324
|
+
let e = x - b, t = g(b + e * oe), n = g(x - e * oe), r = f, i = v, a = p, o = y;
|
|
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: n(),
|
|
329
329
|
source: e,
|
|
330
|
-
target:
|
|
330
|
+
target: o,
|
|
331
331
|
path: se,
|
|
332
332
|
value: s,
|
|
333
|
-
sourceColor:
|
|
334
|
-
targetColor: t[
|
|
335
|
-
}),
|
|
333
|
+
sourceColor: r.color,
|
|
334
|
+
targetColor: t[o].color
|
|
335
|
+
}), a = p - C, re[o] = h;
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
338
|
}), {
|
|
339
|
-
nodeCoordinates:
|
|
339
|
+
nodeCoordinates: S,
|
|
340
340
|
links: ne
|
|
341
341
|
};
|
|
342
342
|
}
|
|
@@ -376,44 +376,44 @@ 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", i = null) {
|
|
380
|
+
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = n, yt.value = i, V.value = e.id;
|
|
381
|
+
let a = e.name, o = Wt.value, s = 0, c = 0, l = [], u = [], f = new Set(o.map(([e]) => e)), p = new Set(o.map(([, e]) => e)), m = Array.from(f).filter((e) => !p.has(e)), h = o.filter(([e]) => m.includes(e)).reduce((e, [t, n, r]) => e + r, 0), g = {};
|
|
382
382
|
q.value.nodes.forEach((e) => {
|
|
383
|
-
|
|
384
|
-
}),
|
|
385
|
-
t ===
|
|
383
|
+
g[e.name] = e.color;
|
|
384
|
+
}), o.forEach(([e, t, n]) => {
|
|
385
|
+
t === a && (s += n, l.push({
|
|
386
386
|
source: e,
|
|
387
387
|
value: n,
|
|
388
|
-
color:
|
|
389
|
-
})), e ===
|
|
388
|
+
color: g[e]
|
|
389
|
+
})), e === a && (c += n, u.push({
|
|
390
390
|
target: t,
|
|
391
391
|
value: n,
|
|
392
|
-
color:
|
|
392
|
+
color: g[t]
|
|
393
393
|
}));
|
|
394
394
|
});
|
|
395
|
-
let
|
|
396
|
-
name:
|
|
397
|
-
inflow:
|
|
398
|
-
outflow:
|
|
399
|
-
from:
|
|
395
|
+
let te = h > 0 ? Math.max(s, c) / h * 100 : 0, _ = {
|
|
396
|
+
name: a,
|
|
397
|
+
inflow: s,
|
|
398
|
+
outflow: c,
|
|
399
|
+
from: l,
|
|
400
400
|
to: u,
|
|
401
|
-
percentOfTotal:
|
|
402
|
-
color:
|
|
401
|
+
percentOfTotal: te,
|
|
402
|
+
color: g[a] || "#000000"
|
|
403
403
|
};
|
|
404
404
|
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
405
|
-
datapoint:
|
|
405
|
+
datapoint: _,
|
|
406
406
|
seriesIndex: t
|
|
407
407
|
}), X.value = {
|
|
408
|
-
datapoint:
|
|
408
|
+
datapoint: _,
|
|
409
409
|
config: U.value,
|
|
410
410
|
seriesIndex: t,
|
|
411
411
|
series: q.value
|
|
412
412
|
}, ot.value = !0;
|
|
413
|
-
let
|
|
414
|
-
if (Qt.value = !1,
|
|
415
|
-
let e =
|
|
416
|
-
datapoint:
|
|
413
|
+
let v = "", y = U.value.style.chart.tooltip.customFormat;
|
|
414
|
+
if (Qt.value = !1, ee(y)) try {
|
|
415
|
+
let e = y({
|
|
416
|
+
datapoint: _,
|
|
417
417
|
series: q.value,
|
|
418
418
|
config: U.value
|
|
419
419
|
});
|
|
@@ -422,27 +422,27 @@ 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>${r({
|
|
426
426
|
p: U.value.style.chart.tooltip.translations.percentOfTotal,
|
|
427
|
-
v:
|
|
427
|
+
v: _.percentOfTotal,
|
|
428
428
|
s: "%",
|
|
429
429
|
r: U.value.style.chart.tooltip.roundingPercentage
|
|
430
430
|
})}</div>` : "";
|
|
431
|
-
|
|
432
|
-
|
|
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, r({
|
|
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
|
-
})),
|
|
439
|
-
|
|
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, r({
|
|
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,
|
|
443
443
|
r: U.value.style.chart.nodes.labels.rounding
|
|
444
444
|
}))}</div>`;
|
|
445
|
-
})), st.value =
|
|
445
|
+
})), st.value = v;
|
|
446
446
|
}
|
|
447
447
|
n === "keyboard" && _e(() => {
|
|
448
448
|
tn(e.id);
|
|
@@ -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 = s([
|
|
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) : l({
|
|
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
|
+
r({
|
|
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: g(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] || a[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) => {
|
|
@@ -667,7 +667,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
667
667
|
let Cn = w(() => _n.value.map((e) => ({
|
|
668
668
|
...e,
|
|
669
669
|
name: e.display
|
|
670
|
-
}))), wn = w(() => U.value.style.chart.backgroundColor), Tn = w(() => U.value.style.chart.legend), { exportSvg: En, getSvg: Dn } =
|
|
670
|
+
}))), wn = w(() => U.value.style.chart.backgroundColor), Tn = w(() => U.value.style.chart.legend), { exportSvg: En, getSvg: Dn } = b({
|
|
671
671
|
svg: G,
|
|
672
672
|
title: w(() => U.value.style.chart.title),
|
|
673
673
|
legend: Tn,
|
|
@@ -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(h),
|
|
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(g)(e.absoluteY) + U.value.style.chart.padding.top,
|
|
1038
|
+
height: I(g)(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(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(r)({
|
|
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(g)(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(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(p)({
|
|
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(g)(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(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(
|
|
1075
|
+
}, Se(I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(r)({
|
|
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,
|
|
@@ -1227,7 +1227,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1227
1227
|
}, null, 8, ["stroke"])], 4)]),
|
|
1228
1228
|
key: "1"
|
|
1229
1229
|
} : void 0]), 1040)) : E("", !0),
|
|
1230
|
-
F(e.$slots, "skeleton", {}, () => [I(Et) ? (N(), T(
|
|
1230
|
+
F(e.$slots, "skeleton", {}, () => [I(Et) ? (N(), T(y, { key: 0 })) : E("", !0)], !0)
|
|
1231
1231
|
], 46, Ee));
|
|
1232
1232
|
}
|
|
1233
1233
|
}, [["__scopeId", "data-v-bab66b99"]]);
|