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,700 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, St as r, X as i, h as a, i as o, ot as ee, t as te, y as ne, yt as re, zt as ie } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as ae } from "./useConfig-BV0kTCnO.js";
|
|
4
|
+
import { t as oe } from "./usePrinter-X0yWOynH.js";
|
|
5
|
+
import { n as se, t as ce } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as le } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as s } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
+
import { t as ue } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as de } from "./img-BjOr008R.js";
|
|
10
|
+
import { n as fe } from "./Title-__gWq2g6.js";
|
|
11
|
+
import { t as pe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
12
|
+
import { c as me } from "./canvas-lib-DTaADQOK.js";
|
|
13
|
+
import { t as he } from "./useResponsive-CrAInupd.js";
|
|
14
|
+
import { t as ge } from "./useUserOptionState-CjPJPTg2.js";
|
|
15
|
+
import { t as _e } from "./useChartAccessibility-Do37qcw2.js";
|
|
16
|
+
import { t as ve } from "./Legend-Gg5Q4Clb.js";
|
|
17
|
+
import { t as ye } from "./vue_ui_bullet-CE5sFT7u.js";
|
|
18
|
+
import { Fragment as c, Teleport as be, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as xe, createVNode as Se, defineAsyncComponent as m, guardReactiveProps as h, nextTick as Ce, normalizeClass as we, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Te, onMounted as Ee, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, toRefs as De, unref as C, watch as Oe, withCtx as w } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-bullet.vue
|
|
20
|
+
var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
21
|
+
key: 1,
|
|
22
|
+
ref: "noTitle",
|
|
23
|
+
class: "vue-data-ui-no-title-space",
|
|
24
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
25
|
+
}, Me = ["id"], Ne = [
|
|
26
|
+
"xmlns",
|
|
27
|
+
"viewBox",
|
|
28
|
+
"aria-labelledby",
|
|
29
|
+
"aria-describedby"
|
|
30
|
+
], Pe = ["id"], Fe = ["id"], Ie = ["width", "height"], Le = { key: 1 }, Re = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"height",
|
|
34
|
+
"width",
|
|
35
|
+
"fill",
|
|
36
|
+
"stroke"
|
|
37
|
+
], ze = [
|
|
38
|
+
"x",
|
|
39
|
+
"y",
|
|
40
|
+
"height",
|
|
41
|
+
"width",
|
|
42
|
+
"rx",
|
|
43
|
+
"fill",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width"
|
|
46
|
+
], Be = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"height",
|
|
50
|
+
"width",
|
|
51
|
+
"fill",
|
|
52
|
+
"stroke",
|
|
53
|
+
"stroke-width"
|
|
54
|
+
], Ve = [
|
|
55
|
+
"x",
|
|
56
|
+
"y",
|
|
57
|
+
"font-size",
|
|
58
|
+
"font-weight",
|
|
59
|
+
"fill"
|
|
60
|
+
], He = [
|
|
61
|
+
"x",
|
|
62
|
+
"y",
|
|
63
|
+
"height",
|
|
64
|
+
"width",
|
|
65
|
+
"rx",
|
|
66
|
+
"fill",
|
|
67
|
+
"stroke",
|
|
68
|
+
"stroke-width"
|
|
69
|
+
], Ue = { key: 3 }, We = [
|
|
70
|
+
"x",
|
|
71
|
+
"y",
|
|
72
|
+
"fill",
|
|
73
|
+
"font-size",
|
|
74
|
+
"font-weight"
|
|
75
|
+
], Ge = { key: 4 }, Ke = [
|
|
76
|
+
"x1",
|
|
77
|
+
"x2",
|
|
78
|
+
"y1",
|
|
79
|
+
"y2",
|
|
80
|
+
"stroke"
|
|
81
|
+
], qe = {
|
|
82
|
+
key: 4,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, Je = ["id"], Ye = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "vue-ui-bullet-legend-item",
|
|
87
|
+
dir: "auto"
|
|
88
|
+
}, Xe = { style: { "margin-right": "2px" } }, T = /* @__PURE__ */ pe({
|
|
89
|
+
__name: "vue-ui-bullet",
|
|
90
|
+
props: {
|
|
91
|
+
config: {
|
|
92
|
+
type: Object,
|
|
93
|
+
default() {
|
|
94
|
+
return {};
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
dataset: {
|
|
98
|
+
type: Object,
|
|
99
|
+
default() {
|
|
100
|
+
return {};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
emits: ["copyAlt"],
|
|
105
|
+
setup(e, { expose: pe, emit: ke }) {
|
|
106
|
+
let T = m(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), Ze = m(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Qe = m(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), { vue_ui_bullet: $e } = ae(), { isThemeValid: et, warnInvalidTheme: tt } = ue(), E = e, nt = ke, D = y(null), rt = y(null), it = y(0), at = y(null), ot = y(null), st = y(0), O = y(null), k = y(null), ct = y(!1), A = y(!1), j = y(!1), M = l({
|
|
107
|
+
get: () => R.value.hasOwnProperty("value"),
|
|
108
|
+
set: (e) => e
|
|
109
|
+
}), N = l(() => R.value.segments ? Array.isArray(R.value.segments) ? R.value.segments.length ? !0 : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), M.value = !1, !1) : (console.warn("VueUiBullet: dataset segments must be an array of objects with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n] \n "), M.value = !1, !1) : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), M.value = !1, !1)), lt = l(() => !!I.value.debug), ut = l(() => {
|
|
110
|
+
let { top: e, right: t, bottom: n, left: r } = I.value.style.chart.padding;
|
|
111
|
+
return {
|
|
112
|
+
top: e,
|
|
113
|
+
right: t,
|
|
114
|
+
bottom: n,
|
|
115
|
+
left: r
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
function dt() {
|
|
119
|
+
if (r(R.value) ? (i({
|
|
120
|
+
componentName: "VueUiBullet",
|
|
121
|
+
type: "dataset",
|
|
122
|
+
debug: lt.value
|
|
123
|
+
}), z.value = !0) : N.value ? R.value.segments.forEach((e, t) => {
|
|
124
|
+
ee({
|
|
125
|
+
datasetObject: e,
|
|
126
|
+
requiredAttributes: [
|
|
127
|
+
"name",
|
|
128
|
+
"from",
|
|
129
|
+
"to"
|
|
130
|
+
]
|
|
131
|
+
}).forEach((e) => {
|
|
132
|
+
M.value = !1, i({
|
|
133
|
+
componentName: "VueUiBullet segment",
|
|
134
|
+
type: "datasetSerieAttribute",
|
|
135
|
+
property: e,
|
|
136
|
+
index: t,
|
|
137
|
+
debug: lt.value
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}) : (M.value = !1, z.value = !0), r(R.value) || (z.value = I.value.loading), I.value.responsive) {
|
|
141
|
+
let e = me(() => {
|
|
142
|
+
let { width: e, height: t } = he({
|
|
143
|
+
chart: D.value,
|
|
144
|
+
title: I.value.style.chart.title.text ? rt.value : null,
|
|
145
|
+
legend: I.value.style.chart.legend.show ? at.value : null,
|
|
146
|
+
source: ot.value,
|
|
147
|
+
padding: ut.value
|
|
148
|
+
}), n = (I.value.style.chart.legend.show ? 24 : 0) || 12;
|
|
149
|
+
requestAnimationFrame(() => {
|
|
150
|
+
H.value.width = e, H.value.height = t - n;
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
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);
|
|
154
|
+
}
|
|
155
|
+
I.value.style.chart.animation.show && !L.value && xt(R.value.value || 0);
|
|
156
|
+
}
|
|
157
|
+
Ee(() => {
|
|
158
|
+
ct.value = !0, dt();
|
|
159
|
+
});
|
|
160
|
+
let P = y(n());
|
|
161
|
+
function F() {
|
|
162
|
+
let e = s({
|
|
163
|
+
userConfig: E.config,
|
|
164
|
+
defaultConfig: $e
|
|
165
|
+
}), t = e.theme;
|
|
166
|
+
if (!t) return e;
|
|
167
|
+
if (!et.value(e)) return tt(e), e;
|
|
168
|
+
let n = s({
|
|
169
|
+
userConfig: ye[t] || E.config,
|
|
170
|
+
defaultConfig: e
|
|
171
|
+
});
|
|
172
|
+
return s({
|
|
173
|
+
userConfig: E.config,
|
|
174
|
+
defaultConfig: n
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
let I = y(F()), ft = l(() => I.value.userOptions.useCursorPointer), pt = l(() => ie({
|
|
178
|
+
defaultConfig: {
|
|
179
|
+
userOptions: { show: !1 },
|
|
180
|
+
style: { chart: {
|
|
181
|
+
backgroundColor: "#99999930",
|
|
182
|
+
segments: {
|
|
183
|
+
dataLabels: { show: !1 },
|
|
184
|
+
ticks: { stroke: "#8A8A8A" }
|
|
185
|
+
},
|
|
186
|
+
valueBar: { label: { show: !1 } }
|
|
187
|
+
} }
|
|
188
|
+
},
|
|
189
|
+
userConfig: I.value.skeletonConfig ?? {}
|
|
190
|
+
})), { loading: L, FINAL_DATASET: R, manualLoading: z } = se({
|
|
191
|
+
...De(E),
|
|
192
|
+
FINAL_CONFIG: I,
|
|
193
|
+
prepareConfig: F,
|
|
194
|
+
skeletonDataset: E.config?.skeletonDataset ?? {
|
|
195
|
+
value: 100,
|
|
196
|
+
target: 100,
|
|
197
|
+
segments: [
|
|
198
|
+
{
|
|
199
|
+
name: "",
|
|
200
|
+
from: 0,
|
|
201
|
+
to: 33,
|
|
202
|
+
color: "#AAAAAA"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "",
|
|
206
|
+
from: 33,
|
|
207
|
+
to: 66,
|
|
208
|
+
color: "#BABABA"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: "",
|
|
212
|
+
from: 66,
|
|
213
|
+
to: 100,
|
|
214
|
+
color: "#CACACA"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
skeletonConfig: ie({
|
|
219
|
+
defaultConfig: I.value,
|
|
220
|
+
userConfig: pt.value
|
|
221
|
+
})
|
|
222
|
+
}), { userOptionsVisible: B, setUserOptionsVisibility: mt, keepUserOptionState: ht } = ge({ config: I.value }), { svgRef: V } = _e({ config: I.value.style.chart.title }), H = y({
|
|
223
|
+
width: I.value.style.chart.width,
|
|
224
|
+
height: I.value.style.chart.height
|
|
225
|
+
}), gt = l(() => H.value.width), _t = l(() => H.value.height);
|
|
226
|
+
Oe(() => E.config, (e) => {
|
|
227
|
+
L.value || (I.value = F()), B.value = !I.value.userOptions.showOnChartHover, H.value.width = I.value.style.chart.width, H.value.height = I.value.style.chart.height, dt(), it.value += 1;
|
|
228
|
+
}, { deep: !0 });
|
|
229
|
+
let U = l(() => {
|
|
230
|
+
let e = _t.value, t = gt.value, n = I.value.style.chart.padding.left, r = t - I.value.style.chart.padding.right, i = I.value.style.chart.padding.top, a = e - I.value.style.chart.padding.bottom;
|
|
231
|
+
return {
|
|
232
|
+
height: Math.max(.001, e),
|
|
233
|
+
width: Math.max(.001, t),
|
|
234
|
+
left: n,
|
|
235
|
+
right: r,
|
|
236
|
+
top: i,
|
|
237
|
+
bottom: a,
|
|
238
|
+
chartWidth: Math.max(.001, r - n),
|
|
239
|
+
chartHeight: Math.max(.001, a - i)
|
|
240
|
+
};
|
|
241
|
+
}), vt = l(() => {
|
|
242
|
+
if (!N.value) return [];
|
|
243
|
+
let e = [];
|
|
244
|
+
for (let t = 0; t < R.value.segments.length; t += 1) e.push(re(I.value.style.chart.segments.baseColor, t / R.value.segments.length));
|
|
245
|
+
return e;
|
|
246
|
+
}), W = l(() => N.value ? {
|
|
247
|
+
min: Math.min(...R.value.segments.map((e) => e.from)),
|
|
248
|
+
max: Math.max(...R.value.segments.map((e) => e.to))
|
|
249
|
+
} : {
|
|
250
|
+
min: 0,
|
|
251
|
+
max: 1
|
|
252
|
+
}), G = y(yt());
|
|
253
|
+
Oe(() => R.value, (e) => {
|
|
254
|
+
e.hasOwnProperty("value") && (z.value = !1), I.value.style.chart.animation.show && !L.value ? xt(e.value || 0) : G.value = e.value || 0;
|
|
255
|
+
}, { deep: !0 });
|
|
256
|
+
function yt() {
|
|
257
|
+
return I.value.style.chart.animation.show && !L.value ? W.value.min : R.value.value || 0;
|
|
258
|
+
}
|
|
259
|
+
let bt = y(null);
|
|
260
|
+
function xt(e) {
|
|
261
|
+
let t = Math.abs(e - G.value) / I.value.style.chart.animation.animationFrames;
|
|
262
|
+
function n() {
|
|
263
|
+
G.value < e ? G.value = Math.min(G.value + t, e) : G.value > e && (G.value = Math.max(G.value - t, e)), G.value !== e && (bt.value = requestAnimationFrame(n));
|
|
264
|
+
}
|
|
265
|
+
n();
|
|
266
|
+
}
|
|
267
|
+
Te(() => {
|
|
268
|
+
cancelAnimationFrame(bt.value);
|
|
269
|
+
});
|
|
270
|
+
let K = l(() => {
|
|
271
|
+
if (!N.value) return [];
|
|
272
|
+
let e = a(W.value.min, W.value.max, I.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
|
|
273
|
+
return {
|
|
274
|
+
scale: e,
|
|
275
|
+
target: { x: U.value.left + (R.value.target + t) / (e.max + t) * U.value.chartWidth - I.value.style.chart.target.width / 2 },
|
|
276
|
+
value: { width: (G.value + t) / (e.max + t) * U.value.chartWidth },
|
|
277
|
+
ticks: e.ticks.map((n) => ({
|
|
278
|
+
value: n,
|
|
279
|
+
y: U.value.bottom + I.value.style.chart.segments.dataLabels.fontSize + 3 + I.value.style.chart.segments.dataLabels.offsetY,
|
|
280
|
+
x: U.value.left + (n + t) / (e.max + t) * U.value.chartWidth
|
|
281
|
+
})),
|
|
282
|
+
chunks: R.value.segments.map((n, r) => ({
|
|
283
|
+
...n,
|
|
284
|
+
color: n.color ? ne(n.color) : vt.value[r],
|
|
285
|
+
x: U.value.left + U.value.chartWidth * ((n.from + t) / (e.max + t)),
|
|
286
|
+
y: U.value.top,
|
|
287
|
+
height: U.value.chartHeight,
|
|
288
|
+
width: U.value.chartWidth * (Math.abs(n.to - n.from) / (e.max + t))
|
|
289
|
+
}))
|
|
290
|
+
};
|
|
291
|
+
}), q = l(() => !K.value || !K.value.chunks || !K.value.chunks.length ? [] : K.value.chunks.map((e) => {
|
|
292
|
+
let n = `${o(I.value.style.chart.segments.dataLabels.formatter, e.from, t({
|
|
293
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
294
|
+
v: e.from,
|
|
295
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
296
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
297
|
+
}))} — ${o(I.value.style.chart.segments.dataLabels.formatter, e.to, t({
|
|
298
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
299
|
+
v: e.to,
|
|
300
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
301
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
302
|
+
}))}`;
|
|
303
|
+
return {
|
|
304
|
+
...e,
|
|
305
|
+
shape: "square",
|
|
306
|
+
value: n,
|
|
307
|
+
display: `${e.name}: ${n}`
|
|
308
|
+
};
|
|
309
|
+
})), St = l(() => ({
|
|
310
|
+
cy: "bullet-div-legend",
|
|
311
|
+
backgroundColor: "transparent",
|
|
312
|
+
color: I.value.style.chart.legend.color,
|
|
313
|
+
fontSize: I.value.style.chart.legend.fontSize,
|
|
314
|
+
paddingBottom: 6,
|
|
315
|
+
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
316
|
+
})), { isPrinting: J, isImaging: Y, generatePdf: Ct, generateImage: X } = oe({
|
|
317
|
+
elementId: `bullet_${P.value}`,
|
|
318
|
+
fileName: I.value.style.chart.title.text || "vue-ui-bullet",
|
|
319
|
+
options: I.value.userOptions.print
|
|
320
|
+
}), wt = l(() => I.value.userOptions.show && !I.value.style.chart.title.text), Z = y(!1);
|
|
321
|
+
function Tt(e) {
|
|
322
|
+
Z.value = e, st.value += 1;
|
|
323
|
+
}
|
|
324
|
+
function Et() {
|
|
325
|
+
return K.value;
|
|
326
|
+
}
|
|
327
|
+
let Q = y(!1);
|
|
328
|
+
function $() {
|
|
329
|
+
Q.value = !Q.value;
|
|
330
|
+
}
|
|
331
|
+
async function Dt({ scale: e = 2 } = {}) {
|
|
332
|
+
if (!D.value) return;
|
|
333
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await de({
|
|
334
|
+
domElement: D.value,
|
|
335
|
+
base64: !0,
|
|
336
|
+
img: !0,
|
|
337
|
+
scale: e
|
|
338
|
+
});
|
|
339
|
+
return {
|
|
340
|
+
imageUri: i,
|
|
341
|
+
base64: a,
|
|
342
|
+
title: I.value.style.chart.title.text,
|
|
343
|
+
width: t,
|
|
344
|
+
height: n,
|
|
345
|
+
aspectRatio: r
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
let Ot = l(() => q.value.map((e) => ({
|
|
349
|
+
...e,
|
|
350
|
+
name: e.display
|
|
351
|
+
}))), kt = l(() => I.value.style.chart.backgroundColor), At = l(() => I.value.style.chart.legend), { exportSvg: jt, getSvg: Mt } = le({
|
|
352
|
+
svg: V,
|
|
353
|
+
title: l(() => I.value.style.chart.title),
|
|
354
|
+
legend: At,
|
|
355
|
+
legendItems: Ot,
|
|
356
|
+
backgroundColor: kt
|
|
357
|
+
});
|
|
358
|
+
async function Nt({ isCb: e }) {
|
|
359
|
+
j.value = !0, await Ce();
|
|
360
|
+
try {
|
|
361
|
+
if (e) {
|
|
362
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Mt();
|
|
363
|
+
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
364
|
+
blob: e,
|
|
365
|
+
url: t,
|
|
366
|
+
text: n,
|
|
367
|
+
dataUrl: r
|
|
368
|
+
}));
|
|
369
|
+
} else await Promise.resolve(jt());
|
|
370
|
+
} finally {
|
|
371
|
+
j.value = !1;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
function Pt(e) {
|
|
375
|
+
if (e?.stage === "start") {
|
|
376
|
+
A.value = !0;
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (e?.stage === "end") {
|
|
380
|
+
A.value = !1;
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
X();
|
|
384
|
+
}
|
|
385
|
+
async function Ft() {
|
|
386
|
+
if (nt("copyAlt", {
|
|
387
|
+
config: I.value,
|
|
388
|
+
dataset: R.value
|
|
389
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
390
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
394
|
+
config: I.value,
|
|
395
|
+
dataset: R.value
|
|
396
|
+
}));
|
|
397
|
+
}
|
|
398
|
+
return pe({
|
|
399
|
+
getData: Et,
|
|
400
|
+
getImage: Dt,
|
|
401
|
+
generatePdf: Ct,
|
|
402
|
+
generateImage: X,
|
|
403
|
+
generateSvg: Nt,
|
|
404
|
+
toggleAnnotator: $,
|
|
405
|
+
toggleFullscreen: Tt,
|
|
406
|
+
copyAlt: Ft
|
|
407
|
+
}), (e, n) => (v(), f("div", {
|
|
408
|
+
ref_key: "bulletChart",
|
|
409
|
+
ref: D,
|
|
410
|
+
class: we(`vue-data-ui-component vue-ui-bullet ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
411
|
+
style: _(`font-family:${I.value.style.fontFamily};width:100%;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
|
|
412
|
+
id: `bullet_${P.value}`,
|
|
413
|
+
onMouseenter: n[0] ||= () => C(mt)(!0),
|
|
414
|
+
onMouseleave: n[1] ||= () => C(mt)(!1)
|
|
415
|
+
}, [
|
|
416
|
+
I.value.userOptions.buttons.annotator ? (v(), u(C(Ze), {
|
|
417
|
+
key: 0,
|
|
418
|
+
svgRef: C(V),
|
|
419
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
420
|
+
color: I.value.style.chart.color,
|
|
421
|
+
active: Q.value,
|
|
422
|
+
isCursorPointer: ft.value,
|
|
423
|
+
onClose: $
|
|
424
|
+
}, {
|
|
425
|
+
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
426
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
427
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
428
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
429
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
430
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
431
|
+
_: 3
|
|
432
|
+
}, 8, [
|
|
433
|
+
"svgRef",
|
|
434
|
+
"backgroundColor",
|
|
435
|
+
"color",
|
|
436
|
+
"active",
|
|
437
|
+
"isCursorPointer"
|
|
438
|
+
])) : d("", !0),
|
|
439
|
+
wt.value ? (v(), f("div", je, null, 512)) : d("", !0),
|
|
440
|
+
I.value.style.chart.title.text ? (v(), f("div", {
|
|
441
|
+
key: 2,
|
|
442
|
+
ref_key: "chartTitle",
|
|
443
|
+
ref: rt,
|
|
444
|
+
style: "width:100%;background:transparent;"
|
|
445
|
+
}, [(v(), u(fe, {
|
|
446
|
+
lineHeight: "1.3rem",
|
|
447
|
+
key: `title_${it.value}`,
|
|
448
|
+
config: {
|
|
449
|
+
title: {
|
|
450
|
+
cy: "bullet-div-title",
|
|
451
|
+
...I.value.style.chart.title
|
|
452
|
+
},
|
|
453
|
+
subtitle: {
|
|
454
|
+
cy: "bullet-div-subtitle",
|
|
455
|
+
...I.value.style.chart.title.subtitle
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
459
|
+
p("div", { id: `legend-top-${P.value}` }, null, 8, Me),
|
|
460
|
+
I.value.userOptions.show && M.value && (C(ht) || C(B)) ? (v(), u(C(Qe), {
|
|
461
|
+
key: 3,
|
|
462
|
+
ref: "details",
|
|
463
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
464
|
+
color: I.value.style.chart.color,
|
|
465
|
+
isPrinting: C(J),
|
|
466
|
+
isImaging: C(Y),
|
|
467
|
+
uid: P.value,
|
|
468
|
+
hasTooltip: !1,
|
|
469
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
470
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
471
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
472
|
+
hasXls: !1,
|
|
473
|
+
hasTable: !1,
|
|
474
|
+
hasLabel: !1,
|
|
475
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
476
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
477
|
+
isFullscreen: Z.value,
|
|
478
|
+
chartElement: D.value,
|
|
479
|
+
position: I.value.userOptions.position,
|
|
480
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
481
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
482
|
+
isAnnotation: Q.value,
|
|
483
|
+
callbacks: I.value.userOptions.callbacks,
|
|
484
|
+
printScale: I.value.userOptions.print.scale,
|
|
485
|
+
isCursorPointer: ft.value,
|
|
486
|
+
onToggleFullscreen: Tt,
|
|
487
|
+
onGeneratePdf: C(Ct),
|
|
488
|
+
onGenerateImage: Pt,
|
|
489
|
+
onGenerateSvg: Nt,
|
|
490
|
+
onToggleAnnotator: $,
|
|
491
|
+
onCopyAlt: Ft,
|
|
492
|
+
style: _({ visibility: C(ht) ? C(B) ? "visible" : "hidden" : "visible" })
|
|
493
|
+
}, xe({ _: 2 }, [
|
|
494
|
+
e.$slots.menuIcon ? {
|
|
495
|
+
name: "menuIcon",
|
|
496
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
497
|
+
isOpen: t,
|
|
498
|
+
color: n
|
|
499
|
+
})), void 0, !0)]),
|
|
500
|
+
key: "0"
|
|
501
|
+
} : void 0,
|
|
502
|
+
e.$slots.optionPdf ? {
|
|
503
|
+
name: "optionPdf",
|
|
504
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
505
|
+
key: "1"
|
|
506
|
+
} : void 0,
|
|
507
|
+
e.$slots.optionImg ? {
|
|
508
|
+
name: "optionImg",
|
|
509
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
510
|
+
key: "2"
|
|
511
|
+
} : void 0,
|
|
512
|
+
e.$slots.optionSvg ? {
|
|
513
|
+
name: "optionSvg",
|
|
514
|
+
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
515
|
+
key: "3"
|
|
516
|
+
} : void 0,
|
|
517
|
+
e.$slots.optionFullscreen ? {
|
|
518
|
+
name: "optionFullscreen",
|
|
519
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
520
|
+
toggleFullscreen: t,
|
|
521
|
+
isFullscreen: n
|
|
522
|
+
})), void 0, !0)]),
|
|
523
|
+
key: "4"
|
|
524
|
+
} : void 0,
|
|
525
|
+
e.$slots.optionAnnotator ? {
|
|
526
|
+
name: "optionAnnotator",
|
|
527
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
528
|
+
toggleAnnotator: t,
|
|
529
|
+
isAnnotator: n
|
|
530
|
+
})), void 0, !0)]),
|
|
531
|
+
key: "5"
|
|
532
|
+
} : void 0,
|
|
533
|
+
e.$slots.optionAltCopy ? {
|
|
534
|
+
name: "optionAltCopy",
|
|
535
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
536
|
+
key: "6"
|
|
537
|
+
} : void 0
|
|
538
|
+
]), 1032, [
|
|
539
|
+
"backgroundColor",
|
|
540
|
+
"color",
|
|
541
|
+
"isPrinting",
|
|
542
|
+
"isImaging",
|
|
543
|
+
"uid",
|
|
544
|
+
"hasPdf",
|
|
545
|
+
"hasImg",
|
|
546
|
+
"hasSvg",
|
|
547
|
+
"hasFullscreen",
|
|
548
|
+
"hasAltCopy",
|
|
549
|
+
"isFullscreen",
|
|
550
|
+
"chartElement",
|
|
551
|
+
"position",
|
|
552
|
+
"titles",
|
|
553
|
+
"hasAnnotator",
|
|
554
|
+
"isAnnotation",
|
|
555
|
+
"callbacks",
|
|
556
|
+
"printScale",
|
|
557
|
+
"isCursorPointer",
|
|
558
|
+
"onGeneratePdf",
|
|
559
|
+
"style"
|
|
560
|
+
])) : d("", !0),
|
|
561
|
+
(v(), f("svg", {
|
|
562
|
+
ref_key: "svgRef",
|
|
563
|
+
ref: V,
|
|
564
|
+
xmlns: C(te),
|
|
565
|
+
class: we({
|
|
566
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
567
|
+
"vue-data-ui-fulscreen--off": !Z.value,
|
|
568
|
+
"vue-ui-bullet-svg": !0
|
|
569
|
+
}),
|
|
570
|
+
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
571
|
+
style: _(`width: 100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`),
|
|
572
|
+
"aria-labelledby": `bullet-svg-title-${P.value}`,
|
|
573
|
+
"aria-describedby": `bullet-svg-desc-${P.value}`
|
|
574
|
+
}, [
|
|
575
|
+
Se(C(T)),
|
|
576
|
+
p("title", { id: `bullet-svg-title-${P.value}` }, S(I.value.style.chart.title.text || "Bullet chart"), 9, Pe),
|
|
577
|
+
p("desc", { id: `bullet-svg-desc-${P.value}` }, " Value: " + S(G.value) + ", Target: " + S(K.value.target?.value), 9, Fe),
|
|
578
|
+
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
579
|
+
key: 0,
|
|
580
|
+
x: 0,
|
|
581
|
+
y: 0,
|
|
582
|
+
width: U.value.width,
|
|
583
|
+
height: U.value.height,
|
|
584
|
+
style: { pointerEvents: "none" }
|
|
585
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : d("", !0),
|
|
586
|
+
N.value ? (v(), f("g", Le, [
|
|
587
|
+
(v(!0), f(c, null, b(K.value.chunks, (e) => (v(), f("rect", {
|
|
588
|
+
x: e.x,
|
|
589
|
+
y: e.y,
|
|
590
|
+
height: e.height,
|
|
591
|
+
width: e.width,
|
|
592
|
+
fill: e.color,
|
|
593
|
+
"stroke-width": 1,
|
|
594
|
+
stroke: I.value.style.chart.backgroundColor,
|
|
595
|
+
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
596
|
+
}, null, 8, Re))), 256)),
|
|
597
|
+
!I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
|
|
598
|
+
key: 0,
|
|
599
|
+
x: K.value.target.x,
|
|
600
|
+
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
|
|
601
|
+
height: U.value.chartHeight * I.value.style.chart.target.heightRatio,
|
|
602
|
+
width: I.value.style.chart.target.width,
|
|
603
|
+
rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
|
|
604
|
+
fill: I.value.style.chart.target.color,
|
|
605
|
+
stroke: I.value.style.chart.target.stroke,
|
|
606
|
+
"stroke-width": I.value.style.chart.target.strokeWidth
|
|
607
|
+
}, null, 8, ze)) : d("", !0),
|
|
608
|
+
p("rect", {
|
|
609
|
+
x: U.value.left,
|
|
610
|
+
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * I.value.style.chart.valueBar.heightRatio) / 2,
|
|
611
|
+
height: U.value.chartHeight * I.value.style.chart.valueBar.heightRatio,
|
|
612
|
+
width: K.value.value.width,
|
|
613
|
+
fill: I.value.style.chart.valueBar.color,
|
|
614
|
+
stroke: I.value.style.chart.valueBar.stroke,
|
|
615
|
+
"stroke-width": I.value.style.chart.valueBar.strokeWidth
|
|
616
|
+
}, null, 8, Be),
|
|
617
|
+
I.value.style.chart.valueBar.label.show ? (v(), f("text", {
|
|
618
|
+
key: 1,
|
|
619
|
+
x: U.value.left + K.value.value.width,
|
|
620
|
+
y: U.value.top - 6 + I.value.style.chart.valueBar.label.offsetY,
|
|
621
|
+
"font-size": I.value.style.chart.valueBar.label.fontSize,
|
|
622
|
+
"font-weight": I.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
623
|
+
fill: I.value.style.chart.valueBar.label.color,
|
|
624
|
+
"text-anchor": "middle"
|
|
625
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, G.value, C(t)({
|
|
626
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
627
|
+
v: G.value,
|
|
628
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
629
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
630
|
+
}))), 9, Ve)) : d("", !0),
|
|
631
|
+
I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
|
|
632
|
+
key: 2,
|
|
633
|
+
x: K.value.target.x,
|
|
634
|
+
y: U.value.top + (U.value.chartHeight - U.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
|
|
635
|
+
height: U.value.chartHeight * I.value.style.chart.target.heightRatio,
|
|
636
|
+
width: I.value.style.chart.target.width,
|
|
637
|
+
rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
|
|
638
|
+
fill: I.value.style.chart.target.color,
|
|
639
|
+
stroke: I.value.style.chart.target.stroke,
|
|
640
|
+
"stroke-width": I.value.style.chart.target.strokeWidth,
|
|
641
|
+
style: { transition: "x 0.3s ease-in-out" }
|
|
642
|
+
}, null, 8, He)) : d("", !0),
|
|
643
|
+
I.value.style.chart.segments.dataLabels.show ? (v(), f("g", Ue, [(v(!0), f(c, null, b(K.value.ticks, (e) => (v(), f("text", {
|
|
644
|
+
x: e.x,
|
|
645
|
+
y: e.y,
|
|
646
|
+
"text-anchor": "middle",
|
|
647
|
+
fill: I.value.style.chart.segments.dataLabels.color,
|
|
648
|
+
"font-size": I.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
649
|
+
"font-weight": I.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
650
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, e.value, C(t)({
|
|
651
|
+
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
652
|
+
v: e.value,
|
|
653
|
+
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
654
|
+
r: I.value.style.chart.segments.dataLabels.rounding
|
|
655
|
+
}))), 9, We))), 256))])) : d("", !0),
|
|
656
|
+
I.value.style.chart.segments.dataLabels.show && I.value.style.chart.segments.ticks.show ? (v(), f("g", Ge, [(v(!0), f(c, null, b(K.value.ticks, (e) => (v(), f("line", {
|
|
657
|
+
x1: e.x,
|
|
658
|
+
x2: e.x,
|
|
659
|
+
y1: U.value.bottom,
|
|
660
|
+
y2: U.value.bottom + 3,
|
|
661
|
+
stroke: I.value.style.chart.segments.ticks.stroke,
|
|
662
|
+
"stroke-width": 1,
|
|
663
|
+
"stroke-linecap": "round"
|
|
664
|
+
}, null, 8, Ke))), 256))])) : d("", !0)
|
|
665
|
+
])) : d("", !0),
|
|
666
|
+
x(e.$slots, "svg", { svg: {
|
|
667
|
+
...U.value,
|
|
668
|
+
isPrintingImg: C(J) || C(Y) || A.value,
|
|
669
|
+
isPrintingSvg: j.value
|
|
670
|
+
} }, void 0, !0)
|
|
671
|
+
], 14, Ne)),
|
|
672
|
+
e.$slots.watermark ? (v(), f("div", qe, [x(e.$slots, "watermark", g(h({ isPrinting: C(J) || C(Y) || A.value || j.value })), void 0, !0)])) : d("", !0),
|
|
673
|
+
p("div", { id: `legend-bottom-${P.value}` }, null, 8, Je),
|
|
674
|
+
ct.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(be, {
|
|
675
|
+
key: 5,
|
|
676
|
+
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
677
|
+
}, [p("div", {
|
|
678
|
+
ref_key: "chartLegend",
|
|
679
|
+
ref: at
|
|
680
|
+
}, [x(e.$slots, "legend", { legend: q.value }, () => [I.value.style.chart.legend.show ? (v(), u(ve, {
|
|
681
|
+
key: 0,
|
|
682
|
+
clickable: !1,
|
|
683
|
+
legendSet: q.value,
|
|
684
|
+
config: St.value
|
|
685
|
+
}, {
|
|
686
|
+
item: w(({ legend: e }) => [C(L) ? d("", !0) : (v(), f("div", Ye, [p("span", Xe, S(e.name) + ":", 1), p("span", null, S(e.value), 1)]))]),
|
|
687
|
+
_: 1
|
|
688
|
+
}, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
689
|
+
e.$slots.source ? (v(), f("div", {
|
|
690
|
+
key: 6,
|
|
691
|
+
ref_key: "source",
|
|
692
|
+
ref: ot,
|
|
693
|
+
dir: "auto"
|
|
694
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
695
|
+
x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(ce, { key: 0 })) : d("", !0)], !0)
|
|
696
|
+
], 46, Ae));
|
|
697
|
+
}
|
|
698
|
+
}, [["__scopeId", "data-v-acd101a7"]]);
|
|
699
|
+
//#endregion
|
|
700
|
+
export { ke as n, T as t };
|