vue-data-ui 2.4.51 → 2.4.52
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-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
- package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
- package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
- package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
- package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.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-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
- package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
- package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
- package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
- package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
- package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
- package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
- package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
- package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
- package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
- package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
- package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
- package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
- package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
- package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
- package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
- package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
- package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
- package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
- package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
- package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
- package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
- package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
- package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
- package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
- package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
- package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
- package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
- package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
- package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
- package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
- package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as m, ref as v, watch as ye, onMounted as fe, onBeforeUnmount as Oe, openBlock as o, createElementBlock as r, normalizeClass as be, normalizeStyle as F, unref as u, createBlock as L, createCommentVNode as y, createSlots as Ge, withCtx as _, renderSlot as k, normalizeProps as
|
|
2
|
-
import { u as Ie, c as pe, t as Fe, o as Ve, e as me, g as Ee, v as _e, D as He, f as z, X as ke, i as
|
|
1
|
+
import { computed as m, ref as v, watch as ye, onMounted as fe, onBeforeUnmount as Oe, openBlock as o, createElementBlock as r, normalizeClass as be, normalizeStyle as F, unref as u, createBlock as L, createCommentVNode as y, createSlots as Ge, withCtx as _, renderSlot as k, normalizeProps as U, guardReactiveProps as R, createVNode as Me, Fragment as w, renderList as $, createElementVNode as i, toDisplayString as A, createTextVNode as ge, nextTick as De } from "vue";
|
|
2
|
+
import { u as Ie, c as pe, t as Fe, o as Ve, e as me, g as Ee, v as _e, D as He, f as z, X as ke, i as B, l as xe, h as Ce, q as We, r as Ue } from "./index-K5uyh1gA.js";
|
|
3
3
|
import { t as Re, u as Be } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as je } from "./Title-
|
|
5
|
-
import { u as qe, U as Ye } from "./usePrinter-
|
|
6
|
-
import { D as Ze } from "./DataTable-
|
|
7
|
-
import Je from "./vue-ui-skeleton-
|
|
8
|
-
import { L as Ke } from "./Legend-
|
|
9
|
-
import Qe from "./vue-ui-accordion-
|
|
10
|
-
import { u as we } from "./useNestedProp-
|
|
11
|
-
import { _ as et } from "./PackageVersion-
|
|
12
|
-
import { P as tt } from "./PenAndPaper-
|
|
4
|
+
import { _ as je } from "./Title-aMb2ETf7.js";
|
|
5
|
+
import { u as qe, U as Ye } from "./usePrinter-p_ZZlGc9.js";
|
|
6
|
+
import { D as Ze } from "./DataTable-COkA4Nyz.js";
|
|
7
|
+
import Je from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
8
|
+
import { L as Ke } from "./Legend-bYlSC7I7.js";
|
|
9
|
+
import Qe from "./vue-ui-accordion-CsJT7Az3.js";
|
|
10
|
+
import { u as we } from "./useNestedProp-DifqJZAs.js";
|
|
11
|
+
import { _ as et } from "./PackageVersion-Dz3KcTL4.js";
|
|
12
|
+
import { P as tt } from "./PenAndPaper-BycdTwSP.js";
|
|
13
13
|
import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ut = { key: 1 }, it = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = { key: 2 }, vt = ["x", "y", "font-size", "fill", "font-weight"], ht = ["x", "y", "font-size", "fill"], yt = { key: 3 }, ft = ["x", "y", "font-size", "fill", "font-weight"], bt = ["id"], gt = ["stop-color"], pt = ["stop-color"], mt = ["stop-color"], _t = ["id"], kt = ["stop-color"], xt = ["stop-color"], Ct = ["stop-color"], wt = ["id"], $t = ["stop-color"], Lt = ["stop-color"], At = ["id"], zt = ["stop-color"], St = ["stop-color"], Xt = { key: 0 }, Nt = ["d", "fill"], Tt = { key: 1 }, Pt = ["x", "y", "height", "width", "fill"], Ot = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Mt = { key: 2 }, Dt = ["x", "y", "fill", "font-size"], It = { key: 3 }, Ft = ["x", "y", "fill", "font-size"], Vt = {
|
|
@@ -40,10 +40,10 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
40
40
|
set(l) {
|
|
41
41
|
return l;
|
|
42
42
|
}
|
|
43
|
-
}), f = v(pe()),
|
|
43
|
+
}), f = v(pe()), j = v(0), X = v(null), q = v(null), Y = v(null), Z = v(null), J = v(null), K = v(0), Q = v(0), ee = v(0), e = m({
|
|
44
44
|
get: () => ae(),
|
|
45
45
|
set: (l) => l
|
|
46
|
-
}), { userOptionsVisible:
|
|
46
|
+
}), { userOptionsVisible: V, setUserOptionsVisibility: te, keepUserOptionState: le } = lt({ config: e.value });
|
|
47
47
|
function ae() {
|
|
48
48
|
const l = we({
|
|
49
49
|
userConfig: p.config,
|
|
@@ -57,7 +57,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
57
57
|
} : l;
|
|
58
58
|
}
|
|
59
59
|
ye(() => p.config, (l) => {
|
|
60
|
-
e.value = ae(), se(),
|
|
60
|
+
e.value = ae(), V.value = !e.value.showOnChartHover, se(), K.value += 1, Q.value += 1, ee.value += 1, h.value = e.value.style.chart.rowHeight, N.value = e.value.style.chart.width;
|
|
61
61
|
}, { deep: !0 }), ye(() => p.dataset, (l) => {
|
|
62
62
|
ce();
|
|
63
63
|
}, { deep: !0 });
|
|
@@ -85,10 +85,10 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
85
85
|
const l = Re(() => {
|
|
86
86
|
const { width: n, height: t } = Be({
|
|
87
87
|
chart: X.value,
|
|
88
|
-
title: e.value.style.chart.title.text ?
|
|
89
|
-
legend: e.value.style.chart.legend.show ?
|
|
90
|
-
source:
|
|
91
|
-
noTitle:
|
|
88
|
+
title: e.value.style.chart.title.text ? q.value : null,
|
|
89
|
+
legend: e.value.style.chart.legend.show ? Y.value : null,
|
|
90
|
+
source: Z.value,
|
|
91
|
+
noTitle: J.value
|
|
92
92
|
});
|
|
93
93
|
N.value = n, h.value = t / p.dataset.length, b.value = G();
|
|
94
94
|
});
|
|
@@ -108,10 +108,10 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
108
108
|
start: _e(l.start),
|
|
109
109
|
end: _e(l.end),
|
|
110
110
|
id: pe()
|
|
111
|
-
}))),
|
|
111
|
+
}))), E = m(() => ({
|
|
112
112
|
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
113
113
|
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
114
|
-
})), d = m(() => He(
|
|
114
|
+
})), d = m(() => He(E.value.min < 0 ? E.value.min : 0, E.value.max, e.value.style.chart.grid.scaleSteps)), h = v(e.value.style.chart.rowHeight), N = v(e.value.style.chart.width), s = m(() => {
|
|
115
115
|
const l = h.value, n = e.value.style.chart.padding.left + e.value.style.chart.padding.right + N.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * p.dataset.length, a = d.value.ticks.length * (N.value / d.value.ticks.length);
|
|
116
116
|
return {
|
|
117
117
|
left: e.value.style.chart.padding.left,
|
|
@@ -150,12 +150,12 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
150
150
|
const t = x.value.map((a) => a.end - a.start);
|
|
151
151
|
l >= Se.value ? (cancelAnimationFrame(ie.value), b.value = G()) : (b.value = b.value.map((a, c) => {
|
|
152
152
|
a.endVal += t[c] * (e.value.animationSpeed / 100);
|
|
153
|
-
const g = s.value.left + (a.start + Math.abs(d.value.min)) / (d.value.max + Math.abs(d.value.min)) * s.value.widthPlotReference, I = s.value.left + (a.endVal + Math.abs(d.value.min)) / (d.value.max + Math.abs(d.value.min)) * s.value.widthPlotReference,
|
|
153
|
+
const g = s.value.left + (a.start + Math.abs(d.value.min)) / (d.value.max + Math.abs(d.value.min)) * s.value.widthPlotReference, I = s.value.left + (a.endVal + Math.abs(d.value.min)) / (d.value.max + Math.abs(d.value.min)) * s.value.widthPlotReference, W = g + (I - g) / 2;
|
|
154
154
|
return {
|
|
155
155
|
...a,
|
|
156
156
|
startX: g,
|
|
157
157
|
endX: I,
|
|
158
|
-
centerX:
|
|
158
|
+
centerX: W,
|
|
159
159
|
y: s.value.top + c * h.value + h.value / 2,
|
|
160
160
|
endVal: a.endVal
|
|
161
161
|
};
|
|
@@ -194,7 +194,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
194
194
|
v: C.value.body[g].start,
|
|
195
195
|
s: e.value.style.chart.labels.suffix,
|
|
196
196
|
r: e.value.table.td.roundingValue
|
|
197
|
-
}),
|
|
197
|
+
}), W = z({
|
|
198
198
|
p: e.value.style.chart.labels.prefix,
|
|
199
199
|
v: C.value.body[g].end,
|
|
200
200
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -207,7 +207,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
207
207
|
return [
|
|
208
208
|
{ name: c.name },
|
|
209
209
|
I,
|
|
210
|
-
|
|
210
|
+
W,
|
|
211
211
|
Pe
|
|
212
212
|
];
|
|
213
213
|
}), t = {
|
|
@@ -245,7 +245,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
245
245
|
}
|
|
246
246
|
const T = v(!1);
|
|
247
247
|
function Ne(l) {
|
|
248
|
-
T.value = l,
|
|
248
|
+
T.value = l, j.value += 1;
|
|
249
249
|
}
|
|
250
250
|
function Te() {
|
|
251
251
|
return b.value;
|
|
@@ -254,7 +254,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
254
254
|
O.value.showTable = !O.value.showTable;
|
|
255
255
|
}
|
|
256
256
|
const D = v(!1);
|
|
257
|
-
function
|
|
257
|
+
function H() {
|
|
258
258
|
D.value = !D.value;
|
|
259
259
|
}
|
|
260
260
|
return Le({
|
|
@@ -263,7 +263,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
263
263
|
generateCsv: ve,
|
|
264
264
|
generateImage: ue,
|
|
265
265
|
toggleTable: he,
|
|
266
|
-
toggleAnnotator:
|
|
266
|
+
toggleAnnotator: H
|
|
267
267
|
}), (l, n) => (o(), r("div", {
|
|
268
268
|
ref_key: "dumbbellChart",
|
|
269
269
|
ref: X,
|
|
@@ -279,23 +279,23 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
279
279
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
280
280
|
color: e.value.style.chart.color,
|
|
281
281
|
active: D.value,
|
|
282
|
-
onClose:
|
|
282
|
+
onClose: H
|
|
283
283
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
284
284
|
ze.value ? (o(), r("div", {
|
|
285
285
|
key: 1,
|
|
286
286
|
ref_key: "noTitle",
|
|
287
|
-
ref:
|
|
287
|
+
ref: J,
|
|
288
288
|
class: "vue-data-ui-no-title-space",
|
|
289
289
|
style: "height:36px; width: 100%;background:transparent"
|
|
290
290
|
}, null, 512)) : y("", !0),
|
|
291
291
|
e.value.style.chart.title.text ? (o(), r("div", {
|
|
292
292
|
key: 2,
|
|
293
293
|
ref_key: "chartTitle",
|
|
294
|
-
ref:
|
|
294
|
+
ref: q,
|
|
295
295
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
296
296
|
}, [
|
|
297
297
|
(o(), L(je, {
|
|
298
|
-
key: `title_${
|
|
298
|
+
key: `title_${K.value}`,
|
|
299
299
|
config: {
|
|
300
300
|
title: {
|
|
301
301
|
cy: "donut-div-title",
|
|
@@ -308,9 +308,9 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
308
308
|
}
|
|
309
309
|
}, null, 8, ["config"]))
|
|
310
310
|
], 512)) : y("", !0),
|
|
311
|
-
e.value.userOptions.show && S.value && (u(le) || u(
|
|
311
|
+
e.value.userOptions.show && S.value && (u(le) || u(V)) ? (o(), L(Ye, {
|
|
312
312
|
ref: "details",
|
|
313
|
-
key: `user_option_${
|
|
313
|
+
key: `user_option_${j.value}`,
|
|
314
314
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
315
315
|
color: e.value.style.chart.color,
|
|
316
316
|
isPrinting: u(oe),
|
|
@@ -332,9 +332,9 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
332
332
|
onGenerateCsv: ve,
|
|
333
333
|
onGenerateImage: u(ue),
|
|
334
334
|
onToggleTable: he,
|
|
335
|
-
onToggleAnnotator:
|
|
335
|
+
onToggleAnnotator: H,
|
|
336
336
|
style: F({
|
|
337
|
-
visibility: u(le) ? u(
|
|
337
|
+
visibility: u(le) ? u(V) ? "visible" : "hidden" : "visible"
|
|
338
338
|
})
|
|
339
339
|
}, Ge({ _: 2 }, [
|
|
340
340
|
l.$slots.optionPdf ? {
|
|
@@ -368,14 +368,14 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
368
368
|
l.$slots.optionFullscreen ? {
|
|
369
369
|
name: "optionFullscreen",
|
|
370
370
|
fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
371
|
-
k(l.$slots, "optionFullscreen",
|
|
371
|
+
k(l.$slots, "optionFullscreen", U(R({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
372
372
|
]),
|
|
373
373
|
key: "4"
|
|
374
374
|
} : void 0,
|
|
375
375
|
l.$slots.optionAnnotator ? {
|
|
376
376
|
name: "optionAnnotator",
|
|
377
377
|
fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
378
|
-
k(l.$slots, "optionAnnotator",
|
|
378
|
+
k(l.$slots, "optionAnnotator", U(R({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
379
379
|
]),
|
|
380
380
|
key: "5"
|
|
381
381
|
} : void 0
|
|
@@ -448,7 +448,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
448
448
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
449
449
|
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
450
450
|
"text-anchor": "middle"
|
|
451
|
-
}, A(u(
|
|
451
|
+
}, A(u(B)(
|
|
452
452
|
e.value.style.chart.labels.formatter,
|
|
453
453
|
t,
|
|
454
454
|
u(z)({
|
|
@@ -576,7 +576,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
576
576
|
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
577
577
|
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
578
578
|
"text-anchor": "middle"
|
|
579
|
-
}, A(u(
|
|
579
|
+
}, A(u(B)(
|
|
580
580
|
e.value.style.chart.labels.formatter,
|
|
581
581
|
c.start,
|
|
582
582
|
u(z)({
|
|
@@ -595,7 +595,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
595
595
|
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
596
596
|
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
597
597
|
"text-anchor": "middle"
|
|
598
|
-
}, A(u(
|
|
598
|
+
}, A(u(B)(
|
|
599
599
|
e.value.style.chart.labels.formatter,
|
|
600
600
|
c.end,
|
|
601
601
|
u(z)({
|
|
@@ -611,7 +611,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
611
611
|
k(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
612
612
|
], 14, ot)) : y("", !0),
|
|
613
613
|
l.$slots.watermark ? (o(), r("div", Vt, [
|
|
614
|
-
k(l.$slots, "watermark",
|
|
614
|
+
k(l.$slots, "watermark", U(R({ isPrinting: u(oe) || u(re) })), void 0, !0)
|
|
615
615
|
])) : y("", !0),
|
|
616
616
|
S.value ? y("", !0) : (o(), L(Je, {
|
|
617
617
|
key: 6,
|
|
@@ -627,10 +627,10 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
627
627
|
}, null, 8, ["config"])),
|
|
628
628
|
i("div", {
|
|
629
629
|
ref_key: "chartLegend",
|
|
630
|
-
ref:
|
|
630
|
+
ref: Y
|
|
631
631
|
}, [
|
|
632
632
|
e.value.style.chart.legend.show && S.value ? (o(), L(Ke, {
|
|
633
|
-
key: `legend_${
|
|
633
|
+
key: `legend_${ee.value}`,
|
|
634
634
|
legendSet: de.value,
|
|
635
635
|
config: Xe.value
|
|
636
636
|
}, {
|
|
@@ -663,7 +663,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
663
663
|
l.$slots.source ? (o(), r("div", {
|
|
664
664
|
key: 7,
|
|
665
665
|
ref_key: "source",
|
|
666
|
-
ref:
|
|
666
|
+
ref: Z,
|
|
667
667
|
dir: "auto"
|
|
668
668
|
}, [
|
|
669
669
|
k(l.$slots, "source", {}, void 0, !0)
|
|
@@ -686,7 +686,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
686
686
|
}, {
|
|
687
687
|
content: _(() => [
|
|
688
688
|
(o(), L(Ze, {
|
|
689
|
-
key: `table_${
|
|
689
|
+
key: `table_${Q.value}`,
|
|
690
690
|
colNames: M.value.colNames,
|
|
691
691
|
head: M.value.head,
|
|
692
692
|
body: M.value.body,
|
|
@@ -710,7 +710,7 @@ const st = ["id"], ot = ["xmlns", "viewBox"], rt = { key: 0 }, nt = ["x1", "x2",
|
|
|
710
710
|
}, 8, ["config"])) : y("", !0)
|
|
711
711
|
], 46, st));
|
|
712
712
|
}
|
|
713
|
-
}, rl = /* @__PURE__ */ at(Ut, [["__scopeId", "data-v-
|
|
713
|
+
}, rl = /* @__PURE__ */ at(Ut, [["__scopeId", "data-v-65f8df5c"]]);
|
|
714
714
|
export {
|
|
715
715
|
rl as default
|
|
716
716
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { computed as m, onMounted as ze, ref as b, watch as Ye, openBlock as i, createElementBlock as c, normalizeClass as ge, normalizeStyle as x, unref as u, createBlock as O, createCommentVNode as C, createSlots as De, withCtx as y, renderSlot as k, normalizeProps as
|
|
2
|
-
import { u as Ve, o as Be, e as je, c as ye, t as Xe, a as We, p as
|
|
3
|
-
import { _ as et } from "./Title-
|
|
4
|
-
import { u as tt, U as ot } from "./usePrinter-
|
|
5
|
-
import { D as lt } from "./DataTable-
|
|
6
|
-
import at from "./vue-ui-accordion-
|
|
7
|
-
import nt from "./vue-ui-skeleton-
|
|
8
|
-
import { u as Ce } from "./useNestedProp-
|
|
9
|
-
import { _ as st } from "./PackageVersion-
|
|
10
|
-
import { P as rt } from "./PenAndPaper-
|
|
1
|
+
import { computed as m, onMounted as ze, ref as b, watch as Ye, openBlock as i, createElementBlock as c, normalizeClass as ge, normalizeStyle as x, unref as u, createBlock as O, createCommentVNode as C, createSlots as De, withCtx as y, renderSlot as k, normalizeProps as W, guardReactiveProps as q, createVNode as be, createElementVNode as M, Fragment as P, renderList as F, toDisplayString as R, createTextVNode as Ge, nextTick as Ue } from "vue";
|
|
2
|
+
import { u as Ve, o as Be, e as je, c as ye, t as Xe, a as We, p as Z, b as qe, v as f, f as ke, X as Re, G as we, L as Ze, i as Je, q as Ke, r as Qe } from "./index-K5uyh1gA.js";
|
|
3
|
+
import { _ as et } from "./Title-aMb2ETf7.js";
|
|
4
|
+
import { u as tt, U as ot } from "./usePrinter-p_ZZlGc9.js";
|
|
5
|
+
import { D as lt } from "./DataTable-COkA4Nyz.js";
|
|
6
|
+
import at from "./vue-ui-accordion-CsJT7Az3.js";
|
|
7
|
+
import nt from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
8
|
+
import { u as Ce } from "./useNestedProp-DifqJZAs.js";
|
|
9
|
+
import { _ as st } from "./PackageVersion-Dz3KcTL4.js";
|
|
10
|
+
import { P as rt } from "./PenAndPaper-BycdTwSP.js";
|
|
11
11
|
import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const ct = ["id"], dt = {
|
|
@@ -44,22 +44,22 @@ const ct = ["id"], dt = {
|
|
|
44
44
|
setup($e, { expose: xe }) {
|
|
45
45
|
const p = $e, { vue_ui_flow: _e } = Ve(), E = m(() => !!p.dataset && p.dataset.length);
|
|
46
46
|
ze(() => {
|
|
47
|
-
|
|
47
|
+
J();
|
|
48
48
|
});
|
|
49
|
-
function
|
|
49
|
+
function J() {
|
|
50
50
|
Be(p.dataset) && je({
|
|
51
51
|
componentName: "VueUiFlow",
|
|
52
52
|
type: "dataset"
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
const z = b(ye()), Y = b(null),
|
|
55
|
+
const z = b(ye()), Y = b(null), K = b(0), Q = b(0), T = b(!1);
|
|
56
56
|
function Ne(t) {
|
|
57
|
-
T.value = t,
|
|
57
|
+
T.value = t, K.value += 1;
|
|
58
58
|
}
|
|
59
59
|
const e = m({
|
|
60
60
|
get: () => oe(),
|
|
61
61
|
set: (t) => t
|
|
62
|
-
}), { userOptionsVisible:
|
|
62
|
+
}), { userOptionsVisible: D, setUserOptionsVisibility: ee, keepUserOptionState: te } = ut({ config: e.value });
|
|
63
63
|
function oe() {
|
|
64
64
|
const t = Ce({
|
|
65
65
|
userConfig: p.config,
|
|
@@ -70,18 +70,18 @@ const ct = ["id"], dt = {
|
|
|
70
70
|
userConfig: Xe.vue_ui_flow[t.theme] || p.config,
|
|
71
71
|
defaultConfig: t
|
|
72
72
|
}),
|
|
73
|
-
customPalette: We[t.theme] ||
|
|
73
|
+
customPalette: We[t.theme] || Z
|
|
74
74
|
} : t;
|
|
75
75
|
}
|
|
76
76
|
Ye(() => p.config, (t) => {
|
|
77
|
-
e.value = oe(),
|
|
77
|
+
e.value = oe(), D.value = !e.value.showOnChartHover, J(), Q.value += 1;
|
|
78
78
|
}, { deep: !0 });
|
|
79
79
|
const { isPrinting: le, isImaging: ae, generatePdf: ne, generateImage: se } = tt({
|
|
80
80
|
elementId: `flow_${z.value}`,
|
|
81
81
|
fileName: e.value.style.chart.title.text || "vue-ui-flow"
|
|
82
|
-
}), Te = m(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
82
|
+
}), Te = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), G = m(() => qe(e.value.customPalette)), re = m(() => e.value.style.chart.nodes.gap), _ = m(() => e.value.style.chart.nodes.width), I = b({
|
|
83
83
|
showTable: e.value.table.show
|
|
84
|
-
}), ue = m(() => e.value.style.chart.links.width),
|
|
84
|
+
}), ue = m(() => e.value.style.chart.links.width), U = m(() => !p.dataset || !p.dataset.length ? [] : p.dataset.map((t) => [
|
|
85
85
|
t[0],
|
|
86
86
|
t[1],
|
|
87
87
|
f(t[2])
|
|
@@ -90,7 +90,7 @@ const ct = ["id"], dt = {
|
|
|
90
90
|
function l(n) {
|
|
91
91
|
t[n] || (t[n] = { inflow: 0, outflow: 0 });
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
U.value.forEach(([n, a, v]) => {
|
|
94
94
|
l(n), l(a), t[n].outflow += v, t[a].inflow += v;
|
|
95
95
|
});
|
|
96
96
|
let o = 0;
|
|
@@ -116,7 +116,7 @@ const ct = ["id"], dt = {
|
|
|
116
116
|
const $ = l[s] ? l[s].level : 0, S = $ + 1;
|
|
117
117
|
n(s, $), n(r, S), l[s].children || (l[s].children = []), l[s].children.push({ target: r, value: h }), l[s].outflow += h, l[r].inflow += h;
|
|
118
118
|
}), Object.keys(l).forEach((s, r) => {
|
|
119
|
-
l[s].color =
|
|
119
|
+
l[s].color = G.value[r] || G.value[r % G.value.length] || Z[r] || Z[r % d.length];
|
|
120
120
|
});
|
|
121
121
|
for (const s in l)
|
|
122
122
|
l[s].height = Oe(Math.max(l[s].inflow, l[s].outflow)), l[s].name = s;
|
|
@@ -140,11 +140,11 @@ const ct = ["id"], dt = {
|
|
|
140
140
|
for (const s in l) {
|
|
141
141
|
let r = a[s].absoluteY;
|
|
142
142
|
l[s].children && l[s].children.forEach(({ target: h, value: N }, $) => {
|
|
143
|
-
const S = a[h].y,
|
|
143
|
+
const S = a[h].y, j = a[s], X = a[h], fe = f(r), he = f(r + N / l[s].outflow * j.height), me = f(S), pe = f(S + N / l[h].inflow * X.height), Ee = {
|
|
144
144
|
id: ye(),
|
|
145
145
|
source: s,
|
|
146
146
|
target: h,
|
|
147
|
-
path: `M ${f(
|
|
147
|
+
path: `M ${f(j.x) + f(_.value)} ${fe} L ${f(j.x) + f(_.value)} ${he} L ${f(X.x)} ${pe} L ${f(X.x)} ${me} Z`,
|
|
148
148
|
value: N,
|
|
149
149
|
sourceColor: l[s].color,
|
|
150
150
|
targetColor: l[h].color
|
|
@@ -172,8 +172,8 @@ const ct = ["id"], dt = {
|
|
|
172
172
|
}
|
|
173
173
|
return Math.max(...Object.values(l));
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
const { top: t, right: l, left: o, bottom: n } = e.value.style.chart.padding, a =
|
|
175
|
+
const V = m(() => {
|
|
176
|
+
const { top: t, right: l, left: o, bottom: n } = e.value.style.chart.padding, a = U.value.length * ue.value;
|
|
177
177
|
return {
|
|
178
178
|
height: Ie.value + t + n,
|
|
179
179
|
width: l + Math.max(...g.value.nodes.map((v) => v.x)) + _.value,
|
|
@@ -186,7 +186,7 @@ const ct = ["id"], dt = {
|
|
|
186
186
|
});
|
|
187
187
|
function Ae(t) {
|
|
188
188
|
const l = {}, o = {}, n = /* @__PURE__ */ new Set();
|
|
189
|
-
return
|
|
189
|
+
return U.value.forEach(([a, v, s]) => {
|
|
190
190
|
l[a] || (l[a] = []), o[v] || (o[v] = []), l[a].push(v), o[v].push(a);
|
|
191
191
|
}), l[t] && l[t].forEach((a) => n.add(a)), o[t] && o[t].forEach((a) => n.add(a)), Array.from(n).concat(t);
|
|
192
192
|
}
|
|
@@ -276,7 +276,7 @@ const ct = ["id"], dt = {
|
|
|
276
276
|
I.value.showTable = !I.value.showTable;
|
|
277
277
|
}
|
|
278
278
|
const H = b(!1);
|
|
279
|
-
function
|
|
279
|
+
function B() {
|
|
280
280
|
H.value = !H.value;
|
|
281
281
|
}
|
|
282
282
|
return xe({
|
|
@@ -285,7 +285,7 @@ const ct = ["id"], dt = {
|
|
|
285
285
|
generateImage: se,
|
|
286
286
|
generatePdf: ne,
|
|
287
287
|
toggleTable: ve,
|
|
288
|
-
toggleAnnotator:
|
|
288
|
+
toggleAnnotator: B
|
|
289
289
|
}), (t, l) => (i(), c("div", {
|
|
290
290
|
ref_key: "flowChart",
|
|
291
291
|
ref: Y,
|
|
@@ -301,12 +301,12 @@ const ct = ["id"], dt = {
|
|
|
301
301
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
302
302
|
color: e.value.style.chart.color,
|
|
303
303
|
active: H.value,
|
|
304
|
-
onClose:
|
|
304
|
+
onClose: B
|
|
305
305
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : C("", !0),
|
|
306
306
|
Te.value ? (i(), c("div", dt, null, 512)) : C("", !0),
|
|
307
307
|
e.value.style.chart.title.text ? (i(), c("div", vt, [
|
|
308
308
|
(i(), O(et, {
|
|
309
|
-
key: `title_${
|
|
309
|
+
key: `title_${Q.value}`,
|
|
310
310
|
config: {
|
|
311
311
|
title: {
|
|
312
312
|
cy: "flow-title",
|
|
@@ -319,9 +319,9 @@ const ct = ["id"], dt = {
|
|
|
319
319
|
}
|
|
320
320
|
}, null, 8, ["config"]))
|
|
321
321
|
])) : C("", !0),
|
|
322
|
-
e.value.userOptions.show && E.value && (u(te) || u(
|
|
322
|
+
e.value.userOptions.show && E.value && (u(te) || u(D)) ? (i(), O(ot, {
|
|
323
323
|
ref: "details",
|
|
324
|
-
key: `user_option_${
|
|
324
|
+
key: `user_option_${K.value}`,
|
|
325
325
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
326
326
|
color: e.value.style.chart.color,
|
|
327
327
|
isPrinting: u(le),
|
|
@@ -343,9 +343,9 @@ const ct = ["id"], dt = {
|
|
|
343
343
|
onGenerateCsv: de,
|
|
344
344
|
onGenerateImage: u(se),
|
|
345
345
|
onToggleTable: ve,
|
|
346
|
-
onToggleAnnotator:
|
|
346
|
+
onToggleAnnotator: B,
|
|
347
347
|
style: x({
|
|
348
|
-
visibility: u(te) ? u(
|
|
348
|
+
visibility: u(te) ? u(D) ? "visible" : "hidden" : "visible"
|
|
349
349
|
})
|
|
350
350
|
}, De({ _: 2 }, [
|
|
351
351
|
t.$slots.optionPdf ? {
|
|
@@ -379,21 +379,21 @@ const ct = ["id"], dt = {
|
|
|
379
379
|
t.$slots.optionFullscreen ? {
|
|
380
380
|
name: "optionFullscreen",
|
|
381
381
|
fn: y(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
382
|
-
k(t.$slots, "optionFullscreen",
|
|
382
|
+
k(t.$slots, "optionFullscreen", W(q({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
383
383
|
]),
|
|
384
384
|
key: "4"
|
|
385
385
|
} : void 0,
|
|
386
386
|
t.$slots.optionAnnotator ? {
|
|
387
387
|
name: "optionAnnotator",
|
|
388
388
|
fn: y(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
389
|
-
k(t.$slots, "optionAnnotator",
|
|
389
|
+
k(t.$slots, "optionAnnotator", W(q({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
390
390
|
]),
|
|
391
391
|
key: "5"
|
|
392
392
|
} : void 0
|
|
393
393
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : C("", !0),
|
|
394
394
|
(i(), c("svg", {
|
|
395
395
|
xmlns: u(Re),
|
|
396
|
-
viewBox: `0 0 ${
|
|
396
|
+
viewBox: `0 0 ${V.value.width} ${V.value.height}`,
|
|
397
397
|
class: ge({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
398
398
|
style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
399
399
|
}, [
|
|
@@ -444,7 +444,7 @@ const ct = ["id"], dt = {
|
|
|
444
444
|
fill: u(we)(o.color),
|
|
445
445
|
"text-anchor": "middle",
|
|
446
446
|
style: x(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
447
|
-
},
|
|
447
|
+
}, R(e.value.style.chart.nodes.labels.abbreviation.use ? u(Ze)({ source: o.name, length: e.value.style.chart.nodes.labels.abbreviation.length }) : o.name), 13, yt))), 256)),
|
|
448
448
|
(i(!0), c(P, null, F(g.value.nodes, (o, n) => (i(), c("text", {
|
|
449
449
|
x: o.x + _.value / 2,
|
|
450
450
|
y: u(f)(o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize),
|
|
@@ -452,7 +452,7 @@ const ct = ["id"], dt = {
|
|
|
452
452
|
fill: u(we)(o.color),
|
|
453
453
|
"text-anchor": "middle",
|
|
454
454
|
style: x(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
455
|
-
},
|
|
455
|
+
}, R(u(Je)(
|
|
456
456
|
e.value.style.chart.nodes.labels.formatter,
|
|
457
457
|
o.value,
|
|
458
458
|
u(ke)({
|
|
@@ -463,10 +463,10 @@ const ct = ["id"], dt = {
|
|
|
463
463
|
}),
|
|
464
464
|
{ datapoint: o, seriesIndex: n }
|
|
465
465
|
)), 13, kt))), 256)),
|
|
466
|
-
k(t.$slots, "svg", { svg:
|
|
466
|
+
k(t.$slots, "svg", { svg: V.value }, void 0, !0)
|
|
467
467
|
], 14, ft)),
|
|
468
468
|
t.$slots.watermark ? (i(), c("div", wt, [
|
|
469
|
-
k(t.$slots, "watermark",
|
|
469
|
+
k(t.$slots, "watermark", W(q({ isPrinting: u(le) || u(ae) })), void 0, !0)
|
|
470
470
|
])) : C("", !0),
|
|
471
471
|
E.value ? C("", !0) : (i(), O(nt, {
|
|
472
472
|
key: 5,
|
|
@@ -512,7 +512,7 @@ const ct = ["id"], dt = {
|
|
|
512
512
|
}, null, 8, $t)
|
|
513
513
|
]),
|
|
514
514
|
td: y(({ td: o }) => [
|
|
515
|
-
Ge(
|
|
515
|
+
Ge(R(o.name || o), 1)
|
|
516
516
|
]),
|
|
517
517
|
_: 1
|
|
518
518
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
@@ -521,7 +521,7 @@ const ct = ["id"], dt = {
|
|
|
521
521
|
}, 8, ["config"])) : C("", !0)
|
|
522
522
|
], 46, ct));
|
|
523
523
|
}
|
|
524
|
-
}, Et = /* @__PURE__ */ it(xt, [["__scopeId", "data-v-
|
|
524
|
+
}, Et = /* @__PURE__ */ it(xt, [["__scopeId", "data-v-a8be668a"]]);
|
|
525
525
|
export {
|
|
526
526
|
Et as default
|
|
527
527
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXYJDpD.cjs"),ke=require("./Title-B7ruS8yl.cjs"),te=require("./usePrinter-DHv-BwME.cjs"),ye=require("./DataTable-CwAdpLng.cjs"),be=require("./vue-ui-accordion-kr18wKfc.cjs"),Ce=require("./vue-ui-skeleton-BTN1PKkz.cjs"),oe=require("./useNestedProp-C6IvqE-r.cjs"),we=require("./PackageVersion-C1F3QLoY.cjs"),Ne=require("./PenAndPaper-DDheVRNG.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],_e={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se={key:2,style:"width:100%;background:transparent;padding-bottom:24px"},Pe=["xmlns","viewBox"],Ee=["id"],Te=["stop-color"],Oe=["stop-color"],Fe=["d","fill","stroke","stroke-width"],Le=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],ze=["x","y","font-size","fill"],Ve=["x","y","font-size","fill"],Ie={key:4,class:"vue-data-ui-watermark"},Ae={key:6,ref:"source",dir:"auto"},He=["innerHTML"],Me={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(le,{expose:ne}){const f=le,{vue_ui_flow:ae}=s.useConfig(),B=e.computed(()=>!!f.dataset&&f.dataset.length);e.onMounted(()=>{z()});function z(){s.objectIsEmpty(f.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})}const $=e.ref(s.createUid()),_=e.ref(null),V=e.ref(0),I=e.ref(0),y=e.ref(!1);function re(o){y.value=o,V.value+=1}const t=e.computed({get:()=>M(),set:o=>o}),{userOptionsVisible:S,setUserOptionsVisibility:A,keepUserOptionState:H}=xe.useUserOptionState({config:t.value});function M(){const o=oe.useNestedProp({userConfig:f.config,defaultConfig:ae});return o.theme?{...oe.useNestedProp({userConfig:s.themes.vue_ui_flow[o.theme]||f.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>f.config,o=>{t.value=M(),S.value=!t.value.showOnChartHover,z(),I.value+=1},{deep:!0});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:Y}=te.usePrinter({elementId:`flow_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),se=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),G=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(()=>!f.dataset||!f.dataset.length?[]:f.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),W=e.computed(()=>{const o={};function n(r){o[r]||(o[r]={inflow:0,outflow:0})}E.value.forEach(([r,a,c])=>{n(r),n(a),o[r].outflow+=c,o[a].inflow+=c});let l=0;for(const r in o){const a=Math.max(o[r].inflow,o[r].outflow);l=Math.max(l,a)}return l});function ue(o){return o/W.value*100+t.value.style.chart.nodes.minHeight}function ie(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*W.value}function ce(o){const n={},l={};function r(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 p=n[u]?n[u].level:0,x=p+1;r(u,p),r(i,x),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=ue(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in l){let i=0;l[u].forEach((v,k)=>{const p=n[v].height;a[v]={x:parseInt(u,10)*j.value+t.value.style.chart.padding.left,y:i,absoluteY:i,height:p,i:k,color:n[v].color,value:ie(p)},i+=p+G.value})}const c=[];for(const u in n){let i=a[u].absoluteY;n[u].children&&n[u].children.forEach(({target:v,value:k},p)=>{const x=a[v].y,F=a[u],L=a[v],J=s.checkNaN(i),K=s.checkNaN(i+k/n[u].outflow*F.height),Q=s.checkNaN(x),ee=s.checkNaN(x+k/n[v].inflow*L.height),ge={id:s.createUid(),source:u,target:v,path:`M ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${J} L ${s.checkNaN(F.x)+s.checkNaN(g.value)} ${K} L ${s.checkNaN(L.x)} ${ee} L ${s.checkNaN(L.x)} ${Q} Z`,value:k,sourceColor:n[u].color,targetColor:n[v].color};c.push(ge),i+=K-J,a[v].y+=ee-Q})}return{nodeCoordinates:a,links:c}}const h=e.computed(()=>{const o=ce(f.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),de=e.computed(()=>ve(h.value.nodes));function ve(o){const n={};for(const r in o){const{x:a,height:c}=o[r];n[a]||(n[a]=0),n[a]+=c+G.value}return Math.max(...Object.values(n))}const T=e.computed(()=>{const{top:o,right:n,left:l,bottom:r}=t.value.style.chart.padding,a=E.value.length*j.value;return{height:de.value+o+r,width:n+Math.max(...h.value.nodes.map(c=>c.x))+g.value,left:l,top:o,right:a-n,p_top:o,p_bottom:r}});function fe(o){const n={},l={},r=new Set;return E.value.forEach(([a,c,u])=>{n[a]||(n[a]=[]),l[c]||(l[c]=[]),n[a].push(c),l[c].push(a)}),n[o]&&n[o].forEach(a=>r.add(a)),l[o]&&l[o].forEach(a=>r.add(a)),Array.from(r).concat(o)}const m=e.ref(null),C=e.ref(null);function he(o){m.value=fe(o.name),C.value=o.name}function me(){m.value=null,C.value=null}const X=e.computed(()=>h.value.links.map(({source:o,target:n,sourceColor:l,targetColor:r,value:a})=>({source:o,target:n,sourceColor:l,targetColor:r,value:a})));function R(){e.nextTick(()=>{const o=X.value.map((r,a)=>[[r.source],[r.target],[r.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 w=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=X.value.map((a,c)=>[{color:a.sourceColor,name:a.source},{color:a.targetColor,name:a.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:a.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 pe(){return h.value}function Z(){b.value.showTable=!b.value.showTable}const N=e.ref(!1);function O(){N.value=!N.value}return ne({getData:pe,generateCsv:R,generateImage:Y,generatePdf:U,toggleTable:Z,toggleAnnotator:O}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:_,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(Ne.PenAndPaper,{key:0,parent:_.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:N.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",_e,null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",Se,[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${I.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(te.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),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:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:N.value,onToggleFullscreen:re,onGeneratePdf:e.unref(U),onGenerateCsv:R,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(S)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"5"}: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",{xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${T.value.width} ${T.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(we._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.links,(l,r)=>(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,Te),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,Oe)],8,Ee))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.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,Fe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY),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:a=>he(l),onMouseleave:n[0]||(n[0]=a=>me()),style:e.normalizeStyle(`opacity:${m.value?m.value.includes(l.name)?1:.2:1}`)},null,44,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.nodes,(l,r)=>(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),"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:${m.value?m.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,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.nodes,(l,r)=>(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),"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:${m.value?m.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:r})),13,Ve))),256)),e.renderSlot(o.$slots,"svg",{svg:T.value},void 0,!0)],14,Pe)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),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",Ae,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(be.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(ye.DataTable,{colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.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,He)]),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,$e))}},qe=Be._export_sfc(Me,[["__scopeId","data-v-a8be668a"]]);exports.default=qe;
|