vue-data-ui 3.7.14 → 3.7.16
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/README.md +1 -0
- package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-CtB38kJq.js} +1 -1
- package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon--wNsuYtd.js} +5 -3
- package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-CsQ_h1jK.js} +1 -1
- package/dist/{DataTable-Ho3Bf5oq.js → DataTable-DRZJOlJB.js} +1 -1
- package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-C_uUSM9z.js} +2 -2
- package/dist/{PackageVersion-DtFSiS0a.js → PackageVersion-BW9_gimf.js} +1 -1
- package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-CMmG5Mka.js} +2 -2
- package/dist/{Slicer-DScoMPmj.js → Slicer-BJ0Jqa6a.js} +1 -1
- package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-BWl4UOqy.js} +1 -1
- package/dist/{Title-BwhstTFA.js → Title-CM2dM0rQ.js} +1 -1
- package/dist/{UserOptions-DgscxIaa.js → UserOptions-5GYBcJJU.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-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-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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -2
- package/dist/{useNestedProp-BjZ1Lg9E.js → useNestedProp-CoXaJ2T6.js} +5 -2
- package/dist/{vue-data-ui-Y3bsII4e.js → vue-data-ui-DOR1SV2J.js} +65 -65
- package/dist/vue-data-ui.js +67 -67
- package/dist/{vue-ui-3d-bar-BEq_QYDw.js → vue-ui-3d-bar--XbxxtdU.js} +3 -3
- package/dist/{vue-ui-accordion-BXTVRRX7.js → vue-ui-accordion-WOXCCkiC.js} +2 -2
- package/dist/{vue-ui-age-pyramid-CTZ8MQWv.js → vue-ui-age-pyramid-oJ-yVno1.js} +3 -3
- package/dist/{vue-ui-annotator-CmCG1U2b.js → vue-ui-annotator-DmX0nJap.js} +4 -4
- package/dist/{vue-ui-bullet-CdszYw76.js → vue-ui-bullet-BSexyA7e.js} +3 -3
- package/dist/{vue-ui-candlestick-BgqEDWwB.js → vue-ui-candlestick-Cn0FCDdN.js} +4 -4
- package/dist/{vue-ui-carousel-table-B-Nig8SF.js → vue-ui-carousel-table-HJewuQDB.js} +2 -2
- package/dist/{vue-ui-chestnut-BQDpGhPH.js → vue-ui-chestnut-jpnadZPu.js} +2 -2
- package/dist/{vue-ui-chord-Cm8enZ-m.js → vue-ui-chord-DtAB5se2.js} +3 -3
- package/dist/{vue-ui-circle-pack-CsFGW1eB.js → vue-ui-circle-pack-BTbgkyJ2.js} +3 -3
- package/dist/vue-ui-cursor-DgWumfhl.js +252 -0
- package/dist/{vue-ui-dashboard-UOeqXi6-.js → vue-ui-dashboard-BnAUQtnC.js} +66 -66
- package/dist/vue-ui-digits-ByiQlK70.js +200 -0
- package/dist/{vue-ui-donut-Ckz6GstQ.js → vue-ui-donut-CKSt_cq4.js} +3 -3
- package/dist/{vue-ui-donut-evolution-CFRT7O_s.js → vue-ui-donut-evolution-DvdTGB7S.js} +4 -4
- package/dist/{vue-ui-dumbbell-Djwlq0Rf.js → vue-ui-dumbbell-Injrp_b4.js} +3 -3
- package/dist/{vue-ui-flow-B97OGV1a.js → vue-ui-flow-bbLDmA3Q.js} +412 -401
- package/dist/{vue-ui-funnel-BXG8DRLY.js → vue-ui-funnel-B9iC-gYh.js} +3 -3
- package/dist/{vue-ui-galaxy-D2O9-OYS.js → vue-ui-galaxy-SMeufYzr.js} +3 -3
- package/dist/{vue-ui-gauge-B0FlPkKR.js → vue-ui-gauge-FMuSlHqG.js} +3 -3
- package/dist/{vue-ui-gizmo-BW0UgYhD.js → vue-ui-gizmo-0B3wKFgG.js} +2 -2
- package/dist/{vue-ui-heatmap-Dpn7FGns.js → vue-ui-heatmap-BxztC6jw.js} +4 -4
- package/dist/{vue-ui-history-plot-CL2ZEcD2.js → vue-ui-history-plot-D_qkv6IS.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-D2mcVfxK.js → vue-ui-horizontal-bar-BhTVXhQB.js} +8 -8
- package/dist/{vue-ui-kpi-Bkxvv0Re.js → vue-ui-kpi-DvCTUXWh.js} +2 -2
- package/dist/{vue-ui-mini-loader-oYhRTSA7.js → vue-ui-mini-loader-BjT-X5O8.js} +1 -1
- package/dist/{vue-ui-molecule-vv1p3SyW.js → vue-ui-molecule-CazE9-Nk.js} +2 -2
- package/dist/{vue-ui-mood-radar-Whcu-ZOg.js → vue-ui-mood-radar-vrciNRi0.js} +3 -3
- package/dist/{vue-ui-nested-donuts-CzWDhltb.js → vue-ui-nested-donuts-BAcHknTn.js} +3 -3
- package/dist/{vue-ui-onion-D8UDqyva.js → vue-ui-onion-DgmiBf_W.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-CIZH5K2W.js → vue-ui-parallel-coordinate-plot-CdvrCiVK.js} +3 -3
- package/dist/{vue-ui-quadrant-Dnt0cVR5.js → vue-ui-quadrant-C1GEbyIm.js} +3 -3
- package/dist/{vue-ui-quick-chart-3PF3h9Px.js → vue-ui-quick-chart-DL9GV0J3.js} +3 -3
- package/dist/{vue-ui-radar-CEbL9Shz.js → vue-ui-radar-B4DfCpS5.js} +3 -3
- package/dist/{vue-ui-rating-BALFx0aJ.js → vue-ui-rating-CyJYLx9l.js} +1 -1
- package/dist/{vue-ui-relation-circle-DzpqvYOF.js → vue-ui-relation-circle-Dm8wLlBa.js} +3 -3
- package/dist/{vue-ui-ridgeline-D-PPE15J.js → vue-ui-ridgeline-E2EPeaJ7.js} +3 -3
- package/dist/{vue-ui-rings-lhCHl30r.js → vue-ui-rings-DnlHsA26.js} +3 -3
- package/dist/{vue-ui-scatter-CzHyLXEO.js → vue-ui-scatter-DuKgh9Zo.js} +3 -3
- package/dist/{vue-ui-skeleton-DleKPF3G.js → vue-ui-skeleton-BhWvFc3O.js} +2 -2
- package/dist/vue-ui-smiley-BkXC5UFE.js +377 -0
- package/dist/{vue-ui-spark-trend-DpwkGAmg.js → vue-ui-spark-trend-DZWSf9JB.js} +2 -2
- package/dist/{vue-ui-sparkbar-CbJvU0rf.js → vue-ui-sparkbar-CqH28hXO.js} +2 -2
- package/dist/{vue-ui-sparkgauge-B0CvXpE3.js → vue-ui-sparkgauge-DT_yPxzw.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BMqK69TJ.js → vue-ui-sparkhistogram-Dv9UjLCt.js} +2 -2
- package/dist/{vue-ui-sparkline-BzXfYlcf.js → vue-ui-sparkline-AvAyn0Uv.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-DoA2pTmw.js → vue-ui-sparkstackbar-X_VGCj6T.js} +2 -2
- package/dist/{vue-ui-stackbar-AJjoa2tk.js → vue-ui-stackbar-DQP8yEJM.js} +4 -4
- package/dist/{vue-ui-stackline-CN5pHu5R.js → vue-ui-stackline-VLPuuMyW.js} +4 -4
- package/dist/{vue-ui-strip-plot-Dzl2_jdd.js → vue-ui-strip-plot-Tf-eojtF.js} +3 -3
- package/dist/{vue-ui-table-CkrPb0oh.js → vue-ui-table-Onk8Ep_o.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BHqtF71-.js → vue-ui-table-heatmap-DKJxeQIL.js} +2 -2
- package/dist/{vue-ui-table-sparkline-83wvFrDq.js → vue-ui-table-sparkline-DgISlLtt.js} +2 -2
- package/dist/{vue-ui-thermometer-C-q3BXx7.js → vue-ui-thermometer-BnYdXPWo.js} +3 -3
- package/dist/{vue-ui-timer-DdPan7AR.js → vue-ui-timer-BWNvvVI8.js} +4 -4
- package/dist/{vue-ui-tiremarks-CM4SFul5.js → vue-ui-tiremarks-CW0yee-q.js} +3 -3
- package/dist/{vue-ui-treemap-BFIBgzvj.js → vue-ui-treemap-BfY0n0I2.js} +4 -4
- package/dist/{vue-ui-waffle-b5MrZni2.js → vue-ui-waffle-D9lUh12t.js} +3 -3
- package/dist/{vue-ui-wheel-BphjlN7h.js → vue-ui-wheel-C-oMzvbq.js} +3 -3
- package/dist/vue-ui-word-cloud-DYrmMP9R.js +1419 -0
- package/dist/{vue-ui-world-khFqzGoQ.js → vue-ui-world-DAObATdc.js} +2 -2
- package/dist/{vue-ui-xy-DyWuuhwF.js → vue-ui-xy-D6gFGE5R.js} +5 -5
- package/dist/{vue-ui-xy-canvas-i1eQQ9Bt.js → vue-ui-xy-canvas-B_dtbPQy.js} +6 -6
- package/package.json +1 -1
- package/dist/vue-ui-cursor-4Ldkkd2T.js +0 -229
- package/dist/vue-ui-digits-uszbkbEK.js +0 -154
- package/dist/vue-ui-smiley-DABDSgAF.js +0 -852
- package/dist/vue-ui-word-cloud-BE7kYijj.js +0 -1224
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { defineAsyncComponent as j, ref as u, computed as f, onMounted as Bo, toRefs as Do, watch as xe, createElementBlock as m, openBlock as c, unref as r, normalizeStyle as W, normalizeClass as Ht, createBlock as Q, createCommentVNode as $, createElementVNode as U, createVNode as Oe, withCtx as v, renderSlot as h, normalizeProps as M, guardReactiveProps as P, createSlots as jt, Fragment as he, renderList as ge, withKeys as Je, withModifiers as Qe, toDisplayString as pe, Teleport as Mo, resolveDynamicComponent as Po, mergeProps as Io, createTextVNode as Wt, nextTick as Ut } from "vue";
|
|
2
|
+
import { c as _e, t as zo, o as Gt, g as Lo, i as Ro, p as R, j as Yo, M as T, l as Ho, d as le, X as jo, a as Ne, w as Vt, S as Wo, u as Uo, q as Go, x as Vo } from "./lib-DUaaQGCv.js";
|
|
3
|
+
import { t as Xo, u as qo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ko, a as et } from "./useNestedProp-CoXaJ2T6.js";
|
|
5
|
+
import { u as Zo } from "./usePrinter-BdVu83IN.js";
|
|
6
|
+
import { u as Jo, B as Qo } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as el } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as tl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import al from "./Legend-DSyOOSJ1.js";
|
|
12
|
+
import nl from "./Title-CM2dM0rQ.js";
|
|
13
|
+
import sl from "./img-BYzbY8TZ.js";
|
|
14
|
+
import { _ as rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, nodes: { stroke: "#1A1A1A" }, links: { stroke: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, qt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, nodes: { stroke: "#3A3A3A" }, links: { stroke: "#3A3A3A" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Kt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, nodes: { stroke: "#1E1E1E" }, links: { stroke: "#1E1E1E" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Zt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, nodes: { stroke: "#1A1A1A" }, links: { stroke: "#1A1A1A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Jt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, nodes: { stroke: "#fbfafa" }, links: { stroke: "#fbfafa" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Qt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, nodes: { stroke: "#f6f6fb" }, links: { stroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, eo = {
|
|
16
16
|
default: {},
|
|
17
|
-
dark:
|
|
18
|
-
celebration:
|
|
19
|
-
celebrationNight:
|
|
20
|
-
hack:
|
|
21
|
-
zen:
|
|
22
|
-
concrete:
|
|
23
|
-
},
|
|
17
|
+
dark: Xt,
|
|
18
|
+
celebration: qt,
|
|
19
|
+
celebrationNight: Kt,
|
|
20
|
+
hack: Zt,
|
|
21
|
+
zen: Jt,
|
|
22
|
+
concrete: Qt
|
|
23
|
+
}, Yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
24
|
__proto__: null,
|
|
25
|
-
celebration:
|
|
26
|
-
celebrationNight:
|
|
27
|
-
concrete:
|
|
28
|
-
dark:
|
|
29
|
-
default:
|
|
30
|
-
hack:
|
|
31
|
-
zen:
|
|
32
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
25
|
+
celebration: qt,
|
|
26
|
+
celebrationNight: Kt,
|
|
27
|
+
concrete: Qt,
|
|
28
|
+
dark: Xt,
|
|
29
|
+
default: eo,
|
|
30
|
+
hack: Zt,
|
|
31
|
+
zen: Jt
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), ul = ["id"], il = {
|
|
33
33
|
key: 1,
|
|
34
34
|
ref: "noTitle",
|
|
35
35
|
class: "vue-data-ui-no-title-space",
|
|
36
36
|
style: "height:36px; width: 100%;background:transparent"
|
|
37
|
-
},
|
|
37
|
+
}, cl = ["id"], dl = ["xmlns", "viewBox"], vl = ["width", "height"], fl = ["id"], hl = ["stop-color"], gl = ["stop-color"], pl = ["d", "fill", "stroke", "stroke-width"], bl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx", "aria-label", "onMouseenter", "onMouseleave", "onClick", "onKeydown", "onFocus", "onBlur"], ml = { key: 1 }, yl = ["x", "y", "font-size", "fill"], Cl = ["x", "y", "font-size", "fill"], kl = {
|
|
38
38
|
key: 4,
|
|
39
39
|
class: "vue-data-ui-watermark"
|
|
40
|
-
},
|
|
40
|
+
}, Al = ["id"], wl = ["onClick"], $l = ["innerHTML"], Tl = {
|
|
41
41
|
__name: "vue-ui-flow",
|
|
42
42
|
props: {
|
|
43
43
|
config: {
|
|
@@ -53,19 +53,19 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
setup(to, { expose: oo }) {
|
|
57
|
+
const lo = j(() => import("./Tooltip-De7i-i20.js")), ao = j(() => import("./BaseIcon--wNsuYtd.js")), no = j(() => import("./vue-ui-accordion-WOXCCkiC.js")), so = j(() => import("./DataTable-DRZJOlJB.js")), ro = j(() => import("./PenAndPaper-CMmG5Mka.js")), uo = j(() => import("./UserOptions-5GYBcJJU.js")), io = j(() => import("./PackageVersion-BW9_gimf.js")), co = j(() => import("./BaseDraggableDialog-CtB38kJq.js")), { vue_ui_flow: vo } = Ko(), { isThemeValid: fo, warnInvalidTheme: ho } = tl(), F = to, G = u(_e()), B = u(null), tt = u(0), ot = u(0), Be = u(!1), De = u(""), lt = u(null), at = u(null), nt = u(null), ae = u(null), be = u(null), st = u(!1), ne = u(null), Me = u(null), Pe = u(null), rt = f(() => !!F.dataset && F.dataset.length);
|
|
58
|
+
Bo(() => {
|
|
59
|
+
st.value = !0, it();
|
|
60
60
|
});
|
|
61
61
|
const V = u(!1);
|
|
62
|
-
function
|
|
63
|
-
V.value = o,
|
|
62
|
+
function ut(o) {
|
|
63
|
+
V.value = o, tt.value += 1;
|
|
64
64
|
}
|
|
65
|
-
const e = u(
|
|
66
|
-
...
|
|
65
|
+
const e = u(Ye()), { loading: Ie, FINAL_DATASET: me, manualLoading: ze } = Jo({
|
|
66
|
+
...Do(F),
|
|
67
67
|
FINAL_CONFIG: e,
|
|
68
|
-
prepareConfig:
|
|
68
|
+
prepareConfig: Ye,
|
|
69
69
|
skeletonDataset: [
|
|
70
70
|
["A", "B", 2, "#CACACA"],
|
|
71
71
|
["B", "C", 1, "#CACACA"],
|
|
@@ -74,7 +74,7 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
74
74
|
["F", "G", 0.5, "#AAAAAA"],
|
|
75
75
|
["G", "H", 0.25, "#AAAAAA"]
|
|
76
76
|
],
|
|
77
|
-
skeletonConfig:
|
|
77
|
+
skeletonConfig: zo({
|
|
78
78
|
defaultConfig: e.value,
|
|
79
79
|
userConfig: {
|
|
80
80
|
userOptions: { show: !1 },
|
|
@@ -106,88 +106,88 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
})
|
|
109
|
-
}),
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
109
|
+
}), go = f(() => !!e.value.debug);
|
|
110
|
+
function it() {
|
|
111
|
+
if (Gt(F.dataset) && (Lo({
|
|
112
112
|
componentName: "VueUiFlow",
|
|
113
113
|
type: "dataset",
|
|
114
|
-
debug:
|
|
115
|
-
}),
|
|
116
|
-
const o =
|
|
117
|
-
const { width: l, height: t } =
|
|
114
|
+
debug: go.value
|
|
115
|
+
}), ze.value = !0), Gt(F.dataset) || (ze.value = e.value.loading), e.value.responsive) {
|
|
116
|
+
const o = Xo(() => {
|
|
117
|
+
const { width: l, height: t } = qo({
|
|
118
118
|
chart: B.value,
|
|
119
|
-
title: e.value.style.chart.title.text ?
|
|
120
|
-
legend: e.value.style.chart.legend.show ?
|
|
121
|
-
source:
|
|
119
|
+
title: e.value.style.chart.title.text ? at.value : null,
|
|
120
|
+
legend: e.value.style.chart.legend.show ? lt.value : null,
|
|
121
|
+
source: nt.value
|
|
122
122
|
});
|
|
123
123
|
requestAnimationFrame(() => {
|
|
124
|
-
|
|
124
|
+
vt.value = l, ft.value = t;
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
ae.value && (be.value && ae.value.unobserve(be.value), ae.value.disconnect()), ae.value = new ResizeObserver(o), be.value = B.value.parentNode, ae.value.observe(be.value);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
const { userOptionsVisible:
|
|
130
|
+
const { userOptionsVisible: Le, setUserOptionsVisibility: ct, keepUserOptionState: dt } = ol({ config: e.value }), { svgRef: Re } = ll({
|
|
131
131
|
config: e.value.style.chart.title
|
|
132
132
|
});
|
|
133
|
-
function
|
|
134
|
-
const o =
|
|
135
|
-
userConfig:
|
|
136
|
-
defaultConfig:
|
|
133
|
+
function Ye() {
|
|
134
|
+
const o = et({
|
|
135
|
+
userConfig: F.config,
|
|
136
|
+
defaultConfig: vo
|
|
137
137
|
});
|
|
138
138
|
let l = o;
|
|
139
139
|
const t = o.theme;
|
|
140
140
|
if (t)
|
|
141
|
-
if (!
|
|
142
|
-
|
|
141
|
+
if (!fo.value(o))
|
|
142
|
+
ho(o), l = o;
|
|
143
143
|
else {
|
|
144
|
-
const a =
|
|
145
|
-
userConfig:
|
|
144
|
+
const a = et({
|
|
145
|
+
userConfig: eo[t] || F.config,
|
|
146
146
|
defaultConfig: o
|
|
147
147
|
});
|
|
148
148
|
l = {
|
|
149
|
-
...
|
|
150
|
-
userConfig:
|
|
149
|
+
...et({
|
|
150
|
+
userConfig: F.config,
|
|
151
151
|
defaultConfig: a
|
|
152
152
|
}),
|
|
153
|
-
customPalette: o.customPalette.length ? o.customPalette :
|
|
153
|
+
customPalette: o.customPalette.length ? o.customPalette : Ro[t] || R
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
156
|
else
|
|
157
157
|
l = o;
|
|
158
|
-
return l.nodeCategories =
|
|
158
|
+
return l.nodeCategories = F.config.nodeCategories || {}, l.nodeCategoryColors = F.config.nodeCategoryColors || {}, l;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
() =>
|
|
160
|
+
const vt = u(e.value.style.chart.width), ft = u(e.value.style.chart.height);
|
|
161
|
+
xe(
|
|
162
|
+
() => F.config,
|
|
163
163
|
(o) => {
|
|
164
|
-
|
|
164
|
+
Ie.value || (e.value = Ye()), Le.value = !e.value.userOptions.showOnChartHover, it(), ot.value += 1, S.value.showTable = e.value.table.show;
|
|
165
165
|
},
|
|
166
166
|
{ deep: !0 }
|
|
167
|
-
),
|
|
168
|
-
Array.isArray(o) && o.length > 0 && (
|
|
167
|
+
), xe(() => F.dataset, (o) => {
|
|
168
|
+
Array.isArray(o) && o.length > 0 && (ze.value = !1);
|
|
169
169
|
}, { deep: !0 });
|
|
170
|
-
const { isPrinting:
|
|
171
|
-
elementId: `flow_${
|
|
170
|
+
const { isPrinting: ht, isImaging: gt, generatePdf: pt, generateImage: bt } = Zo({
|
|
171
|
+
elementId: `flow_${G.value}`,
|
|
172
172
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
173
173
|
options: e.value.userOptions.print
|
|
174
|
-
}),
|
|
174
|
+
}), po = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), ye = f(() => Yo(e.value.customPalette)), Ce = f(() => e.value.style.chart.nodes.width), S = u({
|
|
175
175
|
showTable: e.value.table.show,
|
|
176
176
|
showTooltip: e.value.style.chart.tooltip.show
|
|
177
177
|
});
|
|
178
|
-
|
|
178
|
+
xe(e, () => {
|
|
179
179
|
S.value = {
|
|
180
180
|
showTable: e.value.table.show,
|
|
181
181
|
showTooltip: e.value.style.chart.tooltip.show
|
|
182
182
|
};
|
|
183
183
|
}, { immediate: !0 });
|
|
184
|
-
const
|
|
184
|
+
const mt = f(() => !me.value || !me.value.length ? [] : me.value.map((o, l) => [
|
|
185
185
|
o[0],
|
|
186
186
|
o[1],
|
|
187
|
-
|
|
188
|
-
o[3] ?
|
|
187
|
+
T(o[2]),
|
|
188
|
+
o[3] ? Ho(o[3]) : ye.value[l] || ye.value[l % ye.value.length] || R[l] || R[l % R.length]
|
|
189
189
|
]));
|
|
190
|
-
function
|
|
190
|
+
function bo(o) {
|
|
191
191
|
const l = {}, t = {};
|
|
192
192
|
function a(n, i) {
|
|
193
193
|
l[n] || (l[n] = {
|
|
@@ -196,99 +196,110 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
196
196
|
outflow: 0,
|
|
197
197
|
children: [],
|
|
198
198
|
color: null,
|
|
199
|
-
uid:
|
|
199
|
+
uid: _e()
|
|
200
200
|
}), l[n].level === null && (l[n].level = i), t[i] || (t[i] = []), t[i].includes(n) || t[i].push(n);
|
|
201
201
|
}
|
|
202
202
|
o.forEach(([n, i, g]) => {
|
|
203
|
-
const p = l[n]?.level ?? 0,
|
|
204
|
-
a(n, p), a(i,
|
|
203
|
+
const p = l[n]?.level ?? 0, D = p + 1;
|
|
204
|
+
a(n, p), a(i, D), l[n].children.push({ target: i, value: g }), l[n].outflow += g, l[i].inflow += g;
|
|
205
205
|
});
|
|
206
|
-
const s = new Set(o.map(([n]) => n)), w = new Set(o.map(([, n]) => n)),
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
const s = new Set(o.map(([n]) => n)), w = new Set(o.map(([, n]) => n)), te = Array.from(s).filter((n) => !w.has(n)), ce = {};
|
|
207
|
+
te.forEach((n, i) => {
|
|
208
|
+
ce[n] = ye.value[i] || R[i % R.length];
|
|
209
209
|
});
|
|
210
|
-
const
|
|
210
|
+
const de = {};
|
|
211
211
|
o.forEach(([n, i, g, p]) => {
|
|
212
|
-
p && (
|
|
212
|
+
p && (de[n] = p, de[i] = p);
|
|
213
213
|
}), Object.keys(l).forEach((n, i) => {
|
|
214
214
|
const g = e.value.nodeCategories?.[n], p = g ? e.value.nodeCategoryColors?.[g] : null;
|
|
215
|
-
l[n].color =
|
|
215
|
+
l[n].color = de[n] || p || (te.includes(n) ? ce[n] : null) || R[i % R.length];
|
|
216
216
|
}), Object.keys(l).forEach((n) => {
|
|
217
217
|
l[n].value = Math.max(l[n].inflow, l[n].outflow);
|
|
218
218
|
});
|
|
219
|
-
const
|
|
219
|
+
const Fe = se.value, Ve = kt.value.width, oe = kt.value.height, z = Object.keys(t).map(Number).sort((n, i) => n - i), Se = z.length || 1, Xe = Se > 1 ? Ve / (Se - 1) : 0, x = Number(Ce.value), I = Number(
|
|
220
220
|
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
221
|
-
),
|
|
221
|
+
), ve = Number(
|
|
222
|
+
e.value.style.chart.nodes.minHeight || 0
|
|
223
|
+
);
|
|
222
224
|
function d(n) {
|
|
223
225
|
const i = t[n], g = i.length;
|
|
224
226
|
if (!g) return 1 / 0;
|
|
225
|
-
const p = Math.max(0, (g - 1) *
|
|
226
|
-
let
|
|
227
|
+
const p = Math.max(0, (g - 1) * I), D = Math.max(0, oe - p), Y = Math.min(ve, g ? D / g : 0);
|
|
228
|
+
let C = 0, O = i.map((b) => l[b].value || 0), k = O.reduce((b, _) => b + _, 0);
|
|
227
229
|
for (let b = 0; b < 12; b += 1) {
|
|
228
|
-
const
|
|
229
|
-
for (let
|
|
230
|
-
const
|
|
231
|
-
|
|
230
|
+
const _ = k > 0 ? (D - C) / k : 0, H = [];
|
|
231
|
+
for (let N = 0; N < O.length; N += 1) {
|
|
232
|
+
const L = O[N];
|
|
233
|
+
L < 0 || L * _ < Y && H.push(N);
|
|
232
234
|
}
|
|
233
|
-
if (!H.length) return Math.max(0,
|
|
234
|
-
for (const
|
|
235
|
-
|
|
236
|
-
if (
|
|
235
|
+
if (!H.length) return Math.max(0, _);
|
|
236
|
+
for (const N of H)
|
|
237
|
+
C += Y, k -= O[N], O[N] = -1;
|
|
238
|
+
if (k <= 0) return 0;
|
|
237
239
|
}
|
|
238
|
-
return
|
|
240
|
+
return k > 0 ? Math.max(0, (D - C) / k) : 0;
|
|
239
241
|
}
|
|
240
242
|
const y = z.map(d), q = y.length ? Math.min(...y) : 0, K = {};
|
|
241
243
|
z.forEach((n) => {
|
|
242
|
-
const i = t[n], g = i.length, p = Math.max(0, (g - 1) *
|
|
243
|
-
(b) => Math.max(
|
|
244
|
-
),
|
|
245
|
-
let
|
|
246
|
-
i.forEach((b,
|
|
247
|
-
const H =
|
|
244
|
+
const i = t[n], g = i.length, p = Math.max(0, (g - 1) * I), D = Math.max(0, oe - p), Y = Math.min(ve, g ? D / g : 0), C = i.map(
|
|
245
|
+
(b) => Math.max(Y, (l[b].value || 0) * q)
|
|
246
|
+
), O = C.reduce((b, _) => b + _, 0) + p;
|
|
247
|
+
let k = Math.max(0, (oe - O) / 2);
|
|
248
|
+
i.forEach((b, _) => {
|
|
249
|
+
const H = C[_], N = Fe.left + n * Xe, L = k;
|
|
248
250
|
K[b] = {
|
|
249
|
-
x:
|
|
250
|
-
y:
|
|
251
|
-
absoluteY:
|
|
251
|
+
x: N,
|
|
252
|
+
y: L,
|
|
253
|
+
absoluteY: L,
|
|
252
254
|
height: H,
|
|
253
|
-
i:
|
|
255
|
+
i: _,
|
|
254
256
|
color: l[b].color,
|
|
255
257
|
value: l[b].value,
|
|
256
|
-
id:
|
|
257
|
-
},
|
|
258
|
+
id: _e()
|
|
259
|
+
}, k += H, _ < g - 1 && (k += I);
|
|
258
260
|
});
|
|
259
261
|
});
|
|
260
|
-
const
|
|
262
|
+
const xt = [], fe = Fe.top, qe = {}, Ke = {};
|
|
261
263
|
Object.keys(l).forEach((n) => {
|
|
262
|
-
|
|
264
|
+
qe[n] = K[n]?.y ?? 0, Ke[n] = 0;
|
|
263
265
|
});
|
|
264
|
-
const
|
|
266
|
+
const xo = 1e-6, Oo = 0.25, _o = !!e.value.style.chart.links.smooth, Ot = 0.5;
|
|
265
267
|
return z.forEach((n) => {
|
|
266
268
|
t[n].forEach((g) => {
|
|
267
|
-
const p = l[g],
|
|
269
|
+
const p = l[g], D = K[g];
|
|
268
270
|
if (!p.children || !p.children.length) return;
|
|
269
|
-
let
|
|
270
|
-
p.children.forEach(({ target:
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
|
|
271
|
+
let Y = D.y;
|
|
272
|
+
p.children.forEach(({ target: C, value: O }) => {
|
|
273
|
+
const k = K[C], b = l[C], _ = p.outflow > 0 ? O / p.outflow : 0, H = b.inflow > 0 ? O / b.inflow : 0, N = T(Y + fe), L = T(
|
|
274
|
+
Y + _ * D.height + fe
|
|
275
|
+
), _t = qe[C];
|
|
276
|
+
let Ee = _t + H * k.height;
|
|
277
|
+
Ke[C] += O;
|
|
278
|
+
const No = b.inflow > 0 && Ke[C] >= b.inflow - xo, Nt = k.y + k.height;
|
|
279
|
+
(No || Ee > Nt - Oo) && (Ee = Nt);
|
|
280
|
+
const Bt = T(_t + fe), Dt = T(Ee + fe), Z = T(D.x + x), J = T(k.x);
|
|
281
|
+
let Ze;
|
|
282
|
+
if (!_o || J <= Z)
|
|
283
|
+
Ze = `M ${Z} ${N} L ${Z} ${L} L ${J} ${Dt} L ${J} ${Bt} Z`;
|
|
284
|
+
else {
|
|
285
|
+
const Mt = J - Z, Pt = T(Z + Mt * Ot), It = T(J - Mt * Ot), zt = N, Lt = Bt, Rt = L, Yt = Dt;
|
|
286
|
+
Ze = `M ${Z} ${zt} C ${Pt} ${zt}, ${It} ${Lt}, ${J} ${Lt} L ${J} ${Yt} C ${It} ${Yt}, ${Pt} ${Rt}, ${Z} ${Rt} Z`;
|
|
287
|
+
}
|
|
288
|
+
xt.push({
|
|
289
|
+
id: _e(),
|
|
279
290
|
source: g,
|
|
280
|
-
target:
|
|
281
|
-
path:
|
|
282
|
-
value:
|
|
291
|
+
target: C,
|
|
292
|
+
path: Ze,
|
|
293
|
+
value: O,
|
|
283
294
|
sourceColor: p.color,
|
|
284
|
-
targetColor: l[
|
|
285
|
-
}),
|
|
295
|
+
targetColor: l[C].color
|
|
296
|
+
}), Y = L - fe, qe[C] = Ee;
|
|
286
297
|
});
|
|
287
298
|
});
|
|
288
|
-
}), { nodeCoordinates: K, links:
|
|
299
|
+
}), { nodeCoordinates: K, links: xt };
|
|
289
300
|
}
|
|
290
|
-
const
|
|
291
|
-
const o =
|
|
301
|
+
const E = f(() => {
|
|
302
|
+
const o = bo(me.value);
|
|
292
303
|
return {
|
|
293
304
|
nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
|
|
294
305
|
...o.nodeCoordinates[l],
|
|
@@ -296,95 +307,95 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
296
307
|
})),
|
|
297
308
|
links: o.links
|
|
298
309
|
};
|
|
299
|
-
}),
|
|
300
|
-
width: Math.max(0,
|
|
301
|
-
height: Math.max(0,
|
|
302
|
-
})),
|
|
303
|
-
width:
|
|
304
|
-
height:
|
|
310
|
+
}), yt = f(() => vt.value), Ct = f(() => ft.value), se = f(() => e.value.style.chart.padding), kt = f(() => ({
|
|
311
|
+
width: Math.max(0, yt.value - 40 - se.value.right - se.value.left),
|
|
312
|
+
height: Math.max(0, Ct.value - se.value.top - se.value.bottom)
|
|
313
|
+
})), re = f(() => ({
|
|
314
|
+
width: yt.value,
|
|
315
|
+
height: Ct.value
|
|
305
316
|
}));
|
|
306
|
-
function
|
|
317
|
+
function mo(o) {
|
|
307
318
|
const l = {}, t = {}, a = /* @__PURE__ */ new Set();
|
|
308
|
-
return
|
|
319
|
+
return mt.value.forEach(([s, w, te]) => {
|
|
309
320
|
l[s] || (l[s] = []), t[w] || (t[w] = []), l[s].push(w), t[w].push(s);
|
|
310
321
|
}), l[o] && l[o].forEach((s) => a.add(s)), t[o] && t[o].forEach((s) => a.add(s)), Array.from(a).concat(o);
|
|
311
322
|
}
|
|
312
|
-
const A = u(null),
|
|
313
|
-
function
|
|
314
|
-
X.value = [], A.value =
|
|
315
|
-
const t = o.name, a =
|
|
316
|
-
let s = 0, w = 0,
|
|
317
|
-
const
|
|
318
|
-
|
|
323
|
+
const A = u(null), ee = u(null), ue = u(null), ke = u(!1), Ae = u(null);
|
|
324
|
+
function At(o, l) {
|
|
325
|
+
X.value = [], A.value = mo(o.name), ee.value = o.name, Ae.value = o.id;
|
|
326
|
+
const t = o.name, a = mt.value;
|
|
327
|
+
let s = 0, w = 0, te = [], ce = [];
|
|
328
|
+
const de = new Set(a.map(([d]) => d)), Fe = new Set(a.map(([, d]) => d)), Ve = Array.from(de).filter((d) => !Fe.has(d)), oe = a.filter(([d]) => Ve.includes(d)).reduce((d, [y, q, K]) => d + K, 0), z = {};
|
|
329
|
+
E.value.nodes.forEach((d) => {
|
|
319
330
|
z[d.name] = d.color;
|
|
320
331
|
}), a.forEach(([d, y, q]) => {
|
|
321
|
-
y === t && (s += q,
|
|
332
|
+
y === t && (s += q, te.push({ source: d, value: q, color: z[d] })), d === t && (w += q, ce.push({ target: y, value: q, color: z[y] }));
|
|
322
333
|
});
|
|
323
|
-
const
|
|
334
|
+
const Se = Math.max(s, w), Xe = oe > 0 ? Se / oe * 100 : 0, x = {
|
|
324
335
|
name: t,
|
|
325
336
|
inflow: s,
|
|
326
337
|
outflow: w,
|
|
327
|
-
from:
|
|
328
|
-
to:
|
|
329
|
-
percentOfTotal:
|
|
338
|
+
from: te,
|
|
339
|
+
to: ce,
|
|
340
|
+
percentOfTotal: Xe,
|
|
330
341
|
color: z[t] || "#000000"
|
|
331
342
|
};
|
|
332
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
333
|
-
let
|
|
334
|
-
const
|
|
335
|
-
if (
|
|
343
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: x, seriesIndex: l }), ue.value = { datapoint: x }, Be.value = !0;
|
|
344
|
+
let I = "";
|
|
345
|
+
const ve = e.value.style.chart.tooltip.customFormat;
|
|
346
|
+
if (ke.value = !1, Vo(ve))
|
|
336
347
|
try {
|
|
337
|
-
const d =
|
|
338
|
-
datapoint:
|
|
339
|
-
series:
|
|
348
|
+
const d = ve({
|
|
349
|
+
datapoint: x,
|
|
350
|
+
series: E.value,
|
|
340
351
|
config: e.value
|
|
341
352
|
});
|
|
342
|
-
typeof d == "string" && (
|
|
353
|
+
typeof d == "string" && (De.value = d, ke.value = !0);
|
|
343
354
|
} catch {
|
|
344
355
|
console.warn("Custom format cannot be applied.");
|
|
345
356
|
}
|
|
346
|
-
if (!
|
|
347
|
-
const d = e.value.style.chart.tooltip.showPercentage ? `<div>${
|
|
357
|
+
if (!ke.value) {
|
|
358
|
+
const d = e.value.style.chart.tooltip.showPercentage ? `<div>${le({
|
|
348
359
|
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
349
|
-
v:
|
|
360
|
+
v: x.percentOfTotal,
|
|
350
361
|
s: "%",
|
|
351
362
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
352
363
|
})}</div>` : "";
|
|
353
|
-
|
|
354
|
-
|
|
364
|
+
I += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${x.color}">⏹</span>${x.name}${d}</div>`, x.from.length && (I += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, x.from.forEach((y) => {
|
|
365
|
+
I += `<div><span style="color:${y.color}">⏹←</span> ${y.source}: ${Ne(
|
|
355
366
|
e.value.style.chart.nodes.labels.formatter,
|
|
356
367
|
y.value,
|
|
357
|
-
|
|
368
|
+
le({
|
|
358
369
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
359
370
|
v: y.value,
|
|
360
371
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
361
372
|
r: e.value.style.chart.nodes.labels.rounding
|
|
362
373
|
})
|
|
363
374
|
)}</div>`;
|
|
364
|
-
})),
|
|
365
|
-
|
|
375
|
+
})), x.to.length && (I += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, x.to.forEach((y) => {
|
|
376
|
+
I += `<div><span style="color:${y.color}">⏹→</span> ${y.target}: ${Ne(
|
|
366
377
|
e.value.style.chart.nodes.labels.formatter,
|
|
367
378
|
y.value,
|
|
368
|
-
|
|
379
|
+
le({
|
|
369
380
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
370
381
|
v: y.value,
|
|
371
382
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
372
383
|
r: e.value.style.chart.nodes.labels.rounding
|
|
373
384
|
})
|
|
374
385
|
)}</div>`;
|
|
375
|
-
})),
|
|
386
|
+
})), De.value = I;
|
|
376
387
|
}
|
|
377
388
|
}
|
|
378
|
-
function
|
|
379
|
-
|
|
380
|
-
const l =
|
|
381
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), A.value = null,
|
|
389
|
+
function we(o) {
|
|
390
|
+
Ae.value = null;
|
|
391
|
+
const l = ue.value;
|
|
392
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), A.value = null, ee.value = null, Be.value = !1;
|
|
382
393
|
}
|
|
383
|
-
function
|
|
384
|
-
const l =
|
|
394
|
+
function He(o) {
|
|
395
|
+
const l = ue.value;
|
|
385
396
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
|
|
386
397
|
}
|
|
387
|
-
const
|
|
398
|
+
const wt = f(() => E.value.links.map(
|
|
388
399
|
({ source: o, target: l, sourceColor: t, targetColor: a, value: s }) => ({
|
|
389
400
|
source: o,
|
|
390
401
|
target: l,
|
|
@@ -393,9 +404,9 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
393
404
|
value: s
|
|
394
405
|
})
|
|
395
406
|
));
|
|
396
|
-
function
|
|
397
|
-
|
|
398
|
-
const l =
|
|
407
|
+
function je(o = null) {
|
|
408
|
+
Ut(() => {
|
|
409
|
+
const l = wt.value.map((s, w) => [[s.source], [s.target], [s.value]]), t = [
|
|
399
410
|
[e.value.style.chart.title.text],
|
|
400
411
|
[e.value.style.chart.title.subtitle.text],
|
|
401
412
|
[
|
|
@@ -403,19 +414,19 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
403
414
|
[e.value.table.columnNames.target],
|
|
404
415
|
[e.value.table.columnNames.value]
|
|
405
416
|
]
|
|
406
|
-
].concat(l), a =
|
|
407
|
-
o ? o(a) :
|
|
417
|
+
].concat(l), a = Uo(t);
|
|
418
|
+
o ? o(a) : Go({
|
|
408
419
|
csvContent: a,
|
|
409
420
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
410
421
|
});
|
|
411
422
|
});
|
|
412
423
|
}
|
|
413
|
-
const
|
|
424
|
+
const $e = f(() => {
|
|
414
425
|
const o = [
|
|
415
426
|
e.value.table.columnNames.source,
|
|
416
427
|
e.value.table.columnNames.target,
|
|
417
428
|
e.value.table.columnNames.value
|
|
418
|
-
], l =
|
|
429
|
+
], l = wt.value.map((s, w) => [
|
|
419
430
|
{
|
|
420
431
|
color: s.sourceColor,
|
|
421
432
|
name: s.source,
|
|
@@ -426,7 +437,7 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
426
437
|
name: s.target,
|
|
427
438
|
shape: "square"
|
|
428
439
|
},
|
|
429
|
-
|
|
440
|
+
le({
|
|
430
441
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
431
442
|
v: s.value,
|
|
432
443
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -456,52 +467,52 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
456
467
|
config: t
|
|
457
468
|
};
|
|
458
469
|
});
|
|
459
|
-
function
|
|
460
|
-
return
|
|
470
|
+
function yo() {
|
|
471
|
+
return E.value;
|
|
461
472
|
}
|
|
462
|
-
function
|
|
473
|
+
function $t() {
|
|
463
474
|
S.value.showTable = !S.value.showTable;
|
|
464
475
|
}
|
|
465
|
-
const
|
|
466
|
-
function
|
|
467
|
-
|
|
476
|
+
const Te = u(!1);
|
|
477
|
+
function We() {
|
|
478
|
+
Te.value = !Te.value;
|
|
468
479
|
}
|
|
469
|
-
function
|
|
480
|
+
function Tt() {
|
|
470
481
|
S.value.showTooltip = !S.value.showTooltip;
|
|
471
482
|
}
|
|
472
|
-
const
|
|
483
|
+
const Ft = f(() => {
|
|
473
484
|
const o = new Set(
|
|
474
|
-
|
|
485
|
+
E.value.nodes.map(
|
|
475
486
|
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
476
487
|
)
|
|
477
488
|
);
|
|
478
489
|
return Array.from(o).map((l) => ({
|
|
479
490
|
name: l,
|
|
480
|
-
color: e.value.nodeCategoryColors[l] ||
|
|
491
|
+
color: e.value.nodeCategoryColors[l] || R[0],
|
|
481
492
|
shape: "square",
|
|
482
|
-
count:
|
|
493
|
+
count: E.value.nodes.filter(
|
|
483
494
|
(t) => (e.value.nodeCategories[t.name] || "__uncategorized__") === l
|
|
484
495
|
).length
|
|
485
496
|
})).map((l, t) => ({
|
|
486
497
|
...l,
|
|
487
|
-
segregate: () =>
|
|
498
|
+
segregate: () => Ge({ legend: l, i: t }),
|
|
488
499
|
opacity: X.value.length ? X.value.includes(t) ? 1 : 0.5 : 1,
|
|
489
500
|
display: `${l.name} (${l.count})`
|
|
490
501
|
}));
|
|
491
|
-
}),
|
|
492
|
-
() =>
|
|
502
|
+
}), Ue = f(
|
|
503
|
+
() => Ft.value.filter((o) => o.name !== "__uncategorized__")
|
|
493
504
|
), X = u([]);
|
|
494
|
-
function
|
|
505
|
+
function Ge({ legend: o, i: l }) {
|
|
495
506
|
const t = o.name;
|
|
496
507
|
if (A.value?.every(
|
|
497
508
|
(a) => e.value.nodeCategories[a] === t
|
|
498
509
|
)) {
|
|
499
|
-
A.value = null,
|
|
510
|
+
A.value = null, ee.value = null, X.value = [];
|
|
500
511
|
return;
|
|
501
512
|
}
|
|
502
|
-
X.value = [l], A.value =
|
|
513
|
+
X.value = [l], A.value = E.value.nodes.filter((a) => e.value.nodeCategories[a.name] === t).map((a) => a.name), ee.value = null;
|
|
503
514
|
}
|
|
504
|
-
const
|
|
515
|
+
const Co = f(() => ({
|
|
505
516
|
cy: "flow-legend",
|
|
506
517
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
507
518
|
color: e.value.style.chart.legend.color,
|
|
@@ -509,9 +520,9 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
509
520
|
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
510
521
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
511
522
|
}));
|
|
512
|
-
async function
|
|
523
|
+
async function ko({ scale: o = 2 } = {}) {
|
|
513
524
|
if (!B.value) return;
|
|
514
|
-
const { width: l, height: t } = B.value.getBoundingClientRect(), a = l / t, { imageUri: s, base64: w } = await
|
|
525
|
+
const { width: l, height: t } = B.value.getBoundingClientRect(), a = l / t, { imageUri: s, base64: w } = await sl({ domElement: B.value, base64: !0, img: !0, scale: o });
|
|
515
526
|
return {
|
|
516
527
|
imageUri: s,
|
|
517
528
|
base64: w,
|
|
@@ -521,10 +532,10 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
521
532
|
aspectRatio: a
|
|
522
533
|
};
|
|
523
534
|
}
|
|
524
|
-
const
|
|
535
|
+
const ie = f(() => {
|
|
525
536
|
const o = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
|
|
526
537
|
return {
|
|
527
|
-
component: o ?
|
|
538
|
+
component: o ? co : no,
|
|
528
539
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
529
540
|
props: o ? {
|
|
530
541
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -551,94 +562,94 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
551
562
|
}
|
|
552
563
|
};
|
|
553
564
|
});
|
|
554
|
-
|
|
555
|
-
e.value.table.show || (o && e.value.table.useDialog &&
|
|
565
|
+
xe(() => S.value.showTable, (o) => {
|
|
566
|
+
e.value.table.show || (o && e.value.table.useDialog && ne.value ? ne.value.open() : "close" in ne.value && ne.value.close());
|
|
556
567
|
});
|
|
557
|
-
function
|
|
558
|
-
S.value.showTable = !1,
|
|
568
|
+
function St() {
|
|
569
|
+
S.value.showTable = !1, Me.value && Me.value.setTableIconState(!1);
|
|
559
570
|
}
|
|
560
|
-
const
|
|
571
|
+
const Ao = f(() => Ue.value.map((o) => ({
|
|
561
572
|
...o,
|
|
562
573
|
name: o.display
|
|
563
|
-
}))),
|
|
564
|
-
svg:
|
|
565
|
-
title:
|
|
566
|
-
legend:
|
|
567
|
-
legendItems:
|
|
568
|
-
backgroundColor:
|
|
574
|
+
}))), wo = f(() => e.value.style.chart.backgroundColor), $o = f(() => e.value.style.chart.legend), To = f(() => e.value.style.chart.title), { exportSvg: Fo, getSvg: So } = el({
|
|
575
|
+
svg: Re,
|
|
576
|
+
title: To,
|
|
577
|
+
legend: $o,
|
|
578
|
+
legendItems: Ao,
|
|
579
|
+
backgroundColor: wo
|
|
569
580
|
});
|
|
570
|
-
async function
|
|
581
|
+
async function Et({ isCb: o }) {
|
|
571
582
|
if (o) {
|
|
572
|
-
const { blob: l, url: t, text: a, dataUrl: s } = await
|
|
583
|
+
const { blob: l, url: t, text: a, dataUrl: s } = await So();
|
|
573
584
|
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: a, dataUrl: s });
|
|
574
585
|
} else
|
|
575
|
-
|
|
586
|
+
Fo();
|
|
576
587
|
}
|
|
577
|
-
async function
|
|
578
|
-
if (
|
|
588
|
+
async function Eo(o, l) {
|
|
589
|
+
if (At(o, l), S.value.showTooltip && (await Ut(), B.value && Pe.value)) {
|
|
579
590
|
const { left: t, top: a } = B.value.getBoundingClientRect();
|
|
580
|
-
|
|
591
|
+
Pe.value.placeTooltip({ x: (t ?? 0) + 12, y: (a ?? 0) + 12 });
|
|
581
592
|
}
|
|
582
593
|
}
|
|
583
|
-
return
|
|
584
|
-
getData:
|
|
585
|
-
getImage:
|
|
586
|
-
generateCsv:
|
|
587
|
-
generateImage:
|
|
588
|
-
generateSvg:
|
|
589
|
-
generatePdf:
|
|
590
|
-
toggleTable:
|
|
591
|
-
toggleAnnotator:
|
|
592
|
-
toggleTooltip:
|
|
593
|
-
drillCategory:
|
|
594
|
-
unselectNode:
|
|
595
|
-
toggleFullscreen:
|
|
594
|
+
return oo({
|
|
595
|
+
getData: yo,
|
|
596
|
+
getImage: ko,
|
|
597
|
+
generateCsv: je,
|
|
598
|
+
generateImage: bt,
|
|
599
|
+
generateSvg: Et,
|
|
600
|
+
generatePdf: pt,
|
|
601
|
+
toggleTable: $t,
|
|
602
|
+
toggleAnnotator: We,
|
|
603
|
+
toggleTooltip: Tt,
|
|
604
|
+
drillCategory: Ge,
|
|
605
|
+
unselectNode: we,
|
|
606
|
+
toggleFullscreen: ut
|
|
596
607
|
}), (o, l) => (c(), m("div", {
|
|
597
608
|
ref_key: "flowChart",
|
|
598
609
|
ref: B,
|
|
599
|
-
class:
|
|
600
|
-
style:
|
|
601
|
-
id: `flow_${
|
|
602
|
-
onMouseenter: l[2] || (l[2] = () => r(
|
|
603
|
-
onMouseleave: l[3] || (l[3] = () => r(
|
|
610
|
+
class: Ht(`vue-data-ui-component vue-ui-flow ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
611
|
+
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
612
|
+
id: `flow_${G.value}`,
|
|
613
|
+
onMouseenter: l[2] || (l[2] = () => r(ct)(!0)),
|
|
614
|
+
onMouseleave: l[3] || (l[3] = () => r(ct)(!1))
|
|
604
615
|
}, [
|
|
605
|
-
e.value.userOptions.buttons.annotator ? (c(),
|
|
616
|
+
e.value.userOptions.buttons.annotator ? (c(), Q(r(ro), {
|
|
606
617
|
key: 0,
|
|
607
|
-
svgRef: r(
|
|
618
|
+
svgRef: r(Re),
|
|
608
619
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
609
620
|
color: e.value.style.chart.color,
|
|
610
|
-
active:
|
|
611
|
-
onClose:
|
|
621
|
+
active: Te.value,
|
|
622
|
+
onClose: We
|
|
612
623
|
}, {
|
|
613
624
|
"annotator-action-close": v(() => [
|
|
614
625
|
h(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
615
626
|
]),
|
|
616
627
|
"annotator-action-color": v(({ color: t }) => [
|
|
617
|
-
h(o.$slots, "annotator-action-color", P(
|
|
628
|
+
h(o.$slots, "annotator-action-color", M(P({ color: t })), void 0, !0)
|
|
618
629
|
]),
|
|
619
630
|
"annotator-action-draw": v(({ mode: t }) => [
|
|
620
|
-
h(o.$slots, "annotator-action-draw", P(
|
|
631
|
+
h(o.$slots, "annotator-action-draw", M(P({ mode: t })), void 0, !0)
|
|
621
632
|
]),
|
|
622
633
|
"annotator-action-undo": v(({ disabled: t }) => [
|
|
623
|
-
h(o.$slots, "annotator-action-undo", P(
|
|
634
|
+
h(o.$slots, "annotator-action-undo", M(P({ disabled: t })), void 0, !0)
|
|
624
635
|
]),
|
|
625
636
|
"annotator-action-redo": v(({ disabled: t }) => [
|
|
626
|
-
h(o.$slots, "annotator-action-redo", P(
|
|
637
|
+
h(o.$slots, "annotator-action-redo", M(P({ disabled: t })), void 0, !0)
|
|
627
638
|
]),
|
|
628
639
|
"annotator-action-delete": v(({ disabled: t }) => [
|
|
629
|
-
h(o.$slots, "annotator-action-delete", P(
|
|
640
|
+
h(o.$slots, "annotator-action-delete", M(P({ disabled: t })), void 0, !0)
|
|
630
641
|
]),
|
|
631
642
|
_: 3
|
|
632
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
633
|
-
|
|
643
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
|
|
644
|
+
po.value ? (c(), m("div", il, null, 512)) : $("", !0),
|
|
634
645
|
e.value.style.chart.title.text ? (c(), m("div", {
|
|
635
646
|
key: 2,
|
|
636
647
|
ref_key: "chartTitle",
|
|
637
|
-
ref:
|
|
648
|
+
ref: at,
|
|
638
649
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
639
650
|
}, [
|
|
640
|
-
(c(),
|
|
641
|
-
key: `title_${
|
|
651
|
+
(c(), Q(nl, {
|
|
652
|
+
key: `title_${ot.value}`,
|
|
642
653
|
config: {
|
|
643
654
|
title: {
|
|
644
655
|
cy: "flow-title",
|
|
@@ -650,19 +661,19 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
650
661
|
}
|
|
651
662
|
}
|
|
652
663
|
}, null, 8, ["config"]))
|
|
653
|
-
], 512)) :
|
|
654
|
-
|
|
655
|
-
id: `legend-top-${
|
|
656
|
-
}, null, 8,
|
|
657
|
-
e.value.userOptions.show &&
|
|
664
|
+
], 512)) : $("", !0),
|
|
665
|
+
U("div", {
|
|
666
|
+
id: `legend-top-${G.value}`
|
|
667
|
+
}, null, 8, cl),
|
|
668
|
+
e.value.userOptions.show && rt.value && (r(dt) || r(Le)) ? (c(), Q(r(uo), {
|
|
658
669
|
ref_key: "userOptionsRef",
|
|
659
|
-
ref:
|
|
660
|
-
key: `user_option_${
|
|
670
|
+
ref: Me,
|
|
671
|
+
key: `user_option_${tt.value}`,
|
|
661
672
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
662
673
|
color: e.value.style.chart.color,
|
|
663
|
-
isPrinting: r(
|
|
664
|
-
isImaging: r(
|
|
665
|
-
uid:
|
|
674
|
+
isPrinting: r(ht),
|
|
675
|
+
isImaging: r(gt),
|
|
676
|
+
uid: G.value,
|
|
666
677
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
667
678
|
hasXls: e.value.userOptions.buttons.csv,
|
|
668
679
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -676,26 +687,26 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
676
687
|
position: e.value.userOptions.position,
|
|
677
688
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
678
689
|
printScale: e.value.userOptions.print.scale,
|
|
679
|
-
isAnnotation:
|
|
690
|
+
isAnnotation: Te.value,
|
|
680
691
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
681
692
|
isTooltip: S.value.showTooltip,
|
|
682
693
|
tableDialog: e.value.table.useDialog,
|
|
683
|
-
onToggleTooltip:
|
|
684
|
-
onToggleFullscreen:
|
|
685
|
-
onGeneratePdf: r(
|
|
686
|
-
onGenerateCsv:
|
|
687
|
-
onGenerateImage: r(
|
|
688
|
-
onGenerateSvg:
|
|
689
|
-
onToggleTable:
|
|
690
|
-
onToggleAnnotator:
|
|
691
|
-
style:
|
|
692
|
-
visibility: r(
|
|
694
|
+
onToggleTooltip: Tt,
|
|
695
|
+
onToggleFullscreen: ut,
|
|
696
|
+
onGeneratePdf: r(pt),
|
|
697
|
+
onGenerateCsv: je,
|
|
698
|
+
onGenerateImage: r(bt),
|
|
699
|
+
onGenerateSvg: Et,
|
|
700
|
+
onToggleTable: $t,
|
|
701
|
+
onToggleAnnotator: We,
|
|
702
|
+
style: W({
|
|
703
|
+
visibility: r(dt) ? r(Le) ? "visible" : "hidden" : "visible"
|
|
693
704
|
})
|
|
694
|
-
},
|
|
705
|
+
}, jt({ _: 2 }, [
|
|
695
706
|
o.$slots.menuIcon ? {
|
|
696
707
|
name: "menuIcon",
|
|
697
708
|
fn: v(({ isOpen: t, color: a }) => [
|
|
698
|
-
h(o.$slots, "menuIcon", P(
|
|
709
|
+
h(o.$slots, "menuIcon", M(P({ isOpen: t, color: a })), void 0, !0)
|
|
699
710
|
]),
|
|
700
711
|
key: "0"
|
|
701
712
|
} : void 0,
|
|
@@ -744,66 +755,66 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
744
755
|
o.$slots.optionFullscreen ? {
|
|
745
756
|
name: "optionFullscreen",
|
|
746
757
|
fn: v(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
747
|
-
h(o.$slots, "optionFullscreen", P(
|
|
758
|
+
h(o.$slots, "optionFullscreen", M(P({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
748
759
|
]),
|
|
749
760
|
key: "7"
|
|
750
761
|
} : void 0,
|
|
751
762
|
o.$slots.optionAnnotator ? {
|
|
752
763
|
name: "optionAnnotator",
|
|
753
764
|
fn: v(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
754
|
-
h(o.$slots, "optionAnnotator", P(
|
|
765
|
+
h(o.$slots, "optionAnnotator", M(P({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
755
766
|
]),
|
|
756
767
|
key: "8"
|
|
757
768
|
} : void 0
|
|
758
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
769
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : $("", !0),
|
|
759
770
|
(c(), m("svg", {
|
|
760
771
|
ref_key: "svgRef",
|
|
761
|
-
ref:
|
|
762
|
-
xmlns: r(
|
|
763
|
-
viewBox: `0 0 ${
|
|
764
|
-
class:
|
|
772
|
+
ref: Re,
|
|
773
|
+
xmlns: r(jo),
|
|
774
|
+
viewBox: `0 0 ${re.value.width} ${re.value.height}`,
|
|
775
|
+
class: Ht({
|
|
765
776
|
"vue-data-ui-fullscreen--on": V.value,
|
|
766
777
|
"vue-data-ui-fulscreen--off": !V.value
|
|
767
778
|
}),
|
|
768
|
-
style:
|
|
779
|
+
style: W({
|
|
769
780
|
maxWidth: "100%",
|
|
770
781
|
overflow: "visible",
|
|
771
782
|
background: "transparent",
|
|
772
783
|
color: e.value.style.chart.color
|
|
773
784
|
})
|
|
774
785
|
}, [
|
|
775
|
-
|
|
786
|
+
Oe(r(io)),
|
|
776
787
|
o.$slots["chart-background"] ? (c(), m("foreignObject", {
|
|
777
788
|
key: 0,
|
|
778
789
|
x: 0,
|
|
779
790
|
y: 0,
|
|
780
|
-
width:
|
|
781
|
-
height:
|
|
791
|
+
width: re.value.width,
|
|
792
|
+
height: re.value.height,
|
|
782
793
|
style: {
|
|
783
794
|
pointerEvents: "none"
|
|
784
795
|
}
|
|
785
796
|
}, [
|
|
786
797
|
h(o.$slots, "chart-background", {}, void 0, !0)
|
|
787
|
-
], 8,
|
|
788
|
-
|
|
789
|
-
(c(!0), m(
|
|
798
|
+
], 8, vl)) : $("", !0),
|
|
799
|
+
U("defs", null, [
|
|
800
|
+
(c(!0), m(he, null, ge(E.value.links, (t, a) => (c(), m("linearGradient", {
|
|
790
801
|
id: t.id,
|
|
791
802
|
x1: "0%",
|
|
792
803
|
y1: "0%",
|
|
793
804
|
x2: "100%",
|
|
794
805
|
y2: "0%"
|
|
795
806
|
}, [
|
|
796
|
-
|
|
807
|
+
U("stop", {
|
|
797
808
|
offset: "0%",
|
|
798
809
|
"stop-color": t.sourceColor
|
|
799
|
-
}, null, 8,
|
|
800
|
-
|
|
810
|
+
}, null, 8, hl),
|
|
811
|
+
U("stop", {
|
|
801
812
|
offset: "100%",
|
|
802
813
|
"stop-color": t.targetColor
|
|
803
|
-
}, null, 8,
|
|
804
|
-
], 8,
|
|
814
|
+
}, null, 8, gl)
|
|
815
|
+
], 8, fl))), 256))
|
|
805
816
|
]),
|
|
806
|
-
(c(!0), m(
|
|
817
|
+
(c(!0), m(he, null, ge(E.value.links, (t) => (c(), m("path", {
|
|
807
818
|
class: "vue-ui-flow-link",
|
|
808
819
|
d: t.path,
|
|
809
820
|
"stroke-linejoin": "round",
|
|
@@ -811,128 +822,128 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
811
822
|
fill: `url(#${t.id})`,
|
|
812
823
|
stroke: e.value.style.chart.links.stroke,
|
|
813
824
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
814
|
-
style:
|
|
815
|
-
opacity:${A.value ? A.value.includes(t.source) && A.value.includes(t.target) ? 1 : 0.3 :
|
|
825
|
+
style: W(`
|
|
826
|
+
opacity:${A.value ? A.value.includes(t.source) && A.value.includes(t.target) ? 1 : 0.3 : ee.value ? [t.target, t.source].includes(ee.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
816
827
|
`)
|
|
817
|
-
}, null, 12,
|
|
818
|
-
(c(!0), m(
|
|
828
|
+
}, null, 12, pl))), 256)),
|
|
829
|
+
(c(!0), m(he, null, ge(E.value.nodes, (t, a) => (c(), m("rect", {
|
|
819
830
|
class: "vue-ui-flow-node",
|
|
820
831
|
x: t.x,
|
|
821
|
-
y: r(
|
|
822
|
-
height: r(
|
|
823
|
-
width:
|
|
832
|
+
y: r(T)(t.absoluteY) + e.value.style.chart.padding.top,
|
|
833
|
+
height: r(T)(t.height),
|
|
834
|
+
width: Ce.value,
|
|
824
835
|
fill: t.color,
|
|
825
836
|
stroke: e.value.style.chart.nodes.stroke,
|
|
826
837
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
827
838
|
rx: e.value.style.chart.nodes.borderRadius,
|
|
828
|
-
style:
|
|
839
|
+
style: W({
|
|
829
840
|
opacity: A.value ? A.value.includes(t.name) ? 1 : 0.3 : 1,
|
|
830
|
-
outline:
|
|
841
|
+
outline: Ae.value !== null && Ae.value === t.id ? "2px solid currentColor" : void 0
|
|
831
842
|
}),
|
|
832
843
|
role: "button",
|
|
833
844
|
tabindex: "0",
|
|
834
|
-
"aria-label": `${t.name}: ${r(
|
|
845
|
+
"aria-label": `${t.name}: ${r(Ne)(
|
|
835
846
|
e.value.style.chart.nodes.labels.formatter,
|
|
836
847
|
t.value,
|
|
837
|
-
r(
|
|
848
|
+
r(le)({
|
|
838
849
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
839
850
|
v: t.value,
|
|
840
851
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
841
852
|
r: e.value.style.chart.nodes.labels.rounding
|
|
842
853
|
})
|
|
843
854
|
)}`,
|
|
844
|
-
onMouseenter: (s) =>
|
|
845
|
-
onMouseleave: (s) =>
|
|
846
|
-
onClick: (s) =>
|
|
855
|
+
onMouseenter: (s) => At(t, a),
|
|
856
|
+
onMouseleave: (s) => we(a),
|
|
857
|
+
onClick: (s) => He(a),
|
|
847
858
|
onKeydown: [
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
859
|
+
Je(Qe((s) => He(a), ["prevent"]), ["enter"]),
|
|
860
|
+
Je(Qe((s) => He(a), ["prevent"]), ["space"]),
|
|
861
|
+
Je(Qe((s) => we(a), ["prevent"]), ["esc"])
|
|
851
862
|
],
|
|
852
|
-
onFocus: (s) =>
|
|
853
|
-
onBlur: (s) =>
|
|
854
|
-
}, null, 44,
|
|
855
|
-
e.value.style.chart.nodes.labels.show ? (c(), m("g",
|
|
856
|
-
(c(!0), m(
|
|
857
|
-
x: t.x +
|
|
858
|
-
y: r(
|
|
863
|
+
onFocus: (s) => Eo(t, a),
|
|
864
|
+
onBlur: (s) => we(a)
|
|
865
|
+
}, null, 44, bl))), 256)),
|
|
866
|
+
e.value.style.chart.nodes.labels.show ? (c(), m("g", ml, [
|
|
867
|
+
(c(!0), m(he, null, ge(E.value.nodes, (t, a) => (c(), m("text", {
|
|
868
|
+
x: t.x + Ce.value / 2,
|
|
869
|
+
y: (e.value.style.chart.nodes.labels.showValue ? r(T)(
|
|
859
870
|
t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
860
|
-
) + e.value.style.chart.padding.top,
|
|
871
|
+
) : t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize / 3) + e.value.style.chart.padding.top,
|
|
861
872
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
862
|
-
fill: r(
|
|
873
|
+
fill: r(Vt)(t.color),
|
|
863
874
|
"text-anchor": "middle",
|
|
864
|
-
style:
|
|
865
|
-
},
|
|
875
|
+
style: W(`pointer-events: none; opacity:${A.value ? A.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
876
|
+
}, pe(e.value.style.chart.nodes.labels.abbreviation.use ? r(Wo)({
|
|
866
877
|
source: t.name,
|
|
867
878
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
868
|
-
}) : t.name), 13,
|
|
869
|
-
(c(!0), m(
|
|
870
|
-
x: t.x +
|
|
871
|
-
y: r(
|
|
872
|
-
t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
879
|
+
}) : t.name), 13, yl))), 256)),
|
|
880
|
+
e.value.style.chart.nodes.labels.showValue ? (c(!0), m(he, { key: 0 }, ge(E.value.nodes, (t, a) => (c(), m("text", {
|
|
881
|
+
x: t.x + Ce.value / 2,
|
|
882
|
+
y: r(T)(
|
|
883
|
+
t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize / 1.3
|
|
873
884
|
) + e.value.style.chart.padding.top,
|
|
874
885
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
875
|
-
fill: r(
|
|
886
|
+
fill: r(Vt)(t.color),
|
|
876
887
|
"text-anchor": "middle",
|
|
877
|
-
style:
|
|
878
|
-
},
|
|
888
|
+
style: W(`pointer-events: none; opacity:${A.value ? A.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
889
|
+
}, pe(r(Ne)(
|
|
879
890
|
e.value.style.chart.nodes.labels.formatter,
|
|
880
891
|
t.value,
|
|
881
|
-
r(
|
|
892
|
+
r(le)({
|
|
882
893
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
883
894
|
v: t.value,
|
|
884
895
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
885
896
|
r: e.value.style.chart.nodes.labels.rounding
|
|
886
897
|
}),
|
|
887
898
|
{ datapoint: t, seriesIndex: a }
|
|
888
|
-
)), 13,
|
|
889
|
-
])) :
|
|
890
|
-
h(o.$slots, "svg", { svg:
|
|
891
|
-
], 14,
|
|
892
|
-
o.$slots.watermark ? (c(), m("div",
|
|
893
|
-
h(o.$slots, "watermark", P(
|
|
894
|
-
])) :
|
|
895
|
-
|
|
896
|
-
id: `legend-bottom-${
|
|
897
|
-
}, null, 8,
|
|
898
|
-
|
|
899
|
+
)), 13, Cl))), 256)) : $("", !0)
|
|
900
|
+
])) : $("", !0),
|
|
901
|
+
h(o.$slots, "svg", { svg: re.value }, void 0, !0)
|
|
902
|
+
], 14, dl)),
|
|
903
|
+
o.$slots.watermark ? (c(), m("div", kl, [
|
|
904
|
+
h(o.$slots, "watermark", M(P({ isPrinting: r(ht) || r(gt) })), void 0, !0)
|
|
905
|
+
])) : $("", !0),
|
|
906
|
+
U("div", {
|
|
907
|
+
id: `legend-bottom-${G.value}`
|
|
908
|
+
}, null, 8, Al),
|
|
909
|
+
st.value ? (c(), Q(Mo, {
|
|
899
910
|
key: 5,
|
|
900
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
911
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${G.value}` : `#legend-bottom-${G.value}`
|
|
901
912
|
}, [
|
|
902
|
-
|
|
913
|
+
U("div", {
|
|
903
914
|
ref_key: "chartLegend",
|
|
904
|
-
ref:
|
|
915
|
+
ref: lt
|
|
905
916
|
}, [
|
|
906
|
-
e.value.style.chart.legend.show &&
|
|
917
|
+
e.value.style.chart.legend.show && Ue.value.length ? (c(), Q(al, {
|
|
907
918
|
key: 0,
|
|
908
|
-
legendSet:
|
|
909
|
-
config:
|
|
910
|
-
onClickMarker: l[0] || (l[0] = (t) =>
|
|
919
|
+
legendSet: Ue.value,
|
|
920
|
+
config: Co.value,
|
|
921
|
+
onClickMarker: l[0] || (l[0] = (t) => Ge(t))
|
|
911
922
|
}, {
|
|
912
923
|
item: v(({ legend: t, index: a }) => [
|
|
913
|
-
r(
|
|
924
|
+
r(Ie) ? $("", !0) : (c(), m("div", {
|
|
914
925
|
key: 0,
|
|
915
926
|
onClick: (s) => t.segregate(),
|
|
916
|
-
style:
|
|
917
|
-
},
|
|
927
|
+
style: W(`opacity:${X.value.length ? X.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
928
|
+
}, pe(t.display), 13, wl))
|
|
918
929
|
]),
|
|
919
930
|
_: 1
|
|
920
|
-
}, 8, ["legendSet", "config"])) :
|
|
921
|
-
h(o.$slots, "legend", { legend:
|
|
931
|
+
}, 8, ["legendSet", "config"])) : $("", !0),
|
|
932
|
+
h(o.$slots, "legend", { legend: Ft.value }, void 0, !0)
|
|
922
933
|
], 512)
|
|
923
|
-
], 8, ["to"])) :
|
|
934
|
+
], 8, ["to"])) : $("", !0),
|
|
924
935
|
o.$slots.source ? (c(), m("div", {
|
|
925
936
|
key: 6,
|
|
926
937
|
ref_key: "source",
|
|
927
|
-
ref:
|
|
938
|
+
ref: nt,
|
|
928
939
|
dir: "auto"
|
|
929
940
|
}, [
|
|
930
941
|
h(o.$slots, "source", {}, void 0, !0)
|
|
931
|
-
], 512)) :
|
|
932
|
-
|
|
942
|
+
], 512)) : $("", !0),
|
|
943
|
+
Oe(r(lo), {
|
|
933
944
|
ref_key: "tooltip",
|
|
934
|
-
ref:
|
|
935
|
-
show: S.value.showTooltip &&
|
|
945
|
+
ref: Pe,
|
|
946
|
+
show: S.value.showTooltip && Be.value,
|
|
936
947
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
937
948
|
color: e.value.style.chart.tooltip.color,
|
|
938
949
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -943,8 +954,8 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
943
954
|
position: e.value.style.chart.tooltip.position,
|
|
944
955
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
945
956
|
parent: B.value,
|
|
946
|
-
content:
|
|
947
|
-
isCustom:
|
|
957
|
+
content: De.value,
|
|
958
|
+
isCustom: ke.value,
|
|
948
959
|
isFullscreen: V.value,
|
|
949
960
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
950
961
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
@@ -952,36 +963,36 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
952
963
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
953
964
|
}, {
|
|
954
965
|
"tooltip-before": v(() => [
|
|
955
|
-
h(o.$slots, "tooltip-before", P(
|
|
966
|
+
h(o.$slots, "tooltip-before", M(P({ ...ue.value })), void 0, !0)
|
|
956
967
|
]),
|
|
957
968
|
"tooltip-after": v(() => [
|
|
958
|
-
h(o.$slots, "tooltip-after", P(
|
|
969
|
+
h(o.$slots, "tooltip-after", M(P({ ...ue.value })), void 0, !0)
|
|
959
970
|
]),
|
|
960
971
|
_: 3
|
|
961
972
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
962
|
-
|
|
973
|
+
rt.value && e.value.userOptions.buttons.table ? (c(), Q(Po(ie.value.component), Io({ key: 7 }, ie.value.props, {
|
|
963
974
|
ref_key: "tableUnit",
|
|
964
|
-
ref:
|
|
965
|
-
onClose:
|
|
966
|
-
}),
|
|
975
|
+
ref: ne,
|
|
976
|
+
onClose: St
|
|
977
|
+
}), jt({
|
|
967
978
|
content: v(() => [
|
|
968
|
-
|
|
969
|
-
colNames:
|
|
970
|
-
head:
|
|
971
|
-
body:
|
|
972
|
-
config:
|
|
973
|
-
title: e.value.table.useDialog ? "" :
|
|
979
|
+
Oe(r(so), {
|
|
980
|
+
colNames: $e.value.colNames,
|
|
981
|
+
head: $e.value.head,
|
|
982
|
+
body: $e.value.body,
|
|
983
|
+
config: $e.value.config,
|
|
984
|
+
title: e.value.table.useDialog ? "" : ie.value.title,
|
|
974
985
|
withCloseButton: !e.value.table.useDialog,
|
|
975
|
-
onClose:
|
|
986
|
+
onClose: St
|
|
976
987
|
}, {
|
|
977
988
|
th: v(({ th: t }) => [
|
|
978
|
-
|
|
989
|
+
U("div", {
|
|
979
990
|
innerHTML: t,
|
|
980
991
|
style: { display: "flex", "align-items": "center" }
|
|
981
|
-
}, null, 8,
|
|
992
|
+
}, null, 8, $l)
|
|
982
993
|
]),
|
|
983
994
|
td: v(({ td: t }) => [
|
|
984
|
-
|
|
995
|
+
Wt(pe(t.name || t), 1)
|
|
985
996
|
]),
|
|
986
997
|
_: 1
|
|
987
998
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
@@ -991,36 +1002,36 @@ const Pt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", too
|
|
|
991
1002
|
e.value.table.useDialog ? {
|
|
992
1003
|
name: "title",
|
|
993
1004
|
fn: v(() => [
|
|
994
|
-
|
|
1005
|
+
Wt(pe(ie.value.title), 1)
|
|
995
1006
|
]),
|
|
996
1007
|
key: "0"
|
|
997
1008
|
} : void 0,
|
|
998
1009
|
e.value.table.useDialog ? {
|
|
999
1010
|
name: "actions",
|
|
1000
1011
|
fn: v(() => [
|
|
1001
|
-
|
|
1012
|
+
U("button", {
|
|
1002
1013
|
tabindex: "0",
|
|
1003
1014
|
class: "vue-ui-user-options-button",
|
|
1004
|
-
onClick: l[1] || (l[1] = (t) =>
|
|
1015
|
+
onClick: l[1] || (l[1] = (t) => je(e.value.userOptions.callbacks.csv))
|
|
1005
1016
|
}, [
|
|
1006
|
-
|
|
1017
|
+
Oe(r(ao), {
|
|
1007
1018
|
name: "excel",
|
|
1008
|
-
stroke:
|
|
1019
|
+
stroke: ie.value.props.color
|
|
1009
1020
|
}, null, 8, ["stroke"])
|
|
1010
1021
|
])
|
|
1011
1022
|
]),
|
|
1012
1023
|
key: "1"
|
|
1013
1024
|
} : void 0
|
|
1014
|
-
]), 1040)) :
|
|
1015
|
-
r(
|
|
1016
|
-
], 46,
|
|
1025
|
+
]), 1040)) : $("", !0),
|
|
1026
|
+
r(Ie) ? (c(), Q(Qo, { key: 8 })) : $("", !0)
|
|
1027
|
+
], 46, ul));
|
|
1017
1028
|
}
|
|
1018
|
-
},
|
|
1029
|
+
}, Fl = /* @__PURE__ */ rl(Tl, [["__scopeId", "data-v-b23619de"]]), Hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1019
1030
|
__proto__: null,
|
|
1020
|
-
default:
|
|
1031
|
+
default: Fl
|
|
1021
1032
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1022
1033
|
export {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1034
|
+
Yl as a,
|
|
1035
|
+
Hl as b,
|
|
1036
|
+
Fl as v
|
|
1026
1037
|
};
|