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