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
|
@@ -0,0 +1,1239 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { B as t, G as n, H as r, I as i, J as a, Lt as o, S as ee, St as s, Tt as c, X as l, ht as u, i as te, k as ne, ot as re, r as ie, s as ae, t as oe, x as se, y as ce, zt as le } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as ue } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
+
import { t as de } from "./useConfig-KnOLHtlJ.js";
|
|
5
|
+
import { t as fe } from "./usePrinter-CMLF900n.js";
|
|
6
|
+
import { n as pe, t as me } from "./BaseScanner-C7dmAref.js";
|
|
7
|
+
import { t as he } from "./useSvgExport-Dtu973wa.js";
|
|
8
|
+
import { t as ge } from "./useNestedProp-CcxL1gUU.js";
|
|
9
|
+
import { t as _e } from "./useThemeCheck-rFK9Zlb_.js";
|
|
10
|
+
import { t as ve } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
11
|
+
import { n as ye } from "./Title-ByyzJzpc.js";
|
|
12
|
+
import { t as be } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
13
|
+
import { c as xe } from "./canvas-lib-DTaADQOK.js";
|
|
14
|
+
import { t as Se } from "./useResponsive-CrAInupd.js";
|
|
15
|
+
import { t as Ce } from "./A11yDataTable-q2-8fSlJ.js";
|
|
16
|
+
import { t as we } from "./useUserOptionState-CjPJPTg2.js";
|
|
17
|
+
import { t as Te } from "./useChartAccessibility-Do37qcw2.js";
|
|
18
|
+
import { t as Ee } from "./vue_ui_bump-frnXaXul.js";
|
|
19
|
+
import { t as De } from "./BaseDraggableDialog-LE75fWYz.js";
|
|
20
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Oe, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as je, nextTick as Me, normalizeClass as Ne, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Pe, onMounted as Fe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as T, toRefs as Re, unref as E, watch as ze, watchEffect as Be, withCtx as D } from "vue";
|
|
21
|
+
//#region src/components/vue-ui-bump.vue
|
|
22
|
+
var Ve = /* @__PURE__ */ e({ default: () => ct }), He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
|
|
23
|
+
"xmlns",
|
|
24
|
+
"aria-describedby",
|
|
25
|
+
"viewBox"
|
|
26
|
+
], Ke = [
|
|
27
|
+
"x",
|
|
28
|
+
"y",
|
|
29
|
+
"width",
|
|
30
|
+
"height"
|
|
31
|
+
], qe = [
|
|
32
|
+
"d",
|
|
33
|
+
"stroke",
|
|
34
|
+
"stroke-width",
|
|
35
|
+
"onMouseenter"
|
|
36
|
+
], Je = [
|
|
37
|
+
"d",
|
|
38
|
+
"stroke",
|
|
39
|
+
"stroke-width",
|
|
40
|
+
"onMouseenter",
|
|
41
|
+
"onMouseleave",
|
|
42
|
+
"onClick"
|
|
43
|
+
], Ye = [
|
|
44
|
+
"cx",
|
|
45
|
+
"cy",
|
|
46
|
+
"r",
|
|
47
|
+
"fill",
|
|
48
|
+
"stroke",
|
|
49
|
+
"stroke-width",
|
|
50
|
+
"onMouseenter",
|
|
51
|
+
"onMouseleave",
|
|
52
|
+
"onClick"
|
|
53
|
+
], Xe = [
|
|
54
|
+
"x",
|
|
55
|
+
"y",
|
|
56
|
+
"fill",
|
|
57
|
+
"font-size"
|
|
58
|
+
], Ze = [
|
|
59
|
+
"onMouseenter",
|
|
60
|
+
"onMouseleave",
|
|
61
|
+
"onClick"
|
|
62
|
+
], Qe = [
|
|
63
|
+
"x",
|
|
64
|
+
"y",
|
|
65
|
+
"fill",
|
|
66
|
+
"font-size"
|
|
67
|
+
], $e = [
|
|
68
|
+
"x",
|
|
69
|
+
"y",
|
|
70
|
+
"fill",
|
|
71
|
+
"font-size",
|
|
72
|
+
"font--weight",
|
|
73
|
+
"innerHTML",
|
|
74
|
+
"onMouseenter",
|
|
75
|
+
"onMouseleave",
|
|
76
|
+
"onClick"
|
|
77
|
+
], et = [
|
|
78
|
+
"x",
|
|
79
|
+
"y",
|
|
80
|
+
"fill",
|
|
81
|
+
"font-size",
|
|
82
|
+
"font--weight",
|
|
83
|
+
"innerHTML",
|
|
84
|
+
"onMouseenter",
|
|
85
|
+
"onMouseleave",
|
|
86
|
+
"onClick"
|
|
87
|
+
], tt = { key: 0 }, nt = { key: 1 }, rt = [
|
|
88
|
+
"text-anchor",
|
|
89
|
+
"font-size",
|
|
90
|
+
"font-weight",
|
|
91
|
+
"fill",
|
|
92
|
+
"transform"
|
|
93
|
+
], it = [
|
|
94
|
+
"text-anchor",
|
|
95
|
+
"font-size",
|
|
96
|
+
"fill",
|
|
97
|
+
"transform",
|
|
98
|
+
"innerHTML"
|
|
99
|
+
], at = {
|
|
100
|
+
key: 0,
|
|
101
|
+
style: {
|
|
102
|
+
position: "absolute",
|
|
103
|
+
top: "100%",
|
|
104
|
+
left: "0",
|
|
105
|
+
width: "100%"
|
|
106
|
+
},
|
|
107
|
+
"data-dom-to-png-ignore": "",
|
|
108
|
+
"aria-hidden": "true"
|
|
109
|
+
}, ot = {
|
|
110
|
+
key: 5,
|
|
111
|
+
class: "vue-data-ui-watermark"
|
|
112
|
+
}, st = ["innerHTML"], ct = /* @__PURE__ */ be({
|
|
113
|
+
__name: "vue-ui-bump",
|
|
114
|
+
props: {
|
|
115
|
+
config: {
|
|
116
|
+
type: Object,
|
|
117
|
+
default() {
|
|
118
|
+
return {};
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
dataset: {
|
|
122
|
+
type: Array,
|
|
123
|
+
default() {
|
|
124
|
+
return [];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
emits: ["copyAlt"],
|
|
129
|
+
setup(e, { expose: be, emit: Ve }) {
|
|
130
|
+
let ct = _(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), lt = _(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), ut = _(() => import("./DataTable-ZG4GX2Zg.js")), dt = _(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), ft = _(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), pt = _(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), { vue_ui_bump: mt } = de(), { isThemeValid: ht, warnInvalidTheme: gt } = _e(), O = e, _t = Ve, vt = f({
|
|
131
|
+
get() {
|
|
132
|
+
return !!O.dataset && O.dataset.length;
|
|
133
|
+
},
|
|
134
|
+
set(e) {
|
|
135
|
+
return e;
|
|
136
|
+
}
|
|
137
|
+
}), k = S(null), A = S(r()), yt = S(0), bt = S(null), xt = S(null), St = S(null), Ct = S(!1), wt = S(!1), Tt = S(0), Et = S(0), j = S(null), Dt = S(null), Ot = S(!1), kt = S(!1), At = S(!1), M = S(null), jt = S(null), Mt = S(null), Nt = S(null), N = S(null), Pt = S(!1), P = S(zt()), F = f(() => P.value.userOptions.useCursorPointer), Ft = f(() => le({
|
|
138
|
+
defaultConfig: {
|
|
139
|
+
userOptions: { show: !1 },
|
|
140
|
+
style: { chart: {
|
|
141
|
+
backgroundColor: "#99999930",
|
|
142
|
+
layout: {
|
|
143
|
+
timeLabels: { show: !1 },
|
|
144
|
+
lines: { coatingColor: "#4A4A4A" },
|
|
145
|
+
plots: {
|
|
146
|
+
stroke: "#4A4A4A",
|
|
147
|
+
labels: {
|
|
148
|
+
show: !1,
|
|
149
|
+
displayedValue: "rank"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
nameLabels: { useSerieColor: !0 }
|
|
153
|
+
}
|
|
154
|
+
} }
|
|
155
|
+
},
|
|
156
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
157
|
+
})), { loading: It, FINAL_DATASET: Lt, manualLoading: Rt } = pe({
|
|
158
|
+
...Re(O),
|
|
159
|
+
FINAL_CONFIG: P,
|
|
160
|
+
prepareConfig: zt,
|
|
161
|
+
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
162
|
+
{
|
|
163
|
+
name: "————",
|
|
164
|
+
values: [
|
|
165
|
+
1,
|
|
166
|
+
1,
|
|
167
|
+
1,
|
|
168
|
+
2,
|
|
169
|
+
2,
|
|
170
|
+
2,
|
|
171
|
+
3,
|
|
172
|
+
3,
|
|
173
|
+
2,
|
|
174
|
+
2
|
|
175
|
+
],
|
|
176
|
+
color: "#4A4A4A"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "————",
|
|
180
|
+
values: [
|
|
181
|
+
2,
|
|
182
|
+
2,
|
|
183
|
+
2,
|
|
184
|
+
1,
|
|
185
|
+
3,
|
|
186
|
+
3,
|
|
187
|
+
2,
|
|
188
|
+
2,
|
|
189
|
+
3,
|
|
190
|
+
3
|
|
191
|
+
],
|
|
192
|
+
color: "#6A6A6A"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "————",
|
|
196
|
+
values: [
|
|
197
|
+
3,
|
|
198
|
+
3,
|
|
199
|
+
3,
|
|
200
|
+
3,
|
|
201
|
+
1,
|
|
202
|
+
1,
|
|
203
|
+
1,
|
|
204
|
+
1,
|
|
205
|
+
1,
|
|
206
|
+
1
|
|
207
|
+
],
|
|
208
|
+
color: "#8A8A8A"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
skeletonConfig: le({
|
|
212
|
+
defaultConfig: P.value,
|
|
213
|
+
userConfig: Ft.value
|
|
214
|
+
})
|
|
215
|
+
});
|
|
216
|
+
Fe($t);
|
|
217
|
+
function zt() {
|
|
218
|
+
let e = ge({
|
|
219
|
+
userConfig: O.config,
|
|
220
|
+
defaultConfig: mt
|
|
221
|
+
}), t = {}, n = e.theme;
|
|
222
|
+
if (n) if (!ht.value(e)) gt(e), t = e;
|
|
223
|
+
else {
|
|
224
|
+
let r = ge({
|
|
225
|
+
userConfig: Ee[n] || O.config,
|
|
226
|
+
defaultConfig: e
|
|
227
|
+
});
|
|
228
|
+
t = {
|
|
229
|
+
...ge({
|
|
230
|
+
userConfig: O.config,
|
|
231
|
+
defaultConfig: r
|
|
232
|
+
}),
|
|
233
|
+
customPalette: e.customPalette.length ? e.customPalette : o[n] || c
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
else t = e;
|
|
237
|
+
return t;
|
|
238
|
+
}
|
|
239
|
+
let { userOptionsVisible: Bt, setUserOptionsVisibility: Vt, keepUserOptionState: Ht } = we({ config: P.value }), { svgRef: I } = Te({ config: P.value.style.chart.title });
|
|
240
|
+
function Ut() {
|
|
241
|
+
Ot.value = !0, Vt(!0);
|
|
242
|
+
}
|
|
243
|
+
function Wt() {
|
|
244
|
+
Vt(!1), Ot.value = !1;
|
|
245
|
+
}
|
|
246
|
+
let L = S({ showTable: P.value.table.show });
|
|
247
|
+
ze(P, () => {
|
|
248
|
+
L.value = { showTable: P.value.table.show };
|
|
249
|
+
}, { immediate: !0 }), ze(() => O.config, (e) => {
|
|
250
|
+
It.value || (P.value = zt()), Bt.value = !P.value.userOptions.showOnChartHover, $t(), Tt.value += 1, Et.value += 1, L.value.showTable = P.value.table.show, R.value.width = P.value.style.chart.width, R.value.height = P.value.style.chart.height, R.value.paddingRatio = {
|
|
251
|
+
top: P.value.style.chart.padding.top / P.value.style.chart.height,
|
|
252
|
+
right: P.value.style.chart.padding.right / P.value.style.chart.width,
|
|
253
|
+
bottom: P.value.style.chart.padding.bottom / P.value.style.chart.height,
|
|
254
|
+
left: P.value.style.chart.padding.left / P.value.style.chart.width
|
|
255
|
+
};
|
|
256
|
+
}), ze(() => O.dataset, (e) => {
|
|
257
|
+
Array.isArray(e) && e.length > 0 && (Rt.value = !1);
|
|
258
|
+
}, { deep: !0 });
|
|
259
|
+
let { isPrinting: Gt, isImaging: Kt, generatePdf: qt, generateImage: Jt } = fe({
|
|
260
|
+
elementId: `bump_${A.value}`,
|
|
261
|
+
fileName: P.value.style.chart.title.text || "vue-ui-bump",
|
|
262
|
+
options: P.value.userOptions.print
|
|
263
|
+
}), Yt = f(() => P.value.userOptions.show && !P.value.style.chart.title.text), R = S({
|
|
264
|
+
width: P.value.style.chart.width,
|
|
265
|
+
height: P.value.style.chart.height,
|
|
266
|
+
paddingRatio: {
|
|
267
|
+
top: P.value.style.chart.padding.top / P.value.style.chart.height,
|
|
268
|
+
right: P.value.style.chart.padding.right / P.value.style.chart.width,
|
|
269
|
+
bottom: P.value.style.chart.padding.bottom / P.value.style.chart.height,
|
|
270
|
+
left: P.value.style.chart.padding.left / P.value.style.chart.width
|
|
271
|
+
}
|
|
272
|
+
}), Xt = f(() => se(P.value.customPalette)), z = Le(null), B = Le(null), Zt = S(null), Qt = f(() => !!P.value.debug);
|
|
273
|
+
function $t() {
|
|
274
|
+
if (s(O.dataset) ? (l({
|
|
275
|
+
componentName: "VueUiBump",
|
|
276
|
+
type: "dataset",
|
|
277
|
+
debug: Qt.value
|
|
278
|
+
}), Rt.value = !0) : O.dataset.forEach((e, t) => {
|
|
279
|
+
re({
|
|
280
|
+
datasetObject: e,
|
|
281
|
+
requiredAttributes: ["name", "values"]
|
|
282
|
+
}).forEach((e) => {
|
|
283
|
+
vt.value = !1, l({
|
|
284
|
+
componentName: "VueUiBump",
|
|
285
|
+
type: "datasetSerieAttribute",
|
|
286
|
+
property: e,
|
|
287
|
+
index: t,
|
|
288
|
+
debug: Qt.value
|
|
289
|
+
}), Rt.value = !0;
|
|
290
|
+
});
|
|
291
|
+
}), s(O.dataset) || (Rt.value = P.value.loading), setTimeout(() => {
|
|
292
|
+
wt.value = !0;
|
|
293
|
+
}, 10), P.value.responsive) {
|
|
294
|
+
let e = xe(() => {
|
|
295
|
+
wt.value = !1;
|
|
296
|
+
let { width: e, height: t } = Se({
|
|
297
|
+
chart: k.value,
|
|
298
|
+
noTitle: xt.value,
|
|
299
|
+
title: P.value.style.chart.title.text ? bt.value : null,
|
|
300
|
+
legend: null,
|
|
301
|
+
slicer: null,
|
|
302
|
+
source: St.value
|
|
303
|
+
});
|
|
304
|
+
requestAnimationFrame(() => {
|
|
305
|
+
R.value.width = e, R.value.height = t - 12, clearTimeout(Zt.value), Zt.value = setTimeout(() => {
|
|
306
|
+
wt.value = !0;
|
|
307
|
+
}, 10);
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = k.value.parentNode, z.value.observe(B.value);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
Pe(() => {
|
|
314
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
315
|
+
});
|
|
316
|
+
let en = f(() => Lt.value.map((e, t) => {
|
|
317
|
+
let n = ce(e.color) || Xt.value[t] || c[t] || c[t % c.length];
|
|
318
|
+
return {
|
|
319
|
+
...e,
|
|
320
|
+
absoluteIndex: t,
|
|
321
|
+
id: r(),
|
|
322
|
+
color: n
|
|
323
|
+
};
|
|
324
|
+
})), V = f(() => Math.max(...en.value.map((e) => e.values.length)));
|
|
325
|
+
function tn(e) {
|
|
326
|
+
let t = e.map(() => Array(V.value).fill(null));
|
|
327
|
+
for (let n = 0; n < V.value; n += 1) {
|
|
328
|
+
let r = e.map((e, r) => ({
|
|
329
|
+
seriesIndex: r,
|
|
330
|
+
value: e.values?.[n],
|
|
331
|
+
previousPosition: n > 0 ? t[r][n - 1] : r
|
|
332
|
+
})).filter((e) => Number.isFinite(e.value));
|
|
333
|
+
r.sort((e, t) => t.value === e.value ? e.previousPosition - t.previousPosition : t.value - e.value);
|
|
334
|
+
for (let e = 0; e < r.length; e += 1) {
|
|
335
|
+
let i = r[e];
|
|
336
|
+
t[i.seriesIndex][n] = e;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return t;
|
|
340
|
+
}
|
|
341
|
+
function nn() {
|
|
342
|
+
let e = 0;
|
|
343
|
+
return jt.value && (e = Array.from(jt.value.querySelectorAll("tspan")).reduce((e, t) => {
|
|
344
|
+
let n = t.getComputedTextLength();
|
|
345
|
+
return n > e ? n : e;
|
|
346
|
+
}, 0)), e;
|
|
347
|
+
}
|
|
348
|
+
function rn() {
|
|
349
|
+
let e = 0;
|
|
350
|
+
return Mt.value && (e = Array.from(Mt.value.querySelectorAll("tspan")).reduce((e, t) => {
|
|
351
|
+
let n = t.getComputedTextLength();
|
|
352
|
+
return n > e ? n : e;
|
|
353
|
+
}, 0)), e;
|
|
354
|
+
}
|
|
355
|
+
let an = S(0), on = xe((e) => {
|
|
356
|
+
an.value = e;
|
|
357
|
+
}, 100);
|
|
358
|
+
Be((e) => {
|
|
359
|
+
let t = Nt.value;
|
|
360
|
+
if (!t) return;
|
|
361
|
+
let n = new ResizeObserver((e) => {
|
|
362
|
+
on(e[0].contentRect.height);
|
|
363
|
+
});
|
|
364
|
+
n.observe(t), e(() => n.disconnect());
|
|
365
|
+
}), Pe(() => {
|
|
366
|
+
an.value = 0;
|
|
367
|
+
});
|
|
368
|
+
let sn = f(() => {
|
|
369
|
+
let e = P.value.style.chart.layout.timeLabels;
|
|
370
|
+
if (!e.show) return 0;
|
|
371
|
+
let t = e.fontSize, n = e.rotation, r = Math.PI / 180 * n, i = G.value || [];
|
|
372
|
+
if (!i.length) return 0;
|
|
373
|
+
let a = i.reduce((e, t) => {
|
|
374
|
+
let n = String(t?.text ?? "").split("\n").length;
|
|
375
|
+
return Math.max(e, n);
|
|
376
|
+
}, 1), o = i.reduce((e, t) => {
|
|
377
|
+
let n = String(t?.text ?? "").split("\n").reduce((e, t) => Math.max(e, t.length), 0);
|
|
378
|
+
return Math.max(e, n);
|
|
379
|
+
}, 0), ee = t * 1.3 * a, s = o * t * (o === 1 ? 1 : .6), c = Math.abs(Math.sin(r)) * s + Math.abs(Math.cos(r)) * ee, l = t * .3;
|
|
380
|
+
return Math.max(0, c + Math.abs(e.offsetY) + l);
|
|
381
|
+
}), H = f(() => {
|
|
382
|
+
let { height: e, width: t } = R.value, { right: n, left: r } = R.value.paddingRatio, i = nn(), a = rn(), o = P.value.style.chart.padding.top, ee = t - t * n - a, s = t * r + i, c = t - t * n - t * r - i - a, l = e - o - P.value.style.chart.padding.bottom - sn.value, u = o + l, te = o + l, ne = Math.max(0, e);
|
|
383
|
+
return {
|
|
384
|
+
chartHeight: te,
|
|
385
|
+
chartWidth: Math.max(0, t),
|
|
386
|
+
top: o,
|
|
387
|
+
right: Math.max(0, ee),
|
|
388
|
+
bottom: Math.max(0, u),
|
|
389
|
+
left: Math.max(0, s),
|
|
390
|
+
width: Math.max(0, c),
|
|
391
|
+
height: Math.max(0, l),
|
|
392
|
+
unitH: Math.max(0, l) / en.value.length,
|
|
393
|
+
unitW: Math.max(0, c) / V.value,
|
|
394
|
+
svgHeight: ne
|
|
395
|
+
};
|
|
396
|
+
}), U = f(() => {
|
|
397
|
+
if (!vt.value && !It.value) return [];
|
|
398
|
+
let e = tn(en.value);
|
|
399
|
+
return en.value.map((t, n) => ({
|
|
400
|
+
...t,
|
|
401
|
+
positions: e[n]
|
|
402
|
+
})).map((e) => {
|
|
403
|
+
let t = e.positions.map((t, r) => {
|
|
404
|
+
let i = te(P.value.style.chart.layout.plots.labels.formatter, e.values[r], n({
|
|
405
|
+
p: P.value.style.chart.layout.plots.labels.prefix,
|
|
406
|
+
v: e.values[r],
|
|
407
|
+
s: P.value.style.chart.layout.plots.labels.suffix,
|
|
408
|
+
r: P.value.style.chart.layout.plots.labels.rounding
|
|
409
|
+
}));
|
|
410
|
+
return {
|
|
411
|
+
name: e.name,
|
|
412
|
+
id: e.id,
|
|
413
|
+
x: H.value.left + r * H.value.unitW + H.value.unitW / 2,
|
|
414
|
+
y: H.value.top + t * H.value.unitH + H.value.unitH / 2,
|
|
415
|
+
value: e.values[r],
|
|
416
|
+
displayValue: i,
|
|
417
|
+
rank: e.positions[r] + 1,
|
|
418
|
+
color: e.color,
|
|
419
|
+
labelColor: P.value.style.chart.layout.plots.labels.color === "auto" ? ie(e.color) : ce(P.value.style.chart.layout.plots.labels.color) ?? ie(e.color)
|
|
420
|
+
};
|
|
421
|
+
}), r = t.filter((e) => u(e.value)), a = P.value.style.chart.layout.lines.smooth ? ne(r) : i(r);
|
|
422
|
+
return {
|
|
423
|
+
...e,
|
|
424
|
+
coordinates: t,
|
|
425
|
+
path: a
|
|
426
|
+
};
|
|
427
|
+
});
|
|
428
|
+
});
|
|
429
|
+
f(() => U.value.flatMap((e, t) => e.coordinates.map((n, r) => ({
|
|
430
|
+
...n,
|
|
431
|
+
pointIndex: r,
|
|
432
|
+
seriesIndex: t,
|
|
433
|
+
seriesId: e.id,
|
|
434
|
+
seriesName: e.name,
|
|
435
|
+
pointId: `${e.id}_${r}`
|
|
436
|
+
})).filter((e) => u(e.value))));
|
|
437
|
+
function cn(e, t, n, r) {
|
|
438
|
+
let i = e.toSorted((e, t) => e.y - t.y);
|
|
439
|
+
for (let e = 1; e < i.length; e += 1) {
|
|
440
|
+
let n = i[e - 1], r = i[e];
|
|
441
|
+
r.y < n.y + t && (r.y = n.y + t);
|
|
442
|
+
}
|
|
443
|
+
let a = i.length - 1;
|
|
444
|
+
if (a >= 0 && i[a].y > r) {
|
|
445
|
+
i[a].y = r;
|
|
446
|
+
for (let e = a - 1; e >= 0; --e) {
|
|
447
|
+
let n = i[e + 1], r = i[e];
|
|
448
|
+
r.y > n.y - t && (r.y = n.y - t);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (i.length && i[0].y < n) {
|
|
452
|
+
let e = n - i[0].y;
|
|
453
|
+
for (let t = 0; t < i.length; t += 1) i[t].y += e;
|
|
454
|
+
}
|
|
455
|
+
return i;
|
|
456
|
+
}
|
|
457
|
+
let ln = f(() => {
|
|
458
|
+
let e = [], t = [];
|
|
459
|
+
U.value.forEach((n) => {
|
|
460
|
+
let r = n.coordinates.filter((e) => Number.isFinite(e.rank));
|
|
461
|
+
if (!r.length) return;
|
|
462
|
+
e.push({ ...r[0] });
|
|
463
|
+
let i = r[r.length - 1];
|
|
464
|
+
t.push({ ...i });
|
|
465
|
+
});
|
|
466
|
+
let n = P.value.style.chart.layout.nameLabels.fontSize, r = n * 1.4, i = H.value.top + n, a = H.value.bottom - n, o = cn(t, r, i, a);
|
|
467
|
+
return {
|
|
468
|
+
left: cn(e, r, i, a),
|
|
469
|
+
right: o
|
|
470
|
+
};
|
|
471
|
+
});
|
|
472
|
+
function un(e) {
|
|
473
|
+
let t = P.value.style.chart.layout.plots.labels.fontSize * .4, n = e.displayValue, r = n.length * (P.value.style.chart.layout.plots.labels.fontSize * (n.length === 1 ? 1 : .6)), i = P.value.style.chart.layout.plots.labels.fontSize, a = r + t * 2, o = i + t * 2, ee = e.x - a / 2, s = e.y - o / 2, c = P.value.style.chart.layout.plots.strokeWidth;
|
|
474
|
+
return {
|
|
475
|
+
x: ee - c / 2,
|
|
476
|
+
y: s - c / 2,
|
|
477
|
+
width: a + c,
|
|
478
|
+
height: o + c,
|
|
479
|
+
fill: e.color,
|
|
480
|
+
stroke: P.value.style.chart.layout.plots.stroke,
|
|
481
|
+
"stroke-width": c,
|
|
482
|
+
rx: o / 2
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
let W = S([]), dn = 0;
|
|
486
|
+
Be(() => {
|
|
487
|
+
let e = ++dn, t = P.value.style.chart.layout.timeLabels, n = t.values, r = t.datetimeFormatter, i = V.value;
|
|
488
|
+
if (!i || !Array.isArray(n) || n.length === 0) {
|
|
489
|
+
W.value = [];
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
(async () => {
|
|
493
|
+
let t = await ue({
|
|
494
|
+
values: n,
|
|
495
|
+
maxDatapoints: i,
|
|
496
|
+
formatter: r,
|
|
497
|
+
start: 0,
|
|
498
|
+
end: i
|
|
499
|
+
});
|
|
500
|
+
e === dn && (W.value = t);
|
|
501
|
+
})();
|
|
502
|
+
});
|
|
503
|
+
let fn = f(() => {
|
|
504
|
+
let e = P.value.style.chart.layout.timeLabels.modulo;
|
|
505
|
+
return W.value.length ? Math.min(e, [...new Set(W.value.map((e) => e.text))].length) : e;
|
|
506
|
+
}), G = f(() => {
|
|
507
|
+
let e = P.value.style.chart.layout.timeLabels, t = W.value || [], n = W.value || [], r = V.value, i = t.map((e) => e?.text ?? ""), a = n.map((e) => e?.text ?? "");
|
|
508
|
+
return ae(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, fn.value || 1), i, a, 0, null, r);
|
|
509
|
+
}), pn = f(() => R.value.width), mn = f(() => R.value.height), hn = f(() => ({
|
|
510
|
+
start: 0,
|
|
511
|
+
end: V.value
|
|
512
|
+
})), K = f(() => [...U.value].map((e) => {
|
|
513
|
+
let t = [...e.coordinates].filter((e) => u(e.value)).at(-1);
|
|
514
|
+
return {
|
|
515
|
+
...e,
|
|
516
|
+
navigationRank: t?.rank ?? Infinity
|
|
517
|
+
};
|
|
518
|
+
}).sort((e, t) => e.navigationRank - t.navigationRank));
|
|
519
|
+
function gn() {
|
|
520
|
+
N.value = null, Pt.value = !0;
|
|
521
|
+
}
|
|
522
|
+
function _n() {
|
|
523
|
+
yn(), Pt.value = !1;
|
|
524
|
+
}
|
|
525
|
+
function vn(e, t) {
|
|
526
|
+
let n = K.value.length;
|
|
527
|
+
return n ? e === null || e < 0 || e >= n ? 0 : t === "previous" ? (e - 1 + n) % n : (e + 1) % n : null;
|
|
528
|
+
}
|
|
529
|
+
function yn() {
|
|
530
|
+
if (N.value !== null) {
|
|
531
|
+
let e = K.value[N.value];
|
|
532
|
+
e && Q(e, e);
|
|
533
|
+
}
|
|
534
|
+
N.value = null, M.value = null;
|
|
535
|
+
}
|
|
536
|
+
function bn(e) {
|
|
537
|
+
if (!I.value || J.value || document.activeElement !== I.value || !K.value.length) return;
|
|
538
|
+
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
539
|
+
if (!t && !n && !r && !i) return;
|
|
540
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
541
|
+
yn();
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
if (r) {
|
|
545
|
+
if (N.value === null) return;
|
|
546
|
+
let e = K.value[N.value];
|
|
547
|
+
if (!e) return;
|
|
548
|
+
$(e, e);
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
let a = N.value;
|
|
552
|
+
a === null ? a = 0 : t ? a = vn(a, "previous") : n && (a = vn(a, "next"));
|
|
553
|
+
let o = K.value[a];
|
|
554
|
+
o && (N.value = a, Z(o, o));
|
|
555
|
+
}
|
|
556
|
+
let q = f(() => ({
|
|
557
|
+
head: X.value.head,
|
|
558
|
+
body: U.value.map((e) => [e.name, ...e.coordinates.map((e) => u(e.value) ? `${e.displayValue} (${e.rank})` : "-")]),
|
|
559
|
+
caption: P.value.a11y.translations.tableCaption,
|
|
560
|
+
notice: P.value.a11y.translations.tableAvailable
|
|
561
|
+
}));
|
|
562
|
+
ve({
|
|
563
|
+
timeLabelsEls: Nt,
|
|
564
|
+
timeLabels: W,
|
|
565
|
+
slicer: hn,
|
|
566
|
+
configRef: P,
|
|
567
|
+
rotationPath: [
|
|
568
|
+
"style",
|
|
569
|
+
"chart",
|
|
570
|
+
"layout",
|
|
571
|
+
"timeLabels",
|
|
572
|
+
"rotation"
|
|
573
|
+
],
|
|
574
|
+
autoRotatePath: [
|
|
575
|
+
"style",
|
|
576
|
+
"chart",
|
|
577
|
+
"layout",
|
|
578
|
+
"timeLabels",
|
|
579
|
+
"autoRotate",
|
|
580
|
+
"enable"
|
|
581
|
+
],
|
|
582
|
+
isAutoSize: !1,
|
|
583
|
+
width: pn,
|
|
584
|
+
height: mn,
|
|
585
|
+
rotation: P.value.style.chart.layout.timeLabels.autoRotate.angle
|
|
586
|
+
});
|
|
587
|
+
let J = S(!1);
|
|
588
|
+
function xn() {
|
|
589
|
+
J.value = !J.value;
|
|
590
|
+
}
|
|
591
|
+
function Sn(e) {
|
|
592
|
+
Ct.value = e, yt.value += 1;
|
|
593
|
+
}
|
|
594
|
+
function Cn() {
|
|
595
|
+
L.value.showTable = !L.value.showTable;
|
|
596
|
+
}
|
|
597
|
+
ze(() => L.value.showTable, (e) => {
|
|
598
|
+
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
599
|
+
});
|
|
600
|
+
function wn() {
|
|
601
|
+
L.value.showTable = !1, Dt.value && Dt.value.setTableIconState(!1);
|
|
602
|
+
}
|
|
603
|
+
function Tn() {
|
|
604
|
+
return U.value;
|
|
605
|
+
}
|
|
606
|
+
function En(e = null) {
|
|
607
|
+
let t = [
|
|
608
|
+
[P.value.style.chart.title.text],
|
|
609
|
+
[P.value.style.chart.title.subtitle.text],
|
|
610
|
+
[""]
|
|
611
|
+
], n = ["", ...G.value.map((e) => e?.text ?? "")], r = U.value.map((e) => [e.name, ...e.coordinates.map((e) => `${e.displayValue}`)]), i = U.value.map((e) => [e.name, ...e.coordinates.map((e) => `${e.rank}`)]), o = ee(t.concat([[P.value.table.columnNames.values]]).concat([n]).concat(r).concat([
|
|
612
|
+
[""],
|
|
613
|
+
[P.value.table.columnNames.ranking],
|
|
614
|
+
[n]
|
|
615
|
+
]).concat(i));
|
|
616
|
+
e ? e(o) : a({
|
|
617
|
+
csvContent: o,
|
|
618
|
+
title: P.value.style.chart.title.text || "vue-ui-bump"
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
let Y = f(() => {
|
|
622
|
+
let e = P.value.table.useDialog && !P.value.table.show, t = L.value.showTable;
|
|
623
|
+
return {
|
|
624
|
+
component: e ? De : lt,
|
|
625
|
+
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
626
|
+
props: e ? {
|
|
627
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
628
|
+
color: P.value.table.th.color,
|
|
629
|
+
headerColor: P.value.table.th.color,
|
|
630
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
631
|
+
isFullscreen: Ct.value,
|
|
632
|
+
fullscreenParent: k.value,
|
|
633
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
634
|
+
isCursorPointer: F.value
|
|
635
|
+
} : {
|
|
636
|
+
hideDetails: !0,
|
|
637
|
+
config: {
|
|
638
|
+
open: t,
|
|
639
|
+
maxHeight: 1e4,
|
|
640
|
+
body: {
|
|
641
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
642
|
+
color: P.value.style.chart.color
|
|
643
|
+
},
|
|
644
|
+
head: {
|
|
645
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
646
|
+
color: P.value.style.chart.color
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
}), X = f(() => ({
|
|
652
|
+
head: [""].concat(G.value.map((e) => e.text)),
|
|
653
|
+
body: U.value.map((e, t) => [e.name, ...e.coordinates.map((e) => `${e.displayValue} (${e.rank})`)]),
|
|
654
|
+
config: {
|
|
655
|
+
th: {
|
|
656
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
657
|
+
color: P.value.table.th.color,
|
|
658
|
+
outline: P.value.table.th.outline
|
|
659
|
+
},
|
|
660
|
+
td: {
|
|
661
|
+
backgroundColor: P.value.table.td.backgroundColor,
|
|
662
|
+
color: P.value.table.td.color,
|
|
663
|
+
outline: P.value.table.td.outline
|
|
664
|
+
},
|
|
665
|
+
breakpoint: P.value.table.responsiveBreakpoint
|
|
666
|
+
},
|
|
667
|
+
colNames: [P.value.table.columnNames.series]
|
|
668
|
+
})), Dn = f(() => P.value.style.chart.backgroundColor), { exportSvg: On, getSvg: kn } = he({
|
|
669
|
+
svg: I,
|
|
670
|
+
title: f(() => P.value.style.chart.title),
|
|
671
|
+
legend: null,
|
|
672
|
+
legendItems: null,
|
|
673
|
+
backgroundColor: Dn
|
|
674
|
+
});
|
|
675
|
+
async function An({ isCb: e }) {
|
|
676
|
+
At.value = !0, await Me();
|
|
677
|
+
try {
|
|
678
|
+
if (e) {
|
|
679
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await kn();
|
|
680
|
+
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
681
|
+
blob: e,
|
|
682
|
+
url: t,
|
|
683
|
+
text: n,
|
|
684
|
+
dataUrl: r
|
|
685
|
+
}));
|
|
686
|
+
} else await Promise.resolve(On());
|
|
687
|
+
} finally {
|
|
688
|
+
At.value = !1;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
async function jn({ scale: e = 2 } = {}) {
|
|
692
|
+
if (!k.value) return;
|
|
693
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await img({
|
|
694
|
+
domElement: k.value,
|
|
695
|
+
base64: !0,
|
|
696
|
+
img: !0,
|
|
697
|
+
scale: e
|
|
698
|
+
});
|
|
699
|
+
return {
|
|
700
|
+
imageUri: i,
|
|
701
|
+
base64: a,
|
|
702
|
+
title: P.value.style.chart.title.text,
|
|
703
|
+
width: t,
|
|
704
|
+
height: n,
|
|
705
|
+
aspectRatio: r
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
function Z(e, t) {
|
|
709
|
+
M.value = t.id, P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
710
|
+
datapoint: e,
|
|
711
|
+
seriesIndex: e?.pointIndex ?? null
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
function Q(e, t) {
|
|
715
|
+
M.value = null, P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
716
|
+
datapoint: e,
|
|
717
|
+
seriesIndex: e?.pointIndex ?? null
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
function $(e, t) {
|
|
721
|
+
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
722
|
+
datapoint: e,
|
|
723
|
+
seriesIndex: e?.pointIndex ?? null
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
function Mn(e) {
|
|
727
|
+
if (e?.stage === "start") {
|
|
728
|
+
kt.value = !0;
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
if (e?.stage === "end") {
|
|
732
|
+
kt.value = !1;
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
Jt();
|
|
736
|
+
}
|
|
737
|
+
async function Nn() {
|
|
738
|
+
if (_t("copyAlt", {
|
|
739
|
+
config: P.value,
|
|
740
|
+
dataset: U.value
|
|
741
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
742
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
746
|
+
config: P.value,
|
|
747
|
+
dataset: U.value
|
|
748
|
+
}));
|
|
749
|
+
}
|
|
750
|
+
return be({
|
|
751
|
+
getData: Tn,
|
|
752
|
+
getImage: jn,
|
|
753
|
+
generatePdf: qt,
|
|
754
|
+
generateCsv: En,
|
|
755
|
+
generateImage: Jt,
|
|
756
|
+
generateSvg: An,
|
|
757
|
+
toggleTable: Cn,
|
|
758
|
+
toggleAnnotator: xn,
|
|
759
|
+
toggleFullscreen: Sn,
|
|
760
|
+
copyAlt: Nn
|
|
761
|
+
}), (e, n) => (x(), h("div", {
|
|
762
|
+
id: `bump_${A.value}`,
|
|
763
|
+
ref_key: "bumpChart",
|
|
764
|
+
ref: k,
|
|
765
|
+
class: Ne({
|
|
766
|
+
"vue-data-ui-component": !0,
|
|
767
|
+
"vue-ui-bump": !0,
|
|
768
|
+
"vue-data-ui-wrapper-fullscreen": Ct.value
|
|
769
|
+
}),
|
|
770
|
+
style: b(`background:${P.value.style.chart.backgroundColor};color:${P.value.style.chart.color};font-family:${P.value.style.fontFamily}; position: relative; ${P.value.responsive ? "height: 100%" : ""}`),
|
|
771
|
+
onMouseenter: Ut,
|
|
772
|
+
onMouseleave: Wt
|
|
773
|
+
}, [
|
|
774
|
+
g("p", {
|
|
775
|
+
id: `chart-instructions-${A.value}`,
|
|
776
|
+
class: "sr-only"
|
|
777
|
+
}, T(P.value.a11y.translations.keyboardNavigation), 9, Ue),
|
|
778
|
+
q.value.body.length ? (x(), p(Ce, {
|
|
779
|
+
key: 0,
|
|
780
|
+
uid: A.value,
|
|
781
|
+
head: q.value.head,
|
|
782
|
+
body: q.value.body,
|
|
783
|
+
caption: q.value.caption,
|
|
784
|
+
notice: q.value.notice
|
|
785
|
+
}, null, 8, [
|
|
786
|
+
"uid",
|
|
787
|
+
"head",
|
|
788
|
+
"body",
|
|
789
|
+
"caption",
|
|
790
|
+
"notice"
|
|
791
|
+
])) : m("", !0),
|
|
792
|
+
P.value.userOptions.buttons.annotator ? (x(), p(E(dt), {
|
|
793
|
+
key: 1,
|
|
794
|
+
svgRef: E(I),
|
|
795
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
796
|
+
color: P.value.style.chart.color,
|
|
797
|
+
active: J.value,
|
|
798
|
+
isCursorPointer: F.value,
|
|
799
|
+
onClose: xn
|
|
800
|
+
}, {
|
|
801
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
802
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
803
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
|
|
804
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
|
|
805
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
|
|
806
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
|
|
807
|
+
_: 3
|
|
808
|
+
}, 8, [
|
|
809
|
+
"svgRef",
|
|
810
|
+
"backgroundColor",
|
|
811
|
+
"color",
|
|
812
|
+
"active",
|
|
813
|
+
"isCursorPointer"
|
|
814
|
+
])) : m("", !0),
|
|
815
|
+
w(e.$slots, "userConfig", {}, void 0, !0),
|
|
816
|
+
Yt.value ? (x(), h("div", {
|
|
817
|
+
key: 2,
|
|
818
|
+
ref_key: "noTitle",
|
|
819
|
+
ref: xt,
|
|
820
|
+
class: "vue-data-ui-no-title-space",
|
|
821
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
822
|
+
}, null, 512)) : m("", !0),
|
|
823
|
+
P.value.style.chart.title.text ? (x(), h("div", {
|
|
824
|
+
key: 3,
|
|
825
|
+
ref_key: "chartTitle",
|
|
826
|
+
ref: bt,
|
|
827
|
+
style: "width:100%;background:transparent;"
|
|
828
|
+
}, [(x(), p(ye, {
|
|
829
|
+
key: `title_${Tt.value}`,
|
|
830
|
+
config: {
|
|
831
|
+
title: {
|
|
832
|
+
cy: "bump-title",
|
|
833
|
+
...P.value.style.chart.title
|
|
834
|
+
},
|
|
835
|
+
subtitle: {
|
|
836
|
+
cy: "bump-subtitle",
|
|
837
|
+
...P.value.style.chart.title.subtitle
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
841
|
+
P.value.userOptions.show && vt.value && (E(Ht) || E(Bt)) ? (x(), p(E(ft), {
|
|
842
|
+
ref_key: "userOptionsRef",
|
|
843
|
+
ref: Dt,
|
|
844
|
+
key: `user_option_${yt.value}`,
|
|
845
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
846
|
+
color: P.value.style.chart.color,
|
|
847
|
+
isPrinting: E(Gt),
|
|
848
|
+
isImaging: E(Kt),
|
|
849
|
+
uid: A.value,
|
|
850
|
+
hasTooltip: !1,
|
|
851
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
852
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
853
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
854
|
+
hasXls: P.value.userOptions.buttons.csv,
|
|
855
|
+
hasTable: P.value.userOptions.buttons.table,
|
|
856
|
+
hasLabel: !1,
|
|
857
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
858
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
859
|
+
isFullcreen: Ct.value,
|
|
860
|
+
chartElement: k.value,
|
|
861
|
+
position: P.value.userOptions.position,
|
|
862
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
863
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
864
|
+
isAnnotation: J.value,
|
|
865
|
+
callbacks: P.value.userOptions.callbacks,
|
|
866
|
+
printScale: P.value.userOptions.print.scale,
|
|
867
|
+
tableDialog: P.value.table.useDialog,
|
|
868
|
+
isCursorPointer: F.value,
|
|
869
|
+
onToggleFullscreen: Sn,
|
|
870
|
+
onGeneratePdf: E(qt),
|
|
871
|
+
onGenerateCsv: En,
|
|
872
|
+
onGenerateImage: Mn,
|
|
873
|
+
onGenerateSvg: An,
|
|
874
|
+
onToggleTable: Cn,
|
|
875
|
+
onToggleAnnotator: xn,
|
|
876
|
+
onCopyAlt: Nn,
|
|
877
|
+
style: b({ visibility: E(Ht) ? E(Bt) ? "visible" : "hidden" : "visible" })
|
|
878
|
+
}, Oe({ _: 2 }, [
|
|
879
|
+
e.$slots.menuIcon ? {
|
|
880
|
+
name: "menuIcon",
|
|
881
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(v({
|
|
882
|
+
isOpen: t,
|
|
883
|
+
color: n
|
|
884
|
+
})), void 0, !0)]),
|
|
885
|
+
key: "0"
|
|
886
|
+
} : void 0,
|
|
887
|
+
e.$slots.optionPdf ? {
|
|
888
|
+
name: "optionPdf",
|
|
889
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
890
|
+
key: "1"
|
|
891
|
+
} : void 0,
|
|
892
|
+
e.$slots.optionCsv ? {
|
|
893
|
+
name: "optionCsv",
|
|
894
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
895
|
+
key: "2"
|
|
896
|
+
} : void 0,
|
|
897
|
+
e.$slots.optionImg ? {
|
|
898
|
+
name: "optionImg",
|
|
899
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
900
|
+
key: "3"
|
|
901
|
+
} : void 0,
|
|
902
|
+
e.$slots.optionSvg ? {
|
|
903
|
+
name: "optionSvg",
|
|
904
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
905
|
+
key: "4"
|
|
906
|
+
} : void 0,
|
|
907
|
+
e.$slots.optionTable ? {
|
|
908
|
+
name: "optionTable",
|
|
909
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
910
|
+
key: "5"
|
|
911
|
+
} : void 0,
|
|
912
|
+
e.$slots.optionFullscreen ? {
|
|
913
|
+
name: "optionFullscreen",
|
|
914
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(v({
|
|
915
|
+
toggleFullscreen: t,
|
|
916
|
+
isFullscreen: n
|
|
917
|
+
})), void 0, !0)]),
|
|
918
|
+
key: "6"
|
|
919
|
+
} : void 0,
|
|
920
|
+
e.$slots.optionAnnotator ? {
|
|
921
|
+
name: "optionAnnotator",
|
|
922
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(v({
|
|
923
|
+
toggleAnnotator: t,
|
|
924
|
+
isAnnotator: n
|
|
925
|
+
})), void 0, !0)]),
|
|
926
|
+
key: "7"
|
|
927
|
+
} : void 0,
|
|
928
|
+
e.$slots.optionAltCopy ? {
|
|
929
|
+
name: "optionAltCopy",
|
|
930
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
|
|
931
|
+
key: "8"
|
|
932
|
+
} : void 0
|
|
933
|
+
]), 1032, [
|
|
934
|
+
"backgroundColor",
|
|
935
|
+
"color",
|
|
936
|
+
"isPrinting",
|
|
937
|
+
"isImaging",
|
|
938
|
+
"uid",
|
|
939
|
+
"hasPdf",
|
|
940
|
+
"hasImg",
|
|
941
|
+
"hasSvg",
|
|
942
|
+
"hasXls",
|
|
943
|
+
"hasTable",
|
|
944
|
+
"hasAltCopy",
|
|
945
|
+
"hasFullscreen",
|
|
946
|
+
"isFullcreen",
|
|
947
|
+
"chartElement",
|
|
948
|
+
"position",
|
|
949
|
+
"titles",
|
|
950
|
+
"hasAnnotator",
|
|
951
|
+
"isAnnotation",
|
|
952
|
+
"callbacks",
|
|
953
|
+
"printScale",
|
|
954
|
+
"tableDialog",
|
|
955
|
+
"isCursorPointer",
|
|
956
|
+
"onGeneratePdf",
|
|
957
|
+
"style"
|
|
958
|
+
])) : m("", !0),
|
|
959
|
+
g("div", We, [(x(), h("svg", {
|
|
960
|
+
ref_key: "svgRef",
|
|
961
|
+
ref: I,
|
|
962
|
+
xmlns: E(oe),
|
|
963
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
964
|
+
viewBox: `0 0 ${H.value.chartWidth <= 0 ? 10 : H.value.chartWidth} ${H.value.svgHeight <= 0 ? 10 : H.value.svgHeight}`,
|
|
965
|
+
class: Ne({
|
|
966
|
+
"vue-data-ui-loading": E(It),
|
|
967
|
+
"no-transition": !P.value.useCssAnimation,
|
|
968
|
+
"with-transition": P.value.useCssAnimation
|
|
969
|
+
}),
|
|
970
|
+
style: b(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
|
|
971
|
+
role: "img",
|
|
972
|
+
"aria-live": "polite",
|
|
973
|
+
preserveAspectRatio: "xMidYMid",
|
|
974
|
+
tabindex: "0",
|
|
975
|
+
onFocus: gn,
|
|
976
|
+
onBlur: _n,
|
|
977
|
+
onKeydown: bn
|
|
978
|
+
}, [
|
|
979
|
+
Ae(E(pt)),
|
|
980
|
+
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
981
|
+
key: 0,
|
|
982
|
+
x: H.value.left,
|
|
983
|
+
y: H.value.top,
|
|
984
|
+
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
985
|
+
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
986
|
+
style: { pointerEvents: "none" }
|
|
987
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : m("", !0),
|
|
988
|
+
(x(!0), h(d, null, C(U.value, (e) => (x(), h(d, null, [g("path", {
|
|
989
|
+
class: "transition-opacity",
|
|
990
|
+
d: `M${e.path}`,
|
|
991
|
+
stroke: P.value.style.chart.layout.lines.coatingColor,
|
|
992
|
+
"stroke-width": P.value.style.chart.layout.lines.strokeWidth + 2,
|
|
993
|
+
"stroke-linecap": "round",
|
|
994
|
+
"stroke-linejoin": "round",
|
|
995
|
+
fill: "none",
|
|
996
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
997
|
+
onMouseenter: (t) => M.value = e.id,
|
|
998
|
+
onMouseleave: n[0] ||= (e) => M.value = null
|
|
999
|
+
}, null, 44, qe), g("path", {
|
|
1000
|
+
class: "transition-opacity",
|
|
1001
|
+
d: `M${e.path}`,
|
|
1002
|
+
stroke: e.color,
|
|
1003
|
+
"stroke-width": P.value.style.chart.layout.lines.strokeWidth,
|
|
1004
|
+
"stroke-linecap": "round",
|
|
1005
|
+
"stroke-linejoin": "round",
|
|
1006
|
+
fill: "none",
|
|
1007
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
1008
|
+
onMouseenter: (t) => Z(e, e),
|
|
1009
|
+
onMouseleave: (t) => Q(e, e),
|
|
1010
|
+
onClick: (t) => $(e, e)
|
|
1011
|
+
}, null, 44, Je)], 64))), 256)),
|
|
1012
|
+
(x(!0), h(d, null, C(U.value, (t) => (x(), h(d, null, [
|
|
1013
|
+
P.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (x(!0), h(d, { key: 0 }, C(t.coordinates, (e, n) => (x(), h("circle", {
|
|
1014
|
+
class: "transition-opacity",
|
|
1015
|
+
cx: e.x,
|
|
1016
|
+
cy: e.y,
|
|
1017
|
+
r: P.value.style.chart.layout.plots.radius,
|
|
1018
|
+
fill: t.color,
|
|
1019
|
+
stroke: P.value.style.chart.layout.plots.stroke,
|
|
1020
|
+
"stroke-width": P.value.style.chart.layout.plots.strokeWidth,
|
|
1021
|
+
style: b({ opacity: M.value == null || M.value === t.id ? 1 : .1 }),
|
|
1022
|
+
onMouseenter: (r) => Z({
|
|
1023
|
+
...e,
|
|
1024
|
+
pointIndex: n
|
|
1025
|
+
}, t),
|
|
1026
|
+
onMouseleave: (r) => Q({
|
|
1027
|
+
...e,
|
|
1028
|
+
pointIndex: n
|
|
1029
|
+
}, t),
|
|
1030
|
+
onClick: (r) => Z({
|
|
1031
|
+
...e,
|
|
1032
|
+
pointIndex: n
|
|
1033
|
+
}, t)
|
|
1034
|
+
}, null, 44, Ye))), 256)) : m("", !0),
|
|
1035
|
+
P.value.style.chart.layout.plots.labels.show && P.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (x(!0), h(d, { key: 1 }, C(t.coordinates, (e) => (x(), h("text", {
|
|
1036
|
+
class: "transition-opacity",
|
|
1037
|
+
x: e.x,
|
|
1038
|
+
y: e.y + P.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
1039
|
+
fill: e.labelColor,
|
|
1040
|
+
"font-size": P.value.style.chart.layout.plots.labels.fontSize,
|
|
1041
|
+
"text-anchor": "middle",
|
|
1042
|
+
style: b({
|
|
1043
|
+
userSelect: "none",
|
|
1044
|
+
pointerEvents: "none",
|
|
1045
|
+
opacity: M.value == null || M.value === t.id ? 1 : .1
|
|
1046
|
+
})
|
|
1047
|
+
}, T(e.rank), 13, Xe))), 256)) : m("", !0),
|
|
1048
|
+
P.value.style.chart.layout.plots.labels.displayedValue === "value" ? (x(!0), h(d, { key: 2 }, C(t.coordinates, (n) => (x(), h(d, null, [E(u)(n.value) ? (x(), h("rect", je({
|
|
1049
|
+
key: 0,
|
|
1050
|
+
class: "transition-opacity"
|
|
1051
|
+
}, { ref_for: !0 }, un(n), {
|
|
1052
|
+
style: { opacity: M.value == null || M.value === t.id ? 1 : .1 },
|
|
1053
|
+
onMouseenter: (n) => Z({
|
|
1054
|
+
...e.point,
|
|
1055
|
+
pointIndex: e.i
|
|
1056
|
+
}, t),
|
|
1057
|
+
onMouseleave: (n) => Q({
|
|
1058
|
+
...e.point,
|
|
1059
|
+
pointIndex: e.i
|
|
1060
|
+
}, t),
|
|
1061
|
+
onClick: (n) => Z({
|
|
1062
|
+
...e.point,
|
|
1063
|
+
pointIndex: e.i
|
|
1064
|
+
}, t)
|
|
1065
|
+
}), null, 16, Ze)) : m("", !0), E(u)(n.value) && P.value.style.chart.layout.plots.labels.show ? (x(), h("text", {
|
|
1066
|
+
key: 1,
|
|
1067
|
+
class: "transition-opacity",
|
|
1068
|
+
x: n.x,
|
|
1069
|
+
y: n.y + P.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
1070
|
+
fill: n.labelColor,
|
|
1071
|
+
"font-size": P.value.style.chart.layout.plots.labels.fontSize,
|
|
1072
|
+
"text-anchor": "middle",
|
|
1073
|
+
style: b({
|
|
1074
|
+
userSelect: "none",
|
|
1075
|
+
pointerEvents: "none",
|
|
1076
|
+
opacity: M.value == null || M.value === t.id ? 1 : .1
|
|
1077
|
+
})
|
|
1078
|
+
}, T(n.displayValue), 13, Qe)) : m("", !0)], 64))), 256)) : m("", !0)
|
|
1079
|
+
], 64))), 256)),
|
|
1080
|
+
P.value.style.chart.layout.nameLabels.leftLabels.show ? (x(), h("g", {
|
|
1081
|
+
key: 1,
|
|
1082
|
+
ref_key: "labelsLeft",
|
|
1083
|
+
ref: jt
|
|
1084
|
+
}, [(x(!0), h(d, null, C(ln.value.left.filter((e) => E(u)(e.value)), (e, n) => (x(), h("text", {
|
|
1085
|
+
class: "transition-opacity",
|
|
1086
|
+
x: H.value.left,
|
|
1087
|
+
y: e.y + P.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
1088
|
+
fill: P.value.style.chart.layout.nameLabels.useSerieColor ? e.color : P.value.style.chart.layout.nameLabels.color,
|
|
1089
|
+
"font-size": P.value.style.chart.layout.nameLabels.fontSize,
|
|
1090
|
+
"font--weight": P.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
|
|
1091
|
+
"text-anchor": "end",
|
|
1092
|
+
innerHTML: E(t)({
|
|
1093
|
+
content: e.name,
|
|
1094
|
+
fontSize: P.value.style.chart.layout.nameLabels.fontSize,
|
|
1095
|
+
fill: P.value.style.chart.layout.nameLabels.useSerieColor ? e.color : P.value.style.chart.layout.nameLabels.color,
|
|
1096
|
+
x: H.value.left - P.value.style.chart.layout.nameLabels.offsetX,
|
|
1097
|
+
y: e.y + P.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
1098
|
+
translateY: !0
|
|
1099
|
+
}),
|
|
1100
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
1101
|
+
onMouseenter: (t) => Z(e, e),
|
|
1102
|
+
onMouseleave: (t) => Q(e, e),
|
|
1103
|
+
onClick: (t) => $(e, e)
|
|
1104
|
+
}, null, 44, $e))), 256))], 512)) : m("", !0),
|
|
1105
|
+
P.value.style.chart.layout.nameLabels.rightLabels.show ? (x(), h("g", {
|
|
1106
|
+
key: 2,
|
|
1107
|
+
ref_key: "labelsRight",
|
|
1108
|
+
ref: Mt
|
|
1109
|
+
}, [(x(!0), h(d, null, C(ln.value.right.filter((e) => E(u)(e.value)), (e, n) => (x(), h("text", {
|
|
1110
|
+
class: "transition-opacity",
|
|
1111
|
+
x: H.value.right,
|
|
1112
|
+
y: e.y + P.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
1113
|
+
fill: P.value.style.chart.layout.nameLabels.useSerieColor ? e.color : P.value.style.chart.layout.nameLabels.color,
|
|
1114
|
+
"font-size": P.value.style.chart.layout.nameLabels.fontSize,
|
|
1115
|
+
"font--weight": P.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
|
|
1116
|
+
"text-anchor": "start",
|
|
1117
|
+
innerHTML: E(t)({
|
|
1118
|
+
content: e.name,
|
|
1119
|
+
fontSize: P.value.style.chart.layout.nameLabels.fontSize,
|
|
1120
|
+
fill: P.value.style.chart.layout.nameLabels.useSerieColor ? e.color : P.value.style.chart.layout.nameLabels.color,
|
|
1121
|
+
x: H.value.right + P.value.style.chart.layout.nameLabels.offsetX,
|
|
1122
|
+
y: e.y + P.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
1123
|
+
translateY: !0
|
|
1124
|
+
}),
|
|
1125
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
1126
|
+
onMouseenter: (t) => Z(e, e),
|
|
1127
|
+
onMouseleave: (t) => Q(e, e),
|
|
1128
|
+
onClick: (t) => $(e, e)
|
|
1129
|
+
}, null, 44, et))), 256))], 512)) : m("", !0),
|
|
1130
|
+
P.value.style.chart.layout.timeLabels.show ? (x(), h("g", {
|
|
1131
|
+
key: 3,
|
|
1132
|
+
ref_key: "timeLabelsEls",
|
|
1133
|
+
ref: Nt
|
|
1134
|
+
}, [e.$slots["time-label"] ? (x(), h("g", tt, [(x(!0), h(d, null, C(G.value, (t, n) => (x(), h("g", null, [w(e.$slots, "time-label", je({ ref_for: !0 }, {
|
|
1135
|
+
x: H.value.unitW * n + H.value.unitW / 2 + H.value.left,
|
|
1136
|
+
y: H.value.chartHeight + P.value.style.chart.layout.timeLabels.offsetY,
|
|
1137
|
+
fontSize: P.value.style.chart.layout.timeLabels.fontSize,
|
|
1138
|
+
fill: P.value.style.chart.layout.timeLabels.color,
|
|
1139
|
+
transform: `translate(${H.value.unitW * n + H.value.unitW / 2 + H.value.left}, ${H.value.chartHeight + P.value.style.chart.layout.timeLabels.offsetY}), rotate(${P.value.style.chart.layout.timeLabels.rotation})`,
|
|
1140
|
+
absoluteIndex: t.absoluteIndex,
|
|
1141
|
+
content: t.text,
|
|
1142
|
+
textAnchor: P.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : P.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1143
|
+
show: !0
|
|
1144
|
+
}), void 0, !0)]))), 256))])) : (x(), h("g", nt, [(x(!0), h(d, null, C(G.value, (e, n) => (x(), h("g", null, [String(e.text).includes("\n") ? (x(), h("text", {
|
|
1145
|
+
key: n + "-multi",
|
|
1146
|
+
"text-anchor": P.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : P.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1147
|
+
"font-size": P.value.style.chart.layout.timeLabels.fontSize,
|
|
1148
|
+
fill: P.value.style.chart.layout.timeLabels.color,
|
|
1149
|
+
transform: `
|
|
1150
|
+
translate(
|
|
1151
|
+
${H.value.unitW * n + H.value.unitW / 2 + H.value.left},
|
|
1152
|
+
${H.value.chartHeight + P.value.style.chart.layout.timeLabels.fontSize * 1.3 + P.value.style.chart.layout.timeLabels.offsetY}
|
|
1153
|
+
),
|
|
1154
|
+
rotate(${P.value.style.chart.layout.timeLabels.rotation})
|
|
1155
|
+
`,
|
|
1156
|
+
innerHTML: E(t)({
|
|
1157
|
+
content: String(e.text),
|
|
1158
|
+
fontSize: P.value.style.chart.layout.timeLabels.fontSize,
|
|
1159
|
+
fill: P.value.style.chart.layout.timeLabels.color,
|
|
1160
|
+
x: 0,
|
|
1161
|
+
y: 0
|
|
1162
|
+
})
|
|
1163
|
+
}, null, 8, it)) : (x(), h("text", {
|
|
1164
|
+
class: "vue-data-ui-time-label",
|
|
1165
|
+
key: n,
|
|
1166
|
+
"text-anchor": P.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : P.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1167
|
+
"font-size": P.value.style.chart.layout.timeLabels.fontSize,
|
|
1168
|
+
"font-weight": P.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
|
|
1169
|
+
fill: P.value.style.chart.layout.timeLabels.color,
|
|
1170
|
+
transform: `translate(${H.value.unitW * n + H.value.unitW / 2 + H.value.left}, ${H.value.chartHeight + P.value.style.chart.layout.timeLabels.offsetY}), rotate(${P.value.style.chart.layout.timeLabels.rotation})`
|
|
1171
|
+
}, T(e.text), 9, rt))]))), 256))]))], 512)) : m("", !0),
|
|
1172
|
+
w(e.$slots, "svg", { svg: {
|
|
1173
|
+
drawingArea: H.value,
|
|
1174
|
+
data: U.value,
|
|
1175
|
+
isPrintingImg: E(Gt) || E(Kt) || kt.value,
|
|
1176
|
+
isPrintingSvg: At.value
|
|
1177
|
+
} }, void 0, !0)
|
|
1178
|
+
], 46, Ge)), e.$slots.hint ? (x(), h("div", at, [w(e.$slots, "hint", y(v({
|
|
1179
|
+
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1180
|
+
isVisible: Pt.value
|
|
1181
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1182
|
+
e.$slots.watermark ? (x(), h("div", ot, [w(e.$slots, "watermark", y(v({ isPrinting: E(Gt) || E(Kt) || kt.value || At.value })), void 0, !0)])) : m("", !0),
|
|
1183
|
+
vt.value && P.value.userOptions.buttons.table ? (x(), p(Ie(Y.value.component), je({ key: 6 }, Y.value.props, {
|
|
1184
|
+
ref_key: "tableUnit",
|
|
1185
|
+
ref: j,
|
|
1186
|
+
onClose: wn
|
|
1187
|
+
}), Oe({
|
|
1188
|
+
content: D(() => [Ae(E(ut), {
|
|
1189
|
+
colNames: X.value.colNames,
|
|
1190
|
+
head: X.value.head,
|
|
1191
|
+
body: X.value.body,
|
|
1192
|
+
config: X.value.config,
|
|
1193
|
+
title: P.value.table.useDialog ? "" : Y.value.title,
|
|
1194
|
+
withCloseButton: !P.value.table.useDialog,
|
|
1195
|
+
isCursorPointer: F.value,
|
|
1196
|
+
onClose: wn
|
|
1197
|
+
}, {
|
|
1198
|
+
th: D(({ th: e }) => [g("div", { innerHTML: e }, null, 8, st)]),
|
|
1199
|
+
td: D(({ td: e }) => [ke(T(e), 1)]),
|
|
1200
|
+
_: 1
|
|
1201
|
+
}, 8, [
|
|
1202
|
+
"colNames",
|
|
1203
|
+
"head",
|
|
1204
|
+
"body",
|
|
1205
|
+
"config",
|
|
1206
|
+
"title",
|
|
1207
|
+
"withCloseButton",
|
|
1208
|
+
"isCursorPointer"
|
|
1209
|
+
])]),
|
|
1210
|
+
_: 2
|
|
1211
|
+
}, [P.value.table.useDialog ? {
|
|
1212
|
+
name: "title",
|
|
1213
|
+
fn: D(() => [ke(T(Y.value.title), 1)]),
|
|
1214
|
+
key: "0"
|
|
1215
|
+
} : void 0, P.value.table.useDialog ? {
|
|
1216
|
+
name: "actions",
|
|
1217
|
+
fn: D(() => [g("button", {
|
|
1218
|
+
tabindex: "0",
|
|
1219
|
+
class: "vue-ui-user-options-button",
|
|
1220
|
+
onClick: n[1] ||= (e) => En(P.value.userOptions.callbacks.csv),
|
|
1221
|
+
style: b({ cursor: F.value ? "pointer" : "default" })
|
|
1222
|
+
}, [Ae(E(ct), {
|
|
1223
|
+
name: "fileCsv",
|
|
1224
|
+
stroke: Y.value.props.color
|
|
1225
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1226
|
+
key: "1"
|
|
1227
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1228
|
+
e.$slots.source ? (x(), h("div", {
|
|
1229
|
+
key: 7,
|
|
1230
|
+
ref_key: "source",
|
|
1231
|
+
ref: St,
|
|
1232
|
+
dir: "auto"
|
|
1233
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1234
|
+
w(e.$slots, "skeleton", {}, () => [E(It) ? (x(), p(me, { key: 0 })) : m("", !0)], !0)
|
|
1235
|
+
], 46, He));
|
|
1236
|
+
}
|
|
1237
|
+
}, [["__scopeId", "data-v-26d786f8"]]);
|
|
1238
|
+
//#endregion
|
|
1239
|
+
export { Ve as n, ct as t };
|