vue-data-ui 3.20.1 → 3.20.2
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/dist/A11yDataTable-BCbtxMU6.js +45 -0
- package/dist/Arrow-D6j6ocXm.js +116 -0
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
- package/dist/BaseIcon-DfLoHNUj.js +502 -0
- package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
- package/dist/BaseScanner-Dr2a1Msy.js +27 -0
- package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
- package/dist/ColorPicker-Bjwxnvfh.js +255 -0
- package/dist/DataTable-B--IN22e.js +150 -0
- package/dist/Legend-Cz2uQ5gs.js +114 -0
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
- package/dist/PackageVersion-f0MuYk3R.js +11 -0
- package/dist/PenAndPaper-DqrClVfb.js +461 -0
- package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
- package/dist/RecursiveLabels-D9rfID6q.js +56 -0
- package/dist/RecursiveLinks-BygcpDiT.js +78 -0
- package/dist/Shape-BPCJfphn.js +141 -0
- package/dist/Slicer-SHBj0VaV.js +1144 -0
- package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
- package/dist/SparkTooltip-CfE6yCad.js +93 -0
- package/dist/Title-NWp4qB4K.js +87 -0
- package/dist/Tooltip-BENq327o.js +312 -0
- package/dist/UserOptions-C1NgoGu6.js +1411 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/canvas-lib-BOP_HS11.js +79 -0
- package/dist/components/arrow.js +2 -0
- package/dist/components/vue-ui-3d-bar.js +2 -0
- package/dist/components/vue-ui-accordion.js +2 -0
- package/dist/components/vue-ui-age-pyramid.js +2 -0
- package/dist/components/vue-ui-annotator.js +2 -0
- package/dist/components/vue-ui-bullet.js +2 -0
- package/dist/components/vue-ui-bump.js +2 -0
- package/dist/components/vue-ui-candlestick.js +2 -0
- package/dist/components/vue-ui-carousel-table.js +2 -0
- package/dist/components/vue-ui-chestnut.js +2 -0
- package/dist/components/vue-ui-chord.js +2 -0
- package/dist/components/vue-ui-circle-pack.js +2 -0
- package/dist/components/vue-ui-cursor.js +2 -0
- package/dist/components/vue-ui-dag.js +2 -0
- package/dist/components/vue-ui-dashboard.js +2 -0
- package/dist/components/vue-ui-digits.js +2 -0
- package/dist/components/vue-ui-donut-evolution.js +2 -0
- package/dist/components/vue-ui-donut.js +2 -0
- package/dist/components/vue-ui-dumbbell.js +2 -0
- package/dist/components/vue-ui-flow.js +2 -0
- package/dist/components/vue-ui-funnel.js +2 -0
- package/dist/components/vue-ui-galaxy.js +2 -0
- package/dist/components/vue-ui-gauge.js +2 -0
- package/dist/components/vue-ui-geo.js +2 -0
- package/dist/components/vue-ui-gizmo.js +2 -0
- package/dist/components/vue-ui-heatmap.js +2 -0
- package/dist/components/vue-ui-history-plot.js +2 -0
- package/dist/components/vue-ui-horizontal-bar.js +2 -0
- package/dist/components/vue-ui-icon.js +2 -0
- package/dist/components/vue-ui-kpi.js +2 -0
- package/dist/components/vue-ui-mini-loader.js +2 -0
- package/dist/components/vue-ui-molecule.js +2 -0
- package/dist/components/vue-ui-mood-radar.js +2 -0
- package/dist/components/vue-ui-nested-donuts.js +2 -0
- package/dist/components/vue-ui-onion.js +2 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
- package/dist/components/vue-ui-pattern-seed.js +2 -0
- package/dist/components/vue-ui-pattern.js +2 -0
- package/dist/components/vue-ui-quadrant.js +2 -0
- package/dist/components/vue-ui-quick-chart.js +2 -0
- package/dist/components/vue-ui-radar.js +2 -0
- package/dist/components/vue-ui-rating.js +2 -0
- package/dist/components/vue-ui-relation-circle.js +2 -0
- package/dist/components/vue-ui-ridgeline.js +2 -0
- package/dist/components/vue-ui-rings.js +2 -0
- package/dist/components/vue-ui-scatter.js +2 -0
- package/dist/components/vue-ui-skeleton.js +2 -0
- package/dist/components/vue-ui-smiley.js +2 -0
- package/dist/components/vue-ui-spark-trend.js +2 -0
- package/dist/components/vue-ui-sparkbar.js +2 -0
- package/dist/components/vue-ui-sparkgauge.js +2 -0
- package/dist/components/vue-ui-sparkhistogram.js +2 -0
- package/dist/components/vue-ui-sparkline.js +2 -0
- package/dist/components/vue-ui-sparkstackbar.js +2 -0
- package/dist/components/vue-ui-stackbar.js +2 -0
- package/dist/components/vue-ui-stackline.js +2 -0
- package/dist/components/vue-ui-strip-plot.js +2 -0
- package/dist/components/vue-ui-table-heatmap.js +2 -0
- package/dist/components/vue-ui-table-sparkline.js +2 -0
- package/dist/components/vue-ui-table.js +2 -0
- package/dist/components/vue-ui-thermometer.js +2 -0
- package/dist/components/vue-ui-timer.js +2 -0
- package/dist/components/vue-ui-tiremarks.js +2 -0
- package/dist/components/vue-ui-treemap.js +2 -0
- package/dist/components/vue-ui-vertical-bar.js +2 -0
- package/dist/components/vue-ui-waffle.js +2 -0
- package/dist/components/vue-ui-wheel.js +2 -0
- package/dist/components/vue-ui-word-cloud.js +2 -0
- package/dist/components/vue-ui-world.js +2 -0
- package/dist/components/vue-ui-xy-canvas.js +2 -0
- package/dist/components/vue-ui-xy.js +2 -0
- package/dist/dom-to-png-BYtB4BF3.js +237 -0
- package/dist/exposedLib-CI8ji8G-.js +19 -0
- package/dist/geoProjections-Czak6Jn1.js +145 -0
- package/dist/img-1cKsci8e.js +74 -0
- package/dist/labelUtils-CUctkYoA.js +19 -0
- package/dist/lib-DUeYQsS0.js +1882 -0
- package/dist/llms.txt +232 -0
- package/dist/patternUtils-CS7hn6at.js +258 -0
- package/dist/pdf-D0eZ99cP.js +90 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/style.css +2 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/utils.d.ts +551 -0
- package/dist/types/vue-data-ui.d.ts +17190 -0
- package/dist/types/vue-ui-3d-bar.d.ts +93 -0
- package/dist/types/vue-ui-accordion.d.ts +11 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
- package/dist/types/vue-ui-annotator.d.ts +34 -0
- package/dist/types/vue-ui-bullet.d.ts +85 -0
- package/dist/types/vue-ui-bump.d.ts +92 -0
- package/dist/types/vue-ui-candlestick.d.ts +106 -0
- package/dist/types/vue-ui-carousel-table.d.ts +59 -0
- package/dist/types/vue-ui-chestnut.d.ts +98 -0
- package/dist/types/vue-ui-chord.d.ts +110 -0
- package/dist/types/vue-ui-circle-pack.d.ts +126 -0
- package/dist/types/vue-ui-cursor.d.ts +9 -0
- package/dist/types/vue-ui-dag.d.ts +125 -0
- package/dist/types/vue-ui-dashboard.d.ts +68 -0
- package/dist/types/vue-ui-digits.d.ts +12 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +96 -0
- package/dist/types/vue-ui-donut.d.ts +123 -0
- package/dist/types/vue-ui-dumbbell.d.ts +94 -0
- package/dist/types/vue-ui-flow.d.ts +106 -0
- package/dist/types/vue-ui-funnel.d.ts +79 -0
- package/dist/types/vue-ui-galaxy.d.ts +114 -0
- package/dist/types/vue-ui-gauge.d.ts +89 -0
- package/dist/types/vue-ui-geo.d.ts +94 -0
- package/dist/types/vue-ui-gizmo.d.ts +22 -0
- package/dist/types/vue-ui-heatmap.d.ts +101 -0
- package/dist/types/vue-ui-history-plot.d.ts +114 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
- package/dist/types/vue-ui-icon.d.ts +15 -0
- package/dist/types/vue-ui-kpi.d.ts +25 -0
- package/dist/types/vue-ui-mini-loader.d.ts +15 -0
- package/dist/types/vue-ui-molecule.d.ts +112 -0
- package/dist/types/vue-ui-mood-radar.d.ts +92 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
- package/dist/types/vue-ui-onion.d.ts +106 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +15 -0
- package/dist/types/vue-ui-quadrant.d.ts +125 -0
- package/dist/types/vue-ui-quick-chart.d.ts +108 -0
- package/dist/types/vue-ui-radar.d.ts +116 -0
- package/dist/types/vue-ui-rating.d.ts +42 -0
- package/dist/types/vue-ui-relation-circle.d.ts +92 -0
- package/dist/types/vue-ui-ridgeline.d.ts +106 -0
- package/dist/types/vue-ui-rings.d.ts +98 -0
- package/dist/types/vue-ui-scatter.d.ts +97 -0
- package/dist/types/vue-ui-skeleton.d.ts +11 -0
- package/dist/types/vue-ui-smiley.d.ts +28 -0
- package/dist/types/vue-ui-spark-trend.d.ts +19 -0
- package/dist/types/vue-ui-sparkbar.d.ts +49 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
- package/dist/types/vue-ui-sparkline.d.ts +59 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
- package/dist/types/vue-ui-stackbar.d.ts +118 -0
- package/dist/types/vue-ui-stackline.d.ts +114 -0
- package/dist/types/vue-ui-strip-plot.d.ts +96 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
- package/dist/types/vue-ui-table.d.ts +38 -0
- package/dist/types/vue-ui-thermometer.d.ts +70 -0
- package/dist/types/vue-ui-timer.d.ts +49 -0
- package/dist/types/vue-ui-tiremarks.d.ts +70 -0
- package/dist/types/vue-ui-treemap.d.ts +104 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
- package/dist/types/vue-ui-waffle.d.ts +101 -0
- package/dist/types/vue-ui-wheel.d.ts +70 -0
- package/dist/types/vue-ui-word-cloud.d.ts +97 -0
- package/dist/types/vue-ui-world.d.ts +98 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
- package/dist/types/vue-ui-xy.d.ts +146 -0
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
- package/dist/useChartAccessibility-DYqac8yF.js +12 -0
- package/dist/useConfig-DAyQk86L.js +7479 -0
- package/dist/useFitSvgText-CT3nmlaS.js +63 -0
- package/dist/useNestedProp-CNcoy38D.js +10 -0
- package/dist/useObjectBindings-BI7hP-BC.js +189 -0
- package/dist/usePanZoom-CYU3B4T3.js +157 -0
- package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
- package/dist/usePrinter-C1Gqt_Sp.js +49 -0
- package/dist/useResponsive-BfnK0KxU.js +19 -0
- package/dist/useStableElementSize-C7KADDKj.js +77 -0
- package/dist/useSvgExport-SVIsDot8.js +755 -0
- package/dist/useTableResponsive-B24Uwt2E.js +24 -0
- package/dist/useThemeCheck-C43Tcqmk.js +24 -0
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
- package/dist/useTimeLabels-BmBRv27Y.js +272 -0
- package/dist/useUserOptionState-DK-_1ddE.js +15 -0
- package/dist/utils.js +28 -0
- package/dist/vClickOutside-DUrZWttG.js +13 -0
- package/dist/vue-data-ui-C3m9eNp0.js +274 -0
- package/dist/vue-data-ui.js +76 -0
- package/dist/vue-ui-3d-bar-Bfcitq55.js +1757 -0
- package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
- package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +1238 -0
- package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
- package/dist/vue-ui-bullet-DAeyHSHC.js +710 -0
- package/dist/vue-ui-bump-DsiXfIFL.js +1249 -0
- package/dist/vue-ui-candlestick-BadEBUcF.js +1826 -0
- package/dist/vue-ui-carousel-table-_LCF7RFm.js +455 -0
- package/dist/vue-ui-chestnut-BTuAvc7L.js +2010 -0
- package/dist/vue-ui-chord-CAyRIJlh.js +1391 -0
- package/dist/vue-ui-circle-pack-BWzwg8Qb.js +1608 -0
- package/dist/vue-ui-cursor-C6t7nAT4.js +283 -0
- package/dist/vue-ui-dag-8Puv77-a.js +2909 -0
- package/dist/vue-ui-dashboard-CXDvRu27.js +513 -0
- package/dist/vue-ui-digits-BlHqILF0.js +209 -0
- package/dist/vue-ui-donut-CclzduCs.js +2410 -0
- package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +1510 -0
- package/dist/vue-ui-dumbbell-BG5C4Hdg.js +1530 -0
- package/dist/vue-ui-flow-B73dHBrL.js +1235 -0
- package/dist/vue-ui-funnel-Bn3c5lWX.js +777 -0
- package/dist/vue-ui-galaxy-eBY55Fue.js +1077 -0
- package/dist/vue-ui-gauge-s8pl305B.js +920 -0
- package/dist/vue-ui-geo-Ca2ZPVhH.js +1516 -0
- package/dist/vue-ui-gizmo-CBNDeAzT.js +225 -0
- package/dist/vue-ui-heatmap-V79kNqUi.js +1568 -0
- package/dist/vue-ui-history-plot-jiJh8oaM.js +1554 -0
- package/dist/vue-ui-horizontal-bar-60b88qqU.js +1681 -0
- package/dist/vue-ui-kpi-DnfazUeY.js +96 -0
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
- package/dist/vue-ui-molecule-BeIVS2yp.js +925 -0
- package/dist/vue-ui-mood-radar-DHY1ry9I.js +1148 -0
- package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +1487 -0
- package/dist/vue-ui-onion-DghkeKRu.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.js +1416 -0
- package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
- package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
- package/dist/vue-ui-quadrant-BBucQ_8r.js +1978 -0
- package/dist/vue-ui-quick-chart-DxxGq-5d.js +2469 -0
- package/dist/vue-ui-radar-B0gW_Iur.js +1229 -0
- package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
- package/dist/vue-ui-relation-circle-C-fNOxJM.js +924 -0
- package/dist/vue-ui-ridgeline-CzDR20s3.js +1622 -0
- package/dist/vue-ui-rings-DNRdTVqV.js +1246 -0
- package/dist/vue-ui-scatter-CRgFebuE.js +2413 -0
- package/dist/vue-ui-skeleton-iNzRGgRn.js +2556 -0
- package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
- package/dist/vue-ui-spark-trend-CPgTOFNY.js +438 -0
- package/dist/vue-ui-sparkbar-B4C_YxU-.js +393 -0
- package/dist/vue-ui-sparkgauge-DDkSKiba.js +255 -0
- package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +560 -0
- package/dist/vue-ui-sparkline-TTSEEs7R.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +662 -0
- package/dist/vue-ui-stackbar-CwFVpEgH.js +2270 -0
- package/dist/vue-ui-stackline-Bph0kD43.js +2398 -0
- package/dist/vue-ui-strip-plot-D2_WSwTF.js +1340 -0
- package/dist/vue-ui-table-BzmQMHxi.js +1338 -0
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
- package/dist/vue-ui-table-sparkline-CXNxbqIw.js +707 -0
- package/dist/vue-ui-thermometer-Cqw2_Jpi.js +763 -0
- package/dist/vue-ui-timer-BHP_5wgz.js +439 -0
- package/dist/vue-ui-tiremarks-D8wFTxXl.js +552 -0
- package/dist/vue-ui-treemap-DbSebes7.js +1587 -0
- package/dist/vue-ui-waffle-CAIBpbY0.js +1362 -0
- package/dist/vue-ui-wheel-B5Cyopnp.js +885 -0
- package/dist/vue-ui-word-cloud-BaGDKrKL.js +1656 -0
- package/dist/vue-ui-world-DLcVBwLg.js +14264 -0
- package/dist/vue-ui-xy-CyP5FAo8.js +4578 -0
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
- package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
- package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
- package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
- package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
- package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
- package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
- package/dist/vue_ui_donut-BDGqG07h.js +358 -0
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
- package/dist/vue_ui_flow-BewZjjKG.js +238 -0
- package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
- package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
- package/dist/vue_ui_geo-B8TODs-G.js +248 -0
- package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
- package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
- package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
- package/dist/vue_ui_onion-1FTFFS46.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
- package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
- package/dist/vue_ui_radar-jafTED5j.js +306 -0
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
- package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
- package/dist/vue_ui_scatter-I0POnicu.js +479 -0
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
- package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
- package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
- package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
- package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
- package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
- package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
- package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
- package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
- package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
- package/package.json +120 -120
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Mt as e, Ot as t } from "./lib-DUeYQsS0.js";
|
|
2
|
+
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { computed as r, createElementBlock as i, nextTick as a, normalizeStyle as o, onMounted as s, openBlock as c, ref as l, renderSlot as u, toRef as d, watch as f } from "vue";
|
|
4
|
+
var p = /* @__PURE__ */ n({
|
|
5
|
+
__name: "SparkTooltip",
|
|
6
|
+
props: {
|
|
7
|
+
svgRef: { type: Object },
|
|
8
|
+
x: {
|
|
9
|
+
type: Number,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
y: {
|
|
13
|
+
type: Number,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
prevX: {
|
|
17
|
+
type: Number,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
prevY: {
|
|
21
|
+
type: Number,
|
|
22
|
+
required: !0
|
|
23
|
+
},
|
|
24
|
+
offsetY: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 0
|
|
27
|
+
},
|
|
28
|
+
background: { type: String },
|
|
29
|
+
backgroundOpacity: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 100
|
|
32
|
+
},
|
|
33
|
+
borderRadius: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: 2
|
|
36
|
+
},
|
|
37
|
+
borderWidth: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 0
|
|
40
|
+
},
|
|
41
|
+
borderColor: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "#FFFFFF"
|
|
44
|
+
},
|
|
45
|
+
color: { type: String },
|
|
46
|
+
fontSize: { type: Number }
|
|
47
|
+
},
|
|
48
|
+
setup(n) {
|
|
49
|
+
let p = n, m = d(p.svgRef), h = l(null), g = l(0), _ = l(0), v = l(!1), y = r(() => e(p.background, p.backgroundOpacity)), b = async () => {
|
|
50
|
+
if (!m.value || !h.value) return;
|
|
51
|
+
let e = t({
|
|
52
|
+
svgElement: m.value,
|
|
53
|
+
element: h.value,
|
|
54
|
+
x: p.x,
|
|
55
|
+
y: p.y,
|
|
56
|
+
offsetY: p.offsetY
|
|
57
|
+
}), n = t({
|
|
58
|
+
svgElement: m.value,
|
|
59
|
+
element: h.value,
|
|
60
|
+
x: p.prevX,
|
|
61
|
+
y: p.prevY,
|
|
62
|
+
offsetY: p.offsetY
|
|
63
|
+
});
|
|
64
|
+
!e || !n || (v.value = !1, g.value = n.top, _.value = n.left, await a(), setTimeout(() => {
|
|
65
|
+
v.value = !0, g.value = e.top, _.value = e.left;
|
|
66
|
+
}, 50));
|
|
67
|
+
};
|
|
68
|
+
return s(b), f(() => [
|
|
69
|
+
p.x,
|
|
70
|
+
p.y,
|
|
71
|
+
p.prevX,
|
|
72
|
+
p.prevY
|
|
73
|
+
], () => b(), { immediate: !0 }), (e, t) => (c(), i("div", {
|
|
74
|
+
ref_key: "tooltipRef",
|
|
75
|
+
ref: h,
|
|
76
|
+
class: "vue-data-ui-spark-tooltip",
|
|
77
|
+
style: o({
|
|
78
|
+
position: "fixed",
|
|
79
|
+
top: `${g.value}px`,
|
|
80
|
+
left: `${_.value}px`,
|
|
81
|
+
pointerEvents: "none",
|
|
82
|
+
background: y.value,
|
|
83
|
+
color: p.color,
|
|
84
|
+
fontSize: `${p.fontSize}px`,
|
|
85
|
+
borderRadius: `${p.borderRadius}px`,
|
|
86
|
+
border: `${p.borderWidth}px solid ${p.borderColor}`,
|
|
87
|
+
transition: v.value ? "top 0.3s ease-out, left 0.3s ease-out" : "none"
|
|
88
|
+
})
|
|
89
|
+
}, [u(e.$slots, "default", {}, void 0, !0)], 4));
|
|
90
|
+
}
|
|
91
|
+
}, [["__scopeId", "data-v-57d870b0"]]);
|
|
92
|
+
//#endregion
|
|
93
|
+
export { p as default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./useNestedProp-CNcoy38D.js";
|
|
3
|
+
import { Fragment as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, normalizeStyle as o, openBlock as s, renderSlot as c, toDisplayString as l, unref as u } from "vue";
|
|
4
|
+
//#region src/atoms/Title.vue
|
|
5
|
+
var d = /* @__PURE__ */ e({ default: () => f }), f = {
|
|
6
|
+
__name: "Title",
|
|
7
|
+
props: {
|
|
8
|
+
config: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
lineHeight: {
|
|
15
|
+
type: [String, Boolean],
|
|
16
|
+
default: !1
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(e) {
|
|
20
|
+
let d = t({
|
|
21
|
+
userConfig: e.config,
|
|
22
|
+
defaultConfig: {
|
|
23
|
+
title: {
|
|
24
|
+
cy: "",
|
|
25
|
+
text: "",
|
|
26
|
+
color: "",
|
|
27
|
+
fontSize: 20,
|
|
28
|
+
bold: !0,
|
|
29
|
+
textAlign: "center",
|
|
30
|
+
paddingLeft: 0,
|
|
31
|
+
paddingRight: 0
|
|
32
|
+
},
|
|
33
|
+
subtitle: {
|
|
34
|
+
cy: "",
|
|
35
|
+
text: "",
|
|
36
|
+
color: "",
|
|
37
|
+
fontSize: 14,
|
|
38
|
+
bold: !1
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return (t, f) => (s(), i(n, null, [
|
|
43
|
+
a("div", {
|
|
44
|
+
class: "atom-title",
|
|
45
|
+
style: o({
|
|
46
|
+
width: `calc(100% - ${u(d).title.paddingLeft + u(d).title.paddingRight}px)`,
|
|
47
|
+
textAlign: u(d).title.textAlign,
|
|
48
|
+
color: u(d).title.color,
|
|
49
|
+
fontSize: `var(--title-font-size, ${u(d).title.fontSize}px)`,
|
|
50
|
+
fontWeight: u(d).title.bold ? "bold" : "",
|
|
51
|
+
paddingLeft: u(d).title.paddingLeft + "px",
|
|
52
|
+
paddingRight: u(d).title.paddingRight + "px",
|
|
53
|
+
lineHeight: e.lineHeight ? e.lineHeight : void 0
|
|
54
|
+
})
|
|
55
|
+
}, l(u(d).title.text), 5),
|
|
56
|
+
u(d).subtitle.text ? (s(), i("div", {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "atom-subtitle",
|
|
59
|
+
style: o({
|
|
60
|
+
width: `calc(100% - ${u(d).title.paddingLeft + u(d).title.paddingRight}px)`,
|
|
61
|
+
textAlign: u(d).title.textAlign,
|
|
62
|
+
color: u(d).subtitle.color,
|
|
63
|
+
fontSize: `var(--subtitle-font-size, ${u(d).subtitle.fontSize}px)`,
|
|
64
|
+
fontWeight: u(d).subtitle.bold ? "bold" : "",
|
|
65
|
+
paddingLeft: u(d).title.paddingLeft + "px",
|
|
66
|
+
paddingRight: u(d).title.paddingRight + "px",
|
|
67
|
+
lineHeight: e.lineHeight ? e.lineHeight : void 0
|
|
68
|
+
})
|
|
69
|
+
}, l(u(d).subtitle.text), 5)) : r("", !0),
|
|
70
|
+
u(d).subtitle.text ? (s(), i("div", {
|
|
71
|
+
key: 1,
|
|
72
|
+
style: o({
|
|
73
|
+
width: `calc(100% - ${u(d).title.paddingLeft + u(d).title.paddingRight}px)`,
|
|
74
|
+
textAlign: u(d).title.textAlign,
|
|
75
|
+
color: u(d).subtitle.color,
|
|
76
|
+
fontSize: `var(--subtitle-font-size, ${u(d).subtitle.fontSize}px)`,
|
|
77
|
+
fontWeight: u(d).subtitle.bold ? "bold" : "",
|
|
78
|
+
paddingLeft: u(d).title.paddingLeft + "px",
|
|
79
|
+
paddingRight: u(d).title.paddingRight + "px",
|
|
80
|
+
lineHeight: e.lineHeight ? e.lineHeight : void 0
|
|
81
|
+
})
|
|
82
|
+
}, [c(t.$slots, "default")], 4)) : r("", !0)
|
|
83
|
+
], 64));
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { f as n, d as t };
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { Mt as e } from "./lib-DUeYQsS0.js";
|
|
2
|
+
import { Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, nextTick as s, normalizeClass as c, normalizeStyle as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, renderSlot as m, watch as h } from "vue";
|
|
3
|
+
//#region src/calcTooltipPosition.js
|
|
4
|
+
function g({ tooltip: e, chart: t, clientPosition: n, positionPreference: r = "center", defaultOffsetY: i = 24, defaultOffsetX: a = 0, blockShiftY: o = !1 }) {
|
|
5
|
+
let s = p(a), c = p(i);
|
|
6
|
+
if (e && t) {
|
|
7
|
+
let { width: l, height: u } = e.getBoundingClientRect(), { right: d, left: f, bottom: p } = t.getBoundingClientRect();
|
|
8
|
+
r === "center" && (n.x + l / 2 > d ? s.value = -l + (d - n.x) : n.x - l / 2 < f ? s.value = -l + (l - (n.x - f)) : s.value = -l / 2), r === "right" && (n.x + l + a > d ? s.value = -l + (d - n.x) : s.value = a), r === "left" && (n.x - l - a < f ? s.value = f - n.x : s.value = -l - a), n.y + u > p && !o && (c.value = -u - i);
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
top: n.y + c.value,
|
|
12
|
+
left: n.x + s.value
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/event.js
|
|
17
|
+
function _(e, t, n) {
|
|
18
|
+
u(() => e.addEventListener(t, n)), d(() => e.removeEventListener(t, n));
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/useMouse.js
|
|
22
|
+
function v() {
|
|
23
|
+
let e = p(0), t = p(0);
|
|
24
|
+
return _(window, "mousemove", (n) => {
|
|
25
|
+
e.value = n.clientX, t.value = n.clientY;
|
|
26
|
+
}), {
|
|
27
|
+
x: e,
|
|
28
|
+
y: t
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/atoms/Tooltip.vue
|
|
33
|
+
var y = ["aria-hidden"], b = ["innerHTML"], x = {
|
|
34
|
+
__name: "Tooltip",
|
|
35
|
+
props: {
|
|
36
|
+
teleportTo: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "body"
|
|
39
|
+
},
|
|
40
|
+
backgroundColor: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "#FFFFFF"
|
|
43
|
+
},
|
|
44
|
+
color: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "#000000"
|
|
47
|
+
},
|
|
48
|
+
content: String,
|
|
49
|
+
maxWidth: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: "300px"
|
|
52
|
+
},
|
|
53
|
+
parent: { type: Object },
|
|
54
|
+
show: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
57
|
+
},
|
|
58
|
+
isCustom: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
fontSize: {
|
|
63
|
+
type: [Number, String],
|
|
64
|
+
default: 14
|
|
65
|
+
},
|
|
66
|
+
borderRadius: {
|
|
67
|
+
type: Number,
|
|
68
|
+
default: 4
|
|
69
|
+
},
|
|
70
|
+
borderColor: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: "#e1e5e8"
|
|
73
|
+
},
|
|
74
|
+
borderWidth: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 1
|
|
77
|
+
},
|
|
78
|
+
backgroundOpacity: {
|
|
79
|
+
type: Number,
|
|
80
|
+
default: 100
|
|
81
|
+
},
|
|
82
|
+
position: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: "center"
|
|
85
|
+
},
|
|
86
|
+
offsetY: {
|
|
87
|
+
type: Number,
|
|
88
|
+
default: 24
|
|
89
|
+
},
|
|
90
|
+
offsetX: {
|
|
91
|
+
type: Number,
|
|
92
|
+
default: 0
|
|
93
|
+
},
|
|
94
|
+
blockShiftY: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: !1
|
|
97
|
+
},
|
|
98
|
+
isFullscreen: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: !1
|
|
101
|
+
},
|
|
102
|
+
smooth: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: !0
|
|
105
|
+
},
|
|
106
|
+
backdropFilter: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !0
|
|
109
|
+
},
|
|
110
|
+
smoothForce: {
|
|
111
|
+
type: Number,
|
|
112
|
+
default: .18
|
|
113
|
+
},
|
|
114
|
+
smoothSnapThreshold: {
|
|
115
|
+
type: Number,
|
|
116
|
+
default: .25
|
|
117
|
+
},
|
|
118
|
+
isA11yMode: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: !1
|
|
121
|
+
},
|
|
122
|
+
a11yPosition: {
|
|
123
|
+
type: Object,
|
|
124
|
+
default: null
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
setup(u, { expose: _ }) {
|
|
128
|
+
let x = u, S = p(null), { x: C, y: w } = v(x.parent), T = p({
|
|
129
|
+
x: 0,
|
|
130
|
+
y: 0
|
|
131
|
+
}), E = p({
|
|
132
|
+
x: 0,
|
|
133
|
+
y: 0
|
|
134
|
+
}), D = p(null), O = p(null), k = p({
|
|
135
|
+
scaleX: 1,
|
|
136
|
+
scaleY: 1
|
|
137
|
+
}), A = p(null);
|
|
138
|
+
function j() {
|
|
139
|
+
let e = N(S.value);
|
|
140
|
+
if (D.value = e, !e) {
|
|
141
|
+
O.value = null, k.value = {
|
|
142
|
+
scaleX: 1,
|
|
143
|
+
scaleY: 1
|
|
144
|
+
}, A.value = null;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
O.value = e.getBoundingClientRect(), k.value = P(e), A.value = x.parent?.getBoundingClientRect?.() || null;
|
|
148
|
+
}
|
|
149
|
+
function M(e) {
|
|
150
|
+
return e ? !!(e.transform && e.transform !== "none" || e.perspective && e.perspective !== "none" || e.filter && e.filter !== "none" || e.backdropFilter && e.backdropFilter !== "none" || e.contain && e.contain.includes("paint") || e.willChange && (e.willChange.includes("transform") || e.willChange.includes("filter"))) : !1;
|
|
151
|
+
}
|
|
152
|
+
function N(e) {
|
|
153
|
+
let t = e?.parentElement || null;
|
|
154
|
+
for (; t && t !== document.documentElement;) {
|
|
155
|
+
if (M(getComputedStyle(t))) return t;
|
|
156
|
+
t = t.parentElement;
|
|
157
|
+
}
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
function P(e) {
|
|
161
|
+
if (!e) return {
|
|
162
|
+
scaleX: 1,
|
|
163
|
+
scaleY: 1
|
|
164
|
+
};
|
|
165
|
+
let t = getComputedStyle(e).transform;
|
|
166
|
+
if (!t || t === "none") return {
|
|
167
|
+
scaleX: 1,
|
|
168
|
+
scaleY: 1
|
|
169
|
+
};
|
|
170
|
+
try {
|
|
171
|
+
let e = new DOMMatrixReadOnly(t), n = Math.hypot(e.a, e.b), r = Math.hypot(e.c, e.d);
|
|
172
|
+
return {
|
|
173
|
+
scaleX: n || 1,
|
|
174
|
+
scaleY: r || 1
|
|
175
|
+
};
|
|
176
|
+
} catch {
|
|
177
|
+
return {
|
|
178
|
+
scaleX: 1,
|
|
179
|
+
scaleY: 1
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
function F({ x: e, y: t }) {
|
|
184
|
+
x.isA11yMode || (C.value = e, w.value = t);
|
|
185
|
+
}
|
|
186
|
+
let I = null;
|
|
187
|
+
function L() {
|
|
188
|
+
if (!x.show) {
|
|
189
|
+
z();
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
if (!x.smooth) {
|
|
193
|
+
E.value.x = T.value.x, E.value.y = T.value.y, z();
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
let e = T.value.x - E.value.x, t = T.value.y - E.value.y;
|
|
197
|
+
if (Math.abs(e) <= x.smoothSnapThreshold && Math.abs(t) <= x.smoothSnapThreshold) {
|
|
198
|
+
E.value.x = T.value.x, E.value.y = T.value.y, z();
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
E.value.x += e * x.smoothForce, E.value.y += t * x.smoothForce, I = requestAnimationFrame(L);
|
|
202
|
+
}
|
|
203
|
+
function R() {
|
|
204
|
+
I == null && x.show && x.smooth && (I = requestAnimationFrame(L));
|
|
205
|
+
}
|
|
206
|
+
function z() {
|
|
207
|
+
I != null && (cancelAnimationFrame(I), I = null);
|
|
208
|
+
}
|
|
209
|
+
h([C, w], ([e, t]) => {
|
|
210
|
+
T.value.x = e, T.value.y = t, x.smooth ? R() : (E.value.x = e, E.value.y = t);
|
|
211
|
+
}), h(() => x.show, async (e) => {
|
|
212
|
+
if (!e) {
|
|
213
|
+
z();
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
let t = C.value, n = w.value;
|
|
217
|
+
T.value.x = t, T.value.y = n, E.value.x = t, E.value.y = n, await s(), j(), R();
|
|
218
|
+
}), d(() => {
|
|
219
|
+
z();
|
|
220
|
+
});
|
|
221
|
+
let B = n(() => x.isA11yMode && x.a11yPosition && typeof x.a11yPosition.x == "number" && typeof x.a11yPosition.y == "number" ? {
|
|
222
|
+
x: x.a11yPosition.x,
|
|
223
|
+
y: x.a11yPosition.y
|
|
224
|
+
} : {
|
|
225
|
+
x: E.value.x,
|
|
226
|
+
y: E.value.y
|
|
227
|
+
}), V = n(() => {
|
|
228
|
+
let e = O.value;
|
|
229
|
+
if (!e) return {
|
|
230
|
+
x: B.value.x,
|
|
231
|
+
y: B.value.y
|
|
232
|
+
};
|
|
233
|
+
let { scaleX: t, scaleY: n } = k.value;
|
|
234
|
+
return {
|
|
235
|
+
x: (B.value.x - e.left) / t,
|
|
236
|
+
y: (B.value.y - e.top) / n
|
|
237
|
+
};
|
|
238
|
+
}), H = n(() => {
|
|
239
|
+
let e = O.value, t = A.value;
|
|
240
|
+
if (!e || !t) return x.parent;
|
|
241
|
+
let { scaleX: n, scaleY: r } = k.value;
|
|
242
|
+
return {
|
|
243
|
+
...x.parent,
|
|
244
|
+
getBoundingClientRect() {
|
|
245
|
+
let i = t;
|
|
246
|
+
return {
|
|
247
|
+
left: (i.left - e.left) / n,
|
|
248
|
+
top: (i.top - e.top) / r,
|
|
249
|
+
right: (i.right - e.left) / n,
|
|
250
|
+
bottom: (i.bottom - e.top) / r,
|
|
251
|
+
width: i.width / n,
|
|
252
|
+
height: i.height / r,
|
|
253
|
+
x: (i.left - e.left) / n,
|
|
254
|
+
y: (i.top - e.top) / r
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}), U = n(() => {
|
|
259
|
+
let e = g({
|
|
260
|
+
tooltip: S.value,
|
|
261
|
+
chart: H.value,
|
|
262
|
+
clientPosition: V.value,
|
|
263
|
+
positionPreference: x.position,
|
|
264
|
+
defaultOffsetX: x.offsetX,
|
|
265
|
+
defaultOffsetY: x.offsetY,
|
|
266
|
+
blockShiftY: x.blockShiftY
|
|
267
|
+
});
|
|
268
|
+
return {
|
|
269
|
+
top: Math.round(e.top),
|
|
270
|
+
left: Math.round(e.left)
|
|
271
|
+
};
|
|
272
|
+
}), W = n(() => e(x.backgroundColor, x.backgroundOpacity)), G = n(() => {
|
|
273
|
+
let e = {
|
|
274
|
+
pointerEvents: "none",
|
|
275
|
+
position: "fixed",
|
|
276
|
+
top: "0px",
|
|
277
|
+
left: "0px",
|
|
278
|
+
transform: `translate3d(${U.value.left}px, ${U.value.top}px, 0)`,
|
|
279
|
+
borderRadius: `${x.borderRadius}px`,
|
|
280
|
+
border: `${x.borderWidth}px solid ${x.borderColor}`,
|
|
281
|
+
zIndex: 2147483647
|
|
282
|
+
};
|
|
283
|
+
return x.isCustom || Object.assign(e, {
|
|
284
|
+
background: W.value,
|
|
285
|
+
color: x.color,
|
|
286
|
+
maxWidth: x.maxWidth,
|
|
287
|
+
fontSize: `${x.fontSize}px`
|
|
288
|
+
}), e;
|
|
289
|
+
});
|
|
290
|
+
return _({ placeTooltip: F }), (e, n) => (f(), r(t, { to: u.isFullscreen ? u.parent : u.teleportTo }, [u.show ? (f(), a("div", {
|
|
291
|
+
key: 0,
|
|
292
|
+
ref_key: "tooltip",
|
|
293
|
+
ref: S,
|
|
294
|
+
role: "tooltip",
|
|
295
|
+
"aria-hidden": !u.show,
|
|
296
|
+
"aria-live": "polite",
|
|
297
|
+
class: c({
|
|
298
|
+
"vue-data-ui-custom-tooltip": u.isCustom,
|
|
299
|
+
"vue-data-ui-tooltip": !u.isCustom,
|
|
300
|
+
"vue-data-ui-tooltip-backdrop": u.backdropFilter
|
|
301
|
+
}),
|
|
302
|
+
style: l(G.value)
|
|
303
|
+
}, [
|
|
304
|
+
m(e.$slots, "tooltip-before"),
|
|
305
|
+
m(e.$slots, "default"),
|
|
306
|
+
m(e.$slots, "tooltip", {}, () => [o("div", { innerHTML: u.content }, null, 8, b)]),
|
|
307
|
+
m(e.$slots, "tooltip-after")
|
|
308
|
+
], 14, y)) : i("", !0)], 8, ["to"]));
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
//#endregion
|
|
312
|
+
export { x as default };
|