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