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,21 +1,21 @@
|
|
|
1
1
|
import { defineAsyncComponent as L, ref as n, computed as d, toRefs as Kt, onMounted as Yt, watch as Qe, openBlock as u, createElementBlock as p, unref as r, normalizeStyle as X, normalizeClass as ae, createElementVNode as C, toDisplayString as oe, createBlock as $, createCommentVNode as h, withCtx as i, renderSlot as c, normalizeProps as b, guardReactiveProps as m, createSlots as Ze, createVNode as ke, Fragment as et, renderList as tt, Teleport as qt, resolveDynamicComponent as Jt, mergeProps as Qt, createTextVNode as lt, nextTick as ne } from "vue";
|
|
2
|
-
import { j as at, t as ot, o as Zt, q as nt, r as el, m as tl, p as se, n as ll, a8 as st, s as al, ad as ol, k as ut, l as D, X as nl, T as rt, a0 as sl, a1 as ul, U as rl } from "./lib-
|
|
3
|
-
import { b as il } from "./labelUtils-
|
|
2
|
+
import { j as at, t as ot, o as Zt, q as nt, r as el, m as tl, p as se, n as ll, a8 as st, s as al, ad as ol, k as ut, l as D, X as nl, T as rt, a0 as sl, a1 as ul, U as rl } from "./lib-DMzrGQHK.js";
|
|
3
|
+
import { b as il } from "./labelUtils-DX9oyq3C.js";
|
|
4
4
|
import { t as cl, u as vl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as dl } from "./useConfig-
|
|
6
|
-
import { u as hl, B as gl } from "./BaseScanner-
|
|
7
|
-
import { u as pl } from "./usePrinter-
|
|
8
|
-
import { u as fl } from "./useSvgExport-
|
|
9
|
-
import { u as Ce } from "./useNestedProp-
|
|
10
|
-
import { u as yl } from "./useThemeCheck-
|
|
11
|
-
import { u as bl } from "./useUserOptionState-
|
|
12
|
-
import { u as ml } from "./useChartAccessibility-
|
|
13
|
-
import kl from "./img-
|
|
14
|
-
import Cl from "./Title-
|
|
15
|
-
import wl from "./Legend-
|
|
5
|
+
import { u as dl } from "./useConfig-DTHxOX6V.js";
|
|
6
|
+
import { u as hl, B as gl } from "./BaseScanner-BON3d_Sx.js";
|
|
7
|
+
import { u as pl } from "./usePrinter-C4t8DdQ-.js";
|
|
8
|
+
import { u as fl } from "./useSvgExport-BTG4hVPO.js";
|
|
9
|
+
import { u as Ce } from "./useNestedProp-DH0BEVVS.js";
|
|
10
|
+
import { u as yl } from "./useThemeCheck-C9Ccl7U9.js";
|
|
11
|
+
import { u as bl } from "./useUserOptionState-B7Ej974k.js";
|
|
12
|
+
import { u as ml } from "./useChartAccessibility-cp6XQtqi.js";
|
|
13
|
+
import kl from "./img-CjTQXS0U.js";
|
|
14
|
+
import Cl from "./Title-BbKoiBk2.js";
|
|
15
|
+
import wl from "./Legend-DGN5lY60.js";
|
|
16
16
|
import Tl from "./vue_ui_galaxy-D95AN4FT.js";
|
|
17
|
-
import { A as $l } from "./A11yDataTable-
|
|
18
|
-
import { B as xl } from "./BaseLegendToggle-
|
|
17
|
+
import { A as $l } from "./A11yDataTable-BpmuNomI.js";
|
|
18
|
+
import { B as xl } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
19
19
|
import { _ as Sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
20
|
const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative" } }, Ll = ["xmlns", "aria-describedby", "viewBox"], Dl = ["width", "height"], Fl = ["id"], _l = ["stdDeviation"], Nl = ["d", "stroke", "stroke-width"], Bl = ["d", "stroke", "stroke-width"], Vl = ["filter"], El = ["d", "stroke", "stroke-width"], Ml = ["data-a11y-serie-id", "d", "stroke-width", "aria-label", "onMouseenter", "onMouseleave", "onClick"], Rl = {
|
|
21
21
|
key: 0,
|
|
@@ -43,7 +43,17 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
43
43
|
},
|
|
44
44
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
45
45
|
setup(it, { expose: ct, emit: vt }) {
|
|
46
|
-
const dt = L(() => import("./Tooltip-
|
|
46
|
+
const dt = L(() => import("./Tooltip-Cvt7Fi0Q.js")), ht = L(() => import("./BaseIcon-DX0hTWa-.js")), gt = L(() => import("./vue-ui-accordion-BHmfmb_6.js")), pt = L(() => import("./DataTable-cMnb68Ik.js")), ft = L(
|
|
47
|
+
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
48
|
+
), yt = L(
|
|
49
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
50
|
+
), bt = L(
|
|
51
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
52
|
+
), mt = L(
|
|
53
|
+
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
54
|
+
), { vue_ui_galaxy: kt } = dl(), { isThemeValid: Ct, warnInvalidTheme: wt } = yl(), T = it, k = n(at()), x = n(null), j = n(!1), ue = n(""), P = n(null), we = n(0), Te = n(0), $e = n(0), xe = n(0), Se = n(null), Pe = n(null), Ae = n(null), Oe = n(null), M = n(null), K = n(null), Ie = n(!1), R = n(null), re = n(null), Y = n(!1), q = n(!1), B = n(null), J = n(null), Le = n({ x: 0, y: 0 }), ie = n("pointer"), Q = n(!1), De = d(() => !!T.dataset && T.dataset.length), e = n(ve()), U = d(
|
|
55
|
+
() => e.value.userOptions.useCursorPointer
|
|
56
|
+
), Tt = d(() => ot({
|
|
47
57
|
defaultConfig: {
|
|
48
58
|
userOptions: { show: !1 },
|
|
49
59
|
table: { show: !1 },
|
|
@@ -115,7 +125,9 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
115
125
|
M.value && (K.value && M.value.unobserve(K.value), M.value.disconnect()), M.value = new ResizeObserver(t), K.value = x.value.parentNode, M.value.observe(K.value);
|
|
116
126
|
}
|
|
117
127
|
}
|
|
118
|
-
const { userOptionsVisible: ce, setUserOptionsVisibility: Be, keepUserOptionState: Ve } = bl({ config: e.value }), { svgRef: F } = ml({
|
|
128
|
+
const { userOptionsVisible: ce, setUserOptionsVisibility: Be, keepUserOptionState: Ve } = bl({ config: e.value }), { svgRef: F } = ml({
|
|
129
|
+
config: e.value.style.chart.title
|
|
130
|
+
});
|
|
119
131
|
function ve() {
|
|
120
132
|
const t = Ce({
|
|
121
133
|
userConfig: T.config,
|
|
@@ -136,9 +148,13 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
136
148
|
customPalette: o.customPalette.length ? o.customPalette : tl[a] || se
|
|
137
149
|
};
|
|
138
150
|
}
|
|
139
|
-
Qe(
|
|
140
|
-
|
|
141
|
-
|
|
151
|
+
Qe(
|
|
152
|
+
() => T.config,
|
|
153
|
+
(t) => {
|
|
154
|
+
e.value = ve(), ce.value = !e.value.userOptions.showOnChartHover, Ne(), Te.value += 1, $e.value += 1, xe.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
155
|
+
},
|
|
156
|
+
{ deep: !0 }
|
|
157
|
+
);
|
|
142
158
|
const { isPrinting: de, isImaging: he, generatePdf: Ee, generateImage: Me } = pl({
|
|
143
159
|
elementId: `galaxy_${k.value}`,
|
|
144
160
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
@@ -160,11 +176,14 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
160
176
|
});
|
|
161
177
|
}
|
|
162
178
|
function z(t) {
|
|
163
|
-
g.value.includes(t.id) ? g.value = g.value.filter((a) => a !== t.id) : g.value.push(t.id), ge(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
179
|
+
g.value.includes(t.id) ? g.value = g.value.filter((a) => a !== t.id) : g.value.push(t.id), ge(
|
|
180
|
+
"selectLegend",
|
|
181
|
+
V.value.map((a) => ({
|
|
182
|
+
name: a.name,
|
|
183
|
+
color: a.color,
|
|
184
|
+
value: a.value
|
|
185
|
+
}))
|
|
186
|
+
);
|
|
168
187
|
}
|
|
169
188
|
function Re(t) {
|
|
170
189
|
if (!w.value.length)
|
|
@@ -241,7 +260,9 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
241
260
|
}
|
|
242
261
|
function _t(t) {
|
|
243
262
|
if (!F.value || !t) return;
|
|
244
|
-
const a = F.value.querySelector(
|
|
263
|
+
const a = F.value.querySelector(
|
|
264
|
+
`[data-a11y-serie-id="${t}"]`
|
|
265
|
+
);
|
|
245
266
|
if (!a) return;
|
|
246
267
|
const l = a.getBoundingClientRect();
|
|
247
268
|
Le.value = {
|
|
@@ -250,17 +271,18 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
250
271
|
};
|
|
251
272
|
}
|
|
252
273
|
function Nt(t) {
|
|
253
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
274
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
275
|
+
datapoint: t,
|
|
276
|
+
seriesIndex: t.absoluteIndex
|
|
277
|
+
}), !(J.value === t.id && ie.value === "keyboard") && (j.value = !1, P.value = null);
|
|
254
278
|
}
|
|
255
279
|
function Ge(t) {
|
|
256
|
-
ge("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({
|
|
280
|
+
ge("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({
|
|
281
|
+
datapoint: t,
|
|
282
|
+
seriesIndex: t.absoluteIndex
|
|
283
|
+
});
|
|
257
284
|
}
|
|
258
|
-
function He({
|
|
259
|
-
val: t,
|
|
260
|
-
percentage: a,
|
|
261
|
-
showVal: l,
|
|
262
|
-
showPercentage: o
|
|
263
|
-
}) {
|
|
285
|
+
function He({ val: t, percentage: a, showVal: l, showPercentage: o }) {
|
|
264
286
|
const v = e.value.style.chart.layout.labels.dataLabels;
|
|
265
287
|
return il({
|
|
266
288
|
config: v,
|
|
@@ -270,8 +292,18 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
270
292
|
showPercentage: o
|
|
271
293
|
});
|
|
272
294
|
}
|
|
273
|
-
function Xe({
|
|
274
|
-
|
|
295
|
+
function Xe({
|
|
296
|
+
datapoint: t,
|
|
297
|
+
_relativeIndex: a,
|
|
298
|
+
seriesIndex: l,
|
|
299
|
+
show: o = !1,
|
|
300
|
+
triggerMode: v = "pointer",
|
|
301
|
+
flatIndex: s = null
|
|
302
|
+
}) {
|
|
303
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
304
|
+
datapoint: t,
|
|
305
|
+
seriesIndex: t.absoluteIndex
|
|
306
|
+
}), !f.value.showTooltip) return;
|
|
275
307
|
ie.value = v, B.value = s, J.value = t.id, le.value = {
|
|
276
308
|
datapoint: t,
|
|
277
309
|
seriesIndex: l,
|
|
@@ -280,12 +312,14 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
280
312
|
}, j.value = o, P.value = t.id;
|
|
281
313
|
let y = "";
|
|
282
314
|
const I = e.value.style.chart.tooltip.customFormat;
|
|
283
|
-
rt(I) && rl(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
315
|
+
rt(I) && rl(
|
|
316
|
+
() => I({
|
|
317
|
+
seriesIndex: l,
|
|
318
|
+
datapoint: t,
|
|
319
|
+
series: w.value,
|
|
320
|
+
config: e.value
|
|
321
|
+
})
|
|
322
|
+
) ? ue.value = I({
|
|
289
323
|
seriesIndex: l,
|
|
290
324
|
datapoint: t,
|
|
291
325
|
series: w.value,
|
|
@@ -314,12 +348,21 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
314
348
|
});
|
|
315
349
|
}
|
|
316
350
|
const W = d(() => w.value.map((t, a) => {
|
|
317
|
-
const l = ut(
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
351
|
+
const l = ut(
|
|
352
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
353
|
+
t.value,
|
|
354
|
+
D({
|
|
355
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
356
|
+
v: t.value,
|
|
357
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
358
|
+
r: e.value.style.chart.legend.roundingValue
|
|
359
|
+
}),
|
|
360
|
+
{ datapoint: t, index: a }
|
|
361
|
+
), o = isNaN(t.value / S.value) || g.value.includes(t.id) ? "-" : D({
|
|
362
|
+
v: t.value / S.value * 100,
|
|
363
|
+
s: "%",
|
|
364
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
365
|
+
}), v = He({
|
|
323
366
|
showVal: e.value.style.chart.legend.showValue,
|
|
324
367
|
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
325
368
|
val: l,
|
|
@@ -350,19 +393,40 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
350
393
|
});
|
|
351
394
|
function ye(t = null) {
|
|
352
395
|
ne(() => {
|
|
353
|
-
const a = O.value.head.map((v, s) => [
|
|
354
|
-
v.name
|
|
355
|
-
|
|
356
|
-
|
|
396
|
+
const a = O.value.head.map((v, s) => [
|
|
397
|
+
[v.name],
|
|
398
|
+
[O.value.body[s]],
|
|
399
|
+
[
|
|
400
|
+
isNaN(O.value.body[s] / S.value) ? "-" : O.value.body[s] / S.value * 100
|
|
401
|
+
]
|
|
402
|
+
]), l = [
|
|
403
|
+
[e.value.style.chart.title.text],
|
|
404
|
+
[e.value.style.chart.title.subtitle.text],
|
|
405
|
+
[[""], ["val"], ["%"]]
|
|
406
|
+
].concat(a), o = sl(l);
|
|
407
|
+
t ? t(o) : ul({
|
|
408
|
+
csvContent: o,
|
|
409
|
+
title: e.value.style.chart.title.text || "vue-ui-galaxy"
|
|
410
|
+
});
|
|
357
411
|
});
|
|
358
412
|
}
|
|
359
413
|
const E = d(() => {
|
|
360
414
|
const t = [
|
|
361
415
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
362
|
-
D({
|
|
416
|
+
D({
|
|
417
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
418
|
+
v: S.value,
|
|
419
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
420
|
+
r: e.value.table.td.roundingValue
|
|
421
|
+
}),
|
|
363
422
|
"100%"
|
|
364
423
|
], a = O.value.head.map((v, s) => {
|
|
365
|
-
const y = D({
|
|
424
|
+
const y = D({
|
|
425
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
426
|
+
v: O.value.body[s],
|
|
427
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
428
|
+
r: e.value.table.td.roundingValue
|
|
429
|
+
});
|
|
366
430
|
return [
|
|
367
431
|
{
|
|
368
432
|
color: v.color,
|
|
@@ -411,7 +475,12 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
411
475
|
}
|
|
412
476
|
async function Vt({ scale: t = 2 } = {}) {
|
|
413
477
|
if (!x.value) return;
|
|
414
|
-
const { width: a, height: l } = x.value.getBoundingClientRect(), o = a / l, { imageUri: v, base64: s } = await kl({
|
|
478
|
+
const { width: a, height: l } = x.value.getBoundingClientRect(), o = a / l, { imageUri: v, base64: s } = await kl({
|
|
479
|
+
domElement: x.value,
|
|
480
|
+
base64: !0,
|
|
481
|
+
img: !0,
|
|
482
|
+
scale: t
|
|
483
|
+
});
|
|
415
484
|
return {
|
|
416
485
|
imageUri: v,
|
|
417
486
|
base64: s,
|
|
@@ -452,9 +521,12 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
452
521
|
}
|
|
453
522
|
};
|
|
454
523
|
});
|
|
455
|
-
Qe(
|
|
456
|
-
|
|
457
|
-
|
|
524
|
+
Qe(
|
|
525
|
+
() => f.value.showTable,
|
|
526
|
+
(t) => {
|
|
527
|
+
e.value.table.show || (t && e.value.table.useDialog && R.value ? R.value.open() : "close" in R.value && R.value.close());
|
|
528
|
+
}
|
|
529
|
+
);
|
|
458
530
|
function Ye() {
|
|
459
531
|
f.value.showTable = !1, re.value && re.value.setTableIconState(!1);
|
|
460
532
|
}
|
|
@@ -473,7 +545,14 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
473
545
|
try {
|
|
474
546
|
if (t) {
|
|
475
547
|
const { blob: a, url: l, text: o, dataUrl: v } = await Wt();
|
|
476
|
-
await Promise.resolve(
|
|
548
|
+
await Promise.resolve(
|
|
549
|
+
e.value.userOptions.callbacks.svg({
|
|
550
|
+
blob: a,
|
|
551
|
+
url: l,
|
|
552
|
+
text: o,
|
|
553
|
+
dataUrl: v
|
|
554
|
+
})
|
|
555
|
+
);
|
|
477
556
|
} else
|
|
478
557
|
await Promise.resolve(zt());
|
|
479
558
|
} finally {
|
|
@@ -496,13 +575,17 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
496
575
|
config: e.value,
|
|
497
576
|
dataset: w.value
|
|
498
577
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
499
|
-
console.warn(
|
|
578
|
+
console.warn(
|
|
579
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
580
|
+
);
|
|
500
581
|
return;
|
|
501
582
|
}
|
|
502
|
-
await Promise.resolve(
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
583
|
+
await Promise.resolve(
|
|
584
|
+
e.value.userOptions.callbacks.altCopy({
|
|
585
|
+
config: e.value,
|
|
586
|
+
dataset: w.value
|
|
587
|
+
})
|
|
588
|
+
);
|
|
506
589
|
}
|
|
507
590
|
function Ht() {
|
|
508
591
|
B.value = null, J.value = null, Q.value = !0;
|
|
@@ -513,7 +596,8 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
513
596
|
function jt(t) {
|
|
514
597
|
if (!F.value || G.value || document.activeElement !== F.value || !N.value.length) return;
|
|
515
598
|
const a = t.key === "ArrowLeft" || t.key === "ArrowUp", l = t.key === "ArrowRight" || t.key === "ArrowDown", o = t.key === "Enter" || t.key === " ", v = t.key === "Escape";
|
|
516
|
-
if (!a && !l && !o && !v)
|
|
599
|
+
if (!a && !l && !o && !v)
|
|
600
|
+
return;
|
|
517
601
|
if (t.preventDefault(), t.stopPropagation(), v) {
|
|
518
602
|
fe();
|
|
519
603
|
return;
|
|
@@ -759,7 +843,10 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
759
843
|
ref: F,
|
|
760
844
|
xmlns: r(nl),
|
|
761
845
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
762
|
-
class: ae({
|
|
846
|
+
class: ae({
|
|
847
|
+
"vue-data-ui-fullscreen--on": _.value,
|
|
848
|
+
"vue-data-ui-fulscreen--off": !_.value
|
|
849
|
+
}),
|
|
763
850
|
viewBox: A.value.viewBox,
|
|
764
851
|
style: X(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`),
|
|
765
852
|
tabindex: "0",
|
|
@@ -861,11 +948,16 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
861
948
|
}, void 0, !0)
|
|
862
949
|
], 46, Ll)),
|
|
863
950
|
t.$slots.hint ? (u(), p("div", Rl, [
|
|
864
|
-
c(t.$slots, "hint", b(m({
|
|
951
|
+
c(t.$slots, "hint", b(m({
|
|
952
|
+
hint: e.value.a11y.translations.keyboardNavigation,
|
|
953
|
+
isVisible: Q.value
|
|
954
|
+
})), void 0, !0)
|
|
865
955
|
])) : h("", !0)
|
|
866
956
|
]),
|
|
867
957
|
t.$slots.watermark ? (u(), p("div", Ul, [
|
|
868
|
-
c(t.$slots, "watermark", b(m({
|
|
958
|
+
c(t.$slots, "watermark", b(m({
|
|
959
|
+
isPrinting: r(de) || r(he) || Y.value || q.value
|
|
960
|
+
})), void 0, !0)
|
|
869
961
|
])) : h("", !0),
|
|
870
962
|
C("div", {
|
|
871
963
|
id: `legend-bottom-${k.value}`
|
|
@@ -1009,7 +1101,7 @@ const Pl = ["id"], Al = ["id"], Ol = ["id"], Il = { style: { position: "relative
|
|
|
1009
1101
|
], !0)
|
|
1010
1102
|
], 46, Pl));
|
|
1011
1103
|
}
|
|
1012
|
-
}, va = /* @__PURE__ */ Sl(Hl, [["__scopeId", "data-v-
|
|
1104
|
+
}, va = /* @__PURE__ */ Sl(Hl, [["__scopeId", "data-v-26b908be"]]);
|
|
1013
1105
|
export {
|
|
1014
1106
|
va as default
|
|
1015
1107
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineAsyncComponent as ae, computed as d, ref as f, toRefs as ft, watch as le, shallowRef as Pe, onMounted as yt, onBeforeUnmount as gt, openBlock as s, createElementBlock as n, unref as u, normalizeStyle as oe, normalizeClass as Me, createBlock as V, withCtx as k, renderSlot as h, normalizeProps as $, guardReactiveProps as A, createCommentVNode as c, toDisplayString as T, createSlots as mt, createVNode as pt, createElementVNode as b, Fragment as S, renderList as z, mergeProps as L, nextTick as Ne } from "vue";
|
|
2
|
-
import { j as kt, t as Ie, m as bt, p as Xe, n as St, o as Re, s as wt, q as H, r as Ye, a4 as se, ae as M, af as _t, K as Ct, X as xt, u as re, Z as $t, a7 as At, k as ne, l as ue, a2 as ie } from "./lib-
|
|
2
|
+
import { j as kt, t as Ie, m as bt, p as Xe, n as St, o as Re, s as wt, q as H, r as Ye, a4 as se, ae as M, af as _t, K as Ct, X as xt, u as re, Z as $t, a7 as At, k as ne, l as ue, a2 as ie } from "./lib-DMzrGQHK.js";
|
|
3
3
|
import { t as zt, u as Ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ot, B as Pt } from "./BaseScanner-
|
|
5
|
-
import { u as Mt } from "./usePrinter-
|
|
6
|
-
import { u as Nt } from "./useConfig-
|
|
7
|
-
import { u as It } from "./useSvgExport-
|
|
8
|
-
import { u as ce } from "./useNestedProp-
|
|
9
|
-
import { u as Xt } from "./useThemeCheck-
|
|
10
|
-
import { u as Rt } from "./useUserOptionState-
|
|
11
|
-
import { u as Yt } from "./useChartAccessibility-
|
|
12
|
-
import { u as Tt } from "./useAutoSizeLabelsInsideViewbox-
|
|
13
|
-
import Et from "./img-
|
|
4
|
+
import { u as Ot, B as Pt } from "./BaseScanner-BON3d_Sx.js";
|
|
5
|
+
import { u as Mt } from "./usePrinter-C4t8DdQ-.js";
|
|
6
|
+
import { u as Nt } from "./useConfig-DTHxOX6V.js";
|
|
7
|
+
import { u as It } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
+
import { u as ce } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
+
import { u as Xt } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
+
import { u as Rt } from "./useUserOptionState-B7Ej974k.js";
|
|
11
|
+
import { u as Yt } from "./useChartAccessibility-cp6XQtqi.js";
|
|
12
|
+
import { u as Tt } from "./useAutoSizeLabelsInsideViewbox-izlGDfwu.js";
|
|
13
|
+
import Et from "./img-CjTQXS0U.js";
|
|
14
14
|
import Lt from "./vue_ui_gauge-BMEuRC4J.js";
|
|
15
|
-
import Gt from "./Title-
|
|
15
|
+
import Gt from "./Title-BbKoiBk2.js";
|
|
16
16
|
import { _ as Ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "height"], Vt = ["id"], Ht = ["stop-color"], qt = ["stop-color"], Zt = ["stop-color"], Kt = ["id"], Jt = ["stdDeviation"], Qt = { key: 1 }, ea = ["d", "fill", "stroke"], ta = ["d", "fill", "stroke"], aa = ["d", "fill"], la = ["id", "d"], oa = ["fill", "font-size", "font-weight"], sa = ["href", "startOffset"], ra = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], na = ["d", "filter"], ua = ["stroke", "stroke-width"], ia = ["stroke", "stroke-width"], ca = ["stroke", "stroke-width"], va = ["stroke", "stroke-width"], da = { key: 8 }, ha = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], fa = ["x", "y", "font-size", "font-weight", "fill"], ya = { key: 0 }, ga = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pa = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ka = { key: 1 }, ba = ["d", "fill", "stroke", "stroke-width"], Sa = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], wa = ["x", "y", "font-size", "fill"], _a = {
|
|
18
18
|
key: 4,
|
|
@@ -35,7 +35,15 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["copyAlt"],
|
|
37
37
|
setup(Te, { expose: Ee, emit: Le }) {
|
|
38
|
-
const Ge = ae(
|
|
38
|
+
const Ge = ae(
|
|
39
|
+
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
40
|
+
), Ue = ae(
|
|
41
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
42
|
+
), je = ae(
|
|
43
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
44
|
+
), { vue_ui_gauge: Be } = Nt(), { isThemeValid: De, warnInvalidTheme: We } = Xt(), g = Te, Ve = Le, He = d(() => !!g.dataset && Object.keys(g.dataset).length > 0 && g.dataset.series && g.dataset.series.length), C = f(kt()), qe = f(null), ve = f(0), N = f(null), de = f(null), he = f(null), fe = f(null), ye = f(null), ge = f(0), G = f(!1), U = f(!1), e = f(Z()), me = d(
|
|
45
|
+
() => e.value.userOptions.useCursorPointer
|
|
46
|
+
), Ze = d(() => Ie({
|
|
39
47
|
defaultConfig: {
|
|
40
48
|
userOptions: { show: !1 },
|
|
41
49
|
style: {
|
|
@@ -83,12 +91,22 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
83
91
|
defaultConfig: e.value,
|
|
84
92
|
userConfig: Ze.value
|
|
85
93
|
})
|
|
86
|
-
}), { userOptionsVisible: q, setUserOptionsVisibility: ke, keepUserOptionState: be } = Rt({ config: e.value }), { svgRef: j } = Yt({
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ke, keepUserOptionState: be } = Rt({ config: e.value }), { svgRef: j } = Yt({
|
|
95
|
+
config: e.value.style.chart.title
|
|
96
|
+
});
|
|
97
|
+
le(
|
|
98
|
+
() => g.config,
|
|
99
|
+
(t) => {
|
|
100
|
+
pe.value || (e.value = Z()), q.value = !e.value.userOptions.showOnChartHover, ee(), ge.value += 1;
|
|
101
|
+
},
|
|
102
|
+
{ deep: !0 }
|
|
103
|
+
), le(
|
|
104
|
+
() => g.dataset,
|
|
105
|
+
(t) => {
|
|
106
|
+
ee(), t && Object.keys(t).length > 0 && (X.value = e.value?.loading ?? !1);
|
|
107
|
+
},
|
|
108
|
+
{ deep: !0, immediate: !1 }
|
|
109
|
+
);
|
|
92
110
|
function Z() {
|
|
93
111
|
const t = ce({
|
|
94
112
|
userConfig: g.config,
|
|
@@ -155,9 +173,12 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
155
173
|
}), R = f(0), O = f(0), m = f(
|
|
156
174
|
e.value.style.chart.animation.use ? Math.min(...x.value.series.map((t) => t.from)) : x.value.value
|
|
157
175
|
);
|
|
158
|
-
le(
|
|
159
|
-
|
|
160
|
-
|
|
176
|
+
le(
|
|
177
|
+
() => x.value.value,
|
|
178
|
+
() => {
|
|
179
|
+
xe(x.value.value);
|
|
180
|
+
}
|
|
181
|
+
);
|
|
161
182
|
const i = d(() => {
|
|
162
183
|
const t = o.value.width / 2, r = v.value.base, a = Math.PI * ((m.value + 0 - O.value) / (R.value - O.value)) + Math.PI;
|
|
163
184
|
return {
|
|
@@ -268,7 +289,13 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
268
289
|
let a = e.value.style.chart.animation.speed;
|
|
269
290
|
const l = Math.abs(t - m.value) / (a * 60);
|
|
270
291
|
function p() {
|
|
271
|
-
m.value < t ? m.value = Math.min(
|
|
292
|
+
m.value < t ? m.value = Math.min(
|
|
293
|
+
m.value + l,
|
|
294
|
+
t
|
|
295
|
+
) : m.value > t && (m.value = Math.max(
|
|
296
|
+
m.value - l,
|
|
297
|
+
t
|
|
298
|
+
)), m.value !== t && requestAnimationFrame(p);
|
|
272
299
|
}
|
|
273
300
|
p();
|
|
274
301
|
}
|
|
@@ -343,7 +370,9 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
343
370
|
let l = 0;
|
|
344
371
|
return t.map((p) => (l += p, `${l / 100 * a - p / 4}%`));
|
|
345
372
|
}
|
|
346
|
-
const tt = d(() => et(
|
|
373
|
+
const tt = d(() => et(
|
|
374
|
+
y.value.map((t) => t.proportion * 100)
|
|
375
|
+
)), at = d(() => se(
|
|
347
376
|
{ series: F.value.series },
|
|
348
377
|
o.value.width / 2,
|
|
349
378
|
v.value.base,
|
|
@@ -361,7 +390,9 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
361
390
|
radius: e.value.style.chart.layout.indicatorArc.radius * o.value.trackSize,
|
|
362
391
|
centerX: o.value.width / 2,
|
|
363
392
|
centerY: v.value.base,
|
|
364
|
-
percentage: Ct(
|
|
393
|
+
percentage: Ct(
|
|
394
|
+
(m.value + t) / (R.value + t)
|
|
395
|
+
)
|
|
365
396
|
});
|
|
366
397
|
}), E = f(!1);
|
|
367
398
|
function ze(t) {
|
|
@@ -373,7 +404,12 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
373
404
|
}
|
|
374
405
|
async function ot({ scale: t = 2 } = {}) {
|
|
375
406
|
if (!N.value) return;
|
|
376
|
-
const { width: r, height: a } = N.value.getBoundingClientRect(), l = r / a, { imageUri: p, base64: _ } = await Et({
|
|
407
|
+
const { width: r, height: a } = N.value.getBoundingClientRect(), l = r / a, { imageUri: p, base64: _ } = await Et({
|
|
408
|
+
domElement: N.value,
|
|
409
|
+
base64: !0,
|
|
410
|
+
img: !0,
|
|
411
|
+
scale: t
|
|
412
|
+
});
|
|
377
413
|
return {
|
|
378
414
|
imageUri: p,
|
|
379
415
|
base64: _,
|
|
@@ -393,7 +429,14 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
393
429
|
try {
|
|
394
430
|
if (t) {
|
|
395
431
|
const { blob: r, url: a, text: l, dataUrl: p } = await ut();
|
|
396
|
-
await Promise.resolve(
|
|
432
|
+
await Promise.resolve(
|
|
433
|
+
e.value.userOptions.callbacks.svg({
|
|
434
|
+
blob: r,
|
|
435
|
+
url: a,
|
|
436
|
+
text: l,
|
|
437
|
+
dataUrl: p
|
|
438
|
+
})
|
|
439
|
+
);
|
|
397
440
|
} else
|
|
398
441
|
await Promise.resolve(nt());
|
|
399
442
|
} finally {
|
|
@@ -416,13 +459,17 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
416
459
|
config: e.value,
|
|
417
460
|
dataset: F.value
|
|
418
461
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
419
|
-
console.warn(
|
|
462
|
+
console.warn(
|
|
463
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
464
|
+
);
|
|
420
465
|
return;
|
|
421
466
|
}
|
|
422
|
-
await Promise.resolve(
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
467
|
+
await Promise.resolve(
|
|
468
|
+
e.value.userOptions.callbacks.altCopy({
|
|
469
|
+
config: e.value,
|
|
470
|
+
dataset: F.value
|
|
471
|
+
})
|
|
472
|
+
);
|
|
426
473
|
}
|
|
427
474
|
return Ee({
|
|
428
475
|
getImage: ot,
|
|
@@ -590,7 +637,10 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
590
637
|
ref_key: "svgRef",
|
|
591
638
|
ref: j,
|
|
592
639
|
xmlns: u(xt),
|
|
593
|
-
class: Me({
|
|
640
|
+
class: Me({
|
|
641
|
+
"vue-data-ui-fullscreen--on": E.value,
|
|
642
|
+
"vue-data-ui-fulscreen--off": !E.value
|
|
643
|
+
}),
|
|
594
644
|
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
595
645
|
style: oe(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
596
646
|
}, [
|
|
@@ -622,7 +672,10 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
622
672
|
}, null, 8, Ht),
|
|
623
673
|
b("stop", {
|
|
624
674
|
offset: "80%",
|
|
625
|
-
"stop-color": u(re)(
|
|
675
|
+
"stop-color": u(re)(
|
|
676
|
+
"#FFFFFF",
|
|
677
|
+
e.value.style.chart.layout.track.gradientIntensity
|
|
678
|
+
)
|
|
626
679
|
}, null, 8, qt),
|
|
627
680
|
b("stop", {
|
|
628
681
|
offset: "100%",
|
|
@@ -646,7 +699,10 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
646
699
|
]),
|
|
647
700
|
t.$slots.pattern ? (s(), n("g", Qt, [
|
|
648
701
|
(s(!0), n(S, null, z(y.value, (a, l) => (s(), n("defs", null, [
|
|
649
|
-
h(t.$slots, "pattern", L({ ref_for: !0 }, {
|
|
702
|
+
h(t.$slots, "pattern", L({ ref_for: !0 }, {
|
|
703
|
+
seriesIndex: l,
|
|
704
|
+
patternId: `pattern_${C.value}_${l}`
|
|
705
|
+
}), void 0, !0)
|
|
650
706
|
]))), 256))
|
|
651
707
|
])) : c("", !0),
|
|
652
708
|
(s(!0), n(S, null, z(y.value, (a, l) => (s(), n("path", {
|
|
@@ -870,7 +926,9 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
870
926
|
}, void 0, !0)
|
|
871
927
|
], 14, Dt)),
|
|
872
928
|
t.$slots.watermark ? (s(), n("div", _a, [
|
|
873
|
-
h(t.$slots, "watermark", $(A({
|
|
929
|
+
h(t.$slots, "watermark", $(A({
|
|
930
|
+
isPrinting: u(K) || u(J) || G.value || U.value
|
|
931
|
+
})), void 0, !0)
|
|
874
932
|
])) : c("", !0),
|
|
875
933
|
b("div", {
|
|
876
934
|
ref_key: "chartLegend",
|
|
@@ -891,7 +949,7 @@ const jt = ["id"], Bt = { key: 0 }, Dt = ["xmlns", "viewBox"], Wt = ["width", "h
|
|
|
891
949
|
], !0)
|
|
892
950
|
], 46, jt));
|
|
893
951
|
}
|
|
894
|
-
}, Ga = /* @__PURE__ */ Ut(Ca, [["__scopeId", "data-v-
|
|
952
|
+
}, Ga = /* @__PURE__ */ Ut(Ca, [["__scopeId", "data-v-4f9cc072"]]);
|
|
895
953
|
export {
|
|
896
954
|
Ga as default
|
|
897
955
|
};
|