vue-data-ui 3.17.13 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-Cj6W6Xbi.js +116 -0
- package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
- package/dist/BaseIcon-CEmt3Ifx.js +499 -0
- package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
- package/dist/ColorPicker-DS_QkH3W.js +255 -0
- package/dist/DataTable-BvDJEAma.js +150 -0
- package/dist/Legend-Gg5Q4Clb.js +114 -0
- package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
- package/dist/PackageVersion-DhDKg-ez.js +11 -0
- package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-DEGOZ6GG.js +141 -0
- package/dist/Slicer-BlfyiHHD.js +1144 -0
- package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
- package/dist/SparkTooltip-c2DL7gqD.js +93 -0
- package/dist/Title-__gWq2g6.js +87 -0
- package/dist/Tooltip-B7lmdbac.js +307 -0
- package/dist/UserOptions-DMw8EZEo.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-9WSt6hXe.js +237 -0
- package/dist/exposedLib-CwWU4zv-.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-BjOr008R.js +74 -0
- package/dist/labelUtils-Cr97N8E1.js +19 -0
- package/dist/lib-BkiwukKO.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-DSXSFUnK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4775 -627
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-BV0kTCnO.js +7431 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-Ck4hsrpu.js +10 -0
- package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-X0yWOynH.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-DIh8ayZc.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
- package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
- package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
- package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
- package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
- package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
- package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
- package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
- package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
- package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
- package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
- package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
- package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
- package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
- package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
- package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
- package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
- package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
- package/dist/vue-ui-flow-OK563Z46.js +1223 -0
- package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
- package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
- package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
- package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
- package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
- package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
- package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
- package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
- package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
- package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
- package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
- package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
- package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
- package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
- package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
- package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
- package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
- package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
- package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
- package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
- package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
- package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
- package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
- package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
- package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
- package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
- package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
- package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
- package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
- package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
- package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
- package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
- package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
- package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
- package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
- package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
- package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
- package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
- package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
- package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
- package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
- package/dist/vue-ui-world-CEevuFbk.js +14252 -0
- package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
- package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,1612 @@
|
|
|
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 ee, Nt as o, O as te, S as s, St as ne, Tt as re, X as ie, ct as ae, i as c, k as oe, ot as se, q as ce, r as le, t as ue, x as de, y as fe, zt as pe } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as me } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
+
import { t as he } from "./useConfig-BV0kTCnO.js";
|
|
5
|
+
import { t as ge } from "./usePrinter-X0yWOynH.js";
|
|
6
|
+
import { n as _e, t as ve } from "./BaseScanner-C7dmAref.js";
|
|
7
|
+
import { t as ye } from "./useSvgExport-Dtu973wa.js";
|
|
8
|
+
import { t as be } from "./useNestedProp-Ck4hsrpu.js";
|
|
9
|
+
import { t as xe } from "./useThemeCheck-rFK9Zlb_.js";
|
|
10
|
+
import { t as Se } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
11
|
+
import { t as Ce } from "./img-BjOr008R.js";
|
|
12
|
+
import { n as we } from "./Title-__gWq2g6.js";
|
|
13
|
+
import { t as Te } from "./Shape-DEGOZ6GG.js";
|
|
14
|
+
import { t as Ee } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
15
|
+
import { c as De } from "./canvas-lib-DTaADQOK.js";
|
|
16
|
+
import { t as Oe } from "./useResponsive-CrAInupd.js";
|
|
17
|
+
import { t as ke } from "./BaseLegendToggle-DUIqQmwM.js";
|
|
18
|
+
import { t as Ae } from "./A11yDataTable-q2-8fSlJ.js";
|
|
19
|
+
import { t as je } from "./useUserOptionState-CjPJPTg2.js";
|
|
20
|
+
import { t as Me } from "./useChartAccessibility-Do37qcw2.js";
|
|
21
|
+
import { t as Ne } from "./Legend-Gg5Q4Clb.js";
|
|
22
|
+
import { t as Pe } from "./vue_ui_ridgeline-CAtYca4b.js";
|
|
23
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Ve, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as C, toRefs as We, unref as w, watch as Ge, watchEffect as Ke, withCtx as T } from "vue";
|
|
24
|
+
//#region src/components/vue-ui-ridgeline.vue
|
|
25
|
+
var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
|
|
26
|
+
"xmlns",
|
|
27
|
+
"aria-describedby",
|
|
28
|
+
"viewBox"
|
|
29
|
+
], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], nt = ["stop-color"], rt = ["id"], it = ["stop-color"], at = ["stop-color"], ot = ["stop-color"], st = ["stop-color"], ct = { key: 0 }, lt = ["fill", "d"], ut = [
|
|
30
|
+
"stroke",
|
|
31
|
+
"stroke-width",
|
|
32
|
+
"d"
|
|
33
|
+
], dt = ["fill", "d"], ft = [
|
|
34
|
+
"stroke",
|
|
35
|
+
"stroke-dasharray",
|
|
36
|
+
"stroke-width",
|
|
37
|
+
"d"
|
|
38
|
+
], pt = [
|
|
39
|
+
"x1",
|
|
40
|
+
"y1",
|
|
41
|
+
"x2",
|
|
42
|
+
"y2",
|
|
43
|
+
"stroke",
|
|
44
|
+
"stroke-width",
|
|
45
|
+
"stroke-dasharray"
|
|
46
|
+
], mt = [
|
|
47
|
+
"cx",
|
|
48
|
+
"cy",
|
|
49
|
+
"stroke",
|
|
50
|
+
"stroke-width",
|
|
51
|
+
"r",
|
|
52
|
+
"fill"
|
|
53
|
+
], ht = [
|
|
54
|
+
"x",
|
|
55
|
+
"y",
|
|
56
|
+
"font-size",
|
|
57
|
+
"font-weight",
|
|
58
|
+
"fill",
|
|
59
|
+
"text-decoration",
|
|
60
|
+
"onMouseenter",
|
|
61
|
+
"onClick"
|
|
62
|
+
], gt = { key: 0 }, _t = [
|
|
63
|
+
"font-size",
|
|
64
|
+
"fill",
|
|
65
|
+
"font-weight",
|
|
66
|
+
"transform",
|
|
67
|
+
"text-anchor"
|
|
68
|
+
], vt = [
|
|
69
|
+
"font-size",
|
|
70
|
+
"fill",
|
|
71
|
+
"font-weight",
|
|
72
|
+
"transform",
|
|
73
|
+
"text-anchor",
|
|
74
|
+
"innerHTML"
|
|
75
|
+
], yt = [
|
|
76
|
+
"x",
|
|
77
|
+
"y",
|
|
78
|
+
"width",
|
|
79
|
+
"height",
|
|
80
|
+
"onMouseenter",
|
|
81
|
+
"onMouseleave",
|
|
82
|
+
"onClick"
|
|
83
|
+
], bt = [
|
|
84
|
+
"x1",
|
|
85
|
+
"x2",
|
|
86
|
+
"y1",
|
|
87
|
+
"y2",
|
|
88
|
+
"stroke",
|
|
89
|
+
"stroke-width",
|
|
90
|
+
"stroke-dasharray"
|
|
91
|
+
], xt = [
|
|
92
|
+
"cx",
|
|
93
|
+
"cy",
|
|
94
|
+
"stroke",
|
|
95
|
+
"stroke-width",
|
|
96
|
+
"r",
|
|
97
|
+
"fill"
|
|
98
|
+
], St = [
|
|
99
|
+
"x",
|
|
100
|
+
"y",
|
|
101
|
+
"text-anchor",
|
|
102
|
+
"font-size",
|
|
103
|
+
"fill"
|
|
104
|
+
], Ct = {
|
|
105
|
+
key: 0,
|
|
106
|
+
style: {
|
|
107
|
+
position: "absolute",
|
|
108
|
+
top: "100%",
|
|
109
|
+
left: "0",
|
|
110
|
+
width: "100%"
|
|
111
|
+
},
|
|
112
|
+
"data-dom-to-png-ignore": "",
|
|
113
|
+
"aria-hidden": "true"
|
|
114
|
+
}, wt = {
|
|
115
|
+
key: 5,
|
|
116
|
+
class: "vue-data-ui-watermark"
|
|
117
|
+
}, Tt = ["onClick"], Et = ["innerHTML"], Dt = /* @__PURE__ */ Ee({
|
|
118
|
+
__name: "vue-ui-ridgeline",
|
|
119
|
+
props: {
|
|
120
|
+
config: {
|
|
121
|
+
type: Object,
|
|
122
|
+
default() {
|
|
123
|
+
return {};
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
dataset: {
|
|
127
|
+
type: Array,
|
|
128
|
+
default() {
|
|
129
|
+
return [];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
emits: [
|
|
134
|
+
"selectLegend",
|
|
135
|
+
"selectDatapoint",
|
|
136
|
+
"selectX",
|
|
137
|
+
"copyAlt"
|
|
138
|
+
],
|
|
139
|
+
setup(e, { expose: Ee, emit: qe }) {
|
|
140
|
+
let Dt = h(() => import("./vue-ui-xy-1hee-IEM.js").then((e) => e.n)), Ot = h(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), kt = h(() => import("./vue-ui-accordion-cVv18nTV.js").then((e) => e.n)), At = h(() => import("./DataTable-BvDJEAma.js")), jt = h(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Mt = h(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), Nt = h(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), Pt = h(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), { vue_ui_ridgeline: Ft } = he(), { isThemeValid: It, warnInvalidTheme: Lt } = xe(), E = e, D = u({
|
|
141
|
+
get() {
|
|
142
|
+
return Array.isArray(z.value) && z.value.length > 0;
|
|
143
|
+
},
|
|
144
|
+
set(e) {
|
|
145
|
+
return e;
|
|
146
|
+
}
|
|
147
|
+
}), Rt = qe, O = b(null), zt = b(null), Bt = b(null), k = Ue(null), A = Ue(null), Vt = b(null), Ht = b(null), Ut = b(0), Wt = b(0), Gt = b(0), j = b(r()), Kt = b(0), qt = b(0), Jt = b(512), M = b(null), N = b(null), Yt = b(null), Xt = b(0), Zt = b(null), P = b(null), Qt = b(null), $t = b(!1), en = b(!1), F = b(null), tn = b(!1);
|
|
148
|
+
function nn() {
|
|
149
|
+
let e = be({
|
|
150
|
+
userConfig: E.config,
|
|
151
|
+
defaultConfig: Ft
|
|
152
|
+
}), t = e.theme;
|
|
153
|
+
if (!t) return e;
|
|
154
|
+
if (!It.value(e)) return Lt(e), e;
|
|
155
|
+
let n = be({
|
|
156
|
+
userConfig: Pe[t] || E.config,
|
|
157
|
+
defaultConfig: e
|
|
158
|
+
}), r = be({
|
|
159
|
+
userConfig: E.config,
|
|
160
|
+
defaultConfig: n
|
|
161
|
+
});
|
|
162
|
+
return {
|
|
163
|
+
...r,
|
|
164
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || re
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
let I = b(nn()), L = u(() => I.value.userOptions.useCursorPointer), rn = u(() => pe({
|
|
168
|
+
defaultConfig: {
|
|
169
|
+
userOptions: { show: !1 },
|
|
170
|
+
table: { show: !1 },
|
|
171
|
+
style: { chart: {
|
|
172
|
+
backgroundColor: "#99999930",
|
|
173
|
+
areas: {
|
|
174
|
+
maxPoint: { show: !1 },
|
|
175
|
+
opacity: .9,
|
|
176
|
+
stroke: { useSerieColor: !0 }
|
|
177
|
+
},
|
|
178
|
+
legend: { backgroundColor: "transparent" },
|
|
179
|
+
padding: {
|
|
180
|
+
right: -24,
|
|
181
|
+
left: 0
|
|
182
|
+
},
|
|
183
|
+
xAxis: { labels: { values: [] } },
|
|
184
|
+
yAxis: { labels: { fontSize: 0 } },
|
|
185
|
+
zeroLine: { show: !1 }
|
|
186
|
+
} }
|
|
187
|
+
},
|
|
188
|
+
userConfig: I.value.skeletonConfig ?? {}
|
|
189
|
+
})), { loading: R, FINAL_DATASET: z, manualLoading: an } = _e({
|
|
190
|
+
...We(E),
|
|
191
|
+
FINAL_CONFIG: I,
|
|
192
|
+
prepareConfig: nn,
|
|
193
|
+
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
194
|
+
{
|
|
195
|
+
name: "_",
|
|
196
|
+
datapoints: [{
|
|
197
|
+
name: "__",
|
|
198
|
+
color: "#999999",
|
|
199
|
+
values: [
|
|
200
|
+
28.639,
|
|
201
|
+
32.04,
|
|
202
|
+
41.134,
|
|
203
|
+
44.525,
|
|
204
|
+
21.151,
|
|
205
|
+
2.436,
|
|
206
|
+
.218,
|
|
207
|
+
.024,
|
|
208
|
+
.002,
|
|
209
|
+
0,
|
|
210
|
+
0,
|
|
211
|
+
0
|
|
212
|
+
]
|
|
213
|
+
}, {
|
|
214
|
+
name: "_",
|
|
215
|
+
color: "#CACACA",
|
|
216
|
+
values: [
|
|
217
|
+
13.253,
|
|
218
|
+
15.621,
|
|
219
|
+
23.36,
|
|
220
|
+
33.698,
|
|
221
|
+
29.935,
|
|
222
|
+
10.874,
|
|
223
|
+
2.364,
|
|
224
|
+
.561,
|
|
225
|
+
.107,
|
|
226
|
+
.02,
|
|
227
|
+
.006,
|
|
228
|
+
.004
|
|
229
|
+
]
|
|
230
|
+
}]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: "_",
|
|
234
|
+
datapoints: [{
|
|
235
|
+
name: "_",
|
|
236
|
+
color: "#999999",
|
|
237
|
+
values: [
|
|
238
|
+
10.851,
|
|
239
|
+
13.195,
|
|
240
|
+
21.617,
|
|
241
|
+
36.556,
|
|
242
|
+
42.292,
|
|
243
|
+
21.006,
|
|
244
|
+
3.398,
|
|
245
|
+
.223,
|
|
246
|
+
.013,
|
|
247
|
+
.001,
|
|
248
|
+
0,
|
|
249
|
+
0
|
|
250
|
+
]
|
|
251
|
+
}, {
|
|
252
|
+
name: "_",
|
|
253
|
+
color: "#CACACA",
|
|
254
|
+
values: [
|
|
255
|
+
3.171,
|
|
256
|
+
4.115,
|
|
257
|
+
8.108,
|
|
258
|
+
18.248,
|
|
259
|
+
31.641,
|
|
260
|
+
29.063,
|
|
261
|
+
12.031,
|
|
262
|
+
2.742,
|
|
263
|
+
.504,
|
|
264
|
+
.102,
|
|
265
|
+
.032,
|
|
266
|
+
.021
|
|
267
|
+
]
|
|
268
|
+
}]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "_",
|
|
272
|
+
datapoints: [{
|
|
273
|
+
name: "_",
|
|
274
|
+
color: "#999999",
|
|
275
|
+
values: [
|
|
276
|
+
1.731,
|
|
277
|
+
2.334,
|
|
278
|
+
5.125,
|
|
279
|
+
13.626,
|
|
280
|
+
29.911,
|
|
281
|
+
38.524,
|
|
282
|
+
24.168,
|
|
283
|
+
7.646,
|
|
284
|
+
1.575,
|
|
285
|
+
.317,
|
|
286
|
+
.097,
|
|
287
|
+
.063
|
|
288
|
+
]
|
|
289
|
+
}, {
|
|
290
|
+
name: "_",
|
|
291
|
+
color: "#CACACA",
|
|
292
|
+
values: [
|
|
293
|
+
.25,
|
|
294
|
+
.367,
|
|
295
|
+
1.026,
|
|
296
|
+
3.944,
|
|
297
|
+
13.635,
|
|
298
|
+
28.891,
|
|
299
|
+
30.149,
|
|
300
|
+
15.419,
|
|
301
|
+
4.714,
|
|
302
|
+
1.246,
|
|
303
|
+
.442,
|
|
304
|
+
.299
|
|
305
|
+
]
|
|
306
|
+
}]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "_",
|
|
310
|
+
datapoints: [{
|
|
311
|
+
name: "_",
|
|
312
|
+
color: "#999999",
|
|
313
|
+
values: [
|
|
314
|
+
.034,
|
|
315
|
+
.054,
|
|
316
|
+
.194,
|
|
317
|
+
1.065,
|
|
318
|
+
5.747,
|
|
319
|
+
20.735,
|
|
320
|
+
38.306,
|
|
321
|
+
32.899,
|
|
322
|
+
15.318,
|
|
323
|
+
5.566,
|
|
324
|
+
2.422,
|
|
325
|
+
1.76
|
|
326
|
+
]
|
|
327
|
+
}, {
|
|
328
|
+
name: "_",
|
|
329
|
+
color: "#CACACA",
|
|
330
|
+
values: [
|
|
331
|
+
.001,
|
|
332
|
+
.002,
|
|
333
|
+
.009,
|
|
334
|
+
.095,
|
|
335
|
+
1.124,
|
|
336
|
+
8.342,
|
|
337
|
+
27.115,
|
|
338
|
+
35.08,
|
|
339
|
+
21.449,
|
|
340
|
+
9.093,
|
|
341
|
+
4.243,
|
|
342
|
+
3.143
|
|
343
|
+
]
|
|
344
|
+
}]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "_",
|
|
348
|
+
datapoints: [{
|
|
349
|
+
name: "_",
|
|
350
|
+
color: "#999999",
|
|
351
|
+
values: [
|
|
352
|
+
0,
|
|
353
|
+
.001,
|
|
354
|
+
.004,
|
|
355
|
+
.051,
|
|
356
|
+
.567,
|
|
357
|
+
3.322,
|
|
358
|
+
14.215,
|
|
359
|
+
44.783,
|
|
360
|
+
40.351,
|
|
361
|
+
20.377,
|
|
362
|
+
9.866,
|
|
363
|
+
7.378
|
|
364
|
+
]
|
|
365
|
+
}, {
|
|
366
|
+
name: "_",
|
|
367
|
+
color: "#CACACA",
|
|
368
|
+
values: [
|
|
369
|
+
0,
|
|
370
|
+
0,
|
|
371
|
+
0,
|
|
372
|
+
0,
|
|
373
|
+
.001,
|
|
374
|
+
.11,
|
|
375
|
+
4.136,
|
|
376
|
+
27.498,
|
|
377
|
+
43.24,
|
|
378
|
+
29.807,
|
|
379
|
+
17.345,
|
|
380
|
+
13.678
|
|
381
|
+
]
|
|
382
|
+
}]
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: "_",
|
|
386
|
+
datapoints: [{
|
|
387
|
+
name: "_",
|
|
388
|
+
color: "#999999",
|
|
389
|
+
values: [
|
|
390
|
+
0,
|
|
391
|
+
0,
|
|
392
|
+
0,
|
|
393
|
+
0,
|
|
394
|
+
.025,
|
|
395
|
+
.598,
|
|
396
|
+
3.886,
|
|
397
|
+
10.645,
|
|
398
|
+
54.479,
|
|
399
|
+
45.953,
|
|
400
|
+
30.814,
|
|
401
|
+
24.55
|
|
402
|
+
]
|
|
403
|
+
}, {
|
|
404
|
+
name: "_",
|
|
405
|
+
color: "#CACACA",
|
|
406
|
+
values: [
|
|
407
|
+
0,
|
|
408
|
+
0,
|
|
409
|
+
0,
|
|
410
|
+
0,
|
|
411
|
+
0,
|
|
412
|
+
0,
|
|
413
|
+
.007,
|
|
414
|
+
1.655,
|
|
415
|
+
26.63,
|
|
416
|
+
52.017,
|
|
417
|
+
45.192,
|
|
418
|
+
39.651
|
|
419
|
+
]
|
|
420
|
+
}]
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
skeletonConfig: pe({
|
|
424
|
+
defaultConfig: I.value,
|
|
425
|
+
userConfig: rn.value
|
|
426
|
+
})
|
|
427
|
+
}), B = b(Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight)), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = je({ config: I.value }), { svgRef: V } = Me({ config: I.value.style.chart.title }), ln = u(() => !!I.value.debug);
|
|
428
|
+
function un() {
|
|
429
|
+
let e = z.value || [];
|
|
430
|
+
if (!Array.isArray(e) || e.length === 0) {
|
|
431
|
+
ie({
|
|
432
|
+
componentName: "VueUiRidgeline",
|
|
433
|
+
type: "dataset",
|
|
434
|
+
debug: ln.value
|
|
435
|
+
}), an.value = !0;
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
if (e.forEach((e, t) => {
|
|
439
|
+
se({
|
|
440
|
+
datasetObject: e,
|
|
441
|
+
requiredAttributes: ["name", "datapoints"]
|
|
442
|
+
}).forEach((e) => {
|
|
443
|
+
D.value = !1, ie({
|
|
444
|
+
componentName: "VueUiRidgeline",
|
|
445
|
+
type: "datasetSerieAttribute",
|
|
446
|
+
property: e,
|
|
447
|
+
index: t,
|
|
448
|
+
debug: ln.value
|
|
449
|
+
});
|
|
450
|
+
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
|
|
451
|
+
se({
|
|
452
|
+
datasetObject: e,
|
|
453
|
+
requiredAttributes: ["name", "values"]
|
|
454
|
+
}).forEach((e) => {
|
|
455
|
+
D.value = !1, ie({
|
|
456
|
+
componentName: "VueUiRidgeline",
|
|
457
|
+
type: "datasetSerieAttribute",
|
|
458
|
+
property: `datapoint.${e}`,
|
|
459
|
+
index: `${t}-${n}`,
|
|
460
|
+
debug: ln.value
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
}), qt.value = e.length, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), ne(E.dataset) || (an.value = I.value.loading), I.value.responsive) {
|
|
465
|
+
let t = De(() => {
|
|
466
|
+
let { width: t, height: n } = Oe({
|
|
467
|
+
chart: O.value,
|
|
468
|
+
title: I.value.style.chart.title.text ? zt.value : null,
|
|
469
|
+
legend: I.value.style.chart.legend.show ? Bt.value : null,
|
|
470
|
+
source: Vt.value,
|
|
471
|
+
noTitle: Ht.value,
|
|
472
|
+
padding: I.value.style.chart.padding
|
|
473
|
+
});
|
|
474
|
+
requestAnimationFrame(() => {
|
|
475
|
+
Jt.value = t, B.value = e.length ? n / e.length : 0, Xt.value = n - 12;
|
|
476
|
+
});
|
|
477
|
+
});
|
|
478
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(t), A.value = O.value?.parentNode || null, A.value && k.value.observe(A.value);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
Ve(() => {
|
|
482
|
+
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
|
|
483
|
+
});
|
|
484
|
+
let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = ge({
|
|
485
|
+
elementId: `vue-ui-ridgeline_${j.value}`,
|
|
486
|
+
fileName: I.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
487
|
+
options: I.value.userOptions.print
|
|
488
|
+
}), hn = u(() => I.value.userOptions.show && !I.value.style.chart.title.text), gn = u(() => de(I.value.customPalette)), H = b({ showTable: I.value.table.show });
|
|
489
|
+
Ge(() => z.value, async (e) => {
|
|
490
|
+
Array.isArray(e) && e.length && (on.value = !I.value.userOptions.showOnChartHover, await ze(), un(), Ut.value += 1, Gt.value += 1, H.value.showTable = I.value.table.show);
|
|
491
|
+
}, {
|
|
492
|
+
deep: !0,
|
|
493
|
+
immediate: !0
|
|
494
|
+
}), Ge(() => E.dataset, (e) => {
|
|
495
|
+
Array.isArray(e) && e.length > 0 && (an.value = !1);
|
|
496
|
+
}, { deep: !0 }), Ge(() => R.value, async (e) => {
|
|
497
|
+
e || (await ze(), un());
|
|
498
|
+
}, { immediate: !0 }), Ge(() => E.config, () => {
|
|
499
|
+
I.value = nn(z.value || null), on.value = !I.value.userOptions.showOnChartHover, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), H.value.showTable = I.value.table.show, Ut.value += 1, Gt.value += 1;
|
|
500
|
+
}, { deep: !0 });
|
|
501
|
+
let _n = u(() => I.value.style.chart.areas.height / I.value.style.chart.areas.rowHeight);
|
|
502
|
+
function vn() {
|
|
503
|
+
Y.value.length ? Y.value = [] : X.value.forEach((e) => {
|
|
504
|
+
Y.value.push(e.id);
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
function yn(e) {
|
|
508
|
+
Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : Y.value.push(e), Rt("selectLegend", J.value);
|
|
509
|
+
}
|
|
510
|
+
function bn(e) {
|
|
511
|
+
return X.value.length ? X.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null);
|
|
512
|
+
}
|
|
513
|
+
function xn(e) {
|
|
514
|
+
let t = bn(e);
|
|
515
|
+
t !== null && Y.value.includes(t.id) && yn(t.id);
|
|
516
|
+
}
|
|
517
|
+
function Sn(e) {
|
|
518
|
+
let t = bn(e);
|
|
519
|
+
t !== null && (Y.value.includes(t.id) || yn(t.id));
|
|
520
|
+
}
|
|
521
|
+
let U = u(() => D.value ? (z.value || []).map((e) => ({
|
|
522
|
+
...e,
|
|
523
|
+
labelLen: In(e.name, I.value.style.chart.yAxis.labels.fontSize),
|
|
524
|
+
uid: r(),
|
|
525
|
+
datapoints: e.datapoints.map((e, t) => {
|
|
526
|
+
let n = e.color ? fe(e.color) : gn.value[t] || re[t] || re[t % re.length], r = o(e.name);
|
|
527
|
+
return {
|
|
528
|
+
...e,
|
|
529
|
+
color: n,
|
|
530
|
+
id: r
|
|
531
|
+
};
|
|
532
|
+
})
|
|
533
|
+
})) : []), Cn = u(() => I.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * _n.value + I.value.style.chart.padding.bottom), W = u(() => {
|
|
534
|
+
let e = I.value.style.chart.padding;
|
|
535
|
+
return {
|
|
536
|
+
width: Jt.value,
|
|
537
|
+
height: Cn.value,
|
|
538
|
+
padding: e
|
|
539
|
+
};
|
|
540
|
+
}), wn = u(() => W.value.width), Tn = u(() => W.value.height), En = b(0), Dn = De((e) => {
|
|
541
|
+
En.value = e;
|
|
542
|
+
}, 100);
|
|
543
|
+
Ke((e) => {
|
|
544
|
+
let t = Zt.value;
|
|
545
|
+
if (!t) return;
|
|
546
|
+
let n = new ResizeObserver((e) => {
|
|
547
|
+
Dn(e[0].contentRect.height);
|
|
548
|
+
});
|
|
549
|
+
n.observe(t), e(() => n.disconnect());
|
|
550
|
+
}), Ve(() => {
|
|
551
|
+
En.value = 0;
|
|
552
|
+
});
|
|
553
|
+
let G = u(() => ({
|
|
554
|
+
fullHeight: W.value.height + En.value,
|
|
555
|
+
top: W.value.padding.top,
|
|
556
|
+
left: W.value.padding.left,
|
|
557
|
+
right: W.value.width - W.value.padding.right,
|
|
558
|
+
bottom: W.value.height - I.value.style.chart.padding.bottom,
|
|
559
|
+
width: W.value.width - (W.value.padding.left + W.value.padding.right)
|
|
560
|
+
})), On = u(() => Math.max(...U.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), K = b([]), kn = 0;
|
|
561
|
+
Ke(() => {
|
|
562
|
+
let e = ++kn;
|
|
563
|
+
(async () => {
|
|
564
|
+
let t = await me({
|
|
565
|
+
values: I.value.style.chart.xAxis.labels.values,
|
|
566
|
+
maxDatapoints: On.value,
|
|
567
|
+
formatter: I.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
568
|
+
start: 0,
|
|
569
|
+
end: I.value.style.chart.xAxis.labels.values.length
|
|
570
|
+
});
|
|
571
|
+
e === kn && (K.value = t);
|
|
572
|
+
})();
|
|
573
|
+
});
|
|
574
|
+
let q = u(() => {
|
|
575
|
+
let e = Math.max(...U.value.map((e) => e.labelLen)), t = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, n = (G.value.width - t) / On.value, r = [];
|
|
576
|
+
for (let e = 0; e < On.value; e += 1) r.push({
|
|
577
|
+
selectorX: t + n * e,
|
|
578
|
+
x: t + n * e - n / 2,
|
|
579
|
+
y: G.value.top,
|
|
580
|
+
label: I.value.style.chart.xAxis.labels.values[e] ? K.value[e]?.text ?? "" : "",
|
|
581
|
+
index: e,
|
|
582
|
+
width: n,
|
|
583
|
+
height: Cn.value
|
|
584
|
+
});
|
|
585
|
+
return r;
|
|
586
|
+
});
|
|
587
|
+
function An(e) {
|
|
588
|
+
return U.value.map((t) => t.datapoints.map((t) => ({
|
|
589
|
+
dp: t,
|
|
590
|
+
selected: t.values[e.index]
|
|
591
|
+
})));
|
|
592
|
+
}
|
|
593
|
+
function jn(e) {
|
|
594
|
+
M.value = e;
|
|
595
|
+
let t = An(e);
|
|
596
|
+
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
597
|
+
datapoint: t,
|
|
598
|
+
seriesIndex: e.index
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
function Mn(e) {
|
|
602
|
+
M.value = null;
|
|
603
|
+
let t = An(e);
|
|
604
|
+
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
605
|
+
datapoint: t,
|
|
606
|
+
seriesIndex: e.index
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
function Nn(e) {
|
|
610
|
+
let t = An(e);
|
|
611
|
+
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
612
|
+
datapoint: t,
|
|
613
|
+
seriesIndex: e.index
|
|
614
|
+
}), Rt("selectX", t);
|
|
615
|
+
}
|
|
616
|
+
function Pn(e, t) {
|
|
617
|
+
return e.length * t / 2 + t;
|
|
618
|
+
}
|
|
619
|
+
function Fn(e, t, n) {
|
|
620
|
+
return e + Pn(t, n) > G.value.right;
|
|
621
|
+
}
|
|
622
|
+
function In(e, t, n = "sans-serif") {
|
|
623
|
+
let r = document.createElement("canvas").getContext("2d");
|
|
624
|
+
return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
|
|
625
|
+
}
|
|
626
|
+
let J = u(() => {
|
|
627
|
+
B.value;
|
|
628
|
+
let e = Math.max(...U.value.map((e) => e.labelLen)), t = Math.max(...U.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...U.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), a = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, ee = (G.value.width - a) / On.value, o = Math.abs(Math.min(n, 0)), s = t + o;
|
|
629
|
+
function ne(e) {
|
|
630
|
+
return isNaN(e / s) ? 0 : e / s;
|
|
631
|
+
}
|
|
632
|
+
return U.value.map((e, t) => {
|
|
633
|
+
let n = G.value.top + B.value * t, s = G.value.top + n + B.value * _n.value * (1 - ne(o));
|
|
634
|
+
return {
|
|
635
|
+
...e,
|
|
636
|
+
label: {
|
|
637
|
+
x: a - I.value.style.chart.yAxis.labels.fontSize,
|
|
638
|
+
y: s
|
|
639
|
+
},
|
|
640
|
+
datapoints: e.datapoints.map((e) => {
|
|
641
|
+
let t = e.values.map((t, r) => {
|
|
642
|
+
let i = isNaN(t) || [
|
|
643
|
+
void 0,
|
|
644
|
+
null,
|
|
645
|
+
"NaN",
|
|
646
|
+
NaN,
|
|
647
|
+
Infinity,
|
|
648
|
+
-Infinity
|
|
649
|
+
].includes(t) ? 0 : t || 0;
|
|
650
|
+
return {
|
|
651
|
+
x: a + ee * r,
|
|
652
|
+
y: G.value.top + n + B.value * _n.value * (1 - ne(i + o)),
|
|
653
|
+
value: t,
|
|
654
|
+
isMaxPoint: t === Math.max(...e.values),
|
|
655
|
+
zero: s
|
|
656
|
+
};
|
|
657
|
+
}), re = `${te(t, s, !1, !1)}`, ie = `M ${a},${s} ${i(t)} ${t.at(-1).x},${s}`, c = `M ${a},${s} ${t.at(-1).x},${s}`, se = `M ${oe(t)}`, ce = `M ${i(t)}`, le = ae(I.value.style.chart.areas.smooth ? se : ce);
|
|
658
|
+
return {
|
|
659
|
+
...e,
|
|
660
|
+
uid: r(),
|
|
661
|
+
plots: t,
|
|
662
|
+
smoothPath: re,
|
|
663
|
+
straightPath: ie,
|
|
664
|
+
zeroPath: c,
|
|
665
|
+
pathLength: le,
|
|
666
|
+
smoothPathRidge: se,
|
|
667
|
+
straightPathRidge: ce
|
|
668
|
+
};
|
|
669
|
+
}).filter((e) => !Y.value.includes(e.id))
|
|
670
|
+
};
|
|
671
|
+
});
|
|
672
|
+
}), Y = b([]);
|
|
673
|
+
function Ln(e) {
|
|
674
|
+
let t = /* @__PURE__ */ new Map();
|
|
675
|
+
return e.forEach((e) => {
|
|
676
|
+
e.datapoints.forEach((e, n) => {
|
|
677
|
+
let r = o(e.name);
|
|
678
|
+
t.has(r) || t.set(r, {
|
|
679
|
+
id: r,
|
|
680
|
+
name: e.name,
|
|
681
|
+
color: e.color,
|
|
682
|
+
shape: "circle",
|
|
683
|
+
segregate: () => yn(r),
|
|
684
|
+
isSegregated: Y.value.includes(r),
|
|
685
|
+
opacity: Y.value.includes(r) ? .5 : 1
|
|
686
|
+
});
|
|
687
|
+
});
|
|
688
|
+
}), Array.from(t.values());
|
|
689
|
+
}
|
|
690
|
+
let X = u(() => Ln(U.value)), Rn = u(() => ({
|
|
691
|
+
cy: "donut-div-legend",
|
|
692
|
+
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
693
|
+
color: I.value.style.chart.legend.color,
|
|
694
|
+
fontSize: I.value.style.chart.legend.fontSize,
|
|
695
|
+
paddingBottom: 12,
|
|
696
|
+
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
697
|
+
})), Z = b(!1);
|
|
698
|
+
function zn(e) {
|
|
699
|
+
Z.value = e, Kt.value += 1;
|
|
700
|
+
}
|
|
701
|
+
let Bn = b({}), Vn = b([]);
|
|
702
|
+
function Hn(e) {
|
|
703
|
+
Rt("selectDatapoint", e), I.value.style.chart.dialog.show && (Vn.value = e.datapoints.map((e) => ({
|
|
704
|
+
name: e.name,
|
|
705
|
+
color: e.color,
|
|
706
|
+
type: "line",
|
|
707
|
+
useArea: !0,
|
|
708
|
+
smooth: I.value.style.chart.areas.smooth,
|
|
709
|
+
series: e.values
|
|
710
|
+
})), N.value = e, Bn.value = ce({
|
|
711
|
+
...I.value.style.chart.dialog.xyChart,
|
|
712
|
+
responsive: !0,
|
|
713
|
+
chart: {
|
|
714
|
+
...I.value.style.chart.dialog.xyChart.chart,
|
|
715
|
+
grid: {
|
|
716
|
+
...I.value.style.chart.dialog.xyChart.chart.grid,
|
|
717
|
+
labels: {
|
|
718
|
+
...I.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
719
|
+
xAxisLabels: {
|
|
720
|
+
...I.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
721
|
+
values: I.value.style.chart.xAxis.labels.values,
|
|
722
|
+
autoRotate: {
|
|
723
|
+
enable: !0,
|
|
724
|
+
angle: I.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
725
|
+
},
|
|
726
|
+
datetimeFormatter: I.value.style.chart.xAxis.labels.datetimeFormatter
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
tooltip: {
|
|
731
|
+
...I.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
732
|
+
showTimeLabel: I.value.style.chart.xAxis.labels.values.length > 0
|
|
733
|
+
},
|
|
734
|
+
userOptions: {
|
|
735
|
+
...I.value.style.chart.dialog.xyChart.chart.userOptions,
|
|
736
|
+
buttons: {
|
|
737
|
+
...I.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
|
|
738
|
+
altCopy: I.value.userOptions.buttons.altCopy
|
|
739
|
+
},
|
|
740
|
+
callbacks: {
|
|
741
|
+
...I.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
|
|
742
|
+
altCopy: () => {}
|
|
743
|
+
},
|
|
744
|
+
useCursorPointer: I.value.userOptions.useCursorPointer
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}), Yt.value && Yt.value.open());
|
|
748
|
+
}
|
|
749
|
+
let Un = b(null);
|
|
750
|
+
function Wn(e) {
|
|
751
|
+
Un.value = e;
|
|
752
|
+
}
|
|
753
|
+
function Gn() {
|
|
754
|
+
Un.value = null;
|
|
755
|
+
}
|
|
756
|
+
let Kn = b(!1);
|
|
757
|
+
function qn() {
|
|
758
|
+
Kn.value = !Kn.value;
|
|
759
|
+
}
|
|
760
|
+
function Jn() {
|
|
761
|
+
H.value.showTable = !H.value.showTable;
|
|
762
|
+
}
|
|
763
|
+
let Yn = u(() => ({ body: J.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
764
|
+
...t,
|
|
765
|
+
rowName: `${e.name}: ${t.name}`
|
|
766
|
+
}))).map((e) => [{
|
|
767
|
+
name: e.rowName,
|
|
768
|
+
color: e.color
|
|
769
|
+
}, ...e.values]) })), Q = u(() => {
|
|
770
|
+
let e = [I.value.table.columnNames.series, ...K.value.map((e) => e.text)], t = {
|
|
771
|
+
th: {
|
|
772
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
773
|
+
color: I.value.table.th.color,
|
|
774
|
+
outline: I.value.table.th.outline
|
|
775
|
+
},
|
|
776
|
+
td: {
|
|
777
|
+
backgroundColor: I.value.table.td.backgroundColor,
|
|
778
|
+
color: I.value.table.td.color,
|
|
779
|
+
outline: I.value.table.td.outline
|
|
780
|
+
},
|
|
781
|
+
breakpoint: I.value.table.responsiveBreakpoint
|
|
782
|
+
};
|
|
783
|
+
return {
|
|
784
|
+
colNames: [I.value.table.columnNames.series, ...K.value.map((e) => e.text)],
|
|
785
|
+
head: e,
|
|
786
|
+
body: Yn.value.body,
|
|
787
|
+
config: t
|
|
788
|
+
};
|
|
789
|
+
});
|
|
790
|
+
function Xn(e = null) {
|
|
791
|
+
ze(() => {
|
|
792
|
+
let t = [[I.value.table.columnNames.series, ...K.map((e) => [e.text])], ...Yn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = s([[I.value.style.chart.title.text], [I.value.style.chart.title.subtitle.text]].concat(t));
|
|
793
|
+
e ? e(n) : a({
|
|
794
|
+
csvContent: n,
|
|
795
|
+
title: I.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
796
|
+
});
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
function Zn() {
|
|
800
|
+
return J.value;
|
|
801
|
+
}
|
|
802
|
+
async function Qn({ scale: e = 2 } = {}) {
|
|
803
|
+
if (!O.value) return;
|
|
804
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
805
|
+
domElement: O.value,
|
|
806
|
+
base64: !0,
|
|
807
|
+
img: !0,
|
|
808
|
+
scale: e
|
|
809
|
+
});
|
|
810
|
+
return {
|
|
811
|
+
imageUri: i,
|
|
812
|
+
base64: a,
|
|
813
|
+
title: I.value.style.chart.title.text,
|
|
814
|
+
width: t,
|
|
815
|
+
height: n,
|
|
816
|
+
aspectRatio: r
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
Se({
|
|
820
|
+
timeLabelsEls: Zt,
|
|
821
|
+
timeLabels: K,
|
|
822
|
+
slicer: u(() => ({
|
|
823
|
+
min: 0,
|
|
824
|
+
max: On.value
|
|
825
|
+
})),
|
|
826
|
+
configRef: I,
|
|
827
|
+
rotationPath: [
|
|
828
|
+
"style",
|
|
829
|
+
"chart",
|
|
830
|
+
"xAxis",
|
|
831
|
+
"labels",
|
|
832
|
+
"rotation"
|
|
833
|
+
],
|
|
834
|
+
autoRotatePath: [
|
|
835
|
+
"style",
|
|
836
|
+
"chart",
|
|
837
|
+
"xAxis",
|
|
838
|
+
"labels",
|
|
839
|
+
"autoRotate",
|
|
840
|
+
"enable"
|
|
841
|
+
],
|
|
842
|
+
isAutoSize: !1,
|
|
843
|
+
width: wn,
|
|
844
|
+
height: Tn,
|
|
845
|
+
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
846
|
+
angle: I.value.style.chart.xAxis.labels.autoRotate.angle
|
|
847
|
+
});
|
|
848
|
+
let $ = u(() => {
|
|
849
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
|
|
850
|
+
return {
|
|
851
|
+
component: e ? Pt : kt,
|
|
852
|
+
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
853
|
+
props: e ? {
|
|
854
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
855
|
+
color: I.value.table.th.color,
|
|
856
|
+
headerColor: I.value.table.th.color,
|
|
857
|
+
headerBg: I.value.table.th.backgroundColor,
|
|
858
|
+
isFullscreen: Z.value,
|
|
859
|
+
fullscreenParent: O.value,
|
|
860
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
861
|
+
isCursorPointer: L.value
|
|
862
|
+
} : {
|
|
863
|
+
hideDetails: !0,
|
|
864
|
+
config: {
|
|
865
|
+
open: t,
|
|
866
|
+
maxHeight: 1e4,
|
|
867
|
+
body: {
|
|
868
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
869
|
+
color: I.value.style.chart.color
|
|
870
|
+
},
|
|
871
|
+
head: {
|
|
872
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
873
|
+
color: I.value.style.chart.color
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
};
|
|
878
|
+
});
|
|
879
|
+
Ge(() => H.value.showTable, (e) => {
|
|
880
|
+
I.value.table.show || (e && I.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
|
|
881
|
+
});
|
|
882
|
+
function $n() {
|
|
883
|
+
H.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
|
|
884
|
+
}
|
|
885
|
+
let er = u(() => I.value.style.chart.backgroundColor), tr = u(() => ({
|
|
886
|
+
...I.value.style.chart.legend,
|
|
887
|
+
position: "bottom"
|
|
888
|
+
})), { exportSvg: nr, getSvg: rr } = ye({
|
|
889
|
+
svg: V,
|
|
890
|
+
title: u(() => I.value.style.chart.title),
|
|
891
|
+
legend: tr,
|
|
892
|
+
legendItems: X,
|
|
893
|
+
backgroundColor: er
|
|
894
|
+
});
|
|
895
|
+
async function ir({ isCb: e }) {
|
|
896
|
+
en.value = !0, await ze();
|
|
897
|
+
try {
|
|
898
|
+
if (e) {
|
|
899
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await rr();
|
|
900
|
+
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
901
|
+
blob: e,
|
|
902
|
+
url: t,
|
|
903
|
+
text: n,
|
|
904
|
+
dataUrl: r
|
|
905
|
+
}));
|
|
906
|
+
} else await Promise.resolve(nr());
|
|
907
|
+
} finally {
|
|
908
|
+
en.value = !1;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
function ar(e) {
|
|
912
|
+
if (e?.stage === "start") {
|
|
913
|
+
$t.value = !0;
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
if (e?.stage === "end") {
|
|
917
|
+
$t.value = !1;
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
mn();
|
|
921
|
+
}
|
|
922
|
+
function or(e) {
|
|
923
|
+
sr("xy-zoom", e.dataset, e.config);
|
|
924
|
+
}
|
|
925
|
+
async function sr(e = "main-chart", t = null, n = null) {
|
|
926
|
+
if (Rt("copyAlt", {
|
|
927
|
+
source: e,
|
|
928
|
+
config: e === "main-chart" ? I.value : Bn.value,
|
|
929
|
+
dataset: e === "main-chart" ? J.value : Vn.value
|
|
930
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
931
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
935
|
+
source: e,
|
|
936
|
+
config: e === "main-chart" ? I.value : Bn.value,
|
|
937
|
+
dataset: e === "main-chart" ? J.value : Vn.value
|
|
938
|
+
}));
|
|
939
|
+
}
|
|
940
|
+
function cr() {
|
|
941
|
+
F.value = null, tn.value = !0;
|
|
942
|
+
}
|
|
943
|
+
function lr() {
|
|
944
|
+
pr(), tn.value = !1;
|
|
945
|
+
}
|
|
946
|
+
function ur(e) {
|
|
947
|
+
if (!V.value || Kn.value || document.activeElement !== V.value || !J.value.length) return;
|
|
948
|
+
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
|
|
949
|
+
if (!t && !n && !r && !i && !a && !ee) return;
|
|
950
|
+
if (e.preventDefault(), e.stopPropagation(), ee) {
|
|
951
|
+
pr();
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
if (a) {
|
|
955
|
+
if (F.value !== null) {
|
|
956
|
+
let e = J.value[F.value];
|
|
957
|
+
e && Hn(e);
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
960
|
+
M.value && Nn(M.value);
|
|
961
|
+
return;
|
|
962
|
+
}
|
|
963
|
+
if (t || n) {
|
|
964
|
+
let e = F.value;
|
|
965
|
+
e = e === null ? n ? 0 : J.value.length - 1 : dr(e + (n ? 1 : -1)), F.value = e, Un.value = e;
|
|
966
|
+
return;
|
|
967
|
+
}
|
|
968
|
+
if (!q.value.length) return;
|
|
969
|
+
let o = M.value?.index ?? null;
|
|
970
|
+
o = o === null ? i ? 0 : q.value.length - 1 : fr(o + (i ? 1 : -1));
|
|
971
|
+
let te = q.value[o];
|
|
972
|
+
te && jn(te);
|
|
973
|
+
}
|
|
974
|
+
function dr(e) {
|
|
975
|
+
let t = J.value.length;
|
|
976
|
+
return t ? (e % t + t) % t : null;
|
|
977
|
+
}
|
|
978
|
+
function fr(e) {
|
|
979
|
+
let t = q.value.length;
|
|
980
|
+
return t ? (e % t + t) % t : null;
|
|
981
|
+
}
|
|
982
|
+
function pr() {
|
|
983
|
+
F.value = null, Un.value = null, M.value ? Mn(M.value) : M.value = null;
|
|
984
|
+
}
|
|
985
|
+
let mr = u(() => ({
|
|
986
|
+
head: Q.value.head,
|
|
987
|
+
body: Q.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
988
|
+
caption: I.value.a11y.translations.tableCaption,
|
|
989
|
+
notice: I.value.a11y.translations.tableAvailable
|
|
990
|
+
}));
|
|
991
|
+
return Ee({
|
|
992
|
+
getData: Zn,
|
|
993
|
+
getImage: Qn,
|
|
994
|
+
generateImage: mn,
|
|
995
|
+
generateSvg: ir,
|
|
996
|
+
generatePdf: pn,
|
|
997
|
+
generateCsv: Xn,
|
|
998
|
+
hideSeries: Sn,
|
|
999
|
+
showSeries: xn,
|
|
1000
|
+
toggleAnnotator: qn,
|
|
1001
|
+
toggleTable: Jn,
|
|
1002
|
+
toggleFullscreen: zn,
|
|
1003
|
+
copyAlt: sr
|
|
1004
|
+
}), (e, r) => (y(), p("div", {
|
|
1005
|
+
ref_key: "ridgelineChart",
|
|
1006
|
+
ref: O,
|
|
1007
|
+
class: Be(`vue-data-ui-component vue-ui-ridgeline ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1008
|
+
id: `vue-ui-ridgeline_${j.value}`,
|
|
1009
|
+
style: v({
|
|
1010
|
+
fontFamily: I.value.style.fontFamily,
|
|
1011
|
+
width: "100%",
|
|
1012
|
+
textAlign: "center",
|
|
1013
|
+
background: I.value.style.chart.backgroundColor,
|
|
1014
|
+
height: I.value.responsive ? "100%" : void 0
|
|
1015
|
+
}),
|
|
1016
|
+
onMouseenter: r[3] ||= () => w(sn)(!0),
|
|
1017
|
+
onMouseleave: r[4] ||= () => w(sn)(!1)
|
|
1018
|
+
}, [
|
|
1019
|
+
m("div", {
|
|
1020
|
+
id: `chart-instructions-${j.value}`,
|
|
1021
|
+
class: "sr-only"
|
|
1022
|
+
}, [m("p", null, C(I.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1023
|
+
mr.value.body.length ? (y(), d(Ae, {
|
|
1024
|
+
key: 0,
|
|
1025
|
+
uid: j.value,
|
|
1026
|
+
head: mr.value.head,
|
|
1027
|
+
body: mr.value.body,
|
|
1028
|
+
caption: mr.value.caption,
|
|
1029
|
+
notice: mr.value.notice
|
|
1030
|
+
}, null, 8, [
|
|
1031
|
+
"uid",
|
|
1032
|
+
"head",
|
|
1033
|
+
"body",
|
|
1034
|
+
"caption",
|
|
1035
|
+
"notice"
|
|
1036
|
+
])) : f("", !0),
|
|
1037
|
+
I.value.userOptions.buttons.annotator && w(V) ? (y(), d(w(jt), {
|
|
1038
|
+
key: 1,
|
|
1039
|
+
color: I.value.style.chart.color,
|
|
1040
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1041
|
+
active: Kn.value,
|
|
1042
|
+
svgRef: w(V),
|
|
1043
|
+
isCursorPointer: L.value,
|
|
1044
|
+
onClose: qn
|
|
1045
|
+
}, {
|
|
1046
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1047
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
|
|
1048
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
|
|
1049
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
|
|
1050
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
|
|
1051
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
|
|
1052
|
+
_: 3
|
|
1053
|
+
}, 8, [
|
|
1054
|
+
"color",
|
|
1055
|
+
"backgroundColor",
|
|
1056
|
+
"active",
|
|
1057
|
+
"svgRef",
|
|
1058
|
+
"isCursorPointer"
|
|
1059
|
+
])) : f("", !0),
|
|
1060
|
+
S(e.$slots, "userConfig", {}, void 0, !0),
|
|
1061
|
+
hn.value ? (y(), p("div", {
|
|
1062
|
+
key: 2,
|
|
1063
|
+
ref_key: "noTitle",
|
|
1064
|
+
ref: Ht,
|
|
1065
|
+
class: "vue-data-ui-no-title-space",
|
|
1066
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1067
|
+
}, null, 512)) : f("", !0),
|
|
1068
|
+
I.value.style.chart.title.text ? (y(), p("div", {
|
|
1069
|
+
key: 3,
|
|
1070
|
+
ref_key: "chartTitle",
|
|
1071
|
+
ref: zt,
|
|
1072
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1073
|
+
}, [(y(), d(we, {
|
|
1074
|
+
key: `title_${Ut.value}`,
|
|
1075
|
+
config: {
|
|
1076
|
+
title: {
|
|
1077
|
+
cy: "ridgeline-div-title",
|
|
1078
|
+
...I.value.style.chart.title
|
|
1079
|
+
},
|
|
1080
|
+
subtitle: {
|
|
1081
|
+
cy: "ridgeline-div-subtitle",
|
|
1082
|
+
...I.value.style.chart.title.subtitle
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
1086
|
+
I.value.userOptions.show && D.value && (w(cn) || w(on)) ? (y(), d(w(Mt), {
|
|
1087
|
+
ref_key: "userOptionsRef",
|
|
1088
|
+
ref: Qt,
|
|
1089
|
+
key: `user_option_${Kt.value}`,
|
|
1090
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1091
|
+
color: I.value.style.chart.color,
|
|
1092
|
+
isPrinting: w(dn),
|
|
1093
|
+
isImaging: w(fn),
|
|
1094
|
+
uid: j.value,
|
|
1095
|
+
hasTooltip: !1,
|
|
1096
|
+
callbacks: I.value.userOptions.callbacks,
|
|
1097
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
1098
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
1099
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
1100
|
+
hasXls: I.value.userOptions.buttons.csv,
|
|
1101
|
+
hasTable: I.value.userOptions.buttons.table,
|
|
1102
|
+
hasLabel: !1,
|
|
1103
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1104
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1105
|
+
isFullscreen: Z.value,
|
|
1106
|
+
printScale: I.value.userOptions.print.scale,
|
|
1107
|
+
chartElement: O.value,
|
|
1108
|
+
position: I.value.userOptions.position,
|
|
1109
|
+
isTooltip: !1,
|
|
1110
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
1111
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1112
|
+
isAnnotation: Kn.value,
|
|
1113
|
+
tableDialog: I.value.table.useDialog,
|
|
1114
|
+
style: v({ visibility: w(cn) ? w(on) ? "visible" : "hidden" : "visible" }),
|
|
1115
|
+
isCursorPointer: L.value,
|
|
1116
|
+
onToggleFullscreen: zn,
|
|
1117
|
+
onGeneratePdf: w(pn),
|
|
1118
|
+
onGenerateCsv: Xn,
|
|
1119
|
+
onGenerateImage: ar,
|
|
1120
|
+
onGenerateSvg: ir,
|
|
1121
|
+
onToggleTable: Jn,
|
|
1122
|
+
onToggleAnnotator: qn,
|
|
1123
|
+
onCopyAlt: sr
|
|
1124
|
+
}, Fe({ _: 2 }, [
|
|
1125
|
+
e.$slots.menuIcon ? {
|
|
1126
|
+
name: "menuIcon",
|
|
1127
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(g({
|
|
1128
|
+
isOpen: t,
|
|
1129
|
+
color: n
|
|
1130
|
+
})), void 0, !0)]),
|
|
1131
|
+
key: "0"
|
|
1132
|
+
} : void 0,
|
|
1133
|
+
e.$slots.optionTooltip ? {
|
|
1134
|
+
name: "optionTooltip",
|
|
1135
|
+
fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1136
|
+
key: "1"
|
|
1137
|
+
} : void 0,
|
|
1138
|
+
e.$slots.optionPdf ? {
|
|
1139
|
+
name: "optionPdf",
|
|
1140
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1141
|
+
key: "2"
|
|
1142
|
+
} : void 0,
|
|
1143
|
+
e.$slots.optionCsv ? {
|
|
1144
|
+
name: "optionCsv",
|
|
1145
|
+
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1146
|
+
key: "3"
|
|
1147
|
+
} : void 0,
|
|
1148
|
+
e.$slots.optionImg ? {
|
|
1149
|
+
name: "optionImg",
|
|
1150
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1151
|
+
key: "4"
|
|
1152
|
+
} : void 0,
|
|
1153
|
+
e.$slots.optionSvg ? {
|
|
1154
|
+
name: "optionSvg",
|
|
1155
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1156
|
+
key: "5"
|
|
1157
|
+
} : void 0,
|
|
1158
|
+
e.$slots.optionTable ? {
|
|
1159
|
+
name: "optionTable",
|
|
1160
|
+
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1161
|
+
key: "6"
|
|
1162
|
+
} : void 0,
|
|
1163
|
+
e.$slots.optionFullscreen ? {
|
|
1164
|
+
name: "optionFullscreen",
|
|
1165
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(g({
|
|
1166
|
+
toggleFullscreen: t,
|
|
1167
|
+
isFullscreen: n
|
|
1168
|
+
})), void 0, !0)]),
|
|
1169
|
+
key: "7"
|
|
1170
|
+
} : void 0,
|
|
1171
|
+
e.$slots.optionAnnotator ? {
|
|
1172
|
+
name: "optionAnnotator",
|
|
1173
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(g({
|
|
1174
|
+
toggleAnnotator: t,
|
|
1175
|
+
isAnnotator: n
|
|
1176
|
+
})), void 0, !0)]),
|
|
1177
|
+
key: "8"
|
|
1178
|
+
} : void 0,
|
|
1179
|
+
e.$slots.optionAltCopy ? {
|
|
1180
|
+
name: "optionAltCopy",
|
|
1181
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
|
|
1182
|
+
key: "9"
|
|
1183
|
+
} : void 0
|
|
1184
|
+
]), 1032, [
|
|
1185
|
+
"backgroundColor",
|
|
1186
|
+
"color",
|
|
1187
|
+
"isPrinting",
|
|
1188
|
+
"isImaging",
|
|
1189
|
+
"uid",
|
|
1190
|
+
"callbacks",
|
|
1191
|
+
"hasPdf",
|
|
1192
|
+
"hasImg",
|
|
1193
|
+
"hasSvg",
|
|
1194
|
+
"hasXls",
|
|
1195
|
+
"hasTable",
|
|
1196
|
+
"hasFullscreen",
|
|
1197
|
+
"hasAltCopy",
|
|
1198
|
+
"isFullscreen",
|
|
1199
|
+
"printScale",
|
|
1200
|
+
"chartElement",
|
|
1201
|
+
"position",
|
|
1202
|
+
"titles",
|
|
1203
|
+
"hasAnnotator",
|
|
1204
|
+
"isAnnotation",
|
|
1205
|
+
"tableDialog",
|
|
1206
|
+
"style",
|
|
1207
|
+
"isCursorPointer",
|
|
1208
|
+
"onGeneratePdf"
|
|
1209
|
+
])) : f("", !0),
|
|
1210
|
+
m("div", Xe, [(y(), p("svg", {
|
|
1211
|
+
ref_key: "svgRef",
|
|
1212
|
+
ref: V,
|
|
1213
|
+
xmlns: w(ue),
|
|
1214
|
+
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1215
|
+
class: Be({
|
|
1216
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
1217
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
1218
|
+
}),
|
|
1219
|
+
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${G.value.fullHeight <= 0 ? 10 : G.value.fullHeight}`,
|
|
1220
|
+
style: v(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.chart.color};${I.value.responsive ? `height: ${Xt.value}px; width: 100%;` : ""}`),
|
|
1221
|
+
tabindex: "0",
|
|
1222
|
+
onFocus: cr,
|
|
1223
|
+
onBlur: lr,
|
|
1224
|
+
onKeydown: ur
|
|
1225
|
+
}, [
|
|
1226
|
+
Le(w(Nt)),
|
|
1227
|
+
m("defs", null, [(y(!0), p(l, null, x(X.value, (e, t) => (y(), p("linearGradient", {
|
|
1228
|
+
id: `gradient-${e.id}-${j.value}`,
|
|
1229
|
+
x1: "50%",
|
|
1230
|
+
y1: "0%",
|
|
1231
|
+
x2: "50%",
|
|
1232
|
+
y2: "100%"
|
|
1233
|
+
}, [
|
|
1234
|
+
m("stop", {
|
|
1235
|
+
offset: "0%",
|
|
1236
|
+
"stop-color": e.color,
|
|
1237
|
+
"stop-opacity": "1"
|
|
1238
|
+
}, null, 8, $e),
|
|
1239
|
+
m("stop", {
|
|
1240
|
+
offset: "30%",
|
|
1241
|
+
"stop-color": e.color,
|
|
1242
|
+
"stop-opacity": "0.7"
|
|
1243
|
+
}, null, 8, et),
|
|
1244
|
+
m("stop", {
|
|
1245
|
+
offset: "70%",
|
|
1246
|
+
"stop-color": e.color,
|
|
1247
|
+
"stop-opacity": "0.3"
|
|
1248
|
+
}, null, 8, tt),
|
|
1249
|
+
m("stop", {
|
|
1250
|
+
offset: "100%",
|
|
1251
|
+
"stop-color": e.color,
|
|
1252
|
+
"stop-opacity": "0.1"
|
|
1253
|
+
}, null, 8, nt)
|
|
1254
|
+
], 8, Qe))), 256)), (y(!0), p(l, null, x(J.value, (e, t) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e, t) => (y(), p("linearGradient", {
|
|
1255
|
+
key: `grad${e.id}`,
|
|
1256
|
+
id: `gradient-single-${j.value}-${e.uid}`,
|
|
1257
|
+
x1: "50%",
|
|
1258
|
+
y1: "0%",
|
|
1259
|
+
x2: "50%",
|
|
1260
|
+
y2: "100%"
|
|
1261
|
+
}, [
|
|
1262
|
+
m("stop", {
|
|
1263
|
+
offset: "0%",
|
|
1264
|
+
"stop-color": e.color,
|
|
1265
|
+
"stop-opacity": "1"
|
|
1266
|
+
}, null, 8, it),
|
|
1267
|
+
m("stop", {
|
|
1268
|
+
offset: "30%",
|
|
1269
|
+
"stop-color": e.color,
|
|
1270
|
+
"stop-opacity": "0.7"
|
|
1271
|
+
}, null, 8, at),
|
|
1272
|
+
m("stop", {
|
|
1273
|
+
offset: "70%",
|
|
1274
|
+
"stop-color": e.color,
|
|
1275
|
+
"stop-opacity": "0.3"
|
|
1276
|
+
}, null, 8, ot),
|
|
1277
|
+
m("stop", {
|
|
1278
|
+
offset: "100%",
|
|
1279
|
+
"stop-color": e.color,
|
|
1280
|
+
"stop-opacity": "0.1"
|
|
1281
|
+
}, null, 8, st)
|
|
1282
|
+
], 8, rt))), 128))], 64))), 256))]),
|
|
1283
|
+
(y(!0), p(l, null, x(J.value, (t, n) => (y(), p("g", { key: `ds-${n}` }, [(y(!0), p(l, null, x(t.datapoints, (t, r) => (y(), p("g", { key: t.id }, [
|
|
1284
|
+
e.$slots.pattern ? (y(), p("g", ct, [m("defs", null, [S(e.$slots, "pattern", Re({ ref_for: !0 }, {
|
|
1285
|
+
datapointIndex: n,
|
|
1286
|
+
seriesIndex: r,
|
|
1287
|
+
patternId: `pattern_${j.value}_${t.uid}`
|
|
1288
|
+
}), void 0, !0)])])) : f("", !0),
|
|
1289
|
+
m("path", {
|
|
1290
|
+
fill: e.$slots.pattern ? `url(#pattern_${j.value}_${t.uid})` : I.value.style.chart.backgroundColor,
|
|
1291
|
+
stroke: "none",
|
|
1292
|
+
"stroke-linecap": "round",
|
|
1293
|
+
d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1294
|
+
style: v({ opacity: I.value.style.chart.areas.opacity })
|
|
1295
|
+
}, null, 12, lt),
|
|
1296
|
+
m("path", {
|
|
1297
|
+
fill: "none",
|
|
1298
|
+
stroke: I.value.style.chart.areas.stroke.useSerieColor ? t.color : I.value.style.chart.areas.stroke.color,
|
|
1299
|
+
"stroke-width": I.value.style.chart.areas.strokeWidth,
|
|
1300
|
+
d: I.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
|
|
1301
|
+
"stroke-linecap": "round",
|
|
1302
|
+
"stroke-linejoin": "round",
|
|
1303
|
+
class: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !w(R) }),
|
|
1304
|
+
style: v({
|
|
1305
|
+
strokeDasharray: t.pathLength,
|
|
1306
|
+
strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
|
|
1307
|
+
})
|
|
1308
|
+
}, null, 14, ut),
|
|
1309
|
+
m("path", {
|
|
1310
|
+
fill: I.value.style.chart.areas.useGradient ? I.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${j.value})` : `url(#gradient-single-${j.value}-${t.uid})` : t.color,
|
|
1311
|
+
stroke: "none",
|
|
1312
|
+
d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1313
|
+
"stroke-linecap": "round",
|
|
1314
|
+
"stroke-linejoin": "round",
|
|
1315
|
+
class: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !w(R) }),
|
|
1316
|
+
style: v({
|
|
1317
|
+
strokeDasharray: t.pathLength,
|
|
1318
|
+
strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
|
|
1319
|
+
})
|
|
1320
|
+
}, null, 14, dt),
|
|
1321
|
+
I.value.style.chart.zeroLine.show ? (y(), p("path", {
|
|
1322
|
+
key: 1,
|
|
1323
|
+
stroke: I.value.style.chart.zeroLine.useSerieColor ? t.color : I.value.style.chart.zeroLine.stroke,
|
|
1324
|
+
"stroke-dasharray": I.value.style.chart.zeroLine.strokeDasharray,
|
|
1325
|
+
"stroke-width": I.value.style.chart.zeroLine.strokeWidth,
|
|
1326
|
+
d: t.zeroPath,
|
|
1327
|
+
"stroke-linecap": "round"
|
|
1328
|
+
}, null, 8, ft)) : f("", !0),
|
|
1329
|
+
I.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (y(!0), p(l, { key: 2 }, x(t.plots, (e) => (y(), p(l, null, [e.isMaxPoint ? (y(), p("line", {
|
|
1330
|
+
key: 0,
|
|
1331
|
+
x1: e.x,
|
|
1332
|
+
y1: e.y,
|
|
1333
|
+
x2: e.x,
|
|
1334
|
+
y2: e.zero,
|
|
1335
|
+
stroke: I.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? w(le)(t.color) : I.value.style.chart.areas.maxPoint.stroke,
|
|
1336
|
+
"stroke-width": I.value.style.chart.areas.maxPoint.strokeWidth,
|
|
1337
|
+
"stroke-linecap": "round",
|
|
1338
|
+
"stroke-dasharray": I.value.style.chart.areas.maxPoint.strokeDasharray
|
|
1339
|
+
}, null, 8, pt)) : f("", !0)], 64))), 256)) : f("", !0),
|
|
1340
|
+
t.plots.length === 1 ? (y(), p("circle", {
|
|
1341
|
+
key: 3,
|
|
1342
|
+
cx: t.plots[0].x,
|
|
1343
|
+
cy: t.plots[0].y,
|
|
1344
|
+
stroke: I.value.style.chart.selector.dot.stroke,
|
|
1345
|
+
"stroke-width": I.value.style.chart.selector.dot.strokeWidth,
|
|
1346
|
+
r: I.value.style.chart.selector.dot.radius,
|
|
1347
|
+
fill: I.value.style.chart.selector.dot.useDatapointColor ? t.color : I.value.style.chart.selector.dot.fill,
|
|
1348
|
+
style: { pointerEvents: "none" }
|
|
1349
|
+
}, null, 8, mt)) : f("", !0)
|
|
1350
|
+
]))), 128)), m("text", {
|
|
1351
|
+
x: t.label.x,
|
|
1352
|
+
y: t.label.y,
|
|
1353
|
+
"text-anchor": "end",
|
|
1354
|
+
"font-size": I.value.style.chart.yAxis.labels.fontSize,
|
|
1355
|
+
"font-weight": I.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1356
|
+
fill: I.value.style.chart.yAxis.labels.color,
|
|
1357
|
+
style: v({ cursor: I.value.style.chart.dialog.show && L.value ? "pointer" : "default" }),
|
|
1358
|
+
"text-decoration": I.value.style.chart.dialog.show && (Un.value === n || N.value && t.uid === N.value.uid || F.value === n) ? "underline" : "",
|
|
1359
|
+
onMouseenter: (e) => Wn(n),
|
|
1360
|
+
onMouseleave: Gn,
|
|
1361
|
+
onClick: (e) => Hn(t)
|
|
1362
|
+
}, C(t.name), 45, ht)]))), 128)),
|
|
1363
|
+
I.value.style.chart.xAxis.labels.values.length ? (y(), p("g", {
|
|
1364
|
+
key: 0,
|
|
1365
|
+
ref_key: "timeLabelsEls",
|
|
1366
|
+
ref: Zt
|
|
1367
|
+
}, [(y(!0), p(l, null, x(q.value, (n, r) => S(e.$slots, "time-label", Re({ ref_for: !0 }, {
|
|
1368
|
+
show: n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && M.value && M.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0,
|
|
1369
|
+
fontSize: I.value.style.chart.xAxis.labels.fontSize,
|
|
1370
|
+
content: n.label,
|
|
1371
|
+
textAnchor: I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1372
|
+
fill: I.value.style.chart.xAxis.labels.color,
|
|
1373
|
+
transform: `translate(${n.selectorX}, ${G.value.top + n.height + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
|
|
1374
|
+
x: n.selectorX,
|
|
1375
|
+
y: G.value.bottom + I.value.style.chart.xAxis.labels.offsetY
|
|
1376
|
+
}), () => [n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && M.value && M.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0 ? (y(), p("g", gt, [String(n.label).includes("\n") ? (y(), p("text", {
|
|
1377
|
+
key: 1,
|
|
1378
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1379
|
+
"font-size": I.value.style.chart.xAxis.labels.fontSize,
|
|
1380
|
+
fill: I.value.style.chart.xAxis.labels.color,
|
|
1381
|
+
"font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1382
|
+
transform: `translate(${n.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
|
|
1383
|
+
"text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1384
|
+
style: v({ opacity: M.value ? M.value.index === r ? 1 : .2 : 1 }),
|
|
1385
|
+
innerHTML: w(t)({
|
|
1386
|
+
content: String(n.label),
|
|
1387
|
+
fontSize: I.value.style.chart.xAxis.labels.fontSize,
|
|
1388
|
+
fill: I.value.style.chart.xAxis.labels.color,
|
|
1389
|
+
x: 0,
|
|
1390
|
+
y: 0
|
|
1391
|
+
})
|
|
1392
|
+
}, null, 12, vt)) : (y(), p("text", {
|
|
1393
|
+
key: 0,
|
|
1394
|
+
class: "vue-ui-ridgeline-x-axis-label",
|
|
1395
|
+
"font-size": I.value.style.chart.xAxis.labels.fontSize,
|
|
1396
|
+
fill: I.value.style.chart.xAxis.labels.color,
|
|
1397
|
+
"font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1398
|
+
transform: `translate(${n.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
|
|
1399
|
+
"text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1400
|
+
style: v({ opacity: M.value ? M.value.index === r ? 1 : .2 : 1 })
|
|
1401
|
+
}, C(n.label), 13, _t))])) : f("", !0)], !0)), 256))], 512)) : f("", !0),
|
|
1402
|
+
m("g", null, [
|
|
1403
|
+
(y(!0), p(l, null, x(q.value, (e, t) => (y(), p("rect", {
|
|
1404
|
+
x: e.x,
|
|
1405
|
+
y: e.y,
|
|
1406
|
+
width: e.width < 0 ? .1 : e.width,
|
|
1407
|
+
height: e.height < 0 ? .1 : e.height,
|
|
1408
|
+
fill: "transparent",
|
|
1409
|
+
onMouseenter: (t) => jn(e),
|
|
1410
|
+
onMouseleave: (t) => Mn(e),
|
|
1411
|
+
onClick: () => Nn(e)
|
|
1412
|
+
}, null, 40, yt))), 256)),
|
|
1413
|
+
I.value.style.chart.selector.show && M.value ? (y(), p("line", {
|
|
1414
|
+
key: 0,
|
|
1415
|
+
x1: M.value.selectorX,
|
|
1416
|
+
x2: M.value.selectorX,
|
|
1417
|
+
y1: M.value.y,
|
|
1418
|
+
y2: M.value.y + M.value.height - B.value / 2,
|
|
1419
|
+
stroke: I.value.style.chart.selector.stroke,
|
|
1420
|
+
"stroke-width": I.value.style.chart.selector.strokeWidth,
|
|
1421
|
+
"stroke-dasharray": I.value.style.chart.selector.strokeDasharray,
|
|
1422
|
+
"stroke-linecap": "round",
|
|
1423
|
+
style: { pointerEvents: "none" }
|
|
1424
|
+
}, null, 8, bt)) : f("", !0),
|
|
1425
|
+
M.value ? (y(!0), p(l, { key: 1 }, x(J.value, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.plots, (t, r) => (y(), p(l, null, [M.value && M.value.index === r ? (y(), p("circle", {
|
|
1426
|
+
key: 0,
|
|
1427
|
+
cx: t.x,
|
|
1428
|
+
cy: t.y,
|
|
1429
|
+
stroke: I.value.style.chart.selector.dot.stroke,
|
|
1430
|
+
"stroke-width": I.value.style.chart.selector.dot.strokeWidth,
|
|
1431
|
+
r: I.value.style.chart.selector.dot.radius,
|
|
1432
|
+
fill: I.value.style.chart.selector.dot.useDatapointColor ? e.color : I.value.style.chart.selector.dot.fill,
|
|
1433
|
+
style: { pointerEvents: "none" }
|
|
1434
|
+
}, null, 8, xt)) : f("", !0), M.value && M.value.index === r ? (y(), p("text", {
|
|
1435
|
+
key: 1,
|
|
1436
|
+
x: Fn(t.x, w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
|
|
1437
|
+
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1438
|
+
v: t.value,
|
|
1439
|
+
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1440
|
+
r: I.value.style.chart.selector.labels.rounding
|
|
1441
|
+
})), I.value.style.chart.selector.labels.fontSize) ? t.x - I.value.style.chart.selector.labels.fontSize / 2 : t.x + I.value.style.chart.selector.labels.fontSize / 2,
|
|
1442
|
+
y: t.y + I.value.style.chart.selector.labels.fontSize / 3,
|
|
1443
|
+
"text-anchor": Fn(t.x, w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
|
|
1444
|
+
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1445
|
+
v: t.value,
|
|
1446
|
+
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1447
|
+
r: I.value.style.chart.selector.labels.rounding
|
|
1448
|
+
})), I.value.style.chart.selector.labels.fontSize) ? "end" : "start",
|
|
1449
|
+
"font-size": I.value.style.chart.selector.labels.fontSize,
|
|
1450
|
+
fill: I.value.style.chart.selector.labels.color,
|
|
1451
|
+
style: { pointerEvents: "none" }
|
|
1452
|
+
}, C(w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
|
|
1453
|
+
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1454
|
+
v: t.value,
|
|
1455
|
+
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1456
|
+
r: I.value.style.chart.selector.labels.rounding
|
|
1457
|
+
}))), 9, St)) : f("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : f("", !0)
|
|
1458
|
+
]),
|
|
1459
|
+
S(e.$slots, "svg", { svg: {
|
|
1460
|
+
...W.value,
|
|
1461
|
+
drawingArea: G.value,
|
|
1462
|
+
isPrintingImg: w(dn) || w(fn) || $t.value,
|
|
1463
|
+
isPrintingSvg: en.value
|
|
1464
|
+
} }, void 0, !0)
|
|
1465
|
+
], 46, Ze)), e.$slots.hint ? (y(), p("div", Ct, [S(e.$slots, "hint", _(g({
|
|
1466
|
+
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1467
|
+
isVisible: tn.value
|
|
1468
|
+
})), void 0, !0)])) : f("", !0)]),
|
|
1469
|
+
e.$slots.watermark ? (y(), p("div", wt, [S(e.$slots, "watermark", _(g({ isPrinting: w(dn) || w(fn) || $t.value || en.value })), void 0, !0)])) : f("", !0),
|
|
1470
|
+
m("div", {
|
|
1471
|
+
ref_key: "chartLegend",
|
|
1472
|
+
ref: Bt
|
|
1473
|
+
}, [S(e.$slots, "legend", { legend: X.value }, () => [I.value.style.chart.legend.show ? (y(), d(Ne, {
|
|
1474
|
+
key: `legend_${Gt.value}`,
|
|
1475
|
+
legendSet: X.value,
|
|
1476
|
+
config: Rn.value,
|
|
1477
|
+
isCursorPointer: L.value,
|
|
1478
|
+
onClickMarker: r[0] ||= ({ legend: e }) => yn(e.id)
|
|
1479
|
+
}, Fe({
|
|
1480
|
+
item: T(({ legend: e }) => [w(R) ? f("", !0) : (y(), p("div", {
|
|
1481
|
+
key: 0,
|
|
1482
|
+
style: v(`opacity:${Y.value.includes(e.id) ? .5 : 1}`),
|
|
1483
|
+
onClick: (t) => e.segregate()
|
|
1484
|
+
}, C(e.name), 13, Tt))]),
|
|
1485
|
+
legendToggle: T(() => [X.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !w(R) ? (y(), d(ke, {
|
|
1486
|
+
key: 0,
|
|
1487
|
+
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1488
|
+
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1489
|
+
fontSize: I.value.style.chart.legend.fontSize,
|
|
1490
|
+
checked: Y.value.length > 0,
|
|
1491
|
+
isCursorPointer: L.value,
|
|
1492
|
+
onToggle: vn
|
|
1493
|
+
}, null, 8, [
|
|
1494
|
+
"backgroundColor",
|
|
1495
|
+
"color",
|
|
1496
|
+
"fontSize",
|
|
1497
|
+
"checked",
|
|
1498
|
+
"isCursorPointer"
|
|
1499
|
+
])) : f("", !0)]),
|
|
1500
|
+
_: 2
|
|
1501
|
+
}, [e.$slots.pattern ? {
|
|
1502
|
+
name: "legend-pattern",
|
|
1503
|
+
fn: T(({ legend: e, index: t }) => [Le(Te, {
|
|
1504
|
+
shape: e.shape,
|
|
1505
|
+
radius: 30,
|
|
1506
|
+
stroke: "none",
|
|
1507
|
+
plot: {
|
|
1508
|
+
x: 30,
|
|
1509
|
+
y: 30
|
|
1510
|
+
},
|
|
1511
|
+
fill: `url(#pattern_${j.value}_${t})`
|
|
1512
|
+
}, null, 8, ["shape", "fill"])]),
|
|
1513
|
+
key: "0"
|
|
1514
|
+
} : void 0]), 1032, [
|
|
1515
|
+
"legendSet",
|
|
1516
|
+
"config",
|
|
1517
|
+
"isCursorPointer"
|
|
1518
|
+
])) : f("", !0)], !0)], 512),
|
|
1519
|
+
e.$slots.source ? (y(), p("div", {
|
|
1520
|
+
key: 6,
|
|
1521
|
+
ref_key: "source",
|
|
1522
|
+
ref: Vt,
|
|
1523
|
+
dir: "auto"
|
|
1524
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1525
|
+
D.value && I.value.userOptions.buttons.table ? (y(), d(He($.value.component), Re({ key: 7 }, $.value.props, {
|
|
1526
|
+
ref_key: "tableUnit",
|
|
1527
|
+
ref: P,
|
|
1528
|
+
onClose: $n
|
|
1529
|
+
}), Fe({
|
|
1530
|
+
content: T(() => [(y(), d(w(At), {
|
|
1531
|
+
key: `table_${Wt.value}`,
|
|
1532
|
+
colNames: Q.value.colNames,
|
|
1533
|
+
head: Q.value.head,
|
|
1534
|
+
body: Q.value.body,
|
|
1535
|
+
config: Q.value.config,
|
|
1536
|
+
title: I.value.table.useDialog ? "" : $.value.title,
|
|
1537
|
+
withCloseButton: !I.value.table.useDialog,
|
|
1538
|
+
isCursorPointer: L.value,
|
|
1539
|
+
onClose: $n
|
|
1540
|
+
}, {
|
|
1541
|
+
th: T(({ th: e }) => [m("div", { innerHTML: e }, null, 8, Et)]),
|
|
1542
|
+
td: T(({ td: e }) => [Ie(C(e.name ? e.name : w(c)(I.value.style.chart.selector.labels.formatter, e, w(n)({
|
|
1543
|
+
p: I.value.style.chart.xAxis.labels.prefix,
|
|
1544
|
+
v: e,
|
|
1545
|
+
s: I.value.style.chart.xAxis.labels.suffix,
|
|
1546
|
+
r: I.value.table.td.roundingValue
|
|
1547
|
+
}))), 1)]),
|
|
1548
|
+
_: 1
|
|
1549
|
+
}, 8, [
|
|
1550
|
+
"colNames",
|
|
1551
|
+
"head",
|
|
1552
|
+
"body",
|
|
1553
|
+
"config",
|
|
1554
|
+
"title",
|
|
1555
|
+
"withCloseButton",
|
|
1556
|
+
"isCursorPointer"
|
|
1557
|
+
]))]),
|
|
1558
|
+
_: 2
|
|
1559
|
+
}, [I.value.table.useDialog ? {
|
|
1560
|
+
name: "title",
|
|
1561
|
+
fn: T(() => [Ie(C($.value.title), 1)]),
|
|
1562
|
+
key: "0"
|
|
1563
|
+
} : void 0, I.value.table.useDialog ? {
|
|
1564
|
+
name: "actions",
|
|
1565
|
+
fn: T(() => [m("button", {
|
|
1566
|
+
tabindex: "0",
|
|
1567
|
+
class: "vue-ui-user-options-button",
|
|
1568
|
+
onClick: r[1] ||= (e) => Xn(I.value.userOptions.callbacks.csv),
|
|
1569
|
+
style: v({ cursor: L.value ? "pointer" : "default" })
|
|
1570
|
+
}, [Le(w(Ot), {
|
|
1571
|
+
name: "fileCsv",
|
|
1572
|
+
stroke: $.value.props.color
|
|
1573
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1574
|
+
key: "1"
|
|
1575
|
+
} : void 0]), 1040)) : f("", !0),
|
|
1576
|
+
I.value.style.chart.dialog.show ? (y(), d(w(Pt), {
|
|
1577
|
+
key: 8,
|
|
1578
|
+
ref_key: "dialog",
|
|
1579
|
+
ref: Yt,
|
|
1580
|
+
onClose: r[2] ||= (e) => N.value = null,
|
|
1581
|
+
backgroundColor: I.value.style.chart.dialog.backgroundColor,
|
|
1582
|
+
color: I.value.style.chart.dialog.color,
|
|
1583
|
+
headerBg: I.value.style.chart.dialog.header.backgroundColor,
|
|
1584
|
+
headerColor: I.value.style.chart.dialog.header.color,
|
|
1585
|
+
isFullscreen: Z.value,
|
|
1586
|
+
fullscreenParent: O.value,
|
|
1587
|
+
isCursorPointer: L.value,
|
|
1588
|
+
withPadding: ""
|
|
1589
|
+
}, {
|
|
1590
|
+
title: T(() => [Ie(C(N.value.name), 1)]),
|
|
1591
|
+
content: T(() => [N.value ? (y(), d(w(Dt), {
|
|
1592
|
+
key: 0,
|
|
1593
|
+
config: Bn.value,
|
|
1594
|
+
dataset: Vn.value,
|
|
1595
|
+
onCopyAlt: or
|
|
1596
|
+
}, null, 8, ["config", "dataset"])) : f("", !0)]),
|
|
1597
|
+
_: 1
|
|
1598
|
+
}, 8, [
|
|
1599
|
+
"backgroundColor",
|
|
1600
|
+
"color",
|
|
1601
|
+
"headerBg",
|
|
1602
|
+
"headerColor",
|
|
1603
|
+
"isFullscreen",
|
|
1604
|
+
"fullscreenParent",
|
|
1605
|
+
"isCursorPointer"
|
|
1606
|
+
])) : f("", !0),
|
|
1607
|
+
S(e.$slots, "skeleton", {}, () => [w(R) ? (y(), d(ve, { key: 0 })) : f("", !0)], !0)
|
|
1608
|
+
], 46, Je));
|
|
1609
|
+
}
|
|
1610
|
+
}, [["__scopeId", "data-v-a605d896"]]);
|
|
1611
|
+
//#endregion
|
|
1612
|
+
export { qe as n, Dt as t };
|