vue-data-ui 3.17.3 → 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-DP_kfXUM.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 +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{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-DtjWtDHU.js → patternUtils-BINhU4Ky.js} +149 -66
- 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 +499 -498
- package/dist/types/vue-data-ui.d.ts +2115 -1787
- 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 +1 -1
- 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 +4 -4
- package/dist/{vue-data-ui-kiw3y7gG.js → vue-data-ui-C0aMSe2G.js} +138 -72
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-CWaSxiqw.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-B6S8XYmi.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-_zHE8JoR.js → vue-ui-bullet-CEH6eppC.js} +92 -35
- package/dist/{vue-ui-bump-BX-bnhix.js → vue-ui-bump-JbKFEe2A.js} +205 -102
- package/dist/{vue-ui-candlestick-CgtRA-EI.js → vue-ui-candlestick-BX01sTaY.js} +285 -100
- package/dist/{vue-ui-carousel-table-BnwS5nMG.js → vue-ui-carousel-table-BOAti3gd.js} +66 -29
- package/dist/{vue-ui-chestnut-3JG1dMba.js → vue-ui-chestnut-B0rhAzCA.js} +277 -88
- package/dist/{vue-ui-chord-DsA-qrl6.js → vue-ui-chord-DKIHZ39Z.js} +226 -96
- package/dist/{vue-ui-circle-pack-BSHUo-L7.js → vue-ui-circle-pack-Ct2roluW.js} +196 -111
- package/dist/{vue-ui-cursor-Gqh_JBGA.js → vue-ui-cursor-B3cJoPku.js} +14 -7
- package/dist/{vue-ui-dag-BTB1DCrs.js → vue-ui-dag-DCq1VMNd.js} +261 -99
- package/dist/{vue-ui-dashboard-xAW1vWaB.js → vue-ui-dashboard-BqAYr0Fr.js} +261 -94
- package/dist/{vue-ui-digits-D2wQOhMt.js → vue-ui-digits-D16SQQ4M.js} +6 -6
- package/dist/{vue-ui-donut-UUgV1d0_.js → vue-ui-donut-d0LLrlKG.js} +532 -157
- package/dist/{vue-ui-donut-evolution-B0EEKpQC.js → vue-ui-donut-evolution-6sMhQduN.js} +311 -92
- package/dist/{vue-ui-dumbbell-Ct2RXkIX.js → vue-ui-dumbbell-CUybhrwj.js} +266 -93
- package/dist/{vue-ui-flow-Ci_h8KNf.js → vue-ui-flow-BZ-9RFsy.js} +121 -48
- package/dist/{vue-ui-funnel-Ciy-udDH.js → vue-ui-funnel-BJgvIvlz.js} +91 -39
- package/dist/{vue-ui-galaxy-DJ6_911b.js → vue-ui-galaxy-DR9WL985.js} +161 -69
- package/dist/{vue-ui-gauge-CJ5OH_wa.js → vue-ui-gauge-x96W5OPx.js} +95 -37
- package/dist/{vue-ui-geo-B-8UJvBt.js → vue-ui-geo-qTfYs5qi.js} +113 -43
- package/dist/{vue-ui-gizmo-BgdUIouA.js → vue-ui-gizmo-C8HOirN9.js} +25 -12
- package/dist/{vue-ui-heatmap-ZdZ22EDj.js → vue-ui-heatmap-Cy9o-A7B.js} +316 -125
- package/dist/{vue-ui-history-plot-D1vpgQ8I.js → vue-ui-history-plot-j0DMfNPJ.js} +186 -73
- package/dist/{vue-ui-horizontal-bar-C1gYSz7t.js → vue-ui-horizontal-bar-CRScV3rx.js} +151 -56
- package/dist/{vue-ui-kpi-B0sOyO7s.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-C2wW_JqJ.js → vue-ui-molecule-B_19tjnI.js} +226 -120
- package/dist/{vue-ui-mood-radar-Bgd30qfN.js → vue-ui-mood-radar-DrkGtt7m.js} +166 -56
- package/dist/{vue-ui-nested-donuts-CDtrnUDs.js → vue-ui-nested-donuts-C3enuKq1.js} +196 -89
- package/dist/{vue-ui-onion-CeLy3EjT.js → vue-ui-onion-DMMLNXVu.js} +155 -74
- package/dist/{vue-ui-parallel-coordinate-plot-rRuHDWD1.js → vue-ui-parallel-coordinate-plot-YokoI6TP.js} +262 -84
- package/dist/{vue-ui-pattern-seed-lL5yS7nX.js → vue-ui-pattern-seed-BcNlxb2i.js} +1 -1
- package/dist/{vue-ui-quadrant-CqcWTgh-.js → vue-ui-quadrant-D8vI4gIT.js} +240 -88
- package/dist/{vue-ui-quick-chart-Bbdoq3j3.js → vue-ui-quick-chart-BdwHAQyA.js} +445 -150
- package/dist/{vue-ui-radar-BF2eWMEl.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-D3jsasRD.js → vue-ui-relation-circle-XQH3QkrI.js} +119 -45
- package/dist/{vue-ui-ridgeline-Lhxi4BNZ.js → vue-ui-ridgeline-ksI62sSU.js} +349 -85
- package/dist/{vue-ui-rings-D0tnHXEe.js → vue-ui-rings-Dwbo1Fro.js} +179 -81
- package/dist/{vue-ui-scatter-CIK8j5sT.js → vue-ui-scatter-GFzM-YYz.js} +282 -102
- package/dist/{vue-ui-skeleton-BD5hXmIt.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-exj63CUB.js → vue-ui-spark-trend-Bkxd18l5.js} +76 -31
- package/dist/{vue-ui-sparkbar-D3UXwhmT.js → vue-ui-sparkbar-D2abFa-u.js} +113 -59
- package/dist/{vue-ui-sparkgauge-BsQY5Cwp.js → vue-ui-sparkgauge-D6IF3ZQR.js} +47 -18
- package/dist/{vue-ui-sparkhistogram-4oHi6IHt.js → vue-ui-sparkhistogram-Dl8WlJLW.js} +145 -60
- package/dist/{vue-ui-sparkline-BypShxpX.js → vue-ui-sparkline-BY05SDNv.js} +226 -68
- package/dist/{vue-ui-sparkstackbar-8dpxOXr_.js → vue-ui-sparkstackbar-BLFjfklb.js} +84 -36
- package/dist/{vue-ui-stackbar-BKLo9L3P.js → vue-ui-stackbar-Dw-CI94e.js} +482 -169
- package/dist/{vue-ui-stackline-CSBogzBf.js → vue-ui-stackline-CkgSbKkp.js} +473 -164
- package/dist/{vue-ui-strip-plot-BQiNmxPk.js → vue-ui-strip-plot-P16Y5yN1.js} +239 -132
- package/dist/{vue-ui-table-CKlHkISC.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-DHPemUVJ.js → vue-ui-table-sparkline-CpjyrPic.js} +127 -47
- package/dist/{vue-ui-thermometer-Cy1oHbQ-.js → vue-ui-thermometer-B9nc954A.js} +129 -48
- package/dist/{vue-ui-timer-DsYVGo-1.js → vue-ui-timer-BDfbM4vl.js} +32 -15
- package/dist/{vue-ui-tiremarks-BvEM8AvM.js → vue-ui-tiremarks-DHV_oSQ0.js} +90 -35
- package/dist/vue-ui-treemap-DLWOi_EG.js +1748 -0
- package/dist/{vue-ui-waffle-Uo1RM5Yy.js → vue-ui-waffle-CpNJSzAD.js} +206 -87
- package/dist/{vue-ui-wheel-Cood5EN7.js → vue-ui-wheel-DqBmaQ6h.js} +231 -61
- package/dist/{vue-ui-word-cloud-BrQKo4eQ.js → vue-ui-word-cloud-DexRxuh1.js} +443 -350
- package/dist/vue-ui-world-DAJgtvpz.js +14451 -0
- package/dist/{vue-ui-xy-BAlrZ3W9.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-5qrvks6n.js +0 -1726
- package/dist/vue-ui-world-Cjm9SD0h.js +0 -1011
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineAsyncComponent as ze, ref as c, computed as g, useSlots as vl, onMounted as Ja, toRefs as cl, watch as E, nextTick as Te, onBeforeUnmount as sa, watchEffect as ua, shallowRef as na, openBlock as I, createElementBlock as $e, normalizeClass as dl, normalizeStyle as ve, createElementVNode as H, toDisplayString as Ae, createBlock as q, createCommentVNode as W, unref as z, createSlots as Qa, withCtx as b, renderSlot as C, normalizeProps as j, guardReactiveProps as G, createVNode as et, Teleport as hl, resolveDynamicComponent as fl, mergeProps as ml, createTextVNode as at } from "vue";
|
|
2
|
-
import { j as yl, t as tt, m as gl, p as se, $ as pl, n as bl, D as ra, k as ce, l as de, s as lt, H as xl, a8 as Ll, J as Cl, o as kl, q as wl, T as ia, u as Ie, x as Sl, a0 as zl, a1 as Tl, U as ot } from "./lib-
|
|
2
|
+
import { j as yl, t as tt, m as gl, p as se, $ as pl, n as bl, D as ra, k as ce, l as de, s as lt, H as xl, a8 as Ll, J as Cl, o as kl, q as wl, T as ia, u as Ie, x as Sl, a0 as zl, a1 as Tl, U as ot } from "./lib-DMzrGQHK.js";
|
|
3
3
|
import { c as $l, a as va, d as Al, t as Il, u as Ml, l as T, r as Ve, b as Q, p as st } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Fl, a as ut, b as Pl } from "./useTimeLabels-
|
|
5
|
-
import { u as Rl } from "./useConfig-
|
|
6
|
-
import { u as Dl, B as Ol } from "./BaseScanner-
|
|
7
|
-
import { u as El } from "./usePrinter-
|
|
8
|
-
import { u as Ue } from "./useNestedProp-
|
|
9
|
-
import { u as Nl } from "./useThemeCheck-
|
|
10
|
-
import { u as Bl } from "./useUserOptionState-
|
|
11
|
-
import { u as Hl } from "./useChartAccessibility-
|
|
12
|
-
import Wl from "./img-
|
|
4
|
+
import { u as Fl, a as ut, b as Pl } from "./useTimeLabels-Cv0tD9In.js";
|
|
5
|
+
import { u as Rl } from "./useConfig-DTHxOX6V.js";
|
|
6
|
+
import { u as Dl, B as Ol } from "./BaseScanner-BON3d_Sx.js";
|
|
7
|
+
import { u as El } from "./usePrinter-C4t8DdQ-.js";
|
|
8
|
+
import { u as Ue } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
+
import { u as Nl } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
+
import { u as Bl } from "./useUserOptionState-B7Ej974k.js";
|
|
11
|
+
import { u as Hl } from "./useChartAccessibility-cp6XQtqi.js";
|
|
12
|
+
import Wl from "./img-CjTQXS0U.js";
|
|
13
13
|
import Xl from "./vue_ui_xy_canvas-6BBDSowT.js";
|
|
14
|
-
import _l from "./Legend-
|
|
15
|
-
import Vl from "./Title-
|
|
16
|
-
import Ul from "./BaseIcon-
|
|
17
|
-
import Yl from "./vue-ui-accordion-
|
|
18
|
-
import { S as ql } from "./SlicerPreview-
|
|
19
|
-
import { B as jl } from "./BaseLegendToggle-
|
|
14
|
+
import _l from "./Legend-DGN5lY60.js";
|
|
15
|
+
import Vl from "./Title-BbKoiBk2.js";
|
|
16
|
+
import Ul from "./BaseIcon-DX0hTWa-.js";
|
|
17
|
+
import Yl from "./vue-ui-accordion-BHmfmb_6.js";
|
|
18
|
+
import { S as ql } from "./SlicerPreview-D_CgrN_7.js";
|
|
19
|
+
import { B as jl } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
20
20
|
import { _ as Gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
21
|
const Zl = ["id"], Kl = ["id"], Jl = {
|
|
22
22
|
class: "sr-only",
|
|
@@ -52,21 +52,38 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["selectLegend", "selectX", "copyAlt"],
|
|
54
54
|
setup(ca, { expose: nt, emit: rt }) {
|
|
55
|
-
const it = ze(() => import("./Tooltip-
|
|
55
|
+
const it = ze(() => import("./Tooltip-Cvt7Fi0Q.js")), vt = ze(() => import("./DataTable-cMnb68Ik.js")), ct = ze(
|
|
56
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
57
|
+
), dt = ze(
|
|
58
|
+
() => import("./NonSvgPenAndPaper-B6E0zEYe.js")
|
|
59
|
+
), ht = ze(
|
|
60
|
+
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
61
|
+
), { vue_ui_xy_canvas: ft } = Rl(), { isThemeValid: mt, warnInvalidTheme: yt } = Nl(), D = ca, Z = c(yl()), K = c(null), ue = c(null), v = c(null), y = c(1), ee = c(1), he = c(!1), h = c(null), fe = c(""), Me = c(null), p = c([]), ne = c(1), N = c(!0), X = c(!0), Fe = c(null), da = c(0), me = c(!1), ha = c(null), fa = c(null), ae = c(null), ma = c(null), Ye = c(0), qe = c(0), je = c(0), _ = c(null), ya = c(!1), ye = c(null), Ge = c(null), ge = c(!1), ga = c(!1), Pe = c(!1), $ = c(null), Ze = c(!1), Re = c(!1), Ke = c(!1), V = c(null), pa = c({ x: 0, y: 0 }), U = g(
|
|
62
|
+
() => Array.isArray(Je.value) && Je.value.length > 0
|
|
63
|
+
), De = rt, gt = vl();
|
|
56
64
|
Ja(() => {
|
|
57
|
-
gt["chart-background"] && console.warn(
|
|
65
|
+
gt["chart-background"] && console.warn(
|
|
66
|
+
"VueUiXyCanvas does not support the #chart-background slot."
|
|
67
|
+
);
|
|
58
68
|
});
|
|
59
69
|
const a = c(ea()), pt = g(() => {
|
|
60
|
-
const e = a.value.style.chart.title.text || "XY chart", t = s.value.end - s.value.start, l = f.value.filter(
|
|
70
|
+
const e = a.value.style.chart.title.text || "XY chart", t = s.value.end - s.value.start, l = f.value.filter(
|
|
71
|
+
(u) => !p.value.includes(u.absoluteIndex)
|
|
72
|
+
).length;
|
|
61
73
|
return `${e}. ${l} series. ${t} visible data points.`;
|
|
62
74
|
}), bt = g(() => {
|
|
63
75
|
if (V.value === null) return "";
|
|
64
|
-
const e = V.value + s.value.start, t = a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
76
|
+
const e = V.value + s.value.start, t = a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
77
|
+
s.value.start,
|
|
78
|
+
s.value.end
|
|
79
|
+
)[V.value] ? a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[V.value]?.text : Be.value[V.value]?.text : w.value[e]?.text ?? `Point ${e + 1}`, l = f.value.filter((u) => !p.value.includes(u.absoluteIndex)).map((u) => {
|
|
65
80
|
const n = u.series[V.value], i = n?.value ?? n ?? null;
|
|
66
81
|
return `${u.name}: ${i}`;
|
|
67
82
|
}).join(". ");
|
|
68
83
|
return `${t}. ${l}.`;
|
|
69
|
-
}), le = g(
|
|
84
|
+
}), le = g(
|
|
85
|
+
() => a.value.userOptions.useCursorPointer
|
|
86
|
+
), xt = g(() => !!a.value.debug), Lt = g(() => tt({
|
|
70
87
|
defaultConfig: {
|
|
71
88
|
userOptions: { show: !1 },
|
|
72
89
|
table: { show: !1 },
|
|
@@ -135,7 +152,9 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
135
152
|
defaultConfig: a.value,
|
|
136
153
|
userConfig: Lt.value
|
|
137
154
|
})
|
|
138
|
-
}), { userOptionsVisible: Qe, setUserOptionsVisibility: ba, keepUserOptionState: xa } = Bl({ config: a.value }), { svgRef: k } = Hl({
|
|
155
|
+
}), { userOptionsVisible: Qe, setUserOptionsVisibility: ba, keepUserOptionState: xa } = Bl({ config: a.value }), { svgRef: k } = Hl({
|
|
156
|
+
config: a.value.style.chart.title
|
|
157
|
+
});
|
|
139
158
|
function Ct() {
|
|
140
159
|
ba(!0);
|
|
141
160
|
}
|
|
@@ -167,16 +186,28 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
167
186
|
}
|
|
168
187
|
else
|
|
169
188
|
t = e;
|
|
170
|
-
return D.config && pl(D.config, "style.chart.grid.y.timeLabels") && (console.warn(
|
|
189
|
+
return D.config && pl(D.config, "style.chart.grid.y.timeLabels") && (console.warn(
|
|
190
|
+
"VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."
|
|
191
|
+
), t.style.chart.grid.x.timeLabels = Ue({
|
|
171
192
|
defaultConfig: t.style.chart.grid.x.timeLabels,
|
|
172
193
|
userConfig: D.config.style.chart.grid.y.timeLabels
|
|
173
194
|
})), t;
|
|
174
195
|
}
|
|
175
|
-
E(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
196
|
+
E(
|
|
197
|
+
() => D.config,
|
|
198
|
+
(e) => {
|
|
199
|
+
Oe.value || (a.value = ea()), Qe.value = !a.value.userOptions.showOnChartHover, _a(), Ye.value += 1, qe.value += 1, je.value += 1, d.value.showTable = a.value.table.show, d.value.showDataLabels = a.value.style.chart.dataLabels.show, d.value.stacked = a.value.style.chart.stacked, d.value.showTooltip = a.value.style.chart.tooltip.show;
|
|
200
|
+
},
|
|
201
|
+
{ deep: !0 }
|
|
202
|
+
), E(
|
|
203
|
+
() => D.dataset,
|
|
204
|
+
async (e) => {
|
|
205
|
+
!Array.isArray(e) || e.length === 0 || (await Te(), k.value && !v.value && (v.value = k.value.getContext("2d", {
|
|
206
|
+
willReadFrequently: !0
|
|
207
|
+
})), N.value = !0, X.value = !0, await xe(), Ne(), Ye.value += 1, qe.value += 1, je.value += 1);
|
|
208
|
+
},
|
|
209
|
+
{ deep: !0 }
|
|
210
|
+
);
|
|
180
211
|
const La = c(a.value.style.chart.aspectRatio), { isPrinting: Ca, isImaging: ka, generatePdf: wa, generateImage: Sa } = El({
|
|
181
212
|
elementId: `xy_canvas_${Z.value}`,
|
|
182
213
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
@@ -190,7 +221,13 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
190
221
|
function za(e) {
|
|
191
222
|
me.value = e, da.value += 1;
|
|
192
223
|
}
|
|
193
|
-
const Ta = g(() => bl(a.value.customPalette)), aa = g(
|
|
224
|
+
const Ta = g(() => bl(a.value.customPalette)), aa = g(
|
|
225
|
+
() => p.value.length === M.value.length
|
|
226
|
+
), O = g(() => M.value ? Math.max(
|
|
227
|
+
...M.value.filter(
|
|
228
|
+
(e, t) => aa.value ? !0 : !p.value.includes(e.absoluteIndex)
|
|
229
|
+
).map((e) => e.series.length)
|
|
230
|
+
) : 0);
|
|
194
231
|
function wt(e) {
|
|
195
232
|
$.value = e, J();
|
|
196
233
|
}
|
|
@@ -242,11 +279,23 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
242
279
|
function Aa(e, t) {
|
|
243
280
|
return e / t;
|
|
244
281
|
}
|
|
245
|
-
function $t({
|
|
282
|
+
function $t({
|
|
283
|
+
hasAutoScale: e,
|
|
284
|
+
series: t,
|
|
285
|
+
min: l,
|
|
286
|
+
max: u,
|
|
287
|
+
scale: n,
|
|
288
|
+
yOffset: i,
|
|
289
|
+
individualHeight: r,
|
|
290
|
+
stackIndex: m = null
|
|
291
|
+
}) {
|
|
246
292
|
return t.map((L, x) => {
|
|
247
293
|
const S = n.min < 0 ? Math.abs(n.min) : 0, R = Aa(L + S, S + n.max);
|
|
248
294
|
let oe, Y;
|
|
249
|
-
e && (oe = n.min, Y = Aa(
|
|
295
|
+
e && (oe = n.min, Y = Aa(
|
|
296
|
+
L - oe,
|
|
297
|
+
n.max - oe
|
|
298
|
+
));
|
|
250
299
|
let B = 0;
|
|
251
300
|
return m === null ? B = o.value.bottom - o.value.height * (e ? Y : R) : B = o.value.bottom - i - r * (e ? Y : R), {
|
|
252
301
|
x: o.value.left + o.value.slot * x + o.value.slot / 2,
|
|
@@ -256,7 +305,23 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
256
305
|
});
|
|
257
306
|
}
|
|
258
307
|
const A = g(() => {
|
|
259
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(
|
|
308
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(
|
|
309
|
+
...M.value.filter(
|
|
310
|
+
(r, m) => !p.value.includes(r.absoluteIndex)
|
|
311
|
+
).flatMap(
|
|
312
|
+
(r) => r.series.slice(s.value.start, s.value.end)
|
|
313
|
+
)
|
|
314
|
+
), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(
|
|
315
|
+
...M.value.filter(
|
|
316
|
+
(r, m) => !p.value.includes(r.absoluteIndex)
|
|
317
|
+
).flatMap(
|
|
318
|
+
(r) => r.series.slice(s.value.start, s.value.end)
|
|
319
|
+
)
|
|
320
|
+
), l = ra(
|
|
321
|
+
e < 0 ? e : 0,
|
|
322
|
+
t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t,
|
|
323
|
+
a.value.style.chart.scale.ticks
|
|
324
|
+
), u = l.min < 0 ? Math.abs(l.min) : 0, n = o.value.bottom - o.value.height * (u / (l.max + u)), i = l.ticks.map((r) => ({
|
|
260
325
|
y: o.value.bottom - o.value.height * ((r + u) / (l.max + u)),
|
|
261
326
|
x: o.value.left - 8,
|
|
262
327
|
value: r
|
|
@@ -294,12 +359,20 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
294
359
|
threshold: a.value.downsample.threshold
|
|
295
360
|
}),
|
|
296
361
|
absoluteIndex: t,
|
|
297
|
-
color: lt(
|
|
362
|
+
color: lt(
|
|
363
|
+
e.color || Ta.value[t] || se[t] || se[t % se.length]
|
|
364
|
+
)
|
|
298
365
|
}))), At = g(() => {
|
|
299
366
|
if (!a.value.style.chart.zoom.minimap.show) return [];
|
|
300
|
-
const e = M.value.filter(
|
|
367
|
+
const e = M.value.filter(
|
|
368
|
+
(n) => !p.value.includes(n.absoluteIndex)
|
|
369
|
+
), t = Math.max(
|
|
370
|
+
...e.map((n) => n.series.length)
|
|
371
|
+
), l = [];
|
|
301
372
|
for (let n = 0; n < t; n += 1)
|
|
302
|
-
l.push(
|
|
373
|
+
l.push(
|
|
374
|
+
e.map((i) => i.series[n] || 0).reduce((i, r) => (i || 0) + (r || 0), 0)
|
|
375
|
+
);
|
|
303
376
|
const u = Math.min(...l);
|
|
304
377
|
return l.map((n) => n + (u < 0 ? Math.abs(u) : 0));
|
|
305
378
|
}), It = g(() => a.value.style.chart.zoom.minimap.show ? M.value.map((t) => ({
|
|
@@ -309,7 +382,11 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
309
382
|
E(O, (e) => {
|
|
310
383
|
e && xe();
|
|
311
384
|
});
|
|
312
|
-
const f = g(() => Cl(
|
|
385
|
+
const f = g(() => Cl(
|
|
386
|
+
M.value.filter(
|
|
387
|
+
(e, t) => !p.value.includes(e.absoluteIndex)
|
|
388
|
+
)
|
|
389
|
+
).map((e, t) => ({
|
|
313
390
|
...e,
|
|
314
391
|
series: e.series.slice(s.value.start, s.value.end)
|
|
315
392
|
})).map((e, t) => {
|
|
@@ -320,7 +397,15 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
320
397
|
valueMax: u
|
|
321
398
|
}, i = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
322
399
|
let r;
|
|
323
|
-
e.autoScaling ? r = ra(
|
|
400
|
+
e.autoScaling ? r = ra(
|
|
401
|
+
n.valueMin,
|
|
402
|
+
n.valueMax,
|
|
403
|
+
i
|
|
404
|
+
) : r = ra(
|
|
405
|
+
n.valueMin < 0 ? n.valueMin : 0,
|
|
406
|
+
n.valueMax <= 0 ? 0 : n.valueMax,
|
|
407
|
+
i
|
|
408
|
+
);
|
|
324
409
|
const m = d.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, L = d.value.stacked ? o.value.height / a.value.style.chart.stackGap : 0, x = d.value.stacked ? o.value.height * e.stackRatio - L : o.value.height, S = r.min < 0 ? Math.abs(r.min) : 0;
|
|
325
410
|
let R;
|
|
326
411
|
e.autoScaling && d.value.stacked && u <= 0 ? R = o.value.bottom - m - x : R = o.value.bottom - m - x * (S / (r.max + S));
|
|
@@ -355,9 +440,9 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
355
440
|
end: O.value
|
|
356
441
|
}), F = c({ start: 0, end: O.value }), be = c(null);
|
|
357
442
|
function Mt() {
|
|
358
|
-
return new Promise(
|
|
359
|
-
() => requestAnimationFrame(() => e())
|
|
360
|
-
)
|
|
443
|
+
return new Promise(
|
|
444
|
+
(e) => requestAnimationFrame(() => requestAnimationFrame(() => e()))
|
|
445
|
+
);
|
|
361
446
|
}
|
|
362
447
|
sa(() => {
|
|
363
448
|
be.value && cancelAnimationFrame(be.value);
|
|
@@ -418,7 +503,12 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
418
503
|
await Te(), k.value && !v.value && (v.value = k.value.getContext("2d", { willReadFrequently: !0 })), N.value = !0, X.value = !0, await xe(), Ne(), J();
|
|
419
504
|
});
|
|
420
505
|
function Ot() {
|
|
421
|
-
if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(
|
|
506
|
+
if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(
|
|
507
|
+
0,
|
|
508
|
+
0,
|
|
509
|
+
o.value.canvasWidth,
|
|
510
|
+
o.value.canvasHeight
|
|
511
|
+
), !!U.value)) {
|
|
422
512
|
if (d.value.stacked)
|
|
423
513
|
a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? f.value.forEach((e) => {
|
|
424
514
|
for (let t = 0; t < s.value.end - s.value.start + 1; t += 1)
|
|
@@ -440,7 +530,9 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
440
530
|
);
|
|
441
531
|
}) : a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && f.value.forEach((e) => {
|
|
442
532
|
for (let t = s.value.start; t < s.value.end; t += 1)
|
|
443
|
-
t % Math.floor(
|
|
533
|
+
t % Math.floor(
|
|
534
|
+
(s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
|
|
535
|
+
) === 0 && T(
|
|
444
536
|
v.value,
|
|
445
537
|
[
|
|
446
538
|
{
|
|
@@ -463,11 +555,20 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
463
555
|
[
|
|
464
556
|
{ x: o.value.left, y: t.y },
|
|
465
557
|
{ x: o.value.right, y: t.y },
|
|
466
|
-
{
|
|
467
|
-
|
|
558
|
+
{
|
|
559
|
+
x: o.value.right,
|
|
560
|
+
y: e.localYLabels[l + 1].y
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
x: o.value.left,
|
|
564
|
+
y: e.localYLabels[l + 1].y
|
|
565
|
+
}
|
|
468
566
|
],
|
|
469
567
|
{
|
|
470
|
-
fillColor: l % 2 === 0 ? "transparent" : Ie(
|
|
568
|
+
fillColor: l % 2 === 0 ? "transparent" : Ie(
|
|
569
|
+
a.value.style.chart.grid.x.horizontalLines.color,
|
|
570
|
+
a.value.style.chart.grid.x.horizontalLines.opacity
|
|
571
|
+
),
|
|
471
572
|
strokeColor: "transparent"
|
|
472
573
|
}
|
|
473
574
|
);
|
|
@@ -501,8 +602,14 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
501
602
|
T(
|
|
502
603
|
v.value,
|
|
503
604
|
[
|
|
504
|
-
{
|
|
505
|
-
|
|
605
|
+
{
|
|
606
|
+
x: o.value.left,
|
|
607
|
+
y: o.value.bottom - e.yOffset
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
x: o.value.left,
|
|
611
|
+
y: o.value.bottom - e.yOffset - e.individualHeight
|
|
612
|
+
}
|
|
506
613
|
],
|
|
507
614
|
{
|
|
508
615
|
color: e.color
|
|
@@ -510,8 +617,14 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
510
617
|
), T(
|
|
511
618
|
v.value,
|
|
512
619
|
[
|
|
513
|
-
{
|
|
514
|
-
|
|
620
|
+
{
|
|
621
|
+
x: o.value.right,
|
|
622
|
+
y: o.value.bottom - e.yOffset
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
x: o.value.right,
|
|
626
|
+
y: o.value.bottom - e.yOffset - e.individualHeight
|
|
627
|
+
}
|
|
515
628
|
],
|
|
516
629
|
{
|
|
517
630
|
color: e.color
|
|
@@ -537,8 +650,14 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
537
650
|
T(
|
|
538
651
|
v.value,
|
|
539
652
|
[
|
|
540
|
-
{
|
|
541
|
-
|
|
653
|
+
{
|
|
654
|
+
x: o.value.left + o.value.slot * e,
|
|
655
|
+
y: o.value.top
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
x: o.value.left + o.value.slot * e,
|
|
659
|
+
y: o.value.bottom
|
|
660
|
+
}
|
|
542
661
|
],
|
|
543
662
|
{
|
|
544
663
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
@@ -546,11 +665,19 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
546
665
|
);
|
|
547
666
|
else if (a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
548
667
|
for (let e = s.value.start; e < s.value.end; e += 1)
|
|
549
|
-
e % Math.floor(
|
|
668
|
+
e % Math.floor(
|
|
669
|
+
(s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
|
|
670
|
+
) === 0 && T(
|
|
550
671
|
v.value,
|
|
551
672
|
[
|
|
552
|
-
{
|
|
553
|
-
|
|
673
|
+
{
|
|
674
|
+
x: o.value.left + o.value.slot * (e - s.value.start) + o.value.slot / 2,
|
|
675
|
+
y: o.value.top
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
x: o.value.left + o.value.slot * (e - s.value.start) + o.value.slot / 2,
|
|
679
|
+
y: o.value.bottom
|
|
680
|
+
}
|
|
554
681
|
],
|
|
555
682
|
{
|
|
556
683
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
@@ -562,11 +689,20 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
562
689
|
[
|
|
563
690
|
{ x: o.value.left, y: e.y },
|
|
564
691
|
{ x: o.value.right, y: e.y },
|
|
565
|
-
{
|
|
566
|
-
|
|
692
|
+
{
|
|
693
|
+
x: o.value.right,
|
|
694
|
+
y: A.value.yLabels[t + 1].y
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
x: o.value.left,
|
|
698
|
+
y: A.value.yLabels[t + 1].y
|
|
699
|
+
}
|
|
567
700
|
],
|
|
568
701
|
{
|
|
569
|
-
fillColor: t % 2 === 0 ? "transparent" : Ie(
|
|
702
|
+
fillColor: t % 2 === 0 ? "transparent" : Ie(
|
|
703
|
+
a.value.style.chart.grid.x.horizontalLines.color,
|
|
704
|
+
a.value.style.chart.grid.x.horizontalLines.opacity
|
|
705
|
+
),
|
|
570
706
|
strokeColor: "transparent"
|
|
571
707
|
}
|
|
572
708
|
);
|
|
@@ -604,8 +740,14 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
604
740
|
), a.value.style.chart.grid.zeroLine.show && T(
|
|
605
741
|
v.value,
|
|
606
742
|
[
|
|
607
|
-
{
|
|
608
|
-
|
|
743
|
+
{
|
|
744
|
+
x: o.value.left,
|
|
745
|
+
y: A.value.zero
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
x: o.value.right,
|
|
749
|
+
y: A.value.zero
|
|
750
|
+
}
|
|
609
751
|
],
|
|
610
752
|
{
|
|
611
753
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -698,7 +840,9 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
698
840
|
align: "right",
|
|
699
841
|
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
700
842
|
color: e.color,
|
|
701
|
-
globalAlpha: e.showYMarker && ![null, void 0].includes(
|
|
843
|
+
globalAlpha: e.showYMarker && ![null, void 0].includes(
|
|
844
|
+
h.value ?? $.value
|
|
845
|
+
) ? 0.2 : 1
|
|
702
846
|
}
|
|
703
847
|
);
|
|
704
848
|
});
|
|
@@ -722,7 +866,11 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
722
866
|
align: "right",
|
|
723
867
|
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
724
868
|
color: a.value.style.chart.grid.y.axisLabels.color,
|
|
725
|
-
globalAlpha: f.value.some(
|
|
869
|
+
globalAlpha: f.value.some(
|
|
870
|
+
(l) => l.showYMarker
|
|
871
|
+
) && ![null, void 0].includes(
|
|
872
|
+
h.value ?? $.value
|
|
873
|
+
) ? 0.2 : 1
|
|
726
874
|
}
|
|
727
875
|
);
|
|
728
876
|
}));
|
|
@@ -767,15 +915,25 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
767
915
|
});
|
|
768
916
|
e === Ra && (w.value = t);
|
|
769
917
|
})();
|
|
770
|
-
}), ua(
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
918
|
+
}), ua(
|
|
919
|
+
() => {
|
|
920
|
+
a.value.style.chart.grid.x.timeLabels.show, a.value.style.chart.grid.x.timeLabels.rotation, a.value.style.chart.grid.x.timeLabels.offsetY, a.value.style.chart.grid.x.timeLabels.fontSizeRatio, a.value.style.chart.grid.x.timeLabels.bold, s.value.start, s.value.end, y.value, ee.value, (w.value || []).map((e) => e?.text ?? "").join("|"), Tt();
|
|
921
|
+
},
|
|
922
|
+
{ flush: "post" }
|
|
923
|
+
);
|
|
924
|
+
const Da = c({
|
|
925
|
+
months: [],
|
|
926
|
+
shortMonths: [],
|
|
927
|
+
days: [],
|
|
928
|
+
shortDays: []
|
|
929
|
+
});
|
|
774
930
|
let Oa = 0;
|
|
775
931
|
ua(() => {
|
|
776
932
|
const e = ++Oa, t = a.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
777
933
|
(async () => {
|
|
778
|
-
const l = await ut(t.locale).catch(
|
|
934
|
+
const l = await ut(t.locale).catch(
|
|
935
|
+
() => ut("en")
|
|
936
|
+
);
|
|
779
937
|
e === Oa && (Da.value = l.data);
|
|
780
938
|
})();
|
|
781
939
|
});
|
|
@@ -790,15 +948,23 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
790
948
|
return i == null ? "" : t.formatDate(new Date(i), u);
|
|
791
949
|
};
|
|
792
950
|
}), Na = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((t, l) => ({
|
|
793
|
-
text: Ea.value(
|
|
951
|
+
text: Ea.value(
|
|
952
|
+
l,
|
|
953
|
+
a.value.style.chart.zoom.timeFormat
|
|
954
|
+
),
|
|
794
955
|
absoluteIndex: l
|
|
795
956
|
}))), Be = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((t, l) => ({
|
|
796
|
-
text: Ea.value(
|
|
957
|
+
text: Ea.value(
|
|
958
|
+
l,
|
|
959
|
+
a.value.style.chart.tooltip.timeFormat
|
|
960
|
+
),
|
|
797
961
|
absoluteIndex: l
|
|
798
962
|
})));
|
|
799
963
|
function Wt() {
|
|
800
964
|
for (let e = s.value.start; e < s.value.end; e += 1)
|
|
801
|
-
(s.value.end - s.value.start < a.value.style.chart.grid.x.timeLabels.modulo || s.value.end - s.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor(
|
|
965
|
+
(s.value.end - s.value.start < a.value.style.chart.grid.x.timeLabels.modulo || s.value.end - s.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor(
|
|
966
|
+
(s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
|
|
967
|
+
) === 0 || (e === h.value + s.value.start || e === $.value) && a.value.style.chart.grid.x.timeLabels.showMarker)) && Q(
|
|
802
968
|
v.value,
|
|
803
969
|
w.value[e] ? w.value[e].text : e + 1,
|
|
804
970
|
o.value.left + o.value.slot * (e - s.value.start) + o.value.slot / 2,
|
|
@@ -806,7 +972,10 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
806
972
|
{
|
|
807
973
|
align: a.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
|
|
808
974
|
font: `${a.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
809
|
-
color: a.value.style.chart.grid.x.timeLabels.showMarker ? Ie(
|
|
975
|
+
color: a.value.style.chart.grid.x.timeLabels.showMarker ? Ie(
|
|
976
|
+
a.value.style.chart.grid.x.timeLabels.color,
|
|
977
|
+
h.value !== null || $.value !== null ? h.value + s.value.start === e || $.value === e ? 100 : 20 : 100
|
|
978
|
+
) : a.value.style.chart.grid.x.timeLabels.color,
|
|
810
979
|
rotation: a.value.style.chart.grid.x.timeLabels.rotation
|
|
811
980
|
}
|
|
812
981
|
);
|
|
@@ -815,8 +984,14 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
815
984
|
T(
|
|
816
985
|
v.value,
|
|
817
986
|
[
|
|
818
|
-
{
|
|
819
|
-
|
|
987
|
+
{
|
|
988
|
+
x: o.value.left + o.value.slot * (h.value ?? $.value) + o.value.slot / 2,
|
|
989
|
+
y: o.value.top
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
x: o.value.left + o.value.slot * (h.value ?? $.value) + o.value.slot / 2,
|
|
993
|
+
y: o.value.bottom
|
|
994
|
+
}
|
|
820
995
|
],
|
|
821
996
|
{
|
|
822
997
|
color: a.value.style.chart.selector.color,
|
|
@@ -876,7 +1051,10 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
876
1051
|
},
|
|
877
1052
|
stops: [
|
|
878
1053
|
{ offset: 0, color: e.color },
|
|
879
|
-
{
|
|
1054
|
+
{
|
|
1055
|
+
offset: 1,
|
|
1056
|
+
color: a.value.style.chart.bar.gradient.show ? Sl(e.color, 0.5) : e.color
|
|
1057
|
+
}
|
|
880
1058
|
]
|
|
881
1059
|
}
|
|
882
1060
|
}
|
|
@@ -891,7 +1069,10 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
891
1069
|
s: e.suffix || "",
|
|
892
1070
|
r: e.rounding || 0
|
|
893
1071
|
}),
|
|
894
|
-
{
|
|
1072
|
+
{
|
|
1073
|
+
datapoint: e.coordinatesLine[l],
|
|
1074
|
+
seriesIndex: l
|
|
1075
|
+
}
|
|
895
1076
|
),
|
|
896
1077
|
o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)) + o.value.slot * 0.4 / (d.value.stacked ? 1 : P.value.length),
|
|
897
1078
|
(e.coordinatesLine[l].value < 0 ? d.value.stacked ? e.localZero : A.value.zero : e.coordinatesLine[l].y) + a.value.style.chart.dataLabels.offsetY,
|
|
@@ -971,30 +1152,27 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
971
1152
|
const { polygons: u, singles: n } = Vt(e, l);
|
|
972
1153
|
for (const r of u)
|
|
973
1154
|
st(v.value, r, {
|
|
974
|
-
fillColor: Ie(
|
|
1155
|
+
fillColor: Ie(
|
|
1156
|
+
e.color,
|
|
1157
|
+
a.value.style.chart.area.opacity
|
|
1158
|
+
),
|
|
975
1159
|
strokeColor: "transparent"
|
|
976
1160
|
});
|
|
977
1161
|
const i = y.value / 200 * a.value.style.chart.line.plots.radiusRatio;
|
|
978
1162
|
for (const r of n)
|
|
979
|
-
va(
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
{
|
|
984
|
-
color: a.value.style.chart.backgroundColor,
|
|
985
|
-
fillStyle: e.color
|
|
986
|
-
}
|
|
987
|
-
);
|
|
1163
|
+
va(v.value, { x: r.x, y: r.y }, i, {
|
|
1164
|
+
color: a.value.style.chart.backgroundColor,
|
|
1165
|
+
fillStyle: e.color
|
|
1166
|
+
});
|
|
988
1167
|
} else {
|
|
989
1168
|
const u = { x: e.coordinatesLine[0].x, y: l }, n = { x: e.coordinatesLine.at(-1).x, y: l };
|
|
990
|
-
st(
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
);
|
|
1169
|
+
st(v.value, [u, ...e.coordinatesLine, n], {
|
|
1170
|
+
fillColor: Ie(
|
|
1171
|
+
e.color,
|
|
1172
|
+
a.value.style.chart.area.opacity
|
|
1173
|
+
),
|
|
1174
|
+
strokeColor: "transparent"
|
|
1175
|
+
});
|
|
998
1176
|
}
|
|
999
1177
|
Ha(e);
|
|
1000
1178
|
return;
|
|
@@ -1006,8 +1184,14 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1006
1184
|
T(
|
|
1007
1185
|
v.value,
|
|
1008
1186
|
[
|
|
1009
|
-
{
|
|
1010
|
-
|
|
1187
|
+
{
|
|
1188
|
+
x: o.value.left,
|
|
1189
|
+
y: o.value.bottom - e.yOffset
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
x: o.value.right,
|
|
1193
|
+
y: o.value.bottom - e.yOffset
|
|
1194
|
+
}
|
|
1011
1195
|
],
|
|
1012
1196
|
{
|
|
1013
1197
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -1023,13 +1207,18 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1023
1207
|
[
|
|
1024
1208
|
{ x: e + S * m, y: t },
|
|
1025
1209
|
{ x: e + S * m + (R - S) * m, y: t },
|
|
1026
|
-
{
|
|
1210
|
+
{
|
|
1211
|
+
x: e + S * m + (R - S) * m,
|
|
1212
|
+
y: t + u
|
|
1213
|
+
},
|
|
1027
1214
|
{ x: e + S * m, y: t + u }
|
|
1028
1215
|
],
|
|
1029
1216
|
{
|
|
1030
1217
|
fillColor: a.value.style.chart.zoom.preview.fill,
|
|
1031
1218
|
strokeColor: a.value.style.chart.zoom.preview.stroke,
|
|
1032
|
-
lineDash: Array(4).fill(
|
|
1219
|
+
lineDash: Array(4).fill(
|
|
1220
|
+
a.value.style.chart.zoom.preview.strokeDasharray
|
|
1221
|
+
),
|
|
1033
1222
|
lineWidth: a.value.style.chart.zoom.preview.strokeWidth
|
|
1034
1223
|
}
|
|
1035
1224
|
);
|
|
@@ -1050,11 +1239,18 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1050
1239
|
);
|
|
1051
1240
|
})), a.value.style.chart.grid.x.timeLabels.show && Wt(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Xt(), Bt(), Nt(), a.value.style.chart.zoom.preview.enable && (s.value.start !== F.value.start || s.value.end !== F.value.end) && jt(), N.value = !1);
|
|
1052
1241
|
}
|
|
1053
|
-
const Le = Al(
|
|
1054
|
-
|
|
1055
|
-
|
|
1242
|
+
const Le = Al(
|
|
1243
|
+
() => {
|
|
1244
|
+
X.value = !0, Ne();
|
|
1245
|
+
},
|
|
1246
|
+
O.value > 200 ? 10 : 1,
|
|
1247
|
+
!X.value
|
|
1248
|
+
);
|
|
1056
1249
|
function Ce(e) {
|
|
1057
|
-
if ([null, void 0].includes(
|
|
1250
|
+
if ([null, void 0].includes(
|
|
1251
|
+
h.value ?? $.value
|
|
1252
|
+
) || !e.coordinatesLine[h.value ?? $.value])
|
|
1253
|
+
return !1;
|
|
1058
1254
|
const { y: t, value: l } = e.coordinatesLine[h.value ?? $.value];
|
|
1059
1255
|
return { y: t, value: l };
|
|
1060
1256
|
}
|
|
@@ -1076,22 +1272,33 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1076
1272
|
value: x.series.find((S, R) => R === h.value)
|
|
1077
1273
|
}));
|
|
1078
1274
|
Me.value = {
|
|
1079
|
-
timeLabel: a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1275
|
+
timeLabel: a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1276
|
+
s.value.start,
|
|
1277
|
+
s.value.end
|
|
1278
|
+
)[h.value] ? a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(
|
|
1279
|
+
s.value.start,
|
|
1280
|
+
s.value.end
|
|
1281
|
+
)[h.value]?.text : Be.value[h.value]?.text : "",
|
|
1080
1282
|
datapoint: L,
|
|
1081
1283
|
seriesIndex: h.value,
|
|
1082
1284
|
series: f.value,
|
|
1083
1285
|
config: a.value
|
|
1084
|
-
}, Xa({ seriesIndex: h.value, datapoint: L }), ia(m) && ot(
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1286
|
+
}, Xa({ seriesIndex: h.value, datapoint: L }), ia(m) && ot(
|
|
1287
|
+
() => m({
|
|
1288
|
+
seriesIndex: h.value,
|
|
1289
|
+
datapoint: L,
|
|
1290
|
+
series: f.value,
|
|
1291
|
+
config: a.value
|
|
1292
|
+
})
|
|
1293
|
+
) ? fe.value = m({
|
|
1090
1294
|
seriesIndex: h.value,
|
|
1091
1295
|
datapoint: L,
|
|
1092
1296
|
series: f.value,
|
|
1093
1297
|
config: a.value
|
|
1094
|
-
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1298
|
+
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1299
|
+
s.value.start,
|
|
1300
|
+
s.value.end
|
|
1301
|
+
)[h.value] ? r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[h.value]?.text : Be.value[h.value]?.text}</div>` : r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${w.value[h.value + s.value.start]?.text ?? ""}</div>`, r += Ia.value.join(""), fe.value = r), X.value = !1;
|
|
1095
1302
|
}
|
|
1096
1303
|
function Zt(e) {
|
|
1097
1304
|
return f.value.map((t) => ({
|
|
@@ -1105,17 +1312,22 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1105
1312
|
function Kt(e) {
|
|
1106
1313
|
let t = "";
|
|
1107
1314
|
const l = a.value.style.chart.tooltip.customFormat, u = Zt(e);
|
|
1108
|
-
return Xa({ seriesIndex: e, datapoint: u }), ia(l) && ot(
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1315
|
+
return Xa({ seriesIndex: e, datapoint: u }), ia(l) && ot(
|
|
1316
|
+
() => l({
|
|
1317
|
+
seriesIndex: e,
|
|
1318
|
+
datapoint: u,
|
|
1319
|
+
series: f.value,
|
|
1320
|
+
config: a.value
|
|
1321
|
+
})
|
|
1322
|
+
) ? l({
|
|
1114
1323
|
seriesIndex: e,
|
|
1115
1324
|
datapoint: u,
|
|
1116
1325
|
series: f.value,
|
|
1117
1326
|
config: a.value
|
|
1118
|
-
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1327
|
+
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1328
|
+
s.value.start,
|
|
1329
|
+
s.value.end
|
|
1330
|
+
)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[e]?.text : Be.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${w.value[e + s.value.start]?.text ?? ""}</div>`, t += Ia.value.join(""), t);
|
|
1119
1331
|
}
|
|
1120
1332
|
function Jt(e) {
|
|
1121
1333
|
if (!k.value || !o.value?.slot) return;
|
|
@@ -1155,28 +1367,52 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1155
1367
|
indexLabel: ""
|
|
1156
1368
|
});
|
|
1157
1369
|
}
|
|
1158
|
-
E(
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1370
|
+
E(
|
|
1371
|
+
() => D.selectedXIndex,
|
|
1372
|
+
(e) => {
|
|
1373
|
+
if ([null, void 0].includes(D.selectedXIndex)) {
|
|
1374
|
+
ke();
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
const t = e - s.value.start;
|
|
1378
|
+
t < 0 || e >= s.value.end ? ke() : Wa(t, { fromKeyboard: !1 });
|
|
1379
|
+
},
|
|
1380
|
+
{ immediate: !0 }
|
|
1381
|
+
), E(
|
|
1382
|
+
() => h.value,
|
|
1383
|
+
(e) => {
|
|
1384
|
+
Le();
|
|
1162
1385
|
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1386
|
+
), E(
|
|
1387
|
+
() => s.value,
|
|
1388
|
+
(e) => {
|
|
1389
|
+
N.value = !0, J();
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
deep: !0
|
|
1393
|
+
}
|
|
1394
|
+
), E(
|
|
1395
|
+
() => F.value,
|
|
1396
|
+
(e) => {
|
|
1397
|
+
J();
|
|
1398
|
+
},
|
|
1399
|
+
{ deep: !0 }
|
|
1400
|
+
), E(
|
|
1401
|
+
() => d.value.showDataLabels,
|
|
1402
|
+
(e) => {
|
|
1403
|
+
N.value = !0, J();
|
|
1404
|
+
}
|
|
1405
|
+
), E(
|
|
1406
|
+
() => _.value,
|
|
1407
|
+
(e) => {
|
|
1408
|
+
e && J();
|
|
1409
|
+
}
|
|
1410
|
+
), E(
|
|
1411
|
+
() => d.value.stacked,
|
|
1412
|
+
(e) => {
|
|
1413
|
+
N.value = !0, X.value = !0, Le();
|
|
1414
|
+
}
|
|
1415
|
+
);
|
|
1180
1416
|
function tl() {
|
|
1181
1417
|
ke();
|
|
1182
1418
|
}
|
|
@@ -1186,7 +1422,9 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1186
1422
|
});
|
|
1187
1423
|
function _a() {
|
|
1188
1424
|
if (kl(D.dataset) && xt.value && wl({ componentName: "VueUiXyCanvas", type: "dataset" }), Te(() => {
|
|
1189
|
-
k.value && !v.value && (v.value = k.value.getContext("2d", {
|
|
1425
|
+
k.value && !v.value && (v.value = k.value.getContext("2d", {
|
|
1426
|
+
willReadFrequently: !0
|
|
1427
|
+
})), v.value && U.value && (N.value = !0, X.value = !0, Ne());
|
|
1190
1428
|
}), a.value.responsive) {
|
|
1191
1429
|
const e = Il(() => {
|
|
1192
1430
|
const { width: t, height: l } = Ml({
|
|
@@ -1216,7 +1454,10 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1216
1454
|
}), N.value = !0, Le();
|
|
1217
1455
|
}
|
|
1218
1456
|
function He(e) {
|
|
1219
|
-
De(
|
|
1457
|
+
De(
|
|
1458
|
+
"selectLegend",
|
|
1459
|
+
f.value.find((t) => t.absoluteIndex === e)
|
|
1460
|
+
), p.value.includes(e) ? p.value = p.value.filter((t) => t !== e) : p.value.push(e), N.value = !0, Le();
|
|
1220
1461
|
}
|
|
1221
1462
|
function Va(e) {
|
|
1222
1463
|
if (!M.value.length)
|
|
@@ -1253,16 +1494,26 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1253
1494
|
paddingBottom: 12,
|
|
1254
1495
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
1255
1496
|
})), Xe = g(() => {
|
|
1256
|
-
const e = [""].concat(f.value.map((n) => n.name)).concat(
|
|
1497
|
+
const e = [""].concat(f.value.map((n) => n.name)).concat(
|
|
1498
|
+
' <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>'
|
|
1499
|
+
);
|
|
1257
1500
|
let t = [];
|
|
1258
1501
|
for (let n = 0; n < O.value; n += 1) {
|
|
1259
1502
|
const i = f.value.map((r) => r.series[n] ?? 0).reduce((r, m) => r + m, 0);
|
|
1260
1503
|
t.push(
|
|
1261
1504
|
[
|
|
1262
|
-
a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1505
|
+
a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1506
|
+
s.value.start,
|
|
1507
|
+
s.value.end
|
|
1508
|
+
)[n] ? w?.value?.slice(
|
|
1509
|
+
s.value.start,
|
|
1510
|
+
s.value.end
|
|
1511
|
+
)?.[n]?.text ?? n + 1 : n + 1
|
|
1263
1512
|
].concat(
|
|
1264
1513
|
f.value.map(
|
|
1265
|
-
(r) => (r.series[n] ?? 0).toFixed(
|
|
1514
|
+
(r) => (r.series[n] ?? 0).toFixed(
|
|
1515
|
+
a.value.table.rounding
|
|
1516
|
+
)
|
|
1266
1517
|
)
|
|
1267
1518
|
).concat((i ?? 0).toFixed(a.value.table.rounding))
|
|
1268
1519
|
);
|
|
@@ -1280,25 +1531,46 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1280
1531
|
},
|
|
1281
1532
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
1282
1533
|
}, u = [a.value.table.columnNames.period].concat(f.value.map((n) => n.name)).concat(a.value.table.columnNames.total);
|
|
1283
|
-
return {
|
|
1534
|
+
return {
|
|
1535
|
+
head: e,
|
|
1536
|
+
body: t.slice(0, s.value.end - s.value.start),
|
|
1537
|
+
config: l,
|
|
1538
|
+
colNames: u
|
|
1539
|
+
};
|
|
1284
1540
|
}), Ua = g(() => {
|
|
1285
|
-
if (f.value.length === 0)
|
|
1541
|
+
if (f.value.length === 0)
|
|
1542
|
+
return { head: [], body: [], config: {}, columnNames: [] };
|
|
1286
1543
|
const e = f.value.map((l) => ({
|
|
1287
1544
|
label: l.name,
|
|
1288
1545
|
color: l.color,
|
|
1289
1546
|
type: l.type
|
|
1290
1547
|
})), t = [];
|
|
1291
1548
|
for (let l = s.value.start; l < s.value.end; l += 1) {
|
|
1292
|
-
const u = [
|
|
1549
|
+
const u = [
|
|
1550
|
+
a.value.style.chart.grid.x.timeLabels.values[l] ? w.value[l].text : l + 1
|
|
1551
|
+
];
|
|
1293
1552
|
f.value.forEach((n) => {
|
|
1294
|
-
u.push(
|
|
1553
|
+
u.push(
|
|
1554
|
+
Number(
|
|
1555
|
+
(n.series[l] || 0).toFixed(
|
|
1556
|
+
a.value.table.rounding
|
|
1557
|
+
)
|
|
1558
|
+
)
|
|
1559
|
+
);
|
|
1295
1560
|
}), t.push(u);
|
|
1296
1561
|
}
|
|
1297
1562
|
return { head: e, body: t };
|
|
1298
1563
|
});
|
|
1299
1564
|
function la(e = null) {
|
|
1300
|
-
const t = [
|
|
1301
|
-
|
|
1565
|
+
const t = [
|
|
1566
|
+
[a.value.style.chart.title.text],
|
|
1567
|
+
[a.value.style.chart.title.subtitle.text],
|
|
1568
|
+
[""]
|
|
1569
|
+
], l = ["", ...Ua.value.head.map((r) => r.label)], u = Ua.value.body, n = t.concat([l]).concat(u), i = zl(n);
|
|
1570
|
+
e ? e(i) : Tl({
|
|
1571
|
+
csvContent: i,
|
|
1572
|
+
title: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
1573
|
+
});
|
|
1302
1574
|
}
|
|
1303
1575
|
function nl() {
|
|
1304
1576
|
return f.value;
|
|
@@ -1321,7 +1593,12 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1321
1593
|
}
|
|
1322
1594
|
async function rl({ scale: e = 2 } = {}) {
|
|
1323
1595
|
if (!K.value) return;
|
|
1324
|
-
const { width: t, height: l } = K.value.getBoundingClientRect(), u = t / l, { imageUri: n, base64: i } = await Wl({
|
|
1596
|
+
const { width: t, height: l } = K.value.getBoundingClientRect(), u = t / l, { imageUri: n, base64: i } = await Wl({
|
|
1597
|
+
domElement: K.value,
|
|
1598
|
+
base64: !0,
|
|
1599
|
+
img: !0,
|
|
1600
|
+
scale: e
|
|
1601
|
+
});
|
|
1325
1602
|
return {
|
|
1326
1603
|
imageUri: n,
|
|
1327
1604
|
base64: i,
|
|
@@ -1362,9 +1639,12 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1362
1639
|
}
|
|
1363
1640
|
};
|
|
1364
1641
|
});
|
|
1365
|
-
E(
|
|
1366
|
-
|
|
1367
|
-
|
|
1642
|
+
E(
|
|
1643
|
+
() => d.value.showTable,
|
|
1644
|
+
(e) => {
|
|
1645
|
+
a.value.table.show || (e && a.value.table.useDialog && ye.value ? ye.value.open() : "close" in ye.value && ye.value.close());
|
|
1646
|
+
}
|
|
1647
|
+
);
|
|
1368
1648
|
function Za() {
|
|
1369
1649
|
d.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
|
|
1370
1650
|
}
|
|
@@ -1384,13 +1664,17 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1384
1664
|
config: a.value,
|
|
1385
1665
|
dataset: f.value
|
|
1386
1666
|
}), !a.value.userOptions.callbacks.altCopy) {
|
|
1387
|
-
console.warn(
|
|
1667
|
+
console.warn(
|
|
1668
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
1669
|
+
);
|
|
1388
1670
|
return;
|
|
1389
1671
|
}
|
|
1390
|
-
await Promise.resolve(
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1672
|
+
await Promise.resolve(
|
|
1673
|
+
a.value.userOptions.callbacks.altCopy({
|
|
1674
|
+
config: a.value,
|
|
1675
|
+
dataset: f.value
|
|
1676
|
+
})
|
|
1677
|
+
);
|
|
1394
1678
|
}
|
|
1395
1679
|
return nt({
|
|
1396
1680
|
getData: nl,
|
|
@@ -1590,7 +1874,10 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1590
1874
|
onKeydown: al
|
|
1591
1875
|
}, null, 40, eo),
|
|
1592
1876
|
e.$slots.hint ? (I(), $e("div", ao, [
|
|
1593
|
-
C(e.$slots, "hint", j(G({
|
|
1877
|
+
C(e.$slots, "hint", j(G({
|
|
1878
|
+
hint: a.value.a11y.translations.keyboardNavigation,
|
|
1879
|
+
isVisible: Ke.value
|
|
1880
|
+
})), void 0, !0)
|
|
1594
1881
|
])) : W("", !0),
|
|
1595
1882
|
C(e.$slots, "skeleton", {}, () => [
|
|
1596
1883
|
z(Oe) ? (I(), q(Ol, { key: 0 })) : W("", !0)
|
|
@@ -1739,7 +2026,9 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1739
2026
|
], 512)
|
|
1740
2027
|
], 8, ["to"])) : W("", !0),
|
|
1741
2028
|
e.$slots.watermark ? (I(), $e("div", oo, [
|
|
1742
|
-
C(e.$slots, "watermark", j(G({
|
|
2029
|
+
C(e.$slots, "watermark", j(G({
|
|
2030
|
+
isPrinting: z(Ca) || z(ka) || Ze.value
|
|
2031
|
+
})), void 0, !0)
|
|
1743
2032
|
])) : W("", !0),
|
|
1744
2033
|
e.$slots.source ? (I(), $e("div", {
|
|
1745
2034
|
key: 5,
|
|
@@ -1813,7 +2102,7 @@ const Zl = ["id"], Kl = ["id"], Jl = {
|
|
|
1813
2102
|
}, null, 8, ["parent", "backgroundColor", "color", "active", "isCursorPointer"])) : W("", !0)
|
|
1814
2103
|
], 46, Zl));
|
|
1815
2104
|
}
|
|
1816
|
-
}, $o = /* @__PURE__ */ Gl(uo, [["__scopeId", "data-v-
|
|
2105
|
+
}, $o = /* @__PURE__ */ Gl(uo, [["__scopeId", "data-v-db327a26"]]);
|
|
1817
2106
|
export {
|
|
1818
2107
|
$o as default
|
|
1819
2108
|
};
|