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,1305 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, D as r, Dt as i, Jt as a, X as o, Yt as ee, at as te, b as s, et as ne, i as c, nn as re, nt as ie, pt as ae, t as oe, zt as se } from "./lib-D4wK6ljP.js";
|
|
3
|
-
import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ue } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
-
import { t as de } from "./usePrinter-DdW2GSm0.js";
|
|
6
|
-
import { n as fe, t as pe } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as me } from "./useNestedProp-DR_8JPol.js";
|
|
8
|
-
import { t as he } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ge } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as _e } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as ve } from "./img-Bb5rHcpO.js";
|
|
12
|
-
import { n as ye } from "./Title-BMCuINbv.js";
|
|
13
|
-
import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
-
import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as Ce } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
-
import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
-
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
-
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as De } from "./vue_ui_age_pyramid-B2R66DgQ.js";
|
|
20
|
-
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Oe, createTextVNode as ke, createVNode as h, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as v, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as C, toRefs as Re, unref as w, watch as ze, watchEffect as Be, withCtx as T } from "vue";
|
|
21
|
-
//#region src/components/vue-ui-age-pyramid.vue
|
|
22
|
-
var Ve = /* @__PURE__ */ e({ default: () => gt }), He = ["id"], Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
|
|
23
|
-
"xmlns",
|
|
24
|
-
"viewBox",
|
|
25
|
-
"aria-describedby"
|
|
26
|
-
], Ke = [
|
|
27
|
-
"x",
|
|
28
|
-
"y",
|
|
29
|
-
"width",
|
|
30
|
-
"height"
|
|
31
|
-
], qe = [
|
|
32
|
-
"x",
|
|
33
|
-
"y",
|
|
34
|
-
"width",
|
|
35
|
-
"height",
|
|
36
|
-
"fill",
|
|
37
|
-
"rx"
|
|
38
|
-
], Je = [
|
|
39
|
-
"x",
|
|
40
|
-
"y",
|
|
41
|
-
"width",
|
|
42
|
-
"height",
|
|
43
|
-
"fill",
|
|
44
|
-
"rx"
|
|
45
|
-
], Ye = [
|
|
46
|
-
"x",
|
|
47
|
-
"y",
|
|
48
|
-
"width",
|
|
49
|
-
"height",
|
|
50
|
-
"fill",
|
|
51
|
-
"rx"
|
|
52
|
-
], Xe = [
|
|
53
|
-
"x",
|
|
54
|
-
"y",
|
|
55
|
-
"width",
|
|
56
|
-
"height",
|
|
57
|
-
"fill",
|
|
58
|
-
"rx"
|
|
59
|
-
], Ze = [
|
|
60
|
-
"x",
|
|
61
|
-
"y",
|
|
62
|
-
"font-size",
|
|
63
|
-
"font-weight",
|
|
64
|
-
"fill",
|
|
65
|
-
"stroke"
|
|
66
|
-
], Qe = [
|
|
67
|
-
"x",
|
|
68
|
-
"y",
|
|
69
|
-
"font-size",
|
|
70
|
-
"font-weight",
|
|
71
|
-
"fill",
|
|
72
|
-
"stroke"
|
|
73
|
-
], $e = { key: 0 }, et = [
|
|
74
|
-
"x",
|
|
75
|
-
"y",
|
|
76
|
-
"fill",
|
|
77
|
-
"font-size",
|
|
78
|
-
"font-weight"
|
|
79
|
-
], tt = [
|
|
80
|
-
"x",
|
|
81
|
-
"y",
|
|
82
|
-
"fill",
|
|
83
|
-
"font-size",
|
|
84
|
-
"font-weight"
|
|
85
|
-
], nt = { key: 1 }, rt = [
|
|
86
|
-
"x",
|
|
87
|
-
"y",
|
|
88
|
-
"font-size",
|
|
89
|
-
"fill",
|
|
90
|
-
"font-weight"
|
|
91
|
-
], it = { key: 2 }, at = { key: 0 }, ot = [
|
|
92
|
-
"x1",
|
|
93
|
-
"x2",
|
|
94
|
-
"y1",
|
|
95
|
-
"y2",
|
|
96
|
-
"stroke",
|
|
97
|
-
"stroke-width"
|
|
98
|
-
], st = [
|
|
99
|
-
"x1",
|
|
100
|
-
"x2",
|
|
101
|
-
"y1",
|
|
102
|
-
"y2",
|
|
103
|
-
"stroke",
|
|
104
|
-
"stroke-width"
|
|
105
|
-
], ct = [
|
|
106
|
-
"x1",
|
|
107
|
-
"x2",
|
|
108
|
-
"y1",
|
|
109
|
-
"y2",
|
|
110
|
-
"stroke",
|
|
111
|
-
"stroke-width"
|
|
112
|
-
], lt = [
|
|
113
|
-
"x1",
|
|
114
|
-
"x2",
|
|
115
|
-
"y1",
|
|
116
|
-
"y2",
|
|
117
|
-
"stroke",
|
|
118
|
-
"stroke-width"
|
|
119
|
-
], ut = [
|
|
120
|
-
"font-size",
|
|
121
|
-
"fill",
|
|
122
|
-
"text-anchor",
|
|
123
|
-
"font-weight",
|
|
124
|
-
"transform"
|
|
125
|
-
], dt = [
|
|
126
|
-
"font-size",
|
|
127
|
-
"fill",
|
|
128
|
-
"text-anchor",
|
|
129
|
-
"font-weight",
|
|
130
|
-
"transform"
|
|
131
|
-
], ft = [
|
|
132
|
-
"x",
|
|
133
|
-
"y",
|
|
134
|
-
"font-size",
|
|
135
|
-
"fill",
|
|
136
|
-
"font-weight"
|
|
137
|
-
], pt = [
|
|
138
|
-
"x",
|
|
139
|
-
"y",
|
|
140
|
-
"width",
|
|
141
|
-
"height",
|
|
142
|
-
"fill",
|
|
143
|
-
"onMouseover",
|
|
144
|
-
"onMouseleave",
|
|
145
|
-
"onClick"
|
|
146
|
-
], mt = {
|
|
147
|
-
key: 0,
|
|
148
|
-
style: {
|
|
149
|
-
position: "absolute",
|
|
150
|
-
top: "100%",
|
|
151
|
-
left: "0",
|
|
152
|
-
width: "100%"
|
|
153
|
-
},
|
|
154
|
-
"data-dom-to-png-ignore": "",
|
|
155
|
-
"aria-hidden": "true"
|
|
156
|
-
}, ht = {
|
|
157
|
-
key: 5,
|
|
158
|
-
class: "vue-data-ui-watermark"
|
|
159
|
-
}, gt = /*#__PURE__*/ be({
|
|
160
|
-
__name: "vue-ui-age-pyramid",
|
|
161
|
-
props: {
|
|
162
|
-
config: {
|
|
163
|
-
type: Object,
|
|
164
|
-
default() {
|
|
165
|
-
return {};
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
dataset: {
|
|
169
|
-
type: Array,
|
|
170
|
-
default() {
|
|
171
|
-
return [];
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
emits: ["copyAlt"],
|
|
176
|
-
setup(e, { expose: be, emit: Ve }) {
|
|
177
|
-
let gt = g(() => import("./Tooltip-C4ZTwkLF.js")), _t = g(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), vt = g(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), yt = g(() => import("./DataTable-CjF_An2h.js")), bt = g(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), xt = g(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), St = g(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Ct = g(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_age_pyramid: wt } = ue(), { isThemeValid: Tt, warnInvalidTheme: Et } = he(), E = e, Dt = Ve, Ot = u(() => !!E.dataset && E.dataset.length), D = b(o()), O = b(!1), kt = b(""), k = b(null), At = b(0), A = b(null), jt = b(null), Mt = b(null), Nt = b(null), Pt = b(0), Ft = b(0), It = b(null), j = b(null), Lt = b(null), M = b(null), Rt = b({
|
|
178
|
-
x: 0,
|
|
179
|
-
y: 0
|
|
180
|
-
}), N = b("pointer"), zt = b(!1), P = b(qt()), F = u(() => P.value.style), I = u(() => P.value.style.layout.dataLabels), L = u(() => P.value.style.layout.bars), R = u(() => P.value.style.layout.bars.labels);
|
|
181
|
-
ce({
|
|
182
|
-
config: () => P.value,
|
|
183
|
-
dataset: () => E.dataset,
|
|
184
|
-
component: "VueUiAgePyramid",
|
|
185
|
-
rules: [le.emptyArray, {
|
|
186
|
-
test: (e) => e.length > 130,
|
|
187
|
-
message: [
|
|
188
|
-
"👀 Dataset has > 130 points. Consider:",
|
|
189
|
-
"",
|
|
190
|
-
"▶️ Grouping small values into aggregated categories.",
|
|
191
|
-
"",
|
|
192
|
-
"▶️ Using VueUiStackline to display data in a more compact way."
|
|
193
|
-
]
|
|
194
|
-
}]
|
|
195
|
-
});
|
|
196
|
-
let z = u(() => P.value.userOptions.useCursorPointer), Bt = u(() => re({
|
|
197
|
-
defaultConfig: {
|
|
198
|
-
userOptions: { show: !1 },
|
|
199
|
-
table: { show: !1 },
|
|
200
|
-
translations: {
|
|
201
|
-
male: "",
|
|
202
|
-
female: ""
|
|
203
|
-
},
|
|
204
|
-
style: {
|
|
205
|
-
backgroundColor: "#99999930",
|
|
206
|
-
layout: {
|
|
207
|
-
bars: {
|
|
208
|
-
left: { color: "#CACACA" },
|
|
209
|
-
right: { color: "#999999" }
|
|
210
|
-
},
|
|
211
|
-
dataLabels: {
|
|
212
|
-
xAxis: {
|
|
213
|
-
fontSize: 0,
|
|
214
|
-
scale: 1e3,
|
|
215
|
-
translation: ""
|
|
216
|
-
},
|
|
217
|
-
yAxis: { show: !1 }
|
|
218
|
-
},
|
|
219
|
-
grid: { stroke: "#6A6A6A" }
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
userConfig: P.value.skeletonConfig ?? {}
|
|
224
|
-
})), { loading: Vt, FINAL_DATASET: Ht, manualLoading: Ut } = fe({
|
|
225
|
-
...Re(E),
|
|
226
|
-
FINAL_CONFIG: P,
|
|
227
|
-
prepareConfig: qt,
|
|
228
|
-
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
229
|
-
[
|
|
230
|
-
"_",
|
|
231
|
-
9,
|
|
232
|
-
2,
|
|
233
|
-
2
|
|
234
|
-
],
|
|
235
|
-
[
|
|
236
|
-
"_",
|
|
237
|
-
8,
|
|
238
|
-
3,
|
|
239
|
-
3
|
|
240
|
-
],
|
|
241
|
-
[
|
|
242
|
-
"_",
|
|
243
|
-
7,
|
|
244
|
-
5,
|
|
245
|
-
5
|
|
246
|
-
],
|
|
247
|
-
[
|
|
248
|
-
"_",
|
|
249
|
-
6,
|
|
250
|
-
8,
|
|
251
|
-
8
|
|
252
|
-
],
|
|
253
|
-
[
|
|
254
|
-
"_",
|
|
255
|
-
5,
|
|
256
|
-
13,
|
|
257
|
-
13
|
|
258
|
-
],
|
|
259
|
-
[
|
|
260
|
-
"_",
|
|
261
|
-
4,
|
|
262
|
-
21,
|
|
263
|
-
21
|
|
264
|
-
],
|
|
265
|
-
[
|
|
266
|
-
"_",
|
|
267
|
-
3,
|
|
268
|
-
34,
|
|
269
|
-
34
|
|
270
|
-
],
|
|
271
|
-
[
|
|
272
|
-
"_",
|
|
273
|
-
2,
|
|
274
|
-
55,
|
|
275
|
-
55
|
|
276
|
-
],
|
|
277
|
-
[
|
|
278
|
-
"_",
|
|
279
|
-
1,
|
|
280
|
-
89,
|
|
281
|
-
89
|
|
282
|
-
],
|
|
283
|
-
[
|
|
284
|
-
"_",
|
|
285
|
-
0,
|
|
286
|
-
144,
|
|
287
|
-
144
|
|
288
|
-
]
|
|
289
|
-
],
|
|
290
|
-
skeletonConfig: re({
|
|
291
|
-
defaultConfig: P.value,
|
|
292
|
-
userConfig: Bt.value
|
|
293
|
-
})
|
|
294
|
-
}), { userOptionsVisible: Wt, setUserOptionsVisibility: Gt, keepUserOptionState: Kt } = Te({ config: P.value }), { svgRef: B } = Ee({ config: P.value.style.title });
|
|
295
|
-
function qt() {
|
|
296
|
-
let e = me({
|
|
297
|
-
userConfig: E.config,
|
|
298
|
-
defaultConfig: wt
|
|
299
|
-
}), t = e.theme;
|
|
300
|
-
if (!t) return e;
|
|
301
|
-
if (!Tt.value(e)) return Et(e), e;
|
|
302
|
-
let n = me({
|
|
303
|
-
userConfig: De[t] || E.config,
|
|
304
|
-
defaultConfig: e
|
|
305
|
-
});
|
|
306
|
-
return me({
|
|
307
|
-
userConfig: E.config,
|
|
308
|
-
defaultConfig: n
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
function Jt(e) {
|
|
312
|
-
let t = ne(e);
|
|
313
|
-
return t?.style?.chart && delete t.style.tooltip, JSON.stringify(t);
|
|
314
|
-
}
|
|
315
|
-
let Yt = Jt(E.config);
|
|
316
|
-
ze(() => E.config, (e, t) => {
|
|
317
|
-
let n = Jt(e), r = n !== Yt;
|
|
318
|
-
Yt = n;
|
|
319
|
-
let i = qt();
|
|
320
|
-
if (!r) {
|
|
321
|
-
P.value.style.tooltip = i.style.tooltip, U.value.showTooltip = P.value.style.tooltip.show;
|
|
322
|
-
return;
|
|
323
|
-
}
|
|
324
|
-
Vt.value || (P.value = i), Wt.value = !P.value.userOptions.showOnChartHover, Zt(), Pt.value += 1, Ft.value += 1, U.value.showTable = P.value.table.show, U.value.showTooltip = P.value.style.tooltip.show;
|
|
325
|
-
}, { deep: !0 }), ze(() => E.dataset, (e) => {
|
|
326
|
-
Array.isArray(e) && e.length > 0 && (Ut.value = !1);
|
|
327
|
-
}, { deep: !0 });
|
|
328
|
-
let V = Le(null), H = Le(null);
|
|
329
|
-
Fe(() => {
|
|
330
|
-
Zt();
|
|
331
|
-
});
|
|
332
|
-
let Xt = u(() => P.value.debug);
|
|
333
|
-
function Zt() {
|
|
334
|
-
if (se(E.dataset) && (te({
|
|
335
|
-
componentName: "VueUiAgePyramid",
|
|
336
|
-
type: "dataset",
|
|
337
|
-
debug: Xt.value
|
|
338
|
-
}), Ut.value = !0), se(E.dataset) || (Ut.value = P.value.loading), P.value.responsive) {
|
|
339
|
-
let e = xe(() => {
|
|
340
|
-
let { width: e, height: t } = Se({
|
|
341
|
-
chart: A.value,
|
|
342
|
-
title: F.value.title.text ? jt.value : null,
|
|
343
|
-
source: Mt.value,
|
|
344
|
-
noTitle: Nt.value
|
|
345
|
-
});
|
|
346
|
-
requestAnimationFrame(() => {
|
|
347
|
-
W.value.width = e, W.value.height = t;
|
|
348
|
-
});
|
|
349
|
-
});
|
|
350
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(e), H.value = A.value.parentNode, V.value.observe(H.value);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
Pe(() => {
|
|
354
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
|
|
355
|
-
});
|
|
356
|
-
let { isPrinting: Qt, isImaging: $t, generatePdf: en, generateImage: tn } = de({
|
|
357
|
-
elementId: `vue-ui-age-pyramid_${D.value}`,
|
|
358
|
-
fileName: F.value.title.text || "vue-ui-age-pyramid",
|
|
359
|
-
options: P.value.userOptions.print
|
|
360
|
-
}), nn = u(() => P.value.userOptions.show && !F.value.title.text), U = b({
|
|
361
|
-
showTable: P.value.table.show,
|
|
362
|
-
showTooltip: F.value.tooltip.show
|
|
363
|
-
});
|
|
364
|
-
ze(P, () => {
|
|
365
|
-
U.value = {
|
|
366
|
-
showTable: P.value.table.show,
|
|
367
|
-
showTooltip: F.value.tooltip.show
|
|
368
|
-
};
|
|
369
|
-
}, { immediate: !0 });
|
|
370
|
-
let W = b({
|
|
371
|
-
height: F.value.height,
|
|
372
|
-
width: F.value.width
|
|
373
|
-
}), rn = u(() => W.value.width), an = u(() => W.value.height), on = b(0), sn = xe((e) => {
|
|
374
|
-
on.value = e;
|
|
375
|
-
}, 100);
|
|
376
|
-
Be((e) => {
|
|
377
|
-
let t = It.value;
|
|
378
|
-
if (!t) return;
|
|
379
|
-
let n = new ResizeObserver((e) => {
|
|
380
|
-
sn(e[0].contentRect.height);
|
|
381
|
-
});
|
|
382
|
-
n.observe(t), e(() => n.disconnect());
|
|
383
|
-
}), Pe(() => {
|
|
384
|
-
on.value = 0;
|
|
385
|
-
});
|
|
386
|
-
let G = u(() => {
|
|
387
|
-
let e = W.value.width - F.value.layout.padding.right - F.value.layout.padding.left, t = F.value.layout.padding.left, n = W.value.width - F.value.layout.padding.right;
|
|
388
|
-
return {
|
|
389
|
-
top: F.value.layout.padding.top + I.value.sideTitles.fontSize + I.value.sideTitles.offsetY + 12,
|
|
390
|
-
left: t,
|
|
391
|
-
right: n,
|
|
392
|
-
bottom: W.value.height - F.value.layout.padding.bottom - on.value,
|
|
393
|
-
width: e,
|
|
394
|
-
height: W.value.height - F.value.layout.padding.top - F.value.layout.padding.bottom - on.value - I.value.sideTitles.fontSize - I.value.sideTitles.offsetY - 12,
|
|
395
|
-
centerX: F.value.layout.padding.left + e / 2,
|
|
396
|
-
leftChart: {
|
|
397
|
-
width: e / 2 - F.value.layout.centerSlit.width,
|
|
398
|
-
right: t + e / 2 - F.value.layout.centerSlit.width
|
|
399
|
-
},
|
|
400
|
-
rightChart: {
|
|
401
|
-
width: e / 2 - F.value.layout.centerSlit.width,
|
|
402
|
-
left: t + e / 2 + F.value.layout.centerSlit.width
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
}), cn = u(() => Ht.value.map((e) => I.value.yAxis.display === "age" ? e[1] : e[0])), K = u(() => {
|
|
406
|
-
let e = ln(q.value / 5), t = [], n = [];
|
|
407
|
-
for (let r = 0; r <= 5; r += 1) {
|
|
408
|
-
let i = e * r, a = e * (r - 5);
|
|
409
|
-
t.push({
|
|
410
|
-
value: i,
|
|
411
|
-
x: G.value.left + G.value.width / 2 + F.value.layout.centerSlit.width + i / q.value * G.value.leftChart.width
|
|
412
|
-
}), n.push({
|
|
413
|
-
value: Math.abs(a),
|
|
414
|
-
x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - F.value.layout.centerSlit.width
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
return {
|
|
418
|
-
right: t,
|
|
419
|
-
left: n
|
|
420
|
-
};
|
|
421
|
-
});
|
|
422
|
-
function ln(e) {
|
|
423
|
-
if (e === 0) return 0;
|
|
424
|
-
let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
|
|
425
|
-
return n = Math.round(e / t) * t, n;
|
|
426
|
-
}
|
|
427
|
-
let q = u(() => Math.max(...Ht.value.flatMap((e) => e.slice(-2).map((e) => s(e))))), J = u(() => Ht.value.length), un = u(() => Ht.value.map((e) => ({
|
|
428
|
-
segment: e[0],
|
|
429
|
-
age: e[1],
|
|
430
|
-
left: {
|
|
431
|
-
value: e[2],
|
|
432
|
-
proportionToMax: e[2] / q.value
|
|
433
|
-
},
|
|
434
|
-
right: {
|
|
435
|
-
value: e[3],
|
|
436
|
-
proportionToMax: e[3] / q.value
|
|
437
|
-
}
|
|
438
|
-
}))), Y = u(() => un.value.map((e, t) => {
|
|
439
|
-
let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - L.value.gap;
|
|
440
|
-
return {
|
|
441
|
-
segment: e.segment,
|
|
442
|
-
age: e.age,
|
|
443
|
-
left: {
|
|
444
|
-
...e.left,
|
|
445
|
-
y: n,
|
|
446
|
-
color: L.value.left.color,
|
|
447
|
-
x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
|
|
448
|
-
width: s(e.left.proportionToMax * G.value.leftChart.width),
|
|
449
|
-
height: r
|
|
450
|
-
},
|
|
451
|
-
right: {
|
|
452
|
-
...e.right,
|
|
453
|
-
y: n,
|
|
454
|
-
color: L.value.right.color,
|
|
455
|
-
x: G.value.rightChart.left,
|
|
456
|
-
width: s(e.right.proportionToMax * G.value.rightChart.width),
|
|
457
|
-
height: r
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
|
-
})), dn = b(null);
|
|
461
|
-
function fn(e) {
|
|
462
|
-
let [t, n, r, i] = e;
|
|
463
|
-
return {
|
|
464
|
-
segment: t,
|
|
465
|
-
index: n,
|
|
466
|
-
left: r,
|
|
467
|
-
right: i
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
function pn(e, t) {
|
|
471
|
-
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
472
|
-
datapoint: fn(t),
|
|
473
|
-
seriesIndex: e
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
function mn(e, t) {
|
|
477
|
-
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
478
|
-
datapoint: fn(t),
|
|
479
|
-
seriesIndex: e
|
|
480
|
-
}), (N.value !== "keyboard" || M.value !== e) && (k.value = null, O.value = !1);
|
|
481
|
-
}
|
|
482
|
-
function hn(e) {
|
|
483
|
-
if (!B.value) return;
|
|
484
|
-
let t = Y.value[e];
|
|
485
|
-
if (!t) return;
|
|
486
|
-
let r = n(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, B.value);
|
|
487
|
-
r && (Rt.value = r);
|
|
488
|
-
}
|
|
489
|
-
function gn(e, n, r = "pointer") {
|
|
490
|
-
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
491
|
-
datapoint: fn(n),
|
|
492
|
-
seriesIndex: e
|
|
493
|
-
}), k.value = e, M.value = e, N.value = r, dn.value = {
|
|
494
|
-
datapoint: n,
|
|
495
|
-
seriesIndex: e,
|
|
496
|
-
series: Y.value,
|
|
497
|
-
config: P.value
|
|
498
|
-
};
|
|
499
|
-
let a = F.value.tooltip.customFormat;
|
|
500
|
-
if (i(a) && ae(() => a({
|
|
501
|
-
seriesIndex: e,
|
|
502
|
-
datapoint: {
|
|
503
|
-
segment: n[0],
|
|
504
|
-
index: n[1],
|
|
505
|
-
left: n[2],
|
|
506
|
-
right: n[3]
|
|
507
|
-
},
|
|
508
|
-
series: Y.value,
|
|
509
|
-
config: P.value
|
|
510
|
-
}))) kt.value = a({
|
|
511
|
-
seriesIndex: e,
|
|
512
|
-
datapoint: {
|
|
513
|
-
segment: n[0],
|
|
514
|
-
index: n[1],
|
|
515
|
-
left: n[2],
|
|
516
|
-
right: n[3]
|
|
517
|
-
},
|
|
518
|
-
series: Y.value,
|
|
519
|
-
config: P.value
|
|
520
|
-
});
|
|
521
|
-
else {
|
|
522
|
-
let r = "", i = Y.value[e];
|
|
523
|
-
r += `<div><b>${i.segment}</b></div>`, r += `<div>${P.value.translations.age}: ${c(I.value.yAxis.formatter, s(i.age), t({ v: s(i.age) }), {
|
|
524
|
-
datapoint: n,
|
|
525
|
-
seriesIndex: e
|
|
526
|
-
})}</div>`, r += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`, r += "<div style=\"display:flex; flex-direction:row;gap:12px\">", r += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show ? `url(#age_pyramid_left_${D.value})` : L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${c(I.value.xAxis.formatter, s(i.left.value), t({ v: s(i.left.value) }), {
|
|
527
|
-
datapoint: n,
|
|
528
|
-
seriesIndex: e
|
|
529
|
-
})}</b></div></div>`, r += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show ? `url(#age_pyramid_right_${D.value})` : L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${c(I.value.xAxis.formatter, s(i.right.value), t({ v: s(i.right.value) }), {
|
|
530
|
-
datapoint: n,
|
|
531
|
-
seriesIndex: e
|
|
532
|
-
})}</b></div></div>`, r += "</div>", r += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${c(I.value.xAxis.formatter, s(i.right.value) + s(i.left.value), t({ v: s(i.right.value) + s(i.left.value) }), {
|
|
533
|
-
datapoint: n,
|
|
534
|
-
seriesIndex: e
|
|
535
|
-
})}</b></div></div>`, r += "</div>", kt.value = `<div>${r}</div>`;
|
|
536
|
-
}
|
|
537
|
-
O.value = !0, r === "keyboard" && je(() => {
|
|
538
|
-
hn(e);
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
function _n(e = null) {
|
|
542
|
-
je(() => {
|
|
543
|
-
let t = [
|
|
544
|
-
P.value.translations.year,
|
|
545
|
-
P.value.translations.age,
|
|
546
|
-
P.value.translations.female,
|
|
547
|
-
P.value.translations.male,
|
|
548
|
-
P.value.translations.total
|
|
549
|
-
], n = E.dataset.map((e) => [
|
|
550
|
-
e[0],
|
|
551
|
-
e[1],
|
|
552
|
-
e[2],
|
|
553
|
-
e[3],
|
|
554
|
-
e[2] ?? 0 + e[3] ?? 0
|
|
555
|
-
]), i = [
|
|
556
|
-
[F.value.title.text],
|
|
557
|
-
[F.value.title.subtitle.text],
|
|
558
|
-
[
|
|
559
|
-
[""],
|
|
560
|
-
[""],
|
|
561
|
-
[""]
|
|
562
|
-
],
|
|
563
|
-
t
|
|
564
|
-
].concat(n), a = r(i);
|
|
565
|
-
e ? e(a) : ie({
|
|
566
|
-
csvContent: a,
|
|
567
|
-
title: F.value.title.text || "vue-ui-heatmap"
|
|
568
|
-
});
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
let X = u(() => {
|
|
572
|
-
let e = [
|
|
573
|
-
P.value.translations.year,
|
|
574
|
-
P.value.translations.age,
|
|
575
|
-
P.value.translations.female,
|
|
576
|
-
P.value.translations.male,
|
|
577
|
-
P.value.translations.total
|
|
578
|
-
];
|
|
579
|
-
return {
|
|
580
|
-
head: e,
|
|
581
|
-
body: E.dataset.map((e) => [
|
|
582
|
-
e[0],
|
|
583
|
-
e[1],
|
|
584
|
-
e[2] == null ? "" : e[2].toLocaleString(),
|
|
585
|
-
e[3] == null ? "" : e[3].toLocaleString(),
|
|
586
|
-
(e[2] ?? 0 + e[3] ?? 0).toLocaleString()
|
|
587
|
-
]),
|
|
588
|
-
config: {
|
|
589
|
-
th: {
|
|
590
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
591
|
-
color: P.value.table.th.color,
|
|
592
|
-
outline: P.value.table.th.outline
|
|
593
|
-
},
|
|
594
|
-
td: {
|
|
595
|
-
backgroundColor: P.value.table.td.backgroundColor,
|
|
596
|
-
color: P.value.table.td.color,
|
|
597
|
-
outline: P.value.table.td.outline
|
|
598
|
-
},
|
|
599
|
-
breakpoint: P.value.table.responsiveBreakpoint
|
|
600
|
-
},
|
|
601
|
-
colNames: e
|
|
602
|
-
};
|
|
603
|
-
}), Z = b(!1);
|
|
604
|
-
function vn(e) {
|
|
605
|
-
Z.value = e, At.value += 1;
|
|
606
|
-
}
|
|
607
|
-
function yn() {
|
|
608
|
-
U.value.showTable = !U.value.showTable;
|
|
609
|
-
}
|
|
610
|
-
function bn() {
|
|
611
|
-
U.value.showTooltip = !U.value.showTooltip;
|
|
612
|
-
}
|
|
613
|
-
let Q = b(!1);
|
|
614
|
-
function xn() {
|
|
615
|
-
Q.value = !Q.value;
|
|
616
|
-
}
|
|
617
|
-
async function Sn({ scale: e = 2 } = {}) {
|
|
618
|
-
if (!A.value) return;
|
|
619
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
620
|
-
domElement: A.value,
|
|
621
|
-
base64: !0,
|
|
622
|
-
img: !0,
|
|
623
|
-
scale: e
|
|
624
|
-
});
|
|
625
|
-
return {
|
|
626
|
-
imageUri: i,
|
|
627
|
-
base64: a,
|
|
628
|
-
title: F.value.title.text,
|
|
629
|
-
width: t,
|
|
630
|
-
height: n,
|
|
631
|
-
aspectRatio: r
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
let Cn = b([]), wn = b({
|
|
635
|
-
start: 0,
|
|
636
|
-
end: Y.value.length
|
|
637
|
-
});
|
|
638
|
-
_e({
|
|
639
|
-
timeLabelsEls: It,
|
|
640
|
-
timeLabels: Cn,
|
|
641
|
-
slicer: wn,
|
|
642
|
-
configRef: P,
|
|
643
|
-
rotationPath: [
|
|
644
|
-
"style",
|
|
645
|
-
"layout",
|
|
646
|
-
"dataLabels",
|
|
647
|
-
"xAxis",
|
|
648
|
-
"rotation"
|
|
649
|
-
],
|
|
650
|
-
autoRotatePath: [
|
|
651
|
-
"style",
|
|
652
|
-
"layout",
|
|
653
|
-
"dataLabels",
|
|
654
|
-
"xAxis",
|
|
655
|
-
"autoRotate",
|
|
656
|
-
"enable"
|
|
657
|
-
],
|
|
658
|
-
isAutoSize: !1,
|
|
659
|
-
width: rn,
|
|
660
|
-
height: an,
|
|
661
|
-
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
662
|
-
rotation: F.value.layout.dataLabels.xAxis.autoRotate.angle
|
|
663
|
-
});
|
|
664
|
-
let $ = u(() => {
|
|
665
|
-
let e = P.value.table.useDialog && !P.value.table.show, t = U.value.showTable;
|
|
666
|
-
return {
|
|
667
|
-
component: e ? Ct : vt,
|
|
668
|
-
title: `${F.value.title.text}${F.value.title.subtitle.text ? `: ${F.value.title.subtitle.text}` : ""}`,
|
|
669
|
-
props: e ? {
|
|
670
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
671
|
-
color: P.value.table.th.color,
|
|
672
|
-
headerColor: P.value.table.th.color,
|
|
673
|
-
headerBg: P.value.table.th.backgroundColor,
|
|
674
|
-
isFullscreen: Z.value,
|
|
675
|
-
fullscreenParent: A.value,
|
|
676
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
677
|
-
isCursorPointer: z.value
|
|
678
|
-
} : {
|
|
679
|
-
hideDetails: !0,
|
|
680
|
-
config: {
|
|
681
|
-
open: t,
|
|
682
|
-
maxHeight: 1e4,
|
|
683
|
-
body: {
|
|
684
|
-
backgroundColor: F.value.backgroundColor,
|
|
685
|
-
color: F.value.color
|
|
686
|
-
},
|
|
687
|
-
head: {
|
|
688
|
-
backgroundColor: F.value.backgroundColor,
|
|
689
|
-
color: F.value.color
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
});
|
|
695
|
-
ze(() => U.value.showTable, (e) => {
|
|
696
|
-
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
697
|
-
});
|
|
698
|
-
function Tn() {
|
|
699
|
-
U.value.showTable = !1, Lt.value && Lt.value.setTableIconState(!1);
|
|
700
|
-
}
|
|
701
|
-
let En = u(() => P.value.style.backgroundColor), Dn = u(() => P.value.style.title), { isCallbackImaging: On, isCallbackSvg: kn, generateSvg: An, onGenerateImage: jn } = ge({
|
|
702
|
-
svg: B,
|
|
703
|
-
title: Dn,
|
|
704
|
-
legend: null,
|
|
705
|
-
legendItems: null,
|
|
706
|
-
backgroundColor: En,
|
|
707
|
-
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
708
|
-
generateImage: tn
|
|
709
|
-
});
|
|
710
|
-
async function Mn() {
|
|
711
|
-
if (Dt("copyAlt", {
|
|
712
|
-
config: P.value,
|
|
713
|
-
dataset: Y.value
|
|
714
|
-
}), !P.value.userOptions.callbacks.altCopy) {
|
|
715
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
719
|
-
config: P.value,
|
|
720
|
-
dataset: Y.value
|
|
721
|
-
}));
|
|
722
|
-
}
|
|
723
|
-
function Nn() {
|
|
724
|
-
zt.value = !0;
|
|
725
|
-
}
|
|
726
|
-
function Pn() {
|
|
727
|
-
k.value = null, M.value = null, N.value = "pointer", O.value = !1, zt.value = !1;
|
|
728
|
-
}
|
|
729
|
-
function Fn(e) {
|
|
730
|
-
if (!B.value || Q.value || document.activeElement !== B.value || !Y.value.length) return;
|
|
731
|
-
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
732
|
-
if (!t && !n && !r && !i) return;
|
|
733
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
734
|
-
k.value = null, M.value = null, N.value = "pointer", O.value = !1;
|
|
735
|
-
return;
|
|
736
|
-
}
|
|
737
|
-
if (r) {
|
|
738
|
-
if (M.value === null) return;
|
|
739
|
-
let e = E.dataset[M.value];
|
|
740
|
-
if (!e) return;
|
|
741
|
-
pn(M.value, e);
|
|
742
|
-
return;
|
|
743
|
-
}
|
|
744
|
-
let a = M.value, o = k.value, ee = a !== null && a >= 0 && a < Y.value.length, te = o !== null && o >= 0 && o < Y.value.length;
|
|
745
|
-
ee ? t ? a = a - 1 < 0 ? Y.value.length - 1 : a - 1 : n && (a = a + 1 > Y.value.length - 1 ? 0 : a + 1) : te ? (a = n ? o + 1 : o - 1, a >= Y.value.length && (a = 0), a < 0 && (a = Y.value.length - 1)) : a = n ? 0 : Y.value.length - 1;
|
|
746
|
-
let s = E.dataset[a];
|
|
747
|
-
s && gn(a, s, "keyboard");
|
|
748
|
-
}
|
|
749
|
-
return be({
|
|
750
|
-
getImage: Sn,
|
|
751
|
-
generatePdf: en,
|
|
752
|
-
generateCsv: _n,
|
|
753
|
-
generateImage: tn,
|
|
754
|
-
generateSvg: An,
|
|
755
|
-
toggleTable: yn,
|
|
756
|
-
toggleTooltip: bn,
|
|
757
|
-
toggleAnnotator: xn,
|
|
758
|
-
toggleFullscreen: vn,
|
|
759
|
-
copyAlt: Mn
|
|
760
|
-
}), (n, r) => (y(), p("div", {
|
|
761
|
-
class: Me(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
762
|
-
ref_key: "agePyramid",
|
|
763
|
-
ref: A,
|
|
764
|
-
id: `vue-ui-age-pyramid_${D.value}`,
|
|
765
|
-
style: Ne(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive ? "height:100%" : ""}`),
|
|
766
|
-
onMouseenter: r[1] ||= () => w(Gt)(!0),
|
|
767
|
-
onMouseleave: r[2] ||= () => w(Gt)(!1)
|
|
768
|
-
}, [
|
|
769
|
-
m("div", {
|
|
770
|
-
id: `chart-instructions-${D.value}`,
|
|
771
|
-
class: "sr-only"
|
|
772
|
-
}, [m("p", null, C(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
|
|
773
|
-
X.value?.body?.length ? (y(), d(we, {
|
|
774
|
-
key: 0,
|
|
775
|
-
uid: D.value,
|
|
776
|
-
head: X.value.head,
|
|
777
|
-
body: X.value.body,
|
|
778
|
-
notice: P.value.a11y.translations.tableAvailable,
|
|
779
|
-
caption: P.value.a11y.translations.tableCaption
|
|
780
|
-
}, null, 8, [
|
|
781
|
-
"uid",
|
|
782
|
-
"head",
|
|
783
|
-
"body",
|
|
784
|
-
"notice",
|
|
785
|
-
"caption"
|
|
786
|
-
])) : f("", !0),
|
|
787
|
-
P.value.userOptions.buttons.annotator ? (y(), d(w(bt), {
|
|
788
|
-
key: 1,
|
|
789
|
-
svgRef: w(B),
|
|
790
|
-
backgroundColor: F.value.backgroundColor,
|
|
791
|
-
color: F.value.color,
|
|
792
|
-
active: Q.value,
|
|
793
|
-
isCursorPointer: z.value,
|
|
794
|
-
palette: P.value.userOptions.annotatorPalette,
|
|
795
|
-
onClose: xn
|
|
796
|
-
}, {
|
|
797
|
-
"annotator-action-close": T(() => [S(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
798
|
-
"annotator-action-color": T(({ color: e }) => [S(n.$slots, "annotator-action-color", v(_({ color: e })), void 0, !0)]),
|
|
799
|
-
"annotator-action-draw": T(({ mode: e }) => [S(n.$slots, "annotator-action-draw", v(_({ mode: e })), void 0, !0)]),
|
|
800
|
-
"annotator-action-undo": T(({ disabled: e }) => [S(n.$slots, "annotator-action-undo", v(_({ disabled: e })), void 0, !0)]),
|
|
801
|
-
"annotator-action-redo": T(({ disabled: e }) => [S(n.$slots, "annotator-action-redo", v(_({ disabled: e })), void 0, !0)]),
|
|
802
|
-
"annotator-action-delete": T(({ disabled: e }) => [S(n.$slots, "annotator-action-delete", v(_({ disabled: e })), void 0, !0)]),
|
|
803
|
-
_: 3
|
|
804
|
-
}, 8, [
|
|
805
|
-
"svgRef",
|
|
806
|
-
"backgroundColor",
|
|
807
|
-
"color",
|
|
808
|
-
"active",
|
|
809
|
-
"isCursorPointer",
|
|
810
|
-
"palette"
|
|
811
|
-
])) : f("", !0),
|
|
812
|
-
nn.value ? (y(), p("div", {
|
|
813
|
-
key: 2,
|
|
814
|
-
ref_key: "noTitle",
|
|
815
|
-
ref: Nt,
|
|
816
|
-
class: "vue-data-ui-no-title-space",
|
|
817
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
818
|
-
}, null, 512)) : f("", !0),
|
|
819
|
-
F.value.title.text ? (y(), p("div", {
|
|
820
|
-
key: 3,
|
|
821
|
-
ref_key: "chartTitle",
|
|
822
|
-
ref: jt,
|
|
823
|
-
style: "width:100%;background:transparent"
|
|
824
|
-
}, [(y(), d(ye, {
|
|
825
|
-
key: `title_${Pt.value}`,
|
|
826
|
-
config: {
|
|
827
|
-
title: {
|
|
828
|
-
cy: "pyramid-div-title",
|
|
829
|
-
...F.value.title
|
|
830
|
-
},
|
|
831
|
-
subtitle: {
|
|
832
|
-
cy: "pyramid-div-subtitle",
|
|
833
|
-
...F.value.title.subtitle
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
837
|
-
P.value.userOptions.show && Ot.value && (w(Kt) || w(Wt)) ? (y(), d(w(xt), {
|
|
838
|
-
ref_key: "userOptionsRef",
|
|
839
|
-
ref: Lt,
|
|
840
|
-
key: `user_options_${At.value}`,
|
|
841
|
-
backgroundColor: F.value.backgroundColor,
|
|
842
|
-
color: F.value.color,
|
|
843
|
-
isImaging: w($t),
|
|
844
|
-
isPrinting: w(Qt),
|
|
845
|
-
uid: D.value,
|
|
846
|
-
hasTooltip: P.value.userOptions.buttons.tooltip && F.value.tooltip.show,
|
|
847
|
-
hasPdf: P.value.userOptions.buttons.pdf,
|
|
848
|
-
hasXls: P.value.userOptions.buttons.csv,
|
|
849
|
-
hasImg: P.value.userOptions.buttons.img,
|
|
850
|
-
hasSvg: P.value.userOptions.buttons.svg,
|
|
851
|
-
hasTable: P.value.userOptions.buttons.table,
|
|
852
|
-
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
853
|
-
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
854
|
-
isFullscreen: Z.value,
|
|
855
|
-
isTooltip: U.value.showTooltip,
|
|
856
|
-
titles: { ...P.value.userOptions.buttonTitles },
|
|
857
|
-
chartElement: A.value,
|
|
858
|
-
position: P.value.userOptions.position,
|
|
859
|
-
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
860
|
-
isAnnotation: Q.value,
|
|
861
|
-
callbacks: P.value.userOptions.callbacks,
|
|
862
|
-
printScale: P.value.userOptions.print.scale,
|
|
863
|
-
tableDialog: P.value.table.useDialog,
|
|
864
|
-
isCursorPointer: z.value,
|
|
865
|
-
onToggleFullscreen: vn,
|
|
866
|
-
onGeneratePdf: w(en),
|
|
867
|
-
onGenerateCsv: _n,
|
|
868
|
-
onGenerateImage: w(jn),
|
|
869
|
-
onGenerateSvg: w(An),
|
|
870
|
-
onToggleTable: yn,
|
|
871
|
-
onToggleTooltip: bn,
|
|
872
|
-
onToggleAnnotator: xn,
|
|
873
|
-
onCopyAlt: Mn,
|
|
874
|
-
style: Ne({ visibility: w(Kt) ? w(Wt) ? "visible" : "hidden" : "visible" })
|
|
875
|
-
}, Oe({ _: 2 }, [
|
|
876
|
-
n.$slots.menuIcon ? {
|
|
877
|
-
name: "menuIcon",
|
|
878
|
-
fn: T(({ isOpen: e, color: t }) => [S(n.$slots, "menuIcon", v(_({
|
|
879
|
-
isOpen: e,
|
|
880
|
-
color: t
|
|
881
|
-
})), void 0, !0)]),
|
|
882
|
-
key: "0"
|
|
883
|
-
} : void 0,
|
|
884
|
-
n.$slots.optionTooltip ? {
|
|
885
|
-
name: "optionTooltip",
|
|
886
|
-
fn: T(() => [S(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
887
|
-
key: "1"
|
|
888
|
-
} : void 0,
|
|
889
|
-
n.$slots.optionPdf ? {
|
|
890
|
-
name: "optionPdf",
|
|
891
|
-
fn: T(() => [S(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
892
|
-
key: "2"
|
|
893
|
-
} : void 0,
|
|
894
|
-
n.$slots.optionCsv ? {
|
|
895
|
-
name: "optionCsv",
|
|
896
|
-
fn: T(() => [S(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
897
|
-
key: "3"
|
|
898
|
-
} : void 0,
|
|
899
|
-
n.$slots.optionImg ? {
|
|
900
|
-
name: "optionImg",
|
|
901
|
-
fn: T(() => [S(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
902
|
-
key: "4"
|
|
903
|
-
} : void 0,
|
|
904
|
-
n.$slots.optionSvg ? {
|
|
905
|
-
name: "optionSvg",
|
|
906
|
-
fn: T(() => [S(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
907
|
-
key: "5"
|
|
908
|
-
} : void 0,
|
|
909
|
-
n.$slots.optionTable ? {
|
|
910
|
-
name: "optionTable",
|
|
911
|
-
fn: T(() => [S(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
912
|
-
key: "6"
|
|
913
|
-
} : void 0,
|
|
914
|
-
n.$slots.optionFullscreen ? {
|
|
915
|
-
name: "optionFullscreen",
|
|
916
|
-
fn: T(({ toggleFullscreen: e, isFullscreen: t }) => [S(n.$slots, "optionFullscreen", v(_({
|
|
917
|
-
toggleFullscreen: e,
|
|
918
|
-
isFullscreen: t
|
|
919
|
-
})), void 0, !0)]),
|
|
920
|
-
key: "7"
|
|
921
|
-
} : void 0,
|
|
922
|
-
n.$slots.optionAnnotator ? {
|
|
923
|
-
name: "optionAnnotator",
|
|
924
|
-
fn: T(({ toggleAnnotator: e, isAnnotator: t }) => [S(n.$slots, "optionAnnotator", v(_({
|
|
925
|
-
toggleAnnotator: e,
|
|
926
|
-
isAnnotator: t
|
|
927
|
-
})), void 0, !0)]),
|
|
928
|
-
key: "8"
|
|
929
|
-
} : void 0,
|
|
930
|
-
n.$slots.optionAltCopy ? {
|
|
931
|
-
name: "optionAltCopy",
|
|
932
|
-
fn: T(({ altCopy: e }) => [S(n.$slots, "optionAltCopy", v(_({ altCopy: e })), void 0, !0)]),
|
|
933
|
-
key: "9"
|
|
934
|
-
} : void 0,
|
|
935
|
-
n.$slots["custom-menu-before"] ? {
|
|
936
|
-
name: "custom-menu-before",
|
|
937
|
-
fn: T(() => [S(n.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
938
|
-
key: "10"
|
|
939
|
-
} : void 0,
|
|
940
|
-
n.$slots["custom-menu-after"] ? {
|
|
941
|
-
name: "custom-menu-after",
|
|
942
|
-
fn: T(() => [S(n.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
943
|
-
key: "11"
|
|
944
|
-
} : void 0
|
|
945
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : f("", !0),
|
|
946
|
-
m("div", We, [(y(), p("svg", {
|
|
947
|
-
ref_key: "svgRef",
|
|
948
|
-
ref: B,
|
|
949
|
-
xmlns: w(oe),
|
|
950
|
-
class: Me({
|
|
951
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
952
|
-
"vue-data-ui-fulscreen--off": !Z.value
|
|
953
|
-
}),
|
|
954
|
-
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
|
|
955
|
-
style: Ne(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color}`),
|
|
956
|
-
tabindex: "0",
|
|
957
|
-
"aria-describedby": `chart-instructions-${D.value}`,
|
|
958
|
-
onFocus: Nn,
|
|
959
|
-
onBlur: Pn,
|
|
960
|
-
onKeydown: Fn
|
|
961
|
-
}, [
|
|
962
|
-
h(w(St)),
|
|
963
|
-
n.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
964
|
-
key: 0,
|
|
965
|
-
x: G.value.left,
|
|
966
|
-
y: G.value.top,
|
|
967
|
-
width: Math.max(.1, G.value.width),
|
|
968
|
-
height: Math.max(.1, G.value.height),
|
|
969
|
-
style: { pointerEvents: "none" }
|
|
970
|
-
}, [S(n.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : f("", !0),
|
|
971
|
-
m("defs", null, [h(Ce, {
|
|
972
|
-
t: "linear",
|
|
973
|
-
id: `age_pyramid_left_${D.value}`,
|
|
974
|
-
x1: "0%",
|
|
975
|
-
y1: "0%",
|
|
976
|
-
x2: "100%",
|
|
977
|
-
y2: "0%",
|
|
978
|
-
stops: [[
|
|
979
|
-
"0%",
|
|
980
|
-
L.value.left.color,
|
|
981
|
-
1
|
|
982
|
-
], [
|
|
983
|
-
"100%",
|
|
984
|
-
w(a)(w(ee)(L.value.left.color, L.value.gradient.shiftHue), 100 - L.value.gradient.intensity),
|
|
985
|
-
1
|
|
986
|
-
]]
|
|
987
|
-
}, null, 8, ["id", "stops"]), h(Ce, {
|
|
988
|
-
t: "linear",
|
|
989
|
-
id: `age_pyramid_right_${D.value}`,
|
|
990
|
-
x1: "0%",
|
|
991
|
-
y1: "0%",
|
|
992
|
-
x2: "100%",
|
|
993
|
-
y2: "0%",
|
|
994
|
-
stops: [[
|
|
995
|
-
"0%",
|
|
996
|
-
w(a)(w(ee)(L.value.right.color, L.value.gradient.shiftHue), 100 - L.value.gradient.intensity),
|
|
997
|
-
1
|
|
998
|
-
], [
|
|
999
|
-
"100%",
|
|
1000
|
-
L.value.right.color,
|
|
1001
|
-
1
|
|
1002
|
-
]]
|
|
1003
|
-
}, null, 8, ["id", "stops"])]),
|
|
1004
|
-
(y(!0), p(l, null, x(Y.value, (e, t) => (y(), p("g", null, [
|
|
1005
|
-
m("rect", {
|
|
1006
|
-
x: e.left.x,
|
|
1007
|
-
y: e.left.y,
|
|
1008
|
-
width: w(s)(e.left.width <= 0 ? 1e-4 : e.left.width),
|
|
1009
|
-
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
1010
|
-
fill: L.value.gradient.underlayer,
|
|
1011
|
-
rx: L.value.borderRadius
|
|
1012
|
-
}, null, 8, qe),
|
|
1013
|
-
m("rect", {
|
|
1014
|
-
x: e.left.x,
|
|
1015
|
-
y: e.left.y,
|
|
1016
|
-
width: e.left.width <= 0 ? 1e-4 : e.left.width,
|
|
1017
|
-
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
1018
|
-
fill: L.value.gradient.show ? `url(#age_pyramid_left_${D.value})` : e.left.color,
|
|
1019
|
-
rx: L.value.borderRadius
|
|
1020
|
-
}, null, 8, Je),
|
|
1021
|
-
m("rect", {
|
|
1022
|
-
x: e.right.x,
|
|
1023
|
-
y: e.right.y,
|
|
1024
|
-
width: e.right.width <= 0 ? 1e-4 : e.right.width,
|
|
1025
|
-
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
1026
|
-
fill: L.value.gradient.underlayer,
|
|
1027
|
-
rx: L.value.borderRadius
|
|
1028
|
-
}, null, 8, Ye),
|
|
1029
|
-
m("rect", {
|
|
1030
|
-
x: e.right.x,
|
|
1031
|
-
y: e.right.y,
|
|
1032
|
-
width: e.right.width <= 0 ? 1e-4 : e.right.width,
|
|
1033
|
-
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
1034
|
-
fill: L.value.gradient.show ? `url(#age_pyramid_right_${D.value})` : e.right.color,
|
|
1035
|
-
rx: L.value.borderRadius
|
|
1036
|
-
}, null, 8, Xe)
|
|
1037
|
-
]))), 256)),
|
|
1038
|
-
(y(!0), p(l, null, x(Y.value, (e, n) => (y(), p("g", null, [R.value.show ? (y(), p(l, { key: 0 }, [!R.value.showOnHover || R.value.showOnHover && k.value === n ? (y(), p("text", {
|
|
1039
|
-
key: 0,
|
|
1040
|
-
x: e.left.x + Math.max(1e-4, e.left.width) - R.value.offsetX - 6,
|
|
1041
|
-
y: e.left.y + Math.max(1e-4, e.left.height / 2) + L.value.gap / 2,
|
|
1042
|
-
"text-anchor": "end",
|
|
1043
|
-
"dominant-baseline": "middle",
|
|
1044
|
-
"font-size": R.value.fontSize,
|
|
1045
|
-
"font-weight": R.value.bold ? "bold" : "normal",
|
|
1046
|
-
fill: R.value.color,
|
|
1047
|
-
stroke: F.value.backgroundColor,
|
|
1048
|
-
"paint-order": "stroke fill",
|
|
1049
|
-
"stroke-linecap": "round",
|
|
1050
|
-
"stroke-linejoin": "round",
|
|
1051
|
-
"stroke-width": "3"
|
|
1052
|
-
}, C(w(c)(R.value.formatter, e.left.value, w(t)({ v: e.left.value }), {
|
|
1053
|
-
datapoint: e.left,
|
|
1054
|
-
seriesIndex: n
|
|
1055
|
-
})), 9, Ze)) : f("", !0)], 64)) : f("", !0), R.value.show ? (y(), p(l, { key: 1 }, [!R.value.showOnHover || R.value.showOnHover && k.value === n ? (y(), p("text", {
|
|
1056
|
-
key: 0,
|
|
1057
|
-
x: e.right.x + R.value.offsetX + 6,
|
|
1058
|
-
y: e.right.y + Math.max(1e-4, e.right.height / 2) + L.value.gap / 2,
|
|
1059
|
-
"text-anchor": "start",
|
|
1060
|
-
"dominant-baseline": "middle",
|
|
1061
|
-
"font-size": R.value.fontSize,
|
|
1062
|
-
"font-weight": R.value.bold ? "bold" : "normal",
|
|
1063
|
-
fill: R.value.color,
|
|
1064
|
-
stroke: F.value.backgroundColor,
|
|
1065
|
-
"paint-order": "stroke fill",
|
|
1066
|
-
"stroke-linecap": "round",
|
|
1067
|
-
"stroke-linejoin": "round",
|
|
1068
|
-
"stroke-width": "3"
|
|
1069
|
-
}, C(w(c)(R.value.formatter, e.right.value, w(t)({ v: e.right.value }), {
|
|
1070
|
-
datapoint: e.right,
|
|
1071
|
-
seriesIndex: n
|
|
1072
|
-
})), 9, Qe)) : f("", !0)], 64)) : f("", !0)]))), 256)),
|
|
1073
|
-
m("g", null, [
|
|
1074
|
-
I.value.sideTitles.show ? (y(), p("g", $e, [m("text", {
|
|
1075
|
-
x: G.value.left,
|
|
1076
|
-
y: I.value.sideTitles.fontSize,
|
|
1077
|
-
fill: I.value.sideTitles.useSideColor ? L.value.left.color : I.value.sideTitles.color,
|
|
1078
|
-
"font-size": I.value.sideTitles.fontSize,
|
|
1079
|
-
"text-anchor": "start",
|
|
1080
|
-
"font-weight": I.value.sideTitles.bold ? "bold" : "normal"
|
|
1081
|
-
}, C(P.value.translations.female), 9, et), m("text", {
|
|
1082
|
-
x: G.value.right,
|
|
1083
|
-
y: I.value.sideTitles.fontSize,
|
|
1084
|
-
fill: I.value.sideTitles.useSideColor ? L.value.right.color : I.value.sideTitles.color,
|
|
1085
|
-
"font-size": I.value.sideTitles.fontSize,
|
|
1086
|
-
"text-anchor": "end",
|
|
1087
|
-
"font-weight": I.value.sideTitles.bold ? "bold" : "normal"
|
|
1088
|
-
}, C(P.value.translations.male), 9, tt)])) : f("", !0),
|
|
1089
|
-
I.value.yAxis.show ? (y(), p("g", nt, [(y(!0), p(l, null, x(cn.value, (e, n) => (y(), p(l, null, [n % I.value.yAxis.showEvery === 0 && (!R.value.show || R.value.showOnHover && k.value === n || k.value === null) || (R.value.show || R.value.showOnHover) && k.value === n ? (y(), p("text", {
|
|
1090
|
-
key: 0,
|
|
1091
|
-
x: G.value.centerX,
|
|
1092
|
-
y: G.value.top + G.value.height / J.value / 2 + G.value.height / J.value * n,
|
|
1093
|
-
"dominant-baseline": "middle",
|
|
1094
|
-
"text-anchor": "middle",
|
|
1095
|
-
"font-size": I.value.yAxis.fontSize,
|
|
1096
|
-
fill: I.value.yAxis.color,
|
|
1097
|
-
"font-weight": I.value.yAxis.bold ? "bold" : "normal"
|
|
1098
|
-
}, C(w(c)(I.value.yAxis.formatter, e, w(t)({ v: e }), {
|
|
1099
|
-
datapoint: e,
|
|
1100
|
-
seriesIndex: n
|
|
1101
|
-
})), 9, rt)) : f("", !0)], 64))), 256))])) : f("", !0),
|
|
1102
|
-
I.value.xAxis.show ? (y(), p("g", it, [
|
|
1103
|
-
F.value.layout.grid.show ? (y(), p("g", at, [m("line", {
|
|
1104
|
-
x1: K.value.right[0].x,
|
|
1105
|
-
x2: K.value.right.at(-1).x,
|
|
1106
|
-
y1: G.value.bottom + I.value.xAxis.fontSize / 2,
|
|
1107
|
-
y2: G.value.bottom + I.value.xAxis.fontSize / 2,
|
|
1108
|
-
stroke: F.value.layout.grid.stroke,
|
|
1109
|
-
"stroke-width": F.value.layout.grid.strokeWidth,
|
|
1110
|
-
"stroke-linecap": "round"
|
|
1111
|
-
}, null, 8, ot), m("line", {
|
|
1112
|
-
x1: K.value.left[0].x,
|
|
1113
|
-
x2: K.value.left.at(-1).x,
|
|
1114
|
-
y1: G.value.bottom + I.value.xAxis.fontSize / 2,
|
|
1115
|
-
y2: G.value.bottom + I.value.xAxis.fontSize / 2,
|
|
1116
|
-
stroke: F.value.layout.grid.stroke,
|
|
1117
|
-
"stroke-width": F.value.layout.grid.strokeWidth,
|
|
1118
|
-
"stroke-linecap": "round"
|
|
1119
|
-
}, null, 8, st)])) : f("", !0),
|
|
1120
|
-
(y(!0), p(l, null, x(K.value.right, (e, t) => (y(), p("g", null, [F.value.layout.grid.show ? (y(), p("line", {
|
|
1121
|
-
key: 0,
|
|
1122
|
-
x1: e.x,
|
|
1123
|
-
x2: e.x,
|
|
1124
|
-
y1: G.value.bottom + I.value.xAxis.fontSize / 2,
|
|
1125
|
-
y2: G.value.bottom + I.value.xAxis.fontSize / 2 + 4,
|
|
1126
|
-
stroke: F.value.layout.grid.stroke,
|
|
1127
|
-
"stroke-width": F.value.layout.grid.strokeWidth,
|
|
1128
|
-
"stroke-linecap": "round"
|
|
1129
|
-
}, null, 8, ct)) : f("", !0)]))), 256)),
|
|
1130
|
-
(y(!0), p(l, null, x(K.value.left, (e, t) => (y(), p("g", null, [F.value.layout.grid.show ? (y(), p("line", {
|
|
1131
|
-
key: 0,
|
|
1132
|
-
x1: e.x,
|
|
1133
|
-
x2: e.x,
|
|
1134
|
-
y1: G.value.bottom + I.value.xAxis.fontSize / 2,
|
|
1135
|
-
y2: G.value.bottom + I.value.xAxis.fontSize / 2 + 4,
|
|
1136
|
-
stroke: F.value.layout.grid.stroke,
|
|
1137
|
-
"stroke-width": F.value.layout.grid.strokeWidth,
|
|
1138
|
-
"stroke-linecap": "round"
|
|
1139
|
-
}, null, 8, lt)) : f("", !0)]))), 256)),
|
|
1140
|
-
m("g", {
|
|
1141
|
-
ref_key: "xAxisLabels",
|
|
1142
|
-
ref: It
|
|
1143
|
-
}, [(y(!0), p(l, null, x(K.value.right, (e, n) => (y(), p("text", {
|
|
1144
|
-
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1145
|
-
"font-size": I.value.xAxis.fontSize,
|
|
1146
|
-
fill: I.value.xAxis.color,
|
|
1147
|
-
"text-anchor": I.value.xAxis.rotation > 0 ? "start" : I.value.xAxis.rotation < 0 ? "end" : "middle",
|
|
1148
|
-
"font-weight": I.value.xAxis.bold ? "bold" : "normal",
|
|
1149
|
-
transform: `translate(${e.x}, ${G.value.bottom + I.value.xAxis.fontSize * 2}) rotate(${I.value.xAxis.rotation})`
|
|
1150
|
-
}, C(w(c)(I.value.xAxis.formatter, e.value / I.value.xAxis.scale, w(t)({ v: e.value / F.value.layout.dataLabels.xAxis.scale }), {
|
|
1151
|
-
datapoint: e,
|
|
1152
|
-
seriesIndex: n
|
|
1153
|
-
})), 9, ut))), 256)), (y(!0), p(l, null, x(K.value.left, (e, n) => (y(), p("text", {
|
|
1154
|
-
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1155
|
-
"font-size": I.value.xAxis.fontSize,
|
|
1156
|
-
fill: I.value.xAxis.color,
|
|
1157
|
-
"text-anchor": I.value.xAxis.rotation > 0 ? "start" : I.value.xAxis.rotation < 0 ? "end" : "middle",
|
|
1158
|
-
"font-weight": I.value.xAxis.bold ? "bold" : "normal",
|
|
1159
|
-
transform: `translate(${e.x}, ${G.value.bottom + I.value.xAxis.fontSize * 2}) rotate(${I.value.xAxis.rotation})`
|
|
1160
|
-
}, C(w(c)(I.value.xAxis.formatter, e.value / I.value.xAxis.scale, w(t)({ v: e.value / F.value.layout.dataLabels.xAxis.scale }), {
|
|
1161
|
-
datapoint: e,
|
|
1162
|
-
seriesIndex: n
|
|
1163
|
-
})), 9, dt))), 256))], 512),
|
|
1164
|
-
m("text", {
|
|
1165
|
-
x: G.value.right,
|
|
1166
|
-
y: W.value.height,
|
|
1167
|
-
"text-anchor": "end",
|
|
1168
|
-
"font-size": I.value.xAxis.fontSize,
|
|
1169
|
-
fill: I.value.xAxis.color,
|
|
1170
|
-
"font-weight": I.value.xAxis.bold ? "bold" : "normal"
|
|
1171
|
-
}, C(I.value.xAxis.translation), 9, ft)
|
|
1172
|
-
])) : f("", !0)
|
|
1173
|
-
]),
|
|
1174
|
-
(y(!0), p(l, null, x(e.dataset, (e, t) => (y(), p("g", null, [m("rect", {
|
|
1175
|
-
x: G.value.left,
|
|
1176
|
-
y: G.value.top + G.value.height / J.value * t - L.value.gap / 2,
|
|
1177
|
-
width: G.value.width <= 0 ? 1e-4 : G.value.width,
|
|
1178
|
-
height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
|
|
1179
|
-
fill: k.value !== null && k.value === t ? w(a)(F.value.highlighter.color, F.value.highlighter.opacity) : "transparent",
|
|
1180
|
-
onMouseover: (n) => gn(t, e, "pointer"),
|
|
1181
|
-
onMouseleave: (n) => mn(t, e),
|
|
1182
|
-
onClick: (n) => pn(t, e)
|
|
1183
|
-
}, null, 40, pt)]))), 256)),
|
|
1184
|
-
S(n.$slots, "svg", { svg: {
|
|
1185
|
-
...W.value,
|
|
1186
|
-
drawingArea: G.value,
|
|
1187
|
-
isPrintingImg: w(Qt) || w($t) || w(On),
|
|
1188
|
-
isPrintingSvg: w(kn)
|
|
1189
|
-
} }, void 0, !0)
|
|
1190
|
-
], 46, Ge)), n.$slots.hint ? (y(), p("div", mt, [S(n.$slots, "hint", v(_({
|
|
1191
|
-
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1192
|
-
isVisible: zt.value
|
|
1193
|
-
})), void 0, !0)])) : f("", !0)]),
|
|
1194
|
-
n.$slots.watermark ? (y(), p("div", ht, [S(n.$slots, "watermark", v(_({ isPrinting: w(Qt) || w($t) || w(On) || w(kn) })), void 0, !0)])) : f("", !0),
|
|
1195
|
-
S(n.$slots, "legend", { legend: Y.value }, void 0, !0),
|
|
1196
|
-
n.$slots.source ? (y(), p("div", {
|
|
1197
|
-
key: 6,
|
|
1198
|
-
ref_key: "source",
|
|
1199
|
-
ref: Mt,
|
|
1200
|
-
dir: "auto"
|
|
1201
|
-
}, [S(n.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1202
|
-
h(w(gt), {
|
|
1203
|
-
teleportTo: F.value.tooltip.teleportTo,
|
|
1204
|
-
show: U.value.showTooltip && O.value,
|
|
1205
|
-
backgroundColor: F.value.tooltip.backgroundColor,
|
|
1206
|
-
color: F.value.tooltip.color,
|
|
1207
|
-
borderRadius: F.value.tooltip.borderRadius,
|
|
1208
|
-
borderColor: F.value.tooltip.borderColor,
|
|
1209
|
-
borderWidth: F.value.tooltip.borderWidth,
|
|
1210
|
-
fontSize: F.value.tooltip.fontSize,
|
|
1211
|
-
backgroundOpacity: F.value.tooltip.backgroundOpacity,
|
|
1212
|
-
position: F.value.tooltip.position,
|
|
1213
|
-
offsetX: F.value.tooltip.offsetX,
|
|
1214
|
-
offsetY: F.value.tooltip.offsetY,
|
|
1215
|
-
parent: A.value,
|
|
1216
|
-
content: kt.value,
|
|
1217
|
-
isFullscreen: Z.value,
|
|
1218
|
-
isCustom: F.value.tooltip.customFormat && typeof F.value.tooltip.customFormat == "function",
|
|
1219
|
-
smooth: F.value.tooltip.smooth,
|
|
1220
|
-
backdropFilter: F.value.tooltip.backdropFilter,
|
|
1221
|
-
smoothForce: F.value.tooltip.smoothForce,
|
|
1222
|
-
smoothSnapThreshold: F.value.tooltip.smoothSnapThreshold,
|
|
1223
|
-
isA11yMode: N.value === "keyboard",
|
|
1224
|
-
a11yPosition: Rt.value
|
|
1225
|
-
}, {
|
|
1226
|
-
"tooltip-before": T(() => [S(n.$slots, "tooltip-before", v(_({ ...dn.value })), void 0, !0)]),
|
|
1227
|
-
tooltip: T(() => [S(n.$slots, "tooltip", v(_({ ...dn.value })), void 0, !0)]),
|
|
1228
|
-
"tooltip-after": T(() => [S(n.$slots, "tooltip-after", v(_({ ...dn.value })), void 0, !0)]),
|
|
1229
|
-
_: 3
|
|
1230
|
-
}, 8, [
|
|
1231
|
-
"teleportTo",
|
|
1232
|
-
"show",
|
|
1233
|
-
"backgroundColor",
|
|
1234
|
-
"color",
|
|
1235
|
-
"borderRadius",
|
|
1236
|
-
"borderColor",
|
|
1237
|
-
"borderWidth",
|
|
1238
|
-
"fontSize",
|
|
1239
|
-
"backgroundOpacity",
|
|
1240
|
-
"position",
|
|
1241
|
-
"offsetX",
|
|
1242
|
-
"offsetY",
|
|
1243
|
-
"parent",
|
|
1244
|
-
"content",
|
|
1245
|
-
"isFullscreen",
|
|
1246
|
-
"isCustom",
|
|
1247
|
-
"smooth",
|
|
1248
|
-
"backdropFilter",
|
|
1249
|
-
"smoothForce",
|
|
1250
|
-
"smoothSnapThreshold",
|
|
1251
|
-
"isA11yMode",
|
|
1252
|
-
"a11yPosition"
|
|
1253
|
-
]),
|
|
1254
|
-
Ot.value && P.value.userOptions.buttons.table ? (y(), d(Ie($.value.component), Ae({ key: 7 }, $.value.props, {
|
|
1255
|
-
ref_key: "tableUnit",
|
|
1256
|
-
ref: j,
|
|
1257
|
-
onClose: Tn
|
|
1258
|
-
}), Oe({
|
|
1259
|
-
content: T(() => [(y(), d(w(yt), {
|
|
1260
|
-
key: `table_${Ft.value}`,
|
|
1261
|
-
colNames: X.value.colNames,
|
|
1262
|
-
head: X.value.head,
|
|
1263
|
-
body: X.value.body,
|
|
1264
|
-
config: X.value.config,
|
|
1265
|
-
title: P.value.table.useDialog ? "" : $.value.title,
|
|
1266
|
-
withCloseButton: !P.value.table.useDialog,
|
|
1267
|
-
isCursorPointer: z.value,
|
|
1268
|
-
onClose: Tn
|
|
1269
|
-
}, {
|
|
1270
|
-
th: T(({ th: e }) => [ke(C(e), 1)]),
|
|
1271
|
-
td: T(({ td: e }) => [ke(C(e), 1)]),
|
|
1272
|
-
_: 1
|
|
1273
|
-
}, 8, [
|
|
1274
|
-
"colNames",
|
|
1275
|
-
"head",
|
|
1276
|
-
"body",
|
|
1277
|
-
"config",
|
|
1278
|
-
"title",
|
|
1279
|
-
"withCloseButton",
|
|
1280
|
-
"isCursorPointer"
|
|
1281
|
-
]))]),
|
|
1282
|
-
_: 2
|
|
1283
|
-
}, [P.value.table.useDialog ? {
|
|
1284
|
-
name: "title",
|
|
1285
|
-
fn: T(() => [ke(C($.value.title), 1)]),
|
|
1286
|
-
key: "0"
|
|
1287
|
-
} : void 0, P.value.table.useDialog ? {
|
|
1288
|
-
name: "actions",
|
|
1289
|
-
fn: T(() => [m("button", {
|
|
1290
|
-
tabindex: "0",
|
|
1291
|
-
class: "vue-ui-user-options-button",
|
|
1292
|
-
onClick: r[0] ||= (e) => _n(P.value.userOptions.callbacks.csv),
|
|
1293
|
-
style: Ne({ cursor: z.value ? "pointer" : "default" })
|
|
1294
|
-
}, [h(w(_t), {
|
|
1295
|
-
name: "fileCsv",
|
|
1296
|
-
stroke: $.value.props.color
|
|
1297
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1298
|
-
key: "1"
|
|
1299
|
-
} : void 0]), 1040)) : f("", !0),
|
|
1300
|
-
S(n.$slots, "skeleton", {}, () => [w(Vt) ? (y(), d(pe, { key: 0 })) : f("", !0)], !0)
|
|
1301
|
-
], 46, He));
|
|
1302
|
-
}
|
|
1303
|
-
}, [["__scopeId", "data-v-3f4fd835"]]);
|
|
1304
|
-
//#endregion
|
|
1305
|
-
export { Ve as n, gt as t };
|