vue-data-ui 3.5.2 → 3.7.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/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,991 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, ref as u, computed as h, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as y, openBlock as c, unref as r, normalizeStyle as U, normalizeClass as Ot, createBlock as J, createCommentVNode as T, createElementVNode as Y, createVNode as Oe, withCtx as d, renderSlot as f, normalizeProps as M, guardReactiveProps as B, createSlots as _t, Fragment as de, renderList as he, withKeys as qe, withModifiers as Ke, toDisplayString as fe, Teleport as fo, resolveDynamicComponent as po, mergeProps as go, createTextVNode as Nt, nextTick as Ft } from "vue";
|
|
2
|
-
import { c as _e, t as mo, o as Et, f as yo, b as bo, p as z, e as Co, x, h as ko, d as te, X as wo, a as Ne, J as It, I as $o, P as Ao, Q as To, G as xo } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { t as So, u as Oo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as _o, a as Pt } from "./useNestedProp-CReNavA0.js";
|
|
5
|
-
import { u as No } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
-
import { u as Fo, B as Eo } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { u as Io } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
-
import { u as Po } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
-
import { u as Mo } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import { t as Bo } from "./themes-AUNCOb2G.js";
|
|
11
|
-
import Do from "./Legend-G6GMcdAc.js";
|
|
12
|
-
import Lo from "./Title-BzH_LEA3.js";
|
|
13
|
-
import zo from "./img-BecE5qXd.js";
|
|
14
|
-
import { _ as Ro } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const Ho = ["id"], Wo = {
|
|
16
|
-
key: 1,
|
|
17
|
-
ref: "noTitle",
|
|
18
|
-
class: "vue-data-ui-no-title-space",
|
|
19
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
20
|
-
}, Go = ["id"], Uo = ["xmlns", "viewBox"], Yo = ["width", "height"], jo = ["id"], Vo = ["stop-color"], Xo = ["stop-color"], qo = ["d", "fill", "stroke", "stroke-width"], Ko = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx", "aria-label", "onMouseenter", "onMouseleave", "onClick", "onKeydown", "onFocus", "onBlur"], Jo = { key: 1 }, Qo = ["x", "y", "font-size", "fill"], Zo = ["x", "y", "font-size", "fill"], el = {
|
|
21
|
-
key: 4,
|
|
22
|
-
class: "vue-data-ui-watermark"
|
|
23
|
-
}, tl = ["id"], ol = ["onClick"], ll = ["innerHTML"], al = {
|
|
24
|
-
__name: "vue-ui-flow",
|
|
25
|
-
props: {
|
|
26
|
-
config: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default() {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
dataset: {
|
|
33
|
-
type: Array,
|
|
34
|
-
default() {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
setup(Mt, { expose: Bt }) {
|
|
40
|
-
const Dt = G(() => import("./Tooltip-oWCO1HKy.js")), Lt = G(() => import("./BaseIcon-BmMbm4d0.js")), zt = G(() => import("./vue-ui-accordion-BmFTVF1a.js")), Rt = G(() => import("./DataTable-BT7VF2ua.js")), Ht = G(() => import("./PenAndPaper-SZQIAgkg.js")), Wt = G(() => import("./UserOptions-CGnQt6Fd.js")), Gt = G(() => import("./PackageVersion-Y7t79Jtq.js")), Ut = G(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_flow: Yt } = _o(), E = Mt, j = u(_e()), I = u(null), Je = u(0), Qe = u(0), Fe = u(!1), Ee = u(""), Ze = u(null), et = u(null), tt = u(null), oe = u(null), pe = u(null), ot = u(!1), le = u(null), Ie = u(null), Pe = u(null), lt = h(() => !!E.dataset && E.dataset.length);
|
|
41
|
-
vo(() => {
|
|
42
|
-
ot.value = !0, nt();
|
|
43
|
-
});
|
|
44
|
-
const V = u(!1);
|
|
45
|
-
function at(o) {
|
|
46
|
-
V.value = o, Je.value += 1;
|
|
47
|
-
}
|
|
48
|
-
const e = u(ze()), { loading: Me, FINAL_DATASET: ge, manualLoading: Be } = Fo({
|
|
49
|
-
...ho(E),
|
|
50
|
-
FINAL_CONFIG: e,
|
|
51
|
-
prepareConfig: ze,
|
|
52
|
-
skeletonDataset: [
|
|
53
|
-
["A", "B", 2, "#CACACA"],
|
|
54
|
-
["B", "C", 1, "#CACACA"],
|
|
55
|
-
["C", "D", 0.5, "#CACACA"],
|
|
56
|
-
["E", "F", 1, "#AAAAAA"],
|
|
57
|
-
["F", "G", 0.5, "#AAAAAA"],
|
|
58
|
-
["G", "H", 0.25, "#AAAAAA"]
|
|
59
|
-
],
|
|
60
|
-
skeletonConfig: mo({
|
|
61
|
-
defaultConfig: e.value,
|
|
62
|
-
userConfig: {
|
|
63
|
-
userOptions: { show: !1 },
|
|
64
|
-
nodeCategories: {
|
|
65
|
-
B: "A",
|
|
66
|
-
C: "B"
|
|
67
|
-
},
|
|
68
|
-
nodeCategoryColors: {
|
|
69
|
-
A: "#CACACA",
|
|
70
|
-
B: "#AAAAAA"
|
|
71
|
-
},
|
|
72
|
-
table: { show: !1 },
|
|
73
|
-
style: {
|
|
74
|
-
chart: {
|
|
75
|
-
backgroundColor: "#99999930",
|
|
76
|
-
legend: {
|
|
77
|
-
backgroundColor: "transparent"
|
|
78
|
-
},
|
|
79
|
-
nodes: {
|
|
80
|
-
labels: {
|
|
81
|
-
show: !1
|
|
82
|
-
},
|
|
83
|
-
stroke: "#666666"
|
|
84
|
-
},
|
|
85
|
-
links: {
|
|
86
|
-
stroke: "#666666"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
}), jt = h(() => !!e.value.debug);
|
|
93
|
-
function nt() {
|
|
94
|
-
if (Et(E.dataset) && (yo({
|
|
95
|
-
componentName: "VueUiFlow",
|
|
96
|
-
type: "dataset",
|
|
97
|
-
debug: jt.value
|
|
98
|
-
}), Be.value = !0), Et(E.dataset) || (Be.value = e.value.loading), e.value.responsive) {
|
|
99
|
-
const o = So(() => {
|
|
100
|
-
const { width: l, height: t } = Oo({
|
|
101
|
-
chart: I.value,
|
|
102
|
-
title: e.value.style.chart.title.text ? et.value : null,
|
|
103
|
-
legend: e.value.style.chart.legend.show ? Ze.value : null,
|
|
104
|
-
source: tt.value
|
|
105
|
-
});
|
|
106
|
-
requestAnimationFrame(() => {
|
|
107
|
-
ut.value = l, it.value = t;
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(o), pe.value = I.value.parentNode, oe.value.observe(pe.value);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
const { userOptionsVisible: De, setUserOptionsVisibility: st, keepUserOptionState: rt } = Po({ config: e.value }), { svgRef: Le } = Mo({
|
|
114
|
-
config: e.value.style.chart.title
|
|
115
|
-
});
|
|
116
|
-
function ze() {
|
|
117
|
-
const o = Pt({
|
|
118
|
-
userConfig: E.config,
|
|
119
|
-
defaultConfig: Yt
|
|
120
|
-
});
|
|
121
|
-
let l = o;
|
|
122
|
-
return o.theme ? l = {
|
|
123
|
-
...Pt({
|
|
124
|
-
userConfig: Bo.vue_ui_flow[o.theme] || E.config,
|
|
125
|
-
defaultConfig: o
|
|
126
|
-
}),
|
|
127
|
-
customPalette: bo[o.theme] || z
|
|
128
|
-
} : l = o, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
|
|
129
|
-
}
|
|
130
|
-
const ut = u(e.value.style.chart.width), it = u(e.value.style.chart.height);
|
|
131
|
-
Se(
|
|
132
|
-
() => E.config,
|
|
133
|
-
(o) => {
|
|
134
|
-
Me.value || (e.value = ze()), De.value = !e.value.userOptions.showOnChartHover, nt(), Qe.value += 1, S.value.showTable = e.value.table.show;
|
|
135
|
-
},
|
|
136
|
-
{ deep: !0 }
|
|
137
|
-
), Se(() => E.dataset, (o) => {
|
|
138
|
-
Array.isArray(o) && o.length > 0 && (Be.value = !1);
|
|
139
|
-
}, { deep: !0 });
|
|
140
|
-
const { isPrinting: ct, isImaging: vt, generatePdf: dt, generateImage: ht } = No({
|
|
141
|
-
elementId: `flow_${j.value}`,
|
|
142
|
-
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
143
|
-
options: e.value.userOptions.print
|
|
144
|
-
}), Vt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = h(() => Co(e.value.customPalette)), ye = h(() => e.value.style.chart.nodes.width), S = u({
|
|
145
|
-
showTable: e.value.table.show,
|
|
146
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
147
|
-
});
|
|
148
|
-
Se(e, () => {
|
|
149
|
-
S.value = {
|
|
150
|
-
showTable: e.value.table.show,
|
|
151
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
152
|
-
};
|
|
153
|
-
}, { immediate: !0 });
|
|
154
|
-
const ft = h(() => !ge.value || !ge.value.length ? [] : ge.value.map((o, l) => [
|
|
155
|
-
o[0],
|
|
156
|
-
o[1],
|
|
157
|
-
x(o[2]),
|
|
158
|
-
o[3] ? ko(o[3]) : me.value[l] || me.value[l % me.value.length] || z[l] || z[l % z.length]
|
|
159
|
-
]));
|
|
160
|
-
function Xt(o) {
|
|
161
|
-
const l = {}, t = {};
|
|
162
|
-
function a(n, i) {
|
|
163
|
-
l[n] || (l[n] = {
|
|
164
|
-
level: null,
|
|
165
|
-
inflow: 0,
|
|
166
|
-
outflow: 0,
|
|
167
|
-
children: [],
|
|
168
|
-
color: null,
|
|
169
|
-
uid: _e()
|
|
170
|
-
}), l[n].level === null && (l[n].level = i), t[i] || (t[i] = []), t[i].includes(n) || t[i].push(n);
|
|
171
|
-
}
|
|
172
|
-
o.forEach(([n, i, p]) => {
|
|
173
|
-
const g = l[n]?.level ?? 0, _ = g + 1;
|
|
174
|
-
a(n, g), a(i, _), l[n].children.push({ target: i, value: p }), l[n].outflow += p, l[i].inflow += p;
|
|
175
|
-
});
|
|
176
|
-
const s = new Set(o.map(([n]) => n)), $ = new Set(o.map(([, n]) => n)), Z = Array.from(s).filter((n) => !$.has(n)), ue = {};
|
|
177
|
-
Z.forEach((n, i) => {
|
|
178
|
-
ue[n] = me.value[i] || z[i % z.length];
|
|
179
|
-
});
|
|
180
|
-
const ie = {};
|
|
181
|
-
o.forEach(([n, i, p, g]) => {
|
|
182
|
-
g && (ie[n] = g, ie[i] = g);
|
|
183
|
-
}), Object.keys(l).forEach((n, i) => {
|
|
184
|
-
const p = e.value.nodeCategories?.[n], g = p ? e.value.nodeCategoryColors?.[p] : null;
|
|
185
|
-
l[n].color = ie[n] || g || (Z.includes(n) ? ue[n] : null) || z[i % z.length];
|
|
186
|
-
}), Object.keys(l).forEach((n) => {
|
|
187
|
-
l[n].value = Math.max(l[n].inflow, l[n].outflow);
|
|
188
|
-
});
|
|
189
|
-
const Ae = ae.value, Ye = mt.value.width, ee = mt.value.height, L = Object.keys(t).map(Number).sort((n, i) => n - i), Te = L.length || 1, je = Te > 1 ? Ye / (Te - 1) : 0, A = Number(ye.value), D = Number(
|
|
190
|
-
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
191
|
-
), ce = Number(e.value.style.chart.nodes.minHeight || 0);
|
|
192
|
-
function v(n) {
|
|
193
|
-
const i = t[n], p = i.length;
|
|
194
|
-
if (!p) return 1 / 0;
|
|
195
|
-
const g = Math.max(0, (p - 1) * D), _ = Math.max(0, ee - g), R = Math.min(ce, p ? _ / p : 0);
|
|
196
|
-
let k = 0, N = i.map((m) => l[m].value || 0), C = N.reduce((m, F) => m + F, 0);
|
|
197
|
-
for (let m = 0; m < 12; m += 1) {
|
|
198
|
-
const F = C > 0 ? (_ - k) / C : 0, H = [];
|
|
199
|
-
for (let P = 0; P < N.length; P += 1) {
|
|
200
|
-
const W = N[P];
|
|
201
|
-
W < 0 || W * F < R && H.push(P);
|
|
202
|
-
}
|
|
203
|
-
if (!H.length) return Math.max(0, F);
|
|
204
|
-
for (const P of H)
|
|
205
|
-
k += R, C -= N[P], N[P] = -1;
|
|
206
|
-
if (C <= 0) return 0;
|
|
207
|
-
}
|
|
208
|
-
return C > 0 ? Math.max(0, (_ - k) / C) : 0;
|
|
209
|
-
}
|
|
210
|
-
const b = L.map(v), q = b.length ? Math.min(...b) : 0, K = {};
|
|
211
|
-
L.forEach((n) => {
|
|
212
|
-
const i = t[n], p = i.length, g = Math.max(0, (p - 1) * D), _ = Math.max(0, ee - g), R = Math.min(ce, p ? _ / p : 0), k = i.map(
|
|
213
|
-
(m) => Math.max(R, (l[m].value || 0) * q)
|
|
214
|
-
), N = k.reduce((m, F) => m + F, 0) + g;
|
|
215
|
-
let C = Math.max(0, (ee - N) / 2);
|
|
216
|
-
i.forEach((m, F) => {
|
|
217
|
-
const H = k[F], P = Ae.left + n * je, W = C;
|
|
218
|
-
K[m] = {
|
|
219
|
-
x: P,
|
|
220
|
-
y: W,
|
|
221
|
-
absoluteY: W,
|
|
222
|
-
height: H,
|
|
223
|
-
i: F,
|
|
224
|
-
color: l[m].color,
|
|
225
|
-
value: l[m].value,
|
|
226
|
-
id: _e()
|
|
227
|
-
}, C += H, F < p - 1 && (C += D);
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
const Tt = [], ve = Ae.top, Ve = {}, Xe = {};
|
|
231
|
-
Object.keys(l).forEach((n) => {
|
|
232
|
-
Ve[n] = K[n]?.y ?? 0, Xe[n] = 0;
|
|
233
|
-
});
|
|
234
|
-
const so = 1e-6, ro = 0.25;
|
|
235
|
-
return L.forEach((n) => {
|
|
236
|
-
t[n].forEach((p) => {
|
|
237
|
-
const g = l[p], _ = K[p];
|
|
238
|
-
if (!g.children || !g.children.length) return;
|
|
239
|
-
let R = _.y;
|
|
240
|
-
g.children.forEach(({ target: k, value: N }) => {
|
|
241
|
-
const C = K[k], m = l[k], F = g.outflow > 0 ? N / g.outflow : 0, H = m.inflow > 0 ? N / m.inflow : 0, P = x(R + ve), W = x(R + F * _.height + ve), xt = Ve[k];
|
|
242
|
-
let xe = xt + H * C.height;
|
|
243
|
-
Xe[k] += N;
|
|
244
|
-
const uo = m.inflow > 0 && Xe[k] >= m.inflow - so, St = C.y + C.height;
|
|
245
|
-
(uo || xe > St - ro) && (xe = St);
|
|
246
|
-
const io = x(xt + ve), co = x(xe + ve);
|
|
247
|
-
Tt.push({
|
|
248
|
-
id: _e(),
|
|
249
|
-
source: p,
|
|
250
|
-
target: k,
|
|
251
|
-
path: `M ${x(_.x + A)} ${P} L ${x(_.x + A)} ${W} L ${x(C.x)} ${co} L ${x(C.x)} ${io} Z`,
|
|
252
|
-
value: N,
|
|
253
|
-
sourceColor: g.color,
|
|
254
|
-
targetColor: l[k].color
|
|
255
|
-
}), R = W - ve, Ve[k] = xe;
|
|
256
|
-
});
|
|
257
|
-
});
|
|
258
|
-
}), { nodeCoordinates: K, links: Tt };
|
|
259
|
-
}
|
|
260
|
-
const O = h(() => {
|
|
261
|
-
const o = Xt(ge.value);
|
|
262
|
-
return {
|
|
263
|
-
nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
|
|
264
|
-
...o.nodeCoordinates[l],
|
|
265
|
-
name: l
|
|
266
|
-
})),
|
|
267
|
-
links: o.links
|
|
268
|
-
};
|
|
269
|
-
}), pt = h(() => ut.value), gt = h(() => it.value), ae = h(() => e.value.style.chart.padding), mt = h(() => ({
|
|
270
|
-
width: Math.max(0, pt.value - 40 - ae.value.right - ae.value.left),
|
|
271
|
-
height: Math.max(0, gt.value - ae.value.top - ae.value.bottom)
|
|
272
|
-
})), ne = h(() => ({
|
|
273
|
-
width: pt.value,
|
|
274
|
-
height: gt.value
|
|
275
|
-
}));
|
|
276
|
-
function qt(o) {
|
|
277
|
-
const l = {}, t = {}, a = /* @__PURE__ */ new Set();
|
|
278
|
-
return ft.value.forEach(([s, $, Z]) => {
|
|
279
|
-
l[s] || (l[s] = []), t[$] || (t[$] = []), l[s].push($), t[$].push(s);
|
|
280
|
-
}), l[o] && l[o].forEach((s) => a.add(s)), t[o] && t[o].forEach((s) => a.add(s)), Array.from(a).concat(o);
|
|
281
|
-
}
|
|
282
|
-
const w = u(null), Q = u(null), se = u(null), be = u(!1), Ce = u(null);
|
|
283
|
-
function yt(o, l) {
|
|
284
|
-
X.value = [], w.value = qt(o.name), Q.value = o.name, Ce.value = o.id;
|
|
285
|
-
const t = o.name, a = ft.value;
|
|
286
|
-
let s = 0, $ = 0, Z = [], ue = [];
|
|
287
|
-
const ie = new Set(a.map(([v]) => v)), Ae = new Set(a.map(([, v]) => v)), Ye = Array.from(ie).filter((v) => !Ae.has(v)), ee = a.filter(([v]) => Ye.includes(v)).reduce((v, [b, q, K]) => v + K, 0), L = {};
|
|
288
|
-
O.value.nodes.forEach((v) => {
|
|
289
|
-
L[v.name] = v.color;
|
|
290
|
-
}), a.forEach(([v, b, q]) => {
|
|
291
|
-
b === t && (s += q, Z.push({ source: v, value: q, color: L[v] })), v === t && ($ += q, ue.push({ target: b, value: q, color: L[b] }));
|
|
292
|
-
});
|
|
293
|
-
const Te = Math.max(s, $), je = ee > 0 ? Te / ee * 100 : 0, A = {
|
|
294
|
-
name: t,
|
|
295
|
-
inflow: s,
|
|
296
|
-
outflow: $,
|
|
297
|
-
from: Z,
|
|
298
|
-
to: ue,
|
|
299
|
-
percentOfTotal: je,
|
|
300
|
-
color: L[t] || "#000000"
|
|
301
|
-
};
|
|
302
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, Fe.value = !0;
|
|
303
|
-
let D = "";
|
|
304
|
-
const ce = e.value.style.chart.tooltip.customFormat;
|
|
305
|
-
if (be.value = !1, xo(ce))
|
|
306
|
-
try {
|
|
307
|
-
const v = ce({
|
|
308
|
-
datapoint: A,
|
|
309
|
-
series: O.value,
|
|
310
|
-
config: e.value
|
|
311
|
-
});
|
|
312
|
-
typeof v == "string" && (Ee.value = v, be.value = !0);
|
|
313
|
-
} catch {
|
|
314
|
-
console.warn("Custom format cannot be applied.");
|
|
315
|
-
}
|
|
316
|
-
if (!be.value) {
|
|
317
|
-
const v = e.value.style.chart.tooltip.showPercentage ? `<div>${te({
|
|
318
|
-
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
319
|
-
v: A.percentOfTotal,
|
|
320
|
-
s: "%",
|
|
321
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
322
|
-
})}</div>` : "";
|
|
323
|
-
D += `<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:${A.color}">⏹</span>${A.name}${v}</div>`, A.from.length && (D += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, A.from.forEach((b) => {
|
|
324
|
-
D += `<div><span style="color:${b.color}">⏹←</span> ${b.source}: ${Ne(
|
|
325
|
-
e.value.style.chart.nodes.labels.formatter,
|
|
326
|
-
b.value,
|
|
327
|
-
te({
|
|
328
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
329
|
-
v: b.value,
|
|
330
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
331
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
332
|
-
})
|
|
333
|
-
)}</div>`;
|
|
334
|
-
})), A.to.length && (D += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, A.to.forEach((b) => {
|
|
335
|
-
D += `<div><span style="color:${b.color}">⏹→</span> ${b.target}: ${Ne(
|
|
336
|
-
e.value.style.chart.nodes.labels.formatter,
|
|
337
|
-
b.value,
|
|
338
|
-
te({
|
|
339
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
340
|
-
v: b.value,
|
|
341
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
342
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
343
|
-
})
|
|
344
|
-
)}</div>`;
|
|
345
|
-
})), Ee.value = D;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
function ke(o) {
|
|
349
|
-
Ce.value = null;
|
|
350
|
-
const l = se.value;
|
|
351
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), w.value = null, Q.value = null, Fe.value = !1;
|
|
352
|
-
}
|
|
353
|
-
function Re(o) {
|
|
354
|
-
const l = se.value;
|
|
355
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
|
|
356
|
-
}
|
|
357
|
-
const bt = h(() => O.value.links.map(
|
|
358
|
-
({ source: o, target: l, sourceColor: t, targetColor: a, value: s }) => ({
|
|
359
|
-
source: o,
|
|
360
|
-
target: l,
|
|
361
|
-
sourceColor: t,
|
|
362
|
-
targetColor: a,
|
|
363
|
-
value: s
|
|
364
|
-
})
|
|
365
|
-
));
|
|
366
|
-
function He(o = null) {
|
|
367
|
-
Ft(() => {
|
|
368
|
-
const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]), t = [
|
|
369
|
-
[e.value.style.chart.title.text],
|
|
370
|
-
[e.value.style.chart.title.subtitle.text],
|
|
371
|
-
[
|
|
372
|
-
[e.value.table.columnNames.source],
|
|
373
|
-
[e.value.table.columnNames.target],
|
|
374
|
-
[e.value.table.columnNames.value]
|
|
375
|
-
]
|
|
376
|
-
].concat(l), a = Ao(t);
|
|
377
|
-
o ? o(a) : To({
|
|
378
|
-
csvContent: a,
|
|
379
|
-
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
380
|
-
});
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
const we = h(() => {
|
|
384
|
-
const o = [
|
|
385
|
-
e.value.table.columnNames.source,
|
|
386
|
-
e.value.table.columnNames.target,
|
|
387
|
-
e.value.table.columnNames.value
|
|
388
|
-
], l = bt.value.map((s, $) => [
|
|
389
|
-
{
|
|
390
|
-
color: s.sourceColor,
|
|
391
|
-
name: s.source,
|
|
392
|
-
shape: "square"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
color: s.targetColor,
|
|
396
|
-
name: s.target,
|
|
397
|
-
shape: "square"
|
|
398
|
-
},
|
|
399
|
-
te({
|
|
400
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
401
|
-
v: s.value,
|
|
402
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
403
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
404
|
-
})
|
|
405
|
-
]), t = {
|
|
406
|
-
th: {
|
|
407
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
408
|
-
color: e.value.table.th.color,
|
|
409
|
-
outline: e.value.table.th.outline
|
|
410
|
-
},
|
|
411
|
-
td: {
|
|
412
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
413
|
-
color: e.value.table.td.color,
|
|
414
|
-
outline: e.value.table.td.outline
|
|
415
|
-
},
|
|
416
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
417
|
-
};
|
|
418
|
-
return {
|
|
419
|
-
colNames: [
|
|
420
|
-
e.value.table.columnNames.source,
|
|
421
|
-
e.value.table.columnNames.target,
|
|
422
|
-
e.value.table.columnNames.value
|
|
423
|
-
],
|
|
424
|
-
head: o,
|
|
425
|
-
body: l,
|
|
426
|
-
config: t
|
|
427
|
-
};
|
|
428
|
-
});
|
|
429
|
-
function Kt() {
|
|
430
|
-
return O.value;
|
|
431
|
-
}
|
|
432
|
-
function Ct() {
|
|
433
|
-
S.value.showTable = !S.value.showTable;
|
|
434
|
-
}
|
|
435
|
-
const $e = u(!1);
|
|
436
|
-
function We() {
|
|
437
|
-
$e.value = !$e.value;
|
|
438
|
-
}
|
|
439
|
-
function kt() {
|
|
440
|
-
S.value.showTooltip = !S.value.showTooltip;
|
|
441
|
-
}
|
|
442
|
-
const wt = h(() => {
|
|
443
|
-
const o = new Set(
|
|
444
|
-
O.value.nodes.map(
|
|
445
|
-
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
446
|
-
)
|
|
447
|
-
);
|
|
448
|
-
return Array.from(o).map((l) => ({
|
|
449
|
-
name: l,
|
|
450
|
-
color: e.value.nodeCategoryColors[l] || z[0],
|
|
451
|
-
shape: "square",
|
|
452
|
-
count: O.value.nodes.filter(
|
|
453
|
-
(t) => (e.value.nodeCategories[t.name] || "__uncategorized__") === l
|
|
454
|
-
).length
|
|
455
|
-
})).map((l, t) => ({
|
|
456
|
-
...l,
|
|
457
|
-
segregate: () => Ue({ legend: l, i: t }),
|
|
458
|
-
opacity: X.value.length ? X.value.includes(t) ? 1 : 0.5 : 1,
|
|
459
|
-
display: `${l.name} (${l.count})`
|
|
460
|
-
}));
|
|
461
|
-
}), Ge = h(
|
|
462
|
-
() => wt.value.filter((o) => o.name !== "__uncategorized__")
|
|
463
|
-
), X = u([]);
|
|
464
|
-
function Ue({ legend: o, i: l }) {
|
|
465
|
-
const t = o.name;
|
|
466
|
-
if (w.value?.every(
|
|
467
|
-
(a) => e.value.nodeCategories[a] === t
|
|
468
|
-
)) {
|
|
469
|
-
w.value = null, Q.value = null, X.value = [];
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
X.value = [l], w.value = O.value.nodes.filter((a) => e.value.nodeCategories[a.name] === t).map((a) => a.name), Q.value = null;
|
|
473
|
-
}
|
|
474
|
-
const Jt = h(() => ({
|
|
475
|
-
cy: "flow-legend",
|
|
476
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
477
|
-
color: e.value.style.chart.legend.color,
|
|
478
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
479
|
-
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
480
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
481
|
-
}));
|
|
482
|
-
async function Qt({ scale: o = 2 } = {}) {
|
|
483
|
-
if (!I.value) return;
|
|
484
|
-
const { width: l, height: t } = I.value.getBoundingClientRect(), a = l / t, { imageUri: s, base64: $ } = await zo({ domElement: I.value, base64: !0, img: !0, scale: o });
|
|
485
|
-
return {
|
|
486
|
-
imageUri: s,
|
|
487
|
-
base64: $,
|
|
488
|
-
title: e.value.style.chart.title.text,
|
|
489
|
-
width: l,
|
|
490
|
-
height: t,
|
|
491
|
-
aspectRatio: a
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
const re = h(() => {
|
|
495
|
-
const o = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
|
|
496
|
-
return {
|
|
497
|
-
component: o ? Ut : zt,
|
|
498
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
499
|
-
props: o ? {
|
|
500
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
501
|
-
color: e.value.table.th.color,
|
|
502
|
-
headerColor: e.value.table.th.color,
|
|
503
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
504
|
-
isFullscreen: V.value,
|
|
505
|
-
fullscreenParent: I.value,
|
|
506
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
507
|
-
} : {
|
|
508
|
-
hideDetails: !0,
|
|
509
|
-
config: {
|
|
510
|
-
open: l,
|
|
511
|
-
maxHeight: 1e4,
|
|
512
|
-
body: {
|
|
513
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
514
|
-
color: e.value.style.chart.color
|
|
515
|
-
},
|
|
516
|
-
head: {
|
|
517
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
518
|
-
color: e.value.style.chart.color
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
};
|
|
523
|
-
});
|
|
524
|
-
Se(() => S.value.showTable, (o) => {
|
|
525
|
-
e.value.table.show || (o && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
526
|
-
});
|
|
527
|
-
function $t() {
|
|
528
|
-
S.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
|
|
529
|
-
}
|
|
530
|
-
const Zt = h(() => Ge.value.map((o) => ({
|
|
531
|
-
...o,
|
|
532
|
-
name: o.display
|
|
533
|
-
}))), eo = h(() => e.value.style.chart.backgroundColor), to = h(() => e.value.style.chart.legend), oo = h(() => e.value.style.chart.title), { exportSvg: lo, getSvg: ao } = Io({
|
|
534
|
-
svg: Le,
|
|
535
|
-
title: oo,
|
|
536
|
-
legend: to,
|
|
537
|
-
legendItems: Zt,
|
|
538
|
-
backgroundColor: eo
|
|
539
|
-
});
|
|
540
|
-
async function At({ isCb: o }) {
|
|
541
|
-
if (o) {
|
|
542
|
-
const { blob: l, url: t, text: a, dataUrl: s } = await ao();
|
|
543
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: a, dataUrl: s });
|
|
544
|
-
} else
|
|
545
|
-
lo();
|
|
546
|
-
}
|
|
547
|
-
async function no(o, l) {
|
|
548
|
-
if (yt(o, l), S.value.showTooltip && (await Ft(), I.value && Pe.value)) {
|
|
549
|
-
const { left: t, top: a } = I.value.getBoundingClientRect();
|
|
550
|
-
Pe.value.placeTooltip({ x: (t ?? 0) + 12, y: (a ?? 0) + 12 });
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
return Bt({
|
|
554
|
-
getData: Kt,
|
|
555
|
-
getImage: Qt,
|
|
556
|
-
generateCsv: He,
|
|
557
|
-
generateImage: ht,
|
|
558
|
-
generateSvg: At,
|
|
559
|
-
generatePdf: dt,
|
|
560
|
-
toggleTable: Ct,
|
|
561
|
-
toggleAnnotator: We,
|
|
562
|
-
toggleTooltip: kt,
|
|
563
|
-
drillCategory: Ue,
|
|
564
|
-
unselectNode: ke,
|
|
565
|
-
toggleFullscreen: at
|
|
566
|
-
}), (o, l) => (c(), y("div", {
|
|
567
|
-
ref_key: "flowChart",
|
|
568
|
-
ref: I,
|
|
569
|
-
class: Ot(`vue-data-ui-component vue-ui-flow ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
570
|
-
style: U(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
571
|
-
id: `flow_${j.value}`,
|
|
572
|
-
onMouseenter: l[2] || (l[2] = () => r(st)(!0)),
|
|
573
|
-
onMouseleave: l[3] || (l[3] = () => r(st)(!1))
|
|
574
|
-
}, [
|
|
575
|
-
e.value.userOptions.buttons.annotator ? (c(), J(r(Ht), {
|
|
576
|
-
key: 0,
|
|
577
|
-
svgRef: r(Le),
|
|
578
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
579
|
-
color: e.value.style.chart.color,
|
|
580
|
-
active: $e.value,
|
|
581
|
-
onClose: We
|
|
582
|
-
}, {
|
|
583
|
-
"annotator-action-close": d(() => [
|
|
584
|
-
f(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
585
|
-
]),
|
|
586
|
-
"annotator-action-color": d(({ color: t }) => [
|
|
587
|
-
f(o.$slots, "annotator-action-color", M(B({ color: t })), void 0, !0)
|
|
588
|
-
]),
|
|
589
|
-
"annotator-action-draw": d(({ mode: t }) => [
|
|
590
|
-
f(o.$slots, "annotator-action-draw", M(B({ mode: t })), void 0, !0)
|
|
591
|
-
]),
|
|
592
|
-
"annotator-action-undo": d(({ disabled: t }) => [
|
|
593
|
-
f(o.$slots, "annotator-action-undo", M(B({ disabled: t })), void 0, !0)
|
|
594
|
-
]),
|
|
595
|
-
"annotator-action-redo": d(({ disabled: t }) => [
|
|
596
|
-
f(o.$slots, "annotator-action-redo", M(B({ disabled: t })), void 0, !0)
|
|
597
|
-
]),
|
|
598
|
-
"annotator-action-delete": d(({ disabled: t }) => [
|
|
599
|
-
f(o.$slots, "annotator-action-delete", M(B({ disabled: t })), void 0, !0)
|
|
600
|
-
]),
|
|
601
|
-
_: 3
|
|
602
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
|
|
603
|
-
Vt.value ? (c(), y("div", Wo, null, 512)) : T("", !0),
|
|
604
|
-
e.value.style.chart.title.text ? (c(), y("div", {
|
|
605
|
-
key: 2,
|
|
606
|
-
ref_key: "chartTitle",
|
|
607
|
-
ref: et,
|
|
608
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
609
|
-
}, [
|
|
610
|
-
(c(), J(Lo, {
|
|
611
|
-
key: `title_${Qe.value}`,
|
|
612
|
-
config: {
|
|
613
|
-
title: {
|
|
614
|
-
cy: "flow-title",
|
|
615
|
-
...e.value.style.chart.title
|
|
616
|
-
},
|
|
617
|
-
subtitle: {
|
|
618
|
-
cy: "flow-subtitle",
|
|
619
|
-
...e.value.style.chart.title.subtitle
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}, null, 8, ["config"]))
|
|
623
|
-
], 512)) : T("", !0),
|
|
624
|
-
Y("div", {
|
|
625
|
-
id: `legend-top-${j.value}`
|
|
626
|
-
}, null, 8, Go),
|
|
627
|
-
e.value.userOptions.show && lt.value && (r(rt) || r(De)) ? (c(), J(r(Wt), {
|
|
628
|
-
ref_key: "userOptionsRef",
|
|
629
|
-
ref: Ie,
|
|
630
|
-
key: `user_option_${Je.value}`,
|
|
631
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
632
|
-
color: e.value.style.chart.color,
|
|
633
|
-
isPrinting: r(ct),
|
|
634
|
-
isImaging: r(vt),
|
|
635
|
-
uid: j.value,
|
|
636
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
637
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
638
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
639
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
640
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
641
|
-
callbacks: e.value.userOptions.callbacks,
|
|
642
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
643
|
-
isFullscreen: V.value,
|
|
644
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
645
|
-
chartElement: I.value,
|
|
646
|
-
position: e.value.userOptions.position,
|
|
647
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
648
|
-
printScale: e.value.userOptions.print.scale,
|
|
649
|
-
isAnnotation: $e.value,
|
|
650
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
651
|
-
isTooltip: S.value.showTooltip,
|
|
652
|
-
tableDialog: e.value.table.useDialog,
|
|
653
|
-
onToggleTooltip: kt,
|
|
654
|
-
onToggleFullscreen: at,
|
|
655
|
-
onGeneratePdf: r(dt),
|
|
656
|
-
onGenerateCsv: He,
|
|
657
|
-
onGenerateImage: r(ht),
|
|
658
|
-
onGenerateSvg: At,
|
|
659
|
-
onToggleTable: Ct,
|
|
660
|
-
onToggleAnnotator: We,
|
|
661
|
-
style: U({
|
|
662
|
-
visibility: r(rt) ? r(De) ? "visible" : "hidden" : "visible"
|
|
663
|
-
})
|
|
664
|
-
}, _t({ _: 2 }, [
|
|
665
|
-
o.$slots.menuIcon ? {
|
|
666
|
-
name: "menuIcon",
|
|
667
|
-
fn: d(({ isOpen: t, color: a }) => [
|
|
668
|
-
f(o.$slots, "menuIcon", M(B({ isOpen: t, color: a })), void 0, !0)
|
|
669
|
-
]),
|
|
670
|
-
key: "0"
|
|
671
|
-
} : void 0,
|
|
672
|
-
o.$slots.optionTooltip ? {
|
|
673
|
-
name: "optionTooltip",
|
|
674
|
-
fn: d(() => [
|
|
675
|
-
f(o.$slots, "optionTooltip", {}, void 0, !0)
|
|
676
|
-
]),
|
|
677
|
-
key: "1"
|
|
678
|
-
} : void 0,
|
|
679
|
-
o.$slots.optionPdf ? {
|
|
680
|
-
name: "optionPdf",
|
|
681
|
-
fn: d(() => [
|
|
682
|
-
f(o.$slots, "optionPdf", {}, void 0, !0)
|
|
683
|
-
]),
|
|
684
|
-
key: "2"
|
|
685
|
-
} : void 0,
|
|
686
|
-
o.$slots.optionCsv ? {
|
|
687
|
-
name: "optionCsv",
|
|
688
|
-
fn: d(() => [
|
|
689
|
-
f(o.$slots, "optionCsv", {}, void 0, !0)
|
|
690
|
-
]),
|
|
691
|
-
key: "3"
|
|
692
|
-
} : void 0,
|
|
693
|
-
o.$slots.optionImg ? {
|
|
694
|
-
name: "optionImg",
|
|
695
|
-
fn: d(() => [
|
|
696
|
-
f(o.$slots, "optionImg", {}, void 0, !0)
|
|
697
|
-
]),
|
|
698
|
-
key: "4"
|
|
699
|
-
} : void 0,
|
|
700
|
-
o.$slots.optionSvg ? {
|
|
701
|
-
name: "optionSvg",
|
|
702
|
-
fn: d(() => [
|
|
703
|
-
f(o.$slots, "optionSvg", {}, void 0, !0)
|
|
704
|
-
]),
|
|
705
|
-
key: "5"
|
|
706
|
-
} : void 0,
|
|
707
|
-
o.$slots.optionTable ? {
|
|
708
|
-
name: "optionTable",
|
|
709
|
-
fn: d(() => [
|
|
710
|
-
f(o.$slots, "optionTable", {}, void 0, !0)
|
|
711
|
-
]),
|
|
712
|
-
key: "6"
|
|
713
|
-
} : void 0,
|
|
714
|
-
o.$slots.optionFullscreen ? {
|
|
715
|
-
name: "optionFullscreen",
|
|
716
|
-
fn: d(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
717
|
-
f(o.$slots, "optionFullscreen", M(B({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
718
|
-
]),
|
|
719
|
-
key: "7"
|
|
720
|
-
} : void 0,
|
|
721
|
-
o.$slots.optionAnnotator ? {
|
|
722
|
-
name: "optionAnnotator",
|
|
723
|
-
fn: d(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
724
|
-
f(o.$slots, "optionAnnotator", M(B({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
725
|
-
]),
|
|
726
|
-
key: "8"
|
|
727
|
-
} : void 0
|
|
728
|
-
]), 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"])) : T("", !0),
|
|
729
|
-
(c(), y("svg", {
|
|
730
|
-
ref_key: "svgRef",
|
|
731
|
-
ref: Le,
|
|
732
|
-
xmlns: r(wo),
|
|
733
|
-
viewBox: `0 0 ${ne.value.width} ${ne.value.height}`,
|
|
734
|
-
class: Ot({
|
|
735
|
-
"vue-data-ui-fullscreen--on": V.value,
|
|
736
|
-
"vue-data-ui-fulscreen--off": !V.value
|
|
737
|
-
}),
|
|
738
|
-
style: U({
|
|
739
|
-
maxWidth: "100%",
|
|
740
|
-
overflow: "visible",
|
|
741
|
-
background: "transparent",
|
|
742
|
-
color: e.value.style.chart.color
|
|
743
|
-
})
|
|
744
|
-
}, [
|
|
745
|
-
Oe(r(Gt)),
|
|
746
|
-
o.$slots["chart-background"] ? (c(), y("foreignObject", {
|
|
747
|
-
key: 0,
|
|
748
|
-
x: 0,
|
|
749
|
-
y: 0,
|
|
750
|
-
width: ne.value.width,
|
|
751
|
-
height: ne.value.height,
|
|
752
|
-
style: {
|
|
753
|
-
pointerEvents: "none"
|
|
754
|
-
}
|
|
755
|
-
}, [
|
|
756
|
-
f(o.$slots, "chart-background", {}, void 0, !0)
|
|
757
|
-
], 8, Yo)) : T("", !0),
|
|
758
|
-
Y("defs", null, [
|
|
759
|
-
(c(!0), y(de, null, he(O.value.links, (t, a) => (c(), y("linearGradient", {
|
|
760
|
-
id: t.id,
|
|
761
|
-
x1: "0%",
|
|
762
|
-
y1: "0%",
|
|
763
|
-
x2: "100%",
|
|
764
|
-
y2: "0%"
|
|
765
|
-
}, [
|
|
766
|
-
Y("stop", {
|
|
767
|
-
offset: "0%",
|
|
768
|
-
"stop-color": t.sourceColor
|
|
769
|
-
}, null, 8, Vo),
|
|
770
|
-
Y("stop", {
|
|
771
|
-
offset: "100%",
|
|
772
|
-
"stop-color": t.targetColor
|
|
773
|
-
}, null, 8, Xo)
|
|
774
|
-
], 8, jo))), 256))
|
|
775
|
-
]),
|
|
776
|
-
(c(!0), y(de, null, he(O.value.links, (t) => (c(), y("path", {
|
|
777
|
-
class: "vue-ui-flow-link",
|
|
778
|
-
d: t.path,
|
|
779
|
-
"stroke-linejoin": "round",
|
|
780
|
-
"stroke-miterlimit": "1",
|
|
781
|
-
fill: `url(#${t.id})`,
|
|
782
|
-
stroke: e.value.style.chart.links.stroke,
|
|
783
|
-
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
784
|
-
style: U(`
|
|
785
|
-
opacity:${w.value ? w.value.includes(t.source) && w.value.includes(t.target) ? 1 : 0.3 : Q.value ? [t.target, t.source].includes(Q.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
786
|
-
`)
|
|
787
|
-
}, null, 12, qo))), 256)),
|
|
788
|
-
(c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("rect", {
|
|
789
|
-
class: "vue-ui-flow-node",
|
|
790
|
-
x: t.x,
|
|
791
|
-
y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
|
|
792
|
-
height: r(x)(t.height),
|
|
793
|
-
width: ye.value,
|
|
794
|
-
fill: t.color,
|
|
795
|
-
stroke: e.value.style.chart.nodes.stroke,
|
|
796
|
-
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
797
|
-
rx: e.value.style.chart.nodes.borderRadius,
|
|
798
|
-
style: U({
|
|
799
|
-
opacity: w.value ? w.value.includes(t.name) ? 1 : 0.3 : 1,
|
|
800
|
-
outline: Ce.value !== null && Ce.value === t.id ? "2px solid currentColor" : void 0
|
|
801
|
-
}),
|
|
802
|
-
role: "button",
|
|
803
|
-
tabindex: "0",
|
|
804
|
-
"aria-label": `${t.name}: ${r(Ne)(
|
|
805
|
-
e.value.style.chart.nodes.labels.formatter,
|
|
806
|
-
t.value,
|
|
807
|
-
r(te)({
|
|
808
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
809
|
-
v: t.value,
|
|
810
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
811
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
812
|
-
})
|
|
813
|
-
)}`,
|
|
814
|
-
onMouseenter: (s) => yt(t, a),
|
|
815
|
-
onMouseleave: (s) => ke(a),
|
|
816
|
-
onClick: (s) => Re(a),
|
|
817
|
-
onKeydown: [
|
|
818
|
-
qe(Ke((s) => Re(a), ["prevent"]), ["enter"]),
|
|
819
|
-
qe(Ke((s) => Re(a), ["prevent"]), ["space"]),
|
|
820
|
-
qe(Ke((s) => ke(a), ["prevent"]), ["esc"])
|
|
821
|
-
],
|
|
822
|
-
onFocus: (s) => no(t, a),
|
|
823
|
-
onBlur: (s) => ke(a)
|
|
824
|
-
}, null, 44, Ko))), 256)),
|
|
825
|
-
e.value.style.chart.nodes.labels.show ? (c(), y("g", Jo, [
|
|
826
|
-
(c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("text", {
|
|
827
|
-
x: t.x + ye.value / 2,
|
|
828
|
-
y: r(x)(
|
|
829
|
-
t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
830
|
-
) + e.value.style.chart.padding.top,
|
|
831
|
-
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
832
|
-
fill: r(It)(t.color),
|
|
833
|
-
"text-anchor": "middle",
|
|
834
|
-
style: U(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
835
|
-
}, fe(e.value.style.chart.nodes.labels.abbreviation.use ? r($o)({
|
|
836
|
-
source: t.name,
|
|
837
|
-
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
838
|
-
}) : t.name), 13, Qo))), 256)),
|
|
839
|
-
(c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("text", {
|
|
840
|
-
x: t.x + ye.value / 2,
|
|
841
|
-
y: r(x)(
|
|
842
|
-
t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
843
|
-
) + e.value.style.chart.padding.top,
|
|
844
|
-
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
845
|
-
fill: r(It)(t.color),
|
|
846
|
-
"text-anchor": "middle",
|
|
847
|
-
style: U(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
848
|
-
}, fe(r(Ne)(
|
|
849
|
-
e.value.style.chart.nodes.labels.formatter,
|
|
850
|
-
t.value,
|
|
851
|
-
r(te)({
|
|
852
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
853
|
-
v: t.value,
|
|
854
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
855
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
856
|
-
}),
|
|
857
|
-
{ datapoint: t, seriesIndex: a }
|
|
858
|
-
)), 13, Zo))), 256))
|
|
859
|
-
])) : T("", !0),
|
|
860
|
-
f(o.$slots, "svg", { svg: ne.value }, void 0, !0)
|
|
861
|
-
], 14, Uo)),
|
|
862
|
-
o.$slots.watermark ? (c(), y("div", el, [
|
|
863
|
-
f(o.$slots, "watermark", M(B({ isPrinting: r(ct) || r(vt) })), void 0, !0)
|
|
864
|
-
])) : T("", !0),
|
|
865
|
-
Y("div", {
|
|
866
|
-
id: `legend-bottom-${j.value}`
|
|
867
|
-
}, null, 8, tl),
|
|
868
|
-
ot.value ? (c(), J(fo, {
|
|
869
|
-
key: 5,
|
|
870
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
871
|
-
}, [
|
|
872
|
-
Y("div", {
|
|
873
|
-
ref_key: "chartLegend",
|
|
874
|
-
ref: Ze
|
|
875
|
-
}, [
|
|
876
|
-
e.value.style.chart.legend.show && Ge.value.length ? (c(), J(Do, {
|
|
877
|
-
key: 0,
|
|
878
|
-
legendSet: Ge.value,
|
|
879
|
-
config: Jt.value,
|
|
880
|
-
onClickMarker: l[0] || (l[0] = (t) => Ue(t))
|
|
881
|
-
}, {
|
|
882
|
-
item: d(({ legend: t, index: a }) => [
|
|
883
|
-
r(Me) ? T("", !0) : (c(), y("div", {
|
|
884
|
-
key: 0,
|
|
885
|
-
onClick: (s) => t.segregate(),
|
|
886
|
-
style: U(`opacity:${X.value.length ? X.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
887
|
-
}, fe(t.display), 13, ol))
|
|
888
|
-
]),
|
|
889
|
-
_: 1
|
|
890
|
-
}, 8, ["legendSet", "config"])) : T("", !0),
|
|
891
|
-
f(o.$slots, "legend", { legend: wt.value }, void 0, !0)
|
|
892
|
-
], 512)
|
|
893
|
-
], 8, ["to"])) : T("", !0),
|
|
894
|
-
o.$slots.source ? (c(), y("div", {
|
|
895
|
-
key: 6,
|
|
896
|
-
ref_key: "source",
|
|
897
|
-
ref: tt,
|
|
898
|
-
dir: "auto"
|
|
899
|
-
}, [
|
|
900
|
-
f(o.$slots, "source", {}, void 0, !0)
|
|
901
|
-
], 512)) : T("", !0),
|
|
902
|
-
Oe(r(Dt), {
|
|
903
|
-
ref_key: "tooltip",
|
|
904
|
-
ref: Pe,
|
|
905
|
-
show: S.value.showTooltip && Fe.value,
|
|
906
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
907
|
-
color: e.value.style.chart.tooltip.color,
|
|
908
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
909
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
910
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
911
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
912
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
913
|
-
position: e.value.style.chart.tooltip.position,
|
|
914
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
915
|
-
parent: I.value,
|
|
916
|
-
content: Ee.value,
|
|
917
|
-
isCustom: be.value,
|
|
918
|
-
isFullscreen: V.value,
|
|
919
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
920
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
921
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
922
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
923
|
-
}, {
|
|
924
|
-
"tooltip-before": d(() => [
|
|
925
|
-
f(o.$slots, "tooltip-before", M(B({ ...se.value })), void 0, !0)
|
|
926
|
-
]),
|
|
927
|
-
"tooltip-after": d(() => [
|
|
928
|
-
f(o.$slots, "tooltip-after", M(B({ ...se.value })), void 0, !0)
|
|
929
|
-
]),
|
|
930
|
-
_: 3
|
|
931
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
932
|
-
lt.value && e.value.userOptions.buttons.table ? (c(), J(po(re.value.component), go({ key: 7 }, re.value.props, {
|
|
933
|
-
ref_key: "tableUnit",
|
|
934
|
-
ref: le,
|
|
935
|
-
onClose: $t
|
|
936
|
-
}), _t({
|
|
937
|
-
content: d(() => [
|
|
938
|
-
Oe(r(Rt), {
|
|
939
|
-
colNames: we.value.colNames,
|
|
940
|
-
head: we.value.head,
|
|
941
|
-
body: we.value.body,
|
|
942
|
-
config: we.value.config,
|
|
943
|
-
title: e.value.table.useDialog ? "" : re.value.title,
|
|
944
|
-
withCloseButton: !e.value.table.useDialog,
|
|
945
|
-
onClose: $t
|
|
946
|
-
}, {
|
|
947
|
-
th: d(({ th: t }) => [
|
|
948
|
-
Y("div", {
|
|
949
|
-
innerHTML: t,
|
|
950
|
-
style: { display: "flex", "align-items": "center" }
|
|
951
|
-
}, null, 8, ll)
|
|
952
|
-
]),
|
|
953
|
-
td: d(({ td: t }) => [
|
|
954
|
-
Nt(fe(t.name || t), 1)
|
|
955
|
-
]),
|
|
956
|
-
_: 1
|
|
957
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
958
|
-
]),
|
|
959
|
-
_: 2
|
|
960
|
-
}, [
|
|
961
|
-
e.value.table.useDialog ? {
|
|
962
|
-
name: "title",
|
|
963
|
-
fn: d(() => [
|
|
964
|
-
Nt(fe(re.value.title), 1)
|
|
965
|
-
]),
|
|
966
|
-
key: "0"
|
|
967
|
-
} : void 0,
|
|
968
|
-
e.value.table.useDialog ? {
|
|
969
|
-
name: "actions",
|
|
970
|
-
fn: d(() => [
|
|
971
|
-
Y("button", {
|
|
972
|
-
tabindex: "0",
|
|
973
|
-
class: "vue-ui-user-options-button",
|
|
974
|
-
onClick: l[1] || (l[1] = (t) => He(e.value.userOptions.callbacks.csv))
|
|
975
|
-
}, [
|
|
976
|
-
Oe(r(Lt), {
|
|
977
|
-
name: "excel",
|
|
978
|
-
stroke: re.value.props.color
|
|
979
|
-
}, null, 8, ["stroke"])
|
|
980
|
-
])
|
|
981
|
-
]),
|
|
982
|
-
key: "1"
|
|
983
|
-
} : void 0
|
|
984
|
-
]), 1040)) : T("", !0),
|
|
985
|
-
r(Me) ? (c(), J(Eo, { key: 8 })) : T("", !0)
|
|
986
|
-
], 46, Ho));
|
|
987
|
-
}
|
|
988
|
-
}, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-dc61c391"]]);
|
|
989
|
-
export {
|
|
990
|
-
bl as default
|
|
991
|
-
};
|