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,1503 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { At as t, G as n, H as r, I as i, M as a, Mt as o, Q as s, R as c, St as l, X as u, et as d, f, i as p, jt as m, k as ee, l as te, ot as ne, t as re, vt as h, y as ie, zt as ae } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as oe } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
+
import { t as se } from "./useConfig-BV0kTCnO.js";
|
|
5
|
+
import { n as ce, t as le } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as ue } from "./useNestedProp-Ck4hsrpu.js";
|
|
7
|
+
import { t as de } from "./useThemeCheck-rFK9Zlb_.js";
|
|
8
|
+
import { t as fe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
9
|
+
import { c as pe } from "./canvas-lib-DTaADQOK.js";
|
|
10
|
+
import { t as g } from "./useResponsive-CrAInupd.js";
|
|
11
|
+
import { t as me } from "./A11yDataTable-q2-8fSlJ.js";
|
|
12
|
+
import { t as he } from "./useChartAccessibility-Do37qcw2.js";
|
|
13
|
+
import { t as ge } from "./usePrefersMotion-BywLbIko.js";
|
|
14
|
+
import { t as _e } from "./vue_ui_sparkline-wgk7yO7E.js";
|
|
15
|
+
import { Fragment as _, computed as v, createBlock as ve, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as ye, createVNode as be, defineAsyncComponent as xe, guardReactiveProps as Se, nextTick as S, normalizeProps as Ce, normalizeStyle as C, onBeforeUnmount as we, onMounted as Te, openBlock as w, ref as T, renderList as E, renderSlot as Ee, shallowRef as De, toDisplayString as Oe, toRefs as ke, unref as D, watch as O, watchEffect as Ae, withCtx as je } from "vue";
|
|
16
|
+
//#region src/atoms/SparklinePulse.vue
|
|
17
|
+
var Me = {
|
|
18
|
+
key: 0,
|
|
19
|
+
style: { "pointer-events": "none" }
|
|
20
|
+
}, Ne = [
|
|
21
|
+
"r",
|
|
22
|
+
"fill",
|
|
23
|
+
"filter"
|
|
24
|
+
], Pe = [
|
|
25
|
+
"begin",
|
|
26
|
+
"dur",
|
|
27
|
+
"repeatCount",
|
|
28
|
+
"fill",
|
|
29
|
+
"calcMode",
|
|
30
|
+
"keySplines",
|
|
31
|
+
"keyTimes",
|
|
32
|
+
"keyPoints"
|
|
33
|
+
], Fe = ["href"], Ie = [
|
|
34
|
+
"dur",
|
|
35
|
+
"repeatCount",
|
|
36
|
+
"fill",
|
|
37
|
+
"values"
|
|
38
|
+
], Le = ["r", "fill"], k = [
|
|
39
|
+
"begin",
|
|
40
|
+
"dur",
|
|
41
|
+
"repeatCount",
|
|
42
|
+
"calcMode",
|
|
43
|
+
"keySplines",
|
|
44
|
+
"keyTimes",
|
|
45
|
+
"keyPoints"
|
|
46
|
+
], Re = ["href"], A = ["dur", "repeatCount"], ze = {
|
|
47
|
+
__name: "SparklinePulse",
|
|
48
|
+
props: {
|
|
49
|
+
uid: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: !0
|
|
52
|
+
},
|
|
53
|
+
svgRef: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default: null
|
|
56
|
+
},
|
|
57
|
+
pulsePathId: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: !0
|
|
60
|
+
},
|
|
61
|
+
pulsePathLength: {
|
|
62
|
+
type: Number,
|
|
63
|
+
required: !0
|
|
64
|
+
},
|
|
65
|
+
pulseDur: {
|
|
66
|
+
type: String,
|
|
67
|
+
required: !0
|
|
68
|
+
},
|
|
69
|
+
pulseBegin: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: !0
|
|
72
|
+
},
|
|
73
|
+
pulseRepeatCount: {
|
|
74
|
+
type: String,
|
|
75
|
+
required: !0
|
|
76
|
+
},
|
|
77
|
+
pulseFillMode: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: void 0
|
|
80
|
+
},
|
|
81
|
+
pulseKeyPoints: {
|
|
82
|
+
type: String,
|
|
83
|
+
required: !0
|
|
84
|
+
},
|
|
85
|
+
pulseMotion: {
|
|
86
|
+
type: Object,
|
|
87
|
+
required: !0
|
|
88
|
+
},
|
|
89
|
+
pulse: {
|
|
90
|
+
type: Object,
|
|
91
|
+
required: !0
|
|
92
|
+
},
|
|
93
|
+
pulseTrail: {
|
|
94
|
+
type: Object,
|
|
95
|
+
required: !0
|
|
96
|
+
},
|
|
97
|
+
pulseTrailLength: {
|
|
98
|
+
type: Number,
|
|
99
|
+
required: !0
|
|
100
|
+
},
|
|
101
|
+
prefersReducedMotion: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
required: !0
|
|
104
|
+
},
|
|
105
|
+
loading: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
required: !0
|
|
108
|
+
},
|
|
109
|
+
isBar: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
required: !0
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
setup(e) {
|
|
115
|
+
let t = e, n = v(() => Math.min(t.pulseTrailLength, 45)), r = v(() => !!t.pulse?.show && !t.isBar && !t.prefersReducedMotion && !t.loading && Number(t.pulsePathLength) > 0);
|
|
116
|
+
function i() {
|
|
117
|
+
let e = t.svgRef?.value;
|
|
118
|
+
e && (typeof e.pauseAnimations == "function" && e.pauseAnimations(), typeof e.setCurrentTime == "function" && e.setCurrentTime(0), typeof e.unpauseAnimations == "function" && e.unpauseAnimations());
|
|
119
|
+
}
|
|
120
|
+
function a(e, t) {
|
|
121
|
+
if (typeof e != "string") return e;
|
|
122
|
+
let n = e.trim().match(/^([\d.]+)\s*(ms|s)$/);
|
|
123
|
+
if (!n) return e;
|
|
124
|
+
let r = Number(n[1]), i = n[2];
|
|
125
|
+
return Number.isNaN(r) ? e : `${r + t}${i}`;
|
|
126
|
+
}
|
|
127
|
+
function o(e) {
|
|
128
|
+
return (n.value - e) / n.value * t.pulse.radius;
|
|
129
|
+
}
|
|
130
|
+
function s(e) {
|
|
131
|
+
let r = t.pulse.trail.opacity, i = (n.value - e) / n.value, a = e === 0 ? 1 : i * r;
|
|
132
|
+
return `0;${a};${a};0`;
|
|
133
|
+
}
|
|
134
|
+
return O(() => t.loading, async (e) => {
|
|
135
|
+
if (e) {
|
|
136
|
+
i();
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
await S(), i();
|
|
140
|
+
}), O(() => t.pulsePathId, async () => {
|
|
141
|
+
await S(), i();
|
|
142
|
+
}), we(() => {
|
|
143
|
+
i();
|
|
144
|
+
}), (t, i) => r.value ? (w(), b("g", Me, [(w(!0), b(_, null, E(n.value, (t, n) => (w(), b(_, null, [n % 3 == 0 ? (w(), b("circle", {
|
|
145
|
+
key: `sparkline_dot_${n}_${e.pulsePathId}`,
|
|
146
|
+
r: o(n),
|
|
147
|
+
fill: e.pulse.color,
|
|
148
|
+
filter: `url(#sparkline_pulse_glow_${e.uid})`,
|
|
149
|
+
opacity: "0"
|
|
150
|
+
}, [x("animateMotion", {
|
|
151
|
+
begin: a(e.pulseBegin, n * 10),
|
|
152
|
+
dur: e.pulseDur,
|
|
153
|
+
repeatCount: e.pulseRepeatCount,
|
|
154
|
+
fill: e.pulseFillMode,
|
|
155
|
+
calcMode: e.pulseMotion.calcMode,
|
|
156
|
+
keySplines: e.pulseMotion.keySplines || void 0,
|
|
157
|
+
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
158
|
+
keyPoints: e.pulseKeyPoints,
|
|
159
|
+
rotate: "auto"
|
|
160
|
+
}, [x("mpath", { href: `#${e.pulsePathId}` }, null, 8, Fe)], 8, Pe), x("animate", {
|
|
161
|
+
attributeName: "opacity",
|
|
162
|
+
dur: e.pulseDur,
|
|
163
|
+
repeatCount: e.pulseRepeatCount,
|
|
164
|
+
fill: e.pulseFillMode,
|
|
165
|
+
values: s(n),
|
|
166
|
+
keyTimes: "0;0.1;0.9;1"
|
|
167
|
+
}, null, 8, Ie)], 8, Ne)) : y("", !0)], 64))), 256)), (w(), b("circle", {
|
|
168
|
+
key: `sparkline_halo_${e.pulsePathId}`,
|
|
169
|
+
r: Math.max(e.pulse.radius * 1.3),
|
|
170
|
+
fill: e.pulse.color,
|
|
171
|
+
opacity: "0"
|
|
172
|
+
}, [x("animateMotion", {
|
|
173
|
+
begin: e.pulseBegin,
|
|
174
|
+
dur: e.pulseDur,
|
|
175
|
+
repeatCount: e.pulseRepeatCount,
|
|
176
|
+
calcMode: e.pulseMotion.calcMode,
|
|
177
|
+
keySplines: e.pulseMotion.keySplines || void 0,
|
|
178
|
+
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
179
|
+
keyPoints: e.pulseKeyPoints,
|
|
180
|
+
rotate: "auto"
|
|
181
|
+
}, [x("mpath", { href: `#${e.pulsePathId}` }, null, 8, Re)], 8, k), x("animate", {
|
|
182
|
+
attributeName: "opacity",
|
|
183
|
+
values: "0;0.35;0.35;0",
|
|
184
|
+
keyTimes: "0;0.15;0.85;1",
|
|
185
|
+
dur: e.pulseDur,
|
|
186
|
+
repeatCount: e.pulseRepeatCount
|
|
187
|
+
}, null, 8, A)], 8, Le))])) : y("", !0);
|
|
188
|
+
}
|
|
189
|
+
}, j = {
|
|
190
|
+
canvas: null,
|
|
191
|
+
ctx: null
|
|
192
|
+
};
|
|
193
|
+
function Be() {
|
|
194
|
+
if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
|
|
195
|
+
if (!j.canvas) {
|
|
196
|
+
let e = document.createElement("canvas");
|
|
197
|
+
e.width = 1, e.height = 1;
|
|
198
|
+
let t = e.getContext("2d", { willReadFrequently: !0 });
|
|
199
|
+
if (!t) throw Error("color-utils: unable to get 2D canvas context.");
|
|
200
|
+
j.canvas = e, j.ctx = t;
|
|
201
|
+
}
|
|
202
|
+
return j.ctx;
|
|
203
|
+
}
|
|
204
|
+
function Ve(e) {
|
|
205
|
+
return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
|
|
206
|
+
}
|
|
207
|
+
function M(e) {
|
|
208
|
+
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
209
|
+
}
|
|
210
|
+
function N(e, t = null) {
|
|
211
|
+
if (typeof e != "string" || e.trim().length === 0) throw Error("colorToRgba: inputColor must be a non-empty string.");
|
|
212
|
+
let n = e.trim();
|
|
213
|
+
if (n.toLowerCase() === "transparent") return {
|
|
214
|
+
red: 0,
|
|
215
|
+
green: 0,
|
|
216
|
+
blue: 0,
|
|
217
|
+
alpha: 0
|
|
218
|
+
};
|
|
219
|
+
let r = He(n, t), i = Be();
|
|
220
|
+
i.clearRect(0, 0, 1, 1), i.fillStyle = "#000";
|
|
221
|
+
let a = i.fillStyle;
|
|
222
|
+
if (i.fillStyle = r, i.fillStyle === a && !Ue(r)) throw Error(`colorToRgba: unsupported or invalid color "${e}".`);
|
|
223
|
+
i.fillRect(0, 0, 1, 1);
|
|
224
|
+
let o = i.getImageData(0, 0, 1, 1).data;
|
|
225
|
+
return {
|
|
226
|
+
red: o[0],
|
|
227
|
+
green: o[1],
|
|
228
|
+
blue: o[2],
|
|
229
|
+
alpha: o[3] / 255
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function P(e, t = null) {
|
|
233
|
+
if (!Array.isArray(e) || e.length === 0) throw Error("colorsToRgba: colors must be a non-empty array.");
|
|
234
|
+
let n = Array(e.length);
|
|
235
|
+
for (let r = 0; r < e.length; r += 1) n[r] = N(e[r], t);
|
|
236
|
+
return n;
|
|
237
|
+
}
|
|
238
|
+
function He(e, t = null) {
|
|
239
|
+
return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
|
|
240
|
+
}
|
|
241
|
+
function Ue(e) {
|
|
242
|
+
let t = e.trim().toLowerCase();
|
|
243
|
+
return t === "black" || t === "#000" || t === "#000000" || t === "rgb(0, 0, 0)" || t === "rgba(0, 0, 0, 1)" || t === "rgba(0, 0, 0, 0)";
|
|
244
|
+
}
|
|
245
|
+
function F(e) {
|
|
246
|
+
let t = M(e / 255);
|
|
247
|
+
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
248
|
+
}
|
|
249
|
+
function I(e) {
|
|
250
|
+
let t = M(e), n;
|
|
251
|
+
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, Ve(n * 255);
|
|
252
|
+
}
|
|
253
|
+
function We(e, t, n, r) {
|
|
254
|
+
let i = M(n);
|
|
255
|
+
if (r === "linearRGB") {
|
|
256
|
+
let n = F(e.red), r = F(e.green), a = F(e.blue), o = F(t.red), s = F(t.green), c = F(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
|
|
257
|
+
return {
|
|
258
|
+
red: I(l),
|
|
259
|
+
green: I(u),
|
|
260
|
+
blue: I(d),
|
|
261
|
+
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
return {
|
|
265
|
+
red: e.red + (t.red - e.red) * i,
|
|
266
|
+
green: e.green + (t.green - e.green) * i,
|
|
267
|
+
blue: e.blue + (t.blue - e.blue) * i,
|
|
268
|
+
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/SPG/number-utils.js
|
|
273
|
+
function L(e, t, n) {
|
|
274
|
+
let r = e;
|
|
275
|
+
return r < t && (r = t), r > n && (r = n), r;
|
|
276
|
+
}
|
|
277
|
+
function R(e, t) {
|
|
278
|
+
let n = 10 ** t;
|
|
279
|
+
return Math.round(e * n) / n;
|
|
280
|
+
}
|
|
281
|
+
function z(e) {
|
|
282
|
+
return Number.isFinite(e) ? e.toString() : "0";
|
|
283
|
+
}
|
|
284
|
+
function Ge(e) {
|
|
285
|
+
let t = L(e, 0, 255).toString(16);
|
|
286
|
+
return t.length === 1 ? "0" + t : t;
|
|
287
|
+
}
|
|
288
|
+
function Ke(e) {
|
|
289
|
+
if (typeof e != "string") return;
|
|
290
|
+
let t = Number.parseFloat(e);
|
|
291
|
+
return Number.isFinite(t) ? t : void 0;
|
|
292
|
+
}
|
|
293
|
+
function qe(e, t, n, r = !0) {
|
|
294
|
+
let i = n - t;
|
|
295
|
+
if (i === 0) return 0;
|
|
296
|
+
let a = (e - t) / i;
|
|
297
|
+
return r ? L(a, 0, 1) : a;
|
|
298
|
+
}
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/SPG/index.js
|
|
301
|
+
var Je = "http://www.w3.org/2000/svg";
|
|
302
|
+
function Ye(e) {
|
|
303
|
+
if (typeof document > "u") throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
|
|
304
|
+
let t = document.createElementNS(Je, "svg");
|
|
305
|
+
t.setAttribute("width", "0"), t.setAttribute("height", "0"), t.setAttribute("viewBox", "0 0 0 0"), t.style.position = "absolute", t.style.left = "-10000px", t.style.top = "-10000px", t.style.visibility = "hidden", t.style.pointerEvents = "none";
|
|
306
|
+
let n = document.createElementNS(Je, "path");
|
|
307
|
+
return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), t.appendChild(n), document.body.appendChild(t), {
|
|
308
|
+
svgElement: t,
|
|
309
|
+
pathElement: n
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function Xe(e) {
|
|
313
|
+
if (e) try {
|
|
314
|
+
e.svgElement?.remove?.();
|
|
315
|
+
} catch {}
|
|
316
|
+
}
|
|
317
|
+
function Ze(e, t, n) {
|
|
318
|
+
if (typeof n == "number" && n > 0) return n;
|
|
319
|
+
let r = t * .75;
|
|
320
|
+
r < .5 && (r = .5), r > 8 && (r = 8);
|
|
321
|
+
let i = e / 2;
|
|
322
|
+
return r > i && i > 0 && (r = i), r <= 0 && (r = 1), r;
|
|
323
|
+
}
|
|
324
|
+
function Qe(e, t, n) {
|
|
325
|
+
if (typeof t == "number" && t >= 1) return Math.floor(t);
|
|
326
|
+
let r = Math.ceil(e / (typeof n == "number" && n > 0 ? n : 2));
|
|
327
|
+
return r < 1 ? 1 : r;
|
|
328
|
+
}
|
|
329
|
+
function $e(e, t, n, r, i, a) {
|
|
330
|
+
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
331
|
+
s < 2 && (s = 2), s > a && (s = a);
|
|
332
|
+
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = `M ${z(R(l.x, i))} ${z(R(l.y, i))}`;
|
|
333
|
+
for (let n = 1; n < s; n += 1) {
|
|
334
|
+
let r = t + n * c, a = e.getPointAtLength(r);
|
|
335
|
+
u += ` L ${z(R(a.x, i))} ${z(R(a.y, i))}`;
|
|
336
|
+
}
|
|
337
|
+
return u;
|
|
338
|
+
}
|
|
339
|
+
function et(e, t, n, r, i, a) {
|
|
340
|
+
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
341
|
+
s < 2 && (s = 2), s > a && (s = a);
|
|
342
|
+
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, f = l.y, p = l.y, m = `M ${z(R(l.x, i))} ${z(R(l.y, i))}`;
|
|
343
|
+
for (let n = 1; n < s; n += 1) {
|
|
344
|
+
let r = t + n * c, a = e.getPointAtLength(r);
|
|
345
|
+
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y < f && (f = a.y), a.y > p && (p = a.y), m += ` L ${z(R(a.x, i))} ${z(R(a.y, i))}`;
|
|
346
|
+
}
|
|
347
|
+
return {
|
|
348
|
+
pathData: m,
|
|
349
|
+
bounds: {
|
|
350
|
+
minX: u,
|
|
351
|
+
maxX: d,
|
|
352
|
+
minY: f,
|
|
353
|
+
maxY: p
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
function tt(e) {
|
|
358
|
+
if (e.length === 1) return [{
|
|
359
|
+
position: 0,
|
|
360
|
+
rgba: e[0]
|
|
361
|
+
}];
|
|
362
|
+
let t = Array(e.length), n = e.length - 1;
|
|
363
|
+
for (let r = 0; r < e.length; r += 1) t[r] = {
|
|
364
|
+
position: r / n,
|
|
365
|
+
rgba: e[r]
|
|
366
|
+
};
|
|
367
|
+
return t;
|
|
368
|
+
}
|
|
369
|
+
function B(e, t, n, r) {
|
|
370
|
+
let i = L(t, 0, 1), a = r;
|
|
371
|
+
for (a < 0 && (a = 0), a > e.length - 2 && (a = e.length - 2); a > 0 && i < e[a].position;) --a;
|
|
372
|
+
for (; a < e.length - 2 && i > e[a + 1].position;) a += 1;
|
|
373
|
+
let o = e[a], s = e[a + 1], c = s.position - o.position, l = c > 0 ? (i - o.position) / c : 0;
|
|
374
|
+
return W(V(o.rgba, s.rgba, l, n));
|
|
375
|
+
}
|
|
376
|
+
function V(e, t, n, r) {
|
|
377
|
+
let i = L(n, 0, 1);
|
|
378
|
+
if (r === "linearRGB") {
|
|
379
|
+
let n = H(e.red), r = H(e.green), a = H(e.blue), o = H(t.red), s = H(t.green), c = H(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
|
|
380
|
+
return {
|
|
381
|
+
red: U(l),
|
|
382
|
+
green: U(u),
|
|
383
|
+
blue: U(d),
|
|
384
|
+
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
return {
|
|
388
|
+
red: e.red + (t.red - e.red) * i,
|
|
389
|
+
green: e.green + (t.green - e.green) * i,
|
|
390
|
+
blue: e.blue + (t.blue - e.blue) * i,
|
|
391
|
+
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function H(e) {
|
|
395
|
+
let t = L(e / 255, 0, 1);
|
|
396
|
+
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
397
|
+
}
|
|
398
|
+
function U(e) {
|
|
399
|
+
let t = L(e, 0, 1), n;
|
|
400
|
+
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, L(Math.round(n * 255), 0, 255);
|
|
401
|
+
}
|
|
402
|
+
function W(e) {
|
|
403
|
+
let t = L(e.alpha, 0, 1), n = L(Math.round(e.red), 0, 255), r = L(Math.round(e.green), 0, 255), i = L(Math.round(e.blue), 0, 255);
|
|
404
|
+
return t >= 1 ? `#${Ge(n)}${Ge(r)}${Ge(i)}` : `rgba(${n}, ${r}, ${i}, ${R(t, 4).toString()})`;
|
|
405
|
+
}
|
|
406
|
+
function nt(e) {
|
|
407
|
+
let t = `fill="${G(e.fill ?? "none")}"`, n = Object.keys(e);
|
|
408
|
+
for (let r = 0; r < n.length; r += 1) {
|
|
409
|
+
let i = n[r];
|
|
410
|
+
if (i === "stroke" || i === "d") continue;
|
|
411
|
+
let a = e[i];
|
|
412
|
+
t += ` ${i}="${G(a)}"`;
|
|
413
|
+
}
|
|
414
|
+
return t;
|
|
415
|
+
}
|
|
416
|
+
function rt(e, t, n) {
|
|
417
|
+
return `<path d="${G(e)}" stroke="${G(t)}" ${n} />`;
|
|
418
|
+
}
|
|
419
|
+
function it(e) {
|
|
420
|
+
let t = [], n = e.segmentAttributeMap.fill ?? "none";
|
|
421
|
+
t.push(`fill="${G(n)}"`), t.push(`stroke="${G(e.stroke)}"`);
|
|
422
|
+
for (let n of Object.keys(e.segmentAttributeMap)) {
|
|
423
|
+
if (n === "stroke" || n === "d") continue;
|
|
424
|
+
let r = e.segmentAttributeMap[n];
|
|
425
|
+
t.push(`${n}="${G(r)}"`);
|
|
426
|
+
}
|
|
427
|
+
return `<path d="${G(e.pathData)}" ${t.join(" ")} />`;
|
|
428
|
+
}
|
|
429
|
+
function at(e, t) {
|
|
430
|
+
let n = [];
|
|
431
|
+
for (let e of Object.keys(t)) n.push(`${e}="${G(t[e])}"`);
|
|
432
|
+
return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
|
|
433
|
+
}
|
|
434
|
+
function G(e) {
|
|
435
|
+
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
436
|
+
}
|
|
437
|
+
function ot(e, t = null, n = {}) {
|
|
438
|
+
return new Promise((r, i) => {
|
|
439
|
+
let a = null;
|
|
440
|
+
try {
|
|
441
|
+
if (!e || typeof e != "string") throw Error("SvgPathGradientAsync: pathData must be a non-empty string.");
|
|
442
|
+
let i = n.temperatureMode ?? null;
|
|
443
|
+
if (i === null && (!Array.isArray(t) || t.length === 0)) throw Error("SvgPathGradientAsync: colors must be a non-empty array when temperatureMode is not enabled.");
|
|
444
|
+
if ((n.returnMode ?? "string") !== "string") throw Error("SvgPathGradientAsync: only returnMode=\"string\" is supported for the async version.");
|
|
445
|
+
let o = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, s = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : .25, c = n.attrs ? { ...n.attrs } : {}, l = n.groupAttrs ? { ...n.groupAttrs } : {}, u = Ke(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
|
|
446
|
+
a = Ye(e);
|
|
447
|
+
let f = a.pathElement, p = f.getTotalLength(), m = i === null ? P(t, n.colorReferenceElement) : [];
|
|
448
|
+
if (i === null && (!(p > 0) || m.length === 1)) {
|
|
449
|
+
let t = at([it({
|
|
450
|
+
pathData: e,
|
|
451
|
+
stroke: W(m[0]),
|
|
452
|
+
segmentAttributeMap: c
|
|
453
|
+
})], l);
|
|
454
|
+
Xe(a), r(t);
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
let ee = n.colorSpace ?? "linearRGB";
|
|
458
|
+
if (i !== null) {
|
|
459
|
+
let e = n.temperatureColors;
|
|
460
|
+
if (!Array.isArray(e) || e.length !== 2) throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
|
|
461
|
+
}
|
|
462
|
+
let te = i === null ? null : P(n.temperatureColors, n.colorReferenceElement), ne = i === null ? (() => {
|
|
463
|
+
let e = tt(m), t = Array(e.length);
|
|
464
|
+
for (let n = 0; n < e.length; n += 1) t[n] = {
|
|
465
|
+
position: e[n].position,
|
|
466
|
+
rgba: e[n].rgba
|
|
467
|
+
};
|
|
468
|
+
return t;
|
|
469
|
+
})() : [], re = Ze(p, d, n.maxSegmentLength), h = Qe(p, n.segments, re), ie = p / h, ae = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, oe = ie * .45;
|
|
470
|
+
ae > oe && (ae = oe);
|
|
471
|
+
let se = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce = nt(c), le = [], ue = i === null ? null : [], de = i === null ? null : [], fe = 0, pe = i === null ? ne.length - 2 : 0, g = 0, me = () => {
|
|
472
|
+
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
473
|
+
for (; g < h && performance.now() - e < t;) {
|
|
474
|
+
let e = g * ie, t = (g + 1) * ie, n = e, r = t;
|
|
475
|
+
if (g !== 0 && (n = e - ae), g !== h - 1 && (r = t + ae), n = L(n, 0, p), r = L(r, 0, p), r > n) if (i !== null) {
|
|
476
|
+
let e = et(f, n, r, s, o, se);
|
|
477
|
+
ue.push(e.pathData), de.push(e.bounds);
|
|
478
|
+
} else {
|
|
479
|
+
let e = (n + r) * .5 / p;
|
|
480
|
+
for (; fe < pe && e > ne[fe + 1].position;) fe += 1;
|
|
481
|
+
let t = B(ne, e, ee, fe), i = $e(f, n, r, s, o, se);
|
|
482
|
+
le.push(rt(i, t, ce));
|
|
483
|
+
}
|
|
484
|
+
g += 1;
|
|
485
|
+
}
|
|
486
|
+
if (g < h) {
|
|
487
|
+
requestAnimationFrame(me);
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
if (i !== null) {
|
|
491
|
+
let e = Infinity, t = -Infinity;
|
|
492
|
+
for (let n = 0; n < de.length; n += 1) {
|
|
493
|
+
let r = de[n], a = i === "vertical" ? r.minY : r.minX, o = i === "vertical" ? r.maxY : r.maxX;
|
|
494
|
+
a < e && (e = a), o > t && (t = o);
|
|
495
|
+
}
|
|
496
|
+
let n = te[0], r = te[1];
|
|
497
|
+
le.length = 0;
|
|
498
|
+
for (let a = 0; a < de.length; a += 1) {
|
|
499
|
+
let o = de[a], s = qe(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = W(i === "vertical" ? We(n, r, s, ee) : We(r, n, s, ee)), l = ue[a];
|
|
500
|
+
le.push(rt(l, c, ce));
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
let c = at(le, l);
|
|
504
|
+
Xe(a), r(c);
|
|
505
|
+
};
|
|
506
|
+
requestAnimationFrame(me);
|
|
507
|
+
} catch (e) {
|
|
508
|
+
Xe(a), i(e);
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/atoms/SparklineGradientPath.vue
|
|
514
|
+
var st = ["innerHTML"], ct = {
|
|
515
|
+
__name: "SparklineGradientPath",
|
|
516
|
+
props: {
|
|
517
|
+
svgPathData: {
|
|
518
|
+
type: String,
|
|
519
|
+
required: !0
|
|
520
|
+
},
|
|
521
|
+
enabled: {
|
|
522
|
+
type: Boolean,
|
|
523
|
+
required: !0
|
|
524
|
+
},
|
|
525
|
+
strokeWidth: {
|
|
526
|
+
type: Number,
|
|
527
|
+
required: !0
|
|
528
|
+
},
|
|
529
|
+
highColor: {
|
|
530
|
+
type: String,
|
|
531
|
+
required: !0
|
|
532
|
+
},
|
|
533
|
+
lowColor: {
|
|
534
|
+
type: String,
|
|
535
|
+
required: !0
|
|
536
|
+
},
|
|
537
|
+
segments: {
|
|
538
|
+
type: Number,
|
|
539
|
+
required: !0
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
setup(e) {
|
|
543
|
+
let t = e, n = T(""), r = 0;
|
|
544
|
+
return O(() => [
|
|
545
|
+
t.enabled,
|
|
546
|
+
t.svgPathData,
|
|
547
|
+
t.strokeWidth,
|
|
548
|
+
t.highColor,
|
|
549
|
+
t.lowColor,
|
|
550
|
+
t.segments
|
|
551
|
+
], async ([e]) => {
|
|
552
|
+
let i = ++r;
|
|
553
|
+
if (!e) {
|
|
554
|
+
n.value = "";
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
let a = await ot(t.svgPathData, null, {
|
|
558
|
+
segments: t.segments,
|
|
559
|
+
temperatureMode: "vertical",
|
|
560
|
+
temperatureColors: [t.highColor, t.lowColor],
|
|
561
|
+
attrs: {
|
|
562
|
+
"stroke-width": t.strokeWidth,
|
|
563
|
+
"stroke-linecap": "round",
|
|
564
|
+
"stroke-linejoin": "round"
|
|
565
|
+
},
|
|
566
|
+
groupAttrs: { class: "vue-ui-sparkline-gradient" }
|
|
567
|
+
});
|
|
568
|
+
i === r && (n.value = a);
|
|
569
|
+
}, { immediate: !0 }), (e, t) => (w(), b("g", { innerHTML: n.value }, null, 8, st));
|
|
570
|
+
}
|
|
571
|
+
}, lt = /* @__PURE__ */ e({ default: () => K }), ut = ["id"], dt = ["id"], ft = { style: { position: "relative" } }, pt = [
|
|
572
|
+
"xmlns",
|
|
573
|
+
"viewBox",
|
|
574
|
+
"aria-describedby"
|
|
575
|
+
], mt = ["width", "height"], ht = ["id"], gt = ["stop-color"], _t = ["stop-color"], vt = ["id"], yt = ["stop-color"], bt = ["stop-color"], xt = ["id"], St = ["stop-color"], Ct = ["stop-color"], wt = ["id"], Tt = ["id"], Et = ["stop-color", "offset"], Dt = { key: 1 }, Ot = ["d", "fill"], kt = ["d", "fill"], At = [
|
|
576
|
+
"id",
|
|
577
|
+
"d",
|
|
578
|
+
"stroke-width"
|
|
579
|
+
], jt = [
|
|
580
|
+
"d",
|
|
581
|
+
"stroke",
|
|
582
|
+
"stroke-width",
|
|
583
|
+
"stroke-dasharray"
|
|
584
|
+
], Mt = [
|
|
585
|
+
"d",
|
|
586
|
+
"stroke",
|
|
587
|
+
"stroke-width"
|
|
588
|
+
], Nt = [
|
|
589
|
+
"id",
|
|
590
|
+
"d",
|
|
591
|
+
"stroke-width"
|
|
592
|
+
], Pt = [
|
|
593
|
+
"d",
|
|
594
|
+
"stroke",
|
|
595
|
+
"stroke-width",
|
|
596
|
+
"stroke-dasharray"
|
|
597
|
+
], Ft = [
|
|
598
|
+
"d",
|
|
599
|
+
"stroke",
|
|
600
|
+
"stroke-width"
|
|
601
|
+
], It = [
|
|
602
|
+
"x",
|
|
603
|
+
"y",
|
|
604
|
+
"width",
|
|
605
|
+
"height",
|
|
606
|
+
"fill",
|
|
607
|
+
"rx"
|
|
608
|
+
], Lt = [
|
|
609
|
+
"x1",
|
|
610
|
+
"x2",
|
|
611
|
+
"y1",
|
|
612
|
+
"y2",
|
|
613
|
+
"stroke",
|
|
614
|
+
"stroke-width",
|
|
615
|
+
"stroke-dasharray"
|
|
616
|
+
], Rt = [
|
|
617
|
+
"x1",
|
|
618
|
+
"x2",
|
|
619
|
+
"y1",
|
|
620
|
+
"y2",
|
|
621
|
+
"stroke",
|
|
622
|
+
"stroke-dasharray",
|
|
623
|
+
"stroke-width"
|
|
624
|
+
], zt = [
|
|
625
|
+
"cx",
|
|
626
|
+
"cy",
|
|
627
|
+
"r",
|
|
628
|
+
"fill",
|
|
629
|
+
"stroke",
|
|
630
|
+
"stroke-width"
|
|
631
|
+
], Bt = [
|
|
632
|
+
"x",
|
|
633
|
+
"y",
|
|
634
|
+
"font-size",
|
|
635
|
+
"font-weight",
|
|
636
|
+
"fill"
|
|
637
|
+
], Vt = [
|
|
638
|
+
"x",
|
|
639
|
+
"y",
|
|
640
|
+
"height",
|
|
641
|
+
"width",
|
|
642
|
+
"onMouseenter",
|
|
643
|
+
"onMouseleave",
|
|
644
|
+
"onClick"
|
|
645
|
+
], Ht = {
|
|
646
|
+
key: 0,
|
|
647
|
+
style: {
|
|
648
|
+
position: "absolute",
|
|
649
|
+
top: "100%",
|
|
650
|
+
left: "0",
|
|
651
|
+
width: "100%"
|
|
652
|
+
},
|
|
653
|
+
"data-dom-to-png-ignore": "",
|
|
654
|
+
"aria-hidden": "true"
|
|
655
|
+
}, K = /* @__PURE__ */ fe({
|
|
656
|
+
__name: "vue-ui-sparkline",
|
|
657
|
+
props: {
|
|
658
|
+
config: {
|
|
659
|
+
type: Object,
|
|
660
|
+
default() {
|
|
661
|
+
return {};
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
dataset: {
|
|
665
|
+
type: Array,
|
|
666
|
+
default() {
|
|
667
|
+
return [];
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
showInfo: {
|
|
671
|
+
type: Boolean,
|
|
672
|
+
default: !0
|
|
673
|
+
},
|
|
674
|
+
selectedIndex: {
|
|
675
|
+
type: Number,
|
|
676
|
+
default: void 0
|
|
677
|
+
},
|
|
678
|
+
heightRatio: {
|
|
679
|
+
type: Number,
|
|
680
|
+
default: 1
|
|
681
|
+
},
|
|
682
|
+
forcedPadding: {
|
|
683
|
+
type: Number,
|
|
684
|
+
default: 30
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
emits: ["hoverIndex", "selectDatapoint"],
|
|
688
|
+
setup(e, { emit: fe }) {
|
|
689
|
+
let Me = xe(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), Ne = xe(() => import("./SparkTooltip-c2DL7gqD.js")), { vue_ui_sparkline: Pe } = se(), { isThemeValid: Fe, warnInvalidTheme: Ie } = de(), Le = ge(), k = e, Re = v(() => Array.isArray(k.dataset) && k.dataset.length > 0), A = T(r()), j = T(null), Be = T(null), Ve = T(null), M = T(null), N = T(null), P = T(R());
|
|
690
|
+
function He(e) {
|
|
691
|
+
return k.config?.skeletonDataset && Array.isArray(k.config.skeletonDataset) ? k.config.skeletonDataset.map((e) => ({
|
|
692
|
+
period: "-",
|
|
693
|
+
value: e
|
|
694
|
+
})) : s(e).map((e) => ({
|
|
695
|
+
period: "-",
|
|
696
|
+
value: e
|
|
697
|
+
}));
|
|
698
|
+
}
|
|
699
|
+
let Ue = v(() => ae({
|
|
700
|
+
defaultConfig: {
|
|
701
|
+
gradientPath: { show: !1 },
|
|
702
|
+
temperatureColors: { show: !1 },
|
|
703
|
+
style: {
|
|
704
|
+
backgroundColor: "#99999930",
|
|
705
|
+
scaleMin: 0,
|
|
706
|
+
scaleMax: null,
|
|
707
|
+
animation: { show: !1 },
|
|
708
|
+
line: {
|
|
709
|
+
color: "#AAAAAA",
|
|
710
|
+
pulse: { show: !1 },
|
|
711
|
+
dashIndices: []
|
|
712
|
+
},
|
|
713
|
+
bar: { color: "#AAAAAA" },
|
|
714
|
+
area: { color: "#CACACA" },
|
|
715
|
+
zeroLine: { color: "#6A6A6A" },
|
|
716
|
+
dataLabel: { show: !1 },
|
|
717
|
+
tooltip: { show: !1 }
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
721
|
+
})), { loading: F, FINAL_DATASET: I, manualLoading: We } = ce({
|
|
722
|
+
...ke(k),
|
|
723
|
+
FINAL_CONFIG: P,
|
|
724
|
+
prepareConfig: R,
|
|
725
|
+
callback: () => {
|
|
726
|
+
Promise.resolve().then(async () => {
|
|
727
|
+
await S(), st();
|
|
728
|
+
});
|
|
729
|
+
},
|
|
730
|
+
skeletonDataset: He(12),
|
|
731
|
+
skeletonConfig: ae({
|
|
732
|
+
defaultConfig: P.value,
|
|
733
|
+
userConfig: Ue.value
|
|
734
|
+
})
|
|
735
|
+
}), { svgRef: L } = he({ config: P.value.style.title });
|
|
736
|
+
function R() {
|
|
737
|
+
let e = ue({
|
|
738
|
+
userConfig: k.config,
|
|
739
|
+
defaultConfig: Pe
|
|
740
|
+
}), t = {}, n = e.theme;
|
|
741
|
+
if (n) if (!Fe.value(e)) Ie(e), t = e;
|
|
742
|
+
else {
|
|
743
|
+
let r = ue({
|
|
744
|
+
userConfig: _e[n] || k.config,
|
|
745
|
+
defaultConfig: e
|
|
746
|
+
});
|
|
747
|
+
t = { ...ue({
|
|
748
|
+
userConfig: k.config,
|
|
749
|
+
defaultConfig: r
|
|
750
|
+
}) };
|
|
751
|
+
}
|
|
752
|
+
else t = e;
|
|
753
|
+
return t;
|
|
754
|
+
}
|
|
755
|
+
let z = v(() => P.value?.style?.line.pulse || {}), Ge = v(() => `${Math.max(200, Number(z.value.durationMs) || 4e3) / 1e3}s`), Ke = T(0), qe = v(() => z.value?.begin || "0ms"), Je = T("0;1"), Ye = v(() => z.value?.loop === !1 ? "1" : "indefinite"), Xe = v(() => z.value?.loop === !1 ? "freeze" : void 0), Ze = v(() => z.value.trail.show && tt.value.lengthPx || 1), Qe = v(() => !!z.value?.show && !Q.value && !Le.value && !F.value && (Y.value?.length || 0) > 1);
|
|
756
|
+
function $e() {
|
|
757
|
+
if (!Qe.value) {
|
|
758
|
+
Ke.value = 0;
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
let e = L.value;
|
|
762
|
+
if (!e) return;
|
|
763
|
+
let t = `#${K.value}`, n = e.querySelector?.(t);
|
|
764
|
+
if (n && typeof n.getTotalLength == "function") {
|
|
765
|
+
let e = n.getTotalLength();
|
|
766
|
+
Number.isFinite(e) && e > 0 && (Ke.value = e);
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
requestAnimationFrame(() => {
|
|
770
|
+
let n = e.querySelector?.(t);
|
|
771
|
+
if (n && typeof n.getTotalLength == "function") {
|
|
772
|
+
let e = n.getTotalLength();
|
|
773
|
+
Number.isFinite(e) && e > 0 && (Ke.value = e);
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
let et = v(() => {
|
|
778
|
+
let e = z.value?.easing || "ease-in-out", t = {
|
|
779
|
+
ease: [
|
|
780
|
+
.25,
|
|
781
|
+
.1,
|
|
782
|
+
.25,
|
|
783
|
+
1
|
|
784
|
+
],
|
|
785
|
+
"ease-in": [
|
|
786
|
+
.42,
|
|
787
|
+
0,
|
|
788
|
+
1,
|
|
789
|
+
1
|
|
790
|
+
],
|
|
791
|
+
"ease-out": [
|
|
792
|
+
0,
|
|
793
|
+
0,
|
|
794
|
+
.58,
|
|
795
|
+
1
|
|
796
|
+
],
|
|
797
|
+
"ease-in-out": [
|
|
798
|
+
.42,
|
|
799
|
+
0,
|
|
800
|
+
.58,
|
|
801
|
+
1
|
|
802
|
+
]
|
|
803
|
+
};
|
|
804
|
+
return e === "linear" ? {
|
|
805
|
+
calcMode: "linear",
|
|
806
|
+
keySplines: null,
|
|
807
|
+
keyTimes: "0;1"
|
|
808
|
+
} : e === "steps" ? {
|
|
809
|
+
calcMode: "discrete",
|
|
810
|
+
keySplines: null,
|
|
811
|
+
keyTimes: "0;1"
|
|
812
|
+
} : {
|
|
813
|
+
calcMode: "spline",
|
|
814
|
+
keySplines: (e === "cubic-bezier" ? Array.isArray(z.value?.cubicBezier) && z.value.cubicBezier.length === 4 ? z.value.cubicBezier : [
|
|
815
|
+
.4,
|
|
816
|
+
0,
|
|
817
|
+
.2,
|
|
818
|
+
1
|
|
819
|
+
] : t[e] || t["ease-in-out"]).join(" "),
|
|
820
|
+
keyTimes: "0;1"
|
|
821
|
+
};
|
|
822
|
+
}), tt = v(() => {
|
|
823
|
+
let e = z.value?.trail || {}, t = P.value.style.line.strokeWidth || 1;
|
|
824
|
+
return {
|
|
825
|
+
show: e.show !== !1,
|
|
826
|
+
lengthPx: e.length,
|
|
827
|
+
width: Math.max(1, Number(e.strokeWidth) || t * 2.2),
|
|
828
|
+
opacity: Math.min(1, Math.max(0, Number(e.opacity) ?? .6)),
|
|
829
|
+
fadeIn: .5,
|
|
830
|
+
fadeOut: .2
|
|
831
|
+
};
|
|
832
|
+
}), B = v(() => h({
|
|
833
|
+
data: I.value,
|
|
834
|
+
threshold: P.value.downsample.threshold
|
|
835
|
+
}));
|
|
836
|
+
O(() => k.config, (e) => {
|
|
837
|
+
F.value || (P.value = R()), Kt(), q.value.chartWidth = P.value.style.chartWidth;
|
|
838
|
+
}, { deep: !0 }), O(() => k.dataset, (e) => {
|
|
839
|
+
Array.isArray(e) && e.length > 0 && (We.value = !1), V.value = h({
|
|
840
|
+
data: I.value.map((e) => ({
|
|
841
|
+
...e,
|
|
842
|
+
value: [void 0].includes(e.value) ? null : e.value
|
|
843
|
+
})),
|
|
844
|
+
threshold: P.value.downsample.threshold
|
|
845
|
+
});
|
|
846
|
+
}, { deep: !0 });
|
|
847
|
+
let V = T(H());
|
|
848
|
+
function H() {
|
|
849
|
+
return h({
|
|
850
|
+
data: I.value.map((e) => P.value.style.animation.show && I.value.length > 1 ? {
|
|
851
|
+
...e,
|
|
852
|
+
value: null
|
|
853
|
+
} : {
|
|
854
|
+
...e,
|
|
855
|
+
value: [void 0].includes(e.value) ? null : e.value
|
|
856
|
+
}),
|
|
857
|
+
threshold: P.value.downsample.threshold
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
let U = De(null), W = De(null), nt = T(!1), rt = T(0), it = T([]), at = T(""), G = v(() => {
|
|
861
|
+
let e = (B.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = P.value?.style?.animation || {}, n = !!P.value?.gradientPath?.show && !P.value.temperatureColors.show;
|
|
862
|
+
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
863
|
+
});
|
|
864
|
+
function ot() {
|
|
865
|
+
rt.value &&= (cancelAnimationFrame(rt.value), 0), it.value.forEach((e) => clearTimeout(e)), it.value = [], nt.value = !1;
|
|
866
|
+
}
|
|
867
|
+
function st() {
|
|
868
|
+
let e = P.value?.style?.animation || {}, t = B.value || [], n = G.value, r = !!P.value.gradientPath.show && !P.value.temperatureColors.show;
|
|
869
|
+
if (n && n === at.value && (nt.value || V.value.length === t.length)) return;
|
|
870
|
+
if (ot(), r || !e.show || F.value || t.length <= 1) {
|
|
871
|
+
V.value = t, at.value = n;
|
|
872
|
+
return;
|
|
873
|
+
}
|
|
874
|
+
nt.value = !0, at.value = n, V.value = [];
|
|
875
|
+
let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
|
|
876
|
+
if (n !== G.value) {
|
|
877
|
+
ot();
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
if (o < t.length) {
|
|
881
|
+
V.value.push(t[o]);
|
|
882
|
+
let e = setTimeout(() => {
|
|
883
|
+
rt.value = requestAnimationFrame(s);
|
|
884
|
+
}, a);
|
|
885
|
+
it.value.push(e), o += 1;
|
|
886
|
+
} else V.value = t, ot();
|
|
887
|
+
};
|
|
888
|
+
rt.value = requestAnimationFrame(s);
|
|
889
|
+
}
|
|
890
|
+
O(G, () => {
|
|
891
|
+
st();
|
|
892
|
+
}), Te(() => {
|
|
893
|
+
Kt(), st();
|
|
894
|
+
}), we(() => {
|
|
895
|
+
ot();
|
|
896
|
+
});
|
|
897
|
+
let lt = T(0);
|
|
898
|
+
O(() => F.value, async (e) => {
|
|
899
|
+
e || (await S(), lt.value += 1);
|
|
900
|
+
}), O(() => nt.value, async (e) => {
|
|
901
|
+
e || F.value || (await S(), lt.value += 1);
|
|
902
|
+
});
|
|
903
|
+
let K = v(() => `sparkline_line_path_${A.value}`), Ut = T(!0);
|
|
904
|
+
async function Wt() {
|
|
905
|
+
Ut.value = !1, await S(), Ut.value = !0, await S(), $e();
|
|
906
|
+
}
|
|
907
|
+
let Gt = v(() => !!P.value.debug);
|
|
908
|
+
function Kt() {
|
|
909
|
+
if (l(k.dataset) ? (u({
|
|
910
|
+
componentName: "VueUiSparkline",
|
|
911
|
+
type: "dataset",
|
|
912
|
+
debug: Gt.value
|
|
913
|
+
}), We.value = !0) : k.dataset.forEach((e, t) => {
|
|
914
|
+
ne({
|
|
915
|
+
datasetObject: e,
|
|
916
|
+
requiredAttributes: ["period", "value"]
|
|
917
|
+
}).forEach((e) => {
|
|
918
|
+
u({
|
|
919
|
+
componentName: "VueUiSparkline",
|
|
920
|
+
type: "datasetSerieAttribute",
|
|
921
|
+
property: e,
|
|
922
|
+
index: t,
|
|
923
|
+
debug: Gt.value
|
|
924
|
+
});
|
|
925
|
+
});
|
|
926
|
+
}), l(k.dataset) || (We.value = P.value.loading), P.value.responsive) {
|
|
927
|
+
let e = pe(() => {
|
|
928
|
+
let { width: e, height: t } = g({
|
|
929
|
+
chart: j.value,
|
|
930
|
+
title: P.value.style.title.show && k.showInfo ? Be.value : null,
|
|
931
|
+
source: Ve.value
|
|
932
|
+
});
|
|
933
|
+
requestAnimationFrame(() => {
|
|
934
|
+
q.value.width = e, q.value.height = t, q.value.chartWidth = P.value.style.chartWidth / 500 * e, q.value.padding = k.forcedPadding / 500 * e;
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect()), U.value = new ResizeObserver(e), W.value = j.value.parentNode, U.value.observe(W.value);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
we(() => {
|
|
941
|
+
U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect());
|
|
942
|
+
});
|
|
943
|
+
let q = T({
|
|
944
|
+
height: 80 * k.heightRatio,
|
|
945
|
+
width: 500,
|
|
946
|
+
chartWidth: P.value.style.chartWidth,
|
|
947
|
+
padding: k.forcedPadding
|
|
948
|
+
}), qt = fe, J = v(() => {
|
|
949
|
+
let { top: e, right: t, bottom: n, left: r } = P.value.style.padding;
|
|
950
|
+
return {
|
|
951
|
+
top: e,
|
|
952
|
+
left: r,
|
|
953
|
+
right: q.value.width - t,
|
|
954
|
+
bottom: q.value.height - n,
|
|
955
|
+
start: k.showInfo && P.value.style.dataLabel.show && P.value.style.dataLabel.position === "left" ? q.value.width - q.value.chartWidth + r : q.value.padding + r,
|
|
956
|
+
width: k.showInfo && P.value.style.dataLabel.show ? q.value.chartWidth - r - t : q.value.width - q.value.padding - r - t,
|
|
957
|
+
height: q.value.height - e - n
|
|
958
|
+
};
|
|
959
|
+
}), Jt = v(() => [null, void 0].includes(P.value.style.scaleMin) ? Math.min(...V.value.map((e) => isNaN(e.value) || [
|
|
960
|
+
void 0,
|
|
961
|
+
null,
|
|
962
|
+
"NaN",
|
|
963
|
+
NaN,
|
|
964
|
+
Infinity,
|
|
965
|
+
-Infinity
|
|
966
|
+
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMin), Yt = v(() => [null, void 0].includes(P.value.style.scaleMax) ? Math.max(...V.value.map((e) => isNaN(e.value) || [
|
|
967
|
+
void 0,
|
|
968
|
+
null,
|
|
969
|
+
"NaN",
|
|
970
|
+
NaN,
|
|
971
|
+
Infinity,
|
|
972
|
+
-Infinity
|
|
973
|
+
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMax), Xt = v(() => {
|
|
974
|
+
let e = Jt.value >= 0 ? 0 : Jt.value;
|
|
975
|
+
return Math.abs(e);
|
|
976
|
+
}), Zt = v(() => Yt.value + Xt.value), Qt = v(() => J.value.bottom - J.value.height * $t(Xt.value));
|
|
977
|
+
function $t(e) {
|
|
978
|
+
return isNaN(e / Zt.value) ? 0 : e / Zt.value;
|
|
979
|
+
}
|
|
980
|
+
let en = v(() => B.value.length - 1 || 1), tn = T([]), nn = 0;
|
|
981
|
+
Ae(() => {
|
|
982
|
+
let e = ++nn;
|
|
983
|
+
(async () => {
|
|
984
|
+
let t = await oe({
|
|
985
|
+
values: B.value.map((e) => e.period),
|
|
986
|
+
maxDatapoints: B.value.length,
|
|
987
|
+
formatter: P.value.style.dataLabel.datetimeFormatter,
|
|
988
|
+
start: 0,
|
|
989
|
+
end: B.value.length
|
|
990
|
+
});
|
|
991
|
+
e === nn && (tn.value = t);
|
|
992
|
+
})();
|
|
993
|
+
});
|
|
994
|
+
let Y = v(() => V.value.map((e, t) => {
|
|
995
|
+
let n = isNaN(e.value) || [
|
|
996
|
+
void 0,
|
|
997
|
+
null,
|
|
998
|
+
"NaN",
|
|
999
|
+
NaN,
|
|
1000
|
+
Infinity,
|
|
1001
|
+
-Infinity
|
|
1002
|
+
].includes(e.value) ? 0 : e.value || 0, r = J.value.width / en.value;
|
|
1003
|
+
return {
|
|
1004
|
+
value: e.value,
|
|
1005
|
+
absoluteValue: n,
|
|
1006
|
+
period: tn.value && tn.value[t] && tn.value[t].text ? tn.value[t].text : e.period,
|
|
1007
|
+
plotValue: n + Xt.value,
|
|
1008
|
+
toMax: $t(n + Xt.value),
|
|
1009
|
+
x: J.value.start + t * r,
|
|
1010
|
+
y: J.value.bottom - J.value.height * $t(n + Xt.value),
|
|
1011
|
+
id: `plot_${A.value}_${t}`,
|
|
1012
|
+
color: Q.value ? P.value.style.bar.color : P.value.style.area.useGradient ? o(P.value.style.line.color, .05 * (1 - t / en.value)) : P.value.style.line.color,
|
|
1013
|
+
width: r
|
|
1014
|
+
};
|
|
1015
|
+
})), rn = v(() => k.selectedIndex !== void 0 && k.selectedIndex !== null && k.selectedIndex >= 0 && k.selectedIndex < Y.value.length ? k.selectedIndex : N.value !== void 0 && N.value !== null && N.value >= 0 && N.value < Y.value.length ? N.value : null), an = v(() => {
|
|
1016
|
+
let e = {
|
|
1017
|
+
x: Y.value[0].x || 0,
|
|
1018
|
+
y: (q.value.height || 0) - 6
|
|
1019
|
+
}, t = {
|
|
1020
|
+
x: Y.value[Y.value.length - 1].x || 0,
|
|
1021
|
+
y: (q.value.height || 0) - 6
|
|
1022
|
+
}, n = [];
|
|
1023
|
+
return Y.value.forEach((e) => {
|
|
1024
|
+
n.push(`${e.x || 0},${e.y || 0} `);
|
|
1025
|
+
}), [
|
|
1026
|
+
e.x,
|
|
1027
|
+
e.y,
|
|
1028
|
+
...n,
|
|
1029
|
+
t.x,
|
|
1030
|
+
t.y
|
|
1031
|
+
].toString();
|
|
1032
|
+
}), X = T(void 0), on = T(void 0);
|
|
1033
|
+
function sn(e, t) {
|
|
1034
|
+
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
1035
|
+
datapoint: e,
|
|
1036
|
+
seriesIndex: t
|
|
1037
|
+
}), N.value = t, M.value = t, X.value = e, on.value ||= e, qt("hoverIndex", { index: t });
|
|
1038
|
+
}
|
|
1039
|
+
function cn(e, t) {
|
|
1040
|
+
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
1041
|
+
datapoint: e,
|
|
1042
|
+
seriesIndex: t
|
|
1043
|
+
}), on.value = X.value, X.value = void 0, N.value = null, M.value = null, qt("hoverIndex", { index: void 0 });
|
|
1044
|
+
}
|
|
1045
|
+
let Z = v(() => {
|
|
1046
|
+
if (Re.value) {
|
|
1047
|
+
let e = Y.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1048
|
+
return {
|
|
1049
|
+
latest: Y.value[Y.value.length - 1] ? Y.value[Y.value.length - 1].absoluteValue : 0,
|
|
1050
|
+
sum: t,
|
|
1051
|
+
average: t / Y.value.length,
|
|
1052
|
+
median: f(e),
|
|
1053
|
+
trend: te(Y.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1054
|
+
x: e,
|
|
1055
|
+
y: t,
|
|
1056
|
+
value: n
|
|
1057
|
+
}))).trend
|
|
1058
|
+
};
|
|
1059
|
+
} else return {
|
|
1060
|
+
latest: null,
|
|
1061
|
+
sum: null,
|
|
1062
|
+
average: null,
|
|
1063
|
+
median: null,
|
|
1064
|
+
trend: null
|
|
1065
|
+
};
|
|
1066
|
+
}), ln = v(() => Re.value ? P.value.style.dataLabel.valueType === "latest" ? Z.value.latest : P.value.style.dataLabel.valueType === "sum" ? Z.value.sum : P.value.style.dataLabel.valueType === "average" ? Z.value.average : 0 : 0), Q = v(() => P.value.type && P.value.type === "bar");
|
|
1067
|
+
function un(e, t) {
|
|
1068
|
+
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
1069
|
+
datapoint: e,
|
|
1070
|
+
seriesIndex: t
|
|
1071
|
+
}), qt("selectDatapoint", {
|
|
1072
|
+
datapoint: e,
|
|
1073
|
+
index: t
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
let dn = v(() => Array.isArray(P.value.style.line.dashIndices) && P.value.style.line.dashIndices.length > 0), fn = v(() => Q.value ? "" : ee(Y.value)), pn = v(() => Q.value ? "" : i(Y.value)), mn = v(() => Q.value || !dn.value ? [] : a(Y.value, P.value.style.line.dashIndices)), hn = v(() => Q.value || !dn.value ? [] : c(Y.value, P.value.style.line.dashIndices)), gn = v(() => Q.value || !P.value.gradientPath.show || P.value.temperatureColors.show ? "" : `M ${(P.value.style.line.smooth ? fn.value : pn.value) || "0,0"}`), $ = v(() => !P.value.temperatureColors.show || P.value.temperatureColors.colors.length === 0 ? null : P.value.temperatureColors.colors.map((e) => ie(e)));
|
|
1077
|
+
O(() => [
|
|
1078
|
+
Qe.value,
|
|
1079
|
+
K.value,
|
|
1080
|
+
Y.value.length,
|
|
1081
|
+
q.value.width,
|
|
1082
|
+
q.value.height,
|
|
1083
|
+
P.value?.style?.line?.smooth
|
|
1084
|
+
], async () => {
|
|
1085
|
+
await S(), $e();
|
|
1086
|
+
}, { immediate: !0 }), Te(async () => {
|
|
1087
|
+
await S(), $e();
|
|
1088
|
+
}), O(() => F.value, async (e) => {
|
|
1089
|
+
e || await Wt();
|
|
1090
|
+
}), O(() => nt.value, async (e) => {
|
|
1091
|
+
e || F.value || await Wt();
|
|
1092
|
+
}), O(() => k.selectedIndex, (e) => {
|
|
1093
|
+
if (e == null) {
|
|
1094
|
+
N.value = null, M.value = null, X.value = void 0;
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
if (e < 0 || e >= Y.value.length) return;
|
|
1098
|
+
let t = Y.value[e];
|
|
1099
|
+
t && (N.value = e, M.value = e, X.value = t);
|
|
1100
|
+
});
|
|
1101
|
+
let _n = T(!1);
|
|
1102
|
+
function vn() {
|
|
1103
|
+
let e = rn.value;
|
|
1104
|
+
if (e !== null && e >= 0 && e < Y.value.length) {
|
|
1105
|
+
let t = Y.value[e];
|
|
1106
|
+
if (t) {
|
|
1107
|
+
M.value = e, X.value = t, N.value = e, _n.value = !0;
|
|
1108
|
+
return;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
M.value = null, !X.value && Y.value.length && sn(Y.value.at(-1), Y.value.length - 1), _n.value = !0;
|
|
1112
|
+
}
|
|
1113
|
+
function yn() {
|
|
1114
|
+
on.value = X.value, (k.selectedIndex === void 0 || k.selectedIndex === null) && (M.value = null, X.value = void 0, N.value = null, qt("hoverIndex", { index: void 0 })), _n.value = !1;
|
|
1115
|
+
}
|
|
1116
|
+
function bn(e) {
|
|
1117
|
+
if (!L.value || document.activeElement !== L.value) return;
|
|
1118
|
+
on.value = X.value;
|
|
1119
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1120
|
+
if (!t && !n) return;
|
|
1121
|
+
let r = Y.value.length;
|
|
1122
|
+
if (!r) return;
|
|
1123
|
+
e.preventDefault(), e.stopPropagation();
|
|
1124
|
+
let i = M.value, a = i !== null && i >= 0 && i < r, o = X.value ? Y.value.findIndex((e) => e.id === X.value.id) : -1;
|
|
1125
|
+
a ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : o !== null && o >= 0 && o < r ? (i = n ? o + 1 : o - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1;
|
|
1126
|
+
let s = Y.value[i];
|
|
1127
|
+
s && (M.value = i, sn(s, i));
|
|
1128
|
+
}
|
|
1129
|
+
let xn = v(() => ({
|
|
1130
|
+
headers: [P.value.translations.period, P.value.translations.value],
|
|
1131
|
+
rows: Y.value.map((e) => [e.period, e.absoluteValue])
|
|
1132
|
+
}));
|
|
1133
|
+
return (r, i) => (w(), b("div", {
|
|
1134
|
+
ref_key: "sparklineChart",
|
|
1135
|
+
ref: j,
|
|
1136
|
+
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1137
|
+
id: A.value,
|
|
1138
|
+
style: C(`width:100%;font-family:${P.value.style.fontFamily};`)
|
|
1139
|
+
}, [
|
|
1140
|
+
x("p", {
|
|
1141
|
+
id: `chart-instructions-${A.value}`,
|
|
1142
|
+
class: "sr-only"
|
|
1143
|
+
}, Oe(P.value.a11y.translations.keyboardNavigation), 9, dt),
|
|
1144
|
+
xn.value?.rows?.length ? (w(), ve(me, {
|
|
1145
|
+
key: 0,
|
|
1146
|
+
uid: A.value,
|
|
1147
|
+
head: xn.value.headers,
|
|
1148
|
+
body: xn.value.rows,
|
|
1149
|
+
notice: P.value.a11y.translations.tableAvailable,
|
|
1150
|
+
caption: P.value.a11y.translations.tableCaption
|
|
1151
|
+
}, null, 8, [
|
|
1152
|
+
"uid",
|
|
1153
|
+
"head",
|
|
1154
|
+
"body",
|
|
1155
|
+
"notice",
|
|
1156
|
+
"caption"
|
|
1157
|
+
])) : y("", !0),
|
|
1158
|
+
Ee(r.$slots, "before", Ce(Se({
|
|
1159
|
+
selected: X.value,
|
|
1160
|
+
latest: Z.value.latest,
|
|
1161
|
+
sum: Z.value.sum,
|
|
1162
|
+
average: Z.value.average,
|
|
1163
|
+
median: Z.value.median,
|
|
1164
|
+
trend: Z.value.trend
|
|
1165
|
+
})), void 0, !0),
|
|
1166
|
+
P.value.style.title.show && e.showInfo ? (w(), b("div", {
|
|
1167
|
+
key: 1,
|
|
1168
|
+
ref_key: "chartTitle",
|
|
1169
|
+
ref: Be,
|
|
1170
|
+
class: "vue-ui-sparkline-title",
|
|
1171
|
+
style: C(`display:flex;align-items:center;width:100%;color:${P.value.style.title.color};background:${P.value.style.backgroundColor};justify-content:${P.value.style.title.textAlign === "left" ? "flex-start" : P.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${P.value.style.title.fontSize * 2}px;font-size:${P.value.style.title.fontSize}px;font-weight:${P.value.style.title.bold ? "bold" : "normal"};`)
|
|
1172
|
+
}, [x("span", { style: C(`padding:${P.value.style.title.textAlign === "left" ? "0 0 0 12px" : P.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Oe(X.value ? X.value.period : P.value.style.title.text), 5)], 4)) : y("", !0),
|
|
1173
|
+
x("div", ft, [(w(), b("svg", {
|
|
1174
|
+
ref_key: "svgRef",
|
|
1175
|
+
ref: L,
|
|
1176
|
+
xmlns: D(re),
|
|
1177
|
+
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
1178
|
+
style: C(`background:${P.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1179
|
+
tabindex: "0",
|
|
1180
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1181
|
+
onMouseleave: i[0] ||= (e) => on.value = void 0,
|
|
1182
|
+
onFocus: vn,
|
|
1183
|
+
onBlur: yn,
|
|
1184
|
+
onKeydown: bn
|
|
1185
|
+
}, [
|
|
1186
|
+
be(D(Me)),
|
|
1187
|
+
r.$slots["chart-background"] ? (w(), b("foreignObject", {
|
|
1188
|
+
key: 0,
|
|
1189
|
+
x: 0,
|
|
1190
|
+
y: 0,
|
|
1191
|
+
width: q.value.width <= 0 ? 10 : q.value.width,
|
|
1192
|
+
height: q.value.height <= 0 ? 10 : q.value.height,
|
|
1193
|
+
style: { pointerEvents: "none" }
|
|
1194
|
+
}, [Ee(r.$slots, "chart-background", {}, void 0, !0)], 8, mt)) : y("", !0),
|
|
1195
|
+
x("defs", null, [
|
|
1196
|
+
x("linearGradient", {
|
|
1197
|
+
x1: "0%",
|
|
1198
|
+
y1: "0%",
|
|
1199
|
+
x2: "100%",
|
|
1200
|
+
y2: "0%",
|
|
1201
|
+
id: `sparkline_gradient_${A.value}`
|
|
1202
|
+
}, [x("stop", {
|
|
1203
|
+
offset: "0%",
|
|
1204
|
+
"stop-color": D(m)(D(o)(P.value.style.area.color, .05), P.value.style.area.opacity)
|
|
1205
|
+
}, null, 8, gt), x("stop", {
|
|
1206
|
+
offset: "100%",
|
|
1207
|
+
"stop-color": D(m)(P.value.style.area.color, P.value.style.area.opacity)
|
|
1208
|
+
}, null, 8, _t)], 8, ht),
|
|
1209
|
+
x("linearGradient", {
|
|
1210
|
+
x2: "0%",
|
|
1211
|
+
y2: "100%",
|
|
1212
|
+
id: `sparkline_bar_gradient_pos_${A.value}`
|
|
1213
|
+
}, [x("stop", {
|
|
1214
|
+
offset: "0%",
|
|
1215
|
+
"stop-color": P.value.style.bar.color
|
|
1216
|
+
}, null, 8, yt), x("stop", {
|
|
1217
|
+
offset: "100%",
|
|
1218
|
+
"stop-color": D(o)(P.value.style.bar.color, .05)
|
|
1219
|
+
}, null, 8, bt)], 8, vt),
|
|
1220
|
+
x("linearGradient", {
|
|
1221
|
+
x2: "0%",
|
|
1222
|
+
y2: "100%",
|
|
1223
|
+
id: `sparkline_bar_gradient_neg_${A.value}`
|
|
1224
|
+
}, [x("stop", {
|
|
1225
|
+
offset: "0%",
|
|
1226
|
+
"stop-color": D(o)(P.value.style.bar.color, .05)
|
|
1227
|
+
}, null, 8, St), x("stop", {
|
|
1228
|
+
offset: "100%",
|
|
1229
|
+
"stop-color": P.value.style.bar.color
|
|
1230
|
+
}, null, 8, Ct)], 8, xt),
|
|
1231
|
+
x("filter", {
|
|
1232
|
+
id: `sparkline_pulse_glow_${A.value}`,
|
|
1233
|
+
filterUnits: "userSpaceOnUse",
|
|
1234
|
+
x: "-50",
|
|
1235
|
+
y: "-50",
|
|
1236
|
+
width: "100",
|
|
1237
|
+
height: "100"
|
|
1238
|
+
}, [...i[1] ||= [x("feGaussianBlur", {
|
|
1239
|
+
in: "SourceGraphic",
|
|
1240
|
+
stdDeviation: "3",
|
|
1241
|
+
result: "blur"
|
|
1242
|
+
}, null, -1), x("feMerge", null, [x("feMergeNode", { in: "blur" }), x("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, wt),
|
|
1243
|
+
P.value.temperatureColors.show && $.value ? (w(), b("linearGradient", {
|
|
1244
|
+
key: 0,
|
|
1245
|
+
id: `temperature_grad_sparkline_${A.value}`,
|
|
1246
|
+
gradientTransform: "rotate(90)"
|
|
1247
|
+
}, [(w(!0), b(_, null, E($.value, (e, n) => (w(), b("stop", {
|
|
1248
|
+
key: `temperature_grad_stop_${n}_${A.value}`,
|
|
1249
|
+
"stop-color": e,
|
|
1250
|
+
offset: D(t)(n, $.value.length)
|
|
1251
|
+
}, null, 8, Et))), 128))], 8, Tt)) : y("", !0)
|
|
1252
|
+
]),
|
|
1253
|
+
P.value.style.area.show && !Q.value && Y.value[0] && Y.value.length > 1 ? (w(), b("g", Dt, [P.value.style.line.smooth ? (w(), b("path", {
|
|
1254
|
+
key: 0,
|
|
1255
|
+
class: "vue-ui-sparkline-area",
|
|
1256
|
+
d: `M ${Y.value[0].x},${J.value.bottom} ${D(ee)(Y.value)} L ${Y.value.at(-1).x},${J.value.bottom} Z`,
|
|
1257
|
+
fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
|
|
1258
|
+
"stroke-linecap": "round",
|
|
1259
|
+
"stroke-linejoin": "round",
|
|
1260
|
+
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1261
|
+
}, null, 12, Ot)) : (w(), b("path", {
|
|
1262
|
+
key: 1,
|
|
1263
|
+
class: "vue-ui-sparkline-area",
|
|
1264
|
+
d: `M${an.value}Z`,
|
|
1265
|
+
fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
|
|
1266
|
+
"stroke-linecap": "round",
|
|
1267
|
+
"stroke-linejoin": "round",
|
|
1268
|
+
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1269
|
+
}, null, 12, kt))])) : y("", !0),
|
|
1270
|
+
P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 2 }, [x("path", {
|
|
1271
|
+
id: K.value,
|
|
1272
|
+
d: `M ${fn.value || "0,0"}`,
|
|
1273
|
+
fill: "none",
|
|
1274
|
+
stroke: "transparent",
|
|
1275
|
+
"stroke-width": P.value.style.line.strokeWidth,
|
|
1276
|
+
"stroke-linecap": "round",
|
|
1277
|
+
"stroke-linejoin": "round"
|
|
1278
|
+
}, null, 8, At), dn.value ? (w(!0), b(_, { key: 0 }, E(mn.value, (e) => (w(), b("path", {
|
|
1279
|
+
key: e.path,
|
|
1280
|
+
class: "vue-ui-sparkline-path",
|
|
1281
|
+
d: `M ${e.path}`,
|
|
1282
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1283
|
+
fill: "none",
|
|
1284
|
+
"stroke-width": P.value.style.line.strokeWidth,
|
|
1285
|
+
"stroke-linecap": "round",
|
|
1286
|
+
"stroke-linejoin": "round",
|
|
1287
|
+
"stroke-dasharray": e.dashed ? P.value.style.line.dashArray : 0,
|
|
1288
|
+
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1289
|
+
}, null, 12, jt))), 128)) : (w(), b("path", {
|
|
1290
|
+
key: 1,
|
|
1291
|
+
class: "vue-ui-sparkline-path",
|
|
1292
|
+
d: `M ${fn.value || "0,0"}`,
|
|
1293
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1294
|
+
fill: "none",
|
|
1295
|
+
"stroke-width": P.value.style.line.strokeWidth,
|
|
1296
|
+
"stroke-linecap": "round",
|
|
1297
|
+
"stroke-linejoin": "round",
|
|
1298
|
+
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1299
|
+
}, null, 12, Mt))], 64)) : y("", !0),
|
|
1300
|
+
!P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 3 }, [x("path", {
|
|
1301
|
+
id: K.value,
|
|
1302
|
+
d: `M ${pn.value || "0,0"}`,
|
|
1303
|
+
fill: "none",
|
|
1304
|
+
stroke: "transparent",
|
|
1305
|
+
"stroke-width": P.value.style.line.strokeWidth,
|
|
1306
|
+
"stroke-linecap": "round",
|
|
1307
|
+
"stroke-linejoin": "round"
|
|
1308
|
+
}, null, 8, Nt), dn.value ? (w(!0), b(_, { key: 0 }, E(hn.value, (e) => (w(), b("path", {
|
|
1309
|
+
key: e.path,
|
|
1310
|
+
class: "vue-ui-sparkline-path",
|
|
1311
|
+
d: `M ${e.path}`,
|
|
1312
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1313
|
+
fill: "none",
|
|
1314
|
+
"stroke-width": P.value.style.line.strokeWidth,
|
|
1315
|
+
"stroke-linecap": "round",
|
|
1316
|
+
"stroke-linejoin": "round",
|
|
1317
|
+
"stroke-dasharray": e.dashed ? P.value.style.line.dashArray * 2 : 0,
|
|
1318
|
+
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1319
|
+
}, null, 12, Pt))), 128)) : (w(), b("path", {
|
|
1320
|
+
key: 1,
|
|
1321
|
+
class: "vue-ui-sparkline-path",
|
|
1322
|
+
d: `M ${pn.value || "0,0"}`,
|
|
1323
|
+
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1324
|
+
fill: "none",
|
|
1325
|
+
"stroke-width": P.value.style.line.strokeWidth,
|
|
1326
|
+
"stroke-linecap": "round",
|
|
1327
|
+
"stroke-linejoin": "round",
|
|
1328
|
+
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1329
|
+
}, null, 12, Ft))], 64)) : y("", !0),
|
|
1330
|
+
gn.value && !$.value ? (w(), ve(ct, {
|
|
1331
|
+
key: 4,
|
|
1332
|
+
svgPathData: gn.value,
|
|
1333
|
+
enabled: P.value.gradientPath.show && !Q.value && !$.value,
|
|
1334
|
+
strokeWidth: P.value.style.line.strokeWidth,
|
|
1335
|
+
highColor: P.value.gradientPath.colors.high,
|
|
1336
|
+
lowColor: P.value.gradientPath.colors.low,
|
|
1337
|
+
segments: P.value.gradientPath.segments
|
|
1338
|
+
}, null, 8, [
|
|
1339
|
+
"svgPathData",
|
|
1340
|
+
"enabled",
|
|
1341
|
+
"strokeWidth",
|
|
1342
|
+
"highColor",
|
|
1343
|
+
"lowColor",
|
|
1344
|
+
"segments"
|
|
1345
|
+
])) : y("", !0),
|
|
1346
|
+
Ut.value && Qe.value ? (w(), ve(ze, {
|
|
1347
|
+
key: 5,
|
|
1348
|
+
uid: A.value,
|
|
1349
|
+
svgRef: D(L),
|
|
1350
|
+
pulsePathId: K.value,
|
|
1351
|
+
pulsePathLength: Ke.value,
|
|
1352
|
+
pulseDur: Ge.value,
|
|
1353
|
+
pulseBegin: qe.value,
|
|
1354
|
+
pulseRepeatCount: Ye.value,
|
|
1355
|
+
pulseFillMode: Xe.value,
|
|
1356
|
+
pulseKeyPoints: Je.value,
|
|
1357
|
+
pulseMotion: et.value,
|
|
1358
|
+
pulse: z.value,
|
|
1359
|
+
pulseTrail: tt.value,
|
|
1360
|
+
pulseTrailLength: Ze.value,
|
|
1361
|
+
prefersReducedMotion: D(Le),
|
|
1362
|
+
loading: D(F),
|
|
1363
|
+
isBar: Q.value
|
|
1364
|
+
}, null, 8, [
|
|
1365
|
+
"uid",
|
|
1366
|
+
"svgRef",
|
|
1367
|
+
"pulsePathId",
|
|
1368
|
+
"pulsePathLength",
|
|
1369
|
+
"pulseDur",
|
|
1370
|
+
"pulseBegin",
|
|
1371
|
+
"pulseRepeatCount",
|
|
1372
|
+
"pulseFillMode",
|
|
1373
|
+
"pulseKeyPoints",
|
|
1374
|
+
"pulseMotion",
|
|
1375
|
+
"pulse",
|
|
1376
|
+
"pulseTrail",
|
|
1377
|
+
"pulseTrailLength",
|
|
1378
|
+
"prefersReducedMotion",
|
|
1379
|
+
"loading",
|
|
1380
|
+
"isBar"
|
|
1381
|
+
])) : y("", !0),
|
|
1382
|
+
(w(!0), b(_, null, E(Y.value, (e, t) => (w(), b("g", null, [Q.value ? (w(), b("rect", {
|
|
1383
|
+
key: 0,
|
|
1384
|
+
x: e.x - e.width / 2,
|
|
1385
|
+
y: isNaN(e.absoluteValue > 0 ? e.y : Qt.value) ? 0 : e.absoluteValue > 0 ? e.y : Qt.value,
|
|
1386
|
+
width: e.width,
|
|
1387
|
+
height: isNaN(Math.abs(e.y - Qt.value)) ? 0 : Math.abs(e.y - Qt.value),
|
|
1388
|
+
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${A.value})` : `url(#sparkline_bar_gradient_neg_${A.value})`,
|
|
1389
|
+
rx: P.value.style.bar.borderRadius
|
|
1390
|
+
}, null, 8, It)) : y("", !0), P.value.style.verticalIndicator.show && (X.value && e.id === X.value.id || rn.value === t) ? (w(), b("line", {
|
|
1391
|
+
key: 1,
|
|
1392
|
+
x1: e.x,
|
|
1393
|
+
x2: e.x,
|
|
1394
|
+
y1: J.value.top - 6,
|
|
1395
|
+
y2: J.value.bottom,
|
|
1396
|
+
stroke: P.value.style.verticalIndicator.color || e.color,
|
|
1397
|
+
"stroke-width": P.value.style.verticalIndicator.strokeWidth,
|
|
1398
|
+
"stroke-linecap": "round",
|
|
1399
|
+
"stroke-dasharray": P.value.style.verticalIndicator.strokeDasharray || 0
|
|
1400
|
+
}, null, 8, Lt)) : y("", !0)]))), 256)),
|
|
1401
|
+
Jt.value < 0 ? (w(), b("line", {
|
|
1402
|
+
key: 6,
|
|
1403
|
+
x1: J.value.start,
|
|
1404
|
+
x2: J.value.start + J.value.width,
|
|
1405
|
+
y1: D(d)(Qt.value, J.value.bottom),
|
|
1406
|
+
y2: D(d)(Qt.value, J.value.bottom),
|
|
1407
|
+
stroke: P.value.style.zeroLine.color,
|
|
1408
|
+
"stroke-dasharray": P.value.style.zeroLine.strokeWidth * 2,
|
|
1409
|
+
"stroke-width": P.value.style.zeroLine.strokeWidth,
|
|
1410
|
+
"stroke-linecap": "round"
|
|
1411
|
+
}, null, 8, Rt)) : y("", !0),
|
|
1412
|
+
P.value.style.plot.show ? (w(!0), b(_, { key: 7 }, E(Y.value, (t, n) => (w(), b("g", null, [X.value && t.id === X.value.id || e.selectedIndex === n || D(I).length === 1 ? (w(), b("circle", {
|
|
1413
|
+
key: 0,
|
|
1414
|
+
cx: t.x,
|
|
1415
|
+
cy: t.y,
|
|
1416
|
+
r: P.value.style.plot.radius,
|
|
1417
|
+
fill: t.color,
|
|
1418
|
+
stroke: P.value.style.plot.stroke,
|
|
1419
|
+
"stroke-width": P.value.style.plot.strokeWidth
|
|
1420
|
+
}, null, 8, zt)) : y("", !0)]))), 256)) : y("", !0),
|
|
1421
|
+
e.showInfo && P.value.style.dataLabel.show ? (w(), b("text", {
|
|
1422
|
+
key: 8,
|
|
1423
|
+
x: P.value.style.dataLabel.position === "left" ? 12 + P.value.style.dataLabel.offsetX : J.value.width + 12 + P.value.style.dataLabel.offsetX,
|
|
1424
|
+
y: q.value.height / 2 + P.value.style.dataLabel.fontSize / 2.5 + P.value.style.dataLabel.offsetY,
|
|
1425
|
+
"font-size": P.value.style.dataLabel.fontSize,
|
|
1426
|
+
"font-weight": P.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1427
|
+
fill: P.value.style.dataLabel.color
|
|
1428
|
+
}, Oe(X.value ? D(p)(P.value.style.dataLabel.formatter, X.value.absoluteValue, D(n)({
|
|
1429
|
+
p: P.value.style.dataLabel.prefix,
|
|
1430
|
+
v: X.value.absoluteValue,
|
|
1431
|
+
s: P.value.style.dataLabel.suffix,
|
|
1432
|
+
r: P.value.style.dataLabel.roundingValue
|
|
1433
|
+
}), { datapoint: X.value }) : D(p)(P.value.style.dataLabel.formatter, ln.value, D(n)({
|
|
1434
|
+
p: P.value.style.dataLabel.prefix,
|
|
1435
|
+
v: ln.value,
|
|
1436
|
+
s: P.value.style.dataLabel.suffix,
|
|
1437
|
+
r: P.value.style.dataLabel.roundingValue
|
|
1438
|
+
}))), 9, Bt)) : y("", !0),
|
|
1439
|
+
(w(!0), b(_, null, E(Y.value, (e, t) => (w(), b("rect", {
|
|
1440
|
+
x: e.x - (J.value.width / (en.value + 1) > q.value.padding ? q.value.padding : J.value.width / (en.value + 1)) / 2,
|
|
1441
|
+
y: J.value.top - 6,
|
|
1442
|
+
height: J.value.height + 6,
|
|
1443
|
+
width: J.value.width / (en.value + 1) > q.value.padding ? q.value.padding : J.value.width / (en.value + 1),
|
|
1444
|
+
fill: "transparent",
|
|
1445
|
+
onMouseenter: () => sn(e, t),
|
|
1446
|
+
onMouseleave: () => cn(e, t),
|
|
1447
|
+
onClick: () => un(e, t)
|
|
1448
|
+
}, null, 40, Vt))), 256)),
|
|
1449
|
+
Ee(r.$slots, "svg", { svg: q.value }, void 0, !0)
|
|
1450
|
+
], 44, pt)), r.$slots.hint ? (w(), b("div", Ht, [Ee(r.$slots, "hint", Ce(Se({
|
|
1451
|
+
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1452
|
+
isVisible: _n.value
|
|
1453
|
+
})), void 0, !0)])) : y("", !0)]),
|
|
1454
|
+
X.value && P.value.style.tooltip.show ? (w(), ve(D(Ne), {
|
|
1455
|
+
key: 2,
|
|
1456
|
+
x: X.value.x,
|
|
1457
|
+
y: X.value.y,
|
|
1458
|
+
prevX: on.value.x,
|
|
1459
|
+
prevY: on.value.y,
|
|
1460
|
+
offsetY: P.value.style.plot.radius * 3 + P.value.style.tooltip.offsetY,
|
|
1461
|
+
svgRef: D(L),
|
|
1462
|
+
background: P.value.style.tooltip.backgroundColor,
|
|
1463
|
+
color: P.value.style.tooltip.color,
|
|
1464
|
+
fontSize: P.value.style.tooltip.fontSize,
|
|
1465
|
+
borderWidth: P.value.style.tooltip.borderWidth,
|
|
1466
|
+
borderColor: P.value.style.tooltip.borderColor,
|
|
1467
|
+
borderRadius: P.value.style.tooltip.borderRadius,
|
|
1468
|
+
backgroundOpacity: P.value.style.tooltip.backgroundOpacity
|
|
1469
|
+
}, {
|
|
1470
|
+
default: je(() => [Ee(r.$slots, "tooltip", Ce(Se({ ...X.value })), () => [ye(Oe(X.value.period) + ": " + Oe(D(p)(P.value.style.dataLabel.formatter, X.value.absoluteValue, D(n)({
|
|
1471
|
+
p: P.value.style.dataLabel.prefix,
|
|
1472
|
+
v: X.value.absoluteValue,
|
|
1473
|
+
s: P.value.style.dataLabel.suffix,
|
|
1474
|
+
r: P.value.style.dataLabel.roundingValue
|
|
1475
|
+
}), { datapoint: X.value })), 1)], !0)]),
|
|
1476
|
+
_: 3
|
|
1477
|
+
}, 8, [
|
|
1478
|
+
"x",
|
|
1479
|
+
"y",
|
|
1480
|
+
"prevX",
|
|
1481
|
+
"prevY",
|
|
1482
|
+
"offsetY",
|
|
1483
|
+
"svgRef",
|
|
1484
|
+
"background",
|
|
1485
|
+
"color",
|
|
1486
|
+
"fontSize",
|
|
1487
|
+
"borderWidth",
|
|
1488
|
+
"borderColor",
|
|
1489
|
+
"borderRadius",
|
|
1490
|
+
"backgroundOpacity"
|
|
1491
|
+
])) : y("", !0),
|
|
1492
|
+
r.$slots.source ? (w(), b("div", {
|
|
1493
|
+
key: 3,
|
|
1494
|
+
ref_key: "source",
|
|
1495
|
+
ref: Ve,
|
|
1496
|
+
dir: "auto"
|
|
1497
|
+
}, [Ee(r.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
1498
|
+
Ee(r.$slots, "skeleton", {}, () => [D(F) ? (w(), ve(le, { key: 0 })) : y("", !0)], !0)
|
|
1499
|
+
], 12, ut));
|
|
1500
|
+
}
|
|
1501
|
+
}, [["__scopeId", "data-v-66022e99"]]);
|
|
1502
|
+
//#endregion
|
|
1503
|
+
export { lt as n, K as t };
|