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