vue-data-ui 2.3.84 → 2.3.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CLOh6oi7.cjs} +1 -1
- package/dist/{Arrow-CQ1ubni5.js → Arrow-JwDgP3de.js} +1 -1
- package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
- package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-BysUnfCR.js} +1 -1
- package/dist/{DataTable-C-iU_7h7.js → DataTable-MkG5Dqrn.js} +2 -2
- package/dist/{DataTable-CEtr89Og.cjs → DataTable-pVXaNplZ.cjs} +1 -1
- package/dist/{Legend-pU_BwhaW.js → Legend-KW7sTwN3.js} +1 -1
- package/dist/{Legend-D2ZBCCXe.cjs → Legend-k2mcTp7z.cjs} +1 -1
- package/dist/{Shape-CyM44biU.js → Shape-BFiZBf3X.js} +1 -1
- package/dist/{Shape-BO_KyCq8.cjs → Shape-COoEWeGM.cjs} +1 -1
- package/dist/{Slicer-CZobytqL.js → Slicer-CALc-Q4W.js} +2 -2
- package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-DCyxUSsn.cjs} +1 -1
- package/dist/{Title-B1_d29Eh.cjs → Title-BaKZYHEx.cjs} +1 -1
- package/dist/{Title-Bk3h09h9.js → Title-ISDbzCH8.js} +1 -1
- package/dist/{Tooltip-CdB80DsD.js → Tooltip-BHmMXOej.js} +1 -1
- package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
- package/dist/{index-DI4DaxVG.js → index-BiuHBtkZ.js} +1 -1
- package/dist/{index-Cx-40Fnz.cjs → index-D-vy9N1v.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
- package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-Ck5_RzLu.js} +1 -1
- package/dist/{usePrinter-D9bNzUQP.js → usePrinter-Do8KiK5h.js} +1 -1
- package/dist/{usePrinter-DbhL59iY.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
- package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-CAl2KJv9.js} +57 -57
- package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-CVYCyzY-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
- package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
- package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
- package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
- package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
- package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
- package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
- package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
- package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-B1xa5yua.js} +2 -2
- package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
- package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-BUpjWWnD.js} +2 -2
- package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
- package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
- package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
- package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
- package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
- package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
- package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-CGh_m922.js} +61 -61
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
- package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
- package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
- package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
- package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-B4zr_geL.js} +3 -3
- package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
- package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
- package/dist/{vue-ui-nested-donuts-C3CMWjgk.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
- package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-DQMLPe3M.js} +88 -88
- package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
- package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
- package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-B9TZPujK.js} +42 -42
- package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
- package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-B0pNsmGB.js} +2 -2
- package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
- package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
- package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
- package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-BuvFDBXg.js} +77 -77
- package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
- package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
- package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
- package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
- package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
- package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
- package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
- package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
- package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
- package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
- package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
- package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
- package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
- package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
- package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
- package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-328De4vk.cjs} +1 -1
- package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-CamkBCdL.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BnwiB4id.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
- package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
- package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-BPepr5eV.js} +4 -4
- package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
- package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
- package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
- package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-CWu43qLo.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
- package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
- package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
- package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
- package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
- package/dist/{vue-ui-word-cloud-D5JLdr9g.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
- package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-DgEdZz0O.js} +356 -361
- package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
- package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
- package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
- package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
- package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
- package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
- package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
- package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
- package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
- package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
- package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
- package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
- package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
- package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
- package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
- package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
- package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
- package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
- package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
- package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
- package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
- package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
- package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
- package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
- package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
- package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
- package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { computed as p, ref as y, watch as oe, onMounted as re, onBeforeUnmount as Le, openBlock as o, createElementBlock as r, normalizeClass as ne, normalizeStyle as
|
|
2
|
-
import { u as Se, c as de, t as Ae, o as Ne, e as ve, g as Te, v as he, C as Pe, f as z, X as ye, i as V, l as be, h as fe, q as Ge, r as De } from "./index-
|
|
1
|
+
import { computed as p, ref as y, watch as oe, onMounted as re, onBeforeUnmount as Le, openBlock as o, createElementBlock as r, normalizeClass as ne, normalizeStyle as E, createBlock as S, createCommentVNode as g, unref as d, createSlots as ze, withCtx as _, renderSlot as C, normalizeProps as ue, guardReactiveProps as ie, Fragment as w, renderList as $, createElementVNode as n, toDisplayString as L, createTextVNode as ce, nextTick as Xe } from "vue";
|
|
2
|
+
import { u as Se, c as de, t as Ae, o as Ne, e as ve, g as Te, v as he, C as Pe, f as z, X as ye, i as V, l as be, h as fe, q as Ge, r as De } from "./index-BiuHBtkZ.js";
|
|
3
3
|
import { t as Ie, u as Me } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Fe } from "./Title-
|
|
5
|
-
import { u as Oe, U as Ee } from "./usePrinter-
|
|
6
|
-
import { D as Ve } from "./DataTable-
|
|
7
|
-
import He from "./vue-ui-skeleton-
|
|
8
|
-
import { L as We } from "./Legend-
|
|
9
|
-
import Re from "./vue-ui-accordion-
|
|
10
|
-
import { u as ge } from "./useNestedProp-
|
|
4
|
+
import { _ as Fe } from "./Title-ISDbzCH8.js";
|
|
5
|
+
import { u as Oe, U as Ee } from "./usePrinter-Do8KiK5h.js";
|
|
6
|
+
import { D as Ve } from "./DataTable-MkG5Dqrn.js";
|
|
7
|
+
import He from "./vue-ui-skeleton-Du4zw-c1.js";
|
|
8
|
+
import { L as We } from "./Legend-KW7sTwN3.js";
|
|
9
|
+
import Re from "./vue-ui-accordion-D2fhyKpk.js";
|
|
10
|
+
import { u as ge } from "./useNestedProp-Ck5_RzLu.js";
|
|
11
11
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ze = { key: 1 }, Je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ke = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Qe = { key: 2 }, et = ["x", "y", "font-size", "fill", "font-weight"], tt = ["x", "y", "font-size", "fill"], lt = { key: 3 }, at = ["x", "y", "font-size", "fill", "font-weight"], st = ["id"], ot = ["stop-color"], rt = ["stop-color"], nt = ["stop-color"], ut = ["id"], it = ["stop-color"], ct = ["stop-color"], dt = ["stop-color"], vt = ["id"], ht = ["stop-color"], yt = ["stop-color"], bt = ["id"], ft = ["stop-color"], gt = ["stop-color"], mt = { key: 0 }, pt = ["d", "fill"], _t = { key: 1 }, xt = ["x", "y", "height", "width", "fill"], kt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ct = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], wt = { key: 2 }, $t = ["x", "y", "fill", "font-size"], Lt = { key: 3 }, zt = ["x", "y", "fill", "font-size"], Xt = {
|
|
13
13
|
key: 3,
|
|
@@ -103,10 +103,10 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
103
103
|
start: he(l.start),
|
|
104
104
|
end: he(l.end),
|
|
105
105
|
id: de()
|
|
106
|
-
}))),
|
|
106
|
+
}))), F = p(() => ({
|
|
107
107
|
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
108
108
|
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
109
|
-
})), c = p(() => Pe(
|
|
109
|
+
})), c = p(() => Pe(F.value.min < 0 ? F.value.min : 0, F.value.max, e.value.style.chart.grid.scaleSteps)), v = y(e.value.style.chart.rowHeight), A = y(e.value.style.chart.width), a = p(() => {
|
|
110
110
|
const l = v.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + A.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * m.dataset.length, s = c.value.ticks.length * (A.value / c.value.ticks.length);
|
|
111
111
|
return {
|
|
112
112
|
left: e.value.style.chart.padding.left,
|
|
@@ -145,12 +145,12 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
145
145
|
const t = x.value.map((s) => s.end - s.start);
|
|
146
146
|
l >= xe.value ? (cancelAnimationFrame(ee.value), b.value = D()) : (b.value = b.value.map((s, i) => {
|
|
147
147
|
s.endVal += t[i] * (e.value.animationSpeed / 100);
|
|
148
|
-
const f = a.value.left + (s.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * a.value.widthPlotReference, M = a.value.left + (s.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * a.value.widthPlotReference,
|
|
148
|
+
const f = a.value.left + (s.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * a.value.widthPlotReference, M = a.value.left + (s.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * a.value.widthPlotReference, O = f + (M - f) / 2;
|
|
149
149
|
return {
|
|
150
150
|
...s,
|
|
151
151
|
startX: f,
|
|
152
152
|
endX: M,
|
|
153
|
-
centerX:
|
|
153
|
+
centerX: O,
|
|
154
154
|
y: a.value.top + i * v.value + v.value / 2,
|
|
155
155
|
endVal: s.endVal
|
|
156
156
|
};
|
|
@@ -189,7 +189,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
189
189
|
v: k.value.body[f].start,
|
|
190
190
|
s: e.value.style.chart.labels.suffix,
|
|
191
191
|
r: e.value.table.td.roundingValue
|
|
192
|
-
}),
|
|
192
|
+
}), O = z({
|
|
193
193
|
p: e.value.style.chart.labels.prefix,
|
|
194
194
|
v: k.value.body[f].end,
|
|
195
195
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -202,7 +202,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
202
202
|
return [
|
|
203
203
|
{ name: i.name },
|
|
204
204
|
M,
|
|
205
|
-
|
|
205
|
+
O,
|
|
206
206
|
$e
|
|
207
207
|
];
|
|
208
208
|
}), t = {
|
|
@@ -258,14 +258,14 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
258
258
|
ref_key: "dumbbellChart",
|
|
259
259
|
ref: T,
|
|
260
260
|
class: ne(`vue-ui-dumbbell ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
261
|
-
style:
|
|
261
|
+
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
262
262
|
id: `dumbbell_${h.value}`
|
|
263
263
|
}, [
|
|
264
264
|
e.value.style.chart.title.text ? (o(), r("div", {
|
|
265
265
|
key: 0,
|
|
266
266
|
ref_key: "chartTitle",
|
|
267
267
|
ref: W,
|
|
268
|
-
style:
|
|
268
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
269
269
|
}, [
|
|
270
270
|
(o(), S(Fe, {
|
|
271
271
|
key: `title_${B.value}`,
|
|
@@ -280,7 +280,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
}, null, 8, ["config"]))
|
|
283
|
-
],
|
|
283
|
+
], 512)) : g("", !0),
|
|
284
284
|
e.value.userOptions.show && X.value ? (o(), S(Ee, {
|
|
285
285
|
ref: "details",
|
|
286
286
|
key: `user_option_${H.value}`,
|
|
@@ -344,7 +344,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
344
344
|
xmlns: d(ye),
|
|
345
345
|
class: ne({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
346
346
|
viewBox: `0 0 ${a.value.absoluteWidth <= 0 ? 10 : a.value.absoluteWidth} ${a.value.absoluteHeight <= 0 ? 10 : a.value.absoluteHeight}`,
|
|
347
|
-
style:
|
|
347
|
+
style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
348
348
|
}, [
|
|
349
349
|
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", qe, [
|
|
350
350
|
(o(!0), r(w, null, $(c.value.ticks, (t, s) => (o(), r("line", {
|
|
@@ -594,7 +594,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
594
594
|
}, {
|
|
595
595
|
item: _(({ legend: t }) => [
|
|
596
596
|
n("div", {
|
|
597
|
-
style:
|
|
597
|
+
style: E(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
598
598
|
}, [
|
|
599
599
|
(o(), r("svg", {
|
|
600
600
|
xmlns: d(ye),
|
|
@@ -660,7 +660,7 @@ const Ue = ["id"], je = ["xmlns", "viewBox"], qe = { key: 0 }, Ye = ["x1", "x2",
|
|
|
660
660
|
}, 8, ["config"])) : g("", !0)
|
|
661
661
|
], 14, Ue));
|
|
662
662
|
}
|
|
663
|
-
}, Bt = /* @__PURE__ */ Be(Tt, [["__scopeId", "data-v-
|
|
663
|
+
}, Bt = /* @__PURE__ */ Be(Tt, [["__scopeId", "data-v-0c1f63c0"]]);
|
|
664
664
|
export {
|
|
665
665
|
Bt as default
|
|
666
666
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { computed as m, onMounted as Le, ref as y, watch as He, openBlock as r, createElementBlock as h, normalizeClass as ce, normalizeStyle as
|
|
2
|
-
import { u as ze, o as Ye, e as De, c as fe, t as Ge, a as Be, p as V, b as Ae, v, f as he, X as Ue, F as me, I as Ve, i as je, q as Xe, r as We } from "./index-
|
|
3
|
-
import { _ as qe } from "./Title-
|
|
4
|
-
import { u as Re, U as Ze } from "./usePrinter-
|
|
5
|
-
import { D as Je } from "./DataTable-
|
|
6
|
-
import Ke from "./vue-ui-accordion-
|
|
7
|
-
import Qe from "./vue-ui-skeleton-
|
|
8
|
-
import { u as ge } from "./useNestedProp-
|
|
1
|
+
import { computed as m, onMounted as Le, ref as y, watch as He, openBlock as r, createElementBlock as h, normalizeClass as ce, normalizeStyle as _, createBlock as E, createCommentVNode as T, unref as i, createSlots as Oe, withCtx as k, renderSlot as C, normalizeProps as de, guardReactiveProps as ve, createElementVNode as S, Fragment as P, renderList as F, toDisplayString as U, createVNode as Ee, createTextVNode as Se, nextTick as Me } from "vue";
|
|
2
|
+
import { u as ze, o as Ye, e as De, c as fe, t as Ge, a as Be, p as V, b as Ae, v, f as he, X as Ue, F as me, I as Ve, i as je, q as Xe, r as We } from "./index-BiuHBtkZ.js";
|
|
3
|
+
import { _ as qe } from "./Title-ISDbzCH8.js";
|
|
4
|
+
import { u as Re, U as Ze } from "./usePrinter-Do8KiK5h.js";
|
|
5
|
+
import { D as Je } from "./DataTable-MkG5Dqrn.js";
|
|
6
|
+
import Ke from "./vue-ui-accordion-D2fhyKpk.js";
|
|
7
|
+
import Qe from "./vue-ui-skeleton-Du4zw-c1.js";
|
|
8
|
+
import { u as ge } from "./useNestedProp-Ck5_RzLu.js";
|
|
9
9
|
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const tt = ["id"], lt =
|
|
10
|
+
const tt = ["id"], lt = {
|
|
11
|
+
key: 0,
|
|
12
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
13
|
+
}, ot = ["xmlns", "viewBox"], at = ["id"], nt = ["stop-color"], st = ["stop-color"], ut = ["d", "fill", "stroke", "stroke-width"], rt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], it = ["x", "y", "font-size", "fill"], ct = ["x", "y", "font-size", "fill"], dt = {
|
|
11
14
|
key: 2,
|
|
12
15
|
class: "vue-data-ui-watermark"
|
|
13
|
-
},
|
|
16
|
+
}, vt = ["innerHTML"], ft = {
|
|
14
17
|
__name: "vue-ui-flow",
|
|
15
18
|
props: {
|
|
16
19
|
config: {
|
|
@@ -64,7 +67,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
64
67
|
const { isPrinting: Z, isImaging: J, generatePdf: K, generateImage: Q } = Re({
|
|
65
68
|
elementId: `flow_${z.value}`,
|
|
66
69
|
fileName: e.value.style.chart.title.text || "vue-ui-flow"
|
|
67
|
-
}), Y = m(() => Ae(e.value.customPalette)), ee = m(() => e.value.style.chart.nodes.gap),
|
|
70
|
+
}), Y = m(() => Ae(e.value.customPalette)), ee = m(() => e.value.style.chart.nodes.gap), x = m(() => e.value.style.chart.nodes.width), I = y({
|
|
68
71
|
showTable: e.value.table.show
|
|
69
72
|
}), te = m(() => e.value.style.chart.links.width), D = m(() => !g.dataset || !g.dataset.length ? [] : g.dataset.map((t) => [
|
|
70
73
|
t[0],
|
|
@@ -97,7 +100,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
97
100
|
function n(s, u) {
|
|
98
101
|
o[s] || (o[s] = { height: 0, level: null, inflow: 0, outflow: 0 }), o[s].level === null && (o[s].level = u), l[u] || (l[u] = []), l[u].includes(s) || l[u].push(s);
|
|
99
102
|
}
|
|
100
|
-
t.forEach(([s, u, f],
|
|
103
|
+
t.forEach(([s, u, f], $) => {
|
|
101
104
|
const w = o[s] ? o[s].level : 0, O = w + 1;
|
|
102
105
|
n(s, w), n(u, O), o[s].children || (o[s].children = []), o[s].children.push({ target: u, value: f }), o[s].outflow += f, o[u].inflow += f;
|
|
103
106
|
}), Object.keys(o).forEach((s, u) => {
|
|
@@ -108,14 +111,14 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
108
111
|
const a = {};
|
|
109
112
|
for (const s in l) {
|
|
110
113
|
let u = 0;
|
|
111
|
-
l[s].forEach((f,
|
|
114
|
+
l[s].forEach((f, $) => {
|
|
112
115
|
const w = o[f].height;
|
|
113
116
|
a[f] = {
|
|
114
117
|
x: parseInt(s, 10) * te.value + e.value.style.chart.padding.left,
|
|
115
118
|
y: u,
|
|
116
119
|
absoluteY: u,
|
|
117
120
|
height: w,
|
|
118
|
-
i:
|
|
121
|
+
i: $,
|
|
119
122
|
color: o[f].color,
|
|
120
123
|
value: Ce(w)
|
|
121
124
|
}, u += w + ee.value;
|
|
@@ -124,13 +127,13 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
124
127
|
const c = [];
|
|
125
128
|
for (const s in o) {
|
|
126
129
|
let u = a[s].absoluteY;
|
|
127
|
-
o[s].children && o[s].children.forEach(({ target: f, value:
|
|
128
|
-
const O = a[f].y, B = a[s], A = a[f], se = v(u), ue = v(u +
|
|
130
|
+
o[s].children && o[s].children.forEach(({ target: f, value: $ }, w) => {
|
|
131
|
+
const O = a[f].y, B = a[s], A = a[f], se = v(u), ue = v(u + $ / o[s].outflow * B.height), re = v(O), ie = v(O + $ / o[f].inflow * A.height), Ie = {
|
|
129
132
|
id: fe(),
|
|
130
133
|
source: s,
|
|
131
134
|
target: f,
|
|
132
|
-
path: `M ${v(B.x) + v(
|
|
133
|
-
value:
|
|
135
|
+
path: `M ${v(B.x) + v(x.value)} ${se} L ${v(B.x) + v(x.value)} ${ue} L ${v(A.x)} ${ie} L ${v(A.x)} ${re} Z`,
|
|
136
|
+
value: $,
|
|
134
137
|
sourceColor: o[s].color,
|
|
135
138
|
targetColor: o[f].color
|
|
136
139
|
};
|
|
@@ -161,7 +164,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
161
164
|
const { top: t, right: o, left: l, bottom: n } = e.value.style.chart.padding, a = D.value.length * te.value;
|
|
162
165
|
return {
|
|
163
166
|
height: $e.value + t + n,
|
|
164
|
-
width: o + Math.max(...p.value.nodes.map((c) => c.x)) +
|
|
167
|
+
width: o + Math.max(...p.value.nodes.map((c) => c.x)) + x.value,
|
|
165
168
|
left: l,
|
|
166
169
|
top: t,
|
|
167
170
|
right: a - o,
|
|
@@ -270,13 +273,10 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
270
273
|
ref_key: "flowChart",
|
|
271
274
|
ref: X,
|
|
272
275
|
class: ce(`vue-ui-flow ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
273
|
-
style:
|
|
276
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
274
277
|
id: `flow_${z.value}`
|
|
275
278
|
}, [
|
|
276
|
-
e.value.style.chart.title.text ? (r(), h("div",
|
|
277
|
-
key: 0,
|
|
278
|
-
style: C(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
279
|
-
}, [
|
|
279
|
+
e.value.style.chart.title.text ? (r(), h("div", lt, [
|
|
280
280
|
(r(), E(qe, {
|
|
281
281
|
key: `title_${q.value}`,
|
|
282
282
|
config: {
|
|
@@ -290,7 +290,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}, null, 8, ["config"]))
|
|
293
|
-
]
|
|
293
|
+
])) : T("", !0),
|
|
294
294
|
e.value.userOptions.show && M.value ? (r(), E(Ze, {
|
|
295
295
|
ref: "details",
|
|
296
296
|
key: `user_option_${W.value}`,
|
|
@@ -316,35 +316,35 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
316
316
|
t.$slots.optionPdf ? {
|
|
317
317
|
name: "optionPdf",
|
|
318
318
|
fn: k(() => [
|
|
319
|
-
|
|
319
|
+
C(t.$slots, "optionPdf", {}, void 0, !0)
|
|
320
320
|
]),
|
|
321
321
|
key: "0"
|
|
322
322
|
} : void 0,
|
|
323
323
|
t.$slots.optionCsv ? {
|
|
324
324
|
name: "optionCsv",
|
|
325
325
|
fn: k(() => [
|
|
326
|
-
|
|
326
|
+
C(t.$slots, "optionCsv", {}, void 0, !0)
|
|
327
327
|
]),
|
|
328
328
|
key: "1"
|
|
329
329
|
} : void 0,
|
|
330
330
|
t.$slots.optionImg ? {
|
|
331
331
|
name: "optionImg",
|
|
332
332
|
fn: k(() => [
|
|
333
|
-
|
|
333
|
+
C(t.$slots, "optionImg", {}, void 0, !0)
|
|
334
334
|
]),
|
|
335
335
|
key: "2"
|
|
336
336
|
} : void 0,
|
|
337
337
|
t.$slots.optionTable ? {
|
|
338
338
|
name: "optionTable",
|
|
339
339
|
fn: k(() => [
|
|
340
|
-
|
|
340
|
+
C(t.$slots, "optionTable", {}, void 0, !0)
|
|
341
341
|
]),
|
|
342
342
|
key: "3"
|
|
343
343
|
} : void 0,
|
|
344
344
|
t.$slots.optionFullscreen ? {
|
|
345
345
|
name: "optionFullscreen",
|
|
346
346
|
fn: k(({ toggleFullscreen: l, isFullscreen: n }) => [
|
|
347
|
-
|
|
347
|
+
C(t.$slots, "optionFullscreen", de(ve({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
|
|
348
348
|
]),
|
|
349
349
|
key: "4"
|
|
350
350
|
} : void 0
|
|
@@ -353,7 +353,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
353
353
|
xmlns: i(Ue),
|
|
354
354
|
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
355
355
|
class: ce({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
356
|
-
style:
|
|
356
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
357
357
|
}, [
|
|
358
358
|
S("defs", null, [
|
|
359
359
|
(r(!0), h(P, null, F(p.value.links, (l, n) => (r(), h("linearGradient", {
|
|
@@ -366,12 +366,12 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
366
366
|
S("stop", {
|
|
367
367
|
offset: "0%",
|
|
368
368
|
"stop-color": l.sourceColor
|
|
369
|
-
}, null, 8,
|
|
369
|
+
}, null, 8, nt),
|
|
370
370
|
S("stop", {
|
|
371
371
|
offset: "100%",
|
|
372
372
|
"stop-color": l.targetColor
|
|
373
|
-
}, null, 8,
|
|
374
|
-
], 8,
|
|
373
|
+
}, null, 8, st)
|
|
374
|
+
], 8, at))), 256))
|
|
375
375
|
]),
|
|
376
376
|
(r(!0), h(P, null, F(p.value.links, (l) => (r(), h("path", {
|
|
377
377
|
class: "vue-ui-flow-link",
|
|
@@ -379,36 +379,36 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
379
379
|
fill: `url(#${l.id})`,
|
|
380
380
|
stroke: e.value.style.chart.links.stroke,
|
|
381
381
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
382
|
-
style:
|
|
383
|
-
}, null, 12,
|
|
382
|
+
style: _(`opacity:${L.value ? [l.target, l.source].includes(L.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
|
|
383
|
+
}, null, 12, ut))), 256)),
|
|
384
384
|
(r(!0), h(P, null, F(p.value.nodes, (l, n) => (r(), h("rect", {
|
|
385
385
|
class: "vue-ui-flow-node",
|
|
386
386
|
x: l.x,
|
|
387
387
|
y: i(v)(l.absoluteY),
|
|
388
388
|
height: i(v)(l.height),
|
|
389
|
-
width:
|
|
389
|
+
width: x.value,
|
|
390
390
|
fill: l.color,
|
|
391
391
|
stroke: e.value.style.chart.nodes.stroke,
|
|
392
392
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
393
393
|
onMouseenter: (a) => Te(l),
|
|
394
394
|
onMouseleave: o[0] || (o[0] = (a) => Pe()),
|
|
395
|
-
style:
|
|
396
|
-
}, null, 44,
|
|
395
|
+
style: _(`opacity:${b.value ? b.value.includes(l.name) ? 1 : 0.2 : 1}`)
|
|
396
|
+
}, null, 44, rt))), 256)),
|
|
397
397
|
(r(!0), h(P, null, F(p.value.nodes, (l, n) => (r(), h("text", {
|
|
398
|
-
x: l.x +
|
|
398
|
+
x: l.x + x.value / 2,
|
|
399
399
|
y: i(v)(l.absoluteY + l.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4),
|
|
400
400
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
401
401
|
fill: i(me)(l.color),
|
|
402
402
|
"text-anchor": "middle",
|
|
403
|
-
style:
|
|
404
|
-
}, U(e.value.style.chart.nodes.labels.abbreviation.use ? i(Ve)({ source: l.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : l.name), 13,
|
|
403
|
+
style: _(`pointer-events: none; opacity:${b.value ? b.value.includes(l.name) ? 1 : 0 : 1}`)
|
|
404
|
+
}, U(e.value.style.chart.nodes.labels.abbreviation.use ? i(Ve)({ source: l.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : l.name), 13, it))), 256)),
|
|
405
405
|
(r(!0), h(P, null, F(p.value.nodes, (l, n) => (r(), h("text", {
|
|
406
|
-
x: l.x +
|
|
406
|
+
x: l.x + x.value / 2,
|
|
407
407
|
y: i(v)(l.absoluteY + l.height / 2 + e.value.style.chart.nodes.labels.fontSize),
|
|
408
408
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
409
409
|
fill: i(me)(l.color),
|
|
410
410
|
"text-anchor": "middle",
|
|
411
|
-
style:
|
|
411
|
+
style: _(`pointer-events: none; opacity:${b.value ? b.value.includes(l.name) ? 1 : 0 : 1}`)
|
|
412
412
|
}, U(i(je)(
|
|
413
413
|
e.value.style.chart.nodes.labels.formatter,
|
|
414
414
|
l.value,
|
|
@@ -419,11 +419,11 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
419
419
|
r: e.value.style.chart.nodes.labels.rounding
|
|
420
420
|
}),
|
|
421
421
|
{ datapoint: l, seriesIndex: n }
|
|
422
|
-
)), 13,
|
|
423
|
-
|
|
424
|
-
], 14,
|
|
425
|
-
t.$slots.watermark ? (r(), h("div",
|
|
426
|
-
|
|
422
|
+
)), 13, ct))), 256)),
|
|
423
|
+
C(t.$slots, "svg", { svg: G.value }, void 0, !0)
|
|
424
|
+
], 14, ot)),
|
|
425
|
+
t.$slots.watermark ? (r(), h("div", dt, [
|
|
426
|
+
C(t.$slots, "watermark", de(ve({ isPrinting: i(Z) || i(J) })), void 0, !0)
|
|
427
427
|
])) : T("", !0),
|
|
428
428
|
M.value ? T("", !0) : (r(), E(Qe, {
|
|
429
429
|
key: 3,
|
|
@@ -463,7 +463,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
463
463
|
S("div", {
|
|
464
464
|
innerHTML: l,
|
|
465
465
|
style: { display: "flex", "align-items": "center" }
|
|
466
|
-
}, null, 8,
|
|
466
|
+
}, null, 8, vt)
|
|
467
467
|
]),
|
|
468
468
|
td: k(({ td: l }) => [
|
|
469
469
|
Se(U(l.name || l), 1)
|
|
@@ -475,7 +475,7 @@ const tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], at = ["stop-color"],
|
|
|
475
475
|
}, 8, ["config"])) : T("", !0)
|
|
476
476
|
], 14, tt));
|
|
477
477
|
}
|
|
478
|
-
},
|
|
478
|
+
}, xt = /* @__PURE__ */ et(ft, [["__scopeId", "data-v-d152c220"]]);
|
|
479
479
|
export {
|
|
480
|
-
|
|
480
|
+
xt as default
|
|
481
481
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D-vy9N1v.cjs"),he=require("./Title-BaKZYHEx.cjs"),Z=require("./usePrinter-P4nLcXX-.cjs"),fe=require("./DataTable-pVXaNplZ.cjs"),ve=require("./vue-ui-accordion-btKAUUTu.cjs"),me=require("./vue-ui-skeleton-DJhwv2oY.cjs"),J=require("./useNestedProp-B9yDavuy.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ge=["id"],ke={key:0,style:"width:100%;background:transparent;padding-bottom:24px"},ye=["xmlns","viewBox"],be=["id"],we=["stop-color"],Ce=["stop-color"],Ne=["d","fill","stroke","stroke-width"],xe=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],$e=["x","y","font-size","fill"],Be=["x","y","font-size","fill"],_e={key:2,class:"vue-data-ui-watermark"},Ee=["innerHTML"],Se={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(K,{expose:Q}){const f=K,{vue_ui_flow:ee}=r.useConfig(),x=e.computed(()=>!!f.dataset&&f.dataset.length);e.onMounted(()=>{P()});function P(){r.objectIsEmpty(f.dataset)&&r.error({componentName:"VueUiFlow",type:"dataset"})}const $=e.ref(r.createUid()),F=e.ref(null),L=e.ref(0),z=e.ref(0),y=e.ref(!1);function te(l){y.value=l,L.value+=1}const t=e.computed({get:()=>I(),set:l=>l});function I(){const l=J.useNestedProp({userConfig:f.config,defaultConfig:ee});return l.theme?{...J.useNestedProp({userConfig:r.themes.vue_ui_flow[l.theme]||f.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>f.config,l=>{t.value=I(),P(),z.value+=1},{deep:!0});const{isPrinting:H,isImaging:O,generatePdf:M,generateImage:V}=Z.usePrinter({elementId:`flow_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),B=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),D=e.computed(()=>t.value.style.chart.nodes.gap),g=e.computed(()=>t.value.style.chart.nodes.width),b=e.ref({showTable:t.value.table.show}),Y=e.computed(()=>t.value.style.chart.links.width),_=e.computed(()=>!f.dataset||!f.dataset.length?[]:f.dataset.map(l=>[l[0],l[1],r.checkNaN(l[2])])),q=e.computed(()=>{const l={};function n(s){l[s]||(l[s]={inflow:0,outflow:0})}_.value.forEach(([s,a,i])=>{n(s),n(a),l[s].outflow+=i,l[a].inflow+=i});let o=0;for(const s in l){const a=Math.max(l[s].inflow,l[s].outflow);o=Math.max(o,a)}return o});function le(l){return l/q.value*100+t.value.style.chart.nodes.minHeight}function oe(l){const n=t.value.style.chart.nodes.minHeight;return(l-n)/100*q.value}function ne(l){const n={},o={};function s(u,c){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=c),o[c]||(o[c]=[]),o[c].includes(u)||o[c].push(u)}l.forEach(([u,c,h],k)=>{const p=n[u]?n[u].level:0,N=p+1;s(u,p),s(c,N),n[u].children||(n[u].children=[]),n[u].children.push({target:c,value:h}),n[u].outflow+=h,n[c].inflow+=h}),Object.keys(n).forEach((u,c)=>{n[u].color=B.value[c]||B.value[c%B.value.length]||r.palette[c]||r.palette[c%d.length]});for(const u in n)n[u].height=le(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in o){let c=0;o[u].forEach((h,k)=>{const p=n[h].height;a[h]={x:parseInt(u,10)*Y.value+t.value.style.chart.padding.left,y:c,absoluteY:c,height:p,i:k,color:n[h].color,value:oe(p)},c+=p+D.value})}const i=[];for(const u in n){let c=a[u].absoluteY;n[u].children&&n[u].children.forEach(({target:h,value:k},p)=>{const N=a[h].y,S=a[u],T=a[h],A=r.checkNaN(c),W=r.checkNaN(c+k/n[u].outflow*S.height),X=r.checkNaN(N),R=r.checkNaN(N+k/n[h].inflow*T.height),de={id:r.createUid(),source:u,target:h,path:`M ${r.checkNaN(S.x)+r.checkNaN(g.value)} ${A} L ${r.checkNaN(S.x)+r.checkNaN(g.value)} ${W} L ${r.checkNaN(T.x)} ${R} L ${r.checkNaN(T.x)} ${X} Z`,value:k,sourceColor:n[u].color,targetColor:n[h].color};i.push(de),c+=W-A,a[h].y+=R-X})}return{nodeCoordinates:a,links:i}}const v=e.computed(()=>{const l=ne(f.dataset);return{nodes:Object.keys(l.nodeCoordinates).map((n,o)=>({...l.nodeCoordinates[n],name:n})),links:l.links}}),ae=e.computed(()=>re(v.value.nodes));function re(l){const n={};for(const s in l){const{x:a,height:i}=l[s];n[a]||(n[a]=0),n[a]+=i+D.value}return Math.max(...Object.values(n))}const E=e.computed(()=>{const{top:l,right:n,left:o,bottom:s}=t.value.style.chart.padding,a=_.value.length*Y.value;return{height:ae.value+l+s,width:n+Math.max(...v.value.nodes.map(i=>i.x))+g.value,left:o,top:l,right:a-n,p_top:l,p_bottom:s}});function se(l){const n={},o={},s=new Set;return _.value.forEach(([a,i,u])=>{n[a]||(n[a]=[]),o[i]||(o[i]=[]),n[a].push(i),o[i].push(a)}),n[l]&&n[l].forEach(a=>s.add(a)),o[l]&&o[l].forEach(a=>s.add(a)),Array.from(s).concat(l)}const m=e.ref(null),w=e.ref(null);function ue(l){m.value=se(l.name),w.value=l.name}function ce(){m.value=null,w.value=null}const G=e.computed(()=>v.value.links.map(({source:l,target:n,sourceColor:o,targetColor:s,value:a})=>({source:l,target:n,sourceColor:o,targetColor:s,value:a})));function U(){e.nextTick(()=>{const l=G.value.map((s,a)=>[[s.source],[s.target],[s.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(l),o=r.createCsvContent(n);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const C=e.computed(()=>{const l=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=G.value.map((a,i)=>[{color:a.sourceColor,name:a.source},{color:a.targetColor,name:a.target},r.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})]),o={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:l,body:n,config:o}});function ie(){return v.value}function j(){b.value.showTable=!b.value.showTable}return Q({getData:ie,generateCsv:U,generateImage:V,generatePdf:M,toggleTable:j}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:F,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;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`flow_${$.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(),e.createBlock(he._sfc_main,{key:`title_${z.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&&x.value?(e.openBlock(),e.createBlock(Z.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(H),isImaging:e.unref(O),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:F.value,onToggleFullscreen:te,onGeneratePdf:e.unref(M),onGenerateCsv:U,onGenerateImage:e.unref(V),onToggleTable:j},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${E.value.width} ${E.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.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.links,(o,s)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:o.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.sourceColor},null,8,we),e.createElementVNode("stop",{offset:"100%","stop-color":o.targetColor},null,8,Ce)],8,be))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.links,o=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-flow-link",d:o.path,fill:`url(#${o.id})`,stroke:t.value.style.chart.links.stroke,"stroke-width":t.value.style.chart.links.strokeWidth,style:e.normalizeStyle(`opacity:${w.value?[o.target,o.source].includes(w.value)?1:.3:t.value.style.chart.links.opacity}`)},null,12,Ne))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.nodes,(o,s)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:o.x,y:e.unref(r.checkNaN)(o.absoluteY),height:e.unref(r.checkNaN)(o.height),width:g.value,fill:o.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:a=>ue(o),onMouseleave:n[0]||(n[0]=a=>ce()),style:e.normalizeStyle(`opacity:${m.value?m.value.includes(o.name)?1:.2:1}`)},null,44,xe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.nodes,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:o.x+g.value/2,y:e.unref(r.checkNaN)(o.absoluteY+o.height/2-t.value.style.chart.nodes.labels.fontSize/4),"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(r.adaptColorToBackground)(o.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${m.value?m.value.includes(o.name)?1:0:1}`)},e.toDisplayString(t.value.style.chart.nodes.labels.abbreviation.use?e.unref(r.abbreviate)({source:o.name,length:t.value.style.chart.nodes.labels.abbreviation.length}):o.name),13,$e))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.nodes,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:o.x+g.value/2,y:e.unref(r.checkNaN)(o.absoluteY+o.height/2+t.value.style.chart.nodes.labels.fontSize),"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(r.adaptColorToBackground)(o.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${m.value?m.value.includes(o.name)?1:0:1}`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:o.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:o,seriesIndex:s})),13,Be))),256)),e.renderSlot(l.$slots,"svg",{svg:E.value},void 0,!0)],14,ye)),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",_e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(H)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(me.default,{key:3,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),x.value?(e.openBlock(),e.createBlock(ve.default,{key:4,hideDetails:"",config:{open:b.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(fe.DataTable,{colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.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]=o=>b.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ee)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ge))}},Te=pe._export_sfc(Se,[["__scopeId","data-v-d152c220"]]);exports.default=Te;
|