vue-data-ui 3.17.13 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-Cj6W6Xbi.js +116 -0
- package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
- package/dist/BaseIcon-CEmt3Ifx.js +499 -0
- package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
- package/dist/ColorPicker-DS_QkH3W.js +255 -0
- package/dist/DataTable-BvDJEAma.js +150 -0
- package/dist/Legend-Gg5Q4Clb.js +114 -0
- package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
- package/dist/PackageVersion-DhDKg-ez.js +11 -0
- package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-DEGOZ6GG.js +141 -0
- package/dist/Slicer-BlfyiHHD.js +1144 -0
- package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
- package/dist/SparkTooltip-c2DL7gqD.js +93 -0
- package/dist/Title-__gWq2g6.js +87 -0
- package/dist/Tooltip-B7lmdbac.js +307 -0
- package/dist/UserOptions-DMw8EZEo.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-9WSt6hXe.js +237 -0
- package/dist/exposedLib-CwWU4zv-.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-BjOr008R.js +74 -0
- package/dist/labelUtils-Cr97N8E1.js +19 -0
- package/dist/lib-BkiwukKO.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-DSXSFUnK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4775 -627
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-BV0kTCnO.js +7431 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-Ck4hsrpu.js +10 -0
- package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-X0yWOynH.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-DIh8ayZc.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
- package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
- package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
- package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
- package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
- package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
- package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
- package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
- package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
- package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
- package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
- package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
- package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
- package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
- package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
- package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
- package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
- package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
- package/dist/vue-ui-flow-OK563Z46.js +1223 -0
- package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
- package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
- package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
- package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
- package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
- package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
- package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
- package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
- package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
- package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
- package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
- package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
- package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
- package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
- package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
- package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
- package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
- package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
- package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
- package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
- package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
- package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
- package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
- package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
- package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
- package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
- package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
- package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
- package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
- package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
- package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
- package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
- package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
- package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
- package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
- package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
- package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
- package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
- package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
- package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
- package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
- package/dist/vue-ui-world-CEevuFbk.js +14252 -0
- package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
- package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,1223 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, J as r, Lt as i, S as a, St as o, Tt as s, X as c, i as l, n as u, pt as d, r as f, t as p, v as m, x as h, y as g, zt as _ } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as ee } from "./useConfig-BV0kTCnO.js";
|
|
4
|
+
import { t as v } from "./usePrinter-X0yWOynH.js";
|
|
5
|
+
import { n as y, t as b } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as x } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as S } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
+
import { t as te } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as ne } from "./img-BjOr008R.js";
|
|
10
|
+
import { n as C } from "./Title-__gWq2g6.js";
|
|
11
|
+
import { t as re } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
12
|
+
import { c as ie } from "./canvas-lib-DTaADQOK.js";
|
|
13
|
+
import { t as ae } from "./useResponsive-CrAInupd.js";
|
|
14
|
+
import { t as oe } from "./A11yDataTable-q2-8fSlJ.js";
|
|
15
|
+
import { t as se } from "./useUserOptionState-CjPJPTg2.js";
|
|
16
|
+
import { t as ce } from "./useChartAccessibility-Do37qcw2.js";
|
|
17
|
+
import { t as le } from "./Legend-Gg5Q4Clb.js";
|
|
18
|
+
import { t as ue } from "./vue_ui_flow-CCHO1Lo9.js";
|
|
19
|
+
import { Fragment as de, Teleport as fe, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as pe, createTextVNode as me, createVNode as he, defineAsyncComponent as k, guardReactiveProps as A, mergeProps as ge, nextTick as _e, normalizeClass as ve, normalizeProps as j, normalizeStyle as M, onMounted as ye, openBlock as N, ref as P, renderList as be, renderSlot as F, resolveDynamicComponent as xe, toDisplayString as Se, toRefs as Ce, unref as I, watch as we, withCtx as L } from "vue";
|
|
20
|
+
//#region src/components/vue-ui-flow.vue
|
|
21
|
+
var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe = {
|
|
22
|
+
key: 2,
|
|
23
|
+
ref: "noTitle",
|
|
24
|
+
class: "vue-data-ui-no-title-space",
|
|
25
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
26
|
+
}, ke = ["id"], Ae = { style: { position: "relative" } }, je = [
|
|
27
|
+
"xmlns",
|
|
28
|
+
"aria-describedby",
|
|
29
|
+
"viewBox"
|
|
30
|
+
], Me = ["width", "height"], Ne = ["id"], Pe = ["stop-color"], Fe = ["stop-color"], Ie = [
|
|
31
|
+
"d",
|
|
32
|
+
"fill",
|
|
33
|
+
"stroke",
|
|
34
|
+
"stroke-width"
|
|
35
|
+
], Le = [
|
|
36
|
+
"data-a11y-node-id",
|
|
37
|
+
"x",
|
|
38
|
+
"y",
|
|
39
|
+
"height",
|
|
40
|
+
"width",
|
|
41
|
+
"fill",
|
|
42
|
+
"stroke",
|
|
43
|
+
"stroke-width",
|
|
44
|
+
"rx",
|
|
45
|
+
"aria-label",
|
|
46
|
+
"onMouseenter",
|
|
47
|
+
"onMouseleave",
|
|
48
|
+
"onClick"
|
|
49
|
+
], Re = { key: 1 }, ze = [
|
|
50
|
+
"x",
|
|
51
|
+
"y",
|
|
52
|
+
"font-size",
|
|
53
|
+
"fill"
|
|
54
|
+
], Be = [
|
|
55
|
+
"x",
|
|
56
|
+
"y",
|
|
57
|
+
"font-size",
|
|
58
|
+
"fill"
|
|
59
|
+
], Ve = {
|
|
60
|
+
key: 0,
|
|
61
|
+
style: {
|
|
62
|
+
position: "absolute",
|
|
63
|
+
top: "100%",
|
|
64
|
+
left: "0",
|
|
65
|
+
width: "100%"
|
|
66
|
+
},
|
|
67
|
+
"data-dom-to-png-ignore": "",
|
|
68
|
+
"aria-hidden": "true"
|
|
69
|
+
}, He = {
|
|
70
|
+
key: 5,
|
|
71
|
+
class: "vue-data-ui-watermark"
|
|
72
|
+
}, Ue = ["id"], We = ["onClick"], Ge = ["innerHTML"], Ke = /* @__PURE__ */ re({
|
|
73
|
+
__name: "vue-ui-flow",
|
|
74
|
+
props: {
|
|
75
|
+
config: {
|
|
76
|
+
type: Object,
|
|
77
|
+
default() {
|
|
78
|
+
return {};
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
dataset: {
|
|
82
|
+
type: Array,
|
|
83
|
+
default() {
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
emits: ["copyAlt"],
|
|
89
|
+
setup(e, { expose: re, emit: Te }) {
|
|
90
|
+
let Ke = k(() => import("./Tooltip-B7lmdbac.js")), qe = k(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), Je = k(() => import("./vue-ui-accordion-cVv18nTV.js").then((e) => e.n)), Ye = k(() => import("./DataTable-BvDJEAma.js")), Xe = k(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Ze = k(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), Qe = k(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), $e = k(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), { vue_ui_flow: et } = ee(), { isThemeValid: tt, warnInvalidTheme: nt } = te(), R = e, rt = Te, z = P(n()), B = P(null), it = P(0), at = P(0), ot = P(!1), st = P(""), ct = P(null), lt = P(null), ut = P(null), dt = P(null), ft = P(null), pt = P(!1), mt = P(null), ht = P(null), gt = P(null), _t = P(!1), vt = P(!1), yt = P(null), V = P(null), bt = P({
|
|
91
|
+
x: 0,
|
|
92
|
+
y: 0
|
|
93
|
+
}), xt = P("pointer"), St = P(!1), Ct = w(() => !!R.dataset && R.dataset.length);
|
|
94
|
+
ye(() => {
|
|
95
|
+
pt.value = !0, At();
|
|
96
|
+
});
|
|
97
|
+
let H = P(!1);
|
|
98
|
+
function wt(e) {
|
|
99
|
+
H.value = e, it.value += 1;
|
|
100
|
+
}
|
|
101
|
+
let U = P(Pt()), W = w(() => U.value.userOptions.useCursorPointer), Tt = w(() => _({
|
|
102
|
+
defaultConfig: {
|
|
103
|
+
userOptions: { show: !1 },
|
|
104
|
+
nodeCategories: {
|
|
105
|
+
B: "A",
|
|
106
|
+
C: "B"
|
|
107
|
+
},
|
|
108
|
+
nodeCategoryColors: {
|
|
109
|
+
A: "#CACACA",
|
|
110
|
+
B: "#AAAAAA"
|
|
111
|
+
},
|
|
112
|
+
table: { show: !1 },
|
|
113
|
+
style: { chart: {
|
|
114
|
+
backgroundColor: "#99999930",
|
|
115
|
+
legend: { backgroundColor: "transparent" },
|
|
116
|
+
nodes: {
|
|
117
|
+
labels: { show: !1 },
|
|
118
|
+
stroke: "#666666"
|
|
119
|
+
},
|
|
120
|
+
links: { stroke: "#666666" }
|
|
121
|
+
} }
|
|
122
|
+
},
|
|
123
|
+
userConfig: U.value.skeletonConfig ?? {}
|
|
124
|
+
})), { loading: Et, FINAL_DATASET: Dt, manualLoading: Ot } = y({
|
|
125
|
+
...Ce(R),
|
|
126
|
+
FINAL_CONFIG: U,
|
|
127
|
+
prepareConfig: Pt,
|
|
128
|
+
skeletonDataset: R.config?.skeletonDataset ?? [
|
|
129
|
+
[
|
|
130
|
+
"A",
|
|
131
|
+
"B",
|
|
132
|
+
2,
|
|
133
|
+
"#CACACA"
|
|
134
|
+
],
|
|
135
|
+
[
|
|
136
|
+
"B",
|
|
137
|
+
"C",
|
|
138
|
+
1,
|
|
139
|
+
"#CACACA"
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
"C",
|
|
143
|
+
"D",
|
|
144
|
+
.5,
|
|
145
|
+
"#CACACA"
|
|
146
|
+
],
|
|
147
|
+
[
|
|
148
|
+
"E",
|
|
149
|
+
"F",
|
|
150
|
+
1,
|
|
151
|
+
"#AAAAAA"
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
"F",
|
|
155
|
+
"G",
|
|
156
|
+
.5,
|
|
157
|
+
"#AAAAAA"
|
|
158
|
+
],
|
|
159
|
+
[
|
|
160
|
+
"G",
|
|
161
|
+
"H",
|
|
162
|
+
.25,
|
|
163
|
+
"#AAAAAA"
|
|
164
|
+
]
|
|
165
|
+
],
|
|
166
|
+
skeletonConfig: _({
|
|
167
|
+
defaultConfig: U.value,
|
|
168
|
+
userConfig: Tt.value
|
|
169
|
+
})
|
|
170
|
+
}), kt = w(() => !!U.value.debug);
|
|
171
|
+
function At() {
|
|
172
|
+
if (o(R.dataset) && (c({
|
|
173
|
+
componentName: "VueUiFlow",
|
|
174
|
+
type: "dataset",
|
|
175
|
+
debug: kt.value
|
|
176
|
+
}), Ot.value = !0), o(R.dataset) || (Ot.value = U.value.loading), U.value.responsive) {
|
|
177
|
+
let e = ie(() => {
|
|
178
|
+
let { width: e, height: t } = ae({
|
|
179
|
+
chart: B.value,
|
|
180
|
+
title: U.value.style.chart.title.text ? lt.value : null,
|
|
181
|
+
legend: U.value.style.chart.legend.show ? ct.value : null,
|
|
182
|
+
source: ut.value
|
|
183
|
+
});
|
|
184
|
+
requestAnimationFrame(() => {
|
|
185
|
+
Ft.value = e, It.value = t;
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
dt.value && (ft.value && dt.value.unobserve(ft.value), dt.value.disconnect()), dt.value = new ResizeObserver(e), ft.value = B.value.parentNode, dt.value.observe(ft.value);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
let { userOptionsVisible: jt, setUserOptionsVisibility: Mt, keepUserOptionState: Nt } = se({ config: U.value }), { svgRef: G } = ce({ config: U.value.style.chart.title });
|
|
192
|
+
function Pt() {
|
|
193
|
+
let e = S({
|
|
194
|
+
userConfig: R.config,
|
|
195
|
+
defaultConfig: et
|
|
196
|
+
}), t = e, n = e.theme;
|
|
197
|
+
if (n) if (!tt.value(e)) nt(e), t = e;
|
|
198
|
+
else {
|
|
199
|
+
let r = S({
|
|
200
|
+
userConfig: ue[n] || R.config,
|
|
201
|
+
defaultConfig: e
|
|
202
|
+
});
|
|
203
|
+
t = {
|
|
204
|
+
...S({
|
|
205
|
+
userConfig: R.config,
|
|
206
|
+
defaultConfig: r
|
|
207
|
+
}),
|
|
208
|
+
customPalette: e.customPalette.length ? e.customPalette : i[n] || s
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
else t = e;
|
|
212
|
+
return t.nodeCategories = R.config.nodeCategories || {}, t.nodeCategoryColors = R.config.nodeCategoryColors || {}, t;
|
|
213
|
+
}
|
|
214
|
+
let Ft = P(U.value.style.chart.width), It = P(U.value.style.chart.height);
|
|
215
|
+
we(() => R.config, (e) => {
|
|
216
|
+
Et.value || (U.value = Pt()), jt.value = !U.value.userOptions.showOnChartHover, At(), at.value += 1, K.value.showTable = U.value.table.show;
|
|
217
|
+
}, { deep: !0 }), we(() => R.dataset, (e) => {
|
|
218
|
+
Array.isArray(e) && e.length > 0 && (Ot.value = !1);
|
|
219
|
+
}, { deep: !0 });
|
|
220
|
+
let { isPrinting: Lt, isImaging: Rt, generatePdf: zt, generateImage: Bt } = v({
|
|
221
|
+
elementId: `flow_${z.value}`,
|
|
222
|
+
fileName: U.value.style.chart.title.text || "vue-ui-flow",
|
|
223
|
+
options: U.value.userOptions.print
|
|
224
|
+
}), Vt = w(() => U.value.userOptions.show && !U.value.style.chart.title.text), Ht = w(() => h(U.value.customPalette)), Ut = w(() => U.value.style.chart.nodes.width), K = P({
|
|
225
|
+
showTable: U.value.table.show,
|
|
226
|
+
showTooltip: U.value.style.chart.tooltip.show
|
|
227
|
+
});
|
|
228
|
+
we(U, () => {
|
|
229
|
+
K.value = {
|
|
230
|
+
showTable: U.value.table.show,
|
|
231
|
+
showTooltip: U.value.style.chart.tooltip.show
|
|
232
|
+
};
|
|
233
|
+
}, { immediate: !0 });
|
|
234
|
+
let Wt = w(() => !Dt.value || !Dt.value.length ? [] : Dt.value.map((e, t) => [
|
|
235
|
+
e[0],
|
|
236
|
+
e[1],
|
|
237
|
+
m(e[2]),
|
|
238
|
+
e[3] ? g(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || s[t] || s[t % s.length]
|
|
239
|
+
]));
|
|
240
|
+
function Gt(e) {
|
|
241
|
+
let t = {}, r = {};
|
|
242
|
+
function i(e, i) {
|
|
243
|
+
t[e] || (t[e] = {
|
|
244
|
+
level: null,
|
|
245
|
+
inflow: 0,
|
|
246
|
+
outflow: 0,
|
|
247
|
+
children: [],
|
|
248
|
+
color: null,
|
|
249
|
+
uid: n()
|
|
250
|
+
}), t[e].level === null && (t[e].level = i), r[i] || (r[i] = []), r[i].includes(e) || r[i].push(e);
|
|
251
|
+
}
|
|
252
|
+
e.forEach(([e, n, r]) => {
|
|
253
|
+
let a = t[e]?.level ?? 0, o = a + 1;
|
|
254
|
+
i(e, a), i(n, o), t[e].children.push({
|
|
255
|
+
target: n,
|
|
256
|
+
value: r
|
|
257
|
+
}), t[e].outflow += r, t[n].inflow += r;
|
|
258
|
+
});
|
|
259
|
+
let a = new Set(e.map(([e]) => e)), o = new Set(e.map(([, e]) => e)), c = Array.from(a).filter((e) => !o.has(e)), l = {};
|
|
260
|
+
c.forEach((e, t) => {
|
|
261
|
+
l[e] = Ht.value[t] || s[t % s.length];
|
|
262
|
+
});
|
|
263
|
+
let u = {};
|
|
264
|
+
e.forEach(([e, t, n, r]) => {
|
|
265
|
+
r && (u[e] = r, u[t] = r);
|
|
266
|
+
}), Object.keys(t).forEach((e, n) => {
|
|
267
|
+
let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
268
|
+
t[e].color = u[e] || i || (c.includes(e) ? l[e] : null) || s[n % s.length];
|
|
269
|
+
}), Object.keys(t).forEach((e) => {
|
|
270
|
+
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
271
|
+
});
|
|
272
|
+
let d = Jt.value, f = Yt.value.width, p = Yt.value.height, h = Object.keys(r).map(Number).sort((e, t) => e - t), g = h.length || 1, _ = g > 1 ? f / (g - 1) : 0, ee = Number(Ut.value), v = Number(U.value.style.chart.nodes.gapPx ?? U.value.style.chart.nodes.gap ?? 8), y = Number(U.value.style.chart.nodes.minHeight || 0);
|
|
273
|
+
function b(e) {
|
|
274
|
+
let n = r[e], i = n.length;
|
|
275
|
+
if (!i) return Infinity;
|
|
276
|
+
let a = Math.max(0, (i - 1) * v), o = Math.max(0, p - a), s = Math.min(y, i ? o / i : 0), c = 0, l = n.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
|
|
277
|
+
for (let e = 0; e < 12; e += 1) {
|
|
278
|
+
let e = u > 0 ? (o - c) / u : 0, t = [];
|
|
279
|
+
for (let n = 0; n < l.length; n += 1) {
|
|
280
|
+
let r = l[n];
|
|
281
|
+
r < 0 || r * e < s && t.push(n);
|
|
282
|
+
}
|
|
283
|
+
if (!t.length) return Math.max(0, e);
|
|
284
|
+
for (let e of t) c += s, u -= l[e], l[e] = -1;
|
|
285
|
+
if (u <= 0) return 0;
|
|
286
|
+
}
|
|
287
|
+
return u > 0 ? Math.max(0, (o - c) / u) : 0;
|
|
288
|
+
}
|
|
289
|
+
let x = h.map(b), S = x.length ? Math.min(...x) : 0, te = {};
|
|
290
|
+
h.forEach((e) => {
|
|
291
|
+
let i = r[e], a = i.length, o = Math.max(0, (a - 1) * v), s = Math.max(0, p - o), c = Math.min(y, a ? s / a : 0), l = i.map((e) => Math.max(c, (t[e].value || 0) * S)), u = l.reduce((e, t) => e + t, 0) + o, f = Math.max(0, (p - u) / 2);
|
|
292
|
+
i.forEach((r, i) => {
|
|
293
|
+
let o = l[i], s = d.left + e * _, c = f;
|
|
294
|
+
te[r] = {
|
|
295
|
+
x: s,
|
|
296
|
+
y: c,
|
|
297
|
+
absoluteY: c,
|
|
298
|
+
height: o,
|
|
299
|
+
i,
|
|
300
|
+
color: t[r].color,
|
|
301
|
+
value: t[r].value,
|
|
302
|
+
id: n()
|
|
303
|
+
}, f += o, i < a - 1 && (f += v);
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
let ne = [], C = d.top, re = {}, ie = {};
|
|
307
|
+
Object.keys(t).forEach((e) => {
|
|
308
|
+
re[e] = te[e]?.y ?? 0, ie[e] = 0;
|
|
309
|
+
});
|
|
310
|
+
let ae = !!U.value.style.chart.links.smooth, oe = .5;
|
|
311
|
+
return h.forEach((e) => {
|
|
312
|
+
r[e].forEach((e) => {
|
|
313
|
+
let r = t[e], i = te[e];
|
|
314
|
+
if (!r.children || !r.children.length) return;
|
|
315
|
+
let a = i.y;
|
|
316
|
+
r.children.forEach(({ target: o, value: s }) => {
|
|
317
|
+
let c = te[o], l = t[o], u = r.outflow > 0 ? s / r.outflow : 0, d = l.inflow > 0 ? s / l.inflow : 0, f = m(a + C), p = m(a + u * i.height + C), h = re[o], g = h + d * c.height;
|
|
318
|
+
ie[o] += s;
|
|
319
|
+
let _ = l.inflow > 0 && ie[o] >= l.inflow - 1e-6, v = c.y + c.height;
|
|
320
|
+
(_ || g > v - .25) && (g = v);
|
|
321
|
+
let y = m(h + C), b = m(g + C), x = m(i.x + ee), S = m(c.x), se;
|
|
322
|
+
if (!ae || S <= x) se = `M ${x} ${f} L ${x} ${p} L ${S} ${b} L ${S} ${y} Z`;
|
|
323
|
+
else {
|
|
324
|
+
let e = S - x, t = m(x + e * oe), n = m(S - e * oe), r = f, i = y, a = p, o = b;
|
|
325
|
+
se = `M ${x} ${r} C ${t} ${r}, ${n} ${i}, ${S} ${i} L ${S} ${o} C ${n} ${o}, ${t} ${a}, ${x} ${a} Z`;
|
|
326
|
+
}
|
|
327
|
+
ne.push({
|
|
328
|
+
id: n(),
|
|
329
|
+
source: e,
|
|
330
|
+
target: o,
|
|
331
|
+
path: se,
|
|
332
|
+
value: s,
|
|
333
|
+
sourceColor: r.color,
|
|
334
|
+
targetColor: t[o].color
|
|
335
|
+
}), a = p - C, re[o] = g;
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
}), {
|
|
339
|
+
nodeCoordinates: te,
|
|
340
|
+
links: ne
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
let q = w(() => {
|
|
344
|
+
let e = Gt(Dt.value);
|
|
345
|
+
return {
|
|
346
|
+
nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
|
|
347
|
+
...e.nodeCoordinates[t],
|
|
348
|
+
name: t
|
|
349
|
+
})),
|
|
350
|
+
links: e.links
|
|
351
|
+
};
|
|
352
|
+
}), Kt = w(() => Ft.value), qt = w(() => It.value), Jt = w(() => U.value.style.chart.padding), Yt = w(() => ({
|
|
353
|
+
width: Math.max(0, Kt.value - 40 - Jt.value.right - Jt.value.left),
|
|
354
|
+
height: Math.max(0, qt.value - Jt.value.top - Jt.value.bottom)
|
|
355
|
+
})), Xt = w(() => ({
|
|
356
|
+
width: Kt.value,
|
|
357
|
+
height: qt.value
|
|
358
|
+
}));
|
|
359
|
+
function Zt(e) {
|
|
360
|
+
let t = {}, n = {}, r = /* @__PURE__ */ new Set();
|
|
361
|
+
return Wt.value.forEach(([e, r, i]) => {
|
|
362
|
+
t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
|
|
363
|
+
}), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
|
|
364
|
+
}
|
|
365
|
+
let J = P(null), Y = P(null), X = P(null), Qt = P(!1), $t = P(null);
|
|
366
|
+
function en() {
|
|
367
|
+
$t.value = null, J.value = null, Y.value = null, ot.value = !1, yt.value = null, V.value = null;
|
|
368
|
+
}
|
|
369
|
+
function tn(e) {
|
|
370
|
+
if (!G.value || !e) return;
|
|
371
|
+
let t = G.value.querySelector(`[data-a11y-node-id="${e}"]`);
|
|
372
|
+
if (!t) return;
|
|
373
|
+
let n = t.getBoundingClientRect();
|
|
374
|
+
bt.value = {
|
|
375
|
+
x: n.left + n.width / 2,
|
|
376
|
+
y: n.top + n.height / 2
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
function nn(e, n, r = "pointer", i = null) {
|
|
380
|
+
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = r, yt.value = i, V.value = e.id;
|
|
381
|
+
let a = e.name, o = Wt.value, s = 0, c = 0, u = [], f = [], p = new Set(o.map(([e]) => e)), m = new Set(o.map(([, e]) => e)), h = Array.from(p).filter((e) => !m.has(e)), g = o.filter(([e]) => h.includes(e)).reduce((e, [t, n, r]) => e + r, 0), _ = {};
|
|
382
|
+
q.value.nodes.forEach((e) => {
|
|
383
|
+
_[e.name] = e.color;
|
|
384
|
+
}), o.forEach(([e, t, n]) => {
|
|
385
|
+
t === a && (s += n, u.push({
|
|
386
|
+
source: e,
|
|
387
|
+
value: n,
|
|
388
|
+
color: _[e]
|
|
389
|
+
})), e === a && (c += n, f.push({
|
|
390
|
+
target: t,
|
|
391
|
+
value: n,
|
|
392
|
+
color: _[t]
|
|
393
|
+
}));
|
|
394
|
+
});
|
|
395
|
+
let ee = g > 0 ? Math.max(s, c) / g * 100 : 0, v = {
|
|
396
|
+
name: a,
|
|
397
|
+
inflow: s,
|
|
398
|
+
outflow: c,
|
|
399
|
+
from: u,
|
|
400
|
+
to: f,
|
|
401
|
+
percentOfTotal: ee,
|
|
402
|
+
color: _[a] || "#000000"
|
|
403
|
+
};
|
|
404
|
+
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
405
|
+
datapoint: v,
|
|
406
|
+
seriesIndex: n
|
|
407
|
+
}), X.value = {
|
|
408
|
+
datapoint: v,
|
|
409
|
+
config: U.value,
|
|
410
|
+
seriesIndex: n,
|
|
411
|
+
series: q.value
|
|
412
|
+
}, ot.value = !0;
|
|
413
|
+
let y = "", b = U.value.style.chart.tooltip.customFormat;
|
|
414
|
+
if (Qt.value = !1, d(b)) try {
|
|
415
|
+
let e = b({
|
|
416
|
+
datapoint: v,
|
|
417
|
+
series: q.value,
|
|
418
|
+
config: U.value
|
|
419
|
+
});
|
|
420
|
+
typeof e == "string" && (st.value = e, Qt.value = !0);
|
|
421
|
+
} catch {
|
|
422
|
+
console.warn("Custom format cannot be applied.");
|
|
423
|
+
}
|
|
424
|
+
if (!Qt.value) {
|
|
425
|
+
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${t({
|
|
426
|
+
p: U.value.style.chart.tooltip.translations.percentOfTotal,
|
|
427
|
+
v: v.percentOfTotal,
|
|
428
|
+
s: "%",
|
|
429
|
+
r: U.value.style.chart.tooltip.roundingPercentage
|
|
430
|
+
})}</div>` : "";
|
|
431
|
+
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${U.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${v.color}">⏹</span>${v.name}${e}</div>`, v.from.length && (y += `<div>${U.value.style.chart.tooltip.translations.from}</div>`, v.from.forEach((e) => {
|
|
432
|
+
y += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, t({
|
|
433
|
+
p: U.value.style.chart.nodes.labels.prefix,
|
|
434
|
+
v: e.value,
|
|
435
|
+
s: U.value.style.chart.nodes.labels.suffix,
|
|
436
|
+
r: U.value.style.chart.nodes.labels.rounding
|
|
437
|
+
}))}</div>`;
|
|
438
|
+
})), v.to.length && (y += `<div style="margin-top:6px;">${U.value.style.chart.tooltip.translations.to}</div>`, v.to.forEach((e) => {
|
|
439
|
+
y += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${l(U.value.style.chart.nodes.labels.formatter, e.value, t({
|
|
440
|
+
p: U.value.style.chart.nodes.labels.prefix,
|
|
441
|
+
v: e.value,
|
|
442
|
+
s: U.value.style.chart.nodes.labels.suffix,
|
|
443
|
+
r: U.value.style.chart.nodes.labels.rounding
|
|
444
|
+
}))}</div>`;
|
|
445
|
+
})), st.value = y;
|
|
446
|
+
}
|
|
447
|
+
r === "keyboard" && _e(() => {
|
|
448
|
+
tn(e.id);
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
function rn(e) {
|
|
452
|
+
let t = X.value;
|
|
453
|
+
U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
454
|
+
datapoint: t,
|
|
455
|
+
seriesIndex: e
|
|
456
|
+
}), !(xt.value === "keyboard" && V.value) && ($t.value = null, J.value = null, Y.value = null, ot.value = !1);
|
|
457
|
+
}
|
|
458
|
+
function an(e) {
|
|
459
|
+
let t = X.value;
|
|
460
|
+
U.value.events.datapointClick && U.value.events.datapointClick({
|
|
461
|
+
datapoint: t,
|
|
462
|
+
seriesIndex: e
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
let on = w(() => q.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
|
|
466
|
+
source: e,
|
|
467
|
+
target: t,
|
|
468
|
+
sourceColor: n,
|
|
469
|
+
targetColor: r,
|
|
470
|
+
value: i
|
|
471
|
+
})));
|
|
472
|
+
function sn(e = null) {
|
|
473
|
+
_e(() => {
|
|
474
|
+
let t = on.value.map((e, t) => [
|
|
475
|
+
[e.source],
|
|
476
|
+
[e.target],
|
|
477
|
+
[e.value]
|
|
478
|
+
]), n = a([
|
|
479
|
+
[U.value.style.chart.title.text],
|
|
480
|
+
[U.value.style.chart.title.subtitle.text],
|
|
481
|
+
[
|
|
482
|
+
[U.value.table.columnNames.source],
|
|
483
|
+
[U.value.table.columnNames.target],
|
|
484
|
+
[U.value.table.columnNames.value]
|
|
485
|
+
]
|
|
486
|
+
].concat(t));
|
|
487
|
+
e ? e(n) : r({
|
|
488
|
+
csvContent: n,
|
|
489
|
+
title: U.value.style.chart.title.text || "vue-ui-flow"
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
let Z = w(() => {
|
|
494
|
+
let e = [
|
|
495
|
+
U.value.table.columnNames.source,
|
|
496
|
+
U.value.table.columnNames.target,
|
|
497
|
+
U.value.table.columnNames.value
|
|
498
|
+
], n = on.value.map((e, n) => [
|
|
499
|
+
{
|
|
500
|
+
color: e.sourceColor,
|
|
501
|
+
name: e.source,
|
|
502
|
+
shape: "square"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
color: e.targetColor,
|
|
506
|
+
name: e.target,
|
|
507
|
+
shape: "square"
|
|
508
|
+
},
|
|
509
|
+
t({
|
|
510
|
+
p: U.value.style.chart.nodes.labels.prefix,
|
|
511
|
+
v: e.value,
|
|
512
|
+
s: U.value.style.chart.nodes.labels.suffix,
|
|
513
|
+
r: U.value.style.chart.nodes.labels.rounding
|
|
514
|
+
})
|
|
515
|
+
]), r = {
|
|
516
|
+
th: {
|
|
517
|
+
backgroundColor: U.value.table.th.backgroundColor,
|
|
518
|
+
color: U.value.table.th.color,
|
|
519
|
+
outline: U.value.table.th.outline
|
|
520
|
+
},
|
|
521
|
+
td: {
|
|
522
|
+
backgroundColor: U.value.table.td.backgroundColor,
|
|
523
|
+
color: U.value.table.td.color,
|
|
524
|
+
outline: U.value.table.td.outline
|
|
525
|
+
},
|
|
526
|
+
breakpoint: U.value.table.responsiveBreakpoint
|
|
527
|
+
};
|
|
528
|
+
return {
|
|
529
|
+
colNames: [
|
|
530
|
+
U.value.table.columnNames.source,
|
|
531
|
+
U.value.table.columnNames.target,
|
|
532
|
+
U.value.table.columnNames.value
|
|
533
|
+
],
|
|
534
|
+
head: e,
|
|
535
|
+
body: n,
|
|
536
|
+
config: r
|
|
537
|
+
};
|
|
538
|
+
}), cn = w(() => ({
|
|
539
|
+
headers: Z.value?.colNames ?? [],
|
|
540
|
+
rows: Z.value?.body ?? []
|
|
541
|
+
})), ln = w(() => [...q.value.nodes].map((e, t) => ({
|
|
542
|
+
...e,
|
|
543
|
+
index: t,
|
|
544
|
+
centerX: e.x + Ut.value / 2,
|
|
545
|
+
centerY: m(e.absoluteY) + U.value.style.chart.padding.top + e.height / 2
|
|
546
|
+
})).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = w(() => {
|
|
547
|
+
let e = [];
|
|
548
|
+
return ln.value.forEach((t) => {
|
|
549
|
+
let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
|
|
550
|
+
n ? n.nodes.push(t) : e.push({
|
|
551
|
+
x: t.x,
|
|
552
|
+
nodes: [t]
|
|
553
|
+
});
|
|
554
|
+
}), e.forEach((e) => {
|
|
555
|
+
e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
|
|
556
|
+
}), e.sort((e, t) => e.x - t.x);
|
|
557
|
+
}), un = w(() => {
|
|
558
|
+
let e = /* @__PURE__ */ new Map();
|
|
559
|
+
return ln.value.forEach((t, n) => {
|
|
560
|
+
e.set(t.id, n);
|
|
561
|
+
}), e;
|
|
562
|
+
});
|
|
563
|
+
function dn() {
|
|
564
|
+
return q.value;
|
|
565
|
+
}
|
|
566
|
+
function fn() {
|
|
567
|
+
K.value.showTable = !K.value.showTable;
|
|
568
|
+
}
|
|
569
|
+
let pn = P(!1);
|
|
570
|
+
function mn() {
|
|
571
|
+
pn.value = !pn.value;
|
|
572
|
+
}
|
|
573
|
+
function hn() {
|
|
574
|
+
K.value.showTooltip = !K.value.showTooltip;
|
|
575
|
+
}
|
|
576
|
+
let gn = w(() => {
|
|
577
|
+
let e = new Set(q.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
578
|
+
return Array.from(e).map((e) => ({
|
|
579
|
+
name: e,
|
|
580
|
+
color: U.value.nodeCategoryColors[e] || s[0],
|
|
581
|
+
shape: "square",
|
|
582
|
+
count: q.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
583
|
+
})).map((e, t) => {
|
|
584
|
+
let n = $.value.includes(t);
|
|
585
|
+
return {
|
|
586
|
+
...e,
|
|
587
|
+
segregate: () => vn({
|
|
588
|
+
legend: e,
|
|
589
|
+
i: t
|
|
590
|
+
}),
|
|
591
|
+
isSegregated: n,
|
|
592
|
+
opacity: $.value.length ? n ? 1 : .5 : 1,
|
|
593
|
+
display: `${e.name} (${e.count})`
|
|
594
|
+
};
|
|
595
|
+
});
|
|
596
|
+
}), _n = w(() => gn.value.filter((e) => e.name !== "__uncategorized__")), $ = P([]);
|
|
597
|
+
function vn({ legend: e, i: t }) {
|
|
598
|
+
let n = e.name;
|
|
599
|
+
if (J.value?.every((e) => U.value.nodeCategories[e] === n)) {
|
|
600
|
+
J.value = null, Y.value = null, $.value = [];
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
$.value = [t], J.value = q.value.nodes.filter((e) => U.value.nodeCategories[e.name] === n).map((e) => e.name), Y.value = null;
|
|
604
|
+
}
|
|
605
|
+
let yn = w(() => ({
|
|
606
|
+
cy: "flow-legend",
|
|
607
|
+
backgroundColor: U.value.style.chart.legend.backgroundColor,
|
|
608
|
+
color: U.value.style.chart.legend.color,
|
|
609
|
+
fontSize: U.value.style.chart.legend.fontSize,
|
|
610
|
+
paddingBottom: U.value.style.chart.legend.paddingBottom,
|
|
611
|
+
fontWeight: U.value.style.chart.legend.bold ? "bold" : "normal"
|
|
612
|
+
}));
|
|
613
|
+
async function bn({ scale: e = 2 } = {}) {
|
|
614
|
+
if (!B.value) return;
|
|
615
|
+
let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ne({
|
|
616
|
+
domElement: B.value,
|
|
617
|
+
base64: !0,
|
|
618
|
+
img: !0,
|
|
619
|
+
scale: e
|
|
620
|
+
});
|
|
621
|
+
return {
|
|
622
|
+
imageUri: i,
|
|
623
|
+
base64: a,
|
|
624
|
+
title: U.value.style.chart.title.text,
|
|
625
|
+
width: t,
|
|
626
|
+
height: n,
|
|
627
|
+
aspectRatio: r
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
let xn = w(() => {
|
|
631
|
+
let e = U.value.table.useDialog && !U.value.table.show, t = K.value.showTable;
|
|
632
|
+
return {
|
|
633
|
+
component: e ? $e : Je,
|
|
634
|
+
title: `${U.value.style.chart.title.text}${U.value.style.chart.title.subtitle.text ? `: ${U.value.style.chart.title.subtitle.text}` : ""}`,
|
|
635
|
+
props: e ? {
|
|
636
|
+
backgroundColor: U.value.table.th.backgroundColor,
|
|
637
|
+
color: U.value.table.th.color,
|
|
638
|
+
headerColor: U.value.table.th.color,
|
|
639
|
+
headerBg: U.value.table.th.backgroundColor,
|
|
640
|
+
isFullscreen: H.value,
|
|
641
|
+
fullscreenParent: B.value,
|
|
642
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
643
|
+
isCursorPointer: W.value
|
|
644
|
+
} : {
|
|
645
|
+
hideDetails: !0,
|
|
646
|
+
config: {
|
|
647
|
+
open: t,
|
|
648
|
+
maxHeight: 1e4,
|
|
649
|
+
body: {
|
|
650
|
+
backgroundColor: U.value.style.chart.backgroundColor,
|
|
651
|
+
color: U.value.style.chart.color
|
|
652
|
+
},
|
|
653
|
+
head: {
|
|
654
|
+
backgroundColor: U.value.style.chart.backgroundColor,
|
|
655
|
+
color: U.value.style.chart.color
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
});
|
|
661
|
+
we(() => K.value.showTable, (e) => {
|
|
662
|
+
U.value.table.show || (e && U.value.table.useDialog && mt.value ? mt.value.open() : "close" in mt.value && mt.value.close());
|
|
663
|
+
});
|
|
664
|
+
function Sn() {
|
|
665
|
+
K.value.showTable = !1, ht.value && ht.value.setTableIconState(!1);
|
|
666
|
+
}
|
|
667
|
+
let Cn = w(() => _n.value.map((e) => ({
|
|
668
|
+
...e,
|
|
669
|
+
name: e.display
|
|
670
|
+
}))), wn = w(() => U.value.style.chart.backgroundColor), Tn = w(() => U.value.style.chart.legend), { exportSvg: En, getSvg: Dn } = x({
|
|
671
|
+
svg: G,
|
|
672
|
+
title: w(() => U.value.style.chart.title),
|
|
673
|
+
legend: Tn,
|
|
674
|
+
legendItems: Cn,
|
|
675
|
+
backgroundColor: wn
|
|
676
|
+
});
|
|
677
|
+
async function On({ isCb: e }) {
|
|
678
|
+
vt.value = !0, await _e();
|
|
679
|
+
try {
|
|
680
|
+
if (e) {
|
|
681
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Dn();
|
|
682
|
+
await Promise.resolve(U.value.userOptions.callbacks.svg({
|
|
683
|
+
blob: e,
|
|
684
|
+
url: t,
|
|
685
|
+
text: n,
|
|
686
|
+
dataUrl: r
|
|
687
|
+
}));
|
|
688
|
+
} else await Promise.resolve(En());
|
|
689
|
+
} finally {
|
|
690
|
+
vt.value = !1;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
function kn(e) {
|
|
694
|
+
if (e?.stage === "start") {
|
|
695
|
+
_t.value = !0;
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
if (e?.stage === "end") {
|
|
699
|
+
_t.value = !1;
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
Bt();
|
|
703
|
+
}
|
|
704
|
+
async function An() {
|
|
705
|
+
if (rt("copyAlt", {
|
|
706
|
+
config: U.value,
|
|
707
|
+
dataset: q.value
|
|
708
|
+
}), !U.value.userOptions.callbacks.altCopy) {
|
|
709
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
await Promise.resolve(U.value.userOptions.callbacks.altCopy({
|
|
713
|
+
config: U.value,
|
|
714
|
+
dataset: q.value
|
|
715
|
+
}));
|
|
716
|
+
}
|
|
717
|
+
function jn(e) {
|
|
718
|
+
return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
|
|
719
|
+
}
|
|
720
|
+
function Mn(e, t) {
|
|
721
|
+
let n = Q.value[e];
|
|
722
|
+
return n ? n.nodes.findIndex((e) => e.id === t) : -1;
|
|
723
|
+
}
|
|
724
|
+
function Nn(e, t) {
|
|
725
|
+
let n = Q.value[e];
|
|
726
|
+
if (!n || !n.nodes.length) return null;
|
|
727
|
+
let r = n.nodes[0], i = Math.abs(r.centerY - t);
|
|
728
|
+
for (let e = 1; e < n.nodes.length; e += 1) {
|
|
729
|
+
let a = n.nodes[e], o = Math.abs(a.centerY - t);
|
|
730
|
+
o < i && (r = a, i = o);
|
|
731
|
+
}
|
|
732
|
+
return r;
|
|
733
|
+
}
|
|
734
|
+
function Pn() {
|
|
735
|
+
yt.value = null, V.value = null, St.value = !0;
|
|
736
|
+
}
|
|
737
|
+
function Fn() {
|
|
738
|
+
en(), St.value = !1;
|
|
739
|
+
}
|
|
740
|
+
function In(e) {
|
|
741
|
+
if (!G.value || pn.value || document.activeElement !== G.value || !ln.value.length) return;
|
|
742
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
743
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
744
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
745
|
+
en();
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
if (a) {
|
|
749
|
+
if (yt.value === null) return;
|
|
750
|
+
an(yt.value);
|
|
751
|
+
return;
|
|
752
|
+
}
|
|
753
|
+
if (V.value === null) {
|
|
754
|
+
let e = Q.value[0]?.nodes?.[0];
|
|
755
|
+
if (!e) return;
|
|
756
|
+
let t = un.value.get(e.id) ?? 0;
|
|
757
|
+
nn(e, t, "keyboard", t);
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
let s = un.value.get(V.value);
|
|
761
|
+
if (s === void 0) return;
|
|
762
|
+
let c = ln.value[s];
|
|
763
|
+
if (!c) return;
|
|
764
|
+
let l = jn(c.id);
|
|
765
|
+
if (l < 0) return;
|
|
766
|
+
let u = null;
|
|
767
|
+
if (r || i) {
|
|
768
|
+
let e = Mn(l, c.id);
|
|
769
|
+
if (e < 0) return;
|
|
770
|
+
let t = Q.value[l];
|
|
771
|
+
if (!t?.nodes?.length) return;
|
|
772
|
+
let n = e + (i ? 1 : -1);
|
|
773
|
+
n < 0 && (n = t.nodes.length - 1), n >= t.nodes.length && (n = 0), u = t.nodes[n];
|
|
774
|
+
}
|
|
775
|
+
if (t || n) {
|
|
776
|
+
let e = l + (n ? 1 : -1);
|
|
777
|
+
e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Nn(e, c.centerY);
|
|
778
|
+
}
|
|
779
|
+
if (!u) return;
|
|
780
|
+
let d = un.value.get(u.id);
|
|
781
|
+
d !== void 0 && nn(u, d, "keyboard", d);
|
|
782
|
+
}
|
|
783
|
+
return re({
|
|
784
|
+
getData: dn,
|
|
785
|
+
getImage: bn,
|
|
786
|
+
generateCsv: sn,
|
|
787
|
+
generateImage: Bt,
|
|
788
|
+
generateSvg: On,
|
|
789
|
+
generatePdf: zt,
|
|
790
|
+
toggleTable: fn,
|
|
791
|
+
toggleAnnotator: mn,
|
|
792
|
+
toggleTooltip: hn,
|
|
793
|
+
drillCategory: vn,
|
|
794
|
+
unselectNode: rn,
|
|
795
|
+
toggleFullscreen: wt,
|
|
796
|
+
copyAlt: An
|
|
797
|
+
}), (e, n) => (N(), D("div", {
|
|
798
|
+
ref_key: "flowChart",
|
|
799
|
+
ref: B,
|
|
800
|
+
class: ve(`vue-data-ui-component vue-ui-flow ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
801
|
+
style: M(`font-family:${U.value.style.fontFamily};width:100%; text-align:center;background:${U.value.style.chart.backgroundColor}`),
|
|
802
|
+
id: `flow_${z.value}`,
|
|
803
|
+
onMouseenter: n[2] ||= () => I(Mt)(!0),
|
|
804
|
+
onMouseleave: n[3] ||= () => {
|
|
805
|
+
I(Mt)(!1), St.value || en();
|
|
806
|
+
}
|
|
807
|
+
}, [
|
|
808
|
+
O("div", {
|
|
809
|
+
id: `chart-instructions-${z.value}`,
|
|
810
|
+
class: "sr-only"
|
|
811
|
+
}, [O("p", null, Se(U.value.a11y.translations.keyboardNavigation), 1)], 8, De),
|
|
812
|
+
cn.value?.rows?.length ? (N(), T(oe, {
|
|
813
|
+
key: 0,
|
|
814
|
+
uid: z.value,
|
|
815
|
+
head: cn.value.headers,
|
|
816
|
+
body: cn.value.rows,
|
|
817
|
+
notice: U.value.a11y.translations.tableAvailable,
|
|
818
|
+
caption: U.value.a11y.translations.tableCaption
|
|
819
|
+
}, null, 8, [
|
|
820
|
+
"uid",
|
|
821
|
+
"head",
|
|
822
|
+
"body",
|
|
823
|
+
"notice",
|
|
824
|
+
"caption"
|
|
825
|
+
])) : E("", !0),
|
|
826
|
+
U.value.userOptions.buttons.annotator ? (N(), T(I(Xe), {
|
|
827
|
+
key: 1,
|
|
828
|
+
svgRef: I(G),
|
|
829
|
+
backgroundColor: U.value.style.chart.backgroundColor,
|
|
830
|
+
color: U.value.style.chart.color,
|
|
831
|
+
active: pn.value,
|
|
832
|
+
onClose: mn,
|
|
833
|
+
isCursorPointer: W.value
|
|
834
|
+
}, {
|
|
835
|
+
"annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
836
|
+
"annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", j(A({ color: t })), void 0, !0)]),
|
|
837
|
+
"annotator-action-draw": L(({ mode: t }) => [F(e.$slots, "annotator-action-draw", j(A({ mode: t })), void 0, !0)]),
|
|
838
|
+
"annotator-action-undo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", j(A({ disabled: t })), void 0, !0)]),
|
|
839
|
+
"annotator-action-redo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", j(A({ disabled: t })), void 0, !0)]),
|
|
840
|
+
"annotator-action-delete": L(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", j(A({ disabled: t })), void 0, !0)]),
|
|
841
|
+
_: 3
|
|
842
|
+
}, 8, [
|
|
843
|
+
"svgRef",
|
|
844
|
+
"backgroundColor",
|
|
845
|
+
"color",
|
|
846
|
+
"active",
|
|
847
|
+
"isCursorPointer"
|
|
848
|
+
])) : E("", !0),
|
|
849
|
+
Vt.value ? (N(), D("div", Oe, null, 512)) : E("", !0),
|
|
850
|
+
U.value.style.chart.title.text ? (N(), D("div", {
|
|
851
|
+
key: 3,
|
|
852
|
+
ref_key: "chartTitle",
|
|
853
|
+
ref: lt,
|
|
854
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
855
|
+
}, [(N(), T(C, {
|
|
856
|
+
key: `title_${at.value}`,
|
|
857
|
+
config: {
|
|
858
|
+
title: {
|
|
859
|
+
cy: "flow-title",
|
|
860
|
+
...U.value.style.chart.title
|
|
861
|
+
},
|
|
862
|
+
subtitle: {
|
|
863
|
+
cy: "flow-subtitle",
|
|
864
|
+
...U.value.style.chart.title.subtitle
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}, null, 8, ["config"]))], 512)) : E("", !0),
|
|
868
|
+
O("div", { id: `legend-top-${z.value}` }, null, 8, ke),
|
|
869
|
+
U.value.userOptions.show && Ct.value && (I(Nt) || I(jt)) ? (N(), T(I(Ze), {
|
|
870
|
+
ref_key: "userOptionsRef",
|
|
871
|
+
ref: ht,
|
|
872
|
+
key: `user_option_${it.value}`,
|
|
873
|
+
backgroundColor: U.value.style.chart.backgroundColor,
|
|
874
|
+
color: U.value.style.chart.color,
|
|
875
|
+
isPrinting: I(Lt),
|
|
876
|
+
isImaging: I(Rt),
|
|
877
|
+
uid: z.value,
|
|
878
|
+
hasPdf: U.value.userOptions.buttons.pdf,
|
|
879
|
+
hasXls: U.value.userOptions.buttons.csv,
|
|
880
|
+
hasImg: U.value.userOptions.buttons.img,
|
|
881
|
+
hasSvg: U.value.userOptions.buttons.svg,
|
|
882
|
+
hasTable: U.value.userOptions.buttons.table,
|
|
883
|
+
callbacks: U.value.userOptions.callbacks,
|
|
884
|
+
hasFullscreen: U.value.userOptions.buttons.fullscreen,
|
|
885
|
+
hasAltCopy: U.value.userOptions.buttons.altCopy,
|
|
886
|
+
isFullscreen: H.value,
|
|
887
|
+
titles: { ...U.value.userOptions.buttonTitles },
|
|
888
|
+
chartElement: B.value,
|
|
889
|
+
position: U.value.userOptions.position,
|
|
890
|
+
hasAnnotator: U.value.userOptions.buttons.annotator,
|
|
891
|
+
printScale: U.value.userOptions.print.scale,
|
|
892
|
+
isAnnotation: pn.value,
|
|
893
|
+
hasTooltip: U.value.style.chart.tooltip.show && U.value.userOptions.buttons.tooltip,
|
|
894
|
+
isTooltip: K.value.showTooltip,
|
|
895
|
+
tableDialog: U.value.table.useDialog,
|
|
896
|
+
isCursorPointer: W.value,
|
|
897
|
+
onToggleTooltip: hn,
|
|
898
|
+
onToggleFullscreen: wt,
|
|
899
|
+
onGeneratePdf: I(zt),
|
|
900
|
+
onGenerateCsv: sn,
|
|
901
|
+
onGenerateImage: kn,
|
|
902
|
+
onGenerateSvg: On,
|
|
903
|
+
onToggleTable: fn,
|
|
904
|
+
onToggleAnnotator: mn,
|
|
905
|
+
onCopyAlt: An,
|
|
906
|
+
style: M({ visibility: I(Nt) ? I(jt) ? "visible" : "hidden" : "visible" })
|
|
907
|
+
}, pe({ _: 2 }, [
|
|
908
|
+
e.$slots.menuIcon ? {
|
|
909
|
+
name: "menuIcon",
|
|
910
|
+
fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(A({
|
|
911
|
+
isOpen: t,
|
|
912
|
+
color: n
|
|
913
|
+
})), void 0, !0)]),
|
|
914
|
+
key: "0"
|
|
915
|
+
} : void 0,
|
|
916
|
+
e.$slots.optionTooltip ? {
|
|
917
|
+
name: "optionTooltip",
|
|
918
|
+
fn: L(() => [F(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
919
|
+
key: "1"
|
|
920
|
+
} : void 0,
|
|
921
|
+
e.$slots.optionPdf ? {
|
|
922
|
+
name: "optionPdf",
|
|
923
|
+
fn: L(() => [F(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
924
|
+
key: "2"
|
|
925
|
+
} : void 0,
|
|
926
|
+
e.$slots.optionCsv ? {
|
|
927
|
+
name: "optionCsv",
|
|
928
|
+
fn: L(() => [F(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
929
|
+
key: "3"
|
|
930
|
+
} : void 0,
|
|
931
|
+
e.$slots.optionImg ? {
|
|
932
|
+
name: "optionImg",
|
|
933
|
+
fn: L(() => [F(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
934
|
+
key: "4"
|
|
935
|
+
} : void 0,
|
|
936
|
+
e.$slots.optionSvg ? {
|
|
937
|
+
name: "optionSvg",
|
|
938
|
+
fn: L(() => [F(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
939
|
+
key: "5"
|
|
940
|
+
} : void 0,
|
|
941
|
+
e.$slots.optionTable ? {
|
|
942
|
+
name: "optionTable",
|
|
943
|
+
fn: L(() => [F(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
944
|
+
key: "6"
|
|
945
|
+
} : void 0,
|
|
946
|
+
e.$slots.optionFullscreen ? {
|
|
947
|
+
name: "optionFullscreen",
|
|
948
|
+
fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", j(A({
|
|
949
|
+
toggleFullscreen: t,
|
|
950
|
+
isFullscreen: n
|
|
951
|
+
})), void 0, !0)]),
|
|
952
|
+
key: "7"
|
|
953
|
+
} : void 0,
|
|
954
|
+
e.$slots.optionAnnotator ? {
|
|
955
|
+
name: "optionAnnotator",
|
|
956
|
+
fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", j(A({
|
|
957
|
+
toggleAnnotator: t,
|
|
958
|
+
isAnnotator: n
|
|
959
|
+
})), void 0, !0)]),
|
|
960
|
+
key: "8"
|
|
961
|
+
} : void 0,
|
|
962
|
+
e.$slots.optionAltCopy ? {
|
|
963
|
+
name: "optionAltCopy",
|
|
964
|
+
fn: L(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", j(A({ altCopy: t })), void 0, !0)]),
|
|
965
|
+
key: "9"
|
|
966
|
+
} : void 0
|
|
967
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.callbacks.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.printScale.isAnnotation.hasTooltip.isTooltip.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : E("", !0),
|
|
968
|
+
O("div", Ae, [(N(), D("svg", {
|
|
969
|
+
ref_key: "svgRef",
|
|
970
|
+
ref: G,
|
|
971
|
+
xmlns: I(p),
|
|
972
|
+
"aria-describedby": `chart-instructions-${z.value}`,
|
|
973
|
+
viewBox: `0 0 ${Xt.value.width} ${Xt.value.height}`,
|
|
974
|
+
class: ve({
|
|
975
|
+
"vue-data-ui-fullscreen--on": H.value,
|
|
976
|
+
"vue-data-ui-fulscreen--off": !H.value
|
|
977
|
+
}),
|
|
978
|
+
style: M({
|
|
979
|
+
maxWidth: "100%",
|
|
980
|
+
overflow: "visible",
|
|
981
|
+
background: "transparent",
|
|
982
|
+
color: U.value.style.chart.color
|
|
983
|
+
}),
|
|
984
|
+
tabindex: "0",
|
|
985
|
+
onFocus: Pn,
|
|
986
|
+
onBlur: Fn,
|
|
987
|
+
onKeydown: In
|
|
988
|
+
}, [
|
|
989
|
+
he(I(Qe)),
|
|
990
|
+
e.$slots["chart-background"] ? (N(), D("foreignObject", {
|
|
991
|
+
key: 0,
|
|
992
|
+
x: 0,
|
|
993
|
+
y: 0,
|
|
994
|
+
width: Xt.value.width,
|
|
995
|
+
height: Xt.value.height,
|
|
996
|
+
style: { pointerEvents: "none" }
|
|
997
|
+
}, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Me)) : E("", !0),
|
|
998
|
+
O("defs", null, [(N(!0), D(de, null, be(q.value.links, (e, t) => (N(), D("linearGradient", {
|
|
999
|
+
id: e.id,
|
|
1000
|
+
x1: "0%",
|
|
1001
|
+
y1: "0%",
|
|
1002
|
+
x2: "100%",
|
|
1003
|
+
y2: "0%"
|
|
1004
|
+
}, [O("stop", {
|
|
1005
|
+
offset: "0%",
|
|
1006
|
+
"stop-color": e.sourceColor
|
|
1007
|
+
}, null, 8, Pe), O("stop", {
|
|
1008
|
+
offset: "100%",
|
|
1009
|
+
"stop-color": e.targetColor
|
|
1010
|
+
}, null, 8, Fe)], 8, Ne))), 256))]),
|
|
1011
|
+
(N(!0), D(de, null, be(q.value.links, (e) => (N(), D("path", {
|
|
1012
|
+
class: "vue-ui-flow-link",
|
|
1013
|
+
d: e.path,
|
|
1014
|
+
"stroke-linejoin": "round",
|
|
1015
|
+
"stroke-miterlimit": "1",
|
|
1016
|
+
fill: `url(#${e.id})`,
|
|
1017
|
+
stroke: U.value.style.chart.links.stroke,
|
|
1018
|
+
"stroke-width": U.value.style.chart.links.strokeWidth,
|
|
1019
|
+
style: M(`
|
|
1020
|
+
opacity:${J.value ? J.value.includes(e.source) && J.value.includes(e.target) ? 1 : .3 : Y.value ? [e.target, e.source].includes(Y.value) ? 1 : .3 : U.value.style.chart.links.opacity}
|
|
1021
|
+
`)
|
|
1022
|
+
}, null, 12, Ie))), 256)),
|
|
1023
|
+
(N(!0), D(de, null, be(q.value.nodes, (e, n) => (N(), D("rect", {
|
|
1024
|
+
"data-a11y-node-id": e.id,
|
|
1025
|
+
class: "vue-ui-flow-node",
|
|
1026
|
+
x: e.x,
|
|
1027
|
+
y: I(m)(e.absoluteY) + U.value.style.chart.padding.top,
|
|
1028
|
+
height: I(m)(e.height),
|
|
1029
|
+
width: Ut.value,
|
|
1030
|
+
fill: e.color,
|
|
1031
|
+
stroke: U.value.style.chart.nodes.stroke,
|
|
1032
|
+
"stroke-width": U.value.style.chart.nodes.strokeWidth,
|
|
1033
|
+
rx: U.value.style.chart.nodes.borderRadius,
|
|
1034
|
+
style: M({
|
|
1035
|
+
opacity: J.value ? J.value.includes(e.name) ? 1 : .3 : 1,
|
|
1036
|
+
outline: $t.value !== null && $t.value === e.id ? "2px solid currentColor" : void 0
|
|
1037
|
+
}),
|
|
1038
|
+
"aria-label": `${e.name}: ${I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(t)({
|
|
1039
|
+
p: U.value.style.chart.nodes.labels.prefix,
|
|
1040
|
+
v: e.value,
|
|
1041
|
+
s: U.value.style.chart.nodes.labels.suffix,
|
|
1042
|
+
r: U.value.style.chart.nodes.labels.rounding
|
|
1043
|
+
}))}`,
|
|
1044
|
+
onMouseenter: (t) => nn(e, n, "pointer", un.value.get(e.id)),
|
|
1045
|
+
onMouseleave: (e) => rn(n),
|
|
1046
|
+
onClick: (e) => an(n)
|
|
1047
|
+
}, null, 44, Le))), 256)),
|
|
1048
|
+
U.value.style.chart.nodes.labels.show ? (N(), D("g", Re, [(N(!0), D(de, null, be(q.value.nodes, (e, t) => (N(), D("text", {
|
|
1049
|
+
x: e.x + Ut.value / 2,
|
|
1050
|
+
y: (U.value.style.chart.nodes.labels.showValue ? I(m)(e.absoluteY + e.height / 2 - U.value.style.chart.nodes.labels.fontSize / 4) : e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 3) + U.value.style.chart.padding.top,
|
|
1051
|
+
"font-size": U.value.style.chart.nodes.labels.fontSize,
|
|
1052
|
+
fill: I(f)(e.color),
|
|
1053
|
+
"text-anchor": "middle",
|
|
1054
|
+
style: M(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1055
|
+
}, Se(U.value.style.chart.nodes.labels.abbreviation.use ? I(u)({
|
|
1056
|
+
source: e.name,
|
|
1057
|
+
length: U.value.style.chart.nodes.labels.abbreviation.length
|
|
1058
|
+
}) : e.name), 13, ze))), 256)), U.value.style.chart.nodes.labels.showValue ? (N(!0), D(de, { key: 0 }, be(q.value.nodes, (e, n) => (N(), D("text", {
|
|
1059
|
+
x: e.x + Ut.value / 2,
|
|
1060
|
+
y: I(m)(e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 1.3) + U.value.style.chart.padding.top,
|
|
1061
|
+
"font-size": U.value.style.chart.nodes.labels.fontSize,
|
|
1062
|
+
fill: I(f)(e.color),
|
|
1063
|
+
"text-anchor": "middle",
|
|
1064
|
+
style: M(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1065
|
+
}, Se(I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(t)({
|
|
1066
|
+
p: U.value.style.chart.nodes.labels.prefix,
|
|
1067
|
+
v: e.value,
|
|
1068
|
+
s: U.value.style.chart.nodes.labels.suffix,
|
|
1069
|
+
r: U.value.style.chart.nodes.labels.rounding
|
|
1070
|
+
}), {
|
|
1071
|
+
datapoint: e,
|
|
1072
|
+
seriesIndex: n
|
|
1073
|
+
})), 13, Be))), 256)) : E("", !0)])) : E("", !0),
|
|
1074
|
+
F(e.$slots, "svg", { svg: {
|
|
1075
|
+
...Xt.value,
|
|
1076
|
+
isPrintingImg: I(Lt) || I(Rt) || _t.value,
|
|
1077
|
+
isPrintingSvg: vt.value
|
|
1078
|
+
} }, void 0, !0)
|
|
1079
|
+
], 46, je)), e.$slots.hint ? (N(), D("div", Ve, [F(e.$slots, "hint", j(A({
|
|
1080
|
+
hint: U.value.a11y.translations.keyboardNavigation,
|
|
1081
|
+
isVisible: St.value
|
|
1082
|
+
})), void 0, !0)])) : E("", !0)]),
|
|
1083
|
+
e.$slots.watermark ? (N(), D("div", He, [F(e.$slots, "watermark", j(A({ isPrinting: I(Lt) || I(Rt) || _t.value || vt.value })), void 0, !0)])) : E("", !0),
|
|
1084
|
+
O("div", { id: `legend-bottom-${z.value}` }, null, 8, Ue),
|
|
1085
|
+
pt.value && (U.value.style.chart.legend.show || e.$slots.legend) ? (N(), T(fe, {
|
|
1086
|
+
key: 6,
|
|
1087
|
+
to: U.value.style.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
|
|
1088
|
+
}, [O("div", {
|
|
1089
|
+
ref_key: "chartLegend",
|
|
1090
|
+
ref: ct
|
|
1091
|
+
}, [F(e.$slots, "legend", { legend: gn.value }, () => [U.value.style.chart.legend.show && _n.value.length ? (N(), T(le, {
|
|
1092
|
+
key: 0,
|
|
1093
|
+
legendSet: _n.value,
|
|
1094
|
+
config: yn.value,
|
|
1095
|
+
isCursorPointer: W.value,
|
|
1096
|
+
onClickMarker: n[0] ||= (e) => vn(e)
|
|
1097
|
+
}, {
|
|
1098
|
+
item: L(({ legend: e, index: t }) => [I(Et) ? E("", !0) : (N(), D("div", {
|
|
1099
|
+
key: 0,
|
|
1100
|
+
onClick: (t) => e.segregate(),
|
|
1101
|
+
style: M(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
|
|
1102
|
+
}, Se(e.display), 13, We))]),
|
|
1103
|
+
_: 1
|
|
1104
|
+
}, 8, [
|
|
1105
|
+
"legendSet",
|
|
1106
|
+
"config",
|
|
1107
|
+
"isCursorPointer"
|
|
1108
|
+
])) : E("", !0)], !0)], 512)], 8, ["to"])) : E("", !0),
|
|
1109
|
+
e.$slots.source ? (N(), D("div", {
|
|
1110
|
+
key: 7,
|
|
1111
|
+
ref_key: "source",
|
|
1112
|
+
ref: ut,
|
|
1113
|
+
dir: "auto"
|
|
1114
|
+
}, [F(e.$slots, "source", {}, void 0, !0)], 512)) : E("", !0),
|
|
1115
|
+
he(I(Ke), {
|
|
1116
|
+
ref_key: "tooltip",
|
|
1117
|
+
ref: gt,
|
|
1118
|
+
teleportTo: U.value.style.chart.tooltip.teleportTo,
|
|
1119
|
+
show: K.value.showTooltip && ot.value,
|
|
1120
|
+
backgroundColor: U.value.style.chart.tooltip.backgroundColor,
|
|
1121
|
+
color: U.value.style.chart.tooltip.color,
|
|
1122
|
+
fontSize: U.value.style.chart.tooltip.fontSize,
|
|
1123
|
+
borderRadius: U.value.style.chart.tooltip.borderRadius,
|
|
1124
|
+
borderColor: U.value.style.chart.tooltip.borderColor,
|
|
1125
|
+
borderWidth: U.value.style.chart.tooltip.borderWidth,
|
|
1126
|
+
backgroundOpacity: U.value.style.chart.tooltip.backgroundOpacity,
|
|
1127
|
+
position: U.value.style.chart.tooltip.position,
|
|
1128
|
+
offsetY: U.value.style.chart.tooltip.offsetY,
|
|
1129
|
+
parent: B.value,
|
|
1130
|
+
content: st.value,
|
|
1131
|
+
isCustom: Qt.value,
|
|
1132
|
+
isFullscreen: H.value,
|
|
1133
|
+
smooth: U.value.style.chart.tooltip.smooth,
|
|
1134
|
+
backdropFilter: U.value.style.chart.tooltip.backdropFilter,
|
|
1135
|
+
smoothForce: U.value.style.chart.tooltip.smoothForce,
|
|
1136
|
+
smoothSnapThreshold: U.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1137
|
+
isA11yMode: xt.value === "keyboard",
|
|
1138
|
+
a11yPosition: bt.value
|
|
1139
|
+
}, {
|
|
1140
|
+
"tooltip-before": L(() => [F(e.$slots, "tooltip-before", j(A({ ...X.value })), void 0, !0)]),
|
|
1141
|
+
tooltip: L(() => [F(e.$slots, "tooltip", j(A({ ...X.value })), void 0, !0)]),
|
|
1142
|
+
"tooltip-after": L(() => [F(e.$slots, "tooltip-after", j(A({ ...X.value })), void 0, !0)]),
|
|
1143
|
+
_: 3
|
|
1144
|
+
}, 8, [
|
|
1145
|
+
"teleportTo",
|
|
1146
|
+
"show",
|
|
1147
|
+
"backgroundColor",
|
|
1148
|
+
"color",
|
|
1149
|
+
"fontSize",
|
|
1150
|
+
"borderRadius",
|
|
1151
|
+
"borderColor",
|
|
1152
|
+
"borderWidth",
|
|
1153
|
+
"backgroundOpacity",
|
|
1154
|
+
"position",
|
|
1155
|
+
"offsetY",
|
|
1156
|
+
"parent",
|
|
1157
|
+
"content",
|
|
1158
|
+
"isCustom",
|
|
1159
|
+
"isFullscreen",
|
|
1160
|
+
"smooth",
|
|
1161
|
+
"backdropFilter",
|
|
1162
|
+
"smoothForce",
|
|
1163
|
+
"smoothSnapThreshold",
|
|
1164
|
+
"isA11yMode",
|
|
1165
|
+
"a11yPosition"
|
|
1166
|
+
]),
|
|
1167
|
+
Ct.value && U.value.userOptions.buttons.table ? (N(), T(xe(xn.value.component), ge({ key: 8 }, xn.value.props, {
|
|
1168
|
+
ref_key: "tableUnit",
|
|
1169
|
+
ref: mt,
|
|
1170
|
+
onClose: Sn
|
|
1171
|
+
}), pe({
|
|
1172
|
+
content: L(() => [he(I(Ye), {
|
|
1173
|
+
colNames: Z.value.colNames,
|
|
1174
|
+
head: Z.value.head,
|
|
1175
|
+
body: Z.value.body,
|
|
1176
|
+
config: Z.value.config,
|
|
1177
|
+
title: U.value.table.useDialog ? "" : xn.value.title,
|
|
1178
|
+
withCloseButton: !U.value.table.useDialog,
|
|
1179
|
+
isCursorPointer: W.value,
|
|
1180
|
+
onClose: Sn
|
|
1181
|
+
}, {
|
|
1182
|
+
th: L(({ th: e }) => [O("div", {
|
|
1183
|
+
innerHTML: e,
|
|
1184
|
+
style: {
|
|
1185
|
+
display: "flex",
|
|
1186
|
+
"align-items": "center"
|
|
1187
|
+
}
|
|
1188
|
+
}, null, 8, Ge)]),
|
|
1189
|
+
td: L(({ td: e }) => [me(Se(e.name || e), 1)]),
|
|
1190
|
+
_: 1
|
|
1191
|
+
}, 8, [
|
|
1192
|
+
"colNames",
|
|
1193
|
+
"head",
|
|
1194
|
+
"body",
|
|
1195
|
+
"config",
|
|
1196
|
+
"title",
|
|
1197
|
+
"withCloseButton",
|
|
1198
|
+
"isCursorPointer"
|
|
1199
|
+
])]),
|
|
1200
|
+
_: 2
|
|
1201
|
+
}, [U.value.table.useDialog ? {
|
|
1202
|
+
name: "title",
|
|
1203
|
+
fn: L(() => [me(Se(xn.value.title), 1)]),
|
|
1204
|
+
key: "0"
|
|
1205
|
+
} : void 0, U.value.table.useDialog ? {
|
|
1206
|
+
name: "actions",
|
|
1207
|
+
fn: L(() => [O("button", {
|
|
1208
|
+
tabindex: "0",
|
|
1209
|
+
class: "vue-ui-user-options-button",
|
|
1210
|
+
onClick: n[1] ||= (e) => sn(U.value.userOptions.callbacks.csv),
|
|
1211
|
+
style: M({ cursor: W.value ? "pointer" : "default" })
|
|
1212
|
+
}, [he(I(qe), {
|
|
1213
|
+
name: "fileCsv",
|
|
1214
|
+
stroke: xn.value.props.color
|
|
1215
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1216
|
+
key: "1"
|
|
1217
|
+
} : void 0]), 1040)) : E("", !0),
|
|
1218
|
+
F(e.$slots, "skeleton", {}, () => [I(Et) ? (N(), T(b, { key: 0 })) : E("", !0)], !0)
|
|
1219
|
+
], 46, Ee));
|
|
1220
|
+
}
|
|
1221
|
+
}, [["__scopeId", "data-v-4ca6cd23"]]);
|
|
1222
|
+
//#endregion
|
|
1223
|
+
export { Te as n, Ke as t };
|