vue-data-ui 2.10.6 → 2.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{Arrow-Cl3tB80E.cjs → Arrow-CB6EKr1I.cjs} +1 -1
- package/dist/{Arrow-rRiIHng2.js → Arrow-CZUwKF2D.js} +1 -1
- package/dist/{BaseIcon-CiINppo2.cjs → BaseIcon-BkA9Q34x.cjs} +1 -1
- package/dist/{BaseIcon-COlnFbOq.js → BaseIcon-Bzv6qbPZ.js} +1 -1
- package/dist/{ColorPicker-9QCAgrqp.cjs → ColorPicker-CSWIZQFG.cjs} +1 -1
- package/dist/{ColorPicker-UNzkvlGG.js → ColorPicker-C_UcScy-.js} +3 -3
- package/dist/{DataTable-CXbN2mJi.js → DataTable-BhwIv7c6.js} +2 -2
- package/dist/{DataTable-DOiZOQ3J.cjs → DataTable-BmSWykCq.cjs} +1 -1
- package/dist/{Legend-CFqKBI0j.cjs → Legend-CMib9jhR.cjs} +1 -1
- package/dist/{Legend-BU9C5fBQ.js → Legend-CubpFiQC.js} +2 -2
- package/dist/{PackageVersion-BMNt7NsQ.cjs → PackageVersion-9kqlnk5q.cjs} +1 -1
- package/dist/{PackageVersion-0Lu6RIig.js → PackageVersion-DmKsiZge.js} +1 -1
- package/dist/{PenAndPaper-BUwLP3Wx.cjs → PenAndPaper-CfWPwfS1.cjs} +1 -1
- package/dist/{PenAndPaper-D4Uu-GqW.js → PenAndPaper-Dgf1a1MW.js} +3 -3
- package/dist/{Shape-BavMx2aa.js → Shape-BUW7OeOM.js} +1 -1
- package/dist/{Shape-2NRWULE_.cjs → Shape-DVn1gKjR.cjs} +1 -1
- package/dist/{Slicer-B_qJHvNR.js → Slicer-jB5tCct6.js} +2 -2
- package/dist/{Slicer-Ct8BAk8F.cjs → Slicer-ud5drJRz.cjs} +1 -1
- package/dist/{Title-DrVDm1wy.js → Title-BDdzEGgo.js} +1 -1
- package/dist/{Title-BkfQdTEX.cjs → Title-EjA2nkhd.cjs} +1 -1
- package/dist/{Tooltip-BFT6mZ5a.js → Tooltip-Cdkz2ese.js} +1 -1
- package/dist/{Tooltip-BK88meti.cjs → Tooltip-Dr2CQpGZ.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{dom-to-png-0WSGIcUV.js → dom-to-png-0ag5uZSL.js} +1 -1
- package/dist/{dom-to-png-CyVwBzNm.cjs → dom-to-png-DfWDULgW.cjs} +1 -1
- package/dist/{img-DqK-SXIP.cjs → img-BFXiOvkr.cjs} +1 -1
- package/dist/{img-BT-UmGcu.js → img-DB4eqtiV.js} +1 -1
- package/dist/index-BX4v5fiN.cjs +9 -0
- package/dist/{index-hMo72hAq.js → index-Co_0CzhC.js} +268 -257
- package/dist/{pdf-G7o-GM_m.js → pdf-DUrwlnsH.js} +1 -1
- package/dist/{pdf-DY3kwqSx.cjs → pdf-D_ScD9oB.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +49 -0
- package/dist/types/vue-data-ui.d.ts +49 -0
- package/dist/{useNestedProp-DcWhlk8h.cjs → useNestedProp-DjOgO33z.cjs} +1 -1
- package/dist/{useNestedProp-DhEaBTgF.js → useNestedProp-DqI_VUcm.js} +1 -1
- package/dist/{usePrinter-D2z-bUtX.js → usePrinter-BV6TePSm.js} +3 -3
- package/dist/{usePrinter-B4ojFS2B.cjs → usePrinter-CynLTaVl.cjs} +1 -1
- package/dist/{vue-data-ui-BR4hs3ky.cjs → vue-data-ui-BTfYQKf1.cjs} +1 -1
- package/dist/{vue-data-ui-BTkU5knB.js → vue-data-ui-D0yLIHBU.js} +62 -62
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DD3_LLbq.js → vue-ui-3d-bar-c10gAuCo.js} +9 -9
- package/dist/{vue-ui-3d-bar-Cx2zND3j.cjs → vue-ui-3d-bar-cz81vDyE.cjs} +1 -1
- package/dist/{vue-ui-accordion-DUGBjyB1.cjs → vue-ui-accordion-BrbibtJK.cjs} +1 -1
- package/dist/{vue-ui-accordion-CHMdpjnX.js → vue-ui-accordion-DMCnTtx0.js} +3 -3
- package/dist/{vue-ui-age-pyramid-WpMKbqUM.cjs → vue-ui-age-pyramid-VrC5Ul6m.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CUS2cIAl.js → vue-ui-age-pyramid-qvsOA8yi.js} +10 -10
- package/dist/{vue-ui-annotator-B5VYzARK.cjs → vue-ui-annotator-DYHa8k6K.cjs} +1 -1
- package/dist/{vue-ui-annotator-Ckyjvy1h.js → vue-ui-annotator-Difg_FB4.js} +2 -2
- package/dist/{vue-ui-bullet-Clccjys0.cjs → vue-ui-bullet-Ck8VFaeu.cjs} +1 -1
- package/dist/{vue-ui-bullet-i97qMAx7.js → vue-ui-bullet-D9jQThZ5.js} +8 -8
- package/dist/{vue-ui-candlestick-Dmu21ktX.js → vue-ui-candlestick-CkGKxPxw.js} +11 -11
- package/dist/{vue-ui-candlestick-B35fn-Jo.cjs → vue-ui-candlestick-Dsd_ba5D.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-23ggTo5D.cjs → vue-ui-carousel-table-46CpWaYv.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-cvW3wpY7.js → vue-ui-carousel-table-CR-iVMMe.js} +4 -4
- package/dist/{vue-ui-chestnut-CZpShJyS.js → vue-ui-chestnut-C9hkjAMP.js} +8 -8
- package/dist/{vue-ui-chestnut-CkuDV8dp.cjs → vue-ui-chestnut-DpZW075x.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-C2IQV5_6.cjs → vue-ui-circle-pack-5_vQ6vaC.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-B6d9PjE2.js → vue-ui-circle-pack-DCiIAJrq.js} +9 -9
- package/dist/{vue-ui-cursor-CG4bTWjj.js → vue-ui-cursor-Cts6qtAH.js} +2 -2
- package/dist/{vue-ui-cursor-CZBmEqOC.cjs → vue-ui-cursor-DkNjb-zj.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D-95GOHa.cjs → vue-ui-dashboard-DHHIcBg0.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DqM_deY-.js → vue-ui-dashboard-Db-_ElsA.js} +62 -62
- package/dist/{vue-ui-digits-CKpey7p1.js → vue-ui-digits--pkv7eKf.js} +2 -2
- package/dist/{vue-ui-digits-Cdauuy8X.cjs → vue-ui-digits-BV--b8cv.cjs} +1 -1
- package/dist/{vue-ui-donut-Dp2Yy4fh.js → vue-ui-donut-BxbbhGmV.js} +12 -12
- package/dist/{vue-ui-donut-j519aqqU.cjs → vue-ui-donut-D1OlfgtH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-ClL_5jhm.js → vue-ui-donut-evolution-2mbVNu_w.js} +11 -11
- package/dist/{vue-ui-donut-evolution-Cg1VnagT.cjs → vue-ui-donut-evolution-BetPU8WD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CNJ9en-A.cjs → vue-ui-dumbbell-B4tWeLVq.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C8tOQUbs.js → vue-ui-dumbbell-Brfkbz4H.js} +10 -10
- package/dist/vue-ui-flow-BSptjAOo.cjs +1 -0
- package/dist/vue-ui-flow-BtfK7Ixu.js +655 -0
- package/dist/{vue-ui-funnel-CfxmaNEA.js → vue-ui-funnel-Bga3R3li.js} +9 -9
- package/dist/{vue-ui-funnel-DbVCaDxm.cjs → vue-ui-funnel-DJIRpxX0.cjs} +1 -1
- package/dist/{vue-ui-galaxy-dm_p5xAR.js → vue-ui-galaxy-CtUY6byr.js} +11 -11
- package/dist/{vue-ui-galaxy-zBDItFVz.cjs → vue-ui-galaxy-DjpT9A4L.cjs} +1 -1
- package/dist/{vue-ui-gauge-DwwvbGca.js → vue-ui-gauge-Bob29zui.js} +7 -7
- package/dist/{vue-ui-gauge-Dr-7ojj9.cjs → vue-ui-gauge-ByLQRCM5.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CB5NfNit.cjs → vue-ui-gizmo-DBCKjWN0.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cq0SpTfm.js → vue-ui-gizmo-Dj1TLLb1.js} +3 -3
- package/dist/{vue-ui-heatmap-DNSOppoO.js → vue-ui-heatmap-BYH3bosu.js} +10 -10
- package/dist/{vue-ui-heatmap-DtRSx7DO.cjs → vue-ui-heatmap-CAUnlp-o.cjs} +1 -1
- package/dist/{vue-ui-history-plot-r9eLYJCe.js → vue-ui-history-plot-C1kOJElL.js} +11 -11
- package/dist/{vue-ui-history-plot-BvC3L9g3.cjs → vue-ui-history-plot-CbTOgmxa.cjs} +1 -1
- package/dist/{vue-ui-kpi-BBpxo07S.js → vue-ui-kpi-BUoc8QIz.js} +3 -3
- package/dist/{vue-ui-kpi-raHWFHjI.cjs → vue-ui-kpi-DTWa9I78.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-STx0NSvX.cjs → vue-ui-mini-loader-C1awnIuZ.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CGtQXPzk.js → vue-ui-mini-loader-CSmFWNXS.js} +2 -2
- package/dist/{vue-ui-molecule-B4WJo2V5.cjs → vue-ui-molecule-CgSPoJxN.cjs} +1 -1
- package/dist/{vue-ui-molecule-EYSvyl-h.js → vue-ui-molecule-D9kSZQHB.js} +11 -11
- package/dist/{vue-ui-mood-radar-CfHUyyMY.cjs → vue-ui-mood-radar-DpQ8EBTg.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Crk-XB3O.js → vue-ui-mood-radar-qd5CCM58.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DRJZT5Bv.cjs → vue-ui-nested-donuts-BP9gsX6T.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-Rm4P3uEP.js → vue-ui-nested-donuts-OqJPZW8l.js} +12 -12
- package/dist/{vue-ui-onion-Bgvs96ms.cjs → vue-ui-onion-DYIgsIYr.cjs} +1 -1
- package/dist/{vue-ui-onion-Dzl_kjlE.js → vue-ui-onion-rNOeD9u1.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-YuLiWTox.cjs → vue-ui-parallel-coordinate-plot-CDwhmDGl.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-98c0XRsu.js → vue-ui-parallel-coordinate-plot-DQd14cew.js} +12 -12
- package/dist/{vue-ui-quadrant-Dd1ryxBx.js → vue-ui-quadrant-CH856J9A.js} +12 -12
- package/dist/{vue-ui-quadrant-CiqJKJu1.cjs → vue-ui-quadrant-RRM343kT.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CTsvK-CY.js → vue-ui-quick-chart-BLq8C-m8.js} +9 -9
- package/dist/{vue-ui-quick-chart-DMceIo39.cjs → vue-ui-quick-chart-BXYgI65b.cjs} +1 -1
- package/dist/{vue-ui-radar-Dp8-SmYd.cjs → vue-ui-radar-38OxxA3O.cjs} +1 -1
- package/dist/{vue-ui-radar-CHYpedpk.js → vue-ui-radar-BuCYH3tO.js} +12 -12
- package/dist/{vue-ui-rating-uVphq_sK.cjs → vue-ui-rating-CiqatGZ_.cjs} +1 -1
- package/dist/{vue-ui-rating-DSsm92zG.js → vue-ui-rating-D6OL6Aml.js} +2 -2
- package/dist/{vue-ui-relation-circle-BPVBRieo.js → vue-ui-relation-circle-ByhUL4R6.js} +7 -7
- package/dist/{vue-ui-relation-circle-46wKUZTv.cjs → vue-ui-relation-circle-DDYGMgUl.cjs} +1 -1
- package/dist/{vue-ui-ridgeline-B6GA2tXb.js → vue-ui-ridgeline-B5126LSF.js} +12 -12
- package/dist/{vue-ui-ridgeline-OULIMr6I.cjs → vue-ui-ridgeline-C550XNkk.cjs} +1 -1
- package/dist/{vue-ui-rings-Cl-607b8.js → vue-ui-rings-DPXct3je.js} +12 -12
- package/dist/{vue-ui-rings-HVHIYYrh.cjs → vue-ui-rings-Dxp4dmO2.cjs} +1 -1
- package/dist/{vue-ui-scatter-BZ4DPyoL.cjs → vue-ui-scatter-BWmY2_ij.cjs} +1 -1
- package/dist/{vue-ui-scatter-ClYbim5F.js → vue-ui-scatter-_DhEpcsw.js} +12 -12
- package/dist/{vue-ui-skeleton-C954hFY-.cjs → vue-ui-skeleton-DvJP74jb.cjs} +1 -1
- package/dist/{vue-ui-skeleton-C3t9bL6f.js → vue-ui-skeleton-Dzehgcp3.js} +3 -3
- package/dist/{vue-ui-smiley-DsKnKBFv.js → vue-ui-smiley-BHd1V1Dv.js} +2 -2
- package/dist/{vue-ui-smiley-BBGCa2S0.cjs → vue-ui-smiley-CtDCCsfg.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Da-HE7x2.js → vue-ui-spark-trend-DDX-fjR-.js} +5 -5
- package/dist/{vue-ui-spark-trend-CBa0FhIy.cjs → vue-ui-spark-trend-DDf1hJwg.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CUul3e3U.cjs → vue-ui-sparkbar-BT5NEz93.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DgQxbUeJ.js → vue-ui-sparkbar-BWeY-FcV.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BKA5GnGO.js → vue-ui-sparkgauge-BQMHbq8E.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DYPVqz6I.cjs → vue-ui-sparkgauge-IYvYlZ57.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CdZy4SfH.js → vue-ui-sparkhistogram-C5EdWvQP.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CNN9tXh1.cjs → vue-ui-sparkhistogram-cjsCsNyf.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BCP4gyTp.cjs → vue-ui-sparkline-BwZJpAAf.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DCNNoruu.js → vue-ui-sparkline-CbKIpwVC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-sgehFSit.cjs → vue-ui-sparkstackbar-BVJU36Jz.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BAXGFcPk.js → vue-ui-sparkstackbar-COxIfFgm.js} +5 -5
- package/dist/{vue-ui-stackbar-87l909wS.cjs → vue-ui-stackbar-CQ56hps8.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Cto9A9WG.js → vue-ui-stackbar-Dr5hRx6G.js} +13 -13
- package/dist/{vue-ui-strip-plot-Deegqmms.cjs → vue-ui-strip-plot-B_nfC_fx.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-C0F8_S_g.js → vue-ui-strip-plot-Mct4OE0A.js} +11 -11
- package/dist/{vue-ui-table-1vUkkwSp.js → vue-ui-table-B6LG28n8.js} +3 -3
- package/dist/{vue-ui-table-BUxFdYM7.cjs → vue-ui-table-DE3wOTyH.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-PPGfjMxh.js → vue-ui-table-heatmap-DDOoKybT.js} +4 -4
- package/dist/{vue-ui-table-heatmap-uDH3owRO.cjs → vue-ui-table-heatmap-DuMRCIbx.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D9LEgrxj.js → vue-ui-table-sparkline-D578FuNQ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CPSlJVB1.cjs → vue-ui-table-sparkline-gZWWmkQe.cjs} +1 -1
- package/dist/{vue-ui-thermometer-D8P88pea.cjs → vue-ui-thermometer-BWHsyYj8.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BxngpuEZ.js → vue-ui-thermometer-DFbYODrU.js} +7 -7
- package/dist/{vue-ui-timer-C3dxY--Q.js → vue-ui-timer-Bi6Q0m_J.js} +5 -5
- package/dist/{vue-ui-timer-B_dh6otW.cjs → vue-ui-timer-s73pZhYM.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-mISKtpmD.cjs → vue-ui-tiremarks-BcFJOrF8.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-_oZ6wL6K.js → vue-ui-tiremarks-C68rB2kd.js} +7 -7
- package/dist/{vue-ui-treemap-CZZXcX0f.cjs → vue-ui-treemap-B7_kcMng.cjs} +1 -1
- package/dist/{vue-ui-treemap-D5Dcd84h.js → vue-ui-treemap-b5rZtLKn.js} +12 -12
- package/dist/{vue-ui-vertical-bar-C-KAVKXj.cjs → vue-ui-vertical-bar-Bw42kw9a.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CtWXk6co.js → vue-ui-vertical-bar-DyZ-gfQi.js} +12 -12
- package/dist/{vue-ui-waffle-BD2GnRkO.js → vue-ui-waffle-CG05FL_H.js} +12 -12
- package/dist/{vue-ui-waffle-C9qyTIzz.cjs → vue-ui-waffle-tk3zMyjq.cjs} +1 -1
- package/dist/{vue-ui-wheel-HydW49fo.js → vue-ui-wheel-BTbteaZS.js} +7 -7
- package/dist/{vue-ui-wheel-CKfr_7kH.cjs → vue-ui-wheel-RzXEZFfN.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-C9Pbi6ey.js → vue-ui-word-cloud-BKubtYCS.js} +10 -10
- package/dist/{vue-ui-word-cloud-C4ISeFpy.cjs → vue-ui-word-cloud-CUZ1Mm3Q.cjs} +1 -1
- package/dist/{vue-ui-world-D-AsGwlW.js → vue-ui-world-BF0wSEJb.js} +11 -11
- package/dist/{vue-ui-world-BlAD3UPb.cjs → vue-ui-world-BPcoReDh.cjs} +1 -1
- package/dist/{vue-ui-xy-CMw6P4C0.js → vue-ui-xy-AgcMweTZ.js} +16 -16
- package/dist/{vue-ui-xy-CS-xjZVI.cjs → vue-ui-xy-C8ZEeV9g.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-Dd7IFwSK.cjs → vue-ui-xy-canvas-CJl9RPzv.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DtKI-IQA.js → vue-ui-xy-canvas-CYaJZj3B.js} +12 -12
- package/package.json +1 -1
- package/dist/index-Cai0fWP7.cjs +0 -9
- package/dist/vue-ui-flow-BYypzs-j.cjs +0 -1
- package/dist/vue-ui-flow-Ouw_lvpb.js +0 -550
|
@@ -0,0 +1,655 @@
|
|
|
1
|
+
import { computed as m, onMounted as je, ref as b, watch as Xe, createElementBlock as f, openBlock as c, unref as i, normalizeStyle as S, normalizeClass as Fe, createBlock as G, createCommentVNode as N, createVNode as ne, createSlots as qe, withCtx as k, renderSlot as y, normalizeProps as A, guardReactiveProps as H, createElementVNode as J, Fragment as R, renderList as U, toDisplayString as re, createTextVNode as Je, nextTick as Ze } from "vue";
|
|
2
|
+
import { u as Ke, o as Qe, e as et, c as ue, t as tt, p as ie, a as ot, b as lt, v as g, f as V, X as at, G as Pe, J as st, i as ce, q as nt, r as rt, x as ut } from "./index-Co_0CzhC.js";
|
|
3
|
+
import { _ as it } from "./Title-BDdzEGgo.js";
|
|
4
|
+
import { u as ct, U as dt } from "./usePrinter-BV6TePSm.js";
|
|
5
|
+
import { D as vt } from "./DataTable-BhwIv7c6.js";
|
|
6
|
+
import ft from "./vue-ui-accordion-DMCnTtx0.js";
|
|
7
|
+
import ht from "./vue-ui-skeleton-Dzehgcp3.js";
|
|
8
|
+
import { u as Se } from "./useNestedProp-DqI_VUcm.js";
|
|
9
|
+
import { _ as pt } from "./PackageVersion-DmKsiZge.js";
|
|
10
|
+
import { _ as gt } from "./PenAndPaper-Dgf1a1MW.js";
|
|
11
|
+
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
+
import { u as yt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { _ as bt } from "./Tooltip-Cdkz2ese.js";
|
|
14
|
+
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const wt = ["id"], Ct = {
|
|
16
|
+
key: 1,
|
|
17
|
+
ref: "noTitle",
|
|
18
|
+
class: "vue-data-ui-no-title-space",
|
|
19
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
20
|
+
}, $t = {
|
|
21
|
+
key: 2,
|
|
22
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
23
|
+
}, Tt = ["xmlns", "viewBox"], xt = ["width", "height"], _t = ["id"], Ot = ["stop-color"], Nt = ["stop-color"], Ft = ["d", "fill", "stroke", "stroke-width"], Pt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], St = ["x", "y", "font-size", "fill"], It = ["x", "y", "font-size", "fill"], Et = {
|
|
24
|
+
key: 4,
|
|
25
|
+
class: "vue-data-ui-watermark"
|
|
26
|
+
}, At = {
|
|
27
|
+
key: 6,
|
|
28
|
+
ref: "source",
|
|
29
|
+
dir: "auto"
|
|
30
|
+
}, Ht = ["innerHTML"], Lt = {
|
|
31
|
+
__name: "vue-ui-flow",
|
|
32
|
+
props: {
|
|
33
|
+
config: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default() {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
dataset: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default() {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
setup(Ie, { expose: Ee }) {
|
|
47
|
+
const { vue_ui_flow: Ae } = Ke(), $ = Ie, Z = m(() => !!$.dataset && $.dataset.length);
|
|
48
|
+
je(() => {
|
|
49
|
+
de();
|
|
50
|
+
});
|
|
51
|
+
function de() {
|
|
52
|
+
Qe($.dataset) && et({
|
|
53
|
+
componentName: "VueUiFlow",
|
|
54
|
+
type: "dataset"
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
const K = b(ue()), Q = b(null), ve = b(0), fe = b(0), ee = b(!1), te = b(""), I = b(!1);
|
|
58
|
+
function He(t) {
|
|
59
|
+
I.value = t, ve.value += 1;
|
|
60
|
+
}
|
|
61
|
+
const e = m({
|
|
62
|
+
get: () => me(),
|
|
63
|
+
set: (t) => t
|
|
64
|
+
}), { userOptionsVisible: oe, setUserOptionsVisibility: he, keepUserOptionState: pe } = mt({ config: e.value }), { svgRef: ge } = yt({ config: e.value.style.chart.title });
|
|
65
|
+
function me() {
|
|
66
|
+
const t = Se({
|
|
67
|
+
userConfig: $.config,
|
|
68
|
+
defaultConfig: Ae
|
|
69
|
+
});
|
|
70
|
+
return t.theme ? {
|
|
71
|
+
...Se({
|
|
72
|
+
userConfig: ot.vue_ui_flow[t.theme] || $.config,
|
|
73
|
+
defaultConfig: t
|
|
74
|
+
}),
|
|
75
|
+
customPalette: tt[t.theme] || ie
|
|
76
|
+
} : t;
|
|
77
|
+
}
|
|
78
|
+
Xe(() => $.config, (t) => {
|
|
79
|
+
e.value = me(), oe.value = !e.value.userOptions.showOnChartHover, de(), fe.value += 1, x.value.showTable = e.value.table.show;
|
|
80
|
+
}, { deep: !0 });
|
|
81
|
+
const { isPrinting: ye, isImaging: be, generatePdf: ke, generateImage: we } = ct({
|
|
82
|
+
elementId: `flow_${K.value}`,
|
|
83
|
+
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
84
|
+
options: e.value.userOptions.print
|
|
85
|
+
}), Le = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), le = m(() => lt(e.value.customPalette)), Ce = m(() => e.value.style.chart.nodes.gap), E = m(() => e.value.style.chart.nodes.width), x = b({
|
|
86
|
+
showTable: e.value.table.show,
|
|
87
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
88
|
+
}), $e = m(() => e.value.style.chart.links.width), B = m(() => !$.dataset || !$.dataset.length ? [] : $.dataset.map((t) => [
|
|
89
|
+
t[0],
|
|
90
|
+
t[1],
|
|
91
|
+
g(t[2])
|
|
92
|
+
])), Te = m(() => {
|
|
93
|
+
const t = {};
|
|
94
|
+
function l(a) {
|
|
95
|
+
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
96
|
+
}
|
|
97
|
+
B.value.forEach(([a, s, v]) => {
|
|
98
|
+
l(a), l(s), t[a].outflow += v, t[s].inflow += v;
|
|
99
|
+
});
|
|
100
|
+
let o = 0;
|
|
101
|
+
for (const a in t) {
|
|
102
|
+
const s = Math.max(t[a].inflow, t[a].outflow);
|
|
103
|
+
o = Math.max(o, s);
|
|
104
|
+
}
|
|
105
|
+
return o;
|
|
106
|
+
});
|
|
107
|
+
function Me(t) {
|
|
108
|
+
return t / Te.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
109
|
+
}
|
|
110
|
+
function ze(t) {
|
|
111
|
+
const l = e.value.style.chart.nodes.minHeight;
|
|
112
|
+
return (t - l) / 100 * Te.value;
|
|
113
|
+
}
|
|
114
|
+
function Ye(t) {
|
|
115
|
+
const l = {}, o = {};
|
|
116
|
+
function a(n, u) {
|
|
117
|
+
l[n] || (l[n] = { height: 0, level: null, inflow: 0, outflow: 0, uid: ue() }), l[n].level === null && (l[n].level = u), o[u] || (o[u] = []), o[u].includes(n) || o[u].push(n);
|
|
118
|
+
}
|
|
119
|
+
t.forEach(([n, u, h], P) => {
|
|
120
|
+
const T = l[n] ? l[n].level : 0, _ = T + 1;
|
|
121
|
+
a(n, T), a(u, _), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: h }), l[n].outflow += h, l[u].inflow += h;
|
|
122
|
+
}), Object.keys(l).forEach((n, u) => {
|
|
123
|
+
l[n].color = le.value[u] || le.value[u % le.value.length] || ie[u] || ie[u % d.length];
|
|
124
|
+
});
|
|
125
|
+
for (const n in l)
|
|
126
|
+
l[n].height = Me(Math.max(l[n].inflow, l[n].outflow)), l[n].name = n;
|
|
127
|
+
const s = {};
|
|
128
|
+
for (const n in o) {
|
|
129
|
+
let u = 0;
|
|
130
|
+
o[n].forEach((h, P) => {
|
|
131
|
+
const T = l[h].height;
|
|
132
|
+
s[h] = {
|
|
133
|
+
x: parseInt(n, 10) * $e.value + e.value.style.chart.padding.left,
|
|
134
|
+
y: u,
|
|
135
|
+
absoluteY: u,
|
|
136
|
+
height: T,
|
|
137
|
+
i: P,
|
|
138
|
+
color: l[h].color,
|
|
139
|
+
value: ze(T)
|
|
140
|
+
}, u += T + Ce.value;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
const v = [];
|
|
144
|
+
for (const n in l) {
|
|
145
|
+
let u = s[n].absoluteY + e.value.style.chart.padding.top;
|
|
146
|
+
l[n].children && l[n].children.forEach(({ target: h, value: P }, T) => {
|
|
147
|
+
const _ = s[h].y + e.value.style.chart.padding.top, M = s[n], z = s[h], w = g(u), O = g(u + P / l[n].outflow * M.height), Y = g(_), r = g(_ + P / l[h].inflow * z.height), p = {
|
|
148
|
+
id: ue(),
|
|
149
|
+
source: n,
|
|
150
|
+
target: h,
|
|
151
|
+
path: `M ${g(M.x) + g(E.value)} ${w} L ${g(M.x) + g(E.value)} ${O} L ${g(z.x)} ${r} L ${g(z.x)} ${Y} Z`,
|
|
152
|
+
value: P,
|
|
153
|
+
sourceColor: l[n].color,
|
|
154
|
+
targetColor: l[h].color
|
|
155
|
+
};
|
|
156
|
+
v.push(p), u += O - w, s[h].y += r - Y;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
return { nodeCoordinates: s, links: v };
|
|
160
|
+
}
|
|
161
|
+
const C = m(() => {
|
|
162
|
+
const t = Ye($.dataset);
|
|
163
|
+
return {
|
|
164
|
+
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
165
|
+
...t.nodeCoordinates[l],
|
|
166
|
+
name: l
|
|
167
|
+
})),
|
|
168
|
+
links: t.links
|
|
169
|
+
};
|
|
170
|
+
}), De = m(() => Ge(C.value.nodes));
|
|
171
|
+
function Ge(t) {
|
|
172
|
+
const l = {};
|
|
173
|
+
for (const a in t) {
|
|
174
|
+
const { x: s, height: v } = t[a];
|
|
175
|
+
l[s] || (l[s] = 0), l[s] += v + Ce.value;
|
|
176
|
+
}
|
|
177
|
+
return Math.max(...Object.values(l));
|
|
178
|
+
}
|
|
179
|
+
const L = m(() => {
|
|
180
|
+
const { top: t, right: l, left: o, bottom: a } = e.value.style.chart.padding, s = B.value.length * $e.value;
|
|
181
|
+
return {
|
|
182
|
+
height: De.value + t + a,
|
|
183
|
+
width: l + Math.max(...C.value.nodes.map((v) => v.x)) + E.value,
|
|
184
|
+
left: o,
|
|
185
|
+
top: t,
|
|
186
|
+
right: s - l,
|
|
187
|
+
p_top: t,
|
|
188
|
+
p_bottom: a
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
function Re(t) {
|
|
192
|
+
const l = {}, o = {}, a = /* @__PURE__ */ new Set();
|
|
193
|
+
return B.value.forEach(([s, v, n]) => {
|
|
194
|
+
l[s] || (l[s] = []), o[v] || (o[v] = []), l[s].push(v), o[v].push(s);
|
|
195
|
+
}), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
|
|
196
|
+
}
|
|
197
|
+
const F = b(null), W = b(null), ae = b(null), j = b(!1);
|
|
198
|
+
function Ue(t) {
|
|
199
|
+
F.value = Re(t.name), W.value = t.name;
|
|
200
|
+
const l = t.name, o = B.value;
|
|
201
|
+
let a = 0, s = 0, v = [], n = [];
|
|
202
|
+
const u = new Set(o.map(([r]) => r)), h = new Set(o.map(([, r]) => r)), P = Array.from(u).filter((r) => !h.has(r)), T = o.filter(([r]) => P.includes(r)).reduce((r, [p, D, We]) => r + We, 0), _ = {};
|
|
203
|
+
C.value.nodes.forEach((r) => {
|
|
204
|
+
_[r.name] = r.color;
|
|
205
|
+
}), o.forEach(([r, p, D]) => {
|
|
206
|
+
p === l && (a += D, v.push({ source: r, value: D, color: _[r] })), r === l && (s += D, n.push({ target: p, value: D, color: _[p] }));
|
|
207
|
+
});
|
|
208
|
+
const M = Math.max(a, s), z = T > 0 ? M / T * 100 : 0, w = {
|
|
209
|
+
name: l,
|
|
210
|
+
inflow: a,
|
|
211
|
+
outflow: s,
|
|
212
|
+
from: v,
|
|
213
|
+
to: n,
|
|
214
|
+
percentOfTotal: z,
|
|
215
|
+
color: _[l] || "#000000"
|
|
216
|
+
};
|
|
217
|
+
ae.value = { datapoint: w }, ee.value = !0;
|
|
218
|
+
let O = "";
|
|
219
|
+
const Y = e.value.style.chart.tooltip.customFormat;
|
|
220
|
+
if (j.value = !1, ut(Y))
|
|
221
|
+
try {
|
|
222
|
+
const r = Y({
|
|
223
|
+
datapoint: w,
|
|
224
|
+
series: C.value,
|
|
225
|
+
config: e.value
|
|
226
|
+
});
|
|
227
|
+
typeof r == "string" && (te.value = r, j.value = !0);
|
|
228
|
+
} catch {
|
|
229
|
+
console.warn("Custom format cannot be applied.");
|
|
230
|
+
}
|
|
231
|
+
if (!j.value) {
|
|
232
|
+
const r = e.value.style.chart.tooltip.showPercentage ? `<div>${V({
|
|
233
|
+
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
234
|
+
v: w.percentOfTotal,
|
|
235
|
+
s: "%",
|
|
236
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
237
|
+
})}</div>` : "";
|
|
238
|
+
O += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${w.color}">⏹</span>${w.name}${r}</div>`, w.from.length && (O += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, w.from.forEach((p) => {
|
|
239
|
+
O += `<div><span style="color:${p.color}">⏹←</span> ${p.source}: ${ce(
|
|
240
|
+
e.value.style.chart.nodes.labels.formatter,
|
|
241
|
+
p.value,
|
|
242
|
+
V({
|
|
243
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
244
|
+
v: p.value,
|
|
245
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
246
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
247
|
+
})
|
|
248
|
+
)}</div>`;
|
|
249
|
+
})), w.to.length && (O += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, w.to.forEach((p) => {
|
|
250
|
+
O += `<div><span style="color:${p.color}">⏹→</span> ${p.target}: ${ce(
|
|
251
|
+
e.value.style.chart.nodes.labels.formatter,
|
|
252
|
+
p.value,
|
|
253
|
+
V({
|
|
254
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
255
|
+
v: p.value,
|
|
256
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
257
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
258
|
+
})
|
|
259
|
+
)}</div>`;
|
|
260
|
+
})), te.value = O;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
function Ve() {
|
|
264
|
+
F.value = null, W.value = null, ee.value = !1;
|
|
265
|
+
}
|
|
266
|
+
const xe = m(() => C.value.links.map(({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
|
|
267
|
+
source: t,
|
|
268
|
+
target: l,
|
|
269
|
+
sourceColor: o,
|
|
270
|
+
targetColor: a,
|
|
271
|
+
value: s
|
|
272
|
+
})));
|
|
273
|
+
function _e() {
|
|
274
|
+
Ze(() => {
|
|
275
|
+
const t = xe.value.map((a, s) => [
|
|
276
|
+
[a.source],
|
|
277
|
+
[a.target],
|
|
278
|
+
[a.value]
|
|
279
|
+
]), l = [
|
|
280
|
+
[e.value.style.chart.title.text],
|
|
281
|
+
[e.value.style.chart.title.subtitle.text],
|
|
282
|
+
[
|
|
283
|
+
[e.value.table.columnNames.source],
|
|
284
|
+
[e.value.table.columnNames.target],
|
|
285
|
+
[e.value.table.columnNames.value]
|
|
286
|
+
]
|
|
287
|
+
].concat(t), o = nt(l);
|
|
288
|
+
rt({
|
|
289
|
+
csvContent: o,
|
|
290
|
+
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
const X = m(() => {
|
|
295
|
+
const t = [
|
|
296
|
+
e.value.table.columnNames.source,
|
|
297
|
+
e.value.table.columnNames.target,
|
|
298
|
+
e.value.table.columnNames.value
|
|
299
|
+
], l = xe.value.map((s, v) => [
|
|
300
|
+
{
|
|
301
|
+
color: s.sourceColor,
|
|
302
|
+
name: s.source
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
color: s.targetColor,
|
|
306
|
+
name: s.target
|
|
307
|
+
},
|
|
308
|
+
V({
|
|
309
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
310
|
+
v: s.value,
|
|
311
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
312
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
313
|
+
})
|
|
314
|
+
]), o = {
|
|
315
|
+
th: {
|
|
316
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
317
|
+
color: e.value.table.th.color,
|
|
318
|
+
outline: e.value.table.th.outline
|
|
319
|
+
},
|
|
320
|
+
td: {
|
|
321
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
322
|
+
color: e.value.table.td.color,
|
|
323
|
+
outline: e.value.table.td.outline
|
|
324
|
+
},
|
|
325
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
326
|
+
};
|
|
327
|
+
return {
|
|
328
|
+
colNames: [
|
|
329
|
+
e.value.table.columnNames.source,
|
|
330
|
+
e.value.table.columnNames.target,
|
|
331
|
+
e.value.table.columnNames.value
|
|
332
|
+
],
|
|
333
|
+
head: t,
|
|
334
|
+
body: l,
|
|
335
|
+
config: o
|
|
336
|
+
};
|
|
337
|
+
});
|
|
338
|
+
function Be() {
|
|
339
|
+
return C.value;
|
|
340
|
+
}
|
|
341
|
+
function Oe() {
|
|
342
|
+
x.value.showTable = !x.value.showTable;
|
|
343
|
+
}
|
|
344
|
+
const q = b(!1);
|
|
345
|
+
function se() {
|
|
346
|
+
q.value = !q.value;
|
|
347
|
+
}
|
|
348
|
+
function Ne() {
|
|
349
|
+
x.value.showTooltip = !x.value.showTooltip;
|
|
350
|
+
}
|
|
351
|
+
return Ee({
|
|
352
|
+
getData: Be,
|
|
353
|
+
generateCsv: _e,
|
|
354
|
+
generateImage: we,
|
|
355
|
+
generatePdf: ke,
|
|
356
|
+
toggleTable: Oe,
|
|
357
|
+
toggleAnnotator: se,
|
|
358
|
+
toggleTooltip: Ne
|
|
359
|
+
}), (t, l) => (c(), f("div", {
|
|
360
|
+
ref_key: "flowChart",
|
|
361
|
+
ref: Q,
|
|
362
|
+
class: Fe(`vue-ui-flow ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
363
|
+
style: S(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
364
|
+
id: `flow_${K.value}`,
|
|
365
|
+
onMouseenter: l[2] || (l[2] = () => i(he)(!0)),
|
|
366
|
+
onMouseleave: l[3] || (l[3] = () => i(he)(!1))
|
|
367
|
+
}, [
|
|
368
|
+
e.value.userOptions.buttons.annotator ? (c(), G(gt, {
|
|
369
|
+
key: 0,
|
|
370
|
+
svgRef: i(ge),
|
|
371
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
372
|
+
color: e.value.style.chart.color,
|
|
373
|
+
active: q.value,
|
|
374
|
+
onClose: se
|
|
375
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : N("", !0),
|
|
376
|
+
Le.value ? (c(), f("div", Ct, null, 512)) : N("", !0),
|
|
377
|
+
e.value.style.chart.title.text ? (c(), f("div", $t, [
|
|
378
|
+
(c(), G(it, {
|
|
379
|
+
key: `title_${fe.value}`,
|
|
380
|
+
config: {
|
|
381
|
+
title: {
|
|
382
|
+
cy: "flow-title",
|
|
383
|
+
...e.value.style.chart.title
|
|
384
|
+
},
|
|
385
|
+
subtitle: {
|
|
386
|
+
cy: "flow-subtitle",
|
|
387
|
+
...e.value.style.chart.title.subtitle
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}, null, 8, ["config"]))
|
|
391
|
+
])) : N("", !0),
|
|
392
|
+
e.value.userOptions.show && Z.value && (i(pe) || i(oe)) ? (c(), G(dt, {
|
|
393
|
+
ref: "details",
|
|
394
|
+
key: `user_option_${ve.value}`,
|
|
395
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
396
|
+
color: e.value.style.chart.color,
|
|
397
|
+
isPrinting: i(ye),
|
|
398
|
+
isImaging: i(be),
|
|
399
|
+
uid: K.value,
|
|
400
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
401
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
402
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
403
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
404
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
405
|
+
isFullscreen: I.value,
|
|
406
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
407
|
+
chartElement: Q.value,
|
|
408
|
+
position: e.value.userOptions.position,
|
|
409
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
410
|
+
isAnnotation: q.value,
|
|
411
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
412
|
+
isTooltip: x.value.showTooltip,
|
|
413
|
+
onToggleTooltip: Ne,
|
|
414
|
+
onToggleFullscreen: He,
|
|
415
|
+
onGeneratePdf: i(ke),
|
|
416
|
+
onGenerateCsv: _e,
|
|
417
|
+
onGenerateImage: i(we),
|
|
418
|
+
onToggleTable: Oe,
|
|
419
|
+
onToggleAnnotator: se,
|
|
420
|
+
style: S({
|
|
421
|
+
visibility: i(pe) ? i(oe) ? "visible" : "hidden" : "visible"
|
|
422
|
+
})
|
|
423
|
+
}, qe({ _: 2 }, [
|
|
424
|
+
t.$slots.menuIcon ? {
|
|
425
|
+
name: "menuIcon",
|
|
426
|
+
fn: k(({ isOpen: o, color: a }) => [
|
|
427
|
+
y(t.$slots, "menuIcon", A(H({ isOpen: o, color: a })), void 0, !0)
|
|
428
|
+
]),
|
|
429
|
+
key: "0"
|
|
430
|
+
} : void 0,
|
|
431
|
+
t.$slots.optionTooltip ? {
|
|
432
|
+
name: "optionTooltip",
|
|
433
|
+
fn: k(() => [
|
|
434
|
+
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
435
|
+
]),
|
|
436
|
+
key: "1"
|
|
437
|
+
} : void 0,
|
|
438
|
+
t.$slots.optionPdf ? {
|
|
439
|
+
name: "optionPdf",
|
|
440
|
+
fn: k(() => [
|
|
441
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
442
|
+
]),
|
|
443
|
+
key: "2"
|
|
444
|
+
} : void 0,
|
|
445
|
+
t.$slots.optionCsv ? {
|
|
446
|
+
name: "optionCsv",
|
|
447
|
+
fn: k(() => [
|
|
448
|
+
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
449
|
+
]),
|
|
450
|
+
key: "3"
|
|
451
|
+
} : void 0,
|
|
452
|
+
t.$slots.optionImg ? {
|
|
453
|
+
name: "optionImg",
|
|
454
|
+
fn: k(() => [
|
|
455
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
456
|
+
]),
|
|
457
|
+
key: "4"
|
|
458
|
+
} : void 0,
|
|
459
|
+
t.$slots.optionTable ? {
|
|
460
|
+
name: "optionTable",
|
|
461
|
+
fn: k(() => [
|
|
462
|
+
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
463
|
+
]),
|
|
464
|
+
key: "5"
|
|
465
|
+
} : void 0,
|
|
466
|
+
t.$slots.optionFullscreen ? {
|
|
467
|
+
name: "optionFullscreen",
|
|
468
|
+
fn: k(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
469
|
+
y(t.$slots, "optionFullscreen", A(H({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
470
|
+
]),
|
|
471
|
+
key: "6"
|
|
472
|
+
} : void 0,
|
|
473
|
+
t.$slots.optionAnnotator ? {
|
|
474
|
+
name: "optionAnnotator",
|
|
475
|
+
fn: k(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
476
|
+
y(t.$slots, "optionAnnotator", A(H({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
477
|
+
]),
|
|
478
|
+
key: "7"
|
|
479
|
+
} : void 0
|
|
480
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : N("", !0),
|
|
481
|
+
(c(), f("svg", {
|
|
482
|
+
ref_key: "svgRef",
|
|
483
|
+
ref: ge,
|
|
484
|
+
xmlns: i(at),
|
|
485
|
+
viewBox: `0 0 ${L.value.width} ${L.value.height}`,
|
|
486
|
+
class: Fe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
487
|
+
style: S(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
488
|
+
}, [
|
|
489
|
+
ne(pt),
|
|
490
|
+
t.$slots["chart-background"] ? (c(), f("foreignObject", {
|
|
491
|
+
key: 0,
|
|
492
|
+
x: 0,
|
|
493
|
+
y: 0,
|
|
494
|
+
width: L.value.width,
|
|
495
|
+
height: L.value.height,
|
|
496
|
+
style: {
|
|
497
|
+
pointerEvents: "none"
|
|
498
|
+
}
|
|
499
|
+
}, [
|
|
500
|
+
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
501
|
+
], 8, xt)) : N("", !0),
|
|
502
|
+
J("defs", null, [
|
|
503
|
+
(c(!0), f(R, null, U(C.value.links, (o, a) => (c(), f("linearGradient", {
|
|
504
|
+
id: o.id,
|
|
505
|
+
x1: "0%",
|
|
506
|
+
y1: "0%",
|
|
507
|
+
x2: "100%",
|
|
508
|
+
y2: "0%"
|
|
509
|
+
}, [
|
|
510
|
+
J("stop", {
|
|
511
|
+
offset: "0%",
|
|
512
|
+
"stop-color": o.sourceColor
|
|
513
|
+
}, null, 8, Ot),
|
|
514
|
+
J("stop", {
|
|
515
|
+
offset: "100%",
|
|
516
|
+
"stop-color": o.targetColor
|
|
517
|
+
}, null, 8, Nt)
|
|
518
|
+
], 8, _t))), 256))
|
|
519
|
+
]),
|
|
520
|
+
(c(!0), f(R, null, U(C.value.links, (o) => (c(), f("path", {
|
|
521
|
+
class: "vue-ui-flow-link",
|
|
522
|
+
d: o.path,
|
|
523
|
+
fill: `url(#${o.id})`,
|
|
524
|
+
stroke: e.value.style.chart.links.stroke,
|
|
525
|
+
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
526
|
+
style: S(`opacity:${W.value ? [o.target, o.source].includes(W.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
|
|
527
|
+
}, null, 12, Ft))), 256)),
|
|
528
|
+
(c(!0), f(R, null, U(C.value.nodes, (o, a) => (c(), f("rect", {
|
|
529
|
+
class: "vue-ui-flow-node",
|
|
530
|
+
x: o.x,
|
|
531
|
+
y: i(g)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
532
|
+
height: i(g)(o.height),
|
|
533
|
+
width: E.value,
|
|
534
|
+
fill: o.color,
|
|
535
|
+
stroke: e.value.style.chart.nodes.stroke,
|
|
536
|
+
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
537
|
+
onMouseenter: (s) => Ue(o),
|
|
538
|
+
onMouseleave: l[0] || (l[0] = (s) => Ve()),
|
|
539
|
+
style: S(`opacity:${F.value ? F.value.includes(o.name) ? 1 : 0.2 : 1}`)
|
|
540
|
+
}, null, 44, Pt))), 256)),
|
|
541
|
+
(c(!0), f(R, null, U(C.value.nodes, (o, a) => (c(), f("text", {
|
|
542
|
+
x: o.x + E.value / 2,
|
|
543
|
+
y: i(g)(o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4) + e.value.style.chart.padding.top,
|
|
544
|
+
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
545
|
+
fill: i(Pe)(o.color),
|
|
546
|
+
"text-anchor": "middle",
|
|
547
|
+
style: S(`pointer-events: none; opacity:${F.value ? F.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
548
|
+
}, re(e.value.style.chart.nodes.labels.abbreviation.use ? i(st)({
|
|
549
|
+
source: o.name,
|
|
550
|
+
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
551
|
+
}) : o.name), 13, St))), 256)),
|
|
552
|
+
(c(!0), f(R, null, U(C.value.nodes, (o, a) => (c(), f("text", {
|
|
553
|
+
x: o.x + E.value / 2,
|
|
554
|
+
y: i(g)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize) + e.value.style.chart.padding.top,
|
|
555
|
+
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
556
|
+
fill: i(Pe)(o.color),
|
|
557
|
+
"text-anchor": "middle",
|
|
558
|
+
style: S(`pointer-events: none; opacity:${F.value ? F.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
559
|
+
}, re(i(ce)(
|
|
560
|
+
e.value.style.chart.nodes.labels.formatter,
|
|
561
|
+
o.value,
|
|
562
|
+
i(V)({
|
|
563
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
564
|
+
v: o.value,
|
|
565
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
566
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
567
|
+
}),
|
|
568
|
+
{ datapoint: o, seriesIndex: a }
|
|
569
|
+
)), 13, It))), 256)),
|
|
570
|
+
y(t.$slots, "svg", { svg: L.value }, void 0, !0)
|
|
571
|
+
], 14, Tt)),
|
|
572
|
+
t.$slots.watermark ? (c(), f("div", Et, [
|
|
573
|
+
y(t.$slots, "watermark", A(H({ isPrinting: i(ye) || i(be) })), void 0, !0)
|
|
574
|
+
])) : N("", !0),
|
|
575
|
+
Z.value ? N("", !0) : (c(), G(ht, {
|
|
576
|
+
key: 5,
|
|
577
|
+
config: {
|
|
578
|
+
type: "flow",
|
|
579
|
+
style: {
|
|
580
|
+
backgroundColor: e.value.style.chart.backgroundColor
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}, null, 8, ["config"])),
|
|
584
|
+
t.$slots.source ? (c(), f("div", At, [
|
|
585
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
586
|
+
], 512)) : N("", !0),
|
|
587
|
+
ne(bt, {
|
|
588
|
+
show: x.value.showTooltip && ee.value,
|
|
589
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
590
|
+
color: e.value.style.chart.tooltip.color,
|
|
591
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
592
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
593
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
594
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
595
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
596
|
+
position: e.value.style.chart.tooltip.position,
|
|
597
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
598
|
+
parent: Q.value,
|
|
599
|
+
content: te.value,
|
|
600
|
+
isCustom: j.value,
|
|
601
|
+
isFullscreen: I.value
|
|
602
|
+
}, {
|
|
603
|
+
"tooltip-before": k(() => [
|
|
604
|
+
y(t.$slots, "tooltip-before", A(H({ ...ae.value })), void 0, !0)
|
|
605
|
+
]),
|
|
606
|
+
"tooltip-after": k(() => [
|
|
607
|
+
y(t.$slots, "tooltip-after", A(H({ ...ae.value })), void 0, !0)
|
|
608
|
+
]),
|
|
609
|
+
_: 3
|
|
610
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
611
|
+
Z.value ? (c(), G(ft, {
|
|
612
|
+
key: 7,
|
|
613
|
+
hideDetails: "",
|
|
614
|
+
config: {
|
|
615
|
+
open: x.value.showTable,
|
|
616
|
+
maxHeight: 1e4,
|
|
617
|
+
body: {
|
|
618
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
619
|
+
color: e.value.style.chart.color
|
|
620
|
+
},
|
|
621
|
+
head: {
|
|
622
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
623
|
+
color: e.value.style.chart.color
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}, {
|
|
627
|
+
content: k(() => [
|
|
628
|
+
ne(vt, {
|
|
629
|
+
colNames: X.value.colNames,
|
|
630
|
+
head: X.value.head,
|
|
631
|
+
body: X.value.body,
|
|
632
|
+
config: X.value.config,
|
|
633
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
634
|
+
onClose: l[1] || (l[1] = (o) => x.value.showTable = !1)
|
|
635
|
+
}, {
|
|
636
|
+
th: k(({ th: o }) => [
|
|
637
|
+
J("div", {
|
|
638
|
+
innerHTML: o,
|
|
639
|
+
style: { display: "flex", "align-items": "center" }
|
|
640
|
+
}, null, 8, Ht)
|
|
641
|
+
]),
|
|
642
|
+
td: k(({ td: o }) => [
|
|
643
|
+
Je(re(o.name || o), 1)
|
|
644
|
+
]),
|
|
645
|
+
_: 1
|
|
646
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
647
|
+
]),
|
|
648
|
+
_: 1
|
|
649
|
+
}, 8, ["config"])) : N("", !0)
|
|
650
|
+
], 46, wt));
|
|
651
|
+
}
|
|
652
|
+
}, Zt = /* @__PURE__ */ kt(Lt, [["__scopeId", "data-v-17e83e4a"]]);
|
|
653
|
+
export {
|
|
654
|
+
Zt as default
|
|
655
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useCssVars as Le, computed as v, onMounted as Te, ref as c, watch as Ae, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as _, normalizeClass as T, createBlock as A, createCommentVNode as f, createSlots as Ne, withCtx as g, renderSlot as b, normalizeProps as M, guardReactiveProps as R, createVNode as Oe, createElementVNode as C, mergeProps as q, Fragment as V, renderList as B, toDisplayString as U, createTextVNode as ze, nextTick as Se } from "vue";
|
|
2
|
-
import { u as Fe, o as Ie, e as me, g as Pe, c as De, d as Me, l as Re, i as E, f as G, X as Ve, G as Be, F as Y, a as Ue, q as Ee, r as Ge } from "./index-
|
|
3
|
-
import { u as be } from "./useNestedProp-
|
|
4
|
-
import { u as je, U as He } from "./usePrinter-
|
|
5
|
-
import { _ as Xe } from "./Title-
|
|
6
|
-
import { _ as qe } from "./PenAndPaper-
|
|
7
|
-
import { D as Ye } from "./DataTable-
|
|
8
|
-
import We from "./vue-ui-accordion-
|
|
2
|
+
import { u as Fe, o as Ie, e as me, g as Pe, c as De, d as Me, l as Re, i as E, f as G, X as Ve, G as Be, F as Y, a as Ue, q as Ee, r as Ge } from "./index-Co_0CzhC.js";
|
|
3
|
+
import { u as be } from "./useNestedProp-DqI_VUcm.js";
|
|
4
|
+
import { u as je, U as He } from "./usePrinter-BV6TePSm.js";
|
|
5
|
+
import { _ as Xe } from "./Title-BDdzEGgo.js";
|
|
6
|
+
import { _ as qe } from "./PenAndPaper-Dgf1a1MW.js";
|
|
7
|
+
import { D as Ye } from "./DataTable-BhwIv7c6.js";
|
|
8
|
+
import We from "./vue-ui-accordion-DMCnTtx0.js";
|
|
9
9
|
import { t as Je, u as Ke } from "./useResponsive-Cw4oZ8sQ.js";
|
|
10
|
-
import Qe from "./vue-ui-skeleton-
|
|
10
|
+
import Qe from "./vue-ui-skeleton-Dzehgcp3.js";
|
|
11
11
|
import { u as Ze } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { _ as et } from "./PackageVersion-
|
|
12
|
+
import { _ as et } from "./PackageVersion-DmKsiZge.js";
|
|
13
13
|
import { u as tt } from "./useChartAccessibility-BWojgys7.js";
|
|
14
14
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["id"], rt = ["stop-color"], ut = ["stop-color"], it = ["stop-color"], ct = ["stroke", "stroke-width"], vt = ["stroke", "stroke-width"], dt = ["x", "y", "font-size", "fill", "font-weight"], ht = ["points", "fill"], ft = ["stroke", "stroke-width", "rx"], mt = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill", "font-weight"], yt = {
|