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