vue-data-ui 2.4.57 → 2.4.59
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 +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as Ve, o as Be, e as je, c as
|
|
3
|
-
import { _ as et } from "./Title-
|
|
4
|
-
import { u as tt, U as ot } from "./usePrinter-
|
|
5
|
-
import { D as lt } from "./DataTable-
|
|
6
|
-
import at from "./vue-ui-accordion-
|
|
7
|
-
import nt from "./vue-ui-skeleton-
|
|
8
|
-
import { u as Ce } from "./useNestedProp-
|
|
9
|
-
import { _ as st } from "./PackageVersion-
|
|
10
|
-
import { P as rt } from "./PenAndPaper-
|
|
1
|
+
import { computed as p, onMounted as ze, ref as b, watch as Ye, openBlock as u, createElementBlock as c, normalizeClass as me, normalizeStyle as x, unref as i, createBlock as P, createCommentVNode as k, createSlots as De, withCtx as w, renderSlot as m, normalizeProps as W, guardReactiveProps as q, createVNode as ye, createElementVNode as M, Fragment as F, renderList as I, toDisplayString as R, createTextVNode as Ge, nextTick as Ue } from "vue";
|
|
2
|
+
import { u as Ve, o as Be, e as je, c as be, t as Xe, a as We, p as Z, b as qe, v as h, f as ke, X as Re, G as we, L as Ze, i as Je, q as Ke, r as Qe } from "./index-B9RAElpI.js";
|
|
3
|
+
import { _ as et } from "./Title-zZtEcB9F.js";
|
|
4
|
+
import { u as tt, U as ot } from "./usePrinter-CwTAwqtF.js";
|
|
5
|
+
import { D as lt } from "./DataTable-CFUKU8PU.js";
|
|
6
|
+
import at from "./vue-ui-accordion-rNA598L6.js";
|
|
7
|
+
import nt from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
8
|
+
import { u as Ce } from "./useNestedProp-DuruL3Nt.js";
|
|
9
|
+
import { _ as st } from "./PackageVersion-C_FFs0BP.js";
|
|
10
|
+
import { P as rt } from "./PenAndPaper-Dx24BtRW.js";
|
|
11
11
|
import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const ct = ["id"], dt = {
|
|
@@ -18,14 +18,14 @@ const ct = ["id"], dt = {
|
|
|
18
18
|
}, vt = {
|
|
19
19
|
key: 2,
|
|
20
20
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
21
|
-
},
|
|
21
|
+
}, ht = ["xmlns", "viewBox"], ft = ["width", "height"], pt = ["id"], gt = ["stop-color"], mt = ["stop-color"], yt = ["d", "fill", "stroke", "stroke-width"], bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], kt = ["x", "y", "font-size", "fill"], wt = ["x", "y", "font-size", "fill"], Ct = {
|
|
22
22
|
key: 4,
|
|
23
23
|
class: "vue-data-ui-watermark"
|
|
24
|
-
},
|
|
24
|
+
}, $t = {
|
|
25
25
|
key: 6,
|
|
26
26
|
ref: "source",
|
|
27
27
|
dir: "auto"
|
|
28
|
-
},
|
|
28
|
+
}, xt = ["innerHTML"], _t = {
|
|
29
29
|
__name: "vue-ui-flow",
|
|
30
30
|
props: {
|
|
31
31
|
config: {
|
|
@@ -42,55 +42,55 @@ const ct = ["id"], dt = {
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
setup($e, { expose: xe }) {
|
|
45
|
-
const
|
|
45
|
+
const g = $e, { vue_ui_flow: _e } = Ve(), z = p(() => !!g.dataset && g.dataset.length);
|
|
46
46
|
ze(() => {
|
|
47
47
|
J();
|
|
48
48
|
});
|
|
49
49
|
function J() {
|
|
50
|
-
Be(
|
|
50
|
+
Be(g.dataset) && je({
|
|
51
51
|
componentName: "VueUiFlow",
|
|
52
52
|
type: "dataset"
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const Y = b(be()), D = b(null), K = b(0), Q = b(0), T = b(!1);
|
|
56
56
|
function Ne(t) {
|
|
57
57
|
T.value = t, K.value += 1;
|
|
58
58
|
}
|
|
59
|
-
const e =
|
|
59
|
+
const e = p({
|
|
60
60
|
get: () => oe(),
|
|
61
61
|
set: (t) => t
|
|
62
|
-
}), { userOptionsVisible:
|
|
62
|
+
}), { userOptionsVisible: G, setUserOptionsVisibility: ee, keepUserOptionState: te } = ut({ config: e.value });
|
|
63
63
|
function oe() {
|
|
64
64
|
const t = Ce({
|
|
65
|
-
userConfig:
|
|
65
|
+
userConfig: g.config,
|
|
66
66
|
defaultConfig: _e
|
|
67
67
|
});
|
|
68
68
|
return t.theme ? {
|
|
69
69
|
...Ce({
|
|
70
|
-
userConfig: Xe.vue_ui_flow[t.theme] ||
|
|
70
|
+
userConfig: Xe.vue_ui_flow[t.theme] || g.config,
|
|
71
71
|
defaultConfig: t
|
|
72
72
|
}),
|
|
73
73
|
customPalette: We[t.theme] || Z
|
|
74
74
|
} : t;
|
|
75
75
|
}
|
|
76
|
-
Ye(() =>
|
|
77
|
-
e.value = oe(),
|
|
76
|
+
Ye(() => g.config, (t) => {
|
|
77
|
+
e.value = oe(), G.value = !e.value.showOnChartHover, J(), Q.value += 1;
|
|
78
78
|
}, { deep: !0 });
|
|
79
79
|
const { isPrinting: le, isImaging: ae, generatePdf: ne, generateImage: se } = tt({
|
|
80
|
-
elementId: `flow_${
|
|
80
|
+
elementId: `flow_${Y.value}`,
|
|
81
81
|
fileName: e.value.style.chart.title.text || "vue-ui-flow"
|
|
82
|
-
}), Te =
|
|
82
|
+
}), Te = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), U = p(() => qe(e.value.customPalette)), re = p(() => e.value.style.chart.nodes.gap), _ = p(() => e.value.style.chart.nodes.width), L = b({
|
|
83
83
|
showTable: e.value.table.show
|
|
84
|
-
}), ue =
|
|
84
|
+
}), ue = p(() => e.value.style.chart.links.width), V = p(() => !g.dataset || !g.dataset.length ? [] : g.dataset.map((t) => [
|
|
85
85
|
t[0],
|
|
86
86
|
t[1],
|
|
87
|
-
|
|
88
|
-
])), ie =
|
|
87
|
+
h(t[2])
|
|
88
|
+
])), ie = p(() => {
|
|
89
89
|
const t = {};
|
|
90
90
|
function l(n) {
|
|
91
91
|
t[n] || (t[n] = { inflow: 0, outflow: 0 });
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
V.value.forEach(([n, a, v]) => {
|
|
94
94
|
l(n), l(a), t[n].outflow += v, t[a].inflow += v;
|
|
95
95
|
});
|
|
96
96
|
let o = 0;
|
|
@@ -112,50 +112,50 @@ const ct = ["id"], dt = {
|
|
|
112
112
|
function n(s, r) {
|
|
113
113
|
l[s] || (l[s] = { height: 0, level: null, inflow: 0, outflow: 0 }), l[s].level === null && (l[s].level = r), o[r] || (o[r] = []), o[r].includes(s) || o[r].push(s);
|
|
114
114
|
}
|
|
115
|
-
t.forEach(([s, r,
|
|
116
|
-
const $ = l[s] ? l[s].level : 0,
|
|
117
|
-
n(s, $), n(r,
|
|
115
|
+
t.forEach(([s, r, f], N) => {
|
|
116
|
+
const $ = l[s] ? l[s].level : 0, E = $ + 1;
|
|
117
|
+
n(s, $), n(r, E), l[s].children || (l[s].children = []), l[s].children.push({ target: r, value: f }), l[s].outflow += f, l[r].inflow += f;
|
|
118
118
|
}), Object.keys(l).forEach((s, r) => {
|
|
119
|
-
l[s].color =
|
|
119
|
+
l[s].color = U.value[r] || U.value[r % U.value.length] || Z[r] || Z[r % d.length];
|
|
120
120
|
});
|
|
121
121
|
for (const s in l)
|
|
122
122
|
l[s].height = Oe(Math.max(l[s].inflow, l[s].outflow)), l[s].name = s;
|
|
123
123
|
const a = {};
|
|
124
124
|
for (const s in o) {
|
|
125
125
|
let r = 0;
|
|
126
|
-
o[s].forEach((
|
|
127
|
-
const $ = l[
|
|
128
|
-
a[
|
|
126
|
+
o[s].forEach((f, N) => {
|
|
127
|
+
const $ = l[f].height;
|
|
128
|
+
a[f] = {
|
|
129
129
|
x: parseInt(s, 10) * ue.value + e.value.style.chart.padding.left,
|
|
130
130
|
y: r,
|
|
131
131
|
absoluteY: r,
|
|
132
132
|
height: $,
|
|
133
133
|
i: N,
|
|
134
|
-
color: l[
|
|
134
|
+
color: l[f].color,
|
|
135
135
|
value: Pe($)
|
|
136
136
|
}, r += $ + re.value;
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
const v = [];
|
|
140
140
|
for (const s in l) {
|
|
141
|
-
let r = a[s].absoluteY;
|
|
142
|
-
l[s].children && l[s].children.forEach(({ target:
|
|
143
|
-
const
|
|
144
|
-
id:
|
|
141
|
+
let r = a[s].absoluteY + e.value.style.chart.padding.top;
|
|
142
|
+
l[s].children && l[s].children.forEach(({ target: f, value: N }, $) => {
|
|
143
|
+
const E = a[f].y + e.value.style.chart.padding.top, j = a[s], X = a[f], he = h(r), fe = h(r + N / l[s].outflow * j.height), pe = h(E), ge = h(E + N / l[f].inflow * X.height), Me = {
|
|
144
|
+
id: be(),
|
|
145
145
|
source: s,
|
|
146
|
-
target:
|
|
147
|
-
path: `M ${
|
|
146
|
+
target: f,
|
|
147
|
+
path: `M ${h(j.x) + h(_.value)} ${he} L ${h(j.x) + h(_.value)} ${fe} L ${h(X.x)} ${ge} L ${h(X.x)} ${pe} Z`,
|
|
148
148
|
value: N,
|
|
149
149
|
sourceColor: l[s].color,
|
|
150
|
-
targetColor: l[
|
|
150
|
+
targetColor: l[f].color
|
|
151
151
|
};
|
|
152
|
-
v.push(
|
|
152
|
+
v.push(Me), r += fe - he, a[f].y += ge - pe;
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
return { nodeCoordinates: a, links: v };
|
|
156
156
|
}
|
|
157
|
-
const
|
|
158
|
-
const t = Fe(
|
|
157
|
+
const y = p(() => {
|
|
158
|
+
const t = Fe(g.dataset);
|
|
159
159
|
return {
|
|
160
160
|
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
161
161
|
...t.nodeCoordinates[l],
|
|
@@ -163,7 +163,7 @@ const ct = ["id"], dt = {
|
|
|
163
163
|
})),
|
|
164
164
|
links: t.links
|
|
165
165
|
};
|
|
166
|
-
}), Ie =
|
|
166
|
+
}), Ie = p(() => Le(y.value.nodes));
|
|
167
167
|
function Le(t) {
|
|
168
168
|
const l = {};
|
|
169
169
|
for (const n in t) {
|
|
@@ -172,11 +172,11 @@ const ct = ["id"], dt = {
|
|
|
172
172
|
}
|
|
173
173
|
return Math.max(...Object.values(l));
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
const { top: t, right: l, left: o, bottom: n } = e.value.style.chart.padding, a =
|
|
175
|
+
const O = p(() => {
|
|
176
|
+
const { top: t, right: l, left: o, bottom: n } = e.value.style.chart.padding, a = V.value.length * ue.value;
|
|
177
177
|
return {
|
|
178
178
|
height: Ie.value + t + n,
|
|
179
|
-
width: l + Math.max(...
|
|
179
|
+
width: l + Math.max(...y.value.nodes.map((v) => v.x)) + _.value,
|
|
180
180
|
left: o,
|
|
181
181
|
top: t,
|
|
182
182
|
right: a - l,
|
|
@@ -186,18 +186,18 @@ const ct = ["id"], dt = {
|
|
|
186
186
|
});
|
|
187
187
|
function Ae(t) {
|
|
188
188
|
const l = {}, o = {}, n = /* @__PURE__ */ new Set();
|
|
189
|
-
return
|
|
189
|
+
return V.value.forEach(([a, v, s]) => {
|
|
190
190
|
l[a] || (l[a] = []), o[v] || (o[v] = []), l[a].push(v), o[v].push(a);
|
|
191
191
|
}), l[t] && l[t].forEach((a) => n.add(a)), o[t] && o[t].forEach((a) => n.add(a)), Array.from(n).concat(t);
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const C = b(null), A = b(null);
|
|
194
194
|
function He(t) {
|
|
195
|
-
|
|
195
|
+
C.value = Ae(t.name), A.value = t.name;
|
|
196
196
|
}
|
|
197
197
|
function Se() {
|
|
198
|
-
|
|
198
|
+
C.value = null, A.value = null;
|
|
199
199
|
}
|
|
200
|
-
const ce =
|
|
200
|
+
const ce = p(() => y.value.links.map(({ source: t, target: l, sourceColor: o, targetColor: n, value: a }) => ({
|
|
201
201
|
source: t,
|
|
202
202
|
target: l,
|
|
203
203
|
sourceColor: o,
|
|
@@ -225,7 +225,7 @@ const ct = ["id"], dt = {
|
|
|
225
225
|
});
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const H = p(() => {
|
|
229
229
|
const t = [
|
|
230
230
|
e.value.table.columnNames.source,
|
|
231
231
|
e.value.table.columnNames.target,
|
|
@@ -269,43 +269,43 @@ const ct = ["id"], dt = {
|
|
|
269
269
|
config: o
|
|
270
270
|
};
|
|
271
271
|
});
|
|
272
|
-
function
|
|
273
|
-
return
|
|
272
|
+
function Ee() {
|
|
273
|
+
return y.value;
|
|
274
274
|
}
|
|
275
275
|
function ve() {
|
|
276
|
-
|
|
276
|
+
L.value.showTable = !L.value.showTable;
|
|
277
277
|
}
|
|
278
|
-
const
|
|
278
|
+
const S = b(!1);
|
|
279
279
|
function B() {
|
|
280
|
-
|
|
280
|
+
S.value = !S.value;
|
|
281
281
|
}
|
|
282
282
|
return xe({
|
|
283
|
-
getData:
|
|
283
|
+
getData: Ee,
|
|
284
284
|
generateCsv: de,
|
|
285
285
|
generateImage: se,
|
|
286
286
|
generatePdf: ne,
|
|
287
287
|
toggleTable: ve,
|
|
288
288
|
toggleAnnotator: B
|
|
289
|
-
}), (t, l) => (
|
|
289
|
+
}), (t, l) => (u(), c("div", {
|
|
290
290
|
ref_key: "flowChart",
|
|
291
|
-
ref:
|
|
292
|
-
class:
|
|
291
|
+
ref: D,
|
|
292
|
+
class: me(`vue-ui-flow ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
293
293
|
style: x(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
294
|
-
id: `flow_${
|
|
295
|
-
onMouseenter: l[2] || (l[2] = () =>
|
|
296
|
-
onMouseleave: l[3] || (l[3] = () =>
|
|
294
|
+
id: `flow_${Y.value}`,
|
|
295
|
+
onMouseenter: l[2] || (l[2] = () => i(ee)(!0)),
|
|
296
|
+
onMouseleave: l[3] || (l[3] = () => i(ee)(!1))
|
|
297
297
|
}, [
|
|
298
|
-
e.value.userOptions.buttons.annotator ? (
|
|
298
|
+
e.value.userOptions.buttons.annotator ? (u(), P(rt, {
|
|
299
299
|
key: 0,
|
|
300
|
-
parent:
|
|
300
|
+
parent: D.value,
|
|
301
301
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
302
302
|
color: e.value.style.chart.color,
|
|
303
|
-
active:
|
|
303
|
+
active: S.value,
|
|
304
304
|
onClose: B
|
|
305
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
306
|
-
Te.value ? (
|
|
307
|
-
e.value.style.chart.title.text ? (
|
|
308
|
-
(
|
|
305
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : k("", !0),
|
|
306
|
+
Te.value ? (u(), c("div", dt, null, 512)) : k("", !0),
|
|
307
|
+
e.value.style.chart.title.text ? (u(), c("div", vt, [
|
|
308
|
+
(u(), P(et, {
|
|
309
309
|
key: `title_${Q.value}`,
|
|
310
310
|
config: {
|
|
311
311
|
title: {
|
|
@@ -318,15 +318,15 @@ const ct = ["id"], dt = {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}, null, 8, ["config"]))
|
|
321
|
-
])) :
|
|
322
|
-
e.value.userOptions.show &&
|
|
321
|
+
])) : k("", !0),
|
|
322
|
+
e.value.userOptions.show && z.value && (i(te) || i(G)) ? (u(), P(ot, {
|
|
323
323
|
ref: "details",
|
|
324
324
|
key: `user_option_${K.value}`,
|
|
325
325
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
326
326
|
color: e.value.style.chart.color,
|
|
327
|
-
isPrinting:
|
|
328
|
-
isImaging:
|
|
329
|
-
uid:
|
|
327
|
+
isPrinting: i(le),
|
|
328
|
+
isImaging: i(ae),
|
|
329
|
+
uid: Y.value,
|
|
330
330
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
331
331
|
hasXls: e.value.userOptions.buttons.csv,
|
|
332
332
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -334,72 +334,84 @@ const ct = ["id"], dt = {
|
|
|
334
334
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
335
335
|
isFullscreen: T.value,
|
|
336
336
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
337
|
-
chartElement:
|
|
337
|
+
chartElement: D.value,
|
|
338
338
|
position: e.value.userOptions.position,
|
|
339
339
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
340
|
-
isAnnotation:
|
|
340
|
+
isAnnotation: S.value,
|
|
341
341
|
onToggleFullscreen: Ne,
|
|
342
|
-
onGeneratePdf:
|
|
342
|
+
onGeneratePdf: i(ne),
|
|
343
343
|
onGenerateCsv: de,
|
|
344
|
-
onGenerateImage:
|
|
344
|
+
onGenerateImage: i(se),
|
|
345
345
|
onToggleTable: ve,
|
|
346
346
|
onToggleAnnotator: B,
|
|
347
347
|
style: x({
|
|
348
|
-
visibility:
|
|
348
|
+
visibility: i(te) ? i(G) ? "visible" : "hidden" : "visible"
|
|
349
349
|
})
|
|
350
350
|
}, De({ _: 2 }, [
|
|
351
351
|
t.$slots.optionPdf ? {
|
|
352
352
|
name: "optionPdf",
|
|
353
|
-
fn:
|
|
354
|
-
|
|
353
|
+
fn: w(() => [
|
|
354
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
355
355
|
]),
|
|
356
356
|
key: "0"
|
|
357
357
|
} : void 0,
|
|
358
358
|
t.$slots.optionCsv ? {
|
|
359
359
|
name: "optionCsv",
|
|
360
|
-
fn:
|
|
361
|
-
|
|
360
|
+
fn: w(() => [
|
|
361
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
362
362
|
]),
|
|
363
363
|
key: "1"
|
|
364
364
|
} : void 0,
|
|
365
365
|
t.$slots.optionImg ? {
|
|
366
366
|
name: "optionImg",
|
|
367
|
-
fn:
|
|
368
|
-
|
|
367
|
+
fn: w(() => [
|
|
368
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
369
369
|
]),
|
|
370
370
|
key: "2"
|
|
371
371
|
} : void 0,
|
|
372
372
|
t.$slots.optionTable ? {
|
|
373
373
|
name: "optionTable",
|
|
374
|
-
fn:
|
|
375
|
-
|
|
374
|
+
fn: w(() => [
|
|
375
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
376
376
|
]),
|
|
377
377
|
key: "3"
|
|
378
378
|
} : void 0,
|
|
379
379
|
t.$slots.optionFullscreen ? {
|
|
380
380
|
name: "optionFullscreen",
|
|
381
|
-
fn:
|
|
382
|
-
|
|
381
|
+
fn: w(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
382
|
+
m(t.$slots, "optionFullscreen", W(q({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
383
383
|
]),
|
|
384
384
|
key: "4"
|
|
385
385
|
} : void 0,
|
|
386
386
|
t.$slots.optionAnnotator ? {
|
|
387
387
|
name: "optionAnnotator",
|
|
388
|
-
fn:
|
|
389
|
-
|
|
388
|
+
fn: w(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
389
|
+
m(t.$slots, "optionAnnotator", W(q({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
390
390
|
]),
|
|
391
391
|
key: "5"
|
|
392
392
|
} : void 0
|
|
393
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
394
|
-
(
|
|
395
|
-
xmlns:
|
|
396
|
-
viewBox: `0 0 ${
|
|
397
|
-
class:
|
|
393
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
394
|
+
(u(), c("svg", {
|
|
395
|
+
xmlns: i(Re),
|
|
396
|
+
viewBox: `0 0 ${O.value.width} ${O.value.height}`,
|
|
397
|
+
class: me({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
398
398
|
style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
399
399
|
}, [
|
|
400
|
-
|
|
400
|
+
ye(st),
|
|
401
|
+
t.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
402
|
+
key: 0,
|
|
403
|
+
x: 0,
|
|
404
|
+
y: 0,
|
|
405
|
+
width: O.value.width,
|
|
406
|
+
height: O.value.height,
|
|
407
|
+
style: {
|
|
408
|
+
pointerEvents: "none"
|
|
409
|
+
}
|
|
410
|
+
}, [
|
|
411
|
+
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
412
|
+
], 8, ft)) : k("", !0),
|
|
401
413
|
M("defs", null, [
|
|
402
|
-
(
|
|
414
|
+
(u(!0), c(F, null, I(y.value.links, (o, n) => (u(), c("linearGradient", {
|
|
403
415
|
id: o.id,
|
|
404
416
|
x1: "0%",
|
|
405
417
|
y1: "0%",
|
|
@@ -409,66 +421,66 @@ const ct = ["id"], dt = {
|
|
|
409
421
|
M("stop", {
|
|
410
422
|
offset: "0%",
|
|
411
423
|
"stop-color": o.sourceColor
|
|
412
|
-
}, null, 8,
|
|
424
|
+
}, null, 8, gt),
|
|
413
425
|
M("stop", {
|
|
414
426
|
offset: "100%",
|
|
415
427
|
"stop-color": o.targetColor
|
|
416
|
-
}, null, 8,
|
|
417
|
-
], 8,
|
|
428
|
+
}, null, 8, mt)
|
|
429
|
+
], 8, pt))), 256))
|
|
418
430
|
]),
|
|
419
|
-
(
|
|
431
|
+
(u(!0), c(F, null, I(y.value.links, (o) => (u(), c("path", {
|
|
420
432
|
class: "vue-ui-flow-link",
|
|
421
433
|
d: o.path,
|
|
422
434
|
fill: `url(#${o.id})`,
|
|
423
435
|
stroke: e.value.style.chart.links.stroke,
|
|
424
436
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
425
|
-
style: x(`opacity:${
|
|
426
|
-
}, null, 12,
|
|
427
|
-
(
|
|
437
|
+
style: x(`opacity:${A.value ? [o.target, o.source].includes(A.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
|
|
438
|
+
}, null, 12, yt))), 256)),
|
|
439
|
+
(u(!0), c(F, null, I(y.value.nodes, (o, n) => (u(), c("rect", {
|
|
428
440
|
class: "vue-ui-flow-node",
|
|
429
441
|
x: o.x,
|
|
430
|
-
y:
|
|
431
|
-
height:
|
|
442
|
+
y: i(h)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
443
|
+
height: i(h)(o.height),
|
|
432
444
|
width: _.value,
|
|
433
445
|
fill: o.color,
|
|
434
446
|
stroke: e.value.style.chart.nodes.stroke,
|
|
435
447
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
436
448
|
onMouseenter: (a) => He(o),
|
|
437
449
|
onMouseleave: l[0] || (l[0] = (a) => Se()),
|
|
438
|
-
style: x(`opacity:${
|
|
450
|
+
style: x(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.2 : 1}`)
|
|
439
451
|
}, null, 44, bt))), 256)),
|
|
440
|
-
(
|
|
452
|
+
(u(!0), c(F, null, I(y.value.nodes, (o, n) => (u(), c("text", {
|
|
441
453
|
x: o.x + _.value / 2,
|
|
442
|
-
y:
|
|
454
|
+
y: i(h)(o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4) + e.value.style.chart.padding.top,
|
|
443
455
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
444
|
-
fill:
|
|
456
|
+
fill: i(we)(o.color),
|
|
445
457
|
"text-anchor": "middle",
|
|
446
|
-
style: x(`pointer-events: none; opacity:${
|
|
447
|
-
}, R(e.value.style.chart.nodes.labels.abbreviation.use ?
|
|
448
|
-
(
|
|
458
|
+
style: x(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
459
|
+
}, R(e.value.style.chart.nodes.labels.abbreviation.use ? i(Ze)({ source: o.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : o.name), 13, kt))), 256)),
|
|
460
|
+
(u(!0), c(F, null, I(y.value.nodes, (o, n) => (u(), c("text", {
|
|
449
461
|
x: o.x + _.value / 2,
|
|
450
|
-
y:
|
|
462
|
+
y: i(h)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize) + e.value.style.chart.padding.top,
|
|
451
463
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
452
|
-
fill:
|
|
464
|
+
fill: i(we)(o.color),
|
|
453
465
|
"text-anchor": "middle",
|
|
454
|
-
style: x(`pointer-events: none; opacity:${
|
|
455
|
-
}, R(
|
|
466
|
+
style: x(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
467
|
+
}, R(i(Je)(
|
|
456
468
|
e.value.style.chart.nodes.labels.formatter,
|
|
457
469
|
o.value,
|
|
458
|
-
|
|
470
|
+
i(ke)({
|
|
459
471
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
460
472
|
v: o.value,
|
|
461
473
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
462
474
|
r: e.value.style.chart.nodes.labels.rounding
|
|
463
475
|
}),
|
|
464
476
|
{ datapoint: o, seriesIndex: n }
|
|
465
|
-
)), 13,
|
|
466
|
-
|
|
467
|
-
], 14,
|
|
468
|
-
t.$slots.watermark ? (
|
|
469
|
-
|
|
470
|
-
])) :
|
|
471
|
-
|
|
477
|
+
)), 13, wt))), 256)),
|
|
478
|
+
m(t.$slots, "svg", { svg: O.value }, void 0, !0)
|
|
479
|
+
], 14, ht)),
|
|
480
|
+
t.$slots.watermark ? (u(), c("div", Ct, [
|
|
481
|
+
m(t.$slots, "watermark", W(q({ isPrinting: i(le) || i(ae) })), void 0, !0)
|
|
482
|
+
])) : k("", !0),
|
|
483
|
+
z.value ? k("", !0) : (u(), P(nt, {
|
|
472
484
|
key: 5,
|
|
473
485
|
config: {
|
|
474
486
|
type: "flow",
|
|
@@ -477,14 +489,14 @@ const ct = ["id"], dt = {
|
|
|
477
489
|
}
|
|
478
490
|
}
|
|
479
491
|
}, null, 8, ["config"])),
|
|
480
|
-
t.$slots.source ? (
|
|
481
|
-
|
|
482
|
-
], 512)) :
|
|
483
|
-
|
|
492
|
+
t.$slots.source ? (u(), c("div", $t, [
|
|
493
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
494
|
+
], 512)) : k("", !0),
|
|
495
|
+
z.value ? (u(), P(at, {
|
|
484
496
|
key: 7,
|
|
485
497
|
hideDetails: "",
|
|
486
498
|
config: {
|
|
487
|
-
open:
|
|
499
|
+
open: L.value.showTable,
|
|
488
500
|
maxHeight: 1e4,
|
|
489
501
|
body: {
|
|
490
502
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -496,32 +508,32 @@ const ct = ["id"], dt = {
|
|
|
496
508
|
}
|
|
497
509
|
}
|
|
498
510
|
}, {
|
|
499
|
-
content:
|
|
500
|
-
|
|
501
|
-
colNames:
|
|
502
|
-
head:
|
|
503
|
-
body:
|
|
504
|
-
config:
|
|
511
|
+
content: w(() => [
|
|
512
|
+
ye(lt, {
|
|
513
|
+
colNames: H.value.colNames,
|
|
514
|
+
head: H.value.head,
|
|
515
|
+
body: H.value.body,
|
|
516
|
+
config: H.value.config,
|
|
505
517
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
506
|
-
onClose: l[1] || (l[1] = (o) =>
|
|
518
|
+
onClose: l[1] || (l[1] = (o) => L.value.showTable = !1)
|
|
507
519
|
}, {
|
|
508
|
-
th:
|
|
520
|
+
th: w(({ th: o }) => [
|
|
509
521
|
M("div", {
|
|
510
522
|
innerHTML: o,
|
|
511
523
|
style: { display: "flex", "align-items": "center" }
|
|
512
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, xt)
|
|
513
525
|
]),
|
|
514
|
-
td:
|
|
526
|
+
td: w(({ td: o }) => [
|
|
515
527
|
Ge(R(o.name || o), 1)
|
|
516
528
|
]),
|
|
517
529
|
_: 1
|
|
518
530
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
519
531
|
]),
|
|
520
532
|
_: 1
|
|
521
|
-
}, 8, ["config"])) :
|
|
533
|
+
}, 8, ["config"])) : k("", !0)
|
|
522
534
|
], 46, ct));
|
|
523
535
|
}
|
|
524
|
-
},
|
|
536
|
+
}, zt = /* @__PURE__ */ it(_t, [["__scopeId", "data-v-02e90f12"]]);
|
|
525
537
|
export {
|
|
526
|
-
|
|
538
|
+
zt as default
|
|
527
539
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DaDv7p0W.cjs"),ke=require("./Title-CpfNWbUc.cjs"),te=require("./usePrinter-BIHu0O5X.cjs"),ye=require("./DataTable-BHCbVv8x.cjs"),be=require("./vue-ui-accordion-6Clt339w.cjs"),we=require("./vue-ui-skeleton-B24XJJ2p.cjs"),oe=require("./useNestedProp-DkpuL8Iv.cjs"),Ce=require("./PackageVersion-nr7f_VNw.cjs"),Ne=require("./PenAndPaper-C9v0NXEg.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],_e={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Ee=["xmlns","viewBox"],Pe=["width","height"],Te=["id"],Oe=["stop-color"],Fe=["stop-color"],Le=["d","fill","stroke","stroke-width"],Ve=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],ze=["x","y","font-size","fill"],Ie=["x","y","font-size","fill"],Ae={key:4,class:"vue-data-ui-watermark"},He={key:6,ref:"source",dir:"auto"},Me=["innerHTML"],qe={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(le,{expose:ne}){const h=le,{vue_ui_flow:ae}=s.useConfig(),$=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{V()});function V(){s.objectIsEmpty(h.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const _=e.ref(s.createUid()),S=e.ref(null),z=e.ref(0),I=e.ref(0),y=e.ref(!1);function re(o){y.value=o,z.value+=1}const t=e.computed({get:()=>M(),set:o=>o}),{userOptionsVisible:E,setUserOptionsVisibility:A,keepUserOptionState:H}=xe.useUserOptionState({config:t.value});function M(){const o=oe.useNestedProp({userConfig:h.config,defaultConfig:ae});return o.theme?{...oe.useNestedProp({userConfig:s.themes.vue_ui_flow[o.theme]||h.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>h.config,o=>{t.value=M(),E.value=!t.value.showOnChartHover,V(),I.value+=1},{deep:!0});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:Y}=te.usePrinter({elementId:`flow_${_.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),se=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),G=e.computed(()=>t.value.style.chart.nodes.gap),g=e.computed(()=>t.value.style.chart.nodes.width),w=e.ref({showTable:t.value.table.show}),j=e.computed(()=>t.value.style.chart.links.width),T=e.computed(()=>!h.dataset||!h.dataset.length?[]:h.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),W=e.computed(()=>{const o={};function n(r){o[r]||(o[r]={inflow:0,outflow:0})}T.value.forEach(([r,a,c])=>{n(r),n(a),o[r].outflow+=c,o[a].inflow+=c});let l=0;for(const r in o){const a=Math.max(o[r].inflow,o[r].outflow);l=Math.max(l,a)}return l});function ue(o){return o/W.value*100+t.value.style.chart.nodes.minHeight}function ie(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*W.value}function ce(o){const n={},l={};function r(u,i){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=i),l[i]||(l[i]=[]),l[i].includes(u)||l[i].push(u)}o.forEach(([u,i,v],k)=>{const m=n[u]?n[u].level:0,B=m+1;r(u,m),r(i,B),n[u].children||(n[u].children=[]),n[u].children.push({target:i,value:v}),n[u].outflow+=v,n[i].inflow+=v}),Object.keys(n).forEach((u,i)=>{n[u].color=P.value[i]||P.value[i%P.value.length]||s.palette[i]||s.palette[i%d.length]});for(const u in n)n[u].height=ue(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const m=n[v].height;a[v]={x:parseInt(u,10)*j.value+t.value.style.chart.padding.left,y:i,absoluteY:i,height:m,i:k,color:n[v].color,value:ie(m)},i+=m+G.value})}const c=[];for(const u in n){let i=a[u].absoluteY+t.value.style.chart.padding.top;n[u].children&&n[u].children.forEach(({target:v,value:k},m)=>{const B=a[v].y+t.value.style.chart.padding.top,F=a[u],L=a[v],J=s.checkNaN(i),K=s.checkNaN(i+k/n[u].outflow*F.height),Q=s.checkNaN(B),ee=s.checkNaN(B+k/n[v].inflow*L.height),ge={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${J} L ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${K} L ${s.checkNaN(L.x)} ${ee} L ${s.checkNaN(L.x)} ${Q} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(ge),i+=K-J,a[v].y+=ee-Q})}return{nodeCoordinates:a,links:c}}const f=e.computed(()=>{const o=ce(h.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),de=e.computed(()=>ve(f.value.nodes));function ve(o){const n={};for(const r in o){const{x:a,height:c}=o[r];n[a]||(n[a]=0),n[a]+=c+G.value}return Math.max(...Object.values(n))}const b=e.computed(()=>{const{top:o,right:n,left:l,bottom:r}=t.value.style.chart.padding,a=T.value.length*j.value;return{height:de.value+o+r,width:n+Math.max(...f.value.nodes.map(c=>c.x))+g.value,left:l,top:o,right:a-n,p_top:o,p_bottom:r}});function he(o){const n={},l={},r=new Set;return T.value.forEach(([a,c,u])=>{n[a]||(n[a]=[]),l[c]||(l[c]=[]),n[a].push(c),l[c].push(a)}),n[o]&&n[o].forEach(a=>r.add(a)),l[o]&&l[o].forEach(a=>r.add(a)),Array.from(r).concat(o)}const p=e.ref(null),C=e.ref(null);function fe(o){p.value=he(o.name),C.value=o.name}function pe(){p.value=null,C.value=null}const X=e.computed(()=>f.value.links.map(({source:o,target:n,sourceColor:l,targetColor:r,value:a})=>({source:o,target:n,sourceColor:l,targetColor:r,value:a})));function R(){e.nextTick(()=>{const o=X.value.map((r,a)=>[[r.source],[r.target],[r.value]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.source],[t.value.table.columnNames.target],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const N=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=X.value.map((a,c)=>[{color:a.sourceColor,name:a.source},{color:a.targetColor,name:a.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:a.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding})]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],head:o,body:n,config:l}});function me(){return f.value}function Z(){w.value.showTable=!w.value.showTable}const x=e.ref(!1);function O(){x.value=!x.value}return ne({getData:me,generateCsv:R,generateImage:Y,generatePdf:U,toggleTable:Z,toggleAnnotator:O}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:S,class:e.normalizeClass(`vue-ui-flow ${y.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`flow_${_.value}`,onMouseenter:n[2]||(n[2]=()=>e.unref(A)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:S.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",_e,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${I.value}`,config:{title:{cy:"flow-title",...t.value.style.chart.title},subtitle:{cy:"flow-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(H)||e.unref(E))?(e.openBlock(),e.createBlock(te.UserOptions,{ref:"details",key:`user_option_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:_.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:S.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:R,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${b.value.width} ${b.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ce._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:b.value.width,height:b.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Pe)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:l.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.sourceColor},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Fe)],8,Te))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,l=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-flow-link",d:l.path,fill:`url(#${l.id})`,stroke:t.value.style.chart.links.stroke,"stroke-width":t.value.style.chart.links.strokeWidth,style:e.normalizeStyle(`opacity:${C.value?[l.target,l.source].includes(C.value)?1:.3:t.value.style.chart.links.opacity}`)},null,12,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY)+t.value.style.chart.padding.top,height:e.unref(s.checkNaN)(l.height),width:g.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:a=>fe(l),onMouseleave:n[0]||(n[0]=a=>pe()),style:e.normalizeStyle(`opacity:${p.value?p.value.includes(l.name)?1:.2:1}`)},null,44,Ve))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2-t.value.style.chart.nodes.labels.fontSize/4)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${p.value?p.value.includes(l.name)?1:0:1}`)},e.toDisplayString(t.value.style.chart.nodes.labels.abbreviation.use?e.unref(s.abbreviate)({source:l.name,length:t.value.style.chart.nodes.labels.abbreviation.length}):l.name),13,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2+t.value.style.chart.nodes.labels.fontSize)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${p.value?p.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:l.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:l,seriesIndex:r})),13,Ie))),256)),e.renderSlot(o.$slots,"svg",{svg:b.value},void 0,!0)],14,Ee)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createBlock(be.default,{key:7,hideDetails:"",config:{open:w.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(ye.DataTable,{colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=l=>w.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Me)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,$e))}},De=Be._export_sfc(qe,[["__scopeId","data-v-02e90f12"]]);exports.default=De;
|