vue-data-ui 3.17.2 → 3.17.4
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/README.md +228 -228
- package/dist/{A11yDataTable-KcVAX2cP.js → A11yDataTable-BpmuNomI.js} +1 -1
- package/dist/{Arrow-Bn-9n3bm.js → Arrow-dSvLFssU.js} +1 -1
- package/dist/{BaseDraggableDialog-CIb-iD9g.js → BaseDraggableDialog-Di8Hlru3.js} +26 -24
- package/dist/{BaseIcon-Cb3zzG6s.js → BaseIcon-DX0hTWa-.js} +11 -5
- package/dist/{BaseLegendToggle-BQVIawmA.js → BaseLegendToggle-cMP8M2u0.js} +4 -4
- package/dist/BaseScanner-BON3d_Sx.js +38 -0
- package/dist/{BaseZoomControls-DievbOeJ.js → BaseZoomControls-CVSC1-SU.js} +11 -5
- package/dist/{ColorPicker-B0mV4xzu.js → ColorPicker-bAxGcXK0.js} +38 -22
- package/dist/{DataTable-DT2kIdQ6.js → DataTable-cMnb68Ik.js} +15 -11
- package/dist/{Legend-CS7Xo5LK.js → Legend-DGN5lY60.js} +15 -12
- package/dist/{NonSvgPenAndPaper-VyJFyJ6X.js → NonSvgPenAndPaper-B6E0zEYe.js} +34 -12
- package/dist/{PackageVersion-PjmqM4wb.js → PackageVersion-DVvvyQXB.js} +1 -1
- package/dist/{PenAndPaper-Ct3qJ4lA.js → PenAndPaper-CJDoB5H9.js} +87 -27
- package/dist/{Shape-BKRUOeKk.js → Shape-CxJ5_Rre.js} +1 -1
- package/dist/{Slicer-CIHwwuNR.js → Slicer-D7UcO8sN.js} +75 -33
- package/dist/{SlicerPreview-BMx3cqgX.js → SlicerPreview-D_CgrN_7.js} +198 -102
- package/dist/{SparkTooltip-BorBpltj.js → SparkTooltip-D4bM-kfz.js} +5 -5
- package/dist/{Title-BeMKE1cj.js → Title-BbKoiBk2.js} +1 -1
- package/dist/{Tooltip-C8KGyqQk.js → Tooltip-Cvt7Fi0Q.js} +9 -2
- package/dist/{UserOptions-rW2fRf3V.js → UserOptions-DVduN6X7.js} +48 -14
- package/dist/components/arrow.js +1 -1
- 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-heatmap.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.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-pattern-seed.js +5 -0
- 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/{dom-to-png-CtxhhdWb.js → dom-to-png-DGvx6i5V.js} +21 -6
- package/dist/{exposedLib-DlqmhBx3.js → exposedLib-sJvY1pST.js} +1 -1
- package/dist/{geoProjections-D0Vxsz_O.js → geoProjections-BFq2sOBY.js} +19 -11
- package/dist/{img-LXxMLmCg.js → img-CjTQXS0U.js} +31 -7
- package/dist/{labelUtils-CqTHa20R.js → labelUtils-DX9oyq3C.js} +2 -6
- package/dist/{lib-DBptbyyI.js → lib-DMzrGQHK.js} +337 -124
- package/dist/patternUtils-BINhU4Ky.js +615 -0
- package/dist/{pdf-B4tTdfvl.js → pdf-C4H4o1Cj.js} +11 -2
- package/dist/style.css +1 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +500 -451
- package/dist/types/vue-data-ui.d.ts +2124 -1786
- package/dist/types/vue-ui-3d-bar.d.ts +10 -7
- package/dist/types/vue-ui-accordion.d.ts +2 -4
- package/dist/types/vue-ui-age-pyramid.d.ts +10 -8
- package/dist/types/vue-ui-annotator.d.ts +3 -3
- package/dist/types/vue-ui-bullet.d.ts +10 -7
- package/dist/types/vue-ui-bump.d.ts +9 -6
- package/dist/types/vue-ui-candlestick.d.ts +10 -7
- package/dist/types/vue-ui-carousel-table.d.ts +2 -2
- package/dist/types/vue-ui-chestnut.d.ts +9 -6
- package/dist/types/vue-ui-chord.d.ts +10 -7
- package/dist/types/vue-ui-circle-pack.d.ts +10 -7
- package/dist/types/vue-ui-cursor.d.ts +2 -2
- package/dist/types/vue-ui-dag.d.ts +10 -7
- package/dist/types/vue-ui-dashboard.d.ts +3 -3
- package/dist/types/vue-ui-digits.d.ts +2 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +11 -8
- package/dist/types/vue-ui-donut.d.ts +11 -8
- package/dist/types/vue-ui-dumbbell.d.ts +11 -8
- package/dist/types/vue-ui-flow.d.ts +11 -8
- package/dist/types/vue-ui-funnel.d.ts +11 -8
- package/dist/types/vue-ui-galaxy.d.ts +11 -8
- package/dist/types/vue-ui-gauge.d.ts +11 -8
- package/dist/types/vue-ui-geo.d.ts +13 -6
- package/dist/types/vue-ui-gizmo.d.ts +2 -5
- package/dist/types/vue-ui-heatmap.d.ts +11 -8
- package/dist/types/vue-ui-history-plot.d.ts +11 -8
- package/dist/types/vue-ui-horizontal-bar.d.ts +11 -8
- package/dist/types/vue-ui-icon.d.ts +2 -4
- package/dist/types/vue-ui-kpi.d.ts +2 -4
- package/dist/types/vue-ui-mini-loader.d.ts +4 -4
- package/dist/types/vue-ui-molecule.d.ts +11 -8
- package/dist/types/vue-ui-mood-radar.d.ts +11 -8
- package/dist/types/vue-ui-nested-donuts.d.ts +11 -8
- package/dist/types/vue-ui-onion.d.ts +11 -8
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +11 -8
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +2 -4
- package/dist/types/vue-ui-quadrant.d.ts +11 -8
- package/dist/types/vue-ui-quick-chart.d.ts +11 -8
- package/dist/types/vue-ui-radar.d.ts +11 -8
- package/dist/types/vue-ui-rating.d.ts +4 -4
- package/dist/types/vue-ui-relation-circle.d.ts +11 -8
- package/dist/types/vue-ui-ridgeline.d.ts +11 -8
- package/dist/types/vue-ui-rings.d.ts +11 -8
- package/dist/types/vue-ui-scatter.d.ts +11 -8
- package/dist/types/vue-ui-skeleton.d.ts +2 -4
- package/dist/types/vue-ui-smiley.d.ts +2 -5
- package/dist/types/vue-ui-spark-trend.d.ts +2 -4
- package/dist/types/vue-ui-sparkbar.d.ts +4 -4
- package/dist/types/vue-ui-sparkgauge.d.ts +4 -4
- package/dist/types/vue-ui-sparkhistogram.d.ts +4 -4
- package/dist/types/vue-ui-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-sparkstackbar.d.ts +4 -4
- package/dist/types/vue-ui-stackbar.d.ts +11 -8
- package/dist/types/vue-ui-stackline.d.ts +11 -8
- package/dist/types/vue-ui-strip-plot.d.ts +11 -8
- package/dist/types/vue-ui-table-heatmap.d.ts +4 -4
- package/dist/types/vue-ui-table-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-table.d.ts +4 -4
- package/dist/types/vue-ui-thermometer.d.ts +11 -8
- package/dist/types/vue-ui-timer.d.ts +2 -4
- package/dist/types/vue-ui-tiremarks.d.ts +11 -8
- package/dist/types/vue-ui-treemap.d.ts +11 -8
- package/dist/types/vue-ui-vertical-bar.d.ts +11 -8
- package/dist/types/vue-ui-waffle.d.ts +11 -8
- package/dist/types/vue-ui-wheel.d.ts +11 -8
- package/dist/types/vue-ui-word-cloud.d.ts +11 -8
- package/dist/types/vue-ui-world.d.ts +11 -8
- package/dist/types/vue-ui-xy-canvas.d.ts +11 -8
- package/dist/types/vue-ui-xy.d.ts +9 -6
- package/dist/{useAutoSizeLabelsInsideViewbox-DX7LdvFX.js → useAutoSizeLabelsInsideViewbox-izlGDfwu.js} +1 -1
- package/dist/{useChartAccessibility-9icAAmYg.js → useChartAccessibility-cp6XQtqi.js} +4 -1
- package/dist/{useConfig-C40HvGpD.js → useConfig-DTHxOX6V.js} +2 -8
- package/dist/{useNestedProp-Bf5XFbs8.js → useNestedProp-DH0BEVVS.js} +1 -1
- package/dist/{useObjectBindings-DOokNdQ_.js → useObjectBindings-BjkVidN3.js} +17 -6
- package/dist/{usePanZoom-CDF7rb3o.js → usePanZoom-BbDhcKWf.js} +11 -2
- package/dist/{usePrefersMotion-CUKm8_t8.js → usePrefersMotion-Co0nj1eS.js} +3 -1
- package/dist/{usePrinter-CEpYU3r5.js → usePrinter-C4t8DdQ-.js} +3 -8
- package/dist/{useStableElementSize-DCNs0Tx7.js → useStableElementSize-C48ZVcZQ.js} +4 -1
- package/dist/{useSvgExport-ByUukOZt.js → useSvgExport-BTG4hVPO.js} +154 -34
- package/dist/{useTableResponsive-Cbx-ACcP.js → useTableResponsive-BpfiEtzR.js} +7 -3
- package/dist/{useThemeCheck-D1ZYXUwG.js → useThemeCheck-C9Ccl7U9.js} +4 -2
- package/dist/{useTimeLabelCollider-CIsgDrl9.js → useTimeLabelCollider-D3JeJ6Ye.js} +13 -5
- package/dist/{useTimeLabels-C-A2uZKi.js → useTimeLabels-Cv0tD9In.js} +22 -6
- package/dist/{useUserOptionState-BIvW1Kz7.js → useUserOptionState-B7Ej974k.js} +6 -4
- package/dist/utils.js +28 -25
- package/dist/{vue-data-ui-CGsJdqdx.js → vue-data-ui-C0aMSe2G.js} +138 -72
- package/dist/vue-data-ui.js +103 -99
- package/dist/{vue-ui-3d-bar-Bnm0MPNr.js → vue-ui-3d-bar-CzXlsUEJ.js} +328 -101
- package/dist/{vue-ui-accordion-DDuJT1xA.js → vue-ui-accordion-BHmfmb_6.js} +26 -14
- package/dist/{vue-ui-age-pyramid-vvDMkGxw.js → vue-ui-age-pyramid-DMZ9oYFv.js} +180 -73
- package/dist/{vue-ui-annotator-BdmTltyl.js → vue-ui-annotator-Db4eooqI.js} +162 -53
- package/dist/{vue-ui-bullet-CM5pK6Sj.js → vue-ui-bullet-CEH6eppC.js} +92 -35
- package/dist/{vue-ui-bump-DAo_mV8M.js → vue-ui-bump-JbKFEe2A.js} +205 -102
- package/dist/{vue-ui-candlestick-DsiOmaj1.js → vue-ui-candlestick-BX01sTaY.js} +285 -100
- package/dist/{vue-ui-carousel-table-DUl5G_cg.js → vue-ui-carousel-table-BOAti3gd.js} +66 -29
- package/dist/{vue-ui-chestnut-DMMCHoHB.js → vue-ui-chestnut-B0rhAzCA.js} +277 -88
- package/dist/{vue-ui-chord-75V7kRrX.js → vue-ui-chord-DKIHZ39Z.js} +226 -96
- package/dist/{vue-ui-circle-pack-BGXpEnmN.js → vue-ui-circle-pack-Ct2roluW.js} +196 -111
- package/dist/{vue-ui-cursor-BpPe14qk.js → vue-ui-cursor-B3cJoPku.js} +14 -7
- package/dist/{vue-ui-dag-D20FezGN.js → vue-ui-dag-DCq1VMNd.js} +261 -99
- package/dist/{vue-ui-dashboard-BcafQJ1Y.js → vue-ui-dashboard-BqAYr0Fr.js} +261 -94
- package/dist/{vue-ui-digits-gFYVzPkE.js → vue-ui-digits-D16SQQ4M.js} +6 -6
- package/dist/{vue-ui-donut-Cz7rvM7I.js → vue-ui-donut-d0LLrlKG.js} +532 -157
- package/dist/{vue-ui-donut-evolution-Cp0-8Deg.js → vue-ui-donut-evolution-6sMhQduN.js} +311 -92
- package/dist/{vue-ui-dumbbell-D_13qNsV.js → vue-ui-dumbbell-CUybhrwj.js} +266 -93
- package/dist/{vue-ui-flow-BuaVAVvN.js → vue-ui-flow-BZ-9RFsy.js} +121 -48
- package/dist/{vue-ui-funnel-Cv18o2ax.js → vue-ui-funnel-BJgvIvlz.js} +91 -39
- package/dist/{vue-ui-galaxy-n17IGTDo.js → vue-ui-galaxy-DR9WL985.js} +161 -69
- package/dist/{vue-ui-gauge-2bks6sjR.js → vue-ui-gauge-x96W5OPx.js} +95 -37
- package/dist/{vue-ui-geo-D6BoOtIP.js → vue-ui-geo-qTfYs5qi.js} +113 -43
- package/dist/{vue-ui-gizmo-CV07ZThl.js → vue-ui-gizmo-C8HOirN9.js} +25 -12
- package/dist/{vue-ui-heatmap-DfbRacVm.js → vue-ui-heatmap-Cy9o-A7B.js} +316 -125
- package/dist/{vue-ui-history-plot-5sPJfAue.js → vue-ui-history-plot-j0DMfNPJ.js} +186 -73
- package/dist/{vue-ui-horizontal-bar-BhMvbsvs.js → vue-ui-horizontal-bar-CRScV3rx.js} +151 -56
- package/dist/{vue-ui-kpi-P92uuJ_R.js → vue-ui-kpi-CEx3P3Do.js} +35 -14
- package/dist/{vue-ui-mini-loader-DrROXJIX.js → vue-ui-mini-loader-CyDOoarO.js} +17 -11
- package/dist/{vue-ui-molecule-BI6zROGn.js → vue-ui-molecule-B_19tjnI.js} +226 -120
- package/dist/{vue-ui-mood-radar-Byc_xyhw.js → vue-ui-mood-radar-DrkGtt7m.js} +166 -56
- package/dist/{vue-ui-nested-donuts-BZu1ntbw.js → vue-ui-nested-donuts-C3enuKq1.js} +196 -89
- package/dist/{vue-ui-onion-O2tKgfXh.js → vue-ui-onion-DMMLNXVu.js} +155 -74
- package/dist/{vue-ui-parallel-coordinate-plot-CbDGHCzy.js → vue-ui-parallel-coordinate-plot-YokoI6TP.js} +262 -84
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +36 -0
- package/dist/{vue-ui-quadrant-CPgUkle7.js → vue-ui-quadrant-D8vI4gIT.js} +240 -88
- package/dist/{vue-ui-quick-chart-CgDH-APs.js → vue-ui-quick-chart-BdwHAQyA.js} +445 -150
- package/dist/{vue-ui-radar-Belp_vQe.js → vue-ui-radar-DQWyecSD.js} +186 -68
- package/dist/{vue-ui-rating-C1f6x_PD.js → vue-ui-rating-DKmEn0VK.js} +30 -11
- package/dist/{vue-ui-relation-circle-AWRDIZzF.js → vue-ui-relation-circle-XQH3QkrI.js} +119 -45
- package/dist/{vue-ui-ridgeline-Cao4_cEs.js → vue-ui-ridgeline-ksI62sSU.js} +349 -85
- package/dist/{vue-ui-rings-Dl462hDH.js → vue-ui-rings-Dwbo1Fro.js} +179 -81
- package/dist/{vue-ui-scatter-BrVEK5YL.js → vue-ui-scatter-GFzM-YYz.js} +282 -102
- package/dist/{vue-ui-skeleton-BsTtcR3x.js → vue-ui-skeleton-xLPY1FKW.js} +161 -144
- package/dist/{vue-ui-smiley-M5Gn70_Z.js → vue-ui-smiley-BLMl69Ca.js} +28 -17
- package/dist/{vue-ui-spark-trend-CbtI2yPI.js → vue-ui-spark-trend-Bkxd18l5.js} +76 -31
- package/dist/{vue-ui-sparkbar-DgrwoANx.js → vue-ui-sparkbar-D2abFa-u.js} +113 -59
- package/dist/{vue-ui-sparkgauge-CepspA5J.js → vue-ui-sparkgauge-D6IF3ZQR.js} +47 -18
- package/dist/{vue-ui-sparkhistogram-BAVAkN0U.js → vue-ui-sparkhistogram-Dl8WlJLW.js} +145 -60
- package/dist/{vue-ui-sparkline-BMcsfaUW.js → vue-ui-sparkline-BY05SDNv.js} +226 -68
- package/dist/{vue-ui-sparkstackbar-BAzr99-y.js → vue-ui-sparkstackbar-BLFjfklb.js} +84 -36
- package/dist/{vue-ui-stackbar-BnepTc3z.js → vue-ui-stackbar-Dw-CI94e.js} +482 -169
- package/dist/{vue-ui-stackline-p3Utm59w.js → vue-ui-stackline-CkgSbKkp.js} +473 -164
- package/dist/{vue-ui-strip-plot-BfYmPTZT.js → vue-ui-strip-plot-P16Y5yN1.js} +239 -132
- package/dist/{vue-ui-table-BNmt2bQy.js → vue-ui-table-BPLypaeX.js} +339 -122
- package/dist/{vue-ui-table-heatmap-C6rSAGDu.js → vue-ui-table-heatmap-CWp_5d1z.js} +89 -25
- package/dist/{vue-ui-table-sparkline-BMt2q1FS.js → vue-ui-table-sparkline-CpjyrPic.js} +127 -47
- package/dist/{vue-ui-thermometer-Bf22bEzP.js → vue-ui-thermometer-B9nc954A.js} +129 -48
- package/dist/{vue-ui-timer-CkEPkE7B.js → vue-ui-timer-BDfbM4vl.js} +32 -15
- package/dist/{vue-ui-tiremarks-ltmjDwug.js → vue-ui-tiremarks-DHV_oSQ0.js} +90 -35
- package/dist/vue-ui-treemap-DLWOi_EG.js +1748 -0
- package/dist/{vue-ui-waffle-AUF7SKGN.js → vue-ui-waffle-CpNJSzAD.js} +206 -87
- package/dist/{vue-ui-wheel-Dn1nmx7r.js → vue-ui-wheel-DqBmaQ6h.js} +231 -61
- package/dist/{vue-ui-word-cloud-Bll30XSc.js → vue-ui-word-cloud-DexRxuh1.js} +443 -350
- package/dist/vue-ui-world-DAJgtvpz.js +14451 -0
- package/dist/{vue-ui-xy-BGC31q8v.js → vue-ui-xy-Cv-50xHj.js} +840 -252
- package/dist/{vue-ui-xy-canvas-BR-Qogdl.js → vue-ui-xy-canvas-BNUX13xH.js} +448 -159
- package/package.json +120 -119
- package/dist/BaseScanner-BhhkKVoj.js +0 -30
- package/dist/vue-ui-treemap-CGbTrwdn.js +0 -1726
- package/dist/vue-ui-world-CiNUxqIq.js +0 -1011
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { openBlock as i, createElementBlock as s, withKeys as K, normalizeStyle as r, normalizeClass as T, createElementVNode as a, toDisplayString as v, renderSlot as $, createCommentVNode as f, unref as M, useSlots as q, ref as x, onMounted as N, computed as w, watch as V, Fragment as H, renderList as J, createVNode as Q, withCtx as z, createTextVNode as W } from "vue";
|
|
2
|
-
import { X as j, v as U, k as Z, l as _, o as ee, q as te } from "./lib-
|
|
3
|
-
import { u as le } from "./useNestedProp-
|
|
4
|
-
import { u as ae } from "./useConfig-
|
|
2
|
+
import { X as j, v as U, k as Z, l as _, o as ee, q as te } from "./lib-DMzrGQHK.js";
|
|
3
|
+
import { u as le } from "./useNestedProp-DH0BEVVS.js";
|
|
4
|
+
import { u as ae } from "./useConfig-DTHxOX6V.js";
|
|
5
5
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ne = ["xmlns", "stroke"], ie = ["id"], se = ["stop-color"], re = ["stop-color"], ue = ["stroke"], ce = ["xmlns", "viewBox", "stroke"], de = ["id"], ye = ["stop-color"], fe = ["stop-color"], ve = ["viewBox", "stroke"], ge = {
|
|
7
7
|
__name: "BaseSmilingUnit",
|
|
@@ -21,7 +21,9 @@ const ne = ["xmlns", "stroke"], ie = ["id"], se = ["stop-color"], re = ["stop-co
|
|
|
21
21
|
const S = t, g = R;
|
|
22
22
|
return (o, c) => (i(), s("div", {
|
|
23
23
|
tabindex: "0",
|
|
24
|
-
class: T({
|
|
24
|
+
class: T({
|
|
25
|
+
"vue-ui-smiley-rated": !t.config.readonly && t.currentRating === t.unit
|
|
26
|
+
}),
|
|
25
27
|
style: r({
|
|
26
28
|
cursor: t.config.readonly ? "default" : S.isCursorPointer ? "pointer" : "default",
|
|
27
29
|
height: t.config.style.itemSize + "px",
|
|
@@ -133,7 +135,10 @@ const ne = ["xmlns", "stroke"], ie = ["id"], se = ["stop-color"], re = ["stop-co
|
|
|
133
135
|
}, [
|
|
134
136
|
a("stop", {
|
|
135
137
|
offset: "0%",
|
|
136
|
-
"stop-color": M(U)(
|
|
138
|
+
"stop-color": M(U)(
|
|
139
|
+
t.config.style.colors.activeReadonly[t.unit - 1],
|
|
140
|
+
0.05
|
|
141
|
+
)
|
|
137
142
|
}, null, 8, ye),
|
|
138
143
|
a("stop", {
|
|
139
144
|
offset: "100%",
|
|
@@ -158,7 +163,7 @@ const ne = ["xmlns", "stroke"], ie = ["id"], se = ["stop-color"], re = ["stop-co
|
|
|
158
163
|
], 8, ve)) : f("", !0)
|
|
159
164
|
], 38));
|
|
160
165
|
}
|
|
161
|
-
}, me = /* @__PURE__ */ oe(ge, [["__scopeId", "data-v-
|
|
166
|
+
}, me = /* @__PURE__ */ oe(ge, [["__scopeId", "data-v-e3093b6c"]]), he = {
|
|
162
167
|
key: 0,
|
|
163
168
|
class: "vue-ui-rating-title",
|
|
164
169
|
style: { width: "100%" }
|
|
@@ -182,7 +187,9 @@ const ne = ["xmlns", "stroke"], ie = ["id"], se = ["stop-color"], re = ["stop-co
|
|
|
182
187
|
setup(t, { expose: R, emit: S }) {
|
|
183
188
|
const { vue_ui_smiley: g } = ae(), o = t, c = q(), h = S, m = x(null);
|
|
184
189
|
N(() => {
|
|
185
|
-
c["chart-background"] && console.warn(
|
|
190
|
+
c["chart-background"] && console.warn(
|
|
191
|
+
"VueUiSmiley does not support the #chart-background slot."
|
|
192
|
+
);
|
|
186
193
|
});
|
|
187
194
|
function C() {
|
|
188
195
|
(!Object.hasOwn(o.dataset, "rating") || ee(o.dataset)) && te({
|
|
@@ -199,19 +206,20 @@ const ne = ["xmlns", "stroke"], ie = ["id"], se = ["stop-color"], re = ["stop-co
|
|
|
199
206
|
defaultConfig: g
|
|
200
207
|
});
|
|
201
208
|
}
|
|
202
|
-
V(
|
|
203
|
-
|
|
204
|
-
|
|
209
|
+
V(
|
|
210
|
+
() => o.config,
|
|
211
|
+
(l) => {
|
|
212
|
+
e.value = I(), k.value = e.value.readonly, C();
|
|
213
|
+
},
|
|
214
|
+
{ deep: !0 }
|
|
215
|
+
);
|
|
205
216
|
const F = w(() => {
|
|
206
217
|
const l = o.dataset.rating;
|
|
207
218
|
return l && typeof l == "object" && !Array.isArray(l) ? P(l) : l ?? null;
|
|
208
219
|
}), G = w(() => typeof o.dataset.rating == "object" && !Array.isArray(o.dataset.rating)), d = x(F.value);
|
|
209
|
-
V(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
d.value = l;
|
|
213
|
-
}
|
|
214
|
-
);
|
|
220
|
+
V(F, (l) => {
|
|
221
|
+
d.value = l;
|
|
222
|
+
});
|
|
215
223
|
const k = x(e.value.readonly), O = [
|
|
216
224
|
{
|
|
217
225
|
key: "smiley_0",
|
|
@@ -335,7 +343,10 @@ const ne = ["xmlns", "stroke"], ie = ["id"], se = ["stop-color"], re = ["stop-co
|
|
|
335
343
|
onRate: (b) => L(y + 1)
|
|
336
344
|
}, {
|
|
337
345
|
rating: z(() => [
|
|
338
|
-
W(v(p.value({
|
|
346
|
+
W(v(p.value({
|
|
347
|
+
value: o.dataset.rating[String(y + 1)],
|
|
348
|
+
tooltip: !0
|
|
349
|
+
})), 1)
|
|
339
350
|
]),
|
|
340
351
|
"path-icon-filled": z(() => [
|
|
341
352
|
a("path", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineAsyncComponent as _e, ref as c, computed as s, toRefs as $e, watch as P, nextTick as le, onMounted as we, openBlock as o, createElementBlock as r, normalizeStyle as xe, createElementVNode as N, toDisplayString as Z, unref as i, createVNode as Le, renderSlot as H, createCommentVNode as y, createBlock as Ce } from "vue";
|
|
2
|
-
import { j as Te, t as ae, H as ne, o as W, q as Ae, K as L, an as Ne, l as I, k as ue, X as Se, u as q, c as se } from "./lib-
|
|
2
|
+
import { j as Te, t as ae, H as ne, o as W, q as Ae, K as L, an as Ne, l as I, k as ue, X as Se, u as q, c as se } from "./lib-DMzrGQHK.js";
|
|
3
3
|
import { t as ze, u as Fe } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Me } from "./useConfig-
|
|
5
|
-
import { u as Ie, B as Ve } from "./BaseScanner-
|
|
4
|
+
import { u as Me } from "./useConfig-DTHxOX6V.js";
|
|
5
|
+
import { u as Ie, B as Ve } from "./BaseScanner-BON3d_Sx.js";
|
|
6
6
|
import { u as je } from "./useFitSvgText-2crs6Fv5.js";
|
|
7
|
-
import { u as U } from "./useNestedProp-
|
|
8
|
-
import { u as De } from "./useThemeCheck-
|
|
9
|
-
import { u as Ee } from "./usePrefersMotion-
|
|
7
|
+
import { u as U } from "./useNestedProp-DH0BEVVS.js";
|
|
8
|
+
import { u as De } from "./useThemeCheck-C9Ccl7U9.js";
|
|
9
|
+
import { u as Ee } from "./usePrefersMotion-Co0nj1eS.js";
|
|
10
10
|
import Be from "./vue_ui_spark_trend-3BjrSprO.js";
|
|
11
11
|
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Ze = ["width", "height"], He = ["id"], We = ["stop-color"], qe = ["stop-color"], Ue = { key: 1 }, Ke = ["d", "fill"], Xe = ["d", "fill"], Je = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Qe = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Ye = ["d"], et = ["fill", "d"], tt = ["x", "y", "width", "height"], lt = ["x", "y", "fill", "font-size", "font-weight"], at = ["stroke", "cx", "cy", "fill"], nt = ["x", "y", "font-size", "fill", "font-weight"], ut = {
|
|
@@ -26,7 +26,9 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
setup(oe) {
|
|
29
|
-
const re = _e(
|
|
29
|
+
const re = _e(
|
|
30
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
31
|
+
), { vue_ui_spark_trend: ie } = Me(), { isThemeValid: ve, warnInvalidTheme: de } = De(), S = Ee(), h = oe, V = c(null), K = c(null), X = c(null), C = c(null), z = c(null), T = c(!1), p = c(null), $ = c(Te()), e = c(E()), fe = s(() => ae({
|
|
30
32
|
defaultConfig: {
|
|
31
33
|
style: {
|
|
32
34
|
animation: { show: !1 },
|
|
@@ -35,7 +37,11 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
35
37
|
stroke: "#6A6A6A",
|
|
36
38
|
useColorTrend: !1
|
|
37
39
|
},
|
|
38
|
-
dataLabel: {
|
|
40
|
+
dataLabel: {
|
|
41
|
+
show: !1,
|
|
42
|
+
useColorTrend: !1,
|
|
43
|
+
color: "#6A6A6A"
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
},
|
|
41
47
|
userConfig: e.value.skeletonConfig ?? {}
|
|
@@ -43,7 +49,20 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
43
49
|
...$e(h),
|
|
44
50
|
FINAL_CONFIG: e,
|
|
45
51
|
prepareConfig: E,
|
|
46
|
-
skeletonDataset: h.config?.skeletonDataset ?? [
|
|
52
|
+
skeletonDataset: h.config?.skeletonDataset ?? [
|
|
53
|
+
1,
|
|
54
|
+
2,
|
|
55
|
+
3,
|
|
56
|
+
5,
|
|
57
|
+
8,
|
|
58
|
+
13,
|
|
59
|
+
21,
|
|
60
|
+
34,
|
|
61
|
+
55,
|
|
62
|
+
89,
|
|
63
|
+
144,
|
|
64
|
+
233
|
|
65
|
+
],
|
|
47
66
|
skeletonConfig: ae({
|
|
48
67
|
defaultConfig: e.value,
|
|
49
68
|
userConfig: fe.value
|
|
@@ -66,25 +85,37 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
66
85
|
defaultConfig: n
|
|
67
86
|
});
|
|
68
87
|
}
|
|
69
|
-
const g = s(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
88
|
+
const g = s(
|
|
89
|
+
() => ne({
|
|
90
|
+
data: j.value,
|
|
91
|
+
threshold: e.value.downsample.threshold
|
|
92
|
+
})
|
|
93
|
+
);
|
|
94
|
+
P(
|
|
95
|
+
() => h.config,
|
|
96
|
+
(t) => {
|
|
97
|
+
e.value = E(), R.value = e.value.style.width, w.value = e.value.style.height, J();
|
|
98
|
+
},
|
|
99
|
+
{ deep: !0 }
|
|
100
|
+
);
|
|
76
101
|
function B(t) {
|
|
77
102
|
return t.map((l) => L(l));
|
|
78
103
|
}
|
|
79
|
-
const _ = c(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
104
|
+
const _ = c(
|
|
105
|
+
ne({
|
|
106
|
+
data: j.value,
|
|
107
|
+
threshold: e.value.downsample.threshold
|
|
108
|
+
}).map((t) => e.value.style.animation.show && !S.value || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)
|
|
109
|
+
);
|
|
110
|
+
P(
|
|
111
|
+
g,
|
|
112
|
+
(t) => {
|
|
113
|
+
p.value && (cancelAnimationFrame(p.value), p.value = null), e.value.style.animation.show && !S.value ? _.value = Array(t.length).fill(null) : _.value = t.map(
|
|
114
|
+
(l) => ![void 0, 1 / 0, -1 / 0, null].includes(l) && !Number.isNaN(l) ? l : null
|
|
115
|
+
), O(), le(() => M(".vue-ui-sparktrend-progress-label", 6));
|
|
116
|
+
},
|
|
117
|
+
{ deep: !0, immediate: !0 }
|
|
118
|
+
), P(
|
|
88
119
|
() => JSON.stringify(h.dataset),
|
|
89
120
|
() => {
|
|
90
121
|
p.value && (cancelAnimationFrame(p.value), p.value = null), D.value = W(h.dataset);
|
|
@@ -172,13 +203,18 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
172
203
|
plotValue: L(n + F.value),
|
|
173
204
|
toMax: Q(n + F.value),
|
|
174
205
|
x: u.value.left + L(l * (u.value.width / (pe.value - 1))) - e.value.style.padding.right,
|
|
175
|
-
y: u.value.bottom - L(
|
|
206
|
+
y: u.value.bottom - L(
|
|
207
|
+
u.value.height * Q(n + F.value)
|
|
208
|
+
)
|
|
176
209
|
};
|
|
177
210
|
})), x = s(() => {
|
|
178
211
|
const t = B(g.value);
|
|
179
212
|
return e.value.style.trendLabel.trendType === "global" ? Ne(t) : e.value.style.trendLabel.trendType === "n-1" && t.length > 1 ? (t.at(-1) / t.at(-2) - 1) * 100 : e.value.style.trendLabel.trendType === "lastToFirst" ? (t.at(-1) / t[0] - 1) * 100 : 0;
|
|
180
213
|
}), A = s(() => T.value || x.value === 0 ? "neutral" : x.value > 0 ? "positive" : "negative"), m = s(() => e.value.style.arrow.colors[A.value]), ge = s(() => {
|
|
181
|
-
const t = { x: a.value[0].x, y: d.value.height - 6 }, l = {
|
|
214
|
+
const t = { x: a.value[0].x, y: d.value.height - 6 }, l = {
|
|
215
|
+
x: a.value[a.value.length - 1].x,
|
|
216
|
+
y: d.value.height - 6
|
|
217
|
+
}, n = [];
|
|
182
218
|
return a.value.forEach((v) => {
|
|
183
219
|
n.push(`${v.x},${v.y} `);
|
|
184
220
|
}), [t.x, t.y, ...n, l.x, l.y].toString();
|
|
@@ -258,7 +294,10 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
258
294
|
}, [
|
|
259
295
|
N("stop", {
|
|
260
296
|
offset: "0%",
|
|
261
|
-
"stop-color": i(q)(
|
|
297
|
+
"stop-color": i(q)(
|
|
298
|
+
e.value.style.line.useColorTrend ? m.value : e.value.style.line.stroke,
|
|
299
|
+
e.value.style.area.opacity
|
|
300
|
+
)
|
|
262
301
|
}, null, 8, We),
|
|
263
302
|
N("stop", {
|
|
264
303
|
offset: "100%",
|
|
@@ -270,12 +309,18 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
270
309
|
e.value.style.line.smooth ? (o(), r("path", {
|
|
271
310
|
key: 0,
|
|
272
311
|
d: `M ${a.value[0].x},${u.value.bottom} ${i(se)(a.value)} L ${a.value.at(-1).x},${u.value.bottom} Z`,
|
|
273
|
-
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${$.value})` : i(q)(
|
|
312
|
+
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${$.value})` : i(q)(
|
|
313
|
+
e.value.style.line.useColorTrend ? m.value : e.value.style.line.stroke,
|
|
314
|
+
e.value.style.area.opacity
|
|
315
|
+
),
|
|
274
316
|
stroke: "none"
|
|
275
317
|
}, null, 8, Ke)) : (o(), r("path", {
|
|
276
318
|
key: 1,
|
|
277
319
|
d: `M${ge.value}Z`,
|
|
278
|
-
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${$.value})` : i(q)(
|
|
320
|
+
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${$.value})` : i(q)(
|
|
321
|
+
e.value.style.line.useColorTrend ? m.value : e.value.style.line.stroke,
|
|
322
|
+
e.value.style.area.opacity
|
|
323
|
+
),
|
|
279
324
|
stroke: "none"
|
|
280
325
|
}, null, 8, Xe))
|
|
281
326
|
])) : y("", !0),
|
|
@@ -372,7 +417,7 @@ const Re = ["id", "aria-describedby"], Ge = ["id"], Pe = ["xmlns", "viewBox"], Z
|
|
|
372
417
|
], !0)
|
|
373
418
|
], 12, Re));
|
|
374
419
|
}
|
|
375
|
-
}, gt = /* @__PURE__ */ Oe(ut, [["__scopeId", "data-v-
|
|
420
|
+
}, gt = /* @__PURE__ */ Oe(ut, [["__scopeId", "data-v-90a4c498"]]);
|
|
376
421
|
export {
|
|
377
422
|
gt as default
|
|
378
423
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineAsyncComponent as oe, useSlots as ne, onMounted as M, ref as k, computed as x, toRefs as se, watch as B, nextTick as ue, openBlock as s, createElementBlock as i, normalizeStyle as d, unref as o, renderSlot as $, normalizeProps as ie, mergeProps as E, createCommentVNode as p, createElementVNode as v, toDisplayString as g, Fragment as V, renderList as re, createVNode as ve, createBlock as ce } from "vue";
|
|
2
|
-
import { j as de, t as O, m as fe, p as w, n as pe, o as ge, q as j, r as me, s as ye, u as D, k as _, l as A, X as he, v as ke } from "./lib-
|
|
3
|
-
import { u as xe } from "./useConfig-
|
|
4
|
-
import { u as be, B as Ce } from "./BaseScanner-
|
|
5
|
-
import { u as I } from "./useNestedProp-
|
|
6
|
-
import { u as we } from "./useThemeCheck-
|
|
7
|
-
import { u as _e } from "./usePrefersMotion-
|
|
2
|
+
import { j as de, t as O, m as fe, p as w, n as pe, o as ge, q as j, r as me, s as ye, u as D, k as _, l as A, X as he, v as ke } from "./lib-DMzrGQHK.js";
|
|
3
|
+
import { u as xe } from "./useConfig-DTHxOX6V.js";
|
|
4
|
+
import { u as be, B as Ce } from "./BaseScanner-BON3d_Sx.js";
|
|
5
|
+
import { u as I } from "./useNestedProp-DH0BEVVS.js";
|
|
6
|
+
import { u as we } from "./useThemeCheck-C9Ccl7U9.js";
|
|
7
|
+
import { u as _e } from "./usePrefersMotion-Co0nj1eS.js";
|
|
8
8
|
import Ae from "./vue_ui_sparkbar-BsMzz5Um.js";
|
|
9
9
|
const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
10
10
|
key: 1,
|
|
@@ -38,9 +38,13 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["selectDatapoint"],
|
|
40
40
|
setup(R, { emit: U }) {
|
|
41
|
-
const W = oe(
|
|
41
|
+
const W = oe(
|
|
42
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
43
|
+
), { vue_ui_sparkbar: q } = xe(), { isThemeValid: G, warnInvalidTheme: H } = we(), T = _e(), f = R, X = ne();
|
|
42
44
|
M(() => {
|
|
43
|
-
X["chart-background"] && console.warn(
|
|
45
|
+
X["chart-background"] && console.warn(
|
|
46
|
+
"VueUiSparkbar does not support the #chart-background slot."
|
|
47
|
+
);
|
|
44
48
|
});
|
|
45
49
|
const L = k(de()), e = k(S()), J = x(() => O({
|
|
46
50
|
defaultConfig: {
|
|
@@ -94,14 +98,20 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
94
98
|
customPalette: n.customPalette.length ? n.customPalette : fe[a] || w
|
|
95
99
|
};
|
|
96
100
|
}
|
|
97
|
-
B(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
B(
|
|
102
|
+
() => f.config,
|
|
103
|
+
(t) => {
|
|
104
|
+
e.value = S();
|
|
105
|
+
},
|
|
106
|
+
{ deep: !0 }
|
|
107
|
+
);
|
|
108
|
+
const K = x(() => pe(e.value.customPalette)), m = k(
|
|
109
|
+
c.value.map((t) => ({
|
|
110
|
+
...t,
|
|
111
|
+
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
112
|
+
formatter: t.formatter || null
|
|
113
|
+
}))
|
|
114
|
+
), N = k(null);
|
|
105
115
|
M(async () => {
|
|
106
116
|
ge(f.dataset) && j({
|
|
107
117
|
componentName: "VueUiSparkbar",
|
|
@@ -126,13 +136,17 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
126
136
|
h();
|
|
127
137
|
}
|
|
128
138
|
}
|
|
129
|
-
B(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
value
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
B(
|
|
140
|
+
() => c.value,
|
|
141
|
+
async (t) => {
|
|
142
|
+
cancelAnimationFrame(N.value), m.value = c.value.map((a) => ({
|
|
143
|
+
...a,
|
|
144
|
+
value: e.value.style.animation.show && !T.value ? 0 : a.value || 0,
|
|
145
|
+
formatter: a.formatter || null
|
|
146
|
+
})), ue(P);
|
|
147
|
+
},
|
|
148
|
+
{ deep: !0 }
|
|
149
|
+
);
|
|
136
150
|
const r = k({
|
|
137
151
|
width: 500,
|
|
138
152
|
height: 16
|
|
@@ -165,13 +179,22 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
165
179
|
}
|
|
166
180
|
const ee = U;
|
|
167
181
|
function te(t, a) {
|
|
168
|
-
ee("selectDatapoint", { datapoint: t, index: a }), e.value.events.datapointClick && e.value.events.datapointClick({
|
|
182
|
+
ee("selectDatapoint", { datapoint: t, index: a }), e.value.events.datapointClick && e.value.events.datapointClick({
|
|
183
|
+
datapoint: t,
|
|
184
|
+
seriesIndex: a
|
|
185
|
+
});
|
|
169
186
|
}
|
|
170
187
|
function le(t, a) {
|
|
171
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
188
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
189
|
+
datapoint: t,
|
|
190
|
+
seriesIndex: a
|
|
191
|
+
});
|
|
172
192
|
}
|
|
173
193
|
function ae(t, a) {
|
|
174
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
194
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
195
|
+
datapoint: t,
|
|
196
|
+
seriesIndex: a
|
|
197
|
+
});
|
|
175
198
|
}
|
|
176
199
|
return (t, a) => (s(), i("div", {
|
|
177
200
|
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
@@ -179,10 +202,19 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
179
202
|
width: "100%",
|
|
180
203
|
position: "relative",
|
|
181
204
|
fontFamily: e.value.style.fontFamily,
|
|
182
|
-
background: f.backgroundOpacity !== null ? o(D)(
|
|
205
|
+
background: f.backgroundOpacity !== null ? o(D)(
|
|
206
|
+
e.value.style.backgroundColor,
|
|
207
|
+
f.backgroundOpacity
|
|
208
|
+
) : e.value.style.backgroundColor
|
|
183
209
|
})
|
|
184
210
|
}, [
|
|
185
|
-
t.$slots.title ? $(t.$slots, "title", ie(E({ key: 0 }, {
|
|
211
|
+
t.$slots.title ? $(t.$slots, "title", ie(E({ key: 0 }, {
|
|
212
|
+
title: {
|
|
213
|
+
...t.title,
|
|
214
|
+
title: e.value.style.title.text,
|
|
215
|
+
subtitle: e.value.style.title.subtitle.text
|
|
216
|
+
}
|
|
217
|
+
}))) : p("", !0),
|
|
186
218
|
!t.$slots.title && e.value.style.title.text ? (s(), i("div", {
|
|
187
219
|
key: 1,
|
|
188
220
|
class: "vue-ui-sparkbar-title-container",
|
|
@@ -219,37 +251,43 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
219
251
|
o(b) ? p("", !0) : $(t.$slots, "data-label", E({
|
|
220
252
|
key: 0,
|
|
221
253
|
ref_for: !0
|
|
222
|
-
}, {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
254
|
+
}, {
|
|
255
|
+
bar: {
|
|
256
|
+
...l,
|
|
257
|
+
target: y(l),
|
|
258
|
+
valueLabel: o(_)(
|
|
259
|
+
l.formatter,
|
|
260
|
+
l.value,
|
|
261
|
+
o(A)({
|
|
262
|
+
p: l.prefix || "",
|
|
263
|
+
v: l.value,
|
|
264
|
+
s: l.suffix || "",
|
|
265
|
+
r: l.rounding || 0
|
|
266
|
+
}),
|
|
267
|
+
{ datapoint: l, seriesIndex: n }
|
|
268
|
+
),
|
|
269
|
+
targetLabel: o(_)(
|
|
270
|
+
l.formatter,
|
|
271
|
+
y(l),
|
|
272
|
+
o(A)({
|
|
273
|
+
p: l.prefix || "",
|
|
274
|
+
v: y(l),
|
|
275
|
+
s: l.suffix || "",
|
|
276
|
+
r: l.rounding || 0
|
|
277
|
+
}),
|
|
278
|
+
{ datapoint: l, seriesIndex: n }
|
|
279
|
+
)
|
|
280
|
+
}
|
|
281
|
+
})),
|
|
248
282
|
!t.$slots["data-label"] || o(b) ? (s(), i("div", {
|
|
249
283
|
key: 1,
|
|
250
284
|
style: d({
|
|
251
285
|
display: "flex",
|
|
252
|
-
justifyContent: ["right", "top-right"].includes(
|
|
286
|
+
justifyContent: ["right", "top-right"].includes(
|
|
287
|
+
e.value.style.labels.name.position
|
|
288
|
+
) ? "flex-end" : ["top-center"].includes(
|
|
289
|
+
e.value.style.labels.name.position
|
|
290
|
+
) ? "center" : "flex-start",
|
|
253
291
|
alignItems: "center",
|
|
254
292
|
width: e.value.style.labels.name.width,
|
|
255
293
|
color: e.value.style.labels.name.color,
|
|
@@ -272,10 +310,20 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
272
310
|
})
|
|
273
311
|
}, [
|
|
274
312
|
v("div", {
|
|
275
|
-
style: d({
|
|
313
|
+
style: d({
|
|
314
|
+
height: "100%",
|
|
315
|
+
width: "40px",
|
|
316
|
+
borderRadius: e.value.style.labels.fontSize / 4 + "px",
|
|
317
|
+
backgroundColor: "#6A6A6A80"
|
|
318
|
+
})
|
|
276
319
|
}, null, 4),
|
|
277
320
|
v("div", {
|
|
278
|
-
style: d({
|
|
321
|
+
style: d({
|
|
322
|
+
height: "100%",
|
|
323
|
+
width: "15px",
|
|
324
|
+
borderRadius: e.value.style.labels.fontSize / 4 + "px",
|
|
325
|
+
backgroundColor: "#6A6A6A80"
|
|
326
|
+
})
|
|
279
327
|
}, null, 4)
|
|
280
328
|
], 4)) : (s(), i(V, { key: 1 }, [
|
|
281
329
|
v("span", null, g(l.name), 1),
|
|
@@ -324,7 +372,10 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
324
372
|
}, [
|
|
325
373
|
v("stop", {
|
|
326
374
|
offset: "0%",
|
|
327
|
-
"stop-color": o(D)(
|
|
375
|
+
"stop-color": o(D)(
|
|
376
|
+
o(ke)(l.color, 0.03),
|
|
377
|
+
100 - e.value.style.bar.gradient.intensity
|
|
378
|
+
)
|
|
328
379
|
}, null, 8, Te),
|
|
329
380
|
v("stop", {
|
|
330
381
|
offset: "100%",
|
|
@@ -337,7 +388,10 @@ const Se = ["onClick", "onMouseenter", "onMouseleave"], $e = {
|
|
|
337
388
|
width: r.value.width,
|
|
338
389
|
x: 0,
|
|
339
390
|
y: 0,
|
|
340
|
-
fill: o(D)(
|
|
391
|
+
fill: o(D)(
|
|
392
|
+
e.value.style.gutter.backgroundColor,
|
|
393
|
+
e.value.style.gutter.opacity
|
|
394
|
+
),
|
|
341
395
|
rx: r.value.height / 2
|
|
342
396
|
}, null, 8, ze),
|
|
343
397
|
v("rect", {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineAsyncComponent as H, ref as p, computed as s, toRefs as K, onMounted as D, watch as E, onBeforeUnmount as J, openBlock as i, createElementBlock as c, normalizeStyle as b, toDisplayString as x, createCommentVNode as m, unref as r, createVNode as Q, renderSlot as A, createElementVNode as g, normalizeClass as W, createBlock as Z } from "vue";
|
|
2
|
-
import { u as w } from "./useNestedProp-
|
|
3
|
-
import { j as ee, t as I, o as te, q as R, r as ae, ao as le, X as oe, k as se, K as _, l as ne } from "./lib-
|
|
4
|
-
import { u as ue } from "./useConfig-
|
|
5
|
-
import { u as ie, B as re } from "./BaseScanner-
|
|
6
|
-
import { u as ve } from "./useThemeCheck-
|
|
7
|
-
import { u as ce } from "./useChartAccessibility-
|
|
8
|
-
import { u as fe } from "./usePrefersMotion-
|
|
2
|
+
import { u as w } from "./useNestedProp-DH0BEVVS.js";
|
|
3
|
+
import { j as ee, t as I, o as te, q as R, r as ae, ao as le, X as oe, k as se, K as _, l as ne } from "./lib-DMzrGQHK.js";
|
|
4
|
+
import { u as ue } from "./useConfig-DTHxOX6V.js";
|
|
5
|
+
import { u as ie, B as re } from "./BaseScanner-BON3d_Sx.js";
|
|
6
|
+
import { u as ve } from "./useThemeCheck-C9Ccl7U9.js";
|
|
7
|
+
import { u as ce } from "./useChartAccessibility-cp6XQtqi.js";
|
|
8
|
+
import { u as fe } from "./usePrefersMotion-Co0nj1eS.js";
|
|
9
9
|
import de from "./vue_ui_sparkgauge-KnjASOZs.js";
|
|
10
10
|
const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["stop-color"], pe = ["stop-color"], be = ["d", "stroke", "stroke-linecap"], ke = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], Ce = ["x", "y", "width", "height"], xe = ["x", "y", "font-size", "fill", "font-weight"], Ae = {
|
|
11
11
|
key: 2,
|
|
@@ -28,7 +28,9 @@ const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["s
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(T) {
|
|
31
|
-
const j = H(
|
|
31
|
+
const j = H(
|
|
32
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
33
|
+
), { vue_ui_sparkgauge: O } = ue(), { isThemeValid: U, warnInvalidTheme: G } = ve(), P = fe(), f = p(null), v = T, $ = p(ee()), e = p(C()), y = s(() => e.value.style.animation.show && !P.value), q = s(() => I({
|
|
32
34
|
defaultConfig: {
|
|
33
35
|
style: {
|
|
34
36
|
animation: { show: !1 },
|
|
@@ -67,7 +69,9 @@ const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["s
|
|
|
67
69
|
max: l,
|
|
68
70
|
diff: u
|
|
69
71
|
};
|
|
70
|
-
}), L = s(() => n.value.diff / e.value.style.animation.speedMs), { svgRef: V } = ce({
|
|
72
|
+
}), L = s(() => n.value.diff / e.value.style.animation.speedMs), { svgRef: V } = ce({
|
|
73
|
+
config: { text: v.dataset?.title || "" }
|
|
74
|
+
});
|
|
71
75
|
function C() {
|
|
72
76
|
const t = w({
|
|
73
77
|
userConfig: v.config,
|
|
@@ -106,14 +110,20 @@ const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["s
|
|
|
106
110
|
});
|
|
107
111
|
});
|
|
108
112
|
}
|
|
109
|
-
E(
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
E(
|
|
114
|
+
() => v.config,
|
|
115
|
+
() => {
|
|
116
|
+
e.value = C(), a.value = y.value ? n.value.min : d.value.value, z();
|
|
117
|
+
},
|
|
118
|
+
{ deep: !0 }
|
|
119
|
+
);
|
|
112
120
|
const o = s(() => ({
|
|
113
121
|
height: e.value.style.height,
|
|
114
122
|
width: 128,
|
|
115
123
|
base: e.value.style.basePosition
|
|
116
|
-
})), a = p(
|
|
124
|
+
})), a = p(
|
|
125
|
+
y.value ? n.value.min : d.value.value
|
|
126
|
+
);
|
|
117
127
|
E(
|
|
118
128
|
[() => d.value.value, y],
|
|
119
129
|
([t, l]) => {
|
|
@@ -131,7 +141,13 @@ const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["s
|
|
|
131
141
|
return;
|
|
132
142
|
}
|
|
133
143
|
function u() {
|
|
134
|
-
a.value < t ? a.value = Math.min(
|
|
144
|
+
a.value < t ? a.value = Math.min(
|
|
145
|
+
a.value + L.value,
|
|
146
|
+
t
|
|
147
|
+
) : a.value > t && (a.value = Math.max(
|
|
148
|
+
a.value - L.value,
|
|
149
|
+
t
|
|
150
|
+
)), a.value !== t ? f.value = requestAnimationFrame(u) : f.value = null;
|
|
135
151
|
}
|
|
136
152
|
u();
|
|
137
153
|
}
|
|
@@ -140,7 +156,13 @@ const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["s
|
|
|
140
156
|
if (!isFinite(t) || t === 0) return 0;
|
|
141
157
|
const l = n.value.min, u = X.value;
|
|
142
158
|
return u >= 0 ? (u - l) / t : (Math.abs(l) - Math.abs(u)) / t;
|
|
143
|
-
}), F = s(() => le(
|
|
159
|
+
}), F = s(() => le(
|
|
160
|
+
e.value.style.colors.min,
|
|
161
|
+
e.value.style.colors.max,
|
|
162
|
+
n.value.min,
|
|
163
|
+
n.value.max,
|
|
164
|
+
a.value
|
|
165
|
+
)), B = s(() => e.value.style.dataLabel.autoColor ? F.value : e.value.style.dataLabel.color), Y = s(() => e.value.style.track.autoColor ? F.value : e.value.style.track.color);
|
|
144
166
|
return J(() => {
|
|
145
167
|
f.value && cancelAnimationFrame(f.value);
|
|
146
168
|
}), (t, l) => (i(), c("div", {
|
|
@@ -206,8 +228,12 @@ const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["s
|
|
|
206
228
|
fill: "none",
|
|
207
229
|
"stroke-dasharray": 169.5,
|
|
208
230
|
"stroke-dashoffset": 169.5 - 169.5 * N.value,
|
|
209
|
-
class: W({
|
|
210
|
-
|
|
231
|
+
class: W({
|
|
232
|
+
"vue-ui-sparkgauge-track": e.value.style.animation.show
|
|
233
|
+
}),
|
|
234
|
+
style: b(
|
|
235
|
+
e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : ""
|
|
236
|
+
)
|
|
211
237
|
}, null, 14, ke)) : m("", !0),
|
|
212
238
|
r(k) ? (i(), c("rect", {
|
|
213
239
|
key: 2,
|
|
@@ -234,7 +260,10 @@ const me = ["xmlns", "viewBox"], ge = ["width", "height"], ye = ["id"], he = ["s
|
|
|
234
260
|
s: e.value.style.dataLabel.suffix,
|
|
235
261
|
r: e.value.style.dataLabel.rounding
|
|
236
262
|
}),
|
|
237
|
-
{
|
|
263
|
+
{
|
|
264
|
+
datapoint: r(_)(a.value),
|
|
265
|
+
color: B.value
|
|
266
|
+
}
|
|
238
267
|
)), 9, xe))
|
|
239
268
|
], 8, me)),
|
|
240
269
|
e.value.style.title.show && h.value && e.value.style.title.position === "bottom" ? (i(), c("div", {
|