vue-data-ui 3.17.13 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4766 -630
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,2000 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, J as r, Lt as i, Mt as a, S as o, St as ee, Tt as s, X as te, bt as ne, d as re, i as c, jt as l, ot as ie, p as ae, r as oe, t as se, u, x as ce, y as le, zt as ue } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as de } from "./useConfig-KnOLHtlJ.js";
|
|
4
|
+
import { t as fe } from "./usePrinter-CMLF900n.js";
|
|
5
|
+
import { n as pe, t as me } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as he } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-CcxL1gUU.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as ve } from "./img-NMY-_LiJ.js";
|
|
10
|
+
import { t as ye } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
11
|
+
import { t as be } from "./A11yDataTable-q2-8fSlJ.js";
|
|
12
|
+
import { t as xe } from "./useUserOptionState-CjPJPTg2.js";
|
|
13
|
+
import { t as Se } from "./useChartAccessibility-Do37qcw2.js";
|
|
14
|
+
import { t as Ce } from "./useTableResponsive-DrM1xqII.js";
|
|
15
|
+
import { t as we } from "./vue_ui_chestnut-BiUZFv40.js";
|
|
16
|
+
import { Fragment as d, computed as f, createBlock as Te, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as g, mergeProps as Ae, nextTick as je, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Me, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ne, toDisplayString as w, toRefs as Pe, unref as T, useCssVars as Fe, watch as Ie, withCtx as E, withKeys as Le } from "vue";
|
|
17
|
+
//#region src/components/vue-ui-chestnut.vue
|
|
18
|
+
var Re = /* @__PURE__ */ e({ default: () => Zn }), ze = ["id"], Be = ["id"], Ve = {
|
|
19
|
+
"aria-live": "polite",
|
|
20
|
+
class: "sr-only"
|
|
21
|
+
}, He = {
|
|
22
|
+
key: 2,
|
|
23
|
+
ref: "noTitle",
|
|
24
|
+
class: "vue-data-ui-no-title-space",
|
|
25
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
26
|
+
}, Ue = { style: { position: "relative" } }, We = [
|
|
27
|
+
"xmlns",
|
|
28
|
+
"aria-describedby",
|
|
29
|
+
"viewBox"
|
|
30
|
+
], Ge = ["width", "height"], Ke = { key: 1 }, qe = [
|
|
31
|
+
"fill",
|
|
32
|
+
"font-weight",
|
|
33
|
+
"font-size",
|
|
34
|
+
"x",
|
|
35
|
+
"y"
|
|
36
|
+
], Je = [
|
|
37
|
+
"fill",
|
|
38
|
+
"font-weight",
|
|
39
|
+
"font-size",
|
|
40
|
+
"x",
|
|
41
|
+
"y"
|
|
42
|
+
], Ye = ["id"], Xe = ["stop-color"], Ze = ["stop-color"], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = ["id"], ot = ["stop-color"], st = ["stop-color"], ct = ["stop-color"], lt = ["id"], ut = ["stop-color"], dt = ["stop-color"], ft = ["stop-color"], pt = { key: 2 }, mt = [
|
|
43
|
+
"x",
|
|
44
|
+
"y",
|
|
45
|
+
"font-size",
|
|
46
|
+
"font-weight",
|
|
47
|
+
"fill"
|
|
48
|
+
], ht = [
|
|
49
|
+
"x",
|
|
50
|
+
"y",
|
|
51
|
+
"font-size",
|
|
52
|
+
"font-weight",
|
|
53
|
+
"fill"
|
|
54
|
+
], gt = ["id"], _t = ["stop-color"], vt = ["stop-color"], yt = [
|
|
55
|
+
"d",
|
|
56
|
+
"stroke",
|
|
57
|
+
"fill"
|
|
58
|
+
], bt = [
|
|
59
|
+
"cx",
|
|
60
|
+
"cy",
|
|
61
|
+
"r",
|
|
62
|
+
"fill"
|
|
63
|
+
], xt = [
|
|
64
|
+
"aria-label",
|
|
65
|
+
"cx",
|
|
66
|
+
"cy",
|
|
67
|
+
"r",
|
|
68
|
+
"fill",
|
|
69
|
+
"stroke",
|
|
70
|
+
"stroke-width",
|
|
71
|
+
"onClick"
|
|
72
|
+
], St = { key: 3 }, Ct = [
|
|
73
|
+
"x",
|
|
74
|
+
"y",
|
|
75
|
+
"font-size",
|
|
76
|
+
"fill",
|
|
77
|
+
"onClick"
|
|
78
|
+
], wt = { key: 0 }, Tt = [
|
|
79
|
+
"x",
|
|
80
|
+
"y",
|
|
81
|
+
"fill",
|
|
82
|
+
"font-size",
|
|
83
|
+
"font-weight"
|
|
84
|
+
], Et = [
|
|
85
|
+
"x",
|
|
86
|
+
"y",
|
|
87
|
+
"height",
|
|
88
|
+
"width",
|
|
89
|
+
"fill",
|
|
90
|
+
"rx",
|
|
91
|
+
"onClick"
|
|
92
|
+
], Dt = [
|
|
93
|
+
"aria-label",
|
|
94
|
+
"x",
|
|
95
|
+
"y",
|
|
96
|
+
"height",
|
|
97
|
+
"width",
|
|
98
|
+
"fill",
|
|
99
|
+
"rx",
|
|
100
|
+
"stroke",
|
|
101
|
+
"stroke-width",
|
|
102
|
+
"onClick"
|
|
103
|
+
], Ot = { key: 4 }, kt = [
|
|
104
|
+
"x",
|
|
105
|
+
"y",
|
|
106
|
+
"fill",
|
|
107
|
+
"font-size",
|
|
108
|
+
"onClick"
|
|
109
|
+
], At = ["d", "stroke"], jt = [
|
|
110
|
+
"aria-label",
|
|
111
|
+
"fill",
|
|
112
|
+
"cx",
|
|
113
|
+
"cy",
|
|
114
|
+
"r",
|
|
115
|
+
"onClick"
|
|
116
|
+
], Mt = { key: 5 }, Nt = [
|
|
117
|
+
"x",
|
|
118
|
+
"y",
|
|
119
|
+
"font-size",
|
|
120
|
+
"font-weight",
|
|
121
|
+
"fill"
|
|
122
|
+
], Pt = [
|
|
123
|
+
"x1",
|
|
124
|
+
"x2",
|
|
125
|
+
"y1",
|
|
126
|
+
"y2",
|
|
127
|
+
"stroke",
|
|
128
|
+
"stroke-width"
|
|
129
|
+
], Ft = [
|
|
130
|
+
"y",
|
|
131
|
+
"height",
|
|
132
|
+
"width"
|
|
133
|
+
], It = { style: {
|
|
134
|
+
width: "100%",
|
|
135
|
+
height: "100%",
|
|
136
|
+
display: "flex",
|
|
137
|
+
"align-items": "center",
|
|
138
|
+
"justify-content": "center",
|
|
139
|
+
"flex-direction": "column"
|
|
140
|
+
} }, Lt = { style: {
|
|
141
|
+
display: "flex",
|
|
142
|
+
"align-items": "center",
|
|
143
|
+
"justify-content": "center",
|
|
144
|
+
gap: "12px",
|
|
145
|
+
"flex-wrap": "wrap",
|
|
146
|
+
"flex-direction": "row"
|
|
147
|
+
} }, Rt = {
|
|
148
|
+
viewBox: "0 0 20 20",
|
|
149
|
+
height: "16",
|
|
150
|
+
width: "16"
|
|
151
|
+
}, zt = ["fill"], Bt = { key: 7 }, Vt = [
|
|
152
|
+
"y",
|
|
153
|
+
"height",
|
|
154
|
+
"width"
|
|
155
|
+
], Ht = { style: {
|
|
156
|
+
width: "100%",
|
|
157
|
+
height: "100%",
|
|
158
|
+
display: "flex",
|
|
159
|
+
"align-items": "center",
|
|
160
|
+
"justify-content": "center",
|
|
161
|
+
"flex-direction": "column"
|
|
162
|
+
} }, Ut = { style: {
|
|
163
|
+
display: "flex",
|
|
164
|
+
"align-items": "center",
|
|
165
|
+
"justify-content": "center",
|
|
166
|
+
gap: "12px",
|
|
167
|
+
"flex-wrap": "wrap",
|
|
168
|
+
"flex-direction": "row"
|
|
169
|
+
} }, Wt = {
|
|
170
|
+
viewBox: "0 0 20 20",
|
|
171
|
+
height: "16",
|
|
172
|
+
width: "16"
|
|
173
|
+
}, Gt = ["fill"], Kt = [
|
|
174
|
+
"cx",
|
|
175
|
+
"cy",
|
|
176
|
+
"fill"
|
|
177
|
+
], qt = ["d", "stroke"], Jt = [
|
|
178
|
+
"cx",
|
|
179
|
+
"cy",
|
|
180
|
+
"fill"
|
|
181
|
+
], Yt = ["d", "stroke"], Xt = [
|
|
182
|
+
"cx",
|
|
183
|
+
"cy",
|
|
184
|
+
"fill"
|
|
185
|
+
], Zt = [
|
|
186
|
+
"cx",
|
|
187
|
+
"cy",
|
|
188
|
+
"fill"
|
|
189
|
+
], Qt = [
|
|
190
|
+
"x",
|
|
191
|
+
"y",
|
|
192
|
+
"fill",
|
|
193
|
+
"font-size",
|
|
194
|
+
"font-weight"
|
|
195
|
+
], $t = [
|
|
196
|
+
"x",
|
|
197
|
+
"y",
|
|
198
|
+
"fill",
|
|
199
|
+
"font-size",
|
|
200
|
+
"font-weight"
|
|
201
|
+
], en = [
|
|
202
|
+
"x",
|
|
203
|
+
"text-anchor",
|
|
204
|
+
"y",
|
|
205
|
+
"fill",
|
|
206
|
+
"font-size"
|
|
207
|
+
], tn = [
|
|
208
|
+
"x",
|
|
209
|
+
"text-anchor",
|
|
210
|
+
"y",
|
|
211
|
+
"fill",
|
|
212
|
+
"font-size"
|
|
213
|
+
], nn = [
|
|
214
|
+
"x",
|
|
215
|
+
"text-anchor",
|
|
216
|
+
"y",
|
|
217
|
+
"fill",
|
|
218
|
+
"font-size"
|
|
219
|
+
], rn = [
|
|
220
|
+
"x",
|
|
221
|
+
"text-anchor",
|
|
222
|
+
"y",
|
|
223
|
+
"fill",
|
|
224
|
+
"font-size"
|
|
225
|
+
], an = [
|
|
226
|
+
"x",
|
|
227
|
+
"text-anchor",
|
|
228
|
+
"y",
|
|
229
|
+
"fill",
|
|
230
|
+
"font-size"
|
|
231
|
+
], on = [
|
|
232
|
+
"x",
|
|
233
|
+
"y",
|
|
234
|
+
"font-size",
|
|
235
|
+
"fill"
|
|
236
|
+
], sn = [
|
|
237
|
+
"x",
|
|
238
|
+
"y",
|
|
239
|
+
"font-size",
|
|
240
|
+
"fill"
|
|
241
|
+
], cn = [
|
|
242
|
+
"x",
|
|
243
|
+
"y",
|
|
244
|
+
"font-size",
|
|
245
|
+
"fill"
|
|
246
|
+
], ln = {
|
|
247
|
+
key: 4,
|
|
248
|
+
class: "vue-data-ui-watermark"
|
|
249
|
+
}, un = {
|
|
250
|
+
key: 5,
|
|
251
|
+
ref: "source",
|
|
252
|
+
dir: "auto"
|
|
253
|
+
}, dn = { class: "vue-ui-data-table" }, fn = { key: 0 }, pn = ["data-cell"], mn = { style: {
|
|
254
|
+
display: "flex",
|
|
255
|
+
"align-items": "center",
|
|
256
|
+
gap: "5px",
|
|
257
|
+
"justify-content": "flex-end",
|
|
258
|
+
width: "100%",
|
|
259
|
+
"padding-right": "3px"
|
|
260
|
+
} }, hn = { key: 0 }, gn = { key: 1 }, _n = ["data-cell"], vn = { style: {
|
|
261
|
+
display: "flex",
|
|
262
|
+
"align-items": "center",
|
|
263
|
+
gap: "5px",
|
|
264
|
+
"justify-content": "flex-end",
|
|
265
|
+
width: "100%",
|
|
266
|
+
"padding-right": "3px"
|
|
267
|
+
} }, yn = { key: 0 }, bn = { key: 1 }, xn = ["data-cell"], Sn = { style: {
|
|
268
|
+
display: "flex",
|
|
269
|
+
"align-items": "center",
|
|
270
|
+
gap: "5px",
|
|
271
|
+
"justify-content": "flex-end",
|
|
272
|
+
width: "100%",
|
|
273
|
+
"padding-right": "3px"
|
|
274
|
+
} }, Cn = { key: 0 }, wn = { key: 1 }, Tn = ["data-cell"], En = { style: {
|
|
275
|
+
display: "flex",
|
|
276
|
+
"align-items": "center",
|
|
277
|
+
gap: "5px",
|
|
278
|
+
"justify-content": "flex-end",
|
|
279
|
+
width: "100%",
|
|
280
|
+
"padding-right": "3px"
|
|
281
|
+
} }, Dn = { key: 0 }, On = { key: 1 }, kn = ["data-cell"], An = { style: {
|
|
282
|
+
display: "flex",
|
|
283
|
+
"align-items": "center",
|
|
284
|
+
gap: "5px",
|
|
285
|
+
"justify-content": "flex-end",
|
|
286
|
+
width: "100%",
|
|
287
|
+
"padding-right": "3px"
|
|
288
|
+
} }, jn = { key: 0 }, Mn = { key: 1 }, Nn = ["data-cell"], Pn = { style: {
|
|
289
|
+
display: "flex",
|
|
290
|
+
"align-items": "center",
|
|
291
|
+
gap: "5px",
|
|
292
|
+
"justify-content": "flex-end",
|
|
293
|
+
width: "100%",
|
|
294
|
+
"padding-right": "3px"
|
|
295
|
+
} }, Fn = { key: 0 }, In = { key: 1 }, Ln = ["data-cell"], Rn = { style: {
|
|
296
|
+
display: "flex",
|
|
297
|
+
"align-items": "center",
|
|
298
|
+
gap: "5px",
|
|
299
|
+
"justify-content": "flex-end",
|
|
300
|
+
width: "100%",
|
|
301
|
+
"padding-right": "3px"
|
|
302
|
+
} }, zn = { key: 0 }, Bn = { key: 1 }, Vn = ["data-cell"], Hn = { style: {
|
|
303
|
+
display: "flex",
|
|
304
|
+
"align-items": "center",
|
|
305
|
+
gap: "5px",
|
|
306
|
+
"justify-content": "flex-end",
|
|
307
|
+
width: "100%",
|
|
308
|
+
"padding-right": "3px"
|
|
309
|
+
} }, Un = ["data-cell"], Wn = { style: {
|
|
310
|
+
display: "flex",
|
|
311
|
+
"align-items": "center",
|
|
312
|
+
gap: "5px",
|
|
313
|
+
"justify-content": "flex-end",
|
|
314
|
+
width: "100%",
|
|
315
|
+
"padding-right": "3px"
|
|
316
|
+
} }, Gn = ["data-cell"], Kn = { style: {
|
|
317
|
+
display: "flex",
|
|
318
|
+
"align-items": "center",
|
|
319
|
+
gap: "5px",
|
|
320
|
+
"justify-content": "flex-end",
|
|
321
|
+
width: "100%",
|
|
322
|
+
"padding-right": "3px"
|
|
323
|
+
} }, qn = ["data-cell"], Jn = { style: {
|
|
324
|
+
display: "flex",
|
|
325
|
+
"align-items": "center",
|
|
326
|
+
gap: "5px",
|
|
327
|
+
"justify-content": "flex-end",
|
|
328
|
+
width: "100%",
|
|
329
|
+
"padding-right": "3px"
|
|
330
|
+
} }, Yn = ["data-cell"], Xn = { style: {
|
|
331
|
+
display: "flex",
|
|
332
|
+
"align-items": "center",
|
|
333
|
+
gap: "5px",
|
|
334
|
+
"justify-content": "flex-end",
|
|
335
|
+
width: "100%",
|
|
336
|
+
"padding-right": "3px"
|
|
337
|
+
} }, Zn = /* @__PURE__ */ ye({
|
|
338
|
+
__name: "vue-ui-chestnut",
|
|
339
|
+
props: {
|
|
340
|
+
config: {
|
|
341
|
+
type: Object,
|
|
342
|
+
default() {
|
|
343
|
+
return {};
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
dataset: {
|
|
347
|
+
type: Array,
|
|
348
|
+
default() {
|
|
349
|
+
return [];
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
emits: [
|
|
354
|
+
"selectRoot",
|
|
355
|
+
"selectBranch",
|
|
356
|
+
"selectNut",
|
|
357
|
+
"copyAlt"
|
|
358
|
+
],
|
|
359
|
+
setup(e, { expose: ye, emit: Re }) {
|
|
360
|
+
Fe((e) => ({ v4ff85fb8: e.tdo }));
|
|
361
|
+
let Zn = ke(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), Qn = ke(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), $n = ke(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), er = ke(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), tr = ke(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), nr = ke(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_chestnut: rr } = de(), { isThemeValid: ir, warnInvalidTheme: ar } = _e(), D = e, or = f(() => !!D.dataset && D.dataset.length), O = x(n()), sr = x(null), cr = x(0), lr = x(null), ur = x(null), dr = x(!1), fr = x(!1), pr = x(!1), k = x(!1), A = x(""), j = x({
|
|
362
|
+
level: "root",
|
|
363
|
+
rootIndex: 0,
|
|
364
|
+
branchIndex: 0,
|
|
365
|
+
nutIndex: 0,
|
|
366
|
+
locked: !1
|
|
367
|
+
}), M = x(xr()), N = f(() => M.value.userOptions.useCursorPointer), mr = f(() => ue({
|
|
368
|
+
defaultConfig: {
|
|
369
|
+
userOptions: { show: !1 },
|
|
370
|
+
table: { show: !1 },
|
|
371
|
+
style: { chart: {
|
|
372
|
+
backgroundColor: "#99999930",
|
|
373
|
+
layout: {
|
|
374
|
+
grandTotal: { show: !1 },
|
|
375
|
+
roots: {
|
|
376
|
+
stroke: "#6A6A6A",
|
|
377
|
+
labels: { show: !1 }
|
|
378
|
+
},
|
|
379
|
+
verticalSeparator: { stroke: "transparent" },
|
|
380
|
+
branches: {
|
|
381
|
+
stroke: "#6A6A6A",
|
|
382
|
+
underlayerColor: "#6A6A6A90",
|
|
383
|
+
labels: {
|
|
384
|
+
show: !1,
|
|
385
|
+
dataLabels: { show: !1 }
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
} }
|
|
390
|
+
},
|
|
391
|
+
userConfig: M.value.skeletonConfig ?? {}
|
|
392
|
+
})), { loading: hr, FINAL_DATASET: gr } = pe({
|
|
393
|
+
...Pe(D),
|
|
394
|
+
FINAL_CONFIG: M,
|
|
395
|
+
prepareConfig: xr,
|
|
396
|
+
skeletonDataset: D.config?.skeletonDataset ?? [{
|
|
397
|
+
name: "_",
|
|
398
|
+
color: "#969696",
|
|
399
|
+
branches: [
|
|
400
|
+
{
|
|
401
|
+
name: "_",
|
|
402
|
+
value: 32,
|
|
403
|
+
breakdown: [{
|
|
404
|
+
name: "_",
|
|
405
|
+
value: 16,
|
|
406
|
+
color: "#CACACA"
|
|
407
|
+
}, {
|
|
408
|
+
name: "_",
|
|
409
|
+
value: 16,
|
|
410
|
+
color: "#6A6A6A"
|
|
411
|
+
}]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
name: "_",
|
|
415
|
+
value: 16,
|
|
416
|
+
breakdown: [{
|
|
417
|
+
name: "_",
|
|
418
|
+
value: 8,
|
|
419
|
+
color: "#CACACA"
|
|
420
|
+
}, {
|
|
421
|
+
name: "_",
|
|
422
|
+
value: 8,
|
|
423
|
+
color: "#6A6A6A"
|
|
424
|
+
}]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
name: "_",
|
|
428
|
+
value: 8,
|
|
429
|
+
breakdown: [{
|
|
430
|
+
name: "_",
|
|
431
|
+
value: 4,
|
|
432
|
+
color: "#CACACA"
|
|
433
|
+
}, {
|
|
434
|
+
name: "_",
|
|
435
|
+
value: 4,
|
|
436
|
+
color: "#6A6A6A"
|
|
437
|
+
}]
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: "_",
|
|
441
|
+
value: 4,
|
|
442
|
+
breakdown: [{
|
|
443
|
+
name: "_",
|
|
444
|
+
value: 2,
|
|
445
|
+
color: "#CACACA"
|
|
446
|
+
}, {
|
|
447
|
+
name: "_",
|
|
448
|
+
value: 2,
|
|
449
|
+
color: "#6A6A6A"
|
|
450
|
+
}]
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
}, {
|
|
454
|
+
name: "_",
|
|
455
|
+
color: "#C4C4C4",
|
|
456
|
+
branches: [
|
|
457
|
+
{
|
|
458
|
+
name: "_",
|
|
459
|
+
value: 24,
|
|
460
|
+
breakdown: [{
|
|
461
|
+
name: "_",
|
|
462
|
+
value: 12,
|
|
463
|
+
color: "#CACACA"
|
|
464
|
+
}, {
|
|
465
|
+
name: "_",
|
|
466
|
+
value: 12,
|
|
467
|
+
color: "#6A6A6A"
|
|
468
|
+
}]
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
name: "_",
|
|
472
|
+
value: 12,
|
|
473
|
+
breakdown: [{
|
|
474
|
+
name: "_",
|
|
475
|
+
value: 6,
|
|
476
|
+
color: "#CACACA"
|
|
477
|
+
}, {
|
|
478
|
+
name: "_",
|
|
479
|
+
value: 6,
|
|
480
|
+
color: "#6A6A6A"
|
|
481
|
+
}]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: "_",
|
|
485
|
+
value: 6,
|
|
486
|
+
breakdown: [{
|
|
487
|
+
name: "_",
|
|
488
|
+
value: 3,
|
|
489
|
+
color: "#CACACA"
|
|
490
|
+
}, {
|
|
491
|
+
name: "_",
|
|
492
|
+
value: 3,
|
|
493
|
+
color: "#6A6A6A"
|
|
494
|
+
}]
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
name: "_",
|
|
498
|
+
value: 2,
|
|
499
|
+
breakdown: [{
|
|
500
|
+
name: "_",
|
|
501
|
+
value: 1,
|
|
502
|
+
color: "#CACACA"
|
|
503
|
+
}, {
|
|
504
|
+
name: "_",
|
|
505
|
+
value: 1,
|
|
506
|
+
color: "#6A6A6A"
|
|
507
|
+
}]
|
|
508
|
+
}
|
|
509
|
+
]
|
|
510
|
+
}],
|
|
511
|
+
skeletonConfig: ue({
|
|
512
|
+
defaultConfig: M.value,
|
|
513
|
+
userConfig: mr.value
|
|
514
|
+
})
|
|
515
|
+
}), { userOptionsVisible: _r, setUserOptionsVisibility: vr, keepUserOptionState: yr } = xe({ config: M.value }), { svgRef: br } = Se({ config: M.value.style.chart.layout.title });
|
|
516
|
+
function xr() {
|
|
517
|
+
let e = ge({
|
|
518
|
+
userConfig: D.config,
|
|
519
|
+
defaultConfig: rr
|
|
520
|
+
}), t = e.theme;
|
|
521
|
+
if (!t) return e;
|
|
522
|
+
if (!ir.value(e)) return ar(e), e;
|
|
523
|
+
let n = ge({
|
|
524
|
+
userConfig: we[t] || D.config,
|
|
525
|
+
defaultConfig: e
|
|
526
|
+
}), r = ge({
|
|
527
|
+
userConfig: D.config,
|
|
528
|
+
defaultConfig: n
|
|
529
|
+
});
|
|
530
|
+
return {
|
|
531
|
+
...r,
|
|
532
|
+
customPalette: r.customPalette.length ? r.customPalette : i[t] || s
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
Ie(() => D.config, (e) => {
|
|
536
|
+
M.value = xr(), _r.value = !M.value.userOptions.showOnChartHover, P.value.showTable = M.value.table.show, qr();
|
|
537
|
+
}, { deep: !0 });
|
|
538
|
+
let { isPrinting: Sr, isImaging: Cr, generatePdf: wr, generateImage: Tr } = fe({
|
|
539
|
+
elementId: `vue-ui-chestnut_${O.value}`,
|
|
540
|
+
fileName: M.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
541
|
+
options: M.value.userOptions.print
|
|
542
|
+
}), Er = f(() => M.value.userOptions.show), Dr = f(() => ce(M.value.customPalette)), P = x({ showTable: M.value.table.show });
|
|
543
|
+
Ie(M, () => {
|
|
544
|
+
P.value = { showTable: M.value.table.show };
|
|
545
|
+
}, { immediate: !0 });
|
|
546
|
+
let Or = x(null), kr = f(() => M.value.table.responsiveBreakpoint), F = x({
|
|
547
|
+
gap: 6,
|
|
548
|
+
padding: {
|
|
549
|
+
top: 102,
|
|
550
|
+
left: 12,
|
|
551
|
+
right: 12,
|
|
552
|
+
bottom: 96
|
|
553
|
+
},
|
|
554
|
+
width: 1024,
|
|
555
|
+
height: 0,
|
|
556
|
+
branchSize: 32,
|
|
557
|
+
branchStart: 128
|
|
558
|
+
}), I = f(() => ({
|
|
559
|
+
left: F.value.padding.left,
|
|
560
|
+
top: F.value.padding.top,
|
|
561
|
+
right: F.value.width - F.value.padding.right,
|
|
562
|
+
bottom: F.value.height - F.value.padding.bottom,
|
|
563
|
+
width: F.value.width - (F.value.padding.left + F.value.padding.right),
|
|
564
|
+
height: F.value.height - (F.value.padding.top + F.value.padding.bottom),
|
|
565
|
+
seedX: F.value.padding.left + 64
|
|
566
|
+
})), L = f(() => gr.value.flatMap((e) => (e.branches || []).map((e) => e.value || 0)).reduce((e, t) => e + t, 0)), R = f(() => (gr.value.forEach((e, t) => {
|
|
567
|
+
ie({
|
|
568
|
+
datasetObject: e,
|
|
569
|
+
requiredAttributes: ["name", "branches"]
|
|
570
|
+
}).forEach((e) => {
|
|
571
|
+
te({
|
|
572
|
+
componentName: "VueUiChestnut",
|
|
573
|
+
type: "datasetSerieAttribute",
|
|
574
|
+
property: e,
|
|
575
|
+
index: t,
|
|
576
|
+
debug: Kr.value
|
|
577
|
+
});
|
|
578
|
+
}), e.branches && e.branches.forEach((e, n) => {
|
|
579
|
+
ie({
|
|
580
|
+
datasetObject: e,
|
|
581
|
+
requiredAttributes: ["name", "value"]
|
|
582
|
+
}).forEach((e) => {
|
|
583
|
+
te({
|
|
584
|
+
componentName: "VueUiChestnut",
|
|
585
|
+
type: "datasetSerieAttribute",
|
|
586
|
+
property: e,
|
|
587
|
+
index: `${t} - ${n}`,
|
|
588
|
+
debug: Kr.value
|
|
589
|
+
});
|
|
590
|
+
}), e.breakdown && e.breakdown.forEach((e, r) => {
|
|
591
|
+
ie({
|
|
592
|
+
datasetObject: e,
|
|
593
|
+
requiredAttributes: ["name", "value"]
|
|
594
|
+
}).forEach((e) => {
|
|
595
|
+
te({
|
|
596
|
+
componentName: "VueUiChestnut",
|
|
597
|
+
type: "datasetSerieAttribute",
|
|
598
|
+
property: e,
|
|
599
|
+
index: `${t} - ${n} - ${r}`,
|
|
600
|
+
debug: Kr.value
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
}), gr.value.map((e, t) => {
|
|
606
|
+
let n = (e.branches || []).map((e) => e.value || 0).reduce((e, t) => e + t, 0);
|
|
607
|
+
return {
|
|
608
|
+
...e,
|
|
609
|
+
color: le(e.color) || Dr.value[t] || s[t] || s[t % s.length],
|
|
610
|
+
id: e.id || `root_${t}_${O.value}`,
|
|
611
|
+
type: "root",
|
|
612
|
+
total: n,
|
|
613
|
+
rootIndex: t,
|
|
614
|
+
branches: (e.branches || []).map((r, i) => ({
|
|
615
|
+
...r,
|
|
616
|
+
rootName: e.name,
|
|
617
|
+
rootIndex: t,
|
|
618
|
+
color: le(e.color) || Dr.value[t] || s[t] || s[t % s.length],
|
|
619
|
+
value: r.value >= 0 ? r.value : 0,
|
|
620
|
+
id: r.id || `branch_${t}_${i}_${O.value}`,
|
|
621
|
+
proportionToRoot: r.value / n,
|
|
622
|
+
type: "branch",
|
|
623
|
+
breakdown: (r.breakdown || []).map((a, o) => ({
|
|
624
|
+
table: {
|
|
625
|
+
rootName: e.name,
|
|
626
|
+
rootValue: n,
|
|
627
|
+
rootToTotal: n / L.value,
|
|
628
|
+
branchName: r.name,
|
|
629
|
+
branchValue: r.value,
|
|
630
|
+
branchToTotal: r.value / L.value,
|
|
631
|
+
branchToRoot: r.value / n,
|
|
632
|
+
nutName: a.name,
|
|
633
|
+
nutValue: a.value,
|
|
634
|
+
nutToTotal: a.value / L.value,
|
|
635
|
+
nutToRoot: a.value / n,
|
|
636
|
+
nutToBranch: a.value / r.value
|
|
637
|
+
},
|
|
638
|
+
...a,
|
|
639
|
+
type: "nut",
|
|
640
|
+
branchName: r.name,
|
|
641
|
+
rootName: e.name,
|
|
642
|
+
branchTotal: r.value >= 0 ? r.value : 0,
|
|
643
|
+
proportionToBranch: a.value / r.value,
|
|
644
|
+
proportionToRoot: a.value / n,
|
|
645
|
+
proportionToTree: a.value / L.value,
|
|
646
|
+
rootIndex: t,
|
|
647
|
+
id: a.id || `nut_${t}_${i}_${o}_${O.value}`,
|
|
648
|
+
color: le(a.color) || Dr.value[o] || s[o] || s[o % s.length],
|
|
649
|
+
value: a.value >= 0 ? a.value : 0
|
|
650
|
+
}))
|
|
651
|
+
}))
|
|
652
|
+
};
|
|
653
|
+
})));
|
|
654
|
+
function Ar() {
|
|
655
|
+
return R.value;
|
|
656
|
+
}
|
|
657
|
+
let z = Re, jr = f(() => R.value.flatMap((e) => e.branches).length), Mr = f(() => Math.max(...R.value.map((e) => e.branches.map((e) => e.value).reduce((e, t) => e + t, 0)))), Nr = f(() => Math.max(...R.value.flatMap((e) => e.branches.map((e) => e.value)))), Pr = f(() => 256 + F.value.padding.left), B = f(() => R.value.sort((e, t) => t.total - e.total).map((e, t) => {
|
|
658
|
+
let n = I.value.height / R.value.length / 2, r = e.total / Mr.value * (n > 64 ? 64 : n);
|
|
659
|
+
return {
|
|
660
|
+
...e,
|
|
661
|
+
x: I.value.seedX,
|
|
662
|
+
y: I.value.top + I.value.height / R.value.length * (t + 1) - (I.value.height / R.value.length / 2 + F.value.gap / 2),
|
|
663
|
+
r: r < F.value.branchSize / 2 ? F.value.branchSize / 2 : r
|
|
664
|
+
};
|
|
665
|
+
})), Fr = f(() => M.value.style.chart.layout.branches.widthRatio <= 0 ? .1 : M.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : M.value.style.chart.layout.branches.widthRatio), Ir = f(() => B.value.flatMap((e) => e.branches)), V = f(() => Ir.value.sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
666
|
+
...e,
|
|
667
|
+
y1: t * F.value.branchSize + I.value.top + t * F.value.gap,
|
|
668
|
+
y2: t * F.value.branchSize + F.value.branchSize,
|
|
669
|
+
x1: Pr.value,
|
|
670
|
+
x2: 384 * e.value / Nr.value * Fr.value + Pr.value
|
|
671
|
+
}))), Lr = f(() => B.value), Rr = f(() => Lr.value.map((e) => V.value.filter((t) => t.rootIndex === e.rootIndex).sort((e, t) => e.y1 - t.y1))), zr = f(() => Lr.value.map((e, t) => Rr.value[t].map((e) => (e.breakdown || []).map((t, n) => ({
|
|
672
|
+
...t,
|
|
673
|
+
nutIndex: n,
|
|
674
|
+
rootIndex: e.rootIndex,
|
|
675
|
+
branchId: e.id,
|
|
676
|
+
branchName: e.name,
|
|
677
|
+
branchValue: e.value,
|
|
678
|
+
rootName: e.rootName
|
|
679
|
+
})))));
|
|
680
|
+
function Br(e) {
|
|
681
|
+
let t = B.value.find((t) => t.rootIndex === e.rootIndex);
|
|
682
|
+
return {
|
|
683
|
+
x: t.x,
|
|
684
|
+
y: t.y,
|
|
685
|
+
r: t.r
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
let H = x(null), U = x(null), W = x(null), G = x(null);
|
|
689
|
+
function K() {
|
|
690
|
+
H.value = null, W.value = null, G.value = null;
|
|
691
|
+
}
|
|
692
|
+
function q(e) {
|
|
693
|
+
if (H.value) return e.type === "root" ? e.rootIndex === H.value.rootIndex : e.type === "branch" ? e.id === H.value.id : e.type === "nut" ? e.branchName === H.value.name && e.rootIndex === H.value.rootIndex : !1;
|
|
694
|
+
if (W.value) return e.type === "root" ? e.rootIndex === W.value.rootIndex : e.type === "branch" ? e.id === W.value.id : e.type === "nut" ? e.branchName === W.value.name && e.rootIndex === W.value.rootIndex : !1;
|
|
695
|
+
if (G.value) return e.type === "root" ? e.id === G.value.id : e.type === "branch" || e.type === "nut" ? e.rootIndex === G.value.rootIndex : !1;
|
|
696
|
+
if (xi.value && k.value) {
|
|
697
|
+
if (j.value.level === "root") return e.type === "root" ? Z.value && e.id === Z.value.id : e.type === "branch" || e.type === "nut" ? Z.value && e.rootIndex === Z.value.rootIndex : !1;
|
|
698
|
+
if (j.value.level === "branch") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? yi.value && e.id === yi.value.id : (e.type, !1);
|
|
699
|
+
if (j.value.level === "nut") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? bi.value && e.id === bi.value.id : e.type === "nut" ? bi.value && e.branchName === bi.value.name && e.rootIndex === bi.value.rootIndex : !1;
|
|
700
|
+
}
|
|
701
|
+
return !0;
|
|
702
|
+
}
|
|
703
|
+
function Vr(e) {
|
|
704
|
+
K();
|
|
705
|
+
let t = Lr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Rr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
706
|
+
t !== -1 && (j.value.rootIndex = t), n !== -1 && (j.value.branchIndex = n), j.value.level = "nut", j.value.nutIndex = 0, je(() => {
|
|
707
|
+
H.value = e, W.value = e, U.value = ne({
|
|
708
|
+
series: e.breakdown,
|
|
709
|
+
base: 1
|
|
710
|
+
}, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + F.value.branchSize / 2, 80, 80), z("selectNut", e.breakdown), Q();
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
function J() {
|
|
714
|
+
H.value = null, U.value = null, z("selectNut", null);
|
|
715
|
+
}
|
|
716
|
+
function Hr(e) {
|
|
717
|
+
let t = Lr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Rr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
718
|
+
t !== -1 && (j.value.rootIndex = t), n !== -1 && (j.value.branchIndex = n), j.value.level = "branch", j.value.nutIndex = 0, W.value && W.value.id === e.id ? (W.value = null, K(), z("selectBranch", null), Q()) : (K(), W.value = e, z("selectBranch", e), Q());
|
|
719
|
+
}
|
|
720
|
+
function Ur(e) {
|
|
721
|
+
let t = Lr.value.findIndex((t) => t.id === e.id);
|
|
722
|
+
t !== -1 && (j.value.rootIndex = t), j.value.level = "root", j.value.branchIndex = 0, j.value.nutIndex = 0, G.value && G.value.id === e.id ? (K(), z("selectRoot", null), Q()) : (K(), G.value = e, z("selectRoot", e), Q());
|
|
723
|
+
}
|
|
724
|
+
function Wr() {
|
|
725
|
+
return I.value.bottom - (H.value.y1 + 180) < 0 ? 0 : I.value.bottom;
|
|
726
|
+
}
|
|
727
|
+
function Gr(e) {
|
|
728
|
+
return e.proportion * 100 > M.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
729
|
+
}
|
|
730
|
+
Me(() => {
|
|
731
|
+
qr();
|
|
732
|
+
});
|
|
733
|
+
let Kr = f(() => M.value.debug);
|
|
734
|
+
function qr() {
|
|
735
|
+
ee(D.dataset) && te({
|
|
736
|
+
componentName: "VueUiChestnut",
|
|
737
|
+
type: "dataset",
|
|
738
|
+
debug: Kr.value
|
|
739
|
+
});
|
|
740
|
+
let e = jr.value * (F.value.branchSize + F.value.gap) + F.value.padding.top + F.value.padding.bottom;
|
|
741
|
+
F.value.height = e;
|
|
742
|
+
}
|
|
743
|
+
let Y = f(() => ({
|
|
744
|
+
head: [
|
|
745
|
+
M.value.table.th.translations.rootName,
|
|
746
|
+
M.value.table.th.translations.rootValue,
|
|
747
|
+
M.value.table.th.translations.rootToTotal,
|
|
748
|
+
M.value.table.th.translations.branchName,
|
|
749
|
+
M.value.table.th.translations.branchValue,
|
|
750
|
+
M.value.table.th.translations.branchToRoot,
|
|
751
|
+
M.value.table.th.translations.branchToTotal,
|
|
752
|
+
M.value.table.th.translations.nutName,
|
|
753
|
+
M.value.table.th.translations.nutValue,
|
|
754
|
+
M.value.table.th.translations.nutToBranch,
|
|
755
|
+
M.value.table.th.translations.nutToRoot,
|
|
756
|
+
M.value.table.th.translations.nutToTotal
|
|
757
|
+
],
|
|
758
|
+
body: R.value.flatMap((e, t) => e.branches.flatMap((e, t) => e.breakdown.flatMap((e, t) => e.table)))
|
|
759
|
+
}));
|
|
760
|
+
function Jr(e = null) {
|
|
761
|
+
je(() => {
|
|
762
|
+
let t = [
|
|
763
|
+
[M.value.style.chart.layout.title.text],
|
|
764
|
+
[M.value.style.chart.layout.title.subtitle.text],
|
|
765
|
+
[""],
|
|
766
|
+
["Grand total", L.value],
|
|
767
|
+
[""]
|
|
768
|
+
], n = Y.value.head, i = Y.value.body.map((e, t) => [
|
|
769
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootName,
|
|
770
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootValue,
|
|
771
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootToTotal,
|
|
772
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchName,
|
|
773
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchValue,
|
|
774
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToRoot,
|
|
775
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToTotal,
|
|
776
|
+
e.nutName,
|
|
777
|
+
e.nutValue,
|
|
778
|
+
e.nutToBranch,
|
|
779
|
+
e.nutToRoot,
|
|
780
|
+
e.nutToTotal
|
|
781
|
+
]), a = o(t.concat([n]).concat(i));
|
|
782
|
+
e ? e(a) : r({
|
|
783
|
+
csvContent: a,
|
|
784
|
+
title: M.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
785
|
+
});
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
let Yr = x(!1);
|
|
789
|
+
function Xr(e) {
|
|
790
|
+
Yr.value = e, cr.value += 1;
|
|
791
|
+
}
|
|
792
|
+
function Zr() {
|
|
793
|
+
P.value.showTable = !P.value.showTable;
|
|
794
|
+
}
|
|
795
|
+
let Qr = x(!1);
|
|
796
|
+
function $r() {
|
|
797
|
+
Qr.value = !Qr.value;
|
|
798
|
+
}
|
|
799
|
+
async function ei({ scale: e = 2 } = {}) {
|
|
800
|
+
if (!sr.value) return;
|
|
801
|
+
let { width: t, height: n } = sr.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
802
|
+
domElement: sr.value,
|
|
803
|
+
base64: !0,
|
|
804
|
+
img: !0,
|
|
805
|
+
scale: e
|
|
806
|
+
});
|
|
807
|
+
return {
|
|
808
|
+
imageUri: i,
|
|
809
|
+
base64: a,
|
|
810
|
+
title: M.value.style.chart.layout.title.text,
|
|
811
|
+
width: t,
|
|
812
|
+
height: n,
|
|
813
|
+
aspectRatio: r
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
function ti(e) {
|
|
817
|
+
let t = Br(e), n = e.x1, r = e.y1, i = F.value.branchSize, a = t.x + t.r / 2, o = t.y;
|
|
818
|
+
return [
|
|
819
|
+
`M ${n},${r}`,
|
|
820
|
+
`C ${n - 20},${r} ${n - 20},${r} ${a},${o}`,
|
|
821
|
+
`C ${a},${o} ${n - 20},${r + i} ${n},${r + i}`,
|
|
822
|
+
"Z"
|
|
823
|
+
].join(" ");
|
|
824
|
+
}
|
|
825
|
+
let ni = f(() => {
|
|
826
|
+
let e = M.value.table.useDialog && !M.value.table.show, t = P.value.showTable;
|
|
827
|
+
return {
|
|
828
|
+
component: e ? nr : Qn,
|
|
829
|
+
title: `${M.value.style.chart.layout.title.text}${M.value.style.chart.layout.title.subtitle.text ? `: ${M.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
830
|
+
props: e ? {
|
|
831
|
+
backgroundColor: M.value.table.th.backgroundColor,
|
|
832
|
+
color: M.value.table.th.color,
|
|
833
|
+
headerColor: M.value.table.th.color,
|
|
834
|
+
headerBg: M.value.table.th.backgroundColor,
|
|
835
|
+
isFullscreen: Yr.value,
|
|
836
|
+
fullscreenParent: sr.value,
|
|
837
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
838
|
+
isCursorPointer: N.value
|
|
839
|
+
} : {
|
|
840
|
+
hideDetails: !0,
|
|
841
|
+
config: {
|
|
842
|
+
open: t,
|
|
843
|
+
maxHeight: 1e4,
|
|
844
|
+
body: {
|
|
845
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
846
|
+
color: M.value.style.chart.color
|
|
847
|
+
},
|
|
848
|
+
head: {
|
|
849
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
850
|
+
color: M.value.style.chart.color
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
});
|
|
856
|
+
Ie(() => P.value.showTable, async (e) => {
|
|
857
|
+
M.value.table.show || (e && M.value.table.useDialog && lr.value ? (await je(), lr.value.open()) : "close" in lr.value && lr.value.close());
|
|
858
|
+
});
|
|
859
|
+
let { isResponsive: ri } = Ce(Or, kr);
|
|
860
|
+
function ii() {
|
|
861
|
+
P.value.showTable = !1, ur.value && ur.value.setTableIconState(!1);
|
|
862
|
+
}
|
|
863
|
+
let ai = f(() => R.value.map((e, n) => ({
|
|
864
|
+
...e,
|
|
865
|
+
display: `${e.name}: ${c(M.value.style.chart.layout.roots.labels.formatter, e.total, t({
|
|
866
|
+
p: M.value.style.chart.layout.legend.prefix,
|
|
867
|
+
v: e.total,
|
|
868
|
+
s: M.value.style.chart.layout.legend.suffix,
|
|
869
|
+
r: M.value.style.chart.layout.legend.roundingValue
|
|
870
|
+
}), { datapoint: e })} (${t({
|
|
871
|
+
v: e.total / L.value * 100,
|
|
872
|
+
s: "%",
|
|
873
|
+
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
874
|
+
})})`
|
|
875
|
+
}))), oi = f(() => ai.value.map((e) => ({
|
|
876
|
+
color: e.color,
|
|
877
|
+
name: e.display,
|
|
878
|
+
shape: "circle"
|
|
879
|
+
}))), si = f(() => M.value.style.chart.backgroundColor), ci = f(() => ({
|
|
880
|
+
...M.value.style.chart.layout.legend,
|
|
881
|
+
textAlign: "center",
|
|
882
|
+
show: !0,
|
|
883
|
+
position: "bottom"
|
|
884
|
+
})), { exportSvg: li, getSvg: ui } = he({
|
|
885
|
+
svg: br,
|
|
886
|
+
title: f(() => M.value.style.chart.layout.title),
|
|
887
|
+
legend: ci,
|
|
888
|
+
legendItems: oi,
|
|
889
|
+
backgroundColor: si,
|
|
890
|
+
titleEmbedded: !0
|
|
891
|
+
});
|
|
892
|
+
async function di({ isCb: e }) {
|
|
893
|
+
fr.value = !0, await je();
|
|
894
|
+
try {
|
|
895
|
+
if (e) {
|
|
896
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ui();
|
|
897
|
+
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
898
|
+
blob: e,
|
|
899
|
+
url: t,
|
|
900
|
+
text: n,
|
|
901
|
+
dataUrl: r
|
|
902
|
+
}));
|
|
903
|
+
} else await Promise.resolve(li());
|
|
904
|
+
} finally {
|
|
905
|
+
fr.value = !1;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
function fi(e) {
|
|
909
|
+
if (e?.stage === "start") {
|
|
910
|
+
dr.value = !0;
|
|
911
|
+
return;
|
|
912
|
+
}
|
|
913
|
+
if (e?.stage === "end") {
|
|
914
|
+
dr.value = !1;
|
|
915
|
+
return;
|
|
916
|
+
}
|
|
917
|
+
Tr();
|
|
918
|
+
}
|
|
919
|
+
async function pi() {
|
|
920
|
+
if (z("copyAlt", {
|
|
921
|
+
config: M.value,
|
|
922
|
+
dataset: R.value
|
|
923
|
+
}), !M.value.userOptions.callbacks.altCopy) {
|
|
924
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
925
|
+
return;
|
|
926
|
+
}
|
|
927
|
+
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
928
|
+
config: M.value,
|
|
929
|
+
dataset: R.value
|
|
930
|
+
}));
|
|
931
|
+
}
|
|
932
|
+
function mi(e) {
|
|
933
|
+
if (!e) return "";
|
|
934
|
+
let n = t({
|
|
935
|
+
p: M.value.style.chart.layout.legend.prefix,
|
|
936
|
+
v: e.total,
|
|
937
|
+
s: M.value.style.chart.layout.legend.suffix,
|
|
938
|
+
r: M.value.style.chart.layout.legend.roundingValue
|
|
939
|
+
}), r = t({
|
|
940
|
+
v: e.total / L.value * 100,
|
|
941
|
+
s: "%",
|
|
942
|
+
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
943
|
+
});
|
|
944
|
+
return `Root ${e.name}. Value ${n}. ${r} of total.`;
|
|
945
|
+
}
|
|
946
|
+
function hi(e) {
|
|
947
|
+
if (!e) return "";
|
|
948
|
+
let n = t({
|
|
949
|
+
p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
950
|
+
v: e.value,
|
|
951
|
+
s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
952
|
+
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
953
|
+
}), r = t({
|
|
954
|
+
v: e.proportionToRoot * 100,
|
|
955
|
+
s: "%",
|
|
956
|
+
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
957
|
+
});
|
|
958
|
+
return `Branch ${e.name}. Root ${e.rootName}. Value ${n}. ${r} of root ${e.rootName}.`;
|
|
959
|
+
}
|
|
960
|
+
function gi(e) {
|
|
961
|
+
if (!e) return "";
|
|
962
|
+
let n = t({
|
|
963
|
+
p: M.value.style.chart.layout.legend.prefix,
|
|
964
|
+
v: e.value,
|
|
965
|
+
s: M.value.style.chart.layout.legend.suffix,
|
|
966
|
+
r: M.value.style.chart.layout.nuts.selected.labels.roundingValue
|
|
967
|
+
}), r = t({
|
|
968
|
+
v: e.proportionToBranch * 100,
|
|
969
|
+
s: "%",
|
|
970
|
+
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
971
|
+
});
|
|
972
|
+
return `Nut ${e.name}. Branch ${e.branchName}. Root ${e.rootName}. Value ${n}. ${r} of branch ${e.branchName}.`;
|
|
973
|
+
}
|
|
974
|
+
let _i = f(() => Lr.value[j.value.rootIndex] || null), X = f(() => (Rr.value[j.value.rootIndex] || [])[j.value.branchIndex] || null), vi = f(() => ((zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [])[j.value.nutIndex] || null), Z = f(() => _i.value), yi = f(() => X.value), bi = f(() => j.value.level === "nut" ? X.value : null), xi = f(() => pr.value);
|
|
975
|
+
function Q() {
|
|
976
|
+
if (j.value.level === "root") {
|
|
977
|
+
A.value = mi(_i.value);
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
980
|
+
if (j.value.level === "branch") {
|
|
981
|
+
A.value = hi(X.value);
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
j.value.level === "nut" && (A.value = gi(vi.value));
|
|
985
|
+
}
|
|
986
|
+
function $() {
|
|
987
|
+
j.value = {
|
|
988
|
+
level: "root",
|
|
989
|
+
rootIndex: 0,
|
|
990
|
+
branchIndex: 0,
|
|
991
|
+
nutIndex: 0,
|
|
992
|
+
locked: !1
|
|
993
|
+
}, A.value = "";
|
|
994
|
+
}
|
|
995
|
+
function Si() {
|
|
996
|
+
let e = Rr.value[j.value.rootIndex] || [];
|
|
997
|
+
if (!e.length) {
|
|
998
|
+
j.value.branchIndex = 0;
|
|
999
|
+
return;
|
|
1000
|
+
}
|
|
1001
|
+
j.value.branchIndex >= e.length && (j.value.branchIndex = 0), j.value.branchIndex < 0 && (j.value.branchIndex = e.length - 1);
|
|
1002
|
+
}
|
|
1003
|
+
function Ci() {
|
|
1004
|
+
let e = (zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [];
|
|
1005
|
+
if (!e.length) {
|
|
1006
|
+
j.value.nutIndex = 0;
|
|
1007
|
+
return;
|
|
1008
|
+
}
|
|
1009
|
+
j.value.nutIndex >= e.length && (j.value.nutIndex = 0), j.value.nutIndex < 0 && (j.value.nutIndex = e.length - 1);
|
|
1010
|
+
}
|
|
1011
|
+
function wi(e) {
|
|
1012
|
+
if (j.value.level === "root") {
|
|
1013
|
+
let t = Lr.value.length;
|
|
1014
|
+
if (!t) return;
|
|
1015
|
+
j.value.rootIndex += e, j.value.rootIndex >= t && (j.value.rootIndex = 0), j.value.rootIndex < 0 && (j.value.rootIndex = t - 1), j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
1018
|
+
if (j.value.level === "branch") {
|
|
1019
|
+
j.value.branchIndex += e, Si(), j.value.nutIndex = 0, Q();
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
j.value.level === "nut" && (j.value.nutIndex += e, Ci(), Q());
|
|
1023
|
+
}
|
|
1024
|
+
function Ti(e) {
|
|
1025
|
+
if (e > 0) {
|
|
1026
|
+
if (j.value.level === "root") {
|
|
1027
|
+
if (!(Rr.value[j.value.rootIndex] || []).length) return;
|
|
1028
|
+
j.value.level = "branch", j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
|
|
1029
|
+
return;
|
|
1030
|
+
}
|
|
1031
|
+
if (j.value.level === "branch") {
|
|
1032
|
+
if (!((zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || []).length) return;
|
|
1033
|
+
j.value.level = "nut", j.value.nutIndex = 0, X.value ? Vr(X.value) : Q();
|
|
1034
|
+
return;
|
|
1035
|
+
}
|
|
1036
|
+
return;
|
|
1037
|
+
}
|
|
1038
|
+
if (j.value.level === "nut") {
|
|
1039
|
+
J(), W.value = null, j.value.level = "branch", j.value.nutIndex = 0, Q();
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
j.value.level === "branch" && (W.value = null, G.value = null, j.value.level = "root", j.value.nutIndex = 0, Q());
|
|
1043
|
+
}
|
|
1044
|
+
function Ei() {
|
|
1045
|
+
if (j.value.level === "root" && _i.value) {
|
|
1046
|
+
Ur(_i.value), A.value = `${mi(_i.value)} selected.`;
|
|
1047
|
+
return;
|
|
1048
|
+
}
|
|
1049
|
+
if (j.value.level === "branch" && X.value) {
|
|
1050
|
+
Hr(X.value), A.value = `${hi(X.value)} selected.`;
|
|
1051
|
+
return;
|
|
1052
|
+
}
|
|
1053
|
+
j.value.level === "nut" && X.value && vi.value && (Vr(X.value), A.value = `${gi(vi.value)} details opened.`);
|
|
1054
|
+
}
|
|
1055
|
+
function Di() {
|
|
1056
|
+
pr.value = !0, k.value = !1;
|
|
1057
|
+
}
|
|
1058
|
+
function Oi() {
|
|
1059
|
+
pr.value = !1, k.value = !1, A.value = "", !G.value && !W.value && !H.value && $();
|
|
1060
|
+
}
|
|
1061
|
+
function ki(e) {
|
|
1062
|
+
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1063
|
+
if (!(!t && !n && !r && !i && !a && !o)) {
|
|
1064
|
+
if (e.preventDefault(), e.stopPropagation(), pr.value ||= !0, o) {
|
|
1065
|
+
K(), $(), k.value = !1;
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1068
|
+
if ((t || n || r || i) && (k.value = !0), t) {
|
|
1069
|
+
wi(-1);
|
|
1070
|
+
return;
|
|
1071
|
+
}
|
|
1072
|
+
if (n) {
|
|
1073
|
+
wi(1);
|
|
1074
|
+
return;
|
|
1075
|
+
}
|
|
1076
|
+
if (r) {
|
|
1077
|
+
Ti(-1);
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1080
|
+
if (i) {
|
|
1081
|
+
Ti(1);
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
a && Ei();
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
let Ai = f(() => ({
|
|
1088
|
+
headers: Y.value.head,
|
|
1089
|
+
rows: Y.value.body.map((e) => [
|
|
1090
|
+
e.rootName,
|
|
1091
|
+
e.rootValue,
|
|
1092
|
+
t({
|
|
1093
|
+
v: e.rootToTotal * 100,
|
|
1094
|
+
s: "%",
|
|
1095
|
+
r: M.value.table.td.roundingPercentage
|
|
1096
|
+
}),
|
|
1097
|
+
e.branchName,
|
|
1098
|
+
e.branchValue,
|
|
1099
|
+
t({
|
|
1100
|
+
v: e.branchToRoot * 100,
|
|
1101
|
+
s: "%",
|
|
1102
|
+
r: M.value.table.td.roundingPercentage
|
|
1103
|
+
}),
|
|
1104
|
+
t({
|
|
1105
|
+
v: e.branchToTotal * 100,
|
|
1106
|
+
s: "%",
|
|
1107
|
+
r: M.value.table.td.roundingPercentage
|
|
1108
|
+
}),
|
|
1109
|
+
e.nutName,
|
|
1110
|
+
e.nutValue,
|
|
1111
|
+
t({
|
|
1112
|
+
v: e.nutToBranch * 100,
|
|
1113
|
+
s: "%",
|
|
1114
|
+
r: M.value.table.td.roundingPercentage
|
|
1115
|
+
}),
|
|
1116
|
+
t({
|
|
1117
|
+
v: e.nutToRoot * 100,
|
|
1118
|
+
s: "%",
|
|
1119
|
+
r: M.value.table.td.roundingPercentage
|
|
1120
|
+
}),
|
|
1121
|
+
t({
|
|
1122
|
+
v: e.nutToTotal * 100,
|
|
1123
|
+
s: "%",
|
|
1124
|
+
r: M.value.table.td.roundingPercentage
|
|
1125
|
+
})
|
|
1126
|
+
])
|
|
1127
|
+
}));
|
|
1128
|
+
return ye({
|
|
1129
|
+
getData: Ar,
|
|
1130
|
+
getImage: ei,
|
|
1131
|
+
generatePdf: wr,
|
|
1132
|
+
generateCsv: Jr,
|
|
1133
|
+
generateImage: Tr,
|
|
1134
|
+
generateSvg: di,
|
|
1135
|
+
toggleTable: Zr,
|
|
1136
|
+
toggleAnnotator: $r,
|
|
1137
|
+
toggleFullscreen: Xr,
|
|
1138
|
+
copyAlt: pi
|
|
1139
|
+
}), (e, n) => (b(), m("div", {
|
|
1140
|
+
class: _(`vue-data-ui-component vue-ui-chestnut ${Yr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1141
|
+
ref_key: "chestnutChart",
|
|
1142
|
+
ref: sr,
|
|
1143
|
+
id: `vue-ui-chestnut_${O.value}`,
|
|
1144
|
+
style: y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor}`),
|
|
1145
|
+
onMouseenter: n[12] ||= () => T(vr)(!0),
|
|
1146
|
+
onMouseleave: n[13] ||= () => T(vr)(!1)
|
|
1147
|
+
}, [
|
|
1148
|
+
h("div", {
|
|
1149
|
+
id: `chart-instructions-${O.value}`,
|
|
1150
|
+
class: "sr-only"
|
|
1151
|
+
}, [h("p", null, w(M.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
|
|
1152
|
+
h("div", Ve, w(A.value), 1),
|
|
1153
|
+
Ai.value?.rows?.length ? (b(), Te(be, {
|
|
1154
|
+
key: 0,
|
|
1155
|
+
uid: O.value,
|
|
1156
|
+
head: Ai.value.headers,
|
|
1157
|
+
body: Ai.value.rows,
|
|
1158
|
+
notice: M.value.a11y.translations.tableAvailable,
|
|
1159
|
+
caption: M.value.a11y.translations.tableCaption
|
|
1160
|
+
}, null, 8, [
|
|
1161
|
+
"uid",
|
|
1162
|
+
"head",
|
|
1163
|
+
"body",
|
|
1164
|
+
"notice",
|
|
1165
|
+
"caption"
|
|
1166
|
+
])) : p("", !0),
|
|
1167
|
+
M.value.userOptions.buttons.annotator ? (b(), Te(T($n), {
|
|
1168
|
+
key: 1,
|
|
1169
|
+
svgRef: T(br),
|
|
1170
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1171
|
+
color: M.value.style.chart.color,
|
|
1172
|
+
active: Qr.value,
|
|
1173
|
+
isCursorPointer: N.value,
|
|
1174
|
+
onClose: $r
|
|
1175
|
+
}, {
|
|
1176
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1177
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
1178
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
1179
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
1180
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
1181
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
1182
|
+
_: 3
|
|
1183
|
+
}, 8, [
|
|
1184
|
+
"svgRef",
|
|
1185
|
+
"backgroundColor",
|
|
1186
|
+
"color",
|
|
1187
|
+
"active",
|
|
1188
|
+
"isCursorPointer"
|
|
1189
|
+
])) : p("", !0),
|
|
1190
|
+
Er.value ? (b(), m("div", He, null, 512)) : p("", !0),
|
|
1191
|
+
M.value.userOptions.show && or.value && (T(yr) || T(_r)) ? (b(), Te(T(er), {
|
|
1192
|
+
ref_key: "userOptionsRef",
|
|
1193
|
+
ref: ur,
|
|
1194
|
+
key: `user_options_${cr.value}`,
|
|
1195
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1196
|
+
color: M.value.style.chart.color,
|
|
1197
|
+
isImaging: T(Cr),
|
|
1198
|
+
isPrinting: T(Sr),
|
|
1199
|
+
uid: O.value,
|
|
1200
|
+
hasPdf: M.value.userOptions.buttons.pdf,
|
|
1201
|
+
hasImg: M.value.userOptions.buttons.img,
|
|
1202
|
+
hasSvg: M.value.userOptions.buttons.svg,
|
|
1203
|
+
hasXls: M.value.userOptions.buttons.csv,
|
|
1204
|
+
hasTable: M.value.userOptions.buttons.table,
|
|
1205
|
+
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
1206
|
+
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
1207
|
+
isFullscreen: Yr.value,
|
|
1208
|
+
titles: { ...M.value.userOptions.buttonTitles },
|
|
1209
|
+
chartElement: sr.value,
|
|
1210
|
+
position: M.value.userOptions.position,
|
|
1211
|
+
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
1212
|
+
isAnnotation: Qr.value,
|
|
1213
|
+
callbacks: M.value.userOptions.callbacks,
|
|
1214
|
+
printScale: M.value.userOptions.print.scale,
|
|
1215
|
+
tableDialog: M.value.table.useDialog,
|
|
1216
|
+
isCursorPointer: N.value,
|
|
1217
|
+
onToggleFullscreen: Xr,
|
|
1218
|
+
onGeneratePdf: T(wr),
|
|
1219
|
+
onGenerateCsv: Jr,
|
|
1220
|
+
onGenerateImage: fi,
|
|
1221
|
+
onGenerateSvg: di,
|
|
1222
|
+
onToggleTable: Zr,
|
|
1223
|
+
onToggleAnnotator: $r,
|
|
1224
|
+
onCopyAlt: pi,
|
|
1225
|
+
style: y({ visibility: T(yr) ? T(_r) ? "visible" : "hidden" : "visible" })
|
|
1226
|
+
}, Ee({ _: 2 }, [
|
|
1227
|
+
e.$slots.menuIcon ? {
|
|
1228
|
+
name: "menuIcon",
|
|
1229
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
1230
|
+
isOpen: t,
|
|
1231
|
+
color: n
|
|
1232
|
+
})), void 0, !0)]),
|
|
1233
|
+
key: "0"
|
|
1234
|
+
} : void 0,
|
|
1235
|
+
e.$slots.optionPdf ? {
|
|
1236
|
+
name: "optionPdf",
|
|
1237
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1238
|
+
key: "1"
|
|
1239
|
+
} : void 0,
|
|
1240
|
+
e.$slots.optionCsv ? {
|
|
1241
|
+
name: "optionCsv",
|
|
1242
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1243
|
+
key: "2"
|
|
1244
|
+
} : void 0,
|
|
1245
|
+
e.$slots.optionImg ? {
|
|
1246
|
+
name: "optionImg",
|
|
1247
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1248
|
+
key: "3"
|
|
1249
|
+
} : void 0,
|
|
1250
|
+
e.$slots.optionSvg ? {
|
|
1251
|
+
name: "optionSvg",
|
|
1252
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1253
|
+
key: "4"
|
|
1254
|
+
} : void 0,
|
|
1255
|
+
e.$slots.optionTable ? {
|
|
1256
|
+
name: "optionTable",
|
|
1257
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1258
|
+
key: "5"
|
|
1259
|
+
} : void 0,
|
|
1260
|
+
e.$slots.optionFullscreen ? {
|
|
1261
|
+
name: "optionFullscreen",
|
|
1262
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
|
|
1263
|
+
toggleFullscreen: t,
|
|
1264
|
+
isFullscreen: n
|
|
1265
|
+
})), void 0, !0)]),
|
|
1266
|
+
key: "6"
|
|
1267
|
+
} : void 0,
|
|
1268
|
+
e.$slots.optionAnnotator ? {
|
|
1269
|
+
name: "optionAnnotator",
|
|
1270
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
|
|
1271
|
+
toggleAnnotator: t,
|
|
1272
|
+
isAnnotator: n
|
|
1273
|
+
})), void 0, !0)]),
|
|
1274
|
+
key: "7"
|
|
1275
|
+
} : void 0,
|
|
1276
|
+
e.$slots.optionAltCopy ? {
|
|
1277
|
+
name: "optionAltCopy",
|
|
1278
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
1279
|
+
key: "8"
|
|
1280
|
+
} : void 0
|
|
1281
|
+
]), 1032, [
|
|
1282
|
+
"backgroundColor",
|
|
1283
|
+
"color",
|
|
1284
|
+
"isImaging",
|
|
1285
|
+
"isPrinting",
|
|
1286
|
+
"uid",
|
|
1287
|
+
"hasPdf",
|
|
1288
|
+
"hasImg",
|
|
1289
|
+
"hasSvg",
|
|
1290
|
+
"hasXls",
|
|
1291
|
+
"hasTable",
|
|
1292
|
+
"hasFullscreen",
|
|
1293
|
+
"hasAltCopy",
|
|
1294
|
+
"isFullscreen",
|
|
1295
|
+
"titles",
|
|
1296
|
+
"chartElement",
|
|
1297
|
+
"position",
|
|
1298
|
+
"hasAnnotator",
|
|
1299
|
+
"isAnnotation",
|
|
1300
|
+
"callbacks",
|
|
1301
|
+
"printScale",
|
|
1302
|
+
"tableDialog",
|
|
1303
|
+
"isCursorPointer",
|
|
1304
|
+
"onGeneratePdf",
|
|
1305
|
+
"style"
|
|
1306
|
+
])) : p("", !0),
|
|
1307
|
+
h("div", Ue, [F.value.height > 0 ? (b(), m("svg", {
|
|
1308
|
+
key: 0,
|
|
1309
|
+
ref_key: "svgRef",
|
|
1310
|
+
ref: br,
|
|
1311
|
+
xmlns: T(se),
|
|
1312
|
+
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1313
|
+
class: _({
|
|
1314
|
+
"vue-data-ui-fullscreen--on": Yr.value,
|
|
1315
|
+
"vue-data-ui-fulscreen--off": !Yr.value
|
|
1316
|
+
}),
|
|
1317
|
+
viewBox: `0 0 ${F.value.width <= 0 ? 10 : F.value.width} ${F.value.height <= 0 ? 10 : F.value.height}`,
|
|
1318
|
+
style: y(`overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
|
|
1319
|
+
tabindex: "0",
|
|
1320
|
+
onFocus: Di,
|
|
1321
|
+
onBlur: Oi,
|
|
1322
|
+
onKeydown: ki
|
|
1323
|
+
}, [
|
|
1324
|
+
Oe(T(tr)),
|
|
1325
|
+
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1326
|
+
key: 0,
|
|
1327
|
+
x: 0,
|
|
1328
|
+
y: 0,
|
|
1329
|
+
width: F.value.width <= 0 ? 10 : F.value.width,
|
|
1330
|
+
height: F.value.height <= 0 ? 10 : F.value.height,
|
|
1331
|
+
style: { pointerEvents: "none" }
|
|
1332
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
|
|
1333
|
+
H.value ? p("", !0) : (b(), m("g", Ke, [M.value.style.chart.layout.title.text ? (b(), m("text", {
|
|
1334
|
+
key: 0,
|
|
1335
|
+
"text-anchor": "middle",
|
|
1336
|
+
fill: M.value.style.chart.layout.title.color,
|
|
1337
|
+
"font-weight": M.value.style.chart.layout.title.bold ? "bold" : "normal",
|
|
1338
|
+
"font-size": M.value.style.chart.layout.title.fontSize,
|
|
1339
|
+
x: F.value.width / 2,
|
|
1340
|
+
y: 12 + M.value.style.chart.layout.title.fontSize + M.value.style.chart.layout.title.offsetY,
|
|
1341
|
+
onClick: n[0] ||= () => {
|
|
1342
|
+
K(), $(), k.value = !1;
|
|
1343
|
+
}
|
|
1344
|
+
}, w(M.value.style.chart.layout.title.text), 9, qe)) : p("", !0), M.value.style.chart.layout.title.subtitle.text ? (b(), m("text", {
|
|
1345
|
+
key: 1,
|
|
1346
|
+
"text-anchor": "middle",
|
|
1347
|
+
fill: M.value.style.chart.layout.title.subtitle.color,
|
|
1348
|
+
"font-weight": M.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
|
|
1349
|
+
"font-size": M.value.style.chart.layout.title.subtitle.fontSize,
|
|
1350
|
+
x: F.value.width / 2,
|
|
1351
|
+
y: 48 + M.value.style.chart.layout.title.subtitle.fontSize + M.value.style.chart.layout.title.subtitle.offsetY,
|
|
1352
|
+
onClick: n[1] ||= () => {
|
|
1353
|
+
K(), $(), k.value = !1;
|
|
1354
|
+
}
|
|
1355
|
+
}, w(M.value.style.chart.layout.title.subtitle.text), 9, Je)) : p("", !0)])),
|
|
1356
|
+
h("defs", null, [
|
|
1357
|
+
(b(!0), m(d, null, S(R.value, (e, t) => (b(), m("radialGradient", {
|
|
1358
|
+
cx: "50%",
|
|
1359
|
+
cy: "50%",
|
|
1360
|
+
r: "50%",
|
|
1361
|
+
fx: "50%",
|
|
1362
|
+
fy: "50%",
|
|
1363
|
+
id: `root_gradient_${O.value}_${e.rootIndex}`
|
|
1364
|
+
}, [h("stop", {
|
|
1365
|
+
offset: "0%",
|
|
1366
|
+
"stop-color": T(l)(T(a)(e.color, .05), 100 - M.value.style.chart.layout.roots.gradientIntensity)
|
|
1367
|
+
}, null, 8, Xe), h("stop", {
|
|
1368
|
+
offset: "100%",
|
|
1369
|
+
"stop-color": e.color
|
|
1370
|
+
}, null, 8, Ze)], 8, Ye))), 256)),
|
|
1371
|
+
(b(!0), m(d, null, S(R.value, (e) => (b(), m("linearGradient", {
|
|
1372
|
+
x1: "0%",
|
|
1373
|
+
y1: "0%",
|
|
1374
|
+
x2: "100%",
|
|
1375
|
+
y2: "0%",
|
|
1376
|
+
id: `branch_gradient_${O.value}_${e.rootIndex}`
|
|
1377
|
+
}, [h("stop", {
|
|
1378
|
+
offset: "0%",
|
|
1379
|
+
"stop-color": e.color
|
|
1380
|
+
}, null, 8, $e), h("stop", {
|
|
1381
|
+
offset: "100%",
|
|
1382
|
+
"stop-color": T(l)(T(a)(e.color, .02), 100 - M.value.style.chart.layout.branches.gradientIntensity)
|
|
1383
|
+
}, null, 8, et)], 8, Qe))), 256)),
|
|
1384
|
+
h("radialGradient", {
|
|
1385
|
+
cx: "50%",
|
|
1386
|
+
cy: "50%",
|
|
1387
|
+
r: "50%",
|
|
1388
|
+
fx: "50%",
|
|
1389
|
+
fy: "50%",
|
|
1390
|
+
id: `nutpick_${O.value}`
|
|
1391
|
+
}, [
|
|
1392
|
+
h("stop", {
|
|
1393
|
+
offset: "0%",
|
|
1394
|
+
"stop-color": T(l)("#FFFFFF", 0)
|
|
1395
|
+
}, null, 8, nt),
|
|
1396
|
+
h("stop", {
|
|
1397
|
+
offset: "80%",
|
|
1398
|
+
"stop-color": T(l)("#FFFFFF", M.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
1399
|
+
}, null, 8, rt),
|
|
1400
|
+
h("stop", {
|
|
1401
|
+
offset: "100%",
|
|
1402
|
+
"stop-color": T(l)("#FFFFFF", 0)
|
|
1403
|
+
}, null, 8, it)
|
|
1404
|
+
], 8, tt),
|
|
1405
|
+
h("radialGradient", {
|
|
1406
|
+
cx: "50%",
|
|
1407
|
+
cy: "50%",
|
|
1408
|
+
r: "50%",
|
|
1409
|
+
fx: "50%",
|
|
1410
|
+
fy: "50%",
|
|
1411
|
+
id: `nut_${O.value}`
|
|
1412
|
+
}, [
|
|
1413
|
+
h("stop", {
|
|
1414
|
+
offset: "0%",
|
|
1415
|
+
"stop-color": T(l)("#FFFFFF", 0)
|
|
1416
|
+
}, null, 8, ot),
|
|
1417
|
+
h("stop", {
|
|
1418
|
+
offset: "80%",
|
|
1419
|
+
"stop-color": T(l)("#FFFFFF", M.value.style.chart.layout.nuts.gradientIntensity)
|
|
1420
|
+
}, null, 8, st),
|
|
1421
|
+
h("stop", {
|
|
1422
|
+
offset: "100%",
|
|
1423
|
+
"stop-color": T(l)("#FFFFFF", 0)
|
|
1424
|
+
}, null, 8, ct)
|
|
1425
|
+
], 8, at),
|
|
1426
|
+
h("radialGradient", {
|
|
1427
|
+
cx: "50%",
|
|
1428
|
+
cy: "50%",
|
|
1429
|
+
r: "50%",
|
|
1430
|
+
fx: "50%",
|
|
1431
|
+
fy: "50%",
|
|
1432
|
+
id: `nut_underlayer_${O.value}`
|
|
1433
|
+
}, [
|
|
1434
|
+
h("stop", {
|
|
1435
|
+
offset: "0%",
|
|
1436
|
+
"stop-color": T(l)(M.value.style.chart.backgroundColor, 100)
|
|
1437
|
+
}, null, 8, ut),
|
|
1438
|
+
h("stop", {
|
|
1439
|
+
offset: "80%",
|
|
1440
|
+
"stop-color": T(l)(M.value.style.chart.backgroundColor, 60)
|
|
1441
|
+
}, null, 8, dt),
|
|
1442
|
+
h("stop", {
|
|
1443
|
+
offset: "100%",
|
|
1444
|
+
"stop-color": T(l)(M.value.style.chart.backgroundColor, 0)
|
|
1445
|
+
}, null, 8, ft)
|
|
1446
|
+
], 8, lt)
|
|
1447
|
+
]),
|
|
1448
|
+
M.value.style.chart.layout.grandTotal.show ? (b(), m("g", pt, [h("text", {
|
|
1449
|
+
x: I.value.seedX,
|
|
1450
|
+
y: 32 + M.value.style.chart.layout.grandTotal.offsetY,
|
|
1451
|
+
"font-size": M.value.style.chart.layout.grandTotal.fontSize,
|
|
1452
|
+
"font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
1453
|
+
fill: M.value.style.chart.layout.grandTotal.color,
|
|
1454
|
+
"text-anchor": "middle",
|
|
1455
|
+
onClick: n[2] ||= () => {
|
|
1456
|
+
K(), $(), k.value = !1;
|
|
1457
|
+
}
|
|
1458
|
+
}, w(M.value.style.chart.layout.grandTotal.text), 9, mt), h("text", {
|
|
1459
|
+
x: I.value.seedX,
|
|
1460
|
+
y: 38 + M.value.style.chart.layout.grandTotal.fontSize + M.value.style.chart.layout.grandTotal.offsetY,
|
|
1461
|
+
"font-size": M.value.style.chart.layout.grandTotal.fontSize,
|
|
1462
|
+
"font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
1463
|
+
fill: M.value.style.chart.layout.grandTotal.color,
|
|
1464
|
+
"text-anchor": "middle",
|
|
1465
|
+
onClick: n[3] ||= () => {
|
|
1466
|
+
K(), $(), k.value = !1;
|
|
1467
|
+
}
|
|
1468
|
+
}, w(T(c)(M.value.style.chart.layout.grandTotal.formatter, L.value, T(t)({
|
|
1469
|
+
p: M.value.style.chart.layout.grandTotal.prefix,
|
|
1470
|
+
v: L.value,
|
|
1471
|
+
s: M.value.style.chart.layout.grandTotal.suffix,
|
|
1472
|
+
r: M.value.style.chart.layout.grandTotal.roundingValue
|
|
1473
|
+
}))), 9, ht)])) : p("", !0),
|
|
1474
|
+
(b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [h("defs", null, [h("linearGradient", { id: `link_grad_${e.id}` }, [h("stop", {
|
|
1475
|
+
offset: "0%",
|
|
1476
|
+
"stop-color": e.color
|
|
1477
|
+
}, null, 8, _t), h("stop", {
|
|
1478
|
+
offset: "100%",
|
|
1479
|
+
"stop-color": T(l)(e.color, M.value.style.chart.layout.links.opacity)
|
|
1480
|
+
}, null, 8, vt)], 8, gt)]), h("path", {
|
|
1481
|
+
d: ti(e),
|
|
1482
|
+
stroke: T(l)(e.color, M.value.style.chart.layout.links.opacity),
|
|
1483
|
+
fill: `url(#link_grad_${e.id})`,
|
|
1484
|
+
"stroke-linecap": "round",
|
|
1485
|
+
"stroke-linejoin": "round",
|
|
1486
|
+
style: y(`opacity:${+!!q(e)}`),
|
|
1487
|
+
onClick: n[4] ||= () => {
|
|
1488
|
+
K(), $(), k.value = !1;
|
|
1489
|
+
}
|
|
1490
|
+
}, null, 12, yt)]))), 256)),
|
|
1491
|
+
(b(!0), m(d, null, S(B.value, (e) => (b(), m("circle", {
|
|
1492
|
+
cx: e.x,
|
|
1493
|
+
cy: e.y,
|
|
1494
|
+
r: e.r,
|
|
1495
|
+
fill: M.value.style.chart.layout.roots.underlayerColor,
|
|
1496
|
+
stroke: "none",
|
|
1497
|
+
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`)
|
|
1498
|
+
}, null, 12, bt))), 256)),
|
|
1499
|
+
(b(!0), m(d, null, S(B.value, (e, t) => (b(), m("circle", {
|
|
1500
|
+
"aria-label": mi(e),
|
|
1501
|
+
cx: e.x,
|
|
1502
|
+
cy: e.y,
|
|
1503
|
+
r: e.r,
|
|
1504
|
+
fill: M.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${O.value}_${e.rootIndex})` : e.color,
|
|
1505
|
+
stroke: M.value.style.chart.layout.roots.stroke,
|
|
1506
|
+
"stroke-width": M.value.style.chart.layout.roots.strokeWidth,
|
|
1507
|
+
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1508
|
+
onClick: (t) => Ur(e)
|
|
1509
|
+
}, null, 12, xt))), 256)),
|
|
1510
|
+
M.value.style.chart.layout.roots.labels.show ? (b(), m("g", St, [(b(!0), m(d, null, S(B.value, (e, n) => (b(), m("text", {
|
|
1511
|
+
x: e.x,
|
|
1512
|
+
y: e.y + M.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
1513
|
+
"text-anchor": "middle",
|
|
1514
|
+
"font-size": M.value.style.chart.layout.roots.labels.fontSize,
|
|
1515
|
+
fill: M.value.style.chart.layout.roots.labels.adaptColorToBackground ? T(oe)(e.color) : M.value.style.chart.layout.roots.labels.color,
|
|
1516
|
+
"font-weight": "bold",
|
|
1517
|
+
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1518
|
+
onClick: (t) => Ur(e)
|
|
1519
|
+
}, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(t)({
|
|
1520
|
+
p: M.value.style.chart.layout.roots.labels.prefix,
|
|
1521
|
+
v: e.total,
|
|
1522
|
+
s: M.value.style.chart.layout.roots.labels.suffix,
|
|
1523
|
+
r: M.value.style.chart.layout.roots.labels.roundingValue
|
|
1524
|
+
}), { datapoint: e })), 13, Ct))), 256)), (b(!0), m(d, null, S(B.value, (e) => (b(), m("g", null, [H.value && e.rootIndex === H.value.rootIndex || W.value && e.rootIndex === W.value.rootIndex || G.value && e.rootIndex === G.value.rootIndex ? (b(), m("g", wt, [h("text", {
|
|
1525
|
+
x: e.x,
|
|
1526
|
+
y: e.y + e.r + 24,
|
|
1527
|
+
"text-anchor": "middle",
|
|
1528
|
+
fill: M.value.style.chart.layout.roots.labels.name.color,
|
|
1529
|
+
"font-size": M.value.style.chart.layout.roots.labels.name.fontSize,
|
|
1530
|
+
"font-weight": M.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
1531
|
+
onClick: n[5] ||= () => {
|
|
1532
|
+
K(), $(), k.value = !1;
|
|
1533
|
+
}
|
|
1534
|
+
}, w(e.name), 9, Tt)])) : p("", !0)]))), 256))])) : p("", !0),
|
|
1535
|
+
(b(!0), m(d, null, S(V.value, (e) => (b(), m("rect", {
|
|
1536
|
+
x: e.x1,
|
|
1537
|
+
y: e.y1,
|
|
1538
|
+
height: F.value.branchSize,
|
|
1539
|
+
width: e.x2 - e.x1,
|
|
1540
|
+
fill: M.value.style.chart.layout.branches.underlayerColor,
|
|
1541
|
+
rx: M.value.style.chart.layout.branches.borderRadius,
|
|
1542
|
+
stroke: "none",
|
|
1543
|
+
style: y(`opacity:${q(e) ? 1 : .05}`),
|
|
1544
|
+
onClick: (t) => Hr(e)
|
|
1545
|
+
}, null, 12, Et))), 256)),
|
|
1546
|
+
(b(!0), m(d, null, S(V.value, (e, t) => (b(), m("rect", {
|
|
1547
|
+
"aria-label": hi(e),
|
|
1548
|
+
x: e.x1,
|
|
1549
|
+
y: e.y1,
|
|
1550
|
+
height: F.value.branchSize,
|
|
1551
|
+
width: e.x2 - e.x1,
|
|
1552
|
+
fill: M.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${O.value}_${e.rootIndex})` : e.color,
|
|
1553
|
+
rx: M.value.style.chart.layout.branches.borderRadius,
|
|
1554
|
+
stroke: M.value.style.chart.layout.branches.stroke,
|
|
1555
|
+
"stroke-width": M.value.style.chart.layout.branches.strokeWidth,
|
|
1556
|
+
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1557
|
+
onClick: (t) => Hr(e)
|
|
1558
|
+
}, null, 12, Dt))), 256)),
|
|
1559
|
+
M.value.style.chart.layout.branches.labels.dataLabels.show ? (b(), m("g", Ot, [(b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [e.proportionToRoot * 100 > M.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (b(), m("text", {
|
|
1560
|
+
key: 0,
|
|
1561
|
+
x: e.x1 + 6,
|
|
1562
|
+
y: e.y1 + F.value.branchSize / 1.5,
|
|
1563
|
+
"text-anchor": "start",
|
|
1564
|
+
fill: T(oe)(e.color),
|
|
1565
|
+
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1566
|
+
"font-weight": "bold",
|
|
1567
|
+
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1568
|
+
onClick: (t) => Hr(e)
|
|
1569
|
+
}, w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(t)({
|
|
1570
|
+
p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1571
|
+
v: e.value,
|
|
1572
|
+
s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1573
|
+
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1574
|
+
}), { datapoint: e })), 13, kt)) : p("", !0)]))), 256))])) : p("", !0),
|
|
1575
|
+
(b(!0), m(d, null, S(V.value, (e, t) => (b(), m("g", null, [(b(!0), m(d, null, S(T(ne)({
|
|
1576
|
+
series: e.breakdown,
|
|
1577
|
+
base: 1
|
|
1578
|
+
}, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + F.value.branchSize / 2, F.value.branchSize / 3, F.value.branchSize / 3), (t, n) => (b(), m("path", {
|
|
1579
|
+
d: t.path,
|
|
1580
|
+
stroke: t.color,
|
|
1581
|
+
"stroke-width": 10,
|
|
1582
|
+
fill: "none",
|
|
1583
|
+
style: y(`opacity:${q(e) ? 1 : .1}`)
|
|
1584
|
+
}, null, 12, At))), 256)), h("circle", {
|
|
1585
|
+
"aria-label": `Open details for branch ${e.name} in root ${e.rootName}`,
|
|
1586
|
+
fill: M.value.style.chart.layout.nuts.useGradient ? `url(#nut_${O.value})` : "transparent",
|
|
1587
|
+
cx: e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1588
|
+
cy: e.y1 + F.value.branchSize / 2,
|
|
1589
|
+
r: F.value.branchSize / 2 + 2,
|
|
1590
|
+
onClick: (t) => Vr(e),
|
|
1591
|
+
style: y(`cursor:${N.value ? "pointer" : "default"};opacity:${q(e) ? 1 : .1}`)
|
|
1592
|
+
}, null, 12, jt)]))), 256)),
|
|
1593
|
+
M.value.style.chart.layout.branches.labels.show && !W.value ? (b(), m("g", Mt, [(b(!0), m(d, null, S(V.value, (e) => (b(), m("text", {
|
|
1594
|
+
x: e.x2 + F.value.branchSize + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1595
|
+
y: e.y1 + F.value.branchSize / 2 + 5,
|
|
1596
|
+
"font-size": M.value.style.chart.layout.branches.labels.fontSize,
|
|
1597
|
+
"font-weight": M.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
1598
|
+
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1599
|
+
"text-anchor": "start",
|
|
1600
|
+
style: y(`opacity:${q(e) ? 1 : .1}`)
|
|
1601
|
+
}, w(e.name), 13, Nt))), 256))])) : p("", !0),
|
|
1602
|
+
h("line", {
|
|
1603
|
+
x1: 256 + F.value.padding.left,
|
|
1604
|
+
x2: 256 + F.value.padding.left,
|
|
1605
|
+
y1: I.value.top,
|
|
1606
|
+
y2: I.value.bottom,
|
|
1607
|
+
stroke: M.value.style.chart.layout.verticalSeparator.stroke,
|
|
1608
|
+
"stroke-width": M.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
1609
|
+
}, null, 8, Pt),
|
|
1610
|
+
!H.value && !W.value ? (b(), m("foreignObject", {
|
|
1611
|
+
key: 6,
|
|
1612
|
+
x: 0,
|
|
1613
|
+
y: I.value.bottom,
|
|
1614
|
+
height: F.value.height - I.value.bottom,
|
|
1615
|
+
width: F.value.width,
|
|
1616
|
+
style: { overflow: "visible" },
|
|
1617
|
+
"data-no-svg-export": "",
|
|
1618
|
+
onClick: n[6] ||= () => {
|
|
1619
|
+
K(), $(), k.value = !1;
|
|
1620
|
+
}
|
|
1621
|
+
}, [h("div", It, [h("div", Lt, [(b(!0), m(d, null, S(B.value, (e) => (b(), m("div", { style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), m("svg", Rt, [h("circle", {
|
|
1622
|
+
cx: "10",
|
|
1623
|
+
cy: "10",
|
|
1624
|
+
r: "10",
|
|
1625
|
+
fill: e.color,
|
|
1626
|
+
stroke: "none"
|
|
1627
|
+
}, null, 8, zt)])), T(hr) ? p("", !0) : (b(), m(d, { key: 0 }, [
|
|
1628
|
+
h("span", null, w(e.name) + ":", 1),
|
|
1629
|
+
h("b", null, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(t)({
|
|
1630
|
+
p: M.value.style.chart.layout.legend.prefix,
|
|
1631
|
+
v: e.total,
|
|
1632
|
+
s: M.value.style.chart.layout.legend.suffix,
|
|
1633
|
+
r: M.value.style.chart.layout.legend.roundingValue
|
|
1634
|
+
}), { datapoint: e })), 1),
|
|
1635
|
+
De(" (" + w(T(t)({
|
|
1636
|
+
v: e.total / L.value * 100,
|
|
1637
|
+
s: "%",
|
|
1638
|
+
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
1639
|
+
})) + ") ", 1)
|
|
1640
|
+
], 64))], 4))), 256))])])], 8, Ft)) : p("", !0),
|
|
1641
|
+
H.value && U.value ? (b(), m("g", Bt, [
|
|
1642
|
+
(b(), m("foreignObject", {
|
|
1643
|
+
x: 0,
|
|
1644
|
+
y: Wr(),
|
|
1645
|
+
height: F.value.height - I.value.bottom,
|
|
1646
|
+
width: F.value.width,
|
|
1647
|
+
style: { overflow: "visible" },
|
|
1648
|
+
onClick: n[7] ||= () => {
|
|
1649
|
+
K(), $(), k.value = !1;
|
|
1650
|
+
}
|
|
1651
|
+
}, [h("div", Ht, [h("b", null, w(H.value.name), 1), h("div", Ut, [(b(!0), m(d, null, S(H.value.breakdown, (e, t) => (b(), m("div", { style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), m("svg", Wt, [h("circle", {
|
|
1652
|
+
cx: "10",
|
|
1653
|
+
cy: "10",
|
|
1654
|
+
r: "10",
|
|
1655
|
+
fill: e.color,
|
|
1656
|
+
stroke: "none"
|
|
1657
|
+
}, null, 8, Gt)])), h("span", null, [
|
|
1658
|
+
De(w(e.name) + ": ", 1),
|
|
1659
|
+
h("b", null, w(M.value.style.chart.layout.legend.prefix) + " " + w(e.value.toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + w(M.value.style.chart.layout.legend.suffix), 1),
|
|
1660
|
+
De(" (" + w((e.proportionToBranch * 100).toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
1661
|
+
])], 4))), 256))])])], 8, Vt)),
|
|
1662
|
+
h("circle", {
|
|
1663
|
+
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1664
|
+
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1665
|
+
r: 256,
|
|
1666
|
+
fill: `url(#nut_underlayer_${O.value})`,
|
|
1667
|
+
onClick: J,
|
|
1668
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1669
|
+
}, null, 10, Kt),
|
|
1670
|
+
(b(!0), m(d, null, S(U.value, (e) => (b(), m("g", null, [Gr(e) ? (b(), m("path", {
|
|
1671
|
+
key: 0,
|
|
1672
|
+
d: T(ae)(e, {
|
|
1673
|
+
x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1674
|
+
y: H.value.y1 + F.value.branchSize / 2
|
|
1675
|
+
}, 16, 16, !1, !1, 64),
|
|
1676
|
+
stroke: e.color,
|
|
1677
|
+
"stroke-width": "1",
|
|
1678
|
+
"stroke-linecap": "round",
|
|
1679
|
+
"stroke-linejoin": "round",
|
|
1680
|
+
fill: "none",
|
|
1681
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1682
|
+
}, null, 10, qt)) : p("", !0)]))), 256)),
|
|
1683
|
+
h("circle", {
|
|
1684
|
+
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1685
|
+
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1686
|
+
r: 118,
|
|
1687
|
+
fill: M.value.style.chart.backgroundColor,
|
|
1688
|
+
onClick: J,
|
|
1689
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1690
|
+
}, null, 10, Jt),
|
|
1691
|
+
(b(!0), m(d, null, S(U.value, (e) => (b(), m("path", {
|
|
1692
|
+
d: e.path,
|
|
1693
|
+
stroke: e.color,
|
|
1694
|
+
"stroke-width": 64,
|
|
1695
|
+
fill: "none",
|
|
1696
|
+
onClick: J,
|
|
1697
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1698
|
+
}, null, 10, Yt))), 256)),
|
|
1699
|
+
h("circle", {
|
|
1700
|
+
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1701
|
+
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1702
|
+
r: 110,
|
|
1703
|
+
fill: `url(#nutpick_${O.value})`,
|
|
1704
|
+
onClick: J,
|
|
1705
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1706
|
+
}, null, 10, Xt),
|
|
1707
|
+
h("circle", {
|
|
1708
|
+
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1709
|
+
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1710
|
+
r: 64,
|
|
1711
|
+
fill: M.value.style.chart.backgroundColor,
|
|
1712
|
+
onClick: J,
|
|
1713
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1714
|
+
}, null, 10, Zt),
|
|
1715
|
+
h("text", {
|
|
1716
|
+
x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1717
|
+
y: H.value.y1 + 8,
|
|
1718
|
+
fill: M.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
1719
|
+
"font-size": M.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
1720
|
+
"font-weight": M.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1721
|
+
"text-anchor": "middle",
|
|
1722
|
+
onClick: J,
|
|
1723
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1724
|
+
}, w(M.value.translations.total), 11, Qt),
|
|
1725
|
+
h("text", {
|
|
1726
|
+
x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1727
|
+
y: H.value.y1 + 36,
|
|
1728
|
+
fill: M.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
1729
|
+
"font-size": M.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
1730
|
+
"font-weight": M.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1731
|
+
"text-anchor": "middle",
|
|
1732
|
+
onClick: J,
|
|
1733
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1734
|
+
}, w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.value, T(t)({
|
|
1735
|
+
p: M.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1736
|
+
v: H.value.value,
|
|
1737
|
+
s: M.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1738
|
+
r: M.value.style.chart.layout.nuts.selected.roundingValue
|
|
1739
|
+
}), { datapoint: H.value })), 11, $t),
|
|
1740
|
+
(b(!0), m(d, null, S(U.value, (e, t) => (b(), m("g", null, [Gr(e) ? (b(), m("text", {
|
|
1741
|
+
key: 0,
|
|
1742
|
+
x: T(u)(e).x,
|
|
1743
|
+
"text-anchor": T(u)(e).anchor,
|
|
1744
|
+
y: T(re)(e) - M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
1745
|
+
fill: e.color,
|
|
1746
|
+
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1747
|
+
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1748
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1749
|
+
}, " ⬤ ", 14, en)) : p("", !0), Gr(e) ? (b(), m("text", {
|
|
1750
|
+
key: 1,
|
|
1751
|
+
x: T(u)(e, !0).x,
|
|
1752
|
+
"text-anchor": T(u)(e, !0).anchor,
|
|
1753
|
+
y: T(re)(e),
|
|
1754
|
+
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1755
|
+
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1756
|
+
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1757
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1758
|
+
}, w(H.value.breakdown[t].name), 15, tn)) : p("", !0)]))), 256)),
|
|
1759
|
+
(b(!0), m(d, null, S(U.value, (e, n) => (b(), m("g", null, [
|
|
1760
|
+
Gr(e) ? (b(), m("text", {
|
|
1761
|
+
key: 0,
|
|
1762
|
+
x: T(u)(e, !0).x,
|
|
1763
|
+
"text-anchor": T(u)(e).anchor,
|
|
1764
|
+
y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1765
|
+
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1766
|
+
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1767
|
+
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1768
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1769
|
+
}, w(T(t)({
|
|
1770
|
+
v: H.value.breakdown[n].value / H.value.value * 100,
|
|
1771
|
+
s: "%",
|
|
1772
|
+
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1773
|
+
})) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[n].branchName) + " " + w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.breakdown[n].value, T(t)({
|
|
1774
|
+
p: M.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1775
|
+
v: H.value.breakdown[n].value,
|
|
1776
|
+
s: M.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
1777
|
+
r: M.value.style.chart.layout.nuts.selected.roundingValue
|
|
1778
|
+
}), {
|
|
1779
|
+
datapoint: U.value,
|
|
1780
|
+
seriesIndex: n
|
|
1781
|
+
})), 15, nn)) : p("", !0),
|
|
1782
|
+
Gr(e) ? (b(), m("text", {
|
|
1783
|
+
key: 1,
|
|
1784
|
+
x: T(u)(e, !0).x,
|
|
1785
|
+
"text-anchor": T(u)(e).anchor,
|
|
1786
|
+
y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
1787
|
+
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1788
|
+
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1789
|
+
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1790
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1791
|
+
}, w(T(t)({
|
|
1792
|
+
v: H.value.breakdown[n].proportionToRoot * 100,
|
|
1793
|
+
s: "%",
|
|
1794
|
+
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1795
|
+
})) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[n].rootName), 15, rn)) : p("", !0),
|
|
1796
|
+
Gr(e) ? (b(), m("text", {
|
|
1797
|
+
key: 2,
|
|
1798
|
+
x: T(u)(e, !0).x,
|
|
1799
|
+
"text-anchor": T(u)(e).anchor,
|
|
1800
|
+
y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
1801
|
+
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1802
|
+
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1803
|
+
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1804
|
+
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1805
|
+
}, w(T(t)({
|
|
1806
|
+
v: H.value.breakdown[n].proportionToTree * 100,
|
|
1807
|
+
s: "%",
|
|
1808
|
+
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1809
|
+
})) + " " + w(M.value.translations.proportionToTree), 15, an)) : p("", !0)
|
|
1810
|
+
]))), 256))
|
|
1811
|
+
])) : p("", !0),
|
|
1812
|
+
(b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [
|
|
1813
|
+
W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
|
|
1814
|
+
key: 0,
|
|
1815
|
+
x: e.x1 + 6,
|
|
1816
|
+
y: e.y1 + F.value.branchSize + 24,
|
|
1817
|
+
"font-weight": "bold",
|
|
1818
|
+
"text-anchor": "start",
|
|
1819
|
+
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1820
|
+
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1821
|
+
onClick: n[8] ||= () => {
|
|
1822
|
+
K(), $(), k.value = !1;
|
|
1823
|
+
}
|
|
1824
|
+
}, w(e.name) + ": " + w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(t)({
|
|
1825
|
+
p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1826
|
+
v: e.value,
|
|
1827
|
+
s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1828
|
+
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1829
|
+
}), { datapoint: e })), 9, on)) : p("", !0),
|
|
1830
|
+
W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
|
|
1831
|
+
key: 1,
|
|
1832
|
+
x: e.x1 + 6,
|
|
1833
|
+
y: e.y1 + F.value.branchSize + 48,
|
|
1834
|
+
"text-anchor": "start",
|
|
1835
|
+
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1836
|
+
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1837
|
+
onClick: n[9] ||= () => {
|
|
1838
|
+
K(), $(), k.value = !1;
|
|
1839
|
+
}
|
|
1840
|
+
}, w(T(t)({
|
|
1841
|
+
v: e.proportionToRoot * 100,
|
|
1842
|
+
s: "%",
|
|
1843
|
+
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1844
|
+
})) + " " + w(M.value.translations.of) + " " + w(e.rootName), 9, sn)) : p("", !0),
|
|
1845
|
+
W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
|
|
1846
|
+
key: 2,
|
|
1847
|
+
x: e.x1 + 6,
|
|
1848
|
+
y: e.y1 + F.value.branchSize + 72,
|
|
1849
|
+
"text-anchor": "start",
|
|
1850
|
+
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1851
|
+
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1852
|
+
onClick: n[10] ||= () => {
|
|
1853
|
+
K(), $(), k.value = !1;
|
|
1854
|
+
}
|
|
1855
|
+
}, w(T(t)({
|
|
1856
|
+
v: e.value / L.value * 100,
|
|
1857
|
+
s: "%",
|
|
1858
|
+
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1859
|
+
})) + " " + w(M.value.translations.proportionToTree), 9, cn)) : p("", !0)
|
|
1860
|
+
]))), 256)),
|
|
1861
|
+
C(e.$slots, "svg", { svg: {
|
|
1862
|
+
...F.value,
|
|
1863
|
+
isPrintingImg: T(Sr) || T(Cr) || dr.value,
|
|
1864
|
+
isPrintingSvg: fr.value
|
|
1865
|
+
} }, void 0, !0)
|
|
1866
|
+
], 46, We)) : p("", !0)]),
|
|
1867
|
+
e.$slots.watermark ? (b(), m("div", ln, [C(e.$slots, "watermark", v(g({ isPrinting: T(Sr) || T(Cr) || dr.value || fr.value })), void 0, !0)])) : p("", !0),
|
|
1868
|
+
C(e.$slots, "legend", { legend: R.value }, void 0, !0),
|
|
1869
|
+
e.$slots.source ? (b(), m("div", un, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1870
|
+
or.value && M.value.userOptions.buttons.table ? (b(), Te(Ne(ni.value.component), Ae({ key: 6 }, ni.value.props, {
|
|
1871
|
+
ref_key: "tableUnit",
|
|
1872
|
+
ref: lr,
|
|
1873
|
+
onClose: ii
|
|
1874
|
+
}), Ee({
|
|
1875
|
+
content: E(() => [h("div", {
|
|
1876
|
+
ref_key: "tableContainer",
|
|
1877
|
+
ref: Or,
|
|
1878
|
+
class: "vue-ui-chestnut-table",
|
|
1879
|
+
style: y(`${M.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1880
|
+
}, [h("div", { style: y(`${M.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`) }, [M.value.table.useDialog ? p("", !0) : (b(), m("div", {
|
|
1881
|
+
key: 0,
|
|
1882
|
+
role: "button",
|
|
1883
|
+
tabindex: "0",
|
|
1884
|
+
style: y(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${N.value ? "pointer" : "default"}; background:${M.value.table.th.backgroundColor};`),
|
|
1885
|
+
onClick: ii,
|
|
1886
|
+
onKeypress: Le(ii, ["enter"])
|
|
1887
|
+
}, [Oe(T(Zn), {
|
|
1888
|
+
name: "close",
|
|
1889
|
+
stroke: M.value.table.th.color,
|
|
1890
|
+
"stroke-width": 2
|
|
1891
|
+
}, null, 8, ["stroke"])], 36)), h("div", {
|
|
1892
|
+
style: { width: "100%" },
|
|
1893
|
+
class: _({ "vue-ui-responsive": T(ri) })
|
|
1894
|
+
}, [h("table", dn, [
|
|
1895
|
+
M.value.table.useDialog ? p("", !0) : (b(), m("caption", {
|
|
1896
|
+
key: 0,
|
|
1897
|
+
style: y({
|
|
1898
|
+
backgroundColor: M.value.table.th.backgroundColor,
|
|
1899
|
+
color: M.value.table.th.color,
|
|
1900
|
+
outline: M.value.table.th.outline
|
|
1901
|
+
}),
|
|
1902
|
+
class: "vue-ui-data-table__caption"
|
|
1903
|
+
}, [De(w(M.value.style.chart.layout.title.text) + " ", 1), M.value.style.chart.layout.title.subtitle.text ? (b(), m("span", fn, w(M.value.style.chart.layout.title.subtitle.text), 1)) : p("", !0)], 4)),
|
|
1904
|
+
h("thead", null, [h("tr", {
|
|
1905
|
+
role: "row",
|
|
1906
|
+
style: y(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color}`)
|
|
1907
|
+
}, [(b(!0), m(d, null, S(Y.value.head, (e) => (b(), m("th", { style: y(`outline:${M.value.table.th.outline}`) }, w(e), 5))), 256))], 4)]),
|
|
1908
|
+
h("tbody", null, [(b(!0), m(d, null, S(Y.value.body, (e, t) => (b(), m("tr", {
|
|
1909
|
+
class: _({
|
|
1910
|
+
"vue-ui-data-table__tbody__row": !0,
|
|
1911
|
+
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
1912
|
+
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
1913
|
+
}),
|
|
1914
|
+
style: y(`background:${M.value.table.td.backgroundColor};color:${M.value.table.td.color}`)
|
|
1915
|
+
}, [
|
|
1916
|
+
h("td", {
|
|
1917
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1918
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1919
|
+
"data-cell": Y.value.head[0]
|
|
1920
|
+
}, [h("div", mn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", hn)) : (b(), m("span", gn, w(e.rootName), 1))])], 12, pn),
|
|
1921
|
+
h("td", {
|
|
1922
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1923
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1924
|
+
"data-cell": Y.value.head[1]
|
|
1925
|
+
}, [h("div", vn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", yn)) : (b(), m("span", bn, w(e.rootValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, _n),
|
|
1926
|
+
h("td", {
|
|
1927
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1928
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1929
|
+
"data-cell": Y.value.head[2]
|
|
1930
|
+
}, [h("div", Sn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", Cn)) : (b(), m("span", wn, w((e.rootToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, xn),
|
|
1931
|
+
h("td", {
|
|
1932
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1933
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1934
|
+
"data-cell": Y.value.head[3]
|
|
1935
|
+
}, [h("div", En, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", Dn)) : (b(), m("span", On, w(e.branchName), 1))])], 12, Tn),
|
|
1936
|
+
h("td", {
|
|
1937
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1938
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1939
|
+
"data-cell": Y.value.head[4]
|
|
1940
|
+
}, [h("div", An, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", jn)) : (b(), m("span", Mn, w(e.branchValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, kn),
|
|
1941
|
+
h("td", {
|
|
1942
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1943
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1944
|
+
"data-cell": Y.value.head[5]
|
|
1945
|
+
}, [h("div", Pn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", Fn)) : (b(), m("span", In, w((e.branchToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, Nn),
|
|
1946
|
+
h("td", {
|
|
1947
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1948
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1949
|
+
"data-cell": Y.value.head[6]
|
|
1950
|
+
}, [h("div", Rn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", zn)) : (b(), m("span", Bn, w((e.branchToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, Ln),
|
|
1951
|
+
h("td", {
|
|
1952
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1953
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1954
|
+
"data-cell": Y.value.head[7]
|
|
1955
|
+
}, [h("div", Hn, w(e.nutName), 1)], 12, Vn),
|
|
1956
|
+
h("td", {
|
|
1957
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1958
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1959
|
+
"data-cell": Y.value.head[8]
|
|
1960
|
+
}, [h("div", Wn, w(e.nutValue.toFixed(M.value.table.td.roundingValue)), 1)], 12, Un),
|
|
1961
|
+
h("td", {
|
|
1962
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1963
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1964
|
+
"data-cell": Y.value.head[9]
|
|
1965
|
+
}, [h("div", Kn, w((e.nutToBranch * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Gn),
|
|
1966
|
+
h("td", {
|
|
1967
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1968
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1969
|
+
"data-cell": Y.value.head[10]
|
|
1970
|
+
}, [h("div", Jn, w((e.nutToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, qn),
|
|
1971
|
+
h("td", {
|
|
1972
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1973
|
+
style: y(`outline:${M.value.table.td.outline}`),
|
|
1974
|
+
"data-cell": Y.value.head[11]
|
|
1975
|
+
}, [h("div", Xn, w((e.nutToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Yn)
|
|
1976
|
+
], 6))), 256))])
|
|
1977
|
+
])], 2)], 4)], 4)]),
|
|
1978
|
+
_: 2
|
|
1979
|
+
}, [M.value.table.useDialog ? {
|
|
1980
|
+
name: "title",
|
|
1981
|
+
fn: E(() => [De(w(ni.value.title), 1)]),
|
|
1982
|
+
key: "0"
|
|
1983
|
+
} : void 0, M.value.table.useDialog ? {
|
|
1984
|
+
name: "actions",
|
|
1985
|
+
fn: E(() => [h("button", {
|
|
1986
|
+
tabindex: "0",
|
|
1987
|
+
class: "vue-ui-user-options-button",
|
|
1988
|
+
onClick: n[11] ||= (e) => Jr(M.value.userOptions.callbacks.csv)
|
|
1989
|
+
}, [Oe(T(Zn), {
|
|
1990
|
+
name: "fileCsv",
|
|
1991
|
+
stroke: ni.value.props.color
|
|
1992
|
+
}, null, 8, ["stroke"])])]),
|
|
1993
|
+
key: "1"
|
|
1994
|
+
} : void 0]), 1040)) : p("", !0),
|
|
1995
|
+
C(e.$slots, "skeleton", {}, () => [T(hr) ? (b(), Te(me, { key: 0 })) : p("", !0)], !0)
|
|
1996
|
+
], 46, ze));
|
|
1997
|
+
}
|
|
1998
|
+
}, [["__scopeId", "data-v-e7d32b66"]]);
|
|
1999
|
+
//#endregion
|
|
2000
|
+
export { Re as n, Zn as t };
|