vue-data-ui 2.7.2 → 2.7.3
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-Cuf9zUpa.cjs → Arrow-CwCPcRDq.cjs} +1 -1
- package/dist/{Arrow-SOQeOwmT.js → Arrow-DZ9pNVTr.js} +1 -1
- package/dist/{BaseIcon-C0unoacb.cjs → BaseIcon-BQ6ScTsr.cjs} +1 -1
- package/dist/{BaseIcon-DqYzMisq.js → BaseIcon-CdxldTMn.js} +4 -3
- package/dist/{ColorPicker-DLNc3kpl.cjs → ColorPicker-D6mp4NrH.cjs} +1 -1
- package/dist/{ColorPicker-DyOTLjAA.js → ColorPicker-DF9jbKW-.js} +3 -3
- package/dist/{DataTable-ByOfBGEi.cjs → DataTable-4qcYZrGF.cjs} +1 -1
- package/dist/{DataTable-C_28ZqiP.js → DataTable-BFNGlApm.js} +2 -2
- package/dist/{Legend-CmKaL7xe.js → Legend-B4eIw732.js} +2 -2
- package/dist/{Legend-mrAy7yUC.cjs → Legend-D8qnv865.cjs} +1 -1
- package/dist/{PackageVersion-39l3KkzC.js → PackageVersion-BZ8-AoE_.js} +1 -1
- package/dist/{PackageVersion-By81XV8X.cjs → PackageVersion-sCi6-fwm.cjs} +1 -1
- package/dist/PenAndPaper--_AE7XzJ.js +374 -0
- package/dist/PenAndPaper-DXiYR_ED.cjs +1 -0
- package/dist/{Shape-iIO-95sh.js → Shape-BQd108EW.js} +1 -1
- package/dist/{Shape-x7U3IhoM.cjs → Shape-BjIO2Dd_.cjs} +1 -1
- package/dist/{Slicer-Ct66sqV1.cjs → Slicer-B10GL6W6.cjs} +1 -1
- package/dist/{Slicer-C49MotZz.js → Slicer-BtX8p8CI.js} +2 -2
- package/dist/{Title-BgVFZwZZ.cjs → Title-DWFudmma.cjs} +1 -1
- package/dist/{Title-Co3F59jq.js → Title-ND4kMErl.js} +1 -1
- package/dist/{Tooltip-Cr89wMKa.js → Tooltip-BWe5TPIJ.js} +1 -1
- package/dist/{Tooltip-B8E9uCVm.cjs → Tooltip-DPqJ5wwr.cjs} +1 -1
- package/dist/{dom-to-png-D9eujpXB.cjs → dom-to-png-DBOO7SYL.cjs} +1 -1
- package/dist/{dom-to-png-DtBlqZMR.js → dom-to-png-DOe_fDQ9.js} +1 -1
- package/dist/{img-DgRUFehB.cjs → img-BTldOAS7.cjs} +1 -1
- package/dist/{img-DQDP5JIH.js → img-K80BXoXO.js} +1 -1
- package/dist/{index-gC66Se26.js → index-B_dU_4T8.js} +1 -1
- package/dist/{index-BeJeDy5m.cjs → index-HGCbG8YK.cjs} +1 -1
- package/dist/{pdf-lJiGVhtL.js → pdf-BKSh5KBc.js} +1 -1
- package/dist/{pdf-Bu1ahAX2.cjs → pdf-IEdK_h03.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useNestedProp-BusTOV-6.js → useNestedProp-7s4Pw7x0.js} +1 -1
- package/dist/{useNestedProp-CF-iHhIC.cjs → useNestedProp-O_JTsxQj.cjs} +1 -1
- package/dist/{usePrinter-Bz_kd3vb.cjs → usePrinter-B2PvJuo8.cjs} +1 -1
- package/dist/{usePrinter-KMFl0n0s.js → usePrinter-CLObTJ4a.js} +3 -3
- package/dist/{vue-data-ui-BApY_erH.js → vue-data-ui-Dvy8nai9.js} +60 -60
- package/dist/{vue-data-ui-Bak-lr4I.cjs → vue-data-ui-NmIWCiVH.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-CUG7pspB.cjs +19 -0
- package/dist/{vue-ui-3d-bar-BWjU0K3_.js → vue-ui-3d-bar-Cf-VSMqf.js} +30 -30
- package/dist/{vue-ui-accordion-j2beIma_.js → vue-ui-accordion-C5dj9Voo.js} +3 -3
- package/dist/{vue-ui-accordion-CZBJSHT_.cjs → vue-ui-accordion-CSuxLH7L.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Cmw4WVB4.js → vue-ui-age-pyramid-BYHyKvk4.js} +22 -22
- package/dist/vue-ui-age-pyramid-qT6V3Y8O.cjs +1 -0
- package/dist/{vue-ui-annotator-BVv5XkoE.cjs → vue-ui-annotator-KzRsqSTn.cjs} +1 -1
- package/dist/{vue-ui-annotator-CKmqZjUD.js → vue-ui-annotator-clyvpxxd.js} +2 -2
- package/dist/{vue-ui-bullet-U_yJjO0m.js → vue-ui-bullet-CJL4NBSU.js} +36 -36
- package/dist/vue-ui-bullet-DMuibl8n.cjs +34 -0
- package/dist/{vue-ui-candlestick-DhdlFIQE.js → vue-ui-candlestick-1jHdWerO.js} +11 -11
- package/dist/vue-ui-candlestick-CMsFiP9C.cjs +2 -0
- package/dist/{vue-ui-carousel-table-Ej7qzKkp.js → vue-ui-carousel-table-BCVjpGff.js} +4 -4
- package/dist/{vue-ui-carousel-table-BhC5cEe3.cjs → vue-ui-carousel-table-CtGRQBIN.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BzNHXzDj.cjs → vue-ui-chestnut-CEQFlk-j.cjs} +1 -1
- package/dist/{vue-ui-chestnut-L0bS5jtX.js → vue-ui-chestnut-YX5q5qpY.js} +32 -32
- package/dist/{vue-ui-circle-pack-DwCzeO3L.js → vue-ui-circle-pack-DFhj3arJ.js} +44 -44
- package/dist/vue-ui-circle-pack-cXdePcYh.cjs +1 -0
- package/dist/{vue-ui-cursor-0mZP5nBc.cjs → vue-ui-cursor-DGtZLxpF.cjs} +1 -1
- package/dist/{vue-ui-cursor-DwHdXwLS.js → vue-ui-cursor-DwDTg8Za.js} +2 -2
- package/dist/{vue-ui-dashboard-DILmOchy.js → vue-ui-dashboard-DQ4-1OKY.js} +3 -3
- package/dist/{vue-ui-dashboard-CegApY8_.cjs → vue-ui-dashboard-etx_lWpJ.cjs} +1 -1
- package/dist/{vue-ui-digits-Dbwzk-sl.js → vue-ui-digits-Crcwygqg.js} +2 -2
- package/dist/{vue-ui-digits-me8Nky0A.cjs → vue-ui-digits-lRbvyU_i.cjs} +1 -1
- package/dist/{vue-ui-donut-DwE-iZSV.js → vue-ui-donut-C2h_qoIM.js} +12 -12
- package/dist/vue-ui-donut-DQeJn_KK.cjs +1 -0
- package/dist/vue-ui-donut-evolution-Dbg5HueS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DhFABvEv.js → vue-ui-donut-evolution-DbzqkGBx.js} +69 -69
- package/dist/{vue-ui-dumbbell-Cqq4iV6-.js → vue-ui-dumbbell-BVuQjSso.js} +52 -52
- package/dist/{vue-ui-dumbbell-CL15d-aQ.cjs → vue-ui-dumbbell-BaYSfxY1.cjs} +1 -1
- package/dist/{vue-ui-flow-CU-orj9I.js → vue-ui-flow-2FOH_Mxn.js} +75 -75
- package/dist/vue-ui-flow-B8NKKaa2.cjs +1 -0
- package/dist/{vue-ui-funnel-DQmQmdNV.js → vue-ui-funnel-CYt4xsc4.js} +28 -28
- package/dist/vue-ui-funnel-Cgm1VcJC.cjs +1 -0
- package/dist/{vue-ui-galaxy-nqyCbQ9j.js → vue-ui-galaxy-CmmTED3N.js} +39 -39
- package/dist/vue-ui-galaxy-D8oPaBdc.cjs +1 -0
- package/dist/vue-ui-gauge-Ushp2qER.cjs +1 -0
- package/dist/{vue-ui-gauge-BV3CJfqe.js → vue-ui-gauge-vlhW2o0y.js} +26 -26
- package/dist/{vue-ui-gizmo-CNRAH2zT.cjs → vue-ui-gizmo-B16t4cjE.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CJwSAsxs.js → vue-ui-gizmo-DtWADzHM.js} +3 -3
- package/dist/{vue-ui-heatmap-B1s7KejC.js → vue-ui-heatmap-BcNWrSYu.js} +10 -10
- package/dist/vue-ui-heatmap-PVrUXZ6f.cjs +1 -0
- package/dist/vue-ui-history-plot-D9hGmpzL.cjs +1 -0
- package/dist/{vue-ui-history-plot-z_KFt5z_.js → vue-ui-history-plot-aqwCckl3.js} +35 -35
- package/dist/{vue-ui-kpi-DabR5K70.js → vue-ui-kpi-fIEea6oo.js} +3 -3
- package/dist/{vue-ui-kpi-FaGp6_XP.cjs → vue-ui-kpi-zRnAot1s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-_plxZxma.cjs → vue-ui-mini-loader-0TKahM6o.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-w-BmywLJ.js → vue-ui-mini-loader-CnequKa7.js} +2 -2
- package/dist/{vue-ui-molecule-3ClCLk7L.cjs → vue-ui-molecule-C7qRnQk-.cjs} +1 -1
- package/dist/{vue-ui-molecule-aiWG--to.js → vue-ui-molecule-bHqvHzsr.js} +45 -45
- package/dist/vue-ui-mood-radar-BGHGOC3W.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DwxCn06q.js → vue-ui-mood-radar-BLLnwnLw.js} +40 -40
- package/dist/{vue-ui-nested-donuts-ONgAaLY-.js → vue-ui-nested-donuts-C5mqI9Vf.js} +65 -65
- package/dist/vue-ui-nested-donuts-r9LWv_9T.cjs +17 -0
- package/dist/vue-ui-onion-CKJJIQO8.cjs +5 -0
- package/dist/{vue-ui-onion-DjoQuBo8.js → vue-ui-onion-DGU0vHXZ.js} +75 -75
- package/dist/{vue-ui-parallel-coordinate-plot-DWGVzaHE.js → vue-ui-parallel-coordinate-plot-B4tVo343.js} +38 -38
- package/dist/vue-ui-parallel-coordinate-plot-CTF--y5O.cjs +8 -0
- package/dist/{vue-ui-quadrant-CgiD9c7i.js → vue-ui-quadrant-CDZspHBg.js} +54 -54
- package/dist/vue-ui-quadrant-De8bmwz_.cjs +1 -0
- package/dist/vue-ui-quick-chart-Bi7Vdl9I.cjs +15 -0
- package/dist/{vue-ui-quick-chart-5NiRxtpD.js → vue-ui-quick-chart-baWAo-Ln.js} +9 -9
- package/dist/{vue-ui-radar-CfKAy0nI.js → vue-ui-radar-CG8tGSHg.js} +55 -55
- package/dist/vue-ui-radar-DAxiwdD4.cjs +1 -0
- package/dist/{vue-ui-rating-yiM_5H0W.cjs → vue-ui-rating-Bm6BESO1.cjs} +1 -1
- package/dist/{vue-ui-rating-CbZvsZNv.js → vue-ui-rating-CcMWLaSP.js} +2 -2
- package/dist/{vue-ui-relation-circle-RRK2jhHr.js → vue-ui-relation-circle-D4vD3HD_.js} +7 -7
- package/dist/vue-ui-relation-circle-rM2pEsYK.cjs +1 -0
- package/dist/vue-ui-rings-Mt51bBc5.cjs +2 -0
- package/dist/{vue-ui-rings-CiMKMEpp.js → vue-ui-rings-R91Q3vZF.js} +62 -62
- package/dist/{vue-ui-scatter-9PFXuvoo.js → vue-ui-scatter-BKY7zeC_.js} +44 -44
- package/dist/vue-ui-scatter-COs46vAF.cjs +1 -0
- package/dist/{vue-ui-skeleton-KW-jcPRN.cjs → vue-ui-skeleton-BBWwBSGZ.cjs} +1 -1
- package/dist/{vue-ui-skeleton-7Zfds6H1.js → vue-ui-skeleton-CTZKsfWs.js} +3 -3
- package/dist/{vue-ui-smiley-D0jhMBUh.js → vue-ui-smiley-3XabGcpa.js} +2 -2
- package/dist/{vue-ui-smiley-BNQlshyY.cjs → vue-ui-smiley-CZ2XNWEt.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CLm12POW.cjs → vue-ui-spark-trend-CZnUiwhV.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D8nDY0fS.js → vue-ui-spark-trend-Dd_5kNG9.js} +5 -5
- package/dist/{vue-ui-sparkbar-ChEbpWYC.cjs → vue-ui-sparkbar-CZJ8RFMM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-wKlwMCph.js → vue-ui-sparkbar-DT_G3f_6.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CvhIe_mP.js → vue-ui-sparkgauge-CoGcwj8-.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DG824sGI.cjs → vue-ui-sparkgauge-Cra2_GdA.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B8k8a538.cjs → vue-ui-sparkhistogram-ClJhce64.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CVmbTFTc.js → vue-ui-sparkhistogram-ZI-zkp6j.js} +5 -5
- package/dist/{vue-ui-sparkline-CtqAbSzZ.js → vue-ui-sparkline-C4HvM0A7.js} +4 -4
- package/dist/{vue-ui-sparkline-7wnWuXDQ.cjs → vue-ui-sparkline-Cehnojts.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-57SONMGP.cjs → vue-ui-sparkstackbar-B6su4lbU.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DfwEeUC5.js → vue-ui-sparkstackbar-DbXifSgX.js} +5 -5
- package/dist/vue-ui-stackbar-Dxjx916g.cjs +6 -0
- package/dist/{vue-ui-stackbar-CGSVPiPx.js → vue-ui-stackbar-bBQdWmxo.js} +86 -86
- package/dist/{vue-ui-strip-plot-fJFkn8_0.js → vue-ui-strip-plot-BaAUPB0O.js} +36 -36
- package/dist/vue-ui-strip-plot-D3Mc4jJS.cjs +1 -0
- package/dist/{vue-ui-table-Das3959J.cjs → vue-ui-table-CO12Arh5.cjs} +1 -1
- package/dist/{vue-ui-table-CliL2Wsp.js → vue-ui-table-DyjampQ2.js} +1 -1
- package/dist/{vue-ui-table-heatmap-C28ozf2S.cjs → vue-ui-table-heatmap-BrXBITN7.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-ZsJMMGpG.js → vue-ui-table-heatmap-DC3LbLR1.js} +4 -4
- package/dist/{vue-ui-table-sparkline-0i9FAXug.cjs → vue-ui-table-sparkline-C-L8YXVO.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CrQNShdH.js → vue-ui-table-sparkline-MCUi0UPR.js} +5 -5
- package/dist/{vue-ui-thermometer-BaGL6WSb.js → vue-ui-thermometer-0Jw0Kc3K.js} +50 -50
- package/dist/vue-ui-thermometer-BbAmbpxI.cjs +1 -0
- package/dist/{vue-ui-timer-CFtgJ_Vi.cjs → vue-ui-timer-CgcO44Ga.cjs} +1 -1
- package/dist/{vue-ui-timer-Nk94fV-n.js → vue-ui-timer-D43Y73z-.js} +5 -5
- package/dist/vue-ui-tiremarks-B7GobiRR.cjs +1 -0
- package/dist/{vue-ui-tiremarks-zYgdq_99.js → vue-ui-tiremarks-C2z7LZOy.js} +25 -25
- package/dist/vue-ui-treemap-YuZUqTkv.cjs +1 -0
- package/dist/{vue-ui-treemap-CAxPcxn-.js → vue-ui-treemap-t2jSZWbw.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Di3FBkwJ.js → vue-ui-vertical-bar-CXbzdSDN.js} +80 -80
- package/dist/vue-ui-vertical-bar-RH9oo9ao.cjs +4 -0
- package/dist/vue-ui-waffle-C6PA3aJK.cjs +1 -0
- package/dist/{vue-ui-waffle-DBJAQsEf.js → vue-ui-waffle-Z9KsaCxx.js} +45 -45
- package/dist/{vue-ui-wheel-BTZEr2Vs.js → vue-ui-wheel-BbBHPjUa.js} +27 -27
- package/dist/vue-ui-wheel-BmWfP7V3.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DBCVUkLM.js → vue-ui-word-cloud-CUi3fEZc.js} +72 -72
- package/dist/{vue-ui-word-cloud-BEaRWIu-.cjs → vue-ui-word-cloud-DysEgxAX.cjs} +1 -1
- package/dist/{vue-ui-xy-DbN93Pcf.cjs → vue-ui-xy-B7Q6HDzu.cjs} +2 -2
- package/dist/{vue-ui-xy-aKaGgYGL.js → vue-ui-xy-BWN8izeD.js} +16 -16
- package/dist/vue-ui-xy-canvas-DZB78JsG.cjs +9 -0
- package/dist/vue-ui-xy-canvas-DfhloBZx.js +1672 -0
- package/package.json +1 -1
- package/dist/PenAndPaper-CmcfpltX.js +0 -243
- package/dist/PenAndPaper-DNbX5hR8.cjs +0 -1
- package/dist/vue-ui-3d-bar-CmbTiJVx.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Sv-HbbDJ.cjs +0 -1
- package/dist/vue-ui-bullet-vcmTY4AX.cjs +0 -34
- package/dist/vue-ui-candlestick-DQT-8PRz.cjs +0 -2
- package/dist/vue-ui-circle-pack-CVLJs0XP.cjs +0 -1
- package/dist/vue-ui-donut-FoRYusUX.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BIK2yfIJ.cjs +0 -1
- package/dist/vue-ui-flow-N825fjRf.cjs +0 -1
- package/dist/vue-ui-funnel-B6XMYl89.cjs +0 -1
- package/dist/vue-ui-galaxy-p-sbDnSY.cjs +0 -1
- package/dist/vue-ui-gauge-DsZFk8T_.cjs +0 -1
- package/dist/vue-ui-heatmap-VXgeMOwT.cjs +0 -1
- package/dist/vue-ui-history-plot-JmeGiR--.cjs +0 -1
- package/dist/vue-ui-mood-radar-CO5sPVVG.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D0nALasd.cjs +0 -17
- package/dist/vue-ui-onion-CBqx4q4k.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs +0 -8
- package/dist/vue-ui-quadrant-BOkyMgCm.cjs +0 -1
- package/dist/vue-ui-quick-chart-BRp_bNso.cjs +0 -15
- package/dist/vue-ui-radar-BpicgiWF.cjs +0 -1
- package/dist/vue-ui-relation-circle-Dg6rdyGP.cjs +0 -1
- package/dist/vue-ui-rings-A49lyv-J.cjs +0 -2
- package/dist/vue-ui-scatter-C_jHsy8M.cjs +0 -1
- package/dist/vue-ui-stackbar--0FZ_eBi.cjs +0 -6
- package/dist/vue-ui-strip-plot-C_ggDAQ-.cjs +0 -1
- package/dist/vue-ui-thermometer-h0rymM2v.cjs +0 -1
- package/dist/vue-ui-tiremarks-Cj8-XGcp.cjs +0 -1
- package/dist/vue-ui-treemap-CybL6mVf.cjs +0 -1
- package/dist/vue-ui-vertical-bar-D4IkwvAB.cjs +0 -4
- package/dist/vue-ui-waffle-7otLUrER.cjs +0 -1
- package/dist/vue-ui-wheel-BUJXtmeP.cjs +0 -1
- package/dist/vue-ui-xy-canvas-CF_lqLg-.cjs +0 -9
- package/dist/vue-ui-xy-canvas-CVQ__d4u.js +0 -1500
|
@@ -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 {
|
|
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 L, 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-B_dU_4T8.js";
|
|
3
|
+
import { _ as tt } from "./Title-ND4kMErl.js";
|
|
4
|
+
import { u as ot, U as lt } from "./usePrinter-CLObTJ4a.js";
|
|
5
|
+
import { D as at } from "./DataTable-BFNGlApm.js";
|
|
6
|
+
import nt from "./vue-ui-accordion-C5dj9Voo.js";
|
|
7
|
+
import st from "./vue-ui-skeleton-CTZKsfWs.js";
|
|
8
|
+
import { u as $e } from "./useNestedProp-7s4Pw7x0.js";
|
|
9
|
+
import { _ as ut } from "./PackageVersion-BZ8-AoE_.js";
|
|
10
|
+
import { _ as rt } from "./PenAndPaper--_AE7XzJ.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,10 +19,10 @@ const vt = ["id"], ft = {
|
|
|
19
19
|
}, ht = {
|
|
20
20
|
key: 2,
|
|
21
21
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
22
|
-
},
|
|
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
23
|
key: 4,
|
|
24
24
|
class: "vue-data-ui-watermark"
|
|
25
|
-
},
|
|
25
|
+
}, xt = {
|
|
26
26
|
key: 6,
|
|
27
27
|
ref: "source",
|
|
28
28
|
dir: "auto"
|
|
@@ -42,8 +42,8 @@ const vt = ["id"], ft = {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
setup(
|
|
46
|
-
const { vue_ui_flow: Ne } = Be(), m =
|
|
45
|
+
setup(_e, { expose: xe }) {
|
|
46
|
+
const { vue_ui_flow: Ne } = Be(), m = _e, D = g(() => !!m.dataset && m.dataset.length);
|
|
47
47
|
Ye(() => {
|
|
48
48
|
Z();
|
|
49
49
|
});
|
|
@@ -57,7 +57,7 @@ const vt = ["id"], ft = {
|
|
|
57
57
|
function Oe(t) {
|
|
58
58
|
O.value = t, K.value += 1;
|
|
59
59
|
}
|
|
60
|
-
const e =
|
|
60
|
+
const e = g({
|
|
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 });
|
|
@@ -81,13 +81,13 @@ const vt = ["id"], ft = {
|
|
|
81
81
|
elementId: `flow_${G.value}`,
|
|
82
82
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
83
83
|
options: e.value.userOptions.print
|
|
84
|
-
}), Te =
|
|
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
85
|
showTable: e.value.table.show
|
|
86
|
-
}), ie =
|
|
86
|
+
}), ie = g(() => e.value.style.chart.links.width), B = g(() => !m.dataset || !m.dataset.length ? [] : m.dataset.map((t) => [
|
|
87
87
|
t[0],
|
|
88
88
|
t[1],
|
|
89
89
|
f(t[2])
|
|
90
|
-
])), ce =
|
|
90
|
+
])), ce = g(() => {
|
|
91
91
|
const t = {};
|
|
92
92
|
function l(a) {
|
|
93
93
|
t[a] || (t[a] = { inflow: 0, outflow: 0 });
|
|
@@ -102,10 +102,10 @@ const vt = ["id"], ft = {
|
|
|
102
102
|
}
|
|
103
103
|
return o;
|
|
104
104
|
});
|
|
105
|
-
function
|
|
105
|
+
function Ie(t) {
|
|
106
106
|
return t / ce.value * 100 + e.value.style.chart.nodes.minHeight;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Pe(t) {
|
|
109
109
|
const l = e.value.style.chart.nodes.minHeight;
|
|
110
110
|
return (t - l) / 100 * ce.value;
|
|
111
111
|
}
|
|
@@ -121,7 +121,7 @@ const vt = ["id"], ft = {
|
|
|
121
121
|
l[s].color = V.value[r] || V.value[r % V.value.length] || q[r] || q[r % d.length];
|
|
122
122
|
});
|
|
123
123
|
for (const s in l)
|
|
124
|
-
l[s].height =
|
|
124
|
+
l[s].height = Ie(Math.max(l[s].inflow, l[s].outflow)), l[s].name = s;
|
|
125
125
|
const n = {};
|
|
126
126
|
for (const s in o) {
|
|
127
127
|
let r = 0;
|
|
@@ -134,7 +134,7 @@ const vt = ["id"], ft = {
|
|
|
134
134
|
height: $,
|
|
135
135
|
i: N,
|
|
136
136
|
color: l[h].color,
|
|
137
|
-
value:
|
|
137
|
+
value: Pe($)
|
|
138
138
|
}, r += $ + re.value;
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -142,21 +142,21 @@ const vt = ["id"], ft = {
|
|
|
142
142
|
for (const s in l) {
|
|
143
143
|
let r = n[s].absoluteY + e.value.style.chart.padding.top;
|
|
144
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),
|
|
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
146
|
id: ke(),
|
|
147
147
|
source: s,
|
|
148
148
|
target: h,
|
|
149
|
-
path: `M ${f(R.x) + f(
|
|
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
150
|
value: N,
|
|
151
151
|
sourceColor: l[s].color,
|
|
152
152
|
targetColor: l[h].color
|
|
153
153
|
};
|
|
154
|
-
v.push(ze), r +=
|
|
154
|
+
v.push(ze), r += ge - he, n[h].y += me - pe;
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
return { nodeCoordinates: n, links: v };
|
|
158
158
|
}
|
|
159
|
-
const b =
|
|
159
|
+
const b = g(() => {
|
|
160
160
|
const t = Fe(m.dataset);
|
|
161
161
|
return {
|
|
162
162
|
nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
|
|
@@ -165,8 +165,8 @@ const vt = ["id"], ft = {
|
|
|
165
165
|
})),
|
|
166
166
|
links: t.links
|
|
167
167
|
};
|
|
168
|
-
}),
|
|
169
|
-
function
|
|
168
|
+
}), Le = g(() => Ae(b.value.nodes));
|
|
169
|
+
function Ae(t) {
|
|
170
170
|
const l = {};
|
|
171
171
|
for (const a in t) {
|
|
172
172
|
const { x: n, height: v } = t[a];
|
|
@@ -174,11 +174,11 @@ const vt = ["id"], ft = {
|
|
|
174
174
|
}
|
|
175
175
|
return Math.max(...Object.values(l));
|
|
176
176
|
}
|
|
177
|
-
const
|
|
177
|
+
const I = g(() => {
|
|
178
178
|
const { top: t, right: l, left: o, bottom: a } = e.value.style.chart.padding, n = B.value.length * ie.value;
|
|
179
179
|
return {
|
|
180
|
-
height:
|
|
181
|
-
width: l + Math.max(...b.value.nodes.map((v) => v.x)) +
|
|
180
|
+
height: Le.value + t + a,
|
|
181
|
+
width: l + Math.max(...b.value.nodes.map((v) => v.x)) + x.value,
|
|
182
182
|
left: o,
|
|
183
183
|
top: t,
|
|
184
184
|
right: n - l,
|
|
@@ -192,14 +192,14 @@ const vt = ["id"], ft = {
|
|
|
192
192
|
l[n] || (l[n] = []), o[v] || (o[v] = []), l[n].push(v), o[v].push(n);
|
|
193
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
194
|
}
|
|
195
|
-
const C = k(null),
|
|
195
|
+
const C = k(null), A = k(null);
|
|
196
196
|
function Se(t) {
|
|
197
|
-
C.value = He(t.name),
|
|
197
|
+
C.value = He(t.name), A.value = t.name;
|
|
198
198
|
}
|
|
199
199
|
function Ee() {
|
|
200
|
-
C.value = null,
|
|
200
|
+
C.value = null, A.value = null;
|
|
201
201
|
}
|
|
202
|
-
const de =
|
|
202
|
+
const de = g(() => b.value.links.map(({ source: t, target: l, sourceColor: o, targetColor: a, value: n }) => ({
|
|
203
203
|
source: t,
|
|
204
204
|
target: l,
|
|
205
205
|
sourceColor: o,
|
|
@@ -227,7 +227,7 @@ const vt = ["id"], ft = {
|
|
|
227
227
|
});
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
const H =
|
|
230
|
+
const H = g(() => {
|
|
231
231
|
const t = [
|
|
232
232
|
e.value.table.columnNames.source,
|
|
233
233
|
e.value.table.columnNames.target,
|
|
@@ -281,7 +281,7 @@ const vt = ["id"], ft = {
|
|
|
281
281
|
function j() {
|
|
282
282
|
S.value = !S.value;
|
|
283
283
|
}
|
|
284
|
-
return
|
|
284
|
+
return xe({
|
|
285
285
|
getData: Me,
|
|
286
286
|
generateCsv: ve,
|
|
287
287
|
generateImage: ue,
|
|
@@ -292,12 +292,12 @@ const vt = ["id"], ft = {
|
|
|
292
292
|
ref_key: "flowChart",
|
|
293
293
|
ref: J,
|
|
294
294
|
class: ye(`vue-ui-flow ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
295
|
-
style:
|
|
295
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
296
296
|
id: `flow_${G.value}`,
|
|
297
297
|
onMouseenter: l[2] || (l[2] = () => u(ee)(!0)),
|
|
298
298
|
onMouseleave: l[3] || (l[3] = () => u(ee)(!1))
|
|
299
299
|
}, [
|
|
300
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
300
|
+
e.value.userOptions.buttons.annotator ? (i(), P(rt, {
|
|
301
301
|
key: 0,
|
|
302
302
|
svgRef: u(oe),
|
|
303
303
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -307,7 +307,7 @@ const vt = ["id"], ft = {
|
|
|
307
307
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : w("", !0),
|
|
308
308
|
Te.value ? (i(), c("div", ft, null, 512)) : w("", !0),
|
|
309
309
|
e.value.style.chart.title.text ? (i(), c("div", ht, [
|
|
310
|
-
(i(),
|
|
310
|
+
(i(), P(tt, {
|
|
311
311
|
key: `title_${Q.value}`,
|
|
312
312
|
config: {
|
|
313
313
|
title: {
|
|
@@ -321,7 +321,7 @@ const vt = ["id"], ft = {
|
|
|
321
321
|
}
|
|
322
322
|
}, null, 8, ["config"]))
|
|
323
323
|
])) : w("", !0),
|
|
324
|
-
e.value.userOptions.show && D.value && (u(te) || u(U)) ? (i(),
|
|
324
|
+
e.value.userOptions.show && D.value && (u(te) || u(U)) ? (i(), P(lt, {
|
|
325
325
|
ref: "details",
|
|
326
326
|
key: `user_option_${K.value}`,
|
|
327
327
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -346,56 +346,56 @@ const vt = ["id"], ft = {
|
|
|
346
346
|
onGenerateImage: u(ue),
|
|
347
347
|
onToggleTable: fe,
|
|
348
348
|
onToggleAnnotator: j,
|
|
349
|
-
style:
|
|
349
|
+
style: _({
|
|
350
350
|
visibility: u(te) ? u(U) ? "visible" : "hidden" : "visible"
|
|
351
351
|
})
|
|
352
352
|
}, Ge({ _: 2 }, [
|
|
353
353
|
t.$slots.menuIcon ? {
|
|
354
354
|
name: "menuIcon",
|
|
355
355
|
fn: y(({ isOpen: o, color: a }) => [
|
|
356
|
-
|
|
356
|
+
p(t.$slots, "menuIcon", M(z({ isOpen: o, color: a })), void 0, !0)
|
|
357
357
|
]),
|
|
358
358
|
key: "0"
|
|
359
359
|
} : void 0,
|
|
360
360
|
t.$slots.optionPdf ? {
|
|
361
361
|
name: "optionPdf",
|
|
362
362
|
fn: y(() => [
|
|
363
|
-
|
|
363
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
364
364
|
]),
|
|
365
365
|
key: "1"
|
|
366
366
|
} : void 0,
|
|
367
367
|
t.$slots.optionCsv ? {
|
|
368
368
|
name: "optionCsv",
|
|
369
369
|
fn: y(() => [
|
|
370
|
-
|
|
370
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
371
371
|
]),
|
|
372
372
|
key: "2"
|
|
373
373
|
} : void 0,
|
|
374
374
|
t.$slots.optionImg ? {
|
|
375
375
|
name: "optionImg",
|
|
376
376
|
fn: y(() => [
|
|
377
|
-
|
|
377
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
378
378
|
]),
|
|
379
379
|
key: "3"
|
|
380
380
|
} : void 0,
|
|
381
381
|
t.$slots.optionTable ? {
|
|
382
382
|
name: "optionTable",
|
|
383
383
|
fn: y(() => [
|
|
384
|
-
|
|
384
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
385
385
|
]),
|
|
386
386
|
key: "4"
|
|
387
387
|
} : void 0,
|
|
388
388
|
t.$slots.optionFullscreen ? {
|
|
389
389
|
name: "optionFullscreen",
|
|
390
390
|
fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
391
|
-
|
|
391
|
+
p(t.$slots, "optionFullscreen", M(z({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
392
392
|
]),
|
|
393
393
|
key: "5"
|
|
394
394
|
} : void 0,
|
|
395
395
|
t.$slots.optionAnnotator ? {
|
|
396
396
|
name: "optionAnnotator",
|
|
397
397
|
fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
398
|
-
|
|
398
|
+
p(t.$slots, "optionAnnotator", M(z({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
399
399
|
]),
|
|
400
400
|
key: "6"
|
|
401
401
|
} : void 0
|
|
@@ -404,25 +404,25 @@ const vt = ["id"], ft = {
|
|
|
404
404
|
ref_key: "svgRef",
|
|
405
405
|
ref: oe,
|
|
406
406
|
xmlns: u(Ze),
|
|
407
|
-
viewBox: `0 0 ${
|
|
407
|
+
viewBox: `0 0 ${I.value.width} ${I.value.height}`,
|
|
408
408
|
class: ye({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
409
|
-
style:
|
|
409
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
410
410
|
}, [
|
|
411
411
|
be(ut),
|
|
412
412
|
t.$slots["chart-background"] ? (i(), c("foreignObject", {
|
|
413
413
|
key: 0,
|
|
414
414
|
x: 0,
|
|
415
415
|
y: 0,
|
|
416
|
-
width:
|
|
417
|
-
height:
|
|
416
|
+
width: I.value.width,
|
|
417
|
+
height: I.value.height,
|
|
418
418
|
style: {
|
|
419
419
|
pointerEvents: "none"
|
|
420
420
|
}
|
|
421
421
|
}, [
|
|
422
|
-
|
|
423
|
-
], 8,
|
|
422
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
423
|
+
], 8, pt)) : w("", !0),
|
|
424
424
|
Y("defs", null, [
|
|
425
|
-
(i(!0), c(F, null,
|
|
425
|
+
(i(!0), c(F, null, L(b.value.links, (o, a) => (i(), c("linearGradient", {
|
|
426
426
|
id: o.id,
|
|
427
427
|
x1: "0%",
|
|
428
428
|
y1: "0%",
|
|
@@ -439,42 +439,42 @@ const vt = ["id"], ft = {
|
|
|
439
439
|
}, null, 8, bt)
|
|
440
440
|
], 8, mt))), 256))
|
|
441
441
|
]),
|
|
442
|
-
(i(!0), c(F, null,
|
|
442
|
+
(i(!0), c(F, null, L(b.value.links, (o) => (i(), c("path", {
|
|
443
443
|
class: "vue-ui-flow-link",
|
|
444
444
|
d: o.path,
|
|
445
445
|
fill: `url(#${o.id})`,
|
|
446
446
|
stroke: e.value.style.chart.links.stroke,
|
|
447
447
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
448
|
-
style:
|
|
448
|
+
style: _(`opacity:${A.value ? [o.target, o.source].includes(A.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}`)
|
|
449
449
|
}, null, 12, kt))), 256)),
|
|
450
|
-
(i(!0), c(F, null,
|
|
450
|
+
(i(!0), c(F, null, L(b.value.nodes, (o, a) => (i(), c("rect", {
|
|
451
451
|
class: "vue-ui-flow-node",
|
|
452
452
|
x: o.x,
|
|
453
453
|
y: u(f)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
454
454
|
height: u(f)(o.height),
|
|
455
|
-
width:
|
|
455
|
+
width: x.value,
|
|
456
456
|
fill: o.color,
|
|
457
457
|
stroke: e.value.style.chart.nodes.stroke,
|
|
458
458
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
459
459
|
onMouseenter: (n) => Se(o),
|
|
460
460
|
onMouseleave: l[0] || (l[0] = (n) => Ee()),
|
|
461
|
-
style:
|
|
461
|
+
style: _(`opacity:${C.value ? C.value.includes(o.name) ? 1 : 0.2 : 1}`)
|
|
462
462
|
}, null, 44, wt))), 256)),
|
|
463
|
-
(i(!0), c(F, null,
|
|
464
|
-
x: o.x +
|
|
463
|
+
(i(!0), c(F, null, L(b.value.nodes, (o, a) => (i(), c("text", {
|
|
464
|
+
x: o.x + x.value / 2,
|
|
465
465
|
y: u(f)(o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4) + e.value.style.chart.padding.top,
|
|
466
466
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
467
467
|
fill: u(Ce)(o.color),
|
|
468
468
|
"text-anchor": "middle",
|
|
469
|
-
style:
|
|
469
|
+
style: _(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
470
470
|
}, W(e.value.style.chart.nodes.labels.abbreviation.use ? u(Je)({ source: o.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : o.name), 13, Ct))), 256)),
|
|
471
|
-
(i(!0), c(F, null,
|
|
472
|
-
x: o.x +
|
|
471
|
+
(i(!0), c(F, null, L(b.value.nodes, (o, a) => (i(), c("text", {
|
|
472
|
+
x: o.x + x.value / 2,
|
|
473
473
|
y: u(f)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize) + e.value.style.chart.padding.top,
|
|
474
474
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
475
475
|
fill: u(Ce)(o.color),
|
|
476
476
|
"text-anchor": "middle",
|
|
477
|
-
style:
|
|
477
|
+
style: _(`pointer-events: none; opacity:${C.value ? C.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
478
478
|
}, W(u(Ke)(
|
|
479
479
|
e.value.style.chart.nodes.labels.formatter,
|
|
480
480
|
o.value,
|
|
@@ -486,12 +486,12 @@ const vt = ["id"], ft = {
|
|
|
486
486
|
}),
|
|
487
487
|
{ datapoint: o, seriesIndex: a }
|
|
488
488
|
)), 13, $t))), 256)),
|
|
489
|
-
|
|
490
|
-
], 14,
|
|
491
|
-
t.$slots.watermark ? (i(), c("div",
|
|
492
|
-
|
|
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
493
|
])) : w("", !0),
|
|
494
|
-
D.value ? w("", !0) : (i(),
|
|
494
|
+
D.value ? w("", !0) : (i(), P(st, {
|
|
495
495
|
key: 5,
|
|
496
496
|
config: {
|
|
497
497
|
type: "flow",
|
|
@@ -500,10 +500,10 @@ const vt = ["id"], ft = {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
}, null, 8, ["config"])),
|
|
503
|
-
t.$slots.source ? (i(), c("div",
|
|
504
|
-
|
|
503
|
+
t.$slots.source ? (i(), c("div", xt, [
|
|
504
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
505
505
|
], 512)) : w("", !0),
|
|
506
|
-
D.value ? (i(),
|
|
506
|
+
D.value ? (i(), P(nt, {
|
|
507
507
|
key: 7,
|
|
508
508
|
hideDetails: "",
|
|
509
509
|
config: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-HGCbG8YK.cjs"),ye=require("./Title-DWFudmma.cjs"),oe=require("./usePrinter-B2PvJuo8.cjs"),be=require("./DataTable-4qcYZrGF.cjs"),we=require("./vue-ui-accordion-CSuxLH7L.cjs"),Ce=require("./vue-ui-skeleton-BBWwBSGZ.cjs"),le=require("./useNestedProp-O_JTsxQj.cjs"),Ne=require("./PackageVersion-sCi6-fwm.cjs"),xe=require("./PenAndPaper-DXiYR_ED.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;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useCssVars as Le, computed as v, onMounted as Te, ref as c, watch as Ae, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as _, normalizeClass as T, createBlock as A, createCommentVNode as f, createSlots as Ne, withCtx as g, renderSlot as b, normalizeProps as M, guardReactiveProps as R, createVNode as Oe, createElementVNode as C, mergeProps as q, Fragment as V, renderList as B, toDisplayString as U, createTextVNode as ze, nextTick as Se } from "vue";
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as be } from "./useNestedProp-
|
|
4
|
-
import { u as je, U as He } from "./usePrinter-
|
|
5
|
-
import { _ as Xe } from "./Title-
|
|
6
|
-
import {
|
|
7
|
-
import { D as Ye } from "./DataTable-
|
|
8
|
-
import We from "./vue-ui-accordion-
|
|
2
|
+
import { u as Fe, o as Ie, e as me, g as Pe, c as De, d as Me, l as Re, i as E, f as G, X as Ve, G as Be, F as Y, a as Ue, q as Ee, r as Ge } from "./index-B_dU_4T8.js";
|
|
3
|
+
import { u as be } from "./useNestedProp-7s4Pw7x0.js";
|
|
4
|
+
import { u as je, U as He } from "./usePrinter-CLObTJ4a.js";
|
|
5
|
+
import { _ as Xe } from "./Title-ND4kMErl.js";
|
|
6
|
+
import { _ as qe } from "./PenAndPaper--_AE7XzJ.js";
|
|
7
|
+
import { D as Ye } from "./DataTable-BFNGlApm.js";
|
|
8
|
+
import We from "./vue-ui-accordion-C5dj9Voo.js";
|
|
9
9
|
import { t as Je, u as Ke } from "./useResponsive-Cw4oZ8sQ.js";
|
|
10
|
-
import Qe from "./vue-ui-skeleton-
|
|
10
|
+
import Qe from "./vue-ui-skeleton-CTZKsfWs.js";
|
|
11
11
|
import { u as Ze } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
-
import { _ as et } from "./PackageVersion-
|
|
12
|
+
import { _ as et } from "./PackageVersion-BZ8-AoE_.js";
|
|
13
13
|
import { u as tt } from "./useChartAccessibility-BWojgys7.js";
|
|
14
14
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["id"], rt = ["stop-color"], ut = ["stop-color"], it = ["stop-color"], ct = ["stroke", "stroke-width"], vt = ["stroke", "stroke-width"], dt = ["x", "y", "font-size", "fill", "font-weight"], ht = ["points", "fill"], ft = ["stroke", "stroke-width", "rx"], mt = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill", "font-weight"], yt = {
|
|
@@ -35,14 +35,14 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
35
35
|
Le((t) => ({
|
|
36
36
|
"58a5200a": _e.value
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_funnel: pe } =
|
|
38
|
+
const { vue_ui_funnel: pe } = Fe(), y = ye, x = v(() => !!y.dataset && y.dataset.length);
|
|
39
39
|
Te(W);
|
|
40
40
|
function W() {
|
|
41
|
-
if (
|
|
41
|
+
if (Ie(y.dataset) ? me({
|
|
42
42
|
componentName: "VueUiFunnel",
|
|
43
43
|
type: "dataset"
|
|
44
44
|
}) : y.dataset.forEach((t, l) => {
|
|
45
|
-
|
|
45
|
+
Pe({
|
|
46
46
|
datasetObject: t,
|
|
47
47
|
requiredAttributes: ["name", "value"]
|
|
48
48
|
}).forEach((a) => {
|
|
@@ -56,7 +56,7 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
56
56
|
}), e.value.responsive) {
|
|
57
57
|
const t = Je(() => {
|
|
58
58
|
const { width: l, height: a } = Ke({
|
|
59
|
-
chart:
|
|
59
|
+
chart: I.value,
|
|
60
60
|
title: e.value.style.chart.title.text ? te.value : null,
|
|
61
61
|
source: ee.value,
|
|
62
62
|
noTitle: Z.value
|
|
@@ -83,10 +83,10 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
ae.value = new ResizeObserver(t), ae.value.observe(
|
|
86
|
+
ae.value = new ResizeObserver(t), ae.value.observe(I.value.parentNode);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const I = c(null), N = c(De()), J = c(0), K = c(0), Q = c(0), Z = c(null), ee = c(null), te = c(null), ae = c(null), w = c(!1);
|
|
90
90
|
function le() {
|
|
91
91
|
const t = be({
|
|
92
92
|
userConfig: y.config,
|
|
@@ -167,9 +167,9 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
167
167
|
function $e(t) {
|
|
168
168
|
z.value = t, J.value += 1;
|
|
169
169
|
}
|
|
170
|
-
const _e = v(() => `${p.value.length * 150}ms`),
|
|
170
|
+
const _e = v(() => `${p.value.length * 150}ms`), P = c(!1);
|
|
171
171
|
function H() {
|
|
172
|
-
|
|
172
|
+
P.value = !P.value;
|
|
173
173
|
}
|
|
174
174
|
function he() {
|
|
175
175
|
O.value.showTable = !O.value.showTable;
|
|
@@ -186,7 +186,7 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
186
186
|
e.value.table.columnNames.value,
|
|
187
187
|
e.value.table.columnNames.percentage
|
|
188
188
|
], l = S.value.head.map((m, h) => {
|
|
189
|
-
const
|
|
189
|
+
const F = E(
|
|
190
190
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
191
191
|
S.value.body[h],
|
|
192
192
|
G({
|
|
@@ -208,7 +208,7 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
208
208
|
);
|
|
209
209
|
return [
|
|
210
210
|
{ color: m.color, name: m.name },
|
|
211
|
-
|
|
211
|
+
F,
|
|
212
212
|
X
|
|
213
213
|
];
|
|
214
214
|
}), a = {
|
|
@@ -255,7 +255,7 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
255
255
|
toggleAnnotator: H
|
|
256
256
|
}), (t, l) => (s(), u("div", {
|
|
257
257
|
ref_key: "funnelChart",
|
|
258
|
-
ref:
|
|
258
|
+
ref: I,
|
|
259
259
|
class: T(`vue-ui-funnel ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
260
260
|
style: _(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
261
261
|
id: `funnel_${N.value}`,
|
|
@@ -267,7 +267,7 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
267
267
|
svgRef: n(ne),
|
|
268
268
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
269
269
|
color: e.value.style.chart.color,
|
|
270
|
-
active:
|
|
270
|
+
active: P.value,
|
|
271
271
|
onClose: H
|
|
272
272
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
273
273
|
ke.value ? (s(), u("div", {
|
|
@@ -313,11 +313,11 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
313
313
|
hasLabel: !1,
|
|
314
314
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
315
315
|
isFullscreen: z.value,
|
|
316
|
-
chartElement:
|
|
316
|
+
chartElement: I.value,
|
|
317
317
|
position: e.value.userOptions.position,
|
|
318
318
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
319
319
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
320
|
-
isAnnotation:
|
|
320
|
+
isAnnotation: P.value,
|
|
321
321
|
onToggleAnnotator: H,
|
|
322
322
|
onToggleFullscreen: $e,
|
|
323
323
|
onGeneratePdf: n(ie),
|
|
@@ -435,14 +435,14 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
435
435
|
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
436
436
|
}
|
|
437
437
|
}), null, 16, ct)) : f("", !0),
|
|
438
|
-
(s(!0), u(V, null, B(r.value, ({ cx: a, cy: o, r: m, fill: h },
|
|
438
|
+
(s(!0), u(V, null, B(r.value, ({ cx: a, cy: o, r: m, fill: h }, F) => (s(), u("circle", q({ ref_for: !0 }, { cx: a, cy: o, r: m, fill: h }, {
|
|
439
439
|
stroke: e.value.style.chart.circles.stroke,
|
|
440
440
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
441
441
|
class: {
|
|
442
442
|
animated: e.value.useCssAnimation && !w.value
|
|
443
443
|
},
|
|
444
444
|
style: {
|
|
445
|
-
animationDelay: `${150 *
|
|
445
|
+
animationDelay: `${150 * F}ms`
|
|
446
446
|
}
|
|
447
447
|
}), null, 16, vt))), 256)),
|
|
448
448
|
(s(!0), u(V, null, B(r.value, (a, o) => (s(), u("text", {
|
|
@@ -479,7 +479,7 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
479
479
|
transition: e.value.useCssAnimation ? `all ${150 * p.value.length}ms ease-in` : "none"
|
|
480
480
|
})
|
|
481
481
|
}, null, 14, ht)) : f("", !0),
|
|
482
|
-
(s(!0), u(V, null, B(r.value, ({ x: a, y: o, height: m, width: h, fill:
|
|
482
|
+
(s(!0), u(V, null, B(r.value, ({ x: a, y: o, height: m, width: h, fill: F }, X) => (s(), u("rect", q({ ref_for: !0 }, { x: a, y: o, height: m, width: h, fill: F }, {
|
|
483
483
|
stroke: e.value.style.chart.bars.stroke,
|
|
484
484
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
485
485
|
rx: e.value.style.chart.bars.borderRadius,
|
|
@@ -600,7 +600,7 @@ const lt = ["id"], st = ["xmlns", "viewBox"], ot = ["width", "height"], nt = ["i
|
|
|
600
600
|
}, 8, ["config"])) : f("", !0)
|
|
601
601
|
], 46, lt));
|
|
602
602
|
}
|
|
603
|
-
},
|
|
603
|
+
}, It = /* @__PURE__ */ at(pt, [["__scopeId", "data-v-1f0bddfb"]]);
|
|
604
604
|
export {
|
|
605
|
-
|
|
605
|
+
It as default
|
|
606
606
|
};
|