vue-data-ui 3.27.0 → 3.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/A11yDataTable-DWNlWXzs.js +1 -0
- package/dist/Arrow-C2W0uGrq.js +1 -0
- package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
- package/dist/BaseIcon-DdIyewwY.js +1 -0
- package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
- package/dist/BaseScanner-8NdoBs7B.js +1 -0
- package/dist/BaseZoomControls-DoYifY2y.js +1 -0
- package/dist/ColorPicker-MLwiwxl5.js +1 -0
- package/dist/DataTable-WNecJMcY.js +1 -0
- package/dist/DefGrad-DKMq1REY.js +1 -0
- package/dist/HillActions-CHg1AQ3p.js +1 -0
- package/dist/Legend-D8YoT1RJ.js +1 -0
- package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
- package/dist/PackageVersion-CdkxOy58.js +1 -0
- package/dist/PenAndPaper-IMw576MC.js +1 -0
- package/dist/RecursiveCircles-BftI1kwF.js +1 -0
- package/dist/RecursiveLabels-B0d04xSj.js +1 -0
- package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
- package/dist/Shape-Bp9YNtPc.js +1 -0
- package/dist/SlicerPreview-CNUciSbY.js +1 -0
- package/dist/SparkTooltip-C5JMcBXT.js +1 -0
- package/dist/Title-BGYFqulv.js +1 -0
- package/dist/Tooltip-Cus2-XNQ.js +1 -0
- package/dist/UserOptions-DTxMeZv3.js +1 -0
- package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/dist/annotationSlots-BRR85CqJ.js +1 -0
- package/dist/chartImage-CIvU_04o.js +1 -0
- package/dist/components/arrow.js +1 -2
- package/dist/components/vue-ui-3d-bar.js +1 -2
- package/dist/components/vue-ui-accordion.js +1 -2
- package/dist/components/vue-ui-age-pyramid.js +1 -2
- package/dist/components/vue-ui-annotator.js +1 -2
- package/dist/components/vue-ui-bullet.js +1 -2
- package/dist/components/vue-ui-bump.js +1 -2
- package/dist/components/vue-ui-candlestick.js +1 -2
- package/dist/components/vue-ui-carousel-table.js +1 -2
- package/dist/components/vue-ui-chestnut.js +1 -2
- package/dist/components/vue-ui-chord.js +1 -2
- package/dist/components/vue-ui-circle-pack.js +1 -2
- package/dist/components/vue-ui-cursor.js +1 -2
- package/dist/components/vue-ui-dag.js +1 -2
- package/dist/components/vue-ui-dashboard.js +1 -2
- package/dist/components/vue-ui-digits.js +1 -2
- package/dist/components/vue-ui-donut-evolution.js +1 -2
- package/dist/components/vue-ui-donut.js +1 -2
- package/dist/components/vue-ui-dumbbell.js +1 -2
- package/dist/components/vue-ui-flow.js +1 -2
- package/dist/components/vue-ui-funnel.js +1 -2
- package/dist/components/vue-ui-galaxy.js +1 -2
- package/dist/components/vue-ui-gauge.js +1 -2
- package/dist/components/vue-ui-geo.js +1 -2
- package/dist/components/vue-ui-gizmo.js +1 -2
- package/dist/components/vue-ui-heatmap.js +1 -2
- package/dist/components/vue-ui-hill.js +1 -2
- package/dist/components/vue-ui-history-plot.js +1 -2
- package/dist/components/vue-ui-horizontal-bar.js +1 -2
- package/dist/components/vue-ui-icon.js +1 -2
- package/dist/components/vue-ui-kpi.js +1 -2
- package/dist/components/vue-ui-label.js +1 -2
- package/dist/components/vue-ui-mini-loader.js +1 -2
- package/dist/components/vue-ui-molecule.js +1 -2
- package/dist/components/vue-ui-mood-radar.js +1 -2
- package/dist/components/vue-ui-nested-donuts.js +1 -2
- package/dist/components/vue-ui-onion.js +1 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
- package/dist/components/vue-ui-pattern-seed.js +1 -2
- package/dist/components/vue-ui-pattern.js +1 -2
- package/dist/components/vue-ui-quadrant.js +1 -2
- package/dist/components/vue-ui-quick-chart.js +1 -2
- package/dist/components/vue-ui-radar.js +1 -2
- package/dist/components/vue-ui-rating.js +1 -2
- package/dist/components/vue-ui-relation-circle.js +1 -2
- package/dist/components/vue-ui-ridgeline.js +1 -2
- package/dist/components/vue-ui-rings.js +1 -2
- package/dist/components/vue-ui-scatter.js +1 -2
- package/dist/components/vue-ui-skeleton.js +1 -2
- package/dist/components/vue-ui-smiley.js +1 -2
- package/dist/components/vue-ui-spark-trend.js +1 -2
- package/dist/components/vue-ui-sparkbar.js +1 -2
- package/dist/components/vue-ui-sparkgauge.js +1 -2
- package/dist/components/vue-ui-sparkhistogram.js +1 -2
- package/dist/components/vue-ui-sparkline.js +1 -2
- package/dist/components/vue-ui-sparkstackbar.js +1 -2
- package/dist/components/vue-ui-stackbar.js +1 -2
- package/dist/components/vue-ui-stackline.js +1 -2
- package/dist/components/vue-ui-strip-plot.js +1 -2
- package/dist/components/vue-ui-table-heatmap.js +1 -2
- package/dist/components/vue-ui-table-sparkline.js +1 -2
- package/dist/components/vue-ui-table.js +1 -2
- package/dist/components/vue-ui-thermometer.js +1 -2
- package/dist/components/vue-ui-timer.js +1 -2
- package/dist/components/vue-ui-tiremarks.js +1 -2
- package/dist/components/vue-ui-treemap.js +1 -2
- package/dist/components/vue-ui-vertical-bar.js +1 -2
- package/dist/components/vue-ui-waffle.js +1 -2
- package/dist/components/vue-ui-wheel.js +1 -2
- package/dist/components/vue-ui-word-cloud.js +1 -2
- package/dist/components/vue-ui-world.js +1 -2
- package/dist/components/vue-ui-xy-canvas.js +1 -2
- package/dist/components/vue-ui-xy.js +1 -2
- package/dist/composables.js +1 -5
- package/dist/dom-to-png-D8t3Bm7s.js +3 -0
- package/dist/exposedLib-DHtyEc_G.js +1 -0
- package/dist/geoProjections-Bvj-eMvq.js +1 -0
- package/dist/img-DiT4ivZ5.js +1 -0
- package/dist/labelUtils-CG3uVXoZ.js +1 -0
- package/dist/lib-CV_IANZ6.js +12 -0
- package/dist/package-DE5cU1Rg.js +1 -0
- package/dist/patternUtils-_q3ArM3g.js +1 -0
- package/dist/pdf-BQSB1V3H.js +1 -0
- package/dist/render-common-BdZ5aRyn.js +1 -0
- package/dist/resolveChartConfig-DZg-korK.js +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/ssr/vue-ui-donut.js +1 -2
- package/dist/ssr/vue-ui-xy.js +1 -2
- package/dist/ssr.js +1 -3
- package/dist/style.css +1 -1
- package/dist/tableIntegration-CNoJ1CIY.js +1 -0
- package/dist/types/composables.d.ts +12 -12
- package/dist/types/ssr.d.ts +84 -84
- package/dist/types/utils.d.ts +82 -73
- package/dist/types/vue-data-ui.d.ts +17961 -17958
- package/dist/types/vue-ui-3d-bar.d.ts +24 -91
- package/dist/types/vue-ui-accordion.d.ts +2 -10
- package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
- package/dist/types/vue-ui-annotator.d.ts +12 -88
- package/dist/types/vue-ui-bullet.d.ts +21 -83
- package/dist/types/vue-ui-bump.d.ts +23 -90
- package/dist/types/vue-ui-candlestick.d.ts +27 -108
- package/dist/types/vue-ui-carousel-table.d.ts +11 -57
- package/dist/types/vue-ui-chestnut.d.ts +27 -96
- package/dist/types/vue-ui-chord.d.ts +31 -108
- package/dist/types/vue-ui-circle-pack.d.ts +30 -124
- package/dist/types/vue-ui-cursor.d.ts +2 -8
- package/dist/types/vue-ui-dag.d.ts +35 -125
- package/dist/types/vue-ui-dashboard.d.ts +18 -66
- package/dist/types/vue-ui-digits.d.ts +2 -11
- package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
- package/dist/types/vue-ui-donut.d.ts +31 -121
- package/dist/types/vue-ui-dumbbell.d.ts +24 -92
- package/dist/types/vue-ui-flow.d.ts +28 -104
- package/dist/types/vue-ui-funnel.d.ts +18 -77
- package/dist/types/vue-ui-galaxy.d.ts +30 -112
- package/dist/types/vue-ui-gauge.d.ts +22 -87
- package/dist/types/vue-ui-geo.d.ts +22 -92
- package/dist/types/vue-ui-gizmo.d.ts +5 -20
- package/dist/types/vue-ui-heatmap.d.ts +25 -101
- package/dist/types/vue-ui-hill.d.ts +22 -88
- package/dist/types/vue-ui-history-plot.d.ts +30 -112
- package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
- package/dist/types/vue-ui-icon.d.ts +1 -13
- package/dist/types/vue-ui-kpi.d.ts +5 -23
- package/dist/types/vue-ui-label.d.ts +11 -48
- package/dist/types/vue-ui-mini-loader.d.ts +4 -13
- package/dist/types/vue-ui-molecule.d.ts +27 -110
- package/dist/types/vue-ui-mood-radar.d.ts +23 -90
- package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
- package/dist/types/vue-ui-onion.d.ts +26 -104
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
- package/dist/types/vue-ui-pattern.d.ts +1 -13
- package/dist/types/vue-ui-quadrant.d.ts +33 -123
- package/dist/types/vue-ui-quick-chart.d.ts +30 -110
- package/dist/types/vue-ui-radar.d.ts +31 -114
- package/dist/types/vue-ui-rating.d.ts +8 -40
- package/dist/types/vue-ui-relation-circle.d.ts +26 -90
- package/dist/types/vue-ui-ridgeline.d.ts +27 -104
- package/dist/types/vue-ui-rings.d.ts +21 -96
- package/dist/types/vue-ui-scatter.d.ts +22 -95
- package/dist/types/vue-ui-skeleton.d.ts +2 -10
- package/dist/types/vue-ui-smiley.d.ts +6 -26
- package/dist/types/vue-ui-spark-trend.d.ts +2 -18
- package/dist/types/vue-ui-sparkbar.d.ts +10 -47
- package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
- package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
- package/dist/types/vue-ui-sparkline.d.ts +16 -61
- package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
- package/dist/types/vue-ui-stackbar.d.ts +36 -130
- package/dist/types/vue-ui-stackline.d.ts +29 -116
- package/dist/types/vue-ui-strip-plot.d.ts +22 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
- package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
- package/dist/types/vue-ui-table.d.ts +9 -36
- package/dist/types/vue-ui-thermometer.d.ts +14 -68
- package/dist/types/vue-ui-timer.d.ts +10 -47
- package/dist/types/vue-ui-tiremarks.d.ts +14 -68
- package/dist/types/vue-ui-treemap.d.ts +26 -105
- package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
- package/dist/types/vue-ui-waffle.d.ts +23 -99
- package/dist/types/vue-ui-wheel.d.ts +14 -68
- package/dist/types/vue-ui-word-cloud.d.ts +20 -95
- package/dist/types/vue-ui-world.d.ts +22 -96
- package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
- package/dist/types/vue-ui-xy.d.ts +42 -146
- package/dist/unpackTheme-CNsFKCeq.js +1 -0
- package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
- package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
- package/dist/useChartExport-DtPNpc9M.js +1 -0
- package/dist/useConfig-CKdzPrcf.js +1 -0
- package/dist/useFitSvgText-C1QC4P5G.js +1 -0
- package/dist/useHints-BH9r_0Vd.js +6 -0
- package/dist/useNestedProp-CB186vF2.js +1 -0
- package/dist/useObjectBindings-Dse7YyAf.js +1 -0
- package/dist/usePanZoom-BdjP5Suc.js +1 -0
- package/dist/usePrefersMotion-XLHwega2.js +1 -0
- package/dist/usePrinter-hLW3cv4N.js +1 -0
- package/dist/useResponsive-D2CPcpda.js +1 -0
- package/dist/useStableElementSize-CegFbRlF.js +1 -0
- package/dist/useTableResponsive-uSz_qZOB.js +1 -0
- package/dist/useThemeCheck-BKNRbGeC.js +1 -0
- package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
- package/dist/useTimeLabels-Das5O74F.js +1 -0
- package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
- package/dist/useTransitions-DfSHzsdz.js +1 -0
- package/dist/useUserOptionState-CXlFnwPv.js +1 -0
- package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
- package/dist/utils.js +1 -30
- package/dist/vClickOutside-BxNzkY17.js +1 -0
- package/dist/vue-data-ui-DyYgLIZN.js +1 -0
- package/dist/vue-data-ui.js +1 -79
- package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
- package/dist/vue-ui-accordion-BNvevckx.js +1 -0
- package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
- package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
- package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
- package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
- package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
- package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
- package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
- package/dist/vue-ui-chord-B6_veyvO.js +21 -0
- package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
- package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
- package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
- package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
- package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
- package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
- package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
- package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
- package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
- package/dist/vue-ui-flow-Dru76A2O.js +3 -0
- package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
- package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
- package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
- package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
- package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
- package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
- package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
- package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
- package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
- package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
- package/dist/vue-ui-label-B4pkXBxc.js +7 -0
- package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
- package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
- package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
- package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
- package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
- package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
- package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
- package/dist/vue-ui-quadrant-BaKSTJDv.js +2 -0
- package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
- package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
- package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
- package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
- package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
- package/dist/vue-ui-rings-BOti0NGb.js +1 -0
- package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
- package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
- package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
- package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
- package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
- package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
- package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
- package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
- package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
- package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
- package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
- package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
- package/dist/vue-ui-table-CaFVLHxE.js +14 -0
- package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
- package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
- package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
- package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
- package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
- package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
- package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
- package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
- package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
- package/dist/vue-ui-world-DjMy_utm.js +19 -0
- package/dist/vue-ui-xy-DaozHMfg.js +31 -0
- package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
- package/dist/vue-ui-xy-rGHSI1am.js +24 -0
- package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
- package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
- package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
- package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
- package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
- package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
- package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
- package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
- package/dist/vue_ui_dag-1b_dLSym.js +1 -0
- package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
- package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
- package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
- package/dist/vue_ui_flow-kvV56Es9.js +1 -0
- package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
- package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
- package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
- package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
- package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
- package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
- package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
- package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
- package/dist/vue_ui_label-dtPqyFsj.js +1 -0
- package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
- package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
- package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
- package/dist/vue_ui_onion-C9BedU_-.js +1 -0
- package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
- package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
- package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
- package/dist/vue_ui_radar-68iK9Fam.js +1 -0
- package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
- package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
- package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
- package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
- package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
- package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
- package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
- package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
- package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
- package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
- package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
- package/dist/vue_ui_stackline-D7b63K84.js +1 -0
- package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
- package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
- package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
- package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
- package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
- package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
- package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
- package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
- package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
- package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
- package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
- package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
- package/package.json +2 -2
- package/dist/A11yDataTable-DdRsVULz.js +0 -45
- package/dist/Arrow-DKO1l8oR.js +0 -116
- package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
- package/dist/BaseIcon-Cx9FD751.js +0 -484
- package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
- package/dist/BaseScanner-Dzc8VT3j.js +0 -30
- package/dist/BaseZoomControls-vNi8YykO.js +0 -111
- package/dist/ColorPicker-hmC2bvwS.js +0 -257
- package/dist/DataTable-CjF_An2h.js +0 -150
- package/dist/DefGrad-DVBqDjhO.js +0 -48
- package/dist/HillActions-DqqGB33u.js +0 -187
- package/dist/Legend-CulFgjUY.js +0 -156
- package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
- package/dist/PackageVersion-D7H9nfK0.js +0 -12
- package/dist/PenAndPaper-CNiuGw6k.js +0 -906
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-DSwamtmO.js +0 -143
- package/dist/SlicerPreview-k5YerMA9.js +0 -1730
- package/dist/SparkTooltip-D35KVv6N.js +0 -93
- package/dist/Title-BMCuINbv.js +0 -87
- package/dist/Tooltip-C4ZTwkLF.js +0 -312
- package/dist/UserOptions-CORYQiif.js +0 -1412
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/dom-to-png-CBusMkua.js +0 -237
- package/dist/exposedLib-UNxZlnAS.js +0 -28
- package/dist/geoProjections-BYthUA8l.js +0 -302
- package/dist/img-Bb5rHcpO.js +0 -129
- package/dist/labelUtils-Ccn9kK7T.js +0 -19
- package/dist/lib-D4wK6ljP.js +0 -2146
- package/dist/package-DmQufM0G.js +0 -4
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-BzIQHx-F.js +0 -90
- package/dist/render-common-BtfjXdkJ.js +0 -152
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useChartExport-iwOqiIWX.js +0 -803
- package/dist/useConfig-D_6ZrPMD.js +0 -8090
- package/dist/useFitSvgText-CXTzBplU.js +0 -65
- package/dist/useHints-Dq_w2E8B.js +0 -66
- package/dist/useNestedProp-DR_8JPol.js +0 -12
- package/dist/useObjectBindings-DvasYMGu.js +0 -191
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-DdW2GSm0.js +0 -49
- package/dist/useResponsive-ZtArZtUf.js +0 -97
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useTableResponsive-BAqJPR68.js +0 -25
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-d2f-W1L4.js +0 -270
- package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
- package/dist/useTransitions-g_zBREk2.js +0 -39
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-Df7WV80w.js +0 -191
- package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
- package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
- package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
- package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
- package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
- package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
- package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
- package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
- package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
- package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
- package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
- package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
- package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
- package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
- package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
- package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
- package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
- package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
- package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
- package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
- package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
- package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
- package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
- package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
- package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
- package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
- package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
- package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
- package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
- package/dist/vue-ui-label-r3-QloJL.js +0 -1451
- package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
- package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
- package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
- package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
- package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
- package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
- package/dist/vue-ui-rating-C_iTttXB.js +0 -359
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
- package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
- package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
- package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
- package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
- package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
- package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
- package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
- package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
- package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
- package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
- package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
- package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
- package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
- package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
- package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
- package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
- package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
- package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
- package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
- package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
- package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
- package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
- package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
- package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_hill-dnltu0L-.js +0 -368
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
- package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
- package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-CcJADijP.js +0 -614
- package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
|
@@ -1,2016 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Ht as r, It as i, Jt as a, S as o, X as s, Yt as ee, at as te, en as ne, f as c, h as re, i as l, nn as ie, nt as ae, p as oe, r as se, t as ce, w as le, yt as ue, zt as de } from "./lib-D4wK6ljP.js";
|
|
3
|
-
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as me } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
-
import { t as he } from "./usePrinter-DdW2GSm0.js";
|
|
6
|
-
import { n as ge, t as _e } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-DR_8JPol.js";
|
|
8
|
-
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as be } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as xe } from "./img-Bb5rHcpO.js";
|
|
11
|
-
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { t as Ce } from "./DefGrad-DVBqDjhO.js";
|
|
13
|
-
import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
14
|
-
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as De } from "./useTableResponsive-BAqJPR68.js";
|
|
17
|
-
import { t as Oe } from "./vue_ui_chestnut-D2oUhad6.js";
|
|
18
|
-
import { Fragment as u, computed as d, createBlock as ke, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ae, createTextVNode as je, createVNode as Me, defineAsyncComponent as Ne, guardReactiveProps as h, mergeProps as Pe, nextTick as Fe, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onMounted as Ie, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Le, toDisplayString as C, toRefs as Re, unref as w, useCssVars as ze, watch as Be, withCtx as T, withKeys as Ve } from "vue";
|
|
19
|
-
//#region src/components/vue-ui-chestnut.vue
|
|
20
|
-
var He = /* @__PURE__ */ e({ default: () => Pn }), Ue = ["id"], We = ["id"], Ge = {
|
|
21
|
-
"aria-live": "polite",
|
|
22
|
-
class: "sr-only"
|
|
23
|
-
}, Ke = {
|
|
24
|
-
key: 2,
|
|
25
|
-
ref: "noTitle",
|
|
26
|
-
class: "vue-data-ui-no-title-space",
|
|
27
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
28
|
-
}, qe = { style: { position: "relative" } }, Je = [
|
|
29
|
-
"xmlns",
|
|
30
|
-
"aria-describedby",
|
|
31
|
-
"viewBox"
|
|
32
|
-
], Ye = ["width", "height"], Xe = { key: 1 }, Ze = [
|
|
33
|
-
"fill",
|
|
34
|
-
"font-weight",
|
|
35
|
-
"font-size",
|
|
36
|
-
"x",
|
|
37
|
-
"y"
|
|
38
|
-
], Qe = [
|
|
39
|
-
"fill",
|
|
40
|
-
"font-weight",
|
|
41
|
-
"font-size",
|
|
42
|
-
"x",
|
|
43
|
-
"y"
|
|
44
|
-
], $e = { key: 2 }, et = [
|
|
45
|
-
"x",
|
|
46
|
-
"y",
|
|
47
|
-
"font-size",
|
|
48
|
-
"font-weight",
|
|
49
|
-
"fill"
|
|
50
|
-
], tt = [
|
|
51
|
-
"x",
|
|
52
|
-
"y",
|
|
53
|
-
"font-size",
|
|
54
|
-
"font-weight",
|
|
55
|
-
"fill"
|
|
56
|
-
], nt = [
|
|
57
|
-
"d",
|
|
58
|
-
"stroke",
|
|
59
|
-
"fill"
|
|
60
|
-
], rt = [
|
|
61
|
-
"cx",
|
|
62
|
-
"cy",
|
|
63
|
-
"r",
|
|
64
|
-
"fill"
|
|
65
|
-
], it = [
|
|
66
|
-
"aria-label",
|
|
67
|
-
"cx",
|
|
68
|
-
"cy",
|
|
69
|
-
"r",
|
|
70
|
-
"fill",
|
|
71
|
-
"stroke",
|
|
72
|
-
"stroke-width",
|
|
73
|
-
"onClick"
|
|
74
|
-
], at = { key: 3 }, ot = [
|
|
75
|
-
"x",
|
|
76
|
-
"y",
|
|
77
|
-
"font-size",
|
|
78
|
-
"fill",
|
|
79
|
-
"onClick"
|
|
80
|
-
], st = { key: 0 }, ct = [
|
|
81
|
-
"x",
|
|
82
|
-
"y",
|
|
83
|
-
"fill",
|
|
84
|
-
"font-size",
|
|
85
|
-
"font-weight"
|
|
86
|
-
], lt = [
|
|
87
|
-
"x",
|
|
88
|
-
"y",
|
|
89
|
-
"height",
|
|
90
|
-
"width",
|
|
91
|
-
"fill",
|
|
92
|
-
"rx",
|
|
93
|
-
"onClick"
|
|
94
|
-
], ut = [
|
|
95
|
-
"aria-label",
|
|
96
|
-
"x",
|
|
97
|
-
"y",
|
|
98
|
-
"height",
|
|
99
|
-
"width",
|
|
100
|
-
"fill",
|
|
101
|
-
"rx",
|
|
102
|
-
"stroke",
|
|
103
|
-
"stroke-width",
|
|
104
|
-
"onClick"
|
|
105
|
-
], dt = { key: 4 }, ft = [
|
|
106
|
-
"x",
|
|
107
|
-
"y",
|
|
108
|
-
"fill",
|
|
109
|
-
"font-size",
|
|
110
|
-
"onClick"
|
|
111
|
-
], pt = ["d", "stroke"], mt = [
|
|
112
|
-
"aria-label",
|
|
113
|
-
"fill",
|
|
114
|
-
"cx",
|
|
115
|
-
"cy",
|
|
116
|
-
"r",
|
|
117
|
-
"onClick"
|
|
118
|
-
], ht = { key: 5 }, gt = [
|
|
119
|
-
"x",
|
|
120
|
-
"y",
|
|
121
|
-
"font-size",
|
|
122
|
-
"font-weight",
|
|
123
|
-
"fill"
|
|
124
|
-
], _t = [
|
|
125
|
-
"x1",
|
|
126
|
-
"x2",
|
|
127
|
-
"y1",
|
|
128
|
-
"y2",
|
|
129
|
-
"stroke",
|
|
130
|
-
"stroke-width"
|
|
131
|
-
], vt = [
|
|
132
|
-
"y",
|
|
133
|
-
"height",
|
|
134
|
-
"width"
|
|
135
|
-
], yt = { style: {
|
|
136
|
-
width: "100%",
|
|
137
|
-
height: "100%",
|
|
138
|
-
display: "flex",
|
|
139
|
-
"align-items": "center",
|
|
140
|
-
"justify-content": "center",
|
|
141
|
-
"flex-direction": "column"
|
|
142
|
-
} }, bt = { style: {
|
|
143
|
-
display: "flex",
|
|
144
|
-
"align-items": "center",
|
|
145
|
-
"justify-content": "center",
|
|
146
|
-
gap: "12px",
|
|
147
|
-
"flex-wrap": "wrap",
|
|
148
|
-
"flex-direction": "row"
|
|
149
|
-
} }, xt = {
|
|
150
|
-
viewBox: "0 0 20 20",
|
|
151
|
-
height: "16",
|
|
152
|
-
width: "16"
|
|
153
|
-
}, St = ["fill"], Ct = { key: 7 }, wt = [
|
|
154
|
-
"y",
|
|
155
|
-
"height",
|
|
156
|
-
"width"
|
|
157
|
-
], Tt = { style: {
|
|
158
|
-
width: "100%",
|
|
159
|
-
height: "100%",
|
|
160
|
-
display: "flex",
|
|
161
|
-
"align-items": "center",
|
|
162
|
-
"justify-content": "center",
|
|
163
|
-
"flex-direction": "column"
|
|
164
|
-
} }, Et = { style: {
|
|
165
|
-
display: "flex",
|
|
166
|
-
"align-items": "center",
|
|
167
|
-
"justify-content": "center",
|
|
168
|
-
gap: "12px",
|
|
169
|
-
"flex-wrap": "wrap",
|
|
170
|
-
"flex-direction": "row"
|
|
171
|
-
} }, Dt = {
|
|
172
|
-
viewBox: "0 0 20 20",
|
|
173
|
-
height: "16",
|
|
174
|
-
width: "16"
|
|
175
|
-
}, Ot = ["fill"], kt = [
|
|
176
|
-
"cx",
|
|
177
|
-
"cy",
|
|
178
|
-
"fill"
|
|
179
|
-
], At = ["d", "stroke"], jt = [
|
|
180
|
-
"cx",
|
|
181
|
-
"cy",
|
|
182
|
-
"fill"
|
|
183
|
-
], Mt = ["d", "stroke"], Nt = [
|
|
184
|
-
"cx",
|
|
185
|
-
"cy",
|
|
186
|
-
"fill"
|
|
187
|
-
], Pt = [
|
|
188
|
-
"cx",
|
|
189
|
-
"cy",
|
|
190
|
-
"fill"
|
|
191
|
-
], Ft = [
|
|
192
|
-
"x",
|
|
193
|
-
"y",
|
|
194
|
-
"fill",
|
|
195
|
-
"font-size",
|
|
196
|
-
"font-weight"
|
|
197
|
-
], It = [
|
|
198
|
-
"x",
|
|
199
|
-
"y",
|
|
200
|
-
"fill",
|
|
201
|
-
"font-size",
|
|
202
|
-
"font-weight"
|
|
203
|
-
], Lt = [
|
|
204
|
-
"x",
|
|
205
|
-
"text-anchor",
|
|
206
|
-
"y",
|
|
207
|
-
"fill",
|
|
208
|
-
"font-size"
|
|
209
|
-
], Rt = [
|
|
210
|
-
"x",
|
|
211
|
-
"text-anchor",
|
|
212
|
-
"y",
|
|
213
|
-
"fill",
|
|
214
|
-
"font-size"
|
|
215
|
-
], zt = [
|
|
216
|
-
"x",
|
|
217
|
-
"text-anchor",
|
|
218
|
-
"y",
|
|
219
|
-
"fill",
|
|
220
|
-
"font-size"
|
|
221
|
-
], Bt = [
|
|
222
|
-
"x",
|
|
223
|
-
"text-anchor",
|
|
224
|
-
"y",
|
|
225
|
-
"fill",
|
|
226
|
-
"font-size"
|
|
227
|
-
], Vt = [
|
|
228
|
-
"x",
|
|
229
|
-
"text-anchor",
|
|
230
|
-
"y",
|
|
231
|
-
"fill",
|
|
232
|
-
"font-size"
|
|
233
|
-
], Ht = [
|
|
234
|
-
"x",
|
|
235
|
-
"y",
|
|
236
|
-
"font-size",
|
|
237
|
-
"fill"
|
|
238
|
-
], Ut = [
|
|
239
|
-
"x",
|
|
240
|
-
"y",
|
|
241
|
-
"font-size",
|
|
242
|
-
"fill"
|
|
243
|
-
], Wt = [
|
|
244
|
-
"x",
|
|
245
|
-
"y",
|
|
246
|
-
"font-size",
|
|
247
|
-
"fill"
|
|
248
|
-
], Gt = {
|
|
249
|
-
key: 4,
|
|
250
|
-
class: "vue-data-ui-watermark"
|
|
251
|
-
}, Kt = {
|
|
252
|
-
key: 5,
|
|
253
|
-
ref: "source",
|
|
254
|
-
dir: "auto"
|
|
255
|
-
}, qt = { class: "vue-ui-data-table" }, Jt = { key: 0 }, Yt = ["data-cell"], Xt = { style: {
|
|
256
|
-
display: "flex",
|
|
257
|
-
"align-items": "center",
|
|
258
|
-
gap: "5px",
|
|
259
|
-
"justify-content": "flex-end",
|
|
260
|
-
width: "100%",
|
|
261
|
-
"padding-right": "3px"
|
|
262
|
-
} }, Zt = { key: 0 }, Qt = { key: 1 }, $t = ["data-cell"], en = { style: {
|
|
263
|
-
display: "flex",
|
|
264
|
-
"align-items": "center",
|
|
265
|
-
gap: "5px",
|
|
266
|
-
"justify-content": "flex-end",
|
|
267
|
-
width: "100%",
|
|
268
|
-
"padding-right": "3px"
|
|
269
|
-
} }, tn = { key: 0 }, nn = { key: 1 }, rn = ["data-cell"], an = { style: {
|
|
270
|
-
display: "flex",
|
|
271
|
-
"align-items": "center",
|
|
272
|
-
gap: "5px",
|
|
273
|
-
"justify-content": "flex-end",
|
|
274
|
-
width: "100%",
|
|
275
|
-
"padding-right": "3px"
|
|
276
|
-
} }, on = { key: 0 }, sn = { key: 1 }, cn = ["data-cell"], ln = { style: {
|
|
277
|
-
display: "flex",
|
|
278
|
-
"align-items": "center",
|
|
279
|
-
gap: "5px",
|
|
280
|
-
"justify-content": "flex-end",
|
|
281
|
-
width: "100%",
|
|
282
|
-
"padding-right": "3px"
|
|
283
|
-
} }, un = { key: 0 }, dn = { key: 1 }, fn = ["data-cell"], pn = { style: {
|
|
284
|
-
display: "flex",
|
|
285
|
-
"align-items": "center",
|
|
286
|
-
gap: "5px",
|
|
287
|
-
"justify-content": "flex-end",
|
|
288
|
-
width: "100%",
|
|
289
|
-
"padding-right": "3px"
|
|
290
|
-
} }, mn = { key: 0 }, hn = { key: 1 }, gn = ["data-cell"], _n = { style: {
|
|
291
|
-
display: "flex",
|
|
292
|
-
"align-items": "center",
|
|
293
|
-
gap: "5px",
|
|
294
|
-
"justify-content": "flex-end",
|
|
295
|
-
width: "100%",
|
|
296
|
-
"padding-right": "3px"
|
|
297
|
-
} }, vn = { key: 0 }, yn = { key: 1 }, bn = ["data-cell"], xn = { style: {
|
|
298
|
-
display: "flex",
|
|
299
|
-
"align-items": "center",
|
|
300
|
-
gap: "5px",
|
|
301
|
-
"justify-content": "flex-end",
|
|
302
|
-
width: "100%",
|
|
303
|
-
"padding-right": "3px"
|
|
304
|
-
} }, Sn = { key: 0 }, Cn = { key: 1 }, wn = ["data-cell"], Tn = { style: {
|
|
305
|
-
display: "flex",
|
|
306
|
-
"align-items": "center",
|
|
307
|
-
gap: "5px",
|
|
308
|
-
"justify-content": "flex-end",
|
|
309
|
-
width: "100%",
|
|
310
|
-
"padding-right": "3px"
|
|
311
|
-
} }, En = ["data-cell"], Dn = { style: {
|
|
312
|
-
display: "flex",
|
|
313
|
-
"align-items": "center",
|
|
314
|
-
gap: "5px",
|
|
315
|
-
"justify-content": "flex-end",
|
|
316
|
-
width: "100%",
|
|
317
|
-
"padding-right": "3px"
|
|
318
|
-
} }, On = ["data-cell"], kn = { style: {
|
|
319
|
-
display: "flex",
|
|
320
|
-
"align-items": "center",
|
|
321
|
-
gap: "5px",
|
|
322
|
-
"justify-content": "flex-end",
|
|
323
|
-
width: "100%",
|
|
324
|
-
"padding-right": "3px"
|
|
325
|
-
} }, An = ["data-cell"], jn = { style: {
|
|
326
|
-
display: "flex",
|
|
327
|
-
"align-items": "center",
|
|
328
|
-
gap: "5px",
|
|
329
|
-
"justify-content": "flex-end",
|
|
330
|
-
width: "100%",
|
|
331
|
-
"padding-right": "3px"
|
|
332
|
-
} }, Mn = ["data-cell"], Nn = { style: {
|
|
333
|
-
display: "flex",
|
|
334
|
-
"align-items": "center",
|
|
335
|
-
gap: "5px",
|
|
336
|
-
"justify-content": "flex-end",
|
|
337
|
-
width: "100%",
|
|
338
|
-
"padding-right": "3px"
|
|
339
|
-
} }, Pn = /*#__PURE__*/ Se({
|
|
340
|
-
__name: "vue-ui-chestnut",
|
|
341
|
-
props: {
|
|
342
|
-
config: {
|
|
343
|
-
type: Object,
|
|
344
|
-
default() {
|
|
345
|
-
return {};
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
dataset: {
|
|
349
|
-
type: Array,
|
|
350
|
-
default() {
|
|
351
|
-
return [];
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
emits: [
|
|
356
|
-
"selectRoot",
|
|
357
|
-
"selectBranch",
|
|
358
|
-
"selectNut",
|
|
359
|
-
"copyAlt"
|
|
360
|
-
],
|
|
361
|
-
setup(e, { expose: Se, emit: He }) {
|
|
362
|
-
ze((e) => ({ v6fcd3982: e.tdo }));
|
|
363
|
-
let Pn = Ne(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Fn = Ne(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), In = Ne(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Ln = Ne(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Rn = Ne(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), zn = Ne(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_chestnut: Bn } = me(), { isThemeValid: Vn, warnInvalidTheme: Hn } = ye(), E = e, Un = d(() => !!E.dataset && E.dataset.length), D = b(s()), Wn = b(null), Gn = b(0), Kn = b(null), qn = b(null), Jn = b(!1), O = b(!1), k = b(""), A = b({
|
|
364
|
-
level: "root",
|
|
365
|
-
rootIndex: 0,
|
|
366
|
-
branchIndex: 0,
|
|
367
|
-
nutIndex: 0,
|
|
368
|
-
locked: !1
|
|
369
|
-
}), j = b(nr()), M = d(() => j.value.style.chart.layout.roots), N = d(() => j.value.style.chart.layout.branches), P = d(() => j.value.style.chart.layout.nuts), F = d(() => j.value.style.chart.layout), I = d(() => j.value.style.chart);
|
|
370
|
-
fe({
|
|
371
|
-
config: () => j.value,
|
|
372
|
-
dataset: () => E.dataset,
|
|
373
|
-
component: "VueUiChestnut",
|
|
374
|
-
rules: [
|
|
375
|
-
pe.emptyArray,
|
|
376
|
-
{
|
|
377
|
-
test: (e) => e.some((e) => e?.branches && e.branches.length > 10),
|
|
378
|
-
message: [
|
|
379
|
-
"👀 Some root has > 10 branches, which can make the chart heavy. Consider:",
|
|
380
|
-
"",
|
|
381
|
-
"▶️ Grouping some branches in broader categories."
|
|
382
|
-
]
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
test: (e) => e.some((e) => e?.branches && e.branches.some((e) => e?.breakdown && e?.breakdown.length > 6)),
|
|
386
|
-
message: [
|
|
387
|
-
"👀 Some donuts have > 6 series. Consider:",
|
|
388
|
-
"",
|
|
389
|
-
"▶️ Grouping small values into an \"Other\" category."
|
|
390
|
-
]
|
|
391
|
-
}
|
|
392
|
-
]
|
|
393
|
-
});
|
|
394
|
-
let L = d(() => j.value.userOptions.useCursorPointer), Yn = d(() => ie({
|
|
395
|
-
defaultConfig: {
|
|
396
|
-
userOptions: { show: !1 },
|
|
397
|
-
table: { show: !1 },
|
|
398
|
-
style: { chart: {
|
|
399
|
-
backgroundColor: "#99999930",
|
|
400
|
-
layout: {
|
|
401
|
-
grandTotal: { show: !1 },
|
|
402
|
-
roots: {
|
|
403
|
-
stroke: "#6A6A6A",
|
|
404
|
-
labels: { show: !1 }
|
|
405
|
-
},
|
|
406
|
-
verticalSeparator: { stroke: "transparent" },
|
|
407
|
-
branches: {
|
|
408
|
-
stroke: "#6A6A6A",
|
|
409
|
-
underlayerColor: "#6A6A6A90",
|
|
410
|
-
labels: {
|
|
411
|
-
show: !1,
|
|
412
|
-
dataLabels: { show: !1 }
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
} }
|
|
417
|
-
},
|
|
418
|
-
userConfig: j.value.skeletonConfig ?? {}
|
|
419
|
-
})), { loading: Xn, FINAL_DATASET: Zn } = ge({
|
|
420
|
-
...Re(E),
|
|
421
|
-
FINAL_CONFIG: j,
|
|
422
|
-
prepareConfig: nr,
|
|
423
|
-
skeletonDataset: E.config?.skeletonDataset ?? [{
|
|
424
|
-
name: "_",
|
|
425
|
-
color: "#969696",
|
|
426
|
-
branches: [
|
|
427
|
-
{
|
|
428
|
-
name: "_",
|
|
429
|
-
value: 32,
|
|
430
|
-
breakdown: [{
|
|
431
|
-
name: "_",
|
|
432
|
-
value: 16,
|
|
433
|
-
color: "#CACACA"
|
|
434
|
-
}, {
|
|
435
|
-
name: "_",
|
|
436
|
-
value: 16,
|
|
437
|
-
color: "#6A6A6A"
|
|
438
|
-
}]
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
name: "_",
|
|
442
|
-
value: 16,
|
|
443
|
-
breakdown: [{
|
|
444
|
-
name: "_",
|
|
445
|
-
value: 8,
|
|
446
|
-
color: "#CACACA"
|
|
447
|
-
}, {
|
|
448
|
-
name: "_",
|
|
449
|
-
value: 8,
|
|
450
|
-
color: "#6A6A6A"
|
|
451
|
-
}]
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
name: "_",
|
|
455
|
-
value: 8,
|
|
456
|
-
breakdown: [{
|
|
457
|
-
name: "_",
|
|
458
|
-
value: 4,
|
|
459
|
-
color: "#CACACA"
|
|
460
|
-
}, {
|
|
461
|
-
name: "_",
|
|
462
|
-
value: 4,
|
|
463
|
-
color: "#6A6A6A"
|
|
464
|
-
}]
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
name: "_",
|
|
468
|
-
value: 4,
|
|
469
|
-
breakdown: [{
|
|
470
|
-
name: "_",
|
|
471
|
-
value: 2,
|
|
472
|
-
color: "#CACACA"
|
|
473
|
-
}, {
|
|
474
|
-
name: "_",
|
|
475
|
-
value: 2,
|
|
476
|
-
color: "#6A6A6A"
|
|
477
|
-
}]
|
|
478
|
-
}
|
|
479
|
-
]
|
|
480
|
-
}, {
|
|
481
|
-
name: "_",
|
|
482
|
-
color: "#C4C4C4",
|
|
483
|
-
branches: [
|
|
484
|
-
{
|
|
485
|
-
name: "_",
|
|
486
|
-
value: 24,
|
|
487
|
-
breakdown: [{
|
|
488
|
-
name: "_",
|
|
489
|
-
value: 12,
|
|
490
|
-
color: "#CACACA"
|
|
491
|
-
}, {
|
|
492
|
-
name: "_",
|
|
493
|
-
value: 12,
|
|
494
|
-
color: "#6A6A6A"
|
|
495
|
-
}]
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
name: "_",
|
|
499
|
-
value: 12,
|
|
500
|
-
breakdown: [{
|
|
501
|
-
name: "_",
|
|
502
|
-
value: 6,
|
|
503
|
-
color: "#CACACA"
|
|
504
|
-
}, {
|
|
505
|
-
name: "_",
|
|
506
|
-
value: 6,
|
|
507
|
-
color: "#6A6A6A"
|
|
508
|
-
}]
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
name: "_",
|
|
512
|
-
value: 6,
|
|
513
|
-
breakdown: [{
|
|
514
|
-
name: "_",
|
|
515
|
-
value: 3,
|
|
516
|
-
color: "#CACACA"
|
|
517
|
-
}, {
|
|
518
|
-
name: "_",
|
|
519
|
-
value: 3,
|
|
520
|
-
color: "#6A6A6A"
|
|
521
|
-
}]
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
name: "_",
|
|
525
|
-
value: 2,
|
|
526
|
-
breakdown: [{
|
|
527
|
-
name: "_",
|
|
528
|
-
value: 1,
|
|
529
|
-
color: "#CACACA"
|
|
530
|
-
}, {
|
|
531
|
-
name: "_",
|
|
532
|
-
value: 1,
|
|
533
|
-
color: "#6A6A6A"
|
|
534
|
-
}]
|
|
535
|
-
}
|
|
536
|
-
]
|
|
537
|
-
}],
|
|
538
|
-
skeletonConfig: ie({
|
|
539
|
-
defaultConfig: j.value,
|
|
540
|
-
userConfig: Yn.value
|
|
541
|
-
})
|
|
542
|
-
}), { userOptionsVisible: Qn, setUserOptionsVisibility: $n, keepUserOptionState: er } = Te({ config: j.value }), { svgRef: tr } = Ee({ config: F.value.title });
|
|
543
|
-
function nr() {
|
|
544
|
-
let e = ve({
|
|
545
|
-
userConfig: E.config,
|
|
546
|
-
defaultConfig: Bn
|
|
547
|
-
}), t = e.theme;
|
|
548
|
-
if (!t) return e;
|
|
549
|
-
if (!Vn.value(e)) return Hn(e), e;
|
|
550
|
-
let n = ve({
|
|
551
|
-
userConfig: Oe[t] || E.config,
|
|
552
|
-
defaultConfig: e
|
|
553
|
-
}), i = ve({
|
|
554
|
-
userConfig: E.config,
|
|
555
|
-
defaultConfig: n
|
|
556
|
-
});
|
|
557
|
-
return {
|
|
558
|
-
...i,
|
|
559
|
-
customPalette: i.customPalette.length ? i.customPalette : ne[t] || r
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
Be(() => E.config, (e) => {
|
|
563
|
-
j.value = nr(), Qn.value = !j.value.userOptions.showOnChartHover, lr.value.showTable = j.value.table.show, jr();
|
|
564
|
-
}, { deep: !0 });
|
|
565
|
-
let { isPrinting: rr, isImaging: ir, generatePdf: ar, generateImage: or } = he({
|
|
566
|
-
elementId: `vue-ui-chestnut_${D.value}`,
|
|
567
|
-
fileName: F.value.title.text || "vue-ui-chestnut",
|
|
568
|
-
options: j.value.userOptions.print
|
|
569
|
-
}), sr = d(() => j.value.userOptions.show), cr = d(() => le(j.value.customPalette)), lr = b({ showTable: j.value.table.show });
|
|
570
|
-
Be(j, () => {
|
|
571
|
-
lr.value = { showTable: j.value.table.show };
|
|
572
|
-
}, { immediate: !0 });
|
|
573
|
-
let ur = b(null), dr = d(() => j.value.table.responsiveBreakpoint), R = b({
|
|
574
|
-
gap: 6,
|
|
575
|
-
padding: {
|
|
576
|
-
top: 102,
|
|
577
|
-
left: 12,
|
|
578
|
-
right: 12,
|
|
579
|
-
bottom: 96
|
|
580
|
-
},
|
|
581
|
-
width: 1024,
|
|
582
|
-
height: 0,
|
|
583
|
-
branchSize: 32,
|
|
584
|
-
branchStart: 128
|
|
585
|
-
}), z = d(() => ({
|
|
586
|
-
left: R.value.padding.left,
|
|
587
|
-
top: R.value.padding.top,
|
|
588
|
-
right: R.value.width - R.value.padding.right,
|
|
589
|
-
bottom: R.value.height - R.value.padding.bottom,
|
|
590
|
-
width: R.value.width - (R.value.padding.left + R.value.padding.right),
|
|
591
|
-
height: R.value.height - (R.value.padding.top + R.value.padding.bottom),
|
|
592
|
-
seedX: R.value.padding.left + 64
|
|
593
|
-
})), B = d(() => Zn.value.flatMap((e) => (e.branches || []).map((e) => e.value || 0)).reduce((e, t) => e + t, 0)), fr = d(() => j.value.debug), V = d(() => (fr.value && Zn.value.forEach((e, t) => {
|
|
594
|
-
ue({
|
|
595
|
-
datasetObject: e,
|
|
596
|
-
requiredAttributes: ["name", "branches"]
|
|
597
|
-
}).forEach((e) => {
|
|
598
|
-
te({
|
|
599
|
-
componentName: "VueUiChestnut",
|
|
600
|
-
type: "datasetSerieAttribute",
|
|
601
|
-
property: e,
|
|
602
|
-
index: t
|
|
603
|
-
});
|
|
604
|
-
}), e.branches && e.branches.forEach((e, n) => {
|
|
605
|
-
ue({
|
|
606
|
-
datasetObject: e,
|
|
607
|
-
requiredAttributes: ["name", "value"]
|
|
608
|
-
}).forEach((e) => {
|
|
609
|
-
te({
|
|
610
|
-
componentName: "VueUiChestnut",
|
|
611
|
-
type: "datasetSerieAttribute",
|
|
612
|
-
property: e,
|
|
613
|
-
index: `${t} - ${n}`
|
|
614
|
-
});
|
|
615
|
-
}), e.breakdown && e.breakdown.forEach((e, r) => {
|
|
616
|
-
ue({
|
|
617
|
-
datasetObject: e,
|
|
618
|
-
requiredAttributes: ["name", "value"]
|
|
619
|
-
}).forEach((e) => {
|
|
620
|
-
te({
|
|
621
|
-
componentName: "VueUiChestnut",
|
|
622
|
-
type: "datasetSerieAttribute",
|
|
623
|
-
property: e,
|
|
624
|
-
index: `${t} - ${n} - ${r}`
|
|
625
|
-
});
|
|
626
|
-
});
|
|
627
|
-
});
|
|
628
|
-
});
|
|
629
|
-
}), Zn.value.map((e, t) => {
|
|
630
|
-
let n = (e.branches || []).map((e) => e.value || 0).reduce((e, t) => e + t, 0);
|
|
631
|
-
return {
|
|
632
|
-
...e,
|
|
633
|
-
color: o(e.color) || cr.value[t] || r[t] || r[t % r.length],
|
|
634
|
-
id: e.id || `root_${t}_${D.value}`,
|
|
635
|
-
type: "root",
|
|
636
|
-
total: n,
|
|
637
|
-
rootIndex: t,
|
|
638
|
-
branches: (e.branches || []).map((i, a) => ({
|
|
639
|
-
...i,
|
|
640
|
-
rootName: e.name,
|
|
641
|
-
rootIndex: t,
|
|
642
|
-
color: o(e.color) || cr.value[t] || r[t] || r[t % r.length],
|
|
643
|
-
value: i.value >= 0 ? i.value : 0,
|
|
644
|
-
id: i.id || `branch_${t}_${a}_${D.value}`,
|
|
645
|
-
proportionToRoot: i.value / n,
|
|
646
|
-
type: "branch",
|
|
647
|
-
breakdown: (i.breakdown || []).map((s, ee) => ({
|
|
648
|
-
table: {
|
|
649
|
-
rootName: e.name,
|
|
650
|
-
rootValue: n,
|
|
651
|
-
rootToTotal: n / B.value,
|
|
652
|
-
branchName: i.name,
|
|
653
|
-
branchValue: i.value,
|
|
654
|
-
branchToTotal: i.value / B.value,
|
|
655
|
-
branchToRoot: i.value / n,
|
|
656
|
-
nutName: s.name,
|
|
657
|
-
nutValue: s.value,
|
|
658
|
-
nutToTotal: s.value / B.value,
|
|
659
|
-
nutToRoot: s.value / n,
|
|
660
|
-
nutToBranch: s.value / i.value
|
|
661
|
-
},
|
|
662
|
-
...s,
|
|
663
|
-
type: "nut",
|
|
664
|
-
branchName: i.name,
|
|
665
|
-
rootName: e.name,
|
|
666
|
-
branchTotal: i.value >= 0 ? i.value : 0,
|
|
667
|
-
proportionToBranch: s.value / i.value,
|
|
668
|
-
proportionToRoot: s.value / n,
|
|
669
|
-
proportionToTree: s.value / B.value,
|
|
670
|
-
rootIndex: t,
|
|
671
|
-
id: s.id || `nut_${t}_${a}_${ee}_${D.value}`,
|
|
672
|
-
color: o(s.color) || cr.value[ee] || r[ee] || r[ee % r.length],
|
|
673
|
-
value: s.value >= 0 ? s.value : 0
|
|
674
|
-
}))
|
|
675
|
-
}))
|
|
676
|
-
};
|
|
677
|
-
})));
|
|
678
|
-
function pr() {
|
|
679
|
-
return V.value;
|
|
680
|
-
}
|
|
681
|
-
let mr = He, hr = d(() => V.value.flatMap((e) => e.branches).length), gr = d(() => Math.max(...V.value.map((e) => e.branches.map((e) => e.value).reduce((e, t) => e + t, 0)))), _r = d(() => Math.max(...V.value.flatMap((e) => e.branches.map((e) => e.value)))), vr = d(() => 256 + R.value.padding.left), H = d(() => V.value.sort((e, t) => t.total - e.total).map((e, t) => {
|
|
682
|
-
let n = z.value.height / V.value.length / 2, r = e.total / gr.value * (n > 64 ? 64 : n);
|
|
683
|
-
return {
|
|
684
|
-
...e,
|
|
685
|
-
x: z.value.seedX,
|
|
686
|
-
y: z.value.top + z.value.height / V.value.length * (t + 1) - (z.value.height / V.value.length / 2 + R.value.gap / 2),
|
|
687
|
-
r: r < R.value.branchSize / 2 ? R.value.branchSize / 2 : r
|
|
688
|
-
};
|
|
689
|
-
})), yr = d(() => N.value.widthRatio <= 0 ? .1 : N.value.widthRatio > 1.8 ? 1.8 : N.value.widthRatio), br = d(() => H.value.flatMap((e) => e.branches)), U = d(() => br.value.sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
690
|
-
...e,
|
|
691
|
-
y1: t * R.value.branchSize + z.value.top + t * R.value.gap,
|
|
692
|
-
y2: t * R.value.branchSize + R.value.branchSize,
|
|
693
|
-
x1: vr.value,
|
|
694
|
-
x2: 384 * e.value / _r.value * yr.value + vr.value
|
|
695
|
-
}))), xr = d(() => H.value), Sr = d(() => xr.value.map((e) => U.value.filter((t) => t.rootIndex === e.rootIndex).sort((e, t) => e.y1 - t.y1))), Cr = d(() => xr.value.map((e, t) => Sr.value[t].map((e) => (e.breakdown || []).map((t, n) => ({
|
|
696
|
-
...t,
|
|
697
|
-
nutIndex: n,
|
|
698
|
-
rootIndex: e.rootIndex,
|
|
699
|
-
branchId: e.id,
|
|
700
|
-
branchName: e.name,
|
|
701
|
-
branchValue: e.value,
|
|
702
|
-
rootName: e.rootName
|
|
703
|
-
})))));
|
|
704
|
-
function wr(e) {
|
|
705
|
-
let t = H.value.find((t) => t.rootIndex === e.rootIndex);
|
|
706
|
-
return {
|
|
707
|
-
x: t.x,
|
|
708
|
-
y: t.y,
|
|
709
|
-
r: t.r
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
let W = b(null), G = b(null), K = b(null), q = b(null);
|
|
713
|
-
function J() {
|
|
714
|
-
W.value = null, K.value = null, q.value = null;
|
|
715
|
-
}
|
|
716
|
-
function Y(e) {
|
|
717
|
-
if (W.value) return e.type === "root" ? e.rootIndex === W.value.rootIndex : e.type === "branch" ? e.id === W.value.id : e.type === "nut" && e.branchName === W.value.name && e.rootIndex === W.value.rootIndex;
|
|
718
|
-
if (K.value) return e.type === "root" ? e.rootIndex === K.value.rootIndex : e.type === "branch" ? e.id === K.value.id : e.type === "nut" && e.branchName === K.value.name && e.rootIndex === K.value.rootIndex;
|
|
719
|
-
if (q.value) return e.type === "root" ? e.id === q.value.id : e.type === "branch" || e.type === "nut" ? e.rootIndex === q.value.rootIndex : !1;
|
|
720
|
-
if (si.value && O.value) {
|
|
721
|
-
if (A.value.level === "root") return e.type === "root" ? ii.value && e.id === ii.value.id : e.type === "branch" || e.type === "nut" ? ii.value && e.rootIndex === ii.value.rootIndex : !1;
|
|
722
|
-
if (A.value.level === "branch") return e.type === "root" ? ii.value && e.rootIndex === ii.value.rootIndex : e.type === "branch" ? ai.value && e.id === ai.value.id : (e.type, !1);
|
|
723
|
-
if (A.value.level === "nut") return e.type === "root" ? ii.value && e.rootIndex === ii.value.rootIndex : e.type === "branch" ? oi.value && e.id === oi.value.id : e.type === "nut" && oi.value && e.branchName === oi.value.name && e.rootIndex === oi.value.rootIndex;
|
|
724
|
-
}
|
|
725
|
-
return !0;
|
|
726
|
-
}
|
|
727
|
-
function Tr(e) {
|
|
728
|
-
J();
|
|
729
|
-
let t = xr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Sr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
730
|
-
t !== -1 && (A.value.rootIndex = t), n !== -1 && (A.value.branchIndex = n), A.value.level = "nut", A.value.nutIndex = 0, Fe(() => {
|
|
731
|
-
W.value = e, K.value = e, G.value = i({
|
|
732
|
-
series: e.breakdown,
|
|
733
|
-
base: 1
|
|
734
|
-
}, e.x2 + 24 + P.value.offsetX, e.y1 + R.value.branchSize / 2, 80, 80), mr("selectNut", e.breakdown), Q();
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
function Er() {
|
|
738
|
-
W.value = null, G.value = null, mr("selectNut", null);
|
|
739
|
-
}
|
|
740
|
-
function Dr(e) {
|
|
741
|
-
let t = xr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Sr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
742
|
-
t !== -1 && (A.value.rootIndex = t), n !== -1 && (A.value.branchIndex = n), A.value.level = "branch", A.value.nutIndex = 0, K.value && K.value.id === e.id ? (K.value = null, J(), mr("selectBranch", null), Q()) : (J(), K.value = e, mr("selectBranch", e), Q());
|
|
743
|
-
}
|
|
744
|
-
function Or(e) {
|
|
745
|
-
let t = xr.value.findIndex((t) => t.id === e.id);
|
|
746
|
-
t !== -1 && (A.value.rootIndex = t), A.value.level = "root", A.value.branchIndex = 0, A.value.nutIndex = 0, q.value && q.value.id === e.id ? (J(), mr("selectRoot", null), Q()) : (J(), q.value = e, mr("selectRoot", e), Q());
|
|
747
|
-
}
|
|
748
|
-
function kr() {
|
|
749
|
-
return z.value.bottom - (W.value.y1 + 180) < 0 ? 0 : z.value.bottom;
|
|
750
|
-
}
|
|
751
|
-
function Ar(e) {
|
|
752
|
-
return e.proportion * 100 > P.value.selected.labels.dataLabels.hideUnderValue;
|
|
753
|
-
}
|
|
754
|
-
Ie(() => {
|
|
755
|
-
jr();
|
|
756
|
-
});
|
|
757
|
-
function jr() {
|
|
758
|
-
de(E.dataset) && te({
|
|
759
|
-
componentName: "VueUiChestnut",
|
|
760
|
-
type: "dataset",
|
|
761
|
-
debug: fr.value
|
|
762
|
-
});
|
|
763
|
-
let e = hr.value * (R.value.branchSize + R.value.gap) + R.value.padding.top + R.value.padding.bottom;
|
|
764
|
-
R.value.height = e;
|
|
765
|
-
}
|
|
766
|
-
let X = d(() => ({
|
|
767
|
-
head: [
|
|
768
|
-
j.value.table.th.translations.rootName,
|
|
769
|
-
j.value.table.th.translations.rootValue,
|
|
770
|
-
j.value.table.th.translations.rootToTotal,
|
|
771
|
-
j.value.table.th.translations.branchName,
|
|
772
|
-
j.value.table.th.translations.branchValue,
|
|
773
|
-
j.value.table.th.translations.branchToRoot,
|
|
774
|
-
j.value.table.th.translations.branchToTotal,
|
|
775
|
-
j.value.table.th.translations.nutName,
|
|
776
|
-
j.value.table.th.translations.nutValue,
|
|
777
|
-
j.value.table.th.translations.nutToBranch,
|
|
778
|
-
j.value.table.th.translations.nutToRoot,
|
|
779
|
-
j.value.table.th.translations.nutToTotal
|
|
780
|
-
],
|
|
781
|
-
body: V.value.flatMap((e, t) => e.branches.flatMap((e, t) => e.breakdown.flatMap((e, t) => e.table)))
|
|
782
|
-
}));
|
|
783
|
-
function Mr(e = null) {
|
|
784
|
-
Fe(() => {
|
|
785
|
-
let t = [
|
|
786
|
-
[F.value.title.text],
|
|
787
|
-
[F.value.title.subtitle.text],
|
|
788
|
-
[""],
|
|
789
|
-
["Grand total", B.value],
|
|
790
|
-
[""]
|
|
791
|
-
], r = X.value.head, i = X.value.body.map((e, t) => [
|
|
792
|
-
X.value.body[t - 1] && X.value.body[t - 1].rootName === e.rootName ? "" : e.rootName,
|
|
793
|
-
X.value.body[t - 1] && X.value.body[t - 1].rootName === e.rootName ? "" : e.rootValue,
|
|
794
|
-
X.value.body[t - 1] && X.value.body[t - 1].rootName === e.rootName ? "" : e.rootToTotal,
|
|
795
|
-
X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? "" : e.branchName,
|
|
796
|
-
X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? "" : e.branchValue,
|
|
797
|
-
X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? "" : e.branchToRoot,
|
|
798
|
-
X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? "" : e.branchToTotal,
|
|
799
|
-
e.nutName,
|
|
800
|
-
e.nutValue,
|
|
801
|
-
e.nutToBranch,
|
|
802
|
-
e.nutToRoot,
|
|
803
|
-
e.nutToTotal
|
|
804
|
-
]), a = t.concat([r]).concat(i), o = n(a);
|
|
805
|
-
e ? e(o) : ae({
|
|
806
|
-
csvContent: o,
|
|
807
|
-
title: F.value.title.text || "vue-ui-chestnut"
|
|
808
|
-
});
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
let Nr = b(!1);
|
|
812
|
-
function Pr(e) {
|
|
813
|
-
Nr.value = e, Gn.value += 1;
|
|
814
|
-
}
|
|
815
|
-
function Fr() {
|
|
816
|
-
lr.value.showTable = !lr.value.showTable;
|
|
817
|
-
}
|
|
818
|
-
let Ir = b(!1);
|
|
819
|
-
function Lr() {
|
|
820
|
-
Ir.value = !Ir.value;
|
|
821
|
-
}
|
|
822
|
-
async function Rr({ scale: e = 2 } = {}) {
|
|
823
|
-
if (!Wn.value) return;
|
|
824
|
-
let { width: t, height: n } = Wn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
825
|
-
domElement: Wn.value,
|
|
826
|
-
base64: !0,
|
|
827
|
-
img: !0,
|
|
828
|
-
scale: e
|
|
829
|
-
});
|
|
830
|
-
return {
|
|
831
|
-
imageUri: i,
|
|
832
|
-
base64: a,
|
|
833
|
-
title: F.value.title.text,
|
|
834
|
-
width: t,
|
|
835
|
-
height: n,
|
|
836
|
-
aspectRatio: r
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
function zr(e) {
|
|
840
|
-
let t = wr(e), n = e.x1, r = e.y1, i = R.value.branchSize, a = t.x + t.r / 2, o = t.y;
|
|
841
|
-
return [
|
|
842
|
-
`M ${n},${r}`,
|
|
843
|
-
`C ${n - 20},${r} ${n - 20},${r} ${a},${o}`,
|
|
844
|
-
`C ${a},${o} ${n - 20},${r + i} ${n},${r + i}`,
|
|
845
|
-
"Z"
|
|
846
|
-
].join(" ");
|
|
847
|
-
}
|
|
848
|
-
let Br = d(() => {
|
|
849
|
-
let e = j.value.table.useDialog && !j.value.table.show, t = lr.value.showTable;
|
|
850
|
-
return {
|
|
851
|
-
component: e ? zn : Fn,
|
|
852
|
-
title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
|
|
853
|
-
props: e ? {
|
|
854
|
-
backgroundColor: j.value.table.th.backgroundColor,
|
|
855
|
-
color: j.value.table.th.color,
|
|
856
|
-
headerColor: j.value.table.th.color,
|
|
857
|
-
headerBg: j.value.table.th.backgroundColor,
|
|
858
|
-
isFullscreen: Nr.value,
|
|
859
|
-
fullscreenParent: Wn.value,
|
|
860
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
861
|
-
isCursorPointer: L.value
|
|
862
|
-
} : {
|
|
863
|
-
hideDetails: !0,
|
|
864
|
-
config: {
|
|
865
|
-
open: t,
|
|
866
|
-
maxHeight: 1e4,
|
|
867
|
-
body: {
|
|
868
|
-
backgroundColor: I.value.backgroundColor,
|
|
869
|
-
color: I.value.color
|
|
870
|
-
},
|
|
871
|
-
head: {
|
|
872
|
-
backgroundColor: I.value.backgroundColor,
|
|
873
|
-
color: I.value.color
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
|
-
});
|
|
879
|
-
Be(() => lr.value.showTable, async (e) => {
|
|
880
|
-
j.value.table.show || (e && j.value.table.useDialog && Kn.value ? (await Fe(), Kn.value.open()) : "close" in Kn.value && Kn.value.close());
|
|
881
|
-
});
|
|
882
|
-
let { isResponsive: Vr } = De(ur, dr);
|
|
883
|
-
function Hr() {
|
|
884
|
-
lr.value.showTable = !1, qn.value && qn.value.setTableIconState(!1);
|
|
885
|
-
}
|
|
886
|
-
let Ur = d(() => V.value.map((e, n) => ({
|
|
887
|
-
...e,
|
|
888
|
-
display: `${e.name}: ${l(M.value.labels.formatter, e.total, t({
|
|
889
|
-
p: F.value.legend.prefix,
|
|
890
|
-
v: e.total,
|
|
891
|
-
s: F.value.legend.suffix,
|
|
892
|
-
r: F.value.legend.roundingValue
|
|
893
|
-
}), { datapoint: e })} (${t({
|
|
894
|
-
v: e.total / B.value * 100,
|
|
895
|
-
s: "%",
|
|
896
|
-
r: F.value.legend.roundingPercentage
|
|
897
|
-
})})`
|
|
898
|
-
}))), Wr = d(() => Ur.value.map((e) => ({
|
|
899
|
-
color: e.color,
|
|
900
|
-
name: e.display,
|
|
901
|
-
shape: "circle"
|
|
902
|
-
}))), Gr = d(() => I.value.backgroundColor), Kr = d(() => ({
|
|
903
|
-
...F.value.legend,
|
|
904
|
-
textAlign: "center",
|
|
905
|
-
show: !0,
|
|
906
|
-
position: "bottom"
|
|
907
|
-
})), qr = d(() => F.value.title), { isCallbackImaging: Jr, isCallbackSvg: Yr, generateSvg: Xr, onGenerateImage: Zr } = be({
|
|
908
|
-
svg: tr,
|
|
909
|
-
title: qr,
|
|
910
|
-
legend: Kr,
|
|
911
|
-
legendItems: Wr,
|
|
912
|
-
backgroundColor: Gr,
|
|
913
|
-
titleEmbedded: !0,
|
|
914
|
-
getSvgCallback: () => j.value.userOptions.callbacks.svg,
|
|
915
|
-
generateImage: or
|
|
916
|
-
});
|
|
917
|
-
async function Qr() {
|
|
918
|
-
if (mr("copyAlt", {
|
|
919
|
-
config: j.value,
|
|
920
|
-
dataset: V.value
|
|
921
|
-
}), !j.value.userOptions.callbacks.altCopy) {
|
|
922
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
923
|
-
return;
|
|
924
|
-
}
|
|
925
|
-
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
926
|
-
config: j.value,
|
|
927
|
-
dataset: V.value
|
|
928
|
-
}));
|
|
929
|
-
}
|
|
930
|
-
function $r(e) {
|
|
931
|
-
if (!e) return "";
|
|
932
|
-
let n = t({
|
|
933
|
-
p: F.value.legend.prefix,
|
|
934
|
-
v: e.total,
|
|
935
|
-
s: F.value.legend.suffix,
|
|
936
|
-
r: F.value.legend.roundingValue
|
|
937
|
-
}), r = t({
|
|
938
|
-
v: e.total / B.value * 100,
|
|
939
|
-
s: "%",
|
|
940
|
-
r: F.value.legend.roundingPercentage
|
|
941
|
-
});
|
|
942
|
-
return `Root ${e.name}. Value ${n}. ${r} of total.`;
|
|
943
|
-
}
|
|
944
|
-
function ei(e) {
|
|
945
|
-
if (!e) return "";
|
|
946
|
-
let n = t({
|
|
947
|
-
p: N.value.labels.dataLabels.prefix,
|
|
948
|
-
v: e.value,
|
|
949
|
-
s: N.value.labels.dataLabels.suffix,
|
|
950
|
-
r: N.value.labels.dataLabels.roundingValue
|
|
951
|
-
}), r = t({
|
|
952
|
-
v: e.proportionToRoot * 100,
|
|
953
|
-
s: "%",
|
|
954
|
-
r: F.value.legend.roundingPercentage
|
|
955
|
-
});
|
|
956
|
-
return `Branch ${e.name}. Root ${e.rootName}. Value ${n}. ${r} of root ${e.rootName}.`;
|
|
957
|
-
}
|
|
958
|
-
function ti(e) {
|
|
959
|
-
if (!e) return "";
|
|
960
|
-
let n = t({
|
|
961
|
-
p: F.value.legend.prefix,
|
|
962
|
-
v: e.value,
|
|
963
|
-
s: F.value.legend.suffix,
|
|
964
|
-
r: P.value.selected.labels.roundingValue
|
|
965
|
-
}), r = t({
|
|
966
|
-
v: e.proportionToBranch * 100,
|
|
967
|
-
s: "%",
|
|
968
|
-
r: P.value.selected.labels.roundingPercentage
|
|
969
|
-
});
|
|
970
|
-
return `Nut ${e.name}. Branch ${e.branchName}. Root ${e.rootName}. Value ${n}. ${r} of branch ${e.branchName}.`;
|
|
971
|
-
}
|
|
972
|
-
let ni = d(() => xr.value[A.value.rootIndex] || null), Z = d(() => (Sr.value[A.value.rootIndex] || [])[A.value.branchIndex] || null), ri = d(() => ((Cr.value[A.value.rootIndex] || [])[A.value.branchIndex] || [])[A.value.nutIndex] || null), ii = d(() => ni.value), ai = d(() => Z.value), oi = d(() => A.value.level === "nut" ? Z.value : null), si = d(() => Jn.value);
|
|
973
|
-
function Q() {
|
|
974
|
-
if (A.value.level === "root") {
|
|
975
|
-
k.value = $r(ni.value);
|
|
976
|
-
return;
|
|
977
|
-
}
|
|
978
|
-
if (A.value.level === "branch") {
|
|
979
|
-
k.value = ei(Z.value);
|
|
980
|
-
return;
|
|
981
|
-
}
|
|
982
|
-
A.value.level === "nut" && (k.value = ti(ri.value));
|
|
983
|
-
}
|
|
984
|
-
function $() {
|
|
985
|
-
A.value = {
|
|
986
|
-
level: "root",
|
|
987
|
-
rootIndex: 0,
|
|
988
|
-
branchIndex: 0,
|
|
989
|
-
nutIndex: 0,
|
|
990
|
-
locked: !1
|
|
991
|
-
}, k.value = "";
|
|
992
|
-
}
|
|
993
|
-
function ci() {
|
|
994
|
-
let e = Sr.value[A.value.rootIndex] || [];
|
|
995
|
-
if (!e.length) {
|
|
996
|
-
A.value.branchIndex = 0;
|
|
997
|
-
return;
|
|
998
|
-
}
|
|
999
|
-
A.value.branchIndex >= e.length && (A.value.branchIndex = 0), A.value.branchIndex < 0 && (A.value.branchIndex = e.length - 1);
|
|
1000
|
-
}
|
|
1001
|
-
function li() {
|
|
1002
|
-
let e = (Cr.value[A.value.rootIndex] || [])[A.value.branchIndex] || [];
|
|
1003
|
-
if (!e.length) {
|
|
1004
|
-
A.value.nutIndex = 0;
|
|
1005
|
-
return;
|
|
1006
|
-
}
|
|
1007
|
-
A.value.nutIndex >= e.length && (A.value.nutIndex = 0), A.value.nutIndex < 0 && (A.value.nutIndex = e.length - 1);
|
|
1008
|
-
}
|
|
1009
|
-
function ui(e) {
|
|
1010
|
-
if (A.value.level === "root") {
|
|
1011
|
-
let t = xr.value.length;
|
|
1012
|
-
if (!t) return;
|
|
1013
|
-
A.value.rootIndex += e, A.value.rootIndex >= t && (A.value.rootIndex = 0), A.value.rootIndex < 0 && (A.value.rootIndex = t - 1), A.value.branchIndex = 0, A.value.nutIndex = 0, Q();
|
|
1014
|
-
return;
|
|
1015
|
-
}
|
|
1016
|
-
if (A.value.level === "branch") {
|
|
1017
|
-
A.value.branchIndex += e, ci(), A.value.nutIndex = 0, Q();
|
|
1018
|
-
return;
|
|
1019
|
-
}
|
|
1020
|
-
A.value.level === "nut" && (A.value.nutIndex += e, li(), Q());
|
|
1021
|
-
}
|
|
1022
|
-
function di(e) {
|
|
1023
|
-
if (e > 0) {
|
|
1024
|
-
if (A.value.level === "root") {
|
|
1025
|
-
if (!(Sr.value[A.value.rootIndex] || []).length) return;
|
|
1026
|
-
A.value.level = "branch", A.value.branchIndex = 0, A.value.nutIndex = 0, Q();
|
|
1027
|
-
return;
|
|
1028
|
-
}
|
|
1029
|
-
if (A.value.level === "branch") {
|
|
1030
|
-
if (!((Cr.value[A.value.rootIndex] || [])[A.value.branchIndex] || []).length) return;
|
|
1031
|
-
A.value.level = "nut", A.value.nutIndex = 0, Z.value ? Tr(Z.value) : Q();
|
|
1032
|
-
return;
|
|
1033
|
-
}
|
|
1034
|
-
return;
|
|
1035
|
-
}
|
|
1036
|
-
if (A.value.level === "nut") {
|
|
1037
|
-
Er(), K.value = null, A.value.level = "branch", A.value.nutIndex = 0, Q();
|
|
1038
|
-
return;
|
|
1039
|
-
}
|
|
1040
|
-
A.value.level === "branch" && (K.value = null, q.value = null, A.value.level = "root", A.value.nutIndex = 0, Q());
|
|
1041
|
-
}
|
|
1042
|
-
function fi() {
|
|
1043
|
-
if (A.value.level === "root" && ni.value) {
|
|
1044
|
-
Or(ni.value), k.value = `${$r(ni.value)} selected.`;
|
|
1045
|
-
return;
|
|
1046
|
-
}
|
|
1047
|
-
if (A.value.level === "branch" && Z.value) {
|
|
1048
|
-
Dr(Z.value), k.value = `${ei(Z.value)} selected.`;
|
|
1049
|
-
return;
|
|
1050
|
-
}
|
|
1051
|
-
A.value.level === "nut" && Z.value && ri.value && (Tr(Z.value), k.value = `${ti(ri.value)} details opened.`);
|
|
1052
|
-
}
|
|
1053
|
-
function pi() {
|
|
1054
|
-
Jn.value = !0, O.value = !1;
|
|
1055
|
-
}
|
|
1056
|
-
function mi() {
|
|
1057
|
-
Jn.value = !1, O.value = !1, k.value = "", !q.value && !K.value && !W.value && $();
|
|
1058
|
-
}
|
|
1059
|
-
function hi(e) {
|
|
1060
|
-
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1061
|
-
if (t || n || r || i || a || o) {
|
|
1062
|
-
if (e.preventDefault(), e.stopPropagation(), Jn.value ||= !0, o) {
|
|
1063
|
-
J(), $(), O.value = !1;
|
|
1064
|
-
return;
|
|
1065
|
-
}
|
|
1066
|
-
if ((t || n || r || i) && (O.value = !0), t) {
|
|
1067
|
-
ui(-1);
|
|
1068
|
-
return;
|
|
1069
|
-
}
|
|
1070
|
-
if (n) {
|
|
1071
|
-
ui(1);
|
|
1072
|
-
return;
|
|
1073
|
-
}
|
|
1074
|
-
if (r) {
|
|
1075
|
-
di(-1);
|
|
1076
|
-
return;
|
|
1077
|
-
}
|
|
1078
|
-
if (i) {
|
|
1079
|
-
di(1);
|
|
1080
|
-
return;
|
|
1081
|
-
}
|
|
1082
|
-
a && fi();
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
let gi = d(() => ({
|
|
1086
|
-
headers: X.value.head,
|
|
1087
|
-
rows: X.value.body.map((e) => [
|
|
1088
|
-
e.rootName,
|
|
1089
|
-
e.rootValue,
|
|
1090
|
-
t({
|
|
1091
|
-
v: e.rootToTotal * 100,
|
|
1092
|
-
s: "%",
|
|
1093
|
-
r: j.value.table.td.roundingPercentage
|
|
1094
|
-
}),
|
|
1095
|
-
e.branchName,
|
|
1096
|
-
e.branchValue,
|
|
1097
|
-
t({
|
|
1098
|
-
v: e.branchToRoot * 100,
|
|
1099
|
-
s: "%",
|
|
1100
|
-
r: j.value.table.td.roundingPercentage
|
|
1101
|
-
}),
|
|
1102
|
-
t({
|
|
1103
|
-
v: e.branchToTotal * 100,
|
|
1104
|
-
s: "%",
|
|
1105
|
-
r: j.value.table.td.roundingPercentage
|
|
1106
|
-
}),
|
|
1107
|
-
e.nutName,
|
|
1108
|
-
e.nutValue,
|
|
1109
|
-
t({
|
|
1110
|
-
v: e.nutToBranch * 100,
|
|
1111
|
-
s: "%",
|
|
1112
|
-
r: j.value.table.td.roundingPercentage
|
|
1113
|
-
}),
|
|
1114
|
-
t({
|
|
1115
|
-
v: e.nutToRoot * 100,
|
|
1116
|
-
s: "%",
|
|
1117
|
-
r: j.value.table.td.roundingPercentage
|
|
1118
|
-
}),
|
|
1119
|
-
t({
|
|
1120
|
-
v: e.nutToTotal * 100,
|
|
1121
|
-
s: "%",
|
|
1122
|
-
r: j.value.table.td.roundingPercentage
|
|
1123
|
-
})
|
|
1124
|
-
])
|
|
1125
|
-
}));
|
|
1126
|
-
return Se({
|
|
1127
|
-
getData: pr,
|
|
1128
|
-
getImage: Rr,
|
|
1129
|
-
generatePdf: ar,
|
|
1130
|
-
generateCsv: Mr,
|
|
1131
|
-
generateImage: or,
|
|
1132
|
-
generateSvg: Xr,
|
|
1133
|
-
toggleTable: Fr,
|
|
1134
|
-
toggleAnnotator: Lr,
|
|
1135
|
-
toggleFullscreen: Pr,
|
|
1136
|
-
copyAlt: Qr
|
|
1137
|
-
}), (e, n) => (y(), p("div", {
|
|
1138
|
-
class: g(`vue-data-ui-component vue-ui-chestnut ${Nr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1139
|
-
ref_key: "chestnutChart",
|
|
1140
|
-
ref: Wn,
|
|
1141
|
-
id: `vue-ui-chestnut_${D.value}`,
|
|
1142
|
-
style: v(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor}`),
|
|
1143
|
-
onMouseenter: n[12] ||= () => w($n)(!0),
|
|
1144
|
-
onMouseleave: n[13] ||= () => w($n)(!1)
|
|
1145
|
-
}, [
|
|
1146
|
-
m("div", {
|
|
1147
|
-
id: `chart-instructions-${D.value}`,
|
|
1148
|
-
class: "sr-only"
|
|
1149
|
-
}, [m("p", null, C(j.value.a11y.translations.keyboardNavigation), 1)], 8, We),
|
|
1150
|
-
m("div", Ge, C(k.value), 1),
|
|
1151
|
-
gi.value?.rows?.length ? (y(), ke(we, {
|
|
1152
|
-
key: 0,
|
|
1153
|
-
uid: D.value,
|
|
1154
|
-
head: gi.value.headers,
|
|
1155
|
-
body: gi.value.rows,
|
|
1156
|
-
notice: j.value.a11y.translations.tableAvailable,
|
|
1157
|
-
caption: j.value.a11y.translations.tableCaption
|
|
1158
|
-
}, null, 8, [
|
|
1159
|
-
"uid",
|
|
1160
|
-
"head",
|
|
1161
|
-
"body",
|
|
1162
|
-
"notice",
|
|
1163
|
-
"caption"
|
|
1164
|
-
])) : f("", !0),
|
|
1165
|
-
j.value.userOptions.buttons.annotator ? (y(), ke(w(In), {
|
|
1166
|
-
key: 1,
|
|
1167
|
-
svgRef: w(tr),
|
|
1168
|
-
backgroundColor: I.value.backgroundColor,
|
|
1169
|
-
color: I.value.color,
|
|
1170
|
-
active: Ir.value,
|
|
1171
|
-
isCursorPointer: L.value,
|
|
1172
|
-
palette: j.value.userOptions.annotatorPalette,
|
|
1173
|
-
onClose: Lr
|
|
1174
|
-
}, {
|
|
1175
|
-
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1176
|
-
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
1177
|
-
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
|
|
1178
|
-
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
|
|
1179
|
-
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
|
|
1180
|
-
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
|
|
1181
|
-
_: 3
|
|
1182
|
-
}, 8, [
|
|
1183
|
-
"svgRef",
|
|
1184
|
-
"backgroundColor",
|
|
1185
|
-
"color",
|
|
1186
|
-
"active",
|
|
1187
|
-
"isCursorPointer",
|
|
1188
|
-
"palette"
|
|
1189
|
-
])) : f("", !0),
|
|
1190
|
-
sr.value ? (y(), p("div", Ke, null, 512)) : f("", !0),
|
|
1191
|
-
j.value.userOptions.show && Un.value && (w(er) || w(Qn)) ? (y(), ke(w(Ln), {
|
|
1192
|
-
ref_key: "userOptionsRef",
|
|
1193
|
-
ref: qn,
|
|
1194
|
-
key: `user_options_${Gn.value}`,
|
|
1195
|
-
backgroundColor: I.value.backgroundColor,
|
|
1196
|
-
color: I.value.color,
|
|
1197
|
-
isImaging: w(ir),
|
|
1198
|
-
isPrinting: w(rr),
|
|
1199
|
-
uid: D.value,
|
|
1200
|
-
hasPdf: j.value.userOptions.buttons.pdf,
|
|
1201
|
-
hasImg: j.value.userOptions.buttons.img,
|
|
1202
|
-
hasSvg: j.value.userOptions.buttons.svg,
|
|
1203
|
-
hasXls: j.value.userOptions.buttons.csv,
|
|
1204
|
-
hasTable: j.value.userOptions.buttons.table,
|
|
1205
|
-
hasFullscreen: j.value.userOptions.buttons.fullscreen,
|
|
1206
|
-
hasAltCopy: j.value.userOptions.buttons.altCopy,
|
|
1207
|
-
isFullscreen: Nr.value,
|
|
1208
|
-
titles: { ...j.value.userOptions.buttonTitles },
|
|
1209
|
-
chartElement: Wn.value,
|
|
1210
|
-
position: j.value.userOptions.position,
|
|
1211
|
-
hasAnnotator: j.value.userOptions.buttons.annotator,
|
|
1212
|
-
isAnnotation: Ir.value,
|
|
1213
|
-
callbacks: j.value.userOptions.callbacks,
|
|
1214
|
-
printScale: j.value.userOptions.print.scale,
|
|
1215
|
-
tableDialog: j.value.table.useDialog,
|
|
1216
|
-
isCursorPointer: L.value,
|
|
1217
|
-
onToggleFullscreen: Pr,
|
|
1218
|
-
onGeneratePdf: w(ar),
|
|
1219
|
-
onGenerateCsv: Mr,
|
|
1220
|
-
onGenerateImage: w(Zr),
|
|
1221
|
-
onGenerateSvg: w(Xr),
|
|
1222
|
-
onToggleTable: Fr,
|
|
1223
|
-
onToggleAnnotator: Lr,
|
|
1224
|
-
onCopyAlt: Qr,
|
|
1225
|
-
style: v({ visibility: w(er) ? w(Qn) ? "visible" : "hidden" : "visible" })
|
|
1226
|
-
}, Ae({ _: 2 }, [
|
|
1227
|
-
e.$slots.menuIcon ? {
|
|
1228
|
-
name: "menuIcon",
|
|
1229
|
-
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
|
|
1230
|
-
isOpen: t,
|
|
1231
|
-
color: n
|
|
1232
|
-
})), void 0, !0)]),
|
|
1233
|
-
key: "0"
|
|
1234
|
-
} : void 0,
|
|
1235
|
-
e.$slots.optionPdf ? {
|
|
1236
|
-
name: "optionPdf",
|
|
1237
|
-
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1238
|
-
key: "1"
|
|
1239
|
-
} : void 0,
|
|
1240
|
-
e.$slots.optionCsv ? {
|
|
1241
|
-
name: "optionCsv",
|
|
1242
|
-
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1243
|
-
key: "2"
|
|
1244
|
-
} : void 0,
|
|
1245
|
-
e.$slots.optionImg ? {
|
|
1246
|
-
name: "optionImg",
|
|
1247
|
-
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1248
|
-
key: "3"
|
|
1249
|
-
} : void 0,
|
|
1250
|
-
e.$slots.optionSvg ? {
|
|
1251
|
-
name: "optionSvg",
|
|
1252
|
-
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1253
|
-
key: "4"
|
|
1254
|
-
} : void 0,
|
|
1255
|
-
e.$slots.optionTable ? {
|
|
1256
|
-
name: "optionTable",
|
|
1257
|
-
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1258
|
-
key: "5"
|
|
1259
|
-
} : void 0,
|
|
1260
|
-
e.$slots.optionFullscreen ? {
|
|
1261
|
-
name: "optionFullscreen",
|
|
1262
|
-
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
|
|
1263
|
-
toggleFullscreen: t,
|
|
1264
|
-
isFullscreen: n
|
|
1265
|
-
})), void 0, !0)]),
|
|
1266
|
-
key: "6"
|
|
1267
|
-
} : void 0,
|
|
1268
|
-
e.$slots.optionAnnotator ? {
|
|
1269
|
-
name: "optionAnnotator",
|
|
1270
|
-
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
|
|
1271
|
-
toggleAnnotator: t,
|
|
1272
|
-
isAnnotator: n
|
|
1273
|
-
})), void 0, !0)]),
|
|
1274
|
-
key: "7"
|
|
1275
|
-
} : void 0,
|
|
1276
|
-
e.$slots.optionAltCopy ? {
|
|
1277
|
-
name: "optionAltCopy",
|
|
1278
|
-
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
1279
|
-
key: "8"
|
|
1280
|
-
} : void 0,
|
|
1281
|
-
e.$slots["custom-menu-before"] ? {
|
|
1282
|
-
name: "custom-menu-before",
|
|
1283
|
-
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1284
|
-
key: "9"
|
|
1285
|
-
} : void 0,
|
|
1286
|
-
e.$slots["custom-menu-after"] ? {
|
|
1287
|
-
name: "custom-menu-after",
|
|
1288
|
-
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1289
|
-
key: "10"
|
|
1290
|
-
} : void 0
|
|
1291
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : f("", !0),
|
|
1292
|
-
m("div", qe, [R.value.height > 0 ? (y(), p("svg", {
|
|
1293
|
-
key: 0,
|
|
1294
|
-
ref_key: "svgRef",
|
|
1295
|
-
ref: tr,
|
|
1296
|
-
xmlns: w(ce),
|
|
1297
|
-
"aria-describedby": `chart-instructions-${D.value}`,
|
|
1298
|
-
class: g({
|
|
1299
|
-
"vue-data-ui-fullscreen--on": Nr.value,
|
|
1300
|
-
"vue-data-ui-fulscreen--off": !Nr.value
|
|
1301
|
-
}),
|
|
1302
|
-
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
1303
|
-
style: v(`overflow:visible;background:transparent;color:${I.value.color}`),
|
|
1304
|
-
tabindex: "0",
|
|
1305
|
-
onFocus: pi,
|
|
1306
|
-
onBlur: mi,
|
|
1307
|
-
onKeydown: hi
|
|
1308
|
-
}, [
|
|
1309
|
-
Me(w(Rn)),
|
|
1310
|
-
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
1311
|
-
key: 0,
|
|
1312
|
-
x: 0,
|
|
1313
|
-
y: 0,
|
|
1314
|
-
width: R.value.width <= 0 ? 10 : R.value.width,
|
|
1315
|
-
height: R.value.height <= 0 ? 10 : R.value.height,
|
|
1316
|
-
style: { pointerEvents: "none" }
|
|
1317
|
-
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : f("", !0),
|
|
1318
|
-
W.value ? f("", !0) : (y(), p("g", Xe, [F.value.title.text ? (y(), p("text", {
|
|
1319
|
-
key: 0,
|
|
1320
|
-
"text-anchor": "middle",
|
|
1321
|
-
fill: F.value.title.color,
|
|
1322
|
-
"font-weight": F.value.title.bold ? "bold" : "normal",
|
|
1323
|
-
"font-size": F.value.title.fontSize,
|
|
1324
|
-
x: R.value.width / 2,
|
|
1325
|
-
y: 12 + F.value.title.fontSize + F.value.title.offsetY,
|
|
1326
|
-
onClick: n[0] ||= () => {
|
|
1327
|
-
J(), $(), O.value = !1;
|
|
1328
|
-
}
|
|
1329
|
-
}, C(F.value.title.text), 9, Ze)) : f("", !0), F.value.title.subtitle.text ? (y(), p("text", {
|
|
1330
|
-
key: 1,
|
|
1331
|
-
"text-anchor": "middle",
|
|
1332
|
-
fill: F.value.title.subtitle.color,
|
|
1333
|
-
"font-weight": F.value.title.subtitle.bold ? "bold" : "normal",
|
|
1334
|
-
"font-size": F.value.title.subtitle.fontSize,
|
|
1335
|
-
x: R.value.width / 2,
|
|
1336
|
-
y: 48 + F.value.title.subtitle.fontSize + F.value.title.subtitle.offsetY,
|
|
1337
|
-
onClick: n[1] ||= () => {
|
|
1338
|
-
J(), $(), O.value = !1;
|
|
1339
|
-
}
|
|
1340
|
-
}, C(F.value.title.subtitle.text), 9, Qe)) : f("", !0)])),
|
|
1341
|
-
m("defs", null, [
|
|
1342
|
-
(y(!0), p(u, null, x(V.value, (e, t) => (y(), ke(Ce, {
|
|
1343
|
-
t: "radial",
|
|
1344
|
-
cx: "50%",
|
|
1345
|
-
cy: "50%",
|
|
1346
|
-
r: "50%",
|
|
1347
|
-
fx: "50%",
|
|
1348
|
-
fy: "50%",
|
|
1349
|
-
id: `root_gradient_${D.value}_${e.rootIndex}`,
|
|
1350
|
-
key: `root_gradient_${D.value}_${e.rootIndex}`,
|
|
1351
|
-
stops: [[
|
|
1352
|
-
"0%",
|
|
1353
|
-
w(a)(w(ee)(e.color, .05), 100 - M.value.gradientIntensity),
|
|
1354
|
-
1
|
|
1355
|
-
], [
|
|
1356
|
-
"100%",
|
|
1357
|
-
e.color,
|
|
1358
|
-
1
|
|
1359
|
-
]]
|
|
1360
|
-
}, null, 8, ["id", "stops"]))), 128)),
|
|
1361
|
-
(y(!0), p(u, null, x(V.value, (e) => (y(), ke(Ce, {
|
|
1362
|
-
t: "linear",
|
|
1363
|
-
x1: "0%",
|
|
1364
|
-
y1: "0%",
|
|
1365
|
-
x2: "100%",
|
|
1366
|
-
y2: "0%",
|
|
1367
|
-
id: `branch_gradient_${D.value}_${e.rootIndex}`,
|
|
1368
|
-
key: `branch_gradient_${D.value}_${e.rootIndex}`,
|
|
1369
|
-
stops: [[
|
|
1370
|
-
"0%",
|
|
1371
|
-
e.color,
|
|
1372
|
-
1
|
|
1373
|
-
], [
|
|
1374
|
-
"100%",
|
|
1375
|
-
w(a)(w(ee)(e.color, .02), 100 - N.value.gradientIntensity),
|
|
1376
|
-
1
|
|
1377
|
-
]]
|
|
1378
|
-
}, null, 8, ["id", "stops"]))), 128)),
|
|
1379
|
-
Me(Ce, {
|
|
1380
|
-
t: "radial",
|
|
1381
|
-
cx: "50%",
|
|
1382
|
-
cy: "50%",
|
|
1383
|
-
r: "50%",
|
|
1384
|
-
fx: "50%",
|
|
1385
|
-
fy: "50%",
|
|
1386
|
-
id: `nutpick_${D.value}`,
|
|
1387
|
-
stops: [
|
|
1388
|
-
[
|
|
1389
|
-
"0%",
|
|
1390
|
-
w(a)("#FFFFFF", 0),
|
|
1391
|
-
0
|
|
1392
|
-
],
|
|
1393
|
-
[
|
|
1394
|
-
"80%",
|
|
1395
|
-
w(a)("#FFFFFF", P.value.selected.gradientIntensity),
|
|
1396
|
-
1
|
|
1397
|
-
],
|
|
1398
|
-
[
|
|
1399
|
-
"100%",
|
|
1400
|
-
w(a)("#FFFFFF", 0),
|
|
1401
|
-
0
|
|
1402
|
-
]
|
|
1403
|
-
]
|
|
1404
|
-
}, null, 8, ["id", "stops"]),
|
|
1405
|
-
Me(Ce, {
|
|
1406
|
-
t: "radial",
|
|
1407
|
-
cx: "50%",
|
|
1408
|
-
cy: "50%",
|
|
1409
|
-
r: "50%",
|
|
1410
|
-
fx: "50%",
|
|
1411
|
-
fy: "50%",
|
|
1412
|
-
id: `nut_${D.value}`,
|
|
1413
|
-
stops: [
|
|
1414
|
-
[
|
|
1415
|
-
"0%",
|
|
1416
|
-
w(a)("#FFFFFF", 0),
|
|
1417
|
-
0
|
|
1418
|
-
],
|
|
1419
|
-
[
|
|
1420
|
-
"80%",
|
|
1421
|
-
w(a)("#FFFFFF", P.value.gradientIntensity),
|
|
1422
|
-
1
|
|
1423
|
-
],
|
|
1424
|
-
[
|
|
1425
|
-
"100%",
|
|
1426
|
-
w(a)("#FFFFFF", 0),
|
|
1427
|
-
0
|
|
1428
|
-
]
|
|
1429
|
-
]
|
|
1430
|
-
}, null, 8, ["id", "stops"]),
|
|
1431
|
-
Me(Ce, {
|
|
1432
|
-
t: "radial",
|
|
1433
|
-
cx: "50%",
|
|
1434
|
-
cy: "50%",
|
|
1435
|
-
r: "50%",
|
|
1436
|
-
fx: "50%",
|
|
1437
|
-
fy: "50%",
|
|
1438
|
-
id: `nut_underlayer_${D.value}`,
|
|
1439
|
-
stops: [
|
|
1440
|
-
[
|
|
1441
|
-
"0%",
|
|
1442
|
-
w(a)(I.value.backgroundColor, 100),
|
|
1443
|
-
1
|
|
1444
|
-
],
|
|
1445
|
-
[
|
|
1446
|
-
"80%",
|
|
1447
|
-
w(a)(I.value.backgroundColor, 60),
|
|
1448
|
-
1
|
|
1449
|
-
],
|
|
1450
|
-
[
|
|
1451
|
-
"100%",
|
|
1452
|
-
w(a)(I.value.backgroundColor, 0),
|
|
1453
|
-
1
|
|
1454
|
-
]
|
|
1455
|
-
]
|
|
1456
|
-
}, null, 8, ["id", "stops"])
|
|
1457
|
-
]),
|
|
1458
|
-
F.value.grandTotal.show ? (y(), p("g", $e, [m("text", {
|
|
1459
|
-
x: z.value.seedX,
|
|
1460
|
-
y: 32 + F.value.grandTotal.offsetY,
|
|
1461
|
-
"font-size": F.value.grandTotal.fontSize,
|
|
1462
|
-
"font-weight": F.value.grandTotal.bold ? "bold" : "normal",
|
|
1463
|
-
fill: F.value.grandTotal.color,
|
|
1464
|
-
"text-anchor": "middle",
|
|
1465
|
-
onClick: n[2] ||= () => {
|
|
1466
|
-
J(), $(), O.value = !1;
|
|
1467
|
-
}
|
|
1468
|
-
}, C(F.value.grandTotal.text), 9, et), m("text", {
|
|
1469
|
-
x: z.value.seedX,
|
|
1470
|
-
y: 38 + F.value.grandTotal.fontSize + F.value.grandTotal.offsetY,
|
|
1471
|
-
"font-size": F.value.grandTotal.fontSize,
|
|
1472
|
-
"font-weight": F.value.grandTotal.bold ? "bold" : "normal",
|
|
1473
|
-
fill: F.value.grandTotal.color,
|
|
1474
|
-
"text-anchor": "middle",
|
|
1475
|
-
onClick: n[3] ||= () => {
|
|
1476
|
-
J(), $(), O.value = !1;
|
|
1477
|
-
}
|
|
1478
|
-
}, C(w(l)(F.value.grandTotal.formatter, B.value, w(t)({
|
|
1479
|
-
p: F.value.grandTotal.prefix,
|
|
1480
|
-
v: B.value,
|
|
1481
|
-
s: F.value.grandTotal.suffix,
|
|
1482
|
-
r: F.value.grandTotal.roundingValue
|
|
1483
|
-
}))), 9, tt)])) : f("", !0),
|
|
1484
|
-
(y(!0), p(u, null, x(U.value, (e) => (y(), p("g", null, [m("defs", null, [Me(Ce, {
|
|
1485
|
-
t: "linear",
|
|
1486
|
-
id: `link_grad_${e.id}`,
|
|
1487
|
-
stops: [[
|
|
1488
|
-
"0%",
|
|
1489
|
-
e.color,
|
|
1490
|
-
1
|
|
1491
|
-
], [
|
|
1492
|
-
"100%",
|
|
1493
|
-
w(a)(e.color, F.value.links.opacity),
|
|
1494
|
-
1
|
|
1495
|
-
]]
|
|
1496
|
-
}, null, 8, ["id", "stops"])]), m("path", {
|
|
1497
|
-
d: zr(e),
|
|
1498
|
-
stroke: w(a)(e.color, F.value.links.opacity),
|
|
1499
|
-
fill: `url(#link_grad_${e.id})`,
|
|
1500
|
-
"stroke-linecap": "round",
|
|
1501
|
-
"stroke-linejoin": "round",
|
|
1502
|
-
style: v(`opacity:${+!!Y(e)}`),
|
|
1503
|
-
onClick: n[4] ||= () => {
|
|
1504
|
-
J(), $(), O.value = !1;
|
|
1505
|
-
}
|
|
1506
|
-
}, null, 12, nt)]))), 256)),
|
|
1507
|
-
(y(!0), p(u, null, x(H.value, (e) => (y(), p("circle", {
|
|
1508
|
-
cx: e.x,
|
|
1509
|
-
cy: e.y,
|
|
1510
|
-
r: e.r,
|
|
1511
|
-
fill: M.value.underlayerColor,
|
|
1512
|
-
stroke: "none",
|
|
1513
|
-
style: v(`cursor:${L.value ? "pointer" : "default"}; opacity:${Y(e) ? 1 : .05}`)
|
|
1514
|
-
}, null, 12, rt))), 256)),
|
|
1515
|
-
(y(!0), p(u, null, x(H.value, (e, t) => (y(), p("circle", {
|
|
1516
|
-
"aria-label": $r(e),
|
|
1517
|
-
cx: e.x,
|
|
1518
|
-
cy: e.y,
|
|
1519
|
-
r: e.r,
|
|
1520
|
-
fill: M.value.useGradient ? `url(#root_gradient_${D.value}_${e.rootIndex})` : e.color,
|
|
1521
|
-
stroke: M.value.stroke,
|
|
1522
|
-
"stroke-width": M.value.strokeWidth,
|
|
1523
|
-
style: v(`cursor:${L.value ? "pointer" : "default"}; opacity:${Y(e) ? 1 : .05}`),
|
|
1524
|
-
onClick: (t) => Or(e)
|
|
1525
|
-
}, null, 12, it))), 256)),
|
|
1526
|
-
M.value.labels.show ? (y(), p("g", at, [(y(!0), p(u, null, x(H.value, (e, n) => (y(), p("text", {
|
|
1527
|
-
x: e.x,
|
|
1528
|
-
y: e.y + M.value.labels.fontSize / 2.6,
|
|
1529
|
-
"text-anchor": "middle",
|
|
1530
|
-
"font-size": M.value.labels.fontSize,
|
|
1531
|
-
fill: M.value.labels.adaptColorToBackground ? w(se)(e.color) : M.value.labels.color,
|
|
1532
|
-
"font-weight": "bold",
|
|
1533
|
-
style: v(`cursor:${L.value ? "pointer" : "default"}; opacity:${Y(e) ? 1 : .05}`),
|
|
1534
|
-
onClick: (t) => Or(e)
|
|
1535
|
-
}, C(w(l)(M.value.labels.formatter, e.total, w(t)({
|
|
1536
|
-
p: M.value.labels.prefix,
|
|
1537
|
-
v: e.total,
|
|
1538
|
-
s: M.value.labels.suffix,
|
|
1539
|
-
r: M.value.labels.roundingValue
|
|
1540
|
-
}), { datapoint: e })), 13, ot))), 256)), (y(!0), p(u, null, x(H.value, (e) => (y(), p("g", null, [W.value && e.rootIndex === W.value.rootIndex || K.value && e.rootIndex === K.value.rootIndex || q.value && e.rootIndex === q.value.rootIndex ? (y(), p("g", st, [m("text", {
|
|
1541
|
-
x: e.x,
|
|
1542
|
-
y: e.y + e.r + 24,
|
|
1543
|
-
"text-anchor": "middle",
|
|
1544
|
-
fill: M.value.labels.name.color,
|
|
1545
|
-
"font-size": M.value.labels.name.fontSize,
|
|
1546
|
-
"font-weight": M.value.labels.name.bold ? "bold" : "normal",
|
|
1547
|
-
onClick: n[5] ||= () => {
|
|
1548
|
-
J(), $(), O.value = !1;
|
|
1549
|
-
}
|
|
1550
|
-
}, C(e.name), 9, ct)])) : f("", !0)]))), 256))])) : f("", !0),
|
|
1551
|
-
(y(!0), p(u, null, x(U.value, (e) => (y(), p("rect", {
|
|
1552
|
-
x: e.x1,
|
|
1553
|
-
y: e.y1,
|
|
1554
|
-
height: R.value.branchSize,
|
|
1555
|
-
width: e.x2 - e.x1,
|
|
1556
|
-
fill: N.value.underlayerColor,
|
|
1557
|
-
rx: N.value.borderRadius,
|
|
1558
|
-
stroke: "none",
|
|
1559
|
-
style: v(`opacity:${Y(e) ? 1 : .05}`),
|
|
1560
|
-
onClick: (t) => Dr(e)
|
|
1561
|
-
}, null, 12, lt))), 256)),
|
|
1562
|
-
(y(!0), p(u, null, x(U.value, (e, t) => (y(), p("rect", {
|
|
1563
|
-
"aria-label": ei(e),
|
|
1564
|
-
x: e.x1,
|
|
1565
|
-
y: e.y1,
|
|
1566
|
-
height: R.value.branchSize,
|
|
1567
|
-
width: e.x2 - e.x1,
|
|
1568
|
-
fill: N.value.useGradient ? `url(#branch_gradient_${D.value}_${e.rootIndex})` : e.color,
|
|
1569
|
-
rx: N.value.borderRadius,
|
|
1570
|
-
stroke: N.value.stroke,
|
|
1571
|
-
"stroke-width": N.value.strokeWidth,
|
|
1572
|
-
style: v(`cursor:${L.value ? "pointer" : "default"}; opacity:${Y(e) ? 1 : .05}`),
|
|
1573
|
-
onClick: (t) => Dr(e)
|
|
1574
|
-
}, null, 12, ut))), 256)),
|
|
1575
|
-
N.value.labels.dataLabels.show ? (y(), p("g", dt, [(y(!0), p(u, null, x(U.value, (e) => (y(), p("g", null, [e.proportionToRoot * 100 > N.value.labels.dataLabels.hideUnderValue ? (y(), p("text", {
|
|
1576
|
-
key: 0,
|
|
1577
|
-
x: e.x1 + 6,
|
|
1578
|
-
y: e.y1 + R.value.branchSize / 1.5,
|
|
1579
|
-
"text-anchor": "start",
|
|
1580
|
-
fill: w(se)(e.color),
|
|
1581
|
-
"font-size": N.value.labels.dataLabels.fontSize,
|
|
1582
|
-
"font-weight": "bold",
|
|
1583
|
-
style: v(`cursor:${L.value ? "pointer" : "default"}; opacity:${Y(e) ? 1 : .05}`),
|
|
1584
|
-
onClick: (t) => Dr(e)
|
|
1585
|
-
}, C(w(l)(N.value.labels.dataLabels.formatter, e.value, w(t)({
|
|
1586
|
-
p: F.value.branches.labels.dataLabels.prefix,
|
|
1587
|
-
v: e.value,
|
|
1588
|
-
s: F.value.branches.labels.dataLabels.suffix,
|
|
1589
|
-
r: F.value.branches.labels.dataLabels.roundingValue
|
|
1590
|
-
}), { datapoint: e })), 13, ft)) : f("", !0)]))), 256))])) : f("", !0),
|
|
1591
|
-
(y(!0), p(u, null, x(U.value, (e, t) => (y(), p("g", null, [(y(!0), p(u, null, x(w(i)({
|
|
1592
|
-
series: e.breakdown,
|
|
1593
|
-
base: 1
|
|
1594
|
-
}, e.x2 + 24 + P.value.offsetX, e.y1 + R.value.branchSize / 2, R.value.branchSize / 3, R.value.branchSize / 3), (t, n) => (y(), p("path", {
|
|
1595
|
-
d: t.path,
|
|
1596
|
-
stroke: t.color,
|
|
1597
|
-
"stroke-width": 10,
|
|
1598
|
-
fill: "none",
|
|
1599
|
-
style: v(`opacity:${Y(e) ? 1 : .1}`)
|
|
1600
|
-
}, null, 12, pt))), 256)), m("circle", {
|
|
1601
|
-
"aria-label": `Open details for branch ${e.name} in root ${e.rootName}`,
|
|
1602
|
-
fill: P.value.useGradient ? `url(#nut_${D.value})` : "transparent",
|
|
1603
|
-
cx: e.x2 + 24 + P.value.offsetX,
|
|
1604
|
-
cy: e.y1 + R.value.branchSize / 2,
|
|
1605
|
-
r: R.value.branchSize / 2 + 2,
|
|
1606
|
-
onClick: (t) => Tr(e),
|
|
1607
|
-
style: v(`cursor:${L.value ? "pointer" : "default"};opacity:${Y(e) ? 1 : .1}`)
|
|
1608
|
-
}, null, 12, mt)]))), 256)),
|
|
1609
|
-
N.value.labels.show && !K.value ? (y(), p("g", ht, [(y(!0), p(u, null, x(U.value, (e) => (y(), p("text", {
|
|
1610
|
-
x: e.x2 + R.value.branchSize + 24 + P.value.offsetX,
|
|
1611
|
-
y: e.y1 + R.value.branchSize / 2 + 5,
|
|
1612
|
-
"font-size": N.value.labels.fontSize,
|
|
1613
|
-
"font-weight": N.value.labels.bold ? "bold" : "normal",
|
|
1614
|
-
fill: N.value.labels.color,
|
|
1615
|
-
"text-anchor": "start",
|
|
1616
|
-
style: v(`opacity:${Y(e) ? 1 : .1}`)
|
|
1617
|
-
}, C(e.name), 13, gt))), 256))])) : f("", !0),
|
|
1618
|
-
m("line", {
|
|
1619
|
-
x1: 256 + R.value.padding.left,
|
|
1620
|
-
x2: 256 + R.value.padding.left,
|
|
1621
|
-
y1: z.value.top,
|
|
1622
|
-
y2: z.value.bottom,
|
|
1623
|
-
stroke: F.value.verticalSeparator.stroke,
|
|
1624
|
-
"stroke-width": F.value.verticalSeparator.strokeWidth
|
|
1625
|
-
}, null, 8, _t),
|
|
1626
|
-
!W.value && !K.value ? (y(), p("foreignObject", {
|
|
1627
|
-
key: 6,
|
|
1628
|
-
x: 0,
|
|
1629
|
-
y: z.value.bottom,
|
|
1630
|
-
height: R.value.height - z.value.bottom,
|
|
1631
|
-
width: R.value.width,
|
|
1632
|
-
style: { overflow: "visible" },
|
|
1633
|
-
"data-no-svg-export": "",
|
|
1634
|
-
onClick: n[6] ||= () => {
|
|
1635
|
-
J(), $(), O.value = !1;
|
|
1636
|
-
}
|
|
1637
|
-
}, [m("div", yt, [m("div", bt, [(y(!0), p(u, null, x(H.value, (e) => (y(), p("div", { style: v(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${F.value.legend.fontSize}px;`) }, [(y(), p("svg", xt, [m("circle", {
|
|
1638
|
-
cx: "10",
|
|
1639
|
-
cy: "10",
|
|
1640
|
-
r: "10",
|
|
1641
|
-
fill: e.color,
|
|
1642
|
-
stroke: "none"
|
|
1643
|
-
}, null, 8, St)])), w(Xn) ? f("", !0) : (y(), p(u, { key: 0 }, [
|
|
1644
|
-
m("span", null, C(e.name) + ":", 1),
|
|
1645
|
-
m("b", null, C(w(l)(F.value.roots.labels.formatter, e.total, w(t)({
|
|
1646
|
-
p: I.value.layout.legend.prefix,
|
|
1647
|
-
v: e.total,
|
|
1648
|
-
s: I.value.layout.legend.suffix,
|
|
1649
|
-
r: I.value.layout.legend.roundingValue
|
|
1650
|
-
}), { datapoint: e })), 1),
|
|
1651
|
-
je(" (" + C(w(t)({
|
|
1652
|
-
v: e.total / B.value * 100,
|
|
1653
|
-
s: "%",
|
|
1654
|
-
r: F.value.legend.roundingPercentage
|
|
1655
|
-
})) + ") ", 1)
|
|
1656
|
-
], 64))], 4))), 256))])])], 8, vt)) : f("", !0),
|
|
1657
|
-
W.value && G.value ? (y(), p("g", Ct, [
|
|
1658
|
-
(y(), p("foreignObject", {
|
|
1659
|
-
x: 0,
|
|
1660
|
-
y: kr(),
|
|
1661
|
-
height: R.value.height - z.value.bottom,
|
|
1662
|
-
width: R.value.width,
|
|
1663
|
-
style: { overflow: "visible" },
|
|
1664
|
-
onClick: n[7] ||= () => {
|
|
1665
|
-
J(), $(), O.value = !1;
|
|
1666
|
-
}
|
|
1667
|
-
}, [m("div", Tt, [m("b", null, C(W.value.name), 1), m("div", Et, [(y(!0), p(u, null, x(W.value.breakdown, (e, t) => (y(), p("div", { style: v(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${F.value.legend.fontSize}px;`) }, [(y(), p("svg", Dt, [m("circle", {
|
|
1668
|
-
cx: "10",
|
|
1669
|
-
cy: "10",
|
|
1670
|
-
r: "10",
|
|
1671
|
-
fill: e.color,
|
|
1672
|
-
stroke: "none"
|
|
1673
|
-
}, null, 8, Ot)])), m("span", null, [
|
|
1674
|
-
je(C(e.name) + ": ", 1),
|
|
1675
|
-
m("b", null, C(F.value.legend.prefix) + " " + C(e.value.toFixed(I.value.layout.nuts.selected.labels.roundingValue)) + " " + C(F.value.legend.suffix), 1),
|
|
1676
|
-
je(" (" + C((e.proportionToBranch * 100).toFixed(F.value.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
1677
|
-
])], 4))), 256))])])], 8, wt)),
|
|
1678
|
-
m("circle", {
|
|
1679
|
-
cx: W.value.x2 + 24 + P.value.offsetX,
|
|
1680
|
-
cy: W.value.y1 + R.value.branchSize / 2,
|
|
1681
|
-
r: 256,
|
|
1682
|
-
fill: `url(#nut_underlayer_${D.value})`,
|
|
1683
|
-
onClick: Er,
|
|
1684
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1685
|
-
}, null, 10, kt),
|
|
1686
|
-
(y(!0), p(u, null, x(G.value, (e) => (y(), p("g", null, [Ar(e) ? (y(), p("path", {
|
|
1687
|
-
key: 0,
|
|
1688
|
-
d: w(re)(e, {
|
|
1689
|
-
x: W.value.x2 + 24 + P.value.offsetX,
|
|
1690
|
-
y: W.value.y1 + R.value.branchSize / 2
|
|
1691
|
-
}, 16, 16, !1, !1, 64),
|
|
1692
|
-
stroke: e.color,
|
|
1693
|
-
"stroke-width": "1",
|
|
1694
|
-
"stroke-linecap": "round",
|
|
1695
|
-
"stroke-linejoin": "round",
|
|
1696
|
-
fill: "none",
|
|
1697
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1698
|
-
}, null, 10, At)) : f("", !0)]))), 256)),
|
|
1699
|
-
m("circle", {
|
|
1700
|
-
cx: W.value.x2 + 24 + P.value.offsetX,
|
|
1701
|
-
cy: W.value.y1 + R.value.branchSize / 2,
|
|
1702
|
-
r: 118,
|
|
1703
|
-
fill: I.value.backgroundColor,
|
|
1704
|
-
onClick: Er,
|
|
1705
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1706
|
-
}, null, 10, jt),
|
|
1707
|
-
(y(!0), p(u, null, x(G.value, (e) => (y(), p("path", {
|
|
1708
|
-
d: e.path,
|
|
1709
|
-
stroke: e.color,
|
|
1710
|
-
"stroke-width": 64,
|
|
1711
|
-
fill: "none",
|
|
1712
|
-
onClick: Er,
|
|
1713
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1714
|
-
}, null, 10, Mt))), 256)),
|
|
1715
|
-
m("circle", {
|
|
1716
|
-
cx: W.value.x2 + 24 + P.value.offsetX,
|
|
1717
|
-
cy: W.value.y1 + R.value.branchSize / 2,
|
|
1718
|
-
r: 110,
|
|
1719
|
-
fill: `url(#nutpick_${D.value})`,
|
|
1720
|
-
onClick: Er,
|
|
1721
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1722
|
-
}, null, 10, Nt),
|
|
1723
|
-
m("circle", {
|
|
1724
|
-
cx: W.value.x2 + 24 + P.value.offsetX,
|
|
1725
|
-
cy: W.value.y1 + R.value.branchSize / 2,
|
|
1726
|
-
r: 64,
|
|
1727
|
-
fill: I.value.backgroundColor,
|
|
1728
|
-
onClick: Er,
|
|
1729
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1730
|
-
}, null, 10, Pt),
|
|
1731
|
-
m("text", {
|
|
1732
|
-
x: W.value.x2 + 24 + P.value.offsetX,
|
|
1733
|
-
y: W.value.y1 + 8,
|
|
1734
|
-
fill: P.value.selected.labels.core.total.color,
|
|
1735
|
-
"font-size": P.value.selected.labels.core.total.fontSize,
|
|
1736
|
-
"font-weight": P.value.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1737
|
-
"text-anchor": "middle",
|
|
1738
|
-
onClick: Er,
|
|
1739
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1740
|
-
}, C(j.value.translations.total), 11, Ft),
|
|
1741
|
-
m("text", {
|
|
1742
|
-
x: W.value.x2 + 24 + P.value.offsetX,
|
|
1743
|
-
y: W.value.y1 + 36,
|
|
1744
|
-
fill: P.value.selected.labels.core.value.color,
|
|
1745
|
-
"font-size": P.value.selected.labels.core.value.fontSize,
|
|
1746
|
-
"font-weight": P.value.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1747
|
-
"text-anchor": "middle",
|
|
1748
|
-
onClick: Er,
|
|
1749
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1750
|
-
}, C(w(l)(P.value.selected.labels.dataLabels.formatter, W.value.value, w(t)({
|
|
1751
|
-
p: P.value.selected.labels.core.value.prefix,
|
|
1752
|
-
v: W.value.value,
|
|
1753
|
-
s: P.value.selected.labels.core.value.suffix,
|
|
1754
|
-
r: P.value.selected.roundingValue
|
|
1755
|
-
}), { datapoint: W.value })), 11, It),
|
|
1756
|
-
(y(!0), p(u, null, x(G.value, (e, t) => (y(), p("g", null, [Ar(e) ? (y(), p("text", {
|
|
1757
|
-
key: 0,
|
|
1758
|
-
x: w(c)(e).x,
|
|
1759
|
-
"text-anchor": w(c)(e).anchor,
|
|
1760
|
-
y: w(oe)(e) - P.value.selected.labels.dataLabels.fontSize / 6,
|
|
1761
|
-
fill: e.color,
|
|
1762
|
-
"font-size": P.value.selected.labels.dataLabels.fontSize / 2,
|
|
1763
|
-
style: v(`font-weight:${P.value.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1764
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1765
|
-
}, " ⬤ ", 14, Lt)) : f("", !0), Ar(e) ? (y(), p("text", {
|
|
1766
|
-
key: 1,
|
|
1767
|
-
x: w(c)(e, !0).x,
|
|
1768
|
-
"text-anchor": w(c)(e, !0).anchor,
|
|
1769
|
-
y: w(oe)(e),
|
|
1770
|
-
fill: P.value.selected.labels.dataLabels.color,
|
|
1771
|
-
"font-size": P.value.selected.labels.dataLabels.fontSize,
|
|
1772
|
-
style: v(`font-weight:${P.value.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1773
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1774
|
-
}, C(W.value.breakdown[t].name), 15, Rt)) : f("", !0)]))), 256)),
|
|
1775
|
-
(y(!0), p(u, null, x(G.value, (e, n) => (y(), p("g", null, [
|
|
1776
|
-
Ar(e) ? (y(), p("text", {
|
|
1777
|
-
key: 0,
|
|
1778
|
-
x: w(c)(e, !0).x,
|
|
1779
|
-
"text-anchor": w(c)(e).anchor,
|
|
1780
|
-
y: w(oe)(e) + P.value.selected.labels.dataLabels.fontSize,
|
|
1781
|
-
fill: P.value.selected.labels.dataLabels.color,
|
|
1782
|
-
"font-size": P.value.selected.labels.dataLabels.fontSize,
|
|
1783
|
-
style: v(`font-weight:${P.value.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1784
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1785
|
-
}, C(w(t)({
|
|
1786
|
-
v: W.value.breakdown[n].value / W.value.value * 100,
|
|
1787
|
-
s: "%",
|
|
1788
|
-
r: P.value.selected.labels.roundingPercentage
|
|
1789
|
-
})) + " " + C(j.value.translations.of) + " " + C(W.value.breakdown[n].branchName) + " " + C(w(l)(P.value.selected.labels.dataLabels.formatter, W.value.breakdown[n].value, w(t)({
|
|
1790
|
-
p: P.value.selected.labels.dataLabels.prefix,
|
|
1791
|
-
v: W.value.breakdown[n].value,
|
|
1792
|
-
s: P.value.selected.labels.dataLabels.suffix,
|
|
1793
|
-
r: P.value.selected.roundingValue
|
|
1794
|
-
}), {
|
|
1795
|
-
datapoint: G.value,
|
|
1796
|
-
seriesIndex: n
|
|
1797
|
-
})), 15, zt)) : f("", !0),
|
|
1798
|
-
Ar(e) ? (y(), p("text", {
|
|
1799
|
-
key: 1,
|
|
1800
|
-
x: w(c)(e, !0).x,
|
|
1801
|
-
"text-anchor": w(c)(e).anchor,
|
|
1802
|
-
y: w(oe)(e) + P.value.selected.labels.dataLabels.fontSize * 2,
|
|
1803
|
-
fill: P.value.selected.labels.dataLabels.color,
|
|
1804
|
-
"font-size": P.value.selected.labels.dataLabels.fontSize,
|
|
1805
|
-
style: v(`font-weight:${P.value.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1806
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1807
|
-
}, C(w(t)({
|
|
1808
|
-
v: W.value.breakdown[n].proportionToRoot * 100,
|
|
1809
|
-
s: "%",
|
|
1810
|
-
r: P.value.selected.labels.roundingPercentage
|
|
1811
|
-
})) + " " + C(j.value.translations.of) + " " + C(W.value.breakdown[n].rootName), 15, Bt)) : f("", !0),
|
|
1812
|
-
Ar(e) ? (y(), p("text", {
|
|
1813
|
-
key: 2,
|
|
1814
|
-
x: w(c)(e, !0).x,
|
|
1815
|
-
"text-anchor": w(c)(e).anchor,
|
|
1816
|
-
y: w(oe)(e) + P.value.selected.labels.dataLabels.fontSize * 3,
|
|
1817
|
-
fill: P.value.selected.labels.dataLabels.color,
|
|
1818
|
-
"font-size": P.value.selected.labels.dataLabels.fontSize,
|
|
1819
|
-
style: v(`font-weight:${P.value.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1820
|
-
class: g(P.value.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1821
|
-
}, C(w(t)({
|
|
1822
|
-
v: W.value.breakdown[n].proportionToTree * 100,
|
|
1823
|
-
s: "%",
|
|
1824
|
-
r: P.value.selected.labels.roundingPercentage
|
|
1825
|
-
})) + " " + C(j.value.translations.proportionToTree), 15, Vt)) : f("", !0)
|
|
1826
|
-
]))), 256))
|
|
1827
|
-
])) : f("", !0),
|
|
1828
|
-
(y(!0), p(u, null, x(U.value, (e) => (y(), p("g", null, [
|
|
1829
|
-
K.value && K.value.id === e.id && !W.value ? (y(), p("text", {
|
|
1830
|
-
key: 0,
|
|
1831
|
-
x: e.x1 + 6,
|
|
1832
|
-
y: e.y1 + R.value.branchSize + 24,
|
|
1833
|
-
"font-weight": "bold",
|
|
1834
|
-
"text-anchor": "start",
|
|
1835
|
-
"font-size": N.value.labels.dataLabels.fontSize,
|
|
1836
|
-
fill: N.value.labels.color,
|
|
1837
|
-
onClick: n[8] ||= () => {
|
|
1838
|
-
J(), $(), O.value = !1;
|
|
1839
|
-
}
|
|
1840
|
-
}, C(e.name) + ": " + C(w(l)(N.value.labels.dataLabels.formatter, e.value, w(t)({
|
|
1841
|
-
p: N.value.labels.dataLabels.prefix,
|
|
1842
|
-
v: e.value,
|
|
1843
|
-
s: N.value.labels.dataLabels.suffix,
|
|
1844
|
-
r: N.value.labels.dataLabels.roundingValue
|
|
1845
|
-
}), { datapoint: e })), 9, Ht)) : f("", !0),
|
|
1846
|
-
K.value && K.value.id === e.id && !W.value ? (y(), p("text", {
|
|
1847
|
-
key: 1,
|
|
1848
|
-
x: e.x1 + 6,
|
|
1849
|
-
y: e.y1 + R.value.branchSize + 48,
|
|
1850
|
-
"text-anchor": "start",
|
|
1851
|
-
"font-size": N.value.labels.dataLabels.fontSize,
|
|
1852
|
-
fill: N.value.labels.color,
|
|
1853
|
-
onClick: n[9] ||= () => {
|
|
1854
|
-
J(), $(), O.value = !1;
|
|
1855
|
-
}
|
|
1856
|
-
}, C(w(t)({
|
|
1857
|
-
v: e.proportionToRoot * 100,
|
|
1858
|
-
s: "%",
|
|
1859
|
-
r: N.value.labels.dataLabels.roundingPercentage
|
|
1860
|
-
})) + " " + C(j.value.translations.of) + " " + C(e.rootName), 9, Ut)) : f("", !0),
|
|
1861
|
-
K.value && K.value.id === e.id && !W.value ? (y(), p("text", {
|
|
1862
|
-
key: 2,
|
|
1863
|
-
x: e.x1 + 6,
|
|
1864
|
-
y: e.y1 + R.value.branchSize + 72,
|
|
1865
|
-
"text-anchor": "start",
|
|
1866
|
-
"font-size": N.value.labels.dataLabels.fontSize,
|
|
1867
|
-
fill: N.value.labels.color,
|
|
1868
|
-
onClick: n[10] ||= () => {
|
|
1869
|
-
J(), $(), O.value = !1;
|
|
1870
|
-
}
|
|
1871
|
-
}, C(w(t)({
|
|
1872
|
-
v: e.value / B.value * 100,
|
|
1873
|
-
s: "%",
|
|
1874
|
-
r: N.value.labels.dataLabels.roundingPercentage
|
|
1875
|
-
})) + " " + C(j.value.translations.proportionToTree), 9, Wt)) : f("", !0)
|
|
1876
|
-
]))), 256)),
|
|
1877
|
-
S(e.$slots, "svg", { svg: {
|
|
1878
|
-
...R.value,
|
|
1879
|
-
isPrintingImg: w(rr) || w(ir) || w(Jr),
|
|
1880
|
-
isPrintingSvg: w(Yr)
|
|
1881
|
-
} }, void 0, !0)
|
|
1882
|
-
], 46, Je)) : f("", !0)]),
|
|
1883
|
-
e.$slots.watermark ? (y(), p("div", Gt, [S(e.$slots, "watermark", _(h({ isPrinting: w(rr) || w(ir) || w(Jr) || w(Yr) })), void 0, !0)])) : f("", !0),
|
|
1884
|
-
S(e.$slots, "legend", { legend: V.value }, void 0, !0),
|
|
1885
|
-
e.$slots.source ? (y(), p("div", Kt, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1886
|
-
Un.value && j.value.userOptions.buttons.table ? (y(), ke(Le(Br.value.component), Pe({ key: 6 }, Br.value.props, {
|
|
1887
|
-
ref_key: "tableUnit",
|
|
1888
|
-
ref: Kn,
|
|
1889
|
-
onClose: Hr
|
|
1890
|
-
}), Ae({
|
|
1891
|
-
content: T(() => [m("div", {
|
|
1892
|
-
ref_key: "tableContainer",
|
|
1893
|
-
ref: ur,
|
|
1894
|
-
class: "vue-ui-chestnut-table",
|
|
1895
|
-
style: v(`${j.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1896
|
-
}, [m("div", { style: v(`${j.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`) }, [j.value.table.useDialog ? f("", !0) : (y(), p("div", {
|
|
1897
|
-
key: 0,
|
|
1898
|
-
role: "button",
|
|
1899
|
-
tabindex: "0",
|
|
1900
|
-
style: v(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${L.value ? "pointer" : "default"}; background:${j.value.table.th.backgroundColor};`),
|
|
1901
|
-
onClick: Hr,
|
|
1902
|
-
onKeypress: Ve(Hr, ["enter"])
|
|
1903
|
-
}, [Me(w(Pn), {
|
|
1904
|
-
name: "close",
|
|
1905
|
-
stroke: j.value.table.th.color,
|
|
1906
|
-
"stroke-width": 2
|
|
1907
|
-
}, null, 8, ["stroke"])], 36)), m("div", {
|
|
1908
|
-
style: { width: "100%" },
|
|
1909
|
-
class: g({ "vue-ui-responsive": w(Vr) })
|
|
1910
|
-
}, [m("table", qt, [
|
|
1911
|
-
j.value.table.useDialog ? f("", !0) : (y(), p("caption", {
|
|
1912
|
-
key: 0,
|
|
1913
|
-
style: v({
|
|
1914
|
-
backgroundColor: j.value.table.th.backgroundColor,
|
|
1915
|
-
color: j.value.table.th.color,
|
|
1916
|
-
outline: j.value.table.th.outline
|
|
1917
|
-
}),
|
|
1918
|
-
class: "vue-ui-data-table__caption"
|
|
1919
|
-
}, [je(C(F.value.title.text) + " ", 1), F.value.title.subtitle.text ? (y(), p("span", Jt, C(F.value.title.subtitle.text), 1)) : f("", !0)], 4)),
|
|
1920
|
-
m("thead", null, [m("tr", {
|
|
1921
|
-
role: "row",
|
|
1922
|
-
style: v(`background:${j.value.table.th.backgroundColor};color:${j.value.table.th.color}`)
|
|
1923
|
-
}, [(y(!0), p(u, null, x(X.value.head, (e) => (y(), p("th", { style: v(`outline:${j.value.table.th.outline}`) }, C(e), 5))), 256))], 4)]),
|
|
1924
|
-
m("tbody", null, [(y(!0), p(u, null, x(X.value.body, (e, t) => (y(), p("tr", {
|
|
1925
|
-
class: g({
|
|
1926
|
-
"vue-ui-data-table__tbody__row": !0,
|
|
1927
|
-
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
1928
|
-
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
1929
|
-
}),
|
|
1930
|
-
style: v(`background:${j.value.table.td.backgroundColor};color:${j.value.table.td.color}`)
|
|
1931
|
-
}, [
|
|
1932
|
-
m("td", {
|
|
1933
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1934
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1935
|
-
"data-cell": X.value.head[0]
|
|
1936
|
-
}, [m("div", Xt, [X.value.body[t - 1] && X.value.body[t - 1].rootName === e.rootName ? (y(), p("span", Zt)) : (y(), p("span", Qt, C(e.rootName), 1))])], 12, Yt),
|
|
1937
|
-
m("td", {
|
|
1938
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1939
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1940
|
-
"data-cell": X.value.head[1]
|
|
1941
|
-
}, [m("div", en, [X.value.body[t - 1] && X.value.body[t - 1].rootName === e.rootName ? (y(), p("span", tn)) : (y(), p("span", nn, C(e.rootValue.toFixed(j.value.table.td.roundingValue)), 1))])], 12, $t),
|
|
1942
|
-
m("td", {
|
|
1943
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1944
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1945
|
-
"data-cell": X.value.head[2]
|
|
1946
|
-
}, [m("div", an, [X.value.body[t - 1] && X.value.body[t - 1].rootName === e.rootName ? (y(), p("span", on)) : (y(), p("span", sn, C((e.rootToTotal * 100).toFixed(j.value.table.td.roundingPercentage)) + "% ", 1))])], 12, rn),
|
|
1947
|
-
m("td", {
|
|
1948
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1949
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1950
|
-
"data-cell": X.value.head[3]
|
|
1951
|
-
}, [m("div", ln, [X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? (y(), p("span", un)) : (y(), p("span", dn, C(e.branchName), 1))])], 12, cn),
|
|
1952
|
-
m("td", {
|
|
1953
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1954
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1955
|
-
"data-cell": X.value.head[4]
|
|
1956
|
-
}, [m("div", pn, [X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? (y(), p("span", mn)) : (y(), p("span", hn, C(e.branchValue.toFixed(j.value.table.td.roundingValue)), 1))])], 12, fn),
|
|
1957
|
-
m("td", {
|
|
1958
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1959
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1960
|
-
"data-cell": X.value.head[5]
|
|
1961
|
-
}, [m("div", _n, [X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? (y(), p("span", vn)) : (y(), p("span", yn, C((e.branchToRoot * 100).toFixed(j.value.table.td.roundingPercentage)) + "% ", 1))])], 12, gn),
|
|
1962
|
-
m("td", {
|
|
1963
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1964
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1965
|
-
"data-cell": X.value.head[6]
|
|
1966
|
-
}, [m("div", xn, [X.value.body[t - 1] && X.value.body[t - 1].branchName === e.branchName ? (y(), p("span", Sn)) : (y(), p("span", Cn, C((e.branchToTotal * 100).toFixed(j.value.table.td.roundingPercentage)) + "% ", 1))])], 12, bn),
|
|
1967
|
-
m("td", {
|
|
1968
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1969
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1970
|
-
"data-cell": X.value.head[7]
|
|
1971
|
-
}, [m("div", Tn, C(e.nutName), 1)], 12, wn),
|
|
1972
|
-
m("td", {
|
|
1973
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1974
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1975
|
-
"data-cell": X.value.head[8]
|
|
1976
|
-
}, [m("div", Dn, C(e.nutValue.toFixed(j.value.table.td.roundingValue)), 1)], 12, En),
|
|
1977
|
-
m("td", {
|
|
1978
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1979
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1980
|
-
"data-cell": X.value.head[9]
|
|
1981
|
-
}, [m("div", kn, C((e.nutToBranch * 100).toFixed(j.value.table.td.roundingPercentage)) + "% ", 1)], 12, On),
|
|
1982
|
-
m("td", {
|
|
1983
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1984
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1985
|
-
"data-cell": X.value.head[10]
|
|
1986
|
-
}, [m("div", jn, C((e.nutToRoot * 100).toFixed(j.value.table.td.roundingPercentage)) + "% ", 1)], 12, An),
|
|
1987
|
-
m("td", {
|
|
1988
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1989
|
-
style: v(`outline:${j.value.table.td.outline}`),
|
|
1990
|
-
"data-cell": X.value.head[11]
|
|
1991
|
-
}, [m("div", Nn, C((e.nutToTotal * 100).toFixed(j.value.table.td.roundingPercentage)) + "% ", 1)], 12, Mn)
|
|
1992
|
-
], 6))), 256))])
|
|
1993
|
-
])], 2)], 4)], 4)]),
|
|
1994
|
-
_: 2
|
|
1995
|
-
}, [j.value.table.useDialog ? {
|
|
1996
|
-
name: "title",
|
|
1997
|
-
fn: T(() => [je(C(Br.value.title), 1)]),
|
|
1998
|
-
key: "0"
|
|
1999
|
-
} : void 0, j.value.table.useDialog ? {
|
|
2000
|
-
name: "actions",
|
|
2001
|
-
fn: T(() => [m("button", {
|
|
2002
|
-
tabindex: "0",
|
|
2003
|
-
class: "vue-ui-user-options-button",
|
|
2004
|
-
onClick: n[11] ||= (e) => Mr(j.value.userOptions.callbacks.csv)
|
|
2005
|
-
}, [Me(w(Pn), {
|
|
2006
|
-
name: "fileCsv",
|
|
2007
|
-
stroke: Br.value.props.color
|
|
2008
|
-
}, null, 8, ["stroke"])])]),
|
|
2009
|
-
key: "1"
|
|
2010
|
-
} : void 0]), 1040)) : f("", !0),
|
|
2011
|
-
S(e.$slots, "skeleton", {}, () => [w(Xn) ? (y(), ke(_e, { key: 0 })) : f("", !0)], !0)
|
|
2012
|
-
], 46, Ue));
|
|
2013
|
-
}
|
|
2014
|
-
}, [["__scopeId", "data-v-c8ee9e06"]]);
|
|
2015
|
-
//#endregion
|
|
2016
|
-
export { He as n, Pn as t };
|