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