vue-data-ui 3.20.3 → 3.20.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/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-BYcZLGDG.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 +98 -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-DuLO91Bk.js +274 -0
- package/dist/vue-data-ui.js +76 -0
- package/dist/vue-ui-3d-bar-DMDfraIo.js +1757 -0
- package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
- package/dist/vue-ui-age-pyramid-CN68d9su.js +1238 -0
- package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
- package/dist/vue-ui-bullet-V21vyb4T.js +710 -0
- package/dist/vue-ui-bump-BvnBJcx0.js +1249 -0
- package/dist/vue-ui-candlestick-DaIeT5kU.js +1826 -0
- package/dist/vue-ui-carousel-table-BBTm1Etq.js +455 -0
- package/dist/vue-ui-chestnut-BLtE39N7.js +2010 -0
- package/dist/vue-ui-chord-D1UVle9f.js +1391 -0
- package/dist/vue-ui-circle-pack-BDDVjuT1.js +1608 -0
- package/dist/vue-ui-cursor-CiU4ttGN.js +283 -0
- package/dist/vue-ui-dag-D2U673ns.js +2909 -0
- package/dist/vue-ui-dashboard-JK7v_bwo.js +513 -0
- package/dist/vue-ui-digits-D5b3eJ5q.js +209 -0
- package/dist/vue-ui-donut-BYf4FbjI.js +2410 -0
- package/dist/vue-ui-donut-evolution-Id7YwbiG.js +1510 -0
- package/dist/vue-ui-dumbbell-CToh2l5g.js +1530 -0
- package/dist/vue-ui-flow-CmBI0IKa.js +1235 -0
- package/dist/vue-ui-funnel-B67L6mTB.js +777 -0
- package/dist/vue-ui-galaxy-CFZP36s4.js +1077 -0
- package/dist/vue-ui-gauge-sZxKMn7t.js +920 -0
- package/dist/vue-ui-geo-DK8fAoZd.js +1516 -0
- package/dist/vue-ui-gizmo-DsJtcBEf.js +225 -0
- package/dist/vue-ui-heatmap-B87-9zpu.js +1568 -0
- package/dist/vue-ui-history-plot-Dhv-zMSR.js +1554 -0
- package/dist/vue-ui-horizontal-bar-BAT7IYhL.js +1681 -0
- package/dist/vue-ui-kpi-BggezxVU.js +96 -0
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
- package/dist/vue-ui-molecule-uXC5g9qp.js +925 -0
- package/dist/vue-ui-mood-radar-BYoxNRMc.js +1148 -0
- package/dist/vue-ui-nested-donuts-BVniVpDM.js +1487 -0
- package/dist/vue-ui-onion-CWzeZ5Ak.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dbx6W4ZW.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-BrPLv-sz.js +1978 -0
- package/dist/vue-ui-quick-chart-B0S_4DeW.js +2469 -0
- package/dist/vue-ui-radar-CUo6FWXZ.js +1229 -0
- package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
- package/dist/vue-ui-relation-circle-2a6IZgKe.js +924 -0
- package/dist/vue-ui-ridgeline-DnQBrx71.js +1622 -0
- package/dist/vue-ui-rings-BibWJNh2.js +1246 -0
- package/dist/vue-ui-scatter-8srfWwTp.js +2413 -0
- package/dist/vue-ui-skeleton-BoKB7qJM.js +2556 -0
- package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
- package/dist/vue-ui-spark-trend-Cq4pIgWr.js +438 -0
- package/dist/vue-ui-sparkbar-CgFKnZEF.js +393 -0
- package/dist/vue-ui-sparkgauge-ea-PGnBC.js +255 -0
- package/dist/vue-ui-sparkhistogram-BfgnG41U.js +560 -0
- package/dist/vue-ui-sparkline-CDOa3xh8.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DEsSr92Z.js +662 -0
- package/dist/vue-ui-stackbar-BeegxXk_.js +2270 -0
- package/dist/vue-ui-stackline-_G-cbZRe.js +2398 -0
- package/dist/vue-ui-strip-plot-VasAk496.js +1340 -0
- package/dist/vue-ui-table-DysBVxy5.js +1338 -0
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
- package/dist/vue-ui-table-sparkline-DQduGRPm.js +707 -0
- package/dist/vue-ui-thermometer-1l6KUpS8.js +763 -0
- package/dist/vue-ui-timer-Db2d4LNp.js +439 -0
- package/dist/vue-ui-tiremarks-YtFZjYFp.js +552 -0
- package/dist/vue-ui-treemap-DxwEGZ9p.js +1587 -0
- package/dist/vue-ui-waffle-C9bzj7pV.js +1362 -0
- package/dist/vue-ui-wheel-DKzocpS-.js +885 -0
- package/dist/vue-ui-word-cloud-DkNU1GFp.js +1656 -0
- package/dist/vue-ui-world-DhnfDaFE.js +14264 -0
- package/dist/vue-ui-xy-BzhW8pHi.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,763 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Bt as t, Ct as n, Et as r, G as i, H as a, Mt as ee, Rt as te, X as ne, i as re, ot as ie, t as ae, v as o, x as oe, y as s } from "./lib-DUeYQsS0.js";
|
|
3
|
+
import { t as se } from "./useConfig-DAyQk86L.js";
|
|
4
|
+
import { t as ce } from "./usePrinter-C1Gqt_Sp.js";
|
|
5
|
+
import { n as le, t as ue } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
+
import { t as de } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as c } from "./useNestedProp-CNcoy38D.js";
|
|
8
|
+
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as pe } from "./img-1cKsci8e.js";
|
|
10
|
+
import { n as me } from "./Title-NWp4qB4K.js";
|
|
11
|
+
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as ge } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as _e } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as be } from "./useAutoSizeLabelsInsideViewbox-BIVntRZp.js";
|
|
17
|
+
import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
18
|
+
import { t as Se } from "./vue_ui_thermometer-DxgqWKlE.js";
|
|
19
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ce, createVNode as we, defineAsyncComponent as h, guardReactiveProps as g, nextTick as Te, normalizeClass as _, normalizeProps as v, normalizeStyle as Ee, onMounted as De, openBlock as y, ref as b, renderList as Oe, renderSlot as x, toDisplayString as ke, toRefs as Ae, unref as S, useCssVars as je, watch as Me, withCtx as C } from "vue";
|
|
20
|
+
//#region src/components/vue-ui-thermometer.vue
|
|
21
|
+
var Ne = /* @__PURE__ */ e({ default: () => w }), Pe = ["id"], Fe = {
|
|
22
|
+
key: 1,
|
|
23
|
+
ref: "noTitle",
|
|
24
|
+
class: "vue-data-ui-no-title-space",
|
|
25
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
26
|
+
}, Ie = [
|
|
27
|
+
"xmlns",
|
|
28
|
+
"viewBox",
|
|
29
|
+
"aria-labelledby",
|
|
30
|
+
"aria-describedby"
|
|
31
|
+
], Le = ["id"], Re = ["id"], ze = ["width", "height"], Be = ["id"], Ve = [
|
|
32
|
+
"x",
|
|
33
|
+
"y",
|
|
34
|
+
"width",
|
|
35
|
+
"height",
|
|
36
|
+
"rx",
|
|
37
|
+
"ry"
|
|
38
|
+
], He = ["id"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["stop-color"], Ke = ["clip-path"], qe = [
|
|
39
|
+
"x",
|
|
40
|
+
"y",
|
|
41
|
+
"height",
|
|
42
|
+
"width"
|
|
43
|
+
], Je = [
|
|
44
|
+
"x",
|
|
45
|
+
"y",
|
|
46
|
+
"height",
|
|
47
|
+
"width",
|
|
48
|
+
"fill"
|
|
49
|
+
], Ye = [
|
|
50
|
+
"x1",
|
|
51
|
+
"x2",
|
|
52
|
+
"y1",
|
|
53
|
+
"y2",
|
|
54
|
+
"stroke-width",
|
|
55
|
+
"stroke"
|
|
56
|
+
], Xe = [
|
|
57
|
+
"x1",
|
|
58
|
+
"x2",
|
|
59
|
+
"y1",
|
|
60
|
+
"y2",
|
|
61
|
+
"stroke-width",
|
|
62
|
+
"stroke"
|
|
63
|
+
], Ze = [
|
|
64
|
+
"x1",
|
|
65
|
+
"x2",
|
|
66
|
+
"y1",
|
|
67
|
+
"y2",
|
|
68
|
+
"stroke-width",
|
|
69
|
+
"stroke"
|
|
70
|
+
], Qe = [
|
|
71
|
+
"x1",
|
|
72
|
+
"x2",
|
|
73
|
+
"y1",
|
|
74
|
+
"y2",
|
|
75
|
+
"stroke-width",
|
|
76
|
+
"stroke"
|
|
77
|
+
], $e = [
|
|
78
|
+
"x1",
|
|
79
|
+
"x2",
|
|
80
|
+
"y1",
|
|
81
|
+
"y2",
|
|
82
|
+
"stroke-width",
|
|
83
|
+
"stroke"
|
|
84
|
+
], et = [
|
|
85
|
+
"x1",
|
|
86
|
+
"x2",
|
|
87
|
+
"y1",
|
|
88
|
+
"y2",
|
|
89
|
+
"stroke-width",
|
|
90
|
+
"stroke"
|
|
91
|
+
], tt = [
|
|
92
|
+
"x1",
|
|
93
|
+
"x2",
|
|
94
|
+
"y1",
|
|
95
|
+
"y2",
|
|
96
|
+
"stroke-width",
|
|
97
|
+
"stroke"
|
|
98
|
+
], nt = [
|
|
99
|
+
"x1",
|
|
100
|
+
"x2",
|
|
101
|
+
"y1",
|
|
102
|
+
"y2",
|
|
103
|
+
"stroke-width",
|
|
104
|
+
"stroke"
|
|
105
|
+
], rt = [
|
|
106
|
+
"x",
|
|
107
|
+
"y",
|
|
108
|
+
"height",
|
|
109
|
+
"width"
|
|
110
|
+
], it = ["aria-label"], at = [
|
|
111
|
+
"x",
|
|
112
|
+
"y",
|
|
113
|
+
"height"
|
|
114
|
+
], ot = [
|
|
115
|
+
"y",
|
|
116
|
+
"x",
|
|
117
|
+
"fill",
|
|
118
|
+
"font-size",
|
|
119
|
+
"font-weight"
|
|
120
|
+
], st = {
|
|
121
|
+
key: 4,
|
|
122
|
+
class: "vue-data-ui-watermark"
|
|
123
|
+
}, w = /* @__PURE__ */ he({
|
|
124
|
+
__name: "vue-ui-thermometer",
|
|
125
|
+
props: {
|
|
126
|
+
dataset: {
|
|
127
|
+
type: Object,
|
|
128
|
+
default() {
|
|
129
|
+
return {};
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
config: {
|
|
133
|
+
type: Object,
|
|
134
|
+
default() {
|
|
135
|
+
return {};
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
emits: ["copyAlt"],
|
|
140
|
+
setup(e, { expose: he, emit: Ne }) {
|
|
141
|
+
je((e) => ({
|
|
142
|
+
v0233847b: Pt.value,
|
|
143
|
+
v30de9373: Nt.value,
|
|
144
|
+
v105f2dc0: Mt.value
|
|
145
|
+
}));
|
|
146
|
+
let w = h(() => import("./PackageVersion-BYcZLGDG.js").then((e) => e.t)), ct = h(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), lt = h(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), { vue_ui_thermometer: ut } = se(), { isThemeValid: dt, warnInvalidTheme: ft } = fe(), pt = xe(), T = e, mt = Ne, E = b(a()), D = b(null), ht = b(0), gt = b(0), _t = b(null), vt = b(null), O = b(null), k = b(null), A = b(!1), j = b(!1), yt = u(() => !!T.dataset && Object.keys(T.dataset).length);
|
|
147
|
+
De(() => {
|
|
148
|
+
wt();
|
|
149
|
+
});
|
|
150
|
+
let M = b(z()), bt = b(M.value.style.chart.thermometer.width), N = b(M.value.style.chart.height), P = b(M.value.style.chart.width), xt = u(() => M.value.userOptions.useCursorPointer), St = u(() => t({
|
|
151
|
+
defaultConfig: {
|
|
152
|
+
userOptions: { show: !1 },
|
|
153
|
+
style: { chart: {
|
|
154
|
+
animation: { use: !1 },
|
|
155
|
+
backgroundColor: "#99999930",
|
|
156
|
+
graduations: { stroke: "#6A6A6A" }
|
|
157
|
+
} }
|
|
158
|
+
},
|
|
159
|
+
userConfig: M.value.skeletonConfig ?? {}
|
|
160
|
+
})), { loading: F, FINAL_DATASET: I } = le({
|
|
161
|
+
...Ae(T),
|
|
162
|
+
FINAL_CONFIG: M,
|
|
163
|
+
prepareConfig: z,
|
|
164
|
+
skeletonDataset: T.config?.skeletonDataset ?? {
|
|
165
|
+
value: 0,
|
|
166
|
+
from: -100,
|
|
167
|
+
to: 100,
|
|
168
|
+
steps: 20,
|
|
169
|
+
colors: {
|
|
170
|
+
from: "#A1A1A1",
|
|
171
|
+
to: "#CACACA"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
skeletonConfig: t({
|
|
175
|
+
defaultConfig: M.value,
|
|
176
|
+
userConfig: St.value
|
|
177
|
+
})
|
|
178
|
+
}), Ct = u(() => !!M.value.debug);
|
|
179
|
+
function wt() {
|
|
180
|
+
if (n(T.dataset) ? ne({
|
|
181
|
+
componentName: "VueUiThermometer",
|
|
182
|
+
type: "dataset",
|
|
183
|
+
debug: Ct.value
|
|
184
|
+
}) : ie({
|
|
185
|
+
datasetObject: T.dataset,
|
|
186
|
+
requiredAttributes: [
|
|
187
|
+
"value",
|
|
188
|
+
"from",
|
|
189
|
+
"to"
|
|
190
|
+
]
|
|
191
|
+
}).forEach((e) => {
|
|
192
|
+
ne({
|
|
193
|
+
componentName: "VueUiThermometer",
|
|
194
|
+
type: "datasetAttribute",
|
|
195
|
+
property: e,
|
|
196
|
+
debug: Ct.value
|
|
197
|
+
});
|
|
198
|
+
}), M.value.responsive) {
|
|
199
|
+
let e = ge(() => {
|
|
200
|
+
let { width: e, height: t } = _e({
|
|
201
|
+
chart: D.value,
|
|
202
|
+
title: M.value.style.title.text ? _t.value : null,
|
|
203
|
+
source: vt.value
|
|
204
|
+
});
|
|
205
|
+
requestAnimationFrame(() => {
|
|
206
|
+
N.value = Math.max(.1, t - 12), P.value = e, zt();
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect()), O.value = new ResizeObserver(e), k.value = D.value, O.value.observe(k.value);
|
|
210
|
+
}
|
|
211
|
+
zt();
|
|
212
|
+
}
|
|
213
|
+
let { userOptionsVisible: L, setUserOptionsVisibility: Tt, keepUserOptionState: Et } = ve({ config: M.value }), { svgRef: R } = ye({ config: M.value.style.title });
|
|
214
|
+
function z() {
|
|
215
|
+
let e = c({
|
|
216
|
+
userConfig: T.config,
|
|
217
|
+
defaultConfig: ut
|
|
218
|
+
}), t = e.theme;
|
|
219
|
+
if (!t) return e;
|
|
220
|
+
if (!dt.value(e)) return ft(e), e;
|
|
221
|
+
let n = c({
|
|
222
|
+
userConfig: Se[t] || T.config,
|
|
223
|
+
defaultConfig: e
|
|
224
|
+
}), i = c({
|
|
225
|
+
userConfig: T.config,
|
|
226
|
+
defaultConfig: n
|
|
227
|
+
});
|
|
228
|
+
return {
|
|
229
|
+
...i,
|
|
230
|
+
customPalette: i.customPalette.length ? i.customPalette : te[t] || r
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
Me(() => T.config, (e) => {
|
|
234
|
+
M.value = z(), L.value = !M.value.userOptions.showOnChartHover, bt.value = M.value.style.chart.thermometer.width, N.value = M.value.style.chart.height, P.value = M.value.style.chart.width, wt(), gt.value += 1;
|
|
235
|
+
}, { deep: !0 });
|
|
236
|
+
let { isPrinting: B, isImaging: V, generatePdf: Dt, generateImage: Ot } = ce({
|
|
237
|
+
elementId: `thermometer__${E.value}`,
|
|
238
|
+
fileName: M.value.style.title.text || "vue-ui-thermometer",
|
|
239
|
+
options: M.value.userOptions.print
|
|
240
|
+
}), kt = u(() => M.value.userOptions.show && !M.value.style.title.text), H = u(() => oe(M.value.customPalette)), U = u(() => I.value.steps || 10);
|
|
241
|
+
function W(e, t, n) {
|
|
242
|
+
let r = [], i = At(e), a = At(t);
|
|
243
|
+
for (let e = 0; e < n; e += 1) {
|
|
244
|
+
let t = G(i.red, a.red, e, n), ee = G(i.green, a.green, e, n), te = G(i.blue, a.blue, e, n), ne = `#${K(t)}${K(ee)}${K(te)}`;
|
|
245
|
+
r.push(ne);
|
|
246
|
+
}
|
|
247
|
+
return r;
|
|
248
|
+
}
|
|
249
|
+
function At(e) {
|
|
250
|
+
let t = e.slice(1);
|
|
251
|
+
return {
|
|
252
|
+
red: parseInt(t.slice(0, 2), 16),
|
|
253
|
+
green: parseInt(t.slice(2, 4), 16),
|
|
254
|
+
blue: parseInt(t.slice(4, 6), 16)
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
function G(e, t, n, r) {
|
|
258
|
+
return Math.round(e + (t - e) * n / r);
|
|
259
|
+
}
|
|
260
|
+
function K(e) {
|
|
261
|
+
return e.toString(16).padStart(2, "0");
|
|
262
|
+
}
|
|
263
|
+
let q = u(() => {
|
|
264
|
+
let e = Math.max(.1, P.value), t = Math.max(.1, N.value), n = M.value.style.chart.padding;
|
|
265
|
+
return {
|
|
266
|
+
width: e,
|
|
267
|
+
left: e / 2 - M.value.style.chart.thermometer.width / 2,
|
|
268
|
+
right: e / 2 + M.value.style.chart.thermometer.width / 2,
|
|
269
|
+
top: n.top,
|
|
270
|
+
bottom: t - n.bottom - n.top,
|
|
271
|
+
height: t,
|
|
272
|
+
thermoHeight: t - n.top - n.bottom,
|
|
273
|
+
thermoWidth: M.value.style.chart.thermometer.width
|
|
274
|
+
};
|
|
275
|
+
}), jt = u(() => q.value), J = u(() => {
|
|
276
|
+
let e = o(I.value.from) < 0 ? Math.abs(o(I.value.from)) : o(I.value.from), t = o(I.value.to) < 0 ? Math.abs(o(I.value.to)) : o(I.value.to), n = 0;
|
|
277
|
+
return n = o(I.value.to) > 0 ? e + t : e > t ? e - t : t - e, (1 - (Math.abs(o(I.value.from)) + o(I.value.value)) / n) * q.value.thermoHeight;
|
|
278
|
+
}), Mt = u(() => `${J.value}px`), Nt = u(() => `${q.value.thermoHeight}px`), Pt = u(() => pt.value ? "0ms" : `${M.value.style.chart.animation.speedMs}ms`), Ft = u(() => {
|
|
279
|
+
if (I.value.colors) {
|
|
280
|
+
if (!I.value.colors.from) return W(H.value[0] || r[0], s(I.value.colors.to), U.value || 10);
|
|
281
|
+
if (!I.value.colors.to) return W(s(I.value.colors.from), H.value[1] || r[1], U.value || 10);
|
|
282
|
+
} else return W(H.value[1] || r[1], H.value[0] || r[0], U.value || 10);
|
|
283
|
+
return W(s(I.value.colors.from), s(I.value.colors.to), U.value || 10);
|
|
284
|
+
}), It = u(() => {
|
|
285
|
+
let e = [], t = 0, n = q.value.thermoHeight;
|
|
286
|
+
for (let r = 0; r < n - 1; r += n / U.value) e.push({
|
|
287
|
+
x: q.value.left,
|
|
288
|
+
y: q.value.top + r,
|
|
289
|
+
qYLess: q.value.top + r + n / U.value / 4,
|
|
290
|
+
halfY: q.value.top + r + n / U.value / 2,
|
|
291
|
+
qYMore: q.value.top + r + n / U.value / 4 * 3,
|
|
292
|
+
color: Ft.value[t],
|
|
293
|
+
height: Math.max(.1, n / U.value)
|
|
294
|
+
}), t += 1;
|
|
295
|
+
return e;
|
|
296
|
+
}), Y = b(!1);
|
|
297
|
+
function Lt(e) {
|
|
298
|
+
Y.value = e, ht.value += 1;
|
|
299
|
+
}
|
|
300
|
+
let X = b(!1);
|
|
301
|
+
function Z() {
|
|
302
|
+
X.value = !X.value;
|
|
303
|
+
}
|
|
304
|
+
async function Rt({ scale: e = 2 } = {}) {
|
|
305
|
+
if (!D.value) return;
|
|
306
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
307
|
+
domElement: D.value,
|
|
308
|
+
base64: !0,
|
|
309
|
+
img: !0,
|
|
310
|
+
scale: e
|
|
311
|
+
});
|
|
312
|
+
return {
|
|
313
|
+
imageUri: i,
|
|
314
|
+
base64: a,
|
|
315
|
+
title: M.value.style.title.text,
|
|
316
|
+
width: t,
|
|
317
|
+
height: n,
|
|
318
|
+
aspectRatio: r
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
let Q = u({
|
|
322
|
+
get: () => M.value.style.chart.label.fontSize,
|
|
323
|
+
set: (e) => e
|
|
324
|
+
}), { autoSizeLabels: zt } = be({
|
|
325
|
+
svgRef: R,
|
|
326
|
+
fontSize: M.value.style.chart.label.fontSize,
|
|
327
|
+
minFontSize: M.value.style.chart.label.minFontSize,
|
|
328
|
+
sizeRef: Q,
|
|
329
|
+
labelClass: ".vue-ui-thermometer-label"
|
|
330
|
+
}), Bt = u(() => M.value.style.chart.backgroundColor), { exportSvg: Vt, getSvg: Ht } = de({
|
|
331
|
+
svg: R,
|
|
332
|
+
title: u(() => M.value.style.title),
|
|
333
|
+
backgroundColor: Bt
|
|
334
|
+
});
|
|
335
|
+
async function Ut({ isCb: e }) {
|
|
336
|
+
j.value = !0, await Te();
|
|
337
|
+
try {
|
|
338
|
+
if (e) {
|
|
339
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Ht();
|
|
340
|
+
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
341
|
+
blob: e,
|
|
342
|
+
url: t,
|
|
343
|
+
text: n,
|
|
344
|
+
dataUrl: r
|
|
345
|
+
}));
|
|
346
|
+
} else await Promise.resolve(Vt());
|
|
347
|
+
} finally {
|
|
348
|
+
j.value = !1;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
function Wt(e) {
|
|
352
|
+
if (e?.stage === "start") {
|
|
353
|
+
A.value = !0;
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
if (e?.stage === "end") {
|
|
357
|
+
A.value = !1;
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
Ot();
|
|
361
|
+
}
|
|
362
|
+
async function Gt() {
|
|
363
|
+
if (mt("copyAlt", {
|
|
364
|
+
config: M.value,
|
|
365
|
+
dataset: I.value
|
|
366
|
+
}), !M.value.userOptions.callbacks.altCopy) {
|
|
367
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
371
|
+
config: M.value,
|
|
372
|
+
dataset: I.value
|
|
373
|
+
}));
|
|
374
|
+
}
|
|
375
|
+
let Kt = u(() => `${E.value}-title`), qt = u(() => `${E.value}-desc`), $ = u(() => re(M.value.style.chart.label.formatter, I.value.value, i({
|
|
376
|
+
p: M.value.style.chart.label.prefix,
|
|
377
|
+
v: I.value.value,
|
|
378
|
+
s: M.value.style.chart.label.suffix,
|
|
379
|
+
r: M.value.style.chart.label.rounding
|
|
380
|
+
}), { datapoint: I.value })), Jt = u(() => M.value.style.title.text || ""), Yt = u(() => {
|
|
381
|
+
if (F.value) return "...";
|
|
382
|
+
let e = o(I.value.from), t = o(I.value.to);
|
|
383
|
+
return `Thermometer value: ${$.value}. Range: ${e} to ${t}.`;
|
|
384
|
+
});
|
|
385
|
+
return he({
|
|
386
|
+
getImage: Rt,
|
|
387
|
+
generatePdf: Dt,
|
|
388
|
+
generateImage: Ot,
|
|
389
|
+
generateSvg: Ut,
|
|
390
|
+
toggleAnnotator: Z,
|
|
391
|
+
toggleFullscreen: Lt,
|
|
392
|
+
copyAlt: Gt
|
|
393
|
+
}), (e, t) => (y(), p("div", {
|
|
394
|
+
ref_key: "thermoChart",
|
|
395
|
+
ref: D,
|
|
396
|
+
class: _(`vue-data-ui-component vue-ui-thermometer ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
397
|
+
style: Ee(`width:100%;background:${M.value.style.chart.backgroundColor};color:${M.value.style.chart.color};font-family:${M.value.style.fontFamily}`),
|
|
398
|
+
id: `thermometer__${E.value}`,
|
|
399
|
+
onMouseenter: t[0] ||= () => S(Tt)(!0),
|
|
400
|
+
onMouseleave: t[1] ||= () => S(Tt)(!1)
|
|
401
|
+
}, [
|
|
402
|
+
M.value.userOptions.buttons.annotator ? (y(), d(S(ct), {
|
|
403
|
+
key: 0,
|
|
404
|
+
svgRef: S(R),
|
|
405
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
406
|
+
color: M.value.style.chart.color,
|
|
407
|
+
active: X.value,
|
|
408
|
+
isCursorPointer: xt.value,
|
|
409
|
+
onClose: Z
|
|
410
|
+
}, {
|
|
411
|
+
"annotator-action-close": C(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
412
|
+
"annotator-action-color": C(({ color: t }) => [x(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
413
|
+
"annotator-action-draw": C(({ mode: t }) => [x(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
414
|
+
"annotator-action-undo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
415
|
+
"annotator-action-redo": C(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
416
|
+
"annotator-action-delete": C(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
417
|
+
_: 3
|
|
418
|
+
}, 8, [
|
|
419
|
+
"svgRef",
|
|
420
|
+
"backgroundColor",
|
|
421
|
+
"color",
|
|
422
|
+
"active",
|
|
423
|
+
"isCursorPointer"
|
|
424
|
+
])) : f("", !0),
|
|
425
|
+
kt.value ? (y(), p("div", Fe, null, 512)) : f("", !0),
|
|
426
|
+
M.value.style.title.text ? (y(), p("div", {
|
|
427
|
+
key: 2,
|
|
428
|
+
ref_key: "chartTitle",
|
|
429
|
+
ref: _t,
|
|
430
|
+
style: "width:100%"
|
|
431
|
+
}, [(y(), d(me, {
|
|
432
|
+
key: `title_${gt.value}`,
|
|
433
|
+
config: {
|
|
434
|
+
title: {
|
|
435
|
+
cy: "thermometer-div-title",
|
|
436
|
+
...M.value.style.title
|
|
437
|
+
},
|
|
438
|
+
subtitle: {
|
|
439
|
+
cy: "thermometer-div-subtitle",
|
|
440
|
+
...M.value.style.title.subtitle
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
444
|
+
M.value.userOptions.show && yt.value && (S(Et) || S(L)) ? (y(), d(S(lt), {
|
|
445
|
+
ref: "details",
|
|
446
|
+
key: `user_options_${ht.value}`,
|
|
447
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
448
|
+
color: M.value.style.chart.color,
|
|
449
|
+
isImaging: S(V),
|
|
450
|
+
isPrinting: S(B),
|
|
451
|
+
uid: E.value,
|
|
452
|
+
hasPdf: M.value.userOptions.buttons.pdf,
|
|
453
|
+
hasImg: M.value.userOptions.buttons.img,
|
|
454
|
+
hasSvg: M.value.userOptions.buttons.svg,
|
|
455
|
+
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
456
|
+
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
457
|
+
hasXls: !1,
|
|
458
|
+
isFullscreen: Y.value,
|
|
459
|
+
titles: { ...M.value.userOptions.buttonTitles },
|
|
460
|
+
chartElement: D.value,
|
|
461
|
+
position: M.value.userOptions.position,
|
|
462
|
+
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
463
|
+
isAnnotation: X.value,
|
|
464
|
+
callbacks: M.value.userOptions.callbacks,
|
|
465
|
+
printScale: M.value.userOptions.print.scale,
|
|
466
|
+
isCursorPointer: xt.value,
|
|
467
|
+
onToggleFullscreen: Lt,
|
|
468
|
+
onGeneratePdf: S(Dt),
|
|
469
|
+
onGenerateImage: Wt,
|
|
470
|
+
onGenerateSvg: Ut,
|
|
471
|
+
onToggleAnnotator: Z,
|
|
472
|
+
onCopyAlt: Gt,
|
|
473
|
+
style: Ee({ visibility: S(Et) ? S(L) ? "visible" : "hidden" : "visible" })
|
|
474
|
+
}, Ce({ _: 2 }, [
|
|
475
|
+
e.$slots.menuIcon ? {
|
|
476
|
+
name: "menuIcon",
|
|
477
|
+
fn: C(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", v(g({
|
|
478
|
+
isOpen: t,
|
|
479
|
+
color: n
|
|
480
|
+
})), void 0, !0)]),
|
|
481
|
+
key: "0"
|
|
482
|
+
} : void 0,
|
|
483
|
+
e.$slots.optionPdf ? {
|
|
484
|
+
name: "optionPdf",
|
|
485
|
+
fn: C(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
486
|
+
key: "1"
|
|
487
|
+
} : void 0,
|
|
488
|
+
e.$slots.optionImg ? {
|
|
489
|
+
name: "optionImg",
|
|
490
|
+
fn: C(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
491
|
+
key: "2"
|
|
492
|
+
} : void 0,
|
|
493
|
+
e.$slots.optionSvg ? {
|
|
494
|
+
name: "optionSvg",
|
|
495
|
+
fn: C(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
496
|
+
key: "3"
|
|
497
|
+
} : void 0,
|
|
498
|
+
e.$slots.optionFullscreen ? {
|
|
499
|
+
name: "optionFullscreen",
|
|
500
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", v(g({
|
|
501
|
+
toggleFullscreen: t,
|
|
502
|
+
isFullscreen: n
|
|
503
|
+
})), void 0, !0)]),
|
|
504
|
+
key: "4"
|
|
505
|
+
} : void 0,
|
|
506
|
+
e.$slots.optionAnnotator ? {
|
|
507
|
+
name: "optionAnnotator",
|
|
508
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", v(g({
|
|
509
|
+
toggleAnnotator: t,
|
|
510
|
+
isAnnotator: n
|
|
511
|
+
})), void 0, !0)]),
|
|
512
|
+
key: "5"
|
|
513
|
+
} : void 0,
|
|
514
|
+
e.$slots.optionAltCopy ? {
|
|
515
|
+
name: "optionAltCopy",
|
|
516
|
+
fn: C(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
517
|
+
key: "6"
|
|
518
|
+
} : void 0,
|
|
519
|
+
e.$slots["custom-menu-before"] ? {
|
|
520
|
+
name: "custom-menu-before",
|
|
521
|
+
fn: C(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
522
|
+
key: "7"
|
|
523
|
+
} : void 0,
|
|
524
|
+
e.$slots["custom-menu-after"] ? {
|
|
525
|
+
name: "custom-menu-after",
|
|
526
|
+
fn: C(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
527
|
+
key: "8"
|
|
528
|
+
} : void 0
|
|
529
|
+
]), 1032, [
|
|
530
|
+
"backgroundColor",
|
|
531
|
+
"color",
|
|
532
|
+
"isImaging",
|
|
533
|
+
"isPrinting",
|
|
534
|
+
"uid",
|
|
535
|
+
"hasPdf",
|
|
536
|
+
"hasImg",
|
|
537
|
+
"hasSvg",
|
|
538
|
+
"hasFullscreen",
|
|
539
|
+
"hasAltCopy",
|
|
540
|
+
"isFullscreen",
|
|
541
|
+
"titles",
|
|
542
|
+
"chartElement",
|
|
543
|
+
"position",
|
|
544
|
+
"hasAnnotator",
|
|
545
|
+
"isAnnotation",
|
|
546
|
+
"callbacks",
|
|
547
|
+
"printScale",
|
|
548
|
+
"isCursorPointer",
|
|
549
|
+
"onGeneratePdf",
|
|
550
|
+
"style"
|
|
551
|
+
])) : f("", !0),
|
|
552
|
+
(y(), p("svg", {
|
|
553
|
+
ref_key: "svgRef",
|
|
554
|
+
ref: R,
|
|
555
|
+
xmlns: S(ae),
|
|
556
|
+
class: _({
|
|
557
|
+
"vue-data-ui-fullscreen--on": Y.value,
|
|
558
|
+
"vue-data-ui-fulscreen--off": !Y.value
|
|
559
|
+
}),
|
|
560
|
+
width: "100%",
|
|
561
|
+
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
562
|
+
style: "background:transparent",
|
|
563
|
+
"aria-labelledby": Kt.value,
|
|
564
|
+
"aria-describedby": qt.value
|
|
565
|
+
}, [
|
|
566
|
+
m("title", { id: Kt.value }, ke(Jt.value), 9, Le),
|
|
567
|
+
m("desc", { id: qt.value }, ke(Yt.value), 9, Re),
|
|
568
|
+
we(S(w)),
|
|
569
|
+
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
570
|
+
key: 0,
|
|
571
|
+
x: 0,
|
|
572
|
+
y: 0,
|
|
573
|
+
width: q.value.width,
|
|
574
|
+
height: q.value.height,
|
|
575
|
+
style: { pointerEvents: "none" }
|
|
576
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, ze)) : f("", !0),
|
|
577
|
+
m("defs", null, [m("clipPath", {
|
|
578
|
+
id: `vueUiPill-${E.value}`,
|
|
579
|
+
clipPathUnits: "userSpaceOnUse"
|
|
580
|
+
}, [m("rect", {
|
|
581
|
+
x: q.value.left,
|
|
582
|
+
y: q.value.top,
|
|
583
|
+
width: q.value.thermoWidth,
|
|
584
|
+
height: q.value.thermoHeight,
|
|
585
|
+
rx: q.value.thermoWidth / 2,
|
|
586
|
+
ry: q.value.thermoWidth / 2
|
|
587
|
+
}, null, 8, Ve)], 8, Be), (y(!0), p(l, null, Oe(It.value, (e, t) => (y(), p("linearGradient", {
|
|
588
|
+
id: `vueUiThermometerGradient_${t}_${E.value}`,
|
|
589
|
+
x1: "0%",
|
|
590
|
+
y1: "0%",
|
|
591
|
+
x2: "100%",
|
|
592
|
+
y2: "0%"
|
|
593
|
+
}, [
|
|
594
|
+
m("stop", {
|
|
595
|
+
offset: "0%",
|
|
596
|
+
"stop-color": e.color
|
|
597
|
+
}, null, 8, Ue),
|
|
598
|
+
m("stop", {
|
|
599
|
+
offset: "50%",
|
|
600
|
+
"stop-color": S(ee)(e.color, 100 - M.value.style.chart.graduations.gradient.intensity)
|
|
601
|
+
}, null, 8, We),
|
|
602
|
+
m("stop", {
|
|
603
|
+
offset: "100%",
|
|
604
|
+
"stop-color": e.color
|
|
605
|
+
}, null, 8, Ge)
|
|
606
|
+
], 8, He))), 256))]),
|
|
607
|
+
m("g", { "clip-path": `url(#vueUiPill-${E.value})` }, [
|
|
608
|
+
m("rect", {
|
|
609
|
+
x: q.value.left,
|
|
610
|
+
y: q.value.top,
|
|
611
|
+
height: q.value.thermoHeight,
|
|
612
|
+
width: q.value.thermoWidth,
|
|
613
|
+
fill: "#FFFFFF"
|
|
614
|
+
}, null, 8, qe),
|
|
615
|
+
(y(!0), p(l, null, Oe(It.value, (e, t) => (y(), p("g", { key: `graduation_${t}` }, [
|
|
616
|
+
m("rect", {
|
|
617
|
+
x: e.x,
|
|
618
|
+
y: e.y,
|
|
619
|
+
height: e.height,
|
|
620
|
+
width: q.value.thermoWidth,
|
|
621
|
+
fill: M.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${t}_${E.value})` : e.color,
|
|
622
|
+
"shape-rendering": "crispEdges"
|
|
623
|
+
}, null, 8, Je),
|
|
624
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
625
|
+
key: 0,
|
|
626
|
+
x1: e.x,
|
|
627
|
+
x2: e.x + 10,
|
|
628
|
+
y1: e.y,
|
|
629
|
+
y2: e.y,
|
|
630
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth,
|
|
631
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
632
|
+
"stroke-linecap": "round"
|
|
633
|
+
}, null, 8, Ye)) : f("", !0),
|
|
634
|
+
M.value.style.chart.graduations.showIntermediate ? (y(), p(l, { key: 1 }, [
|
|
635
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
636
|
+
key: 0,
|
|
637
|
+
x1: e.x,
|
|
638
|
+
x2: e.x + 5,
|
|
639
|
+
y1: e.halfY,
|
|
640
|
+
y2: e.halfY,
|
|
641
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
642
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
643
|
+
"stroke-linecap": "round"
|
|
644
|
+
}, null, 8, Xe)) : f("", !0),
|
|
645
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
646
|
+
key: 1,
|
|
647
|
+
x1: e.x,
|
|
648
|
+
x2: e.x + 2.5,
|
|
649
|
+
y1: e.qYLess,
|
|
650
|
+
y2: e.qYLess,
|
|
651
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
652
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
653
|
+
"stroke-linecap": "round"
|
|
654
|
+
}, null, 8, Ze)) : f("", !0),
|
|
655
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
656
|
+
key: 2,
|
|
657
|
+
x1: e.x,
|
|
658
|
+
x2: e.x + 2.5,
|
|
659
|
+
y1: e.qYMore,
|
|
660
|
+
y2: e.qYMore,
|
|
661
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
662
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
663
|
+
"stroke-linecap": "round"
|
|
664
|
+
}, null, 8, Qe)) : f("", !0)
|
|
665
|
+
], 64)) : f("", !0),
|
|
666
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
667
|
+
key: 2,
|
|
668
|
+
x1: q.value.right,
|
|
669
|
+
x2: q.value.right - 10,
|
|
670
|
+
y1: e.y,
|
|
671
|
+
y2: e.y,
|
|
672
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth,
|
|
673
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
674
|
+
"stroke-linecap": "round"
|
|
675
|
+
}, null, 8, $e)) : f("", !0),
|
|
676
|
+
M.value.style.chart.graduations.showIntermediate ? (y(), p(l, { key: 3 }, [
|
|
677
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
678
|
+
key: 0,
|
|
679
|
+
x1: q.value.right,
|
|
680
|
+
x2: q.value.right - 5,
|
|
681
|
+
y1: e.halfY,
|
|
682
|
+
y2: e.halfY,
|
|
683
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
684
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
685
|
+
"stroke-linecap": "round"
|
|
686
|
+
}, null, 8, et)) : f("", !0),
|
|
687
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
688
|
+
key: 1,
|
|
689
|
+
x1: q.value.right,
|
|
690
|
+
x2: q.value.right - 2.5,
|
|
691
|
+
y1: e.qYLess,
|
|
692
|
+
y2: e.qYLess,
|
|
693
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
694
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
695
|
+
"stroke-linecap": "round"
|
|
696
|
+
}, null, 8, tt)) : f("", !0),
|
|
697
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (y(), p("line", {
|
|
698
|
+
key: 2,
|
|
699
|
+
x1: q.value.right,
|
|
700
|
+
x2: q.value.right - 2.5,
|
|
701
|
+
y1: e.qYMore,
|
|
702
|
+
y2: e.qYMore,
|
|
703
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
704
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
705
|
+
"stroke-linecap": "round"
|
|
706
|
+
}, null, 8, nt)) : f("", !0)
|
|
707
|
+
], 64)) : f("", !0)
|
|
708
|
+
]))), 128)),
|
|
709
|
+
m("rect", {
|
|
710
|
+
class: _({ "vue-ui-thermometer-temperature": M.value.style.chart.animation.use }),
|
|
711
|
+
x: q.value.left,
|
|
712
|
+
y: q.value.top,
|
|
713
|
+
height: J.value,
|
|
714
|
+
width: q.value.thermoWidth,
|
|
715
|
+
fill: "#FFFFFF66"
|
|
716
|
+
}, null, 10, rt)
|
|
717
|
+
], 8, Ke),
|
|
718
|
+
M.value.style.chart.label.show ? (y(), p("g", {
|
|
719
|
+
key: 1,
|
|
720
|
+
role: "status",
|
|
721
|
+
"aria-live": "polite",
|
|
722
|
+
"aria-label": S(F) ? "Loading data" : $.value
|
|
723
|
+
}, [S(F) ? (y(), p("rect", {
|
|
724
|
+
key: 0,
|
|
725
|
+
x: q.value.left - 60,
|
|
726
|
+
y: J.value + q.value.top - Q.value / 2,
|
|
727
|
+
width: 50,
|
|
728
|
+
height: Q.value,
|
|
729
|
+
fill: "#6A6A6A40",
|
|
730
|
+
rx: "3"
|
|
731
|
+
}, null, 8, at)) : (y(), p("text", {
|
|
732
|
+
key: 1,
|
|
733
|
+
"aria-hidden": "true",
|
|
734
|
+
class: _({
|
|
735
|
+
"vue-ui-thermometer-temperature-value": M.value.style.chart.animation.use,
|
|
736
|
+
"vue-ui-thermometer-label": !0
|
|
737
|
+
}),
|
|
738
|
+
y: J.value + q.value.top + Q.value / 3,
|
|
739
|
+
x: q.value.left - 10,
|
|
740
|
+
"text-anchor": "end",
|
|
741
|
+
fill: M.value.style.chart.label.color,
|
|
742
|
+
"font-size": Q.value,
|
|
743
|
+
"font-weight": M.value.style.chart.label.bold ? "bold" : "normal"
|
|
744
|
+
}, ke($.value), 11, ot))], 8, it)) : f("", !0),
|
|
745
|
+
x(e.$slots, "svg", { svg: {
|
|
746
|
+
...jt.value,
|
|
747
|
+
isPrintingImg: S(B) || S(V) || A.value,
|
|
748
|
+
isPrintingSvg: j.value
|
|
749
|
+
} }, void 0, !0)
|
|
750
|
+
], 10, Ie)),
|
|
751
|
+
e.$slots.watermark ? (y(), p("div", st, [x(e.$slots, "watermark", v(g({ isPrinting: S(B) || S(V) || A.value || j.value })), void 0, !0)])) : f("", !0),
|
|
752
|
+
e.$slots.source ? (y(), p("div", {
|
|
753
|
+
key: 5,
|
|
754
|
+
ref_key: "source",
|
|
755
|
+
ref: vt,
|
|
756
|
+
dir: "auto"
|
|
757
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
758
|
+
x(e.$slots, "skeleton", {}, () => [S(F) ? (y(), d(ue, { key: 0 })) : f("", !0)], !0)
|
|
759
|
+
], 46, Pe));
|
|
760
|
+
}
|
|
761
|
+
}, [["__scopeId", "data-v-c1de98e8"]]);
|
|
762
|
+
//#endregion
|
|
763
|
+
export { Ne as n, w as t };
|