vue-data-ui 3.27.0 → 3.27.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/A11yDataTable-DWNlWXzs.js +1 -0
- package/dist/Arrow-CJeSufxg.js +1 -0
- package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
- package/dist/BaseIcon-Cz30ODFA.js +1 -0
- package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
- package/dist/BaseScanner-8NdoBs7B.js +1 -0
- package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
- package/dist/ColorPicker-CUjEw53A.js +1 -0
- package/dist/DataTable-DSUA5M9p.js +1 -0
- package/dist/DefGrad-DKMq1REY.js +1 -0
- package/dist/HillActions-DdvXld3a.js +1 -0
- package/dist/Legend-DokTll4u.js +1 -0
- package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
- package/dist/PackageVersion-D6pKL176.js +1 -0
- package/dist/PenAndPaper-DvJJaeU2.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-tkp65OcG.js +1 -0
- package/dist/SlicerPreview-GFRs2EWB.js +1 -0
- package/dist/SparkTooltip-BlJLvizH.js +1 -0
- package/dist/Title-BRAjxtjG.js +1 -0
- package/dist/Tooltip-BUXB0i6z.js +1 -0
- package/dist/UserOptions-D65t74CM.js +1 -0
- package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/dist/annotationSlots-BRR85CqJ.js +1 -0
- package/dist/chartImage-NwZO-elv.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-Cp3WLHmJ.js +3 -0
- package/dist/exposedLib-CMTeSmyW.js +1 -0
- package/dist/geoProjections-Bvj-eMvq.js +1 -0
- package/dist/img-8sM3sVWU.js +1 -0
- package/dist/labelUtils-Djp5nJtN.js +1 -0
- package/dist/lib-zDxoqrgo.js +12 -0
- package/dist/package-DIR2F6AE.js +1 -0
- package/dist/patternUtils-_q3ArM3g.js +1 -0
- package/dist/pdf-Dlv_ks7R.js +1 -0
- package/dist/render-common-DOYi0f4Z.js +1 -0
- package/dist/resolveChartConfig-BSo1Oe9n.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-CT9phgWx.js +1 -0
- package/dist/useObjectBindings-DM3xDKV3.js +1 -0
- package/dist/usePanZoom-BdjP5Suc.js +1 -0
- package/dist/usePrefersMotion-XLHwega2.js +1 -0
- package/dist/usePrinter-CnyKPIFM.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-BG41UScx.js +1 -0
- package/dist/vue-data-ui.js +1 -79
- package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
- package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
- package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
- package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
- package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
- package/dist/vue-ui-bump-DYajIrva.js +10 -0
- package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
- package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
- package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
- package/dist/vue-ui-chord-fAckHfOW.js +21 -0
- package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
- package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
- package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
- package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
- package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
- package/dist/vue-ui-donut-BaEodt-3.js +22 -0
- package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
- package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
- package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
- package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
- package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
- package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
- package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
- package/dist/vue-ui-geo-CX3yH18H.js +1 -0
- package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
- package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
- package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
- package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
- package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
- package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
- package/dist/vue-ui-label-D1Aog-zO.js +7 -0
- package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
- package/dist/vue-ui-molecule-B13qVX71.js +1 -0
- package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
- package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
- package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.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-CPG6yAiu.js +2 -0
- package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
- package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
- package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
- package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
- package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
- package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
- package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
- package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
- package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
- package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
- package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
- package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
- package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
- package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
- package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
- package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
- package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
- package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
- package/dist/vue-ui-table-Br2JgD_L.js +14 -0
- package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
- package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
- package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
- package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
- package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
- package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
- package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
- package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
- package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
- package/dist/vue-ui-world-Cp0DeauH.js +19 -0
- package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
- package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
- package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -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-nzVwNQYv.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-Da1GwklM.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,1869 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, At as n, D as r, Ht as i, It as a, J as o, Jt as s, Kt as ee, S as c, X as te, Zt as ne, _ as re, at as ie, en as ae, f as oe, h as se, i as ce, nn as le, nt as ue, p as de, t as fe, tt as pe, w as me, y as he, yt as ge, zt as _e } from "./lib-D4wK6ljP.js";
|
|
3
|
-
import { n as ve, t as ye } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as be } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as xe } from "./useConfig-D_6ZrPMD.js";
|
|
6
|
-
import { t as Se } from "./usePrinter-DdW2GSm0.js";
|
|
7
|
-
import { n as Ce, t as we } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
-
import { t as Te } from "./useNestedProp-DR_8JPol.js";
|
|
9
|
-
import { t as Ee } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as De } from "./useChartExport-iwOqiIWX.js";
|
|
11
|
-
import { t as Oe } from "./useTransitions-g_zBREk2.js";
|
|
12
|
-
import { t as ke } from "./useStableElementSize-C7KADDKj.js";
|
|
13
|
-
import { t as Ae } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
14
|
-
import { t as je } from "./img-Bb5rHcpO.js";
|
|
15
|
-
import { n as Me } from "./Title-BMCuINbv.js";
|
|
16
|
-
import { t as Ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
-
import { l as Pe, t as Fe } from "./useResponsive-ZtArZtUf.js";
|
|
18
|
-
import { t as Ie } from "./DefGrad-DVBqDjhO.js";
|
|
19
|
-
import { t as Le } from "./SlicerPreview-k5YerMA9.js";
|
|
20
|
-
import { t as Re } from "./BaseLegendToggle-CP3sddwv.js";
|
|
21
|
-
import { t as ze } from "./A11yDataTable-DdRsVULz.js";
|
|
22
|
-
import { t as Be } from "./useUserOptionState-DK-_1ddE.js";
|
|
23
|
-
import { t as Ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
24
|
-
import { t as He } from "./Legend-CulFgjUY.js";
|
|
25
|
-
import { t as Ue } from "./vue_ui_donut_evolution-C6951a2f.js";
|
|
26
|
-
import { Fragment as l, Teleport as We, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Je, nextTick as Ye, normalizeClass as _, normalizeProps as v, normalizeStyle as Xe, onBeforeUnmount as Ze, onMounted as Qe, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as $e, shallowRef as et, toDisplayString as C, toRefs as tt, unref as w, watch as nt, watchEffect as rt, withCtx as T } from "vue";
|
|
27
|
-
//#region src/components/vue-ui-donut-evolution.vue
|
|
28
|
-
var it = /* @__PURE__ */ e({ default: () => qt }), at = ["id"], ot = ["id"], st = ["id"], ct = { style: { position: "relative" } }, lt = [
|
|
29
|
-
"xmlns",
|
|
30
|
-
"aria-describedby",
|
|
31
|
-
"viewBox"
|
|
32
|
-
], ut = [
|
|
33
|
-
"x",
|
|
34
|
-
"y",
|
|
35
|
-
"width",
|
|
36
|
-
"height"
|
|
37
|
-
], dt = { key: 1 }, ft = [
|
|
38
|
-
"x1",
|
|
39
|
-
"x2",
|
|
40
|
-
"y1",
|
|
41
|
-
"y2",
|
|
42
|
-
"stroke",
|
|
43
|
-
"stroke-width"
|
|
44
|
-
], pt = [
|
|
45
|
-
"x1",
|
|
46
|
-
"x2",
|
|
47
|
-
"y1",
|
|
48
|
-
"y2",
|
|
49
|
-
"stroke",
|
|
50
|
-
"stroke-width"
|
|
51
|
-
], mt = { key: 0 }, ht = [
|
|
52
|
-
"x1",
|
|
53
|
-
"x2",
|
|
54
|
-
"y1",
|
|
55
|
-
"y2",
|
|
56
|
-
"stroke",
|
|
57
|
-
"stroke-width"
|
|
58
|
-
], gt = [
|
|
59
|
-
"font-size",
|
|
60
|
-
"fill",
|
|
61
|
-
"transform"
|
|
62
|
-
], _t = [
|
|
63
|
-
"x",
|
|
64
|
-
"y",
|
|
65
|
-
"font-size",
|
|
66
|
-
"fill"
|
|
67
|
-
], vt = [
|
|
68
|
-
"d",
|
|
69
|
-
"stroke",
|
|
70
|
-
"stroke-width"
|
|
71
|
-
], yt = [
|
|
72
|
-
"transform",
|
|
73
|
-
"font-size",
|
|
74
|
-
"text-anchor",
|
|
75
|
-
"fill",
|
|
76
|
-
"font-weight"
|
|
77
|
-
], bt = { key: 0 }, xt = [
|
|
78
|
-
"text-anchor",
|
|
79
|
-
"font-size",
|
|
80
|
-
"fill",
|
|
81
|
-
"transform"
|
|
82
|
-
], St = [
|
|
83
|
-
"text-anchor",
|
|
84
|
-
"font-size",
|
|
85
|
-
"fill",
|
|
86
|
-
"transform",
|
|
87
|
-
"innerHTML"
|
|
88
|
-
], Ct = [
|
|
89
|
-
"x1",
|
|
90
|
-
"y1",
|
|
91
|
-
"x2",
|
|
92
|
-
"y2",
|
|
93
|
-
"stroke",
|
|
94
|
-
"stroke-width"
|
|
95
|
-
], wt = { key: 1 }, Tt = [
|
|
96
|
-
"cx",
|
|
97
|
-
"cy",
|
|
98
|
-
"r",
|
|
99
|
-
"fill"
|
|
100
|
-
], Et = { key: 0 }, Dt = { key: 0 }, Ot = ["d", "stroke"], kt = [
|
|
101
|
-
"text-anchor",
|
|
102
|
-
"x",
|
|
103
|
-
"y",
|
|
104
|
-
"fill"
|
|
105
|
-
], At = [
|
|
106
|
-
"cx",
|
|
107
|
-
"cy",
|
|
108
|
-
"r",
|
|
109
|
-
"fill"
|
|
110
|
-
], jt = { key: 0 }, Mt = [
|
|
111
|
-
"cx",
|
|
112
|
-
"cy",
|
|
113
|
-
"fill"
|
|
114
|
-
], Nt = { key: 1 }, Pt = [
|
|
115
|
-
"d",
|
|
116
|
-
"fill",
|
|
117
|
-
"stroke"
|
|
118
|
-
], Ft = { key: 2 }, It = [
|
|
119
|
-
"d",
|
|
120
|
-
"fill",
|
|
121
|
-
"stroke"
|
|
122
|
-
], Lt = [
|
|
123
|
-
"x",
|
|
124
|
-
"y",
|
|
125
|
-
"font-size",
|
|
126
|
-
"fill"
|
|
127
|
-
], Rt = [
|
|
128
|
-
"x",
|
|
129
|
-
"y",
|
|
130
|
-
"width",
|
|
131
|
-
"height",
|
|
132
|
-
"fill"
|
|
133
|
-
], zt = [
|
|
134
|
-
"x",
|
|
135
|
-
"y",
|
|
136
|
-
"width",
|
|
137
|
-
"height",
|
|
138
|
-
"onMouseenter",
|
|
139
|
-
"onMouseleave",
|
|
140
|
-
"onClick"
|
|
141
|
-
], Bt = [
|
|
142
|
-
"x",
|
|
143
|
-
"y",
|
|
144
|
-
"width",
|
|
145
|
-
"height",
|
|
146
|
-
"fill",
|
|
147
|
-
"fill-opacity",
|
|
148
|
-
"stroke",
|
|
149
|
-
"stroke-opacity",
|
|
150
|
-
"stroke-width",
|
|
151
|
-
"stroke-dasharray"
|
|
152
|
-
], Vt = {
|
|
153
|
-
key: 0,
|
|
154
|
-
style: {
|
|
155
|
-
position: "absolute",
|
|
156
|
-
top: "100%",
|
|
157
|
-
left: "0",
|
|
158
|
-
width: "100%"
|
|
159
|
-
},
|
|
160
|
-
"data-dom-to-png-ignore": "",
|
|
161
|
-
"aria-hidden": "true"
|
|
162
|
-
}, Ht = {
|
|
163
|
-
key: 5,
|
|
164
|
-
class: "vue-data-ui-watermark"
|
|
165
|
-
}, Ut = ["id"], Wt = ["onClick"], Gt = { key: 0 }, Kt = { key: 1 }, qt = /*#__PURE__*/ Ne({
|
|
166
|
-
__name: "vue-ui-donut-evolution",
|
|
167
|
-
props: {
|
|
168
|
-
config: {
|
|
169
|
-
type: Object,
|
|
170
|
-
default() {
|
|
171
|
-
return {};
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
dataset: {
|
|
175
|
-
type: Array,
|
|
176
|
-
default() {
|
|
177
|
-
return [];
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
zoomState: {
|
|
181
|
-
type: Object,
|
|
182
|
-
default: null
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
emits: [
|
|
186
|
-
"selectLegend",
|
|
187
|
-
"zoomStart",
|
|
188
|
-
"zoomEnd",
|
|
189
|
-
"zoomReset",
|
|
190
|
-
"update:zoomState",
|
|
191
|
-
"copyAlt"
|
|
192
|
-
],
|
|
193
|
-
setup(e, { expose: Ne, emit: it }) {
|
|
194
|
-
let qt = h(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Jt = h(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Yt = h(() => import("./DataTable-CjF_An2h.js")), Xt = h(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Zt = h(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Qt = h(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), $t = h(() => import("./vue-ui-donut-nLDLZwig.js").then((e) => e.n)), en = h(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_donut_evolution: tn } = xe(), { isThemeValid: nn, warnInvalidTheme: rn } = Ee(), E = e, D = b(te()), O = b([]), k = b(null), an = b(null), on = b(!1), sn = b(null), A = b(null), cn = b(null), ln = b(0), un = b(0), dn = b(0), fn = b(0), pn = b(0), mn = b(null), hn = b(null), gn = b(null), _n = b(null), vn = b(!1), yn = b(null), bn = b(null), xn = et(null), Sn = b(0), Cn = b(0), wn = b(!1);
|
|
195
|
-
function Tn() {
|
|
196
|
-
xn.value = A.value?.parentNode ?? null;
|
|
197
|
-
}
|
|
198
|
-
function En() {
|
|
199
|
-
return new Promise((e) => {
|
|
200
|
-
requestAnimationFrame(() => {
|
|
201
|
-
requestAnimationFrame(e);
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
async function Dn() {
|
|
206
|
-
let e = ++Cn.value;
|
|
207
|
-
await Ye(), await En(), await En(), e === Cn.value && (Sn.value += 1);
|
|
208
|
-
}
|
|
209
|
-
function On() {
|
|
210
|
-
wn.value || (wn.value = !0, Ye(() => {
|
|
211
|
-
wn.value = !1, Tn(), Dn();
|
|
212
|
-
}));
|
|
213
|
-
}
|
|
214
|
-
let kn = ke({
|
|
215
|
-
elementRef: xn,
|
|
216
|
-
minimumWidth: 2,
|
|
217
|
-
minimumHeight: 2,
|
|
218
|
-
stableFramesRequired: 2,
|
|
219
|
-
once: !1,
|
|
220
|
-
onSizeAccepted: () => {
|
|
221
|
-
Dn();
|
|
222
|
-
}
|
|
223
|
-
}), An = b(null), jn = b(null), Mn = b(null), Nn = b(null), Pn = b(null), Fn = b(!1), j = et(null), In = et(null), Ln = b(null), M = b(null), Rn = b(!1), N = it, zn = u(() => !!E.dataset && E.dataset.length);
|
|
224
|
-
Qe(() => {
|
|
225
|
-
vn.value = !0, Tn(), kn.start(), Vn(), Dn();
|
|
226
|
-
});
|
|
227
|
-
let Bn = u(() => P.value.debug);
|
|
228
|
-
function Vn() {
|
|
229
|
-
if (_e(E.dataset) ? (ie({
|
|
230
|
-
componentName: "VueUiDonutEvolution",
|
|
231
|
-
type: "dataset",
|
|
232
|
-
debug: Bn.value
|
|
233
|
-
}), qn.value = !0) : E.dataset.length && E.dataset.forEach((e, t) => {
|
|
234
|
-
ge({
|
|
235
|
-
datasetObject: e,
|
|
236
|
-
requiredAttributes: ["name", "values"]
|
|
237
|
-
}).forEach((e) => {
|
|
238
|
-
ie({
|
|
239
|
-
componentName: "VueUiDonutEvolution",
|
|
240
|
-
type: "datasetSerieAttribute",
|
|
241
|
-
property: e,
|
|
242
|
-
index: t,
|
|
243
|
-
debug: Bn.value
|
|
244
|
-
}), qn.value = !0;
|
|
245
|
-
});
|
|
246
|
-
}), _e(E.dataset) || (qn.value = P.value.loading), setTimeout(() => {
|
|
247
|
-
Fn.value = !0;
|
|
248
|
-
}, 10), fr(), P.value.responsive) {
|
|
249
|
-
let e = Pe(() => {
|
|
250
|
-
Fn.value = !1;
|
|
251
|
-
let { width: e, height: t } = Fe({
|
|
252
|
-
chart: A.value,
|
|
253
|
-
title: P.value.style.chart.title.text ? An.value : null,
|
|
254
|
-
legend: P.value.style.chart.legend.show ? jn.value : null,
|
|
255
|
-
slicer: P.value.style.chart.zoom.show && Yn.value > 1 ? Pn.value : null,
|
|
256
|
-
source: Mn.value
|
|
257
|
-
});
|
|
258
|
-
requestAnimationFrame(() => {
|
|
259
|
-
Jn.value.width = e, Jn.value.height = t - 12, On(), clearTimeout(Ln.value), Ln.value = setTimeout(() => {
|
|
260
|
-
Fn.value = !0;
|
|
261
|
-
}, 10);
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
j.value && (In.value && j.value.unobserve(In.value), j.value.disconnect()), j.value = new ResizeObserver(e), In.value = A.value.parentNode, j.value.observe(In.value);
|
|
265
|
-
}
|
|
266
|
-
On();
|
|
267
|
-
}
|
|
268
|
-
let P = b(br()), F = u(() => I.value.grid), I = u(() => P.value.style.chart.layout), Hn = u(() => P.value.style.chart.dialog), L = u(() => P.value.style.chart);
|
|
269
|
-
ve({
|
|
270
|
-
config: () => P.value,
|
|
271
|
-
dataset: () => E.dataset,
|
|
272
|
-
component: "VueUiDonutEvolution",
|
|
273
|
-
rules: [
|
|
274
|
-
ye.emptyArray,
|
|
275
|
-
{
|
|
276
|
-
test: (e) => e.length === 1,
|
|
277
|
-
message: [
|
|
278
|
-
"👀 There is only a single series in your dataset. Consider:",
|
|
279
|
-
"",
|
|
280
|
-
"▶️ Using VueUiXy instead, for a regular line chart."
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
test: (e) => e.length > 6,
|
|
285
|
-
message: [
|
|
286
|
-
"👀 The number of series is > 6, which makes donuts hard to read. Consider:",
|
|
287
|
-
"",
|
|
288
|
-
"▶️ Grouping small values dynamically into a single \"Other\" series.",
|
|
289
|
-
"",
|
|
290
|
-
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
291
|
-
"",
|
|
292
|
-
"▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
test: (e) => e.some((e) => e.values.length > 24),
|
|
297
|
-
message: [
|
|
298
|
-
"👀 Some series have a number of data points > 24, which can make the chart and donuts hard to read. Consider:",
|
|
299
|
-
"",
|
|
300
|
-
"▶️ Using larger time scales, or aggregated values.",
|
|
301
|
-
"",
|
|
302
|
-
"▶️ Filtering the time range by adding date intputs in your UI.",
|
|
303
|
-
"",
|
|
304
|
-
"▶️ Using VueUiXy to show longer series in a more comfortable display."
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
});
|
|
309
|
-
let { transitionEnabled: Un } = Oe({
|
|
310
|
-
config: () => P.value.transitions,
|
|
311
|
-
dataset: () => E.dataset
|
|
312
|
-
}), R = u(() => P.value.userOptions.useCursorPointer), Wn = u(() => le({
|
|
313
|
-
defaultConfig: {
|
|
314
|
-
useCssAnimation: !1,
|
|
315
|
-
table: { show: !1 },
|
|
316
|
-
userOptions: { show: !1 },
|
|
317
|
-
style: { chart: {
|
|
318
|
-
backgroundColor: "#99999930",
|
|
319
|
-
layout: {
|
|
320
|
-
dataLabels: { show: !1 },
|
|
321
|
-
grid: {
|
|
322
|
-
stroke: "#6A6A6A",
|
|
323
|
-
axis: {
|
|
324
|
-
yLabel: "",
|
|
325
|
-
xLabel: ""
|
|
326
|
-
},
|
|
327
|
-
yAxis: {
|
|
328
|
-
scaleMin: null,
|
|
329
|
-
scaleMax: null,
|
|
330
|
-
autoScale: !1,
|
|
331
|
-
dataLabels: { show: !1 }
|
|
332
|
-
},
|
|
333
|
-
xAxis: { dataLabels: { show: !1 } }
|
|
334
|
-
},
|
|
335
|
-
line: { stroke: "#CACACA60" }
|
|
336
|
-
},
|
|
337
|
-
legend: {
|
|
338
|
-
backgroundColor: "transparent",
|
|
339
|
-
showValue: !1,
|
|
340
|
-
showPercentage: !1
|
|
341
|
-
},
|
|
342
|
-
zoom: {
|
|
343
|
-
show: !1,
|
|
344
|
-
startIndex: null,
|
|
345
|
-
endIndex: null
|
|
346
|
-
}
|
|
347
|
-
} }
|
|
348
|
-
},
|
|
349
|
-
userConfig: P.value.skeletonConfig ?? {}
|
|
350
|
-
})), { loading: Gn, FINAL_DATASET: Kn, manualLoading: qn } = Ce({
|
|
351
|
-
...tt(E),
|
|
352
|
-
FINAL_CONFIG: P,
|
|
353
|
-
prepareConfig: br,
|
|
354
|
-
callback: () => {
|
|
355
|
-
Promise.resolve().then(async () => {
|
|
356
|
-
await fr();
|
|
357
|
-
});
|
|
358
|
-
},
|
|
359
|
-
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
360
|
-
{
|
|
361
|
-
name: "",
|
|
362
|
-
values: [
|
|
363
|
-
1,
|
|
364
|
-
2,
|
|
365
|
-
3,
|
|
366
|
-
5,
|
|
367
|
-
8,
|
|
368
|
-
13
|
|
369
|
-
],
|
|
370
|
-
color: "#AAAAAA"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
name: "",
|
|
374
|
-
values: [
|
|
375
|
-
1,
|
|
376
|
-
2,
|
|
377
|
-
3,
|
|
378
|
-
5,
|
|
379
|
-
8,
|
|
380
|
-
13
|
|
381
|
-
],
|
|
382
|
-
color: "#BABABA"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
name: "",
|
|
386
|
-
values: [
|
|
387
|
-
1,
|
|
388
|
-
2,
|
|
389
|
-
3,
|
|
390
|
-
5,
|
|
391
|
-
8,
|
|
392
|
-
13
|
|
393
|
-
],
|
|
394
|
-
color: "#CACACA"
|
|
395
|
-
}
|
|
396
|
-
],
|
|
397
|
-
skeletonConfig: le({
|
|
398
|
-
defaultConfig: P.value,
|
|
399
|
-
userConfig: Wn.value
|
|
400
|
-
})
|
|
401
|
-
}), Jn = b({
|
|
402
|
-
width: I.value.width,
|
|
403
|
-
height: I.value.height
|
|
404
|
-
}), Yn = u(() => Math.max(...Kn.value.map((e) => e.values.length))), z = b({
|
|
405
|
-
start: 0,
|
|
406
|
-
end: Yn.value
|
|
407
|
-
}), B = b(!1), Xn = b(!1), V = b(null), H = b(null), U = b(null), Zn = b(!1), Qn = b({
|
|
408
|
-
time: 0,
|
|
409
|
-
x: 0,
|
|
410
|
-
y: 0,
|
|
411
|
-
pointerType: null
|
|
412
|
-
}), $n = u(() => P.value.style.chart.zoom?.dragToZoom), W = u(() => $n.value.show && zn.value && tr.value && Y.value > 1 && !Gn.value), er = b(!1), tr = b(!1), nr = b(!1), rr = null, ir = {};
|
|
413
|
-
function ar(e, t = z.value) {
|
|
414
|
-
if (!e || typeof e != "object") return null;
|
|
415
|
-
let n = e.start !== void 0 && e.start !== null, r = e.end !== void 0 && e.end !== null;
|
|
416
|
-
if (!n && !r) return null;
|
|
417
|
-
let i = Number(n ? e.start : t.start), a = Number(r ? e.end : t.end);
|
|
418
|
-
return !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
419
|
-
start: i,
|
|
420
|
-
end: a
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
function or(e) {
|
|
424
|
-
let t = ar(e);
|
|
425
|
-
t && N("update:zoomState", t);
|
|
426
|
-
}
|
|
427
|
-
function sr() {
|
|
428
|
-
rr &&= (cancelAnimationFrame(rr), null), ir = {};
|
|
429
|
-
}
|
|
430
|
-
function cr(e, t = z.value.start) {
|
|
431
|
-
let n = Y.value, r = Number(t);
|
|
432
|
-
return e > n ? n : e < 0 || e <= r ? Math.min(r + 1, n) : e;
|
|
433
|
-
}
|
|
434
|
-
function lr() {
|
|
435
|
-
let e = Y.value;
|
|
436
|
-
if (!Number.isFinite(e) || e <= 0) {
|
|
437
|
-
z.value = {
|
|
438
|
-
start: 0,
|
|
439
|
-
end: 0
|
|
440
|
-
};
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
let t = Math.max(0, Math.min(Number(z.value.start) || 0, e - 1)), n = Math.max(t + 1, Math.min(Number(z.value.end) || e, e));
|
|
444
|
-
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), z.value = {
|
|
445
|
-
start: t,
|
|
446
|
-
end: n
|
|
447
|
-
}, Nn.value && Nn.value.setRangeValues(t, n);
|
|
448
|
-
}
|
|
449
|
-
function ur(e) {
|
|
450
|
-
let t = ar(e);
|
|
451
|
-
if (!t) return null;
|
|
452
|
-
let { start: n, end: r } = t;
|
|
453
|
-
return (n !== Number(z.value.start) || r !== Number(z.value.end)) && (sr(), z.value = {
|
|
454
|
-
start: n,
|
|
455
|
-
end: r
|
|
456
|
-
}, lr(), On()), {
|
|
457
|
-
start: Number(z.value.start),
|
|
458
|
-
end: Number(z.value.end)
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
function dr(e) {
|
|
462
|
-
let t = ur(e);
|
|
463
|
-
return t ? (or(t), t) : null;
|
|
464
|
-
}
|
|
465
|
-
async function fr(e = !0) {
|
|
466
|
-
if (!er.value) {
|
|
467
|
-
er.value = !0;
|
|
468
|
-
try {
|
|
469
|
-
await Ye(), await Ye();
|
|
470
|
-
let { startIndex: t, endIndex: n } = L.value.zoom, r = Y.value;
|
|
471
|
-
if (!Number.isFinite(r) || r <= 0) {
|
|
472
|
-
z.value = {
|
|
473
|
-
start: 0,
|
|
474
|
-
end: 0
|
|
475
|
-
}, tr.value = !0;
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
let i = t == null ? 0 : Number(t), a = n == null ? r : cr(Number(n) + 1, i);
|
|
479
|
-
nr.value = !0, z.value = {
|
|
480
|
-
start: i,
|
|
481
|
-
end: a
|
|
482
|
-
}, lr(), tr.value = !0, e && E.zoomState && ur(E.zoomState);
|
|
483
|
-
} finally {
|
|
484
|
-
queueMicrotask(() => {
|
|
485
|
-
nr.value = !1;
|
|
486
|
-
}), er.value = !1, On();
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
async function pr({ force: e = !1, publish: t = !1 } = {}) {
|
|
491
|
-
await fr(!e), t && (or({
|
|
492
|
-
start: Number(z.value.start),
|
|
493
|
-
end: Number(z.value.end)
|
|
494
|
-
}), N("zoomReset"));
|
|
495
|
-
}
|
|
496
|
-
nt([() => E.zoomState, tr], ([e, t]) => {
|
|
497
|
-
t && e && ur(e);
|
|
498
|
-
}, {
|
|
499
|
-
deep: !0,
|
|
500
|
-
immediate: !0
|
|
501
|
-
});
|
|
502
|
-
function mr(e) {
|
|
503
|
-
ir = {
|
|
504
|
-
...ir,
|
|
505
|
-
...e
|
|
506
|
-
}, rr && cancelAnimationFrame(rr), rr = requestAnimationFrame(() => {
|
|
507
|
-
let e = {
|
|
508
|
-
...z.value,
|
|
509
|
-
...ir
|
|
510
|
-
};
|
|
511
|
-
ir = {}, rr = null, z.value = e, lr(), On(), or({
|
|
512
|
-
start: Number(z.value.start),
|
|
513
|
-
end: Number(z.value.end)
|
|
514
|
-
});
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
function hr(e) {
|
|
518
|
-
if (er.value || nr.value) return;
|
|
519
|
-
let t = Number(e);
|
|
520
|
-
Number.isFinite(t) && (N("zoomStart", {
|
|
521
|
-
index: t,
|
|
522
|
-
isZoom: t !== 0
|
|
523
|
-
}), t !== z.value.start && mr({ start: t }));
|
|
524
|
-
}
|
|
525
|
-
function gr(e) {
|
|
526
|
-
if (er.value || nr.value) return;
|
|
527
|
-
let t = ir.start === void 0 ? z.value.start : ir.start, n = cr(Number(e), t);
|
|
528
|
-
Number.isFinite(n) && (N("zoomEnd", {
|
|
529
|
-
index: n,
|
|
530
|
-
isZoom: n !== Y.value
|
|
531
|
-
}), (n !== z.value.end || ir.start !== void 0) && mr({ end: n }));
|
|
532
|
-
}
|
|
533
|
-
let { userOptionsVisible: _r, setUserOptionsVisibility: vr, keepUserOptionState: yr } = Be({ config: P.value }), { svgRef: G } = Ve({ config: L.value.title });
|
|
534
|
-
function br() {
|
|
535
|
-
let e = Te({
|
|
536
|
-
userConfig: E.config,
|
|
537
|
-
defaultConfig: tn
|
|
538
|
-
}), t = {}, n = e.theme;
|
|
539
|
-
if (n) {
|
|
540
|
-
if (!nn.value(e)) rn(e), t = e;
|
|
541
|
-
else {
|
|
542
|
-
let r = Te({
|
|
543
|
-
userConfig: Ue[n] || E.config,
|
|
544
|
-
defaultConfig: e
|
|
545
|
-
});
|
|
546
|
-
t = {
|
|
547
|
-
...Te({
|
|
548
|
-
userConfig: E.config,
|
|
549
|
-
defaultConfig: r
|
|
550
|
-
}),
|
|
551
|
-
customPalette: e.customPalette ? e.customPalette : ae[n] || i
|
|
552
|
-
};
|
|
553
|
-
}
|
|
554
|
-
} else t = e;
|
|
555
|
-
return t;
|
|
556
|
-
}
|
|
557
|
-
nt(() => E.config, (e) => {
|
|
558
|
-
Gn.value || (P.value = br()), _r.value = !P.value.userOptions.showOnChartHover, Vn(), dn.value += 1, fn.value += 1, pn.value += 1, Dr.value.showTable = P.value.table.show;
|
|
559
|
-
}, { deep: !0 }), nt(() => E.dataset, (e) => {
|
|
560
|
-
Array.isArray(e) && e.length > 0 && (qn.value = !1), pr();
|
|
561
|
-
}, { deep: !0 });
|
|
562
|
-
let { isPrinting: xr, isImaging: Sr, generatePdf: Cr, generateImage: wr } = Se({
|
|
563
|
-
elementId: D.value,
|
|
564
|
-
fileName: L.value.title.text || "vue-ui-donut-evolution",
|
|
565
|
-
options: P.value.userOptions.print
|
|
566
|
-
}), Tr = u(() => P.value.userOptions.show && !L.value.title.text), Er = u(() => me(P.value.customPalette)), Dr = b({ showTable: P.value.table.show });
|
|
567
|
-
nt(P, () => {
|
|
568
|
-
Dr.value = { showTable: P.value.table.show };
|
|
569
|
-
}, { immediate: !0 });
|
|
570
|
-
let Or = u(() => ({
|
|
571
|
-
top: I.value.padding.top,
|
|
572
|
-
right: I.value.padding.right,
|
|
573
|
-
bottom: I.value.padding.bottom,
|
|
574
|
-
left: I.value.padding.left
|
|
575
|
-
})), K = u(() => F.value.yAxis.position === "right");
|
|
576
|
-
function kr() {
|
|
577
|
-
let e = 0;
|
|
578
|
-
mn.value && (e = Array.from(mn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
579
|
-
let n = t.getComputedTextLength();
|
|
580
|
-
return n > e ? n : e;
|
|
581
|
-
}, 0));
|
|
582
|
-
let t = _n.value ? _n.value.getBoundingClientRect().width + F.value.axis.yLabelOffsetX + F.value.axis.fontSize : 0, n = e + t + 5;
|
|
583
|
-
return {
|
|
584
|
-
left: K.value ? 0 : n,
|
|
585
|
-
right: K.value ? n : 0,
|
|
586
|
-
scaleLabelsWidth: e,
|
|
587
|
-
yAxisLabelWidth: t,
|
|
588
|
-
crosshair: 5
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
let Ar = b(0), jr = Pe((e) => {
|
|
592
|
-
Ar.value = e;
|
|
593
|
-
}, 100);
|
|
594
|
-
rt((e) => {
|
|
595
|
-
let t = hn.value;
|
|
596
|
-
if (!t) return;
|
|
597
|
-
let n = new ResizeObserver((e) => {
|
|
598
|
-
jr(e[0].contentRect.height);
|
|
599
|
-
});
|
|
600
|
-
n.observe(t), e(() => n.disconnect());
|
|
601
|
-
}), Ze(() => {
|
|
602
|
-
Ar.value = 0, kn.stop(), clearTimeout(Ln.value), sr(), oi(), Kr(), j.value && (In.value && j.value.unobserve(In.value), j.value.disconnect(), j.value = null, In.value = null);
|
|
603
|
-
});
|
|
604
|
-
let Mr = u(() => {
|
|
605
|
-
let e = 0;
|
|
606
|
-
gn.value && (e = gn.value.getBBox().height);
|
|
607
|
-
let t = 0;
|
|
608
|
-
return hn.value && (t = Ar.value), e + t + F.value.axis.fontSize + F.value.xAxis.dataLabels.offsetY;
|
|
609
|
-
}), q = u(() => {
|
|
610
|
-
Sn.value;
|
|
611
|
-
let e = kr(), t = I.value.dataLabels.fontSize * 3, n = Jn.value.width, r = Jn.value.height, i = Or.value.left + e.left, a = n - Or.value.right - e.right, o = n - i - Or.value.right - e.right, s = r - Or.value.top - Or.value.bottom - t - Mr.value, ee = Or.value.top + t;
|
|
612
|
-
return {
|
|
613
|
-
top: ee,
|
|
614
|
-
left: i,
|
|
615
|
-
right: a,
|
|
616
|
-
bottom: r - Or.value.bottom - Mr.value,
|
|
617
|
-
absoluteHeight: r,
|
|
618
|
-
absoluteWidth: n,
|
|
619
|
-
centerX: i + Math.max(10, o) / 2,
|
|
620
|
-
centerY: ee + Math.max(10, s) / 2,
|
|
621
|
-
width: Math.max(10, o),
|
|
622
|
-
height: Math.max(10, s),
|
|
623
|
-
scaleLabelsWidth: e.scaleLabelsWidth,
|
|
624
|
-
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
625
|
-
crosshair: e.crosshair
|
|
626
|
-
};
|
|
627
|
-
}), J = u(() => (Bn.value && Kn.value.forEach((e, t) => {
|
|
628
|
-
[null, void 0].includes(e.name) && ie({
|
|
629
|
-
componentName: "VueUiDonutEvolution",
|
|
630
|
-
type: "datasetSerieAttribute",
|
|
631
|
-
property: "name",
|
|
632
|
-
index: t
|
|
633
|
-
}), [null, void 0].includes(e.values) && ie({
|
|
634
|
-
componentName: "VueUiDonutEvolution",
|
|
635
|
-
type: "datasetSerieAttribute",
|
|
636
|
-
property: "values",
|
|
637
|
-
index: t
|
|
638
|
-
});
|
|
639
|
-
}), Kn.value.map((e, t) => ({
|
|
640
|
-
...e,
|
|
641
|
-
values: ee(e.values),
|
|
642
|
-
color: c(e.color) || Er.value[t] || i[t] || i[t % i.length],
|
|
643
|
-
length: (e.values || []).length,
|
|
644
|
-
uid: te()
|
|
645
|
-
})))), Nr = u(() => J.value.filter((e) => !O.value.includes(e.uid)).map((e) => ({
|
|
646
|
-
...e,
|
|
647
|
-
values: e.values.filter((e, t) => t >= z.value.start && t <= z.value.end)
|
|
648
|
-
}))), Y = u(() => Math.max(...J.value.map((e) => e.length))), X = b([]), Pr = 0;
|
|
649
|
-
rt(() => {
|
|
650
|
-
let e = ++Pr;
|
|
651
|
-
(async () => {
|
|
652
|
-
let t = await be({
|
|
653
|
-
values: F.value.xAxis.dataLabels.values,
|
|
654
|
-
maxDatapoints: Y.value,
|
|
655
|
-
formatter: F.value.xAxis.dataLabels.datetimeFormatter,
|
|
656
|
-
start: z.value.start,
|
|
657
|
-
end: z.value.end
|
|
658
|
-
});
|
|
659
|
-
e === Pr && (X.value = t);
|
|
660
|
-
})();
|
|
661
|
-
});
|
|
662
|
-
let Z = u(() => q.value.width / (z.value.end - z.value.start)), Fr = u(() => {
|
|
663
|
-
let e = [];
|
|
664
|
-
for (let t = 0; t < z.value.end - z.value.start; t += 1) {
|
|
665
|
-
let n = Nr.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = q.value.left + Z.value * t + Z.value / 2;
|
|
666
|
-
e.push({
|
|
667
|
-
index: t,
|
|
668
|
-
percentages: a,
|
|
669
|
-
subtotal: r || i < 0 ? null : i,
|
|
670
|
-
values: n,
|
|
671
|
-
x: o
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
return e;
|
|
675
|
-
}), Ir = u(() => {
|
|
676
|
-
let e = Math.max(...Fr.value.map((e) => e.subtotal).filter((e) => n(e))) ?? 1, t = Math.min(...Fr.value.map((e) => e.subtotal).filter((e) => n(e))) ?? 0, r = Math.max(F.value.yAxis.scaleMax ?? 0, e), i;
|
|
677
|
-
return i = F.value.yAxis.scaleMin == null ? 0 : Math.min(t, F.value.yAxis.scaleMin), F.value.yAxis.autoScale && (i = t, r = e), i === r && (i = r / 2, r *= 1.5), {
|
|
678
|
-
max: r,
|
|
679
|
-
min: i
|
|
680
|
-
};
|
|
681
|
-
}), Q = u(() => {
|
|
682
|
-
let e = Fr.value.length === 1 ? Ir.value.max * 2 : Ir.value.max;
|
|
683
|
-
return re(Ir.value.min, e, F.value.yAxis.dataLabels.steps);
|
|
684
|
-
});
|
|
685
|
-
nt(() => Q.value.ticks.join("|"), () => {
|
|
686
|
-
On();
|
|
687
|
-
}, { flush: "post" });
|
|
688
|
-
function Lr(e) {
|
|
689
|
-
return (e - Q.value.min) / (Q.value.max - Q.value.min);
|
|
690
|
-
}
|
|
691
|
-
let Rr = u(() => Q.value.ticks.map((e) => ({
|
|
692
|
-
y: q.value.bottom - q.value.height * Lr(e),
|
|
693
|
-
value: e
|
|
694
|
-
}))), $ = u(() => {
|
|
695
|
-
let e = Fr.value, t = Math.max(...e.map((e) => e.subtotal));
|
|
696
|
-
return e.length === 1 && t * 2, e.map((t, n) => {
|
|
697
|
-
let r = Math.min(q.value.width / 24, Z.value / 2 * .7), i = r > q.value.width / 16 ? q.value.width / 16 : r, o = k.value === t.index ? q.value.width / 16 : i, s = e.length > 4 ? r * 2 : r * 2 > Z.value / 2 * .7 ? Z.value / 2 * .7 : r * 2, ee = q.value.bottom - q.value.height * Lr(t.subtotal), c = Nr.value.map((e) => ({
|
|
698
|
-
color: e.color,
|
|
699
|
-
name: e.name,
|
|
700
|
-
value: e.values[n] ?? 0
|
|
701
|
-
})).toSorted((e, t) => t.value - e.value);
|
|
702
|
-
return {
|
|
703
|
-
...t,
|
|
704
|
-
y: ee,
|
|
705
|
-
radius: i,
|
|
706
|
-
activeRadius: o,
|
|
707
|
-
hoverRadius: s,
|
|
708
|
-
donut: a({ series: c }, t.x, ee, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
|
|
709
|
-
donutHover: a({ series: c }, t.x, ee, s, s, 1.99999, 2, 1, 360, 105.25, s / 2),
|
|
710
|
-
donutFocus: a({ series: c }, q.value.centerX, q.value.centerY, q.value.height / 3.6, q.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, q.value.height / 6)
|
|
711
|
-
};
|
|
712
|
-
});
|
|
713
|
-
});
|
|
714
|
-
function zr(e, n, r) {
|
|
715
|
-
return ce(I.value.dataLabels.formatter, e, t({
|
|
716
|
-
p: I.value.dataLabels.prefix,
|
|
717
|
-
v: e,
|
|
718
|
-
s: I.value.dataLabels.suffix,
|
|
719
|
-
r: I.value.dataLabels.rounding
|
|
720
|
-
}), {
|
|
721
|
-
datapoint: n,
|
|
722
|
-
index: r
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
function Br(e, t) {
|
|
726
|
-
return isNaN(e.value / ne(t, "value")) ? 0 : (e.value / ne(t, "value") * 100).toFixed(0) + "%";
|
|
727
|
-
}
|
|
728
|
-
function Vr(e) {
|
|
729
|
-
let t = G.value;
|
|
730
|
-
if (!t) return null;
|
|
731
|
-
if (t.createSVGPoint && t.getScreenCTM) {
|
|
732
|
-
let n = t.createSVGPoint();
|
|
733
|
-
n.x = e.clientX, n.y = e.clientY;
|
|
734
|
-
let r = t.getScreenCTM();
|
|
735
|
-
if (r) {
|
|
736
|
-
let e = n.matrixTransform(r.inverse());
|
|
737
|
-
return {
|
|
738
|
-
x: e.x,
|
|
739
|
-
y: e.y
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
|
|
744
|
-
x: 0,
|
|
745
|
-
y: 0,
|
|
746
|
-
width: n.width,
|
|
747
|
-
height: n.height
|
|
748
|
-
}, i = Math.min(n.width / r.width, n.height / r.height);
|
|
749
|
-
if (!Number.isFinite(i) || i <= 0) return null;
|
|
750
|
-
let a = r.width * i, o = r.height * i, s = (n.width - a) / 2, ee = (n.height - o) / 2;
|
|
751
|
-
return {
|
|
752
|
-
x: (e.clientX - n.left - s) / i + r.x,
|
|
753
|
-
y: (e.clientY - n.top - ee) / i + r.y
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
let Hr = u(() => !B.value || V.value == null || H.value == null ? null : {
|
|
757
|
-
x: Math.min(V.value, H.value),
|
|
758
|
-
y: q.value.top,
|
|
759
|
-
width: Math.abs(H.value - V.value),
|
|
760
|
-
height: q.value.height
|
|
761
|
-
}), Ur = u(() => tr.value ? Number(z.value.start) !== 0 || Number(z.value.end) !== Number(Y.value) : !1);
|
|
762
|
-
function Wr(e) {
|
|
763
|
-
return Math.min(Math.max(e, q.value.left), q.value.right);
|
|
764
|
-
}
|
|
765
|
-
function Gr() {
|
|
766
|
-
k.value = null, an.value = null, M.value = null;
|
|
767
|
-
}
|
|
768
|
-
function Kr(e) {
|
|
769
|
-
let t = e?.pointerId == null ? U.value : e.pointerId;
|
|
770
|
-
t != null && G.value?.hasPointerCapture?.(t) && G.value.releasePointerCapture(t), B.value = !1, V.value = null, H.value = null, U.value = null;
|
|
771
|
-
}
|
|
772
|
-
function qr() {
|
|
773
|
-
Zn.value = !0, setTimeout(() => {
|
|
774
|
-
Zn.value = !1;
|
|
775
|
-
}, 0);
|
|
776
|
-
}
|
|
777
|
-
function Jr(e) {
|
|
778
|
-
Zn.value && (Zn.value = !1, e.preventDefault(), e.stopPropagation());
|
|
779
|
-
}
|
|
780
|
-
function Yr(e) {
|
|
781
|
-
if (!W.value || !Ur.value || !e) return !1;
|
|
782
|
-
let t = Date.now(), n = e.pointerType || "mouse", r = Qn.value, i = n === "touch" ? 450 : 350, a = n === "touch" ? 28 : 10, o = Math.hypot(e.clientX - r.x, e.clientY - r.y);
|
|
783
|
-
return r.time > 0 && r.pointerType === n && t - r.time <= i && o <= a ? (Qn.value = {
|
|
784
|
-
time: 0,
|
|
785
|
-
x: 0,
|
|
786
|
-
y: 0,
|
|
787
|
-
pointerType: null
|
|
788
|
-
}, qr(), oi(), Kr(e), ki(), pr({
|
|
789
|
-
force: !0,
|
|
790
|
-
publish: !0
|
|
791
|
-
}), !0) : (Qn.value = {
|
|
792
|
-
time: t,
|
|
793
|
-
x: e.clientX,
|
|
794
|
-
y: e.clientY,
|
|
795
|
-
pointerType: n
|
|
796
|
-
}, !1);
|
|
797
|
-
}
|
|
798
|
-
function Xr(e) {
|
|
799
|
-
let t = Number(z.value.end) - Number(z.value.start);
|
|
800
|
-
if (t <= 0 || !Number.isFinite(Z.value) || Z.value <= 0) return null;
|
|
801
|
-
let n = Math.floor((Wr(e) - q.value.left) / Z.value);
|
|
802
|
-
return Math.max(0, Math.min(t - 1, n));
|
|
803
|
-
}
|
|
804
|
-
function Zr(e, t) {
|
|
805
|
-
let n = Xr(e), r = Xr(t);
|
|
806
|
-
if (n == null || r == null) return null;
|
|
807
|
-
let i = Math.min(n, r), a = Math.max(n, r);
|
|
808
|
-
return a <= i ? null : {
|
|
809
|
-
start: Number(z.value.start) + i,
|
|
810
|
-
end: Number(z.value.start) + a + 1
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
function Qr(e) {
|
|
814
|
-
let t = dr(e);
|
|
815
|
-
return t ? (N("zoomStart", {
|
|
816
|
-
index: t.start,
|
|
817
|
-
isZoom: t.start !== 0
|
|
818
|
-
}), N("zoomEnd", {
|
|
819
|
-
index: t.end,
|
|
820
|
-
isZoom: t.end !== Y.value
|
|
821
|
-
}), t) : null;
|
|
822
|
-
}
|
|
823
|
-
function $r(e) {
|
|
824
|
-
if (!W.value || Ci.value || e.button !== void 0 && e.button !== 0 || U.value != null && e.pointerId !== U.value) return;
|
|
825
|
-
let t = Vr(e);
|
|
826
|
-
if (!t || t.x < q.value.left || t.x > q.value.right || t.y < q.value.top || t.y > q.value.bottom || Number(z.value.end) - Number(z.value.start) <= 1) return;
|
|
827
|
-
Xn.value = !0, G.value?.focus?.({ preventScroll: !0 }), oi(), Gr();
|
|
828
|
-
let n = Wr(t.x);
|
|
829
|
-
U.value = e.pointerId, B.value = !0, V.value = n, H.value = n;
|
|
830
|
-
}
|
|
831
|
-
function ei(e) {
|
|
832
|
-
if (!W.value || !B.value || U.value != null && e.pointerId !== U.value) return;
|
|
833
|
-
let t = Vr(e);
|
|
834
|
-
t && (H.value = Wr(t.x), Gr(), V.value != null && Math.abs(H.value - V.value) >= 2 && !G.value?.hasPointerCapture?.(e.pointerId) && G.value?.setPointerCapture?.(e.pointerId));
|
|
835
|
-
}
|
|
836
|
-
function ti(e) {
|
|
837
|
-
if (!W.value || !B.value || U.value != null && e.pointerId !== U.value) return;
|
|
838
|
-
let t = Vr(e);
|
|
839
|
-
t && (H.value = Wr(t.x));
|
|
840
|
-
let n = V.value, r = H.value;
|
|
841
|
-
if ((n == null || r == null ? 0 : Math.abs(r - n)) < Math.max(4, q.value.width * .01)) {
|
|
842
|
-
if (Yr(e)) return;
|
|
843
|
-
Kr(e);
|
|
844
|
-
return;
|
|
845
|
-
}
|
|
846
|
-
let i = Zr(Math.min(n, r), Math.max(n, r));
|
|
847
|
-
if (!i) {
|
|
848
|
-
Kr(e);
|
|
849
|
-
return;
|
|
850
|
-
}
|
|
851
|
-
Kr(e), Qr(i) && (Qn.value = {
|
|
852
|
-
time: 0,
|
|
853
|
-
x: 0,
|
|
854
|
-
y: 0,
|
|
855
|
-
pointerType: null
|
|
856
|
-
}, Gr(), qr());
|
|
857
|
-
}
|
|
858
|
-
function ni(e) {
|
|
859
|
-
B.value || (k.value = null, an.value = null, M.value = null, P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
860
|
-
datapoint: e,
|
|
861
|
-
seriesIndex: e.seriesIndex + z.value.start
|
|
862
|
-
}));
|
|
863
|
-
}
|
|
864
|
-
function ri(e) {
|
|
865
|
-
B.value || (P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
866
|
-
datapoint: e,
|
|
867
|
-
seriesIndex: e.index + z.value.start
|
|
868
|
-
}), k.value = e.index, an.value = e, M.value = e.index);
|
|
869
|
-
}
|
|
870
|
-
let ii = b(null), ai = null;
|
|
871
|
-
function oi() {
|
|
872
|
-
ai &&= (clearTimeout(ai), null);
|
|
873
|
-
}
|
|
874
|
-
function si(e, t) {
|
|
875
|
-
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
876
|
-
datapoint: e,
|
|
877
|
-
seriesIndex: e.index + z.value.start
|
|
878
|
-
}), e.subtotal && Hn.value.show && (an.value = null, k.value = null, on.value = !0, sn.value = e, Ai(e), [null, void 0].includes(t) || (ii.value = t));
|
|
879
|
-
}
|
|
880
|
-
function ci(e, t) {
|
|
881
|
-
if (oi(), !W.value || !Ur.value) {
|
|
882
|
-
si(e, t);
|
|
883
|
-
return;
|
|
884
|
-
}
|
|
885
|
-
let n = Qn.value.pointerType === "touch" ? 480 : 380;
|
|
886
|
-
ai = setTimeout(() => {
|
|
887
|
-
ai = null, si(e, t);
|
|
888
|
-
}, n);
|
|
889
|
-
}
|
|
890
|
-
let li = u(() => J.value.map((e, t) => ({
|
|
891
|
-
name: e.name,
|
|
892
|
-
value: e.values.slice(z.value.start, z.value.end).reduce((e, t) => e + t, 0),
|
|
893
|
-
shape: "circle",
|
|
894
|
-
uid: e.uid,
|
|
895
|
-
color: e.color
|
|
896
|
-
})).sort((e, t) => t.value - e.value).map((e, n) => ({
|
|
897
|
-
...e,
|
|
898
|
-
opacity: O.value.includes(e.uid) ? .5 : 1,
|
|
899
|
-
segregate: () => pi(e.uid),
|
|
900
|
-
isSegregated: O.value.includes(e.uid),
|
|
901
|
-
display: `${e.name}${L.value.legend.showPercentage || L.value.legend.showValue ? ": " : ""}${L.value.legend.showValue ? ce(I.value.dataLabels.formatter, e.value, t({
|
|
902
|
-
p: I.value.dataLabels.prefix,
|
|
903
|
-
v: e.value,
|
|
904
|
-
s: I.value.dataLabels.suffix,
|
|
905
|
-
r: L.value.legend.roundingValue
|
|
906
|
-
}), {
|
|
907
|
-
datapoint: e,
|
|
908
|
-
seriesIndex: n
|
|
909
|
-
}) : ""}${L.value.legend.showPercentage ? O.value.includes(e.uid) ? `${L.value.legend.showValue ? " (" : ""}- %${L.value.legend.showValue ? ")" : ""}` : `${L.value.legend.showValue ? " (" : ""}${isNaN(e.value / ui.value) ? "-" : t({
|
|
910
|
-
v: e.value / ui.value * 100,
|
|
911
|
-
s: "%",
|
|
912
|
-
r: L.value.legend.roundingPercentage
|
|
913
|
-
})}${L.value.legend.showValue ? ")" : ""}` : ""}`
|
|
914
|
-
}))), ui = u(() => $.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), di = u(() => ({
|
|
915
|
-
cy: "donut-div-legend",
|
|
916
|
-
backgroundColor: L.value.legend.backgroundColor,
|
|
917
|
-
color: L.value.legend.color,
|
|
918
|
-
fontSize: L.value.legend.fontSize,
|
|
919
|
-
paddingBottom: 12,
|
|
920
|
-
fontWeight: L.value.legend.bold ? "bold" : ""
|
|
921
|
-
}));
|
|
922
|
-
function fi() {
|
|
923
|
-
O.value.length ? O.value = [] : li.value.forEach((e) => {
|
|
924
|
-
O.value.push(e.uid);
|
|
925
|
-
}), N("selectLegend", Nr.value);
|
|
926
|
-
}
|
|
927
|
-
function pi(e) {
|
|
928
|
-
if (O.value.includes(e)) O.value = O.value.filter((t) => t !== e), N("selectLegend", Nr.value);
|
|
929
|
-
else {
|
|
930
|
-
if (O.value.length === J.value.length - 1) return;
|
|
931
|
-
O.value.push(e), N("selectLegend", Nr.value);
|
|
932
|
-
}
|
|
933
|
-
sn.value && si($.value.find((e, t) => t === ii.value));
|
|
934
|
-
}
|
|
935
|
-
function mi(e) {
|
|
936
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (Bn.value && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (Bn.value && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
937
|
-
}
|
|
938
|
-
function hi(e) {
|
|
939
|
-
let t = mi(e);
|
|
940
|
-
t !== null && O.value.includes(t.uid) && pi(t.uid);
|
|
941
|
-
}
|
|
942
|
-
function gi(e) {
|
|
943
|
-
let t = mi(e);
|
|
944
|
-
t !== null && (O.value.includes(t.uid) || pi(t.uid));
|
|
945
|
-
}
|
|
946
|
-
let _i = u(() => {
|
|
947
|
-
let e = [""].concat(J.value.filter((e) => !O.value.includes(e.uid)).map((e) => ({
|
|
948
|
-
name: e.name,
|
|
949
|
-
color: e.color
|
|
950
|
-
})), ["Σ"]), t = [];
|
|
951
|
-
for (let e = 0; e < Y.value; e += 1) {
|
|
952
|
-
let n = J.value.filter((e) => !O.value.includes(e.uid)).map((t) => t.values[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
953
|
-
t.push([X.value[e] ? X.value[e].text : "-"].concat(J.value.filter((e) => !O.value.includes(e.uid)).map((t) => ({
|
|
954
|
-
value: t.values[e] ?? 0,
|
|
955
|
-
percentage: t.values[e] ? t.values[e] / n * 100 : 0
|
|
956
|
-
})), [`${I.value.dataLabels.prefix}${Number(n.toFixed(P.value.table.td.roundingValue))}${I.value.dataLabels.suffix}`]));
|
|
957
|
-
}
|
|
958
|
-
return {
|
|
959
|
-
head: e,
|
|
960
|
-
body: t,
|
|
961
|
-
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${zr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
|
|
962
|
-
config: {
|
|
963
|
-
th: {
|
|
964
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
965
|
-
color: P.value.table.th.color,
|
|
966
|
-
outline: P.value.table.th.outline
|
|
967
|
-
},
|
|
968
|
-
td: {
|
|
969
|
-
backgroundColor: P.value.table.td.backgroundColor,
|
|
970
|
-
color: P.value.table.td.color,
|
|
971
|
-
outline: P.value.table.td.outline
|
|
972
|
-
},
|
|
973
|
-
breakpoint: P.value.table.responsiveBreakpoint
|
|
974
|
-
},
|
|
975
|
-
colNames: [P.value.table.columnNames.period].concat(J.value.filter((e) => !O.value.includes(e.uid)).map((e) => e.name), P.value.table.columnNames.total)
|
|
976
|
-
};
|
|
977
|
-
});
|
|
978
|
-
function vi() {
|
|
979
|
-
return J.value;
|
|
980
|
-
}
|
|
981
|
-
function yi(e = null) {
|
|
982
|
-
Ye(() => {
|
|
983
|
-
let t = [
|
|
984
|
-
[L.value.title.text],
|
|
985
|
-
[L.value.title.subtitle.text],
|
|
986
|
-
[""]
|
|
987
|
-
], n = [..._i.value.head.map((e) => e.name ?? e)], i = [..._i.value.body.map((e) => e.map((e) => e.value ?? e))], a = t.concat([n]).concat(i), o = r(a);
|
|
988
|
-
e ? e(o) : ue({
|
|
989
|
-
csvContent: o,
|
|
990
|
-
title: L.value.title.text || "vue-ui-donut-evolution"
|
|
991
|
-
});
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
|
-
let bi = b(!1);
|
|
995
|
-
function xi(e) {
|
|
996
|
-
bi.value = e, ln.value += 1;
|
|
997
|
-
}
|
|
998
|
-
function Si() {
|
|
999
|
-
Dr.value.showTable = !Dr.value.showTable;
|
|
1000
|
-
}
|
|
1001
|
-
let Ci = b(!1);
|
|
1002
|
-
function wi() {
|
|
1003
|
-
Ci.value = !Ci.value;
|
|
1004
|
-
}
|
|
1005
|
-
function Ti(e) {
|
|
1006
|
-
return e.proportion * 100 > L.value.donuts.hover.hideLabelsUnderValue;
|
|
1007
|
-
}
|
|
1008
|
-
let Ei = b([]), Di = b({}), Oi = b(null);
|
|
1009
|
-
function ki() {
|
|
1010
|
-
Oi.value?.close?.(), sn.value = null, ii.value = null, on.value = !1, an.value = null, k.value = null, M.value = null;
|
|
1011
|
-
}
|
|
1012
|
-
function Ai(e) {
|
|
1013
|
-
Ei.value = e.donut.map((e) => ({
|
|
1014
|
-
name: e.name,
|
|
1015
|
-
values: [e.value],
|
|
1016
|
-
color: e.color
|
|
1017
|
-
})), Di.value = pe({
|
|
1018
|
-
...Hn.value.donutChart,
|
|
1019
|
-
responsive: !0,
|
|
1020
|
-
theme: P.value.theme
|
|
1021
|
-
}), Oi.value && Oi.value.open();
|
|
1022
|
-
}
|
|
1023
|
-
async function ji({ scale: e = 2 } = {}) {
|
|
1024
|
-
if (!A.value) return;
|
|
1025
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await je({
|
|
1026
|
-
domElement: A.value,
|
|
1027
|
-
base64: !0,
|
|
1028
|
-
img: !0,
|
|
1029
|
-
scale: e
|
|
1030
|
-
});
|
|
1031
|
-
return {
|
|
1032
|
-
imageUri: i,
|
|
1033
|
-
base64: a,
|
|
1034
|
-
title: L.value.title.text,
|
|
1035
|
-
width: t,
|
|
1036
|
-
height: n,
|
|
1037
|
-
aspectRatio: r
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
let Mi = u(() => Jn.value.width), Ni = u(() => Jn.value.height);
|
|
1041
|
-
Ae({
|
|
1042
|
-
timeLabelsEls: hn,
|
|
1043
|
-
timeLabels: X,
|
|
1044
|
-
slicer: z,
|
|
1045
|
-
configRef: P,
|
|
1046
|
-
rotationPath: [
|
|
1047
|
-
"style",
|
|
1048
|
-
"chart",
|
|
1049
|
-
"layout",
|
|
1050
|
-
"grid",
|
|
1051
|
-
"xAxis",
|
|
1052
|
-
"dataLabels",
|
|
1053
|
-
"rotation"
|
|
1054
|
-
],
|
|
1055
|
-
autoRotatePath: [
|
|
1056
|
-
"style",
|
|
1057
|
-
"chart",
|
|
1058
|
-
"layout",
|
|
1059
|
-
"grid",
|
|
1060
|
-
"xAxis",
|
|
1061
|
-
"dataLabels",
|
|
1062
|
-
"autoRotate",
|
|
1063
|
-
"enable"
|
|
1064
|
-
],
|
|
1065
|
-
isAutoSize: !1,
|
|
1066
|
-
width: Mi,
|
|
1067
|
-
height: Ni,
|
|
1068
|
-
rotation: F.value.xAxis.dataLabels.autoRotate.angle
|
|
1069
|
-
});
|
|
1070
|
-
let Pi = u(() => {
|
|
1071
|
-
let e = P.value.table.useDialog && !P.value.table.show, t = Dr.value.showTable;
|
|
1072
|
-
return {
|
|
1073
|
-
component: e ? en : qt,
|
|
1074
|
-
title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
|
|
1075
|
-
props: e ? {
|
|
1076
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
1077
|
-
color: P.value.table.th.color,
|
|
1078
|
-
headerColor: P.value.table.th.color,
|
|
1079
|
-
headerBg: P.value.table.th.backgroundColor,
|
|
1080
|
-
isFullscreen: bi.value,
|
|
1081
|
-
fullscreenParent: A.value,
|
|
1082
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1083
|
-
isCursorPointer: R.value
|
|
1084
|
-
} : {
|
|
1085
|
-
hideDetails: !0,
|
|
1086
|
-
config: {
|
|
1087
|
-
open: t,
|
|
1088
|
-
maxHeight: 1e4,
|
|
1089
|
-
body: {
|
|
1090
|
-
backgroundColor: L.value.backgroundColor,
|
|
1091
|
-
color: L.value.color
|
|
1092
|
-
},
|
|
1093
|
-
head: {
|
|
1094
|
-
backgroundColor: L.value.backgroundColor,
|
|
1095
|
-
color: L.value.color
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
};
|
|
1100
|
-
});
|
|
1101
|
-
nt(() => Dr.value.showTable, (e) => {
|
|
1102
|
-
P.value.table.show || (e && P.value.table.useDialog && yn.value ? yn.value.open() : "close" in yn.value && yn.value.close());
|
|
1103
|
-
});
|
|
1104
|
-
function Fi() {
|
|
1105
|
-
Dr.value.showTable = !1, bn.value && bn.value.setTableIconState(!1);
|
|
1106
|
-
}
|
|
1107
|
-
let Ii = u(() => li.value.map((e) => ({
|
|
1108
|
-
...e,
|
|
1109
|
-
name: e.display
|
|
1110
|
-
}))), Li = u(() => L.value.backgroundColor), Ri = u(() => L.value.legend), zi = u(() => L.value.title), { isCallbackImaging: Bi, isCallbackSvg: Vi, generateSvg: Hi, onGenerateImage: Ui } = De({
|
|
1111
|
-
svg: G,
|
|
1112
|
-
title: zi,
|
|
1113
|
-
legend: Ri,
|
|
1114
|
-
legendItems: Ii,
|
|
1115
|
-
backgroundColor: Li,
|
|
1116
|
-
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
1117
|
-
generateImage: wr
|
|
1118
|
-
});
|
|
1119
|
-
async function Wi() {
|
|
1120
|
-
if (N("copyAlt", {
|
|
1121
|
-
config: P.value,
|
|
1122
|
-
dataset: $.value
|
|
1123
|
-
}), !P.value.userOptions.callbacks.altCopy) {
|
|
1124
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1125
|
-
return;
|
|
1126
|
-
}
|
|
1127
|
-
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
1128
|
-
config: P.value,
|
|
1129
|
-
dataset: $.value
|
|
1130
|
-
}));
|
|
1131
|
-
}
|
|
1132
|
-
function Gi() {
|
|
1133
|
-
M.value = null, Rn.value = !0;
|
|
1134
|
-
}
|
|
1135
|
-
function Ki() {
|
|
1136
|
-
Xn.value = !1, M.value = null, k.value = null, an.value = null, Rn.value = !1;
|
|
1137
|
-
}
|
|
1138
|
-
function qi(e) {
|
|
1139
|
-
if (!G.value || Ci.value || document.activeElement !== G.value || (Xn.value = !1, !$.value.length)) return;
|
|
1140
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1141
|
-
if (!t && !n && !r && !i) return;
|
|
1142
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1143
|
-
if (W.value && (Ur.value || B.value)) {
|
|
1144
|
-
oi(), Kr(), ki(), pr({
|
|
1145
|
-
force: !0,
|
|
1146
|
-
publish: !0
|
|
1147
|
-
});
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
M.value = null, k.value = null, an.value = null;
|
|
1151
|
-
return;
|
|
1152
|
-
}
|
|
1153
|
-
if (r) {
|
|
1154
|
-
if (M.value === null) return;
|
|
1155
|
-
let e = $.value[M.value];
|
|
1156
|
-
if (!e) return;
|
|
1157
|
-
si(e, M.value);
|
|
1158
|
-
return;
|
|
1159
|
-
}
|
|
1160
|
-
let a = M.value, o = k.value, s = a !== null && a >= 0 && a < $.value.length, ee = o !== null && o >= 0 && o < $.value.length;
|
|
1161
|
-
s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : ee ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
|
|
1162
|
-
let c = $.value[a];
|
|
1163
|
-
c && ri(c);
|
|
1164
|
-
}
|
|
1165
|
-
let Ji = u(() => ({
|
|
1166
|
-
headers: _i.value?.colNames ?? [],
|
|
1167
|
-
rows: _i.value?.bodyA11y ?? []
|
|
1168
|
-
}));
|
|
1169
|
-
return Ne({
|
|
1170
|
-
getData: vi,
|
|
1171
|
-
getImage: ji,
|
|
1172
|
-
generatePdf: Cr,
|
|
1173
|
-
generateCsv: yi,
|
|
1174
|
-
generateImage: wr,
|
|
1175
|
-
generateSvg: Hi,
|
|
1176
|
-
hideSeries: gi,
|
|
1177
|
-
showSeries: hi,
|
|
1178
|
-
toggleTable: Si,
|
|
1179
|
-
toggleAnnotator: wi,
|
|
1180
|
-
toggleFullscreen: xi,
|
|
1181
|
-
copyAlt: Wi,
|
|
1182
|
-
resetZoom: () => pr({
|
|
1183
|
-
force: !0,
|
|
1184
|
-
publish: !0
|
|
1185
|
-
}),
|
|
1186
|
-
setZoomState: dr
|
|
1187
|
-
}), (e, n) => (y(), p("div", {
|
|
1188
|
-
ref_key: "donutEvolutionChart",
|
|
1189
|
-
ref: A,
|
|
1190
|
-
class: _(`vue-data-ui-component vue-ui-donut-evolution ${bi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1191
|
-
style: Xe(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor}`),
|
|
1192
|
-
id: D.value,
|
|
1193
|
-
onMouseenter: n[4] ||= () => w(vr)(!0),
|
|
1194
|
-
onMouseleave: n[5] ||= () => w(vr)(!1)
|
|
1195
|
-
}, [
|
|
1196
|
-
m("div", {
|
|
1197
|
-
id: `chart-instructions-${D.value}`,
|
|
1198
|
-
class: "sr-only"
|
|
1199
|
-
}, [m("p", null, C(P.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
|
|
1200
|
-
Ji.value?.rows?.length ? (y(), d(ze, {
|
|
1201
|
-
key: 0,
|
|
1202
|
-
uid: D.value,
|
|
1203
|
-
head: Ji.value.headers,
|
|
1204
|
-
body: Ji.value.rows,
|
|
1205
|
-
notice: P.value.a11y.translations.tableAvailable,
|
|
1206
|
-
caption: P.value.a11y.translations.tableCaption
|
|
1207
|
-
}, null, 8, [
|
|
1208
|
-
"uid",
|
|
1209
|
-
"head",
|
|
1210
|
-
"body",
|
|
1211
|
-
"notice",
|
|
1212
|
-
"caption"
|
|
1213
|
-
])) : f("", !0),
|
|
1214
|
-
P.value.userOptions.buttons.annotator ? (y(), d(w(Zt), {
|
|
1215
|
-
key: 1,
|
|
1216
|
-
svgRef: w(G),
|
|
1217
|
-
backgroundColor: L.value.backgroundColor,
|
|
1218
|
-
color: L.value.color,
|
|
1219
|
-
active: Ci.value,
|
|
1220
|
-
isCursorPointer: R.value,
|
|
1221
|
-
palette: P.value.userOptions.annotatorPalette,
|
|
1222
|
-
onClose: wi
|
|
1223
|
-
}, {
|
|
1224
|
-
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1225
|
-
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
1226
|
-
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
1227
|
-
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
1228
|
-
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
1229
|
-
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
1230
|
-
_: 3
|
|
1231
|
-
}, 8, [
|
|
1232
|
-
"svgRef",
|
|
1233
|
-
"backgroundColor",
|
|
1234
|
-
"color",
|
|
1235
|
-
"active",
|
|
1236
|
-
"isCursorPointer",
|
|
1237
|
-
"palette"
|
|
1238
|
-
])) : f("", !0),
|
|
1239
|
-
Tr.value ? (y(), p("div", {
|
|
1240
|
-
key: 2,
|
|
1241
|
-
ref_key: "noTitle",
|
|
1242
|
-
ref: cn,
|
|
1243
|
-
class: "vue-data-ui-no-title-space",
|
|
1244
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1245
|
-
}, null, 512)) : f("", !0),
|
|
1246
|
-
L.value.title.text ? (y(), p("div", {
|
|
1247
|
-
key: 3,
|
|
1248
|
-
ref_key: "chartTitle",
|
|
1249
|
-
ref: An,
|
|
1250
|
-
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
1251
|
-
onMouseleave: ni
|
|
1252
|
-
}, [(y(), d(Me, {
|
|
1253
|
-
key: `title_${dn.value}`,
|
|
1254
|
-
config: {
|
|
1255
|
-
title: {
|
|
1256
|
-
cy: "donut-evolution-div-title",
|
|
1257
|
-
...L.value.title
|
|
1258
|
-
},
|
|
1259
|
-
subtitle: {
|
|
1260
|
-
cy: "donut-evolution-div-subtitle",
|
|
1261
|
-
...L.value.title.subtitle
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
}, null, 8, ["config"]))], 544)) : f("", !0),
|
|
1265
|
-
m("div", { id: `legend-top-${D.value}` }, null, 8, st),
|
|
1266
|
-
P.value.userOptions.show && zn.value && (w(yr) || w(_r)) ? (y(), d(w(Qt), {
|
|
1267
|
-
ref_key: "userOptionsRef",
|
|
1268
|
-
ref: bn,
|
|
1269
|
-
key: `user_options_${ln.value}`,
|
|
1270
|
-
backgroundColor: L.value.backgroundColor,
|
|
1271
|
-
color: L.value.color,
|
|
1272
|
-
isPrinting: w(xr),
|
|
1273
|
-
isImaging: w(Sr),
|
|
1274
|
-
uid: D.value,
|
|
1275
|
-
hasPdf: P.value.userOptions.buttons.pdf,
|
|
1276
|
-
hasImg: P.value.userOptions.buttons.img,
|
|
1277
|
-
hasSvg: P.value.userOptions.buttons.svg,
|
|
1278
|
-
hasXls: P.value.userOptions.buttons.csv,
|
|
1279
|
-
hasTable: P.value.userOptions.buttons.table,
|
|
1280
|
-
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
1281
|
-
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
1282
|
-
isFullscreen: bi.value,
|
|
1283
|
-
titles: { ...P.value.userOptions.buttonTitles },
|
|
1284
|
-
chartElement: A.value,
|
|
1285
|
-
position: P.value.userOptions.position,
|
|
1286
|
-
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1287
|
-
isAnnotation: Ci.value,
|
|
1288
|
-
callbacks: P.value.userOptions.callbacks,
|
|
1289
|
-
printScale: P.value.userOptions.print.scale,
|
|
1290
|
-
tableDialog: P.value.table.useDialog,
|
|
1291
|
-
isCursorPointer: R.value,
|
|
1292
|
-
onToggleFullscreen: xi,
|
|
1293
|
-
onGeneratePdf: w(Cr),
|
|
1294
|
-
onGenerateCsv: yi,
|
|
1295
|
-
onGenerateImage: w(Ui),
|
|
1296
|
-
onGenerateSvg: w(Hi),
|
|
1297
|
-
onToggleTable: Si,
|
|
1298
|
-
onToggleAnnotator: wi,
|
|
1299
|
-
onCopyAlt: Wi,
|
|
1300
|
-
style: Xe({ visibility: w(yr) ? w(_r) ? "visible" : "hidden" : "visible" })
|
|
1301
|
-
}, Ge({ _: 2 }, [
|
|
1302
|
-
e.$slots.menuIcon ? {
|
|
1303
|
-
name: "menuIcon",
|
|
1304
|
-
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
|
|
1305
|
-
isOpen: t,
|
|
1306
|
-
color: n
|
|
1307
|
-
})), void 0, !0)]),
|
|
1308
|
-
key: "0"
|
|
1309
|
-
} : void 0,
|
|
1310
|
-
e.$slots.optionPdf ? {
|
|
1311
|
-
name: "optionPdf",
|
|
1312
|
-
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1313
|
-
key: "1"
|
|
1314
|
-
} : void 0,
|
|
1315
|
-
e.$slots.optionCsv ? {
|
|
1316
|
-
name: "optionCsv",
|
|
1317
|
-
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1318
|
-
key: "2"
|
|
1319
|
-
} : void 0,
|
|
1320
|
-
e.$slots.optionImg ? {
|
|
1321
|
-
name: "optionImg",
|
|
1322
|
-
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1323
|
-
key: "3"
|
|
1324
|
-
} : void 0,
|
|
1325
|
-
e.$slots.optionSvg ? {
|
|
1326
|
-
name: "optionSvg",
|
|
1327
|
-
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1328
|
-
key: "4"
|
|
1329
|
-
} : void 0,
|
|
1330
|
-
e.$slots.optionTable ? {
|
|
1331
|
-
name: "optionTable",
|
|
1332
|
-
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1333
|
-
key: "5"
|
|
1334
|
-
} : void 0,
|
|
1335
|
-
e.$slots.optionFullscreen ? {
|
|
1336
|
-
name: "optionFullscreen",
|
|
1337
|
-
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
|
|
1338
|
-
toggleFullscreen: t,
|
|
1339
|
-
isFullscreen: n
|
|
1340
|
-
})), void 0, !0)]),
|
|
1341
|
-
key: "6"
|
|
1342
|
-
} : void 0,
|
|
1343
|
-
e.$slots.optionAnnotator ? {
|
|
1344
|
-
name: "optionAnnotator",
|
|
1345
|
-
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
|
|
1346
|
-
toggleAnnotator: t,
|
|
1347
|
-
isAnnotator: n
|
|
1348
|
-
})), void 0, !0)]),
|
|
1349
|
-
key: "7"
|
|
1350
|
-
} : void 0,
|
|
1351
|
-
e.$slots.optionAltCopy ? {
|
|
1352
|
-
name: "optionAltCopy",
|
|
1353
|
-
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
1354
|
-
key: "8"
|
|
1355
|
-
} : void 0,
|
|
1356
|
-
e.$slots["custom-menu-before"] ? {
|
|
1357
|
-
name: "custom-menu-before",
|
|
1358
|
-
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1359
|
-
key: "9"
|
|
1360
|
-
} : void 0,
|
|
1361
|
-
e.$slots["custom-menu-after"] ? {
|
|
1362
|
-
name: "custom-menu-after",
|
|
1363
|
-
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1364
|
-
key: "10"
|
|
1365
|
-
} : void 0
|
|
1366
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.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),
|
|
1367
|
-
m("div", ct, [(y(), p("svg", {
|
|
1368
|
-
ref_key: "svgRef",
|
|
1369
|
-
ref: G,
|
|
1370
|
-
xmlns: w(fe),
|
|
1371
|
-
"aria-describedby": `chart-instructions-${D.value}`,
|
|
1372
|
-
class: _({
|
|
1373
|
-
"vue-data-ui-fullscreen--on": bi.value,
|
|
1374
|
-
"vue-data-ui-fulscreen--off": !bi.value,
|
|
1375
|
-
"vue-data-ui-no-transition": !w(Un),
|
|
1376
|
-
"vue-ui-donut-evolution-chart-zoom-pointer-focus": W.value && Xn.value
|
|
1377
|
-
}),
|
|
1378
|
-
viewBox: `0 0 ${q.value.absoluteWidth} ${q.value.absoluteHeight}`,
|
|
1379
|
-
style: Xe({
|
|
1380
|
-
maxWidth: "100%",
|
|
1381
|
-
overflow: "visible",
|
|
1382
|
-
background: "transparent",
|
|
1383
|
-
color: L.value.color,
|
|
1384
|
-
cursor: W.value ? B.value ? "col-resize" : "crosshair" : void 0,
|
|
1385
|
-
touchAction: W.value ? "pan-y" : void 0,
|
|
1386
|
-
userSelect: W.value ? "none" : void 0
|
|
1387
|
-
}),
|
|
1388
|
-
tabindex: "0",
|
|
1389
|
-
onFocus: Gi,
|
|
1390
|
-
onBlur: Ki,
|
|
1391
|
-
onKeydown: qi,
|
|
1392
|
-
onPointerdown: $r,
|
|
1393
|
-
onPointermove: ei,
|
|
1394
|
-
onPointerup: ti,
|
|
1395
|
-
onPointercancel: Kr,
|
|
1396
|
-
onClickCapture: Jr
|
|
1397
|
-
}, [
|
|
1398
|
-
qe(w(Xt)),
|
|
1399
|
-
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
1400
|
-
key: 0,
|
|
1401
|
-
x: q.value.left,
|
|
1402
|
-
y: q.value.top,
|
|
1403
|
-
width: q.value.width,
|
|
1404
|
-
height: q.value.height,
|
|
1405
|
-
style: { pointerEvents: "none" }
|
|
1406
|
-
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, ut)) : f("", !0),
|
|
1407
|
-
m("defs", null, [qe(Ie, {
|
|
1408
|
-
t: "linear",
|
|
1409
|
-
id: `hover_${D.value}`,
|
|
1410
|
-
x1: "0%",
|
|
1411
|
-
y1: "0%",
|
|
1412
|
-
x2: "0%",
|
|
1413
|
-
y2: "100%",
|
|
1414
|
-
stops: [[
|
|
1415
|
-
"0%",
|
|
1416
|
-
w(s)(L.value.backgroundColor, I.value.highlighter.opacity),
|
|
1417
|
-
1
|
|
1418
|
-
], [
|
|
1419
|
-
"100%",
|
|
1420
|
-
w(s)(I.value.highlighter.color, I.value.highlighter.opacity),
|
|
1421
|
-
1
|
|
1422
|
-
]]
|
|
1423
|
-
}, null, 8, ["id", "stops"]), qe(Ie, {
|
|
1424
|
-
t: "radial",
|
|
1425
|
-
id: `focus_${D.value}`,
|
|
1426
|
-
stops: [
|
|
1427
|
-
[
|
|
1428
|
-
"0%",
|
|
1429
|
-
w(s)(w(c)(L.value.backgroundColor), 0),
|
|
1430
|
-
1
|
|
1431
|
-
],
|
|
1432
|
-
[
|
|
1433
|
-
"77%",
|
|
1434
|
-
w(s)("#FFFFFF", 30),
|
|
1435
|
-
1
|
|
1436
|
-
],
|
|
1437
|
-
[
|
|
1438
|
-
"100%",
|
|
1439
|
-
w(s)(w(c)(L.value.backgroundColor), 0),
|
|
1440
|
-
1
|
|
1441
|
-
]
|
|
1442
|
-
]
|
|
1443
|
-
}, null, 8, ["id", "stops"])]),
|
|
1444
|
-
F.value.show ? (y(), p("g", dt, [
|
|
1445
|
-
m("line", {
|
|
1446
|
-
x1: K.value ? q.value.right : q.value.left,
|
|
1447
|
-
x2: K.value ? q.value.right : q.value.left,
|
|
1448
|
-
y1: q.value.top,
|
|
1449
|
-
y2: q.value.top + q.value.height,
|
|
1450
|
-
stroke: F.value.stroke,
|
|
1451
|
-
"stroke-width": F.value.strokeWidth,
|
|
1452
|
-
"stroke-linecap": "round"
|
|
1453
|
-
}, null, 8, ft),
|
|
1454
|
-
m("line", {
|
|
1455
|
-
x1: q.value.left,
|
|
1456
|
-
x2: q.value.right,
|
|
1457
|
-
y1: q.value.bottom,
|
|
1458
|
-
y2: q.value.bottom,
|
|
1459
|
-
stroke: F.value.stroke,
|
|
1460
|
-
"stroke-width": F.value.strokeWidth,
|
|
1461
|
-
"stroke-linecap": "round"
|
|
1462
|
-
}, null, 8, pt),
|
|
1463
|
-
F.value.showVerticalLines ? (y(), p("g", mt, [(y(!0), p(l, null, x(z.value.end - z.value.start, (e, t) => (y(), p("line", {
|
|
1464
|
-
x1: q.value.left + (t + 1) * Z.value,
|
|
1465
|
-
x2: q.value.left + (t + 1) * Z.value,
|
|
1466
|
-
y1: q.value.top,
|
|
1467
|
-
y2: q.value.bottom,
|
|
1468
|
-
stroke: F.value.stroke,
|
|
1469
|
-
"stroke-width": F.value.strokeWidth,
|
|
1470
|
-
"stroke-linecap": "round"
|
|
1471
|
-
}, null, 8, ht))), 256))])) : f("", !0)
|
|
1472
|
-
])) : f("", !0),
|
|
1473
|
-
m("g", null, [F.value.axis.yLabel ? (y(), p("text", {
|
|
1474
|
-
key: 0,
|
|
1475
|
-
ref_key: "yAxisLabel",
|
|
1476
|
-
ref: _n,
|
|
1477
|
-
"font-size": F.value.axis.fontSize,
|
|
1478
|
-
fill: F.value.axis.color,
|
|
1479
|
-
transform: `translate(${K.value ? q.value.absoluteWidth - F.value.axis.fontSize / 2 - F.value.axis.yLabelOffsetX : F.value.axis.fontSize}, ${q.value.top + q.value.height / 2}) rotate(-90)`,
|
|
1480
|
-
"text-anchor": "middle",
|
|
1481
|
-
style: { transition: "none" }
|
|
1482
|
-
}, C(F.value.axis.yLabel), 9, gt)) : f("", !0), F.value.axis.xLabel ? (y(), p("text", {
|
|
1483
|
-
key: 1,
|
|
1484
|
-
ref_key: "xAxisLabel",
|
|
1485
|
-
ref: gn,
|
|
1486
|
-
"text-anchor": "middle",
|
|
1487
|
-
x: q.value.absoluteWidth / 2,
|
|
1488
|
-
y: q.value.absoluteHeight - 3,
|
|
1489
|
-
"font-size": F.value.axis.fontSize,
|
|
1490
|
-
fill: F.value.axis.color
|
|
1491
|
-
}, C(F.value.axis.xLabel), 9, _t)) : f("", !0)]),
|
|
1492
|
-
F.value.yAxis.dataLabels.show ? (y(), p("g", {
|
|
1493
|
-
key: 2,
|
|
1494
|
-
ref_key: "scaleLabels",
|
|
1495
|
-
ref: mn,
|
|
1496
|
-
class: _({
|
|
1497
|
-
"donut-opacity": !0,
|
|
1498
|
-
"donut-behind": k.value !== null
|
|
1499
|
-
})
|
|
1500
|
-
}, [(y(!0), p(l, null, x(Rr.value, (e, n) => (y(), p("g", { key: `sl_${n}` }, [e.value >= Q.value.min && e.value <= Q.value.max ? (y(), p("path", {
|
|
1501
|
-
key: 0,
|
|
1502
|
-
class: _({ "vue-data-ui-transition": w(Un) }),
|
|
1503
|
-
d: `M${K.value ? q.value.right : q.value.left},${e.y} ${K.value ? q.value.right + 5 : q.value.left - 5},${e.y}`,
|
|
1504
|
-
stroke: F.value.stroke,
|
|
1505
|
-
"stroke-width": F.value.strokeWidth,
|
|
1506
|
-
"stroke-linecap": "round"
|
|
1507
|
-
}, null, 10, vt)) : f("", !0), e.value >= Q.value.min && e.value <= Q.value.max ? (y(), p("text", {
|
|
1508
|
-
key: 1,
|
|
1509
|
-
class: _({ "vue-data-ui-transition": w(Un) }),
|
|
1510
|
-
transform: `translate(${K.value ? q.value.right - F.value.yAxis.dataLabels.offsetX + 7 : q.value.left + F.value.yAxis.dataLabels.offsetX - 7}, ${e.y + F.value.yAxis.dataLabels.fontSize / 3})`,
|
|
1511
|
-
"font-size": F.value.yAxis.dataLabels.fontSize,
|
|
1512
|
-
"text-anchor": K.value ? "start" : "end",
|
|
1513
|
-
fill: F.value.yAxis.dataLabels.color,
|
|
1514
|
-
"font-weight": F.value.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1515
|
-
}, C(w(he)(e.value) ? w(ce)(I.value.dataLabels.formatter, e.value, w(t)({
|
|
1516
|
-
p: I.value.dataLabels.prefix,
|
|
1517
|
-
v: e.value,
|
|
1518
|
-
s: I.value.dataLabels.suffix,
|
|
1519
|
-
r: I.value.grid.yAxis.dataLabels.roundingValue
|
|
1520
|
-
}), {
|
|
1521
|
-
datapoint: e,
|
|
1522
|
-
seriesIndex: n
|
|
1523
|
-
}) : ""), 11, yt)) : f("", !0)]))), 128))], 2)) : f("", !0),
|
|
1524
|
-
F.value.xAxis.dataLabels.show ? (y(), p("g", {
|
|
1525
|
-
key: 3,
|
|
1526
|
-
ref_key: "timeLabelsEls",
|
|
1527
|
-
ref: hn,
|
|
1528
|
-
class: _({ "donut-opacity": !0 })
|
|
1529
|
-
}, [(y(!0), p(l, null, x(z.value.end - z.value.start, (e, t) => (y(), p("g", null, [(F.value.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === Y.value - 1) || !F.value.xAxis.dataLabels.showOnlyFirstAndLast) && X.value[t] && X.value[t].text ? (y(), p("g", bt, [String(X.value[t].text).includes("\n") ? (y(), p("text", {
|
|
1530
|
-
key: 1,
|
|
1531
|
-
class: "vue-data-ui-time-label",
|
|
1532
|
-
"text-anchor": F.value.xAxis.dataLabels.rotation > 0 ? "start" : F.value.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1533
|
-
"font-size": F.value.xAxis.dataLabels.fontSize,
|
|
1534
|
-
fill: F.value.xAxis.dataLabels.color,
|
|
1535
|
-
transform: `translate(${q.value.left + Z.value * t + Z.value / 2}, ${q.value.bottom + F.value.xAxis.dataLabels.fontSize + F.value.xAxis.dataLabels.offsetY}), rotate(${F.value.xAxis.dataLabels.rotation})`,
|
|
1536
|
-
innerHTML: w(o)({
|
|
1537
|
-
content: String(X.value[t].text),
|
|
1538
|
-
fontSize: F.value.xAxis.dataLabels.fontSize,
|
|
1539
|
-
fill: I.value.grid.xAxis.dataLabels.color,
|
|
1540
|
-
x: 0,
|
|
1541
|
-
y: 0
|
|
1542
|
-
})
|
|
1543
|
-
}, null, 8, St)) : (y(), p("text", {
|
|
1544
|
-
key: 0,
|
|
1545
|
-
class: "vue-data-ui-time-label",
|
|
1546
|
-
"text-anchor": F.value.xAxis.dataLabels.rotation > 0 ? "start" : F.value.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1547
|
-
"font-size": F.value.xAxis.dataLabels.fontSize,
|
|
1548
|
-
fill: F.value.xAxis.dataLabels.color,
|
|
1549
|
-
transform: `translate(${q.value.left + Z.value * t + Z.value / 2}, ${q.value.bottom + F.value.xAxis.dataLabels.fontSize + F.value.xAxis.dataLabels.offsetY}), rotate(${F.value.xAxis.dataLabels.rotation})`
|
|
1550
|
-
}, C(X.value[t].text || ""), 9, xt))])) : f("", !0)]))), 256))], 512)) : f("", !0),
|
|
1551
|
-
(y(!0), p(l, null, x($.value, (e, t) => (y(), p("g", null, [I.value.line.show && t < $.value.length - 1 && ![e.subtotal, $.value[t + 1].subtotal].includes(null) ? (y(), p("line", {
|
|
1552
|
-
key: 0,
|
|
1553
|
-
class: _({
|
|
1554
|
-
"donut-opacity": !0,
|
|
1555
|
-
"donut-behind": k.value !== null
|
|
1556
|
-
}),
|
|
1557
|
-
x1: e.x,
|
|
1558
|
-
y1: e.y,
|
|
1559
|
-
x2: $.value[t + 1].x,
|
|
1560
|
-
y2: $.value[t + 1].y,
|
|
1561
|
-
stroke: I.value.line.stroke,
|
|
1562
|
-
"stroke-width": I.value.line.strokeWidth,
|
|
1563
|
-
"stroke-linecap": "round",
|
|
1564
|
-
"stroke-linejoin": "round"
|
|
1565
|
-
}, null, 10, Ct)) : f("", !0), e.subtotal === null ? f("", !0) : (y(), p("g", wt, [e.subtotal ? (y(), p("circle", {
|
|
1566
|
-
key: 0,
|
|
1567
|
-
cx: e.x,
|
|
1568
|
-
cy: e.y,
|
|
1569
|
-
r: e.activeRadius,
|
|
1570
|
-
fill: L.value.backgroundColor
|
|
1571
|
-
}, null, 8, Tt)) : f("", !0)]))]))), 256)),
|
|
1572
|
-
(y(!0), p(l, null, x($.value, (e, t) => (y(), p("g", { class: _({
|
|
1573
|
-
"donut-opacity": !0,
|
|
1574
|
-
"donut-behind": t !== k.value && k.value !== null
|
|
1575
|
-
}) }, [e.subtotal ? (y(), p("g", Et, [k.value !== null && k.value === t ? (y(), p("g", Dt, [
|
|
1576
|
-
(y(!0), p(l, null, x(e.donutHover, (t) => (y(), p("g", null, [Ti(t) ? (y(), p("path", {
|
|
1577
|
-
key: 0,
|
|
1578
|
-
d: w(se)(t, {
|
|
1579
|
-
x: t.center.endX,
|
|
1580
|
-
y: t.center.endY
|
|
1581
|
-
}, 12, 12, {
|
|
1582
|
-
x: e.x,
|
|
1583
|
-
y: e.y
|
|
1584
|
-
}, !1, 20),
|
|
1585
|
-
stroke: t.color,
|
|
1586
|
-
"stroke-width": "1",
|
|
1587
|
-
"stroke-linecap": "round",
|
|
1588
|
-
"stroke-linejoin": "round",
|
|
1589
|
-
fill: "none"
|
|
1590
|
-
}, null, 8, Ot)) : f("", !0)]))), 256)),
|
|
1591
|
-
(y(!0), p(l, null, x(e.donutHover, (t, n) => (y(), p("g", null, [Ti(t) ? (y(), p("text", {
|
|
1592
|
-
key: 0,
|
|
1593
|
-
"data-cy-hover-label": "",
|
|
1594
|
-
"text-anchor": w(oe)(t, !0, 0).anchor,
|
|
1595
|
-
x: w(oe)(t, !0, 9).x,
|
|
1596
|
-
y: w(de)(t, 14, 10),
|
|
1597
|
-
fill: F.value.yAxis.dataLabels.color,
|
|
1598
|
-
"font-size": 8,
|
|
1599
|
-
"font-weight": "bold"
|
|
1600
|
-
}, C(t.name) + ": " + C(Br(t, e.donut)) + " (" + C(t.value === null ? "-" : zr(t.value, t, n)) + ") ", 9, kt)) : f("", !0)]))), 256)),
|
|
1601
|
-
m("g", null, [m("circle", {
|
|
1602
|
-
cx: e.x,
|
|
1603
|
-
cy: e.y,
|
|
1604
|
-
r: e.hoverRadius,
|
|
1605
|
-
fill: L.value.backgroundColor
|
|
1606
|
-
}, null, 8, At)])
|
|
1607
|
-
])) : f("", !0)])) : f("", !0)], 2))), 256)),
|
|
1608
|
-
(y(!0), p(l, null, x($.value, (e, t) => (y(), p("g", { class: _({
|
|
1609
|
-
"donut-opacity": !0,
|
|
1610
|
-
"donut-behind": t !== k.value && k.value !== null
|
|
1611
|
-
}) }, [e.subtotal === null ? f("", !0) : (y(), p("g", jt, [e.subtotal === 0 ? (y(), p("circle", {
|
|
1612
|
-
key: 0,
|
|
1613
|
-
cx: e.x,
|
|
1614
|
-
cy: e.y,
|
|
1615
|
-
r: 3,
|
|
1616
|
-
fill: L.value.color
|
|
1617
|
-
}, null, 8, Mt)) : k.value !== null && k.value === t ? (y(), p("g", Nt, [(y(!0), p(l, null, x(e.donutHover, (e, t) => (y(), p("path", {
|
|
1618
|
-
d: e.arcSlice,
|
|
1619
|
-
fill: `${e.color}`,
|
|
1620
|
-
"stroke-width": 1,
|
|
1621
|
-
stroke: L.value.backgroundColor
|
|
1622
|
-
}, null, 8, Pt))), 256))])) : (y(), p("g", Ft, [(y(!0), p(l, null, x(e.donut, (e, t) => (y(), p("path", {
|
|
1623
|
-
d: e.arcSlice,
|
|
1624
|
-
fill: `${e.color}`,
|
|
1625
|
-
"stroke-width": .5,
|
|
1626
|
-
stroke: L.value.backgroundColor
|
|
1627
|
-
}, null, 8, It))), 256))]))]))], 2))), 256)),
|
|
1628
|
-
(y(!0), p(l, null, x($.value, (e, t) => (y(), p("g", { class: _({
|
|
1629
|
-
"donut-opacity": !0,
|
|
1630
|
-
"donut-behind": t !== k.value && k.value !== null || on.value && t !== sn.value.index
|
|
1631
|
-
}) }, [e.subtotal !== null && I.value.dataLabels.show ? (y(), p("text", {
|
|
1632
|
-
key: 0,
|
|
1633
|
-
"text-anchor": "middle",
|
|
1634
|
-
x: e.x,
|
|
1635
|
-
y: k.value === e.index && e.subtotal ? e.y + I.value.dataLabels.fontSize / 3 : e.y - e.radius - I.value.dataLabels.fontSize + I.value.dataLabels.offsetY,
|
|
1636
|
-
"font-size": I.value.dataLabels.fontSize,
|
|
1637
|
-
"font-weight": "bold",
|
|
1638
|
-
fill: I.value.dataLabels.color
|
|
1639
|
-
}, C(zr(e.subtotal, e, t)), 9, Lt)) : f("", !0)], 2))), 256)),
|
|
1640
|
-
(y(!0), p(l, null, x($.value, (e, t) => (y(), p("rect", {
|
|
1641
|
-
x: q.value.left + t * Z.value,
|
|
1642
|
-
y: q.value.top,
|
|
1643
|
-
width: Z.value,
|
|
1644
|
-
height: q.value.height,
|
|
1645
|
-
fill: [k.value, ii.value].includes(e.index) ? `url(#hover_${D.value})` : "transparent",
|
|
1646
|
-
class: _({ "donut-hover": R.value && e.subtotal && [k.value, ii.value].includes(e.index) }),
|
|
1647
|
-
style: { pointerEvents: "none" }
|
|
1648
|
-
}, null, 10, Rt))), 256)),
|
|
1649
|
-
(y(!0), p(l, null, x($.value, (e, t) => (y(), p("rect", {
|
|
1650
|
-
"data-cy-trap": "",
|
|
1651
|
-
x: q.value.left + t * Z.value,
|
|
1652
|
-
y: q.value.top,
|
|
1653
|
-
width: Z.value,
|
|
1654
|
-
height: q.value.height,
|
|
1655
|
-
fill: "transparent",
|
|
1656
|
-
onMouseenter: (t) => ri(e),
|
|
1657
|
-
onMouseleave: (t) => ni(e),
|
|
1658
|
-
onClick: (n) => ci(e, t),
|
|
1659
|
-
style: Xe({ cursor: W.value ? B.value ? "col-resize" : "crosshair" : void 0 }),
|
|
1660
|
-
class: _({ "donut-hover": R.value && k.value === e.index && e.subtotal })
|
|
1661
|
-
}, null, 46, zt))), 256)),
|
|
1662
|
-
Hr.value ? (y(), p("rect", {
|
|
1663
|
-
key: 4,
|
|
1664
|
-
x: Hr.value.x,
|
|
1665
|
-
y: Hr.value.y,
|
|
1666
|
-
width: Hr.value.width,
|
|
1667
|
-
height: Hr.value.height,
|
|
1668
|
-
fill: $n.value.selection.fill,
|
|
1669
|
-
"fill-opacity": $n.value.selection.fillOpacity,
|
|
1670
|
-
stroke: $n.value.selection.stroke,
|
|
1671
|
-
"stroke-opacity": $n.value.selection.strokeOpacity,
|
|
1672
|
-
"stroke-width": $n.value.selection.strokeWidth,
|
|
1673
|
-
"stroke-dasharray": $n.value.selection.strokeDasharray,
|
|
1674
|
-
"stroke-linecap": "round",
|
|
1675
|
-
"stroke-linejoin": "round",
|
|
1676
|
-
"pointer-events": "none"
|
|
1677
|
-
}, null, 8, Bt)) : f("", !0),
|
|
1678
|
-
S(e.$slots, "svg", { svg: {
|
|
1679
|
-
...q.value,
|
|
1680
|
-
isPrintingImg: w(xr) || w(Sr) || w(Bi),
|
|
1681
|
-
isPrintingSvg: w(Vi)
|
|
1682
|
-
} }, void 0, !0)
|
|
1683
|
-
], 46, lt)), e.$slots.hint ? (y(), p("div", Vt, [S(e.$slots, "hint", v(g({
|
|
1684
|
-
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1685
|
-
isVisible: Rn.value
|
|
1686
|
-
})), void 0, !0)])) : f("", !0)]),
|
|
1687
|
-
e.$slots.watermark ? (y(), p("div", Ht, [S(e.$slots, "watermark", v(g({ isPrinting: w(xr) || w(Sr) || w(Bi) || w(Vi) })), void 0, !0)])) : f("", !0),
|
|
1688
|
-
m("div", {
|
|
1689
|
-
ref_key: "chartSlicer",
|
|
1690
|
-
ref: Pn,
|
|
1691
|
-
style: Xe(`width:100%;background:${L.value.backgroundColor}`),
|
|
1692
|
-
"data-dom-to-png-ignore": ""
|
|
1693
|
-
}, [Y.value > 1 && L.value.zoom.show ? (y(), d(Le, {
|
|
1694
|
-
ref_key: "slicerComponent",
|
|
1695
|
-
ref: Nn,
|
|
1696
|
-
key: `slicer_${un.value}`,
|
|
1697
|
-
background: L.value.zoom.color,
|
|
1698
|
-
borderColor: L.value.backgroundColor,
|
|
1699
|
-
fontSize: L.value.zoom.fontSize,
|
|
1700
|
-
useResetSlot: L.value.zoom.useResetSlot,
|
|
1701
|
-
timeLabels: X.value,
|
|
1702
|
-
textColor: L.value.color,
|
|
1703
|
-
inputColor: L.value.zoom.color,
|
|
1704
|
-
selectColor: L.value.zoom.highlightColor,
|
|
1705
|
-
max: Y.value,
|
|
1706
|
-
min: 0,
|
|
1707
|
-
valueStart: z.value.start,
|
|
1708
|
-
valueEnd: z.value.end,
|
|
1709
|
-
refreshStartPoint: L.value.zoom.startIndex === null ? 0 : L.value.zoom.startIndex,
|
|
1710
|
-
refreshEndPoint: L.value.zoom.endIndex === null ? Y.value : L.value.zoom.endIndex + 1,
|
|
1711
|
-
enableRangeHandles: L.value.zoom.enableRangeHandles,
|
|
1712
|
-
enableSelectionDrag: L.value.zoom.enableSelectionDrag,
|
|
1713
|
-
focusOnDrag: L.value.zoom.focusOnDrag,
|
|
1714
|
-
focusRangeRatio: L.value.zoom.focusRangeRatio,
|
|
1715
|
-
isCursorPointer: R.value,
|
|
1716
|
-
maxWidth: L.value.zoom.maxWidth,
|
|
1717
|
-
minimapLeftInsetRatio: q.value.absoluteWidth > 0 && L.value.zoom.autoFit ? q.value.left / q.value.absoluteWidth : null,
|
|
1718
|
-
minimapRightInsetRatio: q.value.absoluteWidth > 0 && L.value.zoom.autoFit ? (q.value.absoluteWidth - q.value.right) / q.value.absoluteWidth : null,
|
|
1719
|
-
"onUpdate:start": hr,
|
|
1720
|
-
"onUpdate:end": gr,
|
|
1721
|
-
onReset: n[0] ||= () => pr({
|
|
1722
|
-
force: !0,
|
|
1723
|
-
publish: !0
|
|
1724
|
-
})
|
|
1725
|
-
}, {
|
|
1726
|
-
"reset-action": T(({ reset: t }) => [S(e.$slots, "reset-action", v(g({ reset: t })), void 0, !0)]),
|
|
1727
|
-
_: 3
|
|
1728
|
-
}, 8, [
|
|
1729
|
-
"background",
|
|
1730
|
-
"borderColor",
|
|
1731
|
-
"fontSize",
|
|
1732
|
-
"useResetSlot",
|
|
1733
|
-
"timeLabels",
|
|
1734
|
-
"textColor",
|
|
1735
|
-
"inputColor",
|
|
1736
|
-
"selectColor",
|
|
1737
|
-
"max",
|
|
1738
|
-
"valueStart",
|
|
1739
|
-
"valueEnd",
|
|
1740
|
-
"refreshStartPoint",
|
|
1741
|
-
"refreshEndPoint",
|
|
1742
|
-
"enableRangeHandles",
|
|
1743
|
-
"enableSelectionDrag",
|
|
1744
|
-
"focusOnDrag",
|
|
1745
|
-
"focusRangeRatio",
|
|
1746
|
-
"isCursorPointer",
|
|
1747
|
-
"maxWidth",
|
|
1748
|
-
"minimapLeftInsetRatio",
|
|
1749
|
-
"minimapRightInsetRatio"
|
|
1750
|
-
])) : f("", !0)], 4),
|
|
1751
|
-
m("div", { id: `legend-bottom-${D.value}` }, null, 8, Ut),
|
|
1752
|
-
vn.value && (L.value.legend.show || e.$slots.legend) ? (y(), d(We, {
|
|
1753
|
-
key: 6,
|
|
1754
|
-
to: L.value.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
1755
|
-
}, [m("div", {
|
|
1756
|
-
ref_key: "chartLegend",
|
|
1757
|
-
ref: jn
|
|
1758
|
-
}, [S(e.$slots, "legend", { legend: li.value }, () => [L.value.legend.show ? (y(), d(He, {
|
|
1759
|
-
key: `legend_${pn.value}`,
|
|
1760
|
-
legendSet: li.value,
|
|
1761
|
-
config: di.value,
|
|
1762
|
-
onClickMarker: n[1] ||= ({ legend: e }) => pi(e.uid)
|
|
1763
|
-
}, {
|
|
1764
|
-
item: T(({ legend: e, index: t }) => [m("div", {
|
|
1765
|
-
onClick: (t) => pi(e.uid),
|
|
1766
|
-
style: Xe(`opacity:${O.value.includes(e.uid) ? .5 : 1}`)
|
|
1767
|
-
}, C(e.display), 13, Wt)]),
|
|
1768
|
-
legendToggle: T(() => [li.value.length > 2 && L.value.legend.selectAllToggle.show && !w(Gn) ? (y(), d(Re, {
|
|
1769
|
-
key: 0,
|
|
1770
|
-
backgroundColor: L.value.legend.selectAllToggle.backgroundColor,
|
|
1771
|
-
color: L.value.legend.selectAllToggle.color,
|
|
1772
|
-
fontSize: L.value.legend.fontSize,
|
|
1773
|
-
checked: O.value.length > 0,
|
|
1774
|
-
onToggle: fi
|
|
1775
|
-
}, null, 8, [
|
|
1776
|
-
"backgroundColor",
|
|
1777
|
-
"color",
|
|
1778
|
-
"fontSize",
|
|
1779
|
-
"checked"
|
|
1780
|
-
])) : f("", !0)]),
|
|
1781
|
-
_: 1
|
|
1782
|
-
}, 8, ["legendSet", "config"])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
1783
|
-
e.$slots.source ? (y(), p("div", {
|
|
1784
|
-
key: 7,
|
|
1785
|
-
ref_key: "source",
|
|
1786
|
-
ref: Mn,
|
|
1787
|
-
dir: "auto"
|
|
1788
|
-
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1789
|
-
zn.value && P.value.userOptions.buttons.table ? (y(), d($e(Pi.value.component), Je({ key: 8 }, Pi.value.props, {
|
|
1790
|
-
ref_key: "tableUnit",
|
|
1791
|
-
ref: yn,
|
|
1792
|
-
onClose: Fi
|
|
1793
|
-
}), Ge({
|
|
1794
|
-
content: T(() => [(y(), d(w(Yt), {
|
|
1795
|
-
key: `table_${fn.value}`,
|
|
1796
|
-
colNames: _i.value.colNames,
|
|
1797
|
-
head: _i.value.head,
|
|
1798
|
-
body: _i.value.body,
|
|
1799
|
-
config: _i.value.config,
|
|
1800
|
-
title: P.value.table.useDialog ? "" : Pi.value.title,
|
|
1801
|
-
withCloseButton: !P.value.table.useDialog,
|
|
1802
|
-
isCursorPointer: R.value,
|
|
1803
|
-
onClose: Fi
|
|
1804
|
-
}, {
|
|
1805
|
-
th: T(({ th: e }) => [Ke(C(e.name ?? e), 1)]),
|
|
1806
|
-
td: T(({ td: e }) => [e.value === null ? (y(), p("span", Gt, "-")) : (y(), p("b", Kt, C(isNaN(e.value) ? "" : I.value.dataLabels.prefix) + C(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(P.value.table.td.roundingValue)).toLocaleString() : e) + C(isNaN(e.value) ? "" : I.value.dataLabels.suffix), 1)), m("span", null, C(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(P.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1807
|
-
_: 1
|
|
1808
|
-
}, 8, [
|
|
1809
|
-
"colNames",
|
|
1810
|
-
"head",
|
|
1811
|
-
"body",
|
|
1812
|
-
"config",
|
|
1813
|
-
"title",
|
|
1814
|
-
"withCloseButton",
|
|
1815
|
-
"isCursorPointer"
|
|
1816
|
-
]))]),
|
|
1817
|
-
_: 2
|
|
1818
|
-
}, [P.value.table.useDialog ? {
|
|
1819
|
-
name: "title",
|
|
1820
|
-
fn: T(() => [Ke(C(Pi.value.title), 1)]),
|
|
1821
|
-
key: "0"
|
|
1822
|
-
} : void 0, P.value.table.useDialog ? {
|
|
1823
|
-
name: "actions",
|
|
1824
|
-
fn: T(() => [m("button", {
|
|
1825
|
-
tabindex: "0",
|
|
1826
|
-
class: "vue-ui-user-options-button",
|
|
1827
|
-
onClick: n[2] ||= (e) => yi(P.value.userOptions.callbacks.csv),
|
|
1828
|
-
style: Xe({ cursor: R.value ? "cursor" : "default" })
|
|
1829
|
-
}, [qe(w(Jt), {
|
|
1830
|
-
name: "fileCsv",
|
|
1831
|
-
stroke: Pi.value.props.color
|
|
1832
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1833
|
-
key: "1"
|
|
1834
|
-
} : void 0]), 1040)) : f("", !0),
|
|
1835
|
-
Hn.value.show ? (y(), d(w(en), {
|
|
1836
|
-
key: 9,
|
|
1837
|
-
ref_key: "dialog",
|
|
1838
|
-
ref: Oi,
|
|
1839
|
-
onClose: n[3] ||= (e) => {
|
|
1840
|
-
sn.value = null, on.value = !1, an.value = null, k.value = null, ii.value = null;
|
|
1841
|
-
},
|
|
1842
|
-
backgroundColor: Hn.value.backgroundColor,
|
|
1843
|
-
color: Hn.value.color,
|
|
1844
|
-
headerBg: Hn.value.header.backgroundColor,
|
|
1845
|
-
headerColor: Hn.value.header.color,
|
|
1846
|
-
isFullscreen: bi.value,
|
|
1847
|
-
fullscreenParent: A.value
|
|
1848
|
-
}, {
|
|
1849
|
-
title: T(() => [Ke(C(X.value[Number(sn.value.index)] ? X.value[Number(sn.value.index)].text : ""), 1)]),
|
|
1850
|
-
content: T(() => [sn.value ? (y(), d(w($t), {
|
|
1851
|
-
key: 0,
|
|
1852
|
-
config: Di.value,
|
|
1853
|
-
dataset: Ei.value
|
|
1854
|
-
}, null, 8, ["config", "dataset"])) : f("", !0)]),
|
|
1855
|
-
_: 1
|
|
1856
|
-
}, 8, [
|
|
1857
|
-
"backgroundColor",
|
|
1858
|
-
"color",
|
|
1859
|
-
"headerBg",
|
|
1860
|
-
"headerColor",
|
|
1861
|
-
"isFullscreen",
|
|
1862
|
-
"fullscreenParent"
|
|
1863
|
-
])) : f("", !0),
|
|
1864
|
-
w(Gn) ? (y(), d(we, { key: 10 })) : f("", !0)
|
|
1865
|
-
], 46, at));
|
|
1866
|
-
}
|
|
1867
|
-
}, [["__scopeId", "data-v-ddb74623"]]);
|
|
1868
|
-
//#endregion
|
|
1869
|
-
export { it as n, qt as t };
|