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,1523 @@
|
|
|
1
|
+
import { Bt as e, F as t, H as n, I as r, L as i, j as a, k as o, pt as ee, r as te, t as ne } from "./lib-BkiwukKO.js";
|
|
2
|
+
import { t as s } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
3
|
+
import { c, r as re } from "./canvas-lib-DTaADQOK.js";
|
|
4
|
+
import { t as l } from "./useResponsive-CrAInupd.js";
|
|
5
|
+
import { t as ie } from "./BaseIcon-CEmt3Ifx.js";
|
|
6
|
+
import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as ae, mergeProps as oe, nextTick as se, normalizeClass as h, normalizeProps as ce, normalizeStyle as g, onBeforeUnmount as le, onMounted as ue, onUpdated as de, openBlock as _, ref as v, renderList as y, renderSlot as fe, toDisplayString as pe, unref as me, useCssVars as he, vModelText as ge, watch as b, withDirectives as _e, withKeys as ve, withModifiers as ye } from "vue";
|
|
7
|
+
//#region src/atoms/SlicerPreview.vue
|
|
8
|
+
var be = ["data-minimap"], xe = {
|
|
9
|
+
class: "vue-data-ui-slicer-labels",
|
|
10
|
+
style: {
|
|
11
|
+
position: "relative",
|
|
12
|
+
"z-index": "1",
|
|
13
|
+
"pointer-events": "none"
|
|
14
|
+
}
|
|
15
|
+
}, Se = {
|
|
16
|
+
key: 0,
|
|
17
|
+
style: {
|
|
18
|
+
width: "100%",
|
|
19
|
+
position: "relative",
|
|
20
|
+
"pointer-events": "all"
|
|
21
|
+
}
|
|
22
|
+
}, Ce = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "minimap",
|
|
25
|
+
style: { width: "100%" }
|
|
26
|
+
}, we = ["xmlns", "viewBox"], Te = ["id"], Ee = ["stop-color"], De = [
|
|
27
|
+
"width",
|
|
28
|
+
"height",
|
|
29
|
+
"stroke"
|
|
30
|
+
], Oe = ["d", "stroke"], ke = ["d", "fill"], Ae = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"width",
|
|
34
|
+
"height",
|
|
35
|
+
"fill"
|
|
36
|
+
], je = [
|
|
37
|
+
"d",
|
|
38
|
+
"stroke",
|
|
39
|
+
"stroke-dasharray"
|
|
40
|
+
], Me = [
|
|
41
|
+
"cx",
|
|
42
|
+
"cy",
|
|
43
|
+
"fill",
|
|
44
|
+
"stroke"
|
|
45
|
+
], Ne = [
|
|
46
|
+
"cx",
|
|
47
|
+
"cy",
|
|
48
|
+
"fill",
|
|
49
|
+
"stroke"
|
|
50
|
+
], Pe = [
|
|
51
|
+
"x",
|
|
52
|
+
"width",
|
|
53
|
+
"height",
|
|
54
|
+
"fill",
|
|
55
|
+
"rx"
|
|
56
|
+
], Fe = [
|
|
57
|
+
"x",
|
|
58
|
+
"width",
|
|
59
|
+
"height",
|
|
60
|
+
"rx",
|
|
61
|
+
"fill"
|
|
62
|
+
], Ie = [
|
|
63
|
+
"x",
|
|
64
|
+
"width",
|
|
65
|
+
"height",
|
|
66
|
+
"fill",
|
|
67
|
+
"rx",
|
|
68
|
+
"aria-valuemin",
|
|
69
|
+
"aria-valuemax",
|
|
70
|
+
"aria-valuenow",
|
|
71
|
+
"aria-valuetext"
|
|
72
|
+
], Le = [
|
|
73
|
+
"x2",
|
|
74
|
+
"y1",
|
|
75
|
+
"y2",
|
|
76
|
+
"stroke"
|
|
77
|
+
], Re = { key: "merged-tree" }, ze = ["d", "fill"], Be = ["d", "stroke"], Ve = [
|
|
78
|
+
"cx",
|
|
79
|
+
"cy",
|
|
80
|
+
"stroke",
|
|
81
|
+
"fill"
|
|
82
|
+
], He = [
|
|
83
|
+
"cx",
|
|
84
|
+
"cy",
|
|
85
|
+
"stroke",
|
|
86
|
+
"fill"
|
|
87
|
+
], Ue = { key: "split-tree" }, We = [
|
|
88
|
+
"x",
|
|
89
|
+
"y",
|
|
90
|
+
"width",
|
|
91
|
+
"height",
|
|
92
|
+
"fill"
|
|
93
|
+
], Ge = [
|
|
94
|
+
"d",
|
|
95
|
+
"stroke",
|
|
96
|
+
"stroke-dasharray"
|
|
97
|
+
], Ke = [
|
|
98
|
+
"cx",
|
|
99
|
+
"cy",
|
|
100
|
+
"fill",
|
|
101
|
+
"stroke"
|
|
102
|
+
], qe = ["width", "height"], Je = [
|
|
103
|
+
"x",
|
|
104
|
+
"width",
|
|
105
|
+
"height",
|
|
106
|
+
"fill",
|
|
107
|
+
"stroke",
|
|
108
|
+
"stroke-width"
|
|
109
|
+
], Ye = ["transform"], Xe = ["width", "height"], Ze = ["fill", "stroke"], Qe = ["stroke"], $e = ["fill"], et = [
|
|
110
|
+
"x",
|
|
111
|
+
"width",
|
|
112
|
+
"height",
|
|
113
|
+
"fill",
|
|
114
|
+
"stroke",
|
|
115
|
+
"stroke-width"
|
|
116
|
+
], tt = ["transform"], nt = ["width", "height"], rt = ["fill", "stroke"], it = ["stroke"], at = ["fill"], ot = {
|
|
117
|
+
key: "merged-tree",
|
|
118
|
+
style: { "pointer-events": "none" }
|
|
119
|
+
}, st = [
|
|
120
|
+
"cx",
|
|
121
|
+
"cy",
|
|
122
|
+
"stroke",
|
|
123
|
+
"fill"
|
|
124
|
+
], ct = [
|
|
125
|
+
"cx",
|
|
126
|
+
"cy",
|
|
127
|
+
"fill"
|
|
128
|
+
], lt = [
|
|
129
|
+
"cx",
|
|
130
|
+
"cy",
|
|
131
|
+
"stroke",
|
|
132
|
+
"fill"
|
|
133
|
+
], ut = [
|
|
134
|
+
"cx",
|
|
135
|
+
"cy",
|
|
136
|
+
"fill"
|
|
137
|
+
], dt = {
|
|
138
|
+
key: 1,
|
|
139
|
+
style: { "pointer-events": "none" }
|
|
140
|
+
}, ft = [
|
|
141
|
+
"d",
|
|
142
|
+
"stroke",
|
|
143
|
+
"stroke-dasharray"
|
|
144
|
+
], pt = [
|
|
145
|
+
"cx",
|
|
146
|
+
"cy",
|
|
147
|
+
"fill",
|
|
148
|
+
"stroke"
|
|
149
|
+
], mt = [
|
|
150
|
+
"cx",
|
|
151
|
+
"cy",
|
|
152
|
+
"stroke",
|
|
153
|
+
"fill"
|
|
154
|
+
], ht = [
|
|
155
|
+
"cx",
|
|
156
|
+
"cy",
|
|
157
|
+
"fill"
|
|
158
|
+
], gt = [
|
|
159
|
+
"cx",
|
|
160
|
+
"cy",
|
|
161
|
+
"stroke",
|
|
162
|
+
"fill"
|
|
163
|
+
], _t = [
|
|
164
|
+
"cx",
|
|
165
|
+
"cy",
|
|
166
|
+
"fill"
|
|
167
|
+
], vt = [
|
|
168
|
+
"cx",
|
|
169
|
+
"cy",
|
|
170
|
+
"fill",
|
|
171
|
+
"stroke"
|
|
172
|
+
], yt = [
|
|
173
|
+
"min",
|
|
174
|
+
"max",
|
|
175
|
+
"tabindex"
|
|
176
|
+
], bt = [
|
|
177
|
+
"min",
|
|
178
|
+
"max",
|
|
179
|
+
"tabindex"
|
|
180
|
+
], xt = 48, St = /* @__PURE__ */ s({
|
|
181
|
+
__name: "SlicerPreview",
|
|
182
|
+
props: {
|
|
183
|
+
uuid: {
|
|
184
|
+
type: String,
|
|
185
|
+
default: ""
|
|
186
|
+
},
|
|
187
|
+
immediate: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: !0
|
|
190
|
+
},
|
|
191
|
+
background: {
|
|
192
|
+
type: String,
|
|
193
|
+
default: "#FFFFFF"
|
|
194
|
+
},
|
|
195
|
+
borderColor: {
|
|
196
|
+
type: String,
|
|
197
|
+
default: "#FFFFFF"
|
|
198
|
+
},
|
|
199
|
+
fontSize: {
|
|
200
|
+
type: Number,
|
|
201
|
+
default: 14
|
|
202
|
+
},
|
|
203
|
+
labelLeft: {
|
|
204
|
+
type: [String, Number],
|
|
205
|
+
default: ""
|
|
206
|
+
},
|
|
207
|
+
labelRight: {
|
|
208
|
+
type: [String, Number],
|
|
209
|
+
default: ""
|
|
210
|
+
},
|
|
211
|
+
textColor: {
|
|
212
|
+
type: String,
|
|
213
|
+
default: "#1A1A1A"
|
|
214
|
+
},
|
|
215
|
+
inputColor: {
|
|
216
|
+
type: String,
|
|
217
|
+
default: "#1A1A1A"
|
|
218
|
+
},
|
|
219
|
+
max: {
|
|
220
|
+
type: Number,
|
|
221
|
+
default: 0
|
|
222
|
+
},
|
|
223
|
+
min: {
|
|
224
|
+
type: Number,
|
|
225
|
+
default: 0
|
|
226
|
+
},
|
|
227
|
+
selectColor: {
|
|
228
|
+
type: String,
|
|
229
|
+
default: "#4A4A4A"
|
|
230
|
+
},
|
|
231
|
+
useResetSlot: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
default: !1
|
|
234
|
+
},
|
|
235
|
+
valueStart: {
|
|
236
|
+
type: [Number, String],
|
|
237
|
+
default: 0
|
|
238
|
+
},
|
|
239
|
+
valueEnd: {
|
|
240
|
+
type: [Number, String],
|
|
241
|
+
default: 0
|
|
242
|
+
},
|
|
243
|
+
minimap: {
|
|
244
|
+
type: Array,
|
|
245
|
+
default: []
|
|
246
|
+
},
|
|
247
|
+
smoothMinimap: {
|
|
248
|
+
type: Boolean,
|
|
249
|
+
default: !1
|
|
250
|
+
},
|
|
251
|
+
minimapSelectedColor: {
|
|
252
|
+
type: String,
|
|
253
|
+
default: "#1f77b4"
|
|
254
|
+
},
|
|
255
|
+
minimapSelectionRadius: {
|
|
256
|
+
type: Number,
|
|
257
|
+
default: 12
|
|
258
|
+
},
|
|
259
|
+
minimapLineColor: {
|
|
260
|
+
type: String,
|
|
261
|
+
default: "#2D353C"
|
|
262
|
+
},
|
|
263
|
+
minimapSelectedColorOpacity: {
|
|
264
|
+
type: Number,
|
|
265
|
+
default: .2
|
|
266
|
+
},
|
|
267
|
+
minimapSelectedIndex: {
|
|
268
|
+
type: Number,
|
|
269
|
+
default: null
|
|
270
|
+
},
|
|
271
|
+
minimapIndicatorColor: {
|
|
272
|
+
type: String,
|
|
273
|
+
default: "#2D353C"
|
|
274
|
+
},
|
|
275
|
+
refreshStartPoint: {
|
|
276
|
+
type: Number,
|
|
277
|
+
default: 0
|
|
278
|
+
},
|
|
279
|
+
refreshEndPoint: {
|
|
280
|
+
type: Number,
|
|
281
|
+
default: null
|
|
282
|
+
},
|
|
283
|
+
enableRangeHandles: {
|
|
284
|
+
type: Boolean,
|
|
285
|
+
default: !1
|
|
286
|
+
},
|
|
287
|
+
enableSelectionDrag: {
|
|
288
|
+
type: Boolean,
|
|
289
|
+
default: !0
|
|
290
|
+
},
|
|
291
|
+
verticalHandles: {
|
|
292
|
+
type: Boolean,
|
|
293
|
+
default: !1
|
|
294
|
+
},
|
|
295
|
+
timeLabels: { type: Array },
|
|
296
|
+
isPreview: {
|
|
297
|
+
type: Boolean,
|
|
298
|
+
default: !1
|
|
299
|
+
},
|
|
300
|
+
preciseLabels: {
|
|
301
|
+
type: Array,
|
|
302
|
+
default() {
|
|
303
|
+
return [];
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
usePreciseLabels: {
|
|
307
|
+
type: Boolean,
|
|
308
|
+
default: !1
|
|
309
|
+
},
|
|
310
|
+
selectedSeries: { type: Object },
|
|
311
|
+
customFormat: { type: [Function, null] },
|
|
312
|
+
minimapCompact: {
|
|
313
|
+
type: Boolean,
|
|
314
|
+
default: !1
|
|
315
|
+
},
|
|
316
|
+
allMinimaps: {
|
|
317
|
+
type: Array,
|
|
318
|
+
default() {
|
|
319
|
+
return [];
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
minimapMerged: {
|
|
323
|
+
type: Boolean,
|
|
324
|
+
default: !1
|
|
325
|
+
},
|
|
326
|
+
minimapFrameColor: {
|
|
327
|
+
type: String,
|
|
328
|
+
default: "#e1e5e8"
|
|
329
|
+
},
|
|
330
|
+
cutNullValues: {
|
|
331
|
+
type: Boolean,
|
|
332
|
+
default: !1
|
|
333
|
+
},
|
|
334
|
+
focusOnDrag: {
|
|
335
|
+
type: Boolean,
|
|
336
|
+
default: !1
|
|
337
|
+
},
|
|
338
|
+
focusRangeRatio: {
|
|
339
|
+
type: Number,
|
|
340
|
+
default: .1
|
|
341
|
+
},
|
|
342
|
+
minScale: {
|
|
343
|
+
type: Number,
|
|
344
|
+
default: null
|
|
345
|
+
},
|
|
346
|
+
maxScale: {
|
|
347
|
+
type: Number,
|
|
348
|
+
default: null
|
|
349
|
+
},
|
|
350
|
+
forceZeroCenter: {
|
|
351
|
+
type: Boolean,
|
|
352
|
+
default: !1
|
|
353
|
+
},
|
|
354
|
+
maxWidth: {
|
|
355
|
+
type: Number,
|
|
356
|
+
default: null
|
|
357
|
+
},
|
|
358
|
+
isCursorPointer: {
|
|
359
|
+
type: Boolean,
|
|
360
|
+
default: !1
|
|
361
|
+
},
|
|
362
|
+
additionalMinimapHeight: {
|
|
363
|
+
type: Number,
|
|
364
|
+
default: 0
|
|
365
|
+
},
|
|
366
|
+
handleType: {
|
|
367
|
+
type: String,
|
|
368
|
+
default: ""
|
|
369
|
+
},
|
|
370
|
+
handleWidth: {
|
|
371
|
+
type: Number,
|
|
372
|
+
default: 20
|
|
373
|
+
},
|
|
374
|
+
handleBorderWidth: {
|
|
375
|
+
type: Number,
|
|
376
|
+
default: 1
|
|
377
|
+
},
|
|
378
|
+
handleIconColor: {
|
|
379
|
+
type: String,
|
|
380
|
+
default: null
|
|
381
|
+
},
|
|
382
|
+
handleBorderColor: {
|
|
383
|
+
type: String,
|
|
384
|
+
default: null
|
|
385
|
+
},
|
|
386
|
+
handleFill: {
|
|
387
|
+
type: String,
|
|
388
|
+
default: null
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
emits: [
|
|
392
|
+
"futureStart",
|
|
393
|
+
"futureEnd",
|
|
394
|
+
"update:start",
|
|
395
|
+
"update:end",
|
|
396
|
+
"reset",
|
|
397
|
+
"trapMouse"
|
|
398
|
+
],
|
|
399
|
+
setup(s, { expose: St, emit: Ct }) {
|
|
400
|
+
he((e) => ({
|
|
401
|
+
v430f58ca: zt.value,
|
|
402
|
+
v766ddc0f: P.value,
|
|
403
|
+
v36e8e240: Vt.value,
|
|
404
|
+
v56a31d3f: s.selectColor,
|
|
405
|
+
v3f0e5f66: Bt.value,
|
|
406
|
+
cac91182: x.additionalMinimapHeight
|
|
407
|
+
}));
|
|
408
|
+
let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), wt = v(n()), E = v(!1), D = d(() => T.value && x.minimapCompact), O = v(null), Tt = v(!1), Et = v(0), Dt = v(0), Ot = v(null), kt = d(() => Math.min(40, Math.max(20, x.handleWidth))), At = v(0), jt = c((e) => M("futureStart", e), 0), Mt = c((e) => M("futureEnd", e), 0), k = d({
|
|
409
|
+
get: () => C.value,
|
|
410
|
+
set(e) {
|
|
411
|
+
let t = Math.min(e, w.value - 1);
|
|
412
|
+
t !== C.value && (C.value = t, bn.value && (bn.value.value = String(t)), x.immediate ? M("update:start", Number(t)) : E.value && jt(t));
|
|
413
|
+
}
|
|
414
|
+
}), A = d({
|
|
415
|
+
get: () => w.value,
|
|
416
|
+
set(e) {
|
|
417
|
+
let t = Math.max(e, C.value + 1);
|
|
418
|
+
t !== w.value && (w.value = t, xn.value && (xn.value.value = String(t)), x.immediate ? M("update:end", Number(t)) : E.value && Mt(t));
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
function j() {
|
|
422
|
+
clearTimeout(null), x.immediate || (M("update:start", Number(C.value)), M("update:end", Number(w.value))), E.value = !1;
|
|
423
|
+
}
|
|
424
|
+
let Nt = d(() => x.refreshEndPoint === null ? x.max : x.refreshEndPoint), M = Ct, Pt = d(() => {
|
|
425
|
+
if (D.value) {
|
|
426
|
+
let e = Math.max(1, R.value - 1);
|
|
427
|
+
return pn.value / e * 100;
|
|
428
|
+
}
|
|
429
|
+
let e = Math.max(1, x.max - x.min);
|
|
430
|
+
return (C.value - x.min) / e * 100;
|
|
431
|
+
}), Ft = d(() => {
|
|
432
|
+
if (D.value) {
|
|
433
|
+
let e = Math.max(1, R.value - 1);
|
|
434
|
+
return mn.value / e * 100;
|
|
435
|
+
}
|
|
436
|
+
let e = Math.max(1, x.max - x.min);
|
|
437
|
+
return (w.value - x.min) / e * 100;
|
|
438
|
+
}), It = d(() => (Pt.value + Ft.value) / 2), Lt = d(() => {
|
|
439
|
+
if (!S.value) return !1;
|
|
440
|
+
let e = Math.max(1, x.max - x.min);
|
|
441
|
+
return S.value.getBoundingClientRect().width * ((C.value - x.min) / e) - Yn.value / 2 < 0;
|
|
442
|
+
}), Rt = d(() => {
|
|
443
|
+
if (!S.value) return !1;
|
|
444
|
+
let e = Math.max(1, x.max - x.min), t = S.value.getBoundingClientRect().width;
|
|
445
|
+
return t * ((w.value - x.min) / e) + Xn.value / 2 > t;
|
|
446
|
+
}), N = d(() => {
|
|
447
|
+
let e = Rt.value ? `calc(${It.value}% - ${nr.value.width}px)` : Lt.value ? `calc(${It.value}% - 8px)` : `calc(${It.value}% - ${nr.value.width / 2}px)`;
|
|
448
|
+
return {
|
|
449
|
+
left: `${Pt.value}%`,
|
|
450
|
+
width: `${Math.max(0, Ft.value - Pt.value)}%`,
|
|
451
|
+
background: x.selectColor,
|
|
452
|
+
tooltipLeft: `calc(${Pt.value}% - ${Lt.value ? 9 : Yn.value / 2}px)`,
|
|
453
|
+
tooltipRight: `calc(${Ft.value}% - ${Rt.value ? Xn.value - 9 : Xn.value / 2}px)`,
|
|
454
|
+
tooltipCenter: e,
|
|
455
|
+
arrowLeft: !Lt.value,
|
|
456
|
+
arrowRight: !Rt.value
|
|
457
|
+
};
|
|
458
|
+
}), zt = d(() => x.inputColor), Bt = d(() => x.background), Vt = d(() => `${x.selectColor}33`), P = d(() => x.borderColor), Ht = d(() => Number(x.max) > Number(x.min));
|
|
459
|
+
function Ut() {
|
|
460
|
+
M("reset");
|
|
461
|
+
}
|
|
462
|
+
b(() => x.min, (e) => {
|
|
463
|
+
Number(C.value) < Number(e) && (C.value = Number(e)), Number(w.value) < Number(e) && (w.value = Number(e));
|
|
464
|
+
}), b(() => x.max, (e) => {
|
|
465
|
+
Number(C.value) > Number(e) && (C.value = Number(e)), Number(w.value) > Number(e) && (w.value = Number(e));
|
|
466
|
+
});
|
|
467
|
+
let F = v(null), I = v({
|
|
468
|
+
width: 1,
|
|
469
|
+
height: 1
|
|
470
|
+
}), L = v(null);
|
|
471
|
+
ue(() => {
|
|
472
|
+
if (T.value) {
|
|
473
|
+
let e = c(() => {
|
|
474
|
+
if (!F.value) return;
|
|
475
|
+
let { width: e, height: t } = l({ chart: F.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
|
|
476
|
+
(n !== I.value.width || r !== I.value.height) && (I.value.width = n, I.value.height = r + x.additionalMinimapHeight);
|
|
477
|
+
}, 0);
|
|
478
|
+
L.value = new ResizeObserver(e), L.value.observe(F.value);
|
|
479
|
+
}
|
|
480
|
+
}), le(() => {
|
|
481
|
+
L.value && L.value.disconnect();
|
|
482
|
+
});
|
|
483
|
+
let R = d(() => Math.max(1, x.max - x.min));
|
|
484
|
+
function Wt(e) {
|
|
485
|
+
let t = Math.floor(e - x.min);
|
|
486
|
+
return Math.min(Math.max(0, t), R.value);
|
|
487
|
+
}
|
|
488
|
+
function Gt(e) {
|
|
489
|
+
let t = Math.ceil(e - x.min);
|
|
490
|
+
return Math.min(Math.max(0, t), R.value);
|
|
491
|
+
}
|
|
492
|
+
let z = d(() => Wt(C.value)), B = d(() => Gt(w.value)), Kt = d(() => Math.max(...x.allMinimaps.map((e) => e.series.length))), qt = d(() => T.value && x.minimapCompact ? 40 : 0), Jt = d(() => qt.value / 2);
|
|
493
|
+
d(() => Math.max(1, I.value.width - Jt.value * 2));
|
|
494
|
+
let V = d(() => {
|
|
495
|
+
let e = Math.max(1, Kt.value - +!!x.minimapCompact);
|
|
496
|
+
return I.value.width / e;
|
|
497
|
+
}), Yt = d(() => x.allMinimaps.length ? x.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), Xt = d(() => V.value / (Yt.value || 1) * .8);
|
|
498
|
+
function Zt(e, t, n) {
|
|
499
|
+
let r = Xt.value, i = Math.max(1, Yt.value), a = Kt.value - 1;
|
|
500
|
+
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
501
|
+
}
|
|
502
|
+
function Qt(e, t) {
|
|
503
|
+
return [0, Kt.value - 1].includes(t) ? Xt.value / 2 : Xt.value;
|
|
504
|
+
}
|
|
505
|
+
let $t = d(() => {
|
|
506
|
+
let e = [];
|
|
507
|
+
if (Array.isArray(x.minimap) && x.minimap.length && x.minimapMerged && e.push(...x.minimap.filter(Number.isFinite)), Array.isArray(x.allMinimaps) && x.allMinimaps.length) for (let t of x.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.filter(Number.isFinite));
|
|
508
|
+
return e.length ? {
|
|
509
|
+
min: Math.min(...e),
|
|
510
|
+
max: Math.max(...e)
|
|
511
|
+
} : {
|
|
512
|
+
min: 0,
|
|
513
|
+
max: 1
|
|
514
|
+
};
|
|
515
|
+
}), en = d(() => {
|
|
516
|
+
if (x.minScale == null && x.forceZeroCenter) return null;
|
|
517
|
+
let e = Number(x.minScale);
|
|
518
|
+
return Number.isFinite(e) ? e : null;
|
|
519
|
+
}), tn = d(() => {
|
|
520
|
+
if (x.maxScale == null && x.forceZeroCenter) return null;
|
|
521
|
+
let e = Number(x.maxScale);
|
|
522
|
+
return Number.isFinite(e) ? e : null;
|
|
523
|
+
}), nn = d(() => en.value !== null && tn.value !== null), rn = d(() => {
|
|
524
|
+
let { min: e, max: t } = $t.value, n = en.value, r = tn.value, i, a;
|
|
525
|
+
return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
|
|
526
|
+
min: i,
|
|
527
|
+
max: a
|
|
528
|
+
};
|
|
529
|
+
}), an = d(() => rn.value.min), on = d(() => rn.value.max), sn = d(() => an.value < 0 && on.value > 0 || on.value <= 0 ? an.value : 0), cn = (e) => {
|
|
530
|
+
let t = Math.max(1, I.value.height);
|
|
531
|
+
return un(an.value, on.value, t, nn.value)(e);
|
|
532
|
+
}, ln = d(() => cn(0));
|
|
533
|
+
function un(e, t, n, r = !1) {
|
|
534
|
+
let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
|
|
535
|
+
if (r) return (t) => n - (t - e) / o * n;
|
|
536
|
+
if (t <= 0) {
|
|
537
|
+
let t = Math.max(a, 0 - e);
|
|
538
|
+
return (r) => n - (r - e) / t * n;
|
|
539
|
+
} else if (e >= 0) {
|
|
540
|
+
let e = Math.max(a, t - 0);
|
|
541
|
+
return (t) => n - (t - 0) / e * n;
|
|
542
|
+
} else {
|
|
543
|
+
let r = Math.max(a, Math.max(Math.abs(e), Math.abs(t)));
|
|
544
|
+
return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function dn(e, n = !1, ee = !1) {
|
|
548
|
+
if (!e || !e.length) return {
|
|
549
|
+
fullSet: "",
|
|
550
|
+
points: [],
|
|
551
|
+
selectionSet: "",
|
|
552
|
+
sliced: [],
|
|
553
|
+
firstPlot: null,
|
|
554
|
+
lastPlot: null,
|
|
555
|
+
hasFull: !1,
|
|
556
|
+
hasSelection: !1,
|
|
557
|
+
fullMarkers: [],
|
|
558
|
+
selectionMarkers: [],
|
|
559
|
+
dashed: !1
|
|
560
|
+
};
|
|
561
|
+
let te = Math.max(1, I.value.height), ne = un(an.value, on.value, te, nn.value), s = e.length, c = Math.min(Math.max(0, z.value), Math.max(0, s - 1)), re = Math.min(s, Math.max(c + 1, B.value)), l = e.map((e, t) => {
|
|
562
|
+
let n = e, r = Number.isFinite(n), i = V.value * t + (x.minimapCompact ? 0 : V.value / 2), a = ne(nn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, an.value, on.value) : 0);
|
|
563
|
+
return {
|
|
564
|
+
x: i,
|
|
565
|
+
y: r ? ne(n) : NaN,
|
|
566
|
+
v: n,
|
|
567
|
+
value: n == null ? null : r ? n : null,
|
|
568
|
+
y0: a,
|
|
569
|
+
i: t
|
|
570
|
+
};
|
|
571
|
+
}), ie = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value), u = l.filter((e) => Number.isFinite(e.value) && !ie(e.i - 1) && !ie(e.i + 1)), d = u.filter((e) => e.i >= c && e.i < re), f = l.slice(c, re);
|
|
572
|
+
return {
|
|
573
|
+
fullSet: l.length >= 2 ? ee ? t(x.cutNullValues ? l : l.filter((e) => e.value != null)) : x.smoothMinimap || n ? x.cutNullValues ? a(l) : o(l.filter((e) => e.value != null)) : x.cutNullValues ? i(l) : r(l.filter((e) => e.value != null)) : "",
|
|
574
|
+
points: l,
|
|
575
|
+
selectionSet: f.length >= 2 ? ee ? t(x.cutNullValues ? f : f.filter((e) => e.value != null)) : x.smoothMinimap || n ? x.cutNullValues ? a(f) : o(f.filter((e) => e.value != null)) : x.cutNullValues ? i(f) : r(f.filter((e) => e.value != null)) : "",
|
|
576
|
+
sliced: f,
|
|
577
|
+
firstPlot: l[c] || null,
|
|
578
|
+
lastPlot: l[Math.max(0, re - 1)] || null,
|
|
579
|
+
hasFull: l.length >= 2,
|
|
580
|
+
hasSelection: f.length >= 2,
|
|
581
|
+
fullMarkers: u,
|
|
582
|
+
selectionMarkers: d
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
let H = d(() => x.minimap.length ? dn(x.minimap) : []), U = d(() => x.allMinimaps.length ? x.allMinimaps.map((e, t) => {
|
|
586
|
+
let n = dn(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
|
|
587
|
+
return {
|
|
588
|
+
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
589
|
+
color: e?.color,
|
|
590
|
+
...n,
|
|
591
|
+
temperatureColors: e?.temperatureColors ?? null,
|
|
592
|
+
isVisible: e.isVisible,
|
|
593
|
+
type: e.type || void 0,
|
|
594
|
+
dashed: e.dashed ?? !1,
|
|
595
|
+
useStepper: !!e.useStepper
|
|
596
|
+
};
|
|
597
|
+
}) : []), W = d(() => {
|
|
598
|
+
let e = z.value, t = Math.max(e + 1, B.value);
|
|
599
|
+
return {
|
|
600
|
+
x: V.value * e + (x.minimapCompact ? 0 : V.value / 2),
|
|
601
|
+
width: V.value * (t - e) - V.value
|
|
602
|
+
};
|
|
603
|
+
}), G = v(x.minimapSelectedIndex), fn = (e) => Math.round(x.min + e), pn = d({
|
|
604
|
+
get() {
|
|
605
|
+
return D.value ? z.value : Number(k.value);
|
|
606
|
+
},
|
|
607
|
+
set(e) {
|
|
608
|
+
if (D.value) wn(fn(Math.round(+e || 0)));
|
|
609
|
+
else {
|
|
610
|
+
let t = Math.round(+e || 0), n = Number(w.value) - 1, r = Math.min(Math.max(x.min, t), n);
|
|
611
|
+
bn.value && (bn.value.valueAsNumber = r), wn(r);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}), mn = d({
|
|
615
|
+
get() {
|
|
616
|
+
return D.value ? Math.max(z.value, B.value - 1) : Number(A.value);
|
|
617
|
+
},
|
|
618
|
+
set(e) {
|
|
619
|
+
if (D.value) En(fn(Math.round(+e || 0) + 1));
|
|
620
|
+
else {
|
|
621
|
+
let t = Math.round(+e || 0), n = Number(C.value) + 1, r = Math.max(n, Math.min(t, x.max));
|
|
622
|
+
xn.value && (xn.value.valueAsNumber = r), En(r);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
function hn(e) {
|
|
627
|
+
G.value = Wt(x.valueStart) + e;
|
|
628
|
+
}
|
|
629
|
+
let gn = re(hn, 60);
|
|
630
|
+
b(() => x.minimapSelectedIndex, (e, t) => {
|
|
631
|
+
if ([null, void 0].includes(e)) {
|
|
632
|
+
G.value = null;
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
e !== t && gn(e);
|
|
636
|
+
}, { immediate: !0 });
|
|
637
|
+
function _n(e) {
|
|
638
|
+
G.value = e;
|
|
639
|
+
let t = z.value, n = B.value;
|
|
640
|
+
e >= t && e < n && !Z.value && M("trapMouse", e - t);
|
|
641
|
+
}
|
|
642
|
+
function vn(e) {
|
|
643
|
+
Ht.value && _n(yr(vr(e.clientX)));
|
|
644
|
+
}
|
|
645
|
+
function yn() {
|
|
646
|
+
G.value = null, M("trapMouse", null);
|
|
647
|
+
}
|
|
648
|
+
let bn = v(null), xn = v(null);
|
|
649
|
+
function Sn(e) {
|
|
650
|
+
if (typeof e == "object" && e && "target" in e) {
|
|
651
|
+
let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
|
|
652
|
+
return Number.isFinite(n) ? n : NaN;
|
|
653
|
+
}
|
|
654
|
+
let t = +e;
|
|
655
|
+
return Number.isFinite(t) ? t : NaN;
|
|
656
|
+
}
|
|
657
|
+
let Cn = 0;
|
|
658
|
+
function wn(e) {
|
|
659
|
+
E.value = !0;
|
|
660
|
+
let t = Sn(e);
|
|
661
|
+
Number.isFinite(t) && (cancelAnimationFrame(Cn), Cn = requestAnimationFrame(() => {
|
|
662
|
+
k.value = t;
|
|
663
|
+
}));
|
|
664
|
+
}
|
|
665
|
+
let Tn = 0;
|
|
666
|
+
function En(e) {
|
|
667
|
+
E.value = !0;
|
|
668
|
+
let t = Sn(e);
|
|
669
|
+
Number.isFinite(t) && (cancelAnimationFrame(Tn), Tn = requestAnimationFrame(() => {
|
|
670
|
+
A.value = t;
|
|
671
|
+
}));
|
|
672
|
+
}
|
|
673
|
+
le(() => {
|
|
674
|
+
cancelAnimationFrame(Cn), cancelAnimationFrame(Tn);
|
|
675
|
+
});
|
|
676
|
+
let Dn = d(() => x.valueEnd - x.valueStart), On = d(() => Dn.value < x.max - x.min), K = v(!1), kn = v(null), An = d(() => (At.value - 48) / (x.max - x.min) * Dn.value), jn = d(() => Math.max(1, At.value - xt - An.value)), Mn = d(() => Math.max(1, x.max - x.min - Dn.value)), Nn = d(() => Mn.value / jn.value), Pn = v(0), Fn = v(0), In = v(0), Ln = v(0), q = null, J = null, Y = null, X = null, Rn = v(x.min);
|
|
677
|
+
function zn(e) {
|
|
678
|
+
if (!S.value) return x.min;
|
|
679
|
+
let t = S.value.getBoundingClientRect(), n = t.left + xt / 2, r = t.right - xt / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, x.max - x.min);
|
|
680
|
+
return Math.round(x.min + a * o);
|
|
681
|
+
}
|
|
682
|
+
let Bn = async (t) => {
|
|
683
|
+
if (E.value = !0, Q.value = !0, !x.enableSelectionDrag) return;
|
|
684
|
+
let n = t.type === "touchstart";
|
|
685
|
+
n || t.stopPropagation();
|
|
686
|
+
let r = n && t.targetTouches && t.targetTouches[0] ? t.targetTouches[0] : null, i = n ? r ? r.target : null : t.target;
|
|
687
|
+
if (!i || !(i instanceof Element) || i.classList?.contains("range-handle") || i.classList?.contains("vue-ui-zoom-compact-minimap-handle") || i.closest(".vue-ui-zoom-compact-minimap-handle")) return;
|
|
688
|
+
K.value = !0;
|
|
689
|
+
let a = n ? r ? r.clientX : 0 : t.clientX;
|
|
690
|
+
if (kn.value = a, Pn.value = a, x.focusOnDrag && !On.value && S.value) {
|
|
691
|
+
Rn.value = zn(a);
|
|
692
|
+
let t = Math.min(.95, Math.max(.05, x.focusRangeRatio)), n = x.max - x.min, r = Math.max(1, Math.round(n * t)), i = Math.floor(r / 2), o = Rn.value - i;
|
|
693
|
+
o = Math.max(x.min, Math.min(o, x.max - r));
|
|
694
|
+
let ee = Math.min(x.max, o + r);
|
|
695
|
+
k.value = o, A.value = ee, jt(o), Mt(ee), e(S.value, "mouseup"), await se(), e(S.value, "mousedown", { clientX: a });
|
|
696
|
+
}
|
|
697
|
+
Fn.value = C.value, In.value = w.value, Ln.value = Nn.value, q = n ? "touchmove" : "mousemove", J = n ? "touchend" : "mouseup", Y = n ? Hn : Vn, X = n ? Gn : Wn, window.addEventListener(q, Y, { passive: !1 }), window.addEventListener(J, X);
|
|
698
|
+
};
|
|
699
|
+
function Vn(e) {
|
|
700
|
+
K.value && Un(e.clientX);
|
|
701
|
+
}
|
|
702
|
+
function Hn(e) {
|
|
703
|
+
if (!K.value || !S.value) return;
|
|
704
|
+
let t = e.target;
|
|
705
|
+
if (!(t instanceof Element) || !S.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
706
|
+
e.preventDefault();
|
|
707
|
+
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
708
|
+
n && Un(n.clientX);
|
|
709
|
+
}
|
|
710
|
+
function Un(e) {
|
|
711
|
+
if (!K.value) return;
|
|
712
|
+
let t = zn(Pn.value), n = zn(e) - t, r = Math.round(Fn.value + n);
|
|
713
|
+
r = Math.max(x.min, Math.min(r, x.max - Dn.value));
|
|
714
|
+
let i = r + Dn.value;
|
|
715
|
+
k.value = r, A.value = i, jt(r), Mt(i);
|
|
716
|
+
}
|
|
717
|
+
function Wn() {
|
|
718
|
+
Kn();
|
|
719
|
+
}
|
|
720
|
+
function Gn() {
|
|
721
|
+
Kn();
|
|
722
|
+
}
|
|
723
|
+
function Kn() {
|
|
724
|
+
K.value = !1, q && Y && window.removeEventListener(q, Y), J && X && window.removeEventListener(J, X), q = J = null, Y = X = null, j();
|
|
725
|
+
}
|
|
726
|
+
let Z = v(!1), qn = v(null), Jn = v(null), Yn = v(1), Xn = v(1), Q = v(!1);
|
|
727
|
+
function Zn() {
|
|
728
|
+
if (qn.value) {
|
|
729
|
+
let e = Math.round(qn.value.getBoundingClientRect().width);
|
|
730
|
+
e !== Yn.value && (Yn.value = e);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
function Qn() {
|
|
734
|
+
if (Jn.value) {
|
|
735
|
+
let e = Math.round(Jn.value.getBoundingClientRect().width);
|
|
736
|
+
e !== Xn.value && (Xn.value = e);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
de(() => {
|
|
740
|
+
Zn(), Qn();
|
|
741
|
+
});
|
|
742
|
+
let $n = v(0);
|
|
743
|
+
function er(e) {
|
|
744
|
+
$n.value = +(e === "start");
|
|
745
|
+
}
|
|
746
|
+
let tr = v(!1), nr = v({
|
|
747
|
+
width: 0,
|
|
748
|
+
left: 0
|
|
749
|
+
});
|
|
750
|
+
b([C, w], async () => {
|
|
751
|
+
if (await se(), !qn.value || !Jn.value) {
|
|
752
|
+
tr.value = !1, nr.value = {
|
|
753
|
+
width: 0,
|
|
754
|
+
left: 0
|
|
755
|
+
};
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
let e = qn.value.getBoundingClientRect(), t = Jn.value.getBoundingClientRect();
|
|
759
|
+
tr.value = e.x + e.width > t.x;
|
|
760
|
+
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
|
|
761
|
+
nr.value = {
|
|
762
|
+
width: i,
|
|
763
|
+
left: (n + r) / 2 - i / 2
|
|
764
|
+
};
|
|
765
|
+
}), de(() => {
|
|
766
|
+
Zn(), Qn();
|
|
767
|
+
}), b(() => x.labelLeft, () => {
|
|
768
|
+
se(Zn);
|
|
769
|
+
}, { deep: !0 }), b(() => x.labelRight, () => {
|
|
770
|
+
se(Qn);
|
|
771
|
+
}, { deep: !0 });
|
|
772
|
+
let $ = d(() => {
|
|
773
|
+
let e = "", t = "", n = !1;
|
|
774
|
+
if (ee(x.customFormat)) try {
|
|
775
|
+
let r = x.customFormat({
|
|
776
|
+
absoluteIndex: C.value,
|
|
777
|
+
seriesIndex: C.value,
|
|
778
|
+
datapoint: x.selectedSeries,
|
|
779
|
+
timeLabel: x.preciseLabels[C.value],
|
|
780
|
+
side: "left"
|
|
781
|
+
}), i = x.customFormat({
|
|
782
|
+
absoluteIndex: w.value - 1,
|
|
783
|
+
seriesIndex: -1,
|
|
784
|
+
datapoint: x.selectedSeries,
|
|
785
|
+
timeLabel: x.preciseLabels[w.value - 1],
|
|
786
|
+
side: "right"
|
|
787
|
+
});
|
|
788
|
+
typeof r == "string" && typeof i == "string" && (e = r, t = i, n = !0);
|
|
789
|
+
} catch {
|
|
790
|
+
n = !1;
|
|
791
|
+
}
|
|
792
|
+
if (!n) {
|
|
793
|
+
let n = x.usePreciseLabels ? x.preciseLabels.find((e) => e.absoluteIndex === C.value) : x.timeLabels.find((e) => e.absoluteIndex === C.value), r = x.usePreciseLabels ? x.preciseLabels.find((e) => e.absoluteIndex === w.value - 1) : x.timeLabels.find((e) => e.absoluteIndex === w.value - 1);
|
|
794
|
+
e = n ? n.text : "", t = r ? r.text : "";
|
|
795
|
+
}
|
|
796
|
+
return {
|
|
797
|
+
left: e,
|
|
798
|
+
right: t
|
|
799
|
+
};
|
|
800
|
+
});
|
|
801
|
+
le(() => {
|
|
802
|
+
L.value && L.value.disconnect(), q && Y && window.removeEventListener(q, Y), J && X && window.removeEventListener(J, X), q = J = null, Y = X = null, clearTimeout(null);
|
|
803
|
+
});
|
|
804
|
+
let rr = d(() => {
|
|
805
|
+
if (!Ht.value) return null;
|
|
806
|
+
if (G.value >= z.value && G.value < B.value) {
|
|
807
|
+
let e = G.value, t = V.value * e + (x.minimapCompact ? 0 : V.value / 2);
|
|
808
|
+
return {
|
|
809
|
+
x1: t,
|
|
810
|
+
x2: t,
|
|
811
|
+
y1: 0,
|
|
812
|
+
y2: Math.max(I.value.height, 0),
|
|
813
|
+
stroke: x.minimapIndicatorColor,
|
|
814
|
+
"stroke-linecap": "round",
|
|
815
|
+
"stroke-dasharray": 2,
|
|
816
|
+
"stroke-width": 1
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
return null;
|
|
820
|
+
}), ir = d(() => Number(C.value) < Number(w.value) - 1), ar = d(() => Number(C.value) > Number(x.min)), or = d(() => Number(w.value) < Number(x.max)), sr = d(() => Number(w.value) > Number(C.value) + 1);
|
|
821
|
+
function cr(e) {
|
|
822
|
+
let t = Number(C.value) + e;
|
|
823
|
+
e > 0 && !ir.value || e < 0 && !ar.value || (E.value = !0, k.value = t, j());
|
|
824
|
+
}
|
|
825
|
+
function lr(e) {
|
|
826
|
+
let t = Number(w.value) + e;
|
|
827
|
+
e > 0 && !or.value || e < 0 && !sr.value || (E.value = !0, A.value = t, j());
|
|
828
|
+
}
|
|
829
|
+
let ur = {
|
|
830
|
+
plus: () => cr(1),
|
|
831
|
+
minus: () => cr(-1),
|
|
832
|
+
canPlus: ir,
|
|
833
|
+
canMinus: ar
|
|
834
|
+
}, dr = {
|
|
835
|
+
plus: () => lr(1),
|
|
836
|
+
minus: () => lr(-1),
|
|
837
|
+
canPlus: or,
|
|
838
|
+
canMinus: sr
|
|
839
|
+
};
|
|
840
|
+
function fr(e) {
|
|
841
|
+
if (!e || pr(e.target)) return;
|
|
842
|
+
let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
|
|
843
|
+
!n && !r || (e.preventDefault(), e.stopPropagation(), r ? (ur.plus(), dr.plus()) : (ur.minus(), dr.minus()));
|
|
844
|
+
}
|
|
845
|
+
function pr(e) {
|
|
846
|
+
return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
|
|
847
|
+
}
|
|
848
|
+
function mr(e) {
|
|
849
|
+
if (!T.value || !x.minimapCompact) return;
|
|
850
|
+
let t = S.value;
|
|
851
|
+
if (!t) return;
|
|
852
|
+
let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
|
|
853
|
+
r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
|
|
854
|
+
}
|
|
855
|
+
function hr(e, t) {
|
|
856
|
+
if (!t || pr(t.target)) return;
|
|
857
|
+
let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
|
|
858
|
+
!r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? ur.plus() : ur.minus() : i ? dr.plus() : dr.minus(), se(() => mr(e)));
|
|
859
|
+
}
|
|
860
|
+
let gr = d(() => ({
|
|
861
|
+
tabindex: 0,
|
|
862
|
+
role: "slider",
|
|
863
|
+
"aria-label": "Range start",
|
|
864
|
+
"aria-valuemin": Number(x.min),
|
|
865
|
+
"aria-valuemax": Math.max(Number(x.min), Number(w.value) - 1),
|
|
866
|
+
"aria-valuenow": Number(C.value)
|
|
867
|
+
})), _r = d(() => ({
|
|
868
|
+
tabindex: 0,
|
|
869
|
+
role: "slider",
|
|
870
|
+
"aria-label": "Range end",
|
|
871
|
+
"aria-valuemin": Math.min(Number(x.max), Number(C.value) + 1),
|
|
872
|
+
"aria-valuemax": Number(x.max),
|
|
873
|
+
"aria-valuenow": Number(w.value)
|
|
874
|
+
}));
|
|
875
|
+
function vr(e) {
|
|
876
|
+
if (!Ot.value) return 0;
|
|
877
|
+
let t = Ot.value.getBoundingClientRect();
|
|
878
|
+
return t.width ? (e - t.left) / t.width * I.value.width : 0;
|
|
879
|
+
}
|
|
880
|
+
function yr(e) {
|
|
881
|
+
let t = (e - (x.minimapCompact ? 0 : V.value / 2)) / Math.max(1, V.value);
|
|
882
|
+
return Math.max(0, Math.min(Math.max(0, R.value - 1), Math.round(t)));
|
|
883
|
+
}
|
|
884
|
+
function br(e) {
|
|
885
|
+
let t = yr(e);
|
|
886
|
+
if (O.value === "start") {
|
|
887
|
+
let e = Math.min(x.min + t, Number(w.value) - 1);
|
|
888
|
+
k.value = e, jt(e);
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
if (O.value === "end") {
|
|
892
|
+
let e = Math.max(Number(C.value) + 1, x.min + t + 1), n = Math.min(x.max, e);
|
|
893
|
+
A.value = n, Mt(n);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
function xr(e) {
|
|
897
|
+
if (!O.value || !F.value) return;
|
|
898
|
+
let t = e.clientX - Et.value;
|
|
899
|
+
if (!Tt.value) {
|
|
900
|
+
if (Math.abs(t) < 4) return;
|
|
901
|
+
Tt.value = !0, E.value = !0, Q.value = !0;
|
|
902
|
+
}
|
|
903
|
+
let n = vr(e.clientX) - Dt.value;
|
|
904
|
+
br(O.value === "start" ? n + kt.value : n);
|
|
905
|
+
}
|
|
906
|
+
function Sr() {
|
|
907
|
+
if (!O.value) return;
|
|
908
|
+
window.removeEventListener("mousemove", xr, !0), window.removeEventListener("mouseup", Sr, !0);
|
|
909
|
+
let e = Tt.value;
|
|
910
|
+
O.value = null, Tt.value = !1, Et.value = 0, Dt.value = 0, e && j();
|
|
911
|
+
}
|
|
912
|
+
function Cr(e, t) {
|
|
913
|
+
if (!T.value || !x.minimapCompact || !F.value) return;
|
|
914
|
+
t.preventDefault(), t.stopPropagation();
|
|
915
|
+
let n = vr(t.clientX), r = e === "start" ? W.value.x - kt.value : W.value.x + W.value.width;
|
|
916
|
+
O.value = e, Tt.value = !1, Et.value = t.clientX, Dt.value = n - r, window.addEventListener("mousemove", xr, !0), window.addEventListener("mouseup", Sr, !0);
|
|
917
|
+
}
|
|
918
|
+
let wr = d(() => z.value), Tr = d(() => Math.max(z.value, B.value - 1));
|
|
919
|
+
d(() => {
|
|
920
|
+
if (!T.value || !x.minimapCompact || !x.allMinimaps.length) return [];
|
|
921
|
+
let e = wr.value, t = Tr.value;
|
|
922
|
+
return U.value.flatMap((n) => {
|
|
923
|
+
if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
|
|
924
|
+
let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
|
|
925
|
+
return i && r.push({
|
|
926
|
+
key: `${n.key}-left-${i.i}`,
|
|
927
|
+
x: i.x,
|
|
928
|
+
y: i.y,
|
|
929
|
+
color: n.color
|
|
930
|
+
}), a && t !== e && r.push({
|
|
931
|
+
key: `${n.key}-right-${a.i}`,
|
|
932
|
+
x: a.x,
|
|
933
|
+
y: a.y,
|
|
934
|
+
color: n.color
|
|
935
|
+
}), r;
|
|
936
|
+
});
|
|
937
|
+
});
|
|
938
|
+
let Er = d(() => Math.min(40, Math.max(20, x.handleWidth))), Dr = d(() => W.value.x - Er.value), Or = d(() => W.value.x + W.value.width);
|
|
939
|
+
return St({
|
|
940
|
+
setStartValue: wn,
|
|
941
|
+
setEndValue: En
|
|
942
|
+
}), (e, t) => (_(), p("div", {
|
|
943
|
+
"data-minimap": T.value,
|
|
944
|
+
"data-dom-to-png-ignore": "",
|
|
945
|
+
style: g([{ padding: "0 48px" }, {
|
|
946
|
+
maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
|
|
947
|
+
margin: s.maxWidth ? "0 auto" : void 0
|
|
948
|
+
}]),
|
|
949
|
+
class: "vue-data-ui-zoom",
|
|
950
|
+
ref_key: "zoomWrapper",
|
|
951
|
+
ref: S,
|
|
952
|
+
onMousedown: Bn,
|
|
953
|
+
onTouchstart: Bn
|
|
954
|
+
}, [m("div", xe, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Nt.value ? (_(), p("div", Se, [fe(e.$slots, "reset-action", { reset: Ut }, () => [m("button", {
|
|
955
|
+
tabindex: "0",
|
|
956
|
+
role: "button",
|
|
957
|
+
class: "vue-data-ui-refresh-button",
|
|
958
|
+
style: g({
|
|
959
|
+
top: T.value ? "36px" : "-16px",
|
|
960
|
+
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
961
|
+
}),
|
|
962
|
+
onClick: Ut
|
|
963
|
+
}, [ae(ie, {
|
|
964
|
+
name: "refresh",
|
|
965
|
+
stroke: s.textColor
|
|
966
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : f("", !0)]), m("div", {
|
|
967
|
+
class: "double-range-slider",
|
|
968
|
+
ref_key: "minimapWrapper",
|
|
969
|
+
ref: F,
|
|
970
|
+
style: g([{ "z-index": "0" }, T.value ? {
|
|
971
|
+
"--minimap-unit-px": V.value + "px",
|
|
972
|
+
"--minimap-offset-px": (s.minimapCompact ? 0 : V.value / 2) + "px"
|
|
973
|
+
} : void 0]),
|
|
974
|
+
onMouseenter: t[18] ||= (e) => Q.value = !0,
|
|
975
|
+
onMouseleave: t[19] ||= (e) => Q.value = !1
|
|
976
|
+
}, [
|
|
977
|
+
T.value ? (_(), p("div", Ce, [(_(), p("svg", {
|
|
978
|
+
ref_key: "minimapSvg",
|
|
979
|
+
ref: Ot,
|
|
980
|
+
key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
|
|
981
|
+
xmlns: me(ne),
|
|
982
|
+
viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height)}`,
|
|
983
|
+
preserveAspectRatio: "none"
|
|
984
|
+
}, [
|
|
985
|
+
m("defs", null, [m("linearGradient", {
|
|
986
|
+
id: wt.value,
|
|
987
|
+
x1: "0%",
|
|
988
|
+
y1: "0%",
|
|
989
|
+
x2: "0%",
|
|
990
|
+
y2: "100%"
|
|
991
|
+
}, [m("stop", {
|
|
992
|
+
offset: "0%",
|
|
993
|
+
"stop-color": `${s.minimapLineColor}50`
|
|
994
|
+
}, null, 8, Ee), t[20] ||= m("stop", {
|
|
995
|
+
offset: "100%",
|
|
996
|
+
"stop-color": "transparent"
|
|
997
|
+
}, null, -1)], 8, Te)]),
|
|
998
|
+
s.minimapCompact ? (_(), p("rect", {
|
|
999
|
+
key: 0,
|
|
1000
|
+
class: "vue-ui-zoom-minimap-frame",
|
|
1001
|
+
x: 0,
|
|
1002
|
+
y: 0,
|
|
1003
|
+
width: I.value.width,
|
|
1004
|
+
height: I.value.height,
|
|
1005
|
+
fill: "none",
|
|
1006
|
+
stroke: s.minimapFrameColor,
|
|
1007
|
+
rx: 3
|
|
1008
|
+
}, null, 8, De)) : f("", !0),
|
|
1009
|
+
e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 1 }, [s.minimapMerged ? (_(), p("path", {
|
|
1010
|
+
key: 0,
|
|
1011
|
+
d: `M${H.value.fullSet}`,
|
|
1012
|
+
stroke: `${s.minimapLineColor}`,
|
|
1013
|
+
fill: "none",
|
|
1014
|
+
"stroke-width": "1",
|
|
1015
|
+
"stroke-linecap": "round",
|
|
1016
|
+
"stroke-linejoin": "round",
|
|
1017
|
+
style: { opacity: "0.6" }
|
|
1018
|
+
}, null, 8, Oe)) : f("", !0), s.minimapMerged && !s.minimapCompact ? (_(), p("path", {
|
|
1019
|
+
key: 1,
|
|
1020
|
+
d: `M${V.value / 2},${Math.max(I.value.height, 0)} ${H.value.fullSet} L${I.value.width - V.value / 2},${Math.max(I.value.height, 0)}Z`,
|
|
1021
|
+
fill: `url(#${wt.value})`,
|
|
1022
|
+
stroke: "none",
|
|
1023
|
+
style: { opacity: "0.6" }
|
|
1024
|
+
}, null, 8, ke)) : s.minimapMerged ? f("", !0) : (_(), p(u, { key: 2 }, [
|
|
1025
|
+
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
|
|
1026
|
+
key: 0,
|
|
1027
|
+
x: Zt(n.x, t, r),
|
|
1028
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1029
|
+
width: Qt(t, r),
|
|
1030
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1031
|
+
fill: e.color,
|
|
1032
|
+
style: { opacity: .6 }
|
|
1033
|
+
}, null, 8, Ae)) : f("", !0)], 64))), 256))]))), 256)),
|
|
1034
|
+
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e) => (_(), p("g", null, [e.isVisible ? (_(), p("path", {
|
|
1035
|
+
key: 0,
|
|
1036
|
+
d: `M ${e.fullSet}`,
|
|
1037
|
+
fill: "none",
|
|
1038
|
+
stroke: e.color,
|
|
1039
|
+
style: { opacity: "0.6" },
|
|
1040
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1041
|
+
}, null, 8, je)) : f("", !0), e.isVisible && s.cutNullValues ? (_(!0), p(u, { key: 1 }, y(e.fullMarkers, (t) => (_(), p("circle", {
|
|
1042
|
+
key: `sel-dot-under-${e.key}-${t.i}`,
|
|
1043
|
+
cx: t.x,
|
|
1044
|
+
cy: t.y,
|
|
1045
|
+
r: "2",
|
|
1046
|
+
fill: e.color,
|
|
1047
|
+
stroke: P.value,
|
|
1048
|
+
"stroke-width": "0.5",
|
|
1049
|
+
style: { opacity: "0.6" }
|
|
1050
|
+
}, null, 8, Me))), 128)) : f("", !0)]))), 256)),
|
|
1051
|
+
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && t.value !== null ? (_(), p("circle", {
|
|
1052
|
+
key: `sel-plot-under-${e.key}-${t.i}`,
|
|
1053
|
+
cx: t.x,
|
|
1054
|
+
cy: t.y,
|
|
1055
|
+
r: "2",
|
|
1056
|
+
fill: e.color,
|
|
1057
|
+
stroke: P.value,
|
|
1058
|
+
"stroke-width": "0.5",
|
|
1059
|
+
style: { opacity: "0.6" }
|
|
1060
|
+
}, null, 8, Ne)) : f("", !0)]))), 256))]))), 256))
|
|
1061
|
+
], 64))], 64)),
|
|
1062
|
+
m("rect", {
|
|
1063
|
+
x: W.value.x,
|
|
1064
|
+
y: 0,
|
|
1065
|
+
width: Math.max(0, W.value.width),
|
|
1066
|
+
height: Math.max(I.value.height, 0),
|
|
1067
|
+
fill: P.value,
|
|
1068
|
+
rx: s.minimapSelectionRadius,
|
|
1069
|
+
stroke: "none"
|
|
1070
|
+
}, null, 8, Pe),
|
|
1071
|
+
m("rect", {
|
|
1072
|
+
x: W.value.x,
|
|
1073
|
+
y: 0,
|
|
1074
|
+
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1075
|
+
height: Math.max(I.value.height, 0),
|
|
1076
|
+
rx: s.minimapSelectionRadius,
|
|
1077
|
+
fill: P.value,
|
|
1078
|
+
style: g({ opacity: K.value || E.value ? 0 : 1 })
|
|
1079
|
+
}, null, 12, Fe),
|
|
1080
|
+
m("rect", {
|
|
1081
|
+
x: W.value.x,
|
|
1082
|
+
y: 0,
|
|
1083
|
+
width: W.value.width < 0 ? 0 : W.value.width,
|
|
1084
|
+
height: Math.max(I.value.height, 0),
|
|
1085
|
+
fill: s.minimapSelectedColor,
|
|
1086
|
+
rx: s.minimapSelectionRadius,
|
|
1087
|
+
style: g({ opacity: s.minimapSelectedColorOpacity }),
|
|
1088
|
+
tabindex: "0",
|
|
1089
|
+
role: "slider",
|
|
1090
|
+
"aria-label": "Selected range",
|
|
1091
|
+
"aria-valuemin": Number(x.min),
|
|
1092
|
+
"aria-valuemax": Number(x.max),
|
|
1093
|
+
"aria-valuenow": Number(C.value),
|
|
1094
|
+
"aria-valuetext": $.value.left && $.value.right ? `${$.value.left} – ${$.value.right}` : void 0,
|
|
1095
|
+
onKeydown: fr
|
|
1096
|
+
}, null, 44, Ie),
|
|
1097
|
+
!s.minimapMerged && sn.value < 0 ? (_(), p("line", {
|
|
1098
|
+
key: 2,
|
|
1099
|
+
class: "slicer-minimap-zero-line",
|
|
1100
|
+
x1: 0,
|
|
1101
|
+
x2: I.value.width,
|
|
1102
|
+
y1: ln.value,
|
|
1103
|
+
y2: ln.value,
|
|
1104
|
+
stroke: s.minimapFrameColor,
|
|
1105
|
+
"stroke-width": "0.5"
|
|
1106
|
+
}, null, 8, Le)) : f("", !0),
|
|
1107
|
+
e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 3 }, [s.minimapMerged ? (_(), p("g", Re, [
|
|
1108
|
+
H.value && H.value.sliced && H.value.sliced.length ? (_(), p(u, { key: 0 }, [H.value.selectionSet ? (_(), p("path", {
|
|
1109
|
+
key: 0,
|
|
1110
|
+
d: `M${H.value.sliced[0].x},${Math.max(I.value.height, 0)} ${H.value.selectionSet} L${H.value.sliced[H.value.sliced.length - 1].x},${Math.max(I.value.height, 0)}Z`,
|
|
1111
|
+
fill: `url(#${wt.value})`,
|
|
1112
|
+
stroke: "none",
|
|
1113
|
+
style: { opacity: "1" }
|
|
1114
|
+
}, null, 8, ze)) : f("", !0), H.value.selectionSet ? (_(), p("path", {
|
|
1115
|
+
key: 1,
|
|
1116
|
+
d: `M ${H.value.selectionSet}`,
|
|
1117
|
+
stroke: `${s.minimapLineColor}`,
|
|
1118
|
+
fill: "transparent",
|
|
1119
|
+
"stroke-width": "2",
|
|
1120
|
+
"stroke-linecap": "round",
|
|
1121
|
+
"stroke-linejoin": "round"
|
|
1122
|
+
}, null, 8, Be)) : f("", !0)], 64)) : f("", !0),
|
|
1123
|
+
H.value && H.value.firstPlot ? (_(), p("circle", {
|
|
1124
|
+
key: 1,
|
|
1125
|
+
cx: H.value.firstPlot.x,
|
|
1126
|
+
cy: H.value.firstPlot.y,
|
|
1127
|
+
"stroke-width": "0.5",
|
|
1128
|
+
stroke: P.value,
|
|
1129
|
+
r: "3",
|
|
1130
|
+
fill: s.minimapLineColor
|
|
1131
|
+
}, null, 8, Ve)) : f("", !0),
|
|
1132
|
+
H.value && H.value.lastPlot ? (_(), p("circle", {
|
|
1133
|
+
key: 2,
|
|
1134
|
+
cx: H.value.lastPlot.x,
|
|
1135
|
+
cy: H.value.lastPlot.y,
|
|
1136
|
+
"stroke-width": "0.5",
|
|
1137
|
+
stroke: P.value,
|
|
1138
|
+
r: "3",
|
|
1139
|
+
fill: s.minimapLineColor
|
|
1140
|
+
}, null, 8, He)) : f("", !0)
|
|
1141
|
+
])) : (_(), p("g", Ue, [
|
|
1142
|
+
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
|
|
1143
|
+
key: 0,
|
|
1144
|
+
x: Zt(n.x, t, r),
|
|
1145
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
1146
|
+
width: Qt(t, r),
|
|
1147
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
1148
|
+
fill: e.color,
|
|
1149
|
+
style: g({ opacity: +(r >= k.value && r < A.value) })
|
|
1150
|
+
}, null, 12, We)) : f("", !0)], 64))), 256))]))), 256)),
|
|
1151
|
+
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), p("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
|
|
1152
|
+
key: 0,
|
|
1153
|
+
d: `M ${e.selectionSet}`,
|
|
1154
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
1155
|
+
fill: "transparent",
|
|
1156
|
+
"stroke-width": "2",
|
|
1157
|
+
"stroke-linecap": "round",
|
|
1158
|
+
"stroke-linejoin": "round",
|
|
1159
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1160
|
+
}, null, 8, Ge)) : f("", !0)]))), 128)),
|
|
1161
|
+
(_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", { key: String(e.key) }, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && t.value !== null ? (_(), p("circle", {
|
|
1162
|
+
key: 0,
|
|
1163
|
+
cx: t.x,
|
|
1164
|
+
cy: t.y,
|
|
1165
|
+
r: "2",
|
|
1166
|
+
fill: e.color,
|
|
1167
|
+
stroke: P.value,
|
|
1168
|
+
"stroke-width": "0.5",
|
|
1169
|
+
style: { opacity: "0.6" }
|
|
1170
|
+
}, null, 8, Ke)) : f("", !0)]))), 256))]))), 128))
|
|
1171
|
+
]))], 64)),
|
|
1172
|
+
e.$slots.slotMap ? fe(e.$slots, "slotMap", ce(oe({ key: 4 }, {
|
|
1173
|
+
width: Math.max(0, I.value.width),
|
|
1174
|
+
height: Math.max(0, I.value.height),
|
|
1175
|
+
zeroY: ln.value,
|
|
1176
|
+
unitW: Math.max(0, V.value)
|
|
1177
|
+
})), void 0, !0) : f("", !0),
|
|
1178
|
+
G.value !== null && !Z.value ? (_(), p("line", ce(oe({ key: 5 }, rr.value)), null, 16)) : f("", !0),
|
|
1179
|
+
m("rect", {
|
|
1180
|
+
x: 0,
|
|
1181
|
+
y: 0,
|
|
1182
|
+
width: Math.max(0, I.value.width),
|
|
1183
|
+
height: Math.max(0, I.value.height),
|
|
1184
|
+
fill: "transparent",
|
|
1185
|
+
style: g([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? Z.value ? "grabbing" : "grab" : "default" }]),
|
|
1186
|
+
onMousedown: t[0] ||= (e) => Z.value = !0,
|
|
1187
|
+
onMouseup: t[1] ||= (e) => Z.value = !1,
|
|
1188
|
+
onMousemove: vn,
|
|
1189
|
+
onMouseleave: yn
|
|
1190
|
+
}, null, 44, qe),
|
|
1191
|
+
T.value && s.minimapCompact ? (_(), p(u, { key: 6 }, [
|
|
1192
|
+
m("rect", oe({
|
|
1193
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1194
|
+
x: Dr.value,
|
|
1195
|
+
y: 0,
|
|
1196
|
+
width: Er.value,
|
|
1197
|
+
height: I.value.height,
|
|
1198
|
+
fill: s.handleFill || P.value,
|
|
1199
|
+
stroke: s.handleBorderColor || s.textColor,
|
|
1200
|
+
"stroke-width": s.handleBorderWidth,
|
|
1201
|
+
rx: 3
|
|
1202
|
+
}, gr.value, {
|
|
1203
|
+
onKeydown: t[2] ||= (e) => hr("start", e),
|
|
1204
|
+
onMousedown: t[3] ||= ye((e) => Cr("start", e), ["stop", "prevent"]),
|
|
1205
|
+
onClick: t[4] ||= ye(() => {}, ["stop", "prevent"])
|
|
1206
|
+
}), null, 16, Je),
|
|
1207
|
+
s.handleType && s.handleType !== "empty" ? (_(), p("g", {
|
|
1208
|
+
key: 0,
|
|
1209
|
+
class: "compact-handle-icon",
|
|
1210
|
+
transform: `translate(${Dr.value}, 0)`,
|
|
1211
|
+
style: { "pointer-events": "none" }
|
|
1212
|
+
}, [(_(), p("svg", {
|
|
1213
|
+
width: Er.value,
|
|
1214
|
+
height: I.value.height,
|
|
1215
|
+
viewBox: "0 0 20 20",
|
|
1216
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1217
|
+
}, [s.handleType === "arrow" ? (_(), p("path", {
|
|
1218
|
+
key: 0,
|
|
1219
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
1220
|
+
fill: P.value,
|
|
1221
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1222
|
+
"stroke-width": .618,
|
|
1223
|
+
"stroke-linejoin": "round",
|
|
1224
|
+
"stroke-linecap": "round"
|
|
1225
|
+
}, null, 8, Ze)) : s.handleType === "chevron" ? (_(), p("path", {
|
|
1226
|
+
key: 1,
|
|
1227
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1228
|
+
fill: "none",
|
|
1229
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1230
|
+
"stroke-width": .618,
|
|
1231
|
+
"stroke-linejoin": "round",
|
|
1232
|
+
"stroke-linecap": "round"
|
|
1233
|
+
}, null, 8, Qe)) : s.handleType === "grab" ? (_(), p("path", {
|
|
1234
|
+
key: 2,
|
|
1235
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
1236
|
+
fill: s.handleIconColor || s.textColor,
|
|
1237
|
+
stroke: "none",
|
|
1238
|
+
opacity: "0.6"
|
|
1239
|
+
}, null, 8, $e)) : f("", !0)], 8, Xe))], 8, Ye)) : f("", !0),
|
|
1240
|
+
m("rect", oe({
|
|
1241
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
1242
|
+
x: Or.value,
|
|
1243
|
+
y: 0,
|
|
1244
|
+
width: Er.value,
|
|
1245
|
+
height: I.value.height,
|
|
1246
|
+
fill: s.handleFill || P.value,
|
|
1247
|
+
stroke: s.handleBorderColor || s.textColor,
|
|
1248
|
+
"stroke-width": s.handleBorderWidth,
|
|
1249
|
+
rx: 3
|
|
1250
|
+
}, _r.value, {
|
|
1251
|
+
onKeydown: t[5] ||= (e) => hr("end", e),
|
|
1252
|
+
onMousedown: t[6] ||= ye((e) => Cr("end", e), ["stop", "prevent"]),
|
|
1253
|
+
onClick: t[7] ||= ye(() => {}, ["stop", "prevent"])
|
|
1254
|
+
}), null, 16, et),
|
|
1255
|
+
s.handleType && s.handleType !== "empty" ? (_(), p("g", {
|
|
1256
|
+
key: 1,
|
|
1257
|
+
class: "compact-handle-icon",
|
|
1258
|
+
transform: `translate(${Or.value}, 0)`,
|
|
1259
|
+
style: { "pointer-events": "none" }
|
|
1260
|
+
}, [(_(), p("svg", {
|
|
1261
|
+
width: Er.value,
|
|
1262
|
+
height: I.value.height,
|
|
1263
|
+
viewBox: "0 0 20 20",
|
|
1264
|
+
preserveAspectRatio: "xMidYMid meet"
|
|
1265
|
+
}, [s.handleType === "arrow" ? (_(), p("path", {
|
|
1266
|
+
key: 0,
|
|
1267
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
1268
|
+
fill: P.value,
|
|
1269
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1270
|
+
"stroke-width": .618,
|
|
1271
|
+
"stroke-linejoin": "round",
|
|
1272
|
+
"stroke-linecap": "round"
|
|
1273
|
+
}, null, 8, rt)) : s.handleType === "chevron" ? (_(), p("path", {
|
|
1274
|
+
key: 1,
|
|
1275
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
1276
|
+
fill: "none",
|
|
1277
|
+
stroke: s.handleIconColor || s.textColor,
|
|
1278
|
+
"stroke-width": .618,
|
|
1279
|
+
"stroke-linejoin": "round",
|
|
1280
|
+
"stroke-linecap": "round"
|
|
1281
|
+
}, null, 8, it)) : s.handleType === "grab" ? (_(), p("path", {
|
|
1282
|
+
key: 2,
|
|
1283
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
1284
|
+
fill: s.handleIconColor || s.textColor,
|
|
1285
|
+
stroke: "none",
|
|
1286
|
+
opacity: "0.6"
|
|
1287
|
+
}, null, 8, at)) : f("", !0)], 8, nt))], 8, tt)) : f("", !0)
|
|
1288
|
+
], 64)) : f("", !0),
|
|
1289
|
+
e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 7 }, [s.minimapMerged ? (_(), p("g", ot, [
|
|
1290
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), p("circle", {
|
|
1291
|
+
key: 0,
|
|
1292
|
+
cx: H.value.firstPlot.x,
|
|
1293
|
+
cy: H.value.firstPlot.y,
|
|
1294
|
+
"stroke-width": "0.5",
|
|
1295
|
+
stroke: P.value,
|
|
1296
|
+
r: "4",
|
|
1297
|
+
fill: s.minimapLineColor
|
|
1298
|
+
}, null, 8, st)) : f("", !0),
|
|
1299
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), p("circle", {
|
|
1300
|
+
key: 1,
|
|
1301
|
+
cx: H.value.firstPlot.x,
|
|
1302
|
+
cy: H.value.firstPlot.y,
|
|
1303
|
+
r: 2,
|
|
1304
|
+
fill: P.value
|
|
1305
|
+
}, null, 8, ct)) : f("", !0),
|
|
1306
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), p("circle", {
|
|
1307
|
+
key: 2,
|
|
1308
|
+
cx: H.value.lastPlot.x,
|
|
1309
|
+
cy: H.value.lastPlot.y,
|
|
1310
|
+
"stroke-width": "0.5",
|
|
1311
|
+
stroke: P.value,
|
|
1312
|
+
r: "4",
|
|
1313
|
+
fill: s.minimapLineColor
|
|
1314
|
+
}, null, 8, lt)) : f("", !0),
|
|
1315
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), p("circle", {
|
|
1316
|
+
key: 3,
|
|
1317
|
+
cx: H.value.lastPlot.x,
|
|
1318
|
+
cy: H.value.lastPlot.y,
|
|
1319
|
+
r: "2",
|
|
1320
|
+
fill: P.value
|
|
1321
|
+
}, null, 8, ut)) : f("", !0)
|
|
1322
|
+
])) : (_(), p("g", dt, [(_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), p("g", { key: String(e.key) }, [
|
|
1323
|
+
e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
|
|
1324
|
+
key: 0,
|
|
1325
|
+
d: `M ${e.selectionSet}`,
|
|
1326
|
+
stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
|
|
1327
|
+
fill: "transparent",
|
|
1328
|
+
"stroke-width": "2",
|
|
1329
|
+
"stroke-linecap": "round",
|
|
1330
|
+
"stroke-linejoin": "round",
|
|
1331
|
+
"stroke-dasharray": e.dashed ? "2 4" : 0
|
|
1332
|
+
}, null, 8, ft)) : f("", !0),
|
|
1333
|
+
e.isVisible && s.cutNullValues ? (_(!0), p(u, { key: 1 }, y(e.selectionMarkers, (t) => (_(), p("circle", {
|
|
1334
|
+
key: `sel-dot-${e.key}-${t.i}`,
|
|
1335
|
+
cx: t.x,
|
|
1336
|
+
cy: t.y,
|
|
1337
|
+
r: "2.5",
|
|
1338
|
+
fill: e.color,
|
|
1339
|
+
stroke: P.value,
|
|
1340
|
+
"stroke-width": "0.5"
|
|
1341
|
+
}, null, 8, pt))), 128)) : f("", !0),
|
|
1342
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
|
|
1343
|
+
key: 2,
|
|
1344
|
+
cx: e.firstPlot.x,
|
|
1345
|
+
cy: e.firstPlot.y,
|
|
1346
|
+
"stroke-width": "0.5",
|
|
1347
|
+
stroke: P.value,
|
|
1348
|
+
r: "4",
|
|
1349
|
+
fill: e.color
|
|
1350
|
+
}, null, 8, mt)) : f("", !0),
|
|
1351
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
|
|
1352
|
+
key: 3,
|
|
1353
|
+
cx: e.firstPlot.x,
|
|
1354
|
+
cy: e.firstPlot.y,
|
|
1355
|
+
r: "2",
|
|
1356
|
+
fill: P.value
|
|
1357
|
+
}, null, 8, ht)) : f("", !0),
|
|
1358
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
|
|
1359
|
+
key: 4,
|
|
1360
|
+
cx: e.lastPlot.x,
|
|
1361
|
+
cy: e.lastPlot.y,
|
|
1362
|
+
"stroke-width": "0.5",
|
|
1363
|
+
stroke: P.value,
|
|
1364
|
+
r: "4",
|
|
1365
|
+
fill: e.color
|
|
1366
|
+
}, null, 8, gt)) : f("", !0),
|
|
1367
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
|
|
1368
|
+
key: 5,
|
|
1369
|
+
cx: e.lastPlot.x,
|
|
1370
|
+
cy: e.lastPlot.y,
|
|
1371
|
+
r: "2",
|
|
1372
|
+
fill: P.value
|
|
1373
|
+
}, null, 8, _t)) : f("", !0)
|
|
1374
|
+
]))), 128)), (_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", { key: String(e.key) }, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && s.cutNullValues && t.value !== null ? (_(), p("circle", {
|
|
1375
|
+
key: `sel-plot-${e.key}-${t.i}`,
|
|
1376
|
+
cx: t.x,
|
|
1377
|
+
cy: t.y,
|
|
1378
|
+
r: "2.5",
|
|
1379
|
+
fill: e.color,
|
|
1380
|
+
stroke: P.value,
|
|
1381
|
+
"stroke-width": "0.5"
|
|
1382
|
+
}, null, 8, vt)) : f("", !0)]))), 256))]))), 128))]))], 64))
|
|
1383
|
+
], 8, we))])) : f("", !0),
|
|
1384
|
+
m("div", {
|
|
1385
|
+
class: "slider-track",
|
|
1386
|
+
style: g({ visibility: T.value && s.minimapCompact ? "hidden" : "visible" })
|
|
1387
|
+
}, null, 4),
|
|
1388
|
+
m("div", {
|
|
1389
|
+
class: h({
|
|
1390
|
+
"range-highlight": !0,
|
|
1391
|
+
move: s.enableSelectionDrag
|
|
1392
|
+
}),
|
|
1393
|
+
onMousedown: t[8] ||= (e) => Z.value = !0,
|
|
1394
|
+
onMouseup: t[9] ||= (e) => Z.value = !1,
|
|
1395
|
+
style: g({
|
|
1396
|
+
...N.value,
|
|
1397
|
+
cursor: Z.value ? "grabbing" : "grab",
|
|
1398
|
+
visibility: T.value && s.minimapCompact ? "hidden" : "visible"
|
|
1399
|
+
})
|
|
1400
|
+
}, null, 38),
|
|
1401
|
+
s.enableRangeHandles ? _e((_(), p("input", {
|
|
1402
|
+
key: 1,
|
|
1403
|
+
"aria-label": "range-handle-left",
|
|
1404
|
+
ref_key: "rangeStart",
|
|
1405
|
+
ref: bn,
|
|
1406
|
+
type: "range",
|
|
1407
|
+
class: h({
|
|
1408
|
+
"range-left": !0,
|
|
1409
|
+
"range-handle": !0,
|
|
1410
|
+
"range-minimap": T.value && s.verticalHandles,
|
|
1411
|
+
"range-invisible": T.value && s.minimapCompact
|
|
1412
|
+
}),
|
|
1413
|
+
min: s.min,
|
|
1414
|
+
max: s.minimapCompact && T.value ? Math.max(0, R.value - 1) : s.max,
|
|
1415
|
+
tabindex: T.value ? -1 : 0,
|
|
1416
|
+
"onUpdate:modelValue": t[10] ||= (e) => pn.value = e,
|
|
1417
|
+
onFocus: t[11] ||= (e) => T.value && e.target.blur(),
|
|
1418
|
+
onInput: t[12] ||= (e) => pn.value = e.target.valueAsNumber,
|
|
1419
|
+
onChange: j,
|
|
1420
|
+
onKeyup: ve(j, ["enter"]),
|
|
1421
|
+
onBlur: j,
|
|
1422
|
+
onMouseenter: t[13] ||= (e) => er("start"),
|
|
1423
|
+
onPointerup: j
|
|
1424
|
+
}, null, 42, yt)), [[
|
|
1425
|
+
ge,
|
|
1426
|
+
pn.value,
|
|
1427
|
+
void 0,
|
|
1428
|
+
{ number: !0 }
|
|
1429
|
+
]]) : f("", !0),
|
|
1430
|
+
s.enableRangeHandles ? _e((_(), p("input", {
|
|
1431
|
+
key: 2,
|
|
1432
|
+
"aria-label": "range-handle-right",
|
|
1433
|
+
ref_key: "rangeEnd",
|
|
1434
|
+
ref: xn,
|
|
1435
|
+
type: "range",
|
|
1436
|
+
class: h({
|
|
1437
|
+
"range-right": !0,
|
|
1438
|
+
"range-handle": !0,
|
|
1439
|
+
"range-minimap": T.value && s.verticalHandles,
|
|
1440
|
+
"range-invisible": T.value && s.minimapCompact
|
|
1441
|
+
}),
|
|
1442
|
+
min: s.min,
|
|
1443
|
+
max: s.minimapCompact && T.value ? Math.max(0, R.value - 1) : s.max,
|
|
1444
|
+
tabindex: T.value ? -1 : 0,
|
|
1445
|
+
onFocus: t[14] ||= (e) => T.value && e.target.blur(),
|
|
1446
|
+
"onUpdate:modelValue": t[15] ||= (e) => mn.value = e,
|
|
1447
|
+
onInput: t[16] ||= (e) => mn.value = e.target.valueAsNumber,
|
|
1448
|
+
onChange: j,
|
|
1449
|
+
onKeyup: ve(j, ["enter"]),
|
|
1450
|
+
onBlur: j,
|
|
1451
|
+
onMouseenter: t[17] ||= (e) => er("end"),
|
|
1452
|
+
onPointerup: j
|
|
1453
|
+
}, null, 42, bt)), [[
|
|
1454
|
+
ge,
|
|
1455
|
+
mn.value,
|
|
1456
|
+
void 0,
|
|
1457
|
+
{ number: !0 }
|
|
1458
|
+
]]) : f("", !0),
|
|
1459
|
+
$.value.left ? (_(), p("div", {
|
|
1460
|
+
key: 3,
|
|
1461
|
+
ref_key: "tooltipLeft",
|
|
1462
|
+
ref: qn,
|
|
1463
|
+
class: h({
|
|
1464
|
+
"range-tooltip": !0,
|
|
1465
|
+
"range-tooltip-visible": Q.value,
|
|
1466
|
+
"range-tooltip-arrow": N.value.arrowLeft && !s.verticalHandles,
|
|
1467
|
+
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles
|
|
1468
|
+
}),
|
|
1469
|
+
style: g({
|
|
1470
|
+
left: N.value.tooltipLeft,
|
|
1471
|
+
color: me(te)(s.selectColor),
|
|
1472
|
+
backgroundColor: s.selectColor,
|
|
1473
|
+
border: `1px solid ${P.value}`,
|
|
1474
|
+
zIndex: `${$n.value + 4}`,
|
|
1475
|
+
visibility: tr.value || $.value.left === $.value.right ? "hidden" : "visible",
|
|
1476
|
+
top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1477
|
+
})
|
|
1478
|
+
}, pe($.value.left), 7)) : f("", !0),
|
|
1479
|
+
(tr.value || $.value.left === $.value.right) && ($.value.left || $.value.right) ? (_(), p("div", {
|
|
1480
|
+
key: 4,
|
|
1481
|
+
ref: "tooltipMerge",
|
|
1482
|
+
class: h({
|
|
1483
|
+
"range-tooltip": !0,
|
|
1484
|
+
"range-tooltip-visible": Q.value,
|
|
1485
|
+
"range-tooltip-arrow": !0,
|
|
1486
|
+
"range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles,
|
|
1487
|
+
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1488
|
+
}),
|
|
1489
|
+
style: g({
|
|
1490
|
+
left: N.value.tooltipCenter,
|
|
1491
|
+
width: nr.value.width + "px",
|
|
1492
|
+
color: me(te)(s.selectColor),
|
|
1493
|
+
backgroundColor: s.selectColor,
|
|
1494
|
+
border: `1px solid ${P.value}`,
|
|
1495
|
+
zIndex: "4",
|
|
1496
|
+
top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1497
|
+
})
|
|
1498
|
+
}, pe($.value.left === $.value.right ? $.value.left : `${$.value.left} - ${$.value.right}`), 7)) : f("", !0),
|
|
1499
|
+
$.value.right ? (_(), p("div", {
|
|
1500
|
+
key: 5,
|
|
1501
|
+
ref_key: "tooltipRight",
|
|
1502
|
+
ref: Jn,
|
|
1503
|
+
class: h({
|
|
1504
|
+
"range-tooltip": !0,
|
|
1505
|
+
"range-tooltip-visible": Q.value,
|
|
1506
|
+
"range-tooltip-arrow": N.value.arrowRight && !s.verticalHandles,
|
|
1507
|
+
"range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
|
|
1508
|
+
}),
|
|
1509
|
+
style: g({
|
|
1510
|
+
left: N.value.tooltipRight,
|
|
1511
|
+
color: me(te)(s.selectColor),
|
|
1512
|
+
backgroundColor: s.selectColor,
|
|
1513
|
+
border: `1px solid ${P.value}`,
|
|
1514
|
+
zIndex: "4",
|
|
1515
|
+
visibility: tr.value || $.value.left === $.value.right ? "hidden" : "visible",
|
|
1516
|
+
top: T.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1517
|
+
})
|
|
1518
|
+
}, pe($.value.right), 7)) : f("", !0)
|
|
1519
|
+
], 36)], 44, be));
|
|
1520
|
+
}
|
|
1521
|
+
}, [["__scopeId", "data-v-b270cbf0"]]);
|
|
1522
|
+
//#endregion
|
|
1523
|
+
export { St as t };
|