vue-data-ui 3.26.5 → 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 +17969 -17813
- 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 -120
- 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-BQbcOtfC.js +0 -116
- package/dist/BaseDraggableDialog-BCFCiP_6.js +0 -272
- package/dist/BaseIcon-CIK6Sqo3.js +0 -484
- package/dist/BaseLegendToggle-Doa5rYP2.js +0 -56
- package/dist/BaseScanner-Dzc8VT3j.js +0 -30
- package/dist/BaseZoomControls-BGQM8B5F.js +0 -111
- package/dist/ColorPicker-Cb7qpvFt.js +0 -257
- package/dist/DataTable-B6LDCXBz.js +0 -150
- package/dist/DefGrad-DVBqDjhO.js +0 -48
- package/dist/HillActions-CwdgCb7Q.js +0 -187
- package/dist/Legend-D9FGXIbQ.js +0 -156
- package/dist/NonSvgPenAndPaper-9T4MSwXC.js +0 -577
- package/dist/PackageVersion-CslTvFsC.js +0 -12
- package/dist/PenAndPaper-C1EcBgJW.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-BZgQLgu5.js +0 -143
- package/dist/SlicerPreview-DyYv_G-_.js +0 -1730
- package/dist/SparkTooltip-D4cRlyuq.js +0 -93
- package/dist/Title-Bd98RysU.js +0 -87
- package/dist/Tooltip-DmQeI5WE.js +0 -312
- package/dist/UserOptions-B_yBcZ1-.js +0 -1412
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/dom-to-png-B_RJohlM.js +0 -237
- package/dist/exposedLib-C-JlvWAt.js +0 -28
- package/dist/geoProjections-BYthUA8l.js +0 -302
- package/dist/img-KURaWjZI.js +0 -129
- package/dist/labelUtils-DShv2Mbg.js +0 -19
- package/dist/lib-TWIH5fGr.js +0 -2152
- package/dist/package-DbTqd5lc.js +0 -4
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-CLl24Afl.js +0 -90
- package/dist/render-common-CKv-jztN.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-DObkR9Aa.js +0 -8008
- package/dist/useFitSvgText-CXTzBplU.js +0 -65
- package/dist/useHints-Dq_w2E8B.js +0 -66
- package/dist/useNestedProp-BxOdWM0c.js +0 -12
- package/dist/useObjectBindings-CPmyIJxB.js +0 -191
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-8Y1Rju0Y.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-C3G5Zdl5.js +0 -191
- package/dist/vue-ui-3d-bar-Cl6-fBV8.js +0 -1831
- package/dist/vue-ui-accordion-AyyZDab3.js +0 -81
- package/dist/vue-ui-age-pyramid-DOtWAL8s.js +0 -1305
- package/dist/vue-ui-annotator-BCVjlojM.js +0 -3325
- package/dist/vue-ui-bullet-B_1Ctjvq.js +0 -702
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-candlestick-KvhjbAxt.js +0 -2144
- package/dist/vue-ui-carousel-table-ArMiO0cG.js +0 -467
- package/dist/vue-ui-chestnut-DSM0U27X.js +0 -2016
- package/dist/vue-ui-chord-64akfaem.js +0 -1347
- package/dist/vue-ui-circle-pack-CaR_aNEh.js +0 -1647
- package/dist/vue-ui-cursor-DCgqYZiz.js +0 -283
- package/dist/vue-ui-dag-8uKK0Rlp.js +0 -2931
- package/dist/vue-ui-dashboard-DeccYtSY.js +0 -522
- package/dist/vue-ui-digits-BvK7bVuJ.js +0 -217
- package/dist/vue-ui-donut-8joMj08Z.js +0 -974
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-donut-evolution-DgITf95R.js +0 -1869
- package/dist/vue-ui-dumbbell-U2L4ZYhB.js +0 -1533
- package/dist/vue-ui-flow-DD20fJu_.js +0 -1229
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-galaxy-VZFZnHPv.js +0 -1097
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-geo-DeDQ6ubl.js +0 -1495
- package/dist/vue-ui-gizmo-D5oUKIsP.js +0 -238
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-hill-DONFacXR.js +0 -1747
- package/dist/vue-ui-history-plot-BMy_y9S6.js +0 -1710
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-kpi-Bol0OWs3.js +0 -104
- package/dist/vue-ui-label-cwjXaEDQ.js +0 -1451
- package/dist/vue-ui-mini-loader-kdpasmXb.js +0 -133
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-nested-donuts-ZmGGEvRk.js +0 -1515
- package/dist/vue-ui-onion-D6IKPpL-.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.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-CueHa1Pm.js +0 -1979
- package/dist/vue-ui-quick-chart-C8ZxX1Zw.js +0 -2775
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-rating-V_OnJN9Y.js +0 -359
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-rings-Bf9IKwDr.js +0 -1264
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-skeleton-dyXWT6JX.js +0 -2567
- package/dist/vue-ui-smiley-w6nH1I0E.js +0 -376
- package/dist/vue-ui-spark-trend-Bso9bwmY.js +0 -457
- package/dist/vue-ui-sparkbar-CL06Yt56.js +0 -401
- package/dist/vue-ui-sparkgauge-BHDM5Hbr.js +0 -268
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-sparkline-znaswFQj.js +0 -2067
- package/dist/vue-ui-sparkstackbar-BOzVoWoa.js +0 -750
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-stackline-qcLrNL09.js +0 -2829
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-D295mJIf.js +0 -1352
- package/dist/vue-ui-table-heatmap-CXeMKqKz.js +0 -363
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
- package/dist/vue-ui-timer-BULpjYiI.js +0 -451
- package/dist/vue-ui-tiremarks-B7bTeU8h.js +0 -540
- package/dist/vue-ui-treemap-DkqDz9W4.js +0 -1745
- package/dist/vue-ui-waffle-Cn7WBzqh.js +0 -1633
- package/dist/vue-ui-wheel-Cy7kBvEx.js +0 -873
- package/dist/vue-ui-word-cloud-tRqc2ZMR.js +0 -1723
- package/dist/vue-ui-world-B755-zji.js +0 -3021
- package/dist/vue-ui-xy-BiHIJ7rK.js +0 -1387
- package/dist/vue-ui-xy-DWYTZz_v.js +0 -5777
- package/dist/vue-ui-xy-canvas-DGuMC_Rf.js +0 -2151
- 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-DdjDL6aq.js +0 -491
- 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,1386 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, $t as n, D as r, Et as i, It as a, Jt as o, M as s, Rt as ee, S as c, Vt as l, X as te, at as u, b as ne, et as re, ft as ie, i as ae, nt as oe, qt as se, t as ce, tn as le, vt as ue, w as de } from "./lib-TWIH5fGr.js";
|
|
3
|
-
import { n as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as pe } from "./useConfig-DObkR9Aa.js";
|
|
5
|
-
import { t as me } from "./usePrinter-8Y1Rju0Y.js";
|
|
6
|
-
import { n as he, t as ge } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as _e } from "./useNestedProp-BxOdWM0c.js";
|
|
8
|
-
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ye } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as be } from "./img-KURaWjZI.js";
|
|
11
|
-
import { n as xe } from "./Title-Bd98RysU.js";
|
|
12
|
-
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as Ce, t as we } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as Te } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as Ee } from "./BaseLegendToggle-Doa5rYP2.js";
|
|
16
|
-
import { t as De } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
-
import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
-
import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Ae } from "./Legend-D9FGXIbQ.js";
|
|
20
|
-
import { t as je } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
21
|
-
import { t as Me } from "./vue_ui_radar-jafTED5j.js";
|
|
22
|
-
import { Fragment as d, Teleport as Ne, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Be, onMounted as Ve, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as T, toRefs as We, unref as E, watch as Ge, withCtx as D } from "vue";
|
|
23
|
-
//#region src/components/vue-ui-radar.vue
|
|
24
|
-
var Ke = /* @__PURE__ */ e({ default: () => Ct }), qe = ["id"], Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
|
|
25
|
-
"xmlns",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"viewBox"
|
|
28
|
-
], Qe = ["width", "height"], $e = { key: 1 }, et = [
|
|
29
|
-
"x1",
|
|
30
|
-
"y1",
|
|
31
|
-
"x2",
|
|
32
|
-
"y2",
|
|
33
|
-
"stroke",
|
|
34
|
-
"stroke-width"
|
|
35
|
-
], tt = {
|
|
36
|
-
key: 0,
|
|
37
|
-
style: { "pointer-events": "none" }
|
|
38
|
-
}, nt = [
|
|
39
|
-
"d",
|
|
40
|
-
"stroke",
|
|
41
|
-
"stroke-width"
|
|
42
|
-
], rt = [
|
|
43
|
-
"d",
|
|
44
|
-
"stroke",
|
|
45
|
-
"stroke-width"
|
|
46
|
-
], it = { key: 2 }, at = [
|
|
47
|
-
"x",
|
|
48
|
-
"y",
|
|
49
|
-
"text-anchor",
|
|
50
|
-
"font-size",
|
|
51
|
-
"fill",
|
|
52
|
-
"onMouseenter",
|
|
53
|
-
"onMouseleave",
|
|
54
|
-
"onClick"
|
|
55
|
-
], ot = [
|
|
56
|
-
"points",
|
|
57
|
-
"stroke",
|
|
58
|
-
"stroke-width"
|
|
59
|
-
], st = [
|
|
60
|
-
"points",
|
|
61
|
-
"stroke",
|
|
62
|
-
"stroke-width",
|
|
63
|
-
"fill"
|
|
64
|
-
], ct = [
|
|
65
|
-
"d",
|
|
66
|
-
"stroke",
|
|
67
|
-
"stroke-width",
|
|
68
|
-
"stroke-dasharray"
|
|
69
|
-
], lt = { key: 4 }, ut = [
|
|
70
|
-
"onMouseenter",
|
|
71
|
-
"onMouseleave",
|
|
72
|
-
"onClick"
|
|
73
|
-
], dt = [
|
|
74
|
-
"cx",
|
|
75
|
-
"cy",
|
|
76
|
-
"r"
|
|
77
|
-
], ft = [
|
|
78
|
-
"cx",
|
|
79
|
-
"cy",
|
|
80
|
-
"fill",
|
|
81
|
-
"r",
|
|
82
|
-
"stroke"
|
|
83
|
-
], pt = {
|
|
84
|
-
key: 0,
|
|
85
|
-
style: {
|
|
86
|
-
position: "absolute",
|
|
87
|
-
top: "100%",
|
|
88
|
-
left: "0",
|
|
89
|
-
width: "100%"
|
|
90
|
-
},
|
|
91
|
-
"data-dom-to-png-ignore": "",
|
|
92
|
-
"aria-hidden": "true"
|
|
93
|
-
}, mt = {
|
|
94
|
-
key: 5,
|
|
95
|
-
class: "vue-data-ui-watermark"
|
|
96
|
-
}, ht = ["id"], gt = ["onClick"], _t = { class: "vue-data-ui-legend-item" }, vt = [
|
|
97
|
-
"stroke",
|
|
98
|
-
"stroke-width",
|
|
99
|
-
"stroke-dasharray"
|
|
100
|
-
], yt = {
|
|
101
|
-
key: 0,
|
|
102
|
-
style: {
|
|
103
|
-
"max-width": "200px",
|
|
104
|
-
margin: "0 auto"
|
|
105
|
-
}
|
|
106
|
-
}, bt = {
|
|
107
|
-
class: "vue-ui-radar-tooltip-datalabel",
|
|
108
|
-
style: { width: "100%" }
|
|
109
|
-
}, xt = { class: "vue-ui-radar-tooltip-datalabel-name" }, St = { key: 0 }, Ct = /*#__PURE__*/ Se({
|
|
110
|
-
__name: "vue-ui-radar",
|
|
111
|
-
props: {
|
|
112
|
-
config: {
|
|
113
|
-
type: Object,
|
|
114
|
-
default() {
|
|
115
|
-
return {};
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
dataset: {
|
|
119
|
-
type: Object,
|
|
120
|
-
default() {
|
|
121
|
-
return {};
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
emits: ["selectLegend", "copyAlt"],
|
|
126
|
-
setup(e, { expose: Se, emit: Ke }) {
|
|
127
|
-
let Ct = _(() => import("./Tooltip-DmQeI5WE.js")), wt = _(() => import("./BaseIcon-CIK6Sqo3.js").then((e) => e.n)), Tt = _(() => import("./vue-ui-sparkbar-CL06Yt56.js").then((e) => e.n)), Et = _(() => import("./vue-ui-accordion-AyyZDab3.js").then((e) => e.n)), Dt = _(() => import("./DataTable-B6LDCXBz.js")), Ot = _(() => import("./PenAndPaper-C1EcBgJW.js").then((e) => e.t)), kt = _(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), At = _(() => import("./PackageVersion-CslTvFsC.js").then((e) => e.t)), jt = _(() => import("./BaseDraggableDialog-BCFCiP_6.js").then((e) => e.n)), { vue_ui_radar: Mt } = pe(), { isThemeValid: Nt, warnInvalidTheme: Pt } = ve(), O = e, Ft = f(() => !!O.dataset && Object.keys(O.dataset).length), k = S(te()), It = S(!1), Lt = S(""), Rt = S(0), A = S(null), zt = S(null), Bt = S(null), Vt = S(null), Ht = S(null), Ut = S(0), Wt = S(0), Gt = S(0), Kt = S(!1), qt = S(null), Jt = S(null), j = S(null), Yt = S({
|
|
128
|
-
x: 0,
|
|
129
|
-
y: 0
|
|
130
|
-
}), Xt = S("pointer"), Zt = S(!1), M = S(an()), N = f(() => M.value.userOptions), P = f(() => M.value.style.chart.layout.labels), F = f(() => M.value.style.chart.layout), I = f(() => M.value.style.chart.tooltip), L = f(() => M.value.style.chart);
|
|
131
|
-
fe({
|
|
132
|
-
config: () => M.value,
|
|
133
|
-
dataset: () => O.dataset,
|
|
134
|
-
component: "VueUiRadar",
|
|
135
|
-
rules: [
|
|
136
|
-
{
|
|
137
|
-
test: (e) => e?.categories && e.categories.length === 0,
|
|
138
|
-
message: [
|
|
139
|
-
"👀 There are no categories in your dataset. Consider:",
|
|
140
|
-
"",
|
|
141
|
-
"▶️ Adding categories..."
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
test: (e) => e?.series && e.series.length === 0,
|
|
146
|
-
message: [
|
|
147
|
-
"👀 There are no series in your dataset. Consider:",
|
|
148
|
-
"",
|
|
149
|
-
"▶️ Adding series..."
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
test: (e) => e?.categories && e.categories.length > 3,
|
|
154
|
-
message: [
|
|
155
|
-
"👀 The number of categories > 3, the chart might become hard to read. Consider:",
|
|
156
|
-
"",
|
|
157
|
-
"▶️ Using several instances of the component to display related categories.",
|
|
158
|
-
"",
|
|
159
|
-
"▶️ Adding filters to allow users to choose a maximum number of categories."
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
test: (e) => e?.series && e.series.length > 12,
|
|
164
|
-
message: [
|
|
165
|
-
"👀 The number of series is > 12. Consider:",
|
|
166
|
-
"",
|
|
167
|
-
"▶️ Using several instances of the component to distribute the series.",
|
|
168
|
-
"",
|
|
169
|
-
"▶️ Using filters to let users choose a maximum number of series to display.",
|
|
170
|
-
""
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
]
|
|
174
|
-
});
|
|
175
|
-
let R = f(() => M.value.userOptions.useCursorPointer), Qt = f(() => le({
|
|
176
|
-
defaultConfig: {
|
|
177
|
-
userOptions: { show: !1 },
|
|
178
|
-
table: { show: !1 },
|
|
179
|
-
useCssAnimation: !1,
|
|
180
|
-
style: { chart: {
|
|
181
|
-
backgroundColor: "#99999930",
|
|
182
|
-
layout: {
|
|
183
|
-
grid: { stroke: "#6A6A6A90" },
|
|
184
|
-
labels: { dataLabels: { show: !1 } },
|
|
185
|
-
outerPolygon: { stroke: "#6A6A6A" }
|
|
186
|
-
},
|
|
187
|
-
legend: { backgroundColor: "transparent" }
|
|
188
|
-
} }
|
|
189
|
-
},
|
|
190
|
-
userConfig: M.value.skeletonConfig ?? {}
|
|
191
|
-
})), { loading: $t, FINAL_DATASET: z } = he({
|
|
192
|
-
...We(O),
|
|
193
|
-
FINAL_CONFIG: M,
|
|
194
|
-
prepareConfig: an,
|
|
195
|
-
callback: () => {
|
|
196
|
-
Promise.resolve().then(async () => {
|
|
197
|
-
await Re(), W.value.showTable = M.value.table.show;
|
|
198
|
-
});
|
|
199
|
-
},
|
|
200
|
-
skeletonDataset: O.config?.skeletonDataset ?? {
|
|
201
|
-
categories: [{
|
|
202
|
-
name: "_",
|
|
203
|
-
color: "#6A6A6A"
|
|
204
|
-
}],
|
|
205
|
-
series: [
|
|
206
|
-
{
|
|
207
|
-
name: "_",
|
|
208
|
-
values: [.6],
|
|
209
|
-
target: 1
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: "_",
|
|
213
|
-
values: [.6],
|
|
214
|
-
target: 1
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: "_",
|
|
218
|
-
values: [.6],
|
|
219
|
-
target: 1
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: "_",
|
|
223
|
-
values: [.6],
|
|
224
|
-
target: 1
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: "_",
|
|
228
|
-
values: [.6],
|
|
229
|
-
target: 1
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
name: "_",
|
|
233
|
-
values: [.6],
|
|
234
|
-
target: 1
|
|
235
|
-
}
|
|
236
|
-
]
|
|
237
|
-
},
|
|
238
|
-
skeletonConfig: le({
|
|
239
|
-
defaultConfig: M.value,
|
|
240
|
-
userConfig: Qt.value
|
|
241
|
-
})
|
|
242
|
-
}), { userOptionsVisible: en, setUserOptionsVisibility: tn, keepUserOptionState: nn } = Oe({ config: M.value }), { svgRef: B } = ke({ config: L.value.title });
|
|
243
|
-
function rn(e) {
|
|
244
|
-
return {
|
|
245
|
-
...e,
|
|
246
|
-
style: {
|
|
247
|
-
...e.style,
|
|
248
|
-
chart: {
|
|
249
|
-
...e.style.chart,
|
|
250
|
-
layout: {
|
|
251
|
-
...e.style.chart.layout,
|
|
252
|
-
grid: {
|
|
253
|
-
rotate: 0,
|
|
254
|
-
...e.style.chart.layout.grid
|
|
255
|
-
},
|
|
256
|
-
labels: {
|
|
257
|
-
...e.style.chart.layout.labels,
|
|
258
|
-
dataLabels: {
|
|
259
|
-
offset: 0,
|
|
260
|
-
...e.style.chart.layout.labels.dataLabels
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
function an() {
|
|
269
|
-
let e = rn(_e({
|
|
270
|
-
userConfig: O.config,
|
|
271
|
-
defaultConfig: Mt
|
|
272
|
-
})), t = e.theme;
|
|
273
|
-
if (!t) return e;
|
|
274
|
-
if (!Nt.value(e)) return Pt(e), e;
|
|
275
|
-
let r = _e({
|
|
276
|
-
userConfig: Me[t] || O.config,
|
|
277
|
-
defaultConfig: e
|
|
278
|
-
}), i = _e({
|
|
279
|
-
userConfig: O.config,
|
|
280
|
-
defaultConfig: r
|
|
281
|
-
});
|
|
282
|
-
return {
|
|
283
|
-
...i,
|
|
284
|
-
customPalette: i.customPalette.length ? i.customPalette : n[t] || l
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
function on(e) {
|
|
288
|
-
let t = re(e);
|
|
289
|
-
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
290
|
-
}
|
|
291
|
-
let sn = on(O.config);
|
|
292
|
-
Ge(() => O.config, (e, t) => {
|
|
293
|
-
let n = on(e), r = n !== sn;
|
|
294
|
-
sn = n;
|
|
295
|
-
let i = an();
|
|
296
|
-
if (!r) {
|
|
297
|
-
M.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = M.value.style.chart.tooltip.show;
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
M.value = i, en.value = !M.value.userOptions.showOnChartHover, cn(), Ut.value += 1, Wt.value += 1, Gt.value += 1, W.value.dataLabels.show = P.value.dataLabels.show, W.value.showTable = M.value.table.show, W.value.showTooltip = I.value ? I.value.show : !1;
|
|
301
|
-
}, { deep: !0 });
|
|
302
|
-
let V = Ue(null), H = Ue(null), U = f(() => M.value.debug);
|
|
303
|
-
function cn() {
|
|
304
|
-
if (ee(O.dataset) && u({
|
|
305
|
-
componentName: "VueUiRadar",
|
|
306
|
-
type: "dataset",
|
|
307
|
-
debug: U.value
|
|
308
|
-
}), M.value.responsive) {
|
|
309
|
-
let e = Ce(() => {
|
|
310
|
-
let { width: e, height: t } = we({
|
|
311
|
-
chart: A.value,
|
|
312
|
-
title: L.value.title.text ? zt.value : null,
|
|
313
|
-
legend: L.value.legend.show ? Bt.value : null,
|
|
314
|
-
source: Vt.value,
|
|
315
|
-
noTitle: Ht.value
|
|
316
|
-
});
|
|
317
|
-
requestAnimationFrame(() => {
|
|
318
|
-
G.value.width = e, G.value.height = t, Ln();
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(e), H.value = A.value.parentNode, V.value.observe(H.value);
|
|
322
|
-
}
|
|
323
|
-
Ln();
|
|
324
|
-
}
|
|
325
|
-
Ve(() => {
|
|
326
|
-
Kt.value = !0, cn();
|
|
327
|
-
}), Be(() => {
|
|
328
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
|
|
329
|
-
});
|
|
330
|
-
let { isPrinting: ln, isImaging: un, generatePdf: dn, generateImage: fn } = me({
|
|
331
|
-
elementId: `vue-ui-radar_${k.value}`,
|
|
332
|
-
fileName: L.value.title.text || "vue-ui-radar",
|
|
333
|
-
options: M.value.userOptions.print
|
|
334
|
-
}), pn = f(() => M.value.userOptions.show && !L.value.title.text), mn = f(() => de(M.value.customPalette)), W = S({
|
|
335
|
-
dataLabels: { show: P.value.dataLabels.show },
|
|
336
|
-
showTable: M.value.table.show,
|
|
337
|
-
showTooltip: I.value.show
|
|
338
|
-
}), hn = f(() => ({ style: {
|
|
339
|
-
backgroundColor: "#FFFFFF00",
|
|
340
|
-
animation: {
|
|
341
|
-
show: I.value.animation.show,
|
|
342
|
-
animationFrames: I.value.animation.animationFrames
|
|
343
|
-
},
|
|
344
|
-
labels: {
|
|
345
|
-
fontSize: I.value.fontSize,
|
|
346
|
-
name: { color: I.value.color }
|
|
347
|
-
},
|
|
348
|
-
gutter: {
|
|
349
|
-
backgroundColor: "#CCCCCC",
|
|
350
|
-
opacity: 30
|
|
351
|
-
}
|
|
352
|
-
} })), G = S({
|
|
353
|
-
height: 312,
|
|
354
|
-
width: 512
|
|
355
|
-
}), gn = Ke, K = S([]), _n = S(null), q = S(!1);
|
|
356
|
-
function vn() {
|
|
357
|
-
K.value.length ? K.value = [] : Z.value.forEach((e, t) => {
|
|
358
|
-
K.value.push(t);
|
|
359
|
-
}), yn();
|
|
360
|
-
}
|
|
361
|
-
function yn() {
|
|
362
|
-
gn("selectLegend", Z.value.filter((e, t) => !K.value.includes(t)).map((e) => ({
|
|
363
|
-
name: e.name,
|
|
364
|
-
color: e.color,
|
|
365
|
-
proportion: e.totalProportion
|
|
366
|
-
})));
|
|
367
|
-
}
|
|
368
|
-
function bn(e) {
|
|
369
|
-
q.value = !0, K.value.includes(e) ? (_n.value = e, K.value = K.value.filter((t) => t !== e), setTimeout(() => {
|
|
370
|
-
q.value = !1, _n.value = null;
|
|
371
|
-
}, 500)) : (K.value.push(e), setTimeout(() => {
|
|
372
|
-
q.value = !1;
|
|
373
|
-
}, 500)), yn();
|
|
374
|
-
}
|
|
375
|
-
function xn() {
|
|
376
|
-
return Z.value.map((e) => ({
|
|
377
|
-
name: e.name,
|
|
378
|
-
color: e.color,
|
|
379
|
-
proportion: e.totalProportion
|
|
380
|
-
}));
|
|
381
|
-
}
|
|
382
|
-
function Sn() {
|
|
383
|
-
let e = z.value;
|
|
384
|
-
if ([null, void 0].includes(e?.categories)) {
|
|
385
|
-
u({
|
|
386
|
-
componentName: "VueUiRadar",
|
|
387
|
-
type: "dataset",
|
|
388
|
-
debug: U.value
|
|
389
|
-
}), u({
|
|
390
|
-
componentName: "VueUiRadar",
|
|
391
|
-
type: "datasetAttribute",
|
|
392
|
-
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
393
|
-
debug: U.value
|
|
394
|
-
});
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
e.categories.length === 0 ? u({
|
|
398
|
-
componentName: "VueUiRadar",
|
|
399
|
-
type: "datasetAttributeEmpty",
|
|
400
|
-
property: "categories",
|
|
401
|
-
debug: U.value
|
|
402
|
-
}) : U.value && e.categories.forEach((e, t) => {
|
|
403
|
-
ue({
|
|
404
|
-
datasetObject: e,
|
|
405
|
-
requiredAttributes: ["name"]
|
|
406
|
-
}).forEach((e) => {
|
|
407
|
-
u({
|
|
408
|
-
componentName: "VueUiRadar",
|
|
409
|
-
type: "datasetAttribute",
|
|
410
|
-
property: `category.${e} at index ${t}`,
|
|
411
|
-
index: t
|
|
412
|
-
});
|
|
413
|
-
});
|
|
414
|
-
}), [null, void 0].includes(e?.series) ? u({
|
|
415
|
-
componentName: "VueUiRadar",
|
|
416
|
-
type: "datasetAttribute",
|
|
417
|
-
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
418
|
-
debug: U.value
|
|
419
|
-
}) : U.value && e.series.forEach((e, t) => {
|
|
420
|
-
ue({
|
|
421
|
-
datasetObject: e,
|
|
422
|
-
requiredAttributes: [
|
|
423
|
-
"name",
|
|
424
|
-
"values",
|
|
425
|
-
"target"
|
|
426
|
-
]
|
|
427
|
-
}).forEach((e) => {
|
|
428
|
-
u({
|
|
429
|
-
componentName: "VueUiRadar",
|
|
430
|
-
type: "datasetSerieAttribute",
|
|
431
|
-
key: "series",
|
|
432
|
-
property: e,
|
|
433
|
-
index: t
|
|
434
|
-
});
|
|
435
|
-
});
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
Ge(() => z.value, () => Sn(), {
|
|
439
|
-
deep: !0,
|
|
440
|
-
immediate: !0
|
|
441
|
-
});
|
|
442
|
-
let J = f(() => {
|
|
443
|
-
let e = Array.isArray(z.value?.categories) ? z.value.categories : [], t = mn.value ?? l;
|
|
444
|
-
return e.map((e, n) => ({
|
|
445
|
-
name: e?.name ?? "",
|
|
446
|
-
categoryId: `radar_category_${k.value}_${n}`,
|
|
447
|
-
color: c(e?.color) || t[n] || l[n % l.length],
|
|
448
|
-
prefix: e?.prefix ?? "",
|
|
449
|
-
suffix: e?.suffix ?? ""
|
|
450
|
-
}));
|
|
451
|
-
}), Y = f(() => z.value.series.map((e, t) => ({
|
|
452
|
-
...e,
|
|
453
|
-
color: c(e.color) || mn.value[t] || l[t] || l[t % l.length],
|
|
454
|
-
serieId: `radar_serie_${k.value}_${t}`,
|
|
455
|
-
formatter: e.formatter || null,
|
|
456
|
-
absoluteIndex: t
|
|
457
|
-
})));
|
|
458
|
-
function Cn(e) {
|
|
459
|
-
return Y.value.length ? Z.value.find((t) => t.name === e) || (U.value && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (U.value && console.warn("VueUiRadar - There are no series to show."), null);
|
|
460
|
-
}
|
|
461
|
-
function wn(e) {
|
|
462
|
-
let t = Cn(e);
|
|
463
|
-
t !== null && K.value.includes(t.absoluteIndex) && bn(t.absoluteIndex);
|
|
464
|
-
}
|
|
465
|
-
function Tn(e) {
|
|
466
|
-
let t = Cn(e);
|
|
467
|
-
t !== null && (K.value.includes(t.absoluteIndex) || bn(t.absoluteIndex));
|
|
468
|
-
}
|
|
469
|
-
let En = f(() => Math.max(0, ...Y.value.flatMap((e) => e.values)));
|
|
470
|
-
function Dn(e) {
|
|
471
|
-
return F.value.scaleToAxisMax ? Math.max(1, e.target || 0, ...e.values) : e.target || En.value || 1;
|
|
472
|
-
}
|
|
473
|
-
let On = f(() => Y.value.map((e, t) => {
|
|
474
|
-
let n = Nn.value.coordinates[t];
|
|
475
|
-
return Rn({
|
|
476
|
-
centerX: G.value.width / 2,
|
|
477
|
-
centerY: G.value.height / 2,
|
|
478
|
-
apexX: n.x,
|
|
479
|
-
apexY: n.y,
|
|
480
|
-
proportion: (e.target || 0) / Dn(e)
|
|
481
|
-
});
|
|
482
|
-
})), kn = f(() => Y.value.length), An = f(() => Math.min(G.value.width, G.value.height) / 3), jn = f(() => {
|
|
483
|
-
let e = Number(F.value.plots.radius ?? 0);
|
|
484
|
-
return Math.max(Number.isFinite(e) ? e * 2.5 : 0, 10);
|
|
485
|
-
}), Mn = f(() => {
|
|
486
|
-
let e = Number(F.value.grid.rotation ?? 0);
|
|
487
|
-
return Number.isFinite(e) ? e * Math.PI / 180 : 0;
|
|
488
|
-
}), Nn = f(() => s({
|
|
489
|
-
plot: {
|
|
490
|
-
x: G.value.width / 2,
|
|
491
|
-
y: G.value.height / 2
|
|
492
|
-
},
|
|
493
|
-
radius: An.value,
|
|
494
|
-
sides: kn.value,
|
|
495
|
-
rotation: Mn.value
|
|
496
|
-
})), Pn = f(() => {
|
|
497
|
-
let e = [];
|
|
498
|
-
for (let t = 0; t < An.value; t += An.value / F.value.grid.graduations) e.push(t);
|
|
499
|
-
return e;
|
|
500
|
-
}), X = f(() => Nn.value.coordinates.map((e, t) => {
|
|
501
|
-
let n = Y.value[t], r = Y.value[t].values.map((t) => Rn({
|
|
502
|
-
centerX: G.value.width / 2,
|
|
503
|
-
centerY: G.value.height / 2,
|
|
504
|
-
apexX: e.x,
|
|
505
|
-
apexY: e.y,
|
|
506
|
-
proportion: t / Dn(n)
|
|
507
|
-
}));
|
|
508
|
-
return {
|
|
509
|
-
...e,
|
|
510
|
-
...n,
|
|
511
|
-
plots: r
|
|
512
|
-
};
|
|
513
|
-
}).map((e) => ({
|
|
514
|
-
...e,
|
|
515
|
-
labelX: Fn(e).x,
|
|
516
|
-
labelY: Fn(e).y,
|
|
517
|
-
labelAnchor: Fn(e).anchor
|
|
518
|
-
})));
|
|
519
|
-
function Fn({ x: e, y: t }) {
|
|
520
|
-
let n = G.value.width / 2, r = G.value.height / 2, i = e - n, a = t - r, o = Math.hypot(i, a), s = Number(P.value.dataLabels.offset ?? 0), ee = 20 + (Number.isFinite(s) ? s : 0);
|
|
521
|
-
if (!o) return {
|
|
522
|
-
x: e,
|
|
523
|
-
y: t,
|
|
524
|
-
anchor: "middle"
|
|
525
|
-
};
|
|
526
|
-
let c = i / o, l = a / o, te = "middle";
|
|
527
|
-
return c > .01 ? te = "start" : c < -.01 && (te = "end"), {
|
|
528
|
-
x: e + c * ee,
|
|
529
|
-
y: t + l * ee,
|
|
530
|
-
anchor: te
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
let In = f({
|
|
534
|
-
get: () => P.value.dataLabels.fontSize,
|
|
535
|
-
set: (e) => e
|
|
536
|
-
}), { autoSizeLabels: Ln } = je({
|
|
537
|
-
svgRef: B,
|
|
538
|
-
fontSize: P.value.dataLabels.fontSize,
|
|
539
|
-
minFontSize: 6,
|
|
540
|
-
sizeRef: In,
|
|
541
|
-
labelClass: ".vue-ui-radar-apex-label"
|
|
542
|
-
});
|
|
543
|
-
function Rn({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
544
|
-
return {
|
|
545
|
-
x: e + (n - e) * i,
|
|
546
|
-
y: t + (r - t) * i
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
let Z = f(() => {
|
|
550
|
-
let e = Y.value.map((e, t) => e.values.map((t) => t / (e.target || En.value)));
|
|
551
|
-
return J.value.map((n, r) => {
|
|
552
|
-
let i = ne(e.map((e) => e[r]).reduce((e, t) => e + t, 0) / Y.value.length);
|
|
553
|
-
return {
|
|
554
|
-
...n,
|
|
555
|
-
absoluteIndex: r,
|
|
556
|
-
totalProportion: i,
|
|
557
|
-
shape: "circle",
|
|
558
|
-
opacity: K.value.includes(r) ? .5 : 1,
|
|
559
|
-
segregate: () => bn(r),
|
|
560
|
-
isSegregated: K.value.includes(r),
|
|
561
|
-
display: `${n.name}: ${t({
|
|
562
|
-
v: (i ?? 0) * 100,
|
|
563
|
-
s: "%",
|
|
564
|
-
r: L.value.legend.roundingPercentage
|
|
565
|
-
})}`
|
|
566
|
-
};
|
|
567
|
-
});
|
|
568
|
-
}), zn = f(() => ({
|
|
569
|
-
cy: "radar-div-legend",
|
|
570
|
-
backgroundColor: L.value.legend.backgroundColor,
|
|
571
|
-
color: L.value.legend.color,
|
|
572
|
-
fontSize: L.value.legend.fontSize,
|
|
573
|
-
paddingBottom: 12,
|
|
574
|
-
fontWeight: L.value.legend.bold ? "bold" : ""
|
|
575
|
-
})), Q = f(() => {
|
|
576
|
-
let e = [
|
|
577
|
-
{
|
|
578
|
-
name: M.value.translations.datapoint,
|
|
579
|
-
color: ""
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
name: M.value.translations.target,
|
|
583
|
-
color: ""
|
|
584
|
-
},
|
|
585
|
-
...Z.value
|
|
586
|
-
];
|
|
587
|
-
return {
|
|
588
|
-
head: e,
|
|
589
|
-
body: z.value.series.map((e) => [
|
|
590
|
-
e.name,
|
|
591
|
-
ae(e.formatter, e.target, t({
|
|
592
|
-
p: e.prefix,
|
|
593
|
-
v: e.target,
|
|
594
|
-
s: e.suffix,
|
|
595
|
-
r: M.value.table.td.roundingValue
|
|
596
|
-
})),
|
|
597
|
-
...e.values.map((n, r) => `${ae(e.formatter, n, t({
|
|
598
|
-
p: J.value[r]?.prefix ?? "",
|
|
599
|
-
v: n,
|
|
600
|
-
s: J.value[r]?.suffix ?? "",
|
|
601
|
-
r: M.value.table.td.roundingValue
|
|
602
|
-
}))} (${isNaN(n / e.target) ? "" : t({
|
|
603
|
-
v: n / e.target * 100,
|
|
604
|
-
s: "%",
|
|
605
|
-
r: M.value.table.td.roundingPercentage
|
|
606
|
-
})})`)
|
|
607
|
-
]),
|
|
608
|
-
config: {
|
|
609
|
-
th: {
|
|
610
|
-
backgroundColor: M.value.table.th.backgroundColor,
|
|
611
|
-
color: M.value.table.th.color,
|
|
612
|
-
outline: M.value.table.th.outline
|
|
613
|
-
},
|
|
614
|
-
td: {
|
|
615
|
-
backgroundColor: M.value.table.td.backgroundColor,
|
|
616
|
-
color: M.value.table.td.color,
|
|
617
|
-
outline: M.value.table.td.outline
|
|
618
|
-
},
|
|
619
|
-
breakpoint: M.value.table.responsiveBreakpoint
|
|
620
|
-
},
|
|
621
|
-
colNames: e
|
|
622
|
-
};
|
|
623
|
-
}), Bn = S(null), Vn = S([]), Hn = S(null);
|
|
624
|
-
function Un(e, t) {
|
|
625
|
-
It.value = !1, Bn.value = null, j.value = null, Xt.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
626
|
-
datapoint: e,
|
|
627
|
-
seriesIndex: t
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
function Wn(e, t) {
|
|
631
|
-
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
632
|
-
datapoint: e,
|
|
633
|
-
seriesIndex: t
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
function Gn(e, n, r = "pointer") {
|
|
637
|
-
M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
638
|
-
datapoint: e,
|
|
639
|
-
seriesIndex: n
|
|
640
|
-
}), Xt.value = r, j.value = n;
|
|
641
|
-
let a = J.value.slice();
|
|
642
|
-
Vn.value = [], Bn.value = n, It.value = !0, Hn.value = {
|
|
643
|
-
datapoint: e,
|
|
644
|
-
seriesIndex: n,
|
|
645
|
-
series: {
|
|
646
|
-
categories: a,
|
|
647
|
-
datapoints: Y.value,
|
|
648
|
-
radar: X.value
|
|
649
|
-
},
|
|
650
|
-
config: M.value
|
|
651
|
-
};
|
|
652
|
-
let o = I.value.customFormat;
|
|
653
|
-
if (i(o) && ie(() => o({
|
|
654
|
-
seriesIndex: n,
|
|
655
|
-
datapoint: e,
|
|
656
|
-
series: {
|
|
657
|
-
categories: a,
|
|
658
|
-
datapoints: Y.value,
|
|
659
|
-
radar: X.value
|
|
660
|
-
},
|
|
661
|
-
config: M.value
|
|
662
|
-
}))) {
|
|
663
|
-
Lt.value = o({
|
|
664
|
-
seriesIndex: n,
|
|
665
|
-
datapoint: e,
|
|
666
|
-
series: {
|
|
667
|
-
categories: a,
|
|
668
|
-
datapoints: Y.value,
|
|
669
|
-
radar: X.value
|
|
670
|
-
},
|
|
671
|
-
config: M.value
|
|
672
|
-
});
|
|
673
|
-
return;
|
|
674
|
-
}
|
|
675
|
-
Lt.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
676
|
-
for (let n = 0; n < e.values.length; n += 1) if (!K.value.includes(n)) {
|
|
677
|
-
let r = a[n], i = e.values[n], o = isNaN(i / e.target) ? 0 : i / e.target * 100, s = ae(e.formatter, i, t({
|
|
678
|
-
p: J.value[n].prefix,
|
|
679
|
-
v: i,
|
|
680
|
-
s: J.value[n].suffix,
|
|
681
|
-
r: I.value.roundingValue
|
|
682
|
-
}), { datapoint: e }), ee = t({
|
|
683
|
-
v: o,
|
|
684
|
-
s: "%",
|
|
685
|
-
r: I.value.roundingPercentage
|
|
686
|
-
}), c = I.value.showValue && I.value.showPercentage ? `${s} (${ee})` : I.value.showValue && !I.value.showPercentage ? s : !I.value.showValue && I.value.showPercentage ? `${ee}` : "";
|
|
687
|
-
Vn.value.push({
|
|
688
|
-
name: r?.name ?? `#${n + 1}`,
|
|
689
|
-
value: e.values[n] / e.target * 100,
|
|
690
|
-
color: r?.color,
|
|
691
|
-
suffix: c,
|
|
692
|
-
prefix: "",
|
|
693
|
-
rounding: I.value.roundingPercentage,
|
|
694
|
-
formatter: e.formatter
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
function Kn(e = null) {
|
|
699
|
-
Re(() => {
|
|
700
|
-
let t = [
|
|
701
|
-
[L.value.title.text],
|
|
702
|
-
[L.value.title.subtitle.text],
|
|
703
|
-
[""]
|
|
704
|
-
], n = [
|
|
705
|
-
[""],
|
|
706
|
-
[M.value.translations.target],
|
|
707
|
-
...Z.value.flatMap((e) => [[e.name], ["%"]])
|
|
708
|
-
], i = z.value.series.map((e, t) => [
|
|
709
|
-
e.name,
|
|
710
|
-
e.target,
|
|
711
|
-
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
712
|
-
]), a = t.concat([n]).concat(i), o = r(a);
|
|
713
|
-
e ? e(o) : oe({
|
|
714
|
-
csvContent: o,
|
|
715
|
-
title: L.value.title.text || "vue-ui-radar"
|
|
716
|
-
});
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
let $ = S(!1);
|
|
720
|
-
function qn(e) {
|
|
721
|
-
$.value = e, Rt.value += 1;
|
|
722
|
-
}
|
|
723
|
-
function Jn() {
|
|
724
|
-
W.value.showTable = !W.value.showTable;
|
|
725
|
-
}
|
|
726
|
-
function Yn() {
|
|
727
|
-
W.value.showTooltip = !W.value.showTooltip;
|
|
728
|
-
}
|
|
729
|
-
let Xn = S(!1);
|
|
730
|
-
function Zn() {
|
|
731
|
-
Xn.value = !Xn.value;
|
|
732
|
-
}
|
|
733
|
-
async function Qn({ scale: e = 2 } = {}) {
|
|
734
|
-
if (!A.value) return;
|
|
735
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
736
|
-
domElement: A.value,
|
|
737
|
-
base64: !0,
|
|
738
|
-
img: !0,
|
|
739
|
-
scale: e
|
|
740
|
-
});
|
|
741
|
-
return {
|
|
742
|
-
imageUri: i,
|
|
743
|
-
base64: a,
|
|
744
|
-
title: L.value.title.text,
|
|
745
|
-
width: t,
|
|
746
|
-
height: n,
|
|
747
|
-
aspectRatio: r
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
let $n = f(() => {
|
|
751
|
-
let e = M.value.table.useDialog && !M.value.table.show, t = W.value.showTable;
|
|
752
|
-
return {
|
|
753
|
-
component: e ? jt : Et,
|
|
754
|
-
title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
|
|
755
|
-
props: e ? {
|
|
756
|
-
backgroundColor: M.value.table.th.backgroundColor,
|
|
757
|
-
color: M.value.table.th.color,
|
|
758
|
-
headerColor: M.value.table.th.color,
|
|
759
|
-
headerBg: M.value.table.th.backgroundColor,
|
|
760
|
-
isFullscreen: $.value,
|
|
761
|
-
fullscreenParent: A.value,
|
|
762
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
763
|
-
isCursorPointer: R.value
|
|
764
|
-
} : {
|
|
765
|
-
hideDetails: !0,
|
|
766
|
-
config: {
|
|
767
|
-
open: t,
|
|
768
|
-
maxHeight: 1e4,
|
|
769
|
-
body: {
|
|
770
|
-
backgroundColor: L.value.backgroundColor,
|
|
771
|
-
color: L.value.color
|
|
772
|
-
},
|
|
773
|
-
head: {
|
|
774
|
-
backgroundColor: L.value.backgroundColor,
|
|
775
|
-
color: L.value.color
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
};
|
|
780
|
-
});
|
|
781
|
-
Ge(() => W.value.showTable, (e) => {
|
|
782
|
-
M.value.table.show || (e && M.value.table.useDialog && qt.value ? qt.value.open() : "close" in qt.value && qt.value.close());
|
|
783
|
-
});
|
|
784
|
-
function er() {
|
|
785
|
-
W.value.showTable = !1, Jt.value && Jt.value.setTableIconState(!1);
|
|
786
|
-
}
|
|
787
|
-
let tr = f(() => Z.value.map((e) => ({
|
|
788
|
-
...e,
|
|
789
|
-
name: e.display
|
|
790
|
-
}))), nr = f(() => L.value.backgroundColor), rr = f(() => L.value.legend), ir = f(() => L.value.title), { isCallbackImaging: ar, isCallbackSvg: or, generateSvg: sr, onGenerateImage: cr } = ye({
|
|
791
|
-
svg: B,
|
|
792
|
-
title: ir,
|
|
793
|
-
legend: rr,
|
|
794
|
-
legendItems: tr,
|
|
795
|
-
backgroundColor: nr,
|
|
796
|
-
getSvgCallback: () => M.value.userOptions.callbacks.svg,
|
|
797
|
-
generateImage: fn
|
|
798
|
-
});
|
|
799
|
-
async function lr() {
|
|
800
|
-
if (gn("copyAlt", {
|
|
801
|
-
config: M.value,
|
|
802
|
-
dataset: X.value
|
|
803
|
-
}), !M.value.userOptions.callbacks.altCopy) {
|
|
804
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
805
|
-
return;
|
|
806
|
-
}
|
|
807
|
-
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
808
|
-
config: M.value,
|
|
809
|
-
dataset: X.value
|
|
810
|
-
}));
|
|
811
|
-
}
|
|
812
|
-
function ur() {
|
|
813
|
-
j.value = null, Zt.value = !0;
|
|
814
|
-
}
|
|
815
|
-
function dr() {
|
|
816
|
-
j.value = null, Xt.value = "pointer", It.value = !1, Bn.value = null, Zt.value = !1;
|
|
817
|
-
}
|
|
818
|
-
function fr(e) {
|
|
819
|
-
if (!Number.isFinite(e) || !B.value) return;
|
|
820
|
-
let t = X.value[e];
|
|
821
|
-
if (!t) return;
|
|
822
|
-
let n = B.value.getBoundingClientRect();
|
|
823
|
-
Yt.value = {
|
|
824
|
-
x: n.left + t.labelX / G.value.width * n.width,
|
|
825
|
-
y: n.top + t.labelY / G.value.height * n.height
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
function pr(e) {
|
|
829
|
-
if (!B.value || Xn.value || document.activeElement !== B.value || !X.value.length) return;
|
|
830
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
831
|
-
if (!t && !n && !r && !i) return;
|
|
832
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
833
|
-
j.value = null, Xt.value = "pointer", It.value = !1, Bn.value = null;
|
|
834
|
-
return;
|
|
835
|
-
}
|
|
836
|
-
if (r) {
|
|
837
|
-
if (j.value === null) return;
|
|
838
|
-
let e = X.value[j.value];
|
|
839
|
-
if (!e) return;
|
|
840
|
-
Wn(e, j.value);
|
|
841
|
-
return;
|
|
842
|
-
}
|
|
843
|
-
let a = j.value;
|
|
844
|
-
a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1));
|
|
845
|
-
let o = X.value[a];
|
|
846
|
-
o && (j.value = a, fr(a), Gn(o, a, "keyboard"));
|
|
847
|
-
}
|
|
848
|
-
let mr = f(() => ({
|
|
849
|
-
headers: Q.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
850
|
-
rows: Q.value?.body ?? []
|
|
851
|
-
}));
|
|
852
|
-
return Se({
|
|
853
|
-
getData: xn,
|
|
854
|
-
getImage: Qn,
|
|
855
|
-
generatePdf: dn,
|
|
856
|
-
generateCsv: Kn,
|
|
857
|
-
generateImage: fn,
|
|
858
|
-
generateSvg: sr,
|
|
859
|
-
hideSeries: Tn,
|
|
860
|
-
showSeries: wn,
|
|
861
|
-
toggleTable: Jn,
|
|
862
|
-
toggleTooltip: Yn,
|
|
863
|
-
toggleAnnotator: Zn,
|
|
864
|
-
toggleFullscreen: qn,
|
|
865
|
-
copyAlt: lr
|
|
866
|
-
}), (e, t) => (x(), h("div", {
|
|
867
|
-
class: ze(`vue-data-ui-component vue-ui-radar ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
868
|
-
ref_key: "radarChart",
|
|
869
|
-
ref: A,
|
|
870
|
-
id: `vue-ui-radar_${k.value}`,
|
|
871
|
-
style: b(`font-family:${M.value.style.fontFamily};width:100%; ${M.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.backgroundColor}`),
|
|
872
|
-
onMouseenter: t[2] ||= () => E(tn)(!0),
|
|
873
|
-
onMouseleave: t[3] ||= () => E(tn)(!1)
|
|
874
|
-
}, [
|
|
875
|
-
g("div", {
|
|
876
|
-
id: `chart-instructions-${k.value}`,
|
|
877
|
-
class: "sr-only"
|
|
878
|
-
}, [g("p", null, T(M.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
879
|
-
mr.value?.rows?.length ? (x(), p(De, {
|
|
880
|
-
key: 0,
|
|
881
|
-
uid: k.value,
|
|
882
|
-
head: mr.value.headers,
|
|
883
|
-
body: mr.value.rows,
|
|
884
|
-
notice: M.value.a11y.translations.tableAvailable,
|
|
885
|
-
caption: M.value.a11y.translations.tableCaption
|
|
886
|
-
}, null, 8, [
|
|
887
|
-
"uid",
|
|
888
|
-
"head",
|
|
889
|
-
"body",
|
|
890
|
-
"notice",
|
|
891
|
-
"caption"
|
|
892
|
-
])) : m("", !0),
|
|
893
|
-
N.value.buttons.annotator ? (x(), p(E(Ot), {
|
|
894
|
-
key: 1,
|
|
895
|
-
svgRef: E(B),
|
|
896
|
-
backgroundColor: L.value.backgroundColor,
|
|
897
|
-
color: L.value.color,
|
|
898
|
-
active: Xn.value,
|
|
899
|
-
isCursorPointer: R.value,
|
|
900
|
-
palette: N.value.annotatorPalette,
|
|
901
|
-
onClose: Zn
|
|
902
|
-
}, {
|
|
903
|
-
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
904
|
-
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
905
|
-
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
|
|
906
|
-
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
|
|
907
|
-
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
|
|
908
|
-
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
|
|
909
|
-
_: 3
|
|
910
|
-
}, 8, [
|
|
911
|
-
"svgRef",
|
|
912
|
-
"backgroundColor",
|
|
913
|
-
"color",
|
|
914
|
-
"active",
|
|
915
|
-
"isCursorPointer",
|
|
916
|
-
"palette"
|
|
917
|
-
])) : m("", !0),
|
|
918
|
-
pn.value ? (x(), h("div", {
|
|
919
|
-
key: 2,
|
|
920
|
-
ref_key: "noTitle",
|
|
921
|
-
ref: Ht,
|
|
922
|
-
class: "vue-data-ui-no-title-space",
|
|
923
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
924
|
-
}, null, 512)) : m("", !0),
|
|
925
|
-
L.value.title.text ? (x(), h("div", {
|
|
926
|
-
key: 3,
|
|
927
|
-
ref_key: "chartTitle",
|
|
928
|
-
ref: zt,
|
|
929
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
930
|
-
}, [(x(), p(xe, {
|
|
931
|
-
key: `title_${Ut.value}`,
|
|
932
|
-
config: {
|
|
933
|
-
title: {
|
|
934
|
-
cy: "radar-div-title",
|
|
935
|
-
...L.value.title
|
|
936
|
-
},
|
|
937
|
-
subtitle: {
|
|
938
|
-
cy: "radar-div-subtitle",
|
|
939
|
-
...L.value.title.subtitle
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
943
|
-
g("div", { id: `legend-top-${k.value}` }, null, 8, Ye),
|
|
944
|
-
N.value.show && Ft.value && (E(nn) || E(en)) ? (x(), p(E(kt), {
|
|
945
|
-
ref_key: "userOptionsRef",
|
|
946
|
-
ref: Jt,
|
|
947
|
-
key: `user_options_${Rt.value}`,
|
|
948
|
-
backgroundColor: L.value.backgroundColor,
|
|
949
|
-
color: L.value.color,
|
|
950
|
-
isImaging: E(un),
|
|
951
|
-
isPrinting: E(ln),
|
|
952
|
-
uid: k.value,
|
|
953
|
-
hasTooltip: N.value.buttons.tooltip && I.value.show,
|
|
954
|
-
hasPdf: N.value.buttons.pdf,
|
|
955
|
-
hasImg: N.value.buttons.img,
|
|
956
|
-
hasSvg: N.value.buttons.svg,
|
|
957
|
-
hasXls: N.value.buttons.csv,
|
|
958
|
-
hasTable: N.value.buttons.table,
|
|
959
|
-
hasFullscreen: N.value.buttons.fullscreen,
|
|
960
|
-
hasAltCopy: N.value.buttons.altCopy,
|
|
961
|
-
isFullscreen: $.value,
|
|
962
|
-
isTooltip: W.value.showTooltip,
|
|
963
|
-
titles: { ...N.value.buttonTitles },
|
|
964
|
-
chartElement: A.value,
|
|
965
|
-
position: N.value.position,
|
|
966
|
-
hasAnnotator: N.value.buttons.annotator,
|
|
967
|
-
isAnnotation: Xn.value,
|
|
968
|
-
callbacks: N.value.callbacks,
|
|
969
|
-
printScale: N.value.print.scale,
|
|
970
|
-
tableDialog: M.value.table.useDialog,
|
|
971
|
-
isCursorPointer: R.value,
|
|
972
|
-
onToggleFullscreen: qn,
|
|
973
|
-
onGeneratePdf: E(dn),
|
|
974
|
-
onGenerateCsv: Kn,
|
|
975
|
-
onGenerateImage: E(cr),
|
|
976
|
-
onGenerateSvg: E(sr),
|
|
977
|
-
onToggleTable: Jn,
|
|
978
|
-
onToggleTooltip: Yn,
|
|
979
|
-
onToggleAnnotator: Zn,
|
|
980
|
-
onCopyAlt: lr,
|
|
981
|
-
style: b({ visibility: E(nn) ? E(en) ? "visible" : "hidden" : "visible" })
|
|
982
|
-
}, Pe({ _: 2 }, [
|
|
983
|
-
e.$slots.menuIcon ? {
|
|
984
|
-
name: "menuIcon",
|
|
985
|
-
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(v({
|
|
986
|
-
isOpen: t,
|
|
987
|
-
color: n
|
|
988
|
-
})), void 0, !0)]),
|
|
989
|
-
key: "0"
|
|
990
|
-
} : void 0,
|
|
991
|
-
e.$slots.optionTooltip ? {
|
|
992
|
-
name: "optionTooltip",
|
|
993
|
-
fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
994
|
-
key: "1"
|
|
995
|
-
} : void 0,
|
|
996
|
-
e.$slots.optionPdf ? {
|
|
997
|
-
name: "optionPdf",
|
|
998
|
-
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
999
|
-
key: "2"
|
|
1000
|
-
} : void 0,
|
|
1001
|
-
e.$slots.optionCsv ? {
|
|
1002
|
-
name: "optionCsv",
|
|
1003
|
-
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1004
|
-
key: "3"
|
|
1005
|
-
} : void 0,
|
|
1006
|
-
e.$slots.optionImg ? {
|
|
1007
|
-
name: "optionImg",
|
|
1008
|
-
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1009
|
-
key: "4"
|
|
1010
|
-
} : void 0,
|
|
1011
|
-
e.$slots.optionSvg ? {
|
|
1012
|
-
name: "optionSvg",
|
|
1013
|
-
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1014
|
-
key: "5"
|
|
1015
|
-
} : void 0,
|
|
1016
|
-
e.$slots.optionTable ? {
|
|
1017
|
-
name: "optionTable",
|
|
1018
|
-
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1019
|
-
key: "6"
|
|
1020
|
-
} : void 0,
|
|
1021
|
-
e.$slots.optionFullscreen ? {
|
|
1022
|
-
name: "optionFullscreen",
|
|
1023
|
-
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(v({
|
|
1024
|
-
toggleFullscreen: t,
|
|
1025
|
-
isFullscreen: n
|
|
1026
|
-
})), void 0, !0)]),
|
|
1027
|
-
key: "7"
|
|
1028
|
-
} : void 0,
|
|
1029
|
-
e.$slots.optionAnnotator ? {
|
|
1030
|
-
name: "optionAnnotator",
|
|
1031
|
-
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(v({
|
|
1032
|
-
toggleAnnotator: t,
|
|
1033
|
-
isAnnotator: n
|
|
1034
|
-
})), void 0, !0)]),
|
|
1035
|
-
key: "8"
|
|
1036
|
-
} : void 0,
|
|
1037
|
-
e.$slots.optionAltCopy ? {
|
|
1038
|
-
name: "optionAltCopy",
|
|
1039
|
-
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
|
|
1040
|
-
key: "9"
|
|
1041
|
-
} : void 0,
|
|
1042
|
-
e.$slots["custom-menu-before"] ? {
|
|
1043
|
-
name: "custom-menu-before",
|
|
1044
|
-
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1045
|
-
key: "10"
|
|
1046
|
-
} : void 0,
|
|
1047
|
-
e.$slots["custom-menu-after"] ? {
|
|
1048
|
-
name: "custom-menu-after",
|
|
1049
|
-
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1050
|
-
key: "11"
|
|
1051
|
-
} : void 0
|
|
1052
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
1053
|
-
g("div", Xe, [(x(), h("svg", {
|
|
1054
|
-
ref_key: "svgRef",
|
|
1055
|
-
ref: B,
|
|
1056
|
-
xmlns: E(ce),
|
|
1057
|
-
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1058
|
-
class: ze({
|
|
1059
|
-
"vue-data-ui-fullscreen--on": $.value,
|
|
1060
|
-
"vue-data-ui-fulscreen--off": !$.value
|
|
1061
|
-
}),
|
|
1062
|
-
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
|
|
1063
|
-
style: b(`max-width:100%;overflow:visible;background:transparent;color:${L.value.color}`),
|
|
1064
|
-
tabindex: "0",
|
|
1065
|
-
onFocus: ur,
|
|
1066
|
-
onBlur: dr,
|
|
1067
|
-
onKeydown: pr
|
|
1068
|
-
}, [
|
|
1069
|
-
Ie(E(At)),
|
|
1070
|
-
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1071
|
-
key: 0,
|
|
1072
|
-
x: 0,
|
|
1073
|
-
y: 0,
|
|
1074
|
-
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1075
|
-
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1076
|
-
style: { pointerEvents: "none" }
|
|
1077
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : m("", !0),
|
|
1078
|
-
g("defs", null, [(x(!0), h(d, null, C(J.value, (e, t) => (x(), p(Te, {
|
|
1079
|
-
t: "radial",
|
|
1080
|
-
cx: "50%",
|
|
1081
|
-
cy: "50%",
|
|
1082
|
-
r: "50%",
|
|
1083
|
-
fx: "50%",
|
|
1084
|
-
fy: "50%",
|
|
1085
|
-
id: `radar_gradient_${k.value}_${t}`,
|
|
1086
|
-
key: `radar_gradient_${k.value}_${t}`,
|
|
1087
|
-
stops: [[
|
|
1088
|
-
"0%",
|
|
1089
|
-
E(se)(E(o)(e.color, .05), F.value.dataPolygon.opacity),
|
|
1090
|
-
1
|
|
1091
|
-
], [
|
|
1092
|
-
"100%",
|
|
1093
|
-
E(se)(e.color, F.value.dataPolygon.opacity),
|
|
1094
|
-
1
|
|
1095
|
-
]]
|
|
1096
|
-
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1097
|
-
F.value.grid.show ? (x(), h("g", $e, [(x(!0), h(d, null, C(X.value, (e) => (x(), h("line", {
|
|
1098
|
-
x1: G.value.width / 2,
|
|
1099
|
-
y1: G.value.height / 2,
|
|
1100
|
-
x2: e.x,
|
|
1101
|
-
y2: e.y,
|
|
1102
|
-
stroke: F.value.grid.stroke,
|
|
1103
|
-
"stroke-width": F.value.grid.strokeWidth,
|
|
1104
|
-
style: { "pointer-events": "none" }
|
|
1105
|
-
}, null, 8, et))), 256)), F.value.grid.graduations > 0 ? (x(), h("g", tt, [(x(!0), h(d, null, C(Pn.value, (e) => (x(), h("path", {
|
|
1106
|
-
d: E(s)({
|
|
1107
|
-
plot: {
|
|
1108
|
-
x: G.value.width / 2,
|
|
1109
|
-
y: G.value.height / 2
|
|
1110
|
-
},
|
|
1111
|
-
radius: e,
|
|
1112
|
-
sides: kn.value,
|
|
1113
|
-
rotation: Mn.value
|
|
1114
|
-
}).path,
|
|
1115
|
-
fill: "none",
|
|
1116
|
-
stroke: F.value.grid.stroke,
|
|
1117
|
-
"stroke-width": F.value.grid.strokeWidth
|
|
1118
|
-
}, null, 8, nt))), 256))])) : m("", !0)])) : m("", !0),
|
|
1119
|
-
g("path", {
|
|
1120
|
-
d: Nn.value.path,
|
|
1121
|
-
fill: "none",
|
|
1122
|
-
stroke: F.value.outerPolygon.stroke,
|
|
1123
|
-
"stroke-width": F.value.outerPolygon.strokeWidth,
|
|
1124
|
-
"stroke-linejoin": "round",
|
|
1125
|
-
"stroke-linecap": "round",
|
|
1126
|
-
style: { "pointer-events": "none" }
|
|
1127
|
-
}, null, 8, rt),
|
|
1128
|
-
P.value.dataLabels.show ? (x(), h("g", it, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("text", {
|
|
1129
|
-
class: "vue-ui-radar-apex-label",
|
|
1130
|
-
x: e.labelX,
|
|
1131
|
-
y: e.labelY,
|
|
1132
|
-
"text-anchor": e.labelAnchor,
|
|
1133
|
-
"dominant-baseline": "middle",
|
|
1134
|
-
"font-size": P.value.dataLabels.fontSize,
|
|
1135
|
-
fill: P.value.dataLabels.color,
|
|
1136
|
-
onMouseenter: (n) => Gn(e, t, "pointer"),
|
|
1137
|
-
onMouseleave: (n) => Un(e, t),
|
|
1138
|
-
onClick: (n) => Wn(e, t)
|
|
1139
|
-
}, T(e.name), 41, at))), 256))])) : m("", !0),
|
|
1140
|
-
(x(!0), h(d, null, C(J.value, (e, t) => (x(), h("g", null, [g("g", null, [M.value.useCssAnimation || !M.value.useCssAnimation && !K.value.includes(t) ? (x(), h("polygon", {
|
|
1141
|
-
key: 0,
|
|
1142
|
-
points: E(a)(X.value.map((e) => e.plots[t]), !1, !0),
|
|
1143
|
-
stroke: L.value.backgroundColor,
|
|
1144
|
-
"stroke-width": F.value.dataPolygon.strokeWidth + 1,
|
|
1145
|
-
fill: "none",
|
|
1146
|
-
class: ze({
|
|
1147
|
-
"animated-out": K.value.includes(t) && M.value.useCssAnimation,
|
|
1148
|
-
"animated-in": q.value && _n.value === t && M.value.useCssAnimation
|
|
1149
|
-
}),
|
|
1150
|
-
style: { "pointer-events": "none" }
|
|
1151
|
-
}, null, 10, ot)) : m("", !0), M.value.useCssAnimation || !M.value.useCssAnimation && !K.value.includes(t) ? (x(), h("polygon", {
|
|
1152
|
-
key: 1,
|
|
1153
|
-
points: E(a)(X.value.map((e) => e.plots[t]), !1, !0),
|
|
1154
|
-
stroke: e.color,
|
|
1155
|
-
"stroke-width": F.value.dataPolygon.strokeWidth,
|
|
1156
|
-
fill: F.value.dataPolygon.transparent ? "transparent" : F.value.dataPolygon.useGradient ? `url(#radar_gradient_${k.value}_${t})` : E(se)(e.color, F.value.dataPolygon.opacity),
|
|
1157
|
-
class: ze({
|
|
1158
|
-
"animated-out": K.value.includes(t) && M.value.useCssAnimation,
|
|
1159
|
-
"animated-in": q.value && _n.value === t && M.value.useCssAnimation
|
|
1160
|
-
}),
|
|
1161
|
-
style: { "pointer-events": "none" }
|
|
1162
|
-
}, null, 10, st)) : m("", !0)])]))), 256)),
|
|
1163
|
-
F.value.targetReference.show ? (x(), h("path", {
|
|
1164
|
-
key: 3,
|
|
1165
|
-
class: "vue-ui-radar-target-polygon",
|
|
1166
|
-
d: `M${E(a)(On.value, !1, !0)}Z`,
|
|
1167
|
-
fill: "none",
|
|
1168
|
-
stroke: F.value.targetReference.stroke,
|
|
1169
|
-
"stroke-width": F.value.targetReference.strokeWidth,
|
|
1170
|
-
"stroke-linejoin": "round",
|
|
1171
|
-
"stroke-linecap": "round",
|
|
1172
|
-
"stroke-dasharray": F.value.targetReference.strokeDasharray,
|
|
1173
|
-
style: { "pointer-events": "none" }
|
|
1174
|
-
}, null, 8, ct)) : m("", !0),
|
|
1175
|
-
F.value.plots.show ? (x(), h("g", lt, [(x(!0), h(d, null, C(X.value, (e, t) => (x(), h("g", { key: `radar-category-${t}` }, [(x(!0), h(d, null, C(e.plots, (n, r) => (x(), h("g", {
|
|
1176
|
-
key: `radar-plot-${t}-${r}`,
|
|
1177
|
-
onMouseenter: (n) => !K.value.includes(r) && Gn(e, t, "pointer"),
|
|
1178
|
-
onMouseleave: (n) => !K.value.includes(r) && Un(e, t),
|
|
1179
|
-
onClick: (n) => !K.value.includes(r) && Wn(e, t)
|
|
1180
|
-
}, [g("circle", {
|
|
1181
|
-
cx: n.x,
|
|
1182
|
-
cy: n.y,
|
|
1183
|
-
r: jn.value,
|
|
1184
|
-
fill: "transparent",
|
|
1185
|
-
stroke: "transparent",
|
|
1186
|
-
style: b({ pointerEvents: K.value.includes(r) ? "none" : "all" })
|
|
1187
|
-
}, null, 12, dt), g("circle", {
|
|
1188
|
-
cx: n.x,
|
|
1189
|
-
cy: n.y,
|
|
1190
|
-
fill: K.value.includes(r) ? "transparent" : J.value[r] ? J.value[r].color : "transparent",
|
|
1191
|
-
r: Bn.value !== null && Bn.value === t ? F.value.plots.radius * 1.6 : F.value.plots.radius,
|
|
1192
|
-
stroke: K.value.includes(r) ? "transparent" : L.value.backgroundColor,
|
|
1193
|
-
"stroke-width": .5,
|
|
1194
|
-
class: ze({
|
|
1195
|
-
"animated-out": K.value.includes(r) && M.value.useCssAnimation,
|
|
1196
|
-
"animated-in": q.value && _n.value === r && M.value.useCssAnimation
|
|
1197
|
-
}),
|
|
1198
|
-
style: { "pointer-events": "none" }
|
|
1199
|
-
}, null, 10, ft)], 40, ut))), 128))]))), 128))])) : m("", !0),
|
|
1200
|
-
w(e.$slots, "svg", { svg: {
|
|
1201
|
-
...G.value,
|
|
1202
|
-
outerPolygon: Nn.value,
|
|
1203
|
-
isPrintingImg: E(ln) || E(un) || E(ar),
|
|
1204
|
-
isPrintingSvg: E(or)
|
|
1205
|
-
} }, void 0, !0)
|
|
1206
|
-
], 46, Ze)), e.$slots.hint ? (x(), h("div", pt, [w(e.$slots, "hint", y(v({
|
|
1207
|
-
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1208
|
-
isVisible: Zt.value
|
|
1209
|
-
})), void 0, !0)])) : m("", !0)]),
|
|
1210
|
-
e.$slots.watermark ? (x(), h("div", mt, [w(e.$slots, "watermark", y(v({ isPrinting: E(ln) || E(un) || E(ar) || E(or) })), void 0, !0)])) : m("", !0),
|
|
1211
|
-
g("div", { id: `legend-bottom-${k.value}` }, null, 8, ht),
|
|
1212
|
-
Kt.value && (L.value.legend.show || e.$slots.legend) ? (x(), p(Ne, {
|
|
1213
|
-
key: 6,
|
|
1214
|
-
to: L.value.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1215
|
-
}, [g("div", {
|
|
1216
|
-
ref_key: "chartLegend",
|
|
1217
|
-
ref: Bt
|
|
1218
|
-
}, [w(e.$slots, "legend", { legend: Z.value }, () => [L.value.legend.show ? (x(), p(Ae, {
|
|
1219
|
-
key: `legend_${Gt.value}`,
|
|
1220
|
-
legendSet: Z.value,
|
|
1221
|
-
config: zn.value,
|
|
1222
|
-
isCursorPointer: R.value,
|
|
1223
|
-
onClickMarker: t[0] ||= ({ i: e }) => bn(e)
|
|
1224
|
-
}, Pe({
|
|
1225
|
-
item: D(({ legend: e, index: t }) => [E($t) ? m("", !0) : (x(), h("div", {
|
|
1226
|
-
key: 0,
|
|
1227
|
-
onClick: (t) => e.segregate(),
|
|
1228
|
-
style: b(`opacity:${K.value.includes(t) ? .5 : 1}`)
|
|
1229
|
-
}, T(e.display), 13, gt))]),
|
|
1230
|
-
legendToggle: D(() => [Z.value.length > 2 && L.value.legend.selectAllToggle.show && !E($t) ? (x(), p(Ee, {
|
|
1231
|
-
key: 0,
|
|
1232
|
-
backgroundColor: L.value.legend.selectAllToggle.backgroundColor,
|
|
1233
|
-
color: L.value.legend.selectAllToggle.color,
|
|
1234
|
-
fontSize: L.value.legend.fontSize,
|
|
1235
|
-
checked: K.value.length > 0,
|
|
1236
|
-
isCursorPointer: R.value,
|
|
1237
|
-
onToggle: vn
|
|
1238
|
-
}, null, 8, [
|
|
1239
|
-
"backgroundColor",
|
|
1240
|
-
"color",
|
|
1241
|
-
"fontSize",
|
|
1242
|
-
"checked",
|
|
1243
|
-
"isCursorPointer"
|
|
1244
|
-
])) : m("", !0)]),
|
|
1245
|
-
_: 2
|
|
1246
|
-
}, [F.value.targetReference.show && F.value.targetReference.showInLegend ? {
|
|
1247
|
-
name: "after",
|
|
1248
|
-
fn: D(() => [g("div", _t, [g("div", { style: b({
|
|
1249
|
-
display: "flex",
|
|
1250
|
-
height: L.value.legend.fontSize
|
|
1251
|
-
}) }, [(x(), h("svg", {
|
|
1252
|
-
style: b({ width: L.value.legend.fontSize * 2 }),
|
|
1253
|
-
viewBox: "0 0 16 8"
|
|
1254
|
-
}, [g("line", {
|
|
1255
|
-
x1: "0",
|
|
1256
|
-
x2: "16",
|
|
1257
|
-
y1: "4",
|
|
1258
|
-
y2: "4",
|
|
1259
|
-
stroke: F.value.targetReference.stroke,
|
|
1260
|
-
"stroke-width": F.value.targetReference.strokeWidth * .7,
|
|
1261
|
-
"stroke-dasharray": F.value.targetReference.strokeDasharray * .7,
|
|
1262
|
-
"stroke-linecap": "round"
|
|
1263
|
-
}, null, 8, vt)], 4))], 4), g("span", null, T(F.value.targetReference.legendLabel), 1)])]),
|
|
1264
|
-
key: "0"
|
|
1265
|
-
} : void 0]), 1032, [
|
|
1266
|
-
"legendSet",
|
|
1267
|
-
"config",
|
|
1268
|
-
"isCursorPointer"
|
|
1269
|
-
])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1270
|
-
e.$slots.source ? (x(), h("div", {
|
|
1271
|
-
key: 7,
|
|
1272
|
-
ref_key: "source",
|
|
1273
|
-
ref: Vt,
|
|
1274
|
-
dir: "auto"
|
|
1275
|
-
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1276
|
-
Ie(E(Ct), {
|
|
1277
|
-
teleportTo: I.value.teleportTo,
|
|
1278
|
-
show: W.value.showTooltip && It.value,
|
|
1279
|
-
backgroundColor: I.value.backgroundColor,
|
|
1280
|
-
color: I.value.color,
|
|
1281
|
-
borderRadius: I.value.borderRadius,
|
|
1282
|
-
borderColor: I.value.borderColor,
|
|
1283
|
-
borderWidth: I.value.borderWidth,
|
|
1284
|
-
backgroundOpacity: I.value.backgroundOpacity,
|
|
1285
|
-
fontSize: I.value.fontSize,
|
|
1286
|
-
position: I.value.position,
|
|
1287
|
-
offsetX: I.value.offsetX,
|
|
1288
|
-
offsetY: I.value.offsetY,
|
|
1289
|
-
parent: A.value,
|
|
1290
|
-
content: Lt.value,
|
|
1291
|
-
isFullscreen: $.value,
|
|
1292
|
-
isCustom: I.value.customFormat && typeof I.value.customFormat == "function",
|
|
1293
|
-
smooth: I.value.smooth,
|
|
1294
|
-
backdropFilter: I.value.backdropFilter,
|
|
1295
|
-
smoothForce: I.value.smoothForce,
|
|
1296
|
-
smoothSnapThreshold: I.value.smoothSnapThreshold,
|
|
1297
|
-
isA11yMode: Xt.value === "keyboard",
|
|
1298
|
-
a11yPosition: Yt.value
|
|
1299
|
-
}, {
|
|
1300
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(v({ ...Hn.value })), void 0, !0)]),
|
|
1301
|
-
tooltip: D(() => [w(e.$slots, "tooltip", y(v({ ...Hn.value })), void 0, !0)]),
|
|
1302
|
-
"tooltip-after": D(() => [!["function"].includes(typeof I.value.customFormat) && !e.$slots.tooltip ? (x(), h("div", yt, [Ie(E(Tt), {
|
|
1303
|
-
dataset: Vn.value,
|
|
1304
|
-
config: hn.value,
|
|
1305
|
-
backgroundOpacity: 0
|
|
1306
|
-
}, {
|
|
1307
|
-
"data-label": D(({ bar: e }) => [g("div", bt, [g("span", xt, T(e.name + (I.value.showValue || I.value.showPercentage ? ":" : "")), 1), I.value.showValue || I.value.showPercentage ? (x(), h("span", St, T(e.suffix), 1)) : m("", !0)])]),
|
|
1308
|
-
_: 1
|
|
1309
|
-
}, 8, ["dataset", "config"])])) : m("", !0), w(e.$slots, "tooltip-after", y(v({ ...Hn.value })), void 0, !0)]),
|
|
1310
|
-
_: 3
|
|
1311
|
-
}, 8, [
|
|
1312
|
-
"teleportTo",
|
|
1313
|
-
"show",
|
|
1314
|
-
"backgroundColor",
|
|
1315
|
-
"color",
|
|
1316
|
-
"borderRadius",
|
|
1317
|
-
"borderColor",
|
|
1318
|
-
"borderWidth",
|
|
1319
|
-
"backgroundOpacity",
|
|
1320
|
-
"fontSize",
|
|
1321
|
-
"position",
|
|
1322
|
-
"offsetX",
|
|
1323
|
-
"offsetY",
|
|
1324
|
-
"parent",
|
|
1325
|
-
"content",
|
|
1326
|
-
"isFullscreen",
|
|
1327
|
-
"isCustom",
|
|
1328
|
-
"smooth",
|
|
1329
|
-
"backdropFilter",
|
|
1330
|
-
"smoothForce",
|
|
1331
|
-
"smoothSnapThreshold",
|
|
1332
|
-
"isA11yMode",
|
|
1333
|
-
"a11yPosition"
|
|
1334
|
-
]),
|
|
1335
|
-
Ft.value && N.value.buttons.table ? (x(), p(He($n.value.component), Le({ key: 8 }, $n.value.props, {
|
|
1336
|
-
ref_key: "tableUnit",
|
|
1337
|
-
ref: qt,
|
|
1338
|
-
onClose: er
|
|
1339
|
-
}), Pe({
|
|
1340
|
-
content: D(() => [(x(), p(E(Dt), {
|
|
1341
|
-
key: `table_${Wt.value}`,
|
|
1342
|
-
colNames: Q.value.colNames,
|
|
1343
|
-
head: Q.value.head,
|
|
1344
|
-
body: Q.value.body,
|
|
1345
|
-
config: Q.value.config,
|
|
1346
|
-
title: M.value.table.useDialog ? "" : $n.value.title,
|
|
1347
|
-
withCloseButton: !M.value.table.useDialog,
|
|
1348
|
-
isCursorPointer: R.value,
|
|
1349
|
-
onClose: er
|
|
1350
|
-
}, {
|
|
1351
|
-
th: D(({ th: e }) => [Fe(T(e.name), 1)]),
|
|
1352
|
-
td: D(({ td: e }) => [Fe(T(e), 1)]),
|
|
1353
|
-
_: 1
|
|
1354
|
-
}, 8, [
|
|
1355
|
-
"colNames",
|
|
1356
|
-
"head",
|
|
1357
|
-
"body",
|
|
1358
|
-
"config",
|
|
1359
|
-
"title",
|
|
1360
|
-
"withCloseButton",
|
|
1361
|
-
"isCursorPointer"
|
|
1362
|
-
]))]),
|
|
1363
|
-
_: 2
|
|
1364
|
-
}, [M.value.table.useDialog ? {
|
|
1365
|
-
name: "title",
|
|
1366
|
-
fn: D(() => [Fe(T($n.value.title), 1)]),
|
|
1367
|
-
key: "0"
|
|
1368
|
-
} : void 0, M.value.table.useDialog ? {
|
|
1369
|
-
name: "actions",
|
|
1370
|
-
fn: D(() => [g("button", {
|
|
1371
|
-
tabindex: "0",
|
|
1372
|
-
class: "vue-ui-user-options-button",
|
|
1373
|
-
onClick: t[1] ||= (e) => Kn(N.value.callbacks.csv),
|
|
1374
|
-
style: b({ cursor: R.value ? "pointer" : "default" })
|
|
1375
|
-
}, [Ie(E(wt), {
|
|
1376
|
-
name: "fileCsv",
|
|
1377
|
-
stroke: $n.value.props.color
|
|
1378
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1379
|
-
key: "1"
|
|
1380
|
-
} : void 0]), 1040)) : m("", !0),
|
|
1381
|
-
w(e.$slots, "skeleton", {}, () => [E($t) ? (x(), p(ge, { key: 0 })) : m("", !0)], !0)
|
|
1382
|
-
], 46, qe));
|
|
1383
|
-
}
|
|
1384
|
-
}, [["__scopeId", "data-v-27993883"]]);
|
|
1385
|
-
//#endregion
|
|
1386
|
-
export { Ke as n, Ct as t };
|