vue-data-ui 3.28.10 → 3.28.11
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/BaseDraggableDialog-DVstuNhT.js +1 -0
- package/dist/{BaseLegendToggle-BIzyyI1h.js → BaseLegendToggle-VzX69MCo.js} +1 -1
- package/dist/BaseZoomControls-D4i_j6vc.js +1 -0
- package/dist/ColorPicker-DmVnJGVv.js +1 -0
- package/dist/{DataTable-Dof6yhO7.js → DataTable-KeuZB1JM.js} +1 -1
- package/dist/{HillActions-BMH9pSmQ.js → HillActions-D--h5brJ.js} +1 -1
- package/dist/{Legend-DM0ClX3D.js → Legend-W9YVYVX-.js} +1 -1
- package/dist/{NonSvgPenAndPaper-DXdAh1Sz.js → NonSvgPenAndPaper-B2kuh5Yb.js} +1 -1
- package/dist/{PackageVersion-DKSNC-YP.js → PackageVersion-ksOit8fp.js} +1 -1
- package/dist/PenAndPaper-BV5ODysA.js +1 -0
- package/dist/SlicerPreview-0m9E7Zh_.js +1 -0
- package/dist/{StackChartTable-CZteRybF.js → StackChartTable-D-31a1zL.js} +1 -1
- package/dist/{UserOptions-B9EyfU9n.js → UserOptions-K1N7zQRx.js} +1 -1
- package/dist/XyAnalysisOptions-CUtj1x2f.js +1 -0
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-graph.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/package-vXTjpYqq.js +1 -0
- package/dist/{render-common-Cy1X2PzP.js → render-common-CPA2hfDW.js} +1 -1
- package/dist/resolveChartConfig-0IvbmIE_.js +1 -0
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/useConfig-_JwRfIqE.js +1 -0
- package/dist/{useObjectBindings-C_70Czuj.js → useObjectBindings-D789Dz63.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/vue-data-ui-0NKIVNqt.js +1 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-Cs-_W1Av.js +19 -0
- package/dist/{vue-ui-accordion-E8TJfFeK.js → vue-ui-accordion-DxGxf-Rm.js} +1 -1
- package/dist/vue-ui-age-pyramid-cWWVFoCj.js +1 -0
- package/dist/vue-ui-annotator-D31LD4-s.js +331 -0
- package/dist/vue-ui-bullet-CMQzoLKs.js +34 -0
- package/dist/vue-ui-bump-SSu5eVbF.js +8 -0
- package/dist/vue-ui-candlestick-Cm9jS3n7.js +22 -0
- package/dist/vue-ui-carousel-table-D-F54W90.js +1 -0
- package/dist/vue-ui-chestnut-DNe1s8TT.js +1 -0
- package/dist/vue-ui-chord-DGzpBpuI.js +21 -0
- package/dist/vue-ui-circle-pack--iJQtXys.js +13 -0
- package/dist/vue-ui-cursor-B7DJRSGD.js +1 -0
- package/dist/vue-ui-dag-tsM65e_V.js +9 -0
- package/dist/vue-ui-dashboard-CC7IhQZu.js +1 -0
- package/dist/{vue-ui-digits-DbxT72mM.js → vue-ui-digits-hv2QeC-H.js} +2 -2
- package/dist/vue-ui-donut-B9WXaiPn.js +47 -0
- package/dist/vue-ui-donut-evolution-Wz_-FYab.js +2 -0
- package/dist/vue-ui-donut-iyVVIGoJ.js +22 -0
- package/dist/vue-ui-dumbbell-p3Q2LkBV.js +9 -0
- package/dist/vue-ui-flow-BCH8YU8H.js +3 -0
- package/dist/vue-ui-funnel-DdrBD9oX.js +1 -0
- package/dist/vue-ui-galaxy-DYKEOEL-.js +1 -0
- package/dist/vue-ui-gauge-CPgvR_YB.js +1 -0
- package/dist/vue-ui-geo-DhJ3Wr_5.js +1 -0
- package/dist/vue-ui-gizmo-BTy4Vr1e.js +1 -0
- package/dist/{vue-ui-graph-9YSKwYhC.js → vue-ui-graph-C4kfE4G8.js} +3 -3
- package/dist/vue-ui-heatmap-lti43RhW.js +1 -0
- package/dist/vue-ui-hill-3GVfKQmi.js +1 -0
- package/dist/vue-ui-history-plot-DMTPygZA.js +2 -0
- package/dist/vue-ui-horizontal-bar-DwWo0CvX.js +4 -0
- package/dist/{vue-ui-kpi-BxW6DctE.js → vue-ui-kpi-BTMK37Ix.js} +1 -1
- package/dist/{vue-ui-label-rxuzmeyD.js → vue-ui-label-CBrMoFDG.js} +2 -2
- package/dist/{vue-ui-mini-loader-DpAYrTYb.js → vue-ui-mini-loader-PsWZLMLF.js} +1 -1
- package/dist/vue-ui-molecule-rbDnRA7c.js +1 -0
- package/dist/vue-ui-mood-radar-8s1jnO3P.js +1 -0
- package/dist/vue-ui-nested-donuts-8bY4HvC-.js +19 -0
- package/dist/vue-ui-onion-CgLNDFrZ.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-ms14eLus.js +9 -0
- package/dist/vue-ui-quadrant-6GgQZ8fW.js +2 -0
- package/dist/vue-ui-quick-chart-CzRbFXIS.js +16 -0
- package/dist/vue-ui-radar-BxsD2JBj.js +1 -0
- package/dist/vue-ui-rating-D0QvpD3V.js +1 -0
- package/dist/vue-ui-relation-circle-BFPAlaWQ.js +1 -0
- package/dist/vue-ui-ridgeline-G2m7eFWe.js +2 -0
- package/dist/vue-ui-rings-l_BLWL48.js +1 -0
- package/dist/vue-ui-scatter-C4hXe3DM.js +9 -0
- package/dist/{vue-ui-skeleton-SlYTmirP.js → vue-ui-skeleton-BLyh-ESb.js} +3 -3
- package/dist/{vue-ui-smiley-DZVFOGfv.js → vue-ui-smiley-C00q-teB.js} +1 -1
- package/dist/{vue-ui-spark-trend-D155vscB.js → vue-ui-spark-trend-D0hz9kNt.js} +1 -1
- package/dist/vue-ui-sparkbar-Dweyr8h-.js +1 -0
- package/dist/{vue-ui-sparkgauge-CFj0wLj5.js → vue-ui-sparkgauge-DQfCXKFj.js} +1 -1
- package/dist/vue-ui-sparkhistogram-DOfAu86W.js +1 -0
- package/dist/vue-ui-sparkline-DuX09S8A.js +1 -0
- package/dist/vue-ui-sparkstackbar-vXOpiyrI.js +1 -0
- package/dist/vue-ui-stackbar-DsrwNY0p.js +29 -0
- package/dist/vue-ui-stackline-e7EYZet7.js +39 -0
- package/dist/vue-ui-strip-plot-2DxzeUXU.js +2 -0
- package/dist/vue-ui-table-B344jLaG.js +14 -0
- package/dist/vue-ui-table-heatmap-BwoRcqFD.js +1 -0
- package/dist/vue-ui-table-sparkline-itq8yRCe.js +1 -0
- package/dist/vue-ui-thermometer-BSRjS7l3.js +1 -0
- package/dist/vue-ui-timer-DM-urc2D.js +64 -0
- package/dist/vue-ui-tiremarks-CbIOAO3F.js +1 -0
- package/dist/vue-ui-treemap-Cgal4H5O.js +1 -0
- package/dist/vue-ui-waffle-BZFI7JLd.js +1 -0
- package/dist/vue-ui-wheel-DdKm_Vd8.js +1 -0
- package/dist/vue-ui-word-cloud-D40vUb5e.js +4 -0
- package/dist/vue-ui-world-BseI3A0C.js +19 -0
- package/dist/vue-ui-xy-Bl-DUFcf.js +27 -0
- package/dist/vue-ui-xy-DNVd3FPA.js +31 -0
- package/dist/vue-ui-xy-canvas-CRSisgSA.js +9 -0
- package/dist/vue_ui_3d_bar-Dm8zmL8w.js +1 -0
- package/dist/vue_ui_age_pyramid-DXJeenVU.js +1 -0
- package/dist/vue_ui_bullet-Biewiy1l.js +1 -0
- package/dist/vue_ui_bump-DZoGcET0.js +1 -0
- package/dist/vue_ui_candlestick-DpPpEElM.js +1 -0
- package/dist/vue_ui_chestnut-BKcntsvv.js +1 -0
- package/dist/vue_ui_chord-Crjq1pgV.js +1 -0
- package/dist/vue_ui_circle_pack-DarCZyF2.js +1 -0
- package/dist/vue_ui_dag-B-4OxeQQ.js +1 -0
- package/dist/vue_ui_donut-B2W2nyAS.js +1 -0
- package/dist/vue_ui_donut_evolution-BvIyBtun.js +1 -0
- package/dist/vue_ui_dumbbell-DyyFLbhQ.js +1 -0
- package/dist/vue_ui_flow-aeVlnSsc.js +1 -0
- package/dist/vue_ui_funnel-CWrEr790.js +1 -0
- package/dist/vue_ui_galaxy-DvaSrGxT.js +1 -0
- package/dist/vue_ui_gauge-Brc1-auP.js +1 -0
- package/dist/vue_ui_geo-COGanKF8.js +1 -0
- package/dist/vue_ui_graph-31AYnh4c.js +1 -0
- package/dist/vue_ui_heatmap-Q8YMKNq2.js +1 -0
- package/dist/vue_ui_hill-Dbv_VVlr.js +1 -0
- package/dist/vue_ui_history_plot-C0kFJh-f.js +1 -0
- package/dist/vue_ui_horizontal_bar-uuJ0_9O6.js +1 -0
- package/dist/vue_ui_label-D3BzxTFQ.js +1 -0
- package/dist/vue_ui_molecule-VokyVu8q.js +1 -0
- package/dist/vue_ui_mood_radar-i6r1Gp6v.js +1 -0
- package/dist/vue_ui_nested_donuts-BAb9o0Ro.js +1 -0
- package/dist/vue_ui_onion-BMjwCChN.js +1 -0
- package/dist/vue_ui_parallel_coordinate_plot-Wb2Xmpjs.js +1 -0
- package/dist/vue_ui_quadrant-DbLNBD92.js +1 -0
- package/dist/vue_ui_quick_chart-KljadV9E.js +1 -0
- package/dist/vue_ui_radar-Pd3xOzjc.js +1 -0
- package/dist/vue_ui_relation_circle-BLo4XQFQ.js +1 -0
- package/dist/vue_ui_ridgeline-BIaWjw_v.js +1 -0
- package/dist/vue_ui_rings-C0puwNW1.js +1 -0
- package/dist/vue_ui_scatter-4as114Wa.js +1 -0
- package/dist/vue_ui_spark_trend-BgPQfeCz.js +1 -0
- package/dist/vue_ui_sparkbar-CvcZ5nwT.js +1 -0
- package/dist/vue_ui_sparkgauge-D3xirz2w.js +1 -0
- package/dist/vue_ui_sparkhistogram-E6G1761_.js +1 -0
- package/dist/vue_ui_sparkline-DKZdnbap.js +1 -0
- package/dist/vue_ui_sparkstackbar-DZX34uPS.js +1 -0
- package/dist/vue_ui_stackbar-BrAzeA3Y.js +1 -0
- package/dist/vue_ui_stackline-B6ylXHBJ.js +1 -0
- package/dist/vue_ui_strip_plot-uxKGttVC.js +1 -0
- package/dist/vue_ui_table_heatmap-DVMDsaVJ.js +1 -0
- package/dist/vue_ui_table_sparkline-BQO5A9u8.js +1 -0
- package/dist/vue_ui_thermometer-BAFdvXZW.js +1 -0
- package/dist/vue_ui_tiremarks-LwElhY5p.js +1 -0
- package/dist/vue_ui_treemap-JB0DfAmd.js +1 -0
- package/dist/vue_ui_waffle-BVf3Wcda.js +1 -0
- package/dist/vue_ui_wheel-bdYAONK7.js +1 -0
- package/dist/vue_ui_word_cloud-Dn2Ffjxb.js +1 -0
- package/dist/vue_ui_xy-BfaXjpvS.js +1 -0
- package/dist/vue_ui_xy_canvas-cQVme5sy.js +1 -0
- package/package.json +9 -9
- package/dist/BaseDraggableDialog-BK7dj9O6.js +0 -1
- package/dist/BaseZoomControls-JSk9zW3D.js +0 -1
- package/dist/ColorPicker-CwYfNvwH.js +0 -1
- package/dist/PenAndPaper-DoNTA-SV.js +0 -1
- package/dist/SlicerPreview-ChKbdZSU.js +0 -1
- package/dist/XyAnalysisOptions-CV22ga_a.js +0 -1
- package/dist/package-CXaebsLV.js +0 -1
- package/dist/resolveChartConfig-CIhClE5R.js +0 -1
- package/dist/useConfig-C3FbHv4N.js +0 -1
- package/dist/vue-data-ui-O-w339Ac.js +0 -1
- package/dist/vue-ui-3d-bar-CcFFARyq.js +0 -19
- package/dist/vue-ui-age-pyramid-Di6fKV6f.js +0 -1
- package/dist/vue-ui-annotator-sBGtsgcb.js +0 -331
- package/dist/vue-ui-bullet-BZLa1xj7.js +0 -34
- package/dist/vue-ui-bump-BSdpAH0l.js +0 -8
- package/dist/vue-ui-candlestick-BKZASgq9.js +0 -22
- package/dist/vue-ui-carousel-table-B20E2K8A.js +0 -1
- package/dist/vue-ui-chestnut-DavvzmiQ.js +0 -1
- package/dist/vue-ui-chord-D2Hn54i7.js +0 -21
- package/dist/vue-ui-circle-pack-BKaS-zWo.js +0 -13
- package/dist/vue-ui-cursor-BUOHKNmb.js +0 -1
- package/dist/vue-ui-dag-SLYPxbGo.js +0 -9
- package/dist/vue-ui-dashboard-Bgt7VLv0.js +0 -1
- package/dist/vue-ui-donut-8ZWyXEVs.js +0 -22
- package/dist/vue-ui-donut-DBcB8Ym1.js +0 -47
- package/dist/vue-ui-donut-evolution-D3lo74Ce.js +0 -2
- package/dist/vue-ui-dumbbell-CdarkL8Z.js +0 -9
- package/dist/vue-ui-flow-B0dYxGWT.js +0 -3
- package/dist/vue-ui-funnel-C0Cl9jMd.js +0 -1
- package/dist/vue-ui-galaxy-C_UWOQn4.js +0 -1
- package/dist/vue-ui-gauge-B94ToHlW.js +0 -1
- package/dist/vue-ui-geo-V-JmJgKS.js +0 -1
- package/dist/vue-ui-gizmo-BvVDEnNu.js +0 -1
- package/dist/vue-ui-heatmap-DWtbocz5.js +0 -1
- package/dist/vue-ui-hill-BH_lYm5G.js +0 -1
- package/dist/vue-ui-history-plot-DkWvta0h.js +0 -2
- package/dist/vue-ui-horizontal-bar-DbJ1DFjG.js +0 -4
- package/dist/vue-ui-molecule-BrG8K2Tm.js +0 -1
- package/dist/vue-ui-mood-radar-DEpFpfiW.js +0 -1
- package/dist/vue-ui-nested-donuts-CZetOzaq.js +0 -19
- package/dist/vue-ui-onion-DvyAxUSj.js +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-Bdakcv3w.js +0 -9
- package/dist/vue-ui-quadrant-CWZeQjHE.js +0 -2
- package/dist/vue-ui-quick-chart-BULxPrPs.js +0 -16
- package/dist/vue-ui-radar-CJ_5G0QP.js +0 -1
- package/dist/vue-ui-rating-QcJoab0i.js +0 -1
- package/dist/vue-ui-relation-circle-Vetly6f0.js +0 -1
- package/dist/vue-ui-ridgeline-5a87TiQf.js +0 -2
- package/dist/vue-ui-rings-CKuFf5vA.js +0 -1
- package/dist/vue-ui-scatter-C2hNg3ED.js +0 -9
- package/dist/vue-ui-sparkbar-DFShNanl.js +0 -1
- package/dist/vue-ui-sparkhistogram-DwDcqqEj.js +0 -1
- package/dist/vue-ui-sparkline-kxl5wQGY.js +0 -1
- package/dist/vue-ui-sparkstackbar-CHjaAWVJ.js +0 -1
- package/dist/vue-ui-stackbar-BrtUg-Mb.js +0 -29
- package/dist/vue-ui-stackline-CU2UkEJU.js +0 -39
- package/dist/vue-ui-strip-plot-BmEpoIoU.js +0 -2
- package/dist/vue-ui-table-Ddg209i0.js +0 -14
- package/dist/vue-ui-table-heatmap-B8AdX6Nq.js +0 -1
- package/dist/vue-ui-table-sparkline-B62l_ODH.js +0 -1
- package/dist/vue-ui-thermometer-CvxyfTWE.js +0 -1
- package/dist/vue-ui-timer-BkNtid9A.js +0 -64
- package/dist/vue-ui-tiremarks-BE0nbuHp.js +0 -1
- package/dist/vue-ui-treemap-B9wAoh5g.js +0 -1
- package/dist/vue-ui-waffle-DqeBiuY3.js +0 -1
- package/dist/vue-ui-wheel---NZaS40.js +0 -1
- package/dist/vue-ui-word-cloud-DRFGFVmf.js +0 -4
- package/dist/vue-ui-world-D5gKzypf.js +0 -19
- package/dist/vue-ui-xy-Caj8jz6D.js +0 -31
- package/dist/vue-ui-xy-CcVIXfL_.js +0 -27
- package/dist/vue-ui-xy-canvas-BceSG3AO.js +0 -9
- package/dist/vue_ui_3d_bar-DmAve5Ri.js +0 -1
- package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +0 -1
- package/dist/vue_ui_bullet-CwVYkpjd.js +0 -1
- package/dist/vue_ui_bump-KJL9GYr4.js +0 -1
- package/dist/vue_ui_candlestick-DKvha_Ab.js +0 -1
- package/dist/vue_ui_chestnut-BxxivKN7.js +0 -1
- package/dist/vue_ui_chord-Fq6VBRT1.js +0 -1
- package/dist/vue_ui_circle_pack-CfXkXi7v.js +0 -1
- package/dist/vue_ui_dag-1b_dLSym.js +0 -1
- package/dist/vue_ui_donut-T5PeOqvf.js +0 -1
- package/dist/vue_ui_donut_evolution-CVoh3twl.js +0 -1
- package/dist/vue_ui_dumbbell-BMcxK0N3.js +0 -1
- package/dist/vue_ui_flow-kvV56Es9.js +0 -1
- package/dist/vue_ui_funnel-CaEV5hG7.js +0 -1
- package/dist/vue_ui_galaxy-B94QInxc.js +0 -1
- package/dist/vue_ui_gauge-BJhb6yqE.js +0 -1
- package/dist/vue_ui_geo-DL1SMQHp.js +0 -1
- package/dist/vue_ui_graph-B1ACwQj7.js +0 -1
- package/dist/vue_ui_heatmap-kh5NMmwf.js +0 -1
- package/dist/vue_ui_hill-DQi4pQCG.js +0 -1
- package/dist/vue_ui_history_plot-soyqUW4Y.js +0 -1
- package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +0 -1
- package/dist/vue_ui_label-dtPqyFsj.js +0 -1
- package/dist/vue_ui_molecule-Bw1UW1Na.js +0 -1
- package/dist/vue_ui_mood_radar-CXaBdJnv.js +0 -1
- package/dist/vue_ui_nested_donuts-CRtGsJcz.js +0 -1
- package/dist/vue_ui_onion-C9BedU_-.js +0 -1
- package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +0 -1
- package/dist/vue_ui_quadrant-BUv-SqzP.js +0 -1
- package/dist/vue_ui_quick_chart-BRfcRW6Z.js +0 -1
- package/dist/vue_ui_radar-68iK9Fam.js +0 -1
- package/dist/vue_ui_relation_circle-Dkv-cSB6.js +0 -1
- package/dist/vue_ui_ridgeline-Di26JtQu.js +0 -1
- package/dist/vue_ui_rings-BcDDXHpQ.js +0 -1
- package/dist/vue_ui_scatter-C50uFYQL.js +0 -1
- package/dist/vue_ui_spark_trend-BOM3zo64.js +0 -1
- package/dist/vue_ui_sparkbar-Bpx7QrFq.js +0 -1
- package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +0 -1
- package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +0 -1
- package/dist/vue_ui_sparkline-CvL_e9L8.js +0 -1
- package/dist/vue_ui_sparkstackbar-Chtog7hC.js +0 -1
- package/dist/vue_ui_stackbar-BkBIi_bL.js +0 -1
- package/dist/vue_ui_stackline-D7b63K84.js +0 -1
- package/dist/vue_ui_strip_plot-CwMowrhT.js +0 -1
- package/dist/vue_ui_table_heatmap-vfeY6r97.js +0 -1
- package/dist/vue_ui_table_sparkline-Dlfbza49.js +0 -1
- package/dist/vue_ui_thermometer-CRijq6H6.js +0 -1
- package/dist/vue_ui_tiremarks-8HFfABNF.js +0 -1
- package/dist/vue_ui_treemap-Bv4Rdl5_.js +0 -1
- package/dist/vue_ui_waffle-BbBLSluB.js +0 -1
- package/dist/vue_ui_wheel-C-479bvJ.js +0 -1
- package/dist/vue_ui_word_cloud-DBiJtSyL.js +0 -1
- package/dist/vue_ui_xy-CJBM9F6W.js +0 -1
- package/dist/vue_ui_xy_canvas-CT-FN9rU.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{B as n,Jt as r,M as i,X as ee,t as a}from"./lib-rPeBMZrn.js";import{n as te,t as ne}from"./useHints-C-TwxM0Y.js";import{t as o}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as re}from"./useNestedProp-DnGoh-XS.js";import{t as ie}from"./DefGrad-DKMq1REY.js";import{n as s}from"./PackageVersion-DKSNC-YP.js";import{Fragment as c,computed as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createStaticVNode as p,createVNode as m,normalizeClass as ae,normalizeStyle as h,openBlock as g,ref as _,renderList as v,unref as y}from"vue";var b=/* @__PURE__ */ e({default:()=>G}),oe=[`id`],se=[`xmlns`],ce={transform:`translate(300, 300)`},le=[`d`,`fill`,`stroke`],ue=[`xmlns`],x=[`fill`,`stroke`],S=[`fill`,`stroke`],C=[`fill`,`stroke`],w=[`fill`,`stroke`],T=[`fill`,`stroke`],E=[`xmlns`],D=[`stroke`],O=[`stroke`],k=[`stroke`],A=[`fill`,`stroke`],j=[`fill`],M=[`fill`,`stroke`],N=[`fill`],P=[`fill`,`stroke`],F=[`fill`],I=[`fill`,`stroke`],L=[`fill`],R=[`fill`,`stroke`],z=[`fill`],B=[`fill`,`stroke`],V=[`fill`],H=[`xmlns`],U=[`stroke`],de=[`stroke`],fe=[`stroke`],pe=[`stroke`],me=[`stroke`],he=[`stroke`],ge=[`stroke`],_e=[`stroke`],ve=[`stroke`],ye=[`xmlns`],be=[`stroke`,`fill`],xe=[`xmlns`],Se=[`stroke`,`fill`],Ce=[`xmlns`],we=[`fill`],Te=[`fill`],Ee=[`fill`],De=[`fill`],Oe=[`xmlns`],ke=[`stroke`],Ae=[`fill`],je=[`stroke`,`fill`],Me=[`stroke`,`fill`],Ne=[`fill`],Pe=[`stroke`,`fill`],Fe=[`stroke`,`fill`],Ie=[`fill`],Le=[`stroke`,`fill`],Re=[`stroke`,`fill`],ze=[`fill`],Be=[`stroke`,`fill`],Ve=[`stroke`,`fill`],He=[`fill`],Ue=[`stroke`,`fill`],We=[`stroke`,`fill`],Ge=[`xmlns`],Ke=[`stroke`],qe=[`stroke`],Je=[`stroke`,`fill`],Ye=[`stroke`,`fill`],Xe=[`stroke`,`fill`],Ze=[`stroke`,`fill`],Qe=[`stroke`,`fill`],$e=[`stroke`,`fill`],et=[`stroke`,`fill`],tt=[`stroke`,`fill`],nt=[`stroke`,`fill`],rt=[`stroke`,`fill`],it=[`stroke`,`fill`],at=[`stroke`,`fill`],ot=[`stroke`,`fill`],st=[`stroke`,`fill`],ct=[`stroke`,`fill`],lt=[`stroke`,`fill`],ut=[`stroke`,`fill`],dt=[`stroke`,`fill`],ft=[`stroke`,`fill`],pt=[`stroke`,`fill`],mt=[`stroke`,`fill`],ht=[`stroke`,`fill`],gt=[`stroke`,`fill`],_t=[`xmlns`],vt=[`stroke`],yt=[`xmlns`],bt=[`stroke`],xt=[`xmlns`],St=[`stroke`],Ct=[`xmlns`],wt=[`fill`],Tt=[`fill`],Et=[`fill`],Dt=[`fill`],Ot=[`fill`],kt=[`fill`],At=[`fill`],jt=[`fill`],Mt=[`fill`],Nt=[`fill`],Pt=[`fill`],Ft=[`fill`],It=[`xmlns`],Lt=[`stroke`],Rt=[`stroke`],zt=[`stroke`],Bt=[`stroke`],Vt=[`stroke`],Ht=[`stroke`],Ut=[`xmlns`],Wt=[`stroke`],Gt=[`stroke`],Kt=[`stroke`],qt=[`stroke`],Jt=[`stroke`],Yt=[`stroke`],Xt=[`stroke`],Zt=[`stroke`],Qt=[`stroke`],$t=[`xmlns`],en=[`stroke`],tn=[`xmlns`],nn=[`stroke`],rn=[`stroke`],an=[`stroke`],on=[`stroke`],sn=[`stroke`],cn=[`stroke`],ln=[`stroke`],un=[`stroke`],dn=[`stroke`],fn=[`xmlns`],pn=[`x1`,`x2`,`stroke`],mn=[`xmlns`],hn=[`x`,`y`,`width`,`height`,`fill`],gn=[`y`,`width`,`height`,`fill`],_n=[`xmlns`],vn=[`fill`],yn=[`fill`],bn=[`fill`],xn=[`xmlns`],Sn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Cn=[`stroke`],wn=[`fill`],Tn=[`xmlns`],En=[`fill`],Dn=[`fill`],On=[`x1`,`y1`,`x2`,`y2`,`stroke-width`,`stroke`],kn=[`xmlns`],An={key:0},jn=[`stroke`,`stroke-width`],Mn=[`stroke`,`stroke-width`],Nn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Pn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Fn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],In=[`x`,`y`,`height`,`width`,`fill`],Ln=[`xmlns`,`viewBox`],Rn=[`x`,`y`,`stroke`,`fill`],zn=[`xmlns`],Bn=[`d`,`stroke`],Vn=[`cx`,`cy`,`r`,`fill`,`stroke`],Hn=[`cx`,`cy`,`r`,`fill`,`stroke`],Un=[`x`,`y`,`width`,`fill`],Wn=[`cx`,`cy`,`fill`],Gn=[`cx`,`cy`,`fill`],Kn=[`stroke`],qn=[`xmlns`],Jn=[`stroke`,`stroke-width`],Yn=[`stroke`,`stroke-width`],Xn=[`stroke`,`stroke-width`],Zn=[`fill`],Qn=[`fill`],$n=[`fill`],er=[`fill`],tr=[`fill`],nr=[`fill`],rr=[`xmlns`],ir={key:0},ar=[`stroke`,`stroke-width`],or=[`stroke`,`stroke-width`],sr=[`stroke`,`stroke-width`],cr={key:1},lr=[`r`,`fill`],ur=[`r`,`fill`],dr=[`xmlns`],fr={key:0},pr=[`stroke`,`stroke-width`],mr=[`stroke`,`stroke-width`],hr=[`fill`,`rx`,`x`,`y`,`width`,`height`],gr=[`xmlns`],_r=[`stroke-width`,`stroke`],vr=[`stroke-width`,`stroke`],yr=[`stroke-width`,`stroke`],br=[`xmlns`],xr=[`stroke`],Sr=[`stroke`],Cr=[`stroke`],wr=[`stroke`],Tr=[`fill`],Er=[`stroke`],Dr=[`xmlns`],Or=[`stroke`,`stroke-width`],kr=[`stroke`,`stroke-width`],Ar=[`fill`,`r`],jr=[`fill`,`r`],Mr=[`fill`,`r`],Nr=[`fill`,`r`],Pr=[`fill`,`r`],Fr=[`fill`,`r`],Ir=[`fill`,`r`],Lr=[`fill`,`r`],Rr=[`fill`,`r`],zr=[`xmlns`],Br=[`d`,`stroke`,`stroke-width`],Vr=[`d`,`stroke`,`stroke-width`],Hr=[`d`,`stroke`,`stroke-width`],Ur=[`d`,`stroke`,`stroke-width`],Wr=[`stroke`,`stroke-width`],Gr=[`stroke`,`stroke-width`],Kr=[`stroke`,`stroke-width`],qr=[`fill`],Jr=[`fill`],Yr=[`xmlns`],Xr=[`x`,`y`,`fill`],Zr=[`x`,`y`,`fill`],Qr=[`x`,`y`,`fill`],$r=[`xmlns`],ei=[`fill`],ti=[`fill`],ni=[`y1`,`y2`,`stroke`,`stroke-width`],ri=[`x1`,`x2`,`stroke`,`stroke-width`],ii=[`xmlns`,`stroke`],ai=[`fill`],oi=[`xmlns`,`stroke`],si=[`xmlns`,`stroke`],ci=[`fill`],li=[`xmlns`,`stroke`],ui=[`xmlns`,`stroke`],di=[`fill`],fi=[`xmlns`,`stroke`],pi=[`xmlns`,`stroke`],mi=[`fill`],hi=[`xmlns`,`stroke`],W=[`xmlns`,`stroke`],gi=[`fill`],_i=[`xmlns`,`stroke`],vi=[`xmlns`],yi=[`points`,`fill`,`stroke`,`stroke-width`],bi=[`xmlns`],xi={key:0},Si=[`stroke`,`stroke-width`],Ci=[`y`,`width`,`fill`,`rx`],G=/*#__PURE__*/ o({__name:`vue-ui-skeleton`,props:{config:{type:Object,default(){return{}}}},setup(e){let{vue_ui_skeleton:o}=t(),b=e,G=_(`vue-ui-skeleton-${ee()}`),K=l(()=>re({userConfig:b.config,defaultConfig:o})),q=l(()=>K.value.style);te({config:()=>K.value,dataset:()=>[],component:`VueUiSkeleton`,rules:[ne.noHint]});let wi=l(()=>K.value.style.animated),J=l(()=>K.value.type),Ti=_([60,50,55,36,40,25,26,12]),Ei=l(()=>i({plot:{x:50,y:50},radius:40,sides:6}).path),Di=l(()=>i({plot:{x:50,y:50},radius:30,sides:6}).path),Oi=l(()=>i({plot:{x:50,y:50},radius:20,sides:6}).path),ki=l(()=>i({plot:{x:50,y:50},radius:10,sides:6}).path),Y=_([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),X=_([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),Z=_([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),Q=_([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function $(e,t=1){let n=29.85;return{x:200+160*Math.cos(n+e*Math.PI/180)*t,y:200+160*Math.sin(n+e*Math.PI/180)*t}}let Ai=l(()=>{let e=[];for(let t=0;t<100;t+=1)e.push({x1:$(360/100*t).x,y1:$(360/100*t).y,x2:$(360/100*t,.9).x,y2:$(360/100*t,.9).y,color:K.value.style.wheel.color});return e}),ji=_([`M1.74 203.99A204 204 0 01-131.29-156.13l15.44 18.36A180 180 0 001.53 179.99Z`,`M-123.33-162.5A204 204 0 01-10.2-203.75L-9-179.78a180 180 0 00-99.82 36.4Z`,`M0-180A180 180 0 01175.19 41.33l23.36 5.51A204 204 0 000-204Z`,`M172.91 50.03A180 180 0 0110.53 179.69l1.4 23.96A204 204 0 00195.96 56.7Z`,`M-166.87-67.49a180 180 0 0151.02-70.28Q0 0 119.83-134.32a180 180 0 0152.13 81.13Q0 0-166.87-67.49Z`,`M-29.99-177.48a180 180 0 0110.73-1.49Q0 0 112.89 140.2A180 180 0 0153.63 171.83Q0 0-29.99-177.48Z`,`M179.71 10.29a180 180 0 01-4.52 31.04Q0 0-40.87-175.3a180 180 0 0110.88-2.18Q0 0 179.71 10.29Z`,`M-19.26-178.97Q0 0-166.87-67.49a180 180 0 00-12.14 86.36Q0 0-9-179.78a180 180 0 00-10.26.81Z`,`M-108.82-143.38Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Z`,`M0-180a180 180 0 01119.83 45.68Q0 0 0-180a180 180 0 01119.83 45.68Q0 0 0-180Z`,`M-148.85 101.22Q0 0-179.01 18.87a180 180 0 0030.16 82.35Q0 0-179.01 18.87a180 180 0 0030.16 82.35Z`,`M1.53 179.99Q0 0 31.73 177.18a180 180 0 0021.9-5.35Q0 0-148.85 101.22A180 180 0 001.53 179.99Z`,`M31.73 177.18a180 180 0 01-21.2 2.51Q0 0 171.96-53.19a180 180 0 017.75 63.48Q0 0 31.73 177.18Z`,`M172.91 50.03Q0 0 112.89 140.2a180 180 0 0060.02-90.17Q0 0 112.89 140.2a180 180 0 0060.02-90.17Z`]);return(e,t)=>(g(),d(`div`,{id:G.value,class:ae({"vue-data-ui-component":!0,"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":wi.value}),style:h(`background:${q.value.backgroundColor};color:${q.value.color};display:flex;align-items:center;justify-content:center;`)},[J.value===`chord`?(g(),d(`svg`,{key:0,xmlns:y(a),width:`100%`,viewBox:`0 0 600 600`,style:h({background:q.value.backgroundColor})},[m(s),f(`g`,ce,[(g(!0),d(c,null,v(ji.value,(e,t)=>(g(),d(`path`,{key:e,d:e,fill:q.value.chord.color,stroke:q.value.backgroundColor,"stroke-width":`2`,style:h({opacity:t>3?.6:1})},null,12,le))),128))])],12,se)):u(``,!0),J.value===`ridgeline`?(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`20 0 512 200`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`defs`,null,[m(ie,{t:`linear`,id:`ridgeline-gradient-${G.value}`,x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,stops:[[`0%`,q.value.ridgeline.color,1],[`30%`,q.value.ridgeline.color,.7],[`70%`,q.value.ridgeline.color,.3],[`100%`,q.value.ridgeline.color,.1]]},null,8,[`id`,`stops`])]),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 60c6.18-.6 12.36-1.11 18.55-1.79 6.18-.68 12.37-2.38 18.55-2.4 6.19-.01 12.37 0 18.56-.01 6.18-.02 12.37-5.3 18.55-5.3 6.19 0 12.37 4.95 18.56 4.95 6.18 0 12.37-2.78 18.55-2.78 6.19 0 12.37 1.02 18.56 1.92 6.18.9 12.37 4.58 18.55 4.58s12.37-6.71 18.55-6.71c6.19 0 12.37.89 18.56.89 6.18 0 12.37-4.48 18.55-4.48 6.19 0 12.37 4.79 18.56 4.79 6.18 0 12.37-26.07 18.55-26.07 6.19 0 12.37 9.31 18.56 13.85 6.18 4.54 12.37 13.39 18.55 13.39 6.19 0 12.37-36.14 18.56-36.14 6.18 0 12.36 38.45 18.55 38.45 6.18 0 12.37-11.46 18.55-16.94 6.19-5.48 12.37-15.97 18.56-15.97 6.18 0 12.37 16.4 18.55 16.4 6.19 0 12.37-.12 18.56-.35 6.18-.22 12.37-38.08 18.55-38.08 6.19 0 12.37 24.07 18.56 36.1V60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,x),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 90c6.18-.22 12.36-.35 18.55-.67 6.18-.32 12.37-1.65 18.55-1.65 6.19 0 12.37 1.66 18.56 1.66 6.18 0 12.37-8.76 18.55-8.76 6.19 0 12.37 4.15 18.56 4.15 6.18 0 12.37-8.44 18.55-8.44 6.19 0 12.37 10.87 18.56 10.87 6.18 0 12.37-9.21 18.55-12.16 6.18-2.96 12.37-6.97 18.55-6.97 6.19 0 12.37 9.59 18.56 12.77 6.18 3.18 12.37 7.6 18.55 7.6 6.19 0 12.37-24.44 18.56-24.44 6.18 0 12.37 16.97 18.55 16.97 6.19 0 12.37-20.62 18.56-20.62 6.18 0 12.37 20.37 18.55 20.37 6.19 0 12.37-13.13 18.56-13.13 6.18 0 12.36 13.51 18.55 13.51 6.18 0 12.37-26.41 18.55-26.41 6.19 0 12.37.49 18.56 1.26 6.18.78 12.37 13.82 18.55 13.82 6.19 0 12.37-5.3 18.56-8.3 6.18-3 12.37-9.81 18.55-9.81 6.19 0 12.37 19.82 18.56 29.72V90`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,S),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 120c6.18-.34 12.36-.55 18.55-1.01 6.18-.46 12.37-1.17 18.55-2.15 6.19-.99 12.37-3.7 18.56-4.69 6.18-.98 12.37-2.15 18.55-2.15 6.19 0 12.37.52 18.56 1.2 6.18.68 12.37 6.67 18.55 6.67 6.19 0 12.37-12.15 18.56-12.15 6.18 0 12.37 4.6 18.55 4.6S227.5 99.7 233.68 98.99c6.19-.71 12.37-1.18 18.56-1.18 6.18 0 12.37 17.75 18.55 18.22 6.19.48 12.37.74 18.56.74 6.18 0 12.37-17.09 18.55-17.09 6.19 0 12.37 12.68 18.56 12.68 6.18 0 12.37-.33 18.55-.67 6.19-.34 12.37-.79 18.56-2.06 6.18-1.26 12.36-25.45 18.55-25.45 6.18 0 12.37 10.35 18.55 10.35 6.19 0 12.37-21.07 18.56-21.07 6.18 0 12.37 33.27 18.55 33.27 6.19 0 12.37-26.97 18.56-26.97 6.18 0 12.37 26.97 18.55 27.36 6.19.4 12.37.41 18.56.61V120`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,C),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 150c6.18-.52 12.36-1.57 18.55-1.57 6.18 0 12.37 1.36 18.55 1.36 6.19 0 12.37-1.75 18.56-3.18 6.18-1.43 12.37-6.62 18.55-6.62 6.19 0 12.37 9.98 18.56 9.98 6.18 0 12.37-4.94 18.55-5.64 6.19-.71 12.37-.52 18.56-1.31 6.18-.78 12.37-12.43 18.55-12.43s12.37 18.52 18.55 18.52c6.19 0 12.37-2.49 18.56-2.49 6.18 0 12.37 3.02 18.55 3.02 6.19 0 12.37-29.39 18.56-29.39 6.18 0 12.37 5.56 18.55 8.36 6.19 2.81 12.37 5.14 18.56 8.47 6.18 3.34 12.37 12.25 18.55 12.25 6.19 0 12.37-4.3 18.56-8.78 6.18-4.48 12.36-28.77 18.55-28.77 6.18 0 12.37 1.29 18.55 3.02 6.19 1.72 12.37 18.36 18.56 18.36 6.18 0 12.37-7.68 18.55-12.92 6.19-5.24 12.37-18.51 18.56-20.1 6.18-1.58 12.37-2.7 18.55-2.7 6.19 0 12.37 34.69 18.56 52.04V150`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,w),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 180c6.18-.6 12.36-1.07 18.55-1.81 6.18-.74 12.37-2.86 18.55-2.86 6.19 0 12.37 2.14 18.56 2.14 6.18 0 12.37-7.08 18.55-7.08 6.19 0 12.37 1.08 18.56 2.03 6.18.95 12.37 4.75 18.55 4.75 6.19 0 12.37-2.45 18.56-4.62 6.18-2.17 12.37-10.99 18.55-10.99s12.37 9.58 18.55 9.58c6.19 0 12.37-.25 18.56-.69 6.18-.43 12.37-13.6 18.55-13.6 6.19 0 12.37 17.23 18.56 17.23 6.18 0 12.37-2.5 18.55-5.19 6.19-2.68 12.37-15.45 18.56-18 6.18-2.55 12.37-4.86 18.55-4.86 6.19 0 12.37 18.61 18.56 18.61 6.18 0 12.36-24.22 18.55-26.66 6.18-2.45 12.37-4.25 18.55-4.25 6.19 0 12.37 7.92 18.56 7.92 6.18 0 12.37-1.95 18.55-1.95 6.19 0 12.37 29.69 18.56 29.69 6.18 0 12.37-2.55 18.55-6.14 6.19-3.58 12.37-28.83 18.56-43.25v60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,T)],12,ue)):u(``,!0),J.value===`historyPlot`?(g(),d(`svg`,{key:2,xmlns:y(a),width:`100%`,viewBox:`0 0 612 512`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`line`,{x1:`12`,x2:`12`,y1:`12`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,D),f(`line`,{x1:`12`,x2:`600`,y1:`500`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,O),f(`path`,{d:`M 80,100 300,200 400,150 560,230 360,420 230,320`,fill:`none`,stroke:q.value.historyPlot.color,"stroke-width":`3`},null,8,k),f(`circle`,{cx:`80`,cy:`100`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,A),f(`text`,{x:`80`,y:`108`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 1 `,8,j),f(`circle`,{cx:`300`,cy:`200`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,M),f(`text`,{x:`300`,y:`208`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 2 `,8,N),f(`circle`,{cx:`400`,cy:`150`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,P),f(`text`,{x:`400`,y:`158`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 3 `,8,F),f(`circle`,{cx:`560`,cy:`230`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,I),f(`text`,{x:`560`,y:`238`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 4 `,8,L),f(`circle`,{cx:`360`,cy:`420`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,R),f(`text`,{x:`360`,y:`428`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 5 `,8,z),f(`circle`,{cx:`230`,cy:`320`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,B),f(`text`,{x:`230`,y:`328`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 6 `,8,V)],12,E)):u(``,!0),J.value===`circlePack`?(g(),d(`svg`,{key:3,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[f(`circle`,{cx:50,cy:50,r:20,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,U),f(`circle`,{cx:80,cy:50,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,de),f(`circle`,{cx:28,cy:30,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,fe),f(`circle`,{cx:25,cy:76,r:16,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,pe),f(`circle`,{cx:60,cy:78.5,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,me),f(`circle`,{cx:64,cy:20,r:13,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,he),f(`circle`,{cx:72,cy:37,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ge),f(`circle`,{cx:25,cy:45,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,_e),f(`circle`,{cx:70,cy:66,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ve)],12,H)):u(``,!0),J.value===`flow`?(g(),d(`svg`,{key:4,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 8l23 4L52 9 75 8v4H52L28 21 5 29ZM5 34l23 1L52 24l23-3v6L52 30 28 44l24-5 23 2v6L52 45 28 52H5Z`,stroke:q.value.flow.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.flow.color},null,8,be)],12,ye)):u(``,!0),J.value===`parallelCoordinatePlot`?(g(),d(`svg`,{key:5,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 10a1 1 0 000 2 1 1 0 000-2m23 5a1 1 0 000 2 1 1 0 000-2M52 8a1 1 0 000 2 1 1 0 000-2m23 3a1 1 0 000 2 1 1 0 000-2M6 11l21 5m2 0L51 9m2 0 21 3M5 50a1 1 0 000-2 1 1 0 000 2M28 39a1 1 0 000 2 1 1 0 000-2m24 6a1 1 0 000 2 1 1 0 000-2m23 0a1 1 0 000 2 1 1 0 000-2M6 49l21-9m2 0 22 6m2 0H74M5 25a1 1 0 000 2 1 1 0 000-2m23 6a1 1 0 000 2 1 1 0 000-2m24-8a1 1 0 000 2 1 1 0 000-2m23-2a1 1 0 000 2 1 1 0 000-2M6 26l21 6m2 0 22-8m2 0 21-2`,stroke:q.value.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.parallelCoordinatePlot.color},null,8,Se)],12,xe)):u(``,!0),J.value===`bullet`?(g(),d(`svg`,{key:6,xmlns:y(a),width:`100%`,viewBox:`0 0 600 96`,style:h(`background:${q.value.backgroundColor}`)},[f(`rect`,{fill:q.value.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:`0.8`}},null,8,we),f(`rect`,{fill:q.value.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:`0.6`}},null,8,Te),f(`rect`,{fill:q.value.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:`0.3`}},null,8,Ee),f(`rect`,{fill:q.value.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:`1`}},null,8,De)],12,Ce)):u(``,!0),J.value===`dumbbell`?(g(),d(`svg`,{key:7,xmlns:y(a),width:`100%`,viewBox:`0 0 100 55`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.dumbbell.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ke),f(`path`,{d:`
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{B as t,Jt as n,M as r,X as i,t as a}from"./lib-rPeBMZrn.js";import{t as ee}from"./useNestedProp-DnGoh-XS.js";import{n as te,t as ne}from"./useHints-C-TwxM0Y.js";import{t as re}from"./useConfig-_JwRfIqE.js";import{n as o}from"./PackageVersion-ksOit8fp.js";import{t as ie}from"./DefGrad-DKMq1REY.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as c,computed as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createStaticVNode as p,createVNode as m,normalizeClass as ae,normalizeStyle as h,openBlock as g,ref as _,renderList as v,unref as y}from"vue";var b=/* @__PURE__ */ e({default:()=>G}),oe=[`id`],se=[`xmlns`],ce={transform:`translate(300, 300)`},le=[`d`,`fill`,`stroke`],ue=[`xmlns`],x=[`fill`,`stroke`],S=[`fill`,`stroke`],C=[`fill`,`stroke`],w=[`fill`,`stroke`],T=[`fill`,`stroke`],E=[`xmlns`],D=[`stroke`],O=[`stroke`],k=[`stroke`],A=[`fill`,`stroke`],j=[`fill`],M=[`fill`,`stroke`],N=[`fill`],P=[`fill`,`stroke`],F=[`fill`],I=[`fill`,`stroke`],L=[`fill`],R=[`fill`,`stroke`],z=[`fill`],B=[`fill`,`stroke`],V=[`fill`],H=[`xmlns`],U=[`stroke`],de=[`stroke`],fe=[`stroke`],pe=[`stroke`],me=[`stroke`],he=[`stroke`],ge=[`stroke`],_e=[`stroke`],ve=[`stroke`],ye=[`xmlns`],be=[`stroke`,`fill`],xe=[`xmlns`],Se=[`stroke`,`fill`],Ce=[`xmlns`],we=[`fill`],Te=[`fill`],Ee=[`fill`],De=[`fill`],Oe=[`xmlns`],ke=[`stroke`],Ae=[`fill`],je=[`stroke`,`fill`],Me=[`stroke`,`fill`],Ne=[`fill`],Pe=[`stroke`,`fill`],Fe=[`stroke`,`fill`],Ie=[`fill`],Le=[`stroke`,`fill`],Re=[`stroke`,`fill`],ze=[`fill`],Be=[`stroke`,`fill`],Ve=[`stroke`,`fill`],He=[`fill`],Ue=[`stroke`,`fill`],We=[`stroke`,`fill`],Ge=[`xmlns`],Ke=[`stroke`],qe=[`stroke`],Je=[`stroke`,`fill`],Ye=[`stroke`,`fill`],Xe=[`stroke`,`fill`],Ze=[`stroke`,`fill`],Qe=[`stroke`,`fill`],$e=[`stroke`,`fill`],et=[`stroke`,`fill`],tt=[`stroke`,`fill`],nt=[`stroke`,`fill`],rt=[`stroke`,`fill`],it=[`stroke`,`fill`],at=[`stroke`,`fill`],ot=[`stroke`,`fill`],st=[`stroke`,`fill`],ct=[`stroke`,`fill`],lt=[`stroke`,`fill`],ut=[`stroke`,`fill`],dt=[`stroke`,`fill`],ft=[`stroke`,`fill`],pt=[`stroke`,`fill`],mt=[`stroke`,`fill`],ht=[`stroke`,`fill`],gt=[`stroke`,`fill`],_t=[`xmlns`],vt=[`stroke`],yt=[`xmlns`],bt=[`stroke`],xt=[`xmlns`],St=[`stroke`],Ct=[`xmlns`],wt=[`fill`],Tt=[`fill`],Et=[`fill`],Dt=[`fill`],Ot=[`fill`],kt=[`fill`],At=[`fill`],jt=[`fill`],Mt=[`fill`],Nt=[`fill`],Pt=[`fill`],Ft=[`fill`],It=[`xmlns`],Lt=[`stroke`],Rt=[`stroke`],zt=[`stroke`],Bt=[`stroke`],Vt=[`stroke`],Ht=[`stroke`],Ut=[`xmlns`],Wt=[`stroke`],Gt=[`stroke`],Kt=[`stroke`],qt=[`stroke`],Jt=[`stroke`],Yt=[`stroke`],Xt=[`stroke`],Zt=[`stroke`],Qt=[`stroke`],$t=[`xmlns`],en=[`stroke`],tn=[`xmlns`],nn=[`stroke`],rn=[`stroke`],an=[`stroke`],on=[`stroke`],sn=[`stroke`],cn=[`stroke`],ln=[`stroke`],un=[`stroke`],dn=[`stroke`],fn=[`xmlns`],pn=[`x1`,`x2`,`stroke`],mn=[`xmlns`],hn=[`x`,`y`,`width`,`height`,`fill`],gn=[`y`,`width`,`height`,`fill`],_n=[`xmlns`],vn=[`fill`],yn=[`fill`],bn=[`fill`],xn=[`xmlns`],Sn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Cn=[`stroke`],wn=[`fill`],Tn=[`xmlns`],En=[`fill`],Dn=[`fill`],On=[`x1`,`y1`,`x2`,`y2`,`stroke-width`,`stroke`],kn=[`xmlns`],An={key:0},jn=[`stroke`,`stroke-width`],Mn=[`stroke`,`stroke-width`],Nn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Pn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Fn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],In=[`x`,`y`,`height`,`width`,`fill`],Ln=[`xmlns`,`viewBox`],Rn=[`x`,`y`,`stroke`,`fill`],zn=[`xmlns`],Bn=[`d`,`stroke`],Vn=[`cx`,`cy`,`r`,`fill`,`stroke`],Hn=[`cx`,`cy`,`r`,`fill`,`stroke`],Un=[`x`,`y`,`width`,`fill`],Wn=[`cx`,`cy`,`fill`],Gn=[`cx`,`cy`,`fill`],Kn=[`stroke`],qn=[`xmlns`],Jn=[`stroke`,`stroke-width`],Yn=[`stroke`,`stroke-width`],Xn=[`stroke`,`stroke-width`],Zn=[`fill`],Qn=[`fill`],$n=[`fill`],er=[`fill`],tr=[`fill`],nr=[`fill`],rr=[`xmlns`],ir={key:0},ar=[`stroke`,`stroke-width`],or=[`stroke`,`stroke-width`],sr=[`stroke`,`stroke-width`],cr={key:1},lr=[`r`,`fill`],ur=[`r`,`fill`],dr=[`xmlns`],fr={key:0},pr=[`stroke`,`stroke-width`],mr=[`stroke`,`stroke-width`],hr=[`fill`,`rx`,`x`,`y`,`width`,`height`],gr=[`xmlns`],_r=[`stroke-width`,`stroke`],vr=[`stroke-width`,`stroke`],yr=[`stroke-width`,`stroke`],br=[`xmlns`],xr=[`stroke`],Sr=[`stroke`],Cr=[`stroke`],wr=[`stroke`],Tr=[`fill`],Er=[`stroke`],Dr=[`xmlns`],Or=[`stroke`,`stroke-width`],kr=[`stroke`,`stroke-width`],Ar=[`fill`,`r`],jr=[`fill`,`r`],Mr=[`fill`,`r`],Nr=[`fill`,`r`],Pr=[`fill`,`r`],Fr=[`fill`,`r`],Ir=[`fill`,`r`],Lr=[`fill`,`r`],Rr=[`fill`,`r`],zr=[`xmlns`],Br=[`d`,`stroke`,`stroke-width`],Vr=[`d`,`stroke`,`stroke-width`],Hr=[`d`,`stroke`,`stroke-width`],Ur=[`d`,`stroke`,`stroke-width`],Wr=[`stroke`,`stroke-width`],Gr=[`stroke`,`stroke-width`],Kr=[`stroke`,`stroke-width`],qr=[`fill`],Jr=[`fill`],Yr=[`xmlns`],Xr=[`x`,`y`,`fill`],Zr=[`x`,`y`,`fill`],Qr=[`x`,`y`,`fill`],$r=[`xmlns`],ei=[`fill`],ti=[`fill`],ni=[`y1`,`y2`,`stroke`,`stroke-width`],ri=[`x1`,`x2`,`stroke`,`stroke-width`],ii=[`xmlns`,`stroke`],ai=[`fill`],oi=[`xmlns`,`stroke`],si=[`xmlns`,`stroke`],ci=[`fill`],li=[`xmlns`,`stroke`],ui=[`xmlns`,`stroke`],di=[`fill`],fi=[`xmlns`,`stroke`],pi=[`xmlns`,`stroke`],mi=[`fill`],hi=[`xmlns`,`stroke`],W=[`xmlns`,`stroke`],gi=[`fill`],_i=[`xmlns`,`stroke`],vi=[`xmlns`],yi=[`points`,`fill`,`stroke`,`stroke-width`],bi=[`xmlns`],xi={key:0},Si=[`stroke`,`stroke-width`],Ci=[`y`,`width`,`fill`,`rx`],G=/*#__PURE__*/ s({__name:`vue-ui-skeleton`,props:{config:{type:Object,default(){return{}}}},setup(e){let{vue_ui_skeleton:s}=re(),b=e,G=_(`vue-ui-skeleton-${i()}`),K=l(()=>ee({userConfig:b.config,defaultConfig:s})),q=l(()=>K.value.style);te({config:()=>K.value,dataset:()=>[],component:`VueUiSkeleton`,rules:[ne.noHint]});let wi=l(()=>K.value.style.animated),J=l(()=>K.value.type),Ti=_([60,50,55,36,40,25,26,12]),Ei=l(()=>r({plot:{x:50,y:50},radius:40,sides:6}).path),Di=l(()=>r({plot:{x:50,y:50},radius:30,sides:6}).path),Oi=l(()=>r({plot:{x:50,y:50},radius:20,sides:6}).path),ki=l(()=>r({plot:{x:50,y:50},radius:10,sides:6}).path),Y=_([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),X=_([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),Z=_([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),Q=_([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function $(e,t=1){let n=29.85;return{x:200+160*Math.cos(n+e*Math.PI/180)*t,y:200+160*Math.sin(n+e*Math.PI/180)*t}}let Ai=l(()=>{let e=[];for(let t=0;t<100;t+=1)e.push({x1:$(360/100*t).x,y1:$(360/100*t).y,x2:$(360/100*t,.9).x,y2:$(360/100*t,.9).y,color:K.value.style.wheel.color});return e}),ji=_([`M1.74 203.99A204 204 0 01-131.29-156.13l15.44 18.36A180 180 0 001.53 179.99Z`,`M-123.33-162.5A204 204 0 01-10.2-203.75L-9-179.78a180 180 0 00-99.82 36.4Z`,`M0-180A180 180 0 01175.19 41.33l23.36 5.51A204 204 0 000-204Z`,`M172.91 50.03A180 180 0 0110.53 179.69l1.4 23.96A204 204 0 00195.96 56.7Z`,`M-166.87-67.49a180 180 0 0151.02-70.28Q0 0 119.83-134.32a180 180 0 0152.13 81.13Q0 0-166.87-67.49Z`,`M-29.99-177.48a180 180 0 0110.73-1.49Q0 0 112.89 140.2A180 180 0 0153.63 171.83Q0 0-29.99-177.48Z`,`M179.71 10.29a180 180 0 01-4.52 31.04Q0 0-40.87-175.3a180 180 0 0110.88-2.18Q0 0 179.71 10.29Z`,`M-19.26-178.97Q0 0-166.87-67.49a180 180 0 00-12.14 86.36Q0 0-9-179.78a180 180 0 00-10.26.81Z`,`M-108.82-143.38Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Q0 0-40.87-175.3a180 180 0 00-67.95 31.92Z`,`M0-180a180 180 0 01119.83 45.68Q0 0 0-180a180 180 0 01119.83 45.68Q0 0 0-180Z`,`M-148.85 101.22Q0 0-179.01 18.87a180 180 0 0030.16 82.35Q0 0-179.01 18.87a180 180 0 0030.16 82.35Z`,`M1.53 179.99Q0 0 31.73 177.18a180 180 0 0021.9-5.35Q0 0-148.85 101.22A180 180 0 001.53 179.99Z`,`M31.73 177.18a180 180 0 01-21.2 2.51Q0 0 171.96-53.19a180 180 0 017.75 63.48Q0 0 31.73 177.18Z`,`M172.91 50.03Q0 0 112.89 140.2a180 180 0 0060.02-90.17Q0 0 112.89 140.2a180 180 0 0060.02-90.17Z`]);return(e,r)=>(g(),d(`div`,{id:G.value,class:ae({"vue-data-ui-component":!0,"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":wi.value}),style:h(`background:${q.value.backgroundColor};color:${q.value.color};display:flex;align-items:center;justify-content:center;`)},[J.value===`chord`?(g(),d(`svg`,{key:0,xmlns:y(a),width:`100%`,viewBox:`0 0 600 600`,style:h({background:q.value.backgroundColor})},[m(o),f(`g`,ce,[(g(!0),d(c,null,v(ji.value,(e,t)=>(g(),d(`path`,{key:e,d:e,fill:q.value.chord.color,stroke:q.value.backgroundColor,"stroke-width":`2`,style:h({opacity:t>3?.6:1})},null,12,le))),128))])],12,se)):u(``,!0),J.value===`ridgeline`?(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`20 0 512 200`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`defs`,null,[m(ie,{t:`linear`,id:`ridgeline-gradient-${G.value}`,x1:`50%`,y1:`0%`,x2:`50%`,y2:`100%`,stops:[[`0%`,q.value.ridgeline.color,1],[`30%`,q.value.ridgeline.color,.7],[`70%`,q.value.ridgeline.color,.3],[`100%`,q.value.ridgeline.color,.1]]},null,8,[`id`,`stops`])]),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 60c6.18-.6 12.36-1.11 18.55-1.79 6.18-.68 12.37-2.38 18.55-2.4 6.19-.01 12.37 0 18.56-.01 6.18-.02 12.37-5.3 18.55-5.3 6.19 0 12.37 4.95 18.56 4.95 6.18 0 12.37-2.78 18.55-2.78 6.19 0 12.37 1.02 18.56 1.92 6.18.9 12.37 4.58 18.55 4.58s12.37-6.71 18.55-6.71c6.19 0 12.37.89 18.56.89 6.18 0 12.37-4.48 18.55-4.48 6.19 0 12.37 4.79 18.56 4.79 6.18 0 12.37-26.07 18.55-26.07 6.19 0 12.37 9.31 18.56 13.85 6.18 4.54 12.37 13.39 18.55 13.39 6.19 0 12.37-36.14 18.56-36.14 6.18 0 12.36 38.45 18.55 38.45 6.18 0 12.37-11.46 18.55-16.94 6.19-5.48 12.37-15.97 18.56-15.97 6.18 0 12.37 16.4 18.55 16.4 6.19 0 12.37-.12 18.56-.35 6.18-.22 12.37-38.08 18.55-38.08 6.19 0 12.37 24.07 18.56 36.1V60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,x),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 90c6.18-.22 12.36-.35 18.55-.67 6.18-.32 12.37-1.65 18.55-1.65 6.19 0 12.37 1.66 18.56 1.66 6.18 0 12.37-8.76 18.55-8.76 6.19 0 12.37 4.15 18.56 4.15 6.18 0 12.37-8.44 18.55-8.44 6.19 0 12.37 10.87 18.56 10.87 6.18 0 12.37-9.21 18.55-12.16 6.18-2.96 12.37-6.97 18.55-6.97 6.19 0 12.37 9.59 18.56 12.77 6.18 3.18 12.37 7.6 18.55 7.6 6.19 0 12.37-24.44 18.56-24.44 6.18 0 12.37 16.97 18.55 16.97 6.19 0 12.37-20.62 18.56-20.62 6.18 0 12.37 20.37 18.55 20.37 6.19 0 12.37-13.13 18.56-13.13 6.18 0 12.36 13.51 18.55 13.51 6.18 0 12.37-26.41 18.55-26.41 6.19 0 12.37.49 18.56 1.26 6.18.78 12.37 13.82 18.55 13.82 6.19 0 12.37-5.3 18.56-8.3 6.18-3 12.37-9.81 18.55-9.81 6.19 0 12.37 19.82 18.56 29.72V90`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,S),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 120c6.18-.34 12.36-.55 18.55-1.01 6.18-.46 12.37-1.17 18.55-2.15 6.19-.99 12.37-3.7 18.56-4.69 6.18-.98 12.37-2.15 18.55-2.15 6.19 0 12.37.52 18.56 1.2 6.18.68 12.37 6.67 18.55 6.67 6.19 0 12.37-12.15 18.56-12.15 6.18 0 12.37 4.6 18.55 4.6S227.5 99.7 233.68 98.99c6.19-.71 12.37-1.18 18.56-1.18 6.18 0 12.37 17.75 18.55 18.22 6.19.48 12.37.74 18.56.74 6.18 0 12.37-17.09 18.55-17.09 6.19 0 12.37 12.68 18.56 12.68 6.18 0 12.37-.33 18.55-.67 6.19-.34 12.37-.79 18.56-2.06 6.18-1.26 12.36-25.45 18.55-25.45 6.18 0 12.37 10.35 18.55 10.35 6.19 0 12.37-21.07 18.56-21.07 6.18 0 12.37 33.27 18.55 33.27 6.19 0 12.37-26.97 18.56-26.97 6.18 0 12.37 26.97 18.55 27.36 6.19.4 12.37.41 18.56.61V120`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,C),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 150c6.18-.52 12.36-1.57 18.55-1.57 6.18 0 12.37 1.36 18.55 1.36 6.19 0 12.37-1.75 18.56-3.18 6.18-1.43 12.37-6.62 18.55-6.62 6.19 0 12.37 9.98 18.56 9.98 6.18 0 12.37-4.94 18.55-5.64 6.19-.71 12.37-.52 18.56-1.31 6.18-.78 12.37-12.43 18.55-12.43s12.37 18.52 18.55 18.52c6.19 0 12.37-2.49 18.56-2.49 6.18 0 12.37 3.02 18.55 3.02 6.19 0 12.37-29.39 18.56-29.39 6.18 0 12.37 5.56 18.55 8.36 6.19 2.81 12.37 5.14 18.56 8.47 6.18 3.34 12.37 12.25 18.55 12.25 6.19 0 12.37-4.3 18.56-8.78 6.18-4.48 12.36-28.77 18.55-28.77 6.18 0 12.37 1.29 18.55 3.02 6.19 1.72 12.37 18.36 18.56 18.36 6.18 0 12.37-7.68 18.55-12.92 6.19-5.24 12.37-18.51 18.56-20.1 6.18-1.58 12.37-2.7 18.55-2.7 6.19 0 12.37 34.69 18.56 52.04V150`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,w),f(`path`,{fill:`url(#ridgeline-gradient-${G.value})`,stroke:q.value.ridgeline.color,"stroke-width":`1`,d:`M66.7 180c6.18-.6 12.36-1.07 18.55-1.81 6.18-.74 12.37-2.86 18.55-2.86 6.19 0 12.37 2.14 18.56 2.14 6.18 0 12.37-7.08 18.55-7.08 6.19 0 12.37 1.08 18.56 2.03 6.18.95 12.37 4.75 18.55 4.75 6.19 0 12.37-2.45 18.56-4.62 6.18-2.17 12.37-10.99 18.55-10.99s12.37 9.58 18.55 9.58c6.19 0 12.37-.25 18.56-.69 6.18-.43 12.37-13.6 18.55-13.6 6.19 0 12.37 17.23 18.56 17.23 6.18 0 12.37-2.5 18.55-5.19 6.19-2.68 12.37-15.45 18.56-18 6.18-2.55 12.37-4.86 18.55-4.86 6.19 0 12.37 18.61 18.56 18.61 6.18 0 12.36-24.22 18.55-26.66 6.18-2.45 12.37-4.25 18.55-4.25 6.19 0 12.37 7.92 18.56 7.92 6.18 0 12.37-1.95 18.55-1.95 6.19 0 12.37 29.69 18.56 29.69 6.18 0 12.37-2.55 18.55-6.14 6.19-3.58 12.37-28.83 18.56-43.25v60`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,T)],12,ue)):u(``,!0),J.value===`historyPlot`?(g(),d(`svg`,{key:2,xmlns:y(a),width:`100%`,viewBox:`0 0 612 512`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`12`,x2:`12`,y1:`12`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,D),f(`line`,{x1:`12`,x2:`600`,y1:`500`,y2:`500`,stroke:q.value.historyPlot.color,"stroke-width":`3`,"stroke-linecap":`round`},null,8,O),f(`path`,{d:`M 80,100 300,200 400,150 560,230 360,420 230,320`,fill:`none`,stroke:q.value.historyPlot.color,"stroke-width":`3`},null,8,k),f(`circle`,{cx:`80`,cy:`100`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,A),f(`text`,{x:`80`,y:`108`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 1 `,8,j),f(`circle`,{cx:`300`,cy:`200`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,M),f(`text`,{x:`300`,y:`208`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 2 `,8,N),f(`circle`,{cx:`400`,cy:`150`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,P),f(`text`,{x:`400`,y:`158`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 3 `,8,F),f(`circle`,{cx:`560`,cy:`230`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,I),f(`text`,{x:`560`,y:`238`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 4 `,8,L),f(`circle`,{cx:`360`,cy:`420`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,R),f(`text`,{x:`360`,y:`428`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 5 `,8,z),f(`circle`,{cx:`230`,cy:`320`,r:`24`,fill:q.value.historyPlot.color,stroke:q.value.backgroundColor,"stroke-width":`3`},null,8,B),f(`text`,{x:`230`,y:`328`,fill:q.value.backgroundColor,"font-size":`24`,"text-anchor":`middle`},` 6 `,8,V)],12,E)):u(``,!0),J.value===`circlePack`?(g(),d(`svg`,{key:3,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[f(`circle`,{cx:50,cy:50,r:20,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,U),f(`circle`,{cx:80,cy:50,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,de),f(`circle`,{cx:28,cy:30,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,fe),f(`circle`,{cx:25,cy:76,r:16,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,pe),f(`circle`,{cx:60,cy:78.5,r:10,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,me),f(`circle`,{cx:64,cy:20,r:13,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,he),f(`circle`,{cx:72,cy:37,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ge),f(`circle`,{cx:25,cy:45,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,_e),f(`circle`,{cx:70,cy:66,r:5,stroke:q.value.circlePack.color,"stroke-width":1,fill:`none`},null,8,ve)],12,H)):u(``,!0),J.value===`flow`?(g(),d(`svg`,{key:4,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 8l23 4L52 9 75 8v4H52L28 21 5 29ZM5 34l23 1L52 24l23-3v6L52 30 28 44l24-5 23 2v6L52 45 28 52H5Z`,stroke:q.value.flow.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.flow.color},null,8,be)],12,ye)):u(``,!0),J.value===`parallelCoordinatePlot`?(g(),d(`svg`,{key:5,xmlns:y(a),width:`100%`,viewBox:`0 0 80 60`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:`M5 5V55M75 5V55M28 5V55M52 5V55M5 10a1 1 0 000 2 1 1 0 000-2m23 5a1 1 0 000 2 1 1 0 000-2M52 8a1 1 0 000 2 1 1 0 000-2m23 3a1 1 0 000 2 1 1 0 000-2M6 11l21 5m2 0L51 9m2 0 21 3M5 50a1 1 0 000-2 1 1 0 000 2M28 39a1 1 0 000 2 1 1 0 000-2m24 6a1 1 0 000 2 1 1 0 000-2m23 0a1 1 0 000 2 1 1 0 000-2M6 49l21-9m2 0 22 6m2 0H74M5 25a1 1 0 000 2 1 1 0 000-2m23 6a1 1 0 000 2 1 1 0 000-2m24-8a1 1 0 000 2 1 1 0 000-2m23-2a1 1 0 000 2 1 1 0 000-2M6 26l21 6m2 0 22-8m2 0 21-2`,stroke:q.value.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:q.value.parallelCoordinatePlot.color},null,8,Se)],12,xe)):u(``,!0),J.value===`bullet`?(g(),d(`svg`,{key:6,xmlns:y(a),width:`100%`,viewBox:`0 0 600 96`,style:h(`background:${q.value.backgroundColor}`)},[f(`rect`,{fill:q.value.bullet.color,x:24,y:12,width:300,height:72,style:{opacity:`0.8`}},null,8,we),f(`rect`,{fill:q.value.bullet.color,x:324,y:12,width:150,height:72,style:{opacity:`0.6`}},null,8,Te),f(`rect`,{fill:q.value.bullet.color,x:474,y:12,width:102,height:72,style:{opacity:`0.3`}},null,8,Ee),f(`rect`,{fill:q.value.bullet.color,x:24,y:36,width:490,height:24,style:{opacity:`1`}},null,8,De)],12,Ce)):u(``,!0),J.value===`dumbbell`?(g(),d(`svg`,{key:7,xmlns:y(a),width:`100%`,viewBox:`0 0 100 55`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.dumbbell.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ke),f(`path`,{d:`
|
|
2
2
|
M 30,11
|
|
3
3
|
C 39,10 39,10
|
|
4
4
|
45,11
|
|
@@ -33,9 +33,9 @@ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3F
|
|
|
33
33
|
L 90,49
|
|
34
34
|
C 65,50 65,50
|
|
35
35
|
40,49 Z
|
|
36
|
-
`,fill:q.value.dumbbell.color},null,8,He),f(`circle`,{cx:`40`,cy:`50`,r:`2`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.dumbbell.color},null,8,Ue),f(`circle`,{cx:`90`,cy:`50`,r:`2`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.dumbbell.color},null,8,We)],12,Oe)):u(``,!0),J.value===`stripPlot`?(g(),d(`svg`,{key:8,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`97`,stroke:q.value.stripPlot.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Ke),f(`line`,{x1:`3`,x2:`97`,y1:`97`,y2:`97`,stroke:q.value.stripPlot.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,qe),f(`circle`,{cx:`12`,cy:`8`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Je),f(`circle`,{cx:`12`,cy:`40`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Ye),f(`circle`,{cx:`12`,cy:`60`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Xe),f(`circle`,{cx:`12`,cy:`70`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Ze),f(`circle`,{cx:`32`,cy:`25`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Qe),f(`circle`,{cx:`32`,cy:`38`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,$e),f(`circle`,{cx:`32`,cy:`44`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,et),f(`circle`,{cx:`32`,cy:`55`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,tt),f(`circle`,{cx:`52`,cy:`30`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,nt),f(`circle`,{cx:`52`,cy:`33`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,rt),f(`circle`,{cx:`52`,cy:`43`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,it),f(`circle`,{cx:`52`,cy:`63`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,at),f(`circle`,{cx:`52`,cy:`78`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ot),f(`circle`,{cx:`72`,cy:`58`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,st),f(`circle`,{cx:`72`,cy:`70`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ct),f(`circle`,{cx:`72`,cy:`78`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,lt),f(`circle`,{cx:`72`,cy:`88`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ut),f(`circle`,{cx:`92`,cy:`66`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,dt),f(`circle`,{cx:`92`,cy:`77`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ft),f(`circle`,{cx:`92`,cy:`85`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,pt),f(`circle`,{cx:`92`,cy:`88`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,mt),f(`circle`,{cx:`92`,cy:`90`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ht),f(`circle`,{cx:`92`,cy:`92`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,gt)],12,Ge)):u(``,!0),J.value===`treemap`?(g(),d(`svg`,{key:9,xmlns:y(a),width:`100%`,viewBox:`0 0 30 21`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{fill:`none`,stroke:q.value.treemap.color,"stroke-width":`0.3`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M 1 1 L 29 1 L 29 20 L 1 20 Z M 10 1 L 10 20 M 1 13 L 10 13 M 22 11 L 22 20 M 10 11 L 22 11 M 22 11 L 29 11 M 7 13 L 7 20 M 17 11 L 17 20 M 22 15 L 29 15 M 26 15 L 26 20 M 20 1 L 20 11`},null,8,vt)],12,_t)):u(``,!0),J.value===`galaxy`?(g(),d(`svg`,{key:10,xmlns:y(a),width:`100%`,viewBox:`0.5 0 20 20`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{fill:`none`,stroke:q.value.galaxy.color,"stroke-width":`2`,"stroke-linecap":`round`,d:`M18 11c0 2-1 4-1.6 5M3 11a1 1 0 0115 0m-4 0A1 1 0 013 11m4 0a1 1 0 017 0m-3 0A1 1 0 017 11`},null,8,bt)],12,yt)):u(``,!0),J.value===`bar3d`?(g(),d(`svg`,{key:11,xmlns:y(a),width:`100%`,viewBox:`2 0 16 20`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{fill:`none`,stroke:q.value.bar3d.color,"stroke-width":`0.2`,d:`M10 19V5m4-2-4 2L6 3m4-2 4 2V17l-4 2-4-2V3l4-2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,St)],12,xt)):u(``,!0),J.value===`sparkHistogram`?(g(),d(`svg`,{key:12,xmlns:y(a),width:`100%`,viewBox:`0 0 100 20`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`rect`,{x:`3`,y:`8`,height:`4`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,wt),f(`rect`,{x:`11`,y:`6`,height:`8`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Tt),f(`rect`,{x:`19`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Et),f(`rect`,{x:`27`,y:`6`,height:`8`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Dt),f(`rect`,{x:`35`,y:`8`,height:`4`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,Ot),f(`rect`,{x:`43`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,kt),f(`rect`,{x:`51`,y:`8.5`,height:`3`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,At),f(`rect`,{x:`59`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,jt),f(`rect`,{x:`67`,y:`6`,height:`8`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Mt),f(`rect`,{x:`75`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Nt),f(`rect`,{x:`83`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Pt),f(`rect`,{x:`91`,y:`8`,height:`4`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,Ft)],12,Ct)):u(``,!0),J.value===`sparkbar`?(g(),d(`svg`,{key:13,xmlns:y(a),width:`100%`,viewBox:`0 0 500 200`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`line`,{x1:`12`,x2:`488`,y1:`50`,y2:`50`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`0.5`},null,8,Lt),f(`line`,{x1:`12`,x2:`400`,y1:`50`,y2:`50`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`1`},null,8,Rt),f(`line`,{x1:`12`,x2:`488`,y1:`100`,y2:`100`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`0.5`},null,8,zt),f(`line`,{x1:`12`,x2:`350`,y1:`100`,y2:`100`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`1`},null,8,Bt),f(`line`,{x1:`12`,x2:`488`,y1:`150`,y2:`150`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`0.5`},null,8,Vt),f(`line`,{x1:`12`,x2:`235`,y1:`150`,y2:`150`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`1`},null,8,Ht)],12,It)):u(``,!0),J.value===`sparkStackbar`?(g(),d(`svg`,{key:14,xmlns:y(a),width:`100%`,viewBox:`0 0 500 64`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`line`,{x1:`12`,x2:`488`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`0.5`},null,8,Wt),f(`line`,{x1:`12`,x2:`380`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`0.6`},null,8,Gt),f(`line`,{x1:`12`,x2:`200`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`0.8`},null,8,Kt),f(`line`,{x1:`12`,x2:`120`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`1`},null,8,qt)],12,Ut)):u(``,!0),J.value===`thermometer`?(g(),d(`svg`,{key:15,width:`100%`,viewBox:`0 0 20 20`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{fill:`none`,stroke:q.value.thermometer.color,"stroke-width":`0.2`,"stroke-linecap":`round`,d:`M 13 4 A 1 1 0 0 0 7 4 L 7 16 A 1 1 0 0 0 13 16 L 13 4 M 7 15 L 8 15 M 7 12 L 8 12 M 7 9 L 8 9 M 7 6 L 8 6 M 12 15 L 13 15 M 12 12 L 13 12 M 12 9 L 13 9 M 12 6 L 13 6 `},null,8,Jt),f(`path`,{stroke:q.value.thermometer.color,"stroke-width":`1`,style:{opacity:`0.6`},d:`M 10 17 L 10 12 `,"stroke-linecap":`round`},null,8,Yt),f(`path`,{"stroke-linecap":`round`,stroke:q.value.thermometer.color,"stroke-width":`1`,opacity:`M 10 17 L 10 9`},null,8,Xt),f(`path`,{"stroke-linecap":`round`,stroke:q.value.thermometer.color,"stroke-width":`1`,opacity:`0.3`,d:`M 10 17 L 10 6`},null,8,Zt),f(`path`,{"stroke-linecap":`round`,stroke:q.value.thermometer.color,"stroke-width":`1`,style:{opacity:`0.1`},d:`M 10 17 L 10 3`},null,8,Qt)],4)):u(``,!0),J.value===`relationCircle`?(g(),d(`svg`,{key:16,xmlns:y(a),width:`100%`,viewBox:`0 0 20 20`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{fill:`none`,stroke:q.value.relationCircle.color,"stroke-width":`0.2`,"stroke-linecap":`round`,d:`M1 10A1 1 0 0019 10 1 1 0 001 10M1 10C7 11 9 13 10 19M10 19C10 11 8 7 6 2M10 19C10 11 12 7 14 2M10 19C11 13 12 11 19 10`},null,8,en)],12,$t)):u(``,!0),J.value===`molecule`?(g(),d(`svg`,{key:17,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`circle`,{cx:`50`,cy:`50`,r:`6`,"stroke-width":`2`,fill:`none`,stroke:q.value.molecule.color},null,8,nn),f(`circle`,{cx:`20`,cy:`50`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,rn),f(`circle`,{cx:`80`,cy:`50`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,an),f(`circle`,{cx:`50`,cy:`20`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,on),f(`circle`,{cx:`50`,cy:`80`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,sn),f(`line`,{x1:`50`,x2:`50`,y1:`23`,y2:`45`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,cn),f(`line`,{x1:`50`,x2:`50`,y1:`77`,y2:`55`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,ln),f(`line`,{x1:`23`,x2:`45`,y1:`50`,y2:`50`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,un),f(`line`,{x1:`77`,x2:`55`,y1:`50`,y2:`50`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,dn)],12,tn)):u(``,!0),J.value===`tiremarks`?(g(),d(`svg`,{key:18,xmlns:y(a),width:`100%`,viewBox:`0 0 312 56`,style:h(`background:${q.value.backgroundColor}`)},[m(s),(g(),d(c,null,v(100,e=>f(`g`,null,[f(`line`,{x1:10+e*2.9,y1:6,x2:10+e*2.9,y2:50,stroke:q.value.tiremarks.color,style:h(e>80?`opacity: 0.5`:``),"stroke-linecap":`round`},null,12,pn)])),64))],12,fn)):u(``,!0),J.value===`pyramid`?(g(),d(`svg`,{key:19,xmlns:y(a),width:`100%`,viewBox:`0 0 105 80`,style:h(`background:${q.value.backgroundColor}`)},[m(s),(g(!0),d(c,null,v(Z.value,(e,t)=>(g(),d(`g`,null,[f(`rect`,{x:50-e[0],y:t*(80/Z.value.length),width:e[0],height:80/Z.value.length*.95,fill:q.value.pyramid.color},null,8,hn),f(`rect`,{x:55,y:t*(80/Z.value.length),width:e[1],height:80/Z.value.length*.95,fill:q.value.pyramid.color},null,8,gn)]))),256))],12,mn)):u(``,!0),J.value===`rings`?(g(),d(`svg`,{key:20,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`circle`,{cx:200,cy:200,r:180,fill:y(r)(q.value.rings.color,40)},null,8,vn),f(`circle`,{cx:200,cy:250,r:130,fill:y(r)(q.value.rings.color,60)},null,8,yn),f(`circle`,{cx:200,cy:290,r:90,fill:y(r)(q.value.rings.color,100)},null,8,bn)],12,_n)):u(``,!0),J.value===`wheel`?(g(),d(`svg`,{key:21,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(s),(g(!0),d(c,null,v(Ai.value,(e,t)=>(g(),d(`line`,{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,stroke:t<66?e.color:y(r)(e.color,50),"stroke-width":5,"stroke-linecap":`round`},null,8,Sn))),256)),f(`circle`,{cx:200,cy:200,r:130,"stroke-width":3,stroke:y(r)(q.value.wheel.color,50),fill:`none`},null,8,Cn),f(`rect`,{fill:y(r)(q.value.wheel.color,50),rx:12,x:160,y:170,height:60,width:80,stroke:`none`},null,8,wn)],12,xn)):u(``,!0),J.value===`sparkline`?(g(),d(`svg`,{key:22,xmlns:y(a),width:`100%`,viewBox:`0 0 150 32`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`g`,null,[f(`rect`,{x:`2`,y:`2`,height:`6`,width:`24`,fill:q.value.sparkline.color,rx:`3`},null,8,En),f(`rect`,{x:`2`,y:`12`,height:`16`,width:`16`,fill:q.value.sparkline.color,rx:`3`},null,8,Dn)]),(g(!0),d(c,null,v(Q.value,(e,t)=>(g(),d(`g`,null,[t<Q.value.length-1?(g(),d(`line`,{key:0,x1:e.x,y1:e.y,x2:Q.value[t+1].x,y2:Q.value[t+1].y,"stroke-width":q.value.sparkline.strokeWidth,stroke:q.value.sparkline.color,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,On)):u(``,!0)]))),256))],12,Tn)):u(``,!0),J.value===`candlesticks`?(g(),d(`svg`,{key:23,xmlns:y(a),width:`100%`,viewBox:`0 0 512 316`,style:h(`background:${q.value.backgroundColor}`)},[m(s),q.value.candlesticks.axis.show?(g(),d(`g`,An,[f(`line`,{x1:2,x2:2,y1:2,y2:314,stroke:q.value.candlesticks.axis.color,"stroke-width":q.value.candlesticks.axis.strokeWidth,"stroke-linecap":`round`},null,8,jn),f(`line`,{x1:2,x2:510,y1:314,y2:314,stroke:q.value.candlesticks.axis.color,"stroke-width":q.value.candlesticks.axis.strokeWidth,"stroke-linecap":`round`},null,8,Mn)])):u(``,!0),(g(!0),d(c,null,v(X.value,(e,t)=>(g(),d(`g`,null,[f(`line`,{x1:24+464*t/(X.value.length-1)-464/(X.value.length-1)/8,x2:24+464*t/(X.value.length-1)+464/(X.value.length-1)/8,y1:e.y,y2:e.y,stroke:q.value.candlesticks.candle.color,"stroke-width":q.value.candlesticks.candle.strokeWidth,"stroke-linecap":`round`},null,8,Nn),f(`line`,{x1:24+464*t/(X.value.length-1)-464/(X.value.length-1)/8,x2:24+464*t/(X.value.length-1)+464/(X.value.length-1)/8,y1:e.y+e.height,y2:e.y+e.height,stroke:q.value.candlesticks.candle.color,"stroke-width":q.value.candlesticks.candle.strokeWidth,"stroke-linecap":`round`},null,8,Pn),f(`line`,{x1:24+464*t/(X.value.length-1),x2:24+464*t/(X.value.length-1),y1:e.y,y2:e.y+e.height,stroke:q.value.candlesticks.candle.color,"stroke-width":q.value.candlesticks.candle.strokeWidth,"stroke-linecap":`round`},null,8,Fn),f(`rect`,{x:24+464*t/(X.value.length-1)-464/(X.value.length-1)/8,y:e.y+(e.height-e.bar*1.5),height:e.bar,width:464/(X.value.length-1)/4,fill:q.value.candlesticks.candle.color,rx:`1`},null,8,In)]))),256))],12,kn)):u(``,!0),J.value===`heatmap`?(g(),d(`svg`,{key:24,xmlns:y(a),width:`100%`,viewBox:`0 0 ${10*q.value.heatmap.cellsX} ${10*q.value.heatmap.cellsY}`,style:h(`background:${q.value.backgroundColor}`)},[m(s),(g(!0),d(c,null,v(q.value.heatmap.cellsY,(e,t)=>(g(),d(`g`,null,[(g(!0),d(c,null,v(q.value.heatmap.cellsX,(e,n)=>(g(),d(`g`,null,[f(`rect`,{x:n*10,y:t*10,height:10,width:10,stroke:q.value.backgroundColor,"stroke-width":1,fill:y(r)(q.value.heatmap.color,Math.round(Math.random()*100))},null,8,Rn)]))),256))]))),256))],12,Ln)):u(``,!0),J.value===`chestnut`?(g(),d(`svg`,{key:25,xmlns:y(a),width:`100%`,viewBox:`0 0 512 316`,style:h(`background:${q.value.backgroundColor}`)},[m(s),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`g`,null,[(g(!0),d(c,null,v(e.bars,t=>(g(),d(`g`,null,[(g(),d(c,null,v(22,(n,i)=>f(`path`,{d:`M
|
|
36
|
+
`,fill:q.value.dumbbell.color},null,8,He),f(`circle`,{cx:`40`,cy:`50`,r:`2`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.dumbbell.color},null,8,Ue),f(`circle`,{cx:`90`,cy:`50`,r:`2`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.dumbbell.color},null,8,We)],12,Oe)):u(``,!0),J.value===`stripPlot`?(g(),d(`svg`,{key:8,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`97`,stroke:q.value.stripPlot.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Ke),f(`line`,{x1:`3`,x2:`97`,y1:`97`,y2:`97`,stroke:q.value.stripPlot.color,"stroke-width":.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,qe),f(`circle`,{cx:`12`,cy:`8`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Je),f(`circle`,{cx:`12`,cy:`40`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Ye),f(`circle`,{cx:`12`,cy:`60`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Xe),f(`circle`,{cx:`12`,cy:`70`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Ze),f(`circle`,{cx:`32`,cy:`25`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,Qe),f(`circle`,{cx:`32`,cy:`38`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,$e),f(`circle`,{cx:`32`,cy:`44`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,et),f(`circle`,{cx:`32`,cy:`55`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,tt),f(`circle`,{cx:`52`,cy:`30`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,nt),f(`circle`,{cx:`52`,cy:`33`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,rt),f(`circle`,{cx:`52`,cy:`43`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,it),f(`circle`,{cx:`52`,cy:`63`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,at),f(`circle`,{cx:`52`,cy:`78`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ot),f(`circle`,{cx:`72`,cy:`58`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,st),f(`circle`,{cx:`72`,cy:`70`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ct),f(`circle`,{cx:`72`,cy:`78`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,lt),f(`circle`,{cx:`72`,cy:`88`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ut),f(`circle`,{cx:`92`,cy:`66`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,dt),f(`circle`,{cx:`92`,cy:`77`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ft),f(`circle`,{cx:`92`,cy:`85`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,pt),f(`circle`,{cx:`92`,cy:`88`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,mt),f(`circle`,{cx:`92`,cy:`90`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,ht),f(`circle`,{cx:`92`,cy:`92`,r:`4`,stroke:q.value.backgroundColor,"stroke-width":.3,fill:q.value.stripPlot.color,style:{opacity:`0.5`}},null,8,gt)],12,Ge)):u(``,!0),J.value===`treemap`?(g(),d(`svg`,{key:9,xmlns:y(a),width:`100%`,viewBox:`0 0 30 21`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{fill:`none`,stroke:q.value.treemap.color,"stroke-width":`0.3`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M 1 1 L 29 1 L 29 20 L 1 20 Z M 10 1 L 10 20 M 1 13 L 10 13 M 22 11 L 22 20 M 10 11 L 22 11 M 22 11 L 29 11 M 7 13 L 7 20 M 17 11 L 17 20 M 22 15 L 29 15 M 26 15 L 26 20 M 20 1 L 20 11`},null,8,vt)],12,_t)):u(``,!0),J.value===`galaxy`?(g(),d(`svg`,{key:10,xmlns:y(a),width:`100%`,viewBox:`0.5 0 20 20`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{fill:`none`,stroke:q.value.galaxy.color,"stroke-width":`2`,"stroke-linecap":`round`,d:`M18 11c0 2-1 4-1.6 5M3 11a1 1 0 0115 0m-4 0A1 1 0 013 11m4 0a1 1 0 017 0m-3 0A1 1 0 017 11`},null,8,bt)],12,yt)):u(``,!0),J.value===`bar3d`?(g(),d(`svg`,{key:11,xmlns:y(a),width:`100%`,viewBox:`2 0 16 20`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{fill:`none`,stroke:q.value.bar3d.color,"stroke-width":`0.2`,d:`M10 19V5m4-2-4 2L6 3m4-2 4 2V17l-4 2-4-2V3l4-2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,St)],12,xt)):u(``,!0),J.value===`sparkHistogram`?(g(),d(`svg`,{key:12,xmlns:y(a),width:`100%`,viewBox:`0 0 100 20`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`rect`,{x:`3`,y:`8`,height:`4`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,wt),f(`rect`,{x:`11`,y:`6`,height:`8`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Tt),f(`rect`,{x:`19`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Et),f(`rect`,{x:`27`,y:`6`,height:`8`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Dt),f(`rect`,{x:`35`,y:`8`,height:`4`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,Ot),f(`rect`,{x:`43`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,kt),f(`rect`,{x:`51`,y:`8.5`,height:`3`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,At),f(`rect`,{x:`59`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,jt),f(`rect`,{x:`67`,y:`6`,height:`8`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Mt),f(`rect`,{x:`75`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Nt),f(`rect`,{x:`83`,y:`7`,height:`6`,width:`6`,rx:`2`,fill:q.value.sparkHistogram.color},null,8,Pt),f(`rect`,{x:`91`,y:`8`,height:`4`,width:`6`,rx:`1.5`,fill:q.value.sparkHistogram.color},null,8,Ft)],12,Ct)):u(``,!0),J.value===`sparkbar`?(g(),d(`svg`,{key:13,xmlns:y(a),width:`100%`,viewBox:`0 0 500 200`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`12`,x2:`488`,y1:`50`,y2:`50`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`0.5`},null,8,Lt),f(`line`,{x1:`12`,x2:`400`,y1:`50`,y2:`50`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`1`},null,8,Rt),f(`line`,{x1:`12`,x2:`488`,y1:`100`,y2:`100`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`0.5`},null,8,zt),f(`line`,{x1:`12`,x2:`350`,y1:`100`,y2:`100`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`1`},null,8,Bt),f(`line`,{x1:`12`,x2:`488`,y1:`150`,y2:`150`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`0.5`},null,8,Vt),f(`line`,{x1:`12`,x2:`235`,y1:`150`,y2:`150`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkbar.color,opacity:`1`},null,8,Ht)],12,It)):u(``,!0),J.value===`sparkStackbar`?(g(),d(`svg`,{key:14,xmlns:y(a),width:`100%`,viewBox:`0 0 500 64`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`12`,x2:`488`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`0.5`},null,8,Wt),f(`line`,{x1:`12`,x2:`380`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`0.6`},null,8,Gt),f(`line`,{x1:`12`,x2:`200`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`0.8`},null,8,Kt),f(`line`,{x1:`12`,x2:`120`,y1:`32`,y2:`32`,"stroke-width":`16`,"stroke-linecap":`round`,stroke:q.value.sparkStackbar.color,opacity:`1`},null,8,qt)],12,Ut)):u(``,!0),J.value===`thermometer`?(g(),d(`svg`,{key:15,width:`100%`,viewBox:`0 0 20 20`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{fill:`none`,stroke:q.value.thermometer.color,"stroke-width":`0.2`,"stroke-linecap":`round`,d:`M 13 4 A 1 1 0 0 0 7 4 L 7 16 A 1 1 0 0 0 13 16 L 13 4 M 7 15 L 8 15 M 7 12 L 8 12 M 7 9 L 8 9 M 7 6 L 8 6 M 12 15 L 13 15 M 12 12 L 13 12 M 12 9 L 13 9 M 12 6 L 13 6 `},null,8,Jt),f(`path`,{stroke:q.value.thermometer.color,"stroke-width":`1`,style:{opacity:`0.6`},d:`M 10 17 L 10 12 `,"stroke-linecap":`round`},null,8,Yt),f(`path`,{"stroke-linecap":`round`,stroke:q.value.thermometer.color,"stroke-width":`1`,opacity:`M 10 17 L 10 9`},null,8,Xt),f(`path`,{"stroke-linecap":`round`,stroke:q.value.thermometer.color,"stroke-width":`1`,opacity:`0.3`,d:`M 10 17 L 10 6`},null,8,Zt),f(`path`,{"stroke-linecap":`round`,stroke:q.value.thermometer.color,"stroke-width":`1`,style:{opacity:`0.1`},d:`M 10 17 L 10 3`},null,8,Qt)],4)):u(``,!0),J.value===`relationCircle`?(g(),d(`svg`,{key:16,xmlns:y(a),width:`100%`,viewBox:`0 0 20 20`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{fill:`none`,stroke:q.value.relationCircle.color,"stroke-width":`0.2`,"stroke-linecap":`round`,d:`M1 10A1 1 0 0019 10 1 1 0 001 10M1 10C7 11 9 13 10 19M10 19C10 11 8 7 6 2M10 19C10 11 12 7 14 2M10 19C11 13 12 11 19 10`},null,8,en)],12,$t)):u(``,!0),J.value===`molecule`?(g(),d(`svg`,{key:17,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`circle`,{cx:`50`,cy:`50`,r:`6`,"stroke-width":`2`,fill:`none`,stroke:q.value.molecule.color},null,8,nn),f(`circle`,{cx:`20`,cy:`50`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,rn),f(`circle`,{cx:`80`,cy:`50`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,an),f(`circle`,{cx:`50`,cy:`20`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,on),f(`circle`,{cx:`50`,cy:`80`,r:`3`,"stroke-width":`1.6`,fill:`none`,stroke:q.value.molecule.color},null,8,sn),f(`line`,{x1:`50`,x2:`50`,y1:`23`,y2:`45`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,cn),f(`line`,{x1:`50`,x2:`50`,y1:`77`,y2:`55`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,ln),f(`line`,{x1:`23`,x2:`45`,y1:`50`,y2:`50`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,un),f(`line`,{x1:`77`,x2:`55`,y1:`50`,y2:`50`,"stroke-width":`1`,stroke:q.value.molecule.color},null,8,dn)],12,tn)):u(``,!0),J.value===`tiremarks`?(g(),d(`svg`,{key:18,xmlns:y(a),width:`100%`,viewBox:`0 0 312 56`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(),d(c,null,v(100,e=>f(`g`,null,[f(`line`,{x1:10+e*2.9,y1:6,x2:10+e*2.9,y2:50,stroke:q.value.tiremarks.color,style:h(e>80?`opacity: 0.5`:``),"stroke-linecap":`round`},null,12,pn)])),64))],12,fn)):u(``,!0),J.value===`pyramid`?(g(),d(`svg`,{key:19,xmlns:y(a),width:`100%`,viewBox:`0 0 105 80`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(!0),d(c,null,v(Z.value,(e,t)=>(g(),d(`g`,null,[f(`rect`,{x:50-e[0],y:t*(80/Z.value.length),width:e[0],height:80/Z.value.length*.95,fill:q.value.pyramid.color},null,8,hn),f(`rect`,{x:55,y:t*(80/Z.value.length),width:e[1],height:80/Z.value.length*.95,fill:q.value.pyramid.color},null,8,gn)]))),256))],12,mn)):u(``,!0),J.value===`rings`?(g(),d(`svg`,{key:20,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`circle`,{cx:200,cy:200,r:180,fill:y(n)(q.value.rings.color,40)},null,8,vn),f(`circle`,{cx:200,cy:250,r:130,fill:y(n)(q.value.rings.color,60)},null,8,yn),f(`circle`,{cx:200,cy:290,r:90,fill:y(n)(q.value.rings.color,100)},null,8,bn)],12,_n)):u(``,!0),J.value===`wheel`?(g(),d(`svg`,{key:21,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(!0),d(c,null,v(Ai.value,(e,t)=>(g(),d(`line`,{x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,stroke:t<66?e.color:y(n)(e.color,50),"stroke-width":5,"stroke-linecap":`round`},null,8,Sn))),256)),f(`circle`,{cx:200,cy:200,r:130,"stroke-width":3,stroke:y(n)(q.value.wheel.color,50),fill:`none`},null,8,Cn),f(`rect`,{fill:y(n)(q.value.wheel.color,50),rx:12,x:160,y:170,height:60,width:80,stroke:`none`},null,8,wn)],12,xn)):u(``,!0),J.value===`sparkline`?(g(),d(`svg`,{key:22,xmlns:y(a),width:`100%`,viewBox:`0 0 150 32`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`g`,null,[f(`rect`,{x:`2`,y:`2`,height:`6`,width:`24`,fill:q.value.sparkline.color,rx:`3`},null,8,En),f(`rect`,{x:`2`,y:`12`,height:`16`,width:`16`,fill:q.value.sparkline.color,rx:`3`},null,8,Dn)]),(g(!0),d(c,null,v(Q.value,(e,t)=>(g(),d(`g`,null,[t<Q.value.length-1?(g(),d(`line`,{key:0,x1:e.x,y1:e.y,x2:Q.value[t+1].x,y2:Q.value[t+1].y,"stroke-width":q.value.sparkline.strokeWidth,stroke:q.value.sparkline.color,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,On)):u(``,!0)]))),256))],12,Tn)):u(``,!0),J.value===`candlesticks`?(g(),d(`svg`,{key:23,xmlns:y(a),width:`100%`,viewBox:`0 0 512 316`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.candlesticks.axis.show?(g(),d(`g`,An,[f(`line`,{x1:2,x2:2,y1:2,y2:314,stroke:q.value.candlesticks.axis.color,"stroke-width":q.value.candlesticks.axis.strokeWidth,"stroke-linecap":`round`},null,8,jn),f(`line`,{x1:2,x2:510,y1:314,y2:314,stroke:q.value.candlesticks.axis.color,"stroke-width":q.value.candlesticks.axis.strokeWidth,"stroke-linecap":`round`},null,8,Mn)])):u(``,!0),(g(!0),d(c,null,v(X.value,(e,t)=>(g(),d(`g`,null,[f(`line`,{x1:24+464*t/(X.value.length-1)-464/(X.value.length-1)/8,x2:24+464*t/(X.value.length-1)+464/(X.value.length-1)/8,y1:e.y,y2:e.y,stroke:q.value.candlesticks.candle.color,"stroke-width":q.value.candlesticks.candle.strokeWidth,"stroke-linecap":`round`},null,8,Nn),f(`line`,{x1:24+464*t/(X.value.length-1)-464/(X.value.length-1)/8,x2:24+464*t/(X.value.length-1)+464/(X.value.length-1)/8,y1:e.y+e.height,y2:e.y+e.height,stroke:q.value.candlesticks.candle.color,"stroke-width":q.value.candlesticks.candle.strokeWidth,"stroke-linecap":`round`},null,8,Pn),f(`line`,{x1:24+464*t/(X.value.length-1),x2:24+464*t/(X.value.length-1),y1:e.y,y2:e.y+e.height,stroke:q.value.candlesticks.candle.color,"stroke-width":q.value.candlesticks.candle.strokeWidth,"stroke-linecap":`round`},null,8,Fn),f(`rect`,{x:24+464*t/(X.value.length-1)-464/(X.value.length-1)/8,y:e.y+(e.height-e.bar*1.5),height:e.bar,width:464/(X.value.length-1)/4,fill:q.value.candlesticks.candle.color,rx:`1`},null,8,In)]))),256))],12,kn)):u(``,!0),J.value===`heatmap`?(g(),d(`svg`,{key:24,xmlns:y(a),width:`100%`,viewBox:`0 0 ${10*q.value.heatmap.cellsX} ${10*q.value.heatmap.cellsY}`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(!0),d(c,null,v(q.value.heatmap.cellsY,(e,t)=>(g(),d(`g`,null,[(g(!0),d(c,null,v(q.value.heatmap.cellsX,(e,r)=>(g(),d(`g`,null,[f(`rect`,{x:r*10,y:t*10,height:10,width:10,stroke:q.value.backgroundColor,"stroke-width":1,fill:y(n)(q.value.heatmap.color,Math.round(Math.random()*100))},null,8,Rn)]))),256))]))),256))],12,Ln)):u(``,!0),J.value===`chestnut`?(g(),d(`svg`,{key:25,xmlns:y(a),width:`100%`,viewBox:`0 0 512 316`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`g`,null,[(g(!0),d(c,null,v(e.bars,t=>(g(),d(`g`,null,[(g(),d(c,null,v(22,(r,i)=>f(`path`,{d:`M
|
|
37
37
|
${t.x},${t.y+i}
|
|
38
38
|
C${t.x-20},${t.y+i}
|
|
39
39
|
${t.x-80},${t.y+i}
|
|
40
40
|
${e.root.x+e.root.r/2}, ${e.root.y}
|
|
41
|
-
`,stroke:y(r)(q.value.chestnut.color,t.opacity*.2),fill:`none`,"stroke-width":`2`,"shape-rendering":`cirspEdges`},null,8,Bn)),64))]))),256))]))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:`${q.value.backgroundColor}`,stroke:K.value.backgroundColor,"stroke-width":3},null,8,Vn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:y(r)(q.value.chestnut.color,e.root.opacity),stroke:q.value.backgroundColor,"stroke-width":3},null,8,Hn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`g`,null,[(g(!0),d(c,null,v(e.bars,e=>(g(),d(`rect`,{rx:`2`,x:e.x,y:e.y,width:e.width,height:22,fill:y(r)(q.value.chestnut.color,e.opacity)},null,8,Un))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:11,fill:y(r)(q.value.chestnut.color,e.opacity)},null,8,Wn))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:5,fill:q.value.backgroundColor},null,8,Gn))),256))]))),256)),f(`line`,{x1:200,x2:200,y1:10,y2:300,stroke:q.value.backgroundColor,"stroke-width":3},null,8,Kn)],12,zn)):u(``,!0),J.value===`donutEvolution`?(g(),d(`svg`,{key:26,xmlns:y(a),width:`100%`,viewBox:`0 0 108 70`,style:h(`background:${q.value.backgroundColor}`)},[m(s),q.value.line.axis.show?(g(),d(`path`,{key:0,d:`M3 3 3 67 105 67`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Jn)):u(``,!0),f(`path`,{fill:`none`,d:`M10 55a1 1 0 0010 0A1 1 0 0010 55m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3-3V50m12-5a1 1 0 0010 0A1 1 0 0027 45m2 0a1 1 0 006 0 1 1 0 00-6 0m3 3v2m3-5h2m7 5a1 1 0 0010 0A1 1 0 0044 50m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m0 6v2M61 35a1 1 0 0010 0A1 1 0 0061 35m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m-5 3h2m15 6a1 1 0 0010 0A1 1 0 0078 41m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m6 0h2m7-27a1 1 0 0010 0A1 1 0 0095 14m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3 3v2`,stroke:q.value.donutEvolution.donuts.color,"stroke-width":q.value.donutEvolution.donuts.strokeWidth},null,8,Yn),f(`path`,{fill:`none`,d:`M19 52l8-7m10 0 7 4m8-3 10-8m9-2 7 4m8-3L97 18`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Xn),f(`path`,{d:`M10 55h2c0-2 2-3 3-3V50c-2 0-5 2-5 5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Zn),f(`path`,{d:`M32 48v2c3 0 5-3 5-5H35c0 2-2 3-3 3`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Qn),f(`path`,{d:`M49 53v2a1 1 0 000-10v2c4 0 4 6 0 6`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,$n),f(`path`,{d:`M63 35c0-2 2-3 3-3V30c-3 0-5 3-5 5h2`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,er),f(`path`,{d:`M78 41h2c0 4 6 4 6 0h2A1 1 0 0178 41`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,tr),f(`path`,{d:`M95 14h2c0 2 2 3 3 3v2c-2 0-5-2-5-5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,nr)],12,qn)):u(``,!0),J.value===`line`?(g(),d(`svg`,{key:27,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(s),q.value.line.axis.show?(g(),d(`g`,ir,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ar),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,or)])):u(``,!0),f(`path`,{d:`M 9,60 22,50 35,55 48,36 61,40 74,25 87,26 90,12`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:q.value.line.path.color,"stroke-width":q.value.line.path.strokeWidth},null,8,sr),q.value.line.path.showPlots?(g(),d(`g`,cr,[f(`circle`,{cx:`9`,cy:`60`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,lr),f(`circle`,{cx:`90`,cy:`12`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,ur)])):u(``,!0)],12,rr)):u(``,!0),J.value===`bar`?(g(),d(`svg`,{key:28,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(s),q.value.bar.axis.show?(g(),d(`g`,fr,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,pr),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,mr)])):u(``,!0),(g(!0),d(c,null,v(Ti.value,(e,t)=>(g(),d(`rect`,{fill:q.value.bar.color,rx:q.value.bar.borderRadius,x:6+11.2*t,y:e,width:q.value.bar.barWidth,height:67-e},null,8,hr))),256))],12,dr)):u(``,!0),J.value===`donut`?(g(),d(`svg`,{key:29,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{d:` M 300 200 A 100 100 0 0 1 113 250`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:q.value.donut.color},null,8,_r),f(`path`,{d:` M 113 250 A 100 100 0 0 1 250 113`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(r)(q.value.donut.color,60)},null,8,vr),f(`path`,{d:` M 250 113 A 100 100 0 0 1 300 200`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(r)(q.value.donut.color,30)},null,8,yr)],12,gr)):u(``,!0),J.value===`onion`?(g(),d(`svg`,{key:30,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{d:` M 200 60 A 140 140 0 1 1 60 200`,stroke:q.value.onion.color,"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,xr),f(`path`,{d:` M 200 100 A 100 100 0 1 1 100 200`,stroke:y(r)(q.value.onion.color,60),"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,Sr),f(`path`,{d:` M 200 140 A 60 60 0 1 1 140 200`,fill:`none`,stroke:y(r)(q.value.onion.color,40),"stroke-linecap":`round`,"stroke-width":`20`},null,8,Cr)],12,br)):u(``,!0),J.value===`gauge`?(g(),d(`svg`,{key:31,width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{d:` M 82 255 A 120 120 0 1 1 318 255`,fill:`none`,stroke:q.value.gauge.color,"stroke-linecap":`round`,"stroke-width":`20`},null,8,wr),f(`circle`,{cx:`200`,cy:`256`,r:`12`,fill:q.value.gauge.color},null,8,Tr),f(`line`,{x1:`200`,y1:`256`,x2:`250`,y2:`160`,"stroke-width":`8`,stroke:q.value.gauge.color,"stroke-linecap":`round`},null,8,Er)],4)):u(``,!0),J.value===`quadrant`?(g(),d(`svg`,{key:32,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`line`,{x1:`50`,x2:`50`,y1:`3`,y2:`97`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,Or),f(`line`,{x1:`3`,x2:`97`,y1:`50`,y2:`50`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,kr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`20`,cy:`20`},null,8,Ar),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`80`,cy:`60`},null,8,jr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`65`,cy:`55`},null,8,Mr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`36`,cy:`67`},null,8,Nr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`15`,cy:`75`},null,8,Pr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`40`,cy:`55`},null,8,Fr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`76`,cy:`32`},null,8,Ir),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`85`,cy:`26`},null,8,Lr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`55`,cy:`46`},null,8,Rr)],12,Dr)):u(``,!0),J.value===`radar`?(g(),d(`svg`,{key:33,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`path`,{d:Ei.value,fill:`none`,stroke:q.value.radar.grid.color,"stroke-width":q.value.radar.grid.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Br),f(`path`,{d:Di.value,fill:`none`,stroke:y(r)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Vr),f(`path`,{d:Oi.value,fill:`none`,stroke:y(r)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Hr),f(`path`,{d:ki.value,fill:`none`,stroke:y(r)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Ur),f(`path`,{d:`M 9,50 91,50`,stroke:y(r)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Wr),f(`path`,{d:`M 29.5,14.5 70.5 85.5`,stroke:y(r)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Gr),f(`path`,{d:`M 29.5,85.5 70.5 14.5`,stroke:y(r)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Kr),f(`path`,{d:`M 34,23 68.5,18, 70,50 61.5,70 35,75.5 10,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(r)(q.value.radar.shapes.color,30)},null,8,qr),f(`path`,{d:`M 43.5,40 64.5,25, 84,50 55.5,60 29.5,85.5 25,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(r)(q.value.radar.shapes.color,50)},null,8,Jr)],12,zr)):u(``,!0),J.value===`waffle`?(g(),d(`svg`,{key:34,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(s),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,n)=>f(`g`,null,[f(`rect`,{x:3+n*9.5,y:3+t*9.5,height:9,width:9,fill:y(r)(q.value.waffle.color,20),rx:`1`},null,8,Xr)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,n)=>f(`g`,null,[t>2?(g(),d(`rect`,{key:0,x:3+n*9.5,y:3+t*9.5,height:9,width:9,fill:y(r)(q.value.waffle.color,30),rx:`1`},null,8,Zr)):u(``,!0)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,n)=>f(`g`,null,[t>6?(g(),d(`rect`,{key:0,x:3+n*9.5,y:3+t*9.5,height:9,width:9,fill:y(r)(q.value.waffle.color,50),rx:`1`},null,8,Qr)):u(``,!0)])),64))])),64))],12,Yr)):u(``,!0),J.value===`table`?(g(),d(`svg`,{key:35,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(s),f(`rect`,{fill:y(r)(q.value.table.th.color,50),x:3.5,y:5,height:`10`,width:`93`},null,8,ei),f(`rect`,{fill:y(r)(q.value.table.th.color,50),x:3.5,y:15,height:`50`,width:`23.25`},null,8,ti),(g(),d(c,null,v(7,(e,t)=>f(`line`,{x1:`3.7`,x2:`96.3`,y1:5+t*10,y2:5+t*10,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ni)),64)),(g(),d(c,null,v(5,(e,t)=>f(`line`,{x1:3.5+t*23.25,x2:3.5+t*23.25,y1:`5`,y2:`65`,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ri)),64))],12,$r)):u(``,!0),J.value===`rating`?(g(),d(c,{key:36},[q.value.rating.useSmiley?(g(),d(`div`,{key:0,style:h(`display:flex;flex-direction:row;align-items:center;justify-content:center;width:${q.value.rating.maxWidth}px`)},[q.value.rating.filled?(g(),d(`svg`,{key:0,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[m(s),t[0]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ai)],12,ii)):(g(),d(`svg`,{key:1,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...t[1]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9.5 15.25a3.5 3.5 0 015 0" data-v-58349b71></path>`,5)]],12,oi)),q.value.rating.filled?(g(),d(`svg`,{key:2,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[t[2]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ci)],12,si)):(g(),d(`svg`,{key:3,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...t[3]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9 15l6 0" data-v-58349b71></path>`,5)]],12,li)),q.value.rating.filled?(g(),d(`svg`,{key:4,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[t[4]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,di)],12,ui)):(g(),d(`svg`,{key:5,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...t[5]||=[f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M3 12a9 9 0 1018 0A9 9 0 103 12`},null,-1),f(`path`,{d:`M9 10l.01 0`},null,-1),f(`path`,{d:`M15 10l.01 0`},null,-1)]],12,fi)),q.value.rating.filled?(g(),d(`svg`,{key:6,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[t[6]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,mi)],12,pi)):(g(),d(`svg`,{key:7,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...t[7]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-58349b71></path>`,5)]],12,hi)),q.value.rating.filled?(g(),d(`svg`,{key:8,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[t[8]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,gi)],12,W)):(g(),d(`svg`,{key:9,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...t[9]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 9l.01 0" data-v-58349b71></path><path d="M15 9l.01 0" data-v-58349b71></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-58349b71></path>`,5)]],12,_i))],4)):(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`0 0 100 30`,style:h(`background:${q.value.backgroundColor};max-width:${q.value.rating.maxWidth}px`)},[m(s),(g(),d(c,null,v(5,(e,t)=>f(`polygon`,{points:y(n)({plot:{x:10+t*20,y:15},radius:6}),fill:q.value.rating.filled?q.value.rating.color:`none`,stroke:q.value.rating.color,"stroke-width":q.value.rating.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,yi)),64))],12,vi))],64)):u(``,!0),J.value===`verticalBar`?(g(),d(`svg`,{key:37,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(s),q.value.verticalBar.axis.show?(g(),d(`g`,xi,[f(`line`,{x1:3,x2:3,y1:3,y2:97,stroke:q.value.verticalBar.axis.color,"stroke-width":q.value.verticalBar.axis.strokeWidth},null,8,Si)])):u(``,!0),(g(),d(c,null,v(6,(e,t)=>f(`rect`,{x:3,y:5+t*15.6,height:`12`,width:94-94*t/6,fill:q.value.verticalBar.color,rx:q.value.verticalBar.borderRadius},null,8,Ci)),64))],12,bi)):u(``,!0)],14,oe))}},[[`__scopeId`,`data-v-58349b71`]]);export{b as n,G as t};
|
|
41
|
+
`,stroke:y(n)(q.value.chestnut.color,t.opacity*.2),fill:`none`,"stroke-width":`2`,"shape-rendering":`cirspEdges`},null,8,Bn)),64))]))),256))]))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:`${q.value.backgroundColor}`,stroke:K.value.backgroundColor,"stroke-width":3},null,8,Vn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`circle`,{cx:e.root.x,cy:e.root.y,r:e.root.r,fill:y(n)(q.value.chestnut.color,e.root.opacity),stroke:q.value.backgroundColor,"stroke-width":3},null,8,Hn))),256)),(g(!0),d(c,null,v(Y.value,e=>(g(),d(`g`,null,[(g(!0),d(c,null,v(e.bars,e=>(g(),d(`rect`,{rx:`2`,x:e.x,y:e.y,width:e.width,height:22,fill:y(n)(q.value.chestnut.color,e.opacity)},null,8,Un))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:11,fill:y(n)(q.value.chestnut.color,e.opacity)},null,8,Wn))),256)),(g(!0),d(c,null,v(e.bars,e=>(g(),d(`circle`,{cx:e.x+e.width+32,cy:e.y+11,r:5,fill:q.value.backgroundColor},null,8,Gn))),256))]))),256)),f(`line`,{x1:200,x2:200,y1:10,y2:300,stroke:q.value.backgroundColor,"stroke-width":3},null,8,Kn)],12,zn)):u(``,!0),J.value===`donutEvolution`?(g(),d(`svg`,{key:26,xmlns:y(a),width:`100%`,viewBox:`0 0 108 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.line.axis.show?(g(),d(`path`,{key:0,d:`M3 3 3 67 105 67`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Jn)):u(``,!0),f(`path`,{fill:`none`,d:`M10 55a1 1 0 0010 0A1 1 0 0010 55m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3-3V50m12-5a1 1 0 0010 0A1 1 0 0027 45m2 0a1 1 0 006 0 1 1 0 00-6 0m3 3v2m3-5h2m7 5a1 1 0 0010 0A1 1 0 0044 50m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m0 6v2M61 35a1 1 0 0010 0A1 1 0 0061 35m2 0a1 1 0 006 0 1 1 0 00-6 0m3-5v2m-5 3h2m15 6a1 1 0 0010 0A1 1 0 0078 41m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m6 0h2m7-27a1 1 0 0010 0A1 1 0 0095 14m2 0a1 1 0 006 0 1 1 0 00-6 0m-2 0h2m3 3v2`,stroke:q.value.donutEvolution.donuts.color,"stroke-width":q.value.donutEvolution.donuts.strokeWidth},null,8,Yn),f(`path`,{fill:`none`,d:`M19 52l8-7m10 0 7 4m8-3 10-8m9-2 7 4m8-3L97 18`,stroke:q.value.donutEvolution.axis.color,"stroke-width":q.value.donutEvolution.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Xn),f(`path`,{d:`M10 55h2c0-2 2-3 3-3V50c-2 0-5 2-5 5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Zn),f(`path`,{d:`M32 48v2c3 0 5-3 5-5H35c0 2-2 3-3 3`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,Qn),f(`path`,{d:`M49 53v2a1 1 0 000-10v2c4 0 4 6 0 6`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,$n),f(`path`,{d:`M63 35c0-2 2-3 3-3V30c-3 0-5 3-5 5h2`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,er),f(`path`,{d:`M78 41h2c0 4 6 4 6 0h2A1 1 0 0178 41`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,tr),f(`path`,{d:`M95 14h2c0 2 2 3 3 3v2c-2 0-5-2-5-5`,fill:q.value.donutEvolution.donuts.color,stroke:`none`,style:{opacity:`0.3`}},null,8,nr)],12,qn)):u(``,!0),J.value===`line`?(g(),d(`svg`,{key:27,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.line.axis.show?(g(),d(`g`,ir,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,ar),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.line.axis.color,"stroke-width":q.value.line.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,or)])):u(``,!0),f(`path`,{d:`M 9,60 22,50 35,55 48,36 61,40 74,25 87,26 90,12`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:q.value.line.path.color,"stroke-width":q.value.line.path.strokeWidth},null,8,sr),q.value.line.path.showPlots?(g(),d(`g`,cr,[f(`circle`,{cx:`9`,cy:`60`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,lr),f(`circle`,{cx:`90`,cy:`12`,r:q.value.line.path.strokeWidth,fill:q.value.line.path.color},null,8,ur)])):u(``,!0)],12,rr)):u(``,!0),J.value===`bar`?(g(),d(`svg`,{key:28,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.bar.axis.show?(g(),d(`g`,fr,[f(`line`,{x1:`3`,x2:`3`,y1:`3`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,pr),f(`line`,{x1:`3`,x2:`97`,y1:`67`,y2:`67`,stroke:q.value.bar.axis.color,"stroke-width":q.value.bar.axis.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,mr)])):u(``,!0),(g(!0),d(c,null,v(Ti.value,(e,t)=>(g(),d(`rect`,{fill:q.value.bar.color,rx:q.value.bar.borderRadius,x:6+11.2*t,y:e,width:q.value.bar.barWidth,height:67-e},null,8,hr))),256))],12,dr)):u(``,!0),J.value===`donut`?(g(),d(`svg`,{key:29,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 300 200 A 100 100 0 0 1 113 250`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:q.value.donut.color},null,8,_r),f(`path`,{d:` M 113 250 A 100 100 0 0 1 250 113`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(n)(q.value.donut.color,60)},null,8,vr),f(`path`,{d:` M 250 113 A 100 100 0 0 1 300 200`,fill:`none`,"stroke-width":q.value.donut.strokeWidth,stroke:y(n)(q.value.donut.color,30)},null,8,yr)],12,gr)):u(``,!0),J.value===`onion`?(g(),d(`svg`,{key:30,xmlns:y(a),width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 200 60 A 140 140 0 1 1 60 200`,stroke:q.value.onion.color,"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,xr),f(`path`,{d:` M 200 100 A 100 100 0 1 1 100 200`,stroke:y(n)(q.value.onion.color,60),"stroke-linecap":`round`,"stroke-width":`20`,fill:`none`},null,8,Sr),f(`path`,{d:` M 200 140 A 60 60 0 1 1 140 200`,fill:`none`,stroke:y(n)(q.value.onion.color,40),"stroke-linecap":`round`,"stroke-width":`20`},null,8,Cr)],12,br)):u(``,!0),J.value===`gauge`?(g(),d(`svg`,{key:31,width:`100%`,viewBox:`0 0 400 400`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:` M 82 255 A 120 120 0 1 1 318 255`,fill:`none`,stroke:q.value.gauge.color,"stroke-linecap":`round`,"stroke-width":`20`},null,8,wr),f(`circle`,{cx:`200`,cy:`256`,r:`12`,fill:q.value.gauge.color},null,8,Tr),f(`line`,{x1:`200`,y1:`256`,x2:`250`,y2:`160`,"stroke-width":`8`,stroke:q.value.gauge.color,"stroke-linecap":`round`},null,8,Er)],4)):u(``,!0),J.value===`quadrant`?(g(),d(`svg`,{key:32,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`line`,{x1:`50`,x2:`50`,y1:`3`,y2:`97`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,Or),f(`line`,{x1:`3`,x2:`97`,y1:`50`,y2:`50`,stroke:q.value.quadrant.grid.color,"stroke-width":q.value.quadrant.grid.strokeWidth},null,8,kr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`20`,cy:`20`},null,8,Ar),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`80`,cy:`60`},null,8,jr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`65`,cy:`55`},null,8,Mr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`36`,cy:`67`},null,8,Nr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`15`,cy:`75`},null,8,Pr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`40`,cy:`55`},null,8,Fr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`76`,cy:`32`},null,8,Ir),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`85`,cy:`26`},null,8,Lr),f(`circle`,{fill:q.value.quadrant.plots.color,r:q.value.quadrant.plots.radius,cx:`55`,cy:`46`},null,8,Rr)],12,Dr)):u(``,!0),J.value===`radar`?(g(),d(`svg`,{key:33,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`path`,{d:Ei.value,fill:`none`,stroke:q.value.radar.grid.color,"stroke-width":q.value.radar.grid.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Br),f(`path`,{d:Di.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Vr),f(`path`,{d:Oi.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Hr),f(`path`,{d:ki.value,fill:`none`,stroke:y(n)(q.value.radar.grid.color,70),"stroke-width":q.value.radar.grid.strokeWidth/2.5,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,Ur),f(`path`,{d:`M 9,50 91,50`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Wr),f(`path`,{d:`M 29.5,14.5 70.5 85.5`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Gr),f(`path`,{d:`M 29.5,85.5 70.5 14.5`,stroke:y(n)(q.value.radar.grid.color,50),"stroke-width":q.value.radar.grid.strokeWidth/2},null,8,Kr),f(`path`,{d:`M 34,23 68.5,18, 70,50 61.5,70 35,75.5 10,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(n)(q.value.radar.shapes.color,30)},null,8,qr),f(`path`,{d:`M 43.5,40 64.5,25, 84,50 55.5,60 29.5,85.5 25,50 Z`,stroke:`none`,"stroke-linejoin":`round`,fill:y(n)(q.value.radar.shapes.color,50)},null,8,Jr)],12,zr)):u(``,!0),J.value===`waffle`?(g(),d(`svg`,{key:34,xmlns:y(a),viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[f(`rect`,{x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,20),rx:`1`},null,8,Xr)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[t>2?(g(),d(`rect`,{key:0,x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,30),rx:`1`},null,8,Zr)):u(``,!0)])),64))])),64)),(g(),d(c,null,v(10,(e,t)=>f(`g`,null,[(g(),d(c,null,v(10,(e,r)=>f(`g`,null,[t>6?(g(),d(`rect`,{key:0,x:3+r*9.5,y:3+t*9.5,height:9,width:9,fill:y(n)(q.value.waffle.color,50),rx:`1`},null,8,Qr)):u(``,!0)])),64))])),64))],12,Yr)):u(``,!0),J.value===`table`?(g(),d(`svg`,{key:35,xmlns:y(a),width:`100%`,viewBox:`0 0 100 70`,style:h(`background:${q.value.backgroundColor}`)},[m(o),f(`rect`,{fill:y(n)(q.value.table.th.color,50),x:3.5,y:5,height:`10`,width:`93`},null,8,ei),f(`rect`,{fill:y(n)(q.value.table.th.color,50),x:3.5,y:15,height:`50`,width:`23.25`},null,8,ti),(g(),d(c,null,v(7,(e,t)=>f(`line`,{x1:`3.7`,x2:`96.3`,y1:5+t*10,y2:5+t*10,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ni)),64)),(g(),d(c,null,v(5,(e,t)=>f(`line`,{x1:3.5+t*23.25,x2:3.5+t*23.25,y1:`5`,y2:`65`,stroke:q.value.table.td.color,"stroke-width":q.value.table.td.strokeWidth,"stroke-linecap":`round`},null,8,ri)),64))],12,$r)):u(``,!0),J.value===`rating`?(g(),d(c,{key:36},[q.value.rating.useSmiley?(g(),d(`div`,{key:0,style:h(`display:flex;flex-direction:row;align-items:center;justify-content:center;width:${q.value.rating.maxWidth}px`)},[q.value.rating.filled?(g(),d(`svg`,{key:0,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[m(o),r[0]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ai)],12,ii)):(g(),d(`svg`,{key:1,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[1]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9.5 15.25a3.5 3.5 0 015 0" data-v-58349b71></path>`,5)]],12,oi)),q.value.rating.filled?(g(),d(`svg`,{key:2,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[2]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,ci)],12,si)):(g(),d(`svg`,{key:3,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[3]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9 15l6 0" data-v-58349b71></path>`,5)]],12,li)),q.value.rating.filled?(g(),d(`svg`,{key:4,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[4]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,di)],12,ui)):(g(),d(`svg`,{key:5,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[5]||=[f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M3 12a9 9 0 1018 0A9 9 0 103 12`},null,-1),f(`path`,{d:`M9 10l.01 0`},null,-1),f(`path`,{d:`M15 10l.01 0`},null,-1)]],12,fi)),q.value.rating.filled?(g(),d(`svg`,{key:6,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[6]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,mi)],12,pi)):(g(),d(`svg`,{key:7,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[7]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 10l.01 0" data-v-58349b71></path><path d="M15 10l.01 0" data-v-58349b71></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-58349b71></path>`,5)]],12,hi)),q.value.rating.filled?(g(),d(`svg`,{key:8,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[r[8]||=f(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`},null,-1),f(`path`,{d:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,"stroke-width":`0`,fill:q.value.rating.color},null,8,gi)],12,W)):(g(),d(`svg`,{key:9,xmlns:y(a),style:h(`width:${q.value.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:q.value.rating.color,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},[...r[9]||=[p(`<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-58349b71></path><path d="M3 12a9 9 0 1018 0A9 9 0 103 12" data-v-58349b71></path><path d="M9 9l.01 0" data-v-58349b71></path><path d="M15 9l.01 0" data-v-58349b71></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-58349b71></path>`,5)]],12,_i))],4)):(g(),d(`svg`,{key:1,xmlns:y(a),width:`100%`,viewBox:`0 0 100 30`,style:h(`background:${q.value.backgroundColor};max-width:${q.value.rating.maxWidth}px`)},[m(o),(g(),d(c,null,v(5,(e,n)=>f(`polygon`,{points:y(t)({plot:{x:10+n*20,y:15},radius:6}),fill:q.value.rating.filled?q.value.rating.color:`none`,stroke:q.value.rating.color,"stroke-width":q.value.rating.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,yi)),64))],12,vi))],64)):u(``,!0),J.value===`verticalBar`?(g(),d(`svg`,{key:37,xmlns:y(a),width:`100%`,viewBox:`0 0 100 100`,style:h(`background:${q.value.backgroundColor}`)},[m(o),q.value.verticalBar.axis.show?(g(),d(`g`,xi,[f(`line`,{x1:3,x2:3,y1:3,y2:97,stroke:q.value.verticalBar.axis.color,"stroke-width":q.value.verticalBar.axis.strokeWidth},null,8,Si)])):u(``,!0),(g(),d(c,null,v(6,(e,t)=>f(`rect`,{x:3,y:5+t*15.6,height:`12`,width:94-94*t/6,fill:q.value.verticalBar.color,rx:q.value.verticalBar.borderRadius},null,8,Ci)),64))],12,bi)):u(``,!0)],14,oe))}},[[`__scopeId`,`data-v-58349b71`]]);export{b as n,G as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{$ as n,Yt as r,at as i,i as a,t as o,zt as s}from"./lib-rPeBMZrn.js";import{n as c,t as l}from"./useHints-C-TwxM0Y.js";import{t as u}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as d}from"./useNestedProp-DnGoh-XS.js";import{t as f}from"./DefGrad-DKMq1REY.js";import{Fragment as p,computed as m,createCommentVNode as h,createElementBlock as g,createElementVNode as _,createTextVNode as v,createVNode as y,normalizeClass as b,normalizeStyle as x,onMounted as S,openBlock as C,ref as w,renderList as T,renderSlot as E,toDisplayString as D,unref as O,useSlots as k,watch as A,withCtx as j,withKeys as M}from"vue";var N=[`xmlns`,`stroke`],P=[`stroke`],F=[`xmlns`,`viewBox`,`stroke`],I=[`viewBox`,`stroke`],L=/*#__PURE__*/ u({__name:`BaseSmilingUnit`,props:{config:{type:Object},unit:{type:Number},currentRating:{type:Number},getActiveColor:{type:Function},calcShapeFill:{type:Function},isReadonly:{type:Boolean},hasBreakdown:{type:Boolean},hoveredValue:{type:Number},isCursorPointer:{type:Boolean}},emits:[`rate`,`mouseenter`,`mouseleave`],setup(e,{emit:t}){let n=e,i=t;return(t,a)=>(C(),g(`div`,{tabindex:`0`,class:b({"vue-ui-smiley-rated":!e.config.readonly&&e.currentRating===e.unit}),style:x({cursor:e.config.readonly?`default`:n.isCursorPointer?`pointer`:`default`,height:e.config.style.itemSize+`px`,aspectRatio:`1/1`,position:`relative`}),onMouseenter:a[0]||=e=>i(`mouseenter`),onMouseleave:a[1]||=e=>i(`mouseleave`),onClick:a[2]||=t=>i(`rate`,e.unit),onKeyup:a[3]||=M(t=>i(`rate`,e.unit),[`enter`])},[e.config.style.tooltip.show&&e.hasBreakdown&&e.isReadonly?(C(),g(`div`,{key:0,class:`vue-ui-rating-tooltip`,style:x({border:`1px solid ${e.config.style.tooltip.borderColor}`,position:`absolute`,top:`${e.config.style.tooltip.offsetY-48}px`,left:`50%`,transform:`translateX(-50%)`,width:`fit-content`,textAlign:`center`,background:e.config.style.tooltip.backgroundColor,display:e.hoveredValue===e.unit-1?`block`:`none`,padding:`2px 12px`,borderRadius:e.config.style.tooltip.borderRadius+`px`,boxShadow:e.config.style.tooltip.boxShadow})},[_(`div`,{style:x({width:`100%`,display:`flex`,flexDirection:`row`,gap:`6px`,position:`relative`,textAlign:`center`,color:e.config.style.tooltip.color})},[_(`span`,{style:x(`font-size:${e.config.style.tooltip.fontSize}px`)},D(e.unit)+`:`,5),_(`span`,{style:x(`font-weight:${e.config.style.tooltip.bold?`bold`:`normal`};font-size:${e.config.style.tooltip.fontSize}px`)},[E(t.$slots,`rating`,{},void 0,!0)],4),_(`div`,{style:x(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`)},` ▼ `,4)],4)],4)):h(``,!0),e.config.style.icons.filled?(C(),g(`svg`,{key:1,xmlns:O(o),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(f,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(r)(e.config.style.colors.active[e.unit-1],.05),1],[`100%`,e.config.style.colors.active[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled`,{},void 0,!0)],8,N)):(C(),g(`svg`,{key:2,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon`,{},void 0,!0)],8,P)),e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:3,xmlns:O(o),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(f,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(r)(e.config.style.colors.activeReadonly[e.unit-1],.05),1],[`100%`,e.config.style.colors.activeReadonly[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled-readonly`,{},void 0,!0)],8,F)):h(``,!0),!e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:4,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon-readonly`,{},void 0,!0)],8,I)):h(``,!0)],38))}},[[`__scopeId`,`data-v-9734e83c`]]),R=/* @__PURE__ */ e({default:()=>W}),z={key:0,class:`vue-ui-rating-title`,style:{width:`100%`}},B=[`d`,`fill`],V=[`d`],H=[`d`,`fill`],U=[`d`],W={__name:`vue-ui-smiley`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`rate`],setup(e,{expose:r,emit:o}){let{vue_ui_smiley:u}=t(),f=e,b=k(),E=o,O=w(null),M=w(W()),N=m(()=>M.value.style.rating),P=m(()=>M.value.style),F=m(()=>M.value.debug);S(()=>{b[`chart-background`]&&F.value&&console.warn(`VueUiSmiley does not support the #chart-background slot.`)});function I(){(!Object.hasOwn(f.dataset,`rating`)||s(f.dataset))&&i({componentName:`VueUiSmiley`,type:`datasetAttribute`,property:`rating`,debug:F.value})}S(I),c({config:()=>M.value,dataset:()=>[],component:`VueUiSmiley`,rules:[l.noHint]});let R=m(()=>M.value.useCursorPointer);function W(){return d({userConfig:f.config,defaultConfig:u})}A(()=>f.config,e=>{M.value=W(),J.value=M.value.readonly,I()},{deep:!0});let G=m(()=>{let e=f.dataset.rating;return e&&typeof e==`object`&&!Array.isArray(e)?X(e):e??null}),K=m(()=>typeof f.dataset.rating==`object`&&!Array.isArray(f.dataset.rating)),q=w(G.value);A(G,e=>{q.value=e});let J=w(M.value.readonly),Y=[{key:`smiley_0`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`},{key:`smiley_1`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`},{key:`smiley_2`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`},{key:`smiley_3`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`},{key:`smiley_4`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`}];function X(e){if(e==null)return null;let t=0,n=0;for(let r in e){let i=Number(r),a=e[r];Number.isFinite(i)&&(t+=i*a,n+=a)}return n===0?0:t/n}function Z(e){let t=q.value-e;switch(!0){case t<0:return 0;case t>1:return 24;default:return t*24}}function Q(e){return M.value.readonly?P.value.colors.inactive[e]:q.value===e+1||O.value!==null&&O.value===e?P.value.icons.useGradient&&P.value.icons.filled?`url(#vueUiSmiley${e})`:P.value.colors.active[e]:P.value.colors.inactive[e]}let $=m(()=>({value:e,tooltip:t=!1})=>a(t?P.value.tooltip.formatter:N.value.formatter,e,n({v:e,r:t?P.value.tooltip.roundingValue:N.value.roundingValue}),M.value));function ee(e){J.value||(q.value=e,E(`rate`,e))}function te(){return q.value}function ne(e=!0){J.value=e}return r({getData:te,toggleReadonly:ne}),(e,t)=>(C(),g(`div`,{class:`vue-data-ui-component vue-ui-smiley`,style:x(`background:${P.value.backgroundColor};font-family:${P.value.fontFamily};width:100%;`),onMouseleave:t[1]||=e=>O.value=void 0},[P.value.title.text?(C(),g(`div`,z,[_(`div`,{style:x(`color:${P.value.title.color};font-weight:${P.value.title.bold?`bold`:`normal`};text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.offsetY}px;font-size:${P.value.title.fontSize}px`)},D(P.value.title.text),5),P.value.title.subtitle.text?(C(),g(`div`,{key:0,style:x(`color:${P.value.title.subtitle.color};font-size:${P.value.title.subtitle.fontSize}px;text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.subtitle.offsetY}px;font-weight:${P.value.title.subtitle.bold?`bold`:`normal`}`)},D(P.value.title.subtitle.text),5)):h(``,!0)])):h(``,!0),N.value.show&&N.value.position===`top`?(C(),g(`div`,{key:1,style:x(`width:100%;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),_(`div`,{class:`vue-ui-smiley-wrapper`,style:x(`overflow:visible;height:${P.value.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[N.value.show&&N.value.position===`left`?(C(),g(`div`,{key:0,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-right:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),(C(),g(p,null,T(Y,(e,n)=>y(L,{key:e.key,config:M.value,unit:n+1,currentRating:q.value,isReadonly:J.value,hasBreakdown:K.value,hoveredValue:O.value,getActiveColor:Q,calcShapeFill:Z,isCursorPointer:R.value,onMouseenter:e=>O.value=n,onMouseleave:t[0]||=e=>O.value=null,onRate:e=>ee(n+1)},{rating:j(()=>[v(D($.value({value:f.dataset.rating[String(n+1)],tooltip:!0})),1)]),"path-icon-filled":j(()=>[_(`path`,{d:e.pathIconFilled,"stroke-width":`0`,fill:Q(n)},null,8,B)]),"path-icon":j(()=>[_(`path`,{d:e.pathIcon},null,8,V)]),"path-icon-filled-readonly":j(()=>[_(`path`,{d:e.pathIconFilledReadonly,"stroke-width":`0`,fill:P.value.icons.useGradient?`url(#vueUiSmiley${n})`:P.value.colors.activeReadonly[n]},null,8,H)]),"path-icon-readonly":j(()=>[_(`path`,{d:e.pathIconReadonly},null,8,U)]),_:2},1032,[`config`,`unit`,`currentRating`,`isReadonly`,`hasBreakdown`,`hoveredValue`,`isCursorPointer`,`onMouseenter`,`onRate`])),64)),N.value.show&&N.value.position===`right`?(C(),g(`div`,{key:1,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],4),N.value.show&&N.value.position===`bottom`?(C(),g(`div`,{key:2,style:x(`width:100%;text-align:center;margin-top:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],36))}};export{R as n,W as t};
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{$ as t,Yt as n,at as r,i,t as a,zt as o}from"./lib-rPeBMZrn.js";import{t as s}from"./useNestedProp-DnGoh-XS.js";import{n as c,t as l}from"./useHints-C-TwxM0Y.js";import{t as u}from"./useConfig-_JwRfIqE.js";import{t as d}from"./DefGrad-DKMq1REY.js";import{t as f}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as p,computed as m,createCommentVNode as h,createElementBlock as g,createElementVNode as _,createTextVNode as v,createVNode as y,normalizeClass as b,normalizeStyle as x,onMounted as S,openBlock as C,ref as w,renderList as T,renderSlot as E,toDisplayString as D,unref as O,useSlots as k,watch as A,withCtx as j,withKeys as M}from"vue";var N=[`xmlns`,`stroke`],P=[`stroke`],F=[`xmlns`,`viewBox`,`stroke`],I=[`viewBox`,`stroke`],L=/*#__PURE__*/ f({__name:`BaseSmilingUnit`,props:{config:{type:Object},unit:{type:Number},currentRating:{type:Number},getActiveColor:{type:Function},calcShapeFill:{type:Function},isReadonly:{type:Boolean},hasBreakdown:{type:Boolean},hoveredValue:{type:Number},isCursorPointer:{type:Boolean}},emits:[`rate`,`mouseenter`,`mouseleave`],setup(e,{emit:t}){let r=e,i=t;return(t,o)=>(C(),g(`div`,{tabindex:`0`,class:b({"vue-ui-smiley-rated":!e.config.readonly&&e.currentRating===e.unit}),style:x({cursor:e.config.readonly?`default`:r.isCursorPointer?`pointer`:`default`,height:e.config.style.itemSize+`px`,aspectRatio:`1/1`,position:`relative`}),onMouseenter:o[0]||=e=>i(`mouseenter`),onMouseleave:o[1]||=e=>i(`mouseleave`),onClick:o[2]||=t=>i(`rate`,e.unit),onKeyup:o[3]||=M(t=>i(`rate`,e.unit),[`enter`])},[e.config.style.tooltip.show&&e.hasBreakdown&&e.isReadonly?(C(),g(`div`,{key:0,class:`vue-ui-rating-tooltip`,style:x({border:`1px solid ${e.config.style.tooltip.borderColor}`,position:`absolute`,top:`${e.config.style.tooltip.offsetY-48}px`,left:`50%`,transform:`translateX(-50%)`,width:`fit-content`,textAlign:`center`,background:e.config.style.tooltip.backgroundColor,display:e.hoveredValue===e.unit-1?`block`:`none`,padding:`2px 12px`,borderRadius:e.config.style.tooltip.borderRadius+`px`,boxShadow:e.config.style.tooltip.boxShadow})},[_(`div`,{style:x({width:`100%`,display:`flex`,flexDirection:`row`,gap:`6px`,position:`relative`,textAlign:`center`,color:e.config.style.tooltip.color})},[_(`span`,{style:x(`font-size:${e.config.style.tooltip.fontSize}px`)},D(e.unit)+`:`,5),_(`span`,{style:x(`font-weight:${e.config.style.tooltip.bold?`bold`:`normal`};font-size:${e.config.style.tooltip.fontSize}px`)},[E(t.$slots,`rating`,{},void 0,!0)],4),_(`div`,{style:x(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`)},` ▼ `,4)],4)],4)):h(``,!0),e.config.style.icons.filled?(C(),g(`svg`,{key:1,xmlns:O(a),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(d,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(n)(e.config.style.colors.active[e.unit-1],.05),1],[`100%`,e.config.style.colors.active[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled`,{},void 0,!0)],8,N)):(C(),g(`svg`,{key:2,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:e.getActiveColor(e.unit-1),fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon`,{},void 0,!0)],8,P)),e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:3,xmlns:O(a),style:{transition:`all 0.1s ease-in-out`,position:`absolute`,top:`0`,left:`0`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[_(`defs`,null,[y(d,{t:`radial`,id:`vueUiSmiley${e.unit-1}`,stops:[[`0%`,O(n)(e.config.style.colors.activeReadonly[e.unit-1],.05),1],[`100%`,e.config.style.colors.activeReadonly[e.unit-1],1]]},null,8,[`id`,`stops`])]),E(t.$slots,`path-icon-filled-readonly`,{},void 0,!0)],8,F)):h(``,!0),!e.config.style.icons.filled&&e.isReadonly?(C(),g(`svg`,{key:4,style:{position:`absolute`,top:`0`,left:`0`,transition:`all 0.1s ease-in-out`},height:`100%`,viewBox:`0 0 ${e.calcShapeFill(e.unit-1)} 24`,"stroke-width":`1.5`,stroke:e.config.style.colors.activeReadonly[e.unit-1],fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[E(t.$slots,`path-icon-readonly`,{},void 0,!0)],8,I)):h(``,!0)],38))}},[[`__scopeId`,`data-v-9734e83c`]]),R=/* @__PURE__ */ e({default:()=>W}),z={key:0,class:`vue-ui-rating-title`,style:{width:`100%`}},B=[`d`,`fill`],V=[`d`],H=[`d`,`fill`],U=[`d`],W={__name:`vue-ui-smiley`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`rate`],setup(e,{expose:n,emit:a}){let{vue_ui_smiley:d}=u(),f=e,b=k(),E=a,O=w(null),M=w(W()),N=m(()=>M.value.style.rating),P=m(()=>M.value.style),F=m(()=>M.value.debug);S(()=>{b[`chart-background`]&&F.value&&console.warn(`VueUiSmiley does not support the #chart-background slot.`)});function I(){(!Object.hasOwn(f.dataset,`rating`)||o(f.dataset))&&r({componentName:`VueUiSmiley`,type:`datasetAttribute`,property:`rating`,debug:F.value})}S(I),c({config:()=>M.value,dataset:()=>[],component:`VueUiSmiley`,rules:[l.noHint]});let R=m(()=>M.value.useCursorPointer);function W(){return s({userConfig:f.config,defaultConfig:d})}A(()=>f.config,e=>{M.value=W(),J.value=M.value.readonly,I()},{deep:!0});let G=m(()=>{let e=f.dataset.rating;return e&&typeof e==`object`&&!Array.isArray(e)?X(e):e??null}),K=m(()=>typeof f.dataset.rating==`object`&&!Array.isArray(f.dataset.rating)),q=w(G.value);A(G,e=>{q.value=e});let J=w(M.value.readonly),Y=[{key:`smiley_0`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-5 9.86a4.5 4.5 0 00-3.214 1.35 1 1 0 101.428 1.4 2.5 2.5 0 013.572 0 1 1 0 001.428-1.4A4.5 4.5 0 0012 13.2zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15.25a3.5 3.5 0 015 0`},{key:`smiley_1`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 14H9l-.117.007a1 1 0 000 1.986L9 16h6l.117-.007a1 1 0 000-1.986L15 14zm-5.99-5-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9 15h6`},{key:`smiley_2`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM9.01 9l-.127.007a1 1 0 000 1.986L9 11l.127-.007a1 1 0 000-1.986L9.01 9zm6 0-.127.007a1 1 0 000 1.986L15 11l.127-.007a1 1 0 000-1.986L15.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01`},{key:`smiley_3`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zm-1.8 10.946a1 1 0 00-1.414.014 2.5 2.5 0 01-3.572 0 1 1 0 00-1.428 1.4 4.5 4.5 0 006.428 0 1 1 0 00-.014-1.414zM9.01 9l-.127.007A1 1 0 009 11l.127-.007A1 1 0 009.01 9zm6 0-.127.007A1 1 0 0015 11l.127-.007A1 1 0 0015.01 9z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12m6-2h.01M15 10h.01M9.5 15a3.5 3.5 0 005 0`},{key:`smiley_4`,pathIconFilled:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIcon:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`,pathIconFilledReadonly:`M17 3.34A10 10 0 112.005 12.324L2 12l.005-.324A10 10 0 0117 3.34zM15 13H9a1 1 0 00-1 1v.05a3.975 3.975 0 003.777 3.97l.227.005a4.026 4.026 0 003.99-3.79l.006-.206A1 1 0 0015 13zm-5.99-5-.127.007A1 1 0 009 10l.127-.007A1 1 0 009.01 8zm6 0-.127.007A1 1 0 0015 10l.127-.007A1 1 0 0015.01 8z`,pathIconReadonly:`M3 12a9 9 0 1018 0A9 9 0 103 12M9 9h.01M15 9h.01M8 13a4 4 0 108 0H8`}];function X(e){if(e==null)return null;let t=0,n=0;for(let r in e){let i=Number(r),a=e[r];Number.isFinite(i)&&(t+=i*a,n+=a)}return n===0?0:t/n}function Z(e){let t=q.value-e;switch(!0){case t<0:return 0;case t>1:return 24;default:return t*24}}function Q(e){return M.value.readonly?P.value.colors.inactive[e]:q.value===e+1||O.value!==null&&O.value===e?P.value.icons.useGradient&&P.value.icons.filled?`url(#vueUiSmiley${e})`:P.value.colors.active[e]:P.value.colors.inactive[e]}let $=m(()=>({value:e,tooltip:n=!1})=>i(n?P.value.tooltip.formatter:N.value.formatter,e,t({v:e,r:n?P.value.tooltip.roundingValue:N.value.roundingValue}),M.value));function ee(e){J.value||(q.value=e,E(`rate`,e))}function te(){return q.value}function ne(e=!0){J.value=e}return n({getData:te,toggleReadonly:ne}),(e,t)=>(C(),g(`div`,{class:`vue-data-ui-component vue-ui-smiley`,style:x(`background:${P.value.backgroundColor};font-family:${P.value.fontFamily};width:100%;`),onMouseleave:t[1]||=e=>O.value=void 0},[P.value.title.text?(C(),g(`div`,z,[_(`div`,{style:x(`color:${P.value.title.color};font-weight:${P.value.title.bold?`bold`:`normal`};text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.offsetY}px;font-size:${P.value.title.fontSize}px`)},D(P.value.title.text),5),P.value.title.subtitle.text?(C(),g(`div`,{key:0,style:x(`color:${P.value.title.subtitle.color};font-size:${P.value.title.subtitle.fontSize}px;text-align:${P.value.title.textAlign};margin-bottom:${P.value.title.subtitle.offsetY}px;font-weight:${P.value.title.subtitle.bold?`bold`:`normal`}`)},D(P.value.title.subtitle.text),5)):h(``,!0)])):h(``,!0),N.value.show&&N.value.position===`top`?(C(),g(`div`,{key:1,style:x(`width:100%;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),_(`div`,{class:`vue-ui-smiley-wrapper`,style:x(`overflow:visible;height:${P.value.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[N.value.show&&N.value.position===`left`?(C(),g(`div`,{key:0,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-right:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0),(C(),g(p,null,T(Y,(e,n)=>y(L,{key:e.key,config:M.value,unit:n+1,currentRating:q.value,isReadonly:J.value,hasBreakdown:K.value,hoveredValue:O.value,getActiveColor:Q,calcShapeFill:Z,isCursorPointer:R.value,onMouseenter:e=>O.value=n,onMouseleave:t[0]||=e=>O.value=null,onRate:e=>ee(n+1)},{rating:j(()=>[v(D($.value({value:f.dataset.rating[String(n+1)],tooltip:!0})),1)]),"path-icon-filled":j(()=>[_(`path`,{d:e.pathIconFilled,"stroke-width":`0`,fill:Q(n)},null,8,B)]),"path-icon":j(()=>[_(`path`,{d:e.pathIcon},null,8,V)]),"path-icon-filled-readonly":j(()=>[_(`path`,{d:e.pathIconFilledReadonly,"stroke-width":`0`,fill:P.value.icons.useGradient?`url(#vueUiSmiley${n})`:P.value.colors.activeReadonly[n]},null,8,H)]),"path-icon-readonly":j(()=>[_(`path`,{d:e.pathIconReadonly},null,8,U)]),_:2},1032,[`config`,`unit`,`currentRating`,`isReadonly`,`hasBreakdown`,`hoveredValue`,`isCursorPointer`,`onMouseenter`,`onRate`])),64)),N.value.show&&N.value.position===`right`?(C(),g(`div`,{key:1,style:x(`width:fit-content;text-align:center;margin-bottom:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};padding-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],4),N.value.show&&N.value.position===`bottom`?(C(),g(`div`,{key:2,style:x(`width:100%;text-align:center;margin-top:${N.value.offsetY}px;font-size:${N.value.fontSize}px;font-weight:${N.value.bold?`bold`:`normal`};margin-left:${N.value.offsetX}px`)},D($.value({value:q.value})),5)):h(``,!0)],36))}};export{R as n,W as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{$ as n,Jt as r,Mt as i,P as a,X as ee,at as te,b as o,g as ne,i as re,in as ie,t as ae,zt as s}from"./lib-rPeBMZrn.js";import{n as oe,t as se}from"./BaseScanner-8NdoBs7B.js";import{n as ce,t as le}from"./useHints-C-TwxM0Y.js";import{t as c}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ue}from"./resolveChartConfig-CIhClE5R.js";import{c as de}from"./canvas-lib-22VpOI4_.js";import{t as fe}from"./useResponsive-CENUxfEL.js";import{t as pe}from"./DefGrad-DKMq1REY.js";import{t as me}from"./usePrefersMotion-XLHwega2.js";import{t as he}from"./useFitSvgText-C1QC4P5G.js";import{t as ge}from"./vue_ui_spark_trend-BOM3zo64.js";import{computed as l,createBlock as _e,createCommentVNode as u,createElementBlock as d,createElementVNode as ve,createVNode as ye,defineAsyncComponent as be,nextTick as xe,normalizeStyle as Se,onMounted as Ce,openBlock as f,ref as p,renderSlot as m,toDisplayString as h,toRefs as we,unref as g,watch as _}from"vue";var Te=/* @__PURE__ */ e({default:()=>v}),Ee=[`id`,`aria-describedby`],De=[`id`],Oe=[`xmlns`,`viewBox`],ke=[`width`,`height`],Ae={key:1},je=[`d`,`fill`],Me=[`d`,`fill`],Ne=[`d`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`],Pe=[`d`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`],Fe=[`d`],Ie=[`fill`,`d`],Le=[`x`,`y`,`width`,`height`],Re=[`x`,`y`,`fill`,`font-size`,`font-weight`],ze=[`stroke`,`cx`,`cy`,`fill`],Be=[`x`,`y`,`font-size`,`fill`,`font-weight`],v=/*#__PURE__*/ c({__name:`vue-ui-spark-trend`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(e){let c=be(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),{vue_ui_spark_trend:Te}=t(),v=me(),y=e,b=p(null),Ve=p(null),x=p(null),S=p(null),C=p(null),w=p(!1),T=p(null),E=p(ee()),D=p(I()),O=l(()=>D.value.style.dataLabel),k=l(()=>D.value.style.trendLabel),A=l(()=>D.value.style.line),j=l(()=>D.value.style.area),M=l(()=>D.value.style);ce({config:()=>D.value,dataset:()=>y.dataset,component:`VueUiSparkTrend`,rules:[le.emptyArray,{test:e=>e.length>1095,message:[`👀 The dataset has > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted.`]}]});let He=l(()=>ie({defaultConfig:{style:{animation:{show:!1},backgroundColor:`#99999930`,line:{stroke:`#6A6A6A`,useColorTrend:!1},dataLabel:{show:!1,useColorTrend:!1,color:`#6A6A6A`}}},userConfig:D.value.skeletonConfig??{}})),{loading:N,FINAL_DATASET:P,manualLoading:F}=oe({...we(y),FINAL_CONFIG:D,prepareConfig:I,skeletonDataset:y.config?.skeletonDataset??[1,2,3,5,8,13,21,34,55,89,144,233],skeletonConfig:ie({defaultConfig:D.value,userConfig:He.value})});function I(){return ue(y.config,Te,ge)}let L=l(()=>i({data:P.value,threshold:D.value.downsample.threshold}));_(()=>y.config,e=>{D.value=I(),H.value=M.value.width,U.value=M.value.height,V()},{deep:!0});function R(e){return e.map(e=>o(e))}let z=p(i({data:P.value,threshold:D.value.downsample.threshold}).map(e=>M.value.animation.show&&!v.value||[void 0,1/0,-1/0,null,NaN].includes(e)?null:e));_(L,e=>{T.value&&=(cancelAnimationFrame(T.value),null),M.value.animation.show&&!v.value?z.value=Array(e.length).fill(null):z.value=e.map(e=>![void 0,1/0,-1/0,null].includes(e)&&!Number.isNaN(e)?e:null),B(),xe(()=>$(`.vue-ui-sparktrend-progress-label`,6))},{deep:!0,immediate:!0}),_(()=>JSON.stringify(y.dataset),()=>{T.value&&=(cancelAnimationFrame(T.value),null),F.value=s(y.dataset);let e=L.value;z.value=M.value.animation.show&&!v.value?Array(e.length).fill(null):e.map(e=>Number.isFinite(e)?e:null),B(),xe(()=>$(`.vue-ui-sparktrend-progress-label`,6))},{deep:!1,immediate:!0});function B(){let e=1e3/M.value.animation.animationFrames,t=performance.now();if(!N.value&&M.value.animation.show&&!v.value&&M.value.animation.animationFrames&&P.value.length>1){z.value=[];let n=0;function r(){w.value=!0;let i=performance.now(),a=i-t;a>e?(t=i-a%e,n<L.value.length?(z.value.push(L.value[n]),n+=1,T.value=requestAnimationFrame(r)):(cancelAnimationFrame(T.value),z.value=R(L.value),w.value=!1,$(`.vue-ui-sparktrend-progress-label`,6))):T.value=requestAnimationFrame(r)}r()}}Ce(()=>{V()});let Ue=l(()=>D.value.debug);function V(){if(s(y.dataset)&&(te({componentName:`VueUiSparkTrend`,type:`dataset`,debug:Ue.value}),F.value=!0),s(y.dataset)||(F.value=!1),D.value.responsive){let e=de(()=>{let{width:e,height:t}=fe({chart:b.value,source:x.value});requestAnimationFrame(()=>{H.value=e,U.value=t})});S.value&&(C.value&&S.value.unobserve(C.value),S.value.disconnect()),S.value=new ResizeObserver(e),C.value=b.value.parentNode,S.value.observe(C.value)}B(),$(`.vue-ui-sparktrend-progress-label`,6)}let H=p(M.value.width),U=p(M.value.height),W=l(()=>({height:U.value,width:H.value})),G=l(()=>({top:M.value.padding.top,left:M.value.padding.left,right:W.value.width-M.value.padding.right,bottom:W.value.height-M.value.padding.bottom,height:W.value.height-(M.value.padding.top+M.value.padding.bottom)-(O.value.show?O.value.fontSize:0),width:W.value.width-(M.value.padding.left+M.value.padding.right)})),K=l(()=>{let e=R(L.value).filter(Number.isFinite);if(!e.length)return{max:0,min:0};let t=e[0],n=e[0];for(let r=1;r<e.length;r++){let i=e[r];i>t&&(t=i),i<n&&(n=i)}return{max:t,min:n}}),We=l(()=>{let e=L.value,t=e.length?e[e.length-1]:`x`;return[E.value,e.length,Number.isFinite(t)?t:`x`,D.value.downsample.threshold,A.value.smooth?`s`:`l`].join(`-`)}),q=l(()=>{let e=K.value.min>=0?0:K.value.min;return Math.abs(e)}),Ge=l(()=>K.value.max+q.value);function Ke(e){return e/Ge.value}let qe=l(()=>L.value.length),J=l(()=>z.value.map((e,t)=>{let n=isNaN(e)||[void 0,null,`NaN`,NaN,1/0,-1/0].includes(e)?0:e||0;return{value:o(e),absoluteValue:o(n),plotValue:o(n+q.value),toMax:Ke(n+q.value),x:G.value.left+o(t*(G.value.width/(qe.value-1)))-M.value.padding.right,y:G.value.bottom-o(G.value.height*Ke(n+q.value))}})),Y=l(()=>{let e=R(L.value);return k.value.trendType===`global`?ne(e):k.value.trendType===`n-1`&&e.length>1?(e.at(-1)/e.at(-2)-1)*100:k.value.trendType===`lastToFirst`?(e.at(-1)/e[0]-1)*100:0}),X=l(()=>w.value||Y.value===0?`neutral`:Y.value>0?`positive`:`negative`),Z=l(()=>M.value.arrow.colors[X.value]),Je=l(()=>{let e={x:J.value[0].x,y:W.value.height-6},t={x:J.value[J.value.length-1].x,y:W.value.height-6},n=[];return J.value.forEach(e=>{n.push(`${e.x},${e.y} `)}),[e.x,e.y,...n,t.x,t.y].toString()}),Ye=l(()=>{let e=[];return J.value.forEach(t=>{e.push(`${t.x},${t.y} `)}),`M ${e.toString()}`}),Q=l(()=>U.value/2-k.value.fontSize),Xe=l(()=>G.value.left*.8),{fitText:$}=he({svgRef:Ve,unitWidth:Xe,fontSize:k.value.fontSize}),Ze=l(()=>{if(N.value||w.value)return`Trend chart loading`;let e=J.value?.at(-1),t=e?.value,r=n({p:Y.value>0?`+`:``,v:Y.value,s:`%`,r:k.value.rounding}),i=t==null?`not available`:re(O.value.formatter,t,n({p:O.value.prefix,v:t,s:O.value.suffix,r:O.value.rounding}),{datapoint:e});return`Progression ${X.value===`positive`?`up ${r}`:X.value===`negative`?`down ${r}`:`stable at ${r}`}. Last value ${i}.`}),Qe=l(()=>`sparktrend-a11y-${E.value}`);return(e,t)=>(f(),d(`div`,{ref_key:`sparkTrendChart`,ref:b,class:`vue-data-ui-component vue-ui-spark-trend`,id:E.value,style:Se(`width:100%;font-family:${M.value.fontFamily};background:${M.value.backgroundColor}`),role:`img`,"aria-describedby":Qe.value},[ve(`p`,{id:Qe.value,class:`sr-only`,"aria-live":`polite`},h(Ze.value),9,De),(f(),d(`svg`,{key:We.value,ref_key:`svgRef`,ref:Ve,xmlns:g(ae),viewBox:`0 0 ${W.value.width} ${W.value.height}`,style:`width:100%;background:transparent;overflow:visible`,"aria-hidden":`true`},[ye(g(c)),e.$slots[`chart-background`]?(f(),d(`foreignObject`,{key:0,x:0,y:0,width:W.value.width<=0?10:W.value.width,height:W.value.height<=0?10:W.value.height,style:{pointerEvents:`none`}},[m(e.$slots,`chart-background`,{},void 0,!0)],8,ke)):u(``,!0),ve(`defs`,null,[ye(pe,{t:`linear`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,id:`pill_gradient_${E.value}`,stops:[[`0%`,g(r)(A.value.useColorTrend?Z.value:A.value.stroke,j.value.opacity),1],[`100%`,M.value.backgroundColor,1]]},null,8,[`id`,`stops`])]),j.value.show&&J.value[0]?(f(),d(`g`,Ae,[A.value.smooth?(f(),d(`path`,{key:0,d:`M ${J.value[0].x},${G.value.bottom} ${g(a)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,fill:j.value.useGradient?`url(#pill_gradient_${E.value})`:g(r)(A.value.useColorTrend?Z.value:A.value.stroke,j.value.opacity),stroke:`none`},null,8,je)):(f(),d(`path`,{key:1,d:`M${Je.value}Z`,fill:j.value.useGradient?`url(#pill_gradient_${E.value})`:g(r)(A.value.useColorTrend?Z.value:A.value.stroke,j.value.opacity),stroke:`none`},null,8,Me))])):u(``,!0),A.value.smooth&&J.value.length?(f(),d(`path`,{key:2,d:`M ${g(a)(J.value)}`,stroke:A.value.useColorTrend?Z.value:A.value.stroke,fill:`none`,"stroke-width":A.value.strokeWidth,"stroke-linecap":A.value.strokeLinecap,"stroke-linejoin":A.value.strokeLinejoin},null,8,Ne)):u(``,!0),!A.value.smooth&&J.value.length?(f(),d(`path`,{key:3,d:Ye.value,stroke:A.value.useColorTrend?Z.value:A.value.stroke,fill:`none`,"stroke-width":A.value.strokeWidth,"stroke-linecap":A.value.strokeLinecap,"stroke-linejoin":A.value.strokeLinejoin},null,8,Pe)):u(``,!0),g(N)?(f(),d(`path`,{key:4,fill:`#6A6A6A`,d:`M ${G.value.left/2+6}, ${Q.value+7} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2-7}, ${Q.value+14} Z`},null,8,Fe)):(f(),d(`path`,{key:5,fill:Z.value,d:X.value===`positive`?`M ${G.value.left/2}, ${Q.value} ${G.value.left/2-7}, ${Q.value+12} ${G.value.left/2+7}, ${Q.value+12} Z`:X.value===`negative`?`M ${G.value.left/2}, ${Q.value+12} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2+7}, ${Q.value} Z`:`M ${G.value.left/2+6}, ${Q.value+7} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2-7}, ${Q.value+14} Z`},null,8,Ie)),g(N)?(f(),d(`rect`,{key:6,x:G.value.left/2-k.value.fontSize-2,y:U.value/2+k.value.fontSize-2,width:k.value.fontSize*2,height:k.value.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,Le)):u(``,!0),!w.value&&!g(N)?(f(),d(`text`,{key:7,class:`vue-ui-sparktrend-progress-label`,x:G.value.left/2,y:U.value/2+k.value.fontSize*2,"text-anchor":`middle`,fill:k.value.useColorTrend?Z.value:k.value.color,"font-size":k.value.fontSize,"font-weight":k.value.bold?`bold`:`normal`},h(g(n)({p:Y.value>0?`+`:``,v:Y.value,s:`%`,r:k.value.rounding})),9,Re)):u(``,!0),J.value.length&&J.value.at(-1).x!==void 0?(f(),d(`circle`,{key:8,stroke:M.value.backgroundColor,"stroke-width":2,cx:J.value.at(-1).x,cy:J.value.at(-1).y,r:4,fill:g(N)?`#6A6A6A`:Z.value},null,8,ze)):u(``,!0),J.value.length&&J.value.at(-1).x!==void 0&&O.value.show?(f(),d(`text`,{key:9,"text-anchor":`middle`,x:J.value.at(-1).x,y:J.value.at(-1).y-O.value.fontSize/1.5,"font-size":O.value.fontSize,fill:O.value.useColorTrend?Z.value:O.value.color,"font-weight":O.value.bold?`bold`:`normal`},h(g(re)(O.value.formatter,J.value.at(-1).value,g(n)({p:O.value.prefix,v:J.value.at(-1).value,s:O.value.suffix,r:O.value.rounding}),{datapoint:J.value.at(-1)})),9,Be)):u(``,!0)],8,Oe)),e.$slots.source?(f(),d(`div`,{key:0,ref_key:`source`,ref:x,dir:`auto`},[m(e.$slots,`source`,{},void 0,!0)],512)):u(``,!0),m(e.$slots,`skeleton`,{},()=>[g(N)?(f(),_e(se,{key:0})):u(``,!0)],!0)],12,Ee))}},[[`__scopeId`,`data-v-814f1b0f`]]);export{Te as n,v as t};
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./resolveChartConfig-0IvbmIE_.js";import{$ as n,Jt as r,Mt as i,P as a,X as ee,at as te,b as o,g as ne,i as re,in as ie,t as ae,zt as s}from"./lib-rPeBMZrn.js";import{c as oe}from"./canvas-lib-22VpOI4_.js";import{n as se,t as ce}from"./useHints-C-TwxM0Y.js";import{t as le}from"./useConfig-_JwRfIqE.js";import{n as ue,t as de}from"./BaseScanner-8NdoBs7B.js";import{t as fe}from"./useFitSvgText-C1QC4P5G.js";import{t as pe}from"./useResponsive-CENUxfEL.js";import{t as me}from"./usePrefersMotion-XLHwega2.js";import{t as he}from"./vue_ui_spark_trend-BgPQfeCz.js";import{t as ge}from"./DefGrad-DKMq1REY.js";import{t as c}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{computed as l,createBlock as _e,createCommentVNode as u,createElementBlock as d,createElementVNode as ve,createVNode as ye,defineAsyncComponent as be,nextTick as xe,normalizeStyle as Se,onMounted as Ce,openBlock as f,ref as p,renderSlot as m,toDisplayString as h,toRefs as we,unref as g,watch as _}from"vue";var Te=/* @__PURE__ */ e({default:()=>v}),Ee=[`id`,`aria-describedby`],De=[`id`],Oe=[`xmlns`,`viewBox`],ke=[`width`,`height`],Ae={key:1},je=[`d`,`fill`],Me=[`d`,`fill`],Ne=[`d`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`],Pe=[`d`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`],Fe=[`d`],Ie=[`fill`,`d`],Le=[`x`,`y`,`width`,`height`],Re=[`x`,`y`,`fill`,`font-size`,`font-weight`],ze=[`stroke`,`cx`,`cy`,`fill`],Be=[`x`,`y`,`font-size`,`fill`,`font-weight`],v=/*#__PURE__*/ c({__name:`vue-ui-spark-trend`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(e){let c=be(()=>import(`./PackageVersion-ksOit8fp.js`).then(e=>e.t)),{vue_ui_spark_trend:Te}=le(),v=me(),y=e,b=p(null),Ve=p(null),x=p(null),S=p(null),C=p(null),w=p(!1),T=p(null),E=p(ee()),D=p(I()),O=l(()=>D.value.style.dataLabel),k=l(()=>D.value.style.trendLabel),A=l(()=>D.value.style.line),j=l(()=>D.value.style.area),M=l(()=>D.value.style);se({config:()=>D.value,dataset:()=>y.dataset,component:`VueUiSparkTrend`,rules:[ce.emptyArray,{test:e=>e.length>1095,message:[`👀 The dataset has > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted.`]}]});let He=l(()=>ie({defaultConfig:{style:{animation:{show:!1},backgroundColor:`#99999930`,line:{stroke:`#6A6A6A`,useColorTrend:!1},dataLabel:{show:!1,useColorTrend:!1,color:`#6A6A6A`}}},userConfig:D.value.skeletonConfig??{}})),{loading:N,FINAL_DATASET:P,manualLoading:F}=ue({...we(y),FINAL_CONFIG:D,prepareConfig:I,skeletonDataset:y.config?.skeletonDataset??[1,2,3,5,8,13,21,34,55,89,144,233],skeletonConfig:ie({defaultConfig:D.value,userConfig:He.value})});function I(){return t(y.config,Te,he)}let L=l(()=>i({data:P.value,threshold:D.value.downsample.threshold}));_(()=>y.config,e=>{D.value=I(),H.value=M.value.width,U.value=M.value.height,V()},{deep:!0});function R(e){return e.map(e=>o(e))}let z=p(i({data:P.value,threshold:D.value.downsample.threshold}).map(e=>M.value.animation.show&&!v.value||[void 0,1/0,-1/0,null,NaN].includes(e)?null:e));_(L,e=>{T.value&&=(cancelAnimationFrame(T.value),null),M.value.animation.show&&!v.value?z.value=Array(e.length).fill(null):z.value=e.map(e=>![void 0,1/0,-1/0,null].includes(e)&&!Number.isNaN(e)?e:null),B(),xe(()=>$(`.vue-ui-sparktrend-progress-label`,6))},{deep:!0,immediate:!0}),_(()=>JSON.stringify(y.dataset),()=>{T.value&&=(cancelAnimationFrame(T.value),null),F.value=s(y.dataset);let e=L.value;z.value=M.value.animation.show&&!v.value?Array(e.length).fill(null):e.map(e=>Number.isFinite(e)?e:null),B(),xe(()=>$(`.vue-ui-sparktrend-progress-label`,6))},{deep:!1,immediate:!0});function B(){let e=1e3/M.value.animation.animationFrames,t=performance.now();if(!N.value&&M.value.animation.show&&!v.value&&M.value.animation.animationFrames&&P.value.length>1){z.value=[];let n=0;function r(){w.value=!0;let i=performance.now(),a=i-t;a>e?(t=i-a%e,n<L.value.length?(z.value.push(L.value[n]),n+=1,T.value=requestAnimationFrame(r)):(cancelAnimationFrame(T.value),z.value=R(L.value),w.value=!1,$(`.vue-ui-sparktrend-progress-label`,6))):T.value=requestAnimationFrame(r)}r()}}Ce(()=>{V()});let Ue=l(()=>D.value.debug);function V(){if(s(y.dataset)&&(te({componentName:`VueUiSparkTrend`,type:`dataset`,debug:Ue.value}),F.value=!0),s(y.dataset)||(F.value=!1),D.value.responsive){let e=oe(()=>{let{width:e,height:t}=pe({chart:b.value,source:x.value});requestAnimationFrame(()=>{H.value=e,U.value=t})});S.value&&(C.value&&S.value.unobserve(C.value),S.value.disconnect()),S.value=new ResizeObserver(e),C.value=b.value.parentNode,S.value.observe(C.value)}B(),$(`.vue-ui-sparktrend-progress-label`,6)}let H=p(M.value.width),U=p(M.value.height),W=l(()=>({height:U.value,width:H.value})),G=l(()=>({top:M.value.padding.top,left:M.value.padding.left,right:W.value.width-M.value.padding.right,bottom:W.value.height-M.value.padding.bottom,height:W.value.height-(M.value.padding.top+M.value.padding.bottom)-(O.value.show?O.value.fontSize:0),width:W.value.width-(M.value.padding.left+M.value.padding.right)})),K=l(()=>{let e=R(L.value).filter(Number.isFinite);if(!e.length)return{max:0,min:0};let t=e[0],n=e[0];for(let r=1;r<e.length;r++){let i=e[r];i>t&&(t=i),i<n&&(n=i)}return{max:t,min:n}}),We=l(()=>{let e=L.value,t=e.length?e[e.length-1]:`x`;return[E.value,e.length,Number.isFinite(t)?t:`x`,D.value.downsample.threshold,A.value.smooth?`s`:`l`].join(`-`)}),q=l(()=>{let e=K.value.min>=0?0:K.value.min;return Math.abs(e)}),Ge=l(()=>K.value.max+q.value);function Ke(e){return e/Ge.value}let qe=l(()=>L.value.length),J=l(()=>z.value.map((e,t)=>{let n=isNaN(e)||[void 0,null,`NaN`,NaN,1/0,-1/0].includes(e)?0:e||0;return{value:o(e),absoluteValue:o(n),plotValue:o(n+q.value),toMax:Ke(n+q.value),x:G.value.left+o(t*(G.value.width/(qe.value-1)))-M.value.padding.right,y:G.value.bottom-o(G.value.height*Ke(n+q.value))}})),Y=l(()=>{let e=R(L.value);return k.value.trendType===`global`?ne(e):k.value.trendType===`n-1`&&e.length>1?(e.at(-1)/e.at(-2)-1)*100:k.value.trendType===`lastToFirst`?(e.at(-1)/e[0]-1)*100:0}),X=l(()=>w.value||Y.value===0?`neutral`:Y.value>0?`positive`:`negative`),Z=l(()=>M.value.arrow.colors[X.value]),Je=l(()=>{let e={x:J.value[0].x,y:W.value.height-6},t={x:J.value[J.value.length-1].x,y:W.value.height-6},n=[];return J.value.forEach(e=>{n.push(`${e.x},${e.y} `)}),[e.x,e.y,...n,t.x,t.y].toString()}),Ye=l(()=>{let e=[];return J.value.forEach(t=>{e.push(`${t.x},${t.y} `)}),`M ${e.toString()}`}),Q=l(()=>U.value/2-k.value.fontSize),Xe=l(()=>G.value.left*.8),{fitText:$}=fe({svgRef:Ve,unitWidth:Xe,fontSize:k.value.fontSize}),Ze=l(()=>{if(N.value||w.value)return`Trend chart loading`;let e=J.value?.at(-1),t=e?.value,r=n({p:Y.value>0?`+`:``,v:Y.value,s:`%`,r:k.value.rounding}),i=t==null?`not available`:re(O.value.formatter,t,n({p:O.value.prefix,v:t,s:O.value.suffix,r:O.value.rounding}),{datapoint:e});return`Progression ${X.value===`positive`?`up ${r}`:X.value===`negative`?`down ${r}`:`stable at ${r}`}. Last value ${i}.`}),Qe=l(()=>`sparktrend-a11y-${E.value}`);return(e,t)=>(f(),d(`div`,{ref_key:`sparkTrendChart`,ref:b,class:`vue-data-ui-component vue-ui-spark-trend`,id:E.value,style:Se(`width:100%;font-family:${M.value.fontFamily};background:${M.value.backgroundColor}`),role:`img`,"aria-describedby":Qe.value},[ve(`p`,{id:Qe.value,class:`sr-only`,"aria-live":`polite`},h(Ze.value),9,De),(f(),d(`svg`,{key:We.value,ref_key:`svgRef`,ref:Ve,xmlns:g(ae),viewBox:`0 0 ${W.value.width} ${W.value.height}`,style:`width:100%;background:transparent;overflow:visible`,"aria-hidden":`true`},[ye(g(c)),e.$slots[`chart-background`]?(f(),d(`foreignObject`,{key:0,x:0,y:0,width:W.value.width<=0?10:W.value.width,height:W.value.height<=0?10:W.value.height,style:{pointerEvents:`none`}},[m(e.$slots,`chart-background`,{},void 0,!0)],8,ke)):u(``,!0),ve(`defs`,null,[ye(ge,{t:`linear`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,id:`pill_gradient_${E.value}`,stops:[[`0%`,g(r)(A.value.useColorTrend?Z.value:A.value.stroke,j.value.opacity),1],[`100%`,M.value.backgroundColor,1]]},null,8,[`id`,`stops`])]),j.value.show&&J.value[0]?(f(),d(`g`,Ae,[A.value.smooth?(f(),d(`path`,{key:0,d:`M ${J.value[0].x},${G.value.bottom} ${g(a)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,fill:j.value.useGradient?`url(#pill_gradient_${E.value})`:g(r)(A.value.useColorTrend?Z.value:A.value.stroke,j.value.opacity),stroke:`none`},null,8,je)):(f(),d(`path`,{key:1,d:`M${Je.value}Z`,fill:j.value.useGradient?`url(#pill_gradient_${E.value})`:g(r)(A.value.useColorTrend?Z.value:A.value.stroke,j.value.opacity),stroke:`none`},null,8,Me))])):u(``,!0),A.value.smooth&&J.value.length?(f(),d(`path`,{key:2,d:`M ${g(a)(J.value)}`,stroke:A.value.useColorTrend?Z.value:A.value.stroke,fill:`none`,"stroke-width":A.value.strokeWidth,"stroke-linecap":A.value.strokeLinecap,"stroke-linejoin":A.value.strokeLinejoin},null,8,Ne)):u(``,!0),!A.value.smooth&&J.value.length?(f(),d(`path`,{key:3,d:Ye.value,stroke:A.value.useColorTrend?Z.value:A.value.stroke,fill:`none`,"stroke-width":A.value.strokeWidth,"stroke-linecap":A.value.strokeLinecap,"stroke-linejoin":A.value.strokeLinejoin},null,8,Pe)):u(``,!0),g(N)?(f(),d(`path`,{key:4,fill:`#6A6A6A`,d:`M ${G.value.left/2+6}, ${Q.value+7} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2-7}, ${Q.value+14} Z`},null,8,Fe)):(f(),d(`path`,{key:5,fill:Z.value,d:X.value===`positive`?`M ${G.value.left/2}, ${Q.value} ${G.value.left/2-7}, ${Q.value+12} ${G.value.left/2+7}, ${Q.value+12} Z`:X.value===`negative`?`M ${G.value.left/2}, ${Q.value+12} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2+7}, ${Q.value} Z`:`M ${G.value.left/2+6}, ${Q.value+7} ${G.value.left/2-7}, ${Q.value} ${G.value.left/2-7}, ${Q.value+14} Z`},null,8,Ie)),g(N)?(f(),d(`rect`,{key:6,x:G.value.left/2-k.value.fontSize-2,y:U.value/2+k.value.fontSize-2,width:k.value.fontSize*2,height:k.value.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,Le)):u(``,!0),!w.value&&!g(N)?(f(),d(`text`,{key:7,class:`vue-ui-sparktrend-progress-label`,x:G.value.left/2,y:U.value/2+k.value.fontSize*2,"text-anchor":`middle`,fill:k.value.useColorTrend?Z.value:k.value.color,"font-size":k.value.fontSize,"font-weight":k.value.bold?`bold`:`normal`},h(g(n)({p:Y.value>0?`+`:``,v:Y.value,s:`%`,r:k.value.rounding})),9,Re)):u(``,!0),J.value.length&&J.value.at(-1).x!==void 0?(f(),d(`circle`,{key:8,stroke:M.value.backgroundColor,"stroke-width":2,cx:J.value.at(-1).x,cy:J.value.at(-1).y,r:4,fill:g(N)?`#6A6A6A`:Z.value},null,8,ze)):u(``,!0),J.value.length&&J.value.at(-1).x!==void 0&&O.value.show?(f(),d(`text`,{key:9,"text-anchor":`middle`,x:J.value.at(-1).x,y:J.value.at(-1).y-O.value.fontSize/1.5,"font-size":O.value.fontSize,fill:O.value.useColorTrend?Z.value:O.value.color,"font-weight":O.value.bold?`bold`:`normal`},h(g(re)(O.value.formatter,J.value.at(-1).value,g(n)({p:O.value.prefix,v:J.value.at(-1).value,s:O.value.suffix,r:O.value.rounding}),{datapoint:J.value.at(-1)})),9,Be)):u(``,!0)],8,Oe)),e.$slots.source?(f(),d(`div`,{key:0,ref_key:`source`,ref:x,dir:`auto`},[m(e.$slots,`source`,{},void 0,!0)],512)):u(``,!0),m(e.$slots,`skeleton`,{},()=>[g(N)?(f(),_e(de,{key:0})):u(``,!0)],!0)],12,Ee))}},[[`__scopeId`,`data-v-814f1b0f`]]);export{Te as n,v as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t}from"./resolveChartConfig-0IvbmIE_.js";import{$ as n,Ht as r,Jt as i,S as a,X as ee,Yt as te,at as o,i as s,in as c,t as ne,w as re,yt as ie,zt as ae}from"./lib-rPeBMZrn.js";import{n as oe,t as se}from"./useHints-C-TwxM0Y.js";import{t as ce}from"./useConfig-_JwRfIqE.js";import{n as le,t as ue}from"./BaseScanner-8NdoBs7B.js";import{t as de}from"./usePrefersMotion-XLHwega2.js";import{t as l}from"./vue_ui_sparkbar-CvcZ5nwT.js";import{t as u}from"./DefGrad-DKMq1REY.js";import{Fragment as d,computed as f,createBlock as fe,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createVNode as g,defineAsyncComponent as pe,guardReactiveProps as me,mergeProps as he,nextTick as ge,normalizeProps as _e,normalizeStyle as _,onMounted as v,openBlock as y,ref as b,renderList as ve,renderSlot as x,toDisplayString as S,toRefs as ye,unref as C,useSlots as w,watch as T}from"vue";var E=/* @__PURE__ */ e({default:()=>P}),D=[`onClick`,`onMouseenter`,`onMouseleave`],O={key:1,class:`vue-ui-sparkbar-datapoint-value`},k=[`xmlns`,`viewBox`],A=[`height`,`width`,`fill`,`rx`],j=[`height`,`width`,`fill`,`rx`],M=[`height`,`width`,`fill`,`rx`],N={key:2,ref:`source`,dir:`auto`},P={__name:`vue-ui-sparkbar`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},backgroundOpacity:{type:Number,default:null}},emits:[`selectDatapoint`],setup(e,{emit:E}){let P=pe(()=>import(`./PackageVersion-ksOit8fp.js`).then(e=>e.t)),{vue_ui_sparkbar:be}=ce(),F=de(),I=e,xe=w(),L=b(ee()),R=b(G()),z=f(()=>R.value.style.bar),B=f(()=>R.value.style.labels),V=f(()=>R.value.style),H=f(()=>R.value.debug);v(()=>{xe[`chart-background`]&&H.value&&console.warn(`VueUiSparkbar does not support the #chart-background slot.`)}),oe({config:()=>R.value,dataset:()=>I.dataset,component:`VueUiSparkbar`,rules:[se.noHint]});let Se=f(()=>c({defaultConfig:{style:{backgroundColor:`#99999930`,animation:{show:!1},layout:{independant:!0},gutter:{backgroundColor:`#6A6A6A`,opacity:50},bar:{gradient:{underlayerColor:`#6A6A6A`}}}},userConfig:R.value.skeletonConfig??{}})),{loading:U,FINAL_DATASET:W,manualLoading:Ce}=le({...ye(I),FINAL_CONFIG:R,prepareConfig:G,skeletonDataset:I.config?.skeletonDataset??[{name:`_`,value:21,target:25,color:`#808080`},{name:`_`,value:13,target:25,color:`#ADADAD`},{name:`_`,value:8,target:25,color:`#DBDBDB`}],skeletonConfig:c({defaultConfig:R.value,userConfig:Se.value})});function G(){return t(I.config,be,l)}T(()=>I.config,e=>{R.value=G()},{deep:!0});let we=f(()=>re(R.value.customPalette)),K=b(W.value.map(e=>({...e,value:V.value.animation.show?0:e.value||0,formatter:e.formatter||null}))),q=b(null);v(async()=>{ae(I.dataset)&&o({componentName:`VueUiSparkbar`,type:`dataset`,debug:H.value}),J()});function J(){if(V.value.animation.show&&!F.value){let e=V.value.animation.animationFrames,t=W.value.map((t,n)=>t.value/e),n=W.value.map(e=>e.value||0).reduce((e,t)=>e+t,0),r=0;function i(){r+=n/e,r<n?(K.value=K.value.map((e,n)=>({...e,value:e.value+=t[n]})),q.value=requestAnimationFrame(i)):K.value=W.value.map(e=>({...e,value:e.value||0,formatter:e.formatter||null}))}i()}}T(()=>W.value,async e=>{cancelAnimationFrame(q.value),K.value=W.value.map(e=>({...e,value:V.value.animation.show&&!F.value?0:e.value||0,formatter:e.formatter||null})),ge(J)},{deep:!0});let Y=b({width:500,height:16}),Te=f(()=>Math.max(...W.value.map(e=>e.value))),Ee=f(()=>(H.value&&W.value.forEach((e,t)=>{ie({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{o({componentName:`VueUiSparkbar`,type:`datasetSerieAttribute`,property:e,index:t})})}),K.value.map((e,t)=>({...e,value:e.value||0,color:a(e.color)||we.value[t]||r[t]||r[t%r.length]}))));function X(e){return e/Te.value}function Z(e){return V.value.layout.independant?e.target?e.value/e.target:V.value.layout.percentage?e.value>100?1:e.value/100:V.value.layout.target===0?1:e.value/V.value.layout.target:X(e.value)}function Q(e){return V.value.layout.independant&&e.target||V.value.layout.target}let De=E;function Oe(e,t){De(`selectDatapoint`,{datapoint:e,index:t}),R.value.events.datapointClick&&R.value.events.datapointClick({datapoint:e,seriesIndex:t})}function ke(e,t){R.value.events.datapointEnter&&R.value.events.datapointEnter({datapoint:e,seriesIndex:t})}function Ae(e,t){R.value.events.datapointLeave&&R.value.events.datapointLeave({datapoint:e,seriesIndex:t})}let $=f(()=>z.value.borderRadius==null?Y.value.height/2:Math.min(Y.value.height/2,z.value.borderRadius));return(e,t)=>(y(),m(`div`,{class:`vue-data-ui-component vue-ui-sparkbar`,style:_({width:`100%`,position:`relative`,fontFamily:V.value.fontFamily,background:I.backgroundOpacity===null?V.value.backgroundColor:C(i)(V.value.backgroundColor,I.backgroundOpacity)})},[e.$slots.title?x(e.$slots,`title`,_e(me({title:{...e.title,title:V.value.title.text,subtitle:V.value.title.subtitle.text}})),void 0,void 0,0):p(``,!0),!e.$slots.title&&V.value.title.text?(y(),m(`div`,{key:1,class:`vue-ui-sparkbar-title-container`,style:_({background:V.value.title.backgroundColor,margin:V.value.title.margin,textAlign:V.value.title.textAlign})},[h(`div`,{class:`vue-ui-sparkbar-title`,style:_({fontSize:V.value.title.fontSize+`px`,color:V.value.title.color,fontWeight:V.value.title.bold?`bold`:`normal`})},S(V.value.title.text),5),V.value.title.subtitle.text?(y(),m(`div`,{key:0,class:`vue-ui-sparkbar-subtitle`,style:_({fontSize:V.value.title.subtitle.fontSize+`px`,color:V.value.title.subtitle.color,fontWeight:V.value.title.subtitle.bold?`bold`:`normal`})},S(V.value.title.subtitle.text),5)):p(``,!0)],4)):p(``,!0),(y(!0),m(d,null,ve(Ee.value,(t,r)=>(y(),m(`div`,{style:_(`display:flex !important;${[`left`,`right`].includes(B.value.name.position)?`flex-direction: ${B.value.name.position===`right`?`row-reverse`:`row`} !important`:`flex-direction:column !important`};gap:${V.value.gap}px !important;align-items:center;${C(W).length>0&&r!==C(W).length-1?`margin-bottom:6px`:``}`),onClick:e=>Oe(t,r),onMouseenter:e=>ke(t,r),onMouseleave:e=>Ae(t,r)},[C(U)?p(``,!0):x(e.$slots,`data-label`,he({ref_for:!0},{bar:{...t,target:Q(t),valueLabel:C(s)(t.formatter,t.value,C(n)({p:t.prefix||``,v:t.value,s:t.suffix||``,r:t.rounding||0}),{datapoint:t,seriesIndex:r}),targetLabel:C(s)(t.formatter,Q(t),C(n)({p:t.prefix||``,v:Q(t),s:t.suffix||``,r:t.rounding||0}),{datapoint:t,seriesIndex:r})}}),void 0,void 0,0),!e.$slots[`data-label`]||C(U)?(y(),m(`div`,{key:1,style:_({display:`flex`,justifyContent:[`right`,`top-right`].includes(B.value.name.position)?`flex-end`:[`top-center`].includes(B.value.name.position)?`center`:`flex-start`,alignItems:`center`,width:B.value.name.width,color:B.value.name.color,fontSize:B.value.fontSize+`px`,fontWeight:B.value.name.bold?`bold`:`normal`,flexWrap:`wrap`})},[C(U)?(y(),m(`div`,{key:0,class:`vue-ui-sparkbar-skeleton-name`,style:_({width:`60px`,height:B.value.fontSize+`px`,borderRadius:B.value.fontSize/4+`px`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginTop:`5px`})},[h(`div`,{style:_({height:`100%`,width:`40px`,borderRadius:B.value.fontSize/4+`px`,backgroundColor:`#6A6A6A80`})},null,4),h(`div`,{style:_({height:`100%`,width:`15px`,borderRadius:B.value.fontSize/4+`px`,backgroundColor:`#6A6A6A80`})},null,4)],4)):(y(),m(d,{key:1},[h(`span`,null,S(t.name),1),B.value.value.show?(y(),m(`span`,{key:0,style:_(`font-weight:${B.value.value.bold?`bold`:`normal`}`),class:`vue-ui-sparkbar-datapoint-name`},`: `+S(C(s)(t.formatter,t.value,C(n)({p:t.prefix||``,v:t.value,s:t.suffix||``,r:t.rounding||0}),{datapoint:t,seriesIndex:r})),5)):p(``,!0),V.value.layout.showTargetValue?(y(),m(`span`,O,S(` `+V.value.layout.targetValueText)+` `+S(C(s)(t.formatter,Q(t),C(n)({p:t.prefix||``,v:Q(t),s:t.suffix||``,r:t.rounding||0}),{datapoint:t,seriesIndex:r})),1)):p(``,!0)],64))],4)):p(``,!0),(y(),m(`svg`,{role:`img`,xmlns:C(ne),viewBox:`0 0 ${Y.value.width} ${Y.value.height}`,width:`100%`},[g(C(P)),h(`defs`,null,[g(u,{t:`linear`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,id:`sparkbar_gradient_${r}_${L.value}`,stops:[[`0%`,C(i)(C(te)(t.color,.03),100-z.value.gradient.intensity),1],[`100%`,t.color,1]]},null,8,[`id`,`stops`])]),h(`rect`,{height:Y.value.height,width:Y.value.width,x:0,y:0,fill:C(i)(V.value.gutter.backgroundColor,V.value.gutter.opacity),rx:$.value},null,8,A),h(`rect`,{height:Y.value.height,width:Y.value.width*Z(t),x:0,y:0,fill:z.value.gradient.underlayerColor,rx:$.value},null,8,j),h(`rect`,{height:Y.value.height,width:Y.value.width*Z(t),x:0,y:0,fill:z.value.gradient.show?`url(#sparkbar_gradient_${r}_${L.value})`:t.color,rx:$.value},null,8,M)],8,k))],44,D))),256)),e.$slots.source?(y(),m(`div`,N,[x(e.$slots,`source`)],512)):p(``,!0),C(U)?(y(),fe(ue,{key:3})):p(``,!0)],4))}};export{E as n,P as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./resolveChartConfig-0IvbmIE_.js";import{$ as n,Tt as r,X as i,at as a,b as o,i as s,in as c,t as l,yt as u,zt as ee}from"./lib-rPeBMZrn.js";import{n as te,t as ne}from"./useHints-C-TwxM0Y.js";import{t as re}from"./useConfig-_JwRfIqE.js";import{n as ie,t as ae}from"./BaseScanner-8NdoBs7B.js";import{t as oe}from"./useChartAccessibility-DOMuYJfm.js";import{t as se}from"./usePrefersMotion-XLHwega2.js";import{t as ce}from"./vue_ui_sparkgauge-D3xirz2w.js";import{t as le}from"./DefGrad-DKMq1REY.js";import{computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createVNode as g,defineAsyncComponent as ue,normalizeClass as de,normalizeStyle as _,onBeforeUnmount as fe,onMounted as v,openBlock as y,ref as b,renderSlot as x,toDisplayString as S,toRefs as pe,unref as C,watch as w}from"vue";var T=/* @__PURE__ */ e({default:()=>j}),E=[`xmlns`,`viewBox`],me=[`width`,`height`],he=[`d`,`stroke`,`stroke-linecap`],D=[`d`,`stroke`,`stroke-linecap`,`stroke-dashoffset`],O=[`x`,`y`,`width`,`height`],k=[`x`,`y`,`font-size`,`fill`,`font-weight`],A={key:2,ref:`source`,dir:`auto`},j={__name:`vue-ui-sparkgauge`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(e){let T=ue(()=>import(`./PackageVersion-ksOit8fp.js`).then(e=>e.t)),{vue_ui_sparkgauge:j}=re(),M=se(),N=b(null),P=e,F=b(i()),I=b(W()),L=d(()=>I.value.style.dataLabel),R=d(()=>I.value.style);te({config:()=>I.value,dataset:()=>P.dataset,component:`VueUiSparkgauge`,rules:[ne.noHint]});let z=d(()=>R.value.animation.show&&!M.value),ge=d(()=>c({defaultConfig:{style:{animation:{show:!1},background:`#99999930`,colors:{min:`#CACACA`,max:`#6A6A6A`},track:{autoColor:!0},gutter:{color:`#6A6A6A80`}}},userConfig:I.value.skeletonConfig??{}})),{loading:B,FINAL_DATASET:V}=ie({...pe(P),FINAL_CONFIG:I,prepareConfig:W,skeletonDataset:P.config?.skeletonDataset??{value:0,min:-1,max:1,title:``},skeletonConfig:c({defaultConfig:I.value,userConfig:ge.value})}),H=d(()=>{let e=V.value.min??0,t=V.value.max??0;return{min:e,max:t,diff:t-e}}),U=d(()=>H.value.diff/R.value.animation.speedMs),{svgRef:_e}=oe({config:{text:P.dataset?.title||``}});function W(){return t(P.config,j,ce)}v(()=>{K()});let G=d(()=>I.value.debug);function K(){ee(P.dataset)?a({componentName:`VueUiSparkgauge`,type:`dataset`,debug:G.value}):u({datasetObject:P.dataset,requiredAttributes:[`value`,`min`,`max`]}).forEach(e=>{a({componentName:`VueUiSparkgauge`,type:`datasetAttribute`,property:e,debug:G.value})})}w(()=>P.config,()=>{I.value=W(),J.value=z.value?H.value.min:V.value.value,K()},{deep:!0});let q=d(()=>({height:R.value.height,width:128,base:R.value.basePosition})),J=b(z.value?H.value.min:V.value.value);w([()=>V.value.value,z],([e,t])=>{Y(e||0,t)},{immediate:!0});let ve=d(()=>J.value>H.value.max?H.value.max:J.value<H.value.min?H.value.min:J.value);v(()=>{Y(V.value.value||0)});function Y(e,t=z.value){if(N.value&&=(cancelAnimationFrame(N.value),null),!t){J.value=e;return}function n(){J.value<e?J.value=Math.min(J.value+U.value,e):J.value>e&&(J.value=Math.max(J.value-U.value,e)),J.value===e?N.value=null:N.value=requestAnimationFrame(n)}n()}let X=d(()=>V.value.title??``),Z=d(()=>{let e=H.value.diff;if(!isFinite(e)||e===0)return 0;let t=H.value.min,n=ve.value;return n>=0?(n-t)/e:(Math.abs(t)-Math.abs(n))/e}),Q=d(()=>r(R.value.colors.min,R.value.colors.max,H.value.min,H.value.max,J.value)),$=d(()=>L.value.autoColor?Q.value:L.value.color),ye=d(()=>R.value.track.autoColor?Q.value:R.value.track.color);return fe(()=>{N.value&&cancelAnimationFrame(N.value)}),(e,t)=>(y(),m(`div`,{class:`vue-data-ui-component vue-ui-sparkgauge`,style:_(`font-family:${R.value.fontFamily};width: 100%; background:${R.value.background}`)},[R.value.title.show&&X.value&&R.value.title.position===`top`?(y(),m(`div`,{key:0,class:`vue-data-ui-sparkgauge-label`,style:_(`font-size:${R.value.title.fontSize}px;text-align:${R.value.title.textAlign};font-weight:${R.value.title.bold?`bold`:`normal`};color:${R.value.title.color}`)},S(X.value),5)):p(``,!0),(y(),m(`svg`,{ref_key:`svgRef`,ref:_e,xmlns:C(l),viewBox:`0 0 ${q.value.width} ${q.value.height}`,style:`overflow: visible; background:transparent; width:100%;`},[g(C(T)),e.$slots[`chart-background`]&&!C(B)?(y(),m(`foreignObject`,{key:0,x:0,y:0,width:q.value.width,height:q.value.height,style:{pointerEvents:`none`}},[x(e.$slots,`chart-background`)],8,me)):p(``,!0),h(`defs`,null,[g(le,{t:`linear`,id:`gradient_${F.value}`,x1:`-10%`,y1:`100%`,x2:`110%`,y2:`100%`,stops:[[`0%`,R.value.colors.min,1],[`100%`,R.value.colors.max,1]]},null,8,[`id`,`stops`])]),h(`path`,{d:`M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,stroke:R.value.gutter.color,"stroke-width":8,"stroke-linecap":R.value.gutter.strokeLinecap,fill:`none`},null,8,he),Z.value===0?p(``,!0):(y(),m(`path`,{key:1,d:`M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,stroke:R.value.colors.showGradient?`url(#gradient_${F.value})`:ye.value,"stroke-width":8,"stroke-linecap":R.value.track.strokeLinecap,fill:`none`,"stroke-dasharray":169.5,"stroke-dashoffset":169.5-169.5*Z.value,class:de({"vue-ui-sparkgauge-track":R.value.animation.show}),style:_(R.value.animation.show?`animation: vue-ui-sparkgauge-animation ${R.value.animation.speedMs}ms ease-in;`:``)},null,14,D)),C(B)?(y(),m(`rect`,{key:2,x:q.value.width/2-L.value.fontSize/2,y:q.value.base+6+L.value.offsetY-L.value.fontSize,width:L.value.fontSize,height:L.value.fontSize,fill:`#6A6A6A50`,rx:3},null,8,O)):(y(),m(`text`,{key:3,"text-anchor":`middle`,x:q.value.width/2,y:q.value.base+6+L.value.offsetY,"font-size":L.value.fontSize,fill:$.value,"font-weight":L.value.bold?`bold`:`normal`},S(C(s)(L.value.formatter,C(o)(J.value),C(n)({p:L.value.prefix,v:C(o)(J.value),s:L.value.suffix,r:L.value.rounding}),{datapoint:C(o)(J.value),color:$.value})),9,k))],8,E)),R.value.title.show&&X.value&&R.value.title.position===`bottom`?(y(),m(`div`,{key:1,class:`vue-data-ui-sparkgauge-label`,style:_(`font-size:${R.value.title.fontSize}px;text-align:${R.value.title.textAlign};font-weight:${R.value.title.bold?`bold`:`normal`};font-weight:${R.value.title.bold?`bold`:`normal`};color:${R.value.title.color}`)},S(X.value),5)):p(``,!0),e.$slots.source?(y(),m(`div`,A,[x(e.$slots,`source`)],512)):p(``,!0),x(e.$slots,`skeleton`,{},()=>[C(B)?(y(),f(ae,{key:0})):p(``,!0)])],4))}};export{T as n,j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./resolveChartConfig-0IvbmIE_.js";import{$ as n,Jt as r,X as i,Yt as a,at as o,i as s,in as c,t as l,yt as ee,zt as u}from"./lib-rPeBMZrn.js";import{c as d}from"./canvas-lib-22VpOI4_.js";import{n as f,t as te}from"./useHints-C-TwxM0Y.js";import{t as ne}from"./useConfig-_JwRfIqE.js";import{n as re,t as ie}from"./BaseScanner-8NdoBs7B.js";import{t as ae}from"./useFitSvgText-C1QC4P5G.js";import{t as oe}from"./useResponsive-CENUxfEL.js";import{t as se}from"./useChartAccessibility-DOMuYJfm.js";import{t as ce}from"./Shape-CRe8woTu.js";import{t as le}from"./vue_ui_sparkhistogram-E6G1761_.js";import{t as ue}from"./A11yDataTable-DWNlWXzs.js";import{t as p}from"./DefGrad-DKMq1REY.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as h,computed as g,createBlock as _,createCommentVNode as v,createElementBlock as y,createElementVNode as b,createTextVNode as de,createVNode as fe,defineAsyncComponent as pe,guardReactiveProps as me,nextTick as he,normalizeClass as ge,normalizeProps as _e,normalizeStyle as x,onMounted as ve,openBlock as S,ref as C,renderList as w,renderSlot as T,toDisplayString as E,toRefs as ye,unref as D,useCssVars as be,watch as xe}from"vue";var O=/* @__PURE__ */ e({default:()=>k}),Se=[`id`],Ce={key:0},we={key:1},Te={style:{position:`relative`}},Ee=[`xmlns`,`viewBox`,`aria-describedby`],De=[`width`,`height`],Oe=[`height`,`width`,`fill`,`x`,`stroke`,`stroke-width`,`rx`,`stroke-dasharray`],ke={key:1},Ae=[`x`,`y`,`height`,`width`,`fill`,`stroke`,`stroke-width`,`rx`],je={key:2},Me=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ne=[`x`,`y`,`font-size`,`fill`],Pe=[`x`,`y`,`font-size`,`fill`],Fe=[`height`,`width`,`x`,`onMouseover`,`onMouseleave`,`onClick`],Ie={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},k=/*#__PURE__*/ m({__name:`vue-ui-sparkhistogram`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectDatapoint`],setup(e,{emit:m}){be(e=>({v57deebda:Xe.value}));let O=pe(()=>import(`./PackageVersion-ksOit8fp.js`).then(e=>e.t)),{vue_ui_sparkhistogram:k}=ne(),A=e,j=C(i()),M=C(null),Le=C(null),N=C(null),P=C(null),F=C(null),I=C(!1),L=C(null),R=C(`pointer`),z=C(q()),B=g(()=>z.value.style.labels),V=g(()=>z.value.style.bars),H=g(()=>z.value.style);f({config:()=>z.value,dataset:()=>A.dataset,component:`VueUiSparkHistogram`,rules:[te.singleSeries,{test:e=>e.length>31,message:[`👀 The number of datapoints is > 31. For a more readable chart, consider:`,``,`▶️ Using VueUiXy with a line series`]}]});let Re=g(()=>c({defaultConfig:{style:{animation:{show:!1},backgroundColor:`#99999930`}},userConfig:z.value.skeletonConfig??{}})),{loading:ze,FINAL_DATASET:U,manualLoading:Be}=re({...ye(A),FINAL_CONFIG:z,prepareConfig:q,skeletonDataset:A.config?.skeletonDataset??[{value:1,intensity:.2,color:`#CACACA`},{value:2,intensity:.3,color:`#CACACA`},{value:3,intensity:.5,color:`#CACACA`},{value:5,intensity:.7,color:`#CACACA`},{value:8,intensity:.9,color:`#CACACA`},{value:13,intensity:.95,color:`#CACACA`},{value:21,intensity:1,color:`#CACACA`},{value:13,intensity:.95,color:`#CACACA`},{value:8,intensity:.9,color:`#CACACA`},{value:5,intensity:.7,color:`#CACACA`},{value:3,intensity:.5,color:`#CACACA`},{value:2,intensity:.3,color:`#CACACA`},{value:1,intensity:.2,color:`#CACACA`}],skeletonConfig:c({defaultConfig:z.value,userConfig:Re.value})}),W=C(H.value.layout.width),G=C(H.value.layout.height),{svgRef:K}=se({config:H.value.title});function q(){return t(A.config,k,le)}ve(()=>{He()});let Ve=g(()=>z.value.debug);function He(){if(u(A.dataset)?o({componentName:`VueUiSparkHistogram`,type:`dataset`,debug:Ve.value}):Ve.value&&A.dataset.forEach((e,t)=>{ee({datasetObject:e,requiredAttributes:[`value`]}).forEach(e=>{o({componentName:`VueUiSparkHistogram`,type:`datasetSerieAttribute`,property:e,index:t})})}),z.value.responsive){let e=d(()=>{let{width:e,height:t}=oe({chart:N.value,title:H.value.title.text?Le.value:null,source:M.value}),n=B.value.timeLabel.show?B.value.timeLabel.fontSize*2:0,r=B.value.valueLabel.show?B.value.valueLabel.fontSize*2:0;requestAnimationFrame(()=>{W.value=Math.max(10,e),G.value=Math.max(10,t-12-n-r)})});P.value&&(F.value&&P.value.unobserve(F.value),P.value.disconnect()),P.value=new ResizeObserver(e),F.value=N.value.parentNode,P.value.observe(F.value)}}xe(()=>A.config,e=>{z.value=q(),He()},{deep:!0});let J=g(()=>{let e=B.value.timeLabel.show?B.value.timeLabel.fontSize*2:0,t=B.value.valueLabel.show?B.value.valueLabel.fontSize*2:0,n=G.value+e+t,r=W.value,i=H.value.layout.padding.top,a=n-H.value.layout.padding.bottom,o=H.value.layout.padding.left,s=r-H.value.layout.padding.right;return{bottom:a,centerY:i+(n-i-H.value.layout.padding.bottom)/2,drawingHeight:n-H.value.layout.padding.top-H.value.layout.padding.bottom-e-t,drawingWidth:r-H.value.layout.padding.left-H.value.layout.padding.right,height:n,left:o,right:s,top:i,width:r}}),Ue=g(()=>Math.max(...U.value.map(e=>Math.abs(e.value||0))));function We(e){return Math.abs(e)/Ue.value}let Y=g(()=>U.value.map((e,t)=>{let n=We(e.value||0),i=J.value.drawingHeight*n,a=J.value.drawingWidth/U.value.length,o=a*(V.value.gap/100),s=a-o,c=J.value.centerY-i/2,l=J.value.left+(o/2+t*a),ee=J.value.left+t*a,u=e.intensity===void 0?100:Math.round(e.intensity*100),d=e.color?e.color:e.value>=0?r(V.value.colors.positive,u):r(V.value.colors.negative,u),f=e.color?e.color:e.value>=0?V.value.colors.positive:V.value.colors.negative,te=e.color?`url(#gradient_datapoint_${t}_${j.value})`:e.value>=0?`url(#gradient_positive_${t}_${j.value})`:`url(#gradient_negative_${t}_${j.value})`,ne=l+s/2;return{...e,color:d,gradient:te,height:i,intensity:u,proportion:n,stroke:f,textAnchor:ne,trapX:ee,unitWidth:a,width:s,x:l,y:c}}));function Ge(e,t){return s(B.value.value.formatter,e.value,n({p:B.value.value.prefix,v:e.value,s:B.value.value.suffix,r:B.value.value.rounding}),{datapoint:e,seriesIndex:t})}let X=C(null),Ke=m;function Z(e,t){Ke(`selectDatapoint`,{datapoint:e,index:t}),z.value.events.datapointClick&&z.value.events.datapointClick({datapoint:e,seriesIndex:t})}function qe(e,t){R.value=`pointer`,L.value=t,X.value=t,z.value.events.datapointEnter&&z.value.events.datapointEnter({datapoint:e,seriesIndex:t})}function Je(e,t){R.value!==`keyboard`&&(X.value=null,L.value=null,z.value.events.datapointLeave&&z.value.events.datapointLeave({datapoint:e,seriesIndex:t}))}function Ye(){R.value!==`keyboard`&&(X.value=null,L.value=null)}let Xe=g(()=>`${H.value.animation.speedMs}ms`),Ze=g(()=>J.value.drawingWidth/U.value.length*.9),{fitText:Q}=ae({svgRef:K,unitWidth:Ze});ve(async()=>{await he(),Q(`.vue-ui-sparkhistogram-top-label`,B.value.value.minFontSize),Q(`.vue-ui-sparkhistogram-bottom-label`,B.value.valueLabel.minFontSize),Q(`.vue-ui-sparkhistogram-time-label`,B.value.timeLabel.minFontSize)}),xe([W,G,()=>U.value],async()=>{await he(),Q(`.vue-ui-sparkhistogram-top-label`,B.value.value.minFontSize),Q(`.vue-ui-sparkhistogram-bottom-label`,B.value.valueLabel.minFontSize),Q(`.vue-ui-sparkhistogram-time-label`,B.value.timeLabel.minFontSize)});function Qe(){I.value=!0}function $e(){I.value=!1,L.value=null,R.value=`pointer`,X.value=null}function et(e){if(!K.value||document.activeElement!==K.value||!Y.value.length)return;let t=e.key===`ArrowLeft`,n=e.key===`ArrowRight`,r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){L.value=null,X.value=null,R.value=`pointer`;return}if(r){if(X.value===null)return;let e=Y.value[X.value];if(!e)return;Z(e,X.value);return}R.value=`keyboard`;let a=L.value;a===null||a<0||a>=Y.value.length?a=n?0:Y.value.length-1:n?(a+=1,a>=Y.value.length&&(a=0)):t&&(--a,a<0&&(a=Y.value.length-1)),L.value=a,X.value=a;let o=Y.value[a];z.value.events.datapointEnter&&z.value.events.datapointEnter({datapoint:o,seriesIndex:a})}let $=g(()=>({headers:[z.value.a11y?.translations?.series??`Series`,z.value.a11y?.translations?.time??`Time`,z.value.a11y?.translations?.value??`Value`,z.value.a11y?.translations?.valueLabel??`Label`],rows:Y.value.map((e,t)=>[t+1,e.timeLabel??``,e.value??``,e.valueLabel??``])}));return(e,t)=>(S(),y(`div`,{class:`vue-data-ui-component vue-ui-spark-histogram`,ref_key:`histogramChart`,ref:N,style:x(`width:100%;background:${H.value.backgroundColor};font-family:${H.value.fontFamily}`),onMouseleave:Ye},[b(`div`,{id:`chart-instructions-${j.value}`,class:`sr-only`},[b(`p`,null,E(z.value.a11y.translations.keyboardNavigation),1)],8,Se),$.value?.rows?.length?(S(),_(ue,{key:0,uid:j.value,head:$.value.headers,body:$.value.rows,notice:z.value.a11y.translations.tableAvailable,caption:z.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):v(``,!0),H.value.title.text?(S(),y(`div`,{key:1,ref_key:`chartTitle`,ref:Le,style:x(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${H.value.title.margin};padding: 0 6px;text-align:${H.value.title.textAlign}`)},[b(`div`,{style:x(`font-size:${H.value.title.fontSize}px;color:${H.value.title.color};font-weight:${H.value.title.bold?`bold`:`normal`}`)},[de(E(H.value.title.text)+` `,1),X.value===null?v(``,!0):(S(),y(`span`,Ce,`- `+E(Y.value[X.value].timeLabel||``)+` `+E(D(s)(B.value.value.formatter,Y.value[X.value].value,D(n)({p:B.value.value.prefix,v:Y.value[X.value].value,s:B.value.value.suffix,r:B.value.value.rounding}),{datapoint:Y.value[X.value],seriesIndex:X.value})),1)),![void 0,null].includes(X.value)&&![null,void 0].includes(Y.value[X.value].valueLabel)?(S(),y(`span`,we,E(` (${Y.value[X.value].valueLabel||0})`),1)):v(``,!0)],4),H.value.title.subtitle.text?(S(),y(`div`,{key:0,style:x(`font-size:${H.value.title.subtitle.fontSize}px;color:${H.value.title.subtitle.color};font-weight:${H.value.title.subtitle.bold?`bold`:`normal`}`)},E(H.value.title.subtitle.text),5)):v(``,!0)],4)):v(``,!0),b(`div`,Te,[(S(),y(`svg`,{ref_key:`svgRef`,ref:K,xmlns:D(l),viewBox:`0 0 ${J.value.width} ${J.value.height}`,style:{overflow:`visible`},"aria-describedby":`chart-instructions-${j.value}`,tabindex:`0`,onFocus:Qe,onBlur:$e,onKeydown:et},[fe(D(O)),e.$slots[`chart-background`]?(S(),y(`foreignObject`,{key:0,x:0,y:0,width:J.value.width,height:J.value.height,style:{pointerEvents:`none`}},[T(e.$slots,`chart-background`,{},void 0,!0)],8,De)):v(``,!0),b(`defs`,null,[(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),_(p,{t:`radial`,id:`gradient_positive_${t}_${j.value}`,key:`gradient_positive_${t}_${j.value}`,cy:`50%`,cx:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,D(r)(D(a)(V.value.colors.positive,.05),e.intensity),1],[`100%`,D(r)(V.value.colors.positive,e.intensity),1]]},null,8,[`id`,`stops`]))),128)),(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),_(p,{t:`radial`,id:`gradient_negative_${t}_${j.value}`,key:`gradient_negative_${t}_${j.value}`,cy:`50%`,cx:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,D(r)(D(a)(V.value.colors.negative,.05),e.intensity),1],[`100%`,D(r)(V.value.colors.negative,e.intensity),1]]},null,8,[`id`,`stops`]))),128)),(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),_(p,{t:`radial`,id:`gradient_datapoint_${t}_${j.value}`,key:`gradient_datapoint_${t}_${j.value}`,cy:`50%`,cx:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,D(r)(D(a)(e.color,.05),e.intensity),1],[`100%`,D(r)(e.color,e.intensity),1]]},null,8,[`id`,`stops`]))),128))]),(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),y(`g`,null,[X.value!==null&&X.value===t?(S(),y(`rect`,{key:0,height:J.value.height,width:e.unitWidth,fill:H.value.selector.fill,x:e.trapX,y:0,stroke:H.value.selector.stroke,"stroke-width":H.value.selector.strokeWidth,rx:H.value.selector.borderRadius,"stroke-dasharray":H.value.selector.strokeDasharray},null,8,Oe)):v(``,!0)]))),256)),!V.value.shape||V.value.shape===`square`?(S(),y(`g`,ke,[(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),y(`rect`,{x:e.x,y:e.y,height:e.height,width:e.width,fill:V.value.colors.gradient.show?e.gradient:e.color,stroke:e.stroke,"stroke-width":V.value.strokeWidth,rx:`${V.value.borderRadius*e.proportion/12}%`,class:ge({"vue-ui-sparkhistogram-shape":H.value.animation.show})},null,10,Ae))),256))])):(S(),y(`g`,je,[(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),_(ce,{plot:{x:e.x+e.width/2,y:e.y+e.height/2},color:V.value.colors.gradient.show?e.gradient:e.color,shape:V.value.shape,radius:Math.min(e.height*.4,e.width*.4),class:ge({"vue-ui-sparkhistogram-shape":H.value.animation.show})},null,8,[`plot`,`color`,`shape`,`radius`,`class`]))),256))])),D(ze)?v(``,!0):(S(),y(h,{key:3},[(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),y(`g`,null,[B.value.value.show?(S(),y(`text`,{key:0,class:`vue-ui-sparkhistogram-top-label`,"text-anchor":`middle`,x:e.textAnchor,y:e.y-B.value.value.fontSize/3+B.value.value.offsetY,"font-size":B.value.value.fontSize,"font-weight":B.value.value.bold?`bold`:`normal`,fill:B.value.value.color},E(Ge(e,t)),9,Me)):v(``,!0)]))),256)),(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),y(`g`,null,[e.valueLabel&&B.value.valueLabel.show?(S(),y(`text`,{key:0,class:`vue-ui-sparkhistogram-bottom-label`,x:e.textAnchor,y:e.y+e.height+B.value.valueLabel.fontSize,"font-size":B.value.valueLabel.fontSize,"text-anchor":`middle`,fill:B.value.valueLabel.color},E(e.valueLabel),9,Ne)):v(``,!0)]))),256)),(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),y(`g`,null,[e.timeLabel&&B.value.timeLabel.show?(S(),y(`text`,{key:0,class:`vue-ui-sparkhistogram-time-label`,x:e.textAnchor,y:J.value.height,"font-size":B.value.timeLabel.fontSize,fill:B.value.timeLabel.color,"text-anchor":`middle`},E(e.timeLabel),9,Pe)):v(``,!0)]))),256))],64)),(S(!0),y(h,null,w(Y.value,(e,t)=>(S(),y(`g`,null,[b(`rect`,{height:J.value.height,width:e.unitWidth,fill:`transparent`,x:e.trapX,y:0,onMouseover:n=>qe(e,t),onMouseleave:n=>Je(e,t),onClick:()=>Z(e,t)},null,40,Fe)]))),256))],40,Ee)),e.$slots.hint?(S(),y(`div`,Ie,[T(e.$slots,`hint`,_e(me({hint:z.value.a11y.translations.keyboardNavigation,isVisible:I.value})),void 0,!0)])):v(``,!0)]),e.$slots.source?(S(),y(`div`,{key:2,ref_key:`source`,ref:M,dir:`auto`},[T(e.$slots,`source`,{},void 0,!0)],512)):v(``,!0),T(e.$slots,`skeleton`,{},()=>[D(ze)?(S(),_(ie,{key:0})):v(``,!0)],!0)],36))}},[[`__scopeId`,`data-v-e5a32af0`]]);export{O as n,k as t};
|