vue-data-ui 3.19.8 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{A11yDataTable-q2-8fSlJ.js → A11yDataTable-BCbtxMU6.js} +1 -1
- package/dist/{Arrow-Cj6W6Xbi.js → Arrow-D6j6ocXm.js} +1 -1
- package/dist/{BaseDraggableDialog-DUUu2E2Q.js → BaseDraggableDialog-4hDW-Rj2.js} +4 -4
- package/dist/{BaseIcon-DM1x8hQF.js → BaseIcon-DfLoHNUj.js} +3 -3
- package/dist/{BaseLegendToggle-CJTwLGXL.js → BaseLegendToggle-C_Db-y7s.js} +2 -2
- package/dist/{BaseScanner-C7dmAref.js → BaseScanner-Dr2a1Msy.js} +1 -1
- package/dist/{BaseZoomControls-BkajQ8q9.js → BaseZoomControls-CG7hI_1P.js} +3 -3
- package/dist/{ColorPicker-DTQeqKUV.js → ColorPicker-Bjwxnvfh.js} +4 -4
- package/dist/{DataTable-DmE8Oo4i.js → DataTable-B--IN22e.js} +3 -3
- package/dist/{Legend-Gg5Q4Clb.js → Legend-Cz2uQ5gs.js} +4 -4
- package/dist/{NonSvgPenAndPaper-tvWXeCsd.js → NonSvgPenAndPaper-gLNJ1Lmr.js} +28 -28
- package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-xcyrdRmY.js} +2 -2
- package/dist/{PenAndPaper-DNgm6y3l.js → PenAndPaper-DqrClVfb.js} +11 -11
- package/dist/{Shape-DEGOZ6GG.js → Shape-BPCJfphn.js} +1 -1
- package/dist/{Slicer-CPWGgGSp.js → Slicer-SHBj0VaV.js} +19 -19
- package/dist/{SlicerPreview-BU3ZeHjR.js → SlicerPreview-DdihbUSJ.js} +474 -361
- package/dist/{SparkTooltip-c2DL7gqD.js → SparkTooltip-CfE6yCad.js} +7 -7
- package/dist/{Title-__gWq2g6.js → Title-NWp4qB4K.js} +2 -2
- package/dist/{Tooltip-CuWEYGr3.js → Tooltip-BENq327o.js} +1 -1
- package/dist/{UserOptions-D7zR0tnR.js → UserOptions-C1NgoGu6.js} +5 -5
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-pattern-seed.js +1 -1
- package/dist/components/vue-ui-pattern.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-9WSt6hXe.js → dom-to-png-BYtB4BF3.js} +1 -1
- package/dist/exposedLib-CI8ji8G-.js +19 -0
- package/dist/{geoProjections-CQIkC70z.js → geoProjections-Czak6Jn1.js} +3 -4
- package/dist/{img-BjOr008R.js → img-1cKsci8e.js} +2 -2
- package/dist/{labelUtils-Cr97N8E1.js → labelUtils-CUctkYoA.js} +1 -1
- package/dist/{lib-BkiwukKO.js → lib-DUeYQsS0.js} +4 -1
- package/dist/{pdf-DSXSFUnK.js → pdf-D0eZ99cP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1557 -193
- package/dist/types/vue-ui-3d-bar.d.ts +16 -1
- package/dist/types/vue-ui-age-pyramid.d.ts +14 -1
- package/dist/types/vue-ui-annotator.d.ts +28 -6
- package/dist/types/vue-ui-bullet.d.ts +14 -1
- package/dist/types/vue-ui-bump.d.ts +16 -1
- package/dist/types/vue-ui-candlestick.d.ts +16 -3
- package/dist/types/vue-ui-carousel-table.d.ts +14 -1
- package/dist/types/vue-ui-chestnut.d.ts +20 -1
- package/dist/types/vue-ui-chord.d.ts +20 -1
- package/dist/types/vue-ui-circle-pack.d.ts +16 -1
- package/dist/types/vue-ui-dag.d.ts +22 -1
- package/dist/types/vue-ui-dashboard.d.ts +16 -1
- package/dist/types/vue-ui-donut-evolution.d.ts +16 -1
- package/dist/types/vue-ui-donut.d.ts +18 -1
- package/dist/types/vue-ui-dumbbell.d.ts +16 -1
- package/dist/types/vue-ui-flow.d.ts +14 -1
- package/dist/types/vue-ui-funnel.d.ts +14 -1
- package/dist/types/vue-ui-galaxy.d.ts +18 -1
- package/dist/types/vue-ui-gauge.d.ts +14 -1
- package/dist/types/vue-ui-geo.d.ts +14 -1
- package/dist/types/vue-ui-heatmap.d.ts +16 -1
- package/dist/types/vue-ui-history-plot.d.ts +18 -1
- package/dist/types/vue-ui-horizontal-bar.d.ts +18 -1
- package/dist/types/vue-ui-molecule.d.ts +16 -1
- package/dist/types/vue-ui-mood-radar.d.ts +14 -1
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -1
- package/dist/types/vue-ui-onion.d.ts +16 -1
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +18 -1
- package/dist/types/vue-ui-quadrant.d.ts +24 -1
- package/dist/types/vue-ui-quick-chart.d.ts +20 -1
- package/dist/types/vue-ui-radar.d.ts +16 -1
- package/dist/types/vue-ui-rating.d.ts +12 -1
- package/dist/types/vue-ui-relation-circle.d.ts +14 -1
- package/dist/types/vue-ui-ridgeline.d.ts +22 -1
- package/dist/types/vue-ui-rings.d.ts +16 -1
- package/dist/types/vue-ui-scatter.d.ts +16 -1
- package/dist/types/vue-ui-smiley.d.ts +22 -6
- package/dist/types/vue-ui-sparkbar.d.ts +14 -1
- package/dist/types/vue-ui-sparkhistogram.d.ts +14 -1
- package/dist/types/vue-ui-sparkline.d.ts +16 -1
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -1
- package/dist/types/vue-ui-stackbar.d.ts +22 -1
- package/dist/types/vue-ui-stackline.d.ts +22 -1
- package/dist/types/vue-ui-strip-plot.d.ts +16 -1
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -1
- package/dist/types/vue-ui-table.d.ts +17 -4
- package/dist/types/vue-ui-thermometer.d.ts +14 -1
- package/dist/types/vue-ui-timer.d.ts +14 -1
- package/dist/types/vue-ui-tiremarks.d.ts +14 -1
- package/dist/types/vue-ui-treemap.d.ts +18 -1
- package/dist/types/vue-ui-waffle.d.ts +16 -1
- package/dist/types/vue-ui-wheel.d.ts +14 -1
- package/dist/types/vue-ui-word-cloud.d.ts +14 -1
- package/dist/types/vue-ui-world.d.ts +18 -1
- package/dist/types/vue-ui-xy-canvas.d.ts +18 -1
- package/dist/types/vue-ui-xy.d.ts +22 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-dp-3Gg97.js → useAutoSizeLabelsInsideViewbox-BIVntRZp.js} +1 -1
- package/dist/{useConfig-ByaaSKhz.js → useConfig-DAyQk86L.js} +9 -1
- package/dist/{useNestedProp-Ck4hsrpu.js → useNestedProp-CNcoy38D.js} +2 -2
- package/dist/{useObjectBindings-BR1sGimd.js → useObjectBindings-BI7hP-BC.js} +53 -53
- package/dist/{usePrinter-X0yWOynH.js → usePrinter-C1Gqt_Sp.js} +2 -2
- package/dist/utils.js +4 -4
- package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-qpQv-4uP.js} +69 -69
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-C8cputoI.js} +312 -312
- package/dist/{vue-ui-accordion-BX9WL-QF.js → vue-ui-accordion-Dw4MHKVB.js} +6 -6
- package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +1238 -0
- package/dist/{vue-ui-annotator-Be3VpH8Z.js → vue-ui-annotator-DLPUAKlm.js} +66 -66
- package/dist/vue-ui-bullet-DLxmtMJ9.js +710 -0
- package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-DVaqtZbd.js} +260 -260
- package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-CkApimw1.js} +81 -81
- package/dist/vue-ui-carousel-table-CbfIBWl3.js +455 -0
- package/dist/vue-ui-chestnut-CQT4nCFL.js +2010 -0
- package/dist/vue-ui-chord-8IjSrg6f.js +1391 -0
- package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-B1CpTtpw.js} +51 -51
- package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-NaTj5i2-.js} +6 -6
- package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-DH4ocx0S.js} +46 -46
- package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-Ckff1yim.js} +73 -73
- package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-DwLlJqbW.js} +6 -6
- package/dist/vue-ui-donut-DQdIdwRU.js +2410 -0
- package/dist/vue-ui-donut-evolution-MfM5kK6w.js +1510 -0
- package/dist/vue-ui-dumbbell-B2T4vlK-.js +1530 -0
- package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-CJh6f72m.js} +107 -107
- package/dist/vue-ui-funnel-C9gfXNCr.js +777 -0
- package/dist/vue-ui-galaxy-pBR_FESJ.js +1077 -0
- package/dist/vue-ui-gauge-CAemxCGl.js +920 -0
- package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BDQqaukJ.js} +35 -35
- package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-B1ppjqPj.js} +63 -63
- package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-BiC9xp8L.js} +259 -259
- package/dist/vue-ui-history-plot-iAPjlOja.js +1554 -0
- package/dist/vue-ui-horizontal-bar-CcgClgLg.js +1681 -0
- package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CJ5oyYLS.js} +6 -6
- package/dist/{vue-ui-mini-loader-DDJUya9e.js → vue-ui-mini-loader-CyqBt2g4.js} +5 -5
- package/dist/vue-ui-molecule-Cg9ZHa6b.js +925 -0
- package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-N8osOTFR.js} +36 -36
- package/dist/vue-ui-nested-donuts-CwH3wKgX.js +1487 -0
- package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-C56gFjO6.js} +296 -296
- package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C-jj819p.js} +203 -212
- package/dist/{vue-ui-pattern-seed-abRweCDE.js → vue-ui-pattern-seed-BB1honLm.js} +1 -1
- package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-DYc9xZY3.js} +444 -444
- package/dist/vue-ui-quick-chart-BG7kK_-q.js +2469 -0
- package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-CgKog9Xw.js} +186 -183
- package/dist/{vue-ui-rating-D_QR_A3V.js → vue-ui-rating-BG4lf1z8.js} +41 -41
- package/dist/vue-ui-relation-circle-D-rUk-0P.js +924 -0
- package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DPrlVJTW.js} +377 -377
- package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-CIvvHHsF.js} +199 -196
- package/dist/vue-ui-scatter-CeBQJbGx.js +2413 -0
- package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-BKoa_G6d.js} +44 -44
- package/dist/{vue-ui-smiley-rFdGxZK6.js → vue-ui-smiley-G89TxRU-.js} +14 -14
- package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-DGOrPr9I.js} +121 -121
- package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-BVumo-YD.js} +107 -107
- package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-BoCwdQcu.js} +56 -56
- package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-4qXY1LXW.js} +112 -112
- package/dist/vue-ui-sparkline-C0kzXrwI.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-BI8zG-DG.js → vue-ui-sparkstackbar-DG7hz_KM.js} +137 -137
- package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-Dnq4l5xs.js} +344 -341
- package/dist/vue-ui-stackline-CaNOHQYl.js +2398 -0
- package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-D2CcJw_5.js} +79 -79
- package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-NBQrkVnO.js} +84 -84
- package/dist/{vue-ui-table-heatmap-BFKyJTr1.js → vue-ui-table-heatmap-CCGjbSzQ.js} +22 -22
- package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-BZDkOEEl.js} +125 -125
- package/dist/vue-ui-thermometer-BXyHOQ7T.js +763 -0
- package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-CcLK1wbi.js} +29 -29
- package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-B6txvBg-.js} +25 -25
- package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-O3SBpD3K.js} +241 -241
- package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-DN5zG3b0.js} +289 -289
- package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-CxnJGXkX.js} +134 -134
- package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-CM5yPCXb.js} +54 -54
- package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-DCPgXKxh.js} +447 -447
- package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-BUPnRZ3C.js} +91 -90
- package/dist/vue-ui-xy-lfMIx0wK.js +4578 -0
- package/dist/{vue_ui_3d_bar-CXKqO5Ej.js → vue_ui_3d_bar-C4R7o-yX.js} +1 -1
- package/dist/{vue_ui_age_pyramid-BON8QI6X.js → vue_ui_age_pyramid-BY6c-oX_.js} +1 -1
- package/dist/{vue_ui_bullet-CE5sFT7u.js → vue_ui_bullet-ClzdLoOv.js} +1 -1
- package/dist/{vue_ui_bump-frnXaXul.js → vue_ui_bump-Vl-zYAtG.js} +1 -1
- package/dist/{vue_ui_candlestick-sY6UtOop.js → vue_ui_candlestick-J8jmJvxP.js} +1 -1
- package/dist/{vue_ui_chestnut-BiUZFv40.js → vue_ui_chestnut-D2oUhad6.js} +1 -1
- package/dist/{vue_ui_chord-DpyR_b9A.js → vue_ui_chord-DPfS1Umc.js} +1 -1
- package/dist/{vue_ui_circle_pack-FjH0ZQeb.js → vue_ui_circle_pack-DZC_rdfn.js} +1 -1
- package/dist/{vue_ui_dag-Ci_MOnvd.js → vue_ui_dag-TsJ_azQq.js} +1 -1
- package/dist/{vue_ui_donut-Cx2_BGcQ.js → vue_ui_donut-BDGqG07h.js} +1 -1
- package/dist/{vue_ui_donut_evolution-CAJefrHs.js → vue_ui_donut_evolution-D1yAAIHr.js} +1 -1
- package/dist/{vue_ui_dumbbell-CClzAZTN.js → vue_ui_dumbbell-Bfe_jFyi.js} +1 -1
- package/dist/{vue_ui_flow-CCHO1Lo9.js → vue_ui_flow-BewZjjKG.js} +1 -1
- package/dist/{vue_ui_funnel-h8q2mRpC.js → vue_ui_funnel-_Og4EEkO.js} +1 -1
- package/dist/{vue_ui_galaxy-70vtkEBw.js → vue_ui_galaxy-Ig0cc1_h.js} +1 -1
- package/dist/{vue_ui_gauge-C17CgfzN.js → vue_ui_gauge-Cf1RZc9q.js} +1 -1
- package/dist/{vue_ui_geo-C0UbQ0Lc.js → vue_ui_geo-B8TODs-G.js} +1 -1
- package/dist/{vue_ui_heatmap-BqPP3J4M.js → vue_ui_heatmap-B2BBBSWG.js} +1 -1
- package/dist/{vue_ui_history_plot-C5nytDHh.js → vue_ui_history_plot-CuN63VEc.js} +1 -1
- package/dist/{vue_ui_horizontal_bar-Bqxorkc_.js → vue_ui_horizontal_bar-C4J4QzXf.js} +1 -1
- package/dist/{vue_ui_molecule-Dka4JBOp.js → vue_ui_molecule-CO9L59SF.js} +1 -1
- package/dist/{vue_ui_mood_radar-Dg4ijm53.js → vue_ui_mood_radar-BA6LAKhk.js} +1 -1
- package/dist/{vue_ui_nested_donuts-BY9cOoHF.js → vue_ui_nested_donuts-B8csIoVO.js} +1 -1
- package/dist/{vue_ui_onion-DTV9cup-.js → vue_ui_onion-1FTFFS46.js} +1 -1
- package/dist/{vue_ui_parallel_coordinate_plot-CNWrDh96.js → vue_ui_parallel_coordinate_plot-CBiOBira.js} +1 -1
- package/dist/{vue_ui_quadrant-3kjYvxpj.js → vue_ui_quadrant-CDSTKTJz.js} +1 -1
- package/dist/{vue_ui_quick_chart--VaYQuM4.js → vue_ui_quick_chart-mZBdml3Z.js} +1 -1
- package/dist/{vue_ui_radar-Dxx9GJmj.js → vue_ui_radar-jafTED5j.js} +1 -1
- package/dist/{vue_ui_relation_circle-Cr0I2SoU.js → vue_ui_relation_circle-D0p4mXmv.js} +1 -1
- package/dist/{vue_ui_ridgeline-CAtYca4b.js → vue_ui_ridgeline-VM8_mx4J.js} +1 -1
- package/dist/{vue_ui_rings-DXC1VeX5.js → vue_ui_rings-BVgD2aMn.js} +1 -1
- package/dist/{vue_ui_scatter-D2S2j0ap.js → vue_ui_scatter-I0POnicu.js} +1 -1
- package/dist/{vue_ui_spark_trend-BHMQ6_1p.js → vue_ui_spark_trend-DxVmpkmC.js} +1 -1
- package/dist/{vue_ui_sparkbar-BR6hbuDE.js → vue_ui_sparkbar-z6qO--Kf.js} +1 -1
- package/dist/{vue_ui_sparkgauge-xfPRHnMv.js → vue_ui_sparkgauge-BX1MS3bA.js} +1 -1
- package/dist/{vue_ui_sparkhistogram-CJRENZ1C.js → vue_ui_sparkhistogram-BRgvKUH6.js} +1 -1
- package/dist/{vue_ui_sparkline-wgk7yO7E.js → vue_ui_sparkline-auZhap6Y.js} +1 -1
- package/dist/{vue_ui_sparkstackbar-C5qZMmAl.js → vue_ui_sparkstackbar-BOjuQnZd.js} +1 -1
- package/dist/{vue_ui_stackbar-BW_C3MXw.js → vue_ui_stackbar-COOrQQdK.js} +1 -1
- package/dist/{vue_ui_stackline-DXxzibUd.js → vue_ui_stackline-DQqKPA9z.js} +1 -1
- package/dist/{vue_ui_strip_plot-8ZelqC5b.js → vue_ui_strip_plot-CtJe8_gq.js} +1 -1
- package/dist/{vue_ui_table_heatmap-BGUjA0WA.js → vue_ui_table_heatmap-w8vx5k6f.js} +1 -1
- package/dist/{vue_ui_table_sparkline-i0Q-N_we.js → vue_ui_table_sparkline-DAbkUrNz.js} +1 -1
- package/dist/{vue_ui_thermometer-CuN7Gpez.js → vue_ui_thermometer-DxgqWKlE.js} +1 -1
- package/dist/{vue_ui_tiremarks-A6UHC0c3.js → vue_ui_tiremarks-CdEPieWV.js} +1 -1
- package/dist/{vue_ui_treemap-BQp06q-g.js → vue_ui_treemap-DoEtkRN6.js} +1 -1
- package/dist/{vue_ui_waffle-C_Ev4l7B.js → vue_ui_waffle-DIARFc7g.js} +1 -1
- package/dist/{vue_ui_wheel-DdkTPXJU.js → vue_ui_wheel-DZ_nR--t.js} +1 -1
- package/dist/{vue_ui_word_cloud-B1PbsYPc.js → vue_ui_word_cloud-C-qIMNLu.js} +1 -1
- package/dist/{vue_ui_xy-BYPqfYyx.js → vue_ui_xy-BLUkWEAm.js} +1 -1
- package/dist/{vue_ui_xy_canvas-CMHGNrLf.js → vue_ui_xy_canvas-Cb6dg3eK.js} +1 -1
- package/package.json +6 -6
- package/dist/exposedLib-CwWU4zv-.js +0 -19
- package/dist/vue-ui-age-pyramid-Bu3bocZx.js +0 -1238
- package/dist/vue-ui-bullet-COSSZ7RU.js +0 -710
- package/dist/vue-ui-carousel-table-Q2uTIELA.js +0 -455
- package/dist/vue-ui-chestnut-DdNKhXkN.js +0 -2010
- package/dist/vue-ui-chord-CYzGIRtA.js +0 -1391
- package/dist/vue-ui-donut-BSanYbqb.js +0 -2408
- package/dist/vue-ui-donut-evolution-BVttNIzH.js +0 -1510
- package/dist/vue-ui-dumbbell-D-KcBLOF.js +0 -1527
- package/dist/vue-ui-funnel-COwXzAbB.js +0 -777
- package/dist/vue-ui-galaxy-Cg9VStNF.js +0 -1074
- package/dist/vue-ui-gauge-DHWCS6jR.js +0 -920
- package/dist/vue-ui-history-plot-CgPjudHv.js +0 -1563
- package/dist/vue-ui-horizontal-bar-CpQCmBQD.js +0 -1681
- package/dist/vue-ui-molecule-CvfwMxYY.js +0 -925
- package/dist/vue-ui-nested-donuts-C-LWBXmg.js +0 -1484
- package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
- package/dist/vue-ui-relation-circle-MxYh6hSt.js +0 -924
- package/dist/vue-ui-scatter-DrS1nrwL.js +0 -2413
- package/dist/vue-ui-sparkline-BAWc3ROJ.js +0 -1507
- package/dist/vue-ui-stackline-DwtlEdOE.js +0 -2395
- package/dist/vue-ui-thermometer-Io8LdW1o.js +0 -763
- package/dist/vue-ui-xy-BCeOqJYR.js +0 -4216
- /package/dist/{RecursiveCircles-DPpLel6f.js → RecursiveCircles-D6aDPmoe.js} +0 -0
- /package/dist/{RecursiveLabels-DBMJf_to.js → RecursiveLabels-D9rfID6q.js} +0 -0
- /package/dist/{RecursiveLinks-D06dBL4a.js → RecursiveLinks-BygcpDiT.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
- /package/dist/{canvas-lib-DTaADQOK.js → canvas-lib-BOP_HS11.js} +0 -0
- /package/dist/{patternUtils-B7BWu5bV.js → patternUtils-CS7hn6at.js} +0 -0
- /package/dist/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
- /package/dist/{useChartAccessibility-Do37qcw2.js → useChartAccessibility-DYqac8yF.js} +0 -0
- /package/dist/{useFitSvgText-C-MEdAfe.js → useFitSvgText-CT3nmlaS.js} +0 -0
- /package/dist/{usePanZoom-B-4M_gmY.js → usePanZoom-CYU3B4T3.js} +0 -0
- /package/dist/{usePrefersMotion-BywLbIko.js → usePrefersMotion-BC-CsqR1.js} +0 -0
- /package/dist/{useResponsive-CrAInupd.js → useResponsive-BfnK0KxU.js} +0 -0
- /package/dist/{useStableElementSize-0I1IpHPl.js → useStableElementSize-C7KADDKj.js} +0 -0
- /package/dist/{useSvgExport-Dtu973wa.js → useSvgExport-SVIsDot8.js} +0 -0
- /package/dist/{useTableResponsive-DrM1xqII.js → useTableResponsive-B24Uwt2E.js} +0 -0
- /package/dist/{useThemeCheck-rFK9Zlb_.js → useThemeCheck-C43Tcqmk.js} +0 -0
- /package/dist/{useTimeLabelCollider-Dm55Emzg.js → useTimeLabelCollider-AEcY4Ioe.js} +0 -0
- /package/dist/{useTimeLabels-C0x7zUXP.js → useTimeLabels-BmBRv27Y.js} +0 -0
- /package/dist/{useUserOptionState-CjPJPTg2.js → useUserOptionState-DK-_1ddE.js} +0 -0
- /package/dist/{vClickOutside-CbX_bC9A.js → vClickOutside-DUrZWttG.js} +0 -0
- /package/dist/{vue-ui-pattern-Bj-IPFr2.js → vue-ui-pattern-DKozfnVn.js} +0 -0
- /package/dist/{vue_ui_vertical_bar-CJSD1FZS.js → vue_ui_vertical_bar-CP-MKz1j.js} +0 -0
|
@@ -0,0 +1,1681 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { B as t, Bt as n, Ct as r, Et as i, G as a, H as o, J as s, Lt as ee, Mt as te, Nt as ne, Rt as re, S as ie, X as ae, at as oe, dt as se, i as ce, nt as le, pt as ue, t as de, v as c, x as fe, y as pe } from "./lib-DUeYQsS0.js";
|
|
3
|
+
import { t as me } from "./useConfig-DAyQk86L.js";
|
|
4
|
+
import { t as he } from "./usePrinter-C1Gqt_Sp.js";
|
|
5
|
+
import { n as ge, t as _e } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
+
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ye } from "./useNestedProp-CNcoy38D.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./img-1cKsci8e.js";
|
|
10
|
+
import { n as Se } from "./Title-NWp4qB4K.js";
|
|
11
|
+
import { t as Ce } from "./Shape-BPCJfphn.js";
|
|
12
|
+
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as Te } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as Ee } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as De } from "./vue-ui-accordion-Dw4MHKVB.js";
|
|
16
|
+
import { t as Oe } from "./BaseLegendToggle-C_Db-y7s.js";
|
|
17
|
+
import { t as ke } from "./A11yDataTable-BCbtxMU6.js";
|
|
18
|
+
import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as je } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Me } from "./useTableResponsive-B24Uwt2E.js";
|
|
21
|
+
import { t as Ne } from "./Legend-Cz2uQ5gs.js";
|
|
22
|
+
import { t as Pe } from "./vue_ui_horizontal_bar-C4J4QzXf.js";
|
|
23
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as Re, guardReactiveProps as h, mergeProps as ze, nextTick as Be, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Ve, onMounted as He, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ue, toDisplayString as C, toRefs as We, unref as w, useCssVars as Ge, useSlots as Ke, watch as qe, withCtx as T, withKeys as Je } from "vue";
|
|
24
|
+
//#region src/components/vue-ui-horizontal-bar.vue
|
|
25
|
+
var Ye = /* @__PURE__ */ e({ default: () => Wt }), Xe = ["id"], Ze = ["id"], Qe = ["onClick"], $e = { style: { position: "relative" } }, et = [
|
|
26
|
+
"xmlns",
|
|
27
|
+
"viewBox",
|
|
28
|
+
"aria-describedby"
|
|
29
|
+
], tt = ["width", "height"], nt = ["id"], rt = ["stop-color"], it = ["stop-color"], at = { key: 1 }, ot = [
|
|
30
|
+
"y",
|
|
31
|
+
"width",
|
|
32
|
+
"height",
|
|
33
|
+
"fill",
|
|
34
|
+
"rx"
|
|
35
|
+
], st = [
|
|
36
|
+
"x",
|
|
37
|
+
"y",
|
|
38
|
+
"width",
|
|
39
|
+
"height",
|
|
40
|
+
"fill",
|
|
41
|
+
"rx"
|
|
42
|
+
], ct = [
|
|
43
|
+
"x",
|
|
44
|
+
"y",
|
|
45
|
+
"width",
|
|
46
|
+
"height",
|
|
47
|
+
"fill",
|
|
48
|
+
"rx",
|
|
49
|
+
"stroke",
|
|
50
|
+
"stroke-width"
|
|
51
|
+
], lt = [
|
|
52
|
+
"x",
|
|
53
|
+
"y",
|
|
54
|
+
"width",
|
|
55
|
+
"height",
|
|
56
|
+
"fill",
|
|
57
|
+
"rx",
|
|
58
|
+
"stroke",
|
|
59
|
+
"stroke-width"
|
|
60
|
+
], ut = [
|
|
61
|
+
"x1",
|
|
62
|
+
"x2",
|
|
63
|
+
"y1",
|
|
64
|
+
"y2",
|
|
65
|
+
"stroke",
|
|
66
|
+
"stroke-width"
|
|
67
|
+
], dt = [
|
|
68
|
+
"x1",
|
|
69
|
+
"x2",
|
|
70
|
+
"y1",
|
|
71
|
+
"y2",
|
|
72
|
+
"stroke",
|
|
73
|
+
"stroke-width"
|
|
74
|
+
], ft = { class: "vue-ui-horizontal-bar-parent-label" }, pt = [
|
|
75
|
+
"y",
|
|
76
|
+
"height",
|
|
77
|
+
"width",
|
|
78
|
+
"fill"
|
|
79
|
+
], mt = [
|
|
80
|
+
"y",
|
|
81
|
+
"font-size",
|
|
82
|
+
"fill",
|
|
83
|
+
"x",
|
|
84
|
+
"font-weight",
|
|
85
|
+
"innerHTML"
|
|
86
|
+
], ht = [
|
|
87
|
+
"y",
|
|
88
|
+
"font-size",
|
|
89
|
+
"fill",
|
|
90
|
+
"x",
|
|
91
|
+
"font-weight"
|
|
92
|
+
], gt = { class: "vue-ui-horizontal-bar-child-label" }, _t = [
|
|
93
|
+
"x",
|
|
94
|
+
"y",
|
|
95
|
+
"font-size",
|
|
96
|
+
"font-weight",
|
|
97
|
+
"innerHTML"
|
|
98
|
+
], vt = { class: "vue-ui-horizontal-bar-child-label" }, yt = [
|
|
99
|
+
"x",
|
|
100
|
+
"y",
|
|
101
|
+
"font-size",
|
|
102
|
+
"fill",
|
|
103
|
+
"font-weight",
|
|
104
|
+
"innerHTML"
|
|
105
|
+
], bt = { class: "vue-ui-horizontal-bar-child-label" }, xt = [
|
|
106
|
+
"x",
|
|
107
|
+
"y",
|
|
108
|
+
"text-anchor",
|
|
109
|
+
"font-size",
|
|
110
|
+
"fill",
|
|
111
|
+
"font-weight"
|
|
112
|
+
], St = [
|
|
113
|
+
"y",
|
|
114
|
+
"width",
|
|
115
|
+
"height",
|
|
116
|
+
"fill",
|
|
117
|
+
"onMouseenter",
|
|
118
|
+
"onMouseleave",
|
|
119
|
+
"onClick"
|
|
120
|
+
], Ct = {
|
|
121
|
+
key: 0,
|
|
122
|
+
style: {
|
|
123
|
+
position: "absolute",
|
|
124
|
+
top: "100%",
|
|
125
|
+
left: "0",
|
|
126
|
+
width: "100%"
|
|
127
|
+
},
|
|
128
|
+
"data-dom-to-png-ignore": "",
|
|
129
|
+
"aria-hidden": "true"
|
|
130
|
+
}, wt = {
|
|
131
|
+
key: 6,
|
|
132
|
+
class: "vue-data-ui-watermark"
|
|
133
|
+
}, Tt = ["onClick"], Et = { style: "width:100%;padding-top: 36px;position:relative" }, Dt = { class: "vue-ui-data-table" }, Ot = { key: 0 }, kt = { style: { width: "100%" } }, At = ["data-cell"], jt = { style: {
|
|
134
|
+
display: "flex",
|
|
135
|
+
"align-items": "center",
|
|
136
|
+
gap: "5px",
|
|
137
|
+
"justify-content": "flex-end",
|
|
138
|
+
width: "100%",
|
|
139
|
+
"padding-right": "3px"
|
|
140
|
+
} }, Mt = ["data-cell"], Nt = { style: {
|
|
141
|
+
display: "flex",
|
|
142
|
+
"align-items": "center",
|
|
143
|
+
gap: "5px",
|
|
144
|
+
"justify-content": "flex-end",
|
|
145
|
+
width: "100%",
|
|
146
|
+
"padding-right": "3px"
|
|
147
|
+
} }, Pt = ["data-cell"], Ft = { style: {
|
|
148
|
+
display: "flex",
|
|
149
|
+
"align-items": "center",
|
|
150
|
+
gap: "5px",
|
|
151
|
+
"justify-content": "flex-end",
|
|
152
|
+
width: "100%",
|
|
153
|
+
"padding-right": "3px"
|
|
154
|
+
} }, It = ["data-cell"], Lt = { style: {
|
|
155
|
+
display: "flex",
|
|
156
|
+
"align-items": "center",
|
|
157
|
+
gap: "5px",
|
|
158
|
+
"justify-content": "flex-end",
|
|
159
|
+
width: "100%",
|
|
160
|
+
"padding-right": "3px"
|
|
161
|
+
} }, Rt = ["data-cell"], zt = { style: {
|
|
162
|
+
display: "flex",
|
|
163
|
+
"align-items": "center",
|
|
164
|
+
gap: "5px",
|
|
165
|
+
"justify-content": "flex-end",
|
|
166
|
+
width: "100%",
|
|
167
|
+
"padding-right": "3px"
|
|
168
|
+
} }, Bt = ["data-cell"], Vt = { style: {
|
|
169
|
+
display: "flex",
|
|
170
|
+
"align-items": "center",
|
|
171
|
+
gap: "5px",
|
|
172
|
+
"justify-content": "flex-end",
|
|
173
|
+
width: "100%",
|
|
174
|
+
"padding-right": "3px"
|
|
175
|
+
} }, Ht = ["data-cell"], Ut = { style: {
|
|
176
|
+
display: "flex",
|
|
177
|
+
"align-items": "center",
|
|
178
|
+
gap: "5px",
|
|
179
|
+
"justify-content": "flex-end",
|
|
180
|
+
width: "100%",
|
|
181
|
+
"padding-right": "3px"
|
|
182
|
+
} }, Wt = /* @__PURE__ */ we({
|
|
183
|
+
__name: "vue-ui-horizontal-bar",
|
|
184
|
+
props: {
|
|
185
|
+
config: {
|
|
186
|
+
type: Object,
|
|
187
|
+
default() {
|
|
188
|
+
return {};
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
dataset: {
|
|
192
|
+
type: Array,
|
|
193
|
+
default() {
|
|
194
|
+
return [];
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
emits: [
|
|
199
|
+
"selectLegend",
|
|
200
|
+
"copyAlt",
|
|
201
|
+
"selectDatapoint"
|
|
202
|
+
],
|
|
203
|
+
setup(e, { expose: we, emit: Ye }) {
|
|
204
|
+
Ge((e) => ({ v36bdb0b9: e.tdo }));
|
|
205
|
+
let Wt = Re(() => import("./Tooltip-BENq327o.js")), Gt = Re(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), Kt = Re(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), qt = Re(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Jt = Re(() => import("./PackageVersion-xcyrdRmY.js").then((e) => e.t)), Yt = Re(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_vertical_bar: Xt } = me(), { isThemeValid: Zt, warnInvalidTheme: Qt } = be(), $t = Ke(), E = e, en = u({
|
|
206
|
+
get() {
|
|
207
|
+
return !!E.dataset && E.dataset.length;
|
|
208
|
+
},
|
|
209
|
+
set(e) {
|
|
210
|
+
return e;
|
|
211
|
+
}
|
|
212
|
+
}), D = b(o()), tn = b(!1), nn = b(""), rn = b(null), an = b(0), O = b(null), on = b(null), sn = b(null), cn = b(null), ln = b(null), un = b(0), dn = b(0), fn = b(null), pn = b(null), mn = b(null), hn = b(null), gn = b(null), k = b([]), _n = b({
|
|
213
|
+
none: 0,
|
|
214
|
+
asc: 1,
|
|
215
|
+
desc: 2
|
|
216
|
+
}), A = b(0), vn = b(!1), yn = b(0), bn = b(0), xn = b(null), Sn = b(!1), Cn = b(!1), j = b(null), wn = b({
|
|
217
|
+
x: 0,
|
|
218
|
+
y: 0
|
|
219
|
+
}), Tn = b("pointer"), En = Ye, M = b(In()), N = u(() => M.value.userOptions.useCursorPointer), Dn = u(() => E.config?.skeletonDataset ?? [
|
|
220
|
+
{
|
|
221
|
+
name: "",
|
|
222
|
+
value: 6,
|
|
223
|
+
color: "#d9d9d9"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: "",
|
|
227
|
+
value: 5,
|
|
228
|
+
color: "#d9d9d9"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
name: "",
|
|
232
|
+
value: 4,
|
|
233
|
+
color: "#d9d9d9"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: "",
|
|
237
|
+
value: 3,
|
|
238
|
+
color: "#d9d9d9"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: "",
|
|
242
|
+
value: 2,
|
|
243
|
+
color: "#d9d9d9"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: "",
|
|
247
|
+
value: 1,
|
|
248
|
+
color: "#d9d9d9"
|
|
249
|
+
}
|
|
250
|
+
]), On = u(() => n({
|
|
251
|
+
defaultConfig: {
|
|
252
|
+
useCssAnimation: !1,
|
|
253
|
+
userOptions: { show: !1 },
|
|
254
|
+
table: { show: !1 },
|
|
255
|
+
style: { chart: {
|
|
256
|
+
backgroundColor: "#99999930",
|
|
257
|
+
layout: {
|
|
258
|
+
bars: {
|
|
259
|
+
offsetX: 110,
|
|
260
|
+
dataLabels: {
|
|
261
|
+
color: "transparent",
|
|
262
|
+
value: {
|
|
263
|
+
prefix: "",
|
|
264
|
+
suffix: "",
|
|
265
|
+
formatter: null
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
nameLabels: { color: "transparent" }
|
|
269
|
+
},
|
|
270
|
+
separators: { color: "#7A7A7A" }
|
|
271
|
+
},
|
|
272
|
+
legend: {
|
|
273
|
+
show: !0,
|
|
274
|
+
backgroundColor: "transparent",
|
|
275
|
+
color: "transparent",
|
|
276
|
+
prefix: "",
|
|
277
|
+
suffix: "",
|
|
278
|
+
formatter: null
|
|
279
|
+
},
|
|
280
|
+
title: {
|
|
281
|
+
color: "#1A1A1A",
|
|
282
|
+
subtitle: { color: "#5A5A5A" }
|
|
283
|
+
}
|
|
284
|
+
} }
|
|
285
|
+
},
|
|
286
|
+
userConfig: M.value.skeletonConfig ?? {}
|
|
287
|
+
})), { loading: kn, FINAL_DATASET: An, manualLoading: jn } = ge({
|
|
288
|
+
...We(E),
|
|
289
|
+
FINAL_CONFIG: M,
|
|
290
|
+
prepareConfig: In,
|
|
291
|
+
callback: () => {
|
|
292
|
+
Promise.resolve().then(async () => {
|
|
293
|
+
z.value.showTable = M.value.table.show, qn();
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
skeletonDataset: Dn.value,
|
|
297
|
+
skeletonConfig: n({
|
|
298
|
+
defaultConfig: M.value,
|
|
299
|
+
userConfig: On.value
|
|
300
|
+
})
|
|
301
|
+
}), { userOptionsVisible: Mn, setUserOptionsVisibility: Nn, keepUserOptionState: Pn } = Ae({ config: M.value }), { svgRef: Fn } = je({ config: M.value.style.chart.title });
|
|
302
|
+
function In() {
|
|
303
|
+
let e = ye({
|
|
304
|
+
userConfig: E.config,
|
|
305
|
+
defaultConfig: Xt
|
|
306
|
+
}), t = {}, n = e.theme;
|
|
307
|
+
if (n) if (!Zt.value(e)) Qt(e), t = e;
|
|
308
|
+
else {
|
|
309
|
+
let r = ye({
|
|
310
|
+
userConfig: Pe[n] || E.config,
|
|
311
|
+
defaultConfig: e
|
|
312
|
+
});
|
|
313
|
+
t = {
|
|
314
|
+
...ye({
|
|
315
|
+
userConfig: E.config,
|
|
316
|
+
defaultConfig: r
|
|
317
|
+
}),
|
|
318
|
+
customPalette: e.customPalette.length ? e.customPalette : re[n] || i
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
else t = e;
|
|
322
|
+
return E.config && se(E.config, "events.datapointEnter") ? t.events.datapointEnter = E.config.events.datapointEnter : t.events.datapointEnter = null, E.config && se(E.config, "events.datapointLeave") ? t.events.datapointLeave = E.config.events.datapointLeave : t.events.datapointLeave = null, E.config && se(E.config, "events.datapointClick") ? t.events.datapointClick = E.config.events.datapointClick : t.events.datapointClick = null, t;
|
|
323
|
+
}
|
|
324
|
+
let P = b(M.value.style.chart.width), F = b(M.value.style.chart.height), I = b(M.value.style.chart.layout.bars.gap);
|
|
325
|
+
qe(() => E.config, (e) => {
|
|
326
|
+
kn.value || (M.value = In()), Mn.value = !M.value.userOptions.showOnChartHover, un.value += 1, dn.value += 1, z.value.showTable = M.value.table.show, z.value.sortDesc = M.value.style.chart.layout.bars.sort === "desc", z.value.showTooltip = M.value.style.chart.tooltip.show, P.value = M.value.style.chart.width, F.value = M.value.style.chart.height, I.value = M.value.style.chart.layout.bars.gap;
|
|
327
|
+
}, { deep: !0 }), qe(() => E.dataset, (e) => {
|
|
328
|
+
Array.isArray(e) && e.length > 0 && (jn.value = !1);
|
|
329
|
+
}, { deep: !0 });
|
|
330
|
+
let { isPrinting: Ln, isImaging: Rn, generatePdf: zn, generateImage: Bn } = he({
|
|
331
|
+
elementId: `vue-ui-vertical-bar_${D.value}`,
|
|
332
|
+
fileName: M.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
333
|
+
options: M.value.userOptions.print
|
|
334
|
+
}), Vn = u(() => M.value.userOptions.show && !M.value.style.chart.title.text), Hn = u(() => fe(M.value.customPalette)), Un = b(null), Wn = u(() => M.value.table.responsiveBreakpoint), Gn = u(() => !!M.value.debug), Kn = b(0), L = b(null), R = b(null);
|
|
335
|
+
function qn() {
|
|
336
|
+
if (O.value && (r(E.dataset) && (ae({
|
|
337
|
+
componentName: "VueUiVerticalBar",
|
|
338
|
+
type: "dataset",
|
|
339
|
+
debug: Gn.value
|
|
340
|
+
}), en.value = !1, jn.value = !0), r(E.dataset) || (jn.value = M.value.loading), M.value.responsive)) {
|
|
341
|
+
let e = Te(() => {
|
|
342
|
+
let { width: e, height: t } = Ee({
|
|
343
|
+
chart: O.value,
|
|
344
|
+
title: M.value.style.chart.title.text ? on.value : null,
|
|
345
|
+
legend: M.value.style.chart.legend.show ? sn.value : null,
|
|
346
|
+
source: cn.value,
|
|
347
|
+
noTitle: ln.value
|
|
348
|
+
});
|
|
349
|
+
Kn.value = t / 3, requestAnimationFrame(async () => {
|
|
350
|
+
F.value = t, P.value = e;
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), Be(() => {
|
|
354
|
+
R.value = O.value?.parentNode, R.value && L.value.observe(R.value);
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
Ve(() => {
|
|
359
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
|
|
360
|
+
});
|
|
361
|
+
let z = b({
|
|
362
|
+
showTable: M.value.table.show,
|
|
363
|
+
sortDesc: M.value.style.chart.layout.bars.sort === "desc",
|
|
364
|
+
showTooltip: M.value.style.chart.tooltip.show
|
|
365
|
+
}), Jn = u(() => z.value.sortDesc), B = u(() => (An.value.forEach((e, t) => {
|
|
366
|
+
!e.value && !e.children && ae({
|
|
367
|
+
componentName: "VueUiVerticalBar",
|
|
368
|
+
type: "datasetAttributeEmpty",
|
|
369
|
+
property: `value (index ${t})`,
|
|
370
|
+
debug: Gn.value
|
|
371
|
+
}), e.children && (r(e.children) ? ae({
|
|
372
|
+
componentName: "VueUiVerticalBar",
|
|
373
|
+
type: "datasetAttributeEmpty",
|
|
374
|
+
property: `children (index ${t})`,
|
|
375
|
+
debug: Gn.value
|
|
376
|
+
}) : e.children.forEach((e, t) => {
|
|
377
|
+
[null, void 0].includes(e.name) && ae({
|
|
378
|
+
componentName: "VueUiVerticalBar",
|
|
379
|
+
type: "datasetSerieAttribute",
|
|
380
|
+
property: "name",
|
|
381
|
+
key: "children",
|
|
382
|
+
index: t,
|
|
383
|
+
debug: Gn.value
|
|
384
|
+
});
|
|
385
|
+
}));
|
|
386
|
+
}), An.value.map((e, t) => {
|
|
387
|
+
let n = `vertical_parent_${t}_${D.value}`, r = e.children && e.children.length > 0, a = c(e.value ? e.value : r ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), o = a >= 0 ? 1 : -1;
|
|
388
|
+
return {
|
|
389
|
+
...e,
|
|
390
|
+
id: n,
|
|
391
|
+
absoluteIndex: t,
|
|
392
|
+
shape: "square",
|
|
393
|
+
opacity: k.value.includes(n) ? .5 : 1,
|
|
394
|
+
value: Math.abs(a),
|
|
395
|
+
sign: o,
|
|
396
|
+
hasChildren: r,
|
|
397
|
+
isChild: !1,
|
|
398
|
+
segregate: () => J(n),
|
|
399
|
+
isSegregated: k.value.includes(n),
|
|
400
|
+
color: pe(e.color) || Hn.value[t] || i[t] || i[t % i.length],
|
|
401
|
+
children: !e.children || !e.children.length ? [] : e.children.toSorted(vn.value ? () => 0 : (e, t) => Jn.value ? t.value - e.value : e.value - t.value).map((r, s) => ({
|
|
402
|
+
...r,
|
|
403
|
+
value: c(Math.abs(r.value)),
|
|
404
|
+
absoluteIndex: t,
|
|
405
|
+
sign: r.value >= 0 ? 1 : -1,
|
|
406
|
+
isChild: !0,
|
|
407
|
+
parentId: n,
|
|
408
|
+
parentName: e.name,
|
|
409
|
+
parentValue: a,
|
|
410
|
+
parentSign: o,
|
|
411
|
+
id: `vertical_child_${t}_${s}_${D.value}`,
|
|
412
|
+
childIndex: s,
|
|
413
|
+
color: pe(r.color) || pe(e.color) || Hn.value[t] || i[t] || i[t % i.length]
|
|
414
|
+
})).map((t, n) => ({
|
|
415
|
+
...t,
|
|
416
|
+
isFirstChild: n === 0,
|
|
417
|
+
isLastChild: n === e.children.length - 1
|
|
418
|
+
}))
|
|
419
|
+
};
|
|
420
|
+
}).toSorted(vn.value ? () => 0 : (e, t) => Jn.value ? t.value - e.value : e.value - t.value))), V = u(() => B.value.filter((e) => !k.value.includes(e.id))), H = u(() => V.value.flatMap((e) => e.hasChildren ? e.children : e)), Yn = u(() => B.value.flatMap((e) => e.hasChildren ? e.children : e)), Xn = u(() => V.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Zn = u(() => ({
|
|
421
|
+
cy: "vertical-bar-div-legend",
|
|
422
|
+
backgroundColor: M.value.style.chart.legend.backgroundColor,
|
|
423
|
+
color: M.value.style.chart.legend.color,
|
|
424
|
+
fontSize: M.value.style.chart.legend.fontSize,
|
|
425
|
+
paddingBottom: 12,
|
|
426
|
+
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
427
|
+
})), U = u(() => M.value.style.chart.layout.bars.parentLabels.show ? M.value.style.chart.layout.bars.parentLabels.fontSize * 3 + M.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), W = u(() => {
|
|
428
|
+
let e = [], t = 0;
|
|
429
|
+
return H.value.forEach((n, r) => {
|
|
430
|
+
n.isChild && n.childIndex === 0 && M.value.style.chart.layout.bars.parentLabels.show && (t += 1), e[r] = t;
|
|
431
|
+
}), e;
|
|
432
|
+
}), G = u(() => {
|
|
433
|
+
let e = Math.max(0, ...W.value) * U.value;
|
|
434
|
+
return (F.value - 24 - (Xn.value - 1) * I.value - e) / Xn.value;
|
|
435
|
+
}), K = u(() => ({
|
|
436
|
+
width: P.value,
|
|
437
|
+
height: F.value,
|
|
438
|
+
padding: {
|
|
439
|
+
top: 12,
|
|
440
|
+
left: 128 + M.value.style.chart.layout.bars.offsetX,
|
|
441
|
+
right: 64 + M.value.style.chart.layout.bars.paddingRight,
|
|
442
|
+
bottom: 12
|
|
443
|
+
}
|
|
444
|
+
})), Qn = b(0);
|
|
445
|
+
function $n() {
|
|
446
|
+
Be(() => {
|
|
447
|
+
if (!gn.value) {
|
|
448
|
+
Qn.value = 0;
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
Qn.value = Array.from(gn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
452
|
+
let n = t.getBBox?.().width ?? t.getComputedTextLength();
|
|
453
|
+
return n > e ? n : e;
|
|
454
|
+
}, 0) + 12;
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
qe(() => [
|
|
458
|
+
H.value,
|
|
459
|
+
P.value,
|
|
460
|
+
F.value,
|
|
461
|
+
M.value.style.chart.layout.bars.nameLabels,
|
|
462
|
+
M.value.style.chart.layout.bars.offsetX
|
|
463
|
+
], () => $n(), { deep: !0 }), He(() => {
|
|
464
|
+
$n();
|
|
465
|
+
});
|
|
466
|
+
function er() {
|
|
467
|
+
Be(() => {
|
|
468
|
+
yn.value = 0, bn.value = 0, requestAnimationFrame(() => {
|
|
469
|
+
if (!xn.value) {
|
|
470
|
+
yn.value = 0, bn.value = 0;
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
let e = Array.from(xn.value.querySelectorAll("text"));
|
|
474
|
+
if (!e.length) {
|
|
475
|
+
yn.value = 0, bn.value = 0;
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
let t = Infinity, n = 0;
|
|
479
|
+
e.forEach((e) => {
|
|
480
|
+
let r = e.getBBox(), i = r.x, a = r.x + r.width;
|
|
481
|
+
i < t && (t = i), a > n && (n = a);
|
|
482
|
+
});
|
|
483
|
+
let r = P.value, i = Math.max(0, 0 - t + 24), a = Math.max(0, n - r + 24);
|
|
484
|
+
bn.value = i, yn.value = a;
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
qe(k, () => er(), { deep: !0 }), qe(() => [
|
|
489
|
+
H.value,
|
|
490
|
+
P.value,
|
|
491
|
+
F.value
|
|
492
|
+
], () => er(), { deep: !0 }), He(() => er());
|
|
493
|
+
let q = u(() => {
|
|
494
|
+
let e = Qn.value + Math.abs(M.value.style.chart.layout.bars.nameLabels.offsetX) + bn.value + M.value.style.chart.layout.bars.offsetX, t = K.value.width - K.value.padding.right, n = Math.max(0, t - e - yn.value - bn.value - M.value.style.chart.layout.bars.offsetX);
|
|
495
|
+
return {
|
|
496
|
+
top: K.value.padding.top,
|
|
497
|
+
bottom: K.value.padding.top + K.value.height,
|
|
498
|
+
left: e,
|
|
499
|
+
right: t,
|
|
500
|
+
width: n,
|
|
501
|
+
fullHeight: K.value.padding.top + K.value.padding.bottom + K.value.height
|
|
502
|
+
};
|
|
503
|
+
});
|
|
504
|
+
function tr() {
|
|
505
|
+
k.value.length ? k.value = [] : B.value.forEach((e) => {
|
|
506
|
+
k.value.push(e.id);
|
|
507
|
+
}), er(), En("selectLegend", V.value);
|
|
508
|
+
}
|
|
509
|
+
async function J(e) {
|
|
510
|
+
if (k.value.includes(e)) k.value = k.value.filter((t) => t !== e);
|
|
511
|
+
else {
|
|
512
|
+
if (k.value.length === B.value.length - 1) return;
|
|
513
|
+
k.value.push(e);
|
|
514
|
+
}
|
|
515
|
+
En("selectLegend", V.value), er();
|
|
516
|
+
}
|
|
517
|
+
function nr(e) {
|
|
518
|
+
return B.value.length ? B.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (M.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null);
|
|
519
|
+
}
|
|
520
|
+
function rr(e) {
|
|
521
|
+
let t = nr(e);
|
|
522
|
+
t !== null && k.value.includes(t.id) && J(t.id);
|
|
523
|
+
}
|
|
524
|
+
function ir(e) {
|
|
525
|
+
let t = nr(e);
|
|
526
|
+
t !== null && (k.value.includes(t.id) || J(t.id));
|
|
527
|
+
}
|
|
528
|
+
let Y = u(() => V.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
529
|
+
function ar(e, t = !1, n = 0) {
|
|
530
|
+
return t ? a({
|
|
531
|
+
v: c(Math.abs(e) / Y.value * 100),
|
|
532
|
+
s: "%",
|
|
533
|
+
r: n
|
|
534
|
+
}) : Math.abs(e) / Y.value;
|
|
535
|
+
}
|
|
536
|
+
let X = u(() => H.value.map((e) => e.sign).includes(-1)), or = u(() => Math.max(...V.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
|
|
537
|
+
function Z(e) {
|
|
538
|
+
let t = e / or.value;
|
|
539
|
+
return c(q.value.width / (X.value ? 2 : 1) * t);
|
|
540
|
+
}
|
|
541
|
+
function sr(e) {
|
|
542
|
+
return Z(e) + q.value.left;
|
|
543
|
+
}
|
|
544
|
+
function cr(e, t) {
|
|
545
|
+
let n = V.value.find((t) => t.id === e.parentId);
|
|
546
|
+
return {
|
|
547
|
+
y: q.value.top + (I.value + G.value) * t + W.value[t] * U.value - U.value + M.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
548
|
+
name: n.name,
|
|
549
|
+
value: [
|
|
550
|
+
void 0,
|
|
551
|
+
NaN,
|
|
552
|
+
null
|
|
553
|
+
].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
|
|
554
|
+
percentageToTotal: isNaN(n.value / Y.value) ? "" : ar(n.value, !0, M.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
555
|
+
sign: n.sign
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
function lr() {
|
|
559
|
+
return V.value;
|
|
560
|
+
}
|
|
561
|
+
function ur(e, t) {
|
|
562
|
+
return cr(e, t).name;
|
|
563
|
+
}
|
|
564
|
+
function dr(e, t) {
|
|
565
|
+
let n = cr(e, t);
|
|
566
|
+
return _r(n.value, n, t, e.parentSign || e.sign);
|
|
567
|
+
}
|
|
568
|
+
let fr = b(null), pr = b(null);
|
|
569
|
+
function mr({ datapoint: e, seriesIndex: t }) {
|
|
570
|
+
En("selectDatapoint", e), M.value.events.datapointClick && M.value.events.datapointClick({
|
|
571
|
+
datapoint: e,
|
|
572
|
+
seriesIndex: t
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
function hr({ datapoint: e, seriesIndex: t }) {
|
|
576
|
+
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
577
|
+
datapoint: e,
|
|
578
|
+
seriesIndex: t
|
|
579
|
+
}), rn.value = null, tn.value = !1, fr.value = null, j.value === t && (j.value = null);
|
|
580
|
+
}
|
|
581
|
+
function gr(e, t, n = "pointer") {
|
|
582
|
+
Tn.value = n, M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
583
|
+
datpoint: e,
|
|
584
|
+
seriesIndex: t
|
|
585
|
+
}), j.value = t, rn.value = e, pr.value = {
|
|
586
|
+
datapoint: e,
|
|
587
|
+
seriesIndex: t,
|
|
588
|
+
series: B.value,
|
|
589
|
+
config: M.value
|
|
590
|
+
}, tn.value = !0, fr.value = e.id;
|
|
591
|
+
let r = "", i = e.isChild ? e.parentName : e.name, o = e.isChild ? e.name : "", s = M.value.style.chart.tooltip.customFormat;
|
|
592
|
+
ue(s) && le(() => s({
|
|
593
|
+
datapoint: e,
|
|
594
|
+
series: B.value,
|
|
595
|
+
config: M.value,
|
|
596
|
+
seriesIndex: t
|
|
597
|
+
})) ? nn.value = s({
|
|
598
|
+
datapoint: e,
|
|
599
|
+
series: B.value,
|
|
600
|
+
config: M.value,
|
|
601
|
+
seriesIndex: t
|
|
602
|
+
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
603
|
+
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${e.color}"/>${$t.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${D.value}_${e.absoluteIndex})"/>` : ""}</svg> ${i}</div>
|
|
604
|
+
${o ? `<div>${o}</div>` : ""}
|
|
605
|
+
</div>`, M.value.style.chart.tooltip.showValue && (r += `<div>${M.value.translations.value}: <b>${ce(M.value.style.chart.layout.bars.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, a({
|
|
606
|
+
p: M.value.style.chart.tooltip.prefix,
|
|
607
|
+
v: e.sign === 1 ? e.value : -e.value,
|
|
608
|
+
s: M.value.style.chart.tooltip.suffix,
|
|
609
|
+
r: M.value.style.chart.tooltip.roundingValue
|
|
610
|
+
}), {
|
|
611
|
+
datapoint: e,
|
|
612
|
+
seriesIndex: t
|
|
613
|
+
})}</b></div>`), M.value.style.chart.tooltip.showPercentage && (r += `<div>${M.value.translations.percentageToTotal} : <b>${a({
|
|
614
|
+
v: Math.abs(e.value) / Y.value * 100,
|
|
615
|
+
s: "%",
|
|
616
|
+
r: M.value.style.chart.tooltip.roundingPercentage
|
|
617
|
+
})}</b></div>`, e.isChild && (r += `<div>${M.value.translations.percentageToSerie}: <b>${a({
|
|
618
|
+
v: Math.abs(e.value) / Math.abs(e.parentValue) * 100,
|
|
619
|
+
s: "%",
|
|
620
|
+
r: M.value.style.chart.tooltip.roundingPercentage
|
|
621
|
+
})}</b></div>`)), nn.value = `<div style="text-align:left">${r}</div>`);
|
|
622
|
+
}
|
|
623
|
+
function _r(e, t, n, r) {
|
|
624
|
+
if (!M.value.style.chart.layout.bars.dataLabels.value.show) return "";
|
|
625
|
+
let i = ce(M.value.style.chart.layout.bars.dataLabels.value.formatter, c(r === -1 && e >= 0 ? -e : e), a({
|
|
626
|
+
p: M.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
627
|
+
v: c(r === -1 && e >= 0 ? -e : e),
|
|
628
|
+
s: M.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
629
|
+
r: M.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
630
|
+
}), {
|
|
631
|
+
datapoint: t,
|
|
632
|
+
seriesIndex: n
|
|
633
|
+
}), o = `(${ar(e, !0, M.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
634
|
+
return `${i}${M.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${o}` : ""}`;
|
|
635
|
+
}
|
|
636
|
+
let Q = u(() => ({
|
|
637
|
+
head: [
|
|
638
|
+
M.value.translations.parentName,
|
|
639
|
+
M.value.translations.value,
|
|
640
|
+
M.value.translations.percentageToTotal,
|
|
641
|
+
M.value.translations.childName,
|
|
642
|
+
M.value.translations.value,
|
|
643
|
+
M.value.translations.percentageToSerie,
|
|
644
|
+
M.value.translations.percentageToTotal
|
|
645
|
+
],
|
|
646
|
+
body: H.value.map((e) => e.isChild ? e.isFirstChild ? {
|
|
647
|
+
color: e.color,
|
|
648
|
+
parentName: e.parentName,
|
|
649
|
+
parentValue: e.parentValue,
|
|
650
|
+
percentageToTotal: e.parentValue / Y.value,
|
|
651
|
+
childName: e.name,
|
|
652
|
+
childValue: e.sign === 1 ? e.value : -e.value,
|
|
653
|
+
childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
|
|
654
|
+
childPercentageToTotal: Math.abs(e.value) / Y.value
|
|
655
|
+
} : {
|
|
656
|
+
color: "",
|
|
657
|
+
parentName: "",
|
|
658
|
+
parentValue: "",
|
|
659
|
+
percentageToTotal: "",
|
|
660
|
+
childName: e.name,
|
|
661
|
+
childValue: e.sign === 1 ? e.value : -e.value,
|
|
662
|
+
childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
|
|
663
|
+
childPercentageToTotal: Math.abs(e.value) / Y.value
|
|
664
|
+
} : {
|
|
665
|
+
color: e.color,
|
|
666
|
+
parentName: e.name,
|
|
667
|
+
parentValue: e.sign === 1 ? e.value : -e.value,
|
|
668
|
+
percentageToTotal: Math.abs(e.value) / Y.value,
|
|
669
|
+
childName: "",
|
|
670
|
+
childValue: "",
|
|
671
|
+
childPercentageToParent: "",
|
|
672
|
+
childPercentageToTotal: ""
|
|
673
|
+
})
|
|
674
|
+
}));
|
|
675
|
+
function vr(e = null) {
|
|
676
|
+
let t = [
|
|
677
|
+
[M.value.style.chart.title.text],
|
|
678
|
+
[M.value.style.chart.title.subtitle.text],
|
|
679
|
+
[""]
|
|
680
|
+
], n = Q.value.head, r = Q.value.body.map((e) => [
|
|
681
|
+
e.parentName,
|
|
682
|
+
e.parentValue,
|
|
683
|
+
e.percentageToTotal,
|
|
684
|
+
e.childName,
|
|
685
|
+
e.childValue,
|
|
686
|
+
e.childPercentageToParent,
|
|
687
|
+
e.childPercentageToTotal
|
|
688
|
+
]), i = ie(t.concat([n]).concat(r));
|
|
689
|
+
e ? e(i) : s({
|
|
690
|
+
csvContent: i,
|
|
691
|
+
title: M.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
let $ = b(!1);
|
|
695
|
+
function yr(e) {
|
|
696
|
+
$.value = e, an.value += 1;
|
|
697
|
+
}
|
|
698
|
+
function br() {
|
|
699
|
+
z.value.showTable = !z.value.showTable;
|
|
700
|
+
}
|
|
701
|
+
He(() => {
|
|
702
|
+
[
|
|
703
|
+
"none",
|
|
704
|
+
"asc",
|
|
705
|
+
"desc"
|
|
706
|
+
].includes(M.value.style.chart.layout.bars.sort) || ae({
|
|
707
|
+
componentName: "VueUiVerticalBar",
|
|
708
|
+
type: "attributeWrongValue",
|
|
709
|
+
property: "style.chart.layout.bars.sort",
|
|
710
|
+
key: M.value.style.chart.layout.bars.sort
|
|
711
|
+
}), A.value = _n.value[M.value.style.chart.layout.bars.sort], z.value.sortDesc = A.value === 2, vn.value = A.value === 0;
|
|
712
|
+
});
|
|
713
|
+
function xr() {
|
|
714
|
+
A.value += 1, A.value > 2 && (A.value = 0);
|
|
715
|
+
}
|
|
716
|
+
function Sr() {
|
|
717
|
+
xr(), z.value.sortDesc = A.value === 2, vn.value = A.value === 0;
|
|
718
|
+
}
|
|
719
|
+
function Cr() {
|
|
720
|
+
z.value.showTooltip = !z.value.showTooltip;
|
|
721
|
+
}
|
|
722
|
+
let wr = b(!1);
|
|
723
|
+
function Tr() {
|
|
724
|
+
wr.value = !wr.value;
|
|
725
|
+
}
|
|
726
|
+
async function Er({ scale: e = 2 } = {}) {
|
|
727
|
+
if (!O.value) return;
|
|
728
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
729
|
+
domElement: O.value,
|
|
730
|
+
base64: !0,
|
|
731
|
+
img: !0,
|
|
732
|
+
scale: e
|
|
733
|
+
});
|
|
734
|
+
return {
|
|
735
|
+
imageUri: i,
|
|
736
|
+
base64: a,
|
|
737
|
+
title: M.value.style.chart.title.text,
|
|
738
|
+
width: t,
|
|
739
|
+
height: n,
|
|
740
|
+
aspectRatio: r
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
let Dr = u(() => {
|
|
744
|
+
let e = M.value.table.useDialog && !M.value.table.show, t = z.value.showTable;
|
|
745
|
+
return {
|
|
746
|
+
component: e ? Yt : De,
|
|
747
|
+
title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
|
|
748
|
+
props: e ? {
|
|
749
|
+
backgroundColor: M.value.table.th.backgroundColor,
|
|
750
|
+
color: M.value.table.th.color,
|
|
751
|
+
headerColor: M.value.table.th.color,
|
|
752
|
+
headerBg: M.value.table.th.backgroundColor,
|
|
753
|
+
isFullscreen: $.value,
|
|
754
|
+
fullscreenParent: O.value,
|
|
755
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
756
|
+
isCursorPointer: N.value
|
|
757
|
+
} : {
|
|
758
|
+
hideDetails: !0,
|
|
759
|
+
config: {
|
|
760
|
+
open: t,
|
|
761
|
+
maxHeight: 1e4,
|
|
762
|
+
body: {
|
|
763
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
764
|
+
color: M.value.style.chart.color
|
|
765
|
+
},
|
|
766
|
+
head: {
|
|
767
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
768
|
+
color: M.value.style.chart.color
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
});
|
|
774
|
+
qe(() => z.value.showTable, (e) => {
|
|
775
|
+
M.value.table.show || (e && M.value.table.useDialog && pn.value ? pn.value.open() : "close" in pn.value && pn.value.close());
|
|
776
|
+
});
|
|
777
|
+
let { isResponsive: Or } = Me(Un, Wn);
|
|
778
|
+
function kr() {
|
|
779
|
+
z.value.showTable = !1, mn.value && mn.value.setTableIconState(!1);
|
|
780
|
+
}
|
|
781
|
+
let Ar = u(() => B.value.map((e, t) => ({
|
|
782
|
+
...e,
|
|
783
|
+
shape: "square",
|
|
784
|
+
display: `${e.name}: ${ce(M.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, a({
|
|
785
|
+
p: M.value.style.chart.legend.prefix,
|
|
786
|
+
v: e.value,
|
|
787
|
+
s: M.value.style.chart.legend.suffix,
|
|
788
|
+
r: M.value.style.chart.legend.roundingValue
|
|
789
|
+
}), {
|
|
790
|
+
datapoint: e,
|
|
791
|
+
seriesIndex: t
|
|
792
|
+
})}`
|
|
793
|
+
}))), jr = u(() => M.value.style.chart.backgroundColor), Mr = u(() => M.value.style.chart.legend), { exportSvg: Nr, getSvg: Pr } = ve({
|
|
794
|
+
svg: Fn,
|
|
795
|
+
title: u(() => M.value.style.chart.title),
|
|
796
|
+
legend: Mr,
|
|
797
|
+
legendItems: u(() => Ar.value.map((e) => ({
|
|
798
|
+
...e,
|
|
799
|
+
name: e.display
|
|
800
|
+
}))),
|
|
801
|
+
backgroundColor: jr
|
|
802
|
+
});
|
|
803
|
+
async function Fr({ isCb: e }) {
|
|
804
|
+
Cn.value = !0, await Be();
|
|
805
|
+
try {
|
|
806
|
+
if (e) {
|
|
807
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Pr();
|
|
808
|
+
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
809
|
+
blob: e,
|
|
810
|
+
url: t,
|
|
811
|
+
text: n,
|
|
812
|
+
dataUrl: r
|
|
813
|
+
}));
|
|
814
|
+
} else await Promise.resolve(Nr());
|
|
815
|
+
} finally {
|
|
816
|
+
Cn.value = !1;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
function Ir(e) {
|
|
820
|
+
if (e?.stage === "start") {
|
|
821
|
+
Sn.value = !0;
|
|
822
|
+
return;
|
|
823
|
+
}
|
|
824
|
+
if (e?.stage === "end") {
|
|
825
|
+
Sn.value = !1;
|
|
826
|
+
return;
|
|
827
|
+
}
|
|
828
|
+
Bn();
|
|
829
|
+
}
|
|
830
|
+
function Lr() {
|
|
831
|
+
console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
|
|
832
|
+
}
|
|
833
|
+
async function Rr() {
|
|
834
|
+
if (En("copyAlt", {
|
|
835
|
+
config: M.value,
|
|
836
|
+
dataset: V.value
|
|
837
|
+
}), !M.value.userOptions.callbacks.altCopy) {
|
|
838
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
842
|
+
config: M.value,
|
|
843
|
+
dataset: V.value
|
|
844
|
+
}));
|
|
845
|
+
}
|
|
846
|
+
let zr = b(!1);
|
|
847
|
+
function Br() {
|
|
848
|
+
j.value = null, zr.value = !0;
|
|
849
|
+
}
|
|
850
|
+
function Vr() {
|
|
851
|
+
j.value = null, tn.value = !1, zr.value = !1;
|
|
852
|
+
}
|
|
853
|
+
function Hr() {
|
|
854
|
+
if (j.value === null) return;
|
|
855
|
+
let e = H.value[j.value];
|
|
856
|
+
e && hr({
|
|
857
|
+
datapoint: e,
|
|
858
|
+
seriesIndex: j.value
|
|
859
|
+
}), j.value = null, Tn.value = "pointer";
|
|
860
|
+
}
|
|
861
|
+
function Ur(e) {
|
|
862
|
+
if (!Fn.value || wr.value || document.activeElement !== Fn.value) return;
|
|
863
|
+
let t = e.key === "ArrowRight" || e.key === "ArrowDown", n = e.key === "ArrowLeft" || e.key === "ArrowUp", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
864
|
+
if (!t && !n && !r && !i) return;
|
|
865
|
+
let a = H.value.length;
|
|
866
|
+
if (!a) return;
|
|
867
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
868
|
+
Hr();
|
|
869
|
+
return;
|
|
870
|
+
}
|
|
871
|
+
if (r) {
|
|
872
|
+
if (j.value === null) return;
|
|
873
|
+
let e = H.value[j.value];
|
|
874
|
+
if (!e) return;
|
|
875
|
+
mr({
|
|
876
|
+
datapoint: e,
|
|
877
|
+
seriesIndex: j.value
|
|
878
|
+
});
|
|
879
|
+
return;
|
|
880
|
+
}
|
|
881
|
+
let o = j.value, s = rn.value ? H.value.findIndex((e) => e.id === rn.value.id) : null;
|
|
882
|
+
o !== null && o >= 0 && o < a ? t ? (o += 1, o >= a && (o = 0)) : n && (--o, o < 0 && (o = a - 1)) : s !== null && s >= 0 && s < a ? (o = t ? s + 1 : s - 1, o >= a && (o = 0), o < 0 && (o = a - 1)) : o = t ? 0 : a - 1;
|
|
883
|
+
let ee = H.value[o];
|
|
884
|
+
ee && (j.value = o, Wr(ee), gr(ee, o, "keyboard"));
|
|
885
|
+
}
|
|
886
|
+
function Wr(e) {
|
|
887
|
+
if (!e) return;
|
|
888
|
+
let t = q.value.right, n = q.value.top + (I.value + G.value) * e.absoluteIndex + W.value[e.absoluteIndex] * U.value;
|
|
889
|
+
if (!Number.isFinite(t) || !Number.isFinite(n)) return;
|
|
890
|
+
let r = ee(t, n, Fn.value);
|
|
891
|
+
r && (wn.value = r);
|
|
892
|
+
}
|
|
893
|
+
let Gr = u(() => ({
|
|
894
|
+
head: Q.value.head,
|
|
895
|
+
body: Q.value.body.map((e) => [
|
|
896
|
+
e.parentName,
|
|
897
|
+
e.parentValue === "" ? "" : a({
|
|
898
|
+
v: e.parentValue,
|
|
899
|
+
r: M.value.style.chart.layout.bars.dataLabels.value.roundingValue,
|
|
900
|
+
p: M.value.style.chart.layout.bars.dataLabels.prefix,
|
|
901
|
+
s: M.value.style.chart.layout.bars.dataLabels.suffix
|
|
902
|
+
}),
|
|
903
|
+
e.percentageToTotal === "" ? "" : a({
|
|
904
|
+
v: e.percentageToTotal * 100,
|
|
905
|
+
r: M.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
906
|
+
s: "%"
|
|
907
|
+
}),
|
|
908
|
+
e.childName,
|
|
909
|
+
e.childValue === "" ? "" : a({
|
|
910
|
+
v: e.childValue,
|
|
911
|
+
r: M.value.style.chart.layout.bars.dataLabels.value.roundingValue,
|
|
912
|
+
p: M.value.style.chart.layout.bars.dataLabels.prefix,
|
|
913
|
+
s: M.value.style.chart.layout.bars.dataLabels.suffix
|
|
914
|
+
}),
|
|
915
|
+
e.childPercentageToParent === "" ? "" : a({
|
|
916
|
+
v: e.childPercentageToParent * 100,
|
|
917
|
+
r: M.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
918
|
+
s: "%"
|
|
919
|
+
}),
|
|
920
|
+
e.childPercentageToTotal === "" ? "" : a({
|
|
921
|
+
v: e.childPercentageToTotal * 100,
|
|
922
|
+
r: M.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
923
|
+
s: "%"
|
|
924
|
+
})
|
|
925
|
+
]),
|
|
926
|
+
caption: M.value.a11y.translations.tableCaption,
|
|
927
|
+
notice: M.value.a11y.translations.tableAvailable
|
|
928
|
+
}));
|
|
929
|
+
return we({
|
|
930
|
+
autoSize: Lr,
|
|
931
|
+
getData: lr,
|
|
932
|
+
getImage: Er,
|
|
933
|
+
generatePdf: zn,
|
|
934
|
+
generateCsv: vr,
|
|
935
|
+
generateImage: Bn,
|
|
936
|
+
generateSvg: Fr,
|
|
937
|
+
hideSeries: ir,
|
|
938
|
+
showSeries: rr,
|
|
939
|
+
toggleTable: br,
|
|
940
|
+
toggleSort: Sr,
|
|
941
|
+
toggleTooltip: Cr,
|
|
942
|
+
toggleAnnotator: Tr,
|
|
943
|
+
toggleFullscreen: yr,
|
|
944
|
+
copyAlt: Rr
|
|
945
|
+
}), (e, n) => (y(), p("div", {
|
|
946
|
+
class: g(`vue-data-ui-component vue-ui-vertical-bar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"} ${M.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
947
|
+
ref_key: "verticalBarChart",
|
|
948
|
+
ref: O,
|
|
949
|
+
id: `vue-ui-vertical-bar_${D.value}`,
|
|
950
|
+
style: v(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};height:100%`),
|
|
951
|
+
onMouseenter: n[3] ||= () => w(Nn)(!0),
|
|
952
|
+
onMouseleave: n[4] ||= () => w(Nn)(!1)
|
|
953
|
+
}, [
|
|
954
|
+
m("p", {
|
|
955
|
+
id: `chart-instructions-${D.value}`,
|
|
956
|
+
class: "sr-only"
|
|
957
|
+
}, C(M.value.a11y.translations.keyboardNavigation), 9, Ze),
|
|
958
|
+
Gr.value.body.length ? (y(), d(ke, {
|
|
959
|
+
key: 0,
|
|
960
|
+
uid: D.value,
|
|
961
|
+
head: Gr.value.head,
|
|
962
|
+
body: Gr.value.body,
|
|
963
|
+
caption: Gr.value.caption,
|
|
964
|
+
notice: Gr.value.notice
|
|
965
|
+
}, null, 8, [
|
|
966
|
+
"uid",
|
|
967
|
+
"head",
|
|
968
|
+
"body",
|
|
969
|
+
"caption",
|
|
970
|
+
"notice"
|
|
971
|
+
])) : f("", !0),
|
|
972
|
+
M.value.userOptions.buttons.annotator ? (y(), d(w(Kt), {
|
|
973
|
+
key: 1,
|
|
974
|
+
svgRef: w(Fn),
|
|
975
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
976
|
+
color: M.value.style.chart.color,
|
|
977
|
+
active: wr.value,
|
|
978
|
+
isCursorPointer: N.value,
|
|
979
|
+
onClose: Tr
|
|
980
|
+
}, {
|
|
981
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
982
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
983
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
|
|
984
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
|
|
985
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
|
|
986
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
|
|
987
|
+
_: 3
|
|
988
|
+
}, 8, [
|
|
989
|
+
"svgRef",
|
|
990
|
+
"backgroundColor",
|
|
991
|
+
"color",
|
|
992
|
+
"active",
|
|
993
|
+
"isCursorPointer"
|
|
994
|
+
])) : f("", !0),
|
|
995
|
+
Vn.value ? (y(), p("div", {
|
|
996
|
+
key: 2,
|
|
997
|
+
ref_key: "noTitle",
|
|
998
|
+
ref: ln,
|
|
999
|
+
class: "vue-data-ui-no-title-space",
|
|
1000
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1001
|
+
}, null, 512)) : f("", !0),
|
|
1002
|
+
M.value.style.chart.title.text ? (y(), p("div", {
|
|
1003
|
+
key: 3,
|
|
1004
|
+
ref_key: "chartTitle",
|
|
1005
|
+
ref: on,
|
|
1006
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1007
|
+
}, [(y(), d(Se, {
|
|
1008
|
+
key: `title_${un.value}`,
|
|
1009
|
+
config: {
|
|
1010
|
+
title: {
|
|
1011
|
+
cy: "vertical-bar-div-title",
|
|
1012
|
+
...M.value.style.chart.title
|
|
1013
|
+
},
|
|
1014
|
+
subtitle: {
|
|
1015
|
+
cy: "vertical-bar-div-subtitle",
|
|
1016
|
+
...M.value.style.chart.title.subtitle
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
1020
|
+
M.value.userOptions.show && en.value && (w(Pn) || w(Mn)) ? (y(), d(w(qt), {
|
|
1021
|
+
ref_key: "userOptionsRef",
|
|
1022
|
+
ref: mn,
|
|
1023
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1024
|
+
color: M.value.style.chart.color,
|
|
1025
|
+
key: `user_options_${an.value}`,
|
|
1026
|
+
isImaging: w(Rn),
|
|
1027
|
+
isPrinting: w(Ln),
|
|
1028
|
+
uid: D.value,
|
|
1029
|
+
hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
|
|
1030
|
+
hasPdf: M.value.userOptions.buttons.pdf,
|
|
1031
|
+
hasImg: M.value.userOptions.buttons.img,
|
|
1032
|
+
hasSvg: M.value.userOptions.buttons.svg,
|
|
1033
|
+
hasXls: M.value.userOptions.buttons.csv,
|
|
1034
|
+
hasTable: M.value.userOptions.buttons.table,
|
|
1035
|
+
hasSort: M.value.userOptions.buttons.sort,
|
|
1036
|
+
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
1037
|
+
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
1038
|
+
isFullscreen: $.value,
|
|
1039
|
+
isTooltip: z.value.showTooltip,
|
|
1040
|
+
titles: { ...M.value.userOptions.buttonTitles },
|
|
1041
|
+
chartElement: O.value,
|
|
1042
|
+
position: M.value.userOptions.position,
|
|
1043
|
+
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
1044
|
+
isAnnotation: wr.value,
|
|
1045
|
+
callbacks: M.value.userOptions.callbacks,
|
|
1046
|
+
printScale: M.value.userOptions.print.scale,
|
|
1047
|
+
tableDialog: M.value.table.useDialog,
|
|
1048
|
+
isCursorPointer: N.value,
|
|
1049
|
+
onToggleFullscreen: yr,
|
|
1050
|
+
onGeneratePdf: w(zn),
|
|
1051
|
+
onGenerateCsv: vr,
|
|
1052
|
+
onGenerateImage: Ir,
|
|
1053
|
+
onGenerateSvg: Fr,
|
|
1054
|
+
onToggleTable: br,
|
|
1055
|
+
onToggleSort: Sr,
|
|
1056
|
+
onToggleTooltip: Cr,
|
|
1057
|
+
onToggleAnnotator: Tr,
|
|
1058
|
+
onCopyAlt: Rr,
|
|
1059
|
+
style: v({ visibility: w(Pn) ? w(Mn) ? "visible" : "hidden" : "visible" })
|
|
1060
|
+
}, Fe({ _: 2 }, [
|
|
1061
|
+
e.$slots.menuIcon ? {
|
|
1062
|
+
name: "menuIcon",
|
|
1063
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
|
|
1064
|
+
isOpen: t,
|
|
1065
|
+
color: n
|
|
1066
|
+
})), void 0, !0)]),
|
|
1067
|
+
key: "0"
|
|
1068
|
+
} : void 0,
|
|
1069
|
+
e.$slots.optionTooltip ? {
|
|
1070
|
+
name: "optionTooltip",
|
|
1071
|
+
fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1072
|
+
key: "1"
|
|
1073
|
+
} : void 0,
|
|
1074
|
+
e.$slots.optionPdf ? {
|
|
1075
|
+
name: "optionPdf",
|
|
1076
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1077
|
+
key: "2"
|
|
1078
|
+
} : void 0,
|
|
1079
|
+
e.$slots.optionCsv ? {
|
|
1080
|
+
name: "optionCsv",
|
|
1081
|
+
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1082
|
+
key: "3"
|
|
1083
|
+
} : void 0,
|
|
1084
|
+
e.$slots.optionImg ? {
|
|
1085
|
+
name: "optionImg",
|
|
1086
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1087
|
+
key: "4"
|
|
1088
|
+
} : void 0,
|
|
1089
|
+
e.$slots.optionSvg ? {
|
|
1090
|
+
name: "optionSvg",
|
|
1091
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1092
|
+
key: "5"
|
|
1093
|
+
} : void 0,
|
|
1094
|
+
e.$slots.optionTable ? {
|
|
1095
|
+
name: "optionTable",
|
|
1096
|
+
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1097
|
+
key: "6"
|
|
1098
|
+
} : void 0,
|
|
1099
|
+
e.$slots.optionLabels ? {
|
|
1100
|
+
name: "optionLabels",
|
|
1101
|
+
fn: T(() => [S(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1102
|
+
key: "7"
|
|
1103
|
+
} : void 0,
|
|
1104
|
+
e.$slots.optionSort ? {
|
|
1105
|
+
name: "optionSort",
|
|
1106
|
+
fn: T(() => [S(e.$slots, "optionSort", {}, void 0, !0)]),
|
|
1107
|
+
key: "8"
|
|
1108
|
+
} : void 0,
|
|
1109
|
+
e.$slots.optionFullscreen ? {
|
|
1110
|
+
name: "optionFullscreen",
|
|
1111
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
|
|
1112
|
+
toggleFullscreen: t,
|
|
1113
|
+
isFullscreen: n
|
|
1114
|
+
})), void 0, !0)]),
|
|
1115
|
+
key: "9"
|
|
1116
|
+
} : void 0,
|
|
1117
|
+
e.$slots.optionAnnotator ? {
|
|
1118
|
+
name: "optionAnnotator",
|
|
1119
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
|
|
1120
|
+
toggleAnnotator: t,
|
|
1121
|
+
isAnnotator: n
|
|
1122
|
+
})), void 0, !0)]),
|
|
1123
|
+
key: "10"
|
|
1124
|
+
} : void 0,
|
|
1125
|
+
e.$slots.optionAltCopy ? {
|
|
1126
|
+
name: "optionAltCopy",
|
|
1127
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
1128
|
+
key: "11"
|
|
1129
|
+
} : void 0,
|
|
1130
|
+
e.$slots["custom-menu-before"] ? {
|
|
1131
|
+
name: "custom-menu-before",
|
|
1132
|
+
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1133
|
+
key: "12"
|
|
1134
|
+
} : void 0,
|
|
1135
|
+
e.$slots["custom-menu-after"] ? {
|
|
1136
|
+
name: "custom-menu-after",
|
|
1137
|
+
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1138
|
+
key: "13"
|
|
1139
|
+
} : void 0
|
|
1140
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasSort.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : f("", !0),
|
|
1141
|
+
M.value.style.chart.legend.show && M.value.style.chart.legend.position === "top" ? (y(), p("div", {
|
|
1142
|
+
key: 5,
|
|
1143
|
+
ref_key: "chartLegend",
|
|
1144
|
+
ref: sn
|
|
1145
|
+
}, [(y(), d(Ne, {
|
|
1146
|
+
key: `legend_top_${dn.value}`,
|
|
1147
|
+
legendSet: B.value,
|
|
1148
|
+
config: Zn.value,
|
|
1149
|
+
onClickMarker: n[0] ||= ({ legend: e }) => J(e.id)
|
|
1150
|
+
}, Fe({
|
|
1151
|
+
item: T(({ legend: e, index: t }) => [m("div", {
|
|
1152
|
+
onClick: (t) => J(e.id),
|
|
1153
|
+
style: v(`opacity:${k.value.includes(e.id) ? .5 : 1}`)
|
|
1154
|
+
}, C(e.name) + ": " + C(w(ce)(M.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, w(a)({
|
|
1155
|
+
p: M.value.style.chart.legend.prefix,
|
|
1156
|
+
v: e.value,
|
|
1157
|
+
s: M.value.style.chart.legend.suffix,
|
|
1158
|
+
r: M.value.style.chart.legend.roundingValue
|
|
1159
|
+
}), {
|
|
1160
|
+
datapoint: e,
|
|
1161
|
+
seriesIndex: t
|
|
1162
|
+
})), 13, Qe)]),
|
|
1163
|
+
legendToggle: T(() => [B.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !w(kn) ? (y(), d(Oe, {
|
|
1164
|
+
key: 0,
|
|
1165
|
+
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1166
|
+
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
1167
|
+
fontSize: M.value.style.chart.legend.fontSize,
|
|
1168
|
+
checked: k.value.length > 0,
|
|
1169
|
+
onToggle: tr
|
|
1170
|
+
}, null, 8, [
|
|
1171
|
+
"backgroundColor",
|
|
1172
|
+
"color",
|
|
1173
|
+
"fontSize",
|
|
1174
|
+
"checked"
|
|
1175
|
+
])) : f("", !0)]),
|
|
1176
|
+
_: 2
|
|
1177
|
+
}, [e.$slots.pattern ? {
|
|
1178
|
+
name: "legend-pattern",
|
|
1179
|
+
fn: T(({ legend: e, index: t }) => [Le(Ce, {
|
|
1180
|
+
shape: e.shape,
|
|
1181
|
+
radius: 30,
|
|
1182
|
+
stroke: "none",
|
|
1183
|
+
plot: {
|
|
1184
|
+
x: 30,
|
|
1185
|
+
y: 30
|
|
1186
|
+
},
|
|
1187
|
+
fill: `url(#pattern_${D.value}_${t})`
|
|
1188
|
+
}, null, 8, ["shape", "fill"])]),
|
|
1189
|
+
key: "0"
|
|
1190
|
+
} : void 0]), 1032, ["legendSet", "config"]))], 512)) : f("", !0),
|
|
1191
|
+
m("div", $e, [(y(), p("svg", {
|
|
1192
|
+
ref_key: "svgRef",
|
|
1193
|
+
ref: Fn,
|
|
1194
|
+
xmlns: w(de),
|
|
1195
|
+
class: g({
|
|
1196
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
1197
|
+
"vue-data-ui-fulscreen--off": !$.value
|
|
1198
|
+
}),
|
|
1199
|
+
viewBox: `0 0 ${P.value} ${F.value}`,
|
|
1200
|
+
style: v(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
|
|
1201
|
+
tabindex: "0",
|
|
1202
|
+
"aria-describedby": `chart-instructions-${D.value}`,
|
|
1203
|
+
onFocus: Br,
|
|
1204
|
+
onBlur: Vr,
|
|
1205
|
+
onKeydown: Ur
|
|
1206
|
+
}, [m("g", {
|
|
1207
|
+
ref_key: "G",
|
|
1208
|
+
ref: fn,
|
|
1209
|
+
class: "vue-data-ui-g"
|
|
1210
|
+
}, [
|
|
1211
|
+
Le(w(Jt)),
|
|
1212
|
+
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
1213
|
+
key: 0,
|
|
1214
|
+
x: 0,
|
|
1215
|
+
y: 0,
|
|
1216
|
+
width: P.value,
|
|
1217
|
+
height: F.value,
|
|
1218
|
+
style: { pointerEvents: "none" }
|
|
1219
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : f("", !0),
|
|
1220
|
+
(y(!0), p(l, null, x(H.value, (e, t) => (y(), p("linearGradient", {
|
|
1221
|
+
x1: "0%",
|
|
1222
|
+
y1: "0%",
|
|
1223
|
+
x2: "100%",
|
|
1224
|
+
y2: "0%",
|
|
1225
|
+
id: `vertical_bar_gradient_${D.value}_${t}`
|
|
1226
|
+
}, [m("stop", {
|
|
1227
|
+
offset: "0%",
|
|
1228
|
+
"stop-color": e.color
|
|
1229
|
+
}, null, 8, rt), m("stop", {
|
|
1230
|
+
offset: "100%",
|
|
1231
|
+
"stop-color": w(te)(w(ne)(e.color, .03), 100 - M.value.style.chart.layout.bars.gradientIntensity)
|
|
1232
|
+
}, null, 8, it)], 8, nt))), 256)),
|
|
1233
|
+
e.$slots.pattern ? (y(), p("g", at, [(y(!0), p(l, null, x(H.value, (t) => (y(), p("defs", null, [S(e.$slots, "pattern", ze({ ref_for: !0 }, {
|
|
1234
|
+
seriesIndex: t.absoluteIndex,
|
|
1235
|
+
patternId: `pattern_${D.value}_${t.absoluteIndex}`
|
|
1236
|
+
}), void 0, !0)]))), 256))])) : f("", !0),
|
|
1237
|
+
M.value.style.chart.layout.bars.rowColor ? (y(!0), p(l, { key: 2 }, x(H.value, (e, t) => (y(), p("g", null, [m("rect", {
|
|
1238
|
+
x: 0,
|
|
1239
|
+
y: q.value.top + (I.value + G.value) * t + W.value[t] * U.value,
|
|
1240
|
+
width: P.value,
|
|
1241
|
+
height: G.value <= 0 ? 1e-4 : G.value,
|
|
1242
|
+
fill: M.value.style.chart.layout.bars.rowColor,
|
|
1243
|
+
rx: M.value.style.chart.layout.bars.rowRadius,
|
|
1244
|
+
style: { pointerEvents: "none" }
|
|
1245
|
+
}, null, 8, ot)]))), 256)) : f("", !0),
|
|
1246
|
+
(y(!0), p(l, null, x(H.value, (e, t) => (y(), p("g", null, [m("rect", {
|
|
1247
|
+
x: w(c)(X.value ? q.value.left + q.value.width / 2 - (e.sign === 1 ? 0 : Z(e.value) <= 0 ? 1e-4 : Z(e.value)) : q.value.left),
|
|
1248
|
+
y: q.value.top + (I.value + G.value) * t + W.value[t] * U.value,
|
|
1249
|
+
width: w(c)(Z(e.value) <= 0 ? 1e-4 : Z(e.value)),
|
|
1250
|
+
height: G.value <= 0 ? 1e-4 : G.value,
|
|
1251
|
+
fill: M.value.style.chart.layout.bars.underlayerColor,
|
|
1252
|
+
rx: M.value.style.chart.layout.bars.borderRadius,
|
|
1253
|
+
class: g({ animated: M.value.useCssAnimation })
|
|
1254
|
+
}, null, 10, st)]))), 256)),
|
|
1255
|
+
(y(!0), p(l, null, x(H.value, (t, n) => (y(), p("g", null, [
|
|
1256
|
+
m("rect", {
|
|
1257
|
+
x: w(c)(X.value ? q.value.left + q.value.width / 2 - (t.sign === 1 ? 0 : Z(t.value) <= 0 ? 1e-4 : Z(t.value)) : q.value.left),
|
|
1258
|
+
y: q.value.top + (I.value + G.value) * n + W.value[n] * U.value,
|
|
1259
|
+
width: w(c)(Z(t.value) <= 0 ? 1e-4 : Z(t.value)),
|
|
1260
|
+
height: G.value <= 0 ? 1e-4 : G.value,
|
|
1261
|
+
fill: M.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${D.value}_${n})` : w(te)(t.color, M.value.style.chart.layout.bars.fillOpacity),
|
|
1262
|
+
rx: M.value.style.chart.layout.bars.borderRadius,
|
|
1263
|
+
stroke: M.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1264
|
+
"stroke-width": M.value.style.chart.layout.bars.useStroke ? M.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1265
|
+
class: g({ animated: M.value.useCssAnimation })
|
|
1266
|
+
}, null, 10, ct),
|
|
1267
|
+
e.$slots.pattern ? (y(), p("rect", {
|
|
1268
|
+
key: 0,
|
|
1269
|
+
x: w(c)(X.value ? q.value.left + q.value.width / 2 - (t.sign === 1 ? 0 : Z(t.value) <= 0 ? 1e-4 : Z(t.value)) : q.value.left),
|
|
1270
|
+
y: q.value.top + (I.value + G.value) * n + W.value[n] * U.value,
|
|
1271
|
+
width: w(c)(Z(t.value) <= 0 ? 1e-4 : Z(t.value)),
|
|
1272
|
+
height: G.value <= 0 ? 1e-4 : G.value,
|
|
1273
|
+
fill: `url(#pattern_${D.value}_${t.absoluteIndex})`,
|
|
1274
|
+
rx: M.value.style.chart.layout.bars.borderRadius,
|
|
1275
|
+
stroke: M.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1276
|
+
"stroke-width": M.value.style.chart.layout.bars.useStroke ? M.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1277
|
+
class: g({ animated: M.value.useCssAnimation })
|
|
1278
|
+
}, null, 10, lt)) : f("", !0),
|
|
1279
|
+
(!t.isChild || t.isLastChild) && M.value.style.chart.layout.separators.show && n !== H.value.length - 1 ? (y(), p("line", {
|
|
1280
|
+
key: 1,
|
|
1281
|
+
x1: P.value,
|
|
1282
|
+
x2: M.value.style.chart.layout.separators.fullWidth ? 0 : q.value.left,
|
|
1283
|
+
y1: G.value + I.value / 2 + q.value.top + (I.value + G.value) * n + W.value[n] * U.value,
|
|
1284
|
+
y2: G.value + I.value / 2 + q.value.top + (I.value + G.value) * n + W.value[n] * U.value,
|
|
1285
|
+
stroke: M.value.style.chart.layout.separators.color,
|
|
1286
|
+
"stroke-width": M.value.style.chart.layout.separators.strokeWidth,
|
|
1287
|
+
"stroke-linecap": "round",
|
|
1288
|
+
style: {
|
|
1289
|
+
transition: "none !important",
|
|
1290
|
+
animation: "none !important"
|
|
1291
|
+
}
|
|
1292
|
+
}, null, 8, ut)) : f("", !0),
|
|
1293
|
+
X.value && M.value.style.chart.layout.separators.show ? (y(), p("line", {
|
|
1294
|
+
key: 2,
|
|
1295
|
+
x1: q.value.left + q.value.width / 2,
|
|
1296
|
+
x2: q.value.left + q.value.width / 2,
|
|
1297
|
+
y1: q.value.top,
|
|
1298
|
+
y2: q.value.bottom,
|
|
1299
|
+
stroke: M.value.style.chart.layout.separators.color,
|
|
1300
|
+
"stroke-width": M.value.style.chart.layout.separators.strokeWidth,
|
|
1301
|
+
"stroke-linecap": "round"
|
|
1302
|
+
}, null, 8, dt)) : f("", !0)
|
|
1303
|
+
]))), 256)),
|
|
1304
|
+
m("g", {
|
|
1305
|
+
ref_key: "parentLabels",
|
|
1306
|
+
ref: hn
|
|
1307
|
+
}, [(y(!0), p(l, null, x(H.value, (e, n) => (y(), p("g", ft, [
|
|
1308
|
+
e.isChild && e.childIndex === 0 && M.value.style.chart.layout.bars.parentLabels.show ? (y(), p("rect", {
|
|
1309
|
+
key: 0,
|
|
1310
|
+
class: "vue-ui-horizontal-bar-parent-marker",
|
|
1311
|
+
x: 2,
|
|
1312
|
+
y: cr(e, n).y - M.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1313
|
+
height: M.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1314
|
+
width: M.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1315
|
+
rx: 1,
|
|
1316
|
+
fill: e.color,
|
|
1317
|
+
style: {
|
|
1318
|
+
animation: "none !important",
|
|
1319
|
+
transition: "none !important"
|
|
1320
|
+
}
|
|
1321
|
+
}, null, 8, pt)) : f("", !0),
|
|
1322
|
+
e.isChild && e.childIndex === 0 && M.value.style.chart.layout.bars.parentLabels.show ? (y(), p("text", {
|
|
1323
|
+
key: 1,
|
|
1324
|
+
y: cr(e, n).y,
|
|
1325
|
+
"font-size": M.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1326
|
+
fill: M.value.style.chart.layout.bars.parentLabels.color,
|
|
1327
|
+
x: M.value.style.chart.layout.bars.parentLabels.offsetX + M.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1328
|
+
"font-weight": M.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
1329
|
+
"text-anchor": "start",
|
|
1330
|
+
innerHTML: w(t)({
|
|
1331
|
+
content: `${ur(e, n)}`,
|
|
1332
|
+
fontSize: M.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1333
|
+
fill: M.value.style.chart.layout.bars.parentLabels.color,
|
|
1334
|
+
x: M.value.style.chart.layout.bars.parentLabels.offsetX + M.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1335
|
+
y: cr(e, n).y,
|
|
1336
|
+
translateY: !1
|
|
1337
|
+
})
|
|
1338
|
+
}, null, 8, mt)) : f("", !0),
|
|
1339
|
+
e.isChild && e.childIndex === 0 && M.value.style.chart.layout.bars.parentLabels.show ? (y(), p("text", {
|
|
1340
|
+
key: 2,
|
|
1341
|
+
y: cr(e, n).y + w(oe)(ur(e, n)) * M.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
|
|
1342
|
+
"font-size": M.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1343
|
+
fill: M.value.style.chart.layout.bars.parentLabels.color,
|
|
1344
|
+
x: M.value.style.chart.layout.bars.parentLabels.offsetX + M.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1345
|
+
"font-weight": M.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1346
|
+
"text-anchor": "start"
|
|
1347
|
+
}, C(dr(e, n)), 9, ht)) : f("", !0)
|
|
1348
|
+
]))), 256))], 512),
|
|
1349
|
+
m("g", {
|
|
1350
|
+
ref_key: "childLabels",
|
|
1351
|
+
ref: gn
|
|
1352
|
+
}, [(y(!0), p(l, null, x(Yn.value, (e, n) => (y(), p("g", gt, [(e.isChild || !e.hasChildren) && M.value.style.chart.layout.bars.nameLabels.show ? (y(), p("text", {
|
|
1353
|
+
key: 0,
|
|
1354
|
+
"text-anchor": "start",
|
|
1355
|
+
x: Math.abs(M.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1356
|
+
y: w(c)(q.value.top + (I.value + G.value) * n + G.value / 2 + M.value.style.chart.layout.bars.nameLabels.fontSize / 2 + W.value[n] * U.value),
|
|
1357
|
+
"font-size": M.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1358
|
+
fill: "transparent",
|
|
1359
|
+
"font-weight": M.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1360
|
+
style: { "user-select": "none" },
|
|
1361
|
+
innerHTML: w(t)({
|
|
1362
|
+
content: e.name,
|
|
1363
|
+
fontSize: M.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1364
|
+
fill: "transparent",
|
|
1365
|
+
x: Math.abs(M.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1366
|
+
y: w(c)(q.value.top + (I.value + G.value) * n + G.value / 2 + M.value.style.chart.layout.bars.nameLabels.fontSize / 2 + W.value[n] * U.value),
|
|
1367
|
+
translateY: !0
|
|
1368
|
+
})
|
|
1369
|
+
}, null, 8, _t)) : f("", !0)]))), 256))], 512),
|
|
1370
|
+
m("g", null, [(y(!0), p(l, null, x(H.value, (e, n) => (y(), p("g", vt, [(e.isChild || !e.hasChildren) && M.value.style.chart.layout.bars.nameLabels.show ? (y(), p("text", {
|
|
1371
|
+
key: 0,
|
|
1372
|
+
"text-anchor": "end",
|
|
1373
|
+
x: q.value.left + M.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1374
|
+
y: q.value.top + (I.value + G.value) * n + G.value / 2 + M.value.style.chart.layout.bars.nameLabels.fontSize / 3 + W.value[n] * U.value,
|
|
1375
|
+
"font-size": M.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1376
|
+
fill: M.value.style.chart.layout.bars.nameLabels.color,
|
|
1377
|
+
"font-weight": M.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1378
|
+
innerHTML: w(t)({
|
|
1379
|
+
content: e.name,
|
|
1380
|
+
fontSize: M.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1381
|
+
fill: M.value.style.chart.layout.bars.nameLabels.color,
|
|
1382
|
+
x: q.value.left + M.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1383
|
+
y: q.value.top + (I.value + G.value) * n + G.value / 2 + M.value.style.chart.layout.bars.nameLabels.fontSize / 3 + W.value[n] * U.value,
|
|
1384
|
+
translateY: !0
|
|
1385
|
+
})
|
|
1386
|
+
}, null, 8, yt)) : f("", !0)]))), 256))]),
|
|
1387
|
+
m("g", {
|
|
1388
|
+
ref_key: "dataLabels",
|
|
1389
|
+
ref: xn
|
|
1390
|
+
}, [(y(!0), p(l, null, x(H.value, (e, t) => (y(), p("g", bt, [m("text", {
|
|
1391
|
+
x: X.value ? q.value.left + q.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -M.value.style.chart.layout.bars.dataLabels.offsetX : M.value.style.chart.layout.bars.dataLabels.offsetX) : Math.min(sr(e.value) + 3 + M.value.style.chart.layout.bars.dataLabels.offsetX, q.value.right - 2),
|
|
1392
|
+
y: q.value.top + (I.value + G.value) * t + G.value / 2 + W.value[t] * U.value + M.value.style.chart.layout.bars.dataLabels.fontSize / 3,
|
|
1393
|
+
"text-anchor": !X.value || e.sign === -1 ? "start" : "end",
|
|
1394
|
+
"font-size": M.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1395
|
+
fill: M.value.style.chart.layout.bars.dataLabels.color,
|
|
1396
|
+
"font-weight": M.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1397
|
+
}, C(_r(e.value, e, t, e.sign)), 9, xt)]))), 256))], 512),
|
|
1398
|
+
(y(!0), p(l, null, x(H.value, (e, t) => (y(), p("g", null, [m("rect", {
|
|
1399
|
+
x: 0,
|
|
1400
|
+
y: q.value.top + (I.value + G.value) * t - I.value / 2 + W.value[t] * U.value,
|
|
1401
|
+
width: P.value,
|
|
1402
|
+
height: G.value + I.value <= 0 ? 1e-4 : G.value + I.value,
|
|
1403
|
+
fill: fr.value === e.id ? w(te)(M.value.style.chart.layout.highlighter.color, M.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
1404
|
+
onMouseenter: (n) => gr(e, t, "pointer"),
|
|
1405
|
+
onMouseleave: (n) => hr({
|
|
1406
|
+
datapoint: e,
|
|
1407
|
+
seriesIndex: t
|
|
1408
|
+
}),
|
|
1409
|
+
onClick: (n) => mr({
|
|
1410
|
+
datapoint: e,
|
|
1411
|
+
seriesIndex: t
|
|
1412
|
+
})
|
|
1413
|
+
}, null, 40, St)]))), 256)),
|
|
1414
|
+
S(e.$slots, "svg", { svg: {
|
|
1415
|
+
...K.value,
|
|
1416
|
+
drawingArea: q.value,
|
|
1417
|
+
isPrintingImg: w(Ln) || w(Rn) || Sn.value,
|
|
1418
|
+
isPrintingSvg: Cn.value
|
|
1419
|
+
} }, void 0, !0)
|
|
1420
|
+
], 512)], 46, et)), e.$slots.hint ? (y(), p("div", Ct, [S(e.$slots, "hint", _(h({
|
|
1421
|
+
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1422
|
+
isVisible: zr.value
|
|
1423
|
+
})), void 0, !0)])) : f("", !0)]),
|
|
1424
|
+
e.$slots.watermark ? (y(), p("div", wt, [S(e.$slots, "watermark", _(h({ isPrinting: w(Ln) || w(Rn) || Sn.value || Cn.value })), void 0, !0)])) : f("", !0),
|
|
1425
|
+
M.value.style.chart.legend.show && M.value.style.chart.legend.position === "bottom" ? (y(), p("div", {
|
|
1426
|
+
key: 7,
|
|
1427
|
+
ref_key: "chartLegend",
|
|
1428
|
+
ref: sn
|
|
1429
|
+
}, [(y(), d(Ne, {
|
|
1430
|
+
key: `legend_bottom_${dn.value}`,
|
|
1431
|
+
legendSet: B.value,
|
|
1432
|
+
config: Zn.value,
|
|
1433
|
+
isCursorPointer: N.value,
|
|
1434
|
+
onClickMarker: n[1] ||= ({ legend: e }) => J(e.id)
|
|
1435
|
+
}, Fe({
|
|
1436
|
+
item: T(({ legend: e, index: t }) => [m("div", {
|
|
1437
|
+
onClick: (t) => J(e.id),
|
|
1438
|
+
style: v(`opacity:${k.value.includes(e.id) ? .5 : 1}`)
|
|
1439
|
+
}, C(e.name) + ": " + C(w(ce)(M.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, w(a)({
|
|
1440
|
+
p: M.value.style.chart.legend.prefix,
|
|
1441
|
+
v: e.value,
|
|
1442
|
+
s: M.value.style.chart.legend.suffix,
|
|
1443
|
+
r: M.value.style.chart.legend.roundingValue
|
|
1444
|
+
}), {
|
|
1445
|
+
datapoint: e,
|
|
1446
|
+
seriesIndex: t
|
|
1447
|
+
})), 13, Tt)]),
|
|
1448
|
+
legendToggle: T(() => [B.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !w(kn) ? (y(), d(Oe, {
|
|
1449
|
+
key: 0,
|
|
1450
|
+
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1451
|
+
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
1452
|
+
fontSize: M.value.style.chart.legend.fontSize,
|
|
1453
|
+
checked: k.value.length > 0,
|
|
1454
|
+
isCursorPointer: N.value,
|
|
1455
|
+
onToggle: tr
|
|
1456
|
+
}, null, 8, [
|
|
1457
|
+
"backgroundColor",
|
|
1458
|
+
"color",
|
|
1459
|
+
"fontSize",
|
|
1460
|
+
"checked",
|
|
1461
|
+
"isCursorPointer"
|
|
1462
|
+
])) : f("", !0)]),
|
|
1463
|
+
_: 2
|
|
1464
|
+
}, [e.$slots.pattern ? {
|
|
1465
|
+
name: "legend-pattern",
|
|
1466
|
+
fn: T(({ legend: e, index: t }) => [Le(Ce, {
|
|
1467
|
+
shape: e.shape,
|
|
1468
|
+
radius: 30,
|
|
1469
|
+
stroke: "none",
|
|
1470
|
+
plot: {
|
|
1471
|
+
x: 30,
|
|
1472
|
+
y: 30
|
|
1473
|
+
},
|
|
1474
|
+
fill: `url(#pattern_${D.value}_${t})`
|
|
1475
|
+
}, null, 8, ["shape", "fill"])]),
|
|
1476
|
+
key: "0"
|
|
1477
|
+
} : void 0]), 1032, [
|
|
1478
|
+
"legendSet",
|
|
1479
|
+
"config",
|
|
1480
|
+
"isCursorPointer"
|
|
1481
|
+
]))], 512)) : f("", !0),
|
|
1482
|
+
S(e.$slots, "legend", { legend: B.value }, void 0, !0),
|
|
1483
|
+
e.$slots.source ? (y(), p("div", {
|
|
1484
|
+
key: 8,
|
|
1485
|
+
ref_key: "source",
|
|
1486
|
+
ref: cn,
|
|
1487
|
+
dir: "auto"
|
|
1488
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1489
|
+
Le(w(Wt), {
|
|
1490
|
+
teleportTo: M.value.style.chart.tooltip.teleportTo,
|
|
1491
|
+
show: z.value.showTooltip && tn.value && k.value.length < E.dataset.length,
|
|
1492
|
+
backgroundColor: M.value.style.chart.tooltip.backgroundColor,
|
|
1493
|
+
color: M.value.style.chart.tooltip.color,
|
|
1494
|
+
borderRadius: M.value.style.chart.tooltip.borderRadius,
|
|
1495
|
+
borderColor: M.value.style.chart.tooltip.borderColor,
|
|
1496
|
+
borderWidth: M.value.style.chart.tooltip.borderWidth,
|
|
1497
|
+
fontSize: M.value.style.chart.tooltip.fontSize,
|
|
1498
|
+
backgroundOpacity: M.value.style.chart.tooltip.backgroundOpacity,
|
|
1499
|
+
position: M.value.style.chart.tooltip.position,
|
|
1500
|
+
offsetX: M.value.style.chart.tooltip.offsetX,
|
|
1501
|
+
offsetY: M.value.style.chart.tooltip.offsetY,
|
|
1502
|
+
parent: O.value,
|
|
1503
|
+
content: nn.value,
|
|
1504
|
+
isFullscreen: $.value,
|
|
1505
|
+
isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
|
|
1506
|
+
smooth: M.value.style.chart.tooltip.smooth,
|
|
1507
|
+
backdropFilter: M.value.style.chart.tooltip.backdropFilter,
|
|
1508
|
+
smoothForce: M.value.style.chart.tooltip.smoothForce,
|
|
1509
|
+
smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1510
|
+
isA11yMode: Tn.value === "keyboard",
|
|
1511
|
+
a11yPosition: wn.value
|
|
1512
|
+
}, {
|
|
1513
|
+
"tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...pr.value })), void 0, !0)]),
|
|
1514
|
+
tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...pr.value })), void 0, !0)]),
|
|
1515
|
+
"tooltip-after": T(() => [S(e.$slots, "tooltip-after", _(h({ ...pr.value })), void 0, !0)]),
|
|
1516
|
+
_: 3
|
|
1517
|
+
}, 8, [
|
|
1518
|
+
"teleportTo",
|
|
1519
|
+
"show",
|
|
1520
|
+
"backgroundColor",
|
|
1521
|
+
"color",
|
|
1522
|
+
"borderRadius",
|
|
1523
|
+
"borderColor",
|
|
1524
|
+
"borderWidth",
|
|
1525
|
+
"fontSize",
|
|
1526
|
+
"backgroundOpacity",
|
|
1527
|
+
"position",
|
|
1528
|
+
"offsetX",
|
|
1529
|
+
"offsetY",
|
|
1530
|
+
"parent",
|
|
1531
|
+
"content",
|
|
1532
|
+
"isFullscreen",
|
|
1533
|
+
"isCustom",
|
|
1534
|
+
"smooth",
|
|
1535
|
+
"backdropFilter",
|
|
1536
|
+
"smoothForce",
|
|
1537
|
+
"smoothSnapThreshold",
|
|
1538
|
+
"isA11yMode",
|
|
1539
|
+
"a11yPosition"
|
|
1540
|
+
]),
|
|
1541
|
+
en.value && M.value.userOptions.buttons.table ? (y(), d(Ue(Dr.value.component), ze({ key: 9 }, Dr.value.props, {
|
|
1542
|
+
ref_key: "tableUnit",
|
|
1543
|
+
ref: pn,
|
|
1544
|
+
onClose: kr
|
|
1545
|
+
}), Fe({
|
|
1546
|
+
content: T(() => [m("div", {
|
|
1547
|
+
ref_key: "tableContainer",
|
|
1548
|
+
ref: Un,
|
|
1549
|
+
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1550
|
+
style: v(`${M.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1551
|
+
}, [m("div", Et, [M.value.table.useDialog ? f("", !0) : (y(), p("div", {
|
|
1552
|
+
key: 0,
|
|
1553
|
+
role: "button",
|
|
1554
|
+
tabindex: "0",
|
|
1555
|
+
style: v(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${N.value ? "pointer" : "default"}; background:${M.value.table.th.backgroundColor};`),
|
|
1556
|
+
onClick: kr,
|
|
1557
|
+
onKeypress: Je(kr, ["enter"])
|
|
1558
|
+
}, [Le(w(Gt), {
|
|
1559
|
+
name: "close",
|
|
1560
|
+
stroke: M.value.table.th.color,
|
|
1561
|
+
"stroke-width": 2
|
|
1562
|
+
}, null, 8, ["stroke"])], 36)), m("div", {
|
|
1563
|
+
style: {
|
|
1564
|
+
width: "100%",
|
|
1565
|
+
"container-type": "inline-size"
|
|
1566
|
+
},
|
|
1567
|
+
class: g({ "vue-ui-responsive": w(Or) })
|
|
1568
|
+
}, [m("table", Dt, [
|
|
1569
|
+
M.value.table.useDialog ? f("", !0) : (y(), p("caption", {
|
|
1570
|
+
key: 0,
|
|
1571
|
+
style: v({
|
|
1572
|
+
backgroundColor: M.value.table.th.backgroundColor,
|
|
1573
|
+
color: M.value.table.th.color,
|
|
1574
|
+
outline: M.value.table.th.outline
|
|
1575
|
+
}),
|
|
1576
|
+
class: "vue-ui-data-table__caption"
|
|
1577
|
+
}, [Ie(C(M.value.style.chart.title.text) + " ", 1), M.value.style.chart.title.subtitle.text ? (y(), p("span", Ot, C(M.value.style.chart.title.subtitle.text), 1)) : f("", !0)], 4)),
|
|
1578
|
+
m("thead", null, [m("tr", {
|
|
1579
|
+
role: "row",
|
|
1580
|
+
style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color}`)
|
|
1581
|
+
}, [(y(!0), p(l, null, x(Q.value.head, (e) => (y(), p("th", { style: v(`outline:${M.value.table.th.outline}`) }, [m("div", kt, C(e), 1)], 4))), 256))], 4), m("tr", null, [
|
|
1582
|
+
m("th", { style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color};outline:${M.value.table.th.outline}`) }, null, 4),
|
|
1583
|
+
m("th", { style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color};outline:${M.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + C(M.value.table.td.prefix) + C(isNaN(Y.value) ? "" : Y.value.toFixed(M.value.table.td.roundingValue)) + C(M.value.table.td.suffix), 5),
|
|
1584
|
+
m("th", { style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color};outline:${M.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
|
|
1585
|
+
m("th", { style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color};outline:${M.value.table.th.outline}`) }, null, 4),
|
|
1586
|
+
m("th", { style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color};outline:${M.value.table.th.outline}`) }, null, 4),
|
|
1587
|
+
m("th", { style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color};outline:${M.value.table.th.outline}`) }, null, 4),
|
|
1588
|
+
m("th", { style: v(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color};outline:${M.value.table.th.outline}`) }, null, 4)
|
|
1589
|
+
])]),
|
|
1590
|
+
m("tbody", null, [(y(!0), p(l, null, x(Q.value.body, (e, t) => (y(), p("tr", {
|
|
1591
|
+
class: g({
|
|
1592
|
+
"vue-ui-data-table__tbody__row": !0,
|
|
1593
|
+
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
1594
|
+
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
1595
|
+
}),
|
|
1596
|
+
style: v(`background:${M.value.table.td.backgroundColor};color:${M.value.table.td.color}`)
|
|
1597
|
+
}, [
|
|
1598
|
+
m("td", {
|
|
1599
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1600
|
+
style: v(`outline:${M.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1601
|
+
"data-cell": Q.value.head[0] ?? ""
|
|
1602
|
+
}, [m("div", jt, [e.color ? (y(), p("span", {
|
|
1603
|
+
key: 0,
|
|
1604
|
+
style: v(`color:${e.color};margin-right:3px`)
|
|
1605
|
+
}, "⬤", 4)) : f("", !0), m("span", null, C(e.parentName), 1)])], 12, At),
|
|
1606
|
+
m("td", {
|
|
1607
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1608
|
+
style: v(`outline:${M.value.table.td.outline}`),
|
|
1609
|
+
"data-cell": Q.value.head[1] ?? ""
|
|
1610
|
+
}, [m("div", Nt, C(M.value.table.td.prefix) + C([
|
|
1611
|
+
"",
|
|
1612
|
+
NaN,
|
|
1613
|
+
void 0
|
|
1614
|
+
].includes(e.parentValue) ? "" : e.parentValue.toFixed(M.value.table.td.roundingValue)) + C(M.value.table.td.suffix), 1)], 12, Mt),
|
|
1615
|
+
m("td", {
|
|
1616
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1617
|
+
style: v(`outline:${M.value.table.td.outline}`),
|
|
1618
|
+
"data-cell": Q.value.head[2] ?? ""
|
|
1619
|
+
}, [m("div", Ft, C([
|
|
1620
|
+
"",
|
|
1621
|
+
NaN,
|
|
1622
|
+
void 0
|
|
1623
|
+
].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(M.value.table.td.roundingPercentage)}%`), 1)], 12, Pt),
|
|
1624
|
+
m("td", {
|
|
1625
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1626
|
+
style: v(`outline:${M.value.table.td.outline}`),
|
|
1627
|
+
"data-cell": Q.value.head[3] ?? ""
|
|
1628
|
+
}, [m("div", Lt, C(e.childName), 1)], 12, It),
|
|
1629
|
+
m("td", {
|
|
1630
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1631
|
+
style: v(`outline:${M.value.table.td.outline}`),
|
|
1632
|
+
"data-cell": Q.value.head[4] ?? ""
|
|
1633
|
+
}, [m("div", zt, C(M.value.table.td.prefix) + C([
|
|
1634
|
+
"",
|
|
1635
|
+
NaN,
|
|
1636
|
+
void 0
|
|
1637
|
+
].includes(e.childValue) ? "" : e.childValue.toFixed(M.value.table.td.roundingValue)) + C(M.value.table.td.suffix), 1)], 12, Rt),
|
|
1638
|
+
m("td", {
|
|
1639
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1640
|
+
style: v(`outline:${M.value.table.td.outline}`),
|
|
1641
|
+
"data-cell": Q.value.head[5] ?? ""
|
|
1642
|
+
}, [m("div", Vt, C([
|
|
1643
|
+
"",
|
|
1644
|
+
NaN,
|
|
1645
|
+
void 0
|
|
1646
|
+
].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(M.value.table.td.roundingPercentage)}%`), 1)], 12, Bt),
|
|
1647
|
+
m("td", {
|
|
1648
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1649
|
+
style: v(`outline:${M.value.table.td.outline}`),
|
|
1650
|
+
"data-cell": Q.value.head[6] ?? ""
|
|
1651
|
+
}, [m("div", Ut, C([
|
|
1652
|
+
"",
|
|
1653
|
+
NaN,
|
|
1654
|
+
void 0
|
|
1655
|
+
].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(M.value.table.td.roundingPercentage)}%`), 1)], 12, Ht)
|
|
1656
|
+
], 6))), 256))])
|
|
1657
|
+
])], 2)])], 4)]),
|
|
1658
|
+
_: 2
|
|
1659
|
+
}, [M.value.table.useDialog ? {
|
|
1660
|
+
name: "title",
|
|
1661
|
+
fn: T(() => [Ie(C(Dr.value.title), 1)]),
|
|
1662
|
+
key: "0"
|
|
1663
|
+
} : void 0, M.value.table.useDialog ? {
|
|
1664
|
+
name: "actions",
|
|
1665
|
+
fn: T(() => [m("button", {
|
|
1666
|
+
tabindex: "0",
|
|
1667
|
+
class: "vue-ui-user-options-button",
|
|
1668
|
+
onClick: n[2] ||= (e) => vr(M.value.userOptions.callbacks.csv),
|
|
1669
|
+
style: v({ cursor: N.value ? "pointer" : "default" })
|
|
1670
|
+
}, [Le(w(Gt), {
|
|
1671
|
+
name: "fileCsv",
|
|
1672
|
+
stroke: Dr.value.props.color
|
|
1673
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1674
|
+
key: "1"
|
|
1675
|
+
} : void 0]), 1040)) : f("", !0),
|
|
1676
|
+
S(e.$slots, "skeleton", {}, () => [w(kn) ? (y(), d(_e, { key: 0 })) : f("", !0)], !0)
|
|
1677
|
+
], 46, Xe));
|
|
1678
|
+
}
|
|
1679
|
+
}, [["__scopeId", "data-v-ce41ffa2"]]);
|
|
1680
|
+
//#endregion
|
|
1681
|
+
export { Ye as n, Wt as t };
|