vue-data-ui 3.26.5 → 3.27.1-beta.0
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/A11yDataTable-DWNlWXzs.js +1 -0
- package/dist/Arrow-CJeSufxg.js +1 -0
- package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
- package/dist/BaseIcon-Cz30ODFA.js +1 -0
- package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
- package/dist/BaseScanner-8NdoBs7B.js +1 -0
- package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
- package/dist/ColorPicker-CUjEw53A.js +1 -0
- package/dist/DataTable-DSUA5M9p.js +1 -0
- package/dist/DefGrad-DKMq1REY.js +1 -0
- package/dist/HillActions-DdvXld3a.js +1 -0
- package/dist/Legend-DokTll4u.js +1 -0
- package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
- package/dist/PackageVersion-D6pKL176.js +1 -0
- package/dist/PenAndPaper-DvJJaeU2.js +1 -0
- package/dist/RecursiveCircles-BftI1kwF.js +1 -0
- package/dist/RecursiveLabels-B0d04xSj.js +1 -0
- package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
- package/dist/Shape-tkp65OcG.js +1 -0
- package/dist/SlicerPreview-GFRs2EWB.js +1 -0
- package/dist/SparkTooltip-BlJLvizH.js +1 -0
- package/dist/Title-BRAjxtjG.js +1 -0
- package/dist/Tooltip-BUXB0i6z.js +1 -0
- package/dist/UserOptions-D65t74CM.js +1 -0
- package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/dist/annotationSlots-BRR85CqJ.js +1 -0
- package/dist/chartImage-NwZO-elv.js +1 -0
- package/dist/components/arrow.js +1 -2
- package/dist/components/vue-ui-3d-bar.js +1 -2
- package/dist/components/vue-ui-accordion.js +1 -2
- package/dist/components/vue-ui-age-pyramid.js +1 -2
- package/dist/components/vue-ui-annotator.js +1 -2
- package/dist/components/vue-ui-bullet.js +1 -2
- package/dist/components/vue-ui-bump.js +1 -2
- package/dist/components/vue-ui-candlestick.js +1 -2
- package/dist/components/vue-ui-carousel-table.js +1 -2
- package/dist/components/vue-ui-chestnut.js +1 -2
- package/dist/components/vue-ui-chord.js +1 -2
- package/dist/components/vue-ui-circle-pack.js +1 -2
- package/dist/components/vue-ui-cursor.js +1 -2
- package/dist/components/vue-ui-dag.js +1 -2
- package/dist/components/vue-ui-dashboard.js +1 -2
- package/dist/components/vue-ui-digits.js +1 -2
- package/dist/components/vue-ui-donut-evolution.js +1 -2
- package/dist/components/vue-ui-donut.js +1 -2
- package/dist/components/vue-ui-dumbbell.js +1 -2
- package/dist/components/vue-ui-flow.js +1 -2
- package/dist/components/vue-ui-funnel.js +1 -2
- package/dist/components/vue-ui-galaxy.js +1 -2
- package/dist/components/vue-ui-gauge.js +1 -2
- package/dist/components/vue-ui-geo.js +1 -2
- package/dist/components/vue-ui-gizmo.js +1 -2
- package/dist/components/vue-ui-heatmap.js +1 -2
- package/dist/components/vue-ui-hill.js +1 -2
- package/dist/components/vue-ui-history-plot.js +1 -2
- package/dist/components/vue-ui-horizontal-bar.js +1 -2
- package/dist/components/vue-ui-icon.js +1 -2
- package/dist/components/vue-ui-kpi.js +1 -2
- package/dist/components/vue-ui-label.js +1 -2
- package/dist/components/vue-ui-mini-loader.js +1 -2
- package/dist/components/vue-ui-molecule.js +1 -2
- package/dist/components/vue-ui-mood-radar.js +1 -2
- package/dist/components/vue-ui-nested-donuts.js +1 -2
- package/dist/components/vue-ui-onion.js +1 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
- package/dist/components/vue-ui-pattern-seed.js +1 -2
- package/dist/components/vue-ui-pattern.js +1 -2
- package/dist/components/vue-ui-quadrant.js +1 -2
- package/dist/components/vue-ui-quick-chart.js +1 -2
- package/dist/components/vue-ui-radar.js +1 -2
- package/dist/components/vue-ui-rating.js +1 -2
- package/dist/components/vue-ui-relation-circle.js +1 -2
- package/dist/components/vue-ui-ridgeline.js +1 -2
- package/dist/components/vue-ui-rings.js +1 -2
- package/dist/components/vue-ui-scatter.js +1 -2
- package/dist/components/vue-ui-skeleton.js +1 -2
- package/dist/components/vue-ui-smiley.js +1 -2
- package/dist/components/vue-ui-spark-trend.js +1 -2
- package/dist/components/vue-ui-sparkbar.js +1 -2
- package/dist/components/vue-ui-sparkgauge.js +1 -2
- package/dist/components/vue-ui-sparkhistogram.js +1 -2
- package/dist/components/vue-ui-sparkline.js +1 -2
- package/dist/components/vue-ui-sparkstackbar.js +1 -2
- package/dist/components/vue-ui-stackbar.js +1 -2
- package/dist/components/vue-ui-stackline.js +1 -2
- package/dist/components/vue-ui-strip-plot.js +1 -2
- package/dist/components/vue-ui-table-heatmap.js +1 -2
- package/dist/components/vue-ui-table-sparkline.js +1 -2
- package/dist/components/vue-ui-table.js +1 -2
- package/dist/components/vue-ui-thermometer.js +1 -2
- package/dist/components/vue-ui-timer.js +1 -2
- package/dist/components/vue-ui-tiremarks.js +1 -2
- package/dist/components/vue-ui-treemap.js +1 -2
- package/dist/components/vue-ui-vertical-bar.js +1 -2
- package/dist/components/vue-ui-waffle.js +1 -2
- package/dist/components/vue-ui-wheel.js +1 -2
- package/dist/components/vue-ui-word-cloud.js +1 -2
- package/dist/components/vue-ui-world.js +1 -2
- package/dist/components/vue-ui-xy-canvas.js +1 -2
- package/dist/components/vue-ui-xy.js +1 -2
- package/dist/composables.js +1 -5
- package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
- package/dist/exposedLib-CMTeSmyW.js +1 -0
- package/dist/geoProjections-Bvj-eMvq.js +1 -0
- package/dist/img-8sM3sVWU.js +1 -0
- package/dist/labelUtils-Djp5nJtN.js +1 -0
- package/dist/lib-zDxoqrgo.js +12 -0
- package/dist/package-DIR2F6AE.js +1 -0
- package/dist/patternUtils-_q3ArM3g.js +1 -0
- package/dist/pdf-Dlv_ks7R.js +1 -0
- package/dist/render-common-DOYi0f4Z.js +1 -0
- package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/ssr/vue-ui-donut.js +1 -2
- package/dist/ssr/vue-ui-xy.js +1 -2
- package/dist/ssr.js +1 -3
- package/dist/style.css +1 -1
- package/dist/tableIntegration-CNoJ1CIY.js +1 -0
- package/dist/types/composables.d.ts +12 -12
- package/dist/types/ssr.d.ts +84 -84
- package/dist/types/utils.d.ts +82 -73
- package/dist/types/vue-data-ui.d.ts +17969 -17813
- package/dist/types/vue-ui-3d-bar.d.ts +24 -91
- package/dist/types/vue-ui-accordion.d.ts +2 -10
- package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
- package/dist/types/vue-ui-annotator.d.ts +12 -88
- package/dist/types/vue-ui-bullet.d.ts +21 -83
- package/dist/types/vue-ui-bump.d.ts +23 -90
- package/dist/types/vue-ui-candlestick.d.ts +27 -108
- package/dist/types/vue-ui-carousel-table.d.ts +11 -57
- package/dist/types/vue-ui-chestnut.d.ts +27 -96
- package/dist/types/vue-ui-chord.d.ts +31 -108
- package/dist/types/vue-ui-circle-pack.d.ts +30 -124
- package/dist/types/vue-ui-cursor.d.ts +2 -8
- package/dist/types/vue-ui-dag.d.ts +35 -125
- package/dist/types/vue-ui-dashboard.d.ts +18 -66
- package/dist/types/vue-ui-digits.d.ts +2 -11
- package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
- package/dist/types/vue-ui-donut.d.ts +31 -121
- package/dist/types/vue-ui-dumbbell.d.ts +24 -92
- package/dist/types/vue-ui-flow.d.ts +28 -104
- package/dist/types/vue-ui-funnel.d.ts +18 -77
- package/dist/types/vue-ui-galaxy.d.ts +30 -112
- package/dist/types/vue-ui-gauge.d.ts +22 -87
- package/dist/types/vue-ui-geo.d.ts +22 -92
- package/dist/types/vue-ui-gizmo.d.ts +5 -20
- package/dist/types/vue-ui-heatmap.d.ts +25 -101
- package/dist/types/vue-ui-hill.d.ts +22 -88
- package/dist/types/vue-ui-history-plot.d.ts +30 -112
- package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
- package/dist/types/vue-ui-icon.d.ts +1 -13
- package/dist/types/vue-ui-kpi.d.ts +5 -23
- package/dist/types/vue-ui-label.d.ts +11 -48
- package/dist/types/vue-ui-mini-loader.d.ts +4 -13
- package/dist/types/vue-ui-molecule.d.ts +27 -110
- package/dist/types/vue-ui-mood-radar.d.ts +23 -90
- package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
- package/dist/types/vue-ui-onion.d.ts +26 -104
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
- package/dist/types/vue-ui-pattern.d.ts +1 -13
- package/dist/types/vue-ui-quadrant.d.ts +33 -123
- package/dist/types/vue-ui-quick-chart.d.ts +30 -110
- package/dist/types/vue-ui-radar.d.ts +31 -114
- package/dist/types/vue-ui-rating.d.ts +8 -40
- package/dist/types/vue-ui-relation-circle.d.ts +26 -90
- package/dist/types/vue-ui-ridgeline.d.ts +27 -104
- package/dist/types/vue-ui-rings.d.ts +21 -96
- package/dist/types/vue-ui-scatter.d.ts +22 -95
- package/dist/types/vue-ui-skeleton.d.ts +2 -10
- package/dist/types/vue-ui-smiley.d.ts +6 -26
- package/dist/types/vue-ui-spark-trend.d.ts +2 -18
- package/dist/types/vue-ui-sparkbar.d.ts +10 -47
- package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
- package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
- package/dist/types/vue-ui-sparkline.d.ts +16 -61
- package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
- package/dist/types/vue-ui-stackbar.d.ts +36 -120
- package/dist/types/vue-ui-stackline.d.ts +29 -116
- package/dist/types/vue-ui-strip-plot.d.ts +22 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
- package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
- package/dist/types/vue-ui-table.d.ts +9 -36
- package/dist/types/vue-ui-thermometer.d.ts +14 -68
- package/dist/types/vue-ui-timer.d.ts +10 -47
- package/dist/types/vue-ui-tiremarks.d.ts +14 -68
- package/dist/types/vue-ui-treemap.d.ts +26 -105
- package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
- package/dist/types/vue-ui-waffle.d.ts +23 -99
- package/dist/types/vue-ui-wheel.d.ts +14 -68
- package/dist/types/vue-ui-word-cloud.d.ts +20 -95
- package/dist/types/vue-ui-world.d.ts +22 -96
- package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
- package/dist/types/vue-ui-xy.d.ts +42 -146
- package/dist/unpackTheme-CNsFKCeq.js +1 -0
- package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
- package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
- package/dist/useChartExport-DtPNpc9M.js +1 -0
- package/dist/useConfig-CKdzPrcf.js +1 -0
- package/dist/useFitSvgText-C1QC4P5G.js +1 -0
- package/dist/useHints-BH9r_0Vd.js +6 -0
- package/dist/useNestedProp-CT9phgWx.js +1 -0
- package/dist/useObjectBindings-DM3xDKV3.js +1 -0
- package/dist/usePanZoom-BdjP5Suc.js +1 -0
- package/dist/usePrefersMotion-XLHwega2.js +1 -0
- package/dist/usePrinter-CnyKPIFM.js +1 -0
- package/dist/useResponsive-D2CPcpda.js +1 -0
- package/dist/useStableElementSize-CegFbRlF.js +1 -0
- package/dist/useTableResponsive-uSz_qZOB.js +1 -0
- package/dist/useThemeCheck-BKNRbGeC.js +1 -0
- package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
- package/dist/useTimeLabels-Das5O74F.js +1 -0
- package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
- package/dist/useTransitions-DfSHzsdz.js +1 -0
- package/dist/useUserOptionState-CXlFnwPv.js +1 -0
- package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
- package/dist/utils.js +1 -30
- package/dist/vClickOutside-BxNzkY17.js +1 -0
- package/dist/vue-data-ui-BG41UScx.js +1 -0
- package/dist/vue-data-ui.js +1 -79
- package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
- package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
- package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
- package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
- package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
- package/dist/vue-ui-bump-DYajIrva.js +10 -0
- package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
- package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
- package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
- package/dist/vue-ui-chord-fAckHfOW.js +21 -0
- package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
- package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
- package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
- package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
- package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
- package/dist/vue-ui-donut-BaEodt-3.js +22 -0
- package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
- package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
- package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
- package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
- package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
- package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
- package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
- package/dist/vue-ui-geo-CX3yH18H.js +1 -0
- package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
- package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
- package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
- package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
- package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
- package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
- package/dist/vue-ui-label-D1Aog-zO.js +7 -0
- package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
- package/dist/vue-ui-molecule-B13qVX71.js +1 -0
- package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
- package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
- package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
- package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
- package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
- package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
- package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
- package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
- package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
- package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
- package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
- package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
- package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
- package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
- package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
- package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
- package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
- package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
- package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
- package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
- package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
- package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
- package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
- package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
- package/dist/vue-ui-table-Br2JgD_L.js +14 -0
- package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
- package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
- package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
- package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
- package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
- package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
- package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
- package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
- package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
- package/dist/vue-ui-world-Cp0DeauH.js +19 -0
- package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
- package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
- package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
- package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
- package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
- package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
- package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
- package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
- package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
- package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
- package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
- package/dist/vue_ui_dag-1b_dLSym.js +1 -0
- package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
- package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
- package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
- package/dist/vue_ui_flow-kvV56Es9.js +1 -0
- package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
- package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
- package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
- package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
- package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
- package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
- package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
- package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
- package/dist/vue_ui_label-dtPqyFsj.js +1 -0
- package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
- package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
- package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
- package/dist/vue_ui_onion-C9BedU_-.js +1 -0
- package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
- package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
- package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
- package/dist/vue_ui_radar-68iK9Fam.js +1 -0
- package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
- package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
- package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
- package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
- package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
- package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
- package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
- package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
- package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
- package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
- package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
- package/dist/vue_ui_stackline-D7b63K84.js +1 -0
- package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
- package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
- package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
- package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
- package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
- package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
- package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
- package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
- package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
- package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
- package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
- package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
- package/package.json +2 -2
- package/dist/A11yDataTable-DdRsVULz.js +0 -45
- package/dist/Arrow-BQbcOtfC.js +0 -116
- package/dist/BaseDraggableDialog-BCFCiP_6.js +0 -272
- package/dist/BaseIcon-CIK6Sqo3.js +0 -484
- package/dist/BaseLegendToggle-Doa5rYP2.js +0 -56
- package/dist/BaseScanner-Dzc8VT3j.js +0 -30
- package/dist/BaseZoomControls-BGQM8B5F.js +0 -111
- package/dist/ColorPicker-Cb7qpvFt.js +0 -257
- package/dist/DataTable-B6LDCXBz.js +0 -150
- package/dist/DefGrad-DVBqDjhO.js +0 -48
- package/dist/HillActions-CwdgCb7Q.js +0 -187
- package/dist/Legend-D9FGXIbQ.js +0 -156
- package/dist/NonSvgPenAndPaper-9T4MSwXC.js +0 -577
- package/dist/PackageVersion-CslTvFsC.js +0 -12
- package/dist/PenAndPaper-C1EcBgJW.js +0 -906
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-BZgQLgu5.js +0 -143
- package/dist/SlicerPreview-DyYv_G-_.js +0 -1730
- package/dist/SparkTooltip-D4cRlyuq.js +0 -93
- package/dist/Title-Bd98RysU.js +0 -87
- package/dist/Tooltip-DmQeI5WE.js +0 -312
- package/dist/UserOptions-B_yBcZ1-.js +0 -1412
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/dom-to-png-B_RJohlM.js +0 -237
- package/dist/exposedLib-C-JlvWAt.js +0 -28
- package/dist/geoProjections-BYthUA8l.js +0 -302
- package/dist/img-KURaWjZI.js +0 -129
- package/dist/labelUtils-DShv2Mbg.js +0 -19
- package/dist/lib-TWIH5fGr.js +0 -2152
- package/dist/package-DbTqd5lc.js +0 -4
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-CLl24Afl.js +0 -90
- package/dist/render-common-CKv-jztN.js +0 -152
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useChartExport-iwOqiIWX.js +0 -803
- package/dist/useConfig-DObkR9Aa.js +0 -8008
- package/dist/useFitSvgText-CXTzBplU.js +0 -65
- package/dist/useHints-Dq_w2E8B.js +0 -66
- package/dist/useNestedProp-BxOdWM0c.js +0 -12
- package/dist/useObjectBindings-CPmyIJxB.js +0 -191
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-8Y1Rju0Y.js +0 -49
- package/dist/useResponsive-ZtArZtUf.js +0 -97
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useTableResponsive-BAqJPR68.js +0 -25
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-d2f-W1L4.js +0 -270
- package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
- package/dist/useTransitions-g_zBREk2.js +0 -39
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-C3G5Zdl5.js +0 -191
- package/dist/vue-ui-3d-bar-Cl6-fBV8.js +0 -1831
- package/dist/vue-ui-accordion-AyyZDab3.js +0 -81
- package/dist/vue-ui-age-pyramid-DOtWAL8s.js +0 -1305
- package/dist/vue-ui-annotator-BCVjlojM.js +0 -3325
- package/dist/vue-ui-bullet-B_1Ctjvq.js +0 -702
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-candlestick-KvhjbAxt.js +0 -2144
- package/dist/vue-ui-carousel-table-ArMiO0cG.js +0 -467
- package/dist/vue-ui-chestnut-DSM0U27X.js +0 -2016
- package/dist/vue-ui-chord-64akfaem.js +0 -1347
- package/dist/vue-ui-circle-pack-CaR_aNEh.js +0 -1647
- package/dist/vue-ui-cursor-DCgqYZiz.js +0 -283
- package/dist/vue-ui-dag-8uKK0Rlp.js +0 -2931
- package/dist/vue-ui-dashboard-DeccYtSY.js +0 -522
- package/dist/vue-ui-digits-BvK7bVuJ.js +0 -217
- package/dist/vue-ui-donut-8joMj08Z.js +0 -974
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-donut-evolution-DgITf95R.js +0 -1869
- package/dist/vue-ui-dumbbell-U2L4ZYhB.js +0 -1533
- package/dist/vue-ui-flow-DD20fJu_.js +0 -1229
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-galaxy-VZFZnHPv.js +0 -1097
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-geo-DeDQ6ubl.js +0 -1495
- package/dist/vue-ui-gizmo-D5oUKIsP.js +0 -238
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-hill-DONFacXR.js +0 -1747
- package/dist/vue-ui-history-plot-BMy_y9S6.js +0 -1710
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-kpi-Bol0OWs3.js +0 -104
- package/dist/vue-ui-label-cwjXaEDQ.js +0 -1451
- package/dist/vue-ui-mini-loader-kdpasmXb.js +0 -133
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-nested-donuts-ZmGGEvRk.js +0 -1515
- package/dist/vue-ui-onion-D6IKPpL-.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-CueHa1Pm.js +0 -1979
- package/dist/vue-ui-quick-chart-C8ZxX1Zw.js +0 -2775
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-rating-V_OnJN9Y.js +0 -359
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-rings-Bf9IKwDr.js +0 -1264
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-skeleton-dyXWT6JX.js +0 -2567
- package/dist/vue-ui-smiley-w6nH1I0E.js +0 -376
- package/dist/vue-ui-spark-trend-Bso9bwmY.js +0 -457
- package/dist/vue-ui-sparkbar-CL06Yt56.js +0 -401
- package/dist/vue-ui-sparkgauge-BHDM5Hbr.js +0 -268
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-sparkline-znaswFQj.js +0 -2067
- package/dist/vue-ui-sparkstackbar-BOzVoWoa.js +0 -750
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-stackline-qcLrNL09.js +0 -2829
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-D295mJIf.js +0 -1352
- package/dist/vue-ui-table-heatmap-CXeMKqKz.js +0 -363
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
- package/dist/vue-ui-timer-BULpjYiI.js +0 -451
- package/dist/vue-ui-tiremarks-B7bTeU8h.js +0 -540
- package/dist/vue-ui-treemap-DkqDz9W4.js +0 -1745
- package/dist/vue-ui-waffle-Cn7WBzqh.js +0 -1633
- package/dist/vue-ui-wheel-Cy7kBvEx.js +0 -873
- package/dist/vue-ui-word-cloud-tRqc2ZMR.js +0 -1723
- package/dist/vue-ui-world-B755-zji.js +0 -3021
- package/dist/vue-ui-xy-BiHIJ7rK.js +0 -1387
- package/dist/vue-ui-xy-DWYTZz_v.js +0 -5777
- package/dist/vue-ui-xy-canvas-DGuMC_Rf.js +0 -2151
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_hill-dnltu0L-.js +0 -368
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-DdjDL6aq.js +0 -491
- package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
- package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-CcJADijP.js +0 -614
- package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
|
@@ -1,1229 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, D as r, Et as i, Rt as a, S as o, Vt as s, X as c, at as l, b as u, et as d, i as f, n as ee, nt as p, r as m, t as h, tn as g, w as te } from "./lib-TWIH5fGr.js";
|
|
3
|
-
import { n as _, t as v } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as y } from "./useConfig-DObkR9Aa.js";
|
|
5
|
-
import { t as b } from "./usePrinter-8Y1Rju0Y.js";
|
|
6
|
-
import { n as x, t as ne } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as re } from "./useNestedProp-BxOdWM0c.js";
|
|
8
|
-
import { t as S } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ie } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as ae } from "./img-KURaWjZI.js";
|
|
11
|
-
import { n as oe } from "./Title-Bd98RysU.js";
|
|
12
|
-
import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as ce, t as le } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as ue } from "./A11yDataTable-DdRsVULz.js";
|
|
15
|
-
import { t as de } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
-
import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as pe } from "./Legend-D9FGXIbQ.js";
|
|
18
|
-
import { t as me } from "./vue_ui_flow-BewZjjKG.js";
|
|
19
|
-
import { Fragment as he, Teleport as ge, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as _e, createTextVNode as ve, createVNode as ye, defineAsyncComponent as O, guardReactiveProps as k, mergeProps as be, nextTick as xe, normalizeClass as Se, normalizeProps as A, normalizeStyle as j, onMounted as Ce, openBlock as M, ref as N, renderList as we, renderSlot as P, resolveDynamicComponent as Te, toDisplayString as F, toRefs as Ee, unref as I, watch as De, withCtx as L } from "vue";
|
|
20
|
-
//#region src/components/vue-ui-flow.vue
|
|
21
|
-
var Oe = /* @__PURE__ */ e({ default: () => Ye }), ke = ["id"], Ae = ["id"], je = {
|
|
22
|
-
key: 2,
|
|
23
|
-
ref: "noTitle",
|
|
24
|
-
class: "vue-data-ui-no-title-space",
|
|
25
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
26
|
-
}, Me = ["id"], Ne = { style: { position: "relative" } }, Pe = [
|
|
27
|
-
"xmlns",
|
|
28
|
-
"aria-describedby",
|
|
29
|
-
"viewBox"
|
|
30
|
-
], Fe = ["width", "height"], Ie = ["id"], Le = ["stop-color"], Re = ["stop-color"], ze = [
|
|
31
|
-
"d",
|
|
32
|
-
"fill",
|
|
33
|
-
"stroke",
|
|
34
|
-
"stroke-width"
|
|
35
|
-
], Be = [
|
|
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
|
-
], Ve = { key: 1 }, He = [
|
|
50
|
-
"x",
|
|
51
|
-
"y",
|
|
52
|
-
"font-size",
|
|
53
|
-
"fill"
|
|
54
|
-
], Ue = [
|
|
55
|
-
"x",
|
|
56
|
-
"y",
|
|
57
|
-
"font-size",
|
|
58
|
-
"fill"
|
|
59
|
-
], We = {
|
|
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
|
-
}, Ge = {
|
|
70
|
-
key: 5,
|
|
71
|
-
class: "vue-data-ui-watermark"
|
|
72
|
-
}, Ke = ["id"], qe = ["onClick"], Je = { style: {
|
|
73
|
-
display: "flex",
|
|
74
|
-
"align-items": "center"
|
|
75
|
-
} }, Ye = /*#__PURE__*/ se({
|
|
76
|
-
__name: "vue-ui-flow",
|
|
77
|
-
props: {
|
|
78
|
-
config: {
|
|
79
|
-
type: Object,
|
|
80
|
-
default() {
|
|
81
|
-
return {};
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
dataset: {
|
|
85
|
-
type: Array,
|
|
86
|
-
default() {
|
|
87
|
-
return [];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
emits: ["copyAlt"],
|
|
92
|
-
setup(e, { expose: se, emit: Oe }) {
|
|
93
|
-
let Ye = O(() => import("./Tooltip-DmQeI5WE.js")), Xe = O(() => import("./BaseIcon-CIK6Sqo3.js").then((e) => e.n)), Ze = O(() => import("./vue-ui-accordion-AyyZDab3.js").then((e) => e.n)), Qe = O(() => import("./DataTable-B6LDCXBz.js")), $e = O(() => import("./PenAndPaper-C1EcBgJW.js").then((e) => e.t)), et = O(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), tt = O(() => import("./PackageVersion-CslTvFsC.js").then((e) => e.t)), nt = O(() => import("./BaseDraggableDialog-BCFCiP_6.js").then((e) => e.n)), { vue_ui_flow: rt } = y(), { isThemeValid: it, warnInvalidTheme: at } = S(), R = e, ot = Oe, z = N(c()), B = N(null), st = N(0), ct = N(0), lt = N(!1), ut = N(""), dt = N(null), ft = N(null), pt = N(null), mt = N(null), ht = N(null), gt = N(!1), _t = N(null), vt = N(null), yt = N(null), bt = N(null), V = N(null), xt = N({
|
|
94
|
-
x: 0,
|
|
95
|
-
y: 0
|
|
96
|
-
}), St = N("pointer"), Ct = N(!1), wt = C(() => !!R.dataset && R.dataset.length);
|
|
97
|
-
Ce(() => {
|
|
98
|
-
gt.value = !0, Nt();
|
|
99
|
-
});
|
|
100
|
-
let H = N(!1);
|
|
101
|
-
function Tt(e) {
|
|
102
|
-
H.value = e, st.value += 1;
|
|
103
|
-
}
|
|
104
|
-
let U = N(Lt()), W = C(() => U.value.style.chart.nodes.labels), G = C(() => U.value.style.chart.nodes), Et = C(() => U.value.style.chart.links), K = C(() => U.value.style.chart);
|
|
105
|
-
_({
|
|
106
|
-
config: () => U.value,
|
|
107
|
-
dataset: () => R.dataset,
|
|
108
|
-
component: "VueUiFlow",
|
|
109
|
-
rules: [v.emptyArray, v.noHint]
|
|
110
|
-
});
|
|
111
|
-
let Dt = C(() => U.value.userOptions.useCursorPointer), Ot = C(() => g({
|
|
112
|
-
defaultConfig: {
|
|
113
|
-
userOptions: { show: !1 },
|
|
114
|
-
nodeCategories: {
|
|
115
|
-
B: "A",
|
|
116
|
-
C: "B"
|
|
117
|
-
},
|
|
118
|
-
nodeCategoryColors: {
|
|
119
|
-
A: "#CACACA",
|
|
120
|
-
B: "#AAAAAA"
|
|
121
|
-
},
|
|
122
|
-
table: { show: !1 },
|
|
123
|
-
style: { chart: {
|
|
124
|
-
backgroundColor: "#99999930",
|
|
125
|
-
legend: { backgroundColor: "transparent" },
|
|
126
|
-
nodes: {
|
|
127
|
-
labels: { show: !1 },
|
|
128
|
-
stroke: "#666666"
|
|
129
|
-
},
|
|
130
|
-
links: { stroke: "#666666" }
|
|
131
|
-
} }
|
|
132
|
-
},
|
|
133
|
-
userConfig: U.value.skeletonConfig ?? {}
|
|
134
|
-
})), { loading: kt, FINAL_DATASET: At, manualLoading: jt } = x({
|
|
135
|
-
...Ee(R),
|
|
136
|
-
FINAL_CONFIG: U,
|
|
137
|
-
prepareConfig: Lt,
|
|
138
|
-
skeletonDataset: R.config?.skeletonDataset ?? [
|
|
139
|
-
[
|
|
140
|
-
"A",
|
|
141
|
-
"B",
|
|
142
|
-
2,
|
|
143
|
-
"#CACACA"
|
|
144
|
-
],
|
|
145
|
-
[
|
|
146
|
-
"B",
|
|
147
|
-
"C",
|
|
148
|
-
1,
|
|
149
|
-
"#CACACA"
|
|
150
|
-
],
|
|
151
|
-
[
|
|
152
|
-
"C",
|
|
153
|
-
"D",
|
|
154
|
-
.5,
|
|
155
|
-
"#CACACA"
|
|
156
|
-
],
|
|
157
|
-
[
|
|
158
|
-
"E",
|
|
159
|
-
"F",
|
|
160
|
-
1,
|
|
161
|
-
"#AAAAAA"
|
|
162
|
-
],
|
|
163
|
-
[
|
|
164
|
-
"F",
|
|
165
|
-
"G",
|
|
166
|
-
.5,
|
|
167
|
-
"#AAAAAA"
|
|
168
|
-
],
|
|
169
|
-
[
|
|
170
|
-
"G",
|
|
171
|
-
"H",
|
|
172
|
-
.25,
|
|
173
|
-
"#AAAAAA"
|
|
174
|
-
]
|
|
175
|
-
],
|
|
176
|
-
skeletonConfig: g({
|
|
177
|
-
defaultConfig: U.value,
|
|
178
|
-
userConfig: Ot.value
|
|
179
|
-
})
|
|
180
|
-
}), Mt = C(() => U.value.debug);
|
|
181
|
-
function Nt() {
|
|
182
|
-
if (a(R.dataset) && (l({
|
|
183
|
-
componentName: "VueUiFlow",
|
|
184
|
-
type: "dataset",
|
|
185
|
-
debug: Mt.value
|
|
186
|
-
}), jt.value = !0), a(R.dataset) || (jt.value = U.value.loading), U.value.responsive) {
|
|
187
|
-
let e = ce(() => {
|
|
188
|
-
let { width: e, height: t } = le({
|
|
189
|
-
chart: B.value,
|
|
190
|
-
title: K.value.title.text ? ft.value : null,
|
|
191
|
-
legend: K.value.legend.show ? dt.value : null,
|
|
192
|
-
source: pt.value
|
|
193
|
-
});
|
|
194
|
-
requestAnimationFrame(() => {
|
|
195
|
-
Rt.value = e, zt.value = t;
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
mt.value && (ht.value && mt.value.unobserve(ht.value), mt.value.disconnect()), mt.value = new ResizeObserver(e), ht.value = B.value.parentNode, mt.value.observe(ht.value);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
let { userOptionsVisible: Pt, setUserOptionsVisibility: Ft, keepUserOptionState: It } = de({ config: U.value }), { svgRef: q } = fe({ config: K.value.title });
|
|
202
|
-
function Lt() {
|
|
203
|
-
let e = re({
|
|
204
|
-
userConfig: R.config,
|
|
205
|
-
defaultConfig: rt
|
|
206
|
-
}), t = e, r = e.theme;
|
|
207
|
-
if (r) {
|
|
208
|
-
if (!it.value(e)) at(e), t = e;
|
|
209
|
-
else {
|
|
210
|
-
let i = re({
|
|
211
|
-
userConfig: me[r] || R.config,
|
|
212
|
-
defaultConfig: e
|
|
213
|
-
});
|
|
214
|
-
t = {
|
|
215
|
-
...re({
|
|
216
|
-
userConfig: R.config,
|
|
217
|
-
defaultConfig: i
|
|
218
|
-
}),
|
|
219
|
-
customPalette: e.customPalette.length ? e.customPalette : n[r] || s
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
} else t = e;
|
|
223
|
-
return t.nodeCategories = R.config.nodeCategories || {}, t.nodeCategoryColors = R.config.nodeCategoryColors || {}, t;
|
|
224
|
-
}
|
|
225
|
-
let Rt = N(K.value.width), zt = N(K.value.height);
|
|
226
|
-
function Bt(e) {
|
|
227
|
-
let t = d(e);
|
|
228
|
-
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
229
|
-
}
|
|
230
|
-
let Vt = Bt(R.config);
|
|
231
|
-
De(() => R.config, (e, t) => {
|
|
232
|
-
let n = Bt(e), r = n !== Vt;
|
|
233
|
-
Vt = n;
|
|
234
|
-
let i = Lt();
|
|
235
|
-
if (!r) {
|
|
236
|
-
U.value.style.chart.tooltip = i.style.chart.tooltip, J.value.showTooltip = U.value.style.chart.tooltip.show;
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
kt.value || (U.value = i), Pt.value = !U.value.userOptions.showOnChartHover, Nt(), ct.value += 1, J.value.showTable = U.value.table.show;
|
|
240
|
-
}, { deep: !0 }), De(() => R.dataset, (e) => {
|
|
241
|
-
Array.isArray(e) && e.length > 0 && (jt.value = !1);
|
|
242
|
-
}, { deep: !0 });
|
|
243
|
-
let { isPrinting: Ht, isImaging: Ut, generatePdf: Wt, generateImage: Gt } = b({
|
|
244
|
-
elementId: `flow_${z.value}`,
|
|
245
|
-
fileName: K.value.title.text || "vue-ui-flow",
|
|
246
|
-
options: U.value.userOptions.print
|
|
247
|
-
}), Kt = C(() => U.value.userOptions.show && !K.value.title.text), qt = C(() => te(U.value.customPalette)), Jt = C(() => G.value.width), J = N({
|
|
248
|
-
showTable: U.value.table.show,
|
|
249
|
-
showTooltip: K.value.tooltip.show
|
|
250
|
-
});
|
|
251
|
-
De(U, () => {
|
|
252
|
-
J.value = {
|
|
253
|
-
showTable: U.value.table.show,
|
|
254
|
-
showTooltip: K.value.tooltip.show
|
|
255
|
-
};
|
|
256
|
-
}, { immediate: !0 });
|
|
257
|
-
let Yt = C(() => !At.value || !At.value.length ? [] : At.value.map((e, t) => [
|
|
258
|
-
e[0],
|
|
259
|
-
e[1],
|
|
260
|
-
u(e[2]),
|
|
261
|
-
e[3] ? o(e[3]) : qt.value[t] || qt.value[t % qt.value.length] || s[t] || s[t % s.length]
|
|
262
|
-
]));
|
|
263
|
-
function Xt(e) {
|
|
264
|
-
let t = {}, n = {};
|
|
265
|
-
function r(e, r) {
|
|
266
|
-
t[e] || (t[e] = {
|
|
267
|
-
level: null,
|
|
268
|
-
inflow: 0,
|
|
269
|
-
outflow: 0,
|
|
270
|
-
children: [],
|
|
271
|
-
color: null,
|
|
272
|
-
uid: c()
|
|
273
|
-
}), t[e].level === null && (t[e].level = r), n[r] || (n[r] = []), n[r].includes(e) || n[r].push(e);
|
|
274
|
-
}
|
|
275
|
-
e.forEach(([e, n, i]) => {
|
|
276
|
-
let a = t[e]?.level ?? 0, o = a + 1;
|
|
277
|
-
r(e, a), r(n, o), t[e].children.push({
|
|
278
|
-
target: n,
|
|
279
|
-
value: i
|
|
280
|
-
}), t[e].outflow += i, t[n].inflow += i;
|
|
281
|
-
});
|
|
282
|
-
let i = new Set(e.map(([e]) => e)), a = new Set(e.map(([, e]) => e)), o = Array.from(i).filter((e) => !a.has(e)), l = {};
|
|
283
|
-
o.forEach((e, t) => {
|
|
284
|
-
l[e] = qt.value[t] || s[t % s.length];
|
|
285
|
-
});
|
|
286
|
-
let d = {};
|
|
287
|
-
e.forEach(([e, t, n, r]) => {
|
|
288
|
-
r && (d[e] = r, d[t] = r);
|
|
289
|
-
}), Object.keys(t).forEach((e, n) => {
|
|
290
|
-
let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
291
|
-
t[e].color = d[e] || i || (o.includes(e) ? l[e] : null) || s[n % s.length];
|
|
292
|
-
}), Object.keys(t).forEach((e) => {
|
|
293
|
-
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
294
|
-
});
|
|
295
|
-
let f = $t.value, ee = en.value.width, p = en.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), h = m.length || 1, g = h > 1 ? ee / (h - 1) : 0, te = Number(Jt.value), _ = Number(G.value.gapPx ?? G.value.gap ?? 8), v = Number(G.value.minHeight || 0);
|
|
296
|
-
function y(e) {
|
|
297
|
-
let r = n[e], i = r.length;
|
|
298
|
-
if (!i) return Infinity;
|
|
299
|
-
let a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), c = 0, l = r.map((e) => t[e].value || 0), u = l.reduce((e, t) => e + t, 0);
|
|
300
|
-
for (let e = 0; e < 12; e += 1) {
|
|
301
|
-
let e = u > 0 ? (o - c) / u : 0, t = [];
|
|
302
|
-
for (let n = 0; n < l.length; n += 1) {
|
|
303
|
-
let r = l[n];
|
|
304
|
-
r < 0 || r * e < s && t.push(n);
|
|
305
|
-
}
|
|
306
|
-
if (!t.length) return Math.max(0, e);
|
|
307
|
-
for (let e of t) c += s, u -= l[e], l[e] = -1;
|
|
308
|
-
if (u <= 0) return 0;
|
|
309
|
-
}
|
|
310
|
-
return u > 0 ? Math.max(0, (o - c) / u) : 0;
|
|
311
|
-
}
|
|
312
|
-
let b = m.map(y), x = b.length ? Math.min(...b) : 0, ne = {};
|
|
313
|
-
m.forEach((e) => {
|
|
314
|
-
let r = n[e], i = r.length, a = Math.max(0, (i - 1) * _), o = Math.max(0, p - a), s = Math.min(v, i ? o / i : 0), l = r.map((e) => Math.max(s, (t[e].value || 0) * x)), u = l.reduce((e, t) => e + t, 0) + a, d = Math.max(0, (p - u) / 2);
|
|
315
|
-
r.forEach((n, r) => {
|
|
316
|
-
let a = l[r], o = f.left + e * g, s = d;
|
|
317
|
-
ne[n] = {
|
|
318
|
-
x: o,
|
|
319
|
-
y: s,
|
|
320
|
-
absoluteY: s,
|
|
321
|
-
height: a,
|
|
322
|
-
i: r,
|
|
323
|
-
color: t[n].color,
|
|
324
|
-
value: t[n].value,
|
|
325
|
-
id: c()
|
|
326
|
-
}, d += a, r < i - 1 && (d += _);
|
|
327
|
-
});
|
|
328
|
-
});
|
|
329
|
-
let re = [], S = f.top, ie = {}, ae = {};
|
|
330
|
-
Object.keys(t).forEach((e) => {
|
|
331
|
-
ie[e] = ne[e]?.y ?? 0, ae[e] = 0;
|
|
332
|
-
});
|
|
333
|
-
let oe = !!Et.value.smooth, se = .5;
|
|
334
|
-
return m.forEach((e) => {
|
|
335
|
-
n[e].forEach((e) => {
|
|
336
|
-
let n = t[e], r = ne[e];
|
|
337
|
-
if (!n.children || !n.children.length) return;
|
|
338
|
-
let i = r.y;
|
|
339
|
-
n.children.forEach(({ target: a, value: o }) => {
|
|
340
|
-
let s = ne[a], l = t[a], d = n.outflow > 0 ? o / n.outflow : 0, f = l.inflow > 0 ? o / l.inflow : 0, ee = u(i + S), p = u(i + d * r.height + S), m = ie[a], h = m + f * s.height;
|
|
341
|
-
ae[a] += o;
|
|
342
|
-
let g = l.inflow > 0 && ae[a] >= l.inflow - 1e-6, _ = s.y + s.height;
|
|
343
|
-
(g || h > _ - .25) && (h = _);
|
|
344
|
-
let v = u(m + S), y = u(h + S), b = u(r.x + te), x = u(s.x), ce;
|
|
345
|
-
if (!oe || x <= b) ce = `M ${b} ${ee} L ${b} ${p} L ${x} ${y} L ${x} ${v} Z`;
|
|
346
|
-
else {
|
|
347
|
-
let e = x - b, t = u(b + e * se), n = u(x - e * se), r = ee, i = v, a = p, o = y;
|
|
348
|
-
ce = `M ${b} ${r} C ${t} ${r}, ${n} ${i}, ${x} ${i} L ${x} ${o} C ${n} ${o}, ${t} ${a}, ${b} ${a} Z`;
|
|
349
|
-
}
|
|
350
|
-
re.push({
|
|
351
|
-
id: c(),
|
|
352
|
-
source: e,
|
|
353
|
-
target: a,
|
|
354
|
-
path: ce,
|
|
355
|
-
value: o,
|
|
356
|
-
sourceColor: n.color,
|
|
357
|
-
targetColor: t[a].color
|
|
358
|
-
}), i = p - S, ie[a] = h;
|
|
359
|
-
});
|
|
360
|
-
});
|
|
361
|
-
}), {
|
|
362
|
-
nodeCoordinates: ne,
|
|
363
|
-
links: re
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
let Y = C(() => {
|
|
367
|
-
let e = Xt(At.value);
|
|
368
|
-
return {
|
|
369
|
-
nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
|
|
370
|
-
...e.nodeCoordinates[t],
|
|
371
|
-
name: t
|
|
372
|
-
})),
|
|
373
|
-
links: e.links
|
|
374
|
-
};
|
|
375
|
-
}), Zt = C(() => Rt.value), Qt = C(() => zt.value), $t = C(() => K.value.padding), en = C(() => ({
|
|
376
|
-
width: Math.max(0, Zt.value - 40 - $t.value.right - $t.value.left),
|
|
377
|
-
height: Math.max(0, Qt.value - $t.value.top - $t.value.bottom)
|
|
378
|
-
})), tn = C(() => ({
|
|
379
|
-
width: Zt.value,
|
|
380
|
-
height: Qt.value
|
|
381
|
-
}));
|
|
382
|
-
function nn(e) {
|
|
383
|
-
let t = {}, n = {}, r = /* @__PURE__ */ new Set();
|
|
384
|
-
return Yt.value.forEach(([e, r, i]) => {
|
|
385
|
-
t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
|
|
386
|
-
}), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
|
|
387
|
-
}
|
|
388
|
-
let X = N(null), Z = N(null), rn = N(null), an = N(!1), on = N(null);
|
|
389
|
-
function sn() {
|
|
390
|
-
on.value = null, X.value = null, Z.value = null, lt.value = !1, bt.value = null, V.value = null;
|
|
391
|
-
}
|
|
392
|
-
function cn(e) {
|
|
393
|
-
if (!q.value || !e) return;
|
|
394
|
-
let t = q.value.querySelector(`[data-a11y-node-id="${e}"]`);
|
|
395
|
-
if (!t) return;
|
|
396
|
-
let n = t.getBoundingClientRect();
|
|
397
|
-
xt.value = {
|
|
398
|
-
x: n.left + n.width / 2,
|
|
399
|
-
y: n.top + n.height / 2
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
function ln(e, n, r = "pointer", a = null) {
|
|
403
|
-
$.value = [], X.value = nn(e.name), Z.value = e.name, on.value = e.id, St.value = r, bt.value = a, V.value = e.id;
|
|
404
|
-
let o = e.name, s = Yt.value, c = 0, l = 0, u = [], d = [], ee = new Set(s.map(([e]) => e)), p = new Set(s.map(([, e]) => e)), m = Array.from(ee).filter((e) => !p.has(e)), h = s.filter(([e]) => m.includes(e)).reduce((e, [t, n, r]) => e + r, 0), g = {};
|
|
405
|
-
Y.value.nodes.forEach((e) => {
|
|
406
|
-
g[e.name] = e.color;
|
|
407
|
-
}), s.forEach(([e, t, n]) => {
|
|
408
|
-
t === o && (c += n, u.push({
|
|
409
|
-
source: e,
|
|
410
|
-
value: n,
|
|
411
|
-
color: g[e]
|
|
412
|
-
})), e === o && (l += n, d.push({
|
|
413
|
-
target: t,
|
|
414
|
-
value: n,
|
|
415
|
-
color: g[t]
|
|
416
|
-
}));
|
|
417
|
-
});
|
|
418
|
-
let te = h > 0 ? Math.max(c, l) / h * 100 : 0, _ = {
|
|
419
|
-
name: o,
|
|
420
|
-
inflow: c,
|
|
421
|
-
outflow: l,
|
|
422
|
-
from: u,
|
|
423
|
-
to: d,
|
|
424
|
-
percentOfTotal: te,
|
|
425
|
-
color: g[o] || "#000000"
|
|
426
|
-
};
|
|
427
|
-
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
428
|
-
datapoint: _,
|
|
429
|
-
seriesIndex: n
|
|
430
|
-
}), rn.value = {
|
|
431
|
-
datapoint: _,
|
|
432
|
-
config: U.value,
|
|
433
|
-
seriesIndex: n,
|
|
434
|
-
series: Y.value
|
|
435
|
-
}, lt.value = !0;
|
|
436
|
-
let v = "", y = K.value.tooltip.customFormat;
|
|
437
|
-
if (an.value = !1, i(y)) try {
|
|
438
|
-
let e = y({
|
|
439
|
-
datapoint: _,
|
|
440
|
-
series: Y.value,
|
|
441
|
-
config: U.value
|
|
442
|
-
});
|
|
443
|
-
typeof e == "string" && (ut.value = e, an.value = !0);
|
|
444
|
-
} catch {
|
|
445
|
-
console.warn("Custom format cannot be applied.");
|
|
446
|
-
}
|
|
447
|
-
if (!an.value) {
|
|
448
|
-
let e = K.value.tooltip.showPercentage ? `<div>${t({
|
|
449
|
-
p: K.value.tooltip.translations.percentOfTotal,
|
|
450
|
-
v: _.percentOfTotal,
|
|
451
|
-
s: "%",
|
|
452
|
-
r: K.value.tooltip.roundingPercentage
|
|
453
|
-
})}</div>` : "";
|
|
454
|
-
v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${K.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${_.color}">⏹</span>${_.name}${e}</div>`, _.from.length && (v += `<div>${K.value.tooltip.translations.from}</div>`, _.from.forEach((e) => {
|
|
455
|
-
v += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${f(W.value.formatter, e.value, t({
|
|
456
|
-
p: W.value.prefix,
|
|
457
|
-
v: e.value,
|
|
458
|
-
s: W.value.suffix,
|
|
459
|
-
r: W.value.rounding
|
|
460
|
-
}))}</div>`;
|
|
461
|
-
})), _.to.length && (v += `<div style="margin-top:6px;">${K.value.tooltip.translations.to}</div>`, _.to.forEach((e) => {
|
|
462
|
-
v += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${f(W.value.formatter, e.value, t({
|
|
463
|
-
p: W.value.prefix,
|
|
464
|
-
v: e.value,
|
|
465
|
-
s: W.value.suffix,
|
|
466
|
-
r: W.value.rounding
|
|
467
|
-
}))}</div>`;
|
|
468
|
-
})), ut.value = v;
|
|
469
|
-
}
|
|
470
|
-
r === "keyboard" && xe(() => {
|
|
471
|
-
cn(e.id);
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
function un(e) {
|
|
475
|
-
let t = rn.value;
|
|
476
|
-
U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
477
|
-
datapoint: t,
|
|
478
|
-
seriesIndex: e
|
|
479
|
-
}), !(St.value === "keyboard" && V.value) && (on.value = null, X.value = null, Z.value = null, lt.value = !1);
|
|
480
|
-
}
|
|
481
|
-
function dn(e) {
|
|
482
|
-
let t = rn.value;
|
|
483
|
-
U.value.events.datapointClick && U.value.events.datapointClick({
|
|
484
|
-
datapoint: t,
|
|
485
|
-
seriesIndex: e
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
let fn = C(() => Y.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
|
|
489
|
-
source: e,
|
|
490
|
-
target: t,
|
|
491
|
-
sourceColor: n,
|
|
492
|
-
targetColor: r,
|
|
493
|
-
value: i
|
|
494
|
-
})));
|
|
495
|
-
function pn(e = null) {
|
|
496
|
-
xe(() => {
|
|
497
|
-
let t = fn.value.map((e, t) => [
|
|
498
|
-
[e.source],
|
|
499
|
-
[e.target],
|
|
500
|
-
[e.value]
|
|
501
|
-
]), n = [
|
|
502
|
-
[K.value.title.text],
|
|
503
|
-
[K.value.title.subtitle.text],
|
|
504
|
-
[
|
|
505
|
-
[U.value.table.columnNames.source],
|
|
506
|
-
[U.value.table.columnNames.target],
|
|
507
|
-
[U.value.table.columnNames.value]
|
|
508
|
-
]
|
|
509
|
-
].concat(t), i = r(n);
|
|
510
|
-
e ? e(i) : p({
|
|
511
|
-
csvContent: i,
|
|
512
|
-
title: K.value.title.text || "vue-ui-flow"
|
|
513
|
-
});
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
let mn = C(() => {
|
|
517
|
-
let e = [
|
|
518
|
-
U.value.table.columnNames.source,
|
|
519
|
-
U.value.table.columnNames.target,
|
|
520
|
-
U.value.table.columnNames.value
|
|
521
|
-
], n = fn.value.map((e, n) => [
|
|
522
|
-
{
|
|
523
|
-
color: e.sourceColor,
|
|
524
|
-
name: e.source,
|
|
525
|
-
shape: "square"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
color: e.targetColor,
|
|
529
|
-
name: e.target,
|
|
530
|
-
shape: "square"
|
|
531
|
-
},
|
|
532
|
-
t({
|
|
533
|
-
p: W.value.prefix,
|
|
534
|
-
v: e.value,
|
|
535
|
-
s: W.value.suffix,
|
|
536
|
-
r: W.value.rounding
|
|
537
|
-
})
|
|
538
|
-
]), r = {
|
|
539
|
-
th: {
|
|
540
|
-
backgroundColor: U.value.table.th.backgroundColor,
|
|
541
|
-
color: U.value.table.th.color,
|
|
542
|
-
outline: U.value.table.th.outline
|
|
543
|
-
},
|
|
544
|
-
td: {
|
|
545
|
-
backgroundColor: U.value.table.td.backgroundColor,
|
|
546
|
-
color: U.value.table.td.color,
|
|
547
|
-
outline: U.value.table.td.outline
|
|
548
|
-
},
|
|
549
|
-
breakpoint: U.value.table.responsiveBreakpoint
|
|
550
|
-
};
|
|
551
|
-
return {
|
|
552
|
-
colNames: [
|
|
553
|
-
U.value.table.columnNames.source,
|
|
554
|
-
U.value.table.columnNames.target,
|
|
555
|
-
U.value.table.columnNames.value
|
|
556
|
-
],
|
|
557
|
-
head: e,
|
|
558
|
-
body: n,
|
|
559
|
-
config: r
|
|
560
|
-
};
|
|
561
|
-
}), hn = C(() => ({
|
|
562
|
-
headers: mn.value?.colNames ?? [],
|
|
563
|
-
rows: mn.value?.body ?? []
|
|
564
|
-
})), gn = C(() => [...Y.value.nodes].map((e, t) => ({
|
|
565
|
-
...e,
|
|
566
|
-
index: t,
|
|
567
|
-
centerX: e.x + Jt.value / 2,
|
|
568
|
-
centerY: u(e.absoluteY) + K.value.padding.top + e.height / 2
|
|
569
|
-
})).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = C(() => {
|
|
570
|
-
let e = [];
|
|
571
|
-
return gn.value.forEach((t) => {
|
|
572
|
-
let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
|
|
573
|
-
n ? n.nodes.push(t) : e.push({
|
|
574
|
-
x: t.x,
|
|
575
|
-
nodes: [t]
|
|
576
|
-
});
|
|
577
|
-
}), e.forEach((e) => {
|
|
578
|
-
e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
|
|
579
|
-
}), e.sort((e, t) => e.x - t.x);
|
|
580
|
-
}), _n = C(() => {
|
|
581
|
-
let e = /* @__PURE__ */ new Map();
|
|
582
|
-
return gn.value.forEach((t, n) => {
|
|
583
|
-
e.set(t.id, n);
|
|
584
|
-
}), e;
|
|
585
|
-
});
|
|
586
|
-
function vn() {
|
|
587
|
-
return Y.value;
|
|
588
|
-
}
|
|
589
|
-
function yn() {
|
|
590
|
-
J.value.showTable = !J.value.showTable;
|
|
591
|
-
}
|
|
592
|
-
let bn = N(!1);
|
|
593
|
-
function xn() {
|
|
594
|
-
bn.value = !bn.value;
|
|
595
|
-
}
|
|
596
|
-
function Sn() {
|
|
597
|
-
J.value.showTooltip = !J.value.showTooltip;
|
|
598
|
-
}
|
|
599
|
-
let Cn = C(() => {
|
|
600
|
-
let e = new Set(Y.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
601
|
-
return Array.from(e).map((e) => ({
|
|
602
|
-
name: e,
|
|
603
|
-
color: U.value.nodeCategoryColors[e] || s[0],
|
|
604
|
-
shape: "square",
|
|
605
|
-
count: Y.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
606
|
-
})).map((e, t) => {
|
|
607
|
-
let n = $.value.includes(t);
|
|
608
|
-
return {
|
|
609
|
-
...e,
|
|
610
|
-
segregate: () => Tn({
|
|
611
|
-
legend: e,
|
|
612
|
-
i: t
|
|
613
|
-
}),
|
|
614
|
-
isSegregated: n,
|
|
615
|
-
opacity: $.value.length ? n ? 1 : .5 : 1,
|
|
616
|
-
display: `${e.name} (${e.count})`
|
|
617
|
-
};
|
|
618
|
-
});
|
|
619
|
-
}), wn = C(() => Cn.value.filter((e) => e.name !== "__uncategorized__")), $ = N([]);
|
|
620
|
-
function Tn({ legend: e, i: t }) {
|
|
621
|
-
let n = e.name;
|
|
622
|
-
if (X.value?.every((e) => U.value.nodeCategories[e] === n)) {
|
|
623
|
-
X.value = null, Z.value = null, $.value = [];
|
|
624
|
-
return;
|
|
625
|
-
}
|
|
626
|
-
$.value = [t], X.value = Y.value.nodes.filter((e) => U.value.nodeCategories[e.name] === n).map((e) => e.name), Z.value = null;
|
|
627
|
-
}
|
|
628
|
-
let En = C(() => ({
|
|
629
|
-
cy: "flow-legend",
|
|
630
|
-
backgroundColor: K.value.legend.backgroundColor,
|
|
631
|
-
color: K.value.legend.color,
|
|
632
|
-
fontSize: K.value.legend.fontSize,
|
|
633
|
-
paddingBottom: K.value.legend.paddingBottom,
|
|
634
|
-
fontWeight: K.value.legend.bold ? "bold" : "normal"
|
|
635
|
-
}));
|
|
636
|
-
async function Dn({ scale: e = 2 } = {}) {
|
|
637
|
-
if (!B.value) return;
|
|
638
|
-
let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ae({
|
|
639
|
-
domElement: B.value,
|
|
640
|
-
base64: !0,
|
|
641
|
-
img: !0,
|
|
642
|
-
scale: e
|
|
643
|
-
});
|
|
644
|
-
return {
|
|
645
|
-
imageUri: i,
|
|
646
|
-
base64: a,
|
|
647
|
-
title: K.value.title.text,
|
|
648
|
-
width: t,
|
|
649
|
-
height: n,
|
|
650
|
-
aspectRatio: r
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
let On = C(() => {
|
|
654
|
-
let e = U.value.table.useDialog && !U.value.table.show, t = J.value.showTable;
|
|
655
|
-
return {
|
|
656
|
-
component: e ? nt : Ze,
|
|
657
|
-
title: `${K.value.title.text}${K.value.title.subtitle.text ? `: ${K.value.title.subtitle.text}` : ""}`,
|
|
658
|
-
props: e ? {
|
|
659
|
-
backgroundColor: U.value.table.th.backgroundColor,
|
|
660
|
-
color: U.value.table.th.color,
|
|
661
|
-
headerColor: U.value.table.th.color,
|
|
662
|
-
headerBg: U.value.table.th.backgroundColor,
|
|
663
|
-
isFullscreen: H.value,
|
|
664
|
-
fullscreenParent: B.value,
|
|
665
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
666
|
-
isCursorPointer: Dt.value
|
|
667
|
-
} : {
|
|
668
|
-
hideDetails: !0,
|
|
669
|
-
config: {
|
|
670
|
-
open: t,
|
|
671
|
-
maxHeight: 1e4,
|
|
672
|
-
body: {
|
|
673
|
-
backgroundColor: K.value.backgroundColor,
|
|
674
|
-
color: K.value.color
|
|
675
|
-
},
|
|
676
|
-
head: {
|
|
677
|
-
backgroundColor: K.value.backgroundColor,
|
|
678
|
-
color: K.value.color
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
|
-
});
|
|
684
|
-
De(() => J.value.showTable, (e) => {
|
|
685
|
-
U.value.table.show || (e && U.value.table.useDialog && _t.value ? _t.value.open() : "close" in _t.value && _t.value.close());
|
|
686
|
-
});
|
|
687
|
-
function kn() {
|
|
688
|
-
J.value.showTable = !1, vt.value && vt.value.setTableIconState(!1);
|
|
689
|
-
}
|
|
690
|
-
let An = C(() => wn.value.map((e) => ({
|
|
691
|
-
...e,
|
|
692
|
-
name: e.display
|
|
693
|
-
}))), jn = C(() => K.value.backgroundColor), Mn = C(() => K.value.legend), Nn = C(() => K.value.title), { isCallbackImaging: Pn, isCallbackSvg: Fn, generateSvg: In, onGenerateImage: Ln } = ie({
|
|
694
|
-
svg: q,
|
|
695
|
-
title: Nn,
|
|
696
|
-
legend: Mn,
|
|
697
|
-
legendItems: An,
|
|
698
|
-
backgroundColor: jn,
|
|
699
|
-
getSvgCallback: () => U.value.userOptions.callbacks.svg,
|
|
700
|
-
generateImage: Gt
|
|
701
|
-
});
|
|
702
|
-
async function Rn() {
|
|
703
|
-
if (ot("copyAlt", {
|
|
704
|
-
config: U.value,
|
|
705
|
-
dataset: Y.value
|
|
706
|
-
}), !U.value.userOptions.callbacks.altCopy) {
|
|
707
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
708
|
-
return;
|
|
709
|
-
}
|
|
710
|
-
await Promise.resolve(U.value.userOptions.callbacks.altCopy({
|
|
711
|
-
config: U.value,
|
|
712
|
-
dataset: Y.value
|
|
713
|
-
}));
|
|
714
|
-
}
|
|
715
|
-
function zn(e) {
|
|
716
|
-
return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
|
|
717
|
-
}
|
|
718
|
-
function Bn(e, t) {
|
|
719
|
-
let n = Q.value[e];
|
|
720
|
-
return n ? n.nodes.findIndex((e) => e.id === t) : -1;
|
|
721
|
-
}
|
|
722
|
-
function Vn(e, t) {
|
|
723
|
-
let n = Q.value[e];
|
|
724
|
-
if (!n || !n.nodes.length) return null;
|
|
725
|
-
let r = n.nodes[0], i = Math.abs(r.centerY - t);
|
|
726
|
-
for (let e = 1; e < n.nodes.length; e += 1) {
|
|
727
|
-
let a = n.nodes[e], o = Math.abs(a.centerY - t);
|
|
728
|
-
o < i && (r = a, i = o);
|
|
729
|
-
}
|
|
730
|
-
return r;
|
|
731
|
-
}
|
|
732
|
-
function Hn() {
|
|
733
|
-
bt.value = null, V.value = null, Ct.value = !0;
|
|
734
|
-
}
|
|
735
|
-
function Un() {
|
|
736
|
-
sn(), Ct.value = !1;
|
|
737
|
-
}
|
|
738
|
-
function Wn(e) {
|
|
739
|
-
if (!q.value || bn.value || document.activeElement !== q.value || !gn.value.length) return;
|
|
740
|
-
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";
|
|
741
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
742
|
-
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
743
|
-
sn();
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
if (a) {
|
|
747
|
-
if (bt.value === null) return;
|
|
748
|
-
dn(bt.value);
|
|
749
|
-
return;
|
|
750
|
-
}
|
|
751
|
-
if (V.value === null) {
|
|
752
|
-
let e = Q.value[0]?.nodes?.[0];
|
|
753
|
-
if (!e) return;
|
|
754
|
-
let t = _n.value.get(e.id) ?? 0;
|
|
755
|
-
ln(e, t, "keyboard", t);
|
|
756
|
-
return;
|
|
757
|
-
}
|
|
758
|
-
let s = _n.value.get(V.value);
|
|
759
|
-
if (s === void 0) return;
|
|
760
|
-
let c = gn.value[s];
|
|
761
|
-
if (!c) return;
|
|
762
|
-
let l = zn(c.id);
|
|
763
|
-
if (l < 0) return;
|
|
764
|
-
let u = null;
|
|
765
|
-
if (r || i) {
|
|
766
|
-
let e = Bn(l, c.id);
|
|
767
|
-
if (e < 0) return;
|
|
768
|
-
let t = Q.value[l];
|
|
769
|
-
if (!t?.nodes?.length) return;
|
|
770
|
-
let n = e + (i ? 1 : -1);
|
|
771
|
-
n < 0 && (n = t.nodes.length - 1), n >= t.nodes.length && (n = 0), u = t.nodes[n];
|
|
772
|
-
}
|
|
773
|
-
if (t || n) {
|
|
774
|
-
let e = l + (n ? 1 : -1);
|
|
775
|
-
e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Vn(e, c.centerY);
|
|
776
|
-
}
|
|
777
|
-
if (!u) return;
|
|
778
|
-
let d = _n.value.get(u.id);
|
|
779
|
-
d !== void 0 && ln(u, d, "keyboard", d);
|
|
780
|
-
}
|
|
781
|
-
return se({
|
|
782
|
-
getData: vn,
|
|
783
|
-
getImage: Dn,
|
|
784
|
-
generateCsv: pn,
|
|
785
|
-
generateImage: Gt,
|
|
786
|
-
generateSvg: In,
|
|
787
|
-
generatePdf: Wt,
|
|
788
|
-
toggleTable: yn,
|
|
789
|
-
toggleAnnotator: xn,
|
|
790
|
-
toggleTooltip: Sn,
|
|
791
|
-
drillCategory: Tn,
|
|
792
|
-
unselectNode: un,
|
|
793
|
-
toggleFullscreen: Tt,
|
|
794
|
-
copyAlt: Rn
|
|
795
|
-
}), (e, n) => (M(), E("div", {
|
|
796
|
-
ref_key: "flowChart",
|
|
797
|
-
ref: B,
|
|
798
|
-
class: Se(`vue-data-ui-component vue-ui-flow ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
799
|
-
style: j(`font-family:${U.value.style.fontFamily};width:100%; text-align:center;background:${K.value.backgroundColor}`),
|
|
800
|
-
id: `flow_${z.value}`,
|
|
801
|
-
onMouseenter: n[2] ||= () => I(Ft)(!0),
|
|
802
|
-
onMouseleave: n[3] ||= () => {
|
|
803
|
-
I(Ft)(!1), Ct.value || sn();
|
|
804
|
-
}
|
|
805
|
-
}, [
|
|
806
|
-
D("div", {
|
|
807
|
-
id: `chart-instructions-${z.value}`,
|
|
808
|
-
class: "sr-only"
|
|
809
|
-
}, [D("p", null, F(U.value.a11y.translations.keyboardNavigation), 1)], 8, Ae),
|
|
810
|
-
hn.value?.rows?.length ? (M(), w(ue, {
|
|
811
|
-
key: 0,
|
|
812
|
-
uid: z.value,
|
|
813
|
-
head: hn.value.headers,
|
|
814
|
-
body: hn.value.rows,
|
|
815
|
-
notice: U.value.a11y.translations.tableAvailable,
|
|
816
|
-
caption: U.value.a11y.translations.tableCaption
|
|
817
|
-
}, null, 8, [
|
|
818
|
-
"uid",
|
|
819
|
-
"head",
|
|
820
|
-
"body",
|
|
821
|
-
"notice",
|
|
822
|
-
"caption"
|
|
823
|
-
])) : T("", !0),
|
|
824
|
-
U.value.userOptions.buttons.annotator ? (M(), w(I($e), {
|
|
825
|
-
key: 1,
|
|
826
|
-
svgRef: I(q),
|
|
827
|
-
backgroundColor: K.value.backgroundColor,
|
|
828
|
-
color: K.value.color,
|
|
829
|
-
active: bn.value,
|
|
830
|
-
palette: U.value.userOptions.annotatorPalette,
|
|
831
|
-
isCursorPointer: Dt.value,
|
|
832
|
-
onClose: xn
|
|
833
|
-
}, {
|
|
834
|
-
"annotator-action-close": L(() => [P(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
835
|
-
"annotator-action-color": L(({ color: t }) => [P(e.$slots, "annotator-action-color", A(k({ color: t })), void 0, !0)]),
|
|
836
|
-
"annotator-action-draw": L(({ mode: t }) => [P(e.$slots, "annotator-action-draw", A(k({ mode: t })), void 0, !0)]),
|
|
837
|
-
"annotator-action-undo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-undo", A(k({ disabled: t })), void 0, !0)]),
|
|
838
|
-
"annotator-action-redo": L(({ disabled: t }) => [P(e.$slots, "annotator-action-redo", A(k({ disabled: t })), void 0, !0)]),
|
|
839
|
-
"annotator-action-delete": L(({ disabled: t }) => [P(e.$slots, "annotator-action-delete", A(k({ disabled: t })), void 0, !0)]),
|
|
840
|
-
_: 3
|
|
841
|
-
}, 8, [
|
|
842
|
-
"svgRef",
|
|
843
|
-
"backgroundColor",
|
|
844
|
-
"color",
|
|
845
|
-
"active",
|
|
846
|
-
"palette",
|
|
847
|
-
"isCursorPointer"
|
|
848
|
-
])) : T("", !0),
|
|
849
|
-
Kt.value ? (M(), E("div", je, null, 512)) : T("", !0),
|
|
850
|
-
K.value.title.text ? (M(), E("div", {
|
|
851
|
-
key: 3,
|
|
852
|
-
ref_key: "chartTitle",
|
|
853
|
-
ref: ft,
|
|
854
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
855
|
-
}, [(M(), w(oe, {
|
|
856
|
-
key: `title_${ct.value}`,
|
|
857
|
-
config: {
|
|
858
|
-
title: {
|
|
859
|
-
cy: "flow-title",
|
|
860
|
-
...K.value.title
|
|
861
|
-
},
|
|
862
|
-
subtitle: {
|
|
863
|
-
cy: "flow-subtitle",
|
|
864
|
-
...K.value.title.subtitle
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}, null, 8, ["config"]))], 512)) : T("", !0),
|
|
868
|
-
D("div", { id: `legend-top-${z.value}` }, null, 8, Me),
|
|
869
|
-
U.value.userOptions.show && wt.value && (I(It) || I(Pt)) ? (M(), w(I(et), {
|
|
870
|
-
ref_key: "userOptionsRef",
|
|
871
|
-
ref: vt,
|
|
872
|
-
key: `user_option_${st.value}`,
|
|
873
|
-
backgroundColor: K.value.backgroundColor,
|
|
874
|
-
color: K.value.color,
|
|
875
|
-
isPrinting: I(Ht),
|
|
876
|
-
isImaging: I(Ut),
|
|
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: bn.value,
|
|
893
|
-
hasTooltip: K.value.tooltip.show && U.value.userOptions.buttons.tooltip,
|
|
894
|
-
isTooltip: J.value.showTooltip,
|
|
895
|
-
tableDialog: U.value.table.useDialog,
|
|
896
|
-
isCursorPointer: Dt.value,
|
|
897
|
-
onToggleTooltip: Sn,
|
|
898
|
-
onToggleFullscreen: Tt,
|
|
899
|
-
onGeneratePdf: I(Wt),
|
|
900
|
-
onGenerateCsv: pn,
|
|
901
|
-
onGenerateImage: I(Ln),
|
|
902
|
-
onGenerateSvg: I(In),
|
|
903
|
-
onToggleTable: yn,
|
|
904
|
-
onToggleAnnotator: xn,
|
|
905
|
-
onCopyAlt: Rn,
|
|
906
|
-
style: j({ visibility: I(It) ? I(Pt) ? "visible" : "hidden" : "visible" })
|
|
907
|
-
}, _e({ _: 2 }, [
|
|
908
|
-
e.$slots.menuIcon ? {
|
|
909
|
-
name: "menuIcon",
|
|
910
|
-
fn: L(({ isOpen: t, color: n }) => [P(e.$slots, "menuIcon", A(k({
|
|
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(() => [P(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
919
|
-
key: "1"
|
|
920
|
-
} : void 0,
|
|
921
|
-
e.$slots.optionPdf ? {
|
|
922
|
-
name: "optionPdf",
|
|
923
|
-
fn: L(() => [P(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
924
|
-
key: "2"
|
|
925
|
-
} : void 0,
|
|
926
|
-
e.$slots.optionCsv ? {
|
|
927
|
-
name: "optionCsv",
|
|
928
|
-
fn: L(() => [P(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
929
|
-
key: "3"
|
|
930
|
-
} : void 0,
|
|
931
|
-
e.$slots.optionImg ? {
|
|
932
|
-
name: "optionImg",
|
|
933
|
-
fn: L(() => [P(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
934
|
-
key: "4"
|
|
935
|
-
} : void 0,
|
|
936
|
-
e.$slots.optionSvg ? {
|
|
937
|
-
name: "optionSvg",
|
|
938
|
-
fn: L(() => [P(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
939
|
-
key: "5"
|
|
940
|
-
} : void 0,
|
|
941
|
-
e.$slots.optionTable ? {
|
|
942
|
-
name: "optionTable",
|
|
943
|
-
fn: L(() => [P(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 }) => [P(e.$slots, "optionFullscreen", A(k({
|
|
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 }) => [P(e.$slots, "optionAnnotator", A(k({
|
|
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 }) => [P(e.$slots, "optionAltCopy", A(k({ altCopy: t })), void 0, !0)]),
|
|
965
|
-
key: "9"
|
|
966
|
-
} : void 0,
|
|
967
|
-
e.$slots["custom-menu-before"] ? {
|
|
968
|
-
name: "custom-menu-before",
|
|
969
|
-
fn: L(() => [P(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
970
|
-
key: "10"
|
|
971
|
-
} : void 0,
|
|
972
|
-
e.$slots["custom-menu-after"] ? {
|
|
973
|
-
name: "custom-menu-after",
|
|
974
|
-
fn: L(() => [P(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
975
|
-
key: "11"
|
|
976
|
-
} : void 0
|
|
977
|
-
]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : T("", !0),
|
|
978
|
-
D("div", Ne, [(M(), E("svg", {
|
|
979
|
-
ref_key: "svgRef",
|
|
980
|
-
ref: q,
|
|
981
|
-
xmlns: I(h),
|
|
982
|
-
"aria-describedby": `chart-instructions-${z.value}`,
|
|
983
|
-
viewBox: `0 0 ${tn.value.width} ${tn.value.height}`,
|
|
984
|
-
class: Se({
|
|
985
|
-
"vue-data-ui-fullscreen--on": H.value,
|
|
986
|
-
"vue-data-ui-fulscreen--off": !H.value
|
|
987
|
-
}),
|
|
988
|
-
style: j({
|
|
989
|
-
maxWidth: "100%",
|
|
990
|
-
overflow: "visible",
|
|
991
|
-
background: "transparent",
|
|
992
|
-
color: K.value.color
|
|
993
|
-
}),
|
|
994
|
-
tabindex: "0",
|
|
995
|
-
onFocus: Hn,
|
|
996
|
-
onBlur: Un,
|
|
997
|
-
onKeydown: Wn
|
|
998
|
-
}, [
|
|
999
|
-
ye(I(tt)),
|
|
1000
|
-
e.$slots["chart-background"] ? (M(), E("foreignObject", {
|
|
1001
|
-
key: 0,
|
|
1002
|
-
x: 0,
|
|
1003
|
-
y: 0,
|
|
1004
|
-
width: tn.value.width,
|
|
1005
|
-
height: tn.value.height,
|
|
1006
|
-
style: { pointerEvents: "none" }
|
|
1007
|
-
}, [P(e.$slots, "chart-background", {}, void 0, !0)], 8, Fe)) : T("", !0),
|
|
1008
|
-
D("defs", null, [(M(!0), E(he, null, we(Y.value.links, (e, t) => (M(), E("linearGradient", {
|
|
1009
|
-
id: e.id,
|
|
1010
|
-
x1: "0%",
|
|
1011
|
-
y1: "0%",
|
|
1012
|
-
x2: "100%",
|
|
1013
|
-
y2: "0%"
|
|
1014
|
-
}, [D("stop", {
|
|
1015
|
-
offset: "0%",
|
|
1016
|
-
"stop-color": e.sourceColor
|
|
1017
|
-
}, null, 8, Le), D("stop", {
|
|
1018
|
-
offset: "100%",
|
|
1019
|
-
"stop-color": e.targetColor
|
|
1020
|
-
}, null, 8, Re)], 8, Ie))), 256))]),
|
|
1021
|
-
(M(!0), E(he, null, we(Y.value.links, (e) => (M(), E("path", {
|
|
1022
|
-
class: "vue-ui-flow-link",
|
|
1023
|
-
d: e.path,
|
|
1024
|
-
"stroke-linejoin": "round",
|
|
1025
|
-
"stroke-miterlimit": "1",
|
|
1026
|
-
fill: `url(#${e.id})`,
|
|
1027
|
-
stroke: Et.value.stroke,
|
|
1028
|
-
"stroke-width": Et.value.strokeWidth,
|
|
1029
|
-
style: j(`
|
|
1030
|
-
opacity:${X.value ? X.value.includes(e.source) && X.value.includes(e.target) ? 1 : .3 : Z.value ? [e.target, e.source].includes(Z.value) ? 1 : .3 : Et.value.opacity}
|
|
1031
|
-
`)
|
|
1032
|
-
}, null, 12, ze))), 256)),
|
|
1033
|
-
(M(!0), E(he, null, we(Y.value.nodes, (e, n) => (M(), E("rect", {
|
|
1034
|
-
"data-a11y-node-id": e.id,
|
|
1035
|
-
class: "vue-ui-flow-node",
|
|
1036
|
-
x: e.x,
|
|
1037
|
-
y: I(u)(e.absoluteY) + K.value.padding.top,
|
|
1038
|
-
height: I(u)(e.height),
|
|
1039
|
-
width: Jt.value,
|
|
1040
|
-
fill: e.color,
|
|
1041
|
-
stroke: G.value.stroke,
|
|
1042
|
-
"stroke-width": G.value.strokeWidth,
|
|
1043
|
-
rx: G.value.borderRadius,
|
|
1044
|
-
style: j({
|
|
1045
|
-
opacity: X.value ? X.value.includes(e.name) ? 1 : .3 : 1,
|
|
1046
|
-
outline: on.value !== null && on.value === e.id ? "2px solid currentColor" : void 0
|
|
1047
|
-
}),
|
|
1048
|
-
"aria-label": `${e.name}: ${I(f)(W.value.formatter, e.value, I(t)({
|
|
1049
|
-
p: W.value.prefix,
|
|
1050
|
-
v: e.value,
|
|
1051
|
-
s: W.value.suffix,
|
|
1052
|
-
r: W.value.rounding
|
|
1053
|
-
}))}`,
|
|
1054
|
-
onMouseenter: (t) => ln(e, n, "pointer", _n.value.get(e.id)),
|
|
1055
|
-
onMouseleave: (e) => un(n),
|
|
1056
|
-
onClick: (e) => dn(n)
|
|
1057
|
-
}, null, 44, Be))), 256)),
|
|
1058
|
-
W.value.show ? (M(), E("g", Ve, [(M(!0), E(he, null, we(Y.value.nodes, (e, t) => (M(), E("text", {
|
|
1059
|
-
x: e.x + Jt.value / 2,
|
|
1060
|
-
y: (W.value.showValue ? I(u)(e.absoluteY + e.height / 2 - W.value.fontSize / 4) : e.absoluteY + e.height / 2 + W.value.fontSize / 3) + K.value.padding.top,
|
|
1061
|
-
"font-size": W.value.fontSize,
|
|
1062
|
-
fill: I(m)(e.color),
|
|
1063
|
-
"text-anchor": "middle",
|
|
1064
|
-
style: j(`pointer-events: none; opacity:${X.value ? +!!X.value.includes(e.name) : 1}`)
|
|
1065
|
-
}, F(W.value.abbreviation.use ? I(ee)({
|
|
1066
|
-
source: e.name,
|
|
1067
|
-
length: G.value.labels.abbreviation.length
|
|
1068
|
-
}) : e.name), 13, He))), 256)), W.value.showValue ? (M(!0), E(he, { key: 0 }, we(Y.value.nodes, (e, n) => (M(), E("text", {
|
|
1069
|
-
x: e.x + Jt.value / 2,
|
|
1070
|
-
y: I(u)(e.absoluteY + e.height / 2 + W.value.fontSize / 1.3) + K.value.padding.top,
|
|
1071
|
-
"font-size": W.value.fontSize,
|
|
1072
|
-
fill: I(m)(e.color),
|
|
1073
|
-
"text-anchor": "middle",
|
|
1074
|
-
style: j(`pointer-events: none; opacity:${X.value ? +!!X.value.includes(e.name) : 1}`)
|
|
1075
|
-
}, F(I(f)(W.value.formatter, e.value, I(t)({
|
|
1076
|
-
p: W.value.prefix,
|
|
1077
|
-
v: e.value,
|
|
1078
|
-
s: W.value.suffix,
|
|
1079
|
-
r: W.value.rounding
|
|
1080
|
-
}), {
|
|
1081
|
-
datapoint: e,
|
|
1082
|
-
seriesIndex: n
|
|
1083
|
-
})), 13, Ue))), 256)) : T("", !0)])) : T("", !0),
|
|
1084
|
-
P(e.$slots, "svg", { svg: {
|
|
1085
|
-
...tn.value,
|
|
1086
|
-
isPrintingImg: I(Ht) || I(Ut) || I(Pn),
|
|
1087
|
-
isPrintingSvg: I(Fn)
|
|
1088
|
-
} }, void 0, !0)
|
|
1089
|
-
], 46, Pe)), e.$slots.hint ? (M(), E("div", We, [P(e.$slots, "hint", A(k({
|
|
1090
|
-
hint: U.value.a11y.translations.keyboardNavigation,
|
|
1091
|
-
isVisible: Ct.value
|
|
1092
|
-
})), void 0, !0)])) : T("", !0)]),
|
|
1093
|
-
e.$slots.watermark ? (M(), E("div", Ge, [P(e.$slots, "watermark", A(k({ isPrinting: I(Ht) || I(Ut) || I(Pn) || I(Fn) })), void 0, !0)])) : T("", !0),
|
|
1094
|
-
D("div", { id: `legend-bottom-${z.value}` }, null, 8, Ke),
|
|
1095
|
-
gt.value && (K.value.legend.show || e.$slots.legend) ? (M(), w(ge, {
|
|
1096
|
-
key: 6,
|
|
1097
|
-
to: K.value.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
|
|
1098
|
-
}, [D("div", {
|
|
1099
|
-
ref_key: "chartLegend",
|
|
1100
|
-
ref: dt
|
|
1101
|
-
}, [P(e.$slots, "legend", { legend: Cn.value }, () => [K.value.legend.show && wn.value.length ? (M(), w(pe, {
|
|
1102
|
-
key: 0,
|
|
1103
|
-
legendSet: wn.value,
|
|
1104
|
-
config: En.value,
|
|
1105
|
-
isCursorPointer: Dt.value,
|
|
1106
|
-
onClickMarker: n[0] ||= (e) => Tn(e)
|
|
1107
|
-
}, {
|
|
1108
|
-
item: L(({ legend: e, index: t }) => [I(kt) ? T("", !0) : (M(), E("div", {
|
|
1109
|
-
key: 0,
|
|
1110
|
-
onClick: (t) => e.segregate(),
|
|
1111
|
-
style: j(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
|
|
1112
|
-
}, F(e.display), 13, qe))]),
|
|
1113
|
-
_: 1
|
|
1114
|
-
}, 8, [
|
|
1115
|
-
"legendSet",
|
|
1116
|
-
"config",
|
|
1117
|
-
"isCursorPointer"
|
|
1118
|
-
])) : T("", !0)], !0)], 512)], 8, ["to"])) : T("", !0),
|
|
1119
|
-
e.$slots.source ? (M(), E("div", {
|
|
1120
|
-
key: 7,
|
|
1121
|
-
ref_key: "source",
|
|
1122
|
-
ref: pt,
|
|
1123
|
-
dir: "auto"
|
|
1124
|
-
}, [P(e.$slots, "source", {}, void 0, !0)], 512)) : T("", !0),
|
|
1125
|
-
ye(I(Ye), {
|
|
1126
|
-
ref_key: "tooltip",
|
|
1127
|
-
ref: yt,
|
|
1128
|
-
teleportTo: K.value.tooltip.teleportTo,
|
|
1129
|
-
show: J.value.showTooltip && lt.value,
|
|
1130
|
-
backgroundColor: K.value.tooltip.backgroundColor,
|
|
1131
|
-
color: K.value.tooltip.color,
|
|
1132
|
-
fontSize: K.value.tooltip.fontSize,
|
|
1133
|
-
borderRadius: K.value.tooltip.borderRadius,
|
|
1134
|
-
borderColor: K.value.tooltip.borderColor,
|
|
1135
|
-
borderWidth: K.value.tooltip.borderWidth,
|
|
1136
|
-
backgroundOpacity: K.value.tooltip.backgroundOpacity,
|
|
1137
|
-
position: K.value.tooltip.position,
|
|
1138
|
-
offsetX: K.value.tooltip.offsetX,
|
|
1139
|
-
offsetY: K.value.tooltip.offsetY,
|
|
1140
|
-
parent: B.value,
|
|
1141
|
-
content: ut.value,
|
|
1142
|
-
isCustom: an.value,
|
|
1143
|
-
isFullscreen: H.value,
|
|
1144
|
-
smooth: K.value.tooltip.smooth,
|
|
1145
|
-
backdropFilter: K.value.tooltip.backdropFilter,
|
|
1146
|
-
smoothForce: K.value.tooltip.smoothForce,
|
|
1147
|
-
smoothSnapThreshold: K.value.tooltip.smoothSnapThreshold,
|
|
1148
|
-
isA11yMode: St.value === "keyboard",
|
|
1149
|
-
a11yPosition: xt.value
|
|
1150
|
-
}, {
|
|
1151
|
-
"tooltip-before": L(() => [P(e.$slots, "tooltip-before", A(k({ ...rn.value })), void 0, !0)]),
|
|
1152
|
-
tooltip: L(() => [P(e.$slots, "tooltip", A(k({ ...rn.value })), void 0, !0)]),
|
|
1153
|
-
"tooltip-after": L(() => [P(e.$slots, "tooltip-after", A(k({ ...rn.value })), void 0, !0)]),
|
|
1154
|
-
_: 3
|
|
1155
|
-
}, 8, [
|
|
1156
|
-
"teleportTo",
|
|
1157
|
-
"show",
|
|
1158
|
-
"backgroundColor",
|
|
1159
|
-
"color",
|
|
1160
|
-
"fontSize",
|
|
1161
|
-
"borderRadius",
|
|
1162
|
-
"borderColor",
|
|
1163
|
-
"borderWidth",
|
|
1164
|
-
"backgroundOpacity",
|
|
1165
|
-
"position",
|
|
1166
|
-
"offsetX",
|
|
1167
|
-
"offsetY",
|
|
1168
|
-
"parent",
|
|
1169
|
-
"content",
|
|
1170
|
-
"isCustom",
|
|
1171
|
-
"isFullscreen",
|
|
1172
|
-
"smooth",
|
|
1173
|
-
"backdropFilter",
|
|
1174
|
-
"smoothForce",
|
|
1175
|
-
"smoothSnapThreshold",
|
|
1176
|
-
"isA11yMode",
|
|
1177
|
-
"a11yPosition"
|
|
1178
|
-
]),
|
|
1179
|
-
wt.value && U.value.userOptions.buttons.table ? (M(), w(Te(On.value.component), be({ key: 8 }, On.value.props, {
|
|
1180
|
-
ref_key: "tableUnit",
|
|
1181
|
-
ref: _t,
|
|
1182
|
-
onClose: kn
|
|
1183
|
-
}), _e({
|
|
1184
|
-
content: L(() => [ye(I(Qe), {
|
|
1185
|
-
colNames: mn.value.colNames,
|
|
1186
|
-
head: mn.value.head,
|
|
1187
|
-
body: mn.value.body,
|
|
1188
|
-
config: mn.value.config,
|
|
1189
|
-
title: U.value.table.useDialog ? "" : On.value.title,
|
|
1190
|
-
withCloseButton: !U.value.table.useDialog,
|
|
1191
|
-
isCursorPointer: Dt.value,
|
|
1192
|
-
onClose: kn
|
|
1193
|
-
}, {
|
|
1194
|
-
th: L(({ th: e }) => [D("div", Je, F(e), 1)]),
|
|
1195
|
-
td: L(({ td: e }) => [ve(F(e.name || e), 1)]),
|
|
1196
|
-
_: 1
|
|
1197
|
-
}, 8, [
|
|
1198
|
-
"colNames",
|
|
1199
|
-
"head",
|
|
1200
|
-
"body",
|
|
1201
|
-
"config",
|
|
1202
|
-
"title",
|
|
1203
|
-
"withCloseButton",
|
|
1204
|
-
"isCursorPointer"
|
|
1205
|
-
])]),
|
|
1206
|
-
_: 2
|
|
1207
|
-
}, [U.value.table.useDialog ? {
|
|
1208
|
-
name: "title",
|
|
1209
|
-
fn: L(() => [ve(F(On.value.title), 1)]),
|
|
1210
|
-
key: "0"
|
|
1211
|
-
} : void 0, U.value.table.useDialog ? {
|
|
1212
|
-
name: "actions",
|
|
1213
|
-
fn: L(() => [D("button", {
|
|
1214
|
-
tabindex: "0",
|
|
1215
|
-
class: "vue-ui-user-options-button",
|
|
1216
|
-
onClick: n[1] ||= (e) => pn(U.value.userOptions.callbacks.csv),
|
|
1217
|
-
style: j({ cursor: Dt.value ? "pointer" : "default" })
|
|
1218
|
-
}, [ye(I(Xe), {
|
|
1219
|
-
name: "fileCsv",
|
|
1220
|
-
stroke: On.value.props.color
|
|
1221
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1222
|
-
key: "1"
|
|
1223
|
-
} : void 0]), 1040)) : T("", !0),
|
|
1224
|
-
P(e.$slots, "skeleton", {}, () => [I(kt) ? (M(), w(ne, { key: 0 })) : T("", !0)], !0)
|
|
1225
|
-
], 46, ke));
|
|
1226
|
-
}
|
|
1227
|
-
}, [["__scopeId", "data-v-040cb62f"]]);
|
|
1228
|
-
//#endregion
|
|
1229
|
-
export { Oe as n, Ye as t };
|