vue-data-ui 3.17.13 → 3.18.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/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.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-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.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-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.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 +4766 -630
- 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-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.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-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.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-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.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
|
@@ -1,1457 +0,0 @@
|
|
|
1
|
-
import { useCssVars as $a, defineAsyncComponent as ae, ref as v, shallowRef as At, computed as m, toRefs as Ca, watch as Ne, onMounted as Mt, onBeforeUnmount as Pt, openBlock as r, createElementBlock as i, unref as h, normalizeStyle as z, normalizeClass as j, createElementVNode as x, toDisplayString as H, createBlock as G, createCommentVNode as f, withCtx as y, renderSlot as p, normalizeProps as L, guardReactiveProps as D, createSlots as Re, withModifiers as It, createVNode as ke, Fragment as Y, renderList as oe, mergeProps as xt, Teleport as wa, resolveDynamicComponent as Aa, createTextVNode as _t, nextTick as Fe } from "vue";
|
|
2
|
-
import { j as ze, t as St, m as Ma, p as $e, o as Pa, q as Tt, r as Ia, n as xa, s as _a, X as Sa, W as Ta, l as Ue, as as Oa, au as Ba, k as La, a0 as Da, a1 as Ea } from "./lib-DMzrGQHK.js";
|
|
3
|
-
import { t as Na, u as Ra } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Fa } from "./useConfig-CG4HT3wS.js";
|
|
5
|
-
import { u as za, B as Ua } from "./BaseScanner-C2j3TsSY.js";
|
|
6
|
-
import { u as Va } from "./usePrinter-C4t8DdQ-.js";
|
|
7
|
-
import { u as Xa } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
-
import { u as Ve } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
-
import { u as ja } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
-
import { u as Ga } from "./useUserOptionState-B7Ej974k.js";
|
|
11
|
-
import { u as Ya } from "./useChartAccessibility-cp6XQtqi.js";
|
|
12
|
-
import Wa from "./img-CjTQXS0U.js";
|
|
13
|
-
import { _ as qa } from "./Shape-CxJ5_Rre.js";
|
|
14
|
-
import Ka from "./Title-BbKoiBk2.js";
|
|
15
|
-
import Ha from "./vue_ui_chord-Bc1_ocwK.js";
|
|
16
|
-
import Qa from "./Legend-DGN5lY60.js";
|
|
17
|
-
import { A as Za } from "./A11yDataTable-BpmuNomI.js";
|
|
18
|
-
import { _ as Ja } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const eo = ["id"], to = ["id"], ao = ["id"], oo = ["xmlns", "viewBox", "aria-describedby"], lo = ["width", "height"], no = { key: 1 }, so = ["id", "d"], ro = { key: 2 }, uo = ["transform"], io = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], co = ["d", "fill", "stroke", "stroke-width"], vo = ["d", "fill"], ho = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], fo = ["d", "fill", "stroke", "stroke-width"], go = ["d", "fill", "stroke", "stroke-width"], po = ["d", "fill", "stroke", "stroke-width"], bo = { key: 0 }, mo = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], yo = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ko = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], $o = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Co = { key: 1 }, wo = ["font-size", "font-weight", "fill"], Ao = ["href"], Mo = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], Po = {
|
|
20
|
-
key: 5,
|
|
21
|
-
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
22
|
-
"data-dom-to-png-ignore": "",
|
|
23
|
-
"aria-hidden": "true"
|
|
24
|
-
}, Io = {
|
|
25
|
-
key: 6,
|
|
26
|
-
class: "vue-data-ui-watermark"
|
|
27
|
-
}, xo = ["id"], _o = ["onClick"], So = {
|
|
28
|
-
key: 9,
|
|
29
|
-
"data-dom-to-png-ignore": "",
|
|
30
|
-
class: "reset-wrapper"
|
|
31
|
-
}, To = { style: { "text-align": "right", width: "100%" } }, Oo = {
|
|
32
|
-
__name: "vue-ui-chord",
|
|
33
|
-
props: {
|
|
34
|
-
dataset: {
|
|
35
|
-
type: Object,
|
|
36
|
-
default() {
|
|
37
|
-
return {};
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
config: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default() {
|
|
43
|
-
return {};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
emits: [
|
|
48
|
-
"selectLegend",
|
|
49
|
-
"selectGroup",
|
|
50
|
-
"selectRibbon",
|
|
51
|
-
"copyAlt"
|
|
52
|
-
],
|
|
53
|
-
setup(Ot, { expose: Bt, emit: Lt }) {
|
|
54
|
-
$a((e) => ({
|
|
55
|
-
v19190159: e.slicerColor
|
|
56
|
-
}));
|
|
57
|
-
const Dt = ae(() => import("./vue-ui-accordion-DFtpH_16.js")), Xe = ae(() => import("./BaseIcon-DX0hTWa-.js")), Et = ae(() => import("./DataTable-cMnb68Ik.js")), Nt = ae(
|
|
58
|
-
() => import("./PackageVersion-BfrCAH6_.js")
|
|
59
|
-
), Rt = ae(
|
|
60
|
-
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
61
|
-
), Ft = ae(
|
|
62
|
-
() => import("./UserOptions-DVduN6X7.js")
|
|
63
|
-
), zt = ae(
|
|
64
|
-
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
65
|
-
), { vue_ui_chord: Ut } = Fa(), { isThemeValid: Vt, warnInvalidTheme: Xt } = ja(), S = Ot, re = Lt, U = v(
|
|
66
|
-
!!S.dataset && Object.hasOwn(S.dataset, "matrix")
|
|
67
|
-
), M = v(ze()), w = v(null), k = v(null), b = v(null), je = v(0), E = v(null), Ge = v(null), Ye = v(null), We = v(null), qe = v(null), Ce = v(0), we = v(0), Ae = v(0), le = v(!1), W = At(null), ne = At(null), Ke = v(!1), ue = v(null), Me = v(null), fe = v(!1), ge = v(!1), V = v("group"), B = v(null), Pe = v(!1), a = v(Se()), Q = m(
|
|
68
|
-
() => a.value.userOptions.useCursorPointer
|
|
69
|
-
), jt = m(() => St({
|
|
70
|
-
defaultConfig: {
|
|
71
|
-
useCssAnimation: !1,
|
|
72
|
-
userOptions: { show: !1 },
|
|
73
|
-
table: { show: !1 },
|
|
74
|
-
style: {
|
|
75
|
-
chart: {
|
|
76
|
-
backgroundColor: "#99999930",
|
|
77
|
-
legend: {
|
|
78
|
-
backgroundColor: "transparent"
|
|
79
|
-
},
|
|
80
|
-
arcs: {
|
|
81
|
-
stroke: "#6A6A6A",
|
|
82
|
-
labels: {
|
|
83
|
-
show: !1
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
ribbons: {
|
|
87
|
-
stroke: "#6A6A6A",
|
|
88
|
-
underlayerOpacity: 0,
|
|
89
|
-
labels: {
|
|
90
|
-
show: !1
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
userConfig: a.value.skeletonConfig ?? {}
|
|
97
|
-
})), { loading: He, FINAL_DATASET: _, manualLoading: ie } = za({
|
|
98
|
-
...Ca(S),
|
|
99
|
-
FINAL_CONFIG: a,
|
|
100
|
-
prepareConfig: Se,
|
|
101
|
-
callback: () => {
|
|
102
|
-
Promise.resolve().then(async () => {
|
|
103
|
-
await Fe(), Z.value.showTable = a.value.table.show;
|
|
104
|
-
});
|
|
105
|
-
},
|
|
106
|
-
skeletonDataset: S.config?.skeletonDataset ?? {
|
|
107
|
-
matrix: [
|
|
108
|
-
[12e3, 6e3, 9e3, 3e3],
|
|
109
|
-
[2e3, 1e4, 2e3, 6001],
|
|
110
|
-
[8e3, 1600, 8e3, 8001],
|
|
111
|
-
[1e3, 1e3, 1e3, 7001]
|
|
112
|
-
],
|
|
113
|
-
labels: [],
|
|
114
|
-
colors: ["#DBDBDB", "#C4C4C4", "#ADADAD", "#969696"]
|
|
115
|
-
},
|
|
116
|
-
skeletonConfig: St({
|
|
117
|
-
defaultConfig: a.value,
|
|
118
|
-
userConfig: jt.value
|
|
119
|
-
})
|
|
120
|
-
}), { userOptionsVisible: Ie, setUserOptionsVisibility: Qe, keepUserOptionState: Ze } = Ga({ config: a.value }), { svgRef: q } = Ya({
|
|
121
|
-
config: a.value.style.chart.title
|
|
122
|
-
}), { isPrinting: xe, isImaging: _e, generatePdf: Je, generateImage: et } = Va({
|
|
123
|
-
elementId: `chord_${M.value}`,
|
|
124
|
-
fileName: a.value.style.chart.title.text || "vue-ui-chord",
|
|
125
|
-
options: a.value.userOptions.print
|
|
126
|
-
}), Z = v({
|
|
127
|
-
showTable: a.value.table.show
|
|
128
|
-
});
|
|
129
|
-
function Se() {
|
|
130
|
-
const e = Ve({
|
|
131
|
-
userConfig: S.config,
|
|
132
|
-
defaultConfig: Ut
|
|
133
|
-
}), o = e.theme;
|
|
134
|
-
if (!o) return e;
|
|
135
|
-
if (!Vt.value(e))
|
|
136
|
-
return Xt(e), e;
|
|
137
|
-
const t = Ve({
|
|
138
|
-
userConfig: Ha[o] || S.config,
|
|
139
|
-
defaultConfig: e
|
|
140
|
-
}), l = Ve({
|
|
141
|
-
userConfig: S.config,
|
|
142
|
-
defaultConfig: t
|
|
143
|
-
});
|
|
144
|
-
return {
|
|
145
|
-
...l,
|
|
146
|
-
customPalette: l.customPalette.length ? l.customPalette : Ma[o] || $e
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
Ne(
|
|
150
|
-
() => S.config,
|
|
151
|
-
(e) => {
|
|
152
|
-
He.value || (a.value = Se()), Ie.value = !a.value.userOptions.showOnChartHover, Te(), Ce.value += 1, we.value += 1, Ae.value += 1, T.value = a.value.initialRotation, Z.value.showTable = a.value.table.show;
|
|
153
|
-
},
|
|
154
|
-
{ deep: !0 }
|
|
155
|
-
);
|
|
156
|
-
const tt = m(() => a.value.debug);
|
|
157
|
-
Ne(
|
|
158
|
-
() => S.dataset,
|
|
159
|
-
() => {
|
|
160
|
-
at(), Te(), Ce.value += 1, we.value += 1, Ae.value += 1;
|
|
161
|
-
}
|
|
162
|
-
);
|
|
163
|
-
function at() {
|
|
164
|
-
if (Pa(S.dataset)) {
|
|
165
|
-
Tt({
|
|
166
|
-
componentName: "VueUiChord",
|
|
167
|
-
type: "dataset",
|
|
168
|
-
debug: tt.value
|
|
169
|
-
}), U.value = !1, ie.value = !0;
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
const e = Ia({
|
|
173
|
-
datasetObject: S.dataset,
|
|
174
|
-
requiredAttributes: ["matrix"]
|
|
175
|
-
});
|
|
176
|
-
if (e.length) {
|
|
177
|
-
e.forEach((s) => {
|
|
178
|
-
Tt({
|
|
179
|
-
componentName: "VueUiChord",
|
|
180
|
-
type: "datasetAttribute",
|
|
181
|
-
property: s,
|
|
182
|
-
debug: tt.value
|
|
183
|
-
});
|
|
184
|
-
}), U.value = !1, ie.value = !0;
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
const o = S.dataset.matrix;
|
|
188
|
-
if (!Array.isArray(o) || o.length < 2) {
|
|
189
|
-
console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
190
|
-
|
|
191
|
-
matrix:[
|
|
192
|
-
[1, 1],
|
|
193
|
-
[1, 1]
|
|
194
|
-
]`), U.value = !1, ie.value = !0;
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
const t = o.length, l = o.findIndex(
|
|
198
|
-
(s) => !Array.isArray(s) || s.length !== t
|
|
199
|
-
);
|
|
200
|
-
if (l !== -1) {
|
|
201
|
-
console.warn(
|
|
202
|
-
`VueUiChord - Invalid matrix: dataset.matrix at index ${l} has ${Array.isArray(o[l]) ? o[l].length : "NaN"} elements instead of the required ${t}
|
|
203
|
-
|
|
204
|
-
dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
|
|
205
|
-
), U.value = !1, ie.value = !0;
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
U.value = !0, ie.value = !1;
|
|
209
|
-
}
|
|
210
|
-
function Te() {
|
|
211
|
-
if (at(), a.value.responsive) {
|
|
212
|
-
const e = Na(() => {
|
|
213
|
-
const {
|
|
214
|
-
width: o,
|
|
215
|
-
height: t,
|
|
216
|
-
heightNoTitle: l,
|
|
217
|
-
heightSource: s,
|
|
218
|
-
heightTitle: n,
|
|
219
|
-
heightLegend: u
|
|
220
|
-
} = Ra({
|
|
221
|
-
chart: E.value,
|
|
222
|
-
title: a.value.style.chart.title.text ? Ge.value : null,
|
|
223
|
-
legend: a.value.style.chart.legend.show ? Ye.value : null,
|
|
224
|
-
source: We.value,
|
|
225
|
-
noTitle: qe.value
|
|
226
|
-
}), d = n + u + s + l;
|
|
227
|
-
o < t ? E.value.style.width = "100%" : (E.value.style.height = "100%", q.value.style.height = `calc(100% - ${d}px)`);
|
|
228
|
-
}, 100);
|
|
229
|
-
W.value && (ne.value && W.value.unobserve(ne.value), W.value.disconnect()), W.value = new ResizeObserver(e), ne.value = E.value.parentNode, W.value.observe(ne.value), e();
|
|
230
|
-
}
|
|
231
|
-
ot.value = setTimeout(() => {
|
|
232
|
-
le.value = !0;
|
|
233
|
-
}, 500);
|
|
234
|
-
}
|
|
235
|
-
function Gt() {
|
|
236
|
-
if (!_.value || !Object.hasOwn(_.value, "matrix") || _.value.matrix.length < 2) {
|
|
237
|
-
console.warn(
|
|
238
|
-
`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
|
|
239
|
-
|
|
240
|
-
matrix:[
|
|
241
|
-
[1, 1],
|
|
242
|
-
[1, 1]
|
|
243
|
-
]`
|
|
244
|
-
), U.value = !1;
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
_.value.matrix.forEach((e, o) => {
|
|
248
|
-
e.length !== _.value.matrix.length && (console.warn(
|
|
249
|
-
`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${e.length} elements instead of the required ${_.value.matrix.length}
|
|
250
|
-
|
|
251
|
-
dataset.matrix[${o}] = [${e.toString()}] has a length of ${e.length} but should have the same length as the matrix itself (${_.value.matrix.length})`
|
|
252
|
-
), U.value = !1);
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
const ot = v(null);
|
|
256
|
-
Mt(() => {
|
|
257
|
-
Ke.value = !0, Te();
|
|
258
|
-
});
|
|
259
|
-
const N = v({
|
|
260
|
-
height: 600,
|
|
261
|
-
width: 600
|
|
262
|
-
}), Yt = m(() => a.value.userOptions.show && !a.value.style.chart.title.text), Wt = m(() => xa(a.value.customPalette)), A = m(() => ({
|
|
263
|
-
inner: N.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
|
|
264
|
-
outer: N.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
|
|
265
|
-
})), qt = m(() => a.value.style.chart.arcs.padAngle / 100), $ = m(() => ({
|
|
266
|
-
matrix: _.value.matrix ?? [[0]],
|
|
267
|
-
labels: _.value.labels ?? [""],
|
|
268
|
-
colors: _.value.colors && Array.isArray(_.value.colors) && _.value.colors.length ? _.value.colors.map((e) => _a(e)) : _.value.matrix.map((e, o) => Wt.value[o] || $e[o] || $e[o % $e.length])
|
|
269
|
-
}));
|
|
270
|
-
function Kt(e, o) {
|
|
271
|
-
const t = e.length, l = A.value.inner, s = new Array(t).fill(0);
|
|
272
|
-
let n = 0;
|
|
273
|
-
for (let c = 0; c < t; c += 1)
|
|
274
|
-
for (let I = 0; I < t; I += 1)
|
|
275
|
-
s[c] += e[c][I], n += e[c][I];
|
|
276
|
-
const u = (2 * Math.PI - o * t) / n, d = [];
|
|
277
|
-
let g = 0;
|
|
278
|
-
for (let c = 0; c < t; c += 1) {
|
|
279
|
-
const I = g, O = I + s[c] * u;
|
|
280
|
-
d.push({
|
|
281
|
-
index: c,
|
|
282
|
-
pattern: `pattern_${M.value}_${c}`,
|
|
283
|
-
startAngle: I,
|
|
284
|
-
endAngle: O,
|
|
285
|
-
name: $.value.labels[c],
|
|
286
|
-
id: ze(),
|
|
287
|
-
color: $.value.colors[c],
|
|
288
|
-
proportion: s[c] / n
|
|
289
|
-
}), g = O + o;
|
|
290
|
-
}
|
|
291
|
-
const C = [];
|
|
292
|
-
for (let c = 0; c < t; c += 1) {
|
|
293
|
-
const I = e[c].map((F, K) => ({ j: K, v: F }));
|
|
294
|
-
I.sort((F, K) => K.v - F.v);
|
|
295
|
-
let O = d[c].startAngle;
|
|
296
|
-
for (const { j: F, v: K } of I) {
|
|
297
|
-
const te = O, he = te + K * u;
|
|
298
|
-
C.push({
|
|
299
|
-
index: c,
|
|
300
|
-
subIndex: F,
|
|
301
|
-
pattern: `pattern_${M.value}_${c}`,
|
|
302
|
-
startAngle: te,
|
|
303
|
-
endAngle: he,
|
|
304
|
-
value: K,
|
|
305
|
-
groupName: $.value.labels[c],
|
|
306
|
-
groupId: d[c].id,
|
|
307
|
-
groupColor: $.value.colors[c],
|
|
308
|
-
midAngle: (te + he) / 2,
|
|
309
|
-
midBaseX: Math.cos((te + he) / 2 - Math.PI / 2) * l,
|
|
310
|
-
midBaseY: Math.sin((te + he) / 2 - Math.PI / 2) * l
|
|
311
|
-
}), O = he;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
const X = [];
|
|
315
|
-
for (const c of C) {
|
|
316
|
-
const I = C.find(
|
|
317
|
-
(O) => O.index === c.subIndex && O.subIndex === c.index
|
|
318
|
-
);
|
|
319
|
-
X.push({ source: c, target: I, id: ze() });
|
|
320
|
-
}
|
|
321
|
-
return { groups: d, chords: X };
|
|
322
|
-
}
|
|
323
|
-
const P = m(() => {
|
|
324
|
-
const e = Kt(
|
|
325
|
-
$.value.matrix,
|
|
326
|
-
qt.value
|
|
327
|
-
);
|
|
328
|
-
return Gt(), e.chords.sort(
|
|
329
|
-
(o, t) => Math.max(t.source.value, t.target.value) - Math.max(o.source.value, o.target.value)
|
|
330
|
-
), e;
|
|
331
|
-
}), Ht = m(() => {
|
|
332
|
-
const e = A.value.outer + a.value.style.chart.ribbons.labels.offset + 12, t = a.value.style.chart.ribbons.labels.fontSize * 0.6, l = [];
|
|
333
|
-
if (k.value) {
|
|
334
|
-
const n = k.value;
|
|
335
|
-
if (n.source.value) {
|
|
336
|
-
const u = String(n.source.value);
|
|
337
|
-
l.push({
|
|
338
|
-
id: n.id + "-src",
|
|
339
|
-
theta: n.source.midAngle,
|
|
340
|
-
w: u.length * t / e,
|
|
341
|
-
midBaseX: n.source.midBaseX,
|
|
342
|
-
midBaseY: n.source.midBaseY,
|
|
343
|
-
groupColor: n.source.groupColor,
|
|
344
|
-
value: n.source.value
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
if (n.target && n.target.value && n.target.value !== n.source.value) {
|
|
348
|
-
const u = String(n.target.value);
|
|
349
|
-
l.push({
|
|
350
|
-
id: n.id + "-tgt",
|
|
351
|
-
theta: n.target.midAngle,
|
|
352
|
-
w: u.length * t / e,
|
|
353
|
-
midBaseX: n.target.midBaseX,
|
|
354
|
-
midBaseY: n.target.midBaseY,
|
|
355
|
-
groupColor: n.target.groupColor,
|
|
356
|
-
value: n.target.value
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
return l;
|
|
360
|
-
}
|
|
361
|
-
function s(n) {
|
|
362
|
-
P.value.chords.filter((u) => u.source.groupId === n && u.source.value).forEach((u) => {
|
|
363
|
-
{
|
|
364
|
-
const d = String(u.source.value);
|
|
365
|
-
l.push({
|
|
366
|
-
id: u.id + "-src",
|
|
367
|
-
theta: u.source.midAngle,
|
|
368
|
-
w: d.length * t / e,
|
|
369
|
-
midBaseX: u.source.midBaseX,
|
|
370
|
-
midBaseY: u.source.midBaseY,
|
|
371
|
-
groupColor: u.source.groupColor,
|
|
372
|
-
value: u.source.value
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
if (u.target && u.target.value && u.target.value !== u.source.value) {
|
|
376
|
-
const d = String(u.target.value);
|
|
377
|
-
l.push({
|
|
378
|
-
id: u.id + "-tgt",
|
|
379
|
-
theta: u.target.midAngle,
|
|
380
|
-
w: d.length * t / e,
|
|
381
|
-
midBaseX: u.target.midBaseX,
|
|
382
|
-
midBaseY: u.target.midBaseY,
|
|
383
|
-
groupColor: u.target.groupColor,
|
|
384
|
-
value: u.target.value
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
return b.value && s(b.value), w.value && s(w.value.id), l;
|
|
390
|
-
}), Qt = m(() => {
|
|
391
|
-
const e = Ht.value.map((s) => ({ ...s })).sort((s, n) => s.theta - n.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
|
|
392
|
-
let t = !0, l = 0;
|
|
393
|
-
for (; t && l++ < 10; ) {
|
|
394
|
-
t = !1;
|
|
395
|
-
for (let d = 1; d < e.length; d += 1) {
|
|
396
|
-
const g = e[d - 1], C = e[d], X = g.theta + g.w + o;
|
|
397
|
-
C.theta < X && (C.theta = X, t = !0);
|
|
398
|
-
}
|
|
399
|
-
const s = e[0], n = e[e.length - 1], u = n.theta + n.w + o - 2 * Math.PI;
|
|
400
|
-
s.theta < u && (s.theta = u, t = !0);
|
|
401
|
-
}
|
|
402
|
-
return e;
|
|
403
|
-
});
|
|
404
|
-
function lt(e, o, t, l) {
|
|
405
|
-
const s = e - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * t, d = Math.sin(s) * t, g = Math.cos(n) * t, C = Math.sin(n) * t, X = Math.cos(n) * l, c = Math.sin(n) * l, I = Math.cos(s) * l, O = Math.sin(s) * l, F = o - e > Math.PI ? 1 : 0;
|
|
406
|
-
return `M${u},${d} A${t},${t} 0 ${F} 1 ${g},${C} L${X},${c} A${l},${l} 0 ${F} 0 ${I},${O} Z`;
|
|
407
|
-
}
|
|
408
|
-
function ce(e, o) {
|
|
409
|
-
const t = A.value.inner, l = e.startAngle - Math.PI / 2, s = e.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, d = Math.cos(l) * t, g = Math.sin(l) * t, C = Math.cos(s) * t, X = Math.sin(s) * t, c = Math.cos(n) * t, I = Math.sin(n) * t, O = Math.cos(u) * t, F = Math.sin(u) * t, K = e.endAngle - e.startAngle > Math.PI ? 1 : 0, te = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
410
|
-
return `M${d},${g}A${t},${t} 0 ${K} 1 ${C},${X}Q0,0 ${c},${I}A${t},${t} 0 ${te} 1 ${O},${F}Q0,0 ${d},${g}Z`;
|
|
411
|
-
}
|
|
412
|
-
const nt = m(() => T.value * Math.PI / 180);
|
|
413
|
-
function Zt(e) {
|
|
414
|
-
return (e.startAngle + e.endAngle) / 2;
|
|
415
|
-
}
|
|
416
|
-
function Jt(e) {
|
|
417
|
-
return ((Zt(e) + nt.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
418
|
-
}
|
|
419
|
-
function ea(e) {
|
|
420
|
-
let o = e + nt.value;
|
|
421
|
-
return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
|
|
422
|
-
}
|
|
423
|
-
function ta(e) {
|
|
424
|
-
const o = e - Math.PI / 2, t = Math.cos(o) * (A.value.outer + a.value.style.chart.arcs.labels.offset + 24), l = Math.sin(o) * (A.value.outer + a.value.style.chart.arcs.labels.offset + 24);
|
|
425
|
-
return `translate(${t},${l})`;
|
|
426
|
-
}
|
|
427
|
-
function aa(e, o, t) {
|
|
428
|
-
const l = e - Math.PI / 2, s = o - Math.PI / 2, n = Math.cos(l) * t, u = Math.sin(l) * t, d = Math.cos(s) * t, g = Math.sin(s) * t, C = o - e > Math.PI ? 1 : 0;
|
|
429
|
-
return `M${n},${u} A${t},${t} 0 ${C} 1 ${d},${g}`;
|
|
430
|
-
}
|
|
431
|
-
const T = v(a.value.initialRotation), ve = v(!1);
|
|
432
|
-
let st = 0, rt = 0;
|
|
433
|
-
function ut(e) {
|
|
434
|
-
const o = q.value.getBoundingClientRect(), t = o.left + o.width / 2, l = o.top + o.height / 2, s = e.clientX ?? e.touches[0].clientX, n = e.clientY ?? e.touches[0].clientY;
|
|
435
|
-
return Math.atan2(n - l, s - t);
|
|
436
|
-
}
|
|
437
|
-
function it(e) {
|
|
438
|
-
!a.value.enableRotation || se.value || (e.preventDefault(), ve.value = !0, st = T.value, rt = ut(e));
|
|
439
|
-
}
|
|
440
|
-
function pe(e) {
|
|
441
|
-
if (!ve.value) return;
|
|
442
|
-
const o = ut(e);
|
|
443
|
-
T.value = st + (o - rt) * 180 / Math.PI;
|
|
444
|
-
}
|
|
445
|
-
function be() {
|
|
446
|
-
ve.value = !1;
|
|
447
|
-
}
|
|
448
|
-
function Oe(e) {
|
|
449
|
-
return La(
|
|
450
|
-
a.value.style.chart.ribbons.labels.formatter,
|
|
451
|
-
e,
|
|
452
|
-
Ue({
|
|
453
|
-
p: a.value.style.chart.ribbons.labels.prefix,
|
|
454
|
-
v: e,
|
|
455
|
-
s: a.value.style.chart.ribbons.labels.suffix,
|
|
456
|
-
r: a.value.style.chart.ribbons.labels.rounding
|
|
457
|
-
})
|
|
458
|
-
);
|
|
459
|
-
}
|
|
460
|
-
Mt(() => {
|
|
461
|
-
window.addEventListener("mousemove", pe), window.addEventListener("mouseup", be), window.addEventListener("touchmove", pe, { passive: !1 }), window.addEventListener("touchend", be);
|
|
462
|
-
}), Pt(() => {
|
|
463
|
-
window.removeEventListener("mousemove", pe), window.removeEventListener("mouseup", be), window.removeEventListener("touchmove", pe), window.removeEventListener("touchend", be), clearTimeout(ot.value), W.value && (ne.value && W.value.unobserve(ne.value), W.value.disconnect());
|
|
464
|
-
});
|
|
465
|
-
const me = v(!1);
|
|
466
|
-
function ct(e) {
|
|
467
|
-
me.value = e, je.value += 1;
|
|
468
|
-
}
|
|
469
|
-
function oa(e, o) {
|
|
470
|
-
a.value.events.datapointEnter && a.value.events.datapointEnter({
|
|
471
|
-
datapoint: e,
|
|
472
|
-
seriesIndex: o
|
|
473
|
-
}), !b.value && (w.value = e);
|
|
474
|
-
}
|
|
475
|
-
function la(e, o) {
|
|
476
|
-
w.value = null, a.value.events.datapointLeave && a.value.events.datapointLeave({
|
|
477
|
-
datapoint: e,
|
|
478
|
-
seriesIndex: o
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
function vt(e, o) {
|
|
482
|
-
re("selectGroup", e), a.value.events.datapointClick && a.value.events.datapointClick({
|
|
483
|
-
datapoint: e,
|
|
484
|
-
seriesIndex: o
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
function na(e, o) {
|
|
488
|
-
a.value.events.datapointEnter && a.value.events.datapointEnter({
|
|
489
|
-
datapoint: e,
|
|
490
|
-
seriesIndex: o
|
|
491
|
-
}), !b.value && (k.value = e);
|
|
492
|
-
}
|
|
493
|
-
function sa(e, o) {
|
|
494
|
-
k.value = null, a.value.events.datapointLeave && a.value.events.datapointLeave({
|
|
495
|
-
datapoint: e,
|
|
496
|
-
seriesIndex: o
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
function dt(e, o) {
|
|
500
|
-
re("selectRibbon", e), a.value.events.datapointClick && a.value.events.datapointClick({
|
|
501
|
-
datapoint: e,
|
|
502
|
-
seriesIndex: o
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
function ht(e) {
|
|
506
|
-
return !b.value && !w.value && !k.value ? 0.8 : (b.value ? b.value === e.source.groupId : w.value ? w.value.id === e.source.groupId : k.value?.id === e.id) ? 1 : 0.1;
|
|
507
|
-
}
|
|
508
|
-
function ft(e) {
|
|
509
|
-
return !b.value && !w.value && !k.value || (b.value ? b.value === e.id : w.value ? w.value.id === e.id : [
|
|
510
|
-
k.value?.source.groupId,
|
|
511
|
-
k.value?.target.groupId
|
|
512
|
-
].includes(e.id)) ? 1 : 0.3;
|
|
513
|
-
}
|
|
514
|
-
const se = v(!1);
|
|
515
|
-
function Be() {
|
|
516
|
-
se.value = !se.value;
|
|
517
|
-
}
|
|
518
|
-
function gt() {
|
|
519
|
-
Z.value.showTable = !Z.value.showTable;
|
|
520
|
-
}
|
|
521
|
-
function ra() {
|
|
522
|
-
return P.value;
|
|
523
|
-
}
|
|
524
|
-
const J = v(null);
|
|
525
|
-
function pt() {
|
|
526
|
-
const e = a.value.initialRotation;
|
|
527
|
-
J.value !== null && cancelAnimationFrame(J.value);
|
|
528
|
-
const o = () => {
|
|
529
|
-
T.value += (e - T.value) * 0.05, Math.abs(T.value - e) < 0.1 ? (T.value = e, J.value = null) : J.value = requestAnimationFrame(o);
|
|
530
|
-
};
|
|
531
|
-
J.value = requestAnimationFrame(o);
|
|
532
|
-
}
|
|
533
|
-
Pt(() => {
|
|
534
|
-
J.value !== null && cancelAnimationFrame(J.value);
|
|
535
|
-
});
|
|
536
|
-
function bt(e) {
|
|
537
|
-
e === b.value ? (b.value = null, re("selectLegend", null)) : (b.value = e, re(
|
|
538
|
-
"selectLegend",
|
|
539
|
-
P.value.groups.find((o) => o.id === e)
|
|
540
|
-
));
|
|
541
|
-
}
|
|
542
|
-
const Le = m(() => P.value.groups.map((e, o) => ({
|
|
543
|
-
name: e.name,
|
|
544
|
-
color: e.color,
|
|
545
|
-
shape: "circle",
|
|
546
|
-
patternIndex: o,
|
|
547
|
-
pattern: `pattern_${M.value}_${o}`,
|
|
548
|
-
id: e.id,
|
|
549
|
-
select: () => bt(e.id),
|
|
550
|
-
opacity: b.value ? b.value === e.id ? 1 : 0.3 : 1
|
|
551
|
-
}))), ua = m(() => ({
|
|
552
|
-
cy: "chord-div-legend",
|
|
553
|
-
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
554
|
-
color: a.value.style.chart.legend.color,
|
|
555
|
-
fontSize: a.value.style.chart.legend.fontSize,
|
|
556
|
-
paddingBottom: 12,
|
|
557
|
-
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
558
|
-
})), ee = m(() => {
|
|
559
|
-
const e = P.value.groups.map((t, l) => ({
|
|
560
|
-
name: t.name || l,
|
|
561
|
-
color: t.color
|
|
562
|
-
})), o = $.value.matrix;
|
|
563
|
-
return { head: e, body: o };
|
|
564
|
-
}), ye = m(() => {
|
|
565
|
-
const e = [{ name: "", color: null }, ...ee.value.head], o = ee.value.body.map((s, n) => [ee.value.head[n], ...ee.value.body[n]]), t = {
|
|
566
|
-
th: {
|
|
567
|
-
backgroundColor: a.value.table.th.backgroundColor,
|
|
568
|
-
color: a.value.table.th.color,
|
|
569
|
-
outline: a.value.table.th.outline
|
|
570
|
-
},
|
|
571
|
-
td: {
|
|
572
|
-
backgroundColor: a.value.table.td.backgroundColor,
|
|
573
|
-
color: a.value.table.td.color,
|
|
574
|
-
outline: a.value.table.td.outline
|
|
575
|
-
},
|
|
576
|
-
breakpoint: a.value.table.responsiveBreakpoint
|
|
577
|
-
};
|
|
578
|
-
return {
|
|
579
|
-
colNames: e,
|
|
580
|
-
head: e,
|
|
581
|
-
body: o,
|
|
582
|
-
config: t
|
|
583
|
-
};
|
|
584
|
-
});
|
|
585
|
-
function De(e = null) {
|
|
586
|
-
Fe(() => {
|
|
587
|
-
const o = $.value.matrix.map((s, n) => [[$.value.labels[n] || n], s]), t = [
|
|
588
|
-
[a.value.style.chart.title.text],
|
|
589
|
-
[a.value.style.chart.title.subtitle.text],
|
|
590
|
-
[[""], ...$.value.labels.map((s, n) => [s || n])]
|
|
591
|
-
].concat(o), l = Da(t);
|
|
592
|
-
e ? e(l) : Ea({
|
|
593
|
-
csvContent: l,
|
|
594
|
-
title: a.value.style.chart.title.text || "vue-ui-chord"
|
|
595
|
-
});
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
async function ia({ scale: e = 2 } = {}) {
|
|
599
|
-
if (!E.value) return;
|
|
600
|
-
const { width: o, height: t } = E.value.getBoundingClientRect(), l = o / t, { imageUri: s, base64: n } = await Wa({
|
|
601
|
-
domElement: E.value,
|
|
602
|
-
base64: !0,
|
|
603
|
-
img: !0,
|
|
604
|
-
scale: e
|
|
605
|
-
});
|
|
606
|
-
return {
|
|
607
|
-
imageUri: s,
|
|
608
|
-
base64: n,
|
|
609
|
-
title: a.value.style.chart.title.text,
|
|
610
|
-
width: o,
|
|
611
|
-
height: t,
|
|
612
|
-
aspectRatio: l
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
function ca(e, o) {
|
|
616
|
-
return `${$.value.labels[o]}${a.value.style.chart.arcs.labels.showPercentage ? Ue({
|
|
617
|
-
p: " (",
|
|
618
|
-
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
619
|
-
s: "%)",
|
|
620
|
-
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
621
|
-
}) : ""}`;
|
|
622
|
-
}
|
|
623
|
-
const de = m(() => {
|
|
624
|
-
const e = a.value.table.useDialog && !a.value.table.show, o = Z.value.showTable;
|
|
625
|
-
return {
|
|
626
|
-
component: e ? zt : Dt,
|
|
627
|
-
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? `: ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
628
|
-
props: e ? {
|
|
629
|
-
backgroundColor: a.value.table.th.backgroundColor,
|
|
630
|
-
color: a.value.table.th.color,
|
|
631
|
-
headerColor: a.value.table.th.color,
|
|
632
|
-
headerBg: a.value.table.th.backgroundColor,
|
|
633
|
-
isFullscreen: me.value,
|
|
634
|
-
fullscreenParent: E.value,
|
|
635
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
636
|
-
isCursorPointer: Q.value
|
|
637
|
-
} : {
|
|
638
|
-
hideDetails: !0,
|
|
639
|
-
config: {
|
|
640
|
-
open: o,
|
|
641
|
-
maxHeight: 1e4,
|
|
642
|
-
body: {
|
|
643
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
644
|
-
color: a.value.style.chart.color
|
|
645
|
-
},
|
|
646
|
-
head: {
|
|
647
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
648
|
-
color: a.value.style.chart.color
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
|
-
});
|
|
654
|
-
Ne(
|
|
655
|
-
() => Z.value.showTable,
|
|
656
|
-
(e) => {
|
|
657
|
-
a.value.table.show || (e && a.value.table.useDialog && ue.value ? ue.value.open() : "close" in ue.value && ue.value.close());
|
|
658
|
-
}
|
|
659
|
-
);
|
|
660
|
-
function mt() {
|
|
661
|
-
Z.value.showTable = !1, Me.value && Me.value.setTableIconState(!1);
|
|
662
|
-
}
|
|
663
|
-
const va = m(() => a.value.style.chart.backgroundColor), da = m(() => a.value.style.chart.legend), ha = m(() => a.value.style.chart.title), { exportSvg: fa, getSvg: ga } = Xa({
|
|
664
|
-
svg: q,
|
|
665
|
-
title: ha,
|
|
666
|
-
legend: da,
|
|
667
|
-
legendItems: Le,
|
|
668
|
-
backgroundColor: va
|
|
669
|
-
});
|
|
670
|
-
async function yt({ isCb: e }) {
|
|
671
|
-
ge.value = !0, await Fe();
|
|
672
|
-
try {
|
|
673
|
-
if (e) {
|
|
674
|
-
const { blob: o, url: t, text: l, dataUrl: s } = await ga();
|
|
675
|
-
await Promise.resolve(
|
|
676
|
-
a.value.userOptions.callbacks.svg({
|
|
677
|
-
blob: o,
|
|
678
|
-
url: t,
|
|
679
|
-
text: l,
|
|
680
|
-
dataUrl: s
|
|
681
|
-
})
|
|
682
|
-
);
|
|
683
|
-
} else
|
|
684
|
-
await Promise.resolve(fa());
|
|
685
|
-
} finally {
|
|
686
|
-
ge.value = !1;
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
function pa(e) {
|
|
690
|
-
if (e?.stage === "start") {
|
|
691
|
-
fe.value = !0;
|
|
692
|
-
return;
|
|
693
|
-
}
|
|
694
|
-
if (e?.stage === "end") {
|
|
695
|
-
fe.value = !1;
|
|
696
|
-
return;
|
|
697
|
-
}
|
|
698
|
-
et();
|
|
699
|
-
}
|
|
700
|
-
async function kt() {
|
|
701
|
-
if (re("copyAlt", {
|
|
702
|
-
config: a.value,
|
|
703
|
-
dataset: $.value
|
|
704
|
-
}), !a.value.userOptions.callbacks.altCopy) {
|
|
705
|
-
console.warn(
|
|
706
|
-
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
707
|
-
);
|
|
708
|
-
return;
|
|
709
|
-
}
|
|
710
|
-
await Promise.resolve(
|
|
711
|
-
a.value.userOptions.callbacks.altCopy({
|
|
712
|
-
config: a.value,
|
|
713
|
-
dataset: $.value
|
|
714
|
-
})
|
|
715
|
-
);
|
|
716
|
-
}
|
|
717
|
-
const ba = m(() => (w.value ? P.value.chords.filter(
|
|
718
|
-
(e) => e.source.groupId === w.value.id
|
|
719
|
-
) : b.value ? P.value.chords.filter(
|
|
720
|
-
(e) => e.source.groupId === b.value
|
|
721
|
-
) : P.value.chords).filter((e) => e.source.value)), R = m(() => {
|
|
722
|
-
const e = P.value.groups.map((t, l) => ({
|
|
723
|
-
type: "group",
|
|
724
|
-
index: l,
|
|
725
|
-
item: t
|
|
726
|
-
})), o = ba.value.map((t, l) => ({
|
|
727
|
-
type: "ribbon",
|
|
728
|
-
index: l,
|
|
729
|
-
item: {
|
|
730
|
-
...t,
|
|
731
|
-
path: ce(t.source, t.target),
|
|
732
|
-
color: $.value.colors[t.source.index]
|
|
733
|
-
}
|
|
734
|
-
}));
|
|
735
|
-
return { groups: e, ribbons: o };
|
|
736
|
-
}), Ee = m(() => {
|
|
737
|
-
const e = ["", ...ee.value.head.map((t) => t.name)], o = ee.value.body.map((t, l) => [
|
|
738
|
-
ee.value.head[l]?.name ?? `${l}`,
|
|
739
|
-
...t.map((s) => Oe(s))
|
|
740
|
-
]);
|
|
741
|
-
return { headers: e, rows: o };
|
|
742
|
-
});
|
|
743
|
-
function $t(e) {
|
|
744
|
-
const o = R.value.groups[e];
|
|
745
|
-
o && (V.value = "group", B.value = e, k.value = null, w.value = o.item);
|
|
746
|
-
}
|
|
747
|
-
function Ct(e) {
|
|
748
|
-
const o = R.value.ribbons[e];
|
|
749
|
-
o && (V.value = "ribbon", B.value = e, w.value = null, k.value = o.item);
|
|
750
|
-
}
|
|
751
|
-
function wt() {
|
|
752
|
-
B.value = null, V.value = "group", w.value = null, k.value = null;
|
|
753
|
-
}
|
|
754
|
-
function ma() {
|
|
755
|
-
Pe.value = !0, V.value = "group", B.value = null;
|
|
756
|
-
}
|
|
757
|
-
function ya() {
|
|
758
|
-
Pe.value = !1, wt();
|
|
759
|
-
}
|
|
760
|
-
function ka(e) {
|
|
761
|
-
if (!q.value || se.value || document.activeElement !== q.value) return;
|
|
762
|
-
const o = e.key === "ArrowLeft", t = e.key === "ArrowRight", l = e.key === "ArrowUp", s = e.key === "ArrowDown", n = e.key === "Enter" || e.key === " ", u = e.key === "Escape";
|
|
763
|
-
if (!o && !t && !l && !s && !n && !u)
|
|
764
|
-
return;
|
|
765
|
-
if (e.preventDefault(), e.stopPropagation(), u) {
|
|
766
|
-
wt();
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
if (l) {
|
|
770
|
-
V.value = "group", R.value.groups.length && $t(
|
|
771
|
-
B.value === null ? 0 : Math.min(
|
|
772
|
-
B.value,
|
|
773
|
-
R.value.groups.length - 1
|
|
774
|
-
)
|
|
775
|
-
);
|
|
776
|
-
return;
|
|
777
|
-
}
|
|
778
|
-
if (s) {
|
|
779
|
-
if (!R.value.ribbons.length) return;
|
|
780
|
-
V.value = "ribbon", Ct(
|
|
781
|
-
B.value === null ? 0 : Math.min(
|
|
782
|
-
B.value,
|
|
783
|
-
R.value.ribbons.length - 1
|
|
784
|
-
)
|
|
785
|
-
);
|
|
786
|
-
return;
|
|
787
|
-
}
|
|
788
|
-
if (n) {
|
|
789
|
-
if (V.value === "group") {
|
|
790
|
-
const C = R.value.groups[B.value];
|
|
791
|
-
C && vt(C.item, C.index);
|
|
792
|
-
} else {
|
|
793
|
-
const C = R.value.ribbons[B.value];
|
|
794
|
-
C && dt(C.item, C.index);
|
|
795
|
-
}
|
|
796
|
-
return;
|
|
797
|
-
}
|
|
798
|
-
const d = V.value === "group" ? R.value.groups : R.value.ribbons;
|
|
799
|
-
if (!d.length) return;
|
|
800
|
-
let g = B.value;
|
|
801
|
-
g === null || g < 0 || g >= d.length ? g = t ? 0 : d.length - 1 : t ? (g += 1, g >= d.length && (g = 0)) : o && (g -= 1, g < 0 && (g = d.length - 1)), V.value === "group" ? $t(g) : Ct(g);
|
|
802
|
-
}
|
|
803
|
-
return Bt({
|
|
804
|
-
getData: ra,
|
|
805
|
-
getImage: ia,
|
|
806
|
-
generateCsv: De,
|
|
807
|
-
generateImage: et,
|
|
808
|
-
generateSvg: yt,
|
|
809
|
-
generatePdf: Je,
|
|
810
|
-
toggleAnnotator: Be,
|
|
811
|
-
toggleTable: gt,
|
|
812
|
-
toggleFullscreen: ct,
|
|
813
|
-
copyAlt: kt
|
|
814
|
-
}), (e, o) => (r(), i("div", {
|
|
815
|
-
ref_key: "chordChart",
|
|
816
|
-
ref: E,
|
|
817
|
-
class: j({
|
|
818
|
-
"vue-data-ui-component": !0,
|
|
819
|
-
"vue-ui-chord": !0,
|
|
820
|
-
"vue-data-ui-wrapper-fullscreen": me.value,
|
|
821
|
-
"vue-data-ui-responsive": a.value.responsive
|
|
822
|
-
}),
|
|
823
|
-
style: z(`font-family:${a.value.style.fontFamily};width:100%; text-align:center;background:${a.value.style.chart.backgroundColor}`),
|
|
824
|
-
id: `chord_${M.value}`,
|
|
825
|
-
onMouseenter: o[2] || (o[2] = () => h(Qe)(!0)),
|
|
826
|
-
onMouseleave: o[3] || (o[3] = () => h(Qe)(!1))
|
|
827
|
-
}, [
|
|
828
|
-
x("div", {
|
|
829
|
-
id: `chart-instructions-${M.value}`,
|
|
830
|
-
class: "sr-only"
|
|
831
|
-
}, [
|
|
832
|
-
x("p", null, H(a.value.a11y.translations.keyboardNavigation), 1)
|
|
833
|
-
], 8, to),
|
|
834
|
-
Ee.value?.rows?.length ? (r(), G(Za, {
|
|
835
|
-
key: 0,
|
|
836
|
-
uid: M.value,
|
|
837
|
-
head: Ee.value.headers,
|
|
838
|
-
body: Ee.value.rows,
|
|
839
|
-
notice: a.value.a11y.translations.tableAvailable,
|
|
840
|
-
caption: a.value.a11y.translations.tableCaption
|
|
841
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : f("", !0),
|
|
842
|
-
a.value.userOptions.buttons.annotator && h(q) ? (r(), G(h(Rt), {
|
|
843
|
-
key: 1,
|
|
844
|
-
color: a.value.style.chart.color,
|
|
845
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
846
|
-
active: se.value,
|
|
847
|
-
svgRef: h(q),
|
|
848
|
-
isCursorPointer: Q.value,
|
|
849
|
-
onClose: Be
|
|
850
|
-
}, {
|
|
851
|
-
"annotator-action-close": y(() => [
|
|
852
|
-
p(e.$slots, "annotator-action-close", {}, void 0, !0)
|
|
853
|
-
]),
|
|
854
|
-
"annotator-action-color": y(({ color: t }) => [
|
|
855
|
-
p(e.$slots, "annotator-action-color", L(D({ color: t })), void 0, !0)
|
|
856
|
-
]),
|
|
857
|
-
"annotator-action-draw": y(({ mode: t }) => [
|
|
858
|
-
p(e.$slots, "annotator-action-draw", L(D({ mode: t })), void 0, !0)
|
|
859
|
-
]),
|
|
860
|
-
"annotator-action-undo": y(({ disabled: t }) => [
|
|
861
|
-
p(e.$slots, "annotator-action-undo", L(D({ disabled: t })), void 0, !0)
|
|
862
|
-
]),
|
|
863
|
-
"annotator-action-redo": y(({ disabled: t }) => [
|
|
864
|
-
p(e.$slots, "annotator-action-redo", L(D({ disabled: t })), void 0, !0)
|
|
865
|
-
]),
|
|
866
|
-
"annotator-action-delete": y(({ disabled: t }) => [
|
|
867
|
-
p(e.$slots, "annotator-action-delete", L(D({ disabled: t })), void 0, !0)
|
|
868
|
-
]),
|
|
869
|
-
_: 3
|
|
870
|
-
}, 8, ["color", "backgroundColor", "active", "svgRef", "isCursorPointer"])) : f("", !0),
|
|
871
|
-
p(e.$slots, "userConfig", {}, void 0, !0),
|
|
872
|
-
Yt.value ? (r(), i("div", {
|
|
873
|
-
key: 2,
|
|
874
|
-
ref_key: "noTitle",
|
|
875
|
-
ref: qe,
|
|
876
|
-
class: "vue-data-ui-no-title-space",
|
|
877
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
878
|
-
}, null, 512)) : f("", !0),
|
|
879
|
-
a.value.style.chart.title.text ? (r(), i("div", {
|
|
880
|
-
key: 3,
|
|
881
|
-
ref_key: "chartTitle",
|
|
882
|
-
ref: Ge,
|
|
883
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
884
|
-
}, [
|
|
885
|
-
(r(), G(Ka, {
|
|
886
|
-
key: `title_${Ce.value}`,
|
|
887
|
-
config: {
|
|
888
|
-
title: {
|
|
889
|
-
cy: "chord-div-title",
|
|
890
|
-
...a.value.style.chart.title
|
|
891
|
-
},
|
|
892
|
-
subtitle: {
|
|
893
|
-
cy: "chord-div-subtitle",
|
|
894
|
-
...a.value.style.chart.title.subtitle
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
}, null, 8, ["config"]))
|
|
898
|
-
], 512)) : f("", !0),
|
|
899
|
-
x("div", {
|
|
900
|
-
id: `legend-top-${M.value}`
|
|
901
|
-
}, null, 8, ao),
|
|
902
|
-
a.value.userOptions.show && U.value && (h(Ze) || h(Ie)) ? (r(), G(h(Ft), {
|
|
903
|
-
ref_key: "userOptionsRef",
|
|
904
|
-
ref: Me,
|
|
905
|
-
key: `user_option_${je.value}`,
|
|
906
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
907
|
-
color: a.value.style.chart.color,
|
|
908
|
-
isPrinting: h(xe),
|
|
909
|
-
isImaging: h(_e),
|
|
910
|
-
uid: M.value,
|
|
911
|
-
hasTooltip: !1,
|
|
912
|
-
hasPdf: a.value.userOptions.buttons.pdf,
|
|
913
|
-
hasImg: a.value.userOptions.buttons.img,
|
|
914
|
-
hasSvg: a.value.userOptions.buttons.svg,
|
|
915
|
-
hasXls: a.value.userOptions.buttons.csv,
|
|
916
|
-
hasTable: a.value.userOptions.buttons.table,
|
|
917
|
-
hasLabel: !1,
|
|
918
|
-
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
919
|
-
hasAltCopy: a.value.userOptions.buttons.altCopy,
|
|
920
|
-
isFullscreen: me.value,
|
|
921
|
-
chartElement: E.value,
|
|
922
|
-
position: a.value.userOptions.position,
|
|
923
|
-
titles: { ...a.value.userOptions.buttonTitles },
|
|
924
|
-
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
925
|
-
isAnnotation: se.value,
|
|
926
|
-
callbacks: a.value.userOptions.callbacks,
|
|
927
|
-
printScale: a.value.userOptions.print.scale,
|
|
928
|
-
tableDialog: a.value.table.useDialog,
|
|
929
|
-
isCursorPointer: Q.value,
|
|
930
|
-
onToggleFullscreen: ct,
|
|
931
|
-
onGeneratePdf: h(Je),
|
|
932
|
-
onGenerateCsv: De,
|
|
933
|
-
onGenerateImage: pa,
|
|
934
|
-
onGenerateSvg: yt,
|
|
935
|
-
onToggleTable: gt,
|
|
936
|
-
onToggleAnnotator: Be,
|
|
937
|
-
onCopyAlt: kt,
|
|
938
|
-
style: z({
|
|
939
|
-
visibility: h(Ze) ? h(Ie) ? "visible" : "hidden" : "visible"
|
|
940
|
-
})
|
|
941
|
-
}, Re({ _: 2 }, [
|
|
942
|
-
e.$slots.menuIcon ? {
|
|
943
|
-
name: "menuIcon",
|
|
944
|
-
fn: y(({ isOpen: t, color: l }) => [
|
|
945
|
-
p(e.$slots, "menuIcon", L(D({ isOpen: t, color: l })), void 0, !0)
|
|
946
|
-
]),
|
|
947
|
-
key: "0"
|
|
948
|
-
} : void 0,
|
|
949
|
-
e.$slots.optionPdf ? {
|
|
950
|
-
name: "optionPdf",
|
|
951
|
-
fn: y(() => [
|
|
952
|
-
p(e.$slots, "optionPdf", {}, void 0, !0)
|
|
953
|
-
]),
|
|
954
|
-
key: "1"
|
|
955
|
-
} : void 0,
|
|
956
|
-
e.$slots.optionCsv ? {
|
|
957
|
-
name: "optionCsv",
|
|
958
|
-
fn: y(() => [
|
|
959
|
-
p(e.$slots, "optionCsv", {}, void 0, !0)
|
|
960
|
-
]),
|
|
961
|
-
key: "2"
|
|
962
|
-
} : void 0,
|
|
963
|
-
e.$slots.optionImg ? {
|
|
964
|
-
name: "optionImg",
|
|
965
|
-
fn: y(() => [
|
|
966
|
-
p(e.$slots, "optionImg", {}, void 0, !0)
|
|
967
|
-
]),
|
|
968
|
-
key: "3"
|
|
969
|
-
} : void 0,
|
|
970
|
-
e.$slots.optionSvg ? {
|
|
971
|
-
name: "optionSvg",
|
|
972
|
-
fn: y(() => [
|
|
973
|
-
p(e.$slots, "optionSvg", {}, void 0, !0)
|
|
974
|
-
]),
|
|
975
|
-
key: "4"
|
|
976
|
-
} : void 0,
|
|
977
|
-
e.$slots.optionTable ? {
|
|
978
|
-
name: "optionTable",
|
|
979
|
-
fn: y(() => [
|
|
980
|
-
p(e.$slots, "optionTable", {}, void 0, !0)
|
|
981
|
-
]),
|
|
982
|
-
key: "5"
|
|
983
|
-
} : void 0,
|
|
984
|
-
e.$slots.optionFullscreen ? {
|
|
985
|
-
name: "optionFullscreen",
|
|
986
|
-
fn: y(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
987
|
-
p(e.$slots, "optionFullscreen", L(D({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
988
|
-
]),
|
|
989
|
-
key: "6"
|
|
990
|
-
} : void 0,
|
|
991
|
-
e.$slots.optionAnnotator ? {
|
|
992
|
-
name: "optionAnnotator",
|
|
993
|
-
fn: y(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
994
|
-
p(e.$slots, "optionAnnotator", L(D({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
995
|
-
]),
|
|
996
|
-
key: "7"
|
|
997
|
-
} : void 0,
|
|
998
|
-
e.$slots.optionAltCopy ? {
|
|
999
|
-
name: "optionAltCopy",
|
|
1000
|
-
fn: y(({ altCopy: t }) => [
|
|
1001
|
-
p(e.$slots, "optionAltCopy", L(D({ altCopy: t })), void 0, !0)
|
|
1002
|
-
]),
|
|
1003
|
-
key: "8"
|
|
1004
|
-
} : void 0
|
|
1005
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : f("", !0),
|
|
1006
|
-
(r(), i("svg", {
|
|
1007
|
-
xmlns: h(Sa),
|
|
1008
|
-
ref_key: "svgRef",
|
|
1009
|
-
ref: q,
|
|
1010
|
-
viewBox: `0 0 ${N.value.width} ${N.value.height}`,
|
|
1011
|
-
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1012
|
-
tabindex: "0",
|
|
1013
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
1014
|
-
style: {
|
|
1015
|
-
overflow: "visible"
|
|
1016
|
-
},
|
|
1017
|
-
class: j({
|
|
1018
|
-
"vue-ui-chord-rotating": ve.value,
|
|
1019
|
-
"vue-ui-chord-idle": !ve.value
|
|
1020
|
-
}),
|
|
1021
|
-
onMousedown: It(it, ["prevent"]),
|
|
1022
|
-
onTouchstart: It(it, ["prevent"]),
|
|
1023
|
-
onFocus: ma,
|
|
1024
|
-
onBlur: ya,
|
|
1025
|
-
onKeydown: ka
|
|
1026
|
-
}, [
|
|
1027
|
-
ke(h(Nt)),
|
|
1028
|
-
e.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
1029
|
-
key: 0,
|
|
1030
|
-
x: 0,
|
|
1031
|
-
y: 0,
|
|
1032
|
-
width: N.value.width <= 0 ? 10 : N.value.width,
|
|
1033
|
-
height: N.value.height <= 0 ? 10 : N.value.height,
|
|
1034
|
-
style: {
|
|
1035
|
-
pointerEvents: "none"
|
|
1036
|
-
}
|
|
1037
|
-
}, [
|
|
1038
|
-
p(e.$slots, "chart-background", {}, void 0, !0)
|
|
1039
|
-
], 8, lo)) : f("", !0),
|
|
1040
|
-
a.value.style.chart.arcs.labels.curved ? (r(), i("defs", no, [
|
|
1041
|
-
(r(!0), i(Y, null, oe(P.value.groups, (t, l) => (r(), i("path", {
|
|
1042
|
-
key: `labelPath-${l}`,
|
|
1043
|
-
id: `labelPath-${l}_${M.value}`,
|
|
1044
|
-
d: aa(
|
|
1045
|
-
t.startAngle,
|
|
1046
|
-
t.endAngle,
|
|
1047
|
-
(A.value.inner + A.value.outer) / 2 + a.value.style.chart.arcs.labels.offset
|
|
1048
|
-
),
|
|
1049
|
-
fill: "none"
|
|
1050
|
-
}, null, 8, so))), 128))
|
|
1051
|
-
])) : f("", !0),
|
|
1052
|
-
e.$slots.pattern ? (r(), i("g", ro, [
|
|
1053
|
-
(r(!0), i(Y, null, oe(P.value.groups, (t, l) => (r(), i("defs", null, [
|
|
1054
|
-
p(e.$slots, "pattern", xt({ ref_for: !0 }, {
|
|
1055
|
-
seriesIndex: t.index,
|
|
1056
|
-
patternId: `pattern_${M.value}_${l}`
|
|
1057
|
-
}), void 0, !0)
|
|
1058
|
-
]))), 256))
|
|
1059
|
-
])) : f("", !0),
|
|
1060
|
-
x("g", {
|
|
1061
|
-
transform: `translate(${N.value.width / 2}, ${N.value.height / 2}) rotate(${T.value})`
|
|
1062
|
-
}, [
|
|
1063
|
-
(r(!0), i(Y, null, oe(P.value.groups, (t, l) => (r(), i("g", null, [
|
|
1064
|
-
(r(), i("path", {
|
|
1065
|
-
class: j({
|
|
1066
|
-
"vue-ui-chord-arc": !0,
|
|
1067
|
-
"vue-ui-chord-arc-animated": a.value.useCssAnimation && !le.value
|
|
1068
|
-
}),
|
|
1069
|
-
key: `arc-${l}`,
|
|
1070
|
-
d: lt(
|
|
1071
|
-
t.startAngle,
|
|
1072
|
-
t.endAngle,
|
|
1073
|
-
A.value.outer,
|
|
1074
|
-
A.value.inner
|
|
1075
|
-
),
|
|
1076
|
-
fill: $.value.colors[l],
|
|
1077
|
-
stroke: a.value.style.chart.arcs.stroke,
|
|
1078
|
-
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
1079
|
-
"stroke-linecap": "round",
|
|
1080
|
-
"stroke-linejoin": "round",
|
|
1081
|
-
style: z({
|
|
1082
|
-
opacity: ft(t)
|
|
1083
|
-
}),
|
|
1084
|
-
onMouseenter: (s) => oa(t, l),
|
|
1085
|
-
onMouseleave: (s) => la(t, l),
|
|
1086
|
-
onClick: (s) => vt(t, l)
|
|
1087
|
-
}, null, 46, io)),
|
|
1088
|
-
e.$slots.pattern ? (r(), i("path", {
|
|
1089
|
-
class: j({
|
|
1090
|
-
"vue-ui-chord-arc": !0,
|
|
1091
|
-
"vue-ui-chord-arc-animated": a.value.useCssAnimation && !le.value
|
|
1092
|
-
}),
|
|
1093
|
-
key: `arc-${l}`,
|
|
1094
|
-
d: lt(
|
|
1095
|
-
t.startAngle,
|
|
1096
|
-
t.endAngle,
|
|
1097
|
-
A.value.outer,
|
|
1098
|
-
A.value.inner
|
|
1099
|
-
),
|
|
1100
|
-
fill: `url(#${t.pattern})`,
|
|
1101
|
-
stroke: a.value.style.chart.arcs.stroke,
|
|
1102
|
-
"stroke-width": a.value.style.chart.arcs.strokeWidth,
|
|
1103
|
-
"stroke-linecap": "round",
|
|
1104
|
-
"stroke-linejoin": "round",
|
|
1105
|
-
style: z({
|
|
1106
|
-
opacity: ft(t),
|
|
1107
|
-
pointerEvents: "none"
|
|
1108
|
-
})
|
|
1109
|
-
}, null, 14, co)) : f("", !0)
|
|
1110
|
-
]))), 256)),
|
|
1111
|
-
x("g", null, [
|
|
1112
|
-
(r(!0), i(Y, null, oe(w.value ? P.value.chords.filter(
|
|
1113
|
-
(t) => t.source.groupId === w.value.id
|
|
1114
|
-
) : b.value ? P.value.chords.filter(
|
|
1115
|
-
(t) => t.source.groupId === b.value
|
|
1116
|
-
) : P.value.chords, (t, l) => (r(), i(Y, {
|
|
1117
|
-
key: `ribbon-${t.id}`
|
|
1118
|
-
}, [
|
|
1119
|
-
t.source.value ? (r(), i("path", {
|
|
1120
|
-
key: 0,
|
|
1121
|
-
class: j({
|
|
1122
|
-
"vue-ui-chord-ribbon": !0,
|
|
1123
|
-
"vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !le.value
|
|
1124
|
-
}),
|
|
1125
|
-
d: ce(t.source, t.target),
|
|
1126
|
-
fill: a.value.style.chart.backgroundColor,
|
|
1127
|
-
style: z({
|
|
1128
|
-
opacity: a.value.style.chart.ribbons.underlayerOpacity
|
|
1129
|
-
})
|
|
1130
|
-
}, null, 14, vo)) : f("", !0),
|
|
1131
|
-
t.source.value ? (r(), i("path", {
|
|
1132
|
-
key: 1,
|
|
1133
|
-
class: j({
|
|
1134
|
-
"vue-ui-chord-ribbon": !0,
|
|
1135
|
-
"vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !le.value
|
|
1136
|
-
}),
|
|
1137
|
-
d: ce(t.source, t.target),
|
|
1138
|
-
fill: $.value.colors[t.source.index],
|
|
1139
|
-
stroke: a.value.style.chart.ribbons.stroke,
|
|
1140
|
-
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
1141
|
-
"stroke-linecap": "round",
|
|
1142
|
-
"stroke-linejoin": "round",
|
|
1143
|
-
style: z({ opacity: ht(t) }),
|
|
1144
|
-
onMouseenter: (s) => na(
|
|
1145
|
-
{
|
|
1146
|
-
...t,
|
|
1147
|
-
path: ce(t.source, t.target),
|
|
1148
|
-
color: $.value.colors[t.source.index]
|
|
1149
|
-
},
|
|
1150
|
-
l
|
|
1151
|
-
),
|
|
1152
|
-
onClick: (s) => dt(
|
|
1153
|
-
{
|
|
1154
|
-
...t,
|
|
1155
|
-
color: $.value.colors[t.source.index]
|
|
1156
|
-
},
|
|
1157
|
-
l
|
|
1158
|
-
),
|
|
1159
|
-
onMouseleave: (s) => sa(
|
|
1160
|
-
{
|
|
1161
|
-
...t,
|
|
1162
|
-
color: $.value.colors[t.source.index]
|
|
1163
|
-
},
|
|
1164
|
-
l
|
|
1165
|
-
)
|
|
1166
|
-
}, null, 46, ho)) : f("", !0),
|
|
1167
|
-
t.source.value && e.$slots.pattern ? (r(), i("path", {
|
|
1168
|
-
key: 2,
|
|
1169
|
-
class: j({
|
|
1170
|
-
"vue-ui-chord-ribbon": !0,
|
|
1171
|
-
"vue-ui-chord-ribbon-animated": a.value.useCssAnimation && !le.value
|
|
1172
|
-
}),
|
|
1173
|
-
d: ce(t.source, t.target),
|
|
1174
|
-
fill: `url(#pattern_${M.value}_${t.source.index})`,
|
|
1175
|
-
stroke: a.value.style.chart.ribbons.stroke,
|
|
1176
|
-
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
1177
|
-
"stroke-linecap": "round",
|
|
1178
|
-
"stroke-linejoin": "round",
|
|
1179
|
-
style: z({
|
|
1180
|
-
opacity: ht(t),
|
|
1181
|
-
pointerEvents: "none"
|
|
1182
|
-
})
|
|
1183
|
-
}, null, 14, fo)) : f("", !0)
|
|
1184
|
-
], 64))), 128)),
|
|
1185
|
-
k.value ? (r(), i("path", {
|
|
1186
|
-
key: 0,
|
|
1187
|
-
d: k.value.path,
|
|
1188
|
-
fill: k.value.color,
|
|
1189
|
-
stroke: a.value.style.chart.ribbons.stroke,
|
|
1190
|
-
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
1191
|
-
"stroke-linecap": "round",
|
|
1192
|
-
"stroke-linejoin": "round",
|
|
1193
|
-
class: j({ "vue-ui-chord-ribbon": !0 }),
|
|
1194
|
-
style: {
|
|
1195
|
-
pointerEvents: "none"
|
|
1196
|
-
}
|
|
1197
|
-
}, null, 8, go)) : f("", !0),
|
|
1198
|
-
k.value && e.$slots.pattern ? (r(), i("path", {
|
|
1199
|
-
key: 1,
|
|
1200
|
-
d: k.value.path,
|
|
1201
|
-
fill: `url(#${k.value.source.pattern})`,
|
|
1202
|
-
stroke: a.value.style.chart.ribbons.stroke,
|
|
1203
|
-
"stroke-width": a.value.style.chart.ribbons.strokeWidth,
|
|
1204
|
-
"stroke-linecap": "round",
|
|
1205
|
-
"stroke-linejoin": "round",
|
|
1206
|
-
class: j({ "vue-ui-chord-ribbon": !0 }),
|
|
1207
|
-
style: {
|
|
1208
|
-
pointerEvents: "none"
|
|
1209
|
-
}
|
|
1210
|
-
}, null, 8, po)) : f("", !0)
|
|
1211
|
-
]),
|
|
1212
|
-
(w.value || k.value || b.value) && a.value.style.chart.ribbons.labels.show ? (r(), i("g", bo, [
|
|
1213
|
-
(r(!0), i(Y, null, oe(Qt.value, (t) => (r(), i(Y, {
|
|
1214
|
-
key: t.id
|
|
1215
|
-
}, [
|
|
1216
|
-
x("line", {
|
|
1217
|
-
x1: t.midBaseX,
|
|
1218
|
-
y1: t.midBaseY,
|
|
1219
|
-
x2: Math.cos(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
1220
|
-
y2: Math.sin(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
1221
|
-
stroke: a.value.style.chart.backgroundColor,
|
|
1222
|
-
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
|
|
1223
|
-
"pointer-events": "none"
|
|
1224
|
-
}, null, 8, mo),
|
|
1225
|
-
x("line", {
|
|
1226
|
-
x1: t.midBaseX,
|
|
1227
|
-
y1: t.midBaseY,
|
|
1228
|
-
x2: Math.cos(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
1229
|
-
y2: Math.sin(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
1230
|
-
stroke: a.value.style.chart.ribbons.labels.connector.stroke,
|
|
1231
|
-
"stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth,
|
|
1232
|
-
"pointer-events": "none"
|
|
1233
|
-
}, null, 8, yo),
|
|
1234
|
-
a.value.style.chart.ribbons.labels.marker.show ? (r(), i("circle", {
|
|
1235
|
-
key: 0,
|
|
1236
|
-
cx: Math.cos(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
1237
|
-
cy: Math.sin(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
|
|
1238
|
-
r: a.value.style.chart.ribbons.labels.marker.radius,
|
|
1239
|
-
stroke: a.value.style.chart.ribbons.labels.marker.stroke,
|
|
1240
|
-
"stroke-width": a.value.style.chart.ribbons.labels.marker.strokeWidth,
|
|
1241
|
-
fill: t.groupColor,
|
|
1242
|
-
"pointer-events": "none"
|
|
1243
|
-
}, null, 8, ko)) : f("", !0),
|
|
1244
|
-
x("text", {
|
|
1245
|
-
transform: `
|
|
1246
|
-
translate(
|
|
1247
|
-
${Math.cos(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
|
|
1248
|
-
${Math.sin(t.theta - Math.PI / 2) * (A.value.outer + a.value.style.chart.ribbons.labels.offset + 24)}
|
|
1249
|
-
) rotate(${-T.value})
|
|
1250
|
-
`,
|
|
1251
|
-
fill: a.value.style.chart.ribbons.labels.useSerieColor ? t.groupColor : a.value.style.chart.ribbons.labels.color,
|
|
1252
|
-
"text-anchor": ea(t.theta),
|
|
1253
|
-
"font-size": a.value.style.chart.ribbons.labels.fontSize,
|
|
1254
|
-
"font-weight": a.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
|
|
1255
|
-
dy: ".35em",
|
|
1256
|
-
"pointer-events": "none"
|
|
1257
|
-
}, H(Oe(t.value)), 9, $o)
|
|
1258
|
-
], 64))), 128))
|
|
1259
|
-
])) : f("", !0),
|
|
1260
|
-
a.value.style.chart.arcs.labels.show ? (r(), i("g", Co, [
|
|
1261
|
-
a.value.style.chart.arcs.labels.curved ? (r(!0), i(Y, { key: 0 }, oe(P.value.groups, (t, l) => (r(), i("text", {
|
|
1262
|
-
class: "vue-ui-chord-label-curved",
|
|
1263
|
-
key: `curved-label-${l}`,
|
|
1264
|
-
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
1265
|
-
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
1266
|
-
fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? h(Ta)(
|
|
1267
|
-
$.value.colors[l]
|
|
1268
|
-
) : a.value.style.chart.arcs.labels.color
|
|
1269
|
-
}, [
|
|
1270
|
-
x("textPath", {
|
|
1271
|
-
href: `#labelPath-${l}_${M.value}`,
|
|
1272
|
-
startOffset: "50%",
|
|
1273
|
-
"text-anchor": "middle"
|
|
1274
|
-
}, H($.value.labels[l]) + H(a.value.style.chart.arcs.labels.showPercentage ? h(Ue)({
|
|
1275
|
-
p: " (",
|
|
1276
|
-
v: isNaN(t.proportion) ? 0 : t.proportion * 100,
|
|
1277
|
-
s: "%)",
|
|
1278
|
-
r: a.value.style.chart.arcs.labels.roundingPercentage
|
|
1279
|
-
}) : ""), 9, Ao)
|
|
1280
|
-
], 8, wo))), 128)) : !w.value && !k.value && !b.value ? (r(!0), i(Y, { key: 1 }, oe(P.value.groups, (t, l) => (r(), i("text", {
|
|
1281
|
-
class: "vue-ui-chord-label-straight",
|
|
1282
|
-
key: `label-${l}`,
|
|
1283
|
-
transform: `
|
|
1284
|
-
${ta((t.startAngle + t.endAngle) / 2)}
|
|
1285
|
-
rotate(${-T.value})
|
|
1286
|
-
`,
|
|
1287
|
-
dy: ".35em",
|
|
1288
|
-
"text-anchor": Jt(t) > Math.PI ? "end" : "start",
|
|
1289
|
-
"font-size": a.value.style.chart.arcs.labels.fontSize,
|
|
1290
|
-
"font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
1291
|
-
fill: a.value.style.chart.arcs.labels.color,
|
|
1292
|
-
innerHTML: h(Oa)({
|
|
1293
|
-
content: h(Ba)(ca(t, l)),
|
|
1294
|
-
fontSize: a.value.style.chart.arcs.labels.fontSize,
|
|
1295
|
-
fill: a.value.style.chart.arcs.labels.color,
|
|
1296
|
-
x: 0,
|
|
1297
|
-
y: 0
|
|
1298
|
-
})
|
|
1299
|
-
}, null, 8, Mo))), 128)) : f("", !0)
|
|
1300
|
-
])) : f("", !0)
|
|
1301
|
-
], 8, uo),
|
|
1302
|
-
p(e.$slots, "svg", {
|
|
1303
|
-
svg: {
|
|
1304
|
-
height: 600,
|
|
1305
|
-
width: 600,
|
|
1306
|
-
isPrintingImg: h(xe) | h(_e) | fe.value,
|
|
1307
|
-
isPrintingSvg: ge.value
|
|
1308
|
-
}
|
|
1309
|
-
}, void 0, !0)
|
|
1310
|
-
], 42, oo)),
|
|
1311
|
-
e.$slots.hint ? (r(), i("div", Po, [
|
|
1312
|
-
p(e.$slots, "hint", L(D({
|
|
1313
|
-
hint: a.value.a11y.translations.keyboardNavigation,
|
|
1314
|
-
isVisible: Pe.value
|
|
1315
|
-
})), void 0, !0)
|
|
1316
|
-
])) : f("", !0),
|
|
1317
|
-
e.$slots.watermark ? (r(), i("div", Io, [
|
|
1318
|
-
p(e.$slots, "watermark", L(D({
|
|
1319
|
-
isPrinting: h(xe) || h(_e) || fe.value || ge.value
|
|
1320
|
-
})), void 0, !0)
|
|
1321
|
-
])) : f("", !0),
|
|
1322
|
-
x("div", {
|
|
1323
|
-
id: `legend-bottom-${M.value}`
|
|
1324
|
-
}, null, 8, xo),
|
|
1325
|
-
Ke.value && (a.value.style.chart.legend.show || e.$slots.legend) ? (r(), G(wa, {
|
|
1326
|
-
key: 7,
|
|
1327
|
-
to: a.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
1328
|
-
}, [
|
|
1329
|
-
x("div", {
|
|
1330
|
-
ref_key: "chartLegend",
|
|
1331
|
-
ref: Ye
|
|
1332
|
-
}, [
|
|
1333
|
-
p(e.$slots, "legend", { legend: Le.value }, () => [
|
|
1334
|
-
a.value.style.chart.legend.show ? (r(), G(Qa, {
|
|
1335
|
-
key: `legend_${Ae.value}`,
|
|
1336
|
-
legendSet: Le.value,
|
|
1337
|
-
config: ua.value,
|
|
1338
|
-
isCursorPointer: Q.value,
|
|
1339
|
-
onClickMarker: o[0] || (o[0] = ({ legend: t }) => bt(t.id))
|
|
1340
|
-
}, Re({
|
|
1341
|
-
item: y(({ legend: t }) => [
|
|
1342
|
-
x("div", {
|
|
1343
|
-
style: z({
|
|
1344
|
-
opacity: b.value ? b.value === t.id ? 1 : 0.3 : 1
|
|
1345
|
-
}),
|
|
1346
|
-
onClick: (l) => t.select()
|
|
1347
|
-
}, H(t.name), 13, _o)
|
|
1348
|
-
]),
|
|
1349
|
-
_: 2
|
|
1350
|
-
}, [
|
|
1351
|
-
e.$slots.pattern ? {
|
|
1352
|
-
name: "legend-pattern",
|
|
1353
|
-
fn: y(({ legend: t, index: l }) => [
|
|
1354
|
-
ke(qa, {
|
|
1355
|
-
shape: t.shape,
|
|
1356
|
-
radius: 30,
|
|
1357
|
-
stroke: "none",
|
|
1358
|
-
plot: { x: 30, y: 30 },
|
|
1359
|
-
fill: `url(#pattern_${M.value}_${l})`
|
|
1360
|
-
}, null, 8, ["shape", "fill"])
|
|
1361
|
-
]),
|
|
1362
|
-
key: "0"
|
|
1363
|
-
} : void 0
|
|
1364
|
-
]), 1032, ["legendSet", "config", "isCursorPointer"])) : f("", !0)
|
|
1365
|
-
], !0)
|
|
1366
|
-
], 512)
|
|
1367
|
-
], 8, ["to"])) : f("", !0),
|
|
1368
|
-
e.$slots.source ? (r(), i("div", {
|
|
1369
|
-
key: 8,
|
|
1370
|
-
ref_key: "source",
|
|
1371
|
-
ref: We,
|
|
1372
|
-
dir: "auto"
|
|
1373
|
-
}, [
|
|
1374
|
-
p(e.$slots, "source", {}, void 0, !0)
|
|
1375
|
-
], 512)) : f("", !0),
|
|
1376
|
-
T.value !== a.value.initialRotation ? (r(), i("div", So, [
|
|
1377
|
-
p(e.$slots, "reset-action", { reset: pt }, () => [
|
|
1378
|
-
x("button", {
|
|
1379
|
-
"data-cy-reset": "",
|
|
1380
|
-
tabindex: "0",
|
|
1381
|
-
role: "button",
|
|
1382
|
-
class: "vue-data-ui-refresh-button",
|
|
1383
|
-
style: z({
|
|
1384
|
-
background: a.value.style.chart.backgroundColor,
|
|
1385
|
-
cursor: Q.value ? "pointer" : "default"
|
|
1386
|
-
}),
|
|
1387
|
-
onClick: pt
|
|
1388
|
-
}, [
|
|
1389
|
-
ke(h(Xe), {
|
|
1390
|
-
name: "refresh",
|
|
1391
|
-
stroke: a.value.style.chart.color
|
|
1392
|
-
}, null, 8, ["stroke"])
|
|
1393
|
-
], 4)
|
|
1394
|
-
], !0)
|
|
1395
|
-
])) : f("", !0),
|
|
1396
|
-
U.value && a.value.userOptions.buttons.table ? (r(), G(Aa(de.value.component), xt({ key: 10 }, de.value.props, {
|
|
1397
|
-
ref_key: "tableUnit",
|
|
1398
|
-
ref: ue,
|
|
1399
|
-
onClose: mt
|
|
1400
|
-
}), Re({
|
|
1401
|
-
content: y(() => [
|
|
1402
|
-
(r(), G(h(Et), {
|
|
1403
|
-
key: `table_${we.value}`,
|
|
1404
|
-
colNames: ye.value.colNames,
|
|
1405
|
-
head: ye.value.head,
|
|
1406
|
-
body: ye.value.body,
|
|
1407
|
-
config: ye.value.config,
|
|
1408
|
-
title: a.value.table.useDialog ? "" : de.value.title,
|
|
1409
|
-
withCloseButton: !a.value.table.useDialog,
|
|
1410
|
-
isCursorPointer: Q.value,
|
|
1411
|
-
onClose: mt
|
|
1412
|
-
}, {
|
|
1413
|
-
th: y(({ th: t }) => [
|
|
1414
|
-
_t(H(t.name), 1)
|
|
1415
|
-
]),
|
|
1416
|
-
td: y(({ td: t }) => [
|
|
1417
|
-
x("div", To, H(t.name ? t.name : Oe(t)), 1)
|
|
1418
|
-
]),
|
|
1419
|
-
_: 1
|
|
1420
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
1421
|
-
]),
|
|
1422
|
-
_: 2
|
|
1423
|
-
}, [
|
|
1424
|
-
a.value.table.useDialog ? {
|
|
1425
|
-
name: "title",
|
|
1426
|
-
fn: y(() => [
|
|
1427
|
-
_t(H(de.value.title), 1)
|
|
1428
|
-
]),
|
|
1429
|
-
key: "0"
|
|
1430
|
-
} : void 0,
|
|
1431
|
-
a.value.table.useDialog ? {
|
|
1432
|
-
name: "actions",
|
|
1433
|
-
fn: y(() => [
|
|
1434
|
-
x("button", {
|
|
1435
|
-
tabindex: "0",
|
|
1436
|
-
class: "vue-ui-user-options-button",
|
|
1437
|
-
onClick: o[1] || (o[1] = (t) => De(a.value.userOptions.callbacks.csv)),
|
|
1438
|
-
style: z({ cursor: Q.value ? "pointer" : "default" })
|
|
1439
|
-
}, [
|
|
1440
|
-
ke(h(Xe), {
|
|
1441
|
-
name: "fileCsv",
|
|
1442
|
-
stroke: de.value.props.color
|
|
1443
|
-
}, null, 8, ["stroke"])
|
|
1444
|
-
], 4)
|
|
1445
|
-
]),
|
|
1446
|
-
key: "1"
|
|
1447
|
-
} : void 0
|
|
1448
|
-
]), 1040)) : f("", !0),
|
|
1449
|
-
p(e.$slots, "skeleton", {}, () => [
|
|
1450
|
-
h(He) ? (r(), G(Ua, { key: 0 })) : f("", !0)
|
|
1451
|
-
], !0)
|
|
1452
|
-
], 46, eo));
|
|
1453
|
-
}
|
|
1454
|
-
}, Qo = /* @__PURE__ */ Ja(Oo, [["__scopeId", "data-v-8c743a20"]]);
|
|
1455
|
-
export {
|
|
1456
|
-
Qo as default
|
|
1457
|
-
};
|