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,1551 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { B as t, G as n, H as r, It as i, J as a, Lt as ee, Rt as o, S as te, St as ne, Tt as re, W as ie, X as ae, h as oe, i as s, ot as se, pt as ce, r as le, t as ue, x as de, y as fe, yt as pe, zt as me } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as he } from "./useConfig-BV0kTCnO.js";
|
|
4
|
+
import { t as ge } from "./usePrinter-X0yWOynH.js";
|
|
5
|
+
import { n as _e, t as ve } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as ye } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as be } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
+
import { t as xe } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as Se } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
10
|
+
import { t as Ce } from "./img-BjOr008R.js";
|
|
11
|
+
import { n as we } from "./Title-__gWq2g6.js";
|
|
12
|
+
import { t as Te } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
13
|
+
import { c as Ee } from "./canvas-lib-DTaADQOK.js";
|
|
14
|
+
import { t as De } from "./useResponsive-CrAInupd.js";
|
|
15
|
+
import { t as Oe } from "./BaseLegendToggle-DUIqQmwM.js";
|
|
16
|
+
import { t as ke } from "./A11yDataTable-q2-8fSlJ.js";
|
|
17
|
+
import { t as Ae } from "./useUserOptionState-CjPJPTg2.js";
|
|
18
|
+
import { t as je } from "./useChartAccessibility-Do37qcw2.js";
|
|
19
|
+
import { t as Me } from "./Legend-Gg5Q4Clb.js";
|
|
20
|
+
import { t as Ne } from "./vue_ui_history_plot-C5nytDHh.js";
|
|
21
|
+
import { Fragment as c, Teleport as Pe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Re, nextTick as ze, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Be, onMounted as Ve, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as C, toRefs as We, unref as w, watch as Ge, watchEffect as Ke, withCtx as T } from "vue";
|
|
22
|
+
//#region src/components/vue-ui-history-plot.vue
|
|
23
|
+
var qe = /* @__PURE__ */ e({ default: () => Pt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
|
|
24
|
+
"xmlns",
|
|
25
|
+
"viewBox",
|
|
26
|
+
"aria-describedby"
|
|
27
|
+
], $e = [
|
|
28
|
+
"x",
|
|
29
|
+
"y",
|
|
30
|
+
"width",
|
|
31
|
+
"height"
|
|
32
|
+
], et = { key: 1 }, tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = { key: 2 }, ot = [
|
|
33
|
+
"x1",
|
|
34
|
+
"x2",
|
|
35
|
+
"y1",
|
|
36
|
+
"y2",
|
|
37
|
+
"stroke",
|
|
38
|
+
"stroke-width"
|
|
39
|
+
], st = { key: 3 }, ct = [
|
|
40
|
+
"stroke",
|
|
41
|
+
"stroke-width",
|
|
42
|
+
"x1",
|
|
43
|
+
"x2",
|
|
44
|
+
"y1",
|
|
45
|
+
"y2"
|
|
46
|
+
], lt = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"fill",
|
|
50
|
+
"font-size"
|
|
51
|
+
], ut = [
|
|
52
|
+
"transform",
|
|
53
|
+
"font-size",
|
|
54
|
+
"fill",
|
|
55
|
+
"font-weight"
|
|
56
|
+
], dt = { key: 6 }, ft = [
|
|
57
|
+
"x1",
|
|
58
|
+
"x2",
|
|
59
|
+
"y1",
|
|
60
|
+
"y2",
|
|
61
|
+
"stroke",
|
|
62
|
+
"stroke-width"
|
|
63
|
+
], pt = { key: 7 }, mt = [
|
|
64
|
+
"stroke",
|
|
65
|
+
"stroke-width",
|
|
66
|
+
"x1",
|
|
67
|
+
"x2",
|
|
68
|
+
"y1",
|
|
69
|
+
"y2"
|
|
70
|
+
], ht = [
|
|
71
|
+
"transform",
|
|
72
|
+
"fill",
|
|
73
|
+
"font-size",
|
|
74
|
+
"text-anchor"
|
|
75
|
+
], gt = [
|
|
76
|
+
"x",
|
|
77
|
+
"y",
|
|
78
|
+
"font-size",
|
|
79
|
+
"fill",
|
|
80
|
+
"font-weight"
|
|
81
|
+
], _t = [
|
|
82
|
+
"x1",
|
|
83
|
+
"x2",
|
|
84
|
+
"y1",
|
|
85
|
+
"y2",
|
|
86
|
+
"stroke",
|
|
87
|
+
"stroke-width"
|
|
88
|
+
], vt = [
|
|
89
|
+
"x1",
|
|
90
|
+
"x2",
|
|
91
|
+
"y1",
|
|
92
|
+
"y2",
|
|
93
|
+
"stroke",
|
|
94
|
+
"stroke-width"
|
|
95
|
+
], yt = [
|
|
96
|
+
"d",
|
|
97
|
+
"stroke",
|
|
98
|
+
"stroke-width"
|
|
99
|
+
], bt = [
|
|
100
|
+
"d",
|
|
101
|
+
"stroke",
|
|
102
|
+
"stroke-width"
|
|
103
|
+
], xt = [
|
|
104
|
+
"cx",
|
|
105
|
+
"cy",
|
|
106
|
+
"fill",
|
|
107
|
+
"r"
|
|
108
|
+
], St = [
|
|
109
|
+
"cx",
|
|
110
|
+
"cy",
|
|
111
|
+
"fill",
|
|
112
|
+
"r",
|
|
113
|
+
"stroke",
|
|
114
|
+
"stroke-width"
|
|
115
|
+
], Ct = { key: 1 }, wt = [
|
|
116
|
+
"x",
|
|
117
|
+
"y",
|
|
118
|
+
"font-size",
|
|
119
|
+
"fill",
|
|
120
|
+
"font-weight"
|
|
121
|
+
], Tt = [
|
|
122
|
+
"x",
|
|
123
|
+
"y",
|
|
124
|
+
"font-size",
|
|
125
|
+
"fill",
|
|
126
|
+
"font-weight",
|
|
127
|
+
"innerHTML"
|
|
128
|
+
], Et = { key: 2 }, Dt = [
|
|
129
|
+
"x",
|
|
130
|
+
"y",
|
|
131
|
+
"font-size",
|
|
132
|
+
"font-weight",
|
|
133
|
+
"fill"
|
|
134
|
+
], Ot = [
|
|
135
|
+
"cx",
|
|
136
|
+
"cy",
|
|
137
|
+
"r",
|
|
138
|
+
"onMouseenter",
|
|
139
|
+
"onMouseleave",
|
|
140
|
+
"onClick"
|
|
141
|
+
], kt = {
|
|
142
|
+
key: 0,
|
|
143
|
+
style: {
|
|
144
|
+
position: "absolute",
|
|
145
|
+
top: "100%",
|
|
146
|
+
left: "0",
|
|
147
|
+
width: "100%"
|
|
148
|
+
},
|
|
149
|
+
"data-dom-to-png-ignore": "",
|
|
150
|
+
"aria-hidden": "true"
|
|
151
|
+
}, At = {
|
|
152
|
+
key: 5,
|
|
153
|
+
class: "vue-data-ui-watermark"
|
|
154
|
+
}, jt = ["id"], Mt = ["onClick"], Nt = ["innerHTML"], Pt = /* @__PURE__ */ Te({
|
|
155
|
+
__name: "vue-ui-history-plot",
|
|
156
|
+
props: {
|
|
157
|
+
config: {
|
|
158
|
+
type: Object,
|
|
159
|
+
default() {
|
|
160
|
+
return {};
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
dataset: {
|
|
164
|
+
type: Array,
|
|
165
|
+
default() {
|
|
166
|
+
return [];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
emits: [
|
|
171
|
+
"selectLegend",
|
|
172
|
+
"selectDatapoint",
|
|
173
|
+
"copyAlt"
|
|
174
|
+
],
|
|
175
|
+
setup(e, { expose: Te, emit: qe }) {
|
|
176
|
+
let Pt = m(() => import("./Tooltip-B7lmdbac.js")), Ft = m(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), It = m(() => import("./vue-ui-accordion-cVv18nTV.js").then((e) => e.n)), Lt = m(() => import("./DataTable-BvDJEAma.js")), Rt = m(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), zt = m(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), Bt = m(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), Vt = m(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), { vue_ui_history_plot: Ht } = he(), { isThemeValid: Ut, warnInvalidTheme: Wt } = xe(), E = e, D = b(null), Gt = b(null), Kt = b(0), qt = b(null), Jt = b(0), Yt = b(0), Xt = b(0), O = Ue(null), k = Ue(null), Zt = b(null), A = b(r()), Qt = b(!1), $t = b(""), j = b([]), M = b(!1), N = b(null), P = b(!1), en = b(null), tn = b(!1), F = b(null), nn = b(null), rn = b(!1), an = b(!1), on = b(null), sn = b(null), cn = b(null), ln = b(null), I = b(null), L = b(null), un = b({
|
|
177
|
+
x: 0,
|
|
178
|
+
y: 0
|
|
179
|
+
}), dn = b("pointer"), fn = b(!1), pn = l({
|
|
180
|
+
get: () => !!E.dataset && E.dataset.length,
|
|
181
|
+
set: (e) => e
|
|
182
|
+
}), mn = qe;
|
|
183
|
+
Ve(() => {
|
|
184
|
+
tn.value = !0, gn();
|
|
185
|
+
});
|
|
186
|
+
let hn = l(() => !!R.value.debug);
|
|
187
|
+
function gn() {
|
|
188
|
+
if (ne(E.dataset) ? (ae({
|
|
189
|
+
componentName: "VueUiHistoryPlot",
|
|
190
|
+
type: "dataset",
|
|
191
|
+
debug: hn.value
|
|
192
|
+
}), bn.value = !0) : E.dataset.forEach((e, t) => {
|
|
193
|
+
se({
|
|
194
|
+
datasetObject: e,
|
|
195
|
+
requiredAttributes: ["name", "values"]
|
|
196
|
+
}).forEach((e) => {
|
|
197
|
+
pn.value = !1, ae({
|
|
198
|
+
componentName: "VueUiHistoryPlot",
|
|
199
|
+
type: "datasetSerieAttribute",
|
|
200
|
+
property: e,
|
|
201
|
+
index: t,
|
|
202
|
+
debug: hn.value
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
}), ne(E.dataset) || (bn.value = R.value.loading), R.value.responsive) {
|
|
206
|
+
let e = Ee(() => {
|
|
207
|
+
let { width: e, height: t } = De({
|
|
208
|
+
chart: D.value,
|
|
209
|
+
title: R.value.style.chart.title.text ? Gt.value : null,
|
|
210
|
+
noTitle: Zt.value,
|
|
211
|
+
legend: R.value.style.chart.legend.show ? qt.value : null,
|
|
212
|
+
source: en.value
|
|
213
|
+
});
|
|
214
|
+
requestAnimationFrame(() => {
|
|
215
|
+
U.value.width = e, U.value.height = t, R.value.responsiveProportionalSizing ? (G.value.plots = o({
|
|
216
|
+
relator: Math.min(e, t),
|
|
217
|
+
adjuster: 600,
|
|
218
|
+
source: R.value.style.chart.plots.radius,
|
|
219
|
+
threshold: 3,
|
|
220
|
+
fallback: 3
|
|
221
|
+
}), G.value.indexLabels = o({
|
|
222
|
+
relator: Math.min(e, t),
|
|
223
|
+
adjuster: 600,
|
|
224
|
+
source: R.value.style.chart.plots.indexLabels.fontSize,
|
|
225
|
+
threshold: 6,
|
|
226
|
+
fallback: 6
|
|
227
|
+
}), G.value.labels = o({
|
|
228
|
+
relator: Math.min(e, t),
|
|
229
|
+
adjuster: 600,
|
|
230
|
+
source: R.value.style.chart.plots.labels.fontSize,
|
|
231
|
+
threshold: 6,
|
|
232
|
+
fallback: 6
|
|
233
|
+
}), G.value.xAxisLabels = o({
|
|
234
|
+
relator: Math.min(e, t),
|
|
235
|
+
adjuster: 600,
|
|
236
|
+
source: R.value.style.chart.axes.x.labels.fontSize,
|
|
237
|
+
threshold: 6,
|
|
238
|
+
fallback: 6
|
|
239
|
+
}), G.value.xAxisName = o({
|
|
240
|
+
relator: Math.min(e, t),
|
|
241
|
+
adjuster: 600,
|
|
242
|
+
source: R.value.style.chart.axes.x.name.fontSize,
|
|
243
|
+
threshold: 6,
|
|
244
|
+
fallback: 6
|
|
245
|
+
}), G.value.yAxisLabels = o({
|
|
246
|
+
relator: Math.min(e, t),
|
|
247
|
+
adjuster: 600,
|
|
248
|
+
source: R.value.style.chart.axes.y.labels.fontSize,
|
|
249
|
+
threshold: 6,
|
|
250
|
+
fallback: 6
|
|
251
|
+
}), G.value.yAxisName = o({
|
|
252
|
+
relator: Math.min(e, t),
|
|
253
|
+
adjuster: 600,
|
|
254
|
+
source: R.value.style.chart.axes.y.name.fontSize,
|
|
255
|
+
threshold: 6,
|
|
256
|
+
fallback: 6
|
|
257
|
+
})) : (G.value.plots = R.value.style.chart.plots.radius, G.value.indexLabels = R.value.style.chart.plots.indexLabels.fontSize, G.value.labels = R.value.style.chart.plots.labels.fontSize, G.value.xAxisLabels = R.value.style.chart.axes.x.labels.fontSize, G.value.xAxisName = R.value.style.chart.axes.x.name.fontSize, G.value.yAxisLabels = R.value.style.chart.axes.y.labels.fontSize, G.value.yAxisName = R.value.style.chart.axes.y.name.fontSize);
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect()), O.value = new ResizeObserver(e), k.value = D.value.parentNode, O.value.observe(k.value);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
Be(() => {
|
|
264
|
+
O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect());
|
|
265
|
+
});
|
|
266
|
+
function _n() {
|
|
267
|
+
let e = be({
|
|
268
|
+
userConfig: E.config,
|
|
269
|
+
defaultConfig: Ht
|
|
270
|
+
}), t = {}, n = e.theme;
|
|
271
|
+
if (n) if (!Ut.value(e)) Wt(e), t = e;
|
|
272
|
+
else {
|
|
273
|
+
let r = be({
|
|
274
|
+
userConfig: Ne[n] || E.config,
|
|
275
|
+
defaultConfig: e
|
|
276
|
+
});
|
|
277
|
+
t = {
|
|
278
|
+
...be({
|
|
279
|
+
userConfig: E.config,
|
|
280
|
+
defaultConfig: r
|
|
281
|
+
}),
|
|
282
|
+
customPalette: e.customPalette.length ? e.customPalette : ee[n] || re
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
else t = e;
|
|
286
|
+
return t;
|
|
287
|
+
}
|
|
288
|
+
let R = b(_n()), z = l(() => R.value.userOptions.useCursorPointer), vn = l(() => me({
|
|
289
|
+
defaultConfig: {
|
|
290
|
+
userOptions: { show: !1 },
|
|
291
|
+
table: { show: !1 },
|
|
292
|
+
style: { chart: {
|
|
293
|
+
backgroundColor: "#99999930",
|
|
294
|
+
axes: {
|
|
295
|
+
x: {
|
|
296
|
+
scaleMin: 0,
|
|
297
|
+
scaleMax: 10,
|
|
298
|
+
labels: { show: !1 },
|
|
299
|
+
name: { text: "" }
|
|
300
|
+
},
|
|
301
|
+
y: {
|
|
302
|
+
scaleMin: 0,
|
|
303
|
+
scaleMax: 10,
|
|
304
|
+
labels: { show: !1 },
|
|
305
|
+
name: { text: "" }
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
grid: {
|
|
309
|
+
xAxis: { stroke: "#6A6A6A" },
|
|
310
|
+
horizontalLines: { stroke: "#6A6A6A50" },
|
|
311
|
+
yAxis: { stroke: "#6A6A6A" },
|
|
312
|
+
verticalLines: { stroke: "#6A6A6A50" }
|
|
313
|
+
},
|
|
314
|
+
legend: { backgroundColor: "transparent" },
|
|
315
|
+
paths: {
|
|
316
|
+
useSerieColor: !1,
|
|
317
|
+
stroke: "#6A6A6A"
|
|
318
|
+
},
|
|
319
|
+
plots: {
|
|
320
|
+
stroke: "#6A6A6A",
|
|
321
|
+
indexLabels: { show: !1 },
|
|
322
|
+
labels: { show: !1 }
|
|
323
|
+
}
|
|
324
|
+
} }
|
|
325
|
+
},
|
|
326
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
327
|
+
})), { loading: B, FINAL_DATASET: yn, manualLoading: bn } = _e({
|
|
328
|
+
...We(E),
|
|
329
|
+
FINAL_CONFIG: R,
|
|
330
|
+
prepareConfig: _n,
|
|
331
|
+
skeletonDataset: E.config?.skeletonDataset ?? [{
|
|
332
|
+
name: "",
|
|
333
|
+
color: "#CACACA",
|
|
334
|
+
values: [
|
|
335
|
+
{
|
|
336
|
+
label: "",
|
|
337
|
+
x: 1,
|
|
338
|
+
y: 9
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
label: "",
|
|
342
|
+
x: 4,
|
|
343
|
+
y: 1
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
label: "",
|
|
347
|
+
x: 7,
|
|
348
|
+
y: 9
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
label: "",
|
|
352
|
+
x: 9,
|
|
353
|
+
y: 4
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}],
|
|
357
|
+
skeletonConfig: me({
|
|
358
|
+
defaultConfig: R.value,
|
|
359
|
+
userConfig: vn.value
|
|
360
|
+
})
|
|
361
|
+
}), { userOptionsVisible: xn, setUserOptionsVisibility: Sn, keepUserOptionState: Cn } = Ae({ config: R.value }), { svgRef: V } = je({ config: R.value.style.chart.title });
|
|
362
|
+
Ge(() => E.config, (e) => {
|
|
363
|
+
B.value || (R.value = _n()), xn.value = !R.value.userOptions.showOnChartHover, gn(), Kt.value += 1, Yt.value += 1, Jt.value += 1, U.value.height = R.value.style.chart.height, U.value.width = R.value.style.chart.width, G.value.plots = R.value.style.chart.plots.radius, G.value.indexLabels = R.value.style.chart.plots.indexLabels.fontSize, G.value.labels = R.value.style.chart.plots.labels.fontSize, G.value.xAxisLabels = R.value.style.chart.axes.x.labels.fontSize, G.value.xAxisName = R.value.style.chart.axes.x.name.fontSize, G.value.yAxisLabels = R.value.style.chart.axes.y.labels.fontSize, G.value.yAxisName = R.value.style.chart.axes.y.name.fontSize, H.value.showTable = R.value.table.show, H.value.showTooltip = R.value.style.chart.tooltip.show;
|
|
364
|
+
}, { deep: !0 }), Ge(() => E.dataset, (e) => {
|
|
365
|
+
Array.isArray(e) && e.length > 0 && (bn.value = !1);
|
|
366
|
+
}, { deep: !0 });
|
|
367
|
+
let { isPrinting: wn, isImaging: Tn, generatePdf: En, generateImage: Dn } = ge({
|
|
368
|
+
elementId: `history_plot_${A.value}`,
|
|
369
|
+
fileName: R.value.style.chart.title.text || "vue-ui-history-plot",
|
|
370
|
+
options: R.value.userOptions.print
|
|
371
|
+
}), On = l(() => R.value.userOptions.show && !R.value.style.chart.title.text), kn = l(() => de(R.value.customPalette)), H = b({
|
|
372
|
+
showTable: R.value.table.show,
|
|
373
|
+
showTooltip: R.value.style.chart.tooltip.show
|
|
374
|
+
});
|
|
375
|
+
Ge(R, () => {
|
|
376
|
+
H.value = {
|
|
377
|
+
showTable: R.value.table.show,
|
|
378
|
+
showTooltip: R.value.style.chart.tooltip.show
|
|
379
|
+
};
|
|
380
|
+
}, { immediate: !0 });
|
|
381
|
+
let U = b({
|
|
382
|
+
height: R.value.style.chart.height,
|
|
383
|
+
width: R.value.style.chart.width
|
|
384
|
+
}), An = l(() => U.value.width), jn = l(() => U.value.height);
|
|
385
|
+
function Mn() {
|
|
386
|
+
let e = 0;
|
|
387
|
+
ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
|
|
388
|
+
let n = t.getComputedTextLength();
|
|
389
|
+
return n > e ? n : e;
|
|
390
|
+
}, 0));
|
|
391
|
+
let t = sn.value ? sn.value.getBoundingClientRect().width : 0;
|
|
392
|
+
return e + t + (t ? 24 : 0);
|
|
393
|
+
}
|
|
394
|
+
let Nn = b(0), Pn = Ee((e) => {
|
|
395
|
+
Nn.value = e;
|
|
396
|
+
});
|
|
397
|
+
Ke((e) => {
|
|
398
|
+
let t = cn.value;
|
|
399
|
+
if (!t) return;
|
|
400
|
+
let n = new ResizeObserver((e) => {
|
|
401
|
+
Pn(e[0].contentRect.height);
|
|
402
|
+
});
|
|
403
|
+
n.observe(t), e(() => n.disconnect());
|
|
404
|
+
});
|
|
405
|
+
let Fn = l(() => {
|
|
406
|
+
let e = 0;
|
|
407
|
+
on.value && (e = on.value.getBBox().height + G.value.xAxisName / 2);
|
|
408
|
+
let t = 0;
|
|
409
|
+
return cn.value && (t = Nn.value), e + t;
|
|
410
|
+
}), W = l(() => {
|
|
411
|
+
let e = R.value.style.chart.padding.left, t = R.value.style.chart.padding.top, n = Mn(), r = R.value.style.chart.plots.radius;
|
|
412
|
+
return {
|
|
413
|
+
left: e + n + R.value.style.chart.axes.y.name.offsetX,
|
|
414
|
+
top: t + r,
|
|
415
|
+
right: U.value.width - R.value.style.chart.padding.right - r - R.value.style.chart.axes.y.name.offsetX,
|
|
416
|
+
bottom: U.value.height - R.value.style.chart.padding.bottom - Fn.value - r - R.value.style.chart.axes.x.name.offsetY,
|
|
417
|
+
width: U.value.width - e - R.value.style.chart.padding.right - n - r - R.value.style.chart.axes.y.name.offsetX,
|
|
418
|
+
height: U.value.height - t - R.value.style.chart.padding.bottom - Fn.value - r * 2 - R.value.style.chart.axes.x.name.offsetY
|
|
419
|
+
};
|
|
420
|
+
}), G = b({
|
|
421
|
+
plots: R.value.style.chart.plots.radius,
|
|
422
|
+
indexLabels: R.value.style.chart.plots.indexLabels.fontSize,
|
|
423
|
+
labels: R.value.style.chart.plots.labels.fontSize,
|
|
424
|
+
xAxisLabels: R.value.style.chart.axes.x.labels.fontSize,
|
|
425
|
+
xAxisName: R.value.style.chart.axes.x.name.fontSize,
|
|
426
|
+
yAxisLabels: R.value.style.chart.axes.y.labels.fontSize,
|
|
427
|
+
yAxisName: R.value.style.chart.axes.y.name.fontSize
|
|
428
|
+
}), K = l(() => yn.value.map((e, t) => ({
|
|
429
|
+
...e,
|
|
430
|
+
color: e.color ? fe(e.color) : kn.value[t] || re[t] || re[t % re.length],
|
|
431
|
+
seriesIndex: t
|
|
432
|
+
}))), In = l(() => Math.max(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Ln = l(() => {
|
|
433
|
+
let e = Math.min(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
|
|
434
|
+
return e < 0 ? e : 0;
|
|
435
|
+
}), Rn = l(() => Math.max(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), zn = l(() => {
|
|
436
|
+
let e = Math.min(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
|
|
437
|
+
return e < 0 ? e : 0;
|
|
438
|
+
}), q = l(() => {
|
|
439
|
+
let e = oe(R.value.style.chart.axes.x.scaleMin ?? Ln.value, R.value.style.chart.axes.x.scaleMax ?? In.value, R.value.style.chart.axes.x.ticks), t = oe(R.value.style.chart.axes.y.scaleMin ?? zn.value, R.value.style.chart.axes.y.scaleMax ?? Rn.value, R.value.style.chart.axes.y.ticks);
|
|
440
|
+
return {
|
|
441
|
+
x: e,
|
|
442
|
+
y: t,
|
|
443
|
+
tickX: e.ticks.map((t) => ({
|
|
444
|
+
x: W.value.left + (t - e.min) / (e.max - e.min) * W.value.width,
|
|
445
|
+
y1: W.value.top,
|
|
446
|
+
y2: W.value.bottom,
|
|
447
|
+
value: t
|
|
448
|
+
})),
|
|
449
|
+
tickY: t.ticks.map((e) => ({
|
|
450
|
+
y: W.value.bottom - (e - t.min) / (t.max - t.min) * W.value.height,
|
|
451
|
+
x1: W.value.left,
|
|
452
|
+
x2: W.value.right,
|
|
453
|
+
value: e
|
|
454
|
+
}))
|
|
455
|
+
};
|
|
456
|
+
});
|
|
457
|
+
function Bn(e) {
|
|
458
|
+
let t = q.value.x.min < 0 ? Math.abs(q.value.x.min) : q.value.x.min > 0 ? -q.value.x.min : 0;
|
|
459
|
+
return W.value.left + ((e || 0) + t) / (q.value.x.max + t) * W.value.width;
|
|
460
|
+
}
|
|
461
|
+
function Vn(e) {
|
|
462
|
+
let t = q.value.y.min < 0 ? Math.abs(q.value.y.min) : q.value.y.min > 0 ? -q.value.y.min : 0;
|
|
463
|
+
return W.value.bottom - ((e || 0) + t) / (q.value.y.max + t) * W.value.height;
|
|
464
|
+
}
|
|
465
|
+
let J = l(() => K.value.filter((e) => !j.value.includes(e.seriesIndex)).map((e, t) => {
|
|
466
|
+
let n = e.values.map((t, n) => ({
|
|
467
|
+
valueX: t.x,
|
|
468
|
+
valueY: t.y,
|
|
469
|
+
label: t.label,
|
|
470
|
+
x: Bn(t.x),
|
|
471
|
+
y: Vn(t.y),
|
|
472
|
+
color: e.color,
|
|
473
|
+
seriesName: e.name,
|
|
474
|
+
id: r()
|
|
475
|
+
})), i = n.map((e) => `${e.x},${e.y} `).join("").trim();
|
|
476
|
+
return {
|
|
477
|
+
...e,
|
|
478
|
+
plots: n,
|
|
479
|
+
path: `M${i}`
|
|
480
|
+
};
|
|
481
|
+
}));
|
|
482
|
+
function Hn() {
|
|
483
|
+
j.value.length ? j.value = [] : Y.value.forEach((e) => {
|
|
484
|
+
j.value.push(e.seriesIndex);
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
function Un(e) {
|
|
488
|
+
j.value.includes(e) ? j.value = j.value.filter((t) => t !== e) : j.value.push(e);
|
|
489
|
+
}
|
|
490
|
+
function Wn(e) {
|
|
491
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
|
|
492
|
+
}
|
|
493
|
+
function Gn(e) {
|
|
494
|
+
let t = Wn(e);
|
|
495
|
+
t !== null && j.value.includes(t.seriesIndex) && Un(t.seriesIndex);
|
|
496
|
+
}
|
|
497
|
+
function Kn(e) {
|
|
498
|
+
let t = Wn(e);
|
|
499
|
+
t !== null && (j.value.includes(t.seriesIndex) || Un(t.seriesIndex));
|
|
500
|
+
}
|
|
501
|
+
let Y = l(() => K.value.map((e) => ({
|
|
502
|
+
...e,
|
|
503
|
+
opacity: j.value.includes(e.seriesIndex) ? .5 : 1,
|
|
504
|
+
segregate: () => Un(e.seriesIndex),
|
|
505
|
+
isSegregated: j.value.includes(e.seriesIndex),
|
|
506
|
+
shape: "circle"
|
|
507
|
+
}))), qn = l(() => ({
|
|
508
|
+
cy: "history-plot-div-legend",
|
|
509
|
+
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
510
|
+
color: R.value.style.chart.legend.color,
|
|
511
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
512
|
+
paddingBottom: 12,
|
|
513
|
+
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
514
|
+
}));
|
|
515
|
+
function Jn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
516
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
517
|
+
datapoint: {
|
|
518
|
+
...e,
|
|
519
|
+
plotIndex: t,
|
|
520
|
+
seriesIndex: n
|
|
521
|
+
},
|
|
522
|
+
seriesIndex: n
|
|
523
|
+
}), mn("selectDatapoint", e);
|
|
524
|
+
}
|
|
525
|
+
function Yn(e) {
|
|
526
|
+
mn("selectLegend", {
|
|
527
|
+
...e,
|
|
528
|
+
isSegregated: !e.isSegregated,
|
|
529
|
+
opacity: e.isSegregated ? 1 : .5
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
function Xn(e) {
|
|
533
|
+
M.value = e, Xt.value += 1;
|
|
534
|
+
}
|
|
535
|
+
let Zn = b(null);
|
|
536
|
+
function Qn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
537
|
+
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
538
|
+
datapoint: {
|
|
539
|
+
...e,
|
|
540
|
+
plotIndex: t,
|
|
541
|
+
seriesIndex: n
|
|
542
|
+
},
|
|
543
|
+
seriesIndex: n
|
|
544
|
+
}), !(dn.value === "keyboard" && I.value === n && L.value === t) && (Qt.value = !1, N.value = null);
|
|
545
|
+
}
|
|
546
|
+
function $n(e, t) {
|
|
547
|
+
if (!V.value) return;
|
|
548
|
+
let n = J.value.find((t) => t.seriesIndex === e);
|
|
549
|
+
if (!n) return;
|
|
550
|
+
let r = n.plots[t];
|
|
551
|
+
if (!r) return;
|
|
552
|
+
let a = i(r.x, r.y, V.value);
|
|
553
|
+
a && (un.value = a);
|
|
554
|
+
}
|
|
555
|
+
function er({ datapoint: e, plotIndex: t, seriesIndex: r, triggerMode: i = "pointer" }) {
|
|
556
|
+
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
557
|
+
datapoint: {
|
|
558
|
+
...e,
|
|
559
|
+
plotIndex: t,
|
|
560
|
+
seriesIndex: r
|
|
561
|
+
},
|
|
562
|
+
seriesIndex: r
|
|
563
|
+
}), I.value = r, L.value = t, dn.value = i, Zn.value = {
|
|
564
|
+
datapoint: e,
|
|
565
|
+
seriesIndex: r,
|
|
566
|
+
plotIndex: t,
|
|
567
|
+
config: R.value,
|
|
568
|
+
series: K.value
|
|
569
|
+
}, N.value = e;
|
|
570
|
+
let a = R.value.style.chart.tooltip.customFormat;
|
|
571
|
+
if (P.value = !1, ce(a)) try {
|
|
572
|
+
let n = a({
|
|
573
|
+
seriesIndex: r,
|
|
574
|
+
datapoint: e,
|
|
575
|
+
plotIndex: t,
|
|
576
|
+
series: K.value,
|
|
577
|
+
config: R.value
|
|
578
|
+
});
|
|
579
|
+
typeof n == "string" && ($t.value = n, P.value = !0);
|
|
580
|
+
} catch {
|
|
581
|
+
console.warn("Custom format cannot be applied."), P.value = !1;
|
|
582
|
+
}
|
|
583
|
+
if (!P.value) {
|
|
584
|
+
let t = "";
|
|
585
|
+
t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${R.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${R.value.style.chart.axes.x.name.text || "x"}: ${s(R.value.style.chart.axes.x.labels.formatter, e.valueX, n({
|
|
586
|
+
p: R.value.style.chart.axes.x.labels.prefix,
|
|
587
|
+
v: e.valueX,
|
|
588
|
+
s: R.value.style.chart.axes.x.labels.suffix,
|
|
589
|
+
r: R.value.style.chart.axes.x.labels.rounding
|
|
590
|
+
}))}</div>`, t += `<div>${R.value.style.chart.axes.y.name.text || "y"}: ${s(R.value.style.chart.axes.y.labels.formatter, e.valueY, n({
|
|
591
|
+
p: R.value.style.chart.axes.y.labels.prefix,
|
|
592
|
+
v: e.valueY,
|
|
593
|
+
s: R.value.style.chart.axes.y.labels.suffix,
|
|
594
|
+
r: R.value.style.chart.axes.y.labels.rounding
|
|
595
|
+
}))}</div>`, $t.value = `<div>${t}</div>`;
|
|
596
|
+
}
|
|
597
|
+
Qt.value = !0, i === "keyboard" && ze(() => {
|
|
598
|
+
$n(r, t);
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
l(() => ({ head: J.value.map((e) => ({
|
|
602
|
+
name: e.name,
|
|
603
|
+
color: e.color
|
|
604
|
+
})) }));
|
|
605
|
+
let X = l(() => {
|
|
606
|
+
let e = [
|
|
607
|
+
R.value.table.columnNames.series,
|
|
608
|
+
R.value.table.columnNames.datapoint,
|
|
609
|
+
R.value.table.columnNames.x,
|
|
610
|
+
R.value.table.columnNames.y
|
|
611
|
+
];
|
|
612
|
+
return {
|
|
613
|
+
head: e,
|
|
614
|
+
body: J.value.flatMap((e) => e.plots.map((e) => [
|
|
615
|
+
{
|
|
616
|
+
color: e.color,
|
|
617
|
+
name: e.seriesName
|
|
618
|
+
},
|
|
619
|
+
e.label,
|
|
620
|
+
s(R.value.style.chart.axes.x.labels.formatter, e.valueX, n({
|
|
621
|
+
p: R.value.style.chart.axes.x.labels.prefix,
|
|
622
|
+
v: e.valueX,
|
|
623
|
+
s: R.value.style.chart.axes.x.labels.suffix,
|
|
624
|
+
r: R.value.style.chart.axes.x.labels.rounding
|
|
625
|
+
})),
|
|
626
|
+
s(R.value.style.chart.axes.y.labels.formatter, e.valueY, n({
|
|
627
|
+
p: R.value.style.chart.axes.y.labels.prefix,
|
|
628
|
+
v: e.valueY,
|
|
629
|
+
s: R.value.style.chart.axes.y.labels.suffix,
|
|
630
|
+
r: R.value.style.chart.axes.y.labels.rounding
|
|
631
|
+
}))
|
|
632
|
+
])),
|
|
633
|
+
config: {
|
|
634
|
+
th: {
|
|
635
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
636
|
+
color: R.value.table.th.color,
|
|
637
|
+
outline: R.value.table.th.outline
|
|
638
|
+
},
|
|
639
|
+
td: {
|
|
640
|
+
backgroundColor: R.value.table.td.backgroundColor,
|
|
641
|
+
color: R.value.table.td.color,
|
|
642
|
+
outline: R.value.table.td.outline
|
|
643
|
+
},
|
|
644
|
+
breakpoint: R.value.table.responsiveBreakpoint
|
|
645
|
+
},
|
|
646
|
+
colNames: e
|
|
647
|
+
};
|
|
648
|
+
});
|
|
649
|
+
function tr(e = null) {
|
|
650
|
+
ze(() => {
|
|
651
|
+
let t = [
|
|
652
|
+
[R.value.table.columnNames.series],
|
|
653
|
+
[R.value.table.columnNames.datapoint],
|
|
654
|
+
[R.value.table.columnNames.x],
|
|
655
|
+
[R.value.table.columnNames.y]
|
|
656
|
+
], n = J.value.flatMap((e) => e.plots.map((e) => [
|
|
657
|
+
[e.seriesName],
|
|
658
|
+
[e.label],
|
|
659
|
+
[e.valueX],
|
|
660
|
+
[e.valueY]
|
|
661
|
+
])), r = te([
|
|
662
|
+
[R.value.style.chart.title.text],
|
|
663
|
+
[R.value.style.chart.title.subtitle.text],
|
|
664
|
+
t
|
|
665
|
+
].concat(n));
|
|
666
|
+
e ? e(r) : a({
|
|
667
|
+
csvContent: r,
|
|
668
|
+
title: R.value.style.chart.title.text || "vue-ui-history-plot"
|
|
669
|
+
});
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
let Z = b(!1);
|
|
673
|
+
function nr() {
|
|
674
|
+
Z.value = !Z.value;
|
|
675
|
+
}
|
|
676
|
+
function rr() {
|
|
677
|
+
H.value.showTable = !H.value.showTable;
|
|
678
|
+
}
|
|
679
|
+
function ir() {
|
|
680
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
681
|
+
}
|
|
682
|
+
function ar() {
|
|
683
|
+
return J.value;
|
|
684
|
+
}
|
|
685
|
+
async function or({ scale: e = 2 } = {}) {
|
|
686
|
+
if (!D.value) return;
|
|
687
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
688
|
+
domElement: D.value,
|
|
689
|
+
base64: !0,
|
|
690
|
+
img: !0,
|
|
691
|
+
scale: e
|
|
692
|
+
});
|
|
693
|
+
return {
|
|
694
|
+
imageUri: i,
|
|
695
|
+
base64: a,
|
|
696
|
+
title: R.value.style.chart.title.text,
|
|
697
|
+
width: t,
|
|
698
|
+
height: n,
|
|
699
|
+
aspectRatio: r
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
Se({
|
|
703
|
+
timeLabelsEls: cn,
|
|
704
|
+
timeLabels: l(() => q.value.tickX),
|
|
705
|
+
slicer: l(() => ({
|
|
706
|
+
start: 0,
|
|
707
|
+
end: q.value.tickX.length
|
|
708
|
+
})),
|
|
709
|
+
configRef: R,
|
|
710
|
+
rotationPath: [
|
|
711
|
+
"style",
|
|
712
|
+
"chart",
|
|
713
|
+
"axes",
|
|
714
|
+
"x",
|
|
715
|
+
"labels",
|
|
716
|
+
"rotation"
|
|
717
|
+
],
|
|
718
|
+
autoRotatePath: [
|
|
719
|
+
"style",
|
|
720
|
+
"chart",
|
|
721
|
+
"axes",
|
|
722
|
+
"x",
|
|
723
|
+
"labels",
|
|
724
|
+
"autoRotate",
|
|
725
|
+
"enable"
|
|
726
|
+
],
|
|
727
|
+
isAutoSize: !1,
|
|
728
|
+
width: An,
|
|
729
|
+
height: jn,
|
|
730
|
+
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
731
|
+
rotation: R.value.style.chart.axes.x.labels.autoRotate.angle
|
|
732
|
+
});
|
|
733
|
+
let Q = l(() => {
|
|
734
|
+
let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
|
|
735
|
+
return {
|
|
736
|
+
component: e ? Vt : It,
|
|
737
|
+
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
738
|
+
props: e ? {
|
|
739
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
740
|
+
color: R.value.table.th.color,
|
|
741
|
+
headerColor: R.value.table.th.color,
|
|
742
|
+
headerBg: R.value.table.th.backgroundColor,
|
|
743
|
+
isFullscreen: M.value,
|
|
744
|
+
fullscreenParent: D.value,
|
|
745
|
+
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
746
|
+
} : {
|
|
747
|
+
hideDetails: !0,
|
|
748
|
+
config: {
|
|
749
|
+
open: t,
|
|
750
|
+
maxHeight: 1e4,
|
|
751
|
+
body: {
|
|
752
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
753
|
+
color: R.value.style.chart.color
|
|
754
|
+
},
|
|
755
|
+
head: {
|
|
756
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
757
|
+
color: R.value.style.chart.color
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
});
|
|
763
|
+
Ge(() => H.value.showTable, (e) => {
|
|
764
|
+
R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
765
|
+
});
|
|
766
|
+
function sr() {
|
|
767
|
+
H.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
|
|
768
|
+
}
|
|
769
|
+
let cr = l(() => R.value.style.chart.backgroundColor), lr = l(() => R.value.style.chart.legend), { exportSvg: ur, getSvg: dr } = ye({
|
|
770
|
+
svg: V,
|
|
771
|
+
title: l(() => R.value.style.chart.title),
|
|
772
|
+
legend: lr,
|
|
773
|
+
legendItems: Y,
|
|
774
|
+
backgroundColor: cr
|
|
775
|
+
});
|
|
776
|
+
async function fr({ isCb: e }) {
|
|
777
|
+
an.value = !0, await ze();
|
|
778
|
+
try {
|
|
779
|
+
if (e) {
|
|
780
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await dr();
|
|
781
|
+
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
782
|
+
blob: e,
|
|
783
|
+
url: t,
|
|
784
|
+
text: n,
|
|
785
|
+
dataUrl: r
|
|
786
|
+
}));
|
|
787
|
+
} else await Promise.resolve(ur());
|
|
788
|
+
} finally {
|
|
789
|
+
an.value = !1;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
function pr(e) {
|
|
793
|
+
if (e?.stage === "start") {
|
|
794
|
+
rn.value = !0;
|
|
795
|
+
return;
|
|
796
|
+
}
|
|
797
|
+
if (e?.stage === "end") {
|
|
798
|
+
rn.value = !1;
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
Dn();
|
|
802
|
+
}
|
|
803
|
+
async function mr() {
|
|
804
|
+
if (mn("copyAlt", {
|
|
805
|
+
config: R.value,
|
|
806
|
+
dataset: J.value
|
|
807
|
+
}), !R.value.userOptions.callbacks.altCopy) {
|
|
808
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
812
|
+
config: R.value,
|
|
813
|
+
dataset: J.value
|
|
814
|
+
}));
|
|
815
|
+
}
|
|
816
|
+
let $ = l(() => ({
|
|
817
|
+
head: X.value.head,
|
|
818
|
+
body: X.value.body.map((e) => [
|
|
819
|
+
e[0]?.name || "",
|
|
820
|
+
e[1],
|
|
821
|
+
e[2],
|
|
822
|
+
e[3]
|
|
823
|
+
]),
|
|
824
|
+
caption: R.value.a11y.translations.tableCaption,
|
|
825
|
+
notice: R.value.a11y.translations.tableAvailable
|
|
826
|
+
}));
|
|
827
|
+
function hr(e) {
|
|
828
|
+
return J.value.findIndex((t) => t.seriesIndex === e);
|
|
829
|
+
}
|
|
830
|
+
function gr() {
|
|
831
|
+
if (I.value !== null && L.value !== null) {
|
|
832
|
+
let e = J.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
|
|
833
|
+
e && Qn({
|
|
834
|
+
datapoint: e,
|
|
835
|
+
plotIndex: L.value,
|
|
836
|
+
seriesIndex: I.value
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
I.value = null, L.value = null, dn.value = "pointer", Qt.value = !1, N.value = null;
|
|
840
|
+
}
|
|
841
|
+
function _r() {
|
|
842
|
+
I.value = null, L.value = null, fn.value = !0;
|
|
843
|
+
}
|
|
844
|
+
function vr() {
|
|
845
|
+
gr(), fn.value = !1;
|
|
846
|
+
}
|
|
847
|
+
function yr(e, t) {
|
|
848
|
+
if (!e?.plots?.length) return null;
|
|
849
|
+
let n = e.plots.length;
|
|
850
|
+
return (t % n + n) % n;
|
|
851
|
+
}
|
|
852
|
+
function br({ seriesIndex: e, plotIndex: t, direction: n }) {
|
|
853
|
+
if (!J.value.length) return null;
|
|
854
|
+
let r = hr(e);
|
|
855
|
+
if (r === -1) return null;
|
|
856
|
+
if (n === "up" || n === "down") {
|
|
857
|
+
let e = J.value[r];
|
|
858
|
+
if (!e?.plots?.length) return null;
|
|
859
|
+
let i = yr(e, t + (n === "up" ? -1 : 1));
|
|
860
|
+
return {
|
|
861
|
+
seriesIndex: e.seriesIndex,
|
|
862
|
+
plotIndex: i
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
if (n === "left" || n === "right") {
|
|
866
|
+
let e = ((r + (n === "left" ? -1 : 1)) % J.value.length + J.value.length) % J.value.length, i = J.value[e];
|
|
867
|
+
if (!i?.plots?.length) return null;
|
|
868
|
+
let a = Math.min(t, i.plots.length - 1);
|
|
869
|
+
return {
|
|
870
|
+
seriesIndex: i.seriesIndex,
|
|
871
|
+
plotIndex: a
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
return null;
|
|
875
|
+
}
|
|
876
|
+
function xr(e) {
|
|
877
|
+
if (!V.value || Z.value || document.activeElement !== V.value || !J.value.length) return;
|
|
878
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
|
|
879
|
+
if (!t && !n && !r && !i && !a && !ee) return;
|
|
880
|
+
if (e.preventDefault(), e.stopPropagation(), ee) {
|
|
881
|
+
gr();
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
if (a) {
|
|
885
|
+
if (I.value === null || L.value === null) return;
|
|
886
|
+
let e = J.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
|
|
887
|
+
if (!e) return;
|
|
888
|
+
Jn({
|
|
889
|
+
datapoint: e,
|
|
890
|
+
plotIndex: L.value,
|
|
891
|
+
seriesIndex: I.value
|
|
892
|
+
});
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
let o = null;
|
|
896
|
+
if (I.value === null || L.value === null) {
|
|
897
|
+
let e = J.value[0];
|
|
898
|
+
if (!e?.plots?.length) return;
|
|
899
|
+
o = {
|
|
900
|
+
seriesIndex: e.seriesIndex,
|
|
901
|
+
plotIndex: 0
|
|
902
|
+
};
|
|
903
|
+
} else r ? o = br({
|
|
904
|
+
seriesIndex: I.value,
|
|
905
|
+
plotIndex: L.value,
|
|
906
|
+
direction: "up"
|
|
907
|
+
}) : i ? o = br({
|
|
908
|
+
seriesIndex: I.value,
|
|
909
|
+
plotIndex: L.value,
|
|
910
|
+
direction: "down"
|
|
911
|
+
}) : t ? o = br({
|
|
912
|
+
seriesIndex: I.value,
|
|
913
|
+
plotIndex: L.value,
|
|
914
|
+
direction: "left"
|
|
915
|
+
}) : n && (o = br({
|
|
916
|
+
seriesIndex: I.value,
|
|
917
|
+
plotIndex: L.value,
|
|
918
|
+
direction: "right"
|
|
919
|
+
}));
|
|
920
|
+
if (!o) return;
|
|
921
|
+
let te = J.value.find((e) => e.seriesIndex === o.seriesIndex)?.plots?.[o.plotIndex];
|
|
922
|
+
te && er({
|
|
923
|
+
datapoint: te,
|
|
924
|
+
plotIndex: o.plotIndex,
|
|
925
|
+
seriesIndex: o.seriesIndex,
|
|
926
|
+
triggerMode: "keyboard"
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
return Te({
|
|
930
|
+
getData: ar,
|
|
931
|
+
getImage: or,
|
|
932
|
+
generatePdf: En,
|
|
933
|
+
generateCsv: tr,
|
|
934
|
+
generateImage: Dn,
|
|
935
|
+
generateSvg: fr,
|
|
936
|
+
hideSeries: Kn,
|
|
937
|
+
showSeries: Gn,
|
|
938
|
+
toggleTable: rr,
|
|
939
|
+
toggleTooltip: ir,
|
|
940
|
+
toggleAnnotator: nr,
|
|
941
|
+
toggleFullscreen: Xn,
|
|
942
|
+
copyAlt: mr
|
|
943
|
+
}), (e, r) => (y(), f("div", {
|
|
944
|
+
id: `history_plot_${A.value}`,
|
|
945
|
+
ref_key: "historyPlotChart",
|
|
946
|
+
ref: D,
|
|
947
|
+
class: g({
|
|
948
|
+
"vue-data-ui-component": !0,
|
|
949
|
+
"vue-ui-history-plot": !0,
|
|
950
|
+
"vue-data-ui-wrapper-fullscreen": M.value
|
|
951
|
+
}),
|
|
952
|
+
style: v(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
|
|
953
|
+
onMouseenter: r[2] ||= () => w(Sn)(!0),
|
|
954
|
+
onMouseleave: r[3] ||= () => w(Sn)(!1)
|
|
955
|
+
}, [
|
|
956
|
+
p("div", {
|
|
957
|
+
id: `chart-instructions-${A.value}`,
|
|
958
|
+
class: "sr-only"
|
|
959
|
+
}, [p("p", null, C(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
960
|
+
$.value.body.length ? (y(), u(ke, {
|
|
961
|
+
key: 0,
|
|
962
|
+
uid: A.value,
|
|
963
|
+
head: $.value.head,
|
|
964
|
+
body: $.value.body,
|
|
965
|
+
caption: $.value.caption,
|
|
966
|
+
notice: $.value.notice
|
|
967
|
+
}, null, 8, [
|
|
968
|
+
"uid",
|
|
969
|
+
"head",
|
|
970
|
+
"body",
|
|
971
|
+
"caption",
|
|
972
|
+
"notice"
|
|
973
|
+
])) : d("", !0),
|
|
974
|
+
S(e.$slots, "userConfig", {}, void 0, !0),
|
|
975
|
+
R.value.userOptions.buttons.annotator ? (y(), u(w(Rt), {
|
|
976
|
+
key: 1,
|
|
977
|
+
svgRef: w(V),
|
|
978
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
979
|
+
color: R.value.style.chart.color,
|
|
980
|
+
active: Z.value,
|
|
981
|
+
isCursorPointer: z.value,
|
|
982
|
+
onClose: nr
|
|
983
|
+
}, {
|
|
984
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
985
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
986
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
|
|
987
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
|
|
988
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
|
|
989
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
|
|
990
|
+
_: 3
|
|
991
|
+
}, 8, [
|
|
992
|
+
"svgRef",
|
|
993
|
+
"backgroundColor",
|
|
994
|
+
"color",
|
|
995
|
+
"active",
|
|
996
|
+
"isCursorPointer"
|
|
997
|
+
])) : d("", !0),
|
|
998
|
+
On.value ? (y(), f("div", {
|
|
999
|
+
key: 2,
|
|
1000
|
+
ref_key: "noTitle",
|
|
1001
|
+
ref: Zt,
|
|
1002
|
+
class: "vue-data-ui-no-title-space",
|
|
1003
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1004
|
+
}, null, 512)) : d("", !0),
|
|
1005
|
+
R.value.style.chart.title.text ? (y(), f("div", {
|
|
1006
|
+
key: 3,
|
|
1007
|
+
ref_key: "chartTitle",
|
|
1008
|
+
ref: Gt,
|
|
1009
|
+
class: "vue-ui-xy-title",
|
|
1010
|
+
style: v(`font-family:${R.value.style.fontFamily}`)
|
|
1011
|
+
}, [(y(), u(we, {
|
|
1012
|
+
key: `title_${Kt.value}`,
|
|
1013
|
+
config: {
|
|
1014
|
+
title: {
|
|
1015
|
+
cy: "history-plot-div-title",
|
|
1016
|
+
...R.value.style.chart.title
|
|
1017
|
+
},
|
|
1018
|
+
subtitle: {
|
|
1019
|
+
cy: "history-plot-div-subtitle",
|
|
1020
|
+
...R.value.style.chart.title.subtitle
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}, null, 8, ["config"]))], 4)) : d("", !0),
|
|
1024
|
+
p("div", { id: `legend-top-${A.value}` }, null, 8, Xe),
|
|
1025
|
+
R.value.userOptions.show && pn.value && (w(Cn) || w(xn)) ? (y(), u(w(zt), {
|
|
1026
|
+
ref_key: "userOptionsRef",
|
|
1027
|
+
ref: nn,
|
|
1028
|
+
key: `user_option_${Xt.value}`,
|
|
1029
|
+
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1030
|
+
color: R.value.style.chart.color,
|
|
1031
|
+
isPrinting: w(wn),
|
|
1032
|
+
isImaging: w(Tn),
|
|
1033
|
+
uid: A.value,
|
|
1034
|
+
hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
|
|
1035
|
+
hasPdf: R.value.userOptions.buttons.pdf,
|
|
1036
|
+
hasImg: R.value.userOptions.buttons.img,
|
|
1037
|
+
hasSvg: R.value.userOptions.buttons.svg,
|
|
1038
|
+
hasXls: R.value.userOptions.buttons.csv,
|
|
1039
|
+
hasTable: R.value.userOptions.buttons.table,
|
|
1040
|
+
hasLabel: !1,
|
|
1041
|
+
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
1042
|
+
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
1043
|
+
isFullscreen: M.value,
|
|
1044
|
+
chartElement: D.value,
|
|
1045
|
+
position: R.value.userOptions.position,
|
|
1046
|
+
isTooltip: H.value.showTooltip,
|
|
1047
|
+
titles: { ...R.value.userOptions.buttonTitles },
|
|
1048
|
+
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
1049
|
+
isAnnotation: Z.value,
|
|
1050
|
+
callbacks: R.value.userOptions.callbacks,
|
|
1051
|
+
printScale: R.value.userOptions.print.scale,
|
|
1052
|
+
tableDialog: R.value.table.useDialog,
|
|
1053
|
+
isCursorPointer: z.value,
|
|
1054
|
+
onToggleFullscreen: Xn,
|
|
1055
|
+
onGeneratePdf: w(En),
|
|
1056
|
+
onGenerateCsv: tr,
|
|
1057
|
+
onGenerateImage: pr,
|
|
1058
|
+
onGenerateSvg: fr,
|
|
1059
|
+
onToggleTable: rr,
|
|
1060
|
+
onToggleTooltip: ir,
|
|
1061
|
+
onToggleAnnotator: nr,
|
|
1062
|
+
onCopyAlt: mr,
|
|
1063
|
+
style: v({ visibility: w(Cn) ? w(xn) ? "visible" : "hidden" : "visible" })
|
|
1064
|
+
}, Fe({ _: 2 }, [
|
|
1065
|
+
e.$slots.menuIcon ? {
|
|
1066
|
+
name: "menuIcon",
|
|
1067
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
|
|
1068
|
+
isOpen: t,
|
|
1069
|
+
color: n
|
|
1070
|
+
})), void 0, !0)]),
|
|
1071
|
+
key: "0"
|
|
1072
|
+
} : void 0,
|
|
1073
|
+
e.$slots.optionTooltip ? {
|
|
1074
|
+
name: "optionTooltip",
|
|
1075
|
+
fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1076
|
+
key: "1"
|
|
1077
|
+
} : void 0,
|
|
1078
|
+
e.$slots.optionPdf ? {
|
|
1079
|
+
name: "optionPdf",
|
|
1080
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1081
|
+
key: "2"
|
|
1082
|
+
} : void 0,
|
|
1083
|
+
e.$slots.optionCsv ? {
|
|
1084
|
+
name: "optionCsv",
|
|
1085
|
+
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1086
|
+
key: "3"
|
|
1087
|
+
} : void 0,
|
|
1088
|
+
e.$slots.optionImg ? {
|
|
1089
|
+
name: "optionImg",
|
|
1090
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1091
|
+
key: "4"
|
|
1092
|
+
} : void 0,
|
|
1093
|
+
e.$slots.optionSvg ? {
|
|
1094
|
+
name: "optionSvg",
|
|
1095
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1096
|
+
key: "5"
|
|
1097
|
+
} : void 0,
|
|
1098
|
+
e.$slots.optionTable ? {
|
|
1099
|
+
name: "optionTable",
|
|
1100
|
+
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1101
|
+
key: "6"
|
|
1102
|
+
} : void 0,
|
|
1103
|
+
e.$slots.optionFullscreen ? {
|
|
1104
|
+
name: "optionFullscreen",
|
|
1105
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
|
|
1106
|
+
toggleFullscreen: t,
|
|
1107
|
+
isFullscreen: n
|
|
1108
|
+
})), void 0, !0)]),
|
|
1109
|
+
key: "7"
|
|
1110
|
+
} : void 0,
|
|
1111
|
+
e.$slots.optionAnnotator ? {
|
|
1112
|
+
name: "optionAnnotator",
|
|
1113
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
|
|
1114
|
+
toggleAnnotator: t,
|
|
1115
|
+
isAnnotator: n
|
|
1116
|
+
})), void 0, !0)]),
|
|
1117
|
+
key: "8"
|
|
1118
|
+
} : void 0,
|
|
1119
|
+
e.$slots.optionAltCopy ? {
|
|
1120
|
+
name: "optionAltCopy",
|
|
1121
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
1122
|
+
key: "9"
|
|
1123
|
+
} : void 0
|
|
1124
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
1125
|
+
p("div", Ze, [(y(), f("svg", {
|
|
1126
|
+
ref_key: "svgRef",
|
|
1127
|
+
ref: V,
|
|
1128
|
+
xmlns: w(ue),
|
|
1129
|
+
viewBox: `0 0 ${U.value.width < 0 ? .1 : U.value.width} ${U.value.height < 0 ? .1 : U.value.height}`,
|
|
1130
|
+
style: v(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
|
|
1131
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1132
|
+
tabindex: "0",
|
|
1133
|
+
onFocus: _r,
|
|
1134
|
+
onBlur: vr,
|
|
1135
|
+
onKeydown: xr
|
|
1136
|
+
}, [
|
|
1137
|
+
Le(w(Bt)),
|
|
1138
|
+
e.$slots["chart-background"] ? (y(), f("foreignObject", {
|
|
1139
|
+
key: 0,
|
|
1140
|
+
x: W.value.left,
|
|
1141
|
+
y: W.value.top,
|
|
1142
|
+
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
1143
|
+
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
1144
|
+
style: { pointerEvents: "none" }
|
|
1145
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : d("", !0),
|
|
1146
|
+
R.value.style.chart.plots.gradient.show ? (y(), f("defs", et, [(y(!0), f(c, null, x(J.value, (e, t) => (y(), f("radialGradient", {
|
|
1147
|
+
id: `gradient_${t}_${A.value}`,
|
|
1148
|
+
fy: "30%"
|
|
1149
|
+
}, [
|
|
1150
|
+
p("stop", {
|
|
1151
|
+
offset: "10%",
|
|
1152
|
+
"stop-color": w(pe)(e.color, R.value.style.chart.plots.gradient.intensity / 100)
|
|
1153
|
+
}, null, 8, nt),
|
|
1154
|
+
p("stop", {
|
|
1155
|
+
offset: "90%",
|
|
1156
|
+
"stop-color": w(ie)(e.color, .1)
|
|
1157
|
+
}, null, 8, rt),
|
|
1158
|
+
p("stop", {
|
|
1159
|
+
offset: "100%",
|
|
1160
|
+
"stop-color": e.color
|
|
1161
|
+
}, null, 8, it)
|
|
1162
|
+
], 8, tt))), 256))])) : d("", !0),
|
|
1163
|
+
R.value.style.chart.grid.verticalLines.show ? (y(), f("g", at, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("line", {
|
|
1164
|
+
x1: e.x,
|
|
1165
|
+
x2: e.x,
|
|
1166
|
+
y1: e.y1,
|
|
1167
|
+
y2: e.y2,
|
|
1168
|
+
stroke: R.value.style.chart.grid.verticalLines.stroke,
|
|
1169
|
+
"stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1170
|
+
"stroke-linecap": "round"
|
|
1171
|
+
}, null, 8, ot))), 256))])) : d("", !0),
|
|
1172
|
+
R.value.style.chart.axes.y.labels.show ? (y(), f("g", st, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("line", {
|
|
1173
|
+
stroke: R.value.style.chart.grid.verticalLines.stroke,
|
|
1174
|
+
"stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1175
|
+
"stroke-linecap": "round",
|
|
1176
|
+
x1: W.value.left - 5,
|
|
1177
|
+
x2: W.value.left,
|
|
1178
|
+
y1: e.y,
|
|
1179
|
+
y2: e.y
|
|
1180
|
+
}, null, 8, ct))), 256))])) : d("", !0),
|
|
1181
|
+
R.value.style.chart.axes.y.labels.show ? (y(), f("g", {
|
|
1182
|
+
key: 4,
|
|
1183
|
+
ref_key: "yAxisScales",
|
|
1184
|
+
ref: ln
|
|
1185
|
+
}, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("text", {
|
|
1186
|
+
x: W.value.left + R.value.style.chart.axes.y.labels.offsetX - 4 - R.value.style.chart.plots.radius,
|
|
1187
|
+
y: e.y + G.value.yAxisLabels / 3,
|
|
1188
|
+
fill: R.value.style.chart.axes.y.labels.color,
|
|
1189
|
+
"font-size": G.value.yAxisLabels,
|
|
1190
|
+
"text-anchor": "end"
|
|
1191
|
+
}, C(w(s)(R.value.style.chart.axes.y.labels.formatter, e.value, w(n)({
|
|
1192
|
+
p: R.value.style.chart.axes.y.labels.prefix,
|
|
1193
|
+
v: e.value,
|
|
1194
|
+
s: R.value.style.chart.axes.y.labels.suffix,
|
|
1195
|
+
r: R.value.style.chart.axes.y.labels.rounding
|
|
1196
|
+
}))), 9, lt))), 256))], 512)) : d("", !0),
|
|
1197
|
+
R.value.style.chart.axes.y.name.text ? (y(), f("text", {
|
|
1198
|
+
key: 5,
|
|
1199
|
+
ref_key: "yAxisLabel",
|
|
1200
|
+
ref: sn,
|
|
1201
|
+
transform: `translate(${G.value.yAxisName}, ${U.value.height / 2 + R.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
1202
|
+
"font-size": G.value.yAxisName,
|
|
1203
|
+
fill: R.value.style.chart.axes.y.name.color,
|
|
1204
|
+
"font-weight": R.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
1205
|
+
"text-anchor": "middle"
|
|
1206
|
+
}, C(R.value.style.chart.axes.y.name.text), 9, ut)) : d("", !0),
|
|
1207
|
+
R.value.style.chart.grid.horizontalLines.show ? (y(), f("g", dt, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("line", {
|
|
1208
|
+
x1: e.x1,
|
|
1209
|
+
x2: e.x2,
|
|
1210
|
+
y1: e.y,
|
|
1211
|
+
y2: e.y,
|
|
1212
|
+
stroke: R.value.style.chart.grid.horizontalLines.stroke,
|
|
1213
|
+
"stroke-width": R.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
1214
|
+
"stroke-linecap": "round"
|
|
1215
|
+
}, null, 8, ft))), 256))])) : d("", !0),
|
|
1216
|
+
R.value.style.chart.axes.x.labels.show ? (y(), f("g", pt, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("line", {
|
|
1217
|
+
stroke: R.value.style.chart.grid.verticalLines.stroke,
|
|
1218
|
+
"stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1219
|
+
"stroke-linecap": "round",
|
|
1220
|
+
x1: e.x,
|
|
1221
|
+
x2: e.x,
|
|
1222
|
+
y1: W.value.bottom,
|
|
1223
|
+
y2: W.value.bottom + 5
|
|
1224
|
+
}, null, 8, mt))), 256))])) : d("", !0),
|
|
1225
|
+
R.value.style.chart.axes.x.labels.show ? (y(), f("g", {
|
|
1226
|
+
key: 8,
|
|
1227
|
+
ref_key: "xAxisScales",
|
|
1228
|
+
ref: cn
|
|
1229
|
+
}, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("text", {
|
|
1230
|
+
class: "vue-ui-history-plot-x-axis-scale",
|
|
1231
|
+
transform: `translate(${e.x}, ${W.value.bottom + R.value.style.chart.axes.x.labels.offsetY + G.value.xAxisLabels + R.value.style.chart.plots.radius}), rotate(${R.value.style.chart.axes.x.labels.rotation})`,
|
|
1232
|
+
fill: R.value.style.chart.axes.x.labels.color,
|
|
1233
|
+
"font-size": G.value.xAxisLabels,
|
|
1234
|
+
"text-anchor": R.value.style.chart.axes.x.labels.rotation > 0 ? "start" : R.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
1235
|
+
}, C(w(s)(R.value.style.chart.axes.x.labels.formatter, e.value, w(n)({
|
|
1236
|
+
p: R.value.style.chart.axes.x.labels.prefix,
|
|
1237
|
+
v: e.value,
|
|
1238
|
+
s: R.value.style.chart.axes.x.labels.suffix,
|
|
1239
|
+
r: R.value.style.chart.axes.x.labels.rounding
|
|
1240
|
+
}))), 9, ht))), 256))], 512)) : d("", !0),
|
|
1241
|
+
R.value.style.chart.axes.x.name.text ? (y(), f("text", {
|
|
1242
|
+
key: 9,
|
|
1243
|
+
ref_key: "xAxisLabel",
|
|
1244
|
+
ref: on,
|
|
1245
|
+
x: U.value.width / 2 + R.value.style.chart.axes.x.name.offsetX,
|
|
1246
|
+
y: U.value.height,
|
|
1247
|
+
"font-size": G.value.xAxisName,
|
|
1248
|
+
fill: R.value.style.chart.axes.x.name.color,
|
|
1249
|
+
"font-weight": R.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
1250
|
+
"text-anchor": "middle"
|
|
1251
|
+
}, C(R.value.style.chart.axes.x.name.text), 9, gt)) : d("", !0),
|
|
1252
|
+
R.value.style.chart.grid.xAxis.show ? (y(), f("line", {
|
|
1253
|
+
key: 10,
|
|
1254
|
+
x1: W.value.left,
|
|
1255
|
+
x2: W.value.left + W.value.width,
|
|
1256
|
+
y1: W.value.bottom,
|
|
1257
|
+
y2: W.value.bottom,
|
|
1258
|
+
stroke: R.value.style.chart.grid.xAxis.stroke,
|
|
1259
|
+
"stroke-width": R.value.style.chart.grid.xAxis.strokeWidth,
|
|
1260
|
+
"stroke-linecap": "round"
|
|
1261
|
+
}, null, 8, _t)) : d("", !0),
|
|
1262
|
+
R.value.style.chart.grid.yAxis.show ? (y(), f("line", {
|
|
1263
|
+
key: 11,
|
|
1264
|
+
x1: W.value.left,
|
|
1265
|
+
x2: W.value.left,
|
|
1266
|
+
y1: W.value.top,
|
|
1267
|
+
y2: W.value.bottom,
|
|
1268
|
+
stroke: R.value.style.chart.grid.yAxis.stroke,
|
|
1269
|
+
"stroke-width": R.value.style.chart.grid.yAxis.strokeWidth,
|
|
1270
|
+
"stroke-linecap": "round"
|
|
1271
|
+
}, null, 8, vt)) : d("", !0),
|
|
1272
|
+
(y(!0), f(c, null, x(J.value, (e, n) => (y(), f("g", null, [
|
|
1273
|
+
R.value.style.chart.paths.show ? (y(), f("g", {
|
|
1274
|
+
key: 0,
|
|
1275
|
+
style: v({ opacity: N.value === null ? 1 : .3 })
|
|
1276
|
+
}, [p("path", {
|
|
1277
|
+
d: e.path,
|
|
1278
|
+
stroke: R.value.style.chart.backgroundColor,
|
|
1279
|
+
"stroke-width": R.value.style.chart.paths.strokeWidth + 4,
|
|
1280
|
+
fill: "none",
|
|
1281
|
+
"stroke-linecap": "round",
|
|
1282
|
+
"stroke-linejoin": "round",
|
|
1283
|
+
class: g({ animated: R.value.useCssAnimation && !w(B) })
|
|
1284
|
+
}, null, 10, yt), p("path", {
|
|
1285
|
+
d: e.path,
|
|
1286
|
+
stroke: R.value.style.chart.paths.useSerieColor ? e.color : R.value.style.chart.paths.stroke,
|
|
1287
|
+
"stroke-width": R.value.style.chart.paths.strokeWidth,
|
|
1288
|
+
fill: "none",
|
|
1289
|
+
"stroke-linecap": "round",
|
|
1290
|
+
"stroke-linejoin": "round",
|
|
1291
|
+
class: g({ animated: R.value.useCssAnimation && !w(B) })
|
|
1292
|
+
}, null, 10, bt)], 4)) : d("", !0),
|
|
1293
|
+
(y(!0), f(c, null, x(e.plots, (e) => (y(), f("circle", {
|
|
1294
|
+
cx: e.x,
|
|
1295
|
+
cy: e.y,
|
|
1296
|
+
fill: R.value.style.chart.backgroundColor,
|
|
1297
|
+
r: G.value.plots,
|
|
1298
|
+
stroke: "none"
|
|
1299
|
+
}, null, 8, xt))), 256)),
|
|
1300
|
+
(y(!0), f(c, null, x(e.plots, (e) => (y(), f("circle", {
|
|
1301
|
+
cx: e.x,
|
|
1302
|
+
cy: e.y,
|
|
1303
|
+
fill: R.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${A.value})` : e.color,
|
|
1304
|
+
r: G.value.plots,
|
|
1305
|
+
stroke: R.value.style.chart.plots.stroke,
|
|
1306
|
+
"stroke-width": R.value.style.chart.plots.strokeWidth,
|
|
1307
|
+
class: g({ animated: R.value.useCssAnimation && !w(B) }),
|
|
1308
|
+
style: v({
|
|
1309
|
+
opacity: N.value === null || N.value.id === e.id ? 1 : .3,
|
|
1310
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1311
|
+
})
|
|
1312
|
+
}, null, 14, St))), 256)),
|
|
1313
|
+
R.value.style.chart.plots.labels.show ? (y(), f("g", Ct, [(y(!0), f(c, null, x(e.plots, (e) => (y(), f("g", null, [String(e.label).includes("\n") ? (y(), f("text", {
|
|
1314
|
+
key: 1,
|
|
1315
|
+
x: e.x + R.value.style.chart.plots.labels.offsetX,
|
|
1316
|
+
y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels,
|
|
1317
|
+
"font-size": G.value.labels,
|
|
1318
|
+
fill: R.value.style.chart.plots.labels.color,
|
|
1319
|
+
"font-weight": R.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1320
|
+
"text-anchor": "middle",
|
|
1321
|
+
class: g({ animated: R.value.useCssAnimation && !w(B) }),
|
|
1322
|
+
style: v({
|
|
1323
|
+
opacity: N.value === null || N.value.id === e.id ? 1 : .3,
|
|
1324
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1325
|
+
}),
|
|
1326
|
+
innerHTML: w(t)({
|
|
1327
|
+
content: String(e.label),
|
|
1328
|
+
fontSize: G.value.labels,
|
|
1329
|
+
fill: R.value.style.chart.plots.labels.color,
|
|
1330
|
+
x: e.x + R.value.style.chart.plots.labels.offsetX,
|
|
1331
|
+
y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels
|
|
1332
|
+
})
|
|
1333
|
+
}, null, 14, Tt)) : (y(), f("text", {
|
|
1334
|
+
key: 0,
|
|
1335
|
+
x: e.x + R.value.style.chart.plots.labels.offsetX,
|
|
1336
|
+
y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels,
|
|
1337
|
+
"font-size": G.value.labels,
|
|
1338
|
+
fill: R.value.style.chart.plots.labels.color,
|
|
1339
|
+
"font-weight": R.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1340
|
+
"text-anchor": "middle",
|
|
1341
|
+
class: g({ animated: R.value.useCssAnimation && !w(B) }),
|
|
1342
|
+
style: v({
|
|
1343
|
+
opacity: N.value === null || N.value.id === e.id ? 1 : .3,
|
|
1344
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1345
|
+
})
|
|
1346
|
+
}, C(e.label), 15, wt))]))), 256))])) : d("", !0),
|
|
1347
|
+
R.value.style.chart.plots.indexLabels.show ? (y(), f("g", Et, [(y(!0), f(c, null, x(e.plots, (t, n) => (y(), f("text", {
|
|
1348
|
+
x: t.x + R.value.style.chart.plots.indexLabels.offsetX,
|
|
1349
|
+
y: t.y + R.value.style.chart.plots.indexLabels.offsetY + G.value.indexLabels / 3,
|
|
1350
|
+
"font-size": G.value.indexLabels,
|
|
1351
|
+
"font-weight": R.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1352
|
+
fill: R.value.style.chart.plots.indexLabels.adaptColorToBackground ? w(le)(e.color) : R.value.style.chart.plots.indexLabels.color,
|
|
1353
|
+
"text-anchor": "middle",
|
|
1354
|
+
class: g({ animated: R.value.useCssAnimation && !w(B) }),
|
|
1355
|
+
style: v({
|
|
1356
|
+
opacity: N.value === null || N.value.id === t.id ? 1 : .3,
|
|
1357
|
+
transition: "opacity 0.2s ease-in-out"
|
|
1358
|
+
})
|
|
1359
|
+
}, C(R.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Dt))), 256))])) : d("", !0)
|
|
1360
|
+
]))), 256)),
|
|
1361
|
+
(y(!0), f(c, null, x(J.value, (e) => (y(), f("g", null, [(y(!0), f(c, null, x(e.plots, (t, n) => (y(), f("circle", {
|
|
1362
|
+
cx: t.x,
|
|
1363
|
+
cy: t.y,
|
|
1364
|
+
fill: "transparent",
|
|
1365
|
+
r: G.value.plots,
|
|
1366
|
+
stroke: "none",
|
|
1367
|
+
onMouseenter: (r) => er({
|
|
1368
|
+
datapoint: t,
|
|
1369
|
+
plotIndex: n,
|
|
1370
|
+
seriesIndex: e.seriesIndex,
|
|
1371
|
+
triggerMode: "pointer"
|
|
1372
|
+
}),
|
|
1373
|
+
onMouseleave: (r) => Qn({
|
|
1374
|
+
datapoint: t,
|
|
1375
|
+
plotIndex: n,
|
|
1376
|
+
seriesIndex: e.seriesIndex
|
|
1377
|
+
}),
|
|
1378
|
+
onClick: (r) => Jn({
|
|
1379
|
+
datapoint: t,
|
|
1380
|
+
plotIndex: n,
|
|
1381
|
+
seriesIndex: e.seriesIndex
|
|
1382
|
+
})
|
|
1383
|
+
}, null, 40, Ot))), 256))]))), 256)),
|
|
1384
|
+
S(e.$slots, "svg", { svg: {
|
|
1385
|
+
...U.value,
|
|
1386
|
+
drawingArea: W.value,
|
|
1387
|
+
isPrintingImg: w(wn) || w(Tn) || rn.value,
|
|
1388
|
+
isPrintingSvg: an.value
|
|
1389
|
+
} }, void 0, !0)
|
|
1390
|
+
], 44, Qe)), e.$slots.hint ? (y(), f("div", kt, [S(e.$slots, "hint", _(h({
|
|
1391
|
+
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1392
|
+
isVisible: fn.value
|
|
1393
|
+
})), void 0, !0)])) : d("", !0)]),
|
|
1394
|
+
e.$slots.watermark ? (y(), f("div", At, [S(e.$slots, "watermark", _(h({ isPrinting: w(wn) || w(Tn) || rn.value || an.value })), void 0, !0)])) : d("", !0),
|
|
1395
|
+
p("div", { id: `legend-bottom-${A.value}` }, null, 8, jt),
|
|
1396
|
+
tn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Pe, {
|
|
1397
|
+
key: 6,
|
|
1398
|
+
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1399
|
+
}, [p("div", {
|
|
1400
|
+
ref_key: "chartLegend",
|
|
1401
|
+
ref: qt
|
|
1402
|
+
}, [S(e.$slots, "legend", { legend: Y.value }, () => [R.value.style.chart.legend.show && pn.value ? (y(), u(Me, {
|
|
1403
|
+
key: `legend_${Jt.value}`,
|
|
1404
|
+
legendSet: Y.value,
|
|
1405
|
+
config: qn.value,
|
|
1406
|
+
isCursorPointer: z.value,
|
|
1407
|
+
onClickMarker: r[0] ||= ({ legend: e }) => {
|
|
1408
|
+
Un(e.seriesIndex), Yn(e);
|
|
1409
|
+
}
|
|
1410
|
+
}, {
|
|
1411
|
+
item: T(({ legend: e, index: t }) => [p("div", {
|
|
1412
|
+
onClick: (t) => {
|
|
1413
|
+
e.segregate(), Yn(e);
|
|
1414
|
+
},
|
|
1415
|
+
style: v(`opacity:${j.value.includes(e.seriesIndex) ? .5 : 1}`)
|
|
1416
|
+
}, C(e.name), 13, Mt)]),
|
|
1417
|
+
legendToggle: T(() => [Y.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !w(B) ? (y(), u(Oe, {
|
|
1418
|
+
key: 0,
|
|
1419
|
+
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1420
|
+
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1421
|
+
fontSize: R.value.style.chart.legend.fontSize,
|
|
1422
|
+
checked: j.value.length > 0,
|
|
1423
|
+
isCursorPointer: z.value,
|
|
1424
|
+
onToggle: Hn
|
|
1425
|
+
}, null, 8, [
|
|
1426
|
+
"backgroundColor",
|
|
1427
|
+
"color",
|
|
1428
|
+
"fontSize",
|
|
1429
|
+
"checked",
|
|
1430
|
+
"isCursorPointer"
|
|
1431
|
+
])) : d("", !0)]),
|
|
1432
|
+
_: 1
|
|
1433
|
+
}, 8, [
|
|
1434
|
+
"legendSet",
|
|
1435
|
+
"config",
|
|
1436
|
+
"isCursorPointer"
|
|
1437
|
+
])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
1438
|
+
e.$slots.source ? (y(), f("div", {
|
|
1439
|
+
key: 7,
|
|
1440
|
+
ref_key: "source",
|
|
1441
|
+
ref: en,
|
|
1442
|
+
dir: "auto"
|
|
1443
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
1444
|
+
Le(w(Pt), {
|
|
1445
|
+
teleportTo: R.value.style.chart.tooltip.teleportTo,
|
|
1446
|
+
show: H.value.showTooltip && Qt.value,
|
|
1447
|
+
backgroundColor: R.value.style.chart.tooltip.backgroundColor,
|
|
1448
|
+
color: R.value.style.chart.tooltip.color,
|
|
1449
|
+
fontSize: R.value.style.chart.tooltip.fontSize,
|
|
1450
|
+
borderRadius: R.value.style.chart.tooltip.borderRadius,
|
|
1451
|
+
borderColor: R.value.style.chart.tooltip.borderColor,
|
|
1452
|
+
borderWidth: R.value.style.chart.tooltip.borderWidth,
|
|
1453
|
+
backgroundOpacity: R.value.style.chart.tooltip.backgroundOpacity,
|
|
1454
|
+
position: R.value.style.chart.tooltip.position,
|
|
1455
|
+
offsetY: R.value.style.chart.tooltip.offsetY,
|
|
1456
|
+
parent: D.value,
|
|
1457
|
+
content: $t.value,
|
|
1458
|
+
isCustom: P.value,
|
|
1459
|
+
isFullscreen: M.value,
|
|
1460
|
+
smooth: R.value.style.chart.tooltip.smooth,
|
|
1461
|
+
backdropFilter: R.value.style.chart.tooltip.backdropFilter,
|
|
1462
|
+
smoothForce: R.value.style.chart.tooltip.smoothForce,
|
|
1463
|
+
smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1464
|
+
isA11yMode: dn.value === "keyboard",
|
|
1465
|
+
a11yPosition: un.value
|
|
1466
|
+
}, {
|
|
1467
|
+
"tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...Zn.value })), void 0, !0)]),
|
|
1468
|
+
tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...Zn.value })), void 0, !0)]),
|
|
1469
|
+
"tooltip-after": T(() => [S(e.$slots, "tooltip-after", _(h({ ...Zn.value })), void 0, !0)]),
|
|
1470
|
+
_: 3
|
|
1471
|
+
}, 8, [
|
|
1472
|
+
"teleportTo",
|
|
1473
|
+
"show",
|
|
1474
|
+
"backgroundColor",
|
|
1475
|
+
"color",
|
|
1476
|
+
"fontSize",
|
|
1477
|
+
"borderRadius",
|
|
1478
|
+
"borderColor",
|
|
1479
|
+
"borderWidth",
|
|
1480
|
+
"backgroundOpacity",
|
|
1481
|
+
"position",
|
|
1482
|
+
"offsetY",
|
|
1483
|
+
"parent",
|
|
1484
|
+
"content",
|
|
1485
|
+
"isCustom",
|
|
1486
|
+
"isFullscreen",
|
|
1487
|
+
"smooth",
|
|
1488
|
+
"backdropFilter",
|
|
1489
|
+
"smoothForce",
|
|
1490
|
+
"smoothSnapThreshold",
|
|
1491
|
+
"isA11yMode",
|
|
1492
|
+
"a11yPosition"
|
|
1493
|
+
]),
|
|
1494
|
+
pn.value && R.value.userOptions.buttons.table ? (y(), u(He(Q.value.component), Re({ key: 8 }, Q.value.props, {
|
|
1495
|
+
ref_key: "tableUnit",
|
|
1496
|
+
ref: F,
|
|
1497
|
+
onClose: sr
|
|
1498
|
+
}), Fe({
|
|
1499
|
+
content: T(() => [(y(), u(w(Lt), {
|
|
1500
|
+
key: `table_${Yt.value}`,
|
|
1501
|
+
colNames: X.value.colNames,
|
|
1502
|
+
head: X.value.head,
|
|
1503
|
+
body: X.value.body,
|
|
1504
|
+
config: X.value.config,
|
|
1505
|
+
title: R.value.table.useDialog ? "" : Q.value.title,
|
|
1506
|
+
withCloseButton: !R.value.table.useDialog,
|
|
1507
|
+
isCursorPointer: z.value,
|
|
1508
|
+
onClose: sr
|
|
1509
|
+
}, {
|
|
1510
|
+
th: T(({ th: e }) => [p("div", {
|
|
1511
|
+
innerHTML: e,
|
|
1512
|
+
style: {
|
|
1513
|
+
display: "flex",
|
|
1514
|
+
"align-items": "center"
|
|
1515
|
+
}
|
|
1516
|
+
}, null, 8, Nt)]),
|
|
1517
|
+
td: T(({ td: e }) => [Ie(C(e.name || e), 1)]),
|
|
1518
|
+
_: 1
|
|
1519
|
+
}, 8, [
|
|
1520
|
+
"colNames",
|
|
1521
|
+
"head",
|
|
1522
|
+
"body",
|
|
1523
|
+
"config",
|
|
1524
|
+
"title",
|
|
1525
|
+
"withCloseButton",
|
|
1526
|
+
"isCursorPointer"
|
|
1527
|
+
]))]),
|
|
1528
|
+
_: 2
|
|
1529
|
+
}, [R.value.table.useDialog ? {
|
|
1530
|
+
name: "title",
|
|
1531
|
+
fn: T(() => [Ie(C(Q.value.title), 1)]),
|
|
1532
|
+
key: "0"
|
|
1533
|
+
} : void 0, R.value.table.useDialog ? {
|
|
1534
|
+
name: "actions",
|
|
1535
|
+
fn: T(() => [p("button", {
|
|
1536
|
+
tabindex: "0",
|
|
1537
|
+
class: "vue-ui-user-options-button",
|
|
1538
|
+
onClick: r[1] ||= (e) => tr(R.value.userOptions.callbacks.csv),
|
|
1539
|
+
style: v({ cursor: z.value ? "pointer" : "default" })
|
|
1540
|
+
}, [Le(w(Ft), {
|
|
1541
|
+
name: "fileCsv",
|
|
1542
|
+
stroke: Q.value.props.color
|
|
1543
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1544
|
+
key: "1"
|
|
1545
|
+
} : void 0]), 1040)) : d("", !0),
|
|
1546
|
+
S(e.$slots, "skeleton", {}, () => [w(B) ? (y(), u(ve, { key: 0 })) : d("", !0)], !0)
|
|
1547
|
+
], 46, Je));
|
|
1548
|
+
}
|
|
1549
|
+
}, [["__scopeId", "data-v-ce353bf9"]]);
|
|
1550
|
+
//#endregion
|
|
1551
|
+
export { qe as n, Pt as t };
|