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,23 +1,23 @@
|
|
|
1
1
|
import { defineAsyncComponent as W, ref as c, shallowRef as Tt, computed as y, onMounted as zl, toRefs as Tl, nextTick as ge, watch as fe, watchEffect as Pt, onBeforeUnmount as Pl, openBlock as u, createElementBlock as r, unref as v, normalizeStyle as Z, normalizeClass as E, createElementVNode as x, toDisplayString as w, createBlock as $, createCommentVNode as h, withCtx as b, renderSlot as k, normalizeProps as I, guardReactiveProps as D, createSlots as It, createVNode as Dt, Fragment as z, renderList as T, Teleport as Il, resolveDynamicComponent as Dl, mergeProps as Ol, createTextVNode as He } from "vue";
|
|
2
|
-
import { j as Ot, o as Nt, q as be, r as Nl, t as Et, m as El, p as me, n as Fl, s as We, a8 as Rl, a9 as Ft, D as Vl, a4 as Xe, k as Ge, l as pe, X as Ml, u as ne, aa as Bl, Z as Ul, a5 as Hl, a6 as Wl, a7 as Rt, a0 as Xl, a1 as Gl, ab as Vt, ac as Yl } from "./lib-
|
|
2
|
+
import { j as Ot, o as Nt, q as be, r as Nl, t as Et, m as El, p as me, n as Fl, s as We, a8 as Rl, a9 as Ft, D as Vl, a4 as Xe, k as Ge, l as pe, X as Ml, u as ne, aa as Bl, Z as Ul, a5 as Hl, a6 as Wl, a7 as Rt, a0 as Xl, a1 as Gl, ab as Vt, ac as Yl } from "./lib-DMzrGQHK.js";
|
|
3
3
|
import { t as Mt, u as jl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ql } from "./useConfig-
|
|
5
|
-
import { u as Kl } from "./usePrinter-
|
|
6
|
-
import { u as Zl, B as Jl } from "./BaseScanner-
|
|
7
|
-
import { u as Ql } from "./useSvgExport-
|
|
8
|
-
import { u as ea } from "./useTimeLabels-
|
|
9
|
-
import { u as Ye } from "./useNestedProp-
|
|
10
|
-
import { u as ta } from "./useThemeCheck-
|
|
11
|
-
import { u as la } from "./useUserOptionState-
|
|
12
|
-
import { u as aa } from "./useChartAccessibility-
|
|
13
|
-
import { u as oa } from "./useTimeLabelCollider-
|
|
14
|
-
import ua from "./img-
|
|
15
|
-
import na from "./Title-
|
|
4
|
+
import { u as ql } from "./useConfig-DTHxOX6V.js";
|
|
5
|
+
import { u as Kl } from "./usePrinter-C4t8DdQ-.js";
|
|
6
|
+
import { u as Zl, B as Jl } from "./BaseScanner-BON3d_Sx.js";
|
|
7
|
+
import { u as Ql } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
+
import { u as ea } from "./useTimeLabels-Cv0tD9In.js";
|
|
9
|
+
import { u as Ye } from "./useNestedProp-DH0BEVVS.js";
|
|
10
|
+
import { u as ta } from "./useThemeCheck-C9Ccl7U9.js";
|
|
11
|
+
import { u as la } from "./useUserOptionState-B7Ej974k.js";
|
|
12
|
+
import { u as aa } from "./useChartAccessibility-cp6XQtqi.js";
|
|
13
|
+
import { u as oa } from "./useTimeLabelCollider-D3JeJ6Ye.js";
|
|
14
|
+
import ua from "./img-CjTQXS0U.js";
|
|
15
|
+
import na from "./Title-BbKoiBk2.js";
|
|
16
16
|
import sa from "./vue_ui_donut_evolution-DFQU-rqE.js";
|
|
17
|
-
import ra from "./Legend-
|
|
18
|
-
import { S as ia } from "./Slicer-
|
|
19
|
-
import { A as ca } from "./A11yDataTable-
|
|
20
|
-
import { B as va } from "./BaseLegendToggle-
|
|
17
|
+
import ra from "./Legend-DGN5lY60.js";
|
|
18
|
+
import { S as ia } from "./Slicer-D7UcO8sN.js";
|
|
19
|
+
import { A as ca } from "./A11yDataTable-BpmuNomI.js";
|
|
20
|
+
import { B as va } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
21
21
|
import { _ as da } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
22
|
const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative" } }, ba = ["xmlns", "aria-describedby", "viewBox"], ma = ["x", "y", "width", "height"], pa = ["id"], xa = ["stop-color"], ka = ["stop-color"], Ca = ["id"], wa = ["stop-color"], Aa = ["stop-color"], La = ["stop-color"], Sa = { key: 1 }, _a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], za = { key: 0 }, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["font-size", "fill", "transform"], Ia = ["x", "y", "font-size", "fill"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = ["x", "y", "font-size", "fill", "font-weight"], Na = { key: 0 }, Ea = ["text-anchor", "font-size", "fill", "transform"], Fa = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = { key: 1 }, Ma = ["cx", "cy", "r", "fill"], Ba = { key: 0 }, Ua = { key: 0 }, Ha = ["d", "stroke"], Wa = ["text-anchor", "x", "y", "fill"], Xa = ["cx", "cy", "r", "fill"], Ga = { key: 0 }, Ya = ["cx", "cy", "fill"], ja = { key: 1 }, qa = ["d", "fill", "stroke"], Ka = { key: 2 }, Za = ["d", "fill", "stroke"], Ja = ["x", "y", "font-size", "fill"], Qa = ["x", "y", "width", "height", "fill"], eo = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], to = {
|
|
23
23
|
key: 0,
|
|
@@ -45,7 +45,15 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["selectLegend", "copyAlt"],
|
|
47
47
|
setup(Bt, { expose: Ut, emit: Ht }) {
|
|
48
|
-
const Wt = W(() => import("./vue-ui-accordion-
|
|
48
|
+
const Wt = W(() => import("./vue-ui-accordion-BHmfmb_6.js")), Xt = W(() => import("./BaseIcon-DX0hTWa-.js")), Gt = W(() => import("./DataTable-cMnb68Ik.js")), Yt = W(
|
|
49
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
50
|
+
), jt = W(
|
|
51
|
+
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
52
|
+
), qt = W(
|
|
53
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
54
|
+
), Kt = W(() => import("./vue-ui-donut-d0LLrlKG.js")), je = W(
|
|
55
|
+
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
56
|
+
), { vue_ui_donut_evolution: Zt } = ql(), { isThemeValid: Jt, warnInvalidTheme: Qt } = ta(), S = Bt, _ = c(Ot()), C = c([]), m = c(null), q = c(null), xe = c(!1), X = c(null), F = c(null), el = c(null), qe = c(0), Ke = c(0), Ze = c(0), Je = c(0), Qe = c(0), ke = c(null), se = c(null), Ce = c(null), we = c(null), et = c(!1), J = c(null), Ae = c(null), re = c(!1), ie = c(!1), tt = c(null), lt = c(null), at = c(null), ot = c(null), ut = c(null), Le = c(!1), Q = Tt(null), ce = Tt(null), nt = c(null), R = c(null), Se = c(!1), _e = Ht, st = y(() => !!S.dataset && S.dataset.length);
|
|
49
57
|
zl(() => {
|
|
50
58
|
et.value = !0, rt();
|
|
51
59
|
});
|
|
@@ -89,7 +97,9 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
89
97
|
Q.value && (ce.value && Q.value.unobserve(ce.value), Q.value.disconnect()), Q.value = new ResizeObserver(t), ce.value = F.value.parentNode, Q.value.observe(ce.value);
|
|
90
98
|
}
|
|
91
99
|
}
|
|
92
|
-
const e = c(Ie()), V = y(
|
|
100
|
+
const e = c(Ie()), V = y(
|
|
101
|
+
() => e.value.userOptions.useCursorPointer
|
|
102
|
+
), tl = y(() => Et({
|
|
93
103
|
defaultConfig: {
|
|
94
104
|
useCssAnimation: !1,
|
|
95
105
|
table: { show: !1 },
|
|
@@ -185,7 +195,9 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
185
195
|
const a = N.value;
|
|
186
196
|
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
187
197
|
}
|
|
188
|
-
const { userOptionsVisible: Pe, setUserOptionsVisibility: vt, keepUserOptionState: dt } = la({ config: e.value }), { svgRef: ee } = aa({
|
|
198
|
+
const { userOptionsVisible: Pe, setUserOptionsVisibility: vt, keepUserOptionState: dt } = la({ config: e.value }), { svgRef: ee } = aa({
|
|
199
|
+
config: e.value.style.chart.title
|
|
200
|
+
});
|
|
189
201
|
function Ie() {
|
|
190
202
|
const t = Ye({
|
|
191
203
|
userConfig: S.config,
|
|
@@ -213,11 +225,19 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
213
225
|
a = t;
|
|
214
226
|
return a;
|
|
215
227
|
}
|
|
216
|
-
fe(
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
228
|
+
fe(
|
|
229
|
+
() => S.config,
|
|
230
|
+
(t) => {
|
|
231
|
+
$e.value || (e.value = Ie()), Pe.value = !e.value.userOptions.showOnChartHover, rt(), Ze.value += 1, Je.value += 1, Qe.value += 1, G.value.showTable = e.value.table.show;
|
|
232
|
+
},
|
|
233
|
+
{ deep: !0 }
|
|
234
|
+
), fe(
|
|
235
|
+
() => S.dataset,
|
|
236
|
+
(t) => {
|
|
237
|
+
Array.isArray(t) && t.length > 0 && (de.value = !1), ct();
|
|
238
|
+
},
|
|
239
|
+
{ deep: !0 }
|
|
240
|
+
);
|
|
221
241
|
const { isPrinting: De, isImaging: Oe, generatePdf: ht, generateImage: yt } = Kl({
|
|
222
242
|
elementId: _.value,
|
|
223
243
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
@@ -225,11 +245,15 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
225
245
|
}), al = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ol = y(() => Fl(e.value.customPalette)), G = c({
|
|
226
246
|
showTable: e.value.table.show
|
|
227
247
|
});
|
|
228
|
-
fe(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
248
|
+
fe(
|
|
249
|
+
e,
|
|
250
|
+
() => {
|
|
251
|
+
G.value = {
|
|
252
|
+
showTable: e.value.table.show
|
|
253
|
+
};
|
|
254
|
+
},
|
|
255
|
+
{ immediate: !0 }
|
|
256
|
+
);
|
|
233
257
|
const Y = y(() => ({
|
|
234
258
|
top: e.value.style.chart.layout.padding.top,
|
|
235
259
|
right: e.value.style.chart.layout.padding.right,
|
|
@@ -299,7 +323,9 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
299
323
|
uid: Ot()
|
|
300
324
|
})))), he = y(() => O.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
|
|
301
325
|
...t,
|
|
302
|
-
values: t.values.filter(
|
|
326
|
+
values: t.values.filter(
|
|
327
|
+
(a, l) => l >= g.value.start && l <= g.value.end
|
|
328
|
+
)
|
|
303
329
|
}))), N = y(() => Math.max(...O.value.map((t) => t.length))), A = c([]);
|
|
304
330
|
let ft = 0;
|
|
305
331
|
Pt(() => {
|
|
@@ -329,15 +355,29 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
329
355
|
}
|
|
330
356
|
return t;
|
|
331
357
|
}), Ee = y(() => {
|
|
332
|
-
const t = Math.max(
|
|
333
|
-
|
|
334
|
-
|
|
358
|
+
const t = Math.max(
|
|
359
|
+
...ye.value.map((n) => n.subtotal).filter((n) => Ft(n))
|
|
360
|
+
) ?? 1, a = Math.min(
|
|
361
|
+
...ye.value.map((n) => n.subtotal).filter((n) => Ft(n))
|
|
362
|
+
) ?? 0;
|
|
363
|
+
let l = Math.max(
|
|
364
|
+
e.value.style.chart.layout.grid.yAxis.scaleMax ?? 0,
|
|
365
|
+
t
|
|
366
|
+
), o;
|
|
367
|
+
return e.value.style.chart.layout.grid.yAxis.scaleMin != null ? o = Math.min(
|
|
368
|
+
a,
|
|
369
|
+
e.value.style.chart.layout.grid.yAxis.scaleMin
|
|
370
|
+
) : o = 0, e.value.style.chart.layout.grid.yAxis.autoScale && (o = a, l = t), o === l && (o = l / 2, l *= 1.5), {
|
|
335
371
|
max: l,
|
|
336
372
|
min: o
|
|
337
373
|
};
|
|
338
374
|
}), M = y(() => {
|
|
339
375
|
const t = ye.value.length === 1 ? Ee.value.max * 2 : Ee.value.max;
|
|
340
|
-
return Vl(
|
|
376
|
+
return Vl(
|
|
377
|
+
Ee.value.min,
|
|
378
|
+
t,
|
|
379
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.steps
|
|
380
|
+
);
|
|
341
381
|
});
|
|
342
382
|
function bt(t) {
|
|
343
383
|
return (t - M.value.min) / (M.value.max - M.value.min);
|
|
@@ -348,7 +388,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
348
388
|
}))), p = y(() => {
|
|
349
389
|
const t = ye.value, a = Math.max(...t.map((l) => l.subtotal));
|
|
350
390
|
return t.length === 1 && a * 2, t.map((l, o) => {
|
|
351
|
-
const n = Math.min(
|
|
391
|
+
const n = Math.min(
|
|
392
|
+
i.value.width / 24,
|
|
393
|
+
L.value / 2 * 0.7
|
|
394
|
+
), s = n > i.value.width / 16 ? i.value.width / 16 : n, f = m.value === l.index ? i.value.width / 16 : s, d = t.length > 4 ? n * 2 : n * 2 > L.value / 2 * 0.7 ? L.value / 2 * 0.7 : n * 2, P = i.value.bottom - i.value.height * bt(l.subtotal), U = he.value.map((H) => ({
|
|
352
395
|
color: H.color,
|
|
353
396
|
name: H.name,
|
|
354
397
|
value: H.values[o] ?? 0
|
|
@@ -359,9 +402,45 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
359
402
|
radius: s,
|
|
360
403
|
activeRadius: f,
|
|
361
404
|
hoverRadius: d,
|
|
362
|
-
donut: Xe(
|
|
363
|
-
|
|
364
|
-
|
|
405
|
+
donut: Xe(
|
|
406
|
+
{ series: U },
|
|
407
|
+
l.x,
|
|
408
|
+
P,
|
|
409
|
+
s,
|
|
410
|
+
s,
|
|
411
|
+
1.99999,
|
|
412
|
+
2,
|
|
413
|
+
1,
|
|
414
|
+
360,
|
|
415
|
+
105.25,
|
|
416
|
+
s / 2
|
|
417
|
+
),
|
|
418
|
+
donutHover: Xe(
|
|
419
|
+
{ series: U },
|
|
420
|
+
l.x,
|
|
421
|
+
P,
|
|
422
|
+
d,
|
|
423
|
+
d,
|
|
424
|
+
1.99999,
|
|
425
|
+
2,
|
|
426
|
+
1,
|
|
427
|
+
360,
|
|
428
|
+
105.25,
|
|
429
|
+
d / 2
|
|
430
|
+
),
|
|
431
|
+
donutFocus: Xe(
|
|
432
|
+
{ series: U },
|
|
433
|
+
i.value.centerX,
|
|
434
|
+
i.value.centerY,
|
|
435
|
+
i.value.height / 3.6,
|
|
436
|
+
i.value.height / 3.6,
|
|
437
|
+
1.99999,
|
|
438
|
+
2,
|
|
439
|
+
1,
|
|
440
|
+
360,
|
|
441
|
+
105.25,
|
|
442
|
+
i.value.height / 6
|
|
443
|
+
)
|
|
365
444
|
};
|
|
366
445
|
});
|
|
367
446
|
});
|
|
@@ -379,17 +458,28 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
379
458
|
);
|
|
380
459
|
}
|
|
381
460
|
function rl(t, a) {
|
|
382
|
-
return isNaN(t.value / Vt(a, "value")) ? 0 : (t.value / Vt(a, "value") * 100).toFixed(
|
|
461
|
+
return isNaN(t.value / Vt(a, "value")) ? 0 : (t.value / Vt(a, "value") * 100).toFixed(
|
|
462
|
+
0
|
|
463
|
+
) + "%";
|
|
383
464
|
}
|
|
384
465
|
function mt(t) {
|
|
385
|
-
m.value = null, q.value = null, R.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
466
|
+
m.value = null, q.value = null, R.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
467
|
+
datapoint: t,
|
|
468
|
+
seriesIndex: t.seriesIndex + g.value.start
|
|
469
|
+
});
|
|
386
470
|
}
|
|
387
471
|
function pt(t) {
|
|
388
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
472
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
473
|
+
datapoint: t,
|
|
474
|
+
seriesIndex: t.index + g.value.start
|
|
475
|
+
}), m.value = t.index, q.value = t, R.value = t.index;
|
|
389
476
|
}
|
|
390
477
|
const te = c(null);
|
|
391
478
|
function Re(t, a) {
|
|
392
|
-
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
479
|
+
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
480
|
+
datapoint: t,
|
|
481
|
+
seriesIndex: t.index + g.value.start
|
|
482
|
+
}), !(!t.subtotal || !e.value.style.chart.dialog.show) && (q.value = null, m.value = null, xe.value = !0, X.value = t, yl(t), [null, void 0].includes(a) || (te.value = a));
|
|
393
483
|
}
|
|
394
484
|
const le = y(() => O.value.map((t, a) => ({
|
|
395
485
|
name: t.name,
|
|
@@ -434,16 +524,23 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
434
524
|
if (C.value.includes(t))
|
|
435
525
|
C.value = C.value.filter((a) => a !== t), _e("selectLegend", he.value);
|
|
436
526
|
else {
|
|
437
|
-
if (C.value.length === O.value.length - 1)
|
|
527
|
+
if (C.value.length === O.value.length - 1)
|
|
528
|
+
return;
|
|
438
529
|
C.value.push(t), _e("selectLegend", he.value);
|
|
439
530
|
}
|
|
440
|
-
X.value && Re(
|
|
531
|
+
X.value && Re(
|
|
532
|
+
p.value.find(
|
|
533
|
+
(a, l) => l === te.value
|
|
534
|
+
)
|
|
535
|
+
);
|
|
441
536
|
}
|
|
442
537
|
function kt(t) {
|
|
443
538
|
if (!O.value.length)
|
|
444
539
|
return e.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null;
|
|
445
540
|
const a = O.value.find((l) => l.name === t);
|
|
446
|
-
return a || (e.value.debug && console.warn(
|
|
541
|
+
return a || (e.value.debug && console.warn(
|
|
542
|
+
`VueUiDonutEvolution - Series name not found "${t}"`
|
|
543
|
+
), null);
|
|
447
544
|
}
|
|
448
545
|
function vl(t) {
|
|
449
546
|
const a = kt(t);
|
|
@@ -454,17 +551,25 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
454
551
|
a !== null && (C.value.includes(a.uid) || ae(a.uid));
|
|
455
552
|
}
|
|
456
553
|
const B = y(() => {
|
|
457
|
-
const t = [""].concat(
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
554
|
+
const t = [""].concat(
|
|
555
|
+
O.value.filter((s) => !C.value.includes(s.uid)).map((s) => ({
|
|
556
|
+
name: s.name,
|
|
557
|
+
color: s.color
|
|
558
|
+
}))
|
|
559
|
+
).concat(["Σ"]);
|
|
461
560
|
let a = [];
|
|
462
561
|
for (let s = 0; s < N.value; s += 1) {
|
|
463
562
|
const f = O.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[s] ?? 0).reduce((d, P) => d + P, 0);
|
|
464
|
-
a.push(
|
|
465
|
-
value
|
|
466
|
-
|
|
467
|
-
|
|
563
|
+
a.push(
|
|
564
|
+
[A.value[s] ? A.value[s].text : "-"].concat(
|
|
565
|
+
O.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
|
|
566
|
+
value: d.values[s] ?? 0,
|
|
567
|
+
percentage: d.values[s] ? d.values[s] / f * 100 : 0
|
|
568
|
+
}))
|
|
569
|
+
).concat([
|
|
570
|
+
`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`
|
|
571
|
+
])
|
|
572
|
+
);
|
|
468
573
|
}
|
|
469
574
|
const l = a.map((s) => s.map((f, d) => d === 0 || d === s.length - 1 ? f : `${Fe(f.value ?? 0, null, d)} (${f.percentage.toFixed(1)}%)`)), o = {
|
|
470
575
|
th: {
|
|
@@ -478,9 +583,9 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
478
583
|
outline: e.value.table.td.outline
|
|
479
584
|
},
|
|
480
585
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
481
|
-
}, n = [
|
|
482
|
-
|
|
483
|
-
|
|
586
|
+
}, n = [e.value.table.columnNames.period].concat(
|
|
587
|
+
O.value.filter((s) => !C.value.includes(s.uid)).map((s) => s.name)
|
|
588
|
+
).concat(e.value.table.columnNames.total);
|
|
484
589
|
return { head: t, body: a, bodyA11y: l, config: o, colNames: n };
|
|
485
590
|
});
|
|
486
591
|
function hl() {
|
|
@@ -488,8 +593,17 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
488
593
|
}
|
|
489
594
|
function Ve(t = null) {
|
|
490
595
|
ge(() => {
|
|
491
|
-
const a = [
|
|
492
|
-
|
|
596
|
+
const a = [
|
|
597
|
+
[e.value.style.chart.title.text],
|
|
598
|
+
[e.value.style.chart.title.subtitle.text],
|
|
599
|
+
[""]
|
|
600
|
+
], l = [...B.value.head.map((f) => f.name ?? f)], o = [
|
|
601
|
+
...B.value.body.map((f) => f.map((d) => d.value ?? d))
|
|
602
|
+
], n = a.concat([l]).concat(o), s = Xl(n);
|
|
603
|
+
t ? t(s) : Gl({
|
|
604
|
+
csvContent: s,
|
|
605
|
+
title: e.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
606
|
+
});
|
|
493
607
|
});
|
|
494
608
|
}
|
|
495
609
|
const j = c(!1);
|
|
@@ -520,7 +634,12 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
520
634
|
}
|
|
521
635
|
async function gl({ scale: t = 2 } = {}) {
|
|
522
636
|
if (!F.value) return;
|
|
523
|
-
const { width: a, height: l } = F.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: s } = await ua({
|
|
637
|
+
const { width: a, height: l } = F.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: s } = await ua({
|
|
638
|
+
domElement: F.value,
|
|
639
|
+
base64: !0,
|
|
640
|
+
img: !0,
|
|
641
|
+
scale: t
|
|
642
|
+
});
|
|
524
643
|
return {
|
|
525
644
|
imageUri: n,
|
|
526
645
|
base64: s,
|
|
@@ -536,8 +655,25 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
536
655
|
timeLabels: A,
|
|
537
656
|
slicer: g,
|
|
538
657
|
configRef: e,
|
|
539
|
-
rotationPath: [
|
|
540
|
-
|
|
658
|
+
rotationPath: [
|
|
659
|
+
"style",
|
|
660
|
+
"chart",
|
|
661
|
+
"layout",
|
|
662
|
+
"grid",
|
|
663
|
+
"xAxis",
|
|
664
|
+
"dataLabels",
|
|
665
|
+
"rotation"
|
|
666
|
+
],
|
|
667
|
+
autoRotatePath: [
|
|
668
|
+
"style",
|
|
669
|
+
"chart",
|
|
670
|
+
"layout",
|
|
671
|
+
"grid",
|
|
672
|
+
"xAxis",
|
|
673
|
+
"dataLabels",
|
|
674
|
+
"autoRotate",
|
|
675
|
+
"enable"
|
|
676
|
+
],
|
|
541
677
|
isAutoSize: !1,
|
|
542
678
|
width: fl,
|
|
543
679
|
height: bl,
|
|
@@ -574,9 +710,12 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
574
710
|
}
|
|
575
711
|
};
|
|
576
712
|
});
|
|
577
|
-
fe(
|
|
578
|
-
|
|
579
|
-
|
|
713
|
+
fe(
|
|
714
|
+
() => G.value.showTable,
|
|
715
|
+
(t) => {
|
|
716
|
+
e.value.table.show || (t && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
717
|
+
}
|
|
718
|
+
);
|
|
580
719
|
function _t() {
|
|
581
720
|
G.value.showTable = !1, Ae.value && Ae.value.setTableIconState(!1);
|
|
582
721
|
}
|
|
@@ -595,7 +734,14 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
595
734
|
try {
|
|
596
735
|
if (t) {
|
|
597
736
|
const { blob: a, url: l, text: o, dataUrl: n } = await wl();
|
|
598
|
-
await Promise.resolve(
|
|
737
|
+
await Promise.resolve(
|
|
738
|
+
e.value.userOptions.callbacks.svg({
|
|
739
|
+
blob: a,
|
|
740
|
+
url: l,
|
|
741
|
+
text: o,
|
|
742
|
+
dataUrl: n
|
|
743
|
+
})
|
|
744
|
+
);
|
|
599
745
|
} else
|
|
600
746
|
await Promise.resolve(Cl());
|
|
601
747
|
} finally {
|
|
@@ -618,13 +764,17 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
618
764
|
config: e.value,
|
|
619
765
|
dataset: p.value
|
|
620
766
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
621
|
-
console.warn(
|
|
767
|
+
console.warn(
|
|
768
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
769
|
+
);
|
|
622
770
|
return;
|
|
623
771
|
}
|
|
624
|
-
await Promise.resolve(
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
772
|
+
await Promise.resolve(
|
|
773
|
+
e.value.userOptions.callbacks.altCopy({
|
|
774
|
+
config: e.value,
|
|
775
|
+
dataset: p.value
|
|
776
|
+
})
|
|
777
|
+
);
|
|
628
778
|
}
|
|
629
779
|
function Ll() {
|
|
630
780
|
R.value = null, Se.value = !0;
|
|
@@ -635,7 +785,8 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
635
785
|
function _l(t) {
|
|
636
786
|
if (!ee.value || oe.value || document.activeElement !== ee.value || !p.value.length) return;
|
|
637
787
|
const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", o = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
|
|
638
|
-
if (!a && !l && !o && !n)
|
|
788
|
+
if (!a && !l && !o && !n)
|
|
789
|
+
return;
|
|
639
790
|
if (t.preventDefault(), t.stopPropagation(), n) {
|
|
640
791
|
R.value = null, m.value = null, q.value = null;
|
|
641
792
|
return;
|
|
@@ -861,7 +1012,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
861
1012
|
ref: ee,
|
|
862
1013
|
xmlns: v(Ml),
|
|
863
1014
|
"aria-describedby": `chart-instructions-${_.value}`,
|
|
864
|
-
class: E({
|
|
1015
|
+
class: E({
|
|
1016
|
+
"vue-data-ui-fullscreen--on": j.value,
|
|
1017
|
+
"vue-data-ui-fulscreen--off": !j.value
|
|
1018
|
+
}),
|
|
865
1019
|
viewBox: `0 0 ${i.value.absoluteWidth} ${i.value.absoluteHeight}`,
|
|
866
1020
|
style: Z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`),
|
|
867
1021
|
tabindex: "0",
|
|
@@ -892,11 +1046,17 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
892
1046
|
}, [
|
|
893
1047
|
x("stop", {
|
|
894
1048
|
offset: "0%",
|
|
895
|
-
"stop-color": v(ne)(
|
|
1049
|
+
"stop-color": v(ne)(
|
|
1050
|
+
e.value.style.chart.backgroundColor,
|
|
1051
|
+
e.value.style.chart.layout.highlighter.opacity
|
|
1052
|
+
)
|
|
896
1053
|
}, null, 8, xa),
|
|
897
1054
|
x("stop", {
|
|
898
1055
|
offset: "100%",
|
|
899
|
-
"stop-color": v(ne)(
|
|
1056
|
+
"stop-color": v(ne)(
|
|
1057
|
+
e.value.style.chart.layout.highlighter.color,
|
|
1058
|
+
e.value.style.chart.layout.highlighter.opacity
|
|
1059
|
+
)
|
|
900
1060
|
}, null, 8, ka)
|
|
901
1061
|
], 8, pa),
|
|
902
1062
|
x("radialGradient", {
|
|
@@ -904,7 +1064,12 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
904
1064
|
}, [
|
|
905
1065
|
x("stop", {
|
|
906
1066
|
offset: "0%",
|
|
907
|
-
"stop-color": v(ne)(
|
|
1067
|
+
"stop-color": v(ne)(
|
|
1068
|
+
v(We)(
|
|
1069
|
+
e.value.style.chart.backgroundColor
|
|
1070
|
+
),
|
|
1071
|
+
0
|
|
1072
|
+
)
|
|
908
1073
|
}, null, 8, wa),
|
|
909
1074
|
x("stop", {
|
|
910
1075
|
offset: "77%",
|
|
@@ -912,7 +1077,12 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
912
1077
|
}, null, 8, Aa),
|
|
913
1078
|
x("stop", {
|
|
914
1079
|
offset: "100%",
|
|
915
|
-
"stop-color": v(ne)(
|
|
1080
|
+
"stop-color": v(ne)(
|
|
1081
|
+
v(We)(
|
|
1082
|
+
e.value.style.chart.backgroundColor
|
|
1083
|
+
),
|
|
1084
|
+
0
|
|
1085
|
+
)
|
|
916
1086
|
}, null, 8, La)
|
|
917
1087
|
], 8, Ca)
|
|
918
1088
|
]),
|
|
@@ -973,7 +1143,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
973
1143
|
key: 2,
|
|
974
1144
|
ref_key: "scaleLabels",
|
|
975
1145
|
ref: ke,
|
|
976
|
-
class: E({
|
|
1146
|
+
class: E({
|
|
1147
|
+
"donut-opacity": !0,
|
|
1148
|
+
"donut-behind": m.value !== null
|
|
1149
|
+
})
|
|
977
1150
|
}, [
|
|
978
1151
|
(u(!0), r(z, null, T(sl.value, (l, o) => (u(), r("g", null, [
|
|
979
1152
|
l.value >= M.value.min && l.value <= M.value.max ? (u(), r("line", {
|
|
@@ -1041,9 +1214,15 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1041
1214
|
]))), 256))
|
|
1042
1215
|
], 512)) : h("", !0),
|
|
1043
1216
|
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", null, [
|
|
1044
|
-
e.value.style.chart.layout.line.show && o < p.value.length - 1 && ![
|
|
1217
|
+
e.value.style.chart.layout.line.show && o < p.value.length - 1 && ![
|
|
1218
|
+
l.subtotal,
|
|
1219
|
+
p.value[o + 1].subtotal
|
|
1220
|
+
].includes(null) ? (u(), r("line", {
|
|
1045
1221
|
key: 0,
|
|
1046
|
-
class: E({
|
|
1222
|
+
class: E({
|
|
1223
|
+
"donut-opacity": !0,
|
|
1224
|
+
"donut-behind": m.value !== null
|
|
1225
|
+
}),
|
|
1047
1226
|
x1: l.x,
|
|
1048
1227
|
y1: l.y,
|
|
1049
1228
|
x2: p.value[o + 1].x,
|
|
@@ -1064,14 +1243,28 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1064
1243
|
])) : h("", !0)
|
|
1065
1244
|
]))), 256)),
|
|
1066
1245
|
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", {
|
|
1067
|
-
class: E({
|
|
1246
|
+
class: E({
|
|
1247
|
+
"donut-opacity": !0,
|
|
1248
|
+
"donut-behind": o !== m.value && m.value !== null
|
|
1249
|
+
})
|
|
1068
1250
|
}, [
|
|
1069
1251
|
l.subtotal ? (u(), r("g", Ba, [
|
|
1070
1252
|
m.value !== null && m.value === o ? (u(), r("g", Ua, [
|
|
1071
1253
|
(u(!0), r(z, null, T(l.donutHover, (n) => (u(), r("g", null, [
|
|
1072
1254
|
At(n) ? (u(), r("path", {
|
|
1073
1255
|
key: 0,
|
|
1074
|
-
d: v(Hl)(
|
|
1256
|
+
d: v(Hl)(
|
|
1257
|
+
n,
|
|
1258
|
+
{
|
|
1259
|
+
x: n.center.endX,
|
|
1260
|
+
y: n.center.endY
|
|
1261
|
+
},
|
|
1262
|
+
12,
|
|
1263
|
+
12,
|
|
1264
|
+
{ x: l.x, y: l.y },
|
|
1265
|
+
!1,
|
|
1266
|
+
20
|
|
1267
|
+
),
|
|
1075
1268
|
stroke: n.color,
|
|
1076
1269
|
"stroke-width": "1",
|
|
1077
1270
|
"stroke-linecap": "round",
|
|
@@ -1089,7 +1282,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1089
1282
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1090
1283
|
"font-size": 8,
|
|
1091
1284
|
"font-weight": "bold"
|
|
1092
|
-
}, w(n.name) + ": " + w(rl(
|
|
1285
|
+
}, w(n.name) + ": " + w(rl(
|
|
1286
|
+
n,
|
|
1287
|
+
l.donut
|
|
1288
|
+
)) + " (" + w(n.value === null ? "-" : Fe(n.value, n, s)) + ") ", 9, Wa)) : h("", !0)
|
|
1093
1289
|
]))), 256)),
|
|
1094
1290
|
x("g", null, [
|
|
1095
1291
|
x("circle", {
|
|
@@ -1103,7 +1299,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1103
1299
|
])) : h("", !0)
|
|
1104
1300
|
], 2))), 256)),
|
|
1105
1301
|
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", {
|
|
1106
|
-
class: E({
|
|
1302
|
+
class: E({
|
|
1303
|
+
"donut-opacity": !0,
|
|
1304
|
+
"donut-behind": o !== m.value && m.value !== null
|
|
1305
|
+
})
|
|
1107
1306
|
}, [
|
|
1108
1307
|
l.subtotal !== null ? (u(), r("g", Ga, [
|
|
1109
1308
|
l.subtotal === 0 ? (u(), r("circle", {
|
|
@@ -1130,7 +1329,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1130
1329
|
])) : h("", !0)
|
|
1131
1330
|
], 2))), 256)),
|
|
1132
1331
|
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", {
|
|
1133
|
-
class: E({
|
|
1332
|
+
class: E({
|
|
1333
|
+
"donut-opacity": !0,
|
|
1334
|
+
"donut-behind": o !== m.value && m.value !== null || xe.value && o !== X.value.index
|
|
1335
|
+
})
|
|
1134
1336
|
}, [
|
|
1135
1337
|
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), r("text", {
|
|
1136
1338
|
key: 0,
|
|
@@ -1147,8 +1349,14 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1147
1349
|
y: i.value.top,
|
|
1148
1350
|
width: L.value,
|
|
1149
1351
|
height: i.value.height,
|
|
1150
|
-
fill: [m.value, te.value].includes(
|
|
1151
|
-
|
|
1352
|
+
fill: [m.value, te.value].includes(
|
|
1353
|
+
l.index
|
|
1354
|
+
) ? `url(#hover_${_.value})` : "transparent",
|
|
1355
|
+
class: E({
|
|
1356
|
+
"donut-hover": V.value && l.subtotal && [m.value, te.value].includes(
|
|
1357
|
+
l.index
|
|
1358
|
+
)
|
|
1359
|
+
}),
|
|
1152
1360
|
style: {
|
|
1153
1361
|
pointerEvents: "none"
|
|
1154
1362
|
}
|
|
@@ -1163,7 +1371,9 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1163
1371
|
onMouseenter: (n) => pt(l),
|
|
1164
1372
|
onMouseleave: (n) => mt(l),
|
|
1165
1373
|
onClick: (n) => Re(l, o),
|
|
1166
|
-
class: E({
|
|
1374
|
+
class: E({
|
|
1375
|
+
"donut-hover": V.value && m.value === l.index && l.subtotal
|
|
1376
|
+
})
|
|
1167
1377
|
}, null, 42, eo))), 256)),
|
|
1168
1378
|
k(t.$slots, "svg", {
|
|
1169
1379
|
svg: {
|
|
@@ -1174,11 +1384,16 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1174
1384
|
}, void 0, !0)
|
|
1175
1385
|
], 46, ba)),
|
|
1176
1386
|
t.$slots.hint ? (u(), r("div", to, [
|
|
1177
|
-
k(t.$slots, "hint", I(D({
|
|
1387
|
+
k(t.$slots, "hint", I(D({
|
|
1388
|
+
hint: e.value.a11y.translations.keyboardNavigation,
|
|
1389
|
+
isVisible: Se.value
|
|
1390
|
+
})), void 0, !0)
|
|
1178
1391
|
])) : h("", !0)
|
|
1179
1392
|
]),
|
|
1180
1393
|
t.$slots.watermark ? (u(), r("div", lo, [
|
|
1181
|
-
k(t.$slots, "watermark", I(D({
|
|
1394
|
+
k(t.$slots, "watermark", I(D({
|
|
1395
|
+
isPrinting: v(De) || v(Oe) || re.value || ie.value
|
|
1396
|
+
})), void 0, !0)
|
|
1182
1397
|
])) : h("", !0),
|
|
1183
1398
|
x("div", {
|
|
1184
1399
|
ref_key: "chartSlicer",
|
|
@@ -1290,7 +1505,11 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1290
1505
|
He(w(l.name ?? l), 1)
|
|
1291
1506
|
]),
|
|
1292
1507
|
td: b(({ td: l }) => [
|
|
1293
|
-
l.value === null ? (u(), r("span", uo, "-")) : (u(), r("b", no, w(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + w(!isNaN(l.value) && l.value !== null ? Number(
|
|
1508
|
+
l.value === null ? (u(), r("span", uo, "-")) : (u(), r("b", no, w(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + w(!isNaN(l.value) && l.value !== null ? Number(
|
|
1509
|
+
l.value.toFixed(
|
|
1510
|
+
e.value.table.td.roundingValue
|
|
1511
|
+
)
|
|
1512
|
+
).toLocaleString() : l) + w(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1294
1513
|
x("span", null, w(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1295
1514
|
]),
|
|
1296
1515
|
_: 1
|
|
@@ -1352,7 +1571,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1352
1571
|
v($e) ? (u(), $(Jl, { key: 10 })) : h("", !0)
|
|
1353
1572
|
], 46, ha));
|
|
1354
1573
|
}
|
|
1355
|
-
}, To = /* @__PURE__ */ da(so, [["__scopeId", "data-v-
|
|
1574
|
+
}, To = /* @__PURE__ */ da(so, [["__scopeId", "data-v-c83626a5"]]);
|
|
1356
1575
|
export {
|
|
1357
1576
|
To as default
|
|
1358
1577
|
};
|