vue-data-ui 2.10.7 → 2.10.9
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 +2 -2
- package/dist/{Arrow-CZUwKF2D.js → Arrow-DCEAiiSq.js} +1 -1
- package/dist/{Arrow-CB6EKr1I.cjs → Arrow-kcA0IBBo.cjs} +1 -1
- package/dist/{BaseIcon-BkA9Q34x.cjs → BaseIcon-CmdFxgkp.cjs} +1 -1
- package/dist/{BaseIcon-Bzv6qbPZ.js → BaseIcon-DPO_4Adb.js} +1 -1
- package/dist/{ColorPicker-C_UcScy-.js → ColorPicker-D0FMoBTo.js} +3 -3
- package/dist/{ColorPicker-CSWIZQFG.cjs → ColorPicker-DJn8_rVA.cjs} +1 -1
- package/dist/{DataTable-BhwIv7c6.js → DataTable-BaAjwD5U.js} +2 -2
- package/dist/{DataTable-BmSWykCq.cjs → DataTable-OM4js4qI.cjs} +1 -1
- package/dist/{Legend-CubpFiQC.js → Legend-DqxOfhbM.js} +2 -2
- package/dist/{Legend-CMib9jhR.cjs → Legend-qwuGpvF8.cjs} +1 -1
- package/dist/{PackageVersion-9kqlnk5q.cjs → PackageVersion-Di-ZyR0_.cjs} +1 -1
- package/dist/{PackageVersion-DmKsiZge.js → PackageVersion-gI4tUgWr.js} +1 -1
- package/dist/{PenAndPaper-CfWPwfS1.cjs → PenAndPaper-CtYhqkG5.cjs} +1 -1
- package/dist/{PenAndPaper-Dgf1a1MW.js → PenAndPaper-Di3hcmp3.js} +3 -3
- package/dist/{Shape-DVn1gKjR.cjs → Shape-CHiMFkEQ.cjs} +1 -1
- package/dist/{Shape-BUW7OeOM.js → Shape-DJcgH2ks.js} +1 -1
- package/dist/{Slicer-ud5drJRz.cjs → Slicer-BrBOWXeJ.cjs} +1 -1
- package/dist/{Slicer-jB5tCct6.js → Slicer-DWZhB9e4.js} +2 -2
- package/dist/{Title-BDdzEGgo.js → Title-B55VMGbm.js} +1 -1
- package/dist/{Title-EjA2nkhd.cjs → Title-BiyGREAz.cjs} +1 -1
- package/dist/{Tooltip-Dr2CQpGZ.cjs → Tooltip-C-Kq18lz.cjs} +1 -1
- package/dist/{Tooltip-Cdkz2ese.js → Tooltip-CMiCE06y.js} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{dom-to-png-0ag5uZSL.js → dom-to-png-C6TvW1Fi.js} +1 -1
- package/dist/{dom-to-png-DfWDULgW.cjs → dom-to-png-vuA7iQ84.cjs} +1 -1
- package/dist/{img-BFXiOvkr.cjs → img-DHHWE-ji.cjs} +1 -1
- package/dist/{img-DB4eqtiV.js → img-z4AasNO4.js} +1 -1
- package/dist/index-DlALYfRS.cjs +9 -0
- package/dist/{index-Co_0CzhC.js → index-bVqxfptX.js} +9 -2
- package/dist/{pdf-DUrwlnsH.js → pdf-Ch5KSecz.js} +1 -1
- package/dist/{pdf-D_ScD9oB.cjs → pdf-D2qvws06.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-DjOgO33z.cjs → useNestedProp-BZX7zlGv.cjs} +1 -1
- package/dist/{useNestedProp-DqI_VUcm.js → useNestedProp-DU-vsdTb.js} +1 -1
- package/dist/{usePrinter-BV6TePSm.js → usePrinter-BbeIGqpA.js} +3 -3
- package/dist/{usePrinter-CynLTaVl.cjs → usePrinter-n1HzfoSm.cjs} +1 -1
- package/dist/{vue-data-ui-D0yLIHBU.js → vue-data-ui-BI_bQ5jM.js} +62 -62
- package/dist/{vue-data-ui-BTfYQKf1.cjs → vue-data-ui-DRqEhGYC.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-cz81vDyE.cjs → vue-ui-3d-bar-BBKU0pAV.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-c10gAuCo.js → vue-ui-3d-bar-MSs9iIHL.js} +9 -9
- package/dist/{vue-ui-accordion-BrbibtJK.cjs → vue-ui-accordion-CByAeInD.cjs} +1 -1
- package/dist/{vue-ui-accordion-DMCnTtx0.js → vue-ui-accordion-DQKCLM2T.js} +3 -3
- package/dist/{vue-ui-age-pyramid-VrC5Ul6m.cjs → vue-ui-age-pyramid-D05rUuJG.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-qvsOA8yi.js → vue-ui-age-pyramid-pX29qF4-.js} +10 -10
- package/dist/{vue-ui-annotator-Difg_FB4.js → vue-ui-annotator-BuG8aus2.js} +2 -2
- package/dist/{vue-ui-annotator-DYHa8k6K.cjs → vue-ui-annotator-CvcBBO7e.cjs} +1 -1
- package/dist/{vue-ui-bullet-D9jQThZ5.js → vue-ui-bullet-B9Xg6ifm.js} +8 -8
- package/dist/{vue-ui-bullet-Ck8VFaeu.cjs → vue-ui-bullet-BdvVX5da.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CkGKxPxw.js → vue-ui-candlestick-B_iC_QzE.js} +11 -11
- package/dist/{vue-ui-candlestick-Dsd_ba5D.cjs → vue-ui-candlestick-DPEZe5JP.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CR-iVMMe.js → vue-ui-carousel-table-DGEoBYe-.js} +4 -4
- package/dist/{vue-ui-carousel-table-46CpWaYv.cjs → vue-ui-carousel-table-DOB6NiBx.cjs} +1 -1
- package/dist/{vue-ui-chestnut-C9hkjAMP.js → vue-ui-chestnut-CiWVelvx.js} +8 -8
- package/dist/{vue-ui-chestnut-DpZW075x.cjs → vue-ui-chestnut-DxF_6jB2.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-DCiIAJrq.js → vue-ui-circle-pack-CJN2ybvx.js} +9 -9
- package/dist/{vue-ui-circle-pack-5_vQ6vaC.cjs → vue-ui-circle-pack-XEEX0oEn.cjs} +1 -1
- package/dist/{vue-ui-cursor-DkNjb-zj.cjs → vue-ui-cursor-7loRJMGF.cjs} +1 -1
- package/dist/{vue-ui-cursor-Cts6qtAH.js → vue-ui-cursor-CqAjc9W_.js} +2 -2
- package/dist/{vue-ui-dashboard-DHHIcBg0.cjs → vue-ui-dashboard-CQn61jnh.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Db-_ElsA.js → vue-ui-dashboard-CdpzgIs_.js} +62 -62
- package/dist/{vue-ui-digits--pkv7eKf.js → vue-ui-digits-7ACjmgPM.js} +2 -2
- package/dist/{vue-ui-digits-BV--b8cv.cjs → vue-ui-digits-CuxGcV9M.cjs} +1 -1
- package/dist/{vue-ui-donut-D1OlfgtH.cjs → vue-ui-donut-BtvQmKji.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-2mbVNu_w.js → vue-ui-donut-evolution-BpEJNoJM.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BetPU8WD.cjs → vue-ui-donut-evolution-fOc16UtY.cjs} +1 -1
- package/dist/{vue-ui-donut-BxbbhGmV.js → vue-ui-donut-m7KcUt0k.js} +12 -12
- package/dist/{vue-ui-dumbbell-B4tWeLVq.cjs → vue-ui-dumbbell-BTvPq02T.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Brfkbz4H.js → vue-ui-dumbbell-Sy7rxejU.js} +10 -10
- package/dist/vue-ui-flow-BccWxEzt.cjs +3 -0
- package/dist/vue-ui-flow-CbszU2ms.js +755 -0
- package/dist/{vue-ui-funnel-Bga3R3li.js → vue-ui-funnel-D3b6l6X6.js} +9 -9
- package/dist/{vue-ui-funnel-DJIRpxX0.cjs → vue-ui-funnel-D87BZsNK.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DjpT9A4L.cjs → vue-ui-galaxy-CDGqzTCy.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CtUY6byr.js → vue-ui-galaxy-CUuzThWx.js} +11 -11
- package/dist/{vue-ui-gauge-Bob29zui.js → vue-ui-gauge-24FEcSzr.js} +7 -7
- package/dist/{vue-ui-gauge-ByLQRCM5.cjs → vue-ui-gauge-B6RkYKug.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DBCKjWN0.cjs → vue-ui-gizmo-BAsoCXMw.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dj1TLLb1.js → vue-ui-gizmo-DeYTfhQU.js} +3 -3
- package/dist/{vue-ui-heatmap-BYH3bosu.js → vue-ui-heatmap-DpmJyXn-.js} +10 -10
- package/dist/{vue-ui-heatmap-CAUnlp-o.cjs → vue-ui-heatmap-QCkbTog8.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CbTOgmxa.cjs → vue-ui-history-plot-BAW3WchG.cjs} +1 -1
- package/dist/{vue-ui-history-plot-C1kOJElL.js → vue-ui-history-plot-CBeiEcTE.js} +11 -11
- package/dist/{vue-ui-kpi-BUoc8QIz.js → vue-ui-kpi-3gKMDrTH.js} +3 -3
- package/dist/{vue-ui-kpi-DTWa9I78.cjs → vue-ui-kpi-Pki59wPC.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C1awnIuZ.cjs → vue-ui-mini-loader-BdSgh6y-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CSmFWNXS.js → vue-ui-mini-loader-Bo-F8i3n.js} +2 -2
- package/dist/{vue-ui-molecule-CgSPoJxN.cjs → vue-ui-molecule-Bbs_Vy-A.cjs} +1 -1
- package/dist/{vue-ui-molecule-D9kSZQHB.js → vue-ui-molecule-DkVkHwM_.js} +11 -11
- package/dist/{vue-ui-mood-radar-qd5CCM58.js → vue-ui-mood-radar-7qs15-ye.js} +11 -11
- package/dist/{vue-ui-mood-radar-DpQ8EBTg.cjs → vue-ui-mood-radar-DcyKE-45.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-OqJPZW8l.js → vue-ui-nested-donuts-BYwluLLM.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BP9gsX6T.cjs → vue-ui-nested-donuts-iifvTxeT.cjs} +1 -1
- package/dist/{vue-ui-onion-rNOeD9u1.js → vue-ui-onion-B7Asvx4M.js} +11 -11
- package/dist/{vue-ui-onion-DYIgsIYr.cjs → vue-ui-onion-DsS8vdCr.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CDwhmDGl.cjs → vue-ui-parallel-coordinate-plot-CWyjLwOL.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DQd14cew.js → vue-ui-parallel-coordinate-plot-CayH9RQe.js} +12 -12
- package/dist/{vue-ui-quadrant-RRM343kT.cjs → vue-ui-quadrant--6zm3Tkv.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CH856J9A.js → vue-ui-quadrant-BSjpS3JD.js} +12 -12
- package/dist/{vue-ui-quick-chart-BLq8C-m8.js → vue-ui-quick-chart-DbfWPULd.js} +9 -9
- package/dist/{vue-ui-quick-chart-BXYgI65b.cjs → vue-ui-quick-chart-DkUGMBfD.cjs} +1 -1
- package/dist/{vue-ui-radar-38OxxA3O.cjs → vue-ui-radar-BrA-apr-.cjs} +1 -1
- package/dist/{vue-ui-radar-BuCYH3tO.js → vue-ui-radar-CvK5Nz5U.js} +12 -12
- package/dist/{vue-ui-rating-D6OL6Aml.js → vue-ui-rating-C5qFRKy9.js} +2 -2
- package/dist/{vue-ui-rating-CiqatGZ_.cjs → vue-ui-rating-ctOiwHRD.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DDYGMgUl.cjs → vue-ui-relation-circle-35rE0_C0.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-ByhUL4R6.js → vue-ui-relation-circle-ChUKc3S5.js} +7 -7
- package/dist/{vue-ui-ridgeline-C550XNkk.cjs → vue-ui-ridgeline-C_LoyQPY.cjs} +1 -1
- package/dist/{vue-ui-ridgeline-B5126LSF.js → vue-ui-ridgeline-DDrBrbxq.js} +12 -12
- package/dist/{vue-ui-rings-DPXct3je.js → vue-ui-rings-DGhi_Jcb.js} +12 -12
- package/dist/{vue-ui-rings-Dxp4dmO2.cjs → vue-ui-rings-IM473vOr.cjs} +1 -1
- package/dist/{vue-ui-scatter-BWmY2_ij.cjs → vue-ui-scatter-B7h_hWj7.cjs} +1 -1
- package/dist/{vue-ui-scatter-_DhEpcsw.js → vue-ui-scatter-DS9rUuE5.js} +12 -12
- package/dist/{vue-ui-skeleton-Dzehgcp3.js → vue-ui-skeleton-BARmXI9_.js} +3 -3
- package/dist/{vue-ui-skeleton-DvJP74jb.cjs → vue-ui-skeleton-C-I7hIHS.cjs} +1 -1
- package/dist/{vue-ui-smiley-BHd1V1Dv.js → vue-ui-smiley-Ce4Rju1r.js} +2 -2
- package/dist/{vue-ui-smiley-CtDCCsfg.cjs → vue-ui-smiley-DwI6j0i8.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DDf1hJwg.cjs → vue-ui-spark-trend-BfcDH-Gp.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DDX-fjR-.js → vue-ui-spark-trend-CE1USqg6.js} +5 -5
- package/dist/{vue-ui-sparkbar-BWeY-FcV.js → vue-ui-sparkbar-B3NBNGl8.js} +4 -4
- package/dist/{vue-ui-sparkbar-BT5NEz93.cjs → vue-ui-sparkbar-CdDBwkff.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-IYvYlZ57.cjs → vue-ui-sparkgauge-CPq_DRcO.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BQMHbq8E.js → vue-ui-sparkgauge-Kgl_vvc7.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-cjsCsNyf.cjs → vue-ui-sparkhistogram-B9Mf4nA9.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C5EdWvQP.js → vue-ui-sparkhistogram-DNvaByAm.js} +5 -5
- package/dist/{vue-ui-sparkline-CbKIpwVC.js → vue-ui-sparkline-6fUsXxoo.js} +4 -4
- package/dist/{vue-ui-sparkline-BwZJpAAf.cjs → vue-ui-sparkline-DPFtUR9k.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-COxIfFgm.js → vue-ui-sparkstackbar-B_O87Udb.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BVJU36Jz.cjs → vue-ui-sparkstackbar-D8gErBiD.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Dr5hRx6G.js → vue-ui-stackbar-SQkqb5uZ.js} +13 -13
- package/dist/{vue-ui-stackbar-CQ56hps8.cjs → vue-ui-stackbar-a7bzDCRQ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B_nfC_fx.cjs → vue-ui-strip-plot-BbCMpSG9.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Mct4OE0A.js → vue-ui-strip-plot-Czg_UcLg.js} +11 -11
- package/dist/{vue-ui-table-B6LG28n8.js → vue-ui-table-B0ANgSAH.js} +3 -3
- package/dist/{vue-ui-table-DE3wOTyH.cjs → vue-ui-table-DTys0wh5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DDOoKybT.js → vue-ui-table-heatmap---afBYht.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DuMRCIbx.cjs → vue-ui-table-heatmap-B46ApT8a.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-gZWWmkQe.cjs → vue-ui-table-sparkline-CSi_2E82.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D578FuNQ.js → vue-ui-table-sparkline-cuO4BEcb.js} +5 -5
- package/dist/{vue-ui-thermometer-BWHsyYj8.cjs → vue-ui-thermometer-Bco6ThIk.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DFbYODrU.js → vue-ui-thermometer-Cu3N2aZN.js} +7 -7
- package/dist/{vue-ui-timer-Bi6Q0m_J.js → vue-ui-timer-DnQAvYVy.js} +5 -5
- package/dist/{vue-ui-timer-s73pZhYM.cjs → vue-ui-timer-GkxVjTEC.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BcFJOrF8.cjs → vue-ui-tiremarks-CNW6BXVF.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-C68rB2kd.js → vue-ui-tiremarks-PX1AQ6u9.js} +7 -7
- package/dist/{vue-ui-treemap-b5rZtLKn.js → vue-ui-treemap-Drg5MEcW.js} +12 -12
- package/dist/{vue-ui-treemap-B7_kcMng.cjs → vue-ui-treemap-dm6Ion7A.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DyZ-gfQi.js → vue-ui-vertical-bar-BtkKFF7C.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Bw42kw9a.cjs → vue-ui-vertical-bar-eA-iYb9s.cjs} +1 -1
- package/dist/{vue-ui-waffle-CG05FL_H.js → vue-ui-waffle-BAFVYzdi.js} +12 -12
- package/dist/{vue-ui-waffle-tk3zMyjq.cjs → vue-ui-waffle-Bn77Yd88.cjs} +1 -1
- package/dist/{vue-ui-wheel-RzXEZFfN.cjs → vue-ui-wheel-D4VdCS3n.cjs} +1 -1
- package/dist/{vue-ui-wheel-BTbteaZS.js → vue-ui-wheel-fMANwaEy.js} +7 -7
- package/dist/{vue-ui-word-cloud-BKubtYCS.js → vue-ui-word-cloud-Du0UUBsh.js} +10 -10
- package/dist/{vue-ui-word-cloud-CUZ1Mm3Q.cjs → vue-ui-word-cloud-bX4J2Y8V.cjs} +1 -1
- package/dist/{vue-ui-world-BF0wSEJb.js → vue-ui-world-B-Guo08O.js} +11 -11
- package/dist/{vue-ui-world-BPcoReDh.cjs → vue-ui-world-BHNBu5o5.cjs} +1 -1
- package/dist/{vue-ui-xy-AgcMweTZ.js → vue-ui-xy-BN9Lh6Ic.js} +16 -16
- package/dist/{vue-ui-xy-C8ZEeV9g.cjs → vue-ui-xy-BkQt8l_A.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CYaJZj3B.js → vue-ui-xy-canvas-D9avmh08.js} +12 -12
- package/dist/{vue-ui-xy-canvas-CJl9RPzv.cjs → vue-ui-xy-canvas-cfQsHd-5.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BX4v5fiN.cjs +0 -9
- package/dist/vue-ui-flow-BSptjAOo.cjs +0 -1
- package/dist/vue-ui-flow-BtfK7Ixu.js +0 -655
|
@@ -0,0 +1,755 @@
|
|
|
1
|
+
import { computed as g, onMounted as et, ref as b, watch as tt, createElementBlock as m, openBlock as c, unref as d, normalizeStyle as P, normalizeClass as ze, createBlock as Y, createCommentVNode as T, createElementVNode as D, createVNode as ce, createSlots as ot, withCtx as w, renderSlot as k, normalizeProps as B, guardReactiveProps as G, Fragment as U, renderList as V, toDisplayString as W, createTextVNode as lt, nextTick as at } from "vue";
|
|
2
|
+
import { u as nt, o as st, e as rt, c as de, t as ut, p as S, a as it, b as ct, v as $, d as dt, f as j, X as vt, G as Ae, J as ft, i as ve, q as ht, r as pt, x as gt } from "./index-bVqxfptX.js";
|
|
3
|
+
import { _ as mt } from "./Title-B55VMGbm.js";
|
|
4
|
+
import { u as yt, U as bt } from "./usePrinter-BbeIGqpA.js";
|
|
5
|
+
import { D as kt } from "./DataTable-BaAjwD5U.js";
|
|
6
|
+
import Ct from "./vue-ui-accordion-DQKCLM2T.js";
|
|
7
|
+
import wt from "./vue-ui-skeleton-BARmXI9_.js";
|
|
8
|
+
import { u as He } from "./useNestedProp-DU-vsdTb.js";
|
|
9
|
+
import { _ as $t } from "./PackageVersion-gI4tUgWr.js";
|
|
10
|
+
import { _ as _t } from "./PenAndPaper-Di3hcmp3.js";
|
|
11
|
+
import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
+
import { u as Tt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
+
import { _ as Nt } from "./Tooltip-CMiCE06y.js";
|
|
14
|
+
import { L as Ot } from "./Legend-DqxOfhbM.js";
|
|
15
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Ft = ["id"], Lt = {
|
|
17
|
+
key: 1,
|
|
18
|
+
ref: "noTitle",
|
|
19
|
+
class: "vue-data-ui-no-title-space",
|
|
20
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
21
|
+
}, Pt = {
|
|
22
|
+
key: 2,
|
|
23
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
24
|
+
}, It = ["xmlns", "viewBox"], Mt = ["width", "height"], Et = ["id"], zt = ["stop-color"], At = ["stop-color"], Ht = ["d", "fill", "stroke", "stroke-width"], Yt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Dt = ["x", "y", "font-size", "fill"], Bt = ["x", "y", "font-size", "fill"], Gt = {
|
|
25
|
+
key: 4,
|
|
26
|
+
class: "vue-data-ui-watermark"
|
|
27
|
+
}, Rt = ["onClick"], Ut = {
|
|
28
|
+
key: 6,
|
|
29
|
+
ref: "source",
|
|
30
|
+
dir: "auto"
|
|
31
|
+
}, Vt = ["innerHTML"], Wt = {
|
|
32
|
+
__name: "vue-ui-flow",
|
|
33
|
+
props: {
|
|
34
|
+
config: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default() {
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
dataset: {
|
|
41
|
+
type: Array,
|
|
42
|
+
default() {
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(Ye, { expose: De }) {
|
|
48
|
+
const { vue_ui_flow: Be } = nt(), _ = Ye, Q = g(() => !!_.dataset && _.dataset.length);
|
|
49
|
+
et(() => {
|
|
50
|
+
fe();
|
|
51
|
+
});
|
|
52
|
+
function fe() {
|
|
53
|
+
st(_.dataset) && rt({
|
|
54
|
+
componentName: "VueUiFlow",
|
|
55
|
+
type: "dataset"
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
const ee = b(de()), te = b(null), he = b(0), pe = b(0), oe = b(!1), le = b(""), Ge = b(null), E = b(!1);
|
|
59
|
+
function Re(t) {
|
|
60
|
+
E.value = t, he.value += 1;
|
|
61
|
+
}
|
|
62
|
+
const e = g({
|
|
63
|
+
get: () => be(),
|
|
64
|
+
set: (t) => t
|
|
65
|
+
}), { userOptionsVisible: ae, setUserOptionsVisibility: ge, keepUserOptionState: me } = xt({ config: e.value }), { svgRef: ye } = Tt({
|
|
66
|
+
config: e.value.style.chart.title
|
|
67
|
+
});
|
|
68
|
+
function be() {
|
|
69
|
+
const t = He({
|
|
70
|
+
userConfig: _.config,
|
|
71
|
+
defaultConfig: Be
|
|
72
|
+
});
|
|
73
|
+
let l = t;
|
|
74
|
+
return t.theme ? l = {
|
|
75
|
+
...He({
|
|
76
|
+
userConfig: it.vue_ui_flow[t.theme] || _.config,
|
|
77
|
+
defaultConfig: t
|
|
78
|
+
}),
|
|
79
|
+
customPalette: ut[t.theme] || S
|
|
80
|
+
} : l = t, l.nodeCategories = _.config.nodeCategories || {}, l.nodeCategoryColors = _.config.nodeCategoryColors || {}, l;
|
|
81
|
+
}
|
|
82
|
+
tt(
|
|
83
|
+
() => _.config,
|
|
84
|
+
(t) => {
|
|
85
|
+
e.value = be(), ae.value = !e.value.userOptions.showOnChartHover, fe(), pe.value += 1, N.value.showTable = e.value.table.show;
|
|
86
|
+
},
|
|
87
|
+
{ deep: !0 }
|
|
88
|
+
);
|
|
89
|
+
const { isPrinting: ke, isImaging: Ce, generatePdf: we, generateImage: $e } = yt({
|
|
90
|
+
elementId: `flow_${ee.value}`,
|
|
91
|
+
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
92
|
+
options: e.value.userOptions.print
|
|
93
|
+
}), Ue = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), X = g(() => ct(e.value.customPalette)), _e = g(() => e.value.style.chart.nodes.gap), z = g(() => e.value.style.chart.nodes.width), N = b({
|
|
94
|
+
showTable: e.value.table.show,
|
|
95
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
96
|
+
}), Ve = g(() => e.value.style.chart.links.width), ne = g(() => !_.dataset || !_.dataset.length ? [] : _.dataset.map((t, l) => [
|
|
97
|
+
t[0],
|
|
98
|
+
t[1],
|
|
99
|
+
$(t[2]),
|
|
100
|
+
t[3] ? dt(t[3]) : X.value[l] || X.value[l % X.value.length] || S[l] || S[l % S.length]
|
|
101
|
+
])), xe = g(() => {
|
|
102
|
+
const t = {};
|
|
103
|
+
function l(a) {
|
|
104
|
+
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
105
|
+
}
|
|
106
|
+
ne.value.forEach(([a, s, h]) => {
|
|
107
|
+
l(a), l(s), t[a].outflow += h, t[s].inflow += h;
|
|
108
|
+
});
|
|
109
|
+
let o = 0;
|
|
110
|
+
for (const a in t) {
|
|
111
|
+
const s = Math.max(t[a].inflow, t[a].outflow);
|
|
112
|
+
o = Math.max(o, s);
|
|
113
|
+
}
|
|
114
|
+
return o;
|
|
115
|
+
});
|
|
116
|
+
function We(t) {
|
|
117
|
+
return t / xe.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
118
|
+
}
|
|
119
|
+
function je(t) {
|
|
120
|
+
const l = e.value.style.chart.nodes.minHeight;
|
|
121
|
+
return (t - l) / 100 * xe.value;
|
|
122
|
+
}
|
|
123
|
+
function Xe(t) {
|
|
124
|
+
const l = {}, o = {};
|
|
125
|
+
function a(n, u) {
|
|
126
|
+
l[n] || (l[n] = {
|
|
127
|
+
height: 0,
|
|
128
|
+
level: null,
|
|
129
|
+
inflow: 0,
|
|
130
|
+
outflow: 0,
|
|
131
|
+
uid: de()
|
|
132
|
+
}), l[n].level === null && (l[n].level = u), o[u] || (o[u] = []), o[u].includes(n) || o[u].push(n);
|
|
133
|
+
}
|
|
134
|
+
t.forEach(([n, u, i]) => {
|
|
135
|
+
var r;
|
|
136
|
+
const v = ((r = l[n]) == null ? void 0 : r.level) ?? 0, p = v + 1;
|
|
137
|
+
a(n, v), a(u, p), l[n].children || (l[n].children = []), l[n].children.push({ target: u, value: i }), l[n].outflow += i, l[u].inflow += i;
|
|
138
|
+
});
|
|
139
|
+
const s = new Set(t.map(([n]) => n)), h = new Set(t.map(([, n]) => n)), F = Array.from(s).filter((n) => !h.has(n)), H = {};
|
|
140
|
+
F.forEach((n, u) => {
|
|
141
|
+
H[n] = X.value[u] || S[u % S.length];
|
|
142
|
+
});
|
|
143
|
+
const x = {};
|
|
144
|
+
t.forEach(([n, u, i, v]) => {
|
|
145
|
+
v && (x[n] = v, x[u] = v);
|
|
146
|
+
}), Object.keys(l).forEach((n, u) => {
|
|
147
|
+
var p, r;
|
|
148
|
+
const i = (p = e.value.nodeCategories) == null ? void 0 : p[n], v = i ? (r = e.value.nodeCategoryColors) == null ? void 0 : r[i] : null;
|
|
149
|
+
l[n].color = x[n] || // 1) explicit
|
|
150
|
+
v || // 2) category
|
|
151
|
+
(F.includes(n) ? H[n] : null) || // 3) root
|
|
152
|
+
S[u % S.length];
|
|
153
|
+
});
|
|
154
|
+
for (const n in l)
|
|
155
|
+
l[n].height = We(
|
|
156
|
+
Math.max(l[n].inflow, l[n].outflow)
|
|
157
|
+
), l[n].name = n;
|
|
158
|
+
const O = {};
|
|
159
|
+
for (const n in o) {
|
|
160
|
+
let u = 0;
|
|
161
|
+
o[n].forEach((i, v) => {
|
|
162
|
+
const p = l[i];
|
|
163
|
+
O[i] = {
|
|
164
|
+
x: parseInt(n, 10) * Ve.value + e.value.style.chart.padding.left,
|
|
165
|
+
y: u,
|
|
166
|
+
absoluteY: u,
|
|
167
|
+
height: p.height,
|
|
168
|
+
i: v,
|
|
169
|
+
color: p.color,
|
|
170
|
+
value: je(p.height)
|
|
171
|
+
}, u += p.height + _e.value;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
const M = [];
|
|
175
|
+
for (const n of Object.keys(l)) {
|
|
176
|
+
let u = O[n].absoluteY + e.value.style.chart.padding.top;
|
|
177
|
+
const i = l[n], v = O[n];
|
|
178
|
+
i.children && i.children.forEach(({ target: p, value: r }) => {
|
|
179
|
+
const f = O[p], L = l[p], K = $(u), Me = $(
|
|
180
|
+
u + r / i.outflow * v.height
|
|
181
|
+
), ie = $(
|
|
182
|
+
f.y + e.value.style.chart.padding.top
|
|
183
|
+
), Ee = $(
|
|
184
|
+
ie + r / L.inflow * f.height
|
|
185
|
+
);
|
|
186
|
+
M.push({
|
|
187
|
+
id: de(),
|
|
188
|
+
source: n,
|
|
189
|
+
target: p,
|
|
190
|
+
path: `M ${$(v.x + z.value)} ${K} L ${$(v.x + z.value)} ${Me} L ${$(f.x)} ${Ee} L ${$(f.x)} ${ie} Z`,
|
|
191
|
+
value: r,
|
|
192
|
+
sourceColor: i.color,
|
|
193
|
+
targetColor: L.color
|
|
194
|
+
}), u += Me - K, O[p].y += Ee - ie;
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
return { nodeCoordinates: O, links: M };
|
|
198
|
+
}
|
|
199
|
+
const y = g(() => {
|
|
200
|
+
const t = Xe(_.dataset);
|
|
201
|
+
return {
|
|
202
|
+
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
203
|
+
...t.nodeCoordinates[l],
|
|
204
|
+
name: l
|
|
205
|
+
})),
|
|
206
|
+
links: t.links
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
g(() => qe(y.value.nodes));
|
|
210
|
+
function qe(t) {
|
|
211
|
+
const l = {};
|
|
212
|
+
for (const a in t) {
|
|
213
|
+
const { x: s, height: h } = t[a];
|
|
214
|
+
l[s] || (l[s] = 0), l[s] += h + _e.value;
|
|
215
|
+
}
|
|
216
|
+
return Math.max(...Object.values(l));
|
|
217
|
+
}
|
|
218
|
+
const R = g(() => {
|
|
219
|
+
const { left: t, right: l, top: o, bottom: a } = e.value.style.chart.padding, s = Math.max(...y.value.nodes.map((x) => x.x)), h = Math.ceil(s + z.value + l), F = Math.max(...y.value.nodes.map((x) => x.absoluteY + x.height)), H = Math.ceil(F + a);
|
|
220
|
+
return { width: h, height: H, left: t, top: o, right: l, bottom: a };
|
|
221
|
+
});
|
|
222
|
+
function Je(t) {
|
|
223
|
+
const l = {}, o = {}, a = /* @__PURE__ */ new Set();
|
|
224
|
+
return ne.value.forEach(([s, h, F]) => {
|
|
225
|
+
l[s] || (l[s] = []), o[h] || (o[h] = []), l[s].push(h), o[h].push(s);
|
|
226
|
+
}), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
|
|
227
|
+
}
|
|
228
|
+
const C = b(null), A = b(null), se = b(null), q = b(!1);
|
|
229
|
+
function Ze(t) {
|
|
230
|
+
I.value = [], C.value = Je(t.name), A.value = t.name;
|
|
231
|
+
const l = t.name, o = ne.value;
|
|
232
|
+
let a = 0, s = 0, h = [], F = [];
|
|
233
|
+
const H = new Set(o.map(([r]) => r)), x = new Set(o.map(([, r]) => r)), Ie = Array.from(H).filter((r) => !x.has(r)), O = o.filter(([r]) => Ie.includes(r)).reduce((r, [f, L, K]) => r + K, 0), M = {};
|
|
234
|
+
y.value.nodes.forEach((r) => {
|
|
235
|
+
M[r.name] = r.color;
|
|
236
|
+
}), o.forEach(([r, f, L]) => {
|
|
237
|
+
f === l && (a += L, h.push({ source: r, value: L, color: M[r] })), r === l && (s += L, F.push({ target: f, value: L, color: M[f] }));
|
|
238
|
+
});
|
|
239
|
+
const n = Math.max(a, s), u = O > 0 ? n / O * 100 : 0, i = {
|
|
240
|
+
name: l,
|
|
241
|
+
inflow: a,
|
|
242
|
+
outflow: s,
|
|
243
|
+
from: h,
|
|
244
|
+
to: F,
|
|
245
|
+
percentOfTotal: u,
|
|
246
|
+
color: M[l] || "#000000"
|
|
247
|
+
};
|
|
248
|
+
se.value = { datapoint: i }, oe.value = !0;
|
|
249
|
+
let v = "";
|
|
250
|
+
const p = e.value.style.chart.tooltip.customFormat;
|
|
251
|
+
if (q.value = !1, gt(p))
|
|
252
|
+
try {
|
|
253
|
+
const r = p({
|
|
254
|
+
datapoint: i,
|
|
255
|
+
series: y.value,
|
|
256
|
+
config: e.value
|
|
257
|
+
});
|
|
258
|
+
typeof r == "string" && (le.value = r, q.value = !0);
|
|
259
|
+
} catch {
|
|
260
|
+
console.warn("Custom format cannot be applied.");
|
|
261
|
+
}
|
|
262
|
+
if (!q.value) {
|
|
263
|
+
const r = e.value.style.chart.tooltip.showPercentage ? `<div>${j({
|
|
264
|
+
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
265
|
+
v: i.percentOfTotal,
|
|
266
|
+
s: "%",
|
|
267
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
268
|
+
})}</div>` : "";
|
|
269
|
+
v += `<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:${i.color}">⏹</span>${i.name}${r}</div>`, i.from.length && (v += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, i.from.forEach((f) => {
|
|
270
|
+
v += `<div><span style="color:${f.color}">⏹←</span> ${f.source}: ${ve(
|
|
271
|
+
e.value.style.chart.nodes.labels.formatter,
|
|
272
|
+
f.value,
|
|
273
|
+
j({
|
|
274
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
275
|
+
v: f.value,
|
|
276
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
277
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
278
|
+
})
|
|
279
|
+
)}</div>`;
|
|
280
|
+
})), i.to.length && (v += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, i.to.forEach((f) => {
|
|
281
|
+
v += `<div><span style="color:${f.color}">⏹→</span> ${f.target}: ${ve(
|
|
282
|
+
e.value.style.chart.nodes.labels.formatter,
|
|
283
|
+
f.value,
|
|
284
|
+
j({
|
|
285
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
286
|
+
v: f.value,
|
|
287
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
288
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
289
|
+
})
|
|
290
|
+
)}</div>`;
|
|
291
|
+
})), le.value = v;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
function Te() {
|
|
295
|
+
C.value = null, A.value = null, oe.value = !1;
|
|
296
|
+
}
|
|
297
|
+
const Ne = g(() => y.value.links.map(
|
|
298
|
+
({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
|
|
299
|
+
source: t,
|
|
300
|
+
target: l,
|
|
301
|
+
sourceColor: o,
|
|
302
|
+
targetColor: a,
|
|
303
|
+
value: s
|
|
304
|
+
})
|
|
305
|
+
));
|
|
306
|
+
function Oe() {
|
|
307
|
+
at(() => {
|
|
308
|
+
const t = Ne.value.map((a, s) => [[a.source], [a.target], [a.value]]), l = [
|
|
309
|
+
[e.value.style.chart.title.text],
|
|
310
|
+
[e.value.style.chart.title.subtitle.text],
|
|
311
|
+
[
|
|
312
|
+
[e.value.table.columnNames.source],
|
|
313
|
+
[e.value.table.columnNames.target],
|
|
314
|
+
[e.value.table.columnNames.value]
|
|
315
|
+
]
|
|
316
|
+
].concat(t), o = ht(l);
|
|
317
|
+
pt({
|
|
318
|
+
csvContent: o,
|
|
319
|
+
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
const J = g(() => {
|
|
324
|
+
const t = [
|
|
325
|
+
e.value.table.columnNames.source,
|
|
326
|
+
e.value.table.columnNames.target,
|
|
327
|
+
e.value.table.columnNames.value
|
|
328
|
+
], l = Ne.value.map((s, h) => [
|
|
329
|
+
{
|
|
330
|
+
color: s.sourceColor,
|
|
331
|
+
name: s.source
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
color: s.targetColor,
|
|
335
|
+
name: s.target
|
|
336
|
+
},
|
|
337
|
+
j({
|
|
338
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
339
|
+
v: s.value,
|
|
340
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
341
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
342
|
+
})
|
|
343
|
+
]), o = {
|
|
344
|
+
th: {
|
|
345
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
346
|
+
color: e.value.table.th.color,
|
|
347
|
+
outline: e.value.table.th.outline
|
|
348
|
+
},
|
|
349
|
+
td: {
|
|
350
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
351
|
+
color: e.value.table.td.color,
|
|
352
|
+
outline: e.value.table.td.outline
|
|
353
|
+
},
|
|
354
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
355
|
+
};
|
|
356
|
+
return {
|
|
357
|
+
colNames: [
|
|
358
|
+
e.value.table.columnNames.source,
|
|
359
|
+
e.value.table.columnNames.target,
|
|
360
|
+
e.value.table.columnNames.value
|
|
361
|
+
],
|
|
362
|
+
head: t,
|
|
363
|
+
body: l,
|
|
364
|
+
config: o
|
|
365
|
+
};
|
|
366
|
+
});
|
|
367
|
+
function Ke() {
|
|
368
|
+
return y.value;
|
|
369
|
+
}
|
|
370
|
+
function Se() {
|
|
371
|
+
N.value.showTable = !N.value.showTable;
|
|
372
|
+
}
|
|
373
|
+
const Z = b(!1);
|
|
374
|
+
function re() {
|
|
375
|
+
Z.value = !Z.value;
|
|
376
|
+
}
|
|
377
|
+
function Fe() {
|
|
378
|
+
N.value.showTooltip = !N.value.showTooltip;
|
|
379
|
+
}
|
|
380
|
+
const Le = g(() => {
|
|
381
|
+
const t = new Set(
|
|
382
|
+
y.value.nodes.map(
|
|
383
|
+
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
384
|
+
)
|
|
385
|
+
);
|
|
386
|
+
return Array.from(t).map((l) => ({
|
|
387
|
+
name: l,
|
|
388
|
+
color: e.value.nodeCategoryColors[l] || S[0],
|
|
389
|
+
shape: "square",
|
|
390
|
+
count: y.value.nodes.filter(
|
|
391
|
+
(o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
|
|
392
|
+
).length
|
|
393
|
+
})).map((l, o) => ({
|
|
394
|
+
...l,
|
|
395
|
+
segregate: () => ue({ legend: l, i: o }),
|
|
396
|
+
opacity: I.value.length ? I.value.includes(o) ? 1 : 0.5 : 1
|
|
397
|
+
}));
|
|
398
|
+
}), Pe = g(
|
|
399
|
+
() => Le.value.filter((t) => t.name !== "__uncategorized__")
|
|
400
|
+
), I = b([]);
|
|
401
|
+
function ue({ legend: t, i: l }) {
|
|
402
|
+
var a;
|
|
403
|
+
const o = t.name;
|
|
404
|
+
if ((a = C.value) != null && a.every(
|
|
405
|
+
(s) => e.value.nodeCategories[s] === o
|
|
406
|
+
)) {
|
|
407
|
+
C.value = null, A.value = null, I.value = [];
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
I.value = [l], C.value = y.value.nodes.filter((s) => e.value.nodeCategories[s.name] === o).map((s) => s.name), A.value = null;
|
|
411
|
+
}
|
|
412
|
+
const Qe = g(() => ({
|
|
413
|
+
cy: "flow-legend",
|
|
414
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
415
|
+
color: e.value.style.chart.legend.color,
|
|
416
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
417
|
+
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
418
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
419
|
+
}));
|
|
420
|
+
return De({
|
|
421
|
+
getData: Ke,
|
|
422
|
+
generateCsv: Oe,
|
|
423
|
+
generateImage: $e,
|
|
424
|
+
generatePdf: we,
|
|
425
|
+
toggleTable: Se,
|
|
426
|
+
toggleAnnotator: re,
|
|
427
|
+
toggleTooltip: Fe,
|
|
428
|
+
drillCategory: ue,
|
|
429
|
+
unselectNode: Te
|
|
430
|
+
}), (t, l) => (c(), m("div", {
|
|
431
|
+
ref_key: "flowChart",
|
|
432
|
+
ref: te,
|
|
433
|
+
class: ze(`vue-ui-flow ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
434
|
+
style: P(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
435
|
+
id: `flow_${ee.value}`,
|
|
436
|
+
onMouseenter: l[3] || (l[3] = () => d(ge)(!0)),
|
|
437
|
+
onMouseleave: l[4] || (l[4] = () => d(ge)(!1))
|
|
438
|
+
}, [
|
|
439
|
+
e.value.userOptions.buttons.annotator ? (c(), Y(_t, {
|
|
440
|
+
key: 0,
|
|
441
|
+
svgRef: d(ye),
|
|
442
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
443
|
+
color: e.value.style.chart.color,
|
|
444
|
+
active: Z.value,
|
|
445
|
+
onClose: re
|
|
446
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
|
|
447
|
+
Ue.value ? (c(), m("div", Lt, null, 512)) : T("", !0),
|
|
448
|
+
e.value.style.chart.title.text ? (c(), m("div", Pt, [
|
|
449
|
+
(c(), Y(mt, {
|
|
450
|
+
key: `title_${pe.value}`,
|
|
451
|
+
config: {
|
|
452
|
+
title: {
|
|
453
|
+
cy: "flow-title",
|
|
454
|
+
...e.value.style.chart.title
|
|
455
|
+
},
|
|
456
|
+
subtitle: {
|
|
457
|
+
cy: "flow-subtitle",
|
|
458
|
+
...e.value.style.chart.title.subtitle
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}, null, 8, ["config"]))
|
|
462
|
+
])) : T("", !0),
|
|
463
|
+
e.value.userOptions.show && Q.value && (d(me) || d(ae)) ? (c(), Y(bt, {
|
|
464
|
+
ref: "details",
|
|
465
|
+
key: `user_option_${he.value}`,
|
|
466
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
467
|
+
color: e.value.style.chart.color,
|
|
468
|
+
isPrinting: d(ke),
|
|
469
|
+
isImaging: d(Ce),
|
|
470
|
+
uid: ee.value,
|
|
471
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
472
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
473
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
474
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
475
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
476
|
+
isFullscreen: E.value,
|
|
477
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
478
|
+
chartElement: te.value,
|
|
479
|
+
position: e.value.userOptions.position,
|
|
480
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
481
|
+
isAnnotation: Z.value,
|
|
482
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
483
|
+
isTooltip: N.value.showTooltip,
|
|
484
|
+
onToggleTooltip: Fe,
|
|
485
|
+
onToggleFullscreen: Re,
|
|
486
|
+
onGeneratePdf: d(we),
|
|
487
|
+
onGenerateCsv: Oe,
|
|
488
|
+
onGenerateImage: d($e),
|
|
489
|
+
onToggleTable: Se,
|
|
490
|
+
onToggleAnnotator: re,
|
|
491
|
+
style: P({
|
|
492
|
+
visibility: d(me) ? d(ae) ? "visible" : "hidden" : "visible"
|
|
493
|
+
})
|
|
494
|
+
}, ot({ _: 2 }, [
|
|
495
|
+
t.$slots.menuIcon ? {
|
|
496
|
+
name: "menuIcon",
|
|
497
|
+
fn: w(({ isOpen: o, color: a }) => [
|
|
498
|
+
k(t.$slots, "menuIcon", B(G({ isOpen: o, color: a })), void 0, !0)
|
|
499
|
+
]),
|
|
500
|
+
key: "0"
|
|
501
|
+
} : void 0,
|
|
502
|
+
t.$slots.optionTooltip ? {
|
|
503
|
+
name: "optionTooltip",
|
|
504
|
+
fn: w(() => [
|
|
505
|
+
k(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
506
|
+
]),
|
|
507
|
+
key: "1"
|
|
508
|
+
} : void 0,
|
|
509
|
+
t.$slots.optionPdf ? {
|
|
510
|
+
name: "optionPdf",
|
|
511
|
+
fn: w(() => [
|
|
512
|
+
k(t.$slots, "optionPdf", {}, void 0, !0)
|
|
513
|
+
]),
|
|
514
|
+
key: "2"
|
|
515
|
+
} : void 0,
|
|
516
|
+
t.$slots.optionCsv ? {
|
|
517
|
+
name: "optionCsv",
|
|
518
|
+
fn: w(() => [
|
|
519
|
+
k(t.$slots, "optionCsv", {}, void 0, !0)
|
|
520
|
+
]),
|
|
521
|
+
key: "3"
|
|
522
|
+
} : void 0,
|
|
523
|
+
t.$slots.optionImg ? {
|
|
524
|
+
name: "optionImg",
|
|
525
|
+
fn: w(() => [
|
|
526
|
+
k(t.$slots, "optionImg", {}, void 0, !0)
|
|
527
|
+
]),
|
|
528
|
+
key: "4"
|
|
529
|
+
} : void 0,
|
|
530
|
+
t.$slots.optionTable ? {
|
|
531
|
+
name: "optionTable",
|
|
532
|
+
fn: w(() => [
|
|
533
|
+
k(t.$slots, "optionTable", {}, void 0, !0)
|
|
534
|
+
]),
|
|
535
|
+
key: "5"
|
|
536
|
+
} : void 0,
|
|
537
|
+
t.$slots.optionFullscreen ? {
|
|
538
|
+
name: "optionFullscreen",
|
|
539
|
+
fn: w(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
540
|
+
k(t.$slots, "optionFullscreen", B(G({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
541
|
+
]),
|
|
542
|
+
key: "6"
|
|
543
|
+
} : void 0,
|
|
544
|
+
t.$slots.optionAnnotator ? {
|
|
545
|
+
name: "optionAnnotator",
|
|
546
|
+
fn: w(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
547
|
+
k(t.$slots, "optionAnnotator", B(G({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
548
|
+
]),
|
|
549
|
+
key: "7"
|
|
550
|
+
} : void 0
|
|
551
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
|
|
552
|
+
(c(), m("svg", {
|
|
553
|
+
ref_key: "svgRef",
|
|
554
|
+
ref: ye,
|
|
555
|
+
xmlns: d(vt),
|
|
556
|
+
viewBox: `0 0 ${R.value.width} ${R.value.height}`,
|
|
557
|
+
class: ze({
|
|
558
|
+
"vue-data-ui-fullscreen--on": E.value,
|
|
559
|
+
"vue-data-ui-fulscreen--off": !E.value
|
|
560
|
+
}),
|
|
561
|
+
style: P(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
562
|
+
}, [
|
|
563
|
+
ce($t),
|
|
564
|
+
t.$slots["chart-background"] ? (c(), m("foreignObject", {
|
|
565
|
+
key: 0,
|
|
566
|
+
x: 0,
|
|
567
|
+
y: 0,
|
|
568
|
+
width: R.value.width,
|
|
569
|
+
height: R.value.height,
|
|
570
|
+
style: {
|
|
571
|
+
pointerEvents: "none"
|
|
572
|
+
}
|
|
573
|
+
}, [
|
|
574
|
+
k(t.$slots, "chart-background", {}, void 0, !0)
|
|
575
|
+
], 8, Mt)) : T("", !0),
|
|
576
|
+
D("defs", null, [
|
|
577
|
+
(c(!0), m(U, null, V(y.value.links, (o, a) => (c(), m("linearGradient", {
|
|
578
|
+
id: o.id,
|
|
579
|
+
x1: "0%",
|
|
580
|
+
y1: "0%",
|
|
581
|
+
x2: "100%",
|
|
582
|
+
y2: "0%"
|
|
583
|
+
}, [
|
|
584
|
+
D("stop", {
|
|
585
|
+
offset: "0%",
|
|
586
|
+
"stop-color": o.sourceColor
|
|
587
|
+
}, null, 8, zt),
|
|
588
|
+
D("stop", {
|
|
589
|
+
offset: "100%",
|
|
590
|
+
"stop-color": o.targetColor
|
|
591
|
+
}, null, 8, At)
|
|
592
|
+
], 8, Et))), 256))
|
|
593
|
+
]),
|
|
594
|
+
(c(!0), m(U, null, V(y.value.links, (o) => (c(), m("path", {
|
|
595
|
+
class: "vue-ui-flow-link",
|
|
596
|
+
d: o.path,
|
|
597
|
+
fill: `url(#${o.id})`,
|
|
598
|
+
stroke: e.value.style.chart.links.stroke,
|
|
599
|
+
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
600
|
+
style: P(`
|
|
601
|
+
opacity:${C.value ? C.value.includes(o.source) && C.value.includes(o.target) ? 1 : 0.3 : A.value ? [o.target, o.source].includes(A.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
602
|
+
`)
|
|
603
|
+
}, null, 12, Ht))), 256)),
|
|
604
|
+
(c(!0), m(U, null, V(y.value.nodes, (o, a) => (c(), m("rect", {
|
|
605
|
+
class: "vue-ui-flow-node",
|
|
606
|
+
x: o.x,
|
|
607
|
+
y: d($)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
608
|
+
height: d($)(o.height),
|
|
609
|
+
width: z.value,
|
|
610
|
+
fill: o.color,
|
|
611
|
+
stroke: e.value.style.chart.nodes.stroke,
|
|
612
|
+
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
613
|
+
onMouseenter: (s) => Ze(o),
|
|
614
|
+
onMouseleave: l[0] || (l[0] = (s) => Te()),
|
|
615
|
+
style: P(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.3 : 1}`)
|
|
616
|
+
}, null, 44, Yt))), 256)),
|
|
617
|
+
(c(!0), m(U, null, V(y.value.nodes, (o, a) => (c(), m("text", {
|
|
618
|
+
x: o.x + z.value / 2,
|
|
619
|
+
y: d($)(
|
|
620
|
+
o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
621
|
+
) + e.value.style.chart.padding.top,
|
|
622
|
+
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
623
|
+
fill: d(Ae)(o.color),
|
|
624
|
+
"text-anchor": "middle",
|
|
625
|
+
style: P(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
626
|
+
}, W(e.value.style.chart.nodes.labels.abbreviation.use ? d(ft)({
|
|
627
|
+
source: o.name,
|
|
628
|
+
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
629
|
+
}) : o.name), 13, Dt))), 256)),
|
|
630
|
+
(c(!0), m(U, null, V(y.value.nodes, (o, a) => (c(), m("text", {
|
|
631
|
+
x: o.x + z.value / 2,
|
|
632
|
+
y: d($)(
|
|
633
|
+
o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
634
|
+
) + e.value.style.chart.padding.top,
|
|
635
|
+
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
636
|
+
fill: d(Ae)(o.color),
|
|
637
|
+
"text-anchor": "middle",
|
|
638
|
+
style: P(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
639
|
+
}, W(d(ve)(
|
|
640
|
+
e.value.style.chart.nodes.labels.formatter,
|
|
641
|
+
o.value,
|
|
642
|
+
d(j)({
|
|
643
|
+
p: e.value.style.chart.nodes.labels.prefix,
|
|
644
|
+
v: o.value,
|
|
645
|
+
s: e.value.style.chart.nodes.labels.suffix,
|
|
646
|
+
r: e.value.style.chart.nodes.labels.rounding
|
|
647
|
+
}),
|
|
648
|
+
{ datapoint: o, seriesIndex: a }
|
|
649
|
+
)), 13, Bt))), 256)),
|
|
650
|
+
k(t.$slots, "svg", { svg: R.value }, void 0, !0)
|
|
651
|
+
], 14, It)),
|
|
652
|
+
t.$slots.watermark ? (c(), m("div", Gt, [
|
|
653
|
+
k(t.$slots, "watermark", B(G({ isPrinting: d(ke) || d(Ce) })), void 0, !0)
|
|
654
|
+
])) : T("", !0),
|
|
655
|
+
Q.value ? T("", !0) : (c(), Y(wt, {
|
|
656
|
+
key: 5,
|
|
657
|
+
config: {
|
|
658
|
+
type: "flow",
|
|
659
|
+
style: {
|
|
660
|
+
backgroundColor: e.value.style.chart.backgroundColor
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}, null, 8, ["config"])),
|
|
664
|
+
D("div", {
|
|
665
|
+
ref_key: "chartLegend",
|
|
666
|
+
ref: Ge
|
|
667
|
+
}, [
|
|
668
|
+
e.value.style.chart.legend.show && Pe.value.length ? (c(), Y(Ot, {
|
|
669
|
+
key: 0,
|
|
670
|
+
legendSet: Pe.value,
|
|
671
|
+
config: Qe.value,
|
|
672
|
+
onClickMarker: l[1] || (l[1] = (o) => ue(o))
|
|
673
|
+
}, {
|
|
674
|
+
item: w(({ legend: o, index: a }) => [
|
|
675
|
+
D("div", {
|
|
676
|
+
onClick: (s) => o.segregate(),
|
|
677
|
+
style: P(`opacity:${I.value.length ? I.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
678
|
+
}, W(o.name) + " (" + W(o.count) + ") ", 13, Rt)
|
|
679
|
+
]),
|
|
680
|
+
_: 1
|
|
681
|
+
}, 8, ["legendSet", "config"])) : T("", !0),
|
|
682
|
+
k(t.$slots, "legend", { legend: Le.value }, void 0, !0)
|
|
683
|
+
], 512),
|
|
684
|
+
t.$slots.source ? (c(), m("div", Ut, [
|
|
685
|
+
k(t.$slots, "source", {}, void 0, !0)
|
|
686
|
+
], 512)) : T("", !0),
|
|
687
|
+
ce(Nt, {
|
|
688
|
+
show: N.value.showTooltip && oe.value,
|
|
689
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
690
|
+
color: e.value.style.chart.tooltip.color,
|
|
691
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
692
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
693
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
694
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
695
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
696
|
+
position: e.value.style.chart.tooltip.position,
|
|
697
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
698
|
+
parent: te.value,
|
|
699
|
+
content: le.value,
|
|
700
|
+
isCustom: q.value,
|
|
701
|
+
isFullscreen: E.value
|
|
702
|
+
}, {
|
|
703
|
+
"tooltip-before": w(() => [
|
|
704
|
+
k(t.$slots, "tooltip-before", B(G({ ...se.value })), void 0, !0)
|
|
705
|
+
]),
|
|
706
|
+
"tooltip-after": w(() => [
|
|
707
|
+
k(t.$slots, "tooltip-after", B(G({ ...se.value })), void 0, !0)
|
|
708
|
+
]),
|
|
709
|
+
_: 3
|
|
710
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
711
|
+
Q.value ? (c(), Y(Ct, {
|
|
712
|
+
key: 7,
|
|
713
|
+
hideDetails: "",
|
|
714
|
+
config: {
|
|
715
|
+
open: N.value.showTable,
|
|
716
|
+
maxHeight: 1e4,
|
|
717
|
+
body: {
|
|
718
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
719
|
+
color: e.value.style.chart.color
|
|
720
|
+
},
|
|
721
|
+
head: {
|
|
722
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
723
|
+
color: e.value.style.chart.color
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}, {
|
|
727
|
+
content: w(() => [
|
|
728
|
+
ce(kt, {
|
|
729
|
+
colNames: J.value.colNames,
|
|
730
|
+
head: J.value.head,
|
|
731
|
+
body: J.value.body,
|
|
732
|
+
config: J.value.config,
|
|
733
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
734
|
+
onClose: l[2] || (l[2] = (o) => N.value.showTable = !1)
|
|
735
|
+
}, {
|
|
736
|
+
th: w(({ th: o }) => [
|
|
737
|
+
D("div", {
|
|
738
|
+
innerHTML: o,
|
|
739
|
+
style: { display: "flex", "align-items": "center" }
|
|
740
|
+
}, null, 8, Vt)
|
|
741
|
+
]),
|
|
742
|
+
td: w(({ td: o }) => [
|
|
743
|
+
lt(W(o.name || o), 1)
|
|
744
|
+
]),
|
|
745
|
+
_: 1
|
|
746
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
747
|
+
]),
|
|
748
|
+
_: 1
|
|
749
|
+
}, 8, ["config"])) : T("", !0)
|
|
750
|
+
], 46, Ft));
|
|
751
|
+
}
|
|
752
|
+
}, uo = /* @__PURE__ */ St(Wt, [["__scopeId", "data-v-56e2cfbd"]]);
|
|
753
|
+
export {
|
|
754
|
+
uo as default
|
|
755
|
+
};
|