vue-data-ui 3.3.3 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CJXSEhan.js → UserOptions-C0YT60JN.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-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-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-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-BzVpWnNO.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-BGzYbrts.js} +39 -39
- package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-BRSqhjxm.js} +59 -59
- package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-k3xCwZYv.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-DMPndU1O.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-BBdrkhmg.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DL5ioFH4.js} +91 -91
- package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-C4Uc3DRH.js} +86 -86
- package/dist/{vue-ui-radar-Csznqw19.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-B1T10gWF.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-CA4GL9dj.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-Dlp9LghX.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
- package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
- package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, ref as c, computed as d, onMounted as no, toRefs as so, watch as Te, createElementBlock as g, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as wt, createBlock as q, createCommentVNode as T, createElementVNode as G, createVNode as xe, createSlots as $t, withCtx as b, renderSlot as k, normalizeProps as
|
|
2
|
-
import { c as Ge, t as vo, o as Tt, f as ho, b as fo, p as L, e as po,
|
|
1
|
+
import { defineAsyncComponent as H, ref as c, computed as d, onMounted as no, toRefs as so, watch as Te, createElementBlock as g, openBlock as i, unref as r, normalizeStyle as W, normalizeClass as wt, createBlock as q, createCommentVNode as T, createElementVNode as G, createVNode as xe, createSlots as $t, withCtx as b, renderSlot as k, normalizeProps as Z, guardReactiveProps as ee, Fragment as ve, renderList as de, toDisplayString as he, Teleport as ro, resolveDynamicComponent as uo, mergeProps as io, createTextVNode as At, nextTick as co } from "vue";
|
|
2
|
+
import { c as Ge, t as vo, o as Tt, f as ho, b as fo, p as L, e as po, x, h as go, d as fe, X as mo, J as xt, I as yo, a as Ue, P as bo, Q as Co, G as ko } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as wo, u as $o } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ao, a as St } from "./useNestedProp-
|
|
5
|
-
import { u as To } from "./usePrinter-
|
|
4
|
+
import { u as Ao, a as St } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as To } from "./usePrinter-C1GiglOH.js";
|
|
6
6
|
import { u as xo, B as So } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as _o } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Oo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as No } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { t as Fo } from "./themes-Dw-dDudK.js";
|
|
11
|
-
import Eo from "./Legend-
|
|
12
|
-
import Io from "./Title-
|
|
13
|
-
import Po from "./img-
|
|
11
|
+
import Eo from "./Legend-C8u37J42.js";
|
|
12
|
+
import Io from "./Title-CFmv95In.js";
|
|
13
|
+
import Po from "./img-CFY3JivG.js";
|
|
14
14
|
import { _ as Mo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Do = ["id"], Lo = {
|
|
16
16
|
key: 1,
|
|
17
17
|
ref: "noTitle",
|
|
18
18
|
class: "vue-data-ui-no-title-space",
|
|
19
19
|
style: "height:36px; width: 100%;background:transparent"
|
|
20
|
-
},
|
|
20
|
+
}, Bo = ["id"], zo = ["xmlns", "viewBox"], Ro = ["width", "height"], Ho = ["id"], Wo = ["stop-color"], Go = ["stop-color"], Uo = ["d", "fill", "stroke", "stroke-width"], Yo = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], jo = { key: 1 }, Vo = ["x", "y", "font-size", "fill"], Xo = ["x", "y", "font-size", "fill"], qo = {
|
|
21
21
|
key: 4,
|
|
22
22
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
23
|
+
}, Jo = ["id"], Ko = ["onClick"], Qo = ["innerHTML"], Zo = {
|
|
24
24
|
__name: "vue-ui-flow",
|
|
25
25
|
props: {
|
|
26
26
|
config: {
|
|
@@ -37,12 +37,12 @@ const Do = ["id"], Lo = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(_t, { expose: Ot }) {
|
|
40
|
-
const Nt = H(() => import("./Tooltip-
|
|
40
|
+
const Nt = H(() => import("./Tooltip-Cs4v8OnI.js")), Ft = H(() => import("./BaseIcon-B5KaGWWC.js")), Et = H(() => import("./vue-ui-accordion-BKkTS12x.js")), It = H(() => import("./DataTable-DOx3zgih.js")), Pt = H(() => import("./PenAndPaper-Dj2diYr0.js")), Mt = H(() => import("./UserOptions-C0YT60JN.js")), Dt = H(() => import("./PackageVersion-DyDViSOy.js")), Lt = H(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_flow: Bt } = Ao(), F = _t, U = c(Ge()), M = c(null), Ye = c(0), je = c(0), Se = c(!1), _e = c(""), Ve = c(null), Xe = c(null), qe = c(null), te = c(null), pe = c(null), Je = c(!1), oe = c(null), Oe = c(null), Ke = d(() => !!F.dataset && F.dataset.length);
|
|
41
41
|
no(() => {
|
|
42
|
-
|
|
42
|
+
Je.value = !0, Ze();
|
|
43
43
|
});
|
|
44
44
|
const Y = c(!1);
|
|
45
|
-
function
|
|
45
|
+
function Qe(t) {
|
|
46
46
|
Y.value = t, Ye.value += 1;
|
|
47
47
|
}
|
|
48
48
|
const e = c(Pe()), { loading: Ne, FINAL_DATASET: ge, manualLoading: Fe } = xo({
|
|
@@ -89,12 +89,12 @@ const Do = ["id"], Lo = {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
})
|
|
92
|
-
}),
|
|
93
|
-
function
|
|
92
|
+
}), zt = d(() => !!e.value.debug);
|
|
93
|
+
function Ze() {
|
|
94
94
|
if (Tt(F.dataset) && (ho({
|
|
95
95
|
componentName: "VueUiFlow",
|
|
96
96
|
type: "dataset",
|
|
97
|
-
debug:
|
|
97
|
+
debug: zt.value
|
|
98
98
|
}), Fe.value = !0), Tt(F.dataset) || (Fe.value = e.value.loading), e.value.responsive) {
|
|
99
99
|
const t = wo(() => {
|
|
100
100
|
const { width: l, height: o } = $o({
|
|
@@ -116,7 +116,7 @@ const Do = ["id"], Lo = {
|
|
|
116
116
|
function Pe() {
|
|
117
117
|
const t = St({
|
|
118
118
|
userConfig: F.config,
|
|
119
|
-
defaultConfig:
|
|
119
|
+
defaultConfig: Bt
|
|
120
120
|
});
|
|
121
121
|
let l = t;
|
|
122
122
|
return t.theme ? l = {
|
|
@@ -131,7 +131,7 @@ const Do = ["id"], Lo = {
|
|
|
131
131
|
Te(
|
|
132
132
|
() => F.config,
|
|
133
133
|
(t) => {
|
|
134
|
-
Ne.value || (e.value = Pe()), Ee.value = !e.value.userOptions.showOnChartHover,
|
|
134
|
+
Ne.value || (e.value = Pe()), Ee.value = !e.value.userOptions.showOnChartHover, Ze(), je.value += 1, E.value.showTable = e.value.table.show;
|
|
135
135
|
},
|
|
136
136
|
{ deep: !0 }
|
|
137
137
|
), Te(() => F.dataset, (t) => {
|
|
@@ -173,8 +173,8 @@ const Do = ["id"], Lo = {
|
|
|
173
173
|
const f = l[a]?.level ?? 0, _ = f + 1;
|
|
174
174
|
n(a, f), n(u, _), l[a].children.push({ target: u, value: h }), l[a].outflow += h, l[u].inflow += h;
|
|
175
175
|
});
|
|
176
|
-
const s = new Set(t.map(([a]) => a)), $ = new Set(t.map(([, a]) => a)),
|
|
177
|
-
|
|
176
|
+
const s = new Set(t.map(([a]) => a)), $ = new Set(t.map(([, a]) => a)), K = Array.from(s).filter((a) => !$.has(a)), re = {};
|
|
177
|
+
K.forEach((a, u) => {
|
|
178
178
|
re[a] = me.value[u] || L[u % L.length];
|
|
179
179
|
});
|
|
180
180
|
const ue = {};
|
|
@@ -182,48 +182,48 @@ const Do = ["id"], Lo = {
|
|
|
182
182
|
f && (ue[a] = f, ue[u] = f);
|
|
183
183
|
}), Object.keys(l).forEach((a, u) => {
|
|
184
184
|
const h = e.value.nodeCategories?.[a], f = h ? e.value.nodeCategoryColors?.[h] : null;
|
|
185
|
-
l[a].color = ue[a] || f || (
|
|
185
|
+
l[a].color = ue[a] || f || (K.includes(a) ? re[a] : null) || L[u % L.length];
|
|
186
186
|
}), Object.keys(l).forEach((a) => {
|
|
187
187
|
l[a].value = Math.max(l[a].inflow, l[a].outflow);
|
|
188
188
|
});
|
|
189
|
-
const we = le.value,
|
|
189
|
+
const we = le.value, ze = vt.value.width, Q = vt.value.height, D = Object.keys(o).map(Number).sort((a, u) => a - u), $e = D.length || 1, Re = $e > 1 ? ze / ($e - 1) : 0, A = Number(ye.value), P = Number(
|
|
190
190
|
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
191
191
|
), ie = Number(e.value.style.chart.nodes.minHeight || 0);
|
|
192
192
|
function v(a) {
|
|
193
193
|
const u = o[a], h = u.length;
|
|
194
194
|
if (!h) return 1 / 0;
|
|
195
|
-
const f = Math.max(0, (h - 1) * P), _ = Math.max(0,
|
|
195
|
+
const f = Math.max(0, (h - 1) * P), _ = Math.max(0, Q - f), B = Math.min(ie, h ? _ / h : 0);
|
|
196
196
|
let C = 0, O = u.map((p) => l[p].value || 0), y = O.reduce((p, N) => p + N, 0);
|
|
197
197
|
for (let p = 0; p < 12; p += 1) {
|
|
198
|
-
const N = y > 0 ? (_ - C) / y : 0,
|
|
198
|
+
const N = y > 0 ? (_ - C) / y : 0, z = [];
|
|
199
199
|
for (let I = 0; I < O.length; I += 1) {
|
|
200
200
|
const R = O[I];
|
|
201
|
-
R < 0 || R * N <
|
|
201
|
+
R < 0 || R * N < B && z.push(I);
|
|
202
202
|
}
|
|
203
|
-
if (!
|
|
204
|
-
for (const I of
|
|
205
|
-
C +=
|
|
203
|
+
if (!z.length) return Math.max(0, N);
|
|
204
|
+
for (const I of z)
|
|
205
|
+
C += B, y -= O[I], O[I] = -1;
|
|
206
206
|
if (y <= 0) return 0;
|
|
207
207
|
}
|
|
208
208
|
return y > 0 ? Math.max(0, (_ - C) / y) : 0;
|
|
209
209
|
}
|
|
210
210
|
const m = D.map(v), V = m.length ? Math.min(...m) : 0, X = {};
|
|
211
211
|
D.forEach((a) => {
|
|
212
|
-
const u = o[a], h = u.length, f = Math.max(0, (h - 1) * P), _ = Math.max(0,
|
|
213
|
-
(p) => Math.max(
|
|
212
|
+
const u = o[a], h = u.length, f = Math.max(0, (h - 1) * P), _ = Math.max(0, Q - f), B = Math.min(ie, h ? _ / h : 0), C = u.map(
|
|
213
|
+
(p) => Math.max(B, (l[p].value || 0) * V)
|
|
214
214
|
), O = C.reduce((p, N) => p + N, 0) + f;
|
|
215
|
-
let y = Math.max(0, (
|
|
215
|
+
let y = Math.max(0, (Q - O) / 2);
|
|
216
216
|
u.forEach((p, N) => {
|
|
217
|
-
const
|
|
217
|
+
const z = C[N], I = we.left + a * Re, R = y;
|
|
218
218
|
X[p] = {
|
|
219
219
|
x: I,
|
|
220
220
|
y: R,
|
|
221
221
|
absoluteY: R,
|
|
222
|
-
height:
|
|
222
|
+
height: z,
|
|
223
223
|
i: N,
|
|
224
224
|
color: l[p].color,
|
|
225
225
|
value: l[p].value
|
|
226
|
-
}, y +=
|
|
226
|
+
}, y += z, N < h - 1 && (y += P);
|
|
227
227
|
});
|
|
228
228
|
});
|
|
229
229
|
const bt = [], ce = we.top, He = {}, We = {};
|
|
@@ -235,10 +235,10 @@ const Do = ["id"], Lo = {
|
|
|
235
235
|
o[a].forEach((h) => {
|
|
236
236
|
const f = l[h], _ = X[h];
|
|
237
237
|
if (!f.children || !f.children.length) return;
|
|
238
|
-
let
|
|
238
|
+
let B = _.y;
|
|
239
239
|
f.children.forEach(({ target: C, value: O }) => {
|
|
240
|
-
const y = X[C], p = l[C], N = f.outflow > 0 ? O / f.outflow : 0,
|
|
241
|
-
let Ae = Ct +
|
|
240
|
+
const y = X[C], p = l[C], N = f.outflow > 0 ? O / f.outflow : 0, z = p.inflow > 0 ? O / p.inflow : 0, I = x(B + ce), R = x(B + N * _.height + ce), Ct = He[C];
|
|
241
|
+
let Ae = Ct + z * y.height;
|
|
242
242
|
We[C] += O;
|
|
243
243
|
const oo = p.inflow > 0 && We[C] >= p.inflow - eo, kt = y.y + y.height;
|
|
244
244
|
(oo || Ae > kt - to) && (Ae = kt);
|
|
@@ -251,7 +251,7 @@ const Do = ["id"], Lo = {
|
|
|
251
251
|
value: O,
|
|
252
252
|
sourceColor: f.color,
|
|
253
253
|
targetColor: l[C].color
|
|
254
|
-
}),
|
|
254
|
+
}), B = R - ce, He[C] = Ae;
|
|
255
255
|
});
|
|
256
256
|
});
|
|
257
257
|
}), { nodeCoordinates: X, links: bt };
|
|
@@ -274,26 +274,26 @@ const Do = ["id"], Lo = {
|
|
|
274
274
|
}));
|
|
275
275
|
function Wt(t) {
|
|
276
276
|
const l = {}, o = {}, n = /* @__PURE__ */ new Set();
|
|
277
|
-
return ut.value.forEach(([s, $,
|
|
277
|
+
return ut.value.forEach(([s, $, K]) => {
|
|
278
278
|
l[s] || (l[s] = []), o[$] || (o[$] = []), l[s].push($), o[$].push(s);
|
|
279
279
|
}), l[t] && l[t].forEach((s) => n.add(s)), o[t] && o[t].forEach((s) => n.add(s)), Array.from(n).concat(t);
|
|
280
280
|
}
|
|
281
|
-
const w = c(null),
|
|
281
|
+
const w = c(null), J = c(null), ne = c(null), be = c(!1);
|
|
282
282
|
function Gt(t, l) {
|
|
283
|
-
j.value = [], w.value = Wt(t.name),
|
|
283
|
+
j.value = [], w.value = Wt(t.name), J.value = t.name;
|
|
284
284
|
const o = t.name, n = ut.value;
|
|
285
|
-
let s = 0, $ = 0,
|
|
286
|
-
const ue = new Set(n.map(([v]) => v)), we = new Set(n.map(([, v]) => v)),
|
|
285
|
+
let s = 0, $ = 0, K = [], re = [];
|
|
286
|
+
const ue = new Set(n.map(([v]) => v)), we = new Set(n.map(([, v]) => v)), ze = Array.from(ue).filter((v) => !we.has(v)), Q = n.filter(([v]) => ze.includes(v)).reduce((v, [m, V, X]) => v + X, 0), D = {};
|
|
287
287
|
S.value.nodes.forEach((v) => {
|
|
288
288
|
D[v.name] = v.color;
|
|
289
289
|
}), n.forEach(([v, m, V]) => {
|
|
290
|
-
m === o && (s += V,
|
|
290
|
+
m === o && (s += V, K.push({ source: v, value: V, color: D[v] })), v === o && ($ += V, re.push({ target: m, value: V, color: D[m] }));
|
|
291
291
|
});
|
|
292
|
-
const $e = Math.max(s, $), Re =
|
|
292
|
+
const $e = Math.max(s, $), Re = Q > 0 ? $e / Q * 100 : 0, A = {
|
|
293
293
|
name: o,
|
|
294
294
|
inflow: s,
|
|
295
295
|
outflow: $,
|
|
296
|
-
from:
|
|
296
|
+
from: K,
|
|
297
297
|
to: re,
|
|
298
298
|
percentOfTotal: Re,
|
|
299
299
|
color: D[o] || "#000000"
|
|
@@ -346,7 +346,7 @@ const Do = ["id"], Lo = {
|
|
|
346
346
|
}
|
|
347
347
|
function dt(t) {
|
|
348
348
|
const l = ne.value;
|
|
349
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t }), w.value = null,
|
|
349
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t }), w.value = null, J.value = null, Se.value = !1;
|
|
350
350
|
}
|
|
351
351
|
function Ut(t) {
|
|
352
352
|
const l = ne.value;
|
|
@@ -452,22 +452,22 @@ const Do = ["id"], Lo = {
|
|
|
452
452
|
).length
|
|
453
453
|
})).map((l, o) => ({
|
|
454
454
|
...l,
|
|
455
|
-
segregate: () =>
|
|
455
|
+
segregate: () => Be({ legend: l, i: o }),
|
|
456
456
|
opacity: j.value.length ? j.value.includes(o) ? 1 : 0.5 : 1,
|
|
457
457
|
display: `${l.name} (${l.count})`
|
|
458
458
|
}));
|
|
459
459
|
}), Le = d(
|
|
460
460
|
() => gt.value.filter((t) => t.name !== "__uncategorized__")
|
|
461
461
|
), j = c([]);
|
|
462
|
-
function
|
|
462
|
+
function Be({ legend: t, i: l }) {
|
|
463
463
|
const o = t.name;
|
|
464
464
|
if (w.value?.every(
|
|
465
465
|
(n) => e.value.nodeCategories[n] === o
|
|
466
466
|
)) {
|
|
467
|
-
w.value = null,
|
|
467
|
+
w.value = null, J.value = null, j.value = [];
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
j.value = [l], w.value = S.value.nodes.filter((n) => e.value.nodeCategories[n.name] === o).map((n) => n.name),
|
|
470
|
+
j.value = [l], w.value = S.value.nodes.filter((n) => e.value.nodeCategories[n.name] === o).map((n) => n.name), J.value = null;
|
|
471
471
|
}
|
|
472
472
|
const jt = d(() => ({
|
|
473
473
|
cy: "flow-legend",
|
|
@@ -528,19 +528,19 @@ const Do = ["id"], Lo = {
|
|
|
528
528
|
const Xt = d(() => Le.value.map((t) => ({
|
|
529
529
|
...t,
|
|
530
530
|
name: t.display
|
|
531
|
-
}))), qt = d(() => e.value.style.chart.backgroundColor),
|
|
531
|
+
}))), qt = d(() => e.value.style.chart.backgroundColor), Jt = d(() => e.value.style.chart.legend), Kt = d(() => e.value.style.chart.title), { exportSvg: Qt, getSvg: Zt } = _o({
|
|
532
532
|
svg: Ie,
|
|
533
|
-
title:
|
|
534
|
-
legend:
|
|
533
|
+
title: Kt,
|
|
534
|
+
legend: Jt,
|
|
535
535
|
legendItems: Xt,
|
|
536
536
|
backgroundColor: qt
|
|
537
537
|
});
|
|
538
538
|
async function yt({ isCb: t }) {
|
|
539
539
|
if (t) {
|
|
540
|
-
const { blob: l, url: o, text: n, dataUrl: s } = await
|
|
540
|
+
const { blob: l, url: o, text: n, dataUrl: s } = await Zt();
|
|
541
541
|
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: n, dataUrl: s });
|
|
542
542
|
} else
|
|
543
|
-
|
|
543
|
+
Qt();
|
|
544
544
|
}
|
|
545
545
|
return Ot({
|
|
546
546
|
getData: Yt,
|
|
@@ -552,9 +552,9 @@ const Do = ["id"], Lo = {
|
|
|
552
552
|
toggleTable: ft,
|
|
553
553
|
toggleAnnotator: De,
|
|
554
554
|
toggleTooltip: pt,
|
|
555
|
-
drillCategory:
|
|
555
|
+
drillCategory: Be,
|
|
556
556
|
unselectNode: dt,
|
|
557
|
-
toggleFullscreen:
|
|
557
|
+
toggleFullscreen: Qe
|
|
558
558
|
}), (t, l) => (i(), g("div", {
|
|
559
559
|
ref_key: "flowChart",
|
|
560
560
|
ref: M,
|
|
@@ -595,8 +595,8 @@ const Do = ["id"], Lo = {
|
|
|
595
595
|
], 512)) : T("", !0),
|
|
596
596
|
G("div", {
|
|
597
597
|
id: `legend-top-${U.value}`
|
|
598
|
-
}, null, 8,
|
|
599
|
-
e.value.userOptions.show &&
|
|
598
|
+
}, null, 8, Bo),
|
|
599
|
+
e.value.userOptions.show && Ke.value && (r(tt) || r(Ee)) ? (i(), q(r(Mt), {
|
|
600
600
|
ref_key: "userOptionsRef",
|
|
601
601
|
ref: Oe,
|
|
602
602
|
key: `user_option_${Ye.value}`,
|
|
@@ -623,7 +623,7 @@ const Do = ["id"], Lo = {
|
|
|
623
623
|
isTooltip: E.value.showTooltip,
|
|
624
624
|
tableDialog: e.value.table.useDialog,
|
|
625
625
|
onToggleTooltip: pt,
|
|
626
|
-
onToggleFullscreen:
|
|
626
|
+
onToggleFullscreen: Qe,
|
|
627
627
|
onGeneratePdf: r(st),
|
|
628
628
|
onGenerateCsv: Me,
|
|
629
629
|
onGenerateImage: r(rt),
|
|
@@ -637,7 +637,7 @@ const Do = ["id"], Lo = {
|
|
|
637
637
|
t.$slots.menuIcon ? {
|
|
638
638
|
name: "menuIcon",
|
|
639
639
|
fn: b(({ isOpen: o, color: n }) => [
|
|
640
|
-
k(t.$slots, "menuIcon",
|
|
640
|
+
k(t.$slots, "menuIcon", Z(ee({ isOpen: o, color: n })), void 0, !0)
|
|
641
641
|
]),
|
|
642
642
|
key: "0"
|
|
643
643
|
} : void 0,
|
|
@@ -679,14 +679,14 @@ const Do = ["id"], Lo = {
|
|
|
679
679
|
t.$slots.optionFullscreen ? {
|
|
680
680
|
name: "optionFullscreen",
|
|
681
681
|
fn: b(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
682
|
-
k(t.$slots, "optionFullscreen",
|
|
682
|
+
k(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
683
683
|
]),
|
|
684
684
|
key: "6"
|
|
685
685
|
} : void 0,
|
|
686
686
|
t.$slots.optionAnnotator ? {
|
|
687
687
|
name: "optionAnnotator",
|
|
688
688
|
fn: b(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
689
|
-
k(t.$slots, "optionAnnotator",
|
|
689
|
+
k(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
690
690
|
]),
|
|
691
691
|
key: "7"
|
|
692
692
|
} : void 0
|
|
@@ -747,7 +747,7 @@ const Do = ["id"], Lo = {
|
|
|
747
747
|
stroke: e.value.style.chart.links.stroke,
|
|
748
748
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
749
749
|
style: W(`
|
|
750
|
-
opacity:${w.value ? w.value.includes(o.source) && w.value.includes(o.target) ? 1 : 0.3 :
|
|
750
|
+
opacity:${w.value ? w.value.includes(o.source) && w.value.includes(o.target) ? 1 : 0.3 : J.value ? [o.target, o.source].includes(J.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
751
751
|
`)
|
|
752
752
|
}, null, 12, Uo))), 256)),
|
|
753
753
|
(i(!0), g(ve, null, de(S.value.nodes, (o, n) => (i(), g("rect", {
|
|
@@ -800,14 +800,14 @@ const Do = ["id"], Lo = {
|
|
|
800
800
|
)), 13, Xo))), 256))
|
|
801
801
|
])) : T("", !0),
|
|
802
802
|
k(t.$slots, "svg", { svg: ae.value }, void 0, !0)
|
|
803
|
-
], 14,
|
|
803
|
+
], 14, zo)),
|
|
804
804
|
t.$slots.watermark ? (i(), g("div", qo, [
|
|
805
|
-
k(t.$slots, "watermark",
|
|
805
|
+
k(t.$slots, "watermark", Z(ee({ isPrinting: r(at) || r(nt) })), void 0, !0)
|
|
806
806
|
])) : T("", !0),
|
|
807
807
|
G("div", {
|
|
808
808
|
id: `legend-bottom-${U.value}`
|
|
809
|
-
}, null, 8,
|
|
810
|
-
|
|
809
|
+
}, null, 8, Jo),
|
|
810
|
+
Je.value ? (i(), q(ro, {
|
|
811
811
|
key: 5,
|
|
812
812
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${U.value}` : `#legend-bottom-${U.value}`
|
|
813
813
|
}, [
|
|
@@ -819,14 +819,14 @@ const Do = ["id"], Lo = {
|
|
|
819
819
|
key: 0,
|
|
820
820
|
legendSet: Le.value,
|
|
821
821
|
config: jt.value,
|
|
822
|
-
onClickMarker: l[0] || (l[0] = (o) =>
|
|
822
|
+
onClickMarker: l[0] || (l[0] = (o) => Be(o))
|
|
823
823
|
}, {
|
|
824
824
|
item: b(({ legend: o, index: n }) => [
|
|
825
825
|
r(Ne) ? T("", !0) : (i(), g("div", {
|
|
826
826
|
key: 0,
|
|
827
827
|
onClick: (s) => o.segregate(),
|
|
828
828
|
style: W(`opacity:${j.value.length ? j.value.includes(n) ? 1 : 0.5 : 1}`)
|
|
829
|
-
}, he(o.display), 13,
|
|
829
|
+
}, he(o.display), 13, Ko))
|
|
830
830
|
]),
|
|
831
831
|
_: 1
|
|
832
832
|
}, 8, ["legendSet", "config"])) : T("", !0),
|
|
@@ -862,14 +862,14 @@ const Do = ["id"], Lo = {
|
|
|
862
862
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
863
863
|
}, {
|
|
864
864
|
"tooltip-before": b(() => [
|
|
865
|
-
k(t.$slots, "tooltip-before",
|
|
865
|
+
k(t.$slots, "tooltip-before", Z(ee({ ...ne.value })), void 0, !0)
|
|
866
866
|
]),
|
|
867
867
|
"tooltip-after": b(() => [
|
|
868
|
-
k(t.$slots, "tooltip-after",
|
|
868
|
+
k(t.$slots, "tooltip-after", Z(ee({ ...ne.value })), void 0, !0)
|
|
869
869
|
]),
|
|
870
870
|
_: 3
|
|
871
871
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
872
|
-
|
|
872
|
+
Ke.value && e.value.userOptions.buttons.table ? (i(), q(uo(se.value.component), io({ key: 7 }, se.value.props, {
|
|
873
873
|
ref_key: "tableUnit",
|
|
874
874
|
ref: oe,
|
|
875
875
|
onClose: mt
|
|
@@ -888,7 +888,7 @@ const Do = ["id"], Lo = {
|
|
|
888
888
|
G("div", {
|
|
889
889
|
innerHTML: o,
|
|
890
890
|
style: { display: "flex", "align-items": "center" }
|
|
891
|
-
}, null, 8,
|
|
891
|
+
}, null, 8, Qo)
|
|
892
892
|
]),
|
|
893
893
|
td: b(({ td: o }) => [
|
|
894
894
|
At(he(o.name || o), 1)
|
|
@@ -925,7 +925,7 @@ const Do = ["id"], Lo = {
|
|
|
925
925
|
r(Ne) ? (i(), q(So, { key: 8 })) : T("", !0)
|
|
926
926
|
], 46, Do));
|
|
927
927
|
}
|
|
928
|
-
}, fl = /* @__PURE__ */ Mo(
|
|
928
|
+
}, fl = /* @__PURE__ */ Mo(Zo, [["__scopeId", "data-v-277f5344"]]);
|
|
929
929
|
export {
|
|
930
930
|
fl as default
|
|
931
931
|
};
|