vue-data-ui 3.17.13 → 3.18.1
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-Cj6W6Xbi.js +116 -0
- package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
- package/dist/BaseIcon-CEmt3Ifx.js +499 -0
- package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
- package/dist/ColorPicker-DS_QkH3W.js +255 -0
- package/dist/DataTable-BvDJEAma.js +150 -0
- package/dist/Legend-Gg5Q4Clb.js +114 -0
- package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
- package/dist/PackageVersion-DhDKg-ez.js +11 -0
- package/dist/PenAndPaper-DwpL8Z0l.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-DEGOZ6GG.js +141 -0
- package/dist/Slicer-BlfyiHHD.js +1144 -0
- package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
- package/dist/SparkTooltip-c2DL7gqD.js +93 -0
- package/dist/Title-__gWq2g6.js +87 -0
- package/dist/Tooltip-B7lmdbac.js +307 -0
- package/dist/UserOptions-DMw8EZEo.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-9WSt6hXe.js +237 -0
- package/dist/exposedLib-CwWU4zv-.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-BjOr008R.js +74 -0
- package/dist/labelUtils-Cr97N8E1.js +19 -0
- package/dist/lib-BkiwukKO.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-DSXSFUnK.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 +4775 -627
- 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-dp-3Gg97.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-BV0kTCnO.js +7431 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-Ck4hsrpu.js +10 -0
- package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-X0yWOynH.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-DIh8ayZc.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
- package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
- package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
- package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
- package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
- package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
- package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
- package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
- package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
- package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
- package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
- package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
- package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
- package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
- package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
- package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
- package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
- package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
- package/dist/vue-ui-flow-OK563Z46.js +1223 -0
- package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
- package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
- package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
- package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
- package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
- package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
- package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
- package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
- package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
- package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
- package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
- package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
- package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.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-DLD_ZR9M.js +1966 -0
- package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
- package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
- package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
- package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
- package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
- package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
- package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
- package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
- package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
- package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
- package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
- package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
- package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
- package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
- package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
- package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
- package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
- package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
- package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
- package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
- package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
- package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
- package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
- package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
- package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
- package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
- package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
- package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
- package/dist/vue-ui-world-CEevuFbk.js +14252 -0
- package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
- package/dist/vue-ui-xy-canvas-D2f0d45c.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,1556 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, J as r, S as i, St as a, Vt as o, X as s, ft as c, i as l, nt as u, ot as d, pt as f, r as p, t as ee, v as m, zt as te } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as ne } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
+
import { t as re } from "./useConfig-BV0kTCnO.js";
|
|
5
|
+
import { t as ie } from "./usePrinter-X0yWOynH.js";
|
|
6
|
+
import { n as ae, t as oe } from "./BaseScanner-C7dmAref.js";
|
|
7
|
+
import { t as se } from "./useSvgExport-Dtu973wa.js";
|
|
8
|
+
import { t as ce } from "./useNestedProp-Ck4hsrpu.js";
|
|
9
|
+
import { t as le } from "./useThemeCheck-rFK9Zlb_.js";
|
|
10
|
+
import { t as ue } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
11
|
+
import { t as de } from "./img-BjOr008R.js";
|
|
12
|
+
import { n as fe } from "./Title-__gWq2g6.js";
|
|
13
|
+
import { t as pe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
14
|
+
import { c as me } from "./canvas-lib-DTaADQOK.js";
|
|
15
|
+
import { t as he } from "./useResponsive-CrAInupd.js";
|
|
16
|
+
import { t as ge } from "./vue-ui-accordion-cVv18nTV.js";
|
|
17
|
+
import { t as _e } from "./A11yDataTable-q2-8fSlJ.js";
|
|
18
|
+
import { t as ve } from "./useUserOptionState-CjPJPTg2.js";
|
|
19
|
+
import { t as ye } from "./useChartAccessibility-Do37qcw2.js";
|
|
20
|
+
import { t as be } from "./useTableResponsive-DrM1xqII.js";
|
|
21
|
+
import { t as xe } from "./vue_ui_heatmap-BqPP3J4M.js";
|
|
22
|
+
import { Fragment as h, computed as g, createBlock as Se, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Ce, createTextVNode as we, createVNode as Te, defineAsyncComponent as b, guardReactiveProps as x, mergeProps as Ee, nextTick as S, normalizeClass as De, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Oe, onMounted as ke, openBlock as T, reactive as Ae, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as je, shallowRef as Me, toDisplayString as k, toRefs as Ne, unref as A, useCssVars as Pe, vShow as Fe, watch as Ie, watchEffect as Le, withCtx as j, withDirectives as Re, withKeys as ze } from "vue";
|
|
23
|
+
//#region src/useLabelObserverEfffect.js
|
|
24
|
+
function Be({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
|
|
25
|
+
if (r) return;
|
|
26
|
+
let o = (e) => {
|
|
27
|
+
if (!e) return;
|
|
28
|
+
let r;
|
|
29
|
+
if (typeof e.getBBox == "function") try {
|
|
30
|
+
let t = e.getBBox();
|
|
31
|
+
r = n === "width" ? t.width : t.height;
|
|
32
|
+
} catch {}
|
|
33
|
+
if (typeof r != "number" || Number.isNaN(r)) try {
|
|
34
|
+
let t = e.getBoundingClientRect();
|
|
35
|
+
r = n === "width" ? t.width : t.height;
|
|
36
|
+
} catch {
|
|
37
|
+
r = void 0;
|
|
38
|
+
}
|
|
39
|
+
typeof r == "number" && !Number.isNaN(r) && t(r);
|
|
40
|
+
};
|
|
41
|
+
Le((t) => {
|
|
42
|
+
let n = e.value;
|
|
43
|
+
if (!n) return;
|
|
44
|
+
let r = !1;
|
|
45
|
+
(async () => {
|
|
46
|
+
await S();
|
|
47
|
+
for (let t = 0; t < i; t += 1) {
|
|
48
|
+
if (r) return;
|
|
49
|
+
await new Promise((e) => requestAnimationFrame(e));
|
|
50
|
+
let t = e.value;
|
|
51
|
+
if (!t) return;
|
|
52
|
+
o(t);
|
|
53
|
+
}
|
|
54
|
+
if (a && typeof document < "u" && document.fonts && document.fonts.ready) {
|
|
55
|
+
try {
|
|
56
|
+
await document.fonts.ready;
|
|
57
|
+
} catch {}
|
|
58
|
+
!r && e.value && o(e.value);
|
|
59
|
+
}
|
|
60
|
+
})();
|
|
61
|
+
let s = new MutationObserver(() => {
|
|
62
|
+
e.value && requestAnimationFrame(() => {
|
|
63
|
+
e.value && o(e.value);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
s.observe(n, {
|
|
67
|
+
childList: !0,
|
|
68
|
+
subtree: !0,
|
|
69
|
+
characterData: !0,
|
|
70
|
+
attributes: !0,
|
|
71
|
+
attributeFilter: [
|
|
72
|
+
"transform",
|
|
73
|
+
"style",
|
|
74
|
+
"class"
|
|
75
|
+
]
|
|
76
|
+
});
|
|
77
|
+
let c;
|
|
78
|
+
if (typeof ResizeObserver < "u") {
|
|
79
|
+
let t = n.ownerSVGElement ? n.ownerSVGElement : n;
|
|
80
|
+
c = new ResizeObserver(() => {
|
|
81
|
+
let t = e.value;
|
|
82
|
+
t && o(t);
|
|
83
|
+
}), c.observe(t);
|
|
84
|
+
}
|
|
85
|
+
t(() => {
|
|
86
|
+
r = !0, s.disconnect(), c && c.disconnect();
|
|
87
|
+
});
|
|
88
|
+
}, { flush: "post" });
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/directives/vFitText.js
|
|
92
|
+
var Ve = {
|
|
93
|
+
mounted(e, t) {
|
|
94
|
+
He(e, t.value);
|
|
95
|
+
},
|
|
96
|
+
updated(e, t) {
|
|
97
|
+
He(e, t.value);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
function He(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, index: a, reportRotation: o, reportHide: s, rotateAll: c, hideAll: l }) {
|
|
101
|
+
e.removeAttribute("transform"), e.removeAttribute("visibility");
|
|
102
|
+
let u = !1, d = !1;
|
|
103
|
+
e.setAttribute("font-size", r);
|
|
104
|
+
let f = e.getComputedTextLength();
|
|
105
|
+
if (f <= t) o(a, !1), s(a, !1);
|
|
106
|
+
else {
|
|
107
|
+
let n = Math.floor(r * t / f);
|
|
108
|
+
n >= i ? (e.setAttribute("font-size", n), o(a, !1), s(a, !1)) : (o(a, !0), s(a, !1), u = !0);
|
|
109
|
+
}
|
|
110
|
+
if (c && (u = !0), u) {
|
|
111
|
+
e.setAttribute("font-size", r);
|
|
112
|
+
let t = e.getBBox(), o = t.x + t.width / 2, c = t.y + t.height / 2;
|
|
113
|
+
e.setAttribute("transform", `rotate(-90 ${o} ${c})`);
|
|
114
|
+
let l = e.getBBox().width;
|
|
115
|
+
if (l <= n) s(a, !1);
|
|
116
|
+
else {
|
|
117
|
+
let t = Math.floor(r * n / l);
|
|
118
|
+
t >= i ? (e.setAttribute("font-size", t), s(a, !1)) : (d = !0, s(a, !0));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
(l || d) && e.setAttribute("visibility", "hidden");
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/vue-ui-heatmap.vue
|
|
125
|
+
var Ue = /* @__PURE__ */ e({ default: () => xt }), We = ["id"], Ge = ["id"], Ke = [
|
|
126
|
+
"xmlns",
|
|
127
|
+
"aria-describedby",
|
|
128
|
+
"viewBox"
|
|
129
|
+
], qe = [
|
|
130
|
+
"x",
|
|
131
|
+
"y",
|
|
132
|
+
"width",
|
|
133
|
+
"height"
|
|
134
|
+
], Je = [
|
|
135
|
+
"x",
|
|
136
|
+
"y",
|
|
137
|
+
"height",
|
|
138
|
+
"width",
|
|
139
|
+
"fill",
|
|
140
|
+
"stroke",
|
|
141
|
+
"stroke-width"
|
|
142
|
+
], Ye = [
|
|
143
|
+
"x",
|
|
144
|
+
"y",
|
|
145
|
+
"height",
|
|
146
|
+
"width",
|
|
147
|
+
"fill",
|
|
148
|
+
"stroke",
|
|
149
|
+
"stroke-width"
|
|
150
|
+
], Xe = [
|
|
151
|
+
"x",
|
|
152
|
+
"y",
|
|
153
|
+
"width",
|
|
154
|
+
"height",
|
|
155
|
+
"fill",
|
|
156
|
+
"stroke",
|
|
157
|
+
"stroke-width"
|
|
158
|
+
], Ze = [
|
|
159
|
+
"data-a11y-cell-id",
|
|
160
|
+
"x",
|
|
161
|
+
"y",
|
|
162
|
+
"width",
|
|
163
|
+
"height",
|
|
164
|
+
"fill",
|
|
165
|
+
"stroke",
|
|
166
|
+
"stroke-width",
|
|
167
|
+
"aria-label",
|
|
168
|
+
"onMouseover",
|
|
169
|
+
"onMouseout",
|
|
170
|
+
"onClick"
|
|
171
|
+
], Qe = [
|
|
172
|
+
"font-size",
|
|
173
|
+
"font-weight",
|
|
174
|
+
"fill",
|
|
175
|
+
"x",
|
|
176
|
+
"y"
|
|
177
|
+
], $e = [
|
|
178
|
+
"x",
|
|
179
|
+
"y",
|
|
180
|
+
"width",
|
|
181
|
+
"height",
|
|
182
|
+
"fill",
|
|
183
|
+
"stroke",
|
|
184
|
+
"stroke-width"
|
|
185
|
+
], et = [
|
|
186
|
+
"x",
|
|
187
|
+
"y",
|
|
188
|
+
"width",
|
|
189
|
+
"height",
|
|
190
|
+
"fill",
|
|
191
|
+
"stroke",
|
|
192
|
+
"stroke-width"
|
|
193
|
+
], tt = [
|
|
194
|
+
"font-size",
|
|
195
|
+
"fill",
|
|
196
|
+
"x",
|
|
197
|
+
"y",
|
|
198
|
+
"font-weight"
|
|
199
|
+
], nt = [
|
|
200
|
+
"font-size",
|
|
201
|
+
"fill",
|
|
202
|
+
"x",
|
|
203
|
+
"y",
|
|
204
|
+
"font-weight"
|
|
205
|
+
], rt = [
|
|
206
|
+
"text-anchor",
|
|
207
|
+
"font-size",
|
|
208
|
+
"fill",
|
|
209
|
+
"font-weight",
|
|
210
|
+
"transform"
|
|
211
|
+
], it = [
|
|
212
|
+
"text-anchor",
|
|
213
|
+
"font-size",
|
|
214
|
+
"fill",
|
|
215
|
+
"font-weight",
|
|
216
|
+
"transform"
|
|
217
|
+
], at = { key: 6 }, ot = [
|
|
218
|
+
"x",
|
|
219
|
+
"y",
|
|
220
|
+
"width",
|
|
221
|
+
"height",
|
|
222
|
+
"stroke",
|
|
223
|
+
"stroke-width"
|
|
224
|
+
], st = { key: 7 }, ct = [
|
|
225
|
+
"x1",
|
|
226
|
+
"x2",
|
|
227
|
+
"y1",
|
|
228
|
+
"y2",
|
|
229
|
+
"stroke",
|
|
230
|
+
"stroke-width",
|
|
231
|
+
"stroke-dasharray"
|
|
232
|
+
], lt = [
|
|
233
|
+
"x1",
|
|
234
|
+
"x2",
|
|
235
|
+
"y1",
|
|
236
|
+
"y2",
|
|
237
|
+
"stroke",
|
|
238
|
+
"stroke-width",
|
|
239
|
+
"stroke-dasharray"
|
|
240
|
+
], ut = { class: "vue-ui-heatmap-legend-gauge-right" }, dt = ["data-value"], ft = { class: "vue-ui-heatmap-gauge-indicator-value" }, pt = {
|
|
241
|
+
key: 1,
|
|
242
|
+
style: {
|
|
243
|
+
position: "absolute",
|
|
244
|
+
top: "100%",
|
|
245
|
+
left: "0",
|
|
246
|
+
width: "100%"
|
|
247
|
+
},
|
|
248
|
+
"data-dom-to-png-ignore": "",
|
|
249
|
+
"aria-hidden": "true"
|
|
250
|
+
}, mt = {
|
|
251
|
+
key: 5,
|
|
252
|
+
class: "vue-data-ui-watermark"
|
|
253
|
+
}, ht = { class: "vue-ui-data-table" }, gt = { key: 0 }, _t = ["data-cell"], vt = { style: {
|
|
254
|
+
display: "flex",
|
|
255
|
+
"align-items": "center",
|
|
256
|
+
gap: "5px",
|
|
257
|
+
"justify-content": "flex-end",
|
|
258
|
+
width: "100%",
|
|
259
|
+
"padding-right": "3px"
|
|
260
|
+
} }, yt = ["data-cell"], bt = { style: {
|
|
261
|
+
display: "flex",
|
|
262
|
+
"align-items": "center",
|
|
263
|
+
gap: "5px",
|
|
264
|
+
"justify-content": "flex-end",
|
|
265
|
+
width: "100%",
|
|
266
|
+
"padding-right": "3px"
|
|
267
|
+
} }, xt = /* @__PURE__ */ pe({
|
|
268
|
+
__name: "vue-ui-heatmap",
|
|
269
|
+
props: {
|
|
270
|
+
config: {
|
|
271
|
+
type: Object,
|
|
272
|
+
default() {
|
|
273
|
+
return {};
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
dataset: {
|
|
277
|
+
type: Array,
|
|
278
|
+
default() {
|
|
279
|
+
return [];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
emits: ["selectDatapoint", "copyAlt"],
|
|
284
|
+
setup(e, { expose: pe, emit: He }) {
|
|
285
|
+
Pe((e) => ({ v7acc16fb: e.tdo }));
|
|
286
|
+
let Ue = b(() => import("./Tooltip-B7lmdbac.js")), xt = b(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), St = b(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Ct = b(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), wt = b(() => import("./PackageVersion-DhDKg-ez.js").then((e) => e.t)), Tt = b(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), { vue_ui_heatmap: Et } = re(), { isThemeValid: Dt, warnInvalidTheme: Ot } = le(), M = e, kt = He, At = g({
|
|
287
|
+
get() {
|
|
288
|
+
return !!M.dataset && M.dataset.length;
|
|
289
|
+
},
|
|
290
|
+
set(e) {
|
|
291
|
+
return e;
|
|
292
|
+
}
|
|
293
|
+
}), jt = E(n()), N = E(null), Mt = E(!1), Nt = E(""), Pt = E(void 0), P = E(null), Ft = E(0), It = E(null), Lt = E(0), Rt = E(null), zt = E(null), Bt = E(null), Vt = E(!1), Ht = E(!1), Ut = E(null), Wt = E(null), Gt = E(null), Kt = E(null), qt = E(null), Jt = E(null), Yt = E(null), Xt = E(null), Zt = E(null), F = Me(null), I = E(null), Qt = E(null), $t = E({
|
|
294
|
+
x: 0,
|
|
295
|
+
y: 0
|
|
296
|
+
}), en = E("pointer"), tn = E(!1), L = E(fn()), nn = g(() => L.value.userOptions.useCursorPointer);
|
|
297
|
+
function rn() {
|
|
298
|
+
let e = Array(7).fill("_"), t = [], n = e.length;
|
|
299
|
+
for (let r = 0; r < n; r += 1) {
|
|
300
|
+
let n = [];
|
|
301
|
+
for (let e = 0; e < 14; e += 1) n.push(r + e * 2);
|
|
302
|
+
t.push({
|
|
303
|
+
name: `${e[r]}`,
|
|
304
|
+
values: n
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
return t;
|
|
308
|
+
}
|
|
309
|
+
let an = g(() => te({
|
|
310
|
+
defaultConfig: {
|
|
311
|
+
table: { show: !1 },
|
|
312
|
+
userOptions: { show: !1 },
|
|
313
|
+
style: {
|
|
314
|
+
backgroundColor: "#99999930",
|
|
315
|
+
layout: {
|
|
316
|
+
cells: {
|
|
317
|
+
colors: {
|
|
318
|
+
hot: "#999999",
|
|
319
|
+
cold: "#CACACA"
|
|
320
|
+
},
|
|
321
|
+
columnTotal: { value: { show: !1 } },
|
|
322
|
+
rowTotal: { value: { show: !1 } },
|
|
323
|
+
value: { show: !1 }
|
|
324
|
+
},
|
|
325
|
+
dataLabels: {
|
|
326
|
+
xAxis: { show: !1 },
|
|
327
|
+
yAxis: { show: !1 }
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
userConfig: L.value.skeletonConfig ?? {}
|
|
333
|
+
})), { loading: on, FINAL_DATASET: R, manualLoading: sn } = ae({
|
|
334
|
+
...Ne(M),
|
|
335
|
+
FINAL_CONFIG: L,
|
|
336
|
+
prepareConfig: fn,
|
|
337
|
+
callback: () => {
|
|
338
|
+
Promise.resolve().then(async () => {
|
|
339
|
+
await S(), N.value && o(N.value, {
|
|
340
|
+
delta: .1,
|
|
341
|
+
delay: 250
|
|
342
|
+
});
|
|
343
|
+
});
|
|
344
|
+
},
|
|
345
|
+
skeletonDataset: M.config?.skeletonDataset ?? rn(),
|
|
346
|
+
skeletonConfig: te({
|
|
347
|
+
defaultConfig: L.value,
|
|
348
|
+
userConfig: an.value
|
|
349
|
+
})
|
|
350
|
+
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = ve({ config: L.value }), { svgRef: z } = ye({ config: L.value.style.title });
|
|
351
|
+
function dn(e) {
|
|
352
|
+
ln(e);
|
|
353
|
+
}
|
|
354
|
+
function fn() {
|
|
355
|
+
let e = ce({
|
|
356
|
+
userConfig: M.config,
|
|
357
|
+
defaultConfig: Et
|
|
358
|
+
}), t = {}, n = e.theme;
|
|
359
|
+
if (n) if (!Dt.value(e)) Ot(e), t = e;
|
|
360
|
+
else {
|
|
361
|
+
let r = ce({
|
|
362
|
+
userConfig: xe[n] || M.config,
|
|
363
|
+
defaultConfig: e
|
|
364
|
+
});
|
|
365
|
+
t = { ...ce({
|
|
366
|
+
userConfig: M.config,
|
|
367
|
+
defaultConfig: r
|
|
368
|
+
}) };
|
|
369
|
+
}
|
|
370
|
+
else t = e;
|
|
371
|
+
return t;
|
|
372
|
+
}
|
|
373
|
+
Ie(() => M.config, (e) => {
|
|
374
|
+
on.value || (L.value = fn()), cn.value = !L.value.userOptions.showOnChartHover, bn(), Lt.value += 1, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.tooltip.show, xn.value = L.value.style.layout.width, Sn.value = L.value.style.layout.height;
|
|
375
|
+
}, { deep: !0 }), Ie(() => M.dataset, (e) => {
|
|
376
|
+
Array.isArray(e) && e.length > 0 && (sn.value = !1), bn();
|
|
377
|
+
}, { deep: !0 });
|
|
378
|
+
let { isPrinting: pn, isImaging: mn, generatePdf: hn, generateImage: gn } = ie({
|
|
379
|
+
elementId: `heatmap__${jt.value}`,
|
|
380
|
+
fileName: L.value.style.title.text || "vue-ui-heatmap",
|
|
381
|
+
options: L.value.userOptions.print
|
|
382
|
+
}), _n = g(() => L.value.userOptions.show && !L.value.style.title.text), B = E({
|
|
383
|
+
showTable: L.value.table.show,
|
|
384
|
+
showTooltip: L.value.style.tooltip.show
|
|
385
|
+
});
|
|
386
|
+
Ie(L, () => {
|
|
387
|
+
B.value = {
|
|
388
|
+
showTable: L.value.table.show,
|
|
389
|
+
showTooltip: L.value.style.tooltip.show
|
|
390
|
+
};
|
|
391
|
+
}, { immediate: !0 });
|
|
392
|
+
let vn = g(() => L.value.table.responsiveBreakpoint), V = E(null), yn = g(() => !!L.value.debug);
|
|
393
|
+
function bn() {
|
|
394
|
+
if (a(M.dataset) && (s({
|
|
395
|
+
componentName: "VueUiHeatmap",
|
|
396
|
+
type: "dataset",
|
|
397
|
+
debug: yn.value
|
|
398
|
+
}), At.value = !1, sn.value = !0), a(M.dataset) || (sn.value = L.value.loading), L.value.responsive) {
|
|
399
|
+
let e = me(() => {
|
|
400
|
+
let { width: e, height: t } = he({
|
|
401
|
+
chart: N.value,
|
|
402
|
+
title: L.value.style.title.text ? Ut.value : null,
|
|
403
|
+
source: Zt.value,
|
|
404
|
+
noTitle: Wt.value
|
|
405
|
+
});
|
|
406
|
+
requestAnimationFrame(() => {
|
|
407
|
+
xn.value = e, Sn.value = t;
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
V.value && (F.value && V.value.unobserve(F.value), V.value.disconnect()), V.value = new ResizeObserver(e), F.value = N.value.parentNode, V.value.observe(F.value);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
Oe(() => {
|
|
414
|
+
V.value && (F.value && V.value.unobserve(F.value), V.value.disconnect());
|
|
415
|
+
}), ke(() => {
|
|
416
|
+
bn();
|
|
417
|
+
});
|
|
418
|
+
let H = g(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))), xn = E(L.value.style.layout.width), Sn = E(L.value.style.layout.height), U = g(() => ({
|
|
419
|
+
width: Math.max(10, xn.value),
|
|
420
|
+
height: Math.max(10, Sn.value)
|
|
421
|
+
})), Cn = E(0);
|
|
422
|
+
Be({
|
|
423
|
+
elementRef: Jt,
|
|
424
|
+
callback: me((e) => {
|
|
425
|
+
e !== Cn.value && (Cn.value = e);
|
|
426
|
+
}, 100),
|
|
427
|
+
attr: "height"
|
|
428
|
+
});
|
|
429
|
+
let W = E(0);
|
|
430
|
+
Be({
|
|
431
|
+
elementRef: Kt,
|
|
432
|
+
callback: me((e) => {
|
|
433
|
+
e !== W.value && (W.value = e);
|
|
434
|
+
}, 100),
|
|
435
|
+
attr: "width"
|
|
436
|
+
});
|
|
437
|
+
let wn = E(0);
|
|
438
|
+
Be({
|
|
439
|
+
elementRef: Yt,
|
|
440
|
+
callback: me((e) => {
|
|
441
|
+
e !== wn.value && (wn.value = e);
|
|
442
|
+
}, 100),
|
|
443
|
+
attr: "height"
|
|
444
|
+
}), Oe(() => {
|
|
445
|
+
Cn.value = 0, W.value = 0, wn.value = 0;
|
|
446
|
+
});
|
|
447
|
+
let G = g(() => Math.min(U.value.height, U.value.width) / 1e3 * L.value.style.layout.cells.spacing), K = g(() => {
|
|
448
|
+
let e = 0;
|
|
449
|
+
L.value.style.legend.show && (e = L.value.style.legend.width);
|
|
450
|
+
let t = L.value.style.layout.padding, n = L.value.style.layout.dataLabels.xAxis.fontSize / 3, r = L.value.style.layout.dataLabels.xAxis.fontSize / 2, i = U.value.height - t.top - t.bottom - Cn.value - n, a = U.value.width / 60, o = {
|
|
451
|
+
x: G.value * H.value,
|
|
452
|
+
y: G.value * ((R.value || []).length + 1)
|
|
453
|
+
}, s = U.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y - wn.value - r - L.value.style.layout.cells.columnTotal.value.offsetY, l = {
|
|
454
|
+
width: Math.max(3, s / H.value),
|
|
455
|
+
height: Math.max(3, c / (R.value.length ?? 1))
|
|
456
|
+
};
|
|
457
|
+
return {
|
|
458
|
+
top: t.top + Cn.value + a + n,
|
|
459
|
+
topLabelsHeight: Cn.value,
|
|
460
|
+
sumCellXHeight: a,
|
|
461
|
+
height: c,
|
|
462
|
+
left: t.left + W.value + a / 2,
|
|
463
|
+
right: t.right - e,
|
|
464
|
+
bottom: U.value.height - t.bottom - wn.value,
|
|
465
|
+
width: s,
|
|
466
|
+
cellSize: l
|
|
467
|
+
};
|
|
468
|
+
}), q = g(() => Math.max(...R.value.flatMap((e) => e.values))), Tn = g(() => Math.min(...R.value.flatMap((e) => e.values))), J = g(() => {
|
|
469
|
+
let e = R.value.flatMap((e) => e.values);
|
|
470
|
+
return e.reduce((e, t) => e + t, 0) / e.length;
|
|
471
|
+
}), En = E([]), Dn = E([]), On = 0;
|
|
472
|
+
Le(() => {
|
|
473
|
+
let e = ++On;
|
|
474
|
+
(async () => {
|
|
475
|
+
let t = L.value.style.layout.dataLabels.yAxis, n = await ne({
|
|
476
|
+
values: t.values.length ? t.values : R.value.map((e) => e.name),
|
|
477
|
+
maxDatapoints: R.value.length,
|
|
478
|
+
formatter: t.datetimeFormatter,
|
|
479
|
+
start: 0,
|
|
480
|
+
end: R.value.length
|
|
481
|
+
});
|
|
482
|
+
e === On && (En.value = n);
|
|
483
|
+
})();
|
|
484
|
+
});
|
|
485
|
+
let kn = 0;
|
|
486
|
+
Le(() => {
|
|
487
|
+
let e = ++kn;
|
|
488
|
+
(async () => {
|
|
489
|
+
let t = L.value.style.layout.dataLabels.xAxis, n = await ne({
|
|
490
|
+
values: t.values,
|
|
491
|
+
maxDatapoints: H.value,
|
|
492
|
+
formatter: t.datetimeFormatter,
|
|
493
|
+
start: 0,
|
|
494
|
+
end: H.value
|
|
495
|
+
});
|
|
496
|
+
e === kn && (Dn.value = n);
|
|
497
|
+
})();
|
|
498
|
+
});
|
|
499
|
+
let Y = g(() => {
|
|
500
|
+
let e = En.value.map((e) => e.text), t = Dn.value.map((e) => e.text), n = R.value.map((e) => e.values.reduce((e, t) => e + t, 0)), r = Math.max(...n), i = Math.min(...n), a = [];
|
|
501
|
+
for (let e = 0; e < H.value; e += 1) a.push(R.value.map((t) => t.values[e] || 0).reduce((e, t) => e + t, 0));
|
|
502
|
+
let o = Math.max(...a), s = Math.min(...a);
|
|
503
|
+
return {
|
|
504
|
+
yTotals: n.map((e) => ({
|
|
505
|
+
total: e,
|
|
506
|
+
proportion: isNaN(e / r) ? 0 : e / r,
|
|
507
|
+
color: c(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, i, r, e)
|
|
508
|
+
})),
|
|
509
|
+
xTotals: a.map((e) => ({
|
|
510
|
+
total: e,
|
|
511
|
+
proportion: isNaN(e / o) ? 0 : e / o,
|
|
512
|
+
color: c(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, s, o, e)
|
|
513
|
+
})),
|
|
514
|
+
yLabels: e,
|
|
515
|
+
xLabels: t.slice(0, H.value)
|
|
516
|
+
};
|
|
517
|
+
}), X = g(() => (R.value.forEach((e, t) => {
|
|
518
|
+
d({
|
|
519
|
+
datasetObject: e,
|
|
520
|
+
requiredAttributes: ["values"]
|
|
521
|
+
}).forEach((e) => {
|
|
522
|
+
s({
|
|
523
|
+
componentName: "VueUiHeatmap",
|
|
524
|
+
type: "datasetSerieAttribute",
|
|
525
|
+
property: "values",
|
|
526
|
+
index: t,
|
|
527
|
+
debug: yn.value
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
}), R.value.map((e, t) => ({
|
|
531
|
+
...e,
|
|
532
|
+
temperatures: (e.values || []).map((e, r) => e >= J.value ? {
|
|
533
|
+
side: "up",
|
|
534
|
+
color: c(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.value, q.value, e),
|
|
535
|
+
ratio: Math.abs(Math.abs(e - J.value) / Math.abs(q.value - J.value)) > 1 ? 1 : Math.abs(Math.abs(e - J.value) / Math.abs(q.value - J.value)),
|
|
536
|
+
value: e,
|
|
537
|
+
yAxisName: Y.value.yLabels[t],
|
|
538
|
+
xAxisName: Y.value.xLabels[r],
|
|
539
|
+
id: `vue-data-ui-heatmap-cell-${n()}`
|
|
540
|
+
} : {
|
|
541
|
+
side: "down",
|
|
542
|
+
ratio: Math.abs(1 - Math.abs(e) / Math.abs(J.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(J.value)),
|
|
543
|
+
color: c(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.value, q.value, e),
|
|
544
|
+
value: e,
|
|
545
|
+
yAxisName: Y.value.yLabels[t],
|
|
546
|
+
xAxisName: Y.value.xLabels[r],
|
|
547
|
+
id: `vue-data-ui-heatmap-cell-${n()}`
|
|
548
|
+
})
|
|
549
|
+
})))), An = g(() => R.value.length), jn = Ae(Array(An.value * H.value || 1).fill(!1)), Mn = g(() => jn.some((e) => e));
|
|
550
|
+
function Nn(e, t) {
|
|
551
|
+
jn[e] = t;
|
|
552
|
+
}
|
|
553
|
+
let Pn = Ae(Array(An.value * H.value || 1).fill(!1)), Fn = g(() => Pn.some((e) => e));
|
|
554
|
+
function In(e, t) {
|
|
555
|
+
Pn[e] = t;
|
|
556
|
+
}
|
|
557
|
+
let Z = E(null), Ln = E(null);
|
|
558
|
+
function Rn() {
|
|
559
|
+
Mt.value = !1, Pt.value = void 0, Z.value = null, P.value = null, I.value = null, Qt.value = null;
|
|
560
|
+
}
|
|
561
|
+
function zn(e) {
|
|
562
|
+
if (!z.value || !e) return;
|
|
563
|
+
let t = z.value.querySelector(`[data-a11y-cell-id="${e}"]`);
|
|
564
|
+
if (!t) return;
|
|
565
|
+
let n = t.getBoundingClientRect();
|
|
566
|
+
$t.value = {
|
|
567
|
+
x: n.left + n.width / 2,
|
|
568
|
+
y: n.top + n.height / 2
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
function Bn(e, n, r, i, a = "pointer", o = null) {
|
|
572
|
+
if (L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
573
|
+
datapoint: e,
|
|
574
|
+
seriesIndex: n
|
|
575
|
+
}), !B.value.showTooltip) return;
|
|
576
|
+
en.value = a, I.value = o, Qt.value = e.id, P.value = {
|
|
577
|
+
x: r,
|
|
578
|
+
y: i
|
|
579
|
+
};
|
|
580
|
+
let { value: s, yAxisName: d, xAxisName: p, id: ee } = e;
|
|
581
|
+
Pt.value = ee, Z.value = s, Ln.value = {
|
|
582
|
+
datapoint: e,
|
|
583
|
+
seriesIndex: n,
|
|
584
|
+
series: X.value,
|
|
585
|
+
config: L.value
|
|
586
|
+
}, Mt.value = !0;
|
|
587
|
+
let m = "", te = L.value.style.tooltip.customFormat;
|
|
588
|
+
f(te) && u(() => te({
|
|
589
|
+
datapoint: e,
|
|
590
|
+
seriesIndex: n,
|
|
591
|
+
series: X.value,
|
|
592
|
+
config: L.value
|
|
593
|
+
})) ? Nt.value = te({
|
|
594
|
+
datapoint: e,
|
|
595
|
+
seriesIndex: n,
|
|
596
|
+
series: X.value,
|
|
597
|
+
config: L.value
|
|
598
|
+
}) : (m += `<div>${d} ${p ? d ? ` - ${p}` : `${p}` : ""}</div>`, m += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${L.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${c(L.value.style.layout.cells.colors.cold, L.value.style.layout.cells.colors.hot, Tn.value, q.value, s)}">⬤</span><span>${isNaN(s) ? "-" : l(L.value.style.layout.cells.value.formatter, s, t({
|
|
599
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
600
|
+
v: s,
|
|
601
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
602
|
+
r: L.value.style.tooltip.roundingValue
|
|
603
|
+
}), {
|
|
604
|
+
datapoint: e,
|
|
605
|
+
seriesIndex: n
|
|
606
|
+
})}</span></div>`, Nt.value = `<div style="font-size:${L.value.style.tooltip.fontSize}px">${m}</div>`), a === "keyboard" && S(() => {
|
|
607
|
+
zn(e.id);
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
function Vn({ datapoint: e, seriesIndex: t }) {
|
|
611
|
+
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
612
|
+
datapoint: e,
|
|
613
|
+
seriesIndex: t
|
|
614
|
+
}), !(Qt.value === e.id && en.value === "keyboard") && (Mt.value = !1, Pt.value = void 0, Z.value = null, P.value = null);
|
|
615
|
+
}
|
|
616
|
+
function Hn(e) {
|
|
617
|
+
return l(L.value.style.layout.cells.value.formatter, Y.value.yTotals[e].total, t({
|
|
618
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
619
|
+
v: Y.value.yTotals[e].total,
|
|
620
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
621
|
+
r: L.value.style.layout.cells.value.roundingValue
|
|
622
|
+
}), {
|
|
623
|
+
datapoint: Y.value.yTotals[e],
|
|
624
|
+
rowIndex: e
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
function Un(e) {
|
|
628
|
+
return l(L.value.style.layout.cells.value.formatter, Y.value.xTotals[e].total, t({
|
|
629
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
630
|
+
v: Y.value.xTotals[e].total,
|
|
631
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
632
|
+
r: L.value.style.layout.cells.value.roundingValue
|
|
633
|
+
}), {
|
|
634
|
+
datapoint: Y.value.xTotals[e],
|
|
635
|
+
colIndex: e
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
g(() => ({
|
|
639
|
+
head: R.value.map((e) => ({ name: e.name })),
|
|
640
|
+
body: R.value.map((e) => e.values)
|
|
641
|
+
}));
|
|
642
|
+
function Wn(e = null) {
|
|
643
|
+
S(() => {
|
|
644
|
+
let t = ["", ...R.value.map((e, t) => e.name)], n = [];
|
|
645
|
+
for (let e = 0; e < Y.value.xLabels.length; e += 1) {
|
|
646
|
+
let t = [Y.value.xLabels[e]];
|
|
647
|
+
for (let n = 0; n < R.value.length; n += 1) t.push([R.value[n].values[e]]);
|
|
648
|
+
n.push(t);
|
|
649
|
+
}
|
|
650
|
+
let a = i([
|
|
651
|
+
[L.value.style.title.text],
|
|
652
|
+
[L.value.style.title.subtitle.text],
|
|
653
|
+
[
|
|
654
|
+
[""],
|
|
655
|
+
[""],
|
|
656
|
+
[""]
|
|
657
|
+
],
|
|
658
|
+
t
|
|
659
|
+
].concat(n));
|
|
660
|
+
e ? e(a) : r({
|
|
661
|
+
csvContent: a,
|
|
662
|
+
title: L.value.style.title.text || "vue-ui-heatmap"
|
|
663
|
+
});
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
let Q = E(!1);
|
|
667
|
+
function Gn(e) {
|
|
668
|
+
Q.value = e, Ft.value += 1;
|
|
669
|
+
}
|
|
670
|
+
function Kn() {
|
|
671
|
+
B.value.showTable = !B.value.showTable;
|
|
672
|
+
}
|
|
673
|
+
function qn() {
|
|
674
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
675
|
+
}
|
|
676
|
+
let Jn = E(!1);
|
|
677
|
+
function Yn() {
|
|
678
|
+
Jn.value = !Jn.value;
|
|
679
|
+
}
|
|
680
|
+
function Xn(e, t) {
|
|
681
|
+
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
682
|
+
datapoint: e,
|
|
683
|
+
seriesIndex: t
|
|
684
|
+
}), kt("selectDatapoint", e);
|
|
685
|
+
}
|
|
686
|
+
function Zn() {
|
|
687
|
+
return X.value;
|
|
688
|
+
}
|
|
689
|
+
async function Qn({ scale: e = 2 } = {}) {
|
|
690
|
+
if (!N.value) return;
|
|
691
|
+
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await de({
|
|
692
|
+
domElement: N.value,
|
|
693
|
+
base64: !0,
|
|
694
|
+
img: !0,
|
|
695
|
+
scale: e
|
|
696
|
+
});
|
|
697
|
+
return {
|
|
698
|
+
imageUri: i,
|
|
699
|
+
base64: a,
|
|
700
|
+
title: L.value.style.title.text,
|
|
701
|
+
width: t,
|
|
702
|
+
height: n,
|
|
703
|
+
aspectRatio: r
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
let $n = g(() => ({
|
|
707
|
+
start: 0,
|
|
708
|
+
end: H.value
|
|
709
|
+
})), er = g(() => Y.value.xLabels);
|
|
710
|
+
ue({
|
|
711
|
+
timeLabelsEls: Jt,
|
|
712
|
+
timeLabels: er,
|
|
713
|
+
slicer: $n,
|
|
714
|
+
configRef: L,
|
|
715
|
+
rotationPath: [
|
|
716
|
+
"style",
|
|
717
|
+
"layout",
|
|
718
|
+
"dataLabels",
|
|
719
|
+
"xAxis",
|
|
720
|
+
"rotation"
|
|
721
|
+
],
|
|
722
|
+
autoRotatePath: [
|
|
723
|
+
"style",
|
|
724
|
+
"layout",
|
|
725
|
+
"dataLabels",
|
|
726
|
+
"xAxis",
|
|
727
|
+
"autoRotate",
|
|
728
|
+
"enable"
|
|
729
|
+
],
|
|
730
|
+
isAutoSize: !1,
|
|
731
|
+
targetClass: ".vue-ui-heatmap-col-name",
|
|
732
|
+
rotation: L.value.style.layout.dataLabels.xAxis.autoRotate.angle,
|
|
733
|
+
width: xn,
|
|
734
|
+
height: Sn
|
|
735
|
+
}), ue({
|
|
736
|
+
timeLabelsEls: Yt,
|
|
737
|
+
timeLabels: er,
|
|
738
|
+
slicer: $n,
|
|
739
|
+
configRef: L,
|
|
740
|
+
rotationPath: [
|
|
741
|
+
"style",
|
|
742
|
+
"layout",
|
|
743
|
+
"cells",
|
|
744
|
+
"columnTotal",
|
|
745
|
+
"value",
|
|
746
|
+
"rotation"
|
|
747
|
+
],
|
|
748
|
+
autoRotatePath: [
|
|
749
|
+
"style",
|
|
750
|
+
"layout",
|
|
751
|
+
"cells",
|
|
752
|
+
"columnTotal",
|
|
753
|
+
"value",
|
|
754
|
+
"autoRotate",
|
|
755
|
+
"enable"
|
|
756
|
+
],
|
|
757
|
+
isAutoSize: !1,
|
|
758
|
+
targetClass: ".vue-ui-heatmap-col-total",
|
|
759
|
+
rotation: L.value.style.layout.cells.columnTotal.value.autoRotate.angle,
|
|
760
|
+
width: xn,
|
|
761
|
+
height: Sn
|
|
762
|
+
});
|
|
763
|
+
let tr = g(() => {
|
|
764
|
+
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
765
|
+
return {
|
|
766
|
+
component: e ? Tt : ge,
|
|
767
|
+
title: `${L.value.style.title.text}${L.value.style.title.subtitle.text ? `: ${L.value.style.title.subtitle.text}` : ""}`,
|
|
768
|
+
props: e ? {
|
|
769
|
+
backgroundColor: L.value.table.th.backgroundColor,
|
|
770
|
+
color: L.value.table.th.color,
|
|
771
|
+
headerColor: L.value.table.th.color,
|
|
772
|
+
headerBg: L.value.table.th.backgroundColor,
|
|
773
|
+
isFullscreen: Q.value,
|
|
774
|
+
fullscreenParent: N.value,
|
|
775
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
776
|
+
isCursorPointer: nn.value
|
|
777
|
+
} : {
|
|
778
|
+
hideDetails: !0,
|
|
779
|
+
config: {
|
|
780
|
+
open: t,
|
|
781
|
+
maxHeight: 1e4,
|
|
782
|
+
body: {
|
|
783
|
+
backgroundColor: L.value.style.backgroundColor,
|
|
784
|
+
color: L.value.style.color
|
|
785
|
+
},
|
|
786
|
+
head: {
|
|
787
|
+
backgroundColor: L.value.style.backgroundColor,
|
|
788
|
+
color: L.value.style.color
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
});
|
|
794
|
+
Ie(() => B.value.showTable, async (e) => {
|
|
795
|
+
L.value.table.show || (e && L.value.table.useDialog && zt.value ? (await S(), zt.value.open()) : "close" in zt.value && zt.value.close());
|
|
796
|
+
});
|
|
797
|
+
let { isResponsive: nr } = be(It, vn);
|
|
798
|
+
function rr() {
|
|
799
|
+
B.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
|
|
800
|
+
}
|
|
801
|
+
let ir = g(() => L.value.style.backgroundColor), { exportSvg: ar, getSvg: or } = se({
|
|
802
|
+
svg: z,
|
|
803
|
+
title: g(() => L.value.style.title),
|
|
804
|
+
backgroundColor: ir
|
|
805
|
+
});
|
|
806
|
+
async function sr({ isCb: e }) {
|
|
807
|
+
Ht.value = !0, await S();
|
|
808
|
+
try {
|
|
809
|
+
if (e) {
|
|
810
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await or();
|
|
811
|
+
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
812
|
+
blob: e,
|
|
813
|
+
url: t,
|
|
814
|
+
text: n,
|
|
815
|
+
dataUrl: r
|
|
816
|
+
}));
|
|
817
|
+
} else await Promise.resolve(ar());
|
|
818
|
+
} finally {
|
|
819
|
+
Ht.value = !1;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
function cr(e) {
|
|
823
|
+
if (e?.stage === "start") {
|
|
824
|
+
Vt.value = !0;
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
if (e?.stage === "end") {
|
|
828
|
+
Vt.value = !1;
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
gn();
|
|
832
|
+
}
|
|
833
|
+
async function lr() {
|
|
834
|
+
if (kt("copyAlt", {
|
|
835
|
+
config: L.value,
|
|
836
|
+
dataset: X.value
|
|
837
|
+
}), !L.value.userOptions.callbacks.altCopy) {
|
|
838
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
await Promise.resolve(L.value.userOptions.callbacks.altCopy({
|
|
842
|
+
config: L.value,
|
|
843
|
+
dataset: X.value
|
|
844
|
+
}));
|
|
845
|
+
}
|
|
846
|
+
function ur(e, t) {
|
|
847
|
+
let n = X.value[e];
|
|
848
|
+
if (!n) return null;
|
|
849
|
+
let r = n.temperatures[t];
|
|
850
|
+
return r ? {
|
|
851
|
+
cell: r,
|
|
852
|
+
rowIndex: e,
|
|
853
|
+
columnIndex: t
|
|
854
|
+
} : null;
|
|
855
|
+
}
|
|
856
|
+
function dr(e, t) {
|
|
857
|
+
let n = 0;
|
|
858
|
+
for (let t = 0; t < e; t += 1) n += X.value[t]?.temperatures?.length || 0;
|
|
859
|
+
return n + t;
|
|
860
|
+
}
|
|
861
|
+
function fr() {
|
|
862
|
+
I.value = null, Qt.value = null, tn.value = !0;
|
|
863
|
+
}
|
|
864
|
+
function pr() {
|
|
865
|
+
Rn(), tn.value = !1;
|
|
866
|
+
}
|
|
867
|
+
function mr(e) {
|
|
868
|
+
if (!z.value || Jn.value || document.activeElement !== z.value || !$.value.length) return;
|
|
869
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
870
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
871
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
872
|
+
Rn();
|
|
873
|
+
return;
|
|
874
|
+
}
|
|
875
|
+
if (a) {
|
|
876
|
+
if (I.value === null) return;
|
|
877
|
+
let e = $.value[I.value];
|
|
878
|
+
if (!e) return;
|
|
879
|
+
Xn(e.cell, e.rowIndex);
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
let s = I.value === null ? null : $.value[I.value];
|
|
883
|
+
if (!s) {
|
|
884
|
+
let e = Pt.value ? $.value.findIndex((e) => e.cell.id === Pt.value) : null;
|
|
885
|
+
if (e !== null && e >= 0 && e < $.value.length) {
|
|
886
|
+
let a = $.value[e];
|
|
887
|
+
if (!a) return;
|
|
888
|
+
let o = a.rowIndex, s = a.columnIndex;
|
|
889
|
+
n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
|
|
890
|
+
let c = gr.value.rowCount;
|
|
891
|
+
if (c <= 0) return;
|
|
892
|
+
o < 0 && (o = c - 1), o >= c && (o = 0);
|
|
893
|
+
let l = X.value[o];
|
|
894
|
+
if (!l || !l.temperatures.length) return;
|
|
895
|
+
let u = l.temperatures.length;
|
|
896
|
+
s < 0 && (s = u - 1), s >= u && (s = 0);
|
|
897
|
+
let d = ur(o, s);
|
|
898
|
+
if (!d) return;
|
|
899
|
+
let f = dr(o, s), p = K.value.left + K.value.cellSize.width * d.columnIndex, ee = K.value.top + K.value.cellSize.height * d.rowIndex;
|
|
900
|
+
Bn(d.cell, d.rowIndex, p, ee, "keyboard", f);
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
let a = $.value[0];
|
|
904
|
+
if (!a) return;
|
|
905
|
+
let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
|
|
906
|
+
Bn(a.cell, a.rowIndex, o, s, "keyboard", 0);
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
let c = s.rowIndex, l = s.columnIndex;
|
|
910
|
+
n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
|
|
911
|
+
let u = gr.value.rowCount;
|
|
912
|
+
if (u <= 0) return;
|
|
913
|
+
c < 0 && (c = u - 1), c >= u && (c = 0);
|
|
914
|
+
let d = X.value[c];
|
|
915
|
+
if (!d || !d.temperatures.length) return;
|
|
916
|
+
let f = d.temperatures.length;
|
|
917
|
+
l < 0 && (l = f - 1), l >= f && (l = 0);
|
|
918
|
+
let p = ur(c, l);
|
|
919
|
+
if (!p) return;
|
|
920
|
+
let ee = dr(c, l), m = K.value.left + K.value.cellSize.width * p.columnIndex, te = K.value.top + K.value.cellSize.height * p.rowIndex;
|
|
921
|
+
Bn(p.cell, p.rowIndex, m, te, "keyboard", ee);
|
|
922
|
+
}
|
|
923
|
+
let hr = g(() => ({
|
|
924
|
+
headers: [L.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
|
|
925
|
+
rows: Y.value.xLabels.map((e, n) => [e, ...R.value.map((e) => {
|
|
926
|
+
let r = e.values?.[n];
|
|
927
|
+
return isNaN(r) ? "-" : t({
|
|
928
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
929
|
+
v: r,
|
|
930
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
931
|
+
r: L.value.table.td.roundingValue
|
|
932
|
+
});
|
|
933
|
+
})])
|
|
934
|
+
})), gr = g(() => ({
|
|
935
|
+
rowCount: X.value.length,
|
|
936
|
+
columnCount: Math.max(0, ...X.value.map((e) => e.temperatures.length))
|
|
937
|
+
})), $ = g(() => X.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
|
|
938
|
+
cell: e,
|
|
939
|
+
rowIndex: t,
|
|
940
|
+
columnIndex: n
|
|
941
|
+
}))));
|
|
942
|
+
return pe({
|
|
943
|
+
getData: Zn,
|
|
944
|
+
getImage: Qn,
|
|
945
|
+
generatePdf: hn,
|
|
946
|
+
generateCsv: Wn,
|
|
947
|
+
generateImage: gn,
|
|
948
|
+
generateSvg: sr,
|
|
949
|
+
toggleTable: Kn,
|
|
950
|
+
toggleTooltip: qn,
|
|
951
|
+
toggleAnnotator: Yn,
|
|
952
|
+
toggleFullscreen: Gn,
|
|
953
|
+
copyAlt: lr
|
|
954
|
+
}), (n, r) => (T(), v("div", {
|
|
955
|
+
ref_key: "heatmapChart",
|
|
956
|
+
ref: N,
|
|
957
|
+
class: De(`vue-data-ui-component vue-ui-heatmap ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
958
|
+
style: w(`font-family:${L.value.style.fontFamily};width:100%;${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.backgroundColor}`),
|
|
959
|
+
id: `heatmap__${jt.value}`,
|
|
960
|
+
onMouseenter: r[1] ||= () => dn(!0),
|
|
961
|
+
onMouseleave: r[2] ||= () => {
|
|
962
|
+
dn(!1), tn.value || Rn();
|
|
963
|
+
}
|
|
964
|
+
}, [
|
|
965
|
+
y("div", {
|
|
966
|
+
id: `chart-instructions-${jt.value}`,
|
|
967
|
+
class: "sr-only"
|
|
968
|
+
}, [y("p", null, k(L.value.a11y.translations.keyboardNavigation), 1)], 8, Ge),
|
|
969
|
+
hr.value?.rows?.length ? (T(), Se(_e, {
|
|
970
|
+
key: 0,
|
|
971
|
+
uid: jt.value,
|
|
972
|
+
head: hr.value.headers,
|
|
973
|
+
body: hr.value.rows,
|
|
974
|
+
notice: L.value.a11y.translations.tableAvailable,
|
|
975
|
+
caption: L.value.a11y.translations.tableCaption
|
|
976
|
+
}, null, 8, [
|
|
977
|
+
"uid",
|
|
978
|
+
"head",
|
|
979
|
+
"body",
|
|
980
|
+
"notice",
|
|
981
|
+
"caption"
|
|
982
|
+
])) : _("", !0),
|
|
983
|
+
L.value.userOptions.buttons.annotator ? (T(), Se(A(St), {
|
|
984
|
+
key: 1,
|
|
985
|
+
svgRef: A(z),
|
|
986
|
+
backgroundColor: L.value.style.backgroundColor,
|
|
987
|
+
color: L.value.style.color,
|
|
988
|
+
active: Jn.value,
|
|
989
|
+
isCursorPointer: nn.value,
|
|
990
|
+
onClose: Yn
|
|
991
|
+
}, {
|
|
992
|
+
"annotator-action-close": j(() => [O(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
993
|
+
"annotator-action-color": j(({ color: e }) => [O(n.$slots, "annotator-action-color", C(x({ color: e })), void 0, !0)]),
|
|
994
|
+
"annotator-action-draw": j(({ mode: e }) => [O(n.$slots, "annotator-action-draw", C(x({ mode: e })), void 0, !0)]),
|
|
995
|
+
"annotator-action-undo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-undo", C(x({ disabled: e })), void 0, !0)]),
|
|
996
|
+
"annotator-action-redo": j(({ disabled: e }) => [O(n.$slots, "annotator-action-redo", C(x({ disabled: e })), void 0, !0)]),
|
|
997
|
+
"annotator-action-delete": j(({ disabled: e }) => [O(n.$slots, "annotator-action-delete", C(x({ disabled: e })), void 0, !0)]),
|
|
998
|
+
_: 3
|
|
999
|
+
}, 8, [
|
|
1000
|
+
"svgRef",
|
|
1001
|
+
"backgroundColor",
|
|
1002
|
+
"color",
|
|
1003
|
+
"active",
|
|
1004
|
+
"isCursorPointer"
|
|
1005
|
+
])) : _("", !0),
|
|
1006
|
+
_n.value ? (T(), v("div", {
|
|
1007
|
+
key: 2,
|
|
1008
|
+
ref_key: "noTitle",
|
|
1009
|
+
ref: Wt,
|
|
1010
|
+
class: "vue-data-ui-no-title-space",
|
|
1011
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1012
|
+
}, null, 512)) : _("", !0),
|
|
1013
|
+
L.value.style.title.text ? (T(), v("div", {
|
|
1014
|
+
key: 3,
|
|
1015
|
+
ref_key: "chartTitle",
|
|
1016
|
+
ref: Ut,
|
|
1017
|
+
style: "width:100%;background:transparent"
|
|
1018
|
+
}, [(T(), Se(fe, {
|
|
1019
|
+
key: `title_${Lt.value}`,
|
|
1020
|
+
config: {
|
|
1021
|
+
title: {
|
|
1022
|
+
cy: "heatmap-div-title",
|
|
1023
|
+
...L.value.style.title
|
|
1024
|
+
},
|
|
1025
|
+
subtitle: {
|
|
1026
|
+
cy: "heatmap-div-subtitle",
|
|
1027
|
+
...L.value.style.title.subtitle
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}, null, 8, ["config"]))], 512)) : _("", !0),
|
|
1031
|
+
L.value.userOptions.show && At.value && (A(un) || A(cn)) ? (T(), Se(A(Ct), {
|
|
1032
|
+
ref_key: "userOptionsRef",
|
|
1033
|
+
ref: Bt,
|
|
1034
|
+
key: `user_options_${Ft.value}`,
|
|
1035
|
+
backgroundColor: L.value.style.backgroundColor,
|
|
1036
|
+
color: L.value.style.color,
|
|
1037
|
+
isImaging: A(mn),
|
|
1038
|
+
isPrinting: A(pn),
|
|
1039
|
+
uid: jt.value,
|
|
1040
|
+
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.tooltip.show,
|
|
1041
|
+
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1042
|
+
hasImg: L.value.userOptions.buttons.img,
|
|
1043
|
+
hasSvg: L.value.userOptions.buttons.svg,
|
|
1044
|
+
hasXls: L.value.userOptions.buttons.csv,
|
|
1045
|
+
hasTable: L.value.userOptions.buttons.table,
|
|
1046
|
+
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1047
|
+
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1048
|
+
isFullscreen: Q.value,
|
|
1049
|
+
isTooltip: B.value.showTooltip,
|
|
1050
|
+
titles: { ...L.value.userOptions.buttonTitles },
|
|
1051
|
+
chartElement: N.value,
|
|
1052
|
+
position: L.value.userOptions.position,
|
|
1053
|
+
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1054
|
+
isAnnotation: Jn.value,
|
|
1055
|
+
callbacks: L.value.userOptions.callbacks,
|
|
1056
|
+
printScale: L.value.userOptions.print.scale,
|
|
1057
|
+
tableDialog: L.value.table.useDialog,
|
|
1058
|
+
isCursorPointer: nn.value,
|
|
1059
|
+
onToggleFullscreen: Gn,
|
|
1060
|
+
onGeneratePdf: A(hn),
|
|
1061
|
+
onGenerateCsv: Wn,
|
|
1062
|
+
onGenerateImage: cr,
|
|
1063
|
+
onGenerateSvg: sr,
|
|
1064
|
+
onToggleTable: Kn,
|
|
1065
|
+
onToggleTooltip: qn,
|
|
1066
|
+
onToggleAnnotator: Yn,
|
|
1067
|
+
onCopyAlt: lr,
|
|
1068
|
+
style: w({ visibility: A(un) ? A(cn) ? "visible" : "hidden" : "visible" })
|
|
1069
|
+
}, Ce({ _: 2 }, [
|
|
1070
|
+
n.$slots.menuIcon ? {
|
|
1071
|
+
name: "menuIcon",
|
|
1072
|
+
fn: j(({ isOpen: e, color: t }) => [O(n.$slots, "menuIcon", C(x({
|
|
1073
|
+
isOpen: e,
|
|
1074
|
+
color: t
|
|
1075
|
+
})), void 0, !0)]),
|
|
1076
|
+
key: "0"
|
|
1077
|
+
} : void 0,
|
|
1078
|
+
n.$slots.optionTooltip ? {
|
|
1079
|
+
name: "optionTooltip",
|
|
1080
|
+
fn: j(() => [O(n.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1081
|
+
key: "1"
|
|
1082
|
+
} : void 0,
|
|
1083
|
+
n.$slots.optionPdf ? {
|
|
1084
|
+
name: "optionPdf",
|
|
1085
|
+
fn: j(() => [O(n.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1086
|
+
key: "2"
|
|
1087
|
+
} : void 0,
|
|
1088
|
+
n.$slots.optionCsv ? {
|
|
1089
|
+
name: "optionCsv",
|
|
1090
|
+
fn: j(() => [O(n.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1091
|
+
key: "3"
|
|
1092
|
+
} : void 0,
|
|
1093
|
+
n.$slots.optionImg ? {
|
|
1094
|
+
name: "optionImg",
|
|
1095
|
+
fn: j(() => [O(n.$slots, "optionImg", {}, void 0, !0)]),
|
|
1096
|
+
key: "4"
|
|
1097
|
+
} : void 0,
|
|
1098
|
+
n.$slots.optionSvg ? {
|
|
1099
|
+
name: "optionSvg",
|
|
1100
|
+
fn: j(() => [O(n.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1101
|
+
key: "5"
|
|
1102
|
+
} : void 0,
|
|
1103
|
+
n.$slots.optionTable ? {
|
|
1104
|
+
name: "optionTable",
|
|
1105
|
+
fn: j(() => [O(n.$slots, "optionTable", {}, void 0, !0)]),
|
|
1106
|
+
key: "6"
|
|
1107
|
+
} : void 0,
|
|
1108
|
+
n.$slots.optionFullscreen ? {
|
|
1109
|
+
name: "optionFullscreen",
|
|
1110
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [O(n.$slots, "optionFullscreen", C(x({
|
|
1111
|
+
toggleFullscreen: e,
|
|
1112
|
+
isFullscreen: t
|
|
1113
|
+
})), void 0, !0)]),
|
|
1114
|
+
key: "7"
|
|
1115
|
+
} : void 0,
|
|
1116
|
+
n.$slots.optionAnnotator ? {
|
|
1117
|
+
name: "optionAnnotator",
|
|
1118
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [O(n.$slots, "optionAnnotator", C(x({
|
|
1119
|
+
toggleAnnotator: e,
|
|
1120
|
+
isAnnotator: t
|
|
1121
|
+
})), void 0, !0)]),
|
|
1122
|
+
key: "8"
|
|
1123
|
+
} : void 0,
|
|
1124
|
+
n.$slots.optionAltCopy ? {
|
|
1125
|
+
name: "optionAltCopy",
|
|
1126
|
+
fn: j(({ altCopy: e }) => [O(n.$slots, "optionAltCopy", C(x({ altCopy: e })), void 0, !0)]),
|
|
1127
|
+
key: "9"
|
|
1128
|
+
} : void 0
|
|
1129
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : _("", !0),
|
|
1130
|
+
y("div", { class: De({
|
|
1131
|
+
"vue-ui-heatmap-chart-wrapper": !0,
|
|
1132
|
+
"vue-ui-heatmap-chart-wrapper-legend-right": L.value.style.legend.show
|
|
1133
|
+
}) }, [
|
|
1134
|
+
(T(), v("svg", {
|
|
1135
|
+
ref_key: "svgRef",
|
|
1136
|
+
ref: z,
|
|
1137
|
+
xmlns: A(ee),
|
|
1138
|
+
"aria-describedby": `chart-instructions-${jt.value}`,
|
|
1139
|
+
class: De({
|
|
1140
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
1141
|
+
"vue-data-ui-fulscreen--off": !Q.value
|
|
1142
|
+
}),
|
|
1143
|
+
viewBox: `0 0 ${U.value.width} ${U.value.height}`,
|
|
1144
|
+
width: "100%",
|
|
1145
|
+
style: w(`overflow: visible; background:transparent;color:${L.value.style.color}`),
|
|
1146
|
+
"aria-live": "polite",
|
|
1147
|
+
role: "img",
|
|
1148
|
+
preserveAspectRatio: "xMidYMid",
|
|
1149
|
+
tabindex: "0",
|
|
1150
|
+
onFocus: fr,
|
|
1151
|
+
onBlur: pr,
|
|
1152
|
+
onKeydown: mr
|
|
1153
|
+
}, [
|
|
1154
|
+
Te(A(wt)),
|
|
1155
|
+
n.$slots["chart-background"] ? (T(), v("foreignObject", {
|
|
1156
|
+
key: 0,
|
|
1157
|
+
x: K.value.left,
|
|
1158
|
+
y: K.value.top,
|
|
1159
|
+
width: K.value.width,
|
|
1160
|
+
height: K.value.height,
|
|
1161
|
+
style: { pointerEvents: "none" }
|
|
1162
|
+
}, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, qe)) : _("", !0),
|
|
1163
|
+
L.value.style.layout.cells.columnTotal.color.show ? (T(), v("g", {
|
|
1164
|
+
key: 1,
|
|
1165
|
+
ref_key: "xAxisSumRects",
|
|
1166
|
+
ref: Xt
|
|
1167
|
+
}, [(T(!0), v(h, null, D(Y.value.xTotals, (e, t) => (T(), v("rect", {
|
|
1168
|
+
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1169
|
+
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1170
|
+
height: K.value.sumCellXHeight,
|
|
1171
|
+
width: K.value.cellSize.width - G.value,
|
|
1172
|
+
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1173
|
+
stroke: L.value.style.backgroundColor,
|
|
1174
|
+
"stroke-width": G.value
|
|
1175
|
+
}, null, 8, Je))), 256)), (T(!0), v(h, null, D(Y.value.xTotals, (e, t) => (T(), v("rect", {
|
|
1176
|
+
x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
|
|
1177
|
+
y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
|
|
1178
|
+
height: K.value.sumCellXHeight,
|
|
1179
|
+
width: K.value.cellSize.width - G.value,
|
|
1180
|
+
fill: e.color,
|
|
1181
|
+
stroke: L.value.style.backgroundColor,
|
|
1182
|
+
"stroke-width": G.value
|
|
1183
|
+
}, null, 8, Ye))), 256))], 512)) : _("", !0),
|
|
1184
|
+
y("g", {
|
|
1185
|
+
ref_key: "datapoints",
|
|
1186
|
+
ref: Rt
|
|
1187
|
+
}, [(T(!0), v(h, null, D(X.value, (e, n) => (T(), v(h, null, [(T(!0), v(h, null, D(e.temperatures, (e, r) => (T(), v("g", null, [
|
|
1188
|
+
y("rect", {
|
|
1189
|
+
x: K.value.left + K.value.cellSize.width * r + G.value / 2 + K.value.sumCellXHeight,
|
|
1190
|
+
y: K.value.top + K.value.cellSize.height * n + G.value / 2,
|
|
1191
|
+
width: K.value.cellSize.width - G.value,
|
|
1192
|
+
height: K.value.cellSize.height - G.value,
|
|
1193
|
+
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1194
|
+
stroke: L.value.style.backgroundColor,
|
|
1195
|
+
"stroke-width": G.value
|
|
1196
|
+
}, null, 8, Xe),
|
|
1197
|
+
y("rect", {
|
|
1198
|
+
"data-a11y-cell-id": e.id,
|
|
1199
|
+
x: K.value.left + K.value.cellSize.width * r + G.value / 2 + K.value.sumCellXHeight,
|
|
1200
|
+
y: K.value.top + K.value.cellSize.height * n + G.value / 2,
|
|
1201
|
+
width: K.value.cellSize.width - G.value,
|
|
1202
|
+
height: K.value.cellSize.height - G.value,
|
|
1203
|
+
fill: e.color,
|
|
1204
|
+
stroke: L.value.style.backgroundColor,
|
|
1205
|
+
"stroke-width": G.value,
|
|
1206
|
+
"aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
|
|
1207
|
+
onMouseover: (t) => Bn(e, n, K.value.left + K.value.cellSize.width * r, K.value.top + K.value.cellSize.height * n, "pointer", dr(n, r)),
|
|
1208
|
+
onMouseout: () => Vn({
|
|
1209
|
+
datapoint: e,
|
|
1210
|
+
seriesIndex: n
|
|
1211
|
+
}),
|
|
1212
|
+
onClick: () => Xn(e, n)
|
|
1213
|
+
}, null, 40, Ze),
|
|
1214
|
+
L.value.style.layout.cells.value.show ? Re((T(), v("text", {
|
|
1215
|
+
key: 0,
|
|
1216
|
+
"text-anchor": "middle",
|
|
1217
|
+
"font-size": L.value.style.layout.cells.value.fontSize,
|
|
1218
|
+
"font-weight": L.value.style.layout.cells.value.bold ? "bold" : "normal",
|
|
1219
|
+
fill: A(p)(e.color),
|
|
1220
|
+
x: K.value.left + K.value.cellSize.width * r + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
|
|
1221
|
+
y: K.value.top + K.value.cellSize.height * n + K.value.cellSize.height / 2 + L.value.style.layout.cells.value.fontSize / 3,
|
|
1222
|
+
style: {
|
|
1223
|
+
pointerEvents: "none",
|
|
1224
|
+
userSelect: "none"
|
|
1225
|
+
}
|
|
1226
|
+
}, [we(k(A(l)(L.value.style.layout.cells.value.formatter, e.value, A(t)({
|
|
1227
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
1228
|
+
v: e.value,
|
|
1229
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
1230
|
+
r: L.value.style.layout.cells.value.roundingValue
|
|
1231
|
+
}), { datapoint: e })), 1)], 8, Qe)), [[A(Ve), {
|
|
1232
|
+
cellWidth: K.value.cellSize.width - G.value,
|
|
1233
|
+
cellHeight: K.value.cellSize.height - G.value,
|
|
1234
|
+
maxFontSize: L.value.style.layout.cells.value.fontSize,
|
|
1235
|
+
minFontSize: 10,
|
|
1236
|
+
index: n * H.value + r,
|
|
1237
|
+
reportHide: In,
|
|
1238
|
+
reportRotation: Nn,
|
|
1239
|
+
hideAll: Fn.value,
|
|
1240
|
+
rotateAll: Mn.value
|
|
1241
|
+
}]]) : _("", !0)
|
|
1242
|
+
]))), 256))], 64))), 256))], 512),
|
|
1243
|
+
L.value.style.layout.cells.rowTotal.color.show ? (T(), v("g", {
|
|
1244
|
+
key: 2,
|
|
1245
|
+
ref_key: "yAxisSumRects",
|
|
1246
|
+
ref: qt
|
|
1247
|
+
}, [(T(!0), v(h, null, D(X.value, (e, t) => (T(), v(h, null, [y("rect", {
|
|
1248
|
+
x: K.value.left,
|
|
1249
|
+
y: K.value.top + K.value.cellSize.height * t,
|
|
1250
|
+
width: K.value.sumCellXHeight,
|
|
1251
|
+
height: K.value.cellSize.height - G.value,
|
|
1252
|
+
fill: L.value.style.layout.cells.colors.underlayer,
|
|
1253
|
+
stroke: L.value.style.backgroundColor,
|
|
1254
|
+
"stroke-width": G.value
|
|
1255
|
+
}, null, 8, $e), y("rect", {
|
|
1256
|
+
x: K.value.left,
|
|
1257
|
+
y: K.value.top + K.value.cellSize.height * t + G.value / 2,
|
|
1258
|
+
width: K.value.sumCellXHeight,
|
|
1259
|
+
height: K.value.cellSize.height - G.value,
|
|
1260
|
+
fill: Y.value.yTotals[t].color,
|
|
1261
|
+
stroke: L.value.style.backgroundColor,
|
|
1262
|
+
"stroke-width": G.value
|
|
1263
|
+
}, null, 8, et)], 64))), 256))], 512)) : _("", !0),
|
|
1264
|
+
L.value.style.layout.dataLabels.yAxis.show ? (T(), v("g", {
|
|
1265
|
+
key: 3,
|
|
1266
|
+
ref_key: "yAxisLabels",
|
|
1267
|
+
ref: Kt
|
|
1268
|
+
}, [(T(!0), v(h, null, D(X.value, (e, t) => (T(), v(h, null, [y("text", {
|
|
1269
|
+
class: "vue-ui-heatmap-row-name",
|
|
1270
|
+
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1271
|
+
fill: L.value.style.layout.dataLabels.yAxis.color,
|
|
1272
|
+
x: W.value,
|
|
1273
|
+
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + L.value.style.layout.dataLabels.yAxis.fontSize / 3 + L.value.style.layout.dataLabels.yAxis.offsetY - (L.value.style.layout.cells.rowTotal.value.show ? L.value.style.layout.dataLabels.yAxis.fontSize / 1.5 : 0),
|
|
1274
|
+
"text-anchor": "end",
|
|
1275
|
+
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1276
|
+
}, k(Y.value.yLabels[t]), 9, tt), L.value.style.layout.cells.rowTotal.value.show ? (T(), v("text", {
|
|
1277
|
+
key: 0,
|
|
1278
|
+
class: "vue-ui-heatmap-row-total",
|
|
1279
|
+
"font-size": L.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1280
|
+
fill: L.value.style.layout.dataLabels.yAxis.color,
|
|
1281
|
+
x: W.value,
|
|
1282
|
+
y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + L.value.style.layout.dataLabels.yAxis.fontSize + L.value.style.layout.dataLabels.yAxis.offsetY,
|
|
1283
|
+
"text-anchor": "end",
|
|
1284
|
+
"font-weight": L.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1285
|
+
}, k(Hn(t)), 9, nt)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1286
|
+
L.value.style.layout.dataLabels.xAxis.show ? (T(), v("g", {
|
|
1287
|
+
key: 4,
|
|
1288
|
+
ref_key: "xAxisLabels",
|
|
1289
|
+
ref: Jt
|
|
1290
|
+
}, [(T(!0), v(h, null, D(Y.value.xLabels, (e, t) => (T(), v(h, null, [!L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo || L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo && t % L.value.style.layout.dataLabels.xAxis.showOnlyAtModulo === 0 ? (T(), v("text", {
|
|
1291
|
+
key: 0,
|
|
1292
|
+
class: "vue-ui-heatmap-col-name",
|
|
1293
|
+
"text-anchor": L.value.style.layout.dataLabels.xAxis.rotation === 0 ? "middle" : L.value.style.layout.dataLabels.xAxis.rotation < 0 ? "start" : "end",
|
|
1294
|
+
"font-size": L.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1295
|
+
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1296
|
+
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1297
|
+
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + L.value.style.layout.dataLabels.xAxis.offsetX + K.value.sumCellXHeight}, ${K.value.topLabelsHeight}), rotate(${L.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1298
|
+
}, k(e), 9, rt)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
|
|
1299
|
+
L.value.style.layout.cells.columnTotal.value.show ? (T(), v("g", {
|
|
1300
|
+
key: 5,
|
|
1301
|
+
ref_key: "xAxisSums",
|
|
1302
|
+
ref: Yt
|
|
1303
|
+
}, [(T(!0), v(h, null, D(Y.value.xLabels, (e, t) => (T(), v("text", {
|
|
1304
|
+
class: "vue-ui-heatmap-col-total",
|
|
1305
|
+
"text-anchor": L.value.style.layout.cells.columnTotal.value.rotation === 0 ? "middle" : L.value.style.layout.cells.columnTotal.value.rotation < 0 ? "end" : "start",
|
|
1306
|
+
"font-size": L.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1307
|
+
fill: L.value.style.layout.dataLabels.xAxis.color,
|
|
1308
|
+
"font-weight": L.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1309
|
+
transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Y.value.xLabels.length * t + L.value.style.layout.dataLabels.xAxis.offsetX + L.value.style.layout.cells.columnTotal.value.offsetX + K.value.sumCellXHeight}, ${K.value.bottom + L.value.style.layout.dataLabels.xAxis.fontSize / 2}), rotate(${L.value.style.layout.cells.columnTotal.value.rotation})`
|
|
1310
|
+
}, k(Un(t)), 9, it))), 256))], 512)) : _("", !0),
|
|
1311
|
+
P.value ? (T(), v("g", at, [y("rect", {
|
|
1312
|
+
style: { "pointer-events": "none" },
|
|
1313
|
+
x: P.value.x - L.value.style.layout.cells.selected.border / 2 + G.value + K.value.sumCellXHeight,
|
|
1314
|
+
y: P.value.y - L.value.style.layout.cells.selected.border / 2 + G.value,
|
|
1315
|
+
width: K.value.cellSize.width - G.value + L.value.style.layout.cells.selected.border - G.value,
|
|
1316
|
+
height: K.value.cellSize.height - G.value + L.value.style.layout.cells.selected.border - G.value,
|
|
1317
|
+
fill: "transparent",
|
|
1318
|
+
stroke: L.value.style.layout.cells.selected.color,
|
|
1319
|
+
"stroke-width": L.value.style.layout.cells.selected.border,
|
|
1320
|
+
rx: 1
|
|
1321
|
+
}, null, 8, ot)])) : _("", !0),
|
|
1322
|
+
L.value.style.layout.crosshairs.show && P.value ? (T(), v("g", st, [y("line", {
|
|
1323
|
+
x1: K.value.left + K.value.sumCellXHeight,
|
|
1324
|
+
x2: P.value.x + K.value.sumCellXHeight,
|
|
1325
|
+
y1: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1326
|
+
y2: P.value.y + (K.value.cellSize.height - G.value) / 2,
|
|
1327
|
+
stroke: L.value.style.layout.crosshairs.stroke,
|
|
1328
|
+
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1329
|
+
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1330
|
+
"stroke-linecap": "round"
|
|
1331
|
+
}, null, 8, ct), y("line", {
|
|
1332
|
+
x1: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1333
|
+
x2: P.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
|
|
1334
|
+
y1: P.value.y,
|
|
1335
|
+
y2: K.value.top,
|
|
1336
|
+
stroke: L.value.style.layout.crosshairs.stroke,
|
|
1337
|
+
"stroke-width": L.value.style.layout.crosshairs.strokeWidth,
|
|
1338
|
+
"stroke-dasharray": L.value.style.layout.crosshairs.strokeDasharray,
|
|
1339
|
+
"stroke-linecap": "round"
|
|
1340
|
+
}, null, 8, lt)])) : _("", !0),
|
|
1341
|
+
O(n.$slots, "svg", { svg: {
|
|
1342
|
+
...U.value,
|
|
1343
|
+
drawingArea: K.value,
|
|
1344
|
+
isPrintingImg: A(pn) || A(mn) || Vt.value,
|
|
1345
|
+
isPrintingSvg: Ht.value
|
|
1346
|
+
} }, void 0, !0)
|
|
1347
|
+
], 46, Ke)),
|
|
1348
|
+
L.value.style.legend.show ? (T(), v("div", {
|
|
1349
|
+
key: 0,
|
|
1350
|
+
ref_key: "legendRight",
|
|
1351
|
+
ref: Gt,
|
|
1352
|
+
class: "vue-ui-heatmap-legend-right",
|
|
1353
|
+
style: w({ "--legend-width": L.value.style.legend.width + "px" })
|
|
1354
|
+
}, [
|
|
1355
|
+
A(on) ? _("", !0) : (T(), v("div", {
|
|
1356
|
+
key: 0,
|
|
1357
|
+
class: "vue-ui-heatmap-legend-label-max",
|
|
1358
|
+
style: w({
|
|
1359
|
+
fontSize: L.value.style.legend.fontSize + "px",
|
|
1360
|
+
color: L.value.style.legend.color
|
|
1361
|
+
})
|
|
1362
|
+
}, k(A(l)(L.value.style.layout.cells.value.formatter, A(m)(q.value), A(t)({
|
|
1363
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
1364
|
+
v: A(m)(q.value),
|
|
1365
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
1366
|
+
r: L.value.style.legend.roundingValue
|
|
1367
|
+
}))), 5)),
|
|
1368
|
+
y("div", ut, [y("div", {
|
|
1369
|
+
class: "vue-ui-heatmap-gauge",
|
|
1370
|
+
style: w({ background: `linear-gradient(to bottom, ${L.value.style.layout.cells.colors.hot}, ${L.value.style.layout.cells.colors.cold})` })
|
|
1371
|
+
}, [Re(y("div", {
|
|
1372
|
+
class: "vue-ui-heatmap-gauge-indicator",
|
|
1373
|
+
"data-value": A(l)(L.value.style.layout.cells.value.formatter, A(m)(Z.value), A(t)({
|
|
1374
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
1375
|
+
v: A(m)(Z.value),
|
|
1376
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
1377
|
+
r: L.value.style.legend.roundingValue
|
|
1378
|
+
})),
|
|
1379
|
+
style: w({
|
|
1380
|
+
position: "absolute",
|
|
1381
|
+
width: "100%",
|
|
1382
|
+
height: "2px",
|
|
1383
|
+
background: [void 0, null].includes(Z.value) ? "transparent" : A(p)(Ln.value.datapoint.color),
|
|
1384
|
+
top: `${[void 0, null].includes(Z.value) ? 0 : (1 - Z.value / q.value) * 100}%`,
|
|
1385
|
+
transition: "all 0.2s ease-in-out",
|
|
1386
|
+
"--background-color": L.value.style.backgroundColor,
|
|
1387
|
+
"--gauge-arrow-color": A(p)(L.value.style.backgroundColor),
|
|
1388
|
+
"--gauge-arrow-text-color": A(p)(L.value.style.backgroundColor),
|
|
1389
|
+
"--gauge-arrow-value": Z.value,
|
|
1390
|
+
"--gauge-arrow-font-size": L.value.style.legend.fontSize + "px"
|
|
1391
|
+
})
|
|
1392
|
+
}, [y("div", ft, k(A(l)(L.value.style.layout.cells.value.formatter, A(m)(Z.value), A(t)({
|
|
1393
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
1394
|
+
v: A(m)(Z.value),
|
|
1395
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
1396
|
+
r: L.value.style.legend.roundingValue
|
|
1397
|
+
}))), 1)], 12, dt), [[Fe, ![void 0, null].includes(Z.value)]])], 4)]),
|
|
1398
|
+
A(on) ? _("", !0) : (T(), v("div", {
|
|
1399
|
+
key: 1,
|
|
1400
|
+
class: "vue-ui-heatmap-legend-label-min",
|
|
1401
|
+
style: w({
|
|
1402
|
+
fontSize: L.value.style.legend.fontSize + "px",
|
|
1403
|
+
color: L.value.style.legend.color
|
|
1404
|
+
})
|
|
1405
|
+
}, k(A(l)(L.value.style.layout.cells.value.formatter, A(m)(Tn.value), A(t)({
|
|
1406
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
1407
|
+
v: A(m)(Tn.value),
|
|
1408
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
1409
|
+
r: L.value.style.legend.roundingValue
|
|
1410
|
+
}))), 5))
|
|
1411
|
+
], 4)) : _("", !0),
|
|
1412
|
+
n.$slots.hint ? (T(), v("div", pt, [O(n.$slots, "hint", C(x({
|
|
1413
|
+
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1414
|
+
isVisible: tn.value
|
|
1415
|
+
})), void 0, !0)])) : _("", !0)
|
|
1416
|
+
], 2),
|
|
1417
|
+
n.$slots.watermark ? (T(), v("div", mt, [O(n.$slots, "watermark", C(x({ isPrinting: A(pn) || A(mn) || Vt.value || Ht.value })), void 0, !0)])) : _("", !0),
|
|
1418
|
+
n.$slots.source ? (T(), v("div", {
|
|
1419
|
+
key: 6,
|
|
1420
|
+
ref_key: "source",
|
|
1421
|
+
ref: Zt,
|
|
1422
|
+
dir: "auto"
|
|
1423
|
+
}, [O(n.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1424
|
+
Te(A(Ue), {
|
|
1425
|
+
teleportTo: L.value.style.tooltip.teleportTo,
|
|
1426
|
+
show: B.value.showTooltip && Mt.value,
|
|
1427
|
+
backgroundColor: L.value.style.tooltip.backgroundColor,
|
|
1428
|
+
color: L.value.style.tooltip.color,
|
|
1429
|
+
borderRadius: L.value.style.tooltip.borderRadius,
|
|
1430
|
+
borderColor: L.value.style.tooltip.borderColor,
|
|
1431
|
+
borderWidth: L.value.style.tooltip.borderWidth,
|
|
1432
|
+
fontSize: L.value.style.tooltip.fontSize,
|
|
1433
|
+
backgroundOpacity: L.value.style.tooltip.backgroundOpacity,
|
|
1434
|
+
position: L.value.style.tooltip.position,
|
|
1435
|
+
offsetY: L.value.style.tooltip.offsetY,
|
|
1436
|
+
parent: N.value,
|
|
1437
|
+
content: Nt.value,
|
|
1438
|
+
isFullscreen: Q.value,
|
|
1439
|
+
isCustom: L.value.style.tooltip.customFormat && typeof L.value.style.tooltip.customFormat == "function",
|
|
1440
|
+
smooth: L.value.style.tooltip.smooth,
|
|
1441
|
+
backdropFilter: L.value.style.tooltip.backdropFilter,
|
|
1442
|
+
smoothForce: L.value.style.tooltip.smoothForce,
|
|
1443
|
+
smoothSnapThreshold: L.value.style.tooltip.smoothSnapThreshold,
|
|
1444
|
+
isA11yMode: en.value === "keyboard",
|
|
1445
|
+
a11yPosition: $t.value
|
|
1446
|
+
}, {
|
|
1447
|
+
"tooltip-before": j(() => [O(n.$slots, "tooltip-before", C(x({ ...Ln.value })), void 0, !0)]),
|
|
1448
|
+
tooltip: j(() => [O(n.$slots, "tooltip", C(x({ ...Ln.value })), void 0, !0)]),
|
|
1449
|
+
"tooltip-after": j(() => [O(n.$slots, "tooltip-after", C(x({ ...Ln.value })), void 0, !0)]),
|
|
1450
|
+
_: 3
|
|
1451
|
+
}, 8, [
|
|
1452
|
+
"teleportTo",
|
|
1453
|
+
"show",
|
|
1454
|
+
"backgroundColor",
|
|
1455
|
+
"color",
|
|
1456
|
+
"borderRadius",
|
|
1457
|
+
"borderColor",
|
|
1458
|
+
"borderWidth",
|
|
1459
|
+
"fontSize",
|
|
1460
|
+
"backgroundOpacity",
|
|
1461
|
+
"position",
|
|
1462
|
+
"offsetY",
|
|
1463
|
+
"parent",
|
|
1464
|
+
"content",
|
|
1465
|
+
"isFullscreen",
|
|
1466
|
+
"isCustom",
|
|
1467
|
+
"smooth",
|
|
1468
|
+
"backdropFilter",
|
|
1469
|
+
"smoothForce",
|
|
1470
|
+
"smoothSnapThreshold",
|
|
1471
|
+
"isA11yMode",
|
|
1472
|
+
"a11yPosition"
|
|
1473
|
+
]),
|
|
1474
|
+
At.value && L.value.userOptions.buttons.table ? (T(), Se(je(tr.value.component), Ee({ key: 7 }, tr.value.props, {
|
|
1475
|
+
ref_key: "tableUnit",
|
|
1476
|
+
ref: zt,
|
|
1477
|
+
onClose: rr
|
|
1478
|
+
}), Ce({
|
|
1479
|
+
content: j(() => [y("div", {
|
|
1480
|
+
ref_key: "tableContainer",
|
|
1481
|
+
ref: It,
|
|
1482
|
+
class: "vue-ui-heatmap-table atom-data-table",
|
|
1483
|
+
style: w(`${L.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
|
|
1484
|
+
}, [y("div", {
|
|
1485
|
+
style: w(`width:100%;overflow-x:auto;position:relative;${L.value.table.useDialog ? "" : "padding-top:36px"};`),
|
|
1486
|
+
class: De({ "vue-ui-responsive": A(nr) })
|
|
1487
|
+
}, [L.value.table.useDialog ? _("", !0) : (T(), v("div", {
|
|
1488
|
+
key: 0,
|
|
1489
|
+
role: "button",
|
|
1490
|
+
tabindex: "0",
|
|
1491
|
+
style: w(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${L.value.table.th.backgroundColor};`),
|
|
1492
|
+
onClick: rr,
|
|
1493
|
+
onKeypress: ze(rr, ["enter"])
|
|
1494
|
+
}, [Te(A(xt), {
|
|
1495
|
+
name: "close",
|
|
1496
|
+
stroke: L.value.table.th.color,
|
|
1497
|
+
"stroke-width": 2
|
|
1498
|
+
}, null, 8, ["stroke"])], 36)), y("table", ht, [
|
|
1499
|
+
L.value.table.useDialog ? _("", !0) : (T(), v("caption", {
|
|
1500
|
+
key: 0,
|
|
1501
|
+
style: w(`backgroundColor:${L.value.table.th.backgroundColor};color:${L.value.table.th.color};outline:${L.value.table.th.outline}`)
|
|
1502
|
+
}, [we(k(L.value.style.title.text) + " ", 1), L.value.style.title.subtitle.text ? (T(), v("span", gt, k(L.value.style.title.subtitle.text), 1)) : _("", !0)], 4)),
|
|
1503
|
+
y("thead", null, [y("tr", {
|
|
1504
|
+
role: "row",
|
|
1505
|
+
style: w(`background:${L.value.table.th.backgroundColor};color:${L.value.table.th.color}`)
|
|
1506
|
+
}, [y("th", { style: w(`outline:${L.value.table.th.outline};padding-right:6px`) }, null, 4), (T(!0), v(h, null, D(e.dataset, (e, t) => (T(), v("th", {
|
|
1507
|
+
align: "right",
|
|
1508
|
+
style: w(`outline:${L.value.table.th.outline};padding-right:6px`)
|
|
1509
|
+
}, k(e.name), 5))), 256))], 4)]),
|
|
1510
|
+
y("tbody", null, [(T(!0), v(h, null, D(Y.value.xLabels, (n, r) => (T(), v("tr", {
|
|
1511
|
+
role: "row",
|
|
1512
|
+
class: De({
|
|
1513
|
+
"vue-ui-data-table__tbody__row": !0,
|
|
1514
|
+
"vue-ui-data-table__tbody__row-even": r % 2 == 0,
|
|
1515
|
+
"vue-ui-data-table__tbody__row-odd": r % 2 != 0
|
|
1516
|
+
}),
|
|
1517
|
+
style: w(`background:${L.value.table.td.backgroundColor};color:${L.value.table.td.color}`)
|
|
1518
|
+
}, [y("td", {
|
|
1519
|
+
"data-cell": L.value.table.colNames.xAxis,
|
|
1520
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1521
|
+
style: w(`outline:${L.value.table.td.outline}`)
|
|
1522
|
+
}, [y("div", vt, k(n), 1)], 12, _t), (T(!0), v(h, null, D(e.dataset, (n, i) => (T(), v("td", {
|
|
1523
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1524
|
+
"data-cell": e.dataset[i].name,
|
|
1525
|
+
style: w(`outline:${L.value.table.td.outline}`)
|
|
1526
|
+
}, [y("div", bt, k(isNaN(n.values[r]) ? "-" : A(t)({
|
|
1527
|
+
p: L.value.style.layout.dataLabels.prefix,
|
|
1528
|
+
v: n.values[r],
|
|
1529
|
+
s: L.value.style.layout.dataLabels.suffix,
|
|
1530
|
+
r: L.value.table.td.roundingValue
|
|
1531
|
+
})), 1)], 12, yt))), 256))], 6))), 256))])
|
|
1532
|
+
])], 6)], 4)]),
|
|
1533
|
+
_: 2
|
|
1534
|
+
}, [L.value.table.useDialog ? {
|
|
1535
|
+
name: "title",
|
|
1536
|
+
fn: j(() => [we(k(tr.value.title), 1)]),
|
|
1537
|
+
key: "0"
|
|
1538
|
+
} : void 0, L.value.table.useDialog ? {
|
|
1539
|
+
name: "actions",
|
|
1540
|
+
fn: j(() => [y("button", {
|
|
1541
|
+
tabindex: "0",
|
|
1542
|
+
class: "vue-ui-user-options-button",
|
|
1543
|
+
onClick: r[0] ||= (e) => Wn(L.value.userOptions.callbacks.csv),
|
|
1544
|
+
style: w({ cursor: nn.value ? "pointer" : "default" })
|
|
1545
|
+
}, [Te(A(xt), {
|
|
1546
|
+
name: "fileCsv",
|
|
1547
|
+
stroke: tr.value.props.color
|
|
1548
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1549
|
+
key: "1"
|
|
1550
|
+
} : void 0]), 1040)) : _("", !0),
|
|
1551
|
+
O(n.$slots, "skeleton", {}, () => [A(on) ? (T(), Se(oe, { key: 0 })) : _("", !0)], !0)
|
|
1552
|
+
], 46, We));
|
|
1553
|
+
}
|
|
1554
|
+
}, [["__scopeId", "data-v-3313b1fc"]]);
|
|
1555
|
+
//#endregion
|
|
1556
|
+
export { Ue as n, xt as t };
|