vue-data-ui 3.17.13 → 3.18.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 +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.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-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.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-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.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 +4766 -630
- 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-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.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-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.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-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.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
|
@@ -1,2608 +0,0 @@
|
|
|
1
|
-
import { computed as m, defineAsyncComponent as Me, useSlots as aa, shallowRef as Ie, ref as b, onMounted as vl, onBeforeUnmount as dl, toRefs as oa, watch as je, openBlock as u, createElementBlock as i, normalizeStyle as L, normalizeClass as qt, createElementVNode as w, toDisplayString as ye, createBlock as ge, createCommentVNode as d, unref as s, withCtx as _, renderSlot as k, normalizeProps as W, guardReactiveProps as j, createSlots as Wt, createVNode as Tt, Fragment as P, renderList as J, mergeProps as jt, withDirectives as Pt, vShow as St, Teleport as na, resolveDynamicComponent as sa, createTextVNode as hl, nextTick as fl } from "vue";
|
|
2
|
-
import { o as yl, q as Kt, r as ua, j as ra, t as gl, n as ia, p as Re, K as ca, s as pl, k as pe, l as ve, a4 as ml, ax as va, X as da, u as Lt, v as ha, a5 as fa, ae as X, G as bl, a6 as we, a7 as A, as as wl, C as ya, m as ga, a0 as pa, a1 as ma, T as ba, ay as kl, ai as xl } from "./lib-DMzrGQHK.js";
|
|
3
|
-
import { f as wa, b as ka } from "./labelUtils-DX9oyq3C.js";
|
|
4
|
-
import { t as xa, u as $a } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Ca } from "./useConfig-CG4HT3wS.js";
|
|
6
|
-
import { u as _a } from "./usePrinter-C4t8DdQ-.js";
|
|
7
|
-
import { u as Aa, B as Ta } from "./BaseScanner-C2j3TsSY.js";
|
|
8
|
-
import { u as Pa } from "./useSvgExport-BTG4hVPO.js";
|
|
9
|
-
import { u as Qt } from "./useNestedProp-DH0BEVVS.js";
|
|
10
|
-
import { u as Sa } from "./useThemeCheck-C9Ccl7U9.js";
|
|
11
|
-
import { u as La } from "./useUserOptionState-B7Ej974k.js";
|
|
12
|
-
import { u as Ma } from "./useChartAccessibility-cp6XQtqi.js";
|
|
13
|
-
import Ia from "./img-CjTQXS0U.js";
|
|
14
|
-
import { _ as Fa } from "./Shape-CxJ5_Rre.js";
|
|
15
|
-
import za from "./Title-BbKoiBk2.js";
|
|
16
|
-
import Oa from "./vue_ui_donut-CA4dgV8J.js";
|
|
17
|
-
import Ya from "./Legend-DGN5lY60.js";
|
|
18
|
-
import { A as Da } from "./A11yDataTable-BpmuNomI.js";
|
|
19
|
-
import { B as Ba } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
20
|
-
import { _ as Xa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
|
-
function Na(it) {
|
|
22
|
-
const {
|
|
23
|
-
FINAL_CONFIG: ct,
|
|
24
|
-
noGhostDonut: Mt,
|
|
25
|
-
svg: Ke,
|
|
26
|
-
padding: vt,
|
|
27
|
-
labels_inline_fontSize: It,
|
|
28
|
-
minSize: dt,
|
|
29
|
-
findArcMidpoint: Ft,
|
|
30
|
-
calcMarkerOffsetX: zt,
|
|
31
|
-
calcMarkerOffsetY: Ot,
|
|
32
|
-
animatingIndex: Yt,
|
|
33
|
-
segregated: Dt,
|
|
34
|
-
isSmallArc: Bt
|
|
35
|
-
} = it;
|
|
36
|
-
return { smallArcLayoutsClassic: m(() => {
|
|
37
|
-
if (ct.value.type !== "classic") return {};
|
|
38
|
-
const Qe = {}, E = Mt.value || [];
|
|
39
|
-
if (!E.length) return Qe;
|
|
40
|
-
const B = Ke.value.width / 2, M = Ke.value.height / 2, Fe = vt.value.top + 16, ht = Ke.value.height - vt.value.bottom - 16, Je = It.value, ft = Je / 3, yt = Je * 1.5, ne = 8, me = 6, Ze = B - (dt.value + me), et = B + (dt.value + me), gt = !!ct.value.style.chart.layout.curvedMarkers;
|
|
41
|
-
function pt({ midX: h, midY: g, bandX: f, bandY: C }) {
|
|
42
|
-
if (!gt)
|
|
43
|
-
return `M ${h} ${g} L ${h} ${C} L ${f} ${C}`;
|
|
44
|
-
const I = f < B ? -1 : 1, F = f - h, le = C - g, ae = Math.sqrt(F * F + le * le) || 1, ke = h - B, p = g - M, oe = Math.sqrt(
|
|
45
|
-
ke * ke + p * p
|
|
46
|
-
) || 1, se = ke / oe, z = p / oe, Oe = oe + 9;
|
|
47
|
-
function e({ x: _e, y: de }) {
|
|
48
|
-
const re = _e - B, Z = de - M, Ae = Math.sqrt(
|
|
49
|
-
re * re + Z * Z
|
|
50
|
-
) || 1;
|
|
51
|
-
if (Ae >= Oe) return { x: _e, y: de };
|
|
52
|
-
const Te = Oe / Ae;
|
|
53
|
-
return {
|
|
54
|
-
x: B + re * Te,
|
|
55
|
-
y: M + Z * Te
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
if (ae < 56) {
|
|
59
|
-
const _e = F / ae;
|
|
60
|
-
let re = -(le / ae), Z = _e;
|
|
61
|
-
const Ae = (h + f) * 0.5, Te = (g + C) * 0.5, K = Ae + re, kt = Te + Z, Nt = (K - B) * (K - B) + (kt - M) * (kt - M), He = Ae - re, Ge = Te - Z;
|
|
62
|
-
(He - B) * (He - B) + (Ge - M) * (Ge - M) > Nt && (re = -re, Z = -Z);
|
|
63
|
-
const at = 0.78, $t = h + F * at, Rt = g + le * at, qe = Math.max(
|
|
64
|
-
0,
|
|
65
|
-
Math.min(1, (ae - 18) / 44)
|
|
66
|
-
), x = qe * qe * (3 - 2 * qe);
|
|
67
|
-
let n = 2.5 + x * 4, he = 1 + x * 2.5;
|
|
68
|
-
n *= 0.9;
|
|
69
|
-
const ot = {
|
|
70
|
-
x: $t + re * n + se * he,
|
|
71
|
-
y: Rt + Z * n + z * he
|
|
72
|
-
}, U = e(ot);
|
|
73
|
-
return `M ${h} ${g} Q ${U.x} ${U.y} ${f} ${C}`;
|
|
74
|
-
}
|
|
75
|
-
let $e = ae * 0.34;
|
|
76
|
-
$e < 20 && ($e = 20), $e > 46 && ($e = 46);
|
|
77
|
-
let ue = ae * 0.46;
|
|
78
|
-
ue < 22 && (ue = 22), ue > 70 && (ue = 70);
|
|
79
|
-
const Ye = {
|
|
80
|
-
x: h + se * $e,
|
|
81
|
-
y: g + z * $e
|
|
82
|
-
}, Ue = B + I * Math.max(Math.abs(f - B), Oe), Xt = {
|
|
83
|
-
x: f - I * Math.min(
|
|
84
|
-
ue,
|
|
85
|
-
Math.abs(Ue - f) * 0.75
|
|
86
|
-
),
|
|
87
|
-
y: C
|
|
88
|
-
}, Y = e(Ye), Ce = e(Xt);
|
|
89
|
-
return `M ${h} ${g} C ${Y.x} ${Y.y} ${Ce.x} ${Ce.y} ${f} ${C}`;
|
|
90
|
-
}
|
|
91
|
-
function mt(h) {
|
|
92
|
-
const g = String(h ?? "").split(/\n/g), f = Math.max(0, g.length - 1), C = Je * 1.2, I = f * C;
|
|
93
|
-
return yt + I;
|
|
94
|
-
}
|
|
95
|
-
function bt({ arc: h, index: g }) {
|
|
96
|
-
const { x: f, y: C } = Ft(h.path), I = zt(h).x, F = Ot(h) - 3.5, le = mt(h.name);
|
|
97
|
-
return {
|
|
98
|
-
arc: h,
|
|
99
|
-
index: g,
|
|
100
|
-
midX: f,
|
|
101
|
-
midY: C,
|
|
102
|
-
inlineMarkerX: I,
|
|
103
|
-
inlineMarkerY: F,
|
|
104
|
-
labelHeight: le
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function ze(h) {
|
|
108
|
-
const { arc: g } = h, f = g.seriesIndex ?? 0;
|
|
109
|
-
return Yt.value === f || Dt.value.includes(f) ? !1 : Bt(g, f);
|
|
110
|
-
}
|
|
111
|
-
function tt(h) {
|
|
112
|
-
const g = h.inlineMarkerY < M, f = h.inlineMarkerX < B;
|
|
113
|
-
return g && f ? "TL" : g && !f ? "TR" : !g && f ? "BL" : "BR";
|
|
114
|
-
}
|
|
115
|
-
function Ve(h, g) {
|
|
116
|
-
if (g.startsWith("T")) {
|
|
117
|
-
h.sort(
|
|
118
|
-
(C, I) => C.inlineMarkerY - I.inlineMarkerY || C.index - I.index
|
|
119
|
-
);
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
h.sort(
|
|
123
|
-
(C, I) => I.inlineMarkerY - C.inlineMarkerY || C.index - I.index
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
function Ee({
|
|
127
|
-
side: h,
|
|
128
|
-
markerX: g,
|
|
129
|
-
markerY: f,
|
|
130
|
-
labelY: C,
|
|
131
|
-
connectorPath: I
|
|
132
|
-
}) {
|
|
133
|
-
return {
|
|
134
|
-
side: h,
|
|
135
|
-
labelX: h === "left" ? g - ne : g + ne,
|
|
136
|
-
labelY: C + ft,
|
|
137
|
-
textAnchor: h === "left" ? "end" : "start",
|
|
138
|
-
markerX: g,
|
|
139
|
-
markerY: f,
|
|
140
|
-
connectorPath: I
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
function H({
|
|
144
|
-
candidateList: h,
|
|
145
|
-
side: g,
|
|
146
|
-
bandMarkerX: f,
|
|
147
|
-
startY: C,
|
|
148
|
-
direction: I
|
|
149
|
-
}) {
|
|
150
|
-
let F = C;
|
|
151
|
-
h.forEach((le) => {
|
|
152
|
-
const { index: ae, midX: ke, midY: p, labelHeight: oe } = le;
|
|
153
|
-
let se;
|
|
154
|
-
I === "down" ? (se = F, F += oe) : (F -= oe, se = F);
|
|
155
|
-
const z = se, lt = pt({
|
|
156
|
-
midX: ke,
|
|
157
|
-
midY: p,
|
|
158
|
-
bandX: f,
|
|
159
|
-
bandY: z
|
|
160
|
-
});
|
|
161
|
-
Qe[ae] = Ee({
|
|
162
|
-
side: g,
|
|
163
|
-
markerX: f,
|
|
164
|
-
markerY: z,
|
|
165
|
-
labelY: se,
|
|
166
|
-
connectorPath: lt
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
const wt = E.map((h, g) => bt({ arc: h, index: g })).filter(ze), G = {
|
|
171
|
-
TL: [],
|
|
172
|
-
TR: [],
|
|
173
|
-
BL: [],
|
|
174
|
-
BR: []
|
|
175
|
-
};
|
|
176
|
-
return wt.forEach((h) => {
|
|
177
|
-
G[tt(h)].push(h);
|
|
178
|
-
}), Object.keys(G).forEach((h) => {
|
|
179
|
-
Ve(
|
|
180
|
-
G[h],
|
|
181
|
-
h
|
|
182
|
-
);
|
|
183
|
-
}), H({
|
|
184
|
-
candidateList: G.TL,
|
|
185
|
-
side: "left",
|
|
186
|
-
bandMarkerX: Ze,
|
|
187
|
-
startY: Fe,
|
|
188
|
-
direction: "down"
|
|
189
|
-
}), H({
|
|
190
|
-
candidateList: G.TR,
|
|
191
|
-
side: "right",
|
|
192
|
-
bandMarkerX: et,
|
|
193
|
-
startY: Fe,
|
|
194
|
-
direction: "down"
|
|
195
|
-
}), G.BL.length > 1 && H({
|
|
196
|
-
candidateList: G.BL,
|
|
197
|
-
side: "left",
|
|
198
|
-
bandMarkerX: Ze,
|
|
199
|
-
startY: ht,
|
|
200
|
-
direction: "up"
|
|
201
|
-
}), G.BR.length > 1 && H({
|
|
202
|
-
candidateList: G.BR,
|
|
203
|
-
side: "right",
|
|
204
|
-
bandMarkerX: et,
|
|
205
|
-
startY: ht,
|
|
206
|
-
direction: "up"
|
|
207
|
-
}), Qe;
|
|
208
|
-
}) };
|
|
209
|
-
}
|
|
210
|
-
const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative" } }, Ha = ["xmlns", "aria-describedby", "viewBox"], Ga = ["width", "height"], qa = { key: 1 }, Wa = ["id"], ja = ["stop-color"], Ka = ["offset", "stop-color"], Qa = ["offset", "stop-color"], Ja = ["stop-color"], Za = { key: 2 }, eo = ["id", "cx", "cy"], to = ["stop-color", "stop-opacity"], lo = ["stop-color"], ao = ["id"], oo = ["id"], no = ["id"], so = ["flood-color"], uo = ["id"], ro = ["flood-color"], io = ["d", "stroke", "filter"], co = ["d", "stroke", "filter"], vo = ["cx", "cy", "r", "fill", "filter"], ho = { key: 6 }, fo = ["stroke", "d"], yo = ["d", "fill", "stroke", "stroke-width", "filter"], go = { key: 0 }, po = ["d", "fill", "stroke", "stroke-width", "filter"], mo = { key: 0 }, bo = ["stroke", "d"], wo = { key: 0 }, ko = ["d", "stroke", "stroke-width", "filter"], xo = { key: 1 }, $o = ["d", "fill", "stroke", "stroke-width", "filter"], Co = ["d", "fill", "stroke", "stroke-width", "filter"], _o = { key: 1 }, Ao = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], To = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Po = { key: 0 }, So = ["d", "fill", "stroke", "stroke-width"], Lo = ["cx", "cy", "r", "stroke"], Mo = ["cx", "cy", "r", "fill"], Io = ["cx", "cy", "r"], Fo = { key: 0 }, zo = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Oo = { key: 1 }, Yo = ["cx", "cy", "r"], Do = ["x", "y", "fill", "font-size"], Bo = ["x", "y", "fill", "font-size"], Xo = ["x", "y", "fill", "font-size"], No = ["x", "y", "fill", "font-size"], Ro = ["filter", "opacity"], Vo = { key: 0 }, Eo = ["x", "y"], Uo = { key: 1 }, Ho = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Go = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], qo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Wo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], jo = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ko = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Qo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Zo = { key: 2 }, en = ["x", "y", "width"], tn = ["x", "y", "width"], ln = {
|
|
211
|
-
key: 0,
|
|
212
|
-
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
213
|
-
"data-dom-to-png-ignore": "",
|
|
214
|
-
"aria-hidden": "true"
|
|
215
|
-
}, an = {
|
|
216
|
-
key: 5,
|
|
217
|
-
class: "vue-data-ui-watermark"
|
|
218
|
-
}, on = ["id"], nn = ["onClick"], sn = {
|
|
219
|
-
key: 8,
|
|
220
|
-
class: "vue-ui-donut-hollow"
|
|
221
|
-
}, un = ["innerHTML"], rn = {
|
|
222
|
-
__name: "vue-ui-donut",
|
|
223
|
-
props: {
|
|
224
|
-
config: {
|
|
225
|
-
type: Object,
|
|
226
|
-
default() {
|
|
227
|
-
return {};
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
dataset: {
|
|
231
|
-
type: Array,
|
|
232
|
-
default() {
|
|
233
|
-
return [];
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
238
|
-
setup(it, { expose: ct, emit: Mt }) {
|
|
239
|
-
const Ke = Me(() => import("./Tooltip-Cvt7Fi0Q.js")), vt = Me(() => import("./BaseIcon-DX0hTWa-.js")), It = Me(() => import("./vue-ui-accordion-DFtpH_16.js")), dt = Me(() => import("./DataTable-cMnb68Ik.js")), Ft = Me(
|
|
240
|
-
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
241
|
-
), zt = Me(
|
|
242
|
-
() => import("./UserOptions-DVduN6X7.js")
|
|
243
|
-
), Ot = Me(
|
|
244
|
-
() => import("./PackageVersion-BfrCAH6_.js")
|
|
245
|
-
), Yt = Me(
|
|
246
|
-
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
247
|
-
), { vue_ui_donut: Dt } = Ca(), { isThemeValid: Bt, warnInvalidTheme: Jt } = Sa(), Qe = aa(), E = it, B = m({
|
|
248
|
-
get() {
|
|
249
|
-
return !!E.dataset && E.dataset.length;
|
|
250
|
-
},
|
|
251
|
-
set(t) {
|
|
252
|
-
return t;
|
|
253
|
-
}
|
|
254
|
-
}), M = Ie(null), Fe = b(null), ht = b(null), Je = b(null), ft = Ie(null), yt = Ie(null), ne = Ie(null), me = Ie(null), Ze = Ie(null), et = Ie(null), gt = b(0), pt = b(0), mt = b(0), bt = b(!1), ze = b(null), tt = b(null), Ve = b(!1), Ee = b(!1), H = b(null), wt = b({ x: 0, y: 0 }), G = b("pointer"), h = b(!1), g = m({
|
|
255
|
-
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
256
|
-
set: (t) => t
|
|
257
|
-
}), f = m({
|
|
258
|
-
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
259
|
-
set: (t) => t
|
|
260
|
-
}), C = m({
|
|
261
|
-
get: () => e.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
262
|
-
set: (t) => t
|
|
263
|
-
});
|
|
264
|
-
let I = !1;
|
|
265
|
-
const F = () => {
|
|
266
|
-
!e.value.autoSize || I || (I = !0, requestAnimationFrame(() => {
|
|
267
|
-
I = !1;
|
|
268
|
-
const t = e.value, o = Fe.value, l = K.value;
|
|
269
|
-
if (!t.autoSize || !o || !l) return;
|
|
270
|
-
const [a, r, c, y] = l.getAttribute("viewBox").split(" ").map(Number), $ = { x: a, y: r, width: c, height: y }, D = [
|
|
271
|
-
{
|
|
272
|
-
selector: ".vue-data-ui-datalabel-value",
|
|
273
|
-
baseSize: t.style.chart.layout.labels.percentage.fontSize,
|
|
274
|
-
minSize: t.style.chart.layout.labels.percentage.minFontSize,
|
|
275
|
-
sizeRef: g
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
selector: ".vue-data-ui-datalabel-name",
|
|
279
|
-
baseSize: t.style.chart.layout.labels.name.fontSize,
|
|
280
|
-
minSize: t.style.chart.layout.labels.name.minFontSize,
|
|
281
|
-
sizeRef: f
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
selector: ".vue-data-ui-datalabel-inline",
|
|
285
|
-
baseSize: t.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
286
|
-
minSize: t.style.chart.layout.labels.name.minFontSize,
|
|
287
|
-
sizeRef: C
|
|
288
|
-
}
|
|
289
|
-
];
|
|
290
|
-
D.map((V) => o.querySelectorAll(V.selector).length).reduce((V, Ne) => V + Ne, 0) !== 0 && D.forEach(({ selector: V, baseSize: Ne, minSize: Zl, sizeRef: ea }) => {
|
|
291
|
-
o.querySelectorAll(V).forEach((ta) => {
|
|
292
|
-
const la = ya({
|
|
293
|
-
el: ta,
|
|
294
|
-
bounds: $,
|
|
295
|
-
currentFontSize: Ne,
|
|
296
|
-
minFontSize: Zl,
|
|
297
|
-
attempts: 200,
|
|
298
|
-
padding: 1
|
|
299
|
-
});
|
|
300
|
-
ea.value = la;
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
}));
|
|
304
|
-
};
|
|
305
|
-
vl(async () => {
|
|
306
|
-
bt.value = !0, ke(), requestAnimationFrame(F);
|
|
307
|
-
});
|
|
308
|
-
let le;
|
|
309
|
-
vl(() => {
|
|
310
|
-
M.value && (le = new ResizeObserver((t) => {
|
|
311
|
-
for (const o of t) {
|
|
312
|
-
const { width: l, height: a } = o.contentRect;
|
|
313
|
-
if (l > 0 && a > 0) {
|
|
314
|
-
F();
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}), le.observe(M.value.parentElement));
|
|
319
|
-
}), dl(() => {
|
|
320
|
-
le?.disconnect();
|
|
321
|
-
}), dl(() => {
|
|
322
|
-
ne.value && (me.value && ne.value.unobserve(me.value), ne.value.disconnect());
|
|
323
|
-
});
|
|
324
|
-
const ae = m(() => !!e.value.debug);
|
|
325
|
-
function ke() {
|
|
326
|
-
if (yl(E.dataset) ? (Kt({
|
|
327
|
-
componentName: "VueUiDonut",
|
|
328
|
-
type: "dataset",
|
|
329
|
-
debug: ae.value
|
|
330
|
-
}), B.value = !1, Ue.value = !0) : (E.dataset.forEach((t, o) => {
|
|
331
|
-
ua({
|
|
332
|
-
datasetObject: t,
|
|
333
|
-
requiredAttributes: ["name", "values"]
|
|
334
|
-
}).forEach((l) => {
|
|
335
|
-
Kt({
|
|
336
|
-
componentName: "VueUiDonut",
|
|
337
|
-
type: "datasetSerieAttribute",
|
|
338
|
-
property: l,
|
|
339
|
-
index: o,
|
|
340
|
-
debug: ae.value
|
|
341
|
-
}), B.value = !1, Ue.value = !0;
|
|
342
|
-
});
|
|
343
|
-
}), E.dataset.forEach((t, o) => {
|
|
344
|
-
(!t.name || t.name === "") && Kt({
|
|
345
|
-
componentName: "VueUiDonut",
|
|
346
|
-
type: "datasetAttributeEmpty",
|
|
347
|
-
property: "name",
|
|
348
|
-
index: o,
|
|
349
|
-
debug: ae.value
|
|
350
|
-
});
|
|
351
|
-
})), yl(E.dataset) || (Ue.value = e.value.loading), e.value.responsive) {
|
|
352
|
-
const t = xa(() => {
|
|
353
|
-
const { width: o, height: l } = $a({
|
|
354
|
-
chart: M.value,
|
|
355
|
-
title: e.value.style.chart.title.text ? ft.value : null,
|
|
356
|
-
legend: e.value.style.chart.legend.show ? yt.value : null,
|
|
357
|
-
source: Ze.value,
|
|
358
|
-
noTitle: et.value,
|
|
359
|
-
padding: e.value.autoSize ? void 0 : He.value
|
|
360
|
-
});
|
|
361
|
-
requestAnimationFrame(() => {
|
|
362
|
-
n.value.width = o, n.value.height = l, F();
|
|
363
|
-
});
|
|
364
|
-
});
|
|
365
|
-
ne.value && (me.value && ne.value.unobserve(me.value), ne.value.disconnect()), ne.value = new ResizeObserver(t), me.value = M.value.parentNode, ne.value.observe(me.value);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
const p = b(ra()), oe = b(!1), se = b(""), z = b(null), lt = b(0);
|
|
369
|
-
function Oe() {
|
|
370
|
-
const t = Qt({
|
|
371
|
-
userConfig: E.config,
|
|
372
|
-
defaultConfig: Dt
|
|
373
|
-
});
|
|
374
|
-
let o = {};
|
|
375
|
-
const l = t.theme;
|
|
376
|
-
if (!l)
|
|
377
|
-
o = t;
|
|
378
|
-
else if (!Bt.value(t))
|
|
379
|
-
Jt(t), o = t;
|
|
380
|
-
else {
|
|
381
|
-
const a = Qt({
|
|
382
|
-
userConfig: Oa[l] || E.config,
|
|
383
|
-
defaultConfig: t
|
|
384
|
-
});
|
|
385
|
-
o = {
|
|
386
|
-
...Qt({
|
|
387
|
-
userConfig: E.config,
|
|
388
|
-
defaultConfig: a
|
|
389
|
-
}),
|
|
390
|
-
customPalette: t.customPalette.length ? t.customPalette : ga[l] || Re
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
return o;
|
|
394
|
-
}
|
|
395
|
-
const e = b(Oe()), xe = m(
|
|
396
|
-
() => e.value.userOptions.useCursorPointer
|
|
397
|
-
), $e = m(() => gl({
|
|
398
|
-
defaultConfig: {
|
|
399
|
-
useCssAnimation: !1,
|
|
400
|
-
table: { show: !1 },
|
|
401
|
-
startAnimation: {
|
|
402
|
-
show: !1
|
|
403
|
-
},
|
|
404
|
-
userOptions: { show: !1 },
|
|
405
|
-
style: {
|
|
406
|
-
chart: {
|
|
407
|
-
backgroundColor: "#99999930",
|
|
408
|
-
layout: {
|
|
409
|
-
labels: {
|
|
410
|
-
dataLabels: { show: !1 },
|
|
411
|
-
hollow: {
|
|
412
|
-
average: { show: !1 },
|
|
413
|
-
total: { show: !1 }
|
|
414
|
-
},
|
|
415
|
-
value: { show: !1 }
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
legend: {
|
|
419
|
-
backgroundColor: "transparent",
|
|
420
|
-
showValue: !1,
|
|
421
|
-
showPercentage: !1
|
|
422
|
-
},
|
|
423
|
-
title: {
|
|
424
|
-
color: "#1A1A1A",
|
|
425
|
-
subtitle: {
|
|
426
|
-
color: "#5A5A5A"
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
433
|
-
})), { loading: ue, FINAL_DATASET: Ye, manualLoading: Ue, skeletonDataset: Xt } = Aa({
|
|
434
|
-
...oa(E),
|
|
435
|
-
FINAL_CONFIG: e,
|
|
436
|
-
prepareConfig: Oe,
|
|
437
|
-
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
438
|
-
{
|
|
439
|
-
name: "",
|
|
440
|
-
values: [3],
|
|
441
|
-
color: "#BABABA"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
name: "",
|
|
445
|
-
values: [2],
|
|
446
|
-
color: "#AAAAAA"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
name: "",
|
|
450
|
-
values: [1],
|
|
451
|
-
color: "#CACACA"
|
|
452
|
-
}
|
|
453
|
-
],
|
|
454
|
-
skeletonConfig: gl({
|
|
455
|
-
defaultConfig: e.value,
|
|
456
|
-
userConfig: $e.value
|
|
457
|
-
})
|
|
458
|
-
}), Y = b(!0), Ce = b(0), _e = b(!1);
|
|
459
|
-
let de = null;
|
|
460
|
-
function re(t = 1e3) {
|
|
461
|
-
return new Promise((o) => {
|
|
462
|
-
const l = performance.now();
|
|
463
|
-
function a(r) {
|
|
464
|
-
const c = r - l, y = Math.min(
|
|
465
|
-
c / t,
|
|
466
|
-
1
|
|
467
|
-
), $ = xl(y);
|
|
468
|
-
Ce.value = $, y < 1 ? de = requestAnimationFrame(a) : (Ce.value = 1, de = null, o());
|
|
469
|
-
}
|
|
470
|
-
de !== null && cancelAnimationFrame(de), Ce.value = 0, de = requestAnimationFrame(a);
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
je(
|
|
474
|
-
() => ue.value,
|
|
475
|
-
async (t) => {
|
|
476
|
-
if (t || _e.value)
|
|
477
|
-
return;
|
|
478
|
-
const o = Ye.value === Xt, l = e.value.startAnimation?.show;
|
|
479
|
-
if (!o && l) {
|
|
480
|
-
_e.value = !0;
|
|
481
|
-
const a = e.value.startAnimation.durationMs || 1e3;
|
|
482
|
-
await re(a);
|
|
483
|
-
} else
|
|
484
|
-
Ce.value = 1;
|
|
485
|
-
Y.value = !1;
|
|
486
|
-
},
|
|
487
|
-
{ immediate: !0 }
|
|
488
|
-
);
|
|
489
|
-
const { userOptionsVisible: Z, setUserOptionsVisibility: Ae, keepUserOptionState: Te } = La({ config: e.value }), { svgRef: K } = Ma({
|
|
490
|
-
config: e.value.style.chart.title
|
|
491
|
-
});
|
|
492
|
-
function kt() {
|
|
493
|
-
Ae(!0);
|
|
494
|
-
}
|
|
495
|
-
function Nt() {
|
|
496
|
-
Ae(!1);
|
|
497
|
-
}
|
|
498
|
-
je(
|
|
499
|
-
() => E.config,
|
|
500
|
-
(t) => {
|
|
501
|
-
ue.value || (e.value = Oe()), Z.value = !e.value.userOptions.showOnChartHover, ke(), gt.value += 1, pt.value += 1, mt.value += 1, x.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
|
|
502
|
-
},
|
|
503
|
-
{ deep: !0 }
|
|
504
|
-
);
|
|
505
|
-
const He = m(() => {
|
|
506
|
-
const { top: t, right: o, bottom: l, left: a } = e.value.style.chart.padding;
|
|
507
|
-
return {
|
|
508
|
-
css: `padding:${t}px ${o}px ${l}px ${a}px`,
|
|
509
|
-
top: t,
|
|
510
|
-
right: o,
|
|
511
|
-
bottom: l,
|
|
512
|
-
left: a
|
|
513
|
-
};
|
|
514
|
-
}), { isPrinting: Ge, isImaging: xt, generatePdf: at, generateImage: $t } = _a({
|
|
515
|
-
elementId: `donut__${p.value}`,
|
|
516
|
-
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
517
|
-
options: e.value.userOptions.print
|
|
518
|
-
}), Rt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), qe = m(() => ia(e.value.customPalette)), x = b({
|
|
519
|
-
dataLabels: {
|
|
520
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
521
|
-
},
|
|
522
|
-
showTable: e.value.table.show,
|
|
523
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
524
|
-
});
|
|
525
|
-
je(
|
|
526
|
-
e,
|
|
527
|
-
() => {
|
|
528
|
-
x.value = {
|
|
529
|
-
dataLabels: {
|
|
530
|
-
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
531
|
-
},
|
|
532
|
-
showTable: e.value.table.show,
|
|
533
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
534
|
-
};
|
|
535
|
-
},
|
|
536
|
-
{ immediate: !0 }
|
|
537
|
-
);
|
|
538
|
-
const n = b({
|
|
539
|
-
height: e.value.style.chart.height,
|
|
540
|
-
width: e.value.style.chart.width
|
|
541
|
-
}), he = m(() => {
|
|
542
|
-
if (e.value.pie)
|
|
543
|
-
return O.value;
|
|
544
|
-
const t = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * t, l = o > O.value ? O.value : o;
|
|
545
|
-
return Math.max(l, 12 * (1 + t));
|
|
546
|
-
}), ot = Mt, U = m(() => Ye.value.sort((t, o) => {
|
|
547
|
-
const l = Array.isArray(t.values) ? t.values.reduce((r, c) => r + c, 0) : t.value ?? 0, a = Array.isArray(o.values) ? o.values.reduce((r, c) => r + c, 0) : o.value ?? 0;
|
|
548
|
-
return t.ghost && !o.ghost ? 1 : o.ghost && !t.ghost ? -1 : a - l;
|
|
549
|
-
}).map((t, o) => ({
|
|
550
|
-
name: t.name,
|
|
551
|
-
color: pl(t.color) || qe.value[o] || Re[o] || Re[o % Re.length],
|
|
552
|
-
value: ca(t.values.reduce((l, a) => l + a, 0)),
|
|
553
|
-
absoluteValues: t.values,
|
|
554
|
-
comment: t.comment || "",
|
|
555
|
-
patternIndex: o,
|
|
556
|
-
seriesIndex: o,
|
|
557
|
-
ghost: !1,
|
|
558
|
-
pattern: `pattern_${p.value}_${o}`
|
|
559
|
-
})));
|
|
560
|
-
je(
|
|
561
|
-
() => E.dataset,
|
|
562
|
-
(t) => {
|
|
563
|
-
Array.isArray(t) && t.length > 0 && (Ue.value = !1);
|
|
564
|
-
},
|
|
565
|
-
{ immediate: !0 }
|
|
566
|
-
);
|
|
567
|
-
const Q = Ie(U.value);
|
|
568
|
-
je(
|
|
569
|
-
() => U.value,
|
|
570
|
-
(t) => {
|
|
571
|
-
Q.value = t, requestAnimationFrame(F);
|
|
572
|
-
}
|
|
573
|
-
);
|
|
574
|
-
function $l() {
|
|
575
|
-
return U.value.map((t) => ({
|
|
576
|
-
name: t.name,
|
|
577
|
-
color: t.color,
|
|
578
|
-
value: t.value
|
|
579
|
-
}));
|
|
580
|
-
}
|
|
581
|
-
const N = b([]), Pe = b(!1), De = b(null);
|
|
582
|
-
function Zt({
|
|
583
|
-
from: t,
|
|
584
|
-
to: o,
|
|
585
|
-
duration: l,
|
|
586
|
-
onUpdate: a,
|
|
587
|
-
onDone: r,
|
|
588
|
-
easing: c = xl
|
|
589
|
-
}) {
|
|
590
|
-
const y = performance.now();
|
|
591
|
-
function $(D) {
|
|
592
|
-
const S = Math.min((D - y) / l, 1), V = c(S), Ne = t + (o - t) * V;
|
|
593
|
-
a(Ne, S), S < 1 ? requestAnimationFrame($) : (a(o, 1), r && r());
|
|
594
|
-
}
|
|
595
|
-
requestAnimationFrame($);
|
|
596
|
-
}
|
|
597
|
-
function Cl() {
|
|
598
|
-
N.value.length ? N.value = [] : nt.value.forEach((t, o) => {
|
|
599
|
-
N.value.push(o);
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
function Ct(t) {
|
|
603
|
-
const o = U.value.find((r, c) => c === t);
|
|
604
|
-
let a = Q.value.find((r, c) => c === t).value;
|
|
605
|
-
if (N.value.includes(t)) {
|
|
606
|
-
let c = function() {
|
|
607
|
-
Q.value = Q.value.map(
|
|
608
|
-
($, D) => t === D ? { ...$, value: r } : $
|
|
609
|
-
);
|
|
610
|
-
}, y = function() {
|
|
611
|
-
Pe.value = !0, De.value = t, Zt({
|
|
612
|
-
from: a,
|
|
613
|
-
to: r,
|
|
614
|
-
duration: e.value.serieToggleAnimation.durationMs,
|
|
615
|
-
onUpdate: ($, D) => {
|
|
616
|
-
Q.value = Q.value.map(
|
|
617
|
-
(S, V) => t === V ? { ...S, value: $ } : S
|
|
618
|
-
), requestAnimationFrame(F);
|
|
619
|
-
},
|
|
620
|
-
onDone: () => {
|
|
621
|
-
c(), Pe.value = !1, De.value = null;
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
};
|
|
625
|
-
N.value = N.value.filter(($) => $ !== t);
|
|
626
|
-
const r = o.value;
|
|
627
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? y() : (c(), requestAnimationFrame(F));
|
|
628
|
-
} else if (N.value.length < U.value.length - 1) {
|
|
629
|
-
let r = function() {
|
|
630
|
-
N.value.push(t), Q.value = Q.value.map(
|
|
631
|
-
(y, $) => t === $ ? { ...y, value: 0 } : y
|
|
632
|
-
);
|
|
633
|
-
}, c = function() {
|
|
634
|
-
Pe.value = !0, De.value = t, Zt({
|
|
635
|
-
from: a,
|
|
636
|
-
to: 0,
|
|
637
|
-
duration: e.value.serieToggleAnimation.durationMs,
|
|
638
|
-
onUpdate: (y, $) => {
|
|
639
|
-
Q.value = Q.value.map(
|
|
640
|
-
(D, S) => t === S ? { ...D, value: y } : D
|
|
641
|
-
), requestAnimationFrame(F);
|
|
642
|
-
},
|
|
643
|
-
onDone: () => {
|
|
644
|
-
r(), requestAnimationFrame(F), Pe.value = !1, De.value = null;
|
|
645
|
-
}
|
|
646
|
-
});
|
|
647
|
-
};
|
|
648
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : r();
|
|
649
|
-
}
|
|
650
|
-
ot(
|
|
651
|
-
"selectLegend",
|
|
652
|
-
be.value.map((r) => ({
|
|
653
|
-
name: r.name,
|
|
654
|
-
color: r.color,
|
|
655
|
-
value: r.value
|
|
656
|
-
}))
|
|
657
|
-
);
|
|
658
|
-
}
|
|
659
|
-
function el(t) {
|
|
660
|
-
if (!U.value.length)
|
|
661
|
-
return e.value.debug && console.warn("VueUiDonut - There are no series to show."), null;
|
|
662
|
-
const o = U.value.find((l) => l.name === t);
|
|
663
|
-
return o || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${t}"`), null);
|
|
664
|
-
}
|
|
665
|
-
function _l(t) {
|
|
666
|
-
const o = el(t);
|
|
667
|
-
o !== null && N.value.includes(o.seriesIndex) && Ct(o.seriesIndex);
|
|
668
|
-
}
|
|
669
|
-
function Al(t) {
|
|
670
|
-
const o = el(t);
|
|
671
|
-
o !== null && (N.value.includes(o.seriesIndex) || Ct(o.seriesIndex));
|
|
672
|
-
}
|
|
673
|
-
const Tl = m(
|
|
674
|
-
() => Ye.value.reduce(
|
|
675
|
-
(t, o) => t + o.values.reduce((l, a) => l + a, 0),
|
|
676
|
-
0
|
|
677
|
-
)
|
|
678
|
-
), be = m(() => {
|
|
679
|
-
if (Y.value && !ue.value) {
|
|
680
|
-
const t = Ce.value, o = U.value.map((a) => ({
|
|
681
|
-
...a,
|
|
682
|
-
value: a.value * t,
|
|
683
|
-
color: a.color,
|
|
684
|
-
ghost: !1
|
|
685
|
-
})), l = Tl.value * (1 - t);
|
|
686
|
-
return l > 0 && o.push({
|
|
687
|
-
name: "__ghost__",
|
|
688
|
-
value: l,
|
|
689
|
-
color: "transparent",
|
|
690
|
-
ghost: !0
|
|
691
|
-
}), o;
|
|
692
|
-
} else
|
|
693
|
-
return Q.value.forEach((t) => {
|
|
694
|
-
if ([null, void 0].includes(t.values))
|
|
695
|
-
return {
|
|
696
|
-
...t,
|
|
697
|
-
values: []
|
|
698
|
-
};
|
|
699
|
-
}), Q.value.map((t, o) => ({
|
|
700
|
-
...t,
|
|
701
|
-
seriesIndex: o
|
|
702
|
-
})).filter(
|
|
703
|
-
(t, o) => !N.value.includes(o)
|
|
704
|
-
);
|
|
705
|
-
}), nt = m(() => Ye.value.map((t, o) => {
|
|
706
|
-
const l = (t.values || []).reduce((r, c) => r + c, 0), a = l / Ye.value.map((r) => (r.values || []).reduce((c, y) => c + y, 0)).reduce((r, c) => r + c, 0);
|
|
707
|
-
return {
|
|
708
|
-
name: t.name,
|
|
709
|
-
color: pl(t.color) || qe.value[o] || Re[o] || Re[o % Re.length],
|
|
710
|
-
value: l,
|
|
711
|
-
shape: "circle",
|
|
712
|
-
patternIndex: o,
|
|
713
|
-
proportion: a
|
|
714
|
-
};
|
|
715
|
-
}).map((t, o) => {
|
|
716
|
-
const l = pe(
|
|
717
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
718
|
-
t.value,
|
|
719
|
-
ve({
|
|
720
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
721
|
-
v: t.value,
|
|
722
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
723
|
-
r: e.value.style.chart.legend.roundingValue
|
|
724
|
-
}),
|
|
725
|
-
{ datapoint: t, index: o }
|
|
726
|
-
), a = pe(
|
|
727
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
728
|
-
ll(t),
|
|
729
|
-
ve({
|
|
730
|
-
v: ll(t),
|
|
731
|
-
s: "%",
|
|
732
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
733
|
-
})
|
|
734
|
-
), r = Ut({
|
|
735
|
-
val: l,
|
|
736
|
-
percentage: N.value.includes(o) ? `${Xl(t.proportion * 100)}%` : a,
|
|
737
|
-
showVal: e.value.style.chart.legend.showValue,
|
|
738
|
-
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
739
|
-
config: e.value.style.chart.legend
|
|
740
|
-
});
|
|
741
|
-
return {
|
|
742
|
-
...t,
|
|
743
|
-
opacity: N.value.includes(o) ? 0.5 : 1,
|
|
744
|
-
segregate: () => !Pe.value && Ct(o),
|
|
745
|
-
isSegregated: N.value.includes(o),
|
|
746
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${r}`
|
|
747
|
-
};
|
|
748
|
-
})), Pl = m(() => ({
|
|
749
|
-
cy: "donut-div-legend",
|
|
750
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
751
|
-
color: e.value.style.chart.legend.color,
|
|
752
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
753
|
-
paddingBottom: 12,
|
|
754
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
755
|
-
})), O = m(() => {
|
|
756
|
-
const t = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, t)), l = Math.min(
|
|
757
|
-
n.value.width * o,
|
|
758
|
-
n.value.height * o
|
|
759
|
-
);
|
|
760
|
-
return Math.max(12, l);
|
|
761
|
-
}), q = m(() => ml(
|
|
762
|
-
{ series: be.value },
|
|
763
|
-
n.value.width / 2,
|
|
764
|
-
n.value.height / 2,
|
|
765
|
-
O.value,
|
|
766
|
-
O.value,
|
|
767
|
-
1.99999,
|
|
768
|
-
2,
|
|
769
|
-
1,
|
|
770
|
-
360,
|
|
771
|
-
105.25,
|
|
772
|
-
he.value
|
|
773
|
-
)), Sl = m(() => Math.abs(
|
|
774
|
-
be.value.map((t) => t.value).reduce((t, o) => t + o, 0)
|
|
775
|
-
) > 0), Ll = m(() => ml(
|
|
776
|
-
{
|
|
777
|
-
series: [
|
|
778
|
-
{
|
|
779
|
-
value: 1,
|
|
780
|
-
color: e.value.style.chart.layout.donut.emptyFill,
|
|
781
|
-
name: "_",
|
|
782
|
-
seriesIndex: 0,
|
|
783
|
-
patternIndex: -1,
|
|
784
|
-
ghost: !1,
|
|
785
|
-
absoluteValues: [1]
|
|
786
|
-
}
|
|
787
|
-
]
|
|
788
|
-
},
|
|
789
|
-
n.value.width / 2,
|
|
790
|
-
n.value.height / 2,
|
|
791
|
-
O.value,
|
|
792
|
-
O.value,
|
|
793
|
-
1.99999,
|
|
794
|
-
2,
|
|
795
|
-
1,
|
|
796
|
-
360,
|
|
797
|
-
105.25,
|
|
798
|
-
he.value
|
|
799
|
-
)), T = m(
|
|
800
|
-
() => q.value.filter((t) => !t.ghost)
|
|
801
|
-
), v = m(() => {
|
|
802
|
-
const t = Math.max(...be.value.map((l) => l.value)), o = be.value.map((l) => l.value / t);
|
|
803
|
-
return va({
|
|
804
|
-
series: o,
|
|
805
|
-
center: {
|
|
806
|
-
x: n.value.width / 2,
|
|
807
|
-
y: n.value.height / 2
|
|
808
|
-
},
|
|
809
|
-
maxRadius: Math.min(n.value.width, n.value.height) / 3,
|
|
810
|
-
hasGhost: Y.value
|
|
811
|
-
});
|
|
812
|
-
});
|
|
813
|
-
function Se(t) {
|
|
814
|
-
return t.x > n.value.width / 2 + 6 ? "start" : t.x < n.value.width / 2 - 6 ? "end" : "middle";
|
|
815
|
-
}
|
|
816
|
-
function Ml(t) {
|
|
817
|
-
return t.middlePoint.y > n.value.height / 2 ? X({
|
|
818
|
-
initX: t.middlePoint.x,
|
|
819
|
-
initY: t.middlePoint.y,
|
|
820
|
-
offset: 100,
|
|
821
|
-
centerX: n.value.width / 2,
|
|
822
|
-
centerY: n.value.height / 2
|
|
823
|
-
}).y : X({
|
|
824
|
-
initX: t.middlePoint.x,
|
|
825
|
-
initY: t.middlePoint.y,
|
|
826
|
-
offset: 0,
|
|
827
|
-
centerX: n.value.width / 2,
|
|
828
|
-
centerY: n.value.height / 2
|
|
829
|
-
}).y - 100;
|
|
830
|
-
}
|
|
831
|
-
function ee(t) {
|
|
832
|
-
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
833
|
-
}
|
|
834
|
-
function Il(t, o) {
|
|
835
|
-
const l = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, a = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, c = (zl.value[o] ?? t.proportion ?? 0) * 100;
|
|
836
|
-
return c > l && c <= a;
|
|
837
|
-
}
|
|
838
|
-
const { smallArcLayoutsClassic: R } = Na({
|
|
839
|
-
FINAL_CONFIG: e,
|
|
840
|
-
noGhostDonut: T,
|
|
841
|
-
svg: n,
|
|
842
|
-
padding: He,
|
|
843
|
-
labels_inline_fontSize: C,
|
|
844
|
-
minSize: O,
|
|
845
|
-
findArcMidpoint: kl,
|
|
846
|
-
calcMarkerOffsetX: A,
|
|
847
|
-
calcMarkerOffsetY: we,
|
|
848
|
-
animatingIndex: De,
|
|
849
|
-
segregated: N,
|
|
850
|
-
isSmallArc: Il
|
|
851
|
-
});
|
|
852
|
-
function tl(t, o) {
|
|
853
|
-
const l = t.value / Fl(o);
|
|
854
|
-
return isNaN(l) ? 0 : pe(
|
|
855
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
856
|
-
l * 100,
|
|
857
|
-
ve({
|
|
858
|
-
v: l * 100,
|
|
859
|
-
s: "%",
|
|
860
|
-
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
861
|
-
}),
|
|
862
|
-
{ datapoint: t }
|
|
863
|
-
);
|
|
864
|
-
}
|
|
865
|
-
function Fl(t) {
|
|
866
|
-
return [...t].map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
867
|
-
}
|
|
868
|
-
const te = m(() => be.value.map((t) => t.value).reduce((t, o) => t + o, 0)), zl = m(() => {
|
|
869
|
-
const t = U.value.reduce((o, l) => o + l.value, 0);
|
|
870
|
-
return t <= 0 ? [] : U.value.map((o) => o.value / t);
|
|
871
|
-
}), Vt = m(() => te.value / be.value.length);
|
|
872
|
-
function ll(t) {
|
|
873
|
-
return Pe.value ? t.proportion * 100 : t.value / te.value * 100;
|
|
874
|
-
}
|
|
875
|
-
const _t = b(null), st = b(!1);
|
|
876
|
-
function fe({ datapoint: t, seriesIndex: o }) {
|
|
877
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), oe.value = !1, z.value = null, H.value = null, G.value = "pointer";
|
|
878
|
-
}
|
|
879
|
-
function ie({
|
|
880
|
-
datapoint: t,
|
|
881
|
-
relativeIndex: o,
|
|
882
|
-
seriesIndex: l,
|
|
883
|
-
show: a = !1,
|
|
884
|
-
triggerMode: r = "pointer"
|
|
885
|
-
}) {
|
|
886
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), G.value = r, H.value = o, _t.value = {
|
|
887
|
-
datapoint: t,
|
|
888
|
-
seriesIndex: l,
|
|
889
|
-
config: e.value,
|
|
890
|
-
series: U.value
|
|
891
|
-
}, oe.value = a, z.value = o;
|
|
892
|
-
let c = "";
|
|
893
|
-
const y = e.value.style.chart.tooltip.customFormat;
|
|
894
|
-
if (st.value = !1, ba(y))
|
|
895
|
-
try {
|
|
896
|
-
const $ = y({
|
|
897
|
-
seriesIndex: l,
|
|
898
|
-
datapoint: t,
|
|
899
|
-
series: U.value,
|
|
900
|
-
config: e.value
|
|
901
|
-
});
|
|
902
|
-
typeof $ == "string" && (se.value = $, st.value = !0);
|
|
903
|
-
} catch {
|
|
904
|
-
console.warn("Custom format cannot be applied."), st.value = !1;
|
|
905
|
-
}
|
|
906
|
-
st.value || (c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, c += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${Qe.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${p.value}_${l})"/>` : ""}</svg>`, c += `<b>${Ut({
|
|
907
|
-
showVal: e.value.style.chart.tooltip.showValue,
|
|
908
|
-
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
909
|
-
val: `<span>${pe(
|
|
910
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
911
|
-
t.value,
|
|
912
|
-
ve({
|
|
913
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
914
|
-
v: t.value,
|
|
915
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
916
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
917
|
-
}),
|
|
918
|
-
{
|
|
919
|
-
datapoint: t,
|
|
920
|
-
relativeIndex: o,
|
|
921
|
-
seriesIndex: l
|
|
922
|
-
}
|
|
923
|
-
)}</span>`,
|
|
924
|
-
percentage: pe(
|
|
925
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
926
|
-
t.proportion * 100,
|
|
927
|
-
ve({
|
|
928
|
-
v: t.proportion * 100,
|
|
929
|
-
s: "%",
|
|
930
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
931
|
-
}),
|
|
932
|
-
{
|
|
933
|
-
datapoint: t,
|
|
934
|
-
relativeIndex: o,
|
|
935
|
-
seriesIndex: l
|
|
936
|
-
}
|
|
937
|
-
),
|
|
938
|
-
config: e.value.style.chart.tooltip
|
|
939
|
-
})}</b></div>`, e.value.style.chart.comments.showInTooltip && t.comment && (c += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), se.value = `<div>${c}</div>`);
|
|
940
|
-
}
|
|
941
|
-
function Ol(t, o) {
|
|
942
|
-
const l = R.value[o];
|
|
943
|
-
if (l)
|
|
944
|
-
return {
|
|
945
|
-
textAnchor: l.textAnchor,
|
|
946
|
-
x: l.labelX,
|
|
947
|
-
y: l.labelY
|
|
948
|
-
};
|
|
949
|
-
const a = A(t, !0, 12);
|
|
950
|
-
return {
|
|
951
|
-
textAnchor: a.anchor,
|
|
952
|
-
x: a.x,
|
|
953
|
-
y: we(t)
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
function Yl(t, o, l) {
|
|
957
|
-
const { textAnchor: a, x: r } = Ol(t, o), c = At(t), y = `
|
|
958
|
-
<tspan
|
|
959
|
-
class="vue-data-ui-datalabel-inline"
|
|
960
|
-
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
961
|
-
font-size="${l ? C.value : g.value}px"
|
|
962
|
-
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
|
|
963
|
-
>${c}</tspan>
|
|
964
|
-
`, $ = String(t.name ?? "").split(/\n/g);
|
|
965
|
-
let D = "";
|
|
966
|
-
return $.forEach((S, V) => {
|
|
967
|
-
V === 0 ? D += `
|
|
968
|
-
<tspan
|
|
969
|
-
class="${l ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
970
|
-
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
971
|
-
font-size="${l ? C.value : f.value}px"
|
|
972
|
-
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
973
|
-
>${S}</tspan>
|
|
974
|
-
` : D += `
|
|
975
|
-
<tspan
|
|
976
|
-
class="${l ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
977
|
-
x="${r}"
|
|
978
|
-
dy="${(l ? C.value : f.value) * 1.2}"
|
|
979
|
-
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
980
|
-
font-size="${l ? C.value : f.value}px"
|
|
981
|
-
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
982
|
-
>${S}</tspan>
|
|
983
|
-
`;
|
|
984
|
-
}), a === "end" ? `${e.value.style.chart.layout.labels.name.show ? D : ""}${y}` : `${y}${e.value.style.chart.layout.labels.name.show ? D : ""}`;
|
|
985
|
-
}
|
|
986
|
-
function Dl(t, o) {
|
|
987
|
-
const l = v.value[o].middlePoint, a = Se(l), r = X({
|
|
988
|
-
initX: l.x,
|
|
989
|
-
initY: l.y,
|
|
990
|
-
offset: 42,
|
|
991
|
-
centerX: n.value.width / 2,
|
|
992
|
-
centerY: n.value.height / 2
|
|
993
|
-
}), c = r.x;
|
|
994
|
-
r.y;
|
|
995
|
-
const y = At(t), $ = `
|
|
996
|
-
<tspan
|
|
997
|
-
class="vue-data-ui-datalabel-value"
|
|
998
|
-
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
999
|
-
font-size="${g.value}px"
|
|
1000
|
-
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
1001
|
-
>${y}</tspan>
|
|
1002
|
-
`, D = String(t.name ?? "").split(/\n/g);
|
|
1003
|
-
let S = "";
|
|
1004
|
-
return D.forEach((V, Ne) => {
|
|
1005
|
-
Ne === 0 ? S += `
|
|
1006
|
-
<tspan
|
|
1007
|
-
class="vue-data-ui-datalabel-name"
|
|
1008
|
-
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
1009
|
-
font-size="${f.value}px"
|
|
1010
|
-
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
1011
|
-
>${V}</tspan>
|
|
1012
|
-
` : S += `
|
|
1013
|
-
<tspan
|
|
1014
|
-
class="vue-data-ui-datalabel-name"
|
|
1015
|
-
x="${c}"
|
|
1016
|
-
dy="${f.value * 1.2}"
|
|
1017
|
-
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
1018
|
-
font-size="${f.value}px"
|
|
1019
|
-
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
1020
|
-
>${V}</tspan>
|
|
1021
|
-
`;
|
|
1022
|
-
}), a === "end" ? `${e.value.style.chart.layout.labels.name.show ? S : ""}${$}` : `${$}${e.value.style.chart.layout.labels.name.show ? S : ""}`;
|
|
1023
|
-
}
|
|
1024
|
-
function Be(t) {
|
|
1025
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== t ? `url(#blur_${p.value})` : "";
|
|
1026
|
-
}
|
|
1027
|
-
function Bl(t) {
|
|
1028
|
-
if (!Pe.value || De.value === null || t.seriesIndex !== De.value)
|
|
1029
|
-
return 1;
|
|
1030
|
-
const o = (t.proportion ?? 0) * 100, l = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, c = l;
|
|
1031
|
-
return o >= r ? 1 : o <= c ? 0 : (o - c) / (r - c);
|
|
1032
|
-
}
|
|
1033
|
-
const Le = m(() => {
|
|
1034
|
-
const t = be.value.map((l) => ({
|
|
1035
|
-
name: l.name,
|
|
1036
|
-
color: l.color
|
|
1037
|
-
})), o = be.value.map((l) => l.value);
|
|
1038
|
-
return { head: t, body: o };
|
|
1039
|
-
});
|
|
1040
|
-
function Et(t = null) {
|
|
1041
|
-
fl(() => {
|
|
1042
|
-
const o = Le.value.head.map((r, c) => [
|
|
1043
|
-
[r.name],
|
|
1044
|
-
[Le.value.body[c]],
|
|
1045
|
-
[
|
|
1046
|
-
isNaN(Le.value.body[c] / te.value) ? "-" : Le.value.body[c] / te.value * 100
|
|
1047
|
-
]
|
|
1048
|
-
]), l = [
|
|
1049
|
-
[e.value.style.chart.title.text],
|
|
1050
|
-
[e.value.style.chart.title.subtitle.text],
|
|
1051
|
-
[[""], ["val"], ["%"]]
|
|
1052
|
-
].concat(o), a = pa(l);
|
|
1053
|
-
t ? t(a) : ma({
|
|
1054
|
-
csvContent: a,
|
|
1055
|
-
title: e.value.style.chart.title.text || "vue-ui-donut"
|
|
1056
|
-
});
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
const We = m(() => {
|
|
1060
|
-
const t = [
|
|
1061
|
-
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
1062
|
-
ve({
|
|
1063
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1064
|
-
v: te.value,
|
|
1065
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1066
|
-
r: e.value.table.td.roundingValue
|
|
1067
|
-
}),
|
|
1068
|
-
"100%"
|
|
1069
|
-
], o = Le.value.head.map((c, y) => [
|
|
1070
|
-
{
|
|
1071
|
-
color: c.color,
|
|
1072
|
-
name: c.name || "-"
|
|
1073
|
-
},
|
|
1074
|
-
Le.value.body[y],
|
|
1075
|
-
isNaN(Le.value.body[y] / te.value) ? "-" : (Le.value.body[y] / te.value * 100).toFixed(
|
|
1076
|
-
e.value.table.td.roundingPercentage
|
|
1077
|
-
) + "%"
|
|
1078
|
-
]), l = o.map((c) => c.map((y, $) => $ === 0 ? y.name : y)), a = {
|
|
1079
|
-
th: {
|
|
1080
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
1081
|
-
color: e.value.table.th.color,
|
|
1082
|
-
outline: e.value.table.th.outline
|
|
1083
|
-
},
|
|
1084
|
-
td: {
|
|
1085
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
1086
|
-
color: e.value.table.td.color,
|
|
1087
|
-
outline: e.value.table.td.outline
|
|
1088
|
-
},
|
|
1089
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
1090
|
-
};
|
|
1091
|
-
return {
|
|
1092
|
-
colNames: [
|
|
1093
|
-
e.value.table.columnNames.series,
|
|
1094
|
-
e.value.table.columnNames.value,
|
|
1095
|
-
e.value.table.columnNames.percentage
|
|
1096
|
-
],
|
|
1097
|
-
head: t,
|
|
1098
|
-
body: o,
|
|
1099
|
-
a11yBody: l,
|
|
1100
|
-
config: a
|
|
1101
|
-
};
|
|
1102
|
-
}), Xe = b(!1);
|
|
1103
|
-
function al(t) {
|
|
1104
|
-
Xe.value = t, lt.value += 1;
|
|
1105
|
-
}
|
|
1106
|
-
const ol = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1107
|
-
function Xl(t) {
|
|
1108
|
-
return wa({
|
|
1109
|
-
num: t,
|
|
1110
|
-
rounding: e.value.style.chart.legend.roundingPercentage
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
function Ut({ val: t, percentage: o, showVal: l, showPercentage: a, config: r }) {
|
|
1114
|
-
return ka({
|
|
1115
|
-
config: r,
|
|
1116
|
-
val: t,
|
|
1117
|
-
percentage: o,
|
|
1118
|
-
showVal: l,
|
|
1119
|
-
showPercentage: a
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
function At(t) {
|
|
1123
|
-
return Ut({
|
|
1124
|
-
val: pe(
|
|
1125
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
1126
|
-
t.value,
|
|
1127
|
-
ve({
|
|
1128
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1129
|
-
v: t.value,
|
|
1130
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1131
|
-
r: e.value.style.chart.layout.labels.value.rounding
|
|
1132
|
-
}),
|
|
1133
|
-
{ datapoint: t }
|
|
1134
|
-
),
|
|
1135
|
-
percentage: tl(t, T.value),
|
|
1136
|
-
showVal: e.value.style.chart.layout.labels.value.show,
|
|
1137
|
-
showPercentage: e.value.style.chart.layout.labels.percentage.show,
|
|
1138
|
-
config: e.value.style.chart.layout.labels.dataLabels
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
function ce(t, o) {
|
|
1142
|
-
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
1143
|
-
datapoint: t,
|
|
1144
|
-
seriesIndex: t.seriesIndex
|
|
1145
|
-
}), ot("selectDatapoint", { datapoint: t, index: o });
|
|
1146
|
-
}
|
|
1147
|
-
function nl() {
|
|
1148
|
-
x.value.showTable = !x.value.showTable;
|
|
1149
|
-
}
|
|
1150
|
-
function sl() {
|
|
1151
|
-
x.value.dataLabels.show = !x.value.dataLabels.show;
|
|
1152
|
-
}
|
|
1153
|
-
function ul() {
|
|
1154
|
-
x.value.showTooltip = !x.value.showTooltip;
|
|
1155
|
-
}
|
|
1156
|
-
const ut = b(!1);
|
|
1157
|
-
function Ht() {
|
|
1158
|
-
ut.value = !ut.value;
|
|
1159
|
-
}
|
|
1160
|
-
async function Nl({ scale: t = 2 } = {}) {
|
|
1161
|
-
if (!M.value) return;
|
|
1162
|
-
const { width: o, height: l } = M.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: c } = await Ia({
|
|
1163
|
-
domElement: M.value,
|
|
1164
|
-
base64: !0,
|
|
1165
|
-
img: !0,
|
|
1166
|
-
scale: t
|
|
1167
|
-
});
|
|
1168
|
-
return {
|
|
1169
|
-
imageUri: r,
|
|
1170
|
-
base64: c,
|
|
1171
|
-
title: e.value.style.chart.title.text,
|
|
1172
|
-
width: o,
|
|
1173
|
-
height: l,
|
|
1174
|
-
aspectRatio: a
|
|
1175
|
-
};
|
|
1176
|
-
}
|
|
1177
|
-
function Rl() {
|
|
1178
|
-
if (!Fe.value) return;
|
|
1179
|
-
const { x: t, y: o, width: l, height: a } = Fe.value.getBBox();
|
|
1180
|
-
K.value && K.value.setAttribute(
|
|
1181
|
-
"viewBox",
|
|
1182
|
-
`${t} ${o} ${l + Math.min(0, t)} ${a + Math.min(0, o)}`
|
|
1183
|
-
);
|
|
1184
|
-
}
|
|
1185
|
-
const rt = m(() => {
|
|
1186
|
-
const t = e.value.table.useDialog && !e.value.table.show, o = x.value.showTable;
|
|
1187
|
-
return {
|
|
1188
|
-
component: t ? Yt : It,
|
|
1189
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1190
|
-
props: t ? {
|
|
1191
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
1192
|
-
color: e.value.table.th.color,
|
|
1193
|
-
headerColor: e.value.table.th.color,
|
|
1194
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
1195
|
-
isFullscreen: Xe.value,
|
|
1196
|
-
fullscreenParent: M.value,
|
|
1197
|
-
forcedWidth: Math.min(500, window.innerWidth * 0.8),
|
|
1198
|
-
isCursorPointer: xe.value
|
|
1199
|
-
} : {
|
|
1200
|
-
hideDetails: !0,
|
|
1201
|
-
config: {
|
|
1202
|
-
open: o,
|
|
1203
|
-
maxHeight: 1e4,
|
|
1204
|
-
body: {
|
|
1205
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1206
|
-
color: e.value.style.chart.color
|
|
1207
|
-
},
|
|
1208
|
-
head: {
|
|
1209
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1210
|
-
color: e.value.style.chart.color
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
};
|
|
1215
|
-
});
|
|
1216
|
-
je(
|
|
1217
|
-
() => x.value.showTable,
|
|
1218
|
-
(t) => {
|
|
1219
|
-
e.value.table.show || (t && e.value.table.useDialog && ze.value ? ze.value.open() : "close" in ze.value && ze.value.close());
|
|
1220
|
-
}
|
|
1221
|
-
);
|
|
1222
|
-
function rl() {
|
|
1223
|
-
x.value.showTable = !1, tt.value && tt.value.setTableIconState(!1);
|
|
1224
|
-
}
|
|
1225
|
-
const Vl = m(() => nt.value.map((t) => ({
|
|
1226
|
-
...t,
|
|
1227
|
-
name: t.display
|
|
1228
|
-
}))), El = m(() => e.value.style.chart.backgroundColor), Ul = m(() => e.value.style.chart.legend), Hl = m(() => e.value.style.chart.title), { exportSvg: Gl, getSvg: ql } = Pa({
|
|
1229
|
-
svg: K,
|
|
1230
|
-
title: Hl,
|
|
1231
|
-
legend: Ul,
|
|
1232
|
-
legendItems: Vl,
|
|
1233
|
-
backgroundColor: El
|
|
1234
|
-
});
|
|
1235
|
-
async function il({ isCb: t }) {
|
|
1236
|
-
Ee.value = !0, await fl();
|
|
1237
|
-
try {
|
|
1238
|
-
if (t) {
|
|
1239
|
-
const { blob: o, url: l, text: a, dataUrl: r } = await ql();
|
|
1240
|
-
await Promise.resolve(
|
|
1241
|
-
e.value.userOptions.callbacks.svg({
|
|
1242
|
-
blob: o,
|
|
1243
|
-
url: l,
|
|
1244
|
-
text: a,
|
|
1245
|
-
dataUrl: r
|
|
1246
|
-
})
|
|
1247
|
-
);
|
|
1248
|
-
} else
|
|
1249
|
-
await Promise.resolve(Gl());
|
|
1250
|
-
} finally {
|
|
1251
|
-
Ee.value = !1;
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
function Wl(t) {
|
|
1255
|
-
if (t?.stage === "start") {
|
|
1256
|
-
Ve.value = !0;
|
|
1257
|
-
return;
|
|
1258
|
-
}
|
|
1259
|
-
if (t?.stage === "end") {
|
|
1260
|
-
Ve.value = !1;
|
|
1261
|
-
return;
|
|
1262
|
-
}
|
|
1263
|
-
$t();
|
|
1264
|
-
}
|
|
1265
|
-
async function cl() {
|
|
1266
|
-
if (ot("copyAlt", {
|
|
1267
|
-
config: e.value,
|
|
1268
|
-
dataset: Q.value
|
|
1269
|
-
}), !e.value.userOptions.callbacks.altCopy) {
|
|
1270
|
-
console.warn(
|
|
1271
|
-
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
1272
|
-
);
|
|
1273
|
-
return;
|
|
1274
|
-
}
|
|
1275
|
-
await Promise.resolve(
|
|
1276
|
-
e.value.userOptions.callbacks.altCopy({
|
|
1277
|
-
config: e.value,
|
|
1278
|
-
dataset: Q.value
|
|
1279
|
-
})
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
function jl() {
|
|
1283
|
-
H.value = null, h.value = !0;
|
|
1284
|
-
}
|
|
1285
|
-
function Kl() {
|
|
1286
|
-
H.value = null, G.value = "pointer", oe.value = !1, z.value = null, h.value = !1;
|
|
1287
|
-
}
|
|
1288
|
-
function Ql(t) {
|
|
1289
|
-
if (!K.value || ut.value || document.activeElement !== K.value || !T.value.length) return;
|
|
1290
|
-
const o = ["ArrowLeft", "ArrowUp"].includes(t.key), l = ["ArrowRight", "ArrowDown"].includes(t.key), a = t.key === "Enter" || t.key === " ", r = t.key === "Escape";
|
|
1291
|
-
if (!o && !l && !a && !r)
|
|
1292
|
-
return;
|
|
1293
|
-
if (t.preventDefault(), t.stopPropagation(), r) {
|
|
1294
|
-
H.value = null, G.value = "pointer", oe.value = !1, z.value = null;
|
|
1295
|
-
return;
|
|
1296
|
-
}
|
|
1297
|
-
if (a) {
|
|
1298
|
-
if (H.value === null) return;
|
|
1299
|
-
const V = T.value[H.value];
|
|
1300
|
-
if (!V) return;
|
|
1301
|
-
ce(V, H.value);
|
|
1302
|
-
return;
|
|
1303
|
-
}
|
|
1304
|
-
let c = H.value;
|
|
1305
|
-
const y = z.value, $ = c !== null && c >= 0 && c < T.value.length, D = y !== null && y >= 0 && y < T.value.length;
|
|
1306
|
-
$ ? l ? (c += 1, c >= T.value.length && (c = 0)) : o && (c -= 1, c < 0 && (c = T.value.length - 1)) : D ? (c = l ? y + 1 : y - 1, c >= T.value.length && (c = 0), c < 0 && (c = T.value.length - 1)) : l ? c = 0 : c = T.value.length - 1;
|
|
1307
|
-
const S = T.value[c];
|
|
1308
|
-
S && (H.value = c, Jl(c), ie({
|
|
1309
|
-
datapoint: S,
|
|
1310
|
-
relativeIndex: c,
|
|
1311
|
-
seriesIndex: S.seriesIndex,
|
|
1312
|
-
show: !0,
|
|
1313
|
-
triggerMode: "keyboard"
|
|
1314
|
-
}));
|
|
1315
|
-
}
|
|
1316
|
-
function Jl(t) {
|
|
1317
|
-
if (!Number.isFinite(t) || !K.value) return;
|
|
1318
|
-
let o = n.value.width / 2, l = n.value.height / 2;
|
|
1319
|
-
if (e.value.type === "classic") {
|
|
1320
|
-
const r = T.value[t];
|
|
1321
|
-
if (!r?.arcSlice) return;
|
|
1322
|
-
const c = kl(r.arcSlice);
|
|
1323
|
-
if (!c) return;
|
|
1324
|
-
o = c.x, l = c.y;
|
|
1325
|
-
} else {
|
|
1326
|
-
const r = v.value[t]?.middlePoint;
|
|
1327
|
-
if (!r) return;
|
|
1328
|
-
o = r.x, l = r.y;
|
|
1329
|
-
}
|
|
1330
|
-
const a = K.value.getBoundingClientRect();
|
|
1331
|
-
wt.value = {
|
|
1332
|
-
x: a.left + o / n.value.width * a.width,
|
|
1333
|
-
y: a.top + l / n.value.height * a.height
|
|
1334
|
-
};
|
|
1335
|
-
}
|
|
1336
|
-
const Gt = m(() => {
|
|
1337
|
-
const t = We.value?.colNames ?? [], o = We.value?.a11yBody ?? [];
|
|
1338
|
-
return { headers: t, rows: o };
|
|
1339
|
-
});
|
|
1340
|
-
return ct({
|
|
1341
|
-
autoSize: Rl,
|
|
1342
|
-
getData: $l,
|
|
1343
|
-
getImage: Nl,
|
|
1344
|
-
generatePdf: at,
|
|
1345
|
-
generateCsv: Et,
|
|
1346
|
-
generateImage: $t,
|
|
1347
|
-
generateSvg: il,
|
|
1348
|
-
hideSeries: Al,
|
|
1349
|
-
showSeries: _l,
|
|
1350
|
-
toggleTable: nl,
|
|
1351
|
-
toggleLabels: sl,
|
|
1352
|
-
toggleTooltip: ul,
|
|
1353
|
-
toggleAnnotator: Ht,
|
|
1354
|
-
toggleFullscreen: al,
|
|
1355
|
-
copyAlt: cl
|
|
1356
|
-
}), (t, o) => (u(), i("div", {
|
|
1357
|
-
ref_key: "donutChart",
|
|
1358
|
-
ref: M,
|
|
1359
|
-
class: qt(`vue-data-ui-component vue-ui-donut ${Xe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1360
|
-
style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
1361
|
-
id: `donut__${p.value}`,
|
|
1362
|
-
onMouseenter: kt,
|
|
1363
|
-
onMouseleave: Nt
|
|
1364
|
-
}, [
|
|
1365
|
-
w("div", {
|
|
1366
|
-
id: `chart-instructions-${p.value}`,
|
|
1367
|
-
class: "sr-only"
|
|
1368
|
-
}, [
|
|
1369
|
-
w("p", null, ye(e.value.a11y.translations.keyboardNavigation), 1)
|
|
1370
|
-
], 8, Va),
|
|
1371
|
-
Gt.value?.rows?.length ? (u(), ge(Da, {
|
|
1372
|
-
key: 0,
|
|
1373
|
-
uid: p.value,
|
|
1374
|
-
head: Gt.value.headers,
|
|
1375
|
-
body: Gt.value.rows,
|
|
1376
|
-
notice: e.value.a11y.translations.tableAvailable,
|
|
1377
|
-
caption: e.value.a11y.translations.tableCaption
|
|
1378
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : d("", !0),
|
|
1379
|
-
e.value.userOptions.buttons.annotator && s(K) ? (u(), ge(s(Ft), {
|
|
1380
|
-
key: 1,
|
|
1381
|
-
color: e.value.style.chart.color,
|
|
1382
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1383
|
-
active: ut.value,
|
|
1384
|
-
svgRef: s(K),
|
|
1385
|
-
isCursorPointer: xe.value,
|
|
1386
|
-
onClose: Ht
|
|
1387
|
-
}, {
|
|
1388
|
-
"annotator-action-close": _(() => [
|
|
1389
|
-
k(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1390
|
-
]),
|
|
1391
|
-
"annotator-action-color": _(({ color: l }) => [
|
|
1392
|
-
k(t.$slots, "annotator-action-color", W(j({ color: l })), void 0, !0)
|
|
1393
|
-
]),
|
|
1394
|
-
"annotator-action-draw": _(({ mode: l }) => [
|
|
1395
|
-
k(t.$slots, "annotator-action-draw", W(j({ mode: l })), void 0, !0)
|
|
1396
|
-
]),
|
|
1397
|
-
"annotator-action-undo": _(({ disabled: l }) => [
|
|
1398
|
-
k(t.$slots, "annotator-action-undo", W(j({ disabled: l })), void 0, !0)
|
|
1399
|
-
]),
|
|
1400
|
-
"annotator-action-redo": _(({ disabled: l }) => [
|
|
1401
|
-
k(t.$slots, "annotator-action-redo", W(j({ disabled: l })), void 0, !0)
|
|
1402
|
-
]),
|
|
1403
|
-
"annotator-action-delete": _(({ disabled: l }) => [
|
|
1404
|
-
k(t.$slots, "annotator-action-delete", W(j({ disabled: l })), void 0, !0)
|
|
1405
|
-
]),
|
|
1406
|
-
_: 3
|
|
1407
|
-
}, 8, ["color", "backgroundColor", "active", "svgRef", "isCursorPointer"])) : d("", !0),
|
|
1408
|
-
k(t.$slots, "userConfig", {}, void 0, !0),
|
|
1409
|
-
Rt.value ? (u(), i("div", {
|
|
1410
|
-
key: 2,
|
|
1411
|
-
ref_key: "noTitle",
|
|
1412
|
-
ref: et,
|
|
1413
|
-
class: "vue-data-ui-no-title-space",
|
|
1414
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1415
|
-
}, null, 512)) : d("", !0),
|
|
1416
|
-
e.value.style.chart.title.text ? (u(), i("div", {
|
|
1417
|
-
key: 3,
|
|
1418
|
-
ref_key: "chartTitle",
|
|
1419
|
-
ref: ft,
|
|
1420
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1421
|
-
}, [
|
|
1422
|
-
(u(), ge(za, {
|
|
1423
|
-
key: `title_${gt.value}`,
|
|
1424
|
-
config: {
|
|
1425
|
-
title: {
|
|
1426
|
-
cy: "donut-div-title",
|
|
1427
|
-
...e.value.style.chart.title
|
|
1428
|
-
},
|
|
1429
|
-
subtitle: {
|
|
1430
|
-
cy: "donut-div-subtitle",
|
|
1431
|
-
...e.value.style.chart.title.subtitle
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
}, null, 8, ["config"]))
|
|
1435
|
-
], 512)) : d("", !0),
|
|
1436
|
-
w("div", {
|
|
1437
|
-
id: `legend-top-${p.value}`
|
|
1438
|
-
}, null, 8, Ea),
|
|
1439
|
-
e.value.userOptions.show && B.value && (s(Te) || s(Z)) ? (u(), ge(s(zt), {
|
|
1440
|
-
ref_key: "userOptionsRef",
|
|
1441
|
-
ref: tt,
|
|
1442
|
-
key: `user_option_${lt.value}`,
|
|
1443
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1444
|
-
color: e.value.style.chart.color,
|
|
1445
|
-
isPrinting: s(Ge),
|
|
1446
|
-
isImaging: s(xt),
|
|
1447
|
-
uid: p.value,
|
|
1448
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
1449
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
1450
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
1451
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
1452
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
1453
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
1454
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
1455
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
1456
|
-
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
1457
|
-
isFullscreen: Xe.value,
|
|
1458
|
-
chartElement: M.value,
|
|
1459
|
-
position: e.value.userOptions.position,
|
|
1460
|
-
callbacks: e.value.userOptions.callbacks,
|
|
1461
|
-
isTooltip: x.value.showTooltip,
|
|
1462
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
1463
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
1464
|
-
isAnnotation: ut.value,
|
|
1465
|
-
printScale: e.value.userOptions.print.scale,
|
|
1466
|
-
tableDialog: e.value.table.useDialog,
|
|
1467
|
-
isCursorPointer: xe.value,
|
|
1468
|
-
onToggleFullscreen: al,
|
|
1469
|
-
onGeneratePdf: s(at),
|
|
1470
|
-
onGenerateCsv: Et,
|
|
1471
|
-
onGenerateImage: Wl,
|
|
1472
|
-
onGenerateSvg: il,
|
|
1473
|
-
onToggleTable: nl,
|
|
1474
|
-
onToggleLabels: sl,
|
|
1475
|
-
onToggleTooltip: ul,
|
|
1476
|
-
onToggleAnnotator: Ht,
|
|
1477
|
-
onCopyAlt: cl,
|
|
1478
|
-
style: L({
|
|
1479
|
-
visibility: s(Te) ? s(Z) ? "visible" : "hidden" : "visible"
|
|
1480
|
-
})
|
|
1481
|
-
}, Wt({ _: 2 }, [
|
|
1482
|
-
t.$slots.menuIcon ? {
|
|
1483
|
-
name: "menuIcon",
|
|
1484
|
-
fn: _(({ isOpen: l, color: a }) => [
|
|
1485
|
-
k(t.$slots, "menuIcon", W(j({ isOpen: l, color: a })), void 0, !0)
|
|
1486
|
-
]),
|
|
1487
|
-
key: "0"
|
|
1488
|
-
} : void 0,
|
|
1489
|
-
t.$slots.optionTooltip ? {
|
|
1490
|
-
name: "optionTooltip",
|
|
1491
|
-
fn: _(() => [
|
|
1492
|
-
k(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1493
|
-
]),
|
|
1494
|
-
key: "1"
|
|
1495
|
-
} : void 0,
|
|
1496
|
-
t.$slots.optionPdf ? {
|
|
1497
|
-
name: "optionPdf",
|
|
1498
|
-
fn: _(() => [
|
|
1499
|
-
k(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1500
|
-
]),
|
|
1501
|
-
key: "2"
|
|
1502
|
-
} : void 0,
|
|
1503
|
-
t.$slots.optionCsv ? {
|
|
1504
|
-
name: "optionCsv",
|
|
1505
|
-
fn: _(() => [
|
|
1506
|
-
k(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1507
|
-
]),
|
|
1508
|
-
key: "3"
|
|
1509
|
-
} : void 0,
|
|
1510
|
-
t.$slots.optionImg ? {
|
|
1511
|
-
name: "optionImg",
|
|
1512
|
-
fn: _(() => [
|
|
1513
|
-
k(t.$slots, "optionImg", {}, void 0, !0)
|
|
1514
|
-
]),
|
|
1515
|
-
key: "4"
|
|
1516
|
-
} : void 0,
|
|
1517
|
-
t.$slots.optionSvg ? {
|
|
1518
|
-
name: "optionSvg",
|
|
1519
|
-
fn: _(() => [
|
|
1520
|
-
k(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1521
|
-
]),
|
|
1522
|
-
key: "5"
|
|
1523
|
-
} : void 0,
|
|
1524
|
-
t.$slots.optionTable ? {
|
|
1525
|
-
name: "optionTable",
|
|
1526
|
-
fn: _(() => [
|
|
1527
|
-
k(t.$slots, "optionTable", {}, void 0, !0)
|
|
1528
|
-
]),
|
|
1529
|
-
key: "6"
|
|
1530
|
-
} : void 0,
|
|
1531
|
-
t.$slots.optionLabels ? {
|
|
1532
|
-
name: "optionLabels",
|
|
1533
|
-
fn: _(() => [
|
|
1534
|
-
k(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1535
|
-
]),
|
|
1536
|
-
key: "7"
|
|
1537
|
-
} : void 0,
|
|
1538
|
-
t.$slots.optionFullscreen ? {
|
|
1539
|
-
name: "optionFullscreen",
|
|
1540
|
-
fn: _(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
1541
|
-
k(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
1542
|
-
]),
|
|
1543
|
-
key: "8"
|
|
1544
|
-
} : void 0,
|
|
1545
|
-
t.$slots.optionAnnotator ? {
|
|
1546
|
-
name: "optionAnnotator",
|
|
1547
|
-
fn: _(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
1548
|
-
k(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
1549
|
-
]),
|
|
1550
|
-
key: "9"
|
|
1551
|
-
} : void 0,
|
|
1552
|
-
t.$slots.optionAltCopy ? {
|
|
1553
|
-
name: "optionAltCopy",
|
|
1554
|
-
fn: _(({ altCopy: l }) => [
|
|
1555
|
-
k(t.$slots, "optionAltCopy", W(j({ altCopy: l })), void 0, !0)
|
|
1556
|
-
]),
|
|
1557
|
-
key: "10"
|
|
1558
|
-
} : void 0
|
|
1559
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : d("", !0),
|
|
1560
|
-
w("div", Ua, [
|
|
1561
|
-
(u(), i("svg", {
|
|
1562
|
-
ref_key: "svgRef",
|
|
1563
|
-
ref: K,
|
|
1564
|
-
xmlns: s(da),
|
|
1565
|
-
"aria-describedby": `chart-instructions-${p.value}`,
|
|
1566
|
-
class: qt({
|
|
1567
|
-
"vue-data-ui-fullscreen--on": Xe.value,
|
|
1568
|
-
"vue-data-ui-fulscreen--off": !Xe.value,
|
|
1569
|
-
"vue-data-ui-svg": !0
|
|
1570
|
-
}),
|
|
1571
|
-
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
1572
|
-
style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${He.value.css}`),
|
|
1573
|
-
tabindex: "0",
|
|
1574
|
-
onFocus: jl,
|
|
1575
|
-
onBlur: Kl,
|
|
1576
|
-
onKeydown: Ql
|
|
1577
|
-
}, [
|
|
1578
|
-
w("g", {
|
|
1579
|
-
ref_key: "G",
|
|
1580
|
-
ref: Fe,
|
|
1581
|
-
class: "vue-data-ui-g"
|
|
1582
|
-
}, [
|
|
1583
|
-
Tt(s(Ot)),
|
|
1584
|
-
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
1585
|
-
key: 0,
|
|
1586
|
-
x: 0,
|
|
1587
|
-
y: 0,
|
|
1588
|
-
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
1589
|
-
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
1590
|
-
style: {
|
|
1591
|
-
pointerEvents: "none"
|
|
1592
|
-
}
|
|
1593
|
-
}, [
|
|
1594
|
-
k(t.$slots, "chart-background", {}, void 0, !0)
|
|
1595
|
-
], 8, Ga)) : d("", !0),
|
|
1596
|
-
e.value.type === "classic" && !isNaN(he.value / O.value) ? (u(), i("defs", qa, [
|
|
1597
|
-
e.value.style.chart.useGradient ? (u(), i("radialGradient", {
|
|
1598
|
-
key: 0,
|
|
1599
|
-
id: `gradient_${p.value}`
|
|
1600
|
-
}, [
|
|
1601
|
-
w("stop", {
|
|
1602
|
-
offset: "0%",
|
|
1603
|
-
"stop-color": s(Lt)(
|
|
1604
|
-
e.value.style.chart.backgroundColor,
|
|
1605
|
-
0
|
|
1606
|
-
),
|
|
1607
|
-
"stop-opacity": "0"
|
|
1608
|
-
}, null, 8, ja),
|
|
1609
|
-
w("stop", {
|
|
1610
|
-
offset: `${(1 - he.value / O.value) * 100}%`,
|
|
1611
|
-
"stop-color": s(Lt)("#FFFFFF", 0),
|
|
1612
|
-
"stop-opacity": "0"
|
|
1613
|
-
}, null, 8, Ka),
|
|
1614
|
-
w("stop", {
|
|
1615
|
-
offset: `${(1 - he.value / O.value / 2) * 100}%`,
|
|
1616
|
-
"stop-color": s(Lt)(
|
|
1617
|
-
"#FFFFFF",
|
|
1618
|
-
e.value.style.chart.gradientIntensity
|
|
1619
|
-
)
|
|
1620
|
-
}, null, 8, Qa),
|
|
1621
|
-
w("stop", {
|
|
1622
|
-
offset: "100%",
|
|
1623
|
-
"stop-color": s(Lt)(
|
|
1624
|
-
e.value.style.chart.backgroundColor,
|
|
1625
|
-
0
|
|
1626
|
-
),
|
|
1627
|
-
"stop-opacity": "0"
|
|
1628
|
-
}, null, 8, Ja)
|
|
1629
|
-
], 8, Wa)) : d("", !0)
|
|
1630
|
-
])) : d("", !0),
|
|
1631
|
-
e.value.type === "polar" ? (u(), i("defs", Za, [
|
|
1632
|
-
(u(!0), i(P, null, J(v.value, (l, a) => (u(), i("radialGradient", {
|
|
1633
|
-
id: `polar_gradient_${a}_${p.value}`,
|
|
1634
|
-
cx: (isNaN(l.middlePoint.x / n.value.width * 100) ? 0 : l.middlePoint.x / n.value.width * 100) + "%",
|
|
1635
|
-
cy: (isNaN(l.middlePoint.y / n.value.height * 100) ? 0 : l.middlePoint.y / n.value.height * 100) + "%",
|
|
1636
|
-
r: "62%"
|
|
1637
|
-
}, [
|
|
1638
|
-
w("stop", {
|
|
1639
|
-
offset: "0%",
|
|
1640
|
-
"stop-color": s(ha)(q.value[a].color, 0.05),
|
|
1641
|
-
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
1642
|
-
}, null, 8, to),
|
|
1643
|
-
w("stop", {
|
|
1644
|
-
offset: "100%",
|
|
1645
|
-
"stop-color": q.value[a].color
|
|
1646
|
-
}, null, 8, lo)
|
|
1647
|
-
], 8, eo))), 256))
|
|
1648
|
-
])) : d("", !0),
|
|
1649
|
-
w("defs", null, [
|
|
1650
|
-
w("filter", {
|
|
1651
|
-
id: `blur_${p.value}`,
|
|
1652
|
-
x: "-50%",
|
|
1653
|
-
y: "-50%",
|
|
1654
|
-
width: "200%",
|
|
1655
|
-
height: "200%"
|
|
1656
|
-
}, [
|
|
1657
|
-
w("feGaussianBlur", {
|
|
1658
|
-
in: "SourceGraphic",
|
|
1659
|
-
stdDeviation: 2,
|
|
1660
|
-
id: `blur_std_${p.value}`
|
|
1661
|
-
}, null, 8, oo),
|
|
1662
|
-
o[5] || (o[5] = w("feColorMatrix", {
|
|
1663
|
-
type: "saturate",
|
|
1664
|
-
values: "0"
|
|
1665
|
-
}, null, -1))
|
|
1666
|
-
], 8, ao),
|
|
1667
|
-
w("filter", {
|
|
1668
|
-
id: `shadow_${p.value}`,
|
|
1669
|
-
"color-interpolation-filters": "sRGB"
|
|
1670
|
-
}, [
|
|
1671
|
-
w("feDropShadow", {
|
|
1672
|
-
dx: "0",
|
|
1673
|
-
dy: "0",
|
|
1674
|
-
stdDeviation: "10",
|
|
1675
|
-
"flood-opacity": "0.5",
|
|
1676
|
-
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1677
|
-
}, null, 8, so)
|
|
1678
|
-
], 8, no),
|
|
1679
|
-
w("filter", {
|
|
1680
|
-
id: `drop_shadow_${p.value}`,
|
|
1681
|
-
"color-interpolation-filters": "sRGB",
|
|
1682
|
-
x: "-50%",
|
|
1683
|
-
y: "-50%",
|
|
1684
|
-
width: "200%",
|
|
1685
|
-
height: "200%"
|
|
1686
|
-
}, [
|
|
1687
|
-
w("feDropShadow", {
|
|
1688
|
-
dx: "0",
|
|
1689
|
-
dy: "0",
|
|
1690
|
-
stdDeviation: "3",
|
|
1691
|
-
"flood-opacity": "1",
|
|
1692
|
-
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1693
|
-
}, null, 8, ro)
|
|
1694
|
-
], 8, uo)
|
|
1695
|
-
]),
|
|
1696
|
-
e.value.type === "classic" ? (u(!0), i(P, { key: 3 }, J(q.value.filter(
|
|
1697
|
-
(l) => !l.ghost
|
|
1698
|
-
), (l, a) => (u(), i("g", null, [
|
|
1699
|
-
ee(l) && x.value.dataLabels.show ? (u(), i("path", {
|
|
1700
|
-
key: 0,
|
|
1701
|
-
d: s(R)[a]?.connectorPath || s(fa)(
|
|
1702
|
-
l,
|
|
1703
|
-
{ x: n.value.width / 2, y: n.value.height / 2 },
|
|
1704
|
-
16,
|
|
1705
|
-
16,
|
|
1706
|
-
!1,
|
|
1707
|
-
!1,
|
|
1708
|
-
he.value,
|
|
1709
|
-
12,
|
|
1710
|
-
e.value.style.chart.layout.curvedMarkers
|
|
1711
|
-
),
|
|
1712
|
-
stroke: l.color,
|
|
1713
|
-
"stroke-width": "1",
|
|
1714
|
-
"stroke-linecap": "round",
|
|
1715
|
-
"stroke-linejoin": "round",
|
|
1716
|
-
fill: "none",
|
|
1717
|
-
filter: Be(a)
|
|
1718
|
-
}, null, 8, io)) : d("", !0)
|
|
1719
|
-
]))), 256)) : d("", !0),
|
|
1720
|
-
e.value.type === "polar" ? (u(!0), i(P, { key: 4 }, J(q.value.filter(
|
|
1721
|
-
(l) => !l.ghost
|
|
1722
|
-
), (l, a) => (u(), i("g", null, [
|
|
1723
|
-
ee(l) && x.value.dataLabels.show ? (u(), i("path", {
|
|
1724
|
-
key: 0,
|
|
1725
|
-
d: `M ${s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${v.value[a].middlePoint.x},${v.value[a].middlePoint.y}`,
|
|
1726
|
-
stroke: l.color,
|
|
1727
|
-
"stroke-width": "1",
|
|
1728
|
-
"stroke-linecap": "round",
|
|
1729
|
-
"stroke-linejoin": "round",
|
|
1730
|
-
fill: "none",
|
|
1731
|
-
filter: Be(a),
|
|
1732
|
-
style: L({
|
|
1733
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1734
|
-
})
|
|
1735
|
-
}, null, 12, co)) : d("", !0)
|
|
1736
|
-
]))), 256)) : d("", !0),
|
|
1737
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (u(), i("circle", {
|
|
1738
|
-
key: 5,
|
|
1739
|
-
cx: n.value.width / 2,
|
|
1740
|
-
cy: n.value.height / 2,
|
|
1741
|
-
r: O.value <= 0 ? 10 : O.value,
|
|
1742
|
-
fill: e.value.style.chart.backgroundColor,
|
|
1743
|
-
filter: `url(#shadow_${p.value})`
|
|
1744
|
-
}, null, 8, vo)) : d("", !0),
|
|
1745
|
-
t.$slots.pattern ? (u(), i("g", ho, [
|
|
1746
|
-
(u(!0), i(P, null, J(it.dataset, (l, a) => (u(), i("defs", {
|
|
1747
|
-
key: `pattern-${l.patternIndex}`
|
|
1748
|
-
}, [
|
|
1749
|
-
k(t.$slots, "pattern", jt({ ref_for: !0 }, {
|
|
1750
|
-
seriesIndex: a,
|
|
1751
|
-
patternId: `pattern_${p.value}_${a}`
|
|
1752
|
-
}), void 0, !0)
|
|
1753
|
-
]))), 128))
|
|
1754
|
-
])) : d("", !0),
|
|
1755
|
-
te.value && e.value.type === "classic" ? (u(), i(P, { key: 7 }, [
|
|
1756
|
-
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1757
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1758
|
-
d: l.arcSlice,
|
|
1759
|
-
fill: "#FFFFFF"
|
|
1760
|
-
}, null, 8, fo))), 256)),
|
|
1761
|
-
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1762
|
-
class: "vue-ui-donut-arc-path",
|
|
1763
|
-
d: l.arcSlice,
|
|
1764
|
-
fill: l.color,
|
|
1765
|
-
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1766
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1767
|
-
filter: Be(a)
|
|
1768
|
-
}, null, 8, yo))), 256)),
|
|
1769
|
-
t.$slots.pattern ? (u(), i("g", go, [
|
|
1770
|
-
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1771
|
-
class: "vue-ui-donut-arc-path",
|
|
1772
|
-
d: l.arcSlice,
|
|
1773
|
-
fill: `url(#${l.pattern})`,
|
|
1774
|
-
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1775
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1776
|
-
filter: Be(a)
|
|
1777
|
-
}, null, 8, po))), 256))
|
|
1778
|
-
])) : d("", !0)
|
|
1779
|
-
], 64)) : d("", !0),
|
|
1780
|
-
te.value && e.value.type === "polar" ? (u(), i(P, { key: 8 }, [
|
|
1781
|
-
q.value.length > 1 ? (u(), i("g", mo, [
|
|
1782
|
-
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1783
|
-
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1784
|
-
d: v.value[a].path,
|
|
1785
|
-
fill: "#FFFFFF",
|
|
1786
|
-
style: L({
|
|
1787
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1788
|
-
})
|
|
1789
|
-
}, null, 12, bo))), 256)),
|
|
1790
|
-
e.value.style.chart.layout.donut.useShadow ? (u(), i("g", wo, [
|
|
1791
|
-
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1792
|
-
class: "vue-ui-donut-arc-path",
|
|
1793
|
-
d: v.value[a].path,
|
|
1794
|
-
fill: "transparent",
|
|
1795
|
-
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1796
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1797
|
-
filter: `url(#drop_shadow_${p.value})`,
|
|
1798
|
-
style: L({
|
|
1799
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1800
|
-
})
|
|
1801
|
-
}, null, 12, ko))), 256))
|
|
1802
|
-
])) : d("", !0),
|
|
1803
|
-
t.$slots.pattern ? (u(), i("g", xo, [
|
|
1804
|
-
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1805
|
-
class: "vue-ui-donut-arc-path",
|
|
1806
|
-
d: v.value[a].path,
|
|
1807
|
-
fill: `url(#${l.pattern})`,
|
|
1808
|
-
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1809
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1810
|
-
filter: Be(a),
|
|
1811
|
-
style: L({
|
|
1812
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1813
|
-
transformOrigin: "center"
|
|
1814
|
-
})
|
|
1815
|
-
}, null, 12, $o))), 256))
|
|
1816
|
-
])) : d("", !0),
|
|
1817
|
-
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1818
|
-
class: "vue-ui-donut-arc-path",
|
|
1819
|
-
d: v.value[a].path,
|
|
1820
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${p.value})` : l.color,
|
|
1821
|
-
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1822
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1823
|
-
filter: Be(a),
|
|
1824
|
-
style: L({
|
|
1825
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1826
|
-
})
|
|
1827
|
-
}, null, 12, Co))), 256))
|
|
1828
|
-
])) : (u(), i("g", _o, [
|
|
1829
|
-
t.$slots.pattern ? (u(), i("circle", {
|
|
1830
|
-
key: 0,
|
|
1831
|
-
cx: n.value.width / 2,
|
|
1832
|
-
cy: n.value.height / 2,
|
|
1833
|
-
r: O.value,
|
|
1834
|
-
fill: `url(#pattern_${p.value}_${q.value[0].patternIndex})`,
|
|
1835
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1836
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1837
|
-
}, null, 8, Ao)) : d("", !0),
|
|
1838
|
-
w("circle", {
|
|
1839
|
-
cx: n.value.width / 2,
|
|
1840
|
-
cy: n.value.height / 2,
|
|
1841
|
-
r: O.value,
|
|
1842
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${p.value})` : q.value[0].color,
|
|
1843
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1844
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1845
|
-
}, null, 8, To)
|
|
1846
|
-
]))
|
|
1847
|
-
], 64)) : (u(), i(P, { key: 9 }, [
|
|
1848
|
-
e.value.type === "classic" && !Sl.value ? (u(), i("g", Po, [
|
|
1849
|
-
(u(!0), i(P, null, J(Ll.value, (l, a) => (u(), i("path", {
|
|
1850
|
-
class: "vue-ui-donut-arc-path",
|
|
1851
|
-
d: l.arcSlice,
|
|
1852
|
-
fill: l.color,
|
|
1853
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1854
|
-
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1855
|
-
}, null, 8, So))), 256))
|
|
1856
|
-
])) : d("", !0),
|
|
1857
|
-
w("circle", {
|
|
1858
|
-
cx: n.value.width / 2,
|
|
1859
|
-
cy: n.value.height / 2,
|
|
1860
|
-
r: O.value <= 0 ? 10 : O.value,
|
|
1861
|
-
fill: "transparent",
|
|
1862
|
-
stroke: e.value.style.chart.backgroundColor
|
|
1863
|
-
}, null, 8, Lo)
|
|
1864
|
-
], 64)),
|
|
1865
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (u(), i("circle", {
|
|
1866
|
-
key: 10,
|
|
1867
|
-
cx: n.value.width / 2,
|
|
1868
|
-
cy: n.value.height / 2,
|
|
1869
|
-
r: (
|
|
1870
|
-
/* This might require adjustments */
|
|
1871
|
-
O.value <= 0 ? 10 : O.value
|
|
1872
|
-
),
|
|
1873
|
-
fill: `url(#gradient_${p.value})`
|
|
1874
|
-
}, null, 8, Mo)) : d("", !0),
|
|
1875
|
-
w("circle", {
|
|
1876
|
-
ref_key: "circle_hollow",
|
|
1877
|
-
ref: Je,
|
|
1878
|
-
style: { pointerEvents: "none" },
|
|
1879
|
-
fill: "none",
|
|
1880
|
-
cx: n.value.width / 2,
|
|
1881
|
-
cy: n.value.height / 2,
|
|
1882
|
-
r: Math.max(0.1, he.value * 1.7)
|
|
1883
|
-
}, null, 8, Io),
|
|
1884
|
-
te.value ? (u(), i(P, { key: 11 }, [
|
|
1885
|
-
q.value.length > 1 || e.value.type === "classic" ? (u(), i("g", Fo, [
|
|
1886
|
-
(u(!0), i(P, null, J(q.value.filter(
|
|
1887
|
-
(l) => !l.ghost
|
|
1888
|
-
), (l, a) => (u(), i("path", {
|
|
1889
|
-
d: e.value.type === "classic" ? l.arcSlice : v.value[a].path,
|
|
1890
|
-
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1891
|
-
fill: z.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1892
|
-
onMouseenter: (r) => ie({
|
|
1893
|
-
datapoint: l,
|
|
1894
|
-
relativeIndex: a,
|
|
1895
|
-
seriesIndex: l.seriesIndex,
|
|
1896
|
-
show: !0
|
|
1897
|
-
}),
|
|
1898
|
-
onMouseleave: (r) => fe({
|
|
1899
|
-
datapoint: l,
|
|
1900
|
-
seriesIndex: l.seriesIndex
|
|
1901
|
-
}),
|
|
1902
|
-
onClick: (r) => ce(l, a)
|
|
1903
|
-
}, null, 40, zo))), 256))
|
|
1904
|
-
])) : (u(), i("g", Oo, [
|
|
1905
|
-
w("circle", {
|
|
1906
|
-
cx: n.value.width / 2,
|
|
1907
|
-
cy: n.value.height / 2,
|
|
1908
|
-
r: O.value,
|
|
1909
|
-
fill: "transparent",
|
|
1910
|
-
onMouseenter: o[0] || (o[0] = (l) => ie({
|
|
1911
|
-
datapoint: q.value[0],
|
|
1912
|
-
relativeIndex: 0,
|
|
1913
|
-
seriesIndex: q.value[0].seriesIndex,
|
|
1914
|
-
show: !0
|
|
1915
|
-
})),
|
|
1916
|
-
onMouseleave: o[1] || (o[1] = (l) => fe({
|
|
1917
|
-
datapoint: q.value[0],
|
|
1918
|
-
seriesIndex: q.value[0].seriesIndex
|
|
1919
|
-
})),
|
|
1920
|
-
onClick: o[2] || (o[2] = (l) => ce(q.value[0], t.i))
|
|
1921
|
-
}, null, 40, Yo)
|
|
1922
|
-
]))
|
|
1923
|
-
], 64)) : d("", !0),
|
|
1924
|
-
e.value.type === "classic" ? (u(), i("g", {
|
|
1925
|
-
key: 12,
|
|
1926
|
-
ref_key: "G_hollow",
|
|
1927
|
-
ref: ht,
|
|
1928
|
-
class: "vue-data-ui-donut-hollow-labels"
|
|
1929
|
-
}, [
|
|
1930
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (u(), i("text", {
|
|
1931
|
-
key: 0,
|
|
1932
|
-
"text-anchor": "middle",
|
|
1933
|
-
x: n.value.width / 2,
|
|
1934
|
-
y: n.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
1935
|
-
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1936
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1937
|
-
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1938
|
-
}, ye(e.value.style.chart.layout.labels.hollow.total.text), 13, Do)) : d("", !0),
|
|
1939
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (u(), i("text", {
|
|
1940
|
-
key: 1,
|
|
1941
|
-
"text-anchor": "middle",
|
|
1942
|
-
x: n.value.width / 2,
|
|
1943
|
-
y: n.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
1944
|
-
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1945
|
-
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1946
|
-
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1947
|
-
}, ye(s(pe)(
|
|
1948
|
-
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1949
|
-
te.value,
|
|
1950
|
-
s(ve)({
|
|
1951
|
-
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1952
|
-
v: te.value,
|
|
1953
|
-
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1954
|
-
})
|
|
1955
|
-
)), 13, Bo)) : d("", !0),
|
|
1956
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (u(), i("text", {
|
|
1957
|
-
key: 2,
|
|
1958
|
-
"text-anchor": "middle",
|
|
1959
|
-
x: n.value.width / 2,
|
|
1960
|
-
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
1961
|
-
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1962
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1963
|
-
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1964
|
-
}, ye(e.value.style.chart.layout.labels.hollow.average.text), 13, Xo)) : d("", !0),
|
|
1965
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (u(), i("text", {
|
|
1966
|
-
key: 3,
|
|
1967
|
-
"text-anchor": "middle",
|
|
1968
|
-
x: n.value.width / 2,
|
|
1969
|
-
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
1970
|
-
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1971
|
-
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1972
|
-
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1973
|
-
}, ye(Pe.value || Y.value ? "--" : s(pe)(
|
|
1974
|
-
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1975
|
-
s(bl)(Vt.value),
|
|
1976
|
-
s(ve)({
|
|
1977
|
-
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1978
|
-
v: s(bl)(Vt.value),
|
|
1979
|
-
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1980
|
-
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1981
|
-
})
|
|
1982
|
-
)), 13, No)) : d("", !0)
|
|
1983
|
-
], 512)) : d("", !0),
|
|
1984
|
-
(u(!0), i(P, null, J(T.value.filter(
|
|
1985
|
-
(l) => !l.ghost
|
|
1986
|
-
), (l, a) => (u(), i("g", {
|
|
1987
|
-
filter: Be(a),
|
|
1988
|
-
class: qt({ animated: e.value.useCssAnimation }),
|
|
1989
|
-
key: l.seriesIndex,
|
|
1990
|
-
opacity: Bl(l)
|
|
1991
|
-
}, [
|
|
1992
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), i("g", Vo, [
|
|
1993
|
-
(u(), i("foreignObject", {
|
|
1994
|
-
x: s(A)(l, !0).anchor === "end" ? s(A)(l).x - 120 : s(A)(l, !0).anchor === "middle" ? s(A)(l).x - 60 : s(A)(l).x,
|
|
1995
|
-
y: s(we)(l) - (ol.value ? 20 : 0),
|
|
1996
|
-
width: "120",
|
|
1997
|
-
height: "60",
|
|
1998
|
-
style: { overflow: "visible" }
|
|
1999
|
-
}, [
|
|
2000
|
-
w("div", null, [
|
|
2001
|
-
k(t.$slots, "dataLabel", jt({ ref_for: !0 }, {
|
|
2002
|
-
datapoint: l,
|
|
2003
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
2004
|
-
z.value
|
|
2005
|
-
) || z.value === a,
|
|
2006
|
-
isSafari: ol.value,
|
|
2007
|
-
isVisible: ee(l) && x.value.dataLabels.show,
|
|
2008
|
-
textAlign: s(A)(
|
|
2009
|
-
l,
|
|
2010
|
-
!0,
|
|
2011
|
-
16,
|
|
2012
|
-
!0
|
|
2013
|
-
).anchor,
|
|
2014
|
-
flexAlign: s(A)(
|
|
2015
|
-
l,
|
|
2016
|
-
!0,
|
|
2017
|
-
16
|
|
2018
|
-
).anchor,
|
|
2019
|
-
percentage: tl(
|
|
2020
|
-
l,
|
|
2021
|
-
T.value
|
|
2022
|
-
)
|
|
2023
|
-
}), void 0, !0)
|
|
2024
|
-
])
|
|
2025
|
-
], 8, Eo))
|
|
2026
|
-
])) : (u(), i("g", Uo, [
|
|
2027
|
-
e.value.type === "classic" ? (u(), i(P, { key: 0 }, [
|
|
2028
|
-
ee(l) && x.value.dataLabels.show ? (u(), i("circle", {
|
|
2029
|
-
key: 0,
|
|
2030
|
-
cx: s(R)[a]?.markerX ?? s(A)(l).x,
|
|
2031
|
-
cy: s(R)[a]?.markerY ?? s(we)(l) - 3.5,
|
|
2032
|
-
fill: l.color,
|
|
2033
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
2034
|
-
"stroke-width": 1,
|
|
2035
|
-
r: 3,
|
|
2036
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
2037
|
-
z.value
|
|
2038
|
-
) || z.value === a ? "" : `url(#blur_${p.value})`,
|
|
2039
|
-
onClick: (r) => ce(l, a),
|
|
2040
|
-
onMouseenter: (r) => ie({
|
|
2041
|
-
datapoint: l,
|
|
2042
|
-
relativeIndex: a,
|
|
2043
|
-
seriesIndex: l.seriesIndex,
|
|
2044
|
-
show: !0
|
|
2045
|
-
}),
|
|
2046
|
-
onMouseleave: (r) => fe({
|
|
2047
|
-
datapoint: l,
|
|
2048
|
-
seriesIndex: l.seriesIndex
|
|
2049
|
-
})
|
|
2050
|
-
}, null, 40, Ho)) : d("", !0),
|
|
2051
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine || s(R)[a] ? Pt((u(), i("text", {
|
|
2052
|
-
key: 1,
|
|
2053
|
-
class: "vue-data-ui-datalabel-inline",
|
|
2054
|
-
"text-anchor": s(R)[a]?.textAnchor || s(A)(l, !0, 12).anchor,
|
|
2055
|
-
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
2056
|
-
y: s(R)[a]?.labelY ?? s(we)(l),
|
|
2057
|
-
onClick: (r) => ce(l, a),
|
|
2058
|
-
onMouseenter: (r) => ie({
|
|
2059
|
-
datapoint: l,
|
|
2060
|
-
relativeIndex: a,
|
|
2061
|
-
seriesIndex: l.seriesIndex,
|
|
2062
|
-
show: !0
|
|
2063
|
-
}),
|
|
2064
|
-
onMouseleave: (r) => fe({
|
|
2065
|
-
datapoint: l,
|
|
2066
|
-
seriesIndex: l.seriesIndex
|
|
2067
|
-
}),
|
|
2068
|
-
innerHTML: Yl(
|
|
2069
|
-
l,
|
|
2070
|
-
a,
|
|
2071
|
-
!!s(R)[a]
|
|
2072
|
-
)
|
|
2073
|
-
}, null, 40, Go)), [
|
|
2074
|
-
[
|
|
2075
|
-
St,
|
|
2076
|
-
ee(l) && x.value.dataLabels.show
|
|
2077
|
-
]
|
|
2078
|
-
]) : (u(), i(P, { key: 2 }, [
|
|
2079
|
-
Pt(w("text", {
|
|
2080
|
-
class: "vue-data-ui-datalabel-value",
|
|
2081
|
-
"text-anchor": s(R)[a]?.textAnchor || s(A)(l, !0, 12).anchor,
|
|
2082
|
-
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
2083
|
-
y: s(R)[a]?.labelY ?? s(we)(l),
|
|
2084
|
-
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
2085
|
-
"font-size": g.value + "px",
|
|
2086
|
-
style: L(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
2087
|
-
onClick: (r) => ce(l, a),
|
|
2088
|
-
onMouseenter: (r) => ie({
|
|
2089
|
-
datapoint: l,
|
|
2090
|
-
relativeIndex: a,
|
|
2091
|
-
seriesIndex: l.seriesIndex,
|
|
2092
|
-
show: !0
|
|
2093
|
-
}),
|
|
2094
|
-
onMouseleave: (r) => fe({
|
|
2095
|
-
datapoint: l,
|
|
2096
|
-
seriesIndex: l.seriesIndex
|
|
2097
|
-
})
|
|
2098
|
-
}, ye(At(l)), 45, qo), [
|
|
2099
|
-
[
|
|
2100
|
-
St,
|
|
2101
|
-
ee(l) && x.value.dataLabels.show
|
|
2102
|
-
]
|
|
2103
|
-
]),
|
|
2104
|
-
Pt(w("text", {
|
|
2105
|
-
class: "vue-data-ui-datalabel-name",
|
|
2106
|
-
"text-anchor": s(R)[a]?.textAnchor || s(A)(l).anchor,
|
|
2107
|
-
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
2108
|
-
y: (s(R)[a]?.labelY ?? s(we)(l)) + f.value * 1.2,
|
|
2109
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
2110
|
-
"font-size": f.value + "px",
|
|
2111
|
-
style: L(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
2112
|
-
onClick: (r) => ce(l, a),
|
|
2113
|
-
onMouseenter: (r) => ie({
|
|
2114
|
-
datapoint: l,
|
|
2115
|
-
relativeIndex: a,
|
|
2116
|
-
seriesIndex: l.seriesIndex,
|
|
2117
|
-
show: !0
|
|
2118
|
-
}),
|
|
2119
|
-
onMouseleave: (r) => fe({
|
|
2120
|
-
datapoint: l,
|
|
2121
|
-
seriesIndex: l.seriesIndex
|
|
2122
|
-
}),
|
|
2123
|
-
innerHTML: s(wl)({
|
|
2124
|
-
content: l.name,
|
|
2125
|
-
fontSize: f.value,
|
|
2126
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
2127
|
-
x: s(R)[a]?.labelX ?? s(A)(
|
|
2128
|
-
l,
|
|
2129
|
-
!0,
|
|
2130
|
-
12
|
|
2131
|
-
).x,
|
|
2132
|
-
y: (s(R)[a]?.labelY ?? s(we)(
|
|
2133
|
-
l
|
|
2134
|
-
)) + f.value
|
|
2135
|
-
})
|
|
2136
|
-
}, null, 44, Wo), [
|
|
2137
|
-
[
|
|
2138
|
-
St,
|
|
2139
|
-
ee(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.name.show
|
|
2140
|
-
]
|
|
2141
|
-
])
|
|
2142
|
-
], 64))
|
|
2143
|
-
], 64)) : d("", !0),
|
|
2144
|
-
e.value.type === "polar" ? (u(), i(P, { key: 1 }, [
|
|
2145
|
-
ee(l) && x.value.dataLabels.show ? (u(), i("circle", {
|
|
2146
|
-
key: 0,
|
|
2147
|
-
cx: s(X)({
|
|
2148
|
-
initX: v.value[a].middlePoint.x,
|
|
2149
|
-
initY: v.value[a].middlePoint.y,
|
|
2150
|
-
offset: 24,
|
|
2151
|
-
centerX: n.value.width / 2,
|
|
2152
|
-
centerY: n.value.height / 2
|
|
2153
|
-
}).x,
|
|
2154
|
-
cy: s(X)({
|
|
2155
|
-
initX: v.value[a].middlePoint.x,
|
|
2156
|
-
initY: v.value[a].middlePoint.y,
|
|
2157
|
-
offset: 24,
|
|
2158
|
-
centerX: n.value.width / 2,
|
|
2159
|
-
centerY: n.value.height / 2
|
|
2160
|
-
}).y,
|
|
2161
|
-
fill: l.color,
|
|
2162
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
2163
|
-
"stroke-width": 1,
|
|
2164
|
-
r: 3,
|
|
2165
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
2166
|
-
z.value
|
|
2167
|
-
) || z.value === a ? "" : `url(#blur_${p.value})`,
|
|
2168
|
-
onClick: (r) => ce(l, a),
|
|
2169
|
-
onMouseenter: (r) => ie({
|
|
2170
|
-
datapoint: l,
|
|
2171
|
-
relativeIndex: a,
|
|
2172
|
-
seriesIndex: l.seriesIndex,
|
|
2173
|
-
show: !0
|
|
2174
|
-
}),
|
|
2175
|
-
onMouseleave: (r) => fe({
|
|
2176
|
-
datapoint: l,
|
|
2177
|
-
seriesIndex: l.seriesIndex
|
|
2178
|
-
}),
|
|
2179
|
-
style: L({
|
|
2180
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
2181
|
-
})
|
|
2182
|
-
}, null, 44, jo)) : d("", !0),
|
|
2183
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine ? Pt((u(), i("text", {
|
|
2184
|
-
key: 1,
|
|
2185
|
-
class: "vue-data-ui-datalabel-inline",
|
|
2186
|
-
"text-anchor": Se(
|
|
2187
|
-
v.value[a].middlePoint
|
|
2188
|
-
),
|
|
2189
|
-
x: s(X)({
|
|
2190
|
-
initX: v.value[a].middlePoint.x,
|
|
2191
|
-
initY: v.value[a].middlePoint.y,
|
|
2192
|
-
offset: 42,
|
|
2193
|
-
centerX: n.value.width / 2,
|
|
2194
|
-
centerY: n.value.height / 2
|
|
2195
|
-
}).x,
|
|
2196
|
-
y: s(X)({
|
|
2197
|
-
initX: v.value[a].middlePoint.x,
|
|
2198
|
-
initY: v.value[a].middlePoint.y,
|
|
2199
|
-
offset: 42,
|
|
2200
|
-
centerX: n.value.width / 2,
|
|
2201
|
-
centerY: n.value.height / 2
|
|
2202
|
-
}).y,
|
|
2203
|
-
style: L({
|
|
2204
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
2205
|
-
}),
|
|
2206
|
-
onClick: (r) => ce(l, a),
|
|
2207
|
-
onMouseenter: (r) => ie({
|
|
2208
|
-
datapoint: l,
|
|
2209
|
-
relativeIndex: a,
|
|
2210
|
-
seriesIndex: l.seriesIndex,
|
|
2211
|
-
show: !0
|
|
2212
|
-
}),
|
|
2213
|
-
onMouseleave: (r) => fe({
|
|
2214
|
-
datapoint: l,
|
|
2215
|
-
seriesIndex: l.seriesIndex
|
|
2216
|
-
}),
|
|
2217
|
-
innerHTML: Dl(l, a)
|
|
2218
|
-
}, null, 44, Ko)), [
|
|
2219
|
-
[
|
|
2220
|
-
St,
|
|
2221
|
-
ee(l) && x.value.dataLabels.show
|
|
2222
|
-
]
|
|
2223
|
-
]) : (u(), i(P, { key: 2 }, [
|
|
2224
|
-
ee(l) && x.value.dataLabels.show ? (u(), i("text", {
|
|
2225
|
-
key: 0,
|
|
2226
|
-
class: "vue-data-ui-datalabel-value",
|
|
2227
|
-
"text-anchor": Se(
|
|
2228
|
-
v.value[a].middlePoint
|
|
2229
|
-
),
|
|
2230
|
-
x: s(X)({
|
|
2231
|
-
initX: v.value[a].middlePoint.x,
|
|
2232
|
-
initY: v.value[a].middlePoint.y,
|
|
2233
|
-
offset: 42,
|
|
2234
|
-
centerX: n.value.width / 2,
|
|
2235
|
-
centerY: n.value.height / 2
|
|
2236
|
-
}).x,
|
|
2237
|
-
y: s(X)({
|
|
2238
|
-
initX: v.value[a].middlePoint.x,
|
|
2239
|
-
initY: v.value[a].middlePoint.y,
|
|
2240
|
-
offset: 42,
|
|
2241
|
-
centerX: n.value.width / 2,
|
|
2242
|
-
centerY: n.value.height / 2
|
|
2243
|
-
}).y,
|
|
2244
|
-
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
2245
|
-
"font-size": g.value,
|
|
2246
|
-
style: L({
|
|
2247
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2248
|
-
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
2249
|
-
}),
|
|
2250
|
-
onClick: (r) => ce(l, a),
|
|
2251
|
-
onMouseenter: (r) => ie({
|
|
2252
|
-
datapoint: l,
|
|
2253
|
-
relativeIndex: a,
|
|
2254
|
-
seriesIndex: l.seriesIndex,
|
|
2255
|
-
show: !0
|
|
2256
|
-
}),
|
|
2257
|
-
onMouseleave: (r) => fe({
|
|
2258
|
-
datapoint: l,
|
|
2259
|
-
seriesIndex: l.seriesIndex
|
|
2260
|
-
})
|
|
2261
|
-
}, ye(At(l)), 45, Qo)) : d("", !0),
|
|
2262
|
-
ee(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.name.show ? (u(), i("text", {
|
|
2263
|
-
key: 1,
|
|
2264
|
-
class: "vue-data-ui-datalabel-name",
|
|
2265
|
-
"text-anchor": Se(
|
|
2266
|
-
v.value[a].middlePoint
|
|
2267
|
-
),
|
|
2268
|
-
x: s(X)({
|
|
2269
|
-
initX: v.value[a].middlePoint.x,
|
|
2270
|
-
initY: v.value[a].middlePoint.y,
|
|
2271
|
-
offset: 42,
|
|
2272
|
-
centerX: n.value.width / 2,
|
|
2273
|
-
centerY: n.value.height / 2
|
|
2274
|
-
}).x,
|
|
2275
|
-
y: s(X)({
|
|
2276
|
-
initX: v.value[a].middlePoint.x,
|
|
2277
|
-
initY: v.value[a].middlePoint.y,
|
|
2278
|
-
offset: 42,
|
|
2279
|
-
centerX: n.value.width / 2,
|
|
2280
|
-
centerY: n.value.height / 2
|
|
2281
|
-
}).y + f.value * 1.2,
|
|
2282
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
2283
|
-
"font-size": f.value,
|
|
2284
|
-
style: L({
|
|
2285
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2286
|
-
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
2287
|
-
}),
|
|
2288
|
-
onClick: (r) => ce(l, a),
|
|
2289
|
-
onMouseenter: (r) => ie({
|
|
2290
|
-
datapoint: l,
|
|
2291
|
-
relativeIndex: a,
|
|
2292
|
-
seriesIndex: l.seriesIndex,
|
|
2293
|
-
show: !0
|
|
2294
|
-
}),
|
|
2295
|
-
onMouseleave: (r) => fe({
|
|
2296
|
-
datapoint: l,
|
|
2297
|
-
seriesIndex: l.seriesIndex
|
|
2298
|
-
}),
|
|
2299
|
-
innerHTML: s(wl)({
|
|
2300
|
-
content: l.name,
|
|
2301
|
-
fontSize: f.value,
|
|
2302
|
-
fill: e.value.style.chart.layout.labels.name.color,
|
|
2303
|
-
x: s(X)({
|
|
2304
|
-
initX: v.value[a].middlePoint.x,
|
|
2305
|
-
initY: v.value[a].middlePoint.y,
|
|
2306
|
-
offset: 42,
|
|
2307
|
-
centerX: n.value.width / 2,
|
|
2308
|
-
centerY: n.value.height / 2
|
|
2309
|
-
}).x,
|
|
2310
|
-
y: s(X)({
|
|
2311
|
-
initX: v.value[a].middlePoint.x,
|
|
2312
|
-
initY: v.value[a].middlePoint.y,
|
|
2313
|
-
offset: 42,
|
|
2314
|
-
centerX: n.value.width / 2,
|
|
2315
|
-
centerY: n.value.height / 2
|
|
2316
|
-
}).y + f.value * 1.2
|
|
2317
|
-
})
|
|
2318
|
-
}, null, 44, Jo)) : d("", !0)
|
|
2319
|
-
], 64))
|
|
2320
|
-
], 64)) : d("", !0)
|
|
2321
|
-
])),
|
|
2322
|
-
x.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (u(), i("g", Zo, [
|
|
2323
|
-
ee(l) && e.value.type === "classic" ? (u(), i("foreignObject", {
|
|
2324
|
-
key: 0,
|
|
2325
|
-
x: e.value.style.chart.comments.offsetX + (s(A)(l, !0).anchor === "end" ? s(A)(l).x - e.value.style.chart.comments.width : s(A)(l, !0).anchor === "middle" ? s(A)(l).x - e.value.style.chart.comments.width / 2 : s(A)(l).x),
|
|
2326
|
-
y: s(we)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
2327
|
-
width: e.value.style.chart.comments.width,
|
|
2328
|
-
height: "200",
|
|
2329
|
-
style: { overflow: "visible", "pointer-events": "none" }
|
|
2330
|
-
}, [
|
|
2331
|
-
w("div", null, [
|
|
2332
|
-
k(t.$slots, "plot-comment", {
|
|
2333
|
-
plot: {
|
|
2334
|
-
...l,
|
|
2335
|
-
textAlign: s(A)(
|
|
2336
|
-
l,
|
|
2337
|
-
!0,
|
|
2338
|
-
16,
|
|
2339
|
-
!0
|
|
2340
|
-
).anchor,
|
|
2341
|
-
flexAlign: s(A)(
|
|
2342
|
-
l,
|
|
2343
|
-
!0,
|
|
2344
|
-
16
|
|
2345
|
-
).anchor,
|
|
2346
|
-
isFirstLoad: Y.value
|
|
2347
|
-
}
|
|
2348
|
-
}, void 0, !0)
|
|
2349
|
-
])
|
|
2350
|
-
], 8, en)) : d("", !0),
|
|
2351
|
-
ee(l) && e.value.type === "polar" ? (u(), i("foreignObject", {
|
|
2352
|
-
key: 1,
|
|
2353
|
-
x: e.value.style.chart.comments.offsetX + (Se(
|
|
2354
|
-
v.value[a].middlePoint
|
|
2355
|
-
) === "end" ? s(X)({
|
|
2356
|
-
initX: v.value[a].middlePoint.x,
|
|
2357
|
-
initY: v.value[a].middlePoint.y,
|
|
2358
|
-
offset: 42,
|
|
2359
|
-
centerX: n.value.width / 2,
|
|
2360
|
-
centerY: n.value.height / 2
|
|
2361
|
-
}).x - e.value.style.chart.comments.width : Se(
|
|
2362
|
-
v.value[a].middlePoint
|
|
2363
|
-
) === "middle" ? s(X)({
|
|
2364
|
-
initX: v.value[a].middlePoint.x,
|
|
2365
|
-
initY: v.value[a].middlePoint.y,
|
|
2366
|
-
offset: 42,
|
|
2367
|
-
centerX: n.value.width / 2,
|
|
2368
|
-
centerY: n.value.height / 2
|
|
2369
|
-
}).x - e.value.style.chart.comments.width / 2 : s(X)({
|
|
2370
|
-
initX: v.value[a].middlePoint.x,
|
|
2371
|
-
initY: v.value[a].middlePoint.y,
|
|
2372
|
-
offset: 42,
|
|
2373
|
-
centerX: n.value.width / 2,
|
|
2374
|
-
centerY: n.value.height / 2
|
|
2375
|
-
}).x),
|
|
2376
|
-
y: Ml(v.value[a]) + e.value.style.chart.comments.offsetY,
|
|
2377
|
-
width: e.value.style.chart.comments.width,
|
|
2378
|
-
height: "200",
|
|
2379
|
-
style: L({
|
|
2380
|
-
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2381
|
-
overflow: "visible",
|
|
2382
|
-
pointerEvents: "none"
|
|
2383
|
-
})
|
|
2384
|
-
}, [
|
|
2385
|
-
w("div", null, [
|
|
2386
|
-
k(t.$slots, "plot-comment", {
|
|
2387
|
-
plot: {
|
|
2388
|
-
...l,
|
|
2389
|
-
textAlign: Se(
|
|
2390
|
-
v.value[a].middlePoint
|
|
2391
|
-
),
|
|
2392
|
-
flexAlign: Se(
|
|
2393
|
-
v.value[a].middlePoint
|
|
2394
|
-
),
|
|
2395
|
-
isFirstLoad: Y.value
|
|
2396
|
-
}
|
|
2397
|
-
}, void 0, !0)
|
|
2398
|
-
])
|
|
2399
|
-
], 12, tn)) : d("", !0)
|
|
2400
|
-
])) : d("", !0)
|
|
2401
|
-
], 10, Ro))), 128)),
|
|
2402
|
-
k(t.$slots, "svg", {
|
|
2403
|
-
svg: {
|
|
2404
|
-
...n.value,
|
|
2405
|
-
isPrintingImg: s(Ge) | s(xt) | Ve.value,
|
|
2406
|
-
isPrintingSvg: Ee.value
|
|
2407
|
-
}
|
|
2408
|
-
}, void 0, !0)
|
|
2409
|
-
], 512)
|
|
2410
|
-
], 46, Ha)),
|
|
2411
|
-
t.$slots.hint ? (u(), i("div", ln, [
|
|
2412
|
-
k(t.$slots, "hint", W(j({
|
|
2413
|
-
hint: e.value.a11y.translations.keyboardNavigation,
|
|
2414
|
-
isVisible: h.value
|
|
2415
|
-
})), void 0, !0)
|
|
2416
|
-
])) : d("", !0)
|
|
2417
|
-
]),
|
|
2418
|
-
t.$slots.watermark ? (u(), i("div", an, [
|
|
2419
|
-
k(t.$slots, "watermark", W(j({
|
|
2420
|
-
isPrinting: s(Ge) || s(xt) || Ve.value || Ee.value
|
|
2421
|
-
})), void 0, !0)
|
|
2422
|
-
])) : d("", !0),
|
|
2423
|
-
w("div", {
|
|
2424
|
-
id: `legend-bottom-${p.value}`
|
|
2425
|
-
}, null, 8, on),
|
|
2426
|
-
bt.value && (e.value.style.chart.legend.show || t.$slots.legend) ? (u(), ge(na, {
|
|
2427
|
-
key: 6,
|
|
2428
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
2429
|
-
}, [
|
|
2430
|
-
w("div", {
|
|
2431
|
-
ref_key: "chartLegend",
|
|
2432
|
-
ref: yt
|
|
2433
|
-
}, [
|
|
2434
|
-
k(t.$slots, "legend", { legend: nt.value }, () => [
|
|
2435
|
-
e.value.style.chart.legend.show ? (u(), ge(Ya, {
|
|
2436
|
-
key: `legend_${mt.value}`,
|
|
2437
|
-
legendSet: nt.value,
|
|
2438
|
-
config: Pl.value,
|
|
2439
|
-
onClickMarker: o[3] || (o[3] = ({ i: l }) => Ct(l)),
|
|
2440
|
-
isCursorPointer: xe.value
|
|
2441
|
-
}, Wt({
|
|
2442
|
-
item: _(({ legend: l, index: a }) => [
|
|
2443
|
-
w("div", {
|
|
2444
|
-
style: L(`opacity:${N.value.includes(a) ? 0.5 : 1}`),
|
|
2445
|
-
onClick: (r) => l.segregate()
|
|
2446
|
-
}, ye(l.display), 13, nn)
|
|
2447
|
-
]),
|
|
2448
|
-
legendToggle: _(() => [
|
|
2449
|
-
nt.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !s(ue) ? (u(), ge(Ba, {
|
|
2450
|
-
key: 0,
|
|
2451
|
-
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2452
|
-
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
2453
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
2454
|
-
checked: N.value.length > 0,
|
|
2455
|
-
isCursorPointer: xe.value,
|
|
2456
|
-
onToggle: Cl
|
|
2457
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : d("", !0)
|
|
2458
|
-
]),
|
|
2459
|
-
_: 2
|
|
2460
|
-
}, [
|
|
2461
|
-
t.$slots.pattern ? {
|
|
2462
|
-
name: "legend-pattern",
|
|
2463
|
-
fn: _(({ legend: l, index: a }) => [
|
|
2464
|
-
Tt(Fa, {
|
|
2465
|
-
shape: l.shape,
|
|
2466
|
-
radius: 30,
|
|
2467
|
-
stroke: "none",
|
|
2468
|
-
plot: { x: 30, y: 30 },
|
|
2469
|
-
fill: `url(#pattern_${p.value}_${a})`
|
|
2470
|
-
}, null, 8, ["shape", "fill"])
|
|
2471
|
-
]),
|
|
2472
|
-
key: "0"
|
|
2473
|
-
} : void 0
|
|
2474
|
-
]), 1032, ["legendSet", "config", "isCursorPointer"])) : d("", !0)
|
|
2475
|
-
], !0)
|
|
2476
|
-
], 512)
|
|
2477
|
-
], 8, ["to"])) : d("", !0),
|
|
2478
|
-
t.$slots.source ? (u(), i("div", {
|
|
2479
|
-
key: 7,
|
|
2480
|
-
ref_key: "source",
|
|
2481
|
-
ref: Ze,
|
|
2482
|
-
dir: "auto"
|
|
2483
|
-
}, [
|
|
2484
|
-
k(t.$slots, "source", {}, void 0, !0)
|
|
2485
|
-
], 512)) : d("", !0),
|
|
2486
|
-
t.$slots.hollow ? (u(), i("div", sn, [
|
|
2487
|
-
k(t.$slots, "hollow", W(j({
|
|
2488
|
-
total: te.value,
|
|
2489
|
-
average: Vt.value,
|
|
2490
|
-
dataset: U.value
|
|
2491
|
-
})), void 0, !0)
|
|
2492
|
-
])) : d("", !0),
|
|
2493
|
-
Tt(s(Ke), {
|
|
2494
|
-
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
2495
|
-
show: x.value.showTooltip && oe.value,
|
|
2496
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
2497
|
-
color: e.value.style.chart.tooltip.color,
|
|
2498
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
2499
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
2500
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
2501
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
2502
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
2503
|
-
position: e.value.style.chart.tooltip.position,
|
|
2504
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
2505
|
-
parent: M.value,
|
|
2506
|
-
content: se.value,
|
|
2507
|
-
isCustom: st.value,
|
|
2508
|
-
isFullscreen: Xe.value,
|
|
2509
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
2510
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
2511
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
2512
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold,
|
|
2513
|
-
isA11yMode: G.value === "keyboard",
|
|
2514
|
-
a11yPosition: wt.value
|
|
2515
|
-
}, {
|
|
2516
|
-
"tooltip-before": _(() => [
|
|
2517
|
-
k(t.$slots, "tooltip-before", W(j({ ..._t.value })), void 0, !0)
|
|
2518
|
-
]),
|
|
2519
|
-
tooltip: _(() => [
|
|
2520
|
-
k(t.$slots, "tooltip", W(j({ ..._t.value })), void 0, !0)
|
|
2521
|
-
]),
|
|
2522
|
-
"tooltip-after": _(() => [
|
|
2523
|
-
k(t.$slots, "tooltip-after", W(j({ ..._t.value })), void 0, !0)
|
|
2524
|
-
]),
|
|
2525
|
-
_: 3
|
|
2526
|
-
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
2527
|
-
B.value && e.value.userOptions.buttons.table ? (u(), ge(sa(rt.value.component), jt({ key: 9 }, rt.value.props, {
|
|
2528
|
-
ref_key: "tableUnit",
|
|
2529
|
-
ref: ze,
|
|
2530
|
-
onClose: rl
|
|
2531
|
-
}), Wt({
|
|
2532
|
-
content: _(() => [
|
|
2533
|
-
(u(), ge(s(dt), {
|
|
2534
|
-
key: `table_${pt.value}`,
|
|
2535
|
-
colNames: We.value.colNames,
|
|
2536
|
-
head: We.value.head,
|
|
2537
|
-
body: We.value.body,
|
|
2538
|
-
config: We.value.config,
|
|
2539
|
-
title: e.value.table.useDialog ? "" : rt.value.title,
|
|
2540
|
-
withCloseButton: !e.value.table.useDialog,
|
|
2541
|
-
isCursorPointer: xe.value,
|
|
2542
|
-
onClose: rl
|
|
2543
|
-
}, {
|
|
2544
|
-
th: _(({ th: l }) => [
|
|
2545
|
-
w("div", {
|
|
2546
|
-
innerHTML: l,
|
|
2547
|
-
style: { display: "flex", "align-items": "center" }
|
|
2548
|
-
}, null, 8, un)
|
|
2549
|
-
]),
|
|
2550
|
-
td: _(({ td: l }) => [
|
|
2551
|
-
hl(ye(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : s(pe)(
|
|
2552
|
-
e.value.style.chart.layout.labels.percentage.formatter,
|
|
2553
|
-
l,
|
|
2554
|
-
s(ve)({
|
|
2555
|
-
v: l,
|
|
2556
|
-
s: "%",
|
|
2557
|
-
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
2558
|
-
})
|
|
2559
|
-
) : s(pe)(
|
|
2560
|
-
e.value.style.chart.layout.labels.value.formatter,
|
|
2561
|
-
l,
|
|
2562
|
-
s(ve)({
|
|
2563
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
2564
|
-
v: l,
|
|
2565
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
2566
|
-
r: e.value.style.chart.layout.labels.value.rounding
|
|
2567
|
-
})
|
|
2568
|
-
)), 1)
|
|
2569
|
-
]),
|
|
2570
|
-
_: 1
|
|
2571
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
2572
|
-
]),
|
|
2573
|
-
_: 2
|
|
2574
|
-
}, [
|
|
2575
|
-
e.value.table.useDialog ? {
|
|
2576
|
-
name: "title",
|
|
2577
|
-
fn: _(() => [
|
|
2578
|
-
hl(ye(rt.value.title), 1)
|
|
2579
|
-
]),
|
|
2580
|
-
key: "0"
|
|
2581
|
-
} : void 0,
|
|
2582
|
-
e.value.table.useDialog ? {
|
|
2583
|
-
name: "actions",
|
|
2584
|
-
fn: _(() => [
|
|
2585
|
-
w("button", {
|
|
2586
|
-
tabindex: "0",
|
|
2587
|
-
class: "vue-ui-user-options-button",
|
|
2588
|
-
onClick: o[4] || (o[4] = (l) => Et(e.value.userOptions.callbacks.csv)),
|
|
2589
|
-
style: L({ cursor: xe.value ? "pointer" : "default" })
|
|
2590
|
-
}, [
|
|
2591
|
-
Tt(s(vt), {
|
|
2592
|
-
name: "fileCsv",
|
|
2593
|
-
stroke: rt.value.props.color
|
|
2594
|
-
}, null, 8, ["stroke"])
|
|
2595
|
-
], 4)
|
|
2596
|
-
]),
|
|
2597
|
-
key: "1"
|
|
2598
|
-
} : void 0
|
|
2599
|
-
]), 1040)) : d("", !0),
|
|
2600
|
-
k(t.$slots, "skeleton", {}, () => [
|
|
2601
|
-
s(ue) ? (u(), ge(Ta, { key: 0 })) : d("", !0)
|
|
2602
|
-
], !0)
|
|
2603
|
-
], 46, Ra));
|
|
2604
|
-
}
|
|
2605
|
-
}, Ln = /* @__PURE__ */ Xa(rn, [["__scopeId", "data-v-6fd375e6"]]);
|
|
2606
|
-
export {
|
|
2607
|
-
Ln as default
|
|
2608
|
-
};
|