vue-data-ui 3.26.5 → 3.27.0
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-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.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-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
- package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.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/vue-data-ui.d.ts +212 -59
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n,
|
|
2
|
+
import { $ as t, D as n, Ft as r, Jt as i, Q as a, X as o, _ as s, at as ee, b as te, i as c, nn as ne, nt as re, t as ie, yt as ae, zt as oe } from "./lib-D4wK6ljP.js";
|
|
3
3
|
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as le } from "./useConfig-
|
|
5
|
-
import { t as ue } from "./usePrinter-
|
|
4
|
+
import { t as le } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
+
import { t as ue } from "./usePrinter-DdW2GSm0.js";
|
|
6
6
|
import { n as de, t as fe } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as pe } from "./useNestedProp-
|
|
7
|
+
import { t as pe } from "./useNestedProp-DR_8JPol.js";
|
|
8
8
|
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as he } from "./useChartExport-iwOqiIWX.js";
|
|
10
10
|
import { t as ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as _e } from "./img-
|
|
12
|
-
import { n as ve } from "./Title-
|
|
11
|
+
import { t as _e } from "./img-Bb5rHcpO.js";
|
|
12
|
+
import { n as ve } from "./Title-BMCuINbv.js";
|
|
13
13
|
import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as be, t as xe } from "./useResponsive-ZtArZtUf.js";
|
|
15
15
|
import { t as l } from "./DefGrad-DVBqDjhO.js";
|
|
16
16
|
import { t as Se } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as we } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Te } from "./Legend-
|
|
19
|
+
import { t as Te } from "./Legend-CulFgjUY.js";
|
|
20
20
|
import { t as Ee } from "./usePrefersMotion-BC-CsqR1.js";
|
|
21
21
|
import { t as De } from "./vue_ui_dumbbell-Bfe_jFyi.js";
|
|
22
22
|
import { Fragment as u, Teleport as Oe, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ke, createTextVNode as Ae, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as je, nextTick as Me, normalizeClass as Ne, normalizeProps as y, normalizeStyle as Pe, onBeforeUnmount as Fe, onMounted as Ie, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Le, shallowRef as Re, toDisplayString as w, toRefs as ze, unref as T, vShow as Be, watch as Ve, watchEffect as He, withCtx as E, withDirectives as Ue } from "vue";
|
|
@@ -183,7 +183,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
183
183
|
},
|
|
184
184
|
emits: ["selectDatapoint", "copyAlt"],
|
|
185
185
|
setup(e, { expose: ye, emit: We }) {
|
|
186
|
-
let kt = _(() => import("./BaseIcon-
|
|
186
|
+
let kt = _(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), At = _(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), jt = _(() => import("./DataTable-CjF_An2h.js")), Mt = _(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Nt = _(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Pt = _(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Ft = _(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_dumbbell: It } = le(), { isThemeValid: Lt, warnInvalidTheme: Rt } = me(), zt = Ee(), D = e, Bt = We, Vt = d({
|
|
187
187
|
get() {
|
|
188
188
|
return !!D.dataset && D.dataset.length;
|
|
189
189
|
},
|
|
@@ -208,7 +208,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
208
208
|
]
|
|
209
209
|
}]
|
|
210
210
|
});
|
|
211
|
-
let on = d(() => P.value.userOptions.useCursorPointer), sn = d(() =>
|
|
211
|
+
let on = d(() => P.value.userOptions.useCursorPointer), sn = d(() => ne({
|
|
212
212
|
defaultConfig: {
|
|
213
213
|
userOptions: { show: !1 },
|
|
214
214
|
table: { show: !1 },
|
|
@@ -276,7 +276,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
276
276
|
end: 5
|
|
277
277
|
}
|
|
278
278
|
],
|
|
279
|
-
skeletonConfig:
|
|
279
|
+
skeletonConfig: ne({
|
|
280
280
|
defaultConfig: P.value,
|
|
281
281
|
userConfig: sn.value
|
|
282
282
|
})
|
|
@@ -308,12 +308,12 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
308
308
|
});
|
|
309
309
|
let gn = d(() => P.value.debug);
|
|
310
310
|
function _n() {
|
|
311
|
-
if (
|
|
311
|
+
if (oe(D.dataset) ? ee({
|
|
312
312
|
componentName: "VueUiDumbbell",
|
|
313
313
|
type: "dataset",
|
|
314
314
|
debug: gn.value
|
|
315
315
|
}) : D.dataset.forEach((e, t) => {
|
|
316
|
-
|
|
316
|
+
ae({
|
|
317
317
|
datasetObject: e,
|
|
318
318
|
requiredAttributes: [
|
|
319
319
|
"name",
|
|
@@ -581,7 +581,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
581
581
|
[P.value.table.columnNames.end]
|
|
582
582
|
]
|
|
583
583
|
].concat(t), i = n(r);
|
|
584
|
-
e ? e(i) :
|
|
584
|
+
e ? e(i) : re({
|
|
585
585
|
csvContent: i,
|
|
586
586
|
title: z.value.title.text || "vue-ui-dumbbell"
|
|
587
587
|
});
|
|
@@ -1192,7 +1192,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1192
1192
|
y: q.value.top,
|
|
1193
1193
|
height: Math.max(.1, q.value.height),
|
|
1194
1194
|
width: j.value ? Math.max(.1, Math.abs(j.value.endX - j.value.startX)) : 0,
|
|
1195
|
-
fill: j.value ? T(
|
|
1195
|
+
fill: j.value ? T(i)(R.value.rectColor, R.value.rectOpacity) : "transparent",
|
|
1196
1196
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1197
1197
|
}, null, 8, lt), [[Be, R.value.showRect && j.value !== null && ![null, void 0].includes(j.value.start) && ![null, void 0].includes(j.value.end)]]),
|
|
1198
1198
|
Ue(h("text", {
|
|
@@ -1216,7 +1216,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1216
1216
|
],
|
|
1217
1217
|
[
|
|
1218
1218
|
"90%",
|
|
1219
|
-
T(
|
|
1219
|
+
T(a)(L.value.startColor, .1),
|
|
1220
1220
|
1
|
|
1221
1221
|
],
|
|
1222
1222
|
[
|
|
@@ -1238,7 +1238,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1238
1238
|
],
|
|
1239
1239
|
[
|
|
1240
1240
|
"90%",
|
|
1241
|
-
T(
|
|
1241
|
+
T(a)(L.value.endColor, .1),
|
|
1242
1242
|
1
|
|
1243
1243
|
],
|
|
1244
1244
|
[
|
|
@@ -1260,7 +1260,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1260
1260
|
],
|
|
1261
1261
|
[
|
|
1262
1262
|
"90%",
|
|
1263
|
-
T(
|
|
1263
|
+
T(a)(L.value.evaluationColors.positive, .1),
|
|
1264
1264
|
1
|
|
1265
1265
|
],
|
|
1266
1266
|
[
|
|
@@ -1282,7 +1282,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1282
1282
|
],
|
|
1283
1283
|
[
|
|
1284
1284
|
"90%",
|
|
1285
|
-
T(
|
|
1285
|
+
T(a)(L.value.evaluationColors.negative, .1),
|
|
1286
1286
|
1
|
|
1287
1287
|
],
|
|
1288
1288
|
[
|
|
@@ -1304,7 +1304,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1304
1304
|
],
|
|
1305
1305
|
[
|
|
1306
1306
|
"90%",
|
|
1307
|
-
T(
|
|
1307
|
+
T(a)(L.value.evaluationColors.neutral, .1),
|
|
1308
1308
|
1
|
|
1309
1309
|
],
|
|
1310
1310
|
[
|
|
@@ -1423,7 +1423,7 @@ var We = /* @__PURE__ */ e({ default: () => kt }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1423
1423
|
y: q.value.top + t * Math.max(.1, q.value.rowHeight),
|
|
1424
1424
|
width: Math.max(.1, q.value.width),
|
|
1425
1425
|
height: Math.max(.1, q.value.rowHeight),
|
|
1426
|
-
fill: A.value === null ? "transparent" : A.value === t ? T(
|
|
1426
|
+
fill: A.value === null ? "transparent" : A.value === t ? T(i)(z.value.highlighter.color, z.value.highlighter.opacity) : "transparent",
|
|
1427
1427
|
onMouseenter: (n) => qn({
|
|
1428
1428
|
datapoint: e,
|
|
1429
1429
|
seriesIndex: t
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
2
|
+
import { $ as t, D as n, Dt as r, Ht as i, S as a, X as o, at as s, b as c, en as l, et as u, i as d, n as f, nn as p, nt as m, r as h, t as g, w as _, zt as ee } from "./lib-D4wK6ljP.js";
|
|
3
|
+
import { n as v, t as y } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as b } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
+
import { t as x } from "./usePrinter-DdW2GSm0.js";
|
|
6
|
+
import { n as S, t as te } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as ne } from "./useNestedProp-DR_8JPol.js";
|
|
8
|
+
import { t as re } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as ie } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as ae } from "./img-
|
|
11
|
-
import { n as oe } from "./Title-
|
|
10
|
+
import { t as ae } from "./img-Bb5rHcpO.js";
|
|
11
|
+
import { n as oe } from "./Title-BMCuINbv.js";
|
|
12
12
|
import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as ce, t as le } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as ue } from "./A11yDataTable-DdRsVULz.js";
|
|
15
15
|
import { t as de } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
16
|
import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as pe } from "./Legend-
|
|
17
|
+
import { t as pe } from "./Legend-CulFgjUY.js";
|
|
18
18
|
import { t as me } from "./vue_ui_flow-BewZjjKG.js";
|
|
19
19
|
import { Fragment as he, Teleport as ge, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as _e, createTextVNode as ve, createVNode as ye, defineAsyncComponent as O, guardReactiveProps as k, mergeProps as be, nextTick as xe, normalizeClass as Se, normalizeProps as A, normalizeStyle as j, onMounted as Ce, openBlock as M, ref as N, renderList as we, renderSlot as P, resolveDynamicComponent as Te, toDisplayString as F, toRefs as Ee, unref as I, watch as De, withCtx as L } from "vue";
|
|
20
20
|
//#region src/components/vue-ui-flow.vue
|
|
@@ -90,7 +90,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
90
90
|
},
|
|
91
91
|
emits: ["copyAlt"],
|
|
92
92
|
setup(e, { expose: se, emit: Oe }) {
|
|
93
|
-
let Ye = O(() => import("./Tooltip-
|
|
93
|
+
let Ye = O(() => import("./Tooltip-C4ZTwkLF.js")), Xe = O(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Ze = O(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Qe = O(() => import("./DataTable-CjF_An2h.js")), $e = O(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), et = O(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), tt = O(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), nt = O(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_flow: rt } = b(), { isThemeValid: it, warnInvalidTheme: at } = re(), R = e, ot = Oe, z = N(o()), B = N(null), st = N(0), ct = N(0), lt = N(!1), ut = N(""), dt = N(null), ft = N(null), pt = N(null), mt = N(null), ht = N(null), gt = N(!1), _t = N(null), vt = N(null), yt = N(null), bt = N(null), V = N(null), xt = N({
|
|
94
94
|
x: 0,
|
|
95
95
|
y: 0
|
|
96
96
|
}), St = N("pointer"), Ct = N(!1), wt = C(() => !!R.dataset && R.dataset.length);
|
|
@@ -102,13 +102,13 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
102
102
|
H.value = e, st.value += 1;
|
|
103
103
|
}
|
|
104
104
|
let U = N(Lt()), W = C(() => U.value.style.chart.nodes.labels), G = C(() => U.value.style.chart.nodes), Et = C(() => U.value.style.chart.links), K = C(() => U.value.style.chart);
|
|
105
|
-
|
|
105
|
+
v({
|
|
106
106
|
config: () => U.value,
|
|
107
107
|
dataset: () => R.dataset,
|
|
108
108
|
component: "VueUiFlow",
|
|
109
|
-
rules: [
|
|
109
|
+
rules: [y.emptyArray, y.noHint]
|
|
110
110
|
});
|
|
111
|
-
let Dt = C(() => U.value.userOptions.useCursorPointer), Ot = C(() =>
|
|
111
|
+
let Dt = C(() => U.value.userOptions.useCursorPointer), Ot = C(() => p({
|
|
112
112
|
defaultConfig: {
|
|
113
113
|
userOptions: { show: !1 },
|
|
114
114
|
nodeCategories: {
|
|
@@ -131,7 +131,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
131
131
|
} }
|
|
132
132
|
},
|
|
133
133
|
userConfig: U.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading: kt, FINAL_DATASET: At, manualLoading: jt } =
|
|
134
|
+
})), { loading: kt, FINAL_DATASET: At, manualLoading: jt } = S({
|
|
135
135
|
...Ee(R),
|
|
136
136
|
FINAL_CONFIG: U,
|
|
137
137
|
prepareConfig: Lt,
|
|
@@ -173,17 +173,17 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
173
173
|
"#AAAAAA"
|
|
174
174
|
]
|
|
175
175
|
],
|
|
176
|
-
skeletonConfig:
|
|
176
|
+
skeletonConfig: p({
|
|
177
177
|
defaultConfig: U.value,
|
|
178
178
|
userConfig: Ot.value
|
|
179
179
|
})
|
|
180
180
|
}), Mt = C(() => U.value.debug);
|
|
181
181
|
function Nt() {
|
|
182
|
-
if (
|
|
182
|
+
if (ee(R.dataset) && (s({
|
|
183
183
|
componentName: "VueUiFlow",
|
|
184
184
|
type: "dataset",
|
|
185
185
|
debug: Mt.value
|
|
186
|
-
}), jt.value = !0),
|
|
186
|
+
}), jt.value = !0), ee(R.dataset) || (jt.value = U.value.loading), U.value.responsive) {
|
|
187
187
|
let e = ce(() => {
|
|
188
188
|
let { width: e, height: t } = le({
|
|
189
189
|
chart: B.value,
|
|
@@ -200,23 +200,23 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
200
200
|
}
|
|
201
201
|
let { userOptionsVisible: Pt, setUserOptionsVisibility: Ft, keepUserOptionState: It } = de({ config: U.value }), { svgRef: q } = fe({ config: K.value.title });
|
|
202
202
|
function Lt() {
|
|
203
|
-
let e =
|
|
203
|
+
let e = ne({
|
|
204
204
|
userConfig: R.config,
|
|
205
205
|
defaultConfig: rt
|
|
206
|
-
}), t = e,
|
|
207
|
-
if (
|
|
206
|
+
}), t = e, n = e.theme;
|
|
207
|
+
if (n) {
|
|
208
208
|
if (!it.value(e)) at(e), t = e;
|
|
209
209
|
else {
|
|
210
|
-
let
|
|
211
|
-
userConfig: me[
|
|
210
|
+
let r = ne({
|
|
211
|
+
userConfig: me[n] || R.config,
|
|
212
212
|
defaultConfig: e
|
|
213
213
|
});
|
|
214
214
|
t = {
|
|
215
|
-
...
|
|
215
|
+
...ne({
|
|
216
216
|
userConfig: R.config,
|
|
217
|
-
defaultConfig:
|
|
217
|
+
defaultConfig: r
|
|
218
218
|
}),
|
|
219
|
-
customPalette: e.customPalette.length ? e.customPalette : n
|
|
219
|
+
customPalette: e.customPalette.length ? e.customPalette : l[n] || i
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
} else t = e;
|
|
@@ -224,7 +224,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
224
224
|
}
|
|
225
225
|
let Rt = N(K.value.width), zt = N(K.value.height);
|
|
226
226
|
function Bt(e) {
|
|
227
|
-
let t =
|
|
227
|
+
let t = u(e);
|
|
228
228
|
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
229
229
|
}
|
|
230
230
|
let Vt = Bt(R.config);
|
|
@@ -240,11 +240,11 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
240
240
|
}, { deep: !0 }), De(() => R.dataset, (e) => {
|
|
241
241
|
Array.isArray(e) && e.length > 0 && (jt.value = !1);
|
|
242
242
|
}, { deep: !0 });
|
|
243
|
-
let { isPrinting: Ht, isImaging: Ut, generatePdf: Wt, generateImage: Gt } =
|
|
243
|
+
let { isPrinting: Ht, isImaging: Ut, generatePdf: Wt, generateImage: Gt } = x({
|
|
244
244
|
elementId: `flow_${z.value}`,
|
|
245
245
|
fileName: K.value.title.text || "vue-ui-flow",
|
|
246
246
|
options: U.value.userOptions.print
|
|
247
|
-
}), Kt = C(() => U.value.userOptions.show && !K.value.title.text), qt = C(() =>
|
|
247
|
+
}), Kt = C(() => U.value.userOptions.show && !K.value.title.text), qt = C(() => _(U.value.customPalette)), Jt = C(() => G.value.width), J = N({
|
|
248
248
|
showTable: U.value.table.show,
|
|
249
249
|
showTooltip: K.value.tooltip.show
|
|
250
250
|
});
|
|
@@ -257,8 +257,8 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
257
257
|
let Yt = C(() => !At.value || !At.value.length ? [] : At.value.map((e, t) => [
|
|
258
258
|
e[0],
|
|
259
259
|
e[1],
|
|
260
|
-
|
|
261
|
-
e[3] ?
|
|
260
|
+
c(e[2]),
|
|
261
|
+
e[3] ? a(e[3]) : qt.value[t] || qt.value[t % qt.value.length] || i[t] || i[t % i.length]
|
|
262
262
|
]));
|
|
263
263
|
function Xt(e) {
|
|
264
264
|
let t = {}, n = {};
|
|
@@ -269,7 +269,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
269
269
|
outflow: 0,
|
|
270
270
|
children: [],
|
|
271
271
|
color: null,
|
|
272
|
-
uid:
|
|
272
|
+
uid: o()
|
|
273
273
|
}), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
|
|
274
274
|
}
|
|
275
275
|
e.forEach(([e, n, i]) => {
|
|
@@ -279,24 +279,24 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
279
279
|
value: i
|
|
280
280
|
}), t[e].outflow += i, t[n].inflow += i;
|
|
281
281
|
});
|
|
282
|
-
let
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
let a = new Set(e.map(([e]) => e)), s = new Set(e.map(([, e]) => e)), l = Array.from(a).filter((e) => !s.has(e)), u = {};
|
|
283
|
+
l.forEach((e, t) => {
|
|
284
|
+
u[e] = qt.value[t] || i[t % i.length];
|
|
285
285
|
});
|
|
286
286
|
let d = {};
|
|
287
287
|
e.forEach(([e, t, n, r]) => {
|
|
288
288
|
r && (d[e] = r, d[t] = r);
|
|
289
289
|
}), Object.keys(t).forEach((e, n) => {
|
|
290
|
-
let r = U.value.nodeCategories?.[e],
|
|
291
|
-
t[e].color = d[e] ||
|
|
290
|
+
let r = U.value.nodeCategories?.[e], a = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
291
|
+
t[e].color = d[e] || a || (l.includes(e) ? u[e] : null) || i[n % i.length];
|
|
292
292
|
}), Object.keys(t).forEach((e) => {
|
|
293
293
|
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
294
294
|
});
|
|
295
|
-
let f = $t.value,
|
|
296
|
-
function
|
|
295
|
+
let f = $t.value, p = en.value.width, m = en.value.height, h = Object.keys(n).map(Number).sort((e, t) => e - t), g = h.length || 1, _ = g > 1 ? p / (g - 1) : 0, ee = Number(Jt.value), v = Number(G.value.gapPx ?? G.value.gap ?? 8), y = Number(G.value.minHeight || 0);
|
|
296
|
+
function b(e) {
|
|
297
297
|
let r = n[e], i = r.length;
|
|
298
298
|
if (!i) return Infinity;
|
|
299
|
-
let a = Math.max(0, (i - 1) *
|
|
299
|
+
let a = Math.max(0, (i - 1) * v), o = Math.max(0, m - a), s = Math.min(y, i ? o / i : 0), c = 0, l = r.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
|
|
300
300
|
for (let e = 0; e < 12; e += 1) {
|
|
301
301
|
let e = u > 0 ? (o - c) / u : 0, t = [];
|
|
302
302
|
for (let n = 0; n < l.length; n += 1) {
|
|
@@ -309,58 +309,58 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
309
309
|
}
|
|
310
310
|
return u > 0 ? Math.max(0, (o - c) / u) : 0;
|
|
311
311
|
}
|
|
312
|
-
let
|
|
313
|
-
|
|
314
|
-
let r = n[e], i = r.length, a = Math.max(0, (i - 1) *
|
|
312
|
+
let x = h.map(b), S = x.length ? Math.min(...x) : 0, te = {};
|
|
313
|
+
h.forEach((e) => {
|
|
314
|
+
let r = n[e], i = r.length, a = Math.max(0, (i - 1) * v), s = Math.max(0, m - a), c = Math.min(y, i ? s / i : 0), l = r.map((e) => Math.max(c, (t[e].value || 0) * S)), u = l.reduce((e, t) => e + t, 0) + a, d = Math.max(0, (m - u) / 2);
|
|
315
315
|
r.forEach((n, r) => {
|
|
316
|
-
let a = l[r],
|
|
317
|
-
|
|
318
|
-
x:
|
|
319
|
-
y:
|
|
320
|
-
absoluteY:
|
|
316
|
+
let a = l[r], s = f.left + e * _, c = d;
|
|
317
|
+
te[n] = {
|
|
318
|
+
x: s,
|
|
319
|
+
y: c,
|
|
320
|
+
absoluteY: c,
|
|
321
321
|
height: a,
|
|
322
322
|
i: r,
|
|
323
323
|
color: t[n].color,
|
|
324
324
|
value: t[n].value,
|
|
325
|
-
id:
|
|
326
|
-
}, d += a, r < i - 1 && (d +=
|
|
325
|
+
id: o()
|
|
326
|
+
}, d += a, r < i - 1 && (d += v);
|
|
327
327
|
});
|
|
328
328
|
});
|
|
329
|
-
let
|
|
329
|
+
let ne = [], re = f.top, ie = {}, ae = {};
|
|
330
330
|
Object.keys(t).forEach((e) => {
|
|
331
|
-
ie[e] =
|
|
331
|
+
ie[e] = te[e]?.y ?? 0, ae[e] = 0;
|
|
332
332
|
});
|
|
333
333
|
let oe = !!Et.value.smooth, se = .5;
|
|
334
|
-
return
|
|
334
|
+
return h.forEach((e) => {
|
|
335
335
|
n[e].forEach((e) => {
|
|
336
|
-
let n = t[e], r =
|
|
336
|
+
let n = t[e], r = te[e];
|
|
337
337
|
if (!n.children || !n.children.length) return;
|
|
338
338
|
let i = r.y;
|
|
339
|
-
n.children.forEach(({ target: a, value:
|
|
340
|
-
let
|
|
341
|
-
ae[a] +=
|
|
342
|
-
let
|
|
343
|
-
(
|
|
344
|
-
let
|
|
345
|
-
if (!oe ||
|
|
339
|
+
n.children.forEach(({ target: a, value: s }) => {
|
|
340
|
+
let l = te[a], u = t[a], d = n.outflow > 0 ? s / n.outflow : 0, f = u.inflow > 0 ? s / u.inflow : 0, p = c(i + re), m = c(i + d * r.height + re), h = ie[a], g = h + f * l.height;
|
|
341
|
+
ae[a] += s;
|
|
342
|
+
let _ = u.inflow > 0 && ae[a] >= u.inflow - 1e-6, v = l.y + l.height;
|
|
343
|
+
(_ || g > v - .25) && (g = v);
|
|
344
|
+
let y = c(h + re), b = c(g + re), x = c(r.x + ee), S = c(l.x), ce;
|
|
345
|
+
if (!oe || S <= x) ce = `M ${x} ${p} L ${x} ${m} L ${S} ${b} L ${S} ${y} Z`;
|
|
346
346
|
else {
|
|
347
|
-
let e =
|
|
348
|
-
ce = `M ${
|
|
347
|
+
let e = S - x, t = c(x + e * se), n = c(S - e * se), r = p, i = y, a = m, o = b;
|
|
348
|
+
ce = `M ${x} ${r} C ${t} ${r}, ${n} ${i}, ${S} ${i} L ${S} ${o} C ${n} ${o}, ${t} ${a}, ${x} ${a} Z`;
|
|
349
349
|
}
|
|
350
|
-
|
|
351
|
-
id:
|
|
350
|
+
ne.push({
|
|
351
|
+
id: o(),
|
|
352
352
|
source: e,
|
|
353
353
|
target: a,
|
|
354
354
|
path: ce,
|
|
355
|
-
value:
|
|
355
|
+
value: s,
|
|
356
356
|
sourceColor: n.color,
|
|
357
357
|
targetColor: t[a].color
|
|
358
|
-
}), i =
|
|
358
|
+
}), i = m - re, ie[a] = g;
|
|
359
359
|
});
|
|
360
360
|
});
|
|
361
361
|
}), {
|
|
362
|
-
nodeCoordinates:
|
|
363
|
-
links:
|
|
362
|
+
nodeCoordinates: te,
|
|
363
|
+
links: ne
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
let Y = C(() => {
|
|
@@ -399,44 +399,44 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
399
399
|
y: n.top + n.height / 2
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
|
-
function ln(e, n,
|
|
403
|
-
$.value = [], X.value = nn(e.name), Z.value = e.name, on.value = e.id, St.value =
|
|
404
|
-
let o = e.name, s = Yt.value, c = 0, l = 0, u = [],
|
|
402
|
+
function ln(e, n, i = "pointer", a = null) {
|
|
403
|
+
$.value = [], X.value = nn(e.name), Z.value = e.name, on.value = e.id, St.value = i, bt.value = a, V.value = e.id;
|
|
404
|
+
let o = e.name, s = Yt.value, c = 0, l = 0, u = [], f = [], p = new Set(s.map(([e]) => e)), m = new Set(s.map(([, e]) => e)), h = Array.from(p).filter((e) => !m.has(e)), g = s.filter(([e]) => h.includes(e)).reduce((e, [t, n, r]) => e + r, 0), _ = {};
|
|
405
405
|
Y.value.nodes.forEach((e) => {
|
|
406
|
-
|
|
406
|
+
_[e.name] = e.color;
|
|
407
407
|
}), s.forEach(([e, t, n]) => {
|
|
408
408
|
t === o && (c += n, u.push({
|
|
409
409
|
source: e,
|
|
410
410
|
value: n,
|
|
411
|
-
color:
|
|
412
|
-
})), e === o && (l += n,
|
|
411
|
+
color: _[e]
|
|
412
|
+
})), e === o && (l += n, f.push({
|
|
413
413
|
target: t,
|
|
414
414
|
value: n,
|
|
415
|
-
color:
|
|
415
|
+
color: _[t]
|
|
416
416
|
}));
|
|
417
417
|
});
|
|
418
|
-
let
|
|
418
|
+
let ee = g > 0 ? Math.max(c, l) / g * 100 : 0, v = {
|
|
419
419
|
name: o,
|
|
420
420
|
inflow: c,
|
|
421
421
|
outflow: l,
|
|
422
422
|
from: u,
|
|
423
|
-
to:
|
|
424
|
-
percentOfTotal:
|
|
425
|
-
color:
|
|
423
|
+
to: f,
|
|
424
|
+
percentOfTotal: ee,
|
|
425
|
+
color: _[o] || "#000000"
|
|
426
426
|
};
|
|
427
427
|
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
428
|
-
datapoint:
|
|
428
|
+
datapoint: v,
|
|
429
429
|
seriesIndex: n
|
|
430
430
|
}), rn.value = {
|
|
431
|
-
datapoint:
|
|
431
|
+
datapoint: v,
|
|
432
432
|
config: U.value,
|
|
433
433
|
seriesIndex: n,
|
|
434
434
|
series: Y.value
|
|
435
435
|
}, lt.value = !0;
|
|
436
|
-
let
|
|
437
|
-
if (an.value = !1,
|
|
438
|
-
let e =
|
|
439
|
-
datapoint:
|
|
436
|
+
let y = "", b = K.value.tooltip.customFormat;
|
|
437
|
+
if (an.value = !1, r(b)) try {
|
|
438
|
+
let e = b({
|
|
439
|
+
datapoint: v,
|
|
440
440
|
series: Y.value,
|
|
441
441
|
config: U.value
|
|
442
442
|
});
|
|
@@ -447,27 +447,27 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
447
447
|
if (!an.value) {
|
|
448
448
|
let e = K.value.tooltip.showPercentage ? `<div>${t({
|
|
449
449
|
p: K.value.tooltip.translations.percentOfTotal,
|
|
450
|
-
v:
|
|
450
|
+
v: v.percentOfTotal,
|
|
451
451
|
s: "%",
|
|
452
452
|
r: K.value.tooltip.roundingPercentage
|
|
453
453
|
})}</div>` : "";
|
|
454
|
-
|
|
455
|
-
|
|
454
|
+
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${K.value.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>${K.value.tooltip.translations.from}</div>`, v.from.forEach((e) => {
|
|
455
|
+
y += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(W.value.formatter, e.value, t({
|
|
456
456
|
p: W.value.prefix,
|
|
457
457
|
v: e.value,
|
|
458
458
|
s: W.value.suffix,
|
|
459
459
|
r: W.value.rounding
|
|
460
460
|
}))}</div>`;
|
|
461
|
-
})),
|
|
462
|
-
|
|
461
|
+
})), v.to.length && (y += `<div style="margin-top:6px;">${K.value.tooltip.translations.to}</div>`, v.to.forEach((e) => {
|
|
462
|
+
y += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(W.value.formatter, e.value, t({
|
|
463
463
|
p: W.value.prefix,
|
|
464
464
|
v: e.value,
|
|
465
465
|
s: W.value.suffix,
|
|
466
466
|
r: W.value.rounding
|
|
467
467
|
}))}</div>`;
|
|
468
|
-
})), ut.value =
|
|
468
|
+
})), ut.value = y;
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
i === "keyboard" && xe(() => {
|
|
471
471
|
cn(e.id);
|
|
472
472
|
});
|
|
473
473
|
}
|
|
@@ -498,7 +498,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
498
498
|
[e.source],
|
|
499
499
|
[e.target],
|
|
500
500
|
[e.value]
|
|
501
|
-
]),
|
|
501
|
+
]), r = [
|
|
502
502
|
[K.value.title.text],
|
|
503
503
|
[K.value.title.subtitle.text],
|
|
504
504
|
[
|
|
@@ -506,8 +506,8 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
506
506
|
[U.value.table.columnNames.target],
|
|
507
507
|
[U.value.table.columnNames.value]
|
|
508
508
|
]
|
|
509
|
-
].concat(t), i = r
|
|
510
|
-
e ? e(i) :
|
|
509
|
+
].concat(t), i = n(r);
|
|
510
|
+
e ? e(i) : m({
|
|
511
511
|
csvContent: i,
|
|
512
512
|
title: K.value.title.text || "vue-ui-flow"
|
|
513
513
|
});
|
|
@@ -565,7 +565,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
565
565
|
...e,
|
|
566
566
|
index: t,
|
|
567
567
|
centerX: e.x + Jt.value / 2,
|
|
568
|
-
centerY:
|
|
568
|
+
centerY: c(e.absoluteY) + K.value.padding.top + e.height / 2
|
|
569
569
|
})).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = C(() => {
|
|
570
570
|
let e = [];
|
|
571
571
|
return gn.value.forEach((t) => {
|
|
@@ -600,7 +600,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
600
600
|
let e = new Set(Y.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
601
601
|
return Array.from(e).map((e) => ({
|
|
602
602
|
name: e,
|
|
603
|
-
color: U.value.nodeCategoryColors[e] ||
|
|
603
|
+
color: U.value.nodeCategoryColors[e] || i[0],
|
|
604
604
|
shape: "square",
|
|
605
605
|
count: Y.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
606
606
|
})).map((e, t) => {
|
|
@@ -978,7 +978,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
978
978
|
D("div", Ne, [(M(), E("svg", {
|
|
979
979
|
ref_key: "svgRef",
|
|
980
980
|
ref: q,
|
|
981
|
-
xmlns: I(
|
|
981
|
+
xmlns: I(g),
|
|
982
982
|
"aria-describedby": `chart-instructions-${z.value}`,
|
|
983
983
|
viewBox: `0 0 ${tn.value.width} ${tn.value.height}`,
|
|
984
984
|
class: Se({
|
|
@@ -1034,8 +1034,8 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
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(c)(e.absoluteY) + K.value.padding.top,
|
|
1038
|
+
height: I(c)(e.height),
|
|
1039
1039
|
width: Jt.value,
|
|
1040
1040
|
fill: e.color,
|
|
1041
1041
|
stroke: G.value.stroke,
|
|
@@ -1045,7 +1045,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
1045
1045
|
opacity: X.value ? X.value.includes(e.name) ? 1 : .3 : 1,
|
|
1046
1046
|
outline: on.value !== null && on.value === e.id ? "2px solid currentColor" : void 0
|
|
1047
1047
|
}),
|
|
1048
|
-
"aria-label": `${e.name}: ${I(
|
|
1048
|
+
"aria-label": `${e.name}: ${I(d)(W.value.formatter, e.value, I(t)({
|
|
1049
1049
|
p: W.value.prefix,
|
|
1050
1050
|
v: e.value,
|
|
1051
1051
|
s: W.value.suffix,
|
|
@@ -1057,22 +1057,22 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
1057
1057
|
}, null, 44, Be))), 256)),
|
|
1058
1058
|
W.value.show ? (M(), E("g", Ve, [(M(!0), E(he, null, we(Y.value.nodes, (e, t) => (M(), E("text", {
|
|
1059
1059
|
x: e.x + Jt.value / 2,
|
|
1060
|
-
y: (W.value.showValue ? I(
|
|
1060
|
+
y: (W.value.showValue ? I(c)(e.absoluteY + e.height / 2 - W.value.fontSize / 4) : e.absoluteY + e.height / 2 + W.value.fontSize / 3) + K.value.padding.top,
|
|
1061
1061
|
"font-size": W.value.fontSize,
|
|
1062
|
-
fill: I(
|
|
1062
|
+
fill: I(h)(e.color),
|
|
1063
1063
|
"text-anchor": "middle",
|
|
1064
1064
|
style: j(`pointer-events: none; opacity:${X.value ? +!!X.value.includes(e.name) : 1}`)
|
|
1065
|
-
}, F(W.value.abbreviation.use ? I(
|
|
1065
|
+
}, F(W.value.abbreviation.use ? I(f)({
|
|
1066
1066
|
source: e.name,
|
|
1067
1067
|
length: G.value.labels.abbreviation.length
|
|
1068
1068
|
}) : e.name), 13, He))), 256)), W.value.showValue ? (M(!0), E(he, { key: 0 }, we(Y.value.nodes, (e, n) => (M(), E("text", {
|
|
1069
1069
|
x: e.x + Jt.value / 2,
|
|
1070
|
-
y: I(
|
|
1070
|
+
y: I(c)(e.absoluteY + e.height / 2 + W.value.fontSize / 1.3) + K.value.padding.top,
|
|
1071
1071
|
"font-size": W.value.fontSize,
|
|
1072
|
-
fill: I(
|
|
1072
|
+
fill: I(h)(e.color),
|
|
1073
1073
|
"text-anchor": "middle",
|
|
1074
1074
|
style: j(`pointer-events: none; opacity:${X.value ? +!!X.value.includes(e.name) : 1}`)
|
|
1075
|
-
}, F(I(
|
|
1075
|
+
}, F(I(d)(W.value.formatter, e.value, I(t)({
|
|
1076
1076
|
p: W.value.prefix,
|
|
1077
1077
|
v: e.value,
|
|
1078
1078
|
s: W.value.suffix,
|
|
@@ -1221,7 +1221,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je
|
|
|
1221
1221
|
}, null, 8, ["stroke"])], 4)]),
|
|
1222
1222
|
key: "1"
|
|
1223
1223
|
} : void 0]), 1040)) : T("", !0),
|
|
1224
|
-
P(e.$slots, "skeleton", {}, () => [I(kt) ? (M(), w(
|
|
1224
|
+
P(e.$slots, "skeleton", {}, () => [I(kt) ? (M(), w(te, { key: 0 })) : T("", !0)], !0)
|
|
1225
1225
|
], 46, ke));
|
|
1226
1226
|
}
|
|
1227
1227
|
}, [["__scopeId", "data-v-040cb62f"]]);
|