vue-data-ui 2.6.41 → 2.6.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-j4Npojhv.cjs → Arrow-C6-3JiKs.cjs} +1 -1
- package/dist/{Arrow-CzwnuhQC.js → Arrow-i50QW7Eq.js} +1 -1
- package/dist/{BaseIcon-DyOT6PYJ.js → BaseIcon-BYl8WVrn.js} +1 -1
- package/dist/{BaseIcon-lwGFy7CI.cjs → BaseIcon-CGjwy6WD.cjs} +1 -1
- package/dist/{ColorPicker-BiTtlEx1.cjs → ColorPicker-Cpi--TbY.cjs} +1 -1
- package/dist/{ColorPicker-DHXRDP2o.js → ColorPicker-rv2BDrXO.js} +3 -3
- package/dist/{DataTable-B8Vnlflz.js → DataTable-B_PZ5EQ5.js} +2 -2
- package/dist/{DataTable-CX-Mdafj.cjs → DataTable-Dp7g_Ei4.cjs} +1 -1
- package/dist/{Legend-Bw9vX_fW.js → Legend-BB51QBPV.js} +2 -2
- package/dist/{Legend-DgyuPw1G.cjs → Legend-BB6S3gBp.cjs} +1 -1
- package/dist/{PackageVersion-C6hdi5vE.js → PackageVersion-Cz-oD7U6.js} +1 -1
- package/dist/{PackageVersion-CvpIoiav.cjs → PackageVersion-Dj3KQ8Ax.cjs} +1 -1
- package/dist/{PenAndPaper-DBNdemyU.js → PenAndPaper-DOTH2X_u.js} +3 -3
- package/dist/{PenAndPaper-5L5c2K-j.cjs → PenAndPaper-OCjAJH70.cjs} +1 -1
- package/dist/{Shape-CcQr04tT.js → Shape-CGBgd_EH.js} +1 -1
- package/dist/{Shape-my_oX1r-.cjs → Shape-DCTTj5cs.cjs} +1 -1
- package/dist/{Slicer-Dpuspld0.cjs → Slicer-BHKFOTCG.cjs} +1 -1
- package/dist/{Slicer-CJT21pOl.js → Slicer-Dhto2Wym.js} +2 -2
- package/dist/{Title-CnyZaLp0.cjs → Title-BkwZ_rBI.cjs} +1 -1
- package/dist/{Title-Dfjx2pT6.js → Title-y0r2c8bY.js} +1 -1
- package/dist/{Tooltip-C3kzKkai.js → Tooltip-CbWEnMUw.js} +1 -1
- package/dist/{Tooltip-V6vr6k8X.cjs → Tooltip-DhhX9jKQ.cjs} +1 -1
- package/dist/{html2canvas.esm-D53btDlk.cjs → html2canvas.esm-BA_v9SIU.cjs} +2 -2
- package/dist/{html2canvas.esm-Dr4iCOK6.js → html2canvas.esm-DgdJBc_o.js} +196 -196
- package/dist/img-BIeSHu0f.js +15 -0
- package/dist/img-D6uvziU0.cjs +1 -0
- package/dist/index-Crz6y51C.cjs +9 -0
- package/dist/{index-BAPUY6BW.js → index-DWsIpwzs.js} +17 -2
- package/dist/{index.es-RWt7DWPC.js → index.es-BloWY6jv.js} +1285 -1285
- package/dist/{index.es-DvaaoatM.cjs → index.es-HygMioe_.cjs} +6 -6
- package/dist/{jspdf.es.min-Rw70uifz.cjs → jspdf.es.min-C518mmma.cjs} +57 -57
- package/dist/{jspdf.es.min-eTA26cmm.js → jspdf.es.min-t_OLULUR.js} +3038 -3038
- package/dist/pdf-BpXLKlRx.cjs +1 -0
- package/dist/{pdf-DVWl3Adn.js → pdf-H8Iw_Wax.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +15 -0
- package/dist/types/vue-data-ui.d.ts +15 -0
- package/dist/{useNestedProp-Ch_Tbu0f.cjs → useNestedProp-B8CE091o.cjs} +1 -1
- package/dist/{useNestedProp-X5u-cjpn.js → useNestedProp-Bole8bsm.js} +1 -1
- package/dist/{usePrinter-BsXYrX84.js → usePrinter-B8LELMkA.js} +125 -122
- package/dist/{usePrinter-BJ8ChcXf.cjs → usePrinter-Cqxw0sR7.cjs} +1 -1
- package/dist/{vue-data-ui-OBrcs0EY.js → vue-data-ui-BHNNKB7k.js} +61 -61
- package/dist/{vue-data-ui-CZG3ODq3.cjs → vue-data-ui-Dizs9qYs.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-BOUSglv4.cjs → vue-ui-3d-bar-D-jstByg.cjs} +8 -8
- package/dist/{vue-ui-3d-bar-BRhfbpJd.js → vue-ui-3d-bar-D1DTuPTJ.js} +55 -54
- package/dist/{vue-ui-accordion-BS_katXk.cjs → vue-ui-accordion-10T9IdE-.cjs} +1 -1
- package/dist/{vue-ui-accordion-Dm7ZlylJ.js → vue-ui-accordion-WrimcQK1.js} +3 -3
- package/dist/vue-ui-age-pyramid-0uO95dEL.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CBtPdObD.js → vue-ui-age-pyramid-vSOQxYMZ.js} +13 -12
- package/dist/{vue-ui-annotator-B8HvCy1u.cjs → vue-ui-annotator-CzqmXArP.cjs} +1 -1
- package/dist/{vue-ui-annotator-Rb7-Ig4d.js → vue-ui-annotator-DuX2lvw8.js} +3 -3
- package/dist/vue-ui-bullet-hJsuFbdK.cjs +34 -0
- package/dist/{vue-ui-bullet-C7ftUjYQ.js → vue-ui-bullet-ni1A0wmE.js} +11 -10
- package/dist/{vue-ui-candlestick-D_osh2qN.js → vue-ui-candlestick-CtFOtkuX.js} +14 -13
- package/dist/{vue-ui-candlestick-DY4EKJPX.cjs → vue-ui-candlestick-JSYKg3QU.cjs} +2 -2
- package/dist/vue-ui-carousel-table-BJsBlOAu.cjs +1 -0
- package/dist/{vue-ui-carousel-table-M72bzy85.js → vue-ui-carousel-table-Bc8SG-3_.js} +7 -6
- package/dist/{vue-ui-chestnut-BdHd-Juu.cjs → vue-ui-chestnut-EPeVQvs_.cjs} +2 -2
- package/dist/{vue-ui-chestnut-i7EtBpLY.js → vue-ui-chestnut-VR_UxBpO.js} +37 -36
- package/dist/{vue-ui-circle-pack-BC1uScHe.js → vue-ui-circle-pack-ECXVp4H4.js} +14 -13
- package/dist/vue-ui-circle-pack-NstojV4G.cjs +1 -0
- package/dist/{vue-ui-cursor-eJ2ExkFm.js → vue-ui-cursor-DRP_eOrg.js} +2 -2
- package/dist/{vue-ui-cursor-B06MWQUK.cjs → vue-ui-cursor-IZ28NWCv.cjs} +1 -1
- package/dist/{vue-ui-dashboard-m-sB4TXH.cjs → vue-ui-dashboard-BVoasjGP.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BAwwet8B.js → vue-ui-dashboard-Bg4eu3bx.js} +3 -3
- package/dist/{vue-ui-digits-B6ivU7b9.js → vue-ui-digits-B2qzXXO6.js} +2 -2
- package/dist/{vue-ui-digits-C5jmpiTL.cjs → vue-ui-digits-BKR62-KQ.cjs} +1 -1
- package/dist/{vue-ui-donut-DtZ-n8vd.js → vue-ui-donut-BWbLJHC5.js} +15 -14
- package/dist/vue-ui-donut-Bnc5n4vE.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-VJpinb_g.js → vue-ui-donut-evolution-Cpmdg9Na.js} +45 -44
- package/dist/vue-ui-donut-evolution-DyQPblkZ.cjs +1 -0
- package/dist/vue-ui-dumbbell-BjGLUyTB.cjs +9 -0
- package/dist/{vue-ui-dumbbell-EoH10k2D.js → vue-ui-dumbbell-kOEJnUNy.js} +43 -42
- package/dist/vue-ui-flow-BxqHFumu.cjs +1 -0
- package/dist/{vue-ui-flow-B-xWkgVv.js → vue-ui-flow-DVvxwHKl.js} +53 -52
- package/dist/vue-ui-funnel-CPGQJsTE.cjs +1 -0
- package/dist/{vue-ui-funnel-hdajl9CD.js → vue-ui-funnel-Dh9Zio3k.js} +13 -12
- package/dist/{vue-ui-galaxy-CeqCjd4V.js → vue-ui-galaxy-DBrUSx1b.js} +31 -30
- package/dist/vue-ui-galaxy-S4L3B76T.cjs +1 -0
- package/dist/vue-ui-gauge-Cs-ypQfN.cjs +1 -0
- package/dist/{vue-ui-gauge-BSuGWZEY.js → vue-ui-gauge-tZvlIU-S.js} +36 -35
- package/dist/{vue-ui-gizmo-D_J2R5JU.cjs → vue-ui-gizmo-CCSsG2_b.cjs} +1 -1
- package/dist/{vue-ui-gizmo-VFwChXXf.js → vue-ui-gizmo-Dci5soUk.js} +3 -3
- package/dist/vue-ui-heatmap-DJ7wdUPo.cjs +1 -0
- package/dist/{vue-ui-heatmap-DAeCu-iM.js → vue-ui-heatmap-DOcrZCVa.js} +73 -72
- package/dist/vue-ui-history-plot-Cdbru79N.cjs +1 -0
- package/dist/{vue-ui-history-plot-Caty-SWt.js → vue-ui-history-plot-qtdp25Sg.js} +33 -32
- package/dist/{vue-ui-kpi-B2WcjLWP.js → vue-ui-kpi-DTXy_HfT.js} +3 -3
- package/dist/{vue-ui-kpi-Bu24xnG8.cjs → vue-ui-kpi-vLsne_Vi.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B8QzxySW.js → vue-ui-mini-loader-B1MEbk8x.js} +2 -2
- package/dist/{vue-ui-mini-loader-BgW5M00P.cjs → vue-ui-mini-loader-CuWWrNo9.cjs} +1 -1
- package/dist/{vue-ui-molecule-Ds0uou9B.js → vue-ui-molecule-BwO_9sCz.js} +13 -12
- package/dist/vue-ui-molecule-huq_1VnO.cjs +1 -0
- package/dist/vue-ui-mood-radar-B4k3k2q7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DMrAwNQa.js → vue-ui-mood-radar-CLiiGRyR.js} +14 -13
- package/dist/{vue-ui-nested-donuts-FSCi4a9f.js → vue-ui-nested-donuts-CxAFaOns.js} +14 -13
- package/dist/{vue-ui-nested-donuts-3orKF1Fi.cjs → vue-ui-nested-donuts-t_TWJrWV.cjs} +2 -2
- package/dist/{vue-ui-onion-CiXgGubD.cjs → vue-ui-onion-DIQLewG_.cjs} +2 -2
- package/dist/{vue-ui-onion-YWVe7eaq.js → vue-ui-onion-gweww1Nd.js} +14 -13
- package/dist/{vue-ui-parallel-coordinate-plot-DeZ2tt1O.cjs → vue-ui-parallel-coordinate-plot-B48BZpEc.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-C8vxLtTa.js → vue-ui-parallel-coordinate-plot-Dos2dhCW.js} +35 -34
- package/dist/vue-ui-quadrant-BYDJYypD.cjs +1 -0
- package/dist/{vue-ui-quadrant-DmDoysAq.js → vue-ui-quadrant-fXKeOjn-.js} +15 -14
- package/dist/{vue-ui-quick-chart-BgSeWNxv.cjs → vue-ui-quick-chart-BVVVrJyc.cjs} +2 -2
- package/dist/{vue-ui-quick-chart-CwJe7rJt.js → vue-ui-quick-chart-BojZdQHp.js} +12 -11
- package/dist/vue-ui-radar-C5mA8lGM.cjs +1 -0
- package/dist/{vue-ui-radar-Bo9SbfBN.js → vue-ui-radar-D4mB15zr.js} +15 -14
- package/dist/{vue-ui-rating-DPs6BKf1.js → vue-ui-rating-BG_CF73W.js} +2 -2
- package/dist/{vue-ui-rating-CqY6A4WX.cjs → vue-ui-rating-P9KkC2lE.cjs} +1 -1
- package/dist/vue-ui-relation-circle-CfNGeO3G.cjs +1 -0
- package/dist/{vue-ui-relation-circle-3Al_2yf1.js → vue-ui-relation-circle-xYqp0Vj9.js} +13 -12
- package/dist/{vue-ui-rings-DOlqslSN.cjs → vue-ui-rings-Ba7xV0bh.cjs} +2 -2
- package/dist/{vue-ui-rings-D9_ClLdg.js → vue-ui-rings-CTw5Guq9.js} +15 -14
- package/dist/{vue-ui-scatter-DFDHrRyc.js → vue-ui-scatter-CMhOzUfw.js} +15 -14
- package/dist/vue-ui-scatter-UeHQSMn_.cjs +1 -0
- package/dist/{vue-ui-screenshot-R1IzXCqt.js → vue-ui-screenshot-DkB1LMw4.js} +2 -2
- package/dist/{vue-ui-screenshot-BWVTxKN_.cjs → vue-ui-screenshot-Dqiqn0Tt.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dn9J8aVW.cjs → vue-ui-skeleton-BZsFiqo5.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DBfQG5lC.js → vue-ui-skeleton-DDZb9FFJ.js} +3 -3
- package/dist/{vue-ui-smiley-CLv8dmnr.js → vue-ui-smiley-BgS5Przf.js} +2 -2
- package/dist/{vue-ui-smiley-DQ7I4CcQ.cjs → vue-ui-smiley-CUmfLZx6.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B0qbQaxj.js → vue-ui-spark-trend-NRIFklnc.js} +5 -5
- package/dist/{vue-ui-spark-trend-Drp1E7DH.cjs → vue-ui-spark-trend-w10yXsJZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DYW_BgkY.cjs → vue-ui-sparkbar-aigBoTy2.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bz_QHNKp.js → vue-ui-sparkbar-ejr7X72c.js} +4 -4
- package/dist/{vue-ui-sparkgauge-5EIHFUiW.js → vue-ui-sparkgauge-BOf5aBj9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C6tB0nl4.cjs → vue-ui-sparkgauge-CkefH_Q3.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-COdCqBiI.js → vue-ui-sparkhistogram-C64SJzGD.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-KIw7nvKd.cjs → vue-ui-sparkhistogram-Dtn7OLFq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CXIdKGso.cjs → vue-ui-sparkline-BKGLvlLw.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DgUc7CMn.js → vue-ui-sparkline-POZCJkr9.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-MrQzEVeh.cjs → vue-ui-sparkstackbar-BxeVbtHZ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BUqauQMd.js → vue-ui-sparkstackbar-C7v5flng.js} +5 -5
- package/dist/{vue-ui-stackbar-C-i36fcc.js → vue-ui-stackbar-DUvKoTiT.js} +16 -15
- package/dist/{vue-ui-stackbar-BUJpFyA3.cjs → vue-ui-stackbar-OS-G2tRA.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-Dc82V8Qo.js → vue-ui-strip-plot-DvQPyqtk.js} +14 -13
- package/dist/vue-ui-strip-plot-IcTvmihM.cjs +1 -0
- package/dist/{vue-ui-table-0E7zmWIW.cjs → vue-ui-table-Bo5KWUa-.cjs} +2 -2
- package/dist/{vue-ui-table-DnAzCFyM.js → vue-ui-table-C8zG8WTp.js} +1 -1
- package/dist/vue-ui-table-heatmap-DvRBb7Za.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CzwyhRmp.js → vue-ui-table-heatmap-N2a-kKWJ.js} +9 -8
- package/dist/{vue-ui-table-sparkline-BU4he5wL.js → vue-ui-table-sparkline-DOYmxyiy.js} +9 -8
- package/dist/vue-ui-table-sparkline-DVhyXHjb.cjs +1 -0
- package/dist/vue-ui-thermometer-CshBwaty.cjs +1 -0
- package/dist/{vue-ui-thermometer-uShXro0_.js → vue-ui-thermometer-DsFTU7hy.js} +26 -25
- package/dist/{vue-ui-timer-D6L29mt9.js → vue-ui-timer-BazkEbRz.js} +5 -5
- package/dist/{vue-ui-timer-C8qXGSrQ.cjs → vue-ui-timer-b4eSKrHr.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BcjGqJn-.js → vue-ui-tiremarks-LjeTpuwu.js} +20 -19
- package/dist/vue-ui-tiremarks-tCyisBN-.cjs +1 -0
- package/dist/{vue-ui-treemap-BpB4ofIX.js → vue-ui-treemap-CkPWe6se.js} +14 -13
- package/dist/vue-ui-treemap-o4rsDy3h.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-Q5ArQTC0.cjs → vue-ui-vertical-bar-D3vjiqvq.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-CEIg-_SG.js → vue-ui-vertical-bar-ViFIMQc9.js} +16 -15
- package/dist/vue-ui-waffle-4Wpu2k9B.cjs +1 -0
- package/dist/{vue-ui-waffle-h8UbPcuC.js → vue-ui-waffle-D8uQiqvC.js} +15 -14
- package/dist/{vue-ui-wheel-BhLEyhW_.js → vue-ui-wheel-DgJ52HhJ.js} +10 -9
- package/dist/vue-ui-wheel-Wkp_TkAj.cjs +1 -0
- package/dist/{vue-ui-word-cloud-oa6Tnt3L.js → vue-ui-word-cloud-BmX0SdIe.js} +39 -38
- package/dist/vue-ui-word-cloud-CtR6FmsK.cjs +1 -0
- package/dist/vue-ui-xy-B68466-C.cjs +3 -0
- package/dist/{vue-ui-xy-CXY00bkP.js → vue-ui-xy-CnNugA_v.js} +21 -19
- package/dist/{vue-ui-xy-canvas-Ce4kC0Xz.cjs → vue-ui-xy-canvas-D7IJkVz1.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DapzRtyI.js → vue-ui-xy-canvas-DRbFpLFp.js} +111 -110
- package/package.json +2 -2
- package/dist/img-BPGizWpM.cjs +0 -1
- package/dist/img-itj0Vdmx.js +0 -15
- package/dist/index-CVZp-EFm.cjs +0 -9
- package/dist/pdf-DSkQT5iH.cjs +0 -1
- package/dist/vue-ui-age-pyramid-Bt_wuZiO.cjs +0 -1
- package/dist/vue-ui-bullet-BlYz0H5Q.cjs +0 -34
- package/dist/vue-ui-carousel-table-DHN5NuUS.cjs +0 -1
- package/dist/vue-ui-circle-pack-rf-DQQuM.cjs +0 -1
- package/dist/vue-ui-donut-GBs-eAbp.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DdDVkeuH.cjs +0 -1
- package/dist/vue-ui-dumbbell-94nsg3t1.cjs +0 -9
- package/dist/vue-ui-flow-Ddn2S7NR.cjs +0 -1
- package/dist/vue-ui-funnel-Iawza5lZ.cjs +0 -1
- package/dist/vue-ui-galaxy-BoiBmzst.cjs +0 -1
- package/dist/vue-ui-gauge-B4aBDTfP.cjs +0 -1
- package/dist/vue-ui-heatmap-BNlBRWi1.cjs +0 -1
- package/dist/vue-ui-history-plot-BcjI3J96.cjs +0 -1
- package/dist/vue-ui-molecule-WPdx8i08.cjs +0 -1
- package/dist/vue-ui-mood-radar-D45uj8xo.cjs +0 -1
- package/dist/vue-ui-quadrant-LTIGWJiO.cjs +0 -1
- package/dist/vue-ui-radar-CblS9X1n.cjs +0 -1
- package/dist/vue-ui-relation-circle-COYe9dsQ.cjs +0 -1
- package/dist/vue-ui-scatter-DQhoY0TK.cjs +0 -1
- package/dist/vue-ui-strip-plot-BLECfP0D.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BHSksmMn.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BoVrzVok.cjs +0 -1
- package/dist/vue-ui-thermometer-DeJpqEix.cjs +0 -1
- package/dist/vue-ui-tiremarks-CQ4yESxv.cjs +0 -1
- package/dist/vue-ui-treemap-DbTCrAmK.cjs +0 -1
- package/dist/vue-ui-waffle-B61yE93N.cjs +0 -1
- package/dist/vue-ui-wheel-Chc9pVEu.cjs +0 -1
- package/dist/vue-ui-word-cloud-Cq6mmJVo.cjs +0 -1
- package/dist/vue-ui-xy-Brt11wmo.cjs +0 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as g, ref as d, watch as fe, onMounted as be, onBeforeUnmount as Ie, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as F, normalizeClass as ge, createBlock as L, createCommentVNode as v, createElementVNode as i, createSlots as Ge, withCtx as _, renderSlot as
|
|
2
|
-
import { u as Fe, c as
|
|
1
|
+
import { computed as g, ref as d, watch as fe, onMounted as be, onBeforeUnmount as Ie, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as F, normalizeClass as ge, createBlock as L, createCommentVNode as v, createElementVNode as i, createSlots as Ge, withCtx as _, renderSlot as p, normalizeProps as V, guardReactiveProps as E, createVNode as Me, Fragment as C, renderList as $, toDisplayString as A, createTextVNode as pe, nextTick as De } from "vue";
|
|
2
|
+
import { u as Fe, c as me, a as Ve, o as Ee, e as _e, g as Re, v as ke, D as He, f as z, X as xe, i as B, l as we, h as Ce, q as We, r as Ue } from "./index-DWsIpwzs.js";
|
|
3
3
|
import { t as Be, u as je } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
-
import { _ as qe } from "./Title-
|
|
5
|
-
import { u as Ye, U as Ze } from "./usePrinter-
|
|
6
|
-
import { D as Je } from "./DataTable-
|
|
7
|
-
import Ke from "./vue-ui-skeleton-
|
|
8
|
-
import { L as Qe } from "./Legend-
|
|
9
|
-
import et from "./vue-ui-accordion-
|
|
10
|
-
import { u as $e } from "./useNestedProp-
|
|
11
|
-
import { _ as tt } from "./PackageVersion-
|
|
12
|
-
import { P as lt } from "./PenAndPaper-
|
|
4
|
+
import { _ as qe } from "./Title-y0r2c8bY.js";
|
|
5
|
+
import { u as Ye, U as Ze } from "./usePrinter-B8LELMkA.js";
|
|
6
|
+
import { D as Je } from "./DataTable-B_PZ5EQ5.js";
|
|
7
|
+
import Ke from "./vue-ui-skeleton-DDZb9FFJ.js";
|
|
8
|
+
import { L as Qe } from "./Legend-BB51QBPV.js";
|
|
9
|
+
import et from "./vue-ui-accordion-WrimcQK1.js";
|
|
10
|
+
import { u as $e } from "./useNestedProp-Bole8bsm.js";
|
|
11
|
+
import { _ as tt } from "./PackageVersion-Cz-oD7U6.js";
|
|
12
|
+
import { P as lt } from "./PenAndPaper-DOTH2X_u.js";
|
|
13
13
|
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as st } from "./useChartAccessibility-BWojgys7.js";
|
|
15
15
|
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], it = { key: 1 }, ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = { key: 2 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 3 }, ft = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill"], gt = { key: 4 },
|
|
16
|
+
const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], it = { key: 1 }, ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = { key: 2 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 3 }, ft = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill"], gt = { key: 4 }, pt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["id"], _t = ["stop-color"], kt = ["stop-color"], xt = ["stop-color"], wt = ["id"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["stop-color"], At = ["id"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Pt = { key: 0 }, Ot = ["d", "fill"], It = { key: 1 }, Gt = ["x", "y", "height", "width", "fill"], Mt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ft = { key: 5 }, Vt = ["x", "y", "fill", "font-size"], Et = { key: 6 }, Rt = ["x", "y", "fill", "font-size"], Ht = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Wt = ["xmlns", "height", "width"], Ut = ["fill"], Bt = ["innerHTML"], jt = {
|
|
@@ -41,7 +41,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
41
41
|
set(l) {
|
|
42
42
|
return l;
|
|
43
43
|
}
|
|
44
|
-
}), y = d(
|
|
44
|
+
}), y = d(me()), j = d(0), P = d(null), q = d(null), Y = d(null), Z = d(null), J = d(null), K = d(0), Q = d(0), ee = d(0), e = g({
|
|
45
45
|
get: () => se(),
|
|
46
46
|
set: (l) => l
|
|
47
47
|
}), { userOptionsVisible: R, setUserOptionsVisibility: te, keepUserOptionState: le } = at({ config: e.value }), { svgRef: ae } = st({ config: e.value.style.chart.title });
|
|
@@ -103,14 +103,15 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
103
103
|
});
|
|
104
104
|
const { isPrinting: re, isImaging: ne, generatePdf: ue, generateImage: ie } = Ye({
|
|
105
105
|
elementId: `dumbbell_${y.value}`,
|
|
106
|
-
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell"
|
|
106
|
+
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
107
|
+
options: e.value.userOptions.print
|
|
107
108
|
}), Se = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), X = d({
|
|
108
109
|
showTable: e.value.table.show
|
|
109
110
|
}), k = g(() => b.dataset.map((l, n) => ({
|
|
110
111
|
...l,
|
|
111
112
|
start: ke(l.start),
|
|
112
113
|
end: ke(l.end),
|
|
113
|
-
id:
|
|
114
|
+
id: me()
|
|
114
115
|
}))), H = g(() => ({
|
|
115
116
|
max: Math.max(...k.value.flatMap((l) => [l.start, l.end])),
|
|
116
117
|
min: Math.min(...k.value.flatMap((l) => [l.start, l.end]))
|
|
@@ -131,12 +132,12 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
131
132
|
});
|
|
132
133
|
function I() {
|
|
133
134
|
return k.value.map((l, n) => {
|
|
134
|
-
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference,
|
|
135
|
+
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, m = t + (a - t) / 2;
|
|
135
136
|
return {
|
|
136
137
|
...l,
|
|
137
138
|
startX: t,
|
|
138
139
|
endX: a,
|
|
139
|
-
centerX:
|
|
140
|
+
centerX: m,
|
|
140
141
|
y: s.value.top + n * h.value + h.value / 2,
|
|
141
142
|
endVal: l.start
|
|
142
143
|
};
|
|
@@ -151,18 +152,18 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
151
152
|
let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
|
|
152
153
|
function n() {
|
|
153
154
|
const t = k.value.map((a) => a.end - a.start);
|
|
154
|
-
l >= Xe.value ? (cancelAnimationFrame(ce.value), f.value = I()) : (f.value = f.value.map((a,
|
|
155
|
-
a.endVal += t[
|
|
155
|
+
l >= Xe.value ? (cancelAnimationFrame(ce.value), f.value = I()) : (f.value = f.value.map((a, m) => {
|
|
156
|
+
a.endVal += t[m] * (e.value.animationSpeed / 100);
|
|
156
157
|
const w = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, D = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, U = w + (D - w) / 2;
|
|
157
158
|
return {
|
|
158
159
|
...a,
|
|
159
160
|
startX: w,
|
|
160
161
|
endX: D,
|
|
161
162
|
centerX: U,
|
|
162
|
-
y: s.value.top +
|
|
163
|
+
y: s.value.top + m * h.value + h.value / 2,
|
|
163
164
|
endVal: a.endVal
|
|
164
165
|
};
|
|
165
|
-
}), l = f.value.map((a) => a.endVal).reduce((a,
|
|
166
|
+
}), l = f.value.map((a) => a.endVal).reduce((a, m) => a + m, 0), ce.value = requestAnimationFrame(n));
|
|
166
167
|
}
|
|
167
168
|
e.value.useAnimation ? n() : f.value = I();
|
|
168
169
|
}
|
|
@@ -191,7 +192,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
191
192
|
e.value.table.columnNames.start,
|
|
192
193
|
e.value.table.columnNames.end,
|
|
193
194
|
e.value.table.columnNames.progression
|
|
194
|
-
], n = x.value.head.map((
|
|
195
|
+
], n = x.value.head.map((m, w) => {
|
|
195
196
|
const D = z({
|
|
196
197
|
p: e.value.style.chart.labels.prefix,
|
|
197
198
|
v: x.value.body[w].start,
|
|
@@ -208,7 +209,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
208
209
|
r: e.value.table.td.roundingPercentage
|
|
209
210
|
});
|
|
210
211
|
return [
|
|
211
|
-
{ name:
|
|
212
|
+
{ name: m.name },
|
|
212
213
|
D,
|
|
213
214
|
U,
|
|
214
215
|
Oe
|
|
@@ -240,9 +241,9 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
240
241
|
});
|
|
241
242
|
function he() {
|
|
242
243
|
De(() => {
|
|
243
|
-
const l = x.value.head.map((a,
|
|
244
|
+
const l = x.value.head.map((a, m) => [[
|
|
244
245
|
a.name
|
|
245
|
-
], [x.value.body[
|
|
246
|
+
], [x.value.body[m].start], [x.value.body[m].end]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = We(n);
|
|
246
247
|
Ue({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
247
248
|
});
|
|
248
249
|
}
|
|
@@ -343,49 +344,49 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
343
344
|
l.$slots.menuIcon ? {
|
|
344
345
|
name: "menuIcon",
|
|
345
346
|
fn: _(({ isOpen: t, color: a }) => [
|
|
346
|
-
|
|
347
|
+
p(l.$slots, "menuIcon", V(E({ isOpen: t, color: a })), void 0, !0)
|
|
347
348
|
]),
|
|
348
349
|
key: "0"
|
|
349
350
|
} : void 0,
|
|
350
351
|
l.$slots.optionPdf ? {
|
|
351
352
|
name: "optionPdf",
|
|
352
353
|
fn: _(() => [
|
|
353
|
-
|
|
354
|
+
p(l.$slots, "optionPdf", {}, void 0, !0)
|
|
354
355
|
]),
|
|
355
356
|
key: "1"
|
|
356
357
|
} : void 0,
|
|
357
358
|
l.$slots.optionCsv ? {
|
|
358
359
|
name: "optionCsv",
|
|
359
360
|
fn: _(() => [
|
|
360
|
-
|
|
361
|
+
p(l.$slots, "optionCsv", {}, void 0, !0)
|
|
361
362
|
]),
|
|
362
363
|
key: "2"
|
|
363
364
|
} : void 0,
|
|
364
365
|
l.$slots.optionImg ? {
|
|
365
366
|
name: "optionImg",
|
|
366
367
|
fn: _(() => [
|
|
367
|
-
|
|
368
|
+
p(l.$slots, "optionImg", {}, void 0, !0)
|
|
368
369
|
]),
|
|
369
370
|
key: "3"
|
|
370
371
|
} : void 0,
|
|
371
372
|
l.$slots.optionTable ? {
|
|
372
373
|
name: "optionTable",
|
|
373
374
|
fn: _(() => [
|
|
374
|
-
|
|
375
|
+
p(l.$slots, "optionTable", {}, void 0, !0)
|
|
375
376
|
]),
|
|
376
377
|
key: "4"
|
|
377
378
|
} : void 0,
|
|
378
379
|
l.$slots.optionFullscreen ? {
|
|
379
380
|
name: "optionFullscreen",
|
|
380
381
|
fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
381
|
-
|
|
382
|
+
p(l.$slots, "optionFullscreen", V(E({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
382
383
|
]),
|
|
383
384
|
key: "5"
|
|
384
385
|
} : void 0,
|
|
385
386
|
l.$slots.optionAnnotator ? {
|
|
386
387
|
name: "optionAnnotator",
|
|
387
388
|
fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
388
|
-
|
|
389
|
+
p(l.$slots, "optionAnnotator", V(E({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
389
390
|
]),
|
|
390
391
|
key: "6"
|
|
391
392
|
} : void 0
|
|
@@ -410,7 +411,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
410
411
|
pointerEvents: "none"
|
|
411
412
|
}
|
|
412
413
|
}, [
|
|
413
|
-
|
|
414
|
+
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
414
415
|
], 8, ut)) : v("", !0),
|
|
415
416
|
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", it, [
|
|
416
417
|
(o(!0), r(C, null, $(c.value.ticks, (t, a) => (o(), r("line", {
|
|
@@ -482,7 +483,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
482
483
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
483
484
|
}),
|
|
484
485
|
{ datapoint: t, seriesIndex: a }
|
|
485
|
-
)), 9,
|
|
486
|
+
)), 9, pt))), 256))
|
|
486
487
|
])) : v("", !0),
|
|
487
488
|
i("defs", null, [
|
|
488
489
|
i("radialGradient", {
|
|
@@ -501,7 +502,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
501
502
|
offset: "100%",
|
|
502
503
|
"stop-color": e.value.style.chart.plots.startColor
|
|
503
504
|
}, null, 8, xt)
|
|
504
|
-
], 8,
|
|
505
|
+
], 8, mt),
|
|
505
506
|
i("radialGradient", {
|
|
506
507
|
id: `end_grad_${y.value}`,
|
|
507
508
|
fy: "30%"
|
|
@@ -632,10 +633,10 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
632
633
|
{ datapoint: t, seriesIndex: a }
|
|
633
634
|
)), 9, Rt))), 256))
|
|
634
635
|
])) : v("", !0),
|
|
635
|
-
|
|
636
|
+
p(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
636
637
|
], 14, nt)) : v("", !0),
|
|
637
638
|
l.$slots.watermark ? (o(), r("div", Ht, [
|
|
638
|
-
|
|
639
|
+
p(l.$slots, "watermark", V(E({ isPrinting: u(re) || u(ne) })), void 0, !0)
|
|
639
640
|
])) : v("", !0),
|
|
640
641
|
S.value ? v("", !0) : (o(), L(Ke, {
|
|
641
642
|
key: 6,
|
|
@@ -675,11 +676,11 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
675
676
|
fill: t.color
|
|
676
677
|
}, null, 8, Ut)
|
|
677
678
|
], 8, Wt)),
|
|
678
|
-
|
|
679
|
+
pe(" " + A(t.name), 1)
|
|
679
680
|
], 4)
|
|
680
681
|
]),
|
|
681
682
|
_: 1
|
|
682
|
-
}, 8, ["legendSet", "config"])) :
|
|
683
|
+
}, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
|
|
683
684
|
key: 1,
|
|
684
685
|
legend: ve.value
|
|
685
686
|
}, void 0, !0)
|
|
@@ -690,7 +691,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
690
691
|
ref: Z,
|
|
691
692
|
dir: "auto"
|
|
692
693
|
}, [
|
|
693
|
-
|
|
694
|
+
p(l.$slots, "source", {}, void 0, !0)
|
|
694
695
|
], 512)) : v("", !0),
|
|
695
696
|
S.value ? (o(), L(et, {
|
|
696
697
|
key: 8,
|
|
@@ -725,7 +726,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
725
726
|
}, null, 8, Bt)
|
|
726
727
|
]),
|
|
727
728
|
td: _(({ td: t }) => [
|
|
728
|
-
|
|
729
|
+
pe(A(t.name || t), 1)
|
|
729
730
|
]),
|
|
730
731
|
_: 1
|
|
731
732
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -734,7 +735,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
734
735
|
}, 8, ["config"])) : v("", !0)
|
|
735
736
|
], 46, rt));
|
|
736
737
|
}
|
|
737
|
-
}, cl = /* @__PURE__ */ ot(jt, [["__scopeId", "data-v-
|
|
738
|
+
}, cl = /* @__PURE__ */ ot(jt, [["__scopeId", "data-v-39357753"]]);
|
|
738
739
|
export {
|
|
739
740
|
cl as default
|
|
740
741
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Crz6y51C.cjs"),ye=require("./Title-BkwZ_rBI.cjs"),oe=require("./usePrinter-Cqxw0sR7.cjs"),be=require("./DataTable-Dp7g_Ei4.cjs"),we=require("./vue-ui-accordion-10T9IdE-.cjs"),Ce=require("./vue-ui-skeleton-BZsFiqo5.cjs"),le=require("./useNestedProp-B8CE091o.cjs"),Ne=require("./PackageVersion-Dj3KQ8Ax.cjs"),xe=require("./PenAndPaper-OCjAJH70.cjs"),$e=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./useChartAccessibility-Cm7nkzTG.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Pe={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Ee={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),P=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),E=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})}E.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=P.value[i]||P.value[i%P.value.length]||s.palette[i]||s.palette[i%d.length]});for(const u in n)n[u].height=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=E.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 E.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.PenAndPaper,{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",Pe,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Ee,[(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;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { computed as
|
|
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 Ze, G as Ce, L as Je, i as Ke, q as Qe, r as et } from "./index-
|
|
3
|
-
import { _ as tt } from "./Title-
|
|
4
|
-
import { u as ot, U as lt } from "./usePrinter-
|
|
5
|
-
import { D as at } from "./DataTable-
|
|
6
|
-
import nt from "./vue-ui-accordion-
|
|
7
|
-
import st from "./vue-ui-skeleton-
|
|
8
|
-
import { u as $e } from "./useNestedProp-
|
|
9
|
-
import { _ as ut } from "./PackageVersion-
|
|
10
|
-
import { P as rt } from "./PenAndPaper-
|
|
1
|
+
import { computed as p, onMounted as Ye, ref as k, watch as De, createElementBlock as c, openBlock as i, unref as u, normalizeStyle as x, normalizeClass as ye, createBlock as I, createCommentVNode as w, createSlots as Ge, withCtx as y, renderSlot as g, 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 Ze, G as Ce, L as Je, i as Ke, q as Qe, r as et } from "./index-DWsIpwzs.js";
|
|
3
|
+
import { _ as tt } from "./Title-y0r2c8bY.js";
|
|
4
|
+
import { u as ot, U as lt } from "./usePrinter-B8LELMkA.js";
|
|
5
|
+
import { D as at } from "./DataTable-B_PZ5EQ5.js";
|
|
6
|
+
import nt from "./vue-ui-accordion-WrimcQK1.js";
|
|
7
|
+
import st from "./vue-ui-skeleton-DDZb9FFJ.js";
|
|
8
|
+
import { u as $e } from "./useNestedProp-Bole8bsm.js";
|
|
9
|
+
import { _ as ut } from "./PackageVersion-Cz-oD7U6.js";
|
|
10
|
+
import { P as rt } from "./PenAndPaper-DOTH2X_u.js";
|
|
11
11
|
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { u as ct } from "./useChartAccessibility-BWojgys7.js";
|
|
13
13
|
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -19,14 +19,14 @@ const vt = ["id"], ft = {
|
|
|
19
19
|
}, ht = {
|
|
20
20
|
key: 2,
|
|
21
21
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
22
|
-
},
|
|
22
|
+
}, pt = ["xmlns", "viewBox"], gt = ["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"], xt = {
|
|
23
23
|
key: 4,
|
|
24
24
|
class: "vue-data-ui-watermark"
|
|
25
25
|
}, _t = {
|
|
26
26
|
key: 6,
|
|
27
27
|
ref: "source",
|
|
28
28
|
dir: "auto"
|
|
29
|
-
}, Nt = ["innerHTML"],
|
|
29
|
+
}, Nt = ["innerHTML"], Ot = {
|
|
30
30
|
__name: "vue-ui-flow",
|
|
31
31
|
props: {
|
|
32
32
|
config: {
|
|
@@ -43,7 +43,7 @@ const vt = ["id"], ft = {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
setup(xe, { expose: _e }) {
|
|
46
|
-
const { vue_ui_flow: Ne } = Be(), m = xe, D =
|
|
46
|
+
const { vue_ui_flow: Ne } = Be(), m = xe, D = p(() => !!m.dataset && m.dataset.length);
|
|
47
47
|
Ye(() => {
|
|
48
48
|
Z();
|
|
49
49
|
});
|
|
@@ -53,11 +53,11 @@ const vt = ["id"], ft = {
|
|
|
53
53
|
type: "dataset"
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
const G = k(ke()), J = k(null), K = k(0), Q = k(0),
|
|
57
|
-
function
|
|
58
|
-
|
|
56
|
+
const G = k(ke()), J = k(null), K = k(0), Q = k(0), O = k(!1);
|
|
57
|
+
function Oe(t) {
|
|
58
|
+
O.value = t, K.value += 1;
|
|
59
59
|
}
|
|
60
|
-
const e =
|
|
60
|
+
const e = p({
|
|
61
61
|
get: () => le(),
|
|
62
62
|
set: (t) => t
|
|
63
63
|
}), { userOptionsVisible: U, setUserOptionsVisibility: ee, keepUserOptionState: te } = it({ config: e.value }), { svgRef: oe } = ct({ config: e.value.style.chart.title });
|
|
@@ -75,18 +75,19 @@ const vt = ["id"], ft = {
|
|
|
75
75
|
} : t;
|
|
76
76
|
}
|
|
77
77
|
De(() => m.config, (t) => {
|
|
78
|
-
e.value = le(), U.value = !e.value.userOptions.showOnChartHover, Z(), Q.value += 1,
|
|
78
|
+
e.value = le(), U.value = !e.value.userOptions.showOnChartHover, Z(), Q.value += 1, T.value.showTable = e.value.table.show;
|
|
79
79
|
}, { deep: !0 });
|
|
80
80
|
const { isPrinting: ae, isImaging: ne, generatePdf: se, generateImage: ue } = ot({
|
|
81
81
|
elementId: `flow_${G.value}`,
|
|
82
|
-
fileName: e.value.style.chart.title.text || "vue-ui-flow"
|
|
83
|
-
|
|
82
|
+
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
83
|
+
options: e.value.userOptions.print
|
|
84
|
+
}), Te = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), V = p(() => qe(e.value.customPalette)), re = p(() => e.value.style.chart.nodes.gap), _ = p(() => e.value.style.chart.nodes.width), T = k({
|
|
84
85
|
showTable: e.value.table.show
|
|
85
|
-
}), ie =
|
|
86
|
+
}), ie = p(() => e.value.style.chart.links.width), B = p(() => !m.dataset || !m.dataset.length ? [] : m.dataset.map((t) => [
|
|
86
87
|
t[0],
|
|
87
88
|
t[1],
|
|
88
89
|
f(t[2])
|
|
89
|
-
])), ce =
|
|
90
|
+
])), ce = p(() => {
|
|
90
91
|
const t = {};
|
|
91
92
|
function l(a) {
|
|
92
93
|
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
@@ -141,21 +142,21 @@ const vt = ["id"], ft = {
|
|
|
141
142
|
for (const s in l) {
|
|
142
143
|
let r = n[s].absoluteY + e.value.style.chart.padding.top;
|
|
143
144
|
l[s].children && l[s].children.forEach(({ target: h, value: N }, $) => {
|
|
144
|
-
const E = n[h].y + e.value.style.chart.padding.top, R = n[s], X = n[h], he = f(r),
|
|
145
|
+
const E = n[h].y + e.value.style.chart.padding.top, R = n[s], X = n[h], he = f(r), pe = f(r + N / l[s].outflow * R.height), ge = f(E), me = f(E + N / l[h].inflow * X.height), ze = {
|
|
145
146
|
id: ke(),
|
|
146
147
|
source: s,
|
|
147
148
|
target: h,
|
|
148
|
-
path: `M ${f(R.x) + f(_.value)} ${he} L ${f(R.x) + f(_.value)} ${
|
|
149
|
+
path: `M ${f(R.x) + f(_.value)} ${he} L ${f(R.x) + f(_.value)} ${pe} L ${f(X.x)} ${me} L ${f(X.x)} ${ge} Z`,
|
|
149
150
|
value: N,
|
|
150
151
|
sourceColor: l[s].color,
|
|
151
152
|
targetColor: l[h].color
|
|
152
153
|
};
|
|
153
|
-
v.push(ze), r +=
|
|
154
|
+
v.push(ze), r += pe - he, n[h].y += me - ge;
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
157
|
return { nodeCoordinates: n, links: v };
|
|
157
158
|
}
|
|
158
|
-
const b =
|
|
159
|
+
const b = p(() => {
|
|
159
160
|
const t = Fe(m.dataset);
|
|
160
161
|
return {
|
|
161
162
|
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
@@ -164,7 +165,7 @@ const vt = ["id"], ft = {
|
|
|
164
165
|
})),
|
|
165
166
|
links: t.links
|
|
166
167
|
};
|
|
167
|
-
}), Ae =
|
|
168
|
+
}), Ae = p(() => Le(b.value.nodes));
|
|
168
169
|
function Le(t) {
|
|
169
170
|
const l = {};
|
|
170
171
|
for (const a in t) {
|
|
@@ -173,7 +174,7 @@ const vt = ["id"], ft = {
|
|
|
173
174
|
}
|
|
174
175
|
return Math.max(...Object.values(l));
|
|
175
176
|
}
|
|
176
|
-
const P =
|
|
177
|
+
const P = p(() => {
|
|
177
178
|
const { top: t, right: l, left: o, bottom: a } = e.value.style.chart.padding, n = B.value.length * ie.value;
|
|
178
179
|
return {
|
|
179
180
|
height: Ae.value + t + a,
|
|
@@ -198,7 +199,7 @@ const vt = ["id"], ft = {
|
|
|
198
199
|
function Ee() {
|
|
199
200
|
C.value = null, L.value = null;
|
|
200
201
|
}
|
|
201
|
-
const de =
|
|
202
|
+
const de = p(() => b.value.links.map(({ source: t, target: l, sourceColor: o, targetColor: a, value: n }) => ({
|
|
202
203
|
source: t,
|
|
203
204
|
target: l,
|
|
204
205
|
sourceColor: o,
|
|
@@ -226,7 +227,7 @@ const vt = ["id"], ft = {
|
|
|
226
227
|
});
|
|
227
228
|
});
|
|
228
229
|
}
|
|
229
|
-
const H =
|
|
230
|
+
const H = p(() => {
|
|
230
231
|
const t = [
|
|
231
232
|
e.value.table.columnNames.source,
|
|
232
233
|
e.value.table.columnNames.target,
|
|
@@ -274,7 +275,7 @@ const vt = ["id"], ft = {
|
|
|
274
275
|
return b.value;
|
|
275
276
|
}
|
|
276
277
|
function fe() {
|
|
277
|
-
|
|
278
|
+
T.value.showTable = !T.value.showTable;
|
|
278
279
|
}
|
|
279
280
|
const S = k(!1);
|
|
280
281
|
function j() {
|
|
@@ -290,7 +291,7 @@ const vt = ["id"], ft = {
|
|
|
290
291
|
}), (t, l) => (i(), c("div", {
|
|
291
292
|
ref_key: "flowChart",
|
|
292
293
|
ref: J,
|
|
293
|
-
class: ye(`vue-ui-flow ${
|
|
294
|
+
class: ye(`vue-ui-flow ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
294
295
|
style: x(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
295
296
|
id: `flow_${G.value}`,
|
|
296
297
|
onMouseenter: l[2] || (l[2] = () => u(ee)(!0)),
|
|
@@ -304,7 +305,7 @@ const vt = ["id"], ft = {
|
|
|
304
305
|
active: S.value,
|
|
305
306
|
onClose: j
|
|
306
307
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : w("", !0),
|
|
307
|
-
|
|
308
|
+
Te.value ? (i(), c("div", ft, null, 512)) : w("", !0),
|
|
308
309
|
e.value.style.chart.title.text ? (i(), c("div", ht, [
|
|
309
310
|
(i(), I(tt, {
|
|
310
311
|
key: `title_${Q.value}`,
|
|
@@ -333,13 +334,13 @@ const vt = ["id"], ft = {
|
|
|
333
334
|
hasImg: e.value.userOptions.buttons.img,
|
|
334
335
|
hasTable: e.value.userOptions.buttons.table,
|
|
335
336
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
336
|
-
isFullscreen:
|
|
337
|
+
isFullscreen: O.value,
|
|
337
338
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
338
339
|
chartElement: J.value,
|
|
339
340
|
position: e.value.userOptions.position,
|
|
340
341
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
341
342
|
isAnnotation: S.value,
|
|
342
|
-
onToggleFullscreen:
|
|
343
|
+
onToggleFullscreen: Oe,
|
|
343
344
|
onGeneratePdf: u(se),
|
|
344
345
|
onGenerateCsv: ve,
|
|
345
346
|
onGenerateImage: u(ue),
|
|
@@ -352,49 +353,49 @@ const vt = ["id"], ft = {
|
|
|
352
353
|
t.$slots.menuIcon ? {
|
|
353
354
|
name: "menuIcon",
|
|
354
355
|
fn: y(({ isOpen: o, color: a }) => [
|
|
355
|
-
|
|
356
|
+
g(t.$slots, "menuIcon", M(z({ isOpen: o, color: a })), void 0, !0)
|
|
356
357
|
]),
|
|
357
358
|
key: "0"
|
|
358
359
|
} : void 0,
|
|
359
360
|
t.$slots.optionPdf ? {
|
|
360
361
|
name: "optionPdf",
|
|
361
362
|
fn: y(() => [
|
|
362
|
-
|
|
363
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
363
364
|
]),
|
|
364
365
|
key: "1"
|
|
365
366
|
} : void 0,
|
|
366
367
|
t.$slots.optionCsv ? {
|
|
367
368
|
name: "optionCsv",
|
|
368
369
|
fn: y(() => [
|
|
369
|
-
|
|
370
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
370
371
|
]),
|
|
371
372
|
key: "2"
|
|
372
373
|
} : void 0,
|
|
373
374
|
t.$slots.optionImg ? {
|
|
374
375
|
name: "optionImg",
|
|
375
376
|
fn: y(() => [
|
|
376
|
-
|
|
377
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
377
378
|
]),
|
|
378
379
|
key: "3"
|
|
379
380
|
} : void 0,
|
|
380
381
|
t.$slots.optionTable ? {
|
|
381
382
|
name: "optionTable",
|
|
382
383
|
fn: y(() => [
|
|
383
|
-
|
|
384
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
384
385
|
]),
|
|
385
386
|
key: "4"
|
|
386
387
|
} : void 0,
|
|
387
388
|
t.$slots.optionFullscreen ? {
|
|
388
389
|
name: "optionFullscreen",
|
|
389
390
|
fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
390
|
-
|
|
391
|
+
g(t.$slots, "optionFullscreen", M(z({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
391
392
|
]),
|
|
392
393
|
key: "5"
|
|
393
394
|
} : void 0,
|
|
394
395
|
t.$slots.optionAnnotator ? {
|
|
395
396
|
name: "optionAnnotator",
|
|
396
397
|
fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
397
|
-
|
|
398
|
+
g(t.$slots, "optionAnnotator", M(z({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
398
399
|
]),
|
|
399
400
|
key: "6"
|
|
400
401
|
} : void 0
|
|
@@ -404,7 +405,7 @@ const vt = ["id"], ft = {
|
|
|
404
405
|
ref: oe,
|
|
405
406
|
xmlns: u(Ze),
|
|
406
407
|
viewBox: `0 0 ${P.value.width} ${P.value.height}`,
|
|
407
|
-
class: ye({ "vue-data-ui-fullscreen--on":
|
|
408
|
+
class: ye({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
408
409
|
style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
409
410
|
}, [
|
|
410
411
|
be(ut),
|
|
@@ -418,8 +419,8 @@ const vt = ["id"], ft = {
|
|
|
418
419
|
pointerEvents: "none"
|
|
419
420
|
}
|
|
420
421
|
}, [
|
|
421
|
-
|
|
422
|
-
], 8,
|
|
422
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
423
|
+
], 8, gt)) : w("", !0),
|
|
423
424
|
Y("defs", null, [
|
|
424
425
|
(i(!0), c(F, null, A(b.value.links, (o, a) => (i(), c("linearGradient", {
|
|
425
426
|
id: o.id,
|
|
@@ -485,10 +486,10 @@ const vt = ["id"], ft = {
|
|
|
485
486
|
}),
|
|
486
487
|
{ datapoint: o, seriesIndex: a }
|
|
487
488
|
)), 13, $t))), 256)),
|
|
488
|
-
|
|
489
|
-
], 14,
|
|
489
|
+
g(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
490
|
+
], 14, pt)),
|
|
490
491
|
t.$slots.watermark ? (i(), c("div", xt, [
|
|
491
|
-
|
|
492
|
+
g(t.$slots, "watermark", M(z({ isPrinting: u(ae) || u(ne) })), void 0, !0)
|
|
492
493
|
])) : w("", !0),
|
|
493
494
|
D.value ? w("", !0) : (i(), I(st, {
|
|
494
495
|
key: 5,
|
|
@@ -500,13 +501,13 @@ const vt = ["id"], ft = {
|
|
|
500
501
|
}
|
|
501
502
|
}, null, 8, ["config"])),
|
|
502
503
|
t.$slots.source ? (i(), c("div", _t, [
|
|
503
|
-
|
|
504
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
504
505
|
], 512)) : w("", !0),
|
|
505
506
|
D.value ? (i(), I(nt, {
|
|
506
507
|
key: 7,
|
|
507
508
|
hideDetails: "",
|
|
508
509
|
config: {
|
|
509
|
-
open:
|
|
510
|
+
open: T.value.showTable,
|
|
510
511
|
maxHeight: 1e4,
|
|
511
512
|
body: {
|
|
512
513
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -525,7 +526,7 @@ const vt = ["id"], ft = {
|
|
|
525
526
|
body: H.value.body,
|
|
526
527
|
config: H.value.config,
|
|
527
528
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
528
|
-
onClose: l[1] || (l[1] = (o) =>
|
|
529
|
+
onClose: l[1] || (l[1] = (o) => T.value.showTable = !1)
|
|
529
530
|
}, {
|
|
530
531
|
th: y(({ th: o }) => [
|
|
531
532
|
Y("div", {
|
|
@@ -543,7 +544,7 @@ const vt = ["id"], ft = {
|
|
|
543
544
|
}, 8, ["config"])) : w("", !0)
|
|
544
545
|
], 46, vt));
|
|
545
546
|
}
|
|
546
|
-
}, Gt = /* @__PURE__ */ dt(
|
|
547
|
+
}, Gt = /* @__PURE__ */ dt(Ot, [["__scopeId", "data-v-34c6a87d"]]);
|
|
547
548
|
export {
|
|
548
549
|
Gt as default
|
|
549
550
|
};
|