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
|
@@ -0,0 +1,1231 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { B as t, G as n, H as r, J as i, Lt as a, Mt as ee, S as te, St as ne, Tt as o, X as re, i as ie, jt as ae, kt as oe, nt as se, ot as ce, pt as le, t as ue, v as de, x as fe, y as pe, zt as me } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as he } from "./useConfig-KnOLHtlJ.js";
|
|
4
|
+
import { t as ge } from "./usePrinter-CMLF900n.js";
|
|
5
|
+
import { n as _e, t as ve } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as ye } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as be } from "./useNestedProp-CcxL1gUU.js";
|
|
8
|
+
import { t as xe } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as Se } from "./img-NMY-_LiJ.js";
|
|
10
|
+
import { n as Ce } from "./Title-ByyzJzpc.js";
|
|
11
|
+
import { t as we } from "./Shape-Dbug7CtK.js";
|
|
12
|
+
import { t as Te } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
13
|
+
import { c as Ee } from "./canvas-lib-DTaADQOK.js";
|
|
14
|
+
import { t as De } from "./useResponsive-CrAInupd.js";
|
|
15
|
+
import { t as Oe } from "./BaseLegendToggle-BvPOFMVZ.js";
|
|
16
|
+
import { t as ke } from "./A11yDataTable-q2-8fSlJ.js";
|
|
17
|
+
import { t as Ae } from "./useUserOptionState-CjPJPTg2.js";
|
|
18
|
+
import { t as je } from "./useChartAccessibility-Do37qcw2.js";
|
|
19
|
+
import { t as Me } from "./labelUtils-BiSegLOT.js";
|
|
20
|
+
import { t as Ne } from "./Legend-BPb8i4aC.js";
|
|
21
|
+
import { t as Pe } from "./vue_ui_rings-DXC1VeX5.js";
|
|
22
|
+
import { Fragment as Fe, Teleport as Ie, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as f, guardReactiveProps as p, mergeProps as Be, nextTick as Ve, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as He, onMounted as Ue, openBlock as _, ref as v, renderList as We, renderSlot as y, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as qe, toRefs as Je, unref as b, useSlots as Ye, watch as Xe, withCtx as x } from "vue";
|
|
23
|
+
//#region src/components/vue-ui-rings.vue
|
|
24
|
+
var Ze = /* @__PURE__ */ e({ default: () => bt }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
|
|
25
|
+
"xmlns",
|
|
26
|
+
"viewBox",
|
|
27
|
+
"aria-describedby"
|
|
28
|
+
], rt = ["width", "height"], it = ["id"], at = ["stop-color"], ot = ["stop-color"], st = { key: 1 }, ct = [
|
|
29
|
+
"stroke",
|
|
30
|
+
"cx",
|
|
31
|
+
"cy",
|
|
32
|
+
"r",
|
|
33
|
+
"fill"
|
|
34
|
+
], lt = [
|
|
35
|
+
"stroke",
|
|
36
|
+
"stroke-width",
|
|
37
|
+
"cx",
|
|
38
|
+
"cy",
|
|
39
|
+
"r",
|
|
40
|
+
"fill"
|
|
41
|
+
], ut = [
|
|
42
|
+
"stroke",
|
|
43
|
+
"stroke-width",
|
|
44
|
+
"cx",
|
|
45
|
+
"cy",
|
|
46
|
+
"r",
|
|
47
|
+
"fill"
|
|
48
|
+
], dt = [
|
|
49
|
+
"cx",
|
|
50
|
+
"cy",
|
|
51
|
+
"r",
|
|
52
|
+
"onMouseenter",
|
|
53
|
+
"onMouseleave",
|
|
54
|
+
"onClick"
|
|
55
|
+
], ft = [
|
|
56
|
+
"x",
|
|
57
|
+
"y",
|
|
58
|
+
"width",
|
|
59
|
+
"height",
|
|
60
|
+
"fill",
|
|
61
|
+
"rx"
|
|
62
|
+
], pt = [
|
|
63
|
+
"cx",
|
|
64
|
+
"cy",
|
|
65
|
+
"r",
|
|
66
|
+
"fill",
|
|
67
|
+
"stroke"
|
|
68
|
+
], mt = [
|
|
69
|
+
"x",
|
|
70
|
+
"y",
|
|
71
|
+
"text-anchor",
|
|
72
|
+
"font-size",
|
|
73
|
+
"fill",
|
|
74
|
+
"font-weight",
|
|
75
|
+
"onMouseenter",
|
|
76
|
+
"onMouseleave",
|
|
77
|
+
"onClick",
|
|
78
|
+
"innerHTML"
|
|
79
|
+
], ht = {
|
|
80
|
+
key: 0,
|
|
81
|
+
style: {
|
|
82
|
+
position: "absolute",
|
|
83
|
+
top: "100%",
|
|
84
|
+
left: "0",
|
|
85
|
+
width: "100%"
|
|
86
|
+
},
|
|
87
|
+
"data-dom-to-png-ignore": "",
|
|
88
|
+
"aria-hidden": "true"
|
|
89
|
+
}, gt = {
|
|
90
|
+
key: 5,
|
|
91
|
+
class: "vue-data-ui-watermark"
|
|
92
|
+
}, _t = ["id"], vt = ["onClick"], yt = ["innerHTML"], bt = /* @__PURE__ */ Te({
|
|
93
|
+
__name: "vue-ui-rings",
|
|
94
|
+
props: {
|
|
95
|
+
config: {
|
|
96
|
+
type: Object,
|
|
97
|
+
default() {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
dataset: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default() {
|
|
104
|
+
return [];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
emits: ["selectLegend", "copyAlt"],
|
|
109
|
+
setup(e, { expose: Te, emit: Ze }) {
|
|
110
|
+
let bt = f(() => import("./Tooltip-V6Z0Ko-1.js")), xt = f(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), St = f(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), Ct = f(() => import("./DataTable-ZG4GX2Zg.js")), wt = f(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), Tt = f(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), Et = f(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), Dt = f(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_rings: Ot } = he(), { isThemeValid: kt, warnInvalidTheme: At } = xe(), jt = Ye(), S = e, C = v(!1), Mt = s(() => !!S.dataset && S.dataset.length), w = v(r()), T = v(!1), Nt = v(""), E = v(null), Pt = v(0), D = v(null), Ft = v(null), It = v(null), Lt = v(null), Rt = v(null), zt = v(0), Bt = v(0), Vt = v(0), Ht = v(!1), Ut = v(!1), O = v(null), Wt = v(null), Gt = v(!1), Kt = v(!1), k = v(null), qt = v({
|
|
111
|
+
x: 0,
|
|
112
|
+
y: 0
|
|
113
|
+
}), A = v("pointer"), Jt = v(!1), j = v(tn()), M = s(() => j.value.userOptions.useCursorPointer), Yt = s(() => me({
|
|
114
|
+
defaultConfig: {
|
|
115
|
+
userOptions: { show: !1 },
|
|
116
|
+
table: { show: !1 },
|
|
117
|
+
style: { chart: {
|
|
118
|
+
backgroundColor: "#99999930",
|
|
119
|
+
layout: {
|
|
120
|
+
rings: {
|
|
121
|
+
stroke: "#6A6A6A",
|
|
122
|
+
gradient: { underlayerColor: "#FFFFFF" }
|
|
123
|
+
},
|
|
124
|
+
labels: { dataLabels: { show: !1 } }
|
|
125
|
+
},
|
|
126
|
+
legend: { backgroundColor: "transparent" }
|
|
127
|
+
} }
|
|
128
|
+
},
|
|
129
|
+
userConfig: j.value.skeletonConfig ?? {}
|
|
130
|
+
})), { loading: N, FINAL_DATASET: Xt, manualLoading: Zt } = _e({
|
|
131
|
+
...Je(S),
|
|
132
|
+
FINAL_CONFIG: j,
|
|
133
|
+
prepareConfig: tn,
|
|
134
|
+
skeletonDataset: S.config?.skeletonDataset ?? [
|
|
135
|
+
{
|
|
136
|
+
name: "_",
|
|
137
|
+
values: [13],
|
|
138
|
+
color: "#808080"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "_",
|
|
142
|
+
values: [8],
|
|
143
|
+
color: "#969696"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "_",
|
|
147
|
+
values: [5],
|
|
148
|
+
color: "#ADADAD"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "_",
|
|
152
|
+
values: [3],
|
|
153
|
+
color: "#C4C4C4"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "_",
|
|
157
|
+
values: [2],
|
|
158
|
+
color: "#DBDBDB"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
skeletonConfig: me({
|
|
162
|
+
defaultConfig: j.value,
|
|
163
|
+
userConfig: Yt.value
|
|
164
|
+
})
|
|
165
|
+
}), { userOptionsVisible: Qt, setUserOptionsVisibility: $t, keepUserOptionState: en } = Ae({ config: j.value }), { svgRef: P } = je({ config: j.value.style.chart.title });
|
|
166
|
+
function tn() {
|
|
167
|
+
let e = be({
|
|
168
|
+
userConfig: S.config,
|
|
169
|
+
defaultConfig: Ot
|
|
170
|
+
}), t = e.theme;
|
|
171
|
+
if (!t) return e;
|
|
172
|
+
if (!kt.value(e)) return At(e), e;
|
|
173
|
+
let n = be({
|
|
174
|
+
userConfig: Pe[t] || S.config,
|
|
175
|
+
defaultConfig: e
|
|
176
|
+
});
|
|
177
|
+
return {
|
|
178
|
+
...be({
|
|
179
|
+
userConfig: S.config,
|
|
180
|
+
defaultConfig: n
|
|
181
|
+
}),
|
|
182
|
+
customPalette: e.customPalette.length ? e.customPalette : a[e.theme] || o
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
Xe(() => S.config, (e) => {
|
|
186
|
+
N.value || (j.value = tn()), Qt.value = !j.value.userOptions.showOnChartHover, an(), zt.value += 1, Bt.value += 1, Vt.value += 1, R.value.showTable = j.value.table.show, R.value.showTooltip = j.value.style.chart.tooltip.show, R.value.showLabels = j.value.style.chart.layout.labels.dataLabels.show, z.value.width = j.value.style.chart.size, z.value.height = j.value.style.chart.size;
|
|
187
|
+
}, { deep: !0 });
|
|
188
|
+
let nn = s(() => {
|
|
189
|
+
let { markers: e } = j.value.style.chart.layout.labels.dataLabels, t = K.value / 2, n = R.value.showLabels ? e.position === "left" ? t : -t : 0, r = R.value.showLabels ? z.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
|
|
190
|
+
return {
|
|
191
|
+
x: j.value.responsive ? i : n / j.value.style.chart.size * z.value.width,
|
|
192
|
+
y: 0 / j.value.style.chart.size * z.value.height
|
|
193
|
+
};
|
|
194
|
+
}), F = s(() => ({
|
|
195
|
+
x: z.value.width / 2 + nn.value.x,
|
|
196
|
+
y: z.value.height / 2 + nn.value.y
|
|
197
|
+
}));
|
|
198
|
+
Xe(() => S.dataset, (e) => {
|
|
199
|
+
Array.isArray(e) && e.length > 0 && (Zt.value = !1);
|
|
200
|
+
}, { deep: !0 });
|
|
201
|
+
let I = Ke(null), L = Ke(null);
|
|
202
|
+
Ue(() => {
|
|
203
|
+
Ut.value = !0, an();
|
|
204
|
+
});
|
|
205
|
+
let rn = s(() => !!j.value.debug);
|
|
206
|
+
function an() {
|
|
207
|
+
if (ne(S.dataset) ? (re({
|
|
208
|
+
componentName: "VueUiRings",
|
|
209
|
+
type: "dataset",
|
|
210
|
+
debug: rn.value
|
|
211
|
+
}), Zt.value = !0) : S.dataset.forEach((e, t) => {
|
|
212
|
+
e.values.length || (re({
|
|
213
|
+
componentName: "VueUiRings",
|
|
214
|
+
type: "dataset",
|
|
215
|
+
debug: rn.value
|
|
216
|
+
}), Zt.value = !0), ce({
|
|
217
|
+
datasetObject: e,
|
|
218
|
+
requiredAttributes: ["name", "values"]
|
|
219
|
+
}).forEach((e) => {
|
|
220
|
+
re({
|
|
221
|
+
componentName: "VueUiRings",
|
|
222
|
+
type: "datasetSerieAttribute",
|
|
223
|
+
property: e,
|
|
224
|
+
index: t,
|
|
225
|
+
debug: rn.value
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
}), ne(S.dataset) || (Zt.value = j.value.loading), j.value.responsive) {
|
|
229
|
+
let e = Ee(() => {
|
|
230
|
+
Ht.value = !0;
|
|
231
|
+
let { width: e, height: t } = De({
|
|
232
|
+
chart: D.value,
|
|
233
|
+
title: j.value.style.chart.title.text ? Ft.value : null,
|
|
234
|
+
legend: j.value.style.chart.legend.show ? It.value : null,
|
|
235
|
+
source: Lt.value,
|
|
236
|
+
noTitle: Rt.value
|
|
237
|
+
});
|
|
238
|
+
requestAnimationFrame(() => {
|
|
239
|
+
z.value.width = e, z.value.height = t - 12, Ht.value = !1;
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = D.value.parentNode, I.value.observe(L.value);
|
|
243
|
+
}
|
|
244
|
+
setTimeout(() => {
|
|
245
|
+
C.value = !0;
|
|
246
|
+
}, 600);
|
|
247
|
+
}
|
|
248
|
+
He(() => {
|
|
249
|
+
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
|
|
250
|
+
});
|
|
251
|
+
let { isPrinting: on, isImaging: sn, generatePdf: cn, generateImage: ln } = ge({
|
|
252
|
+
elementId: `rings_${w.value}`,
|
|
253
|
+
fileName: j.value.style.chart.title.text || "vue-ui-rings",
|
|
254
|
+
options: j.value.userOptions.print
|
|
255
|
+
}), un = s(() => j.value.userOptions.show && !j.value.style.chart.title.text), dn = s(() => fe(j.value.customPalette)), R = v({
|
|
256
|
+
showTable: j.value.table.show,
|
|
257
|
+
showTooltip: j.value.style.chart.tooltip.show,
|
|
258
|
+
showLabels: j.value.style.chart.layout.labels.dataLabels.show
|
|
259
|
+
});
|
|
260
|
+
Xe(j, () => {
|
|
261
|
+
R.value = {
|
|
262
|
+
showTable: j.value.table.show,
|
|
263
|
+
showTooltip: j.value.style.chart.tooltip.show,
|
|
264
|
+
showLabels: j.value.style.chart.layout.labels.dataLabels.show
|
|
265
|
+
};
|
|
266
|
+
}, { immediate: !0 });
|
|
267
|
+
let z = v({
|
|
268
|
+
height: j.value.style.chart.size,
|
|
269
|
+
width: j.value.style.chart.size
|
|
270
|
+
}), fn = s(() => Math.min(z.value.height, z.value.width)), pn = Ze, B = v([]);
|
|
271
|
+
function mn() {
|
|
272
|
+
B.value.length ? B.value = [] : U.value.forEach((e) => {
|
|
273
|
+
B.value.push(e.uid);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
function V(e) {
|
|
277
|
+
if (B.value.includes(e)) B.value = B.value.filter((t) => t !== e);
|
|
278
|
+
else {
|
|
279
|
+
if (B.value.length === H.value.length - 1) return;
|
|
280
|
+
B.value.push(e);
|
|
281
|
+
}
|
|
282
|
+
pn("selectLegend", G.value.map((e) => ({
|
|
283
|
+
name: e.name,
|
|
284
|
+
color: e.color,
|
|
285
|
+
value: e.value
|
|
286
|
+
})));
|
|
287
|
+
}
|
|
288
|
+
function hn(e) {
|
|
289
|
+
return H.value.length ? H.value.find((t) => t.name === e) || (j.value.debug && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (j.value.debug && console.warn("VueUiRings - There are no series to show."), null);
|
|
290
|
+
}
|
|
291
|
+
function gn(e) {
|
|
292
|
+
let t = hn(e);
|
|
293
|
+
t !== null && B.value.includes(t.uid) && V(t.uid);
|
|
294
|
+
}
|
|
295
|
+
function _n(e) {
|
|
296
|
+
let t = hn(e);
|
|
297
|
+
t !== null && (B.value.includes(t.uid) || V(t.uid));
|
|
298
|
+
}
|
|
299
|
+
let vn = s(() => Math.max(...H.value.filter((e) => !B.value.includes(e.uid)).map(({ value: e }) => e)));
|
|
300
|
+
function yn(e) {
|
|
301
|
+
return e / vn.value;
|
|
302
|
+
}
|
|
303
|
+
let H = s(() => Xt.value.map(({ values: e, name: t, color: n = null }, i) => {
|
|
304
|
+
let a = oe(e).reduce((e, t) => e + t, 0);
|
|
305
|
+
return {
|
|
306
|
+
name: t,
|
|
307
|
+
color: n || pe(n) || dn.value[i] || o[i] || o[i % o.length],
|
|
308
|
+
value: a,
|
|
309
|
+
proportion: a / Xt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
310
|
+
uid: r(),
|
|
311
|
+
absoluteIndex: i
|
|
312
|
+
};
|
|
313
|
+
})), U = s(() => H.value.map((e, t) => {
|
|
314
|
+
let r = ie(j.value.style.chart.layout.labels.dataLabels.formatter, e.value, n({
|
|
315
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
316
|
+
v: e.value,
|
|
317
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
318
|
+
r: j.value.style.chart.legend.roundingValue
|
|
319
|
+
}), {
|
|
320
|
+
datapoint: e,
|
|
321
|
+
index: t
|
|
322
|
+
}), i = isNaN(e.value / W.value) ? "-" : n({
|
|
323
|
+
v: e.value / W.value * 100,
|
|
324
|
+
s: "%",
|
|
325
|
+
r: j.value.style.chart.legend.roundingPercentage
|
|
326
|
+
}), a = wn({
|
|
327
|
+
showVal: j.value.style.chart.legend.showValue,
|
|
328
|
+
showPercentage: j.value.style.chart.legend.showPercentage,
|
|
329
|
+
val: r,
|
|
330
|
+
percentage: B.value.includes(e.uid) ? "-%" : i
|
|
331
|
+
});
|
|
332
|
+
return {
|
|
333
|
+
...e,
|
|
334
|
+
shape: "circle",
|
|
335
|
+
opacity: B.value.includes(e.uid) ? .5 : 1,
|
|
336
|
+
segregate: () => V(e.uid),
|
|
337
|
+
isSegregated: B.value.includes(e.uid),
|
|
338
|
+
display: `${e.name}${j.value.style.chart.legend.showPercentage || j.value.style.chart.legend.showValue ? ": " : ""}${a}`
|
|
339
|
+
};
|
|
340
|
+
}).toSorted((e, t) => t.value - e.value)), bn = s(() => ({
|
|
341
|
+
cy: "rings-div-legend",
|
|
342
|
+
backgroundColor: j.value.style.chart.legend.backgroundColor,
|
|
343
|
+
color: j.value.style.chart.legend.color,
|
|
344
|
+
fontSize: j.value.style.chart.legend.fontSize,
|
|
345
|
+
paddingBottom: 12,
|
|
346
|
+
fontWeight: j.value.style.chart.legend.bold ? "bold" : ""
|
|
347
|
+
})), W = s(() => H.value.filter((e) => !B.value.includes(e.uid)).map(({ value: e }) => e).reduce((e, t) => e + t, 0)), G = s(() => H.value.filter((e) => !B.value.includes(e.uid)).map(({ name: e, value: t, color: n = null, uid: r, absoluteIndex: i }, a) => ({
|
|
348
|
+
absoluteIndex: i,
|
|
349
|
+
uid: r,
|
|
350
|
+
name: e,
|
|
351
|
+
color: n || pe(n) || dn.value[a] || o[a] || o[a % o.length],
|
|
352
|
+
value: t,
|
|
353
|
+
proportion: yn(t),
|
|
354
|
+
percentage: t / W.value * 100,
|
|
355
|
+
strokeWidth: j.value.style.chart.layout.rings.strokeWidth * yn(t)
|
|
356
|
+
})).toSorted((e, t) => t.value - e.value));
|
|
357
|
+
function xn() {
|
|
358
|
+
return G.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
|
|
359
|
+
name: e,
|
|
360
|
+
color: t,
|
|
361
|
+
value: n,
|
|
362
|
+
absoluteValues: r,
|
|
363
|
+
percentage: i
|
|
364
|
+
}));
|
|
365
|
+
}
|
|
366
|
+
let K = s(() => fn.value - j.value.style.chart.layout.rings.strokeWidth * 2);
|
|
367
|
+
function Sn(e, t) {
|
|
368
|
+
j.value.events.datapointClick && j.value.events.datapointClick({
|
|
369
|
+
datapoint: e,
|
|
370
|
+
seriesIndex: t
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
function Cn(e, t) {
|
|
374
|
+
E.value = null, T.value = !1, k.value = null, A.value = "pointer", j.value.events.datapointLeave && j.value.events.datapointLeave({
|
|
375
|
+
datapoint: e,
|
|
376
|
+
seriesIndex: t
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
function wn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
380
|
+
let i = j.value.style.chart.layout.labels.dataLabels;
|
|
381
|
+
return Me({
|
|
382
|
+
config: i,
|
|
383
|
+
val: e,
|
|
384
|
+
percentage: t,
|
|
385
|
+
showVal: n,
|
|
386
|
+
showPercentage: r
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
function Tn(e) {
|
|
390
|
+
let t = j.value.style.chart.layout.labels.dataLabels, r = ie(t.formatter, e.value, n({
|
|
391
|
+
p: t.prefix,
|
|
392
|
+
v: e.value,
|
|
393
|
+
s: t.suffix,
|
|
394
|
+
r: t.roundingValue
|
|
395
|
+
})), i = n({
|
|
396
|
+
v: e.percentage,
|
|
397
|
+
s: "%",
|
|
398
|
+
r: t.roundingPercentage
|
|
399
|
+
});
|
|
400
|
+
return `${e.name}\n${wn({
|
|
401
|
+
val: r,
|
|
402
|
+
percentage: i,
|
|
403
|
+
showVal: t.showValue,
|
|
404
|
+
showPercentage: t.showPercentage
|
|
405
|
+
})}`;
|
|
406
|
+
}
|
|
407
|
+
function q(e) {
|
|
408
|
+
return de(K.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : K.value * e.proportion / 2 * .9);
|
|
409
|
+
}
|
|
410
|
+
function J(e, t) {
|
|
411
|
+
return t === 0 ? F.value.y : F.value.y + K.value * G.value[0].proportion / 2 - K.value * e.proportion / 2 - 2 * (t + 1);
|
|
412
|
+
}
|
|
413
|
+
function Y(e, t) {
|
|
414
|
+
let n = j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(K.value / 2) : K.value / 2;
|
|
415
|
+
return {
|
|
416
|
+
x: F.value.x + n,
|
|
417
|
+
y: J(e, t) - q(e)
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
let En = v(null);
|
|
421
|
+
function Dn(e, t, r = "pointer") {
|
|
422
|
+
if (j.value.events.datapointEnter && j.value.events.datapointEnter({
|
|
423
|
+
datapoint: e,
|
|
424
|
+
seriesIndex: t
|
|
425
|
+
}), B.value.length === S.dataset.length) return;
|
|
426
|
+
En.value = {
|
|
427
|
+
datapoint: e,
|
|
428
|
+
seriesIndex: t,
|
|
429
|
+
series: G.value,
|
|
430
|
+
config: j.value
|
|
431
|
+
}, E.value = t, k.value = t, A.value = r;
|
|
432
|
+
let i = G.value[t], a = j.value.style.chart.tooltip.customFormat;
|
|
433
|
+
if (le(a) && se(() => a({
|
|
434
|
+
seriesIndex: t,
|
|
435
|
+
datapoint: e,
|
|
436
|
+
series: G.value,
|
|
437
|
+
config: j.value
|
|
438
|
+
}))) Nt.value = a({
|
|
439
|
+
seriesIndex: t,
|
|
440
|
+
datapoint: e,
|
|
441
|
+
series: G.value,
|
|
442
|
+
config: j.value
|
|
443
|
+
});
|
|
444
|
+
else {
|
|
445
|
+
let r = "";
|
|
446
|
+
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${j.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${i.name}</div>`, r += `<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="${i.color}" />${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${e.absoluteIndex})" />` : ""}</svg>`, r += `<b>${wn({
|
|
447
|
+
showVal: j.value.style.chart.tooltip.showValue,
|
|
448
|
+
showPercentage: j.value.style.chart.tooltip.showPercentage,
|
|
449
|
+
val: `<span>${ie(j.value.style.chart.layout.labels.dataLabels.formatter, i.value, n({
|
|
450
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
451
|
+
v: i.value,
|
|
452
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
453
|
+
r: j.value.style.chart.tooltip.roundingValue
|
|
454
|
+
}), {
|
|
455
|
+
datapoint: e,
|
|
456
|
+
seriesIndex: t
|
|
457
|
+
})}</span>`,
|
|
458
|
+
percentage: n({
|
|
459
|
+
v: i.value / W.value * 100,
|
|
460
|
+
s: "%",
|
|
461
|
+
r: j.value.style.chart.tooltip.roundingPercentage
|
|
462
|
+
})
|
|
463
|
+
})}</b></div>`, Nt.value = r;
|
|
464
|
+
}
|
|
465
|
+
T.value = !0;
|
|
466
|
+
}
|
|
467
|
+
let X = s(() => ({
|
|
468
|
+
head: G.value.map((e) => ({
|
|
469
|
+
name: e.name,
|
|
470
|
+
color: e.color
|
|
471
|
+
})),
|
|
472
|
+
body: G.value.map((e) => e.value)
|
|
473
|
+
})), Z = s(() => {
|
|
474
|
+
let e = [
|
|
475
|
+
" <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>",
|
|
476
|
+
n({
|
|
477
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
478
|
+
v: W.value,
|
|
479
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
480
|
+
r: j.value.table.td.roundingValue
|
|
481
|
+
}),
|
|
482
|
+
"100%"
|
|
483
|
+
], t = X.value.head.map((e, t) => [
|
|
484
|
+
{
|
|
485
|
+
color: e.color,
|
|
486
|
+
name: e.name
|
|
487
|
+
},
|
|
488
|
+
n({
|
|
489
|
+
p: j.value.style.chart.layout.labels.dataLabels.prefix,
|
|
490
|
+
v: X.value.body[t],
|
|
491
|
+
s: j.value.style.chart.layout.labels.dataLabels.suffix,
|
|
492
|
+
r: j.value.table.td.roundingValue
|
|
493
|
+
}),
|
|
494
|
+
isNaN(X.value.body[t] / W.value) ? "-" : (X.value.body[t] / W.value * 100).toFixed(j.value.table.td.roundingPercentage) + "%"
|
|
495
|
+
]);
|
|
496
|
+
return {
|
|
497
|
+
head: e,
|
|
498
|
+
body: t,
|
|
499
|
+
a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
|
|
500
|
+
config: {
|
|
501
|
+
th: {
|
|
502
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
503
|
+
color: j.value.table.th.color,
|
|
504
|
+
outline: j.value.table.th.outline
|
|
505
|
+
},
|
|
506
|
+
td: {
|
|
507
|
+
backgroundColor: j.value.table.td.backgroundColor,
|
|
508
|
+
color: j.value.table.td.color,
|
|
509
|
+
outline: j.value.table.td.outline
|
|
510
|
+
},
|
|
511
|
+
breakpoint: j.value.table.responsiveBreakpoint
|
|
512
|
+
},
|
|
513
|
+
colNames: [
|
|
514
|
+
j.value.table.columnNames.series,
|
|
515
|
+
j.value.table.columnNames.value,
|
|
516
|
+
j.value.table.columnNames.percentage
|
|
517
|
+
]
|
|
518
|
+
};
|
|
519
|
+
});
|
|
520
|
+
function On(e = null) {
|
|
521
|
+
Ve(() => {
|
|
522
|
+
let t = X.value.head.map((e, t) => [
|
|
523
|
+
[e.name],
|
|
524
|
+
[X.value.body[t]],
|
|
525
|
+
[isNaN(X.value.body[t] / W.value) ? "-" : X.value.body[t] / W.value * 100]
|
|
526
|
+
]), n = te([
|
|
527
|
+
[j.value.style.chart.title.text],
|
|
528
|
+
[j.value.style.chart.title.subtitle.text],
|
|
529
|
+
[
|
|
530
|
+
[""],
|
|
531
|
+
["val"],
|
|
532
|
+
["%"]
|
|
533
|
+
]
|
|
534
|
+
].concat(t));
|
|
535
|
+
e ? e(n) : i({
|
|
536
|
+
csvContent: n,
|
|
537
|
+
title: j.value.style.chart.title.text || "vue-ui-rings"
|
|
538
|
+
});
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
let Q = v(!1);
|
|
542
|
+
function kn(e) {
|
|
543
|
+
Q.value = e, Pt.value += 1;
|
|
544
|
+
}
|
|
545
|
+
function An() {
|
|
546
|
+
R.value.showTable = !R.value.showTable;
|
|
547
|
+
}
|
|
548
|
+
function jn() {
|
|
549
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
550
|
+
}
|
|
551
|
+
function Mn() {
|
|
552
|
+
R.value.showLabels = !R.value.showLabels;
|
|
553
|
+
}
|
|
554
|
+
let $ = v(!1);
|
|
555
|
+
function Nn() {
|
|
556
|
+
$.value = !$.value;
|
|
557
|
+
}
|
|
558
|
+
async function Pn({ scale: e = 2 } = {}) {
|
|
559
|
+
if (!D.value) return;
|
|
560
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
561
|
+
domElement: D.value,
|
|
562
|
+
base64: !0,
|
|
563
|
+
img: !0,
|
|
564
|
+
scale: e
|
|
565
|
+
});
|
|
566
|
+
return {
|
|
567
|
+
imageUri: i,
|
|
568
|
+
base64: a,
|
|
569
|
+
title: j.value.style.chart.title.text,
|
|
570
|
+
width: t,
|
|
571
|
+
height: n,
|
|
572
|
+
aspectRatio: r
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
let Fn = s(() => {
|
|
576
|
+
let e = j.value.table.useDialog && !j.value.table.show, t = R.value.showTable;
|
|
577
|
+
return {
|
|
578
|
+
component: e ? Dt : St,
|
|
579
|
+
title: `${j.value.style.chart.title.text}${j.value.style.chart.title.subtitle.text ? `: ${j.value.style.chart.title.subtitle.text}` : ""}`,
|
|
580
|
+
props: e ? {
|
|
581
|
+
backgroundColor: j.value.table.th.backgroundColor,
|
|
582
|
+
color: j.value.table.th.color,
|
|
583
|
+
headerColor: j.value.table.th.color,
|
|
584
|
+
headerBg: j.value.table.th.backgroundColor,
|
|
585
|
+
isFullscreen: Q.value,
|
|
586
|
+
fullscreenParent: D.value,
|
|
587
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
588
|
+
isCursorPointer: M.value
|
|
589
|
+
} : {
|
|
590
|
+
hideDetails: !0,
|
|
591
|
+
config: {
|
|
592
|
+
open: t,
|
|
593
|
+
maxHeight: 1e4,
|
|
594
|
+
body: {
|
|
595
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
596
|
+
color: j.value.style.chart.color
|
|
597
|
+
},
|
|
598
|
+
head: {
|
|
599
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
600
|
+
color: j.value.style.chart.color
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
});
|
|
606
|
+
Xe(() => R.value.showTable, (e) => {
|
|
607
|
+
j.value.table.show || (e && j.value.table.useDialog && O.value ? O.value.open() : "close" in O.value && O.value.close());
|
|
608
|
+
});
|
|
609
|
+
function In() {
|
|
610
|
+
R.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
|
|
611
|
+
}
|
|
612
|
+
let Ln = s(() => U.value.map((e) => ({
|
|
613
|
+
...e,
|
|
614
|
+
name: e.display
|
|
615
|
+
}))), Rn = s(() => j.value.style.chart.backgroundColor), zn = s(() => j.value.style.chart.legend), { exportSvg: Bn, getSvg: Vn } = ye({
|
|
616
|
+
svg: P,
|
|
617
|
+
title: s(() => j.value.style.chart.title),
|
|
618
|
+
legend: zn,
|
|
619
|
+
legendItems: Ln,
|
|
620
|
+
backgroundColor: Rn
|
|
621
|
+
});
|
|
622
|
+
async function Hn({ isCb: e }) {
|
|
623
|
+
Kt.value = !0, await Ve();
|
|
624
|
+
try {
|
|
625
|
+
if (e) {
|
|
626
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Vn();
|
|
627
|
+
await Promise.resolve(j.value.userOptions.callbacks.svg({
|
|
628
|
+
blob: e,
|
|
629
|
+
url: t,
|
|
630
|
+
text: n,
|
|
631
|
+
dataUrl: r
|
|
632
|
+
}));
|
|
633
|
+
} else await Promise.resolve(Bn());
|
|
634
|
+
} finally {
|
|
635
|
+
Kt.value = !1;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function Un(e) {
|
|
639
|
+
if (e?.stage === "start") {
|
|
640
|
+
Gt.value = !0;
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
if (e?.stage === "end") {
|
|
644
|
+
Gt.value = !1;
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
ln();
|
|
648
|
+
}
|
|
649
|
+
async function Wn() {
|
|
650
|
+
if (pn("copyAlt", {
|
|
651
|
+
config: j.value,
|
|
652
|
+
dataset: G.value
|
|
653
|
+
}), !j.value.userOptions.callbacks.altCopy) {
|
|
654
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
658
|
+
config: j.value,
|
|
659
|
+
dataset: G.value
|
|
660
|
+
}));
|
|
661
|
+
}
|
|
662
|
+
function Gn() {
|
|
663
|
+
k.value = null, Jt.value = !0;
|
|
664
|
+
}
|
|
665
|
+
function Kn() {
|
|
666
|
+
k.value = null, A.value = "pointer", T.value = !1, E.value = null, Jt.value = !1;
|
|
667
|
+
}
|
|
668
|
+
function qn(e) {
|
|
669
|
+
if (!P.value || $.value || document.activeElement !== P.value || !G.value.length || B.value.length === S.dataset.length) return;
|
|
670
|
+
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
671
|
+
if (!t && !n && !r && !i) return;
|
|
672
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
673
|
+
k.value = null, A.value = "pointer", T.value = !1, E.value = null;
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
if (r) {
|
|
677
|
+
if (k.value === null) return;
|
|
678
|
+
let e = G.value[k.value];
|
|
679
|
+
if (!e) return;
|
|
680
|
+
Sn(e, k.value);
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
let a = k.value;
|
|
684
|
+
a === null || a < 0 || a >= G.value.length ? a = n ? 0 : G.value.length - 1 : n ? (a += 1, a >= G.value.length && (a = 0)) : t && (--a, a < 0 && (a = G.value.length - 1));
|
|
685
|
+
let ee = G.value[a];
|
|
686
|
+
ee && (Jn(a), Dn(ee, a, "keyboard"));
|
|
687
|
+
}
|
|
688
|
+
function Jn(e) {
|
|
689
|
+
if (!Number.isFinite(e) || !P.value) return;
|
|
690
|
+
let t = G.value[e];
|
|
691
|
+
if (!t) return;
|
|
692
|
+
let n = Y(t, e), r = P.value.getBoundingClientRect();
|
|
693
|
+
qt.value = {
|
|
694
|
+
x: r.left + n.x / z.value.width * r.width,
|
|
695
|
+
y: r.top + n.y / z.value.height * r.height
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
let Yn = s(() => ({
|
|
699
|
+
headers: Z.value?.colNames ?? [],
|
|
700
|
+
rows: Z.value?.a11yBody ?? []
|
|
701
|
+
}));
|
|
702
|
+
return Te({
|
|
703
|
+
getData: xn,
|
|
704
|
+
getImage: Pn,
|
|
705
|
+
generatePdf: cn,
|
|
706
|
+
generateCsv: On,
|
|
707
|
+
generateImage: ln,
|
|
708
|
+
generateSvg: Hn,
|
|
709
|
+
hideSeries: _n,
|
|
710
|
+
showSeries: gn,
|
|
711
|
+
toggleTable: An,
|
|
712
|
+
toggleTooltip: jn,
|
|
713
|
+
toggleAnnotator: Nn,
|
|
714
|
+
toggleFullscreen: kn,
|
|
715
|
+
toggleLabels: Mn,
|
|
716
|
+
copyAlt: Wn
|
|
717
|
+
}), (e, n) => (_(), u("div", {
|
|
718
|
+
ref_key: "ringsChart",
|
|
719
|
+
ref: D,
|
|
720
|
+
class: m(`vue-data-ui-component vue-ui-rings ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
721
|
+
style: g(`font-family:${j.value.style.fontFamily};text-align:center;width:100%;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
|
|
722
|
+
id: `rings_${w.value}`,
|
|
723
|
+
onMouseleave: n[2] ||= (e) => {
|
|
724
|
+
E.value = null, T.value = !1, b($t)(!1);
|
|
725
|
+
},
|
|
726
|
+
onMouseenter: n[3] ||= () => b($t)(!0)
|
|
727
|
+
}, [
|
|
728
|
+
d("div", {
|
|
729
|
+
id: `chart-instructions-${w.value}`,
|
|
730
|
+
class: "sr-only"
|
|
731
|
+
}, [d("p", null, qe(j.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
|
|
732
|
+
Yn.value?.rows?.length ? (_(), c(ke, {
|
|
733
|
+
key: 0,
|
|
734
|
+
uid: w.value,
|
|
735
|
+
head: Yn.value.headers,
|
|
736
|
+
body: Yn.value.rows,
|
|
737
|
+
notice: j.value.a11y.translations.tableAvailable,
|
|
738
|
+
caption: j.value.a11y.translations.tableCaption
|
|
739
|
+
}, null, 8, [
|
|
740
|
+
"uid",
|
|
741
|
+
"head",
|
|
742
|
+
"body",
|
|
743
|
+
"notice",
|
|
744
|
+
"caption"
|
|
745
|
+
])) : l("", !0),
|
|
746
|
+
j.value.userOptions.buttons.annotator ? (_(), c(b(wt), {
|
|
747
|
+
key: 1,
|
|
748
|
+
svgRef: b(P),
|
|
749
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
750
|
+
color: j.value.style.chart.color,
|
|
751
|
+
active: $.value,
|
|
752
|
+
isCursorPointer: M.value,
|
|
753
|
+
onClose: Nn
|
|
754
|
+
}, {
|
|
755
|
+
"annotator-action-close": x(() => [y(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
756
|
+
"annotator-action-color": x(({ color: t }) => [y(e.$slots, "annotator-action-color", h(p({ color: t })), void 0, !0)]),
|
|
757
|
+
"annotator-action-draw": x(({ mode: t }) => [y(e.$slots, "annotator-action-draw", h(p({ mode: t })), void 0, !0)]),
|
|
758
|
+
"annotator-action-undo": x(({ disabled: t }) => [y(e.$slots, "annotator-action-undo", h(p({ disabled: t })), void 0, !0)]),
|
|
759
|
+
"annotator-action-redo": x(({ disabled: t }) => [y(e.$slots, "annotator-action-redo", h(p({ disabled: t })), void 0, !0)]),
|
|
760
|
+
"annotator-action-delete": x(({ disabled: t }) => [y(e.$slots, "annotator-action-delete", h(p({ disabled: t })), void 0, !0)]),
|
|
761
|
+
_: 3
|
|
762
|
+
}, 8, [
|
|
763
|
+
"svgRef",
|
|
764
|
+
"backgroundColor",
|
|
765
|
+
"color",
|
|
766
|
+
"active",
|
|
767
|
+
"isCursorPointer"
|
|
768
|
+
])) : l("", !0),
|
|
769
|
+
un.value ? (_(), u("div", {
|
|
770
|
+
key: 2,
|
|
771
|
+
ref_key: "noTitle",
|
|
772
|
+
ref: Rt,
|
|
773
|
+
class: "vue-data-ui-no-title-space",
|
|
774
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
775
|
+
}, null, 512)) : l("", !0),
|
|
776
|
+
j.value.style.chart.title.text ? (_(), u("div", {
|
|
777
|
+
key: 3,
|
|
778
|
+
ref_key: "chartTitle",
|
|
779
|
+
ref: Ft,
|
|
780
|
+
style: "width:100%;background:transparent"
|
|
781
|
+
}, [(_(), c(Ce, {
|
|
782
|
+
key: `title_${zt.value}`,
|
|
783
|
+
config: {
|
|
784
|
+
title: {
|
|
785
|
+
cy: "rings-div-title",
|
|
786
|
+
...j.value.style.chart.title
|
|
787
|
+
},
|
|
788
|
+
subtitle: {
|
|
789
|
+
cy: "rings-div-subtitle",
|
|
790
|
+
...j.value.style.chart.title.subtitle
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}, null, 8, ["config"]))], 512)) : l("", !0),
|
|
794
|
+
d("div", { id: `legend-top-${w.value}` }, null, 8, et),
|
|
795
|
+
j.value.userOptions.show && Mt.value && (b(en) || b(Qt)) ? (_(), c(b(Tt), {
|
|
796
|
+
ref_key: "userOptionsRef",
|
|
797
|
+
ref: Wt,
|
|
798
|
+
key: `user_options_${Pt.value}`,
|
|
799
|
+
backgroundColor: j.value.style.chart.backgroundColor,
|
|
800
|
+
color: j.value.style.chart.color,
|
|
801
|
+
isPrinting: b(on),
|
|
802
|
+
isImaging: b(sn),
|
|
803
|
+
uid: w.value,
|
|
804
|
+
hasTooltip: j.value.userOptions.buttons.tooltip && j.value.style.chart.tooltip.show,
|
|
805
|
+
hasPdf: j.value.userOptions.buttons.pdf,
|
|
806
|
+
hasXls: j.value.userOptions.buttons.csv,
|
|
807
|
+
hasImg: j.value.userOptions.buttons.img,
|
|
808
|
+
hasSvg: j.value.userOptions.buttons.svg,
|
|
809
|
+
hasTable: j.value.userOptions.buttons.table,
|
|
810
|
+
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
811
|
+
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
812
|
+
hasLabel: j.value.userOptions.buttons.labels,
|
|
813
|
+
isTooltip: R.value.showTooltip,
|
|
814
|
+
isFullscreen: Q.value,
|
|
815
|
+
titles: { ...j.value.userOptions.buttonTitles },
|
|
816
|
+
chartElement: D.value,
|
|
817
|
+
position: j.value.userOptions.position,
|
|
818
|
+
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
819
|
+
isAnnotation: $.value,
|
|
820
|
+
callbacks: j.value.userOptions.callbacks,
|
|
821
|
+
printScale: j.value.userOptions.print.scale,
|
|
822
|
+
tableDialog: j.value.table.useDialog,
|
|
823
|
+
isCursorPointer: M.value,
|
|
824
|
+
onToggleFullscreen: kn,
|
|
825
|
+
onGeneratePdf: b(cn),
|
|
826
|
+
onGenerateCsv: On,
|
|
827
|
+
onGenerateImage: Un,
|
|
828
|
+
onGenerateSvg: Hn,
|
|
829
|
+
onToggleTable: An,
|
|
830
|
+
onToggleTooltip: jn,
|
|
831
|
+
onToggleAnnotator: Nn,
|
|
832
|
+
onToggleLabels: Mn,
|
|
833
|
+
onCopyAlt: Wn,
|
|
834
|
+
style: g({ visibility: b(en) ? b(Qt) ? "visible" : "hidden" : "visible" })
|
|
835
|
+
}, Le({ _: 2 }, [
|
|
836
|
+
e.$slots.menuIcon ? {
|
|
837
|
+
name: "menuIcon",
|
|
838
|
+
fn: x(({ isOpen: t, color: n }) => [y(e.$slots, "menuIcon", h(p({
|
|
839
|
+
isOpen: t,
|
|
840
|
+
color: n
|
|
841
|
+
})), void 0, !0)]),
|
|
842
|
+
key: "0"
|
|
843
|
+
} : void 0,
|
|
844
|
+
e.$slots.optionTooltip ? {
|
|
845
|
+
name: "optionTooltip",
|
|
846
|
+
fn: x(() => [y(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
847
|
+
key: "1"
|
|
848
|
+
} : void 0,
|
|
849
|
+
e.$slots.optionPdf ? {
|
|
850
|
+
name: "optionPdf",
|
|
851
|
+
fn: x(() => [y(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
852
|
+
key: "2"
|
|
853
|
+
} : void 0,
|
|
854
|
+
e.$slots.optionCsv ? {
|
|
855
|
+
name: "optionCsv",
|
|
856
|
+
fn: x(() => [y(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
857
|
+
key: "3"
|
|
858
|
+
} : void 0,
|
|
859
|
+
e.$slots.optionImg ? {
|
|
860
|
+
name: "optionImg",
|
|
861
|
+
fn: x(() => [y(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
862
|
+
key: "4"
|
|
863
|
+
} : void 0,
|
|
864
|
+
e.$slots.optionSvg ? {
|
|
865
|
+
name: "optionSvg",
|
|
866
|
+
fn: x(() => [y(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
867
|
+
key: "5"
|
|
868
|
+
} : void 0,
|
|
869
|
+
e.$slots.optionTable ? {
|
|
870
|
+
name: "optionTable",
|
|
871
|
+
fn: x(() => [y(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
872
|
+
key: "6"
|
|
873
|
+
} : void 0,
|
|
874
|
+
e.$slots.optionLabels ? {
|
|
875
|
+
name: "optionLabels",
|
|
876
|
+
fn: x(() => [y(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
877
|
+
key: "7"
|
|
878
|
+
} : void 0,
|
|
879
|
+
e.$slots.optionFullscreen ? {
|
|
880
|
+
name: "optionFullscreen",
|
|
881
|
+
fn: x(({ toggleFullscreen: t, isFullscreen: n }) => [y(e.$slots, "optionFullscreen", h(p({
|
|
882
|
+
toggleFullscreen: t,
|
|
883
|
+
isFullscreen: n
|
|
884
|
+
})), void 0, !0)]),
|
|
885
|
+
key: "8"
|
|
886
|
+
} : void 0,
|
|
887
|
+
e.$slots.optionAnnotator ? {
|
|
888
|
+
name: "optionAnnotator",
|
|
889
|
+
fn: x(({ toggleAnnotator: t, isAnnotator: n }) => [y(e.$slots, "optionAnnotator", h(p({
|
|
890
|
+
toggleAnnotator: t,
|
|
891
|
+
isAnnotator: n
|
|
892
|
+
})), void 0, !0)]),
|
|
893
|
+
key: "9"
|
|
894
|
+
} : void 0,
|
|
895
|
+
e.$slots.optionAltCopy ? {
|
|
896
|
+
name: "optionAltCopy",
|
|
897
|
+
fn: x(({ altCopy: t }) => [y(e.$slots, "optionAltCopy", h(p({ altCopy: t })), void 0, !0)]),
|
|
898
|
+
key: "10"
|
|
899
|
+
} : void 0
|
|
900
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.hasLabel.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : l("", !0),
|
|
901
|
+
d("div", tt, [(_(), u("svg", {
|
|
902
|
+
ref_key: "svgRef",
|
|
903
|
+
ref: P,
|
|
904
|
+
xmlns: b(ue),
|
|
905
|
+
class: m({
|
|
906
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
907
|
+
"vue-data-ui-fulscreen--off": !Q.value,
|
|
908
|
+
resizing: Ht.value || b(N)
|
|
909
|
+
}),
|
|
910
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
911
|
+
style: g(`max-width:100%;overflow:hidden;background:transparent;color:${j.value.style.chart.color}`),
|
|
912
|
+
"aria-describedby": `chart-instructions-${w.value}`,
|
|
913
|
+
tabindex: "0",
|
|
914
|
+
onFocus: Gn,
|
|
915
|
+
onBlur: Kn,
|
|
916
|
+
onKeydown: qn
|
|
917
|
+
}, [
|
|
918
|
+
ze(b(Et)),
|
|
919
|
+
e.$slots["chart-background"] ? (_(), u("foreignObject", {
|
|
920
|
+
key: 0,
|
|
921
|
+
x: 0,
|
|
922
|
+
y: 0,
|
|
923
|
+
width: z.value.width <= 0 ? 10 : z.value.width,
|
|
924
|
+
height: z.value.height <= 0 ? 10 : z.value.height,
|
|
925
|
+
style: { pointerEvents: "none" }
|
|
926
|
+
}, [y(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : l("", !0),
|
|
927
|
+
d("defs", null, [(_(!0), u(Fe, null, We(G.value, (e, t) => (_(), u("radialGradient", {
|
|
928
|
+
cx: "50%",
|
|
929
|
+
cy: "30%",
|
|
930
|
+
r: "50%",
|
|
931
|
+
fx: "50%",
|
|
932
|
+
fy: "50%",
|
|
933
|
+
id: `gradient_${w.value}_${t}`
|
|
934
|
+
}, [d("stop", {
|
|
935
|
+
offset: "0%",
|
|
936
|
+
"stop-color": b(ae)(b(ee)(e.color, .05), 100 - j.value.style.chart.layout.rings.gradient.intensity)
|
|
937
|
+
}, null, 8, at), d("stop", {
|
|
938
|
+
offset: "100%",
|
|
939
|
+
"stop-color": e.color
|
|
940
|
+
}, null, 8, ot)], 8, it))), 256))]),
|
|
941
|
+
e.$slots.pattern ? (_(), u("g", st, [(_(!0), u(Fe, null, We(G.value, (t) => (_(), u("defs", null, [y(e.$slots, "pattern", Be({ ref_for: !0 }, {
|
|
942
|
+
seriesIndex: t.absoluteIndex,
|
|
943
|
+
patternId: `pattern_${w.value}_${t.absoluteIndex}`
|
|
944
|
+
}), void 0, !0)]))), 256))])) : l("", !0),
|
|
945
|
+
(_(!0), u(Fe, null, We(G.value, (n, r) => (_(), u("g", null, [
|
|
946
|
+
d("circle", {
|
|
947
|
+
class: m({
|
|
948
|
+
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
949
|
+
"vue-rings-item-onload": !C.value && j.value.useCssAnimation && !b(N),
|
|
950
|
+
"vue-ui-rings-opacity": E.value !== null && E.value !== r
|
|
951
|
+
}),
|
|
952
|
+
style: g(`animation-delay:${r * 100}ms`),
|
|
953
|
+
stroke: j.value.style.chart.layout.rings.stroke,
|
|
954
|
+
cx: F.value.x,
|
|
955
|
+
cy: J(n, r),
|
|
956
|
+
r: q(n),
|
|
957
|
+
fill: j.value.style.chart.layout.rings.gradient.underlayerColor
|
|
958
|
+
}, null, 14, ct),
|
|
959
|
+
d("circle", {
|
|
960
|
+
class: m({
|
|
961
|
+
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
962
|
+
"vue-rings-item-onload": !C.value && j.value.useCssAnimation && !b(N),
|
|
963
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
964
|
+
"vue-ui-rings-blur": E.value !== null && E.value !== r
|
|
965
|
+
}),
|
|
966
|
+
style: g(`animation-delay:${r * 100}ms`),
|
|
967
|
+
stroke: j.value.style.chart.layout.rings.stroke,
|
|
968
|
+
"stroke-width": n.strokeWidth < .5 ? .5 : n.strokeWidth,
|
|
969
|
+
cx: F.value.x,
|
|
970
|
+
cy: J(n, r),
|
|
971
|
+
r: q(n),
|
|
972
|
+
fill: j.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${r})` : n.color
|
|
973
|
+
}, null, 14, lt),
|
|
974
|
+
e.$slots.pattern ? (_(), u("circle", {
|
|
975
|
+
key: 0,
|
|
976
|
+
class: m({
|
|
977
|
+
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
978
|
+
"vue-rings-item-onload": !C.value && j.value.useCssAnimation && !b(N),
|
|
979
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
980
|
+
"vue-ui-rings-blur": E.value !== null && E.value !== r
|
|
981
|
+
}),
|
|
982
|
+
style: g(`animation-delay:${r * 100}ms`),
|
|
983
|
+
stroke: j.value.style.chart.layout.rings.stroke,
|
|
984
|
+
"stroke-width": n.strokeWidth < .5 ? .5 : n.strokeWidth,
|
|
985
|
+
cx: F.value.x,
|
|
986
|
+
cy: J(n, r),
|
|
987
|
+
r: q(n),
|
|
988
|
+
fill: `url(#pattern_${w.value}_${n.absoluteIndex})`
|
|
989
|
+
}, null, 14, ut)) : l("", !0),
|
|
990
|
+
d("circle", {
|
|
991
|
+
stroke: "none",
|
|
992
|
+
cx: F.value.x,
|
|
993
|
+
cy: J(n, r),
|
|
994
|
+
r: q(n),
|
|
995
|
+
fill: "transparent",
|
|
996
|
+
onMouseenter: (e) => Dn(n, r, "pointer"),
|
|
997
|
+
onMouseleave: (e) => Cn(n, r),
|
|
998
|
+
onClick: (e) => Sn(n, r)
|
|
999
|
+
}, null, 40, dt),
|
|
1000
|
+
R.value.showLabels ? (_(), u(Fe, { key: 1 }, [
|
|
1001
|
+
d("rect", {
|
|
1002
|
+
x: j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? Y(n, r).x : F.value.x,
|
|
1003
|
+
y: Y(n, r).y - j.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
1004
|
+
width: Math.abs(F.value.x - Y(n, r).x),
|
|
1005
|
+
height: j.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1006
|
+
fill: j.value.style.chart.layout.labels.dataLabels.markers.stroke,
|
|
1007
|
+
rx: j.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1008
|
+
class: m({
|
|
1009
|
+
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
1010
|
+
"vue-rings-item-onload": !C.value && j.value.useCssAnimation && !b(N),
|
|
1011
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1012
|
+
"vue-ui-rings-blur": E.value !== null && E.value !== r
|
|
1013
|
+
})
|
|
1014
|
+
}, null, 10, ft),
|
|
1015
|
+
d("circle", {
|
|
1016
|
+
cx: Y(n, r).x,
|
|
1017
|
+
cy: Y(n, r).y,
|
|
1018
|
+
r: j.value.style.chart.layout.labels.dataLabels.markers.radius,
|
|
1019
|
+
fill: n.color,
|
|
1020
|
+
stroke: j.value.style.chart.backgroundColor,
|
|
1021
|
+
class: m({
|
|
1022
|
+
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
1023
|
+
"vue-rings-item-onload": !C.value && j.value.useCssAnimation && !b(N),
|
|
1024
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1025
|
+
"vue-ui-rings-blur": E.value !== null && E.value !== r
|
|
1026
|
+
})
|
|
1027
|
+
}, null, 10, pt),
|
|
1028
|
+
d("text", {
|
|
1029
|
+
x: Y(n, r).x + (j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -j.value.style.chart.layout.labels.dataLabels.offsetX : j.value.style.chart.layout.labels.dataLabels.offsetX),
|
|
1030
|
+
y: Y(n, r).y + j.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
1031
|
+
"text-anchor": j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
|
|
1032
|
+
"font-size": j.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1033
|
+
fill: j.value.style.chart.layout.labels.dataLabels.color,
|
|
1034
|
+
"font-weight": j.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
|
|
1035
|
+
class: m({
|
|
1036
|
+
"vue-ui-rings-item": C.value && j.value.useCssAnimation,
|
|
1037
|
+
"vue-rings-item-onload": !C.value && j.value.useCssAnimation && !b(N),
|
|
1038
|
+
"vue-ui-rings-shadow": j.value.style.chart.layout.rings.useShadow,
|
|
1039
|
+
"vue-ui-rings-blur": E.value !== null && E.value !== r
|
|
1040
|
+
}),
|
|
1041
|
+
onMouseenter: (e) => Dn(n, r, "pointer"),
|
|
1042
|
+
onMouseleave: (e) => Cn(n, r),
|
|
1043
|
+
onClick: (e) => Sn(n, r),
|
|
1044
|
+
innerHTML: b(t)({
|
|
1045
|
+
content: Tn(n),
|
|
1046
|
+
fontSize: j.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1047
|
+
fill: j.value.style.chart.layout.labels.dataLabels.color,
|
|
1048
|
+
x: Y(n, r).x + (j.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -j.value.style.chart.layout.labels.dataLabels.offsetX - 6 - j.value.style.chart.layout.labels.dataLabels.markers.radius : j.value.style.chart.layout.labels.dataLabels.offsetX + 6 + j.value.style.chart.layout.labels.dataLabels.markers.radius),
|
|
1049
|
+
y: Y(n, r).y + j.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
1050
|
+
translateY: !0
|
|
1051
|
+
})
|
|
1052
|
+
}, null, 42, mt)
|
|
1053
|
+
], 64)) : l("", !0)
|
|
1054
|
+
]))), 256)),
|
|
1055
|
+
y(e.$slots, "svg", { svg: {
|
|
1056
|
+
...z.value,
|
|
1057
|
+
isPrintingImg: b(on) || b(sn) || Gt.value,
|
|
1058
|
+
isPrintingSvg: Kt.value
|
|
1059
|
+
} }, void 0, !0)
|
|
1060
|
+
], 46, nt)), e.$slots.hint ? (_(), u("div", ht, [y(e.$slots, "hint", h(p({
|
|
1061
|
+
hint: j.value.a11y.translations.keyboardNavigation,
|
|
1062
|
+
isVisible: Jt.value
|
|
1063
|
+
})), void 0, !0)])) : l("", !0)]),
|
|
1064
|
+
e.$slots.watermark ? (_(), u("div", gt, [y(e.$slots, "watermark", h(p({ isPrinting: b(on) || b(sn) || Gt.value || Kt.value })), void 0, !0)])) : l("", !0),
|
|
1065
|
+
d("div", { id: `legend-bottom-${w.value}` }, null, 8, _t),
|
|
1066
|
+
Ut.value && (j.value.style.chart.legend.show || e.$slots.legend) ? (_(), c(Ie, {
|
|
1067
|
+
key: 6,
|
|
1068
|
+
to: j.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
1069
|
+
}, [d("div", {
|
|
1070
|
+
ref_key: "chartLegend",
|
|
1071
|
+
ref: It
|
|
1072
|
+
}, [y(e.$slots, "legend", { legend: U.value }, () => [j.value.style.chart.legend.show ? (_(), c(Ne, {
|
|
1073
|
+
key: `legend_${Vt.value}`,
|
|
1074
|
+
legendSet: U.value,
|
|
1075
|
+
config: bn.value,
|
|
1076
|
+
isCursorPointer: M.value,
|
|
1077
|
+
onClickMarker: n[0] ||= ({ legend: e }) => V(e.uid)
|
|
1078
|
+
}, Le({
|
|
1079
|
+
item: x(({ legend: e, index: t }) => [b(N) ? l("", !0) : (_(), u("div", {
|
|
1080
|
+
key: 0,
|
|
1081
|
+
onClick: (t) => V(e.uid),
|
|
1082
|
+
style: g(`opacity:${B.value.includes(e.uid) ? .5 : 1}`)
|
|
1083
|
+
}, qe(e.display), 13, vt))]),
|
|
1084
|
+
legendToggle: x(() => [U.value.length > 2 && j.value.style.chart.legend.selectAllToggle.show && !b(N) ? (_(), c(Oe, {
|
|
1085
|
+
key: 0,
|
|
1086
|
+
backgroundColor: j.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1087
|
+
color: j.value.style.chart.legend.selectAllToggle.color,
|
|
1088
|
+
fontSize: j.value.style.chart.legend.fontSize,
|
|
1089
|
+
checked: B.value.length > 0,
|
|
1090
|
+
isCursorPointer: M.value,
|
|
1091
|
+
onToggle: mn
|
|
1092
|
+
}, null, 8, [
|
|
1093
|
+
"backgroundColor",
|
|
1094
|
+
"color",
|
|
1095
|
+
"fontSize",
|
|
1096
|
+
"checked",
|
|
1097
|
+
"isCursorPointer"
|
|
1098
|
+
])) : l("", !0)]),
|
|
1099
|
+
_: 2
|
|
1100
|
+
}, [e.$slots.pattern ? {
|
|
1101
|
+
name: "legend-pattern",
|
|
1102
|
+
fn: x(({ legend: e, index: t }) => [ze(we, {
|
|
1103
|
+
shape: e.shape,
|
|
1104
|
+
radius: 30,
|
|
1105
|
+
stroke: "none",
|
|
1106
|
+
plot: {
|
|
1107
|
+
x: 30,
|
|
1108
|
+
y: 30
|
|
1109
|
+
},
|
|
1110
|
+
fill: `url(#pattern_${w.value}_${t})`
|
|
1111
|
+
}, null, 8, ["shape", "fill"])]),
|
|
1112
|
+
key: "0"
|
|
1113
|
+
} : void 0]), 1032, [
|
|
1114
|
+
"legendSet",
|
|
1115
|
+
"config",
|
|
1116
|
+
"isCursorPointer"
|
|
1117
|
+
])) : l("", !0)], !0)], 512)], 8, ["to"])) : l("", !0),
|
|
1118
|
+
e.$slots.source ? (_(), u("div", {
|
|
1119
|
+
key: 7,
|
|
1120
|
+
ref_key: "source",
|
|
1121
|
+
ref: Lt,
|
|
1122
|
+
dir: "auto"
|
|
1123
|
+
}, [y(e.$slots, "source", {}, void 0, !0)], 512)) : l("", !0),
|
|
1124
|
+
ze(b(bt), {
|
|
1125
|
+
teleportTo: j.value.style.chart.tooltip.teleportTo,
|
|
1126
|
+
show: R.value.showTooltip && T.value && B.value.length < S.dataset.length,
|
|
1127
|
+
backgroundColor: j.value.style.chart.tooltip.backgroundColor,
|
|
1128
|
+
color: j.value.style.chart.tooltip.color,
|
|
1129
|
+
borderRadius: j.value.style.chart.tooltip.borderRadius,
|
|
1130
|
+
borderColor: j.value.style.chart.tooltip.borderColor,
|
|
1131
|
+
borderWidth: j.value.style.chart.tooltip.borderWidth,
|
|
1132
|
+
fontSize: j.value.style.chart.tooltip.fontSize,
|
|
1133
|
+
backgroundOpacity: j.value.style.chart.tooltip.backgroundOpacity,
|
|
1134
|
+
position: j.value.style.chart.tooltip.position,
|
|
1135
|
+
offsetY: j.value.style.chart.tooltip.offsetY,
|
|
1136
|
+
parent: D.value,
|
|
1137
|
+
content: Nt.value,
|
|
1138
|
+
isFullscreen: Q.value,
|
|
1139
|
+
isCustom: j.value.style.chart.tooltip.customFormat && typeof j.value.style.chart.tooltip.customFormat == "function",
|
|
1140
|
+
smooth: j.value.style.chart.tooltip.smooth,
|
|
1141
|
+
backdropFilter: j.value.style.chart.tooltip.backdropFilter,
|
|
1142
|
+
smoothForce: j.value.style.chart.tooltip.smoothForce,
|
|
1143
|
+
smoothSnapThreshold: j.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1144
|
+
isA11yMode: A.value === "keyboard",
|
|
1145
|
+
a11yPosition: qt.value
|
|
1146
|
+
}, {
|
|
1147
|
+
"tooltip-before": x(() => [y(e.$slots, "tooltip-before", h(p({ ...En.value })), void 0, !0)]),
|
|
1148
|
+
tooltip: x(() => [y(e.$slots, "tooltip", h(p({ ...En.value })), void 0, !0)]),
|
|
1149
|
+
"tooltip-after": x(() => [y(e.$slots, "tooltip-after", h(p({ ...En.value })), void 0, !0)]),
|
|
1150
|
+
_: 3
|
|
1151
|
+
}, 8, [
|
|
1152
|
+
"teleportTo",
|
|
1153
|
+
"show",
|
|
1154
|
+
"backgroundColor",
|
|
1155
|
+
"color",
|
|
1156
|
+
"borderRadius",
|
|
1157
|
+
"borderColor",
|
|
1158
|
+
"borderWidth",
|
|
1159
|
+
"fontSize",
|
|
1160
|
+
"backgroundOpacity",
|
|
1161
|
+
"position",
|
|
1162
|
+
"offsetY",
|
|
1163
|
+
"parent",
|
|
1164
|
+
"content",
|
|
1165
|
+
"isFullscreen",
|
|
1166
|
+
"isCustom",
|
|
1167
|
+
"smooth",
|
|
1168
|
+
"backdropFilter",
|
|
1169
|
+
"smoothForce",
|
|
1170
|
+
"smoothSnapThreshold",
|
|
1171
|
+
"isA11yMode",
|
|
1172
|
+
"a11yPosition"
|
|
1173
|
+
]),
|
|
1174
|
+
Mt.value && j.value.userOptions.buttons.table ? (_(), c(Ge(Fn.value.component), Be({ key: 8 }, Fn.value.props, {
|
|
1175
|
+
ref_key: "tableUnit",
|
|
1176
|
+
ref: O,
|
|
1177
|
+
onClose: In
|
|
1178
|
+
}), Le({
|
|
1179
|
+
content: x(() => [(_(), c(b(Ct), {
|
|
1180
|
+
key: `table_${Bt.value}`,
|
|
1181
|
+
colNames: Z.value.colNames,
|
|
1182
|
+
head: Z.value.head,
|
|
1183
|
+
body: Z.value.body,
|
|
1184
|
+
config: Z.value.config,
|
|
1185
|
+
title: j.value.table.useDialog ? "" : Fn.value.title,
|
|
1186
|
+
withCloseButton: !j.value.table.useDialog,
|
|
1187
|
+
isCursorPointer: M.value,
|
|
1188
|
+
onClose: In
|
|
1189
|
+
}, {
|
|
1190
|
+
th: x(({ th: e }) => [d("div", {
|
|
1191
|
+
innerHTML: e,
|
|
1192
|
+
style: {
|
|
1193
|
+
display: "flex",
|
|
1194
|
+
"align-items": "center"
|
|
1195
|
+
}
|
|
1196
|
+
}, null, 8, yt)]),
|
|
1197
|
+
td: x(({ td: e }) => [Re(qe(e.name || e), 1)]),
|
|
1198
|
+
_: 1
|
|
1199
|
+
}, 8, [
|
|
1200
|
+
"colNames",
|
|
1201
|
+
"head",
|
|
1202
|
+
"body",
|
|
1203
|
+
"config",
|
|
1204
|
+
"title",
|
|
1205
|
+
"withCloseButton",
|
|
1206
|
+
"isCursorPointer"
|
|
1207
|
+
]))]),
|
|
1208
|
+
_: 2
|
|
1209
|
+
}, [j.value.table.useDialog ? {
|
|
1210
|
+
name: "title",
|
|
1211
|
+
fn: x(() => [Re(qe(Fn.value.title), 1)]),
|
|
1212
|
+
key: "0"
|
|
1213
|
+
} : void 0, j.value.table.useDialog ? {
|
|
1214
|
+
name: "actions",
|
|
1215
|
+
fn: x(() => [d("button", {
|
|
1216
|
+
tabindex: "0",
|
|
1217
|
+
class: "vue-ui-user-options-button",
|
|
1218
|
+
onClick: n[1] ||= (e) => On(j.value.userOptions.callbacks.csv),
|
|
1219
|
+
style: g({ cursor: M.value ? "pointer" : "default" })
|
|
1220
|
+
}, [ze(b(xt), {
|
|
1221
|
+
name: "fileCsv",
|
|
1222
|
+
stroke: Fn.value.props.color
|
|
1223
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1224
|
+
key: "1"
|
|
1225
|
+
} : void 0]), 1040)) : l("", !0),
|
|
1226
|
+
y(e.$slots, "skeleton", {}, () => [b(N) ? (_(), c(ve, { key: 0 })) : l("", !0)], !0)
|
|
1227
|
+
], 46, Qe));
|
|
1228
|
+
}
|
|
1229
|
+
}, [["__scopeId", "data-v-13896d75"]]);
|
|
1230
|
+
//#endregion
|
|
1231
|
+
export { Ze as n, bt as t };
|