vue-data-ui 2.10.5 → 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-Badwqciu.cjs → Arrow-CB6EKr1I.cjs} +1 -1
- package/dist/{Arrow-Bb5xelJS.js → Arrow-CZUwKF2D.js} +1 -1
- package/dist/{BaseIcon-CvuQ41yl.cjs → BaseIcon-BkA9Q34x.cjs} +1 -1
- package/dist/{BaseIcon-HDOMbyJq.js → BaseIcon-Bzv6qbPZ.js} +1 -1
- package/dist/{ColorPicker-NOWXYDyd.cjs → ColorPicker-CSWIZQFG.cjs} +1 -1
- package/dist/{ColorPicker-BODnRb0v.js → ColorPicker-C_UcScy-.js} +3 -3
- package/dist/{DataTable-CGMCHKzY.js → DataTable-BhwIv7c6.js} +2 -2
- package/dist/{DataTable-Bu_0tRZE.cjs → DataTable-BmSWykCq.cjs} +1 -1
- package/dist/{Legend-BDIC5aus.cjs → Legend-CMib9jhR.cjs} +1 -1
- package/dist/{Legend-CLZW3_-V.js → Legend-CubpFiQC.js} +2 -2
- package/dist/{PackageVersion-CKutD59c.cjs → PackageVersion-9kqlnk5q.cjs} +1 -1
- package/dist/{PackageVersion-DrU5ubC-.js → PackageVersion-DmKsiZge.js} +1 -1
- package/dist/{PenAndPaper-Bnvy0XRn.cjs → PenAndPaper-CfWPwfS1.cjs} +1 -1
- package/dist/{PenAndPaper-BF6RVx_0.js → PenAndPaper-Dgf1a1MW.js} +3 -3
- package/dist/{Shape-D5Dtzm3x.js → Shape-BUW7OeOM.js} +1 -1
- package/dist/{Shape-NYJ-EMUq.cjs → Shape-DVn1gKjR.cjs} +1 -1
- package/dist/{Slicer-BrajQoJL.js → Slicer-jB5tCct6.js} +2 -2
- package/dist/{Slicer-Cdgf9oDx.cjs → Slicer-ud5drJRz.cjs} +1 -1
- package/dist/{Title-BNsKKvQy.js → Title-BDdzEGgo.js} +1 -1
- package/dist/{Title-Cj4tUZSu.cjs → Title-EjA2nkhd.cjs} +1 -1
- package/dist/{Tooltip-Dm2APAls.js → Tooltip-Cdkz2ese.js} +1 -1
- package/dist/{Tooltip-CLjMKc28.cjs → Tooltip-Dr2CQpGZ.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{dom-to-png-Z6Fps788.js → dom-to-png-0ag5uZSL.js} +1 -1
- package/dist/{dom-to-png-BlAkXMo8.cjs → dom-to-png-DfWDULgW.cjs} +1 -1
- package/dist/{img-0HoPau8z.cjs → img-BFXiOvkr.cjs} +1 -1
- package/dist/{img-DhPFunow.js → img-DB4eqtiV.js} +1 -1
- package/dist/index-BX4v5fiN.cjs +9 -0
- package/dist/{index-D2h9qRb4.js → index-Co_0CzhC.js} +285 -265
- package/dist/{pdf-BpYF_lP6.js → pdf-DUrwlnsH.js} +1 -1
- package/dist/{pdf-Dm8bjLUW.cjs → pdf-D_ScD9oB.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +58 -0
- package/dist/types/vue-data-ui.d.ts +58 -0
- package/dist/{useNestedProp-CAbtwUJj.cjs → useNestedProp-DjOgO33z.cjs} +1 -1
- package/dist/{useNestedProp-DlWfv-mw.js → useNestedProp-DqI_VUcm.js} +1 -1
- package/dist/{usePrinter-BGkHpXM9.js → usePrinter-BV6TePSm.js} +3 -3
- package/dist/{usePrinter-B9NkBzf5.cjs → usePrinter-CynLTaVl.cjs} +1 -1
- package/dist/{vue-data-ui-DPoOpdO-.cjs → vue-data-ui-BTfYQKf1.cjs} +1 -1
- package/dist/{vue-data-ui-kWX-2oPX.js → vue-data-ui-D0yLIHBU.js} +62 -62
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-CAJh6lT_.js → vue-ui-3d-bar-c10gAuCo.js} +9 -9
- package/dist/{vue-ui-3d-bar-CwsCsbwY.cjs → vue-ui-3d-bar-cz81vDyE.cjs} +1 -1
- package/dist/{vue-ui-accordion-ChE9WO8Q.cjs → vue-ui-accordion-BrbibtJK.cjs} +1 -1
- package/dist/{vue-ui-accordion-C-v1kmEc.js → vue-ui-accordion-DMCnTtx0.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CAtI3F1S.cjs → vue-ui-age-pyramid-VrC5Ul6m.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DdwMF6_I.js → vue-ui-age-pyramid-qvsOA8yi.js} +10 -10
- package/dist/{vue-ui-annotator-DQ0W7Q5C.cjs → vue-ui-annotator-DYHa8k6K.cjs} +1 -1
- package/dist/{vue-ui-annotator-bkpTEqep.js → vue-ui-annotator-Difg_FB4.js} +2 -2
- package/dist/{vue-ui-bullet-CQtNg-wR.cjs → vue-ui-bullet-Ck8VFaeu.cjs} +1 -1
- package/dist/{vue-ui-bullet-BEAyOY56.js → vue-ui-bullet-D9jQThZ5.js} +8 -8
- package/dist/{vue-ui-candlestick-DKYirN9r.js → vue-ui-candlestick-CkGKxPxw.js} +11 -11
- package/dist/{vue-ui-candlestick-DJtpSDju.cjs → vue-ui-candlestick-Dsd_ba5D.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-VFiMfJos.cjs → vue-ui-carousel-table-46CpWaYv.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-q1hGM_Iw.js → vue-ui-carousel-table-CR-iVMMe.js} +4 -4
- package/dist/{vue-ui-chestnut-B1VUR7mU.js → vue-ui-chestnut-C9hkjAMP.js} +8 -8
- package/dist/{vue-ui-chestnut-DRGps83_.cjs → vue-ui-chestnut-DpZW075x.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CkpLDinw.cjs → vue-ui-circle-pack-5_vQ6vaC.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-Bw_j7w4u.js → vue-ui-circle-pack-DCiIAJrq.js} +9 -9
- package/dist/{vue-ui-cursor-ZkCZRUcy.js → vue-ui-cursor-Cts6qtAH.js} +2 -2
- package/dist/{vue-ui-cursor-D_ZN42gT.cjs → vue-ui-cursor-DkNjb-zj.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Bcj-LfoN.cjs → vue-ui-dashboard-DHHIcBg0.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DnEpTStU.js → vue-ui-dashboard-Db-_ElsA.js} +62 -62
- package/dist/{vue-ui-digits-Bsseebr6.js → vue-ui-digits--pkv7eKf.js} +2 -2
- package/dist/{vue-ui-digits-p0PWcPJX.cjs → vue-ui-digits-BV--b8cv.cjs} +1 -1
- package/dist/{vue-ui-donut-CwvMWv_q.js → vue-ui-donut-BxbbhGmV.js} +36 -36
- package/dist/{vue-ui-donut-C3mhQ-03.cjs → vue-ui-donut-D1OlfgtH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BzNh2QwP.js → vue-ui-donut-evolution-2mbVNu_w.js} +11 -11
- package/dist/{vue-ui-donut-evolution-C9eui30b.cjs → vue-ui-donut-evolution-BetPU8WD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BheHAxmy.cjs → vue-ui-dumbbell-B4tWeLVq.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BvNEHy9Z.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-DhoOe49e.js → vue-ui-funnel-Bga3R3li.js} +9 -9
- package/dist/{vue-ui-funnel-D8brKLer.cjs → vue-ui-funnel-DJIRpxX0.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DUQ5z3km.js → vue-ui-galaxy-CtUY6byr.js} +11 -11
- package/dist/{vue-ui-galaxy-YP3Gl3vG.cjs → vue-ui-galaxy-DjpT9A4L.cjs} +1 -1
- package/dist/{vue-ui-gauge-C_8QgadB.js → vue-ui-gauge-Bob29zui.js} +7 -7
- package/dist/{vue-ui-gauge-WH6OGXAD.cjs → vue-ui-gauge-ByLQRCM5.cjs} +1 -1
- package/dist/{vue-ui-gizmo-D2AJKoeB.cjs → vue-ui-gizmo-DBCKjWN0.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DFy9X5IT.js → vue-ui-gizmo-Dj1TLLb1.js} +3 -3
- package/dist/{vue-ui-heatmap-DH93m9RC.js → vue-ui-heatmap-BYH3bosu.js} +10 -10
- package/dist/{vue-ui-heatmap-Dx8XPeob.cjs → vue-ui-heatmap-CAUnlp-o.cjs} +1 -1
- package/dist/{vue-ui-history-plot-C-9fJrMv.js → vue-ui-history-plot-C1kOJElL.js} +11 -11
- package/dist/{vue-ui-history-plot-Cmc7KMnB.cjs → vue-ui-history-plot-CbTOgmxa.cjs} +1 -1
- package/dist/{vue-ui-kpi-C6cv6sCW.js → vue-ui-kpi-BUoc8QIz.js} +3 -3
- package/dist/{vue-ui-kpi-DqpTRLkQ.cjs → vue-ui-kpi-DTWa9I78.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CpxzfBja.cjs → vue-ui-mini-loader-C1awnIuZ.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BH-Hztc3.js → vue-ui-mini-loader-CSmFWNXS.js} +2 -2
- package/dist/{vue-ui-molecule-avfEzaAy.cjs → vue-ui-molecule-CgSPoJxN.cjs} +1 -1
- package/dist/{vue-ui-molecule-1475qvln.js → vue-ui-molecule-D9kSZQHB.js} +11 -11
- package/dist/{vue-ui-mood-radar-CnAmD4WX.cjs → vue-ui-mood-radar-DpQ8EBTg.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-SJjT1sCF.js → vue-ui-mood-radar-qd5CCM58.js} +11 -11
- package/dist/vue-ui-nested-donuts-BP9gsX6T.cjs +17 -0
- package/dist/vue-ui-nested-donuts-OqJPZW8l.js +1137 -0
- package/dist/{vue-ui-onion-CA2N8k0p.cjs → vue-ui-onion-DYIgsIYr.cjs} +1 -1
- package/dist/{vue-ui-onion-DzreNeV2.js → vue-ui-onion-rNOeD9u1.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-V6vt-U3H.cjs → vue-ui-parallel-coordinate-plot-CDwhmDGl.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CyoOsjFp.js → vue-ui-parallel-coordinate-plot-DQd14cew.js} +12 -12
- package/dist/{vue-ui-quadrant-DkMAnQHE.js → vue-ui-quadrant-CH856J9A.js} +40 -40
- package/dist/{vue-ui-quadrant-C7Fb-DVA.cjs → vue-ui-quadrant-RRM343kT.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BNf57IFn.js → vue-ui-quick-chart-BLq8C-m8.js} +9 -9
- package/dist/{vue-ui-quick-chart-CQp5GSbr.cjs → vue-ui-quick-chart-BXYgI65b.cjs} +1 -1
- package/dist/{vue-ui-radar-DVv2P3B3.cjs → vue-ui-radar-38OxxA3O.cjs} +1 -1
- package/dist/{vue-ui-radar-DHxUS4r0.js → vue-ui-radar-BuCYH3tO.js} +12 -12
- package/dist/{vue-ui-rating-CA5buZm1.cjs → vue-ui-rating-CiqatGZ_.cjs} +1 -1
- package/dist/{vue-ui-rating-2dp8n1gK.js → vue-ui-rating-D6OL6Aml.js} +10 -10
- package/dist/{vue-ui-relation-circle-hU35G-pb.js → vue-ui-relation-circle-ByhUL4R6.js} +7 -7
- package/dist/{vue-ui-relation-circle-BGY0EsvO.cjs → vue-ui-relation-circle-DDYGMgUl.cjs} +1 -1
- package/dist/{vue-ui-ridgeline-CTE25ofY.js → vue-ui-ridgeline-B5126LSF.js} +49 -49
- package/dist/{vue-ui-ridgeline-dhS0sX29.cjs → vue-ui-ridgeline-C550XNkk.cjs} +1 -1
- package/dist/{vue-ui-rings-BgJT1xPm.js → vue-ui-rings-DPXct3je.js} +12 -12
- package/dist/{vue-ui-rings-2XntvE5b.cjs → vue-ui-rings-Dxp4dmO2.cjs} +1 -1
- package/dist/{vue-ui-scatter-Brh98c-o.cjs → vue-ui-scatter-BWmY2_ij.cjs} +1 -1
- package/dist/{vue-ui-scatter-YKeV-y-p.js → vue-ui-scatter-_DhEpcsw.js} +44 -44
- package/dist/{vue-ui-skeleton-CK5DdXVo.cjs → vue-ui-skeleton-DvJP74jb.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CNP_4H8z.js → vue-ui-skeleton-Dzehgcp3.js} +19 -19
- package/dist/{vue-ui-smiley-BUlzuzq6.js → vue-ui-smiley-BHd1V1Dv.js} +2 -2
- package/dist/{vue-ui-smiley-3uIAUF4w.cjs → vue-ui-smiley-CtDCCsfg.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DmwQZLUP.js → vue-ui-spark-trend-DDX-fjR-.js} +5 -5
- package/dist/{vue-ui-spark-trend-CfhhjekZ.cjs → vue-ui-spark-trend-DDf1hJwg.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BxKGdAq3.cjs → vue-ui-sparkbar-BT5NEz93.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-TLxa0K9v.js → vue-ui-sparkbar-BWeY-FcV.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CIwnnQYW.js → vue-ui-sparkgauge-BQMHbq8E.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CWXLMSHa.cjs → vue-ui-sparkgauge-IYvYlZ57.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-w1rEgV9S.js → vue-ui-sparkhistogram-C5EdWvQP.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Df0Edni4.cjs → vue-ui-sparkhistogram-cjsCsNyf.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BQCbVZw5.cjs → vue-ui-sparkline-BwZJpAAf.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C2Sf6sF4.js → vue-ui-sparkline-CbKIpwVC.js} +15 -15
- package/dist/{vue-ui-sparkstackbar-BlyzQCK8.cjs → vue-ui-sparkstackbar-BVJU36Jz.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BaVuTNxy.js → vue-ui-sparkstackbar-COxIfFgm.js} +5 -5
- package/dist/{vue-ui-stackbar-ypv8uR9d.cjs → vue-ui-stackbar-CQ56hps8.cjs} +1 -1
- package/dist/{vue-ui-stackbar-D4H8uFQ5.js → vue-ui-stackbar-Dr5hRx6G.js} +13 -13
- package/dist/{vue-ui-strip-plot-CmrAJ6uF.cjs → vue-ui-strip-plot-B_nfC_fx.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dxh7xzZf.js → vue-ui-strip-plot-Mct4OE0A.js} +11 -11
- package/dist/{vue-ui-table-BD8QgS2P.js → vue-ui-table-B6LG28n8.js} +3 -3
- package/dist/{vue-ui-table-BmyVGToW.cjs → vue-ui-table-DE3wOTyH.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DZIrV6Bq.js → vue-ui-table-heatmap-DDOoKybT.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CXTW4REL.cjs → vue-ui-table-heatmap-DuMRCIbx.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B0aYy2JL.js → vue-ui-table-sparkline-D578FuNQ.js} +5 -5
- package/dist/{vue-ui-table-sparkline--R1CzNtx.cjs → vue-ui-table-sparkline-gZWWmkQe.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DtOy35Jd.cjs → vue-ui-thermometer-BWHsyYj8.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dh0nVf-h.js → vue-ui-thermometer-DFbYODrU.js} +7 -7
- package/dist/{vue-ui-timer-C4JkVftX.js → vue-ui-timer-Bi6Q0m_J.js} +5 -5
- package/dist/{vue-ui-timer-Bo3p5wjo.cjs → vue-ui-timer-s73pZhYM.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-B-3AEiND.cjs → vue-ui-tiremarks-BcFJOrF8.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-GLU60Yzo.js → vue-ui-tiremarks-C68rB2kd.js} +7 -7
- package/dist/{vue-ui-treemap-ZiuUtYjs.cjs → vue-ui-treemap-B7_kcMng.cjs} +1 -1
- package/dist/{vue-ui-treemap-QyQqnbJc.js → vue-ui-treemap-b5rZtLKn.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DHZvOGpR.cjs → vue-ui-vertical-bar-Bw42kw9a.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CbwZCrcW.js → vue-ui-vertical-bar-DyZ-gfQi.js} +12 -12
- package/dist/{vue-ui-waffle-D_zRZStV.js → vue-ui-waffle-CG05FL_H.js} +12 -12
- package/dist/{vue-ui-waffle-Yi5W6qYr.cjs → vue-ui-waffle-tk3zMyjq.cjs} +1 -1
- package/dist/{vue-ui-wheel-D_wbd08e.js → vue-ui-wheel-BTbteaZS.js} +7 -7
- package/dist/{vue-ui-wheel-D85CwfOC.cjs → vue-ui-wheel-RzXEZFfN.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-jMOFgeRb.js → vue-ui-word-cloud-BKubtYCS.js} +10 -10
- package/dist/{vue-ui-word-cloud-CkActnvX.cjs → vue-ui-word-cloud-CUZ1Mm3Q.cjs} +1 -1
- package/dist/{vue-ui-world-XMoqQwg7.js → vue-ui-world-BF0wSEJb.js} +11 -11
- package/dist/{vue-ui-world-aTdY2yXo.cjs → vue-ui-world-BPcoReDh.cjs} +1 -1
- package/dist/{vue-ui-xy-DL6V_DZs.js → vue-ui-xy-AgcMweTZ.js} +16 -16
- package/dist/{vue-ui-xy-DYEFXjnb.cjs → vue-ui-xy-C8ZEeV9g.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-K0Qm3FPR.cjs → vue-ui-xy-canvas-CJl9RPzv.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DpX9D7Ny.js → vue-ui-xy-canvas-CYaJZj3B.js} +12 -12
- package/package.json +1 -1
- package/dist/index-D6F-xMcR.cjs +0 -9
- package/dist/vue-ui-flow-DBuLJlEV.js +0 -550
- package/dist/vue-ui-flow-vz29fymj.cjs +0 -1
- package/dist/vue-ui-nested-donuts-6MGMcByL.js +0 -937
- package/dist/vue-ui-nested-donuts-BkQJr_zV.cjs +0 -17
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
import { computed as g, onMounted as Ye, ref as k, watch as De, createElementBlock as c, openBlock as i, unref as u, normalizeStyle as _, normalizeClass as ye, createBlock as P, createCommentVNode as w, createSlots as Ge, withCtx as y, renderSlot as p, normalizeProps as M, guardReactiveProps as z, createVNode as be, createElementVNode as Y, Fragment as F, renderList as A, toDisplayString as W, createTextVNode as Ue, nextTick as Ve } from "vue";
|
|
2
|
-
import { u as Be, o as je, e as Re, c as ke, t as Xe, p as q, a as We, b as qe, v as f, f as we, X as Je, G as Ce, J as Ze, i as Ke, q as Qe, r as et } from "./index-D2h9qRb4.js";
|
|
3
|
-
import { _ as tt } from "./Title-BNsKKvQy.js";
|
|
4
|
-
import { u as ot, U as lt } from "./usePrinter-BGkHpXM9.js";
|
|
5
|
-
import { D as at } from "./DataTable-CGMCHKzY.js";
|
|
6
|
-
import nt from "./vue-ui-accordion-C-v1kmEc.js";
|
|
7
|
-
import st from "./vue-ui-skeleton-CNP_4H8z.js";
|
|
8
|
-
import { u as $e } from "./useNestedProp-DlWfv-mw.js";
|
|
9
|
-
import { _ as ut } from "./PackageVersion-DrU5ubC-.js";
|
|
10
|
-
import { _ as rt } from "./PenAndPaper-BF6RVx_0.js";
|
|
11
|
-
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { u as ct } from "./useChartAccessibility-BWojgys7.js";
|
|
13
|
-
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const vt = ["id"], ft = {
|
|
15
|
-
key: 1,
|
|
16
|
-
ref: "noTitle",
|
|
17
|
-
class: "vue-data-ui-no-title-space",
|
|
18
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
19
|
-
}, ht = {
|
|
20
|
-
key: 2,
|
|
21
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
22
|
-
}, gt = ["xmlns", "viewBox"], pt = ["width", "height"], mt = ["id"], yt = ["stop-color"], bt = ["stop-color"], kt = ["d", "fill", "stroke", "stroke-width"], wt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "onMouseenter"], Ct = ["x", "y", "font-size", "fill"], $t = ["x", "y", "font-size", "fill"], _t = {
|
|
23
|
-
key: 4,
|
|
24
|
-
class: "vue-data-ui-watermark"
|
|
25
|
-
}, xt = {
|
|
26
|
-
key: 6,
|
|
27
|
-
ref: "source",
|
|
28
|
-
dir: "auto"
|
|
29
|
-
}, Nt = ["innerHTML"], Ot = {
|
|
30
|
-
__name: "vue-ui-flow",
|
|
31
|
-
props: {
|
|
32
|
-
config: {
|
|
33
|
-
type: Object,
|
|
34
|
-
default() {
|
|
35
|
-
return {};
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
dataset: {
|
|
39
|
-
type: Array,
|
|
40
|
-
default() {
|
|
41
|
-
return [];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
setup(_e, { expose: xe }) {
|
|
46
|
-
const { vue_ui_flow: Ne } = Be(), m = _e, D = g(() => !!m.dataset && m.dataset.length);
|
|
47
|
-
Ye(() => {
|
|
48
|
-
J();
|
|
49
|
-
});
|
|
50
|
-
function J() {
|
|
51
|
-
je(m.dataset) && Re({
|
|
52
|
-
componentName: "VueUiFlow",
|
|
53
|
-
type: "dataset"
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
const G = k(ke()), Z = k(null), K = k(0), Q = k(0), O = k(!1);
|
|
57
|
-
function Oe(t) {
|
|
58
|
-
O.value = t, K.value += 1;
|
|
59
|
-
}
|
|
60
|
-
const e = g({
|
|
61
|
-
get: () => le(),
|
|
62
|
-
set: (t) => t
|
|
63
|
-
}), { userOptionsVisible: U, setUserOptionsVisibility: ee, keepUserOptionState: te } = it({ config: e.value }), { svgRef: oe } = ct({ config: e.value.style.chart.title });
|
|
64
|
-
function le() {
|
|
65
|
-
const t = $e({
|
|
66
|
-
userConfig: m.config,
|
|
67
|
-
defaultConfig: Ne
|
|
68
|
-
});
|
|
69
|
-
return t.theme ? {
|
|
70
|
-
...$e({
|
|
71
|
-
userConfig: We.vue_ui_flow[t.theme] || m.config,
|
|
72
|
-
defaultConfig: t
|
|
73
|
-
}),
|
|
74
|
-
customPalette: Xe[t.theme] || q
|
|
75
|
-
} : t;
|
|
76
|
-
}
|
|
77
|
-
De(() => m.config, (t) => {
|
|
78
|
-
e.value = le(), U.value = !e.value.userOptions.showOnChartHover, J(), Q.value += 1, T.value.showTable = e.value.table.show;
|
|
79
|
-
}, { deep: !0 });
|
|
80
|
-
const { isPrinting: ae, isImaging: ne, generatePdf: se, generateImage: ue } = ot({
|
|
81
|
-
elementId: `flow_${G.value}`,
|
|
82
|
-
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
83
|
-
options: e.value.userOptions.print
|
|
84
|
-
}), Te = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), V = g(() => qe(e.value.customPalette)), re = g(() => e.value.style.chart.nodes.gap), x = g(() => e.value.style.chart.nodes.width), T = k({
|
|
85
|
-
showTable: e.value.table.show
|
|
86
|
-
}), ie = g(() => e.value.style.chart.links.width), B = g(() => !m.dataset || !m.dataset.length ? [] : m.dataset.map((t) => [
|
|
87
|
-
t[0],
|
|
88
|
-
t[1],
|
|
89
|
-
f(t[2])
|
|
90
|
-
])), ce = g(() => {
|
|
91
|
-
const t = {};
|
|
92
|
-
function l(a) {
|
|
93
|
-
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
94
|
-
}
|
|
95
|
-
B.value.forEach(([a, n, v]) => {
|
|
96
|
-
l(a), l(n), t[a].outflow += v, t[n].inflow += v;
|
|
97
|
-
});
|
|
98
|
-
let o = 0;
|
|
99
|
-
for (const a in t) {
|
|
100
|
-
const n = Math.max(t[a].inflow, t[a].outflow);
|
|
101
|
-
o = Math.max(o, n);
|
|
102
|
-
}
|
|
103
|
-
return o;
|
|
104
|
-
});
|
|
105
|
-
function Ie(t) {
|
|
106
|
-
return t / ce.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
107
|
-
}
|
|
108
|
-
function Pe(t) {
|
|
109
|
-
const l = e.value.style.chart.nodes.minHeight;
|
|
110
|
-
return (t - l) / 100 * ce.value;
|
|
111
|
-
}
|
|
112
|
-
function Fe(t) {
|
|
113
|
-
const l = {}, o = {};
|
|
114
|
-
function a(s, r) {
|
|
115
|
-
l[s] || (l[s] = { height: 0, level: null, inflow: 0, outflow: 0 }), l[s].level === null && (l[s].level = r), o[r] || (o[r] = []), o[r].includes(s) || o[r].push(s);
|
|
116
|
-
}
|
|
117
|
-
t.forEach(([s, r, h], N) => {
|
|
118
|
-
const $ = l[s] ? l[s].level : 0, E = $ + 1;
|
|
119
|
-
a(s, $), a(r, E), l[s].children || (l[s].children = []), l[s].children.push({ target: r, value: h }), l[s].outflow += h, l[r].inflow += h;
|
|
120
|
-
}), Object.keys(l).forEach((s, r) => {
|
|
121
|
-
l[s].color = V.value[r] || V.value[r % V.value.length] || q[r] || q[r % d.length];
|
|
122
|
-
});
|
|
123
|
-
for (const s in l)
|
|
124
|
-
l[s].height = Ie(Math.max(l[s].inflow, l[s].outflow)), l[s].name = s;
|
|
125
|
-
const n = {};
|
|
126
|
-
for (const s in o) {
|
|
127
|
-
let r = 0;
|
|
128
|
-
o[s].forEach((h, N) => {
|
|
129
|
-
const $ = l[h].height;
|
|
130
|
-
n[h] = {
|
|
131
|
-
x: parseInt(s, 10) * ie.value + e.value.style.chart.padding.left,
|
|
132
|
-
y: r,
|
|
133
|
-
absoluteY: r,
|
|
134
|
-
height: $,
|
|
135
|
-
i: N,
|
|
136
|
-
color: l[h].color,
|
|
137
|
-
value: Pe($)
|
|
138
|
-
}, r += $ + re.value;
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
const v = [];
|
|
142
|
-
for (const s in l) {
|
|
143
|
-
let r = n[s].absoluteY + e.value.style.chart.padding.top;
|
|
144
|
-
l[s].children && l[s].children.forEach(({ target: h, value: N }, $) => {
|
|
145
|
-
const E = n[h].y + e.value.style.chart.padding.top, R = n[s], X = n[h], he = f(r), ge = f(r + N / l[s].outflow * R.height), pe = f(E), me = f(E + N / l[h].inflow * X.height), ze = {
|
|
146
|
-
id: ke(),
|
|
147
|
-
source: s,
|
|
148
|
-
target: h,
|
|
149
|
-
path: `M ${f(R.x) + f(x.value)} ${he} L ${f(R.x) + f(x.value)} ${ge} L ${f(X.x)} ${me} L ${f(X.x)} ${pe} Z`,
|
|
150
|
-
value: N,
|
|
151
|
-
sourceColor: l[s].color,
|
|
152
|
-
targetColor: l[h].color
|
|
153
|
-
};
|
|
154
|
-
v.push(ze), r += ge - he, n[h].y += me - pe;
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
return { nodeCoordinates: n, links: v };
|
|
158
|
-
}
|
|
159
|
-
const b = g(() => {
|
|
160
|
-
const t = Fe(m.dataset);
|
|
161
|
-
return {
|
|
162
|
-
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
163
|
-
...t.nodeCoordinates[l],
|
|
164
|
-
name: l
|
|
165
|
-
})),
|
|
166
|
-
links: t.links
|
|
167
|
-
};
|
|
168
|
-
}), Ae = g(() => He(b.value.nodes));
|
|
169
|
-
function He(t) {
|
|
170
|
-
const l = {};
|
|
171
|
-
for (const a in t) {
|
|
172
|
-
const { x: n, height: v } = t[a];
|
|
173
|
-
l[n] || (l[n] = 0), l[n] += v + re.value;
|
|
174
|
-
}
|
|
175
|
-
return Math.max(...Object.values(l));
|
|
176
|
-
}
|
|
177
|
-
const I = g(() => {
|
|
178
|
-
const { top: t, right: l, left: o, bottom: a } = e.value.style.chart.padding, n = B.value.length * ie.value;
|
|
179
|
-
return {
|
|
180
|
-
height: Ae.value + t + a,
|
|
181
|
-
width: l + Math.max(...b.value.nodes.map((v) => v.x)) + x.value,
|
|
182
|
-
left: o,
|
|
183
|
-
top: t,
|
|
184
|
-
right: n - l,
|
|
185
|
-
p_top: t,
|
|
186
|
-
p_bottom: a
|
|
187
|
-
};
|
|
188
|
-
});
|
|
189
|
-
function Le(t) {
|
|
190
|
-
const l = {}, o = {}, a = /* @__PURE__ */ new Set();
|
|
191
|
-
return B.value.forEach(([n, v, s]) => {
|
|
192
|
-
l[n] || (l[n] = []), o[v] || (o[v] = []), l[n].push(v), o[v].push(n);
|
|
193
|
-
}), l[t] && l[t].forEach((n) => a.add(n)), o[t] && o[t].forEach((n) => a.add(n)), Array.from(a).concat(t);
|
|
194
|
-
}
|
|
195
|
-
const C = k(null), H = k(null);
|
|
196
|
-
function Se(t) {
|
|
197
|
-
C.value = Le(t.name), H.value = t.name;
|
|
198
|
-
}
|
|
199
|
-
function Ee() {
|
|
200
|
-
C.value = null, H.value = null;
|
|
201
|
-
}
|
|
202
|
-
const de = g(() => b.value.links.map(({ source: t, target: l, sourceColor: o, targetColor: a, value: n }) => ({
|
|
203
|
-
source: t,
|
|
204
|
-
target: l,
|
|
205
|
-
sourceColor: o,
|
|
206
|
-
targetColor: a,
|
|
207
|
-
value: n
|
|
208
|
-
})));
|
|
209
|
-
function ve() {
|
|
210
|
-
Ve(() => {
|
|
211
|
-
const t = de.value.map((a, n) => [
|
|
212
|
-
[a.source],
|
|
213
|
-
[a.target],
|
|
214
|
-
[a.value]
|
|
215
|
-
]), l = [
|
|
216
|
-
[e.value.style.chart.title.text],
|
|
217
|
-
[e.value.style.chart.title.subtitle.text],
|
|
218
|
-
[
|
|
219
|
-
[e.value.table.columnNames.source],
|
|
220
|
-
[e.value.table.columnNames.target],
|
|
221
|
-
[e.value.table.columnNames.value]
|
|
222
|
-
]
|
|
223
|
-
].concat(t), o = Qe(l);
|
|
224
|
-
et({
|
|
225
|
-
csvContent: o,
|
|
226
|
-
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
const L = g(() => {
|
|
231
|
-
const t = [
|
|
232
|
-
e.value.table.columnNames.source,
|
|
233
|
-
e.value.table.columnNames.target,
|
|
234
|
-
e.value.table.columnNames.value
|
|
235
|
-
], l = de.value.map((n, v) => [
|
|
236
|
-
{
|
|
237
|
-
color: n.sourceColor,
|
|
238
|
-
name: n.source
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
color: n.targetColor,
|
|
242
|
-
name: n.target
|
|
243
|
-
},
|
|
244
|
-
we({
|
|
245
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
246
|
-
v: n.value,
|
|
247
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
248
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
249
|
-
})
|
|
250
|
-
]), o = {
|
|
251
|
-
th: {
|
|
252
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
253
|
-
color: e.value.table.th.color,
|
|
254
|
-
outline: e.value.table.th.outline
|
|
255
|
-
},
|
|
256
|
-
td: {
|
|
257
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
258
|
-
color: e.value.table.td.color,
|
|
259
|
-
outline: e.value.table.td.outline
|
|
260
|
-
},
|
|
261
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
262
|
-
};
|
|
263
|
-
return {
|
|
264
|
-
colNames: [
|
|
265
|
-
e.value.table.columnNames.source,
|
|
266
|
-
e.value.table.columnNames.target,
|
|
267
|
-
e.value.table.columnNames.value
|
|
268
|
-
],
|
|
269
|
-
head: t,
|
|
270
|
-
body: l,
|
|
271
|
-
config: o
|
|
272
|
-
};
|
|
273
|
-
});
|
|
274
|
-
function Me() {
|
|
275
|
-
return b.value;
|
|
276
|
-
}
|
|
277
|
-
function fe() {
|
|
278
|
-
T.value.showTable = !T.value.showTable;
|
|
279
|
-
}
|
|
280
|
-
const S = k(!1);
|
|
281
|
-
function j() {
|
|
282
|
-
S.value = !S.value;
|
|
283
|
-
}
|
|
284
|
-
return xe({
|
|
285
|
-
getData: Me,
|
|
286
|
-
generateCsv: ve,
|
|
287
|
-
generateImage: ue,
|
|
288
|
-
generatePdf: se,
|
|
289
|
-
toggleTable: fe,
|
|
290
|
-
toggleAnnotator: j
|
|
291
|
-
}), (t, l) => (i(), c("div", {
|
|
292
|
-
ref_key: "flowChart",
|
|
293
|
-
ref: Z,
|
|
294
|
-
class: ye(`vue-ui-flow ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
295
|
-
style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
296
|
-
id: `flow_${G.value}`,
|
|
297
|
-
onMouseenter: l[2] || (l[2] = () => u(ee)(!0)),
|
|
298
|
-
onMouseleave: l[3] || (l[3] = () => u(ee)(!1))
|
|
299
|
-
}, [
|
|
300
|
-
e.value.userOptions.buttons.annotator ? (i(), P(rt, {
|
|
301
|
-
key: 0,
|
|
302
|
-
svgRef: u(oe),
|
|
303
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
304
|
-
color: e.value.style.chart.color,
|
|
305
|
-
active: S.value,
|
|
306
|
-
onClose: j
|
|
307
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : w("", !0),
|
|
308
|
-
Te.value ? (i(), c("div", ft, null, 512)) : w("", !0),
|
|
309
|
-
e.value.style.chart.title.text ? (i(), c("div", ht, [
|
|
310
|
-
(i(), P(tt, {
|
|
311
|
-
key: `title_${Q.value}`,
|
|
312
|
-
config: {
|
|
313
|
-
title: {
|
|
314
|
-
cy: "flow-title",
|
|
315
|
-
...e.value.style.chart.title
|
|
316
|
-
},
|
|
317
|
-
subtitle: {
|
|
318
|
-
cy: "flow-subtitle",
|
|
319
|
-
...e.value.style.chart.title.subtitle
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}, null, 8, ["config"]))
|
|
323
|
-
])) : w("", !0),
|
|
324
|
-
e.value.userOptions.show && D.value && (u(te) || u(U)) ? (i(), P(lt, {
|
|
325
|
-
ref: "details",
|
|
326
|
-
key: `user_option_${K.value}`,
|
|
327
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
328
|
-
color: e.value.style.chart.color,
|
|
329
|
-
isPrinting: u(ae),
|
|
330
|
-
isImaging: u(ne),
|
|
331
|
-
uid: G.value,
|
|
332
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
333
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
334
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
335
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
336
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
337
|
-
isFullscreen: O.value,
|
|
338
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
339
|
-
chartElement: Z.value,
|
|
340
|
-
position: e.value.userOptions.position,
|
|
341
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
342
|
-
isAnnotation: S.value,
|
|
343
|
-
onToggleFullscreen: Oe,
|
|
344
|
-
onGeneratePdf: u(se),
|
|
345
|
-
onGenerateCsv: ve,
|
|
346
|
-
onGenerateImage: u(ue),
|
|
347
|
-
onToggleTable: fe,
|
|
348
|
-
onToggleAnnotator: j,
|
|
349
|
-
style: _({
|
|
350
|
-
visibility: u(te) ? u(U) ? "visible" : "hidden" : "visible"
|
|
351
|
-
})
|
|
352
|
-
}, Ge({ _: 2 }, [
|
|
353
|
-
t.$slots.menuIcon ? {
|
|
354
|
-
name: "menuIcon",
|
|
355
|
-
fn: y(({ isOpen: o, color: a }) => [
|
|
356
|
-
p(t.$slots, "menuIcon", M(z({ isOpen: o, color: a })), void 0, !0)
|
|
357
|
-
]),
|
|
358
|
-
key: "0"
|
|
359
|
-
} : void 0,
|
|
360
|
-
t.$slots.optionPdf ? {
|
|
361
|
-
name: "optionPdf",
|
|
362
|
-
fn: y(() => [
|
|
363
|
-
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
364
|
-
]),
|
|
365
|
-
key: "1"
|
|
366
|
-
} : void 0,
|
|
367
|
-
t.$slots.optionCsv ? {
|
|
368
|
-
name: "optionCsv",
|
|
369
|
-
fn: y(() => [
|
|
370
|
-
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
371
|
-
]),
|
|
372
|
-
key: "2"
|
|
373
|
-
} : void 0,
|
|
374
|
-
t.$slots.optionImg ? {
|
|
375
|
-
name: "optionImg",
|
|
376
|
-
fn: y(() => [
|
|
377
|
-
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
378
|
-
]),
|
|
379
|
-
key: "3"
|
|
380
|
-
} : void 0,
|
|
381
|
-
t.$slots.optionTable ? {
|
|
382
|
-
name: "optionTable",
|
|
383
|
-
fn: y(() => [
|
|
384
|
-
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
385
|
-
]),
|
|
386
|
-
key: "4"
|
|
387
|
-
} : void 0,
|
|
388
|
-
t.$slots.optionFullscreen ? {
|
|
389
|
-
name: "optionFullscreen",
|
|
390
|
-
fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
391
|
-
p(t.$slots, "optionFullscreen", M(z({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
392
|
-
]),
|
|
393
|
-
key: "5"
|
|
394
|
-
} : void 0,
|
|
395
|
-
t.$slots.optionAnnotator ? {
|
|
396
|
-
name: "optionAnnotator",
|
|
397
|
-
fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
398
|
-
p(t.$slots, "optionAnnotator", M(z({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
399
|
-
]),
|
|
400
|
-
key: "6"
|
|
401
|
-
} : void 0
|
|
402
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : w("", !0),
|
|
403
|
-
(i(), c("svg", {
|
|
404
|
-
ref_key: "svgRef",
|
|
405
|
-
ref: oe,
|
|
406
|
-
xmlns: u(Je),
|
|
407
|
-
viewBox: `0 0 ${I.value.width} ${I.value.height}`,
|
|
408
|
-
class: ye({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
409
|
-
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
410
|
-
}, [
|
|
411
|
-
be(ut),
|
|
412
|
-
t.$slots["chart-background"] ? (i(), c("foreignObject", {
|
|
413
|
-
key: 0,
|
|
414
|
-
x: 0,
|
|
415
|
-
y: 0,
|
|
416
|
-
width: I.value.width,
|
|
417
|
-
height: I.value.height,
|
|
418
|
-
style: {
|
|
419
|
-
pointerEvents: "none"
|
|
420
|
-
}
|
|
421
|
-
}, [
|
|
422
|
-
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
423
|
-
], 8, pt)) : w("", !0),
|
|
424
|
-
Y("defs", null, [
|
|
425
|
-
(i(!0), c(F, null, A(b.value.links, (o, a) => (i(), c("linearGradient", {
|
|
426
|
-
id: o.id,
|
|
427
|
-
x1: "0%",
|
|
428
|
-
y1: "0%",
|
|
429
|
-
x2: "100%",
|
|
430
|
-
y2: "0%"
|
|
431
|
-
}, [
|
|
432
|
-
Y("stop", {
|
|
433
|
-
offset: "0%",
|
|
434
|
-
"stop-color": o.sourceColor
|
|
435
|
-
}, null, 8, yt),
|
|
436
|
-
Y("stop", {
|
|
437
|
-
offset: "100%",
|
|
438
|
-
"stop-color": o.targetColor
|
|
439
|
-
}, null, 8, bt)
|
|
440
|
-
], 8, mt))), 256))
|
|
441
|
-
]),
|
|
442
|
-
(i(!0), c(F, null, A(b.value.links, (o) => (i(), c("path", {
|
|
443
|
-
class: "vue-ui-flow-link",
|
|
444
|
-
d: o.path,
|
|
445
|
-
fill: `url(#${o.id})`,
|
|
446
|
-
stroke: e.value.style.chart.links.stroke,
|
|
447
|
-
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
448
|
-
style: _(`opacity:${H.value ? [o.target, o.source].includes(H.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
|
|
449
|
-
}, null, 12, kt))), 256)),
|
|
450
|
-
(i(!0), c(F, null, A(b.value.nodes, (o, a) => (i(), c("rect", {
|
|
451
|
-
class: "vue-ui-flow-node",
|
|
452
|
-
x: o.x,
|
|
453
|
-
y: u(f)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
454
|
-
height: u(f)(o.height),
|
|
455
|
-
width: x.value,
|
|
456
|
-
fill: o.color,
|
|
457
|
-
stroke: e.value.style.chart.nodes.stroke,
|
|
458
|
-
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
459
|
-
onMouseenter: (n) => Se(o),
|
|
460
|
-
onMouseleave: l[0] || (l[0] = (n) => Ee()),
|
|
461
|
-
style: _(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.2 : 1}`)
|
|
462
|
-
}, null, 44, wt))), 256)),
|
|
463
|
-
(i(!0), c(F, null, A(b.value.nodes, (o, a) => (i(), c("text", {
|
|
464
|
-
x: o.x + x.value / 2,
|
|
465
|
-
y: u(f)(o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4) + e.value.style.chart.padding.top,
|
|
466
|
-
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
467
|
-
fill: u(Ce)(o.color),
|
|
468
|
-
"text-anchor": "middle",
|
|
469
|
-
style: _(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
470
|
-
}, W(e.value.style.chart.nodes.labels.abbreviation.use ? u(Ze)({ source: o.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : o.name), 13, Ct))), 256)),
|
|
471
|
-
(i(!0), c(F, null, A(b.value.nodes, (o, a) => (i(), c("text", {
|
|
472
|
-
x: o.x + x.value / 2,
|
|
473
|
-
y: u(f)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize) + e.value.style.chart.padding.top,
|
|
474
|
-
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
475
|
-
fill: u(Ce)(o.color),
|
|
476
|
-
"text-anchor": "middle",
|
|
477
|
-
style: _(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
478
|
-
}, W(u(Ke)(
|
|
479
|
-
e.value.style.chart.nodes.labels.formatter,
|
|
480
|
-
o.value,
|
|
481
|
-
u(we)({
|
|
482
|
-
p: e.value.style.chart.nodes.labels.prefix,
|
|
483
|
-
v: o.value,
|
|
484
|
-
s: e.value.style.chart.nodes.labels.suffix,
|
|
485
|
-
r: e.value.style.chart.nodes.labels.rounding
|
|
486
|
-
}),
|
|
487
|
-
{ datapoint: o, seriesIndex: a }
|
|
488
|
-
)), 13, $t))), 256)),
|
|
489
|
-
p(t.$slots, "svg", { svg: I.value }, void 0, !0)
|
|
490
|
-
], 14, gt)),
|
|
491
|
-
t.$slots.watermark ? (i(), c("div", _t, [
|
|
492
|
-
p(t.$slots, "watermark", M(z({ isPrinting: u(ae) || u(ne) })), void 0, !0)
|
|
493
|
-
])) : w("", !0),
|
|
494
|
-
D.value ? w("", !0) : (i(), P(st, {
|
|
495
|
-
key: 5,
|
|
496
|
-
config: {
|
|
497
|
-
type: "flow",
|
|
498
|
-
style: {
|
|
499
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}, null, 8, ["config"])),
|
|
503
|
-
t.$slots.source ? (i(), c("div", xt, [
|
|
504
|
-
p(t.$slots, "source", {}, void 0, !0)
|
|
505
|
-
], 512)) : w("", !0),
|
|
506
|
-
D.value ? (i(), P(nt, {
|
|
507
|
-
key: 7,
|
|
508
|
-
hideDetails: "",
|
|
509
|
-
config: {
|
|
510
|
-
open: T.value.showTable,
|
|
511
|
-
maxHeight: 1e4,
|
|
512
|
-
body: {
|
|
513
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
514
|
-
color: e.value.style.chart.color
|
|
515
|
-
},
|
|
516
|
-
head: {
|
|
517
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
518
|
-
color: e.value.style.chart.color
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}, {
|
|
522
|
-
content: y(() => [
|
|
523
|
-
be(at, {
|
|
524
|
-
colNames: L.value.colNames,
|
|
525
|
-
head: L.value.head,
|
|
526
|
-
body: L.value.body,
|
|
527
|
-
config: L.value.config,
|
|
528
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
529
|
-
onClose: l[1] || (l[1] = (o) => T.value.showTable = !1)
|
|
530
|
-
}, {
|
|
531
|
-
th: y(({ th: o }) => [
|
|
532
|
-
Y("div", {
|
|
533
|
-
innerHTML: o,
|
|
534
|
-
style: { display: "flex", "align-items": "center" }
|
|
535
|
-
}, null, 8, Nt)
|
|
536
|
-
]),
|
|
537
|
-
td: y(({ td: o }) => [
|
|
538
|
-
Ue(W(o.name || o), 1)
|
|
539
|
-
]),
|
|
540
|
-
_: 1
|
|
541
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
542
|
-
]),
|
|
543
|
-
_: 1
|
|
544
|
-
}, 8, ["config"])) : w("", !0)
|
|
545
|
-
], 46, vt));
|
|
546
|
-
}
|
|
547
|
-
}, Gt = /* @__PURE__ */ dt(Ot, [["__scopeId", "data-v-34c6a87d"]]);
|
|
548
|
-
export {
|
|
549
|
-
Gt as default
|
|
550
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D6F-xMcR.cjs"),ye=require("./Title-Cj4tUZSu.cjs"),oe=require("./usePrinter-B9NkBzf5.cjs"),be=require("./DataTable-Bu_0tRZE.cjs"),we=require("./vue-ui-accordion-ChE9WO8Q.cjs"),Ce=require("./vue-ui-skeleton-CK5DdXVo.cjs"),le=require("./useNestedProp-CAbtwUJj.cjs"),Ne=require("./PackageVersion-CKutD59c.cjs"),xe=require("./PenAndPaper-Bnvy0XRn.cjs"),$e=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./useChartAccessibility-Cm7nkzTG.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Ee={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Pe={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Te=["xmlns","viewBox"],Oe=["width","height"],Fe=["id"],ze=["stop-color"],Ie=["stop-color"],Le=["d","fill","stroke","stroke-width"],Ve=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],Ae=["x","y","font-size","fill"],He=["x","y","font-size","fill"],Me={key:4,class:"vue-data-ui-watermark"},qe={key:6,ref:"source",dir:"auto"},De=["innerHTML"],Ue={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ne,{expose:ae}){const{vue_ui_flow:re}=s.useConfig(),h=ne,B=e.computed(()=>!!h.dataset&&h.dataset.length);e.onMounted(()=>{z()});function z(){s.objectIsEmpty(h.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const _=e.ref(s.createUid()),I=e.ref(null),L=e.ref(0),V=e.ref(0),y=e.ref(!1);function se(o){y.value=o,L.value+=1}const t=e.computed({get:()=>q(),set:o=>o}),{userOptionsVisible:S,setUserOptionsVisibility:A,keepUserOptionState:H}=$e.useUserOptionState({config:t.value}),{svgRef:M}=Be.useChartAccessibility({config:t.value.style.chart.title});function q(){const o=le.useNestedProp({userConfig:h.config,defaultConfig:re});return o.theme?{...le.useNestedProp({userConfig:s.themes.vue_ui_flow[o.theme]||h.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>h.config,o=>{t.value=q(),S.value=!t.value.userOptions.showOnChartHover,z(),V.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:D,isImaging:U,generatePdf:Y,generateImage:G}=oe.usePrinter({elementId:`flow_${_.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow",options:t.value.userOptions.print}),ue=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),E=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),R=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}),j=e.computed(()=>t.value.style.chart.links.width),P=e.computed(()=>!h.dataset||!h.dataset.length?[]:h.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),W=e.computed(()=>{const o={};function n(a){o[a]||(o[a]={inflow:0,outflow:0})}P.value.forEach(([a,r,c])=>{n(a),n(r),o[a].outflow+=c,o[r].inflow+=c});let l=0;for(const a in o){const r=Math.max(o[a].inflow,o[a].outflow);l=Math.max(l,r)}return l});function ie(o){return o/W.value*100+t.value.style.chart.nodes.minHeight}function ce(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*W.value}function de(o){const n={},l={};function a(u,i){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=i),l[i]||(l[i]=[]),l[i].includes(u)||l[i].push(u)}o.forEach(([u,i,v],k)=>{const m=n[u]?n[u].level:0,$=m+1;a(u,m),a(i,$),n[u].children||(n[u].children=[]),n[u].children.push({target:i,value:v}),n[u].outflow+=v,n[i].inflow+=v}),Object.keys(n).forEach((u,i)=>{n[u].color=E.value[i]||E.value[i%E.value.length]||s.palette[i]||s.palette[i%d.length]});for(const u in n)n[u].height=ie(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const r={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const m=n[v].height;r[v]={x:parseInt(u,10)*j.value+t.value.style.chart.padding.left,y:i,absoluteY:i,height:m,i:k,color:n[v].color,value:ce(m)},i+=m+R.value})}const c=[];for(const u in n){let i=r[u].absoluteY+t.value.style.chart.padding.top;n[u].children&&n[u].children.forEach(({target:v,value:k},m)=>{const $=r[v].y+t.value.style.chart.padding.top,O=r[u],F=r[v],K=s.checkNaN(i),Q=s.checkNaN(i+k/n[u].outflow*O.height),ee=s.checkNaN($),te=s.checkNaN($+k/n[v].inflow*F.height),ke={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(O.x)+s.checkNaN(g.value)} ${K} L ${s.checkNaN(O.x)+s.checkNaN(g.value)} ${Q} L ${s.checkNaN(F.x)} ${te} L ${s.checkNaN(F.x)} ${ee} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(ke),i+=Q-K,r[v].y+=te-ee})}return{nodeCoordinates:r,links:c}}const f=e.computed(()=>{const o=de(h.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),ve=e.computed(()=>he(f.value.nodes));function he(o){const n={};for(const a in o){const{x:r,height:c}=o[a];n[r]||(n[r]=0),n[r]+=c+R.value}return Math.max(...Object.values(n))}const w=e.computed(()=>{const{top:o,right:n,left:l,bottom:a}=t.value.style.chart.padding,r=P.value.length*j.value;return{height:ve.value+o+a,width:n+Math.max(...f.value.nodes.map(c=>c.x))+g.value,left:l,top:o,right:r-n,p_top:o,p_bottom:a}});function fe(o){const n={},l={},a=new Set;return P.value.forEach(([r,c,u])=>{n[r]||(n[r]=[]),l[c]||(l[c]=[]),n[r].push(c),l[c].push(r)}),n[o]&&n[o].forEach(r=>a.add(r)),l[o]&&l[o].forEach(r=>a.add(r)),Array.from(a).concat(o)}const p=e.ref(null),C=e.ref(null);function pe(o){p.value=fe(o.name),C.value=o.name}function me(){p.value=null,C.value=null}const X=e.computed(()=>f.value.links.map(({source:o,target:n,sourceColor:l,targetColor:a,value:r})=>({source:o,target:n,sourceColor:l,targetColor:a,value:r})));function Z(){e.nextTick(()=>{const o=X.value.map((a,r)=>[[a.source],[a.target],[a.value]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.source],[t.value.table.columnNames.target],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const N=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=X.value.map((r,c)=>[{color:r.sourceColor,name:r.source},{color:r.targetColor,name:r.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:r.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding})]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],head:o,body:n,config:l}});function ge(){return f.value}function J(){b.value.showTable=!b.value.showTable}const x=e.ref(!1);function T(){x.value=!x.value}return ae({getData:ge,generateCsv:Z,generateImage:G,generatePdf:Y,toggleTable:J,toggleAnnotator:T}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:I,class:e.normalizeClass(`vue-ui-flow ${y.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`flow_${_.value}`,onMouseenter:n[2]||(n[2]=()=>e.unref(A)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(A)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(xe._sfc_main,{key:0,svgRef:e.unref(M),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,onClose:T},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ue.value?(e.openBlock(),e.createElementBlock("div",Ee,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${V.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&&B.value&&(e.unref(H)||e.unref(S))?(e.openBlock(),e.createBlock(oe.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(D),isImaging:e.unref(U),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:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:se,onGeneratePdf:e.unref(Y),onGenerateCsv:Z,onGenerateImage:e.unref(G),onToggleTable:J,onToggleAnnotator:T,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(S)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:a})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:a})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgRef",ref:M,xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${w.value.width} ${w.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:w.value.width,height:w.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Oe)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,(l,a)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:l.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.sourceColor},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Ie)],8,Fe))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,l=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-flow-link",d:l.path,fill:`url(#${l.id})`,stroke:t.value.style.chart.links.stroke,"stroke-width":t.value.style.chart.links.strokeWidth,style:e.normalizeStyle(`opacity:${C.value?[l.target,l.source].includes(C.value)?1:.3:t.value.style.chart.links.opacity}`)},null,12,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,a)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY)+t.value.style.chart.padding.top,height:e.unref(s.checkNaN)(l.height),width:g.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:r=>pe(l),onMouseleave:n[0]||(n[0]=r=>me()),style:e.normalizeStyle(`opacity:${p.value?p.value.includes(l.name)?1:.2:1}`)},null,44,Ve))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,a)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2-t.value.style.chart.nodes.labels.fontSize/4)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${p.value?p.value.includes(l.name)?1:0:1}`)},e.toDisplayString(t.value.style.chart.nodes.labels.abbreviation.use?e.unref(s.abbreviate)({source:l.name,length:t.value.style.chart.nodes.labels.abbreviation.length}):l.name),13,Ae))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,a)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2+t.value.style.chart.nodes.labels.fontSize)+t.value.style.chart.padding.top,"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${p.value?p.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:l.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:l,seriesIndex:a})),13,He))),256)),e.renderSlot(o.$slots,"svg",{svg:w.value},void 0,!0)],14,Te)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(D)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ce.default,{key:5,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),o.$slots.source?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(we.default,{key:7,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(be.DataTable,{colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=l=>b.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,De)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Se))}},Ye=_e._export_sfc(Ue,[["__scopeId","data-v-34c6a87d"]]);exports.default=Ye;
|