vue-data-ui 3.22.13 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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 +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as _ } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as b } from "./
|
|
7
|
-
import { t as x } from "./
|
|
2
|
+
import { $ as t, D as n, Jt as r, Kt as i, Pt as a, S as o, X as s, b as c, i as l, jt as u, n as d, q as ee, r as f, t as p, tt as m, w as h, xt as te } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as ne, t as g } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as _ } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as v } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
+
import { n as y, t as b } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as x } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as re } from "./useNestedProp--NSEmhOH.js";
|
|
8
9
|
import { t as S } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { l as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { Fragment as
|
|
10
|
+
import { t as ie } from "./img-DIQG5q8T.js";
|
|
11
|
+
import { n as ae } from "./Title-BODtwViI.js";
|
|
12
|
+
import { t as oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as se, t as ce } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as le } from "./A11yDataTable-DdRsVULz.js";
|
|
15
|
+
import { t as ue } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
+
import { t as de } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
+
import { t as fe } from "./Legend-CQTRlzK-.js";
|
|
18
|
+
import { t as pe } from "./vue_ui_flow-BewZjjKG.js";
|
|
19
|
+
import { Fragment as me, Teleport as he, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as ge, createTextVNode as _e, createVNode as ve, defineAsyncComponent as O, guardReactiveProps as k, mergeProps as ye, nextTick as be, normalizeClass as xe, normalizeProps as A, normalizeStyle as j, onMounted as Se, openBlock as M, ref as N, renderList as Ce, renderSlot as P, resolveDynamicComponent as we, toDisplayString as F, toRefs as Te, unref as I, watch as Ee, withCtx as L } from "vue";
|
|
19
20
|
//#region src/components/vue-ui-flow.vue
|
|
20
|
-
var
|
|
21
|
+
var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae = {
|
|
21
22
|
key: 2,
|
|
22
23
|
ref: "noTitle",
|
|
23
24
|
class: "vue-data-ui-no-title-space",
|
|
24
25
|
style: "height:36px; width: 100%;background:transparent"
|
|
25
|
-
},
|
|
26
|
+
}, je = ["id"], Me = { style: { position: "relative" } }, Ne = [
|
|
26
27
|
"xmlns",
|
|
27
28
|
"aria-describedby",
|
|
28
29
|
"viewBox"
|
|
29
|
-
],
|
|
30
|
+
], Pe = ["width", "height"], Fe = ["id"], Ie = ["stop-color"], Le = ["stop-color"], Re = [
|
|
30
31
|
"d",
|
|
31
32
|
"fill",
|
|
32
33
|
"stroke",
|
|
33
34
|
"stroke-width"
|
|
34
|
-
],
|
|
35
|
+
], ze = [
|
|
35
36
|
"data-a11y-node-id",
|
|
36
37
|
"x",
|
|
37
38
|
"y",
|
|
@@ -45,17 +46,17 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
45
46
|
"onMouseenter",
|
|
46
47
|
"onMouseleave",
|
|
47
48
|
"onClick"
|
|
48
|
-
],
|
|
49
|
+
], Be = { key: 1 }, Ve = [
|
|
49
50
|
"x",
|
|
50
51
|
"y",
|
|
51
52
|
"font-size",
|
|
52
53
|
"fill"
|
|
53
|
-
],
|
|
54
|
+
], He = [
|
|
54
55
|
"x",
|
|
55
56
|
"y",
|
|
56
57
|
"font-size",
|
|
57
58
|
"fill"
|
|
58
|
-
],
|
|
59
|
+
], Ue = {
|
|
59
60
|
key: 0,
|
|
60
61
|
style: {
|
|
61
62
|
position: "absolute",
|
|
@@ -65,10 +66,10 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
65
66
|
},
|
|
66
67
|
"data-dom-to-png-ignore": "",
|
|
67
68
|
"aria-hidden": "true"
|
|
68
|
-
},
|
|
69
|
+
}, We = {
|
|
69
70
|
key: 5,
|
|
70
71
|
class: "vue-data-ui-watermark"
|
|
71
|
-
},
|
|
72
|
+
}, Ge = ["id"], Ke = ["onClick"], qe = ["innerHTML"], Je = /*#__PURE__*/ oe({
|
|
72
73
|
__name: "vue-ui-flow",
|
|
73
74
|
props: {
|
|
74
75
|
config: {
|
|
@@ -85,19 +86,26 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
85
86
|
}
|
|
86
87
|
},
|
|
87
88
|
emits: ["copyAlt"],
|
|
88
|
-
setup(e, { expose:
|
|
89
|
-
let
|
|
89
|
+
setup(e, { expose: oe, emit: De }) {
|
|
90
|
+
let Je = O(() => import("./Tooltip-CMTGxeYO.js")), Ye = O(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Xe = O(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Ze = O(() => import("./DataTable-D4tM9s5Y.js")), Qe = O(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), $e = O(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), et = O(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), tt = O(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_flow: nt } = _(), { isThemeValid: rt, warnInvalidTheme: it } = S(), R = e, at = De, z = N(ee()), B = N(null), ot = N(0), st = N(0), ct = N(!1), lt = N(""), ut = N(null), dt = N(null), ft = N(null), pt = N(null), mt = N(null), ht = N(!1), gt = N(null), _t = N(null), vt = N(null), yt = N(!1), bt = N(!1), xt = N(null), V = N(null), St = N({
|
|
90
91
|
x: 0,
|
|
91
92
|
y: 0
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
}), Ct = N("pointer"), wt = N(!1), Tt = C(() => !!R.dataset && R.dataset.length);
|
|
94
|
+
Se(() => {
|
|
95
|
+
ht.value = !0, Mt();
|
|
95
96
|
});
|
|
96
|
-
let H =
|
|
97
|
-
function
|
|
98
|
-
H.value = e,
|
|
97
|
+
let H = N(!1);
|
|
98
|
+
function Et(e) {
|
|
99
|
+
H.value = e, ot.value += 1;
|
|
99
100
|
}
|
|
100
|
-
let U =
|
|
101
|
+
let U = N(It());
|
|
102
|
+
ne({
|
|
103
|
+
config: () => U.value,
|
|
104
|
+
dataset: () => R.dataset,
|
|
105
|
+
component: "VueUiFlow",
|
|
106
|
+
rules: [g.emptyArray, g.noHint]
|
|
107
|
+
});
|
|
108
|
+
let W = C(() => U.value.userOptions.useCursorPointer), Dt = C(() => r({
|
|
101
109
|
defaultConfig: {
|
|
102
110
|
userOptions: { show: !1 },
|
|
103
111
|
nodeCategories: {
|
|
@@ -120,10 +128,10 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
120
128
|
} }
|
|
121
129
|
},
|
|
122
130
|
userConfig: U.value.skeletonConfig ?? {}
|
|
123
|
-
})), { loading:
|
|
124
|
-
...
|
|
131
|
+
})), { loading: Ot, FINAL_DATASET: kt, manualLoading: At } = y({
|
|
132
|
+
...Te(R),
|
|
125
133
|
FINAL_CONFIG: U,
|
|
126
|
-
prepareConfig:
|
|
134
|
+
prepareConfig: It,
|
|
127
135
|
skeletonDataset: R.config?.skeletonDataset ?? [
|
|
128
136
|
[
|
|
129
137
|
"A",
|
|
@@ -162,81 +170,81 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
162
170
|
"#AAAAAA"
|
|
163
171
|
]
|
|
164
172
|
],
|
|
165
|
-
skeletonConfig:
|
|
173
|
+
skeletonConfig: r({
|
|
166
174
|
defaultConfig: U.value,
|
|
167
|
-
userConfig:
|
|
175
|
+
userConfig: Dt.value
|
|
168
176
|
})
|
|
169
|
-
}),
|
|
170
|
-
function
|
|
171
|
-
if (
|
|
177
|
+
}), jt = C(() => !!U.value.debug);
|
|
178
|
+
function Mt() {
|
|
179
|
+
if (u(R.dataset) && (m({
|
|
172
180
|
componentName: "VueUiFlow",
|
|
173
181
|
type: "dataset",
|
|
174
|
-
debug:
|
|
175
|
-
}),
|
|
176
|
-
let e =
|
|
177
|
-
let { width: e, height: t } =
|
|
182
|
+
debug: jt.value
|
|
183
|
+
}), At.value = !0), u(R.dataset) || (At.value = U.value.loading), U.value.responsive) {
|
|
184
|
+
let e = se(() => {
|
|
185
|
+
let { width: e, height: t } = ce({
|
|
178
186
|
chart: B.value,
|
|
179
|
-
title: U.value.style.chart.title.text ?
|
|
180
|
-
legend: U.value.style.chart.legend.show ?
|
|
181
|
-
source:
|
|
187
|
+
title: U.value.style.chart.title.text ? dt.value : null,
|
|
188
|
+
legend: U.value.style.chart.legend.show ? ut.value : null,
|
|
189
|
+
source: ft.value
|
|
182
190
|
});
|
|
183
191
|
requestAnimationFrame(() => {
|
|
184
|
-
|
|
192
|
+
Lt.value = e, Rt.value = t;
|
|
185
193
|
});
|
|
186
194
|
});
|
|
187
|
-
|
|
195
|
+
pt.value && (mt.value && pt.value.unobserve(mt.value), pt.value.disconnect()), pt.value = new ResizeObserver(e), mt.value = B.value.parentNode, pt.value.observe(mt.value);
|
|
188
196
|
}
|
|
189
197
|
}
|
|
190
|
-
let { userOptionsVisible:
|
|
191
|
-
function
|
|
192
|
-
let e =
|
|
198
|
+
let { userOptionsVisible: Nt, setUserOptionsVisibility: Pt, keepUserOptionState: Ft } = ue({ config: U.value }), { svgRef: G } = de({ config: U.value.style.chart.title });
|
|
199
|
+
function It() {
|
|
200
|
+
let e = re({
|
|
193
201
|
userConfig: R.config,
|
|
194
|
-
defaultConfig:
|
|
202
|
+
defaultConfig: nt
|
|
195
203
|
}), t = e, n = e.theme;
|
|
196
|
-
if (n) if (!
|
|
204
|
+
if (n) if (!rt.value(e)) it(e), t = e;
|
|
197
205
|
else {
|
|
198
|
-
let r =
|
|
199
|
-
userConfig:
|
|
206
|
+
let r = re({
|
|
207
|
+
userConfig: pe[n] || R.config,
|
|
200
208
|
defaultConfig: e
|
|
201
209
|
});
|
|
202
210
|
t = {
|
|
203
|
-
...
|
|
211
|
+
...re({
|
|
204
212
|
userConfig: R.config,
|
|
205
213
|
defaultConfig: r
|
|
206
214
|
}),
|
|
207
|
-
customPalette: e.customPalette.length ? e.customPalette : i[n] ||
|
|
215
|
+
customPalette: e.customPalette.length ? e.customPalette : i[n] || a
|
|
208
216
|
};
|
|
209
217
|
}
|
|
210
218
|
else t = e;
|
|
211
219
|
return t.nodeCategories = R.config.nodeCategories || {}, t.nodeCategoryColors = R.config.nodeCategoryColors || {}, t;
|
|
212
220
|
}
|
|
213
|
-
let
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}, { deep: !0 }),
|
|
217
|
-
Array.isArray(e) && e.length > 0 && (
|
|
221
|
+
let Lt = N(U.value.style.chart.width), Rt = N(U.value.style.chart.height);
|
|
222
|
+
Ee(() => R.config, (e) => {
|
|
223
|
+
Ot.value || (U.value = It()), Nt.value = !U.value.userOptions.showOnChartHover, Mt(), st.value += 1, K.value.showTable = U.value.table.show;
|
|
224
|
+
}, { deep: !0 }), Ee(() => R.dataset, (e) => {
|
|
225
|
+
Array.isArray(e) && e.length > 0 && (At.value = !1);
|
|
218
226
|
}, { deep: !0 });
|
|
219
|
-
let { isPrinting:
|
|
227
|
+
let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = v({
|
|
220
228
|
elementId: `flow_${z.value}`,
|
|
221
229
|
fileName: U.value.style.chart.title.text || "vue-ui-flow",
|
|
222
230
|
options: U.value.userOptions.print
|
|
223
|
-
}),
|
|
231
|
+
}), Ut = C(() => U.value.userOptions.show && !U.value.style.chart.title.text), Wt = C(() => h(U.value.customPalette)), Gt = C(() => U.value.style.chart.nodes.width), K = N({
|
|
224
232
|
showTable: U.value.table.show,
|
|
225
233
|
showTooltip: U.value.style.chart.tooltip.show
|
|
226
234
|
});
|
|
227
|
-
|
|
235
|
+
Ee(U, () => {
|
|
228
236
|
K.value = {
|
|
229
237
|
showTable: U.value.table.show,
|
|
230
238
|
showTooltip: U.value.style.chart.tooltip.show
|
|
231
239
|
};
|
|
232
240
|
}, { immediate: !0 });
|
|
233
|
-
let
|
|
241
|
+
let Kt = C(() => !kt.value || !kt.value.length ? [] : kt.value.map((e, t) => [
|
|
234
242
|
e[0],
|
|
235
243
|
e[1],
|
|
236
|
-
|
|
237
|
-
e[3] ?
|
|
244
|
+
c(e[2]),
|
|
245
|
+
e[3] ? o(e[3]) : Wt.value[t] || Wt.value[t % Wt.value.length] || a[t] || a[t % a.length]
|
|
238
246
|
]));
|
|
239
|
-
function
|
|
247
|
+
function qt(e) {
|
|
240
248
|
let t = {}, n = {};
|
|
241
249
|
function r(e, r) {
|
|
242
250
|
t[e] || (t[e] = {
|
|
@@ -245,7 +253,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
245
253
|
outflow: 0,
|
|
246
254
|
children: [],
|
|
247
255
|
color: null,
|
|
248
|
-
uid:
|
|
256
|
+
uid: ee()
|
|
249
257
|
}), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
|
|
250
258
|
}
|
|
251
259
|
e.forEach(([e, n, i]) => {
|
|
@@ -255,24 +263,24 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
255
263
|
value: i
|
|
256
264
|
}), t[e].outflow += i, t[n].inflow += i;
|
|
257
265
|
});
|
|
258
|
-
let i = new Set(e.map(([e]) => e)),
|
|
259
|
-
|
|
260
|
-
l[e] =
|
|
266
|
+
let i = new Set(e.map(([e]) => e)), o = new Set(e.map(([, e]) => e)), s = Array.from(i).filter((e) => !o.has(e)), l = {};
|
|
267
|
+
s.forEach((e, t) => {
|
|
268
|
+
l[e] = Wt.value[t] || a[t % a.length];
|
|
261
269
|
});
|
|
262
270
|
let u = {};
|
|
263
271
|
e.forEach(([e, t, n, r]) => {
|
|
264
272
|
r && (u[e] = r, u[t] = r);
|
|
265
273
|
}), Object.keys(t).forEach((e, n) => {
|
|
266
274
|
let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
267
|
-
t[e].color = u[e] || i || (
|
|
275
|
+
t[e].color = u[e] || i || (s.includes(e) ? l[e] : null) || a[n % a.length];
|
|
268
276
|
}), Object.keys(t).forEach((e) => {
|
|
269
277
|
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
270
278
|
});
|
|
271
|
-
let d =
|
|
272
|
-
function
|
|
279
|
+
let d = Xt.value, f = Zt.value.width, p = Zt.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), h = m.length || 1, te = h > 1 ? f / (h - 1) : 0, ne = Number(Gt.value), g = Number(U.value.style.chart.nodes.gapPx ?? U.value.style.chart.nodes.gap ?? 8), _ = Number(U.value.style.chart.nodes.minHeight || 0);
|
|
280
|
+
function v(e) {
|
|
273
281
|
let r = n[e], i = r.length;
|
|
274
282
|
if (!i) return Infinity;
|
|
275
|
-
let a = Math.max(0, (i - 1) *
|
|
283
|
+
let a = Math.max(0, (i - 1) * g), o = Math.max(0, p - a), s = Math.min(_, i ? o / i : 0), c = 0, l = r.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
|
|
276
284
|
for (let e = 0; e < 12; e += 1) {
|
|
277
285
|
let e = u > 0 ? (o - c) / u : 0, t = [];
|
|
278
286
|
for (let n = 0; n < l.length; n += 1) {
|
|
@@ -285,62 +293,62 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
285
293
|
}
|
|
286
294
|
return u > 0 ? Math.max(0, (o - c) / u) : 0;
|
|
287
295
|
}
|
|
288
|
-
let
|
|
296
|
+
let y = m.map(v), b = y.length ? Math.min(...y) : 0, x = {};
|
|
289
297
|
m.forEach((e) => {
|
|
290
|
-
let r = n[e], i = r.length,
|
|
298
|
+
let r = n[e], i = r.length, a = Math.max(0, (i - 1) * g), o = Math.max(0, p - a), s = Math.min(_, i ? o / i : 0), c = r.map((e) => Math.max(s, (t[e].value || 0) * b)), l = c.reduce((e, t) => e + t, 0) + a, u = Math.max(0, (p - l) / 2);
|
|
291
299
|
r.forEach((n, r) => {
|
|
292
|
-
let
|
|
293
|
-
|
|
294
|
-
x:
|
|
295
|
-
y:
|
|
296
|
-
absoluteY:
|
|
297
|
-
height:
|
|
300
|
+
let a = c[r], o = d.left + e * te, s = u;
|
|
301
|
+
x[n] = {
|
|
302
|
+
x: o,
|
|
303
|
+
y: s,
|
|
304
|
+
absoluteY: s,
|
|
305
|
+
height: a,
|
|
298
306
|
i: r,
|
|
299
307
|
color: t[n].color,
|
|
300
308
|
value: t[n].value,
|
|
301
|
-
id:
|
|
302
|
-
},
|
|
309
|
+
id: ee()
|
|
310
|
+
}, u += a, r < i - 1 && (u += g);
|
|
303
311
|
});
|
|
304
312
|
});
|
|
305
|
-
let
|
|
313
|
+
let re = [], S = d.top, ie = {}, ae = {};
|
|
306
314
|
Object.keys(t).forEach((e) => {
|
|
307
|
-
|
|
315
|
+
ie[e] = x[e]?.y ?? 0, ae[e] = 0;
|
|
308
316
|
});
|
|
309
|
-
let
|
|
317
|
+
let oe = !!U.value.style.chart.links.smooth, se = .5;
|
|
310
318
|
return m.forEach((e) => {
|
|
311
319
|
n[e].forEach((e) => {
|
|
312
|
-
let n = t[e], r =
|
|
320
|
+
let n = t[e], r = x[e];
|
|
313
321
|
if (!n.children || !n.children.length) return;
|
|
314
322
|
let i = r.y;
|
|
315
|
-
n.children.forEach(({ target:
|
|
316
|
-
let
|
|
317
|
-
|
|
318
|
-
let
|
|
319
|
-
(
|
|
320
|
-
let
|
|
321
|
-
if (!
|
|
323
|
+
n.children.forEach(({ target: a, value: o }) => {
|
|
324
|
+
let s = x[a], l = t[a], u = n.outflow > 0 ? o / n.outflow : 0, d = l.inflow > 0 ? o / l.inflow : 0, f = c(i + S), p = c(i + u * r.height + S), m = ie[a], h = m + d * s.height;
|
|
325
|
+
ae[a] += o;
|
|
326
|
+
let te = l.inflow > 0 && ae[a] >= l.inflow - 1e-6, g = s.y + s.height;
|
|
327
|
+
(te || h > g - .25) && (h = g);
|
|
328
|
+
let _ = c(m + S), v = c(h + S), y = c(r.x + ne), b = c(s.x), ce;
|
|
329
|
+
if (!oe || b <= y) ce = `M ${y} ${f} L ${y} ${p} L ${b} ${v} L ${b} ${_} Z`;
|
|
322
330
|
else {
|
|
323
|
-
let e =
|
|
324
|
-
|
|
331
|
+
let e = b - y, t = c(y + e * se), n = c(b - e * se), r = f, i = _, a = p, o = v;
|
|
332
|
+
ce = `M ${y} ${r} C ${t} ${r}, ${n} ${i}, ${b} ${i} L ${b} ${o} C ${n} ${o}, ${t} ${a}, ${y} ${a} Z`;
|
|
325
333
|
}
|
|
326
|
-
|
|
327
|
-
id:
|
|
334
|
+
re.push({
|
|
335
|
+
id: ee(),
|
|
328
336
|
source: e,
|
|
329
|
-
target:
|
|
330
|
-
path:
|
|
331
|
-
value:
|
|
337
|
+
target: a,
|
|
338
|
+
path: ce,
|
|
339
|
+
value: o,
|
|
332
340
|
sourceColor: n.color,
|
|
333
|
-
targetColor: t[
|
|
334
|
-
}), i = p -
|
|
341
|
+
targetColor: t[a].color
|
|
342
|
+
}), i = p - S, ie[a] = h;
|
|
335
343
|
});
|
|
336
344
|
});
|
|
337
345
|
}), {
|
|
338
|
-
nodeCoordinates:
|
|
339
|
-
links:
|
|
346
|
+
nodeCoordinates: x,
|
|
347
|
+
links: re
|
|
340
348
|
};
|
|
341
349
|
}
|
|
342
|
-
let q =
|
|
343
|
-
let e =
|
|
350
|
+
let q = C(() => {
|
|
351
|
+
let e = qt(kt.value);
|
|
344
352
|
return {
|
|
345
353
|
nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
|
|
346
354
|
...e.nodeCoordinates[t],
|
|
@@ -348,133 +356,133 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
348
356
|
})),
|
|
349
357
|
links: e.links
|
|
350
358
|
};
|
|
351
|
-
}),
|
|
352
|
-
width: Math.max(0,
|
|
353
|
-
height: Math.max(0,
|
|
354
|
-
})),
|
|
355
|
-
width:
|
|
356
|
-
height:
|
|
359
|
+
}), Jt = C(() => Lt.value), Yt = C(() => Rt.value), Xt = C(() => U.value.style.chart.padding), Zt = C(() => ({
|
|
360
|
+
width: Math.max(0, Jt.value - 40 - Xt.value.right - Xt.value.left),
|
|
361
|
+
height: Math.max(0, Yt.value - Xt.value.top - Xt.value.bottom)
|
|
362
|
+
})), Qt = C(() => ({
|
|
363
|
+
width: Jt.value,
|
|
364
|
+
height: Yt.value
|
|
357
365
|
}));
|
|
358
|
-
function
|
|
366
|
+
function $t(e) {
|
|
359
367
|
let t = {}, n = {}, r = /* @__PURE__ */ new Set();
|
|
360
|
-
return
|
|
368
|
+
return Kt.value.forEach(([e, r, i]) => {
|
|
361
369
|
t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
|
|
362
370
|
}), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
|
|
363
371
|
}
|
|
364
|
-
let J =
|
|
365
|
-
function
|
|
366
|
-
|
|
372
|
+
let J = N(null), Y = N(null), X = N(null), en = N(!1), tn = N(null);
|
|
373
|
+
function nn() {
|
|
374
|
+
tn.value = null, J.value = null, Y.value = null, ct.value = !1, xt.value = null, V.value = null;
|
|
367
375
|
}
|
|
368
|
-
function
|
|
376
|
+
function rn(e) {
|
|
369
377
|
if (!G.value || !e) return;
|
|
370
378
|
let t = G.value.querySelector(`[data-a11y-node-id="${e}"]`);
|
|
371
379
|
if (!t) return;
|
|
372
380
|
let n = t.getBoundingClientRect();
|
|
373
|
-
|
|
381
|
+
St.value = {
|
|
374
382
|
x: n.left + n.width / 2,
|
|
375
383
|
y: n.top + n.height / 2
|
|
376
384
|
};
|
|
377
385
|
}
|
|
378
|
-
function
|
|
379
|
-
$.value = [], J.value =
|
|
380
|
-
let i = e.name, a =
|
|
386
|
+
function an(e, t, n = "pointer", r = null) {
|
|
387
|
+
$.value = [], J.value = $t(e.name), Y.value = e.name, tn.value = e.id, Ct.value = n, xt.value = r, V.value = e.id;
|
|
388
|
+
let i = e.name, a = Kt.value, o = 0, c = 0, u = [], d = [], ee = new Set(a.map(([e]) => e)), f = new Set(a.map(([, e]) => e)), p = Array.from(ee).filter((e) => !f.has(e)), m = a.filter(([e]) => p.includes(e)).reduce((e, [t, n, r]) => e + r, 0), h = {};
|
|
381
389
|
q.value.nodes.forEach((e) => {
|
|
382
|
-
|
|
390
|
+
h[e.name] = e.color;
|
|
383
391
|
}), a.forEach(([e, t, n]) => {
|
|
384
392
|
t === i && (o += n, u.push({
|
|
385
393
|
source: e,
|
|
386
394
|
value: n,
|
|
387
|
-
color:
|
|
388
|
-
})), e === i && (
|
|
395
|
+
color: h[e]
|
|
396
|
+
})), e === i && (c += n, d.push({
|
|
389
397
|
target: t,
|
|
390
398
|
value: n,
|
|
391
|
-
color:
|
|
399
|
+
color: h[t]
|
|
392
400
|
}));
|
|
393
401
|
});
|
|
394
|
-
let
|
|
402
|
+
let ne = m > 0 ? Math.max(o, c) / m * 100 : 0, g = {
|
|
395
403
|
name: i,
|
|
396
404
|
inflow: o,
|
|
397
|
-
outflow:
|
|
405
|
+
outflow: c,
|
|
398
406
|
from: u,
|
|
399
|
-
to:
|
|
400
|
-
percentOfTotal:
|
|
401
|
-
color:
|
|
407
|
+
to: d,
|
|
408
|
+
percentOfTotal: ne,
|
|
409
|
+
color: h[i] || "#000000"
|
|
402
410
|
};
|
|
403
411
|
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
404
|
-
datapoint:
|
|
412
|
+
datapoint: g,
|
|
405
413
|
seriesIndex: t
|
|
406
414
|
}), X.value = {
|
|
407
|
-
datapoint:
|
|
415
|
+
datapoint: g,
|
|
408
416
|
config: U.value,
|
|
409
417
|
seriesIndex: t,
|
|
410
418
|
series: q.value
|
|
411
|
-
},
|
|
412
|
-
let
|
|
413
|
-
if (
|
|
414
|
-
let e =
|
|
415
|
-
datapoint:
|
|
419
|
+
}, ct.value = !0;
|
|
420
|
+
let _ = "", v = U.value.style.chart.tooltip.customFormat;
|
|
421
|
+
if (en.value = !1, te(v)) try {
|
|
422
|
+
let e = v({
|
|
423
|
+
datapoint: g,
|
|
416
424
|
series: q.value,
|
|
417
425
|
config: U.value
|
|
418
426
|
});
|
|
419
|
-
typeof e == "string" && (
|
|
427
|
+
typeof e == "string" && (lt.value = e, en.value = !0);
|
|
420
428
|
} catch {
|
|
421
429
|
console.warn("Custom format cannot be applied.");
|
|
422
430
|
}
|
|
423
|
-
if (!
|
|
424
|
-
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${
|
|
431
|
+
if (!en.value) {
|
|
432
|
+
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${s({
|
|
425
433
|
p: U.value.style.chart.tooltip.translations.percentOfTotal,
|
|
426
|
-
v:
|
|
434
|
+
v: g.percentOfTotal,
|
|
427
435
|
s: "%",
|
|
428
436
|
r: U.value.style.chart.tooltip.roundingPercentage
|
|
429
437
|
})}</div>` : "";
|
|
430
|
-
|
|
431
|
-
|
|
438
|
+
_ += `<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:${g.color}">⏹</span>${g.name}${e}</div>`, g.from.length && (_ += `<div>${U.value.style.chart.tooltip.translations.from}</div>`, g.from.forEach((e) => {
|
|
439
|
+
_ += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, s({
|
|
432
440
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
433
441
|
v: e.value,
|
|
434
442
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
435
443
|
r: U.value.style.chart.nodes.labels.rounding
|
|
436
444
|
}))}</div>`;
|
|
437
|
-
})),
|
|
438
|
-
|
|
445
|
+
})), g.to.length && (_ += `<div style="margin-top:6px;">${U.value.style.chart.tooltip.translations.to}</div>`, g.to.forEach((e) => {
|
|
446
|
+
_ += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, s({
|
|
439
447
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
440
448
|
v: e.value,
|
|
441
449
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
442
450
|
r: U.value.style.chart.nodes.labels.rounding
|
|
443
451
|
}))}</div>`;
|
|
444
|
-
})),
|
|
452
|
+
})), lt.value = _;
|
|
445
453
|
}
|
|
446
|
-
n === "keyboard" &&
|
|
447
|
-
|
|
454
|
+
n === "keyboard" && be(() => {
|
|
455
|
+
rn(e.id);
|
|
448
456
|
});
|
|
449
457
|
}
|
|
450
|
-
function
|
|
458
|
+
function on(e) {
|
|
451
459
|
let t = X.value;
|
|
452
460
|
U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
453
461
|
datapoint: t,
|
|
454
462
|
seriesIndex: e
|
|
455
|
-
}), !(
|
|
463
|
+
}), !(Ct.value === "keyboard" && V.value) && (tn.value = null, J.value = null, Y.value = null, ct.value = !1);
|
|
456
464
|
}
|
|
457
|
-
function
|
|
465
|
+
function sn(e) {
|
|
458
466
|
let t = X.value;
|
|
459
467
|
U.value.events.datapointClick && U.value.events.datapointClick({
|
|
460
468
|
datapoint: t,
|
|
461
469
|
seriesIndex: e
|
|
462
470
|
});
|
|
463
471
|
}
|
|
464
|
-
let
|
|
472
|
+
let cn = C(() => q.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
|
|
465
473
|
source: e,
|
|
466
474
|
target: t,
|
|
467
475
|
sourceColor: n,
|
|
468
476
|
targetColor: r,
|
|
469
477
|
value: i
|
|
470
478
|
})));
|
|
471
|
-
function
|
|
472
|
-
|
|
473
|
-
let
|
|
479
|
+
function ln(e = null) {
|
|
480
|
+
be(() => {
|
|
481
|
+
let r = cn.value.map((e, t) => [
|
|
474
482
|
[e.source],
|
|
475
483
|
[e.target],
|
|
476
484
|
[e.value]
|
|
477
|
-
]),
|
|
485
|
+
]), i = n([
|
|
478
486
|
[U.value.style.chart.title.text],
|
|
479
487
|
[U.value.style.chart.title.subtitle.text],
|
|
480
488
|
[
|
|
@@ -482,19 +490,19 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
482
490
|
[U.value.table.columnNames.target],
|
|
483
491
|
[U.value.table.columnNames.value]
|
|
484
492
|
]
|
|
485
|
-
].concat(
|
|
486
|
-
e ? e(
|
|
487
|
-
csvContent:
|
|
493
|
+
].concat(r));
|
|
494
|
+
e ? e(i) : t({
|
|
495
|
+
csvContent: i,
|
|
488
496
|
title: U.value.style.chart.title.text || "vue-ui-flow"
|
|
489
497
|
});
|
|
490
498
|
});
|
|
491
499
|
}
|
|
492
|
-
let Z =
|
|
500
|
+
let Z = C(() => {
|
|
493
501
|
let e = [
|
|
494
502
|
U.value.table.columnNames.source,
|
|
495
503
|
U.value.table.columnNames.target,
|
|
496
504
|
U.value.table.columnNames.value
|
|
497
|
-
], t =
|
|
505
|
+
], t = cn.value.map((e, t) => [
|
|
498
506
|
{
|
|
499
507
|
color: e.sourceColor,
|
|
500
508
|
name: e.source,
|
|
@@ -505,7 +513,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
505
513
|
name: e.target,
|
|
506
514
|
shape: "square"
|
|
507
515
|
},
|
|
508
|
-
|
|
516
|
+
s({
|
|
509
517
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
510
518
|
v: e.value,
|
|
511
519
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -534,17 +542,17 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
534
542
|
body: t,
|
|
535
543
|
config: n
|
|
536
544
|
};
|
|
537
|
-
}),
|
|
545
|
+
}), un = C(() => ({
|
|
538
546
|
headers: Z.value?.colNames ?? [],
|
|
539
547
|
rows: Z.value?.body ?? []
|
|
540
|
-
})),
|
|
548
|
+
})), dn = C(() => [...q.value.nodes].map((e, t) => ({
|
|
541
549
|
...e,
|
|
542
550
|
index: t,
|
|
543
|
-
centerX: e.x +
|
|
544
|
-
centerY:
|
|
545
|
-
})).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q =
|
|
551
|
+
centerX: e.x + Gt.value / 2,
|
|
552
|
+
centerY: c(e.absoluteY) + U.value.style.chart.padding.top + e.height / 2
|
|
553
|
+
})).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = C(() => {
|
|
546
554
|
let e = [];
|
|
547
|
-
return
|
|
555
|
+
return dn.value.forEach((t) => {
|
|
548
556
|
let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
|
|
549
557
|
n ? n.nodes.push(t) : e.push({
|
|
550
558
|
x: t.x,
|
|
@@ -553,37 +561,37 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
553
561
|
}), e.forEach((e) => {
|
|
554
562
|
e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
|
|
555
563
|
}), e.sort((e, t) => e.x - t.x);
|
|
556
|
-
}),
|
|
564
|
+
}), fn = C(() => {
|
|
557
565
|
let e = /* @__PURE__ */ new Map();
|
|
558
|
-
return
|
|
566
|
+
return dn.value.forEach((t, n) => {
|
|
559
567
|
e.set(t.id, n);
|
|
560
568
|
}), e;
|
|
561
569
|
});
|
|
562
|
-
function
|
|
570
|
+
function pn() {
|
|
563
571
|
return q.value;
|
|
564
572
|
}
|
|
565
|
-
function
|
|
573
|
+
function mn() {
|
|
566
574
|
K.value.showTable = !K.value.showTable;
|
|
567
575
|
}
|
|
568
|
-
let
|
|
569
|
-
function
|
|
570
|
-
|
|
576
|
+
let hn = N(!1);
|
|
577
|
+
function gn() {
|
|
578
|
+
hn.value = !hn.value;
|
|
571
579
|
}
|
|
572
|
-
function
|
|
580
|
+
function _n() {
|
|
573
581
|
K.value.showTooltip = !K.value.showTooltip;
|
|
574
582
|
}
|
|
575
|
-
let
|
|
583
|
+
let vn = C(() => {
|
|
576
584
|
let e = new Set(q.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
577
585
|
return Array.from(e).map((e) => ({
|
|
578
586
|
name: e,
|
|
579
|
-
color: U.value.nodeCategoryColors[e] ||
|
|
587
|
+
color: U.value.nodeCategoryColors[e] || a[0],
|
|
580
588
|
shape: "square",
|
|
581
589
|
count: q.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
582
590
|
})).map((e, t) => {
|
|
583
591
|
let n = $.value.includes(t);
|
|
584
592
|
return {
|
|
585
593
|
...e,
|
|
586
|
-
segregate: () =>
|
|
594
|
+
segregate: () => bn({
|
|
587
595
|
legend: e,
|
|
588
596
|
i: t
|
|
589
597
|
}),
|
|
@@ -592,8 +600,8 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
592
600
|
display: `${e.name} (${e.count})`
|
|
593
601
|
};
|
|
594
602
|
});
|
|
595
|
-
}),
|
|
596
|
-
function
|
|
603
|
+
}), yn = C(() => vn.value.filter((e) => e.name !== "__uncategorized__")), $ = N([]);
|
|
604
|
+
function bn({ legend: e, i: t }) {
|
|
597
605
|
let n = e.name;
|
|
598
606
|
if (J.value?.every((e) => U.value.nodeCategories[e] === n)) {
|
|
599
607
|
J.value = null, Y.value = null, $.value = [];
|
|
@@ -601,7 +609,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
601
609
|
}
|
|
602
610
|
$.value = [t], J.value = q.value.nodes.filter((e) => U.value.nodeCategories[e.name] === n).map((e) => e.name), Y.value = null;
|
|
603
611
|
}
|
|
604
|
-
let
|
|
612
|
+
let xn = C(() => ({
|
|
605
613
|
cy: "flow-legend",
|
|
606
614
|
backgroundColor: U.value.style.chart.legend.backgroundColor,
|
|
607
615
|
color: U.value.style.chart.legend.color,
|
|
@@ -609,9 +617,9 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
609
617
|
paddingBottom: U.value.style.chart.legend.paddingBottom,
|
|
610
618
|
fontWeight: U.value.style.chart.legend.bold ? "bold" : "normal"
|
|
611
619
|
}));
|
|
612
|
-
async function
|
|
620
|
+
async function Sn({ scale: e = 2 } = {}) {
|
|
613
621
|
if (!B.value) return;
|
|
614
|
-
let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
622
|
+
let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ie({
|
|
615
623
|
domElement: B.value,
|
|
616
624
|
base64: !0,
|
|
617
625
|
img: !0,
|
|
@@ -626,10 +634,10 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
626
634
|
aspectRatio: r
|
|
627
635
|
};
|
|
628
636
|
}
|
|
629
|
-
let
|
|
637
|
+
let Cn = C(() => {
|
|
630
638
|
let e = U.value.table.useDialog && !U.value.table.show, t = K.value.showTable;
|
|
631
639
|
return {
|
|
632
|
-
component: e ?
|
|
640
|
+
component: e ? tt : Xe,
|
|
633
641
|
title: `${U.value.style.chart.title.text}${U.value.style.chart.title.subtitle.text ? `: ${U.value.style.chart.title.subtitle.text}` : ""}`,
|
|
634
642
|
props: e ? {
|
|
635
643
|
backgroundColor: U.value.table.th.backgroundColor,
|
|
@@ -657,51 +665,51 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
657
665
|
}
|
|
658
666
|
};
|
|
659
667
|
});
|
|
660
|
-
|
|
661
|
-
U.value.table.show || (e && U.value.table.useDialog &&
|
|
668
|
+
Ee(() => K.value.showTable, (e) => {
|
|
669
|
+
U.value.table.show || (e && U.value.table.useDialog && gt.value ? gt.value.open() : "close" in gt.value && gt.value.close());
|
|
662
670
|
});
|
|
663
|
-
function
|
|
664
|
-
K.value.showTable = !1,
|
|
671
|
+
function wn() {
|
|
672
|
+
K.value.showTable = !1, _t.value && _t.value.setTableIconState(!1);
|
|
665
673
|
}
|
|
666
|
-
let
|
|
674
|
+
let Tn = C(() => yn.value.map((e) => ({
|
|
667
675
|
...e,
|
|
668
676
|
name: e.display
|
|
669
|
-
}))),
|
|
677
|
+
}))), En = C(() => U.value.style.chart.backgroundColor), Dn = C(() => U.value.style.chart.legend), { exportSvg: On, getSvg: kn } = x({
|
|
670
678
|
svg: G,
|
|
671
|
-
title:
|
|
672
|
-
legend:
|
|
673
|
-
legendItems:
|
|
674
|
-
backgroundColor:
|
|
679
|
+
title: C(() => U.value.style.chart.title),
|
|
680
|
+
legend: Dn,
|
|
681
|
+
legendItems: Tn,
|
|
682
|
+
backgroundColor: En
|
|
675
683
|
});
|
|
676
|
-
async function
|
|
677
|
-
|
|
684
|
+
async function An({ isCb: e }) {
|
|
685
|
+
bt.value = !0, await be();
|
|
678
686
|
try {
|
|
679
687
|
if (e) {
|
|
680
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
688
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await kn();
|
|
681
689
|
await Promise.resolve(U.value.userOptions.callbacks.svg({
|
|
682
690
|
blob: e,
|
|
683
691
|
url: t,
|
|
684
692
|
text: n,
|
|
685
693
|
dataUrl: r
|
|
686
694
|
}));
|
|
687
|
-
} else await Promise.resolve(
|
|
695
|
+
} else await Promise.resolve(On());
|
|
688
696
|
} finally {
|
|
689
|
-
|
|
697
|
+
bt.value = !1;
|
|
690
698
|
}
|
|
691
699
|
}
|
|
692
|
-
function
|
|
700
|
+
function jn(e) {
|
|
693
701
|
if (e?.stage === "start") {
|
|
694
|
-
|
|
702
|
+
yt.value = !0;
|
|
695
703
|
return;
|
|
696
704
|
}
|
|
697
705
|
if (e?.stage === "end") {
|
|
698
|
-
|
|
706
|
+
yt.value = !1;
|
|
699
707
|
return;
|
|
700
708
|
}
|
|
701
|
-
|
|
709
|
+
Ht();
|
|
702
710
|
}
|
|
703
|
-
async function
|
|
704
|
-
if (
|
|
711
|
+
async function Mn() {
|
|
712
|
+
if (at("copyAlt", {
|
|
705
713
|
config: U.value,
|
|
706
714
|
dataset: q.value
|
|
707
715
|
}), !U.value.userOptions.callbacks.altCopy) {
|
|
@@ -713,14 +721,14 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
713
721
|
dataset: q.value
|
|
714
722
|
}));
|
|
715
723
|
}
|
|
716
|
-
function
|
|
724
|
+
function Nn(e) {
|
|
717
725
|
return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
|
|
718
726
|
}
|
|
719
|
-
function
|
|
727
|
+
function Pn(e, t) {
|
|
720
728
|
let n = Q.value[e];
|
|
721
729
|
return n ? n.nodes.findIndex((e) => e.id === t) : -1;
|
|
722
730
|
}
|
|
723
|
-
function
|
|
731
|
+
function Fn(e, t) {
|
|
724
732
|
let n = Q.value[e];
|
|
725
733
|
if (!n || !n.nodes.length) return null;
|
|
726
734
|
let r = n.nodes[0], i = Math.abs(r.centerY - t);
|
|
@@ -730,41 +738,41 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
730
738
|
}
|
|
731
739
|
return r;
|
|
732
740
|
}
|
|
733
|
-
function
|
|
734
|
-
|
|
741
|
+
function In() {
|
|
742
|
+
xt.value = null, V.value = null, wt.value = !0;
|
|
735
743
|
}
|
|
736
|
-
function
|
|
737
|
-
|
|
744
|
+
function Ln() {
|
|
745
|
+
nn(), wt.value = !1;
|
|
738
746
|
}
|
|
739
|
-
function
|
|
740
|
-
if (!G.value ||
|
|
747
|
+
function Rn(e) {
|
|
748
|
+
if (!G.value || hn.value || document.activeElement !== G.value || !dn.value.length) return;
|
|
741
749
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
742
750
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
743
751
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
744
|
-
|
|
752
|
+
nn();
|
|
745
753
|
return;
|
|
746
754
|
}
|
|
747
755
|
if (a) {
|
|
748
|
-
if (
|
|
749
|
-
|
|
756
|
+
if (xt.value === null) return;
|
|
757
|
+
sn(xt.value);
|
|
750
758
|
return;
|
|
751
759
|
}
|
|
752
760
|
if (V.value === null) {
|
|
753
761
|
let e = Q.value[0]?.nodes?.[0];
|
|
754
762
|
if (!e) return;
|
|
755
|
-
let t =
|
|
756
|
-
|
|
763
|
+
let t = fn.value.get(e.id) ?? 0;
|
|
764
|
+
an(e, t, "keyboard", t);
|
|
757
765
|
return;
|
|
758
766
|
}
|
|
759
|
-
let s =
|
|
767
|
+
let s = fn.value.get(V.value);
|
|
760
768
|
if (s === void 0) return;
|
|
761
|
-
let c =
|
|
769
|
+
let c = dn.value[s];
|
|
762
770
|
if (!c) return;
|
|
763
|
-
let l =
|
|
771
|
+
let l = Nn(c.id);
|
|
764
772
|
if (l < 0) return;
|
|
765
773
|
let u = null;
|
|
766
774
|
if (r || i) {
|
|
767
|
-
let e =
|
|
775
|
+
let e = Pn(l, c.id);
|
|
768
776
|
if (e < 0) return;
|
|
769
777
|
let t = Q.value[l];
|
|
770
778
|
if (!t?.nodes?.length) return;
|
|
@@ -773,46 +781,46 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
773
781
|
}
|
|
774
782
|
if (t || n) {
|
|
775
783
|
let e = l + (n ? 1 : -1);
|
|
776
|
-
e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u =
|
|
784
|
+
e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Fn(e, c.centerY);
|
|
777
785
|
}
|
|
778
786
|
if (!u) return;
|
|
779
|
-
let d =
|
|
780
|
-
d !== void 0 &&
|
|
787
|
+
let d = fn.value.get(u.id);
|
|
788
|
+
d !== void 0 && an(u, d, "keyboard", d);
|
|
781
789
|
}
|
|
782
|
-
return
|
|
783
|
-
getData:
|
|
784
|
-
getImage:
|
|
785
|
-
generateCsv:
|
|
786
|
-
generateImage:
|
|
787
|
-
generateSvg:
|
|
788
|
-
generatePdf:
|
|
789
|
-
toggleTable:
|
|
790
|
-
toggleAnnotator:
|
|
791
|
-
toggleTooltip:
|
|
792
|
-
drillCategory:
|
|
793
|
-
unselectNode:
|
|
794
|
-
toggleFullscreen:
|
|
795
|
-
copyAlt:
|
|
796
|
-
}), (e, t) => (
|
|
790
|
+
return oe({
|
|
791
|
+
getData: pn,
|
|
792
|
+
getImage: Sn,
|
|
793
|
+
generateCsv: ln,
|
|
794
|
+
generateImage: Ht,
|
|
795
|
+
generateSvg: An,
|
|
796
|
+
generatePdf: Vt,
|
|
797
|
+
toggleTable: mn,
|
|
798
|
+
toggleAnnotator: gn,
|
|
799
|
+
toggleTooltip: _n,
|
|
800
|
+
drillCategory: bn,
|
|
801
|
+
unselectNode: on,
|
|
802
|
+
toggleFullscreen: Et,
|
|
803
|
+
copyAlt: Mn
|
|
804
|
+
}), (e, t) => (M(), E("div", {
|
|
797
805
|
ref_key: "flowChart",
|
|
798
806
|
ref: B,
|
|
799
|
-
class:
|
|
800
|
-
style:
|
|
807
|
+
class: xe(`vue-data-ui-component vue-ui-flow ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
808
|
+
style: j(`font-family:${U.value.style.fontFamily};width:100%; text-align:center;background:${U.value.style.chart.backgroundColor}`),
|
|
801
809
|
id: `flow_${z.value}`,
|
|
802
|
-
onMouseenter: t[2] ||= () => I(
|
|
810
|
+
onMouseenter: t[2] ||= () => I(Pt)(!0),
|
|
803
811
|
onMouseleave: t[3] ||= () => {
|
|
804
|
-
I(
|
|
812
|
+
I(Pt)(!1), wt.value || nn();
|
|
805
813
|
}
|
|
806
814
|
}, [
|
|
807
|
-
|
|
815
|
+
D("div", {
|
|
808
816
|
id: `chart-instructions-${z.value}`,
|
|
809
817
|
class: "sr-only"
|
|
810
|
-
}, [
|
|
811
|
-
|
|
818
|
+
}, [D("p", null, F(U.value.a11y.translations.keyboardNavigation), 1)], 8, ke),
|
|
819
|
+
un.value?.rows?.length ? (M(), w(le, {
|
|
812
820
|
key: 0,
|
|
813
821
|
uid: z.value,
|
|
814
|
-
head:
|
|
815
|
-
body:
|
|
822
|
+
head: un.value.headers,
|
|
823
|
+
body: un.value.rows,
|
|
816
824
|
notice: U.value.a11y.translations.tableAvailable,
|
|
817
825
|
caption: U.value.a11y.translations.tableCaption
|
|
818
826
|
}, null, 8, [
|
|
@@ -821,22 +829,22 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
821
829
|
"body",
|
|
822
830
|
"notice",
|
|
823
831
|
"caption"
|
|
824
|
-
])) :
|
|
825
|
-
U.value.userOptions.buttons.annotator ? (
|
|
832
|
+
])) : T("", !0),
|
|
833
|
+
U.value.userOptions.buttons.annotator ? (M(), w(I(Qe), {
|
|
826
834
|
key: 1,
|
|
827
835
|
svgRef: I(G),
|
|
828
836
|
backgroundColor: U.value.style.chart.backgroundColor,
|
|
829
837
|
color: U.value.style.chart.color,
|
|
830
|
-
active:
|
|
831
|
-
onClose:
|
|
838
|
+
active: hn.value,
|
|
839
|
+
onClose: gn,
|
|
832
840
|
isCursorPointer: W.value
|
|
833
841
|
}, {
|
|
834
|
-
"annotator-action-close": L(() => [
|
|
835
|
-
"annotator-action-color": L(({ color: t }) => [
|
|
836
|
-
"annotator-action-draw": L(({ mode: t }) => [
|
|
837
|
-
"annotator-action-undo": L(({ disabled: t }) => [
|
|
838
|
-
"annotator-action-redo": L(({ disabled: t }) => [
|
|
839
|
-
"annotator-action-delete": L(({ disabled: t }) => [
|
|
842
|
+
"annotator-action-close": L(() => [P(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
843
|
+
"annotator-action-color": L(({ color: t }) => [P(e.$slots, "annotator-action-color", A(k({ color: t })), void 0, !0)]),
|
|
844
|
+
"annotator-action-draw": L(({ mode: t }) => [P(e.$slots, "annotator-action-draw", A(k({ mode: t })), void 0, !0)]),
|
|
845
|
+
"annotator-action-undo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-undo", A(k({ disabled: t })), void 0, !0)]),
|
|
846
|
+
"annotator-action-redo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-redo", A(k({ disabled: t })), void 0, !0)]),
|
|
847
|
+
"annotator-action-delete": L(({ disabled: t }) => [P(e.$slots, "annotator-action-delete", A(k({ disabled: t })), void 0, !0)]),
|
|
840
848
|
_: 3
|
|
841
849
|
}, 8, [
|
|
842
850
|
"svgRef",
|
|
@@ -844,15 +852,15 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
844
852
|
"color",
|
|
845
853
|
"active",
|
|
846
854
|
"isCursorPointer"
|
|
847
|
-
])) :
|
|
848
|
-
|
|
849
|
-
U.value.style.chart.title.text ? (
|
|
855
|
+
])) : T("", !0),
|
|
856
|
+
Ut.value ? (M(), E("div", Ae, null, 512)) : T("", !0),
|
|
857
|
+
U.value.style.chart.title.text ? (M(), E("div", {
|
|
850
858
|
key: 3,
|
|
851
859
|
ref_key: "chartTitle",
|
|
852
|
-
ref:
|
|
860
|
+
ref: dt,
|
|
853
861
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
854
|
-
}, [(
|
|
855
|
-
key: `title_${
|
|
862
|
+
}, [(M(), w(ae, {
|
|
863
|
+
key: `title_${st.value}`,
|
|
856
864
|
config: {
|
|
857
865
|
title: {
|
|
858
866
|
cy: "flow-title",
|
|
@@ -863,16 +871,16 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
863
871
|
...U.value.style.chart.title.subtitle
|
|
864
872
|
}
|
|
865
873
|
}
|
|
866
|
-
}, null, 8, ["config"]))], 512)) :
|
|
867
|
-
|
|
868
|
-
U.value.userOptions.show &&
|
|
874
|
+
}, null, 8, ["config"]))], 512)) : T("", !0),
|
|
875
|
+
D("div", { id: `legend-top-${z.value}` }, null, 8, je),
|
|
876
|
+
U.value.userOptions.show && Tt.value && (I(Ft) || I(Nt)) ? (M(), w(I($e), {
|
|
869
877
|
ref_key: "userOptionsRef",
|
|
870
|
-
ref:
|
|
871
|
-
key: `user_option_${
|
|
878
|
+
ref: _t,
|
|
879
|
+
key: `user_option_${ot.value}`,
|
|
872
880
|
backgroundColor: U.value.style.chart.backgroundColor,
|
|
873
881
|
color: U.value.style.chart.color,
|
|
874
|
-
isPrinting: I(
|
|
875
|
-
isImaging: I(
|
|
882
|
+
isPrinting: I(zt),
|
|
883
|
+
isImaging: I(Bt),
|
|
876
884
|
uid: z.value,
|
|
877
885
|
hasPdf: U.value.userOptions.buttons.pdf,
|
|
878
886
|
hasXls: U.value.userOptions.buttons.csv,
|
|
@@ -888,25 +896,25 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
888
896
|
position: U.value.userOptions.position,
|
|
889
897
|
hasAnnotator: U.value.userOptions.buttons.annotator,
|
|
890
898
|
printScale: U.value.userOptions.print.scale,
|
|
891
|
-
isAnnotation:
|
|
899
|
+
isAnnotation: hn.value,
|
|
892
900
|
hasTooltip: U.value.style.chart.tooltip.show && U.value.userOptions.buttons.tooltip,
|
|
893
901
|
isTooltip: K.value.showTooltip,
|
|
894
902
|
tableDialog: U.value.table.useDialog,
|
|
895
903
|
isCursorPointer: W.value,
|
|
896
|
-
onToggleTooltip:
|
|
897
|
-
onToggleFullscreen:
|
|
898
|
-
onGeneratePdf: I(
|
|
899
|
-
onGenerateCsv:
|
|
900
|
-
onGenerateImage:
|
|
901
|
-
onGenerateSvg:
|
|
902
|
-
onToggleTable:
|
|
903
|
-
onToggleAnnotator:
|
|
904
|
-
onCopyAlt:
|
|
905
|
-
style:
|
|
906
|
-
},
|
|
904
|
+
onToggleTooltip: _n,
|
|
905
|
+
onToggleFullscreen: Et,
|
|
906
|
+
onGeneratePdf: I(Vt),
|
|
907
|
+
onGenerateCsv: ln,
|
|
908
|
+
onGenerateImage: jn,
|
|
909
|
+
onGenerateSvg: An,
|
|
910
|
+
onToggleTable: mn,
|
|
911
|
+
onToggleAnnotator: gn,
|
|
912
|
+
onCopyAlt: Mn,
|
|
913
|
+
style: j({ visibility: I(Ft) ? I(Nt) ? "visible" : "hidden" : "visible" })
|
|
914
|
+
}, ge({ _: 2 }, [
|
|
907
915
|
e.$slots.menuIcon ? {
|
|
908
916
|
name: "menuIcon",
|
|
909
|
-
fn: L(({ isOpen: t, color: n }) => [
|
|
917
|
+
fn: L(({ isOpen: t, color: n }) => [P(e.$slots, "menuIcon", A(k({
|
|
910
918
|
isOpen: t,
|
|
911
919
|
color: n
|
|
912
920
|
})), void 0, !0)]),
|
|
@@ -914,37 +922,37 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
914
922
|
} : void 0,
|
|
915
923
|
e.$slots.optionTooltip ? {
|
|
916
924
|
name: "optionTooltip",
|
|
917
|
-
fn: L(() => [
|
|
925
|
+
fn: L(() => [P(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
918
926
|
key: "1"
|
|
919
927
|
} : void 0,
|
|
920
928
|
e.$slots.optionPdf ? {
|
|
921
929
|
name: "optionPdf",
|
|
922
|
-
fn: L(() => [
|
|
930
|
+
fn: L(() => [P(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
923
931
|
key: "2"
|
|
924
932
|
} : void 0,
|
|
925
933
|
e.$slots.optionCsv ? {
|
|
926
934
|
name: "optionCsv",
|
|
927
|
-
fn: L(() => [
|
|
935
|
+
fn: L(() => [P(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
928
936
|
key: "3"
|
|
929
937
|
} : void 0,
|
|
930
938
|
e.$slots.optionImg ? {
|
|
931
939
|
name: "optionImg",
|
|
932
|
-
fn: L(() => [
|
|
940
|
+
fn: L(() => [P(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
933
941
|
key: "4"
|
|
934
942
|
} : void 0,
|
|
935
943
|
e.$slots.optionSvg ? {
|
|
936
944
|
name: "optionSvg",
|
|
937
|
-
fn: L(() => [
|
|
945
|
+
fn: L(() => [P(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
938
946
|
key: "5"
|
|
939
947
|
} : void 0,
|
|
940
948
|
e.$slots.optionTable ? {
|
|
941
949
|
name: "optionTable",
|
|
942
|
-
fn: L(() => [
|
|
950
|
+
fn: L(() => [P(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
943
951
|
key: "6"
|
|
944
952
|
} : void 0,
|
|
945
953
|
e.$slots.optionFullscreen ? {
|
|
946
954
|
name: "optionFullscreen",
|
|
947
|
-
fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
955
|
+
fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [P(e.$slots, "optionFullscreen", A(k({
|
|
948
956
|
toggleFullscreen: t,
|
|
949
957
|
isFullscreen: n
|
|
950
958
|
})), void 0, !0)]),
|
|
@@ -952,7 +960,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
952
960
|
} : void 0,
|
|
953
961
|
e.$slots.optionAnnotator ? {
|
|
954
962
|
name: "optionAnnotator",
|
|
955
|
-
fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
963
|
+
fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [P(e.$slots, "optionAnnotator", A(k({
|
|
956
964
|
toggleAnnotator: t,
|
|
957
965
|
isAnnotator: n
|
|
958
966
|
})), void 0, !0)]),
|
|
@@ -960,64 +968,64 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
960
968
|
} : void 0,
|
|
961
969
|
e.$slots.optionAltCopy ? {
|
|
962
970
|
name: "optionAltCopy",
|
|
963
|
-
fn: L(({ altCopy: t }) => [
|
|
971
|
+
fn: L(({ altCopy: t }) => [P(e.$slots, "optionAltCopy", A(k({ altCopy: t })), void 0, !0)]),
|
|
964
972
|
key: "9"
|
|
965
973
|
} : void 0,
|
|
966
974
|
e.$slots["custom-menu-before"] ? {
|
|
967
975
|
name: "custom-menu-before",
|
|
968
|
-
fn: L(() => [
|
|
976
|
+
fn: L(() => [P(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
969
977
|
key: "10"
|
|
970
978
|
} : void 0,
|
|
971
979
|
e.$slots["custom-menu-after"] ? {
|
|
972
980
|
name: "custom-menu-after",
|
|
973
|
-
fn: L(() => [
|
|
981
|
+
fn: L(() => [P(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
974
982
|
key: "11"
|
|
975
983
|
} : void 0
|
|
976
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.callbacks.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.printScale.isAnnotation.hasTooltip.isTooltip.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
977
|
-
|
|
984
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.callbacks.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.printScale.isAnnotation.hasTooltip.isTooltip.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : T("", !0),
|
|
985
|
+
D("div", Me, [(M(), E("svg", {
|
|
978
986
|
ref_key: "svgRef",
|
|
979
987
|
ref: G,
|
|
980
|
-
xmlns: I(
|
|
988
|
+
xmlns: I(p),
|
|
981
989
|
"aria-describedby": `chart-instructions-${z.value}`,
|
|
982
|
-
viewBox: `0 0 ${
|
|
983
|
-
class:
|
|
990
|
+
viewBox: `0 0 ${Qt.value.width} ${Qt.value.height}`,
|
|
991
|
+
class: xe({
|
|
984
992
|
"vue-data-ui-fullscreen--on": H.value,
|
|
985
993
|
"vue-data-ui-fulscreen--off": !H.value
|
|
986
994
|
}),
|
|
987
|
-
style:
|
|
995
|
+
style: j({
|
|
988
996
|
maxWidth: "100%",
|
|
989
997
|
overflow: "visible",
|
|
990
998
|
background: "transparent",
|
|
991
999
|
color: U.value.style.chart.color
|
|
992
1000
|
}),
|
|
993
1001
|
tabindex: "0",
|
|
994
|
-
onFocus:
|
|
995
|
-
onBlur:
|
|
996
|
-
onKeydown:
|
|
1002
|
+
onFocus: In,
|
|
1003
|
+
onBlur: Ln,
|
|
1004
|
+
onKeydown: Rn
|
|
997
1005
|
}, [
|
|
998
|
-
|
|
999
|
-
e.$slots["chart-background"] ? (
|
|
1006
|
+
ve(I(et)),
|
|
1007
|
+
e.$slots["chart-background"] ? (M(), E("foreignObject", {
|
|
1000
1008
|
key: 0,
|
|
1001
1009
|
x: 0,
|
|
1002
1010
|
y: 0,
|
|
1003
|
-
width:
|
|
1004
|
-
height:
|
|
1011
|
+
width: Qt.value.width,
|
|
1012
|
+
height: Qt.value.height,
|
|
1005
1013
|
style: { pointerEvents: "none" }
|
|
1006
|
-
}, [
|
|
1007
|
-
|
|
1014
|
+
}, [P(e.$slots, "chart-background", {}, void 0, !0)], 8, Pe)) : T("", !0),
|
|
1015
|
+
D("defs", null, [(M(!0), E(me, null, Ce(q.value.links, (e, t) => (M(), E("linearGradient", {
|
|
1008
1016
|
id: e.id,
|
|
1009
1017
|
x1: "0%",
|
|
1010
1018
|
y1: "0%",
|
|
1011
1019
|
x2: "100%",
|
|
1012
1020
|
y2: "0%"
|
|
1013
|
-
}, [
|
|
1021
|
+
}, [D("stop", {
|
|
1014
1022
|
offset: "0%",
|
|
1015
1023
|
"stop-color": e.sourceColor
|
|
1016
|
-
}, null, 8,
|
|
1024
|
+
}, null, 8, Ie), D("stop", {
|
|
1017
1025
|
offset: "100%",
|
|
1018
1026
|
"stop-color": e.targetColor
|
|
1019
|
-
}, null, 8,
|
|
1020
|
-
(
|
|
1027
|
+
}, null, 8, Le)], 8, Fe))), 256))]),
|
|
1028
|
+
(M(!0), E(me, null, Ce(q.value.links, (e) => (M(), E("path", {
|
|
1021
1029
|
class: "vue-ui-flow-link",
|
|
1022
1030
|
d: e.path,
|
|
1023
1031
|
"stroke-linejoin": "round",
|
|
@@ -1025,53 +1033,53 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1025
1033
|
fill: `url(#${e.id})`,
|
|
1026
1034
|
stroke: U.value.style.chart.links.stroke,
|
|
1027
1035
|
"stroke-width": U.value.style.chart.links.strokeWidth,
|
|
1028
|
-
style:
|
|
1036
|
+
style: j(`
|
|
1029
1037
|
opacity:${J.value ? J.value.includes(e.source) && J.value.includes(e.target) ? 1 : .3 : Y.value ? [e.target, e.source].includes(Y.value) ? 1 : .3 : U.value.style.chart.links.opacity}
|
|
1030
1038
|
`)
|
|
1031
|
-
}, null, 12,
|
|
1032
|
-
(
|
|
1039
|
+
}, null, 12, Re))), 256)),
|
|
1040
|
+
(M(!0), E(me, null, Ce(q.value.nodes, (e, t) => (M(), E("rect", {
|
|
1033
1041
|
"data-a11y-node-id": e.id,
|
|
1034
1042
|
class: "vue-ui-flow-node",
|
|
1035
1043
|
x: e.x,
|
|
1036
|
-
y: I(
|
|
1037
|
-
height: I(
|
|
1038
|
-
width:
|
|
1044
|
+
y: I(c)(e.absoluteY) + U.value.style.chart.padding.top,
|
|
1045
|
+
height: I(c)(e.height),
|
|
1046
|
+
width: Gt.value,
|
|
1039
1047
|
fill: e.color,
|
|
1040
1048
|
stroke: U.value.style.chart.nodes.stroke,
|
|
1041
1049
|
"stroke-width": U.value.style.chart.nodes.strokeWidth,
|
|
1042
1050
|
rx: U.value.style.chart.nodes.borderRadius,
|
|
1043
|
-
style:
|
|
1051
|
+
style: j({
|
|
1044
1052
|
opacity: J.value ? J.value.includes(e.name) ? 1 : .3 : 1,
|
|
1045
|
-
outline:
|
|
1053
|
+
outline: tn.value !== null && tn.value === e.id ? "2px solid currentColor" : void 0
|
|
1046
1054
|
}),
|
|
1047
|
-
"aria-label": `${e.name}: ${I(
|
|
1055
|
+
"aria-label": `${e.name}: ${I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(s)({
|
|
1048
1056
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1049
1057
|
v: e.value,
|
|
1050
1058
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
1051
1059
|
r: U.value.style.chart.nodes.labels.rounding
|
|
1052
1060
|
}))}`,
|
|
1053
|
-
onMouseenter: (n) =>
|
|
1054
|
-
onMouseleave: (e) =>
|
|
1055
|
-
onClick: (e) =>
|
|
1056
|
-
}, null, 44,
|
|
1057
|
-
U.value.style.chart.nodes.labels.show ? (
|
|
1058
|
-
x: e.x +
|
|
1059
|
-
y: (U.value.style.chart.nodes.labels.showValue ? I(
|
|
1061
|
+
onMouseenter: (n) => an(e, t, "pointer", fn.value.get(e.id)),
|
|
1062
|
+
onMouseleave: (e) => on(t),
|
|
1063
|
+
onClick: (e) => sn(t)
|
|
1064
|
+
}, null, 44, ze))), 256)),
|
|
1065
|
+
U.value.style.chart.nodes.labels.show ? (M(), E("g", Be, [(M(!0), E(me, null, Ce(q.value.nodes, (e, t) => (M(), E("text", {
|
|
1066
|
+
x: e.x + Gt.value / 2,
|
|
1067
|
+
y: (U.value.style.chart.nodes.labels.showValue ? I(c)(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,
|
|
1060
1068
|
"font-size": U.value.style.chart.nodes.labels.fontSize,
|
|
1061
|
-
fill: I(
|
|
1069
|
+
fill: I(f)(e.color),
|
|
1062
1070
|
"text-anchor": "middle",
|
|
1063
|
-
style:
|
|
1064
|
-
},
|
|
1071
|
+
style: j(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1072
|
+
}, F(U.value.style.chart.nodes.labels.abbreviation.use ? I(d)({
|
|
1065
1073
|
source: e.name,
|
|
1066
1074
|
length: U.value.style.chart.nodes.labels.abbreviation.length
|
|
1067
|
-
}) : e.name), 13,
|
|
1068
|
-
x: e.x +
|
|
1069
|
-
y: I(
|
|
1075
|
+
}) : e.name), 13, Ve))), 256)), U.value.style.chart.nodes.labels.showValue ? (M(!0), E(me, { key: 0 }, Ce(q.value.nodes, (e, t) => (M(), E("text", {
|
|
1076
|
+
x: e.x + Gt.value / 2,
|
|
1077
|
+
y: I(c)(e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 1.3) + U.value.style.chart.padding.top,
|
|
1070
1078
|
"font-size": U.value.style.chart.nodes.labels.fontSize,
|
|
1071
|
-
fill: I(
|
|
1079
|
+
fill: I(f)(e.color),
|
|
1072
1080
|
"text-anchor": "middle",
|
|
1073
|
-
style:
|
|
1074
|
-
},
|
|
1081
|
+
style: j(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1082
|
+
}, F(I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(s)({
|
|
1075
1083
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1076
1084
|
v: e.value,
|
|
1077
1085
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -1079,53 +1087,53 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1079
1087
|
}), {
|
|
1080
1088
|
datapoint: e,
|
|
1081
1089
|
seriesIndex: t
|
|
1082
|
-
})), 13,
|
|
1083
|
-
|
|
1084
|
-
...
|
|
1085
|
-
isPrintingImg: I(
|
|
1086
|
-
isPrintingSvg:
|
|
1090
|
+
})), 13, He))), 256)) : T("", !0)])) : T("", !0),
|
|
1091
|
+
P(e.$slots, "svg", { svg: {
|
|
1092
|
+
...Qt.value,
|
|
1093
|
+
isPrintingImg: I(zt) || I(Bt) || yt.value,
|
|
1094
|
+
isPrintingSvg: bt.value
|
|
1087
1095
|
} }, void 0, !0)
|
|
1088
|
-
], 46,
|
|
1096
|
+
], 46, Ne)), e.$slots.hint ? (M(), E("div", Ue, [P(e.$slots, "hint", A(k({
|
|
1089
1097
|
hint: U.value.a11y.translations.keyboardNavigation,
|
|
1090
|
-
isVisible:
|
|
1091
|
-
})), void 0, !0)])) :
|
|
1092
|
-
e.$slots.watermark ? (
|
|
1093
|
-
|
|
1094
|
-
|
|
1098
|
+
isVisible: wt.value
|
|
1099
|
+
})), void 0, !0)])) : T("", !0)]),
|
|
1100
|
+
e.$slots.watermark ? (M(), E("div", We, [P(e.$slots, "watermark", A(k({ isPrinting: I(zt) || I(Bt) || yt.value || bt.value })), void 0, !0)])) : T("", !0),
|
|
1101
|
+
D("div", { id: `legend-bottom-${z.value}` }, null, 8, Ge),
|
|
1102
|
+
ht.value && (U.value.style.chart.legend.show || e.$slots.legend) ? (M(), w(he, {
|
|
1095
1103
|
key: 6,
|
|
1096
1104
|
to: U.value.style.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
|
|
1097
|
-
}, [
|
|
1105
|
+
}, [D("div", {
|
|
1098
1106
|
ref_key: "chartLegend",
|
|
1099
|
-
ref:
|
|
1100
|
-
}, [
|
|
1107
|
+
ref: ut
|
|
1108
|
+
}, [P(e.$slots, "legend", { legend: vn.value }, () => [U.value.style.chart.legend.show && yn.value.length ? (M(), w(fe, {
|
|
1101
1109
|
key: 0,
|
|
1102
|
-
legendSet:
|
|
1103
|
-
config:
|
|
1110
|
+
legendSet: yn.value,
|
|
1111
|
+
config: xn.value,
|
|
1104
1112
|
isCursorPointer: W.value,
|
|
1105
|
-
onClickMarker: t[0] ||= (e) =>
|
|
1113
|
+
onClickMarker: t[0] ||= (e) => bn(e)
|
|
1106
1114
|
}, {
|
|
1107
|
-
item: L(({ legend: e, index: t }) => [I(
|
|
1115
|
+
item: L(({ legend: e, index: t }) => [I(Ot) ? T("", !0) : (M(), E("div", {
|
|
1108
1116
|
key: 0,
|
|
1109
1117
|
onClick: (t) => e.segregate(),
|
|
1110
|
-
style:
|
|
1111
|
-
},
|
|
1118
|
+
style: j(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
|
|
1119
|
+
}, F(e.display), 13, Ke))]),
|
|
1112
1120
|
_: 1
|
|
1113
1121
|
}, 8, [
|
|
1114
1122
|
"legendSet",
|
|
1115
1123
|
"config",
|
|
1116
1124
|
"isCursorPointer"
|
|
1117
|
-
])) :
|
|
1118
|
-
e.$slots.source ? (
|
|
1125
|
+
])) : T("", !0)], !0)], 512)], 8, ["to"])) : T("", !0),
|
|
1126
|
+
e.$slots.source ? (M(), E("div", {
|
|
1119
1127
|
key: 7,
|
|
1120
1128
|
ref_key: "source",
|
|
1121
|
-
ref:
|
|
1129
|
+
ref: ft,
|
|
1122
1130
|
dir: "auto"
|
|
1123
|
-
}, [
|
|
1124
|
-
|
|
1131
|
+
}, [P(e.$slots, "source", {}, void 0, !0)], 512)) : T("", !0),
|
|
1132
|
+
ve(I(Je), {
|
|
1125
1133
|
ref_key: "tooltip",
|
|
1126
|
-
ref:
|
|
1134
|
+
ref: vt,
|
|
1127
1135
|
teleportTo: U.value.style.chart.tooltip.teleportTo,
|
|
1128
|
-
show: K.value.showTooltip &&
|
|
1136
|
+
show: K.value.showTooltip && ct.value,
|
|
1129
1137
|
backgroundColor: U.value.style.chart.tooltip.backgroundColor,
|
|
1130
1138
|
color: U.value.style.chart.tooltip.color,
|
|
1131
1139
|
fontSize: U.value.style.chart.tooltip.fontSize,
|
|
@@ -1137,19 +1145,19 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1137
1145
|
offsetX: U.value.style.chart.tooltip.offsetX,
|
|
1138
1146
|
offsetY: U.value.style.chart.tooltip.offsetY,
|
|
1139
1147
|
parent: B.value,
|
|
1140
|
-
content:
|
|
1141
|
-
isCustom:
|
|
1148
|
+
content: lt.value,
|
|
1149
|
+
isCustom: en.value,
|
|
1142
1150
|
isFullscreen: H.value,
|
|
1143
1151
|
smooth: U.value.style.chart.tooltip.smooth,
|
|
1144
1152
|
backdropFilter: U.value.style.chart.tooltip.backdropFilter,
|
|
1145
1153
|
smoothForce: U.value.style.chart.tooltip.smoothForce,
|
|
1146
1154
|
smoothSnapThreshold: U.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1147
|
-
isA11yMode:
|
|
1148
|
-
a11yPosition:
|
|
1155
|
+
isA11yMode: Ct.value === "keyboard",
|
|
1156
|
+
a11yPosition: St.value
|
|
1149
1157
|
}, {
|
|
1150
|
-
"tooltip-before": L(() => [
|
|
1151
|
-
tooltip: L(() => [
|
|
1152
|
-
"tooltip-after": L(() => [
|
|
1158
|
+
"tooltip-before": L(() => [P(e.$slots, "tooltip-before", A(k({ ...X.value })), void 0, !0)]),
|
|
1159
|
+
tooltip: L(() => [P(e.$slots, "tooltip", A(k({ ...X.value })), void 0, !0)]),
|
|
1160
|
+
"tooltip-after": L(() => [P(e.$slots, "tooltip-after", A(k({ ...X.value })), void 0, !0)]),
|
|
1153
1161
|
_: 3
|
|
1154
1162
|
}, 8, [
|
|
1155
1163
|
"teleportTo",
|
|
@@ -1175,29 +1183,29 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1175
1183
|
"isA11yMode",
|
|
1176
1184
|
"a11yPosition"
|
|
1177
1185
|
]),
|
|
1178
|
-
|
|
1186
|
+
Tt.value && U.value.userOptions.buttons.table ? (M(), w(we(Cn.value.component), ye({ key: 8 }, Cn.value.props, {
|
|
1179
1187
|
ref_key: "tableUnit",
|
|
1180
|
-
ref:
|
|
1181
|
-
onClose:
|
|
1182
|
-
}),
|
|
1183
|
-
content: L(() => [
|
|
1188
|
+
ref: gt,
|
|
1189
|
+
onClose: wn
|
|
1190
|
+
}), ge({
|
|
1191
|
+
content: L(() => [ve(I(Ze), {
|
|
1184
1192
|
colNames: Z.value.colNames,
|
|
1185
1193
|
head: Z.value.head,
|
|
1186
1194
|
body: Z.value.body,
|
|
1187
1195
|
config: Z.value.config,
|
|
1188
|
-
title: U.value.table.useDialog ? "" :
|
|
1196
|
+
title: U.value.table.useDialog ? "" : Cn.value.title,
|
|
1189
1197
|
withCloseButton: !U.value.table.useDialog,
|
|
1190
1198
|
isCursorPointer: W.value,
|
|
1191
|
-
onClose:
|
|
1199
|
+
onClose: wn
|
|
1192
1200
|
}, {
|
|
1193
|
-
th: L(({ th: e }) => [
|
|
1201
|
+
th: L(({ th: e }) => [D("div", {
|
|
1194
1202
|
innerHTML: e,
|
|
1195
1203
|
style: {
|
|
1196
1204
|
display: "flex",
|
|
1197
1205
|
"align-items": "center"
|
|
1198
1206
|
}
|
|
1199
|
-
}, null, 8,
|
|
1200
|
-
td: L(({ td: e }) => [
|
|
1207
|
+
}, null, 8, qe)]),
|
|
1208
|
+
td: L(({ td: e }) => [_e(F(e.name || e), 1)]),
|
|
1201
1209
|
_: 1
|
|
1202
1210
|
}, 8, [
|
|
1203
1211
|
"colNames",
|
|
@@ -1211,24 +1219,24 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1211
1219
|
_: 2
|
|
1212
1220
|
}, [U.value.table.useDialog ? {
|
|
1213
1221
|
name: "title",
|
|
1214
|
-
fn: L(() => [
|
|
1222
|
+
fn: L(() => [_e(F(Cn.value.title), 1)]),
|
|
1215
1223
|
key: "0"
|
|
1216
1224
|
} : void 0, U.value.table.useDialog ? {
|
|
1217
1225
|
name: "actions",
|
|
1218
|
-
fn: L(() => [
|
|
1226
|
+
fn: L(() => [D("button", {
|
|
1219
1227
|
tabindex: "0",
|
|
1220
1228
|
class: "vue-ui-user-options-button",
|
|
1221
|
-
onClick: t[1] ||= (e) =>
|
|
1222
|
-
style:
|
|
1223
|
-
}, [
|
|
1229
|
+
onClick: t[1] ||= (e) => ln(U.value.userOptions.callbacks.csv),
|
|
1230
|
+
style: j({ cursor: W.value ? "pointer" : "default" })
|
|
1231
|
+
}, [ve(I(Ye), {
|
|
1224
1232
|
name: "fileCsv",
|
|
1225
|
-
stroke:
|
|
1233
|
+
stroke: Cn.value.props.color
|
|
1226
1234
|
}, null, 8, ["stroke"])], 4)]),
|
|
1227
1235
|
key: "1"
|
|
1228
|
-
} : void 0]), 1040)) :
|
|
1229
|
-
|
|
1230
|
-
], 46,
|
|
1236
|
+
} : void 0]), 1040)) : T("", !0),
|
|
1237
|
+
P(e.$slots, "skeleton", {}, () => [I(Ot) ? (M(), w(b, { key: 0 })) : T("", !0)], !0)
|
|
1238
|
+
], 46, Oe));
|
|
1231
1239
|
}
|
|
1232
|
-
}, [["__scopeId", "data-v-
|
|
1240
|
+
}, [["__scopeId", "data-v-07a945d1"]]);
|
|
1233
1241
|
//#endregion
|
|
1234
|
-
export {
|
|
1242
|
+
export { De as n, Je as t };
|