vue-data-ui 3.17.13 → 3.18.0
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 +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4766 -630
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { nextTick as e } from "vue";
|
|
2
|
+
//#region src/useFitSvgText.js
|
|
3
|
+
function t({ svgRef: t, unitWidth: n, fontSize: r = 12, step: i = .5, maxIterations: a = 60, hideUnderMin: o = !0 }) {
|
|
4
|
+
let s = /* @__PURE__ */ new WeakMap(), c = (e) => {
|
|
5
|
+
if (typeof e == "number") return e;
|
|
6
|
+
if (!e) return NaN;
|
|
7
|
+
let t = parseFloat(String(e).replace("px", ""));
|
|
8
|
+
return Number.isFinite(t) ? t : NaN;
|
|
9
|
+
}, l = (e) => {
|
|
10
|
+
let t = c(e.getAttribute("font-size"));
|
|
11
|
+
return Number.isFinite(t) ? t : c(window.getComputedStyle(e).fontSize) || r;
|
|
12
|
+
}, u = (e, t) => {
|
|
13
|
+
e.setAttribute("font-size", String(t));
|
|
14
|
+
}, d = (e) => {
|
|
15
|
+
if (s.has(e)) u(e, s.get(e));
|
|
16
|
+
else {
|
|
17
|
+
let t = l(e);
|
|
18
|
+
s.set(e, t), u(e, t);
|
|
19
|
+
}
|
|
20
|
+
}, f = (e) => {
|
|
21
|
+
try {
|
|
22
|
+
return e.getBBox().width || 0;
|
|
23
|
+
} catch {
|
|
24
|
+
return 0;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return { fitText: async (r, s = 6) => {
|
|
28
|
+
await e();
|
|
29
|
+
let c = t?.value;
|
|
30
|
+
if (!c) return;
|
|
31
|
+
let p = c.querySelectorAll(r);
|
|
32
|
+
if (!p.length) return;
|
|
33
|
+
let m = Math.max(0, n.value);
|
|
34
|
+
if (m <= 0) return;
|
|
35
|
+
let h = [];
|
|
36
|
+
p.forEach((e) => {
|
|
37
|
+
let t = e.style.display, n = e.style.opacity;
|
|
38
|
+
e.style.display = "", e.style.opacity = "0", d(e);
|
|
39
|
+
let r = f(e), o = l(e), c = o, p = 0;
|
|
40
|
+
if (r <= m) h.push({
|
|
41
|
+
el: e,
|
|
42
|
+
finalSize: o,
|
|
43
|
+
fits: !0
|
|
44
|
+
});
|
|
45
|
+
else {
|
|
46
|
+
for (; r > m && c > s && p < a;) c = Math.max(s, c - i), u(e, c), r = f(e), p += 1;
|
|
47
|
+
let t = r <= m && c > s;
|
|
48
|
+
h.push({
|
|
49
|
+
el: e,
|
|
50
|
+
finalSize: c,
|
|
51
|
+
fits: t
|
|
52
|
+
}), u(e, o);
|
|
53
|
+
}
|
|
54
|
+
e.style.display = t, e.style.opacity = n;
|
|
55
|
+
});
|
|
56
|
+
let g = o && h.some((e) => !e.fits);
|
|
57
|
+
h.forEach(({ el: e, finalSize: t, fits: n }) => {
|
|
58
|
+
g ? e.style.display = "none" : (e.style.display = "", u(e, t));
|
|
59
|
+
});
|
|
60
|
+
} };
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { b as e, zt as t } from "./lib-B83ZCydz.js";
|
|
2
|
+
//#region src/useNestedProp.js
|
|
3
|
+
function n({ defaultConfig: n, userConfig: r }) {
|
|
4
|
+
return Object.keys(r || {}).length ? e(t({
|
|
5
|
+
defaultConfig: n,
|
|
6
|
+
userConfig: r
|
|
7
|
+
})) : n;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as t };
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { t as e } from "./useConfig-KnOLHtlJ.js";
|
|
2
|
+
import { computed as t, isRef as n, markRaw as r, watchEffect as i } from "vue";
|
|
3
|
+
//#region src/getVueDataUiConfig.js
|
|
4
|
+
var a = /* @__PURE__ */ "vue_ui_xy.vue_ui_donut.vue_ui_treemap.vue_ui_waffle.vue_ui_radar.vue_ui_quadrant.vue_ui_gauge.vue_ui_wheel.vue_ui_tiremarks.vue_ui_chestnut.vue_ui_onion.vue_ui_vertical_bar.vue_ui_horizontal_bar.vue_ui_heatmap.vue_ui_scatter.vue_ui_candlestick.vue_ui_sparkline.vue_ui_sparkbar.vue_ui_sparkstackbar.vue_ui_sparkhistogram.vue_ui_sparkgauge.vue_ui_spark_trend.vue_ui_quick_chart.vue_ui_age_pyramid.vue_ui_relation_circle.vue_ui_thermometer.vue_ui_rings.vue_ui_donut_evolution.vue_ui_mood_radar.vue_ui_molecule.vue_ui_nested_donuts.vue_ui_galaxy.vue_ui_strip_plot.vue_ui_dumbbell.vue_ui_3d_bar.vue_ui_table_sparkline.vue_ui_table_heatmap.vue_ui_word_cloud.vue_ui_xy_canvas.vue_ui_flow.vue_ui_parallel_coordinate_plot.vue_ui_timer.vue_ui_carousel_table.vue_ui_gizmo.vue_ui_stackbar.vue_ui_bullet.vue_ui_funnel.vue_ui_history_plot.vue_ui_world.vue_ui_ridgeline.vue_ui_chord.vue_ui_stackline.vue_ui_dag.vue_ui_geo.vue_ui_bump.vue_ui_cursor.vue_ui_accordion.vue_ui_kpi.vue_ui_mini_loader.vue_ui_smiley.vue_ui_rating.vue_ui_annotator.vue_ui_dashboard.vue_ui_skeleton.vue_ui_table.vue_ui_digits.vue_ui_circle_pack".split(".");
|
|
5
|
+
function o(t, n = {}) {
|
|
6
|
+
return a.includes(t) ? e(n)[t] : (console.error(`VueDataUi - getVueDataUiConfig : ${t} is not a valid component name for this utility.\nUse snake case names, for example 'vue_ui_xy', 'vue_ui_donut', etc.`), {});
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/getThemeConfig.js
|
|
10
|
+
var s = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
|
|
11
|
+
"./themes/vue_ui_3d_bar.json": () => import("./vue_ui_3d_bar-CXKqO5Ej.js").then((e) => e.n).then((e) => e.default),
|
|
12
|
+
"./themes/vue_ui_age_pyramid.json": () => import("./vue_ui_age_pyramid-BON8QI6X.js").then((e) => e.n).then((e) => e.default),
|
|
13
|
+
"./themes/vue_ui_bullet.json": () => import("./vue_ui_bullet-CE5sFT7u.js").then((e) => e.n).then((e) => e.default),
|
|
14
|
+
"./themes/vue_ui_bump.json": () => import("./vue_ui_bump-frnXaXul.js").then((e) => e.n).then((e) => e.default),
|
|
15
|
+
"./themes/vue_ui_candlestick.json": () => import("./vue_ui_candlestick-sY6UtOop.js").then((e) => e.n).then((e) => e.default),
|
|
16
|
+
"./themes/vue_ui_chestnut.json": () => import("./vue_ui_chestnut-BiUZFv40.js").then((e) => e.n).then((e) => e.default),
|
|
17
|
+
"./themes/vue_ui_chord.json": () => import("./vue_ui_chord-DpyR_b9A.js").then((e) => e.n).then((e) => e.default),
|
|
18
|
+
"./themes/vue_ui_circle_pack.json": () => import("./vue_ui_circle_pack-DBKz_Fi_.js").then((e) => e.n).then((e) => e.default),
|
|
19
|
+
"./themes/vue_ui_dag.json": () => import("./vue_ui_dag-Ci_MOnvd.js").then((e) => e.n).then((e) => e.default),
|
|
20
|
+
"./themes/vue_ui_donut.json": () => import("./vue_ui_donut-Cx2_BGcQ.js").then((e) => e.n).then((e) => e.default),
|
|
21
|
+
"./themes/vue_ui_donut_evolution.json": () => import("./vue_ui_donut_evolution-CAJefrHs.js").then((e) => e.n).then((e) => e.default),
|
|
22
|
+
"./themes/vue_ui_dumbbell.json": () => import("./vue_ui_dumbbell-CClzAZTN.js").then((e) => e.n).then((e) => e.default),
|
|
23
|
+
"./themes/vue_ui_flow.json": () => import("./vue_ui_flow-CCHO1Lo9.js").then((e) => e.n).then((e) => e.default),
|
|
24
|
+
"./themes/vue_ui_funnel.json": () => import("./vue_ui_funnel-h8q2mRpC.js").then((e) => e.n).then((e) => e.default),
|
|
25
|
+
"./themes/vue_ui_galaxy.json": () => import("./vue_ui_galaxy-70vtkEBw.js").then((e) => e.n).then((e) => e.default),
|
|
26
|
+
"./themes/vue_ui_gauge.json": () => import("./vue_ui_gauge-C17CgfzN.js").then((e) => e.n).then((e) => e.default),
|
|
27
|
+
"./themes/vue_ui_geo.json": () => import("./vue_ui_geo-C0UbQ0Lc.js").then((e) => e.n).then((e) => e.default),
|
|
28
|
+
"./themes/vue_ui_heatmap.json": () => import("./vue_ui_heatmap-BqPP3J4M.js").then((e) => e.n).then((e) => e.default),
|
|
29
|
+
"./themes/vue_ui_history_plot.json": () => import("./vue_ui_history_plot-C5nytDHh.js").then((e) => e.n).then((e) => e.default),
|
|
30
|
+
"./themes/vue_ui_horizontal_bar.json": () => import("./vue_ui_horizontal_bar-Bqxorkc_.js").then((e) => e.n).then((e) => e.default),
|
|
31
|
+
"./themes/vue_ui_molecule.json": () => import("./vue_ui_molecule-Dka4JBOp.js").then((e) => e.n).then((e) => e.default),
|
|
32
|
+
"./themes/vue_ui_mood_radar.json": () => import("./vue_ui_mood_radar-Dg4ijm53.js").then((e) => e.n).then((e) => e.default),
|
|
33
|
+
"./themes/vue_ui_nested_donuts.json": () => import("./vue_ui_nested_donuts-BY9cOoHF.js").then((e) => e.n).then((e) => e.default),
|
|
34
|
+
"./themes/vue_ui_onion.json": () => import("./vue_ui_onion-DTV9cup-.js").then((e) => e.n).then((e) => e.default),
|
|
35
|
+
"./themes/vue_ui_parallel_coordinate_plot.json": () => import("./vue_ui_parallel_coordinate_plot-CNWrDh96.js").then((e) => e.n).then((e) => e.default),
|
|
36
|
+
"./themes/vue_ui_quadrant.json": () => import("./vue_ui_quadrant-3kjYvxpj.js").then((e) => e.n).then((e) => e.default),
|
|
37
|
+
"./themes/vue_ui_quick_chart.json": () => import("./vue_ui_quick_chart--VaYQuM4.js").then((e) => e.n).then((e) => e.default),
|
|
38
|
+
"./themes/vue_ui_radar.json": () => import("./vue_ui_radar-Dxx9GJmj.js").then((e) => e.n).then((e) => e.default),
|
|
39
|
+
"./themes/vue_ui_relation_circle.json": () => import("./vue_ui_relation_circle-Cr0I2SoU.js").then((e) => e.n).then((e) => e.default),
|
|
40
|
+
"./themes/vue_ui_ridgeline.json": () => import("./vue_ui_ridgeline-CAtYca4b.js").then((e) => e.n).then((e) => e.default),
|
|
41
|
+
"./themes/vue_ui_rings.json": () => import("./vue_ui_rings-DXC1VeX5.js").then((e) => e.n).then((e) => e.default),
|
|
42
|
+
"./themes/vue_ui_scatter.json": () => import("./vue_ui_scatter-D2S2j0ap.js").then((e) => e.n).then((e) => e.default),
|
|
43
|
+
"./themes/vue_ui_spark_trend.json": () => import("./vue_ui_spark_trend-BHMQ6_1p.js").then((e) => e.n).then((e) => e.default),
|
|
44
|
+
"./themes/vue_ui_sparkbar.json": () => import("./vue_ui_sparkbar-BR6hbuDE.js").then((e) => e.n).then((e) => e.default),
|
|
45
|
+
"./themes/vue_ui_sparkgauge.json": () => import("./vue_ui_sparkgauge-xfPRHnMv.js").then((e) => e.n).then((e) => e.default),
|
|
46
|
+
"./themes/vue_ui_sparkhistogram.json": () => import("./vue_ui_sparkhistogram-CJRENZ1C.js").then((e) => e.n).then((e) => e.default),
|
|
47
|
+
"./themes/vue_ui_sparkline.json": () => import("./vue_ui_sparkline-wgk7yO7E.js").then((e) => e.n).then((e) => e.default),
|
|
48
|
+
"./themes/vue_ui_sparkstackbar.json": () => import("./vue_ui_sparkstackbar-C5qZMmAl.js").then((e) => e.n).then((e) => e.default),
|
|
49
|
+
"./themes/vue_ui_stackbar.json": () => import("./vue_ui_stackbar-BW_C3MXw.js").then((e) => e.n).then((e) => e.default),
|
|
50
|
+
"./themes/vue_ui_stackline.json": () => import("./vue_ui_stackline-DpI2LnjO.js").then((e) => e.n).then((e) => e.default),
|
|
51
|
+
"./themes/vue_ui_strip_plot.json": () => import("./vue_ui_strip_plot-8ZelqC5b.js").then((e) => e.n).then((e) => e.default),
|
|
52
|
+
"./themes/vue_ui_table_heatmap.json": () => import("./vue_ui_table_heatmap-BGUjA0WA.js").then((e) => e.n).then((e) => e.default),
|
|
53
|
+
"./themes/vue_ui_table_sparkline.json": () => import("./vue_ui_table_sparkline-i0Q-N_we.js").then((e) => e.n).then((e) => e.default),
|
|
54
|
+
"./themes/vue_ui_thermometer.json": () => import("./vue_ui_thermometer-CuN7Gpez.js").then((e) => e.n).then((e) => e.default),
|
|
55
|
+
"./themes/vue_ui_tiremarks.json": () => import("./vue_ui_tiremarks-A6UHC0c3.js").then((e) => e.n).then((e) => e.default),
|
|
56
|
+
"./themes/vue_ui_treemap.json": () => import("./vue_ui_treemap-BQp06q-g.js").then((e) => e.n).then((e) => e.default),
|
|
57
|
+
"./themes/vue_ui_vertical_bar.json": () => import("./vue_ui_vertical_bar-CJSD1FZS.js").then((e) => e.default),
|
|
58
|
+
"./themes/vue_ui_waffle.json": () => import("./vue_ui_waffle-C_Ev4l7B.js").then((e) => e.n).then((e) => e.default),
|
|
59
|
+
"./themes/vue_ui_wheel.json": () => import("./vue_ui_wheel-DdkTPXJU.js").then((e) => e.n).then((e) => e.default),
|
|
60
|
+
"./themes/vue_ui_word_cloud.json": () => import("./vue_ui_word_cloud-B1PbsYPc.js").then((e) => e.n).then((e) => e.default),
|
|
61
|
+
"./themes/vue_ui_xy.json": () => import("./vue_ui_xy-BYPqfYyx.js").then((e) => e.n).then((e) => e.default),
|
|
62
|
+
"./themes/vue_ui_xy_canvas.json": () => import("./vue_ui_xy_canvas-CMHGNrLf.js").then((e) => e.n).then((e) => e.default)
|
|
63
|
+
})).map(([e, t]) => {
|
|
64
|
+
let n = e.match(/\/themes\/(.+)\.json$/);
|
|
65
|
+
return [n ? n[1] : e, t];
|
|
66
|
+
})), c = /* @__PURE__ */ new Map(), l = async (e) => {
|
|
67
|
+
let t = s[e];
|
|
68
|
+
if (!t) {
|
|
69
|
+
let e = /* @__PURE__ */ Error("ENOENT");
|
|
70
|
+
throw e.code = "ENOENT", e;
|
|
71
|
+
}
|
|
72
|
+
return await t();
|
|
73
|
+
};
|
|
74
|
+
async function u(e) {
|
|
75
|
+
if (!e) return null;
|
|
76
|
+
if (c.has(e)) return c.get(e);
|
|
77
|
+
try {
|
|
78
|
+
let t = await l(e);
|
|
79
|
+
return c.set(e, t), t;
|
|
80
|
+
} catch (t) {
|
|
81
|
+
return console.warn(`[getThemeConfig] Missing theme file: ${e}.json`, t), null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/data-correction.js
|
|
86
|
+
function d(e, t) {
|
|
87
|
+
if (t <= 0 || e.length < 3) return e;
|
|
88
|
+
let n = e.length, r = Array.from({ length: n });
|
|
89
|
+
for (let i = 0; i < n; i += 1) {
|
|
90
|
+
let n = Math.max(0, i - t), a = 0;
|
|
91
|
+
for (let t = n; t <= i; t += 1) a += e[t].value;
|
|
92
|
+
r[i] = a / (i - n + 1);
|
|
93
|
+
}
|
|
94
|
+
let i = Array.from({ length: n });
|
|
95
|
+
for (let r = 0; r < n; r += 1) {
|
|
96
|
+
let a = Math.min(n - 1, r + t), o = 0;
|
|
97
|
+
for (let t = r; t <= a; t += 1) o += e[t].value;
|
|
98
|
+
i[r] = o / (a - r + 1);
|
|
99
|
+
}
|
|
100
|
+
let a = e.map((e) => ({ ...e }));
|
|
101
|
+
for (let e = 1; e < n - 1; e += 1) {
|
|
102
|
+
let t = e / (n - 1);
|
|
103
|
+
a[e].value = (1 - t) * r[e] + t * i[e];
|
|
104
|
+
}
|
|
105
|
+
return a;
|
|
106
|
+
}
|
|
107
|
+
function f(e, t) {
|
|
108
|
+
if (t <= 0 || e.length < 3) return e;
|
|
109
|
+
let n = 1 / (1 + t), r = e.length, i = Array.from({ length: r });
|
|
110
|
+
i[0] = e[0].value;
|
|
111
|
+
for (let t = 1; t < r; t += 1) i[t] = n * e[t].value + (1 - n) * i[t - 1];
|
|
112
|
+
let a = Array.from({ length: r });
|
|
113
|
+
a[r - 1] = e[r - 1].value;
|
|
114
|
+
for (let t = r - 2; t >= 0; --t) a[t] = n * e[t].value + (1 - n) * a[t + 1];
|
|
115
|
+
let o = e.map((e) => ({ ...e }));
|
|
116
|
+
for (let e = 1; e < r - 1; e += 1) {
|
|
117
|
+
let t = e / (r - 1);
|
|
118
|
+
o[e].value = (1 - t) * i[e] + t * a[e];
|
|
119
|
+
}
|
|
120
|
+
return o;
|
|
121
|
+
}
|
|
122
|
+
function p(e, t) {
|
|
123
|
+
let n = e;
|
|
124
|
+
return n = d(n, t.averageWindow), n = f(n, t.smoothingTau), n;
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/useObjectBindings.js
|
|
128
|
+
function m(e, t = [], n = !0) {
|
|
129
|
+
let r = [];
|
|
130
|
+
if (e && typeof e == "object") {
|
|
131
|
+
if (Array.isArray(e) && n) return [];
|
|
132
|
+
for (let i of Object.keys(e)) {
|
|
133
|
+
let a = e[i];
|
|
134
|
+
if (Array.isArray(a) && n) continue;
|
|
135
|
+
let o = t.concat(i);
|
|
136
|
+
a && typeof a == "object" ? r.push(...m(a, o, n)) : r.push(o);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return r;
|
|
140
|
+
}
|
|
141
|
+
function h(e, t) {
|
|
142
|
+
return t.reduce((e, t) => e?.[t], e);
|
|
143
|
+
}
|
|
144
|
+
function g(e, t, r) {
|
|
145
|
+
let i = n(e) ? e.value : e;
|
|
146
|
+
for (let e = 0; e < t.length - 1; e += 1) {
|
|
147
|
+
let n = t[e];
|
|
148
|
+
(!Object.prototype.hasOwnProperty.call(i, n) || typeof i[n] != "object") && (i[n] = {}), i = i[n];
|
|
149
|
+
}
|
|
150
|
+
i[t[t.length - 1]] = r;
|
|
151
|
+
}
|
|
152
|
+
function _(e, t, n, r) {
|
|
153
|
+
let i = t.split(r), a = e;
|
|
154
|
+
for (let e = 0; e < i.length - 1; e += 1) {
|
|
155
|
+
let t = i[e];
|
|
156
|
+
a[t] || (a[t] = {}), a = a[t];
|
|
157
|
+
}
|
|
158
|
+
a[i[i.length - 1]] = n;
|
|
159
|
+
}
|
|
160
|
+
function v(e, n) {
|
|
161
|
+
let { delimiter: a = ".", skipArrays: o = !0 } = n || {}, s = {};
|
|
162
|
+
function c() {
|
|
163
|
+
Object.keys(s).forEach((e) => delete s[e]);
|
|
164
|
+
let n = m(e.value, [], o);
|
|
165
|
+
for (let r of n) {
|
|
166
|
+
let n = r.join(a);
|
|
167
|
+
s[n] = t({
|
|
168
|
+
get: () => h(e.value, r),
|
|
169
|
+
set: (t) => g(e.value, r, t)
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return i(c), c(), r(new Proxy(s, {
|
|
174
|
+
get(n, r) {
|
|
175
|
+
return typeof r == "string" || r.startsWith("__v_") ? r in n ? Reflect.get(n, r) : (_(e.value, r, void 0, a), s[r] = t({
|
|
176
|
+
get: () => h(e.value, r),
|
|
177
|
+
set: (t) => g(e.value, r, t)
|
|
178
|
+
}), r.startsWith("__v_") || console.warn(`Vue Data UI - useObjectBindings: no binding found for key "${r}". Please verify you are binding to a property path which exists on the object.`), "") : !0;
|
|
179
|
+
},
|
|
180
|
+
set(n, r, i) {
|
|
181
|
+
return typeof r == "string" || r.startsWith("__v_") ? r in n ? Reflect.set(n, r, i) : (_(e.value, r, i, a), s[r] = t({
|
|
182
|
+
get: () => h(e.value, r),
|
|
183
|
+
set: (t) => g(e.value, r, t)
|
|
184
|
+
}), r.startsWith("__v_") || console.warn(`Vue Data UI - useObjectBindings: cannot set unknown binding "${r}".`), !0) : !0;
|
|
185
|
+
}
|
|
186
|
+
}));
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
export { o as i, p as n, u as r, v as t };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { computed as e, onMounted as t, onUnmounted as n, ref as r, watch as i, watchEffect as a } from "vue";
|
|
2
|
+
//#region src/usePanZoom.js
|
|
3
|
+
function o(o, s = {
|
|
4
|
+
x: 0,
|
|
5
|
+
y: 0,
|
|
6
|
+
width: 100,
|
|
7
|
+
height: 100
|
|
8
|
+
}, c = 1, l, u = null) {
|
|
9
|
+
let d = r({ ...s }), f = r({ ...d.value }), p = r(1), m = r(!1), h = r(!1), g = r(0), _ = r(null), v = r(1), y = r({
|
|
10
|
+
x: 0,
|
|
11
|
+
y: 0
|
|
12
|
+
}), b = e(() => f.value.x !== d.value.x || f.value.y !== d.value.y || f.value.width !== d.value.width || f.value.height !== d.value.height), x = null;
|
|
13
|
+
function S(e) {
|
|
14
|
+
if (e.length < 2) return 0;
|
|
15
|
+
let t = e[0].clientX - e[1].clientX, n = e[0].clientY - e[1].clientY;
|
|
16
|
+
return Math.hypot(t, n);
|
|
17
|
+
}
|
|
18
|
+
function C(e) {
|
|
19
|
+
let t = o.value;
|
|
20
|
+
if (!t) return {
|
|
21
|
+
x: 0,
|
|
22
|
+
y: 0
|
|
23
|
+
};
|
|
24
|
+
let n = t.createSVGPoint();
|
|
25
|
+
n.x = e.clientX, n.y = e.clientY;
|
|
26
|
+
let r = t.getScreenCTM()?.inverse();
|
|
27
|
+
return r ? n.matrixTransform(r) : {
|
|
28
|
+
x: 0,
|
|
29
|
+
y: 0
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function w(e, t) {
|
|
33
|
+
let n = o.value;
|
|
34
|
+
if (!n) return {
|
|
35
|
+
dx: 0,
|
|
36
|
+
dy: 0
|
|
37
|
+
};
|
|
38
|
+
let r = Math.max(1, n.clientWidth), i = Math.max(1, n.clientHeight), a = f.value.width / r, s = f.value.height / i;
|
|
39
|
+
return {
|
|
40
|
+
dx: e * a,
|
|
41
|
+
dy: t * s
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function T(e) {
|
|
45
|
+
m.value = !0;
|
|
46
|
+
let t = e.touches?.[0] || e;
|
|
47
|
+
y.value = {
|
|
48
|
+
x: t.clientX,
|
|
49
|
+
y: t.clientY
|
|
50
|
+
}, o.value && (o.value.style.cursor = "grabbing");
|
|
51
|
+
}
|
|
52
|
+
function E(e) {
|
|
53
|
+
if (!m.value) return;
|
|
54
|
+
let t = e.touches?.[0] || e, n = t.clientX - y.value.x, r = t.clientY - y.value.y;
|
|
55
|
+
if (n === 0 && r === 0) return;
|
|
56
|
+
let { dx: i, dy: a } = w(n, r);
|
|
57
|
+
f.value.x -= i, f.value.y -= a, y.value = {
|
|
58
|
+
x: t.clientX,
|
|
59
|
+
y: t.clientY
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function D() {
|
|
63
|
+
m.value = !1, o.value && (o.value.style.cursor = "");
|
|
64
|
+
}
|
|
65
|
+
function O(e) {
|
|
66
|
+
u && u(), e.preventDefault(), j(e.deltaY > 0 ? .9 : 1.1, C(e));
|
|
67
|
+
}
|
|
68
|
+
function k(e) {
|
|
69
|
+
e.preventDefault();
|
|
70
|
+
let t = C(e);
|
|
71
|
+
A(1.5 * (1 + c / 100), t);
|
|
72
|
+
}
|
|
73
|
+
function A(e, t) {
|
|
74
|
+
x && cancelAnimationFrame(x);
|
|
75
|
+
let n = p.value, r = n * e, i = null, a = (e) => e < .5 ? 2 * e * e : -1 + (4 - 2 * e) * e, o = (e) => {
|
|
76
|
+
i ??= e;
|
|
77
|
+
let s = Math.min((e - i) / 200, 1);
|
|
78
|
+
j((n + (r - n) * a(s)) / p.value, t), x = s < 1 ? requestAnimationFrame(o) : null;
|
|
79
|
+
};
|
|
80
|
+
requestAnimationFrame(o);
|
|
81
|
+
}
|
|
82
|
+
function j(e, t) {
|
|
83
|
+
let n = p.value * e, r = n / p.value, i = f.value.width / r, a = f.value.height / r, o = (t.x - f.value.x) * (1 - 1 / r), s = (t.y - f.value.y) * (1 - 1 / r);
|
|
84
|
+
f.value.x += o, f.value.y += s, f.value.width = i, f.value.height = a, p.value = n;
|
|
85
|
+
}
|
|
86
|
+
function M(e) {
|
|
87
|
+
e.touches.length === 2 ? (h.value = !0, g.value = S(e.touches), _.value = { ...f.value }, v.value = p.value) : (e.preventDefault(), T(e));
|
|
88
|
+
}
|
|
89
|
+
function N(e) {
|
|
90
|
+
if (h.value && e.touches.length === 2) {
|
|
91
|
+
e.preventDefault();
|
|
92
|
+
let t = S(e.touches);
|
|
93
|
+
if (!g.value || !t) return;
|
|
94
|
+
let n = t / g.value, r = v.value * n / p.value, i = C({
|
|
95
|
+
clientX: (e.touches[0].clientX + e.touches[1].clientX) / 2,
|
|
96
|
+
clientY: (e.touches[0].clientY + e.touches[1].clientY) / 2
|
|
97
|
+
});
|
|
98
|
+
f.value = { ..._.value }, p.value = v.value, j(r, i);
|
|
99
|
+
} else e.preventDefault(), E(e);
|
|
100
|
+
}
|
|
101
|
+
function P(e) {
|
|
102
|
+
e.touches.length < 2 && (h.value = !1), D();
|
|
103
|
+
}
|
|
104
|
+
function F(e = !1) {
|
|
105
|
+
if (!e) {
|
|
106
|
+
f.value = { ...d.value }, p.value = 1;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
let t = { ...f.value }, n = p.value, r = null, i = (e) => {
|
|
110
|
+
r ??= e;
|
|
111
|
+
let a = Math.min((e - r) / 300, 1);
|
|
112
|
+
f.value = {
|
|
113
|
+
x: t.x + (d.value.x - t.x) * a,
|
|
114
|
+
y: t.y + (d.value.y - t.y) * a,
|
|
115
|
+
width: t.width + (d.value.width - t.width) * a,
|
|
116
|
+
height: t.height + (d.value.height - t.height) * a
|
|
117
|
+
}, p.value = n + (1 - n) * a, a < 1 && requestAnimationFrame(i);
|
|
118
|
+
};
|
|
119
|
+
requestAnimationFrame(i);
|
|
120
|
+
}
|
|
121
|
+
function I(e, t = {}) {
|
|
122
|
+
let { overwriteCurrentIfNotZoomed: n = !0 } = t, r = f.value.x !== d.value.x || f.value.y !== d.value.y || f.value.width !== d.value.width || f.value.height !== d.value.height;
|
|
123
|
+
d.value = { ...e }, !r && n && (f.value = { ...d.value }, p.value = 1);
|
|
124
|
+
}
|
|
125
|
+
function L() {
|
|
126
|
+
let e = o.value;
|
|
127
|
+
e && (e.addEventListener("mousedown", T), e.addEventListener("mousemove", E), e.addEventListener("mouseup", D), e.addEventListener("mouseleave", D), e.addEventListener("wheel", O, { passive: !1 }), e.addEventListener("dblclick", k), e.addEventListener("touchstart", M, { passive: !1 }), e.addEventListener("touchmove", N, { passive: !1 }), e.addEventListener("touchend", P), e.addEventListener("touchcancel", P));
|
|
128
|
+
}
|
|
129
|
+
function R() {
|
|
130
|
+
let e = o.value;
|
|
131
|
+
e && (e.removeEventListener("mousedown", T), e.removeEventListener("mousemove", E), e.removeEventListener("mouseup", D), e.removeEventListener("mouseleave", D), e.removeEventListener("wheel", O), e.removeEventListener("dblclick", k), e.removeEventListener("touchstart", M), e.removeEventListener("touchmove", N), e.removeEventListener("touchend", P), e.removeEventListener("touchcancel", P));
|
|
132
|
+
}
|
|
133
|
+
t(() => {
|
|
134
|
+
(!l || l.value) && L();
|
|
135
|
+
}), n(R), a(() => {
|
|
136
|
+
if (l) return l.value ? L() : R(), () => R();
|
|
137
|
+
}), i(o, () => {
|
|
138
|
+
R(), (!l || l.value) && L();
|
|
139
|
+
});
|
|
140
|
+
function z(e, t = !1) {
|
|
141
|
+
let n = {
|
|
142
|
+
x: f.value.x + f.value.width / 2,
|
|
143
|
+
y: f.value.y + f.value.height / 2
|
|
144
|
+
};
|
|
145
|
+
t ? A(e, n) : j(e, n);
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
viewBox: f,
|
|
149
|
+
resetZoom: F,
|
|
150
|
+
isZoom: b,
|
|
151
|
+
setInitialViewBox: I,
|
|
152
|
+
scale: p,
|
|
153
|
+
zoomByFactor: z
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
export { o as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { onBeforeUnmount as e, onMounted as t, ref as n } from "vue";
|
|
2
|
+
//#region src/usePrefersMotion.js
|
|
3
|
+
function r() {
|
|
4
|
+
let r = n(!1);
|
|
5
|
+
return t(() => {
|
|
6
|
+
let t = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
|
|
7
|
+
r.value = t.matches;
|
|
8
|
+
};
|
|
9
|
+
n(), t.addEventListener("change", n), e(() => {
|
|
10
|
+
t.removeEventListener("change", n);
|
|
11
|
+
});
|
|
12
|
+
}), r;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ref as e } from "vue";
|
|
2
|
+
//#region src/usePrinter.js
|
|
3
|
+
function t({ elementId: t, fileName: n, canPrint: r = !0, options: i }) {
|
|
4
|
+
let a = e(!1), o = e(!1), s = e(null);
|
|
5
|
+
async function c() {
|
|
6
|
+
!r || a.value || (a.value = !0, clearTimeout(s.value), s.value = setTimeout(async () => {
|
|
7
|
+
if (r) try {
|
|
8
|
+
let { default: e } = await import("./pdf-Ey2KFETK.js");
|
|
9
|
+
await e({
|
|
10
|
+
domElement: document.getElementById(t),
|
|
11
|
+
fileName: n,
|
|
12
|
+
orientation: i.orientation,
|
|
13
|
+
overflowTolerance: i.overflowTolerance,
|
|
14
|
+
scale: i.scale,
|
|
15
|
+
aspectRatio: i.aspectRatio ?? null
|
|
16
|
+
});
|
|
17
|
+
} catch (e) {
|
|
18
|
+
console.error("Error generating PDF:", e);
|
|
19
|
+
} finally {
|
|
20
|
+
a.value = !1;
|
|
21
|
+
}
|
|
22
|
+
}, 100));
|
|
23
|
+
}
|
|
24
|
+
async function l() {
|
|
25
|
+
!r || o.value || (o.value = !0, clearTimeout(s.value), s.value = setTimeout(async () => {
|
|
26
|
+
if (r) try {
|
|
27
|
+
let { default: e } = await import("./img-NMY-_LiJ.js").then((e) => e.n);
|
|
28
|
+
await e({
|
|
29
|
+
domElement: document.getElementById(t),
|
|
30
|
+
fileName: n,
|
|
31
|
+
format: "png",
|
|
32
|
+
options: i
|
|
33
|
+
});
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error("Error generating image:", e);
|
|
36
|
+
} finally {
|
|
37
|
+
o.value = !1;
|
|
38
|
+
}
|
|
39
|
+
}, 100));
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
generatePdf: c,
|
|
43
|
+
generateImage: l,
|
|
44
|
+
isPrinting: a,
|
|
45
|
+
isImaging: o
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/useResponsive.js
|
|
2
|
+
function e({ chart: e, title: t = null, slicer: n = null, legend: r = null, source: i = null, noTitle: a = null, padding: o = null }) {
|
|
3
|
+
let s = 0, c = 0, l = 0, u = 0, d = 0, f = 0, p = 0, m = 0, h = 0;
|
|
4
|
+
if (e) {
|
|
5
|
+
let { height: g, width: _ } = e.parentNode.getBoundingClientRect();
|
|
6
|
+
l = t ? t.getBoundingClientRect().height : 0, u = n ? n.getBoundingClientRect().height : 0, d = r ? r.getBoundingClientRect().height : 0, f = i ? i.getBoundingClientRect().height : 0, p = a ? a.getBoundingClientRect().height : 0, o ? (m = o.top + o.bottom, h = o.right + o.left) : (m = 0, h = 0), s = g - l - u - d - f - p - m, c = _ - h;
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
width: c,
|
|
10
|
+
height: s,
|
|
11
|
+
heightTitle: l,
|
|
12
|
+
heightNoTitle: p,
|
|
13
|
+
heightSource: f,
|
|
14
|
+
heightNoTitle: p,
|
|
15
|
+
heightLegend: d
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { e as t };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { nextTick as e, onBeforeUnmount as t, ref as n } from "vue";
|
|
2
|
+
//#region src/useStableElementSize.js
|
|
3
|
+
function r(e, t) {
|
|
4
|
+
return Number.isFinite(e) && Number.isFinite(t);
|
|
5
|
+
}
|
|
6
|
+
function i(e, t) {
|
|
7
|
+
return e.width === t.width && e.height === t.height;
|
|
8
|
+
}
|
|
9
|
+
function a({ elementRef: a, minimumWidth: o = 2, minimumHeight: s = 2, stableFramesRequired: c = 2, once: l = !1, onSizeAccepted: u }) {
|
|
10
|
+
let d = n(0), f = n(0), p = n(!1), m = null, h = 0, g = {
|
|
11
|
+
width: 0,
|
|
12
|
+
height: 0
|
|
13
|
+
}, _ = 0, v = !1;
|
|
14
|
+
function y() {
|
|
15
|
+
h &&= (cancelAnimationFrame(h), 0);
|
|
16
|
+
}
|
|
17
|
+
function b(e, t) {
|
|
18
|
+
return !(!r(e, t) || e < o || t < s);
|
|
19
|
+
}
|
|
20
|
+
function x() {
|
|
21
|
+
y(), m &&= (m.disconnect(), null);
|
|
22
|
+
}
|
|
23
|
+
function S(e, t) {
|
|
24
|
+
d.value = e, f.value = t, p.value = !0, typeof u == "function" && u({
|
|
25
|
+
width: e,
|
|
26
|
+
height: t
|
|
27
|
+
}), v = !0, l && x();
|
|
28
|
+
}
|
|
29
|
+
function C(e, t) {
|
|
30
|
+
if (l && v) return;
|
|
31
|
+
if (!b(e, t)) {
|
|
32
|
+
p.value = !1, _ = 0, g = {
|
|
33
|
+
width: 0,
|
|
34
|
+
height: 0
|
|
35
|
+
};
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
let n = {
|
|
39
|
+
width: e,
|
|
40
|
+
height: t
|
|
41
|
+
};
|
|
42
|
+
i(n, g) ? _ += 1 : (_ = 1, g = n), _ >= c && S(e, t);
|
|
43
|
+
}
|
|
44
|
+
function w() {
|
|
45
|
+
let e = a.value;
|
|
46
|
+
if (!e) {
|
|
47
|
+
p.value = !1;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
let t = e.getBoundingClientRect();
|
|
51
|
+
C(Math.round(t.width), Math.round(t.height));
|
|
52
|
+
}
|
|
53
|
+
function T(e = 2) {
|
|
54
|
+
y();
|
|
55
|
+
let t = e, n = () => {
|
|
56
|
+
w(), --t, h = t > 0 ? requestAnimationFrame(n) : 0;
|
|
57
|
+
};
|
|
58
|
+
h = requestAnimationFrame(n);
|
|
59
|
+
}
|
|
60
|
+
async function E() {
|
|
61
|
+
await e(), T(2);
|
|
62
|
+
let t = a.value;
|
|
63
|
+
t && (m &&= (m.disconnect(), null), m = new ResizeObserver(() => {
|
|
64
|
+
l && v || (p.value = !1, _ = 0, T(2));
|
|
65
|
+
}), m.observe(t));
|
|
66
|
+
}
|
|
67
|
+
return t(x), {
|
|
68
|
+
width: d,
|
|
69
|
+
height: f,
|
|
70
|
+
isStable: p,
|
|
71
|
+
start: E,
|
|
72
|
+
stop: x,
|
|
73
|
+
measureOnce: w
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
export { a as t };
|