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,12 +1,12 @@
|
|
|
1
1
|
import { computed as de, ref as i, watch as ut, onMounted as kt, onBeforeUnmount as xt, openBlock as f, createBlock as E, Teleport as qt, createElementBlock as Y, normalizeStyle as C, normalizeClass as D, createElementVNode as r, renderSlot as gt, createCommentVNode as g, createVNode as _, withCtx as W, createTextVNode as R, toDisplayString as S, unref as tt, withDirectives as ze, vModelCheckbox as lt, vModelText as ot, withModifiers as Ge, Fragment as Jt, renderList as Zt, nextTick as Qt } from "vue";
|
|
2
|
-
import { j as he, t as _t, y as el,
|
|
3
|
-
import { u as ll } from "./useConfig-
|
|
4
|
-
import { d as ol } from "./dom-to-png-
|
|
5
|
-
import { u as ul } from "./usePrinter-
|
|
6
|
-
import oe from "./BaseIcon-
|
|
7
|
-
import rl from "./vue-ui-accordion-
|
|
2
|
+
import { j as he, t as _t, y as el, aB as tl } from "./lib-DMzrGQHK.js";
|
|
3
|
+
import { u as ll } from "./useConfig-DTHxOX6V.js";
|
|
4
|
+
import { d as ol } from "./dom-to-png-DGvx6i5V.js";
|
|
5
|
+
import { u as ul } from "./usePrinter-C4t8DdQ-.js";
|
|
6
|
+
import oe from "./BaseIcon-DX0hTWa-.js";
|
|
7
|
+
import rl from "./vue-ui-accordion-BHmfmb_6.js";
|
|
8
8
|
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { C as nl } from "./ColorPicker-
|
|
9
|
+
import { C as nl } from "./ColorPicker-bAxGcXK0.js";
|
|
10
10
|
function sl(p) {
|
|
11
11
|
const Q = (d) => p.isMacLike.value ? d.metaKey : d.ctrlKey, pe = (d) => {
|
|
12
12
|
const V = d;
|
|
@@ -66,7 +66,9 @@ function sl(p) {
|
|
|
66
66
|
}
|
|
67
67
|
}, ee = () => {
|
|
68
68
|
const d = p.lastSelectedShape.value;
|
|
69
|
-
d && (p.shapes.value = p.shapes.value.filter(
|
|
69
|
+
d && (p.shapes.value = p.shapes.value.filter(
|
|
70
|
+
(V) => V.id !== d.id
|
|
71
|
+
), p.lastSelectedShape.value = void 0);
|
|
70
72
|
};
|
|
71
73
|
let h = !1, q = null;
|
|
72
74
|
const F = () => {
|
|
@@ -176,9 +178,13 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
176
178
|
se.value = !1, ve = null;
|
|
177
179
|
}, F);
|
|
178
180
|
}
|
|
179
|
-
ut(
|
|
180
|
-
|
|
181
|
-
|
|
181
|
+
ut(
|
|
182
|
+
() => Q.show,
|
|
183
|
+
(F) => {
|
|
184
|
+
F ? ee() : h();
|
|
185
|
+
},
|
|
186
|
+
{ immediate: !0 }
|
|
187
|
+
), kt(() => {
|
|
182
188
|
Q.show && ee();
|
|
183
189
|
}), xt(() => {
|
|
184
190
|
s();
|
|
@@ -206,7 +212,7 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
206
212
|
], 6)) : g("", !0)
|
|
207
213
|
]));
|
|
208
214
|
}
|
|
209
|
-
}, L = /* @__PURE__ */ pt(il, [["__scopeId", "data-v-
|
|
215
|
+
}, L = /* @__PURE__ */ pt(il, [["__scopeId", "data-v-c292996f"]]), dl = { class: "vue-data-ui-component vue-ui-annotator" }, vl = { "data-dom-to-png-ignore": "" }, cl = ["disabled"], yl = ["disabled"], fl = ["disabled"], bl = ["disabled"], kl = ["disabled"], xl = ["disabled"], gl = ["disabled"], pl = ["disabled"], $l = ["disabled"], wl = {
|
|
210
216
|
class: "tool-selection",
|
|
211
217
|
style: { "margin-top": "6px" }
|
|
212
218
|
}, ml = {
|
|
@@ -296,7 +302,11 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
296
302
|
borderRadius: `${e.borderRadius}px`,
|
|
297
303
|
boxShadow: e.boxShadow
|
|
298
304
|
};
|
|
299
|
-
}), mt = de(
|
|
305
|
+
}), mt = de(
|
|
306
|
+
() => n.value.filter((e) => !["line", "group"].includes(e.type)).length > 1
|
|
307
|
+
), me = de(
|
|
308
|
+
() => wt[Be.value > 98 ? 98 : Be.value]
|
|
309
|
+
), Tt = de(() => {
|
|
300
310
|
switch (!0) {
|
|
301
311
|
case $.value:
|
|
302
312
|
return "default";
|
|
@@ -672,11 +682,7 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
672
682
|
return {
|
|
673
683
|
html: `
|
|
674
684
|
${Xe(e)}
|
|
675
|
-
${rt(
|
|
676
|
-
e,
|
|
677
|
-
v,
|
|
678
|
-
e.isBulletTextMode
|
|
679
|
-
)}
|
|
685
|
+
${rt(e, v, e.isBulletTextMode)}
|
|
680
686
|
`,
|
|
681
687
|
id: e.id
|
|
682
688
|
};
|
|
@@ -706,7 +712,19 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
706
712
|
let u, o, v;
|
|
707
713
|
t && (u = t.x - h.value.end.x, o = t.y - h.value.end.y, v = Math.sqrt(u * u + o * o));
|
|
708
714
|
let x, A;
|
|
709
|
-
switch (e ? (x = Math.max(h.value.end.x, t.x), A = Math.min(h.value.end.x, t.x), Math.max(h.value.end.y, t.y), Math.min(h.value.end.y, t.y)) : (x = Math.max(
|
|
715
|
+
switch (e ? (x = Math.max(h.value.end.x, t.x), A = Math.min(h.value.end.x, t.x), Math.max(h.value.end.y, t.y), Math.min(h.value.end.y, t.y)) : (x = Math.max(
|
|
716
|
+
h.value.end.x,
|
|
717
|
+
h.value.start.x
|
|
718
|
+
), A = Math.min(
|
|
719
|
+
h.value.end.x,
|
|
720
|
+
h.value.start.x
|
|
721
|
+
), Math.max(
|
|
722
|
+
h.value.end.y,
|
|
723
|
+
h.value.start.y
|
|
724
|
+
), Math.min(
|
|
725
|
+
h.value.end.y,
|
|
726
|
+
h.value.start.y
|
|
727
|
+
)), !0) {
|
|
710
728
|
case s.value === "arrow":
|
|
711
729
|
n.value.at(-1).endX = h.value.end.x, n.value.at(-1).endY = h.value.end.y;
|
|
712
730
|
break;
|
|
@@ -747,10 +765,7 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
747
765
|
return u.style.pointerEvents = o || "all", t(v?.id) ? v.id : null;
|
|
748
766
|
}
|
|
749
767
|
function Rt(e = {}) {
|
|
750
|
-
const {
|
|
751
|
-
maxEntries: t = 200,
|
|
752
|
-
maxBytes: u = 2e6
|
|
753
|
-
} = e, o = { open: !1, before: null, undo: [], redo: [] }, v = { undo: 0, redo: 0 }, x = (P) => typeof P == "string" ? P.length * 2 : 0, A = () => JSON.stringify({
|
|
768
|
+
const { maxEntries: t = 200, maxBytes: u = 2e6 } = e, o = { open: !1, before: null, undo: [], redo: [] }, v = { undo: 0, redo: 0 }, x = (P) => typeof P == "string" ? P.length * 2 : 0, A = () => JSON.stringify({
|
|
754
769
|
shapes: b(n.value),
|
|
755
770
|
lastSelectedShape: b(a.value)
|
|
756
771
|
}), K = (P) => {
|
|
@@ -830,7 +845,10 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
830
845
|
};
|
|
831
846
|
break;
|
|
832
847
|
case "group":
|
|
833
|
-
ke.value = {
|
|
848
|
+
ke.value = {
|
|
849
|
+
dx: o - (u.x || 0),
|
|
850
|
+
dy: v - (u.y || 0)
|
|
851
|
+
};
|
|
834
852
|
break;
|
|
835
853
|
default:
|
|
836
854
|
ke.value = { dx: 0, dy: 0 };
|
|
@@ -843,10 +861,14 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
843
861
|
);
|
|
844
862
|
switch (!0) {
|
|
845
863
|
case e === "front":
|
|
846
|
-
n.value = n.value.filter(
|
|
864
|
+
n.value = n.value.filter(
|
|
865
|
+
(u) => u.id !== t.id
|
|
866
|
+
), n.value.push(t);
|
|
847
867
|
break;
|
|
848
868
|
case e === "back":
|
|
849
|
-
n.value = n.value.filter(
|
|
869
|
+
n.value = n.value.filter(
|
|
870
|
+
(u) => u.id !== t.id
|
|
871
|
+
), n.value = [t, ...n.value];
|
|
850
872
|
break;
|
|
851
873
|
default:
|
|
852
874
|
return;
|
|
@@ -894,7 +916,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
894
916
|
return;
|
|
895
917
|
}
|
|
896
918
|
const u = () => {
|
|
897
|
-
ue.value = n.value.find(
|
|
919
|
+
ue.value = n.value.find(
|
|
920
|
+
(v) => v.id === e.target.id
|
|
921
|
+
).isDash;
|
|
898
922
|
}, o = () => {
|
|
899
923
|
ee.value = n.value.find(
|
|
900
924
|
(v) => v.id === e.target.id
|
|
@@ -922,7 +946,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
922
946
|
}
|
|
923
947
|
if (e.target.id.includes("text")) {
|
|
924
948
|
M.value = !0, J.value = !0, G.value = !0;
|
|
925
|
-
const v = n.value.find(
|
|
949
|
+
const v = n.value.find(
|
|
950
|
+
(x) => x.id === e.target.id
|
|
951
|
+
);
|
|
926
952
|
v && v.textAlign && (Z.value = n.value.find(
|
|
927
953
|
(x) => x.id === e.target.id
|
|
928
954
|
).textAlign), v && (le.value = n.value.find(
|
|
@@ -981,7 +1007,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
981
1007
|
return;
|
|
982
1008
|
G.value = !0;
|
|
983
1009
|
let u;
|
|
984
|
-
if (a.value.type === "text" ? u = n.value.find(
|
|
1010
|
+
if (a.value.type === "text" ? u = n.value.find(
|
|
1011
|
+
(o) => o.id === a.value.id
|
|
1012
|
+
) : u = n.value.at(-1), q.value = u, u.type === "text")
|
|
985
1013
|
switch (q.value.isBold = b(te.value), q.value.isItalic = b(U.value), q.value.isUnderline = b(be.value), !0) {
|
|
986
1014
|
case [8, 46].includes(t):
|
|
987
1015
|
u.textContent = u.textContent.slice(0, -1);
|
|
@@ -1031,7 +1059,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1031
1059
|
diffEndY: t.endY ? t.endY - e.y : 0
|
|
1032
1060
|
})), e.source = ae.value, ae.value.length > 1) {
|
|
1033
1061
|
const t = b(ae.value).map((u) => u.oldId);
|
|
1034
|
-
n.value = n.value.filter(
|
|
1062
|
+
n.value = n.value.filter(
|
|
1063
|
+
(u) => !t.includes(u.id)
|
|
1064
|
+
), ae.value.forEach((u) => {
|
|
1035
1065
|
switch (!0) {
|
|
1036
1066
|
case u.type === "circle":
|
|
1037
1067
|
e.content += `
|
|
@@ -1176,12 +1206,14 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1176
1206
|
break;
|
|
1177
1207
|
}
|
|
1178
1208
|
case "text": {
|
|
1179
|
-
const x = (o.textContent || "").split("").map(
|
|
1209
|
+
const x = (o.textContent || "").split("").map(
|
|
1210
|
+
(A, K) => `
|
|
1180
1211
|
${o.isBulletTextMode ? `<tspan x="${t + o.diffX - o.fontSize}" y="${u + o.diffY + o.fontSize * K}" id="${o.id}" font-size="${o.fontSize / 2}">⬤</tspan>` : ""}
|
|
1181
1212
|
<tspan id="${o.id}" x="${t + o.diffX}" y="${u + o.diffY + o.fontSize * K}">
|
|
1182
1213
|
${A}
|
|
1183
1214
|
</tspan>
|
|
1184
|
-
`
|
|
1215
|
+
`
|
|
1216
|
+
).join("");
|
|
1185
1217
|
e.content += `
|
|
1186
1218
|
<g id="${o.id}">
|
|
1187
1219
|
<text
|
|
@@ -1358,10 +1390,14 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1358
1390
|
function Et(e) {
|
|
1359
1391
|
const t = e.target.id;
|
|
1360
1392
|
if (!0 === $.value) {
|
|
1361
|
-
re.value?.begin(), n.value = [...n.value].filter(
|
|
1393
|
+
re.value?.begin(), n.value = [...n.value].filter(
|
|
1394
|
+
(u) => u.id !== t
|
|
1395
|
+
), a.value = void 0, re.value?.end();
|
|
1362
1396
|
return;
|
|
1363
1397
|
} else
|
|
1364
|
-
a.value = n.value.find(
|
|
1398
|
+
a.value = n.value.find(
|
|
1399
|
+
(u) => u.id === t
|
|
1400
|
+
);
|
|
1365
1401
|
}
|
|
1366
1402
|
const Ne = i(null);
|
|
1367
1403
|
function Ve(e, t) {
|
|
@@ -1380,7 +1416,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1380
1416
|
try {
|
|
1381
1417
|
t = (await import("jspdf")).default;
|
|
1382
1418
|
} catch {
|
|
1383
|
-
throw new Error(
|
|
1419
|
+
throw new Error(
|
|
1420
|
+
"jspdf is not installed. Run npm install jspdf"
|
|
1421
|
+
);
|
|
1384
1422
|
}
|
|
1385
1423
|
const u = await ol({
|
|
1386
1424
|
container: e,
|
|
@@ -1393,17 +1431,38 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1393
1431
|
}, x = o.width, A = o.height, K = x / v.width * v.height, X = v.width, ge = X / x * A, P = new t("", "pt", "a4");
|
|
1394
1432
|
let ne = 0, Me = A;
|
|
1395
1433
|
if (Me < K)
|
|
1396
|
-
P.addImage(
|
|
1434
|
+
P.addImage(
|
|
1435
|
+
u,
|
|
1436
|
+
"PNG",
|
|
1437
|
+
0,
|
|
1438
|
+
0,
|
|
1439
|
+
X,
|
|
1440
|
+
ge,
|
|
1441
|
+
"",
|
|
1442
|
+
"FAST"
|
|
1443
|
+
);
|
|
1397
1444
|
else
|
|
1398
1445
|
for (; Me > 0; )
|
|
1399
|
-
P.addImage(
|
|
1446
|
+
P.addImage(
|
|
1447
|
+
u,
|
|
1448
|
+
"PNG",
|
|
1449
|
+
0,
|
|
1450
|
+
ne,
|
|
1451
|
+
X,
|
|
1452
|
+
ge,
|
|
1453
|
+
"",
|
|
1454
|
+
"FAST"
|
|
1455
|
+
), Me -= K, ne -= v.height, Me > 0 && P.addPage();
|
|
1400
1456
|
P.save(`${(/* @__PURE__ */ new Date()).toLocaleDateString()}_annotations.pdf`);
|
|
1401
1457
|
};
|
|
1402
1458
|
} catch (t) {
|
|
1403
1459
|
console.error("Error generating image:", t);
|
|
1404
1460
|
} finally {
|
|
1405
1461
|
Ke.value = !1, Ve(e, (t) => {
|
|
1406
|
-
t && t.nodeType === 1 && (t.setAttribute(
|
|
1462
|
+
t && t.nodeType === 1 && (t.setAttribute(
|
|
1463
|
+
"font-family",
|
|
1464
|
+
l.value.style.fontFamily
|
|
1465
|
+
), t.style.fontFamily = l.value.style.fontFamily);
|
|
1407
1466
|
});
|
|
1408
1467
|
}
|
|
1409
1468
|
}
|
|
@@ -1432,7 +1491,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1432
1491
|
!a.value || ["arrow", "text"].includes(a.value.id) || (a.value.alpha = b(me.value));
|
|
1433
1492
|
}
|
|
1434
1493
|
function Nt() {
|
|
1435
|
-
!a.value || !["arrow", "circle", "rect", "line"].includes(
|
|
1494
|
+
!a.value || !["arrow", "circle", "rect", "line"].includes(
|
|
1495
|
+
a.value.type
|
|
1496
|
+
) || (a.value.strokeWidth = b(Math.abs(ee.value)));
|
|
1436
1497
|
}
|
|
1437
1498
|
function De() {
|
|
1438
1499
|
!a.value || a.value.type !== "text" || (a.value.isBold = b(te.value), a.value.isItalic = b(U.value), a.value.isUnderline = b(be.value), a.value.fontSize = b(Ee.value), a.value.isBulletTextMode = b(le.value));
|
|
@@ -1826,7 +1887,11 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1826
1887
|
borderRadius: `${l.value.style.buttons.borderRadius}px`,
|
|
1827
1888
|
cursor: I.value ? "pointer" : "default"
|
|
1828
1889
|
}),
|
|
1829
|
-
class: D({
|
|
1890
|
+
class: D({
|
|
1891
|
+
"button-tool": !0,
|
|
1892
|
+
"button-tool--one-shot": !0,
|
|
1893
|
+
tooltip: !0
|
|
1894
|
+
}),
|
|
1830
1895
|
onClick: t[21] || (t[21] = (o) => {
|
|
1831
1896
|
w.value = !1, T.value = !1, $.value = !1, B.value = !1, m.value = !1, M.value = !1, J.value = !1, s.value = void 0, G.value = !1, vt();
|
|
1832
1897
|
}),
|
|
@@ -1865,7 +1930,11 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
1865
1930
|
borderRadius: `${l.value.style.buttons.borderRadius}px`,
|
|
1866
1931
|
cursor: I.value ? "pointer" : "default"
|
|
1867
1932
|
}),
|
|
1868
|
-
class: D({
|
|
1933
|
+
class: D({
|
|
1934
|
+
"button-tool": !0,
|
|
1935
|
+
"button-tool--one-shot": !0,
|
|
1936
|
+
tooltip: !0
|
|
1937
|
+
}),
|
|
1869
1938
|
onClick: t[24] || (t[24] = (o) => {
|
|
1870
1939
|
w.value = !1, T.value = !1, $.value = !1, B.value = !1, m.value = !1, M.value = !1, J.value = !1, s.value = void 0, G.value = !1, ct();
|
|
1871
1940
|
}),
|
|
@@ -2231,7 +2300,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2231
2300
|
_: 1
|
|
2232
2301
|
}, 8, ["show", "x", "y", "styleObject"])) : g("", !0)
|
|
2233
2302
|
], 38),
|
|
2234
|
-
["arrow", "circle", "rect", "line"].includes(
|
|
2303
|
+
["arrow", "circle", "rect", "line"].includes(
|
|
2304
|
+
s.value
|
|
2305
|
+
) ? (f(), Y("div", Wl, [
|
|
2235
2306
|
r("div", Dl, [
|
|
2236
2307
|
r("label", Fl, [
|
|
2237
2308
|
R(S(l.value.translations.thickness) + " ", 1),
|
|
@@ -2247,7 +2318,9 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2247
2318
|
])
|
|
2248
2319
|
])
|
|
2249
2320
|
])) : g("", !0),
|
|
2250
|
-
["arrow", "circle", "rect"].includes(
|
|
2321
|
+
["arrow", "circle", "rect"].includes(
|
|
2322
|
+
s.value
|
|
2323
|
+
) ? (f(), Y("div", Il, [
|
|
2251
2324
|
r("div", Pl, [
|
|
2252
2325
|
r("label", El, [
|
|
2253
2326
|
R(S(l.value.translations.dashedLines) + " ", 1),
|
|
@@ -2352,9 +2425,17 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2352
2425
|
onClick: t[54] || (t[54] = (o) => {
|
|
2353
2426
|
$.value = !1, T.value = !1, w.value = !1, B.value = !1, m.value = !1, s.value = void 0, Z.value = "start", Ue("start");
|
|
2354
2427
|
}),
|
|
2355
|
-
onMouseenter: t[55] || (t[55] = (o) => l.value.style.showTooltips && k(
|
|
2428
|
+
onMouseenter: t[55] || (t[55] = (o) => l.value.style.showTooltips && k(
|
|
2429
|
+
"setAlignStart",
|
|
2430
|
+
o,
|
|
2431
|
+
"top"
|
|
2432
|
+
)),
|
|
2356
2433
|
onMouseleave: y,
|
|
2357
|
-
onFocus: t[56] || (t[56] = (o) => l.value.style.showTooltips && k(
|
|
2434
|
+
onFocus: t[56] || (t[56] = (o) => l.value.style.showTooltips && k(
|
|
2435
|
+
"setAlignStart",
|
|
2436
|
+
o,
|
|
2437
|
+
"top"
|
|
2438
|
+
)),
|
|
2358
2439
|
onBlur: y
|
|
2359
2440
|
}, [
|
|
2360
2441
|
t[104] || (t[104] = r("svg", {
|
|
@@ -2408,9 +2489,17 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2408
2489
|
onClick: t[57] || (t[57] = (o) => {
|
|
2409
2490
|
$.value = !1, T.value = !1, w.value = !1, B.value = !1, m.value = !1, s.value = void 0, Z.value = "middle", Ue("middle");
|
|
2410
2491
|
}),
|
|
2411
|
-
onMouseenter: t[58] || (t[58] = (o) => l.value.style.showTooltips && k(
|
|
2492
|
+
onMouseenter: t[58] || (t[58] = (o) => l.value.style.showTooltips && k(
|
|
2493
|
+
"setAlignMiddle",
|
|
2494
|
+
o,
|
|
2495
|
+
"top"
|
|
2496
|
+
)),
|
|
2412
2497
|
onMouseleave: y,
|
|
2413
|
-
onFocus: t[59] || (t[59] = (o) => l.value.style.showTooltips && k(
|
|
2498
|
+
onFocus: t[59] || (t[59] = (o) => l.value.style.showTooltips && k(
|
|
2499
|
+
"setAlignMiddle",
|
|
2500
|
+
o,
|
|
2501
|
+
"top"
|
|
2502
|
+
)),
|
|
2414
2503
|
onBlur: y
|
|
2415
2504
|
}, [
|
|
2416
2505
|
t[105] || (t[105] = r("svg", {
|
|
@@ -2519,9 +2608,17 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2519
2608
|
onClick: t[63] || (t[63] = (o) => {
|
|
2520
2609
|
$.value = !1, T.value = !1, w.value = !1, B.value = !1, m.value = !1, s.value = void 0, le.value = !le.value, Z.value = "start", Ue("start"), De();
|
|
2521
2610
|
}),
|
|
2522
|
-
onMouseenter: t[64] || (t[64] = (o) => l.value.style.showTooltips && k(
|
|
2611
|
+
onMouseenter: t[64] || (t[64] = (o) => l.value.style.showTooltips && k(
|
|
2612
|
+
"setBulletMode",
|
|
2613
|
+
o,
|
|
2614
|
+
"top"
|
|
2615
|
+
)),
|
|
2523
2616
|
onMouseleave: y,
|
|
2524
|
-
onFocus: t[65] || (t[65] = (o) => l.value.style.showTooltips && k(
|
|
2617
|
+
onFocus: t[65] || (t[65] = (o) => l.value.style.showTooltips && k(
|
|
2618
|
+
"setBulletMode",
|
|
2619
|
+
o,
|
|
2620
|
+
"top"
|
|
2621
|
+
)),
|
|
2525
2622
|
onBlur: y
|
|
2526
2623
|
}, [
|
|
2527
2624
|
t[107] || (t[107] = r("svg", {
|
|
@@ -2687,9 +2784,17 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2687
2784
|
onClick: t[72] || (t[72] = (o) => {
|
|
2688
2785
|
$.value = !1, T.value = !1, w.value = !1, B.value = !1, m.value = !1, s.value = void 0, be.value = !be.value, De();
|
|
2689
2786
|
}),
|
|
2690
|
-
onMouseenter: t[73] || (t[73] = (o) => l.value.style.showTooltips && k(
|
|
2787
|
+
onMouseenter: t[73] || (t[73] = (o) => l.value.style.showTooltips && k(
|
|
2788
|
+
"setUnderline",
|
|
2789
|
+
o,
|
|
2790
|
+
"top"
|
|
2791
|
+
)),
|
|
2691
2792
|
onMouseleave: y,
|
|
2692
|
-
onFocus: t[74] || (t[74] = (o) => l.value.style.showTooltips && k(
|
|
2793
|
+
onFocus: t[74] || (t[74] = (o) => l.value.style.showTooltips && k(
|
|
2794
|
+
"setUnderline",
|
|
2795
|
+
o,
|
|
2796
|
+
"top"
|
|
2797
|
+
)),
|
|
2693
2798
|
onBlur: y
|
|
2694
2799
|
}, [
|
|
2695
2800
|
t[110] || (t[110] = r("svg", {
|
|
@@ -2804,7 +2909,11 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2804
2909
|
key: $t.value,
|
|
2805
2910
|
ref_key: "mainSvg",
|
|
2806
2911
|
ref: ye,
|
|
2807
|
-
class: D({
|
|
2912
|
+
class: D({
|
|
2913
|
+
annotator__overlay: !0,
|
|
2914
|
+
draw: !0,
|
|
2915
|
+
"draw--free": s.value === "line"
|
|
2916
|
+
}),
|
|
2808
2917
|
viewBox: `0 0 ${Re.value} ${Ce.value}`,
|
|
2809
2918
|
width: Ie.value,
|
|
2810
2919
|
height: Pe.value,
|
|
@@ -2876,7 +2985,7 @@ const al = { class: "teleport-tooltip__inner" }, il = {
|
|
|
2876
2985
|
], 8, oo)
|
|
2877
2986
|
]));
|
|
2878
2987
|
}
|
|
2879
|
-
}, wo = /* @__PURE__ */ pt(vo, [["__scopeId", "data-v-
|
|
2988
|
+
}, wo = /* @__PURE__ */ pt(vo, [["__scopeId", "data-v-4a2d539c"]]);
|
|
2880
2989
|
export {
|
|
2881
2990
|
wo as default
|
|
2882
2991
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineAsyncComponent as X, ref as h, computed as i, onMounted as Je, toRefs as Ke, watch as me, onBeforeUnmount as Qe, openBlock as o, createElementBlock as u, unref as n, normalizeStyle as Y, normalizeClass as ye, createBlock as S, withCtx as f, renderSlot as v, normalizeProps as k, guardReactiveProps as w, createCommentVNode as d, createElementVNode as C, createSlots as Ze, createVNode as et, toDisplayString as A, Fragment as J, renderList as K, Teleport as tt, nextTick as at } from "vue";
|
|
2
|
-
import { u as lt } from "./useConfig-
|
|
3
|
-
import { j as st, t as pe, x as ot, D as nt, s as rt, k as z, l as U, X as ut, o as be, q as ke, r as it } from "./lib-
|
|
2
|
+
import { u as lt } from "./useConfig-DTHxOX6V.js";
|
|
3
|
+
import { j as st, t as pe, x as ot, D as nt, s as rt, k as z, l as U, X as ut, o as be, q as ke, r as it } from "./lib-DMzrGQHK.js";
|
|
4
4
|
import { t as vt, u as ct } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as ht } from "./usePrinter-
|
|
6
|
-
import { u as dt, B as gt } from "./BaseScanner-
|
|
7
|
-
import { u as ft } from "./useSvgExport-
|
|
8
|
-
import { u as Q } from "./useNestedProp-
|
|
9
|
-
import { u as mt } from "./useThemeCheck-
|
|
10
|
-
import { u as yt } from "./useUserOptionState-
|
|
11
|
-
import { u as pt } from "./useChartAccessibility-
|
|
5
|
+
import { u as ht } from "./usePrinter-C4t8DdQ-.js";
|
|
6
|
+
import { u as dt, B as gt } from "./BaseScanner-BON3d_Sx.js";
|
|
7
|
+
import { u as ft } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
+
import { u as Q } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
+
import { u as mt } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
+
import { u as yt } from "./useUserOptionState-B7Ej974k.js";
|
|
11
|
+
import { u as pt } from "./useChartAccessibility-cp6XQtqi.js";
|
|
12
12
|
import bt from "./vue_ui_bullet-Ckqieba5.js";
|
|
13
|
-
import kt from "./Legend-
|
|
14
|
-
import wt from "./Title-
|
|
15
|
-
import Ct from "./img-
|
|
13
|
+
import kt from "./Legend-DGN5lY60.js";
|
|
14
|
+
import wt from "./Title-BbKoiBk2.js";
|
|
15
|
+
import Ct from "./img-CjTQXS0U.js";
|
|
16
16
|
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const At = ["id"], $t = {
|
|
18
18
|
key: 1,
|
|
@@ -44,7 +44,13 @@ const At = ["id"], $t = {
|
|
|
44
44
|
},
|
|
45
45
|
emits: ["copyAlt"],
|
|
46
46
|
setup(we, { expose: Ce, emit: xe }) {
|
|
47
|
-
const Ae = X(
|
|
47
|
+
const Ae = X(
|
|
48
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
49
|
+
), $e = X(
|
|
50
|
+
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
51
|
+
), Oe = X(
|
|
52
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
53
|
+
), { vue_ui_bullet: Le } = lt(), { isThemeValid: _e, warnInvalidTheme: Se } = mt(), $ = we, Pe = xe, x = h(null), Z = h(null), ee = h(0), te = h(null), ae = h(null), Be = h(0), P = h(null), T = h(null), le = h(!1), F = h(!1), H = h(!1), O = i({
|
|
48
54
|
get: () => c.value.hasOwnProperty("value"),
|
|
49
55
|
set: (t) => t
|
|
50
56
|
}), B = i(() => c.value.segments ? Array.isArray(c.value.segments) ? c.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
@@ -145,7 +151,9 @@ segments: [
|
|
|
145
151
|
defaultConfig: a
|
|
146
152
|
});
|
|
147
153
|
}
|
|
148
|
-
const e = h(N()), ne = i(
|
|
154
|
+
const e = h(N()), ne = i(
|
|
155
|
+
() => e.value.userOptions.useCursorPointer
|
|
156
|
+
), Te = i(() => pe({
|
|
149
157
|
defaultConfig: {
|
|
150
158
|
userOptions: { show: !1 },
|
|
151
159
|
style: {
|
|
@@ -196,13 +204,19 @@ segments: [
|
|
|
196
204
|
defaultConfig: e.value,
|
|
197
205
|
userConfig: Te.value
|
|
198
206
|
})
|
|
199
|
-
}), { userOptionsVisible: E, setUserOptionsVisibility: re, keepUserOptionState: ue } = yt({ config: e.value }), { svgRef: D } = pt({
|
|
207
|
+
}), { userOptionsVisible: E, setUserOptionsVisibility: re, keepUserOptionState: ue } = yt({ config: e.value }), { svgRef: D } = pt({
|
|
208
|
+
config: e.value.style.chart.title
|
|
209
|
+
}), _ = h({
|
|
200
210
|
width: e.value.style.chart.width,
|
|
201
211
|
height: e.value.style.chart.height
|
|
202
212
|
}), Fe = i(() => _.value.width), He = i(() => _.value.height);
|
|
203
|
-
me(
|
|
204
|
-
|
|
205
|
-
|
|
213
|
+
me(
|
|
214
|
+
() => $.config,
|
|
215
|
+
(t) => {
|
|
216
|
+
L.value || (e.value = N()), E.value = !e.value.userOptions.showOnChartHover, _.value.width = e.value.style.chart.width, _.value.height = e.value.style.chart.height, oe(), ee.value += 1;
|
|
217
|
+
},
|
|
218
|
+
{ deep: !0 }
|
|
219
|
+
);
|
|
206
220
|
const s = i(() => {
|
|
207
221
|
const t = He.value, l = Fe.value, a = e.value.style.chart.padding.left, r = l - e.value.style.chart.padding.right, b = e.value.style.chart.padding.top, g = t - e.value.style.chart.padding.bottom;
|
|
208
222
|
return {
|
|
@@ -219,15 +233,24 @@ segments: [
|
|
|
219
233
|
if (!B.value) return [];
|
|
220
234
|
const t = [];
|
|
221
235
|
for (let l = 0; l < c.value.segments.length; l += 1)
|
|
222
|
-
t.push(
|
|
236
|
+
t.push(
|
|
237
|
+
ot(
|
|
238
|
+
e.value.style.chart.segments.baseColor,
|
|
239
|
+
l / c.value.segments.length
|
|
240
|
+
)
|
|
241
|
+
);
|
|
223
242
|
return t;
|
|
224
243
|
}), V = i(() => B.value ? {
|
|
225
244
|
min: Math.min(...c.value.segments.map((t) => t.from)),
|
|
226
245
|
max: Math.max(...c.value.segments.map((t) => t.to))
|
|
227
246
|
} : { min: 0, max: 1 }), m = h(Re());
|
|
228
|
-
me(
|
|
229
|
-
|
|
230
|
-
|
|
247
|
+
me(
|
|
248
|
+
() => c.value,
|
|
249
|
+
(t) => {
|
|
250
|
+
t.hasOwnProperty("value") && (M.value = !1), e.value.style.chart.animation.show && !L.value ? ve(t.value || 0) : m.value = t.value || 0;
|
|
251
|
+
},
|
|
252
|
+
{ deep: !0 }
|
|
253
|
+
);
|
|
231
254
|
function Re() {
|
|
232
255
|
return e.value.style.chart.animation.show && !L.value ? V.value.min : c.value.value || 0;
|
|
233
256
|
}
|
|
@@ -235,7 +258,13 @@ segments: [
|
|
|
235
258
|
function ve(t) {
|
|
236
259
|
const l = Math.abs(t - m.value) / e.value.style.chart.animation.animationFrames;
|
|
237
260
|
function a() {
|
|
238
|
-
m.value < t ? m.value = Math.min(
|
|
261
|
+
m.value < t ? m.value = Math.min(
|
|
262
|
+
m.value + l,
|
|
263
|
+
t
|
|
264
|
+
) : m.value > t && (m.value = Math.max(
|
|
265
|
+
m.value - l,
|
|
266
|
+
t
|
|
267
|
+
)), m.value !== t && (ie.value = requestAnimationFrame(a));
|
|
239
268
|
}
|
|
240
269
|
a();
|
|
241
270
|
}
|
|
@@ -245,7 +274,11 @@ segments: [
|
|
|
245
274
|
const y = i(() => {
|
|
246
275
|
if (!B.value)
|
|
247
276
|
return [];
|
|
248
|
-
const t = nt(
|
|
277
|
+
const t = nt(
|
|
278
|
+
V.value.min,
|
|
279
|
+
V.value.max,
|
|
280
|
+
e.value.style.chart.segments.ticks.divisions
|
|
281
|
+
), l = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
249
282
|
x: s.value.left + (c.value.target + l) / (t.max + l) * s.value.chartWidth - e.value.style.chart.target.width / 2
|
|
250
283
|
}, r = {
|
|
251
284
|
width: (m.value + l) / (t.max + l) * s.value.chartWidth
|
|
@@ -318,7 +351,12 @@ segments: [
|
|
|
318
351
|
}
|
|
319
352
|
async function Ee({ scale: t = 2 } = {}) {
|
|
320
353
|
if (!x.value) return;
|
|
321
|
-
const { width: l, height: a } = x.value.getBoundingClientRect(), r = l / a, { imageUri: b, base64: g } = await Ct({
|
|
354
|
+
const { width: l, height: a } = x.value.getBoundingClientRect(), r = l / a, { imageUri: b, base64: g } = await Ct({
|
|
355
|
+
domElement: x.value,
|
|
356
|
+
base64: !0,
|
|
357
|
+
img: !0,
|
|
358
|
+
scale: t
|
|
359
|
+
});
|
|
322
360
|
return {
|
|
323
361
|
imageUri: b,
|
|
324
362
|
base64: g,
|
|
@@ -343,7 +381,14 @@ segments: [
|
|
|
343
381
|
try {
|
|
344
382
|
if (t) {
|
|
345
383
|
const { blob: l, url: a, text: r, dataUrl: b } = await qe();
|
|
346
|
-
await Promise.resolve(
|
|
384
|
+
await Promise.resolve(
|
|
385
|
+
e.value.userOptions.callbacks.svg({
|
|
386
|
+
blob: l,
|
|
387
|
+
url: a,
|
|
388
|
+
text: r,
|
|
389
|
+
dataUrl: b
|
|
390
|
+
})
|
|
391
|
+
);
|
|
347
392
|
} else
|
|
348
393
|
await Promise.resolve(je());
|
|
349
394
|
} finally {
|
|
@@ -366,13 +411,17 @@ segments: [
|
|
|
366
411
|
config: e.value,
|
|
367
412
|
dataset: c.value
|
|
368
413
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
369
|
-
console.warn(
|
|
414
|
+
console.warn(
|
|
415
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
416
|
+
);
|
|
370
417
|
return;
|
|
371
418
|
}
|
|
372
|
-
await Promise.resolve(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
419
|
+
await Promise.resolve(
|
|
420
|
+
e.value.userOptions.callbacks.altCopy({
|
|
421
|
+
config: e.value,
|
|
422
|
+
dataset: c.value
|
|
423
|
+
})
|
|
424
|
+
);
|
|
376
425
|
}
|
|
377
426
|
return Ce({
|
|
378
427
|
getData: Ne,
|
|
@@ -536,7 +585,11 @@ segments: [
|
|
|
536
585
|
ref_key: "svgRef",
|
|
537
586
|
ref: D,
|
|
538
587
|
xmlns: n(ut),
|
|
539
|
-
class: ye({
|
|
588
|
+
class: ye({
|
|
589
|
+
"vue-data-ui-fullscreen--on": I.value,
|
|
590
|
+
"vue-data-ui-fulscreen--off": !I.value,
|
|
591
|
+
"vue-ui-bullet-svg": !0
|
|
592
|
+
}),
|
|
540
593
|
viewBox: `0 0 ${s.value.width} ${s.value.height}`,
|
|
541
594
|
style: Y(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`),
|
|
542
595
|
"aria-labelledby": `bullet-svg-title-${p.value}`,
|
|
@@ -570,7 +623,9 @@ segments: [
|
|
|
570
623
|
fill: a.color,
|
|
571
624
|
"stroke-width": 1,
|
|
572
625
|
stroke: e.value.style.chart.backgroundColor,
|
|
573
|
-
style: {
|
|
626
|
+
style: {
|
|
627
|
+
transition: "x 0.3s ease-in-out, width 0.3s ease-in-out"
|
|
628
|
+
}
|
|
574
629
|
}, null, 8, It))), 256)),
|
|
575
630
|
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (o(), u("rect", {
|
|
576
631
|
key: 0,
|
|
@@ -662,7 +717,9 @@ segments: [
|
|
|
662
717
|
}, void 0, !0)
|
|
663
718
|
], 14, Lt)),
|
|
664
719
|
t.$slots.watermark ? (o(), u("div", Et, [
|
|
665
|
-
v(t.$slots, "watermark", k(w({
|
|
720
|
+
v(t.$slots, "watermark", k(w({
|
|
721
|
+
isPrinting: n(G) || n(j) || F.value || H.value
|
|
722
|
+
})), void 0, !0)
|
|
666
723
|
])) : d("", !0),
|
|
667
724
|
C("div", {
|
|
668
725
|
id: `legend-bottom-${p.value}`
|
|
@@ -705,7 +762,7 @@ segments: [
|
|
|
705
762
|
], !0)
|
|
706
763
|
], 46, At));
|
|
707
764
|
}
|
|
708
|
-
}, ua = /* @__PURE__ */ xt(Gt, [["__scopeId", "data-v-
|
|
765
|
+
}, ua = /* @__PURE__ */ xt(Gt, [["__scopeId", "data-v-0384d7e0"]]);
|
|
709
766
|
export {
|
|
710
767
|
ua as default
|
|
711
768
|
};
|