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