vue-data-ui 3.22.9 → 3.22.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/exposedLib-Ciw6TGtP.js +25 -0
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
- package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +40 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
- package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
- package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
- package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
- package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
- package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
- package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
- package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
- package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
- package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
- package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
- package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
- package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
- package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
- package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
- package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
- package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
- package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
- package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
- package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
- package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
- package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
- package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
- package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
- package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
- package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
- package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
- package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
- package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
- package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
- package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
- package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
- package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
- package/package.json +2 -2
- package/dist/Slicer-CW_XPIKL.js +0 -1150
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as te } from "./useConfig-
|
|
4
|
-
import { t as _ } from "./usePrinter-
|
|
2
|
+
import { At as t, C as n, E as r, Gt as i, K as a, Nt as o, Q as s, Y as c, bt as l, et as u, i as d, n as f, qt as p, r as m, t as h, x as ee, y as g } from "./lib-CFm_J26b.js";
|
|
3
|
+
import { t as te } from "./useConfig-C0V0eG7L.js";
|
|
4
|
+
import { t as _ } from "./usePrinter-BH-xle1O.js";
|
|
5
5
|
import { n as v, t as y } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as b } from "./useSvgExport-
|
|
7
|
-
import { t as x } from "./useNestedProp-
|
|
6
|
+
import { t as b } from "./useSvgExport-Ba9qBr9M.js";
|
|
7
|
+
import { t as x } from "./useNestedProp-BY6DNN3i.js";
|
|
8
8
|
import { t as S } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ne } from "./img-
|
|
10
|
-
import { n as C } from "./Title-
|
|
9
|
+
import { t as ne } from "./img-Bikk1dGb.js";
|
|
10
|
+
import { n as C } from "./Title-BuPs74IB.js";
|
|
11
11
|
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import {
|
|
13
|
-
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
12
|
+
import { l as ie, t as ae } from "./useResponsive-ZtArZtUf.js";
|
|
14
13
|
import { t as oe } from "./A11yDataTable-DdRsVULz.js";
|
|
15
14
|
import { t as se } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
15
|
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as le } from "./Legend-
|
|
16
|
+
import { t as le } from "./Legend-C0xAnJdO.js";
|
|
18
17
|
import { t as ue } from "./vue_ui_flow-BewZjjKG.js";
|
|
19
18
|
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
19
|
//#region src/components/vue-ui-flow.vue
|
|
@@ -87,7 +86,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
87
86
|
},
|
|
88
87
|
emits: ["copyAlt"],
|
|
89
88
|
setup(e, { expose: re, emit: Te }) {
|
|
90
|
-
let Ke = k(() => import("./Tooltip-
|
|
89
|
+
let Ke = k(() => import("./Tooltip-CA1rtSyl.js")), qe = k(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Je = k(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), Ye = k(() => import("./DataTable-DzPEVvSo.js")), Xe = k(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Ze = k(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), Qe = k(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), $e = k(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_flow: et } = te(), { isThemeValid: tt, warnInvalidTheme: nt } = S(), R = e, rt = Te, z = P(a()), B = P(null), it = P(0), at = P(0), ot = P(!1), st = P(""), ct = P(null), lt = P(null), ut = P(null), dt = P(null), ft = P(null), pt = P(!1), mt = P(null), ht = P(null), gt = P(null), _t = P(!1), vt = P(!1), yt = P(null), V = P(null), bt = P({
|
|
91
90
|
x: 0,
|
|
92
91
|
y: 0
|
|
93
92
|
}), xt = P("pointer"), St = P(!1), Ct = w(() => !!R.dataset && R.dataset.length);
|
|
@@ -98,7 +97,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
98
97
|
function wt(e) {
|
|
99
98
|
H.value = e, it.value += 1;
|
|
100
99
|
}
|
|
101
|
-
let U = P(Pt()), W = w(() => U.value.userOptions.useCursorPointer), Tt = w(() =>
|
|
100
|
+
let U = P(Pt()), W = w(() => U.value.userOptions.useCursorPointer), Tt = w(() => p({
|
|
102
101
|
defaultConfig: {
|
|
103
102
|
userOptions: { show: !1 },
|
|
104
103
|
nodeCategories: {
|
|
@@ -163,17 +162,17 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
163
162
|
"#AAAAAA"
|
|
164
163
|
]
|
|
165
164
|
],
|
|
166
|
-
skeletonConfig:
|
|
165
|
+
skeletonConfig: p({
|
|
167
166
|
defaultConfig: U.value,
|
|
168
167
|
userConfig: Tt.value
|
|
169
168
|
})
|
|
170
169
|
}), kt = w(() => !!U.value.debug);
|
|
171
170
|
function At() {
|
|
172
|
-
if (
|
|
171
|
+
if (t(R.dataset) && (u({
|
|
173
172
|
componentName: "VueUiFlow",
|
|
174
173
|
type: "dataset",
|
|
175
174
|
debug: kt.value
|
|
176
|
-
}), Ot.value = !0),
|
|
175
|
+
}), Ot.value = !0), t(R.dataset) || (Ot.value = U.value.loading), U.value.responsive) {
|
|
177
176
|
let e = ie(() => {
|
|
178
177
|
let { width: e, height: t } = ae({
|
|
179
178
|
chart: B.value,
|
|
@@ -205,7 +204,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
205
204
|
userConfig: R.config,
|
|
206
205
|
defaultConfig: r
|
|
207
206
|
}),
|
|
208
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
207
|
+
customPalette: e.customPalette.length ? e.customPalette : i[n] || o
|
|
209
208
|
};
|
|
210
209
|
}
|
|
211
210
|
else t = e;
|
|
@@ -221,7 +220,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
221
220
|
elementId: `flow_${z.value}`,
|
|
222
221
|
fileName: U.value.style.chart.title.text || "vue-ui-flow",
|
|
223
222
|
options: U.value.userOptions.print
|
|
224
|
-
}), Vt = w(() => U.value.userOptions.show && !U.value.style.chart.title.text), Ht = w(() =>
|
|
223
|
+
}), Vt = w(() => U.value.userOptions.show && !U.value.style.chart.title.text), Ht = w(() => n(U.value.customPalette)), Ut = w(() => U.value.style.chart.nodes.width), K = P({
|
|
225
224
|
showTable: U.value.table.show,
|
|
226
225
|
showTooltip: U.value.style.chart.tooltip.show
|
|
227
226
|
});
|
|
@@ -235,45 +234,45 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
235
234
|
e[0],
|
|
236
235
|
e[1],
|
|
237
236
|
g(e[2]),
|
|
238
|
-
e[3] ?
|
|
237
|
+
e[3] ? ee(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || o[t] || o[t % o.length]
|
|
239
238
|
]));
|
|
240
239
|
function Gt(e) {
|
|
241
|
-
let t = {},
|
|
242
|
-
function
|
|
240
|
+
let t = {}, n = {};
|
|
241
|
+
function r(e, r) {
|
|
243
242
|
t[e] || (t[e] = {
|
|
244
243
|
level: null,
|
|
245
244
|
inflow: 0,
|
|
246
245
|
outflow: 0,
|
|
247
246
|
children: [],
|
|
248
247
|
color: null,
|
|
249
|
-
uid:
|
|
250
|
-
}), t[e].level === null && (t[e].level =
|
|
248
|
+
uid: a()
|
|
249
|
+
}), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
|
|
251
250
|
}
|
|
252
|
-
e.forEach(([e, n,
|
|
251
|
+
e.forEach(([e, n, i]) => {
|
|
253
252
|
let a = t[e]?.level ?? 0, o = a + 1;
|
|
254
|
-
|
|
253
|
+
r(e, a), r(n, o), t[e].children.push({
|
|
255
254
|
target: n,
|
|
256
|
-
value:
|
|
257
|
-
}), t[e].outflow +=
|
|
255
|
+
value: i
|
|
256
|
+
}), t[e].outflow += i, t[n].inflow += i;
|
|
258
257
|
});
|
|
259
|
-
let
|
|
258
|
+
let i = new Set(e.map(([e]) => e)), s = new Set(e.map(([, e]) => e)), c = Array.from(i).filter((e) => !s.has(e)), l = {};
|
|
260
259
|
c.forEach((e, t) => {
|
|
261
|
-
l[e] = Ht.value[t] ||
|
|
260
|
+
l[e] = Ht.value[t] || o[t % o.length];
|
|
262
261
|
});
|
|
263
262
|
let u = {};
|
|
264
263
|
e.forEach(([e, t, n, r]) => {
|
|
265
264
|
r && (u[e] = r, u[t] = r);
|
|
266
265
|
}), Object.keys(t).forEach((e, n) => {
|
|
267
266
|
let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
268
|
-
t[e].color = u[e] || i || (c.includes(e) ? l[e] : null) ||
|
|
267
|
+
t[e].color = u[e] || i || (c.includes(e) ? l[e] : null) || o[n % o.length];
|
|
269
268
|
}), Object.keys(t).forEach((e) => {
|
|
270
269
|
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
271
270
|
});
|
|
272
|
-
let d = Jt.value, f = Yt.value.width, p = Yt.value.height, m = Object.keys(
|
|
271
|
+
let d = Jt.value, f = Yt.value.width, p = Yt.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), h = m.length || 1, ee = h > 1 ? f / (h - 1) : 0, te = Number(Ut.value), _ = Number(U.value.style.chart.nodes.gapPx ?? U.value.style.chart.nodes.gap ?? 8), v = Number(U.value.style.chart.nodes.minHeight || 0);
|
|
273
272
|
function y(e) {
|
|
274
|
-
let
|
|
273
|
+
let r = n[e], i = r.length;
|
|
275
274
|
if (!i) return Infinity;
|
|
276
|
-
let a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), c = 0, l =
|
|
275
|
+
let a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), c = 0, l = r.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
|
|
277
276
|
for (let e = 0; e < 12; e += 1) {
|
|
278
277
|
let e = u > 0 ? (o - c) / u : 0, t = [];
|
|
279
278
|
for (let n = 0; n < l.length; n += 1) {
|
|
@@ -288,19 +287,19 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
288
287
|
}
|
|
289
288
|
let b = m.map(y), x = b.length ? Math.min(...b) : 0, S = {};
|
|
290
289
|
m.forEach((e) => {
|
|
291
|
-
let
|
|
292
|
-
|
|
293
|
-
let o = l[
|
|
294
|
-
S[
|
|
290
|
+
let r = n[e], i = r.length, o = Math.max(0, (i - 1) * _), s = Math.max(0, p - o), c = Math.min(v, i ? s / i : 0), l = r.map((e) => Math.max(c, (t[e].value || 0) * x)), u = l.reduce((e, t) => e + t, 0) + o, f = Math.max(0, (p - u) / 2);
|
|
291
|
+
r.forEach((n, r) => {
|
|
292
|
+
let o = l[r], s = d.left + e * ee, c = f;
|
|
293
|
+
S[n] = {
|
|
295
294
|
x: s,
|
|
296
295
|
y: c,
|
|
297
296
|
absoluteY: c,
|
|
298
297
|
height: o,
|
|
299
|
-
i,
|
|
300
|
-
color: t[
|
|
301
|
-
value: t[
|
|
302
|
-
id:
|
|
303
|
-
}, f += o,
|
|
298
|
+
i: r,
|
|
299
|
+
color: t[n].color,
|
|
300
|
+
value: t[n].value,
|
|
301
|
+
id: a()
|
|
302
|
+
}, f += o, r < i - 1 && (f += _);
|
|
304
303
|
});
|
|
305
304
|
});
|
|
306
305
|
let ne = [], C = d.top, re = {}, ie = {};
|
|
@@ -309,30 +308,30 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
309
308
|
});
|
|
310
309
|
let ae = !!U.value.style.chart.links.smooth, oe = .5;
|
|
311
310
|
return m.forEach((e) => {
|
|
312
|
-
|
|
313
|
-
let
|
|
314
|
-
if (!
|
|
315
|
-
let
|
|
316
|
-
|
|
317
|
-
let c = S[o], l = t[o], u =
|
|
311
|
+
n[e].forEach((e) => {
|
|
312
|
+
let n = t[e], r = S[e];
|
|
313
|
+
if (!n.children || !n.children.length) return;
|
|
314
|
+
let i = r.y;
|
|
315
|
+
n.children.forEach(({ target: o, value: s }) => {
|
|
316
|
+
let c = S[o], l = t[o], u = n.outflow > 0 ? s / n.outflow : 0, d = l.inflow > 0 ? s / l.inflow : 0, f = g(i + C), p = g(i + u * r.height + C), m = re[o], h = m + d * c.height;
|
|
318
317
|
ie[o] += s;
|
|
319
318
|
let ee = l.inflow > 0 && ie[o] >= l.inflow - 1e-6, _ = c.y + c.height;
|
|
320
319
|
(ee || h > _ - .25) && (h = _);
|
|
321
|
-
let v = g(m + C), y = g(h + C), b = g(
|
|
320
|
+
let v = g(m + C), y = g(h + C), b = g(r.x + te), x = g(c.x), se;
|
|
322
321
|
if (!ae || x <= b) se = `M ${b} ${f} L ${b} ${p} L ${x} ${y} L ${x} ${v} Z`;
|
|
323
322
|
else {
|
|
324
323
|
let e = x - b, t = g(b + e * oe), n = g(x - e * oe), r = f, i = v, a = p, o = y;
|
|
325
324
|
se = `M ${b} ${r} C ${t} ${r}, ${n} ${i}, ${x} ${i} L ${x} ${o} C ${n} ${o}, ${t} ${a}, ${b} ${a} Z`;
|
|
326
325
|
}
|
|
327
326
|
ne.push({
|
|
328
|
-
id:
|
|
327
|
+
id: a(),
|
|
329
328
|
source: e,
|
|
330
329
|
target: o,
|
|
331
330
|
path: se,
|
|
332
331
|
value: s,
|
|
333
|
-
sourceColor:
|
|
332
|
+
sourceColor: n.color,
|
|
334
333
|
targetColor: t[o].color
|
|
335
|
-
}),
|
|
334
|
+
}), i = p - C, re[o] = h;
|
|
336
335
|
});
|
|
337
336
|
});
|
|
338
337
|
}), {
|
|
@@ -376,30 +375,30 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
376
375
|
y: n.top + n.height / 2
|
|
377
376
|
};
|
|
378
377
|
}
|
|
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
|
|
378
|
+
function nn(e, t, n = "pointer", r = null) {
|
|
379
|
+
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = n, yt.value = r, V.value = e.id;
|
|
380
|
+
let i = e.name, a = Wt.value, o = 0, s = 0, u = [], f = [], p = new Set(a.map(([e]) => e)), m = new Set(a.map(([, e]) => e)), h = Array.from(p).filter((e) => !m.has(e)), ee = a.filter(([e]) => h.includes(e)).reduce((e, [t, n, r]) => e + r, 0), g = {};
|
|
382
381
|
q.value.nodes.forEach((e) => {
|
|
383
382
|
g[e.name] = e.color;
|
|
384
|
-
}),
|
|
385
|
-
t ===
|
|
383
|
+
}), a.forEach(([e, t, n]) => {
|
|
384
|
+
t === i && (o += n, u.push({
|
|
386
385
|
source: e,
|
|
387
386
|
value: n,
|
|
388
387
|
color: g[e]
|
|
389
|
-
})), e ===
|
|
388
|
+
})), e === i && (s += n, f.push({
|
|
390
389
|
target: t,
|
|
391
390
|
value: n,
|
|
392
391
|
color: g[t]
|
|
393
392
|
}));
|
|
394
393
|
});
|
|
395
|
-
let te =
|
|
396
|
-
name:
|
|
397
|
-
inflow:
|
|
398
|
-
outflow:
|
|
399
|
-
from:
|
|
400
|
-
to:
|
|
394
|
+
let te = ee > 0 ? Math.max(o, s) / ee * 100 : 0, _ = {
|
|
395
|
+
name: i,
|
|
396
|
+
inflow: o,
|
|
397
|
+
outflow: s,
|
|
398
|
+
from: u,
|
|
399
|
+
to: f,
|
|
401
400
|
percentOfTotal: te,
|
|
402
|
-
color: g[
|
|
401
|
+
color: g[i] || "#000000"
|
|
403
402
|
};
|
|
404
403
|
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
405
404
|
datapoint: _,
|
|
@@ -411,7 +410,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
411
410
|
series: q.value
|
|
412
411
|
}, ot.value = !0;
|
|
413
412
|
let v = "", y = U.value.style.chart.tooltip.customFormat;
|
|
414
|
-
if (Qt.value = !1,
|
|
413
|
+
if (Qt.value = !1, l(y)) try {
|
|
415
414
|
let e = y({
|
|
416
415
|
datapoint: _,
|
|
417
416
|
series: q.value,
|
|
@@ -422,21 +421,21 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
422
421
|
console.warn("Custom format cannot be applied.");
|
|
423
422
|
}
|
|
424
423
|
if (!Qt.value) {
|
|
425
|
-
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${
|
|
424
|
+
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${c({
|
|
426
425
|
p: U.value.style.chart.tooltip.translations.percentOfTotal,
|
|
427
426
|
v: _.percentOfTotal,
|
|
428
427
|
s: "%",
|
|
429
428
|
r: U.value.style.chart.tooltip.roundingPercentage
|
|
430
429
|
})}</div>` : "";
|
|
431
430
|
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,
|
|
431
|
+
v += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(U.value.style.chart.nodes.labels.formatter, e.value, c({
|
|
433
432
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
434
433
|
v: e.value,
|
|
435
434
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
436
435
|
r: U.value.style.chart.nodes.labels.rounding
|
|
437
436
|
}))}</div>`;
|
|
438
437
|
})), _.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,
|
|
438
|
+
v += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(U.value.style.chart.nodes.labels.formatter, e.value, c({
|
|
440
439
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
441
440
|
v: e.value,
|
|
442
441
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -475,7 +474,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
475
474
|
[e.source],
|
|
476
475
|
[e.target],
|
|
477
476
|
[e.value]
|
|
478
|
-
]), n =
|
|
477
|
+
]), n = r([
|
|
479
478
|
[U.value.style.chart.title.text],
|
|
480
479
|
[U.value.style.chart.title.subtitle.text],
|
|
481
480
|
[
|
|
@@ -484,7 +483,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
484
483
|
[U.value.table.columnNames.value]
|
|
485
484
|
]
|
|
486
485
|
].concat(t));
|
|
487
|
-
e ? e(n) :
|
|
486
|
+
e ? e(n) : s({
|
|
488
487
|
csvContent: n,
|
|
489
488
|
title: U.value.style.chart.title.text || "vue-ui-flow"
|
|
490
489
|
});
|
|
@@ -506,7 +505,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
506
505
|
name: e.target,
|
|
507
506
|
shape: "square"
|
|
508
507
|
},
|
|
509
|
-
|
|
508
|
+
c({
|
|
510
509
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
511
510
|
v: e.value,
|
|
512
511
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -577,7 +576,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
577
576
|
let e = new Set(q.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
578
577
|
return Array.from(e).map((e) => ({
|
|
579
578
|
name: e,
|
|
580
|
-
color: U.value.nodeCategoryColors[e] ||
|
|
579
|
+
color: U.value.nodeCategoryColors[e] || o[0],
|
|
581
580
|
shape: "square",
|
|
582
581
|
count: q.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
583
582
|
})).map((e, t) => {
|
|
@@ -1045,7 +1044,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1045
1044
|
opacity: J.value ? J.value.includes(e.name) ? 1 : .3 : 1,
|
|
1046
1045
|
outline: $t.value !== null && $t.value === e.id ? "2px solid currentColor" : void 0
|
|
1047
1046
|
}),
|
|
1048
|
-
"aria-label": `${e.name}: ${I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(
|
|
1047
|
+
"aria-label": `${e.name}: ${I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(c)({
|
|
1049
1048
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1050
1049
|
v: e.value,
|
|
1051
1050
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -1062,7 +1061,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1062
1061
|
fill: I(m)(e.color),
|
|
1063
1062
|
"text-anchor": "middle",
|
|
1064
1063
|
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(
|
|
1064
|
+
}, Se(U.value.style.chart.nodes.labels.abbreviation.use ? I(f)({
|
|
1066
1065
|
source: e.name,
|
|
1067
1066
|
length: U.value.style.chart.nodes.labels.abbreviation.length
|
|
1068
1067
|
}) : e.name), 13, ze))), 256)), U.value.style.chart.nodes.labels.showValue ? (N(!0), D(de, { key: 0 }, be(q.value.nodes, (e, t) => (N(), D("text", {
|
|
@@ -1072,7 +1071,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1072
1071
|
fill: I(m)(e.color),
|
|
1073
1072
|
"text-anchor": "middle",
|
|
1074
1073
|
style: M(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1075
|
-
}, Se(I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(
|
|
1074
|
+
}, Se(I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(c)({
|
|
1076
1075
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1077
1076
|
v: e.value,
|
|
1078
1077
|
s: U.value.style.chart.nodes.labels.suffix,
|