vue-data-ui 3.20.3 → 3.20.4
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/dist/A11yDataTable-BCbtxMU6.js +45 -0
- package/dist/Arrow-D6j6ocXm.js +116 -0
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
- package/dist/BaseIcon-DfLoHNUj.js +502 -0
- package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
- package/dist/BaseScanner-Dr2a1Msy.js +27 -0
- package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
- package/dist/ColorPicker-Bjwxnvfh.js +255 -0
- package/dist/DataTable-B--IN22e.js +150 -0
- package/dist/Legend-Cz2uQ5gs.js +114 -0
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
- package/dist/PackageVersion-BYcZLGDG.js +11 -0
- package/dist/PenAndPaper-DqrClVfb.js +461 -0
- package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
- package/dist/RecursiveLabels-D9rfID6q.js +56 -0
- package/dist/RecursiveLinks-BygcpDiT.js +78 -0
- package/dist/Shape-BPCJfphn.js +141 -0
- package/dist/Slicer-SHBj0VaV.js +1144 -0
- package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
- package/dist/SparkTooltip-CfE6yCad.js +93 -0
- package/dist/Title-NWp4qB4K.js +87 -0
- package/dist/Tooltip-BENq327o.js +312 -0
- package/dist/UserOptions-C1NgoGu6.js +1411 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/canvas-lib-BOP_HS11.js +79 -0
- package/dist/components/arrow.js +2 -0
- package/dist/components/vue-ui-3d-bar.js +2 -0
- package/dist/components/vue-ui-accordion.js +2 -0
- package/dist/components/vue-ui-age-pyramid.js +2 -0
- package/dist/components/vue-ui-annotator.js +2 -0
- package/dist/components/vue-ui-bullet.js +2 -0
- package/dist/components/vue-ui-bump.js +2 -0
- package/dist/components/vue-ui-candlestick.js +2 -0
- package/dist/components/vue-ui-carousel-table.js +2 -0
- package/dist/components/vue-ui-chestnut.js +2 -0
- package/dist/components/vue-ui-chord.js +2 -0
- package/dist/components/vue-ui-circle-pack.js +2 -0
- package/dist/components/vue-ui-cursor.js +2 -0
- package/dist/components/vue-ui-dag.js +2 -0
- package/dist/components/vue-ui-dashboard.js +2 -0
- package/dist/components/vue-ui-digits.js +2 -0
- package/dist/components/vue-ui-donut-evolution.js +2 -0
- package/dist/components/vue-ui-donut.js +2 -0
- package/dist/components/vue-ui-dumbbell.js +2 -0
- package/dist/components/vue-ui-flow.js +2 -0
- package/dist/components/vue-ui-funnel.js +2 -0
- package/dist/components/vue-ui-galaxy.js +2 -0
- package/dist/components/vue-ui-gauge.js +2 -0
- package/dist/components/vue-ui-geo.js +2 -0
- package/dist/components/vue-ui-gizmo.js +2 -0
- package/dist/components/vue-ui-heatmap.js +2 -0
- package/dist/components/vue-ui-history-plot.js +2 -0
- package/dist/components/vue-ui-horizontal-bar.js +2 -0
- package/dist/components/vue-ui-icon.js +2 -0
- package/dist/components/vue-ui-kpi.js +2 -0
- package/dist/components/vue-ui-mini-loader.js +2 -0
- package/dist/components/vue-ui-molecule.js +2 -0
- package/dist/components/vue-ui-mood-radar.js +2 -0
- package/dist/components/vue-ui-nested-donuts.js +2 -0
- package/dist/components/vue-ui-onion.js +2 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
- package/dist/components/vue-ui-pattern-seed.js +2 -0
- package/dist/components/vue-ui-pattern.js +2 -0
- package/dist/components/vue-ui-quadrant.js +2 -0
- package/dist/components/vue-ui-quick-chart.js +2 -0
- package/dist/components/vue-ui-radar.js +2 -0
- package/dist/components/vue-ui-rating.js +2 -0
- package/dist/components/vue-ui-relation-circle.js +2 -0
- package/dist/components/vue-ui-ridgeline.js +2 -0
- package/dist/components/vue-ui-rings.js +2 -0
- package/dist/components/vue-ui-scatter.js +2 -0
- package/dist/components/vue-ui-skeleton.js +2 -0
- package/dist/components/vue-ui-smiley.js +2 -0
- package/dist/components/vue-ui-spark-trend.js +2 -0
- package/dist/components/vue-ui-sparkbar.js +2 -0
- package/dist/components/vue-ui-sparkgauge.js +2 -0
- package/dist/components/vue-ui-sparkhistogram.js +2 -0
- package/dist/components/vue-ui-sparkline.js +2 -0
- package/dist/components/vue-ui-sparkstackbar.js +2 -0
- package/dist/components/vue-ui-stackbar.js +2 -0
- package/dist/components/vue-ui-stackline.js +2 -0
- package/dist/components/vue-ui-strip-plot.js +2 -0
- package/dist/components/vue-ui-table-heatmap.js +2 -0
- package/dist/components/vue-ui-table-sparkline.js +2 -0
- package/dist/components/vue-ui-table.js +2 -0
- package/dist/components/vue-ui-thermometer.js +2 -0
- package/dist/components/vue-ui-timer.js +2 -0
- package/dist/components/vue-ui-tiremarks.js +2 -0
- package/dist/components/vue-ui-treemap.js +2 -0
- package/dist/components/vue-ui-vertical-bar.js +2 -0
- package/dist/components/vue-ui-waffle.js +2 -0
- package/dist/components/vue-ui-wheel.js +2 -0
- package/dist/components/vue-ui-word-cloud.js +2 -0
- package/dist/components/vue-ui-world.js +2 -0
- package/dist/components/vue-ui-xy-canvas.js +2 -0
- package/dist/components/vue-ui-xy.js +2 -0
- package/dist/dom-to-png-BYtB4BF3.js +237 -0
- package/dist/exposedLib-CI8ji8G-.js +19 -0
- package/dist/geoProjections-Czak6Jn1.js +145 -0
- package/dist/img-1cKsci8e.js +74 -0
- package/dist/labelUtils-CUctkYoA.js +19 -0
- package/dist/lib-DUeYQsS0.js +1882 -0
- package/dist/llms.txt +232 -0
- package/dist/patternUtils-CS7hn6at.js +258 -0
- package/dist/pdf-D0eZ99cP.js +90 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/style.css +2 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/utils.d.ts +551 -0
- package/dist/types/vue-data-ui.d.ts +17190 -0
- package/dist/types/vue-ui-3d-bar.d.ts +93 -0
- package/dist/types/vue-ui-accordion.d.ts +11 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
- package/dist/types/vue-ui-annotator.d.ts +34 -0
- package/dist/types/vue-ui-bullet.d.ts +85 -0
- package/dist/types/vue-ui-bump.d.ts +92 -0
- package/dist/types/vue-ui-candlestick.d.ts +106 -0
- package/dist/types/vue-ui-carousel-table.d.ts +59 -0
- package/dist/types/vue-ui-chestnut.d.ts +98 -0
- package/dist/types/vue-ui-chord.d.ts +110 -0
- package/dist/types/vue-ui-circle-pack.d.ts +126 -0
- package/dist/types/vue-ui-cursor.d.ts +9 -0
- package/dist/types/vue-ui-dag.d.ts +125 -0
- package/dist/types/vue-ui-dashboard.d.ts +68 -0
- package/dist/types/vue-ui-digits.d.ts +12 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +98 -0
- package/dist/types/vue-ui-donut.d.ts +123 -0
- package/dist/types/vue-ui-dumbbell.d.ts +94 -0
- package/dist/types/vue-ui-flow.d.ts +106 -0
- package/dist/types/vue-ui-funnel.d.ts +79 -0
- package/dist/types/vue-ui-galaxy.d.ts +114 -0
- package/dist/types/vue-ui-gauge.d.ts +89 -0
- package/dist/types/vue-ui-geo.d.ts +94 -0
- package/dist/types/vue-ui-gizmo.d.ts +22 -0
- package/dist/types/vue-ui-heatmap.d.ts +101 -0
- package/dist/types/vue-ui-history-plot.d.ts +114 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
- package/dist/types/vue-ui-icon.d.ts +15 -0
- package/dist/types/vue-ui-kpi.d.ts +25 -0
- package/dist/types/vue-ui-mini-loader.d.ts +15 -0
- package/dist/types/vue-ui-molecule.d.ts +112 -0
- package/dist/types/vue-ui-mood-radar.d.ts +92 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
- package/dist/types/vue-ui-onion.d.ts +106 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +15 -0
- package/dist/types/vue-ui-quadrant.d.ts +125 -0
- package/dist/types/vue-ui-quick-chart.d.ts +108 -0
- package/dist/types/vue-ui-radar.d.ts +116 -0
- package/dist/types/vue-ui-rating.d.ts +42 -0
- package/dist/types/vue-ui-relation-circle.d.ts +92 -0
- package/dist/types/vue-ui-ridgeline.d.ts +106 -0
- package/dist/types/vue-ui-rings.d.ts +98 -0
- package/dist/types/vue-ui-scatter.d.ts +97 -0
- package/dist/types/vue-ui-skeleton.d.ts +11 -0
- package/dist/types/vue-ui-smiley.d.ts +28 -0
- package/dist/types/vue-ui-spark-trend.d.ts +19 -0
- package/dist/types/vue-ui-sparkbar.d.ts +49 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
- package/dist/types/vue-ui-sparkline.d.ts +59 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
- package/dist/types/vue-ui-stackbar.d.ts +118 -0
- package/dist/types/vue-ui-stackline.d.ts +114 -0
- package/dist/types/vue-ui-strip-plot.d.ts +96 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
- package/dist/types/vue-ui-table.d.ts +38 -0
- package/dist/types/vue-ui-thermometer.d.ts +70 -0
- package/dist/types/vue-ui-timer.d.ts +49 -0
- package/dist/types/vue-ui-tiremarks.d.ts +70 -0
- package/dist/types/vue-ui-treemap.d.ts +104 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
- package/dist/types/vue-ui-waffle.d.ts +101 -0
- package/dist/types/vue-ui-wheel.d.ts +70 -0
- package/dist/types/vue-ui-word-cloud.d.ts +97 -0
- package/dist/types/vue-ui-world.d.ts +98 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
- package/dist/types/vue-ui-xy.d.ts +146 -0
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
- package/dist/useChartAccessibility-DYqac8yF.js +12 -0
- package/dist/useConfig-DAyQk86L.js +7479 -0
- package/dist/useFitSvgText-CT3nmlaS.js +63 -0
- package/dist/useNestedProp-CNcoy38D.js +10 -0
- package/dist/useObjectBindings-BI7hP-BC.js +189 -0
- package/dist/usePanZoom-CYU3B4T3.js +157 -0
- package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
- package/dist/usePrinter-C1Gqt_Sp.js +49 -0
- package/dist/useResponsive-BfnK0KxU.js +19 -0
- package/dist/useStableElementSize-C7KADDKj.js +77 -0
- package/dist/useSvgExport-SVIsDot8.js +755 -0
- package/dist/useTableResponsive-B24Uwt2E.js +24 -0
- package/dist/useThemeCheck-C43Tcqmk.js +24 -0
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
- package/dist/useTimeLabels-BmBRv27Y.js +272 -0
- package/dist/useUserOptionState-DK-_1ddE.js +15 -0
- package/dist/utils.js +28 -0
- package/dist/vClickOutside-DUrZWttG.js +13 -0
- package/dist/vue-data-ui-DuLO91Bk.js +274 -0
- package/dist/vue-data-ui.js +76 -0
- package/dist/vue-ui-3d-bar-DMDfraIo.js +1757 -0
- package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
- package/dist/vue-ui-age-pyramid-CN68d9su.js +1238 -0
- package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
- package/dist/vue-ui-bullet-V21vyb4T.js +710 -0
- package/dist/vue-ui-bump-BvnBJcx0.js +1249 -0
- package/dist/vue-ui-candlestick-DaIeT5kU.js +1826 -0
- package/dist/vue-ui-carousel-table-BBTm1Etq.js +455 -0
- package/dist/vue-ui-chestnut-BLtE39N7.js +2010 -0
- package/dist/vue-ui-chord-D1UVle9f.js +1391 -0
- package/dist/vue-ui-circle-pack-BDDVjuT1.js +1608 -0
- package/dist/vue-ui-cursor-CiU4ttGN.js +283 -0
- package/dist/vue-ui-dag-D2U673ns.js +2909 -0
- package/dist/vue-ui-dashboard-JK7v_bwo.js +513 -0
- package/dist/vue-ui-digits-D5b3eJ5q.js +209 -0
- package/dist/vue-ui-donut-BYf4FbjI.js +2410 -0
- package/dist/vue-ui-donut-evolution-Id7YwbiG.js +1510 -0
- package/dist/vue-ui-dumbbell-CToh2l5g.js +1530 -0
- package/dist/vue-ui-flow-CmBI0IKa.js +1235 -0
- package/dist/vue-ui-funnel-B67L6mTB.js +777 -0
- package/dist/vue-ui-galaxy-CFZP36s4.js +1077 -0
- package/dist/vue-ui-gauge-sZxKMn7t.js +920 -0
- package/dist/vue-ui-geo-DK8fAoZd.js +1516 -0
- package/dist/vue-ui-gizmo-DsJtcBEf.js +225 -0
- package/dist/vue-ui-heatmap-B87-9zpu.js +1568 -0
- package/dist/vue-ui-history-plot-Dhv-zMSR.js +1554 -0
- package/dist/vue-ui-horizontal-bar-BAT7IYhL.js +1681 -0
- package/dist/vue-ui-kpi-BggezxVU.js +96 -0
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
- package/dist/vue-ui-molecule-uXC5g9qp.js +925 -0
- package/dist/vue-ui-mood-radar-BYoxNRMc.js +1148 -0
- package/dist/vue-ui-nested-donuts-BVniVpDM.js +1487 -0
- package/dist/vue-ui-onion-CWzeZ5Ak.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dbx6W4ZW.js +1416 -0
- package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
- package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
- package/dist/vue-ui-quadrant-BrPLv-sz.js +1978 -0
- package/dist/vue-ui-quick-chart-B0S_4DeW.js +2469 -0
- package/dist/vue-ui-radar-CUo6FWXZ.js +1229 -0
- package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
- package/dist/vue-ui-relation-circle-2a6IZgKe.js +924 -0
- package/dist/vue-ui-ridgeline-DnQBrx71.js +1622 -0
- package/dist/vue-ui-rings-BibWJNh2.js +1246 -0
- package/dist/vue-ui-scatter-8srfWwTp.js +2413 -0
- package/dist/vue-ui-skeleton-BoKB7qJM.js +2556 -0
- package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
- package/dist/vue-ui-spark-trend-Cq4pIgWr.js +438 -0
- package/dist/vue-ui-sparkbar-CgFKnZEF.js +393 -0
- package/dist/vue-ui-sparkgauge-ea-PGnBC.js +255 -0
- package/dist/vue-ui-sparkhistogram-BfgnG41U.js +560 -0
- package/dist/vue-ui-sparkline-CDOa3xh8.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DEsSr92Z.js +662 -0
- package/dist/vue-ui-stackbar-BeegxXk_.js +2270 -0
- package/dist/vue-ui-stackline-_G-cbZRe.js +2398 -0
- package/dist/vue-ui-strip-plot-VasAk496.js +1340 -0
- package/dist/vue-ui-table-DysBVxy5.js +1338 -0
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
- package/dist/vue-ui-table-sparkline-DQduGRPm.js +707 -0
- package/dist/vue-ui-thermometer-1l6KUpS8.js +763 -0
- package/dist/vue-ui-timer-Db2d4LNp.js +439 -0
- package/dist/vue-ui-tiremarks-YtFZjYFp.js +552 -0
- package/dist/vue-ui-treemap-DxwEGZ9p.js +1587 -0
- package/dist/vue-ui-waffle-C9bzj7pV.js +1362 -0
- package/dist/vue-ui-wheel-DKzocpS-.js +885 -0
- package/dist/vue-ui-word-cloud-DkNU1GFp.js +1656 -0
- package/dist/vue-ui-world-DhnfDaFE.js +14264 -0
- package/dist/vue-ui-xy-BzhW8pHi.js +4578 -0
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
- package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
- package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
- package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
- package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
- package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
- package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
- package/dist/vue_ui_donut-BDGqG07h.js +358 -0
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
- package/dist/vue_ui_flow-BewZjjKG.js +238 -0
- package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
- package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
- package/dist/vue_ui_geo-B8TODs-G.js +248 -0
- package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
- package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
- package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
- package/dist/vue_ui_onion-1FTFFS46.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
- package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
- package/dist/vue_ui_radar-jafTED5j.js +306 -0
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
- package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
- package/dist/vue_ui_scatter-I0POnicu.js +479 -0
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
- package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
- package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
- package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
- package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
- package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
- package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
- package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
- package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
- package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
- package/package.json +120 -120
|
@@ -0,0 +1,2270 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { B as t, Bt as n, Ct as r, Et as a, G as o, H as s, It as c, J as l, Lt as u, Rt as d, S as f, V as p, X as ee, bt as te, et as m, g as ne, h as re, i as h, nt as ie, ot as ae, pt as oe, r as se, s as ce, t as le, x as ue, y as de } from "./lib-DUeYQsS0.js";
|
|
3
|
+
import { n as fe, r as pe, t as me } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
|
+
import { t as he } from "./useConfig-DAyQk86L.js";
|
|
5
|
+
import { t as ge } from "./usePrinter-C1Gqt_Sp.js";
|
|
6
|
+
import { n as _e, t as ve } from "./BaseScanner-Dr2a1Msy.js";
|
|
7
|
+
import { t as ye } from "./useSvgExport-SVIsDot8.js";
|
|
8
|
+
import { t as be } from "./useNestedProp-CNcoy38D.js";
|
|
9
|
+
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as Se } from "./useStableElementSize-C7KADDKj.js";
|
|
11
|
+
import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as we } from "./img-1cKsci8e.js";
|
|
13
|
+
import { n as Te } from "./Title-NWp4qB4K.js";
|
|
14
|
+
import { t as Ee } from "./Shape-BPCJfphn.js";
|
|
15
|
+
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { c as Oe } from "./canvas-lib-BOP_HS11.js";
|
|
17
|
+
import { t as ke } from "./useResponsive-BfnK0KxU.js";
|
|
18
|
+
import { t as Ae } from "./SlicerPreview-DdihbUSJ.js";
|
|
19
|
+
import { t as je } from "./BaseLegendToggle-C_Db-y7s.js";
|
|
20
|
+
import { t as Me } from "./A11yDataTable-BCbtxMU6.js";
|
|
21
|
+
import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
22
|
+
import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
23
|
+
import { t as Fe } from "./Legend-Cz2uQ5gs.js";
|
|
24
|
+
import { t as Ie } from "./vue_ui_stackbar-COOrQQdK.js";
|
|
25
|
+
import { Fragment as g, Teleport as Le, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as Ve, guardReactiveProps as S, mergeProps as He, nextTick as Ue, normalizeClass as We, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ge, onMounted as Ke, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as k, toRefs as Ye, unref as A, useSlots as Xe, watch as Ze, watchEffect as Qe, withCtx as j } from "vue";
|
|
26
|
+
//#region src/components/vue-ui-stackbar.vue
|
|
27
|
+
var $e = /* @__PURE__ */ e({ default: () => Qt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
|
|
28
|
+
"xmlns",
|
|
29
|
+
"aria-describedby",
|
|
30
|
+
"viewBox"
|
|
31
|
+
], at = [
|
|
32
|
+
"x",
|
|
33
|
+
"y",
|
|
34
|
+
"width",
|
|
35
|
+
"height"
|
|
36
|
+
], ot = { key: 1 }, st = ["id"], ct = ["stop-color"], lt = ["stop-color"], ut = ["stop-color"], dt = [
|
|
37
|
+
"x",
|
|
38
|
+
"y",
|
|
39
|
+
"width",
|
|
40
|
+
"height",
|
|
41
|
+
"stroke",
|
|
42
|
+
"stroke-width",
|
|
43
|
+
"stroke-linecap",
|
|
44
|
+
"stroke-linejoin",
|
|
45
|
+
"stroke-dasharray"
|
|
46
|
+
], ft = [
|
|
47
|
+
"x1",
|
|
48
|
+
"x2",
|
|
49
|
+
"y1",
|
|
50
|
+
"y2",
|
|
51
|
+
"stroke",
|
|
52
|
+
"stroke-width",
|
|
53
|
+
"stroke-dasharray"
|
|
54
|
+
], pt = [
|
|
55
|
+
"x1",
|
|
56
|
+
"x2",
|
|
57
|
+
"y1",
|
|
58
|
+
"y2",
|
|
59
|
+
"stroke",
|
|
60
|
+
"stroke-width",
|
|
61
|
+
"stroke-dasharray"
|
|
62
|
+
], mt = [
|
|
63
|
+
"x1",
|
|
64
|
+
"x2",
|
|
65
|
+
"y1",
|
|
66
|
+
"y2",
|
|
67
|
+
"stroke",
|
|
68
|
+
"stroke-width",
|
|
69
|
+
"stroke-dasharray"
|
|
70
|
+
], ht = [
|
|
71
|
+
"x1",
|
|
72
|
+
"x2",
|
|
73
|
+
"y1",
|
|
74
|
+
"y2",
|
|
75
|
+
"stroke",
|
|
76
|
+
"stroke-width",
|
|
77
|
+
"stroke-dasharray"
|
|
78
|
+
], gt = { key: 0 }, _t = [
|
|
79
|
+
"x",
|
|
80
|
+
"y",
|
|
81
|
+
"height",
|
|
82
|
+
"rx",
|
|
83
|
+
"width",
|
|
84
|
+
"fill",
|
|
85
|
+
"stroke",
|
|
86
|
+
"stroke-width"
|
|
87
|
+
], vt = { key: 0 }, yt = [
|
|
88
|
+
"x",
|
|
89
|
+
"y",
|
|
90
|
+
"height",
|
|
91
|
+
"rx",
|
|
92
|
+
"width",
|
|
93
|
+
"fill",
|
|
94
|
+
"stroke",
|
|
95
|
+
"stroke-width"
|
|
96
|
+
], bt = [
|
|
97
|
+
"x",
|
|
98
|
+
"y",
|
|
99
|
+
"width",
|
|
100
|
+
"rx",
|
|
101
|
+
"height",
|
|
102
|
+
"fill",
|
|
103
|
+
"stroke",
|
|
104
|
+
"stroke-width"
|
|
105
|
+
], xt = { key: 0 }, St = [
|
|
106
|
+
"x",
|
|
107
|
+
"y",
|
|
108
|
+
"width",
|
|
109
|
+
"rx",
|
|
110
|
+
"height",
|
|
111
|
+
"fill",
|
|
112
|
+
"stroke",
|
|
113
|
+
"stroke-width"
|
|
114
|
+
], Ct = [
|
|
115
|
+
"x1",
|
|
116
|
+
"x2",
|
|
117
|
+
"y1",
|
|
118
|
+
"y2",
|
|
119
|
+
"stroke",
|
|
120
|
+
"stroke-width"
|
|
121
|
+
], wt = [
|
|
122
|
+
"x1",
|
|
123
|
+
"x2",
|
|
124
|
+
"y1",
|
|
125
|
+
"y2",
|
|
126
|
+
"stroke",
|
|
127
|
+
"stroke-width"
|
|
128
|
+
], Tt = [
|
|
129
|
+
"x",
|
|
130
|
+
"y",
|
|
131
|
+
"font-size",
|
|
132
|
+
"fill",
|
|
133
|
+
"font-weight"
|
|
134
|
+
], Et = [
|
|
135
|
+
"transform",
|
|
136
|
+
"font-size",
|
|
137
|
+
"fill",
|
|
138
|
+
"font-weight"
|
|
139
|
+
], Dt = [
|
|
140
|
+
"x",
|
|
141
|
+
"y",
|
|
142
|
+
"font-size",
|
|
143
|
+
"fill",
|
|
144
|
+
"font-weight"
|
|
145
|
+
], Ot = [
|
|
146
|
+
"x",
|
|
147
|
+
"y",
|
|
148
|
+
"font-size",
|
|
149
|
+
"font-weight",
|
|
150
|
+
"fill"
|
|
151
|
+
], kt = [
|
|
152
|
+
"x",
|
|
153
|
+
"y",
|
|
154
|
+
"font-size",
|
|
155
|
+
"fill",
|
|
156
|
+
"font-weight"
|
|
157
|
+
], At = [
|
|
158
|
+
"x",
|
|
159
|
+
"y",
|
|
160
|
+
"font-size",
|
|
161
|
+
"font-weight",
|
|
162
|
+
"fill"
|
|
163
|
+
], jt = [
|
|
164
|
+
"x1",
|
|
165
|
+
"x2",
|
|
166
|
+
"y1",
|
|
167
|
+
"y2",
|
|
168
|
+
"stroke"
|
|
169
|
+
], Mt = [
|
|
170
|
+
"x",
|
|
171
|
+
"y",
|
|
172
|
+
"font-size",
|
|
173
|
+
"font-weight",
|
|
174
|
+
"fill",
|
|
175
|
+
"text-anchor"
|
|
176
|
+
], Nt = [
|
|
177
|
+
"x1",
|
|
178
|
+
"x2",
|
|
179
|
+
"y1",
|
|
180
|
+
"y2",
|
|
181
|
+
"stroke"
|
|
182
|
+
], Pt = [
|
|
183
|
+
"font-size",
|
|
184
|
+
"font-weight",
|
|
185
|
+
"fill",
|
|
186
|
+
"text-anchor",
|
|
187
|
+
"transform"
|
|
188
|
+
], Ft = { key: 0 }, It = { key: 1 }, Lt = [
|
|
189
|
+
"text-anchor",
|
|
190
|
+
"font-size",
|
|
191
|
+
"font-weight",
|
|
192
|
+
"fill",
|
|
193
|
+
"transform",
|
|
194
|
+
"onClick"
|
|
195
|
+
], Rt = [
|
|
196
|
+
"text-anchor",
|
|
197
|
+
"font-size",
|
|
198
|
+
"fill",
|
|
199
|
+
"transform",
|
|
200
|
+
"innerHTML",
|
|
201
|
+
"onClick"
|
|
202
|
+
], zt = { key: 0 }, Bt = { key: 1 }, Vt = [
|
|
203
|
+
"font-size",
|
|
204
|
+
"font-weight",
|
|
205
|
+
"fill",
|
|
206
|
+
"x",
|
|
207
|
+
"y",
|
|
208
|
+
"onClick"
|
|
209
|
+
], Ht = [
|
|
210
|
+
"font-size",
|
|
211
|
+
"font-weight",
|
|
212
|
+
"fill",
|
|
213
|
+
"x",
|
|
214
|
+
"y",
|
|
215
|
+
"onClick",
|
|
216
|
+
"innerHTML"
|
|
217
|
+
], Ut = [
|
|
218
|
+
"x",
|
|
219
|
+
"y",
|
|
220
|
+
"width",
|
|
221
|
+
"height",
|
|
222
|
+
"onClick",
|
|
223
|
+
"onMouseenter",
|
|
224
|
+
"onMouseleave",
|
|
225
|
+
"fill"
|
|
226
|
+
], Wt = [
|
|
227
|
+
"x",
|
|
228
|
+
"y",
|
|
229
|
+
"width",
|
|
230
|
+
"height",
|
|
231
|
+
"onClick",
|
|
232
|
+
"onMouseenter",
|
|
233
|
+
"onMouseleave",
|
|
234
|
+
"fill"
|
|
235
|
+
], Gt = ["data-start", "data-end"], Kt = {
|
|
236
|
+
key: 0,
|
|
237
|
+
style: {
|
|
238
|
+
position: "absolute",
|
|
239
|
+
top: "100%",
|
|
240
|
+
left: "0",
|
|
241
|
+
width: "100%"
|
|
242
|
+
},
|
|
243
|
+
"data-dom-to-png-ignore": "",
|
|
244
|
+
"aria-hidden": "true"
|
|
245
|
+
}, qt = {
|
|
246
|
+
key: 4,
|
|
247
|
+
class: "vue-data-ui-watermark"
|
|
248
|
+
}, Jt = [
|
|
249
|
+
"x",
|
|
250
|
+
"y",
|
|
251
|
+
"height",
|
|
252
|
+
"width",
|
|
253
|
+
"fill",
|
|
254
|
+
"stroke"
|
|
255
|
+
], Yt = ["id"], Xt = ["onClick"], Zt = ["innerHTML"], Qt = /* @__PURE__ */ De({
|
|
256
|
+
__name: "vue-ui-stackbar",
|
|
257
|
+
props: {
|
|
258
|
+
config: {
|
|
259
|
+
type: Object,
|
|
260
|
+
default() {
|
|
261
|
+
return {};
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
dataset: {
|
|
265
|
+
type: Array,
|
|
266
|
+
default() {
|
|
267
|
+
return [];
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
selectedXIndex: {
|
|
271
|
+
type: Number,
|
|
272
|
+
default: void 0
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
emits: [
|
|
276
|
+
"selectDatapoint",
|
|
277
|
+
"selectLegend",
|
|
278
|
+
"selectTimeLabel",
|
|
279
|
+
"selectX",
|
|
280
|
+
"copyAlt"
|
|
281
|
+
],
|
|
282
|
+
setup(e, { expose: De, emit: $e }) {
|
|
283
|
+
let Qt = Ve(() => import("./Tooltip-BENq327o.js")), $t = Ve(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), en = Ve(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), tn = Ve(() => import("./DataTable-B--IN22e.js")), nn = Ve(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), rn = Ve(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), an = Ve(() => import("./PackageVersion-BYcZLGDG.js").then((e) => e.t)), on = Ve(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_stackbar: sn } = he(), { isThemeValid: cn, warnInvalidTheme: ln } = xe(), un = Xe(), M = e, N = $e, dn = _({
|
|
284
|
+
get() {
|
|
285
|
+
return !!M.dataset && M.dataset.length;
|
|
286
|
+
},
|
|
287
|
+
set(e) {
|
|
288
|
+
return e;
|
|
289
|
+
}
|
|
290
|
+
}), P = E(null), F = E(s()), fn = E(!1), pn = E(null), mn = E(""), I = E([]), hn = E(0), gn = E(null), _n = E(null), vn = E(null), yn = E(null), bn = E(!1), L = E(null), xn = E(!1), Sn = E(0), Cn = E(0), wn = E(0), Tn = E(!1), En = E(null), Dn = E(null), On = E(!1), kn = E(!1), An = E(null), jn = E(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = E(null), In = Je(null), Ln = E(!1), Rn = E(0), zn = E(0), R = E(null), Bn = E({
|
|
291
|
+
x: 0,
|
|
292
|
+
y: 0
|
|
293
|
+
}), Vn = E("pointer"), Hn = Se({
|
|
294
|
+
elementRef: In,
|
|
295
|
+
minimumWidth: 2,
|
|
296
|
+
minimumHeight: 2,
|
|
297
|
+
stableFramesRequired: 2,
|
|
298
|
+
once: !1,
|
|
299
|
+
onSizeAccepted: () => {
|
|
300
|
+
Gn();
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
function Un() {
|
|
304
|
+
In.value = P.value?.parentNode ?? null;
|
|
305
|
+
}
|
|
306
|
+
function Wn() {
|
|
307
|
+
return new Promise((e) => {
|
|
308
|
+
requestAnimationFrame(() => {
|
|
309
|
+
requestAnimationFrame(e);
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
async function Gn() {
|
|
314
|
+
let e = ++zn.value;
|
|
315
|
+
Ln.value = !1, await Ue(), await Wn(), await Wn(), e === zn.value && (Rn.value += 1, Ln.value = !0);
|
|
316
|
+
}
|
|
317
|
+
let Kn = E(null);
|
|
318
|
+
Ke(() => {
|
|
319
|
+
Tn.value = !0, Un(), Hn.start(), mr();
|
|
320
|
+
});
|
|
321
|
+
let z = E(rr()), B = _(() => z.value.userOptions.useCursorPointer), qn = _(() => n({
|
|
322
|
+
defaultConfig: {
|
|
323
|
+
userOptions: { show: !1 },
|
|
324
|
+
useCssAnimation: !1,
|
|
325
|
+
table: { show: !1 },
|
|
326
|
+
tooltip: { show: !1 },
|
|
327
|
+
style: { chart: {
|
|
328
|
+
backgroundColor: "#99999930",
|
|
329
|
+
bars: {
|
|
330
|
+
totalValues: { show: !1 },
|
|
331
|
+
dataLabels: { show: !1 }
|
|
332
|
+
},
|
|
333
|
+
grid: {
|
|
334
|
+
frame: { stroke: "#6A6A6A" },
|
|
335
|
+
scale: {
|
|
336
|
+
scaleMin: 0,
|
|
337
|
+
scaleMax: 40
|
|
338
|
+
},
|
|
339
|
+
x: {
|
|
340
|
+
axisColor: "#6A6A6A",
|
|
341
|
+
linesColor: "#6A6A6A",
|
|
342
|
+
axisName: { show: !1 },
|
|
343
|
+
timeLabels: { show: !1 }
|
|
344
|
+
},
|
|
345
|
+
y: {
|
|
346
|
+
axisColor: "#6A6A6A",
|
|
347
|
+
linesColor: "#6A6A6A",
|
|
348
|
+
axisName: { show: !1 },
|
|
349
|
+
axisLabels: { show: !1 }
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
legend: { backgroundColor: "transparent" },
|
|
353
|
+
padding: {
|
|
354
|
+
left: 24,
|
|
355
|
+
right: 24,
|
|
356
|
+
bottom: 12
|
|
357
|
+
},
|
|
358
|
+
zoom: {
|
|
359
|
+
show: !1,
|
|
360
|
+
startIndex: null,
|
|
361
|
+
endIndex: null
|
|
362
|
+
}
|
|
363
|
+
} }
|
|
364
|
+
},
|
|
365
|
+
userConfig: z.value.skeletonConfig ?? {}
|
|
366
|
+
})), { loading: Jn, FINAL_DATASET: Yn, manualLoading: Xn } = _e({
|
|
367
|
+
...Ye(M),
|
|
368
|
+
FINAL_CONFIG: z,
|
|
369
|
+
prepareConfig: rr,
|
|
370
|
+
callback: () => {
|
|
371
|
+
Promise.resolve().then(async () => {
|
|
372
|
+
(!z.value.style.chart.zoom.keepState || !Li.value || J.value.start === 0 && J.value.end === 0) && await Ri();
|
|
373
|
+
});
|
|
374
|
+
},
|
|
375
|
+
skeletonDataset: M.config?.skeletonDataset ?? [{
|
|
376
|
+
name: "",
|
|
377
|
+
series: [
|
|
378
|
+
2,
|
|
379
|
+
3,
|
|
380
|
+
5,
|
|
381
|
+
8,
|
|
382
|
+
13,
|
|
383
|
+
21
|
|
384
|
+
],
|
|
385
|
+
color: "#BABABA"
|
|
386
|
+
}, {
|
|
387
|
+
name: "",
|
|
388
|
+
series: [
|
|
389
|
+
1,
|
|
390
|
+
2,
|
|
391
|
+
3,
|
|
392
|
+
5,
|
|
393
|
+
8,
|
|
394
|
+
13
|
|
395
|
+
],
|
|
396
|
+
color: "#CACACA"
|
|
397
|
+
}],
|
|
398
|
+
skeletonConfig: n({
|
|
399
|
+
defaultConfig: z.value,
|
|
400
|
+
userConfig: qn.value
|
|
401
|
+
})
|
|
402
|
+
}), { userOptionsVisible: Zn, setUserOptionsVisibility: Qn, keepUserOptionState: $n } = Ne({ config: z.value }), { svgRef: er } = Pe({ config: z.value.style.chart.title });
|
|
403
|
+
function tr() {
|
|
404
|
+
Qn(!0);
|
|
405
|
+
}
|
|
406
|
+
function nr() {
|
|
407
|
+
Qn(!1), N("selectX", {
|
|
408
|
+
index: null,
|
|
409
|
+
indexLabel: null,
|
|
410
|
+
dataset: null
|
|
411
|
+
}), L.value = null, R.value = null, fn.value = !1;
|
|
412
|
+
}
|
|
413
|
+
function rr() {
|
|
414
|
+
let e = be({
|
|
415
|
+
userConfig: M.config,
|
|
416
|
+
defaultConfig: sn
|
|
417
|
+
}), t = {}, n = e.theme;
|
|
418
|
+
if (n) if (!cn.value(e)) ln(e), t = e;
|
|
419
|
+
else {
|
|
420
|
+
let r = be({
|
|
421
|
+
userConfig: Ie[n] || M.config,
|
|
422
|
+
defaultConfig: e
|
|
423
|
+
});
|
|
424
|
+
t = {
|
|
425
|
+
...be({
|
|
426
|
+
userConfig: M.config,
|
|
427
|
+
defaultConfig: r
|
|
428
|
+
}),
|
|
429
|
+
customPalette: e.customPalette.length ? e.customPalette : d[n] || a
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
else t = e;
|
|
433
|
+
return t;
|
|
434
|
+
}
|
|
435
|
+
let ir = _(() => z.value.style.chart.bars.dataLabels.hideUnderValue != null), ar = _(() => z.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
|
|
436
|
+
Ze(() => M.config, (e) => {
|
|
437
|
+
Jn.value || (z.value = rr()), Zn.value = !z.value.userOptions.showOnChartHover, mr({ resetSlicer: !z.value.style.chart.zoom.keepState }), Sn.value += 1, Cn.value += 1, wn.value += 1, V.value.dataLabels.show = z.value.style.chart.bars.dataLabels.show, V.value.showTable = z.value.table.show, V.value.showTooltip = z.value.style.chart.tooltip.show, Un(), !z.value.style.chart.zoom.keepState || !Li.value || J.value.start === 0 && J.value.end === 0 ? Ri() : kr();
|
|
438
|
+
}, { deep: !0 }), Ze(() => M.dataset, (e) => {
|
|
439
|
+
Array.isArray(e) && e.length > 0 && (Xn.value = !1), Un(), z.value.style.chart.zoom.keepState ? kr() : Mr();
|
|
440
|
+
}, { deep: !0 });
|
|
441
|
+
let V = E({
|
|
442
|
+
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
443
|
+
showTable: z.value.table.show,
|
|
444
|
+
showTooltip: z.value.style.chart.tooltip.show
|
|
445
|
+
});
|
|
446
|
+
Ze(z, () => {
|
|
447
|
+
V.value = {
|
|
448
|
+
dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
|
|
449
|
+
showTable: z.value.table.show,
|
|
450
|
+
showTooltip: z.value.style.chart.tooltip.show
|
|
451
|
+
};
|
|
452
|
+
}, { immediate: !0 });
|
|
453
|
+
let { isPrinting: or, isImaging: sr, generatePdf: cr, generateImage: lr } = ge({
|
|
454
|
+
elementId: `stackbar_${F.value}`,
|
|
455
|
+
fileName: z.value.style.chart.title.text || "vue-ui-stackbar",
|
|
456
|
+
options: z.value.userOptions.print
|
|
457
|
+
}), H = E({
|
|
458
|
+
width: z.value.style.chart.width,
|
|
459
|
+
height: z.value.style.chart.height,
|
|
460
|
+
paddingRatio: {
|
|
461
|
+
top: z.value.style.chart.padding.top / z.value.style.chart.height,
|
|
462
|
+
right: z.value.style.chart.padding.right / z.value.style.chart.width,
|
|
463
|
+
bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
|
|
464
|
+
left: z.value.style.chart.padding.left / z.value.style.chart.width
|
|
465
|
+
}
|
|
466
|
+
}), ur = _(() => ue(z.value.customPalette)), U = Je(null), dr = Je(null), fr = E(null), pr = _(() => !!z.value.debug);
|
|
467
|
+
function mr({ resetSlicer: e = !0 } = {}) {
|
|
468
|
+
if (r(M.dataset) ? (ee({
|
|
469
|
+
componentName: "VueUiStackbar",
|
|
470
|
+
type: "dataset",
|
|
471
|
+
debug: pr.value
|
|
472
|
+
}), Xn.value = !0) : M.dataset.forEach((e, t) => {
|
|
473
|
+
ae({
|
|
474
|
+
datasetObject: e,
|
|
475
|
+
requiredAttributes: ["name", "series"]
|
|
476
|
+
}).forEach((e) => {
|
|
477
|
+
dn.value = !1, ee({
|
|
478
|
+
componentName: "VueUiStackbar",
|
|
479
|
+
type: "datasetSerieAttribute",
|
|
480
|
+
property: e,
|
|
481
|
+
index: t,
|
|
482
|
+
debug: pr.value
|
|
483
|
+
}), Xn.value = !0;
|
|
484
|
+
});
|
|
485
|
+
}), r(M.dataset) || (Xn.value = z.value.loading), setTimeout(() => {
|
|
486
|
+
xn.value = !0;
|
|
487
|
+
}, 10), z.value.responsive) {
|
|
488
|
+
let e = Oe(() => {
|
|
489
|
+
xn.value = !1;
|
|
490
|
+
let { width: e, height: t } = ke({
|
|
491
|
+
chart: P.value,
|
|
492
|
+
title: z.value.style.chart.title.text ? gn.value : null,
|
|
493
|
+
legend: z.value.style.chart.legend.show ? _n.value : null,
|
|
494
|
+
slicer: z.value.style.chart.zoom.show && q.value > 6 ? vn.value.$el : null,
|
|
495
|
+
source: yn.value
|
|
496
|
+
});
|
|
497
|
+
requestAnimationFrame(() => {
|
|
498
|
+
H.value.width = e, H.value.height = t - 12, clearTimeout(fr.value), fr.value = setTimeout(() => {
|
|
499
|
+
xn.value = !0;
|
|
500
|
+
}, 10);
|
|
501
|
+
});
|
|
502
|
+
});
|
|
503
|
+
U.value && (dr.value && U.value.unobserve(dr.value), U.value.disconnect()), U.value = new ResizeObserver(e), dr.value = P.value.parentNode, U.value.observe(dr.value);
|
|
504
|
+
}
|
|
505
|
+
Gn(), e && Ri();
|
|
506
|
+
}
|
|
507
|
+
Ge(() => {
|
|
508
|
+
Hn.stop(), U.value && (dr.value && U.value.unobserve(dr.value), U.value.disconnect());
|
|
509
|
+
});
|
|
510
|
+
let W = _(() => z.value.style.chart.grid.y.position === "right");
|
|
511
|
+
function hr() {
|
|
512
|
+
let e = 0;
|
|
513
|
+
z.value.orientation === "vertical" && Mn.value && (e = Array.from(Mn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
514
|
+
let n = t.getComputedTextLength();
|
|
515
|
+
return n > e ? n : e;
|
|
516
|
+
}, 0)), z.value.orientation === "horizontal" && Nn.value && (e = Array.from(Nn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
517
|
+
let n = t.getComputedTextLength();
|
|
518
|
+
return n > e ? n : e;
|
|
519
|
+
}, 0));
|
|
520
|
+
let t = jn.value ? jn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
|
|
521
|
+
return {
|
|
522
|
+
left: W.value ? 0 : e + t,
|
|
523
|
+
right: W.value ? e + t : 0,
|
|
524
|
+
scaleLabelsWidth: e,
|
|
525
|
+
yAxisLabelWidth: t
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
let gr = E(0), _r = E(0), vr = Oe((e) => {
|
|
529
|
+
_r.value = e + z.value.style.chart.bars.totalValues.fontSize;
|
|
530
|
+
}, 100);
|
|
531
|
+
function yr() {
|
|
532
|
+
if (z.value.orientation !== "horizontal") return 0;
|
|
533
|
+
let e = Fn.value;
|
|
534
|
+
if (!e) return 0;
|
|
535
|
+
let t = Array.from(e.querySelectorAll("text"));
|
|
536
|
+
if (!t.length) return 0;
|
|
537
|
+
let n = -Infinity;
|
|
538
|
+
for (let e of t) try {
|
|
539
|
+
let t = e.getBBox(), r = t.x + t.width;
|
|
540
|
+
r > n && (n = r);
|
|
541
|
+
} catch {}
|
|
542
|
+
return Math.max(0, n - (G.value?.right ?? 0));
|
|
543
|
+
}
|
|
544
|
+
Qe((e) => {
|
|
545
|
+
if (z.value.orientation !== "horizontal") return;
|
|
546
|
+
let t = Fn.value;
|
|
547
|
+
if (!t) return;
|
|
548
|
+
let n = () => {
|
|
549
|
+
vr(yr());
|
|
550
|
+
};
|
|
551
|
+
n();
|
|
552
|
+
let r = new ResizeObserver(n);
|
|
553
|
+
r.observe(t);
|
|
554
|
+
let a = new MutationObserver(n);
|
|
555
|
+
a.observe(t, {
|
|
556
|
+
childList: !0,
|
|
557
|
+
subtree: !0,
|
|
558
|
+
characterData: !0
|
|
559
|
+
}), e(() => {
|
|
560
|
+
r.disconnect(), a.disconnect();
|
|
561
|
+
});
|
|
562
|
+
}), Ge(() => {
|
|
563
|
+
gr.value = 0, _r.value = 0;
|
|
564
|
+
});
|
|
565
|
+
let br = E(0), xr = E(0);
|
|
566
|
+
function Sr() {
|
|
567
|
+
let e = z.value.orientation === "vertical" ? Nn.value : Mn.value;
|
|
568
|
+
if (!e) {
|
|
569
|
+
br.value = 0;
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
try {
|
|
573
|
+
let t = e.getBBox();
|
|
574
|
+
br.value = Number.isFinite(t?.height) ? t.height : 0;
|
|
575
|
+
} catch {
|
|
576
|
+
br.value = 0;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
function Cr() {
|
|
580
|
+
xr.value && cancelAnimationFrame(xr.value), xr.value = requestAnimationFrame(() => {
|
|
581
|
+
requestAnimationFrame(() => {
|
|
582
|
+
Sr();
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
Ge(() => {
|
|
587
|
+
xr.value && cancelAnimationFrame(xr.value);
|
|
588
|
+
});
|
|
589
|
+
let wr = _(() => {
|
|
590
|
+
let e = 0;
|
|
591
|
+
if (An.value) try {
|
|
592
|
+
e = An.value.getBBox().height;
|
|
593
|
+
} catch {
|
|
594
|
+
e = 0;
|
|
595
|
+
}
|
|
596
|
+
let t = z.value.style.chart.grid.x.timeLabels.show ? br.value : 0;
|
|
597
|
+
return e + t;
|
|
598
|
+
}), G = _(() => {
|
|
599
|
+
Rn.value;
|
|
600
|
+
let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = z.value.style.chart.bars.totalValues.show && M.dataset && M.dataset.length > 1 ? z.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
|
|
601
|
+
if (z.value.style.chart.grid.y.axisLabels.show) {
|
|
602
|
+
let e = hr();
|
|
603
|
+
a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
|
|
604
|
+
}
|
|
605
|
+
let l = z.value.style.chart.padding.top + r, u = t - t * n - _r.value - o, d = e - z.value.style.chart.padding.bottom - wr.value - r, f = z.value.style.chart.padding.left + a, p = t - f - t * n - _r.value - o, ee = e - l - z.value.style.chart.padding.bottom - wr.value - r;
|
|
606
|
+
return {
|
|
607
|
+
chartHeight: e,
|
|
608
|
+
chartWidth: t,
|
|
609
|
+
top: l,
|
|
610
|
+
right: u,
|
|
611
|
+
bottom: d,
|
|
612
|
+
left: f,
|
|
613
|
+
width: Math.max(0, p),
|
|
614
|
+
height: Math.max(0, ee),
|
|
615
|
+
offsetLeft: a,
|
|
616
|
+
offsetRightAxis: o,
|
|
617
|
+
scaleLabelsWidth: s,
|
|
618
|
+
yAxisLabelWidth: c
|
|
619
|
+
};
|
|
620
|
+
}), Tr = _(() => {
|
|
621
|
+
let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
|
|
622
|
+
fill: z.value.style.chart.zoom.preview.fill,
|
|
623
|
+
stroke: z.value.style.chart.zoom.preview.stroke,
|
|
624
|
+
"stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
|
|
625
|
+
"stroke-dasharray": z.value.style.chart.zoom.preview.strokeDasharray,
|
|
626
|
+
"stroke-linecap": "round",
|
|
627
|
+
"stroke-linejoin": "round",
|
|
628
|
+
style: {
|
|
629
|
+
pointerEvents: "none",
|
|
630
|
+
transition: "none !important",
|
|
631
|
+
animation: "none !important"
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
if (z.value.orientation === "horizontal") {
|
|
635
|
+
let a = r / s;
|
|
636
|
+
return {
|
|
637
|
+
x: e,
|
|
638
|
+
y: t + c * a,
|
|
639
|
+
width: n,
|
|
640
|
+
height: u * a,
|
|
641
|
+
...d
|
|
642
|
+
};
|
|
643
|
+
} else {
|
|
644
|
+
let a = n / s;
|
|
645
|
+
return {
|
|
646
|
+
x: e + c * a,
|
|
647
|
+
y: t,
|
|
648
|
+
width: u * a,
|
|
649
|
+
height: r,
|
|
650
|
+
...d
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
}), K = _(() => Yn.value.map((e, t) => {
|
|
654
|
+
let n = `stackbar_serie_${t}`, r = de(e.color) || ur.value[t] || a[t] || a[t % a.length];
|
|
655
|
+
return {
|
|
656
|
+
...e,
|
|
657
|
+
series: JSON.parse(JSON.stringify(e.series)).map((e) => z.value.style.chart.bars.distributed ? Math.abs(e) : e),
|
|
658
|
+
signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
|
|
659
|
+
absoluteIndex: t,
|
|
660
|
+
id: n,
|
|
661
|
+
color: r
|
|
662
|
+
};
|
|
663
|
+
})), q = _(() => {
|
|
664
|
+
let e = Math.max(...K.value.filter((e) => !I.value.includes(e.id)).map((e) => e.series.length));
|
|
665
|
+
return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
|
|
666
|
+
});
|
|
667
|
+
function Er(e) {
|
|
668
|
+
Kn.value = e;
|
|
669
|
+
}
|
|
670
|
+
let J = E({
|
|
671
|
+
start: 0,
|
|
672
|
+
end: Math.max(...Yn.value.map((e) => e.series.length))
|
|
673
|
+
}), Y = E({
|
|
674
|
+
start: 0,
|
|
675
|
+
end: Math.max(...Yn.value.map((e) => e.series.length))
|
|
676
|
+
}), Dr = _(() => z.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
677
|
+
function Or(e, t) {
|
|
678
|
+
Y.value[e] = t;
|
|
679
|
+
}
|
|
680
|
+
function kr() {
|
|
681
|
+
let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
682
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, vn.value && (vn.value.setStartValue(t), vn.value.setEndValue(n));
|
|
683
|
+
}
|
|
684
|
+
let Ar = E(null);
|
|
685
|
+
function jr() {
|
|
686
|
+
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
687
|
+
}
|
|
688
|
+
Ge(() => {
|
|
689
|
+
Ar.value && cancelAnimationFrame(Ar.value);
|
|
690
|
+
});
|
|
691
|
+
async function Mr({ force: e = !1 } = {}) {
|
|
692
|
+
if (z.value.style.chart.zoom.keepState && !e && Li.value && !(J.value.start === 0 && J.value.end === 0)) {
|
|
693
|
+
kr();
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
Ri(), await Ue(), Ar.value && cancelAnimationFrame(Ar.value), Ar.value = requestAnimationFrame(async () => {
|
|
697
|
+
await jr(), Ri();
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
let X = _(() => {
|
|
701
|
+
let e;
|
|
702
|
+
return e = z.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
|
|
703
|
+
}), Nr = _(() => c(K.value.filter((e) => !I.value.includes(e.id))).slice(J.value.start, J.value.end)), Pr = _(() => I.value.length === K.value.length), Fr = _(() => z.value.style.chart.zoom.minimap.show ? c(K.value.map((e) => ({
|
|
704
|
+
...e,
|
|
705
|
+
series: e.series.map((e) => e ?? 0)
|
|
706
|
+
})).filter((e) => Pr.value ? !0 : !I.value.includes(e.id))) : []), Ir = _(() => z.value.style.chart.zoom.minimap.show ? [{
|
|
707
|
+
name: "",
|
|
708
|
+
series: Fr.value,
|
|
709
|
+
color: "#000000",
|
|
710
|
+
isVisible: !0
|
|
711
|
+
}] : []), Lr = _(() => c(K.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
|
|
712
|
+
...e,
|
|
713
|
+
series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
|
|
714
|
+
}))).slice(J.value.start, J.value.end)), Rr = _(() => {
|
|
715
|
+
let e = K.value.filter((e) => !I.value.includes(e.id));
|
|
716
|
+
return {
|
|
717
|
+
positive: c(e.map((e) => ({
|
|
718
|
+
...e,
|
|
719
|
+
series: e.series.slice(J.value.start, J.value.end).map((e) => e >= 0 ? e : 0)
|
|
720
|
+
}))),
|
|
721
|
+
negative: c(e.map((e) => ({
|
|
722
|
+
...e,
|
|
723
|
+
series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
|
|
724
|
+
})))
|
|
725
|
+
};
|
|
726
|
+
}), Z = _(() => {
|
|
727
|
+
let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...Rr.value.positive), t = Math.min(...Rr.value.negative), n = z.value.style.chart.grid.scale.scaleMin !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMin : [
|
|
728
|
+
-Infinity,
|
|
729
|
+
Infinity,
|
|
730
|
+
NaN,
|
|
731
|
+
void 0,
|
|
732
|
+
null
|
|
733
|
+
].includes(t) ? 0 : t, r = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? ne(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks) : re(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks);
|
|
734
|
+
return r.ticks.map((e) => ({
|
|
735
|
+
zero: G.value.bottom - G.value.height * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
|
|
736
|
+
y: G.value.bottom - G.value.height * ((e + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
|
|
737
|
+
x: W.value ? G.value.right + 8 : G.value.left - 8,
|
|
738
|
+
horizontal_zero: G.value.left + G.value.width * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
|
|
739
|
+
horizontal_x: G.value.left + G.value.width * ((e + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
|
|
740
|
+
horizontal_y: G.value.bottom - 8,
|
|
741
|
+
value: e
|
|
742
|
+
}));
|
|
743
|
+
}), Q = E([]), zr = E([]), Br = 0;
|
|
744
|
+
Qe(() => {
|
|
745
|
+
let e = ++Br;
|
|
746
|
+
(async () => {
|
|
747
|
+
let t = await me({
|
|
748
|
+
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
749
|
+
maxDatapoints: q.value,
|
|
750
|
+
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
751
|
+
start: J.value.start,
|
|
752
|
+
end: J.value.end
|
|
753
|
+
});
|
|
754
|
+
e === Br && (Q.value = t);
|
|
755
|
+
})();
|
|
756
|
+
});
|
|
757
|
+
let Vr = 0;
|
|
758
|
+
Qe(() => {
|
|
759
|
+
let e = ++Vr;
|
|
760
|
+
(async () => {
|
|
761
|
+
let t = await me({
|
|
762
|
+
values: z.value.style.chart.grid.x.timeLabels.values,
|
|
763
|
+
maxDatapoints: q.value,
|
|
764
|
+
formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
765
|
+
start: 0,
|
|
766
|
+
end: q.value
|
|
767
|
+
});
|
|
768
|
+
e === Vr && (zr.value = t);
|
|
769
|
+
})();
|
|
770
|
+
});
|
|
771
|
+
let Hr = _(() => {
|
|
772
|
+
let e = z.value.style.chart.grid.x.timeLabels.modulo;
|
|
773
|
+
return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
|
|
774
|
+
}), Ur = _(() => {
|
|
775
|
+
let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = zr.value || [], r = J.value.start ?? 0, a = L.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? "");
|
|
776
|
+
return ce(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), s, c, r, a, o);
|
|
777
|
+
});
|
|
778
|
+
Qe(() => {
|
|
779
|
+
z.value.orientation, z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, Ur.value?.map((e) => e?.text ?? "").join("|"), Z.value?.map((e) => e?.value ?? "").join("|"), H.value.width, H.value.height, Nn.value, Mn.value, An.value, Cr();
|
|
780
|
+
}, { flush: "post" });
|
|
781
|
+
let Wr = E({
|
|
782
|
+
months: [],
|
|
783
|
+
shortMonths: [],
|
|
784
|
+
days: [],
|
|
785
|
+
shortDays: []
|
|
786
|
+
}), Gr = 0;
|
|
787
|
+
Qe(() => {
|
|
788
|
+
let e = ++Gr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
789
|
+
(async () => {
|
|
790
|
+
let n = await pe(t.locale).catch(() => pe("en"));
|
|
791
|
+
e === Gr && (Wr.value = n.data);
|
|
792
|
+
})();
|
|
793
|
+
});
|
|
794
|
+
let Kr = _(() => {
|
|
795
|
+
let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = fe({
|
|
796
|
+
useUTC: e.useUTC,
|
|
797
|
+
locale: Wr.value,
|
|
798
|
+
januaryAsYear: e.januaryAsYear
|
|
799
|
+
});
|
|
800
|
+
return (e, n) => {
|
|
801
|
+
let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
802
|
+
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
803
|
+
};
|
|
804
|
+
}), qr = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
805
|
+
text: Kr.value(t, z.value.style.chart.zoom.timeFormat),
|
|
806
|
+
absoluteIndex: t
|
|
807
|
+
}))), Jr = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
808
|
+
text: Kr.value(t, z.value.style.chart.tooltip.timeFormat),
|
|
809
|
+
absoluteIndex: t
|
|
810
|
+
}))), $ = _(() => {
|
|
811
|
+
if (!dn.value && !Jn.value) return [];
|
|
812
|
+
let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Rr.value.positive) || 0, o = Math.min(...Rr.value.negative), s = [
|
|
813
|
+
-Infinity,
|
|
814
|
+
Infinity,
|
|
815
|
+
NaN,
|
|
816
|
+
void 0,
|
|
817
|
+
null
|
|
818
|
+
].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? ne(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : re(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width, p = Z.value[0] ? Z.value[0].zero : G.value.bottom, ee = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, te = Array(Fr.value.length).fill(0), m = Array(Fr.value.length).fill(0);
|
|
819
|
+
return K.value.filter((e) => !I.value.includes(e.id)).map((a) => {
|
|
820
|
+
let o = a.series.slice(), s = o.map((e, t) => te[t]), c = o.map((e, t) => m[t]);
|
|
821
|
+
o.forEach((e, t) => {
|
|
822
|
+
(Number(e) || 0) >= 0 ? te[t] += Number(e) || 0 : m[t] += Math.abs(Number(e) || 0);
|
|
823
|
+
});
|
|
824
|
+
let l = a.series.slice(J.value.start, J.value.end), ne = a.signedSeries.slice(J.value.start, J.value.end), re = l.map((e, t) => G.value.left + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), h = (Fr.value || []).filter(Number.isFinite), ie = h.length ? Math.max(...h) : 0, ae = h.length ? Math.min(...h) : 0;
|
|
825
|
+
function oe({ minimapH: e }) {
|
|
826
|
+
let t = 1e-9, n = ie > 0;
|
|
827
|
+
if (n && ae < 0) {
|
|
828
|
+
let n = Math.max(ie, Math.abs(ae)) || t;
|
|
829
|
+
return {
|
|
830
|
+
pxPerUnit: e / 2 / n,
|
|
831
|
+
zero: e / 2
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
return n ? {
|
|
835
|
+
pxPerUnit: e / Math.max(t, ie),
|
|
836
|
+
zero: e
|
|
837
|
+
} : {
|
|
838
|
+
pxPerUnit: e / Math.max(t, Math.abs(ae)),
|
|
839
|
+
zero: 0
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
let se = ({ left: e, unitW: t }) => {
|
|
843
|
+
let n = t * (z.value.style.chart.bars.gapRatio / 4);
|
|
844
|
+
return o.map((r, a) => e + t * a + n);
|
|
845
|
+
}, ce = l.map((e, t) => G.value.top + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), le = l.map((t, r) => {
|
|
846
|
+
let a = z.value.style.chart.bars.distributed ? (t || 0) / Nr.value[r] : (t || 0) / u, o, s;
|
|
847
|
+
return t > 0 ? (s = d * a, o = p - s - e[r], e[r] += s) : (s = d * a, o = p + n[r], n[r] += Math.abs(s)), o;
|
|
848
|
+
}), ue = ({ minimapH: e }) => {
|
|
849
|
+
if (z.value.style.chart.bars.distributed) return o.map((t, n) => {
|
|
850
|
+
let r = Math.abs(Number(t) || 0), a = Math.abs(Fr.value?.[n] || 0) || 1e-9;
|
|
851
|
+
return e - (s[n] + r) / a * e;
|
|
852
|
+
});
|
|
853
|
+
let { pxPerUnit: t, zero: n } = oe({ minimapH: e });
|
|
854
|
+
return o.map((e, r) => {
|
|
855
|
+
let a = Number(e) || 0;
|
|
856
|
+
return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
|
|
857
|
+
});
|
|
858
|
+
}, de = l.map((e, n) => {
|
|
859
|
+
let a = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[n] : (e || 0) / u, o, s;
|
|
860
|
+
return e > 0 ? (s = f * a, o = ee + t[n], t[n] += s) : (s = f * a, o = ee - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
|
|
861
|
+
}), fe = l.map((e, t) => {
|
|
862
|
+
let n = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / u;
|
|
863
|
+
return e > 0 ? d * n : d * Math.abs(n);
|
|
864
|
+
}), pe = ({ minimapH: e }) => {
|
|
865
|
+
if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Fr.value?.[n] || 0) || 1e-9) * e);
|
|
866
|
+
let { pxPerUnit: t } = oe({ minimapH: e });
|
|
867
|
+
return o.map((e) => Math.abs(Number(e) || 0) * t);
|
|
868
|
+
}, me = l.map((e, t) => {
|
|
869
|
+
let n = z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / u;
|
|
870
|
+
return e > 0 ? f * n : f * Math.abs(n);
|
|
871
|
+
}), he = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
|
|
872
|
+
return {
|
|
873
|
+
...a,
|
|
874
|
+
proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Nr.value[t] : (e || 0) / he),
|
|
875
|
+
series: l,
|
|
876
|
+
signedSeries: ne,
|
|
877
|
+
x: re,
|
|
878
|
+
y: le,
|
|
879
|
+
height: fe,
|
|
880
|
+
horizontal_width: me,
|
|
881
|
+
horizontal_y: ce,
|
|
882
|
+
horizontal_x: de,
|
|
883
|
+
xMinimap: se,
|
|
884
|
+
yMinimap: ue,
|
|
885
|
+
heightMinimap: pe
|
|
886
|
+
};
|
|
887
|
+
});
|
|
888
|
+
}), Yr = _(() => Lr.value.map((e, t) => ({
|
|
889
|
+
value: e,
|
|
890
|
+
sign: e >= 0 ? 1 : -1
|
|
891
|
+
})));
|
|
892
|
+
function Xr(e, t, n, r, a) {
|
|
893
|
+
let s = a === -1 && e >= 0 ? -e : e;
|
|
894
|
+
return h(z.value.style.chart.bars.dataLabels.formatter, s, o({
|
|
895
|
+
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
896
|
+
v: s,
|
|
897
|
+
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
898
|
+
r: z.value.style.chart.bars.dataLabels.rounding
|
|
899
|
+
}), {
|
|
900
|
+
datapoint: t,
|
|
901
|
+
seriesIndex: n,
|
|
902
|
+
datapointIndex: r
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
function Zr(e, t, n, r) {
|
|
906
|
+
return h(z.value.style.chart.bars.dataLabels.formatter, e, o({
|
|
907
|
+
v: isNaN(e) ? 0 : e,
|
|
908
|
+
s: "%",
|
|
909
|
+
r: z.value.style.chart.bars.dataLabels.rounding
|
|
910
|
+
}), {
|
|
911
|
+
datapoint: t,
|
|
912
|
+
seriesIndex: n,
|
|
913
|
+
datapointIndex: r
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
function Qr(e) {
|
|
917
|
+
let t = JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
918
|
+
name: t.name,
|
|
919
|
+
value: t.series[e] === 0 ? 0 : t.series[e] || null,
|
|
920
|
+
proportion: t.proportions[e] || null,
|
|
921
|
+
color: t.color,
|
|
922
|
+
id: t.id
|
|
923
|
+
}));
|
|
924
|
+
z.value.events.datapointClick && z.value.events.datapointClick({
|
|
925
|
+
datapoint: t,
|
|
926
|
+
seriesIndex: e + J.value.start
|
|
927
|
+
}), N("selectDatapoint", {
|
|
928
|
+
datapoint: t,
|
|
929
|
+
period: Q.value[e]
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
function $r(e) {
|
|
933
|
+
return JSON.parse(JSON.stringify($.value)).map((t) => ({
|
|
934
|
+
name: t.name,
|
|
935
|
+
absoluteIndex: t.absoluteIndex,
|
|
936
|
+
value: t.series[e] === 0 ? 0 : (t.signedSeries[e] === -1 && t.series[e] >= 0 ? -t.series[e] : t.series[e]) || null,
|
|
937
|
+
proportion: t.proportions[e] || null,
|
|
938
|
+
color: t.color,
|
|
939
|
+
id: t.id,
|
|
940
|
+
timeLabel: zr.value[e]
|
|
941
|
+
}));
|
|
942
|
+
}
|
|
943
|
+
function ei(e) {
|
|
944
|
+
if (z.value.events.datapointLeave) {
|
|
945
|
+
let t = $r(e);
|
|
946
|
+
z.value.events.datapointLeave({
|
|
947
|
+
datapoint: t,
|
|
948
|
+
seriesIndex: e + J.value.start
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
fn.value = !1, L.value = null, R.value === e && (R.value = null);
|
|
952
|
+
}
|
|
953
|
+
let ti = _(() => Array(q.value).fill(0).map((e, t) => $r(t)));
|
|
954
|
+
Ze(() => M.selectedXIndex, (e) => {
|
|
955
|
+
if ([null, void 0].includes(M.selectedXIndex)) {
|
|
956
|
+
L.value = null;
|
|
957
|
+
return;
|
|
958
|
+
}
|
|
959
|
+
let t = e - J.value.start;
|
|
960
|
+
t < 0 || e >= J.value.end ? L.value = null : L.value = t ?? null;
|
|
961
|
+
}, { immediate: !0 });
|
|
962
|
+
function ni(e) {
|
|
963
|
+
if (!z.value.style.chart.tooltip.showTimeLabel) return null;
|
|
964
|
+
let t = Q.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
|
|
965
|
+
return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
|
|
966
|
+
}
|
|
967
|
+
function ri(e, t = "pointer") {
|
|
968
|
+
if (Pr.value) return;
|
|
969
|
+
Vn.value = t, R.value = e, L.value = e, fn.value = !0;
|
|
970
|
+
let n = z.value.style.chart.tooltip.customFormat, r = $r(e);
|
|
971
|
+
Hi({
|
|
972
|
+
seriesIndex: e,
|
|
973
|
+
datapoint: r
|
|
974
|
+
}), z.value.events.datapointEnter && z.value.events.datapointEnter({
|
|
975
|
+
datapoint: r,
|
|
976
|
+
seriesIndex: e + J.value.start
|
|
977
|
+
}), pn.value = {
|
|
978
|
+
timeLabel: ni(e),
|
|
979
|
+
datapoint: r,
|
|
980
|
+
seriesIndex: e,
|
|
981
|
+
config: z.value,
|
|
982
|
+
series: $.value
|
|
983
|
+
};
|
|
984
|
+
let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), s = r.map((e) => m(e.value)).reduce((e, t) => e + t, 0);
|
|
985
|
+
if (oe(n) && ie(() => n({
|
|
986
|
+
seriesIndex: e,
|
|
987
|
+
datapoint: r,
|
|
988
|
+
series: $.value,
|
|
989
|
+
config: z.value
|
|
990
|
+
}))) mn.value = n({
|
|
991
|
+
seriesIndex: e,
|
|
992
|
+
datapoint: r,
|
|
993
|
+
series: $.value,
|
|
994
|
+
config: z.value
|
|
995
|
+
});
|
|
996
|
+
else {
|
|
997
|
+
let { showValue: t, showTotal: n, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage: f } = z.value.style.chart.tooltip, p = "", ee = ni(e);
|
|
998
|
+
ee && (p += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), n && (p += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
999
|
+
<span>${c}:</span>
|
|
1000
|
+
<span>
|
|
1001
|
+
${h(z.value.style.chart.bars.dataLabels.formatter, s, o({
|
|
1002
|
+
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1003
|
+
v: s,
|
|
1004
|
+
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1005
|
+
r: d
|
|
1006
|
+
}), { datapoint: {
|
|
1007
|
+
name: c,
|
|
1008
|
+
value: s
|
|
1009
|
+
} })}
|
|
1010
|
+
</span>
|
|
1011
|
+
</div>`);
|
|
1012
|
+
let te = [t && l ? "(" : "", t && l ? ")" : ""];
|
|
1013
|
+
r.reverse().forEach((e) => {
|
|
1014
|
+
p += `
|
|
1015
|
+
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
1016
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${un.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${F.value}_${e.absoluteIndex})"/>` : ""}</svg>
|
|
1017
|
+
${e.name}${t || l ? ":" : ""} ${t ? h(z.value.style.chart.bars.dataLabels.formatter, e.value, o({
|
|
1018
|
+
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1019
|
+
v: e.value,
|
|
1020
|
+
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1021
|
+
r: d
|
|
1022
|
+
}, { datapoint: e })) : ""} ${te[0]}${l ? o({
|
|
1023
|
+
v: isNaN(e.value / a) ? 0 : Math.abs(e.value) / a * 100,
|
|
1024
|
+
s: "%",
|
|
1025
|
+
r: f
|
|
1026
|
+
}) : ""}${te[1]}
|
|
1027
|
+
</div>
|
|
1028
|
+
`;
|
|
1029
|
+
}), mn.value = `<div>${p}</div>`;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
let ii = _(() => H.value.width), ai = _(() => H.value.height);
|
|
1033
|
+
Ce({
|
|
1034
|
+
timeLabelsEls: z.value.orientation === "vertical" ? Nn : Mn,
|
|
1035
|
+
timeLabels: Q,
|
|
1036
|
+
slicer: J,
|
|
1037
|
+
configRef: z,
|
|
1038
|
+
rotationPath: [
|
|
1039
|
+
"style",
|
|
1040
|
+
"chart",
|
|
1041
|
+
"grid",
|
|
1042
|
+
"x",
|
|
1043
|
+
"timeLabels",
|
|
1044
|
+
"rotation"
|
|
1045
|
+
],
|
|
1046
|
+
autoRotatePath: [
|
|
1047
|
+
"style",
|
|
1048
|
+
"chart",
|
|
1049
|
+
"grid",
|
|
1050
|
+
"x",
|
|
1051
|
+
"timeLabels",
|
|
1052
|
+
"autoRotate",
|
|
1053
|
+
"enable"
|
|
1054
|
+
],
|
|
1055
|
+
isAutoSize: !1,
|
|
1056
|
+
width: ii,
|
|
1057
|
+
height: ai,
|
|
1058
|
+
rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
1059
|
+
});
|
|
1060
|
+
function oi(e) {
|
|
1061
|
+
bn.value = e, hn.value += 1;
|
|
1062
|
+
}
|
|
1063
|
+
function si() {
|
|
1064
|
+
V.value.showTable = !V.value.showTable;
|
|
1065
|
+
}
|
|
1066
|
+
function ci() {
|
|
1067
|
+
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
1068
|
+
}
|
|
1069
|
+
function li() {
|
|
1070
|
+
V.value.showTooltip = !V.value.showTooltip;
|
|
1071
|
+
}
|
|
1072
|
+
function ui() {
|
|
1073
|
+
return $.value;
|
|
1074
|
+
}
|
|
1075
|
+
let di = _(() => {
|
|
1076
|
+
if ($.value.length === 0) return {
|
|
1077
|
+
head: [],
|
|
1078
|
+
body: [],
|
|
1079
|
+
config: {},
|
|
1080
|
+
columnNames: []
|
|
1081
|
+
};
|
|
1082
|
+
let e = $.value.map(({ name: e, color: t }) => ({
|
|
1083
|
+
label: e,
|
|
1084
|
+
color: t
|
|
1085
|
+
})), t = [];
|
|
1086
|
+
return Q.value.forEach((e) => {
|
|
1087
|
+
let n = [z.value.style.chart.grid.x.timeLabels.values[e.absoluteIndex] ? e.text : i + 1];
|
|
1088
|
+
K.value.forEach((t) => {
|
|
1089
|
+
n.push(Number((t.series[e.absoluteIndex] || 0).toFixed(z.value.table.td.roundingValue)));
|
|
1090
|
+
}), t.push(n);
|
|
1091
|
+
}), {
|
|
1092
|
+
head: e,
|
|
1093
|
+
body: t
|
|
1094
|
+
};
|
|
1095
|
+
});
|
|
1096
|
+
function fi(e = null) {
|
|
1097
|
+
let t = [
|
|
1098
|
+
[z.value.style.chart.title.text],
|
|
1099
|
+
[z.value.style.chart.title.subtitle.text],
|
|
1100
|
+
[""]
|
|
1101
|
+
], n = ["", ...di.value.head.map((e) => e.label)], r = di.value.body, a = f(t.concat([n]).concat(r));
|
|
1102
|
+
e ? e(a) : l({
|
|
1103
|
+
csvContent: a,
|
|
1104
|
+
title: z.value.style.chart.title.text || "vue-ui-stackbar"
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
let pi = _(() => {
|
|
1108
|
+
let e = [""].concat($.value.map((e) => e.name), " <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"), t = [], n = J.value.end - J.value.start;
|
|
1109
|
+
for (let e = 0; e < n; e += 1) {
|
|
1110
|
+
let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
1111
|
+
t.push([z.value.style.chart.grid.x.timeLabels.values[n] && Q.value[e]?.text || n + 1].concat($.value.map((t) => (t.series[e] ?? 0).toFixed(z.value.table.td.roundingValue)), (r ?? 0).toFixed(z.value.table.td.roundingValue)));
|
|
1112
|
+
}
|
|
1113
|
+
let r = {
|
|
1114
|
+
th: {
|
|
1115
|
+
backgroundColor: z.value.table.th.backgroundColor,
|
|
1116
|
+
color: z.value.table.th.color,
|
|
1117
|
+
outline: z.value.table.th.outline
|
|
1118
|
+
},
|
|
1119
|
+
td: {
|
|
1120
|
+
backgroundColor: z.value.table.td.backgroundColor,
|
|
1121
|
+
color: z.value.table.td.color,
|
|
1122
|
+
outline: z.value.table.td.outline
|
|
1123
|
+
},
|
|
1124
|
+
breakpoint: z.value.table.responsiveBreakpoint
|
|
1125
|
+
}, a = [z.value.table.columnNames.period].concat($.value.map((e) => e.name), z.value.table.columnNames.total);
|
|
1126
|
+
return {
|
|
1127
|
+
head: e,
|
|
1128
|
+
body: t.slice(0, J.value.end - J.value.start),
|
|
1129
|
+
config: r,
|
|
1130
|
+
colNames: a
|
|
1131
|
+
};
|
|
1132
|
+
});
|
|
1133
|
+
function mi() {
|
|
1134
|
+
I.value.length ? I.value = [] : yi.value.forEach((e) => {
|
|
1135
|
+
I.value.push(e.id);
|
|
1136
|
+
}), N("selectLegend", $.value);
|
|
1137
|
+
}
|
|
1138
|
+
function hi(e) {
|
|
1139
|
+
if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
|
|
1140
|
+
else {
|
|
1141
|
+
if (I.value.length === K.value.length - 1) return;
|
|
1142
|
+
I.value.push(e.id);
|
|
1143
|
+
}
|
|
1144
|
+
N("selectLegend", $.value);
|
|
1145
|
+
}
|
|
1146
|
+
function gi(e) {
|
|
1147
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiStackbar - There are no series to show."), null);
|
|
1148
|
+
}
|
|
1149
|
+
function _i(e) {
|
|
1150
|
+
let t = gi(e);
|
|
1151
|
+
t !== null && I.value.includes(t.id) && hi({ id: t.id });
|
|
1152
|
+
}
|
|
1153
|
+
function vi(e) {
|
|
1154
|
+
let t = gi(e);
|
|
1155
|
+
t !== null && (I.value.includes(t.id) || hi({ id: t.id }));
|
|
1156
|
+
}
|
|
1157
|
+
let yi = _(() => K.value.map((e, t) => ({
|
|
1158
|
+
...e,
|
|
1159
|
+
shape: "square"
|
|
1160
|
+
})).map((e) => ({
|
|
1161
|
+
...e,
|
|
1162
|
+
opacity: I.value.includes(e.id) ? .5 : 1,
|
|
1163
|
+
segregate: () => hi(e),
|
|
1164
|
+
isSegregated: I.value.includes(e.id)
|
|
1165
|
+
}))), bi = _(() => ({
|
|
1166
|
+
cy: "stackbar-legend",
|
|
1167
|
+
backgroundColor: z.value.style.chart.legend.backgroundColor,
|
|
1168
|
+
color: z.value.style.chart.legend.color,
|
|
1169
|
+
fontSize: z.value.style.chart.legend.fontSize,
|
|
1170
|
+
paddingBottom: 12,
|
|
1171
|
+
fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
|
|
1172
|
+
})), xi = E(!1);
|
|
1173
|
+
function Si() {
|
|
1174
|
+
xi.value = !xi.value;
|
|
1175
|
+
}
|
|
1176
|
+
function Ci(e, t) {
|
|
1177
|
+
N("selectTimeLabel", {
|
|
1178
|
+
datapoint: JSON.parse(JSON.stringify($.value)).map((e) => ({
|
|
1179
|
+
name: e.name,
|
|
1180
|
+
value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
|
|
1181
|
+
proportion: e.proportions[t] || null,
|
|
1182
|
+
color: e.color,
|
|
1183
|
+
id: e.id
|
|
1184
|
+
})),
|
|
1185
|
+
absoluteIndex: e.absoluteIndex,
|
|
1186
|
+
label: e.text
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
let wi = _(() => Math.max(...$.value.flatMap((e) => e.series)));
|
|
1190
|
+
function Ti(e, t) {
|
|
1191
|
+
return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ar.value ? t * 100 >= z.value.style.chart.bars.dataLabels.hideUnderPercentage : z.value.style.chart.bars.dataLabels.hideEmptyPercentages ? t > 0 : !0 : ar.value ? (ir.value && pr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > wi.value * z.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ir.value ? Math.abs(e) >= z.value.style.chart.bars.dataLabels.hideUnderValue : z.value.style.chart.bars.dataLabels.hideEmptyValues ? e !== 0 : !0;
|
|
1192
|
+
}
|
|
1193
|
+
async function Ei({ scale: e = 2 } = {}) {
|
|
1194
|
+
if (!P.value) return;
|
|
1195
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: a, base64: o } = await we({
|
|
1196
|
+
domElement: P.value,
|
|
1197
|
+
base64: !0,
|
|
1198
|
+
img: !0,
|
|
1199
|
+
scale: e
|
|
1200
|
+
});
|
|
1201
|
+
return {
|
|
1202
|
+
imageUri: a,
|
|
1203
|
+
base64: o,
|
|
1204
|
+
title: z.value.style.chart.title.text,
|
|
1205
|
+
width: t,
|
|
1206
|
+
height: n,
|
|
1207
|
+
aspectRatio: r
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
let Di = _(() => {
|
|
1211
|
+
let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
|
|
1212
|
+
return {
|
|
1213
|
+
component: e ? on : en,
|
|
1214
|
+
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1215
|
+
props: e ? {
|
|
1216
|
+
backgroundColor: z.value.table.th.backgroundColor,
|
|
1217
|
+
color: z.value.table.th.color,
|
|
1218
|
+
headerColor: z.value.table.th.color,
|
|
1219
|
+
headerBg: z.value.table.th.backgroundColor,
|
|
1220
|
+
isFullscreen: bn.value,
|
|
1221
|
+
fullscreenParent: P.value,
|
|
1222
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1223
|
+
isCursorPointer: B.value
|
|
1224
|
+
} : {
|
|
1225
|
+
hideDetails: !0,
|
|
1226
|
+
config: {
|
|
1227
|
+
open: t,
|
|
1228
|
+
maxHeight: 1e4,
|
|
1229
|
+
body: {
|
|
1230
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1231
|
+
color: z.value.style.chart.color
|
|
1232
|
+
},
|
|
1233
|
+
head: {
|
|
1234
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1235
|
+
color: z.value.style.chart.color
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
});
|
|
1241
|
+
Ze(() => V.value.showTable, (e) => {
|
|
1242
|
+
z.value.table.show || (e && z.value.table.useDialog && En.value ? En.value.open() : "close" in En.value && En.value.close());
|
|
1243
|
+
});
|
|
1244
|
+
function Oi() {
|
|
1245
|
+
V.value.showTable = !1, Dn.value && Dn.value.setTableIconState(!1);
|
|
1246
|
+
}
|
|
1247
|
+
let ki = _(() => z.value.style.chart.backgroundColor), Ai = _(() => z.value.style.chart.legend), { exportSvg: ji, getSvg: Mi } = ye({
|
|
1248
|
+
svg: er,
|
|
1249
|
+
title: _(() => z.value.style.chart.title),
|
|
1250
|
+
legend: Ai,
|
|
1251
|
+
legendItems: yi,
|
|
1252
|
+
backgroundColor: ki
|
|
1253
|
+
});
|
|
1254
|
+
async function Ni({ isCb: e }) {
|
|
1255
|
+
kn.value = !0, await Ue();
|
|
1256
|
+
try {
|
|
1257
|
+
if (e) {
|
|
1258
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Mi();
|
|
1259
|
+
await Promise.resolve(z.value.userOptions.callbacks.svg({
|
|
1260
|
+
blob: e,
|
|
1261
|
+
url: t,
|
|
1262
|
+
text: n,
|
|
1263
|
+
dataUrl: r
|
|
1264
|
+
}));
|
|
1265
|
+
} else await Promise.resolve(ji());
|
|
1266
|
+
} finally {
|
|
1267
|
+
kn.value = !1;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
function Pi(e) {
|
|
1271
|
+
if (e?.stage === "start") {
|
|
1272
|
+
On.value = !0;
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
if (e?.stage === "end") {
|
|
1276
|
+
On.value = !1;
|
|
1277
|
+
return;
|
|
1278
|
+
}
|
|
1279
|
+
lr();
|
|
1280
|
+
}
|
|
1281
|
+
function Fi(e) {
|
|
1282
|
+
let t = q.value;
|
|
1283
|
+
return e > t ? t : e < 0 || e < J.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
|
|
1284
|
+
}
|
|
1285
|
+
let Ii = E(!1), Li = E(!1);
|
|
1286
|
+
function Ri() {
|
|
1287
|
+
if (!Ii.value) {
|
|
1288
|
+
Ii.value = !0;
|
|
1289
|
+
try {
|
|
1290
|
+
let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, q.value) : q.value;
|
|
1291
|
+
if (n && r <= 0) return;
|
|
1292
|
+
let a = e ?? 0, o = t == null ? r : Math.min(Fi(t + 1), r);
|
|
1293
|
+
zi.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, kr(), Li.value = !0;
|
|
1294
|
+
} finally {
|
|
1295
|
+
queueMicrotask(() => {
|
|
1296
|
+
zi.value = !1;
|
|
1297
|
+
}), Ii.value = !1;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
let zi = E(!1);
|
|
1302
|
+
function Bi(e) {
|
|
1303
|
+
Ii.value || zi.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, kr());
|
|
1304
|
+
}
|
|
1305
|
+
function Vi(e) {
|
|
1306
|
+
if (Ii.value || zi.value) return;
|
|
1307
|
+
let t = Fi(e);
|
|
1308
|
+
t !== J.value.end && (J.value.end = t, Y.value.end = t, kr());
|
|
1309
|
+
}
|
|
1310
|
+
function Hi({ seriesIndex: e, datapoint: t }) {
|
|
1311
|
+
let n = J.value.start + e;
|
|
1312
|
+
N("selectX", {
|
|
1313
|
+
dataset: t,
|
|
1314
|
+
index: n,
|
|
1315
|
+
indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
function Ui() {
|
|
1319
|
+
return { y0: Z.value?.[0]?.zero ?? G.value.bottom };
|
|
1320
|
+
}
|
|
1321
|
+
function Wi(e) {
|
|
1322
|
+
let { y0: t } = Ui(), n = z.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
|
|
1323
|
+
for (let t of $.value || []) {
|
|
1324
|
+
let n = t?.series?.[e] ?? 0, r = t?.height?.[e] ?? 0, s = t?.y?.[e];
|
|
1325
|
+
n > 0 && r > 0 && Number.isFinite(s) && (o = !0, s < a && (a = s));
|
|
1326
|
+
}
|
|
1327
|
+
let s = (o && Number.isFinite(a) ? a : t) - r;
|
|
1328
|
+
return Math.min(Math.max(s, 0), G.value.bottom);
|
|
1329
|
+
}
|
|
1330
|
+
function Gi(e) {
|
|
1331
|
+
let { x0: t } = Ui(), n = Math.max(2, z.value.style.chart.bars.totalValues.fontSize * .3 + z.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
|
|
1332
|
+
for (let t of $.value || []) {
|
|
1333
|
+
let n = t?.series?.[e] ?? 0, o = t?.horizontal_x?.[e], s = t?.horizontal_width?.[e], c = Number.isFinite(s) ? Math.max(0, s) : 0;
|
|
1334
|
+
Number.isFinite(o) && n > 0 && c > 0 && (a = !0, r = Math.max(r, o + c));
|
|
1335
|
+
}
|
|
1336
|
+
return (a && Number.isFinite(r) ? r : t) + n;
|
|
1337
|
+
}
|
|
1338
|
+
async function Ki() {
|
|
1339
|
+
if (N("copyAlt", {
|
|
1340
|
+
config: z.value,
|
|
1341
|
+
dataset: $.value
|
|
1342
|
+
}), !z.value.userOptions.callbacks.altCopy) {
|
|
1343
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
await Promise.resolve(z.value.userOptions.callbacks.altCopy({
|
|
1347
|
+
config: z.value,
|
|
1348
|
+
dataset: $.value
|
|
1349
|
+
}));
|
|
1350
|
+
}
|
|
1351
|
+
let qi = E(!1);
|
|
1352
|
+
function Ji() {
|
|
1353
|
+
R.value = null, qi.value = !0;
|
|
1354
|
+
}
|
|
1355
|
+
function Yi() {
|
|
1356
|
+
R.value = null, fn.value = !1, L.value = null, N("selectX", {
|
|
1357
|
+
index: null,
|
|
1358
|
+
indexLabel: null,
|
|
1359
|
+
dataset: null
|
|
1360
|
+
}), qi.value = !1;
|
|
1361
|
+
}
|
|
1362
|
+
function Xi(e) {
|
|
1363
|
+
if (!er.value || xi.value || document.activeElement !== er.value || Pr.value || !J.value.end && J.value.end !== 0) return;
|
|
1364
|
+
let t = z.value.orientation === "vertical", n = z.value.orientation === "horizontal", r = t && e.key === "ArrowLeft" || n && e.key === "ArrowUp", a = t && e.key === "ArrowRight" || n && e.key === "ArrowDown", o = e.key === "Enter" || e.key === " ", s = e.key === "Escape";
|
|
1365
|
+
if (!r && !a && !o && !s) return;
|
|
1366
|
+
let c = J.value.end - J.value.start;
|
|
1367
|
+
if (c <= 0) return;
|
|
1368
|
+
if (e.preventDefault(), e.stopPropagation(), s) {
|
|
1369
|
+
R.value = null, fn.value = !1, L.value = null, N("selectX", {
|
|
1370
|
+
index: null,
|
|
1371
|
+
indexLabel: null,
|
|
1372
|
+
dataset: null
|
|
1373
|
+
});
|
|
1374
|
+
return;
|
|
1375
|
+
}
|
|
1376
|
+
if (o) {
|
|
1377
|
+
if (R.value === null) return;
|
|
1378
|
+
Qr(R.value);
|
|
1379
|
+
return;
|
|
1380
|
+
}
|
|
1381
|
+
let l = R.value, u = L.value;
|
|
1382
|
+
l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, R.value = l, Zi(l), ri(l, "keyboard");
|
|
1383
|
+
}
|
|
1384
|
+
function Zi(e) {
|
|
1385
|
+
if (!Number.isFinite(e)) return;
|
|
1386
|
+
let t, n;
|
|
1387
|
+
z.value.orientation === "vertical" ? (t = G.value.left + e * X.value + X.value / 2, n = G.value.top + G.value.height / 2) : (t = G.value.left + G.value.width / 2, n = G.value.top + e * X.value + X.value / 2);
|
|
1388
|
+
let r = u(t, n, er.value);
|
|
1389
|
+
r && (Bn.value = r);
|
|
1390
|
+
}
|
|
1391
|
+
let Qi = _(() => ({
|
|
1392
|
+
headers: pi.value?.colNames ?? [],
|
|
1393
|
+
rows: pi.value?.body ?? []
|
|
1394
|
+
}));
|
|
1395
|
+
return De({
|
|
1396
|
+
getData: ui,
|
|
1397
|
+
getImage: Ei,
|
|
1398
|
+
generatePdf: cr,
|
|
1399
|
+
generateCsv: fi,
|
|
1400
|
+
generateImage: lr,
|
|
1401
|
+
generateSvg: Ni,
|
|
1402
|
+
hideSeries: vi,
|
|
1403
|
+
showSeries: _i,
|
|
1404
|
+
toggleTable: si,
|
|
1405
|
+
toggleLabels: ci,
|
|
1406
|
+
toggleTooltip: li,
|
|
1407
|
+
toggleAnnotator: Si,
|
|
1408
|
+
toggleFullscreen: oi,
|
|
1409
|
+
copyAlt: Ki
|
|
1410
|
+
}), (n, r) => (T(), b("div", {
|
|
1411
|
+
id: `stackbar_${F.value}`,
|
|
1412
|
+
ref_key: "stackbarChart",
|
|
1413
|
+
ref: P,
|
|
1414
|
+
class: We({
|
|
1415
|
+
"vue-data-ui-component": !0,
|
|
1416
|
+
"vue-ui-stackbar": !0,
|
|
1417
|
+
"vue-data-ui-wrapper-fullscreen": bn.value
|
|
1418
|
+
}),
|
|
1419
|
+
style: w(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
|
|
1420
|
+
onMouseenter: tr,
|
|
1421
|
+
onMouseleave: nr
|
|
1422
|
+
}, [
|
|
1423
|
+
x("div", {
|
|
1424
|
+
id: `chart-instructions-${F.value}`,
|
|
1425
|
+
class: "sr-only"
|
|
1426
|
+
}, [x("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
1427
|
+
Qi.value?.rows?.length ? (T(), v(Me, {
|
|
1428
|
+
key: 0,
|
|
1429
|
+
uid: F.value,
|
|
1430
|
+
head: Qi.value.headers,
|
|
1431
|
+
body: Qi.value.rows,
|
|
1432
|
+
notice: z.value.a11y.translations.tableAvailable,
|
|
1433
|
+
caption: z.value.a11y.translations.tableCaption
|
|
1434
|
+
}, null, 8, [
|
|
1435
|
+
"uid",
|
|
1436
|
+
"head",
|
|
1437
|
+
"body",
|
|
1438
|
+
"notice",
|
|
1439
|
+
"caption"
|
|
1440
|
+
])) : y("", !0),
|
|
1441
|
+
z.value.userOptions.buttons.annotator ? (T(), v(A(nn), {
|
|
1442
|
+
key: 1,
|
|
1443
|
+
svgRef: A(er),
|
|
1444
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1445
|
+
color: z.value.style.chart.color,
|
|
1446
|
+
active: xi.value,
|
|
1447
|
+
isCursorPointer: B.value,
|
|
1448
|
+
onClose: Si
|
|
1449
|
+
}, {
|
|
1450
|
+
"annotator-action-close": j(() => [O(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1451
|
+
"annotator-action-color": j(({ color: e }) => [O(n.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
|
|
1452
|
+
"annotator-action-draw": j(({ mode: e }) => [O(n.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
|
|
1453
|
+
"annotator-action-undo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
|
|
1454
|
+
"annotator-action-redo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
|
|
1455
|
+
"annotator-action-delete": j(({ disabled: e }) => [O(n.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
|
|
1456
|
+
_: 3
|
|
1457
|
+
}, 8, [
|
|
1458
|
+
"svgRef",
|
|
1459
|
+
"backgroundColor",
|
|
1460
|
+
"color",
|
|
1461
|
+
"active",
|
|
1462
|
+
"isCursorPointer"
|
|
1463
|
+
])) : y("", !0),
|
|
1464
|
+
O(n.$slots, "userConfig", {}, void 0, !0),
|
|
1465
|
+
z.value.style.chart.title.text ? (T(), b("div", {
|
|
1466
|
+
key: 2,
|
|
1467
|
+
ref_key: "chartTitle",
|
|
1468
|
+
ref: gn,
|
|
1469
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1470
|
+
}, [(T(), v(Te, {
|
|
1471
|
+
key: `title_${Sn.value}`,
|
|
1472
|
+
config: {
|
|
1473
|
+
title: {
|
|
1474
|
+
cy: "stackbar-title",
|
|
1475
|
+
...z.value.style.chart.title
|
|
1476
|
+
},
|
|
1477
|
+
subtitle: {
|
|
1478
|
+
cy: "stackbar-subtitle",
|
|
1479
|
+
...z.value.style.chart.title.subtitle
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1483
|
+
x("div", { id: `legend-top-${F.value}` }, null, 8, nt),
|
|
1484
|
+
z.value.userOptions.show && dn.value && (A($n) || A(Zn)) ? (T(), v(A(rn), {
|
|
1485
|
+
ref_key: "userOptionsRef",
|
|
1486
|
+
ref: Dn,
|
|
1487
|
+
key: `user_option_${hn.value}`,
|
|
1488
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
1489
|
+
color: z.value.style.chart.color,
|
|
1490
|
+
isPrinting: A(or),
|
|
1491
|
+
isImaging: A(sr),
|
|
1492
|
+
uid: F.value,
|
|
1493
|
+
hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
|
|
1494
|
+
hasPdf: z.value.userOptions.buttons.pdf,
|
|
1495
|
+
hasImg: z.value.userOptions.buttons.img,
|
|
1496
|
+
hasSvg: z.value.userOptions.buttons.svg,
|
|
1497
|
+
hasXls: z.value.userOptions.buttons.csv,
|
|
1498
|
+
hasTable: z.value.userOptions.buttons.table,
|
|
1499
|
+
hasLabel: z.value.userOptions.buttons.labels,
|
|
1500
|
+
hasFullscreen: z.value.userOptions.buttons.fullscreen,
|
|
1501
|
+
hasAltCopy: z.value.userOptions.buttons.altCopy,
|
|
1502
|
+
isFullscreen: bn.value,
|
|
1503
|
+
chartElement: P.value,
|
|
1504
|
+
position: z.value.userOptions.position,
|
|
1505
|
+
isTooltip: V.value.showTooltip,
|
|
1506
|
+
titles: { ...z.value.userOptions.buttonTitles },
|
|
1507
|
+
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
1508
|
+
isAnnotation: xi.value,
|
|
1509
|
+
callbacks: z.value.userOptions.callbacks,
|
|
1510
|
+
printScale: z.value.userOptions.print.scale,
|
|
1511
|
+
tableDialog: z.value.table.useDialog,
|
|
1512
|
+
isCursorPointer: B.value,
|
|
1513
|
+
onToggleFullscreen: oi,
|
|
1514
|
+
onGeneratePdf: A(cr),
|
|
1515
|
+
onGenerateCsv: fi,
|
|
1516
|
+
onGenerateImage: Pi,
|
|
1517
|
+
onGenerateSvg: Ni,
|
|
1518
|
+
onToggleTable: si,
|
|
1519
|
+
onToggleLabels: ci,
|
|
1520
|
+
onToggleTooltip: li,
|
|
1521
|
+
onToggleAnnotator: Si,
|
|
1522
|
+
onCopyAlt: Ki,
|
|
1523
|
+
style: w({ visibility: A($n) ? A(Zn) ? "visible" : "hidden" : "visible" })
|
|
1524
|
+
}, Re({ _: 2 }, [
|
|
1525
|
+
n.$slots.menuIcon ? {
|
|
1526
|
+
name: "menuIcon",
|
|
1527
|
+
fn: j(({ isOpen: e, color: t }) => [O(n.$slots, "menuIcon", C(S({
|
|
1528
|
+
isOpen: e,
|
|
1529
|
+
color: t
|
|
1530
|
+
})), void 0, !0)]),
|
|
1531
|
+
key: "0"
|
|
1532
|
+
} : void 0,
|
|
1533
|
+
n.$slots.optionTooltip ? {
|
|
1534
|
+
name: "optionTooltip",
|
|
1535
|
+
fn: j(() => [O(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1536
|
+
key: "1"
|
|
1537
|
+
} : void 0,
|
|
1538
|
+
n.$slots.optionPdf ? {
|
|
1539
|
+
name: "optionPdf",
|
|
1540
|
+
fn: j(() => [O(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1541
|
+
key: "2"
|
|
1542
|
+
} : void 0,
|
|
1543
|
+
n.$slots.optionCsv ? {
|
|
1544
|
+
name: "optionCsv",
|
|
1545
|
+
fn: j(() => [O(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1546
|
+
key: "3"
|
|
1547
|
+
} : void 0,
|
|
1548
|
+
n.$slots.optionImg ? {
|
|
1549
|
+
name: "optionImg",
|
|
1550
|
+
fn: j(() => [O(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
1551
|
+
key: "4"
|
|
1552
|
+
} : void 0,
|
|
1553
|
+
n.$slots.optionSvg ? {
|
|
1554
|
+
name: "optionSvg",
|
|
1555
|
+
fn: j(() => [O(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1556
|
+
key: "5"
|
|
1557
|
+
} : void 0,
|
|
1558
|
+
n.$slots.optionTable ? {
|
|
1559
|
+
name: "optionTable",
|
|
1560
|
+
fn: j(() => [O(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
1561
|
+
key: "6"
|
|
1562
|
+
} : void 0,
|
|
1563
|
+
n.$slots.optionLabels ? {
|
|
1564
|
+
name: "optionLabels",
|
|
1565
|
+
fn: j(() => [O(n.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1566
|
+
key: "7"
|
|
1567
|
+
} : void 0,
|
|
1568
|
+
n.$slots.optionFullscreen ? {
|
|
1569
|
+
name: "optionFullscreen",
|
|
1570
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [O(n.$slots, "optionFullscreen", C(S({
|
|
1571
|
+
toggleFullscreen: e,
|
|
1572
|
+
isFullscreen: t
|
|
1573
|
+
})), void 0, !0)]),
|
|
1574
|
+
key: "8"
|
|
1575
|
+
} : void 0,
|
|
1576
|
+
n.$slots.optionAnnotator ? {
|
|
1577
|
+
name: "optionAnnotator",
|
|
1578
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [O(n.$slots, "optionAnnotator", C(S({
|
|
1579
|
+
toggleAnnotator: e,
|
|
1580
|
+
isAnnotator: t
|
|
1581
|
+
})), void 0, !0)]),
|
|
1582
|
+
key: "9"
|
|
1583
|
+
} : void 0,
|
|
1584
|
+
n.$slots.optionAltCopy ? {
|
|
1585
|
+
name: "optionAltCopy",
|
|
1586
|
+
fn: j(({ altCopy: e }) => [O(n.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
|
|
1587
|
+
key: "10"
|
|
1588
|
+
} : void 0,
|
|
1589
|
+
n.$slots["custom-menu-before"] ? {
|
|
1590
|
+
name: "custom-menu-before",
|
|
1591
|
+
fn: j(() => [O(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1592
|
+
key: "11"
|
|
1593
|
+
} : void 0,
|
|
1594
|
+
n.$slots["custom-menu-after"] ? {
|
|
1595
|
+
name: "custom-menu-after",
|
|
1596
|
+
fn: j(() => [O(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1597
|
+
key: "12"
|
|
1598
|
+
} : void 0
|
|
1599
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : y("", !0),
|
|
1600
|
+
x("div", rt, [(T(), b("svg", {
|
|
1601
|
+
ref_key: "svgRef",
|
|
1602
|
+
ref: er,
|
|
1603
|
+
xmlns: A(le),
|
|
1604
|
+
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1605
|
+
viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
|
|
1606
|
+
class: We({ "vue-data-ui-loading": A(Jn) }),
|
|
1607
|
+
style: w(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
|
|
1608
|
+
tabindex: "0",
|
|
1609
|
+
onFocus: Ji,
|
|
1610
|
+
onBlur: Yi,
|
|
1611
|
+
onKeydown: Xi
|
|
1612
|
+
}, [
|
|
1613
|
+
Be(A(an)),
|
|
1614
|
+
n.$slots["chart-background"] ? (T(), b("foreignObject", {
|
|
1615
|
+
key: 0,
|
|
1616
|
+
x: G.value.left,
|
|
1617
|
+
y: G.value.top,
|
|
1618
|
+
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1619
|
+
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1620
|
+
style: { pointerEvents: "none" }
|
|
1621
|
+
}, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, at)) : y("", !0),
|
|
1622
|
+
z.value.style.chart.bars.gradient.show ? (T(), b("defs", ot, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("linearGradient", {
|
|
1623
|
+
id: `gradient_${e.id}`,
|
|
1624
|
+
x1: "0%",
|
|
1625
|
+
y1: "0%",
|
|
1626
|
+
x2: "0%",
|
|
1627
|
+
y2: "100%"
|
|
1628
|
+
}, [
|
|
1629
|
+
x("stop", {
|
|
1630
|
+
offset: "0%",
|
|
1631
|
+
"stop-color": e.color
|
|
1632
|
+
}, null, 8, ct),
|
|
1633
|
+
x("stop", {
|
|
1634
|
+
offset: "61.8%",
|
|
1635
|
+
"stop-color": A(te)(e.color, z.value.style.chart.bars.gradient.intensity / 100)
|
|
1636
|
+
}, null, 8, lt),
|
|
1637
|
+
x("stop", {
|
|
1638
|
+
offset: "100%",
|
|
1639
|
+
"stop-color": e.color
|
|
1640
|
+
}, null, 8, ut)
|
|
1641
|
+
], 8, st))), 256))])) : y("", !0),
|
|
1642
|
+
z.value.style.chart.grid.frame.show ? (T(), b("rect", {
|
|
1643
|
+
key: 2,
|
|
1644
|
+
style: {
|
|
1645
|
+
pointerEvents: "none",
|
|
1646
|
+
transition: "none",
|
|
1647
|
+
animation: "none !important"
|
|
1648
|
+
},
|
|
1649
|
+
x: Math.max(0, G.value.left),
|
|
1650
|
+
y: Math.max(0, G.value.top),
|
|
1651
|
+
width: Math.max(0, G.value.width),
|
|
1652
|
+
height: Math.max(0, G.value.height),
|
|
1653
|
+
fill: "transparent",
|
|
1654
|
+
stroke: z.value.style.chart.grid.frame.stroke,
|
|
1655
|
+
"stroke-width": z.value.style.chart.grid.frame.strokeWidth,
|
|
1656
|
+
"stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
|
|
1657
|
+
"stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
|
|
1658
|
+
"stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
|
|
1659
|
+
}, null, 8, dt)) : y("", !0),
|
|
1660
|
+
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 3 }, D(Z.value, (e, t) => (T(), b("line", {
|
|
1661
|
+
x1: G.value.left,
|
|
1662
|
+
x2: G.value.right,
|
|
1663
|
+
y1: e.y,
|
|
1664
|
+
y2: e.y,
|
|
1665
|
+
stroke: z.value.style.chart.grid.x.linesColor,
|
|
1666
|
+
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1667
|
+
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1668
|
+
"stroke-linecap": "round"
|
|
1669
|
+
}, null, 8, ft))), 256)) : y("", !0),
|
|
1670
|
+
z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 4 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
|
|
1671
|
+
x1: G.value.left,
|
|
1672
|
+
x2: G.value.right,
|
|
1673
|
+
y1: G.value.top + X.value * t,
|
|
1674
|
+
y2: G.value.top + X.value * t,
|
|
1675
|
+
stroke: z.value.style.chart.grid.x.linesColor,
|
|
1676
|
+
"stroke-width": z.value.style.chart.grid.x.linesThickness,
|
|
1677
|
+
"stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1678
|
+
"stroke-linecap": "round"
|
|
1679
|
+
}, null, 8, pt))), 256)) : y("", !0),
|
|
1680
|
+
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 5 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
|
|
1681
|
+
x1: G.value.left + X.value * t,
|
|
1682
|
+
x2: G.value.left + X.value * t,
|
|
1683
|
+
y1: G.value.top,
|
|
1684
|
+
y2: G.value.bottom,
|
|
1685
|
+
stroke: z.value.style.chart.grid.y.linesColor,
|
|
1686
|
+
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1687
|
+
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1688
|
+
"stroke-linecap": "round"
|
|
1689
|
+
}, null, 8, mt))), 256)) : y("", !0),
|
|
1690
|
+
z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 6 }, D(Z.value, (e, t) => (T(), b("line", {
|
|
1691
|
+
x1: e.horizontal_x,
|
|
1692
|
+
x2: e.horizontal_x,
|
|
1693
|
+
y1: G.value.top,
|
|
1694
|
+
y2: G.value.bottom,
|
|
1695
|
+
stroke: z.value.style.chart.grid.y.linesColor,
|
|
1696
|
+
"stroke-width": z.value.style.chart.grid.y.linesThickness,
|
|
1697
|
+
"stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1698
|
+
"stroke-linecap": "round"
|
|
1699
|
+
}, null, 8, ht))), 256)) : y("", !0),
|
|
1700
|
+
(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [n.$slots.pattern ? (T(), b("defs", gt, [O(n.$slots, "pattern", He({ ref_for: !0 }, {
|
|
1701
|
+
seriesIndex: e.absoluteIndex,
|
|
1702
|
+
patternId: `pattern_${F.value}_${e.absoluteIndex}`
|
|
1703
|
+
}), void 0, !0)])) : y("", !0), z.value.orientation === "vertical" ? (T(), b(g, { key: 1 }, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
|
|
1704
|
+
x: t,
|
|
1705
|
+
y: A(m)(e.y[n]),
|
|
1706
|
+
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1707
|
+
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1708
|
+
width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1709
|
+
fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
1710
|
+
stroke: z.value.style.chart.backgroundColor,
|
|
1711
|
+
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1712
|
+
"stroke-linecap": "round",
|
|
1713
|
+
"stroke-linejoin": "round",
|
|
1714
|
+
class: We({
|
|
1715
|
+
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1716
|
+
"vue-data-ui-bar-transition": xn.value
|
|
1717
|
+
})
|
|
1718
|
+
}, null, 10, _t))), 256)), n.$slots.pattern ? (T(), b("g", vt, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
|
|
1719
|
+
x: t,
|
|
1720
|
+
y: A(m)(e.y[n]),
|
|
1721
|
+
height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
|
|
1722
|
+
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1723
|
+
width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1724
|
+
fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
|
|
1725
|
+
stroke: z.value.style.chart.backgroundColor,
|
|
1726
|
+
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1727
|
+
"stroke-linecap": "round",
|
|
1728
|
+
"stroke-linejoin": "round",
|
|
1729
|
+
class: We({
|
|
1730
|
+
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1731
|
+
"vue-data-ui-bar-transition": xn.value
|
|
1732
|
+
})
|
|
1733
|
+
}, null, 10, yt))), 256))])) : y("", !0)], 64)) : (T(), b(g, { key: 2 }, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
|
|
1734
|
+
x: A(m)(t, G.value.left),
|
|
1735
|
+
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1736
|
+
width: A(m)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1737
|
+
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1738
|
+
height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1739
|
+
fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
1740
|
+
stroke: z.value.style.chart.backgroundColor,
|
|
1741
|
+
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1742
|
+
"stroke-linecap": "round",
|
|
1743
|
+
"stroke-linejoin": "round",
|
|
1744
|
+
class: We({
|
|
1745
|
+
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1746
|
+
"vue-data-ui-bar-transition": xn.value
|
|
1747
|
+
})
|
|
1748
|
+
}, null, 10, bt))), 256)), n.$slots.pattern ? (T(), b("g", xt, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
|
|
1749
|
+
x: A(m)(t, G.value.left),
|
|
1750
|
+
y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
|
|
1751
|
+
width: A(m)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
|
|
1752
|
+
rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
|
|
1753
|
+
height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
1754
|
+
fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
|
|
1755
|
+
stroke: z.value.style.chart.backgroundColor,
|
|
1756
|
+
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
1757
|
+
"stroke-linecap": "round",
|
|
1758
|
+
"stroke-linejoin": "round",
|
|
1759
|
+
class: We({
|
|
1760
|
+
"vue-data-ui-bar-animated": z.value.useCssAnimation,
|
|
1761
|
+
"vue-data-ui-bar-transition": xn.value
|
|
1762
|
+
})
|
|
1763
|
+
}, null, 10, St))), 256))])) : y("", !0)], 64))]))), 256)),
|
|
1764
|
+
z.value.style.chart.grid.x.showAxis ? (T(), b("line", {
|
|
1765
|
+
key: 7,
|
|
1766
|
+
x1: G.value.left,
|
|
1767
|
+
x2: G.value.right,
|
|
1768
|
+
y1: G.value.bottom,
|
|
1769
|
+
y2: G.value.bottom,
|
|
1770
|
+
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1771
|
+
"stroke-width": z.value.style.chart.grid.x.axisThickness,
|
|
1772
|
+
"stroke-linecap": "round",
|
|
1773
|
+
"stroke-linejoin": "round"
|
|
1774
|
+
}, null, 8, Ct)) : y("", !0),
|
|
1775
|
+
z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (T(), b("line", {
|
|
1776
|
+
key: 8,
|
|
1777
|
+
x1: W.value ? G.value.right : G.value.left,
|
|
1778
|
+
x2: W.value ? G.value.right : G.value.left,
|
|
1779
|
+
y1: G.value.top,
|
|
1780
|
+
y2: G.value.bottom,
|
|
1781
|
+
stroke: z.value.style.chart.grid.y.axisColor,
|
|
1782
|
+
"stroke-width": z.value.style.chart.grid.y.axisThickness,
|
|
1783
|
+
"stroke-linecap": "round",
|
|
1784
|
+
"stroke-linejoin": "round"
|
|
1785
|
+
}, null, 8, wt)) : y("", !0),
|
|
1786
|
+
z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (T(), b("text", {
|
|
1787
|
+
key: 9,
|
|
1788
|
+
ref_key: "xAxisLabel",
|
|
1789
|
+
ref: An,
|
|
1790
|
+
x: G.value.left + G.value.width / 2,
|
|
1791
|
+
y: G.value.chartHeight - 3,
|
|
1792
|
+
"font-size": z.value.style.chart.grid.x.axisName.fontSize,
|
|
1793
|
+
fill: z.value.style.chart.grid.x.axisName.color,
|
|
1794
|
+
"font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1795
|
+
"text-anchor": "middle"
|
|
1796
|
+
}, k(z.value.style.chart.grid.x.axisName.text), 9, Tt)) : y("", !0),
|
|
1797
|
+
z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (T(), b("text", {
|
|
1798
|
+
key: 10,
|
|
1799
|
+
ref_key: "yAxisLabel",
|
|
1800
|
+
ref: jn,
|
|
1801
|
+
transform: `translate(${W.value ? H.value.width - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1802
|
+
"font-size": z.value.style.chart.grid.y.axisName.fontSize,
|
|
1803
|
+
fill: z.value.style.chart.grid.y.axisName.color,
|
|
1804
|
+
"font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1805
|
+
"text-anchor": "middle"
|
|
1806
|
+
}, k(z.value.style.chart.grid.y.axisName.text), 9, Et)) : y("", !0),
|
|
1807
|
+
V.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), b(g, { key: 11 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.x, (n, r) => (T(), b(g, null, [Ti(e.series[r], e.proportions[r]) ? (T(), b("text", {
|
|
1808
|
+
key: 0,
|
|
1809
|
+
x: n + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2,
|
|
1810
|
+
y: e.y[r] + e.height[r] / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1811
|
+
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1812
|
+
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(se)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1813
|
+
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1814
|
+
"text-anchor": "middle"
|
|
1815
|
+
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? Zr(e.proportions[r] * 100, e, t, r) : Xr(e.series[r], e, t, r, e.signedSeries[r])), 9, Dt)) : y("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
|
|
1816
|
+
key: 0,
|
|
1817
|
+
ref_key: "sumTop",
|
|
1818
|
+
ref: Pn
|
|
1819
|
+
}, [(T(!0), b(g, null, D(Yr.value, (e, t) => (T(), b(g, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
|
|
1820
|
+
key: 0,
|
|
1821
|
+
x: G.value.left + X.value * t + X.value / 2,
|
|
1822
|
+
y: Wi(t),
|
|
1823
|
+
"text-anchor": "middle",
|
|
1824
|
+
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1825
|
+
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1826
|
+
fill: z.value.style.chart.bars.totalValues.color
|
|
1827
|
+
}, k(Xr(e.value, e, t, e.sign)), 9, Ot)) : y("", !0)], 64))), 256))], 512)) : y("", !0)], 64)) : y("", !0),
|
|
1828
|
+
V.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), b(g, { key: 12 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.horizontal_x, (n, r) => (T(), b(g, null, [Ti(e.series[r], e.proportions[r]) ? (T(), b("text", {
|
|
1829
|
+
key: 0,
|
|
1830
|
+
x: n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2,
|
|
1831
|
+
y: e.horizontal_y[r] + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1832
|
+
"font-size": z.value.style.chart.bars.dataLabels.fontSize,
|
|
1833
|
+
fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(se)(e.color) : z.value.style.chart.bars.dataLabels.color,
|
|
1834
|
+
"font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1835
|
+
"text-anchor": "middle"
|
|
1836
|
+
}, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? Zr(e.proportions[r] * 100, e, t, r) : Xr(e.series[r], e, t, r, e.signedSeries[r])), 9, kt)) : y("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
|
|
1837
|
+
key: 0,
|
|
1838
|
+
ref_key: "sumRight",
|
|
1839
|
+
ref: Fn
|
|
1840
|
+
}, [(T(!0), b(g, null, D(Yr.value, (e, t) => (T(), b(g, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
|
|
1841
|
+
key: 0,
|
|
1842
|
+
x: Gi(t),
|
|
1843
|
+
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1844
|
+
"text-anchor": "start",
|
|
1845
|
+
"font-size": z.value.style.chart.bars.totalValues.fontSize,
|
|
1846
|
+
"font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1847
|
+
fill: z.value.style.chart.bars.totalValues.color
|
|
1848
|
+
}, k(Xr(e.value, e, t, e.sign)), 9, At)) : y("", !0)], 64))), 256))], 512)) : y("", !0)], 64)) : y("", !0),
|
|
1849
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (T(), b("g", {
|
|
1850
|
+
key: 13,
|
|
1851
|
+
ref_key: "scaleLabels",
|
|
1852
|
+
ref: Mn
|
|
1853
|
+
}, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("line", {
|
|
1854
|
+
x1: W.value ? G.value.right : G.value.left,
|
|
1855
|
+
x2: W.value ? G.value.right + 6 : G.value.left - 6,
|
|
1856
|
+
y1: e.y,
|
|
1857
|
+
y2: e.y,
|
|
1858
|
+
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1859
|
+
"stroke-width": 1
|
|
1860
|
+
}, null, 8, jt))), 256)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
|
|
1861
|
+
x: e.x,
|
|
1862
|
+
y: e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1863
|
+
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1864
|
+
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1865
|
+
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1866
|
+
"text-anchor": W.value ? "start" : "end"
|
|
1867
|
+
}, k(A(h)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(o)({
|
|
1868
|
+
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1869
|
+
v: e.value,
|
|
1870
|
+
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1871
|
+
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1872
|
+
}), { datapoint: e })), 9, Mt))), 256))], 512)) : y("", !0),
|
|
1873
|
+
z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (T(), b("g", {
|
|
1874
|
+
key: 14,
|
|
1875
|
+
ref_key: "scaleLabels",
|
|
1876
|
+
ref: Mn
|
|
1877
|
+
}, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("line", {
|
|
1878
|
+
x1: e.horizontal_x,
|
|
1879
|
+
x2: e.horizontal_x,
|
|
1880
|
+
y1: G.value.bottom,
|
|
1881
|
+
y2: G.value.bottom + 6,
|
|
1882
|
+
stroke: z.value.style.chart.grid.x.axisColor,
|
|
1883
|
+
"stroke-width": 1,
|
|
1884
|
+
"stroke-linecap": "round"
|
|
1885
|
+
}, null, 8, Nt))), 256)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
|
|
1886
|
+
class: "vue-data-ui-time-label",
|
|
1887
|
+
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1888
|
+
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1889
|
+
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1890
|
+
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1891
|
+
transform: `translate(${e.horizontal_x}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`
|
|
1892
|
+
}, k(A(h)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(o)({
|
|
1893
|
+
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
1894
|
+
v: e.value,
|
|
1895
|
+
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
1896
|
+
r: z.value.style.chart.grid.y.axisLabels.rounding
|
|
1897
|
+
}), { datapoint: e })), 9, Pt))), 256))], 512)) : y("", !0),
|
|
1898
|
+
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (T(), b("g", {
|
|
1899
|
+
key: 15,
|
|
1900
|
+
ref_key: "timeLabelsEls",
|
|
1901
|
+
ref: Nn
|
|
1902
|
+
}, [n.$slots["time-label"] ? (T(), b("g", Ft, [(T(!0), b(g, null, D(Ur.value, (e, t) => (T(), b("g", null, [O(n.$slots, "time-label", He({ ref_for: !0 }, {
|
|
1903
|
+
x: G.value.left + X.value * t + X.value / 2,
|
|
1904
|
+
y: G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1905
|
+
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1906
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1907
|
+
transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1908
|
+
absoluteIndex: e.absoluteIndex,
|
|
1909
|
+
content: e.text,
|
|
1910
|
+
textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1911
|
+
show: !0
|
|
1912
|
+
}), void 0, !0)]))), 256))])) : (T(), b("g", It, [(T(!0), b(g, null, D(Ur.value, (e, n) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
|
|
1913
|
+
key: n + "-multi",
|
|
1914
|
+
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1915
|
+
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1916
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1917
|
+
transform: `
|
|
1918
|
+
translate(
|
|
1919
|
+
${G.value.left + X.value * n + X.value / 2},
|
|
1920
|
+
${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1921
|
+
),
|
|
1922
|
+
rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
|
|
1923
|
+
`,
|
|
1924
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1925
|
+
innerHTML: A(t)({
|
|
1926
|
+
content: String(e.text),
|
|
1927
|
+
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1928
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1929
|
+
x: 0,
|
|
1930
|
+
y: 0
|
|
1931
|
+
}),
|
|
1932
|
+
onClick: () => Ci(e, n)
|
|
1933
|
+
}, null, 12, Rt)) : (T(), b("text", {
|
|
1934
|
+
class: "vue-data-ui-time-label",
|
|
1935
|
+
key: n,
|
|
1936
|
+
"text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1937
|
+
"font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1938
|
+
"font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1939
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1940
|
+
transform: `translate(${G.value.left + X.value * n + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1941
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1942
|
+
onClick: () => Ci(e, n)
|
|
1943
|
+
}, k(e.text), 13, Lt))]))), 256))]))], 512)) : y("", !0),
|
|
1944
|
+
z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (T(), b("g", {
|
|
1945
|
+
key: 16,
|
|
1946
|
+
ref_key: "timeLabelsEls",
|
|
1947
|
+
ref: Nn
|
|
1948
|
+
}, [n.$slots["time-label"] ? (T(), b("g", zt, [(T(!0), b(g, null, D(Q.value, (e, t) => (T(), b("g", null, [O(n.$slots, "time-label", He({ ref_for: !0 }, {
|
|
1949
|
+
x: G.value.left - 8,
|
|
1950
|
+
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1951
|
+
fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1952
|
+
fill: z.value.style.chart.grid.x.timeLabels.color,
|
|
1953
|
+
transform: null,
|
|
1954
|
+
absoluteIndex: e.absoluteIndex,
|
|
1955
|
+
content: e.text,
|
|
1956
|
+
textAnchor: "end",
|
|
1957
|
+
show: !0
|
|
1958
|
+
}), void 0, !0)]))), 256))])) : (T(), b("g", Bt, [(T(!0), b(g, null, D(Q.value, (e, t) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
|
|
1959
|
+
key: 1,
|
|
1960
|
+
"text-anchor": "end",
|
|
1961
|
+
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1962
|
+
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1963
|
+
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1964
|
+
x: G.value.left - 8,
|
|
1965
|
+
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1966
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1967
|
+
onClick: () => Ci(e, t),
|
|
1968
|
+
innerHTML: A(p)({
|
|
1969
|
+
content: String(e.text),
|
|
1970
|
+
fontSize: z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1971
|
+
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1972
|
+
x: G.value.left - 8,
|
|
1973
|
+
y: 0
|
|
1974
|
+
})
|
|
1975
|
+
}, null, 12, Ht)) : (T(), b("text", {
|
|
1976
|
+
key: 0,
|
|
1977
|
+
"text-anchor": "end",
|
|
1978
|
+
"font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1979
|
+
"font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1980
|
+
fill: z.value.style.chart.grid.y.axisLabels.color,
|
|
1981
|
+
x: G.value.left - 8,
|
|
1982
|
+
y: G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1983
|
+
style: w({ cursor: B.value ? "pointer" : "default" }),
|
|
1984
|
+
onClick: () => Ci(e, t)
|
|
1985
|
+
}, k(e.text), 13, Vt))]))), 256))]))], 512)) : y("", !0),
|
|
1986
|
+
V.value.showTooltip && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 17 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
|
|
1987
|
+
x: G.value.left + t * X.value,
|
|
1988
|
+
y: G.value.top,
|
|
1989
|
+
width: X.value,
|
|
1990
|
+
height: G.value.height < 0 ? 0 : G.value.height,
|
|
1991
|
+
onClick: () => Qr(t),
|
|
1992
|
+
onMouseenter: () => ri(t, "pointer"),
|
|
1993
|
+
onMouseleave: () => ei(t),
|
|
1994
|
+
fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
1995
|
+
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
1996
|
+
}, null, 44, Ut))), 256)) : y("", !0),
|
|
1997
|
+
V.value.showTooltip && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 18 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
|
|
1998
|
+
x: G.value.left,
|
|
1999
|
+
y: G.value.top + t * X.value,
|
|
2000
|
+
width: G.value.width < 0 ? 0 : G.value.width,
|
|
2001
|
+
height: X.value,
|
|
2002
|
+
onClick: () => Qr(t),
|
|
2003
|
+
onMouseenter: () => ri(t, "pointer"),
|
|
2004
|
+
onMouseleave: () => ei(t),
|
|
2005
|
+
fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
|
|
2006
|
+
style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
|
|
2007
|
+
}, null, 44, Wt))), 256)) : y("", !0),
|
|
2008
|
+
Dr.value ? (T(), b("rect", He({ key: 19 }, Tr.value, {
|
|
2009
|
+
"data-start": J.value.start,
|
|
2010
|
+
"data-end": J.value.end
|
|
2011
|
+
}), null, 16, Gt)) : y("", !0),
|
|
2012
|
+
O(n.$slots, "svg", { svg: {
|
|
2013
|
+
drawingArea: G.value,
|
|
2014
|
+
data: $.value,
|
|
2015
|
+
isPrintingImg: A(or) || A(sr) || On.value,
|
|
2016
|
+
isPrintingSvg: kn.value
|
|
2017
|
+
} }, void 0, !0)
|
|
2018
|
+
], 46, it)), n.$slots.hint ? (T(), b("div", Kt, [O(n.$slots, "hint", C(S({
|
|
2019
|
+
hint: z.value.a11y.translations.keyboardNavigation,
|
|
2020
|
+
isVisible: qi.value
|
|
2021
|
+
})), void 0, !0)])) : y("", !0)]),
|
|
2022
|
+
n.$slots.watermark ? (T(), b("div", qt, [O(n.$slots, "watermark", C(S({ isPrinting: A(or) || A(sr) || On.value || kn.value })), void 0, !0)])) : y("", !0),
|
|
2023
|
+
z.value.style.chart.zoom.show && dn.value && Li.value && q.value > 6 ? (T(), v(Ae, {
|
|
2024
|
+
key: 5,
|
|
2025
|
+
ref_key: "chartSlicer",
|
|
2026
|
+
ref: vn,
|
|
2027
|
+
allMinimaps: Ir.value,
|
|
2028
|
+
background: z.value.style.chart.zoom.color,
|
|
2029
|
+
borderColor: z.value.style.chart.backgroundColor,
|
|
2030
|
+
customFormat: z.value.style.chart.zoom.customFormat,
|
|
2031
|
+
cutNullValues: !1,
|
|
2032
|
+
forceZeroCenter: !0,
|
|
2033
|
+
enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
|
|
2034
|
+
enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
|
|
2035
|
+
end: J.value.end,
|
|
2036
|
+
focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
|
|
2037
|
+
focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
|
|
2038
|
+
fontSize: z.value.style.chart.zoom.fontSize,
|
|
2039
|
+
immediate: !z.value.style.chart.zoom.preview.enable,
|
|
2040
|
+
inputColor: z.value.style.chart.zoom.color,
|
|
2041
|
+
isPreview: Dr.value,
|
|
2042
|
+
labelLeft: z.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Q.value?.[0]?.text ?? "" : "",
|
|
2043
|
+
labelRight: z.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Q.value?.at(-1)?.text ?? "" : "",
|
|
2044
|
+
max: Math.max(...e.dataset.map((e) => e.series.length)),
|
|
2045
|
+
min: 0,
|
|
2046
|
+
minimap: Fr.value,
|
|
2047
|
+
minimapCompact: z.value.style.chart.zoom.minimap.compact,
|
|
2048
|
+
minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
|
|
2049
|
+
minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
|
|
2050
|
+
minimapMerged: !1,
|
|
2051
|
+
minimapSelectedColor: z.value.style.chart.zoom.minimap.selectedColor,
|
|
2052
|
+
minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
2053
|
+
minimapSelectedIndex: L.value,
|
|
2054
|
+
minimapSelectionRadius: 1,
|
|
2055
|
+
preciseLabels: qr.value.length ? qr.value : zr.value,
|
|
2056
|
+
refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
|
|
2057
|
+
refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
|
|
2058
|
+
selectColor: z.value.style.chart.zoom.highlightColor,
|
|
2059
|
+
selectedSeries: ti.value,
|
|
2060
|
+
smoothMinimap: !1,
|
|
2061
|
+
start: J.value.start,
|
|
2062
|
+
textColor: z.value.style.chart.color,
|
|
2063
|
+
timeLabels: zr.value,
|
|
2064
|
+
usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
|
|
2065
|
+
valueEnd: J.value.end,
|
|
2066
|
+
valueStart: J.value.start,
|
|
2067
|
+
verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
|
|
2068
|
+
maxWidth: z.value.style.chart.zoom.maxWidth,
|
|
2069
|
+
isCursorPointer: B.value,
|
|
2070
|
+
additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
|
|
2071
|
+
handleType: z.value.style.chart.zoom.minimap.handleType,
|
|
2072
|
+
handleIconColor: z.value.style.chart.zoom.minimap.handleIconColor,
|
|
2073
|
+
handleBorderWidth: z.value.style.chart.zoom.minimap.handleBorderWidth,
|
|
2074
|
+
handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
|
|
2075
|
+
handleFill: z.value.style.chart.zoom.minimap.handleFill,
|
|
2076
|
+
handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
|
|
2077
|
+
"onUpdate:end": Vi,
|
|
2078
|
+
"onUpdate:start": Bi,
|
|
2079
|
+
onTrapMouse: Er,
|
|
2080
|
+
onReset: r[0] ||= () => Mr({ force: !0 }),
|
|
2081
|
+
onFutureEnd: r[1] ||= (e) => Or("end", e),
|
|
2082
|
+
onFutureStart: r[2] ||= (e) => Or("start", e)
|
|
2083
|
+
}, {
|
|
2084
|
+
"reset-action": j(({ reset: e }) => [O(n.$slots, "reset-action", C(S({ reset: e })), void 0, !0)]),
|
|
2085
|
+
slotMap: j(({ width: e, height: t, unitW: n }) => [(T(!0), b(g, null, D($.value, (e) => (T(), b("g", { key: e.id }, [(T(!0), b(g, null, D(e.xMinimap({
|
|
2086
|
+
left: 0,
|
|
2087
|
+
unitW: n
|
|
2088
|
+
}), (r, a) => (T(), b("rect", {
|
|
2089
|
+
key: a,
|
|
2090
|
+
x: a === 0 ? r - n * (z.value.style.chart.bars.gapRatio / 4) : r - n / 2,
|
|
2091
|
+
y: Math.max(0, Math.min(t, e.yMinimap({ minimapH: t })[a])),
|
|
2092
|
+
height: e.heightMinimap({ minimapH: t })[a],
|
|
2093
|
+
width: [0, q.value - 1].includes(a) ? n * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 : n * (1 - z.value.style.chart.bars.gapRatio / 2),
|
|
2094
|
+
fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
|
|
2095
|
+
stroke: z.value.style.chart.backgroundColor,
|
|
2096
|
+
"stroke-width": .5,
|
|
2097
|
+
rx: "0",
|
|
2098
|
+
"stroke-linecap": "round",
|
|
2099
|
+
"stroke-linejoin": "round",
|
|
2100
|
+
style: w({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
|
|
2101
|
+
}, null, 12, Jt))), 128))]))), 128))]),
|
|
2102
|
+
_: 3
|
|
2103
|
+
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : y("", !0),
|
|
2104
|
+
Be(A(Qt), {
|
|
2105
|
+
teleportTo: z.value.style.chart.tooltip.teleportTo,
|
|
2106
|
+
show: V.value.showTooltip && fn.value,
|
|
2107
|
+
backgroundColor: z.value.style.chart.tooltip.backgroundColor,
|
|
2108
|
+
color: z.value.style.chart.tooltip.color,
|
|
2109
|
+
fontSize: z.value.style.chart.tooltip.fontSize,
|
|
2110
|
+
borderRadius: z.value.style.chart.tooltip.borderRadius,
|
|
2111
|
+
borderColor: z.value.style.chart.tooltip.borderColor,
|
|
2112
|
+
borderWidth: z.value.style.chart.tooltip.borderWidth,
|
|
2113
|
+
backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
|
|
2114
|
+
position: z.value.style.chart.tooltip.position,
|
|
2115
|
+
offsetX: z.value.style.chart.tooltip.offsetX,
|
|
2116
|
+
offsetY: z.value.style.chart.tooltip.offsetY,
|
|
2117
|
+
parent: P.value,
|
|
2118
|
+
content: mn.value,
|
|
2119
|
+
isFullscreen: bn.value,
|
|
2120
|
+
isCustom: A(oe)(z.value.style.chart.tooltip.customFormat),
|
|
2121
|
+
smooth: z.value.style.chart.tooltip.smooth,
|
|
2122
|
+
backdropFilter: z.value.style.chart.tooltip.backdropFilter,
|
|
2123
|
+
smoothForce: z.value.style.chart.tooltip.smoothForce,
|
|
2124
|
+
smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
|
|
2125
|
+
isA11yMode: Vn.value === "keyboard",
|
|
2126
|
+
a11yPosition: Bn.value
|
|
2127
|
+
}, {
|
|
2128
|
+
"tooltip-before": j(() => [O(n.$slots, "tooltip-before", C(S({ ...pn.value })), void 0, !0)]),
|
|
2129
|
+
tooltip: j(() => [O(n.$slots, "tooltip", C(S({ ...pn.value })), void 0, !0)]),
|
|
2130
|
+
"tooltip-after": j(() => [O(n.$slots, "tooltip-after", C(S({ ...pn.value })), void 0, !0)]),
|
|
2131
|
+
_: 3
|
|
2132
|
+
}, 8, [
|
|
2133
|
+
"teleportTo",
|
|
2134
|
+
"show",
|
|
2135
|
+
"backgroundColor",
|
|
2136
|
+
"color",
|
|
2137
|
+
"fontSize",
|
|
2138
|
+
"borderRadius",
|
|
2139
|
+
"borderColor",
|
|
2140
|
+
"borderWidth",
|
|
2141
|
+
"backgroundOpacity",
|
|
2142
|
+
"position",
|
|
2143
|
+
"offsetX",
|
|
2144
|
+
"offsetY",
|
|
2145
|
+
"parent",
|
|
2146
|
+
"content",
|
|
2147
|
+
"isFullscreen",
|
|
2148
|
+
"isCustom",
|
|
2149
|
+
"smooth",
|
|
2150
|
+
"backdropFilter",
|
|
2151
|
+
"smoothForce",
|
|
2152
|
+
"smoothSnapThreshold",
|
|
2153
|
+
"isA11yMode",
|
|
2154
|
+
"a11yPosition"
|
|
2155
|
+
]),
|
|
2156
|
+
x("div", { id: `legend-bottom-${F.value}` }, null, 8, Yt),
|
|
2157
|
+
Tn.value && (z.value.style.chart.legend.show || n.$slots.legend) ? (T(), v(Le, {
|
|
2158
|
+
key: 6,
|
|
2159
|
+
to: z.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2160
|
+
}, [x("div", {
|
|
2161
|
+
ref_key: "chartLegend",
|
|
2162
|
+
ref: _n
|
|
2163
|
+
}, [O(n.$slots, "legend", { legend: yi.value }, () => [z.value.style.chart.legend.show ? (T(), v(Fe, {
|
|
2164
|
+
key: 0,
|
|
2165
|
+
legendSet: yi.value,
|
|
2166
|
+
config: bi.value,
|
|
2167
|
+
isCursorPointer: B.value,
|
|
2168
|
+
onClickMarker: r[3] ||= ({ legend: e }) => e.segregate()
|
|
2169
|
+
}, Re({
|
|
2170
|
+
item: j(({ legend: e }) => [A(Jn) ? y("", !0) : (T(), b("div", {
|
|
2171
|
+
key: 0,
|
|
2172
|
+
onClick: (t) => e.segregate(),
|
|
2173
|
+
style: w(`opacity:${I.value.includes(e.id) ? .5 : 1}`)
|
|
2174
|
+
}, k(e.name), 13, Xt))]),
|
|
2175
|
+
legendToggle: j(() => [yi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !A(Jn) ? (T(), v(je, {
|
|
2176
|
+
key: 0,
|
|
2177
|
+
backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2178
|
+
color: z.value.style.chart.legend.selectAllToggle.color,
|
|
2179
|
+
fontSize: z.value.style.chart.legend.fontSize,
|
|
2180
|
+
checked: I.value.length > 0,
|
|
2181
|
+
isCursorPointer: B.value,
|
|
2182
|
+
onToggle: mi
|
|
2183
|
+
}, null, 8, [
|
|
2184
|
+
"backgroundColor",
|
|
2185
|
+
"color",
|
|
2186
|
+
"fontSize",
|
|
2187
|
+
"checked",
|
|
2188
|
+
"isCursorPointer"
|
|
2189
|
+
])) : y("", !0)]),
|
|
2190
|
+
_: 2
|
|
2191
|
+
}, [n.$slots.pattern ? {
|
|
2192
|
+
name: "legend-pattern",
|
|
2193
|
+
fn: j(({ legend: e, index: t }) => [Be(Ee, {
|
|
2194
|
+
shape: e.shape,
|
|
2195
|
+
radius: 30,
|
|
2196
|
+
stroke: "none",
|
|
2197
|
+
plot: {
|
|
2198
|
+
x: 30,
|
|
2199
|
+
y: 30
|
|
2200
|
+
},
|
|
2201
|
+
fill: `url(#pattern_${F.value}_${t})`
|
|
2202
|
+
}, null, 8, ["shape", "fill"])]),
|
|
2203
|
+
key: "0"
|
|
2204
|
+
} : void 0]), 1032, [
|
|
2205
|
+
"legendSet",
|
|
2206
|
+
"config",
|
|
2207
|
+
"isCursorPointer"
|
|
2208
|
+
])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
|
|
2209
|
+
n.$slots.source ? (T(), b("div", {
|
|
2210
|
+
key: 7,
|
|
2211
|
+
ref_key: "source",
|
|
2212
|
+
ref: yn,
|
|
2213
|
+
dir: "auto"
|
|
2214
|
+
}, [O(n.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2215
|
+
dn.value && z.value.userOptions.buttons.table ? (T(), v(qe(Di.value.component), He({ key: 8 }, Di.value.props, {
|
|
2216
|
+
ref_key: "tableUnit",
|
|
2217
|
+
ref: En,
|
|
2218
|
+
onClose: Oi
|
|
2219
|
+
}), Re({
|
|
2220
|
+
content: j(() => [Be(A(tn), {
|
|
2221
|
+
colNames: pi.value.colNames,
|
|
2222
|
+
head: pi.value.head,
|
|
2223
|
+
body: pi.value.body,
|
|
2224
|
+
config: pi.value.config,
|
|
2225
|
+
title: z.value.table.useDialog ? "" : Di.value.title,
|
|
2226
|
+
withCloseButton: !z.value.table.useDialog,
|
|
2227
|
+
isCursorPointer: B.value,
|
|
2228
|
+
onClose: Oi
|
|
2229
|
+
}, {
|
|
2230
|
+
th: j(({ th: e }) => [x("div", { innerHTML: e }, null, 8, Zt)]),
|
|
2231
|
+
td: j(({ td: e }) => [ze(k(isNaN(Number(e)) ? e : A(o)({
|
|
2232
|
+
p: z.value.style.chart.bars.dataLabels.prefix,
|
|
2233
|
+
v: e,
|
|
2234
|
+
s: z.value.style.chart.bars.dataLabels.suffix,
|
|
2235
|
+
r: z.value.table.td.roundingValue
|
|
2236
|
+
})), 1)]),
|
|
2237
|
+
_: 1
|
|
2238
|
+
}, 8, [
|
|
2239
|
+
"colNames",
|
|
2240
|
+
"head",
|
|
2241
|
+
"body",
|
|
2242
|
+
"config",
|
|
2243
|
+
"title",
|
|
2244
|
+
"withCloseButton",
|
|
2245
|
+
"isCursorPointer"
|
|
2246
|
+
])]),
|
|
2247
|
+
_: 2
|
|
2248
|
+
}, [z.value.table.useDialog ? {
|
|
2249
|
+
name: "title",
|
|
2250
|
+
fn: j(() => [ze(k(Di.value.title), 1)]),
|
|
2251
|
+
key: "0"
|
|
2252
|
+
} : void 0, z.value.table.useDialog ? {
|
|
2253
|
+
name: "actions",
|
|
2254
|
+
fn: j(() => [x("button", {
|
|
2255
|
+
tabindex: "0",
|
|
2256
|
+
class: "vue-ui-user-options-button",
|
|
2257
|
+
onClick: r[4] ||= (e) => fi(z.value.userOptions.callbacks.csv),
|
|
2258
|
+
style: w({ cursor: B.value ? "pointer" : "default" })
|
|
2259
|
+
}, [Be(A($t), {
|
|
2260
|
+
name: "fileCsv",
|
|
2261
|
+
stroke: Di.value.props.color
|
|
2262
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
2263
|
+
key: "1"
|
|
2264
|
+
} : void 0]), 1040)) : y("", !0),
|
|
2265
|
+
O(n.$slots, "skeleton", {}, () => [A(Jn) ? (T(), v(ve, { key: 0 })) : y("", !0)], !0)
|
|
2266
|
+
], 46, et));
|
|
2267
|
+
}
|
|
2268
|
+
}, [["__scopeId", "data-v-b50edb0a"]]);
|
|
2269
|
+
//#endregion
|
|
2270
|
+
export { $e as n, Qt as t };
|