vue-data-ui 3.20.3 → 3.20.4
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/dist/A11yDataTable-BCbtxMU6.js +45 -0
- package/dist/Arrow-D6j6ocXm.js +116 -0
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
- package/dist/BaseIcon-DfLoHNUj.js +502 -0
- package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
- package/dist/BaseScanner-Dr2a1Msy.js +27 -0
- package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
- package/dist/ColorPicker-Bjwxnvfh.js +255 -0
- package/dist/DataTable-B--IN22e.js +150 -0
- package/dist/Legend-Cz2uQ5gs.js +114 -0
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
- package/dist/PackageVersion-BYcZLGDG.js +11 -0
- package/dist/PenAndPaper-DqrClVfb.js +461 -0
- package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
- package/dist/RecursiveLabels-D9rfID6q.js +56 -0
- package/dist/RecursiveLinks-BygcpDiT.js +78 -0
- package/dist/Shape-BPCJfphn.js +141 -0
- package/dist/Slicer-SHBj0VaV.js +1144 -0
- package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
- package/dist/SparkTooltip-CfE6yCad.js +93 -0
- package/dist/Title-NWp4qB4K.js +87 -0
- package/dist/Tooltip-BENq327o.js +312 -0
- package/dist/UserOptions-C1NgoGu6.js +1411 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/canvas-lib-BOP_HS11.js +79 -0
- package/dist/components/arrow.js +2 -0
- package/dist/components/vue-ui-3d-bar.js +2 -0
- package/dist/components/vue-ui-accordion.js +2 -0
- package/dist/components/vue-ui-age-pyramid.js +2 -0
- package/dist/components/vue-ui-annotator.js +2 -0
- package/dist/components/vue-ui-bullet.js +2 -0
- package/dist/components/vue-ui-bump.js +2 -0
- package/dist/components/vue-ui-candlestick.js +2 -0
- package/dist/components/vue-ui-carousel-table.js +2 -0
- package/dist/components/vue-ui-chestnut.js +2 -0
- package/dist/components/vue-ui-chord.js +2 -0
- package/dist/components/vue-ui-circle-pack.js +2 -0
- package/dist/components/vue-ui-cursor.js +2 -0
- package/dist/components/vue-ui-dag.js +2 -0
- package/dist/components/vue-ui-dashboard.js +2 -0
- package/dist/components/vue-ui-digits.js +2 -0
- package/dist/components/vue-ui-donut-evolution.js +2 -0
- package/dist/components/vue-ui-donut.js +2 -0
- package/dist/components/vue-ui-dumbbell.js +2 -0
- package/dist/components/vue-ui-flow.js +2 -0
- package/dist/components/vue-ui-funnel.js +2 -0
- package/dist/components/vue-ui-galaxy.js +2 -0
- package/dist/components/vue-ui-gauge.js +2 -0
- package/dist/components/vue-ui-geo.js +2 -0
- package/dist/components/vue-ui-gizmo.js +2 -0
- package/dist/components/vue-ui-heatmap.js +2 -0
- package/dist/components/vue-ui-history-plot.js +2 -0
- package/dist/components/vue-ui-horizontal-bar.js +2 -0
- package/dist/components/vue-ui-icon.js +2 -0
- package/dist/components/vue-ui-kpi.js +2 -0
- package/dist/components/vue-ui-mini-loader.js +2 -0
- package/dist/components/vue-ui-molecule.js +2 -0
- package/dist/components/vue-ui-mood-radar.js +2 -0
- package/dist/components/vue-ui-nested-donuts.js +2 -0
- package/dist/components/vue-ui-onion.js +2 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
- package/dist/components/vue-ui-pattern-seed.js +2 -0
- package/dist/components/vue-ui-pattern.js +2 -0
- package/dist/components/vue-ui-quadrant.js +2 -0
- package/dist/components/vue-ui-quick-chart.js +2 -0
- package/dist/components/vue-ui-radar.js +2 -0
- package/dist/components/vue-ui-rating.js +2 -0
- package/dist/components/vue-ui-relation-circle.js +2 -0
- package/dist/components/vue-ui-ridgeline.js +2 -0
- package/dist/components/vue-ui-rings.js +2 -0
- package/dist/components/vue-ui-scatter.js +2 -0
- package/dist/components/vue-ui-skeleton.js +2 -0
- package/dist/components/vue-ui-smiley.js +2 -0
- package/dist/components/vue-ui-spark-trend.js +2 -0
- package/dist/components/vue-ui-sparkbar.js +2 -0
- package/dist/components/vue-ui-sparkgauge.js +2 -0
- package/dist/components/vue-ui-sparkhistogram.js +2 -0
- package/dist/components/vue-ui-sparkline.js +2 -0
- package/dist/components/vue-ui-sparkstackbar.js +2 -0
- package/dist/components/vue-ui-stackbar.js +2 -0
- package/dist/components/vue-ui-stackline.js +2 -0
- package/dist/components/vue-ui-strip-plot.js +2 -0
- package/dist/components/vue-ui-table-heatmap.js +2 -0
- package/dist/components/vue-ui-table-sparkline.js +2 -0
- package/dist/components/vue-ui-table.js +2 -0
- package/dist/components/vue-ui-thermometer.js +2 -0
- package/dist/components/vue-ui-timer.js +2 -0
- package/dist/components/vue-ui-tiremarks.js +2 -0
- package/dist/components/vue-ui-treemap.js +2 -0
- package/dist/components/vue-ui-vertical-bar.js +2 -0
- package/dist/components/vue-ui-waffle.js +2 -0
- package/dist/components/vue-ui-wheel.js +2 -0
- package/dist/components/vue-ui-word-cloud.js +2 -0
- package/dist/components/vue-ui-world.js +2 -0
- package/dist/components/vue-ui-xy-canvas.js +2 -0
- package/dist/components/vue-ui-xy.js +2 -0
- package/dist/dom-to-png-BYtB4BF3.js +237 -0
- package/dist/exposedLib-CI8ji8G-.js +19 -0
- package/dist/geoProjections-Czak6Jn1.js +145 -0
- package/dist/img-1cKsci8e.js +74 -0
- package/dist/labelUtils-CUctkYoA.js +19 -0
- package/dist/lib-DUeYQsS0.js +1882 -0
- package/dist/llms.txt +232 -0
- package/dist/patternUtils-CS7hn6at.js +258 -0
- package/dist/pdf-D0eZ99cP.js +90 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/style.css +2 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/utils.d.ts +551 -0
- package/dist/types/vue-data-ui.d.ts +17190 -0
- package/dist/types/vue-ui-3d-bar.d.ts +93 -0
- package/dist/types/vue-ui-accordion.d.ts +11 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
- package/dist/types/vue-ui-annotator.d.ts +34 -0
- package/dist/types/vue-ui-bullet.d.ts +85 -0
- package/dist/types/vue-ui-bump.d.ts +92 -0
- package/dist/types/vue-ui-candlestick.d.ts +106 -0
- package/dist/types/vue-ui-carousel-table.d.ts +59 -0
- package/dist/types/vue-ui-chestnut.d.ts +98 -0
- package/dist/types/vue-ui-chord.d.ts +110 -0
- package/dist/types/vue-ui-circle-pack.d.ts +126 -0
- package/dist/types/vue-ui-cursor.d.ts +9 -0
- package/dist/types/vue-ui-dag.d.ts +125 -0
- package/dist/types/vue-ui-dashboard.d.ts +68 -0
- package/dist/types/vue-ui-digits.d.ts +12 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +98 -0
- package/dist/types/vue-ui-donut.d.ts +123 -0
- package/dist/types/vue-ui-dumbbell.d.ts +94 -0
- package/dist/types/vue-ui-flow.d.ts +106 -0
- package/dist/types/vue-ui-funnel.d.ts +79 -0
- package/dist/types/vue-ui-galaxy.d.ts +114 -0
- package/dist/types/vue-ui-gauge.d.ts +89 -0
- package/dist/types/vue-ui-geo.d.ts +94 -0
- package/dist/types/vue-ui-gizmo.d.ts +22 -0
- package/dist/types/vue-ui-heatmap.d.ts +101 -0
- package/dist/types/vue-ui-history-plot.d.ts +114 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
- package/dist/types/vue-ui-icon.d.ts +15 -0
- package/dist/types/vue-ui-kpi.d.ts +25 -0
- package/dist/types/vue-ui-mini-loader.d.ts +15 -0
- package/dist/types/vue-ui-molecule.d.ts +112 -0
- package/dist/types/vue-ui-mood-radar.d.ts +92 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
- package/dist/types/vue-ui-onion.d.ts +106 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +15 -0
- package/dist/types/vue-ui-quadrant.d.ts +125 -0
- package/dist/types/vue-ui-quick-chart.d.ts +108 -0
- package/dist/types/vue-ui-radar.d.ts +116 -0
- package/dist/types/vue-ui-rating.d.ts +42 -0
- package/dist/types/vue-ui-relation-circle.d.ts +92 -0
- package/dist/types/vue-ui-ridgeline.d.ts +106 -0
- package/dist/types/vue-ui-rings.d.ts +98 -0
- package/dist/types/vue-ui-scatter.d.ts +97 -0
- package/dist/types/vue-ui-skeleton.d.ts +11 -0
- package/dist/types/vue-ui-smiley.d.ts +28 -0
- package/dist/types/vue-ui-spark-trend.d.ts +19 -0
- package/dist/types/vue-ui-sparkbar.d.ts +49 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
- package/dist/types/vue-ui-sparkline.d.ts +59 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
- package/dist/types/vue-ui-stackbar.d.ts +118 -0
- package/dist/types/vue-ui-stackline.d.ts +114 -0
- package/dist/types/vue-ui-strip-plot.d.ts +96 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
- package/dist/types/vue-ui-table.d.ts +38 -0
- package/dist/types/vue-ui-thermometer.d.ts +70 -0
- package/dist/types/vue-ui-timer.d.ts +49 -0
- package/dist/types/vue-ui-tiremarks.d.ts +70 -0
- package/dist/types/vue-ui-treemap.d.ts +104 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
- package/dist/types/vue-ui-waffle.d.ts +101 -0
- package/dist/types/vue-ui-wheel.d.ts +70 -0
- package/dist/types/vue-ui-word-cloud.d.ts +97 -0
- package/dist/types/vue-ui-world.d.ts +98 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
- package/dist/types/vue-ui-xy.d.ts +146 -0
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
- package/dist/useChartAccessibility-DYqac8yF.js +12 -0
- package/dist/useConfig-DAyQk86L.js +7479 -0
- package/dist/useFitSvgText-CT3nmlaS.js +63 -0
- package/dist/useNestedProp-CNcoy38D.js +10 -0
- package/dist/useObjectBindings-BI7hP-BC.js +189 -0
- package/dist/usePanZoom-CYU3B4T3.js +157 -0
- package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
- package/dist/usePrinter-C1Gqt_Sp.js +49 -0
- package/dist/useResponsive-BfnK0KxU.js +19 -0
- package/dist/useStableElementSize-C7KADDKj.js +77 -0
- package/dist/useSvgExport-SVIsDot8.js +755 -0
- package/dist/useTableResponsive-B24Uwt2E.js +24 -0
- package/dist/useThemeCheck-C43Tcqmk.js +24 -0
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
- package/dist/useTimeLabels-BmBRv27Y.js +272 -0
- package/dist/useUserOptionState-DK-_1ddE.js +15 -0
- package/dist/utils.js +28 -0
- package/dist/vClickOutside-DUrZWttG.js +13 -0
- package/dist/vue-data-ui-DuLO91Bk.js +274 -0
- package/dist/vue-data-ui.js +76 -0
- package/dist/vue-ui-3d-bar-DMDfraIo.js +1757 -0
- package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
- package/dist/vue-ui-age-pyramid-CN68d9su.js +1238 -0
- package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
- package/dist/vue-ui-bullet-V21vyb4T.js +710 -0
- package/dist/vue-ui-bump-BvnBJcx0.js +1249 -0
- package/dist/vue-ui-candlestick-DaIeT5kU.js +1826 -0
- package/dist/vue-ui-carousel-table-BBTm1Etq.js +455 -0
- package/dist/vue-ui-chestnut-BLtE39N7.js +2010 -0
- package/dist/vue-ui-chord-D1UVle9f.js +1391 -0
- package/dist/vue-ui-circle-pack-BDDVjuT1.js +1608 -0
- package/dist/vue-ui-cursor-CiU4ttGN.js +283 -0
- package/dist/vue-ui-dag-D2U673ns.js +2909 -0
- package/dist/vue-ui-dashboard-JK7v_bwo.js +513 -0
- package/dist/vue-ui-digits-D5b3eJ5q.js +209 -0
- package/dist/vue-ui-donut-BYf4FbjI.js +2410 -0
- package/dist/vue-ui-donut-evolution-Id7YwbiG.js +1510 -0
- package/dist/vue-ui-dumbbell-CToh2l5g.js +1530 -0
- package/dist/vue-ui-flow-CmBI0IKa.js +1235 -0
- package/dist/vue-ui-funnel-B67L6mTB.js +777 -0
- package/dist/vue-ui-galaxy-CFZP36s4.js +1077 -0
- package/dist/vue-ui-gauge-sZxKMn7t.js +920 -0
- package/dist/vue-ui-geo-DK8fAoZd.js +1516 -0
- package/dist/vue-ui-gizmo-DsJtcBEf.js +225 -0
- package/dist/vue-ui-heatmap-B87-9zpu.js +1568 -0
- package/dist/vue-ui-history-plot-Dhv-zMSR.js +1554 -0
- package/dist/vue-ui-horizontal-bar-BAT7IYhL.js +1681 -0
- package/dist/vue-ui-kpi-BggezxVU.js +96 -0
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
- package/dist/vue-ui-molecule-uXC5g9qp.js +925 -0
- package/dist/vue-ui-mood-radar-BYoxNRMc.js +1148 -0
- package/dist/vue-ui-nested-donuts-BVniVpDM.js +1487 -0
- package/dist/vue-ui-onion-CWzeZ5Ak.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dbx6W4ZW.js +1416 -0
- package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
- package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
- package/dist/vue-ui-quadrant-BrPLv-sz.js +1978 -0
- package/dist/vue-ui-quick-chart-B0S_4DeW.js +2469 -0
- package/dist/vue-ui-radar-CUo6FWXZ.js +1229 -0
- package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
- package/dist/vue-ui-relation-circle-2a6IZgKe.js +924 -0
- package/dist/vue-ui-ridgeline-DnQBrx71.js +1622 -0
- package/dist/vue-ui-rings-BibWJNh2.js +1246 -0
- package/dist/vue-ui-scatter-8srfWwTp.js +2413 -0
- package/dist/vue-ui-skeleton-BoKB7qJM.js +2556 -0
- package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
- package/dist/vue-ui-spark-trend-Cq4pIgWr.js +438 -0
- package/dist/vue-ui-sparkbar-CgFKnZEF.js +393 -0
- package/dist/vue-ui-sparkgauge-ea-PGnBC.js +255 -0
- package/dist/vue-ui-sparkhistogram-BfgnG41U.js +560 -0
- package/dist/vue-ui-sparkline-CDOa3xh8.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DEsSr92Z.js +662 -0
- package/dist/vue-ui-stackbar-BeegxXk_.js +2270 -0
- package/dist/vue-ui-stackline-_G-cbZRe.js +2398 -0
- package/dist/vue-ui-strip-plot-VasAk496.js +1340 -0
- package/dist/vue-ui-table-DysBVxy5.js +1338 -0
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
- package/dist/vue-ui-table-sparkline-DQduGRPm.js +707 -0
- package/dist/vue-ui-thermometer-1l6KUpS8.js +763 -0
- package/dist/vue-ui-timer-Db2d4LNp.js +439 -0
- package/dist/vue-ui-tiremarks-YtFZjYFp.js +552 -0
- package/dist/vue-ui-treemap-DxwEGZ9p.js +1587 -0
- package/dist/vue-ui-waffle-C9bzj7pV.js +1362 -0
- package/dist/vue-ui-wheel-DKzocpS-.js +885 -0
- package/dist/vue-ui-word-cloud-DkNU1GFp.js +1656 -0
- package/dist/vue-ui-world-DhnfDaFE.js +14264 -0
- package/dist/vue-ui-xy-BzhW8pHi.js +4578 -0
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
- package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
- package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
- package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
- package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
- package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
- package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
- package/dist/vue_ui_donut-BDGqG07h.js +358 -0
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
- package/dist/vue_ui_flow-BewZjjKG.js +238 -0
- package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
- package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
- package/dist/vue_ui_geo-B8TODs-G.js +248 -0
- package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
- package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
- package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
- package/dist/vue_ui_onion-1FTFFS46.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
- package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
- package/dist/vue_ui_radar-jafTED5j.js +306 -0
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
- package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
- package/dist/vue_ui_scatter-I0POnicu.js +479 -0
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
- package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
- package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
- package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
- package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
- package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
- package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
- package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
- package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
- package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
- package/package.json +120 -120
|
@@ -0,0 +1,1487 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, Bt as n, Ct as r, Dt as i, Et as a, G as o, H as s, J as c, Mt as l, Rt as ee, S as te, X as u, Y as ne, d as re, i as ie, n as ae, nt as oe, pt as se, t as ce, u as le, v as ue, x as de, xt as fe, y as pe } from "./lib-DUeYQsS0.js";
|
|
3
|
+
import { t as me } from "./useConfig-DAyQk86L.js";
|
|
4
|
+
import { t as he } from "./usePrinter-C1Gqt_Sp.js";
|
|
5
|
+
import { n as ge, t as _e } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
+
import { t as ve } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ye } from "./useNestedProp-CNcoy38D.js";
|
|
8
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as xe } from "./img-1cKsci8e.js";
|
|
10
|
+
import { n as Se } from "./Title-NWp4qB4K.js";
|
|
11
|
+
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as we } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as Te } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as Ee } from "./BaseLegendToggle-C_Db-y7s.js";
|
|
15
|
+
import { t as De } from "./A11yDataTable-BCbtxMU6.js";
|
|
16
|
+
import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
+
import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as Ae } from "./labelUtils-CUctkYoA.js";
|
|
19
|
+
import { t as je } from "./Legend-Cz2uQ5gs.js";
|
|
20
|
+
import { t as Me } from "./vue_ui_nested_donuts-B8csIoVO.js";
|
|
21
|
+
import { Fragment as d, Teleport as Ne, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Le, nextTick as Re, normalizeClass as y, normalizeProps as b, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as T, toRefs as We, unref as E, vShow as Ge, watch as Ke, withCtx as D, withDirectives as qe } from "vue";
|
|
22
|
+
//#region src/components/vue-ui-nested-donuts.vue
|
|
23
|
+
var Je = /* @__PURE__ */ e({ default: () => Ot }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
|
|
24
|
+
"xmlns",
|
|
25
|
+
"aria-describedby",
|
|
26
|
+
"viewBox"
|
|
27
|
+
], et = ["width", "height"], tt = ["id"], nt = ["offset", "stop-color"], rt = ["offset", "stop-opacity"], it = ["id"], at = ["id"], ot = ["id"], st = ["flood-color"], ct = ["id", "d"], lt = [
|
|
28
|
+
"d",
|
|
29
|
+
"fill",
|
|
30
|
+
"stroke",
|
|
31
|
+
"stroke-width",
|
|
32
|
+
"filter"
|
|
33
|
+
], ut = [
|
|
34
|
+
"d",
|
|
35
|
+
"fill",
|
|
36
|
+
"stroke",
|
|
37
|
+
"stroke-width"
|
|
38
|
+
], dt = { key: 1 }, ft = ["d", "fill"], pt = { key: 2 }, mt = [
|
|
39
|
+
"font-size",
|
|
40
|
+
"font-weight",
|
|
41
|
+
"fill",
|
|
42
|
+
"dy"
|
|
43
|
+
], ht = ["href"], gt = [
|
|
44
|
+
"x",
|
|
45
|
+
"y",
|
|
46
|
+
"font-size",
|
|
47
|
+
"font-weight",
|
|
48
|
+
"fill"
|
|
49
|
+
], _t = { key: 3 }, vt = ["filter"], yt = [
|
|
50
|
+
"opacity",
|
|
51
|
+
"text-anchor",
|
|
52
|
+
"x",
|
|
53
|
+
"y",
|
|
54
|
+
"fill",
|
|
55
|
+
"font-size",
|
|
56
|
+
"font-weight"
|
|
57
|
+
], bt = [
|
|
58
|
+
"opacity",
|
|
59
|
+
"text-anchor",
|
|
60
|
+
"x",
|
|
61
|
+
"y",
|
|
62
|
+
"fill",
|
|
63
|
+
"font-size",
|
|
64
|
+
"font-weight"
|
|
65
|
+
], xt = [
|
|
66
|
+
"d",
|
|
67
|
+
"fill",
|
|
68
|
+
"onMouseenter",
|
|
69
|
+
"onClick",
|
|
70
|
+
"onMouseleave"
|
|
71
|
+
], St = {
|
|
72
|
+
key: 0,
|
|
73
|
+
style: {
|
|
74
|
+
position: "absolute",
|
|
75
|
+
top: "100%",
|
|
76
|
+
left: "0",
|
|
77
|
+
width: "100%"
|
|
78
|
+
},
|
|
79
|
+
"data-dom-to-png-ignore": "",
|
|
80
|
+
"aria-hidden": "true"
|
|
81
|
+
}, Ct = {
|
|
82
|
+
key: 5,
|
|
83
|
+
class: "vue-data-ui-watermark"
|
|
84
|
+
}, wt = ["id"], Tt = {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "vue-ui-nested-donuts-legend-title"
|
|
87
|
+
}, Et = ["onClick"], Dt = ["innerHTML"], Ot = /* @__PURE__ */ Ce({
|
|
88
|
+
__name: "vue-ui-nested-donuts",
|
|
89
|
+
props: {
|
|
90
|
+
config: {
|
|
91
|
+
type: Object,
|
|
92
|
+
default() {
|
|
93
|
+
return {};
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
dataset: {
|
|
97
|
+
type: Array,
|
|
98
|
+
default() {
|
|
99
|
+
return [];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
emits: [
|
|
104
|
+
"selectLegend",
|
|
105
|
+
"selectDatapoint",
|
|
106
|
+
"copyAlt"
|
|
107
|
+
],
|
|
108
|
+
setup(e, { expose: Ce, emit: Je }) {
|
|
109
|
+
let Ot = _(() => import("./Tooltip-BENq327o.js")), kt = _(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), At = _(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), jt = _(() => import("./DataTable-B--IN22e.js")), Mt = _(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Nt = _(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), Pt = _(() => import("./PackageVersion-BYcZLGDG.js").then((e) => e.t)), Ft = _(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_nested_donuts: It } = me(), { isThemeValid: Lt, warnInvalidTheme: Rt } = be(), O = e, zt = f({
|
|
110
|
+
get() {
|
|
111
|
+
return !!O.dataset && O.dataset.length;
|
|
112
|
+
},
|
|
113
|
+
set(e) {
|
|
114
|
+
return e;
|
|
115
|
+
}
|
|
116
|
+
}), k = S(s()), Bt = S(!1), Vt = S(""), Ht = S(null), Ut = S(0), A = S(null), Wt = S(null), Gt = S(null), Kt = S(null), qt = S(null), Jt = S(0), Yt = S(0), Xt = S(0), j = S(!0), M = S([]), Zt = S([]), Qt = S(!1), $t = S(null), en = S(null), tn = S(!1), nn = S(!1), N = S(null), rn = S({
|
|
117
|
+
x: 0,
|
|
118
|
+
y: 0
|
|
119
|
+
}), an = S("pointer"), on = S(!1), P = S(!1);
|
|
120
|
+
function sn(e) {
|
|
121
|
+
P.value = e, Ut.value += 1;
|
|
122
|
+
}
|
|
123
|
+
let F = S(hn()), I = f(() => F.value.userOptions.useCursorPointer), cn = {
|
|
124
|
+
name: "",
|
|
125
|
+
series: [
|
|
126
|
+
{
|
|
127
|
+
name: "",
|
|
128
|
+
values: [3],
|
|
129
|
+
color: "#BABABA"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "",
|
|
133
|
+
values: [2],
|
|
134
|
+
color: "#AAAAAA"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "",
|
|
138
|
+
values: [1],
|
|
139
|
+
color: "#CACACA"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}, ln = f(() => n({
|
|
143
|
+
defaultConfig: {
|
|
144
|
+
useCssAnimation: !1,
|
|
145
|
+
table: { show: !1 },
|
|
146
|
+
startAnimation: { show: !1 },
|
|
147
|
+
userOptions: { show: !1 },
|
|
148
|
+
style: { chart: {
|
|
149
|
+
backgroundColor: "#99999930",
|
|
150
|
+
layout: { labels: { dataLabels: { show: !1 } } },
|
|
151
|
+
legend: {
|
|
152
|
+
backgroundColor: "transparent",
|
|
153
|
+
showValue: !1,
|
|
154
|
+
showPercentage: !1
|
|
155
|
+
},
|
|
156
|
+
title: {
|
|
157
|
+
color: "#1A1A1A",
|
|
158
|
+
subtitle: { color: "#5A5A5A" }
|
|
159
|
+
}
|
|
160
|
+
} }
|
|
161
|
+
},
|
|
162
|
+
userConfig: F.value.skeletonConfig ?? {}
|
|
163
|
+
})), { loading: un, FINAL_DATASET: L, manualLoading: dn } = ge({
|
|
164
|
+
...We(O),
|
|
165
|
+
FINAL_CONFIG: F,
|
|
166
|
+
prepareConfig: hn,
|
|
167
|
+
callback: () => {
|
|
168
|
+
Promise.resolve().then(async () => {
|
|
169
|
+
await vn();
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
skeletonDataset: O.config?.skeletonDataset ?? [cn, cn],
|
|
173
|
+
skeletonConfig: n({
|
|
174
|
+
defaultConfig: F.value,
|
|
175
|
+
userConfig: ln.value
|
|
176
|
+
})
|
|
177
|
+
}), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = Oe({ config: F.value }), { svgRef: R } = ke({ config: F.value.style.chart.title });
|
|
178
|
+
function hn() {
|
|
179
|
+
let e = ye({
|
|
180
|
+
userConfig: O.config,
|
|
181
|
+
defaultConfig: It
|
|
182
|
+
}), t = {}, n = e.theme;
|
|
183
|
+
if (n) if (!Lt.value(e)) Rt(e), t = e;
|
|
184
|
+
else {
|
|
185
|
+
let r = ye({
|
|
186
|
+
userConfig: Me[n] || O.config,
|
|
187
|
+
defaultConfig: e
|
|
188
|
+
});
|
|
189
|
+
t = {
|
|
190
|
+
...ye({
|
|
191
|
+
userConfig: O.config,
|
|
192
|
+
defaultConfig: r
|
|
193
|
+
}),
|
|
194
|
+
customPalette: e.customPalette.length ? e.customPalette : ee[n] || a
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
else t = e;
|
|
198
|
+
return t;
|
|
199
|
+
}
|
|
200
|
+
Ke(() => O.config, (e) => {
|
|
201
|
+
un.value || (F.value = hn()), fn.value = !F.value.userOptions.showOnChartHover, xn(), Jt.value += 1, Yt.value += 1, Xt.value += 1, B.value.dataLabels.show = F.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = F.value.table.show, B.value.showTooltip = F.value.style.chart.tooltip.show, V.value.width = F.value.style.chart.width, V.value.height = F.value.style.chart.height;
|
|
202
|
+
}, { deep: !0 });
|
|
203
|
+
let gn = f(() => {
|
|
204
|
+
let { top: e, right: t, bottom: n, left: r } = F.value.style.chart.padding;
|
|
205
|
+
return {
|
|
206
|
+
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
207
|
+
top: e,
|
|
208
|
+
right: t,
|
|
209
|
+
bottom: n,
|
|
210
|
+
left: r
|
|
211
|
+
};
|
|
212
|
+
});
|
|
213
|
+
function _n(e, n = 1e3, r = 50) {
|
|
214
|
+
return new Promise((i) => {
|
|
215
|
+
let a = e.length;
|
|
216
|
+
M.value = Array(a).fill(0), Zt.value = [];
|
|
217
|
+
let o = 0;
|
|
218
|
+
e.forEach((e, s) => {
|
|
219
|
+
setTimeout(() => {
|
|
220
|
+
let r = performance.now();
|
|
221
|
+
function c(l) {
|
|
222
|
+
let ee = Math.min((l - r) / n, 1), te = e * ne(ee);
|
|
223
|
+
M.value[s] = te, M.value = [...M.value];
|
|
224
|
+
let u = [], re = 0;
|
|
225
|
+
O.dataset.forEach((e, n) => {
|
|
226
|
+
let r = ue(e.series.reduce((e, n) => e + ue(t(n.values).reduce((e, t) => e + t, 0)), 0)) - ue(M.value.slice(re, re + e.series.length).reduce((e, t) => e + t, 0));
|
|
227
|
+
r > Number.MIN_VALUE && u.push({
|
|
228
|
+
name: "__ghost__",
|
|
229
|
+
arcOf: e.name,
|
|
230
|
+
arcOfId: `${k.value}_${n}`,
|
|
231
|
+
id: `ghost_${k.value}_${n}`,
|
|
232
|
+
seriesIndex: -1,
|
|
233
|
+
datasetIndex: n,
|
|
234
|
+
color: "transparent",
|
|
235
|
+
value: r,
|
|
236
|
+
fullValue: r,
|
|
237
|
+
absoluteValues: [],
|
|
238
|
+
ghost: !0
|
|
239
|
+
}), re += e.series.length;
|
|
240
|
+
}), Zt.value = u, ee < 1 ? requestAnimationFrame(c) : (o += 1, o === a && i());
|
|
241
|
+
}
|
|
242
|
+
requestAnimationFrame(c);
|
|
243
|
+
}, s * r);
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
async function vn() {
|
|
248
|
+
if (F.value.startAnimation?.show) {
|
|
249
|
+
let e = L.value.flatMap((e) => e.series).map((e) => t(e.values).reduce((e, t) => e + t, 0));
|
|
250
|
+
M.value = e.map(() => 0), j.value = !0, Zt.value = L.value.map((e, n) => {
|
|
251
|
+
let r = e.series.reduce((e, n) => e + t(n.values).reduce((e, t) => e + t, 0), 0);
|
|
252
|
+
return {
|
|
253
|
+
name: "__ghost__",
|
|
254
|
+
arcOf: e.name,
|
|
255
|
+
arcOfId: `${k.value}_${n}`,
|
|
256
|
+
id: `ghost_${k.value}_${n}`,
|
|
257
|
+
seriesIndex: -1,
|
|
258
|
+
datasetIndex: n,
|
|
259
|
+
color: "transparent",
|
|
260
|
+
value: r,
|
|
261
|
+
fullValue: r,
|
|
262
|
+
absoluteValues: [],
|
|
263
|
+
ghost: !0
|
|
264
|
+
};
|
|
265
|
+
}), await Re(), _n(e, F.value.startAnimation.durationMs, F.value.startAnimation.staggerMs).then(() => {
|
|
266
|
+
j.value = !1, Zt.value = [];
|
|
267
|
+
});
|
|
268
|
+
} else j.value = !1;
|
|
269
|
+
}
|
|
270
|
+
Ve(async () => {
|
|
271
|
+
Qt.value = !0, xn(), await vn();
|
|
272
|
+
});
|
|
273
|
+
let z = Ue(null), yn = Ue(null), bn = f(() => !!F.value.debug);
|
|
274
|
+
function xn() {
|
|
275
|
+
if (r(O.dataset) ? (u({
|
|
276
|
+
componentName: "VueUiNestedDonuts",
|
|
277
|
+
type: "dataset",
|
|
278
|
+
debug: bn.value
|
|
279
|
+
}), zt.value = !1, dn.value = !0) : dn.value = F.value.loading, F.value.responsive) {
|
|
280
|
+
let e = we(() => {
|
|
281
|
+
let { width: e, height: t } = Te({
|
|
282
|
+
chart: A.value,
|
|
283
|
+
title: F.value.style.chart.title.text ? Wt.value : null,
|
|
284
|
+
legend: F.value.style.chart.legend.show ? Gt.value : null,
|
|
285
|
+
source: Kt.value,
|
|
286
|
+
noTitle: qt.value,
|
|
287
|
+
padding: gn.value
|
|
288
|
+
});
|
|
289
|
+
requestAnimationFrame(() => {
|
|
290
|
+
V.value.width = e, V.value.height = t;
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
z.value && (yn.value && z.value.unobserve(yn.value), z.value.disconnect()), z.value = new ResizeObserver(e), yn.value = A.value.parentNode, z.value.observe(yn.value);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
Be(() => {
|
|
297
|
+
z.value && (yn.value && z.value.unobserve(yn.value), z.value.disconnect());
|
|
298
|
+
});
|
|
299
|
+
let { isPrinting: Sn, isImaging: Cn, generatePdf: wn, generateImage: Tn } = he({
|
|
300
|
+
elementId: `nested_donuts_${k.value}`,
|
|
301
|
+
fileName: F.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
302
|
+
options: F.value.userOptions.print
|
|
303
|
+
}), En = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), Dn = f(() => de(F.value.customPalette)), B = S({
|
|
304
|
+
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
305
|
+
showTable: F.value.table.show,
|
|
306
|
+
showTooltip: F.value.style.chart.tooltip.show
|
|
307
|
+
});
|
|
308
|
+
Ke(F, () => {
|
|
309
|
+
B.value = {
|
|
310
|
+
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
311
|
+
showTable: F.value.table.show,
|
|
312
|
+
showTooltip: F.value.style.chart.tooltip.show
|
|
313
|
+
};
|
|
314
|
+
}, { immediate: !0 });
|
|
315
|
+
let V = S({
|
|
316
|
+
width: F.value.style.chart.width,
|
|
317
|
+
height: F.value.style.chart.height
|
|
318
|
+
}), H = Je;
|
|
319
|
+
function On({ datapoint: e, index: t, seriesIndex: n }) {
|
|
320
|
+
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
321
|
+
datapoint: e,
|
|
322
|
+
seriesIndex: n
|
|
323
|
+
}), H("selectDatapoint", {
|
|
324
|
+
datapoint: e,
|
|
325
|
+
index: t
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
function kn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = ne }) {
|
|
329
|
+
let o = performance.now();
|
|
330
|
+
function s(c) {
|
|
331
|
+
let l = Math.min((c - o) / n, 1), ee = a(l);
|
|
332
|
+
r(e + (t - e) * ee, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
|
|
333
|
+
}
|
|
334
|
+
requestAnimationFrame(s);
|
|
335
|
+
}
|
|
336
|
+
let U = S([]), W = f(() => {
|
|
337
|
+
un.value, L.value.forEach((e, t) => {
|
|
338
|
+
[null, void 0].includes(e.name) && u({
|
|
339
|
+
componentName: "VueUiNestedDonuts",
|
|
340
|
+
type: "datasetSerieAttribute",
|
|
341
|
+
property: "name",
|
|
342
|
+
index: t,
|
|
343
|
+
debug: bn.value
|
|
344
|
+
}), [null, void 0].includes(e.series) ? u({
|
|
345
|
+
componentName: "VueUiNestedDonuts",
|
|
346
|
+
type: "datasetSerieAttribute",
|
|
347
|
+
property: "series",
|
|
348
|
+
index: t,
|
|
349
|
+
debug: bn.value
|
|
350
|
+
}) : e.series.length === 0 ? u({
|
|
351
|
+
componentName: "VueUiNestedDonuts",
|
|
352
|
+
type: "datasetAttributeEmpty",
|
|
353
|
+
property: `series at index ${t}`,
|
|
354
|
+
debug: bn.value
|
|
355
|
+
}) : e.series.forEach((e, t) => {
|
|
356
|
+
[null, void 0].includes(e.name) && u({
|
|
357
|
+
componentName: "VueUiNestedDonuts",
|
|
358
|
+
type: "datasetSerieAttribute",
|
|
359
|
+
property: "name",
|
|
360
|
+
index: t,
|
|
361
|
+
key: "serie",
|
|
362
|
+
debug: bn.value
|
|
363
|
+
}), [null, void 0].includes(e.values) && u({
|
|
364
|
+
componentName: "VueUiNestedDonuts",
|
|
365
|
+
type: "datasetSerieAttribute",
|
|
366
|
+
property: "values",
|
|
367
|
+
index: t,
|
|
368
|
+
key: "serie",
|
|
369
|
+
debug: bn.value
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
let e = 0;
|
|
374
|
+
return L.value.map((n, r) => ({
|
|
375
|
+
...n,
|
|
376
|
+
total: n.series.filter((e) => !U.value.includes(e.id)).map((e) => t(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
377
|
+
datasetIndex: r,
|
|
378
|
+
id: `${k.value}_${r}`,
|
|
379
|
+
series: n.series.map((i, o) => {
|
|
380
|
+
let s = t(i.values).reduce((e, t) => e + t, 0);
|
|
381
|
+
return {
|
|
382
|
+
name: i.name,
|
|
383
|
+
arcOf: n.name,
|
|
384
|
+
arcOfId: `${k.value}_${r}`,
|
|
385
|
+
id: `${k.value}_${r}_${o}`,
|
|
386
|
+
seriesIndex: o,
|
|
387
|
+
datasetIndex: r,
|
|
388
|
+
color: pe(i.color) || Dn.value[o] || a[o % a.length],
|
|
389
|
+
value: j.value ? M.value[e++] ?? 0 : s,
|
|
390
|
+
absoluteValues: i.values || []
|
|
391
|
+
};
|
|
392
|
+
})
|
|
393
|
+
}));
|
|
394
|
+
});
|
|
395
|
+
Ke(() => O.dataset, (e) => {
|
|
396
|
+
Array.isArray(e) && e.length > 0 && (dn.value = !1);
|
|
397
|
+
}, { immediate: !0 });
|
|
398
|
+
let G = f(() => Math.min(V.value.height, V.value.width) * (F.value.style.chart.layout.donut.strokeWidth / 512)), K = f(() => [...W.value].map((e, t) => {
|
|
399
|
+
let n = e.series.filter((e) => !U.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
400
|
+
return {
|
|
401
|
+
...e,
|
|
402
|
+
total: n,
|
|
403
|
+
series: e.series.filter((e) => !U.value.includes(e.id)).map((e) => ({
|
|
404
|
+
...e,
|
|
405
|
+
proportion: e.value / n
|
|
406
|
+
}))
|
|
407
|
+
};
|
|
408
|
+
}));
|
|
409
|
+
function An(e, t, n) {
|
|
410
|
+
let r = 0;
|
|
411
|
+
for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
|
|
412
|
+
return r < t;
|
|
413
|
+
}
|
|
414
|
+
let q = S(K.value);
|
|
415
|
+
Ke(() => K.value, (e) => q.value = e);
|
|
416
|
+
function jn(e) {
|
|
417
|
+
let t = e.map((e) => e.id);
|
|
418
|
+
if (e.some((e) => U.value.includes(e.id))) {
|
|
419
|
+
let e = new Set(t);
|
|
420
|
+
U.value = U.value.filter((t) => !e.has(t));
|
|
421
|
+
} else U.value.push(...t);
|
|
422
|
+
H("selectLegend", K.value);
|
|
423
|
+
}
|
|
424
|
+
function J(e) {
|
|
425
|
+
let n = O.dataset.flatMap((e, n) => e.series.map((e, r) => ({
|
|
426
|
+
value: t(e.values).reduce((e, t) => e + t, 0),
|
|
427
|
+
id: `${k.value}_${n}_${r}`,
|
|
428
|
+
arcOfId: `${k.value}_${n}`
|
|
429
|
+
}))).find((t) => t.id === e.id);
|
|
430
|
+
if (!n) return;
|
|
431
|
+
let r = W.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, i = q.value.flatMap((e) => e.series).find((t) => t.id === e.id), a = i ? i.value : 0, o = W.value.find((e) => e.id === n.arcOfId);
|
|
432
|
+
if (!o) return;
|
|
433
|
+
let s = o.series.map((e) => e.id), c = An(s, s.length - 1, U.value);
|
|
434
|
+
U.value.includes(e.id) ? (U.value = U.value.filter((t) => t !== e.id), F.value.serieToggleAnimation.show ? kn({
|
|
435
|
+
from: a,
|
|
436
|
+
to: r,
|
|
437
|
+
duration: F.value.serieToggleAnimation.durationMs,
|
|
438
|
+
onUpdate: (t) => {
|
|
439
|
+
q.value = q.value.map((n) => ({
|
|
440
|
+
...n,
|
|
441
|
+
series: n.series.map((n) => n.id === e.id ? {
|
|
442
|
+
...n,
|
|
443
|
+
value: t
|
|
444
|
+
} : n)
|
|
445
|
+
}));
|
|
446
|
+
},
|
|
447
|
+
onDone: () => {
|
|
448
|
+
H("selectLegend", K.value);
|
|
449
|
+
}
|
|
450
|
+
}) : (q.value = q.value.map((t) => ({
|
|
451
|
+
...t,
|
|
452
|
+
series: t.series.map((t) => t.id === e.id ? {
|
|
453
|
+
...t,
|
|
454
|
+
value: r
|
|
455
|
+
} : t)
|
|
456
|
+
})), H("selectLegend", K.value))) : c && (F.value.serieToggleAnimation.show ? kn({
|
|
457
|
+
from: a,
|
|
458
|
+
to: 0,
|
|
459
|
+
duration: F.value.serieToggleAnimation.durationMs,
|
|
460
|
+
onUpdate: (t) => {
|
|
461
|
+
q.value = q.value.map((n) => ({
|
|
462
|
+
...n,
|
|
463
|
+
series: n.series.map((n) => n.id === e.id ? {
|
|
464
|
+
...n,
|
|
465
|
+
value: t
|
|
466
|
+
} : n)
|
|
467
|
+
}));
|
|
468
|
+
},
|
|
469
|
+
onDone: () => {
|
|
470
|
+
U.value.push(e.id), H("selectLegend", K.value);
|
|
471
|
+
}
|
|
472
|
+
}) : (q.value = q.value.map((t) => ({
|
|
473
|
+
...t,
|
|
474
|
+
series: t.series.map((t) => t.id === e.id ? {
|
|
475
|
+
...t,
|
|
476
|
+
value: 0
|
|
477
|
+
} : t)
|
|
478
|
+
})), U.value.push(e.id), H("selectLegend", K.value)));
|
|
479
|
+
}
|
|
480
|
+
function Mn(e) {
|
|
481
|
+
return W.value.length ? W.value.flatMap((e) => e.series).filter((t) => t.name === e) || (F.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (F.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null);
|
|
482
|
+
}
|
|
483
|
+
function Nn(e) {
|
|
484
|
+
let t = Mn(e);
|
|
485
|
+
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
486
|
+
U.value.includes(e.id) && J({ id: e.id });
|
|
487
|
+
}) : U.value.includes(t.id) && J({ id: t.id }));
|
|
488
|
+
}
|
|
489
|
+
function Pn(e) {
|
|
490
|
+
let t = Mn(e);
|
|
491
|
+
t !== null && (Array.isArray(t) ? t.forEach((e) => {
|
|
492
|
+
U.value.includes(e.id) || J({ id: e.id });
|
|
493
|
+
}) : U.value.includes(t.id) || J({ id: t.id }));
|
|
494
|
+
}
|
|
495
|
+
let Fn = f(() => G.value / W.value.length * F.value.style.chart.layout.donut.spacingRatio), In = f(() => q.value.map((e, t) => G.value - t * G.value / W.value.length)), Y = f(() => q.value.map((e, t) => {
|
|
496
|
+
let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = G.value - t * G.value / q.value.length, i = j.value ? Zt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
|
|
497
|
+
...e,
|
|
498
|
+
value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
|
|
499
|
+
})), o = fe({ series: [{
|
|
500
|
+
name: "_",
|
|
501
|
+
color: F.value.style.chart.layout.donut.emptyFill,
|
|
502
|
+
value: 1
|
|
503
|
+
}] }, V.value.width / 2, V.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Fn.value), s = `M ${V.value.width / 2},${V.value.height / 2 + r}
|
|
504
|
+
a ${r},${r} 0 1,1 0,${-2 * r}
|
|
505
|
+
a ${r},${r} 0 1,1 0,${2 * r}`;
|
|
506
|
+
return {
|
|
507
|
+
...e,
|
|
508
|
+
hasData: n,
|
|
509
|
+
radius: r,
|
|
510
|
+
skeleton: o,
|
|
511
|
+
fullCirclePath: s,
|
|
512
|
+
donut: fe({ series: a }, V.value.width / 2, V.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Fn.value)
|
|
513
|
+
};
|
|
514
|
+
})), Ln = f(() => [...W.value].map((e, t) => {
|
|
515
|
+
let n = t * G.value / W.value.length;
|
|
516
|
+
return {
|
|
517
|
+
sizeRatio: n,
|
|
518
|
+
donut: fe({ series: [{ value: 1 }] }, V.value.width / 2, V.value.height / 2, G.value - n, G.value - n, 1.99999, 2, 1, 360, 105.25, G.value / W.value.length * F.value.style.chart.layout.donut.spacingRatio)[0]
|
|
519
|
+
};
|
|
520
|
+
})), Rn = S(null), X = S(null), Z = S(null), zn = S(null);
|
|
521
|
+
function Bn({ datapoint: e, seriesIndex: t }) {
|
|
522
|
+
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
523
|
+
datapoint: e,
|
|
524
|
+
seriesIndex: t
|
|
525
|
+
}), Bt.value = !1, Rn.value = null, Ht.value = null, X.value = null, Z.value = null, N.value = null, an.value = "pointer";
|
|
526
|
+
}
|
|
527
|
+
function Vn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
528
|
+
return Ae({
|
|
529
|
+
config: i,
|
|
530
|
+
val: e,
|
|
531
|
+
percentage: t,
|
|
532
|
+
showVal: n,
|
|
533
|
+
showPercentage: r
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
function Hn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
537
|
+
F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
538
|
+
datapoint: e,
|
|
539
|
+
seriesIndex: n
|
|
540
|
+
}), an.value = r, N.value = n, Rn.value = e.arcOfId, X.value = e.id, Z.value = n, Ht.value = e.id, zn.value = {
|
|
541
|
+
datapoint: e,
|
|
542
|
+
seriesIndex: n,
|
|
543
|
+
series: q.value,
|
|
544
|
+
config: F.value
|
|
545
|
+
};
|
|
546
|
+
let i = F.value.style.chart.tooltip.customFormat;
|
|
547
|
+
if (se(i) && oe(() => i({
|
|
548
|
+
seriesIndex: n,
|
|
549
|
+
datapoint: e,
|
|
550
|
+
series: q.value,
|
|
551
|
+
config: F.value
|
|
552
|
+
}))) Vt.value = i({
|
|
553
|
+
seriesIndex: n,
|
|
554
|
+
datapoint: e,
|
|
555
|
+
series: q.value,
|
|
556
|
+
config: F.value
|
|
557
|
+
});
|
|
558
|
+
else {
|
|
559
|
+
let t = "";
|
|
560
|
+
if (F.value.style.chart.tooltip.showAllItemsAtIndex && U.value.length === 0) {
|
|
561
|
+
let r = q.value.map((e) => e.series.find((e) => e.seriesIndex === n));
|
|
562
|
+
r.forEach((i, a) => {
|
|
563
|
+
if (!i) return "";
|
|
564
|
+
t += `
|
|
565
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${a < r.length - 1 ? `border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor}` : ""}">
|
|
566
|
+
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
567
|
+
<svg viewBox="0 0 20 20" height="${F.value.style.chart.tooltip.fontSize}" width="${F.value.style.chart.tooltip.fontSize}">
|
|
568
|
+
<circle cx="10" cy="10" r="10" fill="${i.color}"/>
|
|
569
|
+
</svg>
|
|
570
|
+
<span>
|
|
571
|
+
${i.arcOf ?? ""} - ${i.name}
|
|
572
|
+
</span>
|
|
573
|
+
</div>
|
|
574
|
+
<span>
|
|
575
|
+
<b>
|
|
576
|
+
${Vn({
|
|
577
|
+
config: F.value.style.chart.tooltip,
|
|
578
|
+
showVal: F.value.style.chart.tooltip.showValue,
|
|
579
|
+
showPercentage: F.value.style.chart.tooltip.showPercentage,
|
|
580
|
+
val: ie(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, o({
|
|
581
|
+
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
582
|
+
v: e.value,
|
|
583
|
+
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
584
|
+
r: F.value.style.chart.tooltip.roundingValue
|
|
585
|
+
}), {
|
|
586
|
+
datapoint: e,
|
|
587
|
+
seriesIndex: n
|
|
588
|
+
}),
|
|
589
|
+
percentage: o({
|
|
590
|
+
v: i.proportion * 100,
|
|
591
|
+
s: "%",
|
|
592
|
+
r: F.value.style.chart.tooltip.roundingPercentage
|
|
593
|
+
})
|
|
594
|
+
})}
|
|
595
|
+
</b>
|
|
596
|
+
</span>
|
|
597
|
+
</div>
|
|
598
|
+
`;
|
|
599
|
+
});
|
|
600
|
+
} else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, F.value.style.chart.tooltip.showValue && (t += `<b>${ie(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, o({
|
|
601
|
+
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
602
|
+
v: e.value,
|
|
603
|
+
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
604
|
+
r: F.value.style.chart.tooltip.roundingValue
|
|
605
|
+
}), {
|
|
606
|
+
datapoint: e,
|
|
607
|
+
seriesIndex: n
|
|
608
|
+
})}</b>`), F.value.style.chart.tooltip.showPercentage && (F.value.style.chart.tooltip.showValue ? t += `<span>(${o({
|
|
609
|
+
v: e.proportion * 100,
|
|
610
|
+
s: "%",
|
|
611
|
+
r: F.value.style.chart.tooltip.roundingPercentage
|
|
612
|
+
})})</span></div>` : t += `<b>${o({
|
|
613
|
+
v: e.proportion * 100,
|
|
614
|
+
s: "%",
|
|
615
|
+
r: F.value.style.chart.tooltip.roundingPercentage
|
|
616
|
+
})}</b></div>`);
|
|
617
|
+
Vt.value = `<div style="font-size:${F.value.style.chart.tooltip.fontSize}px">${t}</div>`;
|
|
618
|
+
}
|
|
619
|
+
Bt.value = !0;
|
|
620
|
+
}
|
|
621
|
+
function Un(e) {
|
|
622
|
+
return e.proportion * 100 > F.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
623
|
+
}
|
|
624
|
+
function Wn(e, t) {
|
|
625
|
+
if (!F.value.useBlurOnHover) return "";
|
|
626
|
+
if (F.value.style.chart.tooltip.showAllItemsAtIndex && U.value.length === 0) return [null, void 0].includes(Z.value) || Z.value === t ? "" : `url(#blur_${k.value})`;
|
|
627
|
+
if (!F.value.style.chart.tooltip.showAllItemsAtIndex || U.value.length) return [null, void 0].includes(X.value) || X.value === e.id ? "" : `url(#blur_${k.value})`;
|
|
628
|
+
}
|
|
629
|
+
let Gn = f(() => W.value.map((e, n) => {
|
|
630
|
+
let r = e.series.filter((e) => !U.value.includes(e.id)), i = j.value ? r.map((e) => {
|
|
631
|
+
let r = L.value[n].series.findIndex((t) => t.name === e.name);
|
|
632
|
+
return t(L.value[n].series[r].values).reduce((e, t) => e + t, 0);
|
|
633
|
+
}).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
634
|
+
return e.series.map((e, r) => {
|
|
635
|
+
let a = t(L.value[n].series[r].values).reduce((e, t) => e + t, 0), s = j.value ? a : e.value, c = Vn({
|
|
636
|
+
val: ie(F.value.style.chart.layout.labels.dataLabels.formatter, s, o({
|
|
637
|
+
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
638
|
+
v: s,
|
|
639
|
+
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
640
|
+
r: F.value.style.chart.legend.roundingValue
|
|
641
|
+
}), {
|
|
642
|
+
datapoint: e,
|
|
643
|
+
seriesIndex: r
|
|
644
|
+
}),
|
|
645
|
+
percentage: isNaN(s / i) || U.value.includes(e.id) ? "-" : o({
|
|
646
|
+
v: s / i * 100,
|
|
647
|
+
s: "%",
|
|
648
|
+
r: F.value.style.chart.legend.roundingPercentage
|
|
649
|
+
}),
|
|
650
|
+
showVal: F.value.style.chart.legend.showValue,
|
|
651
|
+
showPercentage: F.value.style.chart.legend.showPercentage,
|
|
652
|
+
config: F.value.style.chart.legend
|
|
653
|
+
}), l = `${e.name}${F.value.style.chart.legend.showPercentage || F.value.style.chart.legend.showValue ? ": " : ""}${c}`;
|
|
654
|
+
return {
|
|
655
|
+
name: e.name,
|
|
656
|
+
color: e.color,
|
|
657
|
+
value: s,
|
|
658
|
+
display: l,
|
|
659
|
+
svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${l}`,
|
|
660
|
+
shape: "circle",
|
|
661
|
+
arcOf: e.arcOf,
|
|
662
|
+
id: e.id,
|
|
663
|
+
seriesIndex: r,
|
|
664
|
+
datasetIndex: n,
|
|
665
|
+
total: i,
|
|
666
|
+
opacity: U.value.includes(e.id) ? .5 : 1,
|
|
667
|
+
segregate: () => J(e),
|
|
668
|
+
isSegregated: U.value.includes(e.id)
|
|
669
|
+
};
|
|
670
|
+
});
|
|
671
|
+
})), Kn = f(() => ({
|
|
672
|
+
cy: "nested-donuts-legend",
|
|
673
|
+
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
674
|
+
color: F.value.style.chart.legend.color,
|
|
675
|
+
fontSize: F.value.style.chart.legend.fontSize,
|
|
676
|
+
paddingBottom: 12,
|
|
677
|
+
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
678
|
+
})), Q = f(() => ({
|
|
679
|
+
head: q.value.flatMap((e) => e.series.map((t) => ({
|
|
680
|
+
name: `${e.name} - ${t.name}`,
|
|
681
|
+
color: t.color,
|
|
682
|
+
total: e.total
|
|
683
|
+
}))),
|
|
684
|
+
body: q.value.flatMap((e) => e.series.map((e) => e.value))
|
|
685
|
+
}));
|
|
686
|
+
function qn(e = null) {
|
|
687
|
+
Re(() => {
|
|
688
|
+
let t = Q.value.head.map((e, t) => [
|
|
689
|
+
[e.name],
|
|
690
|
+
[Q.value.body[t]],
|
|
691
|
+
[isNaN(Q.value.body[t] / e.total) ? "-" : Q.value.body[t] / e.total * 100]
|
|
692
|
+
]), n = te([
|
|
693
|
+
[F.value.style.chart.title.text],
|
|
694
|
+
[F.value.style.chart.title.subtitle.text],
|
|
695
|
+
[
|
|
696
|
+
[""],
|
|
697
|
+
["val"],
|
|
698
|
+
["%"]
|
|
699
|
+
]
|
|
700
|
+
].concat(t));
|
|
701
|
+
e ? e(n) : c({
|
|
702
|
+
csvContent: n,
|
|
703
|
+
title: F.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
704
|
+
});
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
let Jn = f(() => {
|
|
708
|
+
let e = [
|
|
709
|
+
F.value.table.columnNames.series,
|
|
710
|
+
F.value.table.columnNames.value,
|
|
711
|
+
F.value.table.columnNames.percentage
|
|
712
|
+
], t = Q.value.head.map((e, t) => {
|
|
713
|
+
let n = o({
|
|
714
|
+
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
715
|
+
v: Q.value.body[t],
|
|
716
|
+
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
717
|
+
r: F.value.table.td.roundingValue
|
|
718
|
+
});
|
|
719
|
+
return [
|
|
720
|
+
{
|
|
721
|
+
color: e.color,
|
|
722
|
+
name: e.name
|
|
723
|
+
},
|
|
724
|
+
n,
|
|
725
|
+
isNaN(Q.value.body[t] / e.total) ? "-" : o({
|
|
726
|
+
v: Q.value.body[t] / e.total * 100,
|
|
727
|
+
s: "%",
|
|
728
|
+
r: F.value.table.td.roundingPercentage
|
|
729
|
+
})
|
|
730
|
+
];
|
|
731
|
+
}), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
|
|
732
|
+
th: {
|
|
733
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
734
|
+
color: F.value.table.th.color,
|
|
735
|
+
outline: F.value.table.th.outline
|
|
736
|
+
},
|
|
737
|
+
td: {
|
|
738
|
+
backgroundColor: F.value.table.td.backgroundColor,
|
|
739
|
+
color: F.value.table.td.color,
|
|
740
|
+
outline: F.value.table.td.outline
|
|
741
|
+
},
|
|
742
|
+
breakpoint: F.value.table.responsiveBreakpoint
|
|
743
|
+
};
|
|
744
|
+
return {
|
|
745
|
+
colNames: [
|
|
746
|
+
F.value.table.columnNames.series,
|
|
747
|
+
F.value.table.columnNames.value,
|
|
748
|
+
F.value.table.columnNames.percentage
|
|
749
|
+
],
|
|
750
|
+
head: e,
|
|
751
|
+
body: t,
|
|
752
|
+
a11yBody: n,
|
|
753
|
+
config: r
|
|
754
|
+
};
|
|
755
|
+
});
|
|
756
|
+
function Yn() {
|
|
757
|
+
return W.value;
|
|
758
|
+
}
|
|
759
|
+
function Xn() {
|
|
760
|
+
B.value.showTable = !B.value.showTable;
|
|
761
|
+
}
|
|
762
|
+
function Zn() {
|
|
763
|
+
B.value.dataLabels.show = !B.value.dataLabels.show;
|
|
764
|
+
}
|
|
765
|
+
function Qn() {
|
|
766
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
767
|
+
}
|
|
768
|
+
let $n = S(!1);
|
|
769
|
+
function er() {
|
|
770
|
+
$n.value = !$n.value;
|
|
771
|
+
}
|
|
772
|
+
async function tr({ scale: e = 2 } = {}) {
|
|
773
|
+
if (!A.value) return;
|
|
774
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
775
|
+
domElement: A.value,
|
|
776
|
+
base64: !0,
|
|
777
|
+
img: !0,
|
|
778
|
+
scale: e
|
|
779
|
+
});
|
|
780
|
+
return {
|
|
781
|
+
imageUri: i,
|
|
782
|
+
base64: a,
|
|
783
|
+
title: F.value.style.chart.title.text,
|
|
784
|
+
width: t,
|
|
785
|
+
height: n,
|
|
786
|
+
aspectRatio: r
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
let nr = S(null);
|
|
790
|
+
function rr() {
|
|
791
|
+
if (!nr.value) return;
|
|
792
|
+
let { x: e, y: t, width: n, height: r } = nr.value.getBBox();
|
|
793
|
+
R.value && R.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
794
|
+
}
|
|
795
|
+
let ir = f(() => {
|
|
796
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = B.value.showTable;
|
|
797
|
+
return {
|
|
798
|
+
component: e ? Ft : At,
|
|
799
|
+
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
800
|
+
props: e ? {
|
|
801
|
+
backgroundColor: F.value.table.th.backgroundColor,
|
|
802
|
+
color: F.value.table.th.color,
|
|
803
|
+
headerColor: F.value.table.th.color,
|
|
804
|
+
headerBg: F.value.table.th.backgroundColor,
|
|
805
|
+
isFullscreen: P.value,
|
|
806
|
+
fullscreenParent: A.value,
|
|
807
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
808
|
+
isCursorPointer: I.value
|
|
809
|
+
} : {
|
|
810
|
+
hideDetails: !0,
|
|
811
|
+
config: {
|
|
812
|
+
open: t,
|
|
813
|
+
maxHeight: 1e4,
|
|
814
|
+
body: {
|
|
815
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
816
|
+
color: F.value.style.chart.color
|
|
817
|
+
},
|
|
818
|
+
head: {
|
|
819
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
820
|
+
color: F.value.style.chart.color
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
});
|
|
826
|
+
Ke(() => B.value.showTable, (e) => {
|
|
827
|
+
F.value.table.show || (e && F.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
|
|
828
|
+
});
|
|
829
|
+
function ar() {
|
|
830
|
+
B.value.showTable = !1, en.value && en.value.setTableIconState(!1);
|
|
831
|
+
}
|
|
832
|
+
let or = f(() => F.value.style.chart.backgroundColor), sr = f(() => F.value.style.chart.legend), { exportSvg: cr, getSvg: lr } = ve({
|
|
833
|
+
svg: R,
|
|
834
|
+
title: f(() => F.value.style.chart.title),
|
|
835
|
+
legend: sr,
|
|
836
|
+
legendItems: f(() => Gn.value.flat().map((e) => ({
|
|
837
|
+
...e,
|
|
838
|
+
name: e.svgDisplay
|
|
839
|
+
}))),
|
|
840
|
+
backgroundColor: or
|
|
841
|
+
});
|
|
842
|
+
async function ur({ isCb: e }) {
|
|
843
|
+
nn.value = !0, await Re();
|
|
844
|
+
try {
|
|
845
|
+
if (e) {
|
|
846
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await lr();
|
|
847
|
+
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
848
|
+
blob: e,
|
|
849
|
+
url: t,
|
|
850
|
+
text: n,
|
|
851
|
+
dataUrl: r
|
|
852
|
+
}));
|
|
853
|
+
} else await Promise.resolve(cr());
|
|
854
|
+
} finally {
|
|
855
|
+
nn.value = !1;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
function dr(e) {
|
|
859
|
+
if (e?.stage === "start") {
|
|
860
|
+
tn.value = !0;
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
if (e?.stage === "end") {
|
|
864
|
+
tn.value = !1;
|
|
865
|
+
return;
|
|
866
|
+
}
|
|
867
|
+
Tn();
|
|
868
|
+
}
|
|
869
|
+
async function fr() {
|
|
870
|
+
if (H("copyAlt", {
|
|
871
|
+
config: F.value,
|
|
872
|
+
dataset: q.value
|
|
873
|
+
}), !F.value.userOptions.callbacks.altCopy) {
|
|
874
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
878
|
+
config: F.value,
|
|
879
|
+
dataset: q.value
|
|
880
|
+
}));
|
|
881
|
+
}
|
|
882
|
+
let $ = f(() => Y.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
|
|
883
|
+
function pr() {
|
|
884
|
+
N.value = null, on.value = !0;
|
|
885
|
+
}
|
|
886
|
+
function mr() {
|
|
887
|
+
N.value = null, an.value = "pointer", Bt.value = !1, Rn.value = null, Ht.value = null, X.value = null, Z.value = null, on.value = !1;
|
|
888
|
+
}
|
|
889
|
+
function hr(e) {
|
|
890
|
+
if (!R.value || $n.value || document.activeElement !== R.value || !$.value.length) return;
|
|
891
|
+
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
892
|
+
if (!t && !n && !r && !i) return;
|
|
893
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
894
|
+
N.value = null, an.value = "pointer", Bt.value = !1, Rn.value = null, Ht.value = null, X.value = null, Z.value = null;
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
if (r) {
|
|
898
|
+
if (N.value === null) return;
|
|
899
|
+
let e = $.value[N.value];
|
|
900
|
+
if (!e) return;
|
|
901
|
+
On({
|
|
902
|
+
datapoint: e,
|
|
903
|
+
index: N.value,
|
|
904
|
+
seriesIndex: e.seriesIndex
|
|
905
|
+
});
|
|
906
|
+
return;
|
|
907
|
+
}
|
|
908
|
+
let a = N.value, o = Z.value, s = a !== null && a >= 0 && a < $.value.length, c = o !== null && o >= 0 && o < $.value.length;
|
|
909
|
+
s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
|
|
910
|
+
let l = $.value[a];
|
|
911
|
+
l && (N.value = a, gr(), Hn({
|
|
912
|
+
datapoint: l,
|
|
913
|
+
relativeIndex: a,
|
|
914
|
+
seriesIndex: l.seriesIndex,
|
|
915
|
+
show: !0,
|
|
916
|
+
triggerMode: "keyboard"
|
|
917
|
+
}));
|
|
918
|
+
}
|
|
919
|
+
function gr() {
|
|
920
|
+
if (!R.value) return;
|
|
921
|
+
let e = R.value.getBoundingClientRect();
|
|
922
|
+
rn.value = {
|
|
923
|
+
x: e.left + e.width / 2,
|
|
924
|
+
y: e.top + e.height / 2
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
let _r = f(() => ({
|
|
928
|
+
headers: Jn.value?.colNames ?? [],
|
|
929
|
+
rows: Jn.value?.a11yBody ?? []
|
|
930
|
+
}));
|
|
931
|
+
return Ce({
|
|
932
|
+
autoSize: rr,
|
|
933
|
+
getData: Yn,
|
|
934
|
+
getImage: tr,
|
|
935
|
+
generatePdf: wn,
|
|
936
|
+
generateCsv: qn,
|
|
937
|
+
generateImage: Tn,
|
|
938
|
+
generateSvg: ur,
|
|
939
|
+
hideSeries: Pn,
|
|
940
|
+
showSeries: Nn,
|
|
941
|
+
toggleTable: Xn,
|
|
942
|
+
toggleLabels: Zn,
|
|
943
|
+
toggleTooltip: Qn,
|
|
944
|
+
toggleAnnotator: er,
|
|
945
|
+
toggleFullscreen: sn,
|
|
946
|
+
copyAlt: fr
|
|
947
|
+
}), (e, t) => (x(), h("div", {
|
|
948
|
+
ref_key: "nestedDonutsChart",
|
|
949
|
+
ref: A,
|
|
950
|
+
class: y(`vue-data-ui-component vue-ui-nested-donuts ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
951
|
+
style: ze(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
|
|
952
|
+
id: `nested_donuts_${k.value}`,
|
|
953
|
+
onMouseenter: t[2] ||= () => E(pn)(!0),
|
|
954
|
+
onMouseleave: t[3] ||= () => E(pn)(!1)
|
|
955
|
+
}, [
|
|
956
|
+
g("div", {
|
|
957
|
+
id: `chart-instructions-${k.value}`,
|
|
958
|
+
class: "sr-only"
|
|
959
|
+
}, [g("p", null, T(F.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
960
|
+
_r.value?.rows?.length ? (x(), p(De, {
|
|
961
|
+
key: 0,
|
|
962
|
+
uid: k.value,
|
|
963
|
+
head: _r.value.headers,
|
|
964
|
+
body: _r.value.rows,
|
|
965
|
+
notice: F.value.a11y.translations.tableAvailable,
|
|
966
|
+
caption: F.value.a11y.translations.tableCaption
|
|
967
|
+
}, null, 8, [
|
|
968
|
+
"uid",
|
|
969
|
+
"head",
|
|
970
|
+
"body",
|
|
971
|
+
"notice",
|
|
972
|
+
"caption"
|
|
973
|
+
])) : m("", !0),
|
|
974
|
+
F.value.userOptions.buttons.annotator ? (x(), p(E(Nt), {
|
|
975
|
+
key: 1,
|
|
976
|
+
svgRef: E(R),
|
|
977
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
978
|
+
color: F.value.style.chart.color,
|
|
979
|
+
active: $n.value,
|
|
980
|
+
isCursorPointer: I.value,
|
|
981
|
+
onClose: er
|
|
982
|
+
}, {
|
|
983
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
984
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
985
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
|
|
986
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
|
|
987
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
|
|
988
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
|
|
989
|
+
_: 3
|
|
990
|
+
}, 8, [
|
|
991
|
+
"svgRef",
|
|
992
|
+
"backgroundColor",
|
|
993
|
+
"color",
|
|
994
|
+
"active",
|
|
995
|
+
"isCursorPointer"
|
|
996
|
+
])) : m("", !0),
|
|
997
|
+
En.value ? (x(), h("div", {
|
|
998
|
+
key: 2,
|
|
999
|
+
ref_key: "noTitle",
|
|
1000
|
+
ref: qt,
|
|
1001
|
+
class: "vue-data-ui-no-title-space",
|
|
1002
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1003
|
+
}, null, 512)) : m("", !0),
|
|
1004
|
+
F.value.style.chart.title.text ? (x(), h("div", {
|
|
1005
|
+
key: 3,
|
|
1006
|
+
ref_key: "chartTitle",
|
|
1007
|
+
ref: Wt
|
|
1008
|
+
}, [(x(), p(Se, {
|
|
1009
|
+
key: `title_${Jt.value}`,
|
|
1010
|
+
config: {
|
|
1011
|
+
title: {
|
|
1012
|
+
cy: "donut-div-title",
|
|
1013
|
+
...F.value.style.chart.title
|
|
1014
|
+
},
|
|
1015
|
+
subtitle: {
|
|
1016
|
+
cy: "donut-div-subtitle",
|
|
1017
|
+
...F.value.style.chart.title.subtitle
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1021
|
+
g("div", { id: `legend-top-${k.value}` }, null, 8, Ze),
|
|
1022
|
+
F.value.userOptions.show && zt.value && (E(mn) || E(fn)) ? (x(), p(E(Mt), {
|
|
1023
|
+
ref_key: "userOptionsRef",
|
|
1024
|
+
ref: en,
|
|
1025
|
+
key: `user_option_${Ut.value}`,
|
|
1026
|
+
backgroundColor: F.value.style.chart.backgroundColor,
|
|
1027
|
+
color: F.value.style.chart.color,
|
|
1028
|
+
isPrinting: E(Sn),
|
|
1029
|
+
isImaging: E(Cn),
|
|
1030
|
+
uid: k.value,
|
|
1031
|
+
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
1032
|
+
hasPdf: F.value.userOptions.buttons.pdf,
|
|
1033
|
+
hasXls: F.value.userOptions.buttons.csv,
|
|
1034
|
+
hasImg: F.value.userOptions.buttons.img,
|
|
1035
|
+
hasSvg: F.value.userOptions.buttons.svg,
|
|
1036
|
+
hasTable: F.value.userOptions.buttons.table,
|
|
1037
|
+
hasLabel: F.value.userOptions.buttons.labels,
|
|
1038
|
+
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
1039
|
+
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
1040
|
+
isFullscreen: P.value,
|
|
1041
|
+
isTooltip: B.value.showTooltip,
|
|
1042
|
+
titles: { ...F.value.userOptions.buttonTitles },
|
|
1043
|
+
chartElement: A.value,
|
|
1044
|
+
position: F.value.userOptions.position,
|
|
1045
|
+
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
1046
|
+
isAnnotation: $n.value,
|
|
1047
|
+
callbacks: F.value.userOptions.callbacks,
|
|
1048
|
+
printScale: F.value.userOptions.print.scale,
|
|
1049
|
+
tableDialog: F.value.table.useDialog,
|
|
1050
|
+
isCursorPointer: I.value,
|
|
1051
|
+
onToggleFullscreen: sn,
|
|
1052
|
+
onGeneratePdf: E(wn),
|
|
1053
|
+
onGenerateCsv: qn,
|
|
1054
|
+
onGenerateImage: dr,
|
|
1055
|
+
onGenerateSvg: ur,
|
|
1056
|
+
onToggleTable: Xn,
|
|
1057
|
+
onToggleLabels: Zn,
|
|
1058
|
+
onToggleTooltip: Qn,
|
|
1059
|
+
onToggleAnnotator: er,
|
|
1060
|
+
onCopyAlt: fr,
|
|
1061
|
+
style: ze({ visibility: E(mn) ? E(fn) ? "visible" : "hidden" : "visible" })
|
|
1062
|
+
}, Pe({ _: 2 }, [
|
|
1063
|
+
e.$slots.menuIcon ? {
|
|
1064
|
+
name: "menuIcon",
|
|
1065
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(v({
|
|
1066
|
+
isOpen: t,
|
|
1067
|
+
color: n
|
|
1068
|
+
})), void 0, !0)]),
|
|
1069
|
+
key: "0"
|
|
1070
|
+
} : void 0,
|
|
1071
|
+
e.$slots.optionTooltip ? {
|
|
1072
|
+
name: "optionTooltip",
|
|
1073
|
+
fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1074
|
+
key: "1"
|
|
1075
|
+
} : void 0,
|
|
1076
|
+
e.$slots.optionPdf ? {
|
|
1077
|
+
name: "optionPdf",
|
|
1078
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1079
|
+
key: "2"
|
|
1080
|
+
} : void 0,
|
|
1081
|
+
e.$slots.optionCsv ? {
|
|
1082
|
+
name: "optionCsv",
|
|
1083
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1084
|
+
key: "3"
|
|
1085
|
+
} : void 0,
|
|
1086
|
+
e.$slots.optionImg ? {
|
|
1087
|
+
name: "optionImg",
|
|
1088
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1089
|
+
key: "4"
|
|
1090
|
+
} : void 0,
|
|
1091
|
+
e.$slots.optionSvg ? {
|
|
1092
|
+
name: "optionSvg",
|
|
1093
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1094
|
+
key: "5"
|
|
1095
|
+
} : void 0,
|
|
1096
|
+
e.$slots.optionTable ? {
|
|
1097
|
+
name: "optionTable",
|
|
1098
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1099
|
+
key: "6"
|
|
1100
|
+
} : void 0,
|
|
1101
|
+
e.$slots.optionLabels ? {
|
|
1102
|
+
name: "optionLabels",
|
|
1103
|
+
fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1104
|
+
key: "7"
|
|
1105
|
+
} : void 0,
|
|
1106
|
+
e.$slots.optionFullscreen ? {
|
|
1107
|
+
name: "optionFullscreen",
|
|
1108
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(v({
|
|
1109
|
+
toggleFullscreen: t,
|
|
1110
|
+
isFullscreen: n
|
|
1111
|
+
})), void 0, !0)]),
|
|
1112
|
+
key: "8"
|
|
1113
|
+
} : void 0,
|
|
1114
|
+
e.$slots.optionAnnotator ? {
|
|
1115
|
+
name: "optionAnnotator",
|
|
1116
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(v({
|
|
1117
|
+
toggleAnnotator: t,
|
|
1118
|
+
isAnnotator: n
|
|
1119
|
+
})), void 0, !0)]),
|
|
1120
|
+
key: "9"
|
|
1121
|
+
} : void 0,
|
|
1122
|
+
e.$slots.optionAltCopy ? {
|
|
1123
|
+
name: "optionAltCopy",
|
|
1124
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
|
|
1125
|
+
key: "10"
|
|
1126
|
+
} : void 0,
|
|
1127
|
+
e.$slots["custom-menu-before"] ? {
|
|
1128
|
+
name: "custom-menu-before",
|
|
1129
|
+
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1130
|
+
key: "11"
|
|
1131
|
+
} : void 0,
|
|
1132
|
+
e.$slots["custom-menu-after"] ? {
|
|
1133
|
+
name: "custom-menu-after",
|
|
1134
|
+
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1135
|
+
key: "12"
|
|
1136
|
+
} : void 0
|
|
1137
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : m("", !0),
|
|
1138
|
+
g("div", Qe, [(x(), h("svg", {
|
|
1139
|
+
ref_key: "svgRef",
|
|
1140
|
+
ref: R,
|
|
1141
|
+
xmlns: E(ce),
|
|
1142
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1143
|
+
class: y({
|
|
1144
|
+
"vue-data-ui-fullscreen--on": P.value,
|
|
1145
|
+
"vue-data-ui-fulscreen--off": !P.value,
|
|
1146
|
+
"vue-data-ui-svg": !0
|
|
1147
|
+
}),
|
|
1148
|
+
viewBox: `0 0 ${V.value.width <= 0 ? .001 : V.value.width} ${V.value.height < 0 ? .001 : V.value.height}`,
|
|
1149
|
+
style: ze(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color};${gn.value.css}`),
|
|
1150
|
+
tabindex: "0",
|
|
1151
|
+
onFocus: pr,
|
|
1152
|
+
onBlur: mr,
|
|
1153
|
+
onKeydown: hr
|
|
1154
|
+
}, [g("g", {
|
|
1155
|
+
ref_key: "G",
|
|
1156
|
+
ref: nr,
|
|
1157
|
+
class: "vue-data-ui-g"
|
|
1158
|
+
}, [
|
|
1159
|
+
Ie(E(Pt)),
|
|
1160
|
+
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1161
|
+
key: 0,
|
|
1162
|
+
x: 0,
|
|
1163
|
+
y: 0,
|
|
1164
|
+
width: V.value.width <= 0 ? .001 : V.value.width,
|
|
1165
|
+
height: V.value.height < 0 ? .001 : V.value.height,
|
|
1166
|
+
style: { pointerEvents: "none" }
|
|
1167
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : m("", !0),
|
|
1168
|
+
g("defs", null, [(x(!0), h(d, null, C(Ln.value, (e, n) => (x(), h("radialGradient", { id: `radial_${k.value}_${n}` }, [
|
|
1169
|
+
t[4] ||= g("stop", {
|
|
1170
|
+
offset: "0%",
|
|
1171
|
+
"stop-color": "#FFFFFF",
|
|
1172
|
+
"stop-opacity": "0"
|
|
1173
|
+
}, null, -1),
|
|
1174
|
+
g("stop", {
|
|
1175
|
+
offset: `${(1 - Fn.value / In.value[n]) * 100}%`,
|
|
1176
|
+
"stop-color": E(l)("#FFFFFF", 0),
|
|
1177
|
+
"stop-opacity": "0"
|
|
1178
|
+
}, null, 8, nt),
|
|
1179
|
+
g("stop", {
|
|
1180
|
+
offset: `${(1 - Fn.value / In.value[n] / 2) * 100}%`,
|
|
1181
|
+
"stop-color": "#FFFFFF",
|
|
1182
|
+
"stop-opacity": F.value.style.chart.gradientIntensity / 100
|
|
1183
|
+
}, null, 8, rt),
|
|
1184
|
+
t[5] ||= g("stop", {
|
|
1185
|
+
offset: "100%",
|
|
1186
|
+
"stop-color": "#FFFFFF",
|
|
1187
|
+
"stop-opacity": "0"
|
|
1188
|
+
}, null, -1)
|
|
1189
|
+
], 8, tt))), 256))]),
|
|
1190
|
+
g("defs", null, [g("filter", {
|
|
1191
|
+
id: `blur_${k.value}`,
|
|
1192
|
+
x: "-50%",
|
|
1193
|
+
y: "-50%",
|
|
1194
|
+
width: "200%",
|
|
1195
|
+
height: "200%"
|
|
1196
|
+
}, [g("feGaussianBlur", {
|
|
1197
|
+
in: "SourceGraphic",
|
|
1198
|
+
stdDeviation: 2,
|
|
1199
|
+
id: `blur_std_${k.value}`
|
|
1200
|
+
}, null, 8, at), t[6] ||= g("feColorMatrix", {
|
|
1201
|
+
type: "saturate",
|
|
1202
|
+
values: "0"
|
|
1203
|
+
}, null, -1)], 8, it), g("filter", {
|
|
1204
|
+
id: `shadow_${k.value}`,
|
|
1205
|
+
"color-interpolation-filters": "sRGB"
|
|
1206
|
+
}, [g("feDropShadow", {
|
|
1207
|
+
dx: "0",
|
|
1208
|
+
dy: "0",
|
|
1209
|
+
stdDeviation: "10",
|
|
1210
|
+
"flood-opacity": "0.5",
|
|
1211
|
+
"flood-color": F.value.style.chart.layout.donut.shadowColor
|
|
1212
|
+
}, null, 8, st)], 8, ot)]),
|
|
1213
|
+
g("defs", null, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("path", {
|
|
1214
|
+
key: `path-full-${t}`,
|
|
1215
|
+
id: `path-full-${t}-${k.value}`,
|
|
1216
|
+
d: e.fullCirclePath,
|
|
1217
|
+
fill: "none"
|
|
1218
|
+
}, null, 8, ct))), 128))]),
|
|
1219
|
+
(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", null, [e.hasData ? (x(!0), h(d, { key: 0 }, C(e.donut.filter((e) => !e.ghost), (e, t) => (x(), h("g", null, [g("path", {
|
|
1220
|
+
class: "vue-ui-donut-arc-path",
|
|
1221
|
+
d: e.arcSlice,
|
|
1222
|
+
fill: e.color,
|
|
1223
|
+
stroke: F.value.style.chart.layout.donut.borderColorAuto ? F.value.style.chart.backgroundColor : F.value.style.chart.layout.donut.borderColor,
|
|
1224
|
+
"stroke-width": F.value.style.chart.layout.donut.borderWidth,
|
|
1225
|
+
filter: Wn(e, t)
|
|
1226
|
+
}, null, 8, lt)]))), 256)) : (x(!0), h(d, { key: 1 }, C(e.skeleton, (e, t) => (x(), h("g", null, [g("path", {
|
|
1227
|
+
class: "vue-ui-donut-arc-path",
|
|
1228
|
+
d: e.arcSlice,
|
|
1229
|
+
fill: e.color,
|
|
1230
|
+
stroke: F.value.style.chart.layout.donut.borderColorAuto ? F.value.style.chart.backgroundColor : F.value.style.chart.layout.donut.borderColor,
|
|
1231
|
+
"stroke-width": F.value.style.chart.layout.donut.borderWidth
|
|
1232
|
+
}, null, 8, ut)]))), 256))]))), 256)),
|
|
1233
|
+
F.value.style.chart.useGradient ? (x(), h("g", dt, [(x(!0), h(d, null, C(Ln.value, (e, t) => (x(), h("g", null, [g("path", {
|
|
1234
|
+
d: e.donut.arcSlice,
|
|
1235
|
+
fill: `url(#radial_${k.value}_${t})`,
|
|
1236
|
+
stroke: "transparent",
|
|
1237
|
+
"stroke-width": "0"
|
|
1238
|
+
}, null, 8, ft)]))), 256))])) : m("", !0),
|
|
1239
|
+
F.value.style.chart.layout.labels.dataLabels.showDonutName ? (x(), h("g", pt, [F.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (x(!0), h(d, { key: 0 }, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (n, r) => (x(), h("g", null, [r === 0 && V.value.width && V.value.height ? (x(), h("text", {
|
|
1240
|
+
key: 0,
|
|
1241
|
+
class: y({ animated: F.value.useCssAnimation }),
|
|
1242
|
+
"text-anchor": "middle",
|
|
1243
|
+
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1244
|
+
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1245
|
+
fill: F.value.style.chart.layout.labels.dataLabels.color,
|
|
1246
|
+
dy: F.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
|
|
1247
|
+
}, [g("textPath", {
|
|
1248
|
+
href: `#path-full-${t}-${k.value}`,
|
|
1249
|
+
startOffset: "50%",
|
|
1250
|
+
"text-anchor": "middle",
|
|
1251
|
+
method: "align",
|
|
1252
|
+
spacing: "auto"
|
|
1253
|
+
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(ae)({
|
|
1254
|
+
source: e.name,
|
|
1255
|
+
length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1256
|
+
}) : e.name), 9, ht)], 10, mt)) : m("", !0)]))), 256))]))), 256)) : (x(!0), h(d, { key: 1 }, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (t, n) => (x(), h("g", null, [n === 0 && V.value.width && V.value.height ? (x(), h("text", {
|
|
1257
|
+
key: 0,
|
|
1258
|
+
class: y({ animated: F.value.useCssAnimation }),
|
|
1259
|
+
x: V.value.width / 2,
|
|
1260
|
+
y: t.startY - F.value.style.chart.layout.labels.dataLabels.fontSize + F.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1261
|
+
"text-anchor": "middle",
|
|
1262
|
+
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1263
|
+
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1264
|
+
fill: F.value.style.chart.layout.labels.dataLabels.color
|
|
1265
|
+
}, T(F.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? E(ae)({
|
|
1266
|
+
source: e.name,
|
|
1267
|
+
length: F.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1268
|
+
}) : e.name), 11, gt)) : m("", !0)]))), 256))]))), 256))])) : m("", !0),
|
|
1269
|
+
F.value.style.chart.layout.labels.dataLabels.show ? (x(), h("g", _t, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut.filter((e) => !e.ghost), (e, n) => (x(), h("g", { filter: Wn(e, n) }, [qe(g("text", {
|
|
1270
|
+
class: y({ animated: F.value.useCssAnimation }),
|
|
1271
|
+
opacity: +!!Un(e),
|
|
1272
|
+
"text-anchor": E(le)(e, !0).anchor,
|
|
1273
|
+
x: E(le)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1274
|
+
y: E(re)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst && F.value.style.chart.layout.labels.dataLabels.showValue ? F.value.style.chart.layout.labels.dataLabels.fontSize : 0),
|
|
1275
|
+
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1276
|
+
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1277
|
+
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1278
|
+
}, T(E(i)(E(o)({
|
|
1279
|
+
v: e.proportion * 100,
|
|
1280
|
+
s: "%",
|
|
1281
|
+
r: F.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
1282
|
+
}), F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, yt), [[Ge, B.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showPercentage]]), qe(g("text", {
|
|
1283
|
+
class: y({ animated: F.value.useCssAnimation }),
|
|
1284
|
+
opacity: +!!Un(e),
|
|
1285
|
+
"text-anchor": E(le)(e, !0).anchor,
|
|
1286
|
+
x: E(le)(e, !1, F.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
1287
|
+
y: E(re)(e, F.value.style.chart.layout.labels.dataLabels.offsetY, F.value.style.chart.layout.labels.dataLabels.offsetY) + (F.value.style.chart.layout.labels.dataLabels.showValueFirst || !F.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : F.value.style.chart.layout.labels.dataLabels.fontSize),
|
|
1288
|
+
fill: F.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : F.value.style.chart.layout.labels.dataLabels.color,
|
|
1289
|
+
"font-size": F.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1290
|
+
"font-weight": F.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1291
|
+
}, T(E(i)(E(ie)(F.value.style.chart.layout.labels.dataLabels.formatter, e.value, E(o)({
|
|
1292
|
+
p: F.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1293
|
+
v: e.value,
|
|
1294
|
+
s: F.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1295
|
+
r: F.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
1296
|
+
}), {
|
|
1297
|
+
datapoint: e,
|
|
1298
|
+
seriesIndex: t,
|
|
1299
|
+
datapointIndex: n
|
|
1300
|
+
}), F.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", F.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, bt), [[Ge, B.value.dataLabels.show && F.value.style.chart.layout.labels.dataLabels.showValue]])], 8, vt))), 256))]))), 256))])) : m("", !0),
|
|
1301
|
+
(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", null, [(x(!0), h(d, null, C(e.donut, (e, t) => (x(), h("g", null, [g("path", {
|
|
1302
|
+
d: e.arcSlice,
|
|
1303
|
+
fill: Ht.value === e.id ? F.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1304
|
+
onMouseenter: (t) => Hn({
|
|
1305
|
+
datapoint: e,
|
|
1306
|
+
relativeIndex: $.value.findIndex((t) => t.id === e.id),
|
|
1307
|
+
seriesIndex: e.seriesIndex
|
|
1308
|
+
}),
|
|
1309
|
+
onClick: (n) => On({
|
|
1310
|
+
datapoint: e,
|
|
1311
|
+
index: t,
|
|
1312
|
+
seriesIndex: e.seriesIndex
|
|
1313
|
+
}),
|
|
1314
|
+
onMouseleave: (t) => Bn({
|
|
1315
|
+
datapoint: e,
|
|
1316
|
+
seriesIndex: e.seriesIndex
|
|
1317
|
+
})
|
|
1318
|
+
}, null, 40, xt)]))), 256))]))), 256)),
|
|
1319
|
+
w(e.$slots, "svg", { svg: {
|
|
1320
|
+
...V.value,
|
|
1321
|
+
isPrintingImg: E(Sn) || E(Cn) || tn.value,
|
|
1322
|
+
isPrintingSvg: nn.value
|
|
1323
|
+
} }, void 0, !0)
|
|
1324
|
+
], 512)], 46, $e)), e.$slots.hint ? (x(), h("div", St, [w(e.$slots, "hint", b(v({
|
|
1325
|
+
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1326
|
+
isVisible: on.value
|
|
1327
|
+
})), void 0, !0)])) : m("", !0)]),
|
|
1328
|
+
e.$slots.watermark ? (x(), h("div", Ct, [w(e.$slots, "watermark", b(v({ isPrinting: E(Sn) || E(Cn) || tn.value || nn.value })), void 0, !0)])) : m("", !0),
|
|
1329
|
+
Ie(E(Ot), {
|
|
1330
|
+
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1331
|
+
show: B.value.showTooltip && Bt.value,
|
|
1332
|
+
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1333
|
+
color: F.value.style.chart.tooltip.color,
|
|
1334
|
+
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
1335
|
+
borderColor: F.value.style.chart.tooltip.borderColor,
|
|
1336
|
+
borderWidth: F.value.style.chart.tooltip.borderWidth,
|
|
1337
|
+
fontSize: F.value.style.chart.tooltip.fontSize,
|
|
1338
|
+
backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
|
|
1339
|
+
position: F.value.style.chart.tooltip.position,
|
|
1340
|
+
offsetX: F.value.style.chart.tooltip.offsetX,
|
|
1341
|
+
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1342
|
+
parent: A.value,
|
|
1343
|
+
content: Vt.value,
|
|
1344
|
+
isFullscreen: P.value,
|
|
1345
|
+
isCustom: E(se)(F.value.style.chart.tooltip.customFormat),
|
|
1346
|
+
smooth: F.value.style.chart.tooltip.smooth,
|
|
1347
|
+
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1348
|
+
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1349
|
+
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1350
|
+
isA11yMode: an.value === "keyboard",
|
|
1351
|
+
a11yPosition: rn.value
|
|
1352
|
+
}, {
|
|
1353
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", b(v({ ...zn.value })), void 0, !0)]),
|
|
1354
|
+
tooltip: D(() => [w(e.$slots, "tooltip", b(v({ ...zn.value })), void 0, !0)]),
|
|
1355
|
+
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", b(v({ ...zn.value })), void 0, !0)]),
|
|
1356
|
+
_: 3
|
|
1357
|
+
}, 8, [
|
|
1358
|
+
"teleportTo",
|
|
1359
|
+
"show",
|
|
1360
|
+
"backgroundColor",
|
|
1361
|
+
"color",
|
|
1362
|
+
"borderRadius",
|
|
1363
|
+
"borderColor",
|
|
1364
|
+
"borderWidth",
|
|
1365
|
+
"fontSize",
|
|
1366
|
+
"backgroundOpacity",
|
|
1367
|
+
"position",
|
|
1368
|
+
"offsetX",
|
|
1369
|
+
"offsetY",
|
|
1370
|
+
"parent",
|
|
1371
|
+
"content",
|
|
1372
|
+
"isFullscreen",
|
|
1373
|
+
"isCustom",
|
|
1374
|
+
"smooth",
|
|
1375
|
+
"backdropFilter",
|
|
1376
|
+
"smoothForce",
|
|
1377
|
+
"smoothSnapThreshold",
|
|
1378
|
+
"isA11yMode",
|
|
1379
|
+
"a11yPosition"
|
|
1380
|
+
]),
|
|
1381
|
+
g("div", { id: `legend-bottom-${k.value}` }, null, 8, wt),
|
|
1382
|
+
Qt.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (x(), p(Ne, {
|
|
1383
|
+
key: 6,
|
|
1384
|
+
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1385
|
+
}, [F.value.style.chart.legend.show ? (x(), h("div", {
|
|
1386
|
+
key: 0,
|
|
1387
|
+
ref_key: "chartLegend",
|
|
1388
|
+
ref: Gt,
|
|
1389
|
+
class: y({ "vue-ui-nested-donuts-legend": Gn.value.length > 1 })
|
|
1390
|
+
}, [w(e.$slots, "legend", { legend: Gn.value }, () => [(x(!0), h(d, null, C(Gn.value, (e, n) => (x(), p(je, {
|
|
1391
|
+
key: `legend_${n}_${Xt.value}`,
|
|
1392
|
+
legendSet: e,
|
|
1393
|
+
config: Kn.value,
|
|
1394
|
+
isCursorPointer: I.value,
|
|
1395
|
+
onClickMarker: t[0] ||= ({ legend: e }) => J(e)
|
|
1396
|
+
}, {
|
|
1397
|
+
legendTitle: D(({ titleSet: e }) => [e[0] && e[0].arcOf ? (x(), h("div", Tt, T(e[0].arcOf), 1)) : m("", !0)]),
|
|
1398
|
+
item: D(({ legend: e, index: t }) => [g("div", {
|
|
1399
|
+
onClick: (t) => J(e),
|
|
1400
|
+
style: ze(`opacity:${U.value.includes(e.id) ? .5 : 1}`)
|
|
1401
|
+
}, T(e.display), 13, Et)]),
|
|
1402
|
+
legendToggle: D(() => [e.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !E(un) ? (x(), p(Ee, {
|
|
1403
|
+
key: `toggle-${n}`,
|
|
1404
|
+
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1405
|
+
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1406
|
+
fontSize: F.value.style.chart.legend.fontSize,
|
|
1407
|
+
checked: e.some((e) => U.value.includes(e.id)),
|
|
1408
|
+
isCursorPointer: I.value,
|
|
1409
|
+
onToggle: (t) => jn(e)
|
|
1410
|
+
}, null, 8, [
|
|
1411
|
+
"backgroundColor",
|
|
1412
|
+
"color",
|
|
1413
|
+
"fontSize",
|
|
1414
|
+
"checked",
|
|
1415
|
+
"isCursorPointer",
|
|
1416
|
+
"onToggle"
|
|
1417
|
+
])) : m("", !0)]),
|
|
1418
|
+
_: 2
|
|
1419
|
+
}, 1032, [
|
|
1420
|
+
"legendSet",
|
|
1421
|
+
"config",
|
|
1422
|
+
"isCursorPointer"
|
|
1423
|
+
]))), 128))], !0)], 2)) : m("", !0)], 8, ["to"])) : m("", !0),
|
|
1424
|
+
e.$slots.source ? (x(), h("div", {
|
|
1425
|
+
key: 7,
|
|
1426
|
+
ref_key: "source",
|
|
1427
|
+
ref: Kt,
|
|
1428
|
+
dir: "auto"
|
|
1429
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1430
|
+
zt.value && F.value.userOptions.buttons.table ? (x(), p(He(ir.value.component), Le({ key: 8 }, ir.value.props, {
|
|
1431
|
+
ref_key: "tableUnit",
|
|
1432
|
+
ref: $t,
|
|
1433
|
+
onClose: ar
|
|
1434
|
+
}), Pe({
|
|
1435
|
+
content: D(() => [(x(), p(E(jt), {
|
|
1436
|
+
key: `table_${Yt.value}`,
|
|
1437
|
+
colNames: Jn.value.colNames,
|
|
1438
|
+
head: Jn.value.head,
|
|
1439
|
+
body: Jn.value.body,
|
|
1440
|
+
config: Jn.value.config,
|
|
1441
|
+
title: F.value.table.useDialog ? "" : ir.value.title,
|
|
1442
|
+
withCloseButton: !F.value.table.useDialog,
|
|
1443
|
+
isCursorPointer: I.value,
|
|
1444
|
+
onClose: ar
|
|
1445
|
+
}, {
|
|
1446
|
+
th: D(({ th: e }) => [g("div", {
|
|
1447
|
+
innerHTML: e,
|
|
1448
|
+
style: {
|
|
1449
|
+
display: "flex",
|
|
1450
|
+
"align-items": "center"
|
|
1451
|
+
}
|
|
1452
|
+
}, null, 8, Dt)]),
|
|
1453
|
+
td: D(({ td: e }) => [Fe(T(e.name || e), 1)]),
|
|
1454
|
+
_: 1
|
|
1455
|
+
}, 8, [
|
|
1456
|
+
"colNames",
|
|
1457
|
+
"head",
|
|
1458
|
+
"body",
|
|
1459
|
+
"config",
|
|
1460
|
+
"title",
|
|
1461
|
+
"withCloseButton",
|
|
1462
|
+
"isCursorPointer"
|
|
1463
|
+
]))]),
|
|
1464
|
+
_: 2
|
|
1465
|
+
}, [F.value.table.useDialog ? {
|
|
1466
|
+
name: "title",
|
|
1467
|
+
fn: D(() => [Fe(T(ir.value.title), 1)]),
|
|
1468
|
+
key: "0"
|
|
1469
|
+
} : void 0, F.value.table.useDialog ? {
|
|
1470
|
+
name: "actions",
|
|
1471
|
+
fn: D(() => [g("button", {
|
|
1472
|
+
tabindex: "0",
|
|
1473
|
+
class: "vue-ui-user-options-button",
|
|
1474
|
+
onClick: t[1] ||= (e) => qn(F.value.userOptions.callbacks.csv),
|
|
1475
|
+
style: ze({ cursor: I.value ? "pointer" : "default" })
|
|
1476
|
+
}, [Ie(E(kt), {
|
|
1477
|
+
name: "fileCsv",
|
|
1478
|
+
stroke: ir.value.props.color
|
|
1479
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1480
|
+
key: "1"
|
|
1481
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1482
|
+
w(e.$slots, "skeleton", {}, () => [E(un) ? (x(), p(_e, { key: 0 })) : m("", !0)], !0)
|
|
1483
|
+
], 46, Ye));
|
|
1484
|
+
}
|
|
1485
|
+
}, [["__scopeId", "data-v-42769637"]]);
|
|
1486
|
+
//#endregion
|
|
1487
|
+
export { Je as n, Ot as t };
|