vue-data-ui 3.19.9 → 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/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-Dl9W5zJD.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 +20 -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-nsosW-n5.js → vue-data-ui-qpQv-4uP.js} +69 -69
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CTvvvgBE.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-LQuPTOlm.js → vue-ui-bump-DVaqtZbd.js} +260 -260
- package/dist/{vue-ui-candlestick-BeO06tlH.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-DyTYvEg3.js → vue-ui-circle-pack-B1CpTtpw.js} +51 -51
- package/dist/{vue-ui-cursor-C5_wkWul.js → vue-ui-cursor-NaTj5i2-.js} +6 -6
- package/dist/{vue-ui-dag-mH0baWM3.js → vue-ui-dag-DH4ocx0S.js} +46 -46
- package/dist/{vue-ui-dashboard-F7pEuJDh.js → vue-ui-dashboard-Ckff1yim.js} +73 -73
- package/dist/{vue-ui-digits-BYBtwXy_.js → vue-ui-digits-DwLlJqbW.js} +6 -6
- package/dist/vue-ui-donut-DQdIdwRU.js +2410 -0
- package/dist/{vue-ui-donut-evolution-C46h0gLy.js → vue-ui-donut-evolution-MfM5kK6w.js} +417 -417
- package/dist/vue-ui-dumbbell-B2T4vlK-.js +1530 -0
- package/dist/{vue-ui-flow-BYYyk5KL.js → vue-ui-flow-CJh6f72m.js} +107 -107
- package/dist/vue-ui-funnel-C9gfXNCr.js +777 -0
- package/dist/{vue-ui-galaxy-D061gTYS.js → vue-ui-galaxy-pBR_FESJ.js} +302 -302
- package/dist/vue-ui-gauge-CAemxCGl.js +920 -0
- package/dist/{vue-ui-geo-BwOMFUVr.js → vue-ui-geo-BDQqaukJ.js} +35 -35
- package/dist/{vue-ui-gizmo-CQsP8Nd3.js → vue-ui-gizmo-B1ppjqPj.js} +63 -63
- package/dist/{vue-ui-heatmap-DOsulVoP.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-CE-JFZ1o.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-B29gVcTN.js → vue-ui-mood-radar-N8osOTFR.js} +36 -36
- package/dist/vue-ui-nested-donuts-CwH3wKgX.js +1487 -0
- package/dist/{vue-ui-onion-MN-PjNJq.js → vue-ui-onion-C56gFjO6.js} +294 -294
- package/dist/{vue-ui-parallel-coordinate-plot-C9zU7MP5.js → vue-ui-parallel-coordinate-plot-C-jj819p.js} +123 -128
- package/dist/{vue-ui-pattern-seed-abRweCDE.js → vue-ui-pattern-seed-BB1honLm.js} +1 -1
- package/dist/{vue-ui-quadrant-h-QFG9O4.js → vue-ui-quadrant-DYc9xZY3.js} +443 -443
- package/dist/{vue-ui-quick-chart-PAVz4c9z.js → vue-ui-quick-chart-BG7kK_-q.js} +193 -193
- package/dist/{vue-ui-radar-D2pVd53z.js → vue-ui-radar-CgKog9Xw.js} +77 -77
- 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-DamvqiyJ.js → vue-ui-ridgeline-DPrlVJTW.js} +376 -376
- package/dist/{vue-ui-rings-DkHS5dwd.js → vue-ui-rings-CIvvHHsF.js} +107 -107
- package/dist/vue-ui-scatter-CeBQJbGx.js +2413 -0
- package/dist/{vue-ui-skeleton-zhkS1cmh.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-fQ10-UvM.js → vue-ui-spark-trend-DGOrPr9I.js} +121 -121
- package/dist/{vue-ui-sparkbar-D5toou8V.js → vue-ui-sparkbar-BVumo-YD.js} +107 -107
- package/dist/{vue-ui-sparkgauge-DRZcIPYf.js → vue-ui-sparkgauge-BoCwdQcu.js} +56 -56
- package/dist/{vue-ui-sparkhistogram-YizEqFdN.js → vue-ui-sparkhistogram-4qXY1LXW.js} +112 -112
- package/dist/vue-ui-sparkline-C0kzXrwI.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +662 -0
- package/dist/{vue-ui-stackbar-BFLCEsRk.js → vue-ui-stackbar-Dnq4l5xs.js} +296 -293
- package/dist/vue-ui-stackline-CaNOHQYl.js +2398 -0
- package/dist/{vue-ui-strip-plot-ByaDLFSL.js → vue-ui-strip-plot-D2CcJw_5.js} +79 -79
- package/dist/{vue-ui-table-DuA_CfGn.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-Dfei_QrJ.js → vue-ui-table-sparkline-BZDkOEEl.js} +125 -125
- package/dist/vue-ui-thermometer-BXyHOQ7T.js +763 -0
- package/dist/{vue-ui-timer-9LNNDl4q.js → vue-ui-timer-CcLK1wbi.js} +29 -29
- package/dist/{vue-ui-tiremarks-kF0Baqia.js → vue-ui-tiremarks-B6txvBg-.js} +25 -25
- package/dist/{vue-ui-treemap-BexKMBhz.js → vue-ui-treemap-O3SBpD3K.js} +416 -416
- package/dist/{vue-ui-waffle-Dq50j_uw.js → vue-ui-waffle-DN5zG3b0.js} +289 -289
- package/dist/{vue-ui-wheel-BETHlWsO.js → vue-ui-wheel-CxnJGXkX.js} +134 -134
- package/dist/{vue-ui-word-cloud-D1AQtzmT.js → vue-ui-word-cloud-CM5yPCXb.js} +54 -54
- package/dist/{vue-ui-world-CcgbuSp_.js → vue-ui-world-DCPgXKxh.js} +447 -447
- package/dist/{vue-ui-xy-canvas-4ABYnasj.js → vue-ui-xy-canvas-BUPnRZ3C.js} +89 -88
- 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-ckZtLlmH.js +0 -1238
- package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
- package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
- package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
- package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
- package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
- package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
- package/dist/vue-ui-funnel-BfY509t-.js +0 -777
- package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
- package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
- package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
- package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
- package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
- package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
- package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
- package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
- package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
- package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
- package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
- /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
|
@@ -1,1681 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { B as t, G as n, H as r, It as i, J as a, Lt as o, Mt as s, S as ee, St as te, Tt as c, X as ne, at as re, dt as ie, i as ae, jt as oe, nt as se, pt as ce, t as le, v as l, x as ue, y as de, zt as fe } from "./lib-BkiwukKO.js";
|
|
3
|
-
import { t as pe } from "./useConfig-ByaaSKhz.js";
|
|
4
|
-
import { t as me } from "./usePrinter-X0yWOynH.js";
|
|
5
|
-
import { n as he, t as ge } from "./BaseScanner-C7dmAref.js";
|
|
6
|
-
import { t as _e } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
-
import { t as ye } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
-
import { t as be } from "./img-BjOr008R.js";
|
|
10
|
-
import { n as xe } from "./Title-__gWq2g6.js";
|
|
11
|
-
import { t as Se } from "./Shape-DEGOZ6GG.js";
|
|
12
|
-
import { t as Ce } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
13
|
-
import { c as we } from "./canvas-lib-DTaADQOK.js";
|
|
14
|
-
import { t as Te } from "./useResponsive-CrAInupd.js";
|
|
15
|
-
import { t as Ee } from "./vue-ui-accordion-BX9WL-QF.js";
|
|
16
|
-
import { t as De } from "./BaseLegendToggle-CJTwLGXL.js";
|
|
17
|
-
import { t as Oe } from "./A11yDataTable-q2-8fSlJ.js";
|
|
18
|
-
import { t as ke } from "./useUserOptionState-CjPJPTg2.js";
|
|
19
|
-
import { t as Ae } from "./useChartAccessibility-Do37qcw2.js";
|
|
20
|
-
import { t as je } from "./useTableResponsive-DrM1xqII.js";
|
|
21
|
-
import { t as Me } from "./Legend-Gg5Q4Clb.js";
|
|
22
|
-
import { t as Ne } from "./vue_ui_horizontal_bar-Bqxorkc_.js";
|
|
23
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as Le, guardReactiveProps as g, mergeProps as Re, nextTick as ze, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, onMounted as Ve, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as He, toDisplayString as w, toRefs as Ue, unref as T, useCssVars as We, useSlots as Ge, watch as Ke, withCtx as E, withKeys as qe } from "vue";
|
|
24
|
-
//#region src/components/vue-ui-horizontal-bar.vue
|
|
25
|
-
var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze = ["onClick"], Qe = { style: { position: "relative" } }, $e = [
|
|
26
|
-
"xmlns",
|
|
27
|
-
"viewBox",
|
|
28
|
-
"aria-describedby"
|
|
29
|
-
], et = ["width", "height"], tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = { key: 1 }, at = [
|
|
30
|
-
"y",
|
|
31
|
-
"width",
|
|
32
|
-
"height",
|
|
33
|
-
"fill",
|
|
34
|
-
"rx"
|
|
35
|
-
], ot = [
|
|
36
|
-
"x",
|
|
37
|
-
"y",
|
|
38
|
-
"width",
|
|
39
|
-
"height",
|
|
40
|
-
"fill",
|
|
41
|
-
"rx"
|
|
42
|
-
], st = [
|
|
43
|
-
"x",
|
|
44
|
-
"y",
|
|
45
|
-
"width",
|
|
46
|
-
"height",
|
|
47
|
-
"fill",
|
|
48
|
-
"rx",
|
|
49
|
-
"stroke",
|
|
50
|
-
"stroke-width"
|
|
51
|
-
], ct = [
|
|
52
|
-
"x",
|
|
53
|
-
"y",
|
|
54
|
-
"width",
|
|
55
|
-
"height",
|
|
56
|
-
"fill",
|
|
57
|
-
"rx",
|
|
58
|
-
"stroke",
|
|
59
|
-
"stroke-width"
|
|
60
|
-
], lt = [
|
|
61
|
-
"x1",
|
|
62
|
-
"x2",
|
|
63
|
-
"y1",
|
|
64
|
-
"y2",
|
|
65
|
-
"stroke",
|
|
66
|
-
"stroke-width"
|
|
67
|
-
], ut = [
|
|
68
|
-
"x1",
|
|
69
|
-
"x2",
|
|
70
|
-
"y1",
|
|
71
|
-
"y2",
|
|
72
|
-
"stroke",
|
|
73
|
-
"stroke-width"
|
|
74
|
-
], dt = { class: "vue-ui-horizontal-bar-parent-label" }, ft = [
|
|
75
|
-
"y",
|
|
76
|
-
"height",
|
|
77
|
-
"width",
|
|
78
|
-
"fill"
|
|
79
|
-
], pt = [
|
|
80
|
-
"y",
|
|
81
|
-
"font-size",
|
|
82
|
-
"fill",
|
|
83
|
-
"x",
|
|
84
|
-
"font-weight",
|
|
85
|
-
"innerHTML"
|
|
86
|
-
], mt = [
|
|
87
|
-
"y",
|
|
88
|
-
"font-size",
|
|
89
|
-
"fill",
|
|
90
|
-
"x",
|
|
91
|
-
"font-weight"
|
|
92
|
-
], ht = { class: "vue-ui-horizontal-bar-child-label" }, gt = [
|
|
93
|
-
"x",
|
|
94
|
-
"y",
|
|
95
|
-
"font-size",
|
|
96
|
-
"font-weight",
|
|
97
|
-
"innerHTML"
|
|
98
|
-
], _t = { class: "vue-ui-horizontal-bar-child-label" }, vt = [
|
|
99
|
-
"x",
|
|
100
|
-
"y",
|
|
101
|
-
"font-size",
|
|
102
|
-
"fill",
|
|
103
|
-
"font-weight",
|
|
104
|
-
"innerHTML"
|
|
105
|
-
], yt = { class: "vue-ui-horizontal-bar-child-label" }, bt = [
|
|
106
|
-
"x",
|
|
107
|
-
"y",
|
|
108
|
-
"text-anchor",
|
|
109
|
-
"font-size",
|
|
110
|
-
"fill",
|
|
111
|
-
"font-weight"
|
|
112
|
-
], xt = [
|
|
113
|
-
"y",
|
|
114
|
-
"width",
|
|
115
|
-
"height",
|
|
116
|
-
"fill",
|
|
117
|
-
"onMouseenter",
|
|
118
|
-
"onMouseleave",
|
|
119
|
-
"onClick"
|
|
120
|
-
], St = {
|
|
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
|
-
}, Ct = {
|
|
131
|
-
key: 6,
|
|
132
|
-
class: "vue-data-ui-watermark"
|
|
133
|
-
}, wt = ["onClick"], Tt = { style: "width:100%;padding-top: 36px;position:relative" }, Et = { class: "vue-ui-data-table" }, Dt = { key: 0 }, Ot = { style: { width: "100%" } }, kt = ["data-cell"], At = { style: {
|
|
134
|
-
display: "flex",
|
|
135
|
-
"align-items": "center",
|
|
136
|
-
gap: "5px",
|
|
137
|
-
"justify-content": "flex-end",
|
|
138
|
-
width: "100%",
|
|
139
|
-
"padding-right": "3px"
|
|
140
|
-
} }, jt = ["data-cell"], Mt = { style: {
|
|
141
|
-
display: "flex",
|
|
142
|
-
"align-items": "center",
|
|
143
|
-
gap: "5px",
|
|
144
|
-
"justify-content": "flex-end",
|
|
145
|
-
width: "100%",
|
|
146
|
-
"padding-right": "3px"
|
|
147
|
-
} }, Nt = ["data-cell"], Pt = { style: {
|
|
148
|
-
display: "flex",
|
|
149
|
-
"align-items": "center",
|
|
150
|
-
gap: "5px",
|
|
151
|
-
"justify-content": "flex-end",
|
|
152
|
-
width: "100%",
|
|
153
|
-
"padding-right": "3px"
|
|
154
|
-
} }, Ft = ["data-cell"], It = { style: {
|
|
155
|
-
display: "flex",
|
|
156
|
-
"align-items": "center",
|
|
157
|
-
gap: "5px",
|
|
158
|
-
"justify-content": "flex-end",
|
|
159
|
-
width: "100%",
|
|
160
|
-
"padding-right": "3px"
|
|
161
|
-
} }, Lt = ["data-cell"], Rt = { style: {
|
|
162
|
-
display: "flex",
|
|
163
|
-
"align-items": "center",
|
|
164
|
-
gap: "5px",
|
|
165
|
-
"justify-content": "flex-end",
|
|
166
|
-
width: "100%",
|
|
167
|
-
"padding-right": "3px"
|
|
168
|
-
} }, zt = ["data-cell"], Bt = { style: {
|
|
169
|
-
display: "flex",
|
|
170
|
-
"align-items": "center",
|
|
171
|
-
gap: "5px",
|
|
172
|
-
"justify-content": "flex-end",
|
|
173
|
-
width: "100%",
|
|
174
|
-
"padding-right": "3px"
|
|
175
|
-
} }, Vt = ["data-cell"], Ht = { style: {
|
|
176
|
-
display: "flex",
|
|
177
|
-
"align-items": "center",
|
|
178
|
-
gap: "5px",
|
|
179
|
-
"justify-content": "flex-end",
|
|
180
|
-
width: "100%",
|
|
181
|
-
"padding-right": "3px"
|
|
182
|
-
} }, Ut = /* @__PURE__ */ Ce({
|
|
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: Ce, emit: Je }) {
|
|
204
|
-
We((e) => ({ v36bdb0b9: e.tdo }));
|
|
205
|
-
let Ut = Le(() => import("./Tooltip-CuWEYGr3.js")), Wt = Le(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Gt = Le(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Kt = Le(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), qt = Le(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Jt = Le(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_vertical_bar: Yt } = pe(), { isThemeValid: Xt, warnInvalidTheme: Zt } = ye(), Qt = Ge(), D = e, $t = d({
|
|
206
|
-
get() {
|
|
207
|
-
return !!D.dataset && D.dataset.length;
|
|
208
|
-
},
|
|
209
|
-
set(e) {
|
|
210
|
-
return e;
|
|
211
|
-
}
|
|
212
|
-
}), O = x(r()), en = x(!1), tn = x(""), nn = x(null), rn = x(0), k = x(null), an = x(null), on = x(null), sn = x(null), cn = x(null), ln = x(0), un = x(0), dn = x(null), fn = x(null), pn = x(null), mn = x(null), hn = x(null), A = x([]), gn = x({
|
|
213
|
-
none: 0,
|
|
214
|
-
asc: 1,
|
|
215
|
-
desc: 2
|
|
216
|
-
}), j = x(0), _n = x(!1), vn = x(0), yn = x(0), bn = x(null), xn = x(!1), Sn = x(!1), M = x(null), Cn = x({
|
|
217
|
-
x: 0,
|
|
218
|
-
y: 0
|
|
219
|
-
}), wn = x("pointer"), Tn = Je, N = x(Fn()), P = d(() => N.value.userOptions.useCursorPointer), En = d(() => D.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
|
-
]), Dn = d(() => fe({
|
|
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: N.value.skeletonConfig ?? {}
|
|
287
|
-
})), { loading: On, FINAL_DATASET: kn, manualLoading: An } = he({
|
|
288
|
-
...Ue(D),
|
|
289
|
-
FINAL_CONFIG: N,
|
|
290
|
-
prepareConfig: Fn,
|
|
291
|
-
callback: () => {
|
|
292
|
-
Promise.resolve().then(async () => {
|
|
293
|
-
B.value.showTable = N.value.table.show, Kn();
|
|
294
|
-
});
|
|
295
|
-
},
|
|
296
|
-
skeletonDataset: En.value,
|
|
297
|
-
skeletonConfig: fe({
|
|
298
|
-
defaultConfig: N.value,
|
|
299
|
-
userConfig: Dn.value
|
|
300
|
-
})
|
|
301
|
-
}), { userOptionsVisible: jn, setUserOptionsVisibility: Mn, keepUserOptionState: Nn } = ke({ config: N.value }), { svgRef: Pn } = Ae({ config: N.value.style.chart.title });
|
|
302
|
-
function Fn() {
|
|
303
|
-
let e = ve({
|
|
304
|
-
userConfig: D.config,
|
|
305
|
-
defaultConfig: Yt
|
|
306
|
-
}), t = {}, n = e.theme;
|
|
307
|
-
if (n) if (!Xt.value(e)) Zt(e), t = e;
|
|
308
|
-
else {
|
|
309
|
-
let r = ve({
|
|
310
|
-
userConfig: Ne[n] || D.config,
|
|
311
|
-
defaultConfig: e
|
|
312
|
-
});
|
|
313
|
-
t = {
|
|
314
|
-
...ve({
|
|
315
|
-
userConfig: D.config,
|
|
316
|
-
defaultConfig: r
|
|
317
|
-
}),
|
|
318
|
-
customPalette: e.customPalette.length ? e.customPalette : o[n] || c
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
else t = e;
|
|
322
|
-
return D.config && ie(D.config, "events.datapointEnter") ? t.events.datapointEnter = D.config.events.datapointEnter : t.events.datapointEnter = null, D.config && ie(D.config, "events.datapointLeave") ? t.events.datapointLeave = D.config.events.datapointLeave : t.events.datapointLeave = null, D.config && ie(D.config, "events.datapointClick") ? t.events.datapointClick = D.config.events.datapointClick : t.events.datapointClick = null, t;
|
|
323
|
-
}
|
|
324
|
-
let F = x(N.value.style.chart.width), I = x(N.value.style.chart.height), L = x(N.value.style.chart.layout.bars.gap);
|
|
325
|
-
Ke(() => D.config, (e) => {
|
|
326
|
-
On.value || (N.value = Fn()), jn.value = !N.value.userOptions.showOnChartHover, ln.value += 1, un.value += 1, B.value.showTable = N.value.table.show, B.value.sortDesc = N.value.style.chart.layout.bars.sort === "desc", B.value.showTooltip = N.value.style.chart.tooltip.show, F.value = N.value.style.chart.width, I.value = N.value.style.chart.height, L.value = N.value.style.chart.layout.bars.gap;
|
|
327
|
-
}, { deep: !0 }), Ke(() => D.dataset, (e) => {
|
|
328
|
-
Array.isArray(e) && e.length > 0 && (An.value = !1);
|
|
329
|
-
}, { deep: !0 });
|
|
330
|
-
let { isPrinting: In, isImaging: Ln, generatePdf: Rn, generateImage: zn } = me({
|
|
331
|
-
elementId: `vue-ui-vertical-bar_${O.value}`,
|
|
332
|
-
fileName: N.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
333
|
-
options: N.value.userOptions.print
|
|
334
|
-
}), Bn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Vn = d(() => ue(N.value.customPalette)), Hn = x(null), Un = d(() => N.value.table.responsiveBreakpoint), Wn = d(() => !!N.value.debug), Gn = x(0), R = x(null), z = x(null);
|
|
335
|
-
function Kn() {
|
|
336
|
-
if (k.value && (te(D.dataset) && (ne({
|
|
337
|
-
componentName: "VueUiVerticalBar",
|
|
338
|
-
type: "dataset",
|
|
339
|
-
debug: Wn.value
|
|
340
|
-
}), $t.value = !1, An.value = !0), te(D.dataset) || (An.value = N.value.loading), N.value.responsive)) {
|
|
341
|
-
let e = we(() => {
|
|
342
|
-
let { width: e, height: t } = Te({
|
|
343
|
-
chart: k.value,
|
|
344
|
-
title: N.value.style.chart.title.text ? an.value : null,
|
|
345
|
-
legend: N.value.style.chart.legend.show ? on.value : null,
|
|
346
|
-
source: sn.value,
|
|
347
|
-
noTitle: cn.value
|
|
348
|
-
});
|
|
349
|
-
Gn.value = t / 3, requestAnimationFrame(async () => {
|
|
350
|
-
I.value = t, F.value = e;
|
|
351
|
-
});
|
|
352
|
-
});
|
|
353
|
-
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), ze(() => {
|
|
354
|
-
z.value = k.value?.parentNode, z.value && R.value.observe(z.value);
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
Be(() => {
|
|
359
|
-
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
360
|
-
});
|
|
361
|
-
let B = x({
|
|
362
|
-
showTable: N.value.table.show,
|
|
363
|
-
sortDesc: N.value.style.chart.layout.bars.sort === "desc",
|
|
364
|
-
showTooltip: N.value.style.chart.tooltip.show
|
|
365
|
-
}), qn = d(() => B.value.sortDesc), V = d(() => (kn.value.forEach((e, t) => {
|
|
366
|
-
!e.value && !e.children && ne({
|
|
367
|
-
componentName: "VueUiVerticalBar",
|
|
368
|
-
type: "datasetAttributeEmpty",
|
|
369
|
-
property: `value (index ${t})`,
|
|
370
|
-
debug: Wn.value
|
|
371
|
-
}), e.children && (te(e.children) ? ne({
|
|
372
|
-
componentName: "VueUiVerticalBar",
|
|
373
|
-
type: "datasetAttributeEmpty",
|
|
374
|
-
property: `children (index ${t})`,
|
|
375
|
-
debug: Wn.value
|
|
376
|
-
}) : e.children.forEach((e, t) => {
|
|
377
|
-
[null, void 0].includes(e.name) && ne({
|
|
378
|
-
componentName: "VueUiVerticalBar",
|
|
379
|
-
type: "datasetSerieAttribute",
|
|
380
|
-
property: "name",
|
|
381
|
-
key: "children",
|
|
382
|
-
index: t,
|
|
383
|
-
debug: Wn.value
|
|
384
|
-
});
|
|
385
|
-
}));
|
|
386
|
-
}), kn.value.map((e, t) => {
|
|
387
|
-
let n = `vertical_parent_${t}_${O.value}`, r = e.children && e.children.length > 0, i = l(e.value ? e.value : r ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), a = i >= 0 ? 1 : -1;
|
|
388
|
-
return {
|
|
389
|
-
...e,
|
|
390
|
-
id: n,
|
|
391
|
-
absoluteIndex: t,
|
|
392
|
-
shape: "square",
|
|
393
|
-
opacity: A.value.includes(n) ? .5 : 1,
|
|
394
|
-
value: Math.abs(i),
|
|
395
|
-
sign: a,
|
|
396
|
-
hasChildren: r,
|
|
397
|
-
isChild: !1,
|
|
398
|
-
segregate: () => Y(n),
|
|
399
|
-
isSegregated: A.value.includes(n),
|
|
400
|
-
color: de(e.color) || Vn.value[t] || c[t] || c[t % c.length],
|
|
401
|
-
children: !e.children || !e.children.length ? [] : e.children.toSorted(_n.value ? () => 0 : (e, t) => qn.value ? t.value - e.value : e.value - t.value).map((r, o) => ({
|
|
402
|
-
...r,
|
|
403
|
-
value: l(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: i,
|
|
410
|
-
parentSign: a,
|
|
411
|
-
id: `vertical_child_${t}_${o}_${O.value}`,
|
|
412
|
-
childIndex: o,
|
|
413
|
-
color: de(r.color) || de(e.color) || Vn.value[t] || c[t] || c[t % c.length]
|
|
414
|
-
})).map((t, n) => ({
|
|
415
|
-
...t,
|
|
416
|
-
isFirstChild: n === 0,
|
|
417
|
-
isLastChild: n === e.children.length - 1
|
|
418
|
-
}))
|
|
419
|
-
};
|
|
420
|
-
}).toSorted(_n.value ? () => 0 : (e, t) => qn.value ? t.value - e.value : e.value - t.value))), H = d(() => V.value.filter((e) => !A.value.includes(e.id))), U = d(() => H.value.flatMap((e) => e.hasChildren ? e.children : e)), Jn = d(() => V.value.flatMap((e) => e.hasChildren ? e.children : e)), Yn = d(() => H.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Xn = d(() => ({
|
|
421
|
-
cy: "vertical-bar-div-legend",
|
|
422
|
-
backgroundColor: N.value.style.chart.legend.backgroundColor,
|
|
423
|
-
color: N.value.style.chart.legend.color,
|
|
424
|
-
fontSize: N.value.style.chart.legend.fontSize,
|
|
425
|
-
paddingBottom: 12,
|
|
426
|
-
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
427
|
-
})), W = d(() => N.value.style.chart.layout.bars.parentLabels.show ? N.value.style.chart.layout.bars.parentLabels.fontSize * 3 + N.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), G = d(() => {
|
|
428
|
-
let e = [], t = 0;
|
|
429
|
-
return U.value.forEach((n, r) => {
|
|
430
|
-
n.isChild && n.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show && (t += 1), e[r] = t;
|
|
431
|
-
}), e;
|
|
432
|
-
}), K = d(() => {
|
|
433
|
-
let e = Math.max(0, ...G.value) * W.value;
|
|
434
|
-
return (I.value - 24 - (Yn.value - 1) * L.value - e) / Yn.value;
|
|
435
|
-
}), q = d(() => ({
|
|
436
|
-
width: F.value,
|
|
437
|
-
height: I.value,
|
|
438
|
-
padding: {
|
|
439
|
-
top: 12,
|
|
440
|
-
left: 128 + N.value.style.chart.layout.bars.offsetX,
|
|
441
|
-
right: 64 + N.value.style.chart.layout.bars.paddingRight,
|
|
442
|
-
bottom: 12
|
|
443
|
-
}
|
|
444
|
-
})), Zn = x(0);
|
|
445
|
-
function Qn() {
|
|
446
|
-
ze(() => {
|
|
447
|
-
if (!hn.value) {
|
|
448
|
-
Zn.value = 0;
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
Zn.value = Array.from(hn.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
|
-
Ke(() => [
|
|
458
|
-
U.value,
|
|
459
|
-
F.value,
|
|
460
|
-
I.value,
|
|
461
|
-
N.value.style.chart.layout.bars.nameLabels,
|
|
462
|
-
N.value.style.chart.layout.bars.offsetX
|
|
463
|
-
], () => Qn(), { deep: !0 }), Ve(() => {
|
|
464
|
-
Qn();
|
|
465
|
-
});
|
|
466
|
-
function $n() {
|
|
467
|
-
ze(() => {
|
|
468
|
-
vn.value = 0, yn.value = 0, requestAnimationFrame(() => {
|
|
469
|
-
if (!bn.value) {
|
|
470
|
-
vn.value = 0, yn.value = 0;
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
let e = Array.from(bn.value.querySelectorAll("text"));
|
|
474
|
-
if (!e.length) {
|
|
475
|
-
vn.value = 0, yn.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 = F.value, i = Math.max(0, 0 - t + 24), a = Math.max(0, n - r + 24);
|
|
484
|
-
yn.value = i, vn.value = a;
|
|
485
|
-
});
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
Ke(A, () => $n(), { deep: !0 }), Ke(() => [
|
|
489
|
-
U.value,
|
|
490
|
-
F.value,
|
|
491
|
-
I.value
|
|
492
|
-
], () => $n(), { deep: !0 }), Ve(() => $n());
|
|
493
|
-
let J = d(() => {
|
|
494
|
-
let e = Zn.value + Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX) + yn.value + N.value.style.chart.layout.bars.offsetX, t = q.value.width - q.value.padding.right, n = Math.max(0, t - e - vn.value - yn.value - N.value.style.chart.layout.bars.offsetX);
|
|
495
|
-
return {
|
|
496
|
-
top: q.value.padding.top,
|
|
497
|
-
bottom: q.value.padding.top + q.value.height,
|
|
498
|
-
left: e,
|
|
499
|
-
right: t,
|
|
500
|
-
width: n,
|
|
501
|
-
fullHeight: q.value.padding.top + q.value.padding.bottom + q.value.height
|
|
502
|
-
};
|
|
503
|
-
});
|
|
504
|
-
function er() {
|
|
505
|
-
A.value.length ? A.value = [] : V.value.forEach((e) => {
|
|
506
|
-
A.value.push(e.id);
|
|
507
|
-
}), $n(), Tn("selectLegend", H.value);
|
|
508
|
-
}
|
|
509
|
-
async function Y(e) {
|
|
510
|
-
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e);
|
|
511
|
-
else {
|
|
512
|
-
if (A.value.length === V.value.length - 1) return;
|
|
513
|
-
A.value.push(e);
|
|
514
|
-
}
|
|
515
|
-
Tn("selectLegend", H.value), $n();
|
|
516
|
-
}
|
|
517
|
-
function tr(e) {
|
|
518
|
-
return V.value.length ? V.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null);
|
|
519
|
-
}
|
|
520
|
-
function nr(e) {
|
|
521
|
-
let t = tr(e);
|
|
522
|
-
t !== null && A.value.includes(t.id) && Y(t.id);
|
|
523
|
-
}
|
|
524
|
-
function rr(e) {
|
|
525
|
-
let t = tr(e);
|
|
526
|
-
t !== null && (A.value.includes(t.id) || Y(t.id));
|
|
527
|
-
}
|
|
528
|
-
let X = d(() => H.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
529
|
-
function ir(e, t = !1, r = 0) {
|
|
530
|
-
return t ? n({
|
|
531
|
-
v: l(Math.abs(e) / X.value * 100),
|
|
532
|
-
s: "%",
|
|
533
|
-
r
|
|
534
|
-
}) : Math.abs(e) / X.value;
|
|
535
|
-
}
|
|
536
|
-
let Z = d(() => U.value.map((e) => e.sign).includes(-1)), ar = d(() => Math.max(...H.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
|
|
537
|
-
function Q(e) {
|
|
538
|
-
let t = e / ar.value;
|
|
539
|
-
return l(J.value.width / (Z.value ? 2 : 1) * t);
|
|
540
|
-
}
|
|
541
|
-
function or(e) {
|
|
542
|
-
return Q(e) + J.value.left;
|
|
543
|
-
}
|
|
544
|
-
function sr(e, t) {
|
|
545
|
-
let n = H.value.find((t) => t.id === e.parentId);
|
|
546
|
-
return {
|
|
547
|
-
y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value - W.value + N.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 / X.value) ? "" : ir(n.value, !0, N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
555
|
-
sign: n.sign
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
function cr() {
|
|
559
|
-
return H.value;
|
|
560
|
-
}
|
|
561
|
-
function lr(e, t) {
|
|
562
|
-
return sr(e, t).name;
|
|
563
|
-
}
|
|
564
|
-
function ur(e, t) {
|
|
565
|
-
let n = sr(e, t);
|
|
566
|
-
return gr(n.value, n, t, e.parentSign || e.sign);
|
|
567
|
-
}
|
|
568
|
-
let dr = x(null), fr = x(null);
|
|
569
|
-
function pr({ datapoint: e, seriesIndex: t }) {
|
|
570
|
-
Tn("selectDatapoint", e), N.value.events.datapointClick && N.value.events.datapointClick({
|
|
571
|
-
datapoint: e,
|
|
572
|
-
seriesIndex: t
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
function mr({ datapoint: e, seriesIndex: t }) {
|
|
576
|
-
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
577
|
-
datapoint: e,
|
|
578
|
-
seriesIndex: t
|
|
579
|
-
}), nn.value = null, en.value = !1, dr.value = null, M.value === t && (M.value = null);
|
|
580
|
-
}
|
|
581
|
-
function hr(e, t, r = "pointer") {
|
|
582
|
-
wn.value = r, N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
583
|
-
datpoint: e,
|
|
584
|
-
seriesIndex: t
|
|
585
|
-
}), M.value = t, nn.value = e, fr.value = {
|
|
586
|
-
datapoint: e,
|
|
587
|
-
seriesIndex: t,
|
|
588
|
-
series: V.value,
|
|
589
|
-
config: N.value
|
|
590
|
-
}, en.value = !0, dr.value = e.id;
|
|
591
|
-
let i = "", a = e.isChild ? e.parentName : e.name, o = e.isChild ? e.name : "", s = N.value.style.chart.tooltip.customFormat;
|
|
592
|
-
ce(s) && se(() => s({
|
|
593
|
-
datapoint: e,
|
|
594
|
-
series: V.value,
|
|
595
|
-
config: N.value,
|
|
596
|
-
seriesIndex: t
|
|
597
|
-
})) ? tn.value = s({
|
|
598
|
-
datapoint: e,
|
|
599
|
-
series: V.value,
|
|
600
|
-
config: N.value,
|
|
601
|
-
seriesIndex: t
|
|
602
|
-
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.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}"/>${Qt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${O.value}_${e.absoluteIndex})"/>` : ""}</svg> ${a}</div>
|
|
604
|
-
${o ? `<div>${o}</div>` : ""}
|
|
605
|
-
</div>`, N.value.style.chart.tooltip.showValue && (i += `<div>${N.value.translations.value}: <b>${ae(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, n({
|
|
606
|
-
p: N.value.style.chart.tooltip.prefix,
|
|
607
|
-
v: e.sign === 1 ? e.value : -e.value,
|
|
608
|
-
s: N.value.style.chart.tooltip.suffix,
|
|
609
|
-
r: N.value.style.chart.tooltip.roundingValue
|
|
610
|
-
}), {
|
|
611
|
-
datapoint: e,
|
|
612
|
-
seriesIndex: t
|
|
613
|
-
})}</b></div>`), N.value.style.chart.tooltip.showPercentage && (i += `<div>${N.value.translations.percentageToTotal} : <b>${n({
|
|
614
|
-
v: Math.abs(e.value) / X.value * 100,
|
|
615
|
-
s: "%",
|
|
616
|
-
r: N.value.style.chart.tooltip.roundingPercentage
|
|
617
|
-
})}</b></div>`, e.isChild && (i += `<div>${N.value.translations.percentageToSerie}: <b>${n({
|
|
618
|
-
v: Math.abs(e.value) / Math.abs(e.parentValue) * 100,
|
|
619
|
-
s: "%",
|
|
620
|
-
r: N.value.style.chart.tooltip.roundingPercentage
|
|
621
|
-
})}</b></div>`)), tn.value = `<div style="text-align:left">${i}</div>`);
|
|
622
|
-
}
|
|
623
|
-
function gr(e, t, r, i) {
|
|
624
|
-
if (!N.value.style.chart.layout.bars.dataLabels.value.show) return "";
|
|
625
|
-
let a = ae(N.value.style.chart.layout.bars.dataLabels.value.formatter, l(i === -1 && e >= 0 ? -e : e), n({
|
|
626
|
-
p: N.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
627
|
-
v: l(i === -1 && e >= 0 ? -e : e),
|
|
628
|
-
s: N.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
629
|
-
r: N.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
630
|
-
}), {
|
|
631
|
-
datapoint: t,
|
|
632
|
-
seriesIndex: r
|
|
633
|
-
}), o = `(${ir(e, !0, N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
634
|
-
return `${a}${N.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${o}` : ""}`;
|
|
635
|
-
}
|
|
636
|
-
let $ = d(() => ({
|
|
637
|
-
head: [
|
|
638
|
-
N.value.translations.parentName,
|
|
639
|
-
N.value.translations.value,
|
|
640
|
-
N.value.translations.percentageToTotal,
|
|
641
|
-
N.value.translations.childName,
|
|
642
|
-
N.value.translations.value,
|
|
643
|
-
N.value.translations.percentageToSerie,
|
|
644
|
-
N.value.translations.percentageToTotal
|
|
645
|
-
],
|
|
646
|
-
body: U.value.map((e) => e.isChild ? e.isFirstChild ? {
|
|
647
|
-
color: e.color,
|
|
648
|
-
parentName: e.parentName,
|
|
649
|
-
parentValue: e.parentValue,
|
|
650
|
-
percentageToTotal: e.parentValue / X.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) / X.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) / X.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) / X.value,
|
|
669
|
-
childName: "",
|
|
670
|
-
childValue: "",
|
|
671
|
-
childPercentageToParent: "",
|
|
672
|
-
childPercentageToTotal: ""
|
|
673
|
-
})
|
|
674
|
-
}));
|
|
675
|
-
function _r(e = null) {
|
|
676
|
-
let t = [
|
|
677
|
-
[N.value.style.chart.title.text],
|
|
678
|
-
[N.value.style.chart.title.subtitle.text],
|
|
679
|
-
[""]
|
|
680
|
-
], n = $.value.head, r = $.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 = ee(t.concat([n]).concat(r));
|
|
689
|
-
e ? e(i) : a({
|
|
690
|
-
csvContent: i,
|
|
691
|
-
title: N.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
let vr = x(!1);
|
|
695
|
-
function yr(e) {
|
|
696
|
-
vr.value = e, rn.value += 1;
|
|
697
|
-
}
|
|
698
|
-
function br() {
|
|
699
|
-
B.value.showTable = !B.value.showTable;
|
|
700
|
-
}
|
|
701
|
-
Ve(() => {
|
|
702
|
-
[
|
|
703
|
-
"none",
|
|
704
|
-
"asc",
|
|
705
|
-
"desc"
|
|
706
|
-
].includes(N.value.style.chart.layout.bars.sort) || ne({
|
|
707
|
-
componentName: "VueUiVerticalBar",
|
|
708
|
-
type: "attributeWrongValue",
|
|
709
|
-
property: "style.chart.layout.bars.sort",
|
|
710
|
-
key: N.value.style.chart.layout.bars.sort
|
|
711
|
-
}), j.value = gn.value[N.value.style.chart.layout.bars.sort], B.value.sortDesc = j.value === 2, _n.value = j.value === 0;
|
|
712
|
-
});
|
|
713
|
-
function xr() {
|
|
714
|
-
j.value += 1, j.value > 2 && (j.value = 0);
|
|
715
|
-
}
|
|
716
|
-
function Sr() {
|
|
717
|
-
xr(), B.value.sortDesc = j.value === 2, _n.value = j.value === 0;
|
|
718
|
-
}
|
|
719
|
-
function Cr() {
|
|
720
|
-
B.value.showTooltip = !B.value.showTooltip;
|
|
721
|
-
}
|
|
722
|
-
let wr = x(!1);
|
|
723
|
-
function Tr() {
|
|
724
|
-
wr.value = !wr.value;
|
|
725
|
-
}
|
|
726
|
-
async function Er({ scale: e = 2 } = {}) {
|
|
727
|
-
if (!k.value) return;
|
|
728
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
729
|
-
domElement: k.value,
|
|
730
|
-
base64: !0,
|
|
731
|
-
img: !0,
|
|
732
|
-
scale: e
|
|
733
|
-
});
|
|
734
|
-
return {
|
|
735
|
-
imageUri: i,
|
|
736
|
-
base64: a,
|
|
737
|
-
title: N.value.style.chart.title.text,
|
|
738
|
-
width: t,
|
|
739
|
-
height: n,
|
|
740
|
-
aspectRatio: r
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
let Dr = d(() => {
|
|
744
|
-
let e = N.value.table.useDialog && !N.value.table.show, t = B.value.showTable;
|
|
745
|
-
return {
|
|
746
|
-
component: e ? Jt : Ee,
|
|
747
|
-
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
748
|
-
props: e ? {
|
|
749
|
-
backgroundColor: N.value.table.th.backgroundColor,
|
|
750
|
-
color: N.value.table.th.color,
|
|
751
|
-
headerColor: N.value.table.th.color,
|
|
752
|
-
headerBg: N.value.table.th.backgroundColor,
|
|
753
|
-
isFullscreen: vr.value,
|
|
754
|
-
fullscreenParent: k.value,
|
|
755
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
756
|
-
isCursorPointer: P.value
|
|
757
|
-
} : {
|
|
758
|
-
hideDetails: !0,
|
|
759
|
-
config: {
|
|
760
|
-
open: t,
|
|
761
|
-
maxHeight: 1e4,
|
|
762
|
-
body: {
|
|
763
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
764
|
-
color: N.value.style.chart.color
|
|
765
|
-
},
|
|
766
|
-
head: {
|
|
767
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
768
|
-
color: N.value.style.chart.color
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
|
-
});
|
|
774
|
-
Ke(() => B.value.showTable, (e) => {
|
|
775
|
-
N.value.table.show || (e && N.value.table.useDialog && fn.value ? fn.value.open() : "close" in fn.value && fn.value.close());
|
|
776
|
-
});
|
|
777
|
-
let { isResponsive: Or } = je(Hn, Un);
|
|
778
|
-
function kr() {
|
|
779
|
-
B.value.showTable = !1, pn.value && pn.value.setTableIconState(!1);
|
|
780
|
-
}
|
|
781
|
-
let Ar = d(() => V.value.map((e, t) => ({
|
|
782
|
-
...e,
|
|
783
|
-
shape: "square",
|
|
784
|
-
display: `${e.name}: ${ae(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, n({
|
|
785
|
-
p: N.value.style.chart.legend.prefix,
|
|
786
|
-
v: e.value,
|
|
787
|
-
s: N.value.style.chart.legend.suffix,
|
|
788
|
-
r: N.value.style.chart.legend.roundingValue
|
|
789
|
-
}), {
|
|
790
|
-
datapoint: e,
|
|
791
|
-
seriesIndex: t
|
|
792
|
-
})}`
|
|
793
|
-
}))), jr = d(() => N.value.style.chart.backgroundColor), Mr = d(() => N.value.style.chart.legend), { exportSvg: Nr, getSvg: Pr } = _e({
|
|
794
|
-
svg: Pn,
|
|
795
|
-
title: d(() => N.value.style.chart.title),
|
|
796
|
-
legend: Mr,
|
|
797
|
-
legendItems: d(() => Ar.value.map((e) => ({
|
|
798
|
-
...e,
|
|
799
|
-
name: e.display
|
|
800
|
-
}))),
|
|
801
|
-
backgroundColor: jr
|
|
802
|
-
});
|
|
803
|
-
async function Fr({ isCb: e }) {
|
|
804
|
-
Sn.value = !0, await ze();
|
|
805
|
-
try {
|
|
806
|
-
if (e) {
|
|
807
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Pr();
|
|
808
|
-
await Promise.resolve(N.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
|
-
Sn.value = !1;
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
function Ir(e) {
|
|
820
|
-
if (e?.stage === "start") {
|
|
821
|
-
xn.value = !0;
|
|
822
|
-
return;
|
|
823
|
-
}
|
|
824
|
-
if (e?.stage === "end") {
|
|
825
|
-
xn.value = !1;
|
|
826
|
-
return;
|
|
827
|
-
}
|
|
828
|
-
zn();
|
|
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 (Tn("copyAlt", {
|
|
835
|
-
config: N.value,
|
|
836
|
-
dataset: H.value
|
|
837
|
-
}), !N.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(N.value.userOptions.callbacks.altCopy({
|
|
842
|
-
config: N.value,
|
|
843
|
-
dataset: H.value
|
|
844
|
-
}));
|
|
845
|
-
}
|
|
846
|
-
let zr = x(!1);
|
|
847
|
-
function Br() {
|
|
848
|
-
M.value = null, zr.value = !0;
|
|
849
|
-
}
|
|
850
|
-
function Vr() {
|
|
851
|
-
M.value = null, en.value = !1, zr.value = !1;
|
|
852
|
-
}
|
|
853
|
-
function Hr() {
|
|
854
|
-
if (M.value === null) return;
|
|
855
|
-
let e = U.value[M.value];
|
|
856
|
-
e && mr({
|
|
857
|
-
datapoint: e,
|
|
858
|
-
seriesIndex: M.value
|
|
859
|
-
}), M.value = null, wn.value = "pointer";
|
|
860
|
-
}
|
|
861
|
-
function Ur(e) {
|
|
862
|
-
if (!Pn.value || wr.value || document.activeElement !== Pn.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 = U.value.length;
|
|
866
|
-
if (!a) return;
|
|
867
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
868
|
-
Hr();
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
if (r) {
|
|
872
|
-
if (M.value === null) return;
|
|
873
|
-
let e = U.value[M.value];
|
|
874
|
-
if (!e) return;
|
|
875
|
-
pr({
|
|
876
|
-
datapoint: e,
|
|
877
|
-
seriesIndex: M.value
|
|
878
|
-
});
|
|
879
|
-
return;
|
|
880
|
-
}
|
|
881
|
-
let o = M.value, s = nn.value ? U.value.findIndex((e) => e.id === nn.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 = U.value[o];
|
|
884
|
-
ee && (M.value = o, Wr(ee), hr(ee, o, "keyboard"));
|
|
885
|
-
}
|
|
886
|
-
function Wr(e) {
|
|
887
|
-
if (!e) return;
|
|
888
|
-
let t = J.value.right, n = J.value.top + (L.value + K.value) * e.absoluteIndex + G.value[e.absoluteIndex] * W.value;
|
|
889
|
-
if (!Number.isFinite(t) || !Number.isFinite(n)) return;
|
|
890
|
-
let r = i(t, n, Pn.value);
|
|
891
|
-
r && (Cn.value = r);
|
|
892
|
-
}
|
|
893
|
-
let Gr = d(() => ({
|
|
894
|
-
head: $.value.head,
|
|
895
|
-
body: $.value.body.map((e) => [
|
|
896
|
-
e.parentName,
|
|
897
|
-
e.parentValue === "" ? "" : n({
|
|
898
|
-
v: e.parentValue,
|
|
899
|
-
r: N.value.style.chart.layout.bars.dataLabels.value.roundingValue,
|
|
900
|
-
p: N.value.style.chart.layout.bars.dataLabels.prefix,
|
|
901
|
-
s: N.value.style.chart.layout.bars.dataLabels.suffix
|
|
902
|
-
}),
|
|
903
|
-
e.percentageToTotal === "" ? "" : n({
|
|
904
|
-
v: e.percentageToTotal * 100,
|
|
905
|
-
r: N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
906
|
-
s: "%"
|
|
907
|
-
}),
|
|
908
|
-
e.childName,
|
|
909
|
-
e.childValue === "" ? "" : n({
|
|
910
|
-
v: e.childValue,
|
|
911
|
-
r: N.value.style.chart.layout.bars.dataLabels.value.roundingValue,
|
|
912
|
-
p: N.value.style.chart.layout.bars.dataLabels.prefix,
|
|
913
|
-
s: N.value.style.chart.layout.bars.dataLabels.suffix
|
|
914
|
-
}),
|
|
915
|
-
e.childPercentageToParent === "" ? "" : n({
|
|
916
|
-
v: e.childPercentageToParent * 100,
|
|
917
|
-
r: N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
918
|
-
s: "%"
|
|
919
|
-
}),
|
|
920
|
-
e.childPercentageToTotal === "" ? "" : n({
|
|
921
|
-
v: e.childPercentageToTotal * 100,
|
|
922
|
-
r: N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
923
|
-
s: "%"
|
|
924
|
-
})
|
|
925
|
-
]),
|
|
926
|
-
caption: N.value.a11y.translations.tableCaption,
|
|
927
|
-
notice: N.value.a11y.translations.tableAvailable
|
|
928
|
-
}));
|
|
929
|
-
return Ce({
|
|
930
|
-
autoSize: Lr,
|
|
931
|
-
getData: cr,
|
|
932
|
-
getImage: Er,
|
|
933
|
-
generatePdf: Rn,
|
|
934
|
-
generateCsv: _r,
|
|
935
|
-
generateImage: zn,
|
|
936
|
-
generateSvg: Fr,
|
|
937
|
-
hideSeries: rr,
|
|
938
|
-
showSeries: nr,
|
|
939
|
-
toggleTable: br,
|
|
940
|
-
toggleSort: Sr,
|
|
941
|
-
toggleTooltip: Cr,
|
|
942
|
-
toggleAnnotator: Tr,
|
|
943
|
-
toggleFullscreen: yr,
|
|
944
|
-
copyAlt: Rr
|
|
945
|
-
}), (e, r) => (b(), m("div", {
|
|
946
|
-
class: _(`vue-data-ui-component vue-ui-vertical-bar ${vr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"} ${N.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
947
|
-
ref_key: "verticalBarChart",
|
|
948
|
-
ref: k,
|
|
949
|
-
id: `vue-ui-vertical-bar_${O.value}`,
|
|
950
|
-
style: y(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};height:100%`),
|
|
951
|
-
onMouseenter: r[3] ||= () => T(Mn)(!0),
|
|
952
|
-
onMouseleave: r[4] ||= () => T(Mn)(!1)
|
|
953
|
-
}, [
|
|
954
|
-
h("p", {
|
|
955
|
-
id: `chart-instructions-${O.value}`,
|
|
956
|
-
class: "sr-only"
|
|
957
|
-
}, w(N.value.a11y.translations.keyboardNavigation), 9, Xe),
|
|
958
|
-
Gr.value.body.length ? (b(), f(Oe, {
|
|
959
|
-
key: 0,
|
|
960
|
-
uid: O.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
|
-
])) : p("", !0),
|
|
972
|
-
N.value.userOptions.buttons.annotator ? (b(), f(T(Gt), {
|
|
973
|
-
key: 1,
|
|
974
|
-
svgRef: T(Pn),
|
|
975
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
976
|
-
color: N.value.style.chart.color,
|
|
977
|
-
active: wr.value,
|
|
978
|
-
isCursorPointer: P.value,
|
|
979
|
-
onClose: Tr
|
|
980
|
-
}, {
|
|
981
|
-
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
982
|
-
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
983
|
-
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
984
|
-
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
985
|
-
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
986
|
-
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
987
|
-
_: 3
|
|
988
|
-
}, 8, [
|
|
989
|
-
"svgRef",
|
|
990
|
-
"backgroundColor",
|
|
991
|
-
"color",
|
|
992
|
-
"active",
|
|
993
|
-
"isCursorPointer"
|
|
994
|
-
])) : p("", !0),
|
|
995
|
-
Bn.value ? (b(), m("div", {
|
|
996
|
-
key: 2,
|
|
997
|
-
ref_key: "noTitle",
|
|
998
|
-
ref: cn,
|
|
999
|
-
class: "vue-data-ui-no-title-space",
|
|
1000
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1001
|
-
}, null, 512)) : p("", !0),
|
|
1002
|
-
N.value.style.chart.title.text ? (b(), m("div", {
|
|
1003
|
-
key: 3,
|
|
1004
|
-
ref_key: "chartTitle",
|
|
1005
|
-
ref: an,
|
|
1006
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1007
|
-
}, [(b(), f(xe, {
|
|
1008
|
-
key: `title_${ln.value}`,
|
|
1009
|
-
config: {
|
|
1010
|
-
title: {
|
|
1011
|
-
cy: "vertical-bar-div-title",
|
|
1012
|
-
...N.value.style.chart.title
|
|
1013
|
-
},
|
|
1014
|
-
subtitle: {
|
|
1015
|
-
cy: "vertical-bar-div-subtitle",
|
|
1016
|
-
...N.value.style.chart.title.subtitle
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1020
|
-
N.value.userOptions.show && $t.value && (T(Nn) || T(jn)) ? (b(), f(T(Kt), {
|
|
1021
|
-
ref_key: "userOptionsRef",
|
|
1022
|
-
ref: pn,
|
|
1023
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1024
|
-
color: N.value.style.chart.color,
|
|
1025
|
-
key: `user_options_${rn.value}`,
|
|
1026
|
-
isImaging: T(Ln),
|
|
1027
|
-
isPrinting: T(In),
|
|
1028
|
-
uid: O.value,
|
|
1029
|
-
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
1030
|
-
hasPdf: N.value.userOptions.buttons.pdf,
|
|
1031
|
-
hasImg: N.value.userOptions.buttons.img,
|
|
1032
|
-
hasSvg: N.value.userOptions.buttons.svg,
|
|
1033
|
-
hasXls: N.value.userOptions.buttons.csv,
|
|
1034
|
-
hasTable: N.value.userOptions.buttons.table,
|
|
1035
|
-
hasSort: N.value.userOptions.buttons.sort,
|
|
1036
|
-
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1037
|
-
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1038
|
-
isFullscreen: vr.value,
|
|
1039
|
-
isTooltip: B.value.showTooltip,
|
|
1040
|
-
titles: { ...N.value.userOptions.buttonTitles },
|
|
1041
|
-
chartElement: k.value,
|
|
1042
|
-
position: N.value.userOptions.position,
|
|
1043
|
-
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1044
|
-
isAnnotation: wr.value,
|
|
1045
|
-
callbacks: N.value.userOptions.callbacks,
|
|
1046
|
-
printScale: N.value.userOptions.print.scale,
|
|
1047
|
-
tableDialog: N.value.table.useDialog,
|
|
1048
|
-
isCursorPointer: P.value,
|
|
1049
|
-
onToggleFullscreen: yr,
|
|
1050
|
-
onGeneratePdf: T(Rn),
|
|
1051
|
-
onGenerateCsv: _r,
|
|
1052
|
-
onGenerateImage: Ir,
|
|
1053
|
-
onGenerateSvg: Fr,
|
|
1054
|
-
onToggleTable: br,
|
|
1055
|
-
onToggleSort: Sr,
|
|
1056
|
-
onToggleTooltip: Cr,
|
|
1057
|
-
onToggleAnnotator: Tr,
|
|
1058
|
-
onCopyAlt: Rr,
|
|
1059
|
-
style: y({ visibility: T(Nn) ? T(jn) ? "visible" : "hidden" : "visible" })
|
|
1060
|
-
}, Pe({ _: 2 }, [
|
|
1061
|
-
e.$slots.menuIcon ? {
|
|
1062
|
-
name: "menuIcon",
|
|
1063
|
-
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
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: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1072
|
-
key: "1"
|
|
1073
|
-
} : void 0,
|
|
1074
|
-
e.$slots.optionPdf ? {
|
|
1075
|
-
name: "optionPdf",
|
|
1076
|
-
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1077
|
-
key: "2"
|
|
1078
|
-
} : void 0,
|
|
1079
|
-
e.$slots.optionCsv ? {
|
|
1080
|
-
name: "optionCsv",
|
|
1081
|
-
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1082
|
-
key: "3"
|
|
1083
|
-
} : void 0,
|
|
1084
|
-
e.$slots.optionImg ? {
|
|
1085
|
-
name: "optionImg",
|
|
1086
|
-
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1087
|
-
key: "4"
|
|
1088
|
-
} : void 0,
|
|
1089
|
-
e.$slots.optionSvg ? {
|
|
1090
|
-
name: "optionSvg",
|
|
1091
|
-
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1092
|
-
key: "5"
|
|
1093
|
-
} : void 0,
|
|
1094
|
-
e.$slots.optionTable ? {
|
|
1095
|
-
name: "optionTable",
|
|
1096
|
-
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1097
|
-
key: "6"
|
|
1098
|
-
} : void 0,
|
|
1099
|
-
e.$slots.optionLabels ? {
|
|
1100
|
-
name: "optionLabels",
|
|
1101
|
-
fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1102
|
-
key: "7"
|
|
1103
|
-
} : void 0,
|
|
1104
|
-
e.$slots.optionSort ? {
|
|
1105
|
-
name: "optionSort",
|
|
1106
|
-
fn: E(() => [C(e.$slots, "optionSort", {}, void 0, !0)]),
|
|
1107
|
-
key: "8"
|
|
1108
|
-
} : void 0,
|
|
1109
|
-
e.$slots.optionFullscreen ? {
|
|
1110
|
-
name: "optionFullscreen",
|
|
1111
|
-
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
|
|
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: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
|
|
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: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
1128
|
-
key: "11"
|
|
1129
|
-
} : void 0,
|
|
1130
|
-
e.$slots["custom-menu-before"] ? {
|
|
1131
|
-
name: "custom-menu-before",
|
|
1132
|
-
fn: E(() => [C(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: E(() => [C(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("."))) : p("", !0),
|
|
1141
|
-
N.value.style.chart.legend.show && N.value.style.chart.legend.position === "top" ? (b(), m("div", {
|
|
1142
|
-
key: 5,
|
|
1143
|
-
ref_key: "chartLegend",
|
|
1144
|
-
ref: on
|
|
1145
|
-
}, [(b(), f(Me, {
|
|
1146
|
-
key: `legend_top_${un.value}`,
|
|
1147
|
-
legendSet: V.value,
|
|
1148
|
-
config: Xn.value,
|
|
1149
|
-
onClickMarker: r[0] ||= ({ legend: e }) => Y(e.id)
|
|
1150
|
-
}, Pe({
|
|
1151
|
-
item: E(({ legend: e, index: t }) => [h("div", {
|
|
1152
|
-
onClick: (t) => Y(e.id),
|
|
1153
|
-
style: y(`opacity:${A.value.includes(e.id) ? .5 : 1}`)
|
|
1154
|
-
}, w(e.name) + ": " + w(T(ae)(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, T(n)({
|
|
1155
|
-
p: N.value.style.chart.legend.prefix,
|
|
1156
|
-
v: e.value,
|
|
1157
|
-
s: N.value.style.chart.legend.suffix,
|
|
1158
|
-
r: N.value.style.chart.legend.roundingValue
|
|
1159
|
-
}), {
|
|
1160
|
-
datapoint: e,
|
|
1161
|
-
seriesIndex: t
|
|
1162
|
-
})), 13, Ze)]),
|
|
1163
|
-
legendToggle: E(() => [V.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !T(On) ? (b(), f(De, {
|
|
1164
|
-
key: 0,
|
|
1165
|
-
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1166
|
-
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1167
|
-
fontSize: N.value.style.chart.legend.fontSize,
|
|
1168
|
-
checked: A.value.length > 0,
|
|
1169
|
-
onToggle: er
|
|
1170
|
-
}, null, 8, [
|
|
1171
|
-
"backgroundColor",
|
|
1172
|
-
"color",
|
|
1173
|
-
"fontSize",
|
|
1174
|
-
"checked"
|
|
1175
|
-
])) : p("", !0)]),
|
|
1176
|
-
_: 2
|
|
1177
|
-
}, [e.$slots.pattern ? {
|
|
1178
|
-
name: "legend-pattern",
|
|
1179
|
-
fn: E(({ legend: e, index: t }) => [Ie(Se, {
|
|
1180
|
-
shape: e.shape,
|
|
1181
|
-
radius: 30,
|
|
1182
|
-
stroke: "none",
|
|
1183
|
-
plot: {
|
|
1184
|
-
x: 30,
|
|
1185
|
-
y: 30
|
|
1186
|
-
},
|
|
1187
|
-
fill: `url(#pattern_${O.value}_${t})`
|
|
1188
|
-
}, null, 8, ["shape", "fill"])]),
|
|
1189
|
-
key: "0"
|
|
1190
|
-
} : void 0]), 1032, ["legendSet", "config"]))], 512)) : p("", !0),
|
|
1191
|
-
h("div", Qe, [(b(), m("svg", {
|
|
1192
|
-
ref_key: "svgRef",
|
|
1193
|
-
ref: Pn,
|
|
1194
|
-
xmlns: T(le),
|
|
1195
|
-
class: _({
|
|
1196
|
-
"vue-data-ui-fullscreen--on": vr.value,
|
|
1197
|
-
"vue-data-ui-fulscreen--off": !vr.value
|
|
1198
|
-
}),
|
|
1199
|
-
viewBox: `0 0 ${F.value} ${I.value}`,
|
|
1200
|
-
style: y(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
|
|
1201
|
-
tabindex: "0",
|
|
1202
|
-
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1203
|
-
onFocus: Br,
|
|
1204
|
-
onBlur: Vr,
|
|
1205
|
-
onKeydown: Ur
|
|
1206
|
-
}, [h("g", {
|
|
1207
|
-
ref_key: "G",
|
|
1208
|
-
ref: dn,
|
|
1209
|
-
class: "vue-data-ui-g"
|
|
1210
|
-
}, [
|
|
1211
|
-
Ie(T(qt)),
|
|
1212
|
-
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1213
|
-
key: 0,
|
|
1214
|
-
x: 0,
|
|
1215
|
-
y: 0,
|
|
1216
|
-
width: F.value,
|
|
1217
|
-
height: I.value,
|
|
1218
|
-
style: { pointerEvents: "none" }
|
|
1219
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : p("", !0),
|
|
1220
|
-
(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("linearGradient", {
|
|
1221
|
-
x1: "0%",
|
|
1222
|
-
y1: "0%",
|
|
1223
|
-
x2: "100%",
|
|
1224
|
-
y2: "0%",
|
|
1225
|
-
id: `vertical_bar_gradient_${O.value}_${t}`
|
|
1226
|
-
}, [h("stop", {
|
|
1227
|
-
offset: "0%",
|
|
1228
|
-
"stop-color": e.color
|
|
1229
|
-
}, null, 8, nt), h("stop", {
|
|
1230
|
-
offset: "100%",
|
|
1231
|
-
"stop-color": T(oe)(T(s)(e.color, .03), 100 - N.value.style.chart.layout.bars.gradientIntensity)
|
|
1232
|
-
}, null, 8, rt)], 8, tt))), 256)),
|
|
1233
|
-
e.$slots.pattern ? (b(), m("g", it, [(b(!0), m(u, null, S(U.value, (t) => (b(), m("defs", null, [C(e.$slots, "pattern", Re({ ref_for: !0 }, {
|
|
1234
|
-
seriesIndex: t.absoluteIndex,
|
|
1235
|
-
patternId: `pattern_${O.value}_${t.absoluteIndex}`
|
|
1236
|
-
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
1237
|
-
N.value.style.chart.layout.bars.rowColor ? (b(!0), m(u, { key: 2 }, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1238
|
-
x: 0,
|
|
1239
|
-
y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value,
|
|
1240
|
-
width: F.value,
|
|
1241
|
-
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1242
|
-
fill: N.value.style.chart.layout.bars.rowColor,
|
|
1243
|
-
rx: N.value.style.chart.layout.bars.rowRadius,
|
|
1244
|
-
style: { pointerEvents: "none" }
|
|
1245
|
-
}, null, 8, at)]))), 256)) : p("", !0),
|
|
1246
|
-
(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1247
|
-
x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (e.sign === 1 ? 0 : Q(e.value) <= 0 ? 1e-4 : Q(e.value)) : J.value.left),
|
|
1248
|
-
y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value,
|
|
1249
|
-
width: T(l)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
|
|
1250
|
-
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1251
|
-
fill: N.value.style.chart.layout.bars.underlayerColor,
|
|
1252
|
-
rx: N.value.style.chart.layout.bars.borderRadius,
|
|
1253
|
-
class: _({ animated: N.value.useCssAnimation })
|
|
1254
|
-
}, null, 10, ot)]))), 256)),
|
|
1255
|
-
(b(!0), m(u, null, S(U.value, (t, n) => (b(), m("g", null, [
|
|
1256
|
-
h("rect", {
|
|
1257
|
-
x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : J.value.left),
|
|
1258
|
-
y: J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1259
|
-
width: T(l)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1260
|
-
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1261
|
-
fill: N.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${O.value}_${n})` : T(oe)(t.color, N.value.style.chart.layout.bars.fillOpacity),
|
|
1262
|
-
rx: N.value.style.chart.layout.bars.borderRadius,
|
|
1263
|
-
stroke: N.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1264
|
-
"stroke-width": N.value.style.chart.layout.bars.useStroke ? N.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1265
|
-
class: _({ animated: N.value.useCssAnimation })
|
|
1266
|
-
}, null, 10, st),
|
|
1267
|
-
e.$slots.pattern ? (b(), m("rect", {
|
|
1268
|
-
key: 0,
|
|
1269
|
-
x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : J.value.left),
|
|
1270
|
-
y: J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1271
|
-
width: T(l)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1272
|
-
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1273
|
-
fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
|
|
1274
|
-
rx: N.value.style.chart.layout.bars.borderRadius,
|
|
1275
|
-
stroke: N.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1276
|
-
"stroke-width": N.value.style.chart.layout.bars.useStroke ? N.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1277
|
-
class: _({ animated: N.value.useCssAnimation })
|
|
1278
|
-
}, null, 10, ct)) : p("", !0),
|
|
1279
|
-
(!t.isChild || t.isLastChild) && N.value.style.chart.layout.separators.show && n !== U.value.length - 1 ? (b(), m("line", {
|
|
1280
|
-
key: 1,
|
|
1281
|
-
x1: F.value,
|
|
1282
|
-
x2: N.value.style.chart.layout.separators.fullWidth ? 0 : J.value.left,
|
|
1283
|
-
y1: K.value + L.value / 2 + J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1284
|
-
y2: K.value + L.value / 2 + J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1285
|
-
stroke: N.value.style.chart.layout.separators.color,
|
|
1286
|
-
"stroke-width": N.value.style.chart.layout.separators.strokeWidth,
|
|
1287
|
-
"stroke-linecap": "round",
|
|
1288
|
-
style: {
|
|
1289
|
-
transition: "none !important",
|
|
1290
|
-
animation: "none !important"
|
|
1291
|
-
}
|
|
1292
|
-
}, null, 8, lt)) : p("", !0),
|
|
1293
|
-
Z.value && N.value.style.chart.layout.separators.show ? (b(), m("line", {
|
|
1294
|
-
key: 2,
|
|
1295
|
-
x1: J.value.left + J.value.width / 2,
|
|
1296
|
-
x2: J.value.left + J.value.width / 2,
|
|
1297
|
-
y1: J.value.top,
|
|
1298
|
-
y2: J.value.bottom,
|
|
1299
|
-
stroke: N.value.style.chart.layout.separators.color,
|
|
1300
|
-
"stroke-width": N.value.style.chart.layout.separators.strokeWidth,
|
|
1301
|
-
"stroke-linecap": "round"
|
|
1302
|
-
}, null, 8, ut)) : p("", !0)
|
|
1303
|
-
]))), 256)),
|
|
1304
|
-
h("g", {
|
|
1305
|
-
ref_key: "parentLabels",
|
|
1306
|
-
ref: mn
|
|
1307
|
-
}, [(b(!0), m(u, null, S(U.value, (e, n) => (b(), m("g", dt, [
|
|
1308
|
-
e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("rect", {
|
|
1309
|
-
key: 0,
|
|
1310
|
-
class: "vue-ui-horizontal-bar-parent-marker",
|
|
1311
|
-
x: 2,
|
|
1312
|
-
y: sr(e, n).y - N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1313
|
-
height: N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1314
|
-
width: N.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, ft)) : p("", !0),
|
|
1322
|
-
e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("text", {
|
|
1323
|
-
key: 1,
|
|
1324
|
-
y: sr(e, n).y,
|
|
1325
|
-
"font-size": N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1326
|
-
fill: N.value.style.chart.layout.bars.parentLabels.color,
|
|
1327
|
-
x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1328
|
-
"font-weight": N.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
1329
|
-
"text-anchor": "start",
|
|
1330
|
-
innerHTML: T(t)({
|
|
1331
|
-
content: `${lr(e, n)}`,
|
|
1332
|
-
fontSize: N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1333
|
-
fill: N.value.style.chart.layout.bars.parentLabels.color,
|
|
1334
|
-
x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1335
|
-
y: sr(e, n).y,
|
|
1336
|
-
translateY: !1
|
|
1337
|
-
})
|
|
1338
|
-
}, null, 8, pt)) : p("", !0),
|
|
1339
|
-
e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("text", {
|
|
1340
|
-
key: 2,
|
|
1341
|
-
y: sr(e, n).y + T(re)(lr(e, n)) * N.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
|
|
1342
|
-
"font-size": N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1343
|
-
fill: N.value.style.chart.layout.bars.parentLabels.color,
|
|
1344
|
-
x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1345
|
-
"font-weight": N.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1346
|
-
"text-anchor": "start"
|
|
1347
|
-
}, w(ur(e, n)), 9, mt)) : p("", !0)
|
|
1348
|
-
]))), 256))], 512),
|
|
1349
|
-
h("g", {
|
|
1350
|
-
ref_key: "childLabels",
|
|
1351
|
-
ref: hn
|
|
1352
|
-
}, [(b(!0), m(u, null, S(Jn.value, (e, n) => (b(), m("g", ht, [(e.isChild || !e.hasChildren) && N.value.style.chart.layout.bars.nameLabels.show ? (b(), m("text", {
|
|
1353
|
-
key: 0,
|
|
1354
|
-
"text-anchor": "start",
|
|
1355
|
-
x: Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1356
|
-
y: T(l)(J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 2 + G.value[n] * W.value),
|
|
1357
|
-
"font-size": N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1358
|
-
fill: "transparent",
|
|
1359
|
-
"font-weight": N.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1360
|
-
style: { "user-select": "none" },
|
|
1361
|
-
innerHTML: T(t)({
|
|
1362
|
-
content: e.name,
|
|
1363
|
-
fontSize: N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1364
|
-
fill: "transparent",
|
|
1365
|
-
x: Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1366
|
-
y: T(l)(J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 2 + G.value[n] * W.value),
|
|
1367
|
-
translateY: !0
|
|
1368
|
-
})
|
|
1369
|
-
}, null, 8, gt)) : p("", !0)]))), 256))], 512),
|
|
1370
|
-
h("g", null, [(b(!0), m(u, null, S(U.value, (e, n) => (b(), m("g", _t, [(e.isChild || !e.hasChildren) && N.value.style.chart.layout.bars.nameLabels.show ? (b(), m("text", {
|
|
1371
|
-
key: 0,
|
|
1372
|
-
"text-anchor": "end",
|
|
1373
|
-
x: J.value.left + N.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1374
|
-
y: J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 3 + G.value[n] * W.value,
|
|
1375
|
-
"font-size": N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1376
|
-
fill: N.value.style.chart.layout.bars.nameLabels.color,
|
|
1377
|
-
"font-weight": N.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1378
|
-
innerHTML: T(t)({
|
|
1379
|
-
content: e.name,
|
|
1380
|
-
fontSize: N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1381
|
-
fill: N.value.style.chart.layout.bars.nameLabels.color,
|
|
1382
|
-
x: J.value.left + N.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1383
|
-
y: J.value.top + (L.value + K.value) * n + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 3 + G.value[n] * W.value,
|
|
1384
|
-
translateY: !0
|
|
1385
|
-
})
|
|
1386
|
-
}, null, 8, vt)) : p("", !0)]))), 256))]),
|
|
1387
|
-
h("g", {
|
|
1388
|
-
ref_key: "dataLabels",
|
|
1389
|
-
ref: bn
|
|
1390
|
-
}, [(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", yt, [h("text", {
|
|
1391
|
-
x: Z.value ? J.value.left + J.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -N.value.style.chart.layout.bars.dataLabels.offsetX : N.value.style.chart.layout.bars.dataLabels.offsetX) : Math.min(or(e.value) + 3 + N.value.style.chart.layout.bars.dataLabels.offsetX, J.value.right - 2),
|
|
1392
|
-
y: J.value.top + (L.value + K.value) * t + K.value / 2 + G.value[t] * W.value + N.value.style.chart.layout.bars.dataLabels.fontSize / 3,
|
|
1393
|
-
"text-anchor": !Z.value || e.sign === -1 ? "start" : "end",
|
|
1394
|
-
"font-size": N.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1395
|
-
fill: N.value.style.chart.layout.bars.dataLabels.color,
|
|
1396
|
-
"font-weight": N.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1397
|
-
}, w(gr(e.value, e, t, e.sign)), 9, bt)]))), 256))], 512),
|
|
1398
|
-
(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1399
|
-
x: 0,
|
|
1400
|
-
y: J.value.top + (L.value + K.value) * t - L.value / 2 + G.value[t] * W.value,
|
|
1401
|
-
width: F.value,
|
|
1402
|
-
height: K.value + L.value <= 0 ? 1e-4 : K.value + L.value,
|
|
1403
|
-
fill: dr.value === e.id ? T(oe)(N.value.style.chart.layout.highlighter.color, N.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
1404
|
-
onMouseenter: (n) => hr(e, t, "pointer"),
|
|
1405
|
-
onMouseleave: (n) => mr({
|
|
1406
|
-
datapoint: e,
|
|
1407
|
-
seriesIndex: t
|
|
1408
|
-
}),
|
|
1409
|
-
onClick: (n) => pr({
|
|
1410
|
-
datapoint: e,
|
|
1411
|
-
seriesIndex: t
|
|
1412
|
-
})
|
|
1413
|
-
}, null, 40, xt)]))), 256)),
|
|
1414
|
-
C(e.$slots, "svg", { svg: {
|
|
1415
|
-
...q.value,
|
|
1416
|
-
drawingArea: J.value,
|
|
1417
|
-
isPrintingImg: T(In) || T(Ln) || xn.value,
|
|
1418
|
-
isPrintingSvg: Sn.value
|
|
1419
|
-
} }, void 0, !0)
|
|
1420
|
-
], 512)], 46, $e)), e.$slots.hint ? (b(), m("div", St, [C(e.$slots, "hint", v(g({
|
|
1421
|
-
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1422
|
-
isVisible: zr.value
|
|
1423
|
-
})), void 0, !0)])) : p("", !0)]),
|
|
1424
|
-
e.$slots.watermark ? (b(), m("div", Ct, [C(e.$slots, "watermark", v(g({ isPrinting: T(In) || T(Ln) || xn.value || Sn.value })), void 0, !0)])) : p("", !0),
|
|
1425
|
-
N.value.style.chart.legend.show && N.value.style.chart.legend.position === "bottom" ? (b(), m("div", {
|
|
1426
|
-
key: 7,
|
|
1427
|
-
ref_key: "chartLegend",
|
|
1428
|
-
ref: on
|
|
1429
|
-
}, [(b(), f(Me, {
|
|
1430
|
-
key: `legend_bottom_${un.value}`,
|
|
1431
|
-
legendSet: V.value,
|
|
1432
|
-
config: Xn.value,
|
|
1433
|
-
isCursorPointer: P.value,
|
|
1434
|
-
onClickMarker: r[1] ||= ({ legend: e }) => Y(e.id)
|
|
1435
|
-
}, Pe({
|
|
1436
|
-
item: E(({ legend: e, index: t }) => [h("div", {
|
|
1437
|
-
onClick: (t) => Y(e.id),
|
|
1438
|
-
style: y(`opacity:${A.value.includes(e.id) ? .5 : 1}`)
|
|
1439
|
-
}, w(e.name) + ": " + w(T(ae)(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, T(n)({
|
|
1440
|
-
p: N.value.style.chart.legend.prefix,
|
|
1441
|
-
v: e.value,
|
|
1442
|
-
s: N.value.style.chart.legend.suffix,
|
|
1443
|
-
r: N.value.style.chart.legend.roundingValue
|
|
1444
|
-
}), {
|
|
1445
|
-
datapoint: e,
|
|
1446
|
-
seriesIndex: t
|
|
1447
|
-
})), 13, wt)]),
|
|
1448
|
-
legendToggle: E(() => [V.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !T(On) ? (b(), f(De, {
|
|
1449
|
-
key: 0,
|
|
1450
|
-
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1451
|
-
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1452
|
-
fontSize: N.value.style.chart.legend.fontSize,
|
|
1453
|
-
checked: A.value.length > 0,
|
|
1454
|
-
isCursorPointer: P.value,
|
|
1455
|
-
onToggle: er
|
|
1456
|
-
}, null, 8, [
|
|
1457
|
-
"backgroundColor",
|
|
1458
|
-
"color",
|
|
1459
|
-
"fontSize",
|
|
1460
|
-
"checked",
|
|
1461
|
-
"isCursorPointer"
|
|
1462
|
-
])) : p("", !0)]),
|
|
1463
|
-
_: 2
|
|
1464
|
-
}, [e.$slots.pattern ? {
|
|
1465
|
-
name: "legend-pattern",
|
|
1466
|
-
fn: E(({ legend: e, index: t }) => [Ie(Se, {
|
|
1467
|
-
shape: e.shape,
|
|
1468
|
-
radius: 30,
|
|
1469
|
-
stroke: "none",
|
|
1470
|
-
plot: {
|
|
1471
|
-
x: 30,
|
|
1472
|
-
y: 30
|
|
1473
|
-
},
|
|
1474
|
-
fill: `url(#pattern_${O.value}_${t})`
|
|
1475
|
-
}, null, 8, ["shape", "fill"])]),
|
|
1476
|
-
key: "0"
|
|
1477
|
-
} : void 0]), 1032, [
|
|
1478
|
-
"legendSet",
|
|
1479
|
-
"config",
|
|
1480
|
-
"isCursorPointer"
|
|
1481
|
-
]))], 512)) : p("", !0),
|
|
1482
|
-
C(e.$slots, "legend", { legend: V.value }, void 0, !0),
|
|
1483
|
-
e.$slots.source ? (b(), m("div", {
|
|
1484
|
-
key: 8,
|
|
1485
|
-
ref_key: "source",
|
|
1486
|
-
ref: sn,
|
|
1487
|
-
dir: "auto"
|
|
1488
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1489
|
-
Ie(T(Ut), {
|
|
1490
|
-
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1491
|
-
show: B.value.showTooltip && en.value && A.value.length < D.dataset.length,
|
|
1492
|
-
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
1493
|
-
color: N.value.style.chart.tooltip.color,
|
|
1494
|
-
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
1495
|
-
borderColor: N.value.style.chart.tooltip.borderColor,
|
|
1496
|
-
borderWidth: N.value.style.chart.tooltip.borderWidth,
|
|
1497
|
-
fontSize: N.value.style.chart.tooltip.fontSize,
|
|
1498
|
-
backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
|
|
1499
|
-
position: N.value.style.chart.tooltip.position,
|
|
1500
|
-
offsetX: N.value.style.chart.tooltip.offsetX,
|
|
1501
|
-
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
1502
|
-
parent: k.value,
|
|
1503
|
-
content: tn.value,
|
|
1504
|
-
isFullscreen: vr.value,
|
|
1505
|
-
isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
|
|
1506
|
-
smooth: N.value.style.chart.tooltip.smooth,
|
|
1507
|
-
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
1508
|
-
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
1509
|
-
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1510
|
-
isA11yMode: wn.value === "keyboard",
|
|
1511
|
-
a11yPosition: Cn.value
|
|
1512
|
-
}, {
|
|
1513
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...fr.value })), void 0, !0)]),
|
|
1514
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...fr.value })), void 0, !0)]),
|
|
1515
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...fr.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
|
-
$t.value && N.value.userOptions.buttons.table ? (b(), f(He(Dr.value.component), Re({ key: 9 }, Dr.value.props, {
|
|
1542
|
-
ref_key: "tableUnit",
|
|
1543
|
-
ref: fn,
|
|
1544
|
-
onClose: kr
|
|
1545
|
-
}), Pe({
|
|
1546
|
-
content: E(() => [h("div", {
|
|
1547
|
-
ref_key: "tableContainer",
|
|
1548
|
-
ref: Hn,
|
|
1549
|
-
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1550
|
-
style: y(`${N.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1551
|
-
}, [h("div", Tt, [N.value.table.useDialog ? p("", !0) : (b(), m("div", {
|
|
1552
|
-
key: 0,
|
|
1553
|
-
role: "button",
|
|
1554
|
-
tabindex: "0",
|
|
1555
|
-
style: y(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${P.value ? "pointer" : "default"}; background:${N.value.table.th.backgroundColor};`),
|
|
1556
|
-
onClick: kr,
|
|
1557
|
-
onKeypress: qe(kr, ["enter"])
|
|
1558
|
-
}, [Ie(T(Wt), {
|
|
1559
|
-
name: "close",
|
|
1560
|
-
stroke: N.value.table.th.color,
|
|
1561
|
-
"stroke-width": 2
|
|
1562
|
-
}, null, 8, ["stroke"])], 36)), h("div", {
|
|
1563
|
-
style: {
|
|
1564
|
-
width: "100%",
|
|
1565
|
-
"container-type": "inline-size"
|
|
1566
|
-
},
|
|
1567
|
-
class: _({ "vue-ui-responsive": T(Or) })
|
|
1568
|
-
}, [h("table", Et, [
|
|
1569
|
-
N.value.table.useDialog ? p("", !0) : (b(), m("caption", {
|
|
1570
|
-
key: 0,
|
|
1571
|
-
style: y({
|
|
1572
|
-
backgroundColor: N.value.table.th.backgroundColor,
|
|
1573
|
-
color: N.value.table.th.color,
|
|
1574
|
-
outline: N.value.table.th.outline
|
|
1575
|
-
}),
|
|
1576
|
-
class: "vue-ui-data-table__caption"
|
|
1577
|
-
}, [Fe(w(N.value.style.chart.title.text) + " ", 1), N.value.style.chart.title.subtitle.text ? (b(), m("span", Dt, w(N.value.style.chart.title.subtitle.text), 1)) : p("", !0)], 4)),
|
|
1578
|
-
h("thead", null, [h("tr", {
|
|
1579
|
-
role: "row",
|
|
1580
|
-
style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color}`)
|
|
1581
|
-
}, [(b(!0), m(u, null, S($.value.head, (e) => (b(), m("th", { style: y(`outline:${N.value.table.th.outline}`) }, [h("div", Ot, w(e), 1)], 4))), 256))], 4), h("tr", null, [
|
|
1582
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1583
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + w(N.value.table.td.prefix) + w(isNaN(X.value) ? "" : X.value.toFixed(N.value.table.td.roundingValue)) + w(N.value.table.td.suffix), 5),
|
|
1584
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
|
|
1585
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1586
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1587
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1588
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4)
|
|
1589
|
-
])]),
|
|
1590
|
-
h("tbody", null, [(b(!0), m(u, null, S($.value.body, (e, t) => (b(), m("tr", {
|
|
1591
|
-
class: _({
|
|
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: y(`background:${N.value.table.td.backgroundColor};color:${N.value.table.td.color}`)
|
|
1597
|
-
}, [
|
|
1598
|
-
h("td", {
|
|
1599
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1600
|
-
style: y(`outline:${N.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1601
|
-
"data-cell": $.value.head[0] ?? ""
|
|
1602
|
-
}, [h("div", At, [e.color ? (b(), m("span", {
|
|
1603
|
-
key: 0,
|
|
1604
|
-
style: y(`color:${e.color};margin-right:3px`)
|
|
1605
|
-
}, "⬤", 4)) : p("", !0), h("span", null, w(e.parentName), 1)])], 12, kt),
|
|
1606
|
-
h("td", {
|
|
1607
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1608
|
-
style: y(`outline:${N.value.table.td.outline}`),
|
|
1609
|
-
"data-cell": $.value.head[1] ?? ""
|
|
1610
|
-
}, [h("div", Mt, w(N.value.table.td.prefix) + w([
|
|
1611
|
-
"",
|
|
1612
|
-
NaN,
|
|
1613
|
-
void 0
|
|
1614
|
-
].includes(e.parentValue) ? "" : e.parentValue.toFixed(N.value.table.td.roundingValue)) + w(N.value.table.td.suffix), 1)], 12, jt),
|
|
1615
|
-
h("td", {
|
|
1616
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1617
|
-
style: y(`outline:${N.value.table.td.outline}`),
|
|
1618
|
-
"data-cell": $.value.head[2] ?? ""
|
|
1619
|
-
}, [h("div", Pt, w([
|
|
1620
|
-
"",
|
|
1621
|
-
NaN,
|
|
1622
|
-
void 0
|
|
1623
|
-
].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(N.value.table.td.roundingPercentage)}%`), 1)], 12, Nt),
|
|
1624
|
-
h("td", {
|
|
1625
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1626
|
-
style: y(`outline:${N.value.table.td.outline}`),
|
|
1627
|
-
"data-cell": $.value.head[3] ?? ""
|
|
1628
|
-
}, [h("div", It, w(e.childName), 1)], 12, Ft),
|
|
1629
|
-
h("td", {
|
|
1630
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1631
|
-
style: y(`outline:${N.value.table.td.outline}`),
|
|
1632
|
-
"data-cell": $.value.head[4] ?? ""
|
|
1633
|
-
}, [h("div", Rt, w(N.value.table.td.prefix) + w([
|
|
1634
|
-
"",
|
|
1635
|
-
NaN,
|
|
1636
|
-
void 0
|
|
1637
|
-
].includes(e.childValue) ? "" : e.childValue.toFixed(N.value.table.td.roundingValue)) + w(N.value.table.td.suffix), 1)], 12, Lt),
|
|
1638
|
-
h("td", {
|
|
1639
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1640
|
-
style: y(`outline:${N.value.table.td.outline}`),
|
|
1641
|
-
"data-cell": $.value.head[5] ?? ""
|
|
1642
|
-
}, [h("div", Bt, w([
|
|
1643
|
-
"",
|
|
1644
|
-
NaN,
|
|
1645
|
-
void 0
|
|
1646
|
-
].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(N.value.table.td.roundingPercentage)}%`), 1)], 12, zt),
|
|
1647
|
-
h("td", {
|
|
1648
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1649
|
-
style: y(`outline:${N.value.table.td.outline}`),
|
|
1650
|
-
"data-cell": $.value.head[6] ?? ""
|
|
1651
|
-
}, [h("div", Ht, w([
|
|
1652
|
-
"",
|
|
1653
|
-
NaN,
|
|
1654
|
-
void 0
|
|
1655
|
-
].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(N.value.table.td.roundingPercentage)}%`), 1)], 12, Vt)
|
|
1656
|
-
], 6))), 256))])
|
|
1657
|
-
])], 2)])], 4)]),
|
|
1658
|
-
_: 2
|
|
1659
|
-
}, [N.value.table.useDialog ? {
|
|
1660
|
-
name: "title",
|
|
1661
|
-
fn: E(() => [Fe(w(Dr.value.title), 1)]),
|
|
1662
|
-
key: "0"
|
|
1663
|
-
} : void 0, N.value.table.useDialog ? {
|
|
1664
|
-
name: "actions",
|
|
1665
|
-
fn: E(() => [h("button", {
|
|
1666
|
-
tabindex: "0",
|
|
1667
|
-
class: "vue-ui-user-options-button",
|
|
1668
|
-
onClick: r[2] ||= (e) => _r(N.value.userOptions.callbacks.csv),
|
|
1669
|
-
style: y({ cursor: P.value ? "pointer" : "default" })
|
|
1670
|
-
}, [Ie(T(Wt), {
|
|
1671
|
-
name: "fileCsv",
|
|
1672
|
-
stroke: Dr.value.props.color
|
|
1673
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1674
|
-
key: "1"
|
|
1675
|
-
} : void 0]), 1040)) : p("", !0),
|
|
1676
|
-
C(e.$slots, "skeleton", {}, () => [T(On) ? (b(), f(ge, { key: 0 })) : p("", !0)], !0)
|
|
1677
|
-
], 46, Ye));
|
|
1678
|
-
}
|
|
1679
|
-
}, [["__scopeId", "data-v-ce41ffa2"]]);
|
|
1680
|
-
//#endregion
|
|
1681
|
-
export { Je as n, Ut as t };
|