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